@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
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$2 } from './helper-tab2.js';
|
|
3
|
-
|
|
4
|
-
const helperTabsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Tabs{display:flex;gap:10px;overflow-x:auto}.TabButton{cursor:pointer;width:auto;border-radius:4px;padding:8px 15px;margin:5px 0 10px;border:1px solid #009993;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:#F1F1F1}.TabButton.Active{background:#009993;color:#FFF}";
|
|
5
|
-
|
|
6
|
-
const HelperTabs$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
/**
|
|
12
|
-
* Tell me if it is disabled
|
|
13
|
-
*/
|
|
14
|
-
this.disabled = false;
|
|
15
|
-
/**
|
|
16
|
-
* Tell me what tab is selected
|
|
17
|
-
*/
|
|
18
|
-
this.selected = false;
|
|
19
|
-
/**
|
|
20
|
-
* Default selected index
|
|
21
|
-
*/
|
|
22
|
-
this.selectedIndex = 0;
|
|
23
|
-
/**
|
|
24
|
-
* Tabs details
|
|
25
|
-
*/
|
|
26
|
-
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
27
|
-
/**
|
|
28
|
-
* Client custom styling via string
|
|
29
|
-
*/
|
|
30
|
-
this.clientStyling = '';
|
|
31
|
-
/**
|
|
32
|
-
* Client custom styling via url
|
|
33
|
-
*/
|
|
34
|
-
this.clientStylingurl = '';
|
|
35
|
-
/**
|
|
36
|
-
* Client custom styling via url content
|
|
37
|
-
*/
|
|
38
|
-
this.clientStylingUrlContent = '';
|
|
39
|
-
this.limitStylingAppends = false;
|
|
40
|
-
this.setClientStyling = () => {
|
|
41
|
-
let sheet = document.createElement('style');
|
|
42
|
-
sheet.innerHTML = this.clientStyling;
|
|
43
|
-
this.stylingContainer.prepend(sheet);
|
|
44
|
-
};
|
|
45
|
-
this.setClientStylingURL = () => {
|
|
46
|
-
let cssFile = document.createElement('style');
|
|
47
|
-
setTimeout(() => {
|
|
48
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
49
|
-
this.stylingContainer.prepend(cssFile);
|
|
50
|
-
}, 1);
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
connectedCallback() {
|
|
54
|
-
}
|
|
55
|
-
componentDidRender() {
|
|
56
|
-
// start custom styling area
|
|
57
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
58
|
-
this.setClientStyling();
|
|
59
|
-
if (this.clientStylingUrlContent) {
|
|
60
|
-
this.setClientStylingURL();
|
|
61
|
-
}
|
|
62
|
-
this.limitStylingAppends = true;
|
|
63
|
-
}
|
|
64
|
-
// end custom styling area
|
|
65
|
-
}
|
|
66
|
-
render() {
|
|
67
|
-
return (h("div", { ref: el => this.stylingContainer = el }, h("div", { class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", null, h("helper-tab", { selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
|
|
68
|
-
}
|
|
69
|
-
get host() { return this; }
|
|
70
|
-
static get style() { return helperTabsCss; }
|
|
71
|
-
}, [1, "helper-tabs", {
|
|
72
|
-
"disabled": [516],
|
|
73
|
-
"label": [513],
|
|
74
|
-
"selected": [516],
|
|
75
|
-
"cmsEndpoint": [513, "cms-endpoint"],
|
|
76
|
-
"selectedIndex": [1538, "selected-index"],
|
|
77
|
-
"tabs": [16],
|
|
78
|
-
"clientStyling": [513, "client-styling"],
|
|
79
|
-
"clientStylingurl": [513, "client-stylingurl"],
|
|
80
|
-
"clientStylingUrlContent": [513, "client-styling-url-content"],
|
|
81
|
-
"limitStylingAppends": [32]
|
|
82
|
-
}]);
|
|
83
|
-
function defineCustomElement$1() {
|
|
84
|
-
if (typeof customElements === "undefined") {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
const components = ["helper-tabs", "helper-tab"];
|
|
88
|
-
components.forEach(tagName => { switch (tagName) {
|
|
89
|
-
case "helper-tabs":
|
|
90
|
-
if (!customElements.get(tagName)) {
|
|
91
|
-
customElements.define(tagName, HelperTabs$1);
|
|
92
|
-
}
|
|
93
|
-
break;
|
|
94
|
-
case "helper-tab":
|
|
95
|
-
if (!customElements.get(tagName)) {
|
|
96
|
-
defineCustomElement$2();
|
|
97
|
-
}
|
|
98
|
-
break;
|
|
99
|
-
} });
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
const HelperTabs = HelperTabs$1;
|
|
103
|
-
const defineCustomElement = defineCustomElement$1;
|
|
104
|
-
|
|
105
|
-
export { HelperTabs, defineCustomElement };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* HelperTabs custom elements */
|
|
2
|
-
|
|
3
|
-
import type { Components, JSX } from "../types/components";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Used to manually set the base path where assets can be found.
|
|
7
|
-
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
8
|
-
* such as "setAssetPath(import.meta.url)". Other options include
|
|
9
|
-
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
10
|
-
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
11
|
-
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
12
|
-
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
13
|
-
* will have to ensure the static assets are copied to its build directory.
|
|
14
|
-
*/
|
|
15
|
-
export declare const setAssetPath: (path: string) => void;
|
|
16
|
-
|
|
17
|
-
export interface SetPlatformOptions {
|
|
18
|
-
raf?: (c: FrameRequestCallback) => number;
|
|
19
|
-
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
20
|
-
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
21
|
-
}
|
|
22
|
-
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
23
|
-
|
|
24
|
-
export type { Components, JSX };
|
|
25
|
-
|
|
26
|
-
export * from '../types';
|
package/dist/components/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-77d38aa8.js';
|
|
2
|
-
|
|
3
|
-
const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
|
|
4
|
-
|
|
5
|
-
const HelperTab = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
/**
|
|
9
|
-
* Selected index
|
|
10
|
-
*/
|
|
11
|
-
this.selectedIndex = 0;
|
|
12
|
-
/**
|
|
13
|
-
* Client custom styling via string
|
|
14
|
-
*/
|
|
15
|
-
this.clientStyling = '';
|
|
16
|
-
/**
|
|
17
|
-
* Client custom styling via url content
|
|
18
|
-
*/
|
|
19
|
-
this.clientStylingUrlContent = '';
|
|
20
|
-
this.tabContent = '';
|
|
21
|
-
this.limitStylingAppends = false;
|
|
22
|
-
this.setClientStyling = () => {
|
|
23
|
-
let sheet = document.createElement('style');
|
|
24
|
-
sheet.innerHTML = this.clientStyling;
|
|
25
|
-
this.stylingContainer.prepend(sheet);
|
|
26
|
-
};
|
|
27
|
-
this.setClientStylingURL = () => {
|
|
28
|
-
let cssFile = document.createElement('style');
|
|
29
|
-
setTimeout(() => {
|
|
30
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
31
|
-
this.stylingContainer.prepend(cssFile);
|
|
32
|
-
}, 1);
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
connectedCallback() {
|
|
36
|
-
/**
|
|
37
|
-
* fetch(cmsEndpoint + / + / + selectedIndex)
|
|
38
|
-
*/
|
|
39
|
-
}
|
|
40
|
-
componentDidRender() {
|
|
41
|
-
// start custom styling area
|
|
42
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
43
|
-
if (this.clientStyling)
|
|
44
|
-
this.setClientStyling();
|
|
45
|
-
if (this.clientStylingUrlContent)
|
|
46
|
-
this.setClientStylingURL();
|
|
47
|
-
this.limitStylingAppends = true;
|
|
48
|
-
}
|
|
49
|
-
// end custom styling area
|
|
50
|
-
}
|
|
51
|
-
render() {
|
|
52
|
-
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.");
|
|
53
|
-
if (this.selectedIndex + 1 == 2) {
|
|
54
|
-
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!")));
|
|
55
|
-
}
|
|
56
|
-
else if (this.selectedIndex + 1 == 3) {
|
|
57
|
-
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?")));
|
|
58
|
-
}
|
|
59
|
-
return (this.tabContent);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
HelperTab.style = helperTabCss;
|
|
63
|
-
|
|
64
|
-
const helperTabsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Tabs{display:flex;gap:10px;overflow-x:auto}.TabButton{cursor:pointer;width:auto;border-radius:4px;padding:8px 15px;margin:5px 0 10px;border:1px solid #009993;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:#F1F1F1}.TabButton.Active{background:#009993;color:#FFF}";
|
|
65
|
-
|
|
66
|
-
const HelperTabs = class {
|
|
67
|
-
constructor(hostRef) {
|
|
68
|
-
registerInstance(this, hostRef);
|
|
69
|
-
/**
|
|
70
|
-
* Tell me if it is disabled
|
|
71
|
-
*/
|
|
72
|
-
this.disabled = false;
|
|
73
|
-
/**
|
|
74
|
-
* Tell me what tab is selected
|
|
75
|
-
*/
|
|
76
|
-
this.selected = false;
|
|
77
|
-
/**
|
|
78
|
-
* Default selected index
|
|
79
|
-
*/
|
|
80
|
-
this.selectedIndex = 0;
|
|
81
|
-
/**
|
|
82
|
-
* Tabs details
|
|
83
|
-
*/
|
|
84
|
-
this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
|
|
85
|
-
/**
|
|
86
|
-
* Client custom styling via string
|
|
87
|
-
*/
|
|
88
|
-
this.clientStyling = '';
|
|
89
|
-
/**
|
|
90
|
-
* Client custom styling via url
|
|
91
|
-
*/
|
|
92
|
-
this.clientStylingurl = '';
|
|
93
|
-
/**
|
|
94
|
-
* Client custom styling via url content
|
|
95
|
-
*/
|
|
96
|
-
this.clientStylingUrlContent = '';
|
|
97
|
-
this.limitStylingAppends = false;
|
|
98
|
-
this.setClientStyling = () => {
|
|
99
|
-
let sheet = document.createElement('style');
|
|
100
|
-
sheet.innerHTML = this.clientStyling;
|
|
101
|
-
this.stylingContainer.prepend(sheet);
|
|
102
|
-
};
|
|
103
|
-
this.setClientStylingURL = () => {
|
|
104
|
-
let cssFile = document.createElement('style');
|
|
105
|
-
setTimeout(() => {
|
|
106
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
107
|
-
this.stylingContainer.prepend(cssFile);
|
|
108
|
-
}, 1);
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
connectedCallback() {
|
|
112
|
-
}
|
|
113
|
-
componentDidRender() {
|
|
114
|
-
// start custom styling area
|
|
115
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
116
|
-
this.setClientStyling();
|
|
117
|
-
if (this.clientStylingUrlContent) {
|
|
118
|
-
this.setClientStylingURL();
|
|
119
|
-
}
|
|
120
|
-
this.limitStylingAppends = true;
|
|
121
|
-
}
|
|
122
|
-
// end custom styling area
|
|
123
|
-
}
|
|
124
|
-
render() {
|
|
125
|
-
return (h("div", { ref: el => this.stylingContainer = el }, h("div", { class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", null, h("helper-tab", { selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
|
|
126
|
-
}
|
|
127
|
-
get host() { return getElement(this); }
|
|
128
|
-
};
|
|
129
|
-
HelperTabs.style = helperTabsCss;
|
|
130
|
-
|
|
131
|
-
export { HelperTab as helper_tab, HelperTabs as helper_tabs };
|
package/dist/esm/helper-tabs.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-77d38aa8.js';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
5
|
-
*/
|
|
6
|
-
const patchBrowser = () => {
|
|
7
|
-
const importMeta = import.meta.url;
|
|
8
|
-
const opts = {};
|
|
9
|
-
if (importMeta !== '') {
|
|
10
|
-
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
11
|
-
}
|
|
12
|
-
return promiseResolve(opts);
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["helper-tab_2",[[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);
|
|
17
|
-
});
|