@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.
@@ -1985,6 +1985,75 @@ var FDialogueTreePageObject = class {
1985
1985
  );
1986
1986
  }
1987
1987
  };
1988
+
1989
+ // src/cypress/FPaginator.pageobject.ts
1990
+ var FPaginatorPageObject = class {
1991
+ selector;
1992
+ /**
1993
+ * @param selector - The root of the FPaginator component
1994
+ */
1995
+ constructor(selector) {
1996
+ this.selector = selector;
1997
+ }
1998
+ /**
1999
+ * Get the root element.
2000
+ *
2001
+ * @returns The element itself.
2002
+ */
2003
+ el() {
2004
+ return cy.get(this.selector);
2005
+ }
2006
+ /**
2007
+ * Get the button for the current page.
2008
+ *
2009
+ * @returns The button for the current page.
2010
+ */
2011
+ currentPageButton() {
2012
+ return cy.get(`${this.selector} .paginator__page--active`);
2013
+ }
2014
+ /**
2015
+ * Get the button for navigating to the next page.
2016
+ *
2017
+ * @returns The button for navigating to the next page.
2018
+ */
2019
+ nextButton() {
2020
+ return cy.get(`${this.selector} .paginator__next`);
2021
+ }
2022
+ /**
2023
+ * Gets the button/buttons for the specified page/pages.
2024
+ *
2025
+ * @param page - The index of the page button (if number); the number of the page (if string)
2026
+ * @returns The button for the specified page (if param `page` is defined); the buttons for all pages shown (if param `page` is undefined).
2027
+ */
2028
+ pageButton(page) {
2029
+ const pageButtons = cy.get(`${this.selector} .paginator__page`);
2030
+ switch (typeof page) {
2031
+ case "number":
2032
+ return pageButtons.eq(page);
2033
+ case "string":
2034
+ return pageButtons.contains(page);
2035
+ default:
2036
+ return pageButtons;
2037
+ }
2038
+ }
2039
+ /**
2040
+ * Get the page counter.
2041
+ * The element replaces the page buttons in compact mode.
2042
+ *
2043
+ * @returns The page counter.
2044
+ */
2045
+ pageCounter() {
2046
+ return cy.get(`${this.selector} .paginator__page-counter`);
2047
+ }
2048
+ /**
2049
+ * Get the button for navigating to the previous page.
2050
+ *
2051
+ * @returns The button for navigating to the previous page.
2052
+ */
2053
+ previousButton() {
2054
+ return cy.get(`${this.selector} .paginator__previous`);
2055
+ }
2056
+ };
1988
2057
  export {
1989
2058
  AlertScreenReaderPageObject,
1990
2059
  CalendarPageObject,
@@ -2018,6 +2087,7 @@ export {
2018
2087
  FOfflinePageObject,
2019
2088
  FOutputFieldPageobject,
2020
2089
  FPageHeaderPageobject,
2090
+ FPaginatorPageObject,
2021
2091
  FProgressbarPageObject,
2022
2092
  FRadioFieldPageObject,
2023
2093
  FRadioFieldPageObject as FRadioGroupFieldPageObject,