@icos-desktop/react-components 2.3.1 → 3.0.1
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/es/components/BookDetail/BookDetail.js +2 -2
- package/dist/es/components/BookDetail/BookDetail.module.less.js +1 -1
- package/dist/es/components/BookDetail/ccos.js +1 -1
- package/dist/es/components/BookGroupImport/BookGroupImport.js +2 -2
- package/dist/es/components/BookGroupImport/BookGroupImport.types.d.ts +1 -1
- package/dist/es/components/BookGroupImport/components/Existing/MatchBook/TargetModal/index.js +2 -2
- package/dist/es/components/BookGroupImport/components/Existing/MatchBook/index.js +2 -2
- package/dist/es/components/BookGroupImport/components/Existing/MatchField/index.js +2 -2
- package/dist/es/components/BookGroupImport/components/Existing/SelectBook/SourceModal/SelectBookGroup/index.js +1 -1
- package/dist/es/components/BookGroupImport/components/Existing/SelectBook/SourceModal/SelectData/index.js +1 -1
- package/dist/es/components/BookGroupImport/components/Existing/SelectBook/SourceModal/index.js +2 -2
- package/dist/es/components/BookGroupImport/components/Existing/SelectBook/index.js +1 -1
- package/dist/es/components/BookGroupImport/components/Existing/index.js +2 -2
- package/dist/es/components/BookGroupImport/components/Upload/index.js +2 -2
- package/dist/es/components/BookGroupImport/settings.d.ts +2 -0
- package/dist/es/components/BookGroupTable/components/ContextMenu/index.js +1 -1
- package/dist/es/components/BookGroupTable/hooks/useBookGroupTable.js +1 -1
- package/dist/es/components/BookGroupTable/settings.d.ts +2 -0
- package/dist/es/components/BookImport/BookImport.js +2 -2
- package/dist/es/components/BookImport/settings.d.ts +2 -0
- package/dist/es/components/BookInfo/BookInfo.js +2 -2
- package/dist/es/components/BookInfo/components/AdminInfo/index.js +1 -1
- package/dist/es/components/BookInfo/components/BaseInfo/index.js +2 -2
- package/dist/es/components/BookInfo/settings.d.ts +2 -0
- package/dist/es/components/BookSelect/BookSelect.js +2 -2
- package/dist/es/components/BookSelect/BookSelect.types.d.ts +1 -1
- package/dist/es/components/BookSelect/settings.d.ts +2 -0
- package/dist/es/components/BookTable/BookTable.js +2 -2
- package/dist/es/components/BookTable/BookTable.types.d.ts +1 -1
- package/dist/es/components/BookTable/components/ExportModal/index.js +2 -2
- package/dist/es/components/BookTable/components/ExportModal/useExportModal.js +2 -2
- package/dist/es/components/BookTable/settings.d.ts +2 -0
- package/dist/es/components/EntityClassFilter/EntityClassFilter.js +3 -3
- package/dist/es/components/EntityClassFilter/settings.d.ts +2 -0
- package/dist/es/components/EntityClassFilter/utils/index.js +1 -1
- package/dist/es/components/EntityClassTreeSelect/EntityClassTreeSelect.js +3 -3
- package/dist/es/components/EntityClassTreeSelect/EntityClassTreeSelect.types.d.ts +1 -1
- package/dist/es/components/EntityClassTreeSelect/settings.d.ts +2 -0
- package/dist/es/components/ImportTable/ImportTable.js +2 -2
- package/dist/es/components/ImportTable/ccos.js +1 -1
- package/dist/es/components/ImportTable/components/ErrorMsgModal/index.js +2 -2
- package/dist/es/components/Modal/index.d.ts +1 -1
- package/dist/es/components/Modal/index.js +2 -2
- package/dist/es/components/OrgTreeSelect/OrgTreeSelect.js +3 -3
- package/dist/es/components/OrgTreeSelect/OrgTreeSelect.types.d.ts +1 -1
- package/dist/es/components/OrgTreeSelect/settings.d.ts +2 -0
- package/dist/es/components/PersonSelector/PersonSelector.js +2 -2
- package/dist/es/components/PersonSelector/settings.d.ts +2 -0
- package/dist/es/components/ProTable/ProTable.js +4 -4
- package/dist/es/components/ProTable/ProTable.types.d.ts +1 -1
- package/dist/es/components/ProTable/index.module.less.js +1 -1
- package/dist/es/components/RegionCascader/RegionCascader.js +3 -3
- package/dist/es/components/RegionCascader/RegionCascader.types.d.ts +1 -1
- package/dist/es/components/RegionCascader/settings.d.ts +2 -0
- package/dist/es/components/RegionTreeSelect/RegionTreeSelect.js +3 -3
- package/dist/es/components/RegionTreeSelect/RegionTreeSelect.types.d.ts +1 -1
- package/dist/es/components/RegionTreeSelect/settings.d.ts +2 -0
- package/dist/es/components/RelationGraph/RelationGraph.js +1 -1
- package/dist/es/components/RelationGraph/components/Graph/index.js +1 -1
- package/dist/es/components/RelationGraph/settings.d.ts +2 -0
- package/dist/es/components/SenseContentTable/SenseContentTable.js +2 -2
- package/dist/es/components/SenseContentTable/SenseContentTable.types.d.ts +1 -1
- package/dist/es/components/SenseContentTable/ccos.js +1 -1
- package/dist/es/components/SenseContentTable/components/ExportModal/index.js +2 -2
- package/dist/es/components/SenseContentTable/components/ExportModal/useExportModal.js +2 -2
- package/dist/es/components/SenseContentTable/components/Filter/index.js +2 -2
- package/dist/es/components/SenseCreate/SenseCreate.js +2 -2
- package/dist/es/components/SenseCreate/ccos.js +1 -1
- package/dist/es/components/SenseCreate/components/CreateBook/index.js +1 -1
- package/dist/es/components/SenseCreate/components/CreateSense/index.js +1 -1
- package/dist/es/components/SenseCreate/components/Footer/index.js +2 -2
- package/dist/es/components/SenseCreate/components/SelectBook/index.js +1 -1
- package/dist/es/components/SenseCreate/components/SelectTemplate/Item/index.js +1 -1
- package/dist/es/components/SenseCreate/components/SelectTemplate/index.js +2 -2
- package/dist/es/components/SenseDetail/SenseDetail.js +1 -1
- package/dist/es/components/SenseDetail/ccos.js +1 -1
- package/dist/es/components/SenseDetail/components/Base/index.js +2 -2
- package/dist/es/components/SenseDetail/components/BookList/index.js +2 -2
- package/dist/es/components/SenseDetail/components/Content/components/Card/index.js +1 -1
- package/dist/es/components/SenseDetail/components/Content/components/List/Item/index.js +1 -1
- package/dist/es/components/SenseDetail/components/Content/components/List/index.js +1 -1
- package/dist/es/components/SenseDetail/components/Content/index.js +1 -1
- package/dist/es/components/SenseDetail/components/Relation/index.js +1 -1
- package/dist/es/components/SenseEdit/SenseEdit.js +2 -2
- package/dist/es/components/SenseEdit/ccos.js +1 -1
- package/dist/es/components/SenseForm/SenseForm.js +1 -1
- package/dist/es/components/SenseForm/settings.d.ts +2 -0
- package/dist/es/components/SenseFullTable/SenseFullTable.js +2 -2
- package/dist/es/components/SenseFullTable/SenseFullTable.types.d.ts +1 -1
- package/dist/es/components/SenseFullTable/ccos.js +1 -1
- package/dist/es/components/SenseFullTable/components/Catalog/index.js +45 -33
- package/dist/es/components/SenseFullTable/components/Filter/index.js +2 -2
- package/dist/es/components/SenseFullTable/components/FormItem/index.js +2 -2
- package/dist/es/components/SenseFullTable/components/SideBar/index.js +3 -3
- package/dist/es/components/SenseFullTable/components/SideBar/index.module.less.js +1 -1
- package/dist/es/components/SenseInfo/SenseInfo.js +1 -1
- package/dist/es/components/SenseInfo/components/FileView/index.js +1 -1
- package/dist/es/components/SenseInfo/components/ImageView/index.js +1 -1
- package/dist/es/components/SenseInfo/components/Render/index.js +1 -1
- package/dist/es/components/SenseInfo/settings.d.ts +2 -0
- package/dist/es/components/SenseManager/SenseManager.js +2 -2
- package/dist/es/components/SenseManager/ccos.js +1 -1
- package/dist/es/components/SenseSearch/SenseSearch.js +8 -8
- package/dist/es/components/SenseSearch/SenseSearch.module.less.js +1 -1
- package/dist/es/components/SenseSearch/ccos.js +1 -1
- package/dist/es/components/SenseSearch/components/AdvancedSearch/KnnItems/index.js +2 -2
- package/dist/es/components/SenseSearch/components/AdvancedSearch/index.js +5 -9
- package/dist/es/components/SenseSearch/components/Tabs/index.js +1 -1
- package/dist/es/components/SenseTable/SenseTable.js +2 -2
- package/dist/es/components/SenseTable/SenseTable.types.d.ts +1 -1
- package/dist/es/components/SenseTable/components/ExportModal/index.js +2 -2
- package/dist/es/components/SenseTable/components/ExportModal/useExportModal.js +2 -2
- package/dist/es/components/SenseTable/components/TagsModal/index.js +1 -1
- package/dist/es/components/SenseTable/components/widgets/ImageView/index.js +1 -1
- package/dist/es/components/SenseTable/settings.d.ts +2 -0
- package/dist/es/components/SenseTree/SenseTree.js +11 -9
- package/dist/es/components/SenseTree/ccos.js +1 -1
- package/dist/es/components/SenseTree/components/ExportModal/index.js +2 -2
- package/dist/es/components/SenseView/SenseView.js +1 -1
- package/dist/es/components/SenseView/ccos.js +1 -1
- package/dist/es/components/TagConfig/TagConfig.js +1 -1
- package/dist/es/components/TagConfig/ccos.js +1 -1
- package/dist/es/components/TagConfig/components/SenseList/index.js +2 -2
- package/dist/es/components/TagConfig/components/TagList/index.js +2 -2
- package/dist/es/components/TagTreeSelect/TagTreeSelect.js +3 -3
- package/dist/es/components/TagTreeSelect/TagTreeSelect.types.d.ts +1 -1
- package/dist/es/components/TagTreeSelect/settings.d.ts +2 -0
- package/dist/es/components/VideoControl/VideoControl.js +2 -2
- package/dist/es/components/VideoControl/ccos.js +1 -1
- package/dist/es/components/VideoPlayer/VideoPlayer.js +1 -1
- package/dist/es/components/VideoPlayer/ccos.js +1 -1
- package/dist/es/components/VideoPlayer/components/Control/index.js +2 -2
- package/dist/es/hooks/useEntityClass/index.js +1 -1
- package/dist/es/hooks/useKsCode/index.js +1 -1
- package/dist/es/hooks/useMeeting/index.js +2 -2
- package/dist/es/hooks/useRelationList/RelationList/index.js +2 -2
- package/dist/es/index.js +2 -2
- package/dist/es/internal/components/Setting/components/drag-box.d.ts +8 -0
- package/dist/es/internal/components/Setting/components/file-tree-modal.d.ts +11 -0
- package/dist/es/internal/components/Setting/components/index.d.ts +3 -0
- package/dist/es/internal/components/Setting/components/input-kv.d.ts +2 -0
- package/dist/es/internal/components/Setting/context.d.ts +15 -0
- package/dist/es/internal/components/Setting/form-item.d.ts +98 -0
- package/dist/es/internal/components/Setting/form-model.d.ts +79 -0
- package/dist/es/internal/components/Setting/form-object.d.ts +9 -0
- package/dist/es/internal/components/Setting/form-ui.d.ts +68 -0
- package/dist/es/internal/components/Setting/form.d.ts +61 -0
- package/dist/es/internal/components/Setting/helpers.d.ts +24 -0
- package/dist/es/internal/components/Setting/hooks/use-boolean.d.ts +7 -0
- package/dist/es/internal/components/Setting/hooks/use-callback-ref.d.ts +2 -0
- package/dist/es/internal/components/Setting/hooks/use-controllable.d.ts +9 -0
- package/dist/es/internal/components/Setting/hooks/use-search-tree.d.ts +6 -0
- package/dist/es/internal/components/Setting/index.d.ts +18 -0
- package/dist/es/internal/components/Setting/setters/bool-setter.d.ts +3 -0
- package/dist/es/internal/components/Setting/setters/code-setter.d.ts +3 -0
- package/dist/es/internal/components/Setting/setters/id-setter.d.ts +3 -0
- package/dist/es/internal/components/Setting/setters/image-setter.d.ts +3 -0
- package/dist/es/internal/components/Setting/setters/index.d.ts +7 -0
- package/dist/es/internal/components/Setting/setters/number-setter.d.ts +4 -0
- package/dist/es/internal/components/Setting/setters/register.d.ts +4 -0
- package/dist/es/internal/components/Setting/setters/text-setter.d.ts +4 -0
- package/dist/es/internal/components/Setting/types.d.ts +45 -0
- package/dist/es/internal/components/Setting/ui/action-select.d.ts +34 -0
- package/dist/es/internal/components/Setting/ui/action.d.ts +40 -0
- package/dist/es/internal/components/Setting/ui/code-editor.d.ts +10 -0
- package/dist/es/internal/components/Setting/ui/collapse-panel.d.ts +35 -0
- package/dist/es/internal/components/Setting/ui/error-boundary.d.ts +16 -0
- package/dist/es/internal/components/Setting/ui/iconfont.d.ts +9 -0
- package/dist/es/internal/components/Setting/ui/icons/code-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/icons/create-icon.d.ts +6 -0
- package/dist/es/internal/components/Setting/ui/icons/dual-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/icons/index.d.ts +13 -0
- package/dist/es/internal/components/Setting/ui/icons/line-dashed-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/icons/line-solid-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/icons/open-panel-filled-left-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/icons/open-panel-filled-right-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/icons/open-panel-left-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/icons/open-panel-right-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/icons/package-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/icons/pop-out-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/icons/redo-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/icons/undo-outlined.d.ts +5 -0
- package/dist/es/internal/components/Setting/ui/index.d.ts +9 -0
- package/dist/es/internal/components/Setting/ui/input-code.d.ts +39 -0
- package/dist/es/internal/components/Setting/ui/search.d.ts +11 -0
- package/dist/es/internal/components/Setting/ui/tabs.d.ts +7 -0
- package/dist/es/internal/components/Setting/ui/toggle-button.d.ts +53 -0
- package/dist/es/services/entity.js +1 -1
- package/dist/es/services/entityManager.js +1 -1
- package/dist/es/services/gis.js +1 -1
- package/dist/es/services/import.js +2 -2
- package/dist/es/services/org.js +1 -1
- package/dist/es/services/senseForm.js +1 -1
- package/dist/es/services/senseManager.js +1 -1
- package/dist/es/services/senseSearch.js +1 -1
- package/dist/es/services/tag.js +1 -1
- package/dist/es/services/user.js +1 -1
- package/dist/es/services/view.js +1 -1
- package/dist/es/utils/config.js +1 -1
- package/dist/es/utils/contexify/index.js +1 -1
- package/dist/es/utils/download.js +1 -1
- package/dist/es/utils/map.d.ts +2 -3
- package/dist/es/utils/map.js +1 -6
- package/dist/es/utils/request.js +2 -2
- package/dist/es/utils/tree.js +1 -1
- package/dist/icos-desktop.js +80 -75
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +157 -61
- package/dist/es/components/BookDetail/BookDetail.stories.d.ts +0 -6
- package/dist/es/components/BookGroupImport/BookGroupImport.stories.d.ts +0 -6
- package/dist/es/components/BookGroupTable/BookGroupTable.stories.d.ts +0 -6
- package/dist/es/components/BookImport/BookImport.stories.d.ts +0 -7
- package/dist/es/components/BookInfo/BookInfo.stories.d.ts +0 -6
- package/dist/es/components/BookSelect/BookSelect.stories.d.ts +0 -6
- package/dist/es/components/BookTable/BookTable.stories.d.ts +0 -6
- package/dist/es/components/EntityClassFilter/EntityClassFilter.stories.d.ts +0 -6
- package/dist/es/components/EntityClassTreeSelect/EntityClassTreeSelect.stories.d.ts +0 -6
- package/dist/es/components/ImportTable/ImportTable.stories.d.ts +0 -6
- package/dist/es/components/OrgTreeSelect/OrgTreeSelect.stories.d.ts +0 -7
- package/dist/es/components/PersonSelector/PersonSelector.stories.d.ts +0 -7
- package/dist/es/components/ProTable/ProTable.stories.d.ts +0 -7
- package/dist/es/components/ProTree/ProTree.stories.d.ts +0 -6
- package/dist/es/components/RegionCascader/RegionCascader.stories.d.ts +0 -7
- package/dist/es/components/RegionTreeSelect/RegionTreeSelect.stories.d.ts +0 -7
- package/dist/es/components/RelationGraph/RelationGraph.stories.d.ts +0 -6
- package/dist/es/components/SenseContentTable/SenseContentTable.stories.d.ts +0 -7
- package/dist/es/components/SenseCreate/SenseCreate.stories.d.ts +0 -8
- package/dist/es/components/SenseDetail/SenseDetail.stories.d.ts +0 -8
- package/dist/es/components/SenseEdit/SenseEdit.stories.d.ts +0 -8
- package/dist/es/components/SenseForm/SenseForm.stories.d.ts +0 -6
- package/dist/es/components/SenseFullTable/SenseFullTable.stories.d.ts +0 -10
- package/dist/es/components/SenseInfo/SenseInfo.stories.d.ts +0 -6
- package/dist/es/components/SenseManager/SenseManager.stories.d.ts +0 -7
- package/dist/es/components/SenseSearch/SenseSearch.stories.d.ts +0 -6
- package/dist/es/components/SenseTable/SenseTable.stories.d.ts +0 -6
- package/dist/es/components/SenseTree/SenseTree.stories.d.ts +0 -9
- package/dist/es/components/SenseView/SenseView.stories.d.ts +0 -8
- package/dist/es/components/TagConfig/TagConfig.stories.d.ts +0 -7
- package/dist/es/components/TagTreeSelect/TagTreeSelect.stories.d.ts +0 -7
- package/dist/es/components/VideoControl/VideoControl.stories.d.ts +0 -6
- package/dist/es/components/VideoPlayer/VideoPlayer.stories.d.ts +0 -8
- /package/dist/es/node_modules/.pnpm/{@rollup_plugin-typescript@11.1.6_rollup@4.41.1_tslib@2.8.1_typescript@5.8.3 → @rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3}/node_modules/tslib/tslib.es6.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __awaiter, __generator, __spreadArray, __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
2
|
-
import { DatePicker, Form, Tabs, Select, InputNumber, TreeSelect, Input, Button, Divider } from '
|
|
1
|
+
import { __awaiter, __generator, __spreadArray, __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { DatePicker, Form, Tabs, Select, InputNumber, TreeSelect, Input, Button, Divider } from 'antd';
|
|
3
3
|
import { produce } from 'immer';
|
|
4
4
|
import { debounce } from 'lodash';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
@@ -411,14 +411,10 @@ var AdvancedSearch = function (_a) {
|
|
|
411
411
|
curLines = __spreadArray(__spreadArray([], (lines || []).map(function (item) { return ({
|
|
412
412
|
id: "line__".concat(item.id),
|
|
413
413
|
data: item.data,
|
|
414
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
415
|
-
// @ts-expect-error
|
|
416
414
|
polygon: lineRange ? wkt.stringify(getLinePolygonGeom(item.data, lineRange)) : null,
|
|
417
415
|
}); }), true), (selectLines || []).map(function (item) { return ({
|
|
418
416
|
id: "selectLine__".concat(item),
|
|
419
417
|
data: item,
|
|
420
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
421
|
-
// @ts-expect-error
|
|
422
418
|
polygon: lineRange ? wkt.stringify(getLinePolygonGeom(item, lineRange)) : null,
|
|
423
419
|
}); }), true);
|
|
424
420
|
curPolygons = __spreadArray(__spreadArray([], (polygons || []).map(function (item) { return ({
|
|
@@ -491,7 +487,7 @@ var AdvancedSearch = function (_a) {
|
|
|
491
487
|
React__default.createElement(Tabs$1, { items: spaceModeItems, type: 2, block: true })),
|
|
492
488
|
React__default.createElement(Form.Item, { label: "\u4E2D\u5FC3\u70B9\u4F4D", className: styles['form-item-draw'], hidden: !showSpacePoint },
|
|
493
489
|
React__default.createElement(Form.Item, { name: FORM_ITEMS.SELECT_POINTS, noStyle: true },
|
|
494
|
-
React__default.createElement(Select, { placeholder: "\u8BF7\u9009\u62E9\u4E2D\u5FC3\u70B9\u4F4D", options: pointOptions, allowClear: true, showSearch: true, filterOption: false, autoClearSearchValue: false, onSearch: handleSearchPoint,
|
|
490
|
+
React__default.createElement(Select, { placeholder: "\u8BF7\u9009\u62E9\u4E2D\u5FC3\u70B9\u4F4D", options: pointOptions, allowClear: true, showSearch: true, filterOption: false, autoClearSearchValue: false, onSearch: handleSearchPoint, onOpenChange: handleVisiblePoint, loading: pointLoading, mode: "multiple", maxTagCount: "responsive", maxCount: 100 })),
|
|
495
491
|
React__default.createElement(Form.Item, { name: FORM_ITEMS.POINTS, noStyle: true },
|
|
496
492
|
React__default.createElement("div", { "data-active": drawMode === DRAW_MODE.POINT, className: styles['form-item-draw-button'], onClick: function () { return handleDraw(DRAW_MODE.POINT); } },
|
|
497
493
|
React__default.createElement(SvgPoint, null)))),
|
|
@@ -501,7 +497,7 @@ var AdvancedSearch = function (_a) {
|
|
|
501
497
|
React__default.createElement("div", { className: styles['form-item-range-unit'] }, "KM")),
|
|
502
498
|
React__default.createElement(Form.Item, { label: "\u8DEF\u7EBF\u9009\u62E9", className: styles['form-item-draw'], hidden: !showSpaceLine },
|
|
503
499
|
React__default.createElement(Form.Item, { name: FORM_ITEMS.SELECT_LINES, noStyle: true },
|
|
504
|
-
React__default.createElement(Select, { placeholder: "\u8BF7\u9009\u62E9\u8DEF\u7EBF", options: lineOptions, allowClear: true, showSearch: true, filterOption: false, autoClearSearchValue: false, onSearch: handleSearchLine,
|
|
500
|
+
React__default.createElement(Select, { placeholder: "\u8BF7\u9009\u62E9\u8DEF\u7EBF", options: lineOptions, allowClear: true, showSearch: true, filterOption: false, autoClearSearchValue: false, onSearch: handleSearchLine, onOpenChange: handleVisibleLine, loading: lineLoading, mode: "multiple", maxTagCount: "responsive", maxCount: 100 })),
|
|
505
501
|
React__default.createElement(Form.Item, { name: FORM_ITEMS.LINES, noStyle: true },
|
|
506
502
|
React__default.createElement("div", { "data-active": drawMode === DRAW_MODE.LINE, className: styles['form-item-draw-button'], onClick: function () { return handleDraw(DRAW_MODE.LINE); } },
|
|
507
503
|
React__default.createElement(SvgLine, null)))),
|
|
@@ -511,7 +507,7 @@ var AdvancedSearch = function (_a) {
|
|
|
511
507
|
React__default.createElement("div", { className: styles['form-item-range-unit'] }, "KM")),
|
|
512
508
|
React__default.createElement(Form.Item, { label: "\u533A\u57DF\u9009\u62E9", className: styles['form-item-draw'], hidden: !showSpacePolygon },
|
|
513
509
|
React__default.createElement(Form.Item, { name: FORM_ITEMS.SELECT_POLYGONS, noStyle: true },
|
|
514
|
-
React__default.createElement(Select, { placeholder: "\u8BF7\u9009\u62E9\u533A\u57DF", options: polygonOptions, allowClear: true, showSearch: true, filterOption: false, autoClearSearchValue: false, onSearch: handleSearchPolygon,
|
|
510
|
+
React__default.createElement(Select, { placeholder: "\u8BF7\u9009\u62E9\u533A\u57DF", options: polygonOptions, allowClear: true, showSearch: true, filterOption: false, autoClearSearchValue: false, onSearch: handleSearchPolygon, onOpenChange: handleVisiblePolygon, loading: polygonLoading, mode: "multiple", maxTagCount: "responsive", maxCount: 100 })),
|
|
515
511
|
React__default.createElement(Form.Item, { name: FORM_ITEMS.POLYGONS, noStyle: true },
|
|
516
512
|
React__default.createElement("div", { "data-active": drawMode === DRAW_MODE.CIRCLE, className: styles['form-item-draw-button'], onClick: function () { return handleDraw(DRAW_MODE.CIRCLE); } },
|
|
517
513
|
React__default.createElement(SvgCircle, null)),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __rest, __assign, __awaiter, __generator, __spreadArray } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __rest, __assign, __awaiter, __generator, __spreadArray } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { ExclamationCircleOutlined, CloseOutlined } from '@ant-design/icons';
|
|
3
|
-
import { message, Modal, Space, Tooltip } from '@xirang/design-antd';
|
|
4
3
|
import { useRequest } from 'ahooks';
|
|
4
|
+
import { message, Modal, Space, Tooltip } from 'antd';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
7
|
import RcOverflow from 'rc-overflow';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __awaiter, __generator, __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
2
|
-
import { Form, Select, Tree } from '
|
|
1
|
+
import { __awaiter, __generator, __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { Form, Select, Tree } from 'antd';
|
|
3
3
|
import { produce } from 'immer';
|
|
4
4
|
import React__default, { useState, useEffect } from 'react';
|
|
5
5
|
import Modal from '../../../Modal/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __awaiter, __generator, __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
2
|
-
import { Modal } from '
|
|
1
|
+
import { __awaiter, __generator, __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { Modal } from 'antd';
|
|
3
3
|
import React__default, { useState, useRef } from 'react';
|
|
4
4
|
import { getSenseExportConfig, exportSenseExcel } from '../../../../services/senseManager.js';
|
|
5
5
|
import { downloadFile } from '../../../../utils/download.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator, __spreadArray } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __assign, __awaiter, __generator, __spreadArray } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { LoadingOutlined } from '@ant-design/icons';
|
|
3
3
|
import * as turf from '@turf/turf';
|
|
4
|
-
import { theme, message, Modal, Spin, Tree, Tooltip, Popover } from '@xirang/design-antd';
|
|
5
4
|
import { useDeepCompareEffect, useDebounceEffect } from 'ahooks';
|
|
5
|
+
import { theme, message, Modal, Spin, Tree, Tooltip, Popover } from 'antd';
|
|
6
6
|
import { produce } from 'immer';
|
|
7
7
|
import React__default, { useState, useEffect } from 'react';
|
|
8
8
|
import { useContextMenu } from 'react-contexify';
|
|
@@ -174,18 +174,19 @@ var SenseTree = function (props) {
|
|
|
174
174
|
}); };
|
|
175
175
|
// 获取台账列表
|
|
176
176
|
var getBookList = function (node) { return __awaiter(void 0, void 0, void 0, function () {
|
|
177
|
-
var isMore, params, res, list, next, item, moreChecked;
|
|
177
|
+
var isMore, parentKey, params, res, list, next, item, moreChecked;
|
|
178
178
|
return __generator(this, function (_a) {
|
|
179
179
|
switch (_a.label) {
|
|
180
180
|
case 0:
|
|
181
181
|
isMore = node.type === 'more';
|
|
182
|
+
parentKey = isMore ? node.parentKey : node.key;
|
|
182
183
|
params = __assign(__assign({}, searchParams), { viewCodes: viewCodes, isMore: isMore });
|
|
183
184
|
// 区域
|
|
184
185
|
if (node.type === 'senseRegion') {
|
|
185
|
-
params.regionId =
|
|
186
|
+
params.regionId = parentKey;
|
|
186
187
|
}
|
|
187
188
|
else {
|
|
188
|
-
params.senseObjCodes = [
|
|
189
|
+
params.senseObjCodes = [parentKey];
|
|
189
190
|
}
|
|
190
191
|
// 加载更多
|
|
191
192
|
if (isMore) {
|
|
@@ -195,7 +196,7 @@ var SenseTree = function (props) {
|
|
|
195
196
|
}));
|
|
196
197
|
params.excludeBookIds = (function () {
|
|
197
198
|
var _a;
|
|
198
|
-
var data = (_a = findNodeByKey(treeData,
|
|
199
|
+
var data = (_a = findNodeByKey(treeData, parentKey)) === null || _a === void 0 ? void 0 : _a.children;
|
|
199
200
|
if (data) {
|
|
200
201
|
return data.map(function (item) { return item.key; });
|
|
201
202
|
}
|
|
@@ -220,7 +221,7 @@ var SenseTree = function (props) {
|
|
|
220
221
|
case 3:
|
|
221
222
|
setTreeData(produce(function (draftState) {
|
|
222
223
|
var _a;
|
|
223
|
-
var cur = findNodeByKey(draftState,
|
|
224
|
+
var cur = findNodeByKey(draftState, parentKey);
|
|
224
225
|
if (cur) {
|
|
225
226
|
var data = [];
|
|
226
227
|
if (cur.extraChildren) {
|
|
@@ -238,6 +239,7 @@ var SenseTree = function (props) {
|
|
|
238
239
|
dataRef: item,
|
|
239
240
|
}); }));
|
|
240
241
|
if (isMore) {
|
|
242
|
+
console.log(JSON.parse(JSON.stringify(cur)));
|
|
241
243
|
// 删除加载更多节点
|
|
242
244
|
cur.children.pop();
|
|
243
245
|
(_a = cur.children).push.apply(_a, data);
|
|
@@ -248,8 +250,8 @@ var SenseTree = function (props) {
|
|
|
248
250
|
if (next) {
|
|
249
251
|
// 加载更多
|
|
250
252
|
cur.children.push({
|
|
251
|
-
key: "more__".concat(
|
|
252
|
-
parentKey:
|
|
253
|
+
key: "more__".concat(parentKey, "__").concat(Date.now()),
|
|
254
|
+
parentKey: parentKey,
|
|
253
255
|
ksCode: node.ksCode,
|
|
254
256
|
title: '加载更多',
|
|
255
257
|
loading: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import SenseTree from './SenseTree.js';
|
|
4
4
|
import settings from './settings.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __awaiter, __generator, __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
2
|
-
import { Form, Modal, Select, Tree } from '
|
|
1
|
+
import { __awaiter, __generator, __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { Form, Modal, Select, Tree } from 'antd';
|
|
3
3
|
import { produce } from 'immer';
|
|
4
4
|
import React__default, { useState, useEffect } from 'react';
|
|
5
5
|
import styles from './index.module.less.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { pick } from 'lodash';
|
|
3
3
|
import React__default, { forwardRef, useRef, useState, useImperativeHandle } from 'react';
|
|
4
4
|
import SenseSearch from '../SenseSearch/SenseSearch.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import SenseView from './SenseView.js';
|
|
4
4
|
import settings from './settings.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import settings from './settings.js';
|
|
4
4
|
import TagConfig from './TagConfig.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __awaiter, __generator } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
2
|
-
import { Input, message, Modal, Select } from '@xirang/design-antd';
|
|
1
|
+
import { __awaiter, __generator } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
3
2
|
import { useRequest } from 'ahooks';
|
|
3
|
+
import { Input, message, Modal, Select } from 'antd';
|
|
4
4
|
import React__default, { useState, useRef } from 'react';
|
|
5
5
|
import { useContextMenu } from 'react-contexify';
|
|
6
6
|
import SenseTable from '../../../SenseTable/SenseTable.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __awaiter, __generator, __spreadArray, __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
2
|
-
import { Input, Tree, Empty } from '@xirang/design-antd';
|
|
1
|
+
import { __awaiter, __generator, __spreadArray, __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
3
2
|
import { useRequest } from 'ahooks';
|
|
3
|
+
import { Input, Tree, Empty } from 'antd';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import React__default, { useState, useMemo } from 'react';
|
|
6
6
|
import { getTagTree } from '../../../../services/tag.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __awaiter, __generator, __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
2
|
-
import { TreeSelect } from '@xirang/design-antd';
|
|
1
|
+
import { __awaiter, __generator, __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
3
2
|
import { useRequest } from 'ahooks';
|
|
3
|
+
import { TreeSelect } from 'antd';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { getTagTree } from '../../services/tag.js';
|
|
6
6
|
import styles from './TagTreeSelect.module.less.js';
|
|
@@ -17,7 +17,7 @@ var TagTreeSelect = function (props) {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
}); }).data;
|
|
20
|
-
return (React__default.createElement(TreeSelect, __assign({ placeholder: "\u8BF7\u9009\u62E9\u6807\u7B7E",
|
|
20
|
+
return (React__default.createElement(TreeSelect, __assign({ placeholder: "\u8BF7\u9009\u62E9\u6807\u7B7E", classNames: { popup: { root: styles.container } }, treeData: data, fieldNames: { label: 'name', value: 'code' }, treeDataSimpleMode: { id: 'code', pId: 'parentCode' }, filterTreeNode: function (input, node) { return node.name.includes(input); }, showSearch: true, allowClear: true }, props)));
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export { TagTreeSelect as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TreeSelectProps } from '
|
|
1
|
+
import { TreeSelectProps } from 'antd';
|
|
2
2
|
export type TagTreeSelectProps = TreeSelectProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __awaiter, __generator } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
2
|
-
import { message, Slider } from '
|
|
1
|
+
import { __awaiter, __generator } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { message, Slider } from 'antd';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import React__default, { useState, useEffect } from 'react';
|
|
5
5
|
import { cameraPtzControl } from '../../services/senseForm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import settings from './settings.js';
|
|
4
4
|
import VideoControl from './VideoControl.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __awaiter, __generator, __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __awaiter, __generator, __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { FullscreenOutlined } from '@ant-design/icons';
|
|
3
3
|
import { useRequest } from 'ahooks';
|
|
4
4
|
import React__default, { useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __assign } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import settings from './settings.js';
|
|
4
4
|
import VideoPlayer from './VideoPlayer.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
2
|
-
import { Modal } from '
|
|
1
|
+
import { __assign } from '../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { Modal } from 'antd';
|
|
3
3
|
import { omit } from 'lodash';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import VideoControl from '../../../VideoControl/VideoControl.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __awaiter, __generator } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __awaiter, __generator } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { useMount } from 'ahooks';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { getEntityClassTree } from '../../services/entity.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __awaiter, __generator } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __awaiter, __generator } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { useMount } from 'ahooks';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { getCategoryKsCode } from '../../services/entity.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __awaiter, __generator } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
2
|
-
import { Modal } from '
|
|
1
|
+
import { __awaiter, __generator } from '../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { Modal } from 'antd';
|
|
3
3
|
import { getMeetingUrl } from '../../services/senseForm.js';
|
|
4
4
|
|
|
5
5
|
var useMeeting = function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __awaiter, __generator, __spreadArray } from '../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.
|
|
1
|
+
import { __awaiter, __generator, __spreadArray } from '../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.53.3_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { LoadingOutlined } from '@ant-design/icons';
|
|
3
|
-
import { Modal } from '
|
|
3
|
+
import { Modal } from 'antd';
|
|
4
4
|
import React__default, { useState, useEffect } from 'react';
|
|
5
5
|
import { getRelationNodeList } from '../../../services/senseForm.js';
|
|
6
6
|
import SvgDown from './assets/down.svg.js';
|
package/dist/es/index.js
CHANGED
|
@@ -48,9 +48,9 @@ export { default as CcosVideoPlayer } from './components/VideoPlayer/ccos.js';
|
|
|
48
48
|
export { setCconfig as config } from './utils/config.js';
|
|
49
49
|
|
|
50
50
|
try {
|
|
51
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"
|
|
51
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"3.0.1","branch":"release_v3.0.0","buildDate":"2025-12-04 11:21:58"}');
|
|
52
52
|
}
|
|
53
53
|
catch (err) {
|
|
54
54
|
console.warn(err);
|
|
55
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"
|
|
55
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"3.0.1","branch":"release_v3.0.0","buildDate":"2025-12-04 11:21:58"}';
|
|
56
56
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type HTMLCoralProps } from 'coral-system';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type DragBoxProps = {
|
|
4
|
+
index?: number;
|
|
5
|
+
onMove?: (idx: number, index: number) => void;
|
|
6
|
+
} & HTMLCoralProps<'div'>;
|
|
7
|
+
export declare const DragBox: ({ children, index, onMove, ...rest }: DragBoxProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ModalProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { IStaticTreeNode } from '../types';
|
|
4
|
+
interface FileTreeModalProps {
|
|
5
|
+
trigger?: React.ReactElement;
|
|
6
|
+
title?: ModalProps['title'];
|
|
7
|
+
dataSource: IStaticTreeNode<any>;
|
|
8
|
+
onSelect: (url: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function FileTreeModal({ trigger, title, onSelect, dataSource, ...rest }: FileTreeModalProps): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IFormModel } from './form-model';
|
|
2
|
+
export declare const FormModelProvider: import("react").Provider<IFormModel>;
|
|
3
|
+
export declare const useFormModel: () => IFormModel;
|
|
4
|
+
export interface FormVariableContextType {
|
|
5
|
+
/**
|
|
6
|
+
* 是否允许表单项切换到表达式设置器
|
|
7
|
+
*/
|
|
8
|
+
disableSwitchExpressionSetter?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 是否展示表单项的副标题
|
|
11
|
+
*/
|
|
12
|
+
showItemSubtitle?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const FormVariableProvider: import("react").Provider<FormVariableContextType>;
|
|
15
|
+
export declare const useFormVariable: () => FormVariableContextType;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { InputProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ComponentPropValidate, IComponentProp, ISetterOnChangeCallbackDetail } from './types';
|
|
4
|
+
export interface FormItemProps extends IComponentProp {
|
|
5
|
+
/**
|
|
6
|
+
* 无样式模式,仅返回 setter 组件
|
|
7
|
+
*/
|
|
8
|
+
noStyle?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 表单项右侧自定义区域
|
|
11
|
+
*/
|
|
12
|
+
extra?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* 表单项底部自定义区域
|
|
15
|
+
*/
|
|
16
|
+
footer?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export interface FormItemComponentProps<T = any> {
|
|
19
|
+
value?: T;
|
|
20
|
+
onChange: (value: T, detail?: ISetterOnChangeCallbackDetail) => void;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
status?: InputProps['status'];
|
|
24
|
+
[prop: string]: any;
|
|
25
|
+
}
|
|
26
|
+
export interface IFormItemCreateOptions {
|
|
27
|
+
/**
|
|
28
|
+
* 设置器调用名
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* 设置器别名列表,支持多个名字
|
|
33
|
+
*/
|
|
34
|
+
alias?: string[];
|
|
35
|
+
/**
|
|
36
|
+
* 设置器类型,value类设置器支持切换到codeSetter,默认为 value setter
|
|
37
|
+
*/
|
|
38
|
+
type?: 'code' | 'value';
|
|
39
|
+
/**
|
|
40
|
+
* 渲染设置器使用的组件
|
|
41
|
+
*/
|
|
42
|
+
component?: React.ComponentType<FormItemComponentProps>;
|
|
43
|
+
/**
|
|
44
|
+
* 自定义渲染器 render 函数,render 优先级高于 component
|
|
45
|
+
*/
|
|
46
|
+
render?: (args: FormItemComponentProps) => React.ReactElement;
|
|
47
|
+
/**
|
|
48
|
+
* 是否禁用变量设置器
|
|
49
|
+
*/
|
|
50
|
+
disableVariableSetter?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* 默认的表单值校验逻辑
|
|
53
|
+
*/
|
|
54
|
+
validate?: ComponentPropValidate;
|
|
55
|
+
}
|
|
56
|
+
interface UseSetterValueProps {
|
|
57
|
+
fieldValue: any;
|
|
58
|
+
setter?: string;
|
|
59
|
+
setterType?: IFormItemCreateOptions['type'];
|
|
60
|
+
/**
|
|
61
|
+
* 强制初始化为 codeSetter,适用于外部需要特别干预的情况
|
|
62
|
+
*/
|
|
63
|
+
forceCodeSetter?: boolean;
|
|
64
|
+
}
|
|
65
|
+
export declare function useSetterValue({ fieldValue, setter, setterType, forceCodeSetter, }: UseSetterValueProps): {
|
|
66
|
+
value: any;
|
|
67
|
+
code: any;
|
|
68
|
+
setter: string;
|
|
69
|
+
setterValue: any;
|
|
70
|
+
isCodeSetter: boolean;
|
|
71
|
+
toggleSetter: () => void;
|
|
72
|
+
};
|
|
73
|
+
export declare function createFormItem(options: IFormItemCreateOptions): {
|
|
74
|
+
({ name, title, tip, placeholder, docs, autoCompleteOptions, setter: setterProp, setterProps, defaultValue, options: setterOptions, disableVariableSetter, getVisible: getVisibleProp, getSetterProps: getSetterPropsProp, deprecated, extra, footer, noStyle, validate, }: FormItemProps): React.JSX.Element;
|
|
75
|
+
displayName: string;
|
|
76
|
+
config: IFormItemCreateOptions;
|
|
77
|
+
} & {
|
|
78
|
+
displayName: string;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* 获取已注册的 setter
|
|
82
|
+
* @param name
|
|
83
|
+
* @returns
|
|
84
|
+
*/
|
|
85
|
+
export declare function getSetter(name: string): {
|
|
86
|
+
({ name, title, tip, placeholder, docs, autoCompleteOptions, setter: setterProp, setterProps, defaultValue, options: setterOptions, disableVariableSetter, getVisible: getVisibleProp, getSetterProps: getSetterPropsProp, deprecated, extra, footer, noStyle, validate, }: FormItemProps): React.JSX.Element;
|
|
87
|
+
displayName: string;
|
|
88
|
+
config: IFormItemCreateOptions;
|
|
89
|
+
} & {
|
|
90
|
+
displayName: string;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Setter 注册
|
|
94
|
+
* @param config 注册选项
|
|
95
|
+
*/
|
|
96
|
+
export declare function register(config: IFormItemCreateOptions): void;
|
|
97
|
+
export declare function SettingFormItem(props: FormItemProps): React.JSX.Element;
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { ISetterOnChangeCallbackDetail } from './types';
|
|
2
|
+
export interface IFormModel {
|
|
3
|
+
values: any;
|
|
4
|
+
getValue: (name: string, defaultValue?: any) => any;
|
|
5
|
+
setValue: (name: string, value: any) => void;
|
|
6
|
+
getField: (name: string) => Field;
|
|
7
|
+
getSubModel: (name: string) => SubModel;
|
|
8
|
+
onChange: (name: string, value: any, field?: Field) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface FormModelOptionsType {
|
|
11
|
+
onChange?: IFormModel['onChange'];
|
|
12
|
+
}
|
|
13
|
+
export declare class FormModel implements IFormModel {
|
|
14
|
+
state: {};
|
|
15
|
+
_values: any;
|
|
16
|
+
_fieldMap: Map<string, Field>;
|
|
17
|
+
_subModelMap: {
|
|
18
|
+
[key: string]: SubModel;
|
|
19
|
+
};
|
|
20
|
+
onChange: IFormModel['onChange'];
|
|
21
|
+
get values(): any;
|
|
22
|
+
set values(nextValues: any);
|
|
23
|
+
constructor(initValues: any, options?: FormModelOptionsType);
|
|
24
|
+
getValues(): any;
|
|
25
|
+
getValue(name: string, defaultValue?: any): any;
|
|
26
|
+
setValue(name: string, value: any): void;
|
|
27
|
+
getField(name: string): Field;
|
|
28
|
+
getSubModel(name: string): SubModel;
|
|
29
|
+
}
|
|
30
|
+
declare class SubModel implements IFormModel {
|
|
31
|
+
parent: IFormModel;
|
|
32
|
+
name: string;
|
|
33
|
+
_fieldMap: Map<string, Field>;
|
|
34
|
+
_subModelMap: {
|
|
35
|
+
[key: string]: SubModel;
|
|
36
|
+
};
|
|
37
|
+
get values(): any;
|
|
38
|
+
set values(nextValues: any);
|
|
39
|
+
constructor(parent: IFormModel, name: string);
|
|
40
|
+
getValue(name: string, defaultValue?: any): any;
|
|
41
|
+
setValue(name: string, value: any): void;
|
|
42
|
+
getField(name: string): Field;
|
|
43
|
+
getSubModel(name: string): SubModel;
|
|
44
|
+
getPath(name: string): string;
|
|
45
|
+
onChange(name: string, values: any, field: Field): void;
|
|
46
|
+
}
|
|
47
|
+
interface FieldCreateOptionsType {
|
|
48
|
+
parent: IFormModel;
|
|
49
|
+
name: string;
|
|
50
|
+
}
|
|
51
|
+
interface FieldConfigType {
|
|
52
|
+
validate?: (value: any, field: Field, trigger: string) => string | Promise<any>;
|
|
53
|
+
}
|
|
54
|
+
interface FieldStateType {
|
|
55
|
+
error?: any;
|
|
56
|
+
validating?: boolean;
|
|
57
|
+
cancelValidation?: () => void;
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
}
|
|
60
|
+
type FieldValidateTriggerType = '*' | 'blur' | 'change';
|
|
61
|
+
export declare class Field {
|
|
62
|
+
readonly parent: IFormModel;
|
|
63
|
+
readonly name: string;
|
|
64
|
+
readonly id: string;
|
|
65
|
+
readonly _get: () => any;
|
|
66
|
+
readonly _set: (v: any) => void;
|
|
67
|
+
config: FieldConfigType;
|
|
68
|
+
state: FieldStateType;
|
|
69
|
+
detail: ISetterOnChangeCallbackDetail;
|
|
70
|
+
get value(): any;
|
|
71
|
+
set value(value: any);
|
|
72
|
+
get error(): any;
|
|
73
|
+
constructor(options: FieldCreateOptionsType);
|
|
74
|
+
validate: (trigger?: FieldValidateTriggerType) => Promise<any>;
|
|
75
|
+
handleBlur: () => Promise<any>;
|
|
76
|
+
setValue: (nextValue: any, valueDetail: any) => Promise<any>;
|
|
77
|
+
setConfig(config: FieldConfigType): void;
|
|
78
|
+
}
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IComponentProp } from './types';
|
|
3
|
+
export type SettingFormObjectProps = IComponentProp;
|
|
4
|
+
/**
|
|
5
|
+
* 为该组件下的 SettingFormItem 添加一个数据字段前缀
|
|
6
|
+
*/
|
|
7
|
+
export declare const SettingFormObject: (({ title, tip, docs, name, defaultValue, getVisible, props, }: SettingFormObjectProps) => React.JSX.Element) & {
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|