intelica-library-ui 0.1.49 → 0.1.51

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.
@@ -329,6 +329,7 @@ const RefreshTokenInterceptor = (req, next) => {
329
329
  let _request = req.clone();
330
330
  let authenticationLocation = `${configService.environment?.authenticationWeb}?callback=${window.location.href}&clientID=${configService.environment?.clientID}`;
331
331
  let path = `${configService.environment?.authenticationPath ?? ""}/Authenticate/ValidateToken`;
332
+ var authenticationClientID = configService.environment?.clientID ?? "";
332
333
  let validateTokenQuery = {
333
334
  token: getCookie("token") ?? "",
334
335
  refreshToken: getCookie("refreshToken") ?? "",
@@ -338,6 +339,7 @@ const RefreshTokenInterceptor = (req, next) => {
338
339
  controller: "",
339
340
  httpVerb: "GET",
340
341
  businessUserClientGroupID: getCookie("businessUserClientGroupID") ?? "",
342
+ access: authenticationClientID == "" ? "" : getCookie(authenticationClientID) ?? "",
341
343
  };
342
344
  if (!req.url.includes("ValidateToken") && !req.url.includes("environment.json") && !req.url.includes("GetAuthenticationFromCache"))
343
345
  return from(httpClient.post(path, validateTokenQuery)).pipe(switchMap((response) => {
@@ -1472,8 +1474,6 @@ class TableComponent {
1472
1474
  this.ColumnList = this.Columns.toArray();
1473
1475
  this.ColumnGroupList = this.ColumnGroups.toArray();
1474
1476
  this.RowResumenList = this.RowResumenGroups.toArray();
1475
- console.log(this.ColumnList);
1476
- console.log(this.RowResumenList);
1477
1477
  }
1478
1478
  LoadSearchOptions() {
1479
1479
  this.ListSearchOptionsSimple = this.ListSearchOptions.map(item => ({
@@ -2526,9 +2526,10 @@ class HtmlToExcelService {
2526
2526
  worksheet.columns.forEach((column, index) => {
2527
2527
  if (!column.values)
2528
2528
  return;
2529
- let columnWidth = columns[index].width ?? Math.max(...column.values.map(v => (v ? v.toString().length : 0)).filter(v => typeof v === "number"), columns[index].displayColumnName.length) + 2;
2529
+ let columnWidth = columns[index].width ?? Math.max(...column.values.map(v => (v ? v.toString().length : 0)).filter(v => typeof v === "number"), columns[index].displayColumnName.length) * 1.2;
2530
2530
  column.width = Math.min(Math.max(columnWidth, 5), 100);
2531
2531
  column.alignment = columns[index].isNumber ? { vertical: "middle", horizontal: "right", wrapText: true } : { vertical: "middle", horizontal: "left", wrapText: true };
2532
+ console.log(column.width, column);
2532
2533
  });
2533
2534
  worksheet.eachRow((row, rowIndex) => {
2534
2535
  if (rowIndex === 1)