scorer-ui-kit 1.7.17 → 1.7.18
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/Alerts/atom/Notification.d.ts +4 -2
- package/dist/CameraPanels/atoms/MediaStream.d.ts +14 -0
- package/dist/CameraPanels/atoms/PanelMetaData.d.ts +11 -0
- package/dist/CameraPanels/index.d.ts +6 -0
- package/dist/CameraPanels/molecules/CameraPanel.d.ts +14 -0
- package/dist/CameraPanels/organisms/CameraPanels.d.ts +7 -0
- package/dist/Form/atoms/ButtonWithIcon.d.ts +2 -2
- package/dist/Misc/atoms/ActionsBar.d.ts +16 -0
- package/dist/Misc/atoms/MediaBox.d.ts +9 -1
- package/dist/Misc/index.d.ts +3 -2
- package/dist/Tables/atoms/TableRowThumbnail.d.ts +2 -0
- package/dist/common/index.d.ts +1 -0
- package/dist/context/NotificationContext.d.ts +1 -0
- package/dist/helpers/index.d.ts +2 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +706 -414
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +705 -416
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,13 +8,15 @@ export declare const IconNames: {
|
|
|
8
8
|
neutral: string;
|
|
9
9
|
};
|
|
10
10
|
export declare type INotificationProps = {
|
|
11
|
+
id?: string;
|
|
11
12
|
type: AlertType;
|
|
12
13
|
message: string;
|
|
13
|
-
icon?: string;
|
|
14
14
|
actionTextButton?: string;
|
|
15
|
+
isPinned?: boolean;
|
|
16
|
+
closeNow?: boolean;
|
|
17
|
+
icon?: string;
|
|
15
18
|
onTextButtonClick?: () => void;
|
|
16
19
|
closeCallback?: () => void;
|
|
17
|
-
isPinned?: boolean;
|
|
18
20
|
};
|
|
19
21
|
declare const Notification: React.FC<INotificationProps>;
|
|
20
22
|
export default Notification;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IFeedbackColor } from '../..';
|
|
3
|
+
import { IMediaModal } from '../../Misc/atoms/MediaBox';
|
|
4
|
+
export interface IMediaStream extends IMediaModal {
|
|
5
|
+
isEmptyWithIcon?: boolean;
|
|
6
|
+
emptyIcon?: string;
|
|
7
|
+
status?: IFeedbackColor;
|
|
8
|
+
noticeMessage?: string;
|
|
9
|
+
noticeTitle?: string;
|
|
10
|
+
noticeIcon?: string;
|
|
11
|
+
hasNotice?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const MediaStream: React.FC<IMediaStream>;
|
|
14
|
+
export default MediaStream;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IPanelMetaData {
|
|
3
|
+
deviceIcon?: string;
|
|
4
|
+
leftSubTitle?: string;
|
|
5
|
+
leftTitle?: string;
|
|
6
|
+
rightTitle?: string;
|
|
7
|
+
rightSubTitle?: string;
|
|
8
|
+
hideIcon?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const PanelMetaData: React.FC<IPanelMetaData>;
|
|
11
|
+
export default PanelMetaData;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import CameraPanels from "./organisms/CameraPanels";
|
|
2
|
+
import CameraPanel, { ICameraPanel, CameraPanelWrapper } from "./molecules/CameraPanel";
|
|
3
|
+
import MediaStream, { IMediaStream } from "./atoms/MediaStream";
|
|
4
|
+
import PanelMetaData, { IPanelMetaData } from "./atoms/PanelMetaData";
|
|
5
|
+
export { CameraPanels, CameraPanel, PanelMetaData, MediaStream, CameraPanelWrapper };
|
|
6
|
+
export type { ICameraPanel, IMediaStream, IPanelMetaData };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
import { IMediaStream } from '../atoms/MediaStream';
|
|
3
|
+
import { IPanelMetaData } from '../atoms/PanelMetaData';
|
|
4
|
+
export declare const CameraPanelWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
5
|
+
hasOnClick: boolean;
|
|
6
|
+
}, never>;
|
|
7
|
+
export interface ICameraPanel {
|
|
8
|
+
streamProps: IMediaStream;
|
|
9
|
+
panelMetaData?: IPanelMetaData;
|
|
10
|
+
customBottom?: ReactElement;
|
|
11
|
+
panelOnClick?: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const NewComponent: React.FC<ICameraPanel>;
|
|
14
|
+
export default NewComponent;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IButtonProps } from '..';
|
|
3
|
-
interface
|
|
3
|
+
export interface IButtonWithIcon extends IButtonProps {
|
|
4
4
|
icon: string;
|
|
5
5
|
position?: 'left' | 'right';
|
|
6
6
|
}
|
|
7
|
-
declare const ButtonWithIcon: React.FC<
|
|
7
|
+
declare const ButtonWithIcon: React.FC<IButtonWithIcon>;
|
|
8
8
|
export default ButtonWithIcon;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IButtonWithIcon } from '../../Form/atoms/ButtonWithIcon';
|
|
3
|
+
export interface IActionsButton extends IButtonWithIcon {
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IActionsBar {
|
|
7
|
+
title?: string;
|
|
8
|
+
finishTextButton?: string;
|
|
9
|
+
actionButtons?: IActionsButton[];
|
|
10
|
+
selectedTemplate?: string;
|
|
11
|
+
totalSelected?: number;
|
|
12
|
+
totalAvailable?: number;
|
|
13
|
+
finishCallback?: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const ActionsBar: React.FC<IActionsBar>;
|
|
16
|
+
export default ActionsBar;
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import React, { VideoHTMLAttributes } from 'react';
|
|
2
2
|
import { IMediaType } from '../../index';
|
|
3
|
+
export declare const MediaBoxWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
4
|
+
minWidth?: string | undefined;
|
|
5
|
+
minHeight?: string | undefined;
|
|
6
|
+
}, never>;
|
|
3
7
|
export interface IMediaModal {
|
|
4
8
|
src: string;
|
|
5
9
|
mediaType: IMediaType;
|
|
6
10
|
alt?: string;
|
|
7
11
|
videoOptions?: VideoHTMLAttributes<HTMLVideoElement>;
|
|
8
12
|
hasModalLimits?: boolean;
|
|
9
|
-
|
|
13
|
+
retryLoading?: boolean;
|
|
14
|
+
retryLimit?: number;
|
|
15
|
+
minWidth?: string;
|
|
16
|
+
minHeight?: string;
|
|
17
|
+
onError?: (e: Event) => void;
|
|
10
18
|
onMediaLoad?: () => void;
|
|
11
19
|
}
|
|
12
20
|
declare const MediaBox: React.FC<IMediaModal>;
|
package/dist/Misc/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ import BasicSearchInput from './atoms/BasicSearchInput';
|
|
|
4
4
|
import BigIconsSummary from './atoms/BigIconsSummary';
|
|
5
5
|
import MediaBox from './atoms/MediaBox';
|
|
6
6
|
import DebouncedSearcher from './molecules/DebouncedSearcher';
|
|
7
|
-
|
|
8
|
-
export
|
|
7
|
+
import ActionsBar, { IActionsBar, IActionsButton } from './atoms/ActionsBar';
|
|
8
|
+
export { Tag, TagList, TagListWrapper, MediaBox, BasicSearchInput, BigIconsSummary, DebouncedSearcher, ActionsBar };
|
|
9
|
+
export type { ITagList, ITag, IActionsBar, IActionsButton };
|
package/dist/common/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const RowCss: import("styled-components").FlattenSimpleInterpolation;
|
|
2
2
|
export declare const ColumnCss: import("styled-components").FlattenSimpleInterpolation;
|
|
3
3
|
export declare const resetButtonStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
4
|
+
export declare const EllipsisStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { INotificationProps } from '../Alerts/atom/Notification';
|
|
3
3
|
declare type NotificationContextType = {
|
|
4
4
|
sendNotification: (newNotification: INotificationProps) => void;
|
|
5
|
+
clearNotifications: () => void;
|
|
5
6
|
};
|
|
6
7
|
declare const NotificationContext: React.Context<NotificationContextType>;
|
|
7
8
|
declare const NotificationProvider: React.FC;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -15,4 +15,5 @@ export declare const isTimeUnit: (value: any) => boolean;
|
|
|
15
15
|
declare const getTopLevelPath: (pathname: string) => string;
|
|
16
16
|
declare const getImageType: (img: HTMLImageElement) => string;
|
|
17
17
|
declare const isValidImage: (file: File) => boolean;
|
|
18
|
-
|
|
18
|
+
declare const uniqueID: () => string;
|
|
19
|
+
export { clamp, isValidImage, getImageType, getTextTimeUnit, isInsideRange, getShortTextTimeUnit, getTopLevelPath, uniqueID };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ import { LineUI, LineUIVideo, LineUIRTC, LineSetContext, LineReducer } from './L
|
|
|
10
10
|
import { IntroductionText, PageHeader, PageTitle, MultilineContent } from './Pages';
|
|
11
11
|
import { TypeTable, TableRowThumbnail, TableHeaderTitle, EditCell } from './Tables';
|
|
12
12
|
import { Controls, PTZProvider, PTZReducer, usePTZ, PTZContext } from './PTZControl';
|
|
13
|
-
import {
|
|
13
|
+
import { CameraPanels, CameraPanelWrapper, ICameraPanel, IMediaStream, IPanelMetaData } from './CameraPanels';
|
|
14
|
+
import { Tag, TagList, ITag, ITagList, TagListWrapper, MediaBox, BasicSearchInput, DebouncedSearcher, ActionsBar, IActionsButton } from './Misc';
|
|
14
15
|
import { ConfirmationModal } from './Modals';
|
|
15
16
|
import { useInterval, useTo, useTitle, useCopyToClipboard, useModal, useNotification, useClickOutside, useMediaModal, IModal, usePoll } from './hooks';
|
|
16
17
|
import { NotificationProvider, ModalContext, ModalProvider } from './context';
|
|
@@ -19,7 +20,7 @@ import Spinner from './Indicators/Spinner';
|
|
|
19
20
|
import WebRTCClient from './WebRTCClient';
|
|
20
21
|
import { MainMenu, TopBar, Content, Layout, MainContainer, SidebarBox, SidebarLink, SidebarHeading, Logo, SidebarLinkHeading, BackLink, Sidebar, GlobalUI, INotificationItem, INotificationsHistory, ICustomDrawer } from './Global';
|
|
21
22
|
import { Tabs, TabContext, Tab, TabList, TabContent, TabWithIcon, TabsWithIconBar, ITabIcon } from './Tabs';
|
|
22
|
-
export { darkTheme, lightTheme, themeFallbackHelper, AlertBar, Notification, AlertWrapper, LineUI, LineUIVideo, LineUIRTC, LineSetContext, LineReducer, Form, Button, ButtonWithIcon, ButtonWithLoading, IconButton, ActionButtons, Input, SmallInput, Label, Switch, Checkbox, PasswordField, TextField, TextArea, TextAreaField, SliderInput, DurationSlider, PercentageSlider, InputFileButton, DropArea, CropTool, AvatarUploader, SelectField, SelectWrapper, AreaUploadManager, RadioButton, ConfirmationModal, DatePicker, FilterDropdownContainer, FilterButton, FilterDropdown, SortDropdown, FilterInputs, FiltersResults, FilterBar, isFilterItem, isDateInterval, Icon, IconSVGs, StatusIcon, IntroductionText, PageHeader, PageTitle, MultilineContent, Controls, PTZProvider, PTZContext, PTZReducer, usePTZ, TypeTable, TableRowThumbnail, TableHeaderTitle, EditCell, useInterval, useTo, useTitle, useCopyToClipboard, useClickOutside, usePoll, useMediaModal, resetButtonStyles, Spinner, WebRTCClient, MainMenu, TopBar, MainContainer, Layout, Content, SidebarBox, SidebarLink, SidebarHeading, Logo, SidebarLinkHeading, BackLink, Sidebar, GlobalUI, Tabs, TabContext, Tab, TabList, TabContent, TabWithIcon, TabsWithIconBar, Tag, TagList, TagListWrapper, MediaBox, BasicSearchInput, DebouncedSearcher, NotificationProvider, useNotification, ModalContext, ModalProvider, useModal };
|
|
23
|
+
export { darkTheme, lightTheme, themeFallbackHelper, AlertBar, Notification, AlertWrapper, LineUI, LineUIVideo, LineUIRTC, LineSetContext, LineReducer, Form, Button, ButtonWithIcon, ButtonWithLoading, IconButton, ActionButtons, Input, SmallInput, Label, Switch, Checkbox, PasswordField, TextField, TextArea, TextAreaField, SliderInput, DurationSlider, PercentageSlider, InputFileButton, DropArea, CropTool, AvatarUploader, SelectField, SelectWrapper, AreaUploadManager, RadioButton, ConfirmationModal, DatePicker, FilterDropdownContainer, FilterButton, FilterDropdown, SortDropdown, FilterInputs, FiltersResults, FilterBar, isFilterItem, isDateInterval, Icon, IconSVGs, StatusIcon, IntroductionText, PageHeader, PageTitle, MultilineContent, Controls, PTZProvider, PTZContext, PTZReducer, usePTZ, TypeTable, TableRowThumbnail, TableHeaderTitle, EditCell, useInterval, useTo, useTitle, useCopyToClipboard, useClickOutside, usePoll, useMediaModal, resetButtonStyles, Spinner, WebRTCClient, MainMenu, TopBar, MainContainer, Layout, Content, SidebarBox, SidebarLink, SidebarHeading, Logo, SidebarLinkHeading, BackLink, Sidebar, GlobalUI, Tabs, TabContext, Tab, TabList, TabContent, TabWithIcon, TabsWithIconBar, CameraPanels, CameraPanelWrapper, Tag, TagList, TagListWrapper, MediaBox, BasicSearchInput, DebouncedSearcher, ActionsBar, NotificationProvider, useNotification, ModalContext, ModalProvider, useModal };
|
|
23
24
|
/**
|
|
24
25
|
* Values based on colors.feedback from theme
|
|
25
26
|
*/
|
|
@@ -27,4 +28,4 @@ export declare type IFeedbackColor = 'error' | 'warning' | 'info' | 'success' |
|
|
|
27
28
|
export declare type ITimeUnit = 'seconds' | 'minutes' | 'hours';
|
|
28
29
|
export declare type IMediaType = 'img' | 'video';
|
|
29
30
|
export declare type IStatusDot = 'caution' | 'danger' | 'good' | 'neutral' | 'highlight';
|
|
30
|
-
export type { IModal, INotificationProps, IconButtonData, ITag, ITagList, ISliderMark, INotificationItem, INotificationsHistory, ICustomDrawer, ISearchFilter, IFilterDropdownExt, IFilterLabel, IFilterDropdownConfig, ITabIcon, IFilterType, IFilterItem, IFilterValue, IFilterResult, DateInterval, IFilterDatePicker, };
|
|
31
|
+
export type { IModal, INotificationProps, IconButtonData, ITag, ITagList, ISliderMark, INotificationItem, INotificationsHistory, ICustomDrawer, ISearchFilter, IFilterDropdownExt, IFilterLabel, IFilterDropdownConfig, ITabIcon, IFilterType, IFilterItem, IFilterValue, IFilterResult, DateInterval, IFilterDatePicker, ICameraPanel, IMediaStream, IPanelMetaData, IActionsButton };
|