@zy-frontend/business 1.1.6 → 1.1.7

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 (120) hide show
  1. package/dist/components/AdvancedSearch/Index.vue.d.ts +52 -0
  2. package/dist/components/AdvancedSearch/components/Actions.vue.d.ts +47 -0
  3. package/dist/components/AdvancedSearch/components/Autocomplete.vue.d.ts +52 -0
  4. package/dist/components/AdvancedSearch/components/Condition.vue.d.ts +35 -0
  5. package/dist/components/AdvancedSearch/components/ConditionGroup.vue.d.ts +65 -0
  6. package/dist/components/AdvancedSearch/components/FieldPicker.vue.d.ts +6 -0
  7. package/dist/components/AdvancedSearch/components/FieldTreePicker.vue.d.ts +14 -0
  8. package/dist/components/AdvancedSearch/components/HistoryList.vue.d.ts +8 -0
  9. package/dist/components/AdvancedSearch/components/LogicalOperatorSelect.vue.d.ts +12 -0
  10. package/dist/components/AdvancedSearch/components/OperatorSelect.vue.d.ts +18 -0
  11. package/dist/components/AdvancedSearch/components/StatWaySelect.vue.d.ts +8 -0
  12. package/dist/components/AdvancedSearch/const.d.ts +1 -0
  13. package/dist/components/AdvancedSearch/index.d.ts +5 -0
  14. package/dist/components/AdvancedSearch/interface.d.ts +48 -0
  15. package/dist/components/AdvancedSearch/utils.d.ts +34 -0
  16. package/dist/components/AnchorTabs/AnchorTabItem.vue.d.ts +22 -0
  17. package/dist/components/AnchorTabs/AnchorTabs.vue.d.ts +51 -0
  18. package/dist/components/AnchorTabs/index.d.ts +4 -0
  19. package/dist/components/AnchorTabs/interface.d.ts +12 -0
  20. package/dist/components/AnchorTabs/utils.d.ts +6 -0
  21. package/dist/components/ChartList/Chart.vue.d.ts +128 -0
  22. package/dist/components/ChartList/ChartList.vue.d.ts +143 -0
  23. package/dist/components/ChartList/ChartViewDialog.vue.d.ts +25 -0
  24. package/dist/components/ChartList/TableViewDialog.vue.d.ts +4 -0
  25. package/dist/components/ChartList/index.d.ts +7 -0
  26. package/dist/components/ChartList/interface.d.ts +22 -0
  27. package/dist/components/ColumnCustomizableTable/ColumnCustomizeDrawer.vue.d.ts +29 -0
  28. package/dist/components/ColumnCustomizableTable/ColumnCustomizeExportDrawer.vue.d.ts +25 -0
  29. package/dist/components/ColumnCustomizableTable/Index.vue.d.ts +132 -0
  30. package/dist/components/ColumnCustomizableTable/InputPopConfirm.vue.d.ts +66 -0
  31. package/dist/components/ColumnCustomizableTable/TemplateTagList.vue.d.ts +14 -0
  32. package/dist/components/ColumnCustomizableTable/hooks.d.ts +26 -0
  33. package/dist/components/ColumnCustomizableTable/index.d.ts +9 -0
  34. package/dist/components/ColumnCustomizableTable/interface.d.ts +37 -0
  35. package/dist/components/ColumnCustomizableTable/utils.d.ts +16 -0
  36. package/dist/components/GlobalProvider/global-provider.d.ts +47 -0
  37. package/dist/components/GlobalProvider/index.d.ts +43 -0
  38. package/dist/components/IconButton/IconButton.vue.d.ts +43 -0
  39. package/dist/components/IconButton/index.d.ts +4 -0
  40. package/dist/components/Layout/Container.vue.d.ts +29 -0
  41. package/dist/components/Layout/Layout.vue.d.ts +24 -0
  42. package/dist/components/Layout/LayoutItem.vue.d.ts +24 -0
  43. package/dist/components/Layout/index.d.ts +7 -0
  44. package/dist/components/Layout/interface.d.ts +6 -0
  45. package/dist/components/OverflowTooltip/OverflowTooltip.vue.d.ts +33 -0
  46. package/dist/components/OverflowTooltip/index.d.ts +4 -0
  47. package/dist/components/ScoreDialog/AsaScore.vue.d.ts +35 -0
  48. package/dist/components/ScoreDialog/CommonScore.vue.d.ts +38 -0
  49. package/dist/components/ScoreDialog/IssAisScore.vue.d.ts +29 -0
  50. package/dist/components/ScoreDialog/QuestionnaireScore.vue.d.ts +38 -0
  51. package/dist/components/ScoreDialog/index.d.ts +5 -0
  52. package/dist/components/ScoreDialog/index.vue.d.ts +25 -0
  53. package/dist/components/ScoreDialog/interface.d.ts +35 -0
  54. package/dist/components/ScoreDialog/useScoreData.d.ts +10 -0
  55. package/dist/components/ScoreDialog/utils.d.ts +1 -0
  56. package/dist/components/ScoreTable/gcsScore.vue.d.ts +25 -0
  57. package/dist/components/ScoreTable/index.d.ts +6 -0
  58. package/dist/components/ScoreTable/index.vue.d.ts +13 -0
  59. package/dist/components/ScoreTable/interface.d.ts +83 -0
  60. package/dist/components/ScoreTable/issAisScore.vue.d.ts +30 -0
  61. package/dist/components/ScoreTable/rtsScore.vue.d.ts +19 -0
  62. package/dist/components/ScoreTable/useScoreData.d.ts +11 -0
  63. package/dist/components/SearchForm/Index.vue.d.ts +111 -0
  64. package/dist/components/SearchForm/MoreDrawer.vue.d.ts +38 -0
  65. package/dist/components/SearchForm/components/Checkbox.vue.d.ts +36 -0
  66. package/dist/components/SearchForm/components/CustomSearchFormDialog.vue.d.ts +19 -0
  67. package/dist/components/SearchForm/components/DateTimePicker.vue.d.ts +82 -0
  68. package/dist/components/SearchForm/components/FieldPicker.vue.d.ts +34 -0
  69. package/dist/components/SearchForm/components/Input.vue.d.ts +80 -0
  70. package/dist/components/SearchForm/components/OperatorSelect.vue.d.ts +18 -0
  71. package/dist/components/SearchForm/components/Radio.vue.d.ts +53 -0
  72. package/dist/components/SearchForm/components/Select/Index.vue.d.ts +118 -0
  73. package/dist/components/SearchForm/components/Select/Select.vue.d.ts +53 -0
  74. package/dist/components/SearchForm/components/Select/TiledOptions.vue.d.ts +43 -0
  75. package/dist/components/SearchForm/components/Select/index.d.ts +3 -0
  76. package/dist/components/SearchForm/components/SingleCondition.vue.d.ts +76 -0
  77. package/dist/components/SearchForm/components/TimeFieldPicker.vue.d.ts +71 -0
  78. package/dist/components/SearchForm/components/TimeTypeSelect.vue.d.ts +24 -0
  79. package/dist/components/SearchForm/const.d.ts +3 -0
  80. package/dist/components/SearchForm/hooks.d.ts +10 -0
  81. package/dist/components/SearchForm/index.d.ts +9 -0
  82. package/dist/components/SearchForm/interface.d.ts +52 -0
  83. package/dist/components/SearchForm/utils.d.ts +1 -0
  84. package/dist/components/SortableFieldPicker/FieldTreeSelect.vue.d.ts +72 -0
  85. package/dist/components/SortableFieldPicker/Index.vue.d.ts +16 -0
  86. package/dist/components/SortableFieldPicker/index.d.ts +6 -0
  87. package/dist/components/SortableFieldPicker/interface.d.ts +19 -0
  88. package/dist/components/Splitter/Index.vue.d.ts +64 -0
  89. package/dist/components/Splitter/Panel.vue.d.ts +63 -0
  90. package/dist/components/Splitter/index.d.ts +6 -0
  91. package/dist/components/Splitter/interface.d.ts +96 -0
  92. package/dist/components/Splitter/registry.d.ts +10 -0
  93. package/dist/components/Table/Column.vue.d.ts +22 -0
  94. package/dist/components/Table/ColumnAction.vue.d.ts +19 -0
  95. package/dist/components/Table/ColumnRenderer.d.ts +24 -0
  96. package/dist/components/Table/Index.vue.d.ts +33 -0
  97. package/dist/components/Table/SimpleTable.vue.d.ts +54 -0
  98. package/dist/components/Table/index.d.ts +13 -0
  99. package/dist/components/Table/interface.d.ts +107 -0
  100. package/dist/components/Table/utils.d.ts +6 -0
  101. package/dist/components/index.d.ts +14 -0
  102. package/dist/const.d.ts +32 -0
  103. package/dist/hooks/use-async-queue.d.ts +6 -0
  104. package/dist/hooks/use-element-size.d.ts +14 -0
  105. package/dist/hooks/use-global-config.d.ts +39 -0
  106. package/dist/hooks/use-global-storage.d.ts +32 -0
  107. package/dist/hooks/use-resize.d.ts +38 -0
  108. package/dist/index.d.ts +3 -0
  109. package/dist/index.es.js +85 -81
  110. package/dist/interface.d.ts +61 -0
  111. package/dist/main.d.ts +1 -0
  112. package/dist/service/diagram.d.ts +14 -0
  113. package/dist/service/download.d.ts +10 -0
  114. package/dist/service/index.d.ts +53 -0
  115. package/dist/service/score.d.ts +9 -0
  116. package/dist/stores/index.d.ts +1 -0
  117. package/dist/utils/index.d.ts +13 -0
  118. package/dist/utils/lazy-load.d.ts +6 -0
  119. package/package.json +3 -2
  120. package/dist/index.es.d.ts +0 -2119
@@ -0,0 +1,143 @@
1
+ import { ZYChartToolType, ZYChartListConfig } from './interface';
2
+
3
+ declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: any) => any>> & {
4
+ chartHeader?(_: {
5
+ title: string | undefined;
6
+ subTitle: string;
7
+ statCode: any;
8
+ option: Record<string, any> | undefined;
9
+ }): any;
10
+ chartFooter?(_: {
11
+ option: Record<string, any> | undefined;
12
+ }): any;
13
+ };
14
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
15
+ modelValue: import('vue').PropType<any>;
16
+ height: {
17
+ type: import('vue').PropType<string>;
18
+ default: string;
19
+ };
20
+ downloadOptions: {
21
+ type: import('vue').PropType<{
22
+ backgroundColor?: string;
23
+ excludeComponents?: string[];
24
+ extraTitle?: string;
25
+ }>;
26
+ };
27
+ requestParams: {
28
+ type: import('vue').PropType<Record<string, any>>;
29
+ default: () => {};
30
+ };
31
+ clickable: {
32
+ type: import('vue').PropType<boolean>;
33
+ default: boolean;
34
+ };
35
+ chartListConfig: {
36
+ type: import('vue').PropType<ZYChartListConfig>;
37
+ required: true;
38
+ };
39
+ toolbar: {
40
+ type: import('vue').PropType<ZYChartToolType[]>;
41
+ };
42
+ hoverShowToolbar: {
43
+ type: import('vue').PropType<boolean>;
44
+ };
45
+ showEmpty: {
46
+ type: import('vue').PropType<boolean>;
47
+ };
48
+ defaultActivatedCode: {
49
+ type: import('vue').PropType<string>;
50
+ };
51
+ chartClass: {
52
+ type: import('vue').PropType<string>;
53
+ };
54
+ showChartHeader: {
55
+ type: import('vue').PropType<boolean>;
56
+ default: boolean;
57
+ };
58
+ theme: {
59
+ type: import('vue').PropType<"light" | "dark" | {
60
+ name: string;
61
+ options: Record<string, any>;
62
+ }>;
63
+ default: string;
64
+ };
65
+ }>, {
66
+ refresh: (slotKey?: string, extraParams?: Record<string, any>) => void;
67
+ getChartConfig: (statCode: string) => {} | undefined;
68
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
69
+ click: (...args: any[]) => void;
70
+ mounted: (...args: any[]) => void;
71
+ "chart-click": (...args: any[]) => void;
72
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
73
+ modelValue: import('vue').PropType<any>;
74
+ height: {
75
+ type: import('vue').PropType<string>;
76
+ default: string;
77
+ };
78
+ downloadOptions: {
79
+ type: import('vue').PropType<{
80
+ backgroundColor?: string;
81
+ excludeComponents?: string[];
82
+ extraTitle?: string;
83
+ }>;
84
+ };
85
+ requestParams: {
86
+ type: import('vue').PropType<Record<string, any>>;
87
+ default: () => {};
88
+ };
89
+ clickable: {
90
+ type: import('vue').PropType<boolean>;
91
+ default: boolean;
92
+ };
93
+ chartListConfig: {
94
+ type: import('vue').PropType<ZYChartListConfig>;
95
+ required: true;
96
+ };
97
+ toolbar: {
98
+ type: import('vue').PropType<ZYChartToolType[]>;
99
+ };
100
+ hoverShowToolbar: {
101
+ type: import('vue').PropType<boolean>;
102
+ };
103
+ showEmpty: {
104
+ type: import('vue').PropType<boolean>;
105
+ };
106
+ defaultActivatedCode: {
107
+ type: import('vue').PropType<string>;
108
+ };
109
+ chartClass: {
110
+ type: import('vue').PropType<string>;
111
+ };
112
+ showChartHeader: {
113
+ type: import('vue').PropType<boolean>;
114
+ default: boolean;
115
+ };
116
+ theme: {
117
+ type: import('vue').PropType<"light" | "dark" | {
118
+ name: string;
119
+ options: Record<string, any>;
120
+ }>;
121
+ default: string;
122
+ };
123
+ }>> & Readonly<{
124
+ onClick?: ((...args: any[]) => any) | undefined;
125
+ onMounted?: ((...args: any[]) => any) | undefined;
126
+ "onChart-click"?: ((...args: any[]) => any) | undefined;
127
+ }>, {
128
+ height: string;
129
+ requestParams: Record<string, any>;
130
+ clickable: boolean;
131
+ showChartHeader: boolean;
132
+ theme: "light" | "dark" | {
133
+ name: string;
134
+ options: Record<string, any>;
135
+ };
136
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
137
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
138
+ export default _default;
139
+ type __VLS_WithTemplateSlots<T, S> = T & {
140
+ new (): {
141
+ $slots: S;
142
+ };
143
+ };
@@ -0,0 +1,25 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ downloadOptions: {
3
+ backgroundColor?: string;
4
+ excludeComponents?: string[];
5
+ extraTitle?: string;
6
+ };
7
+ }>>, {
8
+ start: (chartName?: string, options?: {}) => Promise<void>;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
10
+ downloadOptions: {
11
+ backgroundColor?: string;
12
+ excludeComponents?: string[];
13
+ extraTitle?: string;
14
+ };
15
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
@@ -0,0 +1,4 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ start: (chartName?: string, config?: {}, data?: never[]) => Promise<void>;
3
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { default as ZYChartList } from './ChartList.vue';
2
+ import { default as ZYChart } from './Chart.vue';
3
+
4
+ export declare const ZYCHARTLIST_MOCK = "#ZYCHARTLIST_MOCK#";
5
+ export { ZYChartList, ZYChart };
6
+ export default ZYChartList;
7
+ export * from './interface';
@@ -0,0 +1,22 @@
1
+ import { ZYLayoutConfig } from '../Layout';
2
+
3
+ export declare enum ZYChartToolType {
4
+ VIEW = "view",
5
+ DOWNLOAD = "download",
6
+ SHOW_TABLE = "showTable"
7
+ }
8
+ export interface ZYChartConfig {
9
+ statCode: string;
10
+ charts?: ZYChartConfig[];
11
+ title?: string;
12
+ options?: Record<string, any>;
13
+ requestParams?: Record<string, any>;
14
+ clickable?: boolean;
15
+ chartClickable?: boolean;
16
+ props?: Record<string, any>;
17
+ [key: string]: any;
18
+ }
19
+ export interface ZYChartListConfig {
20
+ charts: ZYChartConfig[];
21
+ layout: ZYLayoutConfig;
22
+ }
@@ -0,0 +1,29 @@
1
+ import { ZYColumnCustomizeField } from './interface';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ configCode?: string;
5
+ defaultColumnWidth?: number;
6
+ dateTimeFormat?: string;
7
+ }>>, {
8
+ start: (data: ZYColumnCustomizeField[]) => void;
9
+ isColumnSortable: (key: string) => boolean;
10
+ updateCustomColumnWidth: (data: ZYColumnCustomizeField[]) => Promise<void>;
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ change: (...args: any[]) => void;
13
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
14
+ configCode?: string;
15
+ defaultColumnWidth?: number;
16
+ dateTimeFormat?: string;
17
+ }>>> & Readonly<{
18
+ onChange?: ((...args: any[]) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
@@ -0,0 +1,25 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ exportFn: (params: any) => Promise<any>;
3
+ }>, {}>>, {
4
+ start: () => void;
5
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ exportFn: (params: any) => Promise<any>;
7
+ }>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
18
+ type __VLS_WithDefaults<P, D> = {
19
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
20
+ default: D[K];
21
+ }> : P[K];
22
+ };
23
+ type __VLS_Prettify<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
@@ -0,0 +1,132 @@
1
+ import { ZYTableConfig, ZYTableSort } from '../Table';
2
+
3
+ declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: any) => any>>;
4
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ modelValue: import('vue').PropType<Record<string, any>[]>;
6
+ isLoading: import('vue').PropType<boolean>;
7
+ selections: import('vue').PropType<Record<string, any>[]>;
8
+ projectId: {
9
+ type: import('vue').PropType<string | number>;
10
+ };
11
+ eventId: {
12
+ type: import('vue').PropType<string | number>;
13
+ };
14
+ dateFormat: {
15
+ type: import('vue').PropType<string>;
16
+ default: string;
17
+ };
18
+ getDataImmediately: {
19
+ type: import('vue').PropType<boolean>;
20
+ default: boolean;
21
+ };
22
+ requestFn: {
23
+ type: import('vue').PropType<(params: Record<string, any>, isSearch?: boolean, sort?: ZYTableSort) => import('../Table').ZYTableDataResponse<{
24
+ [x: string]: any;
25
+ }> | Promise<import('../Table').ZYTableDataResponse<{
26
+ [x: string]: any;
27
+ }>>>;
28
+ };
29
+ tableConfig: {
30
+ type: import('vue').PropType<ZYTableConfig<{
31
+ [x: string]: any;
32
+ }>>;
33
+ required: true;
34
+ };
35
+ dataStructureCode: {
36
+ type: import('vue').PropType<string>;
37
+ };
38
+ configCode: {
39
+ type: import('vue').PropType<string>;
40
+ };
41
+ defaultColumnWidth: {
42
+ type: import('vue').PropType<number>;
43
+ };
44
+ dateTimeFormat: {
45
+ type: import('vue').PropType<string>;
46
+ default: string;
47
+ };
48
+ exportFn: {
49
+ type: import('vue').PropType<(params: any) => Promise<any>>;
50
+ };
51
+ tableColumnsFilter: {
52
+ type: import('vue').PropType<(columns: ZYTableConfig["columns"]) => ZYTableConfig["columns"]>;
53
+ default: (columns: ZYTableConfig["columns"]) => import('../Table').ZYTableColumn<{
54
+ [x: string]: any;
55
+ }>[] | undefined;
56
+ };
57
+ }>, {
58
+ refresh: (...args: any) => Promise<void> | undefined;
59
+ customizeColumn: () => void;
60
+ customizeExport: () => Promise<void>;
61
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
62
+ refresh: (...args: any[]) => void;
63
+ export: (...args: any[]) => void;
64
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
65
+ modelValue: import('vue').PropType<Record<string, any>[]>;
66
+ isLoading: import('vue').PropType<boolean>;
67
+ selections: import('vue').PropType<Record<string, any>[]>;
68
+ projectId: {
69
+ type: import('vue').PropType<string | number>;
70
+ };
71
+ eventId: {
72
+ type: import('vue').PropType<string | number>;
73
+ };
74
+ dateFormat: {
75
+ type: import('vue').PropType<string>;
76
+ default: string;
77
+ };
78
+ getDataImmediately: {
79
+ type: import('vue').PropType<boolean>;
80
+ default: boolean;
81
+ };
82
+ requestFn: {
83
+ type: import('vue').PropType<(params: Record<string, any>, isSearch?: boolean, sort?: ZYTableSort) => import('../Table').ZYTableDataResponse<{
84
+ [x: string]: any;
85
+ }> | Promise<import('../Table').ZYTableDataResponse<{
86
+ [x: string]: any;
87
+ }>>>;
88
+ };
89
+ tableConfig: {
90
+ type: import('vue').PropType<ZYTableConfig<{
91
+ [x: string]: any;
92
+ }>>;
93
+ required: true;
94
+ };
95
+ dataStructureCode: {
96
+ type: import('vue').PropType<string>;
97
+ };
98
+ configCode: {
99
+ type: import('vue').PropType<string>;
100
+ };
101
+ defaultColumnWidth: {
102
+ type: import('vue').PropType<number>;
103
+ };
104
+ dateTimeFormat: {
105
+ type: import('vue').PropType<string>;
106
+ default: string;
107
+ };
108
+ exportFn: {
109
+ type: import('vue').PropType<(params: any) => Promise<any>>;
110
+ };
111
+ tableColumnsFilter: {
112
+ type: import('vue').PropType<(columns: ZYTableConfig["columns"]) => ZYTableConfig["columns"]>;
113
+ default: (columns: ZYTableConfig["columns"]) => import('../Table').ZYTableColumn<{
114
+ [x: string]: any;
115
+ }>[] | undefined;
116
+ };
117
+ }>> & Readonly<{
118
+ onRefresh?: ((...args: any[]) => any) | undefined;
119
+ onExport?: ((...args: any[]) => any) | undefined;
120
+ }>, {
121
+ dateFormat: string;
122
+ getDataImmediately: boolean;
123
+ dateTimeFormat: string;
124
+ tableColumnsFilter: (columns: ZYTableConfig["columns"]) => ZYTableConfig["columns"];
125
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
126
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
127
+ export default _default;
128
+ type __VLS_WithTemplateSlots<T, S> = T & {
129
+ new (): {
130
+ $slots: S;
131
+ };
132
+ };
@@ -0,0 +1,66 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ title: string;
6
+ width?: string;
7
+ placeholder?: string;
8
+ confirmBtnText?: string;
9
+ cancelBtnText?: string;
10
+ confirmBtnType?: "primary" | "default" | "text" | "success" | "warning" | "info" | "danger";
11
+ }>, {
12
+ width: string;
13
+ placeholder: string;
14
+ confirmBtnText: string;
15
+ cancelBtnText: string;
16
+ confirmBtnType: string;
17
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ confirm: (...args: any[]) => void;
19
+ cancel: (...args: any[]) => void;
20
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
21
+ title: string;
22
+ width?: string;
23
+ placeholder?: string;
24
+ confirmBtnText?: string;
25
+ cancelBtnText?: string;
26
+ confirmBtnType?: "primary" | "default" | "text" | "success" | "warning" | "info" | "danger";
27
+ }>, {
28
+ width: string;
29
+ placeholder: string;
30
+ confirmBtnText: string;
31
+ cancelBtnText: string;
32
+ confirmBtnType: string;
33
+ }>>> & Readonly<{
34
+ onConfirm?: ((...args: any[]) => any) | undefined;
35
+ onCancel?: ((...args: any[]) => any) | undefined;
36
+ }>, {
37
+ placeholder: string;
38
+ width: string;
39
+ confirmBtnText: string;
40
+ cancelBtnText: string;
41
+ confirmBtnType: "primary" | "default" | "text" | "success" | "warning" | "info" | "danger";
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
43
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
44
+ export default _default;
45
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
46
+ type __VLS_TypePropsToRuntimeProps<T> = {
47
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
48
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
49
+ } : {
50
+ type: import('vue').PropType<T[K]>;
51
+ required: true;
52
+ };
53
+ };
54
+ type __VLS_WithDefaults<P, D> = {
55
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
56
+ default: D[K];
57
+ }> : P[K];
58
+ };
59
+ type __VLS_Prettify<T> = {
60
+ [K in keyof T]: T[K];
61
+ } & {};
62
+ type __VLS_WithTemplateSlots<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };
@@ -0,0 +1,14 @@
1
+ import { ZYCustomExportTemplate } from './interface';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ modelValue: import('vue').PropType<ZYCustomExportTemplate[]>;
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ delete: (...args: any[]) => void;
7
+ apply: (...args: any[]) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ modelValue: import('vue').PropType<ZYCustomExportTemplate[]>;
10
+ }>> & Readonly<{
11
+ onDelete?: ((...args: any[]) => any) | undefined;
12
+ onApply?: ((...args: any[]) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { ShallowRef } from 'vue';
2
+ import { default as ColumnCustomizeDrawer } from './ColumnCustomizeDrawer.vue';
3
+ import { ZYColumnCustomizeField } from './interface';
4
+
5
+ export declare const useColumnWidthUpdate: (columnCustomizeDrawerRef: Readonly<ShallowRef<InstanceType<typeof ColumnCustomizeDrawer> | null>>) => {
6
+ rawColumns: import('vue').Ref<{
7
+ [x: string]: any;
8
+ domainType?: string | number | undefined;
9
+ domainName: string;
10
+ fieldName: string;
11
+ fieldLabel: string;
12
+ width?: string | number | undefined;
13
+ dataType?: string | undefined;
14
+ colors?: Record<string, string> | undefined;
15
+ }[], ZYColumnCustomizeField[] | {
16
+ [x: string]: any;
17
+ domainType?: string | number | undefined;
18
+ domainName: string;
19
+ fieldName: string;
20
+ fieldLabel: string;
21
+ width?: string | number | undefined;
22
+ dataType?: string | undefined;
23
+ colors?: Record<string, string> | undefined;
24
+ }[]>;
25
+ onColumnWidthChange: (width: number, oldWidth: number, column: any) => void;
26
+ };
@@ -0,0 +1,9 @@
1
+ import { default as ZYColumnCustomizableTable } from './Index.vue';
2
+ import { default as ZYCustomExportTemplateTagList } from './TemplateTagList.vue';
3
+ import { default as ZYColumnCustomizeDrawer } from './ColumnCustomizeDrawer.vue';
4
+ import { default as ZYColumnCustomizeExportDrawer } from './ColumnCustomizeExportDrawer.vue';
5
+
6
+ export { ZYColumnCustomizableTable, ZYCustomExportTemplateTagList, ZYColumnCustomizeDrawer, ZYColumnCustomizeExportDrawer, };
7
+ export default ZYColumnCustomizableTable;
8
+ export * from './interface';
9
+ export { transferSearchConfigToTableConfig } from './utils';
@@ -0,0 +1,37 @@
1
+ import { ZYTableConfig, ZYTableProps } from '../Table';
2
+
3
+ export interface ZYColumnCustomizeField {
4
+ domainType?: string | number;
5
+ domainName: string;
6
+ fieldName: string;
7
+ fieldLabel: string;
8
+ width?: string | number;
9
+ dataType?: string;
10
+ colors?: Record<string, string>;
11
+ [key: string]: any;
12
+ }
13
+ export interface ZYColumnCustomizableTableColumn {
14
+ prop: string;
15
+ label: string;
16
+ width?: string | number;
17
+ data: ZYColumnCustomizeField;
18
+ }
19
+ export interface ZYColumnCustomizableTableProps {
20
+ projectId?: string | number;
21
+ eventId?: string | number;
22
+ tableConfig: ZYTableConfig;
23
+ tableColumnsFilter?: (columns: ZYTableConfig['columns']) => ZYTableConfig['columns'];
24
+ requestFn?: ZYTableProps['requestFn'];
25
+ getDataImmediately?: ZYTableProps['getDataImmediately'];
26
+ exportFn?: (params: any) => Promise<any>;
27
+ dateTimeFormat?: string;
28
+ dateFormat?: string;
29
+ defaultColumnWidth?: number;
30
+ configCode?: string;
31
+ dataStructureCode?: string;
32
+ }
33
+ export interface ZYCustomExportTemplate {
34
+ id: string;
35
+ name: string;
36
+ columns: Record<string, any>[];
37
+ }
@@ -0,0 +1,16 @@
1
+ import { ZYDataType } from '../../interface';
2
+ import { ZYTableSort } from '../Table';
3
+
4
+ export declare function calculateWidthByLabelAndDataType(dataType: ZYDataType, label: string, dateFormat?: string): number;
5
+ export declare function transferSearchConfigToTableConfig(searchConfig: Record<string, any>): {
6
+ columns: {
7
+ prop: any;
8
+ label: any;
9
+ width: any;
10
+ fixed: any;
11
+ type: any;
12
+ sortable: any;
13
+ data: any;
14
+ }[];
15
+ defaultSort: ZYTableSort;
16
+ };
@@ -0,0 +1,47 @@
1
+ import { PropType } from 'vue';
2
+ import { ZYRequest } from '../../interface';
3
+
4
+ declare const GlobalProvider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ projectId: {
6
+ type: (NumberConstructor | StringConstructor)[];
7
+ default: string;
8
+ };
9
+ eventId: {
10
+ type: (NumberConstructor | StringConstructor)[];
11
+ default: string;
12
+ };
13
+ getProjectId: PropType<() => string | number>;
14
+ getEventId: PropType<() => string | number>;
15
+ getDataStructure: PropType<(args: {
16
+ projectId: number;
17
+ eventId?: number;
18
+ }) => Promise<any[]> | any[]>;
19
+ request: {
20
+ type: PropType<ZYRequest>;
21
+ };
22
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
23
+ [key: string]: any;
24
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
+ projectId: {
26
+ type: (NumberConstructor | StringConstructor)[];
27
+ default: string;
28
+ };
29
+ eventId: {
30
+ type: (NumberConstructor | StringConstructor)[];
31
+ default: string;
32
+ };
33
+ getProjectId: PropType<() => string | number>;
34
+ getEventId: PropType<() => string | number>;
35
+ getDataStructure: PropType<(args: {
36
+ projectId: number;
37
+ eventId?: number;
38
+ }) => Promise<any[]> | any[]>;
39
+ request: {
40
+ type: PropType<ZYRequest>;
41
+ };
42
+ }>> & Readonly<{}>, {
43
+ projectId: string | number;
44
+ eventId: string | number;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
46
+ export type GlobalProviderInstance = InstanceType<typeof GlobalProvider>;
47
+ export default GlobalProvider;
@@ -0,0 +1,43 @@
1
+ export declare const ZYGlobalProvider: import('../../utils').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ projectId: {
3
+ type: (NumberConstructor | StringConstructor)[];
4
+ default: string;
5
+ };
6
+ eventId: {
7
+ type: (NumberConstructor | StringConstructor)[];
8
+ default: string;
9
+ };
10
+ getProjectId: import('vue').PropType<() => string | number>;
11
+ getEventId: import('vue').PropType<() => string | number>;
12
+ getDataStructure: import('vue').PropType<(args: {
13
+ projectId: number;
14
+ eventId?: number;
15
+ }) => Promise<any[]> | any[]>;
16
+ request: {
17
+ type: import('vue').PropType<import('../..').ZYRequest>;
18
+ };
19
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
20
+ [key: string]: any;
21
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
+ projectId: {
23
+ type: (NumberConstructor | StringConstructor)[];
24
+ default: string;
25
+ };
26
+ eventId: {
27
+ type: (NumberConstructor | StringConstructor)[];
28
+ default: string;
29
+ };
30
+ getProjectId: import('vue').PropType<() => string | number>;
31
+ getEventId: import('vue').PropType<() => string | number>;
32
+ getDataStructure: import('vue').PropType<(args: {
33
+ projectId: number;
34
+ eventId?: number;
35
+ }) => Promise<any[]> | any[]>;
36
+ request: {
37
+ type: import('vue').PropType<import('../..').ZYRequest>;
38
+ };
39
+ }>> & Readonly<{}>, {
40
+ projectId: string | number;
41
+ eventId: string | number;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & Record<string, any>;
43
+ export default ZYGlobalProvider;