@banch0u/core-project-test-repository 2.3.8 → 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 +4 -3
- package/dist/components/CategoryTreeSelect/index.js +3 -1
- package/dist/components/CategoryTreeSelect/index.module.scss +13 -0
- package/dist/components/Input/index.module.scss +1 -1
- package/dist/components/Table/index.js +6 -3
- package/dist/store/slices/questionnaire/index.js +2 -2
- package/dist/store/slices/questionnaire/service.js +7 -7
- package/package.json +1 -1
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;
|
|
@@ -16984,7 +16984,7 @@ export var getInventoryTechnicalDetails = createAsyncThunk("/getInventoryTechnic
|
|
|
16984
16984
|
};
|
|
16985
16985
|
}());
|
|
16986
16986
|
export var getInventoryTechnicalDetailsAll = createAsyncThunk("/getInventoryTechnicalDetailsAll", /*#__PURE__*/function () {
|
|
16987
|
-
var _ref1036 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee517(
|
|
16987
|
+
var _ref1036 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee517(data, _ref1035) {
|
|
16988
16988
|
var dispatch, response, _error$response336, _t517;
|
|
16989
16989
|
return _regeneratorRuntime.wrap(function (_context517) {
|
|
16990
16990
|
while (1) switch (_context517.prev = _context517.next) {
|
|
@@ -16993,7 +16993,7 @@ export var getInventoryTechnicalDetailsAll = createAsyncThunk("/getInventoryTech
|
|
|
16993
16993
|
_context517.prev = 1;
|
|
16994
16994
|
dispatch(setLoading(true));
|
|
16995
16995
|
_context517.next = 2;
|
|
16996
|
-
return Services.getInventoryTechnicalDetailsAll(visibility);
|
|
16996
|
+
return Services.getInventoryTechnicalDetailsAll(data === null || data === void 0 ? void 0 : data.visibility, data === null || data === void 0 ? void 0 : data.inventoryCategoryId);
|
|
16997
16997
|
case 2:
|
|
16998
16998
|
response = _context517.sent;
|
|
16999
16999
|
dispatch(setLoading(false));
|
|
@@ -10076,13 +10076,13 @@ _defineProperty(Services, "getInventoryTechnicalDetails", /*#__PURE__*/function
|
|
|
10076
10076
|
};
|
|
10077
10077
|
}());
|
|
10078
10078
|
_defineProperty(Services, "getInventoryTechnicalDetailsAll", /*#__PURE__*/function () {
|
|
10079
|
-
var _ref518 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee518(visibility) {
|
|
10079
|
+
var _ref518 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee518(visibility, inventoryCategoryId) {
|
|
10080
10080
|
var response;
|
|
10081
10081
|
return _regeneratorRuntime.wrap(function (_context518) {
|
|
10082
10082
|
while (1) switch (_context518.prev = _context518.next) {
|
|
10083
10083
|
case 0:
|
|
10084
10084
|
_context518.next = 1;
|
|
10085
|
-
return api.get("/inventoryTechnicalDetails?visibility=".concat(visibility));
|
|
10085
|
+
return api.get("/inventoryTechnicalDetails?visibility=".concat(visibility, "&inventoryCategoryId=").concat(inventoryCategoryId));
|
|
10086
10086
|
case 1:
|
|
10087
10087
|
response = _context518.sent;
|
|
10088
10088
|
return _context518.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -10092,7 +10092,7 @@ _defineProperty(Services, "getInventoryTechnicalDetailsAll", /*#__PURE__*/functi
|
|
|
10092
10092
|
}
|
|
10093
10093
|
}, _callee518);
|
|
10094
10094
|
}));
|
|
10095
|
-
return function (_x795) {
|
|
10095
|
+
return function (_x795, _x796) {
|
|
10096
10096
|
return _ref518.apply(this, arguments);
|
|
10097
10097
|
};
|
|
10098
10098
|
}());
|
|
@@ -10113,7 +10113,7 @@ _defineProperty(Services, "addInventoryTechnicalDetails", /*#__PURE__*/function
|
|
|
10113
10113
|
}
|
|
10114
10114
|
}, _callee519);
|
|
10115
10115
|
}));
|
|
10116
|
-
return function (
|
|
10116
|
+
return function (_x797) {
|
|
10117
10117
|
return _ref519.apply(this, arguments);
|
|
10118
10118
|
};
|
|
10119
10119
|
}());
|
|
@@ -10134,7 +10134,7 @@ _defineProperty(Services, "editInventoryTechnicalDetails", /*#__PURE__*/function
|
|
|
10134
10134
|
}
|
|
10135
10135
|
}, _callee520);
|
|
10136
10136
|
}));
|
|
10137
|
-
return function (
|
|
10137
|
+
return function (_x798) {
|
|
10138
10138
|
return _ref520.apply(this, arguments);
|
|
10139
10139
|
};
|
|
10140
10140
|
}());
|
|
@@ -10155,7 +10155,7 @@ _defineProperty(Services, "deleteInventoryTechnicalDetails", /*#__PURE__*/functi
|
|
|
10155
10155
|
}
|
|
10156
10156
|
}, _callee521);
|
|
10157
10157
|
}));
|
|
10158
|
-
return function (
|
|
10158
|
+
return function (_x799, _x800) {
|
|
10159
10159
|
return _ref521.apply(this, arguments);
|
|
10160
10160
|
};
|
|
10161
10161
|
}());
|
|
@@ -10176,7 +10176,7 @@ _defineProperty(Services, "inventoryTechnicalDetailsVisibility", /*#__PURE__*/fu
|
|
|
10176
10176
|
}
|
|
10177
10177
|
}, _callee522);
|
|
10178
10178
|
}));
|
|
10179
|
-
return function (
|
|
10179
|
+
return function (_x801) {
|
|
10180
10180
|
return _ref522.apply(this, arguments);
|
|
10181
10181
|
};
|
|
10182
10182
|
}());
|