@officesdk/editor-sdk-core 0.0.0-20 → 0.0.0-22
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/cjs/docx/menu.js +1 -1
- package/cjs/shared/collaboration.js +1 -1
- package/cjs/shared/decryption.js +1 -1
- package/cjs/shared/editor.js +1 -1
- package/cjs/shared/import.js +3 -0
- package/cjs/shared/index.js +1 -1
- package/cjs/shared/menu.js +1 -1
- package/cjs/sheet/export.js +1 -1
- package/cjs/sheet/formula.js +3 -0
- package/cjs/sheet/import-range.js +3 -0
- package/cjs/sheet/index.js +1 -1
- package/cjs/sheet/render.js +1 -1
- package/cjs/sheet/sdk.js +1 -1
- package/cjs/table/filed-context-menu.js +3 -0
- package/cjs/table/index.js +1 -1
- package/cjs/table/list-bar.js +3 -0
- package/cjs/table/sdk.js +1 -1
- package/cjs/table/toolbar.js +3 -0
- package/cjs/table/view-context-menu.js +3 -0
- package/esm/docx/menu.js +1 -1
- package/esm/shared/collaboration.js +1 -1
- package/esm/shared/decryption.js +1 -1
- package/esm/shared/editor.js +1 -1
- package/esm/shared/import.js +2 -0
- package/esm/shared/index.js +1 -1
- package/esm/shared/menu.js +1 -1
- package/esm/sheet/export.js +1 -1
- package/esm/sheet/formula.js +2 -0
- package/esm/sheet/import-range.js +2 -0
- package/esm/sheet/index.js +1 -1
- package/esm/sheet/render.js +1 -1
- package/esm/sheet/sdk.js +1 -1
- package/esm/table/filed-context-menu.js +2 -0
- package/esm/table/index.js +1 -1
- package/esm/table/list-bar.js +2 -0
- package/esm/table/sdk.js +1 -1
- package/esm/table/toolbar.js +2 -0
- package/esm/table/view-context-menu.js +2 -0
- package/package.json +6 -1
- package/types/combine.d.ts +302 -27
- package/types/diagram.d.ts +60 -18
- package/types/docs.d.ts +60 -18
- package/types/docx.d.ts +61 -19
- package/types/pdf.d.ts +60 -18
- package/types/presentation.d.ts +60 -18
- package/types/shared.d.ts +60 -18
- package/types/sheet.d.ts +92 -26
- package/types/table.d.ts +269 -18
- package/cjs/shared/render.js +0 -3
- package/cjs/sheet/import-formula.js +0 -3
- package/esm/shared/render.js +0 -2
- package/esm/sheet/import-formula.js +0 -2
package/types/table.d.ts
CHANGED
|
@@ -76,6 +76,32 @@ export declare abstract class AbstractedTableSDK implements Omit<EditorSDK, 'con
|
|
|
76
76
|
abstract get version(): EditorVersion;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
/**
|
|
80
|
+
* 基础视图菜单项
|
|
81
|
+
*/
|
|
82
|
+
export declare type BaseMenuItemName =
|
|
83
|
+
/** 查看/展开记录 */
|
|
84
|
+
'view'
|
|
85
|
+
/** 复制记录 */
|
|
86
|
+
| 'copy'
|
|
87
|
+
/** 删除记录 */
|
|
88
|
+
| 'remove'
|
|
89
|
+
/** 添加评论 */
|
|
90
|
+
| 'comment'
|
|
91
|
+
/** 获取记录链接 */
|
|
92
|
+
| 'link';
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* 日历视图菜单项
|
|
96
|
+
*/
|
|
97
|
+
export declare type CalendarMenuItemName =
|
|
98
|
+
/** 查看/展开记录 */
|
|
99
|
+
'view'
|
|
100
|
+
/** 复制记录 */
|
|
101
|
+
| 'copy'
|
|
102
|
+
/** 删除记录 */
|
|
103
|
+
| 'remove';
|
|
104
|
+
|
|
79
105
|
export declare type CheckLimitationResult = {
|
|
80
106
|
status: 'limited';
|
|
81
107
|
/**
|
|
@@ -378,6 +404,10 @@ export declare interface EditorCollaborationOptions {
|
|
|
378
404
|
* 是否使用严格的长度校验规则,默认关闭,在开启后如果出现长度校验失败会立刻禁止编辑器继续编写,并将保存状态设置为错误状态
|
|
379
405
|
*/
|
|
380
406
|
strictCLC?: boolean;
|
|
407
|
+
/**
|
|
408
|
+
* 版本号, 需通过内容接口response header获取
|
|
409
|
+
*/
|
|
410
|
+
rev: MaybePromiseValue<number>;
|
|
381
411
|
}
|
|
382
412
|
|
|
383
413
|
/**
|
|
@@ -553,7 +583,7 @@ export declare interface EditorDecryptionOptions {
|
|
|
553
583
|
* @param buffer - 需要解密的二进制数据
|
|
554
584
|
* @returns 解密后的二进制数据
|
|
555
585
|
*/
|
|
556
|
-
|
|
586
|
+
decryptFile?: (buffer: ArrayBuffer) => ArrayBuffer;
|
|
557
587
|
}
|
|
558
588
|
|
|
559
589
|
export declare interface EditorDelta {
|
|
@@ -797,6 +827,37 @@ export declare interface EditorI18nOptions {
|
|
|
797
827
|
|
|
798
828
|
export declare type EditorImageCropPoint = 'nw' | 'north' | 'ne' | 'west' | 'center' | 'east' | 'sw' | 'south' | 'se';
|
|
799
829
|
|
|
830
|
+
export declare interface EditorImportOptions {
|
|
831
|
+
/**
|
|
832
|
+
* 获取导入状态,没有contentUrl时需要显示导入进度
|
|
833
|
+
* 待导入完成后再渲染
|
|
834
|
+
*/
|
|
835
|
+
getImportStatus?: () => Promise<{
|
|
836
|
+
/**
|
|
837
|
+
* 导入进度
|
|
838
|
+
*/
|
|
839
|
+
progress: number;
|
|
840
|
+
/**
|
|
841
|
+
* 导入中
|
|
842
|
+
*/
|
|
843
|
+
status: 'importing';
|
|
844
|
+
} | {
|
|
845
|
+
/**
|
|
846
|
+
* 导入完成
|
|
847
|
+
*/
|
|
848
|
+
status: 'completed';
|
|
849
|
+
} | {
|
|
850
|
+
/**
|
|
851
|
+
* 导入失败
|
|
852
|
+
*/
|
|
853
|
+
status: 'failed';
|
|
854
|
+
/**
|
|
855
|
+
* 导入失败错误信息
|
|
856
|
+
*/
|
|
857
|
+
errorMessage?: string;
|
|
858
|
+
}>;
|
|
859
|
+
}
|
|
860
|
+
|
|
800
861
|
/**
|
|
801
862
|
* 链接配置,抽象打开链接等操作
|
|
802
863
|
*/
|
|
@@ -886,14 +947,18 @@ export declare interface EditorMenuButtonMenuItemConfig<TName extends string> ex
|
|
|
886
947
|
|
|
887
948
|
/**
|
|
888
949
|
* 编辑器菜单配置类型
|
|
889
|
-
*
|
|
950
|
+
* 根据 TName 类型的不同返回不同的菜单配置类型:
|
|
951
|
+
* 1. 当 TName 是对象类型时(如 {pasteMenu: [...]}),会自动提取对象的键作为菜单名称
|
|
952
|
+
* 2. 当 TName 是字符串时,返回普通菜单项配置
|
|
890
953
|
*/
|
|
891
|
-
export declare type EditorMenuEntryConfig<TName extends
|
|
954
|
+
export declare type EditorMenuEntryConfig<TName extends EditorMenuName> = TName extends Record<string, EditorMenuName[]> ? EditorMenuEntryMenuItemConfig<string & keyof TName, TName[keyof TName]> : TName extends string ? EditorMenuHiddenMenuItemConfig<TName> | EditorMenuButtonMenuItemConfig<TName> | EditorMenuLinkMenuItemConfig<TName> | EditorMenuEntryMenuItemConfig<TName, never> : never;
|
|
892
955
|
|
|
893
956
|
/**
|
|
894
957
|
* 子菜单入口配置
|
|
958
|
+
* TName: 菜单项名称(字符串类型)
|
|
959
|
+
* TChildName: 子菜单项名称数组类型,用于配置下一级菜单项
|
|
895
960
|
*/
|
|
896
|
-
export declare interface EditorMenuEntryMenuItemConfig<TName extends string> extends EditorMenuBaseMenuItemConfig<TName> {
|
|
961
|
+
export declare interface EditorMenuEntryMenuItemConfig<TName extends string, TChildName extends EditorMenuName[]> extends EditorMenuBaseMenuItemConfig<TName> {
|
|
897
962
|
type: 'entry';
|
|
898
963
|
/**
|
|
899
964
|
* 是否禁用菜单项,禁用后菜单项依旧显示不过变为灰色,不可点击
|
|
@@ -911,8 +976,9 @@ export declare interface EditorMenuEntryMenuItemConfig<TName extends string> ext
|
|
|
911
976
|
/**
|
|
912
977
|
* 下一级菜单配置,下一级菜单配置项和上一级相同
|
|
913
978
|
* 如果下一级仍然是 entry 类型,可以无限向下扩展
|
|
979
|
+
* 只有当 TName 是对象类型时才应有子菜单
|
|
914
980
|
*/
|
|
915
|
-
children?: EditorMenuEntryConfig<
|
|
981
|
+
children?: TChildName extends EditorMenuName[] ? EditorMenuEntryConfig<TChildName[number]>[] : never;
|
|
916
982
|
}
|
|
917
983
|
|
|
918
984
|
/**
|
|
@@ -977,11 +1043,18 @@ export declare interface EditorMenuLinkMenuItemConfig<TName extends string> exte
|
|
|
977
1043
|
url?: string;
|
|
978
1044
|
}
|
|
979
1045
|
|
|
1046
|
+
/**
|
|
1047
|
+
* 菜单项名称类型
|
|
1048
|
+
* 可以是字符串或包含子菜单数组的对象
|
|
1049
|
+
* 如: 'copy' 或 { pasteMenu: ['pasteAll', 'pasteHead', 'pasteValueOnly'] }
|
|
1050
|
+
*/
|
|
1051
|
+
export declare type EditorMenuName = string | Record<string, EditorMenuName[]>;
|
|
1052
|
+
|
|
980
1053
|
/**
|
|
981
1054
|
* 菜单栏相关配置,目前菜单栏不是所有套件都支持,
|
|
982
1055
|
* 菜单栏是指的编辑器最上放可以展开二级菜单的那一栏。
|
|
983
1056
|
*/
|
|
984
|
-
export declare interface EditorMenuOptions<TName extends
|
|
1057
|
+
export declare interface EditorMenuOptions<TName extends EditorMenuName> {
|
|
985
1058
|
/**
|
|
986
1059
|
* 菜单栏是否隐藏,设置为true, 则整个菜单栏不显示
|
|
987
1060
|
*/
|
|
@@ -992,13 +1065,15 @@ export declare interface EditorMenuOptions<TName extends string> {
|
|
|
992
1065
|
disabled?: boolean;
|
|
993
1066
|
/**
|
|
994
1067
|
* 菜单栏一级菜单配置,指显示在菜单栏上的菜单项。
|
|
1068
|
+
* 支持普通菜单项和嵌套菜单项
|
|
995
1069
|
*/
|
|
996
1070
|
entries?: EditorMenuEntryConfig<TName>[];
|
|
997
1071
|
/**
|
|
998
1072
|
* 菜单栏功能按钮配置
|
|
999
1073
|
* 更加间接的配置项
|
|
1074
|
+
* 仅在 TName 为字符串类型时有效
|
|
1000
1075
|
*/
|
|
1001
|
-
features?: Partial<Record<TName, EditorMenuFeatureConfig
|
|
1076
|
+
features?: TName extends string ? Partial<Record<TName, EditorMenuFeatureConfig>> : never;
|
|
1002
1077
|
/**
|
|
1003
1078
|
* 自定义按钮配置
|
|
1004
1079
|
*/
|
|
@@ -1112,6 +1187,10 @@ export declare interface EditorOptions {
|
|
|
1112
1187
|
* 导出设置
|
|
1113
1188
|
*/
|
|
1114
1189
|
export?: EditorExportOptions;
|
|
1190
|
+
/**
|
|
1191
|
+
* 导入相关设置
|
|
1192
|
+
*/
|
|
1193
|
+
import?: EditorImportOptions;
|
|
1115
1194
|
/**
|
|
1116
1195
|
* 解密设置
|
|
1117
1196
|
*/
|
|
@@ -1120,10 +1199,6 @@ export declare interface EditorOptions {
|
|
|
1120
1199
|
* 网络请求设置
|
|
1121
1200
|
*/
|
|
1122
1201
|
http?: HTTPProxy;
|
|
1123
|
-
/**
|
|
1124
|
-
* 编辑器渲染设置项
|
|
1125
|
-
*/
|
|
1126
|
-
render?: EditorRenderOptions;
|
|
1127
1202
|
/**
|
|
1128
1203
|
* 编辑器 UI 相关
|
|
1129
1204
|
*/
|
|
@@ -1251,13 +1326,6 @@ export declare interface EditorRemoteUploadableFile extends EditorBaseUploadable
|
|
|
1251
1326
|
raw?: never;
|
|
1252
1327
|
}
|
|
1253
1328
|
|
|
1254
|
-
export declare interface EditorRenderOptions {
|
|
1255
|
-
/**
|
|
1256
|
-
* 渲染的容器
|
|
1257
|
-
*/
|
|
1258
|
-
container?: HTMLElement;
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
1329
|
/**
|
|
1262
1330
|
* 编辑器通用接口
|
|
1263
1331
|
*/
|
|
@@ -1758,6 +1826,48 @@ export declare enum FileType {
|
|
|
1758
1826
|
CloudFile = 3
|
|
1759
1827
|
}
|
|
1760
1828
|
|
|
1829
|
+
/**
|
|
1830
|
+
* 画廊视图菜单项
|
|
1831
|
+
*/
|
|
1832
|
+
export declare type GalleryMenuItemName = BaseMenuItemName | 'insert';
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* 甘特图视图菜单项
|
|
1836
|
+
*/
|
|
1837
|
+
export declare type GanttMenuItemName = GridMenuItemName
|
|
1838
|
+
/** 设置为里程碑 */
|
|
1839
|
+
| 'milestone'
|
|
1840
|
+
/** 取消里程碑 */
|
|
1841
|
+
| 'cancelMilestone'
|
|
1842
|
+
/** 清除内容 */
|
|
1843
|
+
| 'clear';
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* 网格视图菜单项
|
|
1847
|
+
*/
|
|
1848
|
+
export declare type GridMenuItemName = BaseMenuItemName
|
|
1849
|
+
/** 粘贴 */
|
|
1850
|
+
| 'pasteValue'
|
|
1851
|
+
/** 选择性粘贴 - 含子菜单 */
|
|
1852
|
+
| {
|
|
1853
|
+
pasteMenu: [
|
|
1854
|
+
/** 粘贴内容及表头 */
|
|
1855
|
+
'pasteAll',
|
|
1856
|
+
/** 仅粘贴表头 */
|
|
1857
|
+
'pasteHead',
|
|
1858
|
+
/** 仅粘贴内容 */
|
|
1859
|
+
'pasteValueOnly'
|
|
1860
|
+
];
|
|
1861
|
+
}
|
|
1862
|
+
/** 向上插入记录 */
|
|
1863
|
+
| 'insertBefore'
|
|
1864
|
+
/** 向下插入记录 */
|
|
1865
|
+
| 'insertAfter'
|
|
1866
|
+
/** 新增子任务 */
|
|
1867
|
+
| 'newSubRecord'
|
|
1868
|
+
/** 展开父任务 */
|
|
1869
|
+
| 'parentRecord';
|
|
1870
|
+
|
|
1761
1871
|
/**
|
|
1762
1872
|
* 请求、响应头
|
|
1763
1873
|
*/
|
|
@@ -1865,6 +1975,15 @@ export declare interface HTTPResponse<Data = unknown> {
|
|
|
1865
1975
|
*/
|
|
1866
1976
|
export declare type HTTPResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
|
|
1867
1977
|
|
|
1978
|
+
/**
|
|
1979
|
+
* 看板视图菜单项
|
|
1980
|
+
*/
|
|
1981
|
+
export declare type KanbanMenuItemName = BaseMenuItemName
|
|
1982
|
+
/** 编辑分组 */
|
|
1983
|
+
| 'editGroup'
|
|
1984
|
+
/** 移除分组 */
|
|
1985
|
+
| 'removeGroup';
|
|
1986
|
+
|
|
1868
1987
|
export declare interface Limitation {
|
|
1869
1988
|
/**
|
|
1870
1989
|
* 限制原因(错误码)
|
|
@@ -1886,6 +2005,21 @@ export declare interface Limitation {
|
|
|
1886
2005
|
min?: number;
|
|
1887
2006
|
}
|
|
1888
2007
|
|
|
2008
|
+
/**
|
|
2009
|
+
* 列表视图菜单项
|
|
2010
|
+
*/
|
|
2011
|
+
export declare type ListMenuItemName = BaseMenuItemName
|
|
2012
|
+
/** 向上插入记录 */
|
|
2013
|
+
| 'insertBefore'
|
|
2014
|
+
/** 向下插入记录 */
|
|
2015
|
+
| 'insertAfter'
|
|
2016
|
+
/** 新增子任务 */
|
|
2017
|
+
| 'newSubRecord'
|
|
2018
|
+
/** 展开父任务 */
|
|
2019
|
+
| 'parentRecord'
|
|
2020
|
+
/** 获取指向此记录的链接 */
|
|
2021
|
+
| 'copyRecordLink';
|
|
2022
|
+
|
|
1889
2023
|
export declare type MaybePromiseValue<T> = T | Promise<T>;
|
|
1890
2024
|
|
|
1891
2025
|
/**
|
|
@@ -2186,6 +2320,49 @@ export declare type TableEditorDeltaActionName = 'CreateTable' | 'UpdateTableNam
|
|
|
2186
2320
|
*/
|
|
2187
2321
|
export declare type TableEditorOptions = Omit<EditorOptions, 'content'>;
|
|
2188
2322
|
|
|
2323
|
+
export declare type TableFieldContextMenuEntryConfig = EditorMenuEntryConfig<TableFieldContextMenuFeatureButtonName>;
|
|
2324
|
+
|
|
2325
|
+
export declare type TableFieldContextMenuFeatureButtonConfig = EditorMenuEntryConfig<TableFieldContextMenuFeatureButtonName>;
|
|
2326
|
+
|
|
2327
|
+
export declare type TableFieldContextMenuFeatureButtonName =
|
|
2328
|
+
/** 更新字段 */
|
|
2329
|
+
'updateField'
|
|
2330
|
+
/** 添加字段描述 */
|
|
2331
|
+
| 'addFieldDesc'
|
|
2332
|
+
/** 在左侧插入 */
|
|
2333
|
+
| 'insertLeft'
|
|
2334
|
+
/** 在右侧插入 */
|
|
2335
|
+
| 'insertRight'
|
|
2336
|
+
/** 复制字段 */
|
|
2337
|
+
| 'copyField'
|
|
2338
|
+
/** 升序排序 */
|
|
2339
|
+
| 'sortOrderAsc'
|
|
2340
|
+
/** 降序排序 */
|
|
2341
|
+
| 'sortOrderDesc'
|
|
2342
|
+
/** 过滤 */
|
|
2343
|
+
| 'filter'
|
|
2344
|
+
/** 分组 */
|
|
2345
|
+
| 'group'
|
|
2346
|
+
/** 隐藏 */
|
|
2347
|
+
| 'hide'
|
|
2348
|
+
/** 删除 */
|
|
2349
|
+
| 'delete';
|
|
2350
|
+
|
|
2351
|
+
export declare type TableFieldContextMenuOptions = EditorMenuOptions<TableFieldContextMenuFeatureButtonName>;
|
|
2352
|
+
|
|
2353
|
+
export declare type TableListBarButtonName = 'tableMenu' | 'addTable' | 'tabLeft' | 'tabRight' | 'exportToExcel';
|
|
2354
|
+
|
|
2355
|
+
export declare type TableListBarCustomButtonConfig = Record<string, Omit<EditorToolbarFeatureButton<string>, 'label' | 'icon' | 'tooltip'> & {
|
|
2356
|
+
icon: string;
|
|
2357
|
+
tooltip: string;
|
|
2358
|
+
}>;
|
|
2359
|
+
|
|
2360
|
+
export declare type TableListBarFeatureButtonConfig = EditorToolbarFeatureButtonConfig<TableListBarButtonName>;
|
|
2361
|
+
|
|
2362
|
+
export declare type TableListBarOptions = Omit<EditorToolbarOptions<TableListBarButtonName>, 'custom'> & {
|
|
2363
|
+
custom?: TableListBarCustomButtonConfig;
|
|
2364
|
+
};
|
|
2365
|
+
|
|
2189
2366
|
export declare interface TableSDKOptions extends TableEditorOptions {
|
|
2190
2367
|
/**
|
|
2191
2368
|
* 字体配置
|
|
@@ -2195,6 +2372,22 @@ export declare interface TableSDKOptions extends TableEditorOptions {
|
|
|
2195
2372
|
* 接口资源配置
|
|
2196
2373
|
*/
|
|
2197
2374
|
resourceConfig?: ResourceConfig;
|
|
2375
|
+
/**
|
|
2376
|
+
* 工具栏相关配置
|
|
2377
|
+
*/
|
|
2378
|
+
toolbar?: TableToolbarOptions;
|
|
2379
|
+
/**
|
|
2380
|
+
* 列表栏相关配置
|
|
2381
|
+
*/
|
|
2382
|
+
listBar?: TableListBarOptions;
|
|
2383
|
+
/**
|
|
2384
|
+
* 字段上下文菜单相关配置
|
|
2385
|
+
*/
|
|
2386
|
+
fieldContextMenu?: TableFieldContextMenuOptions;
|
|
2387
|
+
/**
|
|
2388
|
+
* 表格上下文菜单相关配置
|
|
2389
|
+
*/
|
|
2390
|
+
viewContextMenu?: TableViewContextMenuOptions;
|
|
2198
2391
|
}
|
|
2199
2392
|
|
|
2200
2393
|
export declare interface TableSelection {
|
|
@@ -2319,6 +2512,64 @@ export declare type TableSelectionValue = {
|
|
|
2319
2512
|
columnCount: number;
|
|
2320
2513
|
};
|
|
2321
2514
|
|
|
2515
|
+
export declare type TableToolbarCalendarButtonName = 'calendarSettings' | 'calendarPendingItems';
|
|
2516
|
+
|
|
2517
|
+
export declare type TableToolbarCommonButtonName =
|
|
2518
|
+
/** 撤销 */
|
|
2519
|
+
'undo'
|
|
2520
|
+
/** 重做 */
|
|
2521
|
+
| 'redo'
|
|
2522
|
+
/** 添加记录 */
|
|
2523
|
+
| 'addRecord'
|
|
2524
|
+
/** 排序 */
|
|
2525
|
+
| 'sort'
|
|
2526
|
+
/** 过滤 */
|
|
2527
|
+
| 'filter'
|
|
2528
|
+
/** 分组 */
|
|
2529
|
+
| 'group'
|
|
2530
|
+
/** 行高 */
|
|
2531
|
+
| 'rowHeight'
|
|
2532
|
+
/** 切换子任务 */
|
|
2533
|
+
| 'toggleSubtask'
|
|
2534
|
+
/** 字段管理 */
|
|
2535
|
+
| 'fieldManage'
|
|
2536
|
+
/** 评论 */
|
|
2537
|
+
| 'comment'
|
|
2538
|
+
/** 搜索 */
|
|
2539
|
+
| 'search'
|
|
2540
|
+
/** 历史 */
|
|
2541
|
+
| 'history'
|
|
2542
|
+
/** 全屏 */
|
|
2543
|
+
| 'fullscreen'
|
|
2544
|
+
/** 表单 */
|
|
2545
|
+
| 'form';
|
|
2546
|
+
|
|
2547
|
+
export declare type TableToolbarFeatureButtonConfig = EditorToolbarFeatureButtonConfig<TableToolbarFeatureButtonName>;
|
|
2548
|
+
|
|
2549
|
+
export declare type TableToolbarFeatureButtonName = TableToolbarCommonButtonName | TableToolbarKanbanButtonName | TableToolbarGanttButtonName | TableToolbarGalleryButtonName | TableToolbarCalendarButtonName | TableToolbarTimelineButtonName;
|
|
2550
|
+
|
|
2551
|
+
export declare type TableToolbarGalleryButtonName = 'gallerySettings';
|
|
2552
|
+
|
|
2553
|
+
export declare type TableToolbarGanttButtonName = 'ganttSettings';
|
|
2554
|
+
|
|
2555
|
+
export declare type TableToolbarKanbanButtonName = 'kanbanSettings';
|
|
2556
|
+
|
|
2557
|
+
export declare type TableToolbarOptions = Omit<EditorToolbarOptions<TableToolbarFeatureButtonName>, 'custom'>;
|
|
2558
|
+
|
|
2559
|
+
export declare type TableToolbarTimelineButtonName = 'timelineSettings';
|
|
2560
|
+
|
|
2561
|
+
export declare type TableViewContextMenuEntryConfig = EditorMenuEntryConfig<TableViewContextMenuFeatureButtonName>;
|
|
2562
|
+
|
|
2563
|
+
export declare type TableViewContextMenuFeatureButtonConfig = EditorMenuEntryConfig<TableViewContextMenuFeatureButtonName>;
|
|
2564
|
+
|
|
2565
|
+
/**
|
|
2566
|
+
* 表格视图上下文菜单按钮特性名称
|
|
2567
|
+
* 包含所有视图类型的菜单项
|
|
2568
|
+
*/
|
|
2569
|
+
export declare type TableViewContextMenuFeatureButtonName = GridMenuItemName | KanbanMenuItemName | GalleryMenuItemName | CalendarMenuItemName | GanttMenuItemName | ListMenuItemName;
|
|
2570
|
+
|
|
2571
|
+
export declare type TableViewContextMenuOptions = EditorMenuOptions<TableViewContextMenuFeatureButtonName>;
|
|
2572
|
+
|
|
2322
2573
|
/**
|
|
2323
2574
|
* 工具箱工具项接口
|
|
2324
2575
|
*/
|
package/cjs/shared/render.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9zcmMvc2hhcmVkL3JlbmRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBFZGl0b3JSZW5kZXJPcHRpb25zIHtcbiAgLyoqXG4gICAqIOa4suafk+eahOWuueWZqFxuICAgKi9cbiAgY29udGFpbmVyPzogSFRNTEVsZW1lbnQ7XG59XG4iXX0=
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1wb3J0LWZvcm11bGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9jb3JlL3NyYy9zaGVldC9pbXBvcnQtZm9ybXVsYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBFZGl0b3JGZWF0dXJlQ29uZmlnIH0gZnJvbSAnLi4vc2hhcmVkJztcblxuZXhwb3J0IGludGVyZmFjZSBTaGVldEltcG9ydEZvcm11bGFPcHRpb25zIGV4dGVuZHMgRWRpdG9yRmVhdHVyZUNvbmZpZyB7XG4gIC8qKlxuICAgKiDms6jlhozkuIDkuKrnm5HlkKzlmajvvIznlKjkuo7lnKjot6jooajmoLzlvJXnlKjnu5Pmnpzlj5HnlJ/lj5jljJbml7bop6blj5FcbiAgICogQHBhcmFtIGxpc3RlbmVyIC0g5Zue6LCD5Ye95pWw77yM5Y+C5pWwIGd1aWRMaXN0IOihqOekuuWPkeeUn+WPmOWMlueahCBndWlkIOWIl+ihqO+8jOWPr+S7peaYr+Wtl+espuS4suaIluWtl+espuS4suaVsOe7hOOAglxuICAgKiBAcmV0dXJucyDkuIDkuKrlh73mlbDvvIznlKjkuo7np7vpmaTlvZPliY3ms6jlhoznmoTnm5HlkKzlmajjgIJcbiAgICovXG4gIGFkZENoYW5nZWRMaXN0ZW5lcj86IChsaXN0ZW5lcjogKGd1aWRMaXN0OiBzdHJpbmcgfCBzdHJpbmdbXSkgPT4gdm9pZCkgPT4gKCkgPT4gdm9pZDtcbn1cbiJdfQ==
|
package/esm/shared/render.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9zcmMvc2hhcmVkL3JlbmRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBFZGl0b3JSZW5kZXJPcHRpb25zIHtcbiAgLyoqXG4gICAqIOa4suafk+eahOWuueWZqFxuICAgKi9cbiAgY29udGFpbmVyPzogSFRNTEVsZW1lbnQ7XG59XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1wb3J0LWZvcm11bGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9jb3JlL3NyYy9zaGVldC9pbXBvcnQtZm9ybXVsYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBFZGl0b3JGZWF0dXJlQ29uZmlnIH0gZnJvbSAnLi4vc2hhcmVkJztcblxuZXhwb3J0IGludGVyZmFjZSBTaGVldEltcG9ydEZvcm11bGFPcHRpb25zIGV4dGVuZHMgRWRpdG9yRmVhdHVyZUNvbmZpZyB7XG4gIC8qKlxuICAgKiDms6jlhozkuIDkuKrnm5HlkKzlmajvvIznlKjkuo7lnKjot6jooajmoLzlvJXnlKjnu5Pmnpzlj5HnlJ/lj5jljJbml7bop6blj5FcbiAgICogQHBhcmFtIGxpc3RlbmVyIC0g5Zue6LCD5Ye95pWw77yM5Y+C5pWwIGd1aWRMaXN0IOihqOekuuWPkeeUn+WPmOWMlueahCBndWlkIOWIl+ihqO+8jOWPr+S7peaYr+Wtl+espuS4suaIluWtl+espuS4suaVsOe7hOOAglxuICAgKiBAcmV0dXJucyDkuIDkuKrlh73mlbDvvIznlKjkuo7np7vpmaTlvZPliY3ms6jlhoznmoTnm5HlkKzlmajjgIJcbiAgICovXG4gIGFkZENoYW5nZWRMaXN0ZW5lcj86IChsaXN0ZW5lcjogKGd1aWRMaXN0OiBzdHJpbmcgfCBzdHJpbmdbXSkgPT4gdm9pZCkgPT4gKCkgPT4gdm9pZDtcbn1cbiJdfQ==
|