@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
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/utils.d.ts
CHANGED
|
@@ -14,3 +14,10 @@ export declare const handleBssulaColumnsSpecialParams: (col: any) => void;
|
|
|
14
14
|
export declare const handleAntdColumnsSpecialParams: (col: any) => void;
|
|
15
15
|
export declare const getDictionarySource: (dicCode: string, needConvertInterger?: boolean) => any;
|
|
16
16
|
export declare function uuid(): string;
|
|
17
|
+
export declare const judgeIsEmpty: (value: any) => boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 处理错误请求
|
|
20
|
+
* @param {*} response 返回结果
|
|
21
|
+
* @param {*} needBackError 是否需要将错误回传到页面单独处理
|
|
22
|
+
*/
|
|
23
|
+
export declare function handleError(response: object, needBackError?: boolean): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bit-sun/business-component",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-alpha.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"axios": "^0.24.0",
|
|
47
47
|
"classnames": "^2.3.1",
|
|
48
48
|
"lodash": "^4.17.21",
|
|
49
|
+
"moment": "^2.25.3",
|
|
49
50
|
"querystring": "^0.2.1",
|
|
50
51
|
"react": "^16.12.0",
|
|
51
52
|
"react-beautiful-dnd": "10.0.0",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const ENUM = {
|
|
2
|
+
/**
|
|
3
|
+
* 事件动作类型枚举
|
|
4
|
+
*/
|
|
5
|
+
VALUE_TYPE: {
|
|
6
|
+
STATUS: 1, // 流转状态
|
|
7
|
+
TAG: 2, // 添加标签
|
|
8
|
+
TIMING: 3, // 定时器
|
|
9
|
+
EDIT_FIELD: 4, // 字段变更
|
|
10
|
+
},
|
|
11
|
+
/**
|
|
12
|
+
* 执行动作枚举
|
|
13
|
+
*/
|
|
14
|
+
EXCUSE_ACTION: {
|
|
15
|
+
SEND_MESSAGE: 1, // 发送消息
|
|
16
|
+
PUSH_TODO_TASK: 2, // 推送任务
|
|
17
|
+
},
|
|
18
|
+
EXCUSE_ACTION_TEXT: {
|
|
19
|
+
SEND_MESSAGE: '发送一条消息',
|
|
20
|
+
PUSH_TODO_TASK: '推送一条待办任务',
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* 消息接收人分组类型枚举
|
|
24
|
+
*/
|
|
25
|
+
RECEIVER_GROUP_TYPE: {
|
|
26
|
+
EMPLOYEES: 1, // 指定员工
|
|
27
|
+
ORGANIZATION: 2, // 指定组织
|
|
28
|
+
ROLE: 3, // 指定角色
|
|
29
|
+
PERSON_IN_DOCUMENT: 4, // 单据内人员
|
|
30
|
+
SEND_ALL: 5, // 所有人
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* 消息发送类型枚举
|
|
34
|
+
*/
|
|
35
|
+
MESSAGE_SENDTIME_TYPE: {
|
|
36
|
+
IMMEDIATELY_SEND: 1, // 立即发送
|
|
37
|
+
REGULARLY_SEND: 2, // 定时发送
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default ENUM;
|