@fkui/vue 6.20.0 → 6.22.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.
- package/dist/cjs/cypress.cjs.js +25 -21
- package/dist/cjs/cypress.cjs.js.map +2 -2
- package/dist/cjs/index.cjs.js +1791 -1787
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/cypress.esm.js +25 -21
- package/dist/esm/cypress.esm.js.map +2 -2
- package/dist/esm/index.esm.js +1793 -1789
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/index.d.ts +8973 -8602
- package/dist/types/tsdoc-metadata.json +1 -1
- package/htmlvalidate/rules/classdeprecated.rule.js +1 -1
- package/htmlvalidate/rules/finteractivetable-checkbox-description.rule.js +1 -1
- package/htmlvalidate/rules/index.js +4 -4
- package/package.json +5 -5
package/dist/esm/cypress.esm.js
CHANGED
|
@@ -64,7 +64,7 @@ var FCheckboxFieldPageObject = class {
|
|
|
64
64
|
*/
|
|
65
65
|
constructor(selector, index) {
|
|
66
66
|
if (index) {
|
|
67
|
-
this.selector = `${selector}:nth(${index})`;
|
|
67
|
+
this.selector = `${selector}:nth(${String(index)})`;
|
|
68
68
|
} else {
|
|
69
69
|
this.selector = selector;
|
|
70
70
|
}
|
|
@@ -232,7 +232,7 @@ var FContextMenuPageObject = class {
|
|
|
232
232
|
*/
|
|
233
233
|
getItemLink(index) {
|
|
234
234
|
return cy.get(
|
|
235
|
-
`${this.selector} .contextmenu__list__item a:nth(${index})`
|
|
235
|
+
`${this.selector} .contextmenu__list__item a:nth(${String(index)})`
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
};
|
|
@@ -261,7 +261,7 @@ var FErrorListPageObject = class {
|
|
|
261
261
|
return cy.get(`${this.selector} a`);
|
|
262
262
|
}
|
|
263
263
|
getLink(index) {
|
|
264
|
-
return cy.get(`${this.selector} a:nth(${index})`);
|
|
264
|
+
return cy.get(`${this.selector} a:nth(${String(index)})`);
|
|
265
265
|
}
|
|
266
266
|
getLinkByName(error) {
|
|
267
267
|
let link = () => cy.get(`${this.selector} ${error}`);
|
|
@@ -446,7 +446,7 @@ var FRadioFieldPageObject = class {
|
|
|
446
446
|
*/
|
|
447
447
|
constructor(selector, index) {
|
|
448
448
|
if (index) {
|
|
449
|
-
this.selector = `${selector}:nth(${index})`;
|
|
449
|
+
this.selector = `${selector}:nth(${String(index)})`;
|
|
450
450
|
} else {
|
|
451
451
|
this.selector = selector;
|
|
452
452
|
}
|
|
@@ -651,7 +651,7 @@ var FListItemPageObject = class {
|
|
|
651
651
|
* @param index - the index of matched li:s.
|
|
652
652
|
*/
|
|
653
653
|
constructor(selector, index) {
|
|
654
|
-
this.selector = `${selector}:nth(${index})`;
|
|
654
|
+
this.selector = `${selector}:nth(${String(index)})`;
|
|
655
655
|
this.index = index;
|
|
656
656
|
this.el = () => cy.get(this.selector);
|
|
657
657
|
}
|
|
@@ -887,7 +887,7 @@ var IPopupMenuPageObject = class {
|
|
|
887
887
|
*/
|
|
888
888
|
getItemLink(index) {
|
|
889
889
|
return cy.get(
|
|
890
|
-
`${this.selector} .ipopupmenu__list__item a:nth(${index})`
|
|
890
|
+
`${this.selector} .ipopupmenu__list__item a:nth(${String(index)})`
|
|
891
891
|
);
|
|
892
892
|
}
|
|
893
893
|
/**
|
|
@@ -949,7 +949,7 @@ var FNavigationMenuPageobject = class {
|
|
|
949
949
|
*/
|
|
950
950
|
itemLink(index) {
|
|
951
951
|
return cy.get(
|
|
952
|
-
`${this.selector} .imenu__list__item:not(.imenu__list__item--hidden) a:nth(${index})`
|
|
952
|
+
`${this.selector} .imenu__list__item:not(.imenu__list__item--hidden) a:nth(${String(index)})`
|
|
953
953
|
);
|
|
954
954
|
}
|
|
955
955
|
/**
|
|
@@ -1375,8 +1375,8 @@ var FInteractiveTablePageObject = class {
|
|
|
1375
1375
|
[
|
|
1376
1376
|
this.selector,
|
|
1377
1377
|
`tbody`,
|
|
1378
|
-
`tr:not(.table__expandable-row--collapsed):nth(${rowIndex})`,
|
|
1379
|
-
`> .table__column:nth(${colIndex})`
|
|
1378
|
+
`tr:not(.table__expandable-row--collapsed):nth(${String(rowIndex)})`,
|
|
1379
|
+
`> .table__column:nth(${String(colIndex)})`
|
|
1380
1380
|
].join(" ")
|
|
1381
1381
|
);
|
|
1382
1382
|
}
|
|
@@ -1399,7 +1399,9 @@ var FInteractiveTablePageObject = class {
|
|
|
1399
1399
|
*/
|
|
1400
1400
|
header(col) {
|
|
1401
1401
|
const index = col - 1;
|
|
1402
|
-
return cy.get(
|
|
1402
|
+
return cy.get(
|
|
1403
|
+
`${this.selector} thead .table__column:nth(${String(index)})`
|
|
1404
|
+
);
|
|
1403
1405
|
}
|
|
1404
1406
|
/**
|
|
1405
1407
|
* Get all table headers (`<th>` in `<thead>`).
|
|
@@ -1417,7 +1419,7 @@ var FInteractiveTablePageObject = class {
|
|
|
1417
1419
|
* @param index - Row number (0-indexed).
|
|
1418
1420
|
*/
|
|
1419
1421
|
row(index) {
|
|
1420
|
-
return cy.get(`${this.selector} tbody tr:nth(${index})`);
|
|
1422
|
+
return cy.get(`${this.selector} tbody tr:nth(${String(index)})`);
|
|
1421
1423
|
}
|
|
1422
1424
|
/**
|
|
1423
1425
|
* Get all table body rows (`<tr>` in `<tbody>`).
|
|
@@ -1447,7 +1449,7 @@ var FInteractiveTablePageObject = class {
|
|
|
1447
1449
|
[
|
|
1448
1450
|
this.selector,
|
|
1449
1451
|
`tbody`,
|
|
1450
|
-
`tr:not(.table__expandable-row--collapsed):nth(${index})`,
|
|
1452
|
+
`tr:not(.table__expandable-row--collapsed):nth(${String(index)})`,
|
|
1451
1453
|
`.checkbox`
|
|
1452
1454
|
].join(" ")
|
|
1453
1455
|
);
|
|
@@ -1477,7 +1479,7 @@ var FInteractiveTablePageObject = class {
|
|
|
1477
1479
|
throw Error("Invalid order");
|
|
1478
1480
|
}
|
|
1479
1481
|
return cy.get(
|
|
1480
|
-
`${this.selector} thead th:nth(${index}) svg.${iconName}`
|
|
1482
|
+
`${this.selector} thead th:nth(${String(index)}) svg.${iconName}`
|
|
1481
1483
|
);
|
|
1482
1484
|
}
|
|
1483
1485
|
/**
|
|
@@ -1513,7 +1515,7 @@ var FTableColumnPageObject = class {
|
|
|
1513
1515
|
el;
|
|
1514
1516
|
index;
|
|
1515
1517
|
constructor(selector, index) {
|
|
1516
|
-
this.selector = `${selector}:nth(${index})`;
|
|
1518
|
+
this.selector = `${selector}:nth(${String(index)})`;
|
|
1517
1519
|
this.index = index;
|
|
1518
1520
|
this.el = () => cy.get(this.selector);
|
|
1519
1521
|
}
|
|
@@ -1521,7 +1523,7 @@ var FTableColumnPageObject = class {
|
|
|
1521
1523
|
* @deprecated Use ´FInteractiveTablePageObject.cell()´ instead. Deprecated since v6.11.0.
|
|
1522
1524
|
*/
|
|
1523
1525
|
tableRowBodyContent(position) {
|
|
1524
|
-
return cy.get(`${this.selector} td:nth(${position})`);
|
|
1526
|
+
return cy.get(`${this.selector} td:nth(${String(position)})`);
|
|
1525
1527
|
}
|
|
1526
1528
|
/**
|
|
1527
1529
|
* @deprecated Use ´FInteractiveTablePageObject.header()´ instead. Deprecated since v6.11.0.
|
|
@@ -1753,7 +1755,7 @@ var FWizardPageobject = class {
|
|
|
1753
1755
|
*/
|
|
1754
1756
|
getStep(index) {
|
|
1755
1757
|
return new FWizardStepPageobject(
|
|
1756
|
-
`${this.selector} .wizard-step:nth(${index})`
|
|
1758
|
+
`${this.selector} .wizard-step:nth(${String(index)})`
|
|
1757
1759
|
);
|
|
1758
1760
|
}
|
|
1759
1761
|
/**
|
|
@@ -1821,12 +1823,14 @@ var CalendarPageObject = class {
|
|
|
1821
1823
|
*/
|
|
1822
1824
|
dayButton(day = 1) {
|
|
1823
1825
|
return cy.get(
|
|
1824
|
-
`${this.selector} .calendar-month__button:nth(${day - 1})`
|
|
1826
|
+
`${this.selector} .calendar-month__button:nth(${String(day - 1)})`
|
|
1825
1827
|
);
|
|
1826
1828
|
}
|
|
1827
1829
|
day(day = 1) {
|
|
1828
1830
|
return new FCalendarDayPageObject(
|
|
1829
|
-
`${this.selector} .calendar-month__button:nth(${
|
|
1831
|
+
`${this.selector} .calendar-month__button:nth(${String(
|
|
1832
|
+
day - 1
|
|
1833
|
+
)}) .calendar-day`
|
|
1830
1834
|
);
|
|
1831
1835
|
}
|
|
1832
1836
|
/**
|
|
@@ -1836,14 +1840,14 @@ var CalendarPageObject = class {
|
|
|
1836
1840
|
* @param targetMonth - Selected month 0-11, 0 = Jan 11 = dec
|
|
1837
1841
|
*/
|
|
1838
1842
|
navigateTo(targetYear, targetMonth) {
|
|
1839
|
-
cy.log(`Navigate to ${monthList[targetMonth]} ${targetYear}`);
|
|
1843
|
+
cy.log(`Navigate to ${monthList[targetMonth]} ${String(targetYear)}`);
|
|
1840
1844
|
this.navigationBar.text().then((el) => {
|
|
1841
1845
|
let currYear = 2023;
|
|
1842
1846
|
let currentMonth = 0;
|
|
1843
1847
|
el.text().replace(/(\w+)\s+(\d+)/, (match, p1, p2) => {
|
|
1844
1848
|
currentMonth = monthList.findIndex((month) => month === p1);
|
|
1845
1849
|
currYear = parseInt(p2, 10);
|
|
1846
|
-
return
|
|
1850
|
+
return String(currYear);
|
|
1847
1851
|
});
|
|
1848
1852
|
const yearDiff = Math.abs(currYear - targetYear);
|
|
1849
1853
|
const monthDiff = Math.abs(currentMonth - targetMonth);
|
|
@@ -1950,7 +1954,7 @@ var FDialogueTreePageObject = class {
|
|
|
1950
1954
|
}
|
|
1951
1955
|
option(index) {
|
|
1952
1956
|
return new FDialogueTreeItemPageObject(
|
|
1953
|
-
`${this.selector} li:nth(${index})`
|
|
1957
|
+
`${this.selector} li:nth(${String(index)})`
|
|
1954
1958
|
);
|
|
1955
1959
|
}
|
|
1956
1960
|
};
|