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
@@ -1,19 +0,0 @@
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 {};
@@ -1,18 +0,0 @@
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 {};
@@ -1,21 +0,0 @@
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;
@@ -1,22 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export interface ICSelectProps {
3
- height?: number;
4
- width?: number;
5
- fontSize?: number;
6
- align?: 'center' | 'left' | 'right';
7
- style?: React.CSSProperties;
8
- disabled?: boolean | string;
9
- plainBorder?: string;
10
- hoverBorder?: string;
11
- fullWidth?: boolean;
12
- disabledValue?: (value: any) => boolean;
13
- values?: any[];
14
- value?: any;
15
- content?: (value: any) => ReactNode;
16
- onChange?: (value: any) => void;
17
- offsetWithoutScroll?: boolean;
18
- className?: string;
19
- title?: string;
20
- initial?: any;
21
- }
22
- export declare const CSelect: (props: ICSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,28 +0,0 @@
1
- /// <reference types="react" />
2
- interface ICStepperStyle {
3
- circleColor?: string;
4
- circleWidth?: number;
5
- circleRadius?: number;
6
- circleInactiveColor?: string;
7
- circleShadowColor?: string;
8
- circleShadowWidth?: number;
9
- circleShadowRadius?: number;
10
- circleShadowCurrentColor?: string;
11
- circleShadowHoverColor?: string;
12
- lineColor?: string;
13
- lineCurrentColor?: string;
14
- lineHeight?: number;
15
- circlesInterval?: number;
16
- labelColor?: string;
17
- labelSize?: number;
18
- }
19
- interface ICStepperProps {
20
- totalSteps: number;
21
- currentStep: number;
22
- labels?: React.ReactNode[];
23
- style?: React.CSSProperties;
24
- stepperStyle?: ICStepperStyle;
25
- onStepClick?: (step: number) => void;
26
- }
27
- export declare const CStepper: (props: ICStepperProps) => import("react/jsx-runtime").JSX.Element;
28
- export {};
@@ -1,15 +0,0 @@
1
- interface ICSwitchProps {
2
- checked?: boolean;
3
- onChange?: (checked: boolean) => void;
4
- onClick?: () => void;
5
- disabled?: boolean | string;
6
- id?: string;
7
- }
8
- export declare function CSwitch(props: ICSwitchProps): import("react/jsx-runtime").JSX.Element;
9
- export interface ICSwitchEXProps extends ICSwitchProps {
10
- onText?: string;
11
- offText?: string;
12
- changed?: boolean;
13
- }
14
- export declare function CSwitchEX(props: ICSwitchEXProps): import("react/jsx-runtime").JSX.Element;
15
- export {};
@@ -1,12 +0,0 @@
1
- import { ICTableFilters } from './CTableFilter';
2
- import { ICTableDef, ICTableDefs, ICTableProps } from './ICTable';
3
- export interface IDivSize {
4
- h: number;
5
- w: number;
6
- }
7
- /**
8
- * applyFilters does not affect original parameters. returns copied objects.
9
- */
10
- export declare function applyFilters<K>(items: K[], filters: ICTableFilters, defs: ICTableDefs<K>, _tableId: string): K[];
11
- export declare function getTextOfContent<K>(newItem: K, def: ICTableDef<K>, itemKey: keyof K): any;
12
- export declare function CTable<K>(props: ICTableProps<K>): import("react/jsx-runtime").JSX.Element;
@@ -1,34 +0,0 @@
1
- import React from 'react';
2
- import { ICTableDef, ICTableProps, TCTableKey } from './ICTable';
3
- export declare const cellHeight = 40;
4
- export declare function funcOrItself(func: any, ...params: any): any;
5
- export declare function CTableBody<K>(props: ICTableProps<K>): import("react/jsx-runtime").JSX.Element;
6
- interface ICTableBodyHeaderRowProps<K> extends ICTableProps<K> {
7
- useCheck?: [K[], React.Dispatch<React.SetStateAction<K[]>>];
8
- useAsterisk?: string;
9
- }
10
- export declare function CTableBodyHeaderRow<K>(props: ICTableBodyHeaderRowProps<K>): import("react/jsx-runtime").JSX.Element;
11
- interface ICTableBodyHeaderCellProps<K> {
12
- id: string;
13
- defKey: TCTableKey;
14
- def: ICTableDef<K>;
15
- }
16
- export declare function CTableBodyHeaderCell<K>(props: ICTableBodyHeaderCellProps<K>): import("react/jsx-runtime").JSX.Element;
17
- interface ICTableBodyBodyProps<K> extends ICTableProps<K> {
18
- renderTableBody: () => void;
19
- showRows?: number;
20
- }
21
- export declare function CTableBodyBody<K>(props: ICTableBodyBodyProps<K>): import("react/jsx-runtime").JSX.Element;
22
- interface ICTableLoadingMessageProps {
23
- loading?: boolean;
24
- noContentMsg?: string;
25
- showRows?: number;
26
- }
27
- export declare function CTableBodySkeleton(props: ICTableLoadingMessageProps): import("react/jsx-runtime").JSX.Element;
28
- export declare function findObjectRec(obj: any, callBack: (obj: any) => boolean | undefined, visited?: any[]): any;
29
- interface ICLoaderProps {
30
- loading?: boolean;
31
- disabled?: boolean;
32
- }
33
- export declare function CLoader(props: ICLoaderProps): import("react/jsx-runtime").JSX.Element;
34
- export {};
@@ -1,46 +0,0 @@
1
- import { IDateRange } from '../../CComponents/CDatePicker/CDatePicker';
2
- import React from 'react';
3
- import { TCTableKey } from './ICTable';
4
- type TCTableFilterTypes = 'dateRange' | 'select' | 'text';
5
- export interface ICTableFilterTextProps {
6
- placeHolder?: string;
7
- autoFocus?: boolean;
8
- validation?: (filterValue: string) => string | undefined;
9
- maxLength?: number;
10
- }
11
- export interface ICTableFilterSelectProps {
12
- values: any[];
13
- content?: (value: any) => React.ReactNode;
14
- }
15
- export interface ICTableFilterDateRangeProps {
16
- startDateId: TCTableKey;
17
- endDateId: TCTableKey;
18
- format?: string;
19
- dateLimit?: IDateRange;
20
- limitRange?: IDateRange;
21
- }
22
- interface ICTableFilter {
23
- defKey: TCTableKey;
24
- value: any;
25
- type?: TCTableFilterTypes;
26
- label?: string;
27
- textProps?: ICTableFilterTextProps;
28
- selectProps?: ICTableFilterSelectProps;
29
- dateRangeProps?: ICTableFilterDateRangeProps;
30
- key?: number;
31
- }
32
- export interface ICTableFilters {
33
- [key: TCTableKey]: ICTableFilter;
34
- }
35
- interface ICTableFilterProps {
36
- filtersReset?: boolean;
37
- height?: number | string;
38
- width?: number | string;
39
- setMulti?: () => void;
40
- }
41
- export declare function CTableFilter(props: ICTableFilterProps): import("react/jsx-runtime").JSX.Element;
42
- interface IHelperTextProps {
43
- value?: React.ReactNode;
44
- }
45
- export declare function HelperText(props: IHelperTextProps): import("react/jsx-runtime").JSX.Element;
46
- export {};
@@ -1,2 +0,0 @@
1
- import { ICTableProps } from './ICTable';
2
- export declare function CTableFooter<K>(props: ICTableProps<K>): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +0,0 @@
1
- import { ICTableProps } from './ICTable';
2
- export declare const pageSizeMap: number[];
3
- export declare const defaultPageSize: number;
4
- export declare function CTableHeader<K>(props: ICTableProps<K>): import("react/jsx-runtime").JSX.Element | null;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { TCTableKey } from './ICTable';
3
- export declare const MIN_COLUMN_WIDTH = 32;
4
- export declare const DEFAULT_COLUMN_WIDTH = 130;
5
- interface ICTableWidthChangerProps<K> {
6
- useCheck?: [K[], React.Dispatch<React.SetStateAction<K[]>>] | undefined;
7
- defKey: TCTableKey;
8
- idx: number;
9
- }
10
- export declare function CTableWidthChanger<K>(props: ICTableWidthChangerProps<K>): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,157 +0,0 @@
1
- /// <reference types="react" />
2
- import { ICTableFilters } from './CTableFilter';
3
- export type TCTableKey = string | number;
4
- export declare enum SearchMode {
5
- SINGLE = 1,
6
- MULTI = 2
7
- }
8
- export interface ICTableContext<K> {
9
- defs: ICTableDefs<K>;
10
- loadItems?: (params: ICTableLoadItemsParams) => TLoadReturns<K> | Promise<TLoadReturns<K>>;
11
- sortedItems: K[];
12
- renderTable: () => void;
13
- loading: boolean;
14
- filters: ICTableFilters;
15
- defaultFilters: ICTableFilters;
16
- toggleFilters?: boolean;
17
- isToggle: boolean;
18
- setIsToggle: React.Dispatch<React.SetStateAction<boolean>>;
19
- onSearch: (newFilters: ICTableFilters) => void;
20
- markable: boolean;
21
- sort: ISort;
22
- onSortClick: (key: TCTableKey) => void;
23
- activeItems: K[];
24
- pagination: IPagination;
25
- onPageChange: (newPage: number) => void;
26
- totalCount: number;
27
- onPageSizeChange: (newPageSize: number) => void;
28
- tableId: string;
29
- tableRef: React.MutableRefObject<HTMLDivElement | null>;
30
- tableContainerRef: React.MutableRefObject<HTMLDivElement | null>;
31
- tableWidth: number | undefined;
32
- isSameItem: (a: K, b: K) => boolean;
33
- }
34
- export declare const CTableContext: import("react").Context<ICTableContext<any>>;
35
- export interface ICTableItem {
36
- [key: TCTableKey]: React.ReactNode;
37
- }
38
- export interface ICTableDefContentRender {
39
- tableBodyBodyCell: () => void;
40
- tableBodyBodyRow: () => void;
41
- tableBodyBody: () => void;
42
- tableBody: () => void;
43
- }
44
- export interface ICTableDef<K> {
45
- label?: TCTableKey;
46
- content?: ((item: K) => {
47
- content: React.ReactNode;
48
- text?: string;
49
- } | React.ReactNode) | ({
50
- content: React.ReactNode;
51
- text?: string;
52
- } | React.ReactNode);
53
- headerContent?: () => React.ReactNode;
54
- maxWidth?: number;
55
- fixWidth?: number;
56
- width?: number;
57
- minWidth?: number;
58
- align?: 'flex-start' | 'center' | 'flex-end';
59
- useSort?: boolean;
60
- useTooltip?: boolean;
61
- sortFunc?: TCompFunc;
62
- conditionalDef?: (item: K) => ICTableDef<K>;
63
- conditionalTooltip?: (item: K) => React.ReactNode;
64
- colSpan?: number;
65
- cellContainerStyle?: ((item: K) => React.CSSProperties | undefined | void) | React.CSSProperties;
66
- cellStyle?: ((item: K) => React.CSSProperties) | React.CSSProperties;
67
- disableLocalSearch?: boolean;
68
- }
69
- export interface ICTableRef<K> {
70
- activeItems?: K[];
71
- setActiveItems?: React.Dispatch<React.SetStateAction<K[]>>;
72
- resetFilters?: () => void;
73
- }
74
- export interface ICTableDefs<K> {
75
- [key: TCTableKey]: ICTableDef<K>;
76
- }
77
- export interface ILoadReturns<K> {
78
- items: K[];
79
- totalCount: number;
80
- }
81
- export type TLoadReturns<K> = ILoadReturns<K> | undefined | void;
82
- export interface ICTableProps<K> {
83
- defs: ICTableDefs<K>;
84
- items?: K[];
85
- idx?: keyof K;
86
- tableRef?: React.MutableRefObject<ICTableRef<K> | undefined>;
87
- showType?: 'pagination' | 'scroll';
88
- loadItems?: (params: ICTableLoadItemsParams) => TLoadReturns<K> | Promise<TLoadReturns<K>>;
89
- itemsReload?: boolean;
90
- filtersReset?: boolean;
91
- loading?: boolean;
92
- rowStyle?: React.CSSProperties | ((item: K) => React.CSSProperties | undefined | void);
93
- rowClassName?: string | ((item: K) => string | undefined | void);
94
- rowOnClick?: (item: K, func: () => void) => void;
95
- totalCount?: number;
96
- singleFilterValue?: string;
97
- singleFilterPlaceholder?: string;
98
- singleFilterAutofocus?: boolean;
99
- singleFilterWidth?: number | string;
100
- singleFilterValidation?: (filterValue: any) => string | undefined;
101
- defaultFilters?: ICTableFilters;
102
- toggleFilters?: ICTableFilters;
103
- defaultPagination?: IPaginationParams;
104
- defaultSort?: ISort;
105
- useCheck?: [K[], React.Dispatch<React.SetStateAction<K[]>>];
106
- useSelect?: [K[], React.Dispatch<React.SetStateAction<K[]>>];
107
- useAsterisk?: string;
108
- tableContainerStyle?: React.CSSProperties;
109
- tableStyle?: React.CSSProperties;
110
- tableHeaderStyle?: React.CSSProperties;
111
- tableBodyStyle?: React.CSSProperties;
112
- tableFooterStyle?: React.CSSProperties;
113
- tableBodyHeaderHeight?: number;
114
- topLeftAddon?: React.ReactNode;
115
- topRightAddon?: React.ReactNode;
116
- bottomLeftAddon?: React.ReactNode;
117
- bottomRightAddon?: React.ReactNode;
118
- itemCountUnit?: string;
119
- useMaxTotalCount?: [0 | 1, React.Dispatch<React.SetStateAction<0 | 1>>];
120
- titleText?: React.ReactNode;
121
- noContentMsg?: string;
122
- showRows?: number;
123
- checkDisabled?: (item: K) => string | void | undefined | boolean;
124
- rowDisabled?: (item: K) => string | void | undefined | boolean;
125
- disablePageSizeSelect?: boolean;
126
- disableFilter?: boolean;
127
- disableHeader?: boolean;
128
- disableFooter?: boolean;
129
- disablePagination?: boolean;
130
- disableGrow?: boolean;
131
- disableLoadOnLoadChange?: boolean;
132
- disableCountText?: boolean;
133
- disableDeselect?: boolean;
134
- disableFilterMarking?: boolean;
135
- tableWidth?: number;
136
- setMulti?: () => void;
137
- }
138
- export interface ISort {
139
- key?: TCTableKey;
140
- asc?: boolean;
141
- }
142
- export type TCompFunc = (a: any, b: any, asc: boolean) => number;
143
- export interface IPagination {
144
- page: number;
145
- pageSize: number;
146
- pageRange: number;
147
- }
148
- export interface IPaginationParams {
149
- page?: number;
150
- pageSize?: number;
151
- pageRange?: number;
152
- }
153
- export interface ICTableLoadItemsParams {
154
- sort: ISort;
155
- filters: ICTableFilters;
156
- pagination: IPagination;
157
- }
@@ -1,3 +0,0 @@
1
- import { ICTableDefs } from './ICTable';
2
- export declare function downloadCsv<K>(name: string, originItems: K[], defs: ICTableDefs<K>): void;
3
- export declare function makeTableToString<K>(defs: ICTableDefs<K>, items: K[]): string;
@@ -1,37 +0,0 @@
1
- /// <reference types="react" />
2
- interface IInteractiveStyles {
3
- className?: string;
4
- plainStyle?: React.CSSProperties;
5
- activeStyle?: React.CSSProperties;
6
- hoverStyle?: React.CSSProperties;
7
- }
8
- interface ICTabsProps {
9
- values: any[];
10
- value?: any;
11
- onChange?: (value: any) => any;
12
- labels?: any[];
13
- className?: string;
14
- style?: React.CSSProperties;
15
- tabsStyles?: {
16
- className?: string;
17
- plainStyle?: React.CSSProperties;
18
- };
19
- tabStyles?: {
20
- className?: string;
21
- plainStyle?: React.CSSProperties;
22
- activeStyle?: React.CSSProperties;
23
- hoverStyle?: React.CSSProperties;
24
- };
25
- labelStyles?: {
26
- [value: string]: {
27
- style?: React.CSSProperties;
28
- changed?: boolean;
29
- };
30
- };
31
- indicatorStyles?: IInteractiveStyles;
32
- indicatorContainerStyles?: IInteractiveStyles;
33
- absolute?: boolean;
34
- }
35
- export declare function CTabs(props: ICTabsProps): import("react/jsx-runtime").JSX.Element;
36
- export declare function CTags(props: ICTabsProps): import("react/jsx-runtime").JSX.Element;
37
- export {};
@@ -1,8 +0,0 @@
1
- interface ICPlainTextProps {
2
- bold?: string | boolean;
3
- fontSize?: number | string;
4
- endLine?: boolean;
5
- text: string;
6
- }
7
- export declare function CPlainText(props: ICPlainTextProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ICStyledTextProps {
3
- text: string;
4
- match?: string | string[] | boolean;
5
- normalStyle?: React.CSSProperties;
6
- matchStyle?: React.CSSProperties;
7
- style?: React.CSSProperties;
8
- className?: string;
9
- endLine?: boolean;
10
- spanProps?: TSpanProps;
11
- }
12
- export type TSpanProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
13
- export declare function CStyledText(props: ICStyledTextProps): import("react/jsx-runtime").JSX.Element;
@@ -1,50 +0,0 @@
1
- import React from 'react';
2
- import 'react-date-range/dist/styles.css';
3
- import 'react-date-range/dist/theme/default.css';
4
- type TCTextField = 'Default' | 'Primary' | 'Secondary' | 'Error' | 'ReadOnly';
5
- export interface ICTextAreaProps extends Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'disabled'> {
6
- colorType?: TCTextField;
7
- inputRef?: React.RefObject<HTMLTextAreaElement>;
8
- fullWidth?: boolean;
9
- title?: string;
10
- helperText?: string | string[] | JSX.Element;
11
- disabled?: boolean | string;
12
- }
13
- export declare function CTextArea(props: ICTextAreaProps): import("react/jsx-runtime").JSX.Element;
14
- export interface ICInputProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'disabled'> {
15
- colorType?: TCTextField;
16
- inputRef?: React.RefObject<HTMLInputElement>;
17
- rightAddOn?: React.ReactNode;
18
- addOnDisabled?: boolean;
19
- addOnLoading?: boolean;
20
- title?: string;
21
- helperText?: string | string[] | JSX.Element;
22
- fullWidth?: boolean;
23
- titleStyle?: React.CSSProperties;
24
- disabled?: boolean | string;
25
- autoComplete?: string;
26
- ellipsis?: boolean;
27
- }
28
- export declare function CInput(props: ICInputProps): import("react/jsx-runtime").JSX.Element;
29
- interface ISelectExcelFileFormProps {
30
- file?: File | null;
31
- onFileChange?: (newFile: File) => void;
32
- }
33
- export declare function CSelectExcelFileForm(props: ISelectExcelFileFormProps): import("react/jsx-runtime").JSX.Element;
34
- export interface ICUnitTextFieldProps extends Omit<ICInputProps, 'onChange'> {
35
- unit?: string;
36
- value: string;
37
- onChange?: (str: string) => void;
38
- min?: number;
39
- max?: number;
40
- width?: number;
41
- disabled?: boolean | string;
42
- backgroundColor?: string;
43
- title?: string;
44
- titleStyle?: React.CSSProperties;
45
- noMargin?: boolean;
46
- asterisk?: boolean;
47
- className?: string;
48
- }
49
- export declare const CUnitTextField: (props: ICUnitTextFieldProps) => import("react/jsx-runtime").JSX.Element;
50
- export {};
@@ -1,9 +0,0 @@
1
- export declare const integer: (num: any, length?: number) => string | number;
2
- interface ITimerProps {
3
- time: number;
4
- onTimeOut: () => void;
5
- pause?: boolean;
6
- error?: boolean;
7
- }
8
- export declare const CTimer: (props: ITimerProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,71 +0,0 @@
1
- import React from 'react';
2
- export type TCTreeExpandType = 'noChild' | 'expanded' | 'notExpanded';
3
- export type TIdx = number | string;
4
- export type TCTreeIdx = string | number | symbol;
5
- export interface ICTreeIcons {
6
- noChild?: JSX.Element | null;
7
- expanded?: JSX.Element | null;
8
- notExpanded?: JSX.Element | null;
9
- }
10
- export interface ICTreeList {
11
- idx: TIdx;
12
- children?: ICTreeList[];
13
- [key: string]: any;
14
- disabled?: boolean;
15
- }
16
- export interface ICTreeProps {
17
- list: ICTreeList[];
18
- defaultDepth?: number;
19
- expands?: TIdx[];
20
- statics?: TIdx[];
21
- treeIcons?: ICTreeIcons;
22
- focusNode?: ICTreeList | TIdx | TIdx[];
23
- setFocusNode?: (node: any) => void;
24
- loading?: boolean;
25
- disabled?: boolean;
26
- disableRows?: (idx: TIdx) => boolean | string | undefined;
27
- expandFixed?: boolean;
28
- disableExpandOnClick?: boolean;
29
- disableExpandOnIconClick?: boolean;
30
- treeItemStyle?: React.CSSProperties;
31
- treeItemClassName?: string;
32
- treeItemCurrentClassName?: string;
33
- treeItemIconLeftPadding?: number;
34
- treeItemIconRightPadding?: number;
35
- treeItemLeftWidth?: number;
36
- treeItemContent?: (props: ICTreeItemProps) => JSX.Element | null;
37
- TreeRightStickyContent?: (props: ICTreeItemProps) => JSX.Element | null;
38
- onTreeItemClick?: (treeItem: ICTreeItemProps) => void;
39
- onTreeItemIconClick?: (treeItem: ICTreeItemProps) => void;
40
- onTreeItemRightClick?: (treeItem: ICTreeItemProps) => void;
41
- onExpand?: (newExpand: TIdx[]) => void;
42
- checkSet?: Set<TIdx>;
43
- onCheckChange?: (checkSet: Set<TIdx>) => void;
44
- CheckHeaderContent?: React.ReactNode;
45
- TreeRightStickyContentRightPadding?: number;
46
- disableSearchModule?: boolean;
47
- content?: React.ReactNode;
48
- disableHeader?: boolean;
49
- searchItemString?: string;
50
- overflowPadding?: number;
51
- useInheritCheck?: boolean;
52
- }
53
- export declare const CTree: (props: ICTreeProps) => import("react/jsx-runtime").JSX.Element;
54
- export interface ICTreeItemProps extends ICTreeProps {
55
- idx: number | string;
56
- children?: ICTreeList[];
57
- content: any;
58
- defaultIcons: ICTreeIcons;
59
- depth: number;
60
- isItemDisabled: (idx: TIdx) => boolean;
61
- isLastSibling: boolean;
62
- isParentLastSibling: boolean;
63
- firstDrawDepth: number;
64
- drawDepth: number[];
65
- onInherit: (item: ICTreeList) => void;
66
- onCheck: (item: ICTreeList) => void;
67
- isHover?: boolean;
68
- isOverflow?: boolean;
69
- treeBodyRef: React.RefObject<HTMLDivElement>;
70
- }
71
- export declare const countTree: (list: ICTreeList[]) => number;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { ICTreeList, TIdx } from './CTree';
3
- interface ICTreeSearchModuleProps {
4
- list: ICTreeList[];
5
- setFocusNode: (node: any) => void;
6
- expands: TIdx[];
7
- onExpand: (newExpand: TIdx[]) => void;
8
- searchItemString?: string;
9
- }
10
- export declare const CTreeSearchModule: React.FC<ICTreeSearchModuleProps>;
11
- export {};