@pisell/materials 3.3.32 → 3.3.34
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +24 -24
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +25 -25
- package/es/components/buttonGroupEdit/index.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.js +6 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +1 -1
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +4 -12
- package/es/components/dataSourceComponents/fields/utils.js +0 -5
- package/es/components/div/index.js +45 -8
- package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.js +4 -3
- package/es/components/pisellDraggable/components/TreeItem/index.js +1 -1
- package/es/components/pisellDraggable/index.js +165 -127
- package/es/components/pisellDropSort/PisellDropSort.js +10 -3
- package/es/components/pisellDropSort/components/SortableItem/index.js +6 -1
- package/es/components/pisellDropSort/components/SortableItem/index.less +0 -1
- package/es/components/pisellMenu/PisellMenu.js +1 -0
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +79 -11
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.less +14 -0
- package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +3 -0
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +3 -2
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/locales/en-US.js +4 -0
- package/es/locales/zh-CN.js +4 -0
- package/es/locales/zh-TW.js +4 -0
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/buttonGroupEdit/index.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.js +6 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +1 -1
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +7 -15
- package/lib/components/dataSourceComponents/fields/utils.js +0 -5
- package/lib/components/div/index.js +33 -3
- package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.js +4 -7
- package/lib/components/pisellDraggable/components/TreeItem/index.js +12 -2
- package/lib/components/pisellDraggable/index.js +114 -80
- package/lib/components/pisellDropSort/PisellDropSort.js +9 -3
- package/lib/components/pisellDropSort/components/SortableItem/index.js +5 -0
- package/lib/components/pisellDropSort/components/SortableItem/index.less +0 -1
- package/lib/components/pisellMenu/PisellMenu.js +1 -0
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +64 -9
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.less +14 -0
- package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +3 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +3 -2
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/locales/en-US.js +4 -0
- package/lib/locales/zh-CN.js +4 -0
- package/lib/locales/zh-TW.js +4 -0
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/div/meta.ts +39 -4
- package/lowcode/pisell-navigation-menu/meta.ts +12 -0
- package/package.json +3 -3
- package/es/components/appVersionControl/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/es/components/div/index.d.ts +0 -8
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
- package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -23
- package/es/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
- package/es/components/pisellDraggable/index.d.ts +0 -32
- package/es/components/pisellDropSort/PisellDropSort.d.ts +0 -5
- package/es/components/pisellDropSort/components/SortableItem/index.d.ts +0 -25
- package/es/components/pisellDropSort/types.d.ts +0 -52
- package/es/components/pisellMenu/PisellMenu.d.ts +0 -9
- package/es/components/pisellMenu/types.d.ts +0 -26
- package/es/components/pisellNavigationMenu/types.d.ts +0 -64
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/types.d.ts +0 -251
- package/es/components/versionModal/index.d.ts +0 -23
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/lib/components/div/index.d.ts +0 -8
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
- package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -23
- package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
- package/lib/components/pisellDraggable/index.d.ts +0 -32
- package/lib/components/pisellDropSort/PisellDropSort.d.ts +0 -5
- package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +0 -25
- package/lib/components/pisellDropSort/types.d.ts +0 -52
- package/lib/components/pisellMenu/PisellMenu.d.ts +0 -9
- package/lib/components/pisellMenu/types.d.ts +0 -26
- package/lib/components/pisellNavigationMenu/types.d.ts +0 -64
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/types.d.ts +0 -251
- package/lib/components/versionModal/index.d.ts +0 -23
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import { FilterType } from "../filter/types";
|
|
2
|
-
import { SortItemProps } from "../sort/types";
|
|
3
|
-
import React from "react";
|
|
4
|
-
export declare type StorageMode = "" | "localStorage";
|
|
5
|
-
/**
|
|
6
|
-
* 排序总配置
|
|
7
|
-
*/
|
|
8
|
-
export declare type SortType = {
|
|
9
|
-
/** 排序是否展示 */
|
|
10
|
-
show: boolean;
|
|
11
|
-
/** 排序存储模式 */
|
|
12
|
-
storageMode: StorageMode;
|
|
13
|
-
list: SortItemProps[];
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* 列展示总配置
|
|
17
|
-
*/
|
|
18
|
-
export declare type ColumnSettingType = {
|
|
19
|
-
/** 列设置是否展示 */
|
|
20
|
-
show: boolean;
|
|
21
|
-
/** 列设置存储模式 */
|
|
22
|
-
storageMode: StorageMode;
|
|
23
|
-
};
|
|
24
|
-
declare type DataSourceListItemType = {
|
|
25
|
-
isCustom: boolean;
|
|
26
|
-
columnKey?: string;
|
|
27
|
-
label?: string;
|
|
28
|
-
name?: string | string[];
|
|
29
|
-
isHidden?: boolean;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* 数据源分组总配置
|
|
33
|
-
*/
|
|
34
|
-
export declare type DataSourceGroupType = {
|
|
35
|
-
/** 分组设置是否展示 */
|
|
36
|
-
show: boolean;
|
|
37
|
-
/** 分组设置存储模式 */
|
|
38
|
-
storageMode: StorageMode;
|
|
39
|
-
/** */
|
|
40
|
-
list: DataSourceListItemType[];
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Gallery封面总配置
|
|
44
|
-
*/
|
|
45
|
-
declare type GalleryCoverType = {
|
|
46
|
-
/** 封面是否展示 */
|
|
47
|
-
show: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* 封面图片可以使用的字段
|
|
50
|
-
*/
|
|
51
|
-
fields: string[];
|
|
52
|
-
/**
|
|
53
|
-
* 封面高度
|
|
54
|
-
*/
|
|
55
|
-
height: number;
|
|
56
|
-
/** 图片裁剪方式 */
|
|
57
|
-
objectFit: "fill" | "cover";
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Gallery标题总配置
|
|
61
|
-
*/
|
|
62
|
-
declare type GalleryTitleType = {
|
|
63
|
-
/** 标题使用的字段 */
|
|
64
|
-
field: string;
|
|
65
|
-
/** 标题行数 */
|
|
66
|
-
line: number;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Gallery头部区域总配置
|
|
70
|
-
*/
|
|
71
|
-
declare type GalleryHeaderType = {
|
|
72
|
-
/** 头部区域插槽 */
|
|
73
|
-
slot?: (record: Record<string, any>, index: number) => React.ReactNode;
|
|
74
|
-
/** 头部区域其他字段设置 */
|
|
75
|
-
fields: {
|
|
76
|
-
/** 头部区域其他字段是否展示 */
|
|
77
|
-
show: boolean;
|
|
78
|
-
/** 头部区域其他字段 */
|
|
79
|
-
list: string[];
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Gallery内容区域总配置
|
|
84
|
-
*/
|
|
85
|
-
declare type GalleryContentType = {
|
|
86
|
-
/** 内容区域字段配置 */
|
|
87
|
-
fields: {
|
|
88
|
-
columnKey: string;
|
|
89
|
-
show: boolean;
|
|
90
|
-
}[];
|
|
91
|
-
};
|
|
92
|
-
export declare type GallerySettingValueType = {
|
|
93
|
-
coverField: string | "noCover";
|
|
94
|
-
coverObjectFit: "fill" | "cover";
|
|
95
|
-
compactMode: "default" | "compact";
|
|
96
|
-
isShowLabel: boolean;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Gallery底部区域总配置
|
|
100
|
-
*/
|
|
101
|
-
declare type GalleryFooterType = {
|
|
102
|
-
/** 底部区域自定义渲染 */
|
|
103
|
-
render: (record: Record<string, any>, index: number) => React.ReactNode;
|
|
104
|
-
/** 底部区域高度 */
|
|
105
|
-
height: number;
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Gallery模式总配置
|
|
109
|
-
*/
|
|
110
|
-
export declare type GallerySettingType = {
|
|
111
|
-
/** 卡片最小宽度 */
|
|
112
|
-
cardMinWidth: number;
|
|
113
|
-
/** 卡片最大宽度 */
|
|
114
|
-
cardMaxWidth: number;
|
|
115
|
-
/** 水平间隔 */
|
|
116
|
-
horizontalGutter: number;
|
|
117
|
-
/** 垂直间隔 */
|
|
118
|
-
verticalGutter: number;
|
|
119
|
-
/** 封面配置 */
|
|
120
|
-
cover: GalleryCoverType;
|
|
121
|
-
/** 标题配置 */
|
|
122
|
-
title: GalleryTitleType;
|
|
123
|
-
/** 头部区域 */
|
|
124
|
-
header: GalleryHeaderType;
|
|
125
|
-
/** 内容区域 */
|
|
126
|
-
content: GalleryContentType;
|
|
127
|
-
/** 固定高度 */
|
|
128
|
-
fixedHeight: boolean;
|
|
129
|
-
/** 固定的卡片高度 */
|
|
130
|
-
cardHeight: number;
|
|
131
|
-
/** 固定顶部 */
|
|
132
|
-
fixedHeader: boolean;
|
|
133
|
-
/** 固定底部 */
|
|
134
|
-
fixedFooter: boolean;
|
|
135
|
-
/** 底部区域 */
|
|
136
|
-
footer: GalleryFooterType;
|
|
137
|
-
/** 卡片点击时间 */
|
|
138
|
-
onItem: (record: Record<string, any>, index: number) => void;
|
|
139
|
-
};
|
|
140
|
-
/** 视图模式 */
|
|
141
|
-
export declare type ModeType = "grid" | "gallery" | "kanban";
|
|
142
|
-
/**
|
|
143
|
-
* 视图模式总配置
|
|
144
|
-
*/
|
|
145
|
-
export declare type GridViewType = {
|
|
146
|
-
/** 默认视图模式 */
|
|
147
|
-
defaultViewMode: ModeType;
|
|
148
|
-
/** 开启多视图模式可进行页面内转换 */
|
|
149
|
-
multiple: boolean;
|
|
150
|
-
/** 当前可用的视图模式列表 */
|
|
151
|
-
modeList: ModeType[];
|
|
152
|
-
};
|
|
153
|
-
declare type SortDetail = {
|
|
154
|
-
fromIndex: number;
|
|
155
|
-
toIndex: number;
|
|
156
|
-
dataSource: Record<string, any>[];
|
|
157
|
-
fromId: number | string;
|
|
158
|
-
toId: number | string;
|
|
159
|
-
fromItem: Record<string, any>;
|
|
160
|
-
toItem: Record<string, any>;
|
|
161
|
-
};
|
|
162
|
-
/** 导入导出模式 */
|
|
163
|
-
export declare type ExportImportModeType = "import" | "export" | "export_file" | "import_log";
|
|
164
|
-
/**
|
|
165
|
-
* @title: 导出导入api
|
|
166
|
-
* @description:
|
|
167
|
-
* @return {*}
|
|
168
|
-
* @Author: WangHan
|
|
169
|
-
* @Date: 2024-09-11 15:44
|
|
170
|
-
*/
|
|
171
|
-
export declare type ApiProps = {
|
|
172
|
-
export?: string;
|
|
173
|
-
import?: string;
|
|
174
|
-
export_file: string;
|
|
175
|
-
import_log?: string;
|
|
176
|
-
template?: string;
|
|
177
|
-
};
|
|
178
|
-
/**
|
|
179
|
-
* 导入导出配置
|
|
180
|
-
*/
|
|
181
|
-
export declare type ExportImportType = {
|
|
182
|
-
/** 是否展示 */
|
|
183
|
-
show: boolean;
|
|
184
|
-
/** 当前所选项 */
|
|
185
|
-
selectLists: string[];
|
|
186
|
-
/** 导入模版链接 */
|
|
187
|
-
templateFileUrl: string;
|
|
188
|
-
/** 标题 */
|
|
189
|
-
title: string;
|
|
190
|
-
hiddenKeys?: string[];
|
|
191
|
-
apiUrl?: ApiProps;
|
|
192
|
-
otherParams?: any;
|
|
193
|
-
};
|
|
194
|
-
export declare type GridViewProps = {
|
|
195
|
-
columns: any;
|
|
196
|
-
dataSource: any[];
|
|
197
|
-
dispatch: any;
|
|
198
|
-
/**
|
|
199
|
-
* 画册模式的配置
|
|
200
|
-
*/
|
|
201
|
-
gallery: GallerySettingType;
|
|
202
|
-
/**
|
|
203
|
-
* 视图设置
|
|
204
|
-
*/
|
|
205
|
-
view: GridViewType;
|
|
206
|
-
style: React.CSSProperties;
|
|
207
|
-
pagination: any;
|
|
208
|
-
filter: FilterType;
|
|
209
|
-
buttons: React.ReactNode | any[];
|
|
210
|
-
actionButtons: any;
|
|
211
|
-
sort: SortType;
|
|
212
|
-
title?: React.ReactNode | (() => React.ReactNode);
|
|
213
|
-
showTitle?: boolean;
|
|
214
|
-
subTitle?: React.ReactNode | (() => React.ReactNode);
|
|
215
|
-
showSubTitle?: boolean;
|
|
216
|
-
exportImport: ExportImportType;
|
|
217
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
218
|
-
summary: any;
|
|
219
|
-
utils: any;
|
|
220
|
-
rowKey: ((record: Record<string, any>) => string) | string;
|
|
221
|
-
columnSetting?: ColumnSettingType;
|
|
222
|
-
dataSourceGroup?: DataSourceGroupType;
|
|
223
|
-
loading: boolean;
|
|
224
|
-
dragSort: boolean;
|
|
225
|
-
onSortChange?: (detail: SortDetail) => boolean;
|
|
226
|
-
__id?: string;
|
|
227
|
-
__designMode?: "design";
|
|
228
|
-
/**
|
|
229
|
-
* 当前本地配置的key 用此hash是否改变用来判断是否清空本地配置 不填默认使用columns数据生成hash
|
|
230
|
-
*/
|
|
231
|
-
currentSettingKey?: string;
|
|
232
|
-
/**
|
|
233
|
-
* 当前本地配置的唯一值, 不填默认使用currentSettingKey
|
|
234
|
-
*/
|
|
235
|
-
currentComponentId?: string;
|
|
236
|
-
/**
|
|
237
|
-
* 当前表格中数据发生变化事件 包含本地筛选和外部传入数据变化
|
|
238
|
-
* @param currentDataSource
|
|
239
|
-
*/
|
|
240
|
-
onDataSourceChange?: (currentDataSource: Record<string, any>[]) => void;
|
|
241
|
-
tabs: {
|
|
242
|
-
show: boolean;
|
|
243
|
-
type: 'default' | 'button' | 'buttonGroup' | 'dropdown';
|
|
244
|
-
items: {
|
|
245
|
-
name: string;
|
|
246
|
-
filterBy?: Record<string, any>;
|
|
247
|
-
sortBy?: string;
|
|
248
|
-
}[];
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Version } from '../versionSelect';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface PublishVersionModalProps {
|
|
5
|
-
visible: boolean;
|
|
6
|
-
currentVersion: string;
|
|
7
|
-
onCancel: () => void;
|
|
8
|
-
onConfirm: (data: VersionData) => void;
|
|
9
|
-
isShowNote?: boolean;
|
|
10
|
-
confirmLoading?: boolean;
|
|
11
|
-
versions?: Version[];
|
|
12
|
-
isShowBasedOn?: boolean;
|
|
13
|
-
isShowCurrentVersion?: boolean;
|
|
14
|
-
isValidateVersion?: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface VersionData {
|
|
17
|
-
version: string;
|
|
18
|
-
note: string;
|
|
19
|
-
baseVersion?: string;
|
|
20
|
-
versionType?: string;
|
|
21
|
-
}
|
|
22
|
-
declare const PublishVersionModal: React.FC<PublishVersionModalProps>;
|
|
23
|
-
export default PublishVersionModal;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Drawer } from 'antd';
|
|
2
|
-
import { OperationItem } from '../type';
|
|
3
|
-
declare const useDrawerState: (operationContent?: {
|
|
4
|
-
[key: string]: import("react").ReactNode;
|
|
5
|
-
} | undefined) => {
|
|
6
|
-
drawerVisible: boolean;
|
|
7
|
-
setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
|
-
openDrawer: (item: OperationItem) => void;
|
|
9
|
-
closeDrawer: () => void;
|
|
10
|
-
drawerContent: import("react").ReactNode;
|
|
11
|
-
Container: {
|
|
12
|
-
(props: import("../../../pisellModal").PisellModalProps): JSX.Element;
|
|
13
|
-
confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
14
|
-
destroy: () => void;
|
|
15
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
16
|
-
};
|
|
17
|
-
info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
18
|
-
destroy: () => void;
|
|
19
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
20
|
-
};
|
|
21
|
-
error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
22
|
-
destroy: () => void;
|
|
23
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
24
|
-
};
|
|
25
|
-
warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
|
|
26
|
-
warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
27
|
-
destroy: () => void;
|
|
28
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
29
|
-
};
|
|
30
|
-
success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
31
|
-
destroy: () => void;
|
|
32
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
33
|
-
};
|
|
34
|
-
Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
|
|
35
|
-
} | typeof Drawer;
|
|
36
|
-
containerProps: {};
|
|
37
|
-
};
|
|
38
|
-
export default useDrawerState;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
4
|
-
export declare type OperationItem = {
|
|
5
|
-
label?: string;
|
|
6
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
7
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
8
|
-
openTitle: string;
|
|
9
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
10
|
-
key: string;
|
|
11
|
-
buttonProps?: any;
|
|
12
|
-
onClick?: (record: any) => void;
|
|
13
|
-
};
|
|
14
|
-
export interface DataSourceTableProps {
|
|
15
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
16
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
17
|
-
titleButtons?: {
|
|
18
|
-
show: boolean;
|
|
19
|
-
maxCount: number;
|
|
20
|
-
items: OperationItem[];
|
|
21
|
-
};
|
|
22
|
-
tableButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
buttons?: any[];
|
|
28
|
-
operation?: {
|
|
29
|
-
show: boolean;
|
|
30
|
-
title: string;
|
|
31
|
-
width: number;
|
|
32
|
-
align: 'left' | 'center' | 'right';
|
|
33
|
-
fixed: 'left' | 'right' | false;
|
|
34
|
-
type: 'link' | 'button';
|
|
35
|
-
items: OperationItem[];
|
|
36
|
-
};
|
|
37
|
-
operationContent?: {
|
|
38
|
-
[key: string]: React.ReactNode;
|
|
39
|
-
};
|
|
40
|
-
dataSource: DataSourceType;
|
|
41
|
-
columns: ColumnType<any>[];
|
|
42
|
-
filter: any;
|
|
43
|
-
search?: {
|
|
44
|
-
show: boolean;
|
|
45
|
-
placeholder: string;
|
|
46
|
-
};
|
|
47
|
-
__designMode: string;
|
|
48
|
-
componentId: string;
|
|
49
|
-
clickToDetail?: {
|
|
50
|
-
show: boolean;
|
|
51
|
-
useCustomAction: boolean;
|
|
52
|
-
actionType: string;
|
|
53
|
-
openMode: 'modal' | 'drawer';
|
|
54
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
55
|
-
openTitle: string;
|
|
56
|
-
key: string;
|
|
57
|
-
};
|
|
58
|
-
onRow?: any;
|
|
59
|
-
filterBy?: Record<string, any>;
|
|
60
|
-
sortBy: string;
|
|
61
|
-
tabs?: {
|
|
62
|
-
show: boolean;
|
|
63
|
-
type: string;
|
|
64
|
-
items: {
|
|
65
|
-
name: string;
|
|
66
|
-
filterBy: Record<string, any>;
|
|
67
|
-
sortBy: string;
|
|
68
|
-
}[];
|
|
69
|
-
};
|
|
70
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
71
|
-
extraParams?: {
|
|
72
|
-
list?: Record<string, any>;
|
|
73
|
-
get?: Record<string, any>;
|
|
74
|
-
update?: Record<string, any>;
|
|
75
|
-
create?: Record<string, any>;
|
|
76
|
-
destroy?: Record<string, any>;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { UniqueIdentifier } from '@dnd-kit/core';
|
|
3
|
-
import { Props as TreeItemProps } from './TreeItem';
|
|
4
|
-
interface Props extends TreeItemProps {
|
|
5
|
-
id: UniqueIdentifier;
|
|
6
|
-
__designMode?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function SortableTreeItem({ id, depth, ...props }: Props): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import type { TreeItem as TreeItemType } from '../../types';
|
|
3
|
-
import './TreeItem.less';
|
|
4
|
-
export interface Props extends Omit<HTMLAttributes<HTMLLIElement>, 'id'> {
|
|
5
|
-
childCount?: number;
|
|
6
|
-
clone?: boolean;
|
|
7
|
-
collapsed?: boolean;
|
|
8
|
-
depth: number;
|
|
9
|
-
disableInteraction?: boolean;
|
|
10
|
-
disableSelection?: boolean;
|
|
11
|
-
ghost?: boolean;
|
|
12
|
-
handleProps?: any;
|
|
13
|
-
indicator?: boolean;
|
|
14
|
-
indentationWidth: number;
|
|
15
|
-
onCollapse?(): void;
|
|
16
|
-
onRemove?(): void;
|
|
17
|
-
wrapperRef?(node: HTMLLIElement): void;
|
|
18
|
-
item: TreeItemType;
|
|
19
|
-
renderItem?(item: Props, ref: React.ForwardedRef<HTMLDivElement>): React.ReactNode;
|
|
20
|
-
__designMode?: string;
|
|
21
|
-
isBlocked?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare const TreeItem: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 可拖拽树形组件
|
|
3
|
-
* 基于@dnd-kit库实现,支持拖拽排序、展开折叠、删除等功能
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { TreeItem, TreeItems } from './types';
|
|
7
|
-
import type { Props as TreeItemProps } from './components/TreeItem/TreeItem';
|
|
8
|
-
interface Props {
|
|
9
|
-
/** 是否支持折叠功能 */
|
|
10
|
-
collapsible?: boolean;
|
|
11
|
-
/** 初始树形数据,默认使用 initialItems */
|
|
12
|
-
value?: TreeItems;
|
|
13
|
-
/** 缩进宽度,控制子节点的缩进距离 */
|
|
14
|
-
indentationWidth?: number;
|
|
15
|
-
/** 是否显示拖拽指示器 */
|
|
16
|
-
indicator?: boolean;
|
|
17
|
-
/** 是否支持删除节点功能 */
|
|
18
|
-
removable?: boolean;
|
|
19
|
-
/** 自定义渲染树节点 */
|
|
20
|
-
renderItem?: (item: TreeItemProps, ref: React.RefObject<HTMLDivElement>) => React.ReactNode;
|
|
21
|
-
/** 树形数据变化回调 */
|
|
22
|
-
onChange?: (items: TreeItems) => void;
|
|
23
|
-
/** 删除节点前 */
|
|
24
|
-
onRemoveBefore?: (item: TreeItem) => Promise<boolean>;
|
|
25
|
-
/** 设计模式 */
|
|
26
|
-
__designMode?: string;
|
|
27
|
-
/** 最大层级 */
|
|
28
|
-
maxLevel?: number;
|
|
29
|
-
}
|
|
30
|
-
export declare function SortableTree({ collapsible, value, indicator, indentationWidth, removable, renderItem, onChange, onRemoveBefore, __designMode, maxLevel, }: Props): JSX.Element;
|
|
31
|
-
declare const Demo: (props: Props) => JSX.Element;
|
|
32
|
-
export default Demo;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Props as TreeItem } from '../../../pisellDraggable/components/TreeItem/TreeItem';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface SortableItemProps {
|
|
5
|
-
itemProps: TreeItem;
|
|
6
|
-
render?: (itemProps: TreeItem) => React.ReactNode;
|
|
7
|
-
domRef: React.RefObject<HTMLDivElement>;
|
|
8
|
-
allowAddChild?: boolean;
|
|
9
|
-
allowDelete?: boolean;
|
|
10
|
-
allowDrag?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onAdd?: (itemProps: TreeItem) => void;
|
|
13
|
-
onDelete?: (itemProps: TreeItem) => void;
|
|
14
|
-
showBorder?: boolean;
|
|
15
|
-
spacing?: number;
|
|
16
|
-
maxLevel?: number;
|
|
17
|
-
/** 设计模式 */
|
|
18
|
-
__designMode?: string;
|
|
19
|
-
/** 是否自定义操作 */
|
|
20
|
-
isCustomAction?: boolean;
|
|
21
|
-
/** 获取item样式 */
|
|
22
|
-
getItemStyle?: (itemProps: TreeItem) => React.CSSProperties;
|
|
23
|
-
}
|
|
24
|
-
declare const SortableItem: (props: SortableItemProps) => JSX.Element;
|
|
25
|
-
export default SortableItem;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import type { Props as TreeItem } from '../pisellDraggable/components/TreeItem/TreeItem';
|
|
3
|
-
import type { TreeItem as TreeItemType } from '../pisellDraggable/types';
|
|
4
|
-
export interface DropSortItem extends TreeItemType {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
export interface PisellDropSortProps {
|
|
8
|
-
/** value */
|
|
9
|
-
value: DropSortItem[];
|
|
10
|
-
/** 允许拖拽 */
|
|
11
|
-
allowDrag?: boolean;
|
|
12
|
-
/** 允许删除 */
|
|
13
|
-
allowDelete?: boolean;
|
|
14
|
-
/** 允许添加子节点 */
|
|
15
|
-
allowAddChild?: boolean;
|
|
16
|
-
/** 允许添加根节点 */
|
|
17
|
-
allowAddRoot?: boolean;
|
|
18
|
-
/** 是否禁用 */
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
/** 节点间距 */
|
|
21
|
-
spacing?: number;
|
|
22
|
-
/** 最大层级数 */
|
|
23
|
-
maxLevel?: number;
|
|
24
|
-
/** 是否显示边框 */
|
|
25
|
-
showBorder?: boolean;
|
|
26
|
-
/** 样式 */
|
|
27
|
-
style?: CSSProperties;
|
|
28
|
-
/** 类名 */
|
|
29
|
-
className?: string;
|
|
30
|
-
/** 数据源变化回调 */
|
|
31
|
-
onChange?: (items: DropSortItem[]) => void;
|
|
32
|
-
/** 删除节点回调 */
|
|
33
|
-
onDelete?: (itemProps: TreeItem) => void;
|
|
34
|
-
/** 添加节点回调 */
|
|
35
|
-
onAdd?: (itemProps: TreeItem) => void;
|
|
36
|
-
/** 自定义渲染节点 */
|
|
37
|
-
renderItem?: (itemProps: TreeItem) => React.ReactNode;
|
|
38
|
-
/** 添加根节点回调 */
|
|
39
|
-
onAddRoot?: () => void;
|
|
40
|
-
/** 左侧自定义内容 */
|
|
41
|
-
leftContent?: React.ReactNode;
|
|
42
|
-
/** 右侧自定义内容 */
|
|
43
|
-
rightContent?: React.ReactNode;
|
|
44
|
-
/** 空状态自定义内容 */
|
|
45
|
-
emptyContent?: React.ReactNode;
|
|
46
|
-
/** 设计模式 */
|
|
47
|
-
__designMode?: string;
|
|
48
|
-
/** 是否自定义操作 */
|
|
49
|
-
isCustomAction?: boolean;
|
|
50
|
-
/** 获取item样式 */
|
|
51
|
-
getItemStyle?: (itemProps: TreeItem) => React.CSSProperties;
|
|
52
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './PisellMenu.less';
|
|
3
|
-
import type { PisellMenuProps } from './types';
|
|
4
|
-
declare const PisellMenu: {
|
|
5
|
-
({ className, style, mode, theme, defaultOpenKeys, defaultSelectedKeys, inlineCollapsed, openKeys, selectedKeys, onOpenChange, onSelect, dataSource, __designMode, children, other, ...restProps }: PisellMenuProps): JSX.Element;
|
|
6
|
-
Item: Omit<React.FunctionComponent<import("antd").MenuItemProps>, ""> & (<T extends import("antd").MenuItemProps>(props: T extends infer U extends import("antd").MenuItemProps ? unknown extends U ? import("antd").MenuItemProps : U : import("antd").MenuItemProps, context?: any) => React.ReactElement<any, any> | null);
|
|
7
|
-
SubMenu: React.FC<import("antd").SubMenuProps>;
|
|
8
|
-
};
|
|
9
|
-
export default PisellMenu;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { MenuProps } from 'antd';
|
|
3
|
-
export interface PisellMenuProps extends Omit<MenuProps, 'items'> {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
mode?: 'vertical' | 'horizontal' | 'inline';
|
|
7
|
-
theme?: 'light' | 'dark';
|
|
8
|
-
defaultOpenKeys?: string[];
|
|
9
|
-
defaultSelectedKeys?: string[];
|
|
10
|
-
inlineCollapsed?: boolean;
|
|
11
|
-
openKeys?: string[];
|
|
12
|
-
selectedKeys?: string[];
|
|
13
|
-
onOpenChange?: (openKeys: string[]) => void;
|
|
14
|
-
dataSource?: any;
|
|
15
|
-
__designMode?: string;
|
|
16
|
-
other?: PisellMenuProps;
|
|
17
|
-
}
|
|
18
|
-
export interface MenuItemType {
|
|
19
|
-
key: string;
|
|
20
|
-
label: string;
|
|
21
|
-
path: string;
|
|
22
|
-
children?: MenuItemType[];
|
|
23
|
-
icon?: string | React.ReactNode;
|
|
24
|
-
hide?: boolean;
|
|
25
|
-
type?: 'group' | 'divider';
|
|
26
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
export interface NavigationMenuItem {
|
|
3
|
-
id: string;
|
|
4
|
-
/** 标题 */
|
|
5
|
-
title: string;
|
|
6
|
-
/** 图标 */
|
|
7
|
-
icon?: string;
|
|
8
|
-
/** 描述 */
|
|
9
|
-
description?: string;
|
|
10
|
-
/** 子菜单 */
|
|
11
|
-
children?: NavigationMenuItem[];
|
|
12
|
-
/** 版本 */
|
|
13
|
-
version?: string;
|
|
14
|
-
/** 是否是分组 */
|
|
15
|
-
isGroup?: boolean;
|
|
16
|
-
/** 是否允许添加子菜单 */
|
|
17
|
-
allowAddChild?: boolean;
|
|
18
|
-
/** 是否允许删除 */
|
|
19
|
-
allowDelete?: boolean;
|
|
20
|
-
/** 是否允许编辑 */
|
|
21
|
-
allowEdit?: boolean;
|
|
22
|
-
/** 是否允许添加子菜单 */
|
|
23
|
-
allowAddSubmenu?: boolean;
|
|
24
|
-
/** 是否允许添加页面 */
|
|
25
|
-
allowAddPage?: boolean;
|
|
26
|
-
/** 其他属性 */
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}
|
|
29
|
-
export interface PisellNavigationMenuProps {
|
|
30
|
-
/** 导航菜单数据 */
|
|
31
|
-
value: NavigationMenuItem[];
|
|
32
|
-
/** 是否允许拖拽排序 */
|
|
33
|
-
allowDrag?: boolean;
|
|
34
|
-
/** 是否允许删除菜单项 */
|
|
35
|
-
allowDelete?: boolean;
|
|
36
|
-
/** 是否允许添加子菜单 */
|
|
37
|
-
allowAddChild?: boolean;
|
|
38
|
-
/** 是否允许添加根菜单 */
|
|
39
|
-
allowAddRoot?: boolean;
|
|
40
|
-
/** 是否禁用 */
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
/** 菜单项间距 */
|
|
43
|
-
spacing?: number;
|
|
44
|
-
/** 最大层级数 */
|
|
45
|
-
maxLevel?: number;
|
|
46
|
-
/** 样式 */
|
|
47
|
-
style?: CSSProperties;
|
|
48
|
-
/** 类名 */
|
|
49
|
-
className?: string;
|
|
50
|
-
/** 数据变化回调 */
|
|
51
|
-
onChange?: (items: NavigationMenuItem[]) => void;
|
|
52
|
-
/** 设计模式 */
|
|
53
|
-
__designMode?: string;
|
|
54
|
-
/** 标题 */
|
|
55
|
-
title?: string;
|
|
56
|
-
/** 添加子菜单回调 */
|
|
57
|
-
onAddSubMenu?: (item?: NavigationMenuItem) => void;
|
|
58
|
-
/** 添加页面回调 */
|
|
59
|
-
onAddPage?: (item?: NavigationMenuItem) => void;
|
|
60
|
-
/** 编辑回调 */
|
|
61
|
-
onEdit?: (item: NavigationMenuItem) => void;
|
|
62
|
-
/** 删除回调 */
|
|
63
|
-
onDelete?: (item: NavigationMenuItem) => void;
|
|
64
|
-
}
|