@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,131 +1,106 @@
1
- import { r as registerInstance, h, g as getElement } from './index-77d38aa8.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-53eb88db.js';
2
2
 
3
3
  const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
4
+ const HelperTabStyle0 = helperTabCss;
4
5
 
5
6
  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;
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.setClientStyling = () => {
10
+ let sheet = document.createElement('style');
11
+ sheet.innerHTML = this.clientStyling;
12
+ this.stylingContainer.prepend(sheet);
13
+ };
14
+ this.setClientStylingURL = () => {
15
+ let cssFile = document.createElement('style');
16
+ setTimeout(() => {
17
+ cssFile.innerHTML = this.clientStylingUrlContent;
18
+ this.stylingContainer.prepend(cssFile);
19
+ }, 1);
20
+ };
21
+ this.selectedIndex = 0;
22
+ this.cmsEndpoint = undefined;
23
+ this.clientStyling = '';
24
+ this.clientStylingUrlContent = '';
25
+ this.tabContent = '';
26
+ this.limitStylingAppends = false;
48
27
  }
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!")));
28
+ connectedCallback() {
29
+ /**
30
+ * fetch(cmsEndpoint + / + / + selectedIndex)
31
+ */
55
32
  }
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?")));
33
+ componentDidRender() {
34
+ // start custom styling area
35
+ if (!this.limitStylingAppends && this.stylingContainer) {
36
+ if (this.clientStyling)
37
+ this.setClientStyling();
38
+ if (this.clientStylingUrlContent)
39
+ this.setClientStylingURL();
40
+ this.limitStylingAppends = true;
41
+ }
42
+ // end custom styling area
43
+ }
44
+ render() {
45
+ this.tabContent = h("div", { key: 'd69c61827b4fb6d934c72b0b2d37d72fca307575', 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.");
46
+ if (this.selectedIndex + 1 == 2) {
47
+ this.tabContent = h("div", { key: 'ab912cbb3bc3e88ecf8fe5f8f0e7eb16460100bd', class: "TabContent", ref: el => this.stylingContainer = el }, h("ol", { key: '17bed41dffe7d5578452ee13a47b442d10366ce2' }, h("li", { key: 'cf0da42f07cf92f5cea9c9f504c8836e528a5708' }, "Register or Login"), h("li", { key: '4a0339df365c6b1a37b8a74c5022a56197e870db' }, "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", { key: '3f29a9b17c1059493648247868b83eb71241b8bd' }, "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!")));
48
+ }
49
+ else if (this.selectedIndex + 1 == 3) {
50
+ this.tabContent = h("div", { key: 'ceac54698e0e5c55a049600f02e8f413a76a1c33', class: "TabContent", ref: el => this.stylingContainer = el }, h("ul", { key: '426d89c86a1d44f6d515bc1a7902e43317127939' }, h("li", { key: '457a225564399001dcab48097578174a27231ca7' }, "What are my odds of winning?"), h("li", { key: 'd35220f2aca215eff391cab54d719f18ef906c77' }, "How can I find out if I\u2019ve won a draw game?"), h("li", { key: 'fcd560ee4b6740c319cf0f98a0b98da8fd9e14a4' }, "How do I claim my prize?")));
51
+ }
52
+ return (this.tabContent);
58
53
  }
59
- return (this.tabContent);
60
- }
61
54
  };
62
- HelperTab.style = helperTabCss;
55
+ HelperTab.style = HelperTabStyle0;
63
56
 
64
57
  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}";
58
+ const HelperTabsStyle0 = helperTabsCss;
65
59
 
66
60
  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;
61
+ constructor(hostRef) {
62
+ registerInstance(this, hostRef);
63
+ this.setClientStyling = () => {
64
+ let sheet = document.createElement('style');
65
+ sheet.innerHTML = this.clientStyling;
66
+ this.stylingContainer.prepend(sheet);
67
+ };
68
+ this.setClientStylingURL = () => {
69
+ let cssFile = document.createElement('style');
70
+ setTimeout(() => {
71
+ cssFile.innerHTML = this.clientStylingUrlContent;
72
+ this.stylingContainer.prepend(cssFile);
73
+ }, 1);
74
+ };
75
+ this.disabled = false;
76
+ this.label = undefined;
77
+ this.selected = false;
78
+ this.cmsEndpoint = undefined;
79
+ this.selectedIndex = 0;
80
+ this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
81
+ this.clientStyling = '';
82
+ this.clientStylingurl = '';
83
+ this.clientStylingUrlContent = '';
84
+ this.limitStylingAppends = false;
85
+ }
86
+ connectedCallback() {
87
+ }
88
+ componentDidRender() {
89
+ // start custom styling area
90
+ if (!this.limitStylingAppends && this.stylingContainer) {
91
+ this.setClientStyling();
92
+ if (this.clientStylingUrlContent) {
93
+ this.setClientStylingURL();
94
+ }
95
+ this.limitStylingAppends = true;
96
+ }
97
+ // end custom styling area
98
+ }
99
+ render() {
100
+ return (h("div", { key: '841b2a4b84f2ecdaf692b9cab2eac4b3413186e7', ref: el => this.stylingContainer = el }, h("div", { key: '4c5d57e669f9f45d204bff8a85ca89a0574c4627', class: "Tabs" }, this.tabs.map((tab, index) => h("button", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))), h("div", { key: '7ba983dec3b0355f390b19191d0d823914f09037' }, h("helper-tab", { key: 'e6c7739d50948582d8d14d530828508b4cb90d6e', selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
121
101
  }
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); }
102
+ get host() { return getElement(this); }
128
103
  };
129
- HelperTabs.style = helperTabsCss;
104
+ HelperTabs.style = HelperTabsStyle0;
130
105
 
131
106
  export { HelperTab as helper_tab, HelperTabs as helper_tabs };
@@ -1,17 +1,20 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-77d38aa8.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-53eb88db.js';
2
+ export { s as setNonce } from './index-53eb88db.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
2
4
 
3
5
  /*
4
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
5
7
  */
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);
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
13
15
  };
14
16
 
15
- patchBrowser().then(options => {
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
16
19
  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
20
  });