@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/esm/cypress.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/cypress/
|
|
1
|
+
// src/cypress/FCalendarDay.pageobject.ts
|
|
2
2
|
var dayType = /* @__PURE__ */ ((dayType2) => {
|
|
3
3
|
dayType2["day"] = "calendar-day";
|
|
4
4
|
dayType2["highlight"] = "calendar-day--highlight";
|
|
@@ -6,7 +6,7 @@ var dayType = /* @__PURE__ */ ((dayType2) => {
|
|
|
6
6
|
dayType2["disabled"] = "calendar-day--disabled";
|
|
7
7
|
return dayType2;
|
|
8
8
|
})(dayType || {});
|
|
9
|
-
var
|
|
9
|
+
var FCalendarDayPageObject = class {
|
|
10
10
|
constructor(selector) {
|
|
11
11
|
this.selector = selector;
|
|
12
12
|
}
|
|
@@ -26,6 +26,8 @@ var FCalenderDayPageobject = class {
|
|
|
26
26
|
return this.button().click();
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
+
var FCalenderDayPageobject = class extends FCalendarDayPageObject {
|
|
30
|
+
};
|
|
29
31
|
|
|
30
32
|
// src/cypress/FBadge.pageobject.ts
|
|
31
33
|
var FBadgePageObject = class {
|
|
@@ -1197,24 +1199,6 @@ var FStaticFieldPageObject = class {
|
|
|
1197
1199
|
}
|
|
1198
1200
|
};
|
|
1199
1201
|
|
|
1200
|
-
// src/cypress/FTableColumn.pageobject.ts
|
|
1201
|
-
var FTableColumnPageObject = class {
|
|
1202
|
-
constructor(selector, index) {
|
|
1203
|
-
this.selector = `${selector}:nth(${index})`;
|
|
1204
|
-
this.index = index;
|
|
1205
|
-
this.el = () => cy.get(this.selector);
|
|
1206
|
-
}
|
|
1207
|
-
tableRowBodyContent(position) {
|
|
1208
|
-
return cy.get(`${this.selector} td:nth(${position})`);
|
|
1209
|
-
}
|
|
1210
|
-
tableRowHeaderContent() {
|
|
1211
|
-
return cy.get(`${this.selector} th`);
|
|
1212
|
-
}
|
|
1213
|
-
checkbox() {
|
|
1214
|
-
return new FCheckboxFieldPageObject(this.selector);
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1217
|
-
|
|
1218
1202
|
// src/cypress/FInteractiveTable.pageobject.ts
|
|
1219
1203
|
var FInteractiveTablePageObject = class {
|
|
1220
1204
|
/**
|
|
@@ -1268,20 +1252,27 @@ var FInteractiveTablePageObject = class {
|
|
|
1268
1252
|
return cy.get(`${this.selector} caption`);
|
|
1269
1253
|
}
|
|
1270
1254
|
/**
|
|
1271
|
-
* Get
|
|
1255
|
+
* Get table header cell (`<th>` in `<thead>`).
|
|
1272
1256
|
*
|
|
1273
|
-
*
|
|
1257
|
+
* Neither the marker for expandable rows or the checkbox for selectable
|
|
1258
|
+
* rows are included in the column count, i.e. `1` always refers to the
|
|
1259
|
+
* first column with content.
|
|
1260
|
+
*
|
|
1261
|
+
* @public
|
|
1262
|
+
* @param col - column number of header (1-indexed).
|
|
1263
|
+
* @returns The header cell element.
|
|
1274
1264
|
*/
|
|
1275
|
-
|
|
1276
|
-
|
|
1265
|
+
header(col) {
|
|
1266
|
+
const index = col - 1;
|
|
1267
|
+
return cy.get(`${this.selector} thead .table__column:nth(${index})`);
|
|
1277
1268
|
}
|
|
1278
1269
|
/**
|
|
1279
|
-
* Get all table
|
|
1270
|
+
* Get all table headers (`<th>` in `<thead>`).
|
|
1280
1271
|
*
|
|
1281
|
-
* Includes
|
|
1272
|
+
* Includes the headers for checkboxes in selectable rows and markers in expandable rows.
|
|
1282
1273
|
*/
|
|
1283
|
-
|
|
1284
|
-
return cy.get(`${this.selector}
|
|
1274
|
+
headersRow() {
|
|
1275
|
+
return cy.get(`${this.selector} thead th`);
|
|
1285
1276
|
}
|
|
1286
1277
|
/**
|
|
1287
1278
|
* Get row (`<tr>` in `<tbody>`) of given index.
|
|
@@ -1294,27 +1285,37 @@ var FInteractiveTablePageObject = class {
|
|
|
1294
1285
|
return cy.get(`${this.selector} tbody tr:nth(${index})`);
|
|
1295
1286
|
}
|
|
1296
1287
|
/**
|
|
1297
|
-
* Get
|
|
1298
|
-
*
|
|
1299
|
-
* Index includes the header row (index 0 selects the header row while 1 selects first row in table body).
|
|
1300
|
-
* Index ignores expandable rows.
|
|
1288
|
+
* Get all table body rows (`<tr>` in `<tbody>`).
|
|
1301
1289
|
*
|
|
1302
|
-
*
|
|
1303
|
-
* @returns Page object for `FTableColumn`.
|
|
1290
|
+
* Includes expandable rows even if not expanded.
|
|
1304
1291
|
*/
|
|
1305
|
-
|
|
1306
|
-
return
|
|
1307
|
-
`${this.selector} .table__row`,
|
|
1308
|
-
index
|
|
1309
|
-
);
|
|
1292
|
+
bodyRow() {
|
|
1293
|
+
return cy.get(`${this.selector} tbody tr`);
|
|
1310
1294
|
}
|
|
1311
1295
|
/**
|
|
1312
|
-
* Get page object
|
|
1296
|
+
* Get page object with selector for the checkbox in given row.
|
|
1313
1297
|
*
|
|
1314
|
-
*
|
|
1298
|
+
* For expandable rows the row count depend on whenever a row is expanded or
|
|
1299
|
+
* not. If the first row is collapsed the second row refers to the next
|
|
1300
|
+
* parent row while if the first row is expanded the second row refers to
|
|
1301
|
+
* the first expanded row under the first row.
|
|
1302
|
+
*
|
|
1303
|
+
* Requires a `selectable` table.
|
|
1304
|
+
*
|
|
1305
|
+
* @public
|
|
1306
|
+
* @param row - Row number (1-indexed).
|
|
1307
|
+
* @returns Page object for `FCheckboxField`.
|
|
1315
1308
|
*/
|
|
1316
|
-
|
|
1317
|
-
|
|
1309
|
+
checkbox(row) {
|
|
1310
|
+
const index = row - 1;
|
|
1311
|
+
return new FCheckboxFieldPageObject(
|
|
1312
|
+
[
|
|
1313
|
+
this.selector,
|
|
1314
|
+
`tbody`,
|
|
1315
|
+
`tr:not(.table__expandable-row--collapsed):nth(${index})`,
|
|
1316
|
+
`.checkbox`
|
|
1317
|
+
].join(" ")
|
|
1318
|
+
);
|
|
1318
1319
|
}
|
|
1319
1320
|
/**
|
|
1320
1321
|
* Get sort order icon in given column.
|
|
@@ -1340,8 +1341,61 @@ var FInteractiveTablePageObject = class {
|
|
|
1340
1341
|
default:
|
|
1341
1342
|
throw Error("Invalid order");
|
|
1342
1343
|
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1344
|
+
return cy.get(
|
|
1345
|
+
`${this.selector} thead th:nth(${index}) svg.${iconName}`
|
|
1346
|
+
);
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Get page object for `FTableColumn` with selector targeting the header row.
|
|
1350
|
+
*
|
|
1351
|
+
* @deprecated Use `header()` instead. Deprecated since v6.11.0.
|
|
1352
|
+
* @returns Page object for `FTableColumn`.
|
|
1353
|
+
*/
|
|
1354
|
+
headerRowItem() {
|
|
1355
|
+
return new FTableColumnPageObject(`${this.selector} .table__row`, 0);
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Get page object for `FTableColumn` with selector targeting the given row number.
|
|
1359
|
+
*
|
|
1360
|
+
* Index includes the header row (index 0 selects the header row while 1 selects first row in table body).
|
|
1361
|
+
* Index ignores expandable rows.
|
|
1362
|
+
*
|
|
1363
|
+
* @deprecated Use `cell()` for body content and `header()` for header content instead. Deprecated since v6.11.0.
|
|
1364
|
+
* @param index - Row number (0-indexed).
|
|
1365
|
+
* @returns Page object for `FTableColumn`.
|
|
1366
|
+
*/
|
|
1367
|
+
columnItem(index) {
|
|
1368
|
+
return new FTableColumnPageObject(
|
|
1369
|
+
`${this.selector} .table__row`,
|
|
1370
|
+
index
|
|
1371
|
+
);
|
|
1372
|
+
}
|
|
1373
|
+
};
|
|
1374
|
+
|
|
1375
|
+
// src/cypress/FTableColumn.pageobject.ts
|
|
1376
|
+
var FTableColumnPageObject = class {
|
|
1377
|
+
constructor(selector, index) {
|
|
1378
|
+
this.selector = `${selector}:nth(${index})`;
|
|
1379
|
+
this.index = index;
|
|
1380
|
+
this.el = () => cy.get(this.selector);
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
* @deprecated Use ´FInteractiveTablePageObject.cell()´ instead. Deprecated since v6.11.0.
|
|
1384
|
+
*/
|
|
1385
|
+
tableRowBodyContent(position) {
|
|
1386
|
+
return cy.get(`${this.selector} td:nth(${position})`);
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* @deprecated Use ´FInteractiveTablePageObject.header()´ instead. Deprecated since v6.11.0.
|
|
1390
|
+
*/
|
|
1391
|
+
tableRowHeaderContent() {
|
|
1392
|
+
return cy.get(`${this.selector} th`);
|
|
1393
|
+
}
|
|
1394
|
+
/**
|
|
1395
|
+
* @deprecated Use ´FInteractiveTablePageObject.checkbox()´ instead. Deprecated since v6.11.0.
|
|
1396
|
+
*/
|
|
1397
|
+
checkbox() {
|
|
1398
|
+
return new FCheckboxFieldPageObject(this.selector);
|
|
1345
1399
|
}
|
|
1346
1400
|
};
|
|
1347
1401
|
|
|
@@ -1602,7 +1656,7 @@ var CalendarPageObject = class {
|
|
|
1602
1656
|
);
|
|
1603
1657
|
}
|
|
1604
1658
|
day(day = 1) {
|
|
1605
|
-
return new
|
|
1659
|
+
return new FCalendarDayPageObject(
|
|
1606
1660
|
`${this.selector} .calendar-month__button:nth(${day - 1}) .calendar-day`
|
|
1607
1661
|
);
|
|
1608
1662
|
}
|
|
@@ -1698,6 +1752,7 @@ export {
|
|
|
1698
1752
|
AlertScreenReaderPageObject,
|
|
1699
1753
|
CalendarPageObject,
|
|
1700
1754
|
FBadgePageObject,
|
|
1755
|
+
FCalendarDayPageObject,
|
|
1701
1756
|
FCalenderDayPageobject,
|
|
1702
1757
|
FCheckboxFieldPageObject,
|
|
1703
1758
|
FCheckboxFieldPageObject as FCheckboxGroupFieldPageObject,
|