@luminati-io/uikit 1.9.8 → 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 +341 -114
- 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
|
}
|
|
@@ -25952,12 +25957,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25952
25957
|
var MODAL_WIDTHS = {
|
|
25953
25958
|
sm: '360px',
|
|
25954
25959
|
md: '500px',
|
|
25955
|
-
lg: '800px'
|
|
25960
|
+
lg: '800px',
|
|
25961
|
+
full: '90vw'
|
|
25956
25962
|
};
|
|
25957
25963
|
var StyledWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_3__.Box).withConfig({
|
|
25958
25964
|
displayName: "StyledWrapper",
|
|
25959
25965
|
componentId: "sc-1nggvo0-0"
|
|
25960
|
-
})(["background-color:", ";border-radius:", ";display:grid;grid-tempalte-rows:1fr auto 1fr;font-family:", ";min-width:200px;max-width:", ";width:", ";"], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing["02"], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].font_family.sans, MODAL_WIDTHS.
|
|
25966
|
+
})(["background-color:", ";border-radius:", ";display:grid;grid-tempalte-rows:1fr auto 1fr;font-family:", ";min-width:200px;max-width:", ";width:", ";"], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing["02"], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].font_family.sans, MODAL_WIDTHS.full, function (props) {
|
|
25961
25967
|
return MODAL_WIDTHS[props.size];
|
|
25962
25968
|
});
|
|
25963
25969
|
var StyledHeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex).attrs({
|
|
@@ -25998,7 +26004,7 @@ var ModalBase = function ModalBase(props) {
|
|
|
25998
26004
|
}, header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledHeaderWrapper, null, header), content && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledContentWrapper, null, content), footer && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledFooterWrapper, null, footer));
|
|
25999
26005
|
};
|
|
26000
26006
|
ModalBase.propTypes = {
|
|
26001
|
-
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg']),
|
|
26007
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg', 'full']),
|
|
26002
26008
|
shadow: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['none', 'sm', 'md', 'lg']),
|
|
26003
26009
|
header: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
|
26004
26010
|
content: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
|
@@ -26125,7 +26131,7 @@ General.propTypes = {
|
|
|
26125
26131
|
cancelLabel: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
26126
26132
|
okDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
26127
26133
|
cancelDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
26128
|
-
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
|
|
26134
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg', 'full']),
|
|
26129
26135
|
shadow: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['none', 'sm', 'md', 'lg'])
|
|
26130
26136
|
};
|
|
26131
26137
|
var Popup = (0,_with_backdrop__WEBPACK_IMPORTED_MODULE_4__["default"])(General);
|
|
@@ -26551,7 +26557,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26551
26557
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
|
26552
26558
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
|
26553
26559
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
|
26554
|
-
/* 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");
|
|
26555
26562
|
// LICENSE_CODE ZON
|
|
26556
26563
|
|
|
26557
26564
|
|
|
@@ -26563,22 +26570,32 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
26563
26570
|
|
|
26564
26571
|
|
|
26565
26572
|
|
|
26573
|
+
|
|
26566
26574
|
var assign = Object.assign;
|
|
26567
26575
|
var Cell = function Cell(props) {
|
|
26568
|
-
var
|
|
26576
|
+
var classNamePrefix = props.classNamePrefix,
|
|
26569
26577
|
rowDensity = props.rowDensity,
|
|
26570
26578
|
isLastRow = props.isLastRow,
|
|
26571
|
-
|
|
26572
|
-
|
|
26573
|
-
|
|
26574
|
-
|
|
26575
|
-
|
|
26579
|
+
cell = props.cell;
|
|
26580
|
+
var row = cell.row,
|
|
26581
|
+
column = cell.column,
|
|
26582
|
+
isEditing = cell.isEditing;
|
|
26583
|
+
var rowId = row.id;
|
|
26576
26584
|
var columnId = column.id,
|
|
26577
26585
|
_column$type = column.type,
|
|
26578
26586
|
type = _column$type === void 0 ? 'string' : _column$type,
|
|
26579
|
-
canEdit = column.canEdit
|
|
26580
|
-
|
|
26581
|
-
|
|
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;
|
|
26582
26599
|
var startEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
|
26583
26600
|
columnStartEditing(columnId, rowId);
|
|
26584
26601
|
}, [columnStartEditing, columnId, rowId]);
|
|
@@ -26592,17 +26609,15 @@ var Cell = function Cell(props) {
|
|
|
26592
26609
|
isEditing: isEditing
|
|
26593
26610
|
}, {
|
|
26594
26611
|
border: isLastRow ? null : 'bottom'
|
|
26595
|
-
},
|
|
26612
|
+
}, cell.getCellProps([getColumnProps(column), getCellProps(cell)]), canEdit ? {
|
|
26596
26613
|
onClick: function onClick(e) {
|
|
26597
26614
|
e.stopPropagation();
|
|
26598
26615
|
startEditing();
|
|
26599
26616
|
}
|
|
26600
26617
|
} : undefined);
|
|
26601
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledCell, _extends({
|
|
26602
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(
|
|
26603
|
-
|
|
26604
|
-
}, className)
|
|
26605
|
-
}, 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', {
|
|
26606
26621
|
row: row,
|
|
26607
26622
|
isEditing: isEditing,
|
|
26608
26623
|
startEditing: startEditing,
|
|
@@ -26615,7 +26630,7 @@ var StyledCell = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.wi
|
|
|
26615
26630
|
componentId: "sc-b034il-0"
|
|
26616
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) {
|
|
26617
26632
|
return props.type == 'number' ? 'text-align: right;' : null;
|
|
26618
|
-
}, _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) {
|
|
26619
26634
|
if (props.border == 'top') return "border-top-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
|
|
26620
26635
|
if (props.border == 'bottom') return "border-bottom-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
|
|
26621
26636
|
}, function (props) {
|
|
@@ -26672,7 +26687,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26672
26687
|
|
|
26673
26688
|
/*jslint react:true*/
|
|
26674
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); }
|
|
26675
|
-
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"];
|
|
26676
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; }
|
|
26677
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; }
|
|
26678
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; }
|
|
@@ -26700,6 +26715,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
26700
26715
|
|
|
26701
26716
|
|
|
26702
26717
|
var assign = Object.assign;
|
|
26718
|
+
var defaultPropGetter = function defaultPropGetter() {
|
|
26719
|
+
return {};
|
|
26720
|
+
};
|
|
26703
26721
|
var TableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createContext({});
|
|
26704
26722
|
TableContext.displayName = 'TableContext';
|
|
26705
26723
|
var Cell = function Cell(props) {
|
|
@@ -26736,6 +26754,16 @@ var Provider = function Provider(props) {
|
|
|
26736
26754
|
_props$manualPaginati = props.manualPagination,
|
|
26737
26755
|
manualPagination = _props$manualPaginati === void 0 ? false : _props$manualPaginati,
|
|
26738
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,
|
|
26739
26767
|
rest = _objectWithoutProperties(props, _excluded);
|
|
26740
26768
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0),
|
|
26741
26769
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -26761,7 +26789,12 @@ var Provider = function Provider(props) {
|
|
|
26761
26789
|
manualPagination: manualPagination,
|
|
26762
26790
|
pageCount: pageCount,
|
|
26763
26791
|
totalCount: totalCount,
|
|
26764
|
-
isLoading: isLoading
|
|
26792
|
+
isLoading: isLoading,
|
|
26793
|
+
getHeaderProps: getHeaderProps,
|
|
26794
|
+
getColumnProps: getColumnProps,
|
|
26795
|
+
getRowProps: getRowProps,
|
|
26796
|
+
getCellProps: getCellProps,
|
|
26797
|
+
getFooterProps: getFooterProps
|
|
26765
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)));
|
|
26766
26799
|
var _table$state = table.state,
|
|
26767
26800
|
pageIndex = _table$state.pageIndex,
|
|
@@ -26791,9 +26824,9 @@ Provider.propTypes = {
|
|
|
26791
26824
|
id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired),
|
|
26792
26825
|
accessor: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
26793
26826
|
type: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['string', 'number']),
|
|
26794
|
-
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,
|
|
26795
26828
|
Cell: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26796
|
-
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)]),
|
|
26797
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)]),
|
|
26798
26831
|
on_sort: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26799
26832
|
disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
@@ -26821,9 +26854,12 @@ Provider.propTypes = {
|
|
|
26821
26854
|
disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
26822
26855
|
disableEditing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
26823
26856
|
onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
26824
|
-
|
|
26825
|
-
|
|
26826
|
-
|
|
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)
|
|
26827
26863
|
};
|
|
26828
26864
|
var calcPageCount = function calcPageCount(totalCount, pageSize) {
|
|
26829
26865
|
return Math.ceil(totalCount / pageSize);
|
|
@@ -27260,15 +27296,19 @@ var FooterCell = function FooterCell(props) {
|
|
|
27260
27296
|
var _column$type = column.type,
|
|
27261
27297
|
type = _column$type === void 0 ? 'string' : _column$type,
|
|
27262
27298
|
classNamePrefix = column.classNamePrefix;
|
|
27263
|
-
|
|
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, {
|
|
27264
27304
|
type: type,
|
|
27265
27305
|
role: "cell",
|
|
27266
27306
|
rowDensity: rowDensity,
|
|
27267
27307
|
border: "top",
|
|
27268
27308
|
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(classNamePrefix, {
|
|
27269
27309
|
footer: true
|
|
27270
|
-
}, className)
|
|
27271
|
-
}
|
|
27310
|
+
}, className, footerProps.className)
|
|
27311
|
+
}), column.render('Footer'));
|
|
27272
27312
|
};
|
|
27273
27313
|
FooterCell.displayName = 'FooterCell';
|
|
27274
27314
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TableFooter);
|
|
@@ -27376,10 +27416,11 @@ var HeaderCell = function HeaderCell(props) {
|
|
|
27376
27416
|
name = header.name,
|
|
27377
27417
|
on_sort = header.on_sort,
|
|
27378
27418
|
isResizing = header.isResizing,
|
|
27379
|
-
getHeaderProps = header.getHeaderProps,
|
|
27380
27419
|
getResizerProps = header.getResizerProps,
|
|
27381
27420
|
classNamePrefix = header.classNamePrefix;
|
|
27382
27421
|
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
|
27422
|
+
getColumnProps = _useTableContext2.getColumnProps,
|
|
27423
|
+
getHeaderProps = _useTableContext2.getHeaderProps,
|
|
27383
27424
|
columnsSort = _useTableContext2.columnsSort,
|
|
27384
27425
|
fullWidth = _useTableContext2.fullWidth;
|
|
27385
27426
|
var sort = columnsSort[id];
|
|
@@ -27399,11 +27440,11 @@ var HeaderCell = function HeaderCell(props) {
|
|
|
27399
27440
|
hovered = _useState2[0],
|
|
27400
27441
|
setHovered = _useState2[1];
|
|
27401
27442
|
var iconVisible = canSort && (['asc', 'desc'].includes(sort) || hovered);
|
|
27402
|
-
|
|
27443
|
+
var headerCellProps = header.getHeaderProps([getColumnProps(header), getHeaderProps(header)]);
|
|
27444
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(HeaderCellContent, _extends({}, headerCellProps, {
|
|
27403
27445
|
className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
|
|
27404
27446
|
header: true
|
|
27405
|
-
}, className)
|
|
27406
|
-
}, getHeaderProps(), {
|
|
27447
|
+
}, className, headerCellProps.className),
|
|
27407
27448
|
onMouseOver: function onMouseOver() {
|
|
27408
27449
|
return setHovered(true);
|
|
27409
27450
|
},
|
|
@@ -28212,8 +28253,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28212
28253
|
|
|
28213
28254
|
|
|
28214
28255
|
/*jslint react:true*/
|
|
28215
|
-
var _excluded = ["
|
|
28216
|
-
_excluded2 = ["key"];
|
|
28256
|
+
var _excluded = ["key"];
|
|
28217
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); }
|
|
28218
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; }
|
|
28219
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; }
|
|
@@ -28225,31 +28265,33 @@ var renderRow = function renderRow(opt) {
|
|
|
28225
28265
|
var classNamePrefix = opt.classNamePrefix,
|
|
28226
28266
|
row = opt.row,
|
|
28227
28267
|
onRowClick = opt.onRowClick,
|
|
28228
|
-
|
|
28229
|
-
|
|
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)),
|
|
28230
28272
|
key = _row$getRowProps.key,
|
|
28231
|
-
rowProps = _objectWithoutProperties(_row$getRowProps,
|
|
28273
|
+
rowProps = _objectWithoutProperties(_row$getRowProps, _excluded);
|
|
28232
28274
|
var onClick = onRowClick ? function (evt) {
|
|
28233
28275
|
return onRowClick(row.original, evt);
|
|
28234
28276
|
} : undefined;
|
|
28235
28277
|
var cursor = onRowClick ? 'pointer' : undefined;
|
|
28236
28278
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_table_row__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
|
|
28237
|
-
key: key
|
|
28238
|
-
onClick: onClick,
|
|
28239
|
-
cursor: cursor
|
|
28279
|
+
key: key
|
|
28240
28280
|
}, rowProps, {
|
|
28281
|
+
onClick: onClick,
|
|
28282
|
+
cursor: cursor,
|
|
28241
28283
|
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(classNamePrefix, {
|
|
28242
28284
|
tableRow: true,
|
|
28243
28285
|
'tableRow--is-pinned': row.isPinned
|
|
28244
|
-
})
|
|
28286
|
+
}, rowProps.className)
|
|
28245
28287
|
}), row.cells.map(function (cell) {
|
|
28246
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
28247
|
-
key: cell.getCellProps().key
|
|
28248
|
-
|
|
28249
|
-
|
|
28250
|
-
|
|
28251
|
-
|
|
28252
|
-
})
|
|
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
|
+
});
|
|
28253
28295
|
}));
|
|
28254
28296
|
};
|
|
28255
28297
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (renderRow);
|
|
@@ -28634,11 +28676,10 @@ var Table = function Table(props) {
|
|
|
28634
28676
|
page = _useTableContext.page,
|
|
28635
28677
|
_useTableContext$pinn = _useTableContext.pinnedRows,
|
|
28636
28678
|
pinnedRows = _useTableContext$pinn === void 0 ? [] : _useTableContext$pinn,
|
|
28637
|
-
columnStartEditing = _useTableContext.columnStartEditing,
|
|
28638
|
-
columnDoneEditing = _useTableContext.columnDoneEditing,
|
|
28639
28679
|
NoDataComp = _useTableContext.NoDataComp,
|
|
28640
28680
|
LoadingComp = _useTableContext.LoadingComp,
|
|
28641
|
-
isLoading = _useTableContext.isLoading
|
|
28681
|
+
isLoading = _useTableContext.isLoading,
|
|
28682
|
+
getRowProps = _useTableContext.getRowProps;
|
|
28642
28683
|
var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
|
28643
28684
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(0),
|
|
28644
28685
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -28675,12 +28716,11 @@ var Table = function Table(props) {
|
|
|
28675
28716
|
if (row.isPinned) return null;
|
|
28676
28717
|
return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
|
|
28677
28718
|
row: row,
|
|
28678
|
-
columnStartEditing: columnStartEditing,
|
|
28679
|
-
columnDoneEditing: columnDoneEditing,
|
|
28680
28719
|
rowDensity: rowDensity,
|
|
28681
28720
|
onRowClick: onRowClick,
|
|
28682
28721
|
isLastRow: i == arr.length - 1,
|
|
28683
|
-
classNamePrefix: classNamePrefix
|
|
28722
|
+
classNamePrefix: classNamePrefix,
|
|
28723
|
+
getRowProps: getRowProps
|
|
28684
28724
|
});
|
|
28685
28725
|
});
|
|
28686
28726
|
}();
|
|
@@ -28707,11 +28747,10 @@ var Table = function Table(props) {
|
|
|
28707
28747
|
prepareRow(row);
|
|
28708
28748
|
return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__["default"])({
|
|
28709
28749
|
row: row,
|
|
28710
|
-
columnStartEditing: columnStartEditing,
|
|
28711
|
-
columnDoneEditing: columnDoneEditing,
|
|
28712
28750
|
rowDensity: rowDensity,
|
|
28713
28751
|
onRowClick: onRowClick,
|
|
28714
|
-
classNamePrefix: classNamePrefix
|
|
28752
|
+
classNamePrefix: classNamePrefix,
|
|
28753
|
+
getRowProps: getRowProps
|
|
28715
28754
|
});
|
|
28716
28755
|
}), body), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
28717
28756
|
rowDensity: rowDensity,
|
|
@@ -53000,6 +53039,76 @@ var fromEntries = function fromEntries(entries) {
|
|
|
53000
53039
|
|
|
53001
53040
|
var useIsomorphicLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
|
|
53002
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
|
+
|
|
53003
53112
|
/***/ }),
|
|
53004
53113
|
|
|
53005
53114
|
/***/ "./node_modules/react-select/dist/Select-457c486b.esm.js":
|
|
@@ -57128,6 +57237,124 @@ var NonceProvider = (function (_ref) {
|
|
|
57128
57237
|
|
|
57129
57238
|
|
|
57130
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
|
+
|
|
57131
57358
|
/***/ }),
|
|
57132
57359
|
|
|
57133
57360
|
/***/ "./node_modules/react-select/dist/useStateManager-7e1e8489.esm.js":
|