@everymatrix/lottery-game-page 1.24.7 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/helper-accordion.cjs.entry.js +4 -1
- package/dist/cjs/helper-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/helper-filters_2.cjs.entry.js +10069 -9613
- package/dist/cjs/helper-filters_2.cjs.entry.js.map +1 -1
- package/dist/cjs/helper-pagination.cjs.entry.js +7 -1
- package/dist/cjs/helper-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/lottery-draw-results-history.cjs.entry.js +15 -2
- package/dist/cjs/lottery-draw-results-history.cjs.entry.js.map +1 -1
- package/dist/cjs/lottery-game-page.cjs.entry.js +24 -1
- package/dist/cjs/lottery-game-page.cjs.entry.js.map +1 -1
- package/dist/cjs/lottery-ticket-controller.cjs.entry.js +4 -1
- package/dist/cjs/lottery-ticket-controller.cjs.entry.js.map +1 -1
- package/dist/cjs/lottery-ticket.cjs.entry.js +11 -1
- package/dist/cjs/lottery-ticket.cjs.entry.js.map +1 -1
- package/dist/collection/utils/locale.utils.js +24 -1
- package/dist/collection/utils/locale.utils.js.map +1 -1
- package/dist/components/helper-accordion2.js +4 -1
- package/dist/components/helper-accordion2.js.map +1 -1
- package/dist/components/helper-filters2.js +10012 -9573
- package/dist/components/helper-filters2.js.map +1 -1
- package/dist/components/helper-pagination.js +7 -1
- package/dist/components/helper-pagination.js.map +1 -1
- package/dist/components/lottery-draw-results-history2.js +15 -2
- package/dist/components/lottery-draw-results-history2.js.map +1 -1
- package/dist/components/lottery-draw-results2.js +19 -2
- package/dist/components/lottery-draw-results2.js.map +1 -1
- package/dist/components/lottery-game-page.js +24 -1
- package/dist/components/lottery-game-page.js.map +1 -1
- package/dist/components/lottery-ticket-controller2.js +4 -1
- package/dist/components/lottery-ticket-controller2.js.map +1 -1
- package/dist/components/lottery-ticket2.js +11 -1
- package/dist/components/lottery-ticket2.js.map +1 -1
- package/dist/esm/helper-accordion.entry.js +4 -1
- package/dist/esm/helper-accordion.entry.js.map +1 -1
- package/dist/esm/helper-filters_2.entry.js +10069 -9613
- package/dist/esm/helper-filters_2.entry.js.map +1 -1
- package/dist/esm/helper-pagination.entry.js +7 -1
- package/dist/esm/helper-pagination.entry.js.map +1 -1
- package/dist/esm/lottery-draw-results-history.entry.js +15 -2
- package/dist/esm/lottery-draw-results-history.entry.js.map +1 -1
- package/dist/esm/lottery-game-page.entry.js +24 -1
- package/dist/esm/lottery-game-page.entry.js.map +1 -1
- package/dist/esm/lottery-ticket-controller.entry.js +4 -1
- package/dist/esm/lottery-ticket-controller.entry.js.map +1 -1
- package/dist/esm/lottery-ticket.entry.js +11 -1
- package/dist/esm/lottery-ticket.entry.js.map +1 -1
- package/dist/lottery-game-page/lottery-game-page.esm.js +1 -1
- package/dist/lottery-game-page/p-12340c50.entry.js +2921 -0
- package/dist/lottery-game-page/p-12340c50.entry.js.map +1 -0
- package/dist/lottery-game-page/p-20e0c81c.entry.js +2 -0
- package/dist/lottery-game-page/p-20e0c81c.entry.js.map +1 -0
- package/dist/lottery-game-page/p-b19ff22c.entry.js +2 -0
- package/dist/lottery-game-page/p-b19ff22c.entry.js.map +1 -0
- package/dist/lottery-game-page/p-cba19473.entry.js +2 -0
- package/dist/lottery-game-page/p-cba19473.entry.js.map +1 -0
- package/dist/lottery-game-page/p-cd4aa6a4.entry.js +2 -0
- package/dist/lottery-game-page/p-cd4aa6a4.entry.js.map +1 -0
- package/dist/lottery-game-page/p-e86e2389.entry.js +2 -0
- package/dist/lottery-game-page/p-e86e2389.entry.js.map +1 -0
- package/dist/lottery-game-page/p-f399eef1.entry.js +2 -0
- package/dist/lottery-game-page/p-f399eef1.entry.js.map +1 -0
- package/package.json +1 -1
- package/dist/lottery-game-page/p-042065c6.entry.js +0 -2
- package/dist/lottery-game-page/p-042065c6.entry.js.map +0 -1
- package/dist/lottery-game-page/p-5b49ab69.entry.js +0 -2
- package/dist/lottery-game-page/p-5b49ab69.entry.js.map +0 -1
- package/dist/lottery-game-page/p-606c0b0f.entry.js +0 -2
- package/dist/lottery-game-page/p-606c0b0f.entry.js.map +0 -1
- package/dist/lottery-game-page/p-96f06e2d.entry.js +0 -2
- package/dist/lottery-game-page/p-96f06e2d.entry.js.map +0 -1
- package/dist/lottery-game-page/p-a9ef5b8c.entry.js +0 -2
- package/dist/lottery-game-page/p-a9ef5b8c.entry.js.map +0 -1
- package/dist/lottery-game-page/p-b8e683f6.entry.js +0 -2
- package/dist/lottery-game-page/p-b8e683f6.entry.js.map +0 -1
- package/dist/lottery-game-page/p-f8578814.entry.js +0 -2899
- package/dist/lottery-game-page/p-f8578814.entry.js.map +0 -1
- /package/dist/types/Users/{sebastian.strulea/Documents/work → adrian.pripon/Documents/Work}/widgets-stencil/packages/lottery-game-page/.stencil/packages/lottery-game-page/stencil.config.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"lottery-ticket2.js","mappings":";;;;AAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACzC,MAAM,YAAY,GAAG;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,OAAO,EAAE,0BAA0B;AACvC,IAAI,KAAK,EAAE,gDAAgD;AAC3D,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,UAAU,EAAE,YAAY;AAC5B,IAAI,aAAa,EAAE,iBAAiB;AACpC,IAAI,YAAY,EAAE,gBAAgB;AAClC,IAAI,WAAW,EAAE,OAAO;AACxB,IAAI,UAAU,EAAE,cAAc;AAC9B,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,OAAO,EAAE,oCAAoC;AACjD,IAAI,KAAK,EAAE,4CAA4C;AACvD,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,UAAU,EAAE,eAAe;AAC/B,IAAI,aAAa,EAAE,sBAAsB;AACzC,IAAI,YAAY,EAA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MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,EAC7Q,IAAI,CAAC,KAAK,EACV,GAAG,EACH,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,IAAI,EAC1C,CAAC,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EACtF,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;OAC3E;KACF;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../lottery-ticket/dist/collection/utils/locale.utils.js","../lottery-ticket/dist/collection/components/lottery-ticket/lottery-ticket.css?tag=lottery-ticket&encapsulation=shadow","../lottery-ticket/dist/collection/components/lottery-ticket/lottery-ticket.js"],"sourcesContent":["const DEFAULT_LANGUAGE = 'en';\nconst SUPPORTED_LANGUAGES = ['ro', 'en'];\nconst TRANSLATIONS = {\n en: {\n loading: 'Loading, please wait ...',\n error: 'It was an error while trying to fetch the data',\n grid: 'Grid',\n multiplier: 'Multiplier',\n numberOfDraws: 'Number of draws',\n wagerPerDraw: 'Wager per draw',\n resetButton: 'Reset',\n autoButton: 'I feel lucky'\n },\n ro: {\n loading: 'Se incarca, va rugam asteptati ...',\n error: 'A fost o eroare in timp ce asteptam datele',\n grid: 'Grid',\n multiplier: 'Multiplicator',\n numberOfDraws: 'Numarul de extrageri',\n wagerPerDraw: 'Pariul per extragere',\n resetButton: 'Reseteaza',\n autoButton: 'Ma simt norocos'\n },\n fr: {\n loading: 'Loading, please wait ...',\n error: 'It was an error while trying to fetch the data',\n grid: 'Grid',\n multiplier: 'Multiplier',\n numberOfDraws: 'Number of draws',\n wagerPerDraw: 'Wager per draw',\n resetButton: 'Reset',\n autoButton: 'I feel lucky'\n },\n ar: {\n loading: 'Loading, please wait ...',\n error: 'It was an error while trying to fetch the data',\n grid: 'Grid',\n multiplier: 'Multiplier',\n numberOfDraws: 'Number of draws',\n wagerPerDraw: 'Wager per draw',\n resetButton: 'Reset',\n autoButton: 'I feel lucky'\n }\n};\nexport const translate = (key, customLang) => {\n const lang = customLang;\n return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];\n};\n","@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");\n:host {\n display: block;\n font-family: \"Roboto\", sans-serif;\n}\n\n.TicketTitle {\n font-size: 16px;\n font-weight: bold;\n}\n\n.ButtonContainer {\n display: flex;\n justify-content: flex-end;\n}\n\n.Toggle {\n cursor: pointer;\n margin-top: 20px;\n display: inline-block;\n}\n\n.ToggleSwitch {\n display: inline-block;\n background: #707070;\n border-radius: 16px;\n width: 58px;\n height: 24px;\n position: relative;\n vertical-align: middle;\n transition: background 0.25s;\n}\n.ToggleSwitch:before, .ToggleSwitch:after {\n content: \"\";\n}\n.ToggleSwitch:before {\n display: block;\n background: linear-gradient(to bottom, #fff 0%, #F1F1F1 100%);\n border-radius: 50%;\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);\n width: 16px;\n height: 16px;\n position: absolute;\n top: 4px;\n left: 4px;\n transition: left 0.25s;\n}\n\n.Toggle:hover .ToggleSwitch:before {\n background: linear-gradient(to bottom, #fff 0%, #fff 100%);\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);\n}\n\n.ToggleCheckbox:checked + .ToggleSwitch {\n background: #00ABA4;\n}\n\n.ToggleCheckbox:checked + .ToggleSwitch:before {\n left: 38px;\n}\n\n.ToggleCheckbox {\n position: absolute;\n visibility: hidden;\n}\n\n.Label {\n margin-right: 5px;\n position: relative;\n top: 2px;\n font-size: 14px;\n font-weight: lighter;\n color: #000;\n}\n\ninput[type=number] {\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n\ninput[type=number]::-webkit-inner-spin-button,\ninput[type=number]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n}\n\n.NumberInput,\n.WagerInput {\n margin-top: 10px;\n display: inline-flex;\n align-items: center;\n}\n\n.NumberInput,\n.NumberInput * {\n box-sizing: border-box;\n}\n\n.NumberInput button {\n cursor: pointer;\n outline: none;\n -webkit-appearance: none;\n border: none;\n align-items: center;\n justify-content: center;\n height: 20px;\n position: relative;\n}\n\n.NumberInput button:after {\n display: inline-block;\n position: absolute;\n transform: translate(-50%, -50%) rotate(180deg);\n align-items: center;\n text-align: center;\n}\n\n.NumberInput button.Plus:after {\n transform: translate(-50%, -50%) rotate(0deg);\n width: 30px;\n display: inline-flex;\n align-items: center;\n text-align: center;\n}\n\n.NumberInput input[type=number],\n.WagerInput input[type=number] {\n max-width: 50px;\n display: inline-flex;\n align-items: center;\n padding: 4px 10px;\n text-align: center;\n}\n.NumberInput input[type=number] .WagerInputTitle,\n.WagerInput input[type=number] .WagerInputTitle {\n font-size: 14px;\n color: #000;\n padding: 10px;\n}\n\n.InputDefault {\n background-color: #F1F1F1;\n border-radius: 4px;\n padding: 5px;\n border: solid 1px #D4D4D4;\n color: #707070;\n}\n\n.AutoButton {\n cursor: pointer;\n display: inline-block;\n border-radius: 4px;\n padding: 8px 20px;\n width: max-content;\n margin: 5px 0;\n border: 1px solid #00958f;\n background: #FFF;\n color: #000;\n font-size: 12px;\n transition: all 0.2s linear;\n text-transform: uppercase;\n text-align: center;\n letter-spacing: 0;\n}\n.AutoButton:active {\n background: #00958f;\n color: #FFF;\n}\n\n.ResetButton {\n cursor: pointer;\n display: inline-block;\n border-radius: 4px;\n padding: 8px 20px;\n width: max-content;\n margin: 5px 0;\n color: #000;\n font-size: 12px;\n transition: all 0.2s linear;\n text-transform: uppercase;\n text-align: center;\n letter-spacing: 0;\n background: #FF3D00;\n border: 1px solid #FF3D00;\n color: #FFF;\n}\n.ResetButton:hover {\n background: #FF6536;\n border: 1px solid #FF3D00;\n}\n\n.TicketGridBullets {\n background: #f1f1f1;\n border-radius: 4px;\n padding: 20px;\n margin-top: 5px;\n}\n.TicketGridBullets .TicketGridTitle {\n margin-top: 0px;\n}\n\n.Minus {\n border-radius: 4px;\n width: 30px;\n height: 24px !important;\n margin-right: 10px;\n color: #FFF;\n background: #009993;\n}\n\n.Plus {\n border-radius: 4px;\n width: 30px;\n height: 24px !important;\n margin-left: 10px;\n color: #FFF;\n background: #009993;\n}\n\n.SelectWrapper {\n width: auto;\n padding: 5px;\n margin: 0 auto;\n border: 1px solid #ccc;\n border-radius: 5px;\n position: relative;\n}\n\n.SelectButton, .SelectOptions li {\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n\n.SelectButton {\n display: flex;\n padding: 0 5px;\n border-radius: 7px;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n}\n.SelectButton span:first-child {\n padding-right: 10px;\n}\n\n.SelectExpand {\n transition: transform 0.3s linear;\n font-size: 12px;\n}\n\n.SelectActive .SelectExpand {\n transform: rotate(180deg);\n}\n\n.SelectContent {\n display: none;\n padding: 5px;\n border-radius: 7px;\n}\n\n.SelectWrapper.SelectActive .SelectContent {\n width: 100%;\n display: block;\n position: absolute;\n left: 0;\n top: 32px;\n padding: 0;\n border: 1px solid #ccc;\n overflow: hidden;\n background: #fff;\n}\n\n.SelectContent .SelectOptions {\n max-height: 100px;\n margin: 0;\n overflow-y: auto;\n padding: 0;\n}\n.SelectContent .SelectOptions .SelectedValue {\n background-color: #009993;\n color: #fff;\n}\n\n.SelectOptions::-webkit-scrollbar {\n width: 7px;\n}\n\n.SelectOptions::-webkit-scrollbar-track {\n background: #f1f1f1;\n border-radius: 25px;\n}\n\n.SelectOptions::-webkit-scrollbar-thumb {\n background: #ccc;\n border-radius: 25px;\n}\n\n.SelectOptions li {\n height: 20px;\n padding: 0 13px;\n font-size: 14px;\n}\n\n.SelectOptions li:hover {\n background: #f2f2f2;\n}","import { Component, h, Prop, State, Event, Listen, Watch } from '@stencil/core';\nimport { translate } from '../../utils/locale.utils';\nimport '@everymatrix/lottery-grid';\nexport class LotteryTicket {\n constructor() {\n /**\n * Number of grids of a ticket\n */\n this.numberOfGrids = 1;\n /**\n * Option to have the ticket registered for multiple draws\n */\n this.multipleDraws = true;\n /**\n * Shows the reset button\n */\n this.resetButton = false;\n /**\n * Shows the auto-pick button\n */\n this.autoPick = false;\n /**\n * Language\n */\n this.language = 'en';\n /**\n * Client custom styling via string\n */\n this.clientStyling = '';\n /**\n * Client custom styling via url content\n */\n this.clientStylingUrlContent = '';\n this.multiplier = false;\n this.numberOfDraws = 1;\n this.isLoading = true;\n this.hasErrors = false;\n this.ticketDone = false;\n this.isCustomSelect = false;\n this.amountInfo = {};\n this.limitStylingAppends = false;\n this.setClientStyling = () => {\n let sheet = document.createElement('style');\n sheet.innerHTML = this.clientStyling;\n this.stylingContainer.prepend(sheet);\n };\n this.setClientStylingURL = () => {\n let cssFile = document.createElement('style');\n setTimeout(() => {\n cssFile.innerHTML = this.clientStylingUrlContent;\n this.stylingContainer.prepend(cssFile);\n }, 1);\n };\n }\n /**\n * @TODO find a better way to implement click outside the custom select, so that we don't have to use the 'data-cluster' attribute on each element\n */\n checkForClickOutside(ev) {\n if (ev.composedPath()[0].getAttribute('data-cluster') !== 'SelectComponent') {\n this.isCustomSelect = false;\n }\n }\n connectedCallback() {\n let url = new URL(`${this.endpoint}/games/${this.gameId}`);\n fetch(url.href)\n .then((response) => {\n if (response.ok) {\n return response.json();\n }\n else {\n // Throw error\n this.hasErrors = true;\n }\n })\n .then((data) => {\n this.isLoading = false;\n this.gameData = data;\n this.grids = [...Array(this.gameData.type.boards.length).keys()];\n this.amountInfo = this.gameData.type.stakes[0]; // initial value for select\n })\n .catch((err) => {\n this.isLoading = false;\n this.hasErrors = true;\n console.error('Error!', err);\n });\n }\n componentDidRender() {\n // start custom styling area\n if (!this.limitStylingAppends && this.stylingContainer) {\n if (this.clientStyling)\n this.setClientStyling();\n if (this.clientStylingUrlContent)\n this.setClientStylingURL();\n this.limitStylingAppends = true;\n }\n // end custom styling area\n }\n multiplierChangeHandler(e) {\n this.multiplier = e.target ? e.target.checked : false;\n this.multiplierChange.emit(this.multiplier);\n }\n drawsChangeHandler(event) {\n this.ticket = Object.assign(Object.assign({}, this.ticket), { draws: event });\n this.ticketCompleted.emit(this.ticket);\n }\n gridFilledHandler(event) {\n this.ticket = Object.assign(Object.assign({}, event.detail), { draws: this.numberOfDraws });\n this.ticketDone = true;\n this.ticketCompleted.emit(this.ticket);\n }\n toggleAutoSelection() {\n this.ticketDone = true;\n this.autoSelection.emit(this.ticketId);\n }\n toggleResetSelection() {\n this.ticketDone = false;\n this.resetSelection.emit(this.ticketId);\n }\n changeStake(ticketid, amount) {\n this.stakeChange.emit({\n ticketId: ticketid,\n stake: amount\n });\n }\n toggleClass() {\n this.isCustomSelect = !this.isCustomSelect;\n }\n setDropdownItem(item) {\n this.amountInfo = {\n value: item.value,\n currency: item.currency\n };\n this.isCustomSelect = false;\n this.changeStake(this.ticketId, item.amount);\n }\n render() {\n if (this.isLoading) {\n return (h(\"div\", null,\n h(\"p\", null, translate('loading', this.language))));\n }\n else {\n if (this.hasErrors) {\n return (h(\"div\", null,\n h(\"p\", null, translate('error', this.language))));\n }\n else {\n const { type } = this.gameData;\n return (h(\"div\", { class: \"TicketContainer\", ref: el => this.stylingContainer = el },\n h(\"p\", { class: \"TicketTitle\" }, this.gameData.name),\n this.resetButton && this.ticketDone &&\n h(\"div\", { class: \"ButtonContainer\" },\n h(\"a\", { class: \"ResetButton\", onClick: () => this.toggleResetSelection() }, translate('resetButton', this.language))),\n this.autoPick && !this.ticketDone &&\n h(\"div\", { class: \"ButtonContainer\" },\n h(\"a\", { class: \"AutoButton\", onClick: () => this.toggleAutoSelection() }, translate('autoButton', this.language))),\n this.grids.map((_, index) => h(\"div\", { class: \"TicketGridBullets\" },\n h(\"p\", { class: \"TicketGridTitle\" },\n translate('grid', this.language),\n \" \",\n index + 1),\n h(\"lottery-grid\", { \"grid-index\": index, \"maximum-allowed\": type.boards[index].maximumAllowed, \"minimum-allowed\": type.boards[index].minimumAllowed, \"total-numbers\": type.boards[index].highNumber - type.boards[index].lowNumber + 1, selectable: true, \"reset-button\": true, \"auto-pick\": true, \"game-id\": this.gameId, \"ticket-id\": this.ticketId, language: this.language, \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent }))),\n type.multiplier &&\n h(\"div\", null,\n h(\"label\", { class: \"Toggle\" },\n h(\"label\", { class: \"Label\" },\n translate('multiplier', this.language),\n \": \"),\n h(\"input\", { class: \"ToggleCheckbox\", type: \"checkbox\", onInput: (e) => this.multiplierChangeHandler(e) }),\n h(\"div\", { class: \"ToggleSwitch\" }))),\n this.multipleDraws &&\n h(\"div\", { class: \"TicketDraws\" },\n h(\"label\", { class: \"Label\" },\n translate('numberOfDraws', this.language),\n \": \"),\n h(\"div\", { class: \"NumberInput\" },\n h(\"button\", { onClick: () => this.numberOfDraws > 1 ? this.numberOfDraws-- : this.numberOfDraws = 1, class: \"Minus\" }, \"-\"),\n h(\"input\", { class: \"InputDefault\", min: \"1\", value: this.numberOfDraws, type: \"number\" }),\n h(\"button\", { onClick: () => this.numberOfDraws++, class: \"Plus\" }, \"+\"))),\n h(\"div\", null,\n h(\"label\", { class: \"Label\" },\n translate('wagerPerDraw', this.language),\n \": \"),\n h(\"div\", { class: \"WagerInput\" }, type.stakes.length > 1 ?\n (h(\"div\", { \"data-cluster\": \"SelectComponent\", class: this.isCustomSelect ? \"SelectWrapper SelectActive\" : \"SelectWrapper\" },\n h(\"div\", { \"data-cluster\": \"SelectComponent\", class: \"SelectButton\", onClick: () => this.toggleClass() },\n h(\"span\", { \"data-cluster\": \"SelectComponent\" },\n this.amountInfo.value,\n \" \",\n this.amountInfo.currency),\n h(\"span\", { \"data-cluster\": \"SelectComponent\", class: \"SelectExpand\" }, \"\\u25BC\")),\n h(\"div\", { \"data-cluster\": \"SelectComponent\", class: \"SelectContent\" },\n h(\"ul\", { \"data-cluster\": \"SelectComponent\", class: \"SelectOptions\" }, type.stakes.map((item) => h(\"li\", { \"data-cluster\": \"SelectComponent\", class: this.amountInfo.value == item.value ? 'SelectedValue' : '', value: item.value, onClick: () => this.setDropdownItem(item) },\n item.value,\n \" \",\n item.currency)))))) : (h(\"div\", null,\n h(\"input\", { min: \"1\", value: type.stakes[0].amount, type: \"number\", disabled: true }),\n h(\"p\", { class: \"WagerInputTitle\" }, type.stakes[0].currency)))))));\n }\n }\n }\n static get is() { return \"lottery-ticket\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"lottery-ticket.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"lottery-ticket.css\"]\n }; }\n static get properties() { return {\n \"endpoint\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"NorWAy endpoint\"\n },\n \"attribute\": \"endpoint\",\n \"reflect\": true\n },\n \"gameId\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Game ID\"\n },\n \"attribute\": \"game-id\",\n \"reflect\": true\n },\n \"numberOfGrids\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number of grids of a ticket\"\n },\n \"attribute\": \"number-of-grids\",\n \"reflect\": true,\n \"defaultValue\": \"1\"\n },\n \"multipleDraws\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Option to have the ticket registered for multiple draws\"\n },\n \"attribute\": \"multiple-draws\",\n \"reflect\": true,\n \"defaultValue\": \"true\"\n },\n \"ticketId\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Ticket ID\"\n },\n \"attribute\": \"ticket-id\",\n \"reflect\": true\n },\n \"resetButton\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Shows the reset button\"\n },\n \"attribute\": \"reset-button\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"autoPick\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Shows the auto-pick button\"\n },\n \"attribute\": \"auto-pick\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"language\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Language\"\n },\n \"attribute\": \"language\",\n \"reflect\": true,\n \"defaultValue\": \"'en'\"\n },\n \"clientStyling\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via string\"\n },\n \"attribute\": \"client-styling\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStylingUrlContent\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via url content\"\n },\n \"attribute\": \"client-styling-url-content\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n }\n }; }\n static get states() { return {\n \"multiplier\": {},\n \"numberOfDraws\": {},\n \"isLoading\": {},\n \"hasErrors\": {},\n \"ticketDone\": {},\n \"isCustomSelect\": {},\n \"amountInfo\": {},\n \"limitStylingAppends\": {}\n }; }\n static get events() { return [{\n \"method\": \"ticketCompleted\",\n \"name\": \"ticketCompleted\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"TODO\",\n \"text\": \"including ts type\"\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"autoSelection\",\n \"name\": \"autoSelection\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"resetSelection\",\n \"name\": \"resetSelection\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"stakeChange\",\n \"name\": \"stakeChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"multiplierChange\",\n \"name\": \"multiplierChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get watchers() { return [{\n \"propName\": \"numberOfDraws\",\n \"methodName\": \"drawsChangeHandler\"\n }]; }\n static get listeners() { return [{\n \"name\": \"click\",\n \"method\": \"checkForClickOutside\",\n \"target\": \"window\",\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"gridFilled\",\n \"method\": \"gridFilledHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"],"version":3}
|
|
1
|
+
{"file":"lottery-ticket2.js","mappings":";;;;AAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC/C,MAAM,YAAY,GAAG;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,OAAO,EAAE,0BAA0B;AACvC,IAAI,KAAK,EAAE,gDAAgD;AAC3D,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,UAAU,EAAE,YAAY;AAC5B,IAAI,aAAa,EAAE,iBAAiB;AACpC,IAAI,YAAY,EAAE,gBAAgB;AAClC,IAAI,WAAW,EAAE,OAAO;AACxB,IAAI,UAAU,EAAE,cAAc;AAC9B,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,OAAO,EAAE,oCAAoC;AACjD,IAAI,KAAK,EAAE,4CAA4C;AACvD,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,UAAU,EAAE,eAAe;AAC/B,IAAI,aAAa,EAAE,sBAAsB;AACzC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EAAE,iBAAiB,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,cAAc,EAAE,iBAAiB,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,eAAe,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,EAC7Q,IAAI,CAAC,KAAK,EACV,GAAG,EACH,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,IAAI,EAC1C,CAAC,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EACtF,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;OAC3E;KACF;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../lottery-ticket/dist/collection/utils/locale.utils.js","../lottery-ticket/dist/collection/components/lottery-ticket/lottery-ticket.css?tag=lottery-ticket&encapsulation=shadow","../lottery-ticket/dist/collection/components/lottery-ticket/lottery-ticket.js"],"sourcesContent":["const DEFAULT_LANGUAGE = 'en';\nconst SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];\nconst TRANSLATIONS = {\n en: {\n loading: 'Loading, please wait ...',\n error: 'It was an error while trying to fetch the data',\n grid: 'Grid',\n multiplier: 'Multiplier',\n numberOfDraws: 'Number of draws',\n wagerPerDraw: 'Wager per draw',\n resetButton: 'Reset',\n autoButton: 'I feel lucky'\n },\n ro: {\n loading: 'Se incarca, va rugam asteptati ...',\n error: 'A fost o eroare in timp ce asteptam datele',\n grid: 'Grid',\n multiplier: 'Multiplicator',\n numberOfDraws: 'Numarul de extrageri',\n wagerPerDraw: 'Pariul per extragere',\n resetButton: 'Reseteaza',\n autoButton: 'Ma simt norocos'\n },\n fr: {\n loading: 'Loading, please wait ...',\n error: 'It was an error while trying to fetch the data',\n grid: 'Grid',\n multiplier: 'Multiplier',\n numberOfDraws: 'Number of draws',\n wagerPerDraw: 'Wager per draw',\n resetButton: 'Reset',\n autoButton: 'I feel lucky'\n },\n ar: {\n loading: 'Loading, please wait ...',\n error: 'It was an error while trying to fetch the data',\n grid: 'Grid',\n multiplier: 'Multiplier',\n numberOfDraws: 'Number of draws',\n wagerPerDraw: 'Wager per draw',\n resetButton: 'Reset',\n autoButton: 'I feel lucky'\n },\n hr: {\n loading: 'Učitavanje, molimo pričekajte ...',\n error: 'Došlo je do pogreške prilikom pokušaja dohvaćanja podataka',\n grid: 'Tablica',\n multiplier: 'Multiplikator',\n numberOfDraws: 'Broj izvlačenja',\n wagerPerDraw: 'Ulog po izvlačenju',\n resetButton: 'Resetiraj',\n autoButton: 'Osjećam se sretno'\n }\n};\nexport const translate = (key, customLang) => {\n const lang = customLang;\n return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];\n};\n","@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");\n:host {\n display: block;\n font-family: \"Roboto\", sans-serif;\n}\n\n.TicketTitle {\n font-size: 16px;\n font-weight: bold;\n}\n\n.ButtonContainer {\n display: flex;\n justify-content: flex-end;\n}\n\n.Toggle {\n cursor: pointer;\n margin-top: 20px;\n display: inline-block;\n}\n\n.ToggleSwitch {\n display: inline-block;\n background: #707070;\n border-radius: 16px;\n width: 58px;\n height: 24px;\n position: relative;\n vertical-align: middle;\n transition: background 0.25s;\n}\n.ToggleSwitch:before, .ToggleSwitch:after {\n content: \"\";\n}\n.ToggleSwitch:before {\n display: block;\n background: linear-gradient(to bottom, #fff 0%, #F1F1F1 100%);\n border-radius: 50%;\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);\n width: 16px;\n height: 16px;\n position: absolute;\n top: 4px;\n left: 4px;\n transition: left 0.25s;\n}\n\n.Toggle:hover .ToggleSwitch:before {\n background: linear-gradient(to bottom, #fff 0%, #fff 100%);\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);\n}\n\n.ToggleCheckbox:checked + .ToggleSwitch {\n background: #00ABA4;\n}\n\n.ToggleCheckbox:checked + .ToggleSwitch:before {\n left: 38px;\n}\n\n.ToggleCheckbox {\n position: absolute;\n visibility: hidden;\n}\n\n.Label {\n margin-right: 5px;\n position: relative;\n top: 2px;\n font-size: 14px;\n font-weight: lighter;\n color: #000;\n}\n\ninput[type=number] {\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n\ninput[type=number]::-webkit-inner-spin-button,\ninput[type=number]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n}\n\n.NumberInput,\n.WagerInput {\n margin-top: 10px;\n display: inline-flex;\n align-items: center;\n}\n\n.NumberInput,\n.NumberInput * {\n box-sizing: border-box;\n}\n\n.NumberInput button {\n cursor: pointer;\n outline: none;\n -webkit-appearance: none;\n border: none;\n align-items: center;\n justify-content: center;\n height: 20px;\n position: relative;\n}\n\n.NumberInput button:after {\n display: inline-block;\n position: absolute;\n transform: translate(-50%, -50%) rotate(180deg);\n align-items: center;\n text-align: center;\n}\n\n.NumberInput button.Plus:after {\n transform: translate(-50%, -50%) rotate(0deg);\n width: 30px;\n display: inline-flex;\n align-items: center;\n text-align: center;\n}\n\n.NumberInput input[type=number],\n.WagerInput input[type=number] {\n max-width: 50px;\n display: inline-flex;\n align-items: center;\n padding: 4px 10px;\n text-align: center;\n}\n.NumberInput input[type=number] .WagerInputTitle,\n.WagerInput input[type=number] .WagerInputTitle {\n font-size: 14px;\n color: #000;\n padding: 10px;\n}\n\n.InputDefault {\n background-color: #F1F1F1;\n border-radius: 4px;\n padding: 5px;\n border: solid 1px #D4D4D4;\n color: #707070;\n}\n\n.AutoButton {\n cursor: pointer;\n display: inline-block;\n border-radius: 4px;\n padding: 8px 20px;\n width: max-content;\n margin: 5px 0;\n border: 1px solid #00958f;\n background: #FFF;\n color: #000;\n font-size: 12px;\n transition: all 0.2s linear;\n text-transform: uppercase;\n text-align: center;\n letter-spacing: 0;\n}\n.AutoButton:active {\n background: #00958f;\n color: #FFF;\n}\n\n.ResetButton {\n cursor: pointer;\n display: inline-block;\n border-radius: 4px;\n padding: 8px 20px;\n width: max-content;\n margin: 5px 0;\n color: #000;\n font-size: 12px;\n transition: all 0.2s linear;\n text-transform: uppercase;\n text-align: center;\n letter-spacing: 0;\n background: #FF3D00;\n border: 1px solid #FF3D00;\n color: #FFF;\n}\n.ResetButton:hover {\n background: #FF6536;\n border: 1px solid #FF3D00;\n}\n\n.TicketGridBullets {\n background: #f1f1f1;\n border-radius: 4px;\n padding: 20px;\n margin-top: 5px;\n}\n.TicketGridBullets .TicketGridTitle {\n margin-top: 0px;\n}\n\n.Minus {\n border-radius: 4px;\n width: 30px;\n height: 24px !important;\n margin-right: 10px;\n color: #FFF;\n background: #009993;\n}\n\n.Plus {\n border-radius: 4px;\n width: 30px;\n height: 24px !important;\n margin-left: 10px;\n color: #FFF;\n background: #009993;\n}\n\n.SelectWrapper {\n width: auto;\n padding: 5px;\n margin: 0 auto;\n border: 1px solid #ccc;\n border-radius: 5px;\n position: relative;\n}\n\n.SelectButton, .SelectOptions li {\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n\n.SelectButton {\n display: flex;\n padding: 0 5px;\n border-radius: 7px;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n}\n.SelectButton span:first-child {\n padding-right: 10px;\n}\n\n.SelectExpand {\n transition: transform 0.3s linear;\n font-size: 12px;\n}\n\n.SelectActive .SelectExpand {\n transform: rotate(180deg);\n}\n\n.SelectContent {\n display: none;\n padding: 5px;\n border-radius: 7px;\n}\n\n.SelectWrapper.SelectActive .SelectContent {\n width: 100%;\n display: block;\n position: absolute;\n left: 0;\n top: 32px;\n padding: 0;\n border: 1px solid #ccc;\n overflow: hidden;\n background: #fff;\n}\n\n.SelectContent .SelectOptions {\n max-height: 100px;\n margin: 0;\n overflow-y: auto;\n padding: 0;\n}\n.SelectContent .SelectOptions .SelectedValue {\n background-color: #009993;\n color: #fff;\n}\n\n.SelectOptions::-webkit-scrollbar {\n width: 7px;\n}\n\n.SelectOptions::-webkit-scrollbar-track {\n background: #f1f1f1;\n border-radius: 25px;\n}\n\n.SelectOptions::-webkit-scrollbar-thumb {\n background: #ccc;\n border-radius: 25px;\n}\n\n.SelectOptions li {\n height: 20px;\n padding: 0 13px;\n font-size: 14px;\n}\n\n.SelectOptions li:hover {\n background: #f2f2f2;\n}","import { Component, h, Prop, State, Event, Listen, Watch } from '@stencil/core';\nimport { translate } from '../../utils/locale.utils';\nimport '@everymatrix/lottery-grid';\nexport class LotteryTicket {\n constructor() {\n /**\n * Number of grids of a ticket\n */\n this.numberOfGrids = 1;\n /**\n * Option to have the ticket registered for multiple draws\n */\n this.multipleDraws = true;\n /**\n * Shows the reset button\n */\n this.resetButton = false;\n /**\n * Shows the auto-pick button\n */\n this.autoPick = false;\n /**\n * Language\n */\n this.language = 'en';\n /**\n * Client custom styling via string\n */\n this.clientStyling = '';\n /**\n * Client custom styling via url content\n */\n this.clientStylingUrlContent = '';\n this.multiplier = false;\n this.numberOfDraws = 1;\n this.isLoading = true;\n this.hasErrors = false;\n this.ticketDone = false;\n this.isCustomSelect = false;\n this.amountInfo = {};\n this.limitStylingAppends = false;\n this.setClientStyling = () => {\n let sheet = document.createElement('style');\n sheet.innerHTML = this.clientStyling;\n this.stylingContainer.prepend(sheet);\n };\n this.setClientStylingURL = () => {\n let cssFile = document.createElement('style');\n setTimeout(() => {\n cssFile.innerHTML = this.clientStylingUrlContent;\n this.stylingContainer.prepend(cssFile);\n }, 1);\n };\n }\n /**\n * @TODO find a better way to implement click outside the custom select, so that we don't have to use the 'data-cluster' attribute on each element\n */\n checkForClickOutside(ev) {\n if (ev.composedPath()[0].getAttribute('data-cluster') !== 'SelectComponent') {\n this.isCustomSelect = false;\n }\n }\n connectedCallback() {\n let url = new URL(`${this.endpoint}/games/${this.gameId}`);\n fetch(url.href)\n .then((response) => {\n if (response.ok) {\n return response.json();\n }\n else {\n // Throw error\n this.hasErrors = true;\n }\n })\n .then((data) => {\n this.isLoading = false;\n this.gameData = data;\n this.grids = [...Array(this.gameData.type.boards.length).keys()];\n this.amountInfo = this.gameData.type.stakes[0]; // initial value for select\n })\n .catch((err) => {\n this.isLoading = false;\n this.hasErrors = true;\n console.error('Error!', err);\n });\n }\n componentDidRender() {\n // start custom styling area\n if (!this.limitStylingAppends && this.stylingContainer) {\n if (this.clientStyling)\n this.setClientStyling();\n if (this.clientStylingUrlContent)\n this.setClientStylingURL();\n this.limitStylingAppends = true;\n }\n // end custom styling area\n }\n multiplierChangeHandler(e) {\n this.multiplier = e.target ? e.target.checked : false;\n this.multiplierChange.emit(this.multiplier);\n }\n drawsChangeHandler(event) {\n this.ticket = Object.assign(Object.assign({}, this.ticket), { draws: event });\n this.ticketCompleted.emit(this.ticket);\n }\n gridFilledHandler(event) {\n this.ticket = Object.assign(Object.assign({}, event.detail), { draws: this.numberOfDraws });\n this.ticketDone = true;\n this.ticketCompleted.emit(this.ticket);\n }\n toggleAutoSelection() {\n this.ticketDone = true;\n this.autoSelection.emit(this.ticketId);\n }\n toggleResetSelection() {\n this.ticketDone = false;\n this.resetSelection.emit(this.ticketId);\n }\n changeStake(ticketid, amount) {\n this.stakeChange.emit({\n ticketId: ticketid,\n stake: amount\n });\n }\n toggleClass() {\n this.isCustomSelect = !this.isCustomSelect;\n }\n setDropdownItem(item) {\n this.amountInfo = {\n value: item.value,\n currency: item.currency\n };\n this.isCustomSelect = false;\n this.changeStake(this.ticketId, item.amount);\n }\n render() {\n if (this.isLoading) {\n return (h(\"div\", null,\n h(\"p\", null, translate('loading', this.language))));\n }\n else {\n if (this.hasErrors) {\n return (h(\"div\", null,\n h(\"p\", null, translate('error', this.language))));\n }\n else {\n const { type } = this.gameData;\n return (h(\"div\", { class: \"TicketContainer\", ref: el => this.stylingContainer = el },\n h(\"p\", { class: \"TicketTitle\" }, this.gameData.name),\n this.resetButton && this.ticketDone &&\n h(\"div\", { class: \"ButtonContainer\" },\n h(\"a\", { class: \"ResetButton\", onClick: () => this.toggleResetSelection() }, translate('resetButton', this.language))),\n this.autoPick && !this.ticketDone &&\n h(\"div\", { class: \"ButtonContainer\" },\n h(\"a\", { class: \"AutoButton\", onClick: () => this.toggleAutoSelection() }, translate('autoButton', this.language))),\n this.grids.map((_, index) => h(\"div\", { class: \"TicketGridBullets\" },\n h(\"p\", { class: \"TicketGridTitle\" },\n translate('grid', this.language),\n \" \",\n index + 1),\n h(\"lottery-grid\", { \"grid-index\": index, \"maximum-allowed\": type.boards[index].maximumAllowed, \"minimum-allowed\": type.boards[index].minimumAllowed, \"total-numbers\": type.boards[index].highNumber - type.boards[index].lowNumber + 1, selectable: true, \"reset-button\": true, \"auto-pick\": true, \"game-id\": this.gameId, \"ticket-id\": this.ticketId, language: this.language, \"client-styling\": this.clientStyling, \"client-styling-url-content\": this.clientStylingUrlContent }))),\n type.multiplier &&\n h(\"div\", null,\n h(\"label\", { class: \"Toggle\" },\n h(\"label\", { class: \"Label\" },\n translate('multiplier', this.language),\n \": \"),\n h(\"input\", { class: \"ToggleCheckbox\", type: \"checkbox\", onInput: (e) => this.multiplierChangeHandler(e) }),\n h(\"div\", { class: \"ToggleSwitch\" }))),\n this.multipleDraws &&\n h(\"div\", { class: \"TicketDraws\" },\n h(\"label\", { class: \"Label\" },\n translate('numberOfDraws', this.language),\n \": \"),\n h(\"div\", { class: \"NumberInput\" },\n h(\"button\", { onClick: () => this.numberOfDraws > 1 ? this.numberOfDraws-- : this.numberOfDraws = 1, class: \"Minus\" }, \"-\"),\n h(\"input\", { class: \"InputDefault\", min: \"1\", value: this.numberOfDraws, type: \"number\" }),\n h(\"button\", { onClick: () => this.numberOfDraws++, class: \"Plus\" }, \"+\"))),\n h(\"div\", null,\n h(\"label\", { class: \"Label\" },\n translate('wagerPerDraw', this.language),\n \": \"),\n h(\"div\", { class: \"WagerInput\" }, type.stakes.length > 1 ?\n (h(\"div\", { \"data-cluster\": \"SelectComponent\", class: this.isCustomSelect ? \"SelectWrapper SelectActive\" : \"SelectWrapper\" },\n h(\"div\", { \"data-cluster\": \"SelectComponent\", class: \"SelectButton\", onClick: () => this.toggleClass() },\n h(\"span\", { \"data-cluster\": \"SelectComponent\" },\n this.amountInfo.value,\n \" \",\n this.amountInfo.currency),\n h(\"span\", { \"data-cluster\": \"SelectComponent\", class: \"SelectExpand\" }, \"\\u25BC\")),\n h(\"div\", { \"data-cluster\": \"SelectComponent\", class: \"SelectContent\" },\n h(\"ul\", { \"data-cluster\": \"SelectComponent\", class: \"SelectOptions\" }, type.stakes.map((item) => h(\"li\", { \"data-cluster\": \"SelectComponent\", class: this.amountInfo.value == item.value ? 'SelectedValue' : '', value: item.value, onClick: () => this.setDropdownItem(item) },\n item.value,\n \" \",\n item.currency)))))) : (h(\"div\", null,\n h(\"input\", { min: \"1\", value: type.stakes[0].amount, type: \"number\", disabled: true }),\n h(\"p\", { class: \"WagerInputTitle\" }, type.stakes[0].currency)))))));\n }\n }\n }\n static get is() { return \"lottery-ticket\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"lottery-ticket.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"lottery-ticket.css\"]\n }; }\n static get properties() { return {\n \"endpoint\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"NorWAy endpoint\"\n },\n \"attribute\": \"endpoint\",\n \"reflect\": true\n },\n \"gameId\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Game ID\"\n },\n \"attribute\": \"game-id\",\n \"reflect\": true\n },\n \"numberOfGrids\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Number of grids of a ticket\"\n },\n \"attribute\": \"number-of-grids\",\n \"reflect\": true,\n \"defaultValue\": \"1\"\n },\n \"multipleDraws\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Option to have the ticket registered for multiple draws\"\n },\n \"attribute\": \"multiple-draws\",\n \"reflect\": true,\n \"defaultValue\": \"true\"\n },\n \"ticketId\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Ticket ID\"\n },\n \"attribute\": \"ticket-id\",\n \"reflect\": true\n },\n \"resetButton\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Shows the reset button\"\n },\n \"attribute\": \"reset-button\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"autoPick\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Shows the auto-pick button\"\n },\n \"attribute\": \"auto-pick\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"language\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Language\"\n },\n \"attribute\": \"language\",\n \"reflect\": true,\n \"defaultValue\": \"'en'\"\n },\n \"clientStyling\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via string\"\n },\n \"attribute\": \"client-styling\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStylingUrlContent\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via url content\"\n },\n \"attribute\": \"client-styling-url-content\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n }\n }; }\n static get states() { return {\n \"multiplier\": {},\n \"numberOfDraws\": {},\n \"isLoading\": {},\n \"hasErrors\": {},\n \"ticketDone\": {},\n \"isCustomSelect\": {},\n \"amountInfo\": {},\n \"limitStylingAppends\": {}\n }; }\n static get events() { return [{\n \"method\": \"ticketCompleted\",\n \"name\": \"ticketCompleted\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"TODO\",\n \"text\": \"including ts type\"\n }],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"autoSelection\",\n \"name\": \"autoSelection\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"resetSelection\",\n \"name\": \"resetSelection\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"stakeChange\",\n \"name\": \"stakeChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"multiplierChange\",\n \"name\": \"multiplierChange\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n static get watchers() { return [{\n \"propName\": \"numberOfDraws\",\n \"methodName\": \"drawsChangeHandler\"\n }]; }\n static get listeners() { return [{\n \"name\": \"click\",\n \"method\": \"checkForClickOutside\",\n \"target\": \"window\",\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"gridFilled\",\n \"method\": \"gridFilledHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }]; }\n}\n"],"version":3}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-d1baacd4.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en'];
|
|
4
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
|
|
5
5
|
const TRANSLATIONS = {
|
|
6
6
|
en: {
|
|
7
7
|
deleteTicket: 'Delete ticket'
|
|
@@ -14,6 +14,9 @@ const TRANSLATIONS = {
|
|
|
14
14
|
},
|
|
15
15
|
ar: {
|
|
16
16
|
deleteTicket: 'حذف التذكرة'
|
|
17
|
+
},
|
|
18
|
+
hr: {
|
|
19
|
+
deleteTicket: 'Izbriši listić'
|
|
17
20
|
}
|
|
18
21
|
};
|
|
19
22
|
const translate = (key, customLang) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"helper-accordion.entry.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACzC,MAAM,YAAY,GAAG;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,YAAY,EAAE,eAAe;AACjC,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,YAAY,EAAE,gBAAgB;AAClC,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,YAAY,EAAE,qBAAqB;AACvC,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,YAAY,EAAE,aAAa;AAC/B,GAAG;AACH,CAAC,CAAC;AACK,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,UAAU,KAAK;AAC9C,EAAE,MAAM,IAAI,GAAG,UAAU,CAAC;AAC1B,EAAE,OAAO,YAAY,CAAC,IAAI,KAAK,SAAS,IAAI,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC;AAC/G,CAAC;;ACnBD,MAAM,kBAAkB,GAAG,uhDAAuhD;;MCEriD,SAAS;EACpB;;;;;;IAIE,IAAI,CAAC,iBAAiB,GA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EAC/D,IAAI,CAAC,WAAW;MACd,CAAC,CAAC,KAAK,EAAE,IAAI,EACX,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAC3B,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,EACvC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW;QAC7B,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS;UAC3B,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,SAAS,CAAC,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;GACrI;;;;;;","names":[],"sources":["../helper-accordion/dist/collection/utils/locale.utils.js","../helper-accordion/dist/collection/components/helper-accordion/helper-accordion.css?tag=helper-accordion&encapsulation=shadow","../helper-accordion/dist/collection/components/helper-accordion/helper-accordion.js"],"sourcesContent":["const DEFAULT_LANGUAGE = 'en';\nconst SUPPORTED_LANGUAGES = ['ro', 'en'];\nconst TRANSLATIONS = {\n en: {\n deleteTicket: 'Delete ticket'\n },\n ro: {\n deleteTicket: 'Sterge biletul'\n },\n fr: {\n deleteTicket: 'Supprimer le billet'\n },\n ar: {\n deleteTicket: 'حذف التذكرة'\n }\n};\nexport const translate = (key, customLang) => {\n const lang = customLang;\n return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];\n};\n","@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");\n:host {\n display: block;\n font-family: \"Roboto\", sans-serif;\n}\n\n.Header {\n border-radius: 5px;\n background: #009993;\n display: flex;\n gap: 30px;\n border: 1px solid #009993;\n padding: 8px 10px;\n user-select: none;\n margin-bottom: 1px;\n cursor: pointer;\n}\n.Header:hover {\n background: #00ABA4;\n}\n.Header .Title,\n.Header .Subtitle,\n.Header .Description {\n margin: 0;\n font-size: 14px;\n color: #fff;\n text-transform: capitalize;\n}\n.Header .Expand {\n margin-left: auto;\n color: #FFF;\n width: 17px;\n height: 17px;\n cursor: pointer;\n text-align: center;\n transform: rotate(90deg);\n font-size: 20px;\n user-select: none;\n}\n\n.HeaderTicketHistory {\n border-radius: 4px;\n background: #F1F1F1;\n display: flex;\n gap: 30px;\n border: 1px solid #009993;\n padding: 8px 10px;\n user-select: none;\n margin-bottom: 5px;\n cursor: pointer;\n}\n.HeaderTicketHistory:hover {\n background: #00ABA4;\n}\n.HeaderTicketHistory .Title,\n.HeaderTicketHistory .Subtitle,\n.HeaderTicketHistory .Description {\n margin: 0;\n font-size: 14px;\n color: #000;\n}\n.HeaderTicketHistory .Expand {\n margin-left: auto;\n color: #FFF;\n width: 17px;\n height: 17px;\n cursor: pointer;\n text-align: center;\n transform: rotate(90deg);\n font-size: 20px;\n user-select: none;\n}\n\n.Content {\n border-radius: 0 0 4px 4px;\n background: #fff;\n border: 1px solid #009993;\n padding: 10px 15px;\n user-select: none;\n color: #000;\n margin-bottom: 10px;\n}\n\n.ActionButton {\n cursor: pointer;\n display: inline-block;\n border-radius: 4px;\n margin: 20px 0 10px;\n text-transform: uppercase;\n font-size: 12px;\n text-align: center;\n padding: 8px 20px;\n min-width: 80px;\n background: #FF3D00;\n border: 1px solid #FF3D00;\n color: #FFF;\n}\n.ActionButton:hover {\n background: #FF6536;\n border: 1px solid #FF3D00;\n}","import { Component, Prop, h, State, Event } from '@stencil/core';\nimport { translate } from '../../utils/locale.utils';\nexport class Accordion {\n constructor() {\n /**\n * Flag for ticket history\n */\n this.ticketHistoryFlag = false;\n /**\n * Title (top header)\n */\n this.headerTitle = '';\n /**\n * SubTitle (top header)\n */\n this.headerSubtitle = '';\n /**\n * Description\n */\n this.description = '';\n /**\n * Enables footer content\n */\n this.footer = false;\n /**\n * Enables footer button for tab deletion\n */\n this.deleteTab = false;\n /**\n * Activates postMessages as events for actions from the widget\n */\n this.postMessage = false;\n /**\n * Name of the event emitter by the action button\n */\n this.eventName = 'helperAccordionAction';\n /**\n * Collapsed\n */\n this.collapsed = true;\n /**\n * Language\n */\n this.language = 'en';\n /**\n * Client custom styling via string\n */\n this.clientStyling = '';\n /**\n * Client custom styling via url content\n */\n this.clientStylingUrlContent = '';\n this.limitStylingAppends = false;\n this.setClientStyling = () => {\n let sheet = document.createElement('style');\n sheet.innerHTML = this.clientStyling;\n this.stylingContainer.prepend(sheet);\n };\n this.setClientStylingURL = () => {\n let cssFile = document.createElement('style');\n setTimeout(() => {\n cssFile.innerHTML = this.clientStylingUrlContent;\n this.stylingContainer.prepend(cssFile);\n }, 1);\n };\n }\n // @TODO fix the `any` type :)\n connectedCallback() {\n this.showContent = !this.collapsed;\n }\n componentDidRender() {\n // start custom styling area\n if (!this.limitStylingAppends && this.stylingContainer) {\n if (this.clientStyling)\n this.setClientStyling();\n if (this.clientStylingUrlContent)\n this.setClientStylingURL();\n this.limitStylingAppends = true;\n }\n // end custom styling area\n }\n toggleContent() {\n this.showContent = !this.showContent;\n }\n deleteAction() {\n if (this.postMessage) {\n // @TODO maybe change the name type, this one sucks\n window.postMessage({ type: this.eventName }, window.location.href);\n }\n this.accordionEvent.emit();\n }\n render() {\n return (h(\"div\", { class: \"Wrapper\", ref: el => this.stylingContainer = el },\n h(\"div\", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header', onClick: () => this.toggleContent() },\n h(\"p\", { class: \"Title\" }, this.headerTitle),\n h(\"p\", { class: \"Subtitle\" }, this.headerSubtitle),\n h(\"p\", { class: \"Subtitle Description\" }, this.description),\n h(\"span\", { class: \"Expand\" }, this.showContent ? '<' : '>')),\n this.showContent &&\n h(\"div\", null,\n h(\"div\", { class: \"Content\" },\n h(\"slot\", { name: 'accordionContent' }),\n this.footer && this.showContent &&\n h(\"div\", null, this.deleteTab &&\n h(\"span\", { class: \"ActionButton\", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));\n }\n static get is() { return \"helper-accordion\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"helper-accordion.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"helper-accordion.css\"]\n }; }\n static get properties() { return {\n \"ticketHistoryFlag\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Flag for ticket history\"\n },\n \"attribute\": \"ticket-history-flag\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"headerTitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Title (top header)\"\n },\n \"attribute\": \"header-title\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"headerSubtitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"SubTitle (top header)\"\n },\n \"attribute\": \"header-subtitle\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"description\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Description\"\n },\n \"attribute\": \"description\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"footer\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Enables footer content\"\n },\n \"attribute\": \"footer\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"deleteTab\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Enables footer button for tab deletion\"\n },\n \"attribute\": \"delete-tab\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"postMessage\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Activates postMessages as events for actions from the widget\"\n },\n \"attribute\": \"post-message\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"eventName\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Name of the event emitter by the action button\"\n },\n \"attribute\": \"event-name\",\n \"reflect\": true,\n \"defaultValue\": \"'helperAccordionAction'\"\n },\n \"collapsed\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Collapsed\"\n },\n \"attribute\": \"collapsed\",\n \"reflect\": true,\n \"defaultValue\": \"true\"\n },\n \"language\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Language\"\n },\n \"attribute\": \"language\",\n \"reflect\": true,\n \"defaultValue\": \"'en'\"\n },\n \"clientStyling\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via string\"\n },\n \"attribute\": \"client-styling\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStylingUrlContent\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via url content\"\n },\n \"attribute\": \"client-styling-url-content\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n }\n }; }\n static get states() { return {\n \"showContent\": {},\n \"limitStylingAppends\": {}\n }; }\n static get events() { return [{\n \"method\": \"accordionEvent\",\n \"name\": \"helperAccordionAction\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Action event\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n}\n"],"version":3}
|
|
1
|
+
{"file":"helper-accordion.entry.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC/C,MAAM,YAAY,GAAG;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,YAAY,EAAE,eAAe;AACjC,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,YAAY,EAAE,gBAAgB;AAClC,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,YAAY,EAAE,qBAAqB;AACvC,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,YAAY,EAAE,aAAa;AAC/B,GAAG;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EAAE,MAAM,IAAI,CAAC,aAAa,EAAE,EAAE,EACzH,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,EAC5C,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,IAAI,CAAC,cAAc,CAAC,EAClD,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,EAC3D,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,WAAW,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,EAC/D,IAAI,CAAC,WAAW;MACd,CAAC,CAAC,KAAK,EAAE,IAAI,EACX,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAC3B,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,EACvC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW;QAC7B,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS;UAC3B,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,SAAS,CAAC,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;GACrI;;;;;;","names":[],"sources":["../helper-accordion/dist/collection/utils/locale.utils.js","../helper-accordion/dist/collection/components/helper-accordion/helper-accordion.css?tag=helper-accordion&encapsulation=shadow","../helper-accordion/dist/collection/components/helper-accordion/helper-accordion.js"],"sourcesContent":["const DEFAULT_LANGUAGE = 'en';\nconst SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];\nconst TRANSLATIONS = {\n en: {\n deleteTicket: 'Delete ticket'\n },\n ro: {\n deleteTicket: 'Sterge biletul'\n },\n fr: {\n deleteTicket: 'Supprimer le billet'\n },\n ar: {\n deleteTicket: 'حذف التذكرة'\n },\n hr: {\n deleteTicket: 'Izbriši listić'\n }\n};\nexport const translate = (key, customLang) => {\n const lang = customLang;\n return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];\n};\n","@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");\n:host {\n display: block;\n font-family: \"Roboto\", sans-serif;\n}\n\n.Header {\n border-radius: 5px;\n background: #009993;\n display: flex;\n gap: 30px;\n border: 1px solid #009993;\n padding: 8px 10px;\n user-select: none;\n margin-bottom: 1px;\n cursor: pointer;\n}\n.Header:hover {\n background: #00ABA4;\n}\n.Header .Title,\n.Header .Subtitle,\n.Header .Description {\n margin: 0;\n font-size: 14px;\n color: #fff;\n text-transform: capitalize;\n}\n.Header .Expand {\n margin-left: auto;\n color: #FFF;\n width: 17px;\n height: 17px;\n cursor: pointer;\n text-align: center;\n transform: rotate(90deg);\n font-size: 20px;\n user-select: none;\n}\n\n.HeaderTicketHistory {\n border-radius: 4px;\n background: #F1F1F1;\n display: flex;\n gap: 30px;\n border: 1px solid #009993;\n padding: 8px 10px;\n user-select: none;\n margin-bottom: 5px;\n cursor: pointer;\n}\n.HeaderTicketHistory:hover {\n background: #00ABA4;\n}\n.HeaderTicketHistory .Title,\n.HeaderTicketHistory .Subtitle,\n.HeaderTicketHistory .Description {\n margin: 0;\n font-size: 14px;\n color: #000;\n}\n.HeaderTicketHistory .Expand {\n margin-left: auto;\n color: #FFF;\n width: 17px;\n height: 17px;\n cursor: pointer;\n text-align: center;\n transform: rotate(90deg);\n font-size: 20px;\n user-select: none;\n}\n\n.Content {\n border-radius: 0 0 4px 4px;\n background: #fff;\n border: 1px solid #009993;\n padding: 10px 15px;\n user-select: none;\n color: #000;\n margin-bottom: 10px;\n}\n\n.ActionButton {\n cursor: pointer;\n display: inline-block;\n border-radius: 4px;\n margin: 20px 0 10px;\n text-transform: uppercase;\n font-size: 12px;\n text-align: center;\n padding: 8px 20px;\n min-width: 80px;\n background: #FF3D00;\n border: 1px solid #FF3D00;\n color: #FFF;\n}\n.ActionButton:hover {\n background: #FF6536;\n border: 1px solid #FF3D00;\n}","import { Component, Prop, h, State, Event } from '@stencil/core';\nimport { translate } from '../../utils/locale.utils';\nexport class Accordion {\n constructor() {\n /**\n * Flag for ticket history\n */\n this.ticketHistoryFlag = false;\n /**\n * Title (top header)\n */\n this.headerTitle = '';\n /**\n * SubTitle (top header)\n */\n this.headerSubtitle = '';\n /**\n * Description\n */\n this.description = '';\n /**\n * Enables footer content\n */\n this.footer = false;\n /**\n * Enables footer button for tab deletion\n */\n this.deleteTab = false;\n /**\n * Activates postMessages as events for actions from the widget\n */\n this.postMessage = false;\n /**\n * Name of the event emitter by the action button\n */\n this.eventName = 'helperAccordionAction';\n /**\n * Collapsed\n */\n this.collapsed = true;\n /**\n * Language\n */\n this.language = 'en';\n /**\n * Client custom styling via string\n */\n this.clientStyling = '';\n /**\n * Client custom styling via url content\n */\n this.clientStylingUrlContent = '';\n this.limitStylingAppends = false;\n this.setClientStyling = () => {\n let sheet = document.createElement('style');\n sheet.innerHTML = this.clientStyling;\n this.stylingContainer.prepend(sheet);\n };\n this.setClientStylingURL = () => {\n let cssFile = document.createElement('style');\n setTimeout(() => {\n cssFile.innerHTML = this.clientStylingUrlContent;\n this.stylingContainer.prepend(cssFile);\n }, 1);\n };\n }\n // @TODO fix the `any` type :)\n connectedCallback() {\n this.showContent = !this.collapsed;\n }\n componentDidRender() {\n // start custom styling area\n if (!this.limitStylingAppends && this.stylingContainer) {\n if (this.clientStyling)\n this.setClientStyling();\n if (this.clientStylingUrlContent)\n this.setClientStylingURL();\n this.limitStylingAppends = true;\n }\n // end custom styling area\n }\n toggleContent() {\n this.showContent = !this.showContent;\n }\n deleteAction() {\n if (this.postMessage) {\n // @TODO maybe change the name type, this one sucks\n window.postMessage({ type: this.eventName }, window.location.href);\n }\n this.accordionEvent.emit();\n }\n render() {\n return (h(\"div\", { class: \"Wrapper\", ref: el => this.stylingContainer = el },\n h(\"div\", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header', onClick: () => this.toggleContent() },\n h(\"p\", { class: \"Title\" }, this.headerTitle),\n h(\"p\", { class: \"Subtitle\" }, this.headerSubtitle),\n h(\"p\", { class: \"Subtitle Description\" }, this.description),\n h(\"span\", { class: \"Expand\" }, this.showContent ? '<' : '>')),\n this.showContent &&\n h(\"div\", null,\n h(\"div\", { class: \"Content\" },\n h(\"slot\", { name: 'accordionContent' }),\n this.footer && this.showContent &&\n h(\"div\", null, this.deleteTab &&\n h(\"span\", { class: \"ActionButton\", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));\n }\n static get is() { return \"helper-accordion\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"helper-accordion.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"helper-accordion.css\"]\n }; }\n static get properties() { return {\n \"ticketHistoryFlag\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Flag for ticket history\"\n },\n \"attribute\": \"ticket-history-flag\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"headerTitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Title (top header)\"\n },\n \"attribute\": \"header-title\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"headerSubtitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"SubTitle (top header)\"\n },\n \"attribute\": \"header-subtitle\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"description\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Description\"\n },\n \"attribute\": \"description\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"footer\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Enables footer content\"\n },\n \"attribute\": \"footer\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"deleteTab\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Enables footer button for tab deletion\"\n },\n \"attribute\": \"delete-tab\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"postMessage\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Activates postMessages as events for actions from the widget\"\n },\n \"attribute\": \"post-message\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"eventName\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Name of the event emitter by the action button\"\n },\n \"attribute\": \"event-name\",\n \"reflect\": true,\n \"defaultValue\": \"'helperAccordionAction'\"\n },\n \"collapsed\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Collapsed\"\n },\n \"attribute\": \"collapsed\",\n \"reflect\": true,\n \"defaultValue\": \"true\"\n },\n \"language\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Language\"\n },\n \"attribute\": \"language\",\n \"reflect\": true,\n \"defaultValue\": \"'en'\"\n },\n \"clientStyling\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via string\"\n },\n \"attribute\": \"client-styling\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n },\n \"clientStylingUrlContent\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Client custom styling via url content\"\n },\n \"attribute\": \"client-styling-url-content\",\n \"reflect\": true,\n \"defaultValue\": \"''\"\n }\n }; }\n static get states() { return {\n \"showContent\": {},\n \"limitStylingAppends\": {}\n }; }\n static get events() { return [{\n \"method\": \"accordionEvent\",\n \"name\": \"helperAccordionAction\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Action event\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n}\n"],"version":3}
|