@icos-desktop/react-components 2.1.9 → 2.1.11
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 +18 -11
- 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"))));
|
@@ -9692,6 +9692,7 @@ styleInject(css_248z$F);
|
|
9692
9692
|
|
9693
9693
|
var Graph = function (_a) {
|
9694
9694
|
var data = _a.data;
|
9695
|
+
var token = theme.useToken().token;
|
9695
9696
|
// 画布容器
|
9696
9697
|
var graphEl = useRef();
|
9697
9698
|
// 画布对象
|
@@ -9748,7 +9749,8 @@ var Graph = function (_a) {
|
|
9748
9749
|
group.addShape('text', {
|
9749
9750
|
attrs: {
|
9750
9751
|
text: cfg.label,
|
9751
|
-
fill: '#fff',
|
9752
|
+
// fill: '#fff',
|
9753
|
+
fill: token.colorText,
|
9752
9754
|
textAlign: 'center',
|
9753
9755
|
fontSize: 10,
|
9754
9756
|
x: 0,
|
@@ -10163,7 +10165,7 @@ var Filter = function (props) {
|
|
10163
10165
|
};
|
10164
10166
|
// 显示内容
|
10165
10167
|
var content = (React__default.createElement("div", { className: styles$C.content },
|
10166
|
-
React__default.createElement(Form, { form: form, labelCol: { span:
|
10168
|
+
React__default.createElement(Form, { form: form, labelCol: { span: 6 }, wrapperCol: { span: 18 } }, renderFormItems()),
|
10167
10169
|
React__default.createElement("div", { className: styles$C.btns },
|
10168
10170
|
React__default.createElement(Button, { type: "default", onClick: resetFilter }, "\u91CD\u7F6E"),
|
10169
10171
|
React__default.createElement(Button, { type: "primary", onClick: handleFilter }, "\u67E5\u8BE2"))));
|
@@ -12909,9 +12911,12 @@ var convertPointToArray = function (coordinates) {
|
|
12909
12911
|
// 获取点周边区域
|
12910
12912
|
var getPointPolygonGeom = function (point, km) {
|
12911
12913
|
if (km === void 0) { km = 1; }
|
12912
|
-
if (!(point === null || point === void 0 ? void 0 : point.length)
|
12914
|
+
if (!(point === null || point === void 0 ? void 0 : point.length)) {
|
12913
12915
|
return null;
|
12914
12916
|
}
|
12917
|
+
if (!km) {
|
12918
|
+
km = 1;
|
12919
|
+
}
|
12915
12920
|
var geoJson = turf.point(point);
|
12916
12921
|
var buffer = turf.buffer(geoJson, km, { units: 'kilometers' });
|
12917
12922
|
return turf.getGeom(buffer);
|
@@ -12919,9 +12924,12 @@ var getPointPolygonGeom = function (point, km) {
|
|
12919
12924
|
// 获取线周边区域
|
12920
12925
|
var getLinePolygonGeom = function (line, km) {
|
12921
12926
|
if (km === void 0) { km = 1; }
|
12922
|
-
if (!line
|
12927
|
+
if (!line) {
|
12923
12928
|
return null;
|
12924
12929
|
}
|
12930
|
+
if (!km) {
|
12931
|
+
km = 1;
|
12932
|
+
}
|
12925
12933
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
12926
12934
|
// @ts-expect-error
|
12927
12935
|
var buffer = turf.buffer({ type: 'Feature', geometry: wkt.parse(line) }, km, {
|
@@ -13240,7 +13248,7 @@ var FORM_ITEM_BUTTON_RESET = filterFormItemList([
|
|
13240
13248
|
FORM_ITEMS.SEARCH_MODE,
|
13241
13249
|
]);
|
13242
13250
|
|
13243
|
-
var css_248z$a = ":root {\n --custom-tabs-item-color: #262626;\n --custom-tabs-item-active-color-type: #3768fa;\n}\n.index-module_container__WXMlD {\n flex-shrink: 0;\n width: 100%;\n height: 32px;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz {\n display: flex;\n justify-content: space-between;\n width: 100%;\n height: 100%;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #262626;\n cursor: pointer;\n user-select: none;\n opacity: 0.8;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz[data-dot='true']::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_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-1__NZdHF {\n display: flex;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-1__NZdHF svg path {\n fill: var(--custom-tabs-item-color);\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-1__NZdHF[data-active='true'] {\n
|
13251
|
+
var css_248z$a = ":root {\n --custom-tabs-item-color: #262626;\n --custom-tabs-item-active-color-type: #3768fa;\n}\n.index-module_container__WXMlD {\n flex-shrink: 0;\n width: 100%;\n height: 32px;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz {\n display: flex;\n justify-content: space-between;\n width: 100%;\n height: 100%;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #262626;\n cursor: pointer;\n user-select: none;\n opacity: 0.8;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz[data-dot='true']::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_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-1__NZdHF {\n display: flex;\n margin: 2px;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-1__NZdHF svg path {\n fill: var(--custom-tabs-item-color);\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-1__NZdHF[data-active='true'] {\n color: var(--custom-tabs-item-active-color);\n background: var(--custom-tabs-item-active-color-type);\n border-radius: 4px;\n opacity: 1;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-1__NZdHF[data-active='true'] svg path {\n fill: var(--custom-tabs-item-active-color);\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-2__cp51j {\n display: flex;\n margin: 2px;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-2__cp51j svg path {\n fill: var(--custom-tabs-item-color);\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-2__cp51j[data-active='true'] {\n color: var(--custom-tabs-item-active-color);\n background: var(--custom-tabs-item-active-color-type);\n border-radius: 4px;\n opacity: 1;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-2__cp51j[data-active='true'] svg path {\n fill: var(--custom-tabs-item-active-color);\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-3__LOGJI {\n border: 1px solid #00c2ff;\n border-image: linear-gradient(to bottom, rgba(0, 194, 255, 0.65), rgba(0, 194, 255, 0.325)) 1;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-3__LOGJI[data-active='true'] {\n border-image: linear-gradient(to bottom, #00c2ff, rgba(0, 194, 255, 0.5)) 1;\n opacity: 1;\n}\n.index-module_container__WXMlD .index-module_nav__XVUlz .index-module_tab__5nNzz.index-module_tab-block__XLMZi {\n flex: 1;\n}\n";
|
13244
13252
|
var styles$a = {"container":"index-module_container__WXMlD","nav":"index-module_nav__XVUlz","tab":"index-module_tab__5nNzz","tab-1":"index-module_tab-1__NZdHF","tab-2":"index-module_tab-2__cp51j","tab-3":"index-module_tab-3__LOGJI","tab-block":"index-module_tab-block__XLMZi"};
|
13245
13253
|
styleInject(css_248z$a);
|
13246
13254
|
|
@@ -13275,7 +13283,6 @@ var Tabs = function (props) {
|
|
13275
13283
|
_a));
|
13276
13284
|
useEffect(function () {
|
13277
13285
|
var _a;
|
13278
|
-
console.log('token', token);
|
13279
13286
|
document.documentElement.style.setProperty('--custom-tabs-item-color', (_a = token.Tabs) === null || _a === void 0 ? void 0 : _a.cardBg);
|
13280
13287
|
document.documentElement.style.setProperty('--custom-tabs-item-active-color-type', token.colorFill);
|
13281
13288
|
}, [token]);
|
@@ -14172,7 +14179,7 @@ var SenseSearch = forwardRef(function (props, ref) {
|
|
14172
14179
|
display: 'flex',
|
14173
14180
|
} },
|
14174
14181
|
React__default.createElement("img", { src: item.icon, alt: "", width: 16, height: 16, style: {
|
14175
|
-
filter: "".concat(token.colorText === 'rgba(255, 255, 255, 1)' ? 'brightness(100) contrast(100%)' : ''),
|
14182
|
+
filter: "".concat(token.colorText === 'rgba(255, 255, 255, 1)' ? 'brightness(100) contrast(100%)' : 'invert(1)'),
|
14176
14183
|
} })))),
|
14177
14184
|
}); });
|
14178
14185
|
setCategories(_categories);
|
@@ -16523,11 +16530,11 @@ var CcosVideoPlayer = function (props) {
|
|
16523
16530
|
CcosVideoPlayer.settings = settings$1;
|
16524
16531
|
|
16525
16532
|
try {
|
16526
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.
|
16533
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.11","branch":"release_v2.1.0","buildDate":"2025-06-04 16:40:52"}');
|
16527
16534
|
}
|
16528
16535
|
catch (err) {
|
16529
16536
|
console.warn(err);
|
16530
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.
|
16537
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.11","branch":"release_v2.1.0","buildDate":"2025-06-04 16:40:52"}';
|
16531
16538
|
}
|
16532
16539
|
|
16533
16540
|
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 };
|