@fkui/vue 6.28.0 → 6.30.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.
@@ -1274,7 +1274,7 @@ var FSelectFieldPageObject = class {
1274
1274
  listOfOptions() {
1275
1275
  const listItem = [];
1276
1276
  return cy.get(`${this.selector} select option`).not('[disabled="disabled"]').each((el) => {
1277
- return listItem.push(el.get(0).innerText);
1277
+ return listItem.push(el.get(0).innerText.trim());
1278
1278
  }).then(() => listItem);
1279
1279
  }
1280
1280
  /**
@@ -1985,6 +1985,77 @@ 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(
2047
+ `${this.selector} .paginator__page-counter [aria-hidden]`
2048
+ );
2049
+ }
2050
+ /**
2051
+ * Get the button for navigating to the previous page.
2052
+ *
2053
+ * @returns The button for navigating to the previous page.
2054
+ */
2055
+ previousButton() {
2056
+ return cy.get(`${this.selector} .paginator__previous`);
2057
+ }
2058
+ };
1988
2059
  export {
1989
2060
  AlertScreenReaderPageObject,
1990
2061
  CalendarPageObject,
@@ -2018,6 +2089,7 @@ export {
2018
2089
  FOfflinePageObject,
2019
2090
  FOutputFieldPageobject,
2020
2091
  FPageHeaderPageobject,
2092
+ FPaginatorPageObject,
2021
2093
  FProgressbarPageObject,
2022
2094
  FRadioFieldPageObject,
2023
2095
  FRadioFieldPageObject as FRadioGroupFieldPageObject,