tenjin-ui-kit 0.3.70 → 0.3.72-dev

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 (203) hide show
  1. package/common/hooks/apiHooks.js +155 -0
  2. package/common/hooks/newApiHook.js +188 -0
  3. package/{dist/common → common}/utils/security/index.js +2 -2
  4. package/{dist/common → common}/utils/security/securityConfig.js +1 -2
  5. package/components/Canvas.js +330 -0
  6. package/components/DragBox/index.js +40 -0
  7. package/components/InputWithChip/index.js +294 -0
  8. package/{dist/components → components}/RightContext/index.js +19 -28
  9. package/components/WorkFlow.js +42 -0
  10. package/components/WorkFlowBuilder.js +115 -0
  11. package/components/alert/Style.js +20 -0
  12. package/components/alert/index.js +67 -0
  13. package/{dist/components → components}/attachment/index.js +21 -28
  14. package/{dist/components → components}/authenticationProvider/AuthError.js +3 -4
  15. package/{dist/components → components}/authenticationProvider/AuthLoader.js +3 -4
  16. package/components/authenticationProvider/index.js +110 -0
  17. package/{dist/components → components}/avatar/index.js +13 -14
  18. package/components/avatar/styles.js +91 -0
  19. package/components/breadCrumbs/index.js +169 -0
  20. package/{dist/components → components}/breadCrumbs/style.js +1 -4
  21. package/{dist/components → components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/index.js +5 -6
  22. package/{dist/components → components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/style.js +5 -8
  23. package/{dist/components → components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewHeader/index.js +4 -5
  24. package/{dist/components → components}/browsingTestCaseLayout/TreeViewLayout/TreeViewContent/Index.js +4 -5
  25. package/{dist/components → components}/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/Index.js +5 -6
  26. package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +23 -0
  27. package/{dist/components → components}/browsingTestCaseLayout/index.js +25 -30
  28. package/components/button/index.js +133 -0
  29. package/{dist/components → components}/chatBotModal/index.js +36 -45
  30. package/components/checkBox/index.js +29 -0
  31. package/{dist/components → components}/combobox/index.js +51 -72
  32. package/components/divider/index.js +37 -0
  33. package/{dist/components → components}/editableField/index.js +19 -28
  34. package/{dist/components → components}/error/index.js +6 -12
  35. package/components/errorBoundary/index.js +140 -0
  36. package/components/fileUploader/index.js +151 -0
  37. package/components/fileUploader/style.js +57 -0
  38. package/components/filter/ValueSelector.js +333 -0
  39. package/{dist/components → components}/filter/index.js +26 -33
  40. package/{dist/components → components}/iconButton/index.js +3 -4
  41. package/components/input/index.js +167 -0
  42. package/components/layout/index.js +94 -0
  43. package/components/layout/main/index.js +24 -0
  44. package/components/layout/main/style.js +19 -0
  45. package/{dist/components → components}/layout/pageContent/index.js +6 -7
  46. package/components/layout/sidebar/FlatMenu.js +64 -0
  47. package/components/layout/sidebar/GroupedIconMenu.js +233 -0
  48. package/components/layout/sidebar/GroupedMenu.js +57 -0
  49. package/components/layout/sidebar/ProjectMenu.js +223 -0
  50. package/components/layout/sidebar/index.js +88 -0
  51. package/components/layout/sidebar/style.js +149 -0
  52. package/components/layout/topBar/ProjectTopbar.js +388 -0
  53. package/components/layout/topBar/UserAvatar.js +138 -0
  54. package/components/layout/topBar/index.js +121 -0
  55. package/{dist/components → components}/loader/index.js +9 -12
  56. package/components/menu/index.js +71 -0
  57. package/{dist/components → components}/modal/Modal.js +5 -6
  58. package/components/modal/index.js +88 -0
  59. package/components/modal/style.js +65 -0
  60. package/components/optionMenu/index.js +105 -0
  61. package/components/pagination/index.js +114 -0
  62. package/components/pagination/style.js +33 -0
  63. package/components/paginationUpdated/index.js +74 -0
  64. package/components/paper/index.js +43 -0
  65. package/components/paper/style.js +31 -0
  66. package/components/reactSelect/index.js +195 -0
  67. package/components/reactSelect/style.js +130 -0
  68. package/components/richTextEditor/index.js +64 -0
  69. package/components/select/GroupedSelect.js +167 -0
  70. package/components/select/SimpleSelect.js +184 -0
  71. package/{dist/components → components}/select/index.js +38 -54
  72. package/components/simpleSelect/index.js +53 -0
  73. package/{dist/components → components}/sort/index.js +19 -22
  74. package/{dist/components → components}/switch/index.js +10 -11
  75. package/components/switch/style.js +39 -0
  76. package/{dist/components → components}/switch/switch.js +17 -23
  77. package/components/table/ReactTable.js +101 -0
  78. package/components/table/SimpleTable.js +117 -0
  79. package/components/table/index.js +381 -0
  80. package/components/text/index.js +65 -0
  81. package/{dist/components → components}/timeStamp/index.js +4 -6
  82. package/components/timeStamp/style.js +20 -0
  83. package/components/topBar/index.js +169 -0
  84. package/{dist/components → components}/tree/index.js +29 -47
  85. package/components/tree/style.js +29 -0
  86. package/components/valuePicker/ValueSelector.js +205 -0
  87. package/{dist/components → components}/valuePicker/index.js +19 -26
  88. package/{dist/components → components}/wrapperLayout/layout/index.js +4 -5
  89. package/{dist/components → components}/wrapperLayout/main/index.js +4 -5
  90. package/{dist/components → components}/wrapperLayout/main/pageContainer/index.js +4 -5
  91. package/components/wrapperLayout/main/sideBar/index.js +272 -0
  92. package/components/wrapperLayout/main/sideBar/style.js +190 -0
  93. package/{dist/components → components}/wrapperLayout/topBar/UserAvatar.js +4 -5
  94. package/components/wrapperLayout/topBar/avatar.js +55 -0
  95. package/components/wrapperLayout/topBar/index.js +196 -0
  96. package/{dist/components → components}/wrapperLayout/topBar/menuIcon.js +4 -5
  97. package/components/wrapperLayout/topBar/style.js +74 -0
  98. package/http/index.js +133 -0
  99. package/{dist/index.js → index.js} +53 -55
  100. package/package.json +5 -3
  101. package/{dist/templates → templates}/listPage/index.js +36 -57
  102. package/{dist/themes → themes}/default.js +5 -7
  103. package/{dist/themes → themes}/defaultSmall.js +2 -3
  104. package/{dist/themes → themes}/responsiveTheme.js +6 -8
  105. package/.dockerignore +0 -6
  106. package/.storybook/main.js +0 -16
  107. package/.storybook/preview.js +0 -11
  108. package/Dockerfile +0 -17
  109. package/Jenkinsfile +0 -66
  110. package/build/asset-manifest.json +0 -16
  111. package/build/favicon.ico +0 -0
  112. package/build/index.html +0 -1
  113. package/build/logo192.png +0 -0
  114. package/build/logo512.png +0 -0
  115. package/build/manifest.json +0 -25
  116. package/build/robots.txt +0 -3
  117. package/build/static/css/main.522396f6.css +0 -2
  118. package/build/static/css/main.522396f6.css.map +0 -1
  119. package/build/static/js/787.18cf14d0.chunk.js +0 -2
  120. package/build/static/js/787.18cf14d0.chunk.js.map +0 -1
  121. package/build/static/js/main.d71fecac.js +0 -3
  122. package/build/static/js/main.d71fecac.js.LICENSE.txt +0 -50
  123. package/build/static/js/main.d71fecac.js.map +0 -1
  124. package/build/static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg +0 -1
  125. package/build/tenjinLogo.png +0 -0
  126. package/dist/common/hooks/apiHooks.js +0 -223
  127. package/dist/common/hooks/newApiHook.js +0 -270
  128. package/dist/components/Canvas.js +0 -254
  129. package/dist/components/DragBox/index.js +0 -45
  130. package/dist/components/InputWithChip/index.js +0 -187
  131. package/dist/components/WorkFlow.js +0 -47
  132. package/dist/components/WorkFlowBuilder.js +0 -130
  133. package/dist/components/alert/Style.js +0 -23
  134. package/dist/components/alert/index.js +0 -69
  135. package/dist/components/authenticationProvider/index.js +0 -166
  136. package/dist/components/avatar/styles.js +0 -94
  137. package/dist/components/breadCrumbs/index.js +0 -180
  138. package/dist/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +0 -26
  139. package/dist/components/button/index.js +0 -140
  140. package/dist/components/checkBox/index.js +0 -30
  141. package/dist/components/divider/index.js +0 -41
  142. package/dist/components/errorBoundary/index.js +0 -160
  143. package/dist/components/fileUploader/index.js +0 -156
  144. package/dist/components/fileUploader/style.js +0 -60
  145. package/dist/components/filter/ValueSelector.js +0 -405
  146. package/dist/components/input/index.js +0 -174
  147. package/dist/components/layout/index.js +0 -98
  148. package/dist/components/layout/main/index.js +0 -27
  149. package/dist/components/layout/main/style.js +0 -22
  150. package/dist/components/layout/sidebar/FlatMenu.js +0 -64
  151. package/dist/components/layout/sidebar/GroupedIconMenu.js +0 -246
  152. package/dist/components/layout/sidebar/GroupedMenu.js +0 -67
  153. package/dist/components/layout/sidebar/ProjectMenu.js +0 -230
  154. package/dist/components/layout/sidebar/index.js +0 -91
  155. package/dist/components/layout/sidebar/style.js +0 -154
  156. package/dist/components/layout/topBar/ProjectTopbar.js +0 -338
  157. package/dist/components/layout/topBar/UserAvatar.js +0 -145
  158. package/dist/components/layout/topBar/index.js +0 -132
  159. package/dist/components/menu/index.js +0 -80
  160. package/dist/components/modal/index.js +0 -91
  161. package/dist/components/modal/style.js +0 -68
  162. package/dist/components/optionMenu/index.js +0 -112
  163. package/dist/components/pagination/index.js +0 -129
  164. package/dist/components/pagination/style.js +0 -36
  165. package/dist/components/paginationUpdated/index.js +0 -75
  166. package/dist/components/paper/index.js +0 -44
  167. package/dist/components/paper/style.js +0 -34
  168. package/dist/components/reactSelect/index.js +0 -212
  169. package/dist/components/reactSelect/style.js +0 -163
  170. package/dist/components/richTextEditor/index.js +0 -83
  171. package/dist/components/select/GroupedSelect.js +0 -183
  172. package/dist/components/select/SimpleSelect.js +0 -212
  173. package/dist/components/simpleSelect/index.js +0 -56
  174. package/dist/components/switch/style.js +0 -42
  175. package/dist/components/table/ReactTable.js +0 -118
  176. package/dist/components/table/SimpleTable.js +0 -136
  177. package/dist/components/table/index.js +0 -256
  178. package/dist/components/text/index.js +0 -67
  179. package/dist/components/timeStamp/style.js +0 -23
  180. package/dist/components/topBar/index.js +0 -176
  181. package/dist/components/tree/style.js +0 -32
  182. package/dist/components/valuePicker/ValueSelector.js +0 -273
  183. package/dist/components/wrapperLayout/main/sideBar/index.js +0 -262
  184. package/dist/components/wrapperLayout/main/sideBar/style.js +0 -196
  185. package/dist/components/wrapperLayout/topBar/avatar.js +0 -57
  186. package/dist/components/wrapperLayout/topBar/index.js +0 -182
  187. package/dist/components/wrapperLayout/topBar/style.js +0 -77
  188. package/dist/http/index.js +0 -226
  189. package/public/favicon.ico +0 -0
  190. package/public/index.html +0 -43
  191. package/public/logo192.png +0 -0
  192. package/public/logo512.png +0 -0
  193. package/public/manifest.json +0 -25
  194. package/public/robots.txt +0 -3
  195. package/public/tenjinLogo.png +0 -0
  196. /package/{dist/assets → assets}/images/MicrosoftTeams-image (1).png +0 -0
  197. /package/{dist/assets → assets}/images/tenjin-4.0-logo.png +0 -0
  198. /package/{dist/components → components}/RightContext/index.css +0 -0
  199. /package/{dist/components → components}/browsingTestCaseLayout/style.css +0 -0
  200. /package/{dist/components → components}/errorBoundary/Error.jpg +0 -0
  201. /package/{dist/components → components}/iconButton/style.js +0 -0
  202. /package/{dist/components → components}/richTextEditor/style.js +0 -0
  203. /package/{dist/components → components}/wrapperLayout/layout/style.js +0 -0
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DragBox = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactDnd = require("react-dnd");
9
+ var _text = _interopRequireDefault(require("../text"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
12
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
14
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
15
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
16
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
17
+ const DragBox = exports.DragBox = function DragBox(_ref) {
18
+ let name = _ref.name;
19
+ const _useDrag = (0, _reactDnd.useDrag)(() => ({
20
+ type: "box",
21
+ item: {
22
+ name
23
+ },
24
+ collect: monitor => ({
25
+ isDragging: monitor.isDragging(),
26
+ handlerId: monitor.getHandlerId()
27
+ })
28
+ })),
29
+ _useDrag2 = _slicedToArray(_useDrag, 2),
30
+ isDragging = _useDrag2[0].isDragging,
31
+ drag = _useDrag2[1];
32
+ const opacity = isDragging ? 0.4 : 1;
33
+ return /*#__PURE__*/_react.default.createElement("div", {
34
+ ref: drag,
35
+ style: {
36
+ opacity
37
+ },
38
+ "data-testid": "box"
39
+ }, /*#__PURE__*/_react.default.createElement(_text.default, null, name));
40
+ };
@@ -0,0 +1,294 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _Chip = _interopRequireDefault(require("@mui/material/Chip"));
9
+ var _material = require("@mui/material");
10
+ var _Clear = _interopRequireDefault(require("@mui/icons-material/Clear"));
11
+ var _styles = require("@mui/material/styles");
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+ var _text = _interopRequireDefault(require("../text"));
14
+ const _excluded = ["value", "id", "onChange", "fullWidth", "label", "isRequired", "isDisabled", "errorMessage", "error", "initialValue", "height"]; // import React, { useEffect, useState } from "react";
15
+ // import Chip from "@mui/material/Chip";
16
+ // import { FormControl, InputLabel, TextField } from "@mui/material";
17
+ // import ClearIcon from "@mui/icons-material/Clear";
18
+ // import { useTheme } from "@mui/material/styles";
19
+ // import PropTypes from "prop-types";
20
+ // import Text from "../text";
21
+ // const InputWithChip = ({
22
+ // value,
23
+ // id,
24
+ // onChange,
25
+ // fullWidth,
26
+ // label,
27
+ // isRequired,
28
+ // isDisabled,
29
+ // errorMessage,
30
+ // error,
31
+ // initialValue,
32
+ // ...rest
33
+ // }) => {
34
+ // const [chips, setChips] = useState(initialValue ? [...initialValue] : []);
35
+ // const theme = useTheme();
36
+ // const [txtValue, setTxtValue] = useState("");
37
+ // useEffect(() => {
38
+ // if (onChange) {
39
+ // onChange(chips);
40
+ // }
41
+ // }, [chips]);
42
+ // const onTextValueChange = (e) => {
43
+ // const value = e.target.value.trim();
44
+ // setTxtValue(value.replace(",", ""));
45
+ // };
46
+ // const handleAddChip = (event) => {
47
+ // if (
48
+ // (event.key === "Enter" ||
49
+ // event.keyCode === 32 ||
50
+ // event.keyCode === 188 ||
51
+ // event.keyCode === 9 ||
52
+ // event.type === "blur") &&
53
+ // event.target.value.replace(",", "")
54
+ // ) {
55
+ // const {
56
+ // target: { value },
57
+ // } = event;
58
+ // const newValue =
59
+ // typeof value === "string"
60
+ // ? value.replace(",", "").trim()
61
+ // : value.trim();
62
+ // // if (chips.includes(newValue)) return; //add if any info or anything needs to be shown
63
+ // setChips([...chips, newValue]);
64
+ // onChange([...chips, newValue]);
65
+ // setTxtValue("");
66
+ // event.target.parentNode.querySelector("input").value = "";
67
+ // }
68
+ // };
69
+ // const handleDeleteChip = (chipToDelete) => {
70
+ // setChips((chips) => chips.filter((chip) => chip !== chipToDelete));
71
+ // };
72
+ // return (
73
+ // <div>
74
+ // <FormControl variant="standard" fullWidth={fullWidth}>
75
+ // {label && (
76
+ // <Text color={theme.palette.grey[600]} required={isRequired}>
77
+ // {label}
78
+ // {isRequired ? <span style={{ color: "red" }}> * </span> : ""}
79
+ // </Text>
80
+ // )}
81
+ // <TextField
82
+ // value={txtValue}
83
+ // {...rest}
84
+ // id={id}
85
+ // required={isRequired}
86
+ // disabled={isDisabled}
87
+ // onKeyDown={handleAddChip}
88
+ // onBlur={(e) => {
89
+ // if (!chips?.length > 0) {
90
+ // setChips([]);
91
+ // }
92
+ // if (e.target.value !== "") {
93
+ // handleAddChip(e);
94
+ // }
95
+ // }}
96
+ // style={{ backgroundColor: isDisabled && "#E7E7E7" }}
97
+ // sx={{
98
+ // "& MuiOutlinedInput": { backgroundColor: isDisabled && "#E7E7E7" },
99
+ // "& input": {
100
+ // // backgroundColor: isDisabled && '#E7E7E7',
101
+ // color: isDisabled && "#000000",
102
+ // },
103
+ // marginTop: label ? theme.spacing(1) : 0,
104
+ // "& label": {
105
+ // fontWeight: 500,
106
+ // },
107
+ // }}
108
+ // onChange={onTextValueChange}
109
+ // helperText={errorMessage}
110
+ // error={error}
111
+ // InputProps={{
112
+ // startAdornment: chips.map((chip, index) => (
113
+ // <Chip
114
+ // key={`${chip}-${index}`}
115
+ // label={<Text>{chip}</Text>}
116
+ // onDelete={() => handleDeleteChip(chip)}
117
+ // deleteIcon={<ClearIcon fontSize="small" />}
118
+ // style={{ margin: "0.2rem" }}
119
+ // size="small"
120
+ // />
121
+ // )),
122
+ // }}
123
+ // />
124
+ // </FormControl>
125
+ // </div>
126
+ // );
127
+ // };
128
+ // InputWithChip.propTypes = {
129
+ // label: PropTypes.string,
130
+ // fullWidth: PropTypes.bool,
131
+ // size: PropTypes.string,
132
+ // isRequired: PropTypes.bool,
133
+ // isDisabled: PropTypes.bool,
134
+ // error: PropTypes.bool,
135
+ // };
136
+ // export default InputWithChip;
137
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
138
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
139
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
140
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
141
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
142
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
143
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
144
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
145
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
146
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
147
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
148
+ const InputWithChip = _ref => {
149
+ let value = _ref.value,
150
+ id = _ref.id,
151
+ onChange = _ref.onChange,
152
+ fullWidth = _ref.fullWidth,
153
+ label = _ref.label,
154
+ isRequired = _ref.isRequired,
155
+ isDisabled = _ref.isDisabled,
156
+ errorMessage = _ref.errorMessage,
157
+ error = _ref.error,
158
+ initialValue = _ref.initialValue,
159
+ height = _ref.height,
160
+ rest = _objectWithoutProperties(_ref, _excluded);
161
+ const _useState = (0, _react.useState)(value ? [...value] : []),
162
+ _useState2 = _slicedToArray(_useState, 2),
163
+ chips = _useState2[0],
164
+ setChips = _useState2[1];
165
+ const theme = (0, _styles.useTheme)();
166
+ const _useState3 = (0, _react.useState)(""),
167
+ _useState4 = _slicedToArray(_useState3, 2),
168
+ txtValue = _useState4[0],
169
+ setTxtValue = _useState4[1];
170
+ const _useState5 = (0, _react.useState)(null),
171
+ _useState6 = _slicedToArray(_useState5, 2),
172
+ duplicateWarnig = _useState6[0],
173
+ setDuplicateWarning = _useState6[1];
174
+ (0, _react.useEffect)(() => {
175
+ if (onChange) {
176
+ onChange(chips);
177
+ }
178
+ }, [chips]);
179
+ const onTextValueChange = e => {
180
+ const value = e.target.value.trim();
181
+ setTxtValue(value.replace(",", ""));
182
+ };
183
+ const handleAddChip = event => {
184
+ setDuplicateWarning({
185
+ status: false,
186
+ message: ""
187
+ });
188
+ if ((event.key === "Enter" || event.keyCode === 32 || event.keyCode === 188 || event.keyCode === 9 || event.type === "blur") && event.target.value.replace(",", "")) {
189
+ const value = event.target.value;
190
+ const newValue = typeof value === "string" ? value.replace(",", "").trim() : value.trim();
191
+ // if (chips.includes(newValue)) return; //add if any info or anything needs to be shown
192
+ let isPresent = chips.includes(newValue);
193
+ if (isPresent) {
194
+ setDuplicateWarning({
195
+ status: true,
196
+ message: "".concat(newValue, " already exists")
197
+ });
198
+ } else {
199
+ setChips([...chips, newValue]);
200
+ onChange([...chips, newValue]);
201
+ setTxtValue("");
202
+ event.target.parentNode.querySelector("input").value = "";
203
+ }
204
+ }
205
+ };
206
+ const handleDeleteChip = chipToDelete => {
207
+ setChips(chips => chips.filter(chip => chip !== chipToDelete));
208
+ };
209
+ return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.FormControl, {
210
+ variant: "standard",
211
+ fullWidth: fullWidth
212
+ }, label && /*#__PURE__*/_react.default.createElement(_text.default, {
213
+ color: theme.palette.grey[600],
214
+ required: isRequired
215
+ }, label, isRequired ? /*#__PURE__*/_react.default.createElement("span", {
216
+ style: {
217
+ color: "red"
218
+ }
219
+ }, " * ") : ""), /*#__PURE__*/_react.default.createElement(_material.TextField, _extends({
220
+ value: txtValue
221
+ }, rest, {
222
+ id: id,
223
+ required: isRequired,
224
+ disabled: isDisabled,
225
+ onKeyDown: handleAddChip,
226
+ onBlur: e => {
227
+ if (!(chips !== null && chips !== void 0 && chips.length) > 0) {
228
+ setChips([]);
229
+ }
230
+ if (e.target.value !== "") {
231
+ handleAddChip(e);
232
+ }
233
+ },
234
+ style: {
235
+ backgroundColor: isDisabled && "#E7E7E7"
236
+ },
237
+ sx: {
238
+ "& MuiOutlinedInput": {
239
+ backgroundColor: isDisabled && "#E7E7E7"
240
+ },
241
+ "& input": {
242
+ // backgroundColor: isDisabled && '#E7E7E7',
243
+ color: isDisabled && "#000000"
244
+ },
245
+ marginTop: label ? theme.spacing(1) : 0,
246
+ "& label": {
247
+ fontWeight: 500
248
+ }
249
+ },
250
+ onChange: onTextValueChange,
251
+ helperText: errorMessage,
252
+ error: error
253
+ // InputProps={{
254
+ // startAdornment: chips.map((chip, index) => (
255
+ // <Chip
256
+ // key={`${chip}-${index}`}
257
+ // label={<Text>{chip}</Text>}
258
+ // onDelete={() => handleDeleteChip(chip)}
259
+ // deleteIcon={<ClearIcon fontSize="small" />}
260
+ // style={{ margin: "0.2rem" }}
261
+ // size="small"
262
+ // />
263
+ // )),
264
+ // }}
265
+ }))), (duplicateWarnig === null || duplicateWarnig === void 0 ? void 0 : duplicateWarnig.status) && /*#__PURE__*/_react.default.createElement(_material.Alert, {
266
+ severity: "warning"
267
+ }, duplicateWarnig === null || duplicateWarnig === void 0 ? void 0 : duplicateWarnig.message), !!chips && /*#__PURE__*/_react.default.createElement(_material.Box, {
268
+ maxHeight: theme.spacing(20),
269
+ overflow: "auto"
270
+ // border={!!chips && "1px solid #E7E7E7"}
271
+ ,
272
+ mt: theme.spacing(2)
273
+ }, /*#__PURE__*/_react.default.createElement(_text.default, null, chips.map((chip, index) => /*#__PURE__*/_react.default.createElement(_Chip.default, {
274
+ key: "".concat(chip, "-").concat(index),
275
+ label: /*#__PURE__*/_react.default.createElement(_text.default, null, chip),
276
+ onDelete: () => handleDeleteChip(chip),
277
+ deleteIcon: /*#__PURE__*/_react.default.createElement(_Clear.default, {
278
+ fontSize: "small"
279
+ }),
280
+ style: {
281
+ margin: "0.2rem"
282
+ },
283
+ size: "small"
284
+ })))));
285
+ };
286
+ InputWithChip.propTypes = {
287
+ label: _propTypes.default.string,
288
+ fullWidth: _propTypes.default.bool,
289
+ size: _propTypes.default.string,
290
+ isRequired: _propTypes.default.bool,
291
+ isDisabled: _propTypes.default.bool,
292
+ error: _propTypes.default.bool
293
+ };
294
+ var _default = exports.default = InputWithChip;
@@ -7,43 +7,43 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  require("./index.css");
9
9
  var _text = _interopRequireDefault(require("../text"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
12
12
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
14
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
15
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
16
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
- var RightContext = function RightContext() {
18
- var _React$useState = _react.default.useState(false),
13
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
14
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
15
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
16
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
17
+ const RightContext = () => {
18
+ const _React$useState = _react.default.useState(false),
19
19
  _React$useState2 = _slicedToArray(_React$useState, 2),
20
20
  context = _React$useState2[0],
21
21
  setContext = _React$useState2[1];
22
- var _React$useState3 = _react.default.useState({
22
+ const _React$useState3 = _react.default.useState({
23
23
  x: 0,
24
24
  y: 0
25
25
  }),
26
26
  _React$useState4 = _slicedToArray(_React$useState3, 2),
27
27
  xYPosistion = _React$useState4[0],
28
28
  setXyPosistion = _React$useState4[1];
29
- var showNav = function showNav(event) {
29
+ const showNav = event => {
30
30
  event.preventDefault();
31
31
  setContext(false);
32
- var positionChange = {
32
+ const positionChange = {
33
33
  x: event.pageX,
34
34
  y: event.pageY
35
35
  };
36
36
  setXyPosistion(positionChange);
37
37
  setContext(true);
38
38
  };
39
- var hideContext = function hideContext(event) {
39
+ const hideContext = event => {
40
40
  setContext(false);
41
41
  };
42
- var _React$useState5 = _react.default.useState(),
42
+ const _React$useState5 = _react.default.useState(),
43
43
  _React$useState6 = _slicedToArray(_React$useState5, 2),
44
44
  chosen = _React$useState6[0],
45
45
  setChosen = _React$useState6[1];
46
- var initMenu = function initMenu(chosen) {
46
+ const initMenu = chosen => {
47
47
  setChosen(chosen);
48
48
  };
49
49
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_text.default, {
@@ -62,25 +62,16 @@ var RightContext = function RightContext() {
62
62
  className: "rightClick"
63
63
  }, /*#__PURE__*/_react.default.createElement("div", {
64
64
  className: "menuElement",
65
- onClick: function onClick() {
66
- return initMenu("New");
67
- }
65
+ onClick: () => initMenu("New")
68
66
  }, /*#__PURE__*/_react.default.createElement(_text.default, null, "Refactor")), /*#__PURE__*/_react.default.createElement("div", {
69
67
  className: "menuElement",
70
- onClick: function onClick() {
71
- return initMenu("Delete");
72
- }
68
+ onClick: () => initMenu("Delete")
73
69
  }, /*#__PURE__*/_react.default.createElement(_text.default, null, "Cut")), /*#__PURE__*/_react.default.createElement("div", {
74
70
  className: "menuElement",
75
- onClick: function onClick() {
76
- return initMenu("Copy");
77
- }
71
+ onClick: () => initMenu("Copy")
78
72
  }, /*#__PURE__*/_react.default.createElement(_text.default, null, "Copy")), /*#__PURE__*/_react.default.createElement("div", {
79
73
  className: "menuElement",
80
- onClick: function onClick() {
81
- return initMenu("Paste");
82
- }
74
+ onClick: () => initMenu("Paste")
83
75
  }, /*#__PURE__*/_react.default.createElement(_text.default, null, "Paste")))));
84
76
  };
85
- var _default = RightContext;
86
- exports.default = _default;
77
+ var _default = exports.default = RightContext;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactDnd = require("react-dnd");
9
+ var _text = _interopRequireDefault(require("./text"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
12
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
14
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
15
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
16
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
17
+ const WorkFlow = props => {
18
+ const name = props.name,
19
+ id = props.id;
20
+ const _useDrag = (0, _reactDnd.useDrag)(() => ({
21
+ type: 'block',
22
+ item: {
23
+ id: props.id
24
+ },
25
+ collect: monitor => ({
26
+ isDragging: !!monitor.isDragging()
27
+ })
28
+ })),
29
+ _useDrag2 = _slicedToArray(_useDrag, 2),
30
+ isDragging = _useDrag2[0].isDragging,
31
+ drag = _useDrag2[1];
32
+ return /*#__PURE__*/_react.default.createElement("div", {
33
+ ref: drag,
34
+ width: "150px",
35
+ style: {
36
+ border: isDragging ? '5px solid pink' : '0px'
37
+ }
38
+ }, /*#__PURE__*/_react.default.createElement(_text.default, {
39
+ variant: "h4"
40
+ }, "WorkFlow- ".concat(name)));
41
+ };
42
+ var _default = exports.default = WorkFlow;
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactflow = require("reactflow");
9
+ var _d3Hierarchy = require("d3-hierarchy");
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
11
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
12
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
14
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
15
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
16
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
17
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
20
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
21
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // import ReactFlow, { addEdge, removeElements } from 'react-flow-renderer';
22
+ // Custom node styles
23
+ const customNodeStyles = {
24
+ border: '1px solid #ddd',
25
+ padding: '10px',
26
+ borderRadius: '5px'
27
+ };
28
+
29
+ // Custom node types
30
+ const customNodeTypes = [{
31
+ default: {
32
+ style: customNodeStyles
33
+ },
34
+ start: {
35
+ style: _objectSpread(_objectSpread({}, customNodeStyles), {}, {
36
+ background: '#6c9'
37
+ })
38
+ },
39
+ end: {
40
+ style: _objectSpread(_objectSpread({}, customNodeStyles), {}, {
41
+ background: '#c69'
42
+ })
43
+ }
44
+ }];
45
+
46
+ // Custom edge types
47
+ const customEdgeTypes = {
48
+ default: {
49
+ stroke: '#ddd'
50
+ },
51
+ active: {
52
+ stroke: '#6c9'
53
+ }
54
+ };
55
+
56
+ // Sample data for the workflow
57
+ const data = [{
58
+ name: 'Workflow',
59
+ children: [{
60
+ name: 'Start',
61
+ type: 'start',
62
+ children: [{
63
+ name: 'Step 1'
64
+ }, {
65
+ name: 'Step 2'
66
+ }]
67
+ }, {
68
+ name: 'End',
69
+ type: 'end',
70
+ children: [{
71
+ name: 'Step 3'
72
+ }, {
73
+ name: 'Step 4'
74
+ }]
75
+ }]
76
+ }];
77
+
78
+ // Generate the hierarchy data
79
+ const hierarchyData = (0, _d3Hierarchy.hierarchy)(data);
80
+ function WorkFlowBuilder() {
81
+ const _useState = (0, _react.useState)(hierarchyData.descendants().map(d => ({
82
+ id: d.data.name,
83
+ type: d.data.type || 'default',
84
+ data: {
85
+ label: d.data.name
86
+ },
87
+ position: {
88
+ x: d.depth * 200,
89
+ y: d.index * 100
90
+ }
91
+ }))),
92
+ _useState2 = _slicedToArray(_useState, 2),
93
+ elements = _useState2[0],
94
+ setElements = _useState2[1];
95
+ const onElementsRemoveStart = () => console.log('Elements removal started');
96
+ const onElementsRemoveEnd = removedElements => setElements(els => (0, _reactflow.removeElements)(removedElements, els));
97
+ const onConnect = params => setElements(els => (0, _reactflow.addEdge)(_objectSpread(_objectSpread({}, params), {}, {
98
+ type: 'default'
99
+ }), els));
100
+ return /*#__PURE__*/_react.default.createElement("div", {
101
+ style: {
102
+ height: '800px'
103
+ }
104
+ }, /*#__PURE__*/_react.default.createElement(_reactflow.ReactFlow, {
105
+ elements: elements,
106
+ nodes: customNodeTypes,
107
+ edges: customEdgeTypes,
108
+ onNodesChange: onElementsRemoveStart,
109
+ onEdgesChange: onElementsRemoveEnd,
110
+ onConnect: onConnect,
111
+ fitView: true,
112
+ attributionPosition: "bottom-left"
113
+ }));
114
+ }
115
+ var _default = exports.default = WorkFlowBuilder;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _styles = require("@mui/styles");
8
+ var _default2 = _interopRequireDefault(require("../../themes/default"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ var _default = exports.default = (0, _styles.makeStyles)(() => ({
11
+ alertRoot: {
12
+ alignItems: "center"
13
+ },
14
+ root: {
15
+ width: "100%",
16
+ "& > * + *": {
17
+ marginTop: _default2.default.spacing(2)
18
+ }
19
+ }
20
+ }));