@bit-sun/business-component 2.0.31 → 2.0.32

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 (110) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +4 -4
  3. package/.gitlab-ci.yml +174 -174
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -0
  9. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +59 -0
  10. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +98 -0
  11. package/dist/components/Business/CommonAlert/index.d.ts +3 -0
  12. package/dist/components/Business/DetailPageWrapper/index.d.ts +9 -0
  13. package/dist/components/Business/DetailPageWrapper/utils.d.ts +9 -0
  14. package/dist/components/Business/HomePageWrapper/index.d.ts +3 -0
  15. package/dist/components/Business/columnSettingTable/index.d.ts +1 -0
  16. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +1 -0
  17. package/dist/index.esm.js +7600 -5508
  18. package/dist/index.js +7597 -5505
  19. package/docs/index.md +21 -21
  20. package/lib/assets/drag.svg +17 -17
  21. package/lib/assets/exportFail.svg +37 -37
  22. package/lib/assets/exportProcessing.svg +28 -28
  23. package/lib/assets/exportSuccess.svg +34 -34
  24. package/lib/assets/label_icon_bottom.svg +25 -25
  25. package/lib/assets/upExport.svg +22 -22
  26. package/package.json +69 -63
  27. package/src/assets/btn-delete.svg +30 -0
  28. package/src/assets/btn-edit.svg +20 -0
  29. package/src/assets/btn-more.svg +18 -0
  30. package/src/assets/btn-submit.svg +20 -0
  31. package/src/assets/close.svg +26 -26
  32. package/src/assets/drag.svg +17 -17
  33. package/src/assets/exportFail.svg +37 -37
  34. package/src/assets/exportProcessing.svg +28 -28
  35. package/src/assets/exportSuccess.svg +34 -34
  36. package/src/assets/fixed-left-active.svg +12 -0
  37. package/src/assets/fixed-left.svg +16 -0
  38. package/src/assets/fixed-right-active.svg +12 -0
  39. package/src/assets/fixed-right.svg +16 -0
  40. package/src/assets/icon-quanping.svg +16 -0
  41. package/src/assets/icon-shezhi.svg +17 -17
  42. package/src/assets/label_icon_bottom.svg +25 -25
  43. package/src/assets/scanning.svg +25 -0
  44. package/src/assets/upExport.svg +22 -22
  45. package/src/components/Business/AddSelectBusiness/index.md +41 -41
  46. package/src/components/Business/AddSelectBusiness/index.tsx +290 -290
  47. package/src/components/Business/BsSulaQueryTable/index.less +220 -0
  48. package/src/components/Business/BsSulaQueryTable/index.tsx +534 -0
  49. package/src/components/Business/BsSulaQueryTable/setting.tsx +817 -0
  50. package/src/components/Business/BsSulaQueryTable/utils.less +65 -0
  51. package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -0
  52. package/src/components/Business/CommodityEntry/index.md +70 -70
  53. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  54. package/src/components/Business/CommonAlert/index.less +0 -0
  55. package/src/components/Business/CommonAlert/index.tsx +23 -0
  56. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  57. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  58. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  59. package/src/components/Business/DetailPageWrapper/index.less +80 -0
  60. package/src/components/Business/DetailPageWrapper/index.tsx +325 -0
  61. package/src/components/Business/DetailPageWrapper/utils.tsx +111 -0
  62. package/src/components/Business/HomePageWrapper/index.less +33 -0
  63. package/src/components/Business/HomePageWrapper/index.md +45 -0
  64. package/src/components/Business/HomePageWrapper/index.tsx +150 -0
  65. package/src/components/Business/SearchSelect/BusinessUtils.ts +1448 -1448
  66. package/src/components/Business/SearchSelect/common.ts +53 -53
  67. package/src/components/Business/SearchSelect/index.md +1137 -1137
  68. package/src/components/Business/SearchSelect/index.tsx +51 -51
  69. package/src/components/Business/SearchSelect/utils.ts +99 -99
  70. package/src/components/Business/StateFlow/index.less +130 -130
  71. package/src/components/Business/StateFlow/index.md +60 -60
  72. package/src/components/Business/StateFlow/index.tsx +29 -29
  73. package/src/components/Business/TreeSearchSelect/index.md +126 -126
  74. package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
  75. package/src/components/Business/TreeSearchSelect/utils.ts +60 -60
  76. package/src/components/Business/columnSettingTable/columnSetting.tsx +762 -594
  77. package/src/components/Business/columnSettingTable/index.less +247 -247
  78. package/src/components/Business/columnSettingTable/index.md +357 -357
  79. package/src/components/Business/columnSettingTable/index.tsx +225 -216
  80. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +233 -224
  81. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  82. package/src/components/Functional/AddSelect/index.less +367 -367
  83. package/src/components/Functional/AddSelect/index.md +122 -122
  84. package/src/components/Functional/AddSelect/index.tsx +962 -962
  85. package/src/components/Functional/BillEntry/index.less +371 -371
  86. package/src/components/Functional/BillEntry/index.md +37 -37
  87. package/src/components/Functional/BillEntry/index.tsx +547 -547
  88. package/src/components/Functional/DataImport/index.less +63 -63
  89. package/src/components/Functional/DataImport/index.md +44 -44
  90. package/src/components/Functional/DataImport/index.tsx +689 -689
  91. package/src/components/Functional/DataValidation/index.less +63 -63
  92. package/src/components/Functional/DataValidation/index.md +38 -38
  93. package/src/components/Functional/DataValidation/index.tsx +681 -681
  94. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  95. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  96. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  97. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  98. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  99. package/src/components/Functional/SearchSelect/index.less +115 -115
  100. package/src/components/Functional/SearchSelect/index.md +141 -141
  101. package/src/components/Functional/SearchSelect/index.tsx +812 -812
  102. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  103. package/src/components/Functional/TreeSearchSelect/index.tsx +149 -149
  104. package/src/index.ts +30 -27
  105. package/src/utils/CheckOneUser/index.md +39 -39
  106. package/src/utils/CheckOneUser/index.ts +51 -51
  107. package/src/utils/requestUtils.ts +32 -32
  108. package/src/utils/utils.ts +22 -22
  109. package/tsconfig.json +29 -29
  110. package/typings.d.ts +4 -4
@@ -0,0 +1,59 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare class SortableTable extends React.Component {
4
+ state: {
5
+ dataSource: never[];
6
+ columns: never[];
7
+ selectedRowKeys: never[];
8
+ sortDataSource: never[];
9
+ setVisible: boolean;
10
+ searchDataSource: boolean;
11
+ onSearchSort: boolean;
12
+ isDefaultValue: boolean;
13
+ defaultValue: never[];
14
+ };
15
+ patchUserColumnConfig: (config: any) => void;
16
+ getConfigFromlocalstorage: () => any;
17
+ patchConfigToLocalstorage: (configvalue: any) => void;
18
+ setInitValue: (isClick?: boolean) => void;
19
+ componentDidMount(): void;
20
+ columns: ({
21
+ title: string;
22
+ dataIndex: string;
23
+ className: string;
24
+ width: number;
25
+ render?: undefined;
26
+ } | {
27
+ title: string;
28
+ dataIndex: string;
29
+ render: (text: any, record: any) => JSX.Element;
30
+ className?: undefined;
31
+ width?: undefined;
32
+ } | {
33
+ title: string;
34
+ dataIndex: string;
35
+ className: string;
36
+ render: () => JSX.Element;
37
+ width?: undefined;
38
+ })[];
39
+ showModal: () => void;
40
+ handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
41
+ handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
42
+ handleTableHeadHidden: (title: string) => void;
43
+ onSortEnd: ({ oldIndex, newIndex }: {
44
+ oldIndex: any;
45
+ newIndex: any;
46
+ }) => void;
47
+ DraggableContainer: (props: any) => JSX.Element;
48
+ DraggableBodyRow: ({ className, style, ...restProps }: {
49
+ [x: string]: any;
50
+ className: any;
51
+ style: any;
52
+ }) => JSX.Element;
53
+ onChange: (e: CheckboxChangeEvent, title: any) => void;
54
+ handleReset: () => void;
55
+ onSearch: (e: any) => void;
56
+ onSearchSort: (e: any) => void;
57
+ render(): JSX.Element;
58
+ }
59
+ export default SortableTable;
@@ -0,0 +1,98 @@
1
+ import moment from 'moment';
2
+ import './utils.less';
3
+ export declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
4
+ export declare const HandleTotalCount: (totalParams: any) => JSX.Element;
5
+ export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
6
+ type: string;
7
+ width: number;
8
+ props: {
9
+ maskClosable: boolean;
10
+ };
11
+ title: string;
12
+ mode: string;
13
+ initialValues: (ctx: any) => any;
14
+ fields: {
15
+ name: any;
16
+ label: string;
17
+ field: {
18
+ type: string;
19
+ props: {
20
+ autoSize: boolean;
21
+ placeholder: string;
22
+ disabledDate: (currentDate: any) => boolean;
23
+ style: {
24
+ width: string;
25
+ };
26
+ };
27
+ };
28
+ initialValue: moment.Moment;
29
+ rules: {
30
+ required: boolean;
31
+ message: string;
32
+ }[];
33
+ }[];
34
+ submitButtonProps: {
35
+ children: string;
36
+ };
37
+ backButtonProps: {
38
+ children: string;
39
+ };
40
+ submit: any;
41
+ };
42
+ export declare const renderZeroInSummary: (value: any) => number | "- -";
43
+ export declare const calculateValidPeriod: (start: any, end: any) => string;
44
+ export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
45
+ export declare const handleTextLineFeed: (text: string | undefined, width?: number) => JSX.Element;
46
+ export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
47
+ export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
48
+ export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
49
+ declare type tableColumnsImageType = {
50
+ width?: number | string;
51
+ height?: number | string;
52
+ [key: string]: any;
53
+ };
54
+ export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
55
+ declare type UserColumnsType = {
56
+ name: string;
57
+ department?: string;
58
+ position?: string;
59
+ company?: string;
60
+ avatar?: string;
61
+ };
62
+ export declare const userColumns: (props: UserColumnsType) => JSX.Element;
63
+ export declare const userInfoCard: (props: any) => JSX.Element;
64
+ export declare function handleCommonTimeRenderHours(text: any, format?: any): any;
65
+ export declare function handleCommonTimeRender(text: any, format?: any): any;
66
+ interface ColumnsEditInterfave {
67
+ text?: string;
68
+ record?: any;
69
+ type?: string;
70
+ reqName: string;
71
+ successMessage?: string;
72
+ urlPathId?: boolean;
73
+ disabled: boolean;
74
+ requestProps: {
75
+ url: string;
76
+ converter?: Function;
77
+ method?: string;
78
+ };
79
+ [key: string]: any;
80
+ }
81
+ export declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
82
+ export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
83
+ export declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
84
+ export declare const renderFixed2: (text: any) => any;
85
+ export declare const getItemDefaultWidth: (item: any) => number;
86
+ /**
87
+ * 查询参数处理
88
+ * @param params 要应用于查询的参数
89
+ * @returns 返回处理后的查询参数
90
+ */
91
+ export declare function queryParams(params: any, flag?: any): any;
92
+ /**
93
+ * 根据用户权限检验对应按钮是够显示 !!!!现在先去掉
94
+ * @param code 对应权限值
95
+ * @returns boolean
96
+ */
97
+ export declare const authFn: (code?: any) => boolean;
98
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import './index.less';
2
+ export declare const iconMap: {
3
+ edit: JSX.Element;
4
+ delete: JSX.Element;
5
+ submit: JSX.Element;
6
+ more: JSX.Element;
7
+ };
8
+ declare const _default: (props: any) => JSX.Element;
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ interface actionItem {
2
+ [propName: string]: any;
3
+ }
4
+ export declare const doDetailPageAction: (config: actionItem) => void;
5
+ export declare const formatter: (data: any, parentAuthority: any, parentName: any) => any;
6
+ export declare const memoizeOneFormatter: import("memoize-one").MemoizedFn<(data: any, parentAuthority: any, parentName: any) => any>;
7
+ export declare const getBreadcrumbNameMap: (menuData: any) => {};
8
+ export declare const judgeIsEmpty: (value: any) => boolean;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -11,5 +11,6 @@ export default class ColumnSettingTable extends React.Component {
11
11
  handledynamicColumns: (col: any[]) => any[];
12
12
  handleResize: (index: any) => (_: any, { size }: any) => void;
13
13
  ResizeableTitle: (props: any) => JSX.Element;
14
+ getTableScrollXWidth: (cols: any[]) => any;
14
15
  render(): JSX.Element;
15
16
  }
@@ -12,5 +12,6 @@ export default class ColumnSettingSulaTable extends React.Component {
12
12
  handledynamicColumns: (col: any[]) => any[];
13
13
  handleResize: (index: any) => (_: any, { size }: any) => void;
14
14
  ResizeableTitle: (props: any) => JSX.Element;
15
+ getTableScrollXWidth: (cols: any[]) => any;
15
16
  render(): JSX.Element;
16
17
  }