@luminati-io/uikit 3.3.6 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -32954,7 +32954,7 @@ var BadgeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_lay
|
|
32954
32954
|
"use strict";
|
32955
32955
|
__webpack_require__.r(__webpack_exports__);
|
32956
32956
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
32957
|
-
/* harmony export */
|
32957
|
+
/* harmony export */ Button: () => (/* binding */ Button)
|
32958
32958
|
/* harmony export */ });
|
32959
32959
|
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
|
32960
32960
|
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -33048,7 +33048,6 @@ var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().butt
|
|
33048
33048
|
}, function (props) {
|
33049
33049
|
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toButtonSize)(props.$size);
|
33050
33050
|
});
|
33051
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Button);
|
33052
33051
|
|
33053
33052
|
/***/ }),
|
33054
33053
|
|
@@ -33061,7 +33060,7 @@ var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_3___default().butt
|
|
33061
33060
|
"use strict";
|
33062
33061
|
__webpack_require__.r(__webpack_exports__);
|
33063
33062
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
33064
|
-
/* harmony export */
|
33063
|
+
/* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_0__.Button)
|
33065
33064
|
/* harmony export */ });
|
33066
33065
|
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./button */ "./src/button/button.js");
|
33067
33066
|
// LICENSE_CODE ZON
|
@@ -33069,7 +33068,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
33069
33068
|
|
33070
33069
|
/*jslint react:true*/
|
33071
33070
|
|
33072
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_button__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
33073
33071
|
|
33074
33072
|
/***/ }),
|
33075
33073
|
|
@@ -35824,57 +35822,57 @@ var Z_INDEX = {
|
|
35824
35822
|
__webpack_require__.r(__webpack_exports__);
|
35825
35823
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
35826
35824
|
/* harmony export */ Badge: () => (/* reexport safe */ _badge__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
35827
|
-
/* harmony export */ Button: () => (/* reexport safe */
|
35828
|
-
/* harmony export */ Chart: () => (/* reexport safe */
|
35829
|
-
/* harmony export */ ClickableTag: () => (/* reexport safe */
|
35830
|
-
/* harmony export */ Code: () => (/* reexport safe */
|
35831
|
-
/* harmony export */ CodeBlock: () => (/* reexport safe */
|
35832
|
-
/* harmony export */ CodeSnippet: () => (/* reexport safe */
|
35833
|
-
/* harmony export */ ComboButton: () => (/* reexport safe */
|
35834
|
-
/* harmony export */ Icon: () => (/* reexport safe */
|
35835
|
-
/* harmony export */ IconButton: () => (/* reexport safe */
|
35836
|
-
/* harmony export */ InfoChip: () => (/* reexport safe */
|
35837
|
-
/* harmony export */ Input: () => (/* reexport module object */
|
35838
|
-
/* harmony export */ Layout: () => (/* reexport module object */
|
35839
|
-
/* harmony export */ Link: () => (/* reexport safe */
|
35840
|
-
/* harmony export */ Menu: () => (/* reexport safe */
|
35841
|
-
/* harmony export */ Modal: () => (/* reexport module object */
|
35842
|
-
/* harmony export */ Progress: () => (/* reexport safe */
|
35843
|
-
/* harmony export */ ProgressBar: () => (/* reexport safe */
|
35844
|
-
/* harmony export */ RemovableTag: () => (/* reexport safe */
|
35845
|
-
/* harmony export */ Snackbar: () => (/* reexport safe */
|
35846
|
-
/* harmony export */ Tab: () => (/* reexport safe */
|
35847
|
-
/* harmony export */ Table: () => (/* reexport safe */
|
35848
|
-
/* harmony export */ TagGroup: () => (/* reexport safe */
|
35825
|
+
/* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_13__.Button),
|
35826
|
+
/* harmony export */ Chart: () => (/* reexport safe */ _chart__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
35827
|
+
/* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.ClickableTag),
|
35828
|
+
/* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_14__.Code),
|
35829
|
+
/* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_14__.CodeBlock),
|
35830
|
+
/* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_14__.CodeSnippet),
|
35831
|
+
/* harmony export */ ComboButton: () => (/* reexport safe */ _combo_button__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
35832
|
+
/* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_20__.Icon),
|
35833
|
+
/* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_21__.IconButton),
|
35834
|
+
/* harmony export */ InfoChip: () => (/* reexport safe */ _infochip__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
35835
|
+
/* harmony export */ Input: () => (/* reexport module object */ _input__WEBPACK_IMPORTED_MODULE_4__),
|
35836
|
+
/* harmony export */ Layout: () => (/* reexport module object */ _layout__WEBPACK_IMPORTED_MODULE_5__),
|
35837
|
+
/* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_16__.Link),
|
35838
|
+
/* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
35839
|
+
/* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_7__),
|
35840
|
+
/* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_17__.Progress),
|
35841
|
+
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_17__.ProgressBar),
|
35842
|
+
/* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.RemovableTag),
|
35843
|
+
/* harmony export */ Snackbar: () => (/* reexport safe */ _snackbar__WEBPACK_IMPORTED_MODULE_18__.Snackbar),
|
35844
|
+
/* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
35845
|
+
/* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
35846
|
+
/* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.TagGroup),
|
35849
35847
|
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_22__.Tooltip),
|
35850
|
-
/* harmony export */ Typography: () => (/* reexport module object */
|
35851
|
-
/* harmony export */ theme: () => (/* reexport safe */
|
35852
|
-
/* harmony export */ translation: () => (/* reexport safe */
|
35853
|
-
/* harmony export */ withPopover: () => (/* reexport safe */
|
35848
|
+
/* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_12__),
|
35849
|
+
/* harmony export */ theme: () => (/* reexport safe */ _theme__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
35850
|
+
/* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
35851
|
+
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_15__.withPopover),
|
35854
35852
|
/* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_22__.withTooltip)
|
35855
35853
|
/* harmony export */ });
|
35856
35854
|
/* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./badge */ "./src/badge.js");
|
35857
|
-
/* harmony import */ var
|
35858
|
-
/* harmony import */ var
|
35859
|
-
/* harmony import */ var
|
35860
|
-
/* harmony import */ var
|
35861
|
-
/* harmony import */ var
|
35862
|
-
/* harmony import */ var
|
35863
|
-
/* harmony import */ var
|
35864
|
-
/* harmony import */ var
|
35865
|
-
/* harmony import */ var
|
35866
|
-
/* harmony import */ var
|
35867
|
-
/* harmony import */ var
|
35868
|
-
/* harmony import */ var
|
35869
|
-
/* harmony import */ var
|
35870
|
-
/* harmony import */ var
|
35871
|
-
/* harmony import */ var
|
35872
|
-
/* harmony import */ var
|
35873
|
-
/* harmony import */ var
|
35874
|
-
/* harmony import */ var
|
35875
|
-
/* harmony import */ var
|
35876
|
-
/* harmony import */ var
|
35877
|
-
/* harmony import */ var
|
35855
|
+
/* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chart */ "./src/chart/index.js");
|
35856
|
+
/* harmony import */ var _combo_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./combo_button */ "./src/combo_button/index.js");
|
35857
|
+
/* harmony import */ var _infochip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./infochip */ "./src/infochip.js");
|
35858
|
+
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./input */ "./src/input/index.js");
|
35859
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
|
35860
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./menu */ "./src/menu/index.js");
|
35861
|
+
/* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./modal */ "./src/modal/index.js");
|
35862
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./table */ "./src/table/index.js");
|
35863
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
35864
|
+
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./translation */ "./src/translation.js");
|
35865
|
+
/* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
|
35866
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
|
35867
|
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./button */ "./src/button/index.js");
|
35868
|
+
/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
|
35869
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
|
35870
|
+
/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./link */ "./src/link/index.js");
|
35871
|
+
/* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
|
35872
|
+
/* harmony import */ var _snackbar__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./snackbar */ "./src/snackbar/index.js");
|
35873
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
|
35874
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./icon */ "./src/icon.js");
|
35875
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./icon_button */ "./src/icon_button.js");
|
35878
35876
|
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./tooltip */ "./src/tooltip.js");
|
35879
35877
|
// LICENSE_CODE ZON
|
35880
35878
|
|
@@ -36543,7 +36541,7 @@ var StyledSvg = styled_components__WEBPACK_IMPORTED_MODULE_1___default().svg.wit
|
|
36543
36541
|
"use strict";
|
36544
36542
|
__webpack_require__.r(__webpack_exports__);
|
36545
36543
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
36546
|
-
/* harmony export */
|
36544
|
+
/* harmony export */ IconButton: () => (/* binding */ IconButton)
|
36547
36545
|
/* harmony export */ });
|
36548
36546
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
36549
36547
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -36664,7 +36662,6 @@ var calcSize = function calcSize(variant, size) {
|
|
36664
36662
|
if (!variant) return size;
|
36665
36663
|
return variant == 'icon-button' ? 'md' : 'xs';
|
36666
36664
|
};
|
36667
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (IconButton);
|
36668
36665
|
|
36669
36666
|
/***/ }),
|
36670
36667
|
|
@@ -36970,7 +36967,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
36970
36967
|
/*jslint react:true*/
|
36971
36968
|
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); }
|
36972
36969
|
|
36973
|
-
var _excluded = ["id", "styles", "size", "async", "creatable", "isOptionDisabled", "className", "label", "labelIcon", "required", "invalid", "helperText", "placeholder", "disabled"];
|
36970
|
+
var _excluded = ["id", "styles", "size", "async", "creatable", "isOptionDisabled", "className", "label", "labelIcon", "required", "necessityIndicator", "invalid", "helperText", "placeholder", "disabled"];
|
36974
36971
|
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); }
|
36975
36972
|
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; }
|
36976
36973
|
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; }
|
@@ -37003,6 +37000,7 @@ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().for
|
|
37003
37000
|
label = props.label,
|
37004
37001
|
labelIcon = props.labelIcon,
|
37005
37002
|
required = props.required,
|
37003
|
+
necessityIndicator = props.necessityIndicator,
|
37006
37004
|
invalid = props.invalid,
|
37007
37005
|
helperText = props.helperText,
|
37008
37006
|
placeholder = props.placeholder,
|
@@ -37035,7 +37033,8 @@ var CheckboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().for
|
|
37035
37033
|
id: labelId,
|
37036
37034
|
label: label,
|
37037
37035
|
labelIcon: labelIcon,
|
37038
|
-
required: required
|
37036
|
+
required: required,
|
37037
|
+
necessityIndicator: necessityIndicator
|
37039
37038
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SelectComp, _extends({}, selectProps, {
|
37040
37039
|
id: id,
|
37041
37040
|
menuIsOpen: true,
|
@@ -37065,6 +37064,7 @@ CheckboxList.propTypes = {
|
|
37065
37064
|
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
37066
37065
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
37067
37066
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
37067
|
+
necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['asterisk', 'text']),
|
37068
37068
|
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
37069
37069
|
label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
37070
37070
|
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
@@ -37474,7 +37474,7 @@ var CompareToCalendar = function CompareToCalendar(props) {
|
|
37474
37474
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, {
|
37475
37475
|
align_items: "center",
|
37476
37476
|
gap: _theme__WEBPACK_IMPORTED_MODULE_7__["default"].spacing['04']
|
37477
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__
|
37477
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton, {
|
37478
37478
|
icon: "ChevronLeft",
|
37479
37479
|
variant: "ghost",
|
37480
37480
|
onClick: onBack
|
@@ -37484,7 +37484,7 @@ var CompareToCalendar = function CompareToCalendar(props) {
|
|
37484
37484
|
fixedWeeks: true,
|
37485
37485
|
selected: customDate,
|
37486
37486
|
onDayClick: setCustomDate
|
37487
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_button__WEBPACK_IMPORTED_MODULE_3__
|
37487
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_button__WEBPACK_IMPORTED_MODULE_3__.Button, {
|
37488
37488
|
variant: "primary",
|
37489
37489
|
text: "Apply",
|
37490
37490
|
disabled: !customDate,
|
@@ -37596,6 +37596,7 @@ DatePicker.propTypes = {
|
|
37596
37596
|
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
37597
37597
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37598
37598
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37599
|
+
necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['asterisk', 'text']),
|
37599
37600
|
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
37600
37601
|
leftInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
37601
37602
|
leftOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
@@ -37917,7 +37918,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
37917
37918
|
|
37918
37919
|
|
37919
37920
|
/*jslint react:true*/
|
37920
|
-
var _excluded = ["label", "labelIcon", "required", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "className", "classNamePrefix", "onChangeCapture", "menuPortalTarget", "filterOption", "formatOptionLabel", "menuPlacement", "hideSelectedOptions", "onInputChange", "getOptionValue", "getOptionLabel", "isOptionDisabled", "isOptionSelected", "async", "isLoading", "loadOptions", "defaultOptions", "cacheOptions", "onCreateOption", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "autoFocus", "blurInputOnSelect", "onMenuOpen", "onMenuClose", "searchable", "openMenuOnFocus", "menuIsOpen"];
|
37921
|
+
var _excluded = ["label", "labelIcon", "required", "necessityIndicator", "value", "defaultValue", "placeholder", "options", "onChange", "onFocus", "onBlur", "multiselect", "creatable", "clearable", "disabled", "invalid", "helperText", "className", "classNamePrefix", "onChangeCapture", "menuPortalTarget", "filterOption", "formatOptionLabel", "menuPlacement", "hideSelectedOptions", "onInputChange", "getOptionValue", "getOptionLabel", "isOptionDisabled", "isOptionSelected", "async", "isLoading", "loadOptions", "defaultOptions", "cacheOptions", "onCreateOption", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "autoFocus", "blurInputOnSelect", "onMenuOpen", "onMenuClose", "searchable", "openMenuOnFocus", "menuIsOpen"];
|
37921
37922
|
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); }
|
37922
37923
|
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; }
|
37923
37924
|
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; }
|
@@ -37938,6 +37939,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
37938
37939
|
var label = props.label,
|
37939
37940
|
labelIcon = props.labelIcon,
|
37940
37941
|
required = props.required,
|
37942
|
+
necessityIndicator = props.necessityIndicator,
|
37941
37943
|
value = props.value,
|
37942
37944
|
defaultValue = props.defaultValue,
|
37943
37945
|
placeholder = props.placeholder,
|
@@ -38007,7 +38009,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
38007
38009
|
id: labelId,
|
38008
38010
|
label: label,
|
38009
38011
|
labelIcon: labelIcon,
|
38010
|
-
required: required
|
38012
|
+
required: required,
|
38013
|
+
necessityIndicator: necessityIndicator
|
38011
38014
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SelectComp, {
|
38012
38015
|
autoFocus: autoFocus,
|
38013
38016
|
blurInputOnSelect: blurInputOnSelect,
|
@@ -38071,6 +38074,7 @@ Dropdown.propTypes = {
|
|
38071
38074
|
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
38072
38075
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
38073
38076
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
38077
|
+
necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['asterisk', 'text']),
|
38074
38078
|
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
38075
38079
|
label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
38076
38080
|
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
@@ -38648,28 +38652,30 @@ var isValueChild = function isValueChild(child) {
|
|
38648
38652
|
"use strict";
|
38649
38653
|
__webpack_require__.r(__webpack_exports__);
|
38650
38654
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
38651
|
-
/* harmony export */ Checkbox: () => (/* reexport safe */
|
38652
|
-
/* harmony export */ CheckboxList: () => (/* reexport safe */
|
38653
|
-
/* harmony export */ CompareTo: () => (/* reexport safe */
|
38654
|
-
/* harmony export */ DatePicker: () => (/* reexport safe */
|
38655
|
-
/* harmony export */ Dropdown: () => (/* reexport safe */
|
38656
|
-
/* harmony export */ Number: () => (/* reexport safe */
|
38657
|
-
/* harmony export */ RadioGroup: () => (/* reexport safe */
|
38658
|
-
/* harmony export */ StyledDayPicker: () => (/* reexport safe */
|
38659
|
-
/* harmony export */ Textarea: () => (/* reexport safe */
|
38660
|
-
/* harmony export */ Textbox: () => (/* reexport safe */
|
38661
|
-
/* harmony export */
|
38662
|
-
/* harmony export */
|
38663
|
-
/* harmony
|
38664
|
-
/* harmony import */ var
|
38665
|
-
/* harmony import */ var
|
38666
|
-
/* harmony import */ var
|
38667
|
-
/* harmony import */ var
|
38668
|
-
/* harmony import */ var
|
38669
|
-
/* harmony import */ var
|
38670
|
-
/* harmony import */ var
|
38671
|
-
/* harmony import */ var
|
38672
|
-
/* harmony import */ var
|
38655
|
+
/* harmony export */ Checkbox: () => (/* reexport safe */ _checkbox__WEBPACK_IMPORTED_MODULE_3__.Checkbox),
|
38656
|
+
/* harmony export */ CheckboxList: () => (/* reexport safe */ _checkbox_list__WEBPACK_IMPORTED_MODULE_0__.CheckboxList),
|
38657
|
+
/* harmony export */ CompareTo: () => (/* reexport safe */ _compare_to__WEBPACK_IMPORTED_MODULE_4__.CompareTo),
|
38658
|
+
/* harmony export */ DatePicker: () => (/* reexport safe */ _date_picker__WEBPACK_IMPORTED_MODULE_5__.DatePicker),
|
38659
|
+
/* harmony export */ Dropdown: () => (/* reexport safe */ _dropdown__WEBPACK_IMPORTED_MODULE_1__.Dropdown),
|
38660
|
+
/* harmony export */ Number: () => (/* reexport safe */ _number__WEBPACK_IMPORTED_MODULE_6__.Number),
|
38661
|
+
/* harmony export */ RadioGroup: () => (/* reexport safe */ _radio_group__WEBPACK_IMPORTED_MODULE_7__.RadioGroup),
|
38662
|
+
/* harmony export */ StyledDayPicker: () => (/* reexport safe */ _date_picker__WEBPACK_IMPORTED_MODULE_5__.StyledDayPicker),
|
38663
|
+
/* harmony export */ Textarea: () => (/* reexport safe */ _textarea__WEBPACK_IMPORTED_MODULE_8__.Textarea),
|
38664
|
+
/* harmony export */ Textbox: () => (/* reexport safe */ _textbox__WEBPACK_IMPORTED_MODULE_9__.Textbox),
|
38665
|
+
/* harmony export */ TextboxList: () => (/* reexport safe */ _textbox_list__WEBPACK_IMPORTED_MODULE_2__.TextboxList),
|
38666
|
+
/* harmony export */ Toggle: () => (/* reexport safe */ _toggle__WEBPACK_IMPORTED_MODULE_10__.Toggle)
|
38667
|
+
/* harmony export */ });
|
38668
|
+
/* harmony import */ var _checkbox_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./checkbox_list */ "./src/input/checkbox_list/index.js");
|
38669
|
+
/* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dropdown */ "./src/input/dropdown/index.js");
|
38670
|
+
/* harmony import */ var _textbox_list__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./textbox_list */ "./src/input/textbox_list/index.js");
|
38671
|
+
/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./checkbox */ "./src/input/checkbox.js");
|
38672
|
+
/* harmony import */ var _compare_to__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./compare_to */ "./src/input/compare_to.js");
|
38673
|
+
/* harmony import */ var _date_picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./date_picker */ "./src/input/date_picker.js");
|
38674
|
+
/* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./number */ "./src/input/number.js");
|
38675
|
+
/* harmony import */ var _radio_group__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./radio_group */ "./src/input/radio_group.js");
|
38676
|
+
/* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./textarea */ "./src/input/textarea.js");
|
38677
|
+
/* harmony import */ var _textbox__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./textbox */ "./src/input/textbox.js");
|
38678
|
+
/* harmony import */ var _toggle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./toggle */ "./src/input/toggle.js");
|
38673
38679
|
// LICENSE_CODE ZON
|
38674
38680
|
|
38675
38681
|
|
@@ -38685,6 +38691,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
38685
38691
|
|
38686
38692
|
|
38687
38693
|
|
38694
|
+
|
38688
38695
|
/***/ }),
|
38689
38696
|
|
38690
38697
|
/***/ "./src/input/number.js":
|
@@ -38783,6 +38790,7 @@ Number.propTypes = {
|
|
38783
38790
|
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
38784
38791
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
38785
38792
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
38793
|
+
necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['asterisk', 'text']),
|
38786
38794
|
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
38787
38795
|
leftInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
38788
38796
|
leftOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
@@ -38833,7 +38841,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
38833
38841
|
|
38834
38842
|
/*jslint react:true*/
|
38835
38843
|
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); }
|
38836
|
-
var _excluded = ["className", "classNamePrefix", "value", "onChange", "disabled", "options", "variant", "size", "label", "labelIcon", "helperText", "invalid", "required"],
|
38844
|
+
var _excluded = ["className", "classNamePrefix", "value", "onChange", "disabled", "options", "variant", "size", "label", "labelIcon", "helperText", "invalid", "required", "necessityIndicator"],
|
38837
38845
|
_excluded2 = ["classNamePrefix", "value", "checked", "onClick", "label", "disabled", "size", "tooltip", "verticalAlign"];
|
38838
38846
|
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); }
|
38839
38847
|
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; }
|
@@ -38866,6 +38874,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
38866
38874
|
helperText = props.helperText,
|
38867
38875
|
invalid = props.invalid,
|
38868
38876
|
required = props.required,
|
38877
|
+
necessityIndicator = props.necessityIndicator,
|
38869
38878
|
rest = _objectWithoutProperties(props, _excluded);
|
38870
38879
|
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useLabelId)(props.id);
|
38871
38880
|
var handleChange = function handleChange(val, opt, evt) {
|
@@ -38884,6 +38893,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
38884
38893
|
label: label,
|
38885
38894
|
labelIcon: labelIcon,
|
38886
38895
|
required: required,
|
38896
|
+
necessityIndicator: necessityIndicator,
|
38887
38897
|
variant: "lg"
|
38888
38898
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, _extends({
|
38889
38899
|
ref: ref,
|
@@ -38918,6 +38928,7 @@ RadioGroup.propTypes = {
|
|
38918
38928
|
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
38919
38929
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
38920
38930
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
38931
|
+
necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['asterisk', 'text']),
|
38921
38932
|
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
38922
38933
|
label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
38923
38934
|
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
@@ -39122,6 +39133,7 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
39122
39133
|
label = props.label,
|
39123
39134
|
labelIcon = props.labelIcon,
|
39124
39135
|
required = props.required,
|
39136
|
+
necessityIndicator = props.necessityIndicator,
|
39125
39137
|
autoresize = props.autoresize,
|
39126
39138
|
verticalAlign = props.verticalAlign,
|
39127
39139
|
innerWrapper = props.innerWrapper;
|
@@ -39160,7 +39172,8 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
39160
39172
|
id: labelId,
|
39161
39173
|
label: label,
|
39162
39174
|
labelIcon: labelIcon,
|
39163
|
-
required: required
|
39175
|
+
required: required,
|
39176
|
+
necessityIndicator: necessityIndicator
|
39164
39177
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputContentWrapper, {
|
39165
39178
|
$heightCalculationCallback: heightCalculationCallback
|
39166
39179
|
}, leftOuterContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LeftOuterContentWrapper, null, leftOuterContent), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputWrapper, {
|
@@ -39219,6 +39232,7 @@ var InputLabel = function InputLabel(props) {
|
|
39219
39232
|
label = props.label,
|
39220
39233
|
labelIcon = props.labelIcon,
|
39221
39234
|
required = props.required,
|
39235
|
+
necessityIndicator = props.necessityIndicator,
|
39222
39236
|
variant = props.variant;
|
39223
39237
|
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useReactTranslate)();
|
39224
39238
|
if (!label) return null;
|
@@ -39233,7 +39247,10 @@ var InputLabel = function InputLabel(props) {
|
|
39233
39247
|
id: id,
|
39234
39248
|
variant: variant,
|
39235
39249
|
color: "gray-11-50"
|
39236
|
-
}, t(label),
|
39250
|
+
}, t(label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(NecessityIndicator, {
|
39251
|
+
required: required,
|
39252
|
+
indicator: necessityIndicator
|
39253
|
+
})), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
39237
39254
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_9__.classNames)(classNamePrefix, {
|
39238
39255
|
labelIcon: true
|
39239
39256
|
}),
|
@@ -39243,10 +39260,14 @@ var InputLabel = function InputLabel(props) {
|
|
39243
39260
|
}));
|
39244
39261
|
};
|
39245
39262
|
InputLabel.displayName = 'InputLabel';
|
39263
|
+
InputLabel.defaultProps = {
|
39264
|
+
necessityIndicator: 'asterisk'
|
39265
|
+
};
|
39246
39266
|
InputLabel.propTypes = {
|
39247
39267
|
label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39248
39268
|
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
39249
39269
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
39270
|
+
necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['asterisk', 'text']),
|
39250
39271
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'lg'])
|
39251
39272
|
};
|
39252
39273
|
InputLabel.defaultProps = {
|
@@ -39256,32 +39277,43 @@ var LabelWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
39256
39277
|
displayName: "LabelWrapper",
|
39257
39278
|
componentId: "sc-r60v1b-1"
|
39258
39279
|
})(["display:flex;align-items:center;gap:", ";"], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].spacing['03']);
|
39259
|
-
var
|
39280
|
+
var NecessityIndicator = function NecessityIndicator(props) {
|
39281
|
+
var required = props.required,
|
39282
|
+
indicator = props.indicator;
|
39283
|
+
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_7__.useReactTranslate)();
|
39284
|
+
if (indicator == 'text') return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Indicator, null, t(required ? '(required)' : '(optional)'));
|
39285
|
+
return required ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Asterisk, null) : null;
|
39286
|
+
};
|
39287
|
+
var Indicator = styled_components__WEBPACK_IMPORTED_MODULE_2___default().span.withConfig({
|
39288
|
+
displayName: "Indicator",
|
39289
|
+
componentId: "sc-r60v1b-2"
|
39290
|
+
})(["color:", ";margin-left:", ";"], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_9, _theme__WEBPACK_IMPORTED_MODULE_6__["default"].spacing['02']);
|
39291
|
+
var Asterisk = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_8__.Label).attrs({
|
39260
39292
|
tag: 'span',
|
39261
39293
|
variant: 'xs',
|
39262
39294
|
color: 'red_11',
|
39263
39295
|
children: '*'
|
39264
39296
|
}).withConfig({
|
39265
|
-
displayName: "
|
39266
|
-
componentId: "sc-r60v1b-
|
39297
|
+
displayName: "Asterisk",
|
39298
|
+
componentId: "sc-r60v1b-3"
|
39267
39299
|
})(["margin-left:", ";"], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].spacing['02']);
|
39268
39300
|
var LeftOuterContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
39269
39301
|
displayName: "LeftOuterContentWrapper",
|
39270
|
-
componentId: "sc-r60v1b-
|
39302
|
+
componentId: "sc-r60v1b-4"
|
39271
39303
|
})(["border-top-left-radius:4px;border-bottom-left-radius:4px;overflow:hidden;height:100%;"]);
|
39272
39304
|
var RightOuterContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
39273
39305
|
displayName: "RightOuterContentWrapper",
|
39274
|
-
componentId: "sc-r60v1b-
|
39306
|
+
componentId: "sc-r60v1b-5"
|
39275
39307
|
})(["border-top-right-radius:4px;border-bottom-right-radius:4px;overflow:hidden;height:100%;"]);
|
39276
39308
|
var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex).withConfig({
|
39277
39309
|
displayName: "InputContentWrapper",
|
39278
|
-
componentId: "sc-r60v1b-
|
39310
|
+
componentId: "sc-r60v1b-6"
|
39279
39311
|
})(["", " border-radius:4px;"], function (props) {
|
39280
39312
|
return props.$heightCalculationCallback();
|
39281
39313
|
});
|
39282
39314
|
var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
39283
39315
|
displayName: "InputWrapper",
|
39284
|
-
componentId: "sc-r60v1b-
|
39316
|
+
componentId: "sc-r60v1b-7"
|
39285
39317
|
})(["width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";", " ", " ", ""], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].font_family.sans, inputVerticalPadding, inputHorizontalPadding, function (props) {
|
39286
39318
|
return props.$verticalAlign;
|
39287
39319
|
}, function (props) {
|
@@ -39421,6 +39453,7 @@ Textarea.propTypes = {
|
|
39421
39453
|
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
39422
39454
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
39423
39455
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
39456
|
+
necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['asterisk', 'text']),
|
39424
39457
|
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
39425
39458
|
leftInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39426
39459
|
leftOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
@@ -39495,6 +39528,7 @@ Textbox.propTypes = {
|
|
39495
39528
|
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
39496
39529
|
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
39497
39530
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
39531
|
+
necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['asterisk', 'text']),
|
39498
39532
|
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
39499
39533
|
leftInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
39500
39534
|
leftOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
@@ -39513,6 +39547,472 @@ Textbox.displayName = 'Textbox';
|
|
39513
39547
|
|
39514
39548
|
/***/ }),
|
39515
39549
|
|
39550
|
+
/***/ "./src/input/textbox_list/button_add_input.js":
|
39551
|
+
/*!****************************************************!*\
|
39552
|
+
!*** ./src/input/textbox_list/button_add_input.js ***!
|
39553
|
+
\****************************************************/
|
39554
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
39555
|
+
|
39556
|
+
"use strict";
|
39557
|
+
__webpack_require__.r(__webpack_exports__);
|
39558
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39559
|
+
/* harmony export */ ButtonAddInput: () => (/* binding */ ButtonAddInput)
|
39560
|
+
/* harmony export */ });
|
39561
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
39562
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
39563
|
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../button */ "./src/button/index.js");
|
39564
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
39565
|
+
/* harmony import */ var _textbox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../textbox */ "./src/input/textbox.js");
|
39566
|
+
// LICENSE_CODE ZON
|
39567
|
+
|
39568
|
+
|
39569
|
+
/*jslint node:true, react:true*/
|
39570
|
+
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); }
|
39571
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
39572
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
39573
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
39574
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
39575
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
39576
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
39577
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
39578
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
39579
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
39580
|
+
|
39581
|
+
|
39582
|
+
|
39583
|
+
|
39584
|
+
var ButtonAddInput = function ButtonAddInput(props) {
|
39585
|
+
var className = props.className,
|
39586
|
+
size = props.size,
|
39587
|
+
disabled = props.disabled,
|
39588
|
+
buttonText = props.buttonText,
|
39589
|
+
onButtonClick = props.onButtonClick,
|
39590
|
+
placeholder = props.placeholder,
|
39591
|
+
inputValue = props.inputValue,
|
39592
|
+
onInputValueChange = props.onInputValueChange,
|
39593
|
+
onInputFocus = props.onInputFocus,
|
39594
|
+
onInputBlur = props.onInputBlur,
|
39595
|
+
onInputKeyDown = props.onInputKeyDown,
|
39596
|
+
error = props.error,
|
39597
|
+
setError = props.setError;
|
39598
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
39599
|
+
_useState2 = _slicedToArray(_useState, 2),
|
39600
|
+
showInput = _useState2[0],
|
39601
|
+
setShowInput = _useState2[1];
|
39602
|
+
var handleBlur = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
39603
|
+
onInputBlur === null || onInputBlur === void 0 ? void 0 : onInputBlur(evt);
|
39604
|
+
if (inputValue) return;
|
39605
|
+
setShowInput(false);
|
39606
|
+
}, [inputValue, onInputBlur]);
|
39607
|
+
var handleButtonClick = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
39608
|
+
void _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
39609
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
39610
|
+
while (1) switch (_context.prev = _context.next) {
|
39611
|
+
case 0:
|
39612
|
+
_context.t0 = onButtonClick;
|
39613
|
+
if (!_context.t0) {
|
39614
|
+
_context.next = 6;
|
39615
|
+
break;
|
39616
|
+
}
|
39617
|
+
_context.next = 4;
|
39618
|
+
return onButtonClick(evt);
|
39619
|
+
case 4:
|
39620
|
+
_context.t1 = _context.sent;
|
39621
|
+
_context.t0 = _context.t1 === false;
|
39622
|
+
case 6:
|
39623
|
+
if (!_context.t0) {
|
39624
|
+
_context.next = 8;
|
39625
|
+
break;
|
39626
|
+
}
|
39627
|
+
return _context.abrupt("return");
|
39628
|
+
case 8:
|
39629
|
+
setError();
|
39630
|
+
setShowInput(true);
|
39631
|
+
case 10:
|
39632
|
+
case "end":
|
39633
|
+
return _context.stop();
|
39634
|
+
}
|
39635
|
+
}, _callee);
|
39636
|
+
}))();
|
39637
|
+
}, [onButtonClick]);
|
39638
|
+
if (showInput) {
|
39639
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_textbox__WEBPACK_IMPORTED_MODULE_3__.Textbox, {
|
39640
|
+
autofocus: true,
|
39641
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(className, {
|
39642
|
+
input: true
|
39643
|
+
}),
|
39644
|
+
size: size,
|
39645
|
+
value: inputValue,
|
39646
|
+
placeholder: placeholder,
|
39647
|
+
onFocus: onInputFocus,
|
39648
|
+
onBlur: handleBlur,
|
39649
|
+
onChange: onInputValueChange,
|
39650
|
+
inputProps: {
|
39651
|
+
onKeyDown: onInputKeyDown
|
39652
|
+
},
|
39653
|
+
error: error
|
39654
|
+
});
|
39655
|
+
}
|
39656
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_button__WEBPACK_IMPORTED_MODULE_1__.Button, {
|
39657
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(className, {
|
39658
|
+
button: true,
|
39659
|
+
'button--is-diabled': disabled
|
39660
|
+
}),
|
39661
|
+
variant: "white",
|
39662
|
+
icon: "Add",
|
39663
|
+
size: size,
|
39664
|
+
disabled: disabled,
|
39665
|
+
text: buttonText,
|
39666
|
+
onClick: handleButtonClick
|
39667
|
+
});
|
39668
|
+
};
|
39669
|
+
|
39670
|
+
/***/ }),
|
39671
|
+
|
39672
|
+
/***/ "./src/input/textbox_list/index.js":
|
39673
|
+
/*!*****************************************!*\
|
39674
|
+
!*** ./src/input/textbox_list/index.js ***!
|
39675
|
+
\*****************************************/
|
39676
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
39677
|
+
|
39678
|
+
"use strict";
|
39679
|
+
__webpack_require__.r(__webpack_exports__);
|
39680
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39681
|
+
/* harmony export */ TextboxList: () => (/* reexport safe */ _textbox_list__WEBPACK_IMPORTED_MODULE_0__.TextboxList)
|
39682
|
+
/* harmony export */ });
|
39683
|
+
/* harmony import */ var _textbox_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./textbox_list */ "./src/input/textbox_list/textbox_list.js");
|
39684
|
+
// LICENSE_CODE ZON
|
39685
|
+
|
39686
|
+
|
39687
|
+
/*jslint react:true*/
|
39688
|
+
|
39689
|
+
|
39690
|
+
/***/ }),
|
39691
|
+
|
39692
|
+
/***/ "./src/input/textbox_list/item_list.js":
|
39693
|
+
/*!*********************************************!*\
|
39694
|
+
!*** ./src/input/textbox_list/item_list.js ***!
|
39695
|
+
\*********************************************/
|
39696
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
39697
|
+
|
39698
|
+
"use strict";
|
39699
|
+
__webpack_require__.r(__webpack_exports__);
|
39700
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39701
|
+
/* harmony export */ ItemList: () => (/* binding */ ItemList)
|
39702
|
+
/* harmony export */ });
|
39703
|
+
/* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/map */ "./node_modules/lodash/map.js");
|
39704
|
+
/* harmony import */ var lodash_map__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_0__);
|
39705
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
39706
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
39707
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
39708
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
39709
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
39710
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
39711
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../typography */ "./src/typography/index.js");
|
39712
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../icon_button */ "./src/icon_button.js");
|
39713
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../theme */ "./src/theme.js");
|
39714
|
+
// LICENSE_CODE ZON
|
39715
|
+
|
39716
|
+
|
39717
|
+
/*jslint node:true, react:true*/
|
39718
|
+
|
39719
|
+
|
39720
|
+
|
39721
|
+
|
39722
|
+
|
39723
|
+
|
39724
|
+
|
39725
|
+
|
39726
|
+
var ItemList = function ItemList(props) {
|
39727
|
+
var className = props.className,
|
39728
|
+
_props$value = props.value,
|
39729
|
+
value = _props$value === void 0 ? [] : _props$value,
|
39730
|
+
maxItems = props.maxItems,
|
39731
|
+
_onRemove = props.onRemove,
|
39732
|
+
_props$itemRenderer = props.itemRenderer,
|
39733
|
+
itemRenderer = _props$itemRenderer === void 0 ? DefaultItemRenderer : _props$itemRenderer,
|
39734
|
+
isItemDisabled = props.isItemDisabled;
|
39735
|
+
var filtered = maxItems ? value.slice(0, maxItems) : value;
|
39736
|
+
var extra = value.length - filtered.length;
|
39737
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, {
|
39738
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
39739
|
+
itemList: true
|
39740
|
+
}),
|
39741
|
+
flex_direction: "column"
|
39742
|
+
}, lodash_map__WEBPACK_IMPORTED_MODULE_0___default()(filtered, function (val, i) {
|
39743
|
+
return (0,_util__WEBPACK_IMPORTED_MODULE_4__.flexRender)(itemRenderer, {
|
39744
|
+
key: "item-".concat(i, "_").concat(val),
|
39745
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
39746
|
+
item: true
|
39747
|
+
}),
|
39748
|
+
value: val,
|
39749
|
+
onRemove: function onRemove() {
|
39750
|
+
return _onRemove(val);
|
39751
|
+
},
|
39752
|
+
showRemove: !isItemDisabled && !isItemDisabled(val)
|
39753
|
+
});
|
39754
|
+
}), extra > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Item, {
|
39755
|
+
key: "extra",
|
39756
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
39757
|
+
extra: true
|
39758
|
+
})
|
39759
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
39760
|
+
variant: "sm",
|
39761
|
+
color: "gray_11_50"
|
39762
|
+
}, "".concat(extra, " more item").concat(extra > 1 ? 's' : '', " hidden"))));
|
39763
|
+
};
|
39764
|
+
var DefaultItemRenderer = function DefaultItemRenderer(props) {
|
39765
|
+
var className = props.className,
|
39766
|
+
value = props.value,
|
39767
|
+
onRemove = props.onRemove,
|
39768
|
+
showRemove = props.showRemove;
|
39769
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ItemWithHover, {
|
39770
|
+
className: className
|
39771
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
39772
|
+
variant: "sm",
|
39773
|
+
color: "gray_11_50"
|
39774
|
+
}, value), showRemove && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_6__.IconButton, {
|
39775
|
+
onClick: onRemove,
|
39776
|
+
variant: "xxs",
|
39777
|
+
icon: "CloseSmall"
|
39778
|
+
}));
|
39779
|
+
};
|
39780
|
+
var Item = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
39781
|
+
displayName: "Item",
|
39782
|
+
componentId: "sc-1cige3y-0"
|
39783
|
+
})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;min-height:32px;padding:0 4px;border-radius:4px;"]);
|
39784
|
+
var ItemWithHover = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(Item).withConfig({
|
39785
|
+
displayName: "ItemWithHover",
|
39786
|
+
componentId: "sc-1cige3y-1"
|
39787
|
+
})(["&:hover{background:", ";}"], _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_2);
|
39788
|
+
|
39789
|
+
/***/ }),
|
39790
|
+
|
39791
|
+
/***/ "./src/input/textbox_list/textbox_list.js":
|
39792
|
+
/*!************************************************!*\
|
39793
|
+
!*** ./src/input/textbox_list/textbox_list.js ***!
|
39794
|
+
\************************************************/
|
39795
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
39796
|
+
|
39797
|
+
"use strict";
|
39798
|
+
__webpack_require__.r(__webpack_exports__);
|
39799
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39800
|
+
/* harmony export */ TextboxList: () => (/* binding */ TextboxList)
|
39801
|
+
/* harmony export */ });
|
39802
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
39803
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
39804
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
39805
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
39806
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/index.js");
|
39807
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
39808
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
39809
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../shared */ "./src/input/shared.js");
|
39810
|
+
/* harmony import */ var _button_add_input__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./button_add_input */ "./src/input/textbox_list/button_add_input.js");
|
39811
|
+
/* harmony import */ var _item_list__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./item_list */ "./src/input/textbox_list/item_list.js");
|
39812
|
+
// LICENSE_CODE ZON
|
39813
|
+
|
39814
|
+
|
39815
|
+
/*jslint node:true, react:true*/
|
39816
|
+
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); }
|
39817
|
+
var _excluded = ["className", "size", "label", "labelIcon", "required", "necessityIndicator", "disabled", "buttonText", "onButtonClick", "invalid", "helperText", "placeholder", "value", "onFocus", "onBlur", "onValidate", "onRemove", "onChange", "maxItems", "itemRenderer", "isItemDisabled"];
|
39818
|
+
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); }
|
39819
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
39820
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
39821
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
39822
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
39823
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
39824
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
39825
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
39826
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
39827
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
39828
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
39829
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
39830
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
39831
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
39832
|
+
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; }
|
39833
|
+
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; }
|
39834
|
+
|
39835
|
+
|
39836
|
+
|
39837
|
+
|
39838
|
+
|
39839
|
+
|
39840
|
+
|
39841
|
+
|
39842
|
+
var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
39843
|
+
var className = props.className,
|
39844
|
+
size = props.size,
|
39845
|
+
label = props.label,
|
39846
|
+
labelIcon = props.labelIcon,
|
39847
|
+
required = props.required,
|
39848
|
+
necessityIndicator = props.necessityIndicator,
|
39849
|
+
disabled = props.disabled,
|
39850
|
+
buttonText = props.buttonText,
|
39851
|
+
onButtonClick = props.onButtonClick,
|
39852
|
+
invalid = props.invalid,
|
39853
|
+
helperText = props.helperText,
|
39854
|
+
placeholder = props.placeholder,
|
39855
|
+
value = props.value,
|
39856
|
+
onFocus = props.onFocus,
|
39857
|
+
onBlur = props.onBlur,
|
39858
|
+
onValidate = props.onValidate,
|
39859
|
+
onRemove = props.onRemove,
|
39860
|
+
onChange = props.onChange,
|
39861
|
+
maxItems = props.maxItems,
|
39862
|
+
itemRenderer = props.itemRenderer,
|
39863
|
+
isItemDisabled = props.isItemDisabled,
|
39864
|
+
rest = _objectWithoutProperties(props, _excluded);
|
39865
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(''),
|
39866
|
+
_useState2 = _slicedToArray(_useState, 2),
|
39867
|
+
inputValue = _useState2[0],
|
39868
|
+
setInputValue = _useState2[1];
|
39869
|
+
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),
|
39870
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
39871
|
+
error = _useState4[0],
|
39872
|
+
setError = _useState4[1];
|
39873
|
+
var onInputBlur = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
39874
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(evt);
|
39875
|
+
if (!inputValue) return;
|
39876
|
+
void _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
39877
|
+
var res;
|
39878
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
39879
|
+
while (1) switch (_context.prev = _context.next) {
|
39880
|
+
case 0:
|
39881
|
+
_context.t0 = onValidate;
|
39882
|
+
if (!_context.t0) {
|
39883
|
+
_context.next = 5;
|
39884
|
+
break;
|
39885
|
+
}
|
39886
|
+
_context.next = 4;
|
39887
|
+
return onValidate(inputValue, value);
|
39888
|
+
case 4:
|
39889
|
+
_context.t0 = _context.sent;
|
39890
|
+
case 5:
|
39891
|
+
res = _context.t0;
|
39892
|
+
if (!res) {
|
39893
|
+
_context.next = 8;
|
39894
|
+
break;
|
39895
|
+
}
|
39896
|
+
return _context.abrupt("return", void setError(res));
|
39897
|
+
case 8:
|
39898
|
+
setError();
|
39899
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(value ? [].concat(_toConsumableArray(value), [inputValue]) : [inputValue]);
|
39900
|
+
setInputValue('');
|
39901
|
+
case 11:
|
39902
|
+
case "end":
|
39903
|
+
return _context.stop();
|
39904
|
+
}
|
39905
|
+
}, _callee);
|
39906
|
+
}))();
|
39907
|
+
}, [onBlur, onValidate, onChange, value, inputValue]);
|
39908
|
+
var onInputKeyDown = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
39909
|
+
if (evt.key === 'Enter') onInputBlur(evt);
|
39910
|
+
}, [onInputBlur]);
|
39911
|
+
var onRemoveItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (val) {
|
39912
|
+
void _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
39913
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
39914
|
+
while (1) switch (_context2.prev = _context2.next) {
|
39915
|
+
case 0:
|
39916
|
+
_context2.t0 = onRemove;
|
39917
|
+
if (!_context2.t0) {
|
39918
|
+
_context2.next = 6;
|
39919
|
+
break;
|
39920
|
+
}
|
39921
|
+
_context2.next = 4;
|
39922
|
+
return onRemove(val, value);
|
39923
|
+
case 4:
|
39924
|
+
_context2.t1 = _context2.sent;
|
39925
|
+
_context2.t0 = _context2.t1 === false;
|
39926
|
+
case 6:
|
39927
|
+
if (!_context2.t0) {
|
39928
|
+
_context2.next = 8;
|
39929
|
+
break;
|
39930
|
+
}
|
39931
|
+
return _context2.abrupt("return");
|
39932
|
+
case 8:
|
39933
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(value.filter(function (v) {
|
39934
|
+
return v != val;
|
39935
|
+
}));
|
39936
|
+
case 9:
|
39937
|
+
case "end":
|
39938
|
+
return _context2.stop();
|
39939
|
+
}
|
39940
|
+
}, _callee2);
|
39941
|
+
}))();
|
39942
|
+
}, [value, onRemove, onChange]);
|
39943
|
+
var handleIsItemDisabled = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (val) {
|
39944
|
+
if (disabled) return true;
|
39945
|
+
return !isItemDisabled && !isItemDisabled(val);
|
39946
|
+
}, [disabled, isItemDisabled]);
|
39947
|
+
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(props.id);
|
39948
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, _extends({
|
39949
|
+
ref: ref,
|
39950
|
+
"data-testid": "textbox-list",
|
39951
|
+
className: className
|
39952
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
|
39953
|
+
flex_direction: "column",
|
39954
|
+
gap: "02"
|
39955
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_5__.InputLabel, {
|
39956
|
+
id: labelId,
|
39957
|
+
label: label,
|
39958
|
+
labelIcon: labelIcon,
|
39959
|
+
required: required,
|
39960
|
+
necessityIndicator: necessityIndicator,
|
39961
|
+
classNamePrefix: className
|
39962
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_item_list__WEBPACK_IMPORTED_MODULE_7__.ItemList, {
|
39963
|
+
className: className,
|
39964
|
+
value: value,
|
39965
|
+
maxItems: maxItems,
|
39966
|
+
onRemove: onRemoveItem,
|
39967
|
+
isItemDisabled: handleIsItemDisabled,
|
39968
|
+
itemRenderer: itemRenderer
|
39969
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_button_add_input__WEBPACK_IMPORTED_MODULE_6__.ButtonAddInput, {
|
39970
|
+
className: className,
|
39971
|
+
size: size,
|
39972
|
+
disabled: disabled,
|
39973
|
+
buttonText: buttonText,
|
39974
|
+
onButtonClick: onButtonClick,
|
39975
|
+
placeholder: placeholder,
|
39976
|
+
inputValue: inputValue,
|
39977
|
+
onInputValueChange: setInputValue,
|
39978
|
+
onInputFocus: onFocus,
|
39979
|
+
onInputBlur: onInputBlur,
|
39980
|
+
onInputKeyDown: onInputKeyDown,
|
39981
|
+
error: error,
|
39982
|
+
setError: setError
|
39983
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_5__.HelperText, {
|
39984
|
+
invalid: invalid !== null && invalid !== void 0 ? invalid : !!error
|
39985
|
+
}, helperText !== null && helperText !== void 0 ? helperText : error));
|
39986
|
+
});
|
39987
|
+
TextboxList.displayName = 'TextboxList';
|
39988
|
+
TextboxList.defaultProps = {
|
39989
|
+
buttonText: 'Add'
|
39990
|
+
};
|
39991
|
+
TextboxList.propTypes = {
|
39992
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
39993
|
+
required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
39994
|
+
necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['asterisk', 'text']),
|
39995
|
+
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
39996
|
+
label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
39997
|
+
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
39998
|
+
helperText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
39999
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['sm', 'md', 'lg']),
|
40000
|
+
buttonText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
40001
|
+
onButtonClick: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
40002
|
+
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
40003
|
+
onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
40004
|
+
onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
40005
|
+
onValidate: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
40006
|
+
value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array),
|
40007
|
+
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
40008
|
+
maxItems: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
|
40009
|
+
onRemove: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
40010
|
+
itemRenderer: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
40011
|
+
isItemDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
|
40012
|
+
};
|
40013
|
+
|
40014
|
+
/***/ }),
|
40015
|
+
|
39516
40016
|
/***/ "./src/input/toggle.js":
|
39517
40017
|
/*!*****************************!*\
|
39518
40018
|
!*** ./src/input/toggle.js ***!
|
@@ -40771,7 +41271,7 @@ var ModalTitle = function ModalTitle(props) {
|
|
40771
41271
|
}, text);
|
40772
41272
|
};
|
40773
41273
|
var CloseButton = function CloseButton(props) {
|
40774
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__
|
41274
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton, _extends({
|
40775
41275
|
icon: "CloseSmall",
|
40776
41276
|
variant: "icon"
|
40777
41277
|
}, props));
|
@@ -40783,7 +41283,7 @@ var ButtonsGroup = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_lay
|
|
40783
41283
|
displayName: "ButtonsGroup",
|
40784
41284
|
componentId: "sc-1p9nv3u-0"
|
40785
41285
|
})([""]);
|
40786
|
-
var ModalButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_button__WEBPACK_IMPORTED_MODULE_3__
|
41286
|
+
var ModalButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_button__WEBPACK_IMPORTED_MODULE_3__.Button).attrs({
|
40787
41287
|
size: 'sm'
|
40788
41288
|
}).withConfig({
|
40789
41289
|
displayName: "ModalButton",
|
@@ -41284,7 +41784,7 @@ var SnackbarAction = function SnackbarAction(props) {
|
|
41284
41784
|
}, rest, {
|
41285
41785
|
size: "md"
|
41286
41786
|
}));
|
41287
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_button__WEBPACK_IMPORTED_MODULE_1__
|
41787
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_button__WEBPACK_IMPORTED_MODULE_1__.Button, _extends({}, rest, {
|
41288
41788
|
size: "sm"
|
41289
41789
|
}));
|
41290
41790
|
};
|
@@ -42115,7 +42615,7 @@ var PopoverContainer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().
|
|
42115
42615
|
var Search = function Search(props) {
|
42116
42616
|
var search = props.search,
|
42117
42617
|
setSearch = props.setSearch;
|
42118
|
-
var clearButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__
|
42618
|
+
var clearButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
|
42119
42619
|
variant: "ghost",
|
42120
42620
|
icon: "Close",
|
42121
42621
|
style: {
|
@@ -42164,7 +42664,7 @@ var CustomizeButtonPopover = function CustomizeButtonPopover(props) {
|
|
42164
42664
|
};
|
42165
42665
|
CustomizeButtonPopover.displayName = 'CustomizeButtonPopover';
|
42166
42666
|
var CustomizeButtonWithPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_3__.withPopover)(function (p) {
|
42167
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__
|
42667
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
|
42168
42668
|
onClick: p.popover.toggle,
|
42169
42669
|
tooltip: "Customize columns",
|
42170
42670
|
icon: "Customize"
|
@@ -42376,7 +42876,7 @@ var ExpandHandle = function ExpandHandle(props) {
|
|
42376
42876
|
if (!canExpand) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_1__.Box, {
|
42377
42877
|
width: _theme__WEBPACK_IMPORTED_MODULE_2__["default"].spacing['06']
|
42378
42878
|
});
|
42379
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_3__
|
42879
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_3__.IconButton, _extends({
|
42380
42880
|
icon: icon,
|
42381
42881
|
size: "xs"
|
42382
42882
|
}, getToggleRowExpandedProps()));
|
@@ -42796,7 +43296,7 @@ var MenuButton = function MenuButton(props) {
|
|
42796
43296
|
}
|
42797
43297
|
});
|
42798
43298
|
};
|
42799
|
-
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_icon_button__WEBPACK_IMPORTED_MODULE_4__
|
43299
|
+
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton).withConfig({
|
42800
43300
|
displayName: "StyledButton",
|
42801
43301
|
componentId: "sc-1oo76mu-0"
|
42802
43302
|
})(["cursor:pointer;display:flex;position:absolute;top:50%;right:8px;transform:translateY(-50%);z-index:", ";width:16px;height:16px;background-color:", ";border-radius:4px;width:16px;height:16px;&:hover:not(:disabled){background-color:", ";}"], _constants__WEBPACK_IMPORTED_MODULE_7__.Z_INDEX.headerButton, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6);
|
@@ -42990,7 +43490,7 @@ var Pagination = function Pagination(props) {
|
|
42990
43490
|
});
|
42991
43491
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationWrapper, {
|
42992
43492
|
className: className
|
42993
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationItems, childProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationControlsWrapper, null, !!onDownload && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_3__
|
43493
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationItems, childProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationControlsWrapper, null, !!onDownload && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_3__.IconButton, {
|
42994
43494
|
icon: "Download",
|
42995
43495
|
onClick: onDownload,
|
42996
43496
|
tooltip: downloadTooltip,
|
@@ -43930,7 +44430,7 @@ var RowMenuCell = function RowMenuCell(props) {
|
|
43930
44430
|
};
|
43931
44431
|
RowMenuCell.displayName = 'RowMenuCell';
|
43932
44432
|
var RowMenuCellPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_3__.withPopover)(function (p) {
|
43933
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__
|
44433
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton, {
|
43934
44434
|
onClick: p.popover.toggle,
|
43935
44435
|
icon: "DotsHorizontal",
|
43936
44436
|
variant: "ghost"
|
@@ -44467,7 +44967,7 @@ var StyledTagBase = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_ba
|
|
44467
44967
|
})(["cursor:default;", ""], function (props) {
|
44468
44968
|
return props.disabled && (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["background-color:", ";border-color:transparent;color:", ";cursor:not-allowed;"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_9);
|
44469
44969
|
});
|
44470
|
-
var StyledRemoveButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_icon_button__WEBPACK_IMPORTED_MODULE_4__
|
44970
|
+
var StyledRemoveButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton).withConfig({
|
44471
44971
|
displayName: "StyledRemoveButton",
|
44472
44972
|
componentId: "sc-4wrknd-1"
|
44473
44973
|
})(["border-radius:", ";min-width:16px;width:16px;min-height:16px;height:16px;:disabled{background-color:", ";}"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing['05'], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_2);
|
@@ -61078,6 +61578,30 @@ var baseCreate = (function() {
|
|
61078
61578
|
module.exports = baseCreate;
|
61079
61579
|
|
61080
61580
|
|
61581
|
+
/***/ }),
|
61582
|
+
|
61583
|
+
/***/ "./node_modules/lodash/_baseEach.js":
|
61584
|
+
/*!******************************************!*\
|
61585
|
+
!*** ./node_modules/lodash/_baseEach.js ***!
|
61586
|
+
\******************************************/
|
61587
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
61588
|
+
|
61589
|
+
var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
|
61590
|
+
createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js");
|
61591
|
+
|
61592
|
+
/**
|
61593
|
+
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
61594
|
+
*
|
61595
|
+
* @private
|
61596
|
+
* @param {Array|Object} collection The collection to iterate over.
|
61597
|
+
* @param {Function} iteratee The function invoked per iteration.
|
61598
|
+
* @returns {Array|Object} Returns `collection`.
|
61599
|
+
*/
|
61600
|
+
var baseEach = createBaseEach(baseForOwn);
|
61601
|
+
|
61602
|
+
module.exports = baseEach;
|
61603
|
+
|
61604
|
+
|
61081
61605
|
/***/ }),
|
61082
61606
|
|
61083
61607
|
/***/ "./node_modules/lodash/_baseFlatten.js":
|
@@ -61126,6 +61650,58 @@ function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
61126
61650
|
module.exports = baseFlatten;
|
61127
61651
|
|
61128
61652
|
|
61653
|
+
/***/ }),
|
61654
|
+
|
61655
|
+
/***/ "./node_modules/lodash/_baseFor.js":
|
61656
|
+
/*!*****************************************!*\
|
61657
|
+
!*** ./node_modules/lodash/_baseFor.js ***!
|
61658
|
+
\*****************************************/
|
61659
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
61660
|
+
|
61661
|
+
var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js");
|
61662
|
+
|
61663
|
+
/**
|
61664
|
+
* The base implementation of `baseForOwn` which iterates over `object`
|
61665
|
+
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
61666
|
+
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
61667
|
+
*
|
61668
|
+
* @private
|
61669
|
+
* @param {Object} object The object to iterate over.
|
61670
|
+
* @param {Function} iteratee The function invoked per iteration.
|
61671
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
61672
|
+
* @returns {Object} Returns `object`.
|
61673
|
+
*/
|
61674
|
+
var baseFor = createBaseFor();
|
61675
|
+
|
61676
|
+
module.exports = baseFor;
|
61677
|
+
|
61678
|
+
|
61679
|
+
/***/ }),
|
61680
|
+
|
61681
|
+
/***/ "./node_modules/lodash/_baseForOwn.js":
|
61682
|
+
/*!********************************************!*\
|
61683
|
+
!*** ./node_modules/lodash/_baseForOwn.js ***!
|
61684
|
+
\********************************************/
|
61685
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
61686
|
+
|
61687
|
+
var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
|
61688
|
+
keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
|
61689
|
+
|
61690
|
+
/**
|
61691
|
+
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
61692
|
+
*
|
61693
|
+
* @private
|
61694
|
+
* @param {Object} object The object to iterate over.
|
61695
|
+
* @param {Function} iteratee The function invoked per iteration.
|
61696
|
+
* @returns {Object} Returns `object`.
|
61697
|
+
*/
|
61698
|
+
function baseForOwn(object, iteratee) {
|
61699
|
+
return object && baseFor(object, iteratee, keys);
|
61700
|
+
}
|
61701
|
+
|
61702
|
+
module.exports = baseForOwn;
|
61703
|
+
|
61704
|
+
|
61129
61705
|
/***/ }),
|
61130
61706
|
|
61131
61707
|
/***/ "./node_modules/lodash/_baseGet.js":
|
@@ -61789,6 +62365,38 @@ function baseKeysIn(object) {
|
|
61789
62365
|
module.exports = baseKeysIn;
|
61790
62366
|
|
61791
62367
|
|
62368
|
+
/***/ }),
|
62369
|
+
|
62370
|
+
/***/ "./node_modules/lodash/_baseMap.js":
|
62371
|
+
/*!*****************************************!*\
|
62372
|
+
!*** ./node_modules/lodash/_baseMap.js ***!
|
62373
|
+
\*****************************************/
|
62374
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
62375
|
+
|
62376
|
+
var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"),
|
62377
|
+
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
|
62378
|
+
|
62379
|
+
/**
|
62380
|
+
* The base implementation of `_.map` without support for iteratee shorthands.
|
62381
|
+
*
|
62382
|
+
* @private
|
62383
|
+
* @param {Array|Object} collection The collection to iterate over.
|
62384
|
+
* @param {Function} iteratee The function invoked per iteration.
|
62385
|
+
* @returns {Array} Returns the new mapped array.
|
62386
|
+
*/
|
62387
|
+
function baseMap(collection, iteratee) {
|
62388
|
+
var index = -1,
|
62389
|
+
result = isArrayLike(collection) ? Array(collection.length) : [];
|
62390
|
+
|
62391
|
+
baseEach(collection, function(value, key, collection) {
|
62392
|
+
result[++index] = iteratee(value, key, collection);
|
62393
|
+
});
|
62394
|
+
return result;
|
62395
|
+
}
|
62396
|
+
|
62397
|
+
module.exports = baseMap;
|
62398
|
+
|
62399
|
+
|
61792
62400
|
/***/ }),
|
61793
62401
|
|
61794
62402
|
/***/ "./node_modules/lodash/_baseMatches.js":
|
@@ -62686,6 +63294,83 @@ var coreJsData = root['__core-js_shared__'];
|
|
62686
63294
|
module.exports = coreJsData;
|
62687
63295
|
|
62688
63296
|
|
63297
|
+
/***/ }),
|
63298
|
+
|
63299
|
+
/***/ "./node_modules/lodash/_createBaseEach.js":
|
63300
|
+
/*!************************************************!*\
|
63301
|
+
!*** ./node_modules/lodash/_createBaseEach.js ***!
|
63302
|
+
\************************************************/
|
63303
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
63304
|
+
|
63305
|
+
var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
|
63306
|
+
|
63307
|
+
/**
|
63308
|
+
* Creates a `baseEach` or `baseEachRight` function.
|
63309
|
+
*
|
63310
|
+
* @private
|
63311
|
+
* @param {Function} eachFunc The function to iterate over a collection.
|
63312
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
63313
|
+
* @returns {Function} Returns the new base function.
|
63314
|
+
*/
|
63315
|
+
function createBaseEach(eachFunc, fromRight) {
|
63316
|
+
return function(collection, iteratee) {
|
63317
|
+
if (collection == null) {
|
63318
|
+
return collection;
|
63319
|
+
}
|
63320
|
+
if (!isArrayLike(collection)) {
|
63321
|
+
return eachFunc(collection, iteratee);
|
63322
|
+
}
|
63323
|
+
var length = collection.length,
|
63324
|
+
index = fromRight ? length : -1,
|
63325
|
+
iterable = Object(collection);
|
63326
|
+
|
63327
|
+
while ((fromRight ? index-- : ++index < length)) {
|
63328
|
+
if (iteratee(iterable[index], index, iterable) === false) {
|
63329
|
+
break;
|
63330
|
+
}
|
63331
|
+
}
|
63332
|
+
return collection;
|
63333
|
+
};
|
63334
|
+
}
|
63335
|
+
|
63336
|
+
module.exports = createBaseEach;
|
63337
|
+
|
63338
|
+
|
63339
|
+
/***/ }),
|
63340
|
+
|
63341
|
+
/***/ "./node_modules/lodash/_createBaseFor.js":
|
63342
|
+
/*!***********************************************!*\
|
63343
|
+
!*** ./node_modules/lodash/_createBaseFor.js ***!
|
63344
|
+
\***********************************************/
|
63345
|
+
/***/ ((module) => {
|
63346
|
+
|
63347
|
+
/**
|
63348
|
+
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
63349
|
+
*
|
63350
|
+
* @private
|
63351
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
63352
|
+
* @returns {Function} Returns the new base function.
|
63353
|
+
*/
|
63354
|
+
function createBaseFor(fromRight) {
|
63355
|
+
return function(object, iteratee, keysFunc) {
|
63356
|
+
var index = -1,
|
63357
|
+
iterable = Object(object),
|
63358
|
+
props = keysFunc(object),
|
63359
|
+
length = props.length;
|
63360
|
+
|
63361
|
+
while (length--) {
|
63362
|
+
var key = props[fromRight ? length : ++index];
|
63363
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
63364
|
+
break;
|
63365
|
+
}
|
63366
|
+
}
|
63367
|
+
return object;
|
63368
|
+
};
|
63369
|
+
}
|
63370
|
+
|
63371
|
+
module.exports = createBaseFor;
|
63372
|
+
|
63373
|
+
|
62689
63374
|
/***/ }),
|
62690
63375
|
|
62691
63376
|
/***/ "./node_modules/lodash/_createCaseFirst.js":
|
@@ -66522,6 +67207,69 @@ function last(array) {
|
|
66522
67207
|
module.exports = last;
|
66523
67208
|
|
66524
67209
|
|
67210
|
+
/***/ }),
|
67211
|
+
|
67212
|
+
/***/ "./node_modules/lodash/map.js":
|
67213
|
+
/*!************************************!*\
|
67214
|
+
!*** ./node_modules/lodash/map.js ***!
|
67215
|
+
\************************************/
|
67216
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
67217
|
+
|
67218
|
+
var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
|
67219
|
+
baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
|
67220
|
+
baseMap = __webpack_require__(/*! ./_baseMap */ "./node_modules/lodash/_baseMap.js"),
|
67221
|
+
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
|
67222
|
+
|
67223
|
+
/**
|
67224
|
+
* Creates an array of values by running each element in `collection` thru
|
67225
|
+
* `iteratee`. The iteratee is invoked with three arguments:
|
67226
|
+
* (value, index|key, collection).
|
67227
|
+
*
|
67228
|
+
* Many lodash methods are guarded to work as iteratees for methods like
|
67229
|
+
* `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
|
67230
|
+
*
|
67231
|
+
* The guarded methods are:
|
67232
|
+
* `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
|
67233
|
+
* `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
|
67234
|
+
* `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
|
67235
|
+
* `template`, `trim`, `trimEnd`, `trimStart`, and `words`
|
67236
|
+
*
|
67237
|
+
* @static
|
67238
|
+
* @memberOf _
|
67239
|
+
* @since 0.1.0
|
67240
|
+
* @category Collection
|
67241
|
+
* @param {Array|Object} collection The collection to iterate over.
|
67242
|
+
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
67243
|
+
* @returns {Array} Returns the new mapped array.
|
67244
|
+
* @example
|
67245
|
+
*
|
67246
|
+
* function square(n) {
|
67247
|
+
* return n * n;
|
67248
|
+
* }
|
67249
|
+
*
|
67250
|
+
* _.map([4, 8], square);
|
67251
|
+
* // => [16, 64]
|
67252
|
+
*
|
67253
|
+
* _.map({ 'a': 4, 'b': 8 }, square);
|
67254
|
+
* // => [16, 64] (iteration order is not guaranteed)
|
67255
|
+
*
|
67256
|
+
* var users = [
|
67257
|
+
* { 'user': 'barney' },
|
67258
|
+
* { 'user': 'fred' }
|
67259
|
+
* ];
|
67260
|
+
*
|
67261
|
+
* // The `_.property` iteratee shorthand.
|
67262
|
+
* _.map(users, 'user');
|
67263
|
+
* // => ['barney', 'fred']
|
67264
|
+
*/
|
67265
|
+
function map(collection, iteratee) {
|
67266
|
+
var func = isArray(collection) ? arrayMap : baseMap;
|
67267
|
+
return func(collection, baseIteratee(iteratee, 3));
|
67268
|
+
}
|
67269
|
+
|
67270
|
+
module.exports = map;
|
67271
|
+
|
67272
|
+
|
66525
67273
|
/***/ }),
|
66526
67274
|
|
66527
67275
|
/***/ "./node_modules/lodash/memoize.js":
|