@icos-desktop/react-components 2.0.35 → 2.0.37

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.
@@ -966,10 +966,6 @@ interface SenseSearchProps {
966
966
  * 搜索图标颜色
967
967
  */
968
968
  inputIconColor?: string;
969
- /**
970
- * 时空搜索表单背景颜色
971
- */
972
- formBgColor?: string;
973
969
  }
974
970
 
975
971
  declare const SenseSearch: (props: SenseSearchProps) => React.JSX.Element;
@@ -8481,7 +8481,6 @@ styleInject(css_248z$O);
8481
8481
  var Dragger = Upload$1.Dragger;
8482
8482
  var BookImport = function (props) {
8483
8483
  var bookId = props.bookId, _a = props.cancelText, cancelText = _a === void 0 ? '取消' : _a, onCancel = props.onCancel, onSuccess = props.onSuccess, onError = props.onError; props.downloadTextColor; props.uploadTextColor; props.uploadHintColor; props.uploadFileNameColor; var bottomBgColor = props.bottomBgColor, bottomBorderStyle = props.bottomBorderStyle, bottomBorderColor = props.bottomBorderColor, bottomBorderWidth = props.bottomBorderWidth; props.uploadImgColor; props.fileImgColor; props.deleteImgColor;
8484
- var message = App.useApp().message;
8485
8484
  // 选择的文件
8486
8485
  var _b = useState(null), file = _b[0], setFile = _b[1];
8487
8486
  // 上传中
@@ -12252,7 +12251,8 @@ var SenseFullTable = forwardRef(function (props, ref) {
12252
12251
  // 显示按钮
12253
12252
  var showButtons = function () {
12254
12253
  if (customButtons) {
12255
- var buttons = customButtons({ activeViewCode: activeViewCode, activeTable: activeTable, bookGroup: bookGroup, book: book });
12254
+ var curBook = (book === null || book === void 0 ? void 0 : book.bookId) ? book : { bookId: importBookId };
12255
+ var buttons = customButtons({ activeViewCode: activeViewCode, activeTable: activeTable, bookGroup: bookGroup, book: curBook });
12256
12256
  return buttons === null || buttons === void 0 ? void 0 : buttons.map(function (item) { return React__default.createElement(Button, __assign({}, item), item.title); });
12257
12257
  }
12258
12258
  return null;
@@ -12326,10 +12326,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
12326
12326
  case 2:
12327
12327
  res = _g.sent();
12328
12328
  setBookGroup((_b = (_a = res[0]) === null || _a === void 0 ? void 0 : _a.bookGroupItemList) === null || _b === void 0 ? void 0 : _b[0]);
12329
- if (!(((_d = (_c = res[0]) === null || _c === void 0 ? void 0 : _c.bookGroupItemList) === null || _d === void 0 ? void 0 : _d[0]) &&
12330
- !showBookTable &&
12331
- typeof showImportButton !== 'boolean' &&
12332
- (showImportButton === null || showImportButton === void 0 ? void 0 : showImportButton[activeViewCode]) === 'book')) return [3 /*break*/, 4];
12329
+ if (!(((_d = (_c = res[0]) === null || _c === void 0 ? void 0 : _c.bookGroupItemList) === null || _d === void 0 ? void 0 : _d[0]) && !showBookTable)) return [3 /*break*/, 4];
12333
12330
  return [4 /*yield*/, getTargetGroupBook({
12334
12331
  page: 1,
12335
12332
  pageSize: 1,
@@ -13814,8 +13811,10 @@ var css_248z$7 = ":root {\n --sense-search-input-icon-color: #8c8c8c;\n}\n.Sens
13814
13811
  var styles$7 = {"container":"SenseSearch-module_container__EMa7E","input-box":"SenseSearch-module_input-box__NrjXB","input":"SenseSearch-module_input__tLtuH","input-addon":"SenseSearch-module_input-addon__rKWhO","icon":"SenseSearch-module_icon__7pknl","searchBtn":"SenseSearch-module_searchBtn__Hpads"};
13815
13812
  styleInject(css_248z$7);
13816
13813
 
13814
+ var useToken = theme.useToken;
13817
13815
  var SenseSearch = function (props) {
13818
- var viewCode = props.viewCode, showView = props.showView, views = props.views, searchMode = props.searchMode, onSearch = props.onSearch, onMapDraw = props.onMapDraw, onStartDraw = props.onStartDraw, inputIconColor = props.inputIconColor; props.formBgColor;
13816
+ var viewCode = props.viewCode, showView = props.showView, views = props.views, searchMode = props.searchMode, onSearch = props.onSearch, onMapDraw = props.onMapDraw, onStartDraw = props.onStartDraw, inputIconColor = props.inputIconColor;
13817
+ var token = useToken().token;
13819
13818
  var form = Form.useForm()[0];
13820
13819
  // 顶部菜单栏展示分类
13821
13820
  var _a = useState([]), categories = _a[0], setCategories = _a[1];
@@ -13823,8 +13822,6 @@ var SenseSearch = function (props) {
13823
13822
  var _b = useState(''), activeCategory = _b[0], setActiveCategory = _b[1];
13824
13823
  // 显示高级搜索
13825
13824
  var _c = useState(false), isShowAdvanced = _c[0], setIsShowAdvanced = _c[1];
13826
- var useToken = theme.useToken;
13827
- var token = useToken().token;
13828
13825
  // 触发搜索
13829
13826
  var handleSearch = function () {
13830
13827
  form.validateFields().then(function (values) { return __awaiter(void 0, void 0, void 0, function () {
@@ -13935,9 +13932,7 @@ var SenseSearch = function (props) {
13935
13932
  var _a;
13936
13933
  return __generator(this, function (_b) {
13937
13934
  switch (_b.label) {
13938
- case 0:
13939
- console.log('views', views);
13940
- return [4 /*yield*/, getSystemViewList()];
13935
+ case 0: return [4 /*yield*/, getSystemViewList()];
13941
13936
  case 1:
13942
13937
  systemViews = _b.sent();
13943
13938
  _views = views
@@ -15583,8 +15578,6 @@ var styles$4 = {"container":"SenseView-module_container__nk7i-","tree":"SenseVie
15583
15578
  styleInject(css_248z$4);
15584
15579
 
15585
15580
  var SenseView = function (props) {
15586
- var useToken = theme.useToken;
15587
- useToken().token;
15588
15581
  var senseSearchPrpos = pick(props, [
15589
15582
  'viewCode',
15590
15583
  'showView',
@@ -15612,6 +15605,7 @@ var SenseView = function (props) {
15612
15605
  ]);
15613
15606
  // 搜索参数
15614
15607
  var _a = useState(), searchParams = _a[0], setSearchParams = _a[1];
15608
+ // 触发搜索
15615
15609
  var handleSearch = function (params) {
15616
15610
  setSearchParams(params);
15617
15611
  };
@@ -16277,11 +16271,11 @@ var CcosVideoPlayer = function (props) {
16277
16271
  CcosVideoPlayer.settings = settings$1;
16278
16272
 
16279
16273
  try {
16280
- window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.35","branch":"release_v2.0.0","buildDate":"2025-04-10 10:37:26"}');
16274
+ window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.37","branch":"tags/tag_v2.0.36^0","buildDate":"2025-04-21 14:58:17"}');
16281
16275
  }
16282
16276
  catch (err) {
16283
16277
  console.warn(err);
16284
- window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.35","branch":"release_v2.0.0","buildDate":"2025-04-10 10:37:26"}';
16278
+ window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.37","branch":"tags/tag_v2.0.36^0","buildDate":"2025-04-21 14:58:17"}';
16285
16279
  }
16286
16280
 
16287
16281
  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 };