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.js
CHANGED
|
@@ -24894,12 +24894,23 @@ const SelectedOptionItem = styled__default["default"].div`
|
|
|
24894
24894
|
height: 20px;
|
|
24895
24895
|
white-space: nowrap;
|
|
24896
24896
|
flex-shrink: 0;
|
|
24897
|
-
width:
|
|
24898
|
-
max-width:
|
|
24899
|
-
min-width:
|
|
24897
|
+
width: 65px;
|
|
24898
|
+
max-width: 65px;
|
|
24899
|
+
min-width: 65px;
|
|
24900
24900
|
overflow: hidden;
|
|
24901
24901
|
text-overflow: ellipsis;
|
|
24902
24902
|
box-sizing: border-box;
|
|
24903
|
+
|
|
24904
|
+
/* The label shrinks with ellipsis so the X never gets clipped. */
|
|
24905
|
+
& > span {
|
|
24906
|
+
min-width: 0;
|
|
24907
|
+
overflow: hidden;
|
|
24908
|
+
text-overflow: ellipsis;
|
|
24909
|
+
white-space: nowrap;
|
|
24910
|
+
}
|
|
24911
|
+
& > svg {
|
|
24912
|
+
flex-shrink: 0;
|
|
24913
|
+
}
|
|
24903
24914
|
`;
|
|
24904
24915
|
const SelectedOptionCount = styled__default["default"].div`
|
|
24905
24916
|
display: flex;
|
|
@@ -25076,7 +25087,7 @@ const QuickFilterDropdownMultiSelection = _ref => {
|
|
|
25076
25087
|
inputRef?.current?.focus();
|
|
25077
25088
|
}
|
|
25078
25089
|
}
|
|
25079
|
-
}, option.label && option.label?.length > 8 ? `${option.label?.substring(0, 8)}...` : option.label, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, {
|
|
25090
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, option.label && option.label?.length > 8 ? `${option.label?.substring(0, 8)}...` : option.label), /*#__PURE__*/React__default["default"].createElement(CloseXIcon, {
|
|
25080
25091
|
width: "8px",
|
|
25081
25092
|
height: "8px",
|
|
25082
25093
|
fill: "#212121"
|
|
@@ -40987,7 +40998,8 @@ const RangePop = props => {
|
|
|
40987
40998
|
isValid
|
|
40988
40999
|
},
|
|
40989
41000
|
trigger,
|
|
40990
|
-
setValue
|
|
41001
|
+
setValue,
|
|
41002
|
+
getValues
|
|
40991
41003
|
} = useForm({
|
|
40992
41004
|
mode: "onChange",
|
|
40993
41005
|
// Validate on change
|
|
@@ -41075,8 +41087,8 @@ const RangePop = props => {
|
|
|
41075
41087
|
return true;
|
|
41076
41088
|
},
|
|
41077
41089
|
rangeValidation: value => {
|
|
41078
|
-
if (!isCustomRange || !value ||
|
|
41079
|
-
const fromValue =
|
|
41090
|
+
if (!isCustomRange || !value || idx !== 1) return true;
|
|
41091
|
+
const fromValue = getValues("field_0");
|
|
41080
41092
|
if (fromValue && fromValue !== "") {
|
|
41081
41093
|
const numFrom = Number(fromValue);
|
|
41082
41094
|
const numTo = Number(value);
|
|
@@ -41117,7 +41129,7 @@ const RangePop = props => {
|
|
|
41117
41129
|
}, /*#__PURE__*/React__default["default"].createElement(Controller, {
|
|
41118
41130
|
name: `field_${idx}`,
|
|
41119
41131
|
control: control,
|
|
41120
|
-
rules: getValidationRules(param),
|
|
41132
|
+
rules: getValidationRules(param, idx),
|
|
41121
41133
|
render: _ref => {
|
|
41122
41134
|
let {
|
|
41123
41135
|
field
|
|
@@ -41128,8 +41140,7 @@ const RangePop = props => {
|
|
|
41128
41140
|
error: !!errors[`field_${idx}`],
|
|
41129
41141
|
onChange: e => {
|
|
41130
41142
|
field.onChange(e.target.value);
|
|
41131
|
-
|
|
41132
|
-
if (param.label === "From") {
|
|
41143
|
+
if (idx === 0) {
|
|
41133
41144
|
trigger(`field_1`);
|
|
41134
41145
|
}
|
|
41135
41146
|
},
|