@everymatrix/helper-tabs 1.44.0 → 1.45.0

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
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const globalScripts = () => {};
4
+
5
+ exports.globalScripts = globalScripts;
@@ -2,135 +2,110 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c1f39e41.js');
5
+ const index = require('./index-e6be4b2d.js');
6
6
 
7
7
  const helperTabCss = ":host{display:block}.TabContent{font-size:14px;color:#000;font-weight:normal}";
8
+ const HelperTabStyle0 = helperTabCss;
8
9
 
9
10
  const HelperTab = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- /**
13
- * Selected index
14
- */
15
- this.selectedIndex = 0;
16
- /**
17
- * Client custom styling via string
18
- */
19
- this.clientStyling = '';
20
- /**
21
- * Client custom styling via url content
22
- */
23
- this.clientStylingUrlContent = '';
24
- this.tabContent = '';
25
- this.limitStylingAppends = false;
26
- this.setClientStyling = () => {
27
- let sheet = document.createElement('style');
28
- sheet.innerHTML = this.clientStyling;
29
- this.stylingContainer.prepend(sheet);
30
- };
31
- this.setClientStylingURL = () => {
32
- let cssFile = document.createElement('style');
33
- setTimeout(() => {
34
- cssFile.innerHTML = this.clientStylingUrlContent;
35
- this.stylingContainer.prepend(cssFile);
36
- }, 1);
37
- };
38
- }
39
- connectedCallback() {
40
- /**
41
- * fetch(cmsEndpoint + / + / + selectedIndex)
42
- */
43
- }
44
- componentDidRender() {
45
- // start custom styling area
46
- if (!this.limitStylingAppends && this.stylingContainer) {
47
- if (this.clientStyling)
48
- this.setClientStyling();
49
- if (this.clientStylingUrlContent)
50
- this.setClientStylingURL();
51
- this.limitStylingAppends = true;
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.setClientStyling = () => {
14
+ let sheet = document.createElement('style');
15
+ sheet.innerHTML = this.clientStyling;
16
+ this.stylingContainer.prepend(sheet);
17
+ };
18
+ this.setClientStylingURL = () => {
19
+ let cssFile = document.createElement('style');
20
+ setTimeout(() => {
21
+ cssFile.innerHTML = this.clientStylingUrlContent;
22
+ this.stylingContainer.prepend(cssFile);
23
+ }, 1);
24
+ };
25
+ this.selectedIndex = 0;
26
+ this.cmsEndpoint = undefined;
27
+ this.clientStyling = '';
28
+ this.clientStylingUrlContent = '';
29
+ this.tabContent = '';
30
+ this.limitStylingAppends = false;
52
31
  }
53
- // end custom styling area
54
- }
55
- render() {
56
- this.tabContent = index.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.");
57
- if (this.selectedIndex + 1 == 2) {
58
- this.tabContent = index.h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, index.h("ol", null, index.h("li", null, "Register or Login"), index.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."), index.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!")));
32
+ connectedCallback() {
33
+ /**
34
+ * fetch(cmsEndpoint + / + / + selectedIndex)
35
+ */
59
36
  }
60
- else if (this.selectedIndex + 1 == 3) {
61
- this.tabContent = index.h("div", { class: "TabContent", ref: el => this.stylingContainer = el }, index.h("ul", null, index.h("li", null, "What are my odds of winning?"), index.h("li", null, "How can I find out if I\u2019ve won a draw game?"), index.h("li", null, "How do I claim my prize?")));
37
+ componentDidRender() {
38
+ // start custom styling area
39
+ if (!this.limitStylingAppends && this.stylingContainer) {
40
+ if (this.clientStyling)
41
+ this.setClientStyling();
42
+ if (this.clientStylingUrlContent)
43
+ this.setClientStylingURL();
44
+ this.limitStylingAppends = true;
45
+ }
46
+ // end custom styling area
47
+ }
48
+ render() {
49
+ this.tabContent = index.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.");
50
+ if (this.selectedIndex + 1 == 2) {
51
+ this.tabContent = index.h("div", { key: 'ab912cbb3bc3e88ecf8fe5f8f0e7eb16460100bd', class: "TabContent", ref: el => this.stylingContainer = el }, index.h("ol", { key: '17bed41dffe7d5578452ee13a47b442d10366ce2' }, index.h("li", { key: 'cf0da42f07cf92f5cea9c9f504c8836e528a5708' }, "Register or Login"), index.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."), index.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!")));
52
+ }
53
+ else if (this.selectedIndex + 1 == 3) {
54
+ this.tabContent = index.h("div", { key: 'ceac54698e0e5c55a049600f02e8f413a76a1c33', class: "TabContent", ref: el => this.stylingContainer = el }, index.h("ul", { key: '426d89c86a1d44f6d515bc1a7902e43317127939' }, index.h("li", { key: '457a225564399001dcab48097578174a27231ca7' }, "What are my odds of winning?"), index.h("li", { key: 'd35220f2aca215eff391cab54d719f18ef906c77' }, "How can I find out if I\u2019ve won a draw game?"), index.h("li", { key: 'fcd560ee4b6740c319cf0f98a0b98da8fd9e14a4' }, "How do I claim my prize?")));
55
+ }
56
+ return (this.tabContent);
62
57
  }
63
- return (this.tabContent);
64
- }
65
58
  };
66
- HelperTab.style = helperTabCss;
59
+ HelperTab.style = HelperTabStyle0;
67
60
 
68
61
  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}";
62
+ const HelperTabsStyle0 = helperTabsCss;
69
63
 
