@ecan-bi/indicator-library 0.0.1

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.
Files changed (34) hide show
  1. package/README.md +16 -0
  2. package/dist/index.es.js +3131 -0
  3. package/dist/index.umd.js +58 -0
  4. package/dist/style.css +2 -0
  5. package/package.json +72 -0
  6. package/types/components.d.ts +1 -0
  7. package/types/env.d.ts +7 -0
  8. package/types/index.d.ts +6 -0
  9. package/types/indicator/data-config/DataConfig.vue.d.ts +9 -0
  10. package/types/indicator/data-config/data-config-group/DataConfigGroup.vue.d.ts +7 -0
  11. package/types/indicator/data-config/data-config-group/data-config-card/CustomGroupModal.vue.d.ts +56 -0
  12. package/types/indicator/data-config/data-config-group/data-config-card/CustomSortModal.vue.d.ts +38 -0
  13. package/types/indicator/data-config/data-config-group/data-config-card/DataConfigCard.vue.d.ts +78 -0
  14. package/types/indicator/data-config/data-config-group/data-config-card/calculation-modal/CalculationModal.vue.d.ts +63 -0
  15. package/types/indicator/data-config/data-config-group/data-config-card/calculation-modal/FormulaCalculation.vue.d.ts +23 -0
  16. package/types/indicator/data-config/data-config-group/data-config-card/calculation-modal/index.d.ts +2 -0
  17. package/types/indicator/data-config/data-config-group/data-config-card/filter-modal/Condition.vue.d.ts +68 -0
  18. package/types/indicator/data-config/data-config-group/data-config-card/filter-modal/ConditionList.vue.d.ts +32 -0
  19. package/types/indicator/data-config/data-config-group/data-config-card/filter-modal/FilterModal.vue.d.ts +41 -0
  20. package/types/indicator/data-config/data-config-group/data-config-card/filter-modal/constant.d.ts +1 -0
  21. package/types/indicator/data-config/data-config-group/data-config-card/filter-modal/index.d.ts +2 -0
  22. package/types/indicator/data-config/data-config-group/data-config-card/index.d.ts +2 -0
  23. package/types/indicator/data-config/data-config-group/data.d.ts +20 -0
  24. package/types/indicator/data-config/data-config-group/index.d.ts +2 -0
  25. package/types/indicator/data-config/index.d.ts +2 -0
  26. package/types/indicator/data-list/DataList.vue.d.ts +4 -0
  27. package/types/indicator/data-list/DataSourceList.vue.d.ts +20 -0
  28. package/types/indicator/data-list/DataViewList.vue.d.ts +30 -0
  29. package/types/indicator/data-list/index.d.ts +2 -0
  30. package/types/indicator/index.d.ts +1 -0
  31. package/types/indicator/indicator-library/IndicatorLibrary.vue.d.ts +10 -0
  32. package/types/indicator/indicator-library/index.d.ts +10 -0
  33. package/types/utils/constant.d.ts +12 -0
  34. package/types/utils/withInstall.d.ts +5 -0
