@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.
@@ -272,7 +272,7 @@ var FErrorListPageObject = class {
272
272
  getLinkByName(error) {
273
273
  let link = () => cy.get(`${this.selector} ${error}`);
274
274
  return cy.get(`${this.selector} a`).each((el) => {
275
- if (el.get(0).innerText.trim() === error) {
275
+ if (el.get(0).textContent.trim() === error) {
276
276
  link = () => el.get(0);
277
277
  }
278
278
  }).then(() => {
@@ -282,7 +282,7 @@ var FErrorListPageObject = class {
282
282
  hasError(error) {
283
283
  let hasSelectedError = false;
284
284
  return cy.get(`${this.selector} li`).each((el) => {
285
- if (el.get(0).innerText.trim() === error) {
285
+ if (el.get(0).textContent.trim() === error) {
286
286
  hasSelectedError = true;
287
287
  }
288
288
  }).then(() => {
@@ -420,7 +420,7 @@ var FExpandablePanelPageObject = class {
420
420
  let nrOfNotifications = 0;
421
421
  this.notificationIcon().invoke("text").then(
422
422
  (text) => text.replace(/(\d+)/, (match, matchGroup1) => {
423
- nrOfNotifications = parseInt(matchGroup1, 10);
423
+ nrOfNotifications = Number.parseInt(matchGroup1, 10);
424
424
  return matchGroup1;
425
425
  })
426
426
  );
@@ -562,7 +562,7 @@ var FProgressbarPageObject = class {
562
562
  */
563
563
  value() {
564
564
  return this.progressMeter().then((el) => {
565
- return parseInt(el[0].ariaValueNow ?? "0", 10);
565
+ return Number.parseInt(el[0].ariaValueNow ?? "0", 10);
566
566
  });
567
567
  }
568
568
  };
@@ -1290,7 +1290,7 @@ var FSelectFieldPageObject = class {
1290
1290
  listOfOptions() {
1291
1291
  const listItem = [];
1292
1292
  return cy.get(`${this.selector} select option`).not('[disabled="disabled"]').each((el) => {
1293
- return listItem.push(el.get(0).innerText.trim());
1293
+ return listItem.push(el.get(0).textContent.trim());
1294
1294
  }).then(() => listItem);
1295
1295
  }
1296
1296
  /**
@@ -1519,7 +1519,7 @@ var FInteractiveTablePageObject = class {
1519
1519
  iconName = "f-icon-sort";
1520
1520
  break;
1521
1521
  default:
1522
- throw Error("Invalid order");
1522
+ throw new Error("Invalid order");
1523
1523
  }
1524
1524
  return cy.get(
1525
1525
  `${this.selector} thead th:nth(${String(index)}) svg.${iconName}`
@@ -1892,11 +1892,15 @@ var CalendarPageObject = class {
1892
1892
  this.navigationBar.text().then((el) => {
1893
1893
  let currYear = 2023;
1894
1894
  let currentMonth = 0;
1895
- el.text().replace(/(\w+)\s+(\d+)/, (match, p1, p2) => {
1896
- currentMonth = monthList.findIndex((month) => month === p1);
1897
- currYear = parseInt(p2, 10);
1898
- return String(currYear);
1899
- });
1895
+ el.text().replace(
1896
+ /* eslint-disable-next-line sonarjs/slow-regex -- technical debt */
1897
+ /(\w+)\s+(\d+)/,
1898
+ (match, p1, p2) => {
1899
+ currentMonth = monthList.indexOf(p1);
1900
+ currYear = Number.parseInt(p2, 10);
1901
+ return String(currYear);
1902
+ }
1903
+ );
1900
1904
  const yearDiff = Math.abs(currYear - targetYear);
1901
1905
  const monthDiff = Math.abs(currentMonth - targetMonth);
1902
1906
  let diffInMonths = currYear > targetYear ? yearDiff * -12 : yearDiff * 12;