sag_components 2.0.0-beta352 → 2.0.0-beta353
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/index.esm.js
CHANGED
|
@@ -24884,12 +24884,23 @@ const SelectedOptionItem = styled.div`
|
|
|
24884
24884
|
height: 20px;
|
|
24885
24885
|
white-space: nowrap;
|
|
24886
24886
|
flex-shrink: 0;
|
|
24887
|
-
width:
|
|
24888
|
-
max-width:
|
|
24889
|
-
min-width:
|
|
24887
|
+
width: 65px;
|
|
24888
|
+
max-width: 65px;
|
|
24889
|
+
min-width: 65px;
|
|
24890
24890
|
overflow: hidden;
|
|
24891
24891
|
text-overflow: ellipsis;
|
|
24892
24892
|
box-sizing: border-box;
|
|
24893
|
+
|
|
24894
|
+
/* The label shrinks with ellipsis so the X never gets clipped. */
|
|
24895
|
+
& > span {
|
|
24896
|
+
min-width: 0;
|
|
24897
|
+
overflow: hidden;
|
|
24898
|
+
text-overflow: ellipsis;
|
|
24899
|
+
white-space: nowrap;
|
|
24900
|
+
}
|
|
24901
|
+
& > svg {
|
|
24902
|
+
flex-shrink: 0;
|
|
24903
|
+
}
|
|
24893
24904
|
`;
|
|
24894
24905
|
const SelectedOptionCount = styled.div`
|
|
24895
24906
|
display: flex;
|
|
@@ -25066,7 +25077,7 @@ const QuickFilterDropdownMultiSelection = _ref => {
|
|
|
25066
25077
|
inputRef?.current?.focus();
|
|
25067
25078
|
}
|
|
25068
25079
|
}
|
|
25069
|
-
}, option.label && option.label?.length > 8 ? `${option.label?.substring(0, 8)}...` : option.label, /*#__PURE__*/React$1.createElement(CloseXIcon, {
|
|
25080
|
+
}, /*#__PURE__*/React$1.createElement("span", null, option.label && option.label?.length > 8 ? `${option.label?.substring(0, 8)}...` : option.label), /*#__PURE__*/React$1.createElement(CloseXIcon, {
|
|
25070
25081
|
width: "8px",
|
|
25071
25082
|
height: "8px",
|
|
25072
25083
|
fill: "#212121"
|
|
@@ -40977,7 +40988,8 @@ const RangePop = props => {
|
|
|
40977
40988
|
isValid
|
|
40978
40989
|
},
|
|
40979
40990
|
trigger,
|
|
40980
|
-
setValue
|
|
40991
|
+
setValue,
|
|
40992
|
+
getValues
|
|
40981
40993
|
} = useForm({
|
|
40982
40994
|
mode: "onChange",
|
|
40983
40995
|
// Validate on change
|
|
@@ -41065,8 +41077,8 @@ const RangePop = props => {
|
|
|
41065
41077
|
return true;
|
|
41066
41078
|
},
|
|
41067
41079
|
rangeValidation: value => {
|
|
41068
|
-
if (!isCustomRange || !value ||
|
|
41069
|
-
const fromValue =
|
|
41080
|
+
if (!isCustomRange || !value || idx !== 1) return true;
|
|
41081
|
+
const fromValue = getValues("field_0");
|
|
41070
41082
|
if (fromValue && fromValue !== "") {
|
|
41071
41083
|
const numFrom = Number(fromValue);
|
|
41072
41084
|
const numTo = Number(value);
|
|
@@ -41107,7 +41119,7 @@ const RangePop = props => {
|
|
|
41107
41119
|
}, /*#__PURE__*/React$1.createElement(Controller, {
|
|
41108
41120
|
name: `field_${idx}`,
|
|
41109
41121
|
control: control,
|
|
41110
|
-
rules: getValidationRules(param),
|
|
41122
|
+
rules: getValidationRules(param, idx),
|
|
41111
41123
|
render: _ref => {
|
|
41112
41124
|
let {
|
|
41113
41125
|
field
|
|
@@ -41118,8 +41130,7 @@ const RangePop = props => {
|
|
|
41118
41130
|
error: !!errors[`field_${idx}`],
|
|
41119
41131
|
onChange: e => {
|
|
41120
41132
|
field.onChange(e.target.value);
|
|
41121
|
-
|
|
41122
|
-
if (param.label === "From") {
|
|
41133
|
+
if (idx === 0) {
|
|
41123
41134
|
trigger(`field_1`);
|
|
41124
41135
|
}
|
|
41125
41136
|
},
|