ados-rcm 1.0.4 → 1.0.6

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 (87) hide show
  1. package/README.md +6 -4
  2. package/dist/AModule/AComponents/ABase/ABase.d.ts +28 -0
  3. package/dist/AModule/AComponents/AButton/AButton.d.ts +7 -0
  4. package/dist/AModule/AComponents/AButton/AIconButton.d.ts +12 -0
  5. package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +13 -0
  6. package/dist/AModule/AComponents/AClock/AClock.d.ts +17 -0
  7. package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +21 -0
  8. package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +21 -0
  9. package/dist/AModule/AComponents/ADialog/ADialog.d.ts +27 -0
  10. package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +13 -0
  11. package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +29 -0
  12. package/dist/AModule/AComponents/AFrames/AFrames.d.ts +13 -0
  13. package/dist/AModule/AComponents/AGrow/AGrow.d.ts +1 -0
  14. package/dist/AModule/AComponents/AIcon/AIcon.d.ts +83 -0
  15. package/dist/AModule/AComponents/AInput/AInput.d.ts +22 -0
  16. package/dist/AModule/AComponents/AListView/AListView.d.ts +37 -0
  17. package/dist/AModule/AComponents/AResource/AResource.d.ts +31 -0
  18. package/dist/AModule/AComponents/ASelect/ASelect.d.ts +37 -0
  19. package/dist/AModule/AComponents/ASpace/ASpace.d.ts +7 -0
  20. package/dist/AModule/AComponents/AStepper/AStepper.d.ts +14 -0
  21. package/dist/AModule/AComponents/ASwitch/ASwitch.d.ts +7 -0
  22. package/dist/AModule/AComponents/ATab/ATab.d.ts +14 -0
  23. package/dist/AModule/AComponents/ATable/ATable.d.ts +155 -0
  24. package/dist/AModule/AComponents/ATable/ATableBody.d.ts +20 -0
  25. package/dist/AModule/AComponents/ATable/ATableFilter.d.ts +12 -0
  26. package/dist/AModule/AComponents/ATable/ATableFooter.d.ts +14 -0
  27. package/dist/AModule/AComponents/ATable/ATableHeader.d.ts +21 -0
  28. package/dist/AModule/AComponents/ATest.d.ts +9 -0
  29. package/dist/AModule/AComponents/AText/AText.d.ts +8 -0
  30. package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +21 -0
  31. package/dist/AModule/AComponents/ATheme/AStyles.d.ts +22 -0
  32. package/dist/AModule/AComponents/ATheme/ATheme.d.ts +8 -0
  33. package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +9 -0
  34. package/dist/AModule/AComponents/ATree/ATree.d.ts +54 -0
  35. package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +37 -0
  36. package/dist/AModule/AComponents/ATree/ATreeSearch.d.ts +11 -0
  37. package/dist/AModule/AComponents/ATypes/ATypes.d.ts +33 -0
  38. package/dist/AModule/AComponents/AWrap/AWrap.d.ts +11 -0
  39. package/dist/AModule/AHooks/useValues.d.ts +12 -0
  40. package/dist/AModule/ANetwork/APIContext.d.ts +39 -0
  41. package/dist/AModule/AUtils/bound.d.ts +1 -0
  42. package/dist/AModule/AUtils/cbF.d.ts +16 -0
  43. package/dist/AModule/AUtils/classF.d.ts +10 -0
  44. package/dist/AModule/AUtils/dateF.d.ts +35 -0
  45. package/dist/AModule/AUtils/objF.d.ts +22 -0
  46. package/dist/AModule/AUtils/strF.d.ts +3 -0
  47. package/dist/AModule/AUtils/tableF.d.ts +17 -0
  48. package/dist/AModule/AUtils/treeF.d.ts +22 -0
  49. package/dist/index.cjs.js +32 -1092
  50. package/dist/index.d.ts +38 -1
  51. package/dist/index.es.js +9426 -71043
  52. package/package.json +73 -64
  53. package/dist/CComponents/CButton/CButton.d.ts +0 -20
  54. package/dist/CComponents/CChart/CChart.d.ts +0 -43
  55. package/dist/CComponents/CCheckBox/CCheckBox.d.ts +0 -14
  56. package/dist/CComponents/CContainer/CContainer.d.ts +0 -112
  57. package/dist/CComponents/CContainer/CContainerContext.d.ts +0 -47
  58. package/dist/CComponents/CDatePicker/CDatePicker.d.ts +0 -46
  59. package/dist/CComponents/CDialog/CDialog.d.ts +0 -33
  60. package/dist/CComponents/CEditor/CEditor.d.ts +0 -32
  61. package/dist/CComponents/CFileBox/CFileBox.d.ts +0 -14
  62. package/dist/CComponents/CFloatingMenu/CFloatingMenu.d.ts +0 -25
  63. package/dist/CComponents/CIcon/icons.d.ts +0 -67
  64. package/dist/CComponents/CIpRangePicker/CIpRangePicker.d.ts +0 -11
  65. package/dist/CComponents/CLabeledItem/CLabeledItem.d.ts +0 -10
  66. package/dist/CComponents/CList/CList.d.ts +0 -10
  67. package/dist/CComponents/CListView/CListView.d.ts +0 -19
  68. package/dist/CComponents/CMenu/CMenu.d.ts +0 -18
  69. package/dist/CComponents/CSelect/CMultiSelect.d.ts +0 -21
  70. package/dist/CComponents/CSelect/CSelect.d.ts +0 -22
  71. package/dist/CComponents/CStepper/CStepper.d.ts +0 -28
  72. package/dist/CComponents/CSwitch/CSwitch.d.ts +0 -15
  73. package/dist/CComponents/CTable/CTable.d.ts +0 -12
  74. package/dist/CComponents/CTable/CTableBody.d.ts +0 -34
  75. package/dist/CComponents/CTable/CTableFilter.d.ts +0 -46
  76. package/dist/CComponents/CTable/CTableFooter.d.ts +0 -2
  77. package/dist/CComponents/CTable/CTableHeader.d.ts +0 -4
  78. package/dist/CComponents/CTable/CTableWidthChanger.d.ts +0 -11
  79. package/dist/CComponents/CTable/ICTable.d.ts +0 -157
  80. package/dist/CComponents/CTable/exports.d.ts +0 -3
  81. package/dist/CComponents/CTabs/CTabs.d.ts +0 -37
  82. package/dist/CComponents/CText/CPlainText.d.ts +0 -8
  83. package/dist/CComponents/CText/CStyledText.d.ts +0 -13
  84. package/dist/CComponents/CTextField/CTextField.d.ts +0 -50
  85. package/dist/CComponents/CTimer/CTimer.d.ts +0 -9
  86. package/dist/CComponents/CTree/CTree.d.ts +0 -71
  87. package/dist/CComponents/CTree/CTreeSearchModule.d.ts +0 -11
package/package.json CHANGED
@@ -1,64 +1,73 @@
1
- {
2
- "name": "ados-rcm",
3
- "version": "1.0.4",
4
- "private": false,
5
- "license": "MIT",
6
- "type": "module",
7
- "author": {
8
- "name": "jaekan"
9
- },
10
- "keywords": [
11
- "ados",
12
- "component"
13
- ],
14
- "types": "./dist/index.d.ts",
15
- "main": "./dist/index.cjs.js",
16
- "module": "./dist/index.es.js",
17
- "exports": {
18
- ".": {
19
- "types": "./dist/index.d.ts",
20
- "import": "./dist/index.es.js",
21
- "require": "./dist/index.cjs.js"
22
- }
23
- },
24
- "files": [
25
- "dist"
26
- ],
27
- "scripts": {
28
- "dev": "vite",
29
- "build": "tsc && vite build",
30
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
31
- "preview": "vite preview",
32
- "storybook": "storybook dev -p 6006",
33
- "build-storybook": "storybook build"
34
- },
35
- "dependencies": {
36
- "react": "^18.2.0",
37
- "react-dom": "^18.2.0",
38
- "@storybook/addons": "^7.6.11"
39
- },
40
- "devDependencies": {
41
- "@storybook/addon-essentials": "7.5.0-alpha.7",
42
- "@storybook/addon-interactions": "7.5.0-alpha.7",
43
- "@storybook/addon-links": "7.5.0-alpha.7",
44
- "@storybook/addon-onboarding": "1.0.8",
45
- "@storybook/addon-styling-webpack": "0.0.5",
46
- "@storybook/blocks": "7.5.0-alpha.7",
47
- "@storybook/preset-create-react-app": "7.5.0-alpha.7",
48
- "@storybook/react": "7.5.0-alpha.7",
49
- "@storybook/react-webpack5": "7.5.0-alpha.7",
50
- "@storybook/testing-library": "0.2.2",
51
- "eslint-plugin-storybook": "^0.6.15",
52
- "storybook": "7.4.6",
53
- "@types/react": "^18.2.64",
54
- "@types/react-dom": "^18.2.21",
55
- "@typescript-eslint/eslint-plugin": "^7.1.1",
56
- "@typescript-eslint/parser": "^7.1.1",
57
- "@vitejs/plugin-react-swc": "^3.5.0",
58
- "eslint": "^8.57.0",
59
- "eslint-plugin-react-hooks": "^4.6.0",
60
- "eslint-plugin-react-refresh": "^0.4.5",
61
- "typescript": "^5.2.2",
62
- "vite": "^5.1.6"
63
- }
64
- }
1
+ {
2
+ "name": "ados-rcm",
3
+ "version": "1.0.6",
4
+ "private": false,
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "author": {
8
+ "name": "jaekan"
9
+ },
10
+ "keywords": [
11
+ "ados",
12
+ "component"
13
+ ],
14
+ "types": "./dist/index.d.ts",
15
+ "main": "./dist/index.cjs.js",
16
+ "module": "./dist/index.es.js",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.es.js",
21
+ "require": "./dist/index.cjs.js"
22
+ }
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "scripts": {
28
+ "dev": "vite --port 3010",
29
+ "serve": "vite --host --port 3030",
30
+ "build": "tsc && npm run lint && vite build",
31
+ "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",
32
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
33
+ "preview": "vite preview",
34
+ "storybook": "storybook dev -p 6006",
35
+ "build-storybook": "storybook build"
36
+ },
37
+ "peerDependencies": {
38
+ "react": "^18.2.0",
39
+ "react-dom": "^18.2.0"
40
+ },
41
+ "devDependencies": {
42
+ "@chromatic-com/storybook": "^1.2.25",
43
+ "@storybook/addon-essentials": "8.0.2",
44
+ "@storybook/addon-interactions": "8.0.2",
45
+ "@storybook/addon-links": "8.0.2",
46
+ "@storybook/addon-onboarding": "8.0.2",
47
+ "@storybook/blocks": "8.0.2",
48
+ "@storybook/react": "8.0.2",
49
+ "@storybook/react-vite": "^8.0.2",
50
+ "@storybook/test": "^8.0.2",
51
+ "@types/react": "^18.2.67",
52
+ "@types/react-dom": "^18.2.22",
53
+ "@typescript-eslint/eslint-plugin": "^7.3.1",
54
+ "@typescript-eslint/parser": "^7.3.1",
55
+ "@vitejs/plugin-react-swc": "^3.6.0",
56
+ "eslint": "^8.57.0",
57
+ "eslint-plugin-react": "^7.34.1",
58
+ "eslint-plugin-react-hooks": "^4.6.0",
59
+ "eslint-plugin-react-refresh": "^0.4.6",
60
+ "eslint-plugin-storybook": "^0.8.0",
61
+ "sass": "^1.72.0",
62
+ "storybook": "^8.0.2",
63
+ "typescript": "^5.4.3",
64
+ "typescript-plugin-css-modules": "^5.1.0",
65
+ "vite": "^5.2.2"
66
+ },
67
+ "dependencies": {
68
+ "vite-plugin-css-injected-by-js": "^3.5.0",
69
+ "vite-plugin-dts": "^3.7.3",
70
+ "vite-plugin-svgr": "^4.2.0",
71
+ "vite-tsconfig-paths": "^4.3.2"
72
+ }
73
+ }
@@ -1,20 +0,0 @@
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 {};
@@ -1,43 +0,0 @@
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 {};
@@ -1,14 +0,0 @@
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 {};
@@ -1,112 +0,0 @@
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 {};
@@ -1,47 +0,0 @@
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 {};
@@ -1,46 +0,0 @@
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 {};
@@ -1,33 +0,0 @@
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 {};
@@ -1,32 +0,0 @@
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 {};
@@ -1,14 +0,0 @@
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;
@@ -1,25 +0,0 @@
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 {};
@@ -1,67 +0,0 @@
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 {};
@@ -1,11 +0,0 @@
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 {};
@@ -1,10 +0,0 @@
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 {};
@@ -1,10 +0,0 @@
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 {};