@everymatrix/helper-tabs 1.44.0 → 1.45.2

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.
Files changed (52) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/helper-tab_2.cjs.entry.js +90 -115
  3. package/dist/cjs/helper-tabs.cjs.js +16 -10
  4. package/dist/cjs/index-e6be4b2d.js +1192 -0
  5. package/dist/cjs/loader.cjs.js +6 -12
  6. package/dist/collection/collection-manifest.json +4 -4
  7. package/dist/collection/components/helper-tab/helper-tab.js +136 -144
  8. package/dist/collection/components/helper-tabs/helper-tabs.js +229 -241
  9. package/dist/collection/components/helper-tabs/index.js +1 -0
  10. package/dist/collection/utils/utils.js +15 -15
  11. package/dist/esm/app-globals-0f993ce5.js +3 -0
  12. package/dist/esm/helper-tab_2.entry.js +90 -115
  13. package/dist/esm/helper-tabs.js +13 -10
  14. package/dist/esm/index-53eb88db.js +1165 -0
  15. package/dist/esm/loader.js +6 -12
  16. package/dist/helper-tabs/helper-tabs.esm.js +1 -1
  17. package/dist/helper-tabs/p-7202b7a8.entry.js +1 -0
  18. package/dist/helper-tabs/p-94c9f3ff.js +2 -0
  19. package/dist/helper-tabs/p-e1255160.js +1 -0
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -19
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/helper-tab/helper-tab.d.ts +24 -24
  25. package/dist/types/components/helper-tabs/helper-tabs.d.ts +42 -42
  26. package/dist/types/components/helper-tabs/index.d.ts +1 -0
  27. package/dist/types/stencil-public-runtime.d.ts +142 -33
  28. package/loader/cdn.js +1 -3
  29. package/loader/index.cjs.js +1 -3
  30. package/loader/index.d.ts +13 -1
  31. package/loader/index.es2017.js +1 -3
  32. package/loader/index.js +1 -3
  33. package/loader/package.json +1 -0
  34. package/package.json +8 -1
  35. package/dist/cjs/index-c1f39e41.js +0 -1179
  36. package/dist/components/helper-tab.d.ts +0 -11
  37. package/dist/components/helper-tab.js +0 -6
  38. package/dist/components/helper-tab2.js +0 -86
  39. package/dist/components/helper-tabs.d.ts +0 -11
  40. package/dist/components/helper-tabs.js +0 -105
  41. package/dist/components/index.d.ts +0 -26
  42. package/dist/components/index.js +0 -1
  43. package/dist/esm/index-77d38aa8.js +0 -1153
  44. package/dist/esm/polyfills/core-js.js +0 -11
  45. package/dist/esm/polyfills/css-shim.js +0 -1
  46. package/dist/esm/polyfills/dom.js +0 -79
  47. package/dist/esm/polyfills/es5-html-element.js +0 -1
  48. package/dist/esm/polyfills/index.js +0 -34
  49. package/dist/esm/polyfills/system.js +0 -6
  50. package/dist/helper-tabs/p-b489f120.js +0 -1
  51. package/dist/helper-tabs/p-db41ef75.entry.js +0 -1
  52. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/helper-tabs/.stencil/packages/helper-tabs/stencil.config.d.ts +0 -2
@@ -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,6 +0,0 @@
1
- import { H as HelperTab$1, d as defineCustomElement$1 } from './helper-tab2.js';
2
-
3
- const HelperTab = HelperTab$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { HelperTab, defineCustomElement };
@@ -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;
@@ -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';
@@ -1 +0,0 @@
1
- export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';