@owp/core 2.5.52 → 2.5.54
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/components/OwpErrorBoundary/OwpErrorBoundary.js +49 -32
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
- package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js +4 -4
- package/dist/components/OwpPicker/OwpTimePicker.js +223 -212
- package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
- package/dist/components/OwpPicker/internal/DatePickerInput.js +56 -55
- package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +228 -227
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +189 -187
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +1152 -1027
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +549 -427
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/configs/theme.js +26 -22
- package/dist/configs/theme.js.map +1 -1
- package/dist/constants/gridTheme.js +53 -41
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/treeGrid.js +69 -49
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +53 -33
- package/dist/contexts/OwpUiProvider.js +37 -34
- package/dist/contexts/OwpUiProvider.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvas.js +8 -8
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +27 -27
- package/dist/features/themePreview/components/ThemePreviewColorField.js +4 -4
- package/dist/features/themePreview/components/ThemePreviewControls.js +8 -8
- package/dist/features/themePreview/configs/grid.js +26 -26
- package/dist/features/themePreview/configs/grid.js.map +1 -1
- package/dist/features/themePreview/configs/previewStorage.js +26 -32
- package/dist/features/themePreview/configs/previewStorage.js.map +1 -1
- package/dist/features/themePreview/configs/settings.js +13 -12
- package/dist/features/themePreview/configs/settings.js.map +1 -1
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +5 -5
- package/dist/features/themePreview/dialogs/index.js +5 -0
- package/dist/features/themePreview/dialogs/index.js.map +1 -0
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +8 -12
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewExport.js +48 -37
- package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -1
- package/dist/index.js +67 -66
- package/dist/layout/components/toggles/ThemePreviewToggle.js +26 -27
- package/dist/layout/components/toggles/ThemePreviewToggle.js.map +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/CODE93/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/components/OwpErrorBoundary/OwpErrorBoundary.d.ts +4 -0
- package/dist/types/components/OwpErrorBoundary/index.d.ts +1 -1
- package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +1 -1
- package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +7 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +3 -1
- package/dist/types/configs/theme/index.d.ts +2 -0
- package/dist/types/constants/gridTheme.d.ts +6 -0
- package/dist/types/constants/treeGrid.d.ts +40 -0
- package/dist/types/contexts/OwpAppContext.d.ts +1 -1
- package/dist/types/features/themePreview/configs/grid.d.ts +3 -4
- package/dist/types/features/themePreview/configs/settings.d.ts +15 -4
- package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/OwpGridThemeTypes.d.ts +6 -0
- package/dist/types/types/OwpSettingsTypes.d.ts +7 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/utils/treeGridUtil.js +123 -118
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/package.json +1 -2
- package/dist/features/themePreview.js +0 -76
- package/dist/features/themePreview.js.map +0 -1
- package/features/themePreview.d.ts +0 -3
- package/features/themePreview.js +0 -1
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { useOwpTranslation as
|
|
5
|
-
import
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var n = (r, e) => u(r, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsx as t, jsxs as l } 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 m } from "../../hooks/useOwpTranslation.js";
|
|
5
|
+
import b 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
6
|
import h from "@mui/material/Box";
|
|
7
|
-
import { Component as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
import { Component as p } from "react";
|
|
8
|
+
import { useRouteError as f, isRouteErrorResponse as x } from "react-router-dom";
|
|
9
|
+
function c({ error: r, errorInfo: e }) {
|
|
10
|
+
const { t: o } = m(), s = e == null ? void 0 : e.componentStack;
|
|
11
|
+
return /* @__PURE__ */ t("div", { className: "box-border flex min-h-screen w-full items-center justify-center bg-slate-50 p-24", children: /* @__PURE__ */ l("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: [
|
|
12
|
+
/* @__PURE__ */ l("div", { className: "flex items-start gap-8", children: [
|
|
13
|
+
/* @__PURE__ */ t(b, { className: "mt-2 shrink-0 text-red-500", sx: { fontSize: 24 } }),
|
|
14
|
+
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-col gap-6", children: [
|
|
15
|
+
/* @__PURE__ */ t("h1", { className: "text-2xl font-semibold leading-7 text-gray-900", children: o("Message.문제가 발생했습니다.") }),
|
|
16
|
+
r && /* @__PURE__ */ t("p", { className: "text-base text-red-700", children: r.toString() })
|
|
16
17
|
] })
|
|
17
18
|
] }),
|
|
18
|
-
|
|
19
|
+
s && /* @__PURE__ */ t(
|
|
19
20
|
h,
|
|
20
21
|
{
|
|
21
22
|
component: "pre",
|
|
@@ -40,34 +41,50 @@ function p({ error: t, errorInfo: r }) {
|
|
|
40
41
|
backgroundColor: "rgba(254, 226, 226, 0.8)"
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
|
-
children:
|
|
44
|
+
children: s
|
|
44
45
|
}
|
|
45
46
|
)
|
|
46
47
|
] }) });
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
n(c, "OwpErrorBoundaryFallback");
|
|
50
|
+
function g(r) {
|
|
51
|
+
if (r instanceof Error)
|
|
52
|
+
return r;
|
|
53
|
+
if (x(r)) {
|
|
54
|
+
const e = typeof r.data == "string" ? r.data : r.statusText;
|
|
55
|
+
return new Error(`${r.status}${e ? ` ${e}` : ""}`);
|
|
52
56
|
}
|
|
53
|
-
|
|
54
|
-
|
|
57
|
+
return typeof r == "string" ? new Error(r) : new Error("Unknown route error");
|
|
58
|
+
}
|
|
59
|
+
n(g, "normalizeRouteError");
|
|
60
|
+
const i = class i extends p {
|
|
61
|
+
constructor(e) {
|
|
62
|
+
super(e), this.state = { hasError: !1, error: null, errorInfo: null };
|
|
63
|
+
}
|
|
64
|
+
static getDerivedStateFromError(e) {
|
|
65
|
+
return { hasError: !0, error: e, errorInfo: null };
|
|
55
66
|
}
|
|
56
|
-
componentDidCatch(
|
|
57
|
-
this.setState({ error:
|
|
67
|
+
componentDidCatch(e, o) {
|
|
68
|
+
this.setState({ error: e, errorInfo: o }), console.error("Uncaught error:", e, o);
|
|
58
69
|
}
|
|
59
70
|
render() {
|
|
60
|
-
const { children:
|
|
61
|
-
return
|
|
71
|
+
const { children: e = null } = this.props, { error: o, errorInfo: s, hasError: d } = this.state;
|
|
72
|
+
return d ? /* @__PURE__ */ t(c, { error: o, errorInfo: s }) : e;
|
|
62
73
|
}
|
|
63
74
|
};
|
|
64
|
-
|
|
65
|
-
let
|
|
66
|
-
function
|
|
67
|
-
return /* @__PURE__ */
|
|
75
|
+
n(i, "OwpErrorBoundaryAdapter");
|
|
76
|
+
let a = i;
|
|
77
|
+
function S({ children: r }) {
|
|
78
|
+
return /* @__PURE__ */ t(a, { children: r });
|
|
79
|
+
}
|
|
80
|
+
n(S, "OwpErrorBoundary");
|
|
81
|
+
function y() {
|
|
82
|
+
const r = f();
|
|
83
|
+
return /* @__PURE__ */ t(c, { error: g(r), errorInfo: null });
|
|
68
84
|
}
|
|
69
|
-
|
|
85
|
+
n(y, "OwpRouteErrorElement");
|
|
70
86
|
export {
|
|
71
|
-
|
|
87
|
+
S as OwpErrorBoundary,
|
|
88
|
+
y as OwpRouteErrorElement
|
|
72
89
|
};
|
|
73
90
|
//# sourceMappingURL=OwpErrorBoundary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwpErrorBoundary.js","sources":["../../../src/components/OwpErrorBoundary/OwpErrorBoundary.tsx"],"sourcesContent":null,"names":["OwpErrorBoundaryFallback","error","errorInfo","t","useOwpTranslation","componentStack","jsxs","jsx","CancelRoundedIcon","Box","__name","_OwpErrorBoundaryAdapter","Component","props","children","hasError","OwpErrorBoundaryAdapter","OwpErrorBoundary"],"mappings":"
|
|
1
|
+
{"version":3,"file":"OwpErrorBoundary.js","sources":["../../../src/components/OwpErrorBoundary/OwpErrorBoundary.tsx"],"sourcesContent":null,"names":["OwpErrorBoundaryFallback","error","errorInfo","t","useOwpTranslation","componentStack","jsxs","jsx","CancelRoundedIcon","Box","__name","normalizeRouteError","isRouteErrorResponse","message","_OwpErrorBoundaryAdapter","Component","props","children","hasError","OwpErrorBoundaryAdapter","OwpErrorBoundary","OwpRouteErrorElement","useRouteError"],"mappings":";;;;;;;;AAuBA,SAASA,EAAyB,EAAE,OAAAC,GAAO,WAAAC,KAA4C;AACrF,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACRC,IAAiBH,KAAA,gBAAAA,EAAW;AAElC,2BACG,OAAA,EAAI,WAAU,oFACb,UAAA,gBAAAI,EAAC,OAAA,EAAI,WAAU,wJACb,UAAA;AAAA,IAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,0BACb,UAAA;AAAA,MAAA,gBAAAC,EAACC,KAAkB,WAAU,8BAA6B,IAAI,EAAE,UAAU,MAAM;AAAA,MAChF,gBAAAF,EAAC,OAAA,EAAI,WAAU,+BACb,UAAA;AAAA,QAAA,gBAAAC,EAAC,MAAA,EAAG,WAAU,kDAAkD,UAAAJ,EAAE,qBAAqB,GAAE;AAAA,QACxFF,KAAS,gBAAAM,EAAC,KAAA,EAAE,WAAU,0BAA0B,UAAAN,EAAM,WAAS,CAAE;AAAA,MAAA,EAAA,CACpE;AAAA,IAAA,GACF;AAAA,IAECI,KACC,gBAAAE;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,WAAU;AAAA,QACV,IAAI;AAAA,UACF,gBAAgB;AAAA,UAChB,iBAAiB;AAAA,UACjB,gBAAgB;AAAA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AAK,OAC3B,EAAE,OAAAhB,GAAO,WAAAC,GAAW,UAAAgB,EAAA,IAAa,KAAK;AAE5C,WAAIA,IACK,gBAAAX,EAACP,GAAA,EAAyB,OAAAC,GAAc,WAAAC,EAAA,CAAsB,IAGhEe;AAAA,EACT;AACF;AAzB8FP,EAAAI,GAAA;AAA9F,IAAMK,IAANL;AA+BO,SAASM,EAAiB,EAAE,UAAAH,KAAmC;AACpE,SAAO,gBAAAV,EAACY,KAAyB,UAAAF,GAAS;AAC5C;AAFgBP,EAAAU,GAAA;AAOT,SAASC,IAAuB;AACrC,QAAMpB,IAAQqB,EAAA;AAEd,2BAAQtB,GAAA,EAAyB,OAAOW,EAAoBV,CAAK,GAAG,WAAW,MAAM;AACvF;AAJgBS,EAAAW,GAAA;"}
|
|
@@ -3,8 +3,8 @@ var i = (e, r) => $(e, "name", { value: r, configurable: !0 });
|
|
|
3
3
|
import { jsx as t, jsxs as c } 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
4
|
import { Box as _, Skeleton as o } from "@mui/material";
|
|
5
5
|
import { alpha as k } from "@mui/material/styles";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { OwpSearchFilter as M } from "../OwpSearchFilter/OwpSearchFilter.js";
|
|
7
|
+
import { OwpPageCarded as H } from "../OwpPageCarded/OwpPageCarded.js";
|
|
8
8
|
const O = 10, D = 10, G = 72, v = 2, B = {
|
|
9
9
|
table: 4,
|
|
10
10
|
grid: 6,
|
|
@@ -175,10 +175,10 @@ function oe({ spec: e }) {
|
|
|
175
175
|
}
|
|
176
176
|
);
|
|
177
177
|
return l ? /* @__PURE__ */ t(
|
|
178
|
-
|
|
178
|
+
H,
|
|
179
179
|
{
|
|
180
180
|
fillContentHeight: s,
|
|
181
|
-
header: /* @__PURE__ */ t(_, { className: "w-full", sx: y, children: /* @__PURE__ */ t(
|
|
181
|
+
header: /* @__PURE__ */ t(_, { className: "w-full", sx: y, children: /* @__PURE__ */ t(M, { skeleton: !0, children: /* @__PURE__ */ t(Y, {}) }) }),
|
|
182
182
|
content: b
|
|
183
183
|
}
|
|
184
184
|
) : d ? /* @__PURE__ */ t(
|