@owp/core 1.22.0 → 1.23.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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b6 as r, b4 as o, a3 as i, a8 as l, a5 as p, a7 as n, a6 as c, a4 as d, ae as w, af as u, F as O, h as g, i as b, a_ as T, a$ as m, b0 as C, b1 as L, b5 as S, b3 as G, b2 as E, cv as I, bK as h, bL as y, b7 as B, b8 as D, b9 as N, aY as v, ba as R, bT as A, bU as _, bb as P, bc as x, be as k, bd as F, bn as f, bh as H, bi as U, bj as V, bg as M, bk as z, bo as Y, bm as J, bs as K, bt as W, bu as Q, bq as Z, br as q, bv as j, bw as X, bf as $, bp as ee, bx as ae, by as se, bz as te, bA as re, bB as oe, bC as ie, bD as le, bE as pe, bF as ne, bG as ce, bH as de, bI as we, bJ as ue, d as Oe, bP as ge, bQ as be, bR as Te, bS as me, aZ as Ce, cr as Le, cs as Se, cI as Ge, ct as Ee, cu as Ie, O as he, cM as ye, cz as Be, cw as De, cN as Ne, cB as ve, cC as Re, cD as Ae, bM as _e, cF as Pe, cE as xe, cH as ke, a0 as Fe, cA as fe, bN as He, bO as Ue, cL as Ve, cK as Me, cx as ze, cy as Ye, as as Je, at as Ke, ar as We, aq as Qe, cG as Ze, aL as qe, ax as je, e as Xe, $ as $e, bX as ea, aP as aa, X as sa, a1 as ta, a2 as ra, bW as oa, ab as ia, ap as la, aN as pa, ao as na, az as ca, ag as da, ai as wa, Y as ua, am as Oa, bY as ga, aM as ba, aJ as Ta, c6 as ma, aj as Ca, ca as La, ak as Sa, aI as Ga, a9 as Ea, aa as Ia, c7 as ha, c8 as ya, aO as Ba, ah as Da, c9 as Na, au as va, av as Ra, ay as Aa, aA as _a, aC as Pa, al as xa, bl as ka, bV as Fa, V as fa, o as Ha, b_ as Ua, an as Va, aK as Ma, aw as za, aT as Ya, aR as Ja, aU as Ka, aS as Wa, co as Qa, aF as Za, aG as qa, aD as ja, aE as Xa, aW as $a, cb as es, c5 as as, cl as ss, cm as ts, cn as rs, cc as os, cd as is, ce as ls, cf as ps, cg as ns, ch as cs, b$ as ds, c0 as ws, c4 as us, c1 as Os, c3 as gs, c2 as bs, ci as Ts, cj as ms, ck as Cs, ac as Ls, bZ as Ss, aV as Gs, aQ as Es, cp as Is, ad as hs, cq as ys, aH as Bs, aB as Ds, g as Ns, W as vs, aX as Rs, _ as As, Z as _s, cJ as Ps, n as xs, B as ks, K as Fs, L as fs, J as Hs, l as Us, q as Vs, v as Ms, x as zs, z as Ys, p as Js, C as Ks, E as Ws, M as Qs, k as Zs, I as qs, G as js, H as Xs, m as $s, r as et, w as at, y as st, A as tt, D as rt, N as ot, P as it, Q as lt, R as pt, S as nt, T as ct, U as dt } from "./index-CpTd4CYO.js";
1
+ import { b6 as r, b4 as o, a3 as i, a8 as l, a5 as p, a7 as n, a6 as c, a4 as d, ae as w, af as u, F as O, h as g, i as b, a_ as T, a$ as m, b0 as C, b1 as L, b5 as S, b3 as G, b2 as E, cv as I, bK as h, bL as y, b7 as B, b8 as D, b9 as N, aY as v, ba as R, bT as A, bU as _, bb as P, bc as x, be as k, bd as F, bn as f, bh as H, bi as U, bj as V, bg as M, bk as z, bo as Y, bm as J, bs as K, bt as W, bu as Q, bq as Z, br as q, bv as j, bw as X, bf as $, bp as ee, bx as ae, by as se, bz as te, bA as re, bB as oe, bC as ie, bD as le, bE as pe, bF as ne, bG as ce, bH as de, bI as we, bJ as ue, d as Oe, bP as ge, bQ as be, bR as Te, bS as me, aZ as Ce, cr as Le, cs as Se, cI as Ge, ct as Ee, cu as Ie, O as he, cM as ye, cz as Be, cw as De, cN as Ne, cB as ve, cC as Re, cD as Ae, bM as _e, cF as Pe, cE as xe, cH as ke, a0 as Fe, cA as fe, bN as He, bO as Ue, cL as Ve, cK as Me, cx as ze, cy as Ye, as as Je, at as Ke, ar as We, aq as Qe, cG as Ze, aL as qe, ax as je, e as Xe, $ as $e, bX as ea, aP as aa, X as sa, a1 as ta, a2 as ra, bW as oa, ab as ia, ap as la, aN as pa, ao as na, az as ca, ag as da, ai as wa, Y as ua, am as Oa, bY as ga, aM as ba, aJ as Ta, c6 as ma, aj as Ca, ca as La, ak as Sa, aI as Ga, a9 as Ea, aa as Ia, c7 as ha, c8 as ya, aO as Ba, ah as Da, c9 as Na, au as va, av as Ra, ay as Aa, aA as _a, aC as Pa, al as xa, bl as ka, bV as Fa, V as fa, o as Ha, b_ as Ua, an as Va, aK as Ma, aw as za, aT as Ya, aR as Ja, aU as Ka, aS as Wa, co as Qa, aF as Za, aG as qa, aD as ja, aE as Xa, aW as $a, cb as es, c5 as as, cl as ss, cm as ts, cn as rs, cc as os, cd as is, ce as ls, cf as ps, cg as ns, ch as cs, b$ as ds, c0 as ws, c4 as us, c1 as Os, c3 as gs, c2 as bs, ci as Ts, cj as ms, ck as Cs, ac as Ls, bZ as Ss, aV as Gs, aQ as Es, cp as Is, ad as hs, cq as ys, aH as Bs, aB as Ds, g as Ns, W as vs, aX as Rs, _ as As, Z as _s, cJ as Ps, n as xs, B as ks, K as Fs, L as fs, J as Hs, l as Us, q as Vs, v as Ms, x as zs, z as Ys, p as Js, C as Ks, E as Ws, M as Qs, k as Zs, I as qs, G as js, H as Xs, m as $s, r as et, w as at, y as st, A as tt, D as rt, N as ot, P as it, Q as lt, R as pt, S as nt, T as ct, U as dt } from "./index-DOKXEOMh.js";
2
2
  import { DialogsProvider as ut } from "@toolpad/core/useDialogs";
