@everymatrix/lottery-tipping-ticket-buy 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/app-tooltip_11.cjs.entry.js +3998 -0
- package/dist/cjs/index-8a0b513b.js +1364 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/lottery-tipping-ticket-buy-164a217a.js +7953 -0
- package/dist/cjs/lottery-tipping-ticket-buy.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +63 -0
- package/dist/collection/components/lottery-segmented/lottery-segmented.css +52 -0
- package/dist/collection/components/lottery-segmented/lottery-segmented.js +151 -0
- package/dist/collection/components/lottery-tipping-ticket-buy/index.js +1 -0
- package/dist/collection/components/lottery-tipping-ticket-buy/lottery-tipping-ticket-buy.css +122 -0
- package/dist/collection/components/lottery-tipping-ticket-buy/lottery-tipping-ticket-buy.js +806 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/model/type.js +6 -0
- package/dist/collection/utils/api.js +72 -0
- package/dist/collection/utils/locale.utils.js +118 -0
- package/dist/collection/utils/utils.js +114 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/app-tooltip_11.entry.js +3985 -0
- package/dist/esm/index-c24f96b9.js +1335 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/lottery-tipping-ticket-buy-04819204.js +7941 -0
- package/dist/esm/lottery-tipping-ticket-buy.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/lottery-tipping-ticket-buy/app-globals-0f993ce5.js +1 -0
- package/dist/lottery-tipping-ticket-buy/app-tooltip_11.entry.js +1 -0
- package/dist/lottery-tipping-ticket-buy/index-c24f96b9.js +2 -0
- package/dist/lottery-tipping-ticket-buy/index.esm.js +1 -0
- package/dist/lottery-tipping-ticket-buy/lottery-tipping-ticket-buy-04819204.js +6657 -0
- package/dist/lottery-tipping-ticket-buy/lottery-tipping-ticket-buy.esm.js +1 -0
- package/dist/static/poolGameLogo.webp +0 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-ticket-buy/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-ticket-buy/.stencil/packages/stencil/lottery-tipping-ticket-buy/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-ticket-buy/.stencil/packages/stencil/lottery-tipping-ticket-buy/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-ticket-buy/.stencil/packages/stencil/lottery-tipping-ticket-buy/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-ticket-buy/.stencil/packages/stencil/lottery-tipping-ticket-buy/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-ticket-buy/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-ticket-buy/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-ticket-buy/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-ticket-buy/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-ticket-buy/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/lottery-segmented/lottery-segmented.d.ts +34 -0
- package/dist/types/components/lottery-tipping-ticket-buy/index.d.ts +1 -0
- package/dist/types/components/lottery-tipping-ticket-buy/lottery-tipping-ticket-buy.d.ts +165 -0
- package/dist/types/components.d.ts +228 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/model/type.d.ts +203 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/api.d.ts +9 -0
- package/dist/types/utils/locale.utils.d.ts +3 -0
- package/dist/types/utils/utils.d.ts +13 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +27 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-8a0b513b.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
10
|
+
*/
|
|
11
|
+
var patchBrowser = () => {
|
|
12
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lottery-tipping-ticket-buy.cjs.js', document.baseURI).href));
|
|
13
|
+
const opts = {};
|
|
14
|
+
if (importMeta !== "") {
|
|
15
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
16
|
+
}
|
|
17
|
+
return index.promiseResolve(opts);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
patchBrowser().then(async (options) => {
|
|
21
|
+
await appGlobals.globalScripts();
|
|
22
|
+
return index.bootstrapLazy([["app-tooltip_11.cjs",[[1,"lottery-tipping-ticket-buy",{"endpoint":[513],"sessionId":[513,"session-id"],"playerId":[513,"player-id"],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"currency":[513],"tippingBetOptions":[513,"tipping-bet-options"],"tippingBetOptionNames":[513,"tipping-bet-option-names"],"groupBy":[513,"group-by"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"bulletSelectionsLineGroup":[32],"draw":[32],"isLoading":[32],"betCurrentPage":[32],"betTotalPages":[32],"dialogConfig":[32],"submitLoading":[32],"betHasErrors":[32],"gameUnavailable":[32],"isSalesActive":[32],"currentStake":[32],"gameConfig":[32],"turnover":[32],"betTypes":[32],"curBetType":[32],"eventPartIds":[32],"curEventPartId":[32],"boardRange":[32],"eventMap":[32],"eventPart2EventOutcomeMap":[32],"betTypeOptions":[32],"eventPartOptions":[32],"stakeOptions":[32]},[[0,"lotteryTippingBetSelectionChange","handleSelectionChange"],[0,"lotteryTippingBetClearAll","handleClearAll"],[0,"lotteryTippingBetPageChange","handlePageChange"],[0,"lotteryTippingBetAddLine","handleAddLine"],[0,"lotteryTippingBetRemoveLine","handleRemoveLine"],[0,"orderSummarySubmit","handleSubmitTickets"],[0,"lotteryTicketSubmitSuccess","handleTicketSubmitSuccess"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-bet-slip",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"totalPages":[514,"total-pages"],"minTotalPages":[514,"min-total-pages"],"maxTotalPages":[514,"max-total-pages"],"bulletTexts":[513,"bullet-texts"],"bulletNames":[513,"bullet-names"],"bulletTextsSplitToken":[513,"bullet-texts-split-token"],"showClearButton":[516,"show-clear-button"],"addImage":[1,"add-image"],"deleteImage":[1,"delete-image"],"infoImage":[1,"info-image"],"leftImage":[1,"left-image"],"rightImage":[1,"right-image"],"mode":[513],"readPretty":[516,"read-pretty"],"ticketDataSourceStr":[1,"ticket-data-source-str"],"bulletSelectionsLineGroupStr":[1,"bullet-selections-line-group-str"],"currentPage":[514,"current-page"],"bulletSelectionsLineGroup":[32],"ticketDataSource":[32],"betIsLoading":[32],"betHasErrors":[32]},[[0,"bulletGroupUpdateSelection","bulletGroupUpdateSelectionHandler"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"ticketDataSourceStr":["parseTicketDataSource"],"bulletSelectionsLineGroupStr":["parseBulletSelectionsLineGroup"]}],[1,"lottery-banner",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"logoUrl":[513,"logo-url"],"stopTime":[1,"stop-time"],"startTime":[1,"start-time"],"bannerTitle":[1,"banner-title"],"turnover":[1],"layout":[1],"isWagerStarted":[32],"formattedStopTime":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"startTime":["handleTimeChange"],"stopTime":["handleTimeChange"]}],[1,"lottery-order-summary",{"endpoint":[513],"sessionId":[513,"session-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"orderSummaryTitle":[1,"order-summary-title"],"ticketsLabel":[1,"tickets-label"],"totalLabel":[1,"total-label"],"showColon":[4,"show-colon"],"showDivider":[4,"show-divider"],"submitDisabled":[4,"submit-disabled"],"submitButtonText":[1,"submit-button-text"],"submitLoading":[32]},[[8,"lotteryTicketParamsReady","handleLotteryTicketParamsReady"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-segmented",{"label":[1],"options":[16],"value":[520]},[[9,"resize","handleWindowResize"]],{"value":["handleValueChange"]}],[1,"lottery-selection-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"splitToken":[513,"split-token"],"selectionGroupId":[513,"selection-group-id"],"selectionGroupLabel":[513,"selection-group-label"],"type":[513],"selectedBulletTexts":[513,"selected-bullet-texts"],"maxSelectedCount":[514,"max-selected-count"],"maxDisplayBulletsCount":[514,"max-display-bullets-count"],"bulletTexts":[513,"bullet-texts"],"maxIntegerBulletText":[514,"max-integer-bullet-text"],"minIntegerBulletText":[514,"min-integer-bullet-text"],"bulletTextType":[513,"bullet-text-type"],"hasBorder":[516,"has-border"],"hasBackground":[516,"has-background"],"dialogTitle":[513,"dialog-title"],"dialogInputPlaceholder":[513,"dialog-input-placeholder"],"disabledBulletTexts":[513,"disabled-bullet-texts"],"dialogConfig":[32],"inputInfo":[32]},[[0,"lotteryBulletClick","lotteryBulletClickHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"app-tooltip",{"visible":[32]}],[1,"helper-count-down",{"value":[520],"format":[513],"prefix":[513],"suffix":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"endTime":[32],"timeObj":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"value":["handleValueChange"]}],[1,"lottery-selection",{"value":[520],"text":[513],"idx":[514],"type":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasBorder":[516,"has-border"],"hasBackground":[516,"has-background"],"deleteIconSvg":[513,"delete-icon-svg"],"deleteIconWidth":[513,"delete-icon-width"],"deleteIconHeight":[513,"delete-icon-height"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"],"dialogClass":[1,"dialog-class"],"dialogStyle":[16],"confirmLoading":[4,"confirm-loading"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-button",{"variant":[513],"size":[513],"color":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entries": [
|
|
3
|
+
"components/lottery-segmented/lottery-segmented.js",
|
|
4
|
+
"components/lottery-tipping-ticket-buy/lottery-tipping-ticket-buy.js"
|
|
5
|
+
],
|
|
6
|
+
"compiler": {
|
|
7
|
+
"name": "@stencil/core",
|
|
8
|
+
"version": "4.19.2",
|
|
9
|
+
"typescriptVersion": "5.4.5"
|
|
10
|
+
},
|
|
11
|
+
"collections": [
|
|
12
|
+
{
|
|
13
|
+
"name": "@everymatrix/helper-count-down",
|
|
14
|
+
"tags": [
|
|
15
|
+
"helper-count-down"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "@everymatrix/lottery-banner",
|
|
20
|
+
"tags": [
|
|
21
|
+
"lottery-banner"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "@everymatrix/lottery-button",
|
|
26
|
+
"tags": [
|
|
27
|
+
"lottery-button"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "@everymatrix/lottery-order-summary",
|
|
32
|
+
"tags": [
|
|
33
|
+
"lottery-order-summary"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "@everymatrix/lottery-selection",
|
|
38
|
+
"tags": [
|
|
39
|
+
"lottery-selection"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "@everymatrix/lottery-selection-group",
|
|
44
|
+
"tags": [
|
|
45
|
+
"lottery-selection-group"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "@everymatrix/lottery-tipping-bet-slip",
|
|
50
|
+
"tags": [
|
|
51
|
+
"app-tooltip",
|
|
52
|
+
"lottery-tipping-bet-slip"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "@everymatrix/lottery-tipping-dialog",
|
|
57
|
+
"tags": [
|
|
58
|
+
"lottery-tipping-dialog"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"bundles": []
|
|
63
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.wrapper {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.label {
|
|
12
|
+
font-size: 16px;
|
|
13
|
+
color: var(--emw-segmented-label-color, #333);
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.segmented-container {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
position: relative;
|
|
20
|
+
background-color: var(--emw-segmented-bg, #f0f0f0);
|
|
21
|
+
border-radius: 20px;
|
|
22
|
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.option {
|
|
26
|
+
position: relative;
|
|
27
|
+
z-index: 1;
|
|
28
|
+
border: none;
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
padding: 12px 18px;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
color: var(--emw-segmented-text-color, #555);
|
|
35
|
+
transition: color 0.3s ease;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
}
|
|
38
|
+
.option.active {
|
|
39
|
+
color: var(--emw-segmented-active-text-color, #000);
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.active-indicator {
|
|
44
|
+
position: absolute;
|
|
45
|
+
z-index: 0;
|
|
46
|
+
top: 2px;
|
|
47
|
+
bottom: 2px;
|
|
48
|
+
background-color: var(--emw-segmented-active-bg, #fff);
|
|
49
|
+
border-radius: 22px;
|
|
50
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
|
|
51
|
+
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
52
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class LotterySegmented {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.optionRefs = [];
|
|
5
|
+
this.label = undefined;
|
|
6
|
+
this.options = [];
|
|
7
|
+
this.value = undefined;
|
|
8
|
+
}
|
|
9
|
+
handleValueChange() {
|
|
10
|
+
this.updateActiveIndicator();
|
|
11
|
+
}
|
|
12
|
+
componentWillLoad() {
|
|
13
|
+
if (!this.value && this.options.length > 0) {
|
|
14
|
+
// Default to the first option if no value is provided
|
|
15
|
+
this.value = this.options[0].value;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
componentDidLoad() {
|
|
19
|
+
// Use requestAnimationFrame to ensure layout is calculated
|
|
20
|
+
requestAnimationFrame(() => this.updateActiveIndicator());
|
|
21
|
+
}
|
|
22
|
+
handleWindowResize() {
|
|
23
|
+
this.updateActiveIndicator();
|
|
24
|
+
}
|
|
25
|
+
updateActiveIndicator() {
|
|
26
|
+
const selectedIndex = this.options.findIndex((opt) => opt.value === this.value);
|
|
27
|
+
if (selectedIndex === -1 || !this.activeIndicator || !this.optionRefs[selectedIndex]) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const selectedOptionEl = this.optionRefs[selectedIndex];
|
|
31
|
+
const containerEl = this.activeIndicator.parentElement;
|
|
32
|
+
const containerRect = containerEl.getBoundingClientRect();
|
|
33
|
+
const optionRect = selectedOptionEl.getBoundingClientRect();
|
|
34
|
+
this.activeIndicator.style.transform = `translateX(${optionRect.left - containerRect.left}px)`;
|
|
35
|
+
this.activeIndicator.style.width = `${optionRect.width}px`;
|
|
36
|
+
}
|
|
37
|
+
onOptionClick(optionValue) {
|
|
38
|
+
if (this.value !== optionValue) {
|
|
39
|
+
this.valueChange.emit(optionValue);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
return (h("div", { key: '675f17d5fd8ddef56324416fda27ffd130ddafa3', class: "wrapper" }, this.label && h("label", { key: 'd6dfc897e2014a7ce57cc4ddca57b1e6173eb1a5', class: "label" }, this.label), h("div", { key: 'e89097f2a9536ada1e0edf52e0d50cdd8f88c52e', class: "segmented-container" }, h("div", { key: 'f720dc7b9b8957cb6d363fd6a2313978eba6988e', class: "active-indicator", ref: (el) => (this.activeIndicator = el) }), this.options.map((option, index) => (h("button", { class: { option: true, active: this.value === option.value }, onClick: () => this.onOptionClick(option.value), ref: (el) => (this.optionRefs[index] = el) }, option.label))))));
|
|
44
|
+
}
|
|
45
|
+
static get is() { return "lottery-segmented"; }
|
|
46
|
+
static get encapsulation() { return "shadow"; }
|
|
47
|
+
static get originalStyleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["lottery-segmented.scss"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get styleUrls() {
|
|
53
|
+
return {
|
|
54
|
+
"$": ["lottery-segmented.css"]
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
static get properties() {
|
|
58
|
+
return {
|
|
59
|
+
"label": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "string",
|
|
64
|
+
"resolved": "string",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": "The label for the segmented control."
|
|
72
|
+
},
|
|
73
|
+
"attribute": "label",
|
|
74
|
+
"reflect": false
|
|
75
|
+
},
|
|
76
|
+
"options": {
|
|
77
|
+
"type": "unknown",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "SegmentedOption[]",
|
|
81
|
+
"resolved": "SegmentedOption[]",
|
|
82
|
+
"references": {
|
|
83
|
+
"SegmentedOption": {
|
|
84
|
+
"location": "local",
|
|
85
|
+
"path": "/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-tipping-ticket-buy/src/components/lottery-segmented/lottery-segmented.tsx",
|
|
86
|
+
"id": "../../../../packages/stencil/lottery-tipping-ticket-buy/src/components/lottery-segmented/lottery-segmented.tsx::SegmentedOption"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": "The options for the segmented control.\ne.g., `[{ label: 'System', value: 'system' }, { label: 'Banker', value: 'banker' }]`"
|
|
95
|
+
},
|
|
96
|
+
"defaultValue": "[]"
|
|
97
|
+
},
|
|
98
|
+
"value": {
|
|
99
|
+
"type": "any",
|
|
100
|
+
"mutable": false,
|
|
101
|
+
"complexType": {
|
|
102
|
+
"original": "any",
|
|
103
|
+
"resolved": "any",
|
|
104
|
+
"references": {}
|
|
105
|
+
},
|
|
106
|
+
"required": false,
|
|
107
|
+
"optional": false,
|
|
108
|
+
"docs": {
|
|
109
|
+
"tags": [],
|
|
110
|
+
"text": "The currently selected value."
|
|
111
|
+
},
|
|
112
|
+
"attribute": "value",
|
|
113
|
+
"reflect": true
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
static get events() {
|
|
118
|
+
return [{
|
|
119
|
+
"method": "valueChange",
|
|
120
|
+
"name": "valueChange",
|
|
121
|
+
"bubbles": true,
|
|
122
|
+
"cancelable": true,
|
|
123
|
+
"composed": true,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": "Emitted when the value changes."
|
|
127
|
+
},
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "any",
|
|
130
|
+
"resolved": "any",
|
|
131
|
+
"references": {}
|
|
132
|
+
}
|
|
133
|
+
}];
|
|
134
|
+
}
|
|
135
|
+
static get elementRef() { return "host"; }
|
|
136
|
+
static get watchers() {
|
|
137
|
+
return [{
|
|
138
|
+
"propName": "value",
|
|
139
|
+
"methodName": "handleValueChange"
|
|
140
|
+
}];
|
|
141
|
+
}
|
|
142
|
+
static get listeners() {
|
|
143
|
+
return [{
|
|
144
|
+
"name": "resize",
|
|
145
|
+
"method": "handleWindowResize",
|
|
146
|
+
"target": "window",
|
|
147
|
+
"capture": false,
|
|
148
|
+
"passive": true
|
|
149
|
+
}];
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LotteryTippingTicketBuy } from './lottery-tipping-ticket-buy';
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--vaadin-input-field-background: var(--emw--color-background, #fff);
|
|
3
|
+
--vaadin-input-field-border-color: var(--emw--color-gray-100, #e6e6e6);
|
|
4
|
+
--vaadin-input-field-invalid-hover-highlight: var(--emw--color-background, #fff);
|
|
5
|
+
--vaadin-input-field-hover-highlight: var(--emw--color-background, #fff);
|
|
6
|
+
--vaadin-input-field-border-width: 1px;
|
|
7
|
+
--lottery-selection-border-color: #e6e6e6;
|
|
8
|
+
--lottery-selection-hover-border-color: #e6e6e6;
|
|
9
|
+
--lottery-selection-selected-border-color: #e6e6e6;
|
|
10
|
+
--lottery-selection-selected-color: #fed275;
|
|
11
|
+
--lottery-button-primary-active-bg: #fed275;
|
|
12
|
+
--lottery-selection-selected-background: #000;
|
|
13
|
+
--lottery-button-text-color: #000;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.lottery-tipping-ticket-buy {
|
|
17
|
+
container-type: inline-size;
|
|
18
|
+
container-name: lottery-tipping-ticket-buy;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.flex {
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.flex-wrap {
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.order-summary__details {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
color: var(--emw--color-typography, #000);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.order-summary__multiplier {
|
|
36
|
+
color: var(--emw--color-typography-secondary, #333);
|
|
37
|
+
margin: 0 8px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.bet-selector {
|
|
41
|
+
display: flex;
|
|
42
|
+
gap: 18px;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
width: 80%;
|
|
45
|
+
max-width: 800px;
|
|
46
|
+
margin: 20px auto;
|
|
47
|
+
}
|
|
48
|
+
.bet-selector-line {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
}
|
|
52
|
+
.bet-selector-line-segments {
|
|
53
|
+
width: 100%;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-wrap: wrap;
|
|
56
|
+
gap: 18px;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
}
|
|
59
|
+
.bet-selector-line-label {
|
|
60
|
+
font-size: 16px;
|
|
61
|
+
margin-right: 8px;
|
|
62
|
+
color: var(--emw--color-typography, #000);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.bet-board {
|
|
66
|
+
display: flex;
|
|
67
|
+
width: 84vw;
|
|
68
|
+
max-width: 1200px;
|
|
69
|
+
margin: 0px auto;
|
|
70
|
+
gap: 30px;
|
|
71
|
+
flex-wrap: wrap;
|
|
72
|
+
}
|
|
73
|
+
.bet-board-slip {
|
|
74
|
+
min-width: 460px;
|
|
75
|
+
flex: 1.6;
|
|
76
|
+
}
|
|
77
|
+
.bet-board-order {
|
|
78
|
+
flex: 1;
|
|
79
|
+
min-width: 200px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@container lottery-tipping-ticket-buy (max-width: 768px) {
|
|
83
|
+
.bet-board {
|
|
84
|
+
width: 94%;
|
|
85
|
+
}
|
|
86
|
+
.bet-board-slip {
|
|
87
|
+
min-width: 100%;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
.skeleton-block {
|
|
91
|
+
background-color: var(--emw--color-background-tertiary, #e0e0e0);
|
|
92
|
+
border-radius: 4px;
|
|
93
|
+
position: relative;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
}
|
|
96
|
+
.skeleton-block::after {
|
|
97
|
+
content: "";
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 100%;
|
|
103
|
+
background: linear-gradient(90deg, transparent, var(--emw--color-background-secondary, rgba(255, 255, 255, 0.4)), transparent);
|
|
104
|
+
animation: shimmer 1.5s infinite;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@keyframes shimmer {
|
|
108
|
+
0% {
|
|
109
|
+
transform: translateX(-100%);
|
|
110
|
+
}
|
|
111
|
+
100% {
|
|
112
|
+
transform: translateX(100%);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.no-active-draw {
|
|
116
|
+
margin: 100px auto;
|
|
117
|
+
padding: 24px;
|
|
118
|
+
border: 2px solid var(--emw--color-primary, #fed275);
|
|
119
|
+
border-radius: 4px;
|
|
120
|
+
width: 280px;
|
|
121
|
+
color: var(--emw--color-typography, #000);
|
|
122
|
+
}
|