70
64
  const HelperTabs = class {
71
- constructor(hostRef) {
72
- index.registerInstance(this, hostRef);
73
- /**
74
- * Tell me if it is disabled
75
- */
76
- this.disabled = false;
77
- /**
78
- * Tell me what tab is selected
79
- */
80
- this.selected = false;
81
- /**
82
- * Default selected index
83
- */
84
- this.selectedIndex = 0;
85
- /**
86
- * Tabs details
87
- */
88
- this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
89
- /**
90
- * Client custom styling via string
91
- */
92
- this.clientStyling = '';
93
- /**
94
- * Client custom styling via url
95
- */
96
- this.clientStylingurl = '';
97
- /**
98
- * Client custom styling via url content
99
- */
100
- this.clientStylingUrlContent = '';
101
- this.limitStylingAppends = false;
102
- this.setClientStyling = () => {
103
- let sheet = document.createElement('style');
104
- sheet.innerHTML = this.clientStyling;
105
- this.stylingContainer.prepend(sheet);
106
- };
107
- this.setClientStylingURL = () => {
108
- let cssFile = document.createElement('style');
109
- setTimeout(() => {
110
- cssFile.innerHTML = this.clientStylingUrlContent;
111
- this.stylingContainer.prepend(cssFile);
112
- }, 1);
113
- };
114
- }
115
- connectedCallback() {
116
- }
117
- componentDidRender() {
118
- // start custom styling area
119
- if (!this.limitStylingAppends && this.stylingContainer) {
120
- this.setClientStyling();
121
- if (this.clientStylingUrlContent) {
122
- this.setClientStylingURL();
123
- }
124
- this.limitStylingAppends = true;
65
+ constructor(hostRef) {
66
+ index.registerInstance(this, hostRef);
67
+ this.setClientStyling = () => {
68
+ let sheet = document.createElement('style');
69
+ sheet.innerHTML = this.clientStyling;
70
+ this.stylingContainer.prepend(sheet);
71
+ };
72
+ this.setClientStylingURL = () => {
73
+ let cssFile = document.createElement('style');
74
+ setTimeout(() => {
75
+ cssFile.innerHTML = this.clientStylingUrlContent;
76
+ this.stylingContainer.prepend(cssFile);
77
+ }, 1);
78
+ };
79
+ this.disabled = false;
80
+ this.label = undefined;
81
+ this.selected = false;
82
+ this.cmsEndpoint = undefined;
83
+ this.selectedIndex = 0;
84
+ this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
85
+ this.clientStyling = '';
86
+ this.clientStylingurl = '';
87
+ this.clientStylingUrlContent = '';
88
+ this.limitStylingAppends = false;
89
+ }
90
+ connectedCallback() {
91
+ }
92
+ componentDidRender() {
93
+ // start custom styling area
94
+ if (!this.limitStylingAppends && this.stylingContainer) {
95
+ this.setClientStyling();
96
+ if (this.clientStylingUrlContent) {
97
+ this.setClientStylingURL();
98
+ }
99
+ this.limitStylingAppends = true;
100
+ }
101
+ // end custom styling area
102
+ }
103
+ render() {
104
+ return (index.h("div", { key: '841b2a4b84f2ecdaf692b9cab2eac4b3413186e7', ref: el => this.stylingContainer = el }, index.h("div", { key: '4c5d57e669f9f45d204bff8a85ca89a0574c4627', class: "Tabs" }, this.tabs.map((tab, index$1) => index.h("button", { class: 'TabButton' + (this.selectedIndex == index$1 ? ' Active' : ''), onClick: () => this.selectedIndex = index$1 }, tab.label))), index.h("div", { key: '7ba983dec3b0355f390b19191d0d823914f09037' }, index.h("helper-tab", { key: 'e6c7739d50948582d8d14d530828508b4cb90d6e', selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
125
105
  }
126
- // end custom styling area
127
- }
128
- render() {
129
- return (index.h("div", { ref: el => this.stylingContainer = el }, index.h("div", { class: "Tabs" }, this.tabs.map((tab, index$1) => index.h("button", { class: 'TabButton' + (this.selectedIndex == index$1 ? ' Active' : ''), onClick: () => this.selectedIndex = index$1 }, tab.label))), index.h("div", null, index.h("helper-tab", { selectedIndex: this.selectedIndex, "client-styling": this.clientStyling, "client-stylingurl": this.clientStylingurl, "client-styling-url-content": this.clientStylingUrlContent }))));
130
- }
131
- get host() { return index.getElement(this); }
106
+ get host() { return index.getElement(this); }
132
107
  };
133
- HelperTabs.style = helperTabsCss;
108
+ HelperTabs.style = HelperTabsStyle0;
134
109
 
135
110
  exports.helper_tab = HelperTab;
136
111
  exports.helper_tabs = HelperTabs;
@@ -1,19 +1,25 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-c1f39e41.js');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e6be4b2d.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
4
7
 
5
8
  /*
6
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
7
10
  */
8
- const patchBrowser = () => {
9
- const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('helper-tabs.cjs.js', document.baseURI).href));
10
- const opts = {};
11
- if (importMeta !== '') {
12
- opts.resourcesUrl = new URL('.', importMeta).href;
13
- }
14
- return index.promiseResolve(opts);
11
+ var patchBrowser = () => {
12
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('helper-tabs.cjs.js', document.baseURI).href));
13
+ const opts = {};
14
+ if (importMeta !== "") {
15
+ opts.resourcesUrl = new URL(".", importMeta).href;
16
+ }
17
+ return index.promiseResolve(opts);
15
18
  };
16
19
 
17
- patchBrowser().then(options => {
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
18
22
  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);
19
23
  });
24
+
25
+ exports.setNonce = index.setNonce;