@luminati-io/uikit 1.9.9 → 1.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/uikit.umd.js +336 -110
- package/dist/uikit.umd.js.map +1 -1
- package/dist/uikit.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/uikit.umd.js
CHANGED
|
@@ -23915,21 +23915,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23915
23915
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
23916
23916
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
23917
23917
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
23918
|
-
/* harmony import */ var
|
|
23919
|
-
/* harmony import */ var
|
|
23920
|
-
/* harmony import */ var
|
|
23921
|
-
/* harmony import */ var
|
|
23922
|
-
/* harmony import */ var
|
|
23923
|
-
/* harmony import */ var
|
|
23924
|
-
/* harmony import */ var
|
|
23925
|
-
/* harmony import */ var
|
|
23926
|
-
/* harmony import */ var
|
|
23918
|
+
/* harmony import */ var react_select__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-select */ "./node_modules/react-select/dist/react-select.esm.js");
|
|
23919
|
+
/* harmony import */ var react_select_creatable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-select/creatable */ "./node_modules/react-select/creatable/dist/react-select-creatable.esm.js");
|
|
23920
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
|
23921
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
|
23922
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
|
|
23923
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
|
23924
|
+
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
|
23925
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
|
23926
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
|
23927
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./shared */ "./src/input/shared.js");
|
|
23927
23928
|
// LICENSE_CODE ZON
|
|
23928
23929
|
|
|
23929
23930
|
|
|
23930
23931
|
/*jslint react:true*/
|
|
23931
23932
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
23932
|
-
var _excluded = ["label", "labelIcon", "required", "size", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "classNamePrefix", "onChangeCapture", "menuPortalTarget", "filterOption", "formatOptionLabel", "menuPlacement", "components"];
|
|
23933
|
+
var _excluded = ["label", "labelIcon", "required", "size", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "onCreateOption", "clearable", "disabled", "invalid", "helperText", "classNamePrefix", "onChangeCapture", "menuPortalTarget", "filterOption", "formatOptionLabel", "menuPlacement", "components"];
|
|
23933
23934
|
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); }
|
|
23934
23935
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23935
23936
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -23950,7 +23951,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
23950
23951
|
|
|
23951
23952
|
|
|
23952
23953
|
|
|
23953
|
-
|
|
23954
|
+
|
|
23955
|
+
var Item = _menu__WEBPACK_IMPORTED_MODULE_6__["default"].Item;
|
|
23954
23956
|
var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
|
|
23955
23957
|
var label = props.label,
|
|
23956
23958
|
labelIcon = props.labelIcon,
|
|
@@ -23965,6 +23967,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
|
23965
23967
|
onBlur = props.onBlur,
|
|
23966
23968
|
multiselect = props.multiselect,
|
|
23967
23969
|
creatable = props.creatable,
|
|
23970
|
+
onCreateOption = props.onCreateOption,
|
|
23968
23971
|
clearable = props.clearable,
|
|
23969
23972
|
disabled = props.disabled,
|
|
23970
23973
|
invalid = props.invalid,
|
|
@@ -23977,17 +23980,17 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
|
23977
23980
|
menuPlacement = props.menuPlacement,
|
|
23978
23981
|
components = props.components,
|
|
23979
23982
|
rest = _objectWithoutProperties(props, _excluded);
|
|
23980
|
-
var labelId = (0,
|
|
23981
|
-
var t = (0,
|
|
23983
|
+
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useLabelId)(props.id);
|
|
23984
|
+
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useTranslate)();
|
|
23982
23985
|
var styles = useCustomStyles(size);
|
|
23983
|
-
var SelectComp = creatable ?
|
|
23984
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
23986
|
+
var SelectComp = creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_3__["default"] : react_select__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
23987
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, _extends({
|
|
23985
23988
|
ref: ref,
|
|
23986
23989
|
"data-testid": "dropdown"
|
|
23987
23990
|
}, rest, {
|
|
23988
23991
|
flex_direction: "column",
|
|
23989
|
-
gap:
|
|
23990
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
23992
|
+
gap: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"]
|
|
23993
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_11__.InputLabel, {
|
|
23991
23994
|
id: labelId,
|
|
23992
23995
|
label: label,
|
|
23993
23996
|
labelIcon: labelIcon,
|
|
@@ -24006,6 +24009,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
|
24006
24009
|
onBlur: onBlur,
|
|
24007
24010
|
isMulti: multiselect,
|
|
24008
24011
|
isClearable: clearable,
|
|
24012
|
+
onCreateOption: onCreateOption,
|
|
24009
24013
|
isDisabled: disabled,
|
|
24010
24014
|
required: required,
|
|
24011
24015
|
styles: styles,
|
|
@@ -24027,7 +24031,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
|
24027
24031
|
},
|
|
24028
24032
|
closeMenuOnSelect: !multiselect,
|
|
24029
24033
|
menuPlacement: menuPlacement
|
|
24030
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
24034
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_11__.HelperText, {
|
|
24031
24035
|
invalid: invalid
|
|
24032
24036
|
}, helperText));
|
|
24033
24037
|
});
|
|
@@ -24052,6 +24056,7 @@ Dropdown.propTypes = {
|
|
|
24052
24056
|
multiselect: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
24053
24057
|
clearable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
24054
24058
|
creatable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
24059
|
+
onCreateOption: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
|
24055
24060
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
24056
24061
|
menuPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['bottom', 'auto', 'top'])
|
|
24057
24062
|
};
|
|
@@ -24072,7 +24077,7 @@ var DropdownIndicator = function DropdownIndicator(props) {
|
|
|
24072
24077
|
height: "18px",
|
|
24073
24078
|
viewBox: ic.viewBox,
|
|
24074
24079
|
style: {
|
|
24075
|
-
color:
|
|
24080
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_9,
|
|
24076
24081
|
cursor: isDisabled ? 'default' : 'pointer'
|
|
24077
24082
|
}
|
|
24078
24083
|
}, innerProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("use", {
|
|
@@ -24090,7 +24095,7 @@ var ClearIndicator = function ClearIndicator(props) {
|
|
|
24090
24095
|
height: "18px",
|
|
24091
24096
|
viewBox: ic.viewBox,
|
|
24092
24097
|
style: {
|
|
24093
|
-
color:
|
|
24098
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_9,
|
|
24094
24099
|
cursor: 'pointer'
|
|
24095
24100
|
}
|
|
24096
24101
|
}, innerProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("use", {
|
|
@@ -24132,7 +24137,7 @@ var Group = function Group(props) {
|
|
|
24132
24137
|
innerProps = props.innerProps,
|
|
24133
24138
|
children = props.children,
|
|
24134
24139
|
isFirstItem = props.isFirstItem;
|
|
24135
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
24140
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.MenuItemGroup, _extends({
|
|
24136
24141
|
ref: innerRef,
|
|
24137
24142
|
isFirstItem: isFirstItem,
|
|
24138
24143
|
className: cx({
|
|
@@ -24150,7 +24155,7 @@ var MenuList = function MenuList(props) {
|
|
|
24150
24155
|
innerRef = props.innerRef,
|
|
24151
24156
|
innerProps = props.innerProps,
|
|
24152
24157
|
children = props.children;
|
|
24153
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
24158
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.MenuContainer, _extends({
|
|
24154
24159
|
ref: innerRef,
|
|
24155
24160
|
noShadow: true,
|
|
24156
24161
|
role: "menu",
|
|
@@ -24174,25 +24179,25 @@ var useCustomStyles = function useCustomStyles(size) {
|
|
|
24174
24179
|
md: 40,
|
|
24175
24180
|
lg: 48
|
|
24176
24181
|
};
|
|
24177
|
-
var borderColor =
|
|
24178
|
-
var color =
|
|
24179
|
-
var backgroundColor =
|
|
24182
|
+
var borderColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_7;
|
|
24183
|
+
var color = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11_50;
|
|
24184
|
+
var backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.white;
|
|
24180
24185
|
var cursor = 'text';
|
|
24181
24186
|
if (state.isDisabled) {
|
|
24182
|
-
color =
|
|
24183
|
-
borderColor =
|
|
24184
|
-
backgroundColor =
|
|
24187
|
+
color = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_9;
|
|
24188
|
+
borderColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_6;
|
|
24189
|
+
backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_2;
|
|
24185
24190
|
cursor = 'default';
|
|
24186
|
-
} else if (state.selectProps['aria-invalid']) borderColor =
|
|
24191
|
+
} else if (state.selectProps['aria-invalid']) borderColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.red_11;else if (state.isFocused) borderColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.blue_11;
|
|
24187
24192
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24188
|
-
minHeight: (0,
|
|
24189
|
-
padding: "".concat(
|
|
24193
|
+
minHeight: (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(height[size] || height.sm),
|
|
24194
|
+
padding: "".concat(_shared__WEBPACK_IMPORTED_MODULE_11__.inputVerticalPadding, "px ").concat(_shared__WEBPACK_IMPORTED_MODULE_11__.inputHorizontalPadding, "px"),
|
|
24190
24195
|
/* Label/sm */
|
|
24191
|
-
fontFamily:
|
|
24196
|
+
fontFamily: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_family.sans,
|
|
24192
24197
|
fontStyle: 'normal',
|
|
24193
|
-
fontWeight:
|
|
24194
|
-
fontSize:
|
|
24195
|
-
lineHeight:
|
|
24198
|
+
fontWeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_weight.regular,
|
|
24199
|
+
fontSize: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_size.sm,
|
|
24200
|
+
lineHeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].line_height.none,
|
|
24196
24201
|
color: color,
|
|
24197
24202
|
backgroundColor: backgroundColor,
|
|
24198
24203
|
borderColor: borderColor,
|
|
@@ -24207,12 +24212,12 @@ var useCustomStyles = function useCustomStyles(size) {
|
|
|
24207
24212
|
},
|
|
24208
24213
|
placeholder: function placeholder(baseStyles) {
|
|
24209
24214
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24210
|
-
color:
|
|
24215
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11
|
|
24211
24216
|
});
|
|
24212
24217
|
},
|
|
24213
24218
|
indicatorsContainer: function indicatorsContainer(baseStyles) {
|
|
24214
24219
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24215
|
-
gap:
|
|
24220
|
+
gap: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["03"],
|
|
24216
24221
|
minHeight: '24px'
|
|
24217
24222
|
});
|
|
24218
24223
|
},
|
|
@@ -24223,43 +24228,43 @@ var useCustomStyles = function useCustomStyles(size) {
|
|
|
24223
24228
|
minWidth: '168px',
|
|
24224
24229
|
maxWidth: '540px',
|
|
24225
24230
|
width: 'max-content',
|
|
24226
|
-
backgroundColor:
|
|
24227
|
-
borderRadius:
|
|
24228
|
-
boxShadow:
|
|
24231
|
+
backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.white,
|
|
24232
|
+
borderRadius: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"],
|
|
24233
|
+
boxShadow: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].box_shadow.md
|
|
24229
24234
|
});
|
|
24230
24235
|
},
|
|
24231
24236
|
menuPortal: function menuPortal(baseStyles) {
|
|
24232
24237
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24233
|
-
zIndex:
|
|
24238
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_10__.Z_INDEX.dropdown
|
|
24234
24239
|
});
|
|
24235
24240
|
},
|
|
24236
24241
|
multiValue: function multiValue(baseStyles) {
|
|
24237
24242
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24238
|
-
backgroundColor:
|
|
24239
|
-
borderRadius:
|
|
24243
|
+
backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_3,
|
|
24244
|
+
borderRadius: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"]
|
|
24240
24245
|
});
|
|
24241
24246
|
},
|
|
24242
24247
|
multiValueLabel: function multiValueLabel(baseStyles) {
|
|
24243
24248
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24244
24249
|
/* Label/sm */
|
|
24245
|
-
fontFamily:
|
|
24250
|
+
fontFamily: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_family.sans,
|
|
24246
24251
|
fontStyle: 'normal',
|
|
24247
|
-
fontWeight:
|
|
24248
|
-
fontSize:
|
|
24249
|
-
lineHeight:
|
|
24250
|
-
color:
|
|
24251
|
-
paddingLeft:
|
|
24252
|
-
paddingRight:
|
|
24252
|
+
fontWeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_weight.regular,
|
|
24253
|
+
fontSize: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_size.sm,
|
|
24254
|
+
lineHeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].line_height.none,
|
|
24255
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11_25,
|
|
24256
|
+
paddingLeft: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"],
|
|
24257
|
+
paddingRight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["00"]
|
|
24253
24258
|
});
|
|
24254
24259
|
},
|
|
24255
24260
|
multiValueRemove: function multiValueRemove(baseStyles) {
|
|
24256
24261
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24257
|
-
borderRadius:
|
|
24258
|
-
color:
|
|
24262
|
+
borderRadius: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"],
|
|
24263
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11,
|
|
24259
24264
|
cursor: 'pointer',
|
|
24260
24265
|
':hover': {
|
|
24261
|
-
backgroundColor:
|
|
24262
|
-
color:
|
|
24266
|
+
backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_3,
|
|
24267
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11_50
|
|
24263
24268
|
}
|
|
24264
24269
|
});
|
|
24265
24270
|
}
|
|
@@ -26552,7 +26557,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26552
26557
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
|
26553
26558
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
|
26554
26559
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
|
26555
|
-
/* harmony import */ var
|
|
26560
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
|
26561
|
+
/* harmony import */ var _table_row__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./table_row */ "./src/table/table_row.js");
|
|
26556
26562
|
// LICENSE_CODE ZON
|
|
26557
26563
|
|
|
26558
26564
|
|
|
@@ -26564,22 +26570,32 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
26564
26570
|
|
|
26565
26571
|
|
|
26566
26572
|
|
|
26573
|
+
|
|
26567
26574
|
var assign = Object.assign;
|
|
26568
26575
|
var Cell = function Cell(props) {
|
|
26569
|
-
var
|
|
26576
|
+
var classNamePrefix = props.classNamePrefix,
|
|
26570
26577
|
rowDensity = props.rowDensity,
|
|
26571
26578
|
isLastRow = props.isLastRow,
|
|
26572
|
-
|
|
26573
|
-
|
|
26574
|
-
|
|
26575
|
-
|
|
26576
|
-
|
|
26579
|
+
cell = props.cell;
|
|
26580
|
+
var row = cell.row,
|
|
26581
|
+
column = cell.column,
|
|
26582
|
+
isEditing = cell.isEditing;
|
|
26583
|
+
var rowId = row.id;
|
|
26577
26584
|
var columnId = column.id,
|
|
26578
26585
|
_column$type = column.type,
|
|
26579
26586
|
type = _column$type === void 0 ? 'string' : _column$type,
|
|
26580
|
-
canEdit = column.canEdit
|
|
26581
|
-
|
|
26582
|
-
|
|
26587
|
+
canEdit = column.canEdit;
|
|
26588
|
+
var columnClassName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(column.classNamePrefix, {
|
|
26589
|
+
cell: true
|
|
26590
|
+
});
|
|
26591
|
+
var cellClassName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(classNamePrefix, {
|
|
26592
|
+
tableCell: true
|
|
26593
|
+
});
|
|
26594
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_5__.useTableContext)(),
|
|
26595
|
+
columnStartEditing = _useTableContext.columnStartEditing,
|
|
26596
|
+
columnDoneEditing = _useTableContext.columnDoneEditing,
|
|
26597
|
+
getColumnProps = _useTableContext.getColumnProps,
|
|
26598
|
+
getCellProps = _useTableContext.getCellProps;
|
|
26583
26599
|
var startEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
|
26584
26600
|
columnStartEditing(columnId, rowId);
|
|
26585
26601
|
}, [columnStartEditing, columnId, rowId]);
|
|
@@ -26593,17 +26609,15 @@ var Cell = function Cell(props) {
|
|
|
26593
26609
|
isEditing: isEditing
|
|
26594
26610
|
}, {
|
|
26595
26611
|
border: isLastRow ? null : 'bottom'
|
|
26596
|
-
},
|
|
26612
|
+
}, cell.getCellProps([getColumnProps(column), getCellProps(cell)]), canEdit ? {
|
|
26597
26613
|
onClick: function onClick(e) {
|
|
26598
26614
|
e.stopPropagation();
|
|
26599
26615
|
startEditing();
|
|
26600
26616
|
}
|
|
26601
26617
|
} : undefined);
|
|
26602
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledCell, _extends({
|
|
26603
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(
|
|
26604
|
-
|
|
26605
|
-
}, className)
|
|
26606
|
-
}, cellProps), props.render('Cell', {
|
|
26618
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledCell, _extends({}, cellProps, {
|
|
26619
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, columnClassName, cellClassName, cellProps.className)
|
|
26620
|
+
}), cell.render('Cell', {
|
|
26607
26621
|
row: row,
|
|
26608
26622
|
isEditing: isEditing,
|
|
26609
26623
|
startEditing: startEditing,
|
|
@@ -26616,7 +26630,7 @@ var StyledCell = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.wi
|
|
|
26616
26630
|
componentId: "sc-b034il-0"
|
|
26617
26631
|
})(["padding:5px 15px;overflow-x:clip;", " background-color:", ";border:1px solid ", ";", ":hover &{background-color:", ";border-left-color:", ";border-right-color:", ";}", " ", " &[data-pinned-last]{", "}", ""], function (props) {
|
|
26618
26632
|
return props.type == 'number' ? 'text-align: right;' : null;
|
|
26619
|
-
}, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white,
|
|
26633
|
+
}, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _table_row__WEBPACK_IMPORTED_MODULE_6__["default"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, function (props) {
|
|
26620
26634
|
if (props.border == 'top') return "border-top-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
|
|
26621
26635
|
if (props.border == 'bottom') return "border-bottom-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
|
|
26622
26636
|
}, function (props) {
|
|
@@ -26673,7 +26687,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26673
26687
|
|
|
26674
26688
|
/*jslint react:true*/
|
|
26675
26689
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
26676
|
-
var _excluded = ["data", "columnsSort", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "isLoading", "onPageChange", "manualPagination", "totalCount"];
|
|
26690
|
+
var _excluded = ["data", "columnsSort", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "isLoading", "onPageChange", "manualPagination", "totalCount", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps"];
|
|
26677
26691
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
26678
26692
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
26679
26693
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -26701,6 +26715,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
26701
26715
|
|
|
26702
26716
|
|
|
26703
26717
|
var assign = Object.assign;
|
|
26718
|
+
var defaultPropGetter = function defaultPropGetter() {
|
|
26719
|
+
return {};
|
|
26720
|
+
};
|
|
26704
26721
|
var TableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createContext({});
|
|
26705
26722
|
TableContext.displayName = 'TableContext';
|
|
26706
26723
|
var Cell = function Cell(props) {
|
|
@@ -26737,6 +26754,16 @@ var Provider = function Provider(props) {
|
|
|
26737
26754
|
_props$manualPaginati = props.manualPagination,
|
|
26738
26755
|
manualPagination = _props$manualPaginati === void 0 ? false : _props$manualPaginati,
|
|
26739
26756
|
totalCount = props.totalCount,
|
|
26757
|
+
_props$getHeaderProps = props.getHeaderProps,
|
|
26758
|
+
getHeaderProps = _props$getHeaderProps === void 0 ? defaultPropGetter : _props$getHeaderProps,
|
|
26759
|
+
_props$getColumnProps = props.getColumnProps,
|
|
26760
|
+
getColumnProps = _props$getColumnProps === void 0 ? defaultPropGetter : _props$getColumnProps,
|
|
26761
|
+
_props$getRowProps = props.getRowProps,
|
|
26762
|
+
getRowProps = _props$getRowProps === void 0 ? defaultPropGetter : _props$getRowProps,
|
|
26763
|
+
_props$getCellProps = props.getCellProps,
|
|
26764
|
+
getCellProps = _props$getCellProps === void 0 ? defaultPropGetter : _props$getCellProps,
|
|
26765
|
+
_props$getFooterProps = props.getFooterProps,
|
|
26766
|
+
getFooterProps = _props$getFooterProps === void 0 ? defaultPropGetter : _props$getFooterProps,
|
|
26740
26767
|
rest = _objectWithoutProperties(props, _excluded);
|
|
26741
26768
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0),
|
|
26742
26769
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -26762,7 +26789,12 @@ var Provider = function Provider(props) {
|
|
|
26762
26789
|
manualPagination: manualPagination,
|
|
26763
26790
|
pageCount: pageCount,
|
|
26764
26791
|
totalCount: totalCount,
|
|
26765
|
-
isLoading: isLoading
|
|
26792
|
+
isLoading: isLoading,
|
|
26793
|
+
getHeaderProps: getHeaderProps,
|
|
26794
|
+
getColumnProps: getColumnProps,
|
|
26795
|
+
getRowProps: getRowProps,
|
|
26796
|
+
getCellProps: getCellProps,
|
|
26797
|
+
getFooterProps: getFooterProps
|
|
26766
26798
|
}, rest), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.usePagination, props.fullWidth ? react_table__WEBPACK_IMPORTED_MODULE_2__.useFlexLayout : react_table__WEBPACK_IMPORTED_MODULE_2__.useBlockLayout, react_table__WEBPACK_IMPORTED_MODULE_2__.useResizeColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useColumnOrder, _pinned_columns__WEBPACK_IMPORTED_MODULE_7__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_6__.useEditableColumns].concat(_toConsumableArray(hooks)));
|
|
26767
26799
|
var _table$state = table.state,
|
|
26768
26800
|
pageIndex = _table$state.pageIndex,
|
|
@@ -26792,9 +26824,9 @@ Provider.propTypes = {
|
|
|
26792
26824
|
id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired),
|
|
26793
26825
|
accessor: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
26794
26826
|
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['string', 'number']),
|
|
26795
|
-
Header: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().
|
|
26827
|
+
Header: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]).isRequired,
|
|
26796
26828
|
Cell: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26797
|
-
Footer: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().
|
|
26829
|
+
Footer: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
26798
26830
|
can_sort: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)]),
|
|
26799
26831
|
on_sort: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26800
26832
|
disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
@@ -26822,9 +26854,12 @@ Provider.propTypes = {
|
|
|
26822
26854
|
disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
26823
26855
|
disableEditing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
26824
26856
|
onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26825
|
-
|
|
26826
|
-
|
|
26827
|
-
|
|
26857
|
+
hideFooter: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
26858
|
+
getHeaderProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26859
|
+
getColumnProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26860
|
+
getRowProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26861
|
+
getCellProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26862
|
+
getFooterProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
26828
26863
|
};
|
|
26829
26864
|
var calcPageCount = function calcPageCount(totalCount, pageSize) {
|
|
26830
26865
|
return Math.ceil(totalCount / pageSize);
|
|
@@ -27261,15 +27296,19 @@ var FooterCell = function FooterCell(props) {
|
|
|
27261
27296
|
var _column$type = column.type,
|
|
27262
27297
|
type = _column$type === void 0 ? 'string' : _column$type,
|
|
27263
27298
|
classNamePrefix = column.classNamePrefix;
|
|
27264
|
-
|
|
27299
|
+
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_3__.useTableContext)(),
|
|
27300
|
+
getColumnProps = _useTableContext2.getColumnProps,
|
|
27301
|
+
getFooterProps = _useTableContext2.getFooterProps;
|
|
27302
|
+
var footerProps = column.getFooterProps([getColumnProps(column), getFooterProps(column)]);
|
|
27303
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__.StyledCell, _extends({}, footerProps, {
|
|
27265
27304
|
type: type,
|
|
27266
27305
|
role: "cell",
|
|
27267
27306
|
rowDensity: rowDensity,
|
|
27268
27307
|
border: "top",
|
|
27269
27308
|
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(classNamePrefix, {
|
|
27270
27309
|
footer: true
|
|
27271
|
-
}, className)
|
|
27272
|
-
}
|
|
27310
|
+
}, className, footerProps.className)
|
|
27311
|
+
}), column.render('Footer'));
|
|
27273
27312
|
};
|
|
27274
27313
|
FooterCell.displayName = 'FooterCell';
|
|
27275
27314
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TableFooter);
|
|
@@ -27377,10 +27416,11 @@ var HeaderCell = function HeaderCell(props) {
|
|
|
27377
27416
|
name = header.name,
|
|
27378
27417
|
on_sort = header.on_sort,
|
|
27379
27418
|
isResizing = header.isResizing,
|
|
27380
|
-
getHeaderProps = header.getHeaderProps,
|
|
27381
27419
|
getResizerProps = header.getResizerProps,
|
|
27382
27420
|
classNamePrefix = header.classNamePrefix;
|
|
27383
27421
|
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
|
27422
|
+
getColumnProps = _useTableContext2.getColumnProps,
|
|
27423
|
+
getHeaderProps = _useTableContext2.getHeaderProps,
|
|
27384
27424
|
columnsSort = _useTableContext2.columnsSort,
|
|
27385
27425
|
fullWidth = _useTableContext2.fullWidth;
|
|
27386
27426
|
var sort = columnsSort[id];
|
|
@@ -27400,11 +27440,11 @@ var HeaderCell = function HeaderCell(props) {
|
|
|
27400
27440
|
hovered = _useState2[0],
|
|
27401
27441
|
setHovered = _useState2[1];
|
|
27402
27442
|
var iconVisible = canSort && (['asc', 'desc'].includes(sort) || hovered);
|
|
27403
|
-
|
|
27443
|
+
var headerCellProps = header.getHeaderProps([getColumnProps(header), getHeaderProps(header)]);
|
|
27444
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(HeaderCellContent, _extends({}, headerCellProps, {
|
|
27404
27445
|
className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
|
|
27405
27446
|
header: true
|
|
27406
|
-
}, className)
|
|
27407
|
-
}, getHeaderProps(), {
|
|
27447
|
+
}, className, headerCellProps.className),
|
|
27408
27448
|
onMouseOver: function onMouseOver() {
|
|
27409
27449
|
return setHovered(true);
|
|
27410
27450
|
},
|
|
@@ -28213,8 +28253,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28213
28253
|
|
|
28214
28254
|
|
|
28215
28255
|
/*jslint react:true*/
|
|
28216
|
-
var _excluded = ["
|
|
28217
|
-
_excluded2 = ["key"];
|
|
28256
|
+
var _excluded = ["key"];
|
|
28218
28257
|
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); }
|
|
28219
28258
|
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; }
|
|
28220
28259
|
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; }
|
|
@@ -28226,31 +28265,33 @@ var renderRow = function renderRow(opt) {
|
|
|
28226
28265
|
var classNamePrefix = opt.classNamePrefix,
|
|
28227
28266
|
row = opt.row,
|
|
28228
28267
|
onRowClick = opt.onRowClick,
|
|
28229
|
-
|
|
28230
|
-
|
|
28268
|
+
getRowProps = opt.getRowProps,
|
|
28269
|
+
rowDensity = opt.rowDensity,
|
|
28270
|
+
isLastRow = opt.isLastRow;
|
|
28271
|
+
var _row$getRowProps = row.getRowProps(getRowProps === null || getRowProps === void 0 ? void 0 : getRowProps(row)),
|
|
28231
28272
|
key = _row$getRowProps.key,
|
|
28232
|
-
rowProps = _objectWithoutProperties(_row$getRowProps,
|
|
28273
|
+
rowProps = _objectWithoutProperties(_row$getRowProps, _excluded);
|
|
28233
28274
|
var onClick = onRowClick ? function (evt) {
|
|
28234
28275
|
return onRowClick(row.original, evt);
|
|
28235
28276
|
} : undefined;
|
|
28236
28277
|
var cursor = onRowClick ? 'pointer' : undefined;
|
|
28237
28278
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_table_row__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
|
|
28238
|
-
key: key
|
|
28239
|
-
onClick: onClick,
|
|
28240
|
-
cursor: cursor
|
|
28279
|
+
key: key
|
|
28241
28280
|
}, rowProps, {
|
|
28281
|
+
onClick: onClick,
|
|
28282
|
+
cursor: cursor,
|
|
28242
28283
|
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(classNamePrefix, {
|
|
28243
28284
|
tableRow: true,
|
|
28244
28285
|
'tableRow--is-pinned': row.isPinned
|
|
28245
|
-
})
|
|
28286
|
+
}, rowProps.className)
|
|
28246
28287
|
}), row.cells.map(function (cell) {
|
|
28247
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
28248
|
-
key: cell.getCellProps().key
|
|
28249
|
-
|
|
28250
|
-
|
|
28251
|
-
|
|
28252
|
-
|
|
28253
|
-
})
|
|
28288
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
28289
|
+
key: cell.getCellProps().key,
|
|
28290
|
+
cell: cell,
|
|
28291
|
+
classNamePrefix: classNamePrefix,
|
|
28292
|
+
rowDensity: rowDensity,
|
|
28293
|
+
isLastRow: isLastRow
|
|
28294
|
+
});
|
|
28254
28295
|
}));
|
|
28255
28296
|
};
|
|
28256
28297
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (renderRow);
|
|
@@ -28635,11 +28676,10 @@ var Table = function Table(props) {
|
|
|
28635
28676
|
page = _useTableContext.page,
|
|
28636
28677
|
_useTableContext$pinn = _useTableContext.pinnedRows,
|
|
28637
28678
|
pinnedRows = _useTableContext$pinn === void 0 ? [] : _useTableContext$pinn,
|
|
28638
|
-
columnStartEditing = _useTableContext.columnStartEditing,
|
|
28639
|
-
columnDoneEditing = _useTableContext.columnDoneEditing,
|
|
28640
28679
|
NoDataComp = _useTableContext.NoDataComp,
|
|
28641
28680
|
LoadingComp = _useTableContext.LoadingComp,
|
|
28642
|
-
isLoading = _useTableContext.isLoading
|
|
28681
|
+
isLoading = _useTableContext.isLoading,
|
|
28682
|
+
getRowProps = _useTableContext.getRowProps;
|
|
28643
28683
|
var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
|
28644
28684
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(0),
|
|
28645
28685
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -28676,12 +28716,11 @@ var Table = function Table(props) {
|
|
|
28676
28716
|
if (row.isPinned) return null;
|
|
28677
28717
|
return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
|
|
28678
28718
|
row: row,
|
|
28679
|
-
columnStartEditing: columnStartEditing,
|
|
28680
|
-
columnDoneEditing: columnDoneEditing,
|
|
28681
28719
|
rowDensity: rowDensity,
|
|
28682
28720
|
onRowClick: onRowClick,
|
|
28683
28721
|
isLastRow: i == arr.length - 1,
|
|
28684
|
-
classNamePrefix: classNamePrefix
|
|
28722
|
+
classNamePrefix: classNamePrefix,
|
|
28723
|
+
getRowProps: getRowProps
|
|
28685
28724
|
});
|
|
28686
28725
|
});
|
|
28687
28726
|
}();
|
|
@@ -28708,11 +28747,10 @@ var Table = function Table(props) {
|
|
|
28708
28747
|
prepareRow(row);
|
|
28709
28748
|
return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
|
|
28710
28749
|
row: row,
|
|
28711
|
-
columnStartEditing: columnStartEditing,
|
|
28712
|
-
columnDoneEditing: columnDoneEditing,
|
|
28713
28750
|
rowDensity: rowDensity,
|
|
28714
28751
|
onRowClick: onRowClick,
|
|
28715
|
-
classNamePrefix: classNamePrefix
|
|
28752
|
+
classNamePrefix: classNamePrefix,
|
|
28753
|
+
getRowProps: getRowProps
|
|
28716
28754
|
});
|
|
28717
28755
|
}), body), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
28718
28756
|
rowDensity: rowDensity,
|
|
@@ -53001,6 +53039,76 @@ var fromEntries = function fromEntries(entries) {
|
|
|
53001
53039
|
|
|
53002
53040
|
var useIsomorphicLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
|
|
53003
53041
|
|
|
53042
|
+
/***/ }),
|
|
53043
|
+
|
|
53044
|
+
/***/ "./node_modules/react-select/creatable/dist/react-select-creatable.esm.js":
|
|
53045
|
+
/*!********************************************************************************!*\
|
|
53046
|
+
!*** ./node_modules/react-select/creatable/dist/react-select-creatable.esm.js ***!
|
|
53047
|
+
\********************************************************************************/
|
|
53048
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
53049
|
+
|
|
53050
|
+
"use strict";
|
|
53051
|
+
__webpack_require__.r(__webpack_exports__);
|
|
53052
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
53053
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
53054
|
+
/* harmony export */ "useCreatable": () => (/* reexport safe */ _dist_useCreatable_9c489c71_esm_js__WEBPACK_IMPORTED_MODULE_2__.u)
|
|
53055
|
+
/* harmony export */ });
|
|
53056
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
53057
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
53058
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
53059
|
+
/* harmony import */ var _dist_Select_457c486b_esm_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../dist/Select-457c486b.esm.js */ "./node_modules/react-select/dist/Select-457c486b.esm.js");
|
|
53060
|
+
/* harmony import */ var _dist_useStateManager_7e1e8489_esm_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../dist/useStateManager-7e1e8489.esm.js */ "./node_modules/react-select/dist/useStateManager-7e1e8489.esm.js");
|
|
53061
|
+
/* harmony import */ var _dist_useCreatable_9c489c71_esm_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../dist/useCreatable-9c489c71.esm.js */ "./node_modules/react-select/dist/useCreatable-9c489c71.esm.js");
|
|
53062
|
+
/* harmony import */ var _babel_runtime_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
53063
|
+
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
53064
|
+
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
53065
|
+
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
53066
|
+
/* harmony import */ var _babel_runtime_helpers_createSuper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
53067
|
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
53068
|
+
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
53069
|
+
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
53070
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
53071
|
+
/* harmony import */ var _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime/helpers/taggedTemplateLiteral */ "./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js");
|
|
53072
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
53073
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-dom */ "react-dom");
|
|
53074
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_14__);
|
|
53075
|
+
/* harmony import */ var use_isomorphic_layout_effect__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! use-isomorphic-layout-effect */ "./node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js");
|
|
53076
|
+
|
|
53077
|
+
|
|
53078
|
+
|
|
53079
|
+
|
|
53080
|
+
|
|
53081
|
+
|
|
53082
|
+
|
|
53083
|
+
|
|
53084
|
+
|
|
53085
|
+
|
|
53086
|
+
|
|
53087
|
+
|
|
53088
|
+
|
|
53089
|
+
|
|
53090
|
+
|
|
53091
|
+
|
|
53092
|
+
|
|
53093
|
+
|
|
53094
|
+
|
|
53095
|
+
|
|
53096
|
+
|
|
53097
|
+
|
|
53098
|
+
|
|
53099
|
+
|
|
53100
|
+
|
|
53101
|
+
var CreatableSelect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
53102
|
+
var creatableProps = (0,_dist_useStateManager_7e1e8489_esm_js__WEBPACK_IMPORTED_MODULE_16__.u)(props);
|
|
53103
|
+
var selectProps = (0,_dist_useCreatable_9c489c71_esm_js__WEBPACK_IMPORTED_MODULE_2__.u)(creatableProps);
|
|
53104
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_dist_Select_457c486b_esm_js__WEBPACK_IMPORTED_MODULE_17__.S, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
53105
|
+
ref: ref
|
|
53106
|
+
}, selectProps));
|
|
53107
|
+
});
|
|
53108
|
+
|
|
53109
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CreatableSelect);
|
|
53110
|
+
|
|
53111
|
+
|
|
53004
53112
|
/***/ }),
|
|
53005
53113
|
|
|
53006
53114
|
/***/ "./node_modules/react-select/dist/Select-457c486b.esm.js":
|
|
@@ -57129,6 +57237,124 @@ var NonceProvider = (function (_ref) {
|
|
|
57129
57237
|
|
|
57130
57238
|
|
|
57131
57239
|
|
|
57240
|
+
/***/ }),
|
|
57241
|
+
|
|
57242
|
+
/***/ "./node_modules/react-select/dist/useCreatable-9c489c71.esm.js":
|
|
57243
|
+
/*!*********************************************************************!*\
|
|
57244
|
+
!*** ./node_modules/react-select/dist/useCreatable-9c489c71.esm.js ***!
|
|
57245
|
+
\*********************************************************************/
|
|
57246
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
57247
|
+
|
|
57248
|
+
"use strict";
|
|
57249
|
+
__webpack_require__.r(__webpack_exports__);
|
|
57250
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
57251
|
+
/* harmony export */ "u": () => (/* binding */ useCreatable)
|
|
57252
|
+
/* harmony export */ });
|
|
57253
|
+
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
57254
|
+
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
57255
|
+
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
57256
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
57257
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
57258
|
+
/* harmony import */ var _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./index-a86253bb.esm.js */ "./node_modules/react-select/dist/index-a86253bb.esm.js");
|
|
57259
|
+
/* harmony import */ var _Select_457c486b_esm_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Select-457c486b.esm.js */ "./node_modules/react-select/dist/Select-457c486b.esm.js");
|
|
57260
|
+
|
|
57261
|
+
|
|
57262
|
+
|
|
57263
|
+
|
|
57264
|
+
|
|
57265
|
+
|
|
57266
|
+
|
|
57267
|
+
var _excluded = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
|
|
57268
|
+
var compareOption = function compareOption() {
|
|
57269
|
+
var inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
57270
|
+
var option = arguments.length > 1 ? arguments[1] : undefined;
|
|
57271
|
+
var accessors = arguments.length > 2 ? arguments[2] : undefined;
|
|
57272
|
+
var candidate = String(inputValue).toLowerCase();
|
|
57273
|
+
var optionValue = String(accessors.getOptionValue(option)).toLowerCase();
|
|
57274
|
+
var optionLabel = String(accessors.getOptionLabel(option)).toLowerCase();
|
|
57275
|
+
return optionValue === candidate || optionLabel === candidate;
|
|
57276
|
+
};
|
|
57277
|
+
var builtins = {
|
|
57278
|
+
formatCreateLabel: function formatCreateLabel(inputValue) {
|
|
57279
|
+
return "Create \"".concat(inputValue, "\"");
|
|
57280
|
+
},
|
|
57281
|
+
isValidNewOption: function isValidNewOption(inputValue, selectValue, selectOptions, accessors) {
|
|
57282
|
+
return !(!inputValue || selectValue.some(function (option) {
|
|
57283
|
+
return compareOption(inputValue, option, accessors);
|
|
57284
|
+
}) || selectOptions.some(function (option) {
|
|
57285
|
+
return compareOption(inputValue, option, accessors);
|
|
57286
|
+
}));
|
|
57287
|
+
},
|
|
57288
|
+
getNewOptionData: function getNewOptionData(inputValue, optionLabel) {
|
|
57289
|
+
return {
|
|
57290
|
+
label: optionLabel,
|
|
57291
|
+
value: inputValue,
|
|
57292
|
+
__isNew__: true
|
|
57293
|
+
};
|
|
57294
|
+
}
|
|
57295
|
+
};
|
|
57296
|
+
function useCreatable(_ref) {
|
|
57297
|
+
var _ref$allowCreateWhile = _ref.allowCreateWhileLoading,
|
|
57298
|
+
allowCreateWhileLoading = _ref$allowCreateWhile === void 0 ? false : _ref$allowCreateWhile,
|
|
57299
|
+
_ref$createOptionPosi = _ref.createOptionPosition,
|
|
57300
|
+
createOptionPosition = _ref$createOptionPosi === void 0 ? 'last' : _ref$createOptionPosi,
|
|
57301
|
+
_ref$formatCreateLabe = _ref.formatCreateLabel,
|
|
57302
|
+
formatCreateLabel = _ref$formatCreateLabe === void 0 ? builtins.formatCreateLabel : _ref$formatCreateLabe,
|
|
57303
|
+
_ref$isValidNewOption = _ref.isValidNewOption,
|
|
57304
|
+
isValidNewOption = _ref$isValidNewOption === void 0 ? builtins.isValidNewOption : _ref$isValidNewOption,
|
|
57305
|
+
_ref$getNewOptionData = _ref.getNewOptionData,
|
|
57306
|
+
getNewOptionData = _ref$getNewOptionData === void 0 ? builtins.getNewOptionData : _ref$getNewOptionData,
|
|
57307
|
+
onCreateOption = _ref.onCreateOption,
|
|
57308
|
+
_ref$options = _ref.options,
|
|
57309
|
+
propsOptions = _ref$options === void 0 ? [] : _ref$options,
|
|
57310
|
+
propsOnChange = _ref.onChange,
|
|
57311
|
+
restSelectProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref, _excluded);
|
|
57312
|
+
var _restSelectProps$getO = restSelectProps.getOptionValue,
|
|
57313
|
+
getOptionValue$1 = _restSelectProps$getO === void 0 ? _Select_457c486b_esm_js__WEBPACK_IMPORTED_MODULE_4__.g : _restSelectProps$getO,
|
|
57314
|
+
_restSelectProps$getO2 = restSelectProps.getOptionLabel,
|
|
57315
|
+
getOptionLabel$1 = _restSelectProps$getO2 === void 0 ? _Select_457c486b_esm_js__WEBPACK_IMPORTED_MODULE_4__.b : _restSelectProps$getO2,
|
|
57316
|
+
inputValue = restSelectProps.inputValue,
|
|
57317
|
+
isLoading = restSelectProps.isLoading,
|
|
57318
|
+
isMulti = restSelectProps.isMulti,
|
|
57319
|
+
value = restSelectProps.value,
|
|
57320
|
+
name = restSelectProps.name;
|
|
57321
|
+
var newOption = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
|
|
57322
|
+
return isValidNewOption(inputValue, (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_5__.I)(value), propsOptions, {
|
|
57323
|
+
getOptionValue: getOptionValue$1,
|
|
57324
|
+
getOptionLabel: getOptionLabel$1
|
|
57325
|
+
}) ? getNewOptionData(inputValue, formatCreateLabel(inputValue)) : undefined;
|
|
57326
|
+
}, [formatCreateLabel, getNewOptionData, getOptionLabel$1, getOptionValue$1, inputValue, isValidNewOption, propsOptions, value]);
|
|
57327
|
+
var options = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
|
|
57328
|
+
return (allowCreateWhileLoading || !isLoading) && newOption ? createOptionPosition === 'first' ? [newOption].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(propsOptions)) : [].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(propsOptions), [newOption]) : propsOptions;
|
|
57329
|
+
}, [allowCreateWhileLoading, createOptionPosition, isLoading, newOption, propsOptions]);
|
|
57330
|
+
var onChange = (0,react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function (newValue, actionMeta) {
|
|
57331
|
+
if (actionMeta.action !== 'select-option') {
|
|
57332
|
+
return propsOnChange(newValue, actionMeta);
|
|
57333
|
+
}
|
|
57334
|
+
var valueArray = Array.isArray(newValue) ? newValue : [newValue];
|
|
57335
|
+
if (valueArray[valueArray.length - 1] === newOption) {
|
|
57336
|
+
if (onCreateOption) onCreateOption(inputValue);else {
|
|
57337
|
+
var newOptionData = getNewOptionData(inputValue, inputValue);
|
|
57338
|
+
var newActionMeta = {
|
|
57339
|
+
action: 'create-option',
|
|
57340
|
+
name: name,
|
|
57341
|
+
option: newOptionData
|
|
57342
|
+
};
|
|
57343
|
+
propsOnChange((0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_5__.D)(isMulti, [].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_5__.I)(value)), [newOptionData]), newOptionData), newActionMeta);
|
|
57344
|
+
}
|
|
57345
|
+
return;
|
|
57346
|
+
}
|
|
57347
|
+
propsOnChange(newValue, actionMeta);
|
|
57348
|
+
}, [getNewOptionData, inputValue, isMulti, name, newOption, onCreateOption, propsOnChange, value]);
|
|
57349
|
+
return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, restSelectProps), {}, {
|
|
57350
|
+
options: options,
|
|
57351
|
+
onChange: onChange
|
|
57352
|
+
});
|
|
57353
|
+
}
|
|
57354
|
+
|
|
57355
|
+
|
|
57356
|
+
|
|
57357
|
+
|
|
57132
57358
|
/***/ }),
|
|
57133
57359
|
|
|
57134
57360
|
/***/ "./node_modules/react-select/dist/useStateManager-7e1e8489.esm.js":
|