@luminati-io/uikit 1.9.9 → 1.9.11
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 +342 -112
- 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
|
@@ -22331,6 +22331,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22331
22331
|
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
|
|
22332
22332
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
|
22333
22333
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
|
22334
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
|
22334
22335
|
// LICENSE_CODE ZON
|
|
22335
22336
|
|
|
22336
22337
|
|
|
@@ -22349,6 +22350,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
22349
22350
|
|
|
22350
22351
|
|
|
22351
22352
|
|
|
22353
|
+
|
|
22352
22354
|
var ComboButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
|
22353
22355
|
var text = props.text,
|
|
22354
22356
|
variant = props.variant,
|
|
@@ -22422,7 +22424,8 @@ var ArrowIcon = function ArrowIcon(props) {
|
|
|
22422
22424
|
}));
|
|
22423
22425
|
};
|
|
22424
22426
|
var ComboButtonMenuTrigger = (0,_hoc__WEBPACK_IMPORTED_MODULE_3__.withPopover)(ArrowIcon, ComboButtonMenu, {
|
|
22425
|
-
placement: 'bottom-end'
|
|
22427
|
+
placement: 'bottom-end',
|
|
22428
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_8__.Z_INDEX.combobutton
|
|
22426
22429
|
});
|
|
22427
22430
|
var StyledButtonWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
|
22428
22431
|
displayName: "StyledButtonWrapper",
|
|
@@ -22505,7 +22508,8 @@ var Z_INDEX = {
|
|
|
22505
22508
|
backdrop: 1040,
|
|
22506
22509
|
datepicker: 2000,
|
|
22507
22510
|
tooltip: 9999,
|
|
22508
|
-
dropdown: 999999
|
|
22511
|
+
dropdown: 999999,
|
|
22512
|
+
combobutton: 999999
|
|
22509
22513
|
};
|
|
22510
22514
|
|
|
22511
22515
|
/***/ }),
|
|
@@ -23915,21 +23919,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23915
23919
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
23916
23920
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
23917
23921
|
/* 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
|
|
23922
|
+
/* harmony import */ var react_select__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-select */ "./node_modules/react-select/dist/react-select.esm.js");
|
|
23923
|
+
/* 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");
|
|
23924
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
|
23925
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
|
23926
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../menu */ "./src/menu/index.js");
|
|
23927
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
|
23928
|
+
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
|
23929
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
|
23930
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
|
23931
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./shared */ "./src/input/shared.js");
|
|
23927
23932
|
// LICENSE_CODE ZON
|
|
23928
23933
|
|
|
23929
23934
|
|
|
23930
23935
|
/*jslint react:true*/
|
|
23931
23936
|
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"];
|
|
23937
|
+
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
23938
|
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
23939
|
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
23940
|
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 +23955,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
23950
23955
|
|
|
23951
23956
|
|
|
23952
23957
|
|
|
23953
|
-
|
|
23958
|
+
|
|
23959
|
+
var Item = _menu__WEBPACK_IMPORTED_MODULE_6__["default"].Item;
|
|
23954
23960
|
var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef(function (props, ref) {
|
|
23955
23961
|
var label = props.label,
|
|
23956
23962
|
labelIcon = props.labelIcon,
|
|
@@ -23965,6 +23971,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
|
23965
23971
|
onBlur = props.onBlur,
|
|
23966
23972
|
multiselect = props.multiselect,
|
|
23967
23973
|
creatable = props.creatable,
|
|
23974
|
+
onCreateOption = props.onCreateOption,
|
|
23968
23975
|
clearable = props.clearable,
|
|
23969
23976
|
disabled = props.disabled,
|
|
23970
23977
|
invalid = props.invalid,
|
|
@@ -23977,17 +23984,17 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
|
23977
23984
|
menuPlacement = props.menuPlacement,
|
|
23978
23985
|
components = props.components,
|
|
23979
23986
|
rest = _objectWithoutProperties(props, _excluded);
|
|
23980
|
-
var labelId = (0,
|
|
23981
|
-
var t = (0,
|
|
23987
|
+
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useLabelId)(props.id);
|
|
23988
|
+
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useTranslate)();
|
|
23982
23989
|
var styles = useCustomStyles(size);
|
|
23983
|
-
var SelectComp = creatable ?
|
|
23984
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
23990
|
+
var SelectComp = creatable ? react_select_creatable__WEBPACK_IMPORTED_MODULE_3__["default"] : react_select__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
23991
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, _extends({
|
|
23985
23992
|
ref: ref,
|
|
23986
23993
|
"data-testid": "dropdown"
|
|
23987
23994
|
}, rest, {
|
|
23988
23995
|
flex_direction: "column",
|
|
23989
|
-
gap:
|
|
23990
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
23996
|
+
gap: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"]
|
|
23997
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_11__.InputLabel, {
|
|
23991
23998
|
id: labelId,
|
|
23992
23999
|
label: label,
|
|
23993
24000
|
labelIcon: labelIcon,
|
|
@@ -24006,6 +24013,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
|
24006
24013
|
onBlur: onBlur,
|
|
24007
24014
|
isMulti: multiselect,
|
|
24008
24015
|
isClearable: clearable,
|
|
24016
|
+
onCreateOption: onCreateOption,
|
|
24009
24017
|
isDisabled: disabled,
|
|
24010
24018
|
required: required,
|
|
24011
24019
|
styles: styles,
|
|
@@ -24027,7 +24035,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forward
|
|
|
24027
24035
|
},
|
|
24028
24036
|
closeMenuOnSelect: !multiselect,
|
|
24029
24037
|
menuPlacement: menuPlacement
|
|
24030
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
24038
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_11__.HelperText, {
|
|
24031
24039
|
invalid: invalid
|
|
24032
24040
|
}, helperText));
|
|
24033
24041
|
});
|
|
@@ -24052,6 +24060,7 @@ Dropdown.propTypes = {
|
|
|
24052
24060
|
multiselect: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
24053
24061
|
clearable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
24054
24062
|
creatable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
24063
|
+
onCreateOption: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
|
24055
24064
|
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
24056
24065
|
menuPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['bottom', 'auto', 'top'])
|
|
24057
24066
|
};
|
|
@@ -24072,7 +24081,7 @@ var DropdownIndicator = function DropdownIndicator(props) {
|
|
|
24072
24081
|
height: "18px",
|
|
24073
24082
|
viewBox: ic.viewBox,
|
|
24074
24083
|
style: {
|
|
24075
|
-
color:
|
|
24084
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_9,
|
|
24076
24085
|
cursor: isDisabled ? 'default' : 'pointer'
|
|
24077
24086
|
}
|
|
24078
24087
|
}, innerProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("use", {
|
|
@@ -24090,7 +24099,7 @@ var ClearIndicator = function ClearIndicator(props) {
|
|
|
24090
24099
|
height: "18px",
|
|
24091
24100
|
viewBox: ic.viewBox,
|
|
24092
24101
|
style: {
|
|
24093
|
-
color:
|
|
24102
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_9,
|
|
24094
24103
|
cursor: 'pointer'
|
|
24095
24104
|
}
|
|
24096
24105
|
}, innerProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("use", {
|
|
@@ -24132,7 +24141,7 @@ var Group = function Group(props) {
|
|
|
24132
24141
|
innerProps = props.innerProps,
|
|
24133
24142
|
children = props.children,
|
|
24134
24143
|
isFirstItem = props.isFirstItem;
|
|
24135
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
24144
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.MenuItemGroup, _extends({
|
|
24136
24145
|
ref: innerRef,
|
|
24137
24146
|
isFirstItem: isFirstItem,
|
|
24138
24147
|
className: cx({
|
|
@@ -24150,7 +24159,7 @@ var MenuList = function MenuList(props) {
|
|
|
24150
24159
|
innerRef = props.innerRef,
|
|
24151
24160
|
innerProps = props.innerProps,
|
|
24152
24161
|
children = props.children;
|
|
24153
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
24162
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.MenuContainer, _extends({
|
|
24154
24163
|
ref: innerRef,
|
|
24155
24164
|
noShadow: true,
|
|
24156
24165
|
role: "menu",
|
|
@@ -24174,25 +24183,25 @@ var useCustomStyles = function useCustomStyles(size) {
|
|
|
24174
24183
|
md: 40,
|
|
24175
24184
|
lg: 48
|
|
24176
24185
|
};
|
|
24177
|
-
var borderColor =
|
|
24178
|
-
var color =
|
|
24179
|
-
var backgroundColor =
|
|
24186
|
+
var borderColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_7;
|
|
24187
|
+
var color = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11_50;
|
|
24188
|
+
var backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.white;
|
|
24180
24189
|
var cursor = 'text';
|
|
24181
24190
|
if (state.isDisabled) {
|
|
24182
|
-
color =
|
|
24183
|
-
borderColor =
|
|
24184
|
-
backgroundColor =
|
|
24191
|
+
color = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_9;
|
|
24192
|
+
borderColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_6;
|
|
24193
|
+
backgroundColor = _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_2;
|
|
24185
24194
|
cursor = 'default';
|
|
24186
|
-
} else if (state.selectProps['aria-invalid']) borderColor =
|
|
24195
|
+
} 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
24196
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24188
|
-
minHeight: (0,
|
|
24189
|
-
padding: "".concat(
|
|
24197
|
+
minHeight: (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)(height[size] || height.sm),
|
|
24198
|
+
padding: "".concat(_shared__WEBPACK_IMPORTED_MODULE_11__.inputVerticalPadding, "px ").concat(_shared__WEBPACK_IMPORTED_MODULE_11__.inputHorizontalPadding, "px"),
|
|
24190
24199
|
/* Label/sm */
|
|
24191
|
-
fontFamily:
|
|
24200
|
+
fontFamily: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_family.sans,
|
|
24192
24201
|
fontStyle: 'normal',
|
|
24193
|
-
fontWeight:
|
|
24194
|
-
fontSize:
|
|
24195
|
-
lineHeight:
|
|
24202
|
+
fontWeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_weight.regular,
|
|
24203
|
+
fontSize: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_size.sm,
|
|
24204
|
+
lineHeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].line_height.none,
|
|
24196
24205
|
color: color,
|
|
24197
24206
|
backgroundColor: backgroundColor,
|
|
24198
24207
|
borderColor: borderColor,
|
|
@@ -24207,12 +24216,12 @@ var useCustomStyles = function useCustomStyles(size) {
|
|
|
24207
24216
|
},
|
|
24208
24217
|
placeholder: function placeholder(baseStyles) {
|
|
24209
24218
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24210
|
-
color:
|
|
24219
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11
|
|
24211
24220
|
});
|
|
24212
24221
|
},
|
|
24213
24222
|
indicatorsContainer: function indicatorsContainer(baseStyles) {
|
|
24214
24223
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24215
|
-
gap:
|
|
24224
|
+
gap: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["03"],
|
|
24216
24225
|
minHeight: '24px'
|
|
24217
24226
|
});
|
|
24218
24227
|
},
|
|
@@ -24223,43 +24232,43 @@ var useCustomStyles = function useCustomStyles(size) {
|
|
|
24223
24232
|
minWidth: '168px',
|
|
24224
24233
|
maxWidth: '540px',
|
|
24225
24234
|
width: 'max-content',
|
|
24226
|
-
backgroundColor:
|
|
24227
|
-
borderRadius:
|
|
24228
|
-
boxShadow:
|
|
24235
|
+
backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.white,
|
|
24236
|
+
borderRadius: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"],
|
|
24237
|
+
boxShadow: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].box_shadow.md
|
|
24229
24238
|
});
|
|
24230
24239
|
},
|
|
24231
24240
|
menuPortal: function menuPortal(baseStyles) {
|
|
24232
24241
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24233
|
-
zIndex:
|
|
24242
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_10__.Z_INDEX.dropdown
|
|
24234
24243
|
});
|
|
24235
24244
|
},
|
|
24236
24245
|
multiValue: function multiValue(baseStyles) {
|
|
24237
24246
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24238
|
-
backgroundColor:
|
|
24239
|
-
borderRadius:
|
|
24247
|
+
backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_3,
|
|
24248
|
+
borderRadius: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"]
|
|
24240
24249
|
});
|
|
24241
24250
|
},
|
|
24242
24251
|
multiValueLabel: function multiValueLabel(baseStyles) {
|
|
24243
24252
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24244
24253
|
/* Label/sm */
|
|
24245
|
-
fontFamily:
|
|
24254
|
+
fontFamily: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_family.sans,
|
|
24246
24255
|
fontStyle: 'normal',
|
|
24247
|
-
fontWeight:
|
|
24248
|
-
fontSize:
|
|
24249
|
-
lineHeight:
|
|
24250
|
-
color:
|
|
24251
|
-
paddingLeft:
|
|
24252
|
-
paddingRight:
|
|
24256
|
+
fontWeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_weight.regular,
|
|
24257
|
+
fontSize: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].font_size.sm,
|
|
24258
|
+
lineHeight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].line_height.none,
|
|
24259
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11_25,
|
|
24260
|
+
paddingLeft: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"],
|
|
24261
|
+
paddingRight: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["00"]
|
|
24253
24262
|
});
|
|
24254
24263
|
},
|
|
24255
24264
|
multiValueRemove: function multiValueRemove(baseStyles) {
|
|
24256
24265
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
|
24257
|
-
borderRadius:
|
|
24258
|
-
color:
|
|
24266
|
+
borderRadius: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing["02"],
|
|
24267
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11,
|
|
24259
24268
|
cursor: 'pointer',
|
|
24260
24269
|
':hover': {
|
|
24261
|
-
backgroundColor:
|
|
24262
|
-
color:
|
|
24270
|
+
backgroundColor: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_3,
|
|
24271
|
+
color: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_11_50
|
|
24263
24272
|
}
|
|
24264
24273
|
});
|
|
24265
24274
|
}
|
|
@@ -26552,7 +26561,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26552
26561
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
|
26553
26562
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
|
26554
26563
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
|
26555
|
-
/* harmony import */ var
|
|
26564
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
|
26565
|
+
/* harmony import */ var _table_row__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./table_row */ "./src/table/table_row.js");
|
|
26556
26566
|
// LICENSE_CODE ZON
|
|
26557
26567
|
|
|
26558
26568
|
|
|
@@ -26564,22 +26574,32 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
26564
26574
|
|
|
26565
26575
|
|
|
26566
26576
|
|
|
26577
|
+
|
|
26567
26578
|
var assign = Object.assign;
|
|
26568
26579
|
var Cell = function Cell(props) {
|
|
26569
|
-
var
|
|
26580
|
+
var classNamePrefix = props.classNamePrefix,
|
|
26570
26581
|
rowDensity = props.rowDensity,
|
|
26571
26582
|
isLastRow = props.isLastRow,
|
|
26572
|
-
|
|
26573
|
-
|
|
26574
|
-
|
|
26575
|
-
|
|
26576
|
-
|
|
26583
|
+
cell = props.cell;
|
|
26584
|
+
var row = cell.row,
|
|
26585
|
+
column = cell.column,
|
|
26586
|
+
isEditing = cell.isEditing;
|
|
26587
|
+
var rowId = row.id;
|
|
26577
26588
|
var columnId = column.id,
|
|
26578
26589
|
_column$type = column.type,
|
|
26579
26590
|
type = _column$type === void 0 ? 'string' : _column$type,
|
|
26580
|
-
canEdit = column.canEdit
|
|
26581
|
-
|
|
26582
|
-
|
|
26591
|
+
canEdit = column.canEdit;
|
|
26592
|
+
var columnClassName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(column.classNamePrefix, {
|
|
26593
|
+
cell: true
|
|
26594
|
+
});
|
|
26595
|
+
var cellClassName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(classNamePrefix, {
|
|
26596
|
+
tableCell: true
|
|
26597
|
+
});
|
|
26598
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_5__.useTableContext)(),
|
|
26599
|
+
columnStartEditing = _useTableContext.columnStartEditing,
|
|
26600
|
+
columnDoneEditing = _useTableContext.columnDoneEditing,
|
|
26601
|
+
getColumnProps = _useTableContext.getColumnProps,
|
|
26602
|
+
getCellProps = _useTableContext.getCellProps;
|
|
26583
26603
|
var startEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
|
26584
26604
|
columnStartEditing(columnId, rowId);
|
|
26585
26605
|
}, [columnStartEditing, columnId, rowId]);
|
|
@@ -26593,17 +26613,15 @@ var Cell = function Cell(props) {
|
|
|
26593
26613
|
isEditing: isEditing
|
|
26594
26614
|
}, {
|
|
26595
26615
|
border: isLastRow ? null : 'bottom'
|
|
26596
|
-
},
|
|
26616
|
+
}, cell.getCellProps([getColumnProps(column), getCellProps(cell)]), canEdit ? {
|
|
26597
26617
|
onClick: function onClick(e) {
|
|
26598
26618
|
e.stopPropagation();
|
|
26599
26619
|
startEditing();
|
|
26600
26620
|
}
|
|
26601
26621
|
} : 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', {
|
|
26622
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledCell, _extends({}, cellProps, {
|
|
26623
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, columnClassName, cellClassName, cellProps.className)
|
|
26624
|
+
}), cell.render('Cell', {
|
|
26607
26625
|
row: row,
|
|
26608
26626
|
isEditing: isEditing,
|
|
26609
26627
|
startEditing: startEditing,
|
|
@@ -26616,7 +26634,7 @@ var StyledCell = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.wi
|
|
|
26616
26634
|
componentId: "sc-b034il-0"
|
|
26617
26635
|
})(["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
26636
|
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,
|
|
26637
|
+
}, _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
26638
|
if (props.border == 'top') return "border-top-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
|
|
26621
26639
|
if (props.border == 'bottom') return "border-bottom-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
|
|
26622
26640
|
}, function (props) {
|
|
@@ -26673,7 +26691,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26673
26691
|
|
|
26674
26692
|
/*jslint react:true*/
|
|
26675
26693
|
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"];
|
|
26694
|
+
var _excluded = ["data", "columnsSort", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "isLoading", "onPageChange", "manualPagination", "totalCount", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps"];
|
|
26677
26695
|
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
26696
|
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
26697
|
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 +26719,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
26701
26719
|
|
|
26702
26720
|
|
|
26703
26721
|
var assign = Object.assign;
|
|
26722
|
+
var defaultPropGetter = function defaultPropGetter() {
|
|
26723
|
+
return {};
|
|
26724
|
+
};
|
|
26704
26725
|
var TableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createContext({});
|
|
26705
26726
|
TableContext.displayName = 'TableContext';
|
|
26706
26727
|
var Cell = function Cell(props) {
|
|
@@ -26737,6 +26758,16 @@ var Provider = function Provider(props) {
|
|
|
26737
26758
|
_props$manualPaginati = props.manualPagination,
|
|
26738
26759
|
manualPagination = _props$manualPaginati === void 0 ? false : _props$manualPaginati,
|
|
26739
26760
|
totalCount = props.totalCount,
|
|
26761
|
+
_props$getHeaderProps = props.getHeaderProps,
|
|
26762
|
+
getHeaderProps = _props$getHeaderProps === void 0 ? defaultPropGetter : _props$getHeaderProps,
|
|
26763
|
+
_props$getColumnProps = props.getColumnProps,
|
|
26764
|
+
getColumnProps = _props$getColumnProps === void 0 ? defaultPropGetter : _props$getColumnProps,
|
|
26765
|
+
_props$getRowProps = props.getRowProps,
|
|
26766
|
+
getRowProps = _props$getRowProps === void 0 ? defaultPropGetter : _props$getRowProps,
|
|
26767
|
+
_props$getCellProps = props.getCellProps,
|
|
26768
|
+
getCellProps = _props$getCellProps === void 0 ? defaultPropGetter : _props$getCellProps,
|
|
26769
|
+
_props$getFooterProps = props.getFooterProps,
|
|
26770
|
+
getFooterProps = _props$getFooterProps === void 0 ? defaultPropGetter : _props$getFooterProps,
|
|
26740
26771
|
rest = _objectWithoutProperties(props, _excluded);
|
|
26741
26772
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0),
|
|
26742
26773
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -26762,7 +26793,12 @@ var Provider = function Provider(props) {
|
|
|
26762
26793
|
manualPagination: manualPagination,
|
|
26763
26794
|
pageCount: pageCount,
|
|
26764
26795
|
totalCount: totalCount,
|
|
26765
|
-
isLoading: isLoading
|
|
26796
|
+
isLoading: isLoading,
|
|
26797
|
+
getHeaderProps: getHeaderProps,
|
|
26798
|
+
getColumnProps: getColumnProps,
|
|
26799
|
+
getRowProps: getRowProps,
|
|
26800
|
+
getCellProps: getCellProps,
|
|
26801
|
+
getFooterProps: getFooterProps
|
|
26766
26802
|
}, 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
26803
|
var _table$state = table.state,
|
|
26768
26804
|
pageIndex = _table$state.pageIndex,
|
|
@@ -26792,9 +26828,9 @@ Provider.propTypes = {
|
|
|
26792
26828
|
id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired),
|
|
26793
26829
|
accessor: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
26794
26830
|
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['string', 'number']),
|
|
26795
|
-
Header: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().
|
|
26831
|
+
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
26832
|
Cell: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26797
|
-
Footer: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().
|
|
26833
|
+
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
26834
|
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
26835
|
on_sort: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26800
26836
|
disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
@@ -26822,9 +26858,12 @@ Provider.propTypes = {
|
|
|
26822
26858
|
disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
26823
26859
|
disableEditing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
26824
26860
|
onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26825
|
-
|
|
26826
|
-
|
|
26827
|
-
|
|
26861
|
+
hideFooter: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
26862
|
+
getHeaderProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26863
|
+
getColumnProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26864
|
+
getRowProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26865
|
+
getCellProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26866
|
+
getFooterProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
26828
26867
|
};
|
|
26829
26868
|
var calcPageCount = function calcPageCount(totalCount, pageSize) {
|
|
26830
26869
|
return Math.ceil(totalCount / pageSize);
|
|
@@ -27261,15 +27300,19 @@ var FooterCell = function FooterCell(props) {
|
|
|
27261
27300
|
var _column$type = column.type,
|
|
27262
27301
|
type = _column$type === void 0 ? 'string' : _column$type,
|
|
27263
27302
|
classNamePrefix = column.classNamePrefix;
|
|
27264
|
-
|
|
27303
|
+
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_3__.useTableContext)(),
|
|
27304
|
+
getColumnProps = _useTableContext2.getColumnProps,
|
|
27305
|
+
getFooterProps = _useTableContext2.getFooterProps;
|
|
27306
|
+
var footerProps = column.getFooterProps([getColumnProps(column), getFooterProps(column)]);
|
|
27307
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__.StyledCell, _extends({}, footerProps, {
|
|
27265
27308
|
type: type,
|
|
27266
27309
|
role: "cell",
|
|
27267
27310
|
rowDensity: rowDensity,
|
|
27268
27311
|
border: "top",
|
|
27269
27312
|
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(classNamePrefix, {
|
|
27270
27313
|
footer: true
|
|
27271
|
-
}, className)
|
|
27272
|
-
}
|
|
27314
|
+
}, className, footerProps.className)
|
|
27315
|
+
}), column.render('Footer'));
|
|
27273
27316
|
};
|
|
27274
27317
|
FooterCell.displayName = 'FooterCell';
|
|
27275
27318
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TableFooter);
|
|
@@ -27377,10 +27420,11 @@ var HeaderCell = function HeaderCell(props) {
|
|
|
27377
27420
|
name = header.name,
|
|
27378
27421
|
on_sort = header.on_sort,
|
|
27379
27422
|
isResizing = header.isResizing,
|
|
27380
|
-
getHeaderProps = header.getHeaderProps,
|
|
27381
27423
|
getResizerProps = header.getResizerProps,
|
|
27382
27424
|
classNamePrefix = header.classNamePrefix;
|
|
27383
27425
|
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
|
27426
|
+
getColumnProps = _useTableContext2.getColumnProps,
|
|
27427
|
+
getHeaderProps = _useTableContext2.getHeaderProps,
|
|
27384
27428
|
columnsSort = _useTableContext2.columnsSort,
|
|
27385
27429
|
fullWidth = _useTableContext2.fullWidth;
|
|
27386
27430
|
var sort = columnsSort[id];
|
|
@@ -27400,11 +27444,11 @@ var HeaderCell = function HeaderCell(props) {
|
|
|
27400
27444
|
hovered = _useState2[0],
|
|
27401
27445
|
setHovered = _useState2[1];
|
|
27402
27446
|
var iconVisible = canSort && (['asc', 'desc'].includes(sort) || hovered);
|
|
27403
|
-
|
|
27447
|
+
var headerCellProps = header.getHeaderProps([getColumnProps(header), getHeaderProps(header)]);
|
|
27448
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(HeaderCellContent, _extends({}, headerCellProps, {
|
|
27404
27449
|
className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
|
|
27405
27450
|
header: true
|
|
27406
|
-
}, className)
|
|
27407
|
-
}, getHeaderProps(), {
|
|
27451
|
+
}, className, headerCellProps.className),
|
|
27408
27452
|
onMouseOver: function onMouseOver() {
|
|
27409
27453
|
return setHovered(true);
|
|
27410
27454
|
},
|
|
@@ -28213,8 +28257,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28213
28257
|
|
|
28214
28258
|
|
|
28215
28259
|
/*jslint react:true*/
|
|
28216
|
-
var _excluded = ["
|
|
28217
|
-
_excluded2 = ["key"];
|
|
28260
|
+
var _excluded = ["key"];
|
|
28218
28261
|
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
28262
|
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
28263
|
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 +28269,33 @@ var renderRow = function renderRow(opt) {
|
|
|
28226
28269
|
var classNamePrefix = opt.classNamePrefix,
|
|
28227
28270
|
row = opt.row,
|
|
28228
28271
|
onRowClick = opt.onRowClick,
|
|
28229
|
-
|
|
28230
|
-
|
|
28272
|
+
getRowProps = opt.getRowProps,
|
|
28273
|
+
rowDensity = opt.rowDensity,
|
|
28274
|
+
isLastRow = opt.isLastRow;
|
|
28275
|
+
var _row$getRowProps = row.getRowProps(getRowProps === null || getRowProps === void 0 ? void 0 : getRowProps(row)),
|
|
28231
28276
|
key = _row$getRowProps.key,
|
|
28232
|
-
rowProps = _objectWithoutProperties(_row$getRowProps,
|
|
28277
|
+
rowProps = _objectWithoutProperties(_row$getRowProps, _excluded);
|
|
28233
28278
|
var onClick = onRowClick ? function (evt) {
|
|
28234
28279
|
return onRowClick(row.original, evt);
|
|
28235
28280
|
} : undefined;
|
|
28236
28281
|
var cursor = onRowClick ? 'pointer' : undefined;
|
|
28237
28282
|
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
|
|
28283
|
+
key: key
|
|
28241
28284
|
}, rowProps, {
|
|
28285
|
+
onClick: onClick,
|
|
28286
|
+
cursor: cursor,
|
|
28242
28287
|
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(classNamePrefix, {
|
|
28243
28288
|
tableRow: true,
|
|
28244
28289
|
'tableRow--is-pinned': row.isPinned
|
|
28245
|
-
})
|
|
28290
|
+
}, rowProps.className)
|
|
28246
28291
|
}), 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
|
-
})
|
|
28292
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
28293
|
+
key: cell.getCellProps().key,
|
|
28294
|
+
cell: cell,
|
|
28295
|
+
classNamePrefix: classNamePrefix,
|
|
28296
|
+
rowDensity: rowDensity,
|
|
28297
|
+
isLastRow: isLastRow
|
|
28298
|
+
});
|
|
28254
28299
|
}));
|
|
28255
28300
|
};
|
|
28256
28301
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (renderRow);
|
|
@@ -28635,11 +28680,10 @@ var Table = function Table(props) {
|
|
|
28635
28680
|
page = _useTableContext.page,
|
|
28636
28681
|
_useTableContext$pinn = _useTableContext.pinnedRows,
|
|
28637
28682
|
pinnedRows = _useTableContext$pinn === void 0 ? [] : _useTableContext$pinn,
|
|
28638
|
-
columnStartEditing = _useTableContext.columnStartEditing,
|
|
28639
|
-
columnDoneEditing = _useTableContext.columnDoneEditing,
|
|
28640
28683
|
NoDataComp = _useTableContext.NoDataComp,
|
|
28641
28684
|
LoadingComp = _useTableContext.LoadingComp,
|
|
28642
|
-
isLoading = _useTableContext.isLoading
|
|
28685
|
+
isLoading = _useTableContext.isLoading,
|
|
28686
|
+
getRowProps = _useTableContext.getRowProps;
|
|
28643
28687
|
var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
|
28644
28688
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(0),
|
|
28645
28689
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -28676,12 +28720,11 @@ var Table = function Table(props) {
|
|
|
28676
28720
|
if (row.isPinned) return null;
|
|
28677
28721
|
return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
|
|
28678
28722
|
row: row,
|
|
28679
|
-
columnStartEditing: columnStartEditing,
|
|
28680
|
-
columnDoneEditing: columnDoneEditing,
|
|
28681
28723
|
rowDensity: rowDensity,
|
|
28682
28724
|
onRowClick: onRowClick,
|
|
28683
28725
|
isLastRow: i == arr.length - 1,
|
|
28684
|
-
classNamePrefix: classNamePrefix
|
|
28726
|
+
classNamePrefix: classNamePrefix,
|
|
28727
|
+
getRowProps: getRowProps
|
|
28685
28728
|
});
|
|
28686
28729
|
});
|
|
28687
28730
|
}();
|
|
@@ -28708,11 +28751,10 @@ var Table = function Table(props) {
|
|
|
28708
28751
|
prepareRow(row);
|
|
28709
28752
|
return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
|
|
28710
28753
|
row: row,
|
|
28711
|
-
columnStartEditing: columnStartEditing,
|
|
28712
|
-
columnDoneEditing: columnDoneEditing,
|
|
28713
28754
|
rowDensity: rowDensity,
|
|
28714
28755
|
onRowClick: onRowClick,
|
|
28715
|
-
classNamePrefix: classNamePrefix
|
|
28756
|
+
classNamePrefix: classNamePrefix,
|
|
28757
|
+
getRowProps: getRowProps
|
|
28716
28758
|
});
|
|
28717
28759
|
}), body), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
28718
28760
|
rowDensity: rowDensity,
|
|
@@ -53001,6 +53043,76 @@ var fromEntries = function fromEntries(entries) {
|
|
|
53001
53043
|
|
|
53002
53044
|
var useIsomorphicLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
|
|
53003
53045
|
|
|
53046
|
+
/***/ }),
|
|
53047
|
+
|
|
53048
|
+
/***/ "./node_modules/react-select/creatable/dist/react-select-creatable.esm.js":
|
|
53049
|
+
/*!********************************************************************************!*\
|
|
53050
|
+
!*** ./node_modules/react-select/creatable/dist/react-select-creatable.esm.js ***!
|
|
53051
|
+
\********************************************************************************/
|
|
53052
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
53053
|
+
|
|
53054
|
+
"use strict";
|
|
53055
|
+
__webpack_require__.r(__webpack_exports__);
|
|
53056
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
53057
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
53058
|
+
/* harmony export */ "useCreatable": () => (/* reexport safe */ _dist_useCreatable_9c489c71_esm_js__WEBPACK_IMPORTED_MODULE_2__.u)
|
|
53059
|
+
/* harmony export */ });
|
|
53060
|
+
/* 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");
|
|
53061
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
53062
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
53063
|
+
/* 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");
|
|
53064
|
+
/* 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");
|
|
53065
|
+
/* 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");
|
|
53066
|
+
/* 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");
|
|
53067
|
+
/* 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");
|
|
53068
|
+
/* 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");
|
|
53069
|
+
/* 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");
|
|
53070
|
+
/* 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");
|
|
53071
|
+
/* 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");
|
|
53072
|
+
/* 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");
|
|
53073
|
+
/* 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");
|
|
53074
|
+
/* 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");
|
|
53075
|
+
/* 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");
|
|
53076
|
+
/* 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");
|
|
53077
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-dom */ "react-dom");
|
|
53078
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_14__);
|
|
53079
|
+
/* 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");
|
|
53080
|
+
|
|
53081
|
+
|
|
53082
|
+
|
|
53083
|
+
|
|
53084
|
+
|
|
53085
|
+
|
|
53086
|
+
|
|
53087
|
+
|
|
53088
|
+
|
|
53089
|
+
|
|
53090
|
+
|
|
53091
|
+
|
|
53092
|
+
|
|
53093
|
+
|
|
53094
|
+
|
|
53095
|
+
|
|
53096
|
+
|
|
53097
|
+
|
|
53098
|
+
|
|
53099
|
+
|
|
53100
|
+
|
|
53101
|
+
|
|
53102
|
+
|
|
53103
|
+
|
|
53104
|
+
|
|
53105
|
+
var CreatableSelect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
53106
|
+
var creatableProps = (0,_dist_useStateManager_7e1e8489_esm_js__WEBPACK_IMPORTED_MODULE_16__.u)(props);
|
|
53107
|
+
var selectProps = (0,_dist_useCreatable_9c489c71_esm_js__WEBPACK_IMPORTED_MODULE_2__.u)(creatableProps);
|
|
53108
|
+
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"])({
|
|
53109
|
+
ref: ref
|
|
53110
|
+
}, selectProps));
|
|
53111
|
+
});
|
|
53112
|
+
|
|
53113
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CreatableSelect);
|
|
53114
|
+
|
|
53115
|
+
|
|
53004
53116
|
/***/ }),
|
|
53005
53117
|
|
|
53006
53118
|
/***/ "./node_modules/react-select/dist/Select-457c486b.esm.js":
|
|
@@ -57129,6 +57241,124 @@ var NonceProvider = (function (_ref) {
|
|
|
57129
57241
|
|
|
57130
57242
|
|
|
57131
57243
|
|
|
57244
|
+
/***/ }),
|
|
57245
|
+
|
|
57246
|
+
/***/ "./node_modules/react-select/dist/useCreatable-9c489c71.esm.js":
|
|
57247
|
+
/*!*********************************************************************!*\
|
|
57248
|
+
!*** ./node_modules/react-select/dist/useCreatable-9c489c71.esm.js ***!
|
|
57249
|
+
\*********************************************************************/
|
|
57250
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
57251
|
+
|
|
57252
|
+
"use strict";
|
|
57253
|
+
__webpack_require__.r(__webpack_exports__);
|
|
57254
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
57255
|
+
/* harmony export */ "u": () => (/* binding */ useCreatable)
|
|
57256
|
+
/* harmony export */ });
|
|
57257
|
+
/* 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");
|
|
57258
|
+
/* 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");
|
|
57259
|
+
/* 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");
|
|
57260
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
57261
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
57262
|
+
/* 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");
|
|
57263
|
+
/* 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");
|
|
57264
|
+
|
|
57265
|
+
|
|
57266
|
+
|
|
57267
|
+
|
|
57268
|
+
|
|
57269
|
+
|
|
57270
|
+
|
|
57271
|
+
var _excluded = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
|
|
57272
|
+
var compareOption = function compareOption() {
|
|
57273
|
+
var inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
57274
|
+
var option = arguments.length > 1 ? arguments[1] : undefined;
|
|
57275
|
+
var accessors = arguments.length > 2 ? arguments[2] : undefined;
|
|
57276
|
+
var candidate = String(inputValue).toLowerCase();
|
|
57277
|
+
var optionValue = String(accessors.getOptionValue(option)).toLowerCase();
|
|
57278
|
+
var optionLabel = String(accessors.getOptionLabel(option)).toLowerCase();
|
|
57279
|
+
return optionValue === candidate || optionLabel === candidate;
|
|
57280
|
+
};
|
|
57281
|
+
var builtins = {
|
|
57282
|
+
formatCreateLabel: function formatCreateLabel(inputValue) {
|
|
57283
|
+
return "Create \"".concat(inputValue, "\"");
|
|
57284
|
+
},
|
|
57285
|
+
isValidNewOption: function isValidNewOption(inputValue, selectValue, selectOptions, accessors) {
|
|
57286
|
+
return !(!inputValue || selectValue.some(function (option) {
|
|
57287
|
+
return compareOption(inputValue, option, accessors);
|
|
57288
|
+
}) || selectOptions.some(function (option) {
|
|
57289
|
+
return compareOption(inputValue, option, accessors);
|
|
57290
|
+
}));
|
|
57291
|
+
},
|
|
57292
|
+
getNewOptionData: function getNewOptionData(inputValue, optionLabel) {
|
|
57293
|
+
return {
|
|
57294
|
+
label: optionLabel,
|
|
57295
|
+
value: inputValue,
|
|
57296
|
+
__isNew__: true
|
|
57297
|
+
};
|
|
57298
|
+
}
|
|
57299
|
+
};
|
|
57300
|
+
function useCreatable(_ref) {
|
|
57301
|
+
var _ref$allowCreateWhile = _ref.allowCreateWhileLoading,
|
|
57302
|
+
allowCreateWhileLoading = _ref$allowCreateWhile === void 0 ? false : _ref$allowCreateWhile,
|
|
57303
|
+
_ref$createOptionPosi = _ref.createOptionPosition,
|
|
57304
|
+
createOptionPosition = _ref$createOptionPosi === void 0 ? 'last' : _ref$createOptionPosi,
|
|
57305
|
+
_ref$formatCreateLabe = _ref.formatCreateLabel,
|
|
57306
|
+
formatCreateLabel = _ref$formatCreateLabe === void 0 ? builtins.formatCreateLabel : _ref$formatCreateLabe,
|
|
57307
|
+
_ref$isValidNewOption = _ref.isValidNewOption,
|
|
57308
|
+
isValidNewOption = _ref$isValidNewOption === void 0 ? builtins.isValidNewOption : _ref$isValidNewOption,
|
|
57309
|
+
_ref$getNewOptionData = _ref.getNewOptionData,
|
|
57310
|
+
getNewOptionData = _ref$getNewOptionData === void 0 ? builtins.getNewOptionData : _ref$getNewOptionData,
|
|
57311
|
+
onCreateOption = _ref.onCreateOption,
|
|
57312
|
+
_ref$options = _ref.options,
|
|
57313
|
+
propsOptions = _ref$options === void 0 ? [] : _ref$options,
|
|
57314
|
+
propsOnChange = _ref.onChange,
|
|
57315
|
+
restSelectProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref, _excluded);
|
|
57316
|
+
var _restSelectProps$getO = restSelectProps.getOptionValue,
|
|
57317
|
+
getOptionValue$1 = _restSelectProps$getO === void 0 ? _Select_457c486b_esm_js__WEBPACK_IMPORTED_MODULE_4__.g : _restSelectProps$getO,
|
|
57318
|
+
_restSelectProps$getO2 = restSelectProps.getOptionLabel,
|
|
57319
|
+
getOptionLabel$1 = _restSelectProps$getO2 === void 0 ? _Select_457c486b_esm_js__WEBPACK_IMPORTED_MODULE_4__.b : _restSelectProps$getO2,
|
|
57320
|
+
inputValue = restSelectProps.inputValue,
|
|
57321
|
+
isLoading = restSelectProps.isLoading,
|
|
57322
|
+
isMulti = restSelectProps.isMulti,
|
|
57323
|
+
value = restSelectProps.value,
|
|
57324
|
+
name = restSelectProps.name;
|
|
57325
|
+
var newOption = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
|
|
57326
|
+
return isValidNewOption(inputValue, (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_5__.I)(value), propsOptions, {
|
|
57327
|
+
getOptionValue: getOptionValue$1,
|
|
57328
|
+
getOptionLabel: getOptionLabel$1
|
|
57329
|
+
}) ? getNewOptionData(inputValue, formatCreateLabel(inputValue)) : undefined;
|
|
57330
|
+
}, [formatCreateLabel, getNewOptionData, getOptionLabel$1, getOptionValue$1, inputValue, isValidNewOption, propsOptions, value]);
|
|
57331
|
+
var options = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {
|
|
57332
|
+
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;
|
|
57333
|
+
}, [allowCreateWhileLoading, createOptionPosition, isLoading, newOption, propsOptions]);
|
|
57334
|
+
var onChange = (0,react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function (newValue, actionMeta) {
|
|
57335
|
+
if (actionMeta.action !== 'select-option') {
|
|
57336
|
+
return propsOnChange(newValue, actionMeta);
|
|
57337
|
+
}
|
|
57338
|
+
var valueArray = Array.isArray(newValue) ? newValue : [newValue];
|
|
57339
|
+
if (valueArray[valueArray.length - 1] === newOption) {
|
|
57340
|
+
if (onCreateOption) onCreateOption(inputValue);else {
|
|
57341
|
+
var newOptionData = getNewOptionData(inputValue, inputValue);
|
|
57342
|
+
var newActionMeta = {
|
|
57343
|
+
action: 'create-option',
|
|
57344
|
+
name: name,
|
|
57345
|
+
option: newOptionData
|
|
57346
|
+
};
|
|
57347
|
+
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);
|
|
57348
|
+
}
|
|
57349
|
+
return;
|
|
57350
|
+
}
|
|
57351
|
+
propsOnChange(newValue, actionMeta);
|
|
57352
|
+
}, [getNewOptionData, inputValue, isMulti, name, newOption, onCreateOption, propsOnChange, value]);
|
|
57353
|
+
return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, restSelectProps), {}, {
|
|
57354
|
+
options: options,
|
|
57355
|
+
onChange: onChange
|
|
57356
|
+
});
|
|
57357
|
+
}
|
|
57358
|
+
|
|
57359
|
+
|
|
57360
|
+
|
|
57361
|
+
|
|
57132
57362
|
/***/ }),
|
|
57133
57363
|
|
|
57134
57364
|
/***/ "./node_modules/react-select/dist/useStateManager-7e1e8489.esm.js":
|