@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.
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-610b124e.js +1198 -0
- package/dist/cjs/loader.cjs.js +6 -12
- package/dist/cjs/lottery-bullet.cjs.entry.js +48 -62
- package/dist/cjs/lottery-bullet.cjs.js +16 -10
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/lottery-bullet/index.js +1 -0
- package/dist/collection/components/lottery-bullet/lottery-bullet.css +2 -2
- package/dist/collection/components/lottery-bullet/lottery-bullet.js +177 -181
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-c0429526.js +1171 -0
- package/dist/esm/loader.js +6 -12
- package/dist/esm/lottery-bullet.entry.js +48 -62
- package/dist/esm/lottery-bullet.js +13 -10
- package/dist/lottery-bullet/lottery-bullet.esm.js +1 -1
- package/dist/lottery-bullet/p-376c8f84.js +2 -0
- package/dist/lottery-bullet/p-e1255160.js +1 -0
- package/dist/lottery-bullet/p-f6ec8b64.entry.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- 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
- 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
- package/dist/types/components/lottery-bullet/index.d.ts +1 -0
- package/dist/types/components/lottery-bullet/lottery-bullet.d.ts +31 -31
- package/dist/types/components/lottery-bullet/lottery-bullet.types.d.ts +2 -2
- package/dist/types/components.d.ts +17 -1
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +9 -5
- package/dist/cjs/index-5dd252d5.js +0 -1178
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/lottery-bullet.d.ts +0 -11
- package/dist/components/lottery-bullet.js +0 -94
- package/dist/esm/index-fae2cc33.js +0 -1152
- 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/lottery-bullet/p-685e27bc.entry.js +0 -1
- package/dist/lottery-bullet/p-78954f38.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/lottery-bullet/.stencil/packages/lottery-bullet/stencil.config.d.ts +0 -2
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* LotteryBullet 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,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface LotteryBullet extends Components.LotteryBullet, HTMLElement {}
|
|
4
|
-
export const LotteryBullet: {
|
|
5
|
-
prototype: LotteryBullet;
|
|
6
|
-
new (): LotteryBullet;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
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}";
|
|
4
|
-
|
|
5
|
-
const LotteryBullet$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
10
|
-
this.bulletEvent = createEvent(this, "lotteryBulletSelection", 7);
|
|
11
|
-
/**
|
|
12
|
-
* Value of the bullet
|
|
13
|
-
*/
|
|
14
|
-
this.value = '0';
|
|
15
|
-
/**
|
|
16
|
-
* Marks if the bullet should be selectable
|
|
17
|
-
*/
|
|
18
|
-
this.selectable = true;
|
|
19
|
-
/**
|
|
20
|
-
* Marks if the bullet should be selected
|
|
21
|
-
*/
|
|
22
|
-
this.isSelected = false;
|
|
23
|
-
/**
|
|
24
|
-
* Client custom styling via string
|
|
25
|
-
*/
|
|
26
|
-
this.clientStyling = '';
|
|
27
|
-
/**
|
|
28
|
-
* Client custom styling via url content
|
|
29
|
-
*/
|
|
30
|
-
this.clientStylingUrlContent = '';
|
|
31
|
-
this.limitStylingAppends = false;
|
|
32
|
-
this.select = () => {
|
|
33
|
-
if (this.selectable) {
|
|
34
|
-
this.isSelected = !this.isSelected;
|
|
35
|
-
this.bulletEvent.emit({
|
|
36
|
-
value: this.value,
|
|
37
|
-
selected: this.isSelected
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
this.setClientStyling = () => {
|
|
42
|
-
let sheet = document.createElement('style');
|
|
43
|
-
sheet.innerHTML = this.clientStyling;
|
|
44
|
-
this.stylingContainer.prepend(sheet);
|
|
45
|
-
};
|
|
46
|
-
this.setClientStylingURL = () => {
|
|
47
|
-
let cssFile = document.createElement('style');
|
|
48
|
-
setTimeout(() => {
|
|
49
|
-
cssFile.innerHTML = this.clientStylingUrlContent;
|
|
50
|
-
this.stylingContainer.prepend(cssFile);
|
|
51
|
-
}, 1);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
componentDidRender() {
|
|
55
|
-
// start custom styling area
|
|
56
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
57
|
-
if (this.clientStyling)
|
|
58
|
-
this.setClientStyling();
|
|
59
|
-
if (this.clientStylingUrlContent)
|
|
60
|
-
this.setClientStylingURL();
|
|
61
|
-
this.limitStylingAppends = true;
|
|
62
|
-
}
|
|
63
|
-
// end custom styling area
|
|
64
|
-
}
|
|
65
|
-
render() {
|
|
66
|
-
return (h("div", { class: 'Circle ' + (this.selectable ? '' : 'Disabled') + (this.isSelected ? 'Selected' : ''), onClick: () => this.select(), ref: el => this.stylingContainer = el }, this.value));
|
|
67
|
-
}
|
|
68
|
-
static get style() { return lotteryBulletCss; }
|
|
69
|
-
}, [1, "lottery-bullet", {
|
|
70
|
-
"value": [513],
|
|
71
|
-
"selectable": [516],
|
|
72
|
-
"isSelected": [516, "is-selected"],
|
|
73
|
-
"clientStyling": [513, "client-styling"],
|
|
74
|
-
"clientStylingUrlContent": [513, "client-styling-url-content"],
|
|
75
|
-
"limitStylingAppends": [32]
|
|
76
|
-
}]);
|
|
77
|
-
function defineCustomElement$1() {
|
|
78
|
-
if (typeof customElements === "undefined") {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
const components = ["lottery-bullet"];
|
|
82
|
-
components.forEach(tagName => { switch (tagName) {
|
|
83
|
-
case "lottery-bullet":
|
|
84
|
-
if (!customElements.get(tagName)) {
|
|
85
|
-
customElements.define(tagName, LotteryBullet$1);
|
|
86
|
-
}
|
|
87
|
-
break;
|
|
88
|
-
} });
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
const LotteryBullet = LotteryBullet$1;
|
|
92
|
-
const defineCustomElement = defineCustomElement$1;
|
|
93
|
-
|
|
94
|
-
export { LotteryBullet, defineCustomElement };
|