3
3
  import "@mui/material/styles";
4
4
  import "@mui/material/Typography";
@@ -0,0 +1,15 @@
1
+ const r = {
2
+ commonCodeList: "commonCodeList",
3
+ navigationList: "navigationList",
4
+ lockLoadingProps: "lockLoadingProps",
5
+ currentLogoSrc: "CurrentLogoSrc",
6
+ currentLanguage: "CurrentLanguage",
7
+ currentUser: "currentUser",
8
+ currentUserId: "CurrentUserId",
9
+ currentShortcuts: "CurrentShortcuts",
10
+ owpEnv: "owpEnv"
11
+ };
12
+ export {
13
+ r as S
14
+ };
15
+ //# sourceMappingURL=storageKeys-DRzte9LZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageKeys-DRzte9LZ.js","sources":["../src/constants/storageKeys.ts"],"sourcesContent":["/**\n * 스토리지 키 목록\n */\nexport const STORAGE_KEYS = {\n commonCodeList: 'commonCodeList',\n navigationList: 'navigationList',\n lockLoadingProps: 'lockLoadingProps',\n currentLogoSrc: 'CurrentLogoSrc',\n currentLanguage: 'CurrentLanguage',\n currentUser: 'currentUser',\n currentUserId: 'CurrentUserId',\n currentShortcuts: 'CurrentShortcuts',\n owpEnv: 'owpEnv',\n} as const;\n"],"names":["STORAGE_KEYS"],"mappings":"AAGO,MAAMA,IAAe;AAAA,EAC1B,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,QAAQ;AACV;"}
@@ -1,24 +1,30 @@
1
- import { TextFieldProps } from '@mui/material';
1
+ import type { FormControlProps } from '@mui/material/FormControl';
2
+ import type { InputProps as MuiInputProps } from '@mui/material/Input';
3
+ import { type ReactNode } from 'react';
4
+ type TextMaskFieldChangeEvent = {
5
+ target: {
6
+ name: string;
7
+ value: string;
8
+ };
9
+ unmaskedValue: string;
10
+ };
2
11
  interface CustomProps {
3
- onChange: (event: {
4
- target: {
5
- name: string;
6
- value: string;
7
- };
8
- unmaskedValue: string;
9
- }) => void;
10
- name: string;
12
+ onMaskChange: (event: TextMaskFieldChangeEvent) => void;
13
+ name?: string;
11
14
  mask: string;
12
- definitions: any;
15
+ definitions?: Record<string, unknown>;
13
16
  }
17
+ type OwpTextMaskFieldProps = Omit<MuiInputProps, 'onChange' | 'inputComponent'> & Omit<CustomProps, 'onMaskChange'> & {
18
+ label?: ReactNode;
19
+ helperText?: ReactNode;
20
+ variant?: FormControlProps['variant'];
21
+ onChange: CustomProps['onMaskChange'];
22
+ };
14
23
  /**
15
- * OwpTextMaskField 컴포넌트
16
- * @param className CSS 클래스명
17
- * @param sx sx
18
- * @param label 입력 라벨
19
- * @param value 현재 값
20
- * @param color color 값
21
- * @param onChange onChange 핸들러
24
+ * 마스크 텍스트 입력 필드
25
+ * @param mask 입력 마스크 문자열
26
+ * @param definitions 사용자 정의 마스크 정의
27
+ * @param onChange 마스크 변경 이벤트 핸들러
22
28
  */
23
- export declare function OwpTextMaskField({ className, sx, label, value, color, onChange, error, helperText, mask, definitions, variant, fullWidth, disabled, }: Omit<TextFieldProps, 'onChange'> & CustomProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function OwpTextMaskField({ className, sx, id: idProp, name, label, value, defaultValue, color, onChange, error, helperText, mask, definitions, variant, fullWidth, disabled, required, placeholder, autoFocus, inputProps, inputRef, }: OwpTextMaskFieldProps): import("react/jsx-runtime").JSX.Element;
24
30
  export {};
@@ -29,10 +29,15 @@ export interface OwpTreeGridProps<T> {
29
29
  className?: string;
30
30
  containerStyle?: CSSProperties;
31
31
  containerClassName?: string;
32
- LayoutUrl?: string;
33
32
  layoutUrl?: string;
33
+ dataUrl?: string;
34
+ layoutOverrides?: OwpTreeGridLayoutConfig;
35
+ /** @deprecated use layoutUrl */
36
+ LayoutUrl?: string;
37
+ /** @deprecated use dataUrl */
34
38
  DataUrl?: string;
35
39
  data?: OwpTreeGridBodyData<T>;
40
+ /** @deprecated use layoutOverrides */
36
41
  layout?: OwpTreeGridLayoutConfig;
37
42
  style?: CSSProperties;
38
43
  height?: string | number;
@@ -58,5 +63,5 @@ export interface OwpTreeGridProps<T> {
58
63
  * @param style 스타일 객체
59
64
  * @param height height 값
60
65
  */
61
- declare const OwpTreeGrid: <T>({ id, containerStyle, containerClassName, className, style, height, width, LayoutUrl, layoutUrl, DataUrl: dataUrl, data, layout, useDataUrl, onSelect, onRowClick, onRowAdd, onRowDelete, onRowUndelete, onRowChange, onClickButton, onSave, onReady, onAfterValueChanged, }: OwpTreeGridProps<T>) => import("react/jsx-runtime").JSX.Element;
66
+ declare const OwpTreeGrid: <T>({ id, containerStyle, containerClassName, className, style, height, width, layoutUrl, dataUrl, layoutOverrides, LayoutUrl, DataUrl, data, layout, useDataUrl, onSelect, onRowClick, onRowAdd, onRowDelete, onRowUndelete, onRowChange, onClickButton, onSave, onReady, onAfterValueChanged, }: OwpTreeGridProps<T>) => import("react/jsx-runtime").JSX.Element;
62
67
  export { OwpTreeGrid };
@@ -15,11 +15,11 @@ interface TreeGridProps {
15
15
  layoutDef: LayoutDef;
16
16
  }
17
17
  /**
18
- * TreeGrid 컴포넌트
18
+ * 레거시 TreeGrid 래퍼
19
19
  * @param id 식별자
20
20
  * @param className CSS 클래스명
21
21
  * @param style 스타일 객체
22
- * @param layoutDef 레이아웃 정의
22
+ * @param layoutDef 레이아웃 정의
23
23
  */
24
24
  export declare const TreeGrid: ({ id, className, style, layoutDef }: TreeGridProps) => import("react/jsx-runtime").JSX.Element;
25
25
  export {};
@@ -0,0 +1,2 @@
1
+ export * from './localStorageKeys';
2
+ export * from './storageKeys';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 로컬 스토리지 키 목록
3
+ */
4
+ export declare const LOCAL_STORAGE_KEYS: {
5
+ readonly accessToken: "jwt_access_token";
6
+ readonly currentLanguage: "CurrentLanguage";
7
+ };
8
+ export declare const STORAGE_ACCESS_TOKEN_KEY: "jwt_access_token";
9
+ export declare const CURRENT_LANGUAGE: "CurrentLanguage";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@owp/core",
3
3
  "private": false,
4
- "version": "1.22.0",
4
+ "version": "1.23.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -102,6 +102,8 @@
102
102
  "@owp/tailwind-config": "1.0.0"
103
103
  },
104
104
  "files": [
105
+ "constants.d.ts",
106
+ "constants.js",
105
107
  "dist/",
106
108
  "types/",
107
109
  "styles/",