@churchillliving/se-ui-toolkit 6.53.64 → 6.53.69

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.
@@ -4586,12 +4586,18 @@
4586
4586
  // check the validation of the field
4587
4587
  GridComponent.prototype.gridValidation = function (columns, row) {
4588
4588
  if (!this.gridService.checkValidity(columns, row)) {
4589
+ var errorMessageDetails_1 = '';
4590
+ columns === null || columns === void 0 ? void 0 : columns.forEach(function (column) {
4591
+ if (column.errorMessage) {
4592
+ errorMessageDetails_1 = errorMessageDetails_1 ? errorMessageDetails_1 + ' , ' + column.errorMessage : column.errorMessage;
4593
+ }
4594
+ });
4589
4595
  var isRequired = columns.some(function (column) { return column.errorMessage && !row[column.field]; });
4590
4596
  if (isRequired) {
4591
- this.alertService.error('Required fields are missing', 'REQUIRED FIELD');
4597
+ this.alertService.error(errorMessageDetails_1, 'REQUIRED FIELD');
4592
4598
  }
4593
4599
  else {
4594
- this.alertService.error('Some fields are invalid', 'INVALID FIELD');
4600
+ this.alertService.error(errorMessageDetails_1, 'INVALID FIELD');
4595
4601
  }
4596
4602
  return false;
4597
4603
  }
@@ -5070,7 +5076,7 @@
5070
5076
  var newColumn = {};
5071
5077
  setTimeout(function () {
5072
5078
  newColumn = Object.assign({}, col);
5073
- }, col.type === exports.EGridColumnType.LOOKUP_INPUT ? 250 : 0);
5079
+ }, col.type === exports.EGridColumnType.LOOKUP_INPUT ? 350 : 0);
5074
5080
  //change filter calender format
5075
5081
  if (newColumn.type === 'date' && newColumn.value) {
5076
5082
  newColumn.value = this.datePipe.transform(col.value.toString().trim(), 'yyyy-MM-dd');
@@ -6453,15 +6459,22 @@
6453
6459
  var _this = this;
6454
6460
  var _a, _b, _c, _d, _e;
6455
6461
  var validity = true;
6462
+ var errorMessageDetails = '';
6456
6463
  (_a = this.form.formSections) === null || _a === void 0 ? void 0 : _a.forEach(function (formSection) {
6464
+ var _a;
6457
6465
  if (formSection.fields) {
6458
6466
  if (!_this.formService.checkValidity(formSection.fields)) {
6467
+ (_a = formSection.fields) === null || _a === void 0 ? void 0 : _a.forEach(function (formField) {
6468
+ if (formField.errorMessage) {
6469
+ errorMessageDetails = errorMessageDetails ? errorMessageDetails + " , " + formField.errorMessage : formField.errorMessage;
6470
+ }
6471
+ });
6459
6472
  var field = formSection.fields.some(function (field) { return field.requiredField && field.errorMessage && !field.value; });
6460
6473
  if (validity && field) {
6461
- _this.alertService.error('Required fields are missing', 'REQUIRED FIELD');
6474
+ _this.alertService.error(errorMessageDetails, 'REQUIRED FIELD');
6462
6475
  }
6463
6476
  else {
6464
- _this.alertService.error('Some fields are invalid', 'INVALID FIELD');
6477
+ _this.alertService.error(errorMessageDetails, 'INVALID FIELD');
6465
6478
  }
6466
6479
  validity = false;
6467
6480
  }