@topdatasec/report 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +218 -0
- package/lib/index.d.ts +5 -8
- package/{es/bar/Bar.d.ts → lib/report/components/Bar.vue.d.ts} +2 -2
- package/{es/pie/Pie.d.ts → lib/report/components/Line.vue.d.ts} +2 -2
- package/{es/line/Line.d.ts → lib/report/components/Pie.vue.d.ts} +2 -2
- package/{es/time/Time.d.ts → lib/report/components/RangeTime.vue.d.ts} +3 -3
- package/lib/report/components/Report.vue.d.ts +18 -0
- package/{es/table/Table.d.ts → lib/report/components/ReportChart.vue.d.ts} +2 -2
- package/lib/report/components/ReportDescribe.vue.d.ts +5 -0
- package/{es/select/Select.d.ts → lib/report/components/ReportSelect.vue.d.ts} +3 -3
- package/lib/report/components/ReportTable.vue.d.ts +5 -0
- package/lib/report/components/ReportText.vue.d.ts +5 -0
- package/lib/report/components/SettingTable.vue.d.ts +2 -0
- package/lib/report/components/editor/components/Setting.vue.d.ts +2 -0
- package/lib/report/components/editor/index.vue.d.ts +24 -0
- package/{es/settingFilter/settingFilter.d.ts → lib/report/components/preview/Catalogue.vue.d.ts} +5 -3
- package/lib/report/components/preview/index.vue.d.ts +24 -0
- package/lib/report/index.d.ts +5 -8
- package/lib/report/index.vue.d.ts +2 -0
- package/lib/stores/interface/index.d.ts +1 -0
- package/lib/stores/modules/report.d.ts +10 -9
- package/lib/style.css +1 -0
- package/lib/tds-report-ui.es.js +26431 -0
- package/lib/tds-report-ui.umd.js +205 -0
- package/lib/utils/api.d.ts +6 -0
- package/lib/utils/chartsOption.d.ts +45 -12
- package/lib/utils/index.d.ts +1 -41
- package/lib/withInstall.d.ts +4 -0
- package/package.json +69 -88
- package/README.zh-CN.md +0 -0
- package/dist/index.iife.js +0 -1
- package/dist/index.js +0 -919
- package/dist/index.umd.cjs +0 -1
- package/dist/style.css +0 -1
- package/es/_virtual/_plugin-vue_export-helper.js +0 -9
- package/es/bar/Bar.vue.js +0 -20
- package/es/bar/Bar.vue2.js +0 -4
- package/es/bar/index.d.ts +0 -15
- package/es/bar/index.js +0 -6
- package/es/components.d.ts +0 -4
- package/es/components.js +0 -8
- package/es/config/Config.css +0 -1
- package/es/config/Config.vue.js +0 -7
- package/es/config/Config.vue2.js +0 -207
- package/es/config/index.d.ts +0 -14
- package/es/config/index.js +0 -6
- package/es/index.d.ts +0 -10
- package/es/index.js +0 -38
- package/es/line/Line.vue.js +0 -20
- package/es/line/Line.vue2.js +0 -4
- package/es/line/index.d.ts +0 -15
- package/es/line/index.js +0 -6
- package/es/pie/index.d.ts +0 -15
- package/es/report/Report.d.ts +0 -7
- package/es/report/index.d.ts +0 -17
- package/es/select/index.d.ts +0 -25
- package/es/settingCharts/SettingCharts.d.ts +0 -5
- package/es/settingCharts/index.d.ts +0 -14
- package/es/settingFilter/index.d.ts +0 -15
- package/es/settingTable/index.d.ts +0 -14
- package/es/settingText/index.d.ts +0 -15
- package/es/settingText/settingText.d.ts +0 -5
- package/es/settingTitle/index.d.ts +0 -14
- package/es/stores/interface/index.d.ts +0 -18
- package/es/stores/modules/report.d.ts +0 -35
- package/es/stores/modules/report.js +0 -45
- package/es/style/global.css +0 -1
- package/es/table/index.d.ts +0 -15
- package/es/text/Text.d.ts +0 -5
- package/es/text/index.d.ts +0 -15
- package/es/time/index.d.ts +0 -25
- package/es/utils/api.d.ts +0 -12
- package/es/utils/api.js +0 -9
- package/es/utils/chartsOption.d.ts +0 -298
- package/es/utils/chartsOption.js +0 -187
- package/es/utils/data.d.ts +0 -4
- package/es/utils/data.js +0 -101
- package/es/utils/index.d.ts +0 -43
- package/es/utils/index.js +0 -309
- package/es/utils/resolver.d.ts +0 -11
- package/es/utils/resolver.js +0 -36
- package/es/utils/type.d.ts +0 -2
- package/es/utils/type.js +0 -9
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -1
- package/lib/bar/Bar.d.ts +0 -5
- package/lib/bar/Bar.vue.cjs +0 -1
- package/lib/bar/Bar.vue2.cjs +0 -1
- package/lib/bar/index.cjs +0 -1
- package/lib/bar/index.d.ts +0 -15
- package/lib/components.cjs +0 -1
- package/lib/components.d.ts +0 -4
- package/lib/config/Config.css +0 -1
- package/lib/config/Config.vue.cjs +0 -1
- package/lib/config/Config.vue2.cjs +0 -1
- package/lib/config/index.cjs +0 -1
- package/lib/config/index.d.ts +0 -14
- package/lib/index.cjs +0 -1
- package/lib/line/Line.d.ts +0 -5
- package/lib/line/Line.vue.cjs +0 -1
- package/lib/line/Line.vue2.cjs +0 -1
- package/lib/line/index.cjs +0 -1
- package/lib/line/index.d.ts +0 -15
- package/lib/pie/Pie.d.ts +0 -5
- package/lib/pie/index.d.ts +0 -15
- package/lib/report/Report.d.ts +0 -7
- package/lib/select/Select.d.ts +0 -9
- package/lib/select/index.d.ts +0 -25
- package/lib/settingCharts/SettingCharts.d.ts +0 -5
- package/lib/settingCharts/index.d.ts +0 -14
- package/lib/settingFilter/index.d.ts +0 -15
- package/lib/settingFilter/settingFilter.d.ts +0 -5
- package/lib/settingTable/index.d.ts +0 -14
- package/lib/settingText/index.d.ts +0 -15
- package/lib/settingText/settingText.d.ts +0 -5
- package/lib/settingTitle/index.d.ts +0 -14
- package/lib/stores/modules/report.cjs +0 -1
- package/lib/style/global.css +0 -1
- package/lib/table/Table.d.ts +0 -5
- package/lib/table/index.d.ts +0 -15
- package/lib/text/Text.d.ts +0 -5
- package/lib/text/index.d.ts +0 -15
- package/lib/time/Time.d.ts +0 -9
- package/lib/time/index.d.ts +0 -25
- package/lib/utils/api.cjs +0 -1
- package/lib/utils/chartsOption.cjs +0 -1
- package/lib/utils/data.cjs +0 -1
- package/lib/utils/index.cjs +0 -1
- package/lib/utils/resolver.cjs +0 -1
- package/lib/utils/resolver.d.ts +0 -11
- package/lib/utils/type.cjs +0 -1
- package/lib/utils/type.d.ts +0 -2
- /package/{es/config/Config.d.ts → lib/report/components/ChartsUniConfig.vue.d.ts} +0 -0
- /package/{es/settingTable/SettingTable.d.ts → lib/report/components/SettingCharts.vue.d.ts} +0 -0
- /package/lib/{settingTable/SettingTable.d.ts → report/components/SettingDescribe.vue.d.ts} +0 -0
- /package/{es/settingTitle/settingTitle.d.ts → lib/report/components/SettingFilter.vue.d.ts} +0 -0
- /package/lib/{config/Config.d.ts → report/components/SettingText.vue.d.ts} +0 -0
- /package/lib/{settingTitle/settingTitle.d.ts → report/components/SettingTitle.vue.d.ts} +0 -0
package/dist/index.umd.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(u,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("pinia"),require("echarts")):typeof define=="function"&&define.amd?define(["exports","vue","pinia","echarts"],e):(u=typeof globalThis<"u"?globalThis:u||self,e(u.TdsReportUI=u.TdsReportUI||{},u.Vue,u.pinia))})(this,function(u,e,H){"use strict";const W={class:"chart-components"},q=e.defineComponent({name:"TdsReportBar",__name:"Bar",props:{data:{}},setup(o){const n=o,t=e.computed(()=>n.data.options);return(r,a)=>{const s=e.resolveComponent("TdsChart");return e.openBlock(),e.createElementBlock("div",W,[e.createVNode(s,{option:t.value},null,8,["option"])])}}}),k=o=>{const n=o;return n.install=function(t){t.component(n.name,o)},o},R=k(q),M=window.$envURL,j=o=>M.request({url:`${M}/tds/report/demo/get`,method:"get",params:o,isError:!1});function P(o=Date.now(),n="YYYY-MM-DD HH:mm:ss"){try{let t;if(typeof o=="number"||typeof o=="string"){if(t=new Date(o),isNaN(t.getTime()))throw new Error("Invalid date")}else t=o;const r=(s,i=2)=>String(s).padStart(i,"0"),a=s=>{switch(s){case"YYYY":return r(t.getFullYear());case"YY":return r(t.getFullYear()).slice(2,4);case"MM":return r(t.getMonth()+1);case"M":return String(t.getMonth()+1);case"DD":return r(t.getDate());case"D":return String(t.getDate());case"HH":return r(t.getHours());case"H":return String(t.getHours());case"mm":return r(t.getMinutes());case"m":return String(t.getMinutes());case"ss":return r(t.getSeconds());case"s":return String(t.getSeconds());case"SSS":return r(t.getMilliseconds(),3);default:return s}};return n.replace(/(YYYY|YY|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS)/g,a)}catch(t){return console.error("Error formatting date:",t),""}}function G(o,n=2,t=",",r=".",a,s){typeof o!="number"&&typeof o!="string"&&console.warn("Expected value to be of type number or string"),typeof n!="number"&&console.warn("Expected precision to be of type number");const i=Number(o);if(isNaN(i)||!isFinite(i))return"";if(i===0)return i.toFixed(n);let d=i.toFixed(n);if(typeof t=="string"&&t!==""){const[c,l]=d.split(".");d=c.replace(/(\d)(?=(\d{3})+$)/g,"$1"+t)+(l?r+l:"")}return(a||"")+d+(s||"")}function J(o,n=0,t=!1){let r=null;function a(i){if(r||(r=i),i-r>=n){try{o()}catch(c){console.error("Error executing rafTimeout function:",c)}t&&(r=i,s.id=requestAnimationFrame(a))}else s.id=requestAnimationFrame(a)}const s={id:requestAnimationFrame(a)};return s}function Z(o){o&&o.id&&typeof o.id=="number"?cancelAnimationFrame(o.id):console.warn("cancelRaf received an invalid id:",o)}function B(o,n=300){let t=!0;return function(...r){return t&&(o(...r),t=!1,setTimeout(()=>{t=!0},n)),!1}}function D(o,n=300){let t=null;return function(...r){t&&clearTimeout(t),t=setTimeout(()=>{o(...r)},n)}}function K(o,n){if(Number.isNaN(o)||Number.isNaN(n))throw new Error("Both num1 and num2 must be valid numbers.");const t=o%1!==0,r=n%1!==0;if(!t&&!r)return o+n;const a=String(o).split(".")[1]??"",s=String(n).split(".")[1]??"",i=Math.max(a.length,s.length),d=Math.pow(10,i),c=o.toFixed(i),l=n.toFixed(i);return(+c.replace(".","")+ +l.replace(".",""))/d}function Q(o,n){if(!o){console.error("无效的 url");return}const t=n||o.split("?")[0].split("/").pop()||"download";try{fetch(o).then(r=>{r.ok?r.blob().then(a=>{const s=URL.createObjectURL(a),i=document.createElement("a");i.href=s,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(s)}):console.error("请求文件失败,状态码:",r.status)})}catch(r){console.error("文件下载失败:",r)}}function X(){const o=document.documentElement;o.classList.toggle("dark"),o.classList.contains("dark")?o.style.colorScheme="dark":o.style.colorScheme="light"}function ee(){const o=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{o.value=!0},n),o}function U(o){const n=ee();return e.computed(()=>(n.value,!!o()))}function te(o,n,t){e.onMounted(()=>o.addEventListener(n,t)),e.onUnmounted(()=>o.removeEventListener(n,t))}function oe(o,n,t={}){const r=U(()=>window&&"MutationObserver"in window),a=e.ref(!1);let s;const i=e.computed(()=>{const f=e.toValue(o);return f?Array.isArray(f)?f.map(g=>e.toValue(g)).filter(g=>g):[f]:[]}),d=()=>{s&&(s.disconnect(),s=void 0)},c=()=>{r.value&&i.value.length&&!a.value&&(s=new MutationObserver(n),i.value.forEach(f=>s.observe(f,t)))};e.watch(()=>i.value,()=>{d(),c()},{immediate:!0,flush:"post"});const l=()=>{a.value=!0,d()},h=()=>{a.value=!1,c()};return e.onBeforeUnmount(()=>d()),{stop:l,start:h}}function ne(o=window,n=0,t,r){const a=e.ref(0),s=e.ref(0),i=e.ref(0),d=e.ref(0),c=e.ref(!1),l=e.ref(!1),h=e.ref(!1),f=e.ref(!1),g=e.ref(!1),b=e.ref(0),w=e.ref(0);function E(p){c.value=!0;const y=p.target.documentElement??p.target;a.value=y.scrollLeft,i.value=y.scrollTop,l.value=a.value<b.value,h.value=a.value>b.value,f.value=i.value<w.value,g.value=i.value>w.value,b.value=a.value,w.value=i.value,T(p),t&&t(p)}const _=B(E,n);function N(p){c.value&&(c.value=!1,l.value=!1,h.value=!1,f.value=!1,g.value=!1,r&&r(p))}const T=D(N,n+200),m=e.computed(()=>{const p=e.toValue(o);return p||null});e.watch(()=>m.value,(p,y)=>{var L;if(y&&C(y),p){const x=((L=p==null?void 0:p.document)==null?void 0:L.documentElement)||(p==null?void 0:p.documentElement)||p;s.value=x.scrollWidth-x.clientWidth,d.value=x.scrollHeight-x.clientHeight,x.addEventListener("scroll",_),x.addEventListener("scrollend",T)}},{immediate:!0,flush:"post"});function C(p){var L;const y=((L=p==null?void 0:p.document)==null?void 0:L.documentElement)||(p==null?void 0:p.documentElement)||p;y.removeEventListener("scroll",_),y.removeEventListener("scrollend",T)}return e.onBeforeUnmount(()=>C(m.value)),{x:a,xScrollMax:s,y:i,yScrollMax:d,isScrolling:c,left:l,right:h,top:f,bottom:g}}function re(){const o=e.ref(0),n=e.ref(0);let t=performance.now();const r=10,a=s=>{if(n.value++,n.value>=r){const i=s-t;o.value=Math.round(1e3/(i/r)),t=s,n.value=0}requestAnimationFrame(a)};return requestAnimationFrame(a),{fps:o}}function ae(o){if(!o||typeof o!="string"||o.trim()==="")throw new Error("Invalid mediaQuery parameter. It must be a non-empty string.");const n=e.ref(window&&window.matchMedia(o).matches),t=window.matchMedia(o),r=a=>{n.value=a.matches};return e.onMounted(()=>{t.addEventListener("change",r)}),e.onBeforeUnmount(()=>{t.removeEventListener("change",r)}),{match:n}}function le(o,n,t={}){const r=U(()=>window&&"ResizeObserver"in window);let a;const s=e.ref(!1),i=e.computed(()=>{const f=e.toValue(o);return f?Array.isArray(f)?f.map(g=>e.toValue(g)).filter(g=>g):[f]:[]}),d=()=>{a&&(a.disconnect(),a=void 0)},c=()=>{r.value&&i.value.length&&!s.value&&(a=new ResizeObserver(n),i.value.forEach(f=>a.observe(f,t)))};e.watch(()=>i.value,()=>{d(),c()},{immediate:!0,flush:"post"});const l=()=>{s.value=!0,d()},h=()=>{s.value=!1,c()};return e.onBeforeUnmount(()=>d()),{stop:l,start:h}}function se(o="default"){const n=e.useSlots(),t=r=>{var i;const a=(i=n[r])==null?void 0:i.call(n),s=d=>{if(d.type===e.Comment||Array.isArray(d.children)&&!d.children.length)return!1;if(d.type!==e.Text)return!0;if(typeof d.children=="string")return d.children.trim()!==""};return a&&(a!=null&&a.length)?a.some(c=>s(c)):!1};if(Array.isArray(o)){const r=e.reactive({});return o.forEach(a=>{const s=e.computed(()=>t(a));r[a]=s}),r}else return e.computed(()=>t(o))}const V=()=>new Date().getTime().toString(36)+"-"+Math.random().toString(36).substring(2,9),ie=o=>JSON.parse(JSON.stringify(o)),ce="rgba(51, 51, 51, 0.15)",v="rgba(51, 51, 51, 1)",de=12,ue=(o=!1)=>{const n={left:"3%",right:"3%",bottom:"2%",containLabel:!0};return o&&(n.top="5%"),n},S=["46, 145, 255","48, 212, 183","108, 108, 255","109, 237, 124","128, 218, 236","58, 200, 218","146, 218, 89","118, 218, 218","143, 192, 244","192, 192, 145","153, 136, 204","212, 217, 230","124, 186, 255","209, 182, 225","255, 197, 84","249, 140, 106","246, 179, 82","100, 161, 206","246, 175, 159","238, 97, 97"],pe=(o=[{name:"数据1",value:63},{name:"数据2",value:45},{name:"数据3",value:43}],n={name:"name",value:"value"})=>{const t=(a="rgba(46, 145, 255, 0.7)",s="rgba(46, 145, 255, 0.2)")=>({color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:a},{offset:.8,color:s}]}}),r=o.map(a=>a[n.value]);return{tooltip:{trigger:"item"},grid:ue(),title:{show:!0,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},xAxis:[{type:"category",nameGap:8,nameRotate:0,axisLabel:{color:v,rotate:0},axisLine:{show:!0,lineStyle:{color:ce,width:1}},axisTick:{show:!1},splitLine:{show:!1},data:o.map(a=>a[n.name])}],yAxis:[{type:"value",min:0,position:"left",nameTextStyle:{fontSize:de,color:v,fontWeight:"bold"},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:v,formatter:"{value}",inside:!1}}],series:[{type:"bar",barWidth:15,barGap:"0%",itemStyle:t(`rgba(${S[0]}, 0.7)`,`rgba(${S[0]}, 0.2)`),data:r,label:{show:!0,position:"top",color:"inherit",lineHeight:24}},{name:"",type:"pictorialBar",symbolSize:[15,10],symbolOffset:[0,5],itemStyle:t(`rgba(${S[0]}, 0.7)`,`rgba(${S[0]}, 0.2)`),data:r},{name:"",type:"pictorialBar",symbolSize:[15,10],symbolOffset:[0,-5],symbolPosition:"end",itemStyle:t(`rgba(${S[0]}, 0.9)`,`rgba(${S[0]}, 1)`),data:r}]}},A=[{key:"assets",name:"资产名称"},{key:"type",name:"资产类型"},{key:"data",name:"资产数据"}],$=[{assets:"name1",type:"type1",data:"data1"},{assets:"name2",type:"type2",data:"data2"},{assets:"name3",type:"type3",data:"data3"}],me=[{data:[{name:"默认数据",value:180}],label:"name1"},{data:[{name:"默认数据",value:311}],label:"name2"},{data:[{name:"默认数据",value:42}],label:"name3"},{data:[{name:"默认数据",value:32391}],label:"name4"}],fe=[{type:"report-select",label:"资产:",value:"0",data:[{label:"全部",data:"0"},{label:"10.10.2.20_root",data:"743dbb32-8a41-4990-9d76-48925b000a93"},{label:"10.10.4.206_sysdba",data:"23193788-c895-47a8-8123-65799540394c"},{label:"10.10.4.26_root@/root/files/",data:"bb7b07c9-b96b-4caf-ac76-bb45ae849844"}],uri:"/da/report/sens/get_asset_all",id:V()},{type:"range-time",data:[{start_time:"2024-08-20 19:49:34",end_time:"2024-09-12 19:49:34"}],id:V()},{type:"h1",data:"报表名称",options:{size:24,color:"rgba(0,0,0,0.85)",fontWeight:500,letterSpacing:0,textIndent:0,textAlign:"left"},id:V()},{type:"h2",data:"一级标题",name:"一级标题",options:{size:18,color:" rgba(0, 0, 0, 0.85)",fontWeight:500,letterSpacing:0,textIndent:0,textAlign:"left"},id:V()},{type:"report-table",data:$,showColumn:A,name:"表格",options:{showColumn:{assets:!0,type:!0,data:!0},border:!0,showHeader:!0,stripe:!1},rp_item_uuid:"",id:V()}];pe();const ge=H.defineStore("tds-report",{state:()=>({componentList:[],activeComponents:{},notDraggableList:[],titleComponent:{},filterForm:{range_time:1,filter_uuid:""}}),getters:{getActiveComponents:o=>o.activeComponents},actions:{setComponentList(o){this.componentList=o},async getReportDemo(o){let n=[];o?n=(await j({report_uuid:o})).data:n={content:ie(fe),range_time:1};const t=[];n.content.forEach(r=>{(r.type==="report-select"||r.type==="range-time")&&t.push(r),r.type==="h1"&&(this.titleComponent=r),r.id=V()}),this.notDraggableList=t,this.filterForm.range_time=n.range_time,this.filterForm.filter_uuid=n.filter_uuid,n.content.splice(0,3),this.componentList=n.content},setActiveComponents(o){this.activeComponents=o},clearComponents(){this.activeComponents={},this.componentList=[],this.notDraggableList=[],this.titleComponent={},this.filterForm={range_time:1,filter_uuid:""}}}}),be={key:0},he={class:"sub-title"},F=k(((o,n)=>{const t=o.__vccOpts||o;for(const[r,a]of n)t[r]=a;return t})(e.defineComponent({name:"TdsReportConfig",__name:"Config",setup(o){const n=ge(),t=e.computed(()=>n.activeComponents);function r(c){c?(t.value.options.series[0].radius=["10%","65%"],t.value.options.graphic[0].invisible=!0,t.value.options.graphic[1].invisible=!0):(t.value.options.series[0].radius=["45%","70%"],t.value.options.graphic[0].invisible=!1,t.value.options.graphic[1].invisible=!1)}const a=e.ref("rgb(46, 145, 255)"),s=(c="rgba(46, 145, 255, 0.7)",l="rgba(46, 145, 255, 0.2)")=>({color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c},{offset:.8,color:l}]}});function i(c){c&&(n.activeComponents.options.series[0].itemStyle=s(d(c,.7),d(c,.2)),n.activeComponents.options.series[1].itemStyle=s(d(c,.7),d(c,.2)),n.activeComponents.options.series[2].itemStyle=s(d(c,.9),d(c,1)))}function d(c,l=1){c=c.replace(/^#/,"");const h=parseInt(c.substring(0,2),16),f=parseInt(c.substring(2,4),16),g=parseInt(c.substring(4,6),16);return`rgba(${h}, ${f}, ${g}, ${l})`}return(c,l)=>{const h=e.resolveComponent("el-input"),f=e.resolveComponent("el-form-item"),g=e.resolveComponent("el-switch"),b=e.resolveComponent("el-col"),w=e.resolveComponent("el-color-picker"),E=e.resolveComponent("el-input-number"),_=e.resolveComponent("el-row"),N=e.resolveComponent("el-collapse-item"),T=e.resolveComponent("el-collapse");return t.value.options.title?(e.openBlock(),e.createElementBlock("div",be,[e.createVNode(f,{label:"标题"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:t.value.options.title.text,"onUpdate:modelValue":l[0]||(l[0]=m=>t.value.options.title.text=m)},null,8,["modelValue"])]),_:1}),e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(N,{title:"标题配置",name:"1"},{default:e.withCtx(()=>[e.createVNode(_,{class:"w-100%"},{default:e.withCtx(()=>[e.createVNode(b,{span:24},{default:e.withCtx(()=>[l[9]||(l[9]=e.createElementVNode("span",{class:"switch-label"},"显示标题",-1)),e.createVNode(g,{modelValue:t.value.options.title.show,"onUpdate:modelValue":l[1]||(l[1]=m=>t.value.options.title.show=m)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{span:12},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:t.value.options.title.textStyle.color,"onUpdate:modelValue":l[2]||(l[2]=m=>t.value.options.title.textStyle.color=m),"show-alpha":""},null,8,["modelValue"]),l[10]||(l[10]=e.createElementVNode("p",{class:"sub-title"},"颜色",-1))]),_:1}),e.createVNode(b,{span:12},{default:e.withCtx(()=>[e.createVNode(E,{modelValue:t.value.options.title.textStyle.fontSize,"onUpdate:modelValue":l[3]||(l[3]=m=>t.value.options.title.textStyle.fontSize=m),"controls-position":"right"},null,8,["modelValue"]),l[11]||(l[11]=e.createElementVNode("p",{class:"sub-title"},"字体大小",-1))]),_:1}),e.createVNode(b,{span:12},{default:e.withCtx(()=>[e.createVNode(E,{modelValue:t.value.options.title.x,"onUpdate:modelValue":l[4]||(l[4]=m=>t.value.options.title.x=m),"controls-position":"right"},null,8,["modelValue"]),l[12]||(l[12]=e.createElementVNode("p",{class:"sub-title"},"横向",-1))]),_:1}),e.createVNode(b,{span:12},{default:e.withCtx(()=>[e.createVNode(E,{modelValue:t.value.options.title.y,"onUpdate:modelValue":l[5]||(l[5]=m=>t.value.options.title.y=m),"controls-position":"right"},null,8,["modelValue"]),l[13]||(l[13]=e.createElementVNode("p",{class:"sub-title"},"纵向",-1))]),_:1})]),_:1})]),_:1}),e.createVNode(N,{title:"图形配置",name:"2"},{default:e.withCtx(()=>[t.value.options.color&&t.value.options.color.length&&t.value.type==="pie"?(e.openBlock(),e.createBlock(_,{key:0},{default:e.withCtx(()=>[e.createVNode(b,{span:24},{default:e.withCtx(()=>[l[14]||(l[14]=e.createElementVNode("span",{class:"switch-label"},"玫瑰图",-1)),e.createVNode(g,{onChange:r,modelValue:t.value.options.series[0].roseType,"onUpdate:modelValue":l[6]||(l[6]=m=>t.value.options.series[0].roseType=m)},null,8,["modelValue"])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.data,(m,C)=>(e.openBlock(),e.createBlock(b,{span:12,class:"mb-10px",key:C},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:t.value.options.color[C],"onUpdate:modelValue":p=>t.value.options.color[C]=p,"show-alpha":""},null,8,["modelValue","onUpdate:modelValue"]),e.createElementVNode("p",he,e.toDisplayString(m.label),1)]),_:2},1024))),128))]),_:1})):e.createCommentVNode("",!0),t.value.type==="bar"?(e.openBlock(),e.createBlock(_,{key:1},{default:e.withCtx(()=>[e.createVNode(b,{span:12},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:a.value,"onUpdate:modelValue":l[7]||(l[7]=m=>a.value=m),onChange:i},null,8,["modelValue"]),l[15]||(l[15]=e.createElementVNode("p",{class:"sub-title"},"柱颜色",-1))]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(N,{title:"图例配置",name:"3"},{default:e.withCtx(()=>[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(b,{span:24},{default:e.withCtx(()=>[l[16]||(l[16]=e.createElementVNode("span",{class:"switch-label"},"显示图例",-1)),t.value.options.legend?(e.openBlock(),e.createBlock(g,{key:0,modelValue:t.value.options.legend.show,"onUpdate:modelValue":l[8]||(l[8]=m=>t.value.options.legend.show=m)},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-9d35239c"]])),ye={class:"chart-components"},O=k(e.defineComponent({name:"TdsReportLine",__name:"Line",props:{data:{}},setup(o){const n=o,t=e.computed(()=>n.data.options);return(r,a)=>{const s=e.resolveComponent("TdsChart");return e.openBlock(),e.createElementBlock("div",ye,[e.createVNode(s,{option:t.value},null,8,["option"])])}}})),we=Object.freeze(Object.defineProperty({__proto__:null,TdsReportBar:R,TdsReportConfig:F,TdsReportLine:O},Symbol.toStringTag,{value:"Module"})),I={TdsReportBar:"TdsReportBar"},z={BackTop:["Tooltip"]};function _e(o,n){if(["NumberAnimation","Watermark"].includes(o))return[];const t=[o];o in z&&t.push(...z[o]);const r=n!=null&&n.cjs?"lib":"es",a=[`@topdatasec/report/${r}/style/global.css`];return t.forEach(s=>{a.push(`@topdatasec/report/${r}/${I[s]}/${s}.css`)}),a}function Ve(o){return{type:"component",resolve:n=>{if(n in I)return{name:n,from:"@topdatasec/report",sideEffects:_e(n,o)}}}}const Y=function(o){return Object.values(we).forEach(n=>{n&&n.install&&o.use(n)}),o},Se={install:Y};u.TdsReportBar=R,u.TdsReportConfig=F,u.TdsReportLine=O,u.VueAmazingUIResolver=Ve,u.add=K,u.cancelRaf=Z,u.dateFormat=P,u.debounce=D,u.default=Se,u.downloadFile=Q,u.formatNumber=G,u.install=Y,u.rafTimeout=J,u.throttle=B,u.toggleDark=X,u.useEventListener=te,u.useFps=re,u.useMediaQuery=ae,u.useMutationObserver=oe,u.useResizeObserver=le,u.useScroll=ne,u.useSlotsExist=se,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,*:before,*:after{box-sizing:border-box;margin:0;padding:0;caret-color:transparent}:root{--primary-color: #1677ff;--primary-color-hover: #4096ff}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}input,textarea{caret-color:auto}a{color:var(--primary-color);text-decoration:none;background-color:transparent;-webkit-tap-highlight-color:transparent;outline:none;cursor:pointer;transition:color .3s ease}a:hover{color:var(--primary-color-hover)}[data-v-9d35239c] .el-color-picker{width:95%}[data-v-9d35239c] .el-color-picker .el-color-picker__trigger{width:100%;top:1px}[data-v-9d35239c] .el-input-number{width:95%}.sub-title[data-v-9d35239c]{color:#555;font-size:12px;padding-left:5px;height:20px;line-height:20px;margin-bottom:10px}.switch-label[data-v-9d35239c]{color:#555;font-size:14px;margin-right:10px;margin-bottom:10px}[data-v-9d35239c] .el-collapse-item__header{background-color:#fafafa;padding-left:15px;height:42px;border-bottom:1px solid #ebeef5}[data-v-9d35239c] .el-collapse-item__content{padding-top:10px;padding-bottom:10px;padding-left:10px}[data-v-9d35239c] .el-collapse-item__content .el-descriptions__cell{padding:1px 0 0 15px}.el-collapse[data-v-9d35239c]{border-right:1px solid var(--el-border-color-lighter);border-left:1px solid var(--el-border-color-lighter)}
|
package/es/bar/Bar.vue.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, computed as a, resolveComponent as c, createElementBlock as p, openBlock as r, createVNode as d } from "vue";
|
|
2
|
-
const m = { class: "chart-components" }, u = /* @__PURE__ */ s({
|
|
3
|
-
name: "TdsReportBar",
|
|
4
|
-
__name: "Bar",
|
|
5
|
-
props: {
|
|
6
|
-
data: {}
|
|
7
|
-
},
|
|
8
|
-
setup(o) {
|
|
9
|
-
const t = o, e = a(() => t.data.options);
|
|
10
|
-
return (_, i) => {
|
|
11
|
-
const n = c("TdsChart");
|
|
12
|
-
return r(), p("div", m, [
|
|
13
|
-
d(n, { option: e.value }, null, 8, ["option"])
|
|
14
|
-
]);
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
export {
|
|
19
|
-
u as default
|
|
20
|
-
};
|
package/es/bar/Bar.vue2.js
DELETED
package/es/bar/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Bar';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Bar').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import('./Bar').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Bar').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|
package/es/bar/index.js
DELETED
package/es/components.d.ts
DELETED
package/es/components.js
DELETED
package/es/config/Config.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[data-v-9d35239c] .el-color-picker{width:95%}[data-v-9d35239c] .el-color-picker .el-color-picker__trigger{width:100%;top:1px}[data-v-9d35239c] .el-input-number{width:95%}.sub-title[data-v-9d35239c]{color:#555;font-size:12px;padding-left:5px;height:20px;line-height:20px;margin-bottom:10px}.switch-label[data-v-9d35239c]{color:#555;font-size:14px;margin-right:10px;margin-bottom:10px}[data-v-9d35239c] .el-collapse-item__header{background-color:#fafafa;padding-left:15px;height:42px;border-bottom:1px solid #ebeef5}[data-v-9d35239c] .el-collapse-item__content{padding-top:10px;padding-bottom:10px;padding-left:10px}[data-v-9d35239c] .el-collapse-item__content .el-descriptions__cell{padding:1px 0 0 15px}.el-collapse[data-v-9d35239c]{border-right:1px solid var(--el-border-color-lighter);border-left:1px solid var(--el-border-color-lighter)}
|
package/es/config/Config.vue.js
DELETED
package/es/config/Config.vue2.js
DELETED
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { defineComponent as R, computed as $, ref as I, resolveComponent as i, createElementBlock as U, createCommentVNode as v, openBlock as r, createVNode as o, withCtx as s, createElementVNode as u, createBlock as V, Fragment as N, renderList as z, toDisplayString as E } from "vue";
|
|
2
|
-
import { useReportStore as D } from "../stores/modules/report.js";
|
|
3
|
-
const F = { key: 0 }, L = { class: "sub-title" }, G = /* @__PURE__ */ R({
|
|
4
|
-
name: "TdsReportConfig",
|
|
5
|
-
__name: "Config",
|
|
6
|
-
setup(j) {
|
|
7
|
-
const d = D(), l = $(() => d.activeComponents);
|
|
8
|
-
function k(n) {
|
|
9
|
-
n ? (l.value.options.series[0].radius = ["10%", "65%"], l.value.options.graphic[0].invisible = !0, l.value.options.graphic[1].invisible = !0) : (l.value.options.series[0].radius = ["45%", "70%"], l.value.options.graphic[0].invisible = !1, l.value.options.graphic[1].invisible = !1);
|
|
10
|
-
}
|
|
11
|
-
const S = I("rgb(46, 145, 255)"), b = (n = "rgba(46, 145, 255, 0.7)", e = "rgba(46, 145, 255, 0.2)") => ({
|
|
12
|
-
color: {
|
|
13
|
-
type: "linear",
|
|
14
|
-
x: 0,
|
|
15
|
-
y: 0,
|
|
16
|
-
x2: 0,
|
|
17
|
-
y2: 1,
|
|
18
|
-
colorStops: [
|
|
19
|
-
{
|
|
20
|
-
offset: 0,
|
|
21
|
-
color: n
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
offset: 0.8,
|
|
25
|
-
color: e
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
function x(n) {
|
|
31
|
-
n && (d.activeComponents.options.series[0].itemStyle = b(p(n, 0.7), p(n, 0.2)), d.activeComponents.options.series[1].itemStyle = b(p(n, 0.7), p(n, 0.2)), d.activeComponents.options.series[2].itemStyle = b(p(n, 0.9), p(n, 1)));
|
|
32
|
-
}
|
|
33
|
-
function p(n, e = 1) {
|
|
34
|
-
n = n.replace(/^#/, "");
|
|
35
|
-
const g = parseInt(n.substring(0, 2), 16), _ = parseInt(n.substring(2, 4), 16), m = parseInt(n.substring(4, 6), 16);
|
|
36
|
-
return `rgba(${g}, ${_}, ${m}, ${e})`;
|
|
37
|
-
}
|
|
38
|
-
return (n, e) => {
|
|
39
|
-
const g = i("el-input"), _ = i("el-form-item"), m = i("el-switch"), a = i("el-col"), c = i("el-color-picker"), y = i("el-input-number"), f = i("el-row"), w = i("el-collapse-item"), T = i("el-collapse");
|
|
40
|
-
return l.value.options.title ? (r(), U("div", F, [
|
|
41
|
-
o(_, { label: "标题" }, {
|
|
42
|
-
default: s(() => [
|
|
43
|
-
o(g, {
|
|
44
|
-
modelValue: l.value.options.title.text,
|
|
45
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.options.title.text = t)
|
|
46
|
-
}, null, 8, ["modelValue"])
|
|
47
|
-
]),
|
|
48
|
-
_: 1
|
|
49
|
-
}),
|
|
50
|
-
o(T, null, {
|
|
51
|
-
default: s(() => [
|
|
52
|
-
o(w, {
|
|
53
|
-
title: "标题配置",
|
|
54
|
-
name: "1"
|
|
55
|
-
}, {
|
|
56
|
-
default: s(() => [
|
|
57
|
-
o(f, { class: "w-100%" }, {
|
|
58
|
-
default: s(() => [
|
|
59
|
-
o(a, { span: 24 }, {
|
|
60
|
-
default: s(() => [
|
|
61
|
-
e[9] || (e[9] = u("span", { class: "switch-label" }, "显示标题", -1)),
|
|
62
|
-
o(m, {
|
|
63
|
-
modelValue: l.value.options.title.show,
|
|
64
|
-
"onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.options.title.show = t)
|
|
65
|
-
}, null, 8, ["modelValue"])
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
}),
|
|
69
|
-
o(a, { span: 12 }, {
|
|
70
|
-
default: s(() => [
|
|
71
|
-
o(c, {
|
|
72
|
-
modelValue: l.value.options.title.textStyle.color,
|
|
73
|
-
"onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.options.title.textStyle.color = t),
|
|
74
|
-
"show-alpha": ""
|
|
75
|
-
}, null, 8, ["modelValue"]),
|
|
76
|
-
e[10] || (e[10] = u("p", { class: "sub-title" }, "颜色", -1))
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
}),
|
|
80
|
-
o(a, { span: 12 }, {
|
|
81
|
-
default: s(() => [
|
|
82
|
-
o(y, {
|
|
83
|
-
modelValue: l.value.options.title.textStyle.fontSize,
|
|
84
|
-
"onUpdate:modelValue": e[3] || (e[3] = (t) => l.value.options.title.textStyle.fontSize = t),
|
|
85
|
-
"controls-position": "right"
|
|
86
|
-
}, null, 8, ["modelValue"]),
|
|
87
|
-
e[11] || (e[11] = u("p", { class: "sub-title" }, "字体大小", -1))
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}),
|
|
91
|
-
o(a, { span: 12 }, {
|
|
92
|
-
default: s(() => [
|
|
93
|
-
o(y, {
|
|
94
|
-
modelValue: l.value.options.title.x,
|
|
95
|
-
"onUpdate:modelValue": e[4] || (e[4] = (t) => l.value.options.title.x = t),
|
|
96
|
-
"controls-position": "right"
|
|
97
|
-
}, null, 8, ["modelValue"]),
|
|
98
|
-
e[12] || (e[12] = u("p", { class: "sub-title" }, "横向", -1))
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}),
|
|
102
|
-
o(a, { span: 12 }, {
|
|
103
|
-
default: s(() => [
|
|
104
|
-
o(y, {
|
|
105
|
-
modelValue: l.value.options.title.y,
|
|
106
|
-
"onUpdate:modelValue": e[5] || (e[5] = (t) => l.value.options.title.y = t),
|
|
107
|
-
"controls-position": "right"
|
|
108
|
-
}, null, 8, ["modelValue"]),
|
|
109
|
-
e[13] || (e[13] = u("p", { class: "sub-title" }, "纵向", -1))
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
})
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
})
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
}),
|
|
119
|
-
o(w, {
|
|
120
|
-
title: "图形配置",
|
|
121
|
-
name: "2"
|
|
122
|
-
}, {
|
|
123
|
-
default: s(() => [
|
|
124
|
-
l.value.options.color && l.value.options.color.length && l.value.type === "pie" ? (r(), V(f, { key: 0 }, {
|
|
125
|
-
default: s(() => [
|
|
126
|
-
o(a, { span: 24 }, {
|
|
127
|
-
default: s(() => [
|
|
128
|
-
e[14] || (e[14] = u("span", { class: "switch-label" }, "玫瑰图", -1)),
|
|
129
|
-
o(m, {
|
|
130
|
-
onChange: k,
|
|
131
|
-
modelValue: l.value.options.series[0].roseType,
|
|
132
|
-
"onUpdate:modelValue": e[6] || (e[6] = (t) => l.value.options.series[0].roseType = t)
|
|
133
|
-
}, null, 8, ["modelValue"])
|
|
134
|
-
]),
|
|
135
|
-
_: 1
|
|
136
|
-
}),
|
|
137
|
-
(r(!0), U(N, null, z(l.value.data, (t, C) => (r(), V(a, {
|
|
138
|
-
span: 12,
|
|
139
|
-
class: "mb-10px",
|
|
140
|
-
key: C
|
|
141
|
-
}, {
|
|
142
|
-
default: s(() => [
|
|
143
|
-
o(c, {
|
|
144
|
-
modelValue: l.value.options.color[C],
|
|
145
|
-
"onUpdate:modelValue": (B) => l.value.options.color[C] = B,
|
|
146
|
-
"show-alpha": ""
|
|
147
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
148
|
-
u("p", L, E(t.label), 1)
|
|
149
|
-
]),
|
|
150
|
-
_: 2
|
|
151
|
-
}, 1024))), 128))
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
})) : v("", !0),
|
|
155
|
-
l.value.type === "bar" ? (r(), V(f, { key: 1 }, {
|
|
156
|
-
default: s(() => [
|
|
157
|
-
o(a, { span: 12 }, {
|
|
158
|
-
default: s(() => [
|
|
159
|
-
o(c, {
|
|
160
|
-
modelValue: S.value,
|
|
161
|
-
"onUpdate:modelValue": e[7] || (e[7] = (t) => S.value = t),
|
|
162
|
-
onChange: x
|
|
163
|
-
}, null, 8, ["modelValue"]),
|
|
164
|
-
e[15] || (e[15] = u("p", { class: "sub-title" }, "柱颜色", -1))
|
|
165
|
-
]),
|
|
166
|
-
_: 1
|
|
167
|
-
})
|
|
168
|
-
]),
|
|
169
|
-
_: 1
|
|
170
|
-
})) : v("", !0)
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
}),
|
|
174
|
-
o(w, {
|
|
175
|
-
title: "图例配置",
|
|
176
|
-
name: "3"
|
|
177
|
-
}, {
|
|
178
|
-
default: s(() => [
|
|
179
|
-
o(f, null, {
|
|
180
|
-
default: s(() => [
|
|
181
|
-
o(a, { span: 24 }, {
|
|
182
|
-
default: s(() => [
|
|
183
|
-
e[16] || (e[16] = u("span", { class: "switch-label" }, "显示图例", -1)),
|
|
184
|
-
l.value.options.legend ? (r(), V(m, {
|
|
185
|
-
key: 0,
|
|
186
|
-
modelValue: l.value.options.legend.show,
|
|
187
|
-
"onUpdate:modelValue": e[8] || (e[8] = (t) => l.value.options.legend.show = t)
|
|
188
|
-
}, null, 8, ["modelValue"])) : v("", !0)
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
})
|
|
192
|
-
]),
|
|
193
|
-
_: 1
|
|
194
|
-
})
|
|
195
|
-
]),
|
|
196
|
-
_: 1
|
|
197
|
-
})
|
|
198
|
-
]),
|
|
199
|
-
_: 1
|
|
200
|
-
})
|
|
201
|
-
])) : v("", !0);
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
export {
|
|
206
|
-
G as default
|
|
207
|
-
};
|
package/es/config/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
3
|
-
P: {};
|
|
4
|
-
B: {};
|
|
5
|
-
D: {};
|
|
6
|
-
C: {};
|
|
7
|
-
M: {};
|
|
8
|
-
Defaults: {};
|
|
9
|
-
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
-
__isFragment?: never;
|
|
11
|
-
__isTeleport?: never;
|
|
12
|
-
__isSuspense?: never;
|
|
13
|
-
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
14
|
-
export default _default;
|
package/es/config/index.js
DELETED
package/es/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
export * from './components';
|
|
3
|
-
export { dateFormat, formatNumber, rafTimeout, cancelRaf, throttle, debounce, add, downloadFile, toggleDark, useEventListener, useMutationObserver, useScroll, useFps, useMediaQuery, useResizeObserver, useSlotsExist } from './utils';
|
|
4
|
-
export { VueAmazingUIResolver } from './utils/resolver';
|
|
5
|
-
export type { VueAmazingUIResolverOptions } from './utils/resolver';
|
|
6
|
-
export declare const install: (app: App) => App<any>;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
install: (app: App) => App<any>;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
package/es/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import * as t from "./components.js";
|
|
3
|
-
import { add as f, cancelRaf as i, dateFormat as d, debounce as n, downloadFile as m, formatNumber as p, rafTimeout as c, throttle as x, toggleDark as R, useEventListener as b, useFps as v, useMediaQuery as g, useMutationObserver as T, useResizeObserver as E, useScroll as F, useSlotsExist as O } from "./utils/index.js";
|
|
4
|
-
import { VueAmazingUIResolver as z } from "./utils/resolver.js";
|
|
5
|
-
import { default as M } from "./bar/index.js";
|
|
6
|
-
import { default as j } from "./config/index.js";
|
|
7
|
-
import { default as w } from "./line/index.js";
|
|
8
|
-
const o = function(r) {
|
|
9
|
-
return Object.values(t).forEach((e) => {
|
|
10
|
-
e && e.install && r.use(e);
|
|
11
|
-
}), r;
|
|
12
|
-
}, a = {
|
|
13
|
-
install: o
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
M as TdsReportBar,
|
|
17
|
-
j as TdsReportConfig,
|
|
18
|
-
w as TdsReportLine,
|
|
19
|
-
z as VueAmazingUIResolver,
|
|
20
|
-
f as add,
|
|
21
|
-
i as cancelRaf,
|
|
22
|
-
d as dateFormat,
|
|
23
|
-
n as debounce,
|
|
24
|
-
a as default,
|
|
25
|
-
m as downloadFile,
|
|
26
|
-
p as formatNumber,
|
|
27
|
-
o as install,
|
|
28
|
-
c as rafTimeout,
|
|
29
|
-
x as throttle,
|
|
30
|
-
R as toggleDark,
|
|
31
|
-
b as useEventListener,
|
|
32
|
-
v as useFps,
|
|
33
|
-
g as useMediaQuery,
|
|
34
|
-
T as useMutationObserver,
|
|
35
|
-
E as useResizeObserver,
|
|
36
|
-
F as useScroll,
|
|
37
|
-
O as useSlotsExist
|
|
38
|
-
};
|
package/es/line/Line.vue.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, computed as c, resolveComponent as p, createElementBlock as a, openBlock as r, createVNode as d } from "vue";
|
|
2
|
-
const i = { class: "chart-components" }, u = /* @__PURE__ */ s({
|
|
3
|
-
name: "TdsReportLine",
|
|
4
|
-
__name: "Line",
|
|
5
|
-
props: {
|
|
6
|
-
data: {}
|
|
7
|
-
},
|
|
8
|
-
setup(o) {
|
|
9
|
-
const t = o, e = c(() => t.data.options);
|
|
10
|
-
return (m, _) => {
|
|
11
|
-
const n = p("TdsChart");
|
|
12
|
-
return r(), a("div", i, [
|
|
13
|
-
d(n, { option: e.value }, null, 8, ["option"])
|
|
14
|
-
]);
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
export {
|
|
19
|
-
u as default
|
|
20
|
-
};
|
package/es/line/Line.vue2.js
DELETED
package/es/line/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Line';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Line').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import('./Line').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Line').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|
package/es/line/index.js
DELETED
package/es/pie/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Pie';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Pie').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import('./Pie').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Pie').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|
package/es/report/Report.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
prodType: number | string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
5
|
-
proTable: unknown;
|
|
6
|
-
}, HTMLDivElement>;
|
|
7
|
-
export default _default;
|
package/es/report/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Report';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Report').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
4
|
-
proTable: unknown;
|
|
5
|
-
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
6
|
-
P: {};
|
|
7
|
-
B: {};
|
|
8
|
-
D: {};
|
|
9
|
-
C: {};
|
|
10
|
-
M: {};
|
|
11
|
-
Defaults: {};
|
|
12
|
-
}, Readonly<import('./Report').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
13
|
-
__isFragment?: never;
|
|
14
|
-
__isTeleport?: never;
|
|
15
|
-
__isSuspense?: never;
|
|
16
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Report').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
17
|
-
export default _default;
|
package/es/select/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Select';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Select').Props> & Readonly<{
|
|
4
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
change: (...args: any[]) => void;
|
|
7
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
8
|
-
P: {};
|
|
9
|
-
B: {};
|
|
10
|
-
D: {};
|
|
11
|
-
C: {};
|
|
12
|
-
M: {};
|
|
13
|
-
Defaults: {};
|
|
14
|
-
}, Readonly<import('./Select').Props> & Readonly<{
|
|
15
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, {}>;
|
|
17
|
-
__isFragment?: never;
|
|
18
|
-
__isTeleport?: never;
|
|
19
|
-
__isSuspense?: never;
|
|
20
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Select').Props> & Readonly<{
|
|
21
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
-
change: (...args: any[]) => void;
|
|
24
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
25
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
prodType: number | string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./SettingCharts').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
3
|
-
P: {};
|
|
4
|
-
B: {};
|
|
5
|
-
D: {};
|
|
6
|
-
C: {};
|
|
7
|
-
M: {};
|
|
8
|
-
Defaults: {};
|
|
9
|
-
}, Readonly<import('./SettingCharts').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
-
__isFragment?: never;
|
|
11
|
-
__isTeleport?: never;
|
|
12
|
-
__isSuspense?: never;
|
|
13
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./SettingCharts').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
14
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './settingFilter';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./settingFilter').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import('./settingFilter').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./settingFilter').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
3
|
-
P: {};
|
|
4
|
-
B: {};
|
|
5
|
-
D: {};
|
|
6
|
-
C: {};
|
|
7
|
-
M: {};
|
|
8
|
-
Defaults: {};
|
|
9
|
-
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
-
__isFragment?: never;
|
|
11
|
-
__isTeleport?: never;
|
|
12
|
-
__isSuspense?: never;
|
|
13
|
-
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
14
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './settingText';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./settingText').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import('./settingText').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./settingText').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|