@everymatrix/lottery-bullet 1.31.2 → 1.32.4
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/LICENSE +21 -0
- package/package.json +3 -2
- package/dist/cjs/index-5dd252d5.js +0 -1178
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/lottery-bullet.cjs.entry.js +0 -73
- package/dist/cjs/lottery-bullet.cjs.js +0 -19
- package/dist/collection/collection-manifest.json +0 -12
- package/dist/collection/components/lottery-bullet/lottery-bullet.css +0 -136
- package/dist/collection/components/lottery-bullet/lottery-bullet.js +0 -185
- package/dist/collection/components/lottery-bullet/lottery-bullet.types.js +0 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/utils.js +0 -0
- 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/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/lottery-bullet.entry.js +0 -69
- package/dist/esm/lottery-bullet.js +0 -17
- 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/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/lottery-bullet/index.esm.js +0 -0
- package/dist/lottery-bullet/lottery-bullet.esm.js +0 -1
- package/dist/lottery-bullet/p-685e27bc.entry.js +0 -1
- package/dist/lottery-bullet/p-78954f38.js +0 -1
- package/dist/stencil.config.js +0 -22
- package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/lottery-bullet/.stencil/packages/lottery-bullet/stencil.config.d.ts +0 -2
- package/dist/types/components/lottery-bullet/lottery-bullet.d.ts +0 -35
- package/dist/types/components/lottery-bullet/lottery-bullet.types.d.ts +0 -4
- package/dist/types/components.d.ts +0 -82
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1565
- package/dist/types/utils/utils.d.ts +0 -0
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -10
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let e,t,n=!1;const l="undefined"!=typeof window?window:{},s=l.document||{head:{}},o={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},r=e=>Promise.resolve(e),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),c=new WeakMap,u=e=>"sc-"+e.o,a={},f=e=>"object"==(e=typeof e)||"function"===e,$=(e,t,...n)=>{let l=null,s=!1,o=!1,r=[];const i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!f(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?d(null,l):l),o=s)};if(i(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const c=d(e,null);return c.u=t,r.length>0&&(c.$=r),c},d=(e,t)=>({t:0,h:e,i:t,m:null,$:null,u:null}),h={},y=(e,t,n,s,r,i)=>{if(n!==s){let c=_(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,l=p(n),o=p(s);t.remove(...l.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!l.includes(e))))}else if("ref"===t)s&&s(e);else if(c||"o"!==t[0]||"n"!==t[1]){const l=f(s);if((c||l&&null!==s)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{let l=null==s?"":s;"list"===t?c=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}null==s||!1===s?!1===s&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&i||r)&&!l&&e.setAttribute(t,s=!0===s?"":s)}else t="-"===t[2]?t.slice(3):_(l,u)?u.slice(2):u[2]+t.slice(3),n&&o.rel(e,t,n,!1),s&&o.ael(e,t,s,!1)}},m=/\s/,p=e=>e?e.split(m):[],b=(e,t,n,l)=>{const s=11===t.m.nodeType&&t.m.host?t.m.host:t.m,o=e&&e.u||a,r=t.u||a;for(l in o)l in r||y(s,l,o[l],void 0,n,t.t);for(l in r)y(s,l,o[l],r[l],n,t.t)},w=(t,n,l)=>{let o,r,i=n.$[l],c=0;if(null!==i.i)o=i.m=s.createTextNode(i.i);else if(o=i.m=s.createElement(i.h),b(null,i,!1),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),i.$)for(c=0;c<i.$.length;++c)r=w(t,i,c),r&&o.appendChild(r);return o},S=(e,n,l,s,o,r)=>{let i,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=w(null,l,o),i&&(s[o].m=i,c.insertBefore(i,n)))},g=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.m,M(l),s.remove())},j=(e,t)=>e.h===t.h,v=(e,t)=>{const n=t.m=e.m,l=e.$,s=t.$,o=t.i;null===o?(b(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,r=0,i=t.length-1,c=t[0],u=t[i],a=l.length-1,f=l[0],$=l[a];for(;o<=i&&r<=a;)null==c?c=t[++o]:null==u?u=t[--i]:null==f?f=l[++r]:null==$?$=l[--a]:j(c,f)?(v(c,f),c=t[++o],f=l[++r]):j(u,$)?(v(u,$),u=t[--i],$=l[--a]):j(c,$)?(v(c,$),e.insertBefore(c.m,u.m.nextSibling),c=t[++o],$=l[--a]):j(u,f)?(v(u,f),e.insertBefore(u.m,c.m),u=t[--i],f=l[++r]):(s=w(t&&t[r],n,r),f=l[++r],s&&c.m.parentNode.insertBefore(s,c.m));o>i?S(e,null==l[a+1]?null:l[a+1].m,n,l,r,a):r>a&&g(t,o,i)})(n,l,t,s):null!==s?(null!==e.i&&(n.textContent=""),S(n,null,t,s,0,s.length-1)):null!==l&&g(l,0,l.length-1)):e.i!==o&&(n.data=o)},M=e=>{e.u&&e.u.ref&&e.u.ref(null),e.$&&e.$.map(M)},k=(e,t,n)=>{const l=(e=>F(e).p)(e);return{emit:e=>C(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},C=(e,t,n)=>{const l=o.ce(t,n);return e.dispatchEvent(l),l},O=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},P=(e,t)=>{if(e.t|=16,!(4&e.t))return O(e,e.g),ee((()=>x(e,t)));e.t|=512},x=(e,t)=>{const n=e.j;return L(void 0,(()=>E(e,n,t)))},E=async(e,t,n)=>{const l=e.p,o=l["s-rc"];n&&(e=>{const t=e.v,n=e.p,l=t.t,o=((e,t)=>{let n=u(t),l=I.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=c.get(e=e.head||e);o||c.set(e,o=new Set),o.has(n)||(t=s.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);N(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>R(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},N=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.p,o=n.v,r=n.M||d(null,null),i=(e=>e&&e.h===h)(l)?l:$(null,null,l);t=s.tagName,o.k&&(i.u=i.u||{},o.k.map((([e,t])=>i.u[t]=s[e]))),i.h=null,i.t|=4,n.M=i,i.m=r.m=s.shadowRoot||s,e=s["s-sc"],v(r,i)})(n,l)}catch(e){z(e,n.p)}return null},R=e=>{const t=e.p,n=e.g;A(e.j,"componentDidRender"),64&e.t||(e.t|=64,U(t),e.C(t),n||T()),e.S&&(e.S(),e.S=void 0),512&e.t&&Z((()=>P(e,!1))),e.t&=-517},T=()=>{U(s.documentElement),Z((()=>C(l,"appload",{detail:{namespace:"lottery-bullet"}})))},A=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){z(e)}},L=(e,t)=>e&&e.then?e.then(t):t(),U=e=>e.classList.add("hydrated"),W=(e,t,n)=>{if(t.O){const l=Object.entries(t.O),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>F(this).P.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=F(e),o=s.P.get(t),r=s.t,i=s.j;n=((e,t)=>null==e||f(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.O[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.P.set(t,n),i&&2==(18&r)&&P(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){o.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.k.push([e,s]),s}))}}return e},q=(e,t={})=>{const n=[],r=t.exclude||[],c=l.customElements,a=s.head,f=a.querySelector("meta[charset]"),$=s.createElement("style"),d=[];let h,y=!0;Object.assign(o,t),o.l=new URL(t.resourcesUrl||"./",s.baseURI).href,e.map((e=>{e[1].map((t=>{const l={t:t[0],o:t[1],O:t[2],N:t[3]};l.O=t[2],l.k=[];const s=l.o,a=class extends HTMLElement{constructor(e){super(e),V(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),y?d.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=F(e),n=t.v,l=()=>{};if(!(1&t.t)){t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){O(t,t.g=n);break}}n.O&&Object.entries(n.O).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=G(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(W(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){z(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=u(n);if(!I.has(t)){const l=()=>{};((e,t,n)=>{let l=I.get(e);i&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,I.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.g,r=()=>P(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>{}))}componentOnReady(){return F(this).R}};l.T=e[0],r.includes(s)||c.get(s)||(n.push(s),c.define(s,W(a,l,1)))}))})),$.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),a.insertBefore($,f?f.nextSibling:a.firstChild),y=!1,d.length?d.map((e=>e.connectedCallback())):o.jmp((()=>h=setTimeout(T,30)))},D=new WeakMap,F=e=>D.get(e),H=(e,t)=>D.set(t.j=e,t),V=(e,t)=>{const n={t:0,p:e,v:t,P:new Map};return n.R=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],D.set(e,n)},_=(e,t)=>t in e,z=(e,t)=>(0,console.error)(e,t),B=new Map,G=e=>{const t=e.o.replace(/-/g,"_"),n=e.T,l=B.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(B.set(n,e),e[t])),z)},I=new Map,J=[],K=[],Q=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&o.t?Z(Y):o.raf(Y))},X=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){z(e)}e.length=0},Y=()=>{X(J),X(K),(n=J.length>0)&&o.raf(Y)},Z=e=>r().then(e),ee=Q(K,!0);export{q as b,k as c,$ as h,r as p,H as r}
|
package/dist/stencil.config.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { sass } from '@stencil/sass';
|
|
2
|
-
export const config = {
|
|
3
|
-
namespace: 'lottery-bullet',
|
|
4
|
-
taskQueue: 'async',
|
|
5
|
-
plugins: [sass()],
|
|
6
|
-
outputTargets: [
|
|
7
|
-
{
|
|
8
|
-
type: 'dist',
|
|
9
|
-
esmLoaderPath: '../loader',
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
type: 'dist-custom-elements',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
type: 'docs-readme',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
type: 'www',
|
|
19
|
-
serviceWorker: null, // disable service workers
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { BulletEvent } from './lottery-bullet.types';
|
|
3
|
-
export declare class LotteryBullet {
|
|
4
|
-
/**
|
|
5
|
-
* Value of the bullet
|
|
6
|
-
*/
|
|
7
|
-
value: string;
|
|
8
|
-
/**
|
|
9
|
-
* Marks if the bullet should be selectable
|
|
10
|
-
*/
|
|
11
|
-
selectable: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Marks if the bullet should be selected
|
|
14
|
-
*/
|
|
15
|
-
isSelected: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Client custom styling via string
|
|
18
|
-
*/
|
|
19
|
-
clientStyling: string;
|
|
20
|
-
/**
|
|
21
|
-
* Client custom styling via url content
|
|
22
|
-
*/
|
|
23
|
-
clientStylingUrlContent: string;
|
|
24
|
-
private limitStylingAppends;
|
|
25
|
-
private stylingContainer;
|
|
26
|
-
/**
|
|
27
|
-
* When a bullet is selected/deselected this event is emmited
|
|
28
|
-
*/
|
|
29
|
-
bulletEvent: EventEmitter<BulletEvent>;
|
|
30
|
-
private select;
|
|
31
|
-
componentDidRender(): void;
|
|
32
|
-
setClientStyling: () => void;
|
|
33
|
-
setClientStylingURL: () => void;
|
|
34
|
-
render(): void;
|
|
35
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/**
|
|
4
|
-
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
-
* It contains typing information for all components that exist in this project.
|
|
6
|
-
*/
|
|
7
|
-
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { BulletEvent } from "./components/lottery-bullet/lottery-bullet.types";
|
|
9
|
-
export namespace Components {
|
|
10
|
-
interface LotteryBullet {
|
|
11
|
-
/**
|
|
12
|
-
* Client custom styling via string
|
|
13
|
-
*/
|
|
14
|
-
"clientStyling": string;
|
|
15
|
-
/**
|
|
16
|
-
* Client custom styling via url content
|
|
17
|
-
*/
|
|
18
|
-
"clientStylingUrlContent": string;
|
|
19
|
-
/**
|
|
20
|
-
* Marks if the bullet should be selected
|
|
21
|
-
*/
|
|
22
|
-
"isSelected": boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Marks if the bullet should be selectable
|
|
25
|
-
*/
|
|
26
|
-
"selectable": boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Value of the bullet
|
|
29
|
-
*/
|
|
30
|
-
"value": string;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
declare global {
|
|
34
|
-
interface HTMLLotteryBulletElement extends Components.LotteryBullet, HTMLStencilElement {
|
|
35
|
-
}
|
|
36
|
-
var HTMLLotteryBulletElement: {
|
|
37
|
-
prototype: HTMLLotteryBulletElement;
|
|
38
|
-
new (): HTMLLotteryBulletElement;
|
|
39
|
-
};
|
|
40
|
-
interface HTMLElementTagNameMap {
|
|
41
|
-
"lottery-bullet": HTMLLotteryBulletElement;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
declare namespace LocalJSX {
|
|
45
|
-
interface LotteryBullet {
|
|
46
|
-
/**
|
|
47
|
-
* Client custom styling via string
|
|
48
|
-
*/
|
|
49
|
-
"clientStyling"?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Client custom styling via url content
|
|
52
|
-
*/
|
|
53
|
-
"clientStylingUrlContent"?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Marks if the bullet should be selected
|
|
56
|
-
*/
|
|
57
|
-
"isSelected"?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* When a bullet is selected/deselected this event is emmited
|
|
60
|
-
*/
|
|
61
|
-
"onLotteryBulletSelection"?: (event: CustomEvent<BulletEvent>) => void;
|
|
62
|
-
/**
|
|
63
|
-
* Marks if the bullet should be selectable
|
|
64
|
-
*/
|
|
65
|
-
"selectable"?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Value of the bullet
|
|
68
|
-
*/
|
|
69
|
-
"value"?: string;
|
|
70
|
-
}
|
|
71
|
-
interface IntrinsicElements {
|
|
72
|
-
"lottery-bullet": LotteryBullet;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
export { LocalJSX as JSX };
|
|
76
|
-
declare module "@stencil/core" {
|
|
77
|
-
export namespace JSX {
|
|
78
|
-
interface IntrinsicElements {
|
|
79
|
-
"lottery-bullet": LocalJSX.LotteryBullet & JSXBase.HTMLAttributes<HTMLLotteryBulletElement>;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|