@fctc/widget-logic 4.3.7 → 4.3.8

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
@@ -6079,8 +6079,8 @@ var dateFieldController = (props) => {
6079
6079
  }
6080
6080
  return arr;
6081
6081
  };
6082
- const formatDate = showTime ? "DD/MM/YYYY HH:mm:ss" : "DD/MM/YYYY";
6083
- const formatDateParse = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
6082
+ const formatDate = showTime ? "HH:mm:ss DD/MM/YYYY " : "DD/MM/YYYY";
6083
+ const formatDateParse = showTime ? "HH:mm:ss YYYY-MM-DD " : "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
@@ -6174,8 +6174,8 @@ var dateFieldController = (props) => {
6174
6174
  }
6175
6175
  return arr;
6176
6176
  };
6177
- const formatDate = showTime ? "DD/MM/YYYY HH:mm:ss" : "DD/MM/YYYY";
6178
- const formatDateParse = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
6177
+ const formatDate = showTime ? "HH:mm:ss DD/MM/YYYY " : "DD/MM/YYYY";
6178
+ const formatDateParse = showTime ? "HH:mm:ss YYYY-MM-DD " : "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
@@ -5305,8 +5305,8 @@ var dateFieldController = (props) => {
5305
5305
  }
5306
5306
  return arr;
5307
5307
  };
5308
- const formatDate = showTime ? "DD/MM/YYYY HH:mm:ss" : "DD/MM/YYYY";
5309
- const formatDateParse = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
5308
+ const formatDate = showTime ? "HH:mm:ss DD/MM/YYYY " : "DD/MM/YYYY";
5309
+ const formatDateParse = showTime ? "HH:mm:ss YYYY-MM-DD " : "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
@@ -5377,8 +5377,8 @@ var dateFieldController = (props) => {
5377
5377
  }
5378
5378
  return arr;
5379
5379
  };
5380
- const formatDate = showTime ? "DD/MM/YYYY HH:mm:ss" : "DD/MM/YYYY";
5381
- const formatDateParse = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
5380
+ const formatDate = showTime ? "HH:mm:ss DD/MM/YYYY " : "DD/MM/YYYY";
5381
+ const formatDateParse = showTime ? "HH:mm:ss YYYY-MM-DD " : "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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "4.3.7",
3
+ "version": "4.3.8",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",