@fkui/vue 6.8.0 → 6.10.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 +50 -8
- package/dist/cjs/cypress.cjs.js.map +2 -2
- package/dist/cjs/index.cjs.js +188 -46
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/cypress.esm.js +50 -8
- package/dist/esm/cypress.esm.js.map +2 -2
- package/dist/esm/index.esm.js +188 -46
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/cypress.d.ts +46 -6
- package/dist/types/index.d.ts +12 -12
- package/dist/types/tsdoc-metadata.json +1 -1
- package/htmlvalidate/elements/components.js +9 -1
- package/htmlvalidate/rules/no-template-modal.rule.js +24 -2
- package/package.json +5 -5
package/dist/cjs/cypress.cjs.js
CHANGED
|
@@ -1295,11 +1295,16 @@ var FTableColumnPageObject = class {
|
|
|
1295
1295
|
// src/cypress/FInteractiveTable.pageobject.ts
|
|
1296
1296
|
var FInteractiveTablePageObject = class {
|
|
1297
1297
|
/**
|
|
1298
|
-
* @param selector -
|
|
1298
|
+
* @param selector - root element selector for `FInteractiveTable`, usually `.table`.
|
|
1299
1299
|
*/
|
|
1300
|
-
constructor(selector) {
|
|
1300
|
+
constructor(selector = ".table") {
|
|
1301
1301
|
this.selector = selector;
|
|
1302
|
-
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Get root element.
|
|
1305
|
+
*/
|
|
1306
|
+
el() {
|
|
1307
|
+
return cy.get(this.selector);
|
|
1303
1308
|
}
|
|
1304
1309
|
/**
|
|
1305
1310
|
* Get table cell (typically `<td>` but can be `<th>` if row headers are
|
|
@@ -1333,20 +1338,46 @@ var FInteractiveTablePageObject = class {
|
|
|
1333
1338
|
].join(" ")
|
|
1334
1339
|
);
|
|
1335
1340
|
}
|
|
1341
|
+
/**
|
|
1342
|
+
* Get `<caption>` element.
|
|
1343
|
+
*/
|
|
1336
1344
|
caption() {
|
|
1337
1345
|
return cy.get(`${this.selector} caption`);
|
|
1338
1346
|
}
|
|
1347
|
+
/**
|
|
1348
|
+
* Get all table headers (`<th>` in `<thead>`).
|
|
1349
|
+
*
|
|
1350
|
+
* Includes the headers for checkboxes in selectable rows and markers in expandable rows.
|
|
1351
|
+
*/
|
|
1352
|
+
headersRow() {
|
|
1353
|
+
return cy.get(`${this.selector} thead th`);
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1356
|
+
* Get all table body rows (`<tr>` in `<tbody>`).
|
|
1357
|
+
*
|
|
1358
|
+
* Includes expandable rows even if not expanded.
|
|
1359
|
+
*/
|
|
1339
1360
|
bodyRow() {
|
|
1340
1361
|
return cy.get(`${this.selector} tbody tr`);
|
|
1341
1362
|
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Get row (`<tr>` in `<tbody>`) of given index.
|
|
1365
|
+
*
|
|
1366
|
+
* Includes expandable rows even if not expanded.
|
|
1367
|
+
*
|
|
1368
|
+
* @param index - Row number (0-indexed).
|
|
1369
|
+
*/
|
|
1342
1370
|
row(index) {
|
|
1343
1371
|
return cy.get(`${this.selector} tbody tr:nth(${index})`);
|
|
1344
1372
|
}
|
|
1345
|
-
headersRow() {
|
|
1346
|
-
return cy.get(`${this.selector} thead th`);
|
|
1347
|
-
}
|
|
1348
1373
|
/**
|
|
1349
|
-
*
|
|
1374
|
+
* Get page object for `FTableColumn` with selector targeting the given row number.
|
|
1375
|
+
*
|
|
1376
|
+
* Index includes the header row (index 0 selects the header row while 1 selects first row in table body).
|
|
1377
|
+
* Index ignores expandable rows.
|
|
1378
|
+
*
|
|
1379
|
+
* @param index - Row number (0-indexed).
|
|
1380
|
+
* @returns Page object for `FTableColumn`.
|
|
1350
1381
|
*/
|
|
1351
1382
|
columnItem(index) {
|
|
1352
1383
|
return new FTableColumnPageObject(
|
|
@@ -1355,11 +1386,22 @@ var FInteractiveTablePageObject = class {
|
|
|
1355
1386
|
);
|
|
1356
1387
|
}
|
|
1357
1388
|
/**
|
|
1358
|
-
*
|
|
1389
|
+
* Get page object for `FTableColumn` with selector targeting the header row.
|
|
1390
|
+
*
|
|
1391
|
+
* @returns Page object for `FTableColumn`.
|
|
1359
1392
|
*/
|
|
1360
1393
|
headerRowItem() {
|
|
1361
1394
|
return new FTableColumnPageObject(`${this.selector} .table__row`, 0);
|
|
1362
1395
|
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Get sort order icon in given column.
|
|
1398
|
+
*
|
|
1399
|
+
* Index includes the columns for checkboxes in selectable rows and markers in expandable rows.
|
|
1400
|
+
*
|
|
1401
|
+
* @param index - Column index (0-indexed).
|
|
1402
|
+
* @param order - Column sort order.
|
|
1403
|
+
* @returns icon of given sort order.
|
|
1404
|
+
*/
|
|
1363
1405
|
getColumnSortedByIcon(index, order) {
|
|
1364
1406
|
let iconName;
|
|
1365
1407
|
switch (order) {
|