@icos-desktop/react-components 2.0.36 → 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;
@@ -12251,7 +12251,8 @@ var SenseFullTable = forwardRef(function (props, ref) {
12251
12251
  // 显示按钮
12252
12252
  var showButtons = function () {
12253
12253
  if (customButtons) {
12254
- 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 });
12255
12256
  return buttons === null || buttons === void 0 ? void 0 : buttons.map(function (item) { return React__default.createElement(Button, __assign({}, item), item.title); });
12256
12257
  }
12257
12258
  return null;
@@ -12325,10 +12326,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
12325
12326
  case 2:
12326
12327
  res = _g.sent();
12327
12328
  setBookGroup((_b = (_a = res[0]) === null || _a === void 0 ? void 0 : _a.bookGroupItemList) === null || _b === void 0 ? void 0 : _b[0]);
12328
- if (!(((_d = (_c = res[0]) === null || _c === void 0 ? void 0 : _c.bookGroupItemList) === null || _d === void 0 ? void 0 : _d[0]) &&
12329
- !showBookTable &&
12330
- typeof showImportButton !== 'boolean' &&
12331
- (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];
12332
12330
  return [4 /*yield*/, getTargetGroupBook({
12333
12331
  page: 1,
12334
12332
  pageSize: 1,
@@ -13813,8 +13811,10 @@ var css_248z$7 = ":root {\n --sense-search-input-icon-color: #8c8c8c;\n}\n.Sens
13813
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"};
13814
13812
  styleInject(css_248z$7);
13815
13813
 
13814
+ var useToken = theme.useToken;
13816
13815
  var SenseSearch = function (props) {
13817
- 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;
13818
13818
  var form = Form.useForm()[0];
13819
13819
  // 顶部菜单栏展示分类
13820
13820
  var _a = useState([]), categories = _a[0], setCategories = _a[1];
@@ -13822,8 +13822,6 @@ var SenseSearch = function (props) {
13822
13822
  var _b = useState(''), activeCategory = _b[0], setActiveCategory = _b[1];
13823
13823
  // 显示高级搜索
13824
13824
  var _c = useState(false), isShowAdvanced = _c[0], setIsShowAdvanced = _c[1];
13825
- var useToken = theme.useToken;
13826
- var token = useToken().token;
13827
13825
  // 触发搜索
13828
13826
  var handleSearch = function () {
13829
13827
  form.validateFields().then(function (values) { return __awaiter(void 0, void 0, void 0, function () {
@@ -13934,9 +13932,7 @@ var SenseSearch = function (props) {
13934
13932
  var _a;
13935
13933
  return __generator(this, function (_b) {
13936
13934
  switch (_b.label) {
13937
- case 0:
13938
- console.log('views', views);
13939
- return [4 /*yield*/, getSystemViewList()];
13935
+ case 0: return [4 /*yield*/, getSystemViewList()];
13940
13936
  case 1:
13941
13937
  systemViews = _b.sent();
13942
13938
  _views = views
@@ -15582,8 +15578,6 @@ var styles$4 = {"container":"SenseView-module_container__nk7i-","tree":"SenseVie
15582
15578
  styleInject(css_248z$4);
15583
15579
 
15584
15580
  var SenseView = function (props) {
15585
- var useToken = theme.useToken;
15586
- useToken().token;
15587
15581
  var senseSearchPrpos = pick(props, [
15588
15582
  'viewCode',
15589
15583
  'showView',
@@ -15611,6 +15605,7 @@ var SenseView = function (props) {
15611
15605
  ]);
15612
15606
  // 搜索参数
15613
15607
  var _a = useState(), searchParams = _a[0], setSearchParams = _a[1];
15608
+ // 触发搜索
15614
15609
  var handleSearch = function (params) {
15615
15610
  setSearchParams(params);
15616
15611
  };
@@ -16276,11 +16271,11 @@ var CcosVideoPlayer = function (props) {
16276
16271
  CcosVideoPlayer.settings = settings$1;
16277
16272
 
16278
16273
  try {
16279
- window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.36","branch":"release_v2.0.0","buildDate":"2025-04-10 12:57:27"}');
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"}');
16280
16275
  }
16281
16276
  catch (err) {
16282
16277
  console.warn(err);
16283
- window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.36","branch":"release_v2.0.0","buildDate":"2025-04-10 12:57:27"}';
16278
+ window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.37","branch":"tags/tag_v2.0.36^0","buildDate":"2025-04-21 14:58:17"}';
16284
16279
  }
16285
16280
 
16286
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 };