@fkui/vue 6.10.0 → 6.12.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 +101 -46
- package/dist/cjs/cypress.cjs.js.map +3 -3
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/cypress.esm.js +101 -46
- package/dist/esm/cypress.esm.js.map +3 -3
- package/dist/esm/index.esm.js +3 -3
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/cypress.d.ts +64 -18
- package/dist/types/index.d.ts +204 -255
- package/package.json +6 -6
package/dist/cjs/cypress.cjs.js
CHANGED
|
@@ -23,6 +23,7 @@ __export(index_exports, {
|
|
|
23
23
|
AlertScreenReaderPageObject: () => AlertScreenReaderPageObject,
|
|
24
24
|
CalendarPageObject: () => CalendarPageObject,
|
|
25
25
|
FBadgePageObject: () => FBadgePageObject,
|
|
26
|
+
FCalendarDayPageObject: () => FCalendarDayPageObject,
|
|
26
27
|
FCalenderDayPageobject: () => FCalenderDayPageobject,
|
|
27
28
|
FCheckboxFieldPageObject: () => FCheckboxFieldPageObject,
|
|
28
29
|
FCheckboxGroupFieldPageObject: () => FCheckboxFieldPageObject,
|
|
@@ -75,7 +76,7 @@ __export(index_exports, {
|
|
|
75
76
|
});
|
|
76
77
|
module.exports = __toCommonJS(index_exports);
|
|
77
78
|
|
|
78
|
-
// src/cypress/
|
|
79
|
+
// src/cypress/FCalendarDay.pageobject.ts
|
|
79
80
|
var dayType = /* @__PURE__ */ ((dayType2) => {
|
|
80
81
|
dayType2["day"] = "calendar-day";
|
|
81
82
|
dayType2["highlight"] = "calendar-day--highlight";
|
|
@@ -83,7 +84,7 @@ var dayType = /* @__PURE__ */ ((dayType2) => {
|
|
|
83
84
|
dayType2["disabled"] = "calendar-day--disabled";
|
|
84
85
|
return dayType2;
|
|
85
86
|
})(dayType || {});
|
|
86
|
-
var
|
|
87
|
+
var FCalendarDayPageObject = class {
|
|
87
88
|
constructor(selector) {
|
|
88
89
|
this.selector = selector;
|
|
89
90
|
}
|
|
@@ -103,6 +104,8 @@ var FCalenderDayPageobject = class {
|
|
|
103
104
|
return this.button().click();
|
|
104
105
|
}
|
|
105
106
|
};
|
|
107
|
+
var FCalenderDayPageobject = class extends FCalendarDayPageObject {
|
|
108
|
+
};
|
|
106
109
|
|
|
107
110
|
// src/cypress/FBadge.pageobject.ts
|
|
108
111
|
var FBadgePageObject = class {
|
|
@@ -1274,24 +1277,6 @@ var FStaticFieldPageObject = class {
|
|
|
1274
1277
|
}
|
|
1275
1278
|
};
|
|
1276
1279
|
|
|
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
1280
|
// src/cypress/FInteractiveTable.pageobject.ts
|
|
1296
1281
|
var FInteractiveTablePageObject = class {
|
|
1297
1282
|
/**
|
|
@@ -1345,20 +1330,27 @@ var FInteractiveTablePageObject = class {
|
|
|
1345
1330
|
return cy.get(`${this.selector} caption`);
|
|
1346
1331
|
}
|
|
1347
1332
|
/**
|
|
1348
|
-
* Get
|
|
1333
|
+
* Get table header cell (`<th>` in `<thead>`).
|
|
1349
1334
|
*
|
|
1350
|
-
*
|
|
1335
|
+
* Neither the marker for expandable rows or the checkbox for selectable
|
|
1336
|
+
* rows are included in the column count, i.e. `1` always refers to the
|
|
1337
|
+
* first column with content.
|
|
1338
|
+
*
|
|
1339
|
+
* @public
|
|
1340
|
+
* @param col - column number of header (1-indexed).
|
|
1341
|
+
* @returns The header cell element.
|
|
1351
1342
|
*/
|
|
1352
|
-
|
|
1353
|
-
|
|
1343
|
+
header(col) {
|
|
1344
|
+
const index = col - 1;
|
|
1345
|
+
return cy.get(`${this.selector} thead .table__column:nth(${index})`);
|
|
1354
1346
|
}
|
|
1355
1347
|
/**
|
|
1356
|
-
* Get all table
|
|
1348
|
+
* Get all table headers (`<th>` in `<thead>`).
|
|
1357
1349
|
*
|
|
1358
|
-
* Includes
|
|
1350
|
+
* Includes the headers for checkboxes in selectable rows and markers in expandable rows.
|
|
1359
1351
|
*/
|
|
1360
|
-
|
|
1361
|
-
return cy.get(`${this.selector}
|
|
1352
|
+
headersRow() {
|
|
1353
|
+
return cy.get(`${this.selector} thead th`);
|
|
1362
1354
|
}
|
|
1363
1355
|
/**
|
|
1364
1356
|
* Get row (`<tr>` in `<tbody>`) of given index.
|
|
@@ -1371,27 +1363,37 @@ var FInteractiveTablePageObject = class {
|
|
|
1371
1363
|
return cy.get(`${this.selector} tbody tr:nth(${index})`);
|
|
1372
1364
|
}
|
|
1373
1365
|
/**
|
|
1374
|
-
* Get
|
|
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.
|
|
1366
|
+
* Get all table body rows (`<tr>` in `<tbody>`).
|
|
1378
1367
|
*
|
|
1379
|
-
*
|
|
1380
|
-
* @returns Page object for `FTableColumn`.
|
|
1368
|
+
* Includes expandable rows even if not expanded.
|
|
1381
1369
|
*/
|
|
1382
|
-
|
|
1383
|
-
return
|
|
1384
|
-
`${this.selector} .table__row`,
|
|
1385
|
-
index
|
|
1386
|
-
);
|
|
1370
|
+
bodyRow() {
|
|
1371
|
+
return cy.get(`${this.selector} tbody tr`);
|
|
1387
1372
|
}
|
|
1388
1373
|
/**
|
|
1389
|
-
* Get page object
|
|
1374
|
+
* Get page object with selector for the checkbox in given row.
|
|
1390
1375
|
*
|
|
1391
|
-
*
|
|
1376
|
+
* For expandable rows the row count depend on whenever a row is expanded or
|
|
1377
|
+
* not. If the first row is collapsed the second row refers to the next
|
|
1378
|
+
* parent row while if the first row is expanded the second row refers to
|
|
1379
|
+
* the first expanded row under the first row.
|
|
1380
|
+
*
|
|
1381
|
+
* Requires a `selectable` table.
|
|
1382
|
+
*
|
|
1383
|
+
* @public
|
|
1384
|
+
* @param row - Row number (1-indexed).
|
|
1385
|
+
* @returns Page object for `FCheckboxField`.
|
|
1392
1386
|
*/
|
|
1393
|
-
|
|
1394
|
-
|
|
1387
|
+
checkbox(row) {
|
|
1388
|
+
const index = row - 1;
|
|
1389
|
+
return new FCheckboxFieldPageObject(
|
|
1390
|
+
[
|
|
1391
|
+
this.selector,
|
|
1392
|
+
`tbody`,
|
|
1393
|
+
`tr:not(.table__expandable-row--collapsed):nth(${index})`,
|
|
1394
|
+
`.checkbox`
|
|
1395
|
+
].join(" ")
|
|
1396
|
+
);
|
|
1395
1397
|
}
|
|
1396
1398
|
/**
|
|
1397
1399
|
* Get sort order icon in given column.
|
|
@@ -1417,8 +1419,61 @@ var FInteractiveTablePageObject = class {
|
|
|
1417
1419
|
default:
|
|
1418
1420
|
throw Error("Invalid order");
|
|
1419
1421
|
}
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
+
return cy.get(
|
|
1423
|
+
`${this.selector} thead th:nth(${index}) svg.${iconName}`
|
|
1424
|
+
);
|
|
1425
|
+
}
|
|
1426
|
+
/**
|
|
1427
|
+
* Get page object for `FTableColumn` with selector targeting the header row.
|
|
1428
|
+
*
|
|
1429
|
+
* @deprecated Use `header()` instead. Deprecated since v6.11.0.
|
|
1430
|
+
* @returns Page object for `FTableColumn`.
|
|
1431
|
+
*/
|
|
1432
|
+
headerRowItem() {
|
|
1433
|
+
return new FTableColumnPageObject(`${this.selector} .table__row`, 0);
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
* Get page object for `FTableColumn` with selector targeting the given row number.
|
|
1437
|
+
*
|
|
1438
|
+
* Index includes the header row (index 0 selects the header row while 1 selects first row in table body).
|
|
1439
|
+
* Index ignores expandable rows.
|
|
1440
|
+
*
|
|
1441
|
+
* @deprecated Use `cell()` for body content and `header()` for header content instead. Deprecated since v6.11.0.
|
|
1442
|
+
* @param index - Row number (0-indexed).
|
|
1443
|
+
* @returns Page object for `FTableColumn`.
|
|
1444
|
+
*/
|
|
1445
|
+
columnItem(index) {
|
|
1446
|
+
return new FTableColumnPageObject(
|
|
1447
|
+
`${this.selector} .table__row`,
|
|
1448
|
+
index
|
|
1449
|
+
);
|
|
1450
|
+
}
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
// src/cypress/FTableColumn.pageobject.ts
|
|
1454
|
+
var FTableColumnPageObject = class {
|
|
1455
|
+
constructor(selector, index) {
|
|
1456
|
+
this.selector = `${selector}:nth(${index})`;
|
|
1457
|
+
this.index = index;
|
|
1458
|
+
this.el = () => cy.get(this.selector);
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* @deprecated Use ´FInteractiveTablePageObject.cell()´ instead. Deprecated since v6.11.0.
|
|
1462
|
+
*/
|
|
1463
|
+
tableRowBodyContent(position) {
|
|
1464
|
+
return cy.get(`${this.selector} td:nth(${position})`);
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* @deprecated Use ´FInteractiveTablePageObject.header()´ instead. Deprecated since v6.11.0.
|
|
1468
|
+
*/
|
|
1469
|
+
tableRowHeaderContent() {
|
|
1470
|
+
return cy.get(`${this.selector} th`);
|
|
1471
|
+
}
|
|
1472
|
+
/**
|
|
1473
|
+
* @deprecated Use ´FInteractiveTablePageObject.checkbox()´ instead. Deprecated since v6.11.0.
|
|
1474
|
+
*/
|
|
1475
|
+
checkbox() {
|
|
1476
|
+
return new FCheckboxFieldPageObject(this.selector);
|
|
1422
1477
|
}
|
|
1423
1478
|
};
|
|
1424
1479
|
|
|
@@ -1679,7 +1734,7 @@ var CalendarPageObject = class {
|
|
|
1679
1734
|
);
|
|
1680
1735
|
}
|
|
1681
1736
|
day(day = 1) {
|
|
1682
|
-
return new
|
|
1737
|
+
return new FCalendarDayPageObject(
|
|
1683
1738
|
`${this.selector} .calendar-month__button:nth(${day - 1}) .calendar-day`
|
|
1684
1739
|
);
|
|
1685
1740
|
}
|