@ceed/ads 1.16.0 → 1.16.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/dist/components/FilterMenu/types.d.ts +1 -1
- package/dist/index.cjs +6 -4
- package/dist/index.js +6 -4
- package/framer/index.js +16 -16
- package/package.json +2 -2
|
@@ -24,7 +24,7 @@ export interface FilterRadioGroupItem extends FilterBaseItem<string | number> {
|
|
|
24
24
|
value: string | number;
|
|
25
25
|
}[];
|
|
26
26
|
}
|
|
27
|
-
export interface FilterDateRangeItem extends FilterBaseItem<[DateTime, DateTime]>, Pick<DateRangePickerProps, 'minDate' | 'maxDate' | 'disableFuture' | 'disablePast' | '
|
|
27
|
+
export interface FilterDateRangeItem extends FilterBaseItem<[DateTime, DateTime]>, Pick<DateRangePickerProps, 'minDate' | 'maxDate' | 'disableFuture' | 'disablePast' | 'displayFormat' | 'inputReadOnly' | 'hideClearButton'> {
|
|
28
28
|
type: 'date-range';
|
|
29
29
|
}
|
|
30
30
|
export interface FilterCurrencyInputItem extends FilterBaseItem<number>, Pick<CurrencyInputProps, 'max' | 'placeholder' | 'useMinorUnit' | 'currency'> {
|
package/dist/index.cjs
CHANGED
|
@@ -4783,7 +4783,6 @@ function DateRange(props) {
|
|
|
4783
4783
|
maxDate,
|
|
4784
4784
|
disableFuture,
|
|
4785
4785
|
disablePast,
|
|
4786
|
-
format = "YYYY/MM/DD",
|
|
4787
4786
|
displayFormat,
|
|
4788
4787
|
inputReadOnly,
|
|
4789
4788
|
hideClearButton
|
|
@@ -4881,13 +4880,16 @@ function DateRange(props) {
|
|
|
4881
4880
|
const [startDate, endDate] = dateRangeString.split(" - ");
|
|
4882
4881
|
if (startDate && endDate) {
|
|
4883
4882
|
const newValue = [startDate, endDate];
|
|
4884
|
-
|
|
4883
|
+
const hasChanged = !internalValue || internalValue[0] !== startDate || internalValue[1] !== endDate;
|
|
4884
|
+
if (hasChanged) {
|
|
4885
|
+
setInternalValue(newValue);
|
|
4886
|
+
}
|
|
4885
4887
|
}
|
|
4886
4888
|
} else if (!dateRangeString) {
|
|
4887
4889
|
setInternalValue(null);
|
|
4888
4890
|
}
|
|
4889
4891
|
},
|
|
4890
|
-
[setInternalValue]
|
|
4892
|
+
[setInternalValue, internalValue]
|
|
4891
4893
|
);
|
|
4892
4894
|
if (hidden) {
|
|
4893
4895
|
return null;
|
|
@@ -4901,7 +4903,7 @@ function DateRange(props) {
|
|
|
4901
4903
|
maxDate,
|
|
4902
4904
|
disableFuture,
|
|
4903
4905
|
disablePast,
|
|
4904
|
-
format,
|
|
4906
|
+
format: "YYYY-MM-DD",
|
|
4905
4907
|
displayFormat,
|
|
4906
4908
|
inputReadOnly,
|
|
4907
4909
|
hideClearButton
|
package/dist/index.js
CHANGED
|
@@ -4718,7 +4718,6 @@ function DateRange(props) {
|
|
|
4718
4718
|
maxDate,
|
|
4719
4719
|
disableFuture,
|
|
4720
4720
|
disablePast,
|
|
4721
|
-
format = "YYYY/MM/DD",
|
|
4722
4721
|
displayFormat,
|
|
4723
4722
|
inputReadOnly,
|
|
4724
4723
|
hideClearButton
|
|
@@ -4816,13 +4815,16 @@ function DateRange(props) {
|
|
|
4816
4815
|
const [startDate, endDate] = dateRangeString.split(" - ");
|
|
4817
4816
|
if (startDate && endDate) {
|
|
4818
4817
|
const newValue = [startDate, endDate];
|
|
4819
|
-
|
|
4818
|
+
const hasChanged = !internalValue || internalValue[0] !== startDate || internalValue[1] !== endDate;
|
|
4819
|
+
if (hasChanged) {
|
|
4820
|
+
setInternalValue(newValue);
|
|
4821
|
+
}
|
|
4820
4822
|
}
|
|
4821
4823
|
} else if (!dateRangeString) {
|
|
4822
4824
|
setInternalValue(null);
|
|
4823
4825
|
}
|
|
4824
4826
|
},
|
|
4825
|
-
[setInternalValue]
|
|
4827
|
+
[setInternalValue, internalValue]
|
|
4826
4828
|
);
|
|
4827
4829
|
if (hidden) {
|
|
4828
4830
|
return null;
|
|
@@ -4836,7 +4838,7 @@ function DateRange(props) {
|
|
|
4836
4838
|
maxDate,
|
|
4837
4839
|
disableFuture,
|
|
4838
4840
|
disablePast,
|
|
4839
|
-
format,
|
|
4841
|
+
format: "YYYY-MM-DD",
|
|
4840
4842
|
displayFormat,
|
|
4841
4843
|
inputReadOnly,
|
|
4842
4844
|
hideClearButton
|