@icos-desktop/react-components 0.1.20 → 1.0.0-beta.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.
Files changed (133) hide show
  1. package/build/index.d.ts +96 -98
  2. package/build/index.esm.js +26 -5
  3. package/build/index.js +26 -5
  4. package/build/index.umd.js +26 -5
  5. package/build/types/components/BookGroupTable/BookGroupTable.d.ts +4 -0
  6. package/build/types/components/BookGroupTable/BookGroupTable.stories.d.ts +7 -0
  7. package/build/types/components/BookGroupTable/components/ContextMenu/index.d.ts +5 -0
  8. package/build/types/components/BookGroupTable/index.d.ts +1 -0
  9. package/build/types/components/BookGroupTable/utils/index.d.ts +1 -0
  10. package/build/types/components/BookTable/BookTable.d.ts +4 -0
  11. package/build/types/components/BookTable/BookTable.stories.d.ts +7 -0
  12. package/build/types/components/BookTable/components/ContextMenu/index.d.ts +5 -0
  13. package/build/types/components/BookTable/index.d.ts +1 -0
  14. package/build/types/components/OrgTreeSelect/OrgTreeSelect.d.ts +4 -0
  15. package/build/types/components/OrgTreeSelect/OrgTreeSelect.stories.d.ts +7 -0
  16. package/build/types/components/OrgTreeSelect/index.d.ts +1 -0
  17. package/build/types/components/ProTable/ProTable.d.ts +4 -0
  18. package/build/types/components/ProTable/ProTable.stories.d.ts +7 -0
  19. package/build/types/components/ProTable/components/ColumnsConfig/index.d.ts +10 -0
  20. package/build/types/components/ProTable/index.d.ts +1 -0
  21. package/build/types/components/RegionTree/RegionTree.d.ts +4 -0
  22. package/build/types/components/RegionTree/RegionTree.stories.d.ts +7 -0
  23. package/build/types/components/RegionTree/RegionTree.types.d.ts +33 -0
  24. package/build/types/components/RegionTree/index.d.ts +1 -0
  25. package/build/types/components/RegionTree/service/index.d.ts +12 -0
  26. package/build/types/components/RegionTree/service/index.types.d.ts +25 -0
  27. package/build/types/components/RegionTreeSelect/RegionTreeSelect.d.ts +4 -0
  28. package/build/types/components/RegionTreeSelect/RegionTreeSelect.stories.d.ts +7 -0
  29. package/build/types/components/RegionTreeSelect/index.d.ts +1 -0
  30. package/build/types/components/RelationGraph/RelationGraph.d.ts +4 -0
  31. package/build/types/components/RelationGraph/RelationGraph.stories.d.ts +7 -0
  32. package/build/types/components/RelationGraph/components/Graph/index.d.ts +5 -0
  33. package/build/types/components/RelationGraph/index.d.ts +1 -0
  34. package/build/types/components/SenseCreate/SenseCreate.d.ts +4 -0
  35. package/build/types/components/SenseCreate/SenseCreate.stories.d.ts +7 -0
  36. package/build/types/components/SenseCreate/index.d.ts +1 -0
  37. package/build/types/components/SenseDetail/SenseDetail.d.ts +4 -0
  38. package/build/types/components/SenseDetail/SenseDetail.stories.d.ts +7 -0
  39. package/build/types/components/SenseDetail/components/Base/index.d.ts +6 -0
  40. package/build/types/components/SenseDetail/components/BookList/index.d.ts +7 -0
  41. package/build/types/components/SenseDetail/components/Content/components/Card/index.d.ts +6 -0
  42. package/build/types/components/SenseDetail/components/Content/components/List/Item/index.d.ts +6 -0
  43. package/build/types/components/SenseDetail/components/Content/components/List/index.d.ts +6 -0
  44. package/build/types/components/SenseDetail/components/Content/index.d.ts +7 -0
  45. package/build/types/components/SenseDetail/components/Relation/index.d.ts +6 -0
  46. package/build/types/components/SenseDetail/index.d.ts +1 -0
  47. package/build/types/components/SenseEdit/SenseEdit.d.ts +4 -0
  48. package/build/types/components/SenseEdit/SenseEdit.stories.d.ts +7 -0
  49. package/build/types/components/SenseEdit/index.d.ts +1 -0
  50. package/build/types/components/SenseForm/SenseForm.d.ts +4 -0
  51. package/build/types/components/SenseForm/SenseForm.stories.d.ts +7 -0
  52. package/build/types/components/SenseForm/index.d.ts +1 -0
  53. package/build/types/components/SenseInfo/SenseInfo.d.ts +4 -0
  54. package/build/types/components/SenseInfo/SenseInfo.stories.d.ts +7 -0
  55. package/build/types/components/SenseInfo/components/FileView/index.d.ts +10 -0
  56. package/build/types/components/SenseInfo/components/ImageView/index.d.ts +10 -0
  57. package/build/types/components/SenseInfo/components/Render/index.d.ts +7 -0
  58. package/build/types/components/SenseInfo/components/TagsView/index.d.ts +6 -0
  59. package/build/types/components/SenseInfo/index.d.ts +1 -0
  60. package/build/types/components/SenseInfo/utils/schema.d.ts +2 -0
  61. package/build/types/components/SenseManager/SenseManager.d.ts +4 -0
  62. package/build/types/components/SenseManager/SenseManager.stories.d.ts +6 -0
  63. package/build/types/components/SenseManager/components/Filter/index.d.ts +10 -0
  64. package/build/types/components/SenseManager/components/FormItem/index.d.ts +11 -0
  65. package/build/types/components/SenseManager/components/SideBar/index.d.ts +9 -0
  66. package/build/types/components/SenseManager/index.d.ts +1 -0
  67. package/build/types/components/SenseManager/settings.d.ts +2 -0
  68. package/build/types/components/SenseManager/utils/index.d.ts +5 -0
  69. package/build/types/components/SenseSearch/SenseSearch.d.ts +4 -0
  70. package/build/types/components/SenseSearch/SenseSearch.stories.d.ts +7 -0
  71. package/build/types/components/SenseSearch/components/AdvancedSearch/KnnItems/index.d.ts +18 -0
  72. package/build/types/components/SenseSearch/components/AdvancedSearch/index.d.ts +5 -0
  73. package/build/types/components/SenseSearch/components/Tabs/index.d.ts +17 -0
  74. package/build/types/components/SenseSearch/constants/index.d.ts +41 -0
  75. package/build/types/components/SenseSearch/index.d.ts +1 -0
  76. package/build/types/components/SenseTable/SenseTable.d.ts +4 -0
  77. package/build/types/components/SenseTable/SenseTable.stories.d.ts +7 -0
  78. package/build/types/components/SenseTable/components/ContextMenu/index.d.ts +5 -0
  79. package/build/types/components/SenseTable/components/TagsModal/index.d.ts +12 -0
  80. package/build/types/components/SenseTable/index.d.ts +1 -0
  81. package/build/types/components/SenseTree/SenseTree.d.ts +4 -0
  82. package/build/types/components/SenseTree/SenseTree.stories.d.ts +8 -0
  83. package/build/types/components/SenseTree/index.d.ts +1 -0
  84. package/build/types/components/SenseTree/utils/index.d.ts +21 -0
  85. package/build/types/components/SenseUpload/SenseUpload.d.ts +4 -0
  86. package/build/types/components/SenseUpload/SenseUpload.stories.d.ts +7 -0
  87. package/build/types/components/SenseUpload/index.d.ts +1 -0
  88. package/build/types/components/SenseUpload/utils/index.d.ts +1 -0
  89. package/build/types/components/SenseView/SenseView.d.ts +4 -0
  90. package/build/types/components/SenseView/SenseView.stories.d.ts +6 -0
  91. package/build/types/components/SenseView/index.d.ts +1 -0
  92. package/build/types/components/TagTreeSelect/TagTreeSelect.d.ts +12 -0
  93. package/build/types/components/TagTreeSelect/TagTreeSelect.stories.d.ts +7 -0
  94. package/build/types/components/TagTreeSelect/index.d.ts +1 -0
  95. package/build/types/components/VideoPlayer/VideoPlayer.d.ts +4 -0
  96. package/build/types/components/VideoPlayer/VideoPlayer.stories.d.ts +8 -0
  97. package/build/types/components/VideoPlayer/components/Cityeyes/index.d.ts +7 -0
  98. package/build/types/components/VideoPlayer/components/H5player/index.d.ts +7 -0
  99. package/build/types/components/VideoPlayer/components/Player/index.d.ts +5 -0
  100. package/build/types/components/VideoPlayer/index.d.ts +1 -0
  101. package/build/types/constants/pagination.d.ts +10 -0
  102. package/build/types/hooks/useEntityClass/index.d.ts +5 -0
  103. package/build/types/hooks/useKsCode/index.d.ts +5 -0
  104. package/build/types/hooks/useMeeting/index.d.ts +4 -0
  105. package/build/types/hooks/useRelationList/RelationList/index.d.ts +15 -0
  106. package/build/types/hooks/useRelationList/index.d.ts +6 -0
  107. package/build/types/index.d.ts +22 -0
  108. package/build/types/internal/context/api.d.ts +2 -0
  109. package/build/types/internal/hoc/withApi.d.ts +3 -0
  110. package/build/types/internal/hooks/useApi.d.ts +2 -0
  111. package/build/types/internal/utils/req.d.ts +3 -0
  112. package/build/types/internal/utils/request.d.ts +4 -0
  113. package/build/types/internal/widgets/FileView/index.d.ts +5 -0
  114. package/build/types/internal/widgets/ImageView/index.d.ts +5 -0
  115. package/build/types/services/dataManager.d.ts +1 -0
  116. package/build/types/services/entity.d.ts +1 -0
  117. package/build/types/services/entityManager.d.ts +2 -0
  118. package/build/types/services/gis.d.ts +2 -0
  119. package/build/types/services/mapWindow.d.ts +2 -0
  120. package/build/types/services/org.d.ts +2 -0
  121. package/build/types/services/senseForm.d.ts +12 -0
  122. package/build/types/services/senseManager.d.ts +4 -0
  123. package/build/types/services/senseSearch.d.ts +6 -0
  124. package/build/types/services/user.d.ts +1 -0
  125. package/build/types/services/view.d.ts +1 -0
  126. package/build/types/utils/config.d.ts +5 -0
  127. package/build/types/utils/contexify.d.ts +11 -0
  128. package/build/types/utils/map.d.ts +12 -0
  129. package/build/types/utils/request.d.ts +9 -0
  130. package/build/types/utils/request2.d.ts +3 -0
  131. package/build/types/utils/sense.d.ts +11 -0
  132. package/build/types/utils/tree.d.ts +5 -0
  133. package/package.json +46 -31
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export declare const getTags: (record: any) => {
3
+ name: string;
4
+ code: string;
5
+ }[];
6
+ interface TagsModalProps {
7
+ open: boolean;
8
+ onCancel: () => void;
9
+ data: any;
10
+ }
11
+ declare const TagsModal: React.FC<TagsModalProps>;
12
+ export default TagsModal;
@@ -0,0 +1 @@
1
+ export { default } from './SenseTable';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SenseTreeProps } from './SenseTree.d';
3
+ declare const SenseTree: React.FC<SenseTreeProps>;
4
+ export default SenseTree;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import SenseTree from './SenseTree';
3
+ declare const meta: Meta<typeof SenseTree>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SenseTree>;
6
+ export declare const EntityClass: Story;
7
+ export declare const RegionBook: Story;
8
+ export declare const RegionSense: Story;
@@ -0,0 +1 @@
1
+ export { default } from './SenseTree';
@@ -0,0 +1,21 @@
1
+ export declare const getTreeChecked: ({ treeData: _treeData, checkedKeys, halfCheckedKeys }: any) => {
2
+ info: {
3
+ selectSenseObjCodes?: undefined;
4
+ selectBookIds?: undefined;
5
+ unSelectBookIds?: undefined;
6
+ selectSenseGlobalCodes?: undefined;
7
+ unSelectSenseGlobalCodes?: undefined;
8
+ selectOrgIds?: undefined;
9
+ };
10
+ total: number;
11
+ } | {
12
+ info: {
13
+ selectSenseObjCodes: string[];
14
+ selectBookIds: string[];
15
+ unSelectBookIds: string[];
16
+ selectSenseGlobalCodes: string[];
17
+ unSelectSenseGlobalCodes: string[];
18
+ selectOrgIds: string[];
19
+ };
20
+ total: number;
21
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SenseUploadProps } from './SenseUpload.d';
3
+ declare const SenseUpload: React.FC<SenseUploadProps>;
4
+ export default SenseUpload;
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react';
2
+ import React from 'react';
3
+ import SenseUpload from './SenseUpload';
4
+ import { SenseUploadProps } from './SenseUpload.d';
5
+ declare const meta: Meta<typeof SenseUpload>;
6
+ export default meta;
7
+ export declare const Base: (props: SenseUploadProps) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './SenseUpload';
@@ -0,0 +1 @@
1
+ export declare const downloadFile: (res: any) => void;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SenseViewProps } from './SenseView.d';
3
+ declare const SenseView: React.FC<SenseViewProps>;
4
+ export default SenseView;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import SenseView from './SenseView';
3
+ declare const meta: Meta<typeof SenseView>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SenseView>;
6
+ export declare const EntityClass: Story;
@@ -0,0 +1 @@
1
+ export { default } from './SenseView';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface TagTreeItem {
3
+ code: string;
4
+ name: string;
5
+ parentCode: string;
6
+ tagType: string;
7
+ }
8
+ type GetTagTreeRes = TagTreeItem[];
9
+ export declare function getTagTree(): Promise<GetTagTreeRes>;
10
+ import { TagTreeSelectProps } from './TagTreeSelect.d';
11
+ declare const TagTreeSelect: React.FC<TagTreeSelectProps>;
12
+ export default TagTreeSelect;
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react';
2
+ import React from 'react';
3
+ import TagTreeSelect from './TagTreeSelect';
4
+ import { TagTreeSelectProps } from './TagTreeSelect.d';
5
+ declare const meta: Meta<typeof TagTreeSelect>;
6
+ export default meta;
7
+ export declare const Base: (props: TagTreeSelectProps) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './TagTreeSelect';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { VideoPlayerProps } from './VideoPlayer.d';
3
+ declare const VideoPlayer: React.FC<VideoPlayerProps>;
4
+ export default VideoPlayer;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import VideoPlayer from './VideoPlayer';
3
+ declare const meta: Meta<typeof VideoPlayer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof VideoPlayer>;
6
+ export declare const SenseGlobalCode: Story;
7
+ export declare const Cityeyes: Story;
8
+ export declare const H5player: Story;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface CityeyesProps {
3
+ url: string;
4
+ libPath: string;
5
+ }
6
+ declare const Cityeyes: React.FC<CityeyesProps>;
7
+ export default Cityeyes;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface H5playerProps {
3
+ url: string;
4
+ libPath: string;
5
+ }
6
+ declare const H5player: React.FC<H5playerProps>;
7
+ export default H5player;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { VideoPlayerProps } from '../../VideoPlayer.d';
3
+ type PlayerProps = Pick<VideoPlayerProps, 'libsPath' | 'url' | 'videoPlayerType'>;
4
+ declare const Player: React.FC<PlayerProps>;
5
+ export default Player;
@@ -0,0 +1 @@
1
+ export { default } from './VideoPlayer';
@@ -0,0 +1,10 @@
1
+ export declare const PAGINATION: {
2
+ current: number;
3
+ total: number;
4
+ pageSize: number;
5
+ pageSizeOptions: string[];
6
+ showSizeChanger: boolean;
7
+ showQuickJumper: boolean;
8
+ hideOnSinglePage: boolean;
9
+ showTotal: (total: number) => string;
10
+ };
@@ -0,0 +1,5 @@
1
+ declare const useEntityClass: () => {
2
+ loaded: boolean;
3
+ entityClassList: MapWindowAPI.EntityClassItem[];
4
+ };
5
+ export default useEntityClass;
@@ -0,0 +1,5 @@
1
+ declare const useKsCode: () => {
2
+ loaded: boolean;
3
+ ksCodeMap: EntityAPI.KsCodeMap;
4
+ };
5
+ export default useKsCode;
@@ -0,0 +1,4 @@
1
+ declare const useMeeting: () => {
2
+ openMeeting: (openUserIds: string[]) => Promise<void>;
3
+ };
4
+ export default useMeeting;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ declare const RelationList: ({ data: { entityCode, relationEntityCode, relationCode, direction, entityClassCode }, location, open, onCancel, onJump, }: {
3
+ data: {
4
+ entityCode: any;
5
+ relationEntityCode: any;
6
+ relationCode: any;
7
+ direction: any;
8
+ entityClassCode: any;
9
+ };
10
+ location: any;
11
+ open: any;
12
+ onCancel: any;
13
+ onJump: any;
14
+ }) => React.JSX.Element;
15
+ export default RelationList;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const useRelationList: (onJump: any) => {
3
+ RelationList: () => React.JSX.Element;
4
+ jumpTo: (event: any, { senseGlobalCode, entityCode, relationEntityCode, relationCode, direction, entityClassCode, }: any) => void;
5
+ };
6
+ export default useRelationList;
@@ -0,0 +1,22 @@
1
+ import BookGroupTable from './components/BookGroupTable';
2
+ import BookTable from './components/BookTable';
3
+ import OrgTreeSelect from './components/OrgTreeSelect';
4
+ import ProTable from './components/ProTable';
5
+ import RegionTree from './components/RegionTree';
6
+ import RegionTreeSelect from './components/RegionTreeSelect';
7
+ import RelationGraph from './components/RelationGraph';
8
+ import SenseCreate from './components/SenseCreate';
9
+ import SenseDetail from './components/SenseDetail';
10
+ import SenseEdit from './components/SenseEdit';
11
+ import SenseForm from './components/SenseForm';
12
+ import SenseInfo from './components/SenseInfo';
13
+ import SenseManager from './components/SenseManager';
14
+ import SenseSearch from './components/SenseSearch';
15
+ import SenseTable from './components/SenseTable';
16
+ import SenseTree from './components/SenseTree';
17
+ import SenseUpload from './components/SenseUpload';
18
+ import SenseView from './components/SenseView';
19
+ import TagTreeSelect from './components/TagTreeSelect';
20
+ import VideoPlayer from './components/VideoPlayer';
21
+ import config from './utils/config';
22
+ export { BookGroupTable, BookTable, config, OrgTreeSelect, ProTable, RegionTree, RegionTreeSelect, RelationGraph, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseUpload, SenseView, TagTreeSelect, VideoPlayer, };
@@ -0,0 +1,2 @@
1
+ declare const Context: import("react").Context<any>;
2
+ export default Context;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const withApi: <Props = any>(Component: React.FC<Props>, Service: any) => React.FC<Props>;
3
+ export default withApi;
@@ -0,0 +1,2 @@
1
+ declare const useApi: () => any;
2
+ export default useApi;
@@ -0,0 +1,3 @@
1
+ import request from '@/utils/request';
2
+ export declare function getApi(name: string, data?: any): string;
3
+ export default request;
@@ -0,0 +1,4 @@
1
+ export declare class BaseService {
2
+ api: Record<string, string>;
3
+ constructor(api: Record<string, string>, services: Record<string, any>, name: string);
4
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const FileView: ({ value }: {
3
+ value: any;
4
+ }) => React.JSX.Element | "-";
5
+ export default FileView;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const ImageView: ({ value }: {
3
+ value: any;
4
+ }) => React.JSX.Element | "-";
5
+ export default ImageView;
@@ -0,0 +1 @@
1
+ export declare function getTableData(data: DataManagerAPI.GetTableDataReq): Promise<DataManagerAPI.GetTableDataRes>;
@@ -0,0 +1 @@
1
+ export declare const getCategoryKsCode: () => Promise<EntityAPI.KsCodeMap>;
@@ -0,0 +1,2 @@
1
+ export declare function getBookGroupList(data: EntityManagerAPI.GetBookGroupListReq): Promise<EntityManagerAPI.GetBookGroupListRes>;
2
+ export declare function getBookPathInfo(params: EntityManagerAPI.GetBookPathInfoReq): Promise<EntityManagerAPI.GetBookPathInfoRes>;
@@ -0,0 +1,2 @@
1
+ export declare function getRegionTree(params?: GisAPI.GetRegionTreeReq): Promise<GisAPI.GetRegionTreeRes>;
2
+ export declare function getRegionInfo(params?: GisAPI.GetRegionInfoReq): Promise<GisAPI.GetRegionInfoRes>;
@@ -0,0 +1,2 @@
1
+ export declare function getEntityClassTree(params: MapWindowAPI.GetEntityClassTreeReq): Promise<MapWindowAPI.GetEntityClassTreeRes>;
2
+ export declare function getJustFeature(data: any): Promise<unknown>;
@@ -0,0 +1,2 @@
1
+ export declare function getOrgList(params?: OrgAPI.GetOrgListReq): Promise<OrgAPI.GetOrgListRes>;
2
+ export declare function getAllOrgList(): Promise<OrgAPI.GetAllOrgListRes>;
@@ -0,0 +1,12 @@
1
+ export declare const getSenseDetail: (data: SenseFormAPI.GetSenseDetailReq) => Promise<SenseFormAPI.GetSenseDetailRes>;
2
+ export declare const getEntityContentConfig: (data: SenseFormAPI.GetEntityContentConfigReq) => Promise<SenseFormAPI.GetEntityContentConfigRes>;
3
+ export declare function getRealtimeVideoUrl(params: SenseFormAPI.GetRealtimeVideoUrlReq): Promise<string>;
4
+ export declare function getEntityRelation(data: SenseFormAPI.GetEntityRelationReq): Promise<SenseFormAPI.GetEntityRelationRes>;
5
+ export declare const getRelationNodeList: (data: SenseFormAPI.GetRelationNodeListReq) => Promise<SenseFormAPI.GetRelationNodeListRes>;
6
+ export declare const getMeetingUrl: (data: SenseFormAPI.GetMeetingUrlReq) => Promise<SenseFormAPI.GetMeetingUrlRes>;
7
+ export declare function getSenseOperation(data: SenseFormAPI.GetSenseOperationReq): Promise<SenseFormAPI.GetSenseOperationRes>;
8
+ export declare function saveSense(data: SenseFormAPI.SaveSenseReq): Promise<SenseFormAPI.SaveSenseRes>;
9
+ export declare function getSenseExcelTemplate(params: SenseFormAPI.GetSenseExcelTemplateReq): Promise<unknown>;
10
+ export declare function uploadSenseExcel(formData: FormData, { bookId, viewCode }: SenseFormAPI.UploadSenseExcelReq): Promise<string>;
11
+ export declare function getExcelSchedule(params: SenseFormAPI.GetExcelScheduleReq): Promise<SenseFormAPI.GetExcelScheduleRes>;
12
+ export declare const downloadErrorMsg: (params: SenseFormAPI.DownloadErrorMsg) => Promise<unknown>;
@@ -0,0 +1,4 @@
1
+ export declare function getBookList(data: SenseManagerAPI.GetBookListReq): Promise<SenseManagerAPI.GetBookListRes>;
2
+ export declare function getBookFilterConfig(params: SenseManagerAPI.GetBookFilterConfigReq): Promise<SenseManagerAPI.GetBookFilterConfigRes>;
3
+ export declare function getSenseList(data: SenseManagerAPI.GetSenseListReq): Promise<SenseManagerAPI.GetSenseListRes>;
4
+ export declare function getBookGroupStatistics(params: SenseManagerAPI.GetBookGroupStatisticsReq): Promise<SenseManagerAPI.GetBookGroupStatisticsRes>;
@@ -0,0 +1,6 @@
1
+ export declare function searchOrgTree(data: SenseSearchAPI.SearchOrgTreeReq): Promise<SenseSearchAPI.SearchOrgTreeRes>;
2
+ export declare function searchBookRegionTree(data: SenseSearchAPI.SearchBookRegionTreeReq): Promise<SenseSearchAPI.SearchBookRegionTreeRes>;
3
+ export declare function searchSenseRegionTree(data: SenseSearchAPI.SearchSenseRegionTreeReq): Promise<SenseSearchAPI.SearchSenseRegionTreeRes>;
4
+ export declare function searchEntityClassTree(data: SenseSearchAPI.SearchEntityClassTreeReq): Promise<SenseSearchAPI.SearchEntityClassTreeRes>;
5
+ export declare function searchBookList(data: SenseSearchAPI.SearchBookListReq): Promise<SenseSearchAPI.SearchBookListRes>;
6
+ export declare function searchSenseList(data: SenseSearchAPI.SearchSenseListReq): Promise<SenseSearchAPI.SearchSenseListRes>;
@@ -0,0 +1 @@
1
+ export declare function getJmtUserAuthInfo(): Promise<UserAPI.GetJmtUserAuthInfoRes>;
@@ -0,0 +1 @@
1
+ export declare function getSystemViewList(): Promise<ViewAPI.GetSystemViewListRes>;
@@ -0,0 +1,5 @@
1
+ import { IcosDesktopType } from '@/global';
2
+ export type Config = Pick<IcosDesktopType, 'apiPrefix'>;
3
+ export declare const setCconfig: (config: Config) => void;
4
+ export declare const getConfig: () => IcosDesktopType;
5
+ export default setCconfig;
@@ -0,0 +1,11 @@
1
+ import 'react-contexify/dist/ReactContexify.css';
2
+ import React from 'react';
3
+ import type { ItemParams, ItemProps, MenuProps, SubMenuProps } from 'react-contexify';
4
+ export type { ItemParams, ItemProps, MenuProps, SubMenuProps };
5
+ export type MenuItem<T = unknown> = Omit<T, 'key' | 'label' | 'children'> & {
6
+ key: string;
7
+ label: React.ReactNode;
8
+ children?: MenuItem[];
9
+ };
10
+ export type MenuCallback<Props = any> = (key: string, args: ItemParams<Props>) => void;
11
+ export declare const renderContextMenu: (id: string, menu: MenuItem[], callback: MenuCallback, menuProps?: Omit<MenuProps, "id" | "children">) => React.ReactNode;
@@ -0,0 +1,12 @@
1
+ export type Coordinates = [number, number] | {
2
+ lng: number;
3
+ lat: number;
4
+ } | {
5
+ lon: number;
6
+ lat: number;
7
+ };
8
+ export declare const convertPointToArray: (coordinates: Coordinates) => number[];
9
+ export declare const getPointPolygonGeom: any;
10
+ export declare const getLinePolygonGeom: (line: string, km?: number) => never;
11
+ export declare const mergePolygons: (geoms: string[]) => string;
12
+ export declare const isWKT: (str: any) => boolean;
@@ -0,0 +1,9 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ interface Request {
3
+ get: <T, D = any>(url: string, params?: D, config?: AxiosRequestConfig<D>) => Promise<T>;
4
+ post: <T, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>) => Promise<T>;
5
+ put: <T, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>) => Promise<T>;
6
+ delete: <T, D = any>(url: string, params?: D, config?: AxiosRequestConfig<D>) => Promise<T>;
7
+ }
8
+ declare const _default: Request;
9
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { RequestConfig } from '@xirang/request';
2
+ declare const req: <Res>(config: RequestConfig) => Promise<Res>;
3
+ export default req;
@@ -0,0 +1,11 @@
1
+ export declare const parseSenseGlobalCode: (senseGlobalCode: string) => {
2
+ senseObjCode?: undefined;
3
+ templateId?: undefined;
4
+ bookId?: undefined;
5
+ senseCode?: undefined;
6
+ } | {
7
+ senseObjCode: string;
8
+ templateId: string;
9
+ bookId: string;
10
+ senseCode: string;
11
+ };
@@ -0,0 +1,5 @@
1
+ export declare const loopTree: (tree: any, callback: (node: any) => void) => void;
2
+ export declare const findNodeByKey: (tree: any, key: string) => any;
3
+ export declare const findChildrenByKey: (tree: any, key: string) => any[] | null;
4
+ export declare const arrayToTree: <T = any>(array: T[], loop: (node: T) => any, fieldNames?: any) => any;
5
+ export declare const filterTreeNode: (inputValue: string, treeNode: any) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icos-desktop/react-components",
3
- "version": "0.1.20",
3
+ "version": "1.0.0-beta.1",
4
4
  "description": "ICOS Desktop React Components",
5
5
  "main": "build/index.js",
6
6
  "unpkg": "build/index.umd.js",
@@ -10,57 +10,72 @@
10
10
  "build"
11
11
  ],
12
12
  "publishConfig": {
13
- "access": "public"
13
+ "access": "public",
14
+ "registry": "https://registry.npmjs.org/"
14
15
  },
15
16
  "scripts": {
16
17
  "start": "rollup -c -w",
17
18
  "build": "rollup -c",
19
+ "build-vite": "tsc -b && vite build",
18
20
  "storybook": "storybook dev -p 6006",
19
21
  "build-storybook": "storybook build",
20
22
  "generate": "node ./util/create-component",
21
23
  "prepublishOnly": "npm run build"
22
24
  },
23
25
  "dependencies": {
24
- "@ant-design/icons": "^5.4.0",
26
+ "@ant-design/icons": "^5.5.1",
27
+ "@antv/g6": "^4.8.24",
28
+ "@turf/turf": "^7.1.0",
29
+ "@xirang/design-antd": "^0.3.0",
30
+ "@xirang/design-icon": "^0.1.0",
31
+ "@xirang/request": "^0.1.1",
25
32
  "ahooks": "^3.8.0",
26
- "antd": "^5.11.0",
27
- "axios": "^1.6.0",
28
33
  "classnames": "^2.5.1",
34
+ "dayjs": "^1.11.13",
29
35
  "immer": "^10.1.1",
30
36
  "lodash": "^4.17.21",
37
+ "pinyin-pro": "^3.25.0",
38
+ "rc-overflow": "^1.3.2",
39
+ "rc-resize-observer": "^1.4.0",
40
+ "rc-util": "^5.43.0",
41
+ "react-contexify": "^6.0.0",
31
42
  "react-highlight-words": "^0.20.0",
32
- "uuid": "^10.0.0"
43
+ "uuid": "^10.0.0",
44
+ "wellknown": "^0.5.0"
33
45
  },
34
46
  "devDependencies": {
35
- "@babel/core": "^7.25.2",
36
- "@chromatic-com/storybook": "^1.6.1",
37
- "@rollup/plugin-alias": "^5.1.0",
38
- "@rollup/plugin-commonjs": "^26.0.1",
47
+ "@babel/core": "^7.26.0",
48
+ "@chromatic-com/storybook": "^1.9.0",
49
+ "@rollup/plugin-alias": "^5.1.1",
50
+ "@rollup/plugin-commonjs": "^26.0.3",
39
51
  "@rollup/plugin-image": "^3.0.3",
40
52
  "@rollup/plugin-json": "^6.1.0",
41
- "@rollup/plugin-node-resolve": "^15.2.3",
53
+ "@rollup/plugin-node-resolve": "^15.3.0",
42
54
  "@rollup/plugin-replace": "^5.0.7",
43
55
  "@rollup/plugin-terser": "^0.4.4",
44
56
  "@rollup/plugin-typescript": "^11.1.6",
45
- "@storybook/addon-essentials": "^8.2.9",
46
- "@storybook/addon-interactions": "^8.2.9",
47
- "@storybook/addon-links": "^8.2.9",
48
- "@storybook/addon-onboarding": "^8.2.9",
49
- "@storybook/blocks": "^8.2.9",
50
- "@storybook/react": "^8.2.9",
51
- "@storybook/react-vite": "^8.2.9",
52
- "@storybook/test": "^8.2.9",
57
+ "@storybook/addon-essentials": "^8.3.6",
58
+ "@storybook/addon-interactions": "^8.3.6",
59
+ "@storybook/addon-links": "^8.3.6",
60
+ "@storybook/addon-onboarding": "^8.3.6",
61
+ "@storybook/blocks": "^8.3.6",
62
+ "@storybook/react": "^8.3.6",
63
+ "@storybook/react-vite": "^8.3.6",
64
+ "@storybook/test": "^8.3.6",
53
65
  "@svgr/rollup": "^8.1.0",
54
- "@types/lodash": "^4.17.7",
55
- "@types/react": "^18.3.3",
56
- "@types/react-dom": "^18.3.0",
66
+ "@types/lodash": "^4.17.13",
67
+ "@types/react": "^18.3.12",
68
+ "@types/react-dom": "^18.3.1",
57
69
  "@types/react-highlight-words": "^0.20.0",
58
70
  "@types/uuid": "^10.0.0",
59
- "@typescript-eslint/eslint-plugin": "^8.1.0",
60
- "@typescript-eslint/parser": "^8.1.0",
61
- "@vitejs/plugin-react": "^4.3.1",
71
+ "@types/wellknown": "^0.5.8",
72
+ "@typescript-eslint/eslint-plugin": "^8.12.1",
73
+ "@typescript-eslint/parser": "^8.12.1",
74
+ "@vitejs/plugin-react": "^4.3.3",
75
+ "antd": "^5.21.6",
76
+ "axios": "^1.7.7",
62
77
  "colors": "^1.4.0",
63
- "eslint": "^8.57.0",
78
+ "eslint": "^8.57.1",
64
79
  "eslint-plugin-react-hooks": "^4.6.2",
65
80
  "eslint-plugin-simple-import-sort": "^12.1.1",
66
81
  "eslint-plugin-storybook": "^0.8.0",
@@ -69,16 +84,16 @@
69
84
  "prettier": "^3.3.3",
70
85
  "react": "^18.3.1",
71
86
  "react-dom": "^18.3.1",
72
- "rollup": "^4.20.0",
87
+ "rollup": "^4.24.3",
73
88
  "rollup-plugin-copy": "^3.5.0",
74
89
  "rollup-plugin-delete": "^2.0.0",
75
90
  "rollup-plugin-dts": "^6.1.1",
76
91
  "rollup-plugin-peer-deps-external": "^2.2.4",
77
92
  "rollup-plugin-postcss": "^4.0.2",
78
- "storybook": "^8.2.9",
79
- "tslib": "^2.6.3",
80
- "typescript": "^5.5.4",
81
- "vite": "^5.4.1",
93
+ "storybook": "^8.3.6",
94
+ "tslib": "^2.8.0",
95
+ "typescript": "^5.6.3",
96
+ "vite": "^5.4.10",
82
97
  "vite-plugin-svgr": "^4.2.0"
83
98
  },
84
99
  "peerDependencies": {