@fkui/vue 6.9.0 → 6.11.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 +130 -36
- package/dist/cjs/cypress.cjs.js.map +3 -3
- package/dist/cjs/index.cjs.js +153 -28
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/cypress.esm.js +130 -36
- package/dist/esm/cypress.esm.js.map +3 -3
- package/dist/esm/index.esm.js +153 -28
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/cypress.d.ts +88 -9
- package/dist/types/index.d.ts +208 -259
- package/dist/types/tsdoc-metadata.json +1 -1
- package/htmlvalidate/elements/components.js +4 -1
- package/htmlvalidate/rules/no-template-modal.rule.js +24 -2
- package/package.json +6 -6
package/dist/cjs/cypress.cjs.js
CHANGED
|
@@ -1274,32 +1274,19 @@ var FStaticFieldPageObject = class {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
};
|
|
1276
1276
|
|
|
1277
|
-
// src/cypress/FTableColumn.pageobject.ts
|
|
1278
|
-
var FTableColumnPageObject = class {
|
|
1279
|
-
constructor(selector, index) {
|
|
1280
|
-
this.selector = `${selector}:nth(${index})`;
|
|
1281
|
-
this.index = index;
|
|
1282
|
-
this.el = () => cy.get(this.selector);
|
|
1283
|
-
}
|
|
1284
|
-
tableRowBodyContent(position) {
|
|
1285
|
-
return cy.get(`${this.selector} td:nth(${position})`);
|
|
1286
|
-
}
|
|
1287
|
-
tableRowHeaderContent() {
|
|
1288
|
-
return cy.get(`${this.selector} th`);
|
|
1289
|
-
}
|
|
1290
|
-
checkbox() {
|
|
1291
|
-
return new FCheckboxFieldPageObject(this.selector);
|
|
1292
|
-
}
|
|
1293
|
-
};
|
|
1294
|
-
|
|
1295
1277
|
// src/cypress/FInteractiveTable.pageobject.ts
|
|
1296
1278
|
var FInteractiveTablePageObject = class {
|
|
1297
1279
|
/**
|
|
1298
|
-
* @param selector -
|
|
1280
|
+
* @param selector - root element selector for `FInteractiveTable`, usually `.table`.
|
|
1299
1281
|
*/
|
|
1300
|
-
constructor(selector) {
|
|
1282
|
+
constructor(selector = ".table") {
|
|
1301
1283
|
this.selector = selector;
|
|
1302
|
-
|
|
1284
|
+
}
|
|
1285
|
+
/**
|
|
1286
|
+
* Get root element.
|
|
1287
|
+
*/
|
|
1288
|
+
el() {
|
|
1289
|
+
return cy.get(this.selector);
|
|
1303
1290
|
}
|
|
1304
1291
|
/**
|
|
1305
1292
|
* Get table cell (typically `<td>` but can be `<th>` if row headers are
|
|
@@ -1333,33 +1320,87 @@ var FInteractiveTablePageObject = class {
|
|
|
1333
1320
|
].join(" ")
|
|
1334
1321
|
);
|
|
1335
1322
|
}
|
|
1323
|
+
/**
|
|
1324
|
+
* Get `<caption>` element.
|
|
1325
|
+
*/
|
|
1336
1326
|
caption() {
|
|
1337
1327
|
return cy.get(`${this.selector} caption`);
|
|
1338
1328
|
}
|
|
1339
|
-
|
|
1340
|
-
|
|
1329
|
+
/**
|
|
1330
|
+
* Get table header cell (`<th>` in `<thead>`).
|
|
1331
|
+
*
|
|
1332
|
+
* Neither the marker for expandable rows or the checkbox for selectable
|
|
1333
|
+
* rows are included in the column count, i.e. `1` always refers to the
|
|
1334
|
+
* first column with content.
|
|
1335
|
+
*
|
|
1336
|
+
* @public
|
|
1337
|
+
* @param col - column number of header (1-indexed).
|
|
1338
|
+
* @returns The header cell element.
|
|
1339
|
+
*/
|
|
1340
|
+
header(col) {
|
|
1341
|
+
const index = col - 1;
|
|
1342
|
+
return cy.get(`${this.selector} thead .table__column:nth(${index})`);
|
|
1341
1343
|
}
|
|
1344
|
+
/**
|
|
1345
|
+
* Get all table headers (`<th>` in `<thead>`).
|
|
1346
|
+
*
|
|
1347
|
+
* Includes the headers for checkboxes in selectable rows and markers in expandable rows.
|
|
1348
|
+
*/
|
|
1349
|
+
headersRow() {
|
|
1350
|
+
return cy.get(`${this.selector} thead th`);
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
* Get row (`<tr>` in `<tbody>`) of given index.
|
|
1354
|
+
*
|
|
1355
|
+
* Includes expandable rows even if not expanded.
|
|
1356
|
+
*
|
|
1357
|
+
* @param index - Row number (0-indexed).
|
|
1358
|
+
*/
|
|
1342
1359
|
row(index) {
|
|
1343
1360
|
return cy.get(`${this.selector} tbody tr:nth(${index})`);
|
|
1344
1361
|
}
|
|
1345
|
-
|
|
1346
|
-
|
|
1362
|
+
/**
|
|
1363
|
+
* Get all table body rows (`<tr>` in `<tbody>`).
|
|
1364
|
+
*
|
|
1365
|
+
* Includes expandable rows even if not expanded.
|
|
1366
|
+
*/
|
|
1367
|
+
bodyRow() {
|
|
1368
|
+
return cy.get(`${this.selector} tbody tr`);
|
|
1347
1369
|
}
|
|
1348
1370
|
/**
|
|
1349
|
-
*
|
|
1371
|
+
* Get page object with selector for the checkbox in given row.
|
|
1372
|
+
*
|
|
1373
|
+
* For expandable rows the row count depend on whenever a row is expanded or
|
|
1374
|
+
* not. If the first row is collapsed the second row refers to the next
|
|
1375
|
+
* parent row while if the first row is expanded the second row refers to
|
|
1376
|
+
* the first expanded row under the first row.
|
|
1377
|
+
*
|
|
1378
|
+
* Requires a `selectable` table.
|
|
1379
|
+
*
|
|
1380
|
+
* @public
|
|
1381
|
+
* @param row - Row number (1-indexed).
|
|
1382
|
+
* @returns Page object for `FCheckboxField`.
|
|
1350
1383
|
*/
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1384
|
+
checkbox(row) {
|
|
1385
|
+
const index = row - 1;
|
|
1386
|
+
return new FCheckboxFieldPageObject(
|
|
1387
|
+
[
|
|
1388
|
+
this.selector,
|
|
1389
|
+
`tbody`,
|
|
1390
|
+
`tr:not(.table__expandable-row--collapsed):nth(${index})`,
|
|
1391
|
+
`.checkbox`
|
|
1392
|
+
].join(" ")
|
|
1355
1393
|
);
|
|
1356
1394
|
}
|
|
1357
1395
|
/**
|
|
1358
|
-
*
|
|
1396
|
+
* Get sort order icon in given column.
|
|
1397
|
+
*
|
|
1398
|
+
* Index includes the columns for checkboxes in selectable rows and markers in expandable rows.
|
|
1399
|
+
*
|
|
1400
|
+
* @param index - Column index (0-indexed).
|
|
1401
|
+
* @param order - Column sort order.
|
|
1402
|
+
* @returns icon of given sort order.
|
|
1359
1403
|
*/
|
|
1360
|
-
headerRowItem() {
|
|
1361
|
-
return new FTableColumnPageObject(`${this.selector} .table__row`, 0);
|
|
1362
|
-
}
|
|
1363
1404
|
getColumnSortedByIcon(index, order) {
|
|
1364
1405
|
let iconName;
|
|
1365
1406
|
switch (order) {
|
|
@@ -1375,8 +1416,61 @@ var FInteractiveTablePageObject = class {
|
|
|
1375
1416
|
default:
|
|
1376
1417
|
throw Error("Invalid order");
|
|
1377
1418
|
}
|
|
1378
|
-
|
|
1379
|
-
|
|
1419
|
+
return cy.get(
|
|
1420
|
+
`${this.selector} thead th:nth(${index}) svg.${iconName}`
|
|
1421
|
+
);
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
* Get page object for `FTableColumn` with selector targeting the header row.
|
|
1425
|
+
*
|
|
1426
|
+
* @deprecated Use `header()` instead. Deprecated since v6.11.0.
|
|
1427
|
+
* @returns Page object for `FTableColumn`.
|
|
1428
|
+
*/
|
|
1429
|
+
headerRowItem() {
|
|
1430
|
+
return new FTableColumnPageObject(`${this.selector} .table__row`, 0);
|
|
1431
|
+
}
|
|
1432
|
+
/**
|
|
1433
|
+
* Get page object for `FTableColumn` with selector targeting the given row number.
|
|
1434
|
+
*
|
|
1435
|
+
* Index includes the header row (index 0 selects the header row while 1 selects first row in table body).
|
|
1436
|
+
* Index ignores expandable rows.
|
|
1437
|
+
*
|
|
1438
|
+
* @deprecated Use `cell()` for body content and `header()` for header content instead. Deprecated since v6.11.0.
|
|
1439
|
+
* @param index - Row number (0-indexed).
|
|
1440
|
+
* @returns Page object for `FTableColumn`.
|
|
1441
|
+
*/
|
|
1442
|
+
columnItem(index) {
|
|
1443
|
+
return new FTableColumnPageObject(
|
|
1444
|
+
`${this.selector} .table__row`,
|
|
1445
|
+
index
|
|
1446
|
+
);
|
|
1447
|
+
}
|
|
1448
|
+
};
|
|
1449
|
+
|
|
1450
|
+
// src/cypress/FTableColumn.pageobject.ts
|
|
1451
|
+
var FTableColumnPageObject = class {
|
|
1452
|
+
constructor(selector, index) {
|
|
1453
|
+
this.selector = `${selector}:nth(${index})`;
|
|
1454
|
+
this.index = index;
|
|
1455
|
+
this.el = () => cy.get(this.selector);
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* @deprecated Use ´FInteractiveTablePageObject.cell()´ instead. Deprecated since v6.11.0.
|
|
1459
|
+
*/
|
|
1460
|
+
tableRowBodyContent(position) {
|
|
1461
|
+
return cy.get(`${this.selector} td:nth(${position})`);
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* @deprecated Use ´FInteractiveTablePageObject.header()´ instead. Deprecated since v6.11.0.
|
|
1465
|
+
*/
|
|
1466
|
+
tableRowHeaderContent() {
|
|
1467
|
+
return cy.get(`${this.selector} th`);
|
|
1468
|
+
}
|
|
1469
|
+
/**
|
|
1470
|
+
* @deprecated Use ´FInteractiveTablePageObject.checkbox()´ instead. Deprecated since v6.11.0.
|
|
1471
|
+
*/
|
|
1472
|
+
checkbox() {
|
|
1473
|
+
return new FCheckboxFieldPageObject(this.selector);
|
|
1380
1474
|
}
|
|
1381
1475
|
};
|
|
1382
1476
|
|