@pisell/materials 1.0.407 → 1.0.409
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 +13 -13
- package/build/lowcode/assets-dev.json +4 -4
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +59 -16
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +62 -19
- package/es/components/browserSelect/chevron-down.png +0 -0
- package/es/components/browserSelect/index.d.ts +15 -0
- package/es/components/browserSelect/index.js +36 -0
- package/es/components/browserSelect/index.less +18 -0
- package/es/components/date-picker/constants.d.ts +39 -0
- package/es/components/date-picker/constants.js +76 -0
- package/es/components/date-picker/datePickerCpt.d.ts +8 -0
- package/es/components/date-picker/datePickerCpt.js +370 -0
- package/es/components/date-picker/hooks/useMediaQuery.d.ts +2 -0
- package/es/components/date-picker/hooks/useMediaQuery.js +28 -0
- package/es/components/date-picker/index.js +2 -2
- package/es/components/date-picker/index.less +1880 -0
- package/es/components/drag-sort-tree/index.d.ts +0 -1
- package/es/components/drag-sort-tree/index.js +2 -1
- package/es/components/page/index.js +4 -2
- package/es/components/picker-view/index.d.ts +2 -0
- package/es/components/picker-view/index.js +2 -0
- package/es/components/pisell-config-provider/index.js +2 -0
- package/es/components/pisellModal/components/functions/index.d.ts +23 -5
- package/es/components/pisellModal/components/functions/index.js +7 -2
- package/es/components/pisellModal/index.d.ts +20 -5
- package/es/components/pisellTags/index.d.ts +13 -0
- package/es/components/pisellTags/index.js +83 -0
- package/es/components/pisellTags/index.less +17 -0
- package/es/components/pisellTags/utils.d.ts +1 -0
- package/es/components/pisellTags/utils.js +89 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +33 -48
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +9 -9
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +28 -43
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +45 -44
- package/es/components/table/Actions/component/ExportImport/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/index.js +34 -25
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/es/components/table/Actions/component/ExportImport/utils/index.js +11 -0
- package/es/components/table/BasicTable/index.js +5 -3
- package/es/components/table/Gallery/index.js +2 -1
- package/es/components/table/Table/fields/rangePicker/Edit/index.js +13 -11
- package/es/components/table/Table/index.d.ts +2 -2
- package/es/components/table/Table/index.js +68 -42
- package/es/components/table/Table/index.less +3 -0
- package/es/components/table/Table/utils.d.ts +14 -2
- package/es/components/table/Table/utils.js +6 -2
- package/es/components/table/View/index.d.ts +2 -2
- package/es/components/table/View/index.js +27 -16
- package/es/components/table/hooks/useGenScroll.js +1 -1
- package/es/components/table/hooks/useTableSetting.js +29 -7
- package/es/components/table/hooks/useTransDataSource.d.ts +1 -0
- package/es/components/table/hooks/useTransDataSource.js +8 -6
- package/es/components/table/index.js +7 -5
- package/es/components/table/index.less +9 -0
- package/es/components/table/serve.d.ts +3 -1
- package/es/components/table/serve.js +71 -9
- package/es/components/table/types.d.ts +17 -4
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -1
- package/es/locales/en-US.d.ts +12 -0
- package/es/locales/en-US.js +13 -0
- package/es/locales/zh-CN.d.ts +12 -0
- package/es/locales/zh-CN.js +13 -0
- package/es/locales/zh-TW.d.ts +12 -0
- package/es/locales/zh-TW.js +13 -0
- package/lib/components/browserSelect/chevron-down.png +0 -0
- package/lib/components/browserSelect/index.d.ts +15 -0
- package/lib/components/browserSelect/index.js +59 -0
- package/lib/components/browserSelect/index.less +18 -0
- package/lib/components/date-picker/constants.d.ts +39 -0
- package/lib/components/date-picker/constants.js +78 -0
- package/lib/components/date-picker/datePickerCpt.d.ts +8 -0
- package/lib/components/date-picker/datePickerCpt.js +403 -0
- package/lib/components/date-picker/hooks/useMediaQuery.d.ts +2 -0
- package/lib/components/date-picker/hooks/useMediaQuery.js +43 -0
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/date-picker/index.less +1880 -0
- package/lib/components/drag-sort-tree/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/index.js +0 -1
- package/lib/components/page/index.js +3 -2
- package/lib/components/picker-view/index.d.ts +2 -0
- package/lib/components/picker-view/index.js +36 -0
- package/lib/components/pisell-config-provider/index.js +2 -0
- package/lib/components/pisellModal/components/functions/index.d.ts +23 -5
- package/lib/components/pisellModal/components/functions/index.js +13 -7
- package/lib/components/pisellModal/index.d.ts +20 -5
- package/lib/components/pisellTags/index.d.ts +13 -0
- package/lib/components/pisellTags/index.js +113 -0
- package/lib/components/pisellTags/index.less +17 -0
- package/lib/components/pisellTags/utils.d.ts +1 -0
- package/lib/components/pisellTags/utils.js +86 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +9 -22
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +3 -8
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +9 -22
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +5 -8
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/index.js +15 -8
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/lib/components/table/Actions/component/ExportImport/utils/index.js +31 -0
- package/lib/components/table/BasicTable/index.js +2 -3
- package/lib/components/table/Gallery/index.js +2 -1
- package/lib/components/table/Table/fields/rangePicker/Edit/index.js +1 -9
- package/lib/components/table/Table/index.d.ts +2 -2
- package/lib/components/table/Table/index.js +61 -34
- package/lib/components/table/Table/index.less +3 -0
- package/lib/components/table/Table/utils.d.ts +14 -2
- package/lib/components/table/Table/utils.js +7 -1
- package/lib/components/table/View/index.d.ts +2 -2
- package/lib/components/table/View/index.js +28 -19
- package/lib/components/table/hooks/useGenScroll.js +1 -1
- package/lib/components/table/hooks/useTableSetting.js +26 -11
- package/lib/components/table/hooks/useTransDataSource.d.ts +1 -0
- package/lib/components/table/hooks/useTransDataSource.js +6 -5
- package/lib/components/table/index.js +4 -4
- package/lib/components/table/index.less +9 -0
- package/lib/components/table/serve.d.ts +3 -1
- package/lib/components/table/serve.js +38 -6
- package/lib/components/table/types.d.ts +17 -4
- package/lib/index.d.ts +3 -1
- package/lib/index.js +6 -0
- package/lib/locales/en-US.d.ts +12 -0
- package/lib/locales/en-US.js +13 -0
- package/lib/locales/zh-CN.d.ts +12 -0
- package/lib/locales/zh-CN.js +13 -0
- package/lib/locales/zh-TW.d.ts +12 -0
- package/lib/locales/zh-TW.js +13 -0
- package/lowcode/table/meta.ts +26 -18
- package/lowcode/table/snippets.ts +2 -3
- package/package.json +3 -3
- 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
|
@@ -89,9 +89,9 @@ var GridView = (0, import_model.Provider)(
|
|
|
89
89
|
const filterDefaultRef = (0, import_react.useRef)({});
|
|
90
90
|
const initialValuesRef = (0, import_react.useRef)({});
|
|
91
91
|
const { width } = (0, import_ahooks.useSize)(wrapRef) || {};
|
|
92
|
+
const debouncedWidth = (0, import_ahooks.useDebounce)(width, { wait: 100 });
|
|
92
93
|
const utils = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils;
|
|
93
94
|
const tableId = (0, import_react.useMemo)(() => {
|
|
94
|
-
console.log(props, "wh");
|
|
95
95
|
if (props.__designMode === "design") {
|
|
96
96
|
return "designMode-mock-table-id";
|
|
97
97
|
}
|
|
@@ -144,13 +144,13 @@ var GridView = (0, import_model.Provider)(
|
|
|
144
144
|
}
|
|
145
145
|
}, [currentSettingHash, tableId]);
|
|
146
146
|
(0, import_react.useEffect)(() => {
|
|
147
|
-
if (
|
|
147
|
+
if (debouncedWidth) {
|
|
148
148
|
modal.dispatch({
|
|
149
149
|
type: "setTableWidth",
|
|
150
|
-
payload:
|
|
150
|
+
payload: debouncedWidth || {}
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
}, [
|
|
153
|
+
}, [debouncedWidth]);
|
|
154
154
|
const { setTableSetting, tableSetting } = (0, import_useTableSetting.default)({
|
|
155
155
|
tableId,
|
|
156
156
|
filter,
|
|
@@ -9,6 +9,15 @@
|
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
|
|
12
|
+
.pisell-lowcode-table-body {
|
|
13
|
+
overscroll-behavior: none;
|
|
14
|
+
}
|
|
15
|
+
.pisell-lowcode-table-placeholder {
|
|
16
|
+
.cell-provider {
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
12
21
|
.pisell-lowcode-table-thead {
|
|
13
22
|
.pisell-lowcode-table-cell {
|
|
14
23
|
padding: 0 14px;
|
|
@@ -3,9 +3,11 @@ declare type exportParams = {
|
|
|
3
3
|
file_name?: string;
|
|
4
4
|
form_id?: string | number;
|
|
5
5
|
code?: string;
|
|
6
|
+
url?: string;
|
|
6
7
|
};
|
|
7
8
|
export declare const exportData: (params: exportParams) => Promise<any>;
|
|
8
9
|
export declare const batchImport: (params: any) => Promise<any>;
|
|
9
10
|
export declare const importTemplate: (params: exportParams) => Promise<any>;
|
|
10
|
-
export declare const
|
|
11
|
+
export declare const getExportFile: (params: any) => Promise<any>;
|
|
12
|
+
export declare const getImportLog: (params: any) => Promise<any>;
|
|
11
13
|
export {};
|
|
@@ -21,21 +21,53 @@ var serve_exports = {};
|
|
|
21
21
|
__export(serve_exports, {
|
|
22
22
|
batchImport: () => batchImport,
|
|
23
23
|
exportData: () => exportData,
|
|
24
|
-
|
|
24
|
+
getExportFile: () => getExportFile,
|
|
25
|
+
getImportLog: () => getImportLog,
|
|
25
26
|
importTemplate: () => importTemplate
|
|
26
27
|
});
|
|
27
28
|
module.exports = __toCommonJS(serve_exports);
|
|
28
29
|
var import_utils = require("./utils");
|
|
30
|
+
var defaultUrl = {
|
|
31
|
+
export: "/shop/form/data/export",
|
|
32
|
+
import: "/shop/form/data/import",
|
|
33
|
+
export_file: "/shop/form/data/task?type=export",
|
|
34
|
+
import_log: "/shop/form/data/task?type=import",
|
|
35
|
+
template: "/shop/form/data/download-template"
|
|
36
|
+
};
|
|
37
|
+
var formatApiParams = (params, type) => {
|
|
38
|
+
const _url = (params == null ? void 0 : params.url) || (defaultUrl == null ? void 0 : defaultUrl[type]);
|
|
39
|
+
let _params = { ...params };
|
|
40
|
+
delete _params.url;
|
|
41
|
+
return {
|
|
42
|
+
url: _url,
|
|
43
|
+
params: { ..._params }
|
|
44
|
+
};
|
|
45
|
+
};
|
|
29
46
|
var exportData = (params) => {
|
|
30
|
-
|
|
47
|
+
const _params = formatApiParams(params, "export");
|
|
48
|
+
return import_utils.request.getRequest().post(_params == null ? void 0 : _params.url, _params == null ? void 0 : _params.params);
|
|
49
|
+
};
|
|
50
|
+
var batchImport = (params) => {
|
|
51
|
+
const _params = formatApiParams(params, "import");
|
|
52
|
+
return import_utils.request.getRequest().post(_params == null ? void 0 : _params.url, params);
|
|
53
|
+
};
|
|
54
|
+
var importTemplate = (params) => {
|
|
55
|
+
const _params = formatApiParams(params, "template");
|
|
56
|
+
return import_utils.request.getRequest().post(_params == null ? void 0 : _params.url, _params == null ? void 0 : _params.params);
|
|
57
|
+
};
|
|
58
|
+
var getExportFile = async (params) => {
|
|
59
|
+
const _params = formatApiParams(params, "export_file");
|
|
60
|
+
return await import_utils.request.getRequest().get(_params == null ? void 0 : _params.url, _params == null ? void 0 : _params.params);
|
|
61
|
+
};
|
|
62
|
+
var getImportLog = async (params) => {
|
|
63
|
+
const _params = formatApiParams(params, "import_log");
|
|
64
|
+
return await import_utils.request.getRequest().get(_params == null ? void 0 : _params.url, _params == null ? void 0 : _params.params);
|
|
31
65
|
};
|
|
32
|
-
var batchImport = (params) => import_utils.request.getRequest().post("/shop/form/data/import", params);
|
|
33
|
-
var importTemplate = (params) => import_utils.request.getRequest().post("/shop/form/data/download-template", params);
|
|
34
|
-
var historyData = async (params) => await import_utils.request.getRequest().get("/shop/form/data/task", params);
|
|
35
66
|
// Annotate the CommonJS export names for ESM import in node:
|
|
36
67
|
0 && (module.exports = {
|
|
37
68
|
batchImport,
|
|
38
69
|
exportData,
|
|
39
|
-
|
|
70
|
+
getExportFile,
|
|
71
|
+
getImportLog,
|
|
40
72
|
importTemplate
|
|
41
73
|
});
|
|
@@ -161,22 +161,35 @@ declare type SortDetail = {
|
|
|
161
161
|
};
|
|
162
162
|
/** 导入导出模式 */
|
|
163
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
|
+
};
|
|
164
178
|
/**
|
|
165
179
|
* 导入导出配置
|
|
166
180
|
*/
|
|
167
181
|
export declare type ExportImportType = {
|
|
168
182
|
/** 是否展示 */
|
|
169
183
|
show: boolean;
|
|
170
|
-
/** 表id */
|
|
171
|
-
formId?: string;
|
|
172
|
-
/** 表key */
|
|
173
|
-
formCode?: string;
|
|
174
184
|
/** 当前所选项 */
|
|
175
185
|
selectLists: string[];
|
|
176
186
|
/** 导入模版链接 */
|
|
177
187
|
templateFileUrl: string;
|
|
178
188
|
/** 标题 */
|
|
179
189
|
title: string;
|
|
190
|
+
hiddenKeys?: string[];
|
|
191
|
+
apiUrl?: ApiProps;
|
|
192
|
+
otherParams?: any;
|
|
180
193
|
};
|
|
181
194
|
export declare type GridViewProps = {
|
|
182
195
|
columns: any;
|
package/lib/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export { default as List } from './components/list';
|
|
|
72
72
|
export { default as Sort } from './components/sort';
|
|
73
73
|
export { default as InputNumberRange } from './components/input-number-range';
|
|
74
74
|
export { default as LowCodePage } from './components/lowCodePage';
|
|
75
|
+
export { default as PickerView } from './components/picker-view';
|
|
75
76
|
export { default as Segmented } from './components/segmented';
|
|
76
77
|
export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
77
78
|
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
@@ -101,4 +102,5 @@ export { default as PisellAlert } from './components/pisellAlert';
|
|
|
101
102
|
export { default as PisellCard } from './components/pisellCard';
|
|
102
103
|
export { default as PisellInformationEntry } from './components/pisellInformationEntry';
|
|
103
104
|
export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
|
|
104
|
-
export { globalConfig, default as PisellContext } from './components/pisell-config-provider/context';
|
|
105
|
+
export { globalConfig, default as PisellContext, } from './components/pisell-config-provider/context';
|
|
106
|
+
export { default as PisellTags } from './components/pisellTags';
|
package/lib/index.js
CHANGED
|
@@ -73,6 +73,7 @@ __export(src_exports, {
|
|
|
73
73
|
Modal: () => import_modal.default,
|
|
74
74
|
Page: () => import_page.default,
|
|
75
75
|
Pagination: () => import_antd22.Pagination,
|
|
76
|
+
PickerView: () => import_picker_view.default,
|
|
76
77
|
PisellAlert: () => import_pisellAlert.default,
|
|
77
78
|
PisellCard: () => import_pisellCard.default,
|
|
78
79
|
PisellCardList: () => import_pisellCardList.default,
|
|
@@ -89,6 +90,7 @@ __export(src_exports, {
|
|
|
89
90
|
PisellModal: () => import_pisellModal.default,
|
|
90
91
|
PisellRow: () => import_pisellRow.default,
|
|
91
92
|
PisellScan: () => import_pisellScan.default,
|
|
93
|
+
PisellTags: () => import_pisellTags.default,
|
|
92
94
|
PisellText: () => import_pisellText.default,
|
|
93
95
|
PisellToast: () => import_pisellToast.default,
|
|
94
96
|
PisellTooltip: () => import_pisellTooltip.default,
|
|
@@ -210,6 +212,7 @@ var import_list = __toESM(require("./components/list"));
|
|
|
210
212
|
var import_sort = __toESM(require("./components/sort"));
|
|
211
213
|
var import_input_number_range = __toESM(require("./components/input-number-range"));
|
|
212
214
|
var import_lowCodePage = __toESM(require("./components/lowCodePage"));
|
|
215
|
+
var import_picker_view = __toESM(require("./components/picker-view"));
|
|
213
216
|
var import_segmented = __toESM(require("./components/segmented"));
|
|
214
217
|
var import_virtual_keyboard = __toESM(require("./components/virtual-keyboard"));
|
|
215
218
|
var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
|
|
@@ -240,6 +243,7 @@ var import_pisellCard = __toESM(require("./components/pisellCard"));
|
|
|
240
243
|
var import_pisellInformationEntry = __toESM(require("./components/pisellInformationEntry"));
|
|
241
244
|
var import_usePisellConfig = __toESM(require("./components/pisell-config-provider/hooks/usePisellConfig"));
|
|
242
245
|
var import_context = __toESM(require("./components/pisell-config-provider/context"));
|
|
246
|
+
var import_pisellTags = __toESM(require("./components/pisellTags"));
|
|
243
247
|
// Annotate the CommonJS export names for ESM import in node:
|
|
244
248
|
0 && (module.exports = {
|
|
245
249
|
Affix,
|
|
@@ -286,6 +290,7 @@ var import_context = __toESM(require("./components/pisell-config-provider/contex
|
|
|
286
290
|
Modal,
|
|
287
291
|
Page,
|
|
288
292
|
Pagination,
|
|
293
|
+
PickerView,
|
|
289
294
|
PisellAlert,
|
|
290
295
|
PisellCard,
|
|
291
296
|
PisellCardList,
|
|
@@ -302,6 +307,7 @@ var import_context = __toESM(require("./components/pisell-config-provider/contex
|
|
|
302
307
|
PisellModal,
|
|
303
308
|
PisellRow,
|
|
304
309
|
PisellScan,
|
|
310
|
+
PisellTags,
|
|
305
311
|
PisellText,
|
|
306
312
|
PisellToast,
|
|
307
313
|
PisellTooltip,
|
package/lib/locales/en-US.d.ts
CHANGED
|
@@ -97,6 +97,18 @@ declare const _default: {
|
|
|
97
97
|
'table-action-export-import-log-copy': string;
|
|
98
98
|
'table-action-export-import-table-success-copy': string;
|
|
99
99
|
'drag-sort-tree-unavailable-today-tip': string;
|
|
100
|
+
'date-picker-today': string;
|
|
101
|
+
'date-picker-yesterday': string;
|
|
102
|
+
'date-picker-tomorrow': string;
|
|
103
|
+
'date-picker-next_monday': string;
|
|
104
|
+
'date-picker-last_friday': string;
|
|
105
|
+
'date-picker-first_day_of_this_month': string;
|
|
106
|
+
'date-picker-last_day_of_this_month': string;
|
|
107
|
+
'date-picker-first_day_of_next_month': string;
|
|
108
|
+
'date-picker-last_day_of_last_month': string;
|
|
109
|
+
'date-picker-invalid-date': string;
|
|
110
|
+
"date-picker-apply": string;
|
|
111
|
+
'date-picker-shortcut-custom': string;
|
|
100
112
|
'pisell-input-copy-success': string;
|
|
101
113
|
'pisell-input-copy': string;
|
|
102
114
|
'pisell-empty-description-no-data': string;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -125,6 +125,19 @@ var en_US_default = {
|
|
|
125
125
|
"table-action-export-import-log-copy": "Copy",
|
|
126
126
|
"table-action-export-import-table-success-copy": "Copy Success",
|
|
127
127
|
"drag-sort-tree-unavailable-today-tip": "Unavailable today",
|
|
128
|
+
// 日期组件
|
|
129
|
+
"date-picker-today": "Today",
|
|
130
|
+
"date-picker-yesterday": "Yesterday",
|
|
131
|
+
"date-picker-tomorrow": "Tomorrow",
|
|
132
|
+
"date-picker-next_monday": "Next monday",
|
|
133
|
+
"date-picker-last_friday": "Last friday",
|
|
134
|
+
"date-picker-first_day_of_this_month": "First day of this month",
|
|
135
|
+
"date-picker-last_day_of_this_month": "Last day of this month",
|
|
136
|
+
"date-picker-first_day_of_next_month": "First day of next month",
|
|
137
|
+
"date-picker-last_day_of_last_month": "Last day of last month",
|
|
138
|
+
"date-picker-invalid-date": "Invalid date",
|
|
139
|
+
"date-picker-apply": "Apply",
|
|
140
|
+
"date-picker-shortcut-custom": "Custom",
|
|
128
141
|
"pisell-input-copy-success": "Copy Success",
|
|
129
142
|
"pisell-input-copy": "Copy",
|
|
130
143
|
// 空状态
|
package/lib/locales/zh-CN.d.ts
CHANGED
|
@@ -97,6 +97,18 @@ declare const _default: {
|
|
|
97
97
|
'table-action-export-import-log-copy': string;
|
|
98
98
|
'table-action-export-import-table-success-copy': string;
|
|
99
99
|
'drag-sort-tree-unavailable-today-tip': string;
|
|
100
|
+
'date-picker-today': string;
|
|
101
|
+
'date-picker-yesterday': string;
|
|
102
|
+
'date-picker-tomorrow': string;
|
|
103
|
+
'date-picker-next_monday': string;
|
|
104
|
+
'date-picker-last_friday': string;
|
|
105
|
+
'date-picker-first_day_of_this_month': string;
|
|
106
|
+
'date-picker-last_day_of_this_month': string;
|
|
107
|
+
'date-picker-first_day_of_next_month': string;
|
|
108
|
+
'date-picker-last_day_of_last_month': string;
|
|
109
|
+
'date-picker-invalid-date': string;
|
|
110
|
+
"date-picker-apply": string;
|
|
111
|
+
'date-picker-shortcut-custom': string;
|
|
100
112
|
'pisell-input-copy-success': string;
|
|
101
113
|
'pisell-input-copy': string;
|
|
102
114
|
'pisell-empty-description-no-data': string;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -125,6 +125,19 @@ var zh_CN_default = {
|
|
|
125
125
|
"table-action-export-import-log-copy": "复制",
|
|
126
126
|
"table-action-export-import-table-success-copy": "复制成功",
|
|
127
127
|
"drag-sort-tree-unavailable-today-tip": "今日不可用",
|
|
128
|
+
// 日期组件
|
|
129
|
+
"date-picker-today": "今天",
|
|
130
|
+
"date-picker-yesterday": "昨天",
|
|
131
|
+
"date-picker-tomorrow": "明天",
|
|
132
|
+
"date-picker-next_monday": "下个星期一",
|
|
133
|
+
"date-picker-last_friday": "上个星期五",
|
|
134
|
+
"date-picker-first_day_of_this_month": "本月的第一天",
|
|
135
|
+
"date-picker-last_day_of_this_month": "本月的最后一天",
|
|
136
|
+
"date-picker-first_day_of_next_month": "下个月的第一天",
|
|
137
|
+
"date-picker-last_day_of_last_month": "上个月的最后一天",
|
|
138
|
+
"date-picker-invalid-date": "无效日期",
|
|
139
|
+
"date-picker-apply": "确定",
|
|
140
|
+
"date-picker-shortcut-custom": "自定义",
|
|
128
141
|
"pisell-input-copy-success": "复制成功",
|
|
129
142
|
"pisell-input-copy": "复制",
|
|
130
143
|
// 空状态
|
package/lib/locales/zh-TW.d.ts
CHANGED
|
@@ -97,6 +97,18 @@ declare const _default: {
|
|
|
97
97
|
'table-action-export-import-log-copy': string;
|
|
98
98
|
'table-action-export-import-table-success-copy': string;
|
|
99
99
|
'drag-sort-tree-unavailable-today-tip': string;
|
|
100
|
+
'date-picker-today': string;
|
|
101
|
+
'date-picker-yesterday': string;
|
|
102
|
+
'date-picker-tomorrow': string;
|
|
103
|
+
'date-picker-next_monday': string;
|
|
104
|
+
'date-picker-last_friday': string;
|
|
105
|
+
'date-picker-first_day_of_this_month': string;
|
|
106
|
+
'date-picker-last_day_of_this_month': string;
|
|
107
|
+
'date-picker-first_day_of_next_month': string;
|
|
108
|
+
'date-picker-last_day_of_last_month': string;
|
|
109
|
+
'date-picker-invalid-date': string;
|
|
110
|
+
"date-picker-apply": string;
|
|
111
|
+
'date-picker-shortcut-custom': string;
|
|
100
112
|
'pisell-input-copy-success': string;
|
|
101
113
|
'pisell-input-copy': string;
|
|
102
114
|
'pisell-empty-description-no-data': string;
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -125,6 +125,19 @@ var zh_TW_default = {
|
|
|
125
125
|
"table-action-export-import-log-copy": "復製",
|
|
126
126
|
"table-action-export-import-table-success-copy": "復製成功",
|
|
127
127
|
"drag-sort-tree-unavailable-today-tip": "今日不可用",
|
|
128
|
+
// 日期组件
|
|
129
|
+
"date-picker-today": "今天",
|
|
130
|
+
"date-picker-yesterday": "昨天",
|
|
131
|
+
"date-picker-tomorrow": "明天",
|
|
132
|
+
"date-picker-next_monday": "下個星期一",
|
|
133
|
+
"date-picker-last_friday": "上個星期五",
|
|
134
|
+
"date-picker-first_day_of_this_month": "本月的第一天",
|
|
135
|
+
"date-picker-last_day_of_this_month": "本月的最後一天",
|
|
136
|
+
"date-picker-first_day_of_next_month": "下個月的第一天",
|
|
137
|
+
"date-picker-last_day_of_last_month": "上個月的最後一天",
|
|
138
|
+
"date-picker-invalid-date": "無效日期",
|
|
139
|
+
"date-picker-apply": "确定",
|
|
140
|
+
"date-picker-shortcut-custom": "自定義",
|
|
128
141
|
"pisell-input-copy-success": "復製成功",
|
|
129
142
|
"pisell-input-copy": "復製",
|
|
130
143
|
// 空状态
|
package/lowcode/table/meta.ts
CHANGED
|
@@ -2111,29 +2111,37 @@ export default {
|
|
|
2111
2111
|
},
|
|
2112
2112
|
{
|
|
2113
2113
|
name: "exportImport.apiUrl",
|
|
2114
|
-
title: { label: "接口地址", tip: "接口地址 | '/shop/order/task'" },
|
|
2115
|
-
|
|
2116
|
-
setter: "StringSetter",
|
|
2117
|
-
condition: {
|
|
2118
|
-
type: "JSFunction",
|
|
2119
|
-
value: 'target => !!target.getProps().getPropValue("exportImport.show")',
|
|
2120
|
-
},
|
|
2121
|
-
},
|
|
2122
|
-
{
|
|
2123
|
-
name: "exportImport.formId",
|
|
2124
|
-
title: { label: "表单ID", tip: "表单ID" },
|
|
2125
|
-
propType: "string",
|
|
2126
|
-
setter: "StringSetter",
|
|
2114
|
+
title: { label: "接口地址", tip: "接口地址 | [{export: '/shop/order/task'}]" },
|
|
2115
|
+
setter: "ObjectSetter",
|
|
2127
2116
|
condition: {
|
|
2128
2117
|
type: "JSFunction",
|
|
2129
2118
|
value: 'target => !!target.getProps().getPropValue("exportImport.show")',
|
|
2130
2119
|
},
|
|
2131
2120
|
},
|
|
2132
|
-
{
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2121
|
+
// {
|
|
2122
|
+
// name: "exportImport.formId",
|
|
2123
|
+
// title: { label: "表单ID", tip: "表单ID" },
|
|
2124
|
+
// propType: "string",
|
|
2125
|
+
// setter: "StringSetter",
|
|
2126
|
+
// condition: {
|
|
2127
|
+
// type: "JSFunction",
|
|
2128
|
+
// value: 'target => !!target.getProps().getPropValue("exportImport.show")',
|
|
2129
|
+
// },
|
|
2130
|
+
// },
|
|
2131
|
+
// {
|
|
2132
|
+
// name: "exportImport.formCode",
|
|
2133
|
+
// title: { label: "表单Code", tip: "表单Code|表单的唯一标识" },
|
|
2134
|
+
// propType: "string",
|
|
2135
|
+
// setter: "StringSetter",
|
|
2136
|
+
// condition: {
|
|
2137
|
+
// type: "JSFunction",
|
|
2138
|
+
// value: 'target => !!target.getProps().getPropValue("exportImport.show")',
|
|
2139
|
+
// },
|
|
2140
|
+
// },
|
|
2141
|
+
{
|
|
2142
|
+
name: "exportImport.otherParams",
|
|
2143
|
+
title: { label: "接口其他参数", tip: "接口其他参数" },
|
|
2144
|
+
setter: "ObjectSetter",
|
|
2137
2145
|
condition: {
|
|
2138
2146
|
type: "JSFunction",
|
|
2139
2147
|
value: 'target => !!target.getProps().getPropValue("exportImport.show")',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.409",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
65
65
|
"crypto-js": "^4.2.0",
|
|
66
66
|
"@zxing/library": "0.21.2",
|
|
67
|
-
"@pisell/utils": "1.0.
|
|
67
|
+
"@pisell/utils": "1.0.42",
|
|
68
68
|
"@pisell/icon": "0.0.10",
|
|
69
|
-
"@pisell/date-picker": "1.0.
|
|
69
|
+
"@pisell/date-picker": "1.0.109"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"react": "^18.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.materials-grid{display:flex;flex-direction:column;height:100%;width:100%}.materials-grid-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-header .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-actions .left-wrap{align-items:center;display:flex;flex:1 1}.materials-grid-actions .left-wrap .pisell-lowcode-form-item{margin-bottom:0}.materials-grid-actions .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions .right-wrap .icon{cursor:pointer;transition:.2s}.materials-grid-actions .right-wrap .icon:hover{color:var(--theme-color)}.materials-grid-actions .right-wrap .button{align-items:center;display:flex;font-size:12px;height:28px;justify-content:center}.filter-dropdown-wrap{display:flex;flex-direction:column;max-height:400px;max-width:calc(100vw - 24px);min-width:250px;padding:4px;width:400px}.filter-dropdown-wrap .filter-dropdown-wrap-content{flex:1 1;overflow:auto}.filter-dropdown-wrap .filter-dropdown-drag-item{align-items:center;background:#f9fafb;background:var(--gray-50,#f9fafb);border-radius:8px;display:flex;margin-bottom:12px;padding:8px 12px 12px}.filter-dropdown-wrap .filter-dropdown-drag-item .dots-six-icon{color:#98a2b3;cursor:pointer;font-size:24px}.filter-dropdown-wrap .filter-dropdown-drag-item .pisell-lowcode-form-item{margin-bottom:0}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right{flex:1 1;margin-left:16px}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right .filter-dropdown-drag-item-title{color:#777;color:var(--text-text-2,#777);font-size:14px;font-style:normal;font-weight:600;line-height:20px}.filter-dropdown-container-wrap{border-bottom:1px solid #e2e2e2;border-bottom:1px solid var(--surface-surface-4,#e2e2e2);margin-bottom:20px;min-height:70px}.filter-dropdown-container-wrap:last-child{border:none}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap{align-items:center;color:#919191;color:var(--text-text-3,#919191);display:flex;font-size:16px;font-style:normal;font-weight:600;line-height:22px;margin-bottom:12px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-title{color:#101828;color:var(--gray-900,#101828);font-size:16px;font-style:normal;font-weight:600;line-height:24px;margin-right:6px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-icon-help{color:#98a2b3;color:var(--gray-400,#98a2b3);font-size:20px}.filter-dropdown-container-wrap .filter-dropdown-container-filter-wrap{min-height:80px}.materials-sort-list-empty{color:#5a5a5a;display:block;padding-top:22px;text-align:center}.materials-grid-summary{margin-bottom:16px}.grid-view-table-wrap{position:relative}.materials-grid-paginator{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:center;margin:0!important;padding:0 20px;width:100%}.materials-grid-paginator .pisell-lowcode-pagination-total-text{color:#667085;color:var(--gray-500,#667085);font-size:14px;font-style:normal;font-weight:500;margin-right:auto}.materials-grid-paginator .pisell-lowcode-pagination-item{border:1px solid #d0d5dd;border-radius:0;border-right:0;margin:0;position:relative}.materials-grid-paginator .pisell-lowcode-pagination-jump-next,.materials-grid-paginator .pisell-lowcode-pagination-jump-prev{border:1px solid #d0d5dd;border-radius:0;border-right:none;margin:0}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover .pisell-lowcode-pagination-item-link-icon{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active:hover{border-color:#d0d5dd!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active{background-color:rgba(0,0,0,.06)}.materials-grid-paginator .pisell-lowcode-pagination-item-active a{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-prev{align-items:center;border:1px solid #d0d5dd;border-radius:8px 0 0 8px;border-right:none;display:flex;justify-content:center;margin:0;min-width:auto}.materials-grid-paginator .pisell-lowcode-pagination-next{align-items:center;border:1px solid #d0d5dd;border-radius:0 8px 8px 0;display:flex;justify-content:center;margin:0;min-width:auto}.paginator-page-btn{align-items:center;border-radius:4px 4px 4px 4px;color:#344054;color:var(--gray-700,#344054);cursor:pointer;display:flex;font-size:12px;font-weight:400;justify-content:center;padding:10px 16px;transition:.2s;-ms-user-select:none;user-select:none}.paginator-page-btn .paginator-page-btn-text{font-weight:600}.paginator-page-btn .paginator-page-btn-left-icon,.paginator-page-btn .paginator-page-btn-right-icon{font-size:20px}.paginator-page-btn .paginator-page-btn-left-icon{margin-right:8px}.paginator-page-btn .paginator-page-btn-right-icon{margin-left:8px}.paginator-page-btn.left{margin-right:auto}.paginator-page-btn.left .icon{font-size:18px;margin-right:8px}.paginator-page-btn.right{margin-left:auto}.paginator-page-btn.right .icon{font-size:18px;margin-left:8px;transform:rotate(180deg)}.materials-grid-paginator-mini{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:space-between;margin:0!important;overflow:hidden;padding:0 20px;width:100%}.materials-grid-paginator-mini .paginator-page-btn{padding:8px}.materials-grid-paginator-mini .materials-grid-paginator-center{align-items:center;display:flex;gap:4px;justify-content:center}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-text{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:400}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-value{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:500}.materials-grid-paginator-mini .pisell-lowcode-pagination-next,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev{border:1px solid #d0d5dd;border-radius:8px;margin:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-left-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-left-icon{margin-right:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-right-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-right-icon{margin-left:0}.react-resizable{position:relative}.react-resizable-handle{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZaIiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+);background-origin:content-box;background-position:100% 100%;background-repeat:no-repeat;box-sizing:border-box;height:20px;padding:0 3px 3px 0;position:absolute;width:20px}.react-resizable-handle-sw{bottom:0;cursor:sw-resize;left:0;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;cursor:se-resize;right:0}.react-resizable-handle-nw{cursor:nw-resize;left:0;top:0;transform:rotate(180deg)}.react-resizable-handle-ne{cursor:ne-resize;right:0;top:0;transform:rotate(270deg)}.react-resizable-handle-e,.react-resizable-handle-w{cursor:ew-resize;margin-top:-10px;top:50%}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{cursor:ns-resize;left:50%;margin-left:-10px}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.materials-grid-table-header-cell{align-items:center;display:flex;height:44px;padding:0 14px}.materials-grid-table-header-cell .field-icon{color:#777;font-size:18px}.materials-grid-table-header-cell .materials-grid-table-header-cell-content{color:#1b1b1b;flex:auto;font-size:14px;font-weight:600;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.materials-grid-table-header-cell .actions{align-items:center;display:flex;gap:8px}.materials-grid-table-header-cell .actions .action{color:#ababab;cursor:pointer;font-size:14px}.editable-cell-value-wrap{height:100%;width:100%}.materials-grid-table-cell{height:1px;padding:0!important}.cell-provider{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:100%;justify-content:center;padding:12px;position:relative;width:100%}.cell-provider.focus{box-shadow:var(--theme-color) 0 0 0 1px!important}
|