@icos-desktop/react-components 2.0.31 → 2.0.33

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.
@@ -12,6 +12,7 @@ import { Menu, Submenu, Item as Item$2, contextMenu, useContextMenu } from 'reac
12
12
  import Highlighter from 'react-highlight-words';
13
13
  import ResizeObserver from 'rc-resize-observer';
14
14
  import { v4 } from 'uuid';
15
+ import ReactDOM from 'react-dom';
15
16
  import RcOverflow from 'rc-overflow';
16
17
  import { pinyin } from 'pinyin-pro';
17
18
  import { useMergedState } from 'rc-util';
@@ -5551,7 +5552,8 @@ var renderContextMenu = function (id, menu, callback, menuProps) {
5551
5552
  : renderItem(item);
5552
5553
  });
5553
5554
  };
5554
- return (React__default.createElement(Menu, __assign({ id: id }, menuProps), renderMenu(menu)));
5555
+ var Element = (React__default.createElement(Menu, __assign({ id: id }, menuProps), renderMenu(menu)));
5556
+ return ReactDOM.createPortal(Element, document.body);
5555
5557
  };
5556
5558
 
5557
5559
  var id$4 = "BOOK_TABLE_MENU_BOOK_".concat(v4());
@@ -12294,9 +12296,9 @@ var SenseFullTable = forwardRef(function (props, ref) {
12294
12296
  };
12295
12297
  useAsyncEffect(function () { return __awaiter(void 0, void 0, void 0, function () {
12296
12298
  var res, curBook;
12297
- var _a, _b, _c, _d, _e;
12298
- return __generator(this, function (_f) {
12299
- switch (_f.label) {
12299
+ var _a, _b, _c, _d, _e, _f;
12300
+ return __generator(this, function (_g) {
12301
+ switch (_g.label) {
12300
12302
  case 0:
12301
12303
  if (book && showSenseTable) {
12302
12304
  setActiveTable('sense');
@@ -12322,7 +12324,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
12322
12324
  viewCodes: [activeViewCode],
12323
12325
  })];
12324
12326
  case 2:
12325
- res = _f.sent();
12327
+ res = _g.sent();
12326
12328
  setBookGroup((_b = (_a = res[0]) === null || _a === void 0 ? void 0 : _a.bookGroupItemList) === null || _b === void 0 ? void 0 : _b[0]);
12327
12329
  if (!(((_d = (_c = res[0]) === null || _c === void 0 ? void 0 : _c.bookGroupItemList) === null || _d === void 0 ? void 0 : _d[0]) &&
12328
12330
  !showBookTable &&
@@ -12335,9 +12337,9 @@ var SenseFullTable = forwardRef(function (props, ref) {
12335
12337
  viewCode: activeViewCode,
12336
12338
  })];
12337
12339
  case 3:
12338
- curBook = _f.sent();
12339
- setImportBookId((_e = curBook === null || curBook === void 0 ? void 0 : curBook[0]) === null || _e === void 0 ? void 0 : _e.bookId);
12340
- _f.label = 4;
12340
+ curBook = _g.sent();
12341
+ setImportBookId((_f = (_e = curBook === null || curBook === void 0 ? void 0 : curBook.list) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.bookId);
12342
+ _g.label = 4;
12341
12343
  case 4: return [2 /*return*/];
12342
12344
  case 5: return [2 /*return*/];
12343
12345
  }
@@ -16275,11 +16277,11 @@ var CcosVideoPlayer = function (props) {
16275
16277
  CcosVideoPlayer.settings = settings$1;
16276
16278
 
16277
16279
  try {
16278
- window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.31","branch":"release_v2.0.0","buildDate":"2025-04-09 14:47:34"}');
16280
+ window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.33","branch":"release_v2.0.0","buildDate":"2025-04-09 15:45:59"}');
16279
16281
  }
16280
16282
  catch (err) {
16281
16283
  console.warn(err);
16282
- window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.31","branch":"release_v2.0.0","buildDate":"2025-04-09 14:47:34"}';
16284
+ window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.33","branch":"release_v2.0.0","buildDate":"2025-04-09 15:45:59"}';
16283
16285
  }
16284
16286
 
16285
16287
  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 };