sales-frontend-design-system 0.0.140 → 0.0.141
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.cjs.js +8 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -14
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -4964,6 +4964,9 @@ function DatePickerRangeRenew(props) {
|
|
|
4964
4964
|
},
|
|
4965
4965
|
validatorName: "datePickerStart",
|
|
4966
4966
|
validator: () => {
|
|
4967
|
+
if (props?.startDateProps?.validator) {
|
|
4968
|
+
return props?.startDateProps?.validator();
|
|
4969
|
+
}
|
|
4967
4970
|
if (!endDate || !startDate) {
|
|
4968
4971
|
return true;
|
|
4969
4972
|
}
|
|
@@ -4972,16 +4975,7 @@ function DatePickerRangeRenew(props) {
|
|
|
4972
4975
|
}
|
|
4973
4976
|
return true;
|
|
4974
4977
|
},
|
|
4975
|
-
|
|
4976
|
-
...props?.startDateProps?.calendarProps
|
|
4977
|
-
// max: endDate
|
|
4978
|
-
},
|
|
4979
|
-
navigationProps: {
|
|
4980
|
-
headerTitle: "\uD0C0\uC774\uD2C0..",
|
|
4981
|
-
calendarTitle: "test",
|
|
4982
|
-
navigationType: "year-and-month"
|
|
4983
|
-
},
|
|
4984
|
-
mobile: true
|
|
4978
|
+
...props?.startDateProps
|
|
4985
4979
|
};
|
|
4986
4980
|
const endDateProps = {
|
|
4987
4981
|
inputFormat: "YY.MM.DD",
|
|
@@ -4990,6 +4984,9 @@ function DatePickerRangeRenew(props) {
|
|
|
4990
4984
|
},
|
|
4991
4985
|
validatorName: "datePickerEnd",
|
|
4992
4986
|
validator: () => {
|
|
4987
|
+
if (props?.endDateProps?.validator) {
|
|
4988
|
+
return props?.endDateProps?.validator();
|
|
4989
|
+
}
|
|
4993
4990
|
if (!endDate || !startDate) {
|
|
4994
4991
|
return true;
|
|
4995
4992
|
}
|
|
@@ -4998,10 +4995,7 @@ function DatePickerRangeRenew(props) {
|
|
|
4998
4995
|
}
|
|
4999
4996
|
return true;
|
|
5000
4997
|
},
|
|
5001
|
-
|
|
5002
|
-
...props?.endDateProps?.calendarProps
|
|
5003
|
-
// min: startDate
|
|
5004
|
-
}
|
|
4998
|
+
...props?.endDateProps
|
|
5005
4999
|
};
|
|
5006
5000
|
useFormValidator({ name: startDateProps.validatorName, validator: startDateProps.validator });
|
|
5007
5001
|
useFormValidator({ name: endDateProps.validatorName, validator: endDateProps.validator });
|