@banch0u/core-project-test-repository 2.3.9 → 2.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/assets/css/antd.css
CHANGED
|
@@ -216,6 +216,7 @@
|
|
|
216
216
|
|
|
217
217
|
.ant-table-row td {
|
|
218
218
|
vertical-align: middle !important;
|
|
219
|
+
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
.ant-pagination-item {
|
|
@@ -262,12 +263,12 @@
|
|
|
262
263
|
.rowClassName1 td:first-child {
|
|
263
264
|
border-top-left-radius: 4px;
|
|
264
265
|
border-bottom-left-radius: 4px;
|
|
265
|
-
border-left: 1px solid
|
|
266
|
+
border-left: 1px solid transparent !important;
|
|
266
267
|
}
|
|
267
268
|
|
|
268
269
|
.rowClassName1 td:first-child {
|
|
269
|
-
border-top: 1px solid
|
|
270
|
-
border-bottom: 1px solid
|
|
270
|
+
border-top: 1px solid transparent !important;
|
|
271
|
+
border-bottom: 1px solid transparent !important;
|
|
271
272
|
}
|
|
272
273
|
|
|
273
274
|
.rowClassName1 td:nth-child(2) {
|
|
@@ -5,6 +5,7 @@ import React, { useEffect } from "react";
|
|
|
5
5
|
import { TreeSelect } from "antd";
|
|
6
6
|
import { useDispatch, useSelector } from "react-redux";
|
|
7
7
|
import { getInventoryCategoriesAll } from "../../store/slices/questionnaire";
|
|
8
|
+
import style from "./index.module.scss";
|
|
8
9
|
var _mapCategoriesToTree = function mapCategoriesToTree() {
|
|
9
10
|
var nodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
10
11
|
return nodes.map(function (node) {
|
|
@@ -41,7 +42,8 @@ var CategoryTreeSelect = function CategoryTreeSelect(_ref) {
|
|
|
41
42
|
style: {
|
|
42
43
|
width: "100%",
|
|
43
44
|
height: 42
|
|
44
|
-
}
|
|
45
|
+
},
|
|
46
|
+
className: style.treeSelect
|
|
45
47
|
}, rest));
|
|
46
48
|
};
|
|
47
49
|
export default CategoryTreeSelect;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.treeSelect > div {
|
|
2
|
+
padding: 5px 16px !important;
|
|
3
|
+
border-radius: 6px !important;
|
|
4
|
+
}
|
|
5
|
+
.treeSelect {
|
|
6
|
+
width: 100%;
|
|
7
|
+
span {
|
|
8
|
+
font-size: 16px !important;
|
|
9
|
+
font-weight: 500 !important;
|
|
10
|
+
line-height: 24px !important;
|
|
11
|
+
text-align: left !important;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
5
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
6
|
+
var _excluded = ["tableId", "columns", "dataSource", "selectedColumns", "innerW", "disableDrag", "big", "isArchive", "expanded"];
|
|
5
7
|
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; }
|
|
6
8
|
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; }
|
|
7
9
|
import React, { useState, useEffect } from "react";
|
|
@@ -20,7 +22,8 @@ var Table = function Table(_ref) {
|
|
|
20
22
|
big = _ref$big === void 0 ? false : _ref$big,
|
|
21
23
|
_ref$isArchive = _ref.isArchive,
|
|
22
24
|
isArchive = _ref$isArchive === void 0 ? false : _ref$isArchive,
|
|
23
|
-
expanded = _ref.expanded
|
|
25
|
+
expanded = _ref.expanded,
|
|
26
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
24
27
|
var getSavedOrder = function getSavedOrder(id) {
|
|
25
28
|
var savedOrder = Cookies.get("columnOrder_".concat(id));
|
|
26
29
|
return savedOrder ? savedOrder.split(",") : null;
|
|
@@ -192,7 +195,7 @@ var Table = function Table(_ref) {
|
|
|
192
195
|
};
|
|
193
196
|
return /*#__PURE__*/React.createElement("div", {
|
|
194
197
|
className: style.table_container
|
|
195
|
-
}, /*#__PURE__*/React.createElement(AntTable, {
|
|
198
|
+
}, /*#__PURE__*/React.createElement(AntTable, _extends({
|
|
196
199
|
rowClassName: function rowClassName(record) {
|
|
197
200
|
return record.className;
|
|
198
201
|
},
|
|
@@ -204,6 +207,6 @@ var Table = function Table(_ref) {
|
|
|
204
207
|
x: innerW * (Array.isArray(selectedColumns) ? selectedColumns.length - 1 : 0),
|
|
205
208
|
y: !isArchive ? "calc(88vh - ".concat(window.innerWidth > 1537 ? big === true ? "180px" : "260px" : big === true ? "200px" : "280px", ")") : "calc(88vh - ".concat(window.innerWidth > 1537 ? expanded ? "349px" : "280px" : expanded ? "368px" : "300px", ")")
|
|
206
209
|
}
|
|
207
|
-
}));
|
|
210
|
+
}, rest)));
|
|
208
211
|
};
|
|
209
212
|
export default Table;
|