tadcode-wpsjs 1.4.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.
@@ -1,57 +1,52 @@
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
- // GanttViewUI 类型(根据文档引用)
29
- interface GanttViewUI {
30
- // GanttViewUI属性
31
- }
32
-
33
- // GridViewUI 类型(根据文档引用)
34
- interface GridViewUI {
35
- // GridViewUI属性
36
- }
37
-
38
- // Window 接口
39
- interface Window {
40
- // 属性
41
- readonly Navigator: Navigator;
42
- readonly NoticeBar: NoticeBar;
43
- readonly FormViewUI: FormViewUI;
44
- readonly GanttViewUI: GanttViewUI;
45
- readonly GridViewUI: GridViewUI;
46
-
47
- // 方法
48
- SetLayout(isClassic: boolean): void;
49
- BailHook(CmbId: string): Hook;
50
- DisplayRecord(RecodId?: string): void;
51
- HiddenAllRecord(): void;
52
- InterceptCopyRecordLink?(): void; // 文档中有列出但无详细说明
53
- }
54
-
55
- // 导出 Window 类型
56
- export type { Window };
57
- }
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,6 +1,4 @@
1
1
  declare module 'application:datatable' {
2
- import type { RecordRange } from 'application:datatable'
3
-
4
2
  interface UserInfo {
5
3
  id: string
6
4
  name: string
@@ -1,29 +1,18 @@
1
- declare module 'application:datatable' {
2
- import type {
3
- SheetApi,
4
- ViewApi,
5
- FieldApi,
6
- RecordApi,
7
- SelectionApi,
8
-
9
- Sheets,
10
- Sheet,
11
- View,
12
- Window
13
- } from "application:datatable"
14
-
15
- interface Application {
16
- Sheet: SheetApi,
17
- View: ViewApi,
18
- Field: FieldApi,
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,10 +1,50 @@
1
+
1
2
  declare module 'application:datatable' {
2
- import { Sheet } from 'application:datatable'
3
- namespace Patch {
4
- interface Sheets {
5
- (Index: number | string): Sheet
6
- }
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
7
48
  }
8
49
 
9
- export { Patch }
10
50
  }
package/types/global.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare module 'tadcode-wpsjs:global' {
2
- import type { Application as DBApplication } from 'application:datatable'
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" />