@icos-desktop/react-components 2.0.36 → 2.0.38

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.
@@ -611,6 +611,10 @@ interface SenseEditProps {
611
611
  * 保存成功
612
612
  */
613
613
  onSuccess?: (res: SenseFormAPI.SaveSenseRes) => void;
614
+ /**
615
+ * 隐藏地图
616
+ */
617
+ hiddenMap?: boolean;
614
618
  /**
615
619
  * 表单内部主题样式,可选值:`dark`, `light`,默认`dark`
616
620
  */
@@ -661,6 +665,10 @@ interface SenseFormProps {
661
665
  * 是否禁用(初次渲染时生效)
662
666
  */
663
667
  disabled?: boolean;
668
+ /**
669
+ * 隐藏地图(初次渲染时生效)
670
+ */
671
+ hiddenMap?: boolean;
664
672
  /**
665
673
  * 主题色(初次渲染时生效,默认暗色)
666
674
  */
@@ -966,10 +974,6 @@ interface SenseSearchProps {
966
974
  * 搜索图标颜色
967
975
  */
968
976
  inputIconColor?: string;
969
- /**
970
- * 时空搜索表单背景颜色
971
- */
972
- formBgColor?: string;
973
977
  }
974
978
 
975
979
  declare const SenseSearch: (props: SenseSearchProps) => React.JSX.Element;
@@ -10333,7 +10333,7 @@ var styles$y = {"container":"SenseForm-module_container__qRRur","iframe":"SenseF
10333
10333
  styleInject(css_248z$y);
10334
10334
 
10335
10335
  var SenseForm = forwardRef(function (props, ref) {
10336
- var entityInfo = props.data, schemaJSON = props.schemaJSON, _a = props.readonlyList, readonlyList = _a === void 0 ? [] : _a, disabled = props.disabled, theme = props.theme;
10336
+ var entityInfo = props.data, schemaJSON = props.schemaJSON, _a = props.readonlyList, readonlyList = _a === void 0 ? [] : _a, disabled = props.disabled, hiddenMap = props.hiddenMap, theme = props.theme;
10337
10337
  var uuid = useMemo(function () { return v4(); }, []);
10338
10338
  var callbackRef = useRef({});
10339
10339
  // 京民通地址
@@ -10410,6 +10410,9 @@ var SenseForm = forwardRef(function (props, ref) {
10410
10410
  if (disabled) {
10411
10411
  src += '&disabled=true';
10412
10412
  }
10413
+ if (hiddenMap) {
10414
+ src += '&hiddenMap=true';
10415
+ }
10413
10416
  if (theme) {
10414
10417
  src += "&theme=".concat(theme);
10415
10418
  }
@@ -10470,7 +10473,7 @@ var styles$x = {"container":"SenseEdit-module_container__Ji1A5","form":"SenseEdi
10470
10473
  styleInject(css_248z$x);
10471
10474
 
10472
10475
  var SenseEdit = function (props) {
10473
- var senseGlobalCode = props.senseGlobalCode, bookId = props.bookId, _a = props.cancelText, cancelText = _a === void 0 ? '取消' : _a, onCancel = props.onCancel, onSuccess = props.onSuccess, theme = props.theme, bottomBgColor = props.bottomBgColor, bottomBorderWidth = props.bottomBorderWidth, bottomBorderColor = props.bottomBorderColor, bottomBorderStyle = props.bottomBorderStyle;
10476
+ var senseGlobalCode = props.senseGlobalCode, bookId = props.bookId, _a = props.cancelText, cancelText = _a === void 0 ? '取消' : _a, onCancel = props.onCancel, onSuccess = props.onSuccess, hiddenMap = props.hiddenMap, theme = props.theme, bottomBgColor = props.bottomBgColor, bottomBorderWidth = props.bottomBorderWidth, bottomBorderColor = props.bottomBorderColor, bottomBorderStyle = props.bottomBorderStyle;
10474
10477
  var message = App.useApp().message;
10475
10478
  var senseFormRef = useRef();
10476
10479
  var data = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -10528,7 +10531,7 @@ var SenseEdit = function (props) {
10528
10531
  };
10529
10532
  return (React__default.createElement("div", { className: styles$x.container },
10530
10533
  React__default.createElement("div", { className: styles$x.form },
10531
- React__default.createElement(SenseForm, { ref: senseFormRef, key: "".concat(senseGlobalCode, "-").concat(theme), data: entityInfo, schemaJSON: schemaJSON, readonlyList: readonlyList, theme: theme })),
10534
+ React__default.createElement(SenseForm, { ref: senseFormRef, key: "".concat(senseGlobalCode, "-").concat(theme, "-").concat(hiddenMap ? 'hiddenMap' : ''), data: entityInfo, schemaJSON: schemaJSON, readonlyList: readonlyList, hiddenMap: hiddenMap, theme: theme })),
10532
10535
  React__default.createElement("div", { className: styles$x.btns, style: bottomStyle },
10533
10536
  React__default.createElement(Button, { type: "default", onClick: onCancel }, cancelText),
10534
10537
  React__default.createElement(Button, { type: "primary", onClick: handleOk }, "\u786E\u5B9A"))));
@@ -12251,7 +12254,8 @@ var SenseFullTable = forwardRef(function (props, ref) {
12251
12254
  // 显示按钮
12252
12255
  var showButtons = function () {
12253
12256
  if (customButtons) {
12254
- var buttons = customButtons({ activeViewCode: activeViewCode, activeTable: activeTable, bookGroup: bookGroup, book: book });
12257
+ var curBook = (book === null || book === void 0 ? void 0 : book.bookId) ? book : { bookId: importBookId };
12258
+ var buttons = customButtons({ activeViewCode: activeViewCode, activeTable: activeTable, bookGroup: bookGroup, book: curBook });
12255
12259
  return buttons === null || buttons === void 0 ? void 0 : buttons.map(function (item) { return React__default.createElement(Button, __assign({}, item), item.title); });
12256
12260
  }
12257
12261
  return null;
@@ -12325,10 +12329,7 @@ var SenseFullTable = forwardRef(function (props, ref) {
12325
12329
  case 2:
12326
12330
  res = _g.sent();
12327
12331
  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];
12332
+ 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
12333
  return [4 /*yield*/, getTargetGroupBook({
12333
12334
  page: 1,
12334
12335
  pageSize: 1,
@@ -13813,8 +13814,10 @@ var css_248z$7 = ":root {\n --sense-search-input-icon-color: #8c8c8c;\n}\n.Sens
13813
13814
  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
13815
  styleInject(css_248z$7);
13815
13816
 
13817
+ var useToken = theme.useToken;
13816
13818
  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;
13819
+ 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;
13820
+ var token = useToken().token;
13818
13821
  var form = Form.useForm()[0];
13819
13822
  // 顶部菜单栏展示分类
13820
13823
  var _a = useState([]), categories = _a[0], setCategories = _a[1];
@@ -13822,8 +13825,6 @@ var SenseSearch = function (props) {
13822
13825
  var _b = useState(''), activeCategory = _b[0], setActiveCategory = _b[1];
13823
13826
  // 显示高级搜索
13824
13827
  var _c = useState(false), isShowAdvanced = _c[0], setIsShowAdvanced = _c[1];
13825
- var useToken = theme.useToken;
13826
- var token = useToken().token;
13827
13828
  // 触发搜索
13828
13829
  var handleSearch = function () {
13829
13830
  form.validateFields().then(function (values) { return __awaiter(void 0, void 0, void 0, function () {
@@ -13934,9 +13935,7 @@ var SenseSearch = function (props) {
13934
13935
  var _a;
13935
13936
  return __generator(this, function (_b) {
13936
13937
  switch (_b.label) {
13937
- case 0:
13938
- console.log('views', views);
13939
- return [4 /*yield*/, getSystemViewList()];
13938
+ case 0: return [4 /*yield*/, getSystemViewList()];
13940
13939
  case 1:
13941
13940
  systemViews = _b.sent();
13942
13941
  _views = views
@@ -15582,8 +15581,6 @@ var styles$4 = {"container":"SenseView-module_container__nk7i-","tree":"SenseVie
15582
15581
  styleInject(css_248z$4);
15583
15582
 
15584
15583
  var SenseView = function (props) {
15585
- var useToken = theme.useToken;
15586
- useToken().token;
15587
15584
  var senseSearchPrpos = pick(props, [
15588
15585
  'viewCode',
15589
15586
  'showView',
@@ -15611,6 +15608,7 @@ var SenseView = function (props) {
15611
15608
  ]);
15612
15609
  // 搜索参数
15613
15610
  var _a = useState(), searchParams = _a[0], setSearchParams = _a[1];
15611
+ // 触发搜索
15614
15612
  var handleSearch = function (params) {
15615
15613
  setSearchParams(params);
15616
15614
  };
@@ -16276,11 +16274,11 @@ var CcosVideoPlayer = function (props) {
16276
16274
  CcosVideoPlayer.settings = settings$1;
16277
16275
 
16278
16276
  try {
16279
- window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.36","branch":"release_v2.0.0","buildDate":"2025-04-10 12:57:27"}');
16277
+ window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.38","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-04-22 15:44:25"}');
16280
16278
  }
16281
16279
  catch (err) {
16282
16280
  console.warn(err);
16283
- window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.36","branch":"release_v2.0.0","buildDate":"2025-04-10 12:57:27"}';
16281
+ window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.38","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-04-22 15:44:25"}';
16284
16282
  }
16285
16283
 
16286
16284
  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 };