@wcardinal/wcardinal-ui 0.339.0 → 0.340.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/types/wcardinal/ui/d-pagination.d.ts +15 -3
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.d.ts +6 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-dots.d.ts +6 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-page.d.ts +1 -0
- package/dist/wcardinal/ui/d-pagination.js +355 -110
- package/dist/wcardinal/ui/d-pagination.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.js +15 -3
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.js +4 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots.js +15 -3
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-page.js +4 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-page.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +17 -4
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +17 -4
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
- package/dist/wcardinal-ui.cjs.js +386 -116
- package/dist/wcardinal-ui.js +354 -110
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { DPaginationButtonPageOptions } from "./d-pagination-button-page";
|
|
|
7
7
|
import { DPaginationButtonPreviousOptions } from "./d-pagination-button-previous";
|
|
8
8
|
import { DPaginationButtonTopOptions } from "./d-pagination-button-top";
|
|
9
9
|
import { DPaginationPage, DPaginationPageOptions } from "./d-pagination-page";
|
|
10
|
-
import { DLayoutSpace } from "./d-layout-space";
|
|
10
|
+
import { DLayoutSpace, DLayoutSpaceOptions } from "./d-layout-space";
|
|
11
11
|
import { DImageBase } from "./d-image-base";
|
|
12
12
|
export interface DPaginationButtonOptions {
|
|
13
13
|
/**
|
|
@@ -33,7 +33,7 @@ export interface DPaginationButtonOptions {
|
|
|
33
33
|
/**
|
|
34
34
|
* A space between page buttons and next / previous buttons.
|
|
35
35
|
*/
|
|
36
|
-
space?: number;
|
|
36
|
+
space?: DLayoutSpaceOptions | boolean | number | null;
|
|
37
37
|
}
|
|
38
38
|
export interface DPaginationOptions<THEME extends DThemePagination> extends DLayoutHorizontalOptions<THEME> {
|
|
39
39
|
/**
|
|
@@ -73,15 +73,16 @@ export declare class DPagination<THEME extends DThemePagination = DThemePaginati
|
|
|
73
73
|
protected _value: number;
|
|
74
74
|
protected _buttonTop?: DButton<string> | null;
|
|
75
75
|
protected _buttonPrevious?: DButton<string> | null;
|
|
76
|
+
protected _spaceLeft?: DLayoutSpace | null;
|
|
76
77
|
protected _dots0?: DPaginationDots;
|
|
77
78
|
protected _buttonPages0?: DButton<number>[];
|
|
78
79
|
protected _page?: DPaginationPage;
|
|
79
80
|
protected _buttonPages1?: DButton<number>[];
|
|
80
81
|
protected _dots1?: DPaginationDots;
|
|
82
|
+
protected _spaceRight?: DLayoutSpace | null;
|
|
81
83
|
protected _buttonNext?: DButton<string> | null;
|
|
82
84
|
protected _buttonLast?: DButton<string> | null;
|
|
83
85
|
constructor(options?: OPTIONS);
|
|
84
|
-
protected newSpace(): DLayoutSpace;
|
|
85
86
|
/**
|
|
86
87
|
* Sets a value that is an index of a current page.
|
|
87
88
|
*
|
|
@@ -153,12 +154,23 @@ export declare class DPagination<THEME extends DThemePagination = DThemePaginati
|
|
|
153
154
|
protected newButtonPage(): DButton<number>;
|
|
154
155
|
protected get buttonPages0(): DButton<number>[];
|
|
155
156
|
protected newButtonPages0(): DButton<number>[];
|
|
157
|
+
protected allocButtonPages0(size: number): void;
|
|
156
158
|
protected get buttonPages1(): DButton<number>[];
|
|
157
159
|
protected newButtonPages1(): DButton<number>[];
|
|
160
|
+
protected allocButtonPages1(size: number): void;
|
|
158
161
|
protected get page(): DPaginationPage;
|
|
159
162
|
protected newPage(): DPaginationPage;
|
|
160
163
|
protected onButtonPageActive(button: DButton<number>): void;
|
|
164
|
+
protected get spaceLeft(): DLayoutSpace | null;
|
|
165
|
+
protected newSpaceLeft(): DLayoutSpace | null;
|
|
166
|
+
protected get spaceRight(): DLayoutSpace | null;
|
|
167
|
+
protected newSpaceRight(): DLayoutSpace | null;
|
|
168
|
+
protected newSpace(): DLayoutSpace | null;
|
|
169
|
+
protected onReflow(): void;
|
|
161
170
|
protected update(): void;
|
|
171
|
+
protected doUpdate0(value: number, size: number): void;
|
|
172
|
+
protected doUpdate1(value: number, size: number): void;
|
|
173
|
+
protected doUpdate2(value: number, size: number, left: 0 | 1 | 2 | 3 | 4, right: 0 | 1 | 2 | 3 | 4, nleft1: number, nright1: number): void;
|
|
162
174
|
protected showPage(button: DImageBase<number>, index: number): void;
|
|
163
175
|
protected hidePage(button: DImageBase<number>): void;
|
|
164
176
|
protected showDots(dots: DPaginationDots, from: number, to: number): void;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { DAlignHorizontal } from "../../d-align-horizontal";
|
|
2
|
+
import { DAlignWith } from "../../d-align-with";
|
|
3
|
+
import { DBaseInteractive } from "../../d-base-interactive";
|
|
1
4
|
import { DBaseStateSet } from "../../d-base-state-set";
|
|
2
5
|
import { DCoordinateSize } from "../../d-coordinate";
|
|
3
6
|
import { DThemePaginationDots } from "../../d-pagination-dots";
|
|
@@ -5,6 +8,9 @@ import { DThemeDarkImageBase } from "./d-theme-dark-image-base";
|
|
|
5
8
|
export declare class DThemeDarkPaginationDots extends DThemeDarkImageBase<string> implements DThemePaginationDots {
|
|
6
9
|
getWidth(): DCoordinateSize;
|
|
7
10
|
getHeight(): DCoordinateSize;
|
|
11
|
+
getInteractive(): DBaseInteractive;
|
|
8
12
|
newState(state: DBaseStateSet): void;
|
|
9
13
|
getImageSource(state: DBaseStateSet): PIXI.Texture | PIXI.DisplayObject | null;
|
|
14
|
+
getImageAlignHorizontal(): DAlignHorizontal;
|
|
15
|
+
getImageAlignWith(): DAlignWith;
|
|
10
16
|
}
|
|
@@ -8,6 +8,7 @@ export declare class DThemeDarkPaginationPage extends DThemeDarkImageBase<number
|
|
|
8
8
|
getColor(state: DBaseStateSet): number;
|
|
9
9
|
getWidth(): DCoordinateSize;
|
|
10
10
|
getHeight(): DCoordinateSize;
|
|
11
|
+
newState(state: DBaseStateSet): void;
|
|
11
12
|
getTextStyleClipping(): boolean;
|
|
12
13
|
getTextAlignHorizontal(): DAlignHorizontal;
|
|
13
14
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { DAlignHorizontal } from "../../d-align-horizontal";
|
|
2
|
+
import { DAlignWith } from "../../d-align-with";
|
|
3
|
+
import { DBaseInteractive } from "../../d-base-interactive";
|
|
1
4
|
import { DBaseStateSet } from "../../d-base-state-set";
|
|
2
5
|
import { DCoordinateSize } from "../../d-coordinate";
|
|
3
6
|
import { DThemePaginationDots } from "../../d-pagination-dots";
|
|
@@ -5,6 +8,9 @@ import { DThemeWhiteImageBase } from "./d-theme-white-image-base";
|
|
|
5
8
|
export declare class DThemeWhitePaginationDots extends DThemeWhiteImageBase<string> implements DThemePaginationDots {
|
|
6
9
|
getWidth(): DCoordinateSize;
|
|
7
10
|
getHeight(): DCoordinateSize;
|
|
11
|
+
getInteractive(): DBaseInteractive;
|
|
8
12
|
newState(state: DBaseStateSet): void;
|
|
9
13
|
getImageSource(state: DBaseStateSet): PIXI.Texture | PIXI.DisplayObject | null;
|
|
14
|
+
getImageAlignHorizontal(): DAlignHorizontal;
|
|
15
|
+
getImageAlignWith(): DAlignWith;
|
|
10
16
|
}
|
|
@@ -8,6 +8,7 @@ export declare class DThemeWhitePaginationPage extends DThemeWhiteImageBase<numb
|
|
|
8
8
|
getColor(state: DBaseStateSet): number;
|
|
9
9
|
getWidth(): DCoordinateSize;
|
|
10
10
|
getHeight(): DCoordinateSize;
|
|
11
|
+
newState(state: DBaseStateSet): void;
|
|
11
12
|
getTextStyleClipping(): boolean;
|
|
12
13
|
getTextAlignHorizontal(): DAlignHorizontal;
|
|
13
14
|
}
|