vue-data-ui 2.3.3 → 2.3.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/dist/Arrow-B6gJebT9.js +101 -0
- package/dist/Arrow-C5yj6zwY.cjs +1 -0
- package/dist/BaseIcon-7_g11dRj.js +174 -0
- package/dist/BaseIcon-JtWoVorZ.cjs +1 -0
- package/dist/DataTable-CwaOlAsy.js +127 -0
- package/dist/DataTable-Rm9II-m2.cjs +1 -0
- package/dist/Legend-CxvJTjEm.js +62 -0
- package/dist/Legend-D59FIuMs.cjs +1 -0
- package/dist/Shape-CVItL3vh.cjs +1 -0
- package/dist/Shape-CjLV0scA.js +107 -0
- package/dist/Slicer-Bxg5niHl.js +156 -0
- package/dist/Slicer-Cdss5Rus.cjs +1 -0
- package/dist/Title-2iks1ziC.js +46 -0
- package/dist/Title-Bb-A5OSV.cjs +1 -0
- package/dist/Tooltip-C3phqKuU.js +94 -0
- package/dist/Tooltip-C_UE6y-E.cjs +1 -0
- package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
- package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
- package/dist/index-p5gfZSvB.cjs +4 -0
- package/dist/index-uOtklCCx.js +10268 -0
- package/dist/{index.es-ypwniJN8.js → index.es-YufTdp0y.js} +1 -1
- package/dist/{index.es-Dnua3tHc.cjs → index.es-uyeSCnWE.cjs} +1 -1
- package/dist/jspdf.es.min-C660YX78.js +8038 -0
- package/dist/jspdf.es.min-DLYY9DTT.cjs +243 -0
- package/dist/pdf-97UbtKC2.js +44 -0
- package/dist/pdf-Cz3729tZ.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/useNestedProp-2kIU-7On.cjs +1 -0
- package/dist/useNestedProp-BgWkUab_.js +13 -0
- package/dist/usePrinter-B6xQCyL-.js +464 -0
- package/dist/usePrinter-fZlsJid8.cjs +1 -0
- package/dist/useResponsive-B3TrDDIG.cjs +1 -0
- package/dist/useResponsive-NZB-WLRF.js +187 -0
- package/dist/vue-data-ui-Be0rgmbA.cjs +9 -0
- package/dist/vue-data-ui-Ccy6rBZN.js +246 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +62 -61
- package/dist/vue-ui-3d-bar-BKMPFDi2.js +1085 -0
- package/dist/vue-ui-3d-bar-CKa4UXq4.cjs +19 -0
- package/dist/vue-ui-accordion-C_pwrAJl.cjs +1 -0
- package/dist/vue-ui-accordion-HJPf7My0.js +77 -0
- package/dist/vue-ui-age-pyramid-CE1xnA-8.cjs +1 -0
- package/dist/vue-ui-age-pyramid-DB_CL-gu.js +596 -0
- package/dist/vue-ui-annotator-BAMZcPlH.cjs +371 -0
- package/dist/vue-ui-annotator-DQsAL-nZ.js +2177 -0
- package/dist/vue-ui-candlestick-DCl8fpNu.js +657 -0
- package/dist/vue-ui-candlestick-Duv6oG79.cjs +2 -0
- package/dist/vue-ui-chestnut-BYHA6MT4.js +1051 -0
- package/dist/vue-ui-chestnut-mIZ4-ZEM.cjs +6 -0
- package/dist/vue-ui-cursor-C96IChA3.js +229 -0
- package/dist/vue-ui-cursor-De7dy4Mo.cjs +1 -0
- package/dist/vue-ui-dashboard-B2Yz41yO.js +232 -0
- package/dist/vue-ui-dashboard-BMGwKr0K.cjs +1 -0
- package/dist/vue-ui-digits-BnxLp7zQ.js +153 -0
- package/dist/vue-ui-digits-DSWyL-5K.cjs +1 -0
- package/dist/vue-ui-donut-1kei9ws5.cjs +1 -0
- package/dist/vue-ui-donut-B9iXisHK.js +743 -0
- package/dist/vue-ui-donut-evolution-B7Sun8sw.js +799 -0
- package/dist/vue-ui-donut-evolution-yv17DnGy.cjs +1 -0
- package/dist/vue-ui-dumbbell-BJEf_JEq.cjs +9 -0
- package/dist/vue-ui-dumbbell-DIsDnD1d.js +624 -0
- package/dist/vue-ui-flow-BTivYoGd.js +454 -0
- package/dist/vue-ui-flow-DOxJa8di.cjs +1 -0
- package/dist/vue-ui-galaxy-BEmywfFB.js +485 -0
- package/dist/vue-ui-galaxy-CHGOwCwM.cjs +1 -0
- package/dist/vue-ui-gauge-QAfMl-8t.cjs +1 -0
- package/dist/vue-ui-gauge-o4rDOqF3.js +466 -0
- package/dist/vue-ui-heatmap-BS4EzedX.cjs +1 -0
- package/dist/vue-ui-heatmap-DwqQqEsk.js +598 -0
- package/dist/vue-ui-kpi-F4qkJ_U-.cjs +1 -0
- package/dist/vue-ui-kpi-h8elYTcA.js +54 -0
- package/dist/vue-ui-mini-loader-C_8B2Pm6.cjs +1 -0
- package/dist/vue-ui-mini-loader-Cgoi9rhH.js +131 -0
- package/dist/vue-ui-molecule-Bmv76SWz.js +750 -0
- package/dist/vue-ui-molecule-C5CY_YYc.cjs +1 -0
- package/dist/vue-ui-mood-radar-BN0dzlfp.cjs +1 -0
- package/dist/vue-ui-mood-radar-DeMouUIe.js +548 -0
- package/dist/vue-ui-nested-donuts-ZyFoV-Zn.cjs +16 -0
- package/dist/vue-ui-nested-donuts-wOUkSVyZ.js +771 -0
- package/dist/vue-ui-onion-DCOKG2wG.js +554 -0
- package/dist/vue-ui-onion-VmTUo7TR.cjs +1 -0
- package/dist/vue-ui-parallel-coordinate-plot-BGtO2P4a.js +651 -0
- package/dist/vue-ui-parallel-coordinate-plot-BziXRF8E.cjs +8 -0
- package/dist/vue-ui-quadrant--JOTjPZh.js +1178 -0
- package/dist/vue-ui-quadrant-DawUUrur.cjs +1 -0
- package/dist/vue-ui-quick-chart-LXKfaJgS.js +1310 -0
- package/dist/vue-ui-quick-chart-jFlFtiNV.cjs +13 -0
- package/dist/vue-ui-radar-CWNIqvcA.js +614 -0
- package/dist/vue-ui-radar-VGH-lhaT.cjs +1 -0
- package/dist/vue-ui-rating-BNrIoJHN.js +271 -0
- package/dist/vue-ui-rating-Dtu6pwGx.cjs +1 -0
- package/dist/vue-ui-relation-circle-B3NKudOy.js +304 -0
- package/dist/vue-ui-relation-circle-Dwpx9o18.cjs +1 -0
- package/dist/vue-ui-rings-CsUngX_F.js +510 -0
- package/dist/vue-ui-rings-D9_OG--0.cjs +1 -0
- package/dist/vue-ui-scatter-DUsuh7bd.cjs +1 -0
- package/dist/vue-ui-scatter-DgxTz4Jx.js +874 -0
- package/dist/vue-ui-screenshot-51H_VrYY.js +160 -0
- package/dist/vue-ui-screenshot-C2Dz7CAe.cjs +3 -0
- package/dist/vue-ui-skeleton-BM9rwmxY.js +2064 -0
- package/dist/vue-ui-skeleton-sjfOtCZr.cjs +41 -0
- package/dist/vue-ui-smiley-DNnBtHht.cjs +2 -0
- package/dist/vue-ui-smiley-H5rSN-1B.js +763 -0
- package/dist/vue-ui-spark-trend-CLXZDYlk.js +246 -0
- package/dist/vue-ui-spark-trend-R4JJvfry.cjs +1 -0
- package/dist/vue-ui-sparkbar-C0k4ah-7.js +242 -0
- package/dist/vue-ui-sparkbar-CEUDIw0A.cjs +1 -0
- package/dist/vue-ui-sparkgauge-BHj00A07.js +157 -0
- package/dist/vue-ui-sparkgauge-CaEw6nmI.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-B6GuavEu.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-DbMLYKqE.js +244 -0
- package/dist/vue-ui-sparkline-CJydanLS.cjs +1 -0
- package/dist/vue-ui-sparkline-CYova9x3.js +333 -0
- package/dist/vue-ui-sparkstackbar-Df__yM5b.cjs +1 -0
- package/dist/vue-ui-sparkstackbar-N5rVBM2h.js +244 -0
- package/dist/vue-ui-strip-plot-DJJ1vEWz.js +618 -0
- package/dist/vue-ui-strip-plot-b5lhB35d.cjs +1 -0
- package/dist/vue-ui-table-NHhOVDbs.cjs +14 -0
- package/dist/vue-ui-table-heatmap-Cro2etCY.js +237 -0
- package/dist/vue-ui-table-heatmap-DlL2nCqz.cjs +1 -0
- package/dist/vue-ui-table-sparkline-Bw2Gc_ur.cjs +1 -0
- package/dist/vue-ui-table-sparkline-DppMitqF.js +420 -0
- package/dist/vue-ui-table-xSvwJIa7.js +1430 -0
- package/dist/vue-ui-thermometer-M2kdp1x5.js +385 -0
- package/dist/vue-ui-thermometer-Q_3PX2V3.cjs +1 -0
- package/dist/vue-ui-timer-BtSDeIRp.cjs +64 -0
- package/dist/vue-ui-timer-CAaQ-QD6.js +453 -0
- package/dist/vue-ui-tiremarks-CbGOSEvD.cjs +1 -0
- package/dist/vue-ui-tiremarks-JFv4JLP0.js +249 -0
- package/dist/vue-ui-treemap-BqDX-bPf.cjs +1 -0
- package/dist/vue-ui-treemap-DCnv-xYr.js +722 -0
- package/dist/vue-ui-vertical-bar-CEbApJZl.js +737 -0
- package/dist/vue-ui-vertical-bar-CJB_KXyr.cjs +4 -0
- package/dist/vue-ui-waffle-CTS6C7gu.js +638 -0
- package/dist/vue-ui-waffle-IMEbGe-b.cjs +1 -0
- package/dist/vue-ui-wheel-CuOmEWMQ.cjs +1 -0
- package/dist/vue-ui-wheel-_zyCdFiI.js +227 -0
- package/dist/vue-ui-word-cloud-RDlXBEAN.js +346 -0
- package/dist/vue-ui-word-cloud-Y7Yk7uUJ.cjs +1 -0
- package/dist/vue-ui-xy-BZJQBKnU.cjs +3 -0
- package/dist/vue-ui-xy-DsvN9EIQ.js +2064 -0
- package/dist/vue-ui-xy-canvas-D_dnbyFS.cjs +9 -0
- package/dist/vue-ui-xy-canvas-Dbcw8-9Q.js +1006 -0
- package/package.json +1 -1
- package/dist/index-BcMihqI4.cjs +0 -843
- package/dist/index-C7FeCQ7K.js +0 -57303
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-p5gfZSvB.cjs"),e=require("vue"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((l,o)=>l-o),palette:g.palette,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(l=>({average:Object.hasOwn(l,"average")?l.average:!1,decimals:Object.hasOwn(l,"decimals")?l.decimals:0,isMultiselect:Object.hasOwn(l,"isMultiselect")?l.isMultiselect:!1,isPercentage:Object.hasOwn(l,"isPercentage")?l.isPercentage:!1,isSearch:Object.hasOwn(l,"isSearch")?l.isSearch:!1,isSort:Object.hasOwn(l,"isSort")?l.isSort:!1,name:l.name,percentageTo:Object.hasOwn(l,"percentageTo")?l.percentageTo:void 0,prefix:Object.hasOwn(l,"prefix")?l.prefix:"",rangeFilter:Object.hasOwn(l,"rangeFilter")?l.rangeFilter:!1,suffix:Object.hasOwn(l,"suffix")?l.suffix:"",sum:Object.hasOwn(l,"sum")?l.sum:!1,type:l.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
|
|
2
|
+
Provide an array of objects of type:
|
|
3
|
+
{
|
|
4
|
+
name: string;
|
|
5
|
+
type: string; ('text' | 'numeric' | 'date')
|
|
6
|
+
average: boolean;
|
|
7
|
+
decimals: number | undefined;
|
|
8
|
+
sum: boolean;
|
|
9
|
+
isSort:boolean;
|
|
10
|
+
isSearch: boolean;
|
|
11
|
+
isMultiselect: boolean;
|
|
12
|
+
isPercentage: boolean;
|
|
13
|
+
percentageTo: string; (or '')
|
|
14
|
+
}`);if(this.dataset.body.length===0)throw new Error("vue-ui-table error: missing body data");this.isLoading=!0,this.promiseWithAsyncFunction(this.prepareBodyCopy,()=>{this.$forceUpdate(),this.isLoading=!1}),document.addEventListener("keydown",n=>{const l=document.activeElement;(l&&Array.from(l.classList).includes("td-focusable")&&n.key.includes("Arrow")||n.code==="Space")&&n.preventDefault()})},watch:{showChart:function(n){n&&this.$nextTick(()=>{this.closeDragElement();const l=this.$refs.chartModal;l.onmousedown=this.dragMouseDown})}},computed:{availableDonutCategories(){return Object.keys(this.multiselects).map(n=>({index:n,name:this.dataset.header[n].name,options:this.multiselects[n]}))},canChart(){return this.FINAL_CONFIG.useChart&&this.currentSelectionSpan.rows.length>1},chartData(){if(!this.canChart)return[];const n=316,l=512,o=this.currentSelectionSpan.rows.length,c=l/o,r=Math.max(...this.currentSelectionSpan.rows.map(h=>h.value)),t=Math.min(...this.currentSelectionSpan.rows.map(h=>h.value)),s=t>=0?0:Math.abs(t),a=r+s,i=r<0&&t<0,u=this.dataset.header[this.currentSelectionSpan.col].isPercentage,d=this.currentSelectionSpan.rows.map((h,k)=>({x:c*k+c/2,y:(1-(h.value+s)/a)*n,value:u?h.value*100:h.value,suffix:u?"%":this.dataset.header[this.currentSelectionSpan.col].suffix?this.dataset.header[this.currentSelectionSpan.col].suffix:"",prefix:this.dataset.header[this.currentSelectionSpan.col].prefix?this.dataset.header[this.currentSelectionSpan.col].prefix:"",index:h.index,absoluteValue:u?Math.abs(h.value)*100:Math.abs(h.value)})),N=n-n*(s/a);return{isAllNegative:i,zero:N,plots:d,slot:c,progression:d.length>=2?this.calcLinearProgression(d):!1}},donutHollowLabels(){return{total:Number((this.currentDonut.map(n=>n.absoluteValue).reduce((n,l)=>n+l,0)*(this.dataset.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),average:Number((this.currentDonut.map(n=>n.absoluteValue).reduce((n,l)=>n+l,0)/this.currentSelectionSpan.rows.length*(this.dataset.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString()}},hasNumericTypes(){return this.dataset.header.map(n=>n.type).includes(this.constants.NUMERIC)},icons(){return{arrowSort:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 9l4 -4l4 4m-4 -4v14" /><path d="M21 15l-4 4l-4 -4m4 4v-14" /></svg>`,bar:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M4 20l14 0" /></svg>`,chart:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 19l16 0" /><path d="M4 15l4 -6l4 2l4 -5l4 4" /></svg>`,chevronDown:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 9l6 6l6 -6" /></svg>`,chevronLeft:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*1.6}" height="${this.iconSize*1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 6l-6 6l6 6" /></svg>`,chevronRight:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*1.6}" height="${this.iconSize*1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 6l6 6l-6 6" /></svg>`,donut:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*.8}" height="${this.iconSize*.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3v5m4 4h5" /><path d="M8.929 14.582l-3.429 2.918" /><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /></svg>`,export:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12.5 21h-7.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7.5" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M16 19h6" /><path d="M19 16l3 3l-3 3" /></svg>`,fileDownload:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M12 17v-6" /><path d="M9.5 14.5l2.5 2.5l2.5 -2.5" /></svg>`,filter:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" /></svg>`,move:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 9l3 3l-3 3" /><path d="M15 12h6" /><path d="M6 9l-3 3l3 3" /><path d="M3 12h6" /><path d="M9 18l3 3l3 -3" /><path d="M12 15v6" /><path d="M15 6l-3 -3l-3 3" /><path d="M12 3v6" /></svg>`,sort09:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 3a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 16v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sort90:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 14a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 5v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sortAZ:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 10v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 21h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sortZA:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 21v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 10h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sum:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>`,table:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" fill="white" d="M 10 2, 21 2, 21 21, 10 21Z"/><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z" /><path d="M3 10h18" /><path d="M10 3v18" /></svg>`,warning:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*.8}" height="${this.iconSize*.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`}},pages(){const n=[];if(this.bodyCopy.length)for(let l=0;l<this.bodyCopy.length;l+=this.itemsPerPage)n.push(this.bodyCopy.slice(l,l+this.itemsPerPage));return n},rows(){return this.bodyCopy.map(n=>n.td)},selectedCellsCalculations(){return{sumPercentage:Number((this.currentSelectionSpan.rows.map(n=>n.value).reduce((n,l)=>n+l,0)*100).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),sumRegular:Number(this.currentSelectionSpan.rows.map(n=>n.value).reduce((n,l)=>n+l,0).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),averagePercentage:Number((this.currentSelectionSpan.rows.map(n=>n.value).reduce((n,l)=>n+l,0)/this.currentSelectionSpan.rows.length*100).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),averageRegular:Number((this.currentSelectionSpan.rows.map(n=>n.value).reduce((n,l)=>n+l,0)/this.currentSelectionSpan.rows.length).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString()}},FINAL_CONFIG(){const{vue_ui_table:n}=g.useConfig();if(!Object.keys(this.config||{}).length)return n;const l=this.treeShake({defaultConfig:n,userConfig:this.config});return this.convertConfigColors(l)},visibleRows(){return this.pages[this.currentPage]}},methods:{treeShake:g.treeShake,makeDonut:g.makeDonut,convertColorToHex:g.convertColorToHex,convertConfigColors:g.convertConfigColors,createCsvContent:g.createCsvContent,downloadCsv:g.downloadCsv,applyDonutOption(){const n=this.selectedDonutCategory.options.map((l,o)=>({name:l,color:this.palette[o]||this.palette[o%this.palette.length],value:this.visibleRows.filter((c,r)=>c.td[this.selectedDonutCategory.index]===l&&this.currentSelectionSpan.rows.map(t=>t.index).includes(r)).map(c=>c.td[this.currentSelectionSpan.col]).reduce((c,r)=>Math.abs(c)+Math.abs(r),0),absoluteValue:this.visibleRows.filter((c,r)=>c.td[this.selectedDonutCategory.index]===l&&this.currentSelectionSpan.rows.map(t=>t.index).includes(r)).map(c=>c.td[this.currentSelectionSpan.col]).reduce((c,r)=>c+r,0)})).sort((l,o)=>o.value-l.value);this.currentDonut=this.makeDonut({series:n},50,50,30,30),this.$nextTick(()=>{this.chart.type=this.constants.DONUT,this.showDonutOptions=!1})},calcRectY(n,l){return n>=0?l:this.chartData.zero},canResetColumn(n,l){return!this.hasNaN[n]&&(l.isSort||l.isSearch||l.isMultiselect||l.rangeFilter)&&![this.constants.DATE].includes(l.type)},createXls(n="all"){const l=this.dataset.header.map(t=>t.name),o=n==="all"?this.bodyCopy.map(t=>t.td):this.visibleRows.map(t=>t.td),c=[l].concat(o),r=this.createCsvContent(c);this.downloadCsv({csvContent:r,title:"vue-ui-table"})},calcLinearProgression:g.calcLinearProgression,closeAllDropdowns(){const n=document.getElementsByClassName("th-dropdown");n.length&&Array.from(n).forEach(l=>{l.dataset.isOpen=!1})},debounce(n,l){let o;clearTimeout(o),o=setTimeout(n,l)},filterBody(){this.bodyCopy=this.tableBody.filter(n=>{for(const l in this.searches)if(!n.td[l].toUpperCase().includes(this.searches[l].toUpperCase()))return!1;for(const l in this.multiselects)if(!this.multiselects[l].some(c=>c===n.td[l]))return!1;for(const l in this.dates){const o=new Date(n.td[l]),c=new Date(this.dates[l].from),r=new Date(this.dates[l].to);if(o<c||o>r)return!1}return!0}),this.sortBody()},getAverage(n){return this.rows.map(l=>l[n]).map(l=>isNaN(Number(l))?0:l).reduce((l,o)=>l+o,0)/this.bodyCopy.length},getDatesRange(n){const l=this.dataset.body.map(h=>new Date(h.td[n])),o=new Date(Math.min(...l)),c=new Date(Math.max(...l)),r=o.getFullYear(),t=c.getFullYear(),s=String(o.getMonth()+1).padStart(2,"0"),a=String(c.getMonth()+1).padStart(2,"0"),i=String(o.getDate()).padStart(2,"0"),u=String(c.getDate()).padStart(2,"0"),d=`${r}-${s}-${i}`,N=`${t}-${a}-${u}`;return{from:d,to:N}},getDonutLegendValue(n){return Number((n*(this.dataset.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString()},getDropdownOptions(n){return[...new Set(this.dataset.body.map(l=>l.td[n]))]},getSum(n){return this.rows.map(l=>l[n]).map(l=>isNaN(Number(l))?0:l).reduce((l,o)=>l+o,0)},includesNaN(n){return n.includes(NaN)},isDropdownOptionSelected(n,l){return this.multiselects[l]?this.multiselects[l].includes(n):!0},isNumeric(n){return!isNaN(Number(String(n).replaceAll("%","")))},isResetDisabled(n,l){const o=l.isSort,c=l.isSearch,r=l.isMultiselect&&this.multiselects[n],t=l.rangeFilter,s=a=>{if(t&&this.rangeFilters[a])return Math.round(this.rangeFilters[a].min)===this.immutableRangeFilters[a].min&&Math.round(this.rangeFilters[a].max)===this.immutableRangeFilters[a].max};if(o&&c&&r&&t)return["",void 0].includes(this.searches[n])&&[void 0].includes(this.sorts[n])&&this.multiselects[n].length===this.getDropdownOptions(n).length&&s(n);if(o&&c&&r)return["",void 0].includes(this.searches[n])&&[void 0].includes(this.sorts[n])&&this.multiselects[n].length===this.getDropdownOptions(n).length;if(o&&c&&t)return["",void 0].includes(this.searches[n])&&[void 0].includes(this.sorts[n])&&s(n);if(o&&c)return["",void 0].includes(this.searches[n])&&[void 0].includes(this.sorts[n]);if(o&&r&&t)return[void 0].includes(this.sorts[n])&&this.multiselects[n].length===this.getDropdownOptions(n).length&&s(n);if(o&&r)return[void 0].includes(this.sorts[n])&&this.multiselects[n].length===this.getDropdownOptions(n).length;if(c&&r&&t)return["",void 0].includes(this.searches[n])&&this.multiselects[n].length===this.getDropdownOptions(n).length&&s(n);if(c&&r)return["",void 0].includes(this.searches[n])&&this.multiselects[n].length===this.getDropdownOptions(n).length;if(c&&t)return["",void 0].includes(this.searches[n])&&s(n);if(c)return["",void 0].includes(this.searches[n]);if(o&&t)return[void 0].includes(this.sorts[n])&&s(n);if(o)return[void 0].includes(this.sorts[n]);if(r&&t)return this.multiselects[n].length===this.getDropdownOptions(n).length&&s(n);if(r)return this.multiselects[n].length===this.getDropdownOptions(n).length},navigate(n){this.resetSelection(),n==="next"&&this.currentPage<this.pages.length?this.currentPage+=1:n==="previous"&&this.currentPage>=1?this.currentPage-=1:this.currentPage=n-1,this.$refs.tableWrapper.scrollTo({top:0,left:0,behavior:"smooth"})},navigateCell(n){n.preventDefault();const l=n.keyCode,o=38,c=40,r=37,t=39;if(![o,c,r,t].includes(l))return;const s=n.target.id,a=/cell_(\d+)_(\d+)_vue-ui-table-(\d+)/,i=s.match(a),u=parseInt(i[1]),d=parseInt(i[2]),N=document.getElementById(`cell_${u}_${d+1}_${this.uid}`),h=document.getElementById(`cell_${u}_${d-1}_${this.uid}`),k=document.getElementById(`cell_${u+1}_${d}_${this.uid}`),p=document.getElementById(`cell_${u-1}_${d}_${this.uid}`);let y;switch(!0){case l===t:y=N;break;case l===r:y=h;break;case l===o:y=p;break;case l===c:y=k;break;default:return}y&&(y.focus(),y.scrollIntoView({behavior:"smooth",block:"center"}))},openDonutOptions(){this.selectedDonutCategory=this.availableDonutCategories[0],this.showDonutOptions=!0},placeLabelOnTopOrBottom({previousPlot:n,currentPlot:l,nextPlot:o}){const c=l.y-38,r=l.y+16;return n&&o?n.value<l.value&&o.value<l.value?c:n.value>l.value&&o.value>l.value?r:(n.value>l.value&&o.value<l.value||n.value<l.value&&o.value>l.value,c):n&&!o?n.value>l.value?r:c:!n&&o&&o.value>l.value?r:c},async prepareBodyCopy(){return new Promise(n=>{const l=[];this.tableHead.forEach((o,c)=>{if(o.isSearch&&Object.assign(this.searches,{[c]:""}),o.isMultiselect&&Object.assign(this.multiselects,{[c]:this.getDropdownOptions(c)}),o.type===this.constants.DATE&&(Object.assign(this.dates,{[c]:this.getDatesRange(c)}),Object.assign(this.filteredDatesIndexes,{[c]:!1})),(o.isPercentage||o.percentageTo)&&Object.assign(this.percentages,{[c]:{reference:o.percentageTo,referenceIndex:this.dataset.header.map(r=>r.name).indexOf(o.percentageTo)}}),o.rangeFilter&&(Object.assign(this.rangeFilters,{[c]:{min:Math.round(Math.min(...this.dataset.body.map(r=>r.td).map(r=>r[c]))),max:Math.round(Math.max(...this.dataset.body.map(r=>r.td).map(r=>r[c])))}}),Object.assign(this.immutableRangeFilters,{[c]:{min:Math.round(Math.min(...this.dataset.body.map(r=>r.td).map(r=>r[c]))),max:Math.round(Math.max(...this.dataset.body.map(r=>r.td).map(r=>r[c])))}})),o.isPercentage){const r=this.dataset.header.map(s=>s.name).indexOf(o.percentageTo),t=this.dataset.body.map(s=>s.td[r]).reduce((s,a)=>s+a,0);l.push([c,r,t])}o.type===this.constants.NUMERIC&&!o.isPercentage&&Object.assign(this.hasNaN,{[c]:this.includesNaN(this.dataset.body.map(r=>Number(r.td[c])))})}),this.bodyCopy.forEach((o,c)=>{l.map(r=>{const[t,s,a]=r;o.td[t]=o.td[s]/a}),o.td.forEach((r,t)=>{this.dataset.header[t].type===this.constants.TEXT&&this.dataset.header[t].isSearch&&(o[t]=this.stringToNumber(r)),this.dataset.header[t].type===this.constants.DATE&&(o[t]=new Date(r).getTime()),this.dataset.header[t].type===this.constants.NUMERIC&&(o[t]=isNaN(Number(r))?t:r),this.tableBody[c][t]=o[t]})}),n(!0)})},promiseWithAsyncFunction(n,l){return new Promise((o,c)=>{n().then(r=>{try{const t=l(r);o(t)}catch(t){c(t)}}).catch(r=>{c(r)})})},resetDates(n){this.dates[n]={from:this.getDatesRange(n).from,to:this.getDatesRange(n).to},this.filteredDatesIndexes[n]=!1,this.$forceUpdate(),this.filterBody()},resetFilter(n,l,o){const c=o.currentTarget;clearTimeout(this.buttonTimeout),c.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{c.classList.remove("clicked")},200),this.currentFilter=void 0,l.rangeFilter&&(this.rangeFilters[n].min=this.immutableRangeFilters[n].min,this.rangeFilters[n].max=this.immutableRangeFilters[n].max),l.isMultiselect?(this.multiselects[n]=this.getDropdownOptions(n),l.type===this.constants.TEXT&&(this.sorts[n]=void 0),l.isSearch&&(this.searches[n]="")):l.type===this.constants.NUMERIC?this.sorts[n]=void 0:l.type===this.constants.TEXT?(this.sorts[n]=void 0,this.searches[n]=""):l.type===this.constants.DATE&&(this.sorts[n]=void 0),this.filterBody()},resetSelection(){const n=document.getElementsByClassName(`tr_${this.uid}`);Array.from(n).forEach(l=>{Array.from(l.getElementsByTagName("td")).forEach(o=>{o.dataset.row==="even"?(o.style.background=this.FINAL_CONFIG.style.rows.even.backgroundColor,o.style.color=this.FINAL_CONFIG.style.rows.even.color):(o.style.background=this.FINAL_CONFIG.style.rows.odd.backgroundColor,o.style.color=this.FINAL_CONFIG.style.rows.odd.color)})}),Array.from(n).forEach(l=>l.dataset.selected="false"),this.currentPage>this.pages.length-1&&(this.currentPage=this.pages.length-1),this.showChart=!1,this.currentDonut=void 0,this.selectedColumn=void 0,this.chart.type=this.constants.BAR,this.currentSelectionSpan={col:void 0,rows:[]},this.clientX=100,this.clientY=100},selectColumn(n){this.currentSelectionSpan.col!==n?(this.visibleRows.forEach((l,o)=>{this.selectTd({td:l.td[n],rowIndex:o,colIndex:n,headerType:this.constants.NUMERIC,event:{currentTarget:document.getElementById(`cell_${o}_${n}_${this.uid}`)}})}),this.selectedColumn=n):(this.selectedColumn=void 0,this.resetSelection())},selectDropdownOption(n,l){this.multiselects[l].includes(n)?this.multiselects[l]=this.multiselects[l].filter(o=>o!==n):this.multiselects[l].push(n),this.$forceUpdate(),this.filterBody()},selectTd({td:n,rowIndex:l,colIndex:o,headerType:c,event:r}){if(c!==this.constants.NUMERIC||isNaN(Number(n))){this.resetSelection();return}this.currentSelectionSpan.col!==o&&this.resetSelection();const t=r.currentTarget.parentNode;this.currentSelectionSpan.col=o,this.currentSelectionSpan.rows.map(s=>s.index).includes(l)?(t.dataset.selected="false",this.currentSelectionSpan.rows=this.currentSelectionSpan.rows.filter(s=>s.index!==l),r.currentTarget.classList.remove(this.cssClass.CELL),Array.from(t.children).forEach((s,a)=>{s.dataset.row==="even"?(s.style.background=this.FINAL_CONFIG.style.rows.even.backgroundColor,s.style.color=this.FINAL_CONFIG.style.rows.even.olor):(s.style.background=this.FINAL_CONFIG.style.rows.odd.backgroundColor,s.style.color=this.FINAL_CONFIG.style.rows.odd.color)}),r.currentTarget.dataset.row==="even"?(r.currentTarget.style.background=this.FINAL_CONFIG.style.rows.even.backgroundColor,r.currentTarget.style.color=this.FINAL_CONFIG.style.rows.even.color):(r.currentTarget.style.background=this.FINAL_CONFIG.style.rows.odd.backgroundColor,r.currentTarget.style.color=this.FINAL_CONFIG.style.rows.odd.color)):(t.dataset.selected="true",this.currentSelectionSpan.rows.push({index:l,value:n}),Array.from(t.children).forEach((s,a)=>{s.dataset.row==="even"?(s.style.background=this.FINAL_CONFIG.style.rows.even.selectedNeighbors.backgroundColor,s.style.color=this.FINAL_CONFIG.style.rows.even.selectedNeighbors.color):(s.style.background=this.FINAL_CONFIG.style.rows.odd.selectedNeighbors.backgroundColor,s.style.color=this.FINAL_CONFIG.style.rows.odd.selectedNeighbors.color)}),r.currentTarget.dataset.row==="odd"?(r.currentTarget.style.background=this.FINAL_CONFIG.style.rows.odd.selectedCell.backgroundColor,r.currentTarget.style.color=this.FINAL_CONFIG.style.rows.odd.selectedCell.color):(r.currentTarget.style.background=this.FINAL_CONFIG.style.rows.even.selectedCell.backgroundColor,r.currentTarget.style.color=this.FINAL_CONFIG.style.rows.even.selectedCell.color)),this.currentSelectionSpan.rows=this.currentSelectionSpan.rows.sort((s,a)=>s.index-a.index),this.chart.type===this.constants.DONUT&&this.currentSelectionSpan.rows.length>0&&this.applyDonutOption()},setFilterDatesIndexes(n){this.filteredDatesIndexes[n]=!(this.getDatesRange(n).from===this.dates[n].from&&this.getDatesRange(n).to===this.dates[n].to)},sortBody(){this.resetSelection(),Object.keys(this.rangeFilters).forEach(n=>{this.filterByRange(this.bodyCopy,n)}),Object.keys(this.sorts).forEach(n=>{this.sortByNumber(this.bodyCopy,n)}),this.currentFilter!==void 0&&this.sortByNumber(this.bodyCopy,this.currentFilter),this.dataset.header.forEach((n,l)=>{if(n.isPercentage){const o=this.percentages[l].referenceIndex,c=this.bodyCopy.map(r=>r.td[o]).reduce((r,t)=>r+t,0);this.bodyCopy.forEach(r=>{r.td[l]=r.td[o]/c})}}),this.currentPage>this.pages.length-1&&(this.currentPage=this.pages.length-1),[-1].includes(this.currentPage)&&(this.currentPage=0),this.$forceUpdate()},filterByRange(n,l){this.bodyCopy=n.filter(o=>o.td[l]>=this.rangeFilters[l].min&&o[l]<=this.rangeFilters[l].max)},sortByNumber(n,l){if(this.sorts[l]===this.constants.ASC&&(n=n.sort((o,c)=>o[l]-c[l])),this.sorts[l]===this.constants.DESC)n=n.sort((o,c)=>c[l]-o[l]);else return 0},sortTh(n,l){this.currentFilter=n;const o=l.currentTarget;clearTimeout(this.buttonTimeout),o.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{o.classList.remove("clicked")},200),this.sorts[n]===1?this.sorts[n]=this.constants.DESC:this.sorts[n]=this.constants.ASC,this.sortBody()},stringToNumber(n){let l=0;for(let o=0;o<n.length;o+=1)l+=n.charCodeAt(o);return l},toggleMultiselect(n,l,o){const c=o.currentTarget;clearTimeout(this.buttonTimeout),c.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{c.classList.remove("clicked")},200);const r=document.getElementById(`th_dropdown_${n}`);r.dataset.isOpen==="false"?r.dataset.isOpen="true":r.dataset.isOpen="false"},updateCurrentPage(n){this.resetSelection(),this.currentPage=Number(n.target.value)},calcDonutMarkerConnectorColor(n){return n.proportion*100>3?n.color:"transparent"},calcDonutMarkerLabelPositionX(n){return n.center.endX+this.calcMarkerOffset(n,50)},calcMarkerOffset(n,l){return n.center.endX-l>=0?3:-2},displayArcPercentage(n,l){return isNaN(n.value/this.sumValues(l))?0:(n.value/this.sumValues(l)*100).toFixed(0)+"%"},isArcBigEnough(n){return n.proportion*100>3},sumValues(n){return[...n].map(l=>l.value).reduce((l,o)=>l+o,0)},closeDragElement(){document.onmouseup=null,document.onmousemove=null},dragMouseDown(n){n=n||window.event,n.preventDefault(),document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag(n){this.rafId||(this.rafId=window.requestAnimationFrame(()=>this.onElementDrag(n)))},onElementDrag(n){n=n||window.event,n.preventDefault();const o=this.$refs.chartModal.getBoundingClientRect();this.clientX=n.clientX-o.width/2,this.clientY=n.clientY-o.height/2,this.rafId=null}}},m=n=>(e.pushScopeId("data-v-5a108fbd"),n=n(),e.popScopeId(),n),f={class:"vue-ui-table-export-hub"},F=["innerHTML"],_=["data-is-open"],I=m(()=>e.createElementVNode("b",{class:"vue-ui-table-export-hub-title"}," Export ",-1)),S={class:"vue-ui-table-export-hub-options"},v={class:"vue-ui-table-export-hub-option-wrapper"},w={class:"label"},D=["innerHTML"],L={class:"vue-ui-table-export-hub-option-wrapper"},O={class:"label"},E=["innerHTML"],B={class:"vue-ui-table"},A={id:"tableHead"},x=m(()=>e.createElementVNode("th",{class:"invisible-cell"},null,-1)),M={key:0},G={key:0},V={key:1},T=m(()=>e.createElementVNode("th",{class:"invisible-cell"},null,-1)),z={key:0,style:{display:"flex","align-items":"center","justify-content":"flex-end"}},H=["innerHTML"],P={key:0,style:{"margin-left":"3px"}},R=m(()=>e.createElementVNode("th",{class:"invisible-cell"},null,-1)),U={key:0},j=m(()=>e.createElementVNode("th",{class:"invisible-cell"},null,-1)),X={class:"th-filter"},W={key:0,class:"th-date"},Y={class:"date-wrapper--inputs"},K={class:"date-fieldset"},q=["for"],Z=["id","onUpdate:modelValue","onInput"],J={class:"date-fieldset"},Q=["for"],$=["id","onUpdate:modelValue","onInput"],ee={class:"date-wrapper--button"},te=["onClick"],re=["innerHTML"],ne=["innerHTML"],le=["innerHTML"],se=["onClick","disabled"],oe=["placeholder","onUpdate:modelValue","name"],ae=["onClick"],ce=["innerHTML"],ie=["innerHTML"],ue=["innerHTML"],de=["onClick","innerHTML"],he=["innerHTML"],me={key:5,class:"th-range-filter"},ge=["for"],ye=m(()=>e.createElementVNode("span",{style:{color:"grey"}},"ᒥ",-1)),Ne=m(()=>e.createElementVNode("span",{style:{color:"grey"}},"ᒣ",-1)),ke=["id","max","min","onUpdate:modelValue"],pe=["id","max","min","onUpdate:modelValue"],be=["for"],Ce=m(()=>e.createElementVNode("span",{style:{color:"grey"}},"ᒪ",-1)),fe=m(()=>e.createElementVNode("span",{style:{color:"grey"}},"ᒧ",-1)),Fe=["onClick","disabled"],_e=["id"],Ie=["onClick"],Se=["onClick","onKeyup"],ve=m(()=>e.createElementVNode("th",{class:"invisible-cell"},null,-1)),we=["innerHTML","onClick","onKeyup"],De=["data-row"],Le=["data-row"],Oe=["data-row","onClick","onKeyup","id"],Ee=["innerHTML"],Be={key:1},Ae={key:2},xe={key:5},Me=["innerHTML"],Ge={key:0},Ve={style:{"margin-left":"12px"}},Te={class:"format-num"},ze={style:{"margin-left":"12px"}},He={key:0,class:"format-num"},Pe={key:1,class:"format-num"},Re={key:2},Ue={style:{"margin-left":"12px"}},je={key:0,class:"format-num"},Xe={key:1,class:"format-num"},We={key:2},Ye={key:0,class:"vue-ui-table-paginator format-num"},Ke={key:1,class:"vue-ui-table-size-warning"},qe=["innerHTML"],Ze={key:3,class:"vue-ui-table-pagination format-num"},Je=["innerHTML","disabled"],Qe=["disabled"],$e={key:0,class:"vue-ui-table-page-scroller-wrapper"},et={for:"pageScroller",style:{"font-size":"14px"}},tt=["max","value"],rt={key:1},nt=["disabled"],lt=["innerHTML","disabled"],st={class:"chart-modal-options"},ot=["innerHTML"],at=["innerHTML"],ct=["innerHTML"],it={style:{"margin-bottom":"12px"}},ut={key:0},dt={key:1},ht={style:{width:"100%",height:"fit-content",cursor:"move"},ref:"chartModal"},mt={class:"vue-ui-table-fieldset"},gt={class:"vue-ui-table-fieldset-wrapper"},yt=["name","id","checked","onInput"],Nt=["for"],kt=["disabled"],pt=["innerHTML"],bt=["viewBox"],Ct=["markerWidth","markerHeight","refY"],ft=["points","fill"],Ft=["x2","y1","y2","stroke","stroke-width"],_t=["y2","stroke","stroke-width"],It=["x","width","height","fill"],St=e.createStaticVNode('<linearGradient id="barGradientSelected" x2="0%" y2="100%" data-v-5a108fbd><stop offset="0.2" stop-color="#6376DD" data-v-5a108fbd></stop><stop offset="1" stop-color="#6376DD80" data-v-5a108fbd></stop></linearGradient><linearGradient id="barGradientSelectedNeg" x2="0%" y2="100%" data-v-5a108fbd><stop offset="0.2" stop-color="#6376DD80" data-v-5a108fbd></stop><stop offset="1" stop-color="#6376DD" data-v-5a108fbd></stop></linearGradient><linearGradient id="barGradient" x2="0%" y2="100%" data-v-5a108fbd><stop offset="0.2" stop-color="#6376DDB3" data-v-5a108fbd></stop><stop offset="1" stop-color="#6376DD66" data-v-5a108fbd></stop></linearGradient><linearGradient id="barGradientNeg" x2="0%" y2="100%" data-v-5a108fbd><stop offset="0.2" stop-color="#6376DD66" data-v-5a108fbd></stop><stop offset="1" stop-color="#6376DDB3" data-v-5a108fbd></stop></linearGradient>',4),vt=["x","y","height","width","fill","stroke"],wt=["x","y","width"],Dt=["x1","y1","x2","y2","stroke-width","stroke"],Lt=["x1","y1","x2","y2","stroke","stroke-width","stroke-dasharray"],Ot=["cx","cy","r","fill","stroke","stroke-width"],Et=["x","y","width"],Bt=["x","width","height","onMouseenter"],At=["x1","y1","x2","y2","stroke","stroke-width","stroke-dasharray"],xt=m(()=>e.createElementVNode("span",null,"---",-1)),Mt=["d","stroke"],Gt=["x","y"],Vt={class:"vue-ui-table-donut-label-name"},Tt=["fill"],zt=["fill"],Ht=["fill"],Pt=["fill"],Rt={class:"vue-ui-table-donut-legend"};function Ut(n,l,o,c,r,t){return e.openBlock(),e.createElementBlock("div",{class:"vue-ui-table-main",style:e.normalizeStyle(`font-family: ${t.FINAL_CONFIG.fontFamily}`)},[e.createElementVNode("div",f,[e.createElementVNode("button",{onClick:l[0]||(l[0]=s=>r.isExportRequest=!r.isExportRequest),innerHTML:t.icons.export,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.exportMenu.backgroundColor};color:${t.FINAL_CONFIG.style.exportMenu.color}`)},null,12,F),e.createElementVNode("div",{class:"vue-ui-table-export-hub-dropdown","data-is-open":r.isExportRequest||"false",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.exportMenu.backgroundColor};color:${t.FINAL_CONFIG.style.exportMenu.color}`)},[I,e.createElementVNode("button",{class:"close-dropdown",onClick:l[1]||(l[1]=s=>r.isExportRequest=!1),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${t.FINAL_CONFIG.style.closeButtons.color};border-radius:${t.FINAL_CONFIG.style.closeButtons.borderRadius}`)}," ✖ ",4),e.createElementVNode("div",S,[e.createElementVNode("div",v,[e.createElementVNode("div",w,e.toDisplayString(t.FINAL_CONFIG.translations.exportAllLabel)+" ("+e.toDisplayString(r.bodyCopy.length)+") ",1),e.createElementVNode("button",{id:"exportAll",onClick:l[2]||(l[2]=s=>t.createXls("all")),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.exportMenu.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.exportMenu.buttons.color}`)},[e.createElementVNode("div",{innerHTML:t.icons.fileDownload},null,8,D),e.createElementVNode("span",null,e.toDisplayString(t.FINAL_CONFIG.translations.exportAllButton),1)],4)]),e.createElementVNode("div",L,[e.createElementVNode("div",O,e.toDisplayString(t.FINAL_CONFIG.translations.exportPageLabel),1),e.createElementVNode("button",{id:"exportPage",onClick:l[3]||(l[3]=s=>t.createXls("page")),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.exportMenu.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.exportMenu.buttons.color}`)},[e.createElementVNode("div",{innerHTML:t.icons.fileDownload},null,8,E),e.createElementVNode("span",null,e.toDisplayString(t.FINAL_CONFIG.translations.exportPageButton),1)],4)])])],12,_)]),e.createElementVNode("div",{class:"vue-ui-table__wrapper",style:e.normalizeStyle(`max-height:${t.FINAL_CONFIG.maxHeight}px`),ref:"tableWrapper"},[e.createElementVNode("table",B,[e.createElementVNode("thead",A,[e.createElementVNode("tr",null,[x,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.tableHead,(s,a)=>(e.openBlock(),e.createElementBlock("th",{key:`thead_${a}`,style:e.normalizeStyle(`overflow: visible;background:${t.FINAL_CONFIG.style.th.backgroundColor};color:${t.FINAL_CONFIG.style.th.color};outline:${t.FINAL_CONFIG.style.th.outline}`),class:e.normalizeClass({"th-has-nan":r.hasNaN[a]})},[t.hasNumericTypes&&([r.constants.TEXT,r.constants.DATE].includes(s.type)||s.isPercentage)?(e.openBlock(),e.createElementBlock("span",M,[e.createTextVNode(e.toDisplayString(s.name)+" ",1),s.isPercentage?(e.openBlock(),e.createElementBlock("span",G," / "+e.toDisplayString(s.percentageTo),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",V,e.toDisplayString(s.name),1))],6))),128))]),t.hasNumericTypes?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("tr",null,[T,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.tableHead,(s,a)=>(e.openBlock(),e.createElementBlock("th",{key:`thead_${a}`,class:e.normalizeClass({"th-numeric":!0,"th-has-nan":r.hasNaN[a]}),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.th.backgroundColor};color:${t.FINAL_CONFIG.style.th.color};outline:${t.FINAL_CONFIG.style.th.outline}`)},[s.sum&&!r.hasNaN[a]?(e.openBlock(),e.createElementBlock("span",z,[e.createElementVNode("span",{innerHTML:t.icons.sum,style:{"margin-bottom":"-4px","margin-right":"3px"}},null,8,H),e.createTextVNode(" "+e.toDisplayString(s.prefix)+" "+e.toDisplayString(Number(t.getSum(a).toFixed(s.decimals)).toLocaleString())+" "+e.toDisplayString(s.suffix)+" ",1),r.percentages[a]&&s.percentageTo&&!s.isPercentage?(e.openBlock(),e.createElementBlock("span",P," ("+e.toDisplayString(isNaN(t.getSum(a)/t.getSum(r.percentages[a].referenceIndex))?"-":(t.getSum(a)/t.getSum(r.percentages[a].referenceIndex)*100).toFixed(s.decimals))+"%) ",1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128))]),e.createElementVNode("tr",null,[R,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.tableHead,(s,a)=>(e.openBlock(),e.createElementBlock("th",{key:`thead_${a}`,class:e.normalizeClass({"th-numeric":!0,"th-has-nan":r.hasNaN[a]}),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.th.backgroundColor};color:${t.FINAL_CONFIG.style.th.color};outline:${t.FINAL_CONFIG.style.th.outline}`)},[s.average&&!r.hasNaN[a]?(e.openBlock(),e.createElementBlock("span",U," ~ "+e.toDisplayString(s.prefix)+" "+e.toDisplayString(isNaN(t.getAverage(a))?"":Number(t.getAverage(a).toFixed(s.decimals)).toLocaleString())+" "+e.toDisplayString(s.suffix),1)):e.createCommentVNode("",!0)],6))),128))]),e.createElementVNode("tr",null,[j,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.tableHead,(s,a)=>(e.openBlock(),e.createElementBlock("th",{key:`thead_${a}`,class:e.normalizeClass({"th-has-nan":r.hasNaN[a]}),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.th.backgroundColor};color:${t.FINAL_CONFIG.style.th.color};outline:${t.FINAL_CONFIG.style.th.outline}`)},[e.createElementVNode("div",X,[s.type===r.constants.DATE&&r.dates[a]?(e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",Y,[e.createElementVNode("div",K,[e.createElementVNode("label",{for:`from_${a}`},e.toDisplayString(t.FINAL_CONFIG.translations.from),9,q),e.withDirectives(e.createElementVNode("input",{id:`from_${a}`,type:"date","onUpdate:modelValue":i=>r.dates[a].from=i,onInput:i=>{t.filterBody(),t.setFilterDatesIndexes(a)},style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},null,44,Z),[[e.vModelText,r.dates[a].from]])]),e.createElementVNode("div",J,[e.createElementVNode("label",{for:`to_${a}`},e.toDisplayString(t.FINAL_CONFIG.translations.to),9,Q),e.withDirectives(e.createElementVNode("input",{id:`to_${a}`,type:"date","onUpdate:modelValue":i=>r.dates[a].to=i,onInput:i=>{t.filterBody(),t.setFilterDatesIndexes(a)},style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},null,44,$),[[e.vModelText,r.dates[a].to]])])]),e.createElementVNode("div",ee,[s.isSort?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:i=>t.sortTh(a,i),class:e.normalizeClass({"th-button-active":[r.constants.DESC,r.constants.ASC].includes(r.sorts[a])}),style:e.normalizeStyle(`background:${[r.constants.DESC,r.constants.ASC].includes(r.sorts[a])?"":t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${[r.constants.DESC,r.constants.ASC].includes(r.sorts[a])?"":t.FINAL_CONFIG.style.pagination.buttons.color}`)},[r.sorts[a]===r.constants.ASC?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:[r.constants.DATE].includes(s.type)?t.icons.sort09:t.icons.sortAZ},null,8,re)):r.sorts[a]===r.constants.DESC?(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:[r.constants.DATE].includes(s.type)?t.icons.sort90:t.icons.sortZA},null,8,ne)):(e.openBlock(),e.createElementBlock("span",{key:2,innerHTML:t.icons.arrowSort},null,8,le))],14,te)):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:i=>{t.resetDates(a),t.resetFilter(a,s,i)},disabled:!r.filteredDatesIndexes[a]&&t.isResetDisabled(a,s),class:"th-reset"}," ✖ ",8,se)])])):e.createCommentVNode("",!0),s.isSearch?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,placeholder:t.FINAL_CONFIG.translations.inputPlaceholder,"onUpdate:modelValue":i=>r.searches[a]=i,onInput:l[4]||(l[4]=i=>t.debounce(t.filterBody,400)),name:`search_${a}`,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},null,44,oe)),[[e.vModelText,r.searches[a]]]):e.createCommentVNode("",!0),!r.hasNaN[a]&&s.isSort&&s.type!==r.constants.DATE?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:i=>t.sortTh(a,i),class:e.normalizeClass({"th-button-active":[r.constants.DESC,r.constants.ASC].includes(r.sorts[a])}),style:e.normalizeStyle(`background:${[r.constants.DESC,r.constants.ASC].includes(r.sorts[a])?"":t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${[r.constants.DESC,r.constants.ASC].includes(r.sorts[a])?"":t.FINAL_CONFIG.style.pagination.buttons.color}`)},[r.sorts[a]===r.constants.ASC?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:[r.constants.NUMERIC].includes(s.type)?t.icons.sort09:t.icons.sortZA},null,8,ce)):r.sorts[a]===r.constants.DESC?(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:[r.constants.NUMERIC].includes(s.type)?t.icons.sort90:t.icons.sortAZ},null,8,ie)):(e.openBlock(),e.createElementBlock("span",{key:2,innerHTML:t.icons.arrowSort},null,8,ue))],14,ae)):e.createCommentVNode("",!0),s.isMultiselect?(e.openBlock(),e.createElementBlock("button",{key:3,onClick:i=>t.toggleMultiselect(a,s,i),innerHTML:t.icons.filter,class:e.normalizeClass({"th-button-active":r.multiselects[a]&&r.multiselects[a].length!==t.getDropdownOptions(a).length}),style:e.normalizeStyle(`background:${r.multiselects[a]&&r.multiselects[a].length!==t.getDropdownOptions(a).length?"":t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${r.multiselects[a]&&r.multiselects[a].length!==t.getDropdownOptions(a).length?"":t.FINAL_CONFIG.style.pagination.buttons.color}`)},null,14,de)):e.createCommentVNode("",!0),r.currentSelectionSpan.col===a&&t.canChart?(e.openBlock(),e.createElementBlock("button",{key:4,onClick:l[5]||(l[5]=i=>r.showChart=!r.showChart),innerHTML:t.icons.chart,class:e.normalizeClass({"th-button-active":r.showChart}),style:e.normalizeStyle(`background:${r.showChart?"":t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${r.showChart?"":t.FINAL_CONFIG.style.pagination.buttons.color}`)},null,14,he)):e.createCommentVNode("",!0),s.rangeFilter&&r.rangeFilters[a]&&!r.hasNaN[a]?(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("label",{for:`rangeMin${a}`},[ye,e.createTextVNode(" min "),Ne],8,ge),e.withDirectives(e.createElementVNode("input",{type:"number",id:`rangeMin${a}`,max:r.immutableRangeFilters[a].max,min:r.immutableRangeFilters[a].min,"onUpdate:modelValue":i=>r.rangeFilters[a].min=i,onInput:l[6]||(l[6]=i=>t.debounce(t.filterBody,400)),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},null,44,ke),[[e.vModelText,r.rangeFilters[a].min,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("input",{type:"number",id:`rangeMax${a}`,max:r.immutableRangeFilters[a].max,min:r.immutableRangeFilters[a].min,"onUpdate:modelValue":i=>r.rangeFilters[a].max=i,onInput:l[7]||(l[7]=i=>t.debounce(t.filterBody,400)),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},null,44,pe),[[e.vModelText,r.rangeFilters[a].max,void 0,{number:!0}]]),e.createElementVNode("label",{for:`rangeMax${a}`},[Ce,e.createTextVNode(" max "),fe],8,be)])):e.createCommentVNode("",!0),t.canResetColumn(a,s)?(e.openBlock(),e.createElementBlock("button",{key:6,onClick:i=>t.resetFilter(a,s,i),disabled:t.isResetDisabled(a,s),class:"th-reset"}," ✖ ",8,Fe)):e.createCommentVNode("",!0),s.isMultiselect?(e.openBlock(),e.createElementBlock("div",{key:7,class:"th-dropdown","data-is-open":"false",id:`th_dropdown_${a}`,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.dropdowns.backgroundColor};color:${t.FINAL_CONFIG.style.dropdowns.color}`)},[e.createElementVNode("button",{class:"close-dropdown",onClick:i=>t.toggleMultiselect(a,s,i),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${t.FINAL_CONFIG.style.closeButtons.color}`)}," ✖ ",12,Ie),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.getDropdownOptions(a),(i,u)=>(e.openBlock(),e.createElementBlock("span",{class:"th-option",key:`th_option_${a}_${u}`,onClick:d=>t.selectDropdownOption(i,a),onKeyup:[e.withKeys(d=>t.selectDropdownOption(i,a),["enter"]),e.withKeys(d=>t.selectDropdownOption(i,a),["space"])],style:e.normalizeStyle(`opacity:${t.isDropdownOptionSelected(i,a)?1:.5}`),tabindex:"0"},[t.isDropdownOptionSelected(i,a)?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${t.FINAL_CONFIG.style.dropdowns.icons.selected.color};margin-right:5px`),class:"th-icon-green"},e.toDisplayString(t.FINAL_CONFIG.style.dropdowns.icons.selected.unicode),5)):(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`color:${t.FINAL_CONFIG.style.dropdowns.icons.unselected.color};margin-right:5px`),class:"th-icon-red"},e.toDisplayString(t.FINAL_CONFIG.style.dropdowns.icons.unselected.unicode),5)),e.createElementVNode("span",null,e.toDisplayString(i),1)],44,Se))),128))],12,_e)):e.createCommentVNode("",!0)])],6))),128))])],64)):e.createCommentVNode("",!0),e.createElementVNode("tr",null,[ve,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.tableHead,(s,a)=>(e.openBlock(),e.createElementBlock("th",{key:`col_selector_${a}`,class:e.normalizeClass({"vue-ui-table-col-selector":!r.hasNaN[a],"th-has-nan":r.hasNaN[a]}),style:e.normalizeStyle(`background:${a===r.selectedColumn&&!r.hasNaN[a]?t.FINAL_CONFIG.style.th.selected.backgroundColor:t.FINAL_CONFIG.style.th.backgroundColor};color:${a===r.selectedColumn&&!r.hasNaN[a]?t.FINAL_CONFIG.style.th.selected.color:t.FINAL_CONFIG.style.th.color};outline:${t.FINAL_CONFIG.style.th.outline}`)},[r.hasNaN[a]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:r.tableHead[a].type===r.constants.NUMERIC?t.icons.chevronDown:"",class:e.normalizeClass({"col-selector":r.tableHead[a].type===r.constants.NUMERIC}),tabindex:"0",onClick:e.withModifiers(i=>t.selectColumn(a),["stop"]),onKeyup:e.withKeys(i=>t.selectColumn(a),["enter"])},null,42,we))],6))),128))])]),e.createElementVNode("tbody",{onClick:l[8]||(l[8]=(...s)=>t.closeAllDropdowns&&t.closeAllDropdowns(...s)),onKeydown:l[9]||(l[9]=s=>t.navigateCell(s))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.visibleRows,(s,a)=>(e.openBlock(),e.createElementBlock("tr",{key:`tbody_${a}`,"data-row":a%2===0?"odd":"even",class:e.normalizeClass(`tr_${r.uid}`),style:e.normalizeStyle(`${a%2===0?`background:${t.FINAL_CONFIG.style.rows.odd.backgroundColor};color:${t.FINAL_CONFIG.style.rows.odd.color}`:`background:${t.FINAL_CONFIG.style.rows.even.backgroundColor};color:${t.FINAL_CONFIG.style.rows.even.color}`}`)},[e.createElementVNode("td",{class:"vue-ui-table-td-iteration","data-row":a%2===0?"odd":"even"},e.toDisplayString(s.absoluteIndex+1),9,Le),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.td,(i,u)=>(e.openBlock(),e.createElementBlock("td",{"data-row":a%2===0?"odd":"even",key:`td_${a}_${u}`,style:e.normalizeStyle(t.isNumeric(i)||o.dataset.header[u].type===r.constants.DATE?"text-align:right;font-variant-numeric: tabular-nums;":""),onClick:d=>t.selectTd({td:i,rowIndex:a,colIndex:u,headerType:o.dataset.header[u].type,event:d}),onKeyup:[e.withKeys(d=>t.selectTd({td:i,rowIndex:a,colIndex:u,headerType:o.dataset.header[u].type,event:d}),["enter"]),e.withKeys(d=>t.selectTd({td:i,rowIndex:a,colIndex:u,headerType:o.dataset.header[u].type,event:d}),["space"])],class:e.normalizeClass({"td-numeric":o.dataset.header[u].type===r.constants.NUMERIC,"td-focusable":!0,"td-has-nan":r.hasNaN[u]}),id:`cell_${a}_${u}_${r.uid}`,tabindex:"0"},[s.meta&&s.meta.markerIndices.includes(u)&&s.meta.unicodeIcon?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${s.meta.color};margin-right:3px`),innerHTML:s.meta.unicodeIcon},null,12,Ee)):e.createCommentVNode("",!0),o.dataset.header[u].type===r.constants.DATE?(e.openBlock(),e.createElementBlock("span",Be,e.toDisplayString(o.dataset.header[u].prefix)+" "+e.toDisplayString(new Date(i).toLocaleString().slice(0,10))+" "+e.toDisplayString(o.dataset.header[u].suffix),1)):o.dataset.header[u].isPercentage?(e.openBlock(),e.createElementBlock("span",Ae,e.toDisplayString(Number((i*100).toFixed(o.dataset.header[u].decimals)).toLocaleString())+"% ",1)):r.percentages[u]&&o.dataset.header[u].percentageTo&&!o.dataset.header[u].isPercentage?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass({"td-nan":isNaN(Number(i))})},e.toDisplayString(o.dataset.header[u].prefix)+" "+e.toDisplayString(isNaN(Number(i))?`${i} is not ${r.constants.NUMERIC}`:Number(i.toFixed(o.dataset.header[u].decimals)).toLocaleString())+" "+e.toDisplayString(o.dataset.header[u].suffix)+" ("+e.toDisplayString(isNaN(Number(i))?"":Number((i/t.getSum(r.percentages[u].referenceIndex)*100).toFixed(o.dataset.header[u].decimals)).toLocaleString())+"%) ",3)):o.dataset.header[u].type===r.constants.NUMERIC?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass({"td-nan":isNaN(Number(i))})},e.toDisplayString(o.dataset.header[u].prefix)+" "+e.toDisplayString(isNaN(Number(i))?`${i} is not ${r.constants.NUMERIC}`:Number(i.toFixed(o.dataset.header[u].decimals)).toLocaleString())+" "+e.toDisplayString(o.dataset.header[u].suffix),3)):(e.openBlock(),e.createElementBlock("span",xe,e.toDisplayString(o.dataset.header[u].prefix)+" "+e.toDisplayString(i)+" "+e.toDisplayString(o.dataset.header[u].suffix),1))],46,Oe))),128))],14,De))),128))],32)])],4),e.createElementVNode("div",{class:e.normalizeClass({"td-selector-info":!0,"td-selector-info--active":r.currentSelectionSpan.col!==void 0&&r.currentSelectionSpan.rows.length}),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.infoBar.backgroundColor};color:${t.FINAL_CONFIG.style.infoBar.color}`)},[r.currentSelectionSpan.col!==void 0&&r.currentSelectionSpan.rows.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{innerHTML:t.icons.table,class:"td-selector-icon"},null,8,Me),e.createElementVNode("span",null,[e.createElementVNode("b",null,[e.createTextVNode(e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].name)+" ",1),o.dataset.header[r.currentSelectionSpan.col].isPercentage?(e.openBlock(),e.createElementBlock("span",Ge," / "+e.toDisplayString(o.dataset.header[r.percentages[r.currentSelectionSpan.col].referenceIndex].name),1)):e.createCommentVNode("",!0)]),e.createElementVNode("span",Ve,[e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.nb)+" : ",1),e.createElementVNode("b",Te,e.toDisplayString(r.currentSelectionSpan.rows.length),1)]),e.createElementVNode("span",ze,[e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.sum)+" : ",1),o.dataset.header[r.currentSelectionSpan.col].isPercentage?(e.openBlock(),e.createElementBlock("b",He,e.toDisplayString(t.selectedCellsCalculations.sumPercentage),1)):(e.openBlock(),e.createElementBlock("b",Pe,e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].prefix)+" "+e.toDisplayString(t.selectedCellsCalculations.sumRegular)+" "+e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].suffix),1)),o.dataset.header[r.currentSelectionSpan.col].isPercentage?(e.openBlock(),e.createElementBlock("b",Re,"%")):e.createCommentVNode("",!0)]),e.createElementVNode("span",Ue,[e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.average)+" : ",1),o.dataset.header[r.currentSelectionSpan.col].isPercentage?(e.openBlock(),e.createElementBlock("b",je,e.toDisplayString(t.selectedCellsCalculations.averagePercentage),1)):(e.openBlock(),e.createElementBlock("b",Xe,e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].prefix)+" "+e.toDisplayString(t.selectedCellsCalculations.averageRegular)+" "+e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].suffix),1)),o.dataset.header[r.currentSelectionSpan.col].isPercentage?(e.openBlock(),e.createElementBlock("b",We,"%")):e.createCommentVNode("",!0)])]),e.createElementVNode("button",{onClick:l[10]||(l[10]=(...s)=>t.resetSelection&&t.resetSelection(...s)),class:"td-selector-info-reset",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${t.FINAL_CONFIG.style.closeButtons.color};border-radius:${t.FINAL_CONFIG.style.closeButtons.borderRadius}`)}," ✖ ",4)],64)):e.createCommentVNode("",!0)],6),r.bodyCopy.length>10?(e.openBlock(),e.createElementBlock("div",Ye,[e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.totalRows)+" : "+e.toDisplayString(o.dataset.body.length)+" | "+e.toDisplayString(t.FINAL_CONFIG.translations.paginatorLabel)+" : ",1),r.bodyCopy.length>10?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:0,id:"paginatorSelector","onUpdate:modelValue":l[11]||(l[11]=s=>r.itemsPerPage=s),onChange:l[12]||(l[12]=(...s)=>t.resetSelection&&t.resetSelection(...s)),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.paginatorOptions,(s,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.bodyCopy.length>s||o.dataset.body.length===s?(e.openBlock(),e.createElementBlock("option",{key:`paginator_option_${a}`},e.toDisplayString(s),1)):e.createCommentVNode("",!0)],64))),256))],36)),[[e.vModelSelect,r.itemsPerPage,void 0,{number:!0}]]):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.itemsPerPage>=250?(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("span",{innerHTML:t.icons.warning},null,8,qe),e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.sizeWarning),1)])):e.createCommentVNode("",!0),t.pages.length>1&&t.pages.length<=10?(e.openBlock(),e.createElementBlock("div",{key:2,class:"vue-ui-table-navigation-indicator",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.pagination.navigationIndicator.backgroundColor};width:calc(${r.currentPage/(t.pages.length-1)*100}%)`)},null,4)):e.createCommentVNode("",!0),t.pages.length>1?(e.openBlock(),e.createElementBlock("div",Ze,[e.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:l[13]||(l[13]=e.withModifiers(s=>t.navigate("previous"),["stop"])),innerHTML:t.icons.chevronLeft,disabled:r.currentPage===0,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.pagination.buttons.color};opacity:${r.currentPage===0?t.FINAL_CONFIG.style.pagination.buttons.opacityDisabled:1}`)},null,12,Je),t.pages.length>3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:l[14]||(l[14]=e.withModifiers(s=>t.navigate(1),["stop"])),disabled:r.currentPage===0,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.pagination.buttons.color};opacity:${r.currentPage===0?t.FINAL_CONFIG.style.pagination.buttons.opacityDisabled:1}`)}," 1 ",12,Qe),t.pages.length>10?(e.openBlock(),e.createElementBlock("div",$e,[e.createElementVNode("label",et,e.toDisplayString(t.FINAL_CONFIG.translations.page)+" "+e.toDisplayString(r.currentPage+1)+" / "+e.toDisplayString(t.pages.length),1),e.createElementVNode("input",{class:"vue-ui-table-page-scroller",id:"pageScroller",type:"range",step:"1",min:0,max:t.pages.length-1,onInput:l[15]||(l[15]=s=>t.updateCurrentPage(s)),value:r.currentPage,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border};accent-color:${t.FINAL_CONFIG.style.inputs.accentColor}`)},null,44,tt)])):(e.openBlock(),e.createElementBlock("span",rt,e.toDisplayString(t.FINAL_CONFIG.translations.page)+" "+e.toDisplayString(r.currentPage+1)+" / "+e.toDisplayString(t.pages.length),1)),e.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:l[16]||(l[16]=e.withModifiers(s=>t.navigate(t.pages.length),["stop"])),disabled:r.currentPage===t.pages.length-1,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.pagination.buttons.color};opacity:${r.currentPage===t.pages.length-1?t.FINAL_CONFIG.style.pagination.buttons.opacityDisabled:1}`)},e.toDisplayString(t.pages.length),13,nt)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.FINAL_CONFIG.translations.page)+" "+e.toDisplayString(r.currentPage+1)+" / "+e.toDisplayString(t.pages.length),1)],64)),e.createElementVNode("button",{class:"vue-ui-table-navigation",onClick:l[17]||(l[17]=e.withModifiers(s=>t.navigate("next"),["stop"])),innerHTML:t.icons.chevronRight,disabled:r.currentPage===t.pages.length-1,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${t.FINAL_CONFIG.style.pagination.buttons.color};opacity:${r.currentPage===t.pages.length-1?t.FINAL_CONFIG.style.pagination.buttons.opacityDisabled:1}`)},null,12,lt)])):e.createCommentVNode("",!0),r.showChart&&t.canChart?(e.openBlock(),e.createElementBlock("div",{key:4,class:"vue-ui-table-chart-modal",style:e.normalizeStyle(`top:${r.clientY}px; left:${r.clientX}px;background:${t.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${t.FINAL_CONFIG.style.chart.modal.color}`)},[e.createElementVNode("button",{class:"close-chart-modal",onClick:l[18]||(l[18]=s=>r.showChart=!1),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${t.FINAL_CONFIG.style.closeButtons.color};border-radius:${t.FINAL_CONFIG.style.closeButtons.borderRadius}`)}," ✖ ",4),e.createElementVNode("div",st,[t.availableDonutCategories.length?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:l[19]||(l[19]=s=>r.showDonutOptions=!0),innerHTML:t.icons.donut,class:e.normalizeClass({"is-active-chart":r.chart.type===r.constants.DONUT||r.showDonutOptions}),style:e.normalizeStyle(`background:${r.chart.type===r.constants.DONUT||r.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${r.chart.type===r.constants.DONUT||r.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.color:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)},null,14,ot)):e.createCommentVNode("",!0),e.createElementVNode("button",{onClick:l[20]||(l[20]=s=>{r.chart.type=r.constants.LINE,r.showDonutOptions=!1}),innerHTML:t.icons.chart,class:e.normalizeClass({"is-active-chart":r.chart.type===r.constants.LINE&&!r.showDonutOptions}),style:e.normalizeStyle(`background:${r.chart.type===r.constants.LINE&&!r.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${r.chart.type===r.constants.LINE&&!r.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.color:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)},null,14,at),e.createElementVNode("button",{onClick:l[21]||(l[21]=s=>{r.chart.type=r.constants.BAR,r.showDonutOptions=!1}),innerHTML:t.icons.bar,class:e.normalizeClass({"is-active-chart":r.chart.type===r.constants.BAR&&!r.showDonutOptions}),style:e.normalizeStyle(`background:${r.chart.type===r.constants.BAR&&!r.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${r.chart.type===r.constants.BAR&&!r.showDonutOptions?t.FINAL_CONFIG.style.chart.modal.buttons.selected.color:t.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)},null,14,ct)]),e.createElementVNode("div",it,[e.createElementVNode("b",null,[e.createTextVNode(e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].name)+" ",1),o.dataset.header[r.currentSelectionSpan.col].isPercentage&&o.dataset.header[r.currentSelectionSpan.col].percentageTo?(e.openBlock(),e.createElementBlock("span",ut," / "+e.toDisplayString(o.dataset.header[r.percentages[r.currentSelectionSpan.col].referenceIndex].name),1)):e.createCommentVNode("",!0),r.chart.type===r.constants.DONUT&&r.selectedDonutCategory&&r.selectedDonutCategory.name?(e.openBlock(),e.createElementBlock("span",dt,e.toDisplayString(t.FINAL_CONFIG.translations.by)+" "+e.toDisplayString(r.selectedDonutCategory.name),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ht,[r.showDonutOptions&&t.availableDonutCategories.length?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${t.FINAL_CONFIG.style.chart.modal.color}`)},[e.createElementVNode("fieldset",mt,[e.createElementVNode("legend",null,e.toDisplayString(t.FINAL_CONFIG.translations.chooseCategoryColumn),1),e.createElementVNode("div",gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availableDonutCategories,(s,a)=>(e.openBlock(),e.createElementBlock("div",{key:`donut_radio_${a}`,class:"vue-ui-table-fieldset-option"},[e.createElementVNode("input",{type:"radio",name:s.name,id:s.name,checked:r.selectedDonutCategory&&s.name===r.selectedDonutCategory.name,onInput:i=>r.selectedDonutCategory=t.availableDonutCategories[a],style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.inputs.backgroundColor};color:${t.FINAL_CONFIG.style.inputs.color};border:${t.FINAL_CONFIG.style.inputs.border};accent-color:${t.FINAL_CONFIG.style.inputs.accentColor}`)},null,44,yt),e.createElementVNode("label",{for:s.name},e.toDisplayString(s.name),9,Nt)]))),128))]),e.createElementVNode("button",{class:"vue-ui-table-generate-donut",disabled:!r.selectedDonutCategory,onClick:l[22]||(l[22]=(...s)=>t.applyDonutOption&&t.applyDonutOption(...s)),style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor};color:${t.FINAL_CONFIG.style.chart.modal.buttons.selected.color}`)},[e.createElementVNode("div",{style:{"margin-bottom":"-3px"},innerHTML:t.icons.donut},null,8,pt),e.createTextVNode(" "+e.toDisplayString(t.FINAL_CONFIG.translations.makeDonut),1)],12,kt)])],4)):e.createCommentVNode("",!0),[r.constants.BAR,r.constants.LINE].includes(r.chart.type)&&!r.showDonutOptions?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createElementBlock("svg",{viewBox:`0 0 ${r.chart.width} ${r.chart.height}`,class:"vue-ui-table-chart-svg",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.style.chart.layout.backgroundColor}`)},[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:"arrowhead",markerWidth:t.FINAL_CONFIG.style.chart.layout.progression.arrowSize,markerHeight:t.FINAL_CONFIG.style.chart.layout.progression.arrowSize,refX:"0",refY:t.FINAL_CONFIG.style.chart.layout.progression.arrowSize/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, ${t.FINAL_CONFIG.style.chart.layout.progression.arrowSize} ${t.FINAL_CONFIG.style.chart.layout.progression.arrowSize/2}, 0 ${t.FINAL_CONFIG.style.chart.layout.progression.arrowSize}`,fill:t.FINAL_CONFIG.style.chart.layout.progression.stroke},null,8,ft)],8,Ct)]),e.createElementVNode("g",null,[e.createElementVNode("line",{x1:0,x2:r.chart.width,y1:t.chartData.zero,y2:t.chartData.zero,stroke:t.FINAL_CONFIG.style.chart.layout.axis.stroke,"stroke-width":t.FINAL_CONFIG.style.chart.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Ft),e.createElementVNode("line",{x1:0,x2:0,y1:0,y2:r.chart.height,stroke:t.FINAL_CONFIG.style.chart.layout.axis.stroke,"stroke-width":t.FINAL_CONFIG.style.chart.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,_t)]),r.chart.type===r.constants.LINE?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.chartData.plots,(s,a)=>(e.openBlock(),e.createElementBlock("g",{key:`trap_fill_${a}`},[e.createElementVNode("rect",{x:a*t.chartData.slot,y:0,width:t.chartData.slot,height:r.chart.height,fill:r.selectedPlot===a?"rgba(0,0,0,0.03)":"transparent"},null,8,It)]))),128)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.chartData.plots,(s,a)=>(e.openBlock(),e.createElementBlock("g",{key:`plot_${a}`},[r.chart.type===r.constants.BAR?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[St,e.createElementVNode("rect",{x:s.x-t.chartData.slot/2,y:t.chartData.isAllNegative?0:t.calcRectY(s.value,s.y),height:s.value>=0?t.chartData.zero-s.y:t.chartData.isAllNegative?s.y:s.y-t.chartData.zero,width:t.chartData.slot,fill:t.FINAL_CONFIG.style.chart.layout.bar.fill?t.FINAL_CONFIG.style.chart.layout.bar.fill:r.selectedPlot===a?s.value>=0?"url(#barGradientSelected)":"url(#barGradientSelectedNeg)":(s.value>=0,"url(#barGradient)"),stroke:t.FINAL_CONFIG.style.chart.layout.bar.stroke,"stroke-width":"1"},null,8,vt),r.selectedPlot===a?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:s.x-(t.chartData.slot<100?50:t.chartData.slot/2),y:s.value>=0?s.y-32:s.y+4,height:"20",width:t.chartData.slot<100?100:t.chartData.slot,style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;text-align:center;font-size:20px;color:${t.FINAL_CONFIG.style.chart.layout.labels.color}`)},e.toDisplayString(s.prefix)+" "+e.toDisplayString(Number(s.value.toFixed(o.dataset.header[r.currentSelectionSpan.col].decimals)).toLocaleString())+" "+e.toDisplayString(s.suffix),5)],8,wt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),r.chart.type===r.constants.LINE?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a+1<t.chartData.plots.length?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.x,y1:s.y,x2:t.chartData.plots[a+1].x,y2:t.chartData.plots[a+1].y,"stroke-width":t.FINAL_CONFIG.style.chart.layout.line.strokeWidth,stroke:t.FINAL_CONFIG.style.chart.layout.line.stroke},null,8,Dt)):e.createCommentVNode("",!0),r.selectedPlot===a?(e.openBlock(),e.createElementBlock("line",{key:1,x1:s.x,y1:s.y,x2:s.x,y2:r.chart.height,stroke:t.FINAL_CONFIG.style.chart.layout.line.selector.stroke,"stroke-width":t.FINAL_CONFIG.style.chart.layout.line.selector.strokeWidth,"stroke-dasharray":t.FINAL_CONFIG.style.chart.layout.line.selector.strokeDasharray},null,8,Lt)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:s.x,cy:s.y,r:r.selectedPlot===a?t.FINAL_CONFIG.style.chart.layout.line.plot.radius.selected:t.FINAL_CONFIG.style.chart.layout.line.plot.radius.unselected,fill:t.FINAL_CONFIG.style.chart.layout.line.plot.fill,stroke:t.FINAL_CONFIG.style.chart.layout.line.plot.stroke,"stroke-width":t.FINAL_CONFIG.style.chart.layout.line.plot.strokeWidth},null,8,Ot),r.selectedPlot===a?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:s.x-(t.chartData.slot<100?50:t.chartData.slot/2),y:t.placeLabelOnTopOrBottom({previousPlot:t.chartData.plots[a-1],currentPlot:s,nextPlot:t.chartData.plots[a+1]}),height:"20",width:t.chartData.slot<100?100:t.chartData.slot,style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;text-align:center;font-size:20px;color:${t.FINAL_CONFIG.style.chart.layout.labels.color}`)},e.toDisplayString(s.prefix)+" "+e.toDisplayString(Number(s.value.toFixed(o.dataset.header[r.currentSelectionSpan.col].decimals)).toLocaleString())+" "+e.toDisplayString(s.suffix),5)],8,Et)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.chartData.plots,(s,a)=>(e.openBlock(),e.createElementBlock("g",{key:`trap_${a}`},[e.createElementVNode("rect",{x:a*t.chartData.slot,y:0,width:t.chartData.slot,height:r.chart.height,fill:"transparent",onMouseenter:i=>r.selectedPlot=a,onMouseleave:l[23]||(l[23]=i=>r.selectedPlot=void 0)},null,40,Bt)]))),128)),t.chartData.progression&&t.chartData.plots.length>2?(e.openBlock(),e.createElementBlock("line",{key:1,x1:t.chartData.progression.x1,y1:t.chartData.progression.y1,x2:t.chartData.progression.x2,y2:t.chartData.progression.y2,stroke:t.FINAL_CONFIG.style.chart.layout.progression.stroke,"stroke-width":t.FINAL_CONFIG.style.chart.layout.progression.strokeWidth,"stroke-dasharray":t.FINAL_CONFIG.style.chart.layout.progression.strokeDasharray,"marker-end":"url(#arrowhead)"},null,8,At)):e.createCommentVNode("",!0)],12,bt)),t.chartData.plots.length>=2?(e.openBlock(),e.createElementBlock("div",{key:0,class:"chart-trend",style:e.normalizeStyle(`color:${t.FINAL_CONFIG.style.chart.modal.color}`)},[xt,e.createTextVNode(" Trend: "+e.toDisplayString((t.chartData.progression.trend*100).toFixed(1))+" % ",1)],4)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),[r.constants.DONUT].includes(r.chart.type)&&!r.showDonutOptions?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 100 100",style:e.normalizeStyle(`max-width:100%; overflow: visible; padding: 0 24px;background:${t.FINAL_CONFIG.style.chart.layout.backgroundColor}`),class:"vue-ui-table-donut-chart"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.currentDonut,(s,a)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${a}`,d:s.path,stroke:`${s.color}CC`,"stroke-width":20,fill:"none"},null,8,Mt))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.currentDonut,(s,a)=>(e.openBlock(),e.createElementBlock("foreignObject",{key:`text_marker_${a}`,x:t.calcDonutMarkerLabelPositionX(s)-15,y:s.center.endY-15,height:"30",width:"30",style:{overflow:"visible",display:"flex","align-items":"center","justify-content":"center"}},[t.isArcBigEnough(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-table-donut-label",style:e.normalizeStyle(`color:${t.FINAL_CONFIG.style.chart.layout.labels.color}`)},[e.createElementVNode("b",null,e.toDisplayString(t.displayArcPercentage(s,r.currentDonut)),1),e.createElementVNode("span",Vt,e.toDisplayString(s.name),1)],4)):e.createCommentVNode("",!0)],8,Gt))),128)),e.createElementVNode("text",{x:50,y:42,"text-anchor":"middle","font-size":"6",fill:t.FINAL_CONFIG.style.chart.layout.labels.color},e.toDisplayString(t.FINAL_CONFIG.translations.total),9,Tt),e.createElementVNode("text",{x:50,y:48,"text-anchor":"middle","font-size":"4",fill:t.FINAL_CONFIG.style.chart.layout.labels.color},e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].prefix)+" "+e.toDisplayString(t.donutHollowLabels.total)+" "+e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].isPercentage?"%":"")+" "+e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].suffix),9,zt),e.createElementVNode("text",{x:50,y:56,"text-anchor":"middle","font-size":"6",fill:t.FINAL_CONFIG.style.chart.layout.labels.color},e.toDisplayString(t.FINAL_CONFIG.translations.average),9,Ht),e.createElementVNode("text",{x:50,y:62,"text-anchor":"middle","font-size":"4",fill:t.FINAL_CONFIG.style.chart.layout.labels.color},e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].prefix)+" "+e.toDisplayString(t.donutHollowLabels.average)+" "+e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].isPercentage?"%":"")+" "+e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].suffix),9,Pt)],4)),e.createElementVNode("div",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.currentDonut.filter(s=>s.value>0),(s,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-table-donut-legend-item",key:`donut_legend_${a}`,style:e.normalizeStyle(`color:${t.FINAL_CONFIG.style.chart.layout.labels.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`color:${s.color}`)},"●",4),e.createElementVNode("span",null,e.toDisplayString(s.name)+" : ",1),e.createElementVNode("b",null,e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].prefix)+" "+e.toDisplayString(t.getDonutLegendValue(s.absoluteValue))+" "+e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].isPercentage?"%":"")+" "+e.toDisplayString(o.dataset.header[r.currentSelectionSpan.col].suffix),1),e.createElementVNode("span",null,"("+e.toDisplayString((s.proportion*100).toFixed(1))+"%)",1)],4))),128))])],64)):e.createCommentVNode("",!0)],512)],4)):e.createCommentVNode("",!0)],4)}const jt=b._export_sfc(C,[["render",Ut],["__scopeId","data-v-5a108fbd"]]);exports.default=jt;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { useCssVars as Q, ref as h, computed as c, onMounted as J, openBlock as n, createElementBlock as l, normalizeStyle as $, normalizeClass as V, createBlock as K, unref as g, createSlots as Y, withCtx as C, renderSlot as r, normalizeProps as v, guardReactiveProps as f, createCommentVNode as p, createElementVNode as b, Fragment as _, renderList as w, createVNode as Z, mergeProps as z, nextTick as j } from "vue";
|
|
2
|
+
import { u as ee, c as E, t as te, o as ae, e as oe, Q as se, C as ne, H as le, n as re, q as ue } from "./index-uOtklCCx.js";
|
|
3
|
+
import { u as M } from "./useNestedProp-BgWkUab_.js";
|
|
4
|
+
import { u as ie, U as de } from "./usePrinter-B6xQCyL-.js";
|
|
5
|
+
import { _ as ce } from "./Shape-CjLV0scA.js";
|
|
6
|
+
import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const pe = ["id"], me = { role: "cell" }, fe = { role: "row" }, he = ["data-cell"], ge = {
|
|
8
|
+
key: 0,
|
|
9
|
+
style: { display: "flex", "flex-direction": "row", gap: "2px", "align-items": "center" }
|
|
10
|
+
}, be = ["height", "width"], ye = {
|
|
11
|
+
key: 0,
|
|
12
|
+
role: "cell",
|
|
13
|
+
"data-cell": "sum"
|
|
14
|
+
}, Ce = {
|
|
15
|
+
key: 1,
|
|
16
|
+
role: "cell",
|
|
17
|
+
"data-cell": "average"
|
|
18
|
+
}, _e = {
|
|
19
|
+
key: 2,
|
|
20
|
+
role: "cell",
|
|
21
|
+
"data-cell": "median"
|
|
22
|
+
}, ke = {
|
|
23
|
+
__name: "vue-ui-table-heatmap",
|
|
24
|
+
props: {
|
|
25
|
+
config: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default() {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
dataset: {
|
|
32
|
+
type: Array,
|
|
33
|
+
default() {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
setup(G, { expose: S }) {
|
|
39
|
+
const m = G;
|
|
40
|
+
Q((e) => ({
|
|
41
|
+
bb8dc4a0: W.value,
|
|
42
|
+
"44bd448b": X.value
|
|
43
|
+
}));
|
|
44
|
+
const { vue_ui_table_heatmap: B } = ee(), k = h(E()), u = h(!1), y = h(null), I = h(!1), x = h(0), t = c(() => {
|
|
45
|
+
const e = M({
|
|
46
|
+
userConfig: m.config,
|
|
47
|
+
defaultConfig: B
|
|
48
|
+
});
|
|
49
|
+
return e.theme ? {
|
|
50
|
+
...M({
|
|
51
|
+
userConfig: te.vue_ui_table_heatmap[e.theme] || m.config,
|
|
52
|
+
defaultConfig: e
|
|
53
|
+
})
|
|
54
|
+
} : e;
|
|
55
|
+
}), { isPrinting: U, isImaging: A, generatePdf: F, generateImage: P } = ie({
|
|
56
|
+
elementId: `table_heatmap_${k.value}`,
|
|
57
|
+
fileName: "vue-ui-table-heatmap"
|
|
58
|
+
}), D = c(() => t.value.table.responsiveBreakpoint), H = c(() => !!m.dataset && m.dataset.length);
|
|
59
|
+
J(() => {
|
|
60
|
+
ae(m.dataset) && oe({
|
|
61
|
+
componentName: "VueUiTableHeatmap",
|
|
62
|
+
type: "dataset"
|
|
63
|
+
});
|
|
64
|
+
const e = new ResizeObserver((s) => {
|
|
65
|
+
s.forEach((a) => {
|
|
66
|
+
u.value = a.contentRect.width < D.value;
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
y.value && e.observe(y.value);
|
|
70
|
+
});
|
|
71
|
+
const N = c(() => m.dataset.map((e) => {
|
|
72
|
+
const s = e.values.map((o) => isNaN(o) ? 0 : o), a = s.reduce((o, d) => o + d, 0);
|
|
73
|
+
return {
|
|
74
|
+
...e,
|
|
75
|
+
values: s,
|
|
76
|
+
serieExtremes: {
|
|
77
|
+
max: Math.max(...s),
|
|
78
|
+
min: Math.min(...s)
|
|
79
|
+
},
|
|
80
|
+
sum: a,
|
|
81
|
+
average: a / s.length,
|
|
82
|
+
median: se(s),
|
|
83
|
+
displayValues: [e.name, ...e.values],
|
|
84
|
+
id: E()
|
|
85
|
+
};
|
|
86
|
+
})), O = c(() => {
|
|
87
|
+
const e = N.value.flatMap((s) => s.values);
|
|
88
|
+
return {
|
|
89
|
+
min: Math.min(...e),
|
|
90
|
+
max: Math.max(...e)
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
function L(e, s) {
|
|
94
|
+
const a = t.value.style.heatmapColors.useIndividualScale;
|
|
95
|
+
return le(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, a ? s.min : O.value.min, a ? s.max : O.value.max, e);
|
|
96
|
+
}
|
|
97
|
+
const R = c(() => N.value.map((e) => ({
|
|
98
|
+
...e,
|
|
99
|
+
colors: e.displayValues.map((s) => isNaN(s) ? t.value.style.backgroundColor : L(s, e.serieExtremes))
|
|
100
|
+
}))), X = c(() => t.value.style.backgroundColor), W = c(() => `${t.value.table.borderWidth}px`);
|
|
101
|
+
function T() {
|
|
102
|
+
j(() => {
|
|
103
|
+
const e = R.value.map((o) => [
|
|
104
|
+
[o.name],
|
|
105
|
+
o.displayValues,
|
|
106
|
+
[o.sum],
|
|
107
|
+
[o.average],
|
|
108
|
+
[o.median]
|
|
109
|
+
]), s = [[[""], t.value.table.head.values, ["sum"], ["average"], ["median"]]].concat(e), a = re(s);
|
|
110
|
+
ue({ csvContent: a, title: "vue-ui-table-heatmap" });
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function q(e) {
|
|
114
|
+
I.value = e, x.value += 1;
|
|
115
|
+
}
|
|
116
|
+
return S({
|
|
117
|
+
generatePdf: F,
|
|
118
|
+
generateCsv: T,
|
|
119
|
+
generateImage: P
|
|
120
|
+
}), (e, s) => (n(), l("div", {
|
|
121
|
+
ref_key: "tableContainer",
|
|
122
|
+
ref: y,
|
|
123
|
+
style: $(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${t.value.userOptions.show ? "36px" : ""}; ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}; position:relative;`),
|
|
124
|
+
class: V({ "vue-ui-responsive": u.value }),
|
|
125
|
+
id: `table_heatmap_${k.value}`
|
|
126
|
+
}, [
|
|
127
|
+
t.value.userOptions.show && H.value ? (n(), K(de, {
|
|
128
|
+
ref: "details",
|
|
129
|
+
key: `user_option_${x.value}`,
|
|
130
|
+
backgroundColor: t.value.style.backgroundColor,
|
|
131
|
+
color: t.value.style.color,
|
|
132
|
+
isPrinting: g(U),
|
|
133
|
+
isImaging: g(A),
|
|
134
|
+
uid: k.value,
|
|
135
|
+
hasPdf: t.value.userOptions.buttons.pdf,
|
|
136
|
+
hasXls: t.value.userOptions.buttons.csv,
|
|
137
|
+
hasImg: t.value.userOptions.buttons.img,
|
|
138
|
+
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
139
|
+
isFullscreen: I.value,
|
|
140
|
+
titles: { ...t.value.userOptions.buttonTitles },
|
|
141
|
+
chartElement: y.value,
|
|
142
|
+
onToggleFullscreen: q,
|
|
143
|
+
onGeneratePdf: g(F),
|
|
144
|
+
onGenerateCsv: T,
|
|
145
|
+
onGenerateImage: g(P)
|
|
146
|
+
}, Y({ _: 2 }, [
|
|
147
|
+
e.$slots.optionPdf ? {
|
|
148
|
+
name: "optionPdf",
|
|
149
|
+
fn: C(() => [
|
|
150
|
+
r(e.$slots, "optionPdf", {}, void 0, !0)
|
|
151
|
+
]),
|
|
152
|
+
key: "0"
|
|
153
|
+
} : void 0,
|
|
154
|
+
e.$slots.optionCsv ? {
|
|
155
|
+
name: "optionCsv",
|
|
156
|
+
fn: C(() => [
|
|
157
|
+
r(e.$slots, "optionCsv", {}, void 0, !0)
|
|
158
|
+
]),
|
|
159
|
+
key: "1"
|
|
160
|
+
} : void 0,
|
|
161
|
+
e.$slots.optionImg ? {
|
|
162
|
+
name: "optionImg",
|
|
163
|
+
fn: C(() => [
|
|
164
|
+
r(e.$slots, "optionImg", {}, void 0, !0)
|
|
165
|
+
]),
|
|
166
|
+
key: "2"
|
|
167
|
+
} : void 0,
|
|
168
|
+
e.$slots.optionFullscreen ? {
|
|
169
|
+
name: "optionFullscreen",
|
|
170
|
+
fn: C(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
171
|
+
r(e.$slots, "optionFullscreen", v(f({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
172
|
+
]),
|
|
173
|
+
key: "3"
|
|
174
|
+
} : void 0
|
|
175
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : p("", !0),
|
|
176
|
+
b("table", {
|
|
177
|
+
class: V({ "vue-ui-table-heatmap": !0 }),
|
|
178
|
+
style: $(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor};`)
|
|
179
|
+
}, [
|
|
180
|
+
b("caption", null, [
|
|
181
|
+
r(e.$slots, "caption", {}, void 0, !0)
|
|
182
|
+
]),
|
|
183
|
+
b("thead", null, [
|
|
184
|
+
b("tr", {
|
|
185
|
+
role: "row",
|
|
186
|
+
style: $(`background:${t.value.table.head.backgroundColor};color:${t.value.table.head.color}`)
|
|
187
|
+
}, [
|
|
188
|
+
(n(!0), l(_, null, w(t.value.table.head.values, (a, o) => (n(), l("th", me, [
|
|
189
|
+
r(e.$slots, "head", v(f({ value: a, rowIndex: o, type: typeof a, isResponsive: u.value })), void 0, !0)
|
|
190
|
+
]))), 256))
|
|
191
|
+
], 4)
|
|
192
|
+
]),
|
|
193
|
+
b("tbody", null, [
|
|
194
|
+
(n(!0), l(_, null, w(R.value, (a, o) => (n(), l("tr", fe, [
|
|
195
|
+
(n(!0), l(_, null, w(a.displayValues, (d, i) => (n(), l("td", {
|
|
196
|
+
role: "cell",
|
|
197
|
+
"data-cell": t.value.table.head.values[i]
|
|
198
|
+
}, [
|
|
199
|
+
a.color && i === 0 ? (n(), l("div", ge, [
|
|
200
|
+
a.color ? (n(), l("svg", {
|
|
201
|
+
key: 0,
|
|
202
|
+
height: t.value.style.shapeSize,
|
|
203
|
+
width: t.value.style.shapeSize,
|
|
204
|
+
viewBox: "0 0 20 20",
|
|
205
|
+
style: { background: "none", overflow: "visible" }
|
|
206
|
+
}, [
|
|
207
|
+
Z(ce, {
|
|
208
|
+
plot: { x: 10, y: 10 },
|
|
209
|
+
color: a.color,
|
|
210
|
+
radius: 9,
|
|
211
|
+
shape: a.shape || "circle"
|
|
212
|
+
}, null, 8, ["color", "shape"])
|
|
213
|
+
], 8, be)) : p("", !0),
|
|
214
|
+
r(e.$slots, "rowTitle", v(f({ value: d, rowIndex: o, colIndex: i, type: typeof d, isResponsive: u.value })), void 0, !0)
|
|
215
|
+
])) : (n(), l(_, { key: 1 }, [
|
|
216
|
+
i === 0 ? r(e.$slots, "rowTitle", v(z({ key: 0 }, { value: d, rowIndex: o, colIndex: i, type: typeof d, isResponsive: u.value })), void 0, !0) : p("", !0),
|
|
217
|
+
i > 0 ? r(e.$slots, "cell", v(z({ key: 1 }, { value: d, rowIndex: o, colIndex: i, type: typeof d, isResponsive: u.value, color: a.colors[i], textColor: g(ne)(a.colors[i]) })), void 0, !0) : p("", !0)
|
|
218
|
+
], 64))
|
|
219
|
+
], 8, he))), 256)),
|
|
220
|
+
t.value.table.showSum ? (n(), l("td", ye, [
|
|
221
|
+
r(e.$slots, "sum", v(f({ value: a.sum, rowIndex: o, isResponsive: u.value })), void 0, !0)
|
|
222
|
+
])) : p("", !0),
|
|
223
|
+
t.value.table.showAverage ? (n(), l("td", Ce, [
|
|
224
|
+
r(e.$slots, "average", v(f({ value: a.average, rowIndex: o, isResponsive: u.value })), void 0, !0)
|
|
225
|
+
])) : p("", !0),
|
|
226
|
+
t.value.table.showMedian ? (n(), l("td", _e, [
|
|
227
|
+
r(e.$slots, "median", v(f({ value: a.median, rowIndex: o, isResponsive: u.value })), void 0, !0)
|
|
228
|
+
])) : p("", !0)
|
|
229
|
+
]))), 256))
|
|
230
|
+
])
|
|
231
|
+
], 4)
|
|
232
|
+
], 14, pe));
|
|
233
|
+
}
|
|
234
|
+
}, Ne = /* @__PURE__ */ ve(ke, [["__scopeId", "data-v-3d431bc6"]]);
|
|
235
|
+
export {
|
|
236
|
+
Ne as default
|
|
237
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-p5gfZSvB.cjs"),C=require("./useNestedProp-2kIU-7On.cjs"),P=require("./usePrinter-fZlsJid8.cjs"),z=require("./Shape-CVItL3vh.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O=["id"],T={role:"cell"},M={role:"row"},G=["data-cell"],q={key:0,style:{display:"flex","flex-direction":"row",gap:"2px","align-items":"center"}},U=["height","width"],L={key:0,role:"cell","data-cell":"sum"},A={key:1,role:"cell","data-cell":"average"},D={key:2,role:"cell","data-cell":"median"},H={__name:"vue-ui-table-heatmap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(_,{expose:B}){const d=_;e.useCssVars(t=>({bb8dc4a0:V.value,"44bd448b":S.value}));const{vue_ui_table_heatmap:I}=r.useConfig(),p=e.ref(r.createUid()),s=e.ref(!1),c=e.ref(null),m=e.ref(!1),v=e.ref(0),o=e.computed(()=>{const t=C.useNestedProp({userConfig:d.config,defaultConfig:I});return t.theme?{...C.useNestedProp({userConfig:r.themes.vue_ui_table_heatmap[t.theme]||d.config,defaultConfig:t})}:t}),{isPrinting:$,isImaging:N,generatePdf:f,generateImage:g}=P.usePrinter({elementId:`table_heatmap_${p.value}`,fileName:"vue-ui-table-heatmap"}),x=e.computed(()=>o.value.table.responsiveBreakpoint),E=e.computed(()=>!!d.dataset&&d.dataset.length);e.onMounted(()=>{r.objectIsEmpty(d.dataset)&&r.error({componentName:"VueUiTableHeatmap",type:"dataset"});const t=new ResizeObserver(l=>{l.forEach(a=>{s.value=a.contentRect.width<x.value})});c.value&&t.observe(c.value)});const h=e.computed(()=>d.dataset.map(t=>{const l=t.values.map(n=>isNaN(n)?0:n),a=l.reduce((n,i)=>n+i,0);return{...t,values:l,serieExtremes:{max:Math.max(...l),min:Math.min(...l)},sum:a,average:a/l.length,median:r.calcMedian(l),displayValues:[t.name,...t.values],id:r.createUid()}})),b=e.computed(()=>{const t=h.value.flatMap(l=>l.values);return{min:Math.min(...t),max:Math.max(...t)}});function w(t,l){const a=o.value.style.heatmapColors.useIndividualScale;return r.interpolateColorHex(o.value.style.heatmapColors.min,o.value.style.heatmapColors.max,a?l.min:b.value.min,a?l.max:b.value.max,t)}const y=e.computed(()=>h.value.map(t=>({...t,colors:t.displayValues.map(l=>isNaN(l)?o.value.style.backgroundColor:w(l,t.serieExtremes))}))),S=e.computed(()=>o.value.style.backgroundColor),V=e.computed(()=>`${o.value.table.borderWidth}px`);function k(){e.nextTick(()=>{const t=y.value.map(n=>[[n.name],n.displayValues,[n.sum],[n.average],[n.median]]),l=[[[""],o.value.table.head.values,["sum"],["average"],["median"]]].concat(t),a=r.createCsvContent(l);r.downloadCsv({csvContent:a,title:"vue-ui-table-heatmap"})})}function F(t){m.value=t,v.value+=1}return B({generatePdf:f,generateCsv:k,generateImage:g}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:c,style:e.normalizeStyle(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${o.value.userOptions.show?"36px":""}; ${m.value?"vue-data-ui-wrapper-fullscreen":""}; position:relative;`),class:e.normalizeClass({"vue-ui-responsive":s.value}),id:`table_heatmap_${p.value}`},[o.value.userOptions.show&&E.value?(e.openBlock(),e.createBlock(P.UserOptions,{ref:"details",key:`user_option_${v.value}`,backgroundColor:o.value.style.backgroundColor,color:o.value.style.color,isPrinting:e.unref($),isImaging:e.unref(N),uid:p.value,hasPdf:o.value.userOptions.buttons.pdf,hasXls:o.value.userOptions.buttons.csv,hasImg:o.value.userOptions.buttons.img,hasFullscreen:o.value.userOptions.buttons.fullscreen,isFullscreen:m.value,titles:{...o.value.userOptions.buttonTitles},chartElement:c.value,onToggleFullscreen:F,onGeneratePdf:e.unref(f),onGenerateCsv:k,onGenerateImage:e.unref(g)},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:n})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:n})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),e.createElementVNode("table",{class:e.normalizeClass({"vue-ui-table-heatmap":!0}),style:e.normalizeStyle(`width:100%;font-family:${o.value.style.fontFamily};background:${o.value.style.backgroundColor};`)},[e.createElementVNode("caption",null,[e.renderSlot(t.$slots,"caption",{},void 0,!0)]),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${o.value.table.head.backgroundColor};color:${o.value.table.head.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.table.head.values,(a,n)=>(e.openBlock(),e.createElementBlock("th",T,[e.renderSlot(t.$slots,"head",e.normalizeProps(e.guardReactiveProps({value:a,rowIndex:n,type:typeof a,isResponsive:s.value})),void 0,!0)]))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(a,n)=>(e.openBlock(),e.createElementBlock("tr",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.displayValues,(i,u)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":o.value.table.head.values[u]},[a.color&&u===0?(e.openBlock(),e.createElementBlock("div",q,[a.color?(e.openBlock(),e.createElementBlock("svg",{key:0,height:o.value.style.shapeSize,width:o.value.style.shapeSize,viewBox:"0 0 20 20",style:{background:"none",overflow:"visible"}},[e.createVNode(z._sfc_main,{plot:{x:10,y:10},color:a.color,radius:9,shape:a.shape||"circle"},null,8,["color","shape"])],8,U)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.guardReactiveProps({value:i,rowIndex:n,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u===0?e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.mergeProps({key:0},{value:i,rowIndex:n,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0):e.createCommentVNode("",!0),u>0?e.renderSlot(t.$slots,"cell",e.normalizeProps(e.mergeProps({key:1},{value:i,rowIndex:n,colIndex:u,type:typeof i,isResponsive:s.value,color:a.colors[u],textColor:e.unref(r.adaptColorToBackground)(a.colors[u])})),void 0,!0):e.createCommentVNode("",!0)],64))],8,G))),256)),o.value.table.showSum?(e.openBlock(),e.createElementBlock("td",L,[e.renderSlot(t.$slots,"sum",e.normalizeProps(e.guardReactiveProps({value:a.sum,rowIndex:n,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showAverage?(e.openBlock(),e.createElementBlock("td",A,[e.renderSlot(t.$slots,"average",e.normalizeProps(e.guardReactiveProps({value:a.average,rowIndex:n,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showMedian?(e.openBlock(),e.createElementBlock("td",D,[e.renderSlot(t.$slots,"median",e.normalizeProps(e.guardReactiveProps({value:a.median,rowIndex:n,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0)]))),256))])],4)],14,O))}},X=R._export_sfc(H,[["__scopeId","data-v-3d431bc6"]]);exports.default=X;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-p5gfZSvB.cjs"),V=require("./useNestedProp-2kIU-7On.cjs"),H=require("./vue-ui-sparkline-CJydanLS.cjs"),X=require("./BaseIcon-JtWoVorZ.cjs"),P=require("./usePrinter-fZlsJid8.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=["id"],Q={style:{"z-index":"1","padding-right":"24px"}},Y=["onClick"],Z={style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center"}},j=["data-cell"],ee={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"6px"}},te=["data-cell","onPointerenter"],le=["data-cell"],oe=["data-cell"],ae=["data-cell"],ne=["data-cell"],re={__name:"vue-ui-table-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup($,{expose:F}){const v=$;e.useCssVars(l=>({"2af6bd52":l.tdo}));const{vue_ui_table_sparkline:D}=s.useConfig(),y=e.ref(s.createUid()),S=e.ref(0),x=e.ref(0),t=e.computed(()=>{const l=V.useNestedProp({userConfig:v.config,defaultConfig:D});return l.theme?{...V.useNestedProp({userConfig:s.themes.vue_ui_table_sparkline[l.theme]||v.config,defaultConfig:l}),customPalette:s.themePalettes[l.theme]||s.palette}:l}),{isPrinting:C,isImaging:N,generatePdf:z,generateImage:w}=P.usePrinter({elementId:`table_${y.value}`,fileName:t.value.title.text||"vue-ui-table-sparkline"}),O=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),f=e.ref(null),B=e.ref(!1),W=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{s.objectIsEmpty(v.dataset)&&s.error({componentName:"VueUiTableSparkline",type:"dataset"});const l=new ResizeObserver(r=>{r.forEach(o=>{B.value=o.contentRect.width<W.value})});f.value&&l.observe(f.value)});const A=e.computed(()=>(v.dataset.forEach((l,r)=>{s.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{s.error({componentName:"VueUiTableSparkline",type:"datasetSerieAttribute",property:o,index:r})})}),v.dataset.map((l,r)=>{const o=(l.values||[]).map(n=>isNaN(n)?0:n??0),u=o.reduce((n,a)=>n+a,0);return{...l,values:l.values||[],color:s.convertColorToHex(l.color)||O.value[r]||s.palette[r]||s.palette[r%s.palette.length],sum:u,average:u/o.length,median:s.calcMedian(o),sparklineDataset:o.map((n,a)=>({period:t.value.colNames[a]||`col ${a}`,value:n||0}))}})));function T(l){const o=(l[0].values||[]).map((n,a)=>l.map(i=>i.values[a]||[])).map(n=>n.map((a,i)=>[a,i]).sort((a,i)=>i[0]-a[0]).map(a=>a[1]));return l.map((n,a)=>({...n,values:n.values||[],orders:o[a]}))}const m=e.computed(()=>T(A.value)),g=e.ref(m.value),M=e.computed(()=>Math.max(...g.value.map(l=>(l.values||[]).length))),b=e.ref(void 0),k=e.ref(!1),h=e.ref(void 0),_=e.ref(-1);function L(){k.value=!1,h.value=void 0,_.value=-1,g.value=m.value}function G(l){k.value=!0,h.value=l;const r=m.value.map(a=>a.values[l]||[]),o=b.value===l?1:-1;_.value=o,l===b.value?b.value=void 0:b.value=l;const n=r.map((a,i)=>[i,a]).sort((a,i)=>o*(i[1]-a[1])).map(a=>a[0]).map(a=>m.value[a]);g.value=n,x.value+=1}const q=e.computed(()=>Math.max(...v.dataset.map(l=>(l.values||[]).length))),p=e.computed(()=>{let l=t.value.colNames;if(!l.length)for(let o=0;o<q.value;o+=1)l.push(`col ${o+1}`);t.value.showTotal&&(l=[...l,t.value.translations.total]);let r;return t.value.showAverage&&t.value.showMedian?r=[...l,t.value.translations.average,t.value.translations.median]:t.value.showAverage&&!t.value.showMedian?r=[...l,t.value.translations.average]:!t.value.showAverage&&t.value.showMedian?r=[...l,t.value.translations.median]:r=l,t.value.showSparklines?[...r,t.value.translations.chart]:r}),d=e.ref(void 0),c=e.ref(void 0);function R({dataIndex:l,serieIndex:r}){d.value=l,c.value=r}const E=e.ref(!1);function U(l){E.value=l,S.value+=1}function I(){e.nextTick(()=>{const l=[t.value.translations.serie].concat(p.value),r=A.value.map((n,a)=>[[n.name],n.values,[n.sum],[n.average],[n.median]]),o=[l].concat(r),u=s.createCsvContent(o);s.downloadCsv({csvContent:u,title:t.value.title.text||"vue-ui-table-sparkline"})})}return F({generatePdf:z,generateImage:w,generateCsv:I,restoreOrder:L}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:f,class:e.normalizeClass({"vue-ui-responsive":B.value}),style:{overflow:"hidden"},id:`table_${y.value}`},[e.createElementVNode("div",{style:{overflow:"auto"},onPointerleave:r[0]||(r[0]=o=>{c.value=void 0,d.value=void 0})},[e.createElementVNode("table",{class:"vue-ui-data-table",style:e.normalizeStyle({fontFamily:t.value.fontFamily,position:"relative"})},[t.value.title.text?(e.openBlock(),e.createElementBlock("caption",{key:0,style:e.normalizeStyle({backgroundColor:t.value.title.backgroundColor})},[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:`${t.value.title.fontSize}px`,fontWeight:t.value.title.bold?"bold":"normal",color:t.value.title.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.text),5),t.value.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({fontSize:`${t.value.title.subtitle.fontSize}px`,fontWeight:t.value.title.subtitle.bold?"bold":"normal",color:t.value.title.subtitle.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("thead",Q,[e.createElementVNode("tr",{role:"row",class:"vue-ui-data-table__thead-row",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color})},[e.createElementVNode("th",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,outline:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal"}),class:"sticky-col-first"},e.toDisplayString(t.value.translations.serie),5),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,u)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",style:e.normalizeStyle({background:t.value.thead.backgroundColor,outline:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal",minWidth:u===p.value.length-1?"150px":"",cursor:m.value[0].values[u]!==void 0?"pointer":"default"}),onClick:()=>G(u),class:e.normalizeClass({"sticky-col":u===p.value.length-1&&t.value.showSparklines})},[e.createElementVNode("div",Z,[e.createElementVNode("span",null,e.toDisplayString(o),1),k.value&&u===h.value&&m.value[0].values[u]!==void 0?(e.openBlock(),e.createBlock(X.default,{key:0,size:18,name:_.value===1?"sort":"sortReverse",stroke:t.value.thead.color},null,8,["name","stroke"])):e.createCommentVNode("",!0)]),t.value.userOptions.show&&u===p.value.length-1?(e.openBlock(),e.createBlock(P.UserOptions,{ref_for:!0,ref:"details",key:`user_option_${S.value}`,backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color,isPrinting:e.unref(C),isImaging:e.unref(N),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:E.value,titles:{...t.value.userOptions.buttonTitles},chartElement:f.value,onToggleFullscreen:U,onGeneratePdf:e.unref(z),onGenerateImage:e.unref(w),onGenerateCsv:I},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:a})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:a})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0)],14,Y))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(o,u)=>(e.openBlock(),e.createElementBlock("tr",{role:"row",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,color:t.value.tbody.color}),class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":u%2===0,"vue-ui-data-table__tbody__row-odd":u%2!==0})},[e.createElementVNode("td",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.serie,class:"vue-ui-data-table__tbody__td sticky-col-first"},[e.createElementVNode("div",ee,[e.createElementVNode("span",{style:e.normalizeStyle({color:o.color})},"⬤",4),e.createElementVNode("span",null,e.toDisplayString(o.name??"-"),1)])],12,j),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(n,a)=>(e.openBlock(),e.createElementBlock("td",{role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,backgroundColor:d.value!==void 0&&c.value!==void 0&&a===d.value&&c.value===u?`${o.color}33`:"",borderRadius:d.value!==void 0&&c.value!==void 0&&a===d.value&&c.value===u?"3px":""}),"data-cell":p.value[a],class:"vue-ui-data-table__tbody__td",onPointerenter:i=>{c.value=u,d.value=a}},e.toDisplayString([null,void 0].includes(o.values[a])?"-":Number(o.values[a].toFixed(t.value.roundingValues)).toLocaleString()),45,te))),256)),t.value.showTotal?(e.openBlock(),e.createElementBlock("td",{key:0,role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.total,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(Number(o.sum.toFixed(t.value.roundingTotal)).toLocaleString()),13,le)):e.createCommentVNode("",!0),t.value.showAverage?(e.openBlock(),e.createElementBlock("td",{key:1,role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.average,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(Number(o.average.toFixed(t.value.roundingAverage)).toLocaleString()),13,oe)):e.createCommentVNode("",!0),t.value.showMedian?(e.openBlock(),e.createElementBlock("td",{key:2,role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.median,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(Number(o.median.toFixed(t.value.roundingMedian)).toLocaleString()),13,ae)):e.createCommentVNode("",!0),t.value.showSparklines?(e.openBlock(),e.createElementBlock("td",{key:3,role:"cell","data-cell":t.value.translations.chart,style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),class:"vue-ui-data-table__tbody__td sticky-col"},[(e.openBlock(),e.createBlock(H.default,{key:`sparkline_${u}_${x.value}`,onHoverIndex:({index:n})=>R({dataIndex:n,serieIndex:u}),dataset:o.sparklineDataset,showInfo:!1,selectedIndex:d.value,config:{type:t.value.sparkline.type,style:{backgroundColor:t.value.tbody.backgroundColor,animation:{show:t.value.sparkline.animation.show&&!e.unref(C)&&!e.unref(N),animationFrames:t.value.sparkline.animation.animationFrames},line:{color:o.color,smooth:t.value.sparkline.smooth,strokeWidth:t.value.sparkline.strokeWidth},bar:{color:o.color},area:{color:o.color,opacity:t.value.sparkline.showArea?16:0,useGradient:t.value.sparkline.useGradient},verticalIndicator:{color:o.color},plot:{radius:9,stroke:t.value.tbody.backgroundColor,strokeWidth:3}}}},null,8,["onHoverIndex","dataset","selectedIndex","config"]))],12,ne)):e.createCommentVNode("",!0)],6))),256))])],4)],32)],10,K))}},ue=J._export_sfc(re,[["__scopeId","data-v-3af92d54"]]);exports.default=ue;
|