@everymatrix/lottery-bullet 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 (49) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-610b124e.js +1198 -0
  3. package/dist/cjs/loader.cjs.js +6 -12
  4. package/dist/cjs/lottery-bullet.cjs.entry.js +48 -62
  5. package/dist/cjs/lottery-bullet.cjs.js +16 -10
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/lottery-bullet/index.js +1 -0
  8. package/dist/collection/components/lottery-bullet/lottery-bullet.css +2 -2
  9. package/dist/collection/components/lottery-bullet/lottery-bullet.js +177 -181
  10. package/dist/esm/app-globals-0f993ce5.js +3 -0
  11. package/dist/esm/index-c0429526.js +1171 -0
  12. package/dist/esm/loader.js +6 -12
  13. package/dist/esm/lottery-bullet.entry.js +48 -62
  14. package/dist/esm/lottery-bullet.js +13 -10
  15. package/dist/lottery-bullet/lottery-bullet.esm.js +1 -1
  16. package/dist/lottery-bullet/p-376c8f84.js +2 -0
  17. package/dist/lottery-bullet/p-e1255160.js +1 -0
  18. package/dist/lottery-bullet/p-f6ec8b64.entry.js +1 -0
  19. package/dist/stencil.config.dev.js +17 -0
  20. package/dist/stencil.config.js +14 -19
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.d.ts +2 -0
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.dev.d.ts +2 -0
  23. package/dist/types/components/lottery-bullet/index.d.ts +1 -0
  24. package/dist/types/components/lottery-bullet/lottery-bullet.d.ts +31 -31
  25. package/dist/types/components/lottery-bullet/lottery-bullet.types.d.ts +2 -2
  26. package/dist/types/components.d.ts +17 -1
  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 +9 -5
  35. package/dist/cjs/index-5dd252d5.js +0 -1178
  36. package/dist/components/index.d.ts +0 -26
  37. package/dist/components/index.js +0 -1
  38. package/dist/components/lottery-bullet.d.ts +0 -11
  39. package/dist/components/lottery-bullet.js +0 -94
  40. package/dist/esm/index-fae2cc33.js +0 -1152
  41. package/dist/esm/polyfills/core-js.js +0 -11
  42. package/dist/esm/polyfills/css-shim.js +0 -1
  43. package/dist/esm/polyfills/dom.js +0 -79
  44. package/dist/esm/polyfills/es5-html-element.js +0 -1
  45. package/dist/esm/polyfills/index.js +0 -34
  46. package/dist/esm/polyfills/system.js +0 -6
  47. package/dist/lottery-bullet/p-685e27bc.entry.js +0 -1
  48. package/dist/lottery-bullet/p-78954f38.js +0 -1
  49. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/lottery-bullet/.stencil/packages/lottery-bullet/stencil.config.d.ts +0 -2
@@ -2,20 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-5dd252d5.js');
5
+ const index = require('./index-610b124e.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
6
7
 
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(() => {
8
+ const defineCustomElements = async (win, options) => {
9
+ if (typeof window === 'undefined') return undefined;
10
+ await appGlobals.globalScripts();
17
11
  return index.bootstrapLazy([["lottery-bullet.cjs",[[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
18
- });
19
12
  };
20
13
 
14
+ exports.setNonce = index.setNonce;
21
15
  exports.defineCustomElements = defineCustomElements;
@@ -2,72 +2,58 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-5dd252d5.js');
5
+ const index = require('./index-610b124e.js');
6
6
 
7
- const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:#000000;display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px #ffffff;background:radial-gradient(circle at top, white 0%, white 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, white 0%, #f1f1f1 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#ffffff;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #00958f}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#D4D4D4;border:solid 2px #D4D4D4;cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #D4D4D4;cursor:default}";
7
+ const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:#000000;display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px #ffffff;background:radial-gradient(circle at top, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, rgb(255, 255, 255) 0%, rgb(241, 241, 241) 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#ffffff;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #00958f}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#D4D4D4;border:solid 2px #D4D4D4;cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:#f1f1f1;background:#9EC258;background:-webkit-radial-gradient(top, #00958f, #004D4A);background:-moz-radial-gradient(top, #00958f, #004D4A);background:radial-gradient(to bottom, #00958f, #004D4A);border:solid 2px #D4D4D4;cursor:default}";
8
+ const LotteryBulletStyle0 = lotteryBulletCss;
8
9
 
9
10
  const LotteryBullet = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.bulletEvent = index.createEvent(this, "lotteryBulletSelection", 7);
13
- /**
14
- * Value of the bullet
15
- */
16
- this.value = '0';
17
- /**
18
- * Marks if the bullet should be selectable
19
- */
20
- this.selectable = true;
21
- /**
22
- * Marks if the bullet should be selected
23
- */
24
- this.isSelected = false;
25
- /**
26
- * Client custom styling via string
27
- */
28
- this.clientStyling = '';
29
- /**
30
- * Client custom styling via url content
31
- */
32
- this.clientStylingUrlContent = '';
33
- this.limitStylingAppends = false;
34
- this.select = () => {
35
- if (this.selectable) {
36
- this.isSelected = !this.isSelected;
37
- this.bulletEvent.emit({
38
- value: this.value,
39
- selected: this.isSelected
40
- });
41
- }
42
- };
43
- this.setClientStyling = () => {
44
- let sheet = document.createElement('style');
45
- sheet.innerHTML = this.clientStyling;
46
- this.stylingContainer.prepend(sheet);
47
- };
48
- this.setClientStylingURL = () => {
49
- let cssFile = document.createElement('style');
50
- setTimeout(() => {
51
- cssFile.innerHTML = this.clientStylingUrlContent;
52
- this.stylingContainer.prepend(cssFile);
53
- }, 1);
54
- };
55
- }
56
- componentDidRender() {
57
- // start custom styling area
58
- if (!this.limitStylingAppends && this.stylingContainer) {
59
- if (this.clientStyling)
60
- this.setClientStyling();
61
- if (this.clientStylingUrlContent)
62
- this.setClientStylingURL();
63
- this.limitStylingAppends = true;
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.bulletEvent = index.createEvent(this, "lotteryBulletSelection", 7);
14
+ this.select = () => {
15
+ if (this.selectable) {
16
+ this.isSelected = !this.isSelected;
17
+ this.bulletEvent.emit({
18
+ value: this.value,
19
+ selected: this.isSelected
20
+ });
21
+ }
22
+ };
23
+ this.setClientStyling = () => {
24
+ let sheet = document.createElement('style');
25
+ sheet.innerHTML = this.clientStyling;
26
+ this.stylingContainer.prepend(sheet);
27
+ };
28
+ this.setClientStylingURL = () => {
29
+ let cssFile = document.createElement('style');
30
+ setTimeout(() => {
31
+ cssFile.innerHTML = this.clientStylingUrlContent;
32
+ this.stylingContainer.prepend(cssFile);
33
+ }, 1);
34
+ };
35
+ this.value = '0';
36
+ this.selectable = true;
37
+ this.isSelected = false;
38
+ this.clientStyling = '';
39
+ this.clientStylingUrlContent = '';
40
+ this.limitStylingAppends = false;
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
+ return (index.h("div", { key: 'af3601684ecf1f39d65fc9461430cba96b9e4b8c', class: 'Circle ' + (this.selectable ? '' : 'Disabled') + (this.isSelected ? 'Selected' : ''), onClick: () => this.select(), ref: el => this.stylingContainer = el }, this.value));
64
55
  }
65
- // end custom styling area
66
- }
67
- render() {
68
- return (index.h("div", { class: 'Circle ' + (this.selectable ? '' : 'Disabled') + (this.isSelected ? 'Selected' : ''), onClick: () => this.select(), ref: el => this.stylingContainer = el }, this.value));
69
- }
70
56
  };
71
- LotteryBullet.style = lotteryBulletCss;
57
+ LotteryBullet.style = LotteryBulletStyle0;
72
58
 
73
59
  exports.lottery_bullet = LotteryBullet;
@@ -1,19 +1,25 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-5dd252d5.js');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-610b124e.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('lottery-bullet.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('lottery-bullet.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([["lottery-bullet.cjs",[[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
19
23
  });
24
+
25
+ exports.setNonce = index.setNonce;
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "entries": [
3
- "./components/lottery-bullet/lottery-bullet.js"
3
+ "components/lottery-bullet/lottery-bullet.js"
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.15.2",
8
- "typescriptVersion": "4.5.4"
7
+ "version": "4.20.0",
8
+ "typescriptVersion": "5.5.3"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []
@@ -0,0 +1 @@
1
+ export { LotteryBullet } from './lottery-bullet';
@@ -90,7 +90,7 @@
90
90
  justify-content: center;
91
91
  align-items: center;
92
92
  border: solid 2px #ffffff;
93
- background: radial-gradient(circle at top, white 0%, white 100%);
93
+ background: radial-gradient(circle at top, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%);
94
94
  font-weight: bold;
95
95
  border-radius: 50%;
96
96
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
@@ -103,7 +103,7 @@
103
103
  .Circle:hover {
104
104
  -webkit-animation: hover-rotate 0.4s linear both;
105
105
  animation: hover-rotate 0.4s linear both;
106
- background: radial-gradient(circle at top, white 0%, #f1f1f1 100%);
106
+ background: radial-gradient(circle at top, rgb(255, 255, 255) 0%, rgb(241, 241, 241) 100%);
107
107
  }
108
108
  .Circle.Selected {
109
109
  -webkit-animation: selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
@@ -1,185 +1,181 @@
1
- import { Component, h, Prop, Event, State } from '@stencil/core';
1
+ import { h } from "@stencil/core";
2
2
  export class LotteryBullet {
3
- constructor() {
4
- /**
5
- * Value of the bullet
6
- */
7
- this.value = '0';
8
- /**
9
- * Marks if the bullet should be selectable
10
- */
11
- this.selectable = true;
12
- /**
13
- * Marks if the bullet should be selected
14
- */
15
- this.isSelected = false;
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.limitStylingAppends = false;
25
- this.select = () => {
26
- if (this.selectable) {
27
- this.isSelected = !this.isSelected;
28
- this.bulletEvent.emit({
29
- value: this.value,
30
- selected: this.isSelected
31
- });
32
- }
33
- };
34
- this.setClientStyling = () => {
35
- let sheet = document.createElement('style');
36
- sheet.innerHTML = this.clientStyling;
37
- this.stylingContainer.prepend(sheet);
38
- };
39
- this.setClientStylingURL = () => {
40
- let cssFile = document.createElement('style');
41
- setTimeout(() => {
42
- cssFile.innerHTML = this.clientStylingUrlContent;
43
- this.stylingContainer.prepend(cssFile);
44
- }, 1);
45
- };
46
- }
47
- componentDidRender() {
48
- // start custom styling area
49
- if (!this.limitStylingAppends && this.stylingContainer) {
50
- if (this.clientStyling)
51
- this.setClientStyling();
52
- if (this.clientStylingUrlContent)
53
- this.setClientStylingURL();
54
- this.limitStylingAppends = true;
3
+ constructor() {
4
+ this.select = () => {
5
+ if (this.selectable) {
6
+ this.isSelected = !this.isSelected;
7
+ this.bulletEvent.emit({
8
+ value: this.value,
9
+ selected: this.isSelected
10
+ });
11
+ }
12
+ };
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.value = '0';
26
+ this.selectable = true;
27
+ this.isSelected = false;
28
+ this.clientStyling = '';
29
+ this.clientStylingUrlContent = '';
30
+ this.limitStylingAppends = false;
55
31
  }
56
- // end custom styling area
57
- }
58
- render() {
59
- return (h("div", { class: 'Circle ' + (this.selectable ? '' : 'Disabled') + (this.isSelected ? 'Selected' : ''), onClick: () => this.select(), ref: el => this.stylingContainer = el }, this.value));
60
- }
61
- static get is() { return "lottery-bullet"; }
62
- static get encapsulation() { return "shadow"; }
63
- static get originalStyleUrls() { return {
64
- "$": ["lottery-bullet.scss"]
65
- }; }
66
- static get styleUrls() { return {
67
- "$": ["lottery-bullet.css"]
68
- }; }
69
- static get properties() { return {
70
- "value": {
71
- "type": "string",
72
- "mutable": false,
73
- "complexType": {
74
- "original": "string",
75
- "resolved": "string",
76
- "references": {}
77
- },
78
- "required": false,
79
- "optional": false,
80
- "docs": {
81
- "tags": [],
82
- "text": "Value of the bullet"
83
- },
84
- "attribute": "value",
85
- "reflect": true,
86
- "defaultValue": "'0'"
87
- },
88
- "selectable": {
89
- "type": "boolean",
90
- "mutable": false,
91
- "complexType": {
92
- "original": "boolean",
93
- "resolved": "boolean",
94
- "references": {}
95
- },
96
- "required": false,
97
- "optional": false,
98
- "docs": {
99
- "tags": [],
100
- "text": "Marks if the bullet should be selectable"
101
- },
102
- "attribute": "selectable",
103
- "reflect": true,
104
- "defaultValue": "true"
105
- },
106
- "isSelected": {
107
- "type": "boolean",
108
- "mutable": false,
109
- "complexType": {
110
- "original": "boolean",
111
- "resolved": "boolean",
112
- "references": {}
113
- },
114
- "required": false,
115
- "optional": false,
116
- "docs": {
117
- "tags": [],
118
- "text": "Marks if the bullet should be selected"
119
- },
120
- "attribute": "is-selected",
121
- "reflect": true,
122
- "defaultValue": "false"
123
- },
124
- "clientStyling": {
125
- "type": "string",
126
- "mutable": false,
127
- "complexType": {
128
- "original": "string",
129
- "resolved": "string",
130
- "references": {}
131
- },
132
- "required": false,
133
- "optional": false,
134
- "docs": {
135
- "tags": [],
136
- "text": "Client custom styling via string"
137
- },
138
- "attribute": "client-styling",
139
- "reflect": true,
140
- "defaultValue": "''"
141
- },
142
- "clientStylingUrlContent": {
143
- "type": "string",
144
- "mutable": false,
145
- "complexType": {
146
- "original": "string",
147
- "resolved": "string",
148
- "references": {}
149
- },
150
- "required": false,
151
- "optional": false,
152
- "docs": {
153
- "tags": [],
154
- "text": "Client custom styling via url content"
155
- },
156
- "attribute": "client-styling-url-content",
157
- "reflect": true,
158
- "defaultValue": "''"
159
- }
160
- }; }
161
- static get states() { return {
162
- "limitStylingAppends": {}
163
- }; }
164
- static get events() { return [{
165
- "method": "bulletEvent",
166
- "name": "lotteryBulletSelection",
167
- "bubbles": true,
168
- "cancelable": true,
169
- "composed": true,
170
- "docs": {
171
- "tags": [],
172
- "text": "When a bullet is selected/deselected this event is emmited"
173
- },
174
- "complexType": {
175
- "original": "BulletEvent",
176
- "resolved": "BulletEvent",
177
- "references": {
178
- "BulletEvent": {
179
- "location": "import",
180
- "path": "./lottery-bullet.types"
181
- }
32
+ componentDidRender() {
33
+ // start custom styling area
34
+ if (!this.limitStylingAppends && this.stylingContainer) {
35
+ if (this.clientStyling)
36
+ this.setClientStyling();
37
+ if (this.clientStylingUrlContent)
38
+ this.setClientStylingURL();
39
+ this.limitStylingAppends = true;
182
40
  }
183
- }
184
- }]; }
41
+ // end custom styling area
42
+ }
43
+ render() {
44
+ return (h("div", { key: 'af3601684ecf1f39d65fc9461430cba96b9e4b8c', class: 'Circle ' + (this.selectable ? '' : 'Disabled') + (this.isSelected ? 'Selected' : ''), onClick: () => this.select(), ref: el => this.stylingContainer = el }, this.value));
45
+ }
46
+ static get is() { return "lottery-bullet"; }
47
+ static get encapsulation() { return "shadow"; }
48
+ static get originalStyleUrls() {
49
+ return {
50
+ "$": ["lottery-bullet.scss"]
51
+ };
52
+ }
53
+ static get styleUrls() {
54
+ return {
55
+ "$": ["lottery-bullet.css"]
56
+ };
57
+ }
58
+ static get properties() {
59
+ return {
60
+ "value": {
61
+ "type": "string",
62
+ "mutable": false,
63
+ "complexType": {
64
+ "original": "string",
65
+ "resolved": "string",
66
+ "references": {}
67
+ },
68
+ "required": false,
69
+ "optional": false,
70
+ "docs": {
71
+ "tags": [],
72
+ "text": "Value of the bullet"
73
+ },
74
+ "attribute": "value",
75
+ "reflect": true,
76
+ "defaultValue": "'0'"
77
+ },
78
+ "selectable": {
79
+ "type": "boolean",
80
+ "mutable": false,
81
+ "complexType": {
82
+ "original": "boolean",
83
+ "resolved": "boolean",
84
+ "references": {}
85
+ },
86
+ "required": false,
87
+ "optional": false,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": "Marks if the bullet should be selectable"
91
+ },
92
+ "attribute": "selectable",
93
+ "reflect": true,
94
+ "defaultValue": "true"
95
+ },
96
+ "isSelected": {
97
+ "type": "boolean",
98
+ "mutable": false,
99
+ "complexType": {
100
+ "original": "boolean",
101
+ "resolved": "boolean",
102
+ "references": {}
103
+ },
104
+ "required": false,
105
+ "optional": false,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": "Marks if the bullet should be selected"
109
+ },
110
+ "attribute": "is-selected",
111
+ "reflect": true,
112
+ "defaultValue": "false"
113
+ },
114
+ "clientStyling": {
115
+ "type": "string",
116
+ "mutable": false,
117
+ "complexType": {
118
+ "original": "string",
119
+ "resolved": "string",
120
+ "references": {}
121
+ },
122
+ "required": false,
123
+ "optional": false,
124
+ "docs": {
125
+ "tags": [],
126
+ "text": "Client custom styling via string"
127
+ },
128
+ "attribute": "client-styling",
129
+ "reflect": true,
130
+ "defaultValue": "''"
131
+ },
132
+ "clientStylingUrlContent": {
133
+ "type": "string",
134
+ "mutable": false,
135
+ "complexType": {
136
+ "original": "string",
137
+ "resolved": "string",
138
+ "references": {}
139
+ },
140
+ "required": false,
141
+ "optional": false,
142
+ "docs": {
143
+ "tags": [],
144
+ "text": "Client custom styling via url content"
145
+ },
146
+ "attribute": "client-styling-url-content",
147
+ "reflect": true,
148
+ "defaultValue": "''"
149
+ }
150
+ };
151
+ }
152
+ static get states() {
153
+ return {
154
+ "limitStylingAppends": {}
155
+ };
156
+ }
157
+ static get events() {
158
+ return [{
159
+ "method": "bulletEvent",
160
+ "name": "lotteryBulletSelection",
161
+ "bubbles": true,
162
+ "cancelable": true,
163
+ "composed": true,
164
+ "docs": {
165
+ "tags": [],
166
+ "text": "When a bullet is selected/deselected this event is emmited"
167
+ },
168
+ "complexType": {
169
+ "original": "BulletEvent",
170
+ "resolved": "BulletEvent",
171
+ "references": {
172
+ "BulletEvent": {
173
+ "location": "import",
174
+ "path": "./lottery-bullet.types",
175
+ "id": "../../../../packages/stencil/lottery-bullet/src/components/lottery-bullet/lottery-bullet.types.ts::BulletEvent"
176
+ }
177
+ }
178
+ }
179
+ }];
180
+ }
185
181
  }
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };