@true-engineering/true-react-common-ui-kit 3.32.0 → 3.33.1
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/LICENSE +201 -201
- package/README.md +15 -0
- package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +2 -0
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +1 -1
- package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.d.ts +2 -1
- package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -1
- package/dist/components/WithPopup/WithPopup.styles.d.ts +1 -1
- package/dist/components/WithPopup/types.d.ts +9 -3
- package/dist/true-react-common-ui-kit.js +144 -171
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +143 -170
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +7 -2
- package/package.json +98 -98
- package/src/components/AccountInfo/AccountInfo.stories.tsx +32 -32
- package/src/components/AccountInfo/AccountInfo.tsx +80 -80
- package/src/components/AddButton/AddButton.stories.tsx +21 -21
- package/src/components/AddButton/AddButton.tsx +52 -52
- package/src/components/Colors/Colors.stories.tsx +7 -7
- package/src/components/DateInput/DateInput.tsx +90 -90
- package/src/components/DateInput/constants.ts +2 -2
- package/src/components/Description/Description.stories.tsx +27 -27
- package/src/components/Description/Description.tsx +61 -61
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +166 -166
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +210 -210
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +177 -177
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +2 -2
- package/src/components/Flag/Flag.stories.tsx +29 -29
- package/src/components/Flag/Flag.tsx +26 -26
- package/src/components/Flag/augment.d.ts +1 -1
- package/src/components/FlexibleTable/FlexibleTable.stories.tsx +14 -1
- package/src/components/FlexibleTable/FlexibleTable.tsx +22 -10
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +39 -38
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +4 -2
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +25 -25
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +2 -1
- package/src/components/FlexibleTable/types.ts +70 -70
- package/src/components/Icon/Icon.stories.tsx +86 -86
- package/src/components/Icon/complexIcons/augment.d.ts +1 -1
- package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
- package/src/components/Icon/complexIcons/index.ts +1 -1
- package/src/components/Icon/icons-list.ts +855 -856
- package/src/components/IncrementInput/IncrementInput.tsx +105 -105
- package/src/components/Input/types.ts +32 -32
- package/src/components/List/List.tsx +3 -1
- package/src/components/Modal/Modal.stories.tsx +105 -105
- package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
- package/src/components/MultiSelect/MultiSelect.tsx +106 -106
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +53 -53
- package/src/components/NewMoreMenu/NewMoreMenu.tsx +5 -5
- package/src/components/Notification/Notification.stories.tsx +55 -55
- package/src/components/Notification/Notification.styles.ts +57 -57
- package/src/components/Notification/Notification.tsx +77 -77
- package/src/components/Notification/types.ts +1 -1
- package/src/components/NumberInput/NumberInput.tsx +137 -137
- package/src/components/NumberInput/index.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.tsx +214 -214
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +155 -155
- package/src/components/PhoneInput/types.ts +16 -16
- package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
- package/src/components/RadioButton/RadioButton.tsx +57 -57
- package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
- package/src/components/Select/Select.stories.tsx +235 -235
- package/src/components/Select/constants.ts +2 -2
- package/src/components/Select/types.ts +1 -1
- package/src/components/Selector/Selector.stories.tsx +62 -62
- package/src/components/Selector/Selector.tsx +115 -115
- package/src/components/Selector/index.ts +2 -2
- package/src/components/Selector/types.ts +12 -12
- package/src/components/Skeleton/Skeleton.stories.tsx +19 -19
- package/src/components/SmartInput/SmartInput.tsx +134 -134
- package/src/components/Status/Status.stories.tsx +73 -73
- package/src/components/Status/Status.styles.ts +143 -143
- package/src/components/Status/Status.tsx +49 -49
- package/src/components/Status/constants.ts +11 -11
- package/src/components/Status/index.ts +3 -3
- package/src/components/Status/types.ts +5 -5
- package/src/components/Switch/Switch.stories.tsx +40 -40
- package/src/components/Switch/Switch.tsx +75 -75
- package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
- package/src/components/TextWithInfo/TextWithInfo.tsx +62 -62
- package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
- package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +54 -54
- package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
- package/src/components/Toaster/Toaster.stories.tsx +30 -30
- package/src/components/Tooltip/Tooltip.stories.tsx +19 -19
- package/src/components/Tooltip/Tooltip.tsx +35 -35
- package/src/components/Tooltip/types.ts +1 -1
- package/src/components/WithPopup/WithPopup.stories.tsx +3 -3
- package/src/components/WithPopup/WithPopup.styles.ts +2 -0
- package/src/components/WithPopup/WithPopup.tsx +18 -8
- package/src/components/WithPopup/types.ts +11 -3
- package/src/helpers/popper-helpers.ts +17 -17
- package/src/hooks/use-dropdown.ts +84 -84
- package/src/hooks/use-is-mounted.ts +15 -15
- package/src/theme/helpers.ts +76 -76
- package/src/types.ts +10 -2
- package/src/vite-env.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { createContext, useRef, useEffect, useCallback, useState, useMemo, useContext, createElement, Fragment as Fragment$1, forwardRef, createRef, PureComponent, memo } from "react";
|
|
2
2
|
import { createUseStyles } from "react-jss";
|
|
3
|
-
import { mergeStyles, isNotEmpty, isArrayNotEmpty, isEmpty, isString, isStringNotEmpty, mergeRefs, addDataTestId, applyAction,
|
|
3
|
+
import { mergeStyles, isNotEmpty, isArrayNotEmpty, isEmpty, isString, isStringNotEmpty, mergeRefs, addDataTestId, applyAction, stopPropagation, isReactNodeNotEmpty, addClickHandler, getTestId, getSelectKeyHandler, getArray, createFilter, isFunction as isFunction$1, isObject as isObject$1, getTransition, indexMap, isNumberInteger, hasDuplicates, isArrayEmpty } from "@true-engineering/true-react-platform-helpers";
|
|
4
4
|
import { CSSTransition } from "react-transition-group";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import hexToRgba from "hex-to-rgba";
|
|
@@ -6668,63 +6668,63 @@ var useMergedRefs = function(refs) {
|
|
|
6668
6668
|
return mergeRefs(refs);
|
|
6669
6669
|
}, refs);
|
|
6670
6670
|
};
|
|
6671
|
-
const avatarGreen = ` <svg
|
|
6672
|
-
width="100%"
|
|
6673
|
-
height="100%"
|
|
6674
|
-
viewBox="0 0 32 32"
|
|
6675
|
-
fill="none"
|
|
6676
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6677
|
-
|
|
6678
|
-
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED"
|
|
6679
|
-
<mask
|
|
6680
|
-
id="mask0_0_12744"
|
|
6681
|
-
style="mask-type: 'alpha';"
|
|
6682
|
-
maskUnits="userSpaceOnUse"
|
|
6683
|
-
x="0"
|
|
6684
|
-
y="0"
|
|
6685
|
-
width="32"
|
|
6686
|
-
height="32"
|
|
6687
|
-
|
|
6688
|
-
<circle cx="16" cy="16" r="16" fill="white"
|
|
6689
|
-
</mask
|
|
6690
|
-
<g mask="url(#mask0_0_12744)"
|
|
6691
|
-
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)"
|
|
6692
|
-
<mask
|
|
6693
|
-
id="mask1_0_12744"
|
|
6694
|
-
style="mask-type: 'alpha';"
|
|
6695
|
-
maskUnits="userSpaceOnUse"
|
|
6696
|
-
x="3"
|
|
6697
|
-
y="16"
|
|
6698
|
-
width="26"
|
|
6699
|
-
height="26"
|
|
6700
|
-
|
|
6701
|
-
<circle cx="16" cy="29" r="13" fill="white"
|
|
6702
|
-
</mask
|
|
6703
|
-
<g mask="url(#mask1_0_12744)"
|
|
6704
|
-
<ellipse
|
|
6705
|
-
cx="16"
|
|
6706
|
-
cy="17.5"
|
|
6707
|
-
rx="6"
|
|
6708
|
-
ry="7.5"
|
|
6709
|
-
fill="#505F79"
|
|
6710
|
-
fill-opacity="0.204983"
|
|
6711
|
-
|
|
6712
|
-
</g
|
|
6713
|
-
</g
|
|
6714
|
-
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white"
|
|
6715
|
-
<defs
|
|
6716
|
-
<linearGradient
|
|
6717
|
-
id="paint0_linear_0_12744"
|
|
6718
|
-
x1="13.347"
|
|
6719
|
-
y1="46.279"
|
|
6720
|
-
x2="33.5318"
|
|
6721
|
-
y2="30.8088"
|
|
6722
|
-
gradientUnits="userSpaceOnUse"
|
|
6723
|
-
|
|
6724
|
-
<stop stop-color="#ABD229"
|
|
6725
|
-
<stop offset="1" stop-color="#9CD03F"
|
|
6726
|
-
</linearGradient
|
|
6727
|
-
</defs
|
|
6671
|
+
const avatarGreen = ` <svg\r
|
|
6672
|
+
width="100%"\r
|
|
6673
|
+
height="100%"\r
|
|
6674
|
+
viewBox="0 0 32 32"\r
|
|
6675
|
+
fill="none"\r
|
|
6676
|
+
xmlns="http://www.w3.org/2000/svg"\r
|
|
6677
|
+
>\r
|
|
6678
|
+
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />\r
|
|
6679
|
+
<mask\r
|
|
6680
|
+
id="mask0_0_12744"\r
|
|
6681
|
+
style="mask-type: 'alpha';"\r
|
|
6682
|
+
maskUnits="userSpaceOnUse"\r
|
|
6683
|
+
x="0"\r
|
|
6684
|
+
y="0"\r
|
|
6685
|
+
width="32"\r
|
|
6686
|
+
height="32"\r
|
|
6687
|
+
>\r
|
|
6688
|
+
<circle cx="16" cy="16" r="16" fill="white" />\r
|
|
6689
|
+
</mask>\r
|
|
6690
|
+
<g mask="url(#mask0_0_12744)">\r
|
|
6691
|
+
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />\r
|
|
6692
|
+
<mask\r
|
|
6693
|
+
id="mask1_0_12744"\r
|
|
6694
|
+
style="mask-type: 'alpha';"\r
|
|
6695
|
+
maskUnits="userSpaceOnUse"\r
|
|
6696
|
+
x="3"\r
|
|
6697
|
+
y="16"\r
|
|
6698
|
+
width="26"\r
|
|
6699
|
+
height="26"\r
|
|
6700
|
+
>\r
|
|
6701
|
+
<circle cx="16" cy="29" r="13" fill="white" />\r
|
|
6702
|
+
</mask>\r
|
|
6703
|
+
<g mask="url(#mask1_0_12744)">\r
|
|
6704
|
+
<ellipse\r
|
|
6705
|
+
cx="16"\r
|
|
6706
|
+
cy="17.5"\r
|
|
6707
|
+
rx="6"\r
|
|
6708
|
+
ry="7.5"\r
|
|
6709
|
+
fill="#505F79"\r
|
|
6710
|
+
fill-opacity="0.204983"\r
|
|
6711
|
+
/>\r
|
|
6712
|
+
</g>\r
|
|
6713
|
+
</g>\r
|
|
6714
|
+
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />\r
|
|
6715
|
+
<defs>\r
|
|
6716
|
+
<linearGradient\r
|
|
6717
|
+
id="paint0_linear_0_12744"\r
|
|
6718
|
+
x1="13.347"\r
|
|
6719
|
+
y1="46.279"\r
|
|
6720
|
+
x2="33.5318"\r
|
|
6721
|
+
y2="30.8088"\r
|
|
6722
|
+
gradientUnits="userSpaceOnUse"\r
|
|
6723
|
+
>\r
|
|
6724
|
+
<stop stop-color="#ABD229" />\r
|
|
6725
|
+
<stop offset="1" stop-color="#9CD03F" />\r
|
|
6726
|
+
</linearGradient>\r
|
|
6727
|
+
</defs>\r
|
|
6728
6728
|
</svg>`;
|
|
6729
6729
|
const fileExcel = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\r\n <rect width="20" height="20" rx="4" fill="#21A366"/>\r\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16081)" style="mix-blend-mode:overlay"/>\r\n <path d="M8.00342 14.5244L10.0728 11.3062L12.1357 14.5244H14.4019L11.2217 9.73828L14.1162 5.21875H11.939L10.1108 8.2085L8.24463 5.21875H6.04834L8.93018 9.66846L5.75 14.5244H8.00342Z" fill="white"/>\r\n <defs>\r\n <linearGradient id="paint0_linear_0_16081" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\r\n <stop stop-color="white" stop-opacity="0.245559"/>\r\n <stop offset="1" stop-opacity="0.498578"/>\r\n </linearGradient>\r\n </defs>\r\n</svg>';
|
|
6730
6730
|
const fileImage = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\r\n <rect width="20" height="20" rx="4" fill="#FF991F"/>\r\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16103)" style="mix-blend-mode:overlay"/>\r\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.90113 15C3.09595 15 2.62093 14.097 3.07709 13.4335L6.67606 8.19861C7.07341 7.62064 7.9268 7.62065 8.32414 8.19861L13.0001 15H3.90113Z" fill="white"/>\r\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.53962 15L12.7076 10.2481C13.1034 9.65434 13.9758 9.65434 14.3717 10.2481L16.5031 13.4453C16.9462 14.1099 16.4698 15 15.6711 15H9.53962Z" fill="white"/>\r\n <path d="M16.0001 5.5C16.0001 6.32843 15.3285 7 14.5001 7C13.6717 7 13.0001 6.32843 13.0001 5.5C13.0001 4.67157 13.6717 4 14.5001 4C15.3285 4 16.0001 4.67157 16.0001 5.5Z" fill="white"/>\r\n <defs>\r\n <linearGradient id="paint0_linear_0_16103" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\r\n <stop stop-color="white" stop-opacity="0.245559"/>\r\n <stop offset="1" stop-opacity="0.498578"/>\r\n </linearGradient>\r\n </defs>\r\n</svg>';
|
|
@@ -7508,8 +7508,7 @@ var iconsList = checkIcons({
|
|
|
7508
7508
|
"status-info": {
|
|
7509
7509
|
paths: [
|
|
7510
7510
|
{
|
|
7511
|
-
d: "M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0z"
|
|
7512
|
-
fill: "#577EDC"
|
|
7511
|
+
d: "M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0z"
|
|
7513
7512
|
},
|
|
7514
7513
|
{
|
|
7515
7514
|
d: "M10 15c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1s1 .448 1 1v4c0 .552-.448 1-1 1zM10 7c-.552 0-1-.448-1-1s.448-1 1-1 1 .448 1 1-.448 1-1 1z",
|
|
@@ -7821,6 +7820,7 @@ var useStyles$U = createThemedStyles("WithPopup", {
|
|
|
7821
7820
|
width: "fit-content",
|
|
7822
7821
|
cursor: "pointer"
|
|
7823
7822
|
},
|
|
7823
|
+
active: {},
|
|
7824
7824
|
disabled: {
|
|
7825
7825
|
cursor: "default"
|
|
7826
7826
|
},
|
|
@@ -7987,10 +7987,11 @@ var WithPopup = function(param) {
|
|
|
7987
7987
|
var _useFloating = useFloating({
|
|
7988
7988
|
open: isOpen,
|
|
7989
7989
|
middleware: [
|
|
7990
|
-
offset$2(popupOffset)
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7990
|
+
offset$2(popupOffset),
|
|
7991
|
+
canBeFlipped && flip$2({
|
|
7992
|
+
fallbackAxisSideDirection: "start"
|
|
7993
|
+
})
|
|
7994
|
+
].concat(_to_consumable_array$7(middlewares)),
|
|
7994
7995
|
whileElementsMounted: autoUpdate,
|
|
7995
7996
|
placement,
|
|
7996
7997
|
onOpenChange: handleToggle
|
|
@@ -8029,15 +8030,21 @@ var WithPopup = function(param) {
|
|
|
8029
8030
|
}, shouldStopPropagation && {
|
|
8030
8031
|
onClick: stopPropagation
|
|
8031
8032
|
}));
|
|
8032
|
-
var triggerElement = applyAction(trigger,
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8033
|
+
var triggerElement = applyAction(trigger, {
|
|
8034
|
+
referenceProps: !isTriggerWrapped ? referenceProps : void 0,
|
|
8035
|
+
triggerProps: _object_spread$Y({
|
|
8036
|
+
isActive: isOpen,
|
|
8037
|
+
isDisabled
|
|
8038
|
+
}, !isTriggerWrapped && _object_spread$Y({
|
|
8039
|
+
data,
|
|
8040
|
+
testId
|
|
8041
|
+
}, referenceProps))
|
|
8042
|
+
});
|
|
8043
|
+
var _obj2;
|
|
8037
8044
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8038
8045
|
children: [
|
|
8039
8046
|
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$Y({
|
|
8040
|
-
className: clsx(classes.trigger, _define_property$_(
|
|
8047
|
+
className: clsx(classes.trigger, (_obj2 = {}, _define_property$_(_obj2, classes.disabled, isDisabled), _define_property$_(_obj2, classes.active, isOpen), _obj2))
|
|
8041
8048
|
}, referenceProps, addDataTestId(testId), addDataAttributes(data)), {
|
|
8042
8049
|
children: triggerElement
|
|
8043
8050
|
})) : triggerElement,
|
|
@@ -8050,9 +8057,9 @@ var WithPopup = function(param) {
|
|
|
8050
8057
|
}, getFloatingProps()), {
|
|
8051
8058
|
children: /* @__PURE__ */ jsx("div", {
|
|
8052
8059
|
className: classes["dropdown-".concat(status)],
|
|
8053
|
-
children:
|
|
8060
|
+
children: applyAction(children, {
|
|
8054
8061
|
onClose: handleClose
|
|
8055
|
-
})
|
|
8062
|
+
})
|
|
8056
8063
|
})
|
|
8057
8064
|
}))
|
|
8058
8065
|
})
|
|
@@ -8298,9 +8305,9 @@ var List = function(param) {
|
|
|
8298
8305
|
popupOffset: 0,
|
|
8299
8306
|
shouldRenderInBody: false,
|
|
8300
8307
|
trigger: function(param2) {
|
|
8301
|
-
var
|
|
8308
|
+
var triggerProps = param2.triggerProps;
|
|
8302
8309
|
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$N(_object_spread$W({}, itemProps), {
|
|
8303
|
-
isFocused: isActive
|
|
8310
|
+
isFocused: triggerProps.isActive
|
|
8304
8311
|
}));
|
|
8305
8312
|
},
|
|
8306
8313
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9119,10 +9126,10 @@ function _object_spread_props$J(target, source) {
|
|
|
9119
9126
|
}
|
|
9120
9127
|
return target;
|
|
9121
9128
|
}
|
|
9122
|
-
function _object_without_properties$
|
|
9129
|
+
function _object_without_properties$g(source, excluded) {
|
|
9123
9130
|
if (source == null)
|
|
9124
9131
|
return {};
|
|
9125
|
-
var target = _object_without_properties_loose$
|
|
9132
|
+
var target = _object_without_properties_loose$g(source, excluded);
|
|
9126
9133
|
var key, i;
|
|
9127
9134
|
if (Object.getOwnPropertySymbols) {
|
|
9128
9135
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9137,7 +9144,7 @@ function _object_without_properties$h(source, excluded) {
|
|
|
9137
9144
|
}
|
|
9138
9145
|
return target;
|
|
9139
9146
|
}
|
|
9140
|
-
function _object_without_properties_loose$
|
|
9147
|
+
function _object_without_properties_loose$g(source, excluded) {
|
|
9141
9148
|
if (source == null)
|
|
9142
9149
|
return {};
|
|
9143
9150
|
var target = {};
|
|
@@ -9152,7 +9159,7 @@ function _object_without_properties_loose$h(source, excluded) {
|
|
|
9152
9159
|
return target;
|
|
9153
9160
|
}
|
|
9154
9161
|
var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9155
|
-
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$
|
|
9162
|
+
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$g(_param, [
|
|
9156
9163
|
"type",
|
|
9157
9164
|
"children",
|
|
9158
9165
|
"size",
|
|
@@ -10008,10 +10015,10 @@ function _object_spread_props$G(target, source) {
|
|
|
10008
10015
|
}
|
|
10009
10016
|
return target;
|
|
10010
10017
|
}
|
|
10011
|
-
function _object_without_properties$
|
|
10018
|
+
function _object_without_properties$f(source, excluded) {
|
|
10012
10019
|
if (source == null)
|
|
10013
10020
|
return {};
|
|
10014
|
-
var target = _object_without_properties_loose$
|
|
10021
|
+
var target = _object_without_properties_loose$f(source, excluded);
|
|
10015
10022
|
var key, i;
|
|
10016
10023
|
if (Object.getOwnPropertySymbols) {
|
|
10017
10024
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10026,7 +10033,7 @@ function _object_without_properties$g(source, excluded) {
|
|
|
10026
10033
|
}
|
|
10027
10034
|
return target;
|
|
10028
10035
|
}
|
|
10029
|
-
function _object_without_properties_loose$
|
|
10036
|
+
function _object_without_properties_loose$f(source, excluded) {
|
|
10030
10037
|
if (source == null)
|
|
10031
10038
|
return {};
|
|
10032
10039
|
var target = {};
|
|
@@ -10159,7 +10166,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
10159
10166
|
}
|
|
10160
10167
|
}
|
|
10161
10168
|
var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10162
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$
|
|
10169
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$f(_param, [
|
|
10163
10170
|
"value",
|
|
10164
10171
|
"label",
|
|
10165
10172
|
"placeholder",
|
|
@@ -10401,10 +10408,10 @@ function _object_spread_props$F(target, source) {
|
|
|
10401
10408
|
}
|
|
10402
10409
|
return target;
|
|
10403
10410
|
}
|
|
10404
|
-
function _object_without_properties$
|
|
10411
|
+
function _object_without_properties$e(source, excluded) {
|
|
10405
10412
|
if (source == null)
|
|
10406
10413
|
return {};
|
|
10407
|
-
var target = _object_without_properties_loose$
|
|
10414
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
10408
10415
|
var key, i;
|
|
10409
10416
|
if (Object.getOwnPropertySymbols) {
|
|
10410
10417
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10419,7 +10426,7 @@ function _object_without_properties$f(source, excluded) {
|
|
|
10419
10426
|
}
|
|
10420
10427
|
return target;
|
|
10421
10428
|
}
|
|
10422
|
-
function _object_without_properties_loose$
|
|
10429
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
10423
10430
|
if (source == null)
|
|
10424
10431
|
return {};
|
|
10425
10432
|
var target = {};
|
|
@@ -10434,7 +10441,7 @@ function _object_without_properties_loose$f(source, excluded) {
|
|
|
10434
10441
|
return target;
|
|
10435
10442
|
}
|
|
10436
10443
|
var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10437
|
-
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$
|
|
10444
|
+
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$e(_param, [
|
|
10438
10445
|
"date",
|
|
10439
10446
|
"startDate",
|
|
10440
10447
|
"endDate",
|
|
@@ -10580,10 +10587,10 @@ function _object_spread_props$E(target, source) {
|
|
|
10580
10587
|
}
|
|
10581
10588
|
return target;
|
|
10582
10589
|
}
|
|
10583
|
-
function _object_without_properties$
|
|
10590
|
+
function _object_without_properties$d(source, excluded) {
|
|
10584
10591
|
if (source == null)
|
|
10585
10592
|
return {};
|
|
10586
|
-
var target = _object_without_properties_loose$
|
|
10593
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
10587
10594
|
var key, i;
|
|
10588
10595
|
if (Object.getOwnPropertySymbols) {
|
|
10589
10596
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10598,7 +10605,7 @@ function _object_without_properties$e(source, excluded) {
|
|
|
10598
10605
|
}
|
|
10599
10606
|
return target;
|
|
10600
10607
|
}
|
|
10601
|
-
function _object_without_properties_loose$
|
|
10608
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
10602
10609
|
if (source == null)
|
|
10603
10610
|
return {};
|
|
10604
10611
|
var target = {};
|
|
@@ -10613,7 +10620,7 @@ function _object_without_properties_loose$e(source, excluded) {
|
|
|
10613
10620
|
return target;
|
|
10614
10621
|
}
|
|
10615
10622
|
var SearchInput = function(_param) {
|
|
10616
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, props = _object_without_properties$
|
|
10623
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, props = _object_without_properties$d(_param, [
|
|
10617
10624
|
"isClearable",
|
|
10618
10625
|
"tweakStyles",
|
|
10619
10626
|
"testId",
|
|
@@ -10734,10 +10741,10 @@ function _object_spread$K(target) {
|
|
|
10734
10741
|
}
|
|
10735
10742
|
return target;
|
|
10736
10743
|
}
|
|
10737
|
-
function _object_without_properties$
|
|
10744
|
+
function _object_without_properties$c(source, excluded) {
|
|
10738
10745
|
if (source == null)
|
|
10739
10746
|
return {};
|
|
10740
|
-
var target = _object_without_properties_loose$
|
|
10747
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
10741
10748
|
var key, i;
|
|
10742
10749
|
if (Object.getOwnPropertySymbols) {
|
|
10743
10750
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10752,7 +10759,7 @@ function _object_without_properties$d(source, excluded) {
|
|
|
10752
10759
|
}
|
|
10753
10760
|
return target;
|
|
10754
10761
|
}
|
|
10755
|
-
function _object_without_properties_loose$
|
|
10762
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
10756
10763
|
if (source == null)
|
|
10757
10764
|
return {};
|
|
10758
10765
|
var target = {};
|
|
@@ -10855,7 +10862,7 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10855
10862
|
_this_props.active;
|
|
10856
10863
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
10857
10864
|
_this_props.options;
|
|
10858
|
-
var wrapperProps = _object_without_properties$
|
|
10865
|
+
var wrapperProps = _object_without_properties$c(_this_props, [
|
|
10859
10866
|
"active",
|
|
10860
10867
|
"elementType",
|
|
10861
10868
|
"children",
|
|
@@ -11457,10 +11464,10 @@ function _object_spread_props$B(target, source) {
|
|
|
11457
11464
|
}
|
|
11458
11465
|
return target;
|
|
11459
11466
|
}
|
|
11460
|
-
function _object_without_properties$
|
|
11467
|
+
function _object_without_properties$b(source, excluded) {
|
|
11461
11468
|
if (source == null)
|
|
11462
11469
|
return {};
|
|
11463
|
-
var target = _object_without_properties_loose$
|
|
11470
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
11464
11471
|
var key, i;
|
|
11465
11472
|
if (Object.getOwnPropertySymbols) {
|
|
11466
11473
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11475,7 +11482,7 @@ function _object_without_properties$c(source, excluded) {
|
|
|
11475
11482
|
}
|
|
11476
11483
|
return target;
|
|
11477
11484
|
}
|
|
11478
|
-
function _object_without_properties_loose$
|
|
11485
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
11479
11486
|
if (source == null)
|
|
11480
11487
|
return {};
|
|
11481
11488
|
var target = {};
|
|
@@ -11612,7 +11619,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
11612
11619
|
}
|
|
11613
11620
|
function Select(props) {
|
|
11614
11621
|
var _input_current;
|
|
11615
|
-
var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isActive = props.isActive, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$
|
|
11622
|
+
var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isActive = props.isActive, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$b(props, [
|
|
11616
11623
|
"options",
|
|
11617
11624
|
"isMultiSelect",
|
|
11618
11625
|
"value",
|
|
@@ -11650,7 +11657,7 @@ function Select(props) {
|
|
|
11650
11657
|
var classes = useStyles$D({
|
|
11651
11658
|
theme: tweakStyles
|
|
11652
11659
|
});
|
|
11653
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11660
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$b(_ref, [
|
|
11654
11661
|
"shouldRenderInList"
|
|
11655
11662
|
]);
|
|
11656
11663
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
@@ -12414,10 +12421,10 @@ function _object_spread_props$A(target, source) {
|
|
|
12414
12421
|
}
|
|
12415
12422
|
return target;
|
|
12416
12423
|
}
|
|
12417
|
-
function _object_without_properties$
|
|
12424
|
+
function _object_without_properties$a(source, excluded) {
|
|
12418
12425
|
if (source == null)
|
|
12419
12426
|
return {};
|
|
12420
|
-
var target = _object_without_properties_loose$
|
|
12427
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
12421
12428
|
var key, i;
|
|
12422
12429
|
if (Object.getOwnPropertySymbols) {
|
|
12423
12430
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12432,7 +12439,7 @@ function _object_without_properties$b(source, excluded) {
|
|
|
12432
12439
|
}
|
|
12433
12440
|
return target;
|
|
12434
12441
|
}
|
|
12435
|
-
function _object_without_properties_loose$
|
|
12442
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
12436
12443
|
if (source == null)
|
|
12437
12444
|
return {};
|
|
12438
12445
|
var target = {};
|
|
@@ -12463,7 +12470,7 @@ function _unsupported_iterable_to_array$i(o, minLen) {
|
|
|
12463
12470
|
return _array_like_to_array$i(o, minLen);
|
|
12464
12471
|
}
|
|
12465
12472
|
var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
12466
|
-
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$
|
|
12473
|
+
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$a(_param, [
|
|
12467
12474
|
"data",
|
|
12468
12475
|
"selectedDate",
|
|
12469
12476
|
"minDate",
|
|
@@ -13281,10 +13288,10 @@ function _object_spread_props$x(target, source) {
|
|
|
13281
13288
|
}
|
|
13282
13289
|
return target;
|
|
13283
13290
|
}
|
|
13284
|
-
function _object_without_properties$
|
|
13291
|
+
function _object_without_properties$9(source, excluded) {
|
|
13285
13292
|
if (source == null)
|
|
13286
13293
|
return {};
|
|
13287
|
-
var target = _object_without_properties_loose$
|
|
13294
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
13288
13295
|
var key, i;
|
|
13289
13296
|
if (Object.getOwnPropertySymbols) {
|
|
13290
13297
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -13299,7 +13306,7 @@ function _object_without_properties$a(source, excluded) {
|
|
|
13299
13306
|
}
|
|
13300
13307
|
return target;
|
|
13301
13308
|
}
|
|
13302
|
-
function _object_without_properties_loose$
|
|
13309
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
13303
13310
|
if (source == null)
|
|
13304
13311
|
return {};
|
|
13305
13312
|
var target = {};
|
|
@@ -13314,7 +13321,7 @@ function _object_without_properties_loose$a(source, excluded) {
|
|
|
13314
13321
|
return target;
|
|
13315
13322
|
}
|
|
13316
13323
|
var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
13317
|
-
var icon = _param.icon, _param_size = _param.size, size = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$
|
|
13324
|
+
var icon = _param.icon, _param_size = _param.size, size = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$9(_param, [
|
|
13318
13325
|
"icon",
|
|
13319
13326
|
"size",
|
|
13320
13327
|
"view",
|
|
@@ -14238,10 +14245,10 @@ function _object_spread$y(target) {
|
|
|
14238
14245
|
}
|
|
14239
14246
|
return target;
|
|
14240
14247
|
}
|
|
14241
|
-
function _object_without_properties$
|
|
14248
|
+
function _object_without_properties$8(source, excluded) {
|
|
14242
14249
|
if (source == null)
|
|
14243
14250
|
return {};
|
|
14244
|
-
var target = _object_without_properties_loose$
|
|
14251
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
14245
14252
|
var key, i;
|
|
14246
14253
|
if (Object.getOwnPropertySymbols) {
|
|
14247
14254
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -14256,7 +14263,7 @@ function _object_without_properties$9(source, excluded) {
|
|
|
14256
14263
|
}
|
|
14257
14264
|
return target;
|
|
14258
14265
|
}
|
|
14259
|
-
function _object_without_properties_loose$
|
|
14266
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
14260
14267
|
if (source == null)
|
|
14261
14268
|
return {};
|
|
14262
14269
|
var target = {};
|
|
@@ -14389,7 +14396,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
14389
14396
|
}
|
|
14390
14397
|
}
|
|
14391
14398
|
var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
14392
|
-
var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$
|
|
14399
|
+
var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$8(_param, [
|
|
14393
14400
|
"value",
|
|
14394
14401
|
"canBeFloat",
|
|
14395
14402
|
"canBeNegative",
|
|
@@ -19306,38 +19313,6 @@ function _object_spread_props$m(target, source) {
|
|
|
19306
19313
|
}
|
|
19307
19314
|
return target;
|
|
19308
19315
|
}
|
|
19309
|
-
function _object_without_properties$8(source, excluded) {
|
|
19310
|
-
if (source == null)
|
|
19311
|
-
return {};
|
|
19312
|
-
var target = _object_without_properties_loose$8(source, excluded);
|
|
19313
|
-
var key, i;
|
|
19314
|
-
if (Object.getOwnPropertySymbols) {
|
|
19315
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
19316
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
19317
|
-
key = sourceSymbolKeys[i];
|
|
19318
|
-
if (excluded.indexOf(key) >= 0)
|
|
19319
|
-
continue;
|
|
19320
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
19321
|
-
continue;
|
|
19322
|
-
target[key] = source[key];
|
|
19323
|
-
}
|
|
19324
|
-
}
|
|
19325
|
-
return target;
|
|
19326
|
-
}
|
|
19327
|
-
function _object_without_properties_loose$8(source, excluded) {
|
|
19328
|
-
if (source == null)
|
|
19329
|
-
return {};
|
|
19330
|
-
var target = {};
|
|
19331
|
-
var sourceKeys = Object.keys(source);
|
|
19332
|
-
var key, i;
|
|
19333
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
19334
|
-
key = sourceKeys[i];
|
|
19335
|
-
if (excluded.indexOf(key) >= 0)
|
|
19336
|
-
continue;
|
|
19337
|
-
target[key] = source[key];
|
|
19338
|
-
}
|
|
19339
|
-
return target;
|
|
19340
|
-
}
|
|
19341
19316
|
function FilterWrapper(param) {
|
|
19342
19317
|
var filter = param.filter, value = param.value, isDisabled = param.isDisabled, locale2 = param.locale, localeKey = param.localeKey, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
19343
19318
|
var classes = useStyles$m({
|
|
@@ -19375,17 +19350,12 @@ function FilterWrapper(param) {
|
|
|
19375
19350
|
canBeFlipped: true,
|
|
19376
19351
|
isDisabled: isBoolean || isDisabled,
|
|
19377
19352
|
tweakStyles: tweakWithPopupStyles,
|
|
19378
|
-
trigger: function(
|
|
19379
|
-
var isActive =
|
|
19380
|
-
_param.isDisabled;
|
|
19381
|
-
var props = _object_without_properties$8(_param, [
|
|
19382
|
-
"isActive",
|
|
19383
|
-
"isDisabled"
|
|
19384
|
-
]);
|
|
19353
|
+
trigger: function(param2) {
|
|
19354
|
+
var isActive = param2.triggerProps.isActive, referenceProps = param2.referenceProps;
|
|
19385
19355
|
var _obj2;
|
|
19386
19356
|
return /* @__PURE__ */ jsx("div", _object_spread_props$m(_object_spread$n({
|
|
19387
19357
|
className: clsx(classes.root, (_obj2 = {}, _define_property$o(_obj2, classes.noValue, !hasValue), _define_property$o(_obj2, classes.openNoValue, isActive && !hasValue), _define_property$o(_obj2, classes.withValue, !isActive && hasValue), _define_property$o(_obj2, classes.openWithValue, isActive && hasValue), _define_property$o(_obj2, classes.boolean, isBoolean), _define_property$o(_obj2, classes.disabled, isDisabled), _obj2))
|
|
19388
|
-
}, addDataTestId(testId), addDataAttributes(data),
|
|
19358
|
+
}, addDataTestId(testId), addDataAttributes(data), referenceProps), {
|
|
19389
19359
|
children: /* @__PURE__ */ jsxs("div", {
|
|
19390
19360
|
onClick: handleLabelClick,
|
|
19391
19361
|
className: clsx(classes.item, _define_property$o({}, classes.booleanItem, isBoolean)),
|
|
@@ -25968,7 +25938,8 @@ var useStyles$i = createThemedStyles("FlexibleTableCell", {
|
|
|
25968
25938
|
sticky: _object_spread_props$k(_object_spread$l({
|
|
25969
25939
|
zIndex: 19,
|
|
25970
25940
|
paddingLeft: 24,
|
|
25971
|
-
paddingRight: 12
|
|
25941
|
+
paddingRight: 12,
|
|
25942
|
+
left: 0
|
|
25972
25943
|
}, getTransition([
|
|
25973
25944
|
"box-shadow"
|
|
25974
25945
|
])), {
|
|
@@ -26069,7 +26040,7 @@ function _object_without_properties_loose$7(source, excluded) {
|
|
|
26069
26040
|
return target;
|
|
26070
26041
|
}
|
|
26071
26042
|
function FlexibleTableCell(_param) {
|
|
26072
|
-
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond,
|
|
26043
|
+
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$7(_param, [
|
|
26073
26044
|
"row",
|
|
26074
26045
|
"columnName",
|
|
26075
26046
|
"config",
|
|
@@ -26085,6 +26056,7 @@ function FlexibleTableCell(_param) {
|
|
|
26085
26056
|
var value = row[columnName];
|
|
26086
26057
|
var _config_columnName;
|
|
26087
26058
|
var _ref = (_config_columnName = config[columnName]) !== null && _config_columnName !== void 0 ? _config_columnName : {}, _ref_component = _ref.component, component = _ref_component === void 0 ? formatCellContent(value, config[columnName]) : _ref_component, left2 = _ref.left, right2 = _ref.right, position = _ref.position, cellAlign = _ref.cellAlign, cellVerticalAlign = _ref.cellVerticalAlign, shouldRenderDataId = _ref.shouldRenderDataId;
|
|
26059
|
+
var isSticky = isOldSticky || position === "sticky";
|
|
26088
26060
|
var Table = TableRenders[renderMode];
|
|
26089
26061
|
var _obj2;
|
|
26090
26062
|
return /* @__PURE__ */ jsx(Table.Cell, _object_spread_props$j(_object_spread$k({
|
|
@@ -26093,7 +26065,7 @@ function FlexibleTableCell(_param) {
|
|
|
26093
26065
|
textAlign: cellAlign,
|
|
26094
26066
|
position: isSticky ? "sticky" : position,
|
|
26095
26067
|
right: right2,
|
|
26096
|
-
left:
|
|
26068
|
+
left: left2,
|
|
26097
26069
|
verticalAlign: cellVerticalAlign
|
|
26098
26070
|
}
|
|
26099
26071
|
}, addDataAttributes({
|
|
@@ -26577,24 +26549,28 @@ function FlexibleTable(_param) {
|
|
|
26577
26549
|
children: /* @__PURE__ */ jsx(Table.Row, {
|
|
26578
26550
|
className: classes.headerRow,
|
|
26579
26551
|
children: columns.map(function(key, i) {
|
|
26580
|
-
var
|
|
26581
|
-
var
|
|
26552
|
+
var _config_key;
|
|
26553
|
+
var _ref = (_config_key = config === null || config === void 0 ? void 0 : config[key]) !== null && _config_key !== void 0 ? _config_key : {}, position = _ref.position, minWidth = _ref.minWidth, width = _ref.width, maxWidth = _ref.maxWidth, _ref_titleAlign = _ref.titleAlign, titleAlign = _ref_titleAlign === void 0 ? "left" : _ref_titleAlign, right2 = _ref.right, left2 = _ref.left, _ref_title = _ref.title, title = _ref_title === void 0 ? "" : _ref_title, shouldRenderDataId = _ref.shouldRenderDataId;
|
|
26554
|
+
var isSticky = position === "sticky" || isFirstColumnSticky && i === 0;
|
|
26582
26555
|
var _obj2;
|
|
26583
26556
|
return /* @__PURE__ */ jsx(Table.Header, _object_spread_props$h(_object_spread$i({
|
|
26584
|
-
className: clsx(classes.header, (_obj2 = {}, _define_property$j(_obj2, classes.headerSticky,
|
|
26557
|
+
className: clsx(classes.header, (_obj2 = {}, _define_property$j(_obj2, classes.headerSticky, isSticky), _define_property$j(_obj2, classes.headerSecond, isFirstColumnSticky && i === 1), _obj2)),
|
|
26585
26558
|
style: {
|
|
26586
|
-
minWidth
|
|
26587
|
-
width
|
|
26588
|
-
maxWidth
|
|
26589
|
-
textAlign:
|
|
26559
|
+
minWidth,
|
|
26560
|
+
width,
|
|
26561
|
+
maxWidth,
|
|
26562
|
+
textAlign: titleAlign,
|
|
26563
|
+
position: isSticky ? "sticky" : position,
|
|
26564
|
+
right: right2,
|
|
26565
|
+
left: left2
|
|
26590
26566
|
},
|
|
26591
26567
|
onClick: isNotEmpty(onHeadClick) ? function() {
|
|
26592
26568
|
return onHeadClick(key);
|
|
26593
26569
|
} : void 0
|
|
26594
26570
|
}, addDataAttributes({
|
|
26595
|
-
id:
|
|
26571
|
+
id: shouldRenderDataId ? key : void 0
|
|
26596
26572
|
})), {
|
|
26597
|
-
children: applyAction(
|
|
26573
|
+
children: applyAction(title, {
|
|
26598
26574
|
value: headerContent === null || headerContent === void 0 ? void 0 : headerContent[key]
|
|
26599
26575
|
})
|
|
26600
26576
|
}), key);
|
|
@@ -31162,16 +31138,13 @@ var NewMoreMenu = function(_param) {
|
|
|
31162
31138
|
isDisabled: isDisabled || isArrayEmpty(items),
|
|
31163
31139
|
tweakStyles: tweakWithPopupStyles
|
|
31164
31140
|
}, rest), {
|
|
31165
|
-
trigger: function(
|
|
31166
|
-
var
|
|
31167
|
-
"isActive",
|
|
31168
|
-
"isDisabled"
|
|
31169
|
-
]);
|
|
31141
|
+
trigger: function(param) {
|
|
31142
|
+
var triggerProps = param.triggerProps, referenceProps = param.referenceProps;
|
|
31170
31143
|
var _obj2;
|
|
31171
31144
|
return /* @__PURE__ */ jsx("button", _object_spread_props(_object_spread({
|
|
31172
|
-
className: clsx(classes.button, (_obj2 = {}, _define_property(_obj2, classes.hasCircle, hasDefaultStateBackground), _define_property(_obj2, classes.disabled,
|
|
31173
|
-
disabled:
|
|
31174
|
-
}, addDataTestId(testId), addDataAttributes(data),
|
|
31145
|
+
className: clsx(classes.button, (_obj2 = {}, _define_property(_obj2, classes.hasCircle, hasDefaultStateBackground), _define_property(_obj2, classes.disabled, triggerProps.isDisabled), _define_property(_obj2, classes.active, triggerProps.isActive), _obj2)),
|
|
31146
|
+
disabled: triggerProps.isDisabled
|
|
31147
|
+
}, addDataTestId(testId), addDataAttributes(data), referenceProps), {
|
|
31175
31148
|
children: /* @__PURE__ */ jsx("div", {
|
|
31176
31149
|
className: classes.icon,
|
|
31177
31150
|
children: /* @__PURE__ */ jsx(Icon, {
|