@conboai/storybook.components 0.4.96 → 0.4.99
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/components/CustomDataGrid/CustomDataGrid.d.ts +3 -3
- package/dist/components/Geo/Geo.d.ts +1 -1
- package/dist/components/Geo/types.d.ts +2 -2
- package/dist/components/MapPlayer/MapPlayer.d.ts +3 -3
- package/dist/components/PlayerPanel/PlayerPanel.d.ts +9 -9
- package/dist/storybook.components.mjs +7390 -7381
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { GridColDef, GridSortModel, GridPaginationModel, GridCallbackDetails } from '@mui/x-data-grid-pro';
|
|
2
|
+
import { GridColDef, GridSortModel, GridPaginationModel, GridCallbackDetails, GridRowId, GridRowParams } from '@mui/x-data-grid-pro';
|
|
3
3
|
|
|
4
4
|
export interface CustomDataGridProps {
|
|
5
5
|
columns: GridColDef[];
|
|
@@ -13,11 +13,11 @@ export interface CustomDataGridProps {
|
|
|
13
13
|
totalRows?: number;
|
|
14
14
|
onSortModelChange?: (model: GridSortModel) => void;
|
|
15
15
|
onPaginationModelChange?: (model: GridPaginationModel, details: GridCallbackDetails<any>) => void;
|
|
16
|
-
onCellClick?: (params:
|
|
16
|
+
onCellClick?: (params: GridRowParams) => void;
|
|
17
17
|
onRowsScrollEnd?: () => void;
|
|
18
18
|
total?: number;
|
|
19
19
|
hideFooter?: boolean;
|
|
20
|
-
selectedRowId?:
|
|
20
|
+
selectedRowId?: GridRowId;
|
|
21
21
|
onRowIdSelect?: (value: number | null | string) => void;
|
|
22
22
|
csvFileName?: string;
|
|
23
23
|
csvHeaders?: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { GeoComponentProps } from './types';
|
|
3
3
|
|
|
4
|
-
declare const Geo: (
|
|
4
|
+
declare const Geo: (props: GeoComponentProps) => React.JSX.Element;
|
|
5
5
|
export default Geo;
|
|
@@ -37,12 +37,12 @@ export interface GeoComponentProps {
|
|
|
37
37
|
mode?: GeoMode;
|
|
38
38
|
showDirection?: boolean;
|
|
39
39
|
resetKey?: number;
|
|
40
|
-
data?: GeoType[]
|
|
40
|
+
data?: GeoType[];
|
|
41
41
|
onMouseMove?: (coordinatePoint: CoordinatePoint) => void;
|
|
42
42
|
showNumbers?: boolean;
|
|
43
43
|
allowDelete?: boolean;
|
|
44
44
|
allowAdd?: boolean;
|
|
45
|
-
selectedGeoId?: string
|
|
45
|
+
selectedGeoId?: string;
|
|
46
46
|
zoom?: number;
|
|
47
47
|
fitZoom?: boolean;
|
|
48
48
|
mapCentering?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { SxProps } from '@mui/material';
|
|
3
|
-
import { CoordinatePoint, GeoMode } from '../Geo/types';
|
|
3
|
+
import { CoordinatePoint, GeoMode, GeoType } from '../Geo/types';
|
|
4
4
|
|
|
5
5
|
export interface IMapPlayerProps {
|
|
6
|
-
data
|
|
6
|
+
data?: GeoType[];
|
|
7
7
|
onChange?: (point: any) => void;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
sx?: SxProps;
|
|
@@ -17,7 +17,7 @@ export interface IMapPlayerProps {
|
|
|
17
17
|
initialCurrentIndex?: number;
|
|
18
18
|
onCurrentIndexChange?: (newIndex: number) => void;
|
|
19
19
|
timezone?: string;
|
|
20
|
-
center?: CoordinatePoint;
|
|
20
|
+
center?: CoordinatePoint | null;
|
|
21
21
|
mapHeight?: string;
|
|
22
22
|
startDate?: string;
|
|
23
23
|
endDate?: string;
|
|
@@ -2,7 +2,7 @@ import { default as React, ReactNode } from 'react';
|
|
|
2
2
|
|
|
3
3
|
interface IPlayerPanel {
|
|
4
4
|
disabled?: boolean;
|
|
5
|
-
data:
|
|
5
|
+
data: unknown[];
|
|
6
6
|
startTime?: string;
|
|
7
7
|
currentTime?: string;
|
|
8
8
|
endTime?: string;
|
|
@@ -10,15 +10,15 @@ interface IPlayerPanel {
|
|
|
10
10
|
isPlayingForward?: boolean;
|
|
11
11
|
isPlayingBackward?: boolean;
|
|
12
12
|
currentIndex?: number;
|
|
13
|
-
onSliderChange
|
|
14
|
-
onSliderChangeCommitted
|
|
15
|
-
onValueLabelFormat
|
|
16
|
-
onStep
|
|
17
|
-
onPlayingBackwardClick
|
|
18
|
-
onPlayingForwardClick
|
|
19
|
-
onSetStepForAutoPlay
|
|
13
|
+
onSliderChange?: (event: any, newValue: any) => void;
|
|
14
|
+
onSliderChangeCommitted?: (event: any, newValue: any) => void;
|
|
15
|
+
onValueLabelFormat?: string | ((value: number, index: number) => ReactNode);
|
|
16
|
+
onStep?: (value: number) => void;
|
|
17
|
+
onPlayingBackwardClick?: () => void;
|
|
18
|
+
onPlayingForwardClick?: () => void;
|
|
19
|
+
onSetStepForAutoPlay?: (value: number) => void;
|
|
20
20
|
stepForAutoPlay: number;
|
|
21
21
|
maxSliderValue?: number;
|
|
22
22
|
}
|
|
23
|
-
declare const PlayerPanel: ({ disabled,
|
|
23
|
+
declare const PlayerPanel: ({ disabled, startTime, currentTime, endTime, delay, data, isPlayingBackward, isPlayingForward, currentIndex, onSliderChange, onSliderChangeCommitted, onValueLabelFormat, onStep, onPlayingBackwardClick, onPlayingForwardClick, onSetStepForAutoPlay, stepForAutoPlay, maxSliderValue, }: IPlayerPanel) => React.JSX.Element;
|
|
24
24
|
export default PlayerPanel;
|