@fkui/vue 6.37.0 → 6.39.0

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.
@@ -351,7 +351,7 @@ var FErrorListPageObject = class {
351
351
  getLinkByName(error) {
352
352
  let link = () => cy.get(`${this.selector} ${error}`);
353
353
  return cy.get(`${this.selector} a`).each((el) => {
354
- if (el.get(0).innerText.trim() === error) {
354
+ if (el.get(0).textContent.trim() === error) {
355
355
  link = () => el.get(0);
356
356
  }
357
357
  }).then(() => {
@@ -361,7 +361,7 @@ var FErrorListPageObject = class {
361
361
  hasError(error) {
362
362
  let hasSelectedError = false;
363
363
  return cy.get(`${this.selector} li`).each((el) => {
364
- if (el.get(0).innerText.trim() === error) {
364
+ if (el.get(0).textContent.trim() === error) {
365
365
  hasSelectedError = true;
366
366
  }
367
367
  }).then(() => {
@@ -499,7 +499,7 @@ var FExpandablePanelPageObject = class {
499
499
  let nrOfNotifications = 0;
500
500
  this.notificationIcon().invoke("text").then(
501
501
  (text) => text.replace(/(\d+)/, (match, matchGroup1) => {
502
- nrOfNotifications = parseInt(matchGroup1, 10);
502
+ nrOfNotifications = Number.parseInt(matchGroup1, 10);
503
503
  return matchGroup1;
504
504
  })
505
505
  );
@@ -641,7 +641,7 @@ var FProgressbarPageObject = class {
641
641
  */
642
642
  value() {
643
643
  return this.progressMeter().then((el) => {
644
- return parseInt(el[0].ariaValueNow ?? "0", 10);
644
+ return Number.parseInt(el[0].ariaValueNow ?? "0", 10);
645
645
  });
646
646
  }
647
647
  };
@@ -1369,7 +1369,7 @@ var FSelectFieldPageObject = class {
1369
1369
  listOfOptions() {
1370
1370
  const listItem = [];
1371
1371
  return cy.get(`${this.selector} select option`).not('[disabled="disabled"]').each((el) => {
1372
- return listItem.push(el.get(0).innerText.trim());
1372
+ return listItem.push(el.get(0).textContent.trim());
1373
1373
  }).then(() => listItem);
1374
1374
  }
1375
1375
  /**
@@ -1598,7 +1598,7 @@ var FInteractiveTablePageObject = class {
1598
1598
  iconName = "f-icon-sort";
1599
1599
  break;
1600
1600
  default:
1601
- throw Error("Invalid order");
1601
+ throw new Error("Invalid order");
1602
1602
  }
1603
1603
  return cy.get(
1604
1604
  `${this.selector} thead th:nth(${String(index)}) svg.${iconName}`
@@ -1971,11 +1971,15 @@ var CalendarPageObject = class {
1971
1971
  this.navigationBar.text().then((el) => {
1972
1972
  let currYear = 2023;
1973
1973
  let currentMonth = 0;
1974
- el.text().replace(/(\w+)\s+(\d+)/, (match, p1, p2) => {
1975
- currentMonth = monthList.findIndex((month) => month === p1);
1976
- currYear = parseInt(p2, 10);
1977
- return String(currYear);
1978
- });
1974
+ el.text().replace(
1975
+ /* eslint-disable-next-line sonarjs/slow-regex -- technical debt */
1976
+ /(\w+)\s+(\d+)/,
1977
+ (match, p1, p2) => {
1978
+ currentMonth = monthList.indexOf(p1);
1979
+ currYear = Number.parseInt(p2, 10);
1980
+ return String(currYear);
1981
+ }
1982
+ );
1979
1983
  const yearDiff = Math.abs(currYear - targetYear);
1980
1984
  const monthDiff = Math.abs(currentMonth - targetMonth);
1981
1985
  let diffInMonths = currYear > targetYear ? yearDiff * -12 : yearDiff * 12;