ados-rcm 1.0.0
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/README.md +92 -0
- package/dist/CComponents/CButton/CButton.d.ts +20 -0
- package/dist/CComponents/CChart/CChart.d.ts +43 -0
- package/dist/CComponents/CCheckBox/CCheckBox.d.ts +14 -0
- package/dist/CComponents/CContainer/CContainer.d.ts +112 -0
- package/dist/CComponents/CContainer/CContainerContext.d.ts +47 -0
- package/dist/CComponents/CDatePicker/CDatePicker.d.ts +46 -0
- package/dist/CComponents/CDialog/CDialog.d.ts +33 -0
- package/dist/CComponents/CEditor/CEditor.d.ts +32 -0
- package/dist/CComponents/CFileBox/CFileBox.d.ts +14 -0
- package/dist/CComponents/CFloatingMenu/CFloatingMenu.d.ts +25 -0
- package/dist/CComponents/CIcon/icons.d.ts +67 -0
- package/dist/CComponents/CIpRangePicker/CIpRangePicker.d.ts +11 -0
- package/dist/CComponents/CLabeledItem/CLabeledItem.d.ts +10 -0
- package/dist/CComponents/CList/CList.d.ts +10 -0
- package/dist/CComponents/CListView/CListView.d.ts +19 -0
- package/dist/CComponents/CMenu/CMenu.d.ts +18 -0
- package/dist/CComponents/CSelect/CMultiSelect.d.ts +21 -0
- package/dist/CComponents/CSelect/CSelect.d.ts +22 -0
- package/dist/CComponents/CStepper/CStepper.d.ts +28 -0
- package/dist/CComponents/CSwitch/CSwitch.d.ts +15 -0
- package/dist/CComponents/CTable/CTable.d.ts +12 -0
- package/dist/CComponents/CTable/CTableBody.d.ts +34 -0
- package/dist/CComponents/CTable/CTableFilter.d.ts +46 -0
- package/dist/CComponents/CTable/CTableFooter.d.ts +2 -0
- package/dist/CComponents/CTable/CTableHeader.d.ts +4 -0
- package/dist/CComponents/CTable/CTableWidthChanger.d.ts +11 -0
- package/dist/CComponents/CTable/ICTable.d.ts +157 -0
- package/dist/CComponents/CTable/exports.d.ts +3 -0
- package/dist/CComponents/CTabs/CTabs.d.ts +37 -0
- package/dist/CComponents/CText/CPlainText.d.ts +8 -0
- package/dist/CComponents/CText/CStyledText.d.ts +13 -0
- package/dist/CComponents/CTextField/CTextField.d.ts +50 -0
- package/dist/CComponents/CTimer/CTimer.d.ts +9 -0
- package/dist/CComponents/CTree/CTree.d.ts +71 -0
- package/dist/CComponents/CTree/CTreeSearchModule.d.ts +11 -0
- package/dist/CComponents/index.d.ts +27 -0
- package/dist/index.cjs.js +1110 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +71447 -0
- package/package.json +57 -0
package/README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# ReactComponentModule
|
|
2
|
+
|
|
3
|
+
React Component for ADOS
|
|
4
|
+
|
|
5
|
+
## Getting started
|
|
6
|
+
|
|
7
|
+
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
|
8
|
+
|
|
9
|
+
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
+
|
|
11
|
+
## Add your files
|
|
12
|
+
|
|
13
|
+
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
14
|
+
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
cd existing_repo
|
|
18
|
+
git remote add origin http://192.168.1.37/ados/arcm.git
|
|
19
|
+
git branch -M main
|
|
20
|
+
git push -uf origin main
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Integrate with your tools
|
|
24
|
+
|
|
25
|
+
- [ ] [Set up project integrations](http://192.168.1.37/ados/arcm/-/settings/integrations)
|
|
26
|
+
|
|
27
|
+
## Collaborate with your team
|
|
28
|
+
|
|
29
|
+
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
|
30
|
+
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
|
31
|
+
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
|
32
|
+
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
|
33
|
+
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
|
34
|
+
|
|
35
|
+
## Test and Deploy
|
|
36
|
+
|
|
37
|
+
Use the built-in continuous integration in GitLab.
|
|
38
|
+
|
|
39
|
+
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
|
40
|
+
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
|
41
|
+
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
|
42
|
+
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
|
43
|
+
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
# Editing this README
|
|
48
|
+
|
|
49
|
+
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
|
50
|
+
|
|
51
|
+
## Suggestions for a good README
|
|
52
|
+
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
53
|
+
|
|
54
|
+
## Name
|
|
55
|
+
Choose a self-explaining name for your project.
|
|
56
|
+
|
|
57
|
+
## Description
|
|
58
|
+
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
59
|
+
|
|
60
|
+
## Badges
|
|
61
|
+
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
62
|
+
|
|
63
|
+
## Visuals
|
|
64
|
+
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
65
|
+
|
|
66
|
+
## Installation
|
|
67
|
+
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
68
|
+
|
|
69
|
+
## Usage
|
|
70
|
+
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
71
|
+
|
|
72
|
+
## Support
|
|
73
|
+
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
74
|
+
|
|
75
|
+
## Roadmap
|
|
76
|
+
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
77
|
+
|
|
78
|
+
## Contributing
|
|
79
|
+
State if you are open to contributions and what your requirements are for accepting them.
|
|
80
|
+
|
|
81
|
+
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
82
|
+
|
|
83
|
+
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
84
|
+
|
|
85
|
+
## Authors and acknowledgment
|
|
86
|
+
Show your appreciation to those who have contributed to the project.
|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
For open source projects, say how it is licensed.
|
|
90
|
+
|
|
91
|
+
## Project status
|
|
92
|
+
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { DetailedHTMLProps } from 'react';
|
|
2
|
+
type TCButtonTypes = 'primary' | 'secondary';
|
|
3
|
+
export interface INewButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'> {
|
|
4
|
+
colorType?: TCButtonTypes;
|
|
5
|
+
tooltip?: string;
|
|
6
|
+
disabled?: boolean | string;
|
|
7
|
+
display?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function CButton(props: INewButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export interface ICIconButtonProps extends DetailedHTMLProps<React.HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
12
|
+
icon?: JSX.Element;
|
|
13
|
+
tooltip?: string;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
buttonGroup?: boolean;
|
|
16
|
+
disabled?: boolean | string;
|
|
17
|
+
display?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const CIconButton: (props: ICIconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BarControllerChartOptions, ChartData, CoreChartOptions, DatasetChartOptions, DoughnutControllerChartOptions, ElementChartOptions, LineControllerChartOptions, Plugin, PluginChartOptions, Point, PolarAreaControllerChartOptions, ScaleChartOptions } from 'chart.js';
|
|
3
|
+
import 'chart.js/auto';
|
|
4
|
+
import { AnyObject } from 'chart.js/dist/types/basic';
|
|
5
|
+
import { _DeepPartialObject } from 'chart.js/dist/types/utils';
|
|
6
|
+
export type TCLineDataType = ChartData<'line', (number | Point | null)[], unknown>;
|
|
7
|
+
export type TCLineOptionType = _DeepPartialObject<CoreChartOptions<'line'> & ElementChartOptions<'line'> & PluginChartOptions<'line'> & DatasetChartOptions<'line'> & ScaleChartOptions<'line'> & LineControllerChartOptions>;
|
|
8
|
+
interface ICChartLineProps {
|
|
9
|
+
data: TCLineDataType;
|
|
10
|
+
options?: TCLineOptionType;
|
|
11
|
+
width?: string | number;
|
|
12
|
+
height?: string | number;
|
|
13
|
+
}
|
|
14
|
+
export declare const CChartLine: React.FC<ICChartLineProps>;
|
|
15
|
+
export type TCBarDataType = ChartData<'bar', (number | Point | null)[], unknown>;
|
|
16
|
+
export type TCBarOptionType = _DeepPartialObject<CoreChartOptions<'bar'> & ElementChartOptions<'bar'> & PluginChartOptions<'bar'> & DatasetChartOptions<'bar'> & ScaleChartOptions<'bar'> & BarControllerChartOptions>;
|
|
17
|
+
interface ICChartBarProps {
|
|
18
|
+
data: TCBarDataType;
|
|
19
|
+
options?: TCBarOptionType;
|
|
20
|
+
width?: string | number;
|
|
21
|
+
height?: string | number;
|
|
22
|
+
plugin?: Plugin<'bar', AnyObject>[];
|
|
23
|
+
}
|
|
24
|
+
export declare const CChartBar: React.FC<ICChartBarProps>;
|
|
25
|
+
export type TCDoughnutDataType = ChartData<'doughnut', (number | Point | null)[], unknown>;
|
|
26
|
+
export type TCDoughnutOptionType = _DeepPartialObject<CoreChartOptions<'doughnut'> & ElementChartOptions<'doughnut'> & PluginChartOptions<'doughnut'> & DatasetChartOptions<'doughnut'> & ScaleChartOptions<'doughnut'> & DoughnutControllerChartOptions>;
|
|
27
|
+
interface ICChartDoughnutProps {
|
|
28
|
+
data: TCDoughnutDataType;
|
|
29
|
+
options?: TCDoughnutOptionType;
|
|
30
|
+
width?: string | number;
|
|
31
|
+
height?: string | number;
|
|
32
|
+
}
|
|
33
|
+
export declare const CChartDoughnut: React.FC<ICChartDoughnutProps>;
|
|
34
|
+
export type TCPolarAreaDataType = ChartData<'polarArea', (number | Point | null)[], unknown>;
|
|
35
|
+
export type TCPolarAreaOptionType = _DeepPartialObject<CoreChartOptions<'polarArea'> & ElementChartOptions<'polarArea'> & PluginChartOptions<'polarArea'> & DatasetChartOptions<'polarArea'> & ScaleChartOptions<'polarArea'> & PolarAreaControllerChartOptions>;
|
|
36
|
+
interface ICChartPolarAreaProps {
|
|
37
|
+
data: TCPolarAreaDataType;
|
|
38
|
+
options?: TCPolarAreaOptionType;
|
|
39
|
+
width?: string | number;
|
|
40
|
+
height?: string | number;
|
|
41
|
+
}
|
|
42
|
+
export declare const CChartPolarArea: React.FC<ICChartPolarAreaProps>;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ICCheckBoxProps {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
indeterminate?: boolean;
|
|
5
|
+
disabled?: boolean | void;
|
|
6
|
+
onChange?: (value: TCheckBoxState) => void;
|
|
7
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
8
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
9
|
+
disablePropagation?: boolean;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
type TCheckBoxState = 0 | 1 | 2;
|
|
13
|
+
export declare function CCheckBox(props: ICCheckBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import React, { DetailedHTMLProps, ReactNode } from 'react';
|
|
2
|
+
import { ICContainerDefault, TMainMenu, TRightHalfContainers } from './CContainerContext';
|
|
3
|
+
export type TDivProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
4
|
+
export interface IContainerProps extends DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface ILeftContainerProps extends ICContainerDefault {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
disableDisplay?: boolean;
|
|
10
|
+
staticWidth?: boolean;
|
|
11
|
+
id: TMainMenu;
|
|
12
|
+
noHalf?: boolean;
|
|
13
|
+
additionalWidth?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function LeftContainer(props: ILeftContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export interface IRightContainerProps {
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
disableDisplay?: boolean;
|
|
19
|
+
compatible?: boolean;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
overflow?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function RightContainer(props: IRightContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
interface IRightHalfContainer extends ICContainerDefault {
|
|
25
|
+
left: ReactNode;
|
|
26
|
+
right: ReactNode;
|
|
27
|
+
id: TRightHalfContainers;
|
|
28
|
+
disableDisplay?: boolean;
|
|
29
|
+
staticWidth?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function RightHalfContainer(props: IRightHalfContainer): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare const GrowContainer: (props: IContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
interface ITreeContainerProps extends IContainerProps {
|
|
34
|
+
showRows?: number;
|
|
35
|
+
showMinRows?: number;
|
|
36
|
+
showMaxRows?: number;
|
|
37
|
+
}
|
|
38
|
+
export declare const TreeContainer: (props: ITreeContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
interface ITitleContainerProps {
|
|
40
|
+
title?: React.ReactNode;
|
|
41
|
+
bold?: boolean;
|
|
42
|
+
style?: React.CSSProperties;
|
|
43
|
+
large?: boolean;
|
|
44
|
+
overflow?: boolean;
|
|
45
|
+
className?: string;
|
|
46
|
+
line?: boolean;
|
|
47
|
+
content?: React.ReactNode;
|
|
48
|
+
titleClassName?: string;
|
|
49
|
+
}
|
|
50
|
+
export declare const TitleContainer: (props: ITitleContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export declare const RowContainer: (props: IContainerProps & TDivProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare const CenterContainer: (props: IContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare const SpaceBetweenContainer: (props: IContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare const FitContainer: (props: IContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export declare const SessionCheckFailed: () => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare const NoPermission: () => import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
interface IMessageBlockProps {
|
|
58
|
+
msg: string;
|
|
59
|
+
fontSize?: number;
|
|
60
|
+
children?: React.ReactNode;
|
|
61
|
+
}
|
|
62
|
+
export declare const MessageBlock: (props: IMessageBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
interface ISpaceBlockProps {
|
|
64
|
+
h?: number;
|
|
65
|
+
w?: number;
|
|
66
|
+
}
|
|
67
|
+
export declare const SpaceBlock: (props: ISpaceBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
export declare const FlexGrow: () => import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
interface ICPageProps {
|
|
70
|
+
children?: React.ReactNode;
|
|
71
|
+
title?: string;
|
|
72
|
+
subTitle?: string;
|
|
73
|
+
style?: React.CSSProperties;
|
|
74
|
+
}
|
|
75
|
+
export declare function CPage(props: ICPageProps): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
export interface IInputItem {
|
|
77
|
+
value?: string;
|
|
78
|
+
content?: React.ReactNode;
|
|
79
|
+
}
|
|
80
|
+
export interface IInputContainer extends IInputItem {
|
|
81
|
+
children?: React.ReactNode;
|
|
82
|
+
title?: string;
|
|
83
|
+
custom?: boolean;
|
|
84
|
+
flexShrink?: boolean;
|
|
85
|
+
includeTable?: boolean;
|
|
86
|
+
paddingTop?: boolean;
|
|
87
|
+
paddingBottom?: boolean;
|
|
88
|
+
changed?: boolean;
|
|
89
|
+
display?: boolean;
|
|
90
|
+
}
|
|
91
|
+
export declare function InputContainer(props: IInputContainer): import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
interface IPercentageComponentProps {
|
|
93
|
+
title?: string;
|
|
94
|
+
usePercentage: [any, React.Dispatch<React.SetStateAction<any>>];
|
|
95
|
+
content?: React.ReactNode;
|
|
96
|
+
width?: number;
|
|
97
|
+
height?: number;
|
|
98
|
+
isEdit?: boolean;
|
|
99
|
+
current?: any;
|
|
100
|
+
}
|
|
101
|
+
interface IPercentageComponentProps {
|
|
102
|
+
title?: string;
|
|
103
|
+
usePercentage: [any, React.Dispatch<React.SetStateAction<any>>];
|
|
104
|
+
content?: React.ReactNode;
|
|
105
|
+
width?: number;
|
|
106
|
+
fullWidth?: boolean;
|
|
107
|
+
height?: number;
|
|
108
|
+
isEdit?: boolean;
|
|
109
|
+
current?: any;
|
|
110
|
+
}
|
|
111
|
+
export declare function PercentageComponent(props: IPercentageComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
112
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export type TMainMenu = string;
|
|
3
|
+
export type TRightHalfContainers = string;
|
|
4
|
+
export interface ICContainerDefault {
|
|
5
|
+
defaultLeftBorderX: number;
|
|
6
|
+
defaultLeftX: Record<TMainMenu, number>;
|
|
7
|
+
defaultBorderX?: Record<TRightHalfContainers, number>;
|
|
8
|
+
}
|
|
9
|
+
export interface ICContainerState {
|
|
10
|
+
leftX: Record<TMainMenu, number>;
|
|
11
|
+
borderX: Record<TRightHalfContainers, number>;
|
|
12
|
+
containerTransition: boolean;
|
|
13
|
+
targetMenu: TMainMenu;
|
|
14
|
+
}
|
|
15
|
+
type CContainerAction = {
|
|
16
|
+
type: 'SET_LEFT_WIDTH';
|
|
17
|
+
payload: {
|
|
18
|
+
id: TMainMenu;
|
|
19
|
+
newX: number;
|
|
20
|
+
};
|
|
21
|
+
} | {
|
|
22
|
+
type: 'SET_BORDER_X';
|
|
23
|
+
payload: {
|
|
24
|
+
id: TRightHalfContainers;
|
|
25
|
+
newX: number;
|
|
26
|
+
};
|
|
27
|
+
} | {
|
|
28
|
+
type: 'SET_CONTAINER_TRANSITION';
|
|
29
|
+
payload: boolean;
|
|
30
|
+
} | {
|
|
31
|
+
type: 'SET_MAIN_MENU';
|
|
32
|
+
payload: TMainMenu;
|
|
33
|
+
};
|
|
34
|
+
export declare const setLeftWidth: (id: TMainMenu, newX: number) => CContainerAction;
|
|
35
|
+
export declare const setBorderX: (id: TRightHalfContainers, newX: number) => CContainerAction;
|
|
36
|
+
export declare const setContainerTransition: (payload: boolean) => CContainerAction;
|
|
37
|
+
export declare const setMainMenu: (payload: TMainMenu) => CContainerAction;
|
|
38
|
+
interface ICContainerProviderProps extends ICContainerDefault {
|
|
39
|
+
menu: TMainMenu[];
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
}
|
|
42
|
+
export declare const CContainerProvider: React.FC<ICContainerProviderProps>;
|
|
43
|
+
export declare const useContainer: () => {
|
|
44
|
+
state: ICContainerState;
|
|
45
|
+
dispatch: React.Dispatch<CContainerAction>;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Moment } from 'moment';
|
|
2
|
+
import 'react-date-range/dist/styles.css';
|
|
3
|
+
import 'react-date-range/dist/theme/default.css';
|
|
4
|
+
import './CDataRange.scss';
|
|
5
|
+
interface IDatePickerProps {
|
|
6
|
+
onChange?: (date?: Moment) => void;
|
|
7
|
+
minDate?: Date;
|
|
8
|
+
maxDate?: Date;
|
|
9
|
+
inputFormat?: string;
|
|
10
|
+
value?: Date;
|
|
11
|
+
disabled?: boolean | string;
|
|
12
|
+
highlight?: boolean;
|
|
13
|
+
highlightDate?: any;
|
|
14
|
+
width?: number;
|
|
15
|
+
height?: number;
|
|
16
|
+
title?: string;
|
|
17
|
+
fullWidth?: boolean;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
addOnDisabled?: boolean;
|
|
20
|
+
popupOffset?: {
|
|
21
|
+
left?: number;
|
|
22
|
+
top?: number;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export declare const CDatePicker: (props: IDatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
interface ICDateRangePickerProps {
|
|
27
|
+
startDate?: Date;
|
|
28
|
+
endDate?: Date;
|
|
29
|
+
minDate?: Date;
|
|
30
|
+
maxDate?: Date;
|
|
31
|
+
onChange?: (e: IDateRange) => void;
|
|
32
|
+
fontSize?: number;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
fullWidth?: boolean;
|
|
35
|
+
isMain?: boolean;
|
|
36
|
+
popupOffset?: {
|
|
37
|
+
left?: number;
|
|
38
|
+
top?: number;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface IDateRange {
|
|
42
|
+
startDate: Moment;
|
|
43
|
+
endDate: Moment;
|
|
44
|
+
}
|
|
45
|
+
export declare const CDateRangePicker: (props: ICDateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type TCDialog = 'noAction' | 'okOnly' | 'cancelOnly' | 'okCancel' | 'cancelOk';
|
|
3
|
+
export interface ICDialogRef {
|
|
4
|
+
closeDlg: () => void;
|
|
5
|
+
}
|
|
6
|
+
export interface ICDialogProps {
|
|
7
|
+
closeDlg: () => void;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
open?: boolean;
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
type?: TCDialog;
|
|
13
|
+
ok?: string;
|
|
14
|
+
onOk?: () => Promise<boolean | undefined | void> | boolean | undefined | void;
|
|
15
|
+
okDisabled?: boolean | string;
|
|
16
|
+
cancel?: string;
|
|
17
|
+
onCancel?: () => Promise<boolean | undefined | void> | boolean | undefined | void;
|
|
18
|
+
cancelDisabled?: boolean | string;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
cardStyle?: React.CSSProperties;
|
|
21
|
+
contentStyle?: React.CSSProperties;
|
|
22
|
+
contentBodyStyle?: React.CSSProperties;
|
|
23
|
+
dialogRef?: React.MutableRefObject<ICDialogRef | null>;
|
|
24
|
+
disableEscapeKeyDown?: boolean;
|
|
25
|
+
disableCancelOnClose?: boolean;
|
|
26
|
+
okOnClose?: boolean;
|
|
27
|
+
okKey?: string[];
|
|
28
|
+
}
|
|
29
|
+
export declare function CDialog(props: ICDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function CConfirmDialog(props: ICDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function COkDialog(props: ICDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function CCloseDialog(props: ICDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { TDivProps } from '../../CComponents/CContainer/CContainer';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import './CEditor.css';
|
|
4
|
+
export declare const maxTextLength = 50000;
|
|
5
|
+
interface ICEditorProps {
|
|
6
|
+
onChange?: (text: string) => void;
|
|
7
|
+
initialValue?: string;
|
|
8
|
+
height?: string;
|
|
9
|
+
autofocus?: boolean;
|
|
10
|
+
reset?: boolean;
|
|
11
|
+
toolbarItems?: any;
|
|
12
|
+
disableImage?: boolean;
|
|
13
|
+
maxLength?: number;
|
|
14
|
+
containerProps?: TDivProps;
|
|
15
|
+
}
|
|
16
|
+
export declare function CEditor(props: ICEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export interface IStringBoxes {
|
|
18
|
+
str?: string;
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
interface IHtmlViewerProps {
|
|
22
|
+
title?: string;
|
|
23
|
+
subTitle?: IStringBoxes[];
|
|
24
|
+
TopRightAddon?: React.ReactNode;
|
|
25
|
+
initialValue?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const HtmlViewer: (props: IHtmlViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
interface ICEditorViewerProps {
|
|
29
|
+
initialValue?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const CEditorViewer: (props: ICEditorViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type TPreView = string | ArrayBuffer | null;
|
|
3
|
+
export interface ICFileBoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
tooltip?: string;
|
|
6
|
+
w?: number;
|
|
7
|
+
h?: number;
|
|
8
|
+
useFile: [File | undefined, React.Dispatch<React.SetStateAction<File | undefined>>];
|
|
9
|
+
setPreview?: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
10
|
+
helperText?: string | string[] | JSX.Element;
|
|
11
|
+
title?: string;
|
|
12
|
+
accept: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function CFileBox(props: ICFileBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IKeyObjects<V> {
|
|
3
|
+
[key: string | number]: V;
|
|
4
|
+
}
|
|
5
|
+
export interface ICFloatingMenuItem<V> {
|
|
6
|
+
content?: React.ReactNode;
|
|
7
|
+
unselectable?: boolean;
|
|
8
|
+
disabled?: (item: V) => boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface ICFloatingMenuItems<V> extends IKeyObjects<ICFloatingMenuItem<V>> {
|
|
11
|
+
}
|
|
12
|
+
interface ICFloatingMenuProps<K, V> {
|
|
13
|
+
open: boolean;
|
|
14
|
+
targetElement: Element | null;
|
|
15
|
+
targetOffset?: {
|
|
16
|
+
left?: number;
|
|
17
|
+
top?: number;
|
|
18
|
+
};
|
|
19
|
+
menuItems: ICFloatingMenuItems<V>;
|
|
20
|
+
onClose: () => void;
|
|
21
|
+
onMenuItemClick?: (newMenu: K) => void;
|
|
22
|
+
validationItem?: V;
|
|
23
|
+
}
|
|
24
|
+
export declare function CFloatingMenu<K, V>(props: ICFloatingMenuProps<K, V>): import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TooltipProps } from '@mui/material';
|
|
3
|
+
import { TDivProps } from '../../CComponents/CContainer/CContainer';
|
|
4
|
+
export declare function retryLazy(componentImport: any, _name: string): any;
|
|
5
|
+
export declare const SessionChecking: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
interface ICIconProps extends TDivProps {
|
|
7
|
+
icon: keyof typeof Icons;
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
placement?: TooltipProps['placement'];
|
|
10
|
+
}
|
|
11
|
+
export declare const CIcon: React.FC<ICIconProps>;
|
|
12
|
+
export declare const Icons: Readonly<{
|
|
13
|
+
CCTV: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
Convert: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
KeyboardArrowUp: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
KeyboardArrowDown: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
LightMode: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
DarkMode: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
CheckNo: () => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
CheckCheck: () => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
CheckIndeterminate: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
Alert: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
SortUp: () => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
SortDown: () => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
SortBoth: () => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
Favorite: () => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
FavoriteDisabled: () => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
Main: () => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
Frame: () => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
Union: () => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
File: () => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
UnPlug: () => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
Sync: () => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
Search: () => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
CalendarDay: () => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
DateRange: () => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
PlayArrow: () => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
Mail: () => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
Download: () => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
Folder: () => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
FolderPost: () => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
FolderOpen: () => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
FolderCopy: () => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
FolderAdd: () => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
FirstPage: () => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
LastPage: () => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
NavigateBefore: () => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
NavigateNext: () => import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
ListAdd: () => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
ListRemove: () => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
Cancel: () => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
Clear: () => import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
Logo1: () => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
Logo2: () => import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
Person: () => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
Article: () => import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
Info: () => import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
PersonAdd: () => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
Create: () => import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
PersonRemove: () => import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
Undo: () => import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
Refresh: () => import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
CheckNormal: () => import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
AutoRenew: () => import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
Save: () => import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
}>;
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ICIpRangePickerProps {
|
|
3
|
+
startIp: string;
|
|
4
|
+
setStartIp: (str: string) => void;
|
|
5
|
+
endIp: string;
|
|
6
|
+
setEndIp: (str: string) => void;
|
|
7
|
+
helperText?: string | string[] | JSX.Element;
|
|
8
|
+
mode?: 'tilde' | 'slash';
|
|
9
|
+
}
|
|
10
|
+
export declare const CIpRangePicker: (props: ICIpRangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TDivProps } from '../../CComponents/CContainer/CContainer';
|
|
3
|
+
interface ICLabeledItemProps extends TDivProps {
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
labelProps?: TDivProps;
|
|
6
|
+
itemProps?: TDivProps;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function CLabeledItem(props: ICLabeledItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ICListProps {
|
|
3
|
+
title: string;
|
|
4
|
+
useDrag: [any[], React.Dispatch<React.SetStateAction<any[]>>];
|
|
5
|
+
useAsterisk?: string;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
showRows?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const CList: (props: ICListProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type TCListViewKey = string | number;
|
|
3
|
+
export interface ICListViewDefs<K> {
|
|
4
|
+
[key: TCListViewKey]: ICListViewDef<K>;
|
|
5
|
+
}
|
|
6
|
+
interface ICListViewProps<K> {
|
|
7
|
+
defs: ICListViewDefs<K>;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
item?: K;
|
|
10
|
+
cellHeight?: number;
|
|
11
|
+
borderRight?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ICListViewDef<K> {
|
|
14
|
+
label?: TCListViewKey;
|
|
15
|
+
empty?: boolean | ((item: K) => boolean);
|
|
16
|
+
content?: ReactNode | ((item: K) => ReactNode);
|
|
17
|
+
}
|
|
18
|
+
export declare function CListView<K>(props: ICListViewProps<K>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IKeyObjects<V> {
|
|
3
|
+
[key: string | number]: V;
|
|
4
|
+
}
|
|
5
|
+
export interface ICMenuItem {
|
|
6
|
+
content?: React.ReactNode;
|
|
7
|
+
unselectable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ICMenuItems extends IKeyObjects<ICMenuItem> {
|
|
10
|
+
}
|
|
11
|
+
interface ICMenuProps<K> {
|
|
12
|
+
items: ICMenuItems;
|
|
13
|
+
onChange?: (newMenu: K) => void;
|
|
14
|
+
current?: K | false;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
export declare function CMenu<K>(props: ICMenuProps<K>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface ICMultiSelectProps {
|
|
3
|
+
height?: number;
|
|
4
|
+
width?: number;
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
fontSize?: number;
|
|
7
|
+
align?: 'center' | 'left' | 'right';
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
plainBorder?: string;
|
|
10
|
+
hoverBorder?: string;
|
|
11
|
+
disabled?: boolean | string;
|
|
12
|
+
disabledValue?: (value: any) => boolean;
|
|
13
|
+
options?: any[];
|
|
14
|
+
values?: any[];
|
|
15
|
+
content?: (value: any) => ReactNode;
|
|
16
|
+
setValues?: (value: any[]) => void;
|
|
17
|
+
offsetWithoutScroll?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const CMultiSelect: (props: ICMultiSelectProps) => import("react/jsx-runtime").JSX.Element;
|