tenjin-ui-kit 0.2.129 → 0.2.131
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.
|
@@ -26,6 +26,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
26
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
27
|
var BrowsingTestCaseLayout = function BrowsingTestCaseLayout(_ref) {
|
|
28
28
|
var collapse = _ref.collapse,
|
|
29
|
+
hasExtraContent = _ref.hasExtraContent,
|
|
29
30
|
children = _ref.children;
|
|
30
31
|
// return <div className="browsing-test-case-layout">{children}</div>;
|
|
31
32
|
// console.log("Browser", children);
|
|
@@ -125,11 +126,55 @@ var BrowsingTestCaseLayout = function BrowsingTestCaseLayout(_ref) {
|
|
|
125
126
|
}), " "), /*#__PURE__*/_react.default.createElement("div", {
|
|
126
127
|
class: "handler",
|
|
127
128
|
onMouseDown: handleMouseDown
|
|
128
|
-
})), /*#__PURE__*/_react.default.createElement(_material.Paper, {
|
|
129
|
+
})), expand ? /*#__PURE__*/_react.default.createElement(_material.Paper, {
|
|
129
130
|
ref: boxARef,
|
|
130
131
|
elevation: 0,
|
|
131
132
|
className: "rightWrapper"
|
|
132
|
-
}, children[2], children[3])
|
|
133
|
+
}, children[2], children[3]) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_material.Paper, {
|
|
134
|
+
ref: boxARef,
|
|
135
|
+
elevation: 0,
|
|
136
|
+
className: "rightWrapper"
|
|
137
|
+
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children[2], children[3])), !hasExtraContent && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
138
|
+
style: {
|
|
139
|
+
display: "flex",
|
|
140
|
+
justifyContent: "center",
|
|
141
|
+
alignItems: "center",
|
|
142
|
+
flexDirection: "column"
|
|
143
|
+
}
|
|
144
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
145
|
+
style: {
|
|
146
|
+
marginTop: "-0.3rem"
|
|
147
|
+
}
|
|
148
|
+
}, /*#__PURE__*/_react.default.createElement(_iconButton.default, {
|
|
149
|
+
title: !expand ? "Collapse" : "Expand",
|
|
150
|
+
icon: !expand ? /*#__PURE__*/_react.default.createElement(_bs.BsArrowLeftCircle, {
|
|
151
|
+
style: {
|
|
152
|
+
width: "20px",
|
|
153
|
+
height: "20px"
|
|
154
|
+
}
|
|
155
|
+
}) : /*#__PURE__*/_react.default.createElement(_bs.BsArrowRightCircle, {
|
|
156
|
+
style: {
|
|
157
|
+
width: "20px",
|
|
158
|
+
height: "20px"
|
|
159
|
+
}
|
|
160
|
+
}),
|
|
161
|
+
onClick: function onClick() {
|
|
162
|
+
return setExpand(!expand);
|
|
163
|
+
}
|
|
164
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
165
|
+
class: "handler",
|
|
166
|
+
onMouseDown: handleMouseDown
|
|
167
|
+
})), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
168
|
+
style: {
|
|
169
|
+
marginTop: "2rem"
|
|
170
|
+
}
|
|
171
|
+
}, /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
172
|
+
style: {
|
|
173
|
+
color: "#44409A"
|
|
174
|
+
},
|
|
175
|
+
className: "verticalText",
|
|
176
|
+
semibold: true
|
|
177
|
+
}, "Properties")))))));
|
|
133
178
|
};
|
|
134
179
|
BrowsingTestCaseLayout.TreeViewContent = _Index.default;
|
|
135
180
|
BrowsingTestCaseLayout.TreeViewHeader = _Index2.default;
|
|
@@ -64,7 +64,7 @@ Button.propTypes = {
|
|
|
64
64
|
loadingText: _propTypes.default.string,
|
|
65
65
|
children: _propTypes.default.any,
|
|
66
66
|
size: _propTypes.default.string,
|
|
67
|
-
onClick: _propTypes.default.func
|
|
67
|
+
onClick: _propTypes.default.func,
|
|
68
68
|
color: _propTypes.default.string
|
|
69
69
|
};
|
|
70
70
|
var _default = Button;
|
|
@@ -215,7 +215,7 @@ var ProjectMenu = function ProjectMenu(_ref) {
|
|
|
215
215
|
setSelectedSidebarKey(i.key);
|
|
216
216
|
setselectedCollapsedSidebar(i);
|
|
217
217
|
handleClose();
|
|
218
|
-
navigate(i.href);
|
|
218
|
+
i.serverSide ? window.location.href = i.href : navigate(i.href);
|
|
219
219
|
}
|
|
220
220
|
}, draggable ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_DragBox.DragBox, {
|
|
221
221
|
name: i.display
|
package/dist/package.json
CHANGED