gov-ui-core 0.1.0 → 0.2.1
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/build/components/Button/DropdownButton.d.ts +7 -5
- package/build/components/Input/Input.d.ts +2 -2
- package/build/components/Input/Select.d.ts +5 -8
- package/build/components/Input/styled.d.ts +4 -1
- package/build/index.js +1 -1
- package/build/pages/CreateTable.d.ts +0 -6
- package/build/utils/hookUtils.d.ts +13 -1
- package/build/utils/{utils.d.ts → index.d.ts} +8 -0
- package/package.json +2 -2
- package/scripts/start.js +1 -1
|
@@ -16,11 +16,5 @@ export declare const DATASOURCE_TYPE_OPTIONS: {
|
|
|
16
16
|
label: string;
|
|
17
17
|
value: string;
|
|
18
18
|
}[];
|
|
19
|
-
export declare const setColumnOption: (columns: Record<string, any>[], options?: Record<string, any>, padding?: number) => {
|
|
20
|
-
width: any;
|
|
21
|
-
ellipsis: {
|
|
22
|
-
showTitle: boolean;
|
|
23
|
-
};
|
|
24
|
-
}[];
|
|
25
19
|
declare const CreateTable: React.FC<ICreateTableProps>;
|
|
26
20
|
export default CreateTable;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* 컴포넌트를 로드할 때 해당 값을 감지하지 않기 위한 용도의 기능
|
|
4
|
+
* @param fn
|
|
5
|
+
* @param values
|
|
6
|
+
* @constructor
|
|
7
|
+
*/
|
|
8
|
+
export declare const useSubscribe: (fn: any, values: any[]) => void;
|
|
9
|
+
/**
|
|
10
|
+
* prev value를 반환해주는 함수
|
|
11
|
+
* @param fn callback function
|
|
12
|
+
* @param values observable array
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
3
15
|
export declare const usePrevious: (fn: any, values: any[]) => void;
|
|
4
16
|
export declare function useOutsideClick(callback: () => void): import("react").MutableRefObject<any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import queryString from 'query-string';
|
|
2
|
+
import { ColumnsType } from 'antd/lib/table/interface';
|
|
2
3
|
export declare const getOption: (options: any, value: any) => any;
|
|
3
4
|
/**
|
|
4
5
|
* 페이지네이션 계산 함수
|
|
@@ -25,3 +26,10 @@ export declare const getStringAttribute: (titleNode: any) => string | undefined;
|
|
|
25
26
|
* @param prefixTID prefix id
|
|
26
27
|
*/
|
|
27
28
|
export declare const cleanEmptyObj: (obj: any, values: Record<string, any>[], prefixTID?: any) => any;
|
|
29
|
+
/**
|
|
30
|
+
* column option 기본 셋팅
|
|
31
|
+
* @param columns
|
|
32
|
+
* @param options
|
|
33
|
+
* @param padding
|
|
34
|
+
*/
|
|
35
|
+
export declare const setColumnOption: <RecordType = Record<string, any>>(columns: ColumnsType<RecordType>, options?: Record<string, any>, padding?: number) => ColumnsType<RecordType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gov-ui-core",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"module": "./build/index.js",
|
|
6
6
|
"types": "./build/modules.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@types/react": "^18.2.67",
|
|
22
22
|
"@types/react-date-range": "^1.4.9",
|
|
23
23
|
"@types/react-dom": "^18.2.22",
|
|
24
|
-
"antd": "^4.
|
|
24
|
+
"antd": "^4.24.16",
|
|
25
25
|
"babel-jest": "^27.4.2",
|
|
26
26
|
"babel-loader": "^8.2.3",
|
|
27
27
|
"babel-plugin-named-asset-import": "^0.3.8",
|
package/scripts/start.js
CHANGED
|
@@ -44,7 +44,7 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
// Tools like Cloud9 rely on this.
|
|
47
|
-
const DEFAULT_PORT = parseInt(process.env.PORT, 10) ||
|
|
47
|
+
const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 4000;
|
|
48
48
|
const HOST = process.env.HOST || '0.0.0.0';
|
|
49
49
|
|
|
50
50
|
if (process.env.HOST) {
|