@alifd/chat 0.1.12-beta.0 → 0.1.13-beta.0
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/{lib/calendar → es/button}/main.scss +1 -1
- package/es/card/main.scss +141 -0
- package/es/card/view/collapsable.d.ts +1 -1
- package/es/core/variables.scss +35 -0
- package/es/feedback/main.scss +45 -0
- package/es/float-button/main.scss +97 -0
- package/es/index.d.ts +1 -5
- package/es/index.js +2 -6
- package/es/message/index.d.ts +22 -0
- package/es/message/index.js +30 -0
- package/{lib/date-picker → es/message}/main.scss +0 -4
- package/es/message/style.d.ts +2 -0
- package/es/message/style.js +2 -0
- package/es/message/types.d.ts +195 -0
- package/es/tab/main.scss +10 -0
- package/es/tag/index.d.ts +1769 -2
- package/es/tag/index.js +2 -2
- package/es/tag/main.scss +9 -0
- package/es/text/main.scss +19 -0
- package/lib/card/view/collapsable.d.ts +1 -1
- package/lib/index.d.ts +1 -4
- package/lib/index.js +4 -10
- package/lib/message/index.d.ts +22 -0
- package/lib/message/index.js +32 -0
- package/lib/{time-picker → message}/main.scss +0 -4
- package/lib/message/style.d.ts +2 -0
- package/lib/{input → message}/style.js +1 -1
- package/lib/message/types.d.ts +195 -0
- package/lib/tag/index.d.ts +1769 -2
- package/lib/tag/index.js +2 -2
- package/package.json +13 -39
- package/es/calendar/index.d.ts +0 -23
- package/es/calendar/index.js +0 -33
- package/es/calendar/style.d.ts +0 -2
- package/es/calendar/style.js +0 -2
- package/es/calendar/types.d.ts +0 -123
- package/es/date-picker/index.d.ts +0 -24
- package/es/date-picker/index.js +0 -33
- package/es/date-picker/style.d.ts +0 -3
- package/es/date-picker/style.js +0 -3
- package/es/date-picker/types.d.ts +0 -123
- package/es/date-picker/types.js +0 -1
- package/es/input/index.d.ts +0 -24
- package/es/input/index.js +0 -33
- package/es/input/style.d.ts +0 -2
- package/es/input/style.js +0 -2
- package/es/input/types.d.ts +0 -518
- package/es/input/types.js +0 -1
- package/es/person-picker/index.d.ts +0 -24
- package/es/person-picker/index.js +0 -66
- package/es/person-picker/style.d.ts +0 -2
- package/es/person-picker/style.js +0 -2
- package/es/person-picker/types.d.ts +0 -20
- package/es/person-picker/types.js +0 -1
- package/es/time-picker/index.d.ts +0 -23
- package/es/time-picker/index.js +0 -79
- package/es/time-picker/style.d.ts +0 -2
- package/es/time-picker/style.js +0 -2
- package/es/time-picker/types.d.ts +0 -20
- package/es/time-picker/types.js +0 -1
- package/es/utils/dingtalk.d.ts +0 -4
- package/es/utils/dingtalk.js +0 -53
- package/lib/calendar/index.d.ts +0 -23
- package/lib/calendar/index.js +0 -35
- package/lib/calendar/style.d.ts +0 -2
- package/lib/calendar/style.js +0 -4
- package/lib/calendar/types.d.ts +0 -123
- package/lib/date-picker/index.d.ts +0 -24
- package/lib/date-picker/index.js +0 -35
- package/lib/date-picker/style.d.ts +0 -3
- package/lib/date-picker/style.js +0 -5
- package/lib/date-picker/types.d.ts +0 -123
- package/lib/date-picker/types.js +0 -2
- package/lib/input/index.d.ts +0 -24
- package/lib/input/index.js +0 -35
- package/lib/input/main.scss +0 -5
- package/lib/input/style.d.ts +0 -2
- package/lib/input/types.d.ts +0 -518
- package/lib/input/types.js +0 -2
- package/lib/time-picker/index.d.ts +0 -23
- package/lib/time-picker/index.js +0 -81
- package/lib/time-picker/style.d.ts +0 -2
- package/lib/time-picker/style.js +0 -4
- package/lib/time-picker/types.d.ts +0 -20
- package/lib/time-picker/types.js +0 -2
- package/lib/utils/dingtalk.d.ts +0 -4
- package/lib/utils/dingtalk.js +0 -60
- /package/es/{calendar → message}/types.js +0 -0
- /package/lib/{calendar → message}/types.js +0 -0
package/lib/utils/dingtalk.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addZeroInWorkNo = exports.quitApp = exports.userPicker = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
require("@ali/dingtalk-jsapi/entry/union");
|
|
6
|
-
const quit_1 = tslib_1.__importDefault(require("@ali/dingtalk-jsapi/api/biz/navigation/quit"));
|
|
7
|
-
const close_1 = tslib_1.__importDefault(require("@ali/dingtalk-jsapi/api/biz/navigation/close"));
|
|
8
|
-
const complexPicker_1 = tslib_1.__importDefault(require("@ali/dingtalk-jsapi/api/biz/contact/complexPicker"));
|
|
9
|
-
const dingtalk_jsapi_1 = require("@ali/dingtalk-jsapi");
|
|
10
|
-
function userPicker({ pickedUsers, onSuccess }) {
|
|
11
|
-
(0, complexPicker_1.default)({
|
|
12
|
-
title: '请选择人员', // 标题
|
|
13
|
-
corpId: 'dingd8e1123006514592', // 企业的corpId
|
|
14
|
-
multiple: true, // 是否多选
|
|
15
|
-
limitTips: '超出了', // 超过限定人数返回提示
|
|
16
|
-
maxUsers: 1000, // 最大可选人数
|
|
17
|
-
pickedUsers, // 已选用户
|
|
18
|
-
pickedDepartments: [], // 已选部门
|
|
19
|
-
disabledUsers: [], // 不可选用户
|
|
20
|
-
disabledDepartments: [], // 不可选部门
|
|
21
|
-
requiredUsers: [], // 必选用户(不可取消选中状态)
|
|
22
|
-
requiredDepartments: [], // 必选部门(不可取消选中状态)
|
|
23
|
-
appId: 158, // 微应用Id,企业内部应用查看AgentId
|
|
24
|
-
permissionType: 'GLOBAL', // 可添加权限校验,选人权限,目前只有GLOBAL这个参数
|
|
25
|
-
responseUserOnly: true, // 返回人,或者返回人和部门
|
|
26
|
-
startWithDepartmentId: 0, // 仅支持0和-1
|
|
27
|
-
showRootOrg: true,
|
|
28
|
-
onSuccess,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
exports.userPicker = userPicker;
|
|
32
|
-
function quitApp() {
|
|
33
|
-
try {
|
|
34
|
-
if (dingtalk_jsapi_1.env.platform === 'pc') {
|
|
35
|
-
(0, quit_1.default)({});
|
|
36
|
-
}
|
|
37
|
-
else if (dingtalk_jsapi_1.env.platform === 'android' || dingtalk_jsapi_1.env.platform === 'ios') {
|
|
38
|
-
(0, close_1.default)({});
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
window.close && window.close();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
catch (err) {
|
|
45
|
-
console.log('quitApp error:', err);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
exports.quitApp = quitApp;
|
|
49
|
-
function addZeroInWorkNo(workNo) {
|
|
50
|
-
if (!workNo) {
|
|
51
|
-
return '';
|
|
52
|
-
}
|
|
53
|
-
const workNoLength = workNo.length;
|
|
54
|
-
if (workNoLength.length >= 6) {
|
|
55
|
-
return workNo;
|
|
56
|
-
}
|
|
57
|
-
const str = `0000000${workNo}`;
|
|
58
|
-
return str.slice(str.length - 6, str.length);
|
|
59
|
-
}
|
|
60
|
-
exports.addZeroInWorkNo = addZeroInWorkNo;
|
|
File without changes
|
|
File without changes
|