@pisell/materials 3.3.69 → 3.3.71
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 +7 -7
- package/build/lowcode/render/default/view.js +15 -15
- package/build/lowcode/view.js +7 -7
- package/es/components/appVersionControl/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +17 -13
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +9 -8
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/pisell-config-provider/index.js +0 -1
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/es/components/pisellCardList/index.d.ts +4 -0
- package/es/components/pisellCardList/index.js +5 -1
- package/es/components/pisellDatePicker/index.d.ts +1 -0
- package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/index.d.ts +1 -0
- package/es/components/pisellWalletPassCard/index.d.ts +4 -0
- package/es/components/pisellWalletPassCard/index.js +17 -4
- package/es/components/productCard/components/MultiDay/index.d.ts +1 -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 +1 -0
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Time/index.d.ts +1 -0
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/index.d.ts +1 -0
- package/es/components/table/Actions/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +3 -2
- package/es/components/table/Table/fields/link/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/versionSelect/index.d.ts +1 -0
- package/es/locales/en-US.d.ts +1 -0
- package/es/locales/en-US.js +1 -0
- package/es/locales/zh-CN.d.ts +1 -0
- package/es/locales/zh-CN.js +1 -0
- package/es/locales/zh-TW.d.ts +1 -0
- package/es/locales/zh-TW.js +1 -0
- package/lib/components/appVersionControl/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +12 -8
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +9 -8
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/pisell-config-provider/index.js +0 -1
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/lib/components/pisellCardList/index.d.ts +4 -0
- package/lib/components/pisellCardList/index.js +5 -1
- package/lib/components/pisellDatePicker/index.d.ts +1 -0
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/index.d.ts +1 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +4 -0
- package/lib/components/pisellWalletPassCard/index.js +12 -2
- package/lib/components/productCard/components/MultiDay/index.d.ts +1 -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 +1 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Time/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
- package/lib/components/table/Actions/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +3 -2
- package/lib/components/table/Table/fields/link/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/versionSelect/index.d.ts +1 -0
- package/lib/locales/en-US.d.ts +1 -0
- package/lib/locales/en-US.js +1 -0
- package/lib/locales/zh-CN.d.ts +1 -0
- package/lib/locales/zh-CN.js +1 -0
- package/lib/locales/zh-TW.d.ts +1 -0
- package/lib/locales/zh-TW.js +1 -0
- package/package.json +1 -1
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -16
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -32
- package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
- package/es/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Switch/type.d.ts +0 -16
- package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -120
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisellQRScanner/index.d.ts +0 -24
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
- package/es/components/table/serve.d.ts +0 -13
- package/es/components/table/types.d.ts +0 -268
- package/es/components/tabs/index.d.ts +0 -17
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -16
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -32
- package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
- package/lib/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Switch/type.d.ts +0 -16
- package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -120
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisellQRScanner/index.d.ts +0 -24
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
- package/lib/components/table/serve.d.ts +0 -13
- package/lib/components/table/types.d.ts +0 -268
- package/lib/components/tabs/index.d.ts +0 -17
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare type exportParams = {
|
|
2
|
-
ids?: Array<string | number>;
|
|
3
|
-
file_name?: string;
|
|
4
|
-
form_id?: string | number;
|
|
5
|
-
code?: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const exportData: (params: exportParams) => Promise<any>;
|
|
9
|
-
export declare const batchImport: (params: any) => Promise<any>;
|
|
10
|
-
export declare const importTemplate: (params: exportParams) => Promise<any>;
|
|
11
|
-
export declare const getExportFile: (params: any) => Promise<any>;
|
|
12
|
-
export declare const getImportLog: (params: any) => Promise<any>;
|
|
13
|
-
export {};
|
|
@@ -1,268 +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
|
-
/**
|
|
195
|
-
* 设置记忆范围
|
|
196
|
-
*/
|
|
197
|
-
export declare type LocalSettingsScope = "filters" | "sorting" | "columns";
|
|
198
|
-
/**
|
|
199
|
-
* 本地记忆设置
|
|
200
|
-
*/
|
|
201
|
-
export declare type LocalSettingsType = {
|
|
202
|
-
/** 启用设置记忆 */
|
|
203
|
-
enable: boolean;
|
|
204
|
-
/** 记忆范围 */
|
|
205
|
-
scope: LocalSettingsScope[];
|
|
206
|
-
/** 不需要记忆的筛选字段(当 scope 包含 filters 时生效) */
|
|
207
|
-
excludedFilterFields?: string[];
|
|
208
|
-
};
|
|
209
|
-
export declare type GridViewProps = {
|
|
210
|
-
columns: any;
|
|
211
|
-
dataSource: any[];
|
|
212
|
-
dispatch: any;
|
|
213
|
-
/**
|
|
214
|
-
* 画册模式的配置
|
|
215
|
-
*/
|
|
216
|
-
gallery: GallerySettingType;
|
|
217
|
-
/**
|
|
218
|
-
* 视图设置
|
|
219
|
-
*/
|
|
220
|
-
view: GridViewType;
|
|
221
|
-
style: React.CSSProperties;
|
|
222
|
-
pagination: any;
|
|
223
|
-
filter: FilterType;
|
|
224
|
-
buttons: React.ReactNode | any[];
|
|
225
|
-
actionButtons: any;
|
|
226
|
-
sort: SortType;
|
|
227
|
-
title?: React.ReactNode | (() => React.ReactNode);
|
|
228
|
-
showTitle?: boolean;
|
|
229
|
-
subTitle?: React.ReactNode | (() => React.ReactNode);
|
|
230
|
-
showSubTitle?: boolean;
|
|
231
|
-
exportImport: ExportImportType;
|
|
232
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
233
|
-
summary: any;
|
|
234
|
-
utils: any;
|
|
235
|
-
rowKey: ((record: Record<string, any>) => string) | string;
|
|
236
|
-
columnSetting?: ColumnSettingType;
|
|
237
|
-
dataSourceGroup?: DataSourceGroupType;
|
|
238
|
-
loading: boolean;
|
|
239
|
-
dragSort: boolean;
|
|
240
|
-
onSortChange?: (detail: SortDetail) => boolean;
|
|
241
|
-
__id?: string;
|
|
242
|
-
__designMode?: "design";
|
|
243
|
-
/**
|
|
244
|
-
* 当前本地配置的key 用此hash是否改变用来判断是否清空本地配置 不填默认使用columns数据生成hash
|
|
245
|
-
*/
|
|
246
|
-
currentSettingKey?: string;
|
|
247
|
-
/**
|
|
248
|
-
* 当前本地配置的唯一值, 不填默认使用currentSettingKey
|
|
249
|
-
*/
|
|
250
|
-
currentComponentId?: string;
|
|
251
|
-
/**
|
|
252
|
-
* 当前表格中数据发生变化事件 包含本地筛选和外部传入数据变化
|
|
253
|
-
* @param currentDataSource
|
|
254
|
-
*/
|
|
255
|
-
onDataSourceChange?: (currentDataSource: Record<string, any>[]) => void;
|
|
256
|
-
tabs: {
|
|
257
|
-
show: boolean;
|
|
258
|
-
type: 'default' | 'button' | 'buttonGroup' | 'dropdown';
|
|
259
|
-
items: {
|
|
260
|
-
name: string;
|
|
261
|
-
filterBy?: Record<string, any>;
|
|
262
|
-
sortBy?: string;
|
|
263
|
-
}[];
|
|
264
|
-
};
|
|
265
|
-
/** 本地记忆设置 */
|
|
266
|
-
localSettings?: LocalSettingsType;
|
|
267
|
-
};
|
|
268
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import { TabsProps } from 'antd';
|
|
3
|
-
import './index.less';
|
|
4
|
-
declare class Tabs extends Component<any> {
|
|
5
|
-
state: {
|
|
6
|
-
activeKey: any;
|
|
7
|
-
};
|
|
8
|
-
componentDidMount(): void;
|
|
9
|
-
componentDidUpdate(prevProps: Readonly<any>): void;
|
|
10
|
-
private _handleChange;
|
|
11
|
-
setActiveKey: (key: string) => void;
|
|
12
|
-
getActiveKey: () => any;
|
|
13
|
-
renderIconLabelTabBar: TabsProps['renderTabBar'];
|
|
14
|
-
filterHiddenTabs: (tabs: any[]) => any[];
|
|
15
|
-
render(): JSX.Element;
|
|
16
|
-
}
|
|
17
|
-
export default Tabs;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModeType } from '../../type';
|
|
3
|
-
export interface FormSettingContextType {
|
|
4
|
-
onDataSourceFinish?: (values: any, result: any, form: any) => void;
|
|
5
|
-
renderMode?: ModeType;
|
|
6
|
-
groupInfoPosition?: 'top' | 'side';
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
currentValue?: 'server' | 'local';
|
|
9
|
-
size?: 'small' | 'middle' | 'large';
|
|
10
|
-
formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
|
|
11
|
-
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
12
|
-
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
13
|
-
beforeSubmit?: (values: Record<string, any>) => Promise<boolean> | boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const FormSettingContext: import("react").Context<FormSettingContextType>;
|
|
16
|
-
export default FormSettingContext;
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
export interface DataSourceType {
|
|
2
|
-
key: string;
|
|
3
|
-
displayName: string;
|
|
4
|
-
status: string;
|
|
5
|
-
type: string;
|
|
6
|
-
isDBInstance: boolean;
|
|
7
|
-
collections: Collection[];
|
|
8
|
-
}
|
|
9
|
-
export declare type ActionsItem = {
|
|
10
|
-
method: string;
|
|
11
|
-
path: string;
|
|
12
|
-
params: {
|
|
13
|
-
name: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}[];
|
|
16
|
-
headers: {
|
|
17
|
-
name: string;
|
|
18
|
-
value: string;
|
|
19
|
-
}[];
|
|
20
|
-
body: Record<string, any>;
|
|
21
|
-
};
|
|
22
|
-
export interface Collection {
|
|
23
|
-
name: string;
|
|
24
|
-
title: string;
|
|
25
|
-
tableName: string;
|
|
26
|
-
timestamps: boolean;
|
|
27
|
-
autoGenId: boolean;
|
|
28
|
-
filterTargetKey: string;
|
|
29
|
-
fields: Field[];
|
|
30
|
-
introspected: boolean;
|
|
31
|
-
unavailableActions: any[];
|
|
32
|
-
actions: {
|
|
33
|
-
get: ActionsItem;
|
|
34
|
-
update: ActionsItem;
|
|
35
|
-
create: ActionsItem;
|
|
36
|
-
delete: ActionsItem;
|
|
37
|
-
list: ActionsItem;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
interface Field {
|
|
41
|
-
name: string;
|
|
42
|
-
type: string;
|
|
43
|
-
allowNull: boolean;
|
|
44
|
-
primaryKey: boolean;
|
|
45
|
-
unique: boolean;
|
|
46
|
-
autoIncrement: boolean;
|
|
47
|
-
description?: (null | string)[];
|
|
48
|
-
possibleTypes?: string[];
|
|
49
|
-
rawType: string;
|
|
50
|
-
interface: string;
|
|
51
|
-
uiSchema: UiSchema;
|
|
52
|
-
key?: string;
|
|
53
|
-
collectionName?: string;
|
|
54
|
-
collectionKey?: any;
|
|
55
|
-
dataSourceKey?: string;
|
|
56
|
-
defaultValue?: any;
|
|
57
|
-
}
|
|
58
|
-
interface UiSchema {
|
|
59
|
-
type?: string;
|
|
60
|
-
'x-component': string;
|
|
61
|
-
'x-component-props'?: Xcomponentprops;
|
|
62
|
-
'x-validator'?: string;
|
|
63
|
-
title: string;
|
|
64
|
-
default?: any;
|
|
65
|
-
enum?: any[];
|
|
66
|
-
}
|
|
67
|
-
interface Xcomponentprops {
|
|
68
|
-
style?: Style;
|
|
69
|
-
autoSize?: AutoSize;
|
|
70
|
-
stringMode?: boolean;
|
|
71
|
-
step?: string;
|
|
72
|
-
dateFormat?: string;
|
|
73
|
-
showTime?: boolean;
|
|
74
|
-
}
|
|
75
|
-
interface AutoSize {
|
|
76
|
-
minRows: number;
|
|
77
|
-
}
|
|
78
|
-
interface Style {
|
|
79
|
-
width: string;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* 获取nocobase自定义数据源
|
|
83
|
-
*/
|
|
84
|
-
export declare const getNocobaseDataSource: () => Promise<DataSourceType[]>;
|
|
85
|
-
/**
|
|
86
|
-
* 获取nocobase主数据源
|
|
87
|
-
*/
|
|
88
|
-
export declare const getNocobaseMainDataSource: () => Promise<any>;
|
|
89
|
-
/**
|
|
90
|
-
* 获取nocobase数据源设置
|
|
91
|
-
*/
|
|
92
|
-
export declare const getNocobaseDataSourceOptions: () => Promise<any>;
|
|
93
|
-
/**
|
|
94
|
-
* 创建nocobase数据
|
|
95
|
-
*/
|
|
96
|
-
export declare const createNocobaseData: (params: {
|
|
97
|
-
key: string;
|
|
98
|
-
data: any;
|
|
99
|
-
headers?: any;
|
|
100
|
-
}) => Promise<any>;
|
|
101
|
-
/**
|
|
102
|
-
* nocobase get数据
|
|
103
|
-
*/
|
|
104
|
-
export declare const getNocobaseData: (params: {
|
|
105
|
-
key: string;
|
|
106
|
-
query: Record<string, any>;
|
|
107
|
-
headers?: any;
|
|
108
|
-
}) => Promise<any>;
|
|
109
|
-
/**
|
|
110
|
-
* 自定义api接口
|
|
111
|
-
*/
|
|
112
|
-
export declare const customApi: (url: string, data: Record<string, any>, options: {
|
|
113
|
-
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
114
|
-
baseUrl?: string | undefined;
|
|
115
|
-
headers?: {
|
|
116
|
-
name: string;
|
|
117
|
-
value: any;
|
|
118
|
-
}[] | undefined;
|
|
119
|
-
params?: {
|
|
120
|
-
name: string;
|
|
121
|
-
value: any;
|
|
122
|
-
}[] | undefined;
|
|
123
|
-
body?: Record<string, any> | undefined;
|
|
124
|
-
}) => Promise<any>;
|
|
125
|
-
/**
|
|
126
|
-
* 更新nocobase数据
|
|
127
|
-
*/
|
|
128
|
-
export declare const updateNocobaseData: (params: {
|
|
129
|
-
key: string;
|
|
130
|
-
data: any;
|
|
131
|
-
headers?: any;
|
|
132
|
-
query?: Record<string, any> | undefined;
|
|
133
|
-
}) => Promise<any>;
|
|
134
|
-
/**
|
|
135
|
-
* 获取nocobase数据列表
|
|
136
|
-
*/
|
|
137
|
-
export declare const getNocobaseDataList: (allParams: {
|
|
138
|
-
key: string;
|
|
139
|
-
params: {
|
|
140
|
-
page: number;
|
|
141
|
-
pageSize: number;
|
|
142
|
-
};
|
|
143
|
-
headers?: any;
|
|
144
|
-
}) => Promise<any>;
|
|
145
|
-
/**
|
|
146
|
-
* 删除nocobase数据
|
|
147
|
-
*/
|
|
148
|
-
export declare const deleteNocobaseData: (key: string, id: string, headers?: any) => Promise<any>;
|
|
149
|
-
/**
|
|
150
|
-
* 获取formSettingMeta数据
|
|
151
|
-
* @param params 请求参数
|
|
152
|
-
* @param params.sectionCodes 配置段代码数组,如 ['payment']
|
|
153
|
-
* @param params.businessCode 业务代码
|
|
154
|
-
* @param params.channelCode 渠道代码
|
|
155
|
-
* @param params.isBoard 是否包含board_code参数
|
|
156
|
-
* @returns Promise<any> 返回设置元数据
|
|
157
|
-
*/
|
|
158
|
-
export declare const getFormSettingMetaData: (params: {
|
|
159
|
-
sectionCodes: string[];
|
|
160
|
-
businessCode?: string | undefined;
|
|
161
|
-
channelCode?: string | undefined;
|
|
162
|
-
isBoard?: boolean | undefined;
|
|
163
|
-
}) => Promise<any>;
|
|
164
|
-
/**
|
|
165
|
-
* 更新租户设置数据
|
|
166
|
-
* @param params 请求参数
|
|
167
|
-
* @param params.businessCode 业务代码
|
|
168
|
-
* @param params.channelCode 渠道代码
|
|
169
|
-
* @param params.boardCode 板块代码
|
|
170
|
-
* @param params.data 要更新的数据对象,如 {"order.prefix":"","order.suffix":"","payment.number":""}
|
|
171
|
-
* @returns Promise<any> 返回更新结果
|
|
172
|
-
*/
|
|
173
|
-
export declare const updateTenantSetting: (params: {
|
|
174
|
-
business_code?: string | undefined;
|
|
175
|
-
channel_code?: string | undefined;
|
|
176
|
-
board_code?: string | undefined;
|
|
177
|
-
data: Record<string, any>;
|
|
178
|
-
}) => Promise<any>;
|
|
179
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceType } from "../provider/dataSource/DataSourceContext";
|
|
3
|
-
export declare type ModeType = 'edit' | 'add' | 'view' | 'disabled' | 'hidden' | 'tableView';
|
|
4
|
-
export interface DataSourceFormProps {
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
dataSource: DataSourceType;
|
|
8
|
-
extraParams?: Record<string, any>;
|
|
9
|
-
showTitle: boolean;
|
|
10
|
-
showDescription: boolean;
|
|
11
|
-
groupInfoPosition: 'top' | 'side';
|
|
12
|
-
variables: any[];
|
|
13
|
-
renderMode?: ModeType;
|
|
14
|
-
currentValue?: 'server' | 'local';
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
className?: string;
|
|
17
|
-
size?: 'small' | 'middle' | 'large';
|
|
18
|
-
onDataSourceFinish?: (values: any, result: any) => void;
|
|
19
|
-
__designMode?: string;
|
|
20
|
-
formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
|
|
21
|
-
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
22
|
-
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
23
|
-
beforeSubmit?: (values: Record<string, any>) => Promise<boolean> | boolean;
|
|
24
|
-
leaveConfirmConfig?: {
|
|
25
|
-
enable: boolean;
|
|
26
|
-
title: string;
|
|
27
|
-
content: string;
|
|
28
|
-
icon: React.ReactNode;
|
|
29
|
-
okText: string;
|
|
30
|
-
cancelText: string;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* URL参数处理工具方法
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* 从浏览器URL获取查询参数
|
|
6
|
-
* @returns Record<string, string> URL查询参数对象
|
|
7
|
-
*/
|
|
8
|
-
export declare const getUrlParams: () => Record<string, string>;
|
|
9
|
-
/**
|
|
10
|
-
* 从URL参数中提取formSettingMeta相关的参数
|
|
11
|
-
* @param urlParams URL查询参数对象,如果不传则自动从浏览器获取
|
|
12
|
-
* @returns 包含business_code、channel_code和isBoard参数的对象
|
|
13
|
-
*/
|
|
14
|
-
export declare const getFormSettingParams: (urlParams?: Record<string, string>) => {
|
|
15
|
-
businessCode: string;
|
|
16
|
-
channelCode: string;
|
|
17
|
-
isBoard: boolean;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* 根据URL参数更新租户设置数据
|
|
21
|
-
* @param data 要更新的数据对象,如 {"order.prefix":"","order.suffix":"","payment.number":""}
|
|
22
|
-
* @returns Promise<any> 返回更新结果
|
|
23
|
-
*/
|
|
24
|
-
export declare const updateTenantSettingFromUrl: (data: Record<string, any>) => Promise<any>;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { LocalSettingsType } from '../../table/types';
|
|
4
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
5
|
-
export declare type OperationItem = {
|
|
6
|
-
label?: string;
|
|
7
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
8
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
9
|
-
openTitle: string;
|
|
10
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
11
|
-
key: string;
|
|
12
|
-
buttonProps?: any;
|
|
13
|
-
onClick?: (record: any) => void;
|
|
14
|
-
afterClose?: () => void;
|
|
15
|
-
};
|
|
16
|
-
export interface DataSourceTableProps {
|
|
17
|
-
__id?: string;
|
|
18
|
-
currentComponentId?: string;
|
|
19
|
-
currentSettingKey?: string;
|
|
20
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
21
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
22
|
-
titleButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
tableButtons?: {
|
|
28
|
-
show: boolean;
|
|
29
|
-
maxCount: number;
|
|
30
|
-
items: OperationItem[];
|
|
31
|
-
};
|
|
32
|
-
buttons?: any[];
|
|
33
|
-
operation?: {
|
|
34
|
-
show: boolean;
|
|
35
|
-
title: string;
|
|
36
|
-
width: number;
|
|
37
|
-
align: 'left' | 'center' | 'right';
|
|
38
|
-
fixed: 'left' | 'right' | false;
|
|
39
|
-
type: 'link' | 'button';
|
|
40
|
-
items: OperationItem[];
|
|
41
|
-
};
|
|
42
|
-
operationContent?: {
|
|
43
|
-
[key: string]: React.ReactNode;
|
|
44
|
-
};
|
|
45
|
-
dataSource: DataSourceType;
|
|
46
|
-
columns: ColumnType<any>[];
|
|
47
|
-
filter: any;
|
|
48
|
-
search?: {
|
|
49
|
-
show: boolean;
|
|
50
|
-
placeholder: string;
|
|
51
|
-
};
|
|
52
|
-
__designMode: string;
|
|
53
|
-
componentId: string;
|
|
54
|
-
clickToDetail?: {
|
|
55
|
-
show: boolean;
|
|
56
|
-
useCustomAction: boolean;
|
|
57
|
-
actionType: string;
|
|
58
|
-
openMode: 'modal' | 'drawer';
|
|
59
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
60
|
-
openTitle: string;
|
|
61
|
-
key: string;
|
|
62
|
-
};
|
|
63
|
-
onRow?: any;
|
|
64
|
-
filterBy?: Record<string, any>;
|
|
65
|
-
sortBy: string;
|
|
66
|
-
tabs?: {
|
|
67
|
-
show: boolean;
|
|
68
|
-
type: string;
|
|
69
|
-
items: {
|
|
70
|
-
name: string;
|
|
71
|
-
filterBy: Record<string, any>;
|
|
72
|
-
sortBy: string;
|
|
73
|
-
}[];
|
|
74
|
-
};
|
|
75
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
76
|
-
extraParams?: {
|
|
77
|
-
list?: Record<string, any>;
|
|
78
|
-
get?: Record<string, any>;
|
|
79
|
-
update?: Record<string, any>;
|
|
80
|
-
create?: Record<string, any>;
|
|
81
|
-
destroy?: Record<string, any>;
|
|
82
|
-
};
|
|
83
|
-
localSettings?: LocalSettingsType;
|
|
84
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取nocobase数据列表
|
|
3
|
-
*/
|
|
4
|
-
export declare const getCountryDataList: () => Promise<any>;
|
|
5
|
-
export interface Country {
|
|
6
|
-
id: number;
|
|
7
|
-
name: {
|
|
8
|
-
en: string;
|
|
9
|
-
'zh-CN': string;
|
|
10
|
-
'zh-HK': string;
|
|
11
|
-
original: string;
|
|
12
|
-
};
|
|
13
|
-
code: string;
|
|
14
|
-
calling_code: string;
|
|
15
|
-
currency_code: string;
|
|
16
|
-
sort: number;
|
|
17
|
-
status: string;
|
|
18
|
-
created_at: string;
|
|
19
|
-
updated_at: string;
|
|
20
|
-
prefix: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const useCountries: () => {
|
|
23
|
-
data: Country[];
|
|
24
|
-
};
|