@fctc/widget-logic 4.3.8 → 4.3.9
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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/widget.js +1 -1
- package/dist/widget.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6080,7 +6080,7 @@ var dateFieldController = (props) => {
|
|
|
6080
6080
|
return arr;
|
|
6081
6081
|
};
|
|
6082
6082
|
const formatDate = showTime ? "HH:mm:ss DD/MM/YYYY " : "DD/MM/YYYY";
|
|
6083
|
-
const formatDateParse = showTime ? "
|
|
6083
|
+
const formatDateParse = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
6084
6084
|
const fieldForCustom = widget === "datetime_custom" || widget === "date_custom";
|
|
6085
6085
|
const minNowValue = fieldForCustom && (min === DURATIONS.NOW ? true : typeof min === "string" && Object.keys(formValues)?.includes(min) && formValues?.[min] ? (0, import_moment.default)(formValues?.[min], formatDateParse).add(7, "hours") : null);
|
|
6086
6086
|
const maxNowValue = fieldForCustom && (max === DURATIONS.NOW ? true : typeof max === "string" && Object.keys(formValues)?.includes(max) && formValues?.[max] ? (0, import_moment.default)(formValues?.[max], formatDateParse).add(7, "hours") : null);
|
package/dist/index.mjs
CHANGED
|
@@ -6175,7 +6175,7 @@ var dateFieldController = (props) => {
|
|
|
6175
6175
|
return arr;
|
|
6176
6176
|
};
|
|
6177
6177
|
const formatDate = showTime ? "HH:mm:ss DD/MM/YYYY " : "DD/MM/YYYY";
|
|
6178
|
-
const formatDateParse = showTime ? "
|
|
6178
|
+
const formatDateParse = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
6179
6179
|
const fieldForCustom = widget === "datetime_custom" || widget === "date_custom";
|
|
6180
6180
|
const minNowValue = fieldForCustom && (min === DURATIONS.NOW ? true : typeof min === "string" && Object.keys(formValues)?.includes(min) && formValues?.[min] ? (0, import_moment.default)(formValues?.[min], formatDateParse).add(7, "hours") : null);
|
|
6181
6181
|
const maxNowValue = fieldForCustom && (max === DURATIONS.NOW ? true : typeof max === "string" && Object.keys(formValues)?.includes(max) && formValues?.[max] ? (0, import_moment.default)(formValues?.[max], formatDateParse).add(7, "hours") : null);
|
package/dist/widget.js
CHANGED
|
@@ -5306,7 +5306,7 @@ var dateFieldController = (props) => {
|
|
|
5306
5306
|
return arr;
|
|
5307
5307
|
};
|
|
5308
5308
|
const formatDate = showTime ? "HH:mm:ss DD/MM/YYYY " : "DD/MM/YYYY";
|
|
5309
|
-
const formatDateParse = showTime ? "
|
|
5309
|
+
const formatDateParse = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
5310
5310
|
const fieldForCustom = widget === "datetime_custom" || widget === "date_custom";
|
|
5311
5311
|
const minNowValue = fieldForCustom && (min === DURATIONS.NOW ? true : typeof min === "string" && Object.keys(formValues)?.includes(min) && formValues?.[min] ? (0, import_moment.default)(formValues?.[min], formatDateParse).add(7, "hours") : null);
|
|
5312
5312
|
const maxNowValue = fieldForCustom && (max === DURATIONS.NOW ? true : typeof max === "string" && Object.keys(formValues)?.includes(max) && formValues?.[max] ? (0, import_moment.default)(formValues?.[max], formatDateParse).add(7, "hours") : null);
|
package/dist/widget.mjs
CHANGED
|
@@ -5378,7 +5378,7 @@ var dateFieldController = (props) => {
|
|
|
5378
5378
|
return arr;
|
|
5379
5379
|
};
|
|
5380
5380
|
const formatDate = showTime ? "HH:mm:ss DD/MM/YYYY " : "DD/MM/YYYY";
|
|
5381
|
-
const formatDateParse = showTime ? "
|
|
5381
|
+
const formatDateParse = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
5382
5382
|
const fieldForCustom = widget === "datetime_custom" || widget === "date_custom";
|
|
5383
5383
|
const minNowValue = fieldForCustom && (min === DURATIONS.NOW ? true : typeof min === "string" && Object.keys(formValues)?.includes(min) && formValues?.[min] ? (0, import_moment.default)(formValues?.[min], formatDateParse).add(7, "hours") : null);
|
|
5384
5384
|
const maxNowValue = fieldForCustom && (max === DURATIONS.NOW ? true : typeof max === "string" && Object.keys(formValues)?.includes(max) && formValues?.[max] ? (0, import_moment.default)(formValues?.[max], formatDateParse).add(7, "hours") : null);
|