@everymatrix/helper-tabs 1.31.2 → 1.32.4
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/LICENSE +21 -0
- package/package.json +3 -2
- package/dist/cjs/helper-tab_2.cjs.entry.js +0 -136
- package/dist/cjs/helper-tabs.cjs.js +0 -19
- package/dist/cjs/index-c1f39e41.js +0 -1179
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/collection/collection-manifest.json +0 -13
- package/dist/collection/components/helper-tab/helper-tab.css +0 -9
- package/dist/collection/components/helper-tab/helper-tab.js +0 -150
- package/dist/collection/components/helper-tabs/helper-tabs.css +0 -34
- package/dist/collection/components/helper-tabs/helper-tabs.js +0 -247
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/utils.js +0 -33
- package/dist/components/helper-tab.d.ts +0 -11
- package/dist/components/helper-tab.js +0 -6
- package/dist/components/helper-tab2.js +0 -86
- package/dist/components/helper-tabs.d.ts +0 -11
- package/dist/components/helper-tabs.js +0 -105
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/helper-tab_2.entry.js +0 -131
- package/dist/esm/helper-tabs.js +0 -17
- package/dist/esm/index-77d38aa8.js +0 -1153
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/helper-tabs/helper-tabs.esm.js +0 -1
- package/dist/helper-tabs/index.esm.js +0 -0
- package/dist/helper-tabs/p-b489f120.js +0 -1
- package/dist/helper-tabs/p-db41ef75.entry.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil.config.js +0 -22
- package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/helper-tabs/.stencil/packages/helper-tabs/stencil.config.d.ts +0 -2
- package/dist/types/components/helper-tab/helper-tab.d.ts +0 -26
- package/dist/types/components/helper-tabs/helper-tabs.d.ts +0 -46
- package/dist/types/components.d.ts +0 -154
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1565
- package/dist/types/utils/utils.d.ts +0 -15
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -10
package/dist/cjs/index.cjs.js
DELETED
package/dist/cjs/loader.cjs.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-c1f39e41.js');
|
|
6
|
-
|
|
7
|
-
/*
|
|
8
|
-
Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
9
|
-
*/
|
|
10
|
-
const patchEsm = () => {
|
|
11
|
-
return index.promiseResolve();
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const defineCustomElements = (win, options) => {
|
|
15
|
-
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
|
-
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["helper-tab_2.cjs",[[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"tabContent":[32],"limitStylingAppends":[32]}]]]], options);
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.defineCustomElements = defineCustomElements;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"entries": [
|
|
3
|
-
"./components/helper-tab/helper-tab.js",
|
|
4
|
-
"./components/helper-tabs/helper-tabs.js"
|
|
5
|
-
],
|
|
6
|
-
"compiler": {
|
|
7
|
-
"name": "@stencil/core",
|
|
8
|
-
"version": "2.15.2",
|
|
9
|
-
"typescriptVersion": "4.5.4"
|
|
10
|
-
},
|
|
11
|
-
"collections": [],
|
|
12
|
-
"bundles": []
|
|
13
|
-
}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { Component, h, Prop, State } from '@stencil/core';
|
|
2
|
-
export class HelperTab {
|
|
3
|
-
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* Selected index
|
|
6
|
-
*/
|
|
7
|
-
this.selectedIndex = 0;
|
|
8
|
-
/**
|
|
9
|
-
* Client custom styling via string
|
|
10
|
-
*/
|
|
11
|
-
this.clientStyling = '';
|
|
12
|
-
/**
|
|
13
|
-
* Client custom styling via url content
|
|
14
|
-
*/
|
|
15
|
-
this.clientStylingUrlContent = '';
|
|
16
|
-
this.tabContent = '';
|
|
17
|
-
this.limitStylingAppends = false;
|
|
18
|
-
this.setClientStyling = () => {
|
|
19
|
-
let sheet = document.createElement('style');
|
|
20
|
-
sheet.innerHTML = this.clientStyling;
|
|
21
|
-
this.stylingContainer.prepend(sheet);
|
|
22
|
-
};
|
|
23
|
-
this.setClientStylingURL = () => {
|
|
24
|
-
let cssFile = document.createElement('style');
|
|
25
|
-
setTimeout(() => {
|
|
26
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
27
|
-
this.stylingContainer.prepend(cssFile);
|
|
28
|
-
}, 1);
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
connectedCallback() {
|
|
32
|
-
/**
|
|
33
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
34
|
-
*/
|
|
35
|
-
}
|
|
36
|
-
componentDidRender() {
|
|
37
|
-
// start custom styling area
|
|
38
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
39
|
-
if (this.clientStyling)
|
|
40
|
-
this.setClientStyling();
|
|
41
|
-
if (this.clientStylingUrlContent)
|
|
42
|
-
this.setClientStylingURL();
|
|
43
|
-
this.limitStylingAppends = true;
|
|
44
|
-
}
|
|
45
|
-
// end custom styling area
|
|
46
|
-
}
|
|
47
|
-
render() {
|
|
48
|
-
this.tabContent = h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, "Each play includes one set of numbers from 1 to 21 with a selectable number of 8 and a second, 4-digit set of numbers, with a minimum selection of 1. Draws are held every 5 minutes and the winnings are automatically credited to your account.");
|
|
49
|
-
if (this.selectedIndex + 1 == 2) {
|
|
50
|
-
this.tabContent = h("div", { class: "TabContent", ref: el => this.stylingContainer = el },
|
|
51
|
-
h("ol", null,
|
|
52
|
-
h("li", null, "Register or Login"),
|
|
53
|
-
h("li", null, "Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose \u201CI feel lucky\u201D."),
|
|
54
|
-
h("li", null, "Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!")));
|
|
55
|
-
}
|
|
56
|
-
else if (this.selectedIndex + 1 == 3) {
|
|
57
|
-
this.tabContent = h("div", { class: "TabContent", ref: el => this.stylingContainer = el },
|
|
58
|
-
h("ul", null,
|
|
59
|
-
h("li", null, "What are my odds of winning?"),
|
|
60
|
-
h("li", null, "How can I find out if I\u2019ve won a draw game?"),
|
|
61
|
-
h("li", null, "How do I claim my prize?")));
|
|
62
|
-
}
|
|
63
|
-
return (this.tabContent);
|
|
64
|
-
}
|
|
65
|
-
static get is() { return "helper-tab"; }
|
|
66
|
-
static get encapsulation() { return "shadow"; }
|
|
67
|
-
static get originalStyleUrls() { return {
|
|
68
|
-
"$": ["helper-tab.scss"]
|
|
69
|
-
}; }
|
|
70
|
-
static get styleUrls() { return {
|
|
71
|
-
"$": ["helper-tab.css"]
|
|
72
|
-
}; }
|
|
73
|
-
static get properties() { return {
|
|
74
|
-
"selectedIndex": {
|
|
75
|
-
"type": "number",
|
|
76
|
-
"mutable": false,
|
|
77
|
-
"complexType": {
|
|
78
|
-
"original": "number",
|
|
79
|
-
"resolved": "number",
|
|
80
|
-
"references": {}
|
|
81
|
-
},
|
|
82
|
-
"required": false,
|
|
83
|
-
"optional": false,
|
|
84
|
-
"docs": {
|
|
85
|
-
"tags": [],
|
|
86
|
-
"text": "Selected index"
|
|
87
|
-
},
|
|
88
|
-
"attribute": "selected-index",
|
|
89
|
-
"reflect": true,
|
|
90
|
-
"defaultValue": "0"
|
|
91
|
-
},
|
|
92
|
-
"cmsEndpoint": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"mutable": false,
|
|
95
|
-
"complexType": {
|
|
96
|
-
"original": "string",
|
|
97
|
-
"resolved": "string",
|
|
98
|
-
"references": {}
|
|
99
|
-
},
|
|
100
|
-
"required": false,
|
|
101
|
-
"optional": false,
|
|
102
|
-
"docs": {
|
|
103
|
-
"tags": [],
|
|
104
|
-
"text": "Endpoing for CMS"
|
|
105
|
-
},
|
|
106
|
-
"attribute": "cms-endpoint",
|
|
107
|
-
"reflect": true
|
|
108
|
-
},
|
|
109
|
-
"clientStyling": {
|
|
110
|
-
"type": "string",
|
|
111
|
-
"mutable": false,
|
|
112
|
-
"complexType": {
|
|
113
|
-
"original": "string",
|
|
114
|
-
"resolved": "string",
|
|
115
|
-
"references": {}
|
|
116
|
-
},
|
|
117
|
-
"required": false,
|
|
118
|
-
"optional": false,
|
|
119
|
-
"docs": {
|
|
120
|
-
"tags": [],
|
|
121
|
-
"text": "Client custom styling via string"
|
|
122
|
-
},
|
|
123
|
-
"attribute": "client-styling",
|
|
124
|
-
"reflect": true,
|
|
125
|
-
"defaultValue": "''"
|
|
126
|
-
},
|
|
127
|
-
"clientStylingUrlContent": {
|
|
128
|
-
"type": "string",
|
|
129
|
-
"mutable": false,
|
|
130
|
-
"complexType": {
|
|
131
|
-
"original": "string",
|
|
132
|
-
"resolved": "string",
|
|
133
|
-
"references": {}
|
|
134
|
-
},
|
|
135
|
-
"required": false,
|
|
136
|
-
"optional": false,
|
|
137
|
-
"docs": {
|
|
138
|
-
"tags": [],
|
|
139
|
-
"text": "Client custom styling via url content"
|
|
140
|
-
},
|
|
141
|
-
"attribute": "client-styling-url-content",
|
|
142
|
-
"reflect": true,
|
|
143
|
-
"defaultValue": "''"
|
|
144
|
-
}
|
|
145
|
-
}; }
|
|
146
|
-
static get states() { return {
|
|
147
|
-
"tabContent": {},
|
|
148
|
-
"limitStylingAppends": {}
|
|
149
|
-
}; }
|
|
150
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");
|
|
2
|
-
:host {
|
|
3
|
-
display: block;
|
|
4
|
-
font-family: "Roboto", sans-serif;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.Tabs {
|
|
8
|
-
display: flex;
|
|
9
|
-
gap: 10px;
|
|
10
|
-
overflow-x: auto;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.TabButton {
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
width: auto;
|
|
16
|
-
border-radius: 4px;
|
|
17
|
-
padding: 8px 15px;
|
|
18
|
-
margin: 5px 0 10px;
|
|
19
|
-
border: 1px solid #009993;
|
|
20
|
-
background: #FFF;
|
|
21
|
-
color: #000;
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
transition: all 0.2s linear;
|
|
24
|
-
text-align: center;
|
|
25
|
-
letter-spacing: 0;
|
|
26
|
-
white-space: nowrap;
|
|
27
|
-
}
|
|
28
|
-
.TabButton:hover {
|
|
29
|
-
background: #F1F1F1;
|
|
30
|
-
}
|
|
31
|
-
.TabButton.Active {
|
|
32
|
-
background: #009993;
|
|
33
|
-
color: #FFF;
|
|
34
|
-
}
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import { Component, Prop, Element, h, State } from '@stencil/core';
|
|
2
|
-
export class HelperTabs {
|
|
3
|
-
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* Tell me if it is disabled
|
|
6
|
-
*/
|
|
7
|
-
this.disabled = false;
|
|
8
|
-
/**
|
|
9
|
-
* Tell me what tab is selected
|
|
10
|
-
*/
|
|
11
|
-
this.selected = false;
|
|
12
|
-
/**
|
|
13
|
-
* Default selected index
|
|
14
|
-
*/
|
|
15
|
-
this.selectedIndex = 0;
|
|
16
|
-
/**
|
|
17
|
-
* Tabs details
|
|
18
|
-
*/
|
|
19
|
-
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
20
|
-
/**
|
|
21
|
-
* Client custom styling via string
|
|
22
|
-
*/
|
|
23
|
-
this.clientStyling = '';
|
|
24
|
-
/**
|
|
25
|
-
* Client custom styling via url
|
|
26
|
-
*/
|
|
27
|
-
this.clientStylingurl = '';
|
|
28
|
-
/**
|
|
29
|
-
* Client custom styling via url content
|
|
30
|
-
*/
|
|
31
|
-
this.clientStylingUrlContent = '';
|
|
32
|
-
this.limitStylingAppends = false;
|
|
33
|
-
this.setClientStyling = () => {
|
|
34
|
-
let sheet = document.createElement('style');
|
|
35
|
-
sheet.innerHTML = this.clientStyling;
|
|
36
|
-
this.stylingContainer.prepend(sheet);
|
|
37
|
-
};
|
|
38
|
-
this.setClientStylingURL = () => {
|
|
39
|
-
let cssFile = document.createElement('style');
|
|
40
|
-
setTimeout(() => {
|
|
41
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
42
|
-
this.stylingContainer.prepend(cssFile);
|
|
43
|
-
}, 1);
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
connectedCallback() {
|
|
47
|
-
if (this.tabs.length == 0) {
|
|
48
|
-
// fetch CMS data
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
componentDidRender() {
|
|
52
|
-
// start custom styling area
|
|
53
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
54
|
-
this.setClientStyling();
|
|
55
|
-
if (this.clientStylingUrlContent) {
|
|
56
|
-
this.setClientStylingURL();
|
|
57
|
-
}
|
|
58
|
-
this.limitStylingAppends = true;
|
|
59
|
-
}
|
|
60
|
-
// end custom styling area
|
|
61
|
-
}
|
|
62
|
-
render() {
|
|
63
|
-
return (h("div", { ref: el => this.stylingContainer = el },
|
|
64
|
-
h("div", { class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))),
|
|
65
|
-
h("div", null,
|
|
66
|
-
h("helper-tab", { selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
|
|
67
|
-
}
|
|
68
|
-
static get is() { return "helper-tabs"; }
|
|
69
|
-
static get encapsulation() { return "shadow"; }
|
|
70
|
-
static get originalStyleUrls() { return {
|
|
71
|
-
"$": ["helper-tabs.scss"]
|
|
72
|
-
}; }
|
|
73
|
-
static get styleUrls() { return {
|
|
74
|
-
"$": ["helper-tabs.css"]
|
|
75
|
-
}; }
|
|
76
|
-
static get properties() { return {
|
|
77
|
-
"disabled": {
|
|
78
|
-
"type": "boolean",
|
|
79
|
-
"mutable": false,
|
|
80
|
-
"complexType": {
|
|
81
|
-
"original": "boolean",
|
|
82
|
-
"resolved": "boolean",
|
|
83
|
-
"references": {}
|
|
84
|
-
},
|
|
85
|
-
"required": false,
|
|
86
|
-
"optional": false,
|
|
87
|
-
"docs": {
|
|
88
|
-
"tags": [],
|
|
89
|
-
"text": "Tell me if it is disabled"
|
|
90
|
-
},
|
|
91
|
-
"attribute": "disabled",
|
|
92
|
-
"reflect": true,
|
|
93
|
-
"defaultValue": "false"
|
|
94
|
-
},
|
|
95
|
-
"label": {
|
|
96
|
-
"type": "string",
|
|
97
|
-
"mutable": false,
|
|
98
|
-
"complexType": {
|
|
99
|
-
"original": "string",
|
|
100
|
-
"resolved": "string",
|
|
101
|
-
"references": {}
|
|
102
|
-
},
|
|
103
|
-
"required": false,
|
|
104
|
-
"optional": false,
|
|
105
|
-
"docs": {
|
|
106
|
-
"tags": [],
|
|
107
|
-
"text": "Gimme names or you die"
|
|
108
|
-
},
|
|
109
|
-
"attribute": "label",
|
|
110
|
-
"reflect": true
|
|
111
|
-
},
|
|
112
|
-
"selected": {
|
|
113
|
-
"type": "boolean",
|
|
114
|
-
"mutable": false,
|
|
115
|
-
"complexType": {
|
|
116
|
-
"original": "boolean",
|
|
117
|
-
"resolved": "boolean",
|
|
118
|
-
"references": {}
|
|
119
|
-
},
|
|
120
|
-
"required": false,
|
|
121
|
-
"optional": false,
|
|
122
|
-
"docs": {
|
|
123
|
-
"tags": [],
|
|
124
|
-
"text": "Tell me what tab is selected"
|
|
125
|
-
},
|
|
126
|
-
"attribute": "selected",
|
|
127
|
-
"reflect": true,
|
|
128
|
-
"defaultValue": "false"
|
|
129
|
-
},
|
|
130
|
-
"cmsEndpoint": {
|
|
131
|
-
"type": "string",
|
|
132
|
-
"mutable": false,
|
|
133
|
-
"complexType": {
|
|
134
|
-
"original": "string",
|
|
135
|
-
"resolved": "string",
|
|
136
|
-
"references": {}
|
|
137
|
-
},
|
|
138
|
-
"required": false,
|
|
139
|
-
"optional": false,
|
|
140
|
-
"docs": {
|
|
141
|
-
"tags": [],
|
|
142
|
-
"text": "Endpoing for CMS"
|
|
143
|
-
},
|
|
144
|
-
"attribute": "cms-endpoint",
|
|
145
|
-
"reflect": true
|
|
146
|
-
},
|
|
147
|
-
"selectedIndex": {
|
|
148
|
-
"type": "number",
|
|
149
|
-
"mutable": true,
|
|
150
|
-
"complexType": {
|
|
151
|
-
"original": "number",
|
|
152
|
-
"resolved": "number",
|
|
153
|
-
"references": {}
|
|
154
|
-
},
|
|
155
|
-
"required": false,
|
|
156
|
-
"optional": false,
|
|
157
|
-
"docs": {
|
|
158
|
-
"tags": [],
|
|
159
|
-
"text": "Default selected index"
|
|
160
|
-
},
|
|
161
|
-
"attribute": "selected-index",
|
|
162
|
-
"reflect": true,
|
|
163
|
-
"defaultValue": "0"
|
|
164
|
-
},
|
|
165
|
-
"tabs": {
|
|
166
|
-
"type": "unknown",
|
|
167
|
-
"mutable": false,
|
|
168
|
-
"complexType": {
|
|
169
|
-
"original": "Array<Object>",
|
|
170
|
-
"resolved": "Object[]",
|
|
171
|
-
"references": {
|
|
172
|
-
"Array": {
|
|
173
|
-
"location": "global"
|
|
174
|
-
},
|
|
175
|
-
"Object": {
|
|
176
|
-
"location": "global"
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
"required": false,
|
|
181
|
-
"optional": false,
|
|
182
|
-
"docs": {
|
|
183
|
-
"tags": [],
|
|
184
|
-
"text": "Tabs details"
|
|
185
|
-
},
|
|
186
|
-
"defaultValue": "[{label: 'How to Play'}, {label: 'About'}, {label: 'FAQs'}]"
|
|
187
|
-
},
|
|
188
|
-
"clientStyling": {
|
|
189
|
-
"type": "string",
|
|
190
|
-
"mutable": false,
|
|
191
|
-
"complexType": {
|
|
192
|
-
"original": "string",
|
|
193
|
-
"resolved": "string",
|
|
194
|
-
"references": {}
|
|
195
|
-
},
|
|
196
|
-
"required": false,
|
|
197
|
-
"optional": false,
|
|
198
|
-
"docs": {
|
|
199
|
-
"tags": [],
|
|
200
|
-
"text": "Client custom styling via string"
|
|
201
|
-
},
|
|
202
|
-
"attribute": "client-styling",
|
|
203
|
-
"reflect": true,
|
|
204
|
-
"defaultValue": "''"
|
|
205
|
-
},
|
|
206
|
-
"clientStylingurl": {
|
|
207
|
-
"type": "string",
|
|
208
|
-
"mutable": false,
|
|
209
|
-
"complexType": {
|
|
210
|
-
"original": "string",
|
|
211
|
-
"resolved": "string",
|
|
212
|
-
"references": {}
|
|
213
|
-
},
|
|
214
|
-
"required": false,
|
|
215
|
-
"optional": false,
|
|
216
|
-
"docs": {
|
|
217
|
-
"tags": [],
|
|
218
|
-
"text": "Client custom styling via url"
|
|
219
|
-
},
|
|
220
|
-
"attribute": "client-stylingurl",
|
|
221
|
-
"reflect": true,
|
|
222
|
-
"defaultValue": "''"
|
|
223
|
-
},
|
|
224
|
-
"clientStylingUrlContent": {
|
|
225
|
-
"type": "string",
|
|
226
|
-
"mutable": false,
|
|
227
|
-
"complexType": {
|
|
228
|
-
"original": "string",
|
|
229
|
-
"resolved": "string",
|
|
230
|
-
"references": {}
|
|
231
|
-
},
|
|
232
|
-
"required": false,
|
|
233
|
-
"optional": false,
|
|
234
|
-
"docs": {
|
|
235
|
-
"tags": [],
|
|
236
|
-
"text": "Client custom styling via url content"
|
|
237
|
-
},
|
|
238
|
-
"attribute": "client-styling-url-content",
|
|
239
|
-
"reflect": true,
|
|
240
|
-
"defaultValue": "''"
|
|
241
|
-
}
|
|
242
|
-
}; }
|
|
243
|
-
static get states() { return {
|
|
244
|
-
"limitStylingAppends": {}
|
|
245
|
-
}; }
|
|
246
|
-
static get elementRef() { return "host"; }
|
|
247
|
-
}
|
package/dist/collection/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export function format(first, middle, last) {
|
|
2
|
-
return ((first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : ''));
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* @name isMobile
|
|
6
|
-
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
7
|
-
* @param {String} userAgent window.navigator.userAgent
|
|
8
|
-
* @returns {Boolean} true or false
|
|
9
|
-
*/
|
|
10
|
-
export const isMobile = (userAgent) => {
|
|
11
|
-
return !!(userAgent.toLowerCase().match(/android/i) ||
|
|
12
|
-
userAgent.toLowerCase().match(/blackberry|bb/i) ||
|
|
13
|
-
userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
|
|
14
|
-
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @name getDevice
|
|
18
|
-
* @description A method that returns the type of the device
|
|
19
|
-
* @param {String} userAgent window.navigator.userAgent
|
|
20
|
-
* @returns {String} Android/iPhone/iPad/PC
|
|
21
|
-
*/
|
|
22
|
-
export const getDevice = (userAgent) => {
|
|
23
|
-
if (userAgent.toLowerCase().match(/android/i)) {
|
|
24
|
-
return 'Android';
|
|
25
|
-
}
|
|
26
|
-
if (userAgent.toLowerCase().match(/iphone/i)) {
|
|
27
|
-
return 'iPhone';
|
|
28
|
-
}
|
|
29
|
-
if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
|
|
30
|
-
return 'iPad';
|
|
31
|
-
}
|
|
32
|
-
return 'PC';
|
|
33
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface HelperTab extends Components.HelperTab, HTMLElement {}
|
|
4
|
-
export const HelperTab: {
|
|
5
|
-
prototype: HelperTab;
|
|
6
|
-
new (): HelperTab;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
|
|
4
|
-
|
|
5
|
-
const HelperTab = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
10
|
-
/**
|
|
11
|
-
* Selected index
|
|
12
|
-
*/
|
|
13
|
-
this.selectedIndex = 0;
|
|
14
|
-
/**
|
|
15
|
-
* Client custom styling via string
|
|
16
|
-
*/
|
|
17
|
-
this.clientStyling = '';
|
|
18
|
-
/**
|
|
19
|
-
* Client custom styling via url content
|
|
20
|
-
*/
|
|
21
|
-
this.clientStylingUrlContent = '';
|
|
22
|
-
this.tabContent = '';
|
|
23
|
-
this.limitStylingAppends = false;
|
|
24
|
-
this.setClientStyling = () => {
|
|
25
|
-
let sheet = document.createElement('style');
|
|
26
|
-
sheet.innerHTML = this.clientStyling;
|
|
27
|
-
this.stylingContainer.prepend(sheet);
|
|
28
|
-
};
|
|
29
|
-
this.setClientStylingURL = () => {
|
|
30
|
-
let cssFile = document.createElement('style');
|
|
31
|
-
setTimeout(() => {
|
|
32
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
33
|
-
this.stylingContainer.prepend(cssFile);
|
|
34
|
-
}, 1);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
connectedCallback() {
|
|
38
|
-
/**
|
|
39
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
40
|
-
*/
|
|
41
|
-
}
|
|
42
|
-
componentDidRender() {
|
|
43
|
-
// start custom styling area
|
|
44
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
45
|
-
if (this.clientStyling)
|
|
46
|
-
this.setClientStyling();
|
|
47
|
-
if (this.clientStylingUrlContent)
|
|
48
|
-
this.setClientStylingURL();
|
|
49
|
-
this.limitStylingAppends = true;
|
|
50
|
-
}
|
|
51
|
-
// end custom styling area
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
this.tabContent = h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, "Each play includes one set of numbers from 1 to 21 with a selectable number of 8 and a second, 4-digit set of numbers, with a minimum selection of 1. Draws are held every 5 minutes and the winnings are automatically credited to your account.");
|
|
55
|
-
if (this.selectedIndex + 1 == 2) {
|
|
56
|
-
this.tabContent = h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, h("ol", null, h("li", null, "Register or Login"), h("li", null, "Buy tickets. Select 'Buy Tickets' to pick your numbers. Want us to automatically generate random numbers for you? Choose \u201CI feel lucky\u201D."), h("li", null, "Review and Complete your purchase. Once you've chosen your total number of plays, and confirmed your number of selections, review your ticket details and complete your purchase!")));
|
|
57
|
-
}
|
|
58
|
-
else if (this.selectedIndex + 1 == 3) {
|
|
59
|
-
this.tabContent = h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, h("ul", null, h("li", null, "What are my odds of winning?"), h("li", null, "How can I find out if I\u2019ve won a draw game?"), h("li", null, "How do I claim my prize?")));
|
|
60
|
-
}
|
|
61
|
-
return (this.tabContent);
|
|
62
|
-
}
|
|
63
|
-
static get style() { return helperTabCss; }
|
|
64
|
-
}, [1, "helper-tab", {
|
|
65
|
-
"selectedIndex": [514, "selected-index"],
|
|
66
|
-
"cmsEndpoint": [513, "cms-endpoint"],
|
|
67
|
-
"clientStyling": [513, "client-styling"],
|
|
68
|
-
"clientStylingUrlContent": [513, "client-styling-url-content"],
|
|
69
|
-
"tabContent": [32],
|
|
70
|
-
"limitStylingAppends": [32]
|
|
71
|
-
}]);
|
|
72
|
-
function defineCustomElement() {
|
|
73
|
-
if (typeof customElements === "undefined") {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
const components = ["helper-tab"];
|
|
77
|
-
components.forEach(tagName => { switch (tagName) {
|
|
78
|
-
case "helper-tab":
|
|
79
|
-
if (!customElements.get(tagName)) {
|
|
80
|
-
customElements.define(tagName, HelperTab);
|
|
81
|
-
}
|
|
82
|
-
break;
|
|
83
|
-
} });
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export { HelperTab as H, defineCustomElement as d };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface HelperTabs extends Components.HelperTabs, HTMLElement {}
|
|
4
|
-
export const HelperTabs: {
|
|
5
|
-
prototype: HelperTabs;
|
|
6
|
-
new (): HelperTabs;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|