@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,43 @@
1
+ import { ZYOption } from '../../../../interface';
2
+
3
+ type SelectOption = ZYOption<string | number | Record<string, any>>;
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ modelValue: {
6
+ required: true;
7
+ type: import('vue').PropType<SelectOption["value"] | SelectOption["value"][]>;
8
+ };
9
+ loading: {
10
+ type: import('vue').PropType<boolean>;
11
+ default: boolean;
12
+ };
13
+ options: {
14
+ type: import('vue').PropType<SelectOption[]>;
15
+ required: true;
16
+ };
17
+ valueKey: {
18
+ type: import('vue').PropType<string>;
19
+ };
20
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ select: (...args: any[]) => void;
22
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ modelValue: {
24
+ required: true;
25
+ type: import('vue').PropType<SelectOption["value"] | SelectOption["value"][]>;
26
+ };
27
+ loading: {
28
+ type: import('vue').PropType<boolean>;
29
+ default: boolean;
30
+ };
31
+ options: {
32
+ type: import('vue').PropType<SelectOption[]>;
33
+ required: true;
34
+ };
35
+ valueKey: {
36
+ type: import('vue').PropType<string>;
37
+ };
38
+ }>> & Readonly<{
39
+ onSelect?: ((...args: any[]) => any) | undefined;
40
+ }>, {
41
+ loading: boolean;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
43
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as Index } from './Index.vue';
2
+
3
+ export default Index;
@@ -0,0 +1,76 @@
1
+ import { ZYCondition, ZYOperatorType, ZYDataType } from '../../../interface';
2
+
3
+ type ConditionModel = Pick<ZYCondition, 'operator' | 'value'> & {
4
+ field?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ modelValue: {
8
+ required: true;
9
+ type: import('vue').PropType<ConditionModel>;
10
+ };
11
+ label: {
12
+ type: import('vue').PropType<string>;
13
+ required: true;
14
+ };
15
+ dataType: {
16
+ type: import('vue').PropType<ZYDataType>;
17
+ required: true;
18
+ default: ZYDataType;
19
+ };
20
+ valueFormatter: {
21
+ type: import('vue').PropType<any>;
22
+ };
23
+ labelPosition: {
24
+ type: import('vue').PropType<"top" | "left">;
25
+ default: string;
26
+ };
27
+ fieldOptions: {
28
+ type: import('vue').PropType<{
29
+ label: string;
30
+ value: string;
31
+ }[]>;
32
+ };
33
+ defaultOperator: {
34
+ type: import('vue').PropType<ZYOperatorType>;
35
+ required: true;
36
+ };
37
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
+ change: (...args: any[]) => void;
39
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
40
+ modelValue: {
41
+ required: true;
42
+ type: import('vue').PropType<ConditionModel>;
43
+ };
44
+ label: {
45
+ type: import('vue').PropType<string>;
46
+ required: true;
47
+ };
48
+ dataType: {
49
+ type: import('vue').PropType<ZYDataType>;
50
+ required: true;
51
+ default: ZYDataType;
52
+ };
53
+ valueFormatter: {
54
+ type: import('vue').PropType<any>;
55
+ };
56
+ labelPosition: {
57
+ type: import('vue').PropType<"top" | "left">;
58
+ default: string;
59
+ };
60
+ fieldOptions: {
61
+ type: import('vue').PropType<{
62
+ label: string;
63
+ value: string;
64
+ }[]>;
65
+ };
66
+ defaultOperator: {
67
+ type: import('vue').PropType<ZYOperatorType>;
68
+ required: true;
69
+ };
70
+ }>> & Readonly<{
71
+ onChange?: ((...args: any[]) => any) | undefined;
72
+ }>, {
73
+ dataType: ZYDataType;
74
+ labelPosition: "left" | "top";
75
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
76
+ export default _default;
@@ -0,0 +1,71 @@
1
+ import { ZYCondition, ZYOperatorType } from '../../../interface';
2
+ import { ZYSearchFormTimeType } from '../interface';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ modelValue: {
6
+ required: true;
7
+ type: import('vue').PropType<Pick<ZYCondition, "operator" | "value"> & {
8
+ field?: string;
9
+ timeType?: ZYSearchFormTimeType;
10
+ }>;
11
+ };
12
+ label: {
13
+ type: import('vue').PropType<string>;
14
+ required: true;
15
+ };
16
+ valueFormatter: {
17
+ type: import('vue').PropType<any>;
18
+ };
19
+ fieldOptions: {
20
+ type: import('vue').PropType<{
21
+ label: string;
22
+ value: string;
23
+ }[]>;
24
+ };
25
+ defaultOperator: {
26
+ type: import('vue').PropType<ZYOperatorType>;
27
+ required: true;
28
+ };
29
+ hasAll: {
30
+ type: import('vue').PropType<boolean>;
31
+ };
32
+ disabledTimeTypes: {
33
+ type: import('vue').PropType<ZYSearchFormTimeType[]>;
34
+ };
35
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
+ change: (...args: any[]) => void;
37
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
38
+ modelValue: {
39
+ required: true;
40
+ type: import('vue').PropType<Pick<ZYCondition, "operator" | "value"> & {
41
+ field?: string;
42
+ timeType?: ZYSearchFormTimeType;
43
+ }>;
44
+ };
45
+ label: {
46
+ type: import('vue').PropType<string>;
47
+ required: true;
48
+ };
49
+ valueFormatter: {
50
+ type: import('vue').PropType<any>;
51
+ };
52
+ fieldOptions: {
53
+ type: import('vue').PropType<{
54
+ label: string;
55
+ value: string;
56
+ }[]>;
57
+ };
58
+ defaultOperator: {
59
+ type: import('vue').PropType<ZYOperatorType>;
60
+ required: true;
61
+ };
62
+ hasAll: {
63
+ type: import('vue').PropType<boolean>;
64
+ };
65
+ disabledTimeTypes: {
66
+ type: import('vue').PropType<ZYSearchFormTimeType[]>;
67
+ };
68
+ }>> & Readonly<{
69
+ onChange?: ((...args: any[]) => any) | undefined;
70
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
71
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { ZYSearchFormTimeType } from '../interface';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ modelValue: import('vue').PropType<ZYSearchFormTimeType>;
5
+ hasAll: {
6
+ type: import('vue').PropType<boolean>;
7
+ };
8
+ disabledTimeTypes: {
9
+ type: import('vue').PropType<ZYSearchFormTimeType[]>;
10
+ };
11
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ change: (...args: any[]) => void;
13
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
+ modelValue: import('vue').PropType<ZYSearchFormTimeType>;
15
+ hasAll: {
16
+ type: import('vue').PropType<boolean>;
17
+ };
18
+ disabledTimeTypes: {
19
+ type: import('vue').PropType<ZYSearchFormTimeType[]>;
20
+ };
21
+ }>> & Readonly<{
22
+ onChange?: ((...args: any[]) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ZYSearchFormComponentType } from './interface';
2
+
3
+ export declare const ZY_SEARCH_FORM_COMPONENT_TYPE: Record<ZYSearchFormComponentType, any>;
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'vue';
2
+
3
+ export declare const useComputedVisibleSearchFormItem: ({ showAll, maxRowNum, }: {
4
+ showAll: boolean;
5
+ maxRowNum: number;
6
+ }) => {
7
+ lastVisibleItemIndex: Ref<number, number>;
8
+ showExpandButton: Ref<boolean, boolean>;
9
+ computedVisibleSearchFormItem: (totalItemsNum: number, searchFormWrapperRef: Ref<HTMLDivElement | null>, searchFormItemRefs: Ref<HTMLDivElement[] | null>, searchFormActionsRef: Ref<HTMLDivElement | null>) => Promise<void>;
10
+ };
@@ -0,0 +1,9 @@
1
+ import { default as ZYSearchForm } from './Index.vue';
2
+ import { default as ZYFieldPicker } from './components/FieldPicker.vue';
3
+ import { default as ZYSearchFormDrawer } from './MoreDrawer.vue';
4
+
5
+ export { ZYSearchForm, ZYFieldPicker, ZYSearchFormDrawer };
6
+ export default ZYSearchForm;
7
+ export * from './interface';
8
+ export * from './const';
9
+ export { transferSearchConfigToSearchFormConfig } from './utils';
@@ -0,0 +1,52 @@
1
+ export interface ZYSearchFormItem {
2
+ type: ZYSearchFormComponentType;
3
+ label: string;
4
+ prop: string;
5
+ valueFormatter?: (value: any) => Record<string, any>[];
6
+ [key: string]: any;
7
+ }
8
+ export interface ZYSearchFormProps {
9
+ projectId?: string | number;
10
+ eventId?: string | number;
11
+ items?: ZYSearchFormItem[];
12
+ customize?: boolean;
13
+ showAll?: boolean;
14
+ maxRowNum?: number;
15
+ foldMinRowNum?: number;
16
+ defaultFormData?: Record<string, any>;
17
+ configCode?: string;
18
+ customComponents?: Record<string, any>;
19
+ }
20
+ export interface ZYSearchFormMore {
21
+ items: ZYSearchFormItem[];
22
+ }
23
+ export interface ZYCustomSearchFormProps {
24
+ projectId?: string | number;
25
+ eventId?: string | number;
26
+ items: ZYSearchFormItem[];
27
+ activatedIndexArr?: number[];
28
+ configCode?: string;
29
+ }
30
+ export declare enum ZYSearchFormComponentType {
31
+ Checkbox = "checkbox",
32
+ Select = "select",
33
+ Condition = "condition",
34
+ Input = "input",
35
+ Radio = "radio",
36
+ TimeFieldPicker = "time-field-picker",
37
+ MultiSelect = "multi-select",
38
+ DateTimePicker = "date-time-picker"
39
+ }
40
+ export declare enum ZYSearchFormTimeType {
41
+ All = "all",
42
+ Year = "year",
43
+ Quarter = "quarter",
44
+ Month = "month",
45
+ Week = "week",
46
+ Date = "date",
47
+ YearRange = "year-range",
48
+ QuarterRange = "quarter-range",
49
+ MonthRange = "month-range",
50
+ WeekRange = "week-range",
51
+ DateRange = "date-range"
52
+ }
@@ -0,0 +1 @@
1
+ export declare function transferSearchConfigToSearchFormConfig(searchConfig: Record<string, any>[]): any[];
@@ -0,0 +1,72 @@
1
+ import { ZYFieldTreeNode, ZYFieldTreeProps } from './interface';
2
+ import { TreeNodeData } from 'element-plus/es/components/tree-v2/src/types.mjs';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ZYFieldTreeProps>, {
5
+ props: () => {
6
+ children: string;
7
+ label: string;
8
+ value: string;
9
+ };
10
+ showCheckbox: boolean;
11
+ disabledKeys: () => never[];
12
+ defaultCheckedKeys: () => string[];
13
+ defaultExpandedKeys: () => string[];
14
+ highlightCurrent: boolean;
15
+ data: () => never[];
16
+ emptyText: string;
17
+ width: number;
18
+ disabled: boolean;
19
+ }>>, {
20
+ getCheckedKeys: () => import('element-plus/es/components/tree-v2/src/types.mjs').TreeKey[] | undefined;
21
+ getCheckedNodes: (fieldOnly?: boolean) => TreeNodeData[] | undefined;
22
+ setCheckedKeys: (keys: string[]) => void | undefined;
23
+ setChecked: (key: string, checked: boolean) => void | undefined;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ select: (...args: any[]) => void;
26
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ZYFieldTreeProps>, {
27
+ props: () => {
28
+ children: string;
29
+ label: string;
30
+ value: string;
31
+ };
32
+ showCheckbox: boolean;
33
+ disabledKeys: () => never[];
34
+ defaultCheckedKeys: () => string[];
35
+ defaultExpandedKeys: () => string[];
36
+ highlightCurrent: boolean;
37
+ data: () => never[];
38
+ emptyText: string;
39
+ width: number;
40
+ disabled: boolean;
41
+ }>>> & Readonly<{
42
+ onSelect?: ((...args: any[]) => any) | undefined;
43
+ }>, {
44
+ data: ZYFieldTreeNode[];
45
+ props: import('element-plus/es/components/tree-v2/src/types.mjs').TreeOptionProps;
46
+ disabled: boolean;
47
+ emptyText: string;
48
+ width: number | string;
49
+ highlightCurrent: boolean;
50
+ showCheckbox: boolean;
51
+ defaultCheckedKeys: import('element-plus/es/components/tree-v2/src/types.mjs').TreeKey[];
52
+ defaultExpandedKeys: import('element-plus/es/components/tree-v2/src/types.mjs').TreeKey[];
53
+ disabledKeys: string[];
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
55
+ export default _default;
56
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
57
+ type __VLS_TypePropsToRuntimeProps<T> = {
58
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
59
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
60
+ } : {
61
+ type: import('vue').PropType<T[K]>;
62
+ required: true;
63
+ };
64
+ };
65
+ type __VLS_WithDefaults<P, D> = {
66
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
67
+ default: D[K];
68
+ }> : P[K];
69
+ };
70
+ type __VLS_Prettify<T> = {
71
+ [K in keyof T]: T[K];
72
+ } & {};
@@ -0,0 +1,16 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ modelValue: {
3
+ required: true;
4
+ type: import('vue').PropType<Record<string, any>[]>;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ change: (...args: any[]) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ modelValue: {
10
+ required: true;
11
+ type: import('vue').PropType<Record<string, any>[]>;
12
+ };
13
+ }>> & Readonly<{
14
+ onChange?: ((...args: any[]) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { default as ZYSortableFieldPicker } from './Index.vue';
2
+ import { default as ZYFieldTreeSelect } from './FieldTreeSelect.vue';
3
+
4
+ export { ZYSortableFieldPicker, ZYFieldTreeSelect };
5
+ export default ZYSortableFieldPicker;
6
+ export * from './interface';
@@ -0,0 +1,19 @@
1
+ import { TreeProps as TreeComponentProps } from 'element-plus/es/components/tree-v2/src/types.mjs';
2
+
3
+ export interface ZYFieldTreeNode {
4
+ domainType?: string | number;
5
+ domainName?: string;
6
+ label: string;
7
+ fieldName?: string;
8
+ value?: string;
9
+ children?: ZYFieldTreeNode[];
10
+ disabled?: boolean;
11
+ dataType?: string;
12
+ exts?: Record<string, any>;
13
+ }
14
+ export interface ZYFieldTreeProps extends Partial<TreeComponentProps> {
15
+ data?: ZYFieldTreeNode[];
16
+ width?: number | string;
17
+ disabled?: boolean;
18
+ disabledKeys?: string[];
19
+ }
@@ -0,0 +1,64 @@
1
+ import { ZYSplitterProps } from './interface';
2
+
3
+ declare function __VLS_template(): {
4
+ default?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ZYSplitterProps>, {
7
+ direction: string;
8
+ barSize: number;
9
+ showCollapseButton: string;
10
+ disabled: boolean;
11
+ }>>, {
12
+ collapse: (index: number) => void;
13
+ resize: (index: number, size: import('./interface').SplitterSize) => void;
14
+ getSizes: () => import('./interface').SplitterSize[];
15
+ getCollapsed: () => boolean[];
16
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ resize: (...args: any[]) => void;
18
+ "update:modelValue": (...args: any[]) => void;
19
+ collapse: (...args: any[]) => void;
20
+ dragstart: (...args: any[]) => void;
21
+ dragend: (...args: any[]) => void;
22
+ "update:collapsed": (...args: any[]) => void;
23
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ZYSplitterProps>, {
24
+ direction: string;
25
+ barSize: number;
26
+ showCollapseButton: string;
27
+ disabled: boolean;
28
+ }>>> & Readonly<{
29
+ onResize?: ((...args: any[]) => any) | undefined;
30
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
+ onCollapse?: ((...args: any[]) => any) | undefined;
32
+ onDragstart?: ((...args: any[]) => any) | undefined;
33
+ onDragend?: ((...args: any[]) => any) | undefined;
34
+ "onUpdate:collapsed"?: ((...args: any[]) => any) | undefined;
35
+ }>, {
36
+ disabled: boolean;
37
+ direction: import('./interface').SplitterDirection;
38
+ barSize: number;
39
+ showCollapseButton: import('./interface').CollapseButtonDisplay;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
42
+ export default _default;
43
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
+ type __VLS_TypePropsToRuntimeProps<T> = {
45
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
46
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
47
+ } : {
48
+ type: import('vue').PropType<T[K]>;
49
+ required: true;
50
+ };
51
+ };
52
+ type __VLS_WithDefaults<P, D> = {
53
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
+ default: D[K];
55
+ }> : P[K];
56
+ };
57
+ type __VLS_Prettify<T> = {
58
+ [K in keyof T]: T[K];
59
+ } & {};
60
+ type __VLS_WithTemplateSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
@@ -0,0 +1,63 @@
1
+ import { ZYSplitterPanelProps } from './interface';
2
+
3
+ declare function __VLS_template(): {
4
+ default?(_: {}): any;
5
+ "collapse-self"?(_: {
6
+ index: number;
7
+ collapsed: boolean;
8
+ }): any;
9
+ "collapse-next"?(_: {
10
+ index: number;
11
+ nextIndex: number;
12
+ collapsed: boolean;
13
+ }): any;
14
+ "bar-extra"?(_: {
15
+ index: number;
16
+ direction: import('./interface').SplitterDirection;
17
+ selfCollapsed: boolean;
18
+ nextCollapsed: boolean;
19
+ }): any;
20
+ };
21
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ZYSplitterPanelProps>, {
22
+ size: undefined;
23
+ min: number;
24
+ max: undefined;
25
+ collapsible: boolean;
26
+ resizable: boolean;
27
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ZYSplitterPanelProps>, {
28
+ size: undefined;
29
+ min: number;
30
+ max: undefined;
31
+ collapsible: boolean;
32
+ resizable: boolean;
33
+ }>>> & Readonly<{}>, {
34
+ size: import('./interface').SplitterSize;
35
+ max: import('./interface').SplitterSize;
36
+ min: import('./interface').SplitterSize;
37
+ resizable: boolean;
38
+ collapsible: boolean;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
40
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
41
+ export default _default;
42
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
+ type __VLS_TypePropsToRuntimeProps<T> = {
44
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
45
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
46
+ } : {
47
+ type: import('vue').PropType<T[K]>;
48
+ required: true;
49
+ };
50
+ };
51
+ type __VLS_WithDefaults<P, D> = {
52
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
53
+ default: D[K];
54
+ }> : P[K];
55
+ };
56
+ type __VLS_Prettify<T> = {
57
+ [K in keyof T]: T[K];
58
+ } & {};
59
+ type __VLS_WithTemplateSlots<T, S> = T & {
60
+ new (): {
61
+ $slots: S;
62
+ };
63
+ };
@@ -0,0 +1,6 @@
1
+ import { default as ZYSplitter } from './Index.vue';
2
+ import { default as ZYSplitterPanel } from './Panel.vue';
3
+
4
+ export { ZYSplitter, ZYSplitterPanel };
5
+ export default ZYSplitter;
6
+ export * from './interface';
@@ -0,0 +1,96 @@
1
+ import { ComputedRef, InjectionKey, Ref } from 'vue';
2
+
3
+ export type SplitterDirection = 'horizontal' | 'vertical';
4
+ /** number => px;以 '%' 结尾的字符串 => 百分比 */
5
+ export type SplitterSize = number | string;
6
+ export type CollapseButtonDisplay = 'hover' | 'persistent' | 'never';
7
+ export interface ZYSplitterProps {
8
+ /** 布局方向 */
9
+ direction?: SplitterDirection;
10
+ /** 分隔条厚度(px) */
11
+ barSize?: number;
12
+ /** 自定义分隔条类名 */
13
+ barClass?: string;
14
+ /** v-model:每个 panel 的尺寸,按 DOM 顺序对应 */
15
+ modelValue?: SplitterSize[];
16
+ /** v-model:collapsed:每个 panel 的折叠状态 */
17
+ collapsed?: boolean[];
18
+ /** 折叠按钮显示策略,默认 'hover' */
19
+ showCollapseButton?: CollapseButtonDisplay;
20
+ /** 是否禁用所有交互 */
21
+ disabled?: boolean;
22
+ }
23
+ export interface ZYSplitterPanelProps {
24
+ /** 初始/目标尺寸:number 为 px,'NN%' 为百分比 */
25
+ size?: SplitterSize;
26
+ /** 最小尺寸:number 为 px,'NN%' 为百分比 */
27
+ min?: SplitterSize;
28
+ /** 最大尺寸:number 为 px,'NN%' 为百分比;默认无上限 */
29
+ max?: SplitterSize;
30
+ /** 是否允许通过 API 或折叠按钮收起 */
31
+ collapsible?: boolean;
32
+ /** 是否允许通过拖拽调整尺寸 */
33
+ resizable?: boolean;
34
+ class?: string;
35
+ }
36
+ /** 注册时收集的内部 panel 配置 */
37
+ export interface SplitterPanelConfig {
38
+ /** 稳定 id,作为更新/反注册的句柄 */
39
+ id: symbol;
40
+ size: SplitterSize | undefined;
41
+ min: SplitterSize | undefined;
42
+ max: SplitterSize | undefined;
43
+ collapsible: boolean;
44
+ resizable: boolean;
45
+ }
46
+ export interface ZYSplitterResizeEvent {
47
+ /** 触发拖拽的 bar 左侧 panel 索引 */
48
+ index: number;
49
+ /** 本次拖拽实际被反向调整的邻居 panel 索引;编程式 resize 为 -1 */
50
+ rightIndex: number;
51
+ sizes: SplitterSize[];
52
+ }
53
+ export interface ZYSplitterCollapseEvent {
54
+ index: number;
55
+ collapsed: boolean[];
56
+ }
57
+ /** 事件签名(仅供参考;SFC 内部用字符串数组声明 emits) */
58
+ export interface ZYSplitterEmits {
59
+ 'update:modelValue': (value: SplitterSize[]) => void;
60
+ 'update:collapsed': (value: boolean[]) => void;
61
+ resize: (payload: ZYSplitterResizeEvent) => void;
62
+ collapse: (payload: ZYSplitterCollapseEvent) => void;
63
+ dragstart: (payload: {
64
+ index: number;
65
+ }) => void;
66
+ dragend: (payload: {
67
+ index: number;
68
+ }) => void;
69
+ }
70
+ export interface ZYSplitterExposed {
71
+ /** 切换第 i 个 panel 的折叠状态 */
72
+ collapse: (index: number) => void;
73
+ /** 编程式设置第 i 个 panel 的尺寸(px 或 '%');拖拽进行中会被忽略 */
74
+ resize: (index: number, size: SplitterSize) => void;
75
+ /** 获取当前所有 panel 的尺寸快照(按各自声明的单位返回) */
76
+ getSizes: () => SplitterSize[];
77
+ /** 获取当前所有 panel 的折叠状态快照 */
78
+ getCollapsed: () => boolean[];
79
+ }
80
+ /** ZYSplitter 与 ZYSplitterPanel 之间的 provide/inject 契约 */
81
+ export interface SplitterContext {
82
+ panels: Ref<SplitterPanelConfig[]>;
83
+ collapsed: Ref<boolean[]>;
84
+ draggingIndex: Ref<number>;
85
+ isDragging: Ref<boolean>;
86
+ direction: ComputedRef<SplitterDirection>;
87
+ barSize: ComputedRef<number>;
88
+ barClass: ComputedRef<string | undefined>;
89
+ showCollapseButton: ComputedRef<CollapseButtonDisplay>;
90
+ registerPanel: (config: Omit<SplitterPanelConfig, 'id'>) => symbol;
91
+ unregisterPanel: (id: symbol) => void;
92
+ updatePanel: (id: symbol, patch: Partial<Omit<SplitterPanelConfig, 'id'>>) => void;
93
+ onBarPointerDown: (e: PointerEvent, leftIndex: number) => void;
94
+ collapse: (index: number) => void;
95
+ }
96
+ export declare const splitterInjectionKey: InjectionKey<SplitterContext>;
@@ -0,0 +1,10 @@
1
+ import { SplitterContext } from './interface';
2
+
3
+ /**
4
+ * 嵌套 splitter 时 Vue inject 会因 slot 父链错位命中外层 ctx。
5
+ * 这里维护 DOM → ctx 的映射,Panel 在 onMounted 时沿 DOM 向上查最近 splitter,
6
+ * 严格按 DOM 层次定位 ctx。
7
+ */
8
+ export declare const splitterRegistry: WeakMap<HTMLElement, SplitterContext>;
9
+ /** 沿 DOM 向上找最近的 .zy-splitter 元素并返回其 ctx */
10
+ export declare function findNearestSplitterCtx(el: HTMLElement | null | undefined): SplitterContext | null;