@everymatrix/casino-tournament-desc 1.66.1 → 1.67.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.
@@ -0,0 +1 @@
1
+ import{r as t,h as i,g as s}from"./index-ff8a1835.js";const e=class{constructor(i){t(this,i),this.desc=void 0,this.descTitle=void 0,this.useEvent=!0,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.stylingContainer=void 0,this.collapsed=[],this.tournamentDescriptions=[]}descCompletedHandler(t){t.detail&&this.useEvent&&(this.tournamentDescriptions=t.detail)}collapseText(t){this.collapsed[t]=!this.collapsed[t],this.collapsed=[...this.collapsed]}componentWillLoad(){0==this.useEvent&&this.desc&&this.descTitle&&this.tournamentDescriptions.push({title:this.descTitle,text:this.desc})}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const i=new CSSStyleSheet;i.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,i]}))}render(){return i("div",{key:"58eb843db2f73c1549d703040cb13b4a0ce6ed5c",class:"TournamentDescription"},this.tournamentDescriptions&&this.tournamentDescriptions.map(((t,s)=>i("div",{class:"DetailsCard"},t.title&&i("div",{class:"DetailsTitle"},i("p",{class:"Title"},t.title),i("div",{class:"CollapseButtonDetails",onClick:()=>this.collapseText(s)},i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},i("path",this.collapsed[s]?{d:"M18 15l-6-6-6 6"}:{d:"M6 9l6 6 6-6"})))),t.text&&!this.collapsed[s]&&i("div",{class:"DetailsContent sc",innerHTML:t.text})))))}get host(){return s(this)}};e.style=":host{display:block}.DetailsCard{color:var(--emw--color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emw--tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.CollapseButtonDetails svg{width:24px;height:24px}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:var(--emw--border-radius-medium, 10px)}.sc::-webkit-scrollbar-thumb{background-color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 10px)}";export{e as casino_tournament_desc}
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-a92f48b3.js";export{s as setNonce}from"./p-a92f48b3.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-e1d84b7b",[[1,"casino-tournament-desc",{desc:[1],descTitle:[1,"desc-title"],useEvent:[4,"use-event"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],stylingContainer:[32],collapsed:[32],tournamentDescriptions:[32]},[[8,"getTournamentDescriptionCompleted","descCompletedHandler"]]]]]],e))));
1
+ import{p as e,b as t}from"./index-ff8a1835.js";export{s as setNonce}from"./index-ff8a1835.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["casino-tournament-desc",[[1,"casino-tournament-desc",{desc:[1],descTitle:[1,"desc-title"],useEvent:[4,"use-event"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],stylingContainer:[32],collapsed:[32],tournamentDescriptions:[32]},[[8,"getTournamentDescriptionCompleted","descCompletedHandler"]]]]]],e))));
@@ -5,6 +5,7 @@ export const config = {
5
5
  taskQueue: 'async',
6
6
  sourceMap: false,
7
7
  minifyJs: true,
8
+ hashFileNames: false,
8
9
  extras: {
9
10
  experimentalImportInjection: true
10
11
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournament-desc",
3
- "version": "1.66.1",
3
+ "version": "1.67.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as t,h as i,g as s}from"./p-a92f48b3.js";const e=class{constructor(i){t(this,i),this.desc=void 0,this.descTitle=void 0,this.useEvent=!0,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.stylingContainer=void 0,this.collapsed=[],this.tournamentDescriptions=[]}descCompletedHandler(t){t.detail&&this.useEvent&&(this.tournamentDescriptions=t.detail)}collapseText(t){this.collapsed[t]=!this.collapsed[t],this.collapsed=[...this.collapsed]}componentWillLoad(){0==this.useEvent&&this.desc&&this.descTitle&&this.tournamentDescriptions.push({title:this.descTitle,text:this.desc})}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const i=new CSSStyleSheet;i.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,i]}))}render(){return i("div",{key:"58eb843db2f73c1549d703040cb13b4a0ce6ed5c",class:"TournamentDescription"},this.tournamentDescriptions&&this.tournamentDescriptions.map(((t,s)=>i("div",{class:"DetailsCard"},t.title&&i("div",{class:"DetailsTitle"},i("p",{class:"Title"},t.title),i("div",{class:"CollapseButtonDetails",onClick:()=>this.collapseText(s)},i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},i("path",this.collapsed[s]?{d:"M18 15l-6-6-6 6"}:{d:"M6 9l6 6 6-6"})))),t.text&&!this.collapsed[s]&&i("div",{class:"DetailsContent sc",innerHTML:t.text})))))}get host(){return s(this)}};e.style=":host{display:block}.DetailsCard{color:var(--emw--color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emw--tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.CollapseButtonDetails svg{width:24px;height:24px}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:var(--emw--border-radius-medium, 10px)}.sc::-webkit-scrollbar-thumb{background-color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 10px)}";export{e as casino_tournament_desc}