@waggylabs/yumekit 0.5.0-beta.74 → 0.5.0-beta.76
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/CHANGELOG.md +2 -0
- package/dist/components/y-paginator/y-paginator.d.ts +86 -0
- package/dist/components/y-paginator.d.ts +86 -0
- package/dist/components/y-paginator.js +2711 -0
- package/dist/components/y-theme.js +23 -23
- package/dist/index.d.ts +1 -0
- package/dist/index.js +828 -24
- package/dist/react.d.ts +16 -0
- package/dist/styles/blue-dark.css +10 -0
- package/dist/styles/blue-light.css +10 -0
- package/dist/styles/brown-dark.css +10 -0
- package/dist/styles/brown-light.css +10 -0
- package/dist/styles/green-dark.css +10 -0
- package/dist/styles/green-light.css +10 -0
- package/dist/styles/indigo-dark.css +10 -0
- package/dist/styles/indigo-light.css +10 -0
- package/dist/styles/olive-dark.css +10 -0
- package/dist/styles/olive-light.css +10 -0
- package/dist/styles/orange-dark.css +10 -0
- package/dist/styles/orange-light.css +10 -0
- package/dist/styles/pink-dark.css +10 -0
- package/dist/styles/pink-light.css +10 -0
- package/dist/styles/purple-dark.css +10 -0
- package/dist/styles/purple-light.css +10 -0
- package/dist/styles/red-dark.css +10 -0
- package/dist/styles/red-light.css +10 -0
- package/dist/styles/teal-dark.css +10 -0
- package/dist/styles/teal-light.css +10 -0
- package/dist/styles/variables.css +22 -0
- package/dist/styles/yellow-dark.css +10 -0
- package/dist/styles/yellow-light.css +10 -0
- package/dist/yumekit.min.js +1 -1
- package/llm.txt +47 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -51,6 +51,8 @@ Delete any empty sections before publishing.
|
|
|
51
51
|
|
|
52
52
|
- New `y-masonry` component — layout container that packs children of varying heights into the shortest column.
|
|
53
53
|
|
|
54
|
+
- New `y-paginator` component — page navigation control with a configurable button window.
|
|
55
|
+
|
|
54
56
|
### Changed
|
|
55
57
|
|
|
56
58
|
- **Icon rename — `comp-*` prefix dropped.** All 26 component-illustrating icons renamed. Two resolved collisions: `comp-menu` → `droplist` and `comp-tag` → `chip`.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export class YumePaginator extends HTMLElement {
|
|
2
|
+
static get observedAttributes(): string[];
|
|
3
|
+
_onKeydown(e: any): void;
|
|
4
|
+
connectedCallback(): void;
|
|
5
|
+
disconnectedCallback(): void;
|
|
6
|
+
attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
|
|
7
|
+
set boundaryCount(v: number);
|
|
8
|
+
/** Number of boundary pages always shown at each end. */
|
|
9
|
+
get boundaryCount(): number;
|
|
10
|
+
set currentPage(v: number);
|
|
11
|
+
/**
|
|
12
|
+
* Currently active page (1-indexed). Clamped to [1, totalPages] when
|
|
13
|
+
* totalPages >= 1; returns 0 (the unset/no-data sentinel) when
|
|
14
|
+
* totalPages is 0.
|
|
15
|
+
*/
|
|
16
|
+
get currentPage(): number;
|
|
17
|
+
set disabled(v: boolean);
|
|
18
|
+
/** When set, all interactive controls are inert. */
|
|
19
|
+
get disabled(): boolean;
|
|
20
|
+
set hideOnSinglePage(v: boolean);
|
|
21
|
+
/** When set, the component renders nothing if `totalPages <= 1`. */
|
|
22
|
+
get hideOnSinglePage(): boolean;
|
|
23
|
+
set itemsPerPage(v: number);
|
|
24
|
+
/**
|
|
25
|
+
* Currently selected items-per-page value. Returns `null` when the
|
|
26
|
+
* attribute is unset or not numeric.
|
|
27
|
+
*/
|
|
28
|
+
get itemsPerPage(): number;
|
|
29
|
+
set pageCount(v: number);
|
|
30
|
+
/** Maximum number of page buttons displayed at once (excluding ellipses). */
|
|
31
|
+
get pageCount(): number;
|
|
32
|
+
set pageSizeLabel(v: string);
|
|
33
|
+
/** Label rendered next to the items-per-page select. */
|
|
34
|
+
get pageSizeLabel(): string;
|
|
35
|
+
set pageSizeOptions(v: any[]);
|
|
36
|
+
/**
|
|
37
|
+
* Available items-per-page choices. Accepts a JSON array of numbers
|
|
38
|
+
* (e.g. `[10, 25, 50]`) or `{ value, label }` objects. Returns `[]` when
|
|
39
|
+
* unset or invalid; the items-per-page select is only rendered when at
|
|
40
|
+
* least one option is available.
|
|
41
|
+
*/
|
|
42
|
+
get pageSizeOptions(): any[];
|
|
43
|
+
set size(v: string);
|
|
44
|
+
/** Controls button size, font size, and spacing. */
|
|
45
|
+
get size(): string;
|
|
46
|
+
set totalPages(v: number);
|
|
47
|
+
/** Total number of pages. `0` indicates no data. */
|
|
48
|
+
get totalPages(): number;
|
|
49
|
+
set variant(v: string);
|
|
50
|
+
/** Visual style — `default`, `compact`, or `detailed` (with prev/next labels). */
|
|
51
|
+
get variant(): string;
|
|
52
|
+
/** Programmatically jump to a page. Honors event cancellation. */
|
|
53
|
+
goTo(page: any): void;
|
|
54
|
+
/** Advance to the next page. */
|
|
55
|
+
next(): void;
|
|
56
|
+
/** Return to the previous page. */
|
|
57
|
+
previous(): void;
|
|
58
|
+
/** Programmatically change items-per-page. Honors event cancellation. */
|
|
59
|
+
setPageSize(value: any): void;
|
|
60
|
+
_buildButton(page: any, { isCurrent, isDisabled }: {
|
|
61
|
+
isCurrent: any;
|
|
62
|
+
isDisabled: any;
|
|
63
|
+
}): HTMLElement;
|
|
64
|
+
_buildEllipsis(key: any): HTMLElement;
|
|
65
|
+
_buildList(items: any, current: any, isHostDisabled: any): HTMLElement;
|
|
66
|
+
_buildNavButton(direction: any, current: any, total: any, isHostDisabled: any): HTMLElement;
|
|
67
|
+
_navIsEdge(direction: any, current: any, total: any): boolean;
|
|
68
|
+
_navTargetPage(direction: any, current: any, total: any): any;
|
|
69
|
+
_buildCompactNav(wrapper: any, current: any, total: any, isHostDisabled: any): void;
|
|
70
|
+
_buildCompactStatus(current: any, total: any): HTMLElement;
|
|
71
|
+
_buildDefaultNav(wrapper: any, current: any, total: any, isHostDisabled: any): void;
|
|
72
|
+
_buildPageSizeSelect(): HTMLElement;
|
|
73
|
+
_buildStyles(): string;
|
|
74
|
+
_getPageList(current: any, total: any, pageCount: any, boundaryCount: any): any[];
|
|
75
|
+
_dedupe(items: any): any[];
|
|
76
|
+
_focusableButtons(): Element[];
|
|
77
|
+
_focusYButton(yBtn: any): void;
|
|
78
|
+
_focusFirstButton(): void;
|
|
79
|
+
_focusLastButton(): void;
|
|
80
|
+
_stepFocus(currentBtn: any, offset: any): void;
|
|
81
|
+
_onPageClick(page: any): void;
|
|
82
|
+
_range(start: any, end: any): any[];
|
|
83
|
+
_render(): void;
|
|
84
|
+
_requestPageSizeChange(nextSize: any): void;
|
|
85
|
+
_requestPageChange(nextPage: any): void;
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export class YumePaginator extends HTMLElement {
|
|
2
|
+
static get observedAttributes(): string[];
|
|
3
|
+
_onKeydown(e: any): void;
|
|
4
|
+
connectedCallback(): void;
|
|
5
|
+
disconnectedCallback(): void;
|
|
6
|
+
attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
|
|
7
|
+
set boundaryCount(v: number);
|
|
8
|
+
/** Number of boundary pages always shown at each end. */
|
|
9
|
+
get boundaryCount(): number;
|
|
10
|
+
set currentPage(v: number);
|
|
11
|
+
/**
|
|
12
|
+
* Currently active page (1-indexed). Clamped to [1, totalPages] when
|
|
13
|
+
* totalPages >= 1; returns 0 (the unset/no-data sentinel) when
|
|
14
|
+
* totalPages is 0.
|
|
15
|
+
*/
|
|
16
|
+
get currentPage(): number;
|
|
17
|
+
set disabled(v: boolean);
|
|
18
|
+
/** When set, all interactive controls are inert. */
|
|
19
|
+
get disabled(): boolean;
|
|
20
|
+
set hideOnSinglePage(v: boolean);
|
|
21
|
+
/** When set, the component renders nothing if `totalPages <= 1`. */
|
|
22
|
+
get hideOnSinglePage(): boolean;
|
|
23
|
+
set itemsPerPage(v: number);
|
|
24
|
+
/**
|
|
25
|
+
* Currently selected items-per-page value. Returns `null` when the
|
|
26
|
+
* attribute is unset or not numeric.
|
|
27
|
+
*/
|
|
28
|
+
get itemsPerPage(): number;
|
|
29
|
+
set pageCount(v: number);
|
|
30
|
+
/** Maximum number of page buttons displayed at once (excluding ellipses). */
|
|
31
|
+
get pageCount(): number;
|
|
32
|
+
set pageSizeLabel(v: string);
|
|
33
|
+
/** Label rendered next to the items-per-page select. */
|
|
34
|
+
get pageSizeLabel(): string;
|
|
35
|
+
set pageSizeOptions(v: any[]);
|
|
36
|
+
/**
|
|
37
|
+
* Available items-per-page choices. Accepts a JSON array of numbers
|
|
38
|
+
* (e.g. `[10, 25, 50]`) or `{ value, label }` objects. Returns `[]` when
|
|
39
|
+
* unset or invalid; the items-per-page select is only rendered when at
|
|
40
|
+
* least one option is available.
|
|
41
|
+
*/
|
|
42
|
+
get pageSizeOptions(): any[];
|
|
43
|
+
set size(v: string);
|
|
44
|
+
/** Controls button size, font size, and spacing. */
|
|
45
|
+
get size(): string;
|
|
46
|
+
set totalPages(v: number);
|
|
47
|
+
/** Total number of pages. `0` indicates no data. */
|
|
48
|
+
get totalPages(): number;
|
|
49
|
+
set variant(v: string);
|
|
50
|
+
/** Visual style — `default`, `compact`, or `detailed` (with prev/next labels). */
|
|
51
|
+
get variant(): string;
|
|
52
|
+
/** Programmatically jump to a page. Honors event cancellation. */
|
|
53
|
+
goTo(page: any): void;
|
|
54
|
+
/** Advance to the next page. */
|
|
55
|
+
next(): void;
|
|
56
|
+
/** Return to the previous page. */
|
|
57
|
+
previous(): void;
|
|
58
|
+
/** Programmatically change items-per-page. Honors event cancellation. */
|
|
59
|
+
setPageSize(value: any): void;
|
|
60
|
+
_buildButton(page: any, { isCurrent, isDisabled }: {
|
|
61
|
+
isCurrent: any;
|
|
62
|
+
isDisabled: any;
|
|
63
|
+
}): HTMLElement;
|
|
64
|
+
_buildEllipsis(key: any): HTMLElement;
|
|
65
|
+
_buildList(items: any, current: any, isHostDisabled: any): HTMLElement;
|
|
66
|
+
_buildNavButton(direction: any, current: any, total: any, isHostDisabled: any): HTMLElement;
|
|
67
|
+
_navIsEdge(direction: any, current: any, total: any): boolean;
|
|
68
|
+
_navTargetPage(direction: any, current: any, total: any): any;
|
|
69
|
+
_buildCompactNav(wrapper: any, current: any, total: any, isHostDisabled: any): void;
|
|
70
|
+
_buildCompactStatus(current: any, total: any): HTMLElement;
|
|
71
|
+
_buildDefaultNav(wrapper: any, current: any, total: any, isHostDisabled: any): void;
|
|
72
|
+
_buildPageSizeSelect(): HTMLElement;
|
|
73
|
+
_buildStyles(): string;
|
|
74
|
+
_getPageList(current: any, total: any, pageCount: any, boundaryCount: any): any[];
|
|
75
|
+
_dedupe(items: any): any[];
|
|
76
|
+
_focusableButtons(): Element[];
|
|
77
|
+
_focusYButton(yBtn: any): void;
|
|
78
|
+
_focusFirstButton(): void;
|
|
79
|
+
_focusLastButton(): void;
|
|
80
|
+
_stepFocus(currentBtn: any, offset: any): void;
|
|
81
|
+
_onPageClick(page: any): void;
|
|
82
|
+
_range(start: any, end: any): any[];
|
|
83
|
+
_render(): void;
|
|
84
|
+
_requestPageSizeChange(nextSize: any): void;
|
|
85
|
+
_requestPageChange(nextPage: any): void;
|
|
86
|
+
}
|