@indigina/ui-kit 1.1.465 → 1.1.467

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.
@@ -11634,19 +11634,21 @@ class KitExcelExportService {
11634
11634
  case 'date':
11635
11635
  case 'dateTime': {
11636
11636
  const format = column.excelFormat || (column.type === 'date' ? KIT_DATE_FORMAT : KIT_DATETIME_FORMAT_LONG);
11637
- const dateValue = value ? this.convertToUtcDate(value) : undefined;
11637
+ const dateValue = value ? this.truncateToSeconds(this.convertToUtcDate(value)) : undefined;
11638
11638
  return { format, value: dateValue };
11639
11639
  }
11640
11640
  case 'dateLocal':
11641
11641
  case 'dateTimeLocal': {
11642
11642
  const format = column.excelFormat || (column.type === 'dateLocal' ? KIT_DATE_FORMAT : KIT_DATETIME_FORMAT_LONG);
11643
- const dateValue = value ? new Date(value) : undefined;
11643
+ const dateValue = value ? this.truncateToSeconds(new Date(value)) : undefined;
11644
11644
  return { format, value: dateValue };
11645
11645
  }
11646
11646
  case 'dateZone':
11647
11647
  case 'dateTimeZone': {
11648
11648
  const format = column.excelFormat || (column.type === 'dateZone' ? KIT_DATE_FORMAT : KIT_DATETIME_FORMAT_LONG);
11649
- const dateValue = value ? toZonedTime(new Date(value), userTimezone) : undefined;
11649
+ const dateValue = value
11650
+ ? this.truncateToSeconds(toZonedTime(new Date(value), userTimezone))
11651
+ : undefined;
11650
11652
  return { format, value: dateValue };
11651
11653
  }
11652
11654
  }
@@ -11670,6 +11672,11 @@ class KitExcelExportService {
11670
11672
  const timezoneOffset = date.getTimezoneOffset();
11671
11673
  return new Date(date.getTime() + timezoneOffset * 60 * 1000);
11672
11674
  }
11675
+ truncateToSeconds(date) {
11676
+ const result = new Date(date);
11677
+ result.setMilliseconds(0);
11678
+ return result;
11679
+ }
11673
11680
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: KitExcelExportService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
11674
11681
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: KitExcelExportService }); }
11675
11682
  }
@@ -13257,6 +13264,7 @@ class KitApiTokenMaintenanceFormComponent {
13257
13264
  this.isSaving = signal(false, ...(ngDevMode ? [{ debugName: "isSaving" }] : /* istanbul ignore next */ []));
13258
13265
  this.validators = [
13259
13266
  Validators.required,
13267
+ Validators.maxLength(256),
13260
13268
  kitWhitespaceValidator(),
13261
13269
  ];
13262
13270
  this.tokenValuePlaceholder = '••••••••••••••••••••';