@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=(e,o)=>{const t=e.__vccOpts||e;for(const[r,s]of o)t[r]=s;return t};exports.default=u;
|
package/lib/bar/Bar.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
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;
|
package/lib/bar/Bar.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r={class:"chart-components"},a=e.defineComponent({name:"TdsReportBar",__name:"Bar",props:{data:{}},setup(o){const t=o,n=e.computed(()=>t.data.options);return(c,p)=>{const s=e.resolveComponent("TdsChart");return e.openBlock(),e.createElementBlock("div",r,[e.createVNode(s,{option:n.value},null,8,["option"])])}}});exports.default=a;
|
package/lib/bar/Bar.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Bar.vue.cjs");exports.default=e.default;
|
package/lib/bar/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Bar.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/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/lib/components.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bar/index.cjs"),t=require("./config/index.cjs"),r=require("./line/index.cjs");exports.TdsReportBar=e.default;exports.TdsReportConfig=t.default;exports.TdsReportLine=r.default;
|
package/lib/components.d.ts
DELETED
package/lib/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)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Config.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-9d35239c"]]);exports.default=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../stores/modules/report.cjs"),x={key:0},y={class:"sub-title"},k=e.defineComponent({name:"TdsReportConfig",__name:"Config",setup(S){const r=_.useReportStore(),o=e.computed(()=>r.activeComponents);function N(n){n?(o.value.options.series[0].radius=["10%","65%"],o.value.options.graphic[0].invisible=!0,o.value.options.graphic[1].invisible=!0):(o.value.options.series[0].radius=["45%","70%"],o.value.options.graphic[0].invisible=!1,o.value.options.graphic[1].invisible=!1)}const f=e.ref("rgb(46, 145, 255)"),p=(n="rgba(46, 145, 255, 0.7)",t="rgba(46, 145, 255, 0.2)")=>({color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:n},{offset:.8,color:t}]}});function w(n){n&&(r.activeComponents.options.series[0].itemStyle=p(a(n,.7),a(n,.2)),r.activeComponents.options.series[1].itemStyle=p(a(n,.7),a(n,.2)),r.activeComponents.options.series[2].itemStyle=p(a(n,.9),a(n,1)))}function a(n,t=1){n=n.replace(/^#/,"");const d=parseInt(n.substring(0,2),16),m=parseInt(n.substring(2,4),16),i=parseInt(n.substring(4,6),16);return`rgba(${d}, ${m}, ${i}, ${t})`}return(n,t)=>{const d=e.resolveComponent("el-input"),m=e.resolveComponent("el-form-item"),i=e.resolveComponent("el-switch"),s=e.resolveComponent("el-col"),c=e.resolveComponent("el-color-picker"),V=e.resolveComponent("el-input-number"),u=e.resolveComponent("el-row"),v=e.resolveComponent("el-collapse-item"),b=e.resolveComponent("el-collapse");return o.value.options.title?(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(m,{label:"标题"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:o.value.options.title.text,"onUpdate:modelValue":t[0]||(t[0]=l=>o.value.options.title.text=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,null,{default:e.withCtx(()=>[e.createVNode(v,{title:"标题配置",name:"1"},{default:e.withCtx(()=>[e.createVNode(u,{class:"w-100%"},{default:e.withCtx(()=>[e.createVNode(s,{span:24},{default:e.withCtx(()=>[t[9]||(t[9]=e.createElementVNode("span",{class:"switch-label"},"显示标题",-1)),e.createVNode(i,{modelValue:o.value.options.title.show,"onUpdate:modelValue":t[1]||(t[1]=l=>o.value.options.title.show=l)},null,8,["modelValue"])]),_:1}),e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:o.value.options.title.textStyle.color,"onUpdate:modelValue":t[2]||(t[2]=l=>o.value.options.title.textStyle.color=l),"show-alpha":""},null,8,["modelValue"]),t[10]||(t[10]=e.createElementVNode("p",{class:"sub-title"},"颜色",-1))]),_:1}),e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:o.value.options.title.textStyle.fontSize,"onUpdate:modelValue":t[3]||(t[3]=l=>o.value.options.title.textStyle.fontSize=l),"controls-position":"right"},null,8,["modelValue"]),t[11]||(t[11]=e.createElementVNode("p",{class:"sub-title"},"字体大小",-1))]),_:1}),e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:o.value.options.title.x,"onUpdate:modelValue":t[4]||(t[4]=l=>o.value.options.title.x=l),"controls-position":"right"},null,8,["modelValue"]),t[12]||(t[12]=e.createElementVNode("p",{class:"sub-title"},"横向",-1))]),_:1}),e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:o.value.options.title.y,"onUpdate:modelValue":t[5]||(t[5]=l=>o.value.options.title.y=l),"controls-position":"right"},null,8,["modelValue"]),t[13]||(t[13]=e.createElementVNode("p",{class:"sub-title"},"纵向",-1))]),_:1})]),_:1})]),_:1}),e.createVNode(v,{title:"图形配置",name:"2"},{default:e.withCtx(()=>[o.value.options.color&&o.value.options.color.length&&o.value.type==="pie"?(e.openBlock(),e.createBlock(u,{key:0},{default:e.withCtx(()=>[e.createVNode(s,{span:24},{default:e.withCtx(()=>[t[14]||(t[14]=e.createElementVNode("span",{class:"switch-label"},"玫瑰图",-1)),e.createVNode(i,{onChange:N,modelValue:o.value.options.series[0].roseType,"onUpdate:modelValue":t[6]||(t[6]=l=>o.value.options.series[0].roseType=l)},null,8,["modelValue"])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.data,(l,C)=>(e.openBlock(),e.createBlock(s,{span:12,class:"mb-10px",key:C},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:o.value.options.color[C],"onUpdate:modelValue":g=>o.value.options.color[C]=g,"show-alpha":""},null,8,["modelValue","onUpdate:modelValue"]),e.createElementVNode("p",y,e.toDisplayString(l.label),1)]),_:2},1024))),128))]),_:1})):e.createCommentVNode("",!0),o.value.type==="bar"?(e.openBlock(),e.createBlock(u,{key:1},{default:e.withCtx(()=>[e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:f.value,"onUpdate:modelValue":t[7]||(t[7]=l=>f.value=l),onChange:w},null,8,["modelValue"]),t[15]||(t[15]=e.createElementVNode("p",{class:"sub-title"},"柱颜色",-1))]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(v,{title:"图例配置",name:"3"},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{span:24},{default:e.withCtx(()=>[t[16]||(t[16]=e.createElementVNode("span",{class:"switch-label"},"显示图例",-1)),o.value.options.legend?(e.openBlock(),e.createBlock(i,{key:0,modelValue:o.value.options.legend.show,"onUpdate:modelValue":t[8]||(t[8]=l=>o.value.options.legend.show=l)},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}});exports.default=k;
|
package/lib/config/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Config.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/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/lib/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const u=require("./components.cjs"),e=require("./utils/index.cjs"),o=require("./utils/resolver.cjs"),i=require("./bar/index.cjs"),a=require("./config/index.cjs"),l=require("./line/index.cjs"),s=function(t){return Object.values(u).forEach(r=>{r&&r.install&&t.use(r)}),t},n={install:s};exports.add=e.add;exports.cancelRaf=e.cancelRaf;exports.dateFormat=e.dateFormat;exports.debounce=e.debounce;exports.downloadFile=e.downloadFile;exports.formatNumber=e.formatNumber;exports.rafTimeout=e.rafTimeout;exports.throttle=e.throttle;exports.toggleDark=e.toggleDark;exports.useEventListener=e.useEventListener;exports.useFps=e.useFps;exports.useMediaQuery=e.useMediaQuery;exports.useMutationObserver=e.useMutationObserver;exports.useResizeObserver=e.useResizeObserver;exports.useScroll=e.useScroll;exports.useSlotsExist=e.useSlotsExist;exports.VueAmazingUIResolver=o.VueAmazingUIResolver;exports.TdsReportBar=i.default;exports.TdsReportConfig=a.default;exports.TdsReportLine=l.default;exports.default=n;exports.install=s;
|
package/lib/line/Line.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
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;
|
package/lib/line/Line.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c={class:"chart-components"},r=e.defineComponent({name:"TdsReportLine",__name:"Line",props:{data:{}},setup(o){const t=o,n=e.computed(()=>t.data.options);return(a,p)=>{const s=e.resolveComponent("TdsChart");return e.openBlock(),e.createElementBlock("div",c,[e.createVNode(s,{option:n.value},null,8,["option"])])}}});exports.default=r;
|
package/lib/line/Line.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Line.vue.cjs");exports.default=e.default;
|
package/lib/line/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Line.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/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/lib/pie/Pie.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
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;
|
package/lib/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/lib/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/lib/select/Select.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
-
change: (...args: any[]) => void;
|
|
6
|
-
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
7
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
export default _default;
|
package/lib/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,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, {}, any>;
|
|
5
|
-
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;
|
|
@@ -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, {}, any>;
|
|
5
|
-
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, {}, 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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("pinia"),r=require("../../utils/api.cjs"),n=require("../../utils/index.cjs"),a=require("../../utils/data.cjs"),p=s.defineStore("tds-report",{state:()=>({componentList:[],activeComponents:{},notDraggableList:[],titleComponent:{},filterForm:{range_time:1,filter_uuid:""}}),getters:{getActiveComponents:t=>t.activeComponents},actions:{setComponentList(t){this.componentList=t},async getReportDemo(t){let e=[];t?e=(await r.getReportDemoApi({report_uuid:t})).data:e={content:n.deepClone(a.normalValue),range_time:1};const i=[];e.content.forEach(o=>{(o.type==="report-select"||o.type==="range-time")&&i.push(o),o.type==="h1"&&(this.titleComponent=o),o.id=n.getUniId()}),this.notDraggableList=i,this.filterForm.range_time=e.range_time,this.filterForm.filter_uuid=e.filter_uuid,e.content.splice(0,3),this.componentList=e.content},setActiveComponents(t){this.activeComponents=t},clearComponents(){this.activeComponents={},this.componentList=[],this.notDraggableList=[],this.titleComponent={},this.filterForm={range_time:1,filter_uuid:""}}}});exports.useReportStore=p;
|
package/lib/style/global.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)}
|
package/lib/table/Table.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
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;
|
package/lib/table/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Table';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Table').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('./Table').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Table').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/lib/text/Text.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
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;
|
package/lib/text/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Text';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Text').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('./Text').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Text').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/lib/time/Time.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
-
change: (...args: any[]) => void;
|
|
6
|
-
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
7
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
-
export default _default;
|
package/lib/time/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Time';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Time').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, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
8
|
-
P: {};
|
|
9
|
-
B: {};
|
|
10
|
-
D: {};
|
|
11
|
-
C: {};
|
|
12
|
-
M: {};
|
|
13
|
-
Defaults: {};
|
|
14
|
-
}, Readonly<import('./Time').Props> & Readonly<{
|
|
15
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, {}>;
|
|
17
|
-
__isFragment?: never;
|
|
18
|
-
__isTeleport?: never;
|
|
19
|
-
__isSuspense?: never;
|
|
20
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Time').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;
|
package/lib/utils/api.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=window.$envURL,o=t=>e.request({url:`${e}/tds/report/demo/get`,method:"get",params:t,isError:!1});exports.getReportDemoApi=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("echarts");const n="rgba(51, 51, 51, 0.15)",r="rgba(51, 51, 51, 1)",c=12,m=(o=!1)=>{const t={left:"3%",right:"3%",bottom:"2%",containLabel:!0};return o&&(t.top="5%"),t},e=["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"],b=(o=[{name:"数据1",value:63},{name:"数据2",value:45},{name:"数据3",value:43}],t={name:"name",value:"value"})=>{const i=(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}]}}),l=o.map(a=>a[t.value]);return{tooltip:{trigger:"item"},grid:m(),title:{show:!0,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},xAxis:[{type:"category",nameGap:8,nameRotate:0,axisLabel:{color:r,rotate:0},axisLine:{show:!0,lineStyle:{color:n,width:1}},axisTick:{show:!1},splitLine:{show:!1},data:o.map(a=>a[t.name])}],yAxis:[{type:"value",min:0,position:"left",nameTextStyle:{fontSize:c,color:r,fontWeight:"bold"},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:r,formatter:"{value}",inside:!1}}],series:[{type:"bar",barWidth:15,barGap:"0%",itemStyle:i(`rgba(${e[0]}, 0.7)`,`rgba(${e[0]}, 0.2)`),data:l,label:{show:!0,position:"top",color:"inherit",lineHeight:24}},{name:"",type:"pictorialBar",symbolSize:[15,10],symbolOffset:[0,5],itemStyle:i(`rgba(${e[0]}, 0.7)`,`rgba(${e[0]}, 0.2)`),data:l},{name:"",type:"pictorialBar",symbolSize:[15,10],symbolOffset:[0,-5],symbolPosition:"end",itemStyle:i(`rgba(${e[0]}, 0.9)`,`rgba(${e[0]}, 1)`),data:l}]}};exports.chartsBar=b;
|
package/lib/utils/data.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs"),n=require("./chartsOption.cjs"),t=[{key:"assets",name:"资产名称"},{key:"type",name:"资产类型"},{key:"data",name:"资产数据"}],a=[{assets:"name1",type:"type1",data:"data1"},{assets:"name2",type:"type2",data:"data2"},{assets:"name3",type:"type3",data:"data3"}],d=[{data:[{name:"默认数据",value:180}],label:"name1"},{data:[{name:"默认数据",value:311}],label:"name2"},{data:[{name:"默认数据",value:42}],label:"name3"},{data:[{name:"默认数据",value:32391}],label:"name4"}],i=[{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:e.getUniId()},{type:"range-time",data:[{start_time:"2024-08-20 19:49:34",end_time:"2024-09-12 19:49:34"}],id:e.getUniId()},{type:"h1",data:"报表名称",options:{size:24,color:"rgba(0,0,0,0.85)",fontWeight:500,letterSpacing:0,textIndent:0,textAlign:"left"},id:e.getUniId()},{type:"h2",data:"一级标题",name:"一级标题",options:{size:18,color:" rgba(0, 0, 0, 0.85)",fontWeight:500,letterSpacing:0,textIndent:0,textAlign:"left"},id:e.getUniId()},{type:"report-table",data:a,showColumn:t,name:"表格",options:{showColumn:{assets:!0,type:!0,data:!0},border:!0,showHeader:!0,stripe:!1},rp_item_uuid:"",id:e.getUniId()}];n.chartsBar();exports.normalValue=i;
|
package/lib/utils/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");function A(e=Date.now(),n="YYYY-MM-DD HH:mm:ss"){try{let t;if(typeof e=="number"||typeof e=="string"){if(t=new Date(e),isNaN(t.getTime()))throw new Error("Invalid date")}else t=e;const r=(a,u=2)=>String(a).padStart(u,"0"),s=a=>{switch(a){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 a}};return n.replace(/(YYYY|YY|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS)/g,s)}catch(t){return console.error("Error formatting date:",t),""}}function T(e,n=2,t=",",r=".",s,a){typeof e!="number"&&typeof e!="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 u=Number(e);if(isNaN(u)||!isFinite(u))return"";if(u===0)return u.toFixed(n);let l=u.toFixed(n);if(typeof t=="string"&&t!==""){const[i,d]=l.split(".");l=i.replace(/(\d)(?=(\d{3})+$)/g,"$1"+t)+(d?r+d:"")}return(s||"")+l+(a||"")}function N(e,n=0,t=!1){let r=null;function s(u){if(r||(r=u),u-r>=n){try{e()}catch(i){console.error("Error executing rafTimeout function:",i)}t&&(r=u,a.id=requestAnimationFrame(s))}else a.id=requestAnimationFrame(s)}const a={id:requestAnimationFrame(s)};return a}function R(e){e&&e.id&&typeof e.id=="number"?cancelAnimationFrame(e.id):console.warn("cancelRaf received an invalid id:",e)}function F(e,n=300){let t=!0;return function(...r){return t&&(e(...r),t=!1,setTimeout(()=>{t=!0},n)),!1}}function L(e,n=300){let t=null;return function(...r){t&&clearTimeout(t),t=setTimeout(()=>{e(...r)},n)}}function U(e,n){if(Number.isNaN(e)||Number.isNaN(n))throw new Error("Both num1 and num2 must be valid numbers.");const t=e%1!==0,r=n%1!==0;if(!t&&!r)return e+n;const s=String(e).split(".")[1]??"",a=String(n).split(".")[1]??"",u=Math.max(s.length,a.length),l=Math.pow(10,u),i=e.toFixed(u),d=n.toFixed(u);return(+i.replace(".","")+ +d.replace(".",""))/l}function H(e,n){if(!e){console.error("无效的 url");return}const t=n||e.split("?")[0].split("/").pop()||"download";try{fetch(e).then(r=>{r.ok?r.blob().then(s=>{const a=URL.createObjectURL(s),u=document.createElement("a");u.href=a,u.download=t,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(a)}):console.error("请求文件失败,状态码:",r.status)})}catch(r){console.error("文件下载失败:",r)}}function V(){const e=document.documentElement;e.classList.toggle("dark"),e.classList.contains("dark")?e.style.colorScheme="dark":e.style.colorScheme="light"}function Y(){const e=o.ref(!1),n=o.getCurrentInstance();return n&&o.onMounted(()=>{e.value=!0},n),e}function E(e){const n=Y();return o.computed(()=>(n.value,!!e()))}function k(e,n,t){o.onMounted(()=>e.addEventListener(n,t)),o.onUnmounted(()=>e.removeEventListener(n,t))}function q(e,n,t={}){const r=E(()=>window&&"MutationObserver"in window),s=o.ref(!1);let a;const u=o.computed(()=>{const f=o.toValue(e);return f?Array.isArray(f)?f.map(m=>o.toValue(m)).filter(m=>m):[f]:[]}),l=()=>{a&&(a.disconnect(),a=void 0)},i=()=>{r.value&&u.value.length&&!s.value&&(a=new MutationObserver(n),u.value.forEach(f=>a.observe(f,t)))};o.watch(()=>u.value,()=>{l(),i()},{immediate:!0,flush:"post"});const d=()=>{s.value=!0,l()},v=()=>{s.value=!1,i()};return o.onBeforeUnmount(()=>l()),{stop:d,start:v}}function B(e=window,n=0,t,r){const s=o.ref(0),a=o.ref(0),u=o.ref(0),l=o.ref(0),i=o.ref(!1),d=o.ref(!1),v=o.ref(!1),f=o.ref(!1),m=o.ref(!1),b=o.ref(0),S=o.ref(0);function D(c){i.value=!0;const p=c.target.documentElement??c.target;s.value=p.scrollLeft,u.value=p.scrollTop,d.value=s.value<b.value,v.value=s.value>b.value,f.value=u.value<S.value,m.value=u.value>S.value,b.value=s.value,S.value=u.value,w(c),t&&t(c)}const y=F(D,n);function O(c){i.value&&(i.value=!1,d.value=!1,v.value=!1,f.value=!1,m.value=!1,r&&r(c))}const w=L(O,n+200),M=o.computed(()=>{const c=o.toValue(e);return c||null});o.watch(()=>M.value,(c,p)=>{var h;if(p&&x(p),c){const g=((h=c==null?void 0:c.document)==null?void 0:h.documentElement)||(c==null?void 0:c.documentElement)||c;a.value=g.scrollWidth-g.clientWidth,l.value=g.scrollHeight-g.clientHeight,g.addEventListener("scroll",y),g.addEventListener("scrollend",w)}},{immediate:!0,flush:"post"});function x(c){var h;const p=((h=c==null?void 0:c.document)==null?void 0:h.documentElement)||(c==null?void 0:c.documentElement)||c;p.removeEventListener("scroll",y),p.removeEventListener("scrollend",w)}return o.onBeforeUnmount(()=>x(M.value)),{x:s,xScrollMax:a,y:u,yScrollMax:l,isScrolling:i,left:d,right:v,top:f,bottom:m}}function I(){const e=o.ref(0),n=o.ref(0);let t=performance.now();const r=10,s=a=>{if(n.value++,n.value>=r){const u=a-t;e.value=Math.round(1e3/(u/r)),t=a,n.value=0}requestAnimationFrame(s)};return requestAnimationFrame(s),{fps:e}}function z(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid mediaQuery parameter. It must be a non-empty string.");const n=o.ref(window&&window.matchMedia(e).matches),t=window.matchMedia(e),r=s=>{n.value=s.matches};return o.onMounted(()=>{t.addEventListener("change",r)}),o.onBeforeUnmount(()=>{t.removeEventListener("change",r)}),{match:n}}function j(e,n,t={}){const r=E(()=>window&&"ResizeObserver"in window);let s;const a=o.ref(!1),u=o.computed(()=>{const f=o.toValue(e);return f?Array.isArray(f)?f.map(m=>o.toValue(m)).filter(m=>m):[f]:[]}),l=()=>{s&&(s.disconnect(),s=void 0)},i=()=>{r.value&&u.value.length&&!a.value&&(s=new ResizeObserver(n),u.value.forEach(f=>s.observe(f,t)))};o.watch(()=>u.value,()=>{l(),i()},{immediate:!0,flush:"post"});const d=()=>{a.value=!0,l()},v=()=>{a.value=!1,i()};return o.onBeforeUnmount(()=>l()),{stop:d,start:v}}function P(e="default"){const n=o.useSlots(),t=r=>{var u;const s=(u=n[r])==null?void 0:u.call(n),a=l=>{if(l.type===o.Comment||Array.isArray(l.children)&&!l.children.length)return!1;if(l.type!==o.Text)return!0;if(typeof l.children=="string")return l.children.trim()!==""};return s&&(s!=null&&s.length)?s.some(i=>a(i)):!1};if(Array.isArray(e)){const r=o.reactive({});return e.forEach(s=>{const a=o.computed(()=>t(s));r[s]=a}),r}else return o.computed(()=>t(e))}const C=()=>new Date().getTime().toString(36)+"-"+Math.random().toString(36).substring(2,9),J=e=>JSON.parse(JSON.stringify(e));exports.add=U;exports.cancelRaf=R;exports.dateFormat=A;exports.debounce=L;exports.deepClone=J;exports.downloadFile=H;exports.formatNumber=T;exports.getUniId=C;exports.rafTimeout=N;exports.throttle=F;exports.toggleDark=V;exports.useEventListener=k;exports.useFps=I;exports.useMediaQuery=z;exports.useMounted=Y;exports.useMutationObserver=q;exports.useResizeObserver=j;exports.useScroll=B;exports.useSlotsExist=P;exports.useSupported=E;
|
package/lib/utils/resolver.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={TdsReportBar:"TdsReportBar"},n={BackTop:["Tooltip"]};function f(t,e){if(["NumberAnimation","Watermark"].includes(t))return[];const s=[t];t in n&&s.push(...n[t]);const r=e!=null&&e.cjs?"lib":"es",c=[`@topdatasec/report/${r}/style/global.css`];return s.forEach(i=>{c.push(`@topdatasec/report/${r}/${o[i]}/${i}.css`)}),c}function a(t){return{type:"component",resolve:e=>{if(e in o)return{name:e,from:"@topdatasec/report",sideEffects:f(e,t)}}}}exports.VueAmazingUIResolver=a;
|
package/lib/utils/resolver.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface VueAmazingUIResolverOptions {
|
|
2
|
-
cjs?: boolean;
|
|
3
|
-
}
|
|
4
|
-
export declare function VueAmazingUIResolver(options?: VueAmazingUIResolverOptions): {
|
|
5
|
-
type: "component";
|
|
6
|
-
resolve: (componentName: string) => {
|
|
7
|
-
name: string;
|
|
8
|
-
from: string;
|
|
9
|
-
sideEffects: string[];
|
|
10
|
-
} | undefined;
|
|
11
|
-
};
|
package/lib/utils/type.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=t=>{const n=t;return n.install=function(e){e.component(n.name,t)},t};exports.withInstall=l;
|
package/lib/utils/type.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|