@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/cjs/cypress.cjs.js
CHANGED
|
@@ -142,7 +142,7 @@ var FCheckboxFieldPageObject = class {
|
|
|
142
142
|
*/
|
|
143
143
|
constructor(selector, index) {
|
|
144
144
|
if (index) {
|
|
145
|
-
this.selector = `${selector}:nth(${index})`;
|
|
145
|
+
this.selector = `${selector}:nth(${String(index)})`;
|
|
146
146
|
} else {
|
|
147
147
|
this.selector = selector;
|
|
148
148
|
}
|
|
@@ -310,7 +310,7 @@ var FContextMenuPageObject = class {
|
|
|
310
310
|
*/
|
|
311
311
|
getItemLink(index) {
|
|
312
312
|
return cy.get(
|
|
313
|
-
`${this.selector} .contextmenu__list__item a:nth(${index})`
|
|
313
|
+
`${this.selector} .contextmenu__list__item a:nth(${String(index)})`
|
|
314
314
|
);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
@@ -339,7 +339,7 @@ var FErrorListPageObject = class {
|
|
|
339
339
|
return cy.get(`${this.selector} a`);
|
|
340
340
|
}
|
|
341
341
|
getLink(index) {
|
|
342
|
-
return cy.get(`${this.selector} a:nth(${index})`);
|
|
342
|
+
return cy.get(`${this.selector} a:nth(${String(index)})`);
|
|
343
343
|
}
|
|
344
344
|
getLinkByName(error) {
|
|
345
345
|
let link = () => cy.get(`${this.selector} ${error}`);
|
|
@@ -524,7 +524,7 @@ var FRadioFieldPageObject = class {
|
|
|
524
524
|
*/
|
|
525
525
|
constructor(selector, index) {
|
|
526
526
|
if (index) {
|
|
527
|
-
this.selector = `${selector}:nth(${index})`;
|
|
527
|
+
this.selector = `${selector}:nth(${String(index)})`;
|
|
528
528
|
} else {
|
|
529
529
|
this.selector = selector;
|
|
530
530
|
}
|
|
@@ -729,7 +729,7 @@ var FListItemPageObject = class {
|
|
|
729
729
|
* @param index - the index of matched li:s.
|
|
730
730
|
*/
|
|
731
731
|
constructor(selector, index) {
|
|
732
|
-
this.selector = `${selector}:nth(${index})`;
|
|
732
|
+
this.selector = `${selector}:nth(${String(index)})`;
|
|
733
733
|
this.index = index;
|
|
734
734
|
this.el = () => cy.get(this.selector);
|
|
735
735
|
}
|
|
@@ -965,7 +965,7 @@ var IPopupMenuPageObject = class {
|
|
|
965
965
|
*/
|
|
966
966
|
getItemLink(index) {
|
|
967
967
|
return cy.get(
|
|
968
|
-
`${this.selector} .ipopupmenu__list__item a:nth(${index})`
|
|
968
|
+
`${this.selector} .ipopupmenu__list__item a:nth(${String(index)})`
|
|
969
969
|
);
|
|
970
970
|
}
|
|
971
971
|
/**
|
|
@@ -1027,7 +1027,7 @@ var FNavigationMenuPageobject = class {
|
|
|
1027
1027
|
*/
|
|
1028
1028
|
itemLink(index) {
|
|
1029
1029
|
return cy.get(
|
|
1030
|
-
`${this.selector} .imenu__list__item:not(.imenu__list__item--hidden) a:nth(${index})`
|
|
1030
|
+
`${this.selector} .imenu__list__item:not(.imenu__list__item--hidden) a:nth(${String(index)})`
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
1033
|
/**
|
|
@@ -1453,8 +1453,8 @@ var FInteractiveTablePageObject = class {
|
|
|
1453
1453
|
[
|
|
1454
1454
|
this.selector,
|
|
1455
1455
|
`tbody`,
|
|
1456
|
-
`tr:not(.table__expandable-row--collapsed):nth(${rowIndex})`,
|
|
1457
|
-
`> .table__column:nth(${colIndex})`
|
|
1456
|
+
`tr:not(.table__expandable-row--collapsed):nth(${String(rowIndex)})`,
|
|
1457
|
+
`> .table__column:nth(${String(colIndex)})`
|
|
1458
1458
|
].join(" ")
|
|
1459
1459
|
);
|
|
1460
1460
|
}
|
|
@@ -1477,7 +1477,9 @@ var FInteractiveTablePageObject = class {
|
|
|
1477
1477
|
*/
|
|
1478
1478
|
header(col) {
|
|
1479
1479
|
const index = col - 1;
|
|
1480
|
-
return cy.get(
|
|
1480
|
+
return cy.get(
|
|
1481
|
+
`${this.selector} thead .table__column:nth(${String(index)})`
|
|
1482
|
+
);
|
|
1481
1483
|
}
|
|
1482
1484
|
/**
|
|
1483
1485
|
* Get all table headers (`<th>` in `<thead>`).
|
|
@@ -1495,7 +1497,7 @@ var FInteractiveTablePageObject = class {
|
|
|
1495
1497
|
* @param index - Row number (0-indexed).
|
|
1496
1498
|
*/
|
|
1497
1499
|
row(index) {
|
|
1498
|
-
return cy.get(`${this.selector} tbody tr:nth(${index})`);
|
|
1500
|
+
return cy.get(`${this.selector} tbody tr:nth(${String(index)})`);
|
|
1499
1501
|
}
|
|
1500
1502
|
/**
|
|
1501
1503
|
* Get all table body rows (`<tr>` in `<tbody>`).
|
|
@@ -1525,7 +1527,7 @@ var FInteractiveTablePageObject = class {
|
|
|
1525
1527
|
[
|
|
1526
1528
|
this.selector,
|
|
1527
1529
|
`tbody`,
|
|
1528
|
-
`tr:not(.table__expandable-row--collapsed):nth(${index})`,
|
|
1530
|
+
`tr:not(.table__expandable-row--collapsed):nth(${String(index)})`,
|
|
1529
1531
|
`.checkbox`
|
|
1530
1532
|
].join(" ")
|
|
1531
1533
|
);
|
|
@@ -1555,7 +1557,7 @@ var FInteractiveTablePageObject = class {
|
|
|
1555
1557
|
throw Error("Invalid order");
|
|
1556
1558
|
}
|
|
1557
1559
|
return cy.get(
|
|
1558
|
-
`${this.selector} thead th:nth(${index}) svg.${iconName}`
|
|
1560
|
+
`${this.selector} thead th:nth(${String(index)}) svg.${iconName}`
|
|
1559
1561
|
);
|
|
1560
1562
|
}
|
|
1561
1563
|
/**
|
|
@@ -1591,7 +1593,7 @@ var FTableColumnPageObject = class {
|
|
|
1591
1593
|
el;
|
|
1592
1594
|
index;
|
|
1593
1595
|
constructor(selector, index) {
|
|
1594
|
-
this.selector = `${selector}:nth(${index})`;
|
|
1596
|
+
this.selector = `${selector}:nth(${String(index)})`;
|
|
1595
1597
|
this.index = index;
|
|
1596
1598
|
this.el = () => cy.get(this.selector);
|
|
1597
1599
|
}
|
|
@@ -1599,7 +1601,7 @@ var FTableColumnPageObject = class {
|
|
|
1599
1601
|
* @deprecated Use ´FInteractiveTablePageObject.cell()´ instead. Deprecated since v6.11.0.
|
|
1600
1602
|
*/
|
|
1601
1603
|
tableRowBodyContent(position) {
|
|
1602
|
-
return cy.get(`${this.selector} td:nth(${position})`);
|
|
1604
|
+
return cy.get(`${this.selector} td:nth(${String(position)})`);
|
|
1603
1605
|
}
|
|
1604
1606
|
/**
|
|
1605
1607
|
* @deprecated Use ´FInteractiveTablePageObject.header()´ instead. Deprecated since v6.11.0.
|
|
@@ -1831,7 +1833,7 @@ var FWizardPageobject = class {
|
|
|
1831
1833
|
*/
|
|
1832
1834
|
getStep(index) {
|
|
1833
1835
|
return new FWizardStepPageobject(
|
|
1834
|
-
`${this.selector} .wizard-step:nth(${index})`
|
|
1836
|
+
`${this.selector} .wizard-step:nth(${String(index)})`
|
|
1835
1837
|
);
|
|
1836
1838
|
}
|
|
1837
1839
|
/**
|
|
@@ -1899,12 +1901,14 @@ var CalendarPageObject = class {
|
|
|
1899
1901
|
*/
|
|
1900
1902
|
dayButton(day = 1) {
|
|
1901
1903
|
return cy.get(
|
|
1902
|
-
`${this.selector} .calendar-month__button:nth(${day - 1})`
|
|
1904
|
+
`${this.selector} .calendar-month__button:nth(${String(day - 1)})`
|
|
1903
1905
|
);
|
|
1904
1906
|
}
|
|
1905
1907
|
day(day = 1) {
|
|
1906
1908
|
return new FCalendarDayPageObject(
|
|
1907
|
-
`${this.selector} .calendar-month__button:nth(${
|
|
1909
|
+
`${this.selector} .calendar-month__button:nth(${String(
|
|
1910
|
+
day - 1
|
|
1911
|
+
)}) .calendar-day`
|
|
1908
1912
|
);
|
|
1909
1913
|
}
|
|
1910
1914
|
/**
|
|
@@ -1914,14 +1918,14 @@ var CalendarPageObject = class {
|
|
|
1914
1918
|
* @param targetMonth - Selected month 0-11, 0 = Jan 11 = dec
|
|
1915
1919
|
*/
|
|
1916
1920
|
navigateTo(targetYear, targetMonth) {
|
|
1917
|
-
cy.log(`Navigate to ${monthList[targetMonth]} ${targetYear}`);
|
|
1921
|
+
cy.log(`Navigate to ${monthList[targetMonth]} ${String(targetYear)}`);
|
|
1918
1922
|
this.navigationBar.text().then((el) => {
|
|
1919
1923
|
let currYear = 2023;
|
|
1920
1924
|
let currentMonth = 0;
|
|
1921
1925
|
el.text().replace(/(\w+)\s+(\d+)/, (match, p1, p2) => {
|
|
1922
1926
|
currentMonth = monthList.findIndex((month) => month === p1);
|
|
1923
1927
|
currYear = parseInt(p2, 10);
|
|
1924
|
-
return
|
|
1928
|
+
return String(currYear);
|
|
1925
1929
|
});
|
|
1926
1930
|
const yearDiff = Math.abs(currYear - targetYear);
|
|
1927
1931
|
const monthDiff = Math.abs(currentMonth - targetMonth);
|
|
@@ -2028,7 +2032,7 @@ var FDialogueTreePageObject = class {
|
|
|
2028
2032
|
}
|
|
2029
2033
|
option(index) {
|
|
2030
2034
|
return new FDialogueTreeItemPageObject(
|
|
2031
|
-
`${this.selector} li:nth(${index})`
|
|
2035
|
+
`${this.selector} li:nth(${String(index)})`
|
|
2032
2036
|
);
|
|
2033
2037
|
}
|
|
2034
2038
|
};
|