@luminati-io/uikit 3.4.4 → 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',
|
@@ -34535,6 +34456,7 @@ var InputLabel = function InputLabel(props) {
|
|
34535
34456
|
labelText: true
|
34536
34457
|
}, 'labelText--is-required', required)),
|
34537
34458
|
id: id,
|
34459
|
+
"data-role": "label",
|
34538
34460
|
variant: variant,
|
34539
34461
|
color: "gray-11-50"
|
34540
34462
|
}, t(label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(NecessityIndicator, {
|
@@ -34652,9 +34574,11 @@ var HelperText = function HelperText(props) {
|
|
34652
34574
|
var children = props.children,
|
34653
34575
|
invalid = props.invalid;
|
34654
34576
|
if (!children) return null;
|
34577
|
+
var color = invalid ? 'red_11' : 'gray_11_50';
|
34655
34578
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_8__.Label, {
|
34579
|
+
"data-role": "description",
|
34656
34580
|
variant: "xs",
|
34657
|
-
color:
|
34581
|
+
color: color
|
34658
34582
|
}, children);
|
34659
34583
|
};
|
34660
34584
|
HelperText.displayName = 'HelperText';
|
@@ -34929,7 +34853,6 @@ var ButtonAddInput = function ButtonAddInput(props) {
|
|
34929
34853
|
if (showInput) {
|
34930
34854
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_textbox__WEBPACK_IMPORTED_MODULE_3__.Textbox, {
|
34931
34855
|
autofocus: true,
|
34932
|
-
"data-name": "input",
|
34933
34856
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(className, {
|
34934
34857
|
input: true
|
34935
34858
|
}),
|
@@ -34942,7 +34865,8 @@ var ButtonAddInput = function ButtonAddInput(props) {
|
|
34942
34865
|
return onInputValueChange(val);
|
34943
34866
|
},
|
34944
34867
|
inputProps: {
|
34945
|
-
onKeyDown: onInputKeyDown
|
34868
|
+
onKeyDown: onInputKeyDown,
|
34869
|
+
'data-name': 'input'
|
34946
34870
|
},
|
34947
34871
|
error: error
|
34948
34872
|
});
|
@@ -37572,9 +37496,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
37572
37496
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
37573
37497
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
37574
37498
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
37575
|
-
/* harmony import */ var
|
37576
|
-
/* harmony import */ var
|
37577
|
-
/* 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");
|
37578
37502
|
/* harmony import */ var _expandable_rows__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./expandable_rows */ "./src/table/expandable_rows.js");
|
37579
37503
|
/* harmony import */ var _select_rows__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./select_rows */ "./src/table/select_rows.js");
|
37580
37504
|
// LICENSE_CODE ZON
|
@@ -37704,7 +37628,7 @@ var Provider = function Provider(props) {
|
|
37704
37628
|
getCellProps: getCellProps,
|
37705
37629
|
getFooterProps: getFooterProps,
|
37706
37630
|
ExpandHandleComp: ExpandHandleComp
|
37707
|
-
}, 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)));
|
37708
37632
|
var _table$state = table.state,
|
37709
37633
|
pageIndex = _table$state.pageIndex,
|
37710
37634
|
_pageSize = _table$state.pageSize;
|
@@ -37816,7 +37740,7 @@ var useCanHideColumns = function useCanHideColumns(hooks) {
|
|
37816
37740
|
var disableHiding = instance.disableHiding,
|
37817
37741
|
flatHeaders = instance.flatHeaders;
|
37818
37742
|
flatHeaders.forEach(function (header) {
|
37819
|
-
header.canHide = (0,
|
37743
|
+
header.canHide = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(header.disableHiding === true ? false : undefined, disableHiding === true ? false : undefined, true);
|
37820
37744
|
});
|
37821
37745
|
});
|
37822
37746
|
};
|
@@ -38075,7 +37999,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
38075
37999
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
38076
38000
|
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-table */ "react-table");
|
38077
38001
|
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_1__);
|
38078
|
-
/* 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");
|
38079
38003
|
// LICENSE_CODE ZON
|
38080
38004
|
|
38081
38005
|
|
@@ -38333,23 +38257,25 @@ __webpack_require__.r(__webpack_exports__);
|
|
38333
38257
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
38334
38258
|
/* harmony export */ TableHeader: () => (/* binding */ TableHeader)
|
38335
38259
|
/* harmony export */ });
|
38336
|
-
/* harmony import */ var
|
38337
|
-
/* harmony import */ var
|
38338
|
-
/* harmony import */ var
|
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
|
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");
|
38349
38274
|
// LICENSE_CODE ZON
|
38350
38275
|
|
38351
38276
|
|
38352
38277
|
/*jslint react:true*/
|
38278
|
+
|
38353
38279
|
var _excluded = ["key"];
|
38354
38280
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
38355
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."); }
|
@@ -38370,24 +38296,23 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38370
38296
|
|
38371
38297
|
|
38372
38298
|
|
38373
|
-
|
38374
38299
|
var TableHeader = function TableHeader(props) {
|
38375
38300
|
var className = props.className,
|
38376
38301
|
compact = props.compact,
|
38377
38302
|
left = props.left;
|
38378
|
-
var _useTableContext = (0,
|
38303
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_8__.useTableContext)(),
|
38379
38304
|
headerGroups = _useTableContext.headerGroups,
|
38380
38305
|
hideHeader = _useTableContext.hideHeader;
|
38381
38306
|
if (hideHeader) return null;
|
38382
38307
|
var style = {};
|
38383
|
-
if (typeof left != 'undefined') style.marginLeft = (0,
|
38308
|
+
if (typeof left != 'undefined') style.marginLeft = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(-left);
|
38384
38309
|
var dataAttributes = {};
|
38385
38310
|
if (!compact) dataAttributes['data-rowgroup-type'] = 'head';
|
38386
|
-
return /*#__PURE__*/
|
38311
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", _extends({
|
38387
38312
|
role: "rowgroup",
|
38388
38313
|
style: style
|
38389
38314
|
}, dataAttributes, {
|
38390
|
-
className: (0,
|
38315
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
38391
38316
|
tableHeader: true,
|
38392
38317
|
'tableHeader--is-compact': compact
|
38393
38318
|
})
|
@@ -38395,20 +38320,20 @@ var TableHeader = function TableHeader(props) {
|
|
38395
38320
|
var _group$getHeaderGroup = group.getHeaderGroupProps(),
|
38396
38321
|
key = _group$getHeaderGroup.key,
|
38397
38322
|
rest = _objectWithoutProperties(_group$getHeaderGroup, _excluded);
|
38398
|
-
return /*#__PURE__*/
|
38323
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", _extends({
|
38399
38324
|
key: key
|
38400
38325
|
}, rest, {
|
38401
|
-
className: (0,
|
38326
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
38402
38327
|
headerRow: true
|
38403
38328
|
})
|
38404
38329
|
}), group.headers.map(function (header, i, arr) {
|
38405
38330
|
var isLast = i == arr.length - 1;
|
38406
|
-
return /*#__PURE__*/
|
38331
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCell, {
|
38407
38332
|
compact: compact,
|
38408
38333
|
isLast: isLast,
|
38409
38334
|
key: header.getHeaderProps().key,
|
38410
38335
|
header: header,
|
38411
|
-
className: (0,
|
38336
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
38412
38337
|
headerCell: true,
|
38413
38338
|
'headerCell--is-compact': compact,
|
38414
38339
|
'headerCell--is-last': isLast
|
@@ -38428,14 +38353,14 @@ var HeaderCell = function HeaderCell(props) {
|
|
38428
38353
|
on_sort = header.on_sort,
|
38429
38354
|
isResizing = header.isResizing,
|
38430
38355
|
getResizerProps = header.getResizerProps;
|
38431
|
-
var _useTableContext2 = (0,
|
38356
|
+
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_8__.useTableContext)(),
|
38432
38357
|
getColumnProps = _useTableContext2.getColumnProps,
|
38433
38358
|
getHeaderProps = _useTableContext2.getHeaderProps,
|
38434
38359
|
columnsSort = _useTableContext2.columnsSort,
|
38435
38360
|
fullWidth = _useTableContext2.fullWidth;
|
38436
38361
|
var sort = columnsSort[id];
|
38437
38362
|
var canSort = header.can_sort && header.on_sort;
|
38438
|
-
var handleSort = (0,
|
38363
|
+
var handleSort = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
38439
38364
|
if (on_sort) {
|
38440
38365
|
on_sort(id, {
|
38441
38366
|
asc: 'desc',
|
@@ -38445,14 +38370,14 @@ var HeaderCell = function HeaderCell(props) {
|
|
38445
38370
|
}
|
38446
38371
|
}, [id, sort, on_sort]);
|
38447
38372
|
var canResize = header.canResize && !(fullWidth && isLast) && !compact;
|
38448
|
-
var _useState = (0,
|
38373
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
38449
38374
|
_useState2 = _slicedToArray(_useState, 2),
|
38450
38375
|
hovered = _useState2[0],
|
38451
38376
|
setHovered = _useState2[1];
|
38452
38377
|
var iconVisible = canSort && (['asc', 'desc'].includes(sort) || hovered);
|
38453
38378
|
var headerCellProps = header.getHeaderProps([getColumnProps(header), getHeaderProps(header)]);
|
38454
|
-
return /*#__PURE__*/
|
38455
|
-
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, {
|
38456
38381
|
header: true
|
38457
38382
|
}, className, headerCellProps.className),
|
38458
38383
|
onMouseOver: function onMouseOver() {
|
@@ -38461,54 +38386,63 @@ var HeaderCell = function HeaderCell(props) {
|
|
38461
38386
|
onMouseOut: function onMouseOut() {
|
38462
38387
|
return setHovered(false);
|
38463
38388
|
}
|
38464
|
-
}), /*#__PURE__*/
|
38389
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCellWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCellLeft, {
|
38465
38390
|
$canSort: canSort,
|
38466
38391
|
onClick: handleSort
|
38467
|
-
}, !compact &&
|
38392
|
+
}, !compact && renderCellContent(header, 'Header', {
|
38468
38393
|
compact: compact
|
38469
|
-
}), compact && /*#__PURE__*/
|
38394
|
+
}), compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
38470
38395
|
variant: "sm",
|
38471
38396
|
color: "gray_11",
|
38472
38397
|
no_wrap: true
|
38473
|
-
}, name || id), /*#__PURE__*/
|
38398
|
+
}, name || id), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_sort_icon__WEBPACK_IMPORTED_MODULE_10__.SortIcon, {
|
38474
38399
|
visible: !!iconVisible,
|
38475
38400
|
reverse: sort == 'desc'
|
38476
|
-
})), !compact && /*#__PURE__*/
|
38401
|
+
})), !compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_header_functions__WEBPACK_IMPORTED_MODULE_9__.HeaderFunctions, {
|
38477
38402
|
header: header,
|
38478
38403
|
visible: hovered,
|
38479
38404
|
onItemClick: function onItemClick() {
|
38480
38405
|
return setHovered(false);
|
38481
38406
|
}
|
38482
|
-
}), canResize && /*#__PURE__*/
|
38407
|
+
}), canResize && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCellResizer, _extends({}, getResizerProps(), {
|
38483
38408
|
$isResizing: isResizing
|
38484
38409
|
}))));
|
38485
38410
|
};
|
38486
38411
|
HeaderCell.displayName = 'HeaderCell';
|
38487
|
-
var HeaderCellContent =
|
38412
|
+
var HeaderCellContent = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38488
38413
|
displayName: "HeaderCellContent",
|
38489
38414
|
componentId: "sc-8zg5t0-0"
|
38490
|
-
})(["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);}"],
|
38491
|
-
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({
|
38492
38417
|
displayName: "HeaderCellWrapper",
|
38493
38418
|
componentId: "sc-8zg5t0-1"
|
38494
38419
|
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:8px 8px 8px 16px;"]);
|
38495
38420
|
HeaderCellWrapper.displayName = 'HeaderCellWrapper';
|
38496
|
-
var HeaderCellLeft =
|
38421
|
+
var HeaderCellLeft = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38497
38422
|
displayName: "HeaderCellLeft",
|
38498
38423
|
componentId: "sc-8zg5t0-2"
|
38499
38424
|
})(["display:flex;flex-direction:row;align-items:center;padding:0px;gap:4px;min-height:16px;overflow-x:clip;", ""], function (props) {
|
38500
38425
|
return props.$canSort ? 'cursor: pointer;' : null;
|
38501
38426
|
});
|
38502
38427
|
HeaderCellLeft.displayName = 'HeaderCellLeft';
|
38503
|
-
var HeaderCellResizer =
|
38428
|
+
var HeaderCellResizer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38504
38429
|
displayName: "HeaderCellResizer",
|
38505
38430
|
componentId: "sc-8zg5t0-3"
|
38506
|
-
})(["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) {
|
38507
38432
|
if (props.$isResizing) {
|
38508
|
-
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);
|
38509
38434
|
}
|
38510
38435
|
});
|
38511
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
|
+
};
|
38512
38446
|
|
38513
38447
|
/***/ }),
|
38514
38448
|
|
@@ -39007,7 +38941,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
39007
38941
|
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_1__);
|
39008
38942
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
39009
38943
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
39010
|
-
/* 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");
|
39011
38945
|
// LICENSE_CODE ZON
|
39012
38946
|
|
39013
38947
|
|
@@ -39825,7 +39759,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
39825
39759
|
/* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
|
39826
39760
|
/* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
|
39827
39761
|
/* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
|
39828
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
|
39829
39762
|
// LICENSE_CODE ZON
|
39830
39763
|
|
39831
39764
|
|
@@ -39845,7 +39778,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
39845
39778
|
|
39846
39779
|
|
39847
39780
|
|
39848
|
-
|
39849
39781
|
var Table = function Table(props) {
|
39850
39782
|
var context = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)();
|
39851
39783
|
// not under context
|
@@ -39860,11 +39792,11 @@ var InnerTable = function InnerTable(props) {
|
|
39860
39792
|
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
39861
39793
|
getTableProps = _useTableContext.getTableProps,
|
39862
39794
|
context = _objectWithoutProperties(_useTableContext, _excluded);
|
39863
|
-
var className = (0,
|
39864
|
-
var rowDensity = (0,
|
39865
|
-
var onRowClick = (0,
|
39866
|
-
var stickyHeader = (0,
|
39867
|
-
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);
|
39868
39800
|
var offsetTop = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(stickyHeader) && stickyHeader.offsetTop || 0;
|
39869
39801
|
var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
39870
39802
|
var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
@@ -39990,50 +39922,6 @@ var TableRow = styled_components__WEBPACK_IMPORTED_MODULE_0___default().div.with
|
|
39990
39922
|
|
39991
39923
|
/***/ }),
|
39992
39924
|
|
39993
|
-
/***/ "./src/table/util.js":
|
39994
|
-
/*!***************************!*\
|
39995
|
-
!*** ./src/table/util.js ***!
|
39996
|
-
\***************************/
|
39997
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
39998
|
-
|
39999
|
-
"use strict";
|
40000
|
-
__webpack_require__.r(__webpack_exports__);
|
40001
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40002
|
-
/* harmony export */ firstDefined: () => (/* binding */ firstDefined),
|
40003
|
-
/* harmony export */ renderCellContent: () => (/* binding */ renderCellContent)
|
40004
|
-
/* harmony export */ });
|
40005
|
-
/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isString */ "./node_modules/lodash/isString.js");
|
40006
|
-
/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isString__WEBPACK_IMPORTED_MODULE_0__);
|
40007
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
40008
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
40009
|
-
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
40010
|
-
// LICENSE_CODE ZON
|
40011
|
-
|
40012
|
-
|
40013
|
-
/*jslint react:true*/
|
40014
|
-
|
40015
|
-
|
40016
|
-
|
40017
|
-
var firstDefined = function firstDefined() {
|
40018
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
40019
|
-
args[_key] = arguments[_key];
|
40020
|
-
}
|
40021
|
-
for (var i = 0; i < args.length; i += 1) {
|
40022
|
-
if (typeof args[i] != 'undefined') return args[i];
|
40023
|
-
}
|
40024
|
-
};
|
40025
|
-
var renderCellContent = function renderCellContent(column, type, props) {
|
40026
|
-
var content = column[type];
|
40027
|
-
if (lodash_isString__WEBPACK_IMPORTED_MODULE_0___default()(content)) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_2__.Label, {
|
40028
|
-
variant: "sm",
|
40029
|
-
color: "gray_11",
|
40030
|
-
no_wrap: true
|
40031
|
-
}, content);
|
40032
|
-
return column.render(type, props);
|
40033
|
-
};
|
40034
|
-
|
40035
|
-
/***/ }),
|
40036
|
-
|
40037
39925
|
/***/ "./src/tag/base.js":
|
40038
39926
|
/*!*************************!*\
|
40039
39927
|
!*** ./src/tag/base.js ***!
|
@@ -41332,6 +41220,32 @@ var applyPrefixToName = function applyPrefixToName(prefix, name) {
|
|
41332
41220
|
|
41333
41221
|
/***/ }),
|
41334
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
|
+
|
41335
41249
|
/***/ "./src/util/flex_renderer.js":
|
41336
41250
|
/*!***********************************!*\
|
41337
41251
|
!*** ./src/util/flex_renderer.js ***!
|
@@ -41515,27 +41429,31 @@ var getStyleProps = function getStyleProps(props, name, classNamesState) {
|
|
41515
41429
|
"use strict";
|
41516
41430
|
__webpack_require__.r(__webpack_exports__);
|
41517
41431
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
41518
|
-
/* harmony export */ OFFSET: () => (/* reexport safe */
|
41519
|
-
/* 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),
|
41520
41434
|
/* harmony export */ classNames: () => (/* reexport safe */ _class_names__WEBPACK_IMPORTED_MODULE_0__.classNames),
|
41521
|
-
/* harmony export */
|
41522
|
-
/* harmony export */
|
41523
|
-
/* harmony export */
|
41524
|
-
/* harmony export */
|
41525
|
-
/* harmony export */
|
41526
|
-
/* harmony export */
|
41527
|
-
/* harmony export */
|
41528
|
-
/* harmony export */
|
41529
|
-
/* harmony export */
|
41530
|
-
/* harmony export */
|
41531
|
-
/* 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)
|
41532
41448
|
/* harmony export */ });
|
41533
41449
|
/* harmony import */ var _class_names__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./class_names */ "./src/util/class_names.js");
|
41534
|
-
/* harmony import */ var
|
41535
|
-
/* harmony import */ var
|
41536
|
-
/* harmony import */ var
|
41537
|
-
/* harmony import */ var
|
41538
|
-
/* 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");
|
41539
41457
|
// LICENSE_CODE ZON
|
41540
41458
|
|
41541
41459
|
|
@@ -41547,6 +41465,38 @@ __webpack_require__.r(__webpack_exports__);
|
|
41547
41465
|
|
41548
41466
|
|
41549
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
|
+
|
41550
41500
|
/***/ }),
|
41551
41501
|
|
41552
41502
|
/***/ "./src/util/virtualized_list.js":
|