@fkui/vue 6.27.0 → 6.29.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 +103 -6
- package/dist/cjs/cypress.cjs.js.map +3 -3
- package/dist/cjs/index.cjs.js +1184 -874
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/cypress.esm.js +103 -6
- package/dist/esm/cypress.esm.js.map +3 -3
- package/dist/esm/index.esm.js +1184 -874
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/cypress.d.ts +74 -6
- package/dist/types/index.d.ts +887 -810
- package/htmlvalidate/configs/recommended.js +2 -1
- package/htmlvalidate/elements/components.js +41 -0
- package/htmlvalidate/rules/common.js +19 -1
- package/htmlvalidate/rules/finteractivetable-selectable-description.rule.js +57 -0
- package/htmlvalidate/rules/index.js +5 -3
- package/htmlvalidate/rules/slotdeprecated.rule.js +85 -0
- package/package.json +5 -5
- package/htmlvalidate/rules/finteractivetable-checkbox-description.rule.js +0 -73
package/dist/esm/cypress.esm.js
CHANGED
|
@@ -1355,7 +1355,7 @@ var FInteractiveTablePageObject = class {
|
|
|
1355
1355
|
* Both row and column are 1-indexed, i.e. 1:1 selects the first cell in the
|
|
1356
1356
|
* first row.
|
|
1357
1357
|
*
|
|
1358
|
-
* Neither the marker for expandable rows or the checkbox for selectable
|
|
1358
|
+
* Neither the marker for expandable rows or the radio/checkbox for selectable
|
|
1359
1359
|
* rows are included in the column count, i.e. `1` always refers to the
|
|
1360
1360
|
* first column with content.
|
|
1361
1361
|
*
|
|
@@ -1389,7 +1389,7 @@ var FInteractiveTablePageObject = class {
|
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Get table header cell (`<th>` in `<thead>`).
|
|
1391
1391
|
*
|
|
1392
|
-
* Neither the marker for expandable rows or the checkbox for selectable
|
|
1392
|
+
* Neither the marker for expandable rows or the radio/checkbox for selectable
|
|
1393
1393
|
* rows are included in the column count, i.e. `1` always refers to the
|
|
1394
1394
|
* first column with content.
|
|
1395
1395
|
*
|
|
@@ -1406,7 +1406,7 @@ var FInteractiveTablePageObject = class {
|
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Get all table headers (`<th>` in `<thead>`).
|
|
1408
1408
|
*
|
|
1409
|
-
* Includes the headers for checkboxes in selectable rows and markers in expandable rows.
|
|
1409
|
+
* Includes the headers for radios/checkboxes in selectable rows and markers in expandable rows.
|
|
1410
1410
|
*/
|
|
1411
1411
|
headersRow() {
|
|
1412
1412
|
return cy.get(`${this.selector} thead th`);
|
|
@@ -1437,9 +1437,10 @@ var FInteractiveTablePageObject = class {
|
|
|
1437
1437
|
* parent row while if the first row is expanded the second row refers to
|
|
1438
1438
|
* the first expanded row under the first row.
|
|
1439
1439
|
*
|
|
1440
|
-
* Requires a `selectable` table
|
|
1440
|
+
* Requires a `selectable` table of type `multi`.
|
|
1441
1441
|
*
|
|
1442
1442
|
* @public
|
|
1443
|
+
* @deprecated Use ´.selectable()´ instead. Deprecated since v6.28.0.
|
|
1443
1444
|
* @param row - Row number (1-indexed).
|
|
1444
1445
|
* @returns Page object for `FCheckboxField`.
|
|
1445
1446
|
*/
|
|
@@ -1454,10 +1455,36 @@ var FInteractiveTablePageObject = class {
|
|
|
1454
1455
|
].join(" ")
|
|
1455
1456
|
);
|
|
1456
1457
|
}
|
|
1458
|
+
/**
|
|
1459
|
+
* Get selectable input element (checkbox or radio) in given row.
|
|
1460
|
+
*
|
|
1461
|
+
* For expandable rows the row count depend on whenever a row is expanded or
|
|
1462
|
+
* not. If the first row is collapsed the second row refers to the next
|
|
1463
|
+
* parent row while if the first row is expanded the second row refers to
|
|
1464
|
+
* the first expanded row under the first row.
|
|
1465
|
+
*
|
|
1466
|
+
* Requires a `selectable` table.
|
|
1467
|
+
*
|
|
1468
|
+
* @public
|
|
1469
|
+
* @since v6.28.0
|
|
1470
|
+
* @param row - Row number (1-indexed).
|
|
1471
|
+
* @returns Input element.
|
|
1472
|
+
*/
|
|
1473
|
+
selectable(row) {
|
|
1474
|
+
const index = row - 1;
|
|
1475
|
+
return cy.get(
|
|
1476
|
+
[
|
|
1477
|
+
this.selector,
|
|
1478
|
+
`tbody`,
|
|
1479
|
+
`tr:not(.table__expandable-row--collapsed):nth(${String(index)})`,
|
|
1480
|
+
`input`
|
|
1481
|
+
].join(" ")
|
|
1482
|
+
).first();
|
|
1483
|
+
}
|
|
1457
1484
|
/**
|
|
1458
1485
|
* Get sort order icon in given column.
|
|
1459
1486
|
*
|
|
1460
|
-
* Index includes the columns for checkboxes in selectable rows and markers in expandable rows.
|
|
1487
|
+
* Index includes the columns for radios/checkboxes in selectable rows and markers in expandable rows.
|
|
1461
1488
|
*
|
|
1462
1489
|
* @param index - Column index (0-indexed).
|
|
1463
1490
|
* @param order - Column sort order.
|
|
@@ -1532,7 +1559,7 @@ var FTableColumnPageObject = class {
|
|
|
1532
1559
|
return cy.get(`${this.selector} th`);
|
|
1533
1560
|
}
|
|
1534
1561
|
/**
|
|
1535
|
-
* @deprecated Use ´FInteractiveTablePageObject.
|
|
1562
|
+
* @deprecated Use ´FInteractiveTablePageObject.selectable()´ instead. Deprecated since v6.11.0.
|
|
1536
1563
|
*/
|
|
1537
1564
|
checkbox() {
|
|
1538
1565
|
return new FCheckboxFieldPageObject(this.selector);
|
|
@@ -1958,6 +1985,75 @@ var FDialogueTreePageObject = class {
|
|
|
1958
1985
|
);
|
|
1959
1986
|
}
|
|
1960
1987
|
};
|
|
1988
|
+
|
|
1989
|
+
// src/cypress/FPaginator.pageobject.ts
|
|
1990
|
+
var FPaginatorPageObject = class {
|
|
1991
|
+
selector;
|
|
1992
|
+
/**
|
|
1993
|
+
* @param selector - The root of the FPaginator component
|
|
1994
|
+
*/
|
|
1995
|
+
constructor(selector) {
|
|
1996
|
+
this.selector = selector;
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* Get the root element.
|
|
2000
|
+
*
|
|
2001
|
+
* @returns The element itself.
|
|
2002
|
+
*/
|
|
2003
|
+
el() {
|
|
2004
|
+
return cy.get(this.selector);
|
|
2005
|
+
}
|
|
2006
|
+
/**
|
|
2007
|
+
* Get the button for the current page.
|
|
2008
|
+
*
|
|
2009
|
+
* @returns The button for the current page.
|
|
2010
|
+
*/
|
|
2011
|
+
currentPageButton() {
|
|
2012
|
+
return cy.get(`${this.selector} .paginator__page--active`);
|
|
2013
|
+
}
|
|
2014
|
+
/**
|
|
2015
|
+
* Get the button for navigating to the next page.
|
|
2016
|
+
*
|
|
2017
|
+
* @returns The button for navigating to the next page.
|
|
2018
|
+
*/
|
|
2019
|
+
nextButton() {
|
|
2020
|
+
return cy.get(`${this.selector} .paginator__next`);
|
|
2021
|
+
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Gets the button/buttons for the specified page/pages.
|
|
2024
|
+
*
|
|
2025
|
+
* @param page - The index of the page button (if number); the number of the page (if string)
|
|
2026
|
+
* @returns The button for the specified page (if param `page` is defined); the buttons for all pages shown (if param `page` is undefined).
|
|
2027
|
+
*/
|
|
2028
|
+
pageButton(page) {
|
|
2029
|
+
const pageButtons = cy.get(`${this.selector} .paginator__page`);
|
|
2030
|
+
switch (typeof page) {
|
|
2031
|
+
case "number":
|
|
2032
|
+
return pageButtons.eq(page);
|
|
2033
|
+
case "string":
|
|
2034
|
+
return pageButtons.contains(page);
|
|
2035
|
+
default:
|
|
2036
|
+
return pageButtons;
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
/**
|
|
2040
|
+
* Get the page counter.
|
|
2041
|
+
* The element replaces the page buttons in compact mode.
|
|
2042
|
+
*
|
|
2043
|
+
* @returns The page counter.
|
|
2044
|
+
*/
|
|
2045
|
+
pageCounter() {
|
|
2046
|
+
return cy.get(`${this.selector} .paginator__page-counter`);
|
|
2047
|
+
}
|
|
2048
|
+
/**
|
|
2049
|
+
* Get the button for navigating to the previous page.
|
|
2050
|
+
*
|
|
2051
|
+
* @returns The button for navigating to the previous page.
|
|
2052
|
+
*/
|
|
2053
|
+
previousButton() {
|
|
2054
|
+
return cy.get(`${this.selector} .paginator__previous`);
|
|
2055
|
+
}
|
|
2056
|
+
};
|
|
1961
2057
|
export {
|
|
1962
2058
|
AlertScreenReaderPageObject,
|
|
1963
2059
|
CalendarPageObject,
|
|
@@ -1991,6 +2087,7 @@ export {
|
|
|
1991
2087
|
FOfflinePageObject,
|
|
1992
2088
|
FOutputFieldPageobject,
|
|
1993
2089
|
FPageHeaderPageobject,
|
|
2090
|
+
FPaginatorPageObject,
|
|
1994
2091
|
FProgressbarPageObject,
|
|
1995
2092
|
FRadioFieldPageObject,
|
|
1996
2093
|
FRadioFieldPageObject as FRadioGroupFieldPageObject,
|