@owp/core 2.5.39 → 2.5.41
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/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js +56 -25
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +476 -460
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +2 -2
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CancelRounded.js +9 -0
- package/dist/node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CancelRounded.js.map +1 -0
- package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/utils/treeGridUtil.d.ts +5 -0
- package/dist/utils/treeGridUtil.js +267 -230
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils.js +41 -40
- package/package.json +1 -1
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,42 +1,73 @@
|
|
|
1
|
-
var
|
|
2
|
-
var s = (t, r) =>
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { useOwpTranslation as
|
|
5
|
-
import
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var s = (t, r) => d(t, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { jsx as e, jsxs as a } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
+
import { useOwpTranslation as b } from "../../hooks/useOwpTranslation.js";
|
|
5
|
+
import m from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/CancelRounded.js";
|
|
6
|
+
import h from "@mui/material/Box";
|
|
7
|
+
import { Component as u } from "react";
|
|
6
8
|
function p({ error: t, errorInfo: r }) {
|
|
7
|
-
const { t:
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const { t: o } = b(), l = r == null ? void 0 : r.componentStack;
|
|
10
|
+
return /* @__PURE__ */ e("div", { className: "box-border flex min-h-screen w-full items-center justify-center bg-slate-50 p-24", children: /* @__PURE__ */ a("div", { className: "flex max-h-[calc(100vh-48px)] w-full max-w-5xl flex-col gap-16 overflow-hidden rounded-lg border border-solid border-red-100 bg-white p-24 shadow-sm", children: [
|
|
11
|
+
/* @__PURE__ */ a("div", { className: "flex items-start gap-8", children: [
|
|
12
|
+
/* @__PURE__ */ e(m, { className: "mt-2 shrink-0 text-red-500", sx: { fontSize: 24 } }),
|
|
13
|
+
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col gap-6", children: [
|
|
14
|
+
/* @__PURE__ */ e("h1", { className: "text-2xl font-semibold leading-7 text-gray-900", children: o("Message.문제가 발생했습니다.") }),
|
|
15
|
+
t && /* @__PURE__ */ e("p", { className: "text-base text-red-700", children: t.toString() })
|
|
16
|
+
] })
|
|
17
|
+
] }),
|
|
18
|
+
l && /* @__PURE__ */ e(
|
|
19
|
+
h,
|
|
20
|
+
{
|
|
21
|
+
component: "pre",
|
|
22
|
+
className: "m-0 max-h-[60vh] overflow-y-scroll whitespace-pre-wrap rounded-md border border-solid border-red-100 bg-red-50 p-16 font-mono text-sm leading-6 text-red-950",
|
|
23
|
+
sx: {
|
|
24
|
+
scrollbarColor: "rgba(185, 28, 28, 0.45) rgba(254, 226, 226, 0.8)",
|
|
25
|
+
scrollbarGutter: "stable",
|
|
26
|
+
scrollbarWidth: "thin",
|
|
27
|
+
"&::-webkit-scrollbar": {
|
|
28
|
+
width: 10
|
|
29
|
+
},
|
|
30
|
+
"&::-webkit-scrollbar-thumb": {
|
|
31
|
+
backgroundClip: "padding-box",
|
|
32
|
+
backgroundColor: "rgba(185, 28, 28, 0.45)",
|
|
33
|
+
border: "2px solid transparent",
|
|
34
|
+
borderRadius: 8
|
|
35
|
+
},
|
|
36
|
+
"&::-webkit-scrollbar-thumb:hover": {
|
|
37
|
+
backgroundColor: "rgba(185, 28, 28, 0.6)"
|
|
38
|
+
},
|
|
39
|
+
"&::-webkit-scrollbar-track": {
|
|
40
|
+
backgroundColor: "rgba(254, 226, 226, 0.8)"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
children: l
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
] }) });
|
|
16
47
|
}
|
|
17
48
|
s(p, "OwpErrorBoundaryFallback");
|
|
18
|
-
const
|
|
49
|
+
const c = class c extends u {
|
|
19
50
|
constructor(r) {
|
|
20
51
|
super(r), this.state = { hasError: !1, error: null, errorInfo: null };
|
|
21
52
|
}
|
|
22
53
|
static getDerivedStateFromError(r) {
|
|
23
54
|
return { hasError: !0, error: r, errorInfo: null };
|
|
24
55
|
}
|
|
25
|
-
componentDidCatch(r,
|
|
26
|
-
this.setState({ error: r, errorInfo:
|
|
56
|
+
componentDidCatch(r, o) {
|
|
57
|
+
this.setState({ error: r, errorInfo: o }), console.error("Uncaught error:", r, o);
|
|
27
58
|
}
|
|
28
59
|
render() {
|
|
29
|
-
const { children: r = null } = this.props, { error:
|
|
30
|
-
return
|
|
60
|
+
const { children: r = null } = this.props, { error: o, errorInfo: l, hasError: i } = this.state;
|
|
61
|
+
return i ? /* @__PURE__ */ e(p, { error: o, errorInfo: l }) : r;
|
|
31
62
|
}
|
|
32
63
|
};
|
|
33
|
-
s(
|
|
34
|
-
let
|
|
35
|
-
function
|
|
36
|
-
return /* @__PURE__ */ n
|
|
64
|
+
s(c, "OwpErrorBoundaryAdapter");
|
|
65
|
+
let n = c;
|
|
66
|
+
function C({ children: t }) {
|
|
67
|
+
return /* @__PURE__ */ e(n, { children: t });
|
|
37
68
|
}
|
|
38
|
-
s(
|
|
69
|
+
s(C, "OwpErrorBoundary");
|
|
39
70
|
export {
|
|
40
|
-
|
|
71
|
+
C as OwpErrorBoundary
|
|
41
72
|
};
|
|
42
73
|
//# sourceMappingURL=OwpErrorBoundary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwpErrorBoundary.js","sources":["../../../src/components/OwpErrorBoundary/OwpErrorBoundary.tsx"],"sourcesContent":["import { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport { Component, type ErrorInfo, type ReactNode } from 'react';\n\ntype OwpErrorBoundaryProps = {\n children?: ReactNode;\n};\n\ntype OwpErrorBoundaryState = {\n hasError: boolean;\n error: Error | null;\n errorInfo: ErrorInfo | null;\n};\n\ntype OwpErrorBoundaryFallbackProps = Pick<OwpErrorBoundaryState, 'error' | 'errorInfo'>;\n\n/**\n * 에러 경계 fallback UI\n * @param error 발생 에러\n * @param errorInfo React 에러 정보\n */\nfunction OwpErrorBoundaryFallback({ error, errorInfo }: OwpErrorBoundaryFallbackProps) {\n const { t } = useOwpTranslation();\n\n return (\n <div className=\"bg-
|
|
1
|
+
{"version":3,"file":"OwpErrorBoundary.js","sources":["../../../src/components/OwpErrorBoundary/OwpErrorBoundary.tsx"],"sourcesContent":["import { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport CancelRoundedIcon from '@mui/icons-material/CancelRounded';\nimport Box from '@mui/material/Box';\nimport { Component, type ErrorInfo, type ReactNode } from 'react';\n\ntype OwpErrorBoundaryProps = {\n children?: ReactNode;\n};\n\ntype OwpErrorBoundaryState = {\n hasError: boolean;\n error: Error | null;\n errorInfo: ErrorInfo | null;\n};\n\ntype OwpErrorBoundaryFallbackProps = Pick<OwpErrorBoundaryState, 'error' | 'errorInfo'>;\n\n/**\n * 에러 경계 fallback UI\n * @param error 발생 에러\n * @param errorInfo React 에러 정보\n */\nfunction OwpErrorBoundaryFallback({ error, errorInfo }: OwpErrorBoundaryFallbackProps) {\n const { t } = useOwpTranslation();\n const componentStack = errorInfo?.componentStack;\n\n return (\n <div className=\"box-border flex min-h-screen w-full items-center justify-center bg-slate-50 p-24\">\n <div className=\"flex max-h-[calc(100vh-48px)] w-full max-w-5xl flex-col gap-16 overflow-hidden rounded-lg border border-solid border-red-100 bg-white p-24 shadow-sm\">\n <div className=\"flex items-start gap-8\">\n <CancelRoundedIcon className=\"mt-2 shrink-0 text-red-500\" sx={{ fontSize: 24 }} />\n <div className=\"flex min-w-0 flex-col gap-6\">\n <h1 className=\"text-2xl font-semibold leading-7 text-gray-900\">{t('Message.문제가 발생했습니다.')}</h1>\n {error && <p className=\"text-base text-red-700\">{error.toString()}</p>}\n </div>\n </div>\n\n {componentStack && (\n <Box\n component=\"pre\"\n className=\"m-0 max-h-[60vh] overflow-y-scroll whitespace-pre-wrap rounded-md border border-solid border-red-100 bg-red-50 p-16 font-mono text-sm leading-6 text-red-950\"\n sx={{\n scrollbarColor: 'rgba(185, 28, 28, 0.45) rgba(254, 226, 226, 0.8)',\n scrollbarGutter: 'stable',\n scrollbarWidth: 'thin',\n '&::-webkit-scrollbar': {\n width: 10,\n },\n '&::-webkit-scrollbar-thumb': {\n backgroundClip: 'padding-box',\n backgroundColor: 'rgba(185, 28, 28, 0.45)',\n border: '2px solid transparent',\n borderRadius: 8,\n },\n '&::-webkit-scrollbar-thumb:hover': {\n backgroundColor: 'rgba(185, 28, 28, 0.6)',\n },\n '&::-webkit-scrollbar-track': {\n backgroundColor: 'rgba(254, 226, 226, 0.8)',\n },\n }}\n >\n {componentStack}\n </Box>\n )}\n </div>\n </div>\n );\n}\n\n/**\n * React 에러 경계 class adapter\n */\nclass OwpErrorBoundaryAdapter extends Component<OwpErrorBoundaryProps, OwpErrorBoundaryState> {\n constructor(props: OwpErrorBoundaryProps) {\n super(props);\n this.state = { hasError: false, error: null, errorInfo: null };\n }\n\n static getDerivedStateFromError(error: Error): OwpErrorBoundaryState {\n return { hasError: true, error, errorInfo: null };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n this.setState({ error, errorInfo });\n console.error('Uncaught error:', error, errorInfo);\n }\n\n render() {\n const { children = null } = this.props;\n const { error, errorInfo, hasError } = this.state;\n\n if (hasError) {\n return <OwpErrorBoundaryFallback error={error} errorInfo={errorInfo} />;\n }\n\n return children;\n }\n}\n\n/**\n * OWP 에러 경계\n * @param children 하위 콘텐츠\n */\nexport function OwpErrorBoundary({ children }: OwpErrorBoundaryProps) {\n return <OwpErrorBoundaryAdapter>{children}</OwpErrorBoundaryAdapter>;\n}\n"],"names":["OwpErrorBoundaryFallback","error","errorInfo","t","useOwpTranslation","componentStack","jsxs","jsx","CancelRoundedIcon","Box","__name","_OwpErrorBoundaryAdapter","Component","props","children","hasError","OwpErrorBoundaryAdapter","OwpErrorBoundary"],"mappings":";;;;;;;AAsBA,SAASA,EAAyB,EAAE,OAAAC,GAAO,WAAAC,KAA4C;AACrF,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACRC,IAAiBH,KAAA,gBAAAA,EAAW;AAElC,2BACG,OAAA,EAAI,WA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