@icos-desktop/react-components 2.2.0 → 2.2.1
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 +15 -0
- package/dist/icos-desktop.js +11 -7
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/icos-desktop.d.ts
CHANGED
@@ -258,6 +258,11 @@ interface BookTableProps extends TableProps {
|
|
258
258
|
* @param record
|
259
259
|
*/
|
260
260
|
onAttribute?: (record: any) => void;
|
261
|
+
/**
|
262
|
+
* 台账共享
|
263
|
+
* @param record
|
264
|
+
*/
|
265
|
+
onShare?: (record: any) => void;
|
261
266
|
}
|
262
267
|
interface BookTableRef {
|
263
268
|
/**
|
@@ -825,6 +830,11 @@ interface SenseFullTableProps {
|
|
825
830
|
* @param record
|
826
831
|
*/
|
827
832
|
onBookAttribute?: (record: any) => void;
|
833
|
+
/**
|
834
|
+
* 台账共享
|
835
|
+
* @param record
|
836
|
+
*/
|
837
|
+
onBookShare?: (record: any) => void;
|
828
838
|
}
|
829
839
|
interface SenseFullTableRef {
|
830
840
|
/**
|
@@ -947,6 +957,11 @@ interface SenseManagerProps {
|
|
947
957
|
* @param record
|
948
958
|
*/
|
949
959
|
onBookAttribute?: (record: any) => void;
|
960
|
+
/**
|
961
|
+
* 台账共享
|
962
|
+
* @param record
|
963
|
+
*/
|
964
|
+
onBookShare?: (record: any) => void;
|
950
965
|
}
|
951
966
|
|
952
967
|
declare const SenseManager: React.FC<SenseManagerProps>;
|
package/dist/icos-desktop.js
CHANGED
@@ -6194,7 +6194,7 @@ var defaultHeader = [
|
|
6194
6194
|
{ code: 'regionName', name: '关联地理层级', defaultShow: false },
|
6195
6195
|
];
|
6196
6196
|
var BookTable = forwardRef(function (props, ref) {
|
6197
|
-
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, onTagConfig = props.onTagConfig, onAttribute = props.onAttribute, tableProps = __rest(props, ["header", "templateId", "viewCodes", "displayWay", "nodeCode", "keyword", "filter", "contextMenuConfig", "onDoubleClick", "onCreateSense", "onRefresh", "onTagConfig", "onAttribute"]);
|
6197
|
+
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, onTagConfig = props.onTagConfig, onAttribute = props.onAttribute, onShare = props.onShare, tableProps = __rest(props, ["header", "templateId", "viewCodes", "displayWay", "nodeCode", "keyword", "filter", "contextMenuConfig", "onDoubleClick", "onCreateSense", "onRefresh", "onTagConfig", "onAttribute", "onShare"]);
|
6198
6198
|
var _b = message.useMessage(), messageApi = _b[0], contextHolder = _b[1];
|
6199
6199
|
var _c = Modal$1.useModal(), modal = _c[0], modalContextHolder = _c[1];
|
6200
6200
|
var showContextMenu = useContextMenu({ id: ContextMenu$4.id }).show;
|
@@ -6298,6 +6298,10 @@ var BookTable = forwardRef(function (props, ref) {
|
|
6298
6298
|
viewCodes: viewCodes,
|
6299
6299
|
});
|
6300
6300
|
break;
|
6301
|
+
// 共享
|
6302
|
+
case 'share':
|
6303
|
+
onShare === null || onShare === void 0 ? void 0 : onShare(record);
|
6304
|
+
break;
|
6301
6305
|
}
|
6302
6306
|
},
|
6303
6307
|
},
|
@@ -12278,7 +12282,7 @@ styleInject(css_248z$c);
|
|
12278
12282
|
|
12279
12283
|
var SenseFullTable = forwardRef(function (props, ref) {
|
12280
12284
|
var _a;
|
12281
|
-
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, sensePageSize = props.sensePageSize, extendFilter = props.extendFilter, onCreateSense = props.onCreateSense, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onClickSense = props.onClickSense, onDoubleClickSense = props.onDoubleClickSense, onTagConfig = props.onTagConfig, onBookAttribute = props.onBookAttribute;
|
12285
|
+
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, sensePageSize = props.sensePageSize, extendFilter = props.extendFilter, onCreateSense = props.onCreateSense, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onClickSense = props.onClickSense, onDoubleClickSense = props.onDoubleClickSense, onTagConfig = props.onTagConfig, onBookAttribute = props.onBookAttribute, onBookShare = props.onBookShare;
|
12282
12286
|
// 台账表格 ref
|
12283
12287
|
var bookTableRef = useRef();
|
12284
12288
|
// 实体记录表格 ref
|
@@ -12423,7 +12427,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
|
|
12423
12427
|
setFilter(null);
|
12424
12428
|
setBook(data);
|
12425
12429
|
}
|
12426
|
-
}, onCreateSense: onCreateSense, onTagConfig: onTagConfig, onAttribute: onBookAttribute }));
|
12430
|
+
}, onCreateSense: onCreateSense, onTagConfig: onTagConfig, onAttribute: onBookAttribute, onShare: onBookShare }));
|
12427
12431
|
};
|
12428
12432
|
// 实体记录
|
12429
12433
|
var renderSense = function (templateId, bookId) {
|
@@ -12906,7 +12910,7 @@ var builtinPanel = {
|
|
12906
12910
|
},
|
12907
12911
|
};
|
12908
12912
|
var SenseManager = function (props) {
|
12909
|
-
var views = props.views, panelConfig = props.panelConfig, onCreateSense = props.onCreateSense, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onClickSense = props.onClickSense, onDoubleClickSense = props.onDoubleClickSense, onTagConfig = props.onTagConfig, onBookAttribute = props.onBookAttribute;
|
12913
|
+
var views = props.views, panelConfig = props.panelConfig, onCreateSense = props.onCreateSense, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onClickSense = props.onClickSense, onDoubleClickSense = props.onDoubleClickSense, onTagConfig = props.onTagConfig, onBookAttribute = props.onBookAttribute, onBookShare = props.onBookShare;
|
12910
12914
|
var token = theme.useToken().token;
|
12911
12915
|
var toolbarItems = [
|
12912
12916
|
{
|
@@ -12934,7 +12938,7 @@ var SenseManager = function (props) {
|
|
12934
12938
|
'attribute',
|
12935
12939
|
'export',
|
12936
12940
|
'share',
|
12937
|
-
], senseContextMenuConfig: ['show', 'edit', '
|
12941
|
+
], senseContextMenuConfig: ['show', 'edit', 'delete'], onCreateSense: onCreateSense, onShowSense: onShowSense, onEditSense: onEditSense, onClickSense: onClickSense, onDoubleClickSense: onDoubleClickSense, onTagConfig: onTagConfig, onBookAttribute: onBookAttribute, onBookShare: onBookShare }))));
|
12938
12942
|
};
|
12939
12943
|
|
12940
12944
|
var settings$c = {
|
@@ -16706,11 +16710,11 @@ var CcosVideoPlayer = function (props) {
|
|
16706
16710
|
CcosVideoPlayer.settings = settings$1;
|
16707
16711
|
|
16708
16712
|
try {
|
16709
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.2.
|
16713
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.2.1","branch":"release_v2.2.0","buildDate":"2025-06-13 14:16:23"}');
|
16710
16714
|
}
|
16711
16715
|
catch (err) {
|
16712
16716
|
console.warn(err);
|
16713
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.2.
|
16717
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.2.1","branch":"release_v2.2.0","buildDate":"2025-06-13 14:16:23"}';
|
16714
16718
|
}
|
16715
16719
|
|
16716
16720
|
export { BookDetail, BookGroupImport, BookGroupTable, BookImport, BookInfo, BookSelect, BookTable, CcosBookDetail, CcosImportTable, CcosSenseContentTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseFullTable, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosTagConfig, CcosVideoControl, CcosVideoPlayer, EntityClassFilter, EntityClassTreeSelect, ImportTable, Modal, OrgTreeSelect, PersonSelector, 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 };
|