@hitachivantara/uikit-react-lab 5.17.0 → 5.18.1

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.
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("@emotion/react/jsx-runtime");
4
+ const React = require("react");
5
+ const react = require("@emotion/react");
6
+ const reactGridLayout = require("react-grid-layout");
7
+ const uikitReactCore = require("@hitachivantara/uikit-react-core");
8
+ const Dashboard_styles = require("./Dashboard.styles.cjs");
9
+ const GridLayout = reactGridLayout.WidthProvider(reactGridLayout.Responsive);
10
+ const defaultCols = {
11
+ xs: 12,
12
+ sm: 12,
13
+ md: 12,
14
+ lg: 12,
15
+ xl: 12
16
+ };
17
+ const HvDashboard = (props) => {
18
+ const {
19
+ children,
20
+ className,
21
+ layout,
22
+ cols: colsProp,
23
+ layouts: layoutsProp,
24
+ classes: classesProp,
25
+ ...others
26
+ } = uikitReactCore.useDefaultProps("HvDashboard", props);
27
+ const {
28
+ classes,
29
+ cx
30
+ } = Dashboard_styles.useClasses(classesProp);
31
+ const {
32
+ activeTheme
33
+ } = uikitReactCore.useTheme();
34
+ const layouts = React.useMemo(() => {
35
+ if (layoutsProp)
36
+ return layoutsProp;
37
+ if (!layout)
38
+ return {};
39
+ return {
40
+ xs: layout,
41
+ sm: layout,
42
+ md: layout,
43
+ lg: layout,
44
+ xl: layout
45
+ };
46
+ }, [layoutsProp, layout]);
47
+ const cols = React.useMemo(() => {
48
+ if (!colsProp)
49
+ return defaultCols;
50
+ if (typeof colsProp === "number") {
51
+ return {
52
+ xs: colsProp,
53
+ sm: colsProp,
54
+ md: colsProp,
55
+ lg: colsProp,
56
+ xl: colsProp
57
+ };
58
+ }
59
+ return colsProp;
60
+ }, [colsProp]);
61
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
62
+ /* @__PURE__ */ jsxRuntime.jsx(react.Global, { styles: Dashboard_styles.gridStyles }),
63
+ /* @__PURE__ */ jsxRuntime.jsx(GridLayout, { className: cx(classes.root, className), breakpoints: activeTheme?.breakpoints.values, cols, layouts, ...others, children })
64
+ ] });
65
+ };
66
+ exports.dashboardClasses = Dashboard_styles.staticClasses;
67
+ exports.HvDashboard = HvDashboard;
68
+ //# sourceMappingURL=Dashboard.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dashboard.cjs","sources":["../../../../src/components/Dashboard/Dashboard.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { Global } from \"@emotion/react\";\nimport {\n Responsive as ResponsiveGrid,\n ResponsiveProps,\n ReactGridLayoutProps,\n Layouts,\n WidthProvider,\n} from \"react-grid-layout\";\nimport {\n ExtractNames,\n useDefaultProps,\n useTheme,\n} from \"@hitachivantara/uikit-react-core\";\n\nimport { gridStyles, staticClasses, useClasses } from \"./Dashboard.styles\";\n\nconst GridLayout = WidthProvider(ResponsiveGrid);\n\n/** Default column breakpoints. For now, use always 12-column */\nconst defaultCols: HvDashboardProps[\"cols\"] = {\n xs: 12,\n sm: 12,\n md: 12,\n lg: 12,\n xl: 12,\n};\n\nexport { staticClasses as dashboardClasses };\n\nexport type HvDashboardClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvDashboardProps extends Omit<ResponsiveProps, \"cols\"> {\n /** Dashboard items. Each node must be `key`'ed */\n children: React.ReactNode;\n /** An object used to override or extend the styles applied. */\n classes?: HvDashboardClasses;\n /**\n * Layout is an array of object with the format:\n *\n * `{i: string, x: number, y: number, w: number, h: number}`\n *\n * The `i` must match the key used on each item component.\n */\n layout?: ReactGridLayoutProps[\"layout\"];\n /** Number of grid columns or an object of breakpoint -> #columns */\n cols?: number | ResponsiveProps[\"cols\"];\n}\n\n/**\n * A Dashboard grid layout component, based on `react-grid-layout`.\n * The children elements are grid items and must be `key`ed.\n *\n * @see https://github.com/react-grid-layout/react-grid-layout?tab=readme-ov-file#grid-layout-props\n *\n * DISCLAIMER: This component is a work in progress and there might be breaking changes.\n */\nexport const HvDashboard = (props: HvDashboardProps) => {\n const {\n children,\n className,\n layout,\n cols: colsProp,\n layouts: layoutsProp,\n classes: classesProp,\n ...others\n } = useDefaultProps(\"HvDashboard\", props);\n const { classes, cx } = useClasses(classesProp);\n const { activeTheme } = useTheme();\n\n const layouts = useMemo<Layouts>(() => {\n if (layoutsProp) return layoutsProp;\n if (!layout) return {};\n\n return { xs: layout, sm: layout, md: layout, lg: layout, xl: layout };\n }, [layoutsProp, layout]);\n\n const cols = useMemo<ResponsiveProps[\"cols\"]>(() => {\n if (!colsProp) return defaultCols;\n\n if (typeof colsProp === \"number\") {\n return {\n xs: colsProp,\n sm: colsProp,\n md: colsProp,\n lg: colsProp,\n xl: colsProp,\n };\n }\n\n return colsProp;\n }, [colsProp]);\n\n return (\n <>\n <Global styles={gridStyles} />\n <GridLayout\n className={cx(classes.root, className)}\n breakpoints={activeTheme?.breakpoints.values}\n cols={cols}\n layouts={layouts}\n {...others}\n >\n {children}\n </GridLayout>\n </>\n );\n};\n"],"names":["GridLayout","WidthProvider","ResponsiveGrid","defaultCols","xs","sm","md","lg","xl","HvDashboard","props","children","className","layout","cols","colsProp","layouts","layoutsProp","classes","classesProp","others","useDefaultProps","cx","useClasses","activeTheme","useTheme","useMemo","jsxs","Fragment","jsx","Global","gridStyles","root","breakpoints","values"],"mappings":";;;;;;;;AAiBA,MAAMA,aAAaC,gBAAAA,cAAcC,gBAAAA,UAAc;AAG/C,MAAMC,cAAwC;AAAA,EAC5CC,IAAI;AAAA,EACJC,IAAI;AAAA,EACJC,IAAI;AAAA,EACJC,IAAI;AAAA,EACJC,IAAI;AACN;AA+BaC,MAAAA,cAAcA,CAACC,UAA4B;AAChD,QAAA;AAAA,IACJC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC,MAAMC;AAAAA,IACNC,SAASC;AAAAA,IACTC,SAASC;AAAAA,IACT,GAAGC;AAAAA,EAAAA,IACDC,eAAgB,gBAAA,eAAeX,KAAK;AAClC,QAAA;AAAA,IAAEQ;AAAAA,IAASI;AAAAA,EAAAA,IAAOC,iBAAAA,WAAWJ,WAAW;AACxC,QAAA;AAAA,IAAEK;AAAAA,MAAgBC,eAAS,SAAA;AAE3BT,QAAAA,UAAUU,MAAAA,QAAiB,MAAM;AACjCT,QAAAA;AAAoBA,aAAAA;AACxB,QAAI,CAACJ;AAAQ,aAAO;AAEb,WAAA;AAAA,MAAET,IAAIS;AAAAA,MAAQR,IAAIQ;AAAAA,MAAQP,IAAIO;AAAAA,MAAQN,IAAIM;AAAAA,MAAQL,IAAIK;AAAAA,IAAAA;AAAAA,EAAO,GACnE,CAACI,aAAaJ,MAAM,CAAC;AAElBC,QAAAA,OAAOY,MAAAA,QAAiC,MAAM;AAClD,QAAI,CAACX;AAAiBZ,aAAAA;AAElB,QAAA,OAAOY,aAAa,UAAU;AACzB,aAAA;AAAA,QACLX,IAAIW;AAAAA,QACJV,IAAIU;AAAAA,QACJT,IAAIS;AAAAA,QACJR,IAAIQ;AAAAA,QACJP,IAAIO;AAAAA,MAAAA;AAAAA,IAER;AAEOA,WAAAA;AAAAA,EAAAA,GACN,CAACA,QAAQ,CAAC;AAEb,SAEIY,2BAAA,KAAAC,qBAAA,EAAA,UAAA;AAAA,IAACC,2BAAAA,IAAAC,MAAA,QAAA,EAAO,QAAQC,iBAAW,WAAA,CAAA;AAAA,mCAC1B,YACC,EAAA,WAAWT,GAAGJ,QAAQc,MAAMpB,SAAS,GACrC,aAAaY,aAAaS,YAAYC,QACtC,MACA,SACA,GAAId,QAEHT,UACH;AAAA,EACF,EAAA,CAAA;AAEJ;;;"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const react = require("@emotion/react");
4
+ const uikitReactCore = require("@hitachivantara/uikit-react-core");
5
+ const {
6
+ staticClasses,
7
+ useClasses
8
+ } = uikitReactCore.createClasses("HvDashboard", {
9
+ root: {}
10
+ });
11
+ const gridStyles = /* @__PURE__ */ react.css(".react-grid-layout{position:relative;transition:height 200ms ease;}.react-grid-item{transition:all 200ms ease;transition-property:left,top,width,height;}.react-grid-item img{pointer-events:none;user-select:none;}.react-grid-item.cssTransforms{transition-property:transform,width,height;}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height;}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform;}.react-grid-item.dropping{visibility:hidden;}.react-grid-item.react-grid-placeholder{background:", uikitReactCore.theme.colors.primary_20, ';transition-duration:100ms;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none;}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px;}.react-grid-item>.react-resizable-handle::after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0, 0, 0, 0.4);border-bottom:2px solid rgba(0, 0, 0, 0.4);}.react-resizable-hide>.react-resizable-handle{display:none;}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize;}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize;}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize;}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg);}.react-resizable{position:relative;}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+");background-position:bottom right;padding:0 3px 3px 0;}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg);}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize;}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg);}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg);}.react-resizable-handle-w,.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize;}.react-resizable-handle-w{left:0;transform:rotate(135deg);}.react-resizable-handle-e{right:0;transform:rotate(315deg);}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize;}.react-resizable-handle-n{top:0;transform:rotate(225deg);}.react-resizable-handle-s{bottom:0;transform:rotate(45deg);}' + (process.env.NODE_ENV === "production" ? "" : ";label:gridStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjoz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6YWJsZS1oYW5kbGUtZSB7XG4gICAgdG9wOiA1MCU7XG4gICAgbWFyZ2luLXRvcDogLTEwcHg7XG4gICAgY3Vyc29yOiBldy1yZXNpemU7XG4gIH1cbiAgLnJlYWN0LXJlc2l6YWJsZS1oYW5kbGUtdyB7XG4gICAgbGVmdDogMDtcbiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxMzVkZWcpO1xuICB9XG4gIC5yZWFjdC1yZXNpemFibGUtaGFuZGxlLWUge1xuICAgIHJpZ2h0OiAwO1xuICAgIHRyYW5zZm9ybTogcm90YXRlKDMxNWRlZyk7XG4gIH1cbiAgLnJlYWN0LXJlc2l6YWJsZS1oYW5kbGUtbixcbiAgLnJlYWN0LXJlc2l6YWJsZS1oYW5kbGUtcyB7XG4gICAgbGVmdDogNTAlO1xuICAgIG1hcmdpbi1sZWZ0OiAtMTBweDtcbiAgICBjdXJzb3I6IG5zLXJlc2l6ZTtcbiAgfVxuICAucmVhY3QtcmVzaXphYmxlLWhhbmRsZS1uIHtcbiAgICB0b3A6IDA7XG4gICAgdHJhbnNmb3JtOiByb3RhdGUoMjI1ZGVnKTtcbiAgfVxuICAucmVhY3QtcmVzaXphYmxlLWhhbmRsZS1zIHtcbiAgICBib3R0b206IDA7XG4gICAgdHJhbnNmb3JtOiByb3RhdGUoNDVkZWcpO1xuICB9XG5gO1xuIl19 */");
12
+ exports.gridStyles = gridStyles;
13
+ exports.staticClasses = staticClasses;
14
+ exports.useClasses = useClasses;
15
+ //# sourceMappingURL=Dashboard.styles.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dashboard.styles.cjs","sources":["../../../../src/components/Dashboard/Dashboard.styles.ts"],"sourcesContent":["import { css } from \"@emotion/react\";\nimport { createClasses, theme } from \"@hitachivantara/uikit-react-core\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvDashboard\", {\n root: {},\n});\n\nexport const gridStyles = css`\n .react-grid-layout {\n position: relative;\n transition: height 200ms ease;\n }\n .react-grid-item {\n transition: all 200ms ease;\n transition-property: left, top, width, height;\n }\n .react-grid-item img {\n pointer-events: none;\n user-select: none;\n }\n .react-grid-item.cssTransforms {\n transition-property: transform, width, height;\n }\n .react-grid-item.resizing {\n transition: none;\n z-index: 1;\n will-change: width, height;\n }\n\n .react-grid-item.react-draggable-dragging {\n transition: none;\n z-index: 3;\n will-change: transform;\n }\n\n .react-grid-item.dropping {\n visibility: hidden;\n }\n\n .react-grid-item.react-grid-placeholder {\n background: ${theme.colors.primary_20};\n transition-duration: 100ms;\n z-index: 2;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n -o-user-select: none;\n user-select: none;\n }\n\n .react-grid-item.react-grid-placeholder.placeholder-resizing {\n transition: none;\n }\n\n .react-grid-item > .react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n }\n\n .react-grid-item > .react-resizable-handle::after {\n content: \"\";\n position: absolute;\n right: 3px;\n bottom: 3px;\n width: 5px;\n height: 5px;\n border-right: 2px solid rgba(0, 0, 0, 0.4);\n border-bottom: 2px solid rgba(0, 0, 0, 0.4);\n }\n\n .react-resizable-hide > .react-resizable-handle {\n display: none;\n }\n\n .react-grid-item > .react-resizable-handle.react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n .react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n .react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n }\n\n .react-resizable {\n position: relative;\n }\n .react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n background-repeat: no-repeat;\n background-origin: content-box;\n box-sizing: border-box;\n background-image: url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+\");\n background-position: bottom right;\n padding: 0 3px 3px 0;\n }\n .react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n }\n .react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n }\n .react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n }\n .react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n }\n .react-resizable-handle-w,\n .react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n }\n .react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n }\n .react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n }\n .react-resizable-handle-n,\n .react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n }\n .react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n }\n .react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n }\n`;\n"],"names":["staticClasses","useClasses","createClasses","root","gridStyles","theme","colors","primary_20","process","env","NODE_ENV"],"mappings":";;;;AAGa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,eAAAA,cAAc,eAAe;AAAA,EACxEC,MAAM,CAAC;AACT,CAAC;AAEM,MAAMC,mlBAiCKC,qBAAMC,OAAOC,YAAU,+lGAAAC,QAAAC,IAAAC,aAAA,eAAA,KAAA,uBAAAF,QAAAC,IAAAC,aAwJxC,eAAA,KAAA,6lOAAA;;;;"}
@@ -19,7 +19,7 @@ const Select = ({
19
19
  const [opts, setOpts] = React.useState(data[id] ? Array.isArray(data[id]) ? data[id] : [data[id]] : void 0);
20
20
  const onSelectChange = (item) => {
21
21
  const nodes = reactFlowInstance.getNodes();
22
- const newOpts = Array.isArray(item) ? item.map((x) => x.label) : item?.label ? [item.label] : void 0;
22
+ const newOpts = Array.isArray(item) ? item.map((x) => x.label) : item?.label ?? void 0;
23
23
  const newNodes = nodes.map((node) => {
24
24
  if (node.id === nodeId) {
25
25
  node.data = {
@@ -30,7 +30,7 @@ const Select = ({
30
30
  return node;
31
31
  });
32
32
  reactFlowInstance.setNodes(newNodes);
33
- setOpts(newOpts);
33
+ setOpts(newOpts ? Array.isArray(newOpts) ? newOpts : [newOpts] : void 0);
34
34
  };
35
35
  return /* @__PURE__ */ jsxRuntime.jsx(
36
36
  uikitReactCore.HvDropdown,
@@ -1 +1 @@
1
- {"version":3,"file":"Select.cjs","sources":["../../../../../../src/components/Flow/Node/Parameters/Select.tsx"],"sourcesContent":["import { useState } from \"react\";\nimport { HvDropdown, HvDropdownProps } from \"@hitachivantara/uikit-react-core\";\nimport { useReactFlow } from \"reactflow\";\n\nimport { HvFlowNodeSelectParam } from \"../../types\";\n\ninterface SelectProps {\n nodeId: string;\n param: Omit<HvFlowNodeSelectParam, \"type\">;\n data: any;\n}\n\nconst Select = ({ nodeId, param, data }: SelectProps) => {\n const { id, label, multiple = false, options } = param;\n\n const reactFlowInstance = useReactFlow();\n\n const [opts, setOpts] = useState<string[] | undefined>(\n data[id] ? (Array.isArray(data[id]) ? data[id] : [data[id]]) : undefined\n );\n\n const onSelectChange: HvDropdownProps[\"onChange\"] = (item) => {\n const nodes = reactFlowInstance.getNodes();\n\n const newOpts = Array.isArray(item)\n ? item.map((x) => x.label as string)\n : item?.label\n ? [item.label as string]\n : undefined;\n\n const newNodes = nodes.map((node) => {\n if (node.id === nodeId) {\n node.data = {\n ...node.data,\n [id]: newOpts,\n };\n }\n return node;\n });\n\n reactFlowInstance.setNodes(newNodes);\n setOpts(newOpts);\n };\n\n return (\n <HvDropdown\n className=\"nodrag\" // Prevents dragging within the select field\n disablePortal\n label={label}\n values={options?.map((o) => {\n return { id: o, label: o, selected: !!opts?.find((opt) => opt === o) };\n })}\n onChange={onSelectChange}\n maxHeight={100}\n multiSelect={multiple}\n />\n );\n};\n\nexport default Select;\n"],"names":["Select","nodeId","param","data","id","label","multiple","options","reactFlowInstance","useReactFlow","opts","setOpts","useState","Array","isArray","undefined","onSelectChange","item","nodes","getNodes","newOpts","map","x","newNodes","node","setNodes","jsx","HvDropdown","o","selected","find","opt"],"mappings":";;;;;;AAYA,MAAMA,SAASA,CAAC;AAAA,EAAEC;AAAAA,EAAQC;AAAAA,EAAOC;AAAkB,MAAM;AACjD,QAAA;AAAA,IAAEC;AAAAA,IAAIC;AAAAA,IAAOC,WAAW;AAAA,IAAOC;AAAAA,EAAYL,IAAAA;AAEjD,QAAMM,oBAAoBC,UAAAA;AAEpB,QAAA,CAACC,MAAMC,OAAO,IAAIC,MAAAA,SACtBT,KAAKC,EAAE,IAAKS,MAAMC,QAAQX,KAAKC,EAAE,CAAC,IAAID,KAAKC,EAAE,IAAI,CAACD,KAAKC,EAAE,CAAC,IAAKW,MACjE;AAEA,QAAMC,iBAA+CC,CAAS,SAAA;AACtDC,UAAAA,QAAQV,kBAAkBW;AAEhC,UAAMC,UAAUP,MAAMC,QAAQG,IAAI,IAC9BA,KAAKI,IAAKC,CAAAA,MAAMA,EAAEjB,KAAe,IACjCY,MAAMZ,QACN,CAACY,KAAKZ,KAAe,IACrBU;AAEEQ,UAAAA,WAAWL,MAAMG,IAAKG,CAAS,SAAA;AAC/BA,UAAAA,KAAKpB,OAAOH,QAAQ;AACtBuB,aAAKrB,OAAO;AAAA,UACV,GAAGqB,KAAKrB;AAAAA,UACR,CAACC,EAAE,GAAGgB;AAAAA,QAAAA;AAAAA,MAEV;AACOI,aAAAA;AAAAA,IAAAA,CACR;AAEDhB,sBAAkBiB,SAASF,QAAQ;AACnCZ,YAAQS,OAAO;AAAA,EAAA;AAIf,SAAAM,2BAAA;AAAA,IAACC,eAAA;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAa;AAAA,MACb;AAAA,MACA,QAAQpB,SAASc,IAAKO,CAAM,MAAA;AACnB,eAAA;AAAA,UAAExB,IAAIwB;AAAAA,UAAGvB,OAAOuB;AAAAA,UAAGC,UAAU,CAAC,CAACnB,MAAMoB,KAAMC,CAAAA,QAAQA,QAAQH,CAAC;AAAA,QAAA;AAAA,MAAE,CACtE;AAAA,MACD,UAAUZ;AAAAA,MACV,WAAW;AAAA,MACX,aAAaV;AAAAA,IAAAA;AAAAA,EAAAA;AAGnB;AAEA,MAAA,WAAeN;;"}
1
+ {"version":3,"file":"Select.cjs","sources":["../../../../../../src/components/Flow/Node/Parameters/Select.tsx"],"sourcesContent":["import { useState } from \"react\";\nimport { HvDropdown, HvDropdownProps } from \"@hitachivantara/uikit-react-core\";\nimport { useReactFlow } from \"reactflow\";\n\nimport { HvFlowNodeSelectParam } from \"../../types\";\n\ninterface SelectProps {\n nodeId: string;\n param: Omit<HvFlowNodeSelectParam, \"type\">;\n data: any;\n}\n\nconst Select = ({ nodeId, param, data }: SelectProps) => {\n const { id, label, multiple = false, options } = param;\n\n const reactFlowInstance = useReactFlow();\n\n const [opts, setOpts] = useState<string[] | undefined>(\n data[id] ? (Array.isArray(data[id]) ? data[id] : [data[id]]) : undefined\n );\n\n const onSelectChange: HvDropdownProps[\"onChange\"] = (item) => {\n const nodes = reactFlowInstance.getNodes();\n\n const newOpts = Array.isArray(item)\n ? item.map((x) => x.label as string)\n : (item?.label as string) ?? undefined;\n\n const newNodes = nodes.map((node) => {\n if (node.id === nodeId) {\n node.data = {\n ...node.data,\n [id]: newOpts,\n };\n }\n return node;\n });\n\n reactFlowInstance.setNodes(newNodes);\n setOpts(\n newOpts ? (Array.isArray(newOpts) ? newOpts : [newOpts]) : undefined\n );\n };\n\n return (\n <HvDropdown\n className=\"nodrag\" // Prevents dragging within the select field\n disablePortal\n label={label}\n values={options?.map((o) => {\n return { id: o, label: o, selected: !!opts?.find((opt) => opt === o) };\n })}\n onChange={onSelectChange}\n maxHeight={100}\n multiSelect={multiple}\n />\n );\n};\n\nexport default Select;\n"],"names":["Select","nodeId","param","data","id","label","multiple","options","reactFlowInstance","useReactFlow","opts","setOpts","useState","Array","isArray","undefined","onSelectChange","item","nodes","getNodes","newOpts","map","x","newNodes","node","setNodes","jsx","HvDropdown","o","selected","find","opt"],"mappings":";;;;;;AAYA,MAAMA,SAASA,CAAC;AAAA,EAAEC;AAAAA,EAAQC;AAAAA,EAAOC;AAAkB,MAAM;AACjD,QAAA;AAAA,IAAEC;AAAAA,IAAIC;AAAAA,IAAOC,WAAW;AAAA,IAAOC;AAAAA,EAAYL,IAAAA;AAEjD,QAAMM,oBAAoBC,UAAAA;AAEpB,QAAA,CAACC,MAAMC,OAAO,IAAIC,MAAAA,SACtBT,KAAKC,EAAE,IAAKS,MAAMC,QAAQX,KAAKC,EAAE,CAAC,IAAID,KAAKC,EAAE,IAAI,CAACD,KAAKC,EAAE,CAAC,IAAKW,MACjE;AAEA,QAAMC,iBAA+CC,CAAS,SAAA;AACtDC,UAAAA,QAAQV,kBAAkBW;AAEhC,UAAMC,UAAUP,MAAMC,QAAQG,IAAI,IAC9BA,KAAKI,IAAKC,CAAAA,MAAMA,EAAEjB,KAAgB,IACjCY,MAAMZ,SAAoBU;AAEzBQ,UAAAA,WAAWL,MAAMG,IAAKG,CAAS,SAAA;AAC/BA,UAAAA,KAAKpB,OAAOH,QAAQ;AACtBuB,aAAKrB,OAAO;AAAA,UACV,GAAGqB,KAAKrB;AAAAA,UACR,CAACC,EAAE,GAAGgB;AAAAA,QAAAA;AAAAA,MAEV;AACOI,aAAAA;AAAAA,IAAAA,CACR;AAEDhB,sBAAkBiB,SAASF,QAAQ;AAEjCH,YAAAA,UAAWP,MAAMC,QAAQM,OAAO,IAAIA,UAAU,CAACA,OAAO,IAAKL,MAC7D;AAAA,EAAA;AAIA,SAAAW,2BAAA;AAAA,IAACC,eAAA;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAa;AAAA,MACb;AAAA,MACA,QAAQpB,SAASc,IAAKO,CAAM,MAAA;AACnB,eAAA;AAAA,UAAExB,IAAIwB;AAAAA,UAAGvB,OAAOuB;AAAAA,UAAGC,UAAU,CAAC,CAACnB,MAAMoB,KAAMC,CAAAA,QAAQA,QAAQH,CAAC;AAAA,QAAA;AAAA,MAAE,CACtE;AAAA,MACD,UAAUZ;AAAAA,MACV,WAAW;AAAA,MACX,aAAaV;AAAAA,IAAAA;AAAAA,EAAAA;AAGnB;AAEA,MAAA,WAAeN;;"}
@@ -1,18 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const StepNavigation_styles = require("./components/StepNavigation/StepNavigation.styles.cjs");
4
- const StepNavigation = require("./components/StepNavigation/StepNavigation.cjs");
5
- const Wizard_styles = require("./components/Wizard/Wizard.styles.cjs");
6
- const Wizard = require("./components/Wizard/Wizard.cjs");
7
- const WizardActions_styles = require("./components/Wizard/WizardActions/WizardActions.styles.cjs");
8
- const WizardActions = require("./components/Wizard/WizardActions/WizardActions.cjs");
9
- const WizardContainer_styles = require("./components/Wizard/WizardContainer/WizardContainer.styles.cjs");
10
- const WizardContainer = require("./components/Wizard/WizardContainer/WizardContainer.cjs");
11
- const WizardContent_styles = require("./components/Wizard/WizardContent/WizardContent.styles.cjs");
12
- const WizardContent = require("./components/Wizard/WizardContent/WizardContent.cjs");
13
- const WizardContext = require("./components/Wizard/WizardContext/WizardContext.cjs");
14
- const WizardTitle_styles = require("./components/Wizard/WizardTitle/WizardTitle.styles.cjs");
15
- const WizardTitle = require("./components/Wizard/WizardTitle/WizardTitle.cjs");
3
+ const Dashboard_styles = require("./components/Dashboard/Dashboard.styles.cjs");
4
+ const Dashboard = require("./components/Dashboard/Dashboard.cjs");
16
5
  const Flow_styles = require("./components/Flow/Flow.styles.cjs");
17
6
  const Background = require("./components/Flow/Background/Background.cjs");
18
7
  const Controls = require("./components/Flow/Controls/Controls.cjs");
@@ -29,19 +18,21 @@ const Node = require("./components/Flow/Node/Node.cjs");
29
18
  const useFlowNode = require("./components/Flow/hooks/useFlowNode.cjs");
30
19
  const useFlowContext = require("./components/Flow/hooks/useFlowContext.cjs");
31
20
  const useFlowNodeMeta = require("./components/Flow/hooks/useFlowNodeMeta.cjs");
32
- exports.stepNavigationClasses = StepNavigation_styles.staticClasses;
33
- exports.HvStepNavigation = StepNavigation.HvStepNavigation;
34
- exports.wizardClasses = Wizard_styles.staticClasses;
35
- exports.HvWizard = Wizard.HvWizard;
36
- exports.wizardActionsClasses = WizardActions_styles.staticClasses;
37
- exports.HvWizardActions = WizardActions.HvWizardActions;
38
- exports.wizardContainerClasses = WizardContainer_styles.staticClasses;
39
- exports.HvWizardContainer = WizardContainer.HvWizardContainer;
40
- exports.wizardContentClasses = WizardContent_styles.staticClasses;
41
- exports.HvWizardContent = WizardContent.HvWizardContent;
42
- exports.HvWizardContext = WizardContext.default;
43
- exports.wizardTitleClasses = WizardTitle_styles.staticClasses;
44
- exports.HvWizardTitle = WizardTitle.HvWizardTitle;
21
+ const StepNavigation_styles = require("./components/StepNavigation/StepNavigation.styles.cjs");
22
+ const StepNavigation = require("./components/StepNavigation/StepNavigation.cjs");
23
+ const Wizard_styles = require("./components/Wizard/Wizard.styles.cjs");
24
+ const Wizard = require("./components/Wizard/Wizard.cjs");
25
+ const WizardActions_styles = require("./components/Wizard/WizardActions/WizardActions.styles.cjs");
26
+ const WizardActions = require("./components/Wizard/WizardActions/WizardActions.cjs");
27
+ const WizardContainer_styles = require("./components/Wizard/WizardContainer/WizardContainer.styles.cjs");
28
+ const WizardContainer = require("./components/Wizard/WizardContainer/WizardContainer.cjs");
29
+ const WizardContent_styles = require("./components/Wizard/WizardContent/WizardContent.styles.cjs");
30
+ const WizardContent = require("./components/Wizard/WizardContent/WizardContent.cjs");
31
+ const WizardContext = require("./components/Wizard/WizardContext/WizardContext.cjs");
32
+ const WizardTitle_styles = require("./components/Wizard/WizardTitle/WizardTitle.styles.cjs");
33
+ const WizardTitle = require("./components/Wizard/WizardTitle/WizardTitle.cjs");
34
+ exports.dashboardClasses = Dashboard_styles.staticClasses;
35
+ exports.HvDashboard = Dashboard.HvDashboard;
45
36
  exports.flowClasses = Flow_styles.staticClasses;
46
37
  exports.HvFlowBackground = Background.HvFlowBackground;
47
38
  exports.HvFlowControls = Controls.HvFlowControls;
@@ -62,4 +53,17 @@ exports.useFlowNodeOutputEdges = useFlowNode.useFlowNodeOutputEdges;
62
53
  exports.useFlowNodeParents = useFlowNode.useFlowNodeParents;
63
54
  exports.useFlowContext = useFlowContext.useFlowContext;
64
55
  exports.useFlowNodeMeta = useFlowNodeMeta.useFlowNodeMeta;
56
+ exports.stepNavigationClasses = StepNavigation_styles.staticClasses;
57
+ exports.HvStepNavigation = StepNavigation.HvStepNavigation;
58
+ exports.wizardClasses = Wizard_styles.staticClasses;
59
+ exports.HvWizard = Wizard.HvWizard;
60
+ exports.wizardActionsClasses = WizardActions_styles.staticClasses;
61
+ exports.HvWizardActions = WizardActions.HvWizardActions;
62
+ exports.wizardContainerClasses = WizardContainer_styles.staticClasses;
63
+ exports.HvWizardContainer = WizardContainer.HvWizardContainer;
64
+ exports.wizardContentClasses = WizardContent_styles.staticClasses;
65
+ exports.HvWizardContent = WizardContent.HvWizardContent;
66
+ exports.HvWizardContext = WizardContext.default;
67
+ exports.wizardTitleClasses = WizardTitle_styles.staticClasses;
68
+ exports.HvWizardTitle = WizardTitle.HvWizardTitle;
65
69
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,69 @@
1
+ import { jsxs, Fragment, jsx } from "@emotion/react/jsx-runtime";
2
+ import { useMemo } from "react";
3
+ import { Global } from "@emotion/react";
4
+ import { WidthProvider, Responsive } from "react-grid-layout";
5
+ import { useDefaultProps, useTheme } from "@hitachivantara/uikit-react-core";
6
+ import { useClasses, gridStyles } from "./Dashboard.styles.js";
7
+ import { staticClasses } from "./Dashboard.styles.js";
8
+ const GridLayout = WidthProvider(Responsive);
9
+ const defaultCols = {
10
+ xs: 12,
11
+ sm: 12,
12
+ md: 12,
13
+ lg: 12,
14
+ xl: 12
15
+ };
16
+ const HvDashboard = (props) => {
17
+ const {
18
+ children,
19
+ className,
20
+ layout,
21
+ cols: colsProp,
22
+ layouts: layoutsProp,
23
+ classes: classesProp,
24
+ ...others
25
+ } = useDefaultProps("HvDashboard", props);
26
+ const {
27
+ classes,
28
+ cx
29
+ } = useClasses(classesProp);
30
+ const {
31
+ activeTheme
32
+ } = useTheme();
33
+ const layouts = useMemo(() => {
34
+ if (layoutsProp)
35
+ return layoutsProp;
36
+ if (!layout)
37
+ return {};
38
+ return {
39
+ xs: layout,
40
+ sm: layout,
41
+ md: layout,
42
+ lg: layout,
43
+ xl: layout
44
+ };
45
+ }, [layoutsProp, layout]);
46
+ const cols = useMemo(() => {
47
+ if (!colsProp)
48
+ return defaultCols;
49
+ if (typeof colsProp === "number") {
50
+ return {
51
+ xs: colsProp,
52
+ sm: colsProp,
53
+ md: colsProp,
54
+ lg: colsProp,
55
+ xl: colsProp
56
+ };
57
+ }
58
+ return colsProp;
59
+ }, [colsProp]);
60
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
61
+ /* @__PURE__ */ jsx(Global, { styles: gridStyles }),
62
+ /* @__PURE__ */ jsx(GridLayout, { className: cx(classes.root, className), breakpoints: activeTheme?.breakpoints.values, cols, layouts, ...others, children })
63
+ ] });
64
+ };
65
+ export {
66
+ HvDashboard,
67
+ staticClasses as dashboardClasses
68
+ };
69
+ //# sourceMappingURL=Dashboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dashboard.js","sources":["../../../../src/components/Dashboard/Dashboard.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport { Global } from \"@emotion/react\";\nimport {\n Responsive as ResponsiveGrid,\n ResponsiveProps,\n ReactGridLayoutProps,\n Layouts,\n WidthProvider,\n} from \"react-grid-layout\";\nimport {\n ExtractNames,\n useDefaultProps,\n useTheme,\n} from \"@hitachivantara/uikit-react-core\";\n\nimport { gridStyles, staticClasses, useClasses } from \"./Dashboard.styles\";\n\nconst GridLayout = WidthProvider(ResponsiveGrid);\n\n/** Default column breakpoints. For now, use always 12-column */\nconst defaultCols: HvDashboardProps[\"cols\"] = {\n xs: 12,\n sm: 12,\n md: 12,\n lg: 12,\n xl: 12,\n};\n\nexport { staticClasses as dashboardClasses };\n\nexport type HvDashboardClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvDashboardProps extends Omit<ResponsiveProps, \"cols\"> {\n /** Dashboard items. Each node must be `key`'ed */\n children: React.ReactNode;\n /** An object used to override or extend the styles applied. */\n classes?: HvDashboardClasses;\n /**\n * Layout is an array of object with the format:\n *\n * `{i: string, x: number, y: number, w: number, h: number}`\n *\n * The `i` must match the key used on each item component.\n */\n layout?: ReactGridLayoutProps[\"layout\"];\n /** Number of grid columns or an object of breakpoint -> #columns */\n cols?: number | ResponsiveProps[\"cols\"];\n}\n\n/**\n * A Dashboard grid layout component, based on `react-grid-layout`.\n * The children elements are grid items and must be `key`ed.\n *\n * @see https://github.com/react-grid-layout/react-grid-layout?tab=readme-ov-file#grid-layout-props\n *\n * DISCLAIMER: This component is a work in progress and there might be breaking changes.\n */\nexport const HvDashboard = (props: HvDashboardProps) => {\n const {\n children,\n className,\n layout,\n cols: colsProp,\n layouts: layoutsProp,\n classes: classesProp,\n ...others\n } = useDefaultProps(\"HvDashboard\", props);\n const { classes, cx } = useClasses(classesProp);\n const { activeTheme } = useTheme();\n\n const layouts = useMemo<Layouts>(() => {\n if (layoutsProp) return layoutsProp;\n if (!layout) return {};\n\n return { xs: layout, sm: layout, md: layout, lg: layout, xl: layout };\n }, [layoutsProp, layout]);\n\n const cols = useMemo<ResponsiveProps[\"cols\"]>(() => {\n if (!colsProp) return defaultCols;\n\n if (typeof colsProp === \"number\") {\n return {\n xs: colsProp,\n sm: colsProp,\n md: colsProp,\n lg: colsProp,\n xl: colsProp,\n };\n }\n\n return colsProp;\n }, [colsProp]);\n\n return (\n <>\n <Global styles={gridStyles} />\n <GridLayout\n className={cx(classes.root, className)}\n breakpoints={activeTheme?.breakpoints.values}\n cols={cols}\n layouts={layouts}\n {...others}\n >\n {children}\n </GridLayout>\n </>\n );\n};\n"],"names":["GridLayout","WidthProvider","ResponsiveGrid","defaultCols","xs","sm","md","lg","xl","HvDashboard","props","children","className","layout","cols","colsProp","layouts","layoutsProp","classes","classesProp","others","useDefaultProps","cx","useClasses","activeTheme","useTheme","useMemo","gridStyles","root","breakpoints","values"],"mappings":";;;;;;;AAiBA,MAAMA,aAAaC,cAAcC,UAAc;AAG/C,MAAMC,cAAwC;AAAA,EAC5CC,IAAI;AAAA,EACJC,IAAI;AAAA,EACJC,IAAI;AAAA,EACJC,IAAI;AAAA,EACJC,IAAI;AACN;AA+BaC,MAAAA,cAAcA,CAACC,UAA4B;AAChD,QAAA;AAAA,IACJC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC,MAAMC;AAAAA,IACNC,SAASC;AAAAA,IACTC,SAASC;AAAAA,IACT,GAAGC;AAAAA,EAAAA,IACDC,gBAAgB,eAAeX,KAAK;AAClC,QAAA;AAAA,IAAEQ;AAAAA,IAASI;AAAAA,EAAAA,IAAOC,WAAWJ,WAAW;AACxC,QAAA;AAAA,IAAEK;AAAAA,MAAgBC,SAAS;AAE3BT,QAAAA,UAAUU,QAAiB,MAAM;AACjCT,QAAAA;AAAoBA,aAAAA;AACxB,QAAI,CAACJ;AAAQ,aAAO;AAEb,WAAA;AAAA,MAAET,IAAIS;AAAAA,MAAQR,IAAIQ;AAAAA,MAAQP,IAAIO;AAAAA,MAAQN,IAAIM;AAAAA,MAAQL,IAAIK;AAAAA,IAAAA;AAAAA,EAAO,GACnE,CAACI,aAAaJ,MAAM,CAAC;AAElBC,QAAAA,OAAOY,QAAiC,MAAM;AAClD,QAAI,CAACX;AAAiBZ,aAAAA;AAElB,QAAA,OAAOY,aAAa,UAAU;AACzB,aAAA;AAAA,QACLX,IAAIW;AAAAA,QACJV,IAAIU;AAAAA,QACJT,IAAIS;AAAAA,QACJR,IAAIQ;AAAAA,QACJP,IAAIO;AAAAA,MAAAA;AAAAA,IAER;AAEOA,WAAAA;AAAAA,EAAAA,GACN,CAACA,QAAQ,CAAC;AAEb,SAEI,qBAAA,UAAA,EAAA,UAAA;AAAA,IAAC,oBAAA,QAAA,EAAO,QAAQY,WAAW,CAAA;AAAA,wBAC1B,YACC,EAAA,WAAWL,GAAGJ,QAAQU,MAAMhB,SAAS,GACrC,aAAaY,aAAaK,YAAYC,QACtC,MACA,SACA,GAAIV,QAEHT,UACH;AAAA,EACF,EAAA,CAAA;AAEJ;"}
@@ -0,0 +1,15 @@
1
+ import { css } from "@emotion/react";
2
+ import { createClasses, theme } from "@hitachivantara/uikit-react-core";
3
+ const {
4
+ staticClasses,
5
+ useClasses
6
+ } = createClasses("HvDashboard", {
7
+ root: {}
8
+ });
9
+ const gridStyles = /* @__PURE__ */ css(".react-grid-layout{position:relative;transition:height 200ms ease;}.react-grid-item{transition:all 200ms ease;transition-property:left,top,width,height;}.react-grid-item img{pointer-events:none;user-select:none;}.react-grid-item.cssTransforms{transition-property:transform,width,height;}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height;}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform;}.react-grid-item.dropping{visibility:hidden;}.react-grid-item.react-grid-placeholder{background:", theme.colors.primary_20, ';transition-duration:100ms;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none;}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px;}.react-grid-item>.react-resizable-handle::after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0, 0, 0, 0.4);border-bottom:2px solid rgba(0, 0, 0, 0.4);}.react-resizable-hide>.react-resizable-handle{display:none;}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize;}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize;}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize;}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg);}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg);}.react-resizable{position:relative;}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+");background-position:bottom right;padding:0 3px 3px 0;}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg);}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize;}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg);}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg);}.react-resizable-handle-w,.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize;}.react-resizable-handle-w{left:0;transform:rotate(135deg);}.react-resizable-handle-e{right:0;transform:rotate(315deg);}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize;}.react-resizable-handle-n{top:0;transform:rotate(225deg);}.react-resizable-handle-s{bottom:0;transform:rotate(45deg);}' + (process.env.NODE_ENV === "production" ? "" : ";label:gridStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL2h2LXVpa2l0LXJlYWN0L2h2LXVpa2l0LXJlYWN0L3BhY2thZ2VzL2xhYi9zcmMvY29tcG9uZW50cy9EYXNoYm9hcmQvRGFzaGJvYXJkLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPNkIiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvaHYtdWlraXQtcmVhY3QvaHYtdWlraXQtcmVhY3QvcGFja2FnZXMvbGFiL3NyYy9jb21wb25lbnRzL0Rhc2hib2FyZC9EYXNoYm9hcmQuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBjcmVhdGVDbGFzc2VzLCB0aGVtZSB9IGZyb20gXCJAaGl0YWNoaXZhbnRhcmEvdWlraXQtcmVhY3QtY29yZVwiO1xuXG5leHBvcnQgY29uc3QgeyBzdGF0aWNDbGFzc2VzLCB1c2VDbGFzc2VzIH0gPSBjcmVhdGVDbGFzc2VzKFwiSHZEYXNoYm9hcmRcIiwge1xuICByb290OiB7fSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZ3JpZFN0eWxlcyA9IGNzc2BcbiAgLnJlYWN0LWdyaWQtbGF5b3V0IHtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgdHJhbnNpdGlvbjogaG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.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dashboard.styles.js","sources":["../../../../src/components/Dashboard/Dashboard.styles.ts"],"sourcesContent":["import { css } from \"@emotion/react\";\nimport { createClasses, theme } from \"@hitachivantara/uikit-react-core\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvDashboard\", {\n root: {},\n});\n\nexport const gridStyles = css`\n .react-grid-layout {\n position: relative;\n transition: height 200ms ease;\n }\n .react-grid-item {\n transition: all 200ms ease;\n transition-property: left, top, width, height;\n }\n .react-grid-item img {\n pointer-events: none;\n user-select: none;\n }\n .react-grid-item.cssTransforms {\n transition-property: transform, width, height;\n }\n .react-grid-item.resizing {\n transition: none;\n z-index: 1;\n will-change: width, height;\n }\n\n .react-grid-item.react-draggable-dragging {\n transition: none;\n z-index: 3;\n will-change: transform;\n }\n\n .react-grid-item.dropping {\n visibility: hidden;\n }\n\n .react-grid-item.react-grid-placeholder {\n background: ${theme.colors.primary_20};\n transition-duration: 100ms;\n z-index: 2;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n -o-user-select: none;\n user-select: none;\n }\n\n .react-grid-item.react-grid-placeholder.placeholder-resizing {\n transition: none;\n }\n\n .react-grid-item > .react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n }\n\n .react-grid-item > .react-resizable-handle::after {\n content: \"\";\n position: absolute;\n right: 3px;\n bottom: 3px;\n width: 5px;\n height: 5px;\n border-right: 2px solid rgba(0, 0, 0, 0.4);\n border-bottom: 2px solid rgba(0, 0, 0, 0.4);\n }\n\n .react-resizable-hide > .react-resizable-handle {\n display: none;\n }\n\n .react-grid-item > .react-resizable-handle.react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n .react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n .react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n }\n .react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n }\n\n .react-resizable {\n position: relative;\n }\n .react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n background-repeat: no-repeat;\n background-origin: content-box;\n box-sizing: border-box;\n background-image: url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+\");\n background-position: bottom right;\n padding: 0 3px 3px 0;\n }\n .react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n }\n .react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n }\n .react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n }\n .react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n }\n .react-resizable-handle-w,\n .react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n }\n .react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n }\n .react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n }\n .react-resizable-handle-n,\n .react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n }\n .react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n }\n .react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n }\n`;\n"],"names":["staticClasses","useClasses","createClasses","root","gridStyles","theme","colors","primary_20","process","env","NODE_ENV"],"mappings":";;AAGa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAAc,eAAe;AAAA,EACxEC,MAAM,CAAC;AACT,CAAC;AAEM,MAAMC,6kBAiCKC,MAAMC,OAAOC,YAAU,+lGAAAC,QAAAC,IAAAC,aAAA,eAAA,KAAA,uBAAAF,QAAAC,IAAAC,aAwJxC,eAAA,KAAA,6lOAAA;"}
@@ -17,7 +17,7 @@ const Select = ({
17
17
  const [opts, setOpts] = useState(data[id] ? Array.isArray(data[id]) ? data[id] : [data[id]] : void 0);
18
18
  const onSelectChange = (item) => {
19
19
  const nodes = reactFlowInstance.getNodes();
20
- const newOpts = Array.isArray(item) ? item.map((x) => x.label) : item?.label ? [item.label] : void 0;
20
+ const newOpts = Array.isArray(item) ? item.map((x) => x.label) : item?.label ?? void 0;
21
21
  const newNodes = nodes.map((node) => {
22
22
  if (node.id === nodeId) {
23
23
  node.data = {
@@ -28,7 +28,7 @@ const Select = ({
28
28
  return node;
29
29
  });
30
30
  reactFlowInstance.setNodes(newNodes);
31
- setOpts(newOpts);
31
+ setOpts(newOpts ? Array.isArray(newOpts) ? newOpts : [newOpts] : void 0);
32
32
  };
33
33
  return /* @__PURE__ */ jsx(
34
34
  HvDropdown,
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sources":["../../../../../../src/components/Flow/Node/Parameters/Select.tsx"],"sourcesContent":["import { useState } from \"react\";\nimport { HvDropdown, HvDropdownProps } from \"@hitachivantara/uikit-react-core\";\nimport { useReactFlow } from \"reactflow\";\n\nimport { HvFlowNodeSelectParam } from \"../../types\";\n\ninterface SelectProps {\n nodeId: string;\n param: Omit<HvFlowNodeSelectParam, \"type\">;\n data: any;\n}\n\nconst Select = ({ nodeId, param, data }: SelectProps) => {\n const { id, label, multiple = false, options } = param;\n\n const reactFlowInstance = useReactFlow();\n\n const [opts, setOpts] = useState<string[] | undefined>(\n data[id] ? (Array.isArray(data[id]) ? data[id] : [data[id]]) : undefined\n );\n\n const onSelectChange: HvDropdownProps[\"onChange\"] = (item) => {\n const nodes = reactFlowInstance.getNodes();\n\n const newOpts = Array.isArray(item)\n ? item.map((x) => x.label as string)\n : item?.label\n ? [item.label as string]\n : undefined;\n\n const newNodes = nodes.map((node) => {\n if (node.id === nodeId) {\n node.data = {\n ...node.data,\n [id]: newOpts,\n };\n }\n return node;\n });\n\n reactFlowInstance.setNodes(newNodes);\n setOpts(newOpts);\n };\n\n return (\n <HvDropdown\n className=\"nodrag\" // Prevents dragging within the select field\n disablePortal\n label={label}\n values={options?.map((o) => {\n return { id: o, label: o, selected: !!opts?.find((opt) => opt === o) };\n })}\n onChange={onSelectChange}\n maxHeight={100}\n multiSelect={multiple}\n />\n );\n};\n\nexport default Select;\n"],"names":["Select","nodeId","param","data","id","label","multiple","options","reactFlowInstance","useReactFlow","opts","setOpts","useState","Array","isArray","undefined","onSelectChange","item","nodes","getNodes","newOpts","map","x","newNodes","node","setNodes","o","selected","find","opt"],"mappings":";;;;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AA,EAAAA;AAGnB;AAEA,MAAA,WAAeN;"}
1
+ {"version":3,"file":"Select.js","sources":["../../../../../../src/components/Flow/Node/Parameters/Select.tsx"],"sourcesContent":["import { useState } from \"react\";\nimport { HvDropdown, HvDropdownProps } from \"@hitachivantara/uikit-react-core\";\nimport { useReactFlow } from \"reactflow\";\n\nimport { HvFlowNodeSelectParam } from \"../../types\";\n\ninterface SelectProps {\n nodeId: string;\n param: Omit<HvFlowNodeSelectParam, \"type\">;\n data: any;\n}\n\nconst Select = ({ nodeId, param, data }: SelectProps) => {\n const { id, label, multiple = false, options } = param;\n\n const reactFlowInstance = useReactFlow();\n\n const [opts, setOpts] = useState<string[] | undefined>(\n data[id] ? (Array.isArray(data[id]) ? data[id] : [data[id]]) : undefined\n );\n\n const onSelectChange: HvDropdownProps[\"onChange\"] = (item) => {\n const nodes = reactFlowInstance.getNodes();\n\n const newOpts = Array.isArray(item)\n ? item.map((x) => x.label as string)\n : (item?.label as string) ?? undefined;\n\n const newNodes = nodes.map((node) => {\n if (node.id === nodeId) {\n node.data = {\n ...node.data,\n [id]: newOpts,\n };\n }\n return node;\n });\n\n reactFlowInstance.setNodes(newNodes);\n setOpts(\n newOpts ? (Array.isArray(newOpts) ? newOpts : [newOpts]) : undefined\n );\n };\n\n return (\n <HvDropdown\n className=\"nodrag\" // Prevents dragging within the select field\n disablePortal\n label={label}\n values={options?.map((o) => {\n return { id: o, label: o, selected: !!opts?.find((opt) => opt === o) };\n })}\n onChange={onSelectChange}\n maxHeight={100}\n multiSelect={multiple}\n />\n );\n};\n\nexport default Select;\n"],"names":["Select","nodeId","param","data","id","label","multiple","options","reactFlowInstance","useReactFlow","opts","setOpts","useState","Array","isArray","undefined","onSelectChange","item","nodes","getNodes","newOpts","map","x","newNodes","node","setNodes","o","selected","find","opt"],"mappings":";;;;AAYA,MAAMA,SAASA,CAAC;AAAA,EAAEC;AAAAA,EAAQC;AAAAA,EAAOC;AAAkB,MAAM;AACjD,QAAA;AAAA,IAAE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 -1,33 +1,36 @@
1
- import { staticClasses } from "./components/StepNavigation/StepNavigation.styles.js";
2
- import { HvStepNavigation } from "./components/StepNavigation/StepNavigation.js";
3
- import { staticClasses as staticClasses2 } from "./components/Wizard/Wizard.styles.js";
4
- import { HvWizard } from "./components/Wizard/Wizard.js";
5
- import { staticClasses as staticClasses3 } from "./components/Wizard/WizardActions/WizardActions.styles.js";
6
- import { HvWizardActions } from "./components/Wizard/WizardActions/WizardActions.js";
7
- import { staticClasses as staticClasses4 } from "./components/Wizard/WizardContainer/WizardContainer.styles.js";
8
- import { HvWizardContainer } from "./components/Wizard/WizardContainer/WizardContainer.js";
9
- import { staticClasses as staticClasses5 } from "./components/Wizard/WizardContent/WizardContent.styles.js";
10
- import { HvWizardContent } from "./components/Wizard/WizardContent/WizardContent.js";
11
- import { default as default2 } from "./components/Wizard/WizardContext/WizardContext.js";
12
- import { staticClasses as staticClasses6 } from "./components/Wizard/WizardTitle/WizardTitle.styles.js";
13
- import { HvWizardTitle } from "./components/Wizard/WizardTitle/WizardTitle.js";
14
- import { staticClasses as staticClasses7 } from "./components/Flow/Flow.styles.js";
1
+ import { staticClasses } from "./components/Dashboard/Dashboard.styles.js";
2
+ import { HvDashboard } from "./components/Dashboard/Dashboard.js";
3
+ import { staticClasses as staticClasses2 } from "./components/Flow/Flow.styles.js";
15
4
  import { HvFlowBackground } from "./components/Flow/Background/Background.js";
16
5
  import { HvFlowControls } from "./components/Flow/Controls/Controls.js";
17
- import { staticClasses as staticClasses8 } from "./components/Flow/Minimap/Minimap.styles.js";
6
+ import { staticClasses as staticClasses3 } from "./components/Flow/Minimap/Minimap.styles.js";
18
7
  import { HvFlowMinimap } from "./components/Flow/Minimap/Minimap.js";
19
- import { staticClasses as staticClasses9 } from "./components/Flow/Sidebar/Sidebar.styles.js";
8
+ import { staticClasses as staticClasses4 } from "./components/Flow/Sidebar/Sidebar.styles.js";
20
9
  import { HvFlowSidebar } from "./components/Flow/Sidebar/Sidebar.js";
21
10
  import { HvFlowEmpty } from "./components/Flow/Empty/Empty.js";
22
11
  import { HvFlow } from "./components/Flow/Flow.js";
23
- import { staticClasses as staticClasses10 } from "./components/Flow/Node/BaseNode.styles.js";
12
+ import { staticClasses as staticClasses5 } from "./components/Flow/Node/BaseNode.styles.js";
24
13
  import { HvFlowBaseNode } from "./components/Flow/Node/BaseNode.js";
25
- import { staticClasses as staticClasses11 } from "./components/Flow/Node/Node.styles.js";
14
+ import { staticClasses as staticClasses6 } from "./components/Flow/Node/Node.styles.js";
26
15
  import { HvFlowNode } from "./components/Flow/Node/Node.js";
27
16
  import { useFlowNode, useFlowNodeEdges, useFlowNodeInputEdges, useFlowNodeOutputEdges, useFlowNodeParents } from "./components/Flow/hooks/useFlowNode.js";
28
17
  import { useFlowContext } from "./components/Flow/hooks/useFlowContext.js";
29
18
  import { useFlowNodeMeta } from "./components/Flow/hooks/useFlowNodeMeta.js";
19
+ import { staticClasses as staticClasses7 } from "./components/StepNavigation/StepNavigation.styles.js";
20
+ import { HvStepNavigation } from "./components/StepNavigation/StepNavigation.js";
21
+ import { staticClasses as staticClasses8 } from "./components/Wizard/Wizard.styles.js";
22
+ import { HvWizard } from "./components/Wizard/Wizard.js";
23
+ import { staticClasses as staticClasses9 } from "./components/Wizard/WizardActions/WizardActions.styles.js";
24
+ import { HvWizardActions } from "./components/Wizard/WizardActions/WizardActions.js";
25
+ import { staticClasses as staticClasses10 } from "./components/Wizard/WizardContainer/WizardContainer.styles.js";
26
+ import { HvWizardContainer } from "./components/Wizard/WizardContainer/WizardContainer.js";
27
+ import { staticClasses as staticClasses11 } from "./components/Wizard/WizardContent/WizardContent.styles.js";
28
+ import { HvWizardContent } from "./components/Wizard/WizardContent/WizardContent.js";
29
+ import { default as default2 } from "./components/Wizard/WizardContext/WizardContext.js";
30
+ import { staticClasses as staticClasses12 } from "./components/Wizard/WizardTitle/WizardTitle.styles.js";
31
+ import { HvWizardTitle } from "./components/Wizard/WizardTitle/WizardTitle.js";
30
32
  export {
33
+ HvDashboard,
31
34
  HvFlow,
32
35
  HvFlowBackground,
33
36
  HvFlowBaseNode,
@@ -43,12 +46,13 @@ export {
43
46
  HvWizardContent,
44
47
  default2 as HvWizardContext,
45
48
  HvWizardTitle,
46
- staticClasses10 as flowBaseNodeClasses,
47
- staticClasses7 as flowClasses,
48
- staticClasses8 as flowMinimapClasses,
49
- staticClasses11 as flowNodeClasses,
50
- staticClasses9 as flowSidebarClasses,
51
- staticClasses as stepNavigationClasses,
49
+ staticClasses as dashboardClasses,
50
+ staticClasses5 as flowBaseNodeClasses,
51
+ staticClasses2 as flowClasses,
52
+ staticClasses3 as flowMinimapClasses,
53
+ staticClasses6 as flowNodeClasses,
54
+ staticClasses4 as flowSidebarClasses,
55
+ staticClasses7 as stepNavigationClasses,
52
56
  useFlowContext,
53
57
  useFlowNode,
54
58
  useFlowNodeEdges,
@@ -56,10 +60,10 @@ export {
56
60
  useFlowNodeMeta,
57
61
  useFlowNodeOutputEdges,
58
62
  useFlowNodeParents,
59
- staticClasses3 as wizardActionsClasses,
60
- staticClasses2 as wizardClasses,
61
- staticClasses4 as wizardContainerClasses,
62
- staticClasses5 as wizardContentClasses,
63
- staticClasses6 as wizardTitleClasses
63
+ staticClasses9 as wizardActionsClasses,
64
+ staticClasses8 as wizardClasses,
65
+ staticClasses10 as wizardContainerClasses,
66
+ staticClasses11 as wizardContentClasses,
67
+ staticClasses12 as wizardTitleClasses
64
68
  };
65
69
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -28,8 +28,14 @@ import { NodeProps } from 'reactflow';
28
28
  import { PanelPosition } from 'reactflow';
29
29
  import { default as React_2 } from 'react';
30
30
  import { ReactFlowProps } from 'reactflow';
31
+ import { ReactGridLayoutProps } from 'react-grid-layout';
32
+ import { ResponsiveProps } from 'react-grid-layout';
31
33
  import { SetStateAction } from 'react';
32
34
 
35
+ export declare const dashboardClasses: {
36
+ root: "HvDashboard-root";
37
+ };
38
+
33
39
  export declare const flowBaseNodeClasses: {
34
40
  root: "HvFlowBaseNode-root";
35
41
  title: "HvFlowBaseNode-title";
@@ -62,13 +68,42 @@ export declare const flowNodeClasses: {
62
68
  export declare const flowSidebarClasses: {
63
69
  description: "HvFlowSidebar-description";
64
70
  titleContainer: "HvFlowSidebar-titleContainer";
65
- contentContainer: "HvFlowSidebar-contentContainer";
66
71
  drawerPaper: "HvFlowSidebar-drawerPaper";
72
+ contentContainer: "HvFlowSidebar-contentContainer";
67
73
  searchRoot: "HvFlowSidebar-searchRoot";
68
74
  groupsContainer: "HvFlowSidebar-groupsContainer";
69
75
  nodeType: "HvFlowSidebar-nodeType";
70
76
  };
71
77
 
78
+ /**
79
+ * A Dashboard grid layout component, based on `react-grid-layout`.
80
+ * The children elements are grid items and must be `key`ed.
81
+ *
82
+ * @see https://github.com/react-grid-layout/react-grid-layout?tab=readme-ov-file#grid-layout-props
83
+ *
84
+ * DISCLAIMER: This component is a work in progress and there might be breaking changes.
85
+ */
86
+ export declare const HvDashboard: (props: HvDashboardProps) => JSX_2.Element;
87
+
88
+ export declare type HvDashboardClasses = ExtractNames<typeof useClasses>;
89
+
90
+ export declare interface HvDashboardProps extends Omit<ResponsiveProps, "cols"> {
91
+ /** Dashboard items. Each node must be `key`'ed */
92
+ children: React.ReactNode;
93
+ /** An object used to override or extend the styles applied. */
94
+ classes?: HvDashboardClasses;
95
+ /**
96
+ * Layout is an array of object with the format:
97
+ *
98
+ * `{i: string, x: number, y: number, w: number, h: number}`
99
+ *
100
+ * The `i` must match the key used on each item component.
101
+ */
102
+ layout?: ReactGridLayoutProps["layout"];
103
+ /** Number of grid columns or an object of breakpoint -> #columns */
104
+ cols?: number | ResponsiveProps["cols"];
105
+ }
106
+
72
107
  declare interface HvDroppableFlowProps<NodeType extends string | undefined = string | undefined, NodeData = any> extends Omit<ReactFlowProps, "nodes" | "edges" | "nodeTypes"> {
73
108
  /** Flow content: background, controls, and minimap. */
74
109
  children?: React.ReactNode;
@@ -113,7 +148,7 @@ export declare interface HvFlowBackgroundProps extends Omit<BackgroundProps, "co
113
148
 
114
149
  export declare const HvFlowBaseNode: ({ id, title, headerItems, icon, color: colorProp, inputs, outputs, nodeActions, classes: classesProp, className, children, }: HvFlowBaseNodeProps<unknown>) => JSX_2.Element | null;
115
150
 
116
- export declare type HvFlowBaseNodeClasses = ExtractNames<typeof useClasses_11>;
151
+ export declare type HvFlowBaseNodeClasses = ExtractNames<typeof useClasses_5>;
117
152
 
118
153
  export declare interface HvFlowBaseNodeProps<T = any> extends Omit<HvBaseProps, "id">, NodeProps<T> {
119
154
  /** Header title */
@@ -140,7 +175,7 @@ export declare type HvFlowBuiltInActions = Omit<HvFlowNodeAction, "id" | "callba
140
175
  id: HvFlowBuiltInAction;
141
176
  };
142
177
 
143
- export declare type HvFlowClasses = ExtractNames<typeof useClasses_8>;
178
+ export declare type HvFlowClasses = ExtractNames<typeof useClasses_2>;
144
179
 
145
180
  declare interface HvFlowContextValue<NodeGroups extends keyof any = string> {
146
181
  /** Flow nodes types. */
@@ -186,7 +221,7 @@ export declare interface HvFlowEmptyProps extends HvEmptyStateProps {
186
221
 
187
222
  export declare const HvFlowMinimap: ({ nodeColor, maskColor, maskStrokeColor, nodeStrokeColor, classes: classesProp, className, ...others }: HvFlowMinimapProps) => JSX_2.Element;
188
223
 
189
- export declare type HvFlowMinimapClasses = ExtractNames<typeof useClasses_9>;
224
+ export declare type HvFlowMinimapClasses = ExtractNames<typeof useClasses_3>;
190
225
 
191
226
  export declare interface HvFlowMinimapProps<NodeData = any> extends Omit<MiniMapProps<NodeData>, "nodeColor" | "nodeStrokeColor" | "maskColor" | "maskStrokeColor"> {
192
227
  /** Node color. Defaults to `atmo4`. */
@@ -207,7 +242,7 @@ export declare interface HvFlowNodeAction extends HvActionGeneric {
207
242
  callback?: (node: Node_2) => void;
208
243
  }
209
244
 
210
- export declare type HvFlowNodeClasses = ExtractNames<typeof useClasses_12>;
245
+ export declare type HvFlowNodeClasses = ExtractNames<typeof useClasses_6>;
211
246
 
212
247
  export declare interface HvFlowNodeComponentClass<GroupId extends keyof any = string, NodeData = any> extends ComponentClass<NodeProps>, NodeExtras<GroupId, NodeData> {
213
248
  }
@@ -327,7 +362,7 @@ export declare interface HvFlowProps<NodeGroups extends keyof any = string, Node
327
362
 
328
363
  export declare const HvFlowSidebar: ({ id, title, description, anchor, buttonTitle, classes: classesProp, labels: labelsProps, dragOverlayProps, defaultGroupProps, ...others }: HvFlowSidebarProps) => JSX_2.Element;
329
364
 
330
- export declare type HvFlowSidebarClasses = ExtractNames<typeof useClasses_10>;
365
+ export declare type HvFlowSidebarClasses = ExtractNames<typeof useClasses_4>;
331
366
 
332
367
  export declare interface HvFlowSidebarProps extends Omit<HvDrawerProps, "classes" | "title"> {
333
368
  /** Sidebar title. */
@@ -353,7 +388,7 @@ export declare interface HvFlowSidebarProps extends Omit<HvDrawerProps, "classes
353
388
  defaultGroupProps?: HvFlowNodeGroup;
354
389
  }
355
390
 
356
- declare type HvStepClasses = ExtractNames<typeof useClasses_2>;
391
+ declare type HvStepClasses = ExtractNames<typeof useClasses_8>;
357
392
 
358
393
  /**
359
394
  * Navigation page with steps.
@@ -378,7 +413,7 @@ declare type HvStepClasses = ExtractNames<typeof useClasses_2>;
378
413
  */
379
414
  export declare const HvStepNavigation: ({ className, classes: classesProp, width, steps, stepSize, showTitles, type, "aria-label": ariaLabel, ...others }: HvStepNavigationProps) => JSX_2.Element;
380
415
 
381
- export declare type HvStepNavigationClasses = ExtractNames<typeof useClasses>;
416
+ export declare type HvStepNavigationClasses = ExtractNames<typeof useClasses_7>;
382
417
 
383
418
  export declare interface HvStepNavigationProps extends HvBaseProps {
384
419
  /** Type of step navigation. Values = {"Simple", "Default"} */
@@ -424,7 +459,7 @@ export declare const HvWizard: ({ className, children, onClose, handleSubmit, ti
424
459
 
425
460
  export declare const HvWizardActions: ({ classes: classesProp, handleClose, handleSubmit, loading, skippable, labels, }: HvWizardActionsProps) => JSX_2.Element;
426
461
 
427
- export declare type HvWizardActionsClasses = ExtractNames<typeof useClasses_4>;
462
+ export declare type HvWizardActionsClasses = ExtractNames<typeof useClasses_10>;
428
463
 
429
464
  export declare interface HvWizardActionsProps extends HvBaseProps {
430
465
  /** Function to handle the cancel button. */
@@ -452,11 +487,11 @@ export declare interface HvWizardActionsProps extends HvBaseProps {
452
487
  classes?: HvWizardActionsClasses;
453
488
  }
454
489
 
455
- export declare type HvWizardClasses = ExtractNames<typeof useClasses_3>;
490
+ export declare type HvWizardClasses = ExtractNames<typeof useClasses_9>;
456
491
 
457
492
  export declare const HvWizardContainer: (props: HvWizardContainerProps) => JSX_2.Element;
458
493
 
459
- export declare type HvWizardContainerClasses = ExtractNames<typeof useClasses_6>;
494
+ export declare type HvWizardContainerClasses = ExtractNames<typeof useClasses_12>;
460
495
 
461
496
  export declare interface HvWizardContainerProps extends Omit<HvBaseProps, "onClose">, Pick<HvDialogProps, "maxWidth" | "fullWidth"> {
462
497
  /** Current state of the Wizard. */
@@ -469,7 +504,7 @@ export declare interface HvWizardContainerProps extends Omit<HvBaseProps, "onClo
469
504
 
470
505
  export declare const HvWizardContent: ({ classes: classesProp, fixedHeight, loading, children, summaryContent, }: HvWizardContentProps) => JSX_2.Element;
471
506
 
472
- export declare type HvWizardContentClasses = ExtractNames<typeof useClasses_7>;
507
+ export declare type HvWizardContentClasses = ExtractNames<typeof useClasses_13>;
473
508
 
474
509
  export declare interface HvWizardContentProps extends HvBaseProps {
475
510
  /** Forces minimum height to the component. */
@@ -536,7 +571,7 @@ export declare type HvWizardTabs = {
536
571
 
537
572
  export declare const HvWizardTitle: ({ title, hasSummary, labels, classes: classesProp, customStep, }: HvWizardTitleProps) => JSX_2.Element;
538
573
 
539
- export declare type HvWizardTitleClasses = ExtractNames<typeof useClasses_5>;
574
+ export declare type HvWizardTitleClasses = ExtractNames<typeof useClasses_11>;
540
575
 
541
576
  export declare interface HvWizardTitleProps extends HvBaseProps {
542
577
  /** Title for the wizard. */
@@ -566,13 +601,9 @@ export declare const stepNavigationClasses: {
566
601
  titles: "HvStepNavigation-titles";
567
602
  };
568
603
 
569
- declare const useClasses: (classesProp?: Partial<Record<"root" | "separator" | "li" | "ol" | "titles", string>>, addStatic?: boolean) => {
604
+ declare const useClasses: (classesProp?: Partial<Record<"root", string>>, addStatic?: boolean) => {
570
605
  classes: {
571
606
  root: string;
572
- separator: string;
573
- li: string;
574
- ol: string;
575
- titles: string;
576
607
  };
577
608
  css: {
578
609
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -581,15 +612,12 @@ declare const useClasses: (classesProp?: Partial<Record<"root" | "separator" | "
581
612
  cx: (...args: any) => string;
582
613
  };
583
614
 
584
- declare const useClasses_10: (classesProp?: Partial<Record<"description" | "titleContainer" | "contentContainer" | "drawerPaper" | "searchRoot" | "groupsContainer" | "nodeType", string>>, addStatic?: boolean) => {
615
+ declare const useClasses_10: (classesProp?: Partial<Record<"actionsContainer" | "buttonWidth" | "buttonsContainer" | "buttonSpacing", string>>, addStatic?: boolean) => {
585
616
  classes: {
586
- description: string;
587
- titleContainer: string;
588
- contentContainer: string;
589
- drawerPaper: string;
590
- searchRoot: string;
591
- groupsContainer: string;
592
- nodeType: string;
617
+ actionsContainer: string;
618
+ buttonWidth: string;
619
+ buttonsContainer: string;
620
+ buttonSpacing: string;
593
621
  };
594
622
  css: {
595
623
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -598,20 +626,14 @@ declare const useClasses_10: (classesProp?: Partial<Record<"description" | "titl
598
626
  cx: (...args: any) => string;
599
627
  };
600
628
 
601
- declare const useClasses_11: (classesProp?: Partial<Record<"root" | "title" | "titleContainer" | "mandatory" | "inputContainer" | "contentContainer" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "inputsContainer" | "outputsContainer" | "outputContainer", string>>, addStatic?: boolean) => {
629
+ declare const useClasses_11: (classesProp?: Partial<Record<"titleContainer" | "messageContainer" | "headerContainer" | "buttonWidth" | "rootSummaryButton" | "stepContainer", string>>, addStatic?: boolean) => {
602
630
  classes: {
603
- root: string;
604
- title: string;
605
631
  titleContainer: string;
606
- mandatory: string;
607
- inputContainer: string;
608
- contentContainer: string;
632
+ messageContainer: string;
609
633
  headerContainer: string;
610
- inputsTitleContainer: string;
611
- outputsTitleContainer: string;
612
- inputsContainer: string;
613
- outputsContainer: string;
614
- outputContainer: string;
634
+ buttonWidth: string;
635
+ rootSummaryButton: string;
636
+ stepContainer: string;
615
637
  };
616
638
  css: {
617
639
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -620,11 +642,11 @@ declare const useClasses_11: (classesProp?: Partial<Record<"root" | "title" | "t
620
642
  cx: (...args: any) => string;
621
643
  };
622
644
 
623
- declare const useClasses_12: (classesProp?: Partial<Record<"actions" | "subtitleContainer" | "paramsContainer", string>>, addStatic?: boolean) => {
645
+ declare const useClasses_12: (classesProp?: Partial<Record<"root" | "paper" | "closeButton", string>>, addStatic?: boolean) => {
624
646
  classes: {
625
- actions: string;
626
- subtitleContainer: string;
627
- paramsContainer: string;
647
+ root: string;
648
+ paper: string;
649
+ closeButton: string;
628
650
  };
629
651
  css: {
630
652
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -633,18 +655,24 @@ declare const useClasses_12: (classesProp?: Partial<Record<"actions" | "subtitle
633
655
  cx: (...args: any) => string;
634
656
  };
635
657
 
636
- declare const useClasses_2: (classesProp?: Partial<Record<"xs" | "sm" | "md" | "lg" | "xl" | "root" | "avatar" | "ghost" | "ghostDisabled" | "notCurrent", string>>, addStatic?: boolean) => {
658
+ declare const useClasses_13: (classesProp?: Partial<Record<"contentContainer" | "fixedHeight" | "summaryRef" | "summarySticky" | "summaryContainer", string>>, addStatic?: boolean) => {
659
+ classes: {
660
+ contentContainer: string;
661
+ fixedHeight: string;
662
+ summaryRef: string;
663
+ summarySticky: string;
664
+ summaryContainer: string;
665
+ };
666
+ css: {
667
+ (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
668
+ (...args: CSSInterpolation[]): string;
669
+ };
670
+ cx: (...args: any) => string;
671
+ };
672
+
673
+ declare const useClasses_2: (classesProp?: Partial<Record<"root", string>>, addStatic?: boolean) => {
637
674
  classes: {
638
- xs: string;
639
- sm: string;
640
- md: string;
641
- lg: string;
642
- xl: string;
643
675
  root: string;
644
- avatar: string;
645
- ghost: string;
646
- ghostDisabled: string;
647
- notCurrent: string;
648
676
  };
649
677
  css: {
650
678
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -664,12 +692,15 @@ declare const useClasses_3: (classesProp?: Partial<Record<"root", string>>, addS
664
692
  cx: (...args: any) => string;
665
693
  };
666
694
 
667
- declare const useClasses_4: (classesProp?: Partial<Record<"actionsContainer" | "buttonWidth" | "buttonsContainer" | "buttonSpacing", string>>, addStatic?: boolean) => {
695
+ declare const useClasses_4: (classesProp?: Partial<Record<"description" | "titleContainer" | "drawerPaper" | "contentContainer" | "searchRoot" | "groupsContainer" | "nodeType", string>>, addStatic?: boolean) => {
668
696
  classes: {
669
- actionsContainer: string;
670
- buttonWidth: string;
671
- buttonsContainer: string;
672
- buttonSpacing: string;
697
+ description: string;
698
+ titleContainer: string;
699
+ drawerPaper: string;
700
+ contentContainer: string;
701
+ searchRoot: string;
702
+ groupsContainer: string;
703
+ nodeType: string;
673
704
  };
674
705
  css: {
675
706
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -678,14 +709,20 @@ declare const useClasses_4: (classesProp?: Partial<Record<"actionsContainer" | "
678
709
  cx: (...args: any) => string;
679
710
  };
680
711
 
681
- declare const useClasses_5: (classesProp?: Partial<Record<"titleContainer" | "messageContainer" | "buttonWidth" | "rootSummaryButton" | "headerContainer" | "stepContainer", string>>, addStatic?: boolean) => {
712
+ declare const useClasses_5: (classesProp?: Partial<Record<"root" | "title" | "titleContainer" | "mandatory" | "inputContainer" | "contentContainer" | "headerContainer" | "inputsTitleContainer" | "outputsTitleContainer" | "inputsContainer" | "outputsContainer" | "outputContainer", string>>, addStatic?: boolean) => {
682
713
  classes: {
714
+ root: string;
715
+ title: string;
683
716
  titleContainer: string;
684
- messageContainer: string;
685
- buttonWidth: string;
686
- rootSummaryButton: string;
717
+ mandatory: string;
718
+ inputContainer: string;
719
+ contentContainer: string;
687
720
  headerContainer: string;
688
- stepContainer: string;
721
+ inputsTitleContainer: string;
722
+ outputsTitleContainer: string;
723
+ inputsContainer: string;
724
+ outputsContainer: string;
725
+ outputContainer: string;
689
726
  };
690
727
  css: {
691
728
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -694,11 +731,11 @@ declare const useClasses_5: (classesProp?: Partial<Record<"titleContainer" | "me
694
731
  cx: (...args: any) => string;
695
732
  };
696
733
 
697
- declare const useClasses_6: (classesProp?: Partial<Record<"root" | "paper" | "closeButton", string>>, addStatic?: boolean) => {
734
+ declare const useClasses_6: (classesProp?: Partial<Record<"actions" | "subtitleContainer" | "paramsContainer", string>>, addStatic?: boolean) => {
698
735
  classes: {
699
- root: string;
700
- paper: string;
701
- closeButton: string;
736
+ actions: string;
737
+ subtitleContainer: string;
738
+ paramsContainer: string;
702
739
  };
703
740
  css: {
704
741
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -707,13 +744,13 @@ declare const useClasses_6: (classesProp?: Partial<Record<"root" | "paper" | "cl
707
744
  cx: (...args: any) => string;
708
745
  };
709
746
 
710
- declare const useClasses_7: (classesProp?: Partial<Record<"contentContainer" | "fixedHeight" | "summaryRef" | "summarySticky" | "summaryContainer", string>>, addStatic?: boolean) => {
747
+ declare const useClasses_7: (classesProp?: Partial<Record<"root" | "separator" | "li" | "ol" | "titles", string>>, addStatic?: boolean) => {
711
748
  classes: {
712
- contentContainer: string;
713
- fixedHeight: string;
714
- summaryRef: string;
715
- summarySticky: string;
716
- summaryContainer: string;
749
+ root: string;
750
+ separator: string;
751
+ li: string;
752
+ ol: string;
753
+ titles: string;
717
754
  };
718
755
  css: {
719
756
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -722,9 +759,18 @@ declare const useClasses_7: (classesProp?: Partial<Record<"contentContainer" | "
722
759
  cx: (...args: any) => string;
723
760
  };
724
761
 
725
- declare const useClasses_8: (classesProp?: Partial<Record<"root", string>>, addStatic?: boolean) => {
762
+ declare const useClasses_8: (classesProp?: Partial<Record<"xs" | "sm" | "md" | "lg" | "xl" | "root" | "avatar" | "ghost" | "ghostDisabled" | "notCurrent", string>>, addStatic?: boolean) => {
726
763
  classes: {
764
+ xs: string;
765
+ sm: string;
766
+ md: string;
767
+ lg: string;
768
+ xl: string;
727
769
  root: string;
770
+ avatar: string;
771
+ ghost: string;
772
+ ghostDisabled: string;
773
+ notCurrent: string;
728
774
  };
729
775
  css: {
730
776
  (template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
@@ -786,9 +832,9 @@ export declare const wizardContentClasses: {
786
832
  export declare const wizardTitleClasses: {
787
833
  titleContainer: "HvWizardTitle-titleContainer";
788
834
  messageContainer: "HvWizardTitle-messageContainer";
835
+ headerContainer: "HvWizardTitle-headerContainer";
789
836
  buttonWidth: "HvWizardTitle-buttonWidth";
790
837
  rootSummaryButton: "HvWizardTitle-rootSummaryButton";
791
- headerContainer: "HvWizardTitle-headerContainer";
792
838
  stepContainer: "HvWizardTitle-stepContainer";
793
839
  };
794
840
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-lab",
3
- "version": "5.17.0",
3
+ "version": "5.18.1",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "Contributed React components for the NEXT UI Kit.",
@@ -32,10 +32,11 @@
32
32
  "@dnd-kit/core": "^6.0.8",
33
33
  "@dnd-kit/modifiers": "^6.0.1",
34
34
  "@emotion/css": "^11.11.0",
35
- "@hitachivantara/uikit-react-core": "^5.36.10",
36
- "@hitachivantara/uikit-react-icons": "^5.7.4",
37
- "@hitachivantara/uikit-styles": "^5.16.2",
35
+ "@hitachivantara/uikit-react-core": "^5.37.0",
36
+ "@hitachivantara/uikit-react-icons": "^5.7.6",
37
+ "@hitachivantara/uikit-styles": "^5.16.3",
38
38
  "lodash": "^4.17.21",
39
+ "react-grid-layout": "^1.4.3",
39
40
  "reactflow": "^11.9.4",
40
41
  "uid": "^2.0.2",
41
42
  "usehooks-ts": "^2.9.1",
@@ -48,7 +49,7 @@
48
49
  "access": "public",
49
50
  "directory": "package"
50
51
  },
51
- "gitHead": "51d5aaf46b3f007d313ead5ce8bfd5d3b248bc80",
52
+ "gitHead": "ccae7457cd79b27e3c30bf3865f1fd1e2fbca56d",
52
53
  "main": "dist/cjs/index.cjs",
53
54
  "exports": {
54
55
  ".": {