@fkui/vue 6.28.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 +70 -0
- package/dist/cjs/cypress.cjs.js.map +3 -3
- package/dist/cjs/index.cjs.js +921 -594
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/cypress.esm.js +70 -0
- package/dist/esm/cypress.esm.js.map +3 -3
- package/dist/esm/index.esm.js +921 -594
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/cypress.d.ts +51 -0
- package/dist/types/index.d.ts +876 -788
- package/htmlvalidate/elements/components.js +40 -0
- package/package.json +5 -5
package/dist/cjs/cypress.cjs.js
CHANGED
|
@@ -52,6 +52,7 @@ __export(index_exports, {
|
|
|
52
52
|
FOfflinePageObject: () => FOfflinePageObject,
|
|
53
53
|
FOutputFieldPageobject: () => FOutputFieldPageobject,
|
|
54
54
|
FPageHeaderPageobject: () => FPageHeaderPageobject,
|
|
55
|
+
FPaginatorPageObject: () => FPaginatorPageObject,
|
|
55
56
|
FProgressbarPageObject: () => FProgressbarPageObject,
|
|
56
57
|
FRadioFieldPageObject: () => FRadioFieldPageObject,
|
|
57
58
|
FRadioGroupFieldPageObject: () => FRadioFieldPageObject,
|
|
@@ -2063,4 +2064,73 @@ var FDialogueTreePageObject = class {
|
|
|
2063
2064
|
);
|
|
2064
2065
|
}
|
|
2065
2066
|
};
|
|
2067
|
+
|
|
2068
|
+
// src/cypress/FPaginator.pageobject.ts
|
|
2069
|
+
var FPaginatorPageObject = class {
|
|
2070
|
+
selector;
|
|
2071
|
+
/**
|
|
2072
|
+
* @param selector - The root of the FPaginator component
|
|
2073
|
+
*/
|
|
2074
|
+
constructor(selector) {
|
|
2075
|
+
this.selector = selector;
|
|
2076
|
+
}
|
|
2077
|
+
/**
|
|
2078
|
+
* Get the root element.
|
|
2079
|
+
*
|
|
2080
|
+
* @returns The element itself.
|
|
2081
|
+
*/
|
|
2082
|
+
el() {
|
|
2083
|
+
return cy.get(this.selector);
|
|
2084
|
+
}
|
|
2085
|
+
/**
|
|
2086
|
+
* Get the button for the current page.
|
|
2087
|
+
*
|
|
2088
|
+
* @returns The button for the current page.
|
|
2089
|
+
*/
|
|
2090
|
+
currentPageButton() {
|
|
2091
|
+
return cy.get(`${this.selector} .paginator__page--active`);
|
|
2092
|
+
}
|
|
2093
|
+
/**
|
|
2094
|
+
* Get the button for navigating to the next page.
|
|
2095
|
+
*
|
|
2096
|
+
* @returns The button for navigating to the next page.
|
|
2097
|
+
*/
|
|
2098
|
+
nextButton() {
|
|
2099
|
+
return cy.get(`${this.selector} .paginator__next`);
|
|
2100
|
+
}
|
|
2101
|
+
/**
|
|
2102
|
+
* Gets the button/buttons for the specified page/pages.
|
|
2103
|
+
*
|
|
2104
|
+
* @param page - The index of the page button (if number); the number of the page (if string)
|
|
2105
|
+
* @returns The button for the specified page (if param `page` is defined); the buttons for all pages shown (if param `page` is undefined).
|
|
2106
|
+
*/
|
|
2107
|
+
pageButton(page) {
|
|
2108
|
+
const pageButtons = cy.get(`${this.selector} .paginator__page`);
|
|
2109
|
+
switch (typeof page) {
|
|
2110
|
+
case "number":
|
|
2111
|
+
return pageButtons.eq(page);
|
|
2112
|
+
case "string":
|
|
2113
|
+
return pageButtons.contains(page);
|
|
2114
|
+
default:
|
|
2115
|
+
return pageButtons;
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
/**
|
|
2119
|
+
* Get the page counter.
|
|
2120
|
+
* The element replaces the page buttons in compact mode.
|
|
2121
|
+
*
|
|
2122
|
+
* @returns The page counter.
|
|
2123
|
+
*/
|
|
2124
|
+
pageCounter() {
|
|
2125
|
+
return cy.get(`${this.selector} .paginator__page-counter`);
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Get the button for navigating to the previous page.
|
|
2129
|
+
*
|
|
2130
|
+
* @returns The button for navigating to the previous page.
|
|
2131
|
+
*/
|
|
2132
|
+
previousButton() {
|
|
2133
|
+
return cy.get(`${this.selector} .paginator__previous`);
|
|
2134
|
+
}
|
|
2135
|
+
};
|
|
2066
2136
|
//# sourceMappingURL=cypress.cjs.js.map
|