@pisell/materials 3.0.4 → 3.0.6
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/antd/antd-css-compatible-5.17.2.min.js +346 -0
- 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 +3 -3
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +14 -14
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +20 -20
- package/es/components/filter/components/FilterButton/index.js +7 -3
- package/es/components/sort/index.js +1 -1
- package/es/components/sort/types.d.ts +1 -0
- package/es/components/table/BasicTable/index.js +10 -0
- package/es/components/table/Table/fields/rangePicker/Edit/index.js +8 -7
- package/es/components/table/Table/index.js +2 -1
- package/es/components/table/Table/tableConfig/body/index.less +0 -2
- package/es/components/table/Table/tableConfig/header/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/header/index.js +8 -4
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/hooks/useTransColumns.d.ts +1 -0
- package/es/components/table/hooks/useTransColumns.js +35 -15
- package/es/components/table/hooks/useTransSortSetting.js +4 -1
- package/es/components/table/hooks/useTriggerValuesChange.js +36 -3
- package/es/components/table/index.less +17 -2
- package/es/locales/en-US.d.ts +7 -0
- package/es/locales/en-US.js +8 -1
- package/es/locales/zh-CN.d.ts +7 -0
- package/es/locales/zh-CN.js +8 -1
- package/es/locales/zh-TW.d.ts +7 -0
- package/es/locales/zh-TW.js +8 -1
- package/lib/components/filter/components/FilterButton/index.js +3 -2
- package/lib/components/sort/index.js +1 -1
- package/lib/components/sort/types.d.ts +1 -0
- package/lib/components/table/BasicTable/index.js +4 -0
- package/lib/components/table/Table/fields/rangePicker/Edit/index.js +8 -7
- package/lib/components/table/Table/index.js +2 -1
- package/lib/components/table/Table/tableConfig/body/index.less +0 -2
- package/lib/components/table/Table/tableConfig/header/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/header/index.js +6 -2
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/hooks/useTransColumns.d.ts +1 -0
- package/lib/components/table/hooks/useTransColumns.js +24 -10
- package/lib/components/table/hooks/useTransSortSetting.js +3 -1
- package/lib/components/table/hooks/useTriggerValuesChange.js +27 -3
- package/lib/components/table/index.less +17 -2
- package/lib/locales/en-US.d.ts +7 -0
- package/lib/locales/en-US.js +8 -1
- package/lib/locales/zh-CN.d.ts +7 -0
- package/lib/locales/zh-CN.js +8 -1
- package/lib/locales/zh-TW.d.ts +7 -0
- package/lib/locales/zh-TW.js +8 -1
- package/lowcode/table/meta.ts +20 -0
- 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
|
@@ -80,15 +80,19 @@ var CustomHeaderCell = (props) => {
|
|
|
80
80
|
lock,
|
|
81
81
|
editable,
|
|
82
82
|
dataIndex,
|
|
83
|
+
position,
|
|
83
84
|
...restProps
|
|
84
85
|
} = props;
|
|
85
86
|
const isCheckbox = !props.record;
|
|
86
87
|
if (isCheckbox) {
|
|
87
88
|
restProps.style = {
|
|
88
|
-
...restProps.style
|
|
89
|
-
paddingInlineStart: 8
|
|
89
|
+
...restProps.style
|
|
90
|
+
// paddingInlineStart: 8,
|
|
90
91
|
};
|
|
91
92
|
}
|
|
93
|
+
if (position === "end") {
|
|
94
|
+
return /* @__PURE__ */ import_react.default.createElement("td", { ...restProps }, /* @__PURE__ */ import_react.default.createElement(import_CellProvider.default, { ...props }));
|
|
95
|
+
}
|
|
92
96
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
93
97
|
ResizeCellStyle,
|
|
94
98
|
{
|
|
@@ -146,7 +146,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
146
146
|
sort?: SortType | undefined;
|
|
147
147
|
mode: "" | "localStorage" | "remote";
|
|
148
148
|
currentViewMode: ModeType;
|
|
149
|
-
}) => ("
|
|
149
|
+
}) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
|
|
150
150
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
151
151
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
152
152
|
export {};
|
|
@@ -6,6 +6,7 @@ declare type UseTransColumnsProps = {
|
|
|
6
6
|
handleSave?: (row: Record<string, any>) => void;
|
|
7
7
|
handleResize?: (index: number) => (e: any, p2: any) => void;
|
|
8
8
|
dragSort: boolean;
|
|
9
|
+
bordered: boolean;
|
|
9
10
|
};
|
|
10
11
|
declare const useTransColumns: (params: UseTransColumnsProps) => {
|
|
11
12
|
columns: any[];
|
|
@@ -41,25 +41,26 @@ var import_selectFilter = __toESM(require("../TableFilter/selectFilter"));
|
|
|
41
41
|
var import_SortIcon = __toESM(require("../TableFilter/SortIcon"));
|
|
42
42
|
var import_utils2 = require("../Table/fields/utils");
|
|
43
43
|
var import_locales = require("../../../locales");
|
|
44
|
-
var genOnCell = (position) => (_) => {
|
|
44
|
+
var genOnCell = ({ bordered, position }) => (_) => {
|
|
45
45
|
let styleObj = {};
|
|
46
46
|
let notGroupStyle = {};
|
|
47
|
+
const borderStr = bordered ? "1px solid #EAECF0" : "";
|
|
47
48
|
if (position === "start") {
|
|
48
49
|
styleObj = {
|
|
49
|
-
borderLeft:
|
|
50
|
+
borderLeft: borderStr,
|
|
50
51
|
borderRadius: "8px 0px 0px 0px",
|
|
51
52
|
padding: "12px"
|
|
52
53
|
};
|
|
53
54
|
notGroupStyle = {
|
|
54
|
-
borderLeft:
|
|
55
|
+
borderLeft: borderStr
|
|
55
56
|
};
|
|
56
57
|
} else if (position === "end") {
|
|
57
58
|
styleObj = {
|
|
58
|
-
borderRight:
|
|
59
|
+
borderRight: borderStr,
|
|
59
60
|
borderRadius: "0px 8px 0px 0px"
|
|
60
61
|
};
|
|
61
62
|
notGroupStyle = {
|
|
62
|
-
borderRight:
|
|
63
|
+
borderRight: borderStr
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
return {
|
|
@@ -73,7 +74,7 @@ var genOnCell = (position) => (_) => {
|
|
|
73
74
|
};
|
|
74
75
|
var useTransColumns = (params) => {
|
|
75
76
|
var _a;
|
|
76
|
-
const { columns, form, handleSave, handleResize, dragSort } = params;
|
|
77
|
+
const { columns, form, handleSave, handleResize, dragSort, bordered } = params;
|
|
77
78
|
const group = import_antd.Form.useWatch("group_by", { form, preserve: true });
|
|
78
79
|
const groupField = (_a = group == null ? void 0 : group[0]) == null ? void 0 : _a.field;
|
|
79
80
|
const groupFieldRender = (0, import_react.useCallback)(
|
|
@@ -116,7 +117,8 @@ var useTransColumns = (params) => {
|
|
|
116
117
|
newColumns.unshift({
|
|
117
118
|
key: "__sort",
|
|
118
119
|
width: 60,
|
|
119
|
-
align: "center"
|
|
120
|
+
align: "center",
|
|
121
|
+
className: "drag-sort-cell"
|
|
120
122
|
});
|
|
121
123
|
}
|
|
122
124
|
return newColumns.map((col, index) => {
|
|
@@ -128,6 +130,17 @@ var useTransColumns = (params) => {
|
|
|
128
130
|
position = "end";
|
|
129
131
|
}
|
|
130
132
|
let groupObj = {};
|
|
133
|
+
if (groupField) {
|
|
134
|
+
groupObj = {
|
|
135
|
+
render: (text, record) => {
|
|
136
|
+
var _a4;
|
|
137
|
+
if (record.__is_group) {
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
return ((_a4 = col == null ? void 0 : col.render) == null ? void 0 : _a4.call(col, text, record)) || text;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
131
144
|
if (position === "start" && groupField) {
|
|
132
145
|
groupObj = {
|
|
133
146
|
fixed: "left",
|
|
@@ -178,17 +191,18 @@ var useTransColumns = (params) => {
|
|
|
178
191
|
onCell: (record) => ({
|
|
179
192
|
record,
|
|
180
193
|
...item,
|
|
181
|
-
...genOnCell(position)(record),
|
|
194
|
+
...genOnCell({ position, bordered })(record),
|
|
182
195
|
handleSave
|
|
183
196
|
}),
|
|
184
197
|
onHeaderCell: (record) => ({
|
|
185
198
|
record,
|
|
186
199
|
...item,
|
|
187
|
-
onResize: handleResize == null ? void 0 : handleResize(index)
|
|
200
|
+
onResize: handleResize == null ? void 0 : handleResize(index),
|
|
201
|
+
position
|
|
188
202
|
})
|
|
189
203
|
};
|
|
190
204
|
});
|
|
191
|
-
}, [columns, groupFieldRender, dragSort, groupField]);
|
|
205
|
+
}, [columns, groupFieldRender, dragSort, groupField, bordered]);
|
|
192
206
|
return {
|
|
193
207
|
columns: _columns
|
|
194
208
|
};
|
|
@@ -23,6 +23,7 @@ __export(useTransSortSetting_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(useTransSortSetting_exports);
|
|
25
25
|
var import_react = require("react");
|
|
26
|
+
var import_utils = require("@pisell/utils");
|
|
26
27
|
var useTransSortSetting = (params) => {
|
|
27
28
|
const { sort, originColumnsMap } = params;
|
|
28
29
|
return (0, import_react.useMemo)(() => {
|
|
@@ -30,7 +31,7 @@ var useTransSortSetting = (params) => {
|
|
|
30
31
|
return {
|
|
31
32
|
...sort,
|
|
32
33
|
list: sort.list.map((item) => {
|
|
33
|
-
let { name, label, columnKey, isCustom } = item;
|
|
34
|
+
let { name, label, columnKey, isCustom, localFilter } = item;
|
|
34
35
|
if (!isCustom && columnKey && originColumnsMap.has(columnKey)) {
|
|
35
36
|
const column = originColumnsMap.get(columnKey);
|
|
36
37
|
name = column.dataIndex || name;
|
|
@@ -38,6 +39,7 @@ var useTransSortSetting = (params) => {
|
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
40
41
|
...item,
|
|
42
|
+
localFilter: (0, import_utils.isBoolean)(localFilter) ? localFilter : true,
|
|
41
43
|
name,
|
|
42
44
|
label
|
|
43
45
|
};
|
|
@@ -27,9 +27,11 @@ var import_utils = require("../Table/utils");
|
|
|
27
27
|
var useTriggerValuesChange = (params) => {
|
|
28
28
|
const { filter, columnSetting, dataSourceGroup, sort, currentViewMode } = params;
|
|
29
29
|
const { list, show } = filter || {};
|
|
30
|
+
const { list: sortList, show: sortShow } = sort || {};
|
|
31
|
+
const lastIsRemoteSort = (0, import_react.useRef)(false);
|
|
30
32
|
const getIsTriggerValuesChange = (0, import_react.useCallback)(
|
|
31
33
|
(changedValues, values) => {
|
|
32
|
-
var _a;
|
|
34
|
+
var _a, _b, _c;
|
|
33
35
|
const keys = (0, import_utils.getSettingKeyArrByMode)({
|
|
34
36
|
filter,
|
|
35
37
|
columnSetting,
|
|
@@ -45,10 +47,32 @@ var useTriggerValuesChange = (params) => {
|
|
|
45
47
|
if (changedKey === "view_mode") {
|
|
46
48
|
return false;
|
|
47
49
|
}
|
|
50
|
+
if (changedKey === "order_by") {
|
|
51
|
+
if (sortShow && (sortList == null ? void 0 : sortList.length)) {
|
|
52
|
+
const value = changedValues[changedKey];
|
|
53
|
+
const sortField = ((_b = (_a = value == null ? void 0 : value.split) == null ? void 0 : _a.call(value, ":")) == null ? void 0 : _b[0]) || "";
|
|
54
|
+
const remoteSortKeys = sortList.filter((item) => !item.localFilter).map((item) => {
|
|
55
|
+
var _a2;
|
|
56
|
+
return (_a2 = item.name) == null ? void 0 : _a2.toString();
|
|
57
|
+
});
|
|
58
|
+
const result = remoteSortKeys.includes(sortField);
|
|
59
|
+
if (sortField === "" && lastIsRemoteSort.current) {
|
|
60
|
+
lastIsRemoteSort.current = false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
if (sortField !== "") {
|
|
64
|
+
lastIsRemoteSort.current = result;
|
|
65
|
+
}
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
48
69
|
if (changedKey === "filters") {
|
|
49
|
-
const filterKey = ((
|
|
70
|
+
const filterKey = ((_c = Object.keys(changedValues.filters)) == null ? void 0 : _c[0]) || "";
|
|
50
71
|
if (show && (list == null ? void 0 : list.length)) {
|
|
51
|
-
const remoteFilterKeys = list.filter((item) => !item.localFilter).map((item) =>
|
|
72
|
+
const remoteFilterKeys = list.filter((item) => !item.localFilter).map((item) => {
|
|
73
|
+
var _a2;
|
|
74
|
+
return (_a2 = item.name) == null ? void 0 : _a2.toString();
|
|
75
|
+
});
|
|
52
76
|
return remoteFilterKeys.includes(filterKey);
|
|
53
77
|
}
|
|
54
78
|
}
|
|
@@ -69,10 +69,25 @@
|
|
|
69
69
|
.pisell-lowcode-table-wrapper .pisell-lowcode-table.pisell-lowcode-table-bordered >.pisell-lowcode-table-container {
|
|
70
70
|
border-left: none;
|
|
71
71
|
}
|
|
72
|
-
.pisell-lowcode-table-wrapper .pisell-lowcode-table-thead tr td:first-child {
|
|
72
|
+
.pisell-lowcode-table-wrapper .pisell-lowcode-table-bordered .pisell-lowcode-table-thead tr td:first-child {
|
|
73
73
|
border-left: 1px solid #EAECF0;
|
|
74
74
|
}
|
|
75
|
-
.pisell-lowcode-table-wrapper .pisell-lowcode-table-thead tr th:first-child {
|
|
75
|
+
.pisell-lowcode-table-wrapper .pisell-lowcode-table-bordered .pisell-lowcode-table-thead tr th:first-child {
|
|
76
76
|
border-left: 1px solid #EAECF0;
|
|
77
77
|
}
|
|
78
|
+
div.pisell-lowcode-table-selection-column {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
}
|
|
83
|
+
.pisell-lowcode-table-bordered .pisell-lowcode-table-tbody .pisell-lowcode-table-selection-column {
|
|
84
|
+
border-left: 1px solid #EAECF0;
|
|
85
|
+
}
|
|
86
|
+
.drag-sort-cell {
|
|
87
|
+
.editable-cell-value-wrap {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
78
93
|
}
|
package/lib/locales/en-US.d.ts
CHANGED
|
@@ -28,5 +28,12 @@ declare const _default: {
|
|
|
28
28
|
"table-column-group-records": string;
|
|
29
29
|
"table-column-drag-sort-disabled-tip": string;
|
|
30
30
|
"table-action-filter-no-filter": string;
|
|
31
|
+
"table-action-range-picker-presets-today": string;
|
|
32
|
+
"table-action-range-picker-presets-yesterday": string;
|
|
33
|
+
"table-action-range-picker-presets-last-3-day": string;
|
|
34
|
+
"table-action-range-picker-presets-last-7-day": string;
|
|
35
|
+
"table-action-range-picker-presets-last-14-day": string;
|
|
36
|
+
"table-action-range-picker-presets-last-30-day": string;
|
|
37
|
+
"table-action-range-picker-presets-last-90-day": string;
|
|
31
38
|
};
|
|
32
39
|
export default _default;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -51,5 +51,12 @@ var en_US_default = {
|
|
|
51
51
|
"table-action-column-title": "Header settings",
|
|
52
52
|
"table-column-group-records": "records",
|
|
53
53
|
"table-column-drag-sort-disabled-tip": "Automatic sorting is enabled, manual dragging is disabled.",
|
|
54
|
-
"table-action-filter-no-filter": "No filter options available."
|
|
54
|
+
"table-action-filter-no-filter": "No filter options available.",
|
|
55
|
+
"table-action-range-picker-presets-today": "Today",
|
|
56
|
+
"table-action-range-picker-presets-yesterday": "Yesterday",
|
|
57
|
+
"table-action-range-picker-presets-last-3-day": "Last 3 Days",
|
|
58
|
+
"table-action-range-picker-presets-last-7-day": "Last 7 Days",
|
|
59
|
+
"table-action-range-picker-presets-last-14-day": "Last 14 Days",
|
|
60
|
+
"table-action-range-picker-presets-last-30-day": "Last 30 Days",
|
|
61
|
+
"table-action-range-picker-presets-last-90-day": "Last 90 Days"
|
|
55
62
|
};
|
package/lib/locales/zh-CN.d.ts
CHANGED
|
@@ -28,5 +28,12 @@ declare const _default: {
|
|
|
28
28
|
"table-column-group-records": string;
|
|
29
29
|
"table-column-drag-sort-disabled-tip": string;
|
|
30
30
|
"table-action-filter-no-filter": string;
|
|
31
|
+
"table-action-range-picker-presets-today": string;
|
|
32
|
+
"table-action-range-picker-presets-yesterday": string;
|
|
33
|
+
"table-action-range-picker-presets-last-3-day": string;
|
|
34
|
+
"table-action-range-picker-presets-last-7-day": string;
|
|
35
|
+
"table-action-range-picker-presets-last-14-day": string;
|
|
36
|
+
"table-action-range-picker-presets-last-30-day": string;
|
|
37
|
+
"table-action-range-picker-presets-last-90-day": string;
|
|
31
38
|
};
|
|
32
39
|
export default _default;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -51,5 +51,12 @@ var zh_CN_default = {
|
|
|
51
51
|
"table-action-column-title": "表头设置",
|
|
52
52
|
"table-column-group-records": "条记录",
|
|
53
53
|
"table-column-drag-sort-disabled-tip": "已开启自动排序,无法手动拖拽",
|
|
54
|
-
"table-action-filter-no-filter": "没有可用的筛选器。"
|
|
54
|
+
"table-action-filter-no-filter": "没有可用的筛选器。",
|
|
55
|
+
"table-action-range-picker-presets-today": "今天",
|
|
56
|
+
"table-action-range-picker-presets-yesterday": "昨天",
|
|
57
|
+
"table-action-range-picker-presets-last-3-day": "过去3天",
|
|
58
|
+
"table-action-range-picker-presets-last-7-day": "过去7天",
|
|
59
|
+
"table-action-range-picker-presets-last-14-day": "过去14天",
|
|
60
|
+
"table-action-range-picker-presets-last-30-day": "过去30天",
|
|
61
|
+
"table-action-range-picker-presets-last-90-day": "过去90天"
|
|
55
62
|
};
|
package/lib/locales/zh-TW.d.ts
CHANGED
|
@@ -28,5 +28,12 @@ declare const _default: {
|
|
|
28
28
|
"table-column-group-records": string;
|
|
29
29
|
"table-column-drag-sort-disabled-tip": string;
|
|
30
30
|
"table-action-filter-no-filter": string;
|
|
31
|
+
"table-action-range-picker-presets-today": string;
|
|
32
|
+
"table-action-range-picker-presets-yesterday": string;
|
|
33
|
+
"table-action-range-picker-presets-last-3-day": string;
|
|
34
|
+
"table-action-range-picker-presets-last-7-day": string;
|
|
35
|
+
"table-action-range-picker-presets-last-14-day": string;
|
|
36
|
+
"table-action-range-picker-presets-last-30-day": string;
|
|
37
|
+
"table-action-range-picker-presets-last-90-day": string;
|
|
31
38
|
};
|
|
32
39
|
export default _default;
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -51,5 +51,12 @@ var zh_TW_default = {
|
|
|
51
51
|
"table-action-column-title": "表頭設置",
|
|
52
52
|
"table-column-group-records": "條記錄",
|
|
53
53
|
"table-column-drag-sort-disabled-tip": "已開啟自動排序,無法手動拖曳",
|
|
54
|
-
"table-action-filter-no-filter": "沒有可用的篩選器。"
|
|
54
|
+
"table-action-filter-no-filter": "沒有可用的篩選器。",
|
|
55
|
+
"table-action-range-picker-presets-today": "今天",
|
|
56
|
+
"table-action-range-picker-presets-yesterday": "昨天",
|
|
57
|
+
"table-action-range-picker-presets-last-3-day": "過去3天",
|
|
58
|
+
"table-action-range-picker-presets-last-7-day": "過去7天",
|
|
59
|
+
"table-action-range-picker-presets-last-14-day": "過去14天",
|
|
60
|
+
"table-action-range-picker-presets-last-30-day": "過去30天",
|
|
61
|
+
"table-action-range-picker-presets-last-90-day": "過去90天"
|
|
55
62
|
};
|
package/lowcode/table/meta.ts
CHANGED
|
@@ -1184,6 +1184,16 @@ export default {
|
|
|
1184
1184
|
value: 'target => !!target.getProps().getPropValue("rowSelection")',
|
|
1185
1185
|
},
|
|
1186
1186
|
},
|
|
1187
|
+
{
|
|
1188
|
+
name: "rowSelection.columnWidth",
|
|
1189
|
+
title: { label: "自定义列表选择框宽度", tip: "rowSelection.columnWidth | 自定义列表选择框宽度" },
|
|
1190
|
+
propType: {
|
|
1191
|
+
type: "oneOfType",
|
|
1192
|
+
value: ["number", "string"],
|
|
1193
|
+
},
|
|
1194
|
+
setter: ["NumberSetter", "StringSetter", "VariableSetter"],
|
|
1195
|
+
defaultValue: 48,
|
|
1196
|
+
},
|
|
1187
1197
|
{
|
|
1188
1198
|
name: "rowSelection.selectedRowKeys",
|
|
1189
1199
|
title: {
|
|
@@ -1918,6 +1928,16 @@ export default {
|
|
|
1918
1928
|
"StringSetter",
|
|
1919
1929
|
],
|
|
1920
1930
|
},
|
|
1931
|
+
{
|
|
1932
|
+
name: "localFilter",
|
|
1933
|
+
title: {
|
|
1934
|
+
label: "开启本地排序",
|
|
1935
|
+
tip: "开启本地排序时,排序改变会走本地前端排序,关闭时是调用接口对数据更新。",
|
|
1936
|
+
},
|
|
1937
|
+
propType: "bool",
|
|
1938
|
+
setter: "BoolSetter",
|
|
1939
|
+
defaultValue: true,
|
|
1940
|
+
},
|
|
1921
1941
|
{
|
|
1922
1942
|
name: "label",
|
|
1923
1943
|
title: { label: "排序项", tip: "排序项展示文案" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
63
63
|
"crypto-js": "^4.2.0",
|
|
64
64
|
"@pisell/icon": "0.0.8",
|
|
65
|
-
"@pisell/
|
|
66
|
-
"@pisell/
|
|
65
|
+
"@pisell/date-picker": "1.0.69",
|
|
66
|
+
"@pisell/utils": "1.0.24"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"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}
|