@@ -0,0 +1,68 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ data: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ level: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ index: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ type: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ }, {
19
+ fieldOptions: import("vue").ComputedRef<{
20
+ key: string;
21
+ }[]>;
22
+ ruleOptions: import("vue").ComputedRef<{
23
+ label: string;
24
+ value: string;
25
+ }[]>;
26
+ onFieldChange: (_value: string, option: {
27
+ [key: string]: any;
28
+ }) => void;
29
+ condition: import("vue").Ref<{
30
+ fieldName: undefined | string;
31
+ fieldType: undefined | string;
32
+ rule: undefined | string;
33
+ id: undefined | string;
34
+ fieldValue: undefined | string;
35
+ label: string;
36
+ targetSource: string;
37
+ }>;
38
+ valueOptions: import("vue").Ref<{
39
+ [key: string]: any;
40
+ }[]>;
41
+ onRuleChange: (value: string) => void;
42
+ onFieldValueSelectChange: (values: string[]) => void;
43
+ fieldValues: import("vue").Ref<string[]>;
44
+ onDelete: () => void;
45
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
+ data: {
47
+ type: ObjectConstructor;
48
+ default: () => {};
49
+ };
50
+ level: {
51
+ type: NumberConstructor;
52
+ default: number;
53
+ };
54
+ index: {
55
+ type: NumberConstructor;
56
+ default: number;
57
+ };
58
+ type: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ }>>, {
63
+ type: string;
64
+ data: Record<string, any>;
65
+ index: number;
66
+ level: number;
67
+ }, {}>;
68
+ export default _sfc_main;
@@ -0,0 +1,32 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ list: {
3
+ type: ArrayConstructor;
4
+ default: () => any[];
5
+ };
6
+ level: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ type: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ list: {
16
+ type: ArrayConstructor;
17
+ default: () => any[];
18
+ };
19
+ level: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ type: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ }>>, {
28
+ type: string;
29
+ level: number;
30
+ list: unknown[];
31
+ }, {}>;
32
+ export default _sfc_main;
@@ -0,0 +1,41 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ item: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ index: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ type: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }, {
15
+ visible: import("vue").Ref<boolean>;
16
+ onOk: () => void;
17
+ onCancel: () => void;
18
+ handleTitle: () => string;
19
+ conditionList: import("vue").Ref<{
20
+ [key: string]: any;
21
+ }[]>;
22
+ addCondition: (join?: '||' | '&&') => void;
23
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
+ item: {
25
+ type: ObjectConstructor;
26
+ default: () => {};
27
+ };
28
+ index: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ type: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ }>>, {
37
+ type: string;
38
+ item: Record<string, any>;
39
+ index: number;
40
+ }, {}>;
41
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ export declare const CHANGE_CONDITION = "CHANGE_CONDITION";
@@ -0,0 +1,2 @@
1
+ import FilterModal from './FilterModal.vue';
2
+ export default FilterModal;
@@ -0,0 +1,2 @@
1
+ import DataConfigCard from './DataConfigCard.vue';
2
+ export default DataConfigCard;
@@ -0,0 +1,20 @@
1
+ export declare const cardTypeMap: {
2
+ classificationList: {
3
+ title: string;
4
+ };
5
+ seriesList: {
6
+ title: string;
7
+ };
8
+ leftAxisList: {
9
+ title: string;
10
+ };
11
+ rightAxisList: {
12
+ title: string;
13
+ };
14
+ indicators: {
15
+ title: string;
16
+ };
17
+ queryColumnList: {
18
+ title: string;
19
+ };
20
+ };
@@ -0,0 +1,2 @@
1
+ import DataConfigGroup from './DataConfigGroup.vue';
2
+ export default DataConfigGroup;
@@ -0,0 +1,2 @@
1
+ import DataConfig from './DataConfig.vue';
2
+ export default DataConfig;
@@ -0,0 +1,4 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ source: unknown;
3
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
4
+ export default _sfc_main;
@@ -0,0 +1,20 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ dataSourceList: import("vue").Ref<{
3
+ [key: string]: any;
4
+ }[]>;
5
+ pagination: {
6
+ pageSize: number;
7
+ currentPage: number;
8
+ totalResult: number;
9
+ };
10
+ onDragstart: (event: DragEvent, dataView: {
11
+ [key: string]: any;
12
+ }) => void;
13
+ onToggleGroup: (index: number) => void;
14
+ mapScope: (scope: 'DIM' | 'IDX') => string;
15
+ onSearch: () => void;
16
+ onChange: import("lodash").DebouncedFunc<() => void>;
17
+ onPaginationChange: (page: number, pageSize: number) => void;
18
+ searchText: import("vue").Ref<string>;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
20
+ export default _sfc_main;
@@ -0,0 +1,30 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ dataViewId: import("vue").ComputedRef<any>;
3
+ handleLoadData: (treeNode?: any, isFirst?: boolean) => Promise<void>;
4
+ treeSelectData: import("vue").Ref<({
5
+ [x: string]: any;
6
+ disabled?: boolean;
7
+ checkable?: boolean;
8
+ disableCheckbox?: boolean;
9
+ children?: any[];
10
+ } | {
11
+ [x: string]: any;
12
+ value?: import("ant-design-vue/lib/vc-tree-select/TreeSelect").RawValueType;
13
+ title?: any;
14
+ label?: any;
15
+ key?: import("ant-design-vue/lib/vc-tree-select/interface").Key;
16
+ children?: any[];
17
+ disabled?: boolean;
18
+ checkable?: boolean;
19
+ disableCheckbox?: boolean;
20
+ })[]>;
21
+ dataViewList: import("vue").Ref<{
22
+ [key: string]: any;
23
+ }[]>;
24
+ onDataViewIdChange: (dataViewId: string) => void;
25
+ mapGenericType: (genericType: 'TEXT' | 'NUMBER' | 'DATE') => string;
26
+ onDragstart: (event: DragEvent, dataView: {
27
+ [key: string]: any;
28
+ }) => void;
29
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
30
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ import DataList from './DataList.vue';
2
+ export default DataList;
@@ -0,0 +1 @@
1
+ export * from './indicator-library';
@@ -0,0 +1,10 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ source: StringConstructor;
3
+ indicatorToken: StringConstructor;
4
+ selectedComponent: ObjectConstructor;
5
+ }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6
+ source: StringConstructor;
7
+ indicatorToken: StringConstructor;
8
+ selectedComponent: ObjectConstructor;
9
+ }>>, {}, {}>;
10
+ export default _sfc_main;
@@ -0,0 +1,10 @@
1
+ export declare const EcanIndicatorLibrary: import('../../utils/withInstall').SFCWithInstall<import("vue").DefineComponent<{
2
+ source: StringConstructor;
3
+ indicatorToken: StringConstructor;
4
+ selectedComponent: ObjectConstructor;
5
+ }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6
+ source: StringConstructor;
7
+ indicatorToken: StringConstructor;
8
+ selectedComponent: ObjectConstructor;
9
+ }>>, {}, {}>> & Record<string, any>;
10
+ export default EcanIndicatorLibrary;
@@ -0,0 +1,12 @@
1
+ export declare const REQUEST = "$request";
2
+ export declare const INDICATOR_URL = "/u-api";
3
+ export declare const INDICATOR_TOKEN = "INDICATOR_TOKEN";
4
+ export declare const CONTAINER_TYPES: string[];
5
+ export declare const CACHE_STEP = "CACHE_STEP";
6
+ export declare const UPDATE_SNAPSHOT_LIST = "UPDATE_SNAPSHOT_LIST";
7
+ export declare const REQUEST_MODEL = "REQUEST_MODEL";
8
+ export declare const DATA_LIST = "DATA_LIST";
9
+ export declare const SELECTED_COMPONENT = "SELECTED_COMPONENT";
10
+ export declare const GRAPHIC_CONFIG = "GRAPHIC_CONFIG";
11
+ export declare const UPDATE_GRAPHIC_CONFIG = "UPDATE_GRAPHIC_CONFIG";
12
+ export declare const SOURCE_TYPE = "SOURCE_TYPE";
@@ -0,0 +1,5 @@
1
+ import { Plugin } from 'vue';
2
+ export declare type SFCWithInstall<T> = T & Plugin;
3
+ export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
4
+ export declare const withInstallFunction: <T>(fn: T, name: string) => SFCWithInstall<T>;
5
+ export declare const withNoopInstall: <T>(component: T) => SFCWithInstall<T>;