@everymatrix/lottery-tipping-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.
Files changed (81) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-multi-select_10.cjs.entry.js +9635 -0
  3. package/dist/cjs/index-4ef2d32a.js +1380 -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-ticket-history-e9d19600.js +2915 -0
  7. package/dist/cjs/lottery-tipping-ticket-history.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +42 -0
  9. package/dist/collection/components/lottery-tipping-filter/index.js +1 -0
  10. package/dist/collection/components/lottery-tipping-filter/lottery-tipping-filter.css +42 -0
  11. package/dist/collection/components/lottery-tipping-filter/lottery-tipping-filter.js +333 -0
  12. package/dist/collection/components/lottery-tipping-pagination/index.js +1 -0
  13. package/dist/collection/components/lottery-tipping-pagination/lottery-tipping-pagination.css +70 -0
  14. package/dist/collection/components/lottery-tipping-pagination/lottery-tipping-pagination.js +336 -0
  15. package/dist/collection/components/lottery-tipping-panel/index.js +1 -0
  16. package/dist/collection/components/lottery-tipping-panel/lottery-tipping-panel.css +58 -0
  17. package/dist/collection/components/lottery-tipping-panel/lottery-tipping-panel.js +152 -0
  18. package/dist/collection/components/lottery-tipping-ticket-history/index.js +1 -0
  19. package/dist/collection/components/lottery-tipping-ticket-history/lottery-tipping-ticket-history.css +232 -0
  20. package/dist/collection/components/lottery-tipping-ticket-history/lottery-tipping-ticket-history.js +625 -0
  21. package/dist/collection/index.js +1 -0
  22. package/dist/collection/models/index.js +5 -0
  23. package/dist/collection/utils/locale.utils.js +127 -0
  24. package/dist/collection/utils/utils.js +177 -0
  25. package/dist/esm/app-globals-0f993ce5.js +3 -0
  26. package/dist/esm/general-multi-select_10.entry.js +9623 -0
  27. package/dist/esm/index-e620a22a.js +1351 -0
  28. package/dist/esm/index.js +2 -0
  29. package/dist/esm/loader.js +11 -0
  30. package/dist/esm/lottery-tipping-ticket-history-0d11da88.js +2904 -0
  31. package/dist/esm/lottery-tipping-ticket-history.js +20 -0
  32. package/dist/index.cjs.js +1 -0
  33. package/dist/index.js +1 -0
  34. package/dist/lottery-tipping-ticket-history/app-globals-0f993ce5.js +1 -0
  35. package/dist/lottery-tipping-ticket-history/general-multi-select_10.entry.js +7975 -0
  36. package/dist/lottery-tipping-ticket-history/index-e620a22a.js +2 -0
  37. package/dist/lottery-tipping-ticket-history/index.esm.js +1 -0
  38. package/dist/lottery-tipping-ticket-history/lottery-tipping-ticket-history-0d11da88.js +1 -0
  39. package/dist/lottery-tipping-ticket-history/lottery-tipping-ticket-history.esm.js +1 -0
  40. package/dist/static/add.svg +8 -0
  41. package/dist/static/delete.svg +37 -0
  42. package/dist/static/dropdown.svg +2 -0
  43. package/dist/static/dropup.svg +1 -0
  44. package/dist/static/info.svg +6 -0
  45. package/dist/static/left-arrow.svg +15 -0
  46. package/dist/static/loading.svg +10 -0
  47. package/dist/static/right-arrow.svg +15 -0
  48. package/dist/stencil.config.dev.js +19 -0
  49. package/dist/stencil.config.js +19 -0
  50. package/dist/storybook/main.js +43 -0
  51. package/dist/storybook/preview.js +9 -0
  52. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-history/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  53. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-history/.stencil/packages/stencil/lottery-tipping-ticket-history/stencil.config.d.ts +2 -0
  54. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-history/.stencil/packages/stencil/lottery-tipping-ticket-history/stencil.config.dev.d.ts +2 -0
  55. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-history/.stencil/packages/stencil/lottery-tipping-ticket-history/storybook/main.d.ts +3 -0
  56. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-history/.stencil/packages/stencil/lottery-tipping-ticket-history/storybook/preview.d.ts +70 -0
  57. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-history/.stencil/tools/plugins/index.d.ts +3 -0
  58. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-history/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  59. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-history/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  60. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-history/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  61. package/dist/types/components/lottery-tipping-filter/index.d.ts +1 -0
  62. package/dist/types/components/lottery-tipping-filter/lottery-tipping-filter.d.ts +43 -0
  63. package/dist/types/components/lottery-tipping-pagination/index.d.ts +1 -0
  64. package/dist/types/components/lottery-tipping-pagination/lottery-tipping-pagination.d.ts +29 -0
  65. package/dist/types/components/lottery-tipping-panel/index.d.ts +1 -0
  66. package/dist/types/components/lottery-tipping-panel/lottery-tipping-panel.d.ts +17 -0
  67. package/dist/types/components/lottery-tipping-ticket-history/index.d.ts +1 -0
  68. package/dist/types/components/lottery-tipping-ticket-history/lottery-tipping-ticket-history.d.ts +95 -0
  69. package/dist/types/components.d.ts +224 -0
  70. package/dist/types/index.d.ts +1 -0
  71. package/dist/types/models/index.d.ts +137 -0
  72. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  73. package/dist/types/utils/locale.utils.d.ts +2 -0
  74. package/dist/types/utils/utils.d.ts +10 -0
  75. package/loader/cdn.js +1 -0
  76. package/loader/index.cjs.js +1 -0
  77. package/loader/index.d.ts +24 -0
  78. package/loader/index.es2017.js +1 -0
  79. package/loader/index.js +2 -0
  80. package/loader/package.json +11 -0
  81. 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-4ef2d32a.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-ticket-history.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-multi-select_10.cjs",[[1,"lottery-tipping-ticket-history",{"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"drawId":[513,"draw-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"ticketHistory":[32],"activeStatus":[32],"statusOptions":[32],"isLoading":[32],"rawData":[32],"filterData":[32],"paginationInfo":[32],"quickFiltersActive":[32],"showCurrentTicketLine":[32],"curTicketItem":[32],"curSelection":[32],"curSelectionIdx":[32],"showCurrentDrawResult":[32],"curDrawItem":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32]},[[0,"pageSizeChange","handlePageSizeChange"],[0,"pageChange","handlePageChange"],[0,"filterChange","handleFilterChange"],[0,"filterClear","handleFilterClear"],[0,"poolGameCurrentPageChange","handlePoolGameCurrentPageChange"]],{"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-filter",{"quickFiltersActive":[516,"quick-filters-active"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[520,"translation-url"],"isOpen":[32],"filterData":[32],"ticketTypeList":[32],"showClearButton":[32]},[[0,"modalCloseEvent","handleModalClose"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-pagination",{"total":[2],"pageSizeOptions":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[520,"translation-url"],"current":[2],"pageSize":[32],"totalPages":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"total":["updateTotalPages"],"pageSize":["updateTotalPages"]}],[1,"lottery-tipping-panel",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"headerTitle":[1,"header-title"],"expanded":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[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-multi-select",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"options":[16],"maxVisibleChips":[2,"max-visible-chips"],"placeholder":[1],"selectedValues":[32],"dropdownOpen":[32],"overflowOpen":[32],"popoverStyle":[32],"clear":[64]},null,{"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-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"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,42 @@
1
+ {
2
+ "entries": [
3
+ "components/lottery-tipping-ticket-history/lottery-tipping-ticket-history.js",
4
+ "components/lottery-tipping-filter/lottery-tipping-filter.js",
5
+ "components/lottery-tipping-pagination/lottery-tipping-pagination.js",
6
+ "components/lottery-tipping-panel/lottery-tipping-panel.js"
7
+ ],
8
+ "compiler": {
9
+ "name": "@stencil/core",
10
+ "version": "4.19.2",
11
+ "typescriptVersion": "5.4.5"
12
+ },
13
+ "collections": [
14
+ {
15
+ "name": "@everymatrix/general-multi-select",
16
+ "tags": [
17
+ "general-multi-select"
18
+ ]
19
+ },
20
+ {
21
+ "name": "@everymatrix/lottery-tipping-bullet-group",
22
+ "tags": [
23
+ "lottery-tipping-bullet",
24
+ "lottery-tipping-bullet-group"
25
+ ]
26
+ },
27
+ {
28
+ "name": "@everymatrix/lottery-tipping-dialog",
29
+ "tags": [
30
+ "lottery-tipping-dialog"
31
+ ]
32
+ },
33
+ {
34
+ "name": "@everymatrix/lottery-tipping-ticket-bet",
35
+ "tags": [
36
+ "general-tooltip",
37
+ "lottery-tipping-ticket-bet"
38
+ ]
39
+ }
40
+ ],
41
+ "bundles": []
42
+ }
@@ -0,0 +1 @@
1
+ export { LotteryTippingFilter } from './lottery-tipping-filter';
@@ -0,0 +1,42 @@
1
+ .lottery-tipping-filter .operate-btns {
2
+ display: flex;
3
+ gap: 10px;
4
+ }
5
+ .lottery-tipping-filter .operate-btns .operate-btn {
6
+ background: var(--emw--color-primary, #fed275);
7
+ border: 1px solid var(--emw--color-primary, #fed275);
8
+ border-radius: 16px;
9
+ padding: 8px 10px;
10
+ font-size: 14px;
11
+ color: rgb(51, 51, 51);
12
+ font-weight: 600;
13
+ cursor: pointer;
14
+ transition: 0.2s linear;
15
+ }
16
+
17
+ .dialog-content {
18
+ display: flex;
19
+ flex-direction: column;
20
+ align-items: center;
21
+ }
22
+ .dialog-content .filter-item {
23
+ margin-bottom: 12px;
24
+ }
25
+ .dialog-content .filter-item-label {
26
+ text-align: center;
27
+ }
28
+ .dialog-content .filter-item-val {
29
+ display: flex;
30
+ flex-wrap: wrap;
31
+ gap: 12px;
32
+ justify-content: center;
33
+ }
34
+
35
+ @media screen and (max-width: 480px) {
36
+ .lottery-tipping-filter .operate-btns {
37
+ gap: 4px;
38
+ }
39
+ }
40
+ .general-multi-select-container {
41
+ width: var(--vaadin-field-default-width, 16em);
42
+ }
@@ -0,0 +1,333 @@
1
+ import { h } from "@stencil/core";
2
+ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
3
+ import { format } from "date-fns";
4
+ import "../../../../../../../libs/vaadin-facade/index";
5
+ import "../../../../../lottery-tipping-dialog/dist/types/index";
6
+ import "../../../../../general-multi-select/dist/types/index";
7
+ import { translate, getTranslations } from "../../utils/locale.utils";
8
+ export class LotteryTippingFilter {
9
+ constructor() {
10
+ this.handleTicketType = (event) => {
11
+ if (event.detail && event.detail.length) {
12
+ this.filterData.ticketType = event.detail;
13
+ }
14
+ };
15
+ this.handleFilterFrom = (event) => {
16
+ const inputElement = event.target;
17
+ let dateArray = inputElement.value.split('-');
18
+ if (dateArray.length === 3) {
19
+ this.filterData = Object.assign(Object.assign({}, this.filterData), { filterFromCalendar: `${dateArray[2]}/${dateArray[1]}/${dateArray[0]}` });
20
+ }
21
+ };
22
+ this.handleFilterTo = (event) => {
23
+ const inputElement = event.target;
24
+ let dateArray = inputElement.value.split('-');
25
+ if (dateArray.length === 3) {
26
+ this.filterData = Object.assign(Object.assign({}, this.filterData), { filterToCalendar: `${dateArray[2]}/${dateArray[1]}/${dateArray[0]}` });
27
+ }
28
+ };
29
+ this.quickFiltersActive = false;
30
+ this.mbSource = undefined;
31
+ this.clientStyling = undefined;
32
+ this.clientStylingUrl = undefined;
33
+ this.language = 'en';
34
+ this.translationUrl = undefined;
35
+ this.isOpen = false;
36
+ this.filterData = {
37
+ filterFromCalendar: '',
38
+ filterToCalendar: '',
39
+ ticketId: '',
40
+ ticketType: []
41
+ };
42
+ this.ticketTypeList = undefined;
43
+ this.showClearButton = false;
44
+ }
45
+ handleClientStylingChange(newValue, oldValue) {
46
+ if (newValue != oldValue) {
47
+ setClientStyling(this.stylingContainer, this.clientStyling);
48
+ }
49
+ }
50
+ handleClientStylingUrlChange(newValue, oldValue) {
51
+ if (newValue != oldValue) {
52
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
53
+ }
54
+ }
55
+ handleMbSourceChange(newValue, oldValue) {
56
+ if (newValue != oldValue) {
57
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
58
+ }
59
+ }
60
+ componentWillLoad() {
61
+ if (this.translationUrl) {
62
+ getTranslations(JSON.parse(this.translationUrl));
63
+ }
64
+ this.ticketTypeList = [
65
+ { label: translate('normal', this.language), value: 'NORMAL' },
66
+ { label: translate('subscription', this.language), value: 'SUBSCRIPTION' }
67
+ ];
68
+ }
69
+ componentDidLoad() {
70
+ if (this.stylingContainer) {
71
+ if (this.mbSource)
72
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
73
+ if (this.clientStyling)
74
+ setClientStyling(this.stylingContainer, this.clientStyling);
75
+ if (this.clientStylingUrl)
76
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
77
+ }
78
+ }
79
+ disconnectedCallback() {
80
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
81
+ }
82
+ handleModalClose() {
83
+ this.isOpen = false;
84
+ }
85
+ changeFormate(str) {
86
+ const [day, month, year] = str.split('/');
87
+ return `${year}-${month}-${day}`;
88
+ }
89
+ formateDate(dateParts) {
90
+ const { year, month, day } = dateParts;
91
+ const date = new Date(year, month, day);
92
+ return format(date, 'dd/MM/yyyy');
93
+ }
94
+ parseDate(inputValue) {
95
+ const [day, month, year] = inputValue.split('/');
96
+ return { year, month: parseInt(month) - 1, day };
97
+ }
98
+ setDateFormate(dom) {
99
+ dom.i18n = Object.assign(Object.assign({}, dom.i18n), { formatDate: this.formateDate, parseDate: this.parseDate });
100
+ }
101
+ clearSelection() {
102
+ this.comboBox.clear();
103
+ }
104
+ resetSearch() {
105
+ this.showClearButton = false;
106
+ this.clearSelection();
107
+ this.filterData = {
108
+ filterFromCalendar: '',
109
+ filterToCalendar: '',
110
+ ticketId: '',
111
+ ticketType: []
112
+ };
113
+ this.filterClear.emit();
114
+ }
115
+ handleDialogConfirm() {
116
+ if (this.filterData.filterFromCalendar && this.filterData.filterToCalendar) {
117
+ let dateArray = this.filterData.filterFromCalendar.split('/');
118
+ let dateArrayTo = this.filterData.filterToCalendar.split('/');
119
+ const transferData = {
120
+ filterFromCalendar: new Date(Date.UTC(Number(dateArray[2]), Number(dateArray[1]) - 1, Number(dateArray[0]), 0, 0, 0)).toISOString(),
121
+ filterToCalendar: new Date(Date.UTC(Number(dateArrayTo[2]), Number(dateArrayTo[1]) - 1, Number(dateArrayTo[0]), 23, 59, 59)).toISOString()
122
+ };
123
+ this.filterData = Object.assign(Object.assign({}, this.filterData), transferData);
124
+ }
125
+ this.filterChange.emit(this.filterData);
126
+ this.isOpen = false;
127
+ this.showClearButton = true;
128
+ }
129
+ render() {
130
+ return (h("div", { key: '74aa590f6f92b9df971fd17cb3f573cc6a0a68e9', class: "lottery-tipping-filter", ref: (el) => (this.stylingContainer = el) }, h("div", { key: 'ebf385371627466c5eb06a5ef75a14a467b1badd', class: "operate-btns" }, !this.showClearButton && (h("div", { key: '55c709034e124b51e8b9057980f5a3c3b8c6d5ce', class: "operate-btn", onClick: () => {
131
+ this.isOpen = true;
132
+ } }, translate('filter', this.language))), (this.showClearButton || this.quickFiltersActive) && (h("div", { key: 'aa747af2461e72fbacc16decd7fc75cd6f640c47', class: "operate-btn", onClick: () => this.resetSearch() }, translate('clear', this.language)))), h("lottery-tipping-dialog", { key: 'f8f41b7ff5114a48a840063b5f063e28cc61e31c', "dialog-title": translate('ticketResult', this.language), visible: this.isOpen, onCancel: () => {
133
+ this.isOpen = false;
134
+ }, onConfirm: this.handleDialogConfirm(), animationDuration: 300, language: this.language, "translation-url": this.translationUrl }, h("div", { key: 'a7510ed9b89b568d6829777bfbbc33bc3fdbb9b4', class: "dialog-content" }, h("div", { key: '25f1a6e8e4f389cc6157468338eb4bac9996a5cd', class: "filter-item" }, h("div", { key: 'a49fded71e3ddc45dc26c7bb47f29132907bcf5f', class: "filter-item-label" }, translate('searchByTicketId', this.language)), h("div", { key: '281d3ebd48ab27fbd82328a684fcf3e11bd68176', class: "filter-item-val" }, h("vaadin-text-field", { key: '3ca7edba908e9ff1d6ab16c5c60e5a1cdb06d9c9', placeholder: translate('enterTicketId', this.language), value: this.filterData.ticketId, onInput: (event) => {
135
+ this.filterData.ticketId = event.target.value;
136
+ } }))), h("div", { key: '9bee76f675ef9934db69a1f06e5b40c4e2e94bf2', class: "filter-item" }, h("div", { key: 'd9251a523137fab3410c0ce8597a70ba7cffaf73', class: "filter-item-label" }, translate('searchByTicketType', this.language)), h("div", { key: 'ddc4c4a1c436d874f9c13d4612690d6360815633', class: "general-multi-select-container" }, h("general-multi-select", { key: 'b08fc68491d530937356d519f37362b2e3bf13c8', ref: (el) => (this.comboBox = el), placeholder: translate('selectTicketType', this.language), "max-visible-chips": "2", options: this.ticketTypeList.map((item) => ({
137
+ text: item.label,
138
+ value: item.value
139
+ })), onChange: this.handleTicketType, "client-styling": this.clientStyling, "client-styling-Url": this.clientStylingUrl, "mb-source": this.mbSource }))), h("div", { key: '516fd4574674db32d3e8c9994a8c8cfb3b972364', class: "filter-item" }, h("div", { key: 'ce608f365c0297ff7b3aa1cbe64a51505e441f2c', class: "filter-item-label" }, translate('searchByDate', this.language)), h("div", { key: '9456716fb9e3a392cbb5c16f706b3dc144b0ccbe', class: "filter-item-val" }, h("vaadin-date-picker", { key: 'fb574b38a9e9143bf47fecd16638d50e2b9605a5', value: this.filterData.filterFromCalendar, max: this.filterData.filterToCalendar === undefined
140
+ ? undefined
141
+ : this.changeFormate(this.filterData.filterToCalendar), onChange: this.handleFilterFrom, placeholder: translate('from', this.language), ref: (el) => this.setDateFormate(el), class: "VaadinDatePicker" }), h("vaadin-date-picker", { key: '3fc353dd8b7919219731934cf76c75ea13c38e35', value: this.filterData.filterToCalendar, min: this.filterData.filterFromCalendar === undefined
142
+ ? undefined
143
+ : this.changeFormate(this.filterData.filterFromCalendar), onChange: this.handleFilterTo, placeholder: translate('to', this.language), ref: (el) => this.setDateFormate(el), class: "VaadinDatePicker" })))))));
144
+ }
145
+ static get is() { return "lottery-tipping-filter"; }
146
+ static get encapsulation() { return "shadow"; }
147
+ static get originalStyleUrls() {
148
+ return {
149
+ "$": ["lottery-tipping-filter.scss"]
150
+ };
151
+ }
152
+ static get styleUrls() {
153
+ return {
154
+ "$": ["lottery-tipping-filter.css"]
155
+ };
156
+ }
157
+ static get properties() {
158
+ return {
159
+ "quickFiltersActive": {
160
+ "type": "boolean",
161
+ "mutable": false,
162
+ "complexType": {
163
+ "original": "boolean",
164
+ "resolved": "boolean",
165
+ "references": {}
166
+ },
167
+ "required": false,
168
+ "optional": false,
169
+ "docs": {
170
+ "tags": [],
171
+ "text": "Notifies if the quick filters from tickets are active"
172
+ },
173
+ "attribute": "quick-filters-active",
174
+ "reflect": true,
175
+ "defaultValue": "false"
176
+ },
177
+ "mbSource": {
178
+ "type": "string",
179
+ "mutable": false,
180
+ "complexType": {
181
+ "original": "string",
182
+ "resolved": "string",
183
+ "references": {}
184
+ },
185
+ "required": false,
186
+ "optional": false,
187
+ "docs": {
188
+ "tags": [],
189
+ "text": ""
190
+ },
191
+ "attribute": "mb-source",
192
+ "reflect": true
193
+ },
194
+ "clientStyling": {
195
+ "type": "string",
196
+ "mutable": false,
197
+ "complexType": {
198
+ "original": "string",
199
+ "resolved": "string",
200
+ "references": {}
201
+ },
202
+ "required": false,
203
+ "optional": false,
204
+ "docs": {
205
+ "tags": [],
206
+ "text": ""
207
+ },
208
+ "attribute": "client-styling",
209
+ "reflect": true
210
+ },
211
+ "clientStylingUrl": {
212
+ "type": "string",
213
+ "mutable": false,
214
+ "complexType": {
215
+ "original": "string",
216
+ "resolved": "string",
217
+ "references": {}
218
+ },
219
+ "required": false,
220
+ "optional": false,
221
+ "docs": {
222
+ "tags": [],
223
+ "text": ""
224
+ },
225
+ "attribute": "client-styling-url",
226
+ "reflect": true
227
+ },
228
+ "language": {
229
+ "type": "string",
230
+ "mutable": false,
231
+ "complexType": {
232
+ "original": "string",
233
+ "resolved": "string",
234
+ "references": {}
235
+ },
236
+ "required": false,
237
+ "optional": false,
238
+ "docs": {
239
+ "tags": [],
240
+ "text": ""
241
+ },
242
+ "attribute": "language",
243
+ "reflect": true,
244
+ "defaultValue": "'en'"
245
+ },
246
+ "translationUrl": {
247
+ "type": "any",
248
+ "mutable": false,
249
+ "complexType": {
250
+ "original": "any",
251
+ "resolved": "any",
252
+ "references": {}
253
+ },
254
+ "required": false,
255
+ "optional": true,
256
+ "docs": {
257
+ "tags": [],
258
+ "text": ""
259
+ },
260
+ "attribute": "translation-url",
261
+ "reflect": true
262
+ }
263
+ };
264
+ }
265
+ static get states() {
266
+ return {
267
+ "isOpen": {},
268
+ "filterData": {},
269
+ "ticketTypeList": {},
270
+ "showClearButton": {}
271
+ };
272
+ }
273
+ static get events() {
274
+ return [{
275
+ "method": "filterChange",
276
+ "name": "filterChange",
277
+ "bubbles": true,
278
+ "cancelable": true,
279
+ "composed": true,
280
+ "docs": {
281
+ "tags": [],
282
+ "text": ""
283
+ },
284
+ "complexType": {
285
+ "original": "LotteryTippingFilterData",
286
+ "resolved": "LotteryTippingFilterData",
287
+ "references": {
288
+ "LotteryTippingFilterData": {
289
+ "location": "import",
290
+ "path": "../../models",
291
+ "id": "../../../../packages/stencil/lottery-tipping-ticket-history/src/models/index.ts::LotteryTippingFilterData"
292
+ }
293
+ }
294
+ }
295
+ }, {
296
+ "method": "filterClear",
297
+ "name": "filterClear",
298
+ "bubbles": true,
299
+ "cancelable": true,
300
+ "composed": true,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": ""
304
+ },
305
+ "complexType": {
306
+ "original": "void",
307
+ "resolved": "void",
308
+ "references": {}
309
+ }
310
+ }];
311
+ }
312
+ static get watchers() {
313
+ return [{
314
+ "propName": "clientStyling",
315
+ "methodName": "handleClientStylingChange"
316
+ }, {
317
+ "propName": "clientStylingUrl",
318
+ "methodName": "handleClientStylingUrlChange"
319
+ }, {
320
+ "propName": "mbSource",
321
+ "methodName": "handleMbSourceChange"
322
+ }];
323
+ }
324
+ static get listeners() {
325
+ return [{
326
+ "name": "modalCloseEvent",
327
+ "method": "handleModalClose",
328
+ "target": undefined,
329
+ "capture": false,
330
+ "passive": false
331
+ }];
332
+ }
333
+ }
@@ -0,0 +1 @@
1
+ export { LotteryTippingPagination } from './lottery-tipping-pagination';
@@ -0,0 +1,70 @@
1
+ .paginator {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: 6px;
5
+ flex-wrap: wrap;
6
+ justify-content: flex-end;
7
+ }
8
+
9
+ button {
10
+ padding: 4px 8px;
11
+ font-size: 14px;
12
+ background: var(--emw--color-background, #fff);
13
+ border: var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));
14
+ border-radius: var(--emw--border-radius-small, 4px);
15
+ cursor: pointer;
16
+ min-width: 28px;
17
+ transition: all 0.2s ease;
18
+ }
19
+
20
+ button.active {
21
+ color: #333;
22
+ background: var(--emw--color-primary, #fed275);
23
+ border-color: var(--emw--color-primary, #fed275);
24
+ font-weight: bold;
25
+ }
26
+
27
+ button:not(.arrow-btn):hover {
28
+ background: var(--emw--color-secondary, #fff3b9);
29
+ border-color: var(--emw--color-secondary, #fff3b9);
30
+ }
31
+
32
+ button:disabled {
33
+ cursor: not-allowed;
34
+ border: var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));
35
+ user-select: none;
36
+ }
37
+
38
+ .ellipsis {
39
+ font-weight: bold;
40
+ color: var(--emw--color-gray-400, #000);
41
+ border: none;
42
+ }
43
+
44
+ select {
45
+ padding: 4px 8px;
46
+ border-radius: 4px;
47
+ border: var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));
48
+ font-size: 14px;
49
+ }
50
+
51
+ .jump-box {
52
+ display: flex;
53
+ align-items: center;
54
+ gap: 4px;
55
+ margin-left: 8px;
56
+ }
57
+ .jump-box input {
58
+ width: 50px;
59
+ padding: 2px 6px;
60
+ font-size: 14px;
61
+ border: var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));
62
+ border-radius: 4px;
63
+ text-align: center;
64
+ }
65
+
66
+ .total-num {
67
+ user-select: none;
68
+ font-size: 14px;
69
+ color: var(--emw--color-gray-300, #333);
70
+ }