@icos-desktop/react-components 2.0.28 → 2.0.29
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 +8 -0
- package/dist/icos-desktop.js +12 -6
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/icos-desktop.d.ts
CHANGED
@@ -771,6 +771,14 @@ interface SenseFullTableProps {
|
|
771
771
|
* 地理层级路径节点id,实体记录所属地理层级路径只要包含此值即返回,`leftRegionId`无值时有效
|
772
772
|
*/
|
773
773
|
pathRegionId?: string;
|
774
|
+
/**
|
775
|
+
* 扩展筛选字段
|
776
|
+
* @param filterConfig
|
777
|
+
*/
|
778
|
+
extendFilter?: (filterConfig: {
|
779
|
+
filterItems: any[];
|
780
|
+
tagValues: any[];
|
781
|
+
}) => any;
|
774
782
|
/**
|
775
783
|
* 新建对象
|
776
784
|
* @param record
|
package/dist/icos-desktop.js
CHANGED
@@ -6279,12 +6279,13 @@ var RangePicker$2 = DatePicker.RangePicker;
|
|
6279
6279
|
var Filter$1 = function (props) {
|
6280
6280
|
var _a;
|
6281
6281
|
var _b, _c;
|
6282
|
-
var activeTable = props.activeTable, book = props.book, bookGroup = props.bookGroup, enableTag = props.enableTag, filter = props.filter, onFilter = props.onFilter;
|
6282
|
+
var activeTable = props.activeTable, book = props.book, bookGroup = props.bookGroup, enableTag = props.enableTag, filter = props.filter, onFilter = props.onFilter, extendFilter = props.extendFilter;
|
6283
6283
|
var form = Form.useForm()[0];
|
6284
6284
|
var _d = useState(false), open = _d[0], setOpen = _d[1];
|
6285
6285
|
var token = theme.useToken().token;
|
6286
6286
|
// 实体记录筛选配置
|
6287
6287
|
var filterConfig = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
|
6288
|
+
var res;
|
6288
6289
|
return __generator(this, function (_a) {
|
6289
6290
|
switch (_a.label) {
|
6290
6291
|
case 0:
|
@@ -6293,7 +6294,12 @@ var Filter$1 = function (props) {
|
|
6293
6294
|
bookId: book === null || book === void 0 ? void 0 : book.bookId,
|
6294
6295
|
templateId: bookGroup === null || bookGroup === void 0 ? void 0 : bookGroup.bookGroupId,
|
6295
6296
|
})];
|
6296
|
-
case 1:
|
6297
|
+
case 1:
|
6298
|
+
res = _a.sent();
|
6299
|
+
if (extendFilter) {
|
6300
|
+
return [2 /*return*/, extendFilter(res)];
|
6301
|
+
}
|
6302
|
+
return [2 /*return*/, res];
|
6297
6303
|
case 2: return [2 /*return*/];
|
6298
6304
|
}
|
6299
6305
|
});
|
@@ -12079,7 +12085,7 @@ styleInject(css_248z$c);
|
|
12079
12085
|
|
12080
12086
|
var SenseFullTable = forwardRef(function (props, ref) {
|
12081
12087
|
var _a;
|
12082
|
-
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;
|
12088
|
+
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, extendFilter = props.extendFilter, onCreateSense = props.onCreateSense, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onClickSense = props.onClickSense, onDoubleClickSense = props.onDoubleClickSense, proTableContainerHeight = props.proTableContainerHeight;
|
12083
12089
|
// 台账表格 ref
|
12084
12090
|
var bookTableRef = useRef();
|
12085
12091
|
// 实体记录表格 ref
|
@@ -12378,7 +12384,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12378
12384
|
(typeof showImportButton === 'boolean' || showImportButton[activeViewCode]) ? (React__default.createElement(Button, { onClick: handleImport, disabled: typeof showImportButton !== 'boolean' &&
|
12379
12385
|
(showImportButton === null || showImportButton === void 0 ? void 0 : showImportButton[activeViewCode]) === 'book' &&
|
12380
12386
|
!((book === null || book === void 0 ? void 0 : book.bookId) || importBookId) }, "\u5BFC\u5165\u6570\u636E")) : null)),
|
12381
|
-
React__default.createElement(Filter$1, { activeTable: activeTable, book: book, bookGroup: bookGroup, enableTag: enableTag, filter: filter, onFilter: function (filter, filterConfig) {
|
12387
|
+
React__default.createElement(Filter$1, { activeTable: activeTable, book: book, bookGroup: bookGroup, enableTag: enableTag, filter: filter, extendFilter: extendFilter, onFilter: function (filter, filterConfig) {
|
12382
12388
|
setFilter(filter);
|
12383
12389
|
setFilterConfig(filterConfig);
|
12384
12390
|
} }),
|
@@ -16264,11 +16270,11 @@ var CcosVideoPlayer = function (props) {
|
|
16264
16270
|
CcosVideoPlayer.settings = settings$1;
|
16265
16271
|
|
16266
16272
|
try {
|
16267
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.
|
16273
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.29","branch":"release_v2.0.0","buildDate":"2025-04-07 19:37:44"}');
|
16268
16274
|
}
|
16269
16275
|
catch (err) {
|
16270
16276
|
console.warn(err);
|
16271
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.
|
16277
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.29","branch":"release_v2.0.0","buildDate":"2025-04-07 19:37:44"}';
|
16272
16278
|
}
|
16273
16279
|
|
16274
16280
|
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 };
|