@icos-desktop/react-components 2.0.20 → 2.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icos-desktop.d.ts +0 -66
- package/dist/icos-desktop.js +49 -48
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/icos-desktop.d.ts
CHANGED
@@ -98,11 +98,6 @@ interface BookGroupTableProps {
|
|
98
98
|
*/
|
99
99
|
onDoubleClick?: (record: EntityManagerAPI.BookGroupItem) => void;
|
100
100
|
proTableContainerHeight?: number;
|
101
|
-
proTableHeadBg?: string;
|
102
|
-
proTableCloseAllBg?: string;
|
103
|
-
proTableSortIconColor?: string;
|
104
|
-
proTableSelectIcon?: string;
|
105
|
-
proTableSelectMultipleIconColor?: string;
|
106
101
|
}
|
107
102
|
|
108
103
|
declare const BookGroupTable: (props: BookGroupTableProps) => React.JSX.Element;
|
@@ -274,11 +269,6 @@ interface BookTableProps extends TableProps {
|
|
274
269
|
*/
|
275
270
|
onRefresh?: () => void;
|
276
271
|
proTableContainerHeight?: number;
|
277
|
-
proTableHeadBg?: string;
|
278
|
-
proTableCloseAllBg?: string;
|
279
|
-
proTableSortIconColor?: string;
|
280
|
-
proTableSelectIcon?: string;
|
281
|
-
proTableSelectMultipleIconColor?: string;
|
282
272
|
}
|
283
273
|
interface BookTableRef {
|
284
274
|
/**
|
@@ -388,11 +378,6 @@ interface ProTableProps extends TableProps {
|
|
388
378
|
defaultShow?: boolean;
|
389
379
|
}[];
|
390
380
|
containerHeight?: number;
|
391
|
-
headBg?: string;
|
392
|
-
closeAllBg?: string;
|
393
|
-
sortIconColor?: string;
|
394
|
-
selectIcon?: string;
|
395
|
-
selectMultipleIconColor?: string;
|
396
381
|
}
|
397
382
|
|
398
383
|
declare const _default: React.NamedExoticComponent<ProTableProps>;
|
@@ -483,28 +468,7 @@ interface SenseContentTableProps extends TableProps {
|
|
483
468
|
* 触发刷新的回调
|
484
469
|
*/
|
485
470
|
onRefresh?: () => void;
|
486
|
-
/**
|
487
|
-
* 过滤条件背景颜色
|
488
|
-
*/
|
489
|
-
filterBgColor?: string;
|
490
|
-
/**
|
491
|
-
* 过滤条件图标颜色
|
492
|
-
*/
|
493
|
-
filterIconColor?: string;
|
494
|
-
/**
|
495
|
-
* 过滤条件右上角图标颜色
|
496
|
-
*/
|
497
|
-
filterActiveClor?: string;
|
498
|
-
/**
|
499
|
-
* 过滤条件内容背景颜色
|
500
|
-
*/
|
501
|
-
filterContentBgColor?: string;
|
502
471
|
proTableContainerHeight?: number;
|
503
|
-
proTableHeadBg?: string;
|
504
|
-
proTableCloseAllBg?: string;
|
505
|
-
proTableSortIconColor?: string;
|
506
|
-
proTableSelectIcon?: string;
|
507
|
-
proTableSelectMultipleIconColor?: string;
|
508
472
|
}
|
509
473
|
interface SenseContentTableRef {
|
510
474
|
/**
|
@@ -828,32 +792,7 @@ interface SenseFullTableProps {
|
|
828
792
|
* @param record
|
829
793
|
*/
|
830
794
|
onDoubleClickSense?: (record: any) => void;
|
831
|
-
/**
|
832
|
-
* 过滤条件背景颜色
|
833
|
-
*/
|
834
|
-
filterBgColor?: string;
|
835
|
-
/**
|
836
|
-
* 过滤条件图标颜色
|
837
|
-
*/
|
838
|
-
filterIconColor?: string;
|
839
|
-
/**
|
840
|
-
* 过滤条件右上角图标颜色
|
841
|
-
*/
|
842
|
-
filterActiveClor?: string;
|
843
|
-
/**
|
844
|
-
* 过滤条件内容背景颜色
|
845
|
-
*/
|
846
|
-
filterContentBgColor?: string;
|
847
|
-
/**
|
848
|
-
* 选中行高亮颜色
|
849
|
-
*/
|
850
|
-
rowHighlightColor?: string;
|
851
795
|
proTableContainerHeight?: number;
|
852
|
-
proTableHeadBg?: string;
|
853
|
-
proTableCloseAllBg?: string;
|
854
|
-
proTableSortIconColor?: string;
|
855
|
-
proTableSelectIcon?: string;
|
856
|
-
proTableSelectMultipleIconColor?: string;
|
857
796
|
}
|
858
797
|
interface SenseFullTableRef {
|
859
798
|
/**
|
@@ -1070,11 +1009,6 @@ interface SenseTableProps extends TableProps {
|
|
1070
1009
|
*/
|
1071
1010
|
onRefresh?: () => void;
|
1072
1011
|
proTableContainerHeight?: number;
|
1073
|
-
proTableHeadBg?: string;
|
1074
|
-
proTableCloseAllBg?: string;
|
1075
|
-
proTableSortIconColor?: string;
|
1076
|
-
proTableSelectIcon?: string;
|
1077
|
-
proTableSelectMultipleIconColor?: string;
|
1078
1012
|
}
|
1079
1013
|
interface SenseTableRef {
|
1080
1014
|
/**
|
package/dist/icos-desktop.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { message, Form, Input, TreeSelect, Collapse, App, Button, Tooltip, Modal as Modal$1, List, Space, Table, Radio, Checkbox, Popover, Select, Tree, DatePicker, InputNumber, Image, Steps as Steps$1, Upload as Upload$1, Progress, Cascader, Empty,
|
1
|
+
import { message, Form, Input, TreeSelect, Collapse, App, Button, Tooltip, Modal as Modal$1, List, Space, Table, Radio, Checkbox, Popover, Select, Tree, DatePicker, InputNumber, theme, Image, Steps as Steps$1, Upload as Upload$1, Progress, Cascader, Empty, Slider, Tabs as Tabs$1, Breadcrumb, Segmented, Spin, Splitter } from '@xirang/design-antd';
|
2
2
|
import * as React from 'react';
|
3
3
|
import React__default, { useState, forwardRef, useEffect, useImperativeHandle, useRef, memo, useMemo, createRef } from 'react';
|
4
4
|
import { useRequest, useMount, useDebounceEffect, useAntdTable, useExternal, useAsyncEffect, useDeepCompareEffect } from 'ahooks';
|
@@ -5273,12 +5273,12 @@ var SvgSetting = function SvgSetting(props) {
|
|
5273
5273
|
})));
|
5274
5274
|
};
|
5275
5275
|
|
5276
|
-
var css_248z$11 = ".index-module_container__triFT {\n position: relative;\n height: 100%;\n
|
5277
|
-
var styles$$ = {"container":"index-module_container__triFT","
|
5276
|
+
var css_248z$11 = ".index-module_container__triFT {\n position: relative;\n height: 100%;\n width: 100%;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ {\n position: absolute;\n top: 12px;\n width: 16px;\n height: 16px;\n z-index: 9;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ > svg {\n position: absolute;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ .ant-select {\n opacity: 0;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ .ant-select .ant-select-selector {\n width: 16px;\n height: 16px;\n}\n.index-module_container__triFT .index-module_columns-config__pSkLQ .ant-select .ant-select-selector .ant-select-selection-overflow {\n display: none;\n}\n.index-module_container__triFT .ant-table-wrapper .ant-table-cell-fix-right-first::after {\n box-shadow: none;\n}\n.index-module_container__triFT .ant-table-cell {\n line-height: 24px;\n}\n.index-module_container__triFT .ant-table-wrapper .ant-table-container::before,\n.index-module_container__triFT .ant-table-wrapper .ant-table-container::after {\n display: none;\n}\n.index-module_container__triFT .ant-table-cell-scrollbar {\n display: none;\n}\n.index-module_container__triFT .ant-table-thead .ant-table-cell {\n overflow: hidden;\n}\n.index-module_container__triFT .ant-table-row:has(.ant-table-cell-fix-right) .ant-table-cell.ant-table-cell-fix-right {\n transition: none;\n}\n.index-module_columns-config-popup__-d8ej .ant-select-item {\n position: relative;\n}\n.index-module_columns-config-popup__-d8ej .ant-select-item .ant-select-item-option-content {\n position: absolute;\n left: 32px;\n width: -webkit-fill-available;\n}\n.index-module_columns-config-popup__-d8ej .ant-select-item .ant-select-item-option-state {\n position: absolute;\n left: 8px;\n top: 8px;\n}\n.index-module_columns-config-popup__-d8ej .rc-virtual-list-holder {\n overflow-x: hidden;\n}\n";
|
5277
|
+
var styles$$ = {"container":"index-module_container__triFT","columns-config":"index-module_columns-config__pSkLQ","columns-config-popup":"index-module_columns-config-popup__-d8ej"};
|
5278
5278
|
styleInject(css_248z$11);
|
5279
5279
|
|
5280
5280
|
var ProTable = function (_a) {
|
5281
|
-
var _b = _a.header, header = _b === void 0 ? [] : _b, _c = _a.columns, columns = _c === void 0 ? [] : _c, _d = _a.pagination, pagination = _d === void 0 ? false : _d, containerHeight = _a.containerHeight
|
5281
|
+
var _b = _a.header, header = _b === void 0 ? [] : _b, _c = _a.columns, columns = _c === void 0 ? [] : _c, _d = _a.pagination, pagination = _d === void 0 ? false : _d, containerHeight = _a.containerHeight, props = __rest(_a, ["header", "columns", "pagination", "containerHeight"]);
|
5282
5282
|
// 表头显示配置
|
5283
5283
|
var _e = useState([]), headerValue = _e[0], setHeaderValue = _e[1];
|
5284
5284
|
// 表格宽度
|
@@ -5310,10 +5310,10 @@ var ProTable = function (_a) {
|
|
5310
5310
|
});
|
5311
5311
|
if (newColumns.length > 0) {
|
5312
5312
|
newColumns.push({
|
5313
|
-
title: React__default.createElement("div", { className: styles$$['columns-config'] },
|
5313
|
+
title: (React__default.createElement("div", { className: styles$$['columns-config'] },
|
5314
5314
|
React__default.createElement(SvgSetting, null),
|
5315
|
-
React__default.createElement(Select, { popupClassName: styles$$['columns-config-popup'], mode: "multiple", showSearch: false, defaultActiveFirstOption: false, popupMatchSelectWidth: 122, placement: "bottomRight", value: headerValue, onChange: handleHeaderConfigChange, options: header.filter(function (item) { return !item.hidden; }), fieldNames: { label: 'name', value: 'code' } })),
|
5316
|
-
width:
|
5315
|
+
React__default.createElement(Select, { popupClassName: styles$$['columns-config-popup'], mode: "multiple", showSearch: false, defaultActiveFirstOption: false, popupMatchSelectWidth: 122, placement: "bottomRight", value: headerValue, onChange: handleHeaderConfigChange, options: header.filter(function (item) { return !item.hidden; }), fieldNames: { label: 'name', value: 'code' } }))),
|
5316
|
+
width: 36,
|
5317
5317
|
fixed: 'right',
|
5318
5318
|
});
|
5319
5319
|
}
|
@@ -5325,11 +5325,7 @@ var ProTable = function (_a) {
|
|
5325
5325
|
}, [JSON.stringify(header)]);
|
5326
5326
|
return (React__default.createElement(ResizeObserver, { onResize: handleTableResize },
|
5327
5327
|
React__default.createElement("div", { className: styles$$.container },
|
5328
|
-
React__default.createElement(
|
5329
|
-
(header === null || header === void 0 ? void 0 : header.length) ? (React__default.createElement("div", { className: styles$$['columns-config'] },
|
5330
|
-
React__default.createElement(Select, { popupClassName: styles$$['columns-config-popup'], mode: "multiple", showSearch: false, defaultActiveFirstOption: false, popupMatchSelectWidth: 122, placement: "bottomRight", value: headerValue, onChange: handleHeaderConfigChange, options: header.filter(function (item) { return !item.hidden; }), fieldNames: { label: 'name', value: 'code' } }))) : null,
|
5331
|
-
React__default.createElement("div", { className: styles$$.table, style: { width: tableWidth || '100%' } },
|
5332
|
-
React__default.createElement(Table, __assign({}, props, { pagination: pagination, scroll: { x: tableWidth, y: tableHeight }, columns: columnsMerge }))))));
|
5328
|
+
React__default.createElement(Table, __assign({}, props, { pagination: pagination, scroll: { x: tableWidth, y: tableHeight }, columns: columnsMerge })))));
|
5333
5329
|
};
|
5334
5330
|
var ProTable$1 = memo(ProTable);
|
5335
5331
|
|
@@ -5907,7 +5903,7 @@ var defaultHeader = [
|
|
5907
5903
|
{ code: 'regionName', name: '关联地理层级', defaultShow: false },
|
5908
5904
|
];
|
5909
5905
|
var BookTable = forwardRef(function (props, ref) {
|
5910
|
-
var _a = props.header, header = _a === void 0 ? defaultHeader : _a, templateId = props.templateId, viewCodes = props.viewCodes, displayWay = props.displayWay, nodeCode = props.nodeCode, keyword = props.keyword, filter = props.filter, contextMenuConfig = props.contextMenuConfig, onDoubleClick = props.onDoubleClick, onCreateSense = props.onCreateSense, onRefresh = props.onRefresh
|
5906
|
+
var _a = props.header, header = _a === void 0 ? defaultHeader : _a, templateId = props.templateId, viewCodes = props.viewCodes, displayWay = props.displayWay, nodeCode = props.nodeCode, keyword = props.keyword, filter = props.filter, contextMenuConfig = props.contextMenuConfig, onDoubleClick = props.onDoubleClick, onCreateSense = props.onCreateSense, onRefresh = props.onRefresh; props.proTableContainerHeight; var tableProps = __rest(props, ["header", "templateId", "viewCodes", "displayWay", "nodeCode", "keyword", "filter", "contextMenuConfig", "onDoubleClick", "onCreateSense", "onRefresh", "proTableContainerHeight"]);
|
5911
5907
|
var _b = App.useApp(), modal = _b.modal, message = _b.message;
|
5912
5908
|
var showContextMenu = useContextMenu({ id: ContextMenu$4.id }).show;
|
5913
5909
|
var _c = useExportModal$2(), onExport = _c.onExport, ExportModal = _c.ExportModal;
|
@@ -6099,7 +6095,7 @@ var BookTable = forwardRef(function (props, ref) {
|
|
6099
6095
|
}); });
|
6100
6096
|
return (React__default.createElement("div", { className: styles$_.container },
|
6101
6097
|
React__default.createElement("div", { className: styles$_.table },
|
6102
|
-
React__default.createElement(ProTable$1, __assign({ header: header, columns: columns, dataSource: data, loading: loading, pagination: pagination, size: "small", rowKey: function (record) { return record.bookId; }, onRow: onRow, rowClassName: rowClassName, onChange: handleChangeTable
|
6098
|
+
React__default.createElement(ProTable$1, __assign({ header: header, columns: columns, dataSource: data, loading: loading, pagination: pagination, size: "small", rowKey: function (record) { return record.bookId; }, onRow: onRow, rowClassName: rowClassName, onChange: handleChangeTable }, tableProps))),
|
6103
6099
|
(contextMenuConfig === null || contextMenuConfig === void 0 ? void 0 : contextMenuConfig.length) ? React__default.createElement(ContextMenu$4, { config: contextMenuConfig }) : null,
|
6104
6100
|
React__default.createElement(ExportModal, null)));
|
6105
6101
|
});
|
@@ -6231,7 +6227,7 @@ var FormItem = function (_a) {
|
|
6231
6227
|
return (React__default.createElement(Form.Item, __assign({}, props, (type === 'date' ? getRangePickerConversion() : null)), renderItem()));
|
6232
6228
|
};
|
6233
6229
|
|
6234
|
-
var css_248z$Y = ":root {\n --sense-manager-filter-
|
6230
|
+
var css_248z$Y = ":root {\n --sense-manager-filter-icon-color: currentColor;\n}\n.index-module_filter__-sqYm {\n position: relative;\n justify-items: right;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n border-radius: 4px;\n cursor: pointer;\n}\n.index-module_filter__-sqYm svg path {\n fill: var(--sense-manager-filter-icon-color);\n}\n.index-module_filter__-sqYm.index-module_active__ltQzZ:after {\n content: '';\n position: absolute;\n right: -4px;\n top: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n}\n.index-module_content__d-57c {\n display: flex;\n flex-direction: column;\n width: 420px;\n padding: 8px 16px;\n}\n.index-module_content__d-57c .index-module_btns__hw4cX {\n display: flex;\n justify-content: flex-end;\n column-gap: 8px;\n}\n.index-module_content__d-57c .ant-form .ant-form-item {\n margin-bottom: 16px;\n}\n";
|
6235
6231
|
var styles$Y = {"filter":"index-module_filter__-sqYm","active":"index-module_active__ltQzZ","content":"index-module_content__d-57c","btns":"index-module_btns__hw4cX"};
|
6236
6232
|
styleInject(css_248z$Y);
|
6237
6233
|
|
@@ -6242,6 +6238,7 @@ var Filter$1 = function (props) {
|
|
6242
6238
|
var activeTable = props.activeTable, book = props.book, bookGroup = props.bookGroup, enableTag = props.enableTag, filter = props.filter, onFilter = props.onFilter;
|
6243
6239
|
var form = Form.useForm()[0];
|
6244
6240
|
var _d = useState(false), open = _d[0], setOpen = _d[1];
|
6241
|
+
var token = theme.useToken().token;
|
6245
6242
|
// 实体记录筛选配置
|
6246
6243
|
var filterConfig = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
|
6247
6244
|
return __generator(this, function (_a) {
|
@@ -6327,7 +6324,7 @@ var Filter$1 = function (props) {
|
|
6327
6324
|
}
|
6328
6325
|
};
|
6329
6326
|
// 显示内容
|
6330
|
-
var content = (React__default.createElement("div", { className: styles$Y.content },
|
6327
|
+
var content = (React__default.createElement("div", { className: styles$Y.content, style: { backgroundColor: "".concat(token.colorPrimaryBg) } },
|
6331
6328
|
React__default.createElement(Form, { form: form, labelCol: { span: 4 }, wrapperCol: { span: 20 } }, renderFormItems()),
|
6332
6329
|
React__default.createElement("div", { className: styles$Y.btns },
|
6333
6330
|
React__default.createElement(Button, { type: "default", onClick: resetFilter }, "\u91CD\u7F6E"),
|
@@ -6345,8 +6342,8 @@ var Filter$1 = function (props) {
|
|
6345
6342
|
!((_c = filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.tagValues) === null || _c === void 0 ? void 0 : _c.length)) {
|
6346
6343
|
return null;
|
6347
6344
|
}
|
6348
|
-
return (React__default.createElement(Popover, { content: content, open: open, onOpenChange: handleOpenChange, trigger: "click", placement: "bottomRight" },
|
6349
|
-
React__default.createElement("div", { className: classNames(styles$Y.filter, (_a = {}, _a[styles$Y.active] = !!filter, _a)) },
|
6345
|
+
return (React__default.createElement(Popover, { content: content, open: open, onOpenChange: handleOpenChange, trigger: "click", placement: "bottomRight", overlayStyle: { backgroundColor: "".concat(token.colorPrimaryBg), border: "1px solid ".concat(token.colorBorder), borderRadius: '8px' } },
|
6346
|
+
React__default.createElement("div", { className: classNames(styles$Y.filter, (_a = {}, _a[styles$Y.active] = !!filter, _a)), style: { backgroundColor: "".concat(token.colorPrimaryBg), border: "1px solid ".concat(token.colorBorder) } },
|
6350
6347
|
React__default.createElement(SvgFilter$2, null))));
|
6351
6348
|
};
|
6352
6349
|
|
@@ -6796,7 +6793,7 @@ var showTotal = function (total) {
|
|
6796
6793
|
};
|
6797
6794
|
var SenseTable = forwardRef(function (props, ref) {
|
6798
6795
|
var _a;
|
6799
|
-
var bookId = props.bookId, bookIds = props.bookIds, templateId = props.templateId, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, viewCodes = props.viewCodes, keyword = props.keyword, filter = props.filter, filterConfig = props.filterConfig, extendColumnParams = props.extendColumnParams, _b = props.hideColumns, hideColumns = _b === void 0 ? [] : _b, customColumns = props.customColumns, contextMenuConfig = props.contextMenuConfig, enableTag = props.enableTag, onClick = props.onClick, onDoubleClick = props.onDoubleClick, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onRefresh = props.onRefresh, proTableContainerHeight = props.proTableContainerHeight,
|
6796
|
+
var bookId = props.bookId, bookIds = props.bookIds, templateId = props.templateId, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, viewCodes = props.viewCodes, keyword = props.keyword, filter = props.filter, filterConfig = props.filterConfig, extendColumnParams = props.extendColumnParams, _b = props.hideColumns, hideColumns = _b === void 0 ? [] : _b, customColumns = props.customColumns, contextMenuConfig = props.contextMenuConfig, enableTag = props.enableTag, onClick = props.onClick, onDoubleClick = props.onDoubleClick, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onRefresh = props.onRefresh, proTableContainerHeight = props.proTableContainerHeight, tableProps = __rest(props, ["bookId", "bookIds", "templateId", "leafRegionId", "pathRegionId", "viewCodes", "keyword", "filter", "filterConfig", "extendColumnParams", "hideColumns", "customColumns", "contextMenuConfig", "enableTag", "onClick", "onDoubleClick", "onShowSense", "onEditSense", "onRefresh", "proTableContainerHeight"]);
|
6800
6797
|
var _c = App.useApp(), message = _c.message, modal = _c.modal;
|
6801
6798
|
var showContextMenu = useContextMenu({ id: ContextMenu$3.id }).show;
|
6802
6799
|
var _d = useKsCode(), ksCodeLoaded = _d.loaded;
|
@@ -6950,7 +6947,9 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
6950
6947
|
var renderTagRest = function (record) { return (React__default.createElement("div", { className: styles$T['tag-more'], onClick: function () { return handleShowTagsModal(record); } }, "\u66F4\u591A\u6807\u7B7E >")); };
|
6951
6948
|
// 获取表头数据
|
6952
6949
|
var getColumns = function (header) {
|
6953
|
-
var columns = header.map(function (item, index) { return (__assign({ title: item.name, key: item.code, dataIndex: item.code,
|
6950
|
+
var columns = header.map(function (item, index) { return (__assign({ title: item.name, key: item.code, dataIndex: item.code,
|
6951
|
+
// width: 300,
|
6952
|
+
sorter: item.sort, ellipsis: true, render: function (text, record) {
|
6954
6953
|
if (index === 0) {
|
6955
6954
|
return (React__default.createElement("div", { className: styles$T['sense-title'] },
|
6956
6955
|
React__default.createElement("div", { className: styles$T['sense-title-label'] },
|
@@ -7124,7 +7123,7 @@ var SenseTable = forwardRef(function (props, ref) {
|
|
7124
7123
|
_a)), style: { '--row-selected-num': selectedRowKeys.length } },
|
7125
7124
|
React__default.createElement(ProTable$1, __assign({ header: header, columns: columns, dataSource: dataSource, loading: loading, pagination: pagination, size: "small", rowKey: "sense_global_code", onRow: onRow, rowClassName: rowClassName, onChange: handleChangeTable,
|
7126
7125
|
// rowSelection={tableProps?.rowSelection ?? rowSelection}
|
7127
|
-
containerHeight: proTableContainerHeight
|
7126
|
+
containerHeight: proTableContainerHeight }, tableProps))),
|
7128
7127
|
React__default.createElement(ExportModal, null),
|
7129
7128
|
React__default.createElement(TagsModal, { open: showTagsModal, onCancel: handleCloseTagsModal, data: curRecord }),
|
7130
7129
|
(contextMenuConfig === null || contextMenuConfig === void 0 ? void 0 : contextMenuConfig.length) ? (React__default.createElement(ContextMenu$3, { config: contextMenuConfig, authTypes: authTypes })) : null));
|
@@ -7992,7 +7991,7 @@ var compare = function (a, b) {
|
|
7992
7991
|
};
|
7993
7992
|
|
7994
7993
|
var BookGroupTable = function (props) {
|
7995
|
-
var displayWay = props.displayWay, nodeCode = props.nodeCode, _a = props.viewCodes, viewCodes = _a === void 0 ? [] : _a, keyword = props.keyword, _b = props.filter, filter = _b === void 0 ? {} : _b, onDoubleClick = props.onDoubleClick
|
7994
|
+
var displayWay = props.displayWay, nodeCode = props.nodeCode, _a = props.viewCodes, viewCodes = _a === void 0 ? [] : _a, keyword = props.keyword, _b = props.filter, filter = _b === void 0 ? {} : _b, onDoubleClick = props.onDoubleClick; props.proTableContainerHeight;
|
7996
7995
|
var showContextMenu = useContextMenu({ id: ContextMenu$2.id }).show;
|
7997
7996
|
// 展开的行
|
7998
7997
|
var _c = useState([]), expandedRows = _c[0], setExpandedRows = _c[1];
|
@@ -8182,7 +8181,7 @@ var BookGroupTable = function (props) {
|
|
8182
8181
|
{ code: 'deptName', name: '管理部门', defaultShow: true },
|
8183
8182
|
{ code: 'createTime', name: '创建时间', defaultShow: true },
|
8184
8183
|
{ code: 'updateTime', name: '更新时间', defaultShow: true },
|
8185
|
-
], columns: columns, dataSource: dataSource, loading: loading, pagination: false, size: "small", rowKey: function (record) { return record.nodeCode || record.bookGroupId; }, onRow: onRow, rowClassName: rowClassName, onChange: handleChangeTable, expandable: expandable
|
8184
|
+
], columns: columns, dataSource: dataSource, loading: loading, pagination: false, size: "small", rowKey: function (record) { return record.nodeCode || record.bookGroupId; }, onRow: onRow, rowClassName: rowClassName, onChange: handleChangeTable, expandable: expandable })),
|
8186
8185
|
React__default.createElement(ContextMenu$2, null)));
|
8187
8186
|
};
|
8188
8187
|
|
@@ -10017,7 +10016,7 @@ var SvgFilter = function SvgFilter(props) {
|
|
10017
10016
|
})));
|
10018
10017
|
};
|
10019
10018
|
|
10020
|
-
var css_248z$C = ":root {\n --sense-manager-filter-
|
10019
|
+
var css_248z$C = ":root {\n --sense-manager-filter-icon-color: currentColor;\n}\n.index-module_filter__GAM8R {\n position: relative;\n justify-items: right;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n border-radius: 2px;\n cursor: pointer;\n}\n.index-module_filter__GAM8R svg path {\n fill: var(--sense-manager-filter-icon-color);\n}\n.index-module_filter__GAM8R.index-module_active__sMBD-:after {\n content: '';\n position: absolute;\n right: -4px;\n top: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n}\n.index-module_content__ku4lY {\n display: flex;\n flex-direction: column;\n width: 420px;\n padding: 8px 16px;\n}\n.index-module_content__ku4lY .index-module_btns__eOVox {\n display: flex;\n justify-content: flex-end;\n column-gap: 8px;\n}\n.index-module_content__ku4lY .ant-form .ant-form-item {\n margin-bottom: 16px;\n}\n";
|
10021
10020
|
var styles$C = {"filter":"index-module_filter__GAM8R","active":"index-module_active__sMBD-","content":"index-module_content__ku4lY","btns":"index-module_btns__eOVox"};
|
10022
10021
|
styleInject(css_248z$C);
|
10023
10022
|
|
@@ -10094,7 +10093,7 @@ var PAGINATION = {
|
|
10094
10093
|
};
|
10095
10094
|
var SenseContentTable = forwardRef(function (props, ref) {
|
10096
10095
|
var _a;
|
10097
|
-
var senseGlobalCodes = props.senseGlobalCodes, tableName = props.tableName, extraParams = props.extraParams, timeFieldName = props.timeFieldName, timeFieldFormat = props.timeFieldFormat, filterConfig = props.filterConfig, showExportButton = props.showExportButton, customButtons = props.customButtons, customColumns = props.customColumns, selectedRowLength = props.selectedRowLength, onClick = props.onClick, onDoubleClick = props.onDoubleClick, onRefresh = props.onRefresh, proTableContainerHeight = props.proTableContainerHeight,
|
10096
|
+
var senseGlobalCodes = props.senseGlobalCodes, tableName = props.tableName, extraParams = props.extraParams, timeFieldName = props.timeFieldName, timeFieldFormat = props.timeFieldFormat, filterConfig = props.filterConfig, showExportButton = props.showExportButton, customButtons = props.customButtons, customColumns = props.customColumns, selectedRowLength = props.selectedRowLength, onClick = props.onClick, onDoubleClick = props.onDoubleClick, onRefresh = props.onRefresh, proTableContainerHeight = props.proTableContainerHeight, tableProps = __rest(props, ["senseGlobalCodes", "tableName", "extraParams", "timeFieldName", "timeFieldFormat", "filterConfig", "showExportButton", "customButtons", "customColumns", "selectedRowLength", "onClick", "onDoubleClick", "onRefresh", "proTableContainerHeight"]);
|
10098
10097
|
var _b = useExportModal(), onExport = _b.onExport, ExportModal = _b.ExportModal;
|
10099
10098
|
// 分页
|
10100
10099
|
var _c = useState(__assign({}, PAGINATION)), pagination = _c[0], setPagination = _c[1];
|
@@ -10104,6 +10103,7 @@ var SenseContentTable = forwardRef(function (props, ref) {
|
|
10104
10103
|
// const [selectedRowKeys, setSelectedRowKeys] = useState([]);
|
10105
10104
|
// 接口参数
|
10106
10105
|
var _e = useState({}), apiParams = _e[0], setApiParams = _e[1];
|
10106
|
+
var token = theme.useToken().token;
|
10107
10107
|
// 获取筛选参数
|
10108
10108
|
var getFilterParams = function () {
|
10109
10109
|
var _a;
|
@@ -10200,11 +10200,8 @@ var SenseContentTable = forwardRef(function (props, ref) {
|
|
10200
10200
|
// preserveSelectedRowKeys: true,
|
10201
10201
|
// };
|
10202
10202
|
useEffect(function () {
|
10203
|
-
document.documentElement.style.setProperty('--sense-manager-filter-
|
10204
|
-
|
10205
|
-
document.documentElement.style.setProperty('--sense-manager-filter-active-color', filterActiveClor ? filterActiveClor : '#FF5900');
|
10206
|
-
document.documentElement.style.setProperty('--sense-manager-filter-content-bg-color', filterContentBgColor ? filterContentBgColor : 'rgba(42, 81, 140, 0.5)');
|
10207
|
-
}, [filterBgColor, filterIconColor, filterActiveClor, filterContentBgColor]);
|
10203
|
+
document.documentElement.style.setProperty('--sense-manager-filter-icon-color', token.colorText ? token.colorText : '#fff');
|
10204
|
+
}, [token.colorText]);
|
10208
10205
|
useImperativeHandle(ref, function () { return ({
|
10209
10206
|
refresh: handleRefresh,
|
10210
10207
|
}); });
|
@@ -10228,7 +10225,7 @@ var SenseContentTable = forwardRef(function (props, ref) {
|
|
10228
10225
|
// rowClassName={rowClassName}
|
10229
10226
|
onChange: handleChangeTable,
|
10230
10227
|
// rowSelection={rowSelection}
|
10231
|
-
containerHeight: proTableContainerHeight
|
10228
|
+
containerHeight: proTableContainerHeight }, tableProps))),
|
10232
10229
|
React__default.createElement(ExportModal, null)));
|
10233
10230
|
});
|
10234
10231
|
|
@@ -12026,13 +12023,13 @@ var SideBar = function (props) {
|
|
12026
12023
|
React__default.createElement(Tabs$1, { items: viewCodeItems, activeKey: activeViewCode, onChange: handleTabsChange, tabPosition: "left", type: "card", destroyInactiveTabPane: true })));
|
12027
12024
|
};
|
12028
12025
|
|
12029
|
-
var css_248z$c = ":root {\n --sense-manager-row-highlight-color:
|
12026
|
+
var css_248z$c = ":root {\n --sense-manager-row-highlight-color: 'rgba(0, 255, 255, 0.3)';\n}\n.SenseFullTable-module_container__QB8iR {\n display: flex;\n width: 100%;\n height: 100%;\n column-gap: 8px;\n}\n.SenseFullTable-module_container__QB8iR .SenseFullTable-module_main__wYHgh {\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n}\n.SenseFullTable-module_container__QB8iR .SenseFullTable-module_main__wYHgh .SenseFullTable-module_header__WnbBz {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 20px;\n}\n.SenseFullTable-module_container__QB8iR .SenseFullTable-module_main__wYHgh .SenseFullTable-module_header__WnbBz .SenseFullTable-module_breadcrumb__lUIH5 {\n display: flex;\n gap: 8px;\n flex: 1;\n margin-left: 8px;\n}\n.SenseFullTable-module_container__QB8iR .SenseFullTable-module_main__wYHgh .SenseFullTable-module_header__WnbBz .SenseFullTable-module_breadcrumb__lUIH5.SenseFullTable-module_full__JELiZ {\n flex-basis: 100%;\n}\n.SenseFullTable-module_container__QB8iR .SenseFullTable-module_main__wYHgh .SenseFullTable-module_header__WnbBz .SenseFullTable-module_breadcrumb__lUIH5.SenseFullTable-module_top__pY-rk {\n margin-bottom: 8px;\n}\n.SenseFullTable-module_container__QB8iR .SenseFullTable-module_main__wYHgh .SenseFullTable-module_header__WnbBz .SenseFullTable-module_filter__PCI9n {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n.SenseFullTable-module_container__QB8iR .SenseFullTable-module_main__wYHgh .SenseFullTable-module_header__WnbBz .ant-breadcrumb {\n font-weight: 600;\n font-size: 16px;\n}\n";
|
12030
12027
|
var styles$c = {"container":"SenseFullTable-module_container__QB8iR","main":"SenseFullTable-module_main__wYHgh","header":"SenseFullTable-module_header__WnbBz","breadcrumb":"SenseFullTable-module_breadcrumb__lUIH5","full":"SenseFullTable-module_full__JELiZ","top":"SenseFullTable-module_top__pY-rk","filter":"SenseFullTable-module_filter__PCI9n"};
|
12031
12028
|
styleInject(css_248z$c);
|
12032
12029
|
|
12033
12030
|
var SenseFullTable = forwardRef(function (props, ref) {
|
12034
12031
|
var _a;
|
12035
|
-
var _b = props.viewType, viewType = _b === void 0 ? 'system' : _b, _c = props.views, views = _c === void 0 ? [] : _c, showView = props.showView, showCatalog = props.showCatalog, showBreadcrumb = props.showBreadcrumb, showBookGroupTable = props.showBookGroupTable, showBookTable = props.showBookTable, showSenseTable = props.showSenseTable, customButtons = props.customButtons, showExportButton = props.showExportButton, showImportButton = props.showImportButton, importHiddenGeolevel = props.importHiddenGeolevel, bookContextMenuConfig = props.bookContextMenuConfig, senseContextMenuConfig = props.senseContextMenuConfig, extendColumnParams = props.extendColumnParams, hideColumns = props.hideColumns, customColumns = props.customColumns, enableTag = props.enableTag, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, onCreateSense = props.onCreateSense, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onClickSense = props.onClickSense, onDoubleClickSense = props.onDoubleClickSense,
|
12032
|
+
var _b = props.viewType, viewType = _b === void 0 ? 'system' : _b, _c = props.views, views = _c === void 0 ? [] : _c, showView = props.showView, showCatalog = props.showCatalog, showBreadcrumb = props.showBreadcrumb, showBookGroupTable = props.showBookGroupTable, showBookTable = props.showBookTable, showSenseTable = props.showSenseTable, customButtons = props.customButtons, showExportButton = props.showExportButton, showImportButton = props.showImportButton, importHiddenGeolevel = props.importHiddenGeolevel, bookContextMenuConfig = props.bookContextMenuConfig, senseContextMenuConfig = props.senseContextMenuConfig, extendColumnParams = props.extendColumnParams, hideColumns = props.hideColumns, customColumns = props.customColumns, enableTag = props.enableTag, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, onCreateSense = props.onCreateSense, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onClickSense = props.onClickSense, onDoubleClickSense = props.onDoubleClickSense, proTableContainerHeight = props.proTableContainerHeight;
|
12036
12033
|
// 台账表格 ref
|
12037
12034
|
var bookTableRef = useRef();
|
12038
12035
|
// 实体记录表格 ref
|
@@ -12065,6 +12062,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12065
12062
|
var _s = useState(false), openBookImportModal = _s[0], setOpenBookImportModal = _s[1];
|
12066
12063
|
// 显示 Tabs
|
12067
12064
|
var showTabs = bookGroup && !book && showBookTable && showSenseTable;
|
12065
|
+
var token = theme.useToken().token;
|
12068
12066
|
var _t = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
|
12069
12067
|
var res;
|
12070
12068
|
return __generator(this, function (_a) {
|
@@ -12169,7 +12167,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12169
12167
|
setFilter(null);
|
12170
12168
|
setBook(data);
|
12171
12169
|
}
|
12172
|
-
}, onCreateSense: onCreateSense, proTableContainerHeight: proTableContainerHeight
|
12170
|
+
}, onCreateSense: onCreateSense, proTableContainerHeight: proTableContainerHeight }));
|
12173
12171
|
};
|
12174
12172
|
// 实体记录
|
12175
12173
|
var renderSense = function (templateId, bookId) {
|
@@ -12282,12 +12280,9 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12282
12280
|
refreshSenseTable: function () { var _a; return (_a = senseTableRef.current) === null || _a === void 0 ? void 0 : _a.refresh(); },
|
12283
12281
|
}); });
|
12284
12282
|
useEffect(function () {
|
12285
|
-
document.documentElement.style.setProperty('--sense-manager-filter-
|
12286
|
-
document.documentElement.style.setProperty('--sense-manager-
|
12287
|
-
|
12288
|
-
document.documentElement.style.setProperty('--sense-manager-filter-content-bg-color', filterContentBgColor ? filterContentBgColor : 'rgba(42, 81, 140, 0.5)');
|
12289
|
-
document.documentElement.style.setProperty('--sense-manager-row-highlight-color', rowHighlightColor ? rowHighlightColor : '#E5EDFE');
|
12290
|
-
}, [filterBgColor, filterIconColor, filterActiveClor, filterContentBgColor, rowHighlightColor]);
|
12283
|
+
document.documentElement.style.setProperty('--sense-manager-filter-icon-color', token.colorText ? token.colorText : '#fff');
|
12284
|
+
document.documentElement.style.setProperty('--sense-manager-row-highlight-color', token.colorPrimaryActive ? token.colorPrimaryActive : 'rgba(0, 255, 255, 0.3)');
|
12285
|
+
}, [token.colorPrimaryActive, token.colorText]);
|
12291
12286
|
return (React__default.createElement("div", { className: styles$c.container },
|
12292
12287
|
React__default.createElement(SideBar, { viewType: viewType, views: views, showView: showView, activeViewCode: activeViewCode, onViewCodeChange: handleChangeActiveViewCode }),
|
12293
12288
|
showCatalog ? (React__default.createElement(Catalog, { activeViewCode: activeViewCode, activeKey: displayWay, setActiveKey: setDisplayWay, selectedKey: nodeCode, setSelectedKey: setNodeCode, setCatalogBreadcrumb: setCatalogBreadcrumb })) : null,
|
@@ -12296,18 +12291,24 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12296
12291
|
React__default.createElement("div", { className: classNames(styles$c.breadcrumb, (_a = {},
|
12297
12292
|
_a[styles$c.full] = showTabs,
|
12298
12293
|
_a[styles$c.top] = showBreadcrumb,
|
12299
|
-
_a)) }, showBreadcrumb ? React__default.createElement(Breadcrumb, { items: breadcrumbItems, separator: ">" }) : null
|
12294
|
+
_a)) }, showBreadcrumb ? (React__default.createElement(Breadcrumb, { items: breadcrumbItems, separator: ">" })) : !showTabs ? (React__default.createElement(React__default.Fragment, null,
|
12295
|
+
showButtons(),
|
12296
|
+
activeTable === 'sense' && showExportButton ? (React__default.createElement(Button, { onClick: handleExport }, "\u5BFC\u51FA\u6570\u636E")) : null,
|
12297
|
+
activeTable !== 'bookGroup' &&
|
12298
|
+
showImportButton &&
|
12299
|
+
(typeof showImportButton === 'boolean' || showImportButton[activeViewCode]) ? (React__default.createElement(Button, { onClick: handleImport }, "\u5BFC\u5165\u6570\u636E")) : null)) : null),
|
12300
12300
|
showTabs ? (React__default.createElement("div", { className: styles$c.tabs },
|
12301
12301
|
React__default.createElement(Segmented, { options: tabItems, key: tabItems === null || tabItems === void 0 ? void 0 : tabItems[0], defaultValue: tabsActiveKey === 'book' ? tabItems === null || tabItems === void 0 ? void 0 : tabItems[0] : tabItems === null || tabItems === void 0 ? void 0 : tabItems[1], onChange: function (value) {
|
12302
12302
|
setFilter(null);
|
12303
12303
|
setTabsActiveKey(value.split('(')[0] === '台账' ? 'book' : 'sense');
|
12304
12304
|
} }))) : null,
|
12305
12305
|
React__default.createElement("div", { className: styles$c.filter },
|
12306
|
-
|
12307
|
-
|
12308
|
-
|
12309
|
-
|
12310
|
-
|
12306
|
+
!showTabs && !showBreadcrumb ? null : (React__default.createElement(React__default.Fragment, null,
|
12307
|
+
showButtons(),
|
12308
|
+
activeTable === 'sense' && showExportButton ? (React__default.createElement(Button, { onClick: handleExport }, "\u5BFC\u51FA\u6570\u636E")) : null,
|
12309
|
+
activeTable !== 'bookGroup' &&
|
12310
|
+
showImportButton &&
|
12311
|
+
(typeof showImportButton === 'boolean' || showImportButton[activeViewCode]) ? (React__default.createElement(Button, { onClick: handleImport }, "\u5BFC\u5165\u6570\u636E")) : null)),
|
12311
12312
|
React__default.createElement(Filter$1, { activeTable: activeTable, book: book, bookGroup: bookGroup, enableTag: enableTag, filter: filter, onFilter: function (filter, filterConfig) {
|
12312
12313
|
setFilter(filter);
|
12313
12314
|
setFilterConfig(filterConfig);
|
@@ -16181,11 +16182,11 @@ var CcosVideoPlayer = function (props) {
|
|
16181
16182
|
CcosVideoPlayer.settings = settings$1;
|
16182
16183
|
|
16183
16184
|
try {
|
16184
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.
|
16185
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.22","branch":"release_v2.0.0","buildDate":"2025-04-01 17:33:35"}');
|
16185
16186
|
}
|
16186
16187
|
catch (err) {
|
16187
16188
|
console.warn(err);
|
16188
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.
|
16189
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.22","branch":"release_v2.0.0","buildDate":"2025-04-01 17:33:35"}';
|
16189
16190
|
}
|
16190
16191
|
|
16191
16192
|
export { BookDetail, BookGroupImport, BookGroupTable, BookImport, BookInfo, BookSelect, BookTable, CcosBookDetail, CcosImportTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseFullTable, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosTagConfig, CcosVideoPlayer, EntityClassFilter, EntityClassTreeSelect, ImportTable, Modal, OrgTreeSelect, PersonSelector, ProSearch, ProTable$1 as ProTable, RegionCascader, RegionTreeSelect, RelationGraph, SenseContentTable, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseFullTable, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseView, TagConfig, TagTreeSelect, VideoControl, VideoPlayer, setCconfig as config };
|