@fkui/vue 6.33.0 → 6.34.1

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.
@@ -0,0 +1,127 @@
1
+ // src/selectors/FPaginator.selectors.ts
2
+ function FPaginatorSelectors(selector = ".paginator") {
3
+ return Object.freeze({
4
+ /**
5
+ * The base selector for the component.
6
+ *
7
+ * This is the same selector that the consumer provided.
8
+ *
9
+ * @public
10
+ * @since v6.34.0
11
+ * @returns The root selector for the component.
12
+ */
13
+ get selector() {
14
+ return selector;
15
+ },
16
+ /**
17
+ * Get the button for the current page.
18
+ *
19
+ * @public
20
+ * @since v6.34.0
21
+ * @returns A selector for the currently active page button.
22
+ */
23
+ currentPageButton() {
24
+ return `${selector} .paginator__page--active`;
25
+ },
26
+ /**
27
+ * Get the button for the first page.
28
+ *
29
+ * @public
30
+ * @since v6.34.0
31
+ * @returns A selector for the button that navigates to the first
32
+ * page.
33
+ */
34
+ firstPageButton() {
35
+ return `${selector} [data-page~="first"]`;
36
+ },
37
+ /**
38
+ * Get the button for the last page.
39
+ *
40
+ * @public
41
+ * @since v6.34.0
42
+ * @returns A selector for the button that navigates to the last
43
+ * page.
44
+ */
45
+ lastPageButton() {
46
+ return `${selector} [data-page~="last"]`;
47
+ },
48
+ /**
49
+ * Get the button for navigating to the next page.
50
+ *
51
+ * @public
52
+ * @since v6.34.0
53
+ * @returns A selector for the button that navigates to the next
54
+ * page.
55
+ */
56
+ nextPageButton() {
57
+ return `${selector} .paginator__next`;
58
+ },
59
+ /**
60
+ * Get the button for a specific page by displayed text.
61
+ *
62
+ * This returns the button that displays the given text.
63
+ *
64
+ * @public
65
+ * @since v6.34.0
66
+ * @param text - The text displayed on the requested button. If a
67
+ * numeric value is provided, it is converted to a string.
68
+ * @returns A selector for the specified page button.
69
+ */
70
+ pageButtonByText(text) {
71
+ return `${selector} > [data-page~="${text}"]`;
72
+ },
73
+ /**
74
+ * Get the button for a specific page by index.
75
+ *
76
+ * The index starts at zero for the first button. A negative index
77
+ * selects buttons from the end, e.g. `-1` selects the last button.
78
+ *
79
+ * @public
80
+ * @since v6.34.0
81
+ * @param index - The zero-based page index, or a negative index to
82
+ * select from the end (e.g. `-1` selects the last button).
83
+ * @returns A selector for the specified page button.
84
+ */
85
+ pageButtonByIndex(index) {
86
+ return `${selector} > [data-index~="${index}"]`;
87
+ },
88
+ /**
89
+ * Get the buttons for all pages shown.
90
+ *
91
+ * @public
92
+ * @since v6.34.0
93
+ * @returns A selector for all displayed page buttons.
94
+ */
95
+ pageButtons() {
96
+ return `${selector} .paginator__page`;
97
+ },
98
+ /**
99
+ * Get the page counter element.
100
+ *
101
+ * The counter replaces the page buttons in compact mode on mobile
102
+ * devices.
103
+ *
104
+ * @public
105
+ * @since v6.34.0
106
+ * @returns A selector for the page counter element.
107
+ */
108
+ pageCounter() {
109
+ return `${selector} .paginator__page-counter`;
110
+ },
111
+ /**
112
+ * Get the button for navigating to the previous page.
113
+ *
114
+ * @public
115
+ * @since v6.34.0
116
+ * @returns A selector for the button that navigates to the previous
117
+ * page.
118
+ */
119
+ previousPageButton() {
120
+ return `${selector} .paginator__previous`;
121
+ }
122
+ });
123
+ }
124
+ export {
125
+ FPaginatorSelectors
126
+ };
127
+ //# sourceMappingURL=selectors.esm.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/selectors/FPaginator.selectors.ts"],
4
+ "sourcesContent": ["/**\n * Selectors for `FPaginator`.\n *\n * @public\n * @since v6.34.0\n * @param selector - The root selector of the FPaginator component.\n * @returns An object with selector methods for the FPaginator component.\n */\nexport function FPaginatorSelectors(selector: string = \".paginator\") {\n return Object.freeze({\n /**\n * The base selector for the component.\n *\n * This is the same selector that the consumer provided.\n *\n * @public\n * @since v6.34.0\n * @returns The root selector for the component.\n */\n get selector(): string {\n return selector;\n },\n\n /**\n * Get the button for the current page.\n *\n * @public\n * @since v6.34.0\n * @returns A selector for the currently active page button.\n */\n currentPageButton(this: void): string {\n return `${selector} .paginator__page--active`;\n },\n\n /**\n * Get the button for the first page.\n *\n * @public\n * @since v6.34.0\n * @returns A selector for the button that navigates to the first\n * page.\n */\n firstPageButton(this: void): string {\n return `${selector} [data-page~=\"first\"]`;\n },\n\n /**\n * Get the button for the last page.\n *\n * @public\n * @since v6.34.0\n * @returns A selector for the button that navigates to the last\n * page.\n */\n lastPageButton(this: void): string {\n return `${selector} [data-page~=\"last\"]`;\n },\n\n /**\n * Get the button for navigating to the next page.\n *\n * @public\n * @since v6.34.0\n * @returns A selector for the button that navigates to the next\n * page.\n */\n nextPageButton(this: void): string {\n return `${selector} .paginator__next`;\n },\n\n /**\n * Get the button for a specific page by displayed text.\n *\n * This returns the button that displays the given text.\n *\n * @public\n * @since v6.34.0\n * @param text - The text displayed on the requested button. If a\n * numeric value is provided, it is converted to a string.\n * @returns A selector for the specified page button.\n */\n pageButtonByText(this: void, text: number | string): string {\n return `${selector} > [data-page~=\"${text}\"]`;\n },\n\n /**\n * Get the button for a specific page by index.\n *\n * The index starts at zero for the first button. A negative index\n * selects buttons from the end, e.g. `-1` selects the last button.\n *\n * @public\n * @since v6.34.0\n * @param index - The zero-based page index, or a negative index to\n * select from the end (e.g. `-1` selects the last button).\n * @returns A selector for the specified page button.\n */\n pageButtonByIndex(this: void, index: number | string): string {\n return `${selector} > [data-index~=\"${index}\"]`;\n },\n\n /**\n * Get the buttons for all pages shown.\n *\n * @public\n * @since v6.34.0\n * @returns A selector for all displayed page buttons.\n */\n pageButtons(this: void): string {\n return `${selector} .paginator__page`;\n },\n\n /**\n * Get the page counter element.\n *\n * The counter replaces the page buttons in compact mode on mobile\n * devices.\n *\n * @public\n * @since v6.34.0\n * @returns A selector for the page counter element.\n */\n pageCounter(this: void): string {\n return `${selector} .paginator__page-counter`;\n },\n\n /**\n * Get the button for navigating to the previous page.\n *\n * @public\n * @since v6.34.0\n * @returns A selector for the button that navigates to the previous\n * page.\n */\n previousPageButton(this: void): string {\n return `${selector} .pa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AA,IACtB;AAAA,EACJ,CAAC;AACL;",
6
+ "names": []
7
+ }
@@ -821,11 +821,12 @@ export declare class FPageHeaderPageobject implements BasePageObject {
821
821
  * @public
822
822
  */
823
823
  export declare class FPaginatorPageObject implements BasePageObject {
824
- selector: string;
824
+ private _selectors;
825
825
  /**
826
826
  * @param selector - The root of the FPaginator component
827
827
  */
828
- constructor(selector: string);
828
+ constructor(selector?: string);
829
+ get selector(): string;
829
830
  /**
830
831
  * Get the root element.
831
832
  *