@icos-desktop/react-components 2.1.7 → 2.1.9
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.js +15 -11
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/icos-desktop.js
CHANGED
@@ -12909,6 +12909,9 @@ var convertPointToArray = function (coordinates) {
|
|
12909
12909
|
// 获取点周边区域
|
12910
12910
|
var getPointPolygonGeom = function (point, km) {
|
12911
12911
|
if (km === void 0) { km = 1; }
|
12912
|
+
if (!(point === null || point === void 0 ? void 0 : point.length) || !km) {
|
12913
|
+
return null;
|
12914
|
+
}
|
12912
12915
|
var geoJson = turf.point(point);
|
12913
12916
|
var buffer = turf.buffer(geoJson, km, { units: 'kilometers' });
|
12914
12917
|
return turf.getGeom(buffer);
|
@@ -12916,6 +12919,9 @@ var getPointPolygonGeom = function (point, km) {
|
|
12916
12919
|
// 获取线周边区域
|
12917
12920
|
var getLinePolygonGeom = function (line, km) {
|
12918
12921
|
if (km === void 0) { km = 1; }
|
12922
|
+
if (!line || !km) {
|
12923
|
+
return null;
|
12924
|
+
}
|
12919
12925
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
12920
12926
|
// @ts-expect-error
|
12921
12927
|
var buffer = turf.buffer({ type: 'Feature', geometry: wkt.parse(line) }, km, {
|
@@ -13902,7 +13908,7 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
13902
13908
|
// 显示高级搜索
|
13903
13909
|
var _e = useState(false), isShowAdvanced = _e[0], setIsShowAdvanced = _e[1];
|
13904
13910
|
// 透传参数
|
13905
|
-
var customFieldParamsRef = useRef();
|
13911
|
+
var customFieldParamsRef = useRef({});
|
13906
13912
|
// 触发搜索
|
13907
13913
|
var handleSearch = function () {
|
13908
13914
|
form.validateFields().then(function (values) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -13922,13 +13928,7 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
13922
13928
|
senseObjCodes.push(code);
|
13923
13929
|
}
|
13924
13930
|
});
|
13925
|
-
params = {
|
13926
|
-
viewCodes: [activeCategory, viewCode].filter(Boolean),
|
13927
|
-
keyword: keyword,
|
13928
|
-
senseObjCodes: senseObjCodes,
|
13929
|
-
tagCodes: tagCodes,
|
13930
|
-
customFieldParams: customFieldParamsRef.current,
|
13931
|
-
};
|
13931
|
+
params = __assign({ viewCodes: [activeCategory, viewCode].filter(Boolean), keyword: keyword, senseObjCodes: senseObjCodes, tagCodes: tagCodes }, customFieldParamsRef.current);
|
13932
13932
|
if (searchMode === SEARCH_MODE.TIME || searchMode === SEARCH_MODE.TIME_SPACE) {
|
13933
13933
|
timeRange = values.timeRange;
|
13934
13934
|
// 处理时间
|
@@ -14007,7 +14007,11 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
14007
14007
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
14008
14008
|
console.log('aiSearch', res);
|
14009
14009
|
// 透传参数
|
14010
|
-
customFieldParamsRef.current =
|
14010
|
+
customFieldParamsRef.current = {
|
14011
|
+
senseObjCodes: res.senseObjCodes || [],
|
14012
|
+
tagCodes: res.tagCodes || [],
|
14013
|
+
customFieldParams: res.customFieldParams,
|
14014
|
+
};
|
14011
14015
|
// 搜索参数
|
14012
14016
|
var params = {
|
14013
14017
|
keyword: res.keyword || '',
|
@@ -16519,11 +16523,11 @@ var CcosVideoPlayer = function (props) {
|
|
16519
16523
|
CcosVideoPlayer.settings = settings$1;
|
16520
16524
|
|
16521
16525
|
try {
|
16522
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.
|
16526
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.9","branch":"release_v2.1.0","buildDate":"2025-05-28 18:25:14"}');
|
16523
16527
|
}
|
16524
16528
|
catch (err) {
|
16525
16529
|
console.warn(err);
|
16526
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.
|
16530
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.9","branch":"release_v2.1.0","buildDate":"2025-05-28 18:25:14"}';
|
16527
16531
|
}
|
16528
16532
|
|
16529
16533
|
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, 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 };
|