@luminati-io/uikit 3.2.12 → 3.2.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -35448,7 +35448,7 @@ var CopyButton = function CopyButton(props) {
|
|
35448
35448
|
}
|
35449
35449
|
});
|
35450
35450
|
}, [code]);
|
35451
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__
|
35451
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, {
|
35452
35452
|
tooltip: tooltips[state],
|
35453
35453
|
placement: "right",
|
35454
35454
|
noWrap: true
|
@@ -35832,10 +35832,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
35832
35832
|
/* harmony export */ Badge: () => (/* reexport safe */ _badge__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
35833
35833
|
/* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
35834
35834
|
/* harmony export */ Chart: () => (/* reexport safe */ _chart__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
35835
|
-
/* harmony export */ ClickableTag: () => (/* reexport safe */
|
35836
|
-
/* harmony export */ Code: () => (/* reexport safe */
|
35837
|
-
/* harmony export */ CodeBlock: () => (/* reexport safe */
|
35838
|
-
/* harmony export */ CodeSnippet: () => (/* reexport safe */
|
35835
|
+
/* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.ClickableTag),
|
35836
|
+
/* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_17__.Code),
|
35837
|
+
/* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_17__.CodeBlock),
|
35838
|
+
/* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_17__.CodeSnippet),
|
35839
35839
|
/* harmony export */ ComboButton: () => (/* reexport safe */ _combo_button__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
35840
35840
|
/* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
35841
35841
|
/* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
@@ -35845,18 +35845,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
35845
35845
|
/* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
35846
35846
|
/* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
35847
35847
|
/* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_11__),
|
35848
|
-
/* harmony export */ Progress: () => (/* reexport safe */
|
35849
|
-
/* harmony export */ ProgressBar: () => (/* reexport safe */
|
35850
|
-
/* harmony export */ RemovableTag: () => (/* reexport safe */
|
35851
|
-
/* harmony export */ Tab: () => (/* reexport safe */
|
35848
|
+
/* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_19__.Progress),
|
35849
|
+
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_19__.ProgressBar),
|
35850
|
+
/* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.RemovableTag),
|
35851
|
+
/* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
35852
35852
|
/* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
35853
|
-
/* harmony export */ TagGroup: () => (/* reexport safe */
|
35854
|
-
/* harmony export */ Tooltip: () => (/* reexport safe */
|
35855
|
-
/* harmony export */ Typography: () => (/* reexport module object */
|
35853
|
+
/* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_20__.TagGroup),
|
35854
|
+
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_21__.Tooltip),
|
35855
|
+
/* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_16__),
|
35856
35856
|
/* harmony export */ theme: () => (/* reexport safe */ _theme__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
35857
|
-
/* harmony export */ translation: () => (/* reexport safe */
|
35858
|
-
/* harmony export */ withPopover: () => (/* reexport safe */
|
35859
|
-
/* harmony export */ withTooltip: () => (/* reexport safe */
|
35857
|
+
/* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
35858
|
+
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_18__.withPopover),
|
35859
|
+
/* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_21__.withTooltip)
|
35860
35860
|
/* harmony export */ });
|
35861
35861
|
/* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./badge */ "./src/badge.js");
|
35862
35862
|
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./button */ "./src/button/index.js");
|
@@ -35872,14 +35872,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
35872
35872
|
/* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./modal */ "./src/modal/index.js");
|
35873
35873
|
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./table */ "./src/table/index.js");
|
35874
35874
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
35875
|
-
/* harmony import */ var
|
35876
|
-
/* harmony import */ var
|
35877
|
-
/* harmony import */ var
|
35878
|
-
/* harmony import */ var
|
35879
|
-
/* harmony import */ var
|
35880
|
-
/* harmony import */ var
|
35881
|
-
/* harmony import */ var
|
35882
|
-
/* harmony import */ var
|
35875
|
+
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./translation */ "./src/translation.js");
|
35876
|
+
/* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
|
35877
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
|
35878
|
+
/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
|
35879
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
|
35880
|
+
/* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
|
35881
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
|
35882
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip.js");
|
35883
35883
|
// LICENSE_CODE ZON
|
35884
35884
|
|
35885
35885
|
|
@@ -36537,7 +36537,7 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
36537
36537
|
var ic = _icons__WEBPACK_IMPORTED_MODULE_3__["default"][icon];
|
36538
36538
|
if (!ic) return null;
|
36539
36539
|
var iconSize = size == 'lg' || size == 'md' ? 18 : 16;
|
36540
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__
|
36540
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, {
|
36541
36541
|
tooltip: tooltip,
|
36542
36542
|
placement: tooltipPlacement
|
36543
36543
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledIconButton, _extends({
|
@@ -36765,7 +36765,7 @@ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
36765
36765
|
var newValue = !checked;
|
36766
36766
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, evt);
|
36767
36767
|
};
|
36768
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__
|
36768
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, {
|
36769
36769
|
tooltip: tooltip
|
36770
36770
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CheckboxWrapper, _extends({
|
36771
36771
|
ref: ref
|
@@ -38653,16 +38653,25 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
38653
38653
|
|
38654
38654
|
var Number = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
38655
38655
|
var onChange = props.onChange,
|
38656
|
+
onBlur = props.onBlur,
|
38657
|
+
value = props.value,
|
38656
38658
|
step = props.step,
|
38657
38659
|
minValue = props.minValue,
|
38658
38660
|
maxValue = props.maxValue,
|
38659
38661
|
size = props.size,
|
38660
|
-
placeholder = props.placeholder
|
38662
|
+
placeholder = props.placeholder,
|
38663
|
+
changeOnBlur = props.changeOnBlur;
|
38661
38664
|
var handleChange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (e) {
|
38662
|
-
var v =
|
38663
|
-
if (
|
38665
|
+
var v = e.target.value;
|
38666
|
+
if (v != '') v = +v;
|
38664
38667
|
onChange === null || onChange === void 0 ? void 0 : onChange(v, e);
|
38665
38668
|
}, [onChange, minValue, maxValue]);
|
38669
|
+
var handleBlur = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (e) {
|
38670
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
38671
|
+
if (!changeOnBlur) return;
|
38672
|
+
var v = +value;
|
38673
|
+
if (typeof maxValue == 'number' && v > maxValue) onChange === null || onChange === void 0 ? void 0 : onChange(maxValue, e);else if (typeof minValue == 'number' && v < minValue) onChange === null || onChange === void 0 ? void 0 : onChange(minValue, e);
|
38674
|
+
}, [onChange, onBlur, value, minValue, maxValue, changeOnBlur]);
|
38666
38675
|
var heightCalculationCallback = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
38667
38676
|
var sizes = {
|
38668
38677
|
'xs': 28,
|
@@ -38684,13 +38693,16 @@ var Number = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRe
|
|
38684
38693
|
max: maxValue
|
38685
38694
|
},
|
38686
38695
|
Field: NumberField,
|
38696
|
+
value: value,
|
38687
38697
|
onChange: handleChange,
|
38698
|
+
onBlur: handleBlur,
|
38688
38699
|
placeholder: t(placeholder)
|
38689
38700
|
}));
|
38690
38701
|
});
|
38691
38702
|
Number.defaultProps = {
|
38692
38703
|
size: 'sm',
|
38693
|
-
step: 1
|
38704
|
+
step: 1,
|
38705
|
+
changeOnBlur: true
|
38694
38706
|
};
|
38695
38707
|
Number.displayName = 'Number';
|
38696
38708
|
Number.propTypes = {
|
@@ -38712,7 +38724,8 @@ Number.propTypes = {
|
|
38712
38724
|
label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
38713
38725
|
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
38714
38726
|
helperText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
38715
|
-
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg'])
|
38727
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg']),
|
38728
|
+
changeOnBlur: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
38716
38729
|
};
|
38717
38730
|
var NumberField = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input.attrs({
|
38718
38731
|
type: 'number'
|
@@ -38870,7 +38883,7 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
38870
38883
|
var handleClick = function handleClick(evt) {
|
38871
38884
|
if (!disabled) onClick === null || onClick === void 0 ? void 0 : onClick(value, evt);
|
38872
38885
|
};
|
38873
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__
|
38886
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {
|
38874
38887
|
tooltip: tooltip
|
38875
38888
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioWrapper, _extends({
|
38876
38889
|
ref: ref,
|
@@ -40075,7 +40088,7 @@ var MenuItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
40075
40088
|
ref: ref,
|
40076
40089
|
as: tag,
|
40077
40090
|
role: "menuitem"
|
40078
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__
|
40091
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip, {
|
40079
40092
|
tooltip: tooltip,
|
40080
40093
|
noWrap: true
|
40081
40094
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
|
@@ -41390,6 +41403,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
41390
41403
|
/* harmony import */ var _pinned_columns__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./pinned_columns */ "./src/table/pinned_columns.js");
|
41391
41404
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
|
41392
41405
|
/* harmony import */ var _expandable_rows__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./expandable_rows */ "./src/table/expandable_rows.js");
|
41406
|
+
/* harmony import */ var _select_rows__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./select_rows */ "./src/table/select_rows.js");
|
41393
41407
|
// LICENSE_CODE ZON
|
41394
41408
|
|
41395
41409
|
|
@@ -41423,6 +41437,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
41423
41437
|
|
41424
41438
|
|
41425
41439
|
|
41440
|
+
|
41426
41441
|
var assign = Object.assign;
|
41427
41442
|
var defaultPropGetter = function defaultPropGetter() {
|
41428
41443
|
return {};
|
@@ -41513,7 +41528,7 @@ var Provider = function Provider(props) {
|
|
41513
41528
|
getCellProps: getCellProps,
|
41514
41529
|
getFooterProps: getFooterProps,
|
41515
41530
|
ExpandHandleComp: ExpandHandleComp
|
41516
|
-
}, rest), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useExpanded, _expandable_rows__WEBPACK_IMPORTED_MODULE_9__.useExpandHandle, react_table__WEBPACK_IMPORTED_MODULE_2__.usePagination, props.fullWidth ? react_table__WEBPACK_IMPORTED_MODULE_2__.useFlexLayout : react_table__WEBPACK_IMPORTED_MODULE_2__.useBlockLayout, react_table__WEBPACK_IMPORTED_MODULE_2__.useResizeColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useColumnOrder, _pinned_columns__WEBPACK_IMPORTED_MODULE_7__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_6__.useEditableColumns].concat(_toConsumableArray(hooks)));
|
41531
|
+
}, rest), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useExpanded, _expandable_rows__WEBPACK_IMPORTED_MODULE_9__.useExpandHandle, react_table__WEBPACK_IMPORTED_MODULE_2__.usePagination, props.fullWidth ? react_table__WEBPACK_IMPORTED_MODULE_2__.useFlexLayout : react_table__WEBPACK_IMPORTED_MODULE_2__.useBlockLayout, react_table__WEBPACK_IMPORTED_MODULE_2__.useResizeColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useColumnOrder, _pinned_columns__WEBPACK_IMPORTED_MODULE_7__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_6__.useEditableColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useRowSelect, _select_rows__WEBPACK_IMPORTED_MODULE_10__.useSelectRows].concat(_toConsumableArray(hooks)));
|
41517
41532
|
var _table$state = table.state,
|
41518
41533
|
pageIndex = _table$state.pageIndex,
|
41519
41534
|
_pageSize = _table$state.pageSize;
|
@@ -41608,7 +41623,8 @@ Provider.propTypes = {
|
|
41608
41623
|
onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
41609
41624
|
stickyHeader: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
41610
41625
|
scrollTarget: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
|
41611
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
41626
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
41627
|
+
onSelectRows: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
41612
41628
|
};
|
41613
41629
|
var calcPageCount = function calcPageCount(totalCount, pageSize) {
|
41614
41630
|
return Math.ceil(totalCount / pageSize);
|
@@ -41842,7 +41858,7 @@ var CustomizeButtonItemWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___
|
|
41842
41858
|
var CustomizeButtonItemAction = function CustomizeButtonItemAction(props) {
|
41843
41859
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemActionWrapper, {
|
41844
41860
|
onClick: props.onClick
|
41845
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_8__
|
41861
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_8__.Tooltip, {
|
41846
41862
|
tooltip: props.tooltip,
|
41847
41863
|
tooltipPlacement: "top"
|
41848
41864
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
@@ -42968,20 +42984,17 @@ var usePinnedColumns = function usePinnedColumns(hooks) {
|
|
42968
42984
|
hooks.getHeaderProps.push(function (props, _ref) {
|
42969
42985
|
var instance = _ref.instance,
|
42970
42986
|
column = _ref.column;
|
42971
|
-
|
42972
|
-
return [props, nextProps];
|
42987
|
+
return [props, getPinnedProps(column, instance)];
|
42973
42988
|
});
|
42974
42989
|
hooks.getCellProps.push(function (props, _ref2) {
|
42975
42990
|
var instance = _ref2.instance,
|
42976
42991
|
cell = _ref2.cell;
|
42977
|
-
|
42978
|
-
return [props, nextProps];
|
42992
|
+
return [props, getPinnedProps(cell.column, instance)];
|
42979
42993
|
});
|
42980
42994
|
hooks.getFooterProps.push(function (props, _ref3) {
|
42981
42995
|
var instance = _ref3.instance,
|
42982
42996
|
column = _ref3.column;
|
42983
|
-
|
42984
|
-
return [props, nextProps];
|
42997
|
+
return [props, getPinnedProps(column, instance)];
|
42985
42998
|
});
|
42986
42999
|
hooks.stateReducers.push(usePinnedReducer);
|
42987
43000
|
hooks.useInstance.push(usePinnedInstance);
|
@@ -43114,6 +43127,125 @@ var renderRow = function renderRow(opt) {
|
|
43114
43127
|
|
43115
43128
|
/***/ }),
|
43116
43129
|
|
43130
|
+
/***/ "./src/table/select_rows.js":
|
43131
|
+
/*!**********************************!*\
|
43132
|
+
!*** ./src/table/select_rows.js ***!
|
43133
|
+
\**********************************/
|
43134
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
43135
|
+
|
43136
|
+
"use strict";
|
43137
|
+
__webpack_require__.r(__webpack_exports__);
|
43138
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
43139
|
+
/* harmony export */ useSelectRows: () => (/* binding */ useSelectRows)
|
43140
|
+
/* harmony export */ });
|
43141
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
43142
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
43143
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
43144
|
+
// LICENSE_CODE ZON
|
43145
|
+
|
43146
|
+
|
43147
|
+
/*jslint react:true*/
|
43148
|
+
var _excluded = ["indeterminate"];
|
43149
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
43150
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
43151
|
+
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); }
|
43152
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
43153
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
43154
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
43155
|
+
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); }
|
43156
|
+
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; }
|
43157
|
+
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; }
|
43158
|
+
|
43159
|
+
|
43160
|
+
var WIDTH = 54;
|
43161
|
+
var IndeterminateCheckbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (_ref, ref) {
|
43162
|
+
var indeterminate = _ref.indeterminate,
|
43163
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
43164
|
+
var defaultRef = react__WEBPACK_IMPORTED_MODULE_0___default().useRef();
|
43165
|
+
var resolvedRef = ref || defaultRef;
|
43166
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(function () {
|
43167
|
+
resolvedRef.current.indeterminate = indeterminate;
|
43168
|
+
}, [resolvedRef, indeterminate]);
|
43169
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", _extends({
|
43170
|
+
type: "checkbox",
|
43171
|
+
ref: resolvedRef
|
43172
|
+
}, rest));
|
43173
|
+
});
|
43174
|
+
var useInstance = function useInstance(instance) {
|
43175
|
+
var onSelectRows = instance.onSelectRows,
|
43176
|
+
state = instance.state;
|
43177
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(function () {
|
43178
|
+
if (onSelectRows) onSelectRows(state.selectedRowIds);
|
43179
|
+
}, [onSelectRows, state.selectedRowIds]);
|
43180
|
+
};
|
43181
|
+
var getCellProps = function getCellProps(header, instance) {
|
43182
|
+
var style = {};
|
43183
|
+
if (header.id == 'selection') {
|
43184
|
+
style = {
|
43185
|
+
position: 'sticky',
|
43186
|
+
width: "".concat(WIDTH, "px"),
|
43187
|
+
left: '0',
|
43188
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_1__.Z_INDEX.pinnedColumnHeader + 1
|
43189
|
+
};
|
43190
|
+
}
|
43191
|
+
return {
|
43192
|
+
style: style
|
43193
|
+
};
|
43194
|
+
};
|
43195
|
+
var useSelectRows = function useSelectRows(hooks) {
|
43196
|
+
hooks.visibleColumns.push(function (columns, _ref2) {
|
43197
|
+
var instance = _ref2.instance;
|
43198
|
+
if (!instance.onSelectRows) return columns;
|
43199
|
+
var onClick = function onClick(e) {
|
43200
|
+
// e.preventDefault();
|
43201
|
+
e.stopPropagation();
|
43202
|
+
};
|
43203
|
+
// Let's make a column for selection
|
43204
|
+
return [{
|
43205
|
+
id: 'selection',
|
43206
|
+
// The header can use the table's getToggleAllRowsSelectedProps
|
43207
|
+
// method to render a checkbox
|
43208
|
+
Header: function Header(_ref3) {
|
43209
|
+
var getToggleAllRowsSelectedProps = _ref3.getToggleAllRowsSelectedProps;
|
43210
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(IndeterminateCheckbox, getToggleAllRowsSelectedProps());
|
43211
|
+
},
|
43212
|
+
// The cell can use the individual row's getToggleRowSelectedProps
|
43213
|
+
// method to the render a checkbox
|
43214
|
+
Cell: function Cell(_ref4) {
|
43215
|
+
var row = _ref4.row;
|
43216
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
43217
|
+
onClick: onClick
|
43218
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(IndeterminateCheckbox, row.getToggleRowSelectedProps()));
|
43219
|
+
},
|
43220
|
+
disableResizing: true,
|
43221
|
+
disableHiding: true,
|
43222
|
+
disablePinning: true,
|
43223
|
+
width: WIDTH,
|
43224
|
+
maxWidth: WIDTH,
|
43225
|
+
minWidth: WIDTH
|
43226
|
+
}].concat(_toConsumableArray(columns));
|
43227
|
+
});
|
43228
|
+
hooks.useInstance.push(useInstance);
|
43229
|
+
hooks.getHeaderProps.push(function (props, _ref5) {
|
43230
|
+
var instance = _ref5.instance,
|
43231
|
+
column = _ref5.column;
|
43232
|
+
return [props, getCellProps(column, instance)];
|
43233
|
+
});
|
43234
|
+
hooks.getCellProps.push(function (props, _ref6) {
|
43235
|
+
var instance = _ref6.instance,
|
43236
|
+
cell = _ref6.cell;
|
43237
|
+
return [props, getCellProps(cell.column, instance)];
|
43238
|
+
});
|
43239
|
+
hooks.getFooterProps.push(function (props, _ref7) {
|
43240
|
+
var instance = _ref7.instance,
|
43241
|
+
column = _ref7.column;
|
43242
|
+
return [props, getCellProps(column, instance)];
|
43243
|
+
});
|
43244
|
+
};
|
43245
|
+
useSelectRows.pluginName = 'useSelectRows';
|
43246
|
+
|
43247
|
+
/***/ }),
|
43248
|
+
|
43117
43249
|
/***/ "./src/table/sort_icon.js":
|
43118
43250
|
/*!********************************!*\
|
43119
43251
|
!*** ./src/table/sort_icon.js ***!
|
@@ -44205,7 +44337,7 @@ var theme = {
|
|
44205
44337
|
"use strict";
|
44206
44338
|
__webpack_require__.r(__webpack_exports__);
|
44207
44339
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
44208
|
-
/* harmony export */
|
44340
|
+
/* harmony export */ Tooltip: () => (/* binding */ Tooltip),
|
44209
44341
|
/* harmony export */ withTooltip: () => (/* binding */ withTooltip)
|
44210
44342
|
/* harmony export */ });
|
44211
44343
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
@@ -44293,7 +44425,11 @@ var Tooltip = function Tooltip(props) {
|
|
44293
44425
|
strategy: 'fixed'
|
44294
44426
|
}),
|
44295
44427
|
styles = _usePopper.styles,
|
44296
|
-
attributes = _usePopper.attributes
|
44428
|
+
attributes = _usePopper.attributes,
|
44429
|
+
update = _usePopper.update;
|
44430
|
+
var tooltipRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
44431
|
+
if (visible && tooltip != tooltipRef.current && typeof update == 'function') update();
|
44432
|
+
tooltipRef.current = tooltip;
|
44297
44433
|
if (!tooltip) return children;
|
44298
44434
|
var tooltipNode = visible ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledTooltipBody, _extends({
|
44299
44435
|
ref: setPopperElement,
|
@@ -44349,7 +44485,6 @@ var StyledTooltipReference = styled_components__WEBPACK_IMPORTED_MODULE_2___defa
|
|
44349
44485
|
displayName: "StyledTooltipReference",
|
44350
44486
|
componentId: "sc-146jrck-2"
|
44351
44487
|
})(["width:fit-content;"]);
|
44352
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tooltip);
|
44353
44488
|
|
44354
44489
|
/***/ }),
|
44355
44490
|
|
@@ -45084,7 +45219,7 @@ var getDataProps = function getDataProps(props) {
|
|
45084
45219
|
});
|
45085
45220
|
};
|
45086
45221
|
var getCommonProps = function getCommonProps(props) {
|
45087
|
-
return Object.assign({}, lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(props, 'id', 'className', 'style', 'onClick', '
|
45222
|
+
return Object.assign({}, lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(props, 'id', 'className', 'style', 'role', 'tabIndex'), lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(props, 'onClick', 'onContextMenu', 'onDoubleClick', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop', 'onMouseDown', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseOut', 'onMouseOver', 'onMouseUp'), lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(props, 'onPointerDown', 'onPointerMove', 'onPointerUp', 'onPointerCancel', 'onGotPointerCapture', 'onLostPointerCapture', 'onPointerEnter', 'onPointerLeave', 'onPointerOver', 'onPointerOut'), getAriaProps(props), getDataProps(props));
|
45088
45223
|
};
|
45089
45224
|
|
45090
45225
|
/***/ }),
|