@myunisoft/design-system 0.22.0 → 0.22.2
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/index.js +176 -131
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -852,7 +852,8 @@ var $33a6c9c6ce93d958$var$_excluded = [
|
|
|
852
852
|
"scrollLeft",
|
|
853
853
|
"totalWidth",
|
|
854
854
|
"onScroll",
|
|
855
|
-
"setWidth"
|
|
855
|
+
"setWidth",
|
|
856
|
+
"onRowContextMenu"
|
|
856
857
|
];
|
|
857
858
|
function $33a6c9c6ce93d958$var$_getRequireWildcardCache(nodeInterop) {
|
|
858
859
|
if (typeof WeakMap !== "function") return null;
|
|
@@ -881,7 +882,7 @@ function $33a6c9c6ce93d958$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
881
882
|
return newObj;
|
|
882
883
|
}
|
|
883
884
|
var $33a6c9c6ce93d958$var$Body = function Body(props) {
|
|
884
|
-
var displayableRows = props.displayableRows, domRef = props.domRef, scrollLeft = props.scrollLeft, totalWidth = props.totalWidth, onScroll = props.onScroll, setWidth = props.setWidth, rest = (0, $33a6c9c6ce93d958$var$_objectWithoutProperties2["default"])(props, $33a6c9c6ce93d958$var$_excluded);
|
|
885
|
+
var displayableRows = props.displayableRows, domRef = props.domRef, scrollLeft = props.scrollLeft, totalWidth = props.totalWidth, onScroll = props.onScroll, setWidth = props.setWidth, onRowContextMenu = props.onRowContextMenu, rest = (0, $33a6c9c6ce93d958$var$_objectWithoutProperties2["default"])(props, $33a6c9c6ce93d958$var$_excluded);
|
|
885
886
|
var _useState = (0, $33a6c9c6ce93d958$var$_react.useState)(), _useState2 = (0, $33a6c9c6ce93d958$var$_slicedToArray2["default"])(_useState, 2), height = _useState2[0], setHeight = _useState2[1];
|
|
886
887
|
var ref = (0, $33a6c9c6ce93d958$var$_react.useRef)();
|
|
887
888
|
var _useConfig = (0, $ckVq7.useConfig)(), _useConfig$config = _useConfig.config, _useConfig$config$alw = _useConfig$config.alwaysInEdition, alwaysInEdition = _useConfig$config$alw === void 0 ? false : _useConfig$config$alw, columns = _useConfig$config.columns, _useConfig$config$wit = _useConfig$config.withBorders, withBorders = _useConfig$config$wit === void 0 ? false : _useConfig$config$wit, selectableRowKey = _useConfig$config.selectableRowKey, _useConfig$config$has = _useConfig$config.hasSecureSociety, hasSecureSociety = _useConfig$config$has === void 0 ? false : _useConfig$config$has, _useConfig$config$ope = _useConfig$config.openSocieties, openSocieties = _useConfig$config$ope === void 0 ? [] : _useConfig$config$ope, stylesProp = _useConfig$config.styles;
|
|
@@ -926,7 +927,8 @@ var $33a6c9c6ce93d958$var$Body = function Body(props) {
|
|
|
926
927
|
hasSecureSociety: hasSecureSociety,
|
|
927
928
|
openSocietiesIds: openSocietiesIds,
|
|
928
929
|
alwaysInEdition: alwaysInEdition,
|
|
929
|
-
bodyStylesProp: stylesProp === null || stylesProp === void 0 ? void 0 : stylesProp.body
|
|
930
|
+
bodyStylesProp: stylesProp === null || stylesProp === void 0 ? void 0 : stylesProp.body,
|
|
931
|
+
onRowContextMenu: onRowContextMenu
|
|
930
932
|
}, rest));
|
|
931
933
|
}, [
|
|
932
934
|
displayableRows,
|
|
@@ -2156,6 +2158,16 @@ var $5975f126da112a16$var$BodyRow = function BodyRow(props) {
|
|
|
2156
2158
|
keyId: row[selectableRowKey]
|
|
2157
2159
|
});
|
|
2158
2160
|
}
|
|
2161
|
+
function handleRowClick(event) {
|
|
2162
|
+
switch(event.type){
|
|
2163
|
+
case "click":
|
|
2164
|
+
onRowClick === null || onRowClick === void 0 || onRowClick(event, getEventCell(event));
|
|
2165
|
+
break;
|
|
2166
|
+
case "contextmenu":
|
|
2167
|
+
onRowContextMenu === null || onRowContextMenu === void 0 || onRowContextMenu(event, getEventCell(event));
|
|
2168
|
+
break;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2159
2171
|
var getEventCell = function getEventCell(e) {
|
|
2160
2172
|
var _e$target$closest, _e$target$closest$dat;
|
|
2161
2173
|
return {
|
|
@@ -2186,12 +2198,8 @@ var $5975f126da112a16$var$BodyRow = function BodyRow(props) {
|
|
|
2186
2198
|
key: rowIndex,
|
|
2187
2199
|
"data-role": "row",
|
|
2188
2200
|
"data-key": keyId,
|
|
2189
|
-
onContextMenu:
|
|
2190
|
-
|
|
2191
|
-
},
|
|
2192
|
-
onClick: function onClick(e) {
|
|
2193
|
-
onRowClick === null || onRowClick === void 0 || onRowClick(e, getEventCell(e));
|
|
2194
|
-
},
|
|
2201
|
+
onContextMenu: handleRowClick,
|
|
2202
|
+
onClick: handleRowClick,
|
|
2195
2203
|
className: (0, $5975f126da112a16$var$_classnames["default"])("bodyRow", customStyling === null || customStyling === void 0 ? void 0 : customStyling.classes, isOdd ? "odd" : "even", {
|
|
2196
2204
|
selectedRow: isSelected && !alwaysInEdition
|
|
2197
2205
|
}),
|
|
@@ -2498,6 +2506,7 @@ var $207fc0463a0bd15d$var$BodyCell = function BodyCell(_ref) {
|
|
|
2498
2506
|
if (onKeyDown) onKeyDown(e, rowIndex, columnIndex);
|
|
2499
2507
|
};
|
|
2500
2508
|
var _ref5 = columns[columnIndex] || {}, _ref5$cellProps = _ref5.cellProps, cellProps = _ref5$cellProps === void 0 ? {} : _ref5$cellProps;
|
|
2509
|
+
if (tooltipDetail) cellProps.title = "";
|
|
2501
2510
|
return /*#__PURE__*/ $207fc0463a0bd15d$var$_react["default"].createElement("span", {
|
|
2502
2511
|
ref: ref
|
|
2503
2512
|
}, /*#__PURE__*/ $207fc0463a0bd15d$var$_react["default"].createElement($207fc0463a0bd15d$var$_cells["default"], (0, $207fc0463a0bd15d$var$_extends2["default"])({
|
|
@@ -2996,7 +3005,9 @@ var $da628765f16131fc$var$CellRender = function CellRender(_ref) {
|
|
|
2996
3005
|
if ((data === null || data === void 0 ? void 0 : data.rowType) === $e902G.ROW_TYPE.GROUP_BUTTON) return /*#__PURE__*/ $da628765f16131fc$var$_react["default"].createElement("div", {
|
|
2997
3006
|
className: styles.groupRow
|
|
2998
3007
|
}, columnIndex === 0 ? data.name : null);
|
|
2999
|
-
return /*#__PURE__*/ $da628765f16131fc$var$_react["default"].createElement($da628765f16131fc$var$_AutocompleteCell["default"], commonProps
|
|
3008
|
+
return /*#__PURE__*/ $da628765f16131fc$var$_react["default"].createElement($da628765f16131fc$var$_AutocompleteCell["default"], (0, $da628765f16131fc$var$_extends2["default"])({}, commonProps, {
|
|
3009
|
+
data: data
|
|
3010
|
+
}));
|
|
3000
3011
|
case $51yp9.TYPE_CELL.COMPONENT:
|
|
3001
3012
|
return renderComponent($da628765f16131fc$var$_objectSpread($da628765f16131fc$var$_objectSpread({}, commonProps), {}, {
|
|
3002
3013
|
data: data,
|
|
@@ -6381,6 +6392,7 @@ var $c28dcb2ecc31f940$var$downloadFile = function downloadFile(data, filename) {
|
|
|
6381
6392
|
var $c28dcb2ecc31f940$var$exportData = function exportData(rows, columns, format, fileName) {
|
|
6382
6393
|
var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
6383
6394
|
var _columns = columns.filter($e902G.isExportable);
|
|
6395
|
+
var _footer = (0, $jlN5T.parseFooter)(rows, _columns);
|
|
6384
6396
|
if ([
|
|
6385
6397
|
"csv",
|
|
6386
6398
|
"xls"
|
|
@@ -6405,7 +6417,12 @@ var $c28dcb2ecc31f940$var$exportData = function exportData(rows, columns, format
|
|
|
6405
6417
|
return header;
|
|
6406
6418
|
})
|
|
6407
6419
|
],
|
|
6408
|
-
body: _rowsCsv
|
|
6420
|
+
body: _rowsCsv,
|
|
6421
|
+
footer: [
|
|
6422
|
+
_footer === null || _footer === void 0 ? void 0 : _footer.map(function(item) {
|
|
6423
|
+
return item === null || item === void 0 ? void 0 : item.content;
|
|
6424
|
+
})
|
|
6425
|
+
]
|
|
6409
6426
|
};
|
|
6410
6427
|
(0, $jlN5T.exportToExcel)(xlsData, fileName);
|
|
6411
6428
|
}
|
|
@@ -6417,7 +6434,6 @@ var $c28dcb2ecc31f940$var$exportData = function exportData(rows, columns, format
|
|
|
6417
6434
|
var _rowsPdf = (0, $jlN5T.parseDataRows)(rows, _columns, {
|
|
6418
6435
|
type: "pdf"
|
|
6419
6436
|
});
|
|
6420
|
-
var _footer = (0, $jlN5T.parseFooter)(rows, _columns);
|
|
6421
6437
|
var data = {
|
|
6422
6438
|
columns: _columns,
|
|
6423
6439
|
rows: _rowsPdf,
|
|
@@ -6445,8 +6461,6 @@ var $e1660f894c3a788a$var$_defineProperty2 = $gXNCa$babelruntimehelpersinteropRe
|
|
|
6445
6461
|
|
|
6446
6462
|
var $e1660f894c3a788a$var$_typeof2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelperstypeof);
|
|
6447
6463
|
|
|
6448
|
-
var $e1660f894c3a788a$var$_objectWithoutProperties2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$babelruntimehelpersobjectWithoutProperties);
|
|
6449
|
-
|
|
6450
6464
|
var $e1660f894c3a788a$var$_get2 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$lodashget);
|
|
6451
6465
|
|
|
6452
6466
|
var $e1660f894c3a788a$var$_find3 = $gXNCa$babelruntimehelpersinteropRequireDefault($gXNCa$lodashfind);
|
|
@@ -6480,11 +6494,6 @@ var $10oRz = parcelRequire("10oRz");
|
|
|
6480
6494
|
var $e902G = parcelRequire("e902G");
|
|
6481
6495
|
|
|
6482
6496
|
var $eHwgP = parcelRequire("eHwgP");
|
|
6483
|
-
var $e1660f894c3a788a$var$_excluded = [
|
|
6484
|
-
"key",
|
|
6485
|
-
"idx",
|
|
6486
|
-
"typeCell"
|
|
6487
|
-
];
|
|
6488
6497
|
function $e1660f894c3a788a$var$_regeneratorRuntime() {
|
|
6489
6498
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
6490
6499
|
$e1660f894c3a788a$var$_regeneratorRuntime = function _regeneratorRuntime() {
|
|
@@ -6864,9 +6873,9 @@ var $e1660f894c3a788a$var$EXCEL_FILE = {
|
|
|
6864
6873
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8",
|
|
6865
6874
|
extension: ".xlsx"
|
|
6866
6875
|
};
|
|
6867
|
-
var $e1660f894c3a788a$var$formatDefaultData = function formatDefaultData(row,
|
|
6876
|
+
var $e1660f894c3a788a$var$formatDefaultData = function formatDefaultData(row, column) {
|
|
6868
6877
|
var _result;
|
|
6869
|
-
var key =
|
|
6878
|
+
var key = column.key, idx = column.idx, typeCell = column.typeCell;
|
|
6870
6879
|
var value = (0, $e1660f894c3a788a$var$_get2["default"])(row, key);
|
|
6871
6880
|
var result = "";
|
|
6872
6881
|
if (row.rowType === $e902G.ROW_TYPE.GROUP_BUTTON && idx === 0) result = row.name;
|
|
@@ -6878,15 +6887,15 @@ var $e1660f894c3a788a$var$formatDefaultData = function formatDefaultData(row, _r
|
|
|
6878
6887
|
break;
|
|
6879
6888
|
case $51yp9.TYPE_CELL.ATTACHMENT:
|
|
6880
6889
|
case $51yp9.TYPE_CELL.THUMBNAIL:
|
|
6881
|
-
result = Array.isArray(value) ? value === null || value === void 0 ? void 0 : value.map(function(
|
|
6882
|
-
var link =
|
|
6890
|
+
result = Array.isArray(value) ? value === null || value === void 0 ? void 0 : value.map(function(_ref) {
|
|
6891
|
+
var link = _ref.link;
|
|
6883
6892
|
return link;
|
|
6884
6893
|
}).join(", ") : value === null || value === void 0 ? void 0 : value.link;
|
|
6885
6894
|
break;
|
|
6886
6895
|
case $51yp9.TYPE_CELL.AUTOCOMPLETE:
|
|
6887
|
-
var viewData = (0, $ibonl.getViewData)(
|
|
6888
|
-
if (Array.isArray(viewData)) result = viewData.map(function(
|
|
6889
|
-
var label =
|
|
6896
|
+
var viewData = (0, $ibonl.getViewData)(row, column);
|
|
6897
|
+
if (Array.isArray(viewData)) result = viewData.map(function(_ref2) {
|
|
6898
|
+
var label = _ref2.label;
|
|
6890
6899
|
return label;
|
|
6891
6900
|
}).join(", ");
|
|
6892
6901
|
else result = viewData === null || viewData === void 0 ? void 0 : viewData.label;
|
|
@@ -6931,8 +6940,8 @@ var $e1660f894c3a788a$var$formatDefaultData = function formatDefaultData(row, _r
|
|
|
6931
6940
|
else {
|
|
6932
6941
|
var _value$array = value.array, array = _value$array === void 0 ? [] : _value$array;
|
|
6933
6942
|
if (!array) return "";
|
|
6934
|
-
result = array.map(function(
|
|
6935
|
-
var id =
|
|
6943
|
+
result = array.map(function(_ref3) {
|
|
6944
|
+
var id = _ref3.id;
|
|
6936
6945
|
return id;
|
|
6937
6946
|
}).join(", ");
|
|
6938
6947
|
}
|
|
@@ -6981,9 +6990,9 @@ var $e1660f894c3a788a$var$formatDataToExport = function formatDataToExport(row,
|
|
|
6981
6990
|
};
|
|
6982
6991
|
module.exports.formatDataToExport = $e1660f894c3a788a$var$formatDataToExport;
|
|
6983
6992
|
var $e1660f894c3a788a$var$parseFooter = function parseFooter(rows, columns) {
|
|
6984
|
-
return columns.map(function(column) {
|
|
6993
|
+
return columns === null || columns === void 0 ? void 0 : columns.map(function(column) {
|
|
6985
6994
|
var typeFooter = column.typeFooter, footerProps = column.footerProps;
|
|
6986
|
-
var
|
|
6995
|
+
var _ref4 = footerProps || {}, colspan = _ref4.colspan;
|
|
6987
6996
|
return {
|
|
6988
6997
|
content: (0, $10oRz.getFooterValue)(column, rows),
|
|
6989
6998
|
colSpan: colspan || 1,
|
|
@@ -7052,12 +7061,12 @@ var $e1660f894c3a788a$var$exportToCSV = function exportToCSV(csvData, fileName)
|
|
|
7052
7061
|
};
|
|
7053
7062
|
module.exports.exportToCSV = $e1660f894c3a788a$var$exportToCSV;
|
|
7054
7063
|
var $e1660f894c3a788a$var$exportToExcel = /*#__PURE__*/ function() {
|
|
7055
|
-
var
|
|
7056
|
-
var header, body, ExcelJSWorkbook, worksheet, xlsxData, data;
|
|
7064
|
+
var _ref6 = (0, $e1660f894c3a788a$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $e1660f894c3a788a$var$_regeneratorRuntime().mark(function _callee(_ref5, fileName) {
|
|
7065
|
+
var header, body, footer, ExcelJSWorkbook, worksheet, xlsxData, data;
|
|
7057
7066
|
return $e1660f894c3a788a$var$_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7058
7067
|
while(true)switch(_context.prev = _context.next){
|
|
7059
7068
|
case 0:
|
|
7060
|
-
header =
|
|
7069
|
+
header = _ref5.header, body = _ref5.body, footer = _ref5.footer;
|
|
7061
7070
|
ExcelJSWorkbook = new $e1660f894c3a788a$var$_exceljs["default"].Workbook();
|
|
7062
7071
|
worksheet = ExcelJSWorkbook.addWorksheet("ExcelJS sheet");
|
|
7063
7072
|
header.forEach(function(item) {
|
|
@@ -7070,9 +7079,10 @@ var $e1660f894c3a788a$var$exportToExcel = /*#__PURE__*/ function() {
|
|
|
7070
7079
|
});
|
|
7071
7080
|
});
|
|
7072
7081
|
worksheet.addRows(body);
|
|
7073
|
-
|
|
7082
|
+
worksheet.addRows(footer);
|
|
7083
|
+
_context.next = 8;
|
|
7074
7084
|
return ExcelJSWorkbook.xlsx.writeBuffer();
|
|
7075
|
-
case
|
|
7085
|
+
case 8:
|
|
7076
7086
|
xlsxData = _context.sent;
|
|
7077
7087
|
data = new Blob([
|
|
7078
7088
|
xlsxData
|
|
@@ -7081,14 +7091,14 @@ var $e1660f894c3a788a$var$exportToExcel = /*#__PURE__*/ function() {
|
|
|
7081
7091
|
cellStyles: true
|
|
7082
7092
|
});
|
|
7083
7093
|
(0, $gHByu.downloadFile)(data, fileName + $e1660f894c3a788a$var$EXCEL_FILE.extension, $e1660f894c3a788a$var$EXCEL_FILE.type);
|
|
7084
|
-
case
|
|
7094
|
+
case 11:
|
|
7085
7095
|
case "end":
|
|
7086
7096
|
return _context.stop();
|
|
7087
7097
|
}
|
|
7088
7098
|
}, _callee);
|
|
7089
7099
|
}));
|
|
7090
7100
|
return function exportToExcel(_x, _x2) {
|
|
7091
|
-
return
|
|
7101
|
+
return _ref6.apply(this, arguments);
|
|
7092
7102
|
};
|
|
7093
7103
|
}();
|
|
7094
7104
|
module.exports.exportToExcel = $e1660f894c3a788a$var$exportToExcel;
|
|
@@ -7100,10 +7110,13 @@ Object.defineProperty(module.exports, "__esModule", {
|
|
|
7100
7110
|
value: true
|
|
7101
7111
|
});
|
|
7102
7112
|
module.exports.getViewData = void 0;
|
|
7103
|
-
|
|
7104
|
-
|
|
7113
|
+
|
|
7114
|
+
var $7kh28 = parcelRequire("7kh28");
|
|
7115
|
+
var $d3cc29866d6ce00f$var$getViewData = function getViewData(_data, column) {
|
|
7116
|
+
var _column$multiple = column.multiple, multiple = _column$multiple === void 0 ? false : _column$multiple, options = column.options, _column$optionList = column.optionList, optionList = _column$optionList === void 0 ? [] : _column$optionList, key = column.key;
|
|
7105
7117
|
var list = options || optionList;
|
|
7106
|
-
var
|
|
7118
|
+
var data = (0, $7kh28.getData)(_data, key, "");
|
|
7119
|
+
var _options = typeof list === "function" ? list(_data) : list;
|
|
7107
7120
|
return multiple ? _options.filter(function(_ref) {
|
|
7108
7121
|
var value = _ref.value;
|
|
7109
7122
|
return data === null || data === void 0 ? void 0 : data.includes(value);
|
|
@@ -12158,10 +12171,7 @@ var $74d280cb16af2425$var$AutocompleteView = /*#__PURE__*/ (0, $74d280cb16af2425
|
|
|
12158
12171
|
return /*#__PURE__*/ $74d280cb16af2425$var$_react["default"].createElement("div", null, renderChips);
|
|
12159
12172
|
});
|
|
12160
12173
|
$74d280cb16af2425$var$AutocompleteView.propTypes = {
|
|
12161
|
-
data: $74d280cb16af2425$var$_propTypes["default"].
|
|
12162
|
-
$74d280cb16af2425$var$_propTypes["default"].string,
|
|
12163
|
-
$74d280cb16af2425$var$_propTypes["default"].array
|
|
12164
|
-
]),
|
|
12174
|
+
data: $74d280cb16af2425$var$_propTypes["default"].object,
|
|
12165
12175
|
columnIndex: $74d280cb16af2425$var$_propTypes["default"].number
|
|
12166
12176
|
};
|
|
12167
12177
|
var $74d280cb16af2425$var$_default = $74d280cb16af2425$var$AutocompleteView;
|
|
@@ -13528,6 +13538,7 @@ var $74d7c783859244b3$var$HeaderCell = function HeaderCell(_ref) {
|
|
|
13528
13538
|
}, [
|
|
13529
13539
|
columnIndex
|
|
13530
13540
|
]);
|
|
13541
|
+
var title = tooltipHeader ? "" : header;
|
|
13531
13542
|
var render = function render() {
|
|
13532
13543
|
var _cx;
|
|
13533
13544
|
return /*#__PURE__*/ $74d7c783859244b3$var$_react["default"].createElement("div", {
|
|
@@ -13555,7 +13566,7 @@ var $74d7c783859244b3$var$HeaderCell = function HeaderCell(_ref) {
|
|
|
13555
13566
|
variant: variant
|
|
13556
13567
|
})), /*#__PURE__*/ $74d7c783859244b3$var$_react["default"].createElement("div", {
|
|
13557
13568
|
className: (0, $74d7c783859244b3$var$_classnames["default"])(styles.headerCell),
|
|
13558
|
-
title:
|
|
13569
|
+
title: title
|
|
13559
13570
|
}, (0, $e902G.isSortable)({
|
|
13560
13571
|
typeCell: typeCell,
|
|
13561
13572
|
sortable: sortable
|
|
@@ -15165,7 +15176,7 @@ var $4cc03a09cd474ddf$var$ToolbarButtons = function ToolbarButtons(_ref) {
|
|
|
15165
15176
|
}
|
|
15166
15177
|
function _handleDeleteRows() {
|
|
15167
15178
|
_handleDeleteRows = (0, $4cc03a09cd474ddf$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $4cc03a09cd474ddf$var$_regeneratorRuntime().mark(function _callee() {
|
|
15168
|
-
var _apiRef$
|
|
15179
|
+
var _apiRef$current2, _apiRef$current2$vali;
|
|
15169
15180
|
return $4cc03a09cd474ddf$var$_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15170
15181
|
while(true)switch(_context.prev = _context.next){
|
|
15171
15182
|
case 0:
|
|
@@ -15174,7 +15185,7 @@ var $4cc03a09cd474ddf$var$ToolbarButtons = function ToolbarButtons(_ref) {
|
|
|
15174
15185
|
return handleRowsToDelete(selectedVisibleRows);
|
|
15175
15186
|
case 3:
|
|
15176
15187
|
apiRef.current.selectRows((0, $idhBf.getSelectedHiddenRows)(selectedRows, displayableRows, selectableRowKey));
|
|
15177
|
-
(_apiRef$
|
|
15188
|
+
(_apiRef$current2 = apiRef.current) === null || _apiRef$current2 === void 0 || (_apiRef$current2$vali = _apiRef$current2.validation) === null || _apiRef$current2$vali === void 0 || _apiRef$current2$vali.removeErrors(selectedVisibleRows);
|
|
15178
15189
|
_context.next = 9;
|
|
15179
15190
|
break;
|
|
15180
15191
|
case 7:
|
|
@@ -15194,29 +15205,60 @@ var $4cc03a09cd474ddf$var$ToolbarButtons = function ToolbarButtons(_ref) {
|
|
|
15194
15205
|
return _handleDeleteRows.apply(this, arguments);
|
|
15195
15206
|
}
|
|
15196
15207
|
function handleSave() {
|
|
15197
|
-
|
|
15198
|
-
|
|
15199
|
-
|
|
15200
|
-
|
|
15201
|
-
|
|
15202
|
-
|
|
15203
|
-
|
|
15204
|
-
|
|
15205
|
-
|
|
15206
|
-
|
|
15207
|
-
|
|
15208
|
-
|
|
15209
|
-
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
$e902G.
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
|
|
15208
|
+
return _handleSave.apply(this, arguments);
|
|
15209
|
+
}
|
|
15210
|
+
function _handleSave() {
|
|
15211
|
+
_handleSave = (0, $4cc03a09cd474ddf$var$_asyncToGenerator2["default"])(/*#__PURE__*/ $4cc03a09cd474ddf$var$_regeneratorRuntime().mark(function _callee2() {
|
|
15212
|
+
var _apiRef$current3, _apiRef$current3$vali;
|
|
15213
|
+
var ret;
|
|
15214
|
+
return $4cc03a09cd474ddf$var$_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
15215
|
+
while(true)switch(_context2.prev = _context2.next){
|
|
15216
|
+
case 0:
|
|
15217
|
+
if (!(apiRef !== null && apiRef !== void 0 && (_apiRef$current3 = apiRef.current) !== null && _apiRef$current3 !== void 0 && (_apiRef$current3$vali = _apiRef$current3.validation) !== null && _apiRef$current3$vali !== void 0 && _apiRef$current3$vali.hasError)) {
|
|
15218
|
+
_context2.next = 2;
|
|
15219
|
+
break;
|
|
15220
|
+
}
|
|
15221
|
+
return _context2.abrupt("return");
|
|
15222
|
+
case 2:
|
|
15223
|
+
_context2.t0 = state;
|
|
15224
|
+
_context2.next = _context2.t0 === $e902G.TABLE_STATE.ADD ? 5 : _context2.t0 === $e902G.TABLE_STATE.EDIT ? 9 : _context2.t0 === $e902G.TABLE_STATE.PERMANENT_EDIT ? 13 : 17;
|
|
15225
|
+
break;
|
|
15226
|
+
case 5:
|
|
15227
|
+
_context2.next = 7;
|
|
15228
|
+
return handleValidateAdd(displayableRows.filter(function(e) {
|
|
15229
|
+
return e.rowType === $e902G.ROW_TYPE.NEW && e._touched;
|
|
15230
|
+
}), insertPosition === $e902G.INSERT_POSITION.BOTTOM ? displayableRows.length : 0);
|
|
15231
|
+
case 7:
|
|
15232
|
+
ret = _context2.sent;
|
|
15233
|
+
return _context2.abrupt("break", 17);
|
|
15234
|
+
case 9:
|
|
15235
|
+
_context2.next = 11;
|
|
15236
|
+
return handleValidateEdit(displayableRows.filter(function(e) {
|
|
15237
|
+
return e.rowType === $e902G.ROW_TYPE.EDIT;
|
|
15238
|
+
}));
|
|
15239
|
+
case 11:
|
|
15240
|
+
ret = _context2.sent;
|
|
15241
|
+
return _context2.abrupt("break", 17);
|
|
15242
|
+
case 13:
|
|
15243
|
+
_context2.next = 15;
|
|
15244
|
+
return handleValidateEdit(displayableRows.filter(function(e) {
|
|
15245
|
+
return [
|
|
15246
|
+
$e902G.ROW_TYPE.EDIT,
|
|
15247
|
+
$e902G.ROW_TYPE.NEW
|
|
15248
|
+
].includes(e.rowType) && e._touched;
|
|
15249
|
+
}), insertPosition === $e902G.INSERT_POSITION.BOTTOM ? displayableRows.length : 0);
|
|
15250
|
+
case 15:
|
|
15251
|
+
ret = _context2.sent;
|
|
15252
|
+
return _context2.abrupt("break", 17);
|
|
15253
|
+
case 17:
|
|
15254
|
+
if (ret !== false) send("validate");
|
|
15255
|
+
case 18:
|
|
15256
|
+
case "end":
|
|
15257
|
+
return _context2.stop();
|
|
15258
|
+
}
|
|
15259
|
+
}, _callee2);
|
|
15260
|
+
}));
|
|
15261
|
+
return _handleSave.apply(this, arguments);
|
|
15220
15262
|
}
|
|
15221
15263
|
var buttons = (0, $4cc03a09cd474ddf$var$_toConsumableArray2["default"])(customButtons === null || customButtons === void 0 ? void 0 : customButtons.map(function(customButton) {
|
|
15222
15264
|
var _customButton$isDisab = customButton.isDisabled, isDisabled = _customButton$isDisab === void 0 ? function() {
|
|
@@ -17666,40 +17708,40 @@ module.exports["default"] = $91a39eacac205c01$var$_default;
|
|
|
17666
17708
|
});
|
|
17667
17709
|
parcelRequire.register("bOZp3", function(module, exports) {
|
|
17668
17710
|
|
|
17669
|
-
$parcel$export(module.exports, "isError", () => $89b3fe986b2d4477$export$e6127cc7fe7395c3, (v) => $89b3fe986b2d4477$export$e6127cc7fe7395c3 = v);
|
|
17670
|
-
$parcel$export(module.exports, "selector", () => $89b3fe986b2d4477$export$aea217a45095ce11, (v) => $89b3fe986b2d4477$export$aea217a45095ce11 = v);
|
|
17671
|
-
$parcel$export(module.exports, "search", () => $89b3fe986b2d4477$export$d76128d007d19019, (v) => $89b3fe986b2d4477$export$d76128d007d19019 = v);
|
|
17672
|
-
$parcel$export(module.exports, "open", () => $89b3fe986b2d4477$export$3ce6949f20cea765, (v) => $89b3fe986b2d4477$export$3ce6949f20cea765 = v);
|
|
17673
|
-
$parcel$export(module.exports, "clear", () => $89b3fe986b2d4477$export$42ffd38884aecdac, (v) => $89b3fe986b2d4477$export$42ffd38884aecdac = v);
|
|
17674
|
-
$parcel$export(module.exports, "autoCompleteContainer", () => $89b3fe986b2d4477$export$d08603063fe3f9a5, (v) => $89b3fe986b2d4477$export$d08603063fe3f9a5 = v);
|
|
17675
|
-
$parcel$export(module.exports, "border", () => $89b3fe986b2d4477$export$1edee58a52776cd9, (v) => $89b3fe986b2d4477$export$1edee58a52776cd9 = v);
|
|
17676
17711
|
$parcel$export(module.exports, "rotated", () => $89b3fe986b2d4477$export$7d2b4e7a5a4801f2, (v) => $89b3fe986b2d4477$export$7d2b4e7a5a4801f2 = v);
|
|
17712
|
+
$parcel$export(module.exports, "icons", () => $89b3fe986b2d4477$export$df03f54e09e486fa, (v) => $89b3fe986b2d4477$export$df03f54e09e486fa = v);
|
|
17713
|
+
$parcel$export(module.exports, "clear", () => $89b3fe986b2d4477$export$42ffd38884aecdac, (v) => $89b3fe986b2d4477$export$42ffd38884aecdac = v);
|
|
17714
|
+
$parcel$export(module.exports, "open", () => $89b3fe986b2d4477$export$3ce6949f20cea765, (v) => $89b3fe986b2d4477$export$3ce6949f20cea765 = v);
|
|
17677
17715
|
$parcel$export(module.exports, "label", () => $89b3fe986b2d4477$export$1237798dc640739a, (v) => $89b3fe986b2d4477$export$1237798dc640739a = v);
|
|
17716
|
+
$parcel$export(module.exports, "isError", () => $89b3fe986b2d4477$export$e6127cc7fe7395c3, (v) => $89b3fe986b2d4477$export$e6127cc7fe7395c3 = v);
|
|
17717
|
+
$parcel$export(module.exports, "border", () => $89b3fe986b2d4477$export$1edee58a52776cd9, (v) => $89b3fe986b2d4477$export$1edee58a52776cd9 = v);
|
|
17718
|
+
$parcel$export(module.exports, "autoCompleteContainer", () => $89b3fe986b2d4477$export$d08603063fe3f9a5, (v) => $89b3fe986b2d4477$export$d08603063fe3f9a5 = v);
|
|
17719
|
+
$parcel$export(module.exports, "selector", () => $89b3fe986b2d4477$export$aea217a45095ce11, (v) => $89b3fe986b2d4477$export$aea217a45095ce11 = v);
|
|
17678
17720
|
$parcel$export(module.exports, "dropDownIcon", () => $89b3fe986b2d4477$export$e41ce6c93801c63c, (v) => $89b3fe986b2d4477$export$e41ce6c93801c63c = v);
|
|
17679
|
-
$parcel$export(module.exports, "
|
|
17680
|
-
var $89b3fe986b2d4477$export$e6127cc7fe7395c3;
|
|
17681
|
-
var $89b3fe986b2d4477$export$aea217a45095ce11;
|
|
17682
|
-
var $89b3fe986b2d4477$export$d76128d007d19019;
|
|
17683
|
-
var $89b3fe986b2d4477$export$3ce6949f20cea765;
|
|
17684
|
-
var $89b3fe986b2d4477$export$42ffd38884aecdac;
|
|
17685
|
-
var $89b3fe986b2d4477$export$d08603063fe3f9a5;
|
|
17686
|
-
var $89b3fe986b2d4477$export$1edee58a52776cd9;
|
|
17721
|
+
$parcel$export(module.exports, "search", () => $89b3fe986b2d4477$export$d76128d007d19019, (v) => $89b3fe986b2d4477$export$d76128d007d19019 = v);
|
|
17687
17722
|
var $89b3fe986b2d4477$export$7d2b4e7a5a4801f2;
|
|
17723
|
+
var $89b3fe986b2d4477$export$df03f54e09e486fa;
|
|
17724
|
+
var $89b3fe986b2d4477$export$42ffd38884aecdac;
|
|
17725
|
+
var $89b3fe986b2d4477$export$3ce6949f20cea765;
|
|
17688
17726
|
var $89b3fe986b2d4477$export$1237798dc640739a;
|
|
17727
|
+
var $89b3fe986b2d4477$export$e6127cc7fe7395c3;
|
|
17728
|
+
var $89b3fe986b2d4477$export$1edee58a52776cd9;
|
|
17729
|
+
var $89b3fe986b2d4477$export$d08603063fe3f9a5;
|
|
17730
|
+
var $89b3fe986b2d4477$export$aea217a45095ce11;
|
|
17689
17731
|
var $89b3fe986b2d4477$export$e41ce6c93801c63c;
|
|
17690
|
-
var $89b3fe986b2d4477$export$
|
|
17732
|
+
var $89b3fe986b2d4477$export$d76128d007d19019;
|
|
17691
17733
|
"use strict";
|
|
17692
|
-
$89b3fe986b2d4477$export$e6127cc7fe7395c3 = "h8cnOq_isError";
|
|
17693
|
-
$89b3fe986b2d4477$export$aea217a45095ce11 = "h8cnOq_selector";
|
|
17694
|
-
$89b3fe986b2d4477$export$d76128d007d19019 = "h8cnOq_search";
|
|
17695
|
-
$89b3fe986b2d4477$export$3ce6949f20cea765 = "h8cnOq_open";
|
|
17696
|
-
$89b3fe986b2d4477$export$42ffd38884aecdac = "h8cnOq_clear";
|
|
17697
|
-
$89b3fe986b2d4477$export$d08603063fe3f9a5 = "h8cnOq_autoCompleteContainer";
|
|
17698
|
-
$89b3fe986b2d4477$export$1edee58a52776cd9 = "h8cnOq_border";
|
|
17699
17734
|
$89b3fe986b2d4477$export$7d2b4e7a5a4801f2 = "h8cnOq_rotated";
|
|
17735
|
+
$89b3fe986b2d4477$export$df03f54e09e486fa = "h8cnOq_icons";
|
|
17736
|
+
$89b3fe986b2d4477$export$42ffd38884aecdac = "h8cnOq_clear";
|
|
17737
|
+
$89b3fe986b2d4477$export$3ce6949f20cea765 = "h8cnOq_open";
|
|
17700
17738
|
$89b3fe986b2d4477$export$1237798dc640739a = "h8cnOq_label";
|
|
17739
|
+
$89b3fe986b2d4477$export$e6127cc7fe7395c3 = "h8cnOq_isError";
|
|
17740
|
+
$89b3fe986b2d4477$export$1edee58a52776cd9 = "h8cnOq_border";
|
|
17741
|
+
$89b3fe986b2d4477$export$d08603063fe3f9a5 = "h8cnOq_autoCompleteContainer";
|
|
17742
|
+
$89b3fe986b2d4477$export$aea217a45095ce11 = "h8cnOq_selector";
|
|
17701
17743
|
$89b3fe986b2d4477$export$e41ce6c93801c63c = "h8cnOq_dropDownIcon";
|
|
17702
|
-
$89b3fe986b2d4477$export$
|
|
17744
|
+
$89b3fe986b2d4477$export$d76128d007d19019 = "h8cnOq_search";
|
|
17703
17745
|
|
|
17704
17746
|
});
|
|
17705
17747
|
|
|
@@ -17823,19 +17865,19 @@ module.exports["default"] = $060ef87bc99cc1cf$var$_default;
|
|
|
17823
17865
|
});
|
|
17824
17866
|
parcelRequire.register("bfmDi", function(module, exports) {
|
|
17825
17867
|
|
|
17826
|
-
$parcel$export(module.exports, "
|
|
17868
|
+
$parcel$export(module.exports, "inputContainer", () => $8302a6d46dfd98fe$export$72108e4fb43880e3, (v) => $8302a6d46dfd98fe$export$72108e4fb43880e3 = v);
|
|
17827
17869
|
$parcel$export(module.exports, "inputSearch", () => $8302a6d46dfd98fe$export$f78c4432585bf2ac, (v) => $8302a6d46dfd98fe$export$f78c4432585bf2ac = v);
|
|
17870
|
+
$parcel$export(module.exports, "searchIcon", () => $8302a6d46dfd98fe$export$8687ffcdea58e000, (v) => $8302a6d46dfd98fe$export$8687ffcdea58e000 = v);
|
|
17828
17871
|
$parcel$export(module.exports, "closeIcon", () => $8302a6d46dfd98fe$export$64a53ecd158b85c4, (v) => $8302a6d46dfd98fe$export$64a53ecd158b85c4 = v);
|
|
17829
|
-
|
|
17830
|
-
var $8302a6d46dfd98fe$export$8687ffcdea58e000;
|
|
17872
|
+
var $8302a6d46dfd98fe$export$72108e4fb43880e3;
|
|
17831
17873
|
var $8302a6d46dfd98fe$export$f78c4432585bf2ac;
|
|
17874
|
+
var $8302a6d46dfd98fe$export$8687ffcdea58e000;
|
|
17832
17875
|
var $8302a6d46dfd98fe$export$64a53ecd158b85c4;
|
|
17833
|
-
var $8302a6d46dfd98fe$export$72108e4fb43880e3;
|
|
17834
17876
|
"use strict";
|
|
17835
|
-
$8302a6d46dfd98fe$export$
|
|
17877
|
+
$8302a6d46dfd98fe$export$72108e4fb43880e3 = "t5EYra_inputContainer";
|
|
17836
17878
|
$8302a6d46dfd98fe$export$f78c4432585bf2ac = "t5EYra_inputSearch";
|
|
17879
|
+
$8302a6d46dfd98fe$export$8687ffcdea58e000 = "t5EYra_searchIcon";
|
|
17837
17880
|
$8302a6d46dfd98fe$export$64a53ecd158b85c4 = "t5EYra_closeIcon";
|
|
17838
|
-
$8302a6d46dfd98fe$export$72108e4fb43880e3 = "t5EYra_inputContainer";
|
|
17839
17881
|
|
|
17840
17882
|
});
|
|
17841
17883
|
|
|
@@ -17931,7 +17973,9 @@ var $7d5761816dd9f126$var$SuggestList = function SuggestList(_ref) {
|
|
|
17931
17973
|
e.returnValue = false;
|
|
17932
17974
|
};
|
|
17933
17975
|
var isMouseOverSuggestList = function isMouseOverSuggestList(e, myAutoCompleteSuggestListRef) {
|
|
17934
|
-
|
|
17976
|
+
if (!(myAutoCompleteSuggestListRef !== null && myAutoCompleteSuggestListRef !== void 0 && myAutoCompleteSuggestListRef.current)) return false;
|
|
17977
|
+
var rect = myAutoCompleteSuggestListRef.current.getBoundingClientRect();
|
|
17978
|
+
return rect && e.clientX >= rect.left && e.clientX <= rect.left + rect.width && e.clientY >= rect.top && e.clientY <= rect.top + rect.height;
|
|
17935
17979
|
};
|
|
17936
17980
|
var limitScrollAtEndOfList = function limitScrollAtEndOfList() {
|
|
17937
17981
|
var maxCurrentPositionY = itemHeight * (list.length - 5);
|
|
@@ -18094,19 +18138,19 @@ module.exports["default"] = $827476aa1ed605f8$var$_default;
|
|
|
18094
18138
|
});
|
|
18095
18139
|
parcelRequire.register("aI0no", function(module, exports) {
|
|
18096
18140
|
|
|
18097
|
-
$parcel$export(module.exports, "line", () => $7cbe4e30c9952688$export$53f1d5ea8de3d7c, (v) => $7cbe4e30c9952688$export$53f1d5ea8de3d7c = v);
|
|
18098
|
-
$parcel$export(module.exports, "label", () => $7cbe4e30c9952688$export$1237798dc640739a, (v) => $7cbe4e30c9952688$export$1237798dc640739a = v);
|
|
18099
18141
|
$parcel$export(module.exports, "disabled", () => $7cbe4e30c9952688$export$683472f6198a076e, (v) => $7cbe4e30c9952688$export$683472f6198a076e = v);
|
|
18100
18142
|
$parcel$export(module.exports, "checkboxContainer", () => $7cbe4e30c9952688$export$be69ea624d82a314, (v) => $7cbe4e30c9952688$export$be69ea624d82a314 = v);
|
|
18101
|
-
|
|
18102
|
-
|
|
18143
|
+
$parcel$export(module.exports, "line", () => $7cbe4e30c9952688$export$53f1d5ea8de3d7c, (v) => $7cbe4e30c9952688$export$53f1d5ea8de3d7c = v);
|
|
18144
|
+
$parcel$export(module.exports, "label", () => $7cbe4e30c9952688$export$1237798dc640739a, (v) => $7cbe4e30c9952688$export$1237798dc640739a = v);
|
|
18103
18145
|
var $7cbe4e30c9952688$export$683472f6198a076e;
|
|
18104
18146
|
var $7cbe4e30c9952688$export$be69ea624d82a314;
|
|
18147
|
+
var $7cbe4e30c9952688$export$53f1d5ea8de3d7c;
|
|
18148
|
+
var $7cbe4e30c9952688$export$1237798dc640739a;
|
|
18105
18149
|
"use strict";
|
|
18106
|
-
$7cbe4e30c9952688$export$53f1d5ea8de3d7c = "kMx4ia_line";
|
|
18107
|
-
$7cbe4e30c9952688$export$1237798dc640739a = "kMx4ia_label";
|
|
18108
18150
|
$7cbe4e30c9952688$export$683472f6198a076e = "kMx4ia_disabled";
|
|
18109
18151
|
$7cbe4e30c9952688$export$be69ea624d82a314 = "kMx4ia_checkboxContainer";
|
|
18152
|
+
$7cbe4e30c9952688$export$53f1d5ea8de3d7c = "kMx4ia_line";
|
|
18153
|
+
$7cbe4e30c9952688$export$1237798dc640739a = "kMx4ia_label";
|
|
18110
18154
|
|
|
18111
18155
|
});
|
|
18112
18156
|
|
|
@@ -18317,8 +18361,8 @@ $14c49666e282f90f$var$MyAutoCompleteSuggestListScrollBar.propTypes = {
|
|
|
18317
18361
|
numberOfItemDisplayed: $14c49666e282f90f$var$_propTypes["default"].number,
|
|
18318
18362
|
changeListData: $14c49666e282f90f$var$_propTypes["default"].func,
|
|
18319
18363
|
setCurrentPositionYRef: $14c49666e282f90f$var$_propTypes["default"].func,
|
|
18320
|
-
setStartIndexListDisplayedRef: $14c49666e282f90f$var$_propTypes["default"].
|
|
18321
|
-
startIndexListDisplayed: $14c49666e282f90f$var$_propTypes["default"].
|
|
18364
|
+
setStartIndexListDisplayedRef: $14c49666e282f90f$var$_propTypes["default"].func,
|
|
18365
|
+
startIndexListDisplayed: $14c49666e282f90f$var$_propTypes["default"].number,
|
|
18322
18366
|
suggestListHeight: $14c49666e282f90f$var$_propTypes["default"].number
|
|
18323
18367
|
};
|
|
18324
18368
|
|
|
@@ -18379,18 +18423,18 @@ module.exports["default"] = $b3ca32e1e8152d41$var$_default;
|
|
|
18379
18423
|
parcelRequire.register("5OeO1", function(module, exports) {
|
|
18380
18424
|
|
|
18381
18425
|
$parcel$export(module.exports, "selectorContainer", () => $43ad1b6180880954$export$4f73249088d12862, (v) => $43ad1b6180880954$export$4f73249088d12862 = v);
|
|
18382
|
-
$parcel$export(module.exports, "chipsContainer", () => $43ad1b6180880954$export$4ecd951fab6372ae, (v) => $43ad1b6180880954$export$4ecd951fab6372ae = v);
|
|
18383
|
-
$parcel$export(module.exports, "description", () => $43ad1b6180880954$export$6d59db4903f20f7d, (v) => $43ad1b6180880954$export$6d59db4903f20f7d = v);
|
|
18384
18426
|
$parcel$export(module.exports, "search", () => $43ad1b6180880954$export$d76128d007d19019, (v) => $43ad1b6180880954$export$d76128d007d19019 = v);
|
|
18427
|
+
$parcel$export(module.exports, "description", () => $43ad1b6180880954$export$6d59db4903f20f7d, (v) => $43ad1b6180880954$export$6d59db4903f20f7d = v);
|
|
18428
|
+
$parcel$export(module.exports, "chipsContainer", () => $43ad1b6180880954$export$4ecd951fab6372ae, (v) => $43ad1b6180880954$export$4ecd951fab6372ae = v);
|
|
18385
18429
|
var $43ad1b6180880954$export$4f73249088d12862;
|
|
18386
|
-
var $43ad1b6180880954$export$4ecd951fab6372ae;
|
|
18387
|
-
var $43ad1b6180880954$export$6d59db4903f20f7d;
|
|
18388
18430
|
var $43ad1b6180880954$export$d76128d007d19019;
|
|
18431
|
+
var $43ad1b6180880954$export$6d59db4903f20f7d;
|
|
18432
|
+
var $43ad1b6180880954$export$4ecd951fab6372ae;
|
|
18389
18433
|
"use strict";
|
|
18390
18434
|
$43ad1b6180880954$export$4f73249088d12862 = "_1WQQUG_selectorContainer";
|
|
18391
|
-
$43ad1b6180880954$export$4ecd951fab6372ae = "_1WQQUG_chipsContainer";
|
|
18392
|
-
$43ad1b6180880954$export$6d59db4903f20f7d = "_1WQQUG_description";
|
|
18393
18435
|
$43ad1b6180880954$export$d76128d007d19019 = "_1WQQUG_search";
|
|
18436
|
+
$43ad1b6180880954$export$6d59db4903f20f7d = "_1WQQUG_description";
|
|
18437
|
+
$43ad1b6180880954$export$4ecd951fab6372ae = "_1WQQUG_chipsContainer";
|
|
18394
18438
|
|
|
18395
18439
|
});
|
|
18396
18440
|
|
|
@@ -18527,26 +18571,27 @@ function $fc67e8a80c2a5449$var$_arrayLikeToArray(arr, len) {
|
|
|
18527
18571
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
18528
18572
|
return arr2;
|
|
18529
18573
|
}
|
|
18530
|
-
var $fc67e8a80c2a5449$var$SIZE_EMPTY_CHIPS =
|
|
18531
|
-
var $fc67e8a80c2a5449$var$SIZE_CHAR =
|
|
18532
|
-
var $fc67e8a80c2a5449$var$SIZE_ICONS =
|
|
18574
|
+
var $fc67e8a80c2a5449$var$SIZE_EMPTY_CHIPS = 35;
|
|
18575
|
+
var $fc67e8a80c2a5449$var$SIZE_CHAR = 6;
|
|
18576
|
+
var $fc67e8a80c2a5449$var$SIZE_ICONS = 50;
|
|
18577
|
+
var $fc67e8a80c2a5449$var$PLUS_CHIPS = 45;
|
|
18533
18578
|
var $fc67e8a80c2a5449$var$ListChips = function ListChips(_ref) {
|
|
18534
18579
|
var _options$slice;
|
|
18535
18580
|
var _ref$options = _ref.options, options = _ref$options === void 0 ? [] : _ref$options, widthContainer = _ref.widthContainer, onUnselectChips = _ref.onUnselectChips;
|
|
18536
18581
|
var numberCanDisplay = function numberCanDisplay() {
|
|
18537
18582
|
var numberChipsDisplayed = 0;
|
|
18538
|
-
var
|
|
18583
|
+
var restWidth = widthContainer - $fc67e8a80c2a5449$var$SIZE_ICONS;
|
|
18584
|
+
if ((options === null || options === void 0 ? void 0 : options.length) > 1) restWidth -= $fc67e8a80c2a5449$var$PLUS_CHIPS;
|
|
18539
18585
|
var _iterator = $fc67e8a80c2a5449$var$_createForOfIteratorHelper(options), _step;
|
|
18540
18586
|
try {
|
|
18541
18587
|
for(_iterator.s(); !(_step = _iterator.n()).done;){
|
|
18542
18588
|
var _option$label;
|
|
18543
18589
|
var option = _step.value;
|
|
18544
|
-
var
|
|
18545
|
-
|
|
18546
|
-
|
|
18547
|
-
|
|
18548
|
-
|
|
18549
|
-
} else break;
|
|
18590
|
+
var widthToAdd = $fc67e8a80c2a5449$var$SIZE_CHAR * (option === null || option === void 0 ? void 0 : (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.length) + $fc67e8a80c2a5449$var$SIZE_EMPTY_CHIPS;
|
|
18591
|
+
var canAddChips = restWidth > widthToAdd;
|
|
18592
|
+
restWidth = restWidth - widthToAdd;
|
|
18593
|
+
if (canAddChips) numberChipsDisplayed++;
|
|
18594
|
+
else break;
|
|
18550
18595
|
}
|
|
18551
18596
|
} catch (err) {
|
|
18552
18597
|
_iterator.e(err);
|
|
@@ -18605,22 +18650,22 @@ module.exports["default"] = $fc67e8a80c2a5449$var$_default;
|
|
|
18605
18650
|
});
|
|
18606
18651
|
parcelRequire.register("fMO2k", function(module, exports) {
|
|
18607
18652
|
|
|
18608
|
-
$parcel$export(module.exports, "otherChips", () => $b7e226f14163178c$export$8e7e5eade6f0e227, (v) => $b7e226f14163178c$export$8e7e5eade6f0e227 = v);
|
|
18609
18653
|
$parcel$export(module.exports, "chips", () => $b7e226f14163178c$export$9f51660fd8227d80, (v) => $b7e226f14163178c$export$9f51660fd8227d80 = v);
|
|
18654
|
+
$parcel$export(module.exports, "lineChips", () => $b7e226f14163178c$export$bce1eb5c2ff1e30e, (v) => $b7e226f14163178c$export$bce1eb5c2ff1e30e = v);
|
|
18610
18655
|
$parcel$export(module.exports, "listChips", () => $b7e226f14163178c$export$e7d1eca55671fd03, (v) => $b7e226f14163178c$export$e7d1eca55671fd03 = v);
|
|
18656
|
+
$parcel$export(module.exports, "otherChips", () => $b7e226f14163178c$export$8e7e5eade6f0e227, (v) => $b7e226f14163178c$export$8e7e5eade6f0e227 = v);
|
|
18611
18657
|
$parcel$export(module.exports, "toolTipsList", () => $b7e226f14163178c$export$5cb38942082ce4bd, (v) => $b7e226f14163178c$export$5cb38942082ce4bd = v);
|
|
18612
|
-
$parcel$export(module.exports, "lineChips", () => $b7e226f14163178c$export$bce1eb5c2ff1e30e, (v) => $b7e226f14163178c$export$bce1eb5c2ff1e30e = v);
|
|
18613
|
-
var $b7e226f14163178c$export$8e7e5eade6f0e227;
|
|
18614
18658
|
var $b7e226f14163178c$export$9f51660fd8227d80;
|
|
18659
|
+
var $b7e226f14163178c$export$bce1eb5c2ff1e30e;
|
|
18615
18660
|
var $b7e226f14163178c$export$e7d1eca55671fd03;
|
|
18661
|
+
var $b7e226f14163178c$export$8e7e5eade6f0e227;
|
|
18616
18662
|
var $b7e226f14163178c$export$5cb38942082ce4bd;
|
|
18617
|
-
var $b7e226f14163178c$export$bce1eb5c2ff1e30e;
|
|
18618
18663
|
"use strict";
|
|
18619
|
-
$b7e226f14163178c$export$8e7e5eade6f0e227 = "_8FpR1a_otherChips";
|
|
18620
18664
|
$b7e226f14163178c$export$9f51660fd8227d80 = "_8FpR1a_chips";
|
|
18665
|
+
$b7e226f14163178c$export$bce1eb5c2ff1e30e = "_8FpR1a_lineChips";
|
|
18621
18666
|
$b7e226f14163178c$export$e7d1eca55671fd03 = "_8FpR1a_listChips";
|
|
18667
|
+
$b7e226f14163178c$export$8e7e5eade6f0e227 = "_8FpR1a_otherChips";
|
|
18622
18668
|
$b7e226f14163178c$export$5cb38942082ce4bd = "_8FpR1a_toolTipsList";
|
|
18623
|
-
$b7e226f14163178c$export$bce1eb5c2ff1e30e = "_8FpR1a_lineChips";
|
|
18624
18669
|
|
|
18625
18670
|
});
|
|
18626
18671
|
|