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