@everymatrix/lottery-tipping-latest-result 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.
Files changed (67) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-tooltip_6.cjs.entry.js +9968 -0
  3. package/dist/cjs/index-e5294eca.js +1376 -0
  4. package/dist/cjs/index.cjs.js +10 -0
  5. package/dist/cjs/loader.cjs.js +15 -0
  6. package/dist/cjs/lottery-tipping-latest-result-c9dbebc8.js +650 -0
  7. package/dist/cjs/lottery-tipping-latest-result.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +28 -0
  9. package/dist/collection/components/lottery-tipping-calendar/lottery-tipping-calendar.css +130 -0
  10. package/dist/collection/components/lottery-tipping-calendar/lottery-tipping-calendar.js +306 -0
  11. package/dist/collection/components/lottery-tipping-latest-result/index.js +1 -0
  12. package/dist/collection/components/lottery-tipping-latest-result/lottery-tipping-latest-result.css +133 -0
  13. package/dist/collection/components/lottery-tipping-latest-result/lottery-tipping-latest-result.js +432 -0
  14. package/dist/collection/index.js +1 -0
  15. package/dist/collection/models/index.js +1 -0
  16. package/dist/collection/utils/locale.utils.js +67 -0
  17. package/dist/collection/utils/utils.js +159 -0
  18. package/dist/esm/app-globals-0f993ce5.js +3 -0
  19. package/dist/esm/general-tooltip_6.entry.js +9960 -0
  20. package/dist/esm/index-0975f224.js +1347 -0
  21. package/dist/esm/index.js +2 -0
  22. package/dist/esm/loader.js +11 -0
  23. package/dist/esm/lottery-tipping-latest-result-2ee900c2.js +639 -0
  24. package/dist/esm/lottery-tipping-latest-result.js +20 -0
  25. package/dist/index.cjs.js +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/lottery-tipping-latest-result/app-globals-0f993ce5.js +1 -0
  28. package/dist/lottery-tipping-latest-result/general-tooltip_6.entry.js +6656 -0
  29. package/dist/lottery-tipping-latest-result/index-0975f224.js +2 -0
  30. package/dist/lottery-tipping-latest-result/index.esm.js +1 -0
  31. package/dist/lottery-tipping-latest-result/lottery-tipping-latest-result-2ee900c2.js +1 -0
  32. package/dist/lottery-tipping-latest-result/lottery-tipping-latest-result.esm.js +1 -0
  33. package/dist/static/add.svg +8 -0
  34. package/dist/static/delete.svg +37 -0
  35. package/dist/static/info.svg +6 -0
  36. package/dist/static/left-arrow.svg +15 -0
  37. package/dist/static/loading.svg +10 -0
  38. package/dist/static/right-arrow.svg +15 -0
  39. package/dist/stencil.config.dev.js +19 -0
  40. package/dist/stencil.config.js +19 -0
  41. package/dist/storybook/main.js +43 -0
  42. package/dist/storybook/preview.js +9 -0
  43. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/packages/stencil/lottery-tipping-latest-result/stencil.config.d.ts +2 -0
  45. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/packages/stencil/lottery-tipping-latest-result/stencil.config.dev.d.ts +2 -0
  46. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/packages/stencil/lottery-tipping-latest-result/storybook/main.d.ts +3 -0
  47. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/packages/stencil/lottery-tipping-latest-result/storybook/preview.d.ts +70 -0
  48. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/tools/plugins/index.d.ts +3 -0
  49. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  50. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  51. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-latest-result/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  52. package/dist/types/components/lottery-tipping-calendar/lottery-tipping-calendar.d.ts +62 -0
  53. package/dist/types/components/lottery-tipping-latest-result/index.d.ts +1 -0
  54. package/dist/types/components/lottery-tipping-latest-result/lottery-tipping-latest-result.d.ts +74 -0
  55. package/dist/types/components.d.ts +148 -0
  56. package/dist/types/index.d.ts +1 -0
  57. package/dist/types/models/index.d.ts +130 -0
  58. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  59. package/dist/types/utils/locale.utils.d.ts +2 -0
  60. package/dist/types/utils/utils.d.ts +10 -0
  61. package/loader/cdn.js +1 -0
  62. package/loader/index.cjs.js +1 -0
  63. package/loader/index.d.ts +24 -0
  64. package/loader/index.es2017.js +1 -0
  65. package/loader/index.js +2 -0
  66. package/loader/package.json +11 -0
  67. package/package.json +27 -0
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e5294eca.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ /*
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
+ */
11
+ var patchBrowser = () => {
12
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lottery-tipping-latest-result.cjs.js', document.baseURI).href));
13
+ const opts = {};
14
+ if (importMeta !== "") {
15
+ opts.resourcesUrl = new URL(".", importMeta).href;
16
+ }
17
+ return index.promiseResolve(opts);
18
+ };
19
+
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
22
+ return index.bootstrapLazy([["general-tooltip_6.cjs",[[1,"lottery-tipping-latest-result",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"hasDrawDates":[32],"lastestDate":[32],"drawList":[32],"curDrawItem":[32],"curDrawItemIdx":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32],"curPrizes":[32],"curPrizeMap":[32],"curTurnOver":[32],"isLoading":[32],"playTypes":[32],"bettingTypes":[32],"vendorGameId":[32]},[[0,"changeDate","handleChangeDate"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"totalPages":[1538,"total-pages"],"minTotalPages":[514,"min-total-pages"],"maxTotalPages":[514,"max-total-pages"],"mode":[513],"readPretty":[516,"read-pretty"],"defaultBulletConfigLineGroup":[513,"default-bullet-config-line-group"],"translationData":[32],"limitStylingAppends":[32],"clientStylingUrlContent":[32],"bulletConfigLineGroup":[32],"currentPage":[32],"isLoading":[32],"hasErrors":[32],"dialogConfig":[32],"ticketDataSource":[32],"resetBulletConfig":[64],"getData":[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{"translationUrl":["handleNewTranslations"],"gameId":["fetchMatchData"],"sessionId":["fetchMatchData"],"drawId":["fetchMatchData"],"currentPage":["handleCurrentPageChange"]}],[1,"lottery-tipping-calendar",{"date":[1],"highLightDates":[16],"language":[513],"translationUrl":[520,"translation-url"],"weeks":[32],"days":[32],"alterDate":[32],"curDate":[32],"recordInfo":[32],"showCalendar":[32]},null,{"date":["handleDateChange"]}],[1,"lottery-tipping-bullet-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[513,"position-idx"],"theme":[513],"mode":[513],"bulletConfigContent":[513,"bullet-config-content"]},[[0,"lotteryTippingBulletToggle","lotteryTippingBulletSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-tooltip",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"position":[1],"delay":[2],"isVisible":[32],"_tooltipId":[32]},[[1,"mouseenter","handleMouseEnterOrFocus"],[0,"focusin","handleMouseEnterOrFocus"],[1,"mouseleave","handleMouseLeaveOrBlur"],[0,"focusout","handleMouseLeaveOrBlur"],[0,"keydown","handleKeyDown"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-bullet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[514,"position-idx"],"theme":[513],"value":[513],"disabled":[516],"isSelected":[516,"is-selected"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
23
+ });
24
+
25
+ exports.setNonce = index.setNonce;
@@ -0,0 +1,28 @@
1
+ {
2
+ "entries": [
3
+ "components/lottery-tipping-latest-result/lottery-tipping-latest-result.js",
4
+ "components/lottery-tipping-calendar/lottery-tipping-calendar.js"
5
+ ],
6
+ "compiler": {
7
+ "name": "@stencil/core",
8
+ "version": "4.19.2",
9
+ "typescriptVersion": "5.4.5"
10
+ },
11
+ "collections": [
12
+ {
13
+ "name": "@everymatrix/lottery-tipping-bullet-group",
14
+ "tags": [
15
+ "lottery-tipping-bullet",
16
+ "lottery-tipping-bullet-group"
17
+ ]
18
+ },
19
+ {
20
+ "name": "@everymatrix/lottery-tipping-ticket-bet",
21
+ "tags": [
22
+ "general-tooltip",
23
+ "lottery-tipping-ticket-bet"
24
+ ]
25
+ }
26
+ ],
27
+ "bundles": []
28
+ }
@@ -0,0 +1,130 @@
1
+ .lottery-tipping-calendar {
2
+ position: relative;
3
+ display: inline-block;
4
+ }
5
+
6
+ .calendar-visible {
7
+ opacity: 1;
8
+ visibility: visible;
9
+ }
10
+
11
+ .calendar-leave {
12
+ opacity: 0;
13
+ visibility: hidden;
14
+ }
15
+
16
+ .calendar {
17
+ position: absolute;
18
+ top: 40px;
19
+ left: -50%;
20
+ background: var(--emw--color-background, #fff);
21
+ color: var(--emw--color-gray-150, #6f6f6f);
22
+ padding: 16px;
23
+ width: fit-content;
24
+ border: var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));
25
+ border-radius: var(--emw--border-radius-small, 4px);
26
+ box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.1);
27
+ cursor: pointer;
28
+ transition: opacity 0.2s ease, visibility 0.2s ease;
29
+ z-index: 99;
30
+ }
31
+ .calendar-header {
32
+ display: flex;
33
+ align-items: center;
34
+ }
35
+ .calendar-header .date-picker {
36
+ display: flex;
37
+ margin: 0 18px;
38
+ align-items: center;
39
+ }
40
+ .calendar-header .date-picker-delimiter {
41
+ font-size: 16px;
42
+ margin: auto 4px;
43
+ }
44
+ .calendar-header .month-plus,
45
+ .calendar-header .month-minus,
46
+ .calendar-header .year-plus,
47
+ .calendar-header .year-minus {
48
+ cursor: pointer;
49
+ font-size: 14px;
50
+ }
51
+ .calendar-header .month-plus:hover,
52
+ .calendar-header .month-minus:hover,
53
+ .calendar-header .year-plus:hover,
54
+ .calendar-header .year-minus:hover {
55
+ color: var(--emw-pool-game-acition-active, #005fdb);
56
+ transition: color 0.2s;
57
+ }
58
+ .calendar-header .year-minus,
59
+ .calendar-header .month-plus {
60
+ margin-right: 6px;
61
+ }
62
+ .calendar-content {
63
+ padding: 3px;
64
+ width: fix-content;
65
+ }
66
+ .calendar-content .day-item {
67
+ text-align: center;
68
+ line-height: 40px;
69
+ cursor: not-allowed;
70
+ position: relative;
71
+ pointer-events: none;
72
+ }
73
+ .calendar-content .day-item:hover {
74
+ background-color: var(--emw--color-gray-50, #f5f5f5);
75
+ }
76
+ .calendar-content .day-item.isCurDay {
77
+ border-radius: 4px;
78
+ background: var(--emw--color-secondary, #fff3b9);
79
+ background-size: 50%;
80
+ color: var(--emw--color-gray-300, #333);
81
+ font-weight: 600;
82
+ box-shadow: 2px 2px 2px var(--emw-calender-curday-box-shadow, rgba(0, 0, 0, 0.09));
83
+ cursor: pointer;
84
+ pointer-events: all;
85
+ }
86
+ .calendar-content .day-item.isHighLight {
87
+ cursor: pointer;
88
+ pointer-events: all;
89
+ }
90
+ .calendar-content .day-item.isHighLight::after {
91
+ content: "";
92
+ position: absolute;
93
+ left: calc(50% - 4px);
94
+ bottom: 0;
95
+ width: 6px;
96
+ height: 6px;
97
+ border-radius: 50%;
98
+ background-color: var(--emw--color-error, red);
99
+ }
100
+ .calendar-content-week {
101
+ display: grid;
102
+ grid-template-columns: repeat(7, 40px);
103
+ grid-template-rows: repeat(1, 36px);
104
+ justify-items: center;
105
+ align-items: center;
106
+ border-bottom: var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));
107
+ color: var(--emw--color-gray-150, #6f6f6f);
108
+ }
109
+ .calendar-content-day {
110
+ margin-top: 4px;
111
+ display: grid;
112
+ grid-template-rows: repeat(6, 40px);
113
+ grid-template-columns: repeat(7, 40px);
114
+ }
115
+
116
+ .calling-input {
117
+ height: 36px;
118
+ width: 160px;
119
+ display: flex;
120
+ align-items: center;
121
+ justify-content: space-between;
122
+ padding: 0px 4px;
123
+ background-color: var(--emw--color-gray-50, #f5f5f5);
124
+ border-radius: var(--emw--border-radius-small, 4px);
125
+ border: var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));
126
+ cursor: pointer;
127
+ }
128
+ .calling-input .input {
129
+ color: var(--emw--color-gray-300, #333);
130
+ }
@@ -0,0 +1,306 @@
1
+ import { h } from "@stencil/core";
2
+ import "../../../../../../../libs/vaadin-facade/index";
3
+ import { CalendarOutlined } from "@ant-design/icons-svg";
4
+ import { renderIconDefinitionToSVGElement } from "@ant-design/icons-svg/es/helpers";
5
+ import { translate, getTranslations } from "../../utils/locale.utils";
6
+ const calendarIcon = renderIconDefinitionToSVGElement(CalendarOutlined, {
7
+ extraSVGAttrs: { width: '18px', height: '18px', fill: '#fed275' }
8
+ });
9
+ export class LotteryTippingCalendar {
10
+ constructor() {
11
+ this.handleOutsideClick = (event) => {
12
+ if (!this.showCalendar)
13
+ return;
14
+ const path = event.composedPath ? event.composedPath() : [];
15
+ // check if clicked on calendar
16
+ const isCalendarClick = path.includes(this.calendarRef);
17
+ // check if click select option
18
+ const isSelectOption = path.some((el) => {
19
+ var _a, _b;
20
+ return el instanceof HTMLElement &&
21
+ (((_a = el.getAttribute('part')) === null || _a === void 0 ? void 0 : _a.includes('item')) || ((_b = el.getAttribute('part')) === null || _b === void 0 ? void 0 : _b.includes('overlay')));
22
+ });
23
+ if (!isCalendarClick && !isSelectOption) {
24
+ this.showCalendar = false;
25
+ }
26
+ };
27
+ this.onYearMinus = () => {
28
+ const years = this.yearOptions.map((item) => Number(item.value));
29
+ if (this.alterDate.year - 1 < Math.min(...years))
30
+ return;
31
+ this.alterDate.year--;
32
+ this.loadRecords();
33
+ };
34
+ this.onYearPlus = () => {
35
+ const years = this.yearOptions.map((item) => Number(item.value));
36
+ if (this.alterDate.year + 1 > Math.max(...years))
37
+ return;
38
+ this.alterDate.year++;
39
+ this.loadRecords();
40
+ };
41
+ this.onMonthMinus = () => {
42
+ if (this.alterDate.month === 0) {
43
+ this.onYearMinus();
44
+ this.alterDate.month = 11;
45
+ }
46
+ else {
47
+ this.alterDate.month--;
48
+ this.loadRecords();
49
+ }
50
+ };
51
+ this.onMonthPlus = () => {
52
+ if (this.alterDate.month === 11) {
53
+ this.onYearPlus();
54
+ this.alterDate.month = 0;
55
+ }
56
+ else {
57
+ this.alterDate.month++;
58
+ this.loadRecords();
59
+ }
60
+ };
61
+ this.onYearChange = (e) => {
62
+ this.alterDate.year = parseInt(e.detail.value);
63
+ this.loadRecords();
64
+ };
65
+ this.onMonthChange = (e) => {
66
+ this.alterDate.month = parseInt(e.detail.value) - 1;
67
+ this.loadRecords();
68
+ };
69
+ this.date = '2025-05-19T02:00:00Z';
70
+ this.highLightDates = undefined;
71
+ this.language = 'en';
72
+ this.translationUrl = undefined;
73
+ this.weeks = undefined;
74
+ this.days = [];
75
+ this.alterDate = { year: 0, month: 0, day: 0 };
76
+ this.curDate = { year: 0, month: 0, day: 0 };
77
+ this.recordInfo = [];
78
+ this.showCalendar = false;
79
+ }
80
+ componentWillLoad() {
81
+ if (this.translationUrl) {
82
+ getTranslations(JSON.parse(this.translationUrl));
83
+ }
84
+ this.weeks = translate('weeks', this.language);
85
+ const d = this.date ? new Date(this.date) : new Date();
86
+ this.alterDate = { year: d.getFullYear(), month: d.getMonth(), day: d.getDate() };
87
+ this.curDate = Object.assign({}, this.alterDate);
88
+ this.loadRecords();
89
+ }
90
+ handleDateChange() {
91
+ const d = this.date ? new Date(this.date) : new Date();
92
+ this.alterDate = { year: d.getFullYear(), month: d.getMonth(), day: d.getDate() };
93
+ this.curDate = Object.assign({}, this.alterDate);
94
+ this.loadRecords();
95
+ }
96
+ componentDidLoad() {
97
+ document.addEventListener('click', this.handleOutsideClick);
98
+ }
99
+ disconnectedCallback() {
100
+ document.removeEventListener('click', this.handleOutsideClick);
101
+ }
102
+ get yearOptions() {
103
+ const years = Array.from({ length: 101 }, (_, i) => this.alterDate.year - 50 + i);
104
+ return years.map((item) => {
105
+ return {
106
+ label: String(item),
107
+ value: String(item)
108
+ };
109
+ });
110
+ }
111
+ get monthOptions() {
112
+ const months = Array.from({ length: 12 }, (_, i) => i + 1);
113
+ return months.map((item) => {
114
+ return {
115
+ label: String(item),
116
+ value: String(item)
117
+ };
118
+ });
119
+ }
120
+ loadRecords() {
121
+ const { year, month } = this.alterDate;
122
+ this.setDays(year, month);
123
+ }
124
+ setDays(year, month) {
125
+ this.days = [];
126
+ const firstDayOfMonth = new Date(year, month, 1);
127
+ const firstDayWeek = firstDayOfMonth.getDay();
128
+ const startDate = new Date(year, month, 1 - firstDayWeek);
129
+ for (let i = 0; i < 42; i++) {
130
+ const temp = new Date(startDate);
131
+ temp.setDate(startDate.getDate() + i);
132
+ const day = {
133
+ date: temp.getDate(),
134
+ month: temp.getMonth(),
135
+ year: temp.getFullYear()
136
+ };
137
+ this.days.push(day);
138
+ }
139
+ }
140
+ getFullDayOfMonth(year, month) {
141
+ return new Date(year, month, 0).getDate();
142
+ }
143
+ showFormatedDate(date) {
144
+ return `${date.day}/${date.month + 1}/${date.year}`;
145
+ }
146
+ handleSelectDate(curDay, curMonth, curYear) {
147
+ this.alterDate.day = curDay;
148
+ this.curDate = Object.assign({}, this.alterDate);
149
+ this.showCalendar = false;
150
+ const formattedHighLightArr = this.highLightDates.map((date) => {
151
+ const d = new Date(date);
152
+ return { year: d.getFullYear(), month: d.getMonth(), day: d.getDate() };
153
+ });
154
+ const idx = formattedHighLightArr.findIndex((obj) => {
155
+ const { year, month, day } = obj;
156
+ return curMonth === month && curYear === year && curDay === day;
157
+ });
158
+ console.log('idx', idx);
159
+ if (idx > -1) {
160
+ this.changeDate.emit(idx);
161
+ }
162
+ }
163
+ tellIsCurDay(curDay, curMonth, curYear) {
164
+ return this.curDate.day === curDay && this.curDate.month === curMonth && this.curDate.year === curYear;
165
+ }
166
+ tellIsHighLight(curDay, curMonth, curYear) {
167
+ if (!this.highLightDates || !this.highLightDates.length)
168
+ return false;
169
+ const formattedHighLightArr = this.highLightDates.map((date) => {
170
+ const d = new Date(date);
171
+ return { year: d.getFullYear(), month: d.getMonth(), day: d.getDate() };
172
+ });
173
+ return formattedHighLightArr.some((obj) => {
174
+ const { year, month, day } = obj;
175
+ return curMonth === month && curYear === year && curDay === day;
176
+ });
177
+ }
178
+ render() {
179
+ const calendarClass = ['calendar', this.showCalendar ? 'calendar-visible' : 'calendar-leave'];
180
+ return (h("div", { key: 'fc24c5dd2b9d2cfd536387e952428d27f826466c', class: "lottery-tipping-calendar", ref: (el) => (this.calendarRef = el) }, h("div", { key: '6264b50c7d8de0f71c832c7bb27eb8a6303e2b85', class: "calling-input", onClick: () => {
181
+ this.showCalendar = true;
182
+ } }, h("div", { key: '90e8ce4e33a6d8a70eb93e665c67d24bd0a87453', class: "calling-input-text" }, this.showFormatedDate(this.curDate)), h("div", { key: '9e71b455e3948437a0986e5e90bd0b0fb7d236bc', class: "calling-input-icon", innerHTML: calendarIcon })), h("div", { key: '79386c81656a1cd2a498b051cc809ebde2729a30', class: calendarClass.join(' ') }, h("div", { key: '3697dd004c6b1466df355e2eaee151910015b35d', class: "calendar-header" }, h("div", { key: '80dee2e0d580773a0253d727e65a0e073efc7c97', class: "date-controller year-minus", onClick: this.onYearMinus }, "<"), h("div", { key: '8bc265b9202d50406d019c55afada0759c0f5398', class: "date-controller month-minus", onClick: this.onMonthMinus }, "<"), h("div", { key: '35d0c1727d6cb5264aa6bcf2184201e24877861b', class: "date-picker" }, h("div", { key: 'e938cf588c8b36d87b1c8ec47e2cbb4c126f050b', class: "date-picker-year" }, h("vaadin-select", { key: 'd20ef0f3b94f20dcfdaf2333eeef5f7468af7bdd', items: this.yearOptions, value: this.alterDate.year, style: { '--vaadin-field-default-width': '90px' }, "on-value-changed": this.onYearChange.bind(this) })), h("div", { key: '1deca1b5ba794c62ae974e2a0c5de9bc2c37c3d8', class: "date-picker-delimiter" }, "-"), h("div", { key: 'abb81ed8f6f2cd324528d84342e16ba2f5e84e8a', class: "date-picker-month" }, h("vaadin-select", { key: '5d03129f4c7b2f8f5194cb64cebffc4e971f6057', items: this.monthOptions, value: this.alterDate.month + 1, style: { '--vaadin-field-default-width': '64px' }, "on-value-changed": this.onMonthChange.bind(this) })), h("div", { key: 'c167056f3977a343499076fd6dfdbeb825764f79', class: "date-picker-delimiter" }, "-"), h("div", { key: 'c4615ea58b78988d48050de6df4234ffd513a19f', class: "date-picker-day" }, this.alterDate.day)), h("div", { key: '9dd8b235e7b2e3bfce6107c2c6d27a05d6fc325d', class: "date-controller month-plus", onClick: this.onMonthPlus }, ">"), h("div", { key: '5a5a382afca4f2d14f9a930284c39ca319f0c06c', class: "date-controller year-plus", onClick: this.onYearPlus }, ">")), h("div", { key: 'd662c595069a67782242f919cbf5c1f0d85a15b0', class: "calendar-content" }, h("div", { key: '0a90711988abd14c3d59891b38d079186a12009d', class: "calendar-content-week" }, this.weeks.map((week) => (h("div", { class: "week-item" }, week)))), h("div", { key: 'e5444c3b433b1b4920a3581c88157ae2559e448c', class: "calendar-content-day" }, this.days.map((item) => (h("div", { class: {
183
+ 'day-item': true,
184
+ isCurDay: this.tellIsCurDay(item.date, item.month, item.year),
185
+ isHighLight: this.tellIsHighLight(item.date, item.month, item.year)
186
+ }, onClick: () => this.handleSelectDate(item.date, item.month, item.year) }, item.date))))))));
187
+ }
188
+ static get is() { return "lottery-tipping-calendar"; }
189
+ static get encapsulation() { return "shadow"; }
190
+ static get originalStyleUrls() {
191
+ return {
192
+ "$": ["lottery-tipping-calendar.scss"]
193
+ };
194
+ }
195
+ static get styleUrls() {
196
+ return {
197
+ "$": ["lottery-tipping-calendar.css"]
198
+ };
199
+ }
200
+ static get properties() {
201
+ return {
202
+ "date": {
203
+ "type": "string",
204
+ "mutable": false,
205
+ "complexType": {
206
+ "original": "string",
207
+ "resolved": "string",
208
+ "references": {}
209
+ },
210
+ "required": false,
211
+ "optional": false,
212
+ "docs": {
213
+ "tags": [],
214
+ "text": ""
215
+ },
216
+ "attribute": "date",
217
+ "reflect": false,
218
+ "defaultValue": "'2025-05-19T02:00:00Z'"
219
+ },
220
+ "highLightDates": {
221
+ "type": "unknown",
222
+ "mutable": false,
223
+ "complexType": {
224
+ "original": "string[]",
225
+ "resolved": "string[]",
226
+ "references": {}
227
+ },
228
+ "required": false,
229
+ "optional": false,
230
+ "docs": {
231
+ "tags": [],
232
+ "text": ""
233
+ }
234
+ },
235
+ "language": {
236
+ "type": "string",
237
+ "mutable": false,
238
+ "complexType": {
239
+ "original": "string",
240
+ "resolved": "string",
241
+ "references": {}
242
+ },
243
+ "required": false,
244
+ "optional": false,
245
+ "docs": {
246
+ "tags": [],
247
+ "text": ""
248
+ },
249
+ "attribute": "language",
250
+ "reflect": true,
251
+ "defaultValue": "'en'"
252
+ },
253
+ "translationUrl": {
254
+ "type": "any",
255
+ "mutable": false,
256
+ "complexType": {
257
+ "original": "any",
258
+ "resolved": "any",
259
+ "references": {}
260
+ },
261
+ "required": false,
262
+ "optional": true,
263
+ "docs": {
264
+ "tags": [],
265
+ "text": ""
266
+ },
267
+ "attribute": "translation-url",
268
+ "reflect": true
269
+ }
270
+ };
271
+ }
272
+ static get states() {
273
+ return {
274
+ "weeks": {},
275
+ "days": {},
276
+ "alterDate": {},
277
+ "curDate": {},
278
+ "recordInfo": {},
279
+ "showCalendar": {}
280
+ };
281
+ }
282
+ static get events() {
283
+ return [{
284
+ "method": "changeDate",
285
+ "name": "changeDate",
286
+ "bubbles": true,
287
+ "cancelable": true,
288
+ "composed": true,
289
+ "docs": {
290
+ "tags": [],
291
+ "text": ""
292
+ },
293
+ "complexType": {
294
+ "original": "number",
295
+ "resolved": "number",
296
+ "references": {}
297
+ }
298
+ }];
299
+ }
300
+ static get watchers() {
301
+ return [{
302
+ "propName": "date",
303
+ "methodName": "handleDateChange"
304
+ }];
305
+ }
306
+ }
@@ -0,0 +1 @@
1
+ export { LotteryTippingLatestResult } from './lottery-tipping-latest-result';
@@ -0,0 +1,133 @@
1
+ .lottery-tipping-latest-result {
2
+ padding: 16px;
3
+ container-type: inline-size;
4
+ }
5
+ .lottery-tipping-latest-result .date-selection {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ gap: 24px;
10
+ width: 400px;
11
+ }
12
+ .lottery-tipping-latest-result .date-selection-leftIcon, .lottery-tipping-latest-result .date-selection-rightIcon {
13
+ cursor: pointer;
14
+ }
15
+
16
+ .LotteryTippingTicketController__segmented-control {
17
+ height: 2.2rem;
18
+ display: inline-flex;
19
+ background-color: var(--emw--color-gray-100, #e6e6e6);
20
+ border-radius: 2rem;
21
+ padding: 0.2rem;
22
+ }
23
+ .LotteryTippingTicketController__segment {
24
+ background-color: transparent;
25
+ border: none;
26
+ padding: 0.3rem 0.8rem;
27
+ cursor: pointer;
28
+ font-weight: 500;
29
+ border-radius: 2rem;
30
+ outline: none;
31
+ transition: background-color 0.25s ease, color 0.25s ease;
32
+ white-space: nowrap;
33
+ }
34
+ .LotteryTippingTicketController__segment--active {
35
+ background-color: var(--emw--color-background, #fff);
36
+ color: #000000;
37
+ font-weight: 600;
38
+ }
39
+ .LotteryTippingTicketController__segment:not(.LotteryTippingTicketController__segment--active):hover {
40
+ background-color: var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));
41
+ }
42
+
43
+ .betting-type {
44
+ margin-bottom: 16px;
45
+ display: flex;
46
+ align-items: center;
47
+ gap: 20px;
48
+ }
49
+ .betting-type-title {
50
+ font-weight: 600;
51
+ font-size: 16px;
52
+ }
53
+ .betting-type-text {
54
+ font-size: 16px;
55
+ }
56
+
57
+ .result-wrapper {
58
+ display: flex;
59
+ flex-direction: column;
60
+ align-items: center;
61
+ width: 60%;
62
+ margin: 0 auto;
63
+ }
64
+ .result-wrapper .winning-result {
65
+ width: 100%;
66
+ margin-top: 20px;
67
+ }
68
+ .result-wrapper .prize-result {
69
+ width: 100%;
70
+ margin-top: 20px;
71
+ }
72
+ .result-wrapper .prize-result-title {
73
+ font-size: 16px;
74
+ font-weight: 600;
75
+ margin-bottom: 12px;
76
+ }
77
+ .result-wrapper .prize-result-table {
78
+ width: 100%;
79
+ }
80
+ .result-wrapper .prize-result-table-row {
81
+ width: 100%;
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: space-evenly;
85
+ }
86
+ .result-wrapper .prize-result-table-column {
87
+ text-align: left;
88
+ padding: 12px 14px;
89
+ width: 160px;
90
+ color: rgb(85, 85, 85);
91
+ font-size: 14px;
92
+ width: calc((100% - 2px) / 3);
93
+ }
94
+ .result-wrapper .prize-result-table-header {
95
+ width: 100%;
96
+ background-color: var(--emw--color-gray-100, #e6e6e6);
97
+ border-radius: 4px;
98
+ }
99
+ .result-wrapper .prize-result-table .prize-result-table-header .prize-result-table-column {
100
+ color: var(--emw--color-gray-300, #333);
101
+ font-weight: 600;
102
+ border-right: 1px solid var(--emw--color-background, #fff);
103
+ }
104
+ .result-wrapper .prize-result-table .prize-result-table-body .prize-result-table-row:hover {
105
+ background-color: var(--emw--color-gray-50, #f5f5f5);
106
+ }
107
+
108
+ @container (max-width: 980px) and (min-width: 780px) {
109
+ .result-wrapper {
110
+ width: 84%;
111
+ }
112
+ }
113
+ @container (max-width: 780px) and (min-width: 480px) {
114
+ .result-wrapper {
115
+ width: 100%;
116
+ }
117
+ }
118
+ @container (max-width: 480px) {
119
+ .result-wrapper {
120
+ width: 100%;
121
+ }
122
+ .result-wrapper .winning-result {
123
+ width: 100%;
124
+ margin-top: 14px;
125
+ }
126
+ .result-wrapper .prize-result {
127
+ width: 100%;
128
+ }
129
+ .result-wrapper .prize-result-table-column {
130
+ padding: 6px;
131
+ width: 100px;
132
+ }
133
+ }