@hb-hellotech/hb-ui 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 (51) hide show
  1. package/README.md +1 -0
  2. package/dist/components/business-comp/list-page-comp/hb_form_item_filter_modal/index.d.ts +4 -0
  3. package/dist/components/business-comp/list-page-comp/hb_form_select_filter/index.d.ts +4 -0
  4. package/dist/components/business-comp/list-page-comp/hb_form_select_modal/index.d.ts +4 -0
  5. package/dist/components/business-comp/list-page-comp/hb_form_select_modal/src/HbMutilpleSelectModal.vue.d.ts +99 -0
  6. package/dist/components/business-comp/list-page-comp/hb_list_btns_act/index.d.ts +3 -0
  7. package/dist/components/business-comp/list-page-comp/hb_list_btns_act/src/HbListBtns.vue.d.ts +53 -0
  8. package/dist/components/business-comp/list-page-comp/hb_list_form/index.d.ts +4 -0
  9. package/dist/components/business-comp/list-page-comp/hb_list_page_act/index.d.ts +3 -0
  10. package/dist/components/business-comp/list-page-comp/hb_list_page_act/src/HbListPageAct.vue.d.ts +56 -0
  11. package/dist/components/business-comp/list-page-comp/hb_list_page_container/index.d.ts +3 -0
  12. package/dist/components/business-comp/list-page-comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts +41 -0
  13. package/dist/components/business-comp/list-page-comp/hb_list_table/index.d.ts +4 -0
  14. package/dist/components/business-comp/list-page-comp/hb_list_table_act/index.d.ts +3 -0
  15. package/dist/components/business-comp/list-page-comp/hb_list_table_colums_set/index.d.ts +3 -0
  16. package/dist/components/business-comp/list-page-comp/index.d.ts +2 -0
  17. package/dist/components/func-comp/hb_func_comp_copy/index.d.ts +4 -0
  18. package/dist/components/func-comp/hb_func_comp_copy/src/copy.vue.d.ts +83 -0
  19. package/dist/components/func-comp/hb_func_comp_copy/src/type.d.ts +37 -0
  20. package/dist/components/func-comp/hb_func_comp_drag/index.d.ts +442 -0
  21. package/dist/components/func-comp/hb_func_comp_drag/src/index.vue.d.ts +181 -0
  22. package/dist/components/func-comp/hb_func_comp_drag/src/type.d.ts +45 -0
  23. package/dist/components/func-comp/hb_func_comp_tree/index.d.ts +457 -0
  24. package/dist/components/func-comp/hb_func_comp_tree/src/tree.d.ts +58 -0
  25. package/dist/components/func-comp/hb_func_comp_tree/src/tree.vue.d.ts +186 -0
  26. package/dist/components/func-comp/hb_func_comp_tree/src/treeNode.vue.d.ts +38 -0
  27. package/dist/components/func-comp/index.d.ts +2 -0
  28. package/dist/components/hooks/useCalTableHeight.d.ts +10 -0
  29. package/dist/components/hooks/useCalTableWidth.d.ts +5 -0
  30. package/dist/components/types/hb_form_item_filter_modal_type.d.ts +37 -0
  31. package/dist/components/types/hb_form_select_filter_type.d.ts +27 -0
  32. package/dist/components/types/hb_form_select_modal_type.d.ts +33 -0
  33. package/dist/components/types/hb_list_btns_act_type.d.ts +21 -0
  34. package/dist/components/types/hb_list_form_type.d.ts +70 -0
  35. package/dist/components/types/hb_list_page_act_type.d.ts +25 -0
  36. package/dist/components/types/hb_list_page_container_type.d.ts +18 -0
  37. package/dist/components/types/hb_list_table_act_type.d.ts +23 -0
  38. package/dist/components/types/hb_list_table_colums_set_type.d.ts +7 -0
  39. package/dist/components/types/hb_list_table_type.d.ts +34 -0
  40. package/dist/components/utils/createBem.d.ts +19 -0
  41. package/dist/components/utils/withInstall.d.ts +4 -0
  42. package/dist/hb_component_lib.js +36011 -0
  43. package/dist/hb_component_lib.umd.cjs +180 -0
  44. package/dist/index.d.ts +234 -0
  45. package/dist/style.css +1 -0
  46. package/dist/vite-env.d.ts +7 -0
  47. package/hooks/useCalTableHeight.ts +199 -0
  48. package/hooks/useCalTableWidth.ts +18 -0
  49. package/hooks/useListFormItem.ts +38 -0
  50. package/hooks/useModalDrag.ts +73 -0
  51. package/package.json +59 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ 华宝云业务组件+基于 antd 二次开发的组件库
@@ -0,0 +1,4 @@
1
+ export * from '../../../../components/types/hb_form_item_filter_modal_type';
2
+ declare const HbFormItemFilterModal: any;
3
+ export default HbFormItemFilterModal;
4
+ export type HbFormItemFilterModalInstance = InstanceType<typeof HbFormItemFilterModal>;
@@ -0,0 +1,4 @@
1
+ export * from '../../../../components/types/hb_form_select_filter_type';
2
+ declare const HbFormSelectFilter: any;
3
+ export default HbFormSelectFilter;
4
+ export type HbFormItemFilterModalInstance = InstanceType<typeof HbFormSelectFilter>;
@@ -0,0 +1,4 @@
1
+ export * from '../../../../components/types/hb_form_select_modal_type';
2
+ declare const HbFormSelectModal: any;
3
+ export default HbFormSelectModal;
4
+ export type HbFormItemFilterModalInstance = InstanceType<typeof HbFormSelectModal>;
@@ -0,0 +1,99 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ readonly modelTitle: {
3
+ readonly type: StringConstructor;
4
+ readonly default: "搜索弹窗";
5
+ };
6
+ readonly modalWidth: {
7
+ readonly type: NumberConstructor;
8
+ readonly default: 800;
9
+ };
10
+ readonly tableHeight: {
11
+ readonly type: NumberConstructor;
12
+ readonly default: 500;
13
+ };
14
+ readonly tableColumn: {
15
+ readonly type: ArrayConstructor;
16
+ readonly default: () => never[];
17
+ readonly required: true;
18
+ };
19
+ readonly tableData: {
20
+ readonly type: ArrayConstructor;
21
+ readonly default: () => never[];
22
+ };
23
+ readonly tableKey: {
24
+ readonly type: StringConstructor;
25
+ readonly default: "id";
26
+ };
27
+ readonly labelKey: {
28
+ readonly type: StringConstructor;
29
+ readonly default: "label";
30
+ };
31
+ }>, {
32
+ props: any;
33
+ emits: (event: "handleConfirm" | "handleCancel", ...args: any[]) => void;
34
+ visible: import("vue").Ref<boolean, boolean>;
35
+ inputValue: import("vue").Ref<string, string>;
36
+ searchInput: import("vue").Ref<any, any>;
37
+ hbMultipSelectModalRef: import("vue").Ref<any, any>;
38
+ selectedRowKeysResult: any;
39
+ selectedRowKeysRowResult: any;
40
+ tableRef: import("vue").Ref<any, any>;
41
+ state: {
42
+ searchText: string | number;
43
+ searchedColumn: string | number;
44
+ };
45
+ data: import("vue").ComputedRef<any[]>;
46
+ columns: import("vue").ComputedRef<any[]>;
47
+ handleOk: () => void;
48
+ handleCancel: () => void;
49
+ handleOpen: () => void;
50
+ handleFooterReset: () => void;
51
+ resetInputVal: () => void;
52
+ handleSearch: (selectedKeys: Array<string | number>, confirm: () => void, dataIndex: string | number) => void;
53
+ handleReset: (clearFilters: any, confirm: any) => void;
54
+ onSelectChange: (selectedRowKeys: Array<any>, selectionRows: Array<any>) => void;
55
+ readonly UnorderedListOutlined: import("@ant-design/icons-vue/lib/icons/UnorderedListOutlined").UnorderedListOutlinedIconType;
56
+ readonly SearchOutlined: import("@ant-design/icons-vue/lib/icons/SearchOutlined").SearchOutlinedIconType;
57
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleConfirm" | "handleCancel")[], "handleConfirm" | "handleCancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
58
+ readonly modelTitle: {
59
+ readonly type: StringConstructor;
60
+ readonly default: "搜索弹窗";
61
+ };
62
+ readonly modalWidth: {
63
+ readonly type: NumberConstructor;
64
+ readonly default: 800;
65
+ };
66
+ readonly tableHeight: {
67
+ readonly type: NumberConstructor;
68
+ readonly default: 500;
69
+ };
70
+ readonly tableColumn: {
71
+ readonly type: ArrayConstructor;
72
+ readonly default: () => never[];
73
+ readonly required: true;
74
+ };
75
+ readonly tableData: {
76
+ readonly type: ArrayConstructor;
77
+ readonly default: () => never[];
78
+ };
79
+ readonly tableKey: {
80
+ readonly type: StringConstructor;
81
+ readonly default: "id";
82
+ };
83
+ readonly labelKey: {
84
+ readonly type: StringConstructor;
85
+ readonly default: "label";
86
+ };
87
+ }>> & Readonly<{
88
+ onHandleConfirm?: ((...args: any[]) => any) | undefined;
89
+ onHandleCancel?: ((...args: any[]) => any) | undefined;
90
+ }>, {
91
+ readonly labelKey: string;
92
+ readonly modelTitle: string;
93
+ readonly modalWidth: number;
94
+ readonly tableHeight: number;
95
+ readonly tableColumn: unknown[];
96
+ readonly tableData: unknown[];
97
+ readonly tableKey: string;
98
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
99
+ export default _sfc_main;
@@ -0,0 +1,3 @@
1
+ declare const HbListBtns: any;
2
+ export default HbListBtns;
3
+ export type HbListBtnsInstance = InstanceType<typeof HbListBtns>;
@@ -0,0 +1,53 @@
1
+ import { type PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ readonly formItems: {
4
+ readonly type: PropType<import("../../hb_form_item_filter_modal").LocalShowList_intf[]>;
5
+ readonly default: () => never[];
6
+ };
7
+ readonly isShowSelfFilter: {
8
+ readonly type: BooleanConstructor;
9
+ readonly default: true;
10
+ };
11
+ readonly needReload: {
12
+ readonly type: BooleanConstructor;
13
+ readonly default: true;
14
+ };
15
+ readonly needOpenOrClose: {
16
+ readonly type: BooleanConstructor;
17
+ readonly default: true;
18
+ };
19
+ }>, {
20
+ props: any;
21
+ emits: (event: "handleOpenOrClose" | "handleReload", ...args: any[]) => void;
22
+ isFormExpanded: import("vue").Ref<boolean, boolean>;
23
+ handleOpenOrClose: () => void;
24
+ handleReload: () => void;
25
+ readonly UpCircleOutlined: import("@ant-design/icons-vue/lib/icons/UpCircleOutlined").UpCircleOutlinedIconType;
26
+ readonly DownCircleOutlined: import("@ant-design/icons-vue/lib/icons/DownCircleOutlined").DownCircleOutlinedIconType;
27
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleOpenOrClose" | "handleReload")[], "handleOpenOrClose" | "handleReload", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
+ readonly formItems: {
29
+ readonly type: PropType<import("../../hb_form_item_filter_modal").LocalShowList_intf[]>;
30
+ readonly default: () => never[];
31
+ };
32
+ readonly isShowSelfFilter: {
33
+ readonly type: BooleanConstructor;
34
+ readonly default: true;
35
+ };
36
+ readonly needReload: {
37
+ readonly type: BooleanConstructor;
38
+ readonly default: true;
39
+ };
40
+ readonly needOpenOrClose: {
41
+ readonly type: BooleanConstructor;
42
+ readonly default: true;
43
+ };
44
+ }>> & Readonly<{
45
+ onHandleOpenOrClose?: ((...args: any[]) => any) | undefined;
46
+ onHandleReload?: ((...args: any[]) => any) | undefined;
47
+ }>, {
48
+ readonly formItems: import("../../hb_form_item_filter_modal").LocalShowList_intf[];
49
+ readonly isShowSelfFilter: boolean;
50
+ readonly needReload: boolean;
51
+ readonly needOpenOrClose: boolean;
52
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
53
+ export default _sfc_main;
@@ -0,0 +1,4 @@
1
+ export * from '../../../../components/types/hb_list_form_type';
2
+ declare const HbListForm: any;
3
+ export default HbListForm;
4
+ export type FormInstance = InstanceType<typeof HbListForm>;
@@ -0,0 +1,3 @@
1
+ declare const HbListPageAct: any;
2
+ export default HbListPageAct;
3
+ export type HbFormItemFilterModalInstance = InstanceType<typeof HbListPageAct>;
@@ -0,0 +1,56 @@
1
+ import { type PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ readonly formItems: {
4
+ readonly type: PropType<import("../../hb_form_item_filter_modal").LocalShowList_intf[]>;
5
+ readonly default: () => never[];
6
+ };
7
+ readonly isShowSelfFilter: {
8
+ readonly type: BooleanConstructor;
9
+ readonly default: true;
10
+ };
11
+ readonly isShowOpenClose: {
12
+ readonly type: BooleanConstructor;
13
+ readonly default: true;
14
+ };
15
+ readonly isShowFullScreen: {
16
+ readonly type: BooleanConstructor;
17
+ readonly default: true;
18
+ };
19
+ }>, {
20
+ route: import("vue-router/dist/router-BbqN7H95.mjs").RouteLocationNormalizedLoadedGeneric;
21
+ props: any;
22
+ ListPageBoxObj: any;
23
+ isFullscreen: import("vue").Ref<boolean, boolean>;
24
+ toggle: () => Promise<void>;
25
+ emits: (event: "handleSearch" | "handleReset" | "handleOpenOrClose" | "handleSfcmConfirm", ...args: any[]) => void;
26
+ breadCrumbData: import("vue").Ref<string, string>;
27
+ handleBreadCrumb: () => void;
28
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleSearch" | "handleReset" | "handleOpenOrClose" | "handleSfcmConfirm")[], "handleSearch" | "handleReset" | "handleOpenOrClose" | "handleSfcmConfirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
+ readonly formItems: {
30
+ readonly type: PropType<import("../../hb_form_item_filter_modal").LocalShowList_intf[]>;
31
+ readonly default: () => never[];
32
+ };
33
+ readonly isShowSelfFilter: {
34
+ readonly type: BooleanConstructor;
35
+ readonly default: true;
36
+ };
37
+ readonly isShowOpenClose: {
38
+ readonly type: BooleanConstructor;
39
+ readonly default: true;
40
+ };
41
+ readonly isShowFullScreen: {
42
+ readonly type: BooleanConstructor;
43
+ readonly default: true;
44
+ };
45
+ }>> & Readonly<{
46
+ onHandleOpenOrClose?: ((...args: any[]) => any) | undefined;
47
+ onHandleSearch?: ((...args: any[]) => any) | undefined;
48
+ onHandleReset?: ((...args: any[]) => any) | undefined;
49
+ onHandleSfcmConfirm?: ((...args: any[]) => any) | undefined;
50
+ }>, {
51
+ readonly formItems: import("../../hb_form_item_filter_modal").LocalShowList_intf[];
52
+ readonly isShowSelfFilter: boolean;
53
+ readonly isShowOpenClose: boolean;
54
+ readonly isShowFullScreen: boolean;
55
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
56
+ export default _sfc_main;
@@ -0,0 +1,3 @@
1
+ declare const HbListPageBox: any;
2
+ export default HbListPageBox;
3
+ export type HbFormItemFilterModalInstance = InstanceType<typeof HbListPageBox>;
@@ -0,0 +1,41 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ readonly tableHeight: {
3
+ readonly type: NumberConstructor;
4
+ readonly default: 400;
5
+ };
6
+ readonly tabelData: {
7
+ readonly type: ArrayConstructor;
8
+ readonly default: () => never[];
9
+ };
10
+ readonly offsetBottom: {
11
+ readonly type: NumberConstructor;
12
+ };
13
+ readonly minHeight: {
14
+ readonly type: NumberConstructor;
15
+ };
16
+ }>, {
17
+ props: any;
18
+ PageContainerRef: Readonly<import("vue").ShallowRef<unknown, unknown>>;
19
+ calTableHeight: () => void;
20
+ tableHeight: import("vue").Ref<number, number>;
21
+ tbHeight: import("vue").ComputedRef<number>;
22
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ readonly tableHeight: {
24
+ readonly type: NumberConstructor;
25
+ readonly default: 400;
26
+ };
27
+ readonly tabelData: {
28
+ readonly type: ArrayConstructor;
29
+ readonly default: () => never[];
30
+ };
31
+ readonly offsetBottom: {
32
+ readonly type: NumberConstructor;
33
+ };
34
+ readonly minHeight: {
35
+ readonly type: NumberConstructor;
36
+ };
37
+ }>> & Readonly<{}>, {
38
+ readonly tableHeight: number;
39
+ readonly tabelData: unknown[];
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
41
+ export default _sfc_main;
@@ -0,0 +1,4 @@
1
+ export * from '../../../../components/types/hb_list_table_type';
2
+ declare const HbListTable: any;
3
+ export default HbListTable;
4
+ export type TableInstance = InstanceType<typeof HbListTable>;
@@ -0,0 +1,3 @@
1
+ declare const HbListPageTableAct: any;
2
+ export default HbListPageTableAct;
3
+ export type HbFormItemFilterModalInstance = InstanceType<typeof HbListPageTableAct>;
@@ -0,0 +1,3 @@
1
+ declare const HbListPageTableColSet: any;
2
+ export default HbListPageTableColSet;
3
+ export type HbFormItemFilterModalInstance = InstanceType<typeof HbListPageTableColSet>;
@@ -0,0 +1,2 @@
1
+ declare const HbListComponents: any;
2
+ export default HbListComponents;
@@ -0,0 +1,4 @@
1
+ export * from './src/type';
2
+ declare const HbCopy: any;
3
+ export default HbCopy;
4
+ export type CopyInstance = InstanceType<typeof HbCopy>;
@@ -0,0 +1,83 @@
1
+ import { type PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ readonly cpText: {
4
+ readonly type: StringConstructor;
5
+ readonly default: "";
6
+ };
7
+ readonly K: {
8
+ readonly type: StringConstructor;
9
+ readonly default: "";
10
+ };
11
+ readonly V: {
12
+ readonly type: StringConstructor;
13
+ };
14
+ readonly L: {
15
+ readonly type: StringConstructor;
16
+ };
17
+ readonly data: {
18
+ readonly type: PropType<any[] | Record<string, any>>;
19
+ };
20
+ readonly tooltipTitle: {
21
+ readonly type: StringConstructor;
22
+ readonly default: "复制";
23
+ };
24
+ readonly copySuccessTip: {
25
+ readonly type: StringConstructor;
26
+ readonly default: "复制成功";
27
+ };
28
+ readonly cpStyle: {
29
+ readonly type: ObjectConstructor;
30
+ readonly default: () => {};
31
+ };
32
+ readonly classType: {
33
+ readonly type: StringConstructor;
34
+ readonly default: "ab";
35
+ };
36
+ }>, {
37
+ props: any;
38
+ dataRef: import("vue").Ref<any, any>;
39
+ getCopyText: import("vue").ComputedRef<string>;
40
+ copyText: () => void;
41
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ readonly cpText: {
43
+ readonly type: StringConstructor;
44
+ readonly default: "";
45
+ };
46
+ readonly K: {
47
+ readonly type: StringConstructor;
48
+ readonly default: "";
49
+ };
50
+ readonly V: {
51
+ readonly type: StringConstructor;
52
+ };
53
+ readonly L: {
54
+ readonly type: StringConstructor;
55
+ };
56
+ readonly data: {
57
+ readonly type: PropType<any[] | Record<string, any>>;
58
+ };
59
+ readonly tooltipTitle: {
60
+ readonly type: StringConstructor;
61
+ readonly default: "复制";
62
+ };
63
+ readonly copySuccessTip: {
64
+ readonly type: StringConstructor;
65
+ readonly default: "复制成功";
66
+ };
67
+ readonly cpStyle: {
68
+ readonly type: ObjectConstructor;
69
+ readonly default: () => {};
70
+ };
71
+ readonly classType: {
72
+ readonly type: StringConstructor;
73
+ readonly default: "ab";
74
+ };
75
+ }>> & Readonly<{}>, {
76
+ readonly cpText: string;
77
+ readonly K: string;
78
+ readonly tooltipTitle: string;
79
+ readonly copySuccessTip: string;
80
+ readonly cpStyle: Record<string, any>;
81
+ readonly classType: string;
82
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
83
+ export default _sfc_main;
@@ -0,0 +1,37 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ export declare const HbCopyProps: {
3
+ readonly cpText: {
4
+ readonly type: StringConstructor;
5
+ readonly default: "";
6
+ };
7
+ readonly K: {
8
+ readonly type: StringConstructor;
9
+ readonly default: "";
10
+ };
11
+ readonly V: {
12
+ readonly type: StringConstructor;
13
+ };
14
+ readonly L: {
15
+ readonly type: StringConstructor;
16
+ };
17
+ readonly data: {
18
+ readonly type: PropType<any[] | Record<string, any>>;
19
+ };
20
+ readonly tooltipTitle: {
21
+ readonly type: StringConstructor;
22
+ readonly default: "复制";
23
+ };
24
+ readonly copySuccessTip: {
25
+ readonly type: StringConstructor;
26
+ readonly default: "复制成功";
27
+ };
28
+ readonly cpStyle: {
29
+ readonly type: ObjectConstructor;
30
+ readonly default: () => {};
31
+ };
32
+ readonly classType: {
33
+ readonly type: StringConstructor;
34
+ readonly default: "ab";
35
+ };
36
+ };
37
+ export type HbCopyPropsType = ExtractPropTypes<typeof HbCopyProps>;