@topdatasec/report 1.0.9 → 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/table/Table.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/line/Line.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 -2
- package/dist/index.js +0 -2041
- package/dist/index.umd.cjs +0 -2
- 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 -15
- package/es/components.js +0 -30
- 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 -60
- 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/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +0 -1
- package/es/pie/Pie.vue.js +0 -20
- package/es/pie/Pie.vue2.js +0 -4
- package/es/pie/index.d.ts +0 -15
- package/es/pie/index.js +0 -6
- package/es/report/Report.d.ts +0 -7
- package/es/report/Report.vue.js +0 -112
- package/es/report/Report.vue2.js +0 -4
- package/es/report/index.d.ts +0 -17
- package/es/report/index.js +0 -6
- package/es/select/Select.vue.js +0 -39
- package/es/select/Select.vue2.js +0 -4
- package/es/select/index.d.ts +0 -25
- package/es/select/index.js +0 -6
- package/es/settingCharts/SettingCharts.d.ts +0 -5
- package/es/settingCharts/SettingCharts.vue.js +0 -142
- package/es/settingCharts/SettingCharts.vue2.js +0 -4
- package/es/settingCharts/index.d.ts +0 -14
- package/es/settingCharts/index.js +0 -6
- package/es/settingFilter/index.d.ts +0 -15
- package/es/settingFilter/index.js +0 -6
- package/es/settingFilter/settingFilter.vue.js +0 -62
- package/es/settingFilter/settingFilter.vue2.js +0 -4
- package/es/settingTable/SettingTable.vue.js +0 -59
- package/es/settingTable/SettingTable.vue2.js +0 -4
- package/es/settingTable/index.d.ts +0 -14
- package/es/settingTable/index.js +0 -6
- package/es/settingText/index.d.ts +0 -15
- package/es/settingText/index.js +0 -6
- package/es/settingText/settingText.d.ts +0 -5
- package/es/settingText/settingText.vue.js +0 -112
- package/es/settingText/settingText.vue2.js +0 -4
- package/es/settingTitle/index.d.ts +0 -14
- package/es/settingTitle/index.js +0 -6
- package/es/settingTitle/settingTitle.css +0 -1
- package/es/settingTitle/settingTitle.vue.js +0 -7
- package/es/settingTitle/settingTitle.vue2.js +0 -137
- 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/Table.vue.js +0 -26
- package/es/table/Table.vue2.js +0 -4
- package/es/table/index.d.ts +0 -15
- package/es/table/index.js +0 -6
- package/es/text/Text.d.ts +0 -5
- package/es/text/Text.vue.js +0 -27
- package/es/text/Text.vue2.js +0 -4
- package/es/text/index.d.ts +0 -15
- package/es/text/index.js +0 -6
- package/es/time/Time.vue.js +0 -35
- package/es/time/Time.vue2.js +0 -4
- package/es/time/index.d.ts +0 -25
- package/es/time/index.js +0 -6
- package/es/utils/api.d.ts +0 -12
- package/es/utils/api.js +0 -32
- package/es/utils/chartsOption.d.ts +0 -298
- package/es/utils/chartsOption.js +0 -501
- package/es/utils/data.d.ts +0 -4
- package/es/utils/data.js +0 -162
- 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 -49
- 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 -15
- 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/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +0 -1
- package/lib/pie/Pie.d.ts +0 -5
- package/lib/pie/Pie.vue.cjs +0 -1
- package/lib/pie/Pie.vue2.cjs +0 -1
- package/lib/pie/index.cjs +0 -1
- package/lib/pie/index.d.ts +0 -15
- package/lib/report/Report.d.ts +0 -7
- package/lib/report/Report.vue.cjs +0 -1
- package/lib/report/Report.vue2.cjs +0 -1
- package/lib/report/index.cjs +0 -1
- package/lib/select/Select.d.ts +0 -9
- package/lib/select/Select.vue.cjs +0 -1
- package/lib/select/Select.vue2.cjs +0 -1
- package/lib/select/index.cjs +0 -1
- package/lib/select/index.d.ts +0 -25
- package/lib/settingCharts/SettingCharts.d.ts +0 -5
- package/lib/settingCharts/SettingCharts.vue.cjs +0 -1
- package/lib/settingCharts/SettingCharts.vue2.cjs +0 -1
- package/lib/settingCharts/index.cjs +0 -1
- package/lib/settingCharts/index.d.ts +0 -14
- package/lib/settingFilter/index.cjs +0 -1
- package/lib/settingFilter/index.d.ts +0 -15
- package/lib/settingFilter/settingFilter.d.ts +0 -5
- package/lib/settingFilter/settingFilter.vue.cjs +0 -1
- package/lib/settingFilter/settingFilter.vue2.cjs +0 -1
- package/lib/settingTable/SettingTable.vue.cjs +0 -1
- package/lib/settingTable/SettingTable.vue2.cjs +0 -1
- package/lib/settingTable/index.cjs +0 -1
- package/lib/settingTable/index.d.ts +0 -14
- package/lib/settingText/index.cjs +0 -1
- package/lib/settingText/index.d.ts +0 -15
- package/lib/settingText/settingText.d.ts +0 -5
- package/lib/settingText/settingText.vue.cjs +0 -1
- package/lib/settingText/settingText.vue2.cjs +0 -1
- package/lib/settingTitle/index.cjs +0 -1
- package/lib/settingTitle/index.d.ts +0 -14
- package/lib/settingTitle/settingTitle.css +0 -1
- package/lib/settingTitle/settingTitle.vue.cjs +0 -1
- package/lib/settingTitle/settingTitle.vue2.cjs +0 -1
- 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/Table.vue.cjs +0 -1
- package/lib/table/Table.vue2.cjs +0 -1
- package/lib/table/index.cjs +0 -1
- package/lib/table/index.d.ts +0 -15
- package/lib/text/Text.d.ts +0 -5
- package/lib/text/Text.vue.cjs +0 -1
- package/lib/text/Text.vue2.cjs +0 -1
- package/lib/text/index.cjs +0 -1
- package/lib/text/index.d.ts +0 -15
- package/lib/time/Time.d.ts +0 -9
- package/lib/time/Time.vue.cjs +0 -1
- package/lib/time/Time.vue2.cjs +0 -1
- package/lib/time/index.cjs +0 -1
- package/lib/time/index.d.ts +0 -25
- package/lib/utils/api.cjs +0 -1
- package/lib/utils/chartsOption.cjs +0 -2
- 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 e=require("vue"),m={key:0},i=e.defineComponent({name:"TdsReportSelect",__name:"Select",props:{data:{}},emits:["change"],setup(a,{emit:c}){const r=c,u=o=>{r("change",o)},s=a,l=e.ref(s.data);return(o,n)=>{const d=e.resolveComponent("el-option"),p=e.resolveComponent("el-select");return l.value.data?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(p,{modelValue:l.value.value,"onUpdate:modelValue":n[0]||(n[0]=t=>l.value.value=t),multiple:"",style:{width:"100%"},onChange:u,placeholder:"全部"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value.data,t=>(e.openBlock(),e.createBlock(d,{key:t.data,label:t.label,value:t.data},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)}}});exports.default=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Select.vue.cjs");exports.default=e.default;
|
package/lib/select/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Select.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../utils/api.cjs"),V=require("../stores/modules/report.cjs"),m=require("../utils/chartsOption.cjs"),B=require("../utils/data.cjs"),N=require("../settingTable/SettingTable.vue.cjs"),S=require("../config/Config.vue.cjs"),T=e.defineComponent({name:"TdsSettingCharts",__name:"SettingCharts",props:{prodType:{}},setup(h){const C=h,i=V.useReportStore(),d=e.ref(!1),v=e.computed(()=>i.getActiveComponents),y=[{value:"report-table",name:"表格"},{value:"line",name:"趋势图"},{value:"pie",name:"扇形图"},{value:"bar",name:"柱状图"}],l=e.ref(""),_=e.ref();async function f(u){const n=await w.getReportItemApi({prod_type:C.prodType,chart_type:u,filter_uuid:i.filterForm.filter_uuid});_.value=n.data}function b(u){let n=_.value.find(a=>a.rp_item_uuid===u);const t=n.rp_item_content;if(n.rp_item_content.type==="bar"){t.options=m.chartsBar();const a=[];let r="";t.data.forEach(s=>{r=s.data[0].name,a.push({name:s.label,value:s.data[0].value})}),m.barParseData(t.options,a,r)}if(t.type==="pie"&&(t.options=m.chartsPie({isLegend:!0}),m.pieParseData({chartOption:t.options,data:t.data})),t.type==="line"){let a=[];t.data.forEach(p=>{a=p.data.map((o,c)=>({name:o.name,value:"value"+c}))});const r={name:"name",value:a},s=t.data.map(p=>{const o={name:p.label};return a.forEach((c,k)=>{o[c.value]=p.data[k].value}),o});t.options=m.chartsLine([],r),m.lineParseData(t.options,s,r)}if(t.type==="report-table"){const a={};t.showColumn.forEach(r=>{a[r.key]=!0}),t.options={...t.options,showColumn:a,border:!0,showHeader:!0,stripe:!1}}Object.assign(i.activeComponents,t),i.activeComponents.rp_item_uuid=n.rp_item_uuid}e.onMounted(async()=>{l.value=v.value.type,await f(l.value)});async function g(u){try{d.value=!0,await f(u),Object.assign(i.activeComponents,B.normalValueFn(u)),d.value=!1}catch{d.value=!1}}return e.watch(()=>v.value,u=>{~["bar","pie","line","report-table"].indexOf(u.type)&&(l.value=v.value.type,f(l.value))}),(u,n)=>{const t=e.resolveComponent("el-option"),a=e.resolveComponent("el-select"),r=e.resolveComponent("el-form-item"),s=e.resolveComponent("el-form"),p=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(r,{label:"图表类型"},{default:e.withCtx(()=>[e.createVNode(a,{style:{width:"100%"},modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=o=>l.value=o),onChange:g},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(y,(o,c)=>e.createVNode(t,{key:c,label:o.name,value:o.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(r,{label:"组件库"},{default:e.withCtx(()=>[e.createVNode(a,{style:{width:"100%"},modelValue:e.unref(i).activeComponents.rp_item_uuid,"onUpdate:modelValue":n[1]||(n[1]=o=>e.unref(i).activeComponents.rp_item_uuid=o),onChange:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(o,c)=>(e.openBlock(),e.createBlock(t,{key:c,label:o.rp_item_name,value:o.rp_item_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l.value==="report-table"&&v.value.options.showColumn?(e.openBlock(),e.createBlock(N.default,{key:0})):e.createCommentVNode("",!0),l.value==="pie"||l.value==="bar"||l.value==="line"?(e.openBlock(),e.createBlock(S.default,{key:1})):e.createCommentVNode("",!0)]),_:1})])),[[p,d.value]])}}});exports.default=T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SettingCharts.vue.cjs");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SettingCharts.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingFilter.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../utils/api.cjs"),f=require("../stores/modules/report.cjs"),v=e.defineComponent({name:"TdsSettingFilter",__name:"settingFilter",props:{prodType:{}},setup(i){const a=i,r=e.ref([]),o=f.useReportStore();async function p(){const n=await _.getReportFilterApi({prod_type:a.prodType});r.value=n.data}return p(),(n,l)=>{const s=e.resolveComponent("el-option"),c=e.resolveComponent("el-select"),u=e.resolveComponent("el-form-item"),d=e.resolveComponent("el-checkbox"),m=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(m,{"label-width":"80px","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(u,{label:"筛选条件"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(o).filterForm.filter_uuid,"onUpdate:modelValue":l[0]||(l[0]=t=>e.unref(o).filterForm.filter_uuid=t),disabled:!!e.unref(o).filterForm.filter_uuid},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,t=>(e.openBlock(),e.createBlock(s,{key:t.filter_uuid,label:t.filter_name,value:t.filter_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1}),e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(o).filterForm.range_time,"onUpdate:modelValue":l[1]||(l[1]=t=>e.unref(o).filterForm.range_time=t),"true-value":1,"false-value":0,label:"时间范围"},null,8,["modelValue"])]),_:1})]),_:1})}}});exports.default=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingFilter.vue.cjs");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../stores/modules/report.cjs"),i={class:"label"},p={class:"flex item-switch"},c={class:"flex item-switch"},V={class:"flex item-switch"},v=e.defineComponent({name:"TdsSettingTable",__name:"SettingTable",setup(_){const a=m.useReportStore(),t=e.computed(()=>a.getActiveComponents);return(N,o)=>{const n=e.resolveComponent("el-switch"),s=e.resolveComponent("el-form-item"),r=e.resolveComponent("el-divider");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{label:"控制列"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.showColumn,(l,d)=>(e.openBlock(),e.createElementBlock("p",{class:"flex item-switch",key:d},[e.createElementVNode("span",i,e.toDisplayString(l.name),1),e.createVNode(n,{modelValue:t.value.options.showColumn[l.key],"onUpdate:modelValue":u=>t.value.options.showColumn[l.key]=u},null,8,["modelValue","onUpdate:modelValue"])]))),128))]),_:1}),e.createVNode(r),e.createVNode(s,{label:"表格样式"},{default:e.withCtx(()=>[e.createElementVNode("p",p,[o[3]||(o[3]=e.createElementVNode("span",{class:"label"},"斑马纹",-1)),e.createVNode(n,{modelValue:t.value.options.stripe,"onUpdate:modelValue":o[0]||(o[0]=l=>t.value.options.stripe=l)},null,8,["modelValue"])]),e.createElementVNode("p",c,[o[4]||(o[4]=e.createElementVNode("span",{class:"label"},"边框",-1)),e.createVNode(n,{modelValue:t.value.options.border,"onUpdate:modelValue":o[1]||(o[1]=l=>t.value.options.border=l)},null,8,["modelValue"])]),e.createElementVNode("p",V,[o[5]||(o[5]=e.createElementVNode("span",{class:"label"},"表头",-1)),e.createVNode(n,{modelValue:t.value.options.showHeader,"onUpdate:modelValue":o[2]||(o[2]=l=>t.value.options.showHeader=l)},null,8,["modelValue"])])]),_:1})])}}});exports.default=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SettingTable.vue.cjs");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SettingTable.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingText.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const d=require("@wangeditor/editor-for-vue"),V=require("../utils/api.cjs"),x=require("../stores/modules/report.cjs"),k={key:0},w={style:{border:"1px solid #ccc","border-radius":"3px"}},c="default",N=e.defineComponent({name:"TdsSettingText",__name:"settingText",props:{prodType:{}},setup(s){const p=s,n=x.useReportStore(),l=e.shallowRef(),i=e.ref();function m(t){const o=i.value.find(a=>a.rp_item_uuid===t);n.activeComponents.uri=o.rp_item_content.uri,l.value.setHtml((o==null?void 0:o.rp_item_content.data)||"")}async function f(){const t=await V.getReportItemApi({prod_type:p.prodType,chart_type:"p",filter_uuid:n.filterForm.filter_uuid});i.value=t.data}f();const _={toolbarKeys:["bold","underline","italic","through","code","bulletedList","numberedList","clearStyle","color","bgColor","fontSize","fontFamily","justifyLeft","justifyRight","justifyCenter","justifyJustify","lineHeight"]},C={placeholder:"请输入内容..."},v=t=>{l.value=t},y=t=>{};return e.onBeforeUnmount(()=>{const t=l.value;t!=null&&t.destroy()}),(t,o)=>{const a=e.resolveComponent("el-option"),h=e.resolveComponent("el-select"),u=e.resolveComponent("el-form-item"),b=e.resolveComponent("el-form");return e.unref(n).activeComponents.id?(e.openBlock(),e.createElementBlock("div",k,[e.createVNode(b,{"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(u,{label:"组件库"},{default:e.withCtx(()=>[e.createVNode(h,{style:{width:"100%"},modelValue:e.unref(n).activeComponents.rp_item_uuid,"onUpdate:modelValue":o[0]||(o[0]=r=>e.unref(n).activeComponents.rp_item_uuid=r),onChange:m},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(r,g)=>(e.openBlock(),e.createBlock(a,{key:g,label:r.rp_item_name,value:r.rp_item_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(u,{label:"文本内容"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createVNode(e.unref(d.Toolbar),{style:{"border-bottom":"1px solid #ccc"},editor:l.value,"default-config":_,mode:c},null,8,["editor"]),e.createVNode(e.unref(d.Editor),{style:{height:"500px","overflow-y":"hidden"},onOnChange:y,modelValue:e.unref(n).activeComponents.data,"onUpdate:modelValue":o[1]||(o[1]=r=>e.unref(n).activeComponents.data=r),"default-config":C,mode:c,onOnCreated:v},null,8,["modelValue"])])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}});exports.default=N;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingText.vue.cjs");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingTitle.vue.cjs"),t=require("../utils/type.cjs"),i=t.withInstall(e.default);exports.default=i;
|
|
@@ -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
|
-
[data-v-86e0f9f6] .el-color-picker{width:100%}[data-v-86e0f9f6] .el-color-picker .el-color-picker__trigger{width:100%;top:1px}[data-v-86e0f9f6] .el-input-number{width:100%}.sub-title[data-v-86e0f9f6]{color:#555;font-size:12px;padding-left:5px;height:20px;line-height:20px;margin-bottom:10px}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingTitle.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-86e0f9f6"]]);exports.default=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("../stores/modules/report.cjs"),c=e.defineComponent({name:"TdsSettingTitle",__name:"settingTitle",setup(f){const o=V.useReportStore();return(C,t)=>{const p=e.resolveComponent("el-input"),s=e.resolveComponent("el-form-item"),u=e.resolveComponent("el-color-picker"),l=e.resolveComponent("el-col"),r=e.resolveComponent("el-input-number"),a=e.resolveComponent("el-option"),i=e.resolveComponent("el-select"),d=e.resolveComponent("el-row"),m=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(m,{"label-width":"auto","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(s,{label:"名称"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:e.unref(o).activeComponents.data,"onUpdate:modelValue":t[0]||(t[0]=n=>e.unref(o).activeComponents.data=n),placeholder:"Please input",maxlength:"24","show-word-limit":""},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"样式"},{default:e.withCtx(()=>[e.createVNode(d,{gutter:20},{default:e.withCtx(()=>[e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).activeComponents.options.color,"onUpdate:modelValue":t[1]||(t[1]=n=>e.unref(o).activeComponents.options.color=n),"show-alpha":""},null,8,["modelValue"]),t[7]||(t[7]=e.createElementVNode("p",{class:"sub-title"},"颜色",-1))]),_:1}),e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:e.unref(o).activeComponents.options.size,"onUpdate:modelValue":t[2]||(t[2]=n=>e.unref(o).activeComponents.options.size=n),"controls-position":"right"},null,8,["modelValue"]),t[8]||(t[8]=e.createElementVNode("p",{class:"sub-title"},"字体大小",-1))]),_:1}),e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(o).activeComponents.options.fontWeight,"onUpdate:modelValue":t[3]||(t[3]=n=>e.unref(o).activeComponents.options.fontWeight=n)},{default:e.withCtx(()=>[e.createVNode(a,{label:"常规",value:500}),e.createVNode(a,{label:"加粗",value:600})]),_:1},8,["modelValue"]),t[9]||(t[9]=e.createElementVNode("p",{class:"sub-title"},"字体粗细",-1))]),_:1}),e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:e.unref(o).activeComponents.options.letterSpacing,"onUpdate:modelValue":t[4]||(t[4]=n=>e.unref(o).activeComponents.options.letterSpacing=n),"controls-position":"right"},null,8,["modelValue"]),t[10]||(t[10]=e.createElementVNode("p",{class:"sub-title"},"字间距",-1))]),_:1}),e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:e.unref(o).activeComponents.options.textIndent,"onUpdate:modelValue":t[5]||(t[5]=n=>e.unref(o).activeComponents.options.textIndent=n),"controls-position":"right"},null,8,["modelValue"]),t[11]||(t[11]=e.createElementVNode("p",{class:"sub-title"},"首行缩进",-1))]),_:1}),e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(o).activeComponents.options.textAlign,"onUpdate:modelValue":t[6]||(t[6]=n=>e.unref(o).activeComponents.options.textAlign=n)},{default:e.withCtx(()=>[e.createVNode(a,{label:"左对齐",value:"left"}),e.createVNode(a,{label:"居中对齐",value:"center"}),e.createVNode(a,{label:"右对齐",value:"right"})]),_:1},8,["modelValue"]),t[12]||(t[12]=e.createElementVNode("p",{class:"sub-title"},"位置",-1))]),_:1})]),_:1})]),_:1})]),_:1})}}});exports.default=c;
|
|
@@ -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/Table.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=e.defineComponent({name:"TdsReportTable",__name:"Table",props:{data:{}},setup(r){const t=r,n=a=>React.createElement("el-table",{data:a.data,border:t.data.options.border,"show-header":!!t.data.options.showHeader,stripe:t.data.options.stripe},a.showColumn.map(o=>t.data.options.showColumn[o.key]===!0?React.createElement("el-table-column",{prop:o.key,label:o.name}):null));return(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(n,e.normalizeProps(e.guardReactiveProps(a.data)),null,16)]))}});exports.default=l;
|
package/lib/table/Table.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Table.vue.cjs");exports.default=e.default;
|
package/lib/table/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Table.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
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/Text.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=e.defineComponent({name:"TdsReportText",__name:"Text",props:{data:{}},setup(n){const o=n,a=()=>{const t=o.data.options||{};return{color:t.color,"font-size":t.size+"px","font-weight":t.fontWeight,"letter-spacing":t.letterSpacing+"px","text-indent":t.textIndent+"px","text-align":t.textAlign}};return(t,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(a())},e.toDisplayString(t.data.data),5))}});exports.default=i;
|
package/lib/text/Text.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Text.vue.cjs");exports.default=e.default;
|
package/lib/text/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Text.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
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/Time.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=e.defineComponent({name:"TdsReportTime",__name:"Time",props:{data:{}},emits:["change"],setup(o,{emit:u}){const r=u,m=o,t=e.ref(m.data),a=e.ref([]);function d(n){n?(t.value.data[0].start_time=n[0],t.value.data[0].end_time=n[1]):a.value=[],r("change",a.value)}return e.onMounted(()=>{a.value=[t.value.data[0].start_time,t.value.data[0].end_time]}),(n,l)=>{const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),type:"datetimerange",placeholder:"Pick a Date",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",onChange:d,clearable:!1},null,8,["modelValue"])])}}});exports.default=i;
|
package/lib/time/Time.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Time.vue.cjs");exports.default=e.default;
|
package/lib/time/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Time.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
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 r=window.$http,t=window.$envURL,o=e=>t.request({url:`${t}/tds/report/demo/get`,method:"get",params:e,isError:!1}),s=e=>r.request({url:`${t}/tds/report/item/get`,method:"get",params:e,isError:!1}),p=e=>r.request({url:`${t}/tds/report/get`,method:"get",params:e,isError:!1}),i=e=>r.request({url:`${t}/tds/report/filter/get`,method:"get",params:e,isError:!1}),d=e=>r.request({url:`${t}/tds/report/delete`,method:"delete",data:e});exports.deleteReportApi=d;exports.getReportDemoApi=o;exports.getReportFilterApi=i;exports.getReportItemApi=s;exports.getReportListApi=p;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("echarts");const y=require("./index.cjs"),d="rgba(51, 51, 51, 0.15)",u="rgba(51, 51, 51, 1)",f=12,g=(e=!1)=>{const t={left:"3%",right:"3%",bottom:"2%",containLabel:!0};return e&&(t.top="5%"),t},r=["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"],v=(e,t,o="",l={name:"name",value:"value"})=>{const i=[],a=[];t.forEach(s=>{i.push(s[l.name]),a.push(s[l.value])}),e.xAxis[0].data=i,e.series[0].data=a,e.series[0].name=o,e.series[1].data=a,e.series[2].data=a},p=(e=[{name:"数据1",value:63},{name:"数据2",value:45},{name:"数据3",value:43}],t={name:"name",value:"value"})=>{const o=(i="rgba(46, 145, 255, 0.7)",a="rgba(46, 145, 255, 0.2)")=>({color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:i},{offset:.8,color:a}]}}),l=e.map(i=>i[t.value]);return{tooltip:{trigger:"item"},grid:g(),title:{show:!0,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},xAxis:[{type:"category",nameGap:8,nameRotate:0,axisLabel:{color:u,rotate:0},axisLine:{show:!0,lineStyle:{color:d,width:1}},axisTick:{show:!1},splitLine:{show:!1},data:e.map(i=>i[t.name])}],yAxis:[{type:"value",min:0,position:"left",nameTextStyle:{fontSize:f,color:u,fontWeight:"bold"},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:u,formatter:"{value}",inside:!1}}],series:[{type:"bar",barWidth:15,barGap:"0%",itemStyle:o(`rgba(${r[0]}, 0.7)`,`rgba(${r[0]}, 0.2)`),data:l,label:{show:!0,position:"top",color:"inherit",lineHeight:24}},{name:"",type:"pictorialBar",symbolSize:[15,10],symbolOffset:[0,5],itemStyle:o(`rgba(${r[0]}, 0.7)`,`rgba(${r[0]}, 0.2)`),data:l},{name:"",type:"pictorialBar",symbolSize:[15,10],symbolOffset:[0,-5],symbolPosition:"end",itemStyle:o(`rgba(${r[0]}, 0.9)`,`rgba(${r[0]}, 1)`),data:l}]}},S=({chartOption:e,data:t,props:o={name:"label",value:"data"}})=>{let l=0;const i=t.map((a,s)=>(l+=Number(a[o.value]),{name:a[o.name],value:Number(a[o.value])}));t.length>0&&(e.legend.data=i,e.series[0].data=i,e.graphic[1].style.text=l)},w=()=>r.map(e=>`rgba(${e}, 1)`),L=({data:e=[{name:"数据1",value:63},{name:"数据2",value:45},{name:"数据3",value:43}],radiusType:t=1,roseType:o=!1,isLegend:l=!0,isLine:i=!1,center:a=["50%","50%"],isTitle:s=!0})=>{const n={color:w(),toolbox:{show:!1},tooltip:{trigger:"item",show:!0,formatter:c=>{const{name:b,value:m}=c;return`<div style="color: ${c.color}; font-size: 14px;">${b} </div>
|
|
2
|
-
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${m}</span></div>`}},title:{show:s,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},legend:{show:l,left:"70%",formatter:c=>{var m;const b=(m=n.series[0])==null?void 0:m.data.find(x=>x.name===c).value;return` ${c} | ${b}`},textStyle:{fontSize:f,color:u},data:e,orient:"vertical",itemWidth:10,itemHeight:10,borderRadius:10,x:"left",top:"center",align:"left",itemGap:15},series:[{type:"pie",center:a,radius:t===1?o?["10%","65%"]:["45%","70%"]:["0%","65%"],roseType:o,itemStyle:{borderRadius:1},label:{show:i,position:"outside",alignTo:"labelLine",backgroundColor:"#fff",height:0,width:0,lineHeight:0,distanceToLabelLine:0,borderRadius:3,borderWidth:1,borderColor:"inherit",padding:[3,-3,3,-3],formatter:function(c){return`{a|${c.name}(${c.value})}`},rich:{a:{padding:[20,-80,40,-80],fontSize:"12px",fontFamily:"MicrosoftYaHei",color:"#091158"},b:{padding:[0,-80,55,-80],fontSize:"15px",fontFamily:"MicrosoftYaHei-Bold, MicrosoftYaHei",fontWeight:"bold",color:"#001F3D"}}},labelLine:{show:!0,length:40,length2:85,align:"right",lineStyle:{width:1}},data:e}],graphic:[{invisible:!1,type:"text",left:"center",top:"44%",style:{text:"总量",fontSize:14,fill:"#86909c",fontWeight:"bold"}},{invisible:!1,type:"text",left:"center",top:"50%",style:{text:"151",fontSize:18,fill:"#86909c",fontWeight:"bold"}}]};return n},$=(e,t,o={name:"name",value:"value"})=>{e.xAxis.data=t.map(l=>l[o.name]),Array.isArray(o.value)?o.value.forEach((l,i)=>{e.series[i].data=t.map(a=>a[l.value])}):typeof o.value=="string"&&(e.series[0].data=t.map(l=>l[o.value]))},h=()=>({name:"",type:"line",symbol:"circle",smooth:!0,lineStyle:{width:1,color:`rgba(${r[0]}, 1)`},showSymbol:!1,itemStyle:{color:`rgba(${r[0]}, 1)`,label:{show:!0,position:"top",formatter:function(e){return e.value?e.value:0}}},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`rgba(${r[0]}, 0.7)`},{offset:1,color:`rgba(${r[0]}, 0.1)`}],global:!1}},data:[]}),z=(e=[{name:"2024-08",value:63},{name:"2024-09",value:45},{name:"2024-10",value:43}],t={name:"name",value:"value"})=>{const o={tooltip:{trigger:"axis"},title:{show:!0,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},legend:{show:!0,itemWidth:30,textStyle:{color:u,fontSize:f,padding:[0,8,0,8]}},grid:g(),xAxis:{type:"category",splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:d}},axisLabel:{show:!0,fontSize:f,color:u},boundaryGap:!1,data:e.map(a=>a[t.name])},yAxis:{name:"",type:"value",splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},nameTextStyle:{fontSize:f,color:u,padding:[0,60,0,0]},axisLabel:{show:!0,fontSize:f,color:u}},series:[]},l=h(),i=[];if(Array.isArray(t.value))t.value.forEach((a,s)=>{const n=y.deepClone(l);n.name=a.name,n.lineStyle.color=`rgba(${r[s]}, 1)`,n.itemStyle.color=`rgba(${r[s]}, 1)`,n.areaStyle.color.colorStops[0].color=`rgba(${r[s]}, 0.7)`,n.areaStyle.color.colorStops[1].color=`rgba(${r[s]}, 0.1)`,n.data=e.map(c=>c[a.value]),i.push(n)});else if(typeof t.value=="string"){const a=y.deepClone(l);a.data=e.map(s=>s[t.value]),i.push(a)}return o.series=i,o};exports.barParseData=v;exports.chartsBar=p;exports.chartsLine=z;exports.chartsPie=L;exports.lineMode=h;exports.lineParseData=$;exports.pieParseData=S;
|
package/lib/utils/data.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs"),t=require("./chartsOption.cjs"),n=[{key:"assets",name:"资产名称"},{key:"type",name:"资产类型"},{key:"data",name:"资产数据"}],r=[{assets:"name1",type:"type1",data:"data1"},{assets:"name2",type:"type2",data:"data2"},{assets:"name3",type:"type3",data:"data3"}],a=[{data:[{name:"默认数据",value:180}],label:"name1"},{data:[{name:"默认数据",value:311}],label:"name2"},{data:[{name:"默认数据",value:42}],label:"name3"},{data:[{name:"默认数据",value:32391}],label:"name4"}],o=[{data:63,label:"数据1"},{data:45,label:"数据2"},{data:43,label:"数据3"}],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:r,showColumn:n,name:"表格",options:{showColumn:{assets:!0,type:!0,data:!0},border:!0,showHeader:!0,stripe:!1},rp_item_uuid:"",id:e.getUniId()}];t.chartsBar();const d=l=>({bar:{type:"bar",data:a,showColumn:[{key:"label",value:"data"}],name:"图表",options:t.chartsBar(),rp_item_uuid:"",id:""},line:{type:"line",data:a,showColumn:[{key:"label",value:"data"}],name:"图表",options:t.chartsLine(),rp_item_uuid:"",id:""},pie:{type:"pie",data:o,showColumn:[{key:"label",value:"data"}],name:"图表",options:t.chartsPie({isLegend:!0}),rp_item_uuid:"",id:""},"report-table":{type:"report-table",data:r,showColumn:n,name:"表格",options:{showColumn:{assect:!0,type:!0,data:!0},border:!0,showHeader:!0,stripe:!1},rp_item_uuid:"",id:""}})[l];exports.normalValue=i;exports.normalValueFn=d;
|
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",TdsReportConfig:"TdsReportConfig",TdsReportLine:"TdsReportLine",TdsReportPie:"TdsReportPie",TdsReportInfo:"TdsReportInfo",TdsReportSelect:"TdsReportSelect",TdsSettingCharts:"TdsSettingCharts",TdsSettingFilter:"TdsSettingFilter",TdsSettingTable:"TdsSettingTable",TdsSettingText:"TdsSettingText",TdsSettingTitle:"TdsSettingTitle",TdsReportTable:"TdsReportTable",TdsReportText:"TdsReportText",TdsReportTime:"TdsReportTime"},d={BackTop:["Tooltip"]};function n(t,e){if(["NumberAnimation","Watermark"].includes(t))return[];const s=[t];t in d&&s.push(...d[t]);const r=e!=null&&e.cjs?"lib":"es",T=[`@topdatasec/report/${r}/style/global.css`];return s.forEach(i=>{T.push(`@topdatasec/report/${r}/${o[i]}/${i}.css`)}),T}function p(t){return{type:"component",resolve:e=>{if(e in o)return{name:e,from:"@topdatasec/report",sideEffects:n(e,t)}}}}exports.VueAmazingUIResolver=p;
|
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
|