@ecan-bi/indicator-library 0.2.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/editor.worker-02df2e61.js +6 -0
- package/dist/assets/editor.worker-02df2e61.js.map +1 -0
- package/dist/assets/json.worker-867823a6.js +37 -0
- package/dist/assets/json.worker-867823a6.js.map +1 -0
- package/dist/assets/ts.worker-7254b425.js +35322 -0
- package/dist/assets/ts.worker-7254b425.js.map +1 -0
- package/dist/index.es.js +6796 -1550
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +9 -5
- package/dist/index.umd.js.map +1 -0
- package/dist/style.css +2 -2
- package/package.json +4 -2
- package/types/directives/focus.d.ts +4 -0
- package/types/env.d.ts +5 -3
- package/types/hooks/useIndicatorData.d.ts +4 -0
- package/types/hooks/useTransformChartDataByAttrKey.d.ts +25 -0
- package/types/hooks/useTransformChartDataByAttrValue.d.ts +23 -0
- package/types/hooks/useValueFormatter.d.ts +2 -0
- package/types/hooks/useVariablesInText.d.ts +12 -0
- package/types/indicator/chart-graph/ChartGraph.vue.d.ts +26 -0
- package/types/indicator/chart-graph/index.d.ts +26 -0
- package/types/indicator/chart-graph/transformProps.d.ts +1 -0
- package/types/indicator/editor/Editor.vue.d.ts +75 -0
- package/types/indicator/editor/index.d.ts +2 -0
- package/types/indicator/index.d.ts +1 -0
- package/types/indicator/indicator-library/IndicatorLibrary.vue.d.ts +38 -7
- package/types/indicator/{data-config → indicator-library/data-config}/DataConfig.vue.d.ts +2 -0
- package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data-config-card/DataConfigCard.vue.d.ts +1 -1
- package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data-config-card/calculation-modal/FormulaCalculation.vue.d.ts +2 -2
- package/types/indicator/indicator-library/data-config/style-config-group/StyleConfigGroup.vue.d.ts +16 -0
- package/types/indicator/indicator-library/data-config/style-config-group/chart-props/bar/index.d.ts +1 -0
- package/types/indicator/indicator-library/data-config/style-config-group/chart-props/bar/props.d.ts +67 -0
- package/types/indicator/indicator-library/data-config/style-config-group/chart-props/combo-graph/index.d.ts +1 -0
- package/types/indicator/indicator-library/data-config/style-config-group/chart-props/combo-graph/props.d.ts +64 -0
- package/types/indicator/indicator-library/data-config/style-config-group/chart-props/custom-graph/index.d.ts +1 -0
- package/types/indicator/indicator-library/data-config/style-config-group/chart-props/custom-graph/props.d.ts +11 -0
- package/types/indicator/indicator-library/data-config/style-config-group/chart-props/index.d.ts +61 -0
- package/types/indicator/indicator-library/data-config/style-config-group/chart-props/line/index.d.ts +1 -0
- package/types/indicator/indicator-library/data-config/style-config-group/chart-props/line/props.d.ts +110 -0
- package/types/indicator/indicator-library/data-config/style-config-group/chart-props/pie/index.d.ts +1 -0
- package/types/indicator/indicator-library/data-config/style-config-group/chart-props/pie/props.d.ts +52 -0
- package/types/indicator/indicator-library/data-config/style-config-group/data.d.ts +20 -0
- package/types/indicator/indicator-library/data-config/style-config-group/index.d.ts +2 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/PropsToForm.vue.d.ts +27 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/color-group-pick/ColorGroupPick.vue.d.ts +21 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/color-group-pick/index.d.ts +2 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/color-pick/ColorPick.vue.d.ts +17 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/color-pick/index.d.ts +2 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/data.d.ts +28 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/form-group/FormGroup.vue.d.ts +58 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/form-group/index.d.ts +2 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/index.d.ts +2 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/input/Input.vue.d.ts +27 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/input/index.d.ts +2 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/input-number/InputNumber.vue.d.ts +107 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/input-number/index.d.ts +2 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/radio-group/RadioGroup.vue.d.ts +45 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/radio-group/index.d.ts +2 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/select/Select.vue.d.ts +28 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/select/index.d.ts +2 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/switch/Switch.vue.d.ts +34 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/switch/index.d.ts +2 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/textarea/Textarea.vue.d.ts +27 -0
- package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/textarea/index.d.ts +2 -0
- package/types/indicator/{data-list → indicator-library/data-list}/DataSourceList.vue.d.ts +1 -0
- package/types/indicator/{data-list → indicator-library/data-list}/DataViewList.vue.d.ts +8 -6
- package/types/indicator/indicator-library/index.d.ts +38 -7
- package/types/utils/constant.d.ts +6 -0
- package/types/utils/runCode.d.ts +4 -0
- package/types/utils/util.d.ts +8 -0
- package/types/indicator/data-config/data-config-group/data-config-card/filter-modal/constant.d.ts +0 -1
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/DataConfigGroup.vue.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data-config-card/CustomGroupModal.vue.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data-config-card/CustomSortModal.vue.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data-config-card/calculation-modal/CalculationModal.vue.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data-config-card/calculation-modal/index.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data-config-card/filter-modal/Condition.vue.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data-config-card/filter-modal/ConditionList.vue.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data-config-card/filter-modal/FilterModal.vue.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data-config-card/filter-modal/index.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data-config-card/index.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/data.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/data-config-group/index.d.ts +0 -0
- /package/types/indicator/{data-config → indicator-library/data-config}/index.d.ts +0 -0
- /package/types/indicator/{data-list → indicator-library/data-list}/DataList.vue.d.ts +0 -0
- /package/types/indicator/{data-list → indicator-library/data-list}/index.d.ts +0 -0
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @ecan-bi/indicator-library@0.
|
|
2
|
-
.data-view-list[data-v-
|
|
1
|
+
/*! @ecan-bi/indicator-library@1.0.0 */
|
|
2
|
+
.data-view-list[data-v-50c82fab]{display:flex;flex-direction:column;height:100%}.data-view-list .tree-spin[data-v-50c82fab]{height:auto}.columns[data-v-50c82fab]{height:100%;overflow:auto;flex:1;padding-top:10px}.column-item[data-v-50c82fab]{display:flow-root;margin:3px 0;padding:2px 0}.column-item[data-v-50c82fab]:hover{background:#eee}.column-item-name[data-v-50c82fab]{margin-left:5px}.data-source-list[data-v-6d86fd0b]{display:flex;flex-direction:column;height:100%}.columns[data-v-6d86fd0b]{height:100%;overflow:auto;flex:1;padding-top:10px}.column-item[data-v-6d86fd0b]{display:flow-root;margin:3px 0;padding:2px 0}.column-child-item[data-v-6d86fd0b]{padding:3px 10px}.button-wrapper[data-v-1decfaae]{width:100%;display:flex;justify-content:flex-end;margin-bottom:10px}.custom-sort-list[data-v-1decfaae]{width:100%;overflow:auto;height:70vh;list-style:none;padding-bottom:60px}.sort-item[data-v-1decfaae]{border:1px dashed #aaa;margin-bottom:5px;padding:5px;font-size:14px}.move-and-create[data-v-6542b334]{display:flex;justify-content:space-between;margin-bottom:15px}.create-group[data-v-6542b334]{display:flex;align-items:center;font-size:15px}.create-group-name[data-v-6542b334]{width:140px;margin-left:10px}.custom-group-content[data-v-6542b334]{overflow-y:auto}.tag[data-v-6542b334]{margin-right:10px}.edit-title-input[data-v-6542b334]{width:150px}.extra[data-v-6542b334]{width:90px;display:flex;justify-content:flex-start;align-items:center}.custom-group[data-v-6542b334]{margin:5px;padding:3px 5px}.text[data-v-6542b334]{font-size:14px}.select-tip[data-v-6542b334]{margin-right:10px;font-size:15px}.select-count[data-v-6542b334]{color:red;margin:0 3px}.select-group[data-v-6542b334]{margin-right:15px;width:140px}.cancel-button[data-v-6542b334]{margin-right:20px}.footer[data-v-6542b334]{display:flex}.custom-group-content .ant-collapse>.ant-collapse-item>.ant-collapse-header{padding:12px 0}.condition[data-v-818d8aee]{padding:8px;border:1px solid #e8e8e8;width:100%;display:flex;align-items:center}.field-name[data-v-818d8aee]{width:180px;margin-right:20px}.field-value[data-v-818d8aee]{flex:1;margin-left:20px;margin-right:20px}.rule[data-v-818d8aee]{width:180px}.delete-icon[data-v-818d8aee]{margin-right:10px}.condition-text[data-v-f7a50b70]{min-width:50px;max-width:50px;border:1px solid #e8e8e8;display:flex;align-items:center;justify-content:center}.condition-container[data-v-f7a50b70]{display:flex;width:100%}.conditions[data-v-f7a50b70]{display:flex;flex-direction:column;flex:1}.header[data-v-5c50cfca]{display:flex;justify-content:flex-end;margin-bottom:30px}.add-and-condition[data-v-5c50cfca]{width:100px;margin-right:15px}.add-or-condition[data-v-5c50cfca]{width:100px}.formula-calculation[data-v-1afece6d]{border:1px solid #ccc;width:100%}[theme=dark] .formula-calculation[data-v-1afece6d]{border:1px solid #333}.field-area[data-v-1afece6d]{height:100%;padding-left:20px;padding-top:20px;background:#eff1f4}[theme=dark] .field-area[data-v-1afece6d]{background:#333}.field[data-v-1afece6d]{margin-top:10px;padding-left:15px;font-weight:500}.textarea[data-v-1afece6d]{height:100%}.data-config-card[data-v-a1d9b4d6]{display:flex;flex-direction:column;height:280px}.card-item[data-v-a1d9b4d6]{background-color:#a1d4e64d;width:100%;height:100%;padding:5px;margin:3px 0}.title[data-v-a1d9b4d6]{display:flex;justify-content:space-between}.add-calculation[data-v-a1d9b4d6]{cursor:pointer;font-size:13px;color:#3f8ce8;line-height:24px}.add-calculation-icon[data-v-a1d9b4d6]{color:#3f8ce8;margin-right:3px}.ant-checkbox+span[data-v-a1d9b4d6]{width:100%!important}.card-item-inner[data-v-a1d9b4d6]{width:100%;display:flex;justify-content:space-between;align-items:center}.name[data-v-a1d9b4d6]{width:100%}.placeholder[data-v-a1d9b4d6]{color:red}.setting-icon[data-v-a1d9b4d6]{color:#545;margin-left:5px}.delete-icon[data-v-a1d9b4d6]{color:red;margin-left:5px}.calculation-icon[data-v-a1d9b4d6]{font-weight:700;font-style:italic}.menu-item[data-v-a1d9b4d6]{white-space:nowrap}.data-config-card .ant-card-body{overflow-y:auto}.card-item .ant-checkbox+span{width:100%}.data-group[data-v-fb11a953]{display:flex}.data-config-card[data-v-fb11a953]{width:25%}.data-config-card[data-v-fb11a953]:not(:last-child){margin-right:15px}.data-group .ant-card-body{padding:10px}.color-pick[data-v-e2113f43]{display:flex}.input[data-v-e2113f43]{margin-right:10px}.color-group-pick[data-v-b2be8322]{padding:10px}.form-group[data-v-065bc984]{position:relative;display:flex;width:100%}.form[data-v-065bc984]{flex:1;overflow-x:hidden}.form[data-v-065bc984]:hover{overflow:overlay}.form-row[data-v-065bc984]{display:flex;align-items:center}.form-row[data-v-065bc984]:not(:last-child){margin-bottom:15px}.form-item[data-v-065bc984]{display:flex;align-items:center;width:100%;margin-bottom:10px}.label[data-v-065bc984]{width:max-content;padding-right:5px}.value[data-v-065bc984]{flex:1;margin-right:10px}.icon[data-v-065bc984]{color:#000000a6}.add[data-v-065bc984]{position:absolute;top:-30px;right:0;font-size:20px}.icon-group[data-v-065bc984]{display:flex;flex-direction:column}.delete[data-v-065bc984]{width:30px;display:flex;justify-content:flex-end;align-items:center;font-size:18px}.icon-item[data-v-065bc984]{display:flex;width:30px;height:40px;justify-content:center;align-items:center}.icon-item[data-v-065bc984]:not(:last-child){margin-bottom:15px}.add-children-icon[data-v-065bc984]{font-size:18px;margin-right:10px}.fixed[data-v-065bc984]{font-size:18px}.use-font-size[data-v-065bc984]{display:flex;align-items:center}.use-color[data-v-065bc984]{margin:5px}.prop-item[data-v-96f057cc]{display:flex;align-items:center;padding:5px 5px 10px}.label[data-v-96f057cc]{width:28%;display:flex;justify-content:center}.label-vertical[data-v-96f057cc]{justify-content:flex-start;padding-bottom:4px}.component-wrapper[data-v-96f057cc]{width:72%}.component[data-v-96f057cc]{width:100%}.layout[data-v-96f057cc]{align-items:flex-start;flex-direction:column;padding:10px 5px 10px 10px}.layout .label[data-v-96f057cc]{text-align:left;margin-bottom:5px}.layout .component-wrapper[data-v-96f057cc]{width:100%}.editor[data-v-132e78f8]{width:100%;height:100%}[data-v-132e78f8] .overlayWidgets .find-widget{min-width:220px!important}.style-group[data-v-65134009]{width:70%}.style-group .option-editor[data-v-65134009]{min-height:500px;max-height:500px;border:1px solid #e9e9e9}.attribute-config .ant-collapse-content>.ant-collapse-content-box>editor{padding:16px 10px}.ecan-chart-graph[data-v-eccbe2c9],.ecan-chart-graph .chart-spin[data-v-eccbe2c9],.ecan-chart-graph .chart-spin[data-v-eccbe2c9] .ant-spin-container{width:100%;height:100%}.data-config[data-v-b64f96ee]{background:#fff;height:100%;width:100%;padding:0 15px;overflow-y:auto;color:#444}.data-config[data-v-b64f96ee] .ant-tabs{height:calc(100% - 310px)}.data-config[data-v-b64f96ee] .ant-tabs .ant-tabs-content-holder{height:calc(100% - 50px);overflow:auto}.chart-component[data-v-b64f96ee]{width:100%!important;position:relative!important;margin:20px auto 0}.prop-item[data-v-b64f96ee]{display:flex;align-items:center;padding:5px 5px 10px}.label[data-v-b64f96ee]{width:135px;display:flex;justify-content:center}.component-wrapper[data-v-b64f96ee]{width:calc(100% - 135px)}.color-pick[data-v-b64f96ee]{display:flex}.input[data-v-b64f96ee]{margin-right:10px}.config-modal[data-v-4b916f2f]{width:100%;height:100%;display:flex;padding:10px}.config-modal-left[data-v-4b916f2f]{width:300px;height:100%;margin-right:10px;padding:10px}.config-modal-right[data-v-4b916f2f]{flex:1}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecan-bi/indicator-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"main": "dist/index.umd.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -32,9 +32,11 @@
|
|
|
32
32
|
"ant-design-vue": "3.1.1",
|
|
33
33
|
"axios": "0.24.0",
|
|
34
34
|
"lodash-es": "4.17.21",
|
|
35
|
+
"monaco-editor": "^0.31.1",
|
|
35
36
|
"nanoid": "3.1.30",
|
|
36
37
|
"nrm": "^1.2.6",
|
|
37
|
-
"vue": "^3.3.8"
|
|
38
|
+
"vue": "^3.3.8",
|
|
39
|
+
"vue-pick-colors": "^1.3.4"
|
|
38
40
|
},
|
|
39
41
|
"devDependencies": {
|
|
40
42
|
"@types/lodash-es": "4.17.5",
|
package/types/env.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
2
3
|
declare module '*.vue' {
|
|
3
|
-
import
|
|
4
|
-
const component:
|
|
4
|
+
import { defineComponent } from 'vue'
|
|
5
|
+
const component: ReturnType<typeof defineComponent>
|
|
5
6
|
export default component
|
|
6
7
|
}
|
|
8
|
+
|
|
7
9
|
declare module '*.png'
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface DataItem {
|
|
2
|
+
name: string | number;
|
|
3
|
+
value: string | number;
|
|
4
|
+
type?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare type Data = DataItem[];
|
|
7
|
+
export interface KeyTypeDataFieldNames {
|
|
8
|
+
name: string;
|
|
9
|
+
types: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 图形转化数据
|
|
16
|
+
* @param data 数据
|
|
17
|
+
* @param dataFieldNames 字段映射
|
|
18
|
+
*/
|
|
19
|
+
export declare const useTransformChartDataByAttrKey: (data: Data, dataFieldNames: KeyTypeDataFieldNames) => {
|
|
20
|
+
dimensions: unknown[];
|
|
21
|
+
dataset: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
export default useTransformChartDataByAttrKey;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface DataItem {
|
|
2
|
+
name: string | number;
|
|
3
|
+
value: string | number;
|
|
4
|
+
type?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare type Data = DataItem[];
|
|
7
|
+
export interface ValueTypeDataFieldNames {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
type: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 图形转化数据
|
|
14
|
+
* @param data 数据
|
|
15
|
+
* @param dataFieldNames 字段映射
|
|
16
|
+
*/
|
|
17
|
+
export declare const useTransformChartDataByAttrValue: (data: Data, dataFieldNames?: ValueTypeDataFieldNames) => {
|
|
18
|
+
dimensions: unknown[];
|
|
19
|
+
dataset: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
export default useTransformChartDataByAttrValue;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useVariablesInText: (formatter?: string, { textData, codeData }?: {
|
|
2
|
+
textData?: {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
};
|
|
5
|
+
codeData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
}, { useNewline, useSpace }?: {
|
|
9
|
+
useNewline?: boolean;
|
|
10
|
+
useSpace?: boolean;
|
|
11
|
+
}) => string;
|
|
12
|
+
export default useVariablesInText;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
graphicConfig: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => void;
|
|
5
|
+
};
|
|
6
|
+
chartsOptions: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => void;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
echartRef: import("vue").Ref<HTMLElement>;
|
|
12
|
+
loading: import("vue").Ref<boolean>;
|
|
13
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
graphicConfig: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: () => void;
|
|
17
|
+
};
|
|
18
|
+
chartsOptions: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default: () => void;
|
|
21
|
+
};
|
|
22
|
+
}>>, {
|
|
23
|
+
graphicConfig: Record<string, any>;
|
|
24
|
+
chartsOptions: Record<string, any>;
|
|
25
|
+
}, {}>;
|
|
26
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const EcanChartGraph: import('../../utils/withInstall').SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
graphicConfig: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => void;
|
|
5
|
+
};
|
|
6
|
+
chartsOptions: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => void;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
echartRef: import("vue").Ref<HTMLElement>;
|
|
12
|
+
loading: import("vue").Ref<boolean>;
|
|
13
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
graphicConfig: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: () => void;
|
|
17
|
+
};
|
|
18
|
+
chartsOptions: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default: () => void;
|
|
21
|
+
};
|
|
22
|
+
}>>, {
|
|
23
|
+
graphicConfig: Record<string, any>;
|
|
24
|
+
chartsOptions: Record<string, any>;
|
|
25
|
+
}, {}>> & Record<string, any>;
|
|
26
|
+
export default EcanChartGraph;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTransformProps: (chartsOptions: any, chartData: any, fontSize: any) => {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare type LanguageType = 'json' | 'typescript';
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
valueData: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
options: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
language: {
|
|
13
|
+
type: PropType<LanguageType>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
isUseMinimap: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
UseSuggestions: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
autoFormat: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
readonly: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
dom: import("vue").Ref<any>;
|
|
34
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:valueData")[], "change" | "update:valueData", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
valueData: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
options: {
|
|
40
|
+
type: ObjectConstructor;
|
|
41
|
+
default: () => {};
|
|
42
|
+
};
|
|
43
|
+
language: {
|
|
44
|
+
type: PropType<LanguageType>;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
isUseMinimap: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
UseSuggestions: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
autoFormat: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
readonly: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
}>> & {
|
|
64
|
+
onChange?: (...args: any[]) => any;
|
|
65
|
+
"onUpdate:valueData"?: (...args: any[]) => any;
|
|
66
|
+
}, {
|
|
67
|
+
valueData: string;
|
|
68
|
+
options: Record<string, any>;
|
|
69
|
+
language: LanguageType;
|
|
70
|
+
isUseMinimap: boolean;
|
|
71
|
+
UseSuggestions: boolean;
|
|
72
|
+
autoFormat: boolean;
|
|
73
|
+
readonly: boolean;
|
|
74
|
+
}, {}>;
|
|
75
|
+
export default _sfc_main;
|
|
@@ -1,10 +1,41 @@
|
|
|
1
1
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
isShowStyleConfig: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
sourceType: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
indicatorToken: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
selectedComponent: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: () => void;
|
|
17
|
+
};
|
|
5
18
|
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
19
|
+
isShowStyleConfig: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
sourceType: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
indicatorToken: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
selectedComponent: {
|
|
32
|
+
type: ObjectConstructor;
|
|
33
|
+
default: () => void;
|
|
34
|
+
};
|
|
35
|
+
}>>, {
|
|
36
|
+
indicatorToken: string;
|
|
37
|
+
isShowStyleConfig: boolean;
|
|
38
|
+
sourceType: string;
|
|
39
|
+
selectedComponent: Record<string, any>;
|
|
40
|
+
}, {}>;
|
|
10
41
|
export default _sfc_main;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
isShowStyleConfig: unknown;
|
|
2
3
|
activeKey: import("vue").Ref<string>;
|
|
4
|
+
activePanel: import("vue").Ref<number[]>;
|
|
3
5
|
componentRef: import("vue").Ref<any>;
|
|
4
6
|
type: import("vue").ComputedRef<any>;
|
|
5
7
|
component: import("vue").ComputedRef<{
|
|
@@ -8,7 +8,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
}, {
|
|
11
|
-
onCheckboxChange: (event:
|
|
11
|
+
onCheckboxChange: (event: any, index: number) => void;
|
|
12
12
|
onDrop: (event: DragEvent) => void;
|
|
13
13
|
onDropStart: (event: DragEvent, cardItem: {
|
|
14
14
|
[key: string]: any;
|
|
@@ -9,14 +9,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
9
9
|
}[]>;
|
|
10
10
|
myValue: import("vue").WritableComputedRef<string>;
|
|
11
11
|
insertText: (text: string) => void;
|
|
12
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
12
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
13
|
value: {
|
|
14
14
|
type: StringConstructor;
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
17
|
}>> & {
|
|
18
|
-
"onUpdate:value"?: (...args: any[]) => any;
|
|
19
18
|
onChange?: (...args: any[]) => any;
|
|
19
|
+
"onUpdate:value"?: (...args: any[]) => any;
|
|
20
20
|
}, {
|
|
21
21
|
value: string;
|
|
22
22
|
}, {}>;
|
package/types/indicator/indicator-library/data-config/style-config-group/StyleConfigGroup.vue.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DetailPropsGroups, DetailPropsGroup } from './data';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
3
|
+
type: import("vue").ComputedRef<any>;
|
|
4
|
+
handleChangeType: (val: string) => void;
|
|
5
|
+
activePanel: import("vue").Ref<number[]>;
|
|
6
|
+
ComponentString: import("vue").ComputedRef<string>;
|
|
7
|
+
updateComponentOptions: (code: string) => void;
|
|
8
|
+
optionCode: import("vue").Ref<string>;
|
|
9
|
+
onEditorChange: (code: string) => void;
|
|
10
|
+
onSwitchClick: (checked: boolean | string | number, event: Event) => void;
|
|
11
|
+
onSwitchChange: (value: boolean, key: string | undefined) => void;
|
|
12
|
+
detailPropsGroups: import("vue").ComputedRef<DetailPropsGroups>;
|
|
13
|
+
isRenderForm: (detailPropsGroup: DetailPropsGroup, componentType: string) => boolean;
|
|
14
|
+
isShowOptionEditor: import("vue").ComputedRef<boolean>;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
16
|
+
export default _sfc_main;
|
package/types/indicator/indicator-library/data-config/style-config-group/chart-props/bar/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './props';
|
package/types/indicator/indicator-library/data-config/style-config-group/chart-props/bar/props.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export interface BarProps {
|
|
2
|
+
name: String;
|
|
3
|
+
type: String;
|
|
4
|
+
width: string;
|
|
5
|
+
height: string;
|
|
6
|
+
titleText: string;
|
|
7
|
+
titleSubtext: string;
|
|
8
|
+
colors: string[];
|
|
9
|
+
legendShow: boolean;
|
|
10
|
+
legendTextStyleColor: string;
|
|
11
|
+
legendLeft: 'left' | 'center' | 'right';
|
|
12
|
+
legendTop: 'top' | 'middle' | 'bottom';
|
|
13
|
+
legendOrient: 'vertical' | 'horizontal';
|
|
14
|
+
xAxisLabelInterval: number;
|
|
15
|
+
xAxisSplitLineShow: boolean;
|
|
16
|
+
xAxisLabelColor: string;
|
|
17
|
+
xAxisLabelWidth: number | undefined;
|
|
18
|
+
xAxisLabelOverflow: 'none' | 'truncate' | 'break' | 'breakAll';
|
|
19
|
+
xAxisLabelRotate: number;
|
|
20
|
+
xAxisLineStyleColor: string;
|
|
21
|
+
xAxisTickShow: boolean;
|
|
22
|
+
xAxisLabelFormatter: string;
|
|
23
|
+
xAxisSplitLineStyleColor: string;
|
|
24
|
+
xAxisInverse: boolean;
|
|
25
|
+
xAxisMinInterval: number;
|
|
26
|
+
yAxisMinInterval: number;
|
|
27
|
+
yAxisInverse: boolean;
|
|
28
|
+
yAxisLabelWidth: number | undefined;
|
|
29
|
+
yAxisLabelOverflow: 'none' | 'truncate' | 'break' | 'breakAll';
|
|
30
|
+
yAxisLabelRotate: number;
|
|
31
|
+
yAxisSplitLineShow: boolean;
|
|
32
|
+
yAxisSplitLineStyleColor: string;
|
|
33
|
+
yAxisLabelColor: string;
|
|
34
|
+
yAxisLineStyleColor: string;
|
|
35
|
+
yAxisLabelFormatter: string;
|
|
36
|
+
yAxisLineAlwaysDisplay: boolean;
|
|
37
|
+
tooltipShow: boolean;
|
|
38
|
+
tooltipTextStyleColor: string;
|
|
39
|
+
tooltipFormatter: string;
|
|
40
|
+
gridContainLabel: boolean;
|
|
41
|
+
gridTop: string;
|
|
42
|
+
gridBottom: string;
|
|
43
|
+
gridLeft: string;
|
|
44
|
+
gridRight: string;
|
|
45
|
+
barWidth: string;
|
|
46
|
+
toolboxShow: boolean;
|
|
47
|
+
toolboxLocation: boolean;
|
|
48
|
+
toolboxDownloadShow: boolean;
|
|
49
|
+
toolboxDataZoomShow: boolean;
|
|
50
|
+
toolboxInfoShow: boolean;
|
|
51
|
+
toolboxOrient: 'horizontal' | 'vertical';
|
|
52
|
+
toolboxItemSize: number;
|
|
53
|
+
toolboxItemGap: number;
|
|
54
|
+
toolboxLeft: 'left' | 'center' | 'right';
|
|
55
|
+
toolboxTop: 'top' | 'middle' | 'bottom';
|
|
56
|
+
toolboxIconStyleBorderColor: string;
|
|
57
|
+
toolboxDownloadUrl: string;
|
|
58
|
+
toolboxInfoText: string;
|
|
59
|
+
isUseHorizontalAxis: boolean;
|
|
60
|
+
axisInverse: boolean;
|
|
61
|
+
isStack: boolean;
|
|
62
|
+
labelShow: boolean;
|
|
63
|
+
labelFontSize: string;
|
|
64
|
+
labelPosition: 'inside' | 'top' | 'bottom' | 'right' | 'left';
|
|
65
|
+
labelColor: string;
|
|
66
|
+
}
|
|
67
|
+
export declare const barProps: BarProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './props';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export interface ComboGraphProps {
|
|
2
|
+
name: String;
|
|
3
|
+
type: String;
|
|
4
|
+
width: string;
|
|
5
|
+
height: string;
|
|
6
|
+
colors: string[];
|
|
7
|
+
titleText: string;
|
|
8
|
+
titleSubtext: string;
|
|
9
|
+
legendShow: boolean;
|
|
10
|
+
legendTextStyleColor: string;
|
|
11
|
+
legendLeft: 'left' | 'center' | 'right';
|
|
12
|
+
legendTop: 'top' | 'middle' | 'bottom';
|
|
13
|
+
legendOrient: 'vertical' | 'horizontal';
|
|
14
|
+
xAxisLabelInterval: number;
|
|
15
|
+
xAxisSplitLineShow: boolean;
|
|
16
|
+
xAxisMinInterval: number;
|
|
17
|
+
xAxisLabelColor: string;
|
|
18
|
+
xAxisLabelRotate: number;
|
|
19
|
+
xAxisLabelOverflow: string;
|
|
20
|
+
xAxisLabelWidth: number | undefined;
|
|
21
|
+
xAxisLineStyleColor: string;
|
|
22
|
+
xAxisTickShow: boolean;
|
|
23
|
+
yAxisSplitLineShow: boolean;
|
|
24
|
+
xAxisSplitLineStyleColor: string;
|
|
25
|
+
yAxisSplitLineStyleColor: string;
|
|
26
|
+
yAxisLabelColor: string;
|
|
27
|
+
yAxisLineStyleColor: string;
|
|
28
|
+
yAxisLineAlwaysDisplay: boolean;
|
|
29
|
+
tooltipShow: boolean;
|
|
30
|
+
tooltipTrigger: 'item' | 'axis' | 'none';
|
|
31
|
+
tooltipTextStyleColor: string;
|
|
32
|
+
tooltipFormatter: string;
|
|
33
|
+
seriesTypes: {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}[];
|
|
36
|
+
yAxis: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}[];
|
|
39
|
+
yAxisMinInterval: number;
|
|
40
|
+
gridContainLabel: boolean;
|
|
41
|
+
gridTop: string;
|
|
42
|
+
gridBottom: string;
|
|
43
|
+
gridLeft: string;
|
|
44
|
+
gridRight: string;
|
|
45
|
+
toolboxShow: boolean;
|
|
46
|
+
toolboxLocation: boolean;
|
|
47
|
+
toolboxDownloadShow: boolean;
|
|
48
|
+
toolboxDataZoomShow: boolean;
|
|
49
|
+
toolboxInfoShow: boolean;
|
|
50
|
+
toolboxOrient: 'horizontal' | 'vertical';
|
|
51
|
+
toolboxItemSize: number;
|
|
52
|
+
toolboxItemGap: number;
|
|
53
|
+
toolboxLeft: 'left' | 'center' | 'right';
|
|
54
|
+
toolboxTop: 'top' | 'middle' | 'bottom';
|
|
55
|
+
toolboxIconStyleBorderColor: string;
|
|
56
|
+
toolboxDownloadUrl: string;
|
|
57
|
+
toolboxInfoText: string;
|
|
58
|
+
symbolSize: number;
|
|
59
|
+
lineStyleWidth: number;
|
|
60
|
+
smooth: boolean;
|
|
61
|
+
areaStyleOpacity: number;
|
|
62
|
+
barWidth: string;
|
|
63
|
+
}
|
|
64
|
+
export declare const comboGraphProps: ComboGraphProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './props';
|
package/types/indicator/indicator-library/data-config/style-config-group/chart-props/index.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
bar: import("./bar").BarProps;
|
|
3
|
+
line: {
|
|
4
|
+
name: string;
|
|
5
|
+
type: string;
|
|
6
|
+
width: string;
|
|
7
|
+
height: string;
|
|
8
|
+
legendShow: boolean;
|
|
9
|
+
legendOrient: string;
|
|
10
|
+
legendTop: string;
|
|
11
|
+
legendLeft: string;
|
|
12
|
+
titleText: string;
|
|
13
|
+
titleSubtext: string;
|
|
14
|
+
colors: string[];
|
|
15
|
+
symbolSize: number;
|
|
16
|
+
lineStyleWidth: number;
|
|
17
|
+
smooth: boolean;
|
|
18
|
+
xAxisLabelWidth: any;
|
|
19
|
+
xAxisLabelRotate: number;
|
|
20
|
+
xAxisLabelOverflow: string;
|
|
21
|
+
xAxisLabelInterval: number;
|
|
22
|
+
xAxisSplitLineShow: boolean;
|
|
23
|
+
xAxisSplitLineStyleColor: string;
|
|
24
|
+
xAxisLabelColor: string;
|
|
25
|
+
xAxisLineStyleColor: string;
|
|
26
|
+
xAxisTickShow: boolean;
|
|
27
|
+
xAxisLabelFormatter: string;
|
|
28
|
+
xAxisMinInterval: number;
|
|
29
|
+
yAxisMinInterval: number;
|
|
30
|
+
yAxisSplitLineShow: boolean;
|
|
31
|
+
yAxisSplitLineStyleColor: string;
|
|
32
|
+
yAxisLabelColor: string;
|
|
33
|
+
yAxisLineStyleColor: string;
|
|
34
|
+
yAxisLineAlwaysDisplay: boolean;
|
|
35
|
+
yAxisLabelFormatter: string;
|
|
36
|
+
gridContainLabel: boolean;
|
|
37
|
+
gridTop: string;
|
|
38
|
+
gridBottom: string;
|
|
39
|
+
gridLeft: string;
|
|
40
|
+
gridRight: string;
|
|
41
|
+
tooltipShow: boolean;
|
|
42
|
+
tooltipFormatter: string;
|
|
43
|
+
toolboxShow: boolean;
|
|
44
|
+
toolboxDownloadShow: boolean;
|
|
45
|
+
toolboxDataZoomShow: boolean;
|
|
46
|
+
toolboxInfoShow: boolean;
|
|
47
|
+
toolboxOrient: string;
|
|
48
|
+
toolboxItemSize: number;
|
|
49
|
+
toolboxItemGap: number;
|
|
50
|
+
toolboxLeft: string;
|
|
51
|
+
toolboxTop: string;
|
|
52
|
+
toolboxIconStyleBorderColor: string;
|
|
53
|
+
toolboxDownloadUrl: string;
|
|
54
|
+
toolboxInfoText: string;
|
|
55
|
+
areaStyleOpacity: number;
|
|
56
|
+
};
|
|
57
|
+
pie: import("./pie").PieProps;
|
|
58
|
+
customGraph: import("./custom-graph").CustomGraphProps;
|
|
59
|
+
comboGraph: import("./combo-graph").ComboGraphProps;
|
|
60
|
+
};
|
|
61
|
+
export default _default;
|
package/types/indicator/indicator-library/data-config/style-config-group/chart-props/line/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './props';
|