@luminati-io/uikit 3.4.12 → 3.4.14-beta.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -33129,13 +33129,13 @@ var DragDrop = function DragDrop(props) {
|
|
33129
33129
|
return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, item.id, item));
|
33130
33130
|
}, {});
|
33131
33131
|
}, [items]);
|
33132
|
-
return /*#__PURE__*/
|
33132
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_4__.DragDropContext, {
|
33133
33133
|
onDragEnd: onDragEnd
|
33134
|
-
}, /*#__PURE__*/
|
33134
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
33135
33135
|
flex_direction: direction,
|
33136
33136
|
gap: "6px"
|
33137
33137
|
}, value.map(function (itemList, i) {
|
33138
|
-
return /*#__PURE__*/
|
33138
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_droppable__WEBPACK_IMPORTED_MODULE_3__.DroppableArea, {
|
33139
33139
|
key: i,
|
33140
33140
|
dropIndex: i,
|
33141
33141
|
items: itemList.map(function (id) {
|
@@ -33184,12 +33184,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
33184
33184
|
/* harmony export */ DraggableItem: () => (/* binding */ DraggableItem),
|
33185
33185
|
/* harmony export */ DraggerFunc: () => (/* binding */ DraggerFunc)
|
33186
33186
|
/* harmony export */ });
|
33187
|
-
/* harmony import */ var
|
33188
|
-
/* harmony import */ var
|
33189
|
-
/* harmony import */ var
|
33190
|
-
/* harmony import */ var
|
33191
|
-
/* harmony import */ var
|
33192
|
-
/* harmony import */ var
|
33187
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
33188
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
33189
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
33190
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
33191
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
33192
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../typography */ "./src/typography/index.js");
|
33193
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../icon */ "./src/icon.js");
|
33194
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../theme */ "./src/theme.js");
|
33193
33195
|
// LICENSE_CODE ZON
|
33194
33196
|
|
33195
33197
|
|
@@ -33199,10 +33201,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
33199
33201
|
|
33200
33202
|
|
33201
33203
|
|
33204
|
+
|
33202
33205
|
var DraggerFunc = function DraggerFunc(dragProvided) {
|
33203
33206
|
return function DraggerComp(_ref) {
|
33204
33207
|
var children = _ref.children;
|
33205
|
-
return /*#__PURE__*/
|
33208
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", dragProvided.dragHandleProps, children);
|
33206
33209
|
};
|
33207
33210
|
};
|
33208
33211
|
var DraggableItem = function DraggableItem(props) {
|
@@ -33211,20 +33214,20 @@ var DraggableItem = function DraggableItem(props) {
|
|
33211
33214
|
children = props.children,
|
33212
33215
|
Dragger = props.Dragger,
|
33213
33216
|
isDragging = props.isDragging;
|
33214
|
-
return /*#__PURE__*/
|
33217
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(DraggedContainer, {
|
33215
33218
|
$dragging: isDragging
|
33216
|
-
}, /*#__PURE__*/
|
33219
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Dragger, null, !disableDrag && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
33217
33220
|
name: "DragAndDrop",
|
33218
33221
|
size: "xs",
|
33219
33222
|
color: "gray_9",
|
33220
33223
|
verticalAlign: "sub"
|
33221
|
-
})), name && /*#__PURE__*/
|
33224
|
+
})), name && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Truncated_label, {
|
33222
33225
|
variant: "lg",
|
33223
33226
|
color: "gray_11_50"
|
33224
33227
|
}, name), children);
|
33225
33228
|
};
|
33226
33229
|
DraggableItem.displayName = 'DraggableItem';
|
33227
|
-
var DraggedContainer =
|
33230
|
+
var DraggedContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex).attrs({
|
33228
33231
|
align_items: 'center',
|
33229
33232
|
height: '32px',
|
33230
33233
|
padding: '0 12px',
|
@@ -33232,10 +33235,10 @@ var DraggedContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default()(
|
|
33232
33235
|
}).withConfig({
|
33233
33236
|
displayName: "DraggedContainer",
|
33234
33237
|
componentId: "sc-167vnen-0"
|
33235
|
-
})(["border-radius:4px;&:hover{background-color:", ";}", ""],
|
33236
|
-
return props.$dragging && (0,
|
33238
|
+
})(["border-radius:4px;&:hover{background-color:", ";}", ""], _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_2, function (props) {
|
33239
|
+
return props.$dragging && (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["background-color:", ";"], _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3);
|
33237
33240
|
});
|
33238
|
-
var Truncated_label =
|
33241
|
+
var Truncated_label = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_typography__WEBPACK_IMPORTED_MODULE_3__.Label).withConfig({
|
33239
33242
|
displayName: "Truncated_label",
|
33240
33243
|
componentId: "sc-167vnen-1"
|
33241
33244
|
})(["overflow:hidden;text-overflow:ellipsis;"]);
|
@@ -33298,25 +33301,25 @@ var DroppableArea = function DroppableArea(props) {
|
|
33298
33301
|
var DragComp = props.DragComp || _draggable__WEBPACK_IMPORTED_MODULE_6__.DraggableItem;
|
33299
33302
|
var EmptyComp = props.EmptyComp || EmptyDrop;
|
33300
33303
|
var get_draggable = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (provided, snapshot, item) {
|
33301
|
-
return /*#__PURE__*/
|
33304
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", _extends({}, provided.draggableProps, {
|
33302
33305
|
ref: provided.innerRef
|
33303
|
-
}), /*#__PURE__*/
|
33306
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DragComp, _extends({}, item, {
|
33304
33307
|
Dragger: (0,_draggable__WEBPACK_IMPORTED_MODULE_6__.DraggerFunc)(provided),
|
33305
33308
|
isDragging: snapshot.isDragging
|
33306
33309
|
})));
|
33307
33310
|
}, [DragComp]);
|
33308
|
-
return /*#__PURE__*/
|
33311
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Comp, _extends({}, section, {
|
33309
33312
|
index: dropIndex,
|
33310
33313
|
isFirst: isFirst,
|
33311
33314
|
isLast: isLast,
|
33312
33315
|
containerDirection: containerDirection
|
33313
|
-
}), /*#__PURE__*/
|
33316
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_7__.Droppable, {
|
33314
33317
|
droppableId: 'drop' + dropIndex
|
33315
33318
|
}, function (drop_provided, drop_snapshot) {
|
33316
|
-
return /*#__PURE__*/
|
33319
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", _extends({}, drop_provided.droppableProps, {
|
33317
33320
|
ref: drop_provided.innerRef
|
33318
|
-
}), !(items !== null && items !== void 0 && items.length) && /*#__PURE__*/
|
33319
|
-
return /*#__PURE__*/
|
33321
|
+
}), !(items !== null && items !== void 0 && items.length) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(EmptyComp, null), items.map(function (item, i) {
|
33322
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_7__.Draggable, {
|
33320
33323
|
key: item.id,
|
33321
33324
|
draggableId: item.id,
|
33322
33325
|
index: i
|
@@ -33327,7 +33330,7 @@ var DroppableArea = function DroppableArea(props) {
|
|
33327
33330
|
}));
|
33328
33331
|
};
|
33329
33332
|
var EmptyDrop = function EmptyDrop() {
|
33330
|
-
return /*#__PURE__*/
|
33333
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
33331
33334
|
color: "gray_8",
|
33332
33335
|
variant: "xs",
|
33333
33336
|
style: {
|
@@ -33337,11 +33340,11 @@ var EmptyDrop = function EmptyDrop() {
|
|
33337
33340
|
}, "Empty");
|
33338
33341
|
};
|
33339
33342
|
var DropComp = function DropComp(props) {
|
33340
|
-
return /*#__PURE__*/
|
33343
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SectionFlex, {
|
33341
33344
|
flex_direction: "column",
|
33342
33345
|
$last: props.isLast,
|
33343
33346
|
$direction: props.containerDirection
|
33344
|
-
}, /*#__PURE__*/
|
33347
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
33345
33348
|
style: {
|
33346
33349
|
marginTop: '6px',
|
33347
33350
|
marginBottom: '6px'
|
@@ -34402,7 +34405,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
34402
34405
|
/*jslint react:true*/
|
34403
34406
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
34404
34407
|
var _excluded = ["className", "classNamePrefix", "value", "onChange", "disabled", "options", "variant", "size", "label", "labelIcon", "helperText", "invalid", "required", "necessityIndicator"],
|
34405
|
-
_excluded2 = ["classNamePrefix", "value", "checked", "onClick", "label", "disabled", "size", "tooltip", "verticalAlign"];
|
34408
|
+
_excluded2 = ["classNamePrefix", "value", "checked", "onClick", "label", "disabled", "size", "tooltip", "interactive_tooltip", "verticalAlign"];
|
34406
34409
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
34407
34410
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
34408
34411
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
@@ -34514,6 +34517,7 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
34514
34517
|
disabled = props.disabled,
|
34515
34518
|
size = props.size,
|
34516
34519
|
tooltip = props.tooltip,
|
34520
|
+
interactive_tooltip = props.interactive_tooltip,
|
34517
34521
|
verticalAlign = props.verticalAlign,
|
34518
34522
|
rest = _objectWithoutProperties(props, _excluded2);
|
34519
34523
|
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useLabelId)(props.id);
|
@@ -34521,7 +34525,8 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
34521
34525
|
if (!disabled) onClick === null || onClick === void 0 || onClick(value, evt);
|
34522
34526
|
};
|
34523
34527
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {
|
34524
|
-
tooltip: tooltip
|
34528
|
+
tooltip: tooltip,
|
34529
|
+
interactive: interactive_tooltip
|
34525
34530
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioWrapper, _extends({
|
34526
34531
|
ref: ref,
|
34527
34532
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_8__.classNames)(classNamePrefix, _defineProperty(_defineProperty({
|
@@ -38096,7 +38101,9 @@ Provider.propTypes = {
|
|
38096
38101
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
38097
38102
|
onSelectRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
38098
38103
|
canOrderColumns: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
38099
|
-
rowActions: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)
|
38104
|
+
rowActions: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
38105
|
+
scrollable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
38106
|
+
scrollHeight: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
38100
38107
|
};
|
38101
38108
|
var calcPageCount = function calcPageCount(totalCount, pageSize) {
|
38102
38109
|
return Math.ceil(totalCount / pageSize);
|
@@ -38637,8 +38644,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38637
38644
|
|
38638
38645
|
|
38639
38646
|
|
38640
|
-
var TableFooter = function
|
38647
|
+
var TableFooter = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
38641
38648
|
var className = props.className,
|
38649
|
+
style = props.style,
|
38642
38650
|
rowDensity = props.rowDensity;
|
38643
38651
|
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_3__.useTableContext)(),
|
38644
38652
|
footerGroups = _useTableContext.footerGroups,
|
@@ -38649,11 +38657,13 @@ var TableFooter = function TableFooter(props) {
|
|
38649
38657
|
});
|
38650
38658
|
if (isFooterHidden) return null;
|
38651
38659
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
38660
|
+
ref: ref,
|
38652
38661
|
role: "rowgroup",
|
38653
38662
|
"data-rowgroup-type": "footer",
|
38654
38663
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
38655
38664
|
tableFooter: true
|
38656
|
-
})
|
38665
|
+
}),
|
38666
|
+
style: style
|
38657
38667
|
}, footerGroups.map(function (group) {
|
38658
38668
|
var _group$getFooterGroup = group.getFooterGroupProps(),
|
38659
38669
|
key = _group$getFooterGroup.key,
|
@@ -38676,7 +38686,7 @@ var TableFooter = function TableFooter(props) {
|
|
38676
38686
|
});
|
38677
38687
|
}));
|
38678
38688
|
}));
|
38679
|
-
};
|
38689
|
+
});
|
38680
38690
|
TableFooter.displayName = 'TableFooter';
|
38681
38691
|
var FooterCell = function FooterCell(props) {
|
38682
38692
|
var className = props.className,
|
@@ -38734,6 +38744,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
38734
38744
|
/*jslint react:true*/
|
38735
38745
|
|
38736
38746
|
var _excluded = ["key"];
|
38747
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
38737
38748
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
38738
38749
|
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."); }
|
38739
38750
|
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); }
|
@@ -38743,6 +38754,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
38743
38754
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
38744
38755
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
38745
38756
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
38757
|
+
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; }
|
38758
|
+
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; }
|
38759
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
38760
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
38761
|
+
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); }
|
38746
38762
|
|
38747
38763
|
|
38748
38764
|
|
@@ -38753,7 +38769,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38753
38769
|
|
38754
38770
|
|
38755
38771
|
|
38756
|
-
var TableHeader = function
|
38772
|
+
var TableHeader = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
38757
38773
|
var className = props.className,
|
38758
38774
|
compact = props.compact,
|
38759
38775
|
left = props.left;
|
@@ -38761,11 +38777,12 @@ var TableHeader = function TableHeader(props) {
|
|
38761
38777
|
headerGroups = _useTableContext.headerGroups,
|
38762
38778
|
hideHeader = _useTableContext.hideHeader;
|
38763
38779
|
if (hideHeader) return null;
|
38764
|
-
var style = {};
|
38780
|
+
var style = _objectSpread({}, props.style);
|
38765
38781
|
if (typeof left != 'undefined') style.marginLeft = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(-left);
|
38766
38782
|
var dataAttributes = {};
|
38767
38783
|
if (!compact) dataAttributes['data-rowgroup-type'] = 'head';
|
38768
38784
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", _extends({
|
38785
|
+
ref: ref,
|
38769
38786
|
role: "rowgroup",
|
38770
38787
|
style: style
|
38771
38788
|
}, dataAttributes, {
|
@@ -38798,7 +38815,7 @@ var TableHeader = function TableHeader(props) {
|
|
38798
38815
|
});
|
38799
38816
|
}));
|
38800
38817
|
}));
|
38801
|
-
};
|
38818
|
+
});
|
38802
38819
|
TableHeader.displayName = 'TableHeader';
|
38803
38820
|
var HeaderCell = function HeaderCell(props) {
|
38804
38821
|
var className = props.className,
|
@@ -39184,12 +39201,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
39184
39201
|
|
39185
39202
|
|
39186
39203
|
|
39187
|
-
_table__WEBPACK_IMPORTED_MODULE_3__
|
39188
|
-
_table__WEBPACK_IMPORTED_MODULE_3__
|
39189
|
-
_table__WEBPACK_IMPORTED_MODULE_3__
|
39190
|
-
_table__WEBPACK_IMPORTED_MODULE_3__
|
39191
|
-
_table__WEBPACK_IMPORTED_MODULE_3__
|
39192
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_table__WEBPACK_IMPORTED_MODULE_3__
|
39204
|
+
_table__WEBPACK_IMPORTED_MODULE_3__.Table.CustomizeButton = _customize_button__WEBPACK_IMPORTED_MODULE_2__["default"];
|
39205
|
+
_table__WEBPACK_IMPORTED_MODULE_3__.Table.Pagination = _pagination__WEBPACK_IMPORTED_MODULE_4__["default"];
|
39206
|
+
_table__WEBPACK_IMPORTED_MODULE_3__.Table.Provider = _context__WEBPACK_IMPORTED_MODULE_1__["default"];
|
39207
|
+
_table__WEBPACK_IMPORTED_MODULE_3__.Table.withPlugins = _plugin__WEBPACK_IMPORTED_MODULE_5__.withPlugins;
|
39208
|
+
_table__WEBPACK_IMPORTED_MODULE_3__.Table.plugins = _plugin__WEBPACK_IMPORTED_MODULE_5__.plugins;
|
39209
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_table__WEBPACK_IMPORTED_MODULE_3__.Table);
|
39193
39210
|
|
39194
39211
|
/***/ }),
|
39195
39212
|
|
@@ -40011,6 +40028,7 @@ var PopoverMenu = function PopoverMenu(props) {
|
|
40011
40028
|
});
|
40012
40029
|
}, [allActions]);
|
40013
40030
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
40031
|
+
className: _render_row__WEBPACK_IMPORTED_MODULE_7__.preventOnClickClass,
|
40014
40032
|
items: items,
|
40015
40033
|
size: "sm"
|
40016
40034
|
});
|
@@ -40490,7 +40508,7 @@ _plugin__WEBPACK_IMPORTED_MODULE_2__.plugins.stickyRows = function () {
|
|
40490
40508
|
"use strict";
|
40491
40509
|
__webpack_require__.r(__webpack_exports__);
|
40492
40510
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40493
|
-
/* harmony export */
|
40511
|
+
/* harmony export */ Table: () => (/* binding */ Table)
|
40494
40512
|
/* harmony export */ });
|
40495
40513
|
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isObject */ "./node_modules/lodash/isObject.js");
|
40496
40514
|
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -40511,9 +40529,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
40511
40529
|
|
40512
40530
|
|
40513
40531
|
/*jslint react:true*/
|
40532
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
40514
40533
|
|
40515
40534
|
|
40516
40535
|
var _excluded = ["getTableProps"];
|
40536
|
+
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; }
|
40537
|
+
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; }
|
40538
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
40539
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
40540
|
+
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); }
|
40517
40541
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
40518
40542
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
40519
40543
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
@@ -40545,9 +40569,24 @@ var InnerTable = function InnerTable(props) {
|
|
40545
40569
|
var onRowClick = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.onRowClick, context.onRowClick);
|
40546
40570
|
var stickyHeader = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.stickyHeader, context.stickyHeader);
|
40547
40571
|
var scrollTarget = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.scrollTarget, context.scrollTarget);
|
40572
|
+
var scrollable = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.scrollable, context.scrollable);
|
40573
|
+
var scrollHeight = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.scrollHeight, context.scrollHeight);
|
40548
40574
|
var offsetTop = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(stickyHeader) && stickyHeader.offsetTop || 0;
|
40549
40575
|
var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
40550
40576
|
var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
40577
|
+
var headerRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
40578
|
+
var footerRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
40579
|
+
var onScroll = scrollable ? function (evt) {
|
40580
|
+
if (footerRef.current) footerRef.current.scrollLeft = evt.target.scrollLeft;
|
40581
|
+
if (headerRef.current) headerRef.current.scrollLeft = evt.target.scrollLeft;
|
40582
|
+
} : undefined;
|
40583
|
+
var headStyle = scrollable ? {
|
40584
|
+
overflow: 'hidden'
|
40585
|
+
} : undefined;
|
40586
|
+
var bodyStyle = scrollable ? {
|
40587
|
+
overflow: 'auto',
|
40588
|
+
maxHeight: scrollHeight
|
40589
|
+
} : undefined;
|
40551
40590
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableWrapper, {
|
40552
40591
|
ref: wrapperRef,
|
40553
40592
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
@@ -40560,14 +40599,20 @@ var InnerTable = function InnerTable(props) {
|
|
40560
40599
|
table: true
|
40561
40600
|
})
|
40562
40601
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_header__WEBPACK_IMPORTED_MODULE_8__.TableHeader, {
|
40563
|
-
|
40602
|
+
ref: headerRef,
|
40603
|
+
className: className,
|
40604
|
+
style: headStyle
|
40564
40605
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableBody, {
|
40565
40606
|
rowDensity: rowDensity,
|
40566
40607
|
className: className,
|
40567
|
-
onRowClick: onRowClick
|
40608
|
+
onRowClick: onRowClick,
|
40609
|
+
style: bodyStyle,
|
40610
|
+
onScroll: onScroll
|
40568
40611
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_7__.TableFooter, {
|
40612
|
+
ref: footerRef,
|
40569
40613
|
rowDensity: rowDensity,
|
40570
|
-
className: className
|
40614
|
+
className: className,
|
40615
|
+
style: headStyle
|
40571
40616
|
}), !!stickyHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_10__.StickyHeader, {
|
40572
40617
|
offsetTop: offsetTop,
|
40573
40618
|
onRowClick: onRowClick,
|
@@ -40592,7 +40637,8 @@ StyledTable.displayName = 'StyledTable';
|
|
40592
40637
|
var TableBody = function TableBody(props) {
|
40593
40638
|
var className = props.className,
|
40594
40639
|
rowDensity = props.rowDensity,
|
40595
|
-
onRowClick = props.onRowClick
|
40640
|
+
onRowClick = props.onRowClick,
|
40641
|
+
onScroll = props.onScroll;
|
40596
40642
|
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
40597
40643
|
getTableBodyProps = _useTableContext2.getTableBodyProps,
|
40598
40644
|
prepareRow = _useTableContext2.prepareRow,
|
@@ -40621,12 +40667,16 @@ var TableBody = function TableBody(props) {
|
|
40621
40667
|
});
|
40622
40668
|
});
|
40623
40669
|
}();
|
40624
|
-
|
40670
|
+
var bodyProps = getTableBodyProps();
|
40671
|
+
var style = _objectSpread(_objectSpread({}, props.style), bodyProps.style);
|
40672
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableBodyRowGroup, _extends({
|
40625
40673
|
"data-rowgroup-type": "body"
|
40626
|
-
},
|
40674
|
+
}, bodyProps, {
|
40627
40675
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
40628
40676
|
tableBody: true
|
40629
|
-
})
|
40677
|
+
}),
|
40678
|
+
style: style,
|
40679
|
+
onScroll: onScroll
|
40630
40680
|
}), pinnedRows.map(function (row) {
|
40631
40681
|
prepareRow(row);
|
40632
40682
|
return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__.renderRow)({
|
@@ -40639,7 +40689,10 @@ var TableBody = function TableBody(props) {
|
|
40639
40689
|
});
|
40640
40690
|
}), body);
|
40641
40691
|
};
|
40642
|
-
|
40692
|
+
var TableBodyRowGroup = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
40693
|
+
displayName: "TableBodyRowGroup",
|
40694
|
+
componentId: "sc-ebeoik-2"
|
40695
|
+
})(["", ""], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].scrollbars.thin);
|
40643
40696
|
|
40644
40697
|
/***/ }),
|
40645
40698
|
|