Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wp-charts

Package Overview
Dependencies
Maintainers
1
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wp-charts - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

lib/wp-charts.es.js

@@ -1,1 +0,1 @@

class t{constructor(t,e){this.dom=t,this.option=e,this.init()}init(){const t=document.createElement("div"),e=document.createDocumentFragment(),{label:n,value:i,labelColor:o,valueColor:d,labelSize:l,valueSize:a}=this.option,r=document.createElement("div");r.innerHTML=n,r.setAttribute("class","indicator-label"),r.style.cssText=`color: ${o}; fontSize: ${l}`;const c=document.createElement("div");c.innerHTML=(i+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,"),c.setAttribute("class","indicator-value"),c.style.cssText=`color: ${d}; fontSize: ${a}`,e.appendChild(r),e.appendChild(c),t.appendChild(e),this.dom.appendChild(e)}}class e{constructor(t,e){this.dom=t,this.data=e.map((t=>[{t:"index"}].concat(t))),this.init()}init(){const t=document.createElement("table"),e=document.createDocumentFragment();for(let n=0,i=this.data.length;n<i;n++){const t=document.createDocumentFragment(),i=this.data[n],o=document.createElement("tr");for(let e=0,d=i.length;e<d;e++){const{v:o,t:d}=i[e],l=document.createElement("td");l.setAttribute("align","center"),l.setAttribute("valign","middle");let a="border-bottom: 1px solid #3B56AA; border-right: 1px solid #3B56AA; min-width: 164px; height: 64px; padding: 0 10px; box-sizing: border-box;";"index"!==d&&0!==n||(a+="background-color: #536FC5; color: #fff; width: 73px; min-width: auto;"),l.style.cssText=a,l.innerHTML="index"===d?n>0?n:"":o,t.append(l)}o.appendChild(t),e.appendChild(o)}t.appendChild(e),t.setAttribute("cellspacing",0),t.style.cssText="border-top: 1px solid #3B56AA; border-left: 1px solid #3B56AA; border-spacing: 0",this.dom.appendChild(t)}}new e(document.querySelector(".table"),[[{v:"年级",t:"rowH"},{v:"年龄",t:"rowH"}],[{v:"一年级",t:"data"},{v:"15",t:"data"}]]);export{t as CreateIndicator,e as CreateTable};
class t{constructor(t,e){this.dom=t,this.option=e,this.init()}init(){const t=document.createElement("div"),e=document.createDocumentFragment(),{label:n,value:i,labelColor:o,valueColor:d,labelSize:l,valueSize:a}=this.option,r=document.createElement("div");r.innerHTML=n,r.setAttribute("class","indicator-label"),r.style.cssText=`color: ${o}; font-size: ${l}`;const c=document.createElement("div");c.innerHTML=(i+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,"),c.setAttribute("class","indicator-value"),c.style.cssText=`color: ${d}; font-size: ${a}`,e.appendChild(r),e.appendChild(c),t.appendChild(e),this.dom.appendChild(t)}}class e{constructor(t,e){this.dom=t,this.data=e.map((t=>[{t:"index"}].concat(t))),this.init()}init(){const t=document.createElement("table"),e=document.createDocumentFragment();for(let n=0,i=this.data.length;n<i;n++){const t=document.createDocumentFragment(),i=this.data[n],o=document.createElement("tr");for(let e=0,d=i.length;e<d;e++){const{v:o,t:d}=i[e],l=document.createElement("td");l.setAttribute("align","center"),l.setAttribute("valign","middle");let a="border-bottom: 1px solid #3B56AA; border-right: 1px solid #3B56AA; min-width: 164px; height: 64px; padding: 0 10px; box-sizing: border-box;";"index"!==d&&0!==n||(a+="background-color: #536FC5; color: #fff; width: 73px; min-width: auto;"),l.style.cssText=a,l.innerHTML="index"===d?n>0?n:"":o,t.append(l)}o.appendChild(t),e.appendChild(o)}t.appendChild(e),t.setAttribute("cellspacing",0),t.style.cssText="border-top: 1px solid #3B56AA; border-left: 1px solid #3B56AA; border-spacing: 0",this.dom.appendChild(t)}}new e(document.querySelector(".table"),[[{v:"年级",t:"rowH"},{v:"年龄",t:"rowH"}],[{v:"一年级",t:"data"},{v:"15",t:"data"}]]);export{t as CreateIndicator,e as CreateTable};

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wpCharts={})}(this,(function(e){"use strict";class t{constructor(e,t){this.dom=e,this.data=t.map((e=>[{t:"index"}].concat(e))),this.init()}init(){const e=document.createElement("table"),t=document.createDocumentFragment();for(let o=0,n=this.data.length;o<n;o++){const e=document.createDocumentFragment(),n=this.data[o],i=document.createElement("tr");for(let t=0,d=n.length;t<d;t++){const{v:i,t:d}=n[t],l=document.createElement("td");l.setAttribute("align","center"),l.setAttribute("valign","middle");let a="border-bottom: 1px solid #3B56AA; border-right: 1px solid #3B56AA; min-width: 164px; height: 64px; padding: 0 10px; box-sizing: border-box;";"index"!==d&&0!==o||(a+="background-color: #536FC5; color: #fff; width: 73px; min-width: auto;"),l.style.cssText=a,l.innerHTML="index"===d?o>0?o:"":i,e.append(l)}i.appendChild(e),t.appendChild(i)}e.appendChild(t),e.setAttribute("cellspacing",0),e.style.cssText="border-top: 1px solid #3B56AA; border-left: 1px solid #3B56AA; border-spacing: 0",this.dom.appendChild(e)}}new t(document.querySelector(".table"),[[{v:"年级",t:"rowH"},{v:"年龄",t:"rowH"}],[{v:"一年级",t:"data"},{v:"15",t:"data"}]]),e.CreateIndicator=class{constructor(e,t){this.dom=e,this.option=t,this.init()}init(){const e=document.createElement("div"),t=document.createDocumentFragment(),{label:o,value:n,labelColor:i,valueColor:d,labelSize:l,valueSize:a}=this.option,r=document.createElement("div");r.innerHTML=o,r.setAttribute("class","indicator-label"),r.style.cssText=`color: ${i}; fontSize: ${l}`;const c=document.createElement("div");c.innerHTML=(n+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,"),c.setAttribute("class","indicator-value"),c.style.cssText=`color: ${d}; fontSize: ${a}`,t.appendChild(r),t.appendChild(c),e.appendChild(t),this.dom.appendChild(t)}},e.CreateTable=t,Object.defineProperty(e,"__esModule",{value:!0}),e[Symbol.toStringTag]="Module"}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wpCharts={})}(this,(function(e){"use strict";class t{constructor(e,t){this.dom=e,this.data=t.map((e=>[{t:"index"}].concat(e))),this.init()}init(){const e=document.createElement("table"),t=document.createDocumentFragment();for(let o=0,n=this.data.length;o<n;o++){const e=document.createDocumentFragment(),n=this.data[o],i=document.createElement("tr");for(let t=0,d=n.length;t<d;t++){const{v:i,t:d}=n[t],l=document.createElement("td");l.setAttribute("align","center"),l.setAttribute("valign","middle");let a="border-bottom: 1px solid #3B56AA; border-right: 1px solid #3B56AA; min-width: 164px; height: 64px; padding: 0 10px; box-sizing: border-box;";"index"!==d&&0!==o||(a+="background-color: #536FC5; color: #fff; width: 73px; min-width: auto;"),l.style.cssText=a,l.innerHTML="index"===d?o>0?o:"":i,e.append(l)}i.appendChild(e),t.appendChild(i)}e.appendChild(t),e.setAttribute("cellspacing",0),e.style.cssText="border-top: 1px solid #3B56AA; border-left: 1px solid #3B56AA; border-spacing: 0",this.dom.appendChild(e)}}new t(document.querySelector(".table"),[[{v:"年级",t:"rowH"},{v:"年龄",t:"rowH"}],[{v:"一年级",t:"data"},{v:"15",t:"data"}]]),e.CreateIndicator=class{constructor(e,t){this.dom=e,this.option=t,this.init()}init(){const e=document.createElement("div"),t=document.createDocumentFragment(),{label:o,value:n,labelColor:i,valueColor:d,labelSize:l,valueSize:a}=this.option,r=document.createElement("div");r.innerHTML=o,r.setAttribute("class","indicator-label"),r.style.cssText=`color: ${i}; font-size: ${l}`;const s=document.createElement("div");s.innerHTML=(n+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,"),s.setAttribute("class","indicator-value"),s.style.cssText=`color: ${d}; font-size: ${a}`,t.appendChild(r),t.appendChild(s),e.appendChild(t),this.dom.appendChild(e)}},e.CreateTable=t,Object.defineProperty(e,"__esModule",{value:!0}),e[Symbol.toStringTag]="Module"}));
{
"name": "wp-charts",
"files": ["lib"],
"files": [
"lib"
],
"main": "./lib/wp-charts.umd.js",

@@ -12,3 +14,3 @@ "module": "./lib/wp-charts.es.js",

},
"version": "1.1.1",
"version": "1.1.2",
"scripts": {

@@ -15,0 +17,0 @@ "dev": "vite",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc