@bit-sun/business-component 2.2.49 → 2.3.0-alpha.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.
- package/dist/common/ENUM.d.ts +40 -0
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +2 -2
- package/dist/components/Business/SearchSelect/common.d.ts +9 -1
- package/dist/components/Business/TreeSearchSelect/utils.d.ts +3 -1
- package/dist/components/Functional/AddSelect/helps.d.ts +13 -0
- package/dist/components/Functional/BsAntdSula/BsCascader/index.d.ts +18 -0
- package/dist/components/Functional/BsAntdSula/index.d.ts +1 -0
- package/dist/components/Solution/RuleComponent/Formula.d.ts +8 -0
- package/dist/components/Solution/RuleComponent/services.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +10842 -11311
- package/dist/index.js +10803 -11268
- package/dist/utils/LocalstorageUtils.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/utils.d.ts +7 -0
- package/package.json +2 -1
- package/src/common/ENUM.ts +41 -0
- package/src/components/Business/AddSelectBusiness/index.md +1 -0
- package/src/components/Business/AddSelectBusiness/index.tsx +375 -176
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +1 -1
- package/src/components/Business/BsSulaQueryTable/index.tsx +20 -12
- package/src/components/Business/BsSulaQueryTable/setting.tsx +36 -16
- package/src/components/Business/BsSulaQueryTable/utils.tsx +31 -29
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +4 -0
- package/src/components/Business/JsonQueryTable/index.tsx +248 -33
- package/src/components/Business/JsonQueryTable/static.ts +5 -5
- package/src/components/Business/SearchSelect/BusinessUtils.ts +37 -7
- package/src/components/Business/SearchSelect/common.ts +23 -1
- package/src/components/Business/SearchSelect/index.md +12 -2
- package/src/components/Business/SearchSelect/index.tsx +5 -2
- package/src/components/Business/TreeSearchSelect/index.md +2 -0
- package/src/components/Business/TreeSearchSelect/index.tsx +1 -2
- package/src/components/Business/TreeSearchSelect/utils.ts +7 -1
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +1 -1
- package/src/components/Business/columnSettingTable/utils.tsx +30 -28
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +1 -0
- package/src/components/Business/moreTreeTable/index.md +2 -2
- package/src/components/Business/moreTreeTable/index.tsx +24 -17
- package/src/components/Functional/AddSelect/helps.ts +65 -0
- package/src/components/Functional/AddSelect/index.tsx +13 -122
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -0
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -0
- package/src/components/Functional/BsAntdSula/index.ts +2 -0
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -0
- package/src/components/Functional/EllipsisTooltip/index.js +36 -0
- package/src/components/Functional/EllipsisTooltip/index.md +30 -0
- package/src/components/Functional/SearchSelect/index.tsx +93 -59
- package/src/components/Functional/TreeSearchSelect/index.tsx +44 -7
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -0
- package/src/components/Solution/RuleComponent/index.d.ts +29 -0
- package/src/components/Solution/RuleComponent/index.js +2032 -0
- package/src/components/Solution/RuleComponent/index.less +230 -0
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -0
- package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -0
- package/src/components/Solution/RuleComponent/services.ts +13 -0
- package/src/components/Solution/RuleComponent/util.js +139 -0
- package/src/index.ts +4 -0
- package/src/utils/LocalstorageUtils.ts +5 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/utils.ts +29 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const ENUM: {
|
|
2
|
+
/**
|
|
3
|
+
* 事件动作类型枚举
|
|
4
|
+
*/
|
|
5
|
+
VALUE_TYPE: {
|
|
6
|
+
STATUS: number;
|
|
7
|
+
TAG: number;
|
|
8
|
+
TIMING: number;
|
|
9
|
+
EDIT_FIELD: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 执行动作枚举
|
|
13
|
+
*/
|
|
14
|
+
EXCUSE_ACTION: {
|
|
15
|
+
SEND_MESSAGE: number;
|
|
16
|
+
PUSH_TODO_TASK: number;
|
|
17
|
+
};
|
|
18
|
+
EXCUSE_ACTION_TEXT: {
|
|
19
|
+
SEND_MESSAGE: string;
|
|
20
|
+
PUSH_TODO_TASK: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* 消息接收人分组类型枚举
|
|
24
|
+
*/
|
|
25
|
+
RECEIVER_GROUP_TYPE: {
|
|
26
|
+
EMPLOYEES: number;
|
|
27
|
+
ORGANIZATION: number;
|
|
28
|
+
ROLE: number;
|
|
29
|
+
PERSON_IN_DOCUMENT: number;
|
|
30
|
+
SEND_ALL: number;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* 消息发送类型枚举
|
|
34
|
+
*/
|
|
35
|
+
MESSAGE_SENDTIME_TYPE: {
|
|
36
|
+
IMMEDIATELY_SEND: number;
|
|
37
|
+
REGULARLY_SEND: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default ENUM;
|
|
@@ -12,7 +12,7 @@ declare class SortableTable extends React.Component {
|
|
|
12
12
|
defaultValue: never[];
|
|
13
13
|
bsTableCode: string;
|
|
14
14
|
};
|
|
15
|
-
patchUserColumnConfig: (config: any) =>
|
|
15
|
+
patchUserColumnConfig: (config: any) => Promise<unknown>;
|
|
16
16
|
getConfigFromlocalstorage: () => any;
|
|
17
17
|
patchConfigToLocalstorage: (configvalue: any) => void;
|
|
18
18
|
setInitValue: (isClick?: boolean) => void;
|
|
@@ -37,7 +37,7 @@ declare class SortableTable extends React.Component {
|
|
|
37
37
|
width?: undefined;
|
|
38
38
|
})[];
|
|
39
39
|
showModal: () => void;
|
|
40
|
-
handleOk: (e?: React.MouseEvent<HTMLElement>) =>
|
|
40
|
+
handleOk: (e?: React.MouseEvent<HTMLElement>) => Promise<unknown> | undefined;
|
|
41
41
|
handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
42
42
|
handleTableHeadHidden: (title: string) => void;
|
|
43
43
|
onSortEnd: ({ oldIndex, newIndex }: {
|
|
@@ -6,6 +6,10 @@ declare const shopFile2Type: {
|
|
|
6
6
|
text: string;
|
|
7
7
|
value: string;
|
|
8
8
|
}[];
|
|
9
|
+
declare const shopFile2Status: {
|
|
10
|
+
text: string;
|
|
11
|
+
value: number;
|
|
12
|
+
}[];
|
|
9
13
|
declare const arrivalPaySupportList: {
|
|
10
14
|
text: string;
|
|
11
15
|
value: number;
|
|
@@ -14,4 +18,8 @@ declare const sharingType: {
|
|
|
14
18
|
text: string;
|
|
15
19
|
value: string;
|
|
16
20
|
}[];
|
|
17
|
-
|
|
21
|
+
declare const employeeType: {
|
|
22
|
+
text: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[];
|
|
25
|
+
export { shopFileType, arrivalPaySupportList, sharingType, shopFile2Type, shopFile2Status, employeeType };
|
|
@@ -1 +1,14 @@
|
|
|
1
1
|
export declare const getSelectDataList: (record: any, item: any, selectKey: string) => any;
|
|
2
|
+
export declare const loadSelectSource: (url: string, params?: any) => Promise<unknown>;
|
|
3
|
+
export declare const formatSource: (reData: any, position: number, changePosition: number, changeSearchForm: any, resKeyValue?: string[]) => void;
|
|
4
|
+
export declare const mapSearchTree: (treeDataItem: any, resKeyValue: any) => {
|
|
5
|
+
title: any;
|
|
6
|
+
value: any;
|
|
7
|
+
parentId: any;
|
|
8
|
+
data: any;
|
|
9
|
+
isLeaf: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
children: any;
|
|
12
|
+
};
|
|
13
|
+
export declare const formatTreeDataSource: (reData: any, position: number, changePosition: number, changeSearchForm: any, resKeyValue?: string[]) => void;
|
|
14
|
+
export declare const formatFormSourceList: (x: any, loadList: any, tableSearchForm: any) => void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CascaderProps as ACascaderProps } from 'antd/lib/cascader';
|
|
2
|
+
export type CascaderSourceItem = {
|
|
3
|
+
text: any;
|
|
4
|
+
value: any;
|
|
5
|
+
};
|
|
6
|
+
export interface CascaderSource {
|
|
7
|
+
text: any;
|
|
8
|
+
value: any;
|
|
9
|
+
children: CascaderSourceItem[];
|
|
10
|
+
}
|
|
11
|
+
export interface CascaderProps extends ACascaderProps {
|
|
12
|
+
source: CascaderSource[];
|
|
13
|
+
}
|
|
14
|
+
declare const BsCascader: ({ source, onChange, value, disabled, needNameAndCode, onlyCode, requiredLength, isAll, notChangeOnSelect, isFirstOnly, initRequestSource, style, }: {
|
|
15
|
+
source: any;
|
|
16
|
+
onChange: Function;
|
|
17
|
+
}) => any;
|
|
18
|
+
export default BsCascader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsCascader } from './BsCascader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRegularThresholdRange(params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,3 +23,6 @@ export { default as BsLayout } from './components/Business/BsLayouts';
|
|
|
23
23
|
export { default as MoreTreeTable } from './components/Business/moreTreeTable';
|
|
24
24
|
export { default as JsonQueryTable } from './components/Business/JsonQueryTable';
|
|
25
25
|
export { default as TableColumnSetting } from './plugin/TableColumnSetting';
|
|
26
|
+
export { default as EllipsisTooltip } from './components/Functional/EllipsisTooltip';
|
|
27
|
+
export * from './components/Functional/BsAntdSula/index';
|
|
28
|
+
export { default as RuleComponent } from './components/Solution/RuleComponent';
|