@thefreshop/tb 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +11 -4
- package/dist/cjs/index.js +363 -405
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/tbframe/index.d.ts +2 -3
- package/dist/cjs/tbframe/layout/bottom.d.ts +1 -1
- package/dist/cjs/tbframe/layout/frame.d.ts +3 -3
- package/dist/cjs/tbframe/layout/nav.d.ts +2 -2
- package/dist/cjs/tbframe/layout/top.d.ts +3 -3
- package/dist/cjs/tbframe/page/loginpage.d.ts +1 -1
- package/dist/cjs/tbframe/provider/provider.d.ts +2 -2
- package/dist/cjs/tbpage/component/authTable.d.ts +1 -1
- package/dist/cjs/tbpage/component/modules/antBaseModalCreate/index.d.ts +3 -3
- package/dist/cjs/tbpage/component/modules/antBaseModalCreate/modal_props.d.ts +4 -4
- package/dist/cjs/tbpage/component/modules/antBaseTable/btn_widget.d.ts +4 -4
- package/dist/cjs/tbpage/component/modules/antBaseTable/index.d.ts +4 -4
- package/dist/cjs/tbpage/component/modules/antBaseTable/table_props.d.ts +5 -5
- package/dist/cjs/tbpage/component/modules/loading_layout.d.ts +2 -2
- package/dist/cjs/tbpage/component/modules/searchbox.d.ts +2 -2
- package/dist/cjs/tbpage/component/modules/util.d.ts +2 -2
- package/dist/cjs/tbpage/index.d.ts +0 -1
- package/dist/cjs/{tbframe/types → types}/index.d.ts +6 -4
- package/dist/cjs/{tbframe/types → types}/provider.types.d.ts +2 -2
- package/dist/esm/index.d.ts +11 -4
- package/dist/esm/index.js +363 -405
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/tbframe/index.d.ts +2 -3
- package/dist/esm/tbframe/layout/bottom.d.ts +1 -1
- package/dist/esm/tbframe/layout/frame.d.ts +3 -3
- package/dist/esm/tbframe/layout/nav.d.ts +2 -2
- package/dist/esm/tbframe/layout/top.d.ts +3 -3
- package/dist/esm/tbframe/page/loginpage.d.ts +1 -1
- package/dist/esm/tbframe/provider/provider.d.ts +2 -2
- package/dist/esm/tbpage/component/authTable.d.ts +1 -1
- package/dist/esm/tbpage/component/modules/antBaseModalCreate/index.d.ts +3 -3
- package/dist/esm/tbpage/component/modules/antBaseModalCreate/modal_props.d.ts +4 -4
- package/dist/esm/tbpage/component/modules/antBaseTable/btn_widget.d.ts +4 -4
- package/dist/esm/tbpage/component/modules/antBaseTable/index.d.ts +4 -4
- package/dist/esm/tbpage/component/modules/antBaseTable/table_props.d.ts +5 -5
- package/dist/esm/tbpage/component/modules/loading_layout.d.ts +2 -2
- package/dist/esm/tbpage/component/modules/searchbox.d.ts +2 -2
- package/dist/esm/tbpage/component/modules/util.d.ts +2 -2
- package/dist/esm/tbpage/index.d.ts +0 -1
- package/dist/esm/{tbframe/types → types}/index.d.ts +6 -4
- package/dist/esm/{tbframe/types → types}/provider.types.d.ts +2 -2
- package/dist/index.d.ts +265 -0
- package/package.json +4 -2
- package/dist/cjs/tbpage/types/index.d.ts +0 -2
- package/dist/esm/tbpage/types/index.d.ts +0 -2
- /package/dist/cjs/{tbpage/types → types}/antBaseTable.types.d.ts +0 -0
- /package/dist/cjs/{tbpage/types → types}/searchbox.type.d.ts +0 -0
- /package/dist/cjs/{tbframe/types → types}/tbframe.types.d.ts +0 -0
- /package/dist/cjs/{tbframe/types → types}/user.types.d.ts +0 -0
- /package/dist/esm/{tbpage/types → types}/antBaseTable.types.d.ts +0 -0
- /package/dist/esm/{tbpage/types → types}/searchbox.type.d.ts +0 -0
- /package/dist/esm/{tbframe/types → types}/tbframe.types.d.ts +0 -0
- /package/dist/esm/{tbframe/types → types}/user.types.d.ts +0 -0
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export { default as TbFrame } from './layout/frame';
|
|
1
|
+
export { TbContext, TbProvider, useTbState } from "./provider/provider";
|
|
2
|
+
export { default as TbFrame } from "./layout/frame";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { tbframeType, topType, navType, bottomType } from
|
|
3
|
-
declare const TbFrame: ({ setting, top, bottom, nav, top_banner }: {
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { tbframeType, topType, navType, bottomType } from "../../types";
|
|
3
|
+
declare const TbFrame: ({ setting, top, bottom, nav, top_banner, }: {
|
|
4
4
|
setting: tbframeType;
|
|
5
5
|
top: topType;
|
|
6
6
|
bottom?: bottomType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { tbframeType, topType } from
|
|
3
|
-
declare const Top: ({ setting, top: { title, titleimage, topMenuSetting, menuStyle, imgstyle, titleStyle, topRight } }: {
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { tbframeType, topType } from "../../types";
|
|
3
|
+
declare const Top: ({ setting, top: { title, titleimage, topMenuSetting, menuStyle, imgstyle, titleStyle, topRight }, }: {
|
|
4
4
|
setting: tbframeType;
|
|
5
5
|
top: topType;
|
|
6
6
|
}) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ProviderType } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ProviderType } from "../../types";
|
|
3
3
|
export declare const TbContext: React.Context<ProviderType | undefined>;
|
|
4
4
|
export declare const TbProvider: ({ children }: {
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ModalFuncProps, FormProps } from
|
|
3
|
-
import { antBaseColumnType } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ModalFuncProps, FormProps } from "antd";
|
|
3
|
+
import { antBaseColumnType } from "../../../../types";
|
|
4
4
|
type propsType = {
|
|
5
5
|
type?: string;
|
|
6
6
|
customColumn?: any[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
3
|
-
import { antBaseColumnType } from
|
|
4
|
-
export declare const useFormColumns: ({ isModify, columns, onChange }: {
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "moment/locale/ko";
|
|
3
|
+
import { antBaseColumnType } from "../../../../types";
|
|
4
|
+
export declare const useFormColumns: ({ isModify, columns, onChange, }: {
|
|
5
5
|
isModify: boolean;
|
|
6
6
|
columns?: antBaseColumnType[];
|
|
7
7
|
onChange: (data: any) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { btnReturnFType, customBtnReturnFType } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { btnReturnFType, customBtnReturnFType } from "../../../../types";
|
|
3
3
|
/**
|
|
4
4
|
* 테이블 상단 버튼 그룹
|
|
5
5
|
* @author 신민우
|
|
@@ -17,7 +17,7 @@ import { btnReturnFType, customBtnReturnFType } from '../../../types';
|
|
|
17
17
|
|
|
18
18
|
* @todo
|
|
19
19
|
*/
|
|
20
|
-
export declare const TableTopButtonGroup: ({ isSelect, onRefresh, isCounter, autoRefreshTime, addProps, modifyProps, deleteProps, removeProps, resetProps, customProps }: {
|
|
20
|
+
export declare const TableTopButtonGroup: ({ isSelect, onRefresh, isCounter, autoRefreshTime, addProps, modifyProps, deleteProps, removeProps, resetProps, customProps, }: {
|
|
21
21
|
isSelect: boolean;
|
|
22
22
|
onRefresh?: () => void;
|
|
23
23
|
isCounter?: boolean;
|
|
@@ -29,7 +29,7 @@ export declare const TableTopButtonGroup: ({ isSelect, onRefresh, isCounter, aut
|
|
|
29
29
|
resetProps?: btnReturnFType;
|
|
30
30
|
customProps?: customBtnReturnFType;
|
|
31
31
|
}) => React.JSX.Element | null;
|
|
32
|
-
export declare const TableBottomButtonGroup: ({ isSelect, topProps, bottomProps, upProps, downProps }: {
|
|
32
|
+
export declare const TableBottomButtonGroup: ({ isSelect, topProps, bottomProps, upProps, downProps, }: {
|
|
33
33
|
isSelect: boolean;
|
|
34
34
|
topProps?: btnReturnFType;
|
|
35
35
|
bottomProps?: btnReturnFType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { AntBaseTableRefProps, antBasePropsType } from
|
|
3
|
-
import { GetRowKey } from
|
|
4
|
-
declare module
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AntBaseTableRefProps, antBasePropsType } from "../../../../types";
|
|
3
|
+
import { GetRowKey } from "antd/es/table/interface";
|
|
4
|
+
declare module "react" {
|
|
5
5
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.Ref<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { TableColumnProps, TableProps, CheckboxProps } from
|
|
3
|
-
import { antBaseColumnType } from
|
|
4
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TableColumnProps, TableProps, CheckboxProps } from "antd/";
|
|
3
|
+
import { antBaseColumnType } from "../../../../types";
|
|
4
|
+
import "moment/locale/ko";
|
|
5
5
|
export declare const tableColumns: (columns?: antBaseColumnType[]) => import("antd").TableColumnsType<import("antd/es/_util/type").AnyObject>;
|
|
6
6
|
export declare const convert2FormData: <ItemType, KEY extends keyof ItemType>({ data, columns }: {
|
|
7
7
|
data?: ItemType;
|
|
8
8
|
columns: antBaseColumnType[];
|
|
9
9
|
}) => any;
|
|
10
|
-
export declare const tableRowSelection: ({ selectedRowKeys, radioProps, checkboxProps }: {
|
|
10
|
+
export declare const tableRowSelection: ({ selectedRowKeys, radioProps, checkboxProps, }: {
|
|
11
11
|
selectedRowKeys: React.Key[];
|
|
12
12
|
radioProps?: {
|
|
13
13
|
onFun: (data: any) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* 로딩 레이아웃
|
|
4
4
|
* @author 신민우
|
|
5
5
|
*/
|
|
6
|
-
export declare const LoadingLayout: ({ tip, isLoading, error, isError, style, children, className, notFullScreen }: {
|
|
6
|
+
export declare const LoadingLayout: ({ tip, isLoading, error, isError, style, children, className, notFullScreen, }: {
|
|
7
7
|
tip?: string;
|
|
8
8
|
isLoading?: boolean;
|
|
9
9
|
isError?: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { searchBoxType } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { searchBoxType } from "../../../types";
|
|
3
3
|
export declare const SearchBox: ({ searchOption, searchDisabled, onSubmit, onReset }: searchBoxType) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { antBaseColumnType } from
|
|
2
|
-
export declare const deleteCol: ({ key, onRemove, onReset }: {
|
|
1
|
+
import { antBaseColumnType } from "../../../types";
|
|
2
|
+
export declare const deleteCol: ({ key, onRemove, onReset, }: {
|
|
3
3
|
key: string;
|
|
4
4
|
onRemove?: (data: any) => void;
|
|
5
5
|
onReset?: (data: any) => void;
|
|
@@ -6,4 +6,3 @@ export { TbpageSm } from "./component/tbpagesm";
|
|
|
6
6
|
export { TbpageMulti } from "./component/tbpageMulti";
|
|
7
7
|
export { default as AntBaseTable } from "./component/modules/antBaseTable";
|
|
8
8
|
export { default as AntBaseModalCreate } from "./component/modules/antBaseModalCreate";
|
|
9
|
-
export type * from "./types";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
|
|
1
|
+
export * from "./antBaseTable.types";
|
|
2
|
+
export * from "./searchbox.type";
|
|
3
|
+
export * from "./user.types";
|
|
4
|
+
export * from "./tbframe.types";
|
|
5
|
+
export * from "./provider.types";
|
|
6
|
+
import { tabType } from "./provider.types";
|
|
5
7
|
export interface tbframeType {
|
|
6
8
|
islogin?: boolean;
|
|
7
9
|
isgroup?: boolean;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
export type * from "./
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export * from "./tbpage";
|
|
1
|
+
export type * from "./types";
|
|
2
|
+
export { TbContext, TbProvider, useTbState } from "./tbframe/provider/provider";
|
|
3
|
+
export { default as TbFrame } from "./tbframe/layout/frame";
|
|
4
|
+
export * from "./tbpage/component/authTable";
|
|
5
|
+
export { TbpProvider } from "./tbpage/provider/provider";
|
|
6
|
+
export { ContentLayout } from "./tbpage/component/content_layout";
|
|
7
|
+
export { Tbpage } from "./tbpage/component/tbpage";
|
|
8
|
+
export { TbpageSm } from "./tbpage/component/tbpagesm";
|
|
9
|
+
export { TbpageMulti } from "./tbpage/component/tbpageMulti";
|
|
10
|
+
export { default as AntBaseTable } from "./tbpage/component/modules/antBaseTable";
|
|
11
|
+
export { default as AntBaseModalCreate } from "./tbpage/component/modules/antBaseModalCreate";
|