@icos-desktop/react-components 2.1.8 → 2.1.10
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 +20 -16
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/icos-desktop.js
CHANGED
@@ -6313,7 +6313,7 @@ var FormItem = function (_a) {
|
|
6313
6313
|
return (React__default.createElement(Form.Item, __assign({}, props, (type === 'date' ? getRangePickerConversion() : null)), renderItem()));
|
6314
6314
|
};
|
6315
6315
|
|
6316
|
-
var css_248z$X = ":root {\n --sense-manager-filter-icon-color: currentcolor;\n}\n.index-module_filter__-sqYm {\n position: relative;\n display: flex;\n place-items: center right;\n justify-content: center;\n width: 28px;\n height: 28px;\n cursor: pointer;\n border-radius: 4px;\n}\n.index-module_filter__-sqYm svg path {\n fill: var(--sense-manager-filter-icon-color);\n}\n.index-module_filter__-sqYm.index-module_active__ltQzZ::after {\n position: absolute;\n top: -4px;\n right: -4px;\n width: 8px;\n height: 8px;\n content: '';\n border-radius: 50%;\n}\n.index-module_content__d-57c {\n display: flex;\n flex-direction: column;\n width: 420px;\n padding: 8px 16px;\n}\n.index-module_content__d-57c .index-module_btns__hw4cX {\n display: flex;\n column-gap: 8px;\n justify-content: flex-end;\n}\n.index-module_content__d-57c .ant-form .ant-form-item {\n margin-bottom: 16px;\n}\n";
|
6316
|
+
var css_248z$X = ":root {\n --sense-manager-filter-icon-color: currentcolor;\n}\n.index-module_filter__-sqYm {\n position: relative;\n display: flex;\n place-items: center right;\n justify-content: center;\n width: 28px;\n height: 28px;\n cursor: pointer;\n border-radius: 4px;\n}\n.index-module_filter__-sqYm svg path {\n fill: var(--sense-manager-filter-icon-color);\n}\n.index-module_filter__-sqYm.index-module_active__ltQzZ::after {\n position: absolute;\n top: -4px;\n right: -4px;\n width: 8px;\n height: 8px;\n content: '';\n border-radius: 50%;\n}\n.index-module_content__d-57c {\n display: flex;\n flex-direction: column;\n width: 420px;\n max-height: 60vh;\n padding: 8px 16px;\n overflow: hidden auto;\n}\n.index-module_content__d-57c .index-module_btns__hw4cX {\n display: flex;\n column-gap: 8px;\n justify-content: flex-end;\n}\n.index-module_content__d-57c .ant-form .ant-form-item {\n margin-bottom: 16px;\n}\n";
|
6317
6317
|
var styles$X = {"filter":"index-module_filter__-sqYm","active":"index-module_active__ltQzZ","content":"index-module_content__d-57c","btns":"index-module_btns__hw4cX"};
|
6318
6318
|
styleInject(css_248z$X);
|
6319
6319
|
|
@@ -6417,7 +6417,7 @@ var Filter$1 = function (props) {
|
|
6417
6417
|
};
|
6418
6418
|
// 显示内容
|
6419
6419
|
var content = (React__default.createElement("div", { className: styles$X.content, style: { backgroundColor: "".concat(token.colorPrimaryBg) } },
|
6420
|
-
React__default.createElement(Form, { form: form, labelCol: { span:
|
6420
|
+
React__default.createElement(Form, { form: form, labelCol: { span: 6 }, wrapperCol: { span: 18 } }, renderFormItems()),
|
6421
6421
|
React__default.createElement("div", { className: styles$X.btns },
|
6422
6422
|
React__default.createElement(Button, { type: "default", onClick: resetFilter }, "\u91CD\u7F6E"),
|
6423
6423
|
React__default.createElement(Button, { type: "primary", onClick: handleFilter }, "\u67E5\u8BE2"))));
|
@@ -10163,7 +10163,7 @@ var Filter = function (props) {
|
|
10163
10163
|
};
|
10164
10164
|
// 显示内容
|
10165
10165
|
var content = (React__default.createElement("div", { className: styles$C.content },
|
10166
|
-
React__default.createElement(Form, { form: form, labelCol: { span:
|
10166
|
+
React__default.createElement(Form, { form: form, labelCol: { span: 6 }, wrapperCol: { span: 18 } }, renderFormItems()),
|
10167
10167
|
React__default.createElement("div", { className: styles$C.btns },
|
10168
10168
|
React__default.createElement(Button, { type: "default", onClick: resetFilter }, "\u91CD\u7F6E"),
|
10169
10169
|
React__default.createElement(Button, { type: "primary", onClick: handleFilter }, "\u67E5\u8BE2"))));
|
@@ -12909,9 +12909,12 @@ 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)
|
12912
|
+
if (!(point === null || point === void 0 ? void 0 : point.length)) {
|
12913
12913
|
return null;
|
12914
12914
|
}
|
12915
|
+
if (!km) {
|
12916
|
+
km = 1;
|
12917
|
+
}
|
12915
12918
|
var geoJson = turf.point(point);
|
12916
12919
|
var buffer = turf.buffer(geoJson, km, { units: 'kilometers' });
|
12917
12920
|
return turf.getGeom(buffer);
|
@@ -12919,9 +12922,12 @@ var getPointPolygonGeom = function (point, km) {
|
|
12919
12922
|
// 获取线周边区域
|
12920
12923
|
var getLinePolygonGeom = function (line, km) {
|
12921
12924
|
if (km === void 0) { km = 1; }
|
12922
|
-
if (!line
|
12925
|
+
if (!line) {
|
12923
12926
|
return null;
|
12924
12927
|
}
|
12928
|
+
if (!km) {
|
12929
|
+
km = 1;
|
12930
|
+
}
|
12925
12931
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
12926
12932
|
// @ts-expect-error
|
12927
12933
|
var buffer = turf.buffer({ type: 'Feature', geometry: wkt.parse(line) }, km, {
|
@@ -13908,7 +13914,7 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
13908
13914
|
// 显示高级搜索
|
13909
13915
|
var _e = useState(false), isShowAdvanced = _e[0], setIsShowAdvanced = _e[1];
|
13910
13916
|
// 透传参数
|
13911
|
-
var customFieldParamsRef = useRef();
|
13917
|
+
var customFieldParamsRef = useRef({});
|
13912
13918
|
// 触发搜索
|
13913
13919
|
var handleSearch = function () {
|
13914
13920
|
form.validateFields().then(function (values) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -13928,13 +13934,7 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
13928
13934
|
senseObjCodes.push(code);
|
13929
13935
|
}
|
13930
13936
|
});
|
13931
|
-
params = {
|
13932
|
-
viewCodes: [activeCategory, viewCode].filter(Boolean),
|
13933
|
-
keyword: keyword,
|
13934
|
-
senseObjCodes: senseObjCodes,
|
13935
|
-
tagCodes: tagCodes,
|
13936
|
-
customFieldParams: customFieldParamsRef.current,
|
13937
|
-
};
|
13937
|
+
params = __assign({ viewCodes: [activeCategory, viewCode].filter(Boolean), keyword: keyword, senseObjCodes: senseObjCodes, tagCodes: tagCodes }, customFieldParamsRef.current);
|
13938
13938
|
if (searchMode === SEARCH_MODE.TIME || searchMode === SEARCH_MODE.TIME_SPACE) {
|
13939
13939
|
timeRange = values.timeRange;
|
13940
13940
|
// 处理时间
|
@@ -14013,7 +14013,11 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
14013
14013
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
14014
14014
|
console.log('aiSearch', res);
|
14015
14015
|
// 透传参数
|
14016
|
-
customFieldParamsRef.current =
|
14016
|
+
customFieldParamsRef.current = {
|
14017
|
+
senseObjCodes: res.senseObjCodes || [],
|
14018
|
+
tagCodes: res.tagCodes || [],
|
14019
|
+
customFieldParams: res.customFieldParams,
|
14020
|
+
};
|
14017
14021
|
// 搜索参数
|
14018
14022
|
var params = {
|
14019
14023
|
keyword: res.keyword || '',
|
@@ -16525,11 +16529,11 @@ var CcosVideoPlayer = function (props) {
|
|
16525
16529
|
CcosVideoPlayer.settings = settings$1;
|
16526
16530
|
|
16527
16531
|
try {
|
16528
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.
|
16532
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.10","branch":"release_v2.1.0","buildDate":"2025-05-30 10:19:23"}');
|
16529
16533
|
}
|
16530
16534
|
catch (err) {
|
16531
16535
|
console.warn(err);
|
16532
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.
|
16536
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.10","branch":"release_v2.1.0","buildDate":"2025-05-30 10:19:23"}';
|
16533
16537
|
}
|
16534
16538
|
|
16535
16539
|
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 };
|