@kontur.candy/generator 5.78.1-diadoc-title-1.1 → 5.78.1-diadoc-title-1.3

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -46286,6 +46286,14 @@ class KCLangRuntimeUtils {
46286
46286
  if (isBigSource(left) && isBigSource(right)) {
46287
46287
  return (0,_Engine_src_Helpers_AutocalcCommonFunctions__WEBPACK_IMPORTED_MODULE_2__.wrapDecimalOperand)(left).cmp(right) === 0;
46288
46288
  }
46289
+ if (typeof left === "boolean" && typeof right === "string") {
46290
+ // NOTE Я буду гореть в аду за это, но теперь война за косистентность не моя
46291
+ return left.toString() === right;
46292
+ }
46293
+ if (typeof left === "string" && typeof right === "boolean") {
46294
+ // NOTE Я буду гореть в аду за это, но теперь война за косистентность не моя
46295
+ return left === right.toString();
46296
+ }
46289
46297
  return false;
46290
46298
  }
46291
46299
  ge(left, right) {
@@ -48770,6 +48778,9 @@ function isDate(date) {
48770
48778
  return date instanceof Date && !isNaN(date.getTime());
48771
48779
  }
48772
48780
  function convertDate(dateValue) {
48781
+ if (isDate(dateValue)) {
48782
+ return dateValue;
48783
+ }
48773
48784
  // dd.MM.yyyy
48774
48785
  if (_Engine_ValidationHelper__WEBPACK_IMPORTED_MODULE_0__.ValidationHelper.isDateFormat(dateValue)) {
48775
48786
  var _v$, _v$2, _v$3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.78.1-diadoc-title-1.1",
3
+ "version": "5.78.1-diadoc-title-1.3",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,