@everymatrix/lottery-hakuna-ticket-history 0.0.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.
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-dc95b9af.js +1336 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/lottery-button_8.cjs.entry.js +1427 -0
- package/dist/cjs/lottery-hakuna-ticket-history-84d9a41b.js +2697 -0
- package/dist/cjs/lottery-hakuna-ticket-history.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +50 -0
- package/dist/collection/components/lottery-hakuna-ticket-history/index.js +1 -0
- package/dist/collection/components/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.css +74 -0
- package/dist/collection/components/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.js +589 -0
- package/dist/collection/components/lottery-infinite-scroll/lottery-infinite-scroll.css +69 -0
- package/dist/collection/components/lottery-infinite-scroll/lottery-infinite-scroll.js +556 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/models/index.js +21 -0
- package/dist/collection/utils/api.js +149 -0
- package/dist/collection/utils/locale.utils.js +42 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-50addd47.js +1307 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/lottery-button_8.entry.js +1417 -0
- package/dist/esm/lottery-hakuna-ticket-history-cdab50d9.js +2691 -0
- package/dist/esm/lottery-hakuna-ticket-history.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/lottery-hakuna-ticket-history/app-globals-0f993ce5.js +1 -0
- package/dist/lottery-hakuna-ticket-history/index-50addd47.js +2 -0
- package/dist/lottery-hakuna-ticket-history/index.esm.js +1 -0
- package/dist/lottery-hakuna-ticket-history/lottery-button_8.entry.js +1 -0
- package/dist/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history-cdab50d9.js +1 -0
- package/dist/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.esm.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-ticket-history/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-ticket-history/.stencil/packages/stencil/lottery-hakuna-ticket-history/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-ticket-history/.stencil/packages/stencil/lottery-hakuna-ticket-history/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-ticket-history/.stencil/packages/stencil/lottery-hakuna-ticket-history/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-ticket-history/.stencil/packages/stencil/lottery-hakuna-ticket-history/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-ticket-history/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-ticket-history/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-ticket-history/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-ticket-history/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-ticket-history/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/lottery-hakuna-ticket-history/index.d.ts +1 -0
- package/dist/types/components/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.d.ts +131 -0
- package/dist/types/components/lottery-infinite-scroll/lottery-infinite-scroll.d.ts +106 -0
- package/dist/types/components.d.ts +362 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/index.d.ts +199 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/api.d.ts +8 -0
- package/dist/types/utils/locale.utils.d.ts +3 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +27 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LotteryHakunaTicketHistory } from './lottery-hakuna-ticket-history';
|
package/dist/types/components/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.d.ts
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import "../../../../../../dist/packages/stencil/lottery-hakuna-ticket-history-item/dist/types/index";
|
|
2
|
+
import { TicketItem } from '../../models';
|
|
3
|
+
export declare class LotteryHakunaTicketHistory {
|
|
4
|
+
/**
|
|
5
|
+
* The source for stream styling via a service.
|
|
6
|
+
*/
|
|
7
|
+
mbSource: string;
|
|
8
|
+
/**
|
|
9
|
+
* Custom CSS styles to apply to the component.
|
|
10
|
+
*/
|
|
11
|
+
clientStyling: string;
|
|
12
|
+
/**
|
|
13
|
+
* URL to a custom CSS file for additional styling.
|
|
14
|
+
*/
|
|
15
|
+
clientStylingUrl: string;
|
|
16
|
+
/**
|
|
17
|
+
* The language code to use for translations. Defaults to 'en'.
|
|
18
|
+
*/
|
|
19
|
+
language: string;
|
|
20
|
+
/**
|
|
21
|
+
* URL to fetch custom translation data from.
|
|
22
|
+
*/
|
|
23
|
+
translationUrl: string;
|
|
24
|
+
/**
|
|
25
|
+
* The API endpoint to fetch ticket data from.
|
|
26
|
+
*/
|
|
27
|
+
endpoint: string;
|
|
28
|
+
/**
|
|
29
|
+
* Game ID of the lottery game.
|
|
30
|
+
*/
|
|
31
|
+
gameId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Player ID.
|
|
34
|
+
*/
|
|
35
|
+
playerId: number;
|
|
36
|
+
/**
|
|
37
|
+
* GIC Session.
|
|
38
|
+
*/
|
|
39
|
+
sessionId: string;
|
|
40
|
+
/**
|
|
41
|
+
* Threshold distance from the bottom to trigger loading more items.
|
|
42
|
+
* Default: '0px 0px 200px 0px'
|
|
43
|
+
*/
|
|
44
|
+
scrollThreshold: string;
|
|
45
|
+
/**
|
|
46
|
+
* Estimated height of a single ticket item in pixels.
|
|
47
|
+
*/
|
|
48
|
+
scrollItemHeight: number;
|
|
49
|
+
/**
|
|
50
|
+
* Height of the scrollable container in pixels.
|
|
51
|
+
*/
|
|
52
|
+
scrollContainerHeight: number;
|
|
53
|
+
/**
|
|
54
|
+
* Title displayed at the top of the ticket history.
|
|
55
|
+
*/
|
|
56
|
+
ticketHistoryTitle: string;
|
|
57
|
+
/**
|
|
58
|
+
* Image Src displayed for each of the ticket history items.
|
|
59
|
+
*/
|
|
60
|
+
ticketHistoryItemImageSrc: string;
|
|
61
|
+
/**
|
|
62
|
+
* Name displayed for each of the ticket history items.
|
|
63
|
+
*/
|
|
64
|
+
ticketHistoryItemName: string;
|
|
65
|
+
/**
|
|
66
|
+
* Name displayed for each of the ticket history items.
|
|
67
|
+
*/
|
|
68
|
+
ticketHistoryItemCurrency: string;
|
|
69
|
+
/**
|
|
70
|
+
* Custom text to display when loading more items.
|
|
71
|
+
*/
|
|
72
|
+
listLoadingText: string;
|
|
73
|
+
/**
|
|
74
|
+
* Custom text to display when list is refreshing (pull-to-refresh).
|
|
75
|
+
*/
|
|
76
|
+
listRefreshingText: string;
|
|
77
|
+
/**
|
|
78
|
+
* Custom text to display when the end of the list is reached.
|
|
79
|
+
*/
|
|
80
|
+
listEndText: string;
|
|
81
|
+
/**
|
|
82
|
+
* Number of items to fetch per page.
|
|
83
|
+
*/
|
|
84
|
+
limit: number;
|
|
85
|
+
/**
|
|
86
|
+
* List of tickets currently visible in the list.
|
|
87
|
+
*/
|
|
88
|
+
visibleTickets: TicketItem[];
|
|
89
|
+
/**
|
|
90
|
+
* Whether there are more tickets to load from the server.
|
|
91
|
+
*/
|
|
92
|
+
hasMore: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Indicates if tickets are currently being loaded.
|
|
95
|
+
*/
|
|
96
|
+
isLoading: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Indicates if the list is currently being refreshed.
|
|
99
|
+
*/
|
|
100
|
+
isRefreshing: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Error message to display if fetching fails.
|
|
103
|
+
*/
|
|
104
|
+
errorMessage: string;
|
|
105
|
+
/** Grid layout configuration: minimum column width
|
|
106
|
+
* Used with CSS Grid to achieve responsiveness: repeat(auto-fill, minmax(minItemWidth, 1fr))
|
|
107
|
+
*/
|
|
108
|
+
minItemWidth: number;
|
|
109
|
+
/**
|
|
110
|
+
* Whether to show skeleton
|
|
111
|
+
*/
|
|
112
|
+
showSkeleton: boolean;
|
|
113
|
+
private page;
|
|
114
|
+
private vendorGameType;
|
|
115
|
+
private stylingContainer;
|
|
116
|
+
private stylingSubscription;
|
|
117
|
+
private readonly customStyle;
|
|
118
|
+
handleClientStylingChange(newValue: any, oldValue: any): void;
|
|
119
|
+
handleClientStylingUrlChange(newValue: any, oldValue: any): void;
|
|
120
|
+
handleMbSourceChange(newValue: any, oldValue: any): void;
|
|
121
|
+
componentWillLoad(): void;
|
|
122
|
+
private getTicketList;
|
|
123
|
+
componentDidLoad(): void;
|
|
124
|
+
disconnectedCallback(): void;
|
|
125
|
+
handleLoadMore: () => void;
|
|
126
|
+
handleRefresh: () => void;
|
|
127
|
+
private renderSkeleton;
|
|
128
|
+
private renderItem;
|
|
129
|
+
private renderInfoIcon;
|
|
130
|
+
render(): any;
|
|
131
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class LotteryInfiniteScroll {
|
|
3
|
+
el: HTMLElement;
|
|
4
|
+
/**
|
|
5
|
+
* An array of items to be displayed in the infinite scroll list.
|
|
6
|
+
*/
|
|
7
|
+
items: any[];
|
|
8
|
+
/**
|
|
9
|
+
* Indicates if there are more items to load. When false, no more `loadMore` events will be emitted.
|
|
10
|
+
*/
|
|
11
|
+
hasMore: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Indicates if new items are currently being loaded. Used to prevent multiple `loadMore` calls.
|
|
14
|
+
*/
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates if the component is currently in a refreshing state (e.g., during pull-to-refresh).
|
|
18
|
+
*/
|
|
19
|
+
isRefreshing: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the intersection root margin for the IntersectionObserver.
|
|
22
|
+
* This allows for pre-loading content before the sentinel becomes visible.
|
|
23
|
+
* E.g., '0px 0px 200px 0px' means the bottom margin is 200px.
|
|
24
|
+
*/
|
|
25
|
+
threshold: string;
|
|
26
|
+
/**
|
|
27
|
+
* Estimated height of each item.
|
|
28
|
+
* Used in virtual scrolling to calculate the total scrollbar length.
|
|
29
|
+
* Even if actual heights vary, an average value is sufficient;
|
|
30
|
+
* CSS handles layout fluidly without overlap.
|
|
31
|
+
*/
|
|
32
|
+
estimatedItemHeight: number;
|
|
33
|
+
/**
|
|
34
|
+
* Container height. If `enableVirtualScroll` is true,
|
|
35
|
+
* it is recommended to explicitly set the container height in CSS
|
|
36
|
+
* or pass this value.
|
|
37
|
+
*/
|
|
38
|
+
containerHeight: string;
|
|
39
|
+
/**
|
|
40
|
+
* Enables or disables virtual scrolling for performance optimization with large lists.
|
|
41
|
+
*/
|
|
42
|
+
enableVirtualScroll: boolean;
|
|
43
|
+
/** Render function */
|
|
44
|
+
renderItem: (item: any, index: number) => any;
|
|
45
|
+
/** Render function for skeleton item */
|
|
46
|
+
renderSkeleton: (index: number) => any;
|
|
47
|
+
/** Number of skeleton items to show during initial load */
|
|
48
|
+
skeletonCount: number;
|
|
49
|
+
/** Pull-to-refresh trigger distance */
|
|
50
|
+
pullTriggerDistance: number;
|
|
51
|
+
/** Grid layout configuration: minimum column width
|
|
52
|
+
* Used with CSS Grid to achieve responsiveness: repeat(auto-fill, minmax(minItemWidth, 1fr))
|
|
53
|
+
*/
|
|
54
|
+
minItemWidth: number;
|
|
55
|
+
/** Grid spacing (px) */
|
|
56
|
+
gridGap: number;
|
|
57
|
+
/**
|
|
58
|
+
* Emitted when the user scrolls near the end of the list, indicating that more items should be loaded.
|
|
59
|
+
*/
|
|
60
|
+
loadMore: EventEmitter<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Emitted when the pull-to-refresh action is triggered by the user.
|
|
63
|
+
*/
|
|
64
|
+
refresh: EventEmitter<void>;
|
|
65
|
+
/**
|
|
66
|
+
* The starting index of the items currently visible in the viewport (for virtual scrolling).
|
|
67
|
+
*/
|
|
68
|
+
visibleStartIndex: number;
|
|
69
|
+
/**
|
|
70
|
+
* The ending index of the items currently visible in the viewport (for virtual scrolling).
|
|
71
|
+
*/
|
|
72
|
+
visibleEndIndex: number;
|
|
73
|
+
/**
|
|
74
|
+
* The current distance of the pull-to-refresh action.
|
|
75
|
+
*/
|
|
76
|
+
pullDistance: number;
|
|
77
|
+
/** Number of columns that can fit in the current container width */
|
|
78
|
+
columns: number;
|
|
79
|
+
private observer;
|
|
80
|
+
private resizeObserver;
|
|
81
|
+
/** The HTMLElement observed by the IntersectionObserver (bottom sentinel). */
|
|
82
|
+
private sentinel;
|
|
83
|
+
/** The scrollable container HTMLElement. */
|
|
84
|
+
private scrollContainer;
|
|
85
|
+
/** Y-coordinate of the touch start event. */
|
|
86
|
+
private startY;
|
|
87
|
+
/** Indicates if a touch event is currently active for pull-to-refresh. */
|
|
88
|
+
private isTouching;
|
|
89
|
+
private rafId;
|
|
90
|
+
componentDidLoad(): void;
|
|
91
|
+
componentDidUpdate(): void;
|
|
92
|
+
disconnectedCallback(): void;
|
|
93
|
+
private initResizeObserver;
|
|
94
|
+
private recalcColumns;
|
|
95
|
+
handleItemsChange(): void;
|
|
96
|
+
handleRefreshingChange(newValue: boolean): void;
|
|
97
|
+
private disconnectObserver;
|
|
98
|
+
private initObserver;
|
|
99
|
+
private onScroll;
|
|
100
|
+
private calculateMetrics;
|
|
101
|
+
private calculateVisibleRange;
|
|
102
|
+
private handleTouchStart;
|
|
103
|
+
private handleTouchMove;
|
|
104
|
+
private handleTouchEnd;
|
|
105
|
+
render(): any;
|
|
106
|
+
}
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
export namespace Components {
|
|
9
|
+
interface LotteryHakunaTicketHistory {
|
|
10
|
+
/**
|
|
11
|
+
* Custom CSS styles to apply to the component.
|
|
12
|
+
*/
|
|
13
|
+
"clientStyling": string;
|
|
14
|
+
/**
|
|
15
|
+
* URL to a custom CSS file for additional styling.
|
|
16
|
+
*/
|
|
17
|
+
"clientStylingUrl": string;
|
|
18
|
+
/**
|
|
19
|
+
* The API endpoint to fetch ticket data from.
|
|
20
|
+
*/
|
|
21
|
+
"endpoint": string;
|
|
22
|
+
/**
|
|
23
|
+
* Game ID of the lottery game.
|
|
24
|
+
*/
|
|
25
|
+
"gameId": string;
|
|
26
|
+
/**
|
|
27
|
+
* The language code to use for translations. Defaults to 'en'.
|
|
28
|
+
*/
|
|
29
|
+
"language": string;
|
|
30
|
+
/**
|
|
31
|
+
* Number of items to fetch per page.
|
|
32
|
+
*/
|
|
33
|
+
"limit": number;
|
|
34
|
+
/**
|
|
35
|
+
* Custom text to display when the end of the list is reached.
|
|
36
|
+
*/
|
|
37
|
+
"listEndText": string;
|
|
38
|
+
/**
|
|
39
|
+
* Custom text to display when loading more items.
|
|
40
|
+
*/
|
|
41
|
+
"listLoadingText": string;
|
|
42
|
+
/**
|
|
43
|
+
* Custom text to display when list is refreshing (pull-to-refresh).
|
|
44
|
+
*/
|
|
45
|
+
"listRefreshingText": string;
|
|
46
|
+
/**
|
|
47
|
+
* The source for stream styling via a service.
|
|
48
|
+
*/
|
|
49
|
+
"mbSource": string;
|
|
50
|
+
/**
|
|
51
|
+
* Grid layout configuration: minimum column width Used with CSS Grid to achieve responsiveness: repeat(auto-fill, minmax(minItemWidth, 1fr))
|
|
52
|
+
*/
|
|
53
|
+
"minItemWidth": number;
|
|
54
|
+
/**
|
|
55
|
+
* Player ID.
|
|
56
|
+
*/
|
|
57
|
+
"playerId": number;
|
|
58
|
+
/**
|
|
59
|
+
* Height of the scrollable container in pixels.
|
|
60
|
+
*/
|
|
61
|
+
"scrollContainerHeight": number;
|
|
62
|
+
/**
|
|
63
|
+
* Estimated height of a single ticket item in pixels.
|
|
64
|
+
*/
|
|
65
|
+
"scrollItemHeight": number;
|
|
66
|
+
/**
|
|
67
|
+
* Threshold distance from the bottom to trigger loading more items. Default: '0px 0px 200px 0px'
|
|
68
|
+
*/
|
|
69
|
+
"scrollThreshold": string;
|
|
70
|
+
/**
|
|
71
|
+
* GIC Session.
|
|
72
|
+
*/
|
|
73
|
+
"sessionId": string;
|
|
74
|
+
/**
|
|
75
|
+
* Whether to show skeleton
|
|
76
|
+
*/
|
|
77
|
+
"showSkeleton": boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Name displayed for each of the ticket history items.
|
|
80
|
+
*/
|
|
81
|
+
"ticketHistoryItemCurrency": string;
|
|
82
|
+
/**
|
|
83
|
+
* Image Src displayed for each of the ticket history items.
|
|
84
|
+
*/
|
|
85
|
+
"ticketHistoryItemImageSrc": string;
|
|
86
|
+
/**
|
|
87
|
+
* Name displayed for each of the ticket history items.
|
|
88
|
+
*/
|
|
89
|
+
"ticketHistoryItemName": string;
|
|
90
|
+
/**
|
|
91
|
+
* Title displayed at the top of the ticket history.
|
|
92
|
+
*/
|
|
93
|
+
"ticketHistoryTitle": string;
|
|
94
|
+
/**
|
|
95
|
+
* URL to fetch custom translation data from.
|
|
96
|
+
*/
|
|
97
|
+
"translationUrl": string;
|
|
98
|
+
}
|
|
99
|
+
interface LotteryInfiniteScroll {
|
|
100
|
+
/**
|
|
101
|
+
* Container height. If `enableVirtualScroll` is true, it is recommended to explicitly set the container height in CSS or pass this value.
|
|
102
|
+
*/
|
|
103
|
+
"containerHeight": string;
|
|
104
|
+
/**
|
|
105
|
+
* Enables or disables virtual scrolling for performance optimization with large lists.
|
|
106
|
+
*/
|
|
107
|
+
"enableVirtualScroll": boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Estimated height of each item. Used in virtual scrolling to calculate the total scrollbar length. Even if actual heights vary, an average value is sufficient; CSS handles layout fluidly without overlap.
|
|
110
|
+
*/
|
|
111
|
+
"estimatedItemHeight": number;
|
|
112
|
+
/**
|
|
113
|
+
* Grid spacing (px)
|
|
114
|
+
*/
|
|
115
|
+
"gridGap": number;
|
|
116
|
+
/**
|
|
117
|
+
* Indicates if there are more items to load. When false, no more `loadMore` events will be emitted.
|
|
118
|
+
*/
|
|
119
|
+
"hasMore": boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Indicates if new items are currently being loaded. Used to prevent multiple `loadMore` calls.
|
|
122
|
+
*/
|
|
123
|
+
"isLoading": boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Indicates if the component is currently in a refreshing state (e.g., during pull-to-refresh).
|
|
126
|
+
*/
|
|
127
|
+
"isRefreshing": boolean;
|
|
128
|
+
/**
|
|
129
|
+
* An array of items to be displayed in the infinite scroll list.
|
|
130
|
+
*/
|
|
131
|
+
"items": any[];
|
|
132
|
+
/**
|
|
133
|
+
* Grid layout configuration: minimum column width Used with CSS Grid to achieve responsiveness: repeat(auto-fill, minmax(minItemWidth, 1fr))
|
|
134
|
+
*/
|
|
135
|
+
"minItemWidth": number;
|
|
136
|
+
/**
|
|
137
|
+
* Pull-to-refresh trigger distance
|
|
138
|
+
*/
|
|
139
|
+
"pullTriggerDistance": number;
|
|
140
|
+
/**
|
|
141
|
+
* Render function
|
|
142
|
+
*/
|
|
143
|
+
"renderItem": (item: any, index: number) => any;
|
|
144
|
+
/**
|
|
145
|
+
* Render function for skeleton item
|
|
146
|
+
*/
|
|
147
|
+
"renderSkeleton": (index: number) => any;
|
|
148
|
+
/**
|
|
149
|
+
* Number of skeleton items to show during initial load
|
|
150
|
+
*/
|
|
151
|
+
"skeletonCount": number;
|
|
152
|
+
/**
|
|
153
|
+
* Defines the intersection root margin for the IntersectionObserver. This allows for pre-loading content before the sentinel becomes visible. E.g., '0px 0px 200px 0px' means the bottom margin is 200px.
|
|
154
|
+
*/
|
|
155
|
+
"threshold": string;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
export interface LotteryInfiniteScrollCustomEvent<T> extends CustomEvent<T> {
|
|
159
|
+
detail: T;
|
|
160
|
+
target: HTMLLotteryInfiniteScrollElement;
|
|
161
|
+
}
|
|
162
|
+
declare global {
|
|
163
|
+
interface HTMLLotteryHakunaTicketHistoryElement extends Components.LotteryHakunaTicketHistory, HTMLStencilElement {
|
|
164
|
+
}
|
|
165
|
+
var HTMLLotteryHakunaTicketHistoryElement: {
|
|
166
|
+
prototype: HTMLLotteryHakunaTicketHistoryElement;
|
|
167
|
+
new (): HTMLLotteryHakunaTicketHistoryElement;
|
|
168
|
+
};
|
|
169
|
+
interface HTMLLotteryInfiniteScrollElementEventMap {
|
|
170
|
+
"loadMore": void;
|
|
171
|
+
"refresh": void;
|
|
172
|
+
}
|
|
173
|
+
interface HTMLLotteryInfiniteScrollElement extends Components.LotteryInfiniteScroll, HTMLStencilElement {
|
|
174
|
+
addEventListener<K extends keyof HTMLLotteryInfiniteScrollElementEventMap>(type: K, listener: (this: HTMLLotteryInfiniteScrollElement, ev: LotteryInfiniteScrollCustomEvent<HTMLLotteryInfiniteScrollElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
175
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
176
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
177
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
178
|
+
removeEventListener<K extends keyof HTMLLotteryInfiniteScrollElementEventMap>(type: K, listener: (this: HTMLLotteryInfiniteScrollElement, ev: LotteryInfiniteScrollCustomEvent<HTMLLotteryInfiniteScrollElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
179
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
180
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
181
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
182
|
+
}
|
|
183
|
+
var HTMLLotteryInfiniteScrollElement: {
|
|
184
|
+
prototype: HTMLLotteryInfiniteScrollElement;
|
|
185
|
+
new (): HTMLLotteryInfiniteScrollElement;
|
|
186
|
+
};
|
|
187
|
+
interface HTMLElementTagNameMap {
|
|
188
|
+
"lottery-hakuna-ticket-history": HTMLLotteryHakunaTicketHistoryElement;
|
|
189
|
+
"lottery-infinite-scroll": HTMLLotteryInfiniteScrollElement;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
declare namespace LocalJSX {
|
|
193
|
+
interface LotteryHakunaTicketHistory {
|
|
194
|
+
/**
|
|
195
|
+
* Custom CSS styles to apply to the component.
|
|
196
|
+
*/
|
|
197
|
+
"clientStyling"?: string;
|
|
198
|
+
/**
|
|
199
|
+
* URL to a custom CSS file for additional styling.
|
|
200
|
+
*/
|
|
201
|
+
"clientStylingUrl"?: string;
|
|
202
|
+
/**
|
|
203
|
+
* The API endpoint to fetch ticket data from.
|
|
204
|
+
*/
|
|
205
|
+
"endpoint"?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Game ID of the lottery game.
|
|
208
|
+
*/
|
|
209
|
+
"gameId"?: string;
|
|
210
|
+
/**
|
|
211
|
+
* The language code to use for translations. Defaults to 'en'.
|
|
212
|
+
*/
|
|
213
|
+
"language"?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Number of items to fetch per page.
|
|
216
|
+
*/
|
|
217
|
+
"limit"?: number;
|
|
218
|
+
/**
|
|
219
|
+
* Custom text to display when the end of the list is reached.
|
|
220
|
+
*/
|
|
221
|
+
"listEndText"?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Custom text to display when loading more items.
|
|
224
|
+
*/
|
|
225
|
+
"listLoadingText"?: string;
|
|
226
|
+
/**
|
|
227
|
+
* Custom text to display when list is refreshing (pull-to-refresh).
|
|
228
|
+
*/
|
|
229
|
+
"listRefreshingText"?: string;
|
|
230
|
+
/**
|
|
231
|
+
* The source for stream styling via a service.
|
|
232
|
+
*/
|
|
233
|
+
"mbSource"?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Grid layout configuration: minimum column width Used with CSS Grid to achieve responsiveness: repeat(auto-fill, minmax(minItemWidth, 1fr))
|
|
236
|
+
*/
|
|
237
|
+
"minItemWidth"?: number;
|
|
238
|
+
/**
|
|
239
|
+
* Player ID.
|
|
240
|
+
*/
|
|
241
|
+
"playerId"?: number;
|
|
242
|
+
/**
|
|
243
|
+
* Height of the scrollable container in pixels.
|
|
244
|
+
*/
|
|
245
|
+
"scrollContainerHeight"?: number;
|
|
246
|
+
/**
|
|
247
|
+
* Estimated height of a single ticket item in pixels.
|
|
248
|
+
*/
|
|
249
|
+
"scrollItemHeight"?: number;
|
|
250
|
+
/**
|
|
251
|
+
* Threshold distance from the bottom to trigger loading more items. Default: '0px 0px 200px 0px'
|
|
252
|
+
*/
|
|
253
|
+
"scrollThreshold"?: string;
|
|
254
|
+
/**
|
|
255
|
+
* GIC Session.
|
|
256
|
+
*/
|
|
257
|
+
"sessionId"?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Whether to show skeleton
|
|
260
|
+
*/
|
|
261
|
+
"showSkeleton"?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Name displayed for each of the ticket history items.
|
|
264
|
+
*/
|
|
265
|
+
"ticketHistoryItemCurrency"?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Image Src displayed for each of the ticket history items.
|
|
268
|
+
*/
|
|
269
|
+
"ticketHistoryItemImageSrc"?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Name displayed for each of the ticket history items.
|
|
272
|
+
*/
|
|
273
|
+
"ticketHistoryItemName"?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Title displayed at the top of the ticket history.
|
|
276
|
+
*/
|
|
277
|
+
"ticketHistoryTitle"?: string;
|
|
278
|
+
/**
|
|
279
|
+
* URL to fetch custom translation data from.
|
|
280
|
+
*/
|
|
281
|
+
"translationUrl"?: string;
|
|
282
|
+
}
|
|
283
|
+
interface LotteryInfiniteScroll {
|
|
284
|
+
/**
|
|
285
|
+
* Container height. If `enableVirtualScroll` is true, it is recommended to explicitly set the container height in CSS or pass this value.
|
|
286
|
+
*/
|
|
287
|
+
"containerHeight"?: string;
|
|
288
|
+
/**
|
|
289
|
+
* Enables or disables virtual scrolling for performance optimization with large lists.
|
|
290
|
+
*/
|
|
291
|
+
"enableVirtualScroll"?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Estimated height of each item. Used in virtual scrolling to calculate the total scrollbar length. Even if actual heights vary, an average value is sufficient; CSS handles layout fluidly without overlap.
|
|
294
|
+
*/
|
|
295
|
+
"estimatedItemHeight"?: number;
|
|
296
|
+
/**
|
|
297
|
+
* Grid spacing (px)
|
|
298
|
+
*/
|
|
299
|
+
"gridGap"?: number;
|
|
300
|
+
/**
|
|
301
|
+
* Indicates if there are more items to load. When false, no more `loadMore` events will be emitted.
|
|
302
|
+
*/
|
|
303
|
+
"hasMore"?: boolean;
|
|
304
|
+
/**
|
|
305
|
+
* Indicates if new items are currently being loaded. Used to prevent multiple `loadMore` calls.
|
|
306
|
+
*/
|
|
307
|
+
"isLoading"?: boolean;
|
|
308
|
+
/**
|
|
309
|
+
* Indicates if the component is currently in a refreshing state (e.g., during pull-to-refresh).
|
|
310
|
+
*/
|
|
311
|
+
"isRefreshing"?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* An array of items to be displayed in the infinite scroll list.
|
|
314
|
+
*/
|
|
315
|
+
"items"?: any[];
|
|
316
|
+
/**
|
|
317
|
+
* Grid layout configuration: minimum column width Used with CSS Grid to achieve responsiveness: repeat(auto-fill, minmax(minItemWidth, 1fr))
|
|
318
|
+
*/
|
|
319
|
+
"minItemWidth"?: number;
|
|
320
|
+
/**
|
|
321
|
+
* Emitted when the user scrolls near the end of the list, indicating that more items should be loaded.
|
|
322
|
+
*/
|
|
323
|
+
"onLoadMore"?: (event: LotteryInfiniteScrollCustomEvent<void>) => void;
|
|
324
|
+
/**
|
|
325
|
+
* Emitted when the pull-to-refresh action is triggered by the user.
|
|
326
|
+
*/
|
|
327
|
+
"onRefresh"?: (event: LotteryInfiniteScrollCustomEvent<void>) => void;
|
|
328
|
+
/**
|
|
329
|
+
* Pull-to-refresh trigger distance
|
|
330
|
+
*/
|
|
331
|
+
"pullTriggerDistance"?: number;
|
|
332
|
+
/**
|
|
333
|
+
* Render function
|
|
334
|
+
*/
|
|
335
|
+
"renderItem"?: (item: any, index: number) => any;
|
|
336
|
+
/**
|
|
337
|
+
* Render function for skeleton item
|
|
338
|
+
*/
|
|
339
|
+
"renderSkeleton"?: (index: number) => any;
|
|
340
|
+
/**
|
|
341
|
+
* Number of skeleton items to show during initial load
|
|
342
|
+
*/
|
|
343
|
+
"skeletonCount"?: number;
|
|
344
|
+
/**
|
|
345
|
+
* Defines the intersection root margin for the IntersectionObserver. This allows for pre-loading content before the sentinel becomes visible. E.g., '0px 0px 200px 0px' means the bottom margin is 200px.
|
|
346
|
+
*/
|
|
347
|
+
"threshold"?: string;
|
|
348
|
+
}
|
|
349
|
+
interface IntrinsicElements {
|
|
350
|
+
"lottery-hakuna-ticket-history": LotteryHakunaTicketHistory;
|
|
351
|
+
"lottery-infinite-scroll": LotteryInfiniteScroll;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
export { LocalJSX as JSX };
|
|
355
|
+
declare module "@stencil/core" {
|
|
356
|
+
export namespace JSX {
|
|
357
|
+
interface IntrinsicElements {
|
|
358
|
+
"lottery-hakuna-ticket-history": LocalJSX.LotteryHakunaTicketHistory & JSXBase.HTMLAttributes<HTMLLotteryHakunaTicketHistoryElement>;
|
|
359
|
+
"lottery-infinite-scroll": LocalJSX.LotteryInfiniteScroll & JSXBase.HTMLAttributes<HTMLLotteryInfiniteScrollElement>;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/lottery-hakuna-ticket-history';
|