@icos-desktop/react-components 0.1.19 → 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.
- package/build/index.d.ts +96 -107
- package/build/index.esm.js +26 -5
- package/build/index.js +26 -5
- package/build/index.umd.js +26 -5
- package/build/types/components/BookGroupTable/BookGroupTable.d.ts +4 -0
- package/build/types/components/BookGroupTable/BookGroupTable.stories.d.ts +7 -0
- package/build/types/components/BookGroupTable/components/ContextMenu/index.d.ts +5 -0
- package/build/types/components/BookGroupTable/index.d.ts +1 -0
- package/build/types/components/BookGroupTable/utils/index.d.ts +1 -0
- package/build/types/components/BookTable/BookTable.d.ts +4 -0
- package/build/types/components/BookTable/BookTable.stories.d.ts +7 -0
- package/build/types/components/BookTable/components/ContextMenu/index.d.ts +5 -0
- package/build/types/components/BookTable/index.d.ts +1 -0
- package/build/types/components/OrgTreeSelect/OrgTreeSelect.d.ts +4 -0
- package/build/types/components/OrgTreeSelect/OrgTreeSelect.stories.d.ts +7 -0
- package/build/types/components/OrgTreeSelect/index.d.ts +1 -0
- package/build/types/components/ProTable/ProTable.d.ts +4 -0
- package/build/types/components/ProTable/ProTable.stories.d.ts +7 -0
- package/build/types/components/ProTable/components/ColumnsConfig/index.d.ts +10 -0
- package/build/types/components/ProTable/index.d.ts +1 -0
- package/build/types/components/RegionTree/RegionTree.d.ts +4 -0
- package/build/types/components/RegionTree/RegionTree.stories.d.ts +7 -0
- package/build/types/components/RegionTree/RegionTree.types.d.ts +33 -0
- package/build/types/components/RegionTree/index.d.ts +1 -0
- package/build/types/components/RegionTree/service/index.d.ts +12 -0
- package/build/types/components/RegionTree/service/index.types.d.ts +25 -0
- package/build/types/components/RegionTreeSelect/RegionTreeSelect.d.ts +4 -0
- package/build/types/components/RegionTreeSelect/RegionTreeSelect.stories.d.ts +7 -0
- package/build/types/components/RegionTreeSelect/index.d.ts +1 -0
- package/build/types/components/RelationGraph/RelationGraph.d.ts +4 -0
- package/build/types/components/RelationGraph/RelationGraph.stories.d.ts +7 -0
- package/build/types/components/RelationGraph/components/Graph/index.d.ts +5 -0
- package/build/types/components/RelationGraph/index.d.ts +1 -0
- package/build/types/components/SenseCreate/SenseCreate.d.ts +4 -0
- package/build/types/components/SenseCreate/SenseCreate.stories.d.ts +7 -0
- package/build/types/components/SenseCreate/index.d.ts +1 -0
- package/build/types/components/SenseDetail/SenseDetail.d.ts +4 -0
- package/build/types/components/SenseDetail/SenseDetail.stories.d.ts +7 -0
- package/build/types/components/SenseDetail/components/Base/index.d.ts +6 -0
- package/build/types/components/SenseDetail/components/BookList/index.d.ts +7 -0
- package/build/types/components/SenseDetail/components/Content/components/Card/index.d.ts +6 -0
- package/build/types/components/SenseDetail/components/Content/components/List/Item/index.d.ts +6 -0
- package/build/types/components/SenseDetail/components/Content/components/List/index.d.ts +6 -0
- package/build/types/components/SenseDetail/components/Content/index.d.ts +7 -0
- package/build/types/components/SenseDetail/components/Relation/index.d.ts +6 -0
- package/build/types/components/SenseDetail/index.d.ts +1 -0
- package/build/types/components/SenseEdit/SenseEdit.d.ts +4 -0
- package/build/types/components/SenseEdit/SenseEdit.stories.d.ts +7 -0
- package/build/types/components/SenseEdit/index.d.ts +1 -0
- package/build/types/components/SenseForm/SenseForm.d.ts +4 -0
- package/build/types/components/SenseForm/SenseForm.stories.d.ts +7 -0
- package/build/types/components/SenseForm/index.d.ts +1 -0
- package/build/types/components/SenseInfo/SenseInfo.d.ts +4 -0
- package/build/types/components/SenseInfo/SenseInfo.stories.d.ts +7 -0
- package/build/types/components/SenseInfo/components/FileView/index.d.ts +10 -0
- package/build/types/components/SenseInfo/components/ImageView/index.d.ts +10 -0
- package/build/types/components/SenseInfo/components/Render/index.d.ts +7 -0
- package/build/types/components/SenseInfo/components/TagsView/index.d.ts +6 -0
- package/build/types/components/SenseInfo/index.d.ts +1 -0
- package/build/types/components/SenseInfo/utils/schema.d.ts +2 -0
- package/build/types/components/SenseManager/SenseManager.d.ts +4 -0
- package/build/types/components/SenseManager/SenseManager.stories.d.ts +6 -0
- package/build/types/components/SenseManager/components/Filter/index.d.ts +10 -0
- package/build/types/components/SenseManager/components/FormItem/index.d.ts +11 -0
- package/build/types/components/SenseManager/components/SideBar/index.d.ts +9 -0
- package/build/types/components/SenseManager/index.d.ts +1 -0
- package/build/types/components/SenseManager/settings.d.ts +2 -0
- package/build/types/components/SenseManager/utils/index.d.ts +5 -0
- package/build/types/components/SenseSearch/SenseSearch.d.ts +4 -0
- package/build/types/components/SenseSearch/SenseSearch.stories.d.ts +7 -0
- package/build/types/components/SenseSearch/components/AdvancedSearch/KnnItems/index.d.ts +18 -0
- package/build/types/components/SenseSearch/components/AdvancedSearch/index.d.ts +5 -0
- package/build/types/components/SenseSearch/components/Tabs/index.d.ts +17 -0
- package/build/types/components/SenseSearch/constants/index.d.ts +41 -0
- package/build/types/components/SenseSearch/index.d.ts +1 -0
- package/build/types/components/SenseTable/SenseTable.d.ts +4 -0
- package/build/types/components/SenseTable/SenseTable.stories.d.ts +7 -0
- package/build/types/components/SenseTable/components/ContextMenu/index.d.ts +5 -0
- package/build/types/components/SenseTable/components/TagsModal/index.d.ts +12 -0
- package/build/types/components/SenseTable/index.d.ts +1 -0
- package/build/types/components/SenseTree/SenseTree.d.ts +4 -0
- package/build/types/components/SenseTree/SenseTree.stories.d.ts +8 -0
- package/build/types/components/SenseTree/index.d.ts +1 -0
- package/build/types/components/SenseTree/utils/index.d.ts +21 -0
- package/build/types/components/SenseUpload/SenseUpload.d.ts +4 -0
- package/build/types/components/SenseUpload/SenseUpload.stories.d.ts +7 -0
- package/build/types/components/SenseUpload/index.d.ts +1 -0
- package/build/types/components/SenseUpload/utils/index.d.ts +1 -0
- package/build/types/components/SenseView/SenseView.d.ts +4 -0
- package/build/types/components/SenseView/SenseView.stories.d.ts +6 -0
- package/build/types/components/SenseView/index.d.ts +1 -0
- package/build/types/components/TagTreeSelect/TagTreeSelect.d.ts +12 -0
- package/build/types/components/TagTreeSelect/TagTreeSelect.stories.d.ts +7 -0
- package/build/types/components/TagTreeSelect/index.d.ts +1 -0
- package/build/types/components/VideoPlayer/VideoPlayer.d.ts +4 -0
- package/build/types/components/VideoPlayer/VideoPlayer.stories.d.ts +8 -0
- package/build/types/components/VideoPlayer/components/Cityeyes/index.d.ts +7 -0
- package/build/types/components/VideoPlayer/components/H5player/index.d.ts +7 -0
- package/build/types/components/VideoPlayer/components/Player/index.d.ts +5 -0
- package/build/types/components/VideoPlayer/index.d.ts +1 -0
- package/build/types/constants/pagination.d.ts +10 -0
- package/build/types/hooks/useEntityClass/index.d.ts +5 -0
- package/build/types/hooks/useKsCode/index.d.ts +5 -0
- package/build/types/hooks/useMeeting/index.d.ts +4 -0
- package/build/types/hooks/useRelationList/RelationList/index.d.ts +15 -0
- package/build/types/hooks/useRelationList/index.d.ts +6 -0
- package/build/types/index.d.ts +22 -0
- package/build/types/internal/context/api.d.ts +2 -0
- package/build/types/internal/hoc/withApi.d.ts +3 -0
- package/build/types/internal/hooks/useApi.d.ts +2 -0
- package/build/types/internal/utils/req.d.ts +3 -0
- package/build/types/internal/utils/request.d.ts +4 -0
- package/build/types/internal/widgets/FileView/index.d.ts +5 -0
- package/build/types/internal/widgets/ImageView/index.d.ts +5 -0
- package/build/types/services/dataManager.d.ts +1 -0
- package/build/types/services/entity.d.ts +1 -0
- package/build/types/services/entityManager.d.ts +2 -0
- package/build/types/services/gis.d.ts +2 -0
- package/build/types/services/mapWindow.d.ts +2 -0
- package/build/types/services/org.d.ts +2 -0
- package/build/types/services/senseForm.d.ts +12 -0
- package/build/types/services/senseManager.d.ts +4 -0
- package/build/types/services/senseSearch.d.ts +6 -0
- package/build/types/services/user.d.ts +1 -0
- package/build/types/services/view.d.ts +1 -0
- package/build/types/utils/config.d.ts +5 -0
- package/build/types/utils/contexify.d.ts +11 -0
- package/build/types/utils/map.d.ts +12 -0
- package/build/types/utils/request.d.ts +9 -0
- package/build/types/utils/request2.d.ts +3 -0
- package/build/types/utils/sense.d.ts +11 -0
- package/build/types/utils/tree.d.ts +5 -0
- 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,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,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 @@
|
|
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,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 @@
|
|
1
|
+
export { default } from './VideoPlayer';
|
@@ -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 @@
|
|
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,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,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,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
|
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.
|
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.
|
36
|
-
"@chromatic-com/storybook": "^1.
|
37
|
-
"@rollup/plugin-alias": "^5.1.
|
38
|
-
"@rollup/plugin-commonjs": "^26.0.
|
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.
|
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.
|
46
|
-
"@storybook/addon-interactions": "^8.
|
47
|
-
"@storybook/addon-links": "^8.
|
48
|
-
"@storybook/addon-onboarding": "^8.
|
49
|
-
"@storybook/blocks": "^8.
|
50
|
-
"@storybook/react": "^8.
|
51
|
-
"@storybook/react-vite": "^8.
|
52
|
-
"@storybook/test": "^8.
|
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.
|
55
|
-
"@types/react": "^18.3.
|
56
|
-
"@types/react-dom": "^18.3.
|
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
|
-
"@
|
60
|
-
"@typescript-eslint/
|
61
|
-
"@
|
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.
|
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.
|
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.
|
79
|
-
"tslib": "^2.
|
80
|
-
"typescript": "^5.
|
81
|
-
"vite": "^5.4.
|
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": {
|