@mmb-digital/ds-lilly 0.3.11 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ds-lilly.js +133 -137
- package/dist/types/src/components/Components/Toast/Toast.d.ts +11 -1
- package/dist/types/src/components/Components/Toast/Toast.hook.d.ts +8 -14
- package/dist/types/src/components/Components/Toast/index.d.ts +1 -1
- package/dist/types/src/components/Form/Radio2/Radio2.d.ts +7 -2
- package/package.json +1 -1
package/dist/ds-lilly.js
CHANGED
|
@@ -6200,7 +6200,7 @@ __webpack_require__.d(__webpack_exports__, "v", function() { return /* binding *
|
|
|
6200
6200
|
// UNUSED EXPORTS: getDomainOfErrorBars, offsetSign, offsetPositive, getStackedData, calculateDomainOfTicks, MIN_VALUE_REG, MAX_VALUE_REG
|
|
6201
6201
|
|
|
6202
6202
|
// EXTERNAL MODULE: ./node_modules/lodash/isEqual.js
|
|
6203
|
-
var isEqual = __webpack_require__(
|
|
6203
|
+
var isEqual = __webpack_require__(27);
|
|
6204
6204
|
var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
|
|
6205
6205
|
|
|
6206
6206
|
// EXTERNAL MODULE: ./node_modules/lodash/sortBy.js
|
|
@@ -12630,7 +12630,7 @@ AnimateGroup.defaultProps = {
|
|
|
12630
12630
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
12631
12631
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8);
|
|
12632
12632
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
|
|
12633
|
-
/* harmony import */ var _Text__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
12633
|
+
/* harmony import */ var _Text__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28);
|
|
12634
12634
|
/* harmony import */ var _util_ReactUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(10);
|
|
12635
12635
|
/* harmony import */ var _util_DataUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1);
|
|
12636
12636
|
/* harmony import */ var _util_PolarUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12);
|
|
@@ -13190,8 +13190,7 @@ var SYNC_EVENT = 'recharts.syncMouseEvents'; // eslint-disable-next-line no-rede
|
|
|
13190
13190
|
|
|
13191
13191
|
/***/ }),
|
|
13192
13192
|
/* 26 */,
|
|
13193
|
-
/* 27
|
|
13194
|
-
/* 28 */
|
|
13193
|
+
/* 27 */
|
|
13195
13194
|
/***/ (function(module, exports, __webpack_require__) {
|
|
13196
13195
|
|
|
13197
13196
|
var baseIsEqual = __webpack_require__(654);
|
|
@@ -13232,7 +13231,7 @@ module.exports = isEqual;
|
|
|
13232
13231
|
|
|
13233
13232
|
|
|
13234
13233
|
/***/ }),
|
|
13235
|
-
/*
|
|
13234
|
+
/* 28 */
|
|
13236
13235
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13237
13236
|
|
|
13238
13237
|
"use strict";
|
|
@@ -13581,7 +13580,7 @@ Text.defaultProps = {
|
|
|
13581
13580
|
};
|
|
13582
13581
|
|
|
13583
13582
|
/***/ }),
|
|
13584
|
-
/*
|
|
13583
|
+
/* 29 */
|
|
13585
13584
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13586
13585
|
|
|
13587
13586
|
"use strict";
|
|
@@ -13612,7 +13611,7 @@ var warn = function warn(condition, format) {
|
|
|
13612
13611
|
};
|
|
13613
13612
|
|
|
13614
13613
|
/***/ }),
|
|
13615
|
-
/*
|
|
13614
|
+
/* 30 */
|
|
13616
13615
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13617
13616
|
|
|
13618
13617
|
"use strict";
|
|
@@ -14455,6 +14454,7 @@ Curve_Curve.defaultProps = {
|
|
|
14455
14454
|
};
|
|
14456
14455
|
|
|
14457
14456
|
/***/ }),
|
|
14457
|
+
/* 31 */,
|
|
14458
14458
|
/* 32 */
|
|
14459
14459
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14460
14460
|
|
|
@@ -17371,7 +17371,7 @@ module.exports = uniqBy;
|
|
|
17371
17371
|
/* harmony import */ var _util_ShallowEqual__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47);
|
|
17372
17372
|
/* harmony import */ var _util_DOMUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(32);
|
|
17373
17373
|
/* harmony import */ var _container_Layer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9);
|
|
17374
|
-
/* harmony import */ var _component_Text__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
17374
|
+
/* harmony import */ var _component_Text__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28);
|
|
17375
17375
|
/* harmony import */ var _component_Label__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(24);
|
|
17376
17376
|
/* harmony import */ var _util_Global__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20);
|
|
17377
17377
|
/* harmony import */ var _util_DataUtils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(1);
|
|
@@ -33986,7 +33986,7 @@ function tickFormat(start, stop, count, specifier) {
|
|
|
33986
33986
|
/* harmony import */ var _container_Layer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(9);
|
|
33987
33987
|
/* harmony import */ var _component_Tooltip__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80);
|
|
33988
33988
|
/* harmony import */ var _component_Legend__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(78);
|
|
33989
|
-
/* harmony import */ var _shape_Curve__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
|
|
33989
|
+
/* harmony import */ var _shape_Curve__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(30);
|
|
33990
33990
|
/* harmony import */ var _shape_Cross__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(893);
|
|
33991
33991
|
/* harmony import */ var _shape_Sector__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(77);
|
|
33992
33992
|
/* harmony import */ var _shape_Dot__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(36);
|
|
@@ -39054,7 +39054,7 @@ var ifOverflowMatches = function ifOverflowMatches(props, value) {
|
|
|
39054
39054
|
var CartesianUtils = __webpack_require__(38);
|
|
39055
39055
|
|
|
39056
39056
|
// EXTERNAL MODULE: ./node_modules/recharts/es6/util/LogUtils.js
|
|
39057
|
-
var LogUtils = __webpack_require__(
|
|
39057
|
+
var LogUtils = __webpack_require__(29);
|
|
39058
39058
|
|
|
39059
39059
|
// EXTERNAL MODULE: ./node_modules/recharts/es6/util/types.js
|
|
39060
39060
|
var types = __webpack_require__(4);
|
|
@@ -39585,7 +39585,7 @@ var band = __webpack_require__(658);
|
|
|
39585
39585
|
var Layer = __webpack_require__(9);
|
|
39586
39586
|
|
|
39587
39587
|
// EXTERNAL MODULE: ./node_modules/recharts/es6/component/Text.js
|
|
39588
|
-
var Text = __webpack_require__(
|
|
39588
|
+
var Text = __webpack_require__(28);
|
|
39589
39589
|
|
|
39590
39590
|
// EXTERNAL MODULE: ./node_modules/recharts/es6/util/ChartUtils.js + 10 modules
|
|
39591
39591
|
var ChartUtils = __webpack_require__(6);
|
|
@@ -96928,62 +96928,34 @@ var Tile = function (_a) {
|
|
|
96928
96928
|
|
|
96929
96929
|
|
|
96930
96930
|
// CONCATENATED MODULE: ./src/components/Components/Toast/Toast.hook.ts
|
|
96931
|
-
var
|
|
96932
|
-
|
|
96933
|
-
|
|
96934
|
-
|
|
96935
|
-
|
|
96936
|
-
|
|
96937
|
-
|
|
96938
|
-
|
|
96939
|
-
|
|
96940
|
-
|
|
96931
|
+
var ADD_TOAST_EVENT = 'toast/add';
|
|
96932
|
+
var REMOVE_TOAST_EVENT = 'toast/remove';
|
|
96933
|
+
var REMOVE_ALL_TOASTS_EVENT = 'toast/removeAll';
|
|
96934
|
+
var triggerEvent = function (eventType, data) {
|
|
96935
|
+
try {
|
|
96936
|
+
var event_1 = new CustomEvent(eventType, { detail: data });
|
|
96937
|
+
document.dispatchEvent(event_1);
|
|
96938
|
+
}
|
|
96939
|
+
catch (err) {
|
|
96940
|
+
var event_2 = document.createEvent('CustomEvent');
|
|
96941
|
+
event_2.initCustomEvent(eventType, true, false, data);
|
|
96942
|
+
document.dispatchEvent(event_2);
|
|
96943
|
+
}
|
|
96941
96944
|
};
|
|
96942
|
-
var
|
|
96943
|
-
|
|
96944
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
96945
|
-
t[p] = s[p];
|
|
96946
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
96947
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
96948
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
96949
|
-
t[p[i]] = s[p[i]];
|
|
96950
|
-
}
|
|
96951
|
-
return t;
|
|
96945
|
+
var addToast = function (toast) {
|
|
96946
|
+
triggerEvent(ADD_TOAST_EVENT, toast);
|
|
96952
96947
|
};
|
|
96953
|
-
var
|
|
96954
|
-
|
|
96955
|
-
to[j] = from[i];
|
|
96956
|
-
return to;
|
|
96948
|
+
var removeToast = function (toastId) {
|
|
96949
|
+
triggerEvent(REMOVE_TOAST_EVENT, toastId);
|
|
96957
96950
|
};
|
|
96958
|
-
|
|
96959
|
-
|
|
96960
|
-
var useToast = function (_a) {
|
|
96961
|
-
var _b = _a === void 0 ? {} : _a, autoCloseMilliseconds = _b.autoCloseMilliseconds;
|
|
96962
|
-
var _c = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useReducer"])(function (x) { return x + 1; }, 0), forceUpdate = _c[1];
|
|
96963
|
-
var removeAllToasts = function () {
|
|
96964
|
-
Toast_hook_toasts = [];
|
|
96965
|
-
forceUpdate();
|
|
96966
|
-
};
|
|
96967
|
-
var removeToast = function (toastId) {
|
|
96968
|
-
Toast_hook_toasts = Toast_hook_toasts.filter(function (toast) { return toast.toastId !== toastId; });
|
|
96969
|
-
forceUpdate();
|
|
96970
|
-
};
|
|
96971
|
-
var addToast = function (toast) {
|
|
96972
|
-
var toastAutoCloseMilliseconds = toast.autoCloseMilliseconds, rest = Toast_hook_rest(toast, ["autoCloseMilliseconds"]);
|
|
96973
|
-
var toastId = rest.toastId || "toast-" + Math.random().toString();
|
|
96974
|
-
Toast_hook_toasts = Toast_hook_spreadArray([Toast_hook_assign(Toast_hook_assign({}, rest), { toastId: toastId })], Toast_hook_toasts);
|
|
96975
|
-
forceUpdate();
|
|
96976
|
-
if ((autoCloseMilliseconds || toastAutoCloseMilliseconds) && toastAutoCloseMilliseconds !== 0) {
|
|
96977
|
-
setTimeout(function () { return removeToast(toastId); }, autoCloseMilliseconds || toastAutoCloseMilliseconds);
|
|
96978
|
-
}
|
|
96979
|
-
};
|
|
96980
|
-
return {
|
|
96981
|
-
toasts: Toast_hook_toasts,
|
|
96982
|
-
addToast: addToast,
|
|
96983
|
-
removeToast: removeToast,
|
|
96984
|
-
removeAllToasts: removeAllToasts
|
|
96985
|
-
};
|
|
96951
|
+
var removeAllToasts = function () {
|
|
96952
|
+
triggerEvent(REMOVE_ALL_TOASTS_EVENT);
|
|
96986
96953
|
};
|
|
96954
|
+
var useToast = function () { return ({
|
|
96955
|
+
addToast: addToast,
|
|
96956
|
+
removeToast: removeToast,
|
|
96957
|
+
removeAllToasts: removeAllToasts
|
|
96958
|
+
}); };
|
|
96987
96959
|
|
|
96988
96960
|
// CONCATENATED MODULE: ./src/components/Components/Toast/Toast.tsx
|
|
96989
96961
|
var Toast_assign = (undefined && undefined.__assign) || function () {
|
|
@@ -97008,18 +96980,41 @@ var Toast_rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
97008
96980
|
}
|
|
97009
96981
|
return t;
|
|
97010
96982
|
};
|
|
96983
|
+
var Toast_spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
|
|
96984
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
96985
|
+
to[j] = from[i];
|
|
96986
|
+
return to;
|
|
96987
|
+
};
|
|
97011
96988
|
|
|
97012
96989
|
|
|
97013
96990
|
|
|
97014
96991
|
|
|
97015
|
-
|
|
97016
|
-
|
|
97017
|
-
|
|
97018
|
-
|
|
97019
|
-
|
|
97020
|
-
|
|
97021
|
-
removeToast(id);
|
|
96992
|
+
|
|
96993
|
+
var ToastContainer = function (_a) {
|
|
96994
|
+
var autoCloseMilliseconds = _a.autoCloseMilliseconds;
|
|
96995
|
+
var _b = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])([]), toasts = _b[0], setToasts = _b[1];
|
|
96996
|
+
var handleCloseToast = function (toastId) { return function () {
|
|
96997
|
+
setToasts(function (prev) { return prev.filter(function (toast) { return toast.toastId !== toastId; }); });
|
|
97022
96998
|
}; };
|
|
96999
|
+
var handleAddToast = function (event) {
|
|
97000
|
+
var _a = event.detail, toastAutoCloseMilliseconds = _a.autoCloseMilliseconds, rest = Toast_rest(_a, ["autoCloseMilliseconds"]);
|
|
97001
|
+
var toastId = rest.toastId || "toast-" + Math.random().toString();
|
|
97002
|
+
setToasts(function (prev) { return Toast_spreadArray([Toast_assign(Toast_assign({}, rest), { toastId: toastId })], prev); });
|
|
97003
|
+
if ((autoCloseMilliseconds || toastAutoCloseMilliseconds) && toastAutoCloseMilliseconds !== 0) {
|
|
97004
|
+
setTimeout(function () { return handleCloseToast(toastId)(); }, autoCloseMilliseconds || toastAutoCloseMilliseconds);
|
|
97005
|
+
}
|
|
97006
|
+
};
|
|
97007
|
+
var handleRemoveToast = function (event) { return handleCloseToast(event.detail)(); };
|
|
97008
|
+
var handleRemoveAllToasts = function () { return setToasts([]); };
|
|
97009
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
97010
|
+
// @ts-ignore
|
|
97011
|
+
useEventListener(ADD_TOAST_EVENT, handleAddToast, document);
|
|
97012
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
97013
|
+
// @ts-ignore
|
|
97014
|
+
useEventListener(REMOVE_TOAST_EVENT, handleRemoveToast, document);
|
|
97015
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
97016
|
+
// @ts-ignore
|
|
97017
|
+
useEventListener(REMOVE_ALL_TOASTS_EVENT, handleRemoveAllToasts, document);
|
|
97023
97018
|
return (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("div", { className: "c-toast__container" },
|
|
97024
97019
|
external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(AnimatePresence, null, toasts.map(function (_a) {
|
|
97025
97020
|
var content = _a.content, toastId = _a.toastId, props = Toast_rest(_a, ["content", "toastId"]);
|
|
@@ -98276,27 +98271,28 @@ var Autocomplete2_spreadArray = (undefined && undefined.__spreadArray) || functi
|
|
|
98276
98271
|
|
|
98277
98272
|
|
|
98278
98273
|
var Autocomplete2 = function (_a) {
|
|
98279
|
-
var _b;
|
|
98280
|
-
var
|
|
98281
|
-
var _k = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(
|
|
98282
|
-
var _l = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(
|
|
98283
|
-
var _m = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(
|
|
98284
|
-
var _o = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(
|
|
98285
|
-
var _p = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(
|
|
98286
|
-
var _q = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(
|
|
98287
|
-
var _r = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])({
|
|
98274
|
+
var _b = _a.asyncDelayMilliseconds, asyncDelayMilliseconds = _b === void 0 ? 200 : _b, _c = _a.canAlwaysCreateNewItem, canAlwaysCreateNewItem = _c === void 0 ? false : _c, disabledTooltip = _a.disabledTooltip, _d = _a.displayDetails, displayDetails = _d === void 0 ? false : _d, dropdownTheme = _a.dropdownTheme, emptyValueLabel = _a.emptyValueLabel, error = _a.error, _e = _a.filterMinimumLength, filterMinimumLength = _e === void 0 ? 2 : _e, _f = _a.hasFullWidthOptions, hasFullWidthOptions = _f === void 0 ? true : _f, help = _a.help, isDisabled = _a.isDisabled, isLazyLoaded = _a.isLazyLoaded, isLoading = _a.isLoading, _g = _a.items, inputItems = _g === void 0 ? [] : _g, label = _a.label, labelTooltip = _a.labelTooltip, loadItems = _a.loadItems, loadMoreItems = _a.loadMoreItems, name = _a.name, messages = _a.messages, _h = _a.newItemMinimumLength, newItemMinimumLength = _h === void 0 ? 2 : _h, onBlur = _a.onBlur, onChange = _a.onChange, onCreateNewItem = _a.onCreateNewItem, onFocus = _a.onFocus, placeholder = _a.placeholder, testId = _a.testId, theme = _a.theme, value = _a.value;
|
|
98275
|
+
var _j = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(false), isDropdownVisible = _j[0], setIsDropdownVisible = _j[1];
|
|
98276
|
+
var _k = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(null), buttonValue = _k[0], setButtonValue = _k[1];
|
|
98277
|
+
var _l = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(false), typingMode = _l[0], setTypingMode = _l[1];
|
|
98278
|
+
var _m = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(''), fulltextValue = _m[0], setFulltextValue = _m[1];
|
|
98279
|
+
var _o = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(-1), currentItemPosition = _o[0], setCurrentItemPosition = _o[1];
|
|
98280
|
+
var _p = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])([]), items = _p[0], setItems = _p[1];
|
|
98281
|
+
var _q = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])({
|
|
98288
98282
|
loading: false,
|
|
98289
98283
|
found: -1
|
|
98290
|
-
}), searchState =
|
|
98291
|
-
var
|
|
98284
|
+
}), searchState = _q[0], setSearchState = _q[1];
|
|
98285
|
+
var _r = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])({
|
|
98292
98286
|
loading: false,
|
|
98293
98287
|
found: -1
|
|
98294
|
-
}), pagingState =
|
|
98288
|
+
}), pagingState = _r[0], setPagingState = _r[1];
|
|
98289
|
+
var getSearchString = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function (str) { return stripDiacritics(str).toLowerCase(); }, []);
|
|
98290
|
+
var emptyValueLabelPattern = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useMemo"])(function () { return getSearchString(emptyValueLabel || ''); }, [emptyValueLabel]);
|
|
98291
|
+
var isCategorised = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function (itemList) { var _a; return !!(itemList && ((_a = itemList[0]) === null || _a === void 0 ? void 0 : _a.items)); }, []);
|
|
98295
98292
|
var loadAsyncItems = function (query) { return Autocomplete2_awaiter(void 0, void 0, void 0, function () {
|
|
98296
|
-
var newItems,
|
|
98297
|
-
|
|
98298
|
-
|
|
98299
|
-
switch (_b.label) {
|
|
98293
|
+
var newItems, categorised, found;
|
|
98294
|
+
return Autocomplete2_generator(this, function (_a) {
|
|
98295
|
+
switch (_a.label) {
|
|
98300
98296
|
case 0:
|
|
98301
98297
|
if (!loadItems)
|
|
98302
98298
|
return [2 /*return*/];
|
|
@@ -98304,9 +98300,9 @@ var Autocomplete2 = function (_a) {
|
|
|
98304
98300
|
setItems([]);
|
|
98305
98301
|
return [4 /*yield*/, loadItems(query)];
|
|
98306
98302
|
case 1:
|
|
98307
|
-
newItems =
|
|
98308
|
-
|
|
98309
|
-
found =
|
|
98303
|
+
newItems = _a.sent();
|
|
98304
|
+
categorised = isCategorised(newItems);
|
|
98305
|
+
found = categorised
|
|
98310
98306
|
? newItems.reduce(function (acc, curr) { return acc + curr.items.length; }, 0)
|
|
98311
98307
|
: newItems.length;
|
|
98312
98308
|
setSearchState({ loading: false, found: found });
|
|
@@ -98315,11 +98311,11 @@ var Autocomplete2 = function (_a) {
|
|
|
98315
98311
|
}
|
|
98316
98312
|
});
|
|
98317
98313
|
}); };
|
|
98314
|
+
var fulltextMatchesEmptyValue = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useMemo"])(function () { return emptyValueLabelPattern.includes(fulltextValue); }, [fulltextValue]);
|
|
98318
98315
|
var debouncedCallApi = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(function () { return (loadItems ? lodash_debounce_default()(loadAsyncItems, asyncDelayMilliseconds) : noop); })[0];
|
|
98319
|
-
var isCategorised = !!(items && ((_b = items[0]) === null || _b === void 0 ? void 0 : _b.items));
|
|
98320
98316
|
var itemsIndex = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useMemo"])(function () {
|
|
98321
98317
|
var map;
|
|
98322
|
-
if (isCategorised) {
|
|
98318
|
+
if (isCategorised(items)) {
|
|
98323
98319
|
map = items.reduce(function (acc, category, categoryIndex) {
|
|
98324
98320
|
return acc.concat(category.items
|
|
98325
98321
|
.map(function (item, index) { return (!item.isDisabled ? { category: categoryIndex, item: index } : undefined); })
|
|
@@ -98331,11 +98327,11 @@ var Autocomplete2 = function (_a) {
|
|
|
98331
98327
|
.map(function (item, index) { return (!item.isDisabled ? { category: -1, item: index } : undefined); })
|
|
98332
98328
|
.filter(Boolean);
|
|
98333
98329
|
}
|
|
98334
|
-
if (emptyValueLabel &&
|
|
98330
|
+
if (emptyValueLabel && (!fulltextValue || fulltextValue === (buttonValue === null || buttonValue === void 0 ? void 0 : buttonValue.label) || fulltextMatchesEmptyValue)) {
|
|
98335
98331
|
return Autocomplete2_spreadArray([{ item: -1, category: -1 }], map);
|
|
98336
98332
|
}
|
|
98337
98333
|
return map;
|
|
98338
|
-
}, [items,
|
|
98334
|
+
}, [items, fulltextValue, value, buttonValue]);
|
|
98339
98335
|
var showCreatable = !!onCreateNewItem &&
|
|
98340
98336
|
(itemsIndex.length === 0 || canAlwaysCreateNewItem) &&
|
|
98341
98337
|
typingMode &&
|
|
@@ -98346,7 +98342,7 @@ var Autocomplete2 = function (_a) {
|
|
|
98346
98342
|
if (val === '' || val === undefined) {
|
|
98347
98343
|
return { item: -1, category: -1 };
|
|
98348
98344
|
}
|
|
98349
|
-
if (isCategorised) {
|
|
98345
|
+
if (isCategorised(sourceItems)) {
|
|
98350
98346
|
var index = sourceItems
|
|
98351
98347
|
.map(function (category, categoryIndex) {
|
|
98352
98348
|
var item = category.items.findIndex(function (item) { return item.value === val && !item.isDisabled; });
|
|
@@ -98368,16 +98364,14 @@ var Autocomplete2 = function (_a) {
|
|
|
98368
98364
|
});
|
|
98369
98365
|
};
|
|
98370
98366
|
var getFilteredItems = function (filter) {
|
|
98371
|
-
var newFilter =
|
|
98372
|
-
|
|
98373
|
-
.trim();
|
|
98374
|
-
if (isCategorised) {
|
|
98367
|
+
var newFilter = getSearchString(typeof filter === 'string' ? filter : filter.toString()).trim();
|
|
98368
|
+
if (isCategorised(inputItems)) {
|
|
98375
98369
|
var filteredCategories_1 = [];
|
|
98376
98370
|
var unfilteredItems = inputItems;
|
|
98377
98371
|
unfilteredItems.map(function (category) {
|
|
98378
98372
|
var filteredCategory = category.items.filter(function (_a) {
|
|
98379
98373
|
var amount = _a.amount, label = _a.label, perex = _a.perex;
|
|
98380
|
-
var text =
|
|
98374
|
+
var text = getSearchString(label + " " + (perex || '') + " " + (amount || ''));
|
|
98381
98375
|
return text.includes(newFilter);
|
|
98382
98376
|
});
|
|
98383
98377
|
if (filteredCategory.length > 0) {
|
|
@@ -98389,7 +98383,7 @@ var Autocomplete2 = function (_a) {
|
|
|
98389
98383
|
else {
|
|
98390
98384
|
var filteredOptions = inputItems.filter(function (_a) {
|
|
98391
98385
|
var amount = _a.amount, label = _a.label, perex = _a.perex;
|
|
98392
|
-
var text =
|
|
98386
|
+
var text = getSearchString(label + " " + (perex || '') + " " + (amount || ''));
|
|
98393
98387
|
return text.includes(newFilter);
|
|
98394
98388
|
});
|
|
98395
98389
|
return filteredOptions;
|
|
@@ -98400,7 +98394,7 @@ var Autocomplete2 = function (_a) {
|
|
|
98400
98394
|
setItems(inputItems);
|
|
98401
98395
|
var _a = getItemIndexByValue(value, inputItems), category = _a.category, item = _a.item;
|
|
98402
98396
|
if (item > -1) {
|
|
98403
|
-
var selectedItem = isCategorised
|
|
98397
|
+
var selectedItem = isCategorised(inputItems)
|
|
98404
98398
|
? inputItems[category].items[item]
|
|
98405
98399
|
: inputItems[item];
|
|
98406
98400
|
if (selectedItem) {
|
|
@@ -98415,7 +98409,7 @@ var Autocomplete2 = function (_a) {
|
|
|
98415
98409
|
setCurrentItemPosition(itemIndexPosition);
|
|
98416
98410
|
var category = itemIndex.category, item = itemIndex.item;
|
|
98417
98411
|
if (item > -1) {
|
|
98418
|
-
var selectedItem = isCategorised
|
|
98412
|
+
var selectedItem = isCategorised(items)
|
|
98419
98413
|
? items[category].items[item]
|
|
98420
98414
|
: items[item];
|
|
98421
98415
|
if (selectedItem) {
|
|
@@ -98439,7 +98433,7 @@ var Autocomplete2 = function (_a) {
|
|
|
98439
98433
|
var _a, _b, _c, _d, _e, _f;
|
|
98440
98434
|
if (category === void 0) { category = -1; }
|
|
98441
98435
|
if (center === void 0) { center = false; }
|
|
98442
|
-
var itemElementId = isCategorised ? name + "_option-" + category + "-" + item : name + "_option-" + item;
|
|
98436
|
+
var itemElementId = isCategorised(items) ? name + "_option-" + category + "-" + item : name + "_option-" + item;
|
|
98443
98437
|
if (center) {
|
|
98444
98438
|
var dropdownHalfHeight = (((_a = document.getElementById('autocomplete_dropdown')) === null || _a === void 0 ? void 0 : _a.clientHeight) || 0) / 2;
|
|
98445
98439
|
var itemHalfHeight = (((_b = document.getElementById(itemElementId)) === null || _b === void 0 ? void 0 : _b.clientHeight) || 0) / 2;
|
|
@@ -98555,7 +98549,7 @@ var Autocomplete2 = function (_a) {
|
|
|
98555
98549
|
propagateChange();
|
|
98556
98550
|
return undefined;
|
|
98557
98551
|
}
|
|
98558
|
-
var selectedItem = isCategorised
|
|
98552
|
+
var selectedItem = isCategorised(items)
|
|
98559
98553
|
? items[category].items[item]
|
|
98560
98554
|
: items[item];
|
|
98561
98555
|
if (selectedItem) {
|
|
@@ -98680,7 +98674,7 @@ var Autocomplete2 = function (_a) {
|
|
|
98680
98674
|
setTimeout(function () {
|
|
98681
98675
|
var _a;
|
|
98682
98676
|
scrollToItem(item_1, category_1);
|
|
98683
|
-
var listElementId = isCategorised ? name + "_list-" + category_1 : name + "_list";
|
|
98677
|
+
var listElementId = isCategorised(items) ? name + "_list-" + category_1 : name + "_list";
|
|
98684
98678
|
(_a = document.getElementById(listElementId)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
98685
98679
|
});
|
|
98686
98680
|
}
|
|
@@ -98695,16 +98689,15 @@ var Autocomplete2 = function (_a) {
|
|
|
98695
98689
|
if (key === KEYS.Enter) {
|
|
98696
98690
|
event.preventDefault();
|
|
98697
98691
|
if (isDropdownVisible) {
|
|
98698
|
-
var minItemsToAutoselect = emptyValueLabel && !value ? 2 : 1;
|
|
98699
98692
|
if (showCreatable && itemsIndex.length === 0) {
|
|
98700
98693
|
handleCreateNewOption();
|
|
98701
98694
|
}
|
|
98702
|
-
else if (fulltextValue && fulltextValue !== (buttonValue === null || buttonValue === void 0 ? void 0 : buttonValue.label) && itemsIndex.length
|
|
98703
|
-
var _a = itemsIndex[
|
|
98704
|
-
var selectedItem = isCategorised
|
|
98695
|
+
else if (fulltextValue && fulltextValue !== (buttonValue === null || buttonValue === void 0 ? void 0 : buttonValue.label) && itemsIndex.length > 0) {
|
|
98696
|
+
var _a = itemsIndex[0], category = _a.category, item = _a.item;
|
|
98697
|
+
var selectedItem = isCategorised(items)
|
|
98705
98698
|
? items[category].items[item]
|
|
98706
98699
|
: items[item];
|
|
98707
|
-
setFulltextValue(selectedItem.label);
|
|
98700
|
+
setFulltextValue((selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) || '');
|
|
98708
98701
|
propagateChange(selectedItem);
|
|
98709
98702
|
setTypingMode(false);
|
|
98710
98703
|
}
|
|
@@ -98730,7 +98723,7 @@ var Autocomplete2 = function (_a) {
|
|
|
98730
98723
|
setTimeout(function () {
|
|
98731
98724
|
var _a;
|
|
98732
98725
|
scrollToItem(item_2, category_2);
|
|
98733
|
-
var listElementId = isCategorised ? name + "_list-" + category_2 : name + "_list";
|
|
98726
|
+
var listElementId = isCategorised(items) ? name + "_list-" + category_2 : name + "_list";
|
|
98734
98727
|
(_a = document.getElementById(listElementId)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
98735
98728
|
});
|
|
98736
98729
|
}
|
|
@@ -98761,7 +98754,7 @@ var Autocomplete2 = function (_a) {
|
|
|
98761
98754
|
}
|
|
98762
98755
|
else if (fulltextValue && fulltextValue !== (buttonValue === null || buttonValue === void 0 ? void 0 : buttonValue.label) && itemsIndex.length > 0) {
|
|
98763
98756
|
var _c = itemsIndex[0], category = _c.category, item = _c.item;
|
|
98764
|
-
var selectedItem = isCategorised
|
|
98757
|
+
var selectedItem = isCategorised(items)
|
|
98765
98758
|
? items[category].items[item]
|
|
98766
98759
|
: items[item];
|
|
98767
98760
|
setButtonValue(selectedItem);
|
|
@@ -98830,7 +98823,7 @@ var Autocomplete2 = function (_a) {
|
|
|
98830
98823
|
messages.loadingItems));
|
|
98831
98824
|
}
|
|
98832
98825
|
return (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["Fragment"], null,
|
|
98833
|
-
isCategorised ? external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Select2CategorisedOptions, null) : external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Select2Options, null),
|
|
98826
|
+
isCategorised(items) ? external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Select2CategorisedOptions, null) : external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Select2Options, null),
|
|
98834
98827
|
pagingState.loading && messages.loadingItems && (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("div", { className: "f-autocomplete__message", id: "autocomplete_loading-more-items" },
|
|
98835
98828
|
external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Icon, { name: "loading", size: "large" }),
|
|
98836
98829
|
messages.loadingMoreItems)),
|
|
@@ -98845,7 +98838,7 @@ var Autocomplete2 = function (_a) {
|
|
|
98845
98838
|
};
|
|
98846
98839
|
var focusedItem = itemsIndex[currentItemPosition];
|
|
98847
98840
|
var select2context = {
|
|
98848
|
-
emptyValueLabel:
|
|
98841
|
+
emptyValueLabel: !fulltextValue || fulltextValue === (buttonValue === null || buttonValue === void 0 ? void 0 : buttonValue.label) || fulltextMatchesEmptyValue ? emptyValueLabel : undefined,
|
|
98849
98842
|
focusedCategoryIndex: focusedItem ? focusedItem.category : -1,
|
|
98850
98843
|
focusedItemIndex: focusedItem ? focusedItem.item : -1,
|
|
98851
98844
|
items: items,
|
|
@@ -106871,19 +106864,20 @@ var Radio2_assign = (undefined && undefined.__assign) || function () {
|
|
|
106871
106864
|
|
|
106872
106865
|
|
|
106873
106866
|
|
|
106867
|
+
var classRoot = 'f-radio2';
|
|
106874
106868
|
var Radio2 = function (_a) {
|
|
106875
106869
|
var _b;
|
|
106876
|
-
var _c = _a.allowEventPropagation, allowEventPropagation = _c === void 0 ? false : _c, disabledTooltip = _a.disabledTooltip, error = _a.error, help = _a.help, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isInRow, isInRow = _e === void 0 ? false : _e, _f = _a.isTitleHidden, isTitleHidden =
|
|
106877
|
-
var getCheckedIndex = function (value) { return items.findIndex(function (item) { return item.value === value; }); };
|
|
106878
|
-
var
|
|
106879
|
-
var
|
|
106880
|
-
var handleChange = function (newIndex) {
|
|
106870
|
+
var _c = _a.allowEventPropagation, allowEventPropagation = _c === void 0 ? false : _c, disabledTooltip = _a.disabledTooltip, error = _a.error, help = _a.help, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isInRow, isInRow = _e === void 0 ? false : _e, _f = _a.isLabelTitle, isLabelTitle = _f === void 0 ? true : _f, _g = _a.isTitleHidden, isTitleHidden = _g === void 0 ? false : _g, _h = _a.items, items = _h === void 0 ? [] : _h, label = _a.label, labelTooltip = _a.labelTooltip, name = _a.name, onChange = _a.onChange, testId = _a.testId, theme = _a.theme, value = _a.value;
|
|
106871
|
+
var getCheckedIndex = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function (value) { return items.findIndex(function (item) { return item.value === value; }); }, [items]);
|
|
106872
|
+
var _j = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(getCheckedIndex(value)), checked = _j[0], setChecked = _j[1];
|
|
106873
|
+
var _k = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(false), isFocused = _k[0], setIsFocused = _k[1];
|
|
106874
|
+
var handleChange = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function (newIndex) {
|
|
106881
106875
|
if (!isDisabled) {
|
|
106882
106876
|
onChange && onChange(items[newIndex].value);
|
|
106883
106877
|
setChecked(newIndex);
|
|
106884
106878
|
}
|
|
106885
|
-
};
|
|
106886
|
-
var handleKeyUp = function (current) {
|
|
106879
|
+
}, [isDisabled, items, onChange, setChecked]);
|
|
106880
|
+
var handleKeyUp = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function (current) {
|
|
106887
106881
|
var next = current;
|
|
106888
106882
|
for (var i = current - 1; i >= 0; --i) {
|
|
106889
106883
|
if (!items[i].disabled) {
|
|
@@ -106894,8 +106888,8 @@ var Radio2 = function (_a) {
|
|
|
106894
106888
|
if (next !== current) {
|
|
106895
106889
|
handleChange(next);
|
|
106896
106890
|
}
|
|
106897
|
-
};
|
|
106898
|
-
var handleKeyDown = function (current) {
|
|
106891
|
+
}, [handleChange, items]);
|
|
106892
|
+
var handleKeyDown = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function (current) {
|
|
106899
106893
|
var next = current;
|
|
106900
106894
|
for (var i = current + 1; i < items.length; ++i) {
|
|
106901
106895
|
if (!items[i].disabled) {
|
|
@@ -106906,18 +106900,18 @@ var Radio2 = function (_a) {
|
|
|
106906
106900
|
if (next !== current) {
|
|
106907
106901
|
handleChange(next);
|
|
106908
106902
|
}
|
|
106909
|
-
};
|
|
106910
|
-
var handleOnClick = function (checkedValue) { return function (event) {
|
|
106903
|
+
}, [handleChange, items]);
|
|
106904
|
+
var handleOnClick = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function (checkedValue) { return function (event) {
|
|
106911
106905
|
var newCheckedIndex = getCheckedIndex(checkedValue);
|
|
106912
106906
|
handleChange(newCheckedIndex);
|
|
106913
106907
|
if (!allowEventPropagation) {
|
|
106914
106908
|
event.stopPropagation();
|
|
106915
106909
|
}
|
|
106916
|
-
}; };
|
|
106910
|
+
}; }, [allowEventPropagation, getCheckedIndex, handleChange]);
|
|
106917
106911
|
Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useEffect"])(function () {
|
|
106918
106912
|
setChecked(getCheckedIndex(value));
|
|
106919
|
-
}, [value]);
|
|
106920
|
-
var handleOnKeyPress = function (event) {
|
|
106913
|
+
}, [value, getCheckedIndex, setChecked]);
|
|
106914
|
+
var handleOnKeyPress = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function (event) {
|
|
106921
106915
|
var key = event.key;
|
|
106922
106916
|
if (key === KEYS.ArrowDown || key === KEYS.ArrowRight) {
|
|
106923
106917
|
event.preventDefault();
|
|
@@ -106934,7 +106928,8 @@ var Radio2 = function (_a) {
|
|
|
106934
106928
|
if (!allowEventPropagation) {
|
|
106935
106929
|
event.stopPropagation();
|
|
106936
106930
|
}
|
|
106937
|
-
};
|
|
106931
|
+
}, [allowEventPropagation, checked, handleChange, handleKeyDown, handleKeyUp]);
|
|
106932
|
+
var handleSetIsFocused = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useCallback"])(function (value) { return function () { return setIsFocused(value); }; }, []);
|
|
106938
106933
|
var formGroupProps = {
|
|
106939
106934
|
error: error,
|
|
106940
106935
|
disabledTooltip: disabledTooltip,
|
|
@@ -106944,18 +106939,19 @@ var Radio2 = function (_a) {
|
|
|
106944
106939
|
name: name,
|
|
106945
106940
|
theme: theme
|
|
106946
106941
|
};
|
|
106947
|
-
var classRoot = 'f-radio2';
|
|
106948
106942
|
var errorMessageId = !!error ? name + "_errorMessage" : undefined;
|
|
106943
|
+
var isLabel = !isTitleHidden && !!label;
|
|
106949
106944
|
return (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(FormGroup2, Radio2_assign({}, formGroupProps),
|
|
106950
106945
|
external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("fieldset", { className: classBinder_cx(classRoot, theme) },
|
|
106951
|
-
|
|
106952
|
-
|
|
106946
|
+
isLabel &&
|
|
106947
|
+
(isLabelTitle ? (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("legend", { className: classRoot + "__legend", id: "label" }, label)) : (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Label2, { identifier: name + "_label", labelTooltip: labelTooltip }, label))),
|
|
106948
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("ul", { "aria-activedescendant": items[checked] ? name + "_value-" + items[checked].value : '', "aria-disabled": isDisabled ? 'true' : 'false', "aria-labelledby": "label", className: classBinder_cx(classRoot + "__list", (_b = {}, _b[classRoot + "__list--inRow"] = isInRow, _b)), "data-testid": testId, role: "radiogroup", tabIndex: 0, onBlur: handleSetIsFocused(false), onFocus: handleSetIsFocused(true), onKeyDown: isDisabled ? noop : handleOnKeyPress }, items.map(function (item, index) {
|
|
106953
106949
|
var _a;
|
|
106954
106950
|
return (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("li", { key: "radio_value" + item.value, "aria-checked": checked === index ? 'true' : 'false', "aria-describedby": errorMessageId, "aria-disabled": item.disabled ? 'true' : 'false', className: classBinder_cx(classRoot + "__item", (_a = {},
|
|
106955
106951
|
_a[classRoot + "__item--focus"] = isFocused && (checked === index || (checked === -1 && index === 0)),
|
|
106956
106952
|
_a[classRoot + "__item--checked"] = checked === index,
|
|
106957
106953
|
_a[classRoot + "__item--disabled"] = item.disabled || isDisabled,
|
|
106958
|
-
_a)), id: name + "_value-" + item.value, role: "radio", onClick: item.disabled ?
|
|
106954
|
+
_a)), id: name + "_value-" + item.value, role: "radio", onClick: item.disabled ? noop : handleOnClick(item.value) },
|
|
106959
106955
|
external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("span", { className: classRoot + "__indicator" }),
|
|
106960
106956
|
external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("span", { className: classRoot + "__text" }, item.label)));
|
|
106961
106957
|
})))));
|
|
@@ -107773,7 +107769,7 @@ var withPolyfill_default = /*#__PURE__*/__webpack_require__.n(withPolyfill);
|
|
|
107773
107769
|
var DataUtils = __webpack_require__(1);
|
|
107774
107770
|
|
|
107775
107771
|
// EXTERNAL MODULE: ./node_modules/recharts/es6/util/LogUtils.js
|
|
107776
|
-
var LogUtils = __webpack_require__(
|
|
107772
|
+
var LogUtils = __webpack_require__(29);
|
|
107777
107773
|
|
|
107778
107774
|
// CONCATENATED MODULE: ./node_modules/recharts/es6/component/ResponsiveContainer.js
|
|
107779
107775
|
function ResponsiveContainer_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { ResponsiveContainer_typeof = function _typeof(obj) { return typeof obj; }; } else { ResponsiveContainer_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return ResponsiveContainer_typeof(obj); }
|
|
@@ -107976,7 +107972,7 @@ ResponsiveContainer_ResponsiveContainer.defaultProps = {
|
|
|
107976
107972
|
var generateCategoricalChart = __webpack_require__(635);
|
|
107977
107973
|
|
|
107978
107974
|
// EXTERNAL MODULE: ./node_modules/lodash/isEqual.js
|
|
107979
|
-
var isEqual = __webpack_require__(
|
|
107975
|
+
var isEqual = __webpack_require__(27);
|
|
107980
107976
|
var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
|
|
107981
107977
|
|
|
107982
107978
|
// EXTERNAL MODULE: ./node_modules/lodash/isNaN.js
|
|
@@ -108007,7 +108003,7 @@ var isArray_default = /*#__PURE__*/__webpack_require__.n(lodash_isArray);
|
|
|
108007
108003
|
var es6 = __webpack_require__(23);
|
|
108008
108004
|
|
|
108009
108005
|
// EXTERNAL MODULE: ./node_modules/recharts/es6/shape/Curve.js + 12 modules
|
|
108010
|
-
var Curve = __webpack_require__(
|
|
108006
|
+
var Curve = __webpack_require__(30);
|
|
108011
108007
|
|
|
108012
108008
|
// EXTERNAL MODULE: ./node_modules/recharts/es6/shape/Dot.js
|
|
108013
108009
|
var Dot = __webpack_require__(36);
|
|
@@ -111368,7 +111364,7 @@ var Polygon_Polygon = /*#__PURE__*/function (_PureComponent) {
|
|
|
111368
111364
|
return Polygon;
|
|
111369
111365
|
}(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["PureComponent"]);
|
|
111370
111366
|
// EXTERNAL MODULE: ./node_modules/recharts/es6/component/Text.js
|
|
111371
|
-
var component_Text = __webpack_require__(
|
|
111367
|
+
var component_Text = __webpack_require__(28);
|
|
111372
111368
|
|
|
111373
111369
|
// EXTERNAL MODULE: ./node_modules/recharts/es6/util/PolarUtils.js
|
|
111374
111370
|
var PolarUtils = __webpack_require__(12);
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AlertPropsType } from '..';
|
|
3
|
+
export declare type ToastType = Omit<AlertPropsType, 'alertRef' | 'children'> & {
|
|
4
|
+
autoCloseMilliseconds?: number;
|
|
5
|
+
toastId?: string;
|
|
6
|
+
content?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export interface ToastContainerPropsType {
|
|
9
|
+
autoCloseMilliseconds?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const ToastContainer: ({ autoCloseMilliseconds }: ToastContainerPropsType) => JSX.Element;
|
|
2
12
|
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
content?: ReactNode;
|
|
7
|
-
};
|
|
8
|
-
export interface ToastHookType {
|
|
9
|
-
toasts: ToastType[];
|
|
1
|
+
import { ToastType } from '.';
|
|
2
|
+
export declare const ADD_TOAST_EVENT = "toast/add";
|
|
3
|
+
export declare const REMOVE_TOAST_EVENT = "toast/remove";
|
|
4
|
+
export declare const REMOVE_ALL_TOASTS_EVENT = "toast/removeAll";
|
|
5
|
+
interface UseToastType {
|
|
10
6
|
addToast(toast: ToastType): void;
|
|
11
|
-
removeAllToasts(): void;
|
|
12
7
|
removeToast(toastId?: string): void;
|
|
8
|
+
removeAllToasts(): void;
|
|
13
9
|
}
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export declare const useToast: ({ autoCloseMilliseconds }?: UseToastHookPropsType) => ToastHookType;
|
|
10
|
+
export declare const useToast: () => UseToastType;
|
|
11
|
+
export {};
|
|
18
12
|
//# sourceMappingURL=Toast.hook.d.ts.map
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { FormField2PropsType } from '../../../types';
|
|
2
|
+
declare type RadioItemValue = string | number | boolean;
|
|
2
3
|
export interface Radio2PropsType extends FormField2PropsType {
|
|
3
4
|
items: RadioItem[];
|
|
4
5
|
isInRow?: boolean;
|
|
6
|
+
/** @deprecated please use empty label */
|
|
5
7
|
isTitleHidden?: boolean;
|
|
8
|
+
/** for backward compatibility is default value TRUE will be removed in the future */
|
|
9
|
+
isLabelTitle?: boolean;
|
|
6
10
|
}
|
|
7
11
|
export declare type RadioItem = {
|
|
8
12
|
label: string;
|
|
9
|
-
value:
|
|
13
|
+
value: RadioItemValue;
|
|
10
14
|
disabled?: boolean;
|
|
11
15
|
};
|
|
12
|
-
export declare const Radio2: ({ allowEventPropagation, disabledTooltip, error, help, isDisabled, isInRow, isTitleHidden, items, label, name, onChange, testId, theme, value }: Radio2PropsType) => JSX.Element;
|
|
16
|
+
export declare const Radio2: ({ allowEventPropagation, disabledTooltip, error, help, isDisabled, isInRow, isLabelTitle, isTitleHidden, items, label, labelTooltip, name, onChange, testId, theme, value }: Radio2PropsType) => JSX.Element;
|
|
17
|
+
export {};
|
|
13
18
|
//# sourceMappingURL=Radio2.d.ts.map
|