tadcode-wpsjs 1.5.0 → 1.5.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/package.json +1 -1
- package/types/KSDrive.d.ts +72 -72
- package/types/application/Criteria.d.ts +31 -31
- package/types/application/Field.d.ts +25 -25
- package/types/application/FieldApi.d.ts +2 -2
- package/types/application/FieldDescriptor.d.ts +87 -88
- package/types/application/FieldDescriptors.d.ts +25 -25
- package/types/application/Fields.d.ts +14 -20
- package/types/application/Font.d.ts +10 -10
- package/types/application/GanttViewUI.d.ts +25 -27
- package/types/application/Record.d.ts +22 -22
- package/types/application/RecordApi.d.ts +2 -2
- package/types/application/RecordRange.d.ts +72 -73
- package/types/application/Records.d.ts +24 -25
- package/types/application/SelectionApi.d.ts +29 -29
- package/types/application/Sheet.d.ts +59 -60
- package/types/application/SheetApi.d.ts +2 -2
- package/types/application/Sheets.d.ts +2 -3
- package/types/application/View.d.ts +50 -51
- package/types/application/ViewApi.d.ts +26 -26
- package/types/application/Views.d.ts +25 -35
- package/types/application/Window.d.ts +52 -53
- package/types/application/global.d.ts +0 -2
- package/types/application/index.d.ts +18 -29
- package/types/application/patch.d.ts +46 -50
- package/types/global.d.ts +1 -1
- package/types/index.d.ts +4 -4
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
declare module 'application:datatable' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
1
|
+
declare module 'application:datatable' {
|
|
2
|
+
// 基础类型定义
|
|
3
|
+
interface HookParams {
|
|
4
|
+
recordId: string
|
|
5
|
+
activeFieldId?: string
|
|
6
|
+
isShowComment?: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface Hook {
|
|
10
|
+
InvokeSingle(callback: (params: HookParams) => boolean): void
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Navigator 类型(根据文档引用)
|
|
14
|
+
interface Navigator {
|
|
15
|
+
// Navigator属性
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// NoticeBar 类型(根据文档引用)
|
|
19
|
+
interface NoticeBar {
|
|
20
|
+
// NoticeBar属性
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// FormViewUI 类型(根据文档引用)
|
|
24
|
+
interface FormViewUI {
|
|
25
|
+
// FormViewUI属性
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// GridViewUI 类型(根据文档引用)
|
|
29
|
+
interface GridViewUI {
|
|
30
|
+
// GridViewUI属性
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Window 接口
|
|
34
|
+
export interface Window {
|
|
35
|
+
// 属性
|
|
36
|
+
readonly Navigator: Navigator
|
|
37
|
+
readonly NoticeBar: NoticeBar
|
|
38
|
+
readonly FormViewUI: FormViewUI
|
|
39
|
+
readonly GanttViewUI: GanttViewUI
|
|
40
|
+
readonly GridViewUI: GridViewUI
|
|
41
|
+
|
|
42
|
+
// 方法
|
|
43
|
+
SetLayout(isClassic: boolean): void
|
|
44
|
+
BailHook(CmbId: string): Hook
|
|
45
|
+
DisplayRecord(RecodId?: string): void
|
|
46
|
+
HiddenAllRecord(): void
|
|
47
|
+
InterceptCopyRecordLink?(): void // 文档中有列出但无详细说明
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// 导出 Window 类型
|
|
51
|
+
export type { }
|
|
52
|
+
}
|
|
@@ -1,29 +1,18 @@
|
|
|
1
|
-
declare module 'application:datatable' {
|
|
2
|
-
|
|
3
|
-
SheetApi,
|
|
4
|
-
ViewApi,
|
|
5
|
-
FieldApi,
|
|
6
|
-
RecordApi,
|
|
7
|
-
SelectionApi,
|
|
8
|
-
|
|
9
|
-
Sheets,
|
|
10
|
-
Sheet,
|
|
11
|
-
View,
|
|
12
|
-
Window
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Record: RecordApi,
|
|
20
|
-
Selection: SelectionApi,
|
|
21
|
-
|
|
22
|
-
Sheets: Sheets,
|
|
23
|
-
ActiveSheet: Sheet,
|
|
24
|
-
ActiveView: View,
|
|
25
|
-
Window: Window,
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type { Application }
|
|
29
|
-
}
|
|
1
|
+
declare module 'application:datatable' {
|
|
2
|
+
interface Application {
|
|
3
|
+
Sheet: SheetApi,
|
|
4
|
+
View: ViewApi,
|
|
5
|
+
Field: FieldApi,
|
|
6
|
+
Record: RecordApi,
|
|
7
|
+
Selection: SelectionApi,
|
|
8
|
+
|
|
9
|
+
Sheets: Sheets,
|
|
10
|
+
ActiveSheet: Sheet,
|
|
11
|
+
ActiveView: View,
|
|
12
|
+
Window: Window,
|
|
13
|
+
|
|
14
|
+
UserInfo: UserInfo,
|
|
15
|
+
FileInfo: FileInfo,
|
|
16
|
+
}
|
|
17
|
+
export default Application
|
|
18
|
+
}
|
|
@@ -1,54 +1,50 @@
|
|
|
1
|
+
|
|
1
2
|
declare module 'application:datatable' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
interface RecordRange2 {
|
|
49
|
-
(Index?: number | string | any[], Field?: number | string | any[]): RecordRange
|
|
50
|
-
}
|
|
3
|
+
|
|
4
|
+
interface Sheets {
|
|
5
|
+
(Index: number | string): Sheet
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface Views {
|
|
9
|
+
(Index: number | string): View
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface View {
|
|
13
|
+
/**行高 grid特有 */
|
|
14
|
+
RowHeight: 'Short' | 'Medium' | 'Tall' | 'ExtraTall'
|
|
15
|
+
/**冻结的行数 grid特有 */
|
|
16
|
+
FrozenCols: number
|
|
17
|
+
/**开始日期字段ID Gantt Calendar特有 */
|
|
18
|
+
BeginField: string
|
|
19
|
+
/**结束日期字段ID Gantt Calendar特有 */
|
|
20
|
+
EndField: string
|
|
21
|
+
/**结束日期字段ID Gantt Calendar特有 */
|
|
22
|
+
TimelineColor: string
|
|
23
|
+
/**工作时间统计忽略节假日 Gantt特有 */
|
|
24
|
+
IsOnlyWorkDay: boolean
|
|
25
|
+
/**查询字段配置 Query特有 */
|
|
26
|
+
QueryFields: {
|
|
27
|
+
conditionCanBlank: boolean, // 是否必填
|
|
28
|
+
customPrompt: string, // 自定义提示语
|
|
29
|
+
enableScanCodeToInput: boolean, // 是否允许扫码输入
|
|
30
|
+
fieldId: string, // 字段ID
|
|
31
|
+
needSecondCheck: boolean, // 电话字段时是否校验号码
|
|
32
|
+
op: "Equals" | "Contains" | "Specified Value" // 匹配方式,参看下面Description
|
|
33
|
+
}[]
|
|
34
|
+
/**背景图片URL Query特有 */
|
|
35
|
+
BackgroundImage: string
|
|
36
|
+
/**标题字段ID Calendar特有 */
|
|
37
|
+
TitleField: string
|
|
38
|
+
|
|
39
|
+
OnCreate(callback: (data: any) => void): { Destroy(): void }
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface Records {
|
|
43
|
+
(Index: number | string): Record
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
interface RecordRange {
|
|
47
|
+
(Index?: number | string | any[], Field?: number | string | any[]): RecordRange
|
|
51
48
|
}
|
|
52
49
|
|
|
53
|
-
export { Patch }
|
|
54
50
|
}
|
package/types/global.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare module 'tadcode-wpsjs:global' {
|
|
2
|
-
import type
|
|
2
|
+
import type DBApplication from 'application:datatable'
|
|
3
3
|
import type { WithPromise } from 'tadcode-wpsjs:typetools'
|
|
4
4
|
import type { KSDrive } from 'tadcode-wpsjs:global'
|
|
5
5
|
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference path="global.d.ts" />
|
|
2
|
-
/// <reference path="KSDrive.d.ts" />
|
|
3
|
-
/// <reference path="return.response.d.ts" />
|
|
4
|
-
/// <reference path="TypeTools.d.ts" />
|
|
1
|
+
/// <reference path="global.d.ts" />
|
|
2
|
+
/// <reference path="KSDrive.d.ts" />
|
|
3
|
+
/// <reference path="return.response.d.ts" />
|
|
4
|
+
/// <reference path="TypeTools.d.ts" />
|