@everymatrix/lottery-tickets-history-page 1.86.27 → 1.86.28
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/general-multi-select_9.cjs.entry.js +248 -249
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-tickets-history-page.cjs.js +1 -1
- package/dist/collection/components/lottery-tickets-history-page/lottery-tickets-history-page.js +1 -20
- package/dist/esm/general-multi-select_9.entry.js +248 -249
- package/dist/esm/loader.js +1 -1
- package/dist/esm/lottery-tickets-history-page.js +1 -1
- package/dist/lottery-tickets-history-page/general-multi-select_9.entry.js +4 -4
- package/dist/lottery-tickets-history-page/lottery-tickets-history-page.esm.js +1 -1
- package/dist/types/components/lottery-tickets-history-page/lottery-tickets-history-page.d.ts +0 -4
- package/dist/types/components.d.ts +0 -8
- package/package.json +1 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["general-multi-select_9.cjs",[[1,"lottery-tickets-history-page",{"endpoint":[513],"playerId":[513,"player-id"],"sessionId":[513,"session-id"],"language":[513],"perPage":[514,"per-page"],"postMessage":[516,"post-message"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"
|
|
11
|
+
return index.bootstrapLazy([["general-multi-select_9.cjs",[[1,"lottery-tickets-history-page",{"endpoint":[513],"playerId":[513,"player-id"],"sessionId":[513,"session-id"],"language":[513],"perPage":[514,"per-page"],"postMessage":[516,"post-message"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[513,"translation-url"],"filterTicketsList":[32],"paginationTicketsList":[32],"ticketsList":[32],"gamesList":[32],"showQuickFilters":[32],"filterTicketsId":[32],"filterTicketsFrom":[32],"filterTicketsTo":[32],"filterTicketsType":[32],"gameName":[32],"isLoading":[32],"noResults":[32],"hasErrors":[32],"errorText":[32],"filterActive":[32],"quickFiltersActive":[32],"totalResults":[32],"offset":[32],"translationData":[32],"ticketTypeMap":[32]},[[0,"hpPageChange","hpPageChange"],[0,"filterSelection","filterSelection"],[0,"filterSelectionReset","filterSelectionReset"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"helper-filters",{"activateTicketSearch":[516,"activate-ticket-search"],"gameId":[513,"game-id"],"playerId":[513,"player-id"],"session":[513],"postMessage":[516,"post-message"],"language":[513],"quickFiltersActive":[516,"quick-filters-active"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32],"limitStylingAppends":[32],"ticketTypeList":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"lottery-draw-results",{"endpoint":[513],"gameId":[513,"game-id"],"language":[513],"playerId":[513,"player-id"],"drawMode":[516,"draw-mode"],"drawId":[513,"draw-id"],"gameName":[513,"game-name"],"ticketDate":[513,"ticket-date"],"ticketStatus":[513,"ticket-status"],"ticketId":[513,"ticket-id"],"ticketType":[513,"ticket-type"],"ticketAmount":[513,"ticket-amount"],"ticketCurrency":[513,"ticket-currency"],"ticketMultiplier":[516,"ticket-multiplier"],"ticketMultiplierNum":[514,"ticket-multiplier-num"],"ticketDrawCount":[514,"ticket-draw-count"],"ticketNumbers":[513,"ticket-numbers"],"sessionId":[513,"session-id"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"ticketDrawData":[513,"ticket-draw-data"],"historyDrawData":[513,"history-draw-data"],"tabValue":[513,"tab-value"],"translationUrl":[520,"translation-url"],"multiplier":[32],"isLoading":[32],"hasErrors":[32],"errorText":[32],"ticketData":[32],"ticketDataLoaded":[32],"ticketDraws":[32],"toggleDrawer":[32],"drawData":[32],"resultMap":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"helper-accordion",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"translationUrl":[520,"translation-url"],"showContent":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-pagination",{"nextPage":[1540,"next-page"],"prevPage":[1540,"prev-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1537],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[1537,"client-styling-url"],"mbSource":[513,"mb-source"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"numberedNavActive":[1540,"numbered-nav-active"],"isReset":[1540,"is-reset"],"translationUrl":[520,"translation-url"],"offsetInt":[32],"lastPage":[32],"previousPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"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,"helper-modal",{"titleModal":[513,"title-modal"],"visible":[1540],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["general-multi-select_9.cjs",[[1,"lottery-tickets-history-page",{"endpoint":[513],"playerId":[513,"player-id"],"sessionId":[513,"session-id"],"language":[513],"perPage":[514,"per-page"],"postMessage":[516,"post-message"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"
|
|
22
|
+
return index.bootstrapLazy([["general-multi-select_9.cjs",[[1,"lottery-tickets-history-page",{"endpoint":[513],"playerId":[513,"player-id"],"sessionId":[513,"session-id"],"language":[513],"perPage":[514,"per-page"],"postMessage":[516,"post-message"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[513,"translation-url"],"filterTicketsList":[32],"paginationTicketsList":[32],"ticketsList":[32],"gamesList":[32],"showQuickFilters":[32],"filterTicketsId":[32],"filterTicketsFrom":[32],"filterTicketsTo":[32],"filterTicketsType":[32],"gameName":[32],"isLoading":[32],"noResults":[32],"hasErrors":[32],"errorText":[32],"filterActive":[32],"quickFiltersActive":[32],"totalResults":[32],"offset":[32],"translationData":[32],"ticketTypeMap":[32]},[[0,"hpPageChange","hpPageChange"],[0,"filterSelection","filterSelection"],[0,"filterSelectionReset","filterSelectionReset"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"helper-filters",{"activateTicketSearch":[516,"activate-ticket-search"],"gameId":[513,"game-id"],"playerId":[513,"player-id"],"session":[513],"postMessage":[516,"post-message"],"language":[513],"quickFiltersActive":[516,"quick-filters-active"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32],"limitStylingAppends":[32],"ticketTypeList":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"lottery-draw-results",{"endpoint":[513],"gameId":[513,"game-id"],"language":[513],"playerId":[513,"player-id"],"drawMode":[516,"draw-mode"],"drawId":[513,"draw-id"],"gameName":[513,"game-name"],"ticketDate":[513,"ticket-date"],"ticketStatus":[513,"ticket-status"],"ticketId":[513,"ticket-id"],"ticketType":[513,"ticket-type"],"ticketAmount":[513,"ticket-amount"],"ticketCurrency":[513,"ticket-currency"],"ticketMultiplier":[516,"ticket-multiplier"],"ticketMultiplierNum":[514,"ticket-multiplier-num"],"ticketDrawCount":[514,"ticket-draw-count"],"ticketNumbers":[513,"ticket-numbers"],"sessionId":[513,"session-id"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"ticketDrawData":[513,"ticket-draw-data"],"historyDrawData":[513,"history-draw-data"],"tabValue":[513,"tab-value"],"translationUrl":[520,"translation-url"],"multiplier":[32],"isLoading":[32],"hasErrors":[32],"errorText":[32],"ticketData":[32],"ticketDataLoaded":[32],"ticketDraws":[32],"toggleDrawer":[32],"drawData":[32],"resultMap":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"helper-accordion",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"translationUrl":[520,"translation-url"],"showContent":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-pagination",{"nextPage":[1540,"next-page"],"prevPage":[1540,"prev-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1537],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[1537,"client-styling-url"],"mbSource":[513,"mb-source"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"numberedNavActive":[1540,"numbered-nav-active"],"isReset":[1540,"is-reset"],"translationUrl":[520,"translation-url"],"offsetInt":[32],"lastPage":[32],"previousPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"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,"helper-modal",{"titleModal":[513,"title-modal"],"visible":[1540],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
package/dist/collection/components/lottery-tickets-history-page/lottery-tickets-history-page.js
CHANGED
|
@@ -100,7 +100,6 @@ export class LotteryTicketsHistoryPage {
|
|
|
100
100
|
this.clientStyling = '';
|
|
101
101
|
this.clientStylingUrl = '';
|
|
102
102
|
this.mbSource = undefined;
|
|
103
|
-
this.endpointGame = '';
|
|
104
103
|
this.translationUrl = '';
|
|
105
104
|
this.filterTicketsList = {};
|
|
106
105
|
this.paginationTicketsList = {};
|
|
@@ -226,7 +225,7 @@ export class LotteryTicketsHistoryPage {
|
|
|
226
225
|
this.getTicketsData(0, this.perPage, 'state', filter);
|
|
227
226
|
}
|
|
228
227
|
render() {
|
|
229
|
-
return (h("div", { key: '
|
|
228
|
+
return (h("div", { key: 'a3a5a048de91dba38ad9bc1377d6ab84f5989aa5', class: "LotteryTicketsHistoryPage", ref: (el) => (this.stylingContainer = el) }, h("h1", { key: '8934e3bc05b502fe5ab2aceed56ff8f61fa40e74', class: "TicketsHistoryTitle" }, translate('ticketsHistoryTitle', this.language)), h("div", { key: '5ec8ce89d517251b199bc15735381a336769ffd6', class: "TicketsHistoryFilterWrapper" }, this.showQuickFilters && (h("div", { key: '8a2effc0d977cd60da718780e7817a04fbb7381e', class: "TicketsHistoryQuickFiltersWrapper" }, h("button", { key: 'cf2375ac647b2769964f310f112849e3369a1073', class: this.filterActive[0] ? 'TicketsHistoryQuickFiltersButton Active' : 'TicketsHistoryQuickFiltersButton', onClick: () => this.quickFilters('Settled') }, translate('ticketsHistorySettled', this.language)), h("button", { key: 'f8cb3b869e6af2eff63fbe9e22315c71b7554161', class: this.filterActive[1] ? 'TicketsHistoryQuickFiltersButton Active' : 'TicketsHistoryQuickFiltersButton', onClick: () => this.quickFilters('Purchased') }, translate('ticketsHistoryPurchased', this.language)), h("button", { key: '83cd56631e83c81041a3db94550820742f68babf', class: this.filterActive[2] ? 'TicketsHistoryQuickFiltersButton Active' : 'TicketsHistoryQuickFiltersButton', onClick: () => this.quickFilters('Canceled') }, translate('ticketsHistoryCanceled', this.language)))), h("div", { key: '7604d7366dc490810ef32023e04c21daa000ede0', class: "TicketsHistoryHelperFilter" }, h("helper-filters", { key: '2d8e164339c38e871cc22f17a7054cccfd0e2d2d', "show-filter-id": "false", "activate-ticket-search": "true", "player-id": this.playerId, "quick-filters-active": this.quickFiltersActive, language: this.language, "translation-url": this.translationData, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))), this.isLoading ? (h("p", { class: "loadingText" }, translate('loading', this.language))) : this.hasErrors ? (h("p", { class: "errorText" }, this.errorText)) : (h("div", { class: "TicketsHistoryWrapper" }, this.noResults ? (h("div", { class: "errorText" }, h("p", null, translate('ticketsHistoryNoResults', this.language)))) : (this.ticketsList.map((item = {}) => (h("helper-accordion", { key: item.id, "header-title": item.name, "header-subtitle": format(new Date(item.createdAt), 'dd/MM/yyyy HH:mm:ss'), description: item.state, footer: false, "delete-tab": "false", language: this.language, "translation-url": this.translationData, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }, h("div", { slot: "accordionContent" }, h("lottery-draw-results", { key: item.id, endpoint: this.endpoint, "game-id": item.gameId, "player-id": this.playerId, "game-name": this.gameName, "ticket-date": item.createdAt, "ticket-status": item.state, "ticket-id": item.id, "ticket-type": this.ticketTypeMap[item.wagerType], "ticket-amount": item.amount, "ticket-currency": item.currency, "ticket-multiplier": item.multiplier, "ticket-multiplier-num": item.multiplierNum, "ticket-numbers": JSON.stringify(item.selection), "ticket-draw-count": item.drawCount, "session-id": this.sessionId, "tab-value": this.filterValue, language: this.language, "translation-url": this.translationData, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource, "ticket-draw-data": item.state === 'Settled' ? this.stringifyDraw(item.listOfDraws) : '' })))))))), h("div", { key: '45ba85fb2f4361d21c0a3469d07770ce74bad3e9', class: "TicketsHistoryPaginationWrapper" }, this.totalResults > this.perPage && (h("lottery-pagination", { key: 'e7a3e3afed46c9bb6eb03767b97deabe68a1d18b', arrowsActive: true, numberedNavActive: true, isReset: this.isReset, "first-page": false, "prev-page": true, "next-page": true, offset: this.offset, limit: this.perPage, total: this.totalResults, language: this.language, "translation-url": this.translationData, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })))));
|
|
230
229
|
}
|
|
231
230
|
static get is() { return "lottery-tickets-history-page"; }
|
|
232
231
|
static get encapsulation() { return "shadow"; }
|
|
@@ -403,24 +402,6 @@ export class LotteryTicketsHistoryPage {
|
|
|
403
402
|
"attribute": "mb-source",
|
|
404
403
|
"reflect": true
|
|
405
404
|
},
|
|
406
|
-
"endpointGame": {
|
|
407
|
-
"type": "string",
|
|
408
|
-
"mutable": false,
|
|
409
|
-
"complexType": {
|
|
410
|
-
"original": "string",
|
|
411
|
-
"resolved": "string",
|
|
412
|
-
"references": {}
|
|
413
|
-
},
|
|
414
|
-
"required": false,
|
|
415
|
-
"optional": false,
|
|
416
|
-
"docs": {
|
|
417
|
-
"tags": [],
|
|
418
|
-
"text": "Endpoint for tickets history"
|
|
419
|
-
},
|
|
420
|
-
"attribute": "endpoint-game",
|
|
421
|
-
"reflect": true,
|
|
422
|
-
"defaultValue": "''"
|
|
423
|
-
},
|
|
424
405
|
"translationUrl": {
|
|
425
406
|
"type": "string",
|
|
426
407
|
"mutable": false,
|