@luminati-io/uikit 3.4.5 → 3.4.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -28425,9 +28425,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
28425
28425
|
/* harmony import */ var _get_curve__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_curve */ "./src/chart/get_curve.js");
|
28426
28426
|
/* harmony import */ var _get_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./get_components */ "./src/chart/get_components.js");
|
28427
28427
|
/* harmony import */ var _glyph__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./glyph */ "./src/chart/glyph.js");
|
28428
|
-
/* harmony import */ var
|
28429
|
-
/* harmony import */ var
|
28430
|
-
/* harmony import */ var _use_chart_theme__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./use_chart_theme */ "./src/chart/use_chart_theme.js");
|
28428
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tooltip */ "./src/chart/tooltip.js");
|
28429
|
+
/* harmony import */ var _use_chart_theme__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./use_chart_theme */ "./src/chart/use_chart_theme.js");
|
28431
28430
|
// LICENSE_CODE ZON
|
28432
28431
|
|
28433
28432
|
|
@@ -28454,7 +28453,6 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
28454
28453
|
|
28455
28454
|
|
28456
28455
|
|
28457
|
-
|
28458
28456
|
var animationTrajectory = 'outside';
|
28459
28457
|
var config = {
|
28460
28458
|
x: {
|
@@ -28483,7 +28481,7 @@ var AreaChart = function AreaChart(props) {
|
|
28483
28481
|
stacked = props.stacked,
|
28484
28482
|
showTooltip = props.showTooltip,
|
28485
28483
|
_props$tooltipContent = props.tooltipContent,
|
28486
|
-
tooltipContent = _props$tooltipContent === void 0 ?
|
28484
|
+
tooltipContent = _props$tooltipContent === void 0 ? _tooltip__WEBPACK_IMPORTED_MODULE_7__.DefaultTooltip : _props$tooltipContent,
|
28487
28485
|
_props$curveType = props.curveType,
|
28488
28486
|
curveType = _props$curveType === void 0 ? '' : _props$curveType,
|
28489
28487
|
onPointerMove = props.onPointerMove,
|
@@ -28499,7 +28497,7 @@ var AreaChart = function AreaChart(props) {
|
|
28499
28497
|
AreaSeries = _getAnimatedOrUnanima.AreaSeries,
|
28500
28498
|
AreaStack = _getAnimatedOrUnanima.AreaStack,
|
28501
28499
|
Tooltip = _getAnimatedOrUnanima.Tooltip;
|
28502
|
-
var chartTheme = (0,
|
28500
|
+
var chartTheme = (0,_use_chart_theme__WEBPACK_IMPORTED_MODULE_8__.useChartTheme)(palette);
|
28503
28501
|
if (!data || !data.length) return null;
|
28504
28502
|
var curve = (0,_get_curve__WEBPACK_IMPORTED_MODULE_4__.getCurve)(curveType);
|
28505
28503
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(XYChart, {
|
@@ -28572,7 +28570,7 @@ var AreaChart = function AreaChart(props) {
|
|
28572
28570
|
};
|
28573
28571
|
AreaChart.displayName = 'AreaChart';
|
28574
28572
|
var Area = function Area(props) {
|
28575
|
-
var _splitProps = (0,
|
28573
|
+
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_2__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'stacked', 'showTooltip', 'tooltipContent', 'curveType', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
|
28576
28574
|
_splitProps2 = _slicedToArray(_splitProps, 2),
|
28577
28575
|
chartProps = _splitProps2[0],
|
28578
28576
|
restProps = _splitProps2[1];
|
@@ -28655,9 +28653,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
28655
28653
|
/* harmony import */ var _chart_container__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chart_container */ "./src/chart/chart_container.js");
|
28656
28654
|
/* harmony import */ var _get_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./get_components */ "./src/chart/get_components.js");
|
28657
28655
|
/* harmony import */ var _glyph__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./glyph */ "./src/chart/glyph.js");
|
28658
|
-
/* harmony import */ var
|
28659
|
-
/* harmony import */ var
|
28660
|
-
/* harmony import */ var _use_chart_theme__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./use_chart_theme */ "./src/chart/use_chart_theme.js");
|
28656
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tooltip */ "./src/chart/tooltip.js");
|
28657
|
+
/* harmony import */ var _use_chart_theme__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./use_chart_theme */ "./src/chart/use_chart_theme.js");
|
28661
28658
|
// LICENSE_CODE ZON
|
28662
28659
|
|
28663
28660
|
|
@@ -28684,7 +28681,6 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
28684
28681
|
|
28685
28682
|
|
28686
28683
|
|
28687
|
-
|
28688
28684
|
var animationTrajectory = 'outside';
|
28689
28685
|
var bandScaleConfig = {
|
28690
28686
|
type: 'band',
|
@@ -28714,7 +28710,7 @@ var BarChart = function BarChart(props) {
|
|
28714
28710
|
showAnnotations = props.showAnnotations,
|
28715
28711
|
showTooltip = props.showTooltip,
|
28716
28712
|
_props$tooltipContent = props.tooltipContent,
|
28717
|
-
tooltipContent = _props$tooltipContent === void 0 ?
|
28713
|
+
tooltipContent = _props$tooltipContent === void 0 ? _tooltip__WEBPACK_IMPORTED_MODULE_7__.DefaultTooltip : _props$tooltipContent,
|
28718
28714
|
onPointerMove = props.onPointerMove,
|
28719
28715
|
onPointerOut = props.onPointerOut,
|
28720
28716
|
onPointerUp = props.onPointerUp,
|
@@ -28736,7 +28732,7 @@ var BarChart = function BarChart(props) {
|
|
28736
28732
|
};
|
28737
28733
|
}, [horizontal]);
|
28738
28734
|
var Group = stacked ? BarStack : BarGroup;
|
28739
|
-
var chartTheme = (0,
|
28735
|
+
var chartTheme = (0,_use_chart_theme__WEBPACK_IMPORTED_MODULE_8__.useChartTheme)(palette);
|
28740
28736
|
if (!data || !data.length) return null;
|
28741
28737
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(XYChart, {
|
28742
28738
|
theme: chartTheme,
|
@@ -28811,7 +28807,7 @@ var BarChart = function BarChart(props) {
|
|
28811
28807
|
};
|
28812
28808
|
BarChart.displayName = 'BarChart';
|
28813
28809
|
var Bar = function Bar(props) {
|
28814
|
-
var _splitProps = (0,
|
28810
|
+
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_2__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'horizontal', 'stacked', 'showAnnotations', 'showTooltip', 'tooltipContent', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
|
28815
28811
|
_splitProps2 = _slicedToArray(_splitProps, 2),
|
28816
28812
|
chartProps = _splitProps2[0],
|
28817
28813
|
restProps = _splitProps2[1];
|
@@ -29710,9 +29706,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
29710
29706
|
/* harmony import */ var _get_curve__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_curve */ "./src/chart/get_curve.js");
|
29711
29707
|
/* harmony import */ var _get_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./get_components */ "./src/chart/get_components.js");
|
29712
29708
|
/* harmony import */ var _glyph__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./glyph */ "./src/chart/glyph.js");
|
29713
|
-
/* harmony import */ var
|
29714
|
-
/* harmony import */ var
|
29715
|
-
/* harmony import */ var _use_chart_theme__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./use_chart_theme */ "./src/chart/use_chart_theme.js");
|
29709
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tooltip */ "./src/chart/tooltip.js");
|
29710
|
+
/* harmony import */ var _use_chart_theme__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./use_chart_theme */ "./src/chart/use_chart_theme.js");
|
29716
29711
|
// LICENSE_CODE ZON
|
29717
29712
|
|
29718
29713
|
|
@@ -29743,7 +29738,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
29743
29738
|
|
29744
29739
|
|
29745
29740
|
|
29746
|
-
|
29747
29741
|
var animationTrajectory = 'outside';
|
29748
29742
|
var config = {
|
29749
29743
|
x: {
|
@@ -29770,7 +29764,7 @@ var LineChart = function LineChart(props) {
|
|
29770
29764
|
margin = props.margin,
|
29771
29765
|
showTooltip = props.showTooltip,
|
29772
29766
|
_props$tooltipContent = props.tooltipContent,
|
29773
|
-
tooltipContent = _props$tooltipContent === void 0 ?
|
29767
|
+
tooltipContent = _props$tooltipContent === void 0 ? _tooltip__WEBPACK_IMPORTED_MODULE_7__.DefaultTooltip : _props$tooltipContent,
|
29774
29768
|
_props$curveType = props.curveType,
|
29775
29769
|
curveType = _props$curveType === void 0 ? '' : _props$curveType,
|
29776
29770
|
onPointerMove = props.onPointerMove,
|
@@ -29785,7 +29779,7 @@ var LineChart = function LineChart(props) {
|
|
29785
29779
|
Axis = _getAnimatedOrUnanima.Axis,
|
29786
29780
|
LineSeries = _getAnimatedOrUnanima.LineSeries,
|
29787
29781
|
Tooltip = _getAnimatedOrUnanima.Tooltip;
|
29788
|
-
var chartTheme = (0,
|
29782
|
+
var chartTheme = (0,_use_chart_theme__WEBPACK_IMPORTED_MODULE_8__.useChartTheme)(palette);
|
29789
29783
|
if (!data || !data.length) return null;
|
29790
29784
|
var xLabel = xAxis.label,
|
29791
29785
|
_xAxis$numTicks = xAxis.numTicks,
|
@@ -29864,7 +29858,7 @@ var LineChart = function LineChart(props) {
|
|
29864
29858
|
};
|
29865
29859
|
LineChart.displayName = 'LineChart';
|
29866
29860
|
var Line = function Line(props) {
|
29867
|
-
var _splitProps = (0,
|
29861
|
+
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_2__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'showTooltip', 'tooltipContent', 'curveType', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
|
29868
29862
|
_splitProps2 = _slicedToArray(_splitProps, 2),
|
29869
29863
|
chartProps = _splitProps2[0],
|
29870
29864
|
restProps = _splitProps2[1];
|
@@ -30014,36 +30008,6 @@ var NoDataWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div
|
|
30014
30008
|
|
30015
30009
|
/***/ }),
|
30016
30010
|
|
30017
|
-
/***/ "./src/chart/split_props.js":
|
30018
|
-
/*!**********************************!*\
|
30019
|
-
!*** ./src/chart/split_props.js ***!
|
30020
|
-
\**********************************/
|
30021
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
30022
|
-
|
30023
|
-
"use strict";
|
30024
|
-
__webpack_require__.r(__webpack_exports__);
|
30025
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
30026
|
-
/* harmony export */ splitProps: () => (/* binding */ splitProps)
|
30027
|
-
/* harmony export */ });
|
30028
|
-
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
|
30029
|
-
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
|
30030
|
-
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");
|
30031
|
-
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
30032
|
-
// LICENSE_CODE ZON
|
30033
|
-
|
30034
|
-
|
30035
|
-
/*jslint react:true*/
|
30036
|
-
|
30037
|
-
|
30038
|
-
var splitProps = function splitProps(props) {
|
30039
|
-
for (var _len = arguments.length, names = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
30040
|
-
names[_key - 1] = arguments[_key];
|
30041
|
-
}
|
30042
|
-
return [lodash_pick__WEBPACK_IMPORTED_MODULE_1___default().apply(void 0, [props].concat(names)), lodash_omit__WEBPACK_IMPORTED_MODULE_0___default().apply(void 0, [props].concat(names))];
|
30043
|
-
};
|
30044
|
-
|
30045
|
-
/***/ }),
|
30046
|
-
|
30047
30011
|
/***/ "./src/chart/tooltip.js":
|
30048
30012
|
/*!******************************!*\
|
30049
30013
|
!*** ./src/chart/tooltip.js ***!
|
@@ -33203,10 +33167,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
33203
33167
|
|
33204
33168
|
|
33205
33169
|
/*jslint react:true*/
|
33206
|
-
var _excluded = ["label", "labelIcon", "required", "necessityIndicator", "
|
33170
|
+
var _excluded = ["id", "label", "labelIcon", "required", "necessityIndicator", "placeholder", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "className", "classNamePrefix", "hideSelectedOptions", "isOptionDisabled", "async", "searchable", "closeMenuOnSelect"];
|
33207
33171
|
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); }
|
33208
33172
|
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; }
|
33209
33173
|
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; }
|
33174
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
33175
|
+
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."); }
|
33176
|
+
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); }
|
33177
|
+
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; }
|
33178
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
33179
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
33210
33180
|
|
33211
33181
|
|
33212
33182
|
|
@@ -33221,54 +33191,31 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
33221
33191
|
|
33222
33192
|
|
33223
33193
|
var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, forwardRef) {
|
33224
|
-
var
|
33225
|
-
|
33226
|
-
|
33227
|
-
|
33228
|
-
|
33229
|
-
|
33230
|
-
|
33231
|
-
|
33232
|
-
|
33233
|
-
|
33234
|
-
|
33235
|
-
|
33236
|
-
|
33237
|
-
|
33238
|
-
|
33239
|
-
|
33240
|
-
|
33241
|
-
|
33242
|
-
|
33243
|
-
|
33244
|
-
|
33245
|
-
|
33246
|
-
|
33247
|
-
|
33248
|
-
|
33249
|
-
onInputChange = props.onInputChange,
|
33250
|
-
getOptionValue = props.getOptionValue,
|
33251
|
-
getOptionLabel = props.getOptionLabel,
|
33252
|
-
isOptionDisabled = props.isOptionDisabled,
|
33253
|
-
isOptionSelected = props.isOptionSelected,
|
33254
|
-
async = props.async,
|
33255
|
-
isLoading = props.isLoading,
|
33256
|
-
loadOptions = props.loadOptions,
|
33257
|
-
defaultOptions = props.defaultOptions,
|
33258
|
-
cacheOptions = props.cacheOptions,
|
33259
|
-
onCreateOption = props.onCreateOption,
|
33260
|
-
formatCreateLabel = props.formatCreateLabel,
|
33261
|
-
isValidNewOption = props.isValidNewOption,
|
33262
|
-
getNewOptionData = props.getNewOptionData,
|
33263
|
-
autoFocus = props.autoFocus,
|
33264
|
-
blurInputOnSelect = props.blurInputOnSelect,
|
33265
|
-
onMenuOpen = props.onMenuOpen,
|
33266
|
-
onMenuClose = props.onMenuClose,
|
33267
|
-
searchable = props.searchable,
|
33268
|
-
openMenuOnFocus = props.openMenuOnFocus,
|
33269
|
-
menuIsOpen = props.menuIsOpen,
|
33270
|
-
rest = _objectWithoutProperties(props, _excluded);
|
33271
|
-
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useLabelId)(props.id);
|
33194
|
+
var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_8__.splitProps)(props, 'autoFocus', 'blurInputOnSelect', 'filterOption', 'formatOptionLabel', 'value', 'defaultValue', 'options', 'onChange', 'onFocus', 'onBlur', 'menuPortalTarget', 'onChangeCapture', 'menuPlacement', 'onInputChange', 'getOptionValue', 'getOptionLabel', 'isOptionSelected', 'isLoading', 'loadOptions', 'defaultOptions', 'cacheOptions', 'onCreateOption', 'formatCreateLabel', 'isValidNewOption', 'getNewOptionData', 'onMenuOpen', 'onMenuClose', 'openMenuOnFocus', 'menuIsOpen'),
|
33195
|
+
_splitProps2 = _slicedToArray(_splitProps, 2),
|
33196
|
+
selectProps = _splitProps2[0],
|
33197
|
+
restProps = _splitProps2[1];
|
33198
|
+
var id = restProps.id,
|
33199
|
+
label = restProps.label,
|
33200
|
+
labelIcon = restProps.labelIcon,
|
33201
|
+
required = restProps.required,
|
33202
|
+
necessityIndicator = restProps.necessityIndicator,
|
33203
|
+
placeholder = restProps.placeholder,
|
33204
|
+
multiselect = restProps.multiselect,
|
33205
|
+
creatable = restProps.creatable,
|
33206
|
+
clearable = restProps.clearable,
|
33207
|
+
disabled = restProps.disabled,
|
33208
|
+
invalid = restProps.invalid,
|
33209
|
+
helperText = restProps.helperText,
|
33210
|
+
className = restProps.className,
|
33211
|
+
classNamePrefix = restProps.classNamePrefix,
|
33212
|
+
hideSelectedOptions = restProps.hideSelectedOptions,
|
33213
|
+
isOptionDisabled = restProps.isOptionDisabled,
|
33214
|
+
async = restProps.async,
|
33215
|
+
searchable = restProps.searchable,
|
33216
|
+
closeMenuOnSelect = restProps.closeMenuOnSelect,
|
33217
|
+
rest = _objectWithoutProperties(restProps, _excluded);
|
33218
|
+
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useLabelId)(id);
|
33272
33219
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useTranslate)();
|
33273
33220
|
var styles = (0,_use_styles__WEBPACK_IMPORTED_MODULE_11__.useStyles)(props);
|
33274
33221
|
var SelectComp = getComponent({
|
@@ -33295,24 +33242,17 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
33295
33242
|
label: label,
|
33296
33243
|
labelIcon: labelIcon,
|
33297
33244
|
required: required,
|
33298
|
-
necessityIndicator: necessityIndicator
|
33299
|
-
|
33300
|
-
|
33301
|
-
|
33302
|
-
filterOption: filterOption,
|
33303
|
-
formatOptionLabel: formatOptionLabel,
|
33245
|
+
necessityIndicator: necessityIndicator,
|
33246
|
+
classNamePrefix: className
|
33247
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SelectComp, _extends({}, selectProps, {
|
33248
|
+
id: id,
|
33304
33249
|
"aria-labelledby": label ? labelId : undefined,
|
33305
33250
|
"aria-invalid": invalid,
|
33306
|
-
value: value,
|
33307
|
-
defaultValue: defaultValue,
|
33308
33251
|
placeholder: t(placeholder),
|
33309
|
-
options: options,
|
33310
|
-
onChange: onChange,
|
33311
|
-
onFocus: onFocus,
|
33312
|
-
onBlur: onBlur,
|
33313
33252
|
isMulti: multiselect,
|
33314
33253
|
isClearable: clearable,
|
33315
33254
|
isDisabled: disabled,
|
33255
|
+
isSearchable: searchable,
|
33316
33256
|
required: required,
|
33317
33257
|
styles: styles,
|
33318
33258
|
components: (0,_build_components__WEBPACK_IMPORTED_MODULE_10__.buildComponents)(props),
|
@@ -33320,30 +33260,10 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
33320
33260
|
container: true
|
33321
33261
|
}),
|
33322
33262
|
classNamePrefix: classNamePrefix,
|
33323
|
-
|
33324
|
-
onChangeCapture: onChangeCapture,
|
33325
|
-
closeMenuOnSelect: !multiselect,
|
33326
|
-
menuPlacement: menuPlacement,
|
33263
|
+
closeMenuOnSelect: (0,_util__WEBPACK_IMPORTED_MODULE_8__.firstDefined)(closeMenuOnSelect, !multiselect),
|
33327
33264
|
hideSelectedOptions: _hideSelectedOptions,
|
33328
|
-
|
33329
|
-
|
33330
|
-
getOptionLabel: getOptionLabel,
|
33331
|
-
isOptionDisabled: _isOptionDisabled,
|
33332
|
-
isOptionSelected: isOptionSelected,
|
33333
|
-
isLoading: isLoading,
|
33334
|
-
loadOptions: loadOptions,
|
33335
|
-
defaultOptions: defaultOptions,
|
33336
|
-
cacheOptions: cacheOptions,
|
33337
|
-
onCreateOption: onCreateOption,
|
33338
|
-
formatCreateLabel: formatCreateLabel,
|
33339
|
-
isValidNewOption: isValidNewOption,
|
33340
|
-
getNewOptionData: getNewOptionData,
|
33341
|
-
onMenuOpen: onMenuOpen,
|
33342
|
-
onMenuClose: onMenuClose,
|
33343
|
-
isSearchable: searchable,
|
33344
|
-
openMenuOnFocus: openMenuOnFocus,
|
33345
|
-
menuIsOpen: menuIsOpen
|
33346
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.HelperText, {
|
33265
|
+
isOptionDisabled: _isOptionDisabled
|
33266
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_9__.HelperText, {
|
33347
33267
|
invalid: invalid
|
33348
33268
|
}, helperText));
|
33349
33269
|
});
|
@@ -33396,7 +33316,8 @@ Dropdown.propTypes = {
|
|
33396
33316
|
onMenuClose: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
33397
33317
|
searchable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
33398
33318
|
openMenuOnFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
33399
|
-
menuIsOpen: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
33319
|
+
menuIsOpen: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
33320
|
+
closeMenuOnSelect: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
33400
33321
|
};
|
33401
33322
|
Dropdown.defaultProps = {
|
33402
33323
|
size: 'sm',
|
@@ -37575,9 +37496,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
37575
37496
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
37576
37497
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
37577
37498
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
37578
|
-
/* harmony import */ var
|
37579
|
-
/* harmony import */ var
|
37580
|
-
/* harmony import */ var
|
37499
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
37500
|
+
/* harmony import */ var _editable_columns__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./editable_columns */ "./src/table/editable_columns.js");
|
37501
|
+
/* harmony import */ var _pinned_columns__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pinned_columns */ "./src/table/pinned_columns.js");
|
37581
37502
|
/* harmony import */ var _expandable_rows__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./expandable_rows */ "./src/table/expandable_rows.js");
|
37582
37503
|
/* harmony import */ var _select_rows__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./select_rows */ "./src/table/select_rows.js");
|
37583
37504
|
// LICENSE_CODE ZON
|
@@ -37707,7 +37628,7 @@ var Provider = function Provider(props) {
|
|
37707
37628
|
getCellProps: getCellProps,
|
37708
37629
|
getFooterProps: getFooterProps,
|
37709
37630
|
ExpandHandleComp: ExpandHandleComp
|
37710
|
-
}, 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,
|
37631
|
+
}, 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_8__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_7__.useEditableColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useRowSelect, _select_rows__WEBPACK_IMPORTED_MODULE_10__.useSelectRows].concat(_toConsumableArray(hooks)));
|
37711
37632
|
var _table$state = table.state,
|
37712
37633
|
pageIndex = _table$state.pageIndex,
|
37713
37634
|
_pageSize = _table$state.pageSize;
|
@@ -37819,7 +37740,7 @@ var useCanHideColumns = function useCanHideColumns(hooks) {
|
|
37819
37740
|
var disableHiding = instance.disableHiding,
|
37820
37741
|
flatHeaders = instance.flatHeaders;
|
37821
37742
|
flatHeaders.forEach(function (header) {
|
37822
|
-
header.canHide = (0,
|
37743
|
+
header.canHide = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(header.disableHiding === true ? false : undefined, disableHiding === true ? false : undefined, true);
|
37823
37744
|
});
|
37824
37745
|
});
|
37825
37746
|
};
|
@@ -38078,7 +37999,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
38078
37999
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
38079
38000
|
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-table */ "react-table");
|
38080
38001
|
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_1__);
|
38081
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*!
|
38002
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
38082
38003
|
// LICENSE_CODE ZON
|
38083
38004
|
|
38084
38005
|
|
@@ -38336,23 +38257,25 @@ __webpack_require__.r(__webpack_exports__);
|
|
38336
38257
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
38337
38258
|
/* harmony export */ TableHeader: () => (/* binding */ TableHeader)
|
38338
38259
|
/* harmony export */ });
|
38339
|
-
/* harmony import */ var
|
38340
|
-
/* harmony import */ var
|
38341
|
-
/* harmony import */ var
|
38342
|
-
/* harmony import */ var
|
38343
|
-
/* harmony import */ var
|
38344
|
-
/* harmony import */ var
|
38345
|
-
/* harmony import */ var
|
38346
|
-
/* harmony import */ var
|
38347
|
-
/* harmony import */ var
|
38348
|
-
/* harmony import */ var
|
38349
|
-
/* harmony import */ var
|
38350
|
-
/* harmony import */ var
|
38351
|
-
/* harmony import */ var
|
38260
|
+
/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isString */ "./node_modules/lodash/isString.js");
|
38261
|
+
/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isString__WEBPACK_IMPORTED_MODULE_0__);
|
38262
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
38263
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
38264
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
38265
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
38266
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
38267
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
38268
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
38269
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
38270
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
38271
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
38272
|
+
/* harmony import */ var _header_functions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./header_functions */ "./src/table/header_functions.js");
|
38273
|
+
/* harmony import */ var _sort_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sort_icon */ "./src/table/sort_icon.js");
|
38352
38274
|
// LICENSE_CODE ZON
|
38353
38275
|
|
38354
38276
|
|
38355
38277
|
/*jslint react:true*/
|
38278
|
+
|
38356
38279
|
var _excluded = ["key"];
|
38357
38280
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
38358
38281
|
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."); }
|
@@ -38373,24 +38296,23 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38373
38296
|
|
38374
38297
|
|
38375
38298
|
|
38376
|
-
|
38377
38299
|
var TableHeader = function TableHeader(props) {
|
38378
38300
|
var className = props.className,
|
38379
38301
|
compact = props.compact,
|
38380
38302
|
left = props.left;
|
38381
|
-
var _useTableContext = (0,
|
38303
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_8__.useTableContext)(),
|
38382
38304
|
headerGroups = _useTableContext.headerGroups,
|
38383
38305
|
hideHeader = _useTableContext.hideHeader;
|
38384
38306
|
if (hideHeader) return null;
|
38385
38307
|
var style = {};
|
38386
|
-
if (typeof left != 'undefined') style.marginLeft = (0,
|
38308
|
+
if (typeof left != 'undefined') style.marginLeft = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(-left);
|
38387
38309
|
var dataAttributes = {};
|
38388
38310
|
if (!compact) dataAttributes['data-rowgroup-type'] = 'head';
|
38389
|
-
return /*#__PURE__*/
|
38311
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", _extends({
|
38390
38312
|
role: "rowgroup",
|
38391
38313
|
style: style
|
38392
38314
|
}, dataAttributes, {
|
38393
|
-
className: (0,
|
38315
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
38394
38316
|
tableHeader: true,
|
38395
38317
|
'tableHeader--is-compact': compact
|
38396
38318
|
})
|
@@ -38398,20 +38320,20 @@ var TableHeader = function TableHeader(props) {
|
|
38398
38320
|
var _group$getHeaderGroup = group.getHeaderGroupProps(),
|
38399
38321
|
key = _group$getHeaderGroup.key,
|
38400
38322
|
rest = _objectWithoutProperties(_group$getHeaderGroup, _excluded);
|
38401
|
-
return /*#__PURE__*/
|
38323
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", _extends({
|
38402
38324
|
key: key
|
38403
38325
|
}, rest, {
|
38404
|
-
className: (0,
|
38326
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
38405
38327
|
headerRow: true
|
38406
38328
|
})
|
38407
38329
|
}), group.headers.map(function (header, i, arr) {
|
38408
38330
|
var isLast = i == arr.length - 1;
|
38409
|
-
return /*#__PURE__*/
|
38331
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCell, {
|
38410
38332
|
compact: compact,
|
38411
38333
|
isLast: isLast,
|
38412
38334
|
key: header.getHeaderProps().key,
|
38413
38335
|
header: header,
|
38414
|
-
className: (0,
|
38336
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
38415
38337
|
headerCell: true,
|
38416
38338
|
'headerCell--is-compact': compact,
|
38417
38339
|
'headerCell--is-last': isLast
|
@@ -38431,14 +38353,14 @@ var HeaderCell = function HeaderCell(props) {
|
|
38431
38353
|
on_sort = header.on_sort,
|
38432
38354
|
isResizing = header.isResizing,
|
38433
38355
|
getResizerProps = header.getResizerProps;
|
38434
|
-
var _useTableContext2 = (0,
|
38356
|
+
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_8__.useTableContext)(),
|
38435
38357
|
getColumnProps = _useTableContext2.getColumnProps,
|
38436
38358
|
getHeaderProps = _useTableContext2.getHeaderProps,
|
38437
38359
|
columnsSort = _useTableContext2.columnsSort,
|
38438
38360
|
fullWidth = _useTableContext2.fullWidth;
|
38439
38361
|
var sort = columnsSort[id];
|
38440
38362
|
var canSort = header.can_sort && header.on_sort;
|
38441
|
-
var handleSort = (0,
|
38363
|
+
var handleSort = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
38442
38364
|
if (on_sort) {
|
38443
38365
|
on_sort(id, {
|
38444
38366
|
asc: 'desc',
|
@@ -38448,14 +38370,14 @@ var HeaderCell = function HeaderCell(props) {
|
|
38448
38370
|
}
|
38449
38371
|
}, [id, sort, on_sort]);
|
38450
38372
|
var canResize = header.canResize && !(fullWidth && isLast) && !compact;
|
38451
|
-
var _useState = (0,
|
38373
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
38452
38374
|
_useState2 = _slicedToArray(_useState, 2),
|
38453
38375
|
hovered = _useState2[0],
|
38454
38376
|
setHovered = _useState2[1];
|
38455
38377
|
var iconVisible = canSort && (['asc', 'desc'].includes(sort) || hovered);
|
38456
38378
|
var headerCellProps = header.getHeaderProps([getColumnProps(header), getHeaderProps(header)]);
|
38457
|
-
return /*#__PURE__*/
|
38458
|
-
className: (0,
|
38379
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCellContent, _extends({}, headerCellProps, {
|
38380
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(header.className, {
|
38459
38381
|
header: true
|
38460
38382
|
}, className, headerCellProps.className),
|
38461
38383
|
onMouseOver: function onMouseOver() {
|
@@ -38464,54 +38386,63 @@ var HeaderCell = function HeaderCell(props) {
|
|
38464
38386
|
onMouseOut: function onMouseOut() {
|
38465
38387
|
return setHovered(false);
|
38466
38388
|
}
|
38467
|
-
}), /*#__PURE__*/
|
38389
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCellWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCellLeft, {
|
38468
38390
|
$canSort: canSort,
|
38469
38391
|
onClick: handleSort
|
38470
|
-
}, !compact &&
|
38392
|
+
}, !compact && renderCellContent(header, 'Header', {
|
38471
38393
|
compact: compact
|
38472
|
-
}), compact && /*#__PURE__*/
|
38394
|
+
}), compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
38473
38395
|
variant: "sm",
|
38474
38396
|
color: "gray_11",
|
38475
38397
|
no_wrap: true
|
38476
|
-
}, name || id), /*#__PURE__*/
|
38398
|
+
}, name || id), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_sort_icon__WEBPACK_IMPORTED_MODULE_10__.SortIcon, {
|
38477
38399
|
visible: !!iconVisible,
|
38478
38400
|
reverse: sort == 'desc'
|
38479
|
-
})), !compact && /*#__PURE__*/
|
38401
|
+
})), !compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_header_functions__WEBPACK_IMPORTED_MODULE_9__.HeaderFunctions, {
|
38480
38402
|
header: header,
|
38481
38403
|
visible: hovered,
|
38482
38404
|
onItemClick: function onItemClick() {
|
38483
38405
|
return setHovered(false);
|
38484
38406
|
}
|
38485
|
-
}), canResize && /*#__PURE__*/
|
38407
|
+
}), canResize && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCellResizer, _extends({}, getResizerProps(), {
|
38486
38408
|
$isResizing: isResizing
|
38487
38409
|
}))));
|
38488
38410
|
};
|
38489
38411
|
HeaderCell.displayName = 'HeaderCell';
|
38490
|
-
var HeaderCellContent =
|
38412
|
+
var HeaderCellContent = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38491
38413
|
displayName: "HeaderCellContent",
|
38492
38414
|
componentId: "sc-8zg5t0-0"
|
38493
|
-
})(["background-color:", ";&:hover{background-color:", ";}border-bottom:1px solid ", ";&[data-pinned]{z-index:", " !important;}&[data-pinned-last]{box-shadow:2px 0px 4px -2px rgba(24,39,75,0.12),4px 0px 4px -2px rgba(24,39,75,0.08);}"],
|
38494
|
-
var HeaderCellWrapper =
|
38415
|
+
})(["background-color:", ";&:hover{background-color:", ";}border-bottom:1px solid ", ";&[data-pinned]{z-index:", " !important;}&[data-pinned-last]{box-shadow:2px 0px 4px -2px rgba(24,39,75,0.12),4px 0px 4px -2px rgba(24,39,75,0.08);}"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_3, _constants__WEBPACK_IMPORTED_MODULE_7__.Z_INDEX.pinnedColumnHeader);
|
38416
|
+
var HeaderCellWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38495
38417
|
displayName: "HeaderCellWrapper",
|
38496
38418
|
componentId: "sc-8zg5t0-1"
|
38497
38419
|
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:8px 8px 8px 16px;"]);
|
38498
38420
|
HeaderCellWrapper.displayName = 'HeaderCellWrapper';
|
38499
|
-
var HeaderCellLeft =
|
38421
|
+
var HeaderCellLeft = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38500
38422
|
displayName: "HeaderCellLeft",
|
38501
38423
|
componentId: "sc-8zg5t0-2"
|
38502
38424
|
})(["display:flex;flex-direction:row;align-items:center;padding:0px;gap:4px;min-height:16px;overflow-x:clip;", ""], function (props) {
|
38503
38425
|
return props.$canSort ? 'cursor: pointer;' : null;
|
38504
38426
|
});
|
38505
38427
|
HeaderCellLeft.displayName = 'HeaderCellLeft';
|
38506
|
-
var HeaderCellResizer =
|
38428
|
+
var HeaderCellResizer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38507
38429
|
displayName: "HeaderCellResizer",
|
38508
38430
|
componentId: "sc-8zg5t0-3"
|
38509
|
-
})(["display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:", ";touch-action:none;", ""],
|
38431
|
+
})(["display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:", ";touch-action:none;", ""], _constants__WEBPACK_IMPORTED_MODULE_7__.Z_INDEX.cellResizer, function (props) {
|
38510
38432
|
if (props.$isResizing) {
|
38511
|
-
return (0,
|
38433
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["&:after{content:\" \";display:block;width:2px;height:24px;background:", ";position:absolute;bottom:0;left:4px;}"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_10);
|
38512
38434
|
}
|
38513
38435
|
});
|
38514
38436
|
HeaderCellResizer.displayName = 'HeaderCellResizer';
|
38437
|
+
var renderCellContent = function renderCellContent(column, type, props) {
|
38438
|
+
var content = column[type];
|
38439
|
+
if (lodash_isString__WEBPACK_IMPORTED_MODULE_0___default()(content)) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
38440
|
+
variant: "sm",
|
38441
|
+
color: "gray_11",
|
38442
|
+
no_wrap: true
|
38443
|
+
}, content);
|
38444
|
+
return column.render(type, props);
|
38445
|
+
};
|
38515
38446
|
|
38516
38447
|
/***/ }),
|
38517
38448
|
|
@@ -39010,7 +38941,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
39010
38941
|
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_1__);
|
39011
38942
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
39012
38943
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
39013
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*!
|
38944
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
39014
38945
|
// LICENSE_CODE ZON
|
39015
38946
|
|
39016
38947
|
|
@@ -39828,7 +39759,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
39828
39759
|
/* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
|
39829
39760
|
/* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
|
39830
39761
|
/* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
|
39831
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
|
39832
39762
|
// LICENSE_CODE ZON
|
39833
39763
|
|
39834
39764
|
|
@@ -39848,7 +39778,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
39848
39778
|
|
39849
39779
|
|
39850
39780
|
|
39851
|
-
|
39852
39781
|
var Table = function Table(props) {
|
39853
39782
|
var context = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)();
|
39854
39783
|
// not under context
|
@@ -39863,11 +39792,11 @@ var InnerTable = function InnerTable(props) {
|
|
39863
39792
|
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
39864
39793
|
getTableProps = _useTableContext.getTableProps,
|
39865
39794
|
context = _objectWithoutProperties(_useTableContext, _excluded);
|
39866
|
-
var className = (0,
|
39867
|
-
var rowDensity = (0,
|
39868
|
-
var onRowClick = (0,
|
39869
|
-
var stickyHeader = (0,
|
39870
|
-
var scrollTarget = (0,
|
39795
|
+
var className = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.className, context.className);
|
39796
|
+
var rowDensity = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.rowDensity, context.rowDensity);
|
39797
|
+
var onRowClick = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.onRowClick, context.onRowClick);
|
39798
|
+
var stickyHeader = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.stickyHeader, context.stickyHeader);
|
39799
|
+
var scrollTarget = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.scrollTarget, context.scrollTarget);
|
39871
39800
|
var offsetTop = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(stickyHeader) && stickyHeader.offsetTop || 0;
|
39872
39801
|
var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
39873
39802
|
var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
@@ -39993,50 +39922,6 @@ var TableRow = styled_components__WEBPACK_IMPORTED_MODULE_0___default().div.with
|
|
39993
39922
|
|
39994
39923
|
/***/ }),
|
39995
39924
|
|
39996
|
-
/***/ "./src/table/util.js":
|
39997
|
-
/*!***************************!*\
|
39998
|
-
!*** ./src/table/util.js ***!
|
39999
|
-
\***************************/
|
40000
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
40001
|
-
|
40002
|
-
"use strict";
|
40003
|
-
__webpack_require__.r(__webpack_exports__);
|
40004
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40005
|
-
/* harmony export */ firstDefined: () => (/* binding */ firstDefined),
|
40006
|
-
/* harmony export */ renderCellContent: () => (/* binding */ renderCellContent)
|
40007
|
-
/* harmony export */ });
|
40008
|
-
/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isString */ "./node_modules/lodash/isString.js");
|
40009
|
-
/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isString__WEBPACK_IMPORTED_MODULE_0__);
|
40010
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
40011
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
40012
|
-
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
40013
|
-
// LICENSE_CODE ZON
|
40014
|
-
|
40015
|
-
|
40016
|
-
/*jslint react:true*/
|
40017
|
-
|
40018
|
-
|
40019
|
-
|
40020
|
-
var firstDefined = function firstDefined() {
|
40021
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
40022
|
-
args[_key] = arguments[_key];
|
40023
|
-
}
|
40024
|
-
for (var i = 0; i < args.length; i += 1) {
|
40025
|
-
if (typeof args[i] != 'undefined') return args[i];
|
40026
|
-
}
|
40027
|
-
};
|
40028
|
-
var renderCellContent = function renderCellContent(column, type, props) {
|
40029
|
-
var content = column[type];
|
40030
|
-
if (lodash_isString__WEBPACK_IMPORTED_MODULE_0___default()(content)) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_2__.Label, {
|
40031
|
-
variant: "sm",
|
40032
|
-
color: "gray_11",
|
40033
|
-
no_wrap: true
|
40034
|
-
}, content);
|
40035
|
-
return column.render(type, props);
|
40036
|
-
};
|
40037
|
-
|
40038
|
-
/***/ }),
|
40039
|
-
|
40040
39925
|
/***/ "./src/tag/base.js":
|
40041
39926
|
/*!*************************!*\
|
40042
39927
|
!*** ./src/tag/base.js ***!
|
@@ -41335,6 +41220,32 @@ var applyPrefixToName = function applyPrefixToName(prefix, name) {
|
|
41335
41220
|
|
41336
41221
|
/***/ }),
|
41337
41222
|
|
41223
|
+
/***/ "./src/util/first_defined.js":
|
41224
|
+
/*!***********************************!*\
|
41225
|
+
!*** ./src/util/first_defined.js ***!
|
41226
|
+
\***********************************/
|
41227
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
41228
|
+
|
41229
|
+
"use strict";
|
41230
|
+
__webpack_require__.r(__webpack_exports__);
|
41231
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
41232
|
+
/* harmony export */ firstDefined: () => (/* binding */ firstDefined)
|
41233
|
+
/* harmony export */ });
|
41234
|
+
// LICENSE_CODE ZON
|
41235
|
+
|
41236
|
+
|
41237
|
+
/*jslint react:true*/
|
41238
|
+
var firstDefined = function firstDefined() {
|
41239
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
41240
|
+
args[_key] = arguments[_key];
|
41241
|
+
}
|
41242
|
+
for (var i = 0; i < args.length; i += 1) {
|
41243
|
+
if (typeof args[i] != 'undefined') return args[i];
|
41244
|
+
}
|
41245
|
+
};
|
41246
|
+
|
41247
|
+
/***/ }),
|
41248
|
+
|
41338
41249
|
/***/ "./src/util/flex_renderer.js":
|
41339
41250
|
/*!***********************************!*\
|
41340
41251
|
!*** ./src/util/flex_renderer.js ***!
|
@@ -41518,27 +41429,31 @@ var getStyleProps = function getStyleProps(props, name, classNamesState) {
|
|
41518
41429
|
"use strict";
|
41519
41430
|
__webpack_require__.r(__webpack_exports__);
|
41520
41431
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
41521
|
-
/* harmony export */ OFFSET: () => (/* reexport safe */
|
41522
|
-
/* harmony export */ VirtualizedListFactory: () => (/* reexport safe */
|
41432
|
+
/* harmony export */ OFFSET: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_4__.OFFSET),
|
41433
|
+
/* harmony export */ VirtualizedListFactory: () => (/* reexport safe */ _virtualized_list__WEBPACK_IMPORTED_MODULE_6__.VirtualizedListFactory),
|
41523
41434
|
/* harmony export */ classNames: () => (/* reexport safe */ _class_names__WEBPACK_IMPORTED_MODULE_0__.classNames),
|
41524
|
-
/* harmony export */
|
41525
|
-
/* harmony export */
|
41526
|
-
/* harmony export */
|
41527
|
-
/* harmony export */
|
41528
|
-
/* harmony export */
|
41529
|
-
/* harmony export */
|
41530
|
-
/* harmony export */
|
41531
|
-
/* harmony export */
|
41532
|
-
/* harmony export */
|
41533
|
-
/* harmony export */
|
41534
|
-
/* harmony export */
|
41435
|
+
/* harmony export */ firstDefined: () => (/* reexport safe */ _first_defined__WEBPACK_IMPORTED_MODULE_1__.firstDefined),
|
41436
|
+
/* harmony export */ flexRender: () => (/* reexport safe */ _flex_renderer__WEBPACK_IMPORTED_MODULE_2__.flexRender),
|
41437
|
+
/* harmony export */ getAriaProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_3__.getAriaProps),
|
41438
|
+
/* harmony export */ getCommonProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_3__.getCommonProps),
|
41439
|
+
/* harmony export */ getDataProps: () => (/* reexport safe */ _get_props__WEBPACK_IMPORTED_MODULE_3__.getDataProps),
|
41440
|
+
/* harmony export */ getGroupRowHeight: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_4__.getGroupRowHeight),
|
41441
|
+
/* harmony export */ getListHeight: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_4__.getListHeight),
|
41442
|
+
/* harmony export */ getNextRowIndex: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_4__.getNextRowIndex),
|
41443
|
+
/* harmony export */ getScrollIndex: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_4__.getScrollIndex),
|
41444
|
+
/* harmony export */ getStyleProps: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_4__.getStyleProps),
|
41445
|
+
/* harmony export */ isGroupHeader: () => (/* reexport safe */ _getters__WEBPACK_IMPORTED_MODULE_4__.isGroupHeader),
|
41446
|
+
/* harmony export */ splitProps: () => (/* reexport safe */ _split_props__WEBPACK_IMPORTED_MODULE_5__.splitProps),
|
41447
|
+
/* harmony export */ withUserStyles: () => (/* reexport safe */ _with_user_styles__WEBPACK_IMPORTED_MODULE_7__.withUserStyles)
|
41535
41448
|
/* harmony export */ });
|
41536
41449
|
/* harmony import */ var _class_names__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./class_names */ "./src/util/class_names.js");
|
41537
|
-
/* harmony import */ var
|
41538
|
-
/* harmony import */ var
|
41539
|
-
/* harmony import */ var
|
41540
|
-
/* harmony import */ var
|
41541
|
-
/* harmony import */ var
|
41450
|
+
/* harmony import */ var _first_defined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./first_defined */ "./src/util/first_defined.js");
|
41451
|
+
/* harmony import */ var _flex_renderer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./flex_renderer */ "./src/util/flex_renderer.js");
|
41452
|
+
/* harmony import */ var _get_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get_props */ "./src/util/get_props.js");
|
41453
|
+
/* harmony import */ var _getters__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getters */ "./src/util/getters.js");
|
41454
|
+
/* harmony import */ var _split_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./split_props */ "./src/util/split_props.js");
|
41455
|
+
/* harmony import */ var _virtualized_list__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./virtualized_list */ "./src/util/virtualized_list.js");
|
41456
|
+
/* harmony import */ var _with_user_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./with_user_styles */ "./src/util/with_user_styles.js");
|
41542
41457
|
// LICENSE_CODE ZON
|
41543
41458
|
|
41544
41459
|
|
@@ -41550,6 +41465,38 @@ __webpack_require__.r(__webpack_exports__);
|
|
41550
41465
|
|
41551
41466
|
|
41552
41467
|
|
41468
|
+
|
41469
|
+
|
41470
|
+
/***/ }),
|
41471
|
+
|
41472
|
+
/***/ "./src/util/split_props.js":
|
41473
|
+
/*!*********************************!*\
|
41474
|
+
!*** ./src/util/split_props.js ***!
|
41475
|
+
\*********************************/
|
41476
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
41477
|
+
|
41478
|
+
"use strict";
|
41479
|
+
__webpack_require__.r(__webpack_exports__);
|
41480
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
41481
|
+
/* harmony export */ splitProps: () => (/* binding */ splitProps)
|
41482
|
+
/* harmony export */ });
|
41483
|
+
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
|
41484
|
+
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
|
41485
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");
|
41486
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
41487
|
+
// LICENSE_CODE ZON
|
41488
|
+
|
41489
|
+
|
41490
|
+
/*jslint react:true*/
|
41491
|
+
|
41492
|
+
|
41493
|
+
var splitProps = function splitProps(props) {
|
41494
|
+
for (var _len = arguments.length, names = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
41495
|
+
names[_key - 1] = arguments[_key];
|
41496
|
+
}
|
41497
|
+
return [lodash_pick__WEBPACK_IMPORTED_MODULE_1___default().apply(void 0, [props].concat(names)), lodash_omit__WEBPACK_IMPORTED_MODULE_0___default().apply(void 0, [props].concat(names))];
|
41498
|
+
};
|
41499
|
+
|
41553
41500
|
/***/ }),
|
41554
41501
|
|
41555
41502
|
/***/ "./src/util/virtualized_list.js":
|