@wavemaker/app-runtime-wm-build 11.4.1-next.24708 → 11.4.1-next.24709

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.
@@ -32463,7 +32463,11 @@
32463
32463
  var value = _.get(dataObj, xKey);
32464
32464
  if (isLineTypeChart(this.type) && !core.isNumberType(this.xAxisDataType)) {
32465
32465
  this.xDataKeyArr.push(value);
32466
- return value;
32466
+ if (value instanceof Date) {
32467
+ return value;
32468
+ } else {
32469
+ return index;
32470
+ }
32467
32471
  }
32468
32472
  return value;
32469
32473
  };
@@ -51271,9 +51275,14 @@
51271
51275
  }));
51272
51276
  } else {
51273
51277
  var element = self.$element.find('[wmformfield][key="' + fieldName + '"]');
51274
- element[0].setAttribute("__errormsg", element[0].getAttribute("__validationId"));
51275
- (_a = element[0].querySelector("input")) === null || _a === void 0 ? void 0 : _a.setAttribute("aria-invalid", ngForm.invalid);
51276
- (_b = element[0].querySelector("input")) === null || _b === void 0 ? void 0 : _b.setAttribute("aria-describedby", element[0].getAttribute("__validationId"));
51278
+ if (!element.length) {
51279
+ element = self.$element.find('[wmformfield][name="' + fieldName + '"]');
51280
+ }
51281
+ if (element.length) {
51282
+ element[0].setAttribute("__errormsg", element[0].getAttribute("__validationId"));
51283
+ (_a = element[0].querySelector("input")) === null || _a === void 0 ? void 0 : _a.setAttribute("aria-invalid", ngForm.invalid);
51284
+ (_b = element[0].querySelector("input")) === null || _b === void 0 ? void 0 : _b.setAttribute("aria-describedby", element[0].getAttribute("__validationId"));
51285
+ }
51277
51286
  ngForm.markAsTouched();
51278
51287
  }
51279
51288
  };