@owp/core 2.5.51 → 2.5.53
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/index16.js +4 -4
- package/dist/_virtual/index17.js +4 -4
- package/dist/_virtual/index18.js +4 -4
- package/dist/_virtual/index19.js +4 -4
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js +49 -32
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
- package/dist/components/OwpLoading/OwpLoading.js +7 -6
- package/dist/components/OwpLoading/OwpLoading.js.map +1 -1
- package/dist/components/OwpNavLinkAdapter/OwpNavLinkAdapter.js +100 -28
- package/dist/components/OwpNavLinkAdapter/OwpNavLinkAdapter.js.map +1 -1
- package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js +4 -4
- package/dist/components/OwpSuspense/OwpSuspense.js +66 -60
- package/dist/components/OwpSuspense/OwpSuspense.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +352 -297
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +654 -604
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +516 -425
- 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 +40 -29
- package/dist/constants/gridTheme.js.map +1 -1
- 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 +5 -7
- 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 +4 -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/hooks/internal/useNavigationActiveRouteRemount.js +19 -16
- package/dist/hooks/internal/useNavigationActiveRouteRemount.js.map +1 -1
- package/dist/hooks/internal/useRouteTransitionLoading.js +49 -0
- package/dist/hooks/internal/useRouteTransitionLoading.js.map +1 -0
- package/dist/index.js +67 -66
- package/dist/layout/Layout.js +107 -34
- package/dist/layout/Layout.js.map +1 -1
- package/dist/layout/components/navigation/NavBadge.js +8 -8
- package/dist/layout/components/navigation/NavBadge.js.map +1 -1
- package/dist/layout/components/navigation/NavItem.js +19 -15
- package/dist/layout/components/navigation/NavItem.js.map +1 -1
- package/dist/layout/components/navigation/Navigation.js +25 -22
- package/dist/layout/components/navigation/Navigation.js.map +1 -1
- package/dist/layout/components/navigation/NavigationMenu.js +25 -18
- package/dist/layout/components/navigation/NavigationMenu.js.map +1 -1
- package/dist/layout/components/navigation/vertical/NavVerticalLayout.js +69 -44
- package/dist/layout/components/navigation/vertical/NavVerticalLayout.js.map +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js +71 -64
- package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js.map +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js +15 -14
- package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js.map +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js +16 -14
- package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js.map +1 -1
- package/dist/layout/components/navigation/vertical/types/NavVerticalLink.js +17 -12
- package/dist/layout/components/navigation/vertical/types/NavVerticalLink.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +164 -165
- package/dist/layout/components/toggles/NavigationSearchToggle.js.map +1 -1
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js +88 -95
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js.map +1 -1
- package/dist/layout/components/toggles/ThemePreviewToggle.js +26 -27
- package/dist/layout/components/toggles/ThemePreviewToggle.js.map +1 -1
- 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/index.js +1 -1
- package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.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 +2 -2
- package/dist/types/components/OwpPicker/internal/DatePickerInput.d.ts +1 -1
- package/dist/types/components/OwpSuspense/OwpSuspense.d.ts +1 -0
- package/dist/types/components/OwpTable/internal/OwpTableBase.d.ts +1 -1
- package/dist/types/components/OwpTabs/OwpTab.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 +2 -0
- package/dist/types/configs/theme/index.d.ts +2 -0
- package/dist/types/constants/gridTheme.d.ts +4 -0
- package/dist/types/contexts/OwpAppContext.d.ts +1 -1
- package/dist/types/features/themePreview/configs/grid.d.ts +2 -4
- package/dist/types/features/themePreview/configs/settings.d.ts +14 -4
- package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +1 -1
- package/dist/types/features/themePreview/utils/themePreviewSettings.d.ts +1 -1
- package/dist/types/hooks/internal/useRouteTransitionLoading.d.ts +27 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/layout/components/navigation/NavItem.d.ts +2 -3
- package/dist/types/layout/components/navigation/NavigationMenu.d.ts +5 -5
- package/dist/types/layout/components/navigation/vertical/NavVerticalLayout.d.ts +1 -1
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalCollapse.d.ts +1 -1
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalGroup.d.ts +1 -1
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalItem.d.ts +1 -1
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalLink.d.ts +1 -1
- package/dist/types/store/atoms/owpSettingsAtoms.d.ts +1 -1
- package/dist/types/types/OwpGridThemeTypes.d.ts +4 -0
- package/dist/types/types/OwpSettingsTypes.d.ts +7 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/utils/internal/navigationSearchUtils.d.ts +22 -0
- package/dist/types/utils/internal/navigationUtils.d.ts +22 -27
- package/dist/utils/internal/navigationSearchUtils.js +44 -0
- package/dist/utils/internal/navigationSearchUtils.js.map +1 -0
- package/dist/utils/internal/navigationUtils.js +38 -123
- package/dist/utils/internal/navigationUtils.js.map +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/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +0 -14
- package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js.map +0 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/defaults.js +0 -24
- package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/defaults.js.map +0 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/string/trim.js +0 -10
- package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/string/trim.js.map +0 -1
- package/features/themePreview.d.ts +0 -3
- package/features/themePreview.js +0 -1
package/dist/_virtual/index16.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as t } from "../node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/match/index.js";
|
|
3
|
+
var o = t();
|
|
4
|
+
const m = /* @__PURE__ */ r(o);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index16.js.map
|
package/dist/_virtual/index17.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var o =
|
|
4
|
-
const
|
|
2
|
+
import { __require as e } from "../node_modules/.pnpm/autosuggest-highlight@3.3.4/node_modules/autosuggest-highlight/parse/index.js";
|
|
3
|
+
var o = e();
|
|
4
|
+
const s = /* @__PURE__ */ r(o);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index17.js.map
|
package/dist/_virtual/index18.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var o =
|
|
4
|
-
const
|
|
2
|
+
import { __require as t } from "../node_modules/.pnpm/react-autosuggest@10.1.0_react@19.2.4/node_modules/react-autosuggest/dist/index.js";
|
|
3
|
+
var o = t();
|
|
4
|
+
const i = /* @__PURE__ */ r(o);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index18.js.map
|
package/dist/_virtual/index19.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as o } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
|
|
3
|
+
var p = /* @__PURE__ */ o();
|
|
4
|
+
const s = /* @__PURE__ */ r(p);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index19.js.map
|
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -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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AAA;AAAA,EAC1D;AAAA,EAEA,OAAO,yBAAyBf,GAAqC;AACnE,WAAO,EAAE,UAAU,IAAM,OAAAA,GAAO,WAAW,KAAA;AAAA,EAC7C;AAAA,EAEA,kBAAkBA,GAAcC,GAAsB;AACpD,SAAK,SAAS,EAAE,OAAAD,GAAO,WAAAC,EAAA,CAAW,GAClC,QAAQ,MAAM,mBAAmBD,GAAOC,CAAS;AAAA,EACnD;AAAA,EAEA,SAAS;AACP,UAAM,EAAE,UAAAe,IAAW,KAAA,IAAS,KAAK,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,23 +3,24 @@ var i = (r, o) => n(r, "name", { value: o, configurable: !0 });
|
|
|
3
3
|
import { jsx as e } 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 { useTimeout as l } from "../../hooks/internal/useTimeout.js";
|
|
5
5
|
import d from "@mui/material/Box";
|
|
6
|
-
import
|
|
7
|
-
import { clsx as
|
|
8
|
-
import { useState as
|
|
6
|
+
import a from "@mui/material/LinearProgress";
|
|
7
|
+
import { clsx as c } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
8
|
+
import { useState as f } from "react";
|
|
9
9
|
function b(r) {
|
|
10
|
-
const { delay: o = 0, className: t } = r, [s, m] =
|
|
10
|
+
const { delay: o = 0, className: t } = r, [s, m] = f(!o);
|
|
11
11
|
return l(() => {
|
|
12
12
|
m(!0);
|
|
13
13
|
}, o), /* @__PURE__ */ e(
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
16
|
-
className:
|
|
16
|
+
className: c(
|
|
17
|
+
"owp-loading",
|
|
17
18
|
t,
|
|
18
19
|
"box-border flex h-full min-h-0 w-full flex-1 flex-col items-center justify-center p-24",
|
|
19
20
|
s ? "" : "hidden"
|
|
20
21
|
),
|
|
21
22
|
children: /* @__PURE__ */ e(d, { sx: { width: "40%" }, children: /* @__PURE__ */ e(
|
|
22
|
-
|
|
23
|
+
a,
|
|
23
24
|
{
|
|
24
25
|
color: "secondary",
|
|
25
26
|
sx: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwpLoading.js","sources":["../../../src/components/OwpLoading/OwpLoading.tsx"],"sourcesContent":null,"names":["OwpLoading","props","delay","className","showLoading","setShowLoading","useState","useTimeout","jsx","clsx","Box","LinearProgress","__name"],"mappings":";;;;;;;;AAoBA,SAASA,EAAWC,GAAwB;AAC1C,QAAM,EAAE,OAAAC,IAAQ,GAAG,WAAAC,EAAA,IAAcF,GAC3B,CAACG,GAAaC,CAAc,IAAIC,EAAS,CAACJ,CAAK;AAErD,SAAAK,EAAW,MAAM;AACf,IAAAF,EAAe,EAAI;AAAA,EACrB,GAAGH,CAAK,GAGN,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,
|
|
1
|
+
{"version":3,"file":"OwpLoading.js","sources":["../../../src/components/OwpLoading/OwpLoading.tsx"],"sourcesContent":null,"names":["OwpLoading","props","delay","className","showLoading","setShowLoading","useState","useTimeout","jsx","clsx","Box","LinearProgress","__name"],"mappings":";;;;;;;;AAoBA,SAASA,EAAWC,GAAwB;AAC1C,QAAM,EAAE,OAAAC,IAAQ,GAAG,WAAAC,EAAA,IAAcF,GAC3B,CAACG,GAAaC,CAAc,IAAIC,EAAS,CAACJ,CAAK;AAErD,SAAAK,EAAW,MAAM;AACf,IAAAF,EAAe,EAAI;AAAA,EACrB,GAAGH,CAAK,GAGN,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAN;AAAA,QACA;AAAA,QACCC,IAAyB,KAAX;AAAA,MAAW;AAAA,MAG5B,4BAACM,GAAA,EAAI,IAAI,EAAE,OAAO,SAChB,UAAA,gBAAAF;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,IAAI;AAAA,YACF,QAAQ;AAAA,YACR,cAAc;AAAA,UAAA;AAAA,QAChB;AAAA,MAAA,EACF,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;AA5BSC,EAAAZ,GAAA;"}
|
|
@@ -1,37 +1,109 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var n = (t, i) => x(t, "name", { value: i, configurable: !0 });
|
|
3
|
+
import { jsx as K } 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 { useNavigationOptimisticActivePath as U, useRouteTransitionLoadingActions as j } from "../../hooks/internal/useRouteTransitionLoading.js";
|
|
5
|
+
import { forwardRef as D } from "react";
|
|
6
|
+
import { useNavigate as B, useResolvedPath as E, createPath as F, NavLink as M } from "react-router-dom";
|
|
7
|
+
let c = 0;
|
|
8
|
+
const _ = /* @__PURE__ */ n(() => (c += 1, c), "getNextRouteTransitionNavigationSequence"), z = /* @__PURE__ */ n((t) => c === t, "isLatestRouteTransitionNavigationSequence"), G = /* @__PURE__ */ n(() => {
|
|
9
|
+
c += 1;
|
|
10
|
+
}, "cancelRouteTransitionNavigation"), H = /* @__PURE__ */ n((t) => t.metaKey || t.altKey || t.ctrlKey || t.shiftKey, "isModifiedClickEvent"), A = /* @__PURE__ */ n(() => `${window.location.pathname}${window.location.search}${window.location.hash}`, "getCurrentLocationPath"), I = /* @__PURE__ */ n((t) => {
|
|
11
|
+
if (typeof window > "u")
|
|
12
|
+
return !1;
|
|
13
|
+
const i = new URL(t.currentTarget.href, window.location.href);
|
|
14
|
+
return i.origin === window.location.origin && A() === `${i.pathname}${i.search}${i.hash}`;
|
|
15
|
+
}, "isCurrentLocationLink"), J = /* @__PURE__ */ n((t, i) => {
|
|
16
|
+
if (typeof window > "u" || t.defaultPrevented || t.button !== 0 || H(t) || i && i !== "_self")
|
|
17
|
+
return;
|
|
18
|
+
const e = new URL(t.currentTarget.href, window.location.href), o = `${e.pathname}${e.search}${e.hash}`;
|
|
19
|
+
if (!(e.origin !== window.location.origin || A() === o))
|
|
20
|
+
return {
|
|
21
|
+
path: o,
|
|
22
|
+
pathname: e.pathname
|
|
23
|
+
};
|
|
24
|
+
}, "getRouteTransitionTargetPathname"), Q = /* @__PURE__ */ n((t) => {
|
|
25
|
+
window.requestAnimationFrame(() => {
|
|
26
|
+
window.setTimeout(t, 0);
|
|
27
|
+
});
|
|
28
|
+
}, "scheduleAfterNextPaint"), V = /* @__PURE__ */ n((t, i, e) => (o) => {
|
|
29
|
+
const r = typeof t == "function" ? t(o) : t, s = o.isActive || e;
|
|
30
|
+
return [r, s ? i : null].filter(Boolean).join(" ");
|
|
31
|
+
}, "resolveClassName"), W = /* @__PURE__ */ n((t, i, e) => (o) => {
|
|
32
|
+
const r = typeof t == "function" ? t(o) : t, s = o.isActive || e;
|
|
33
|
+
return {
|
|
34
|
+
...r,
|
|
35
|
+
...s ? i : null
|
|
36
|
+
};
|
|
37
|
+
}, "resolveStyle"), X = D((t, i) => {
|
|
10
38
|
const {
|
|
11
|
-
activeClassName:
|
|
39
|
+
activeClassName: e = "active",
|
|
12
40
|
activeStyle: o,
|
|
13
|
-
role:
|
|
14
|
-
className:
|
|
15
|
-
style:
|
|
16
|
-
children:
|
|
17
|
-
onClick:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
41
|
+
role: r = "button",
|
|
42
|
+
className: s,
|
|
43
|
+
style: y,
|
|
44
|
+
children: L,
|
|
45
|
+
onClick: l,
|
|
46
|
+
preventScrollReset: h,
|
|
47
|
+
relative: u,
|
|
48
|
+
reloadDocument: p,
|
|
49
|
+
replace: m,
|
|
50
|
+
state: v,
|
|
51
|
+
target: w,
|
|
52
|
+
to: d,
|
|
53
|
+
viewTransition: g,
|
|
54
|
+
...R
|
|
55
|
+
} = t, P = B(), k = E(d, { relative: u }), $ = U(), {
|
|
56
|
+
clearNavigationOptimisticActivePath: C,
|
|
57
|
+
setNavigationOptimisticActivePath: S,
|
|
58
|
+
stopRouteTransitionLoading: O,
|
|
59
|
+
startRouteTransitionLoading: b
|
|
60
|
+
} = j(), N = $ === F(k), T = /* @__PURE__ */ n(() => {
|
|
61
|
+
G(), O(), C();
|
|
62
|
+
}, "cancelPendingNavigation");
|
|
63
|
+
return /* @__PURE__ */ K(
|
|
64
|
+
M,
|
|
22
65
|
{
|
|
23
|
-
ref:
|
|
24
|
-
role:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
66
|
+
ref: i,
|
|
67
|
+
role: r,
|
|
68
|
+
preventScrollReset: h,
|
|
69
|
+
relative: u,
|
|
70
|
+
reloadDocument: p,
|
|
71
|
+
replace: m,
|
|
72
|
+
state: v,
|
|
73
|
+
target: w,
|
|
74
|
+
to: d,
|
|
75
|
+
viewTransition: g,
|
|
76
|
+
...R,
|
|
77
|
+
onClick: /* @__PURE__ */ n((a) => {
|
|
78
|
+
if (l == null || l(a), p) {
|
|
79
|
+
T();
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const f = J(a, w);
|
|
83
|
+
if (!f) {
|
|
84
|
+
(a.button === 0 || a.defaultPrevented || I(a)) && T();
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
a.preventDefault();
|
|
88
|
+
const q = _();
|
|
89
|
+
S(f.path), b(f.pathname), Q(() => {
|
|
90
|
+
z(q) && P(d, {
|
|
91
|
+
preventScrollReset: h,
|
|
92
|
+
relative: u,
|
|
93
|
+
replace: m,
|
|
94
|
+
state: v,
|
|
95
|
+
viewTransition: g
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
}, "handleClick"),
|
|
99
|
+
className: V(s, e, N),
|
|
100
|
+
style: W(y, o, N),
|
|
101
|
+
children: L
|
|
30
102
|
}
|
|
31
103
|
);
|
|
32
104
|
});
|
|
33
|
-
|
|
105
|
+
X.displayName = "OwpNavLinkAdapter";
|
|
34
106
|
export {
|
|
35
|
-
|
|
107
|
+
X as default
|
|
36
108
|
};
|
|
37
109
|
//# sourceMappingURL=OwpNavLinkAdapter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwpNavLinkAdapter.js","sources":["../../../src/components/OwpNavLinkAdapter/OwpNavLinkAdapter.tsx"],"sourcesContent":null,"names":["
|
|
1
|
+
{"version":3,"file":"OwpNavLinkAdapter.js","sources":["../../../src/components/OwpNavLinkAdapter/OwpNavLinkAdapter.tsx"],"sourcesContent":null,"names":["routeTransitionNavigationSequence","getNextRouteTransitionNavigationSequence","__name","isLatestRouteTransitionNavigationSequence","sequence","cancelRouteTransitionNavigation","isModifiedClickEvent","event","getCurrentLocationPath","isCurrentLocationLink","linkUrl","getRouteTransitionTargetPathname","target","path","scheduleAfterNextPaint","callback","resolveClassName","className","activeClassName","isOptimisticActive","renderProps","baseClassName","isActive","resolveStyle","style","activeStyle","baseStyle","OwpNavLinkAdapter","forwardRef","props","ref","role","children","onClick","preventScrollReset","relative","reloadDocument","replace","state","to","viewTransition","restProps","navigate","useNavigate","resolvedTo","useResolvedPath","optimisticActivePath","useNavigationOptimisticActivePath","clearNavigationOptimisticActivePath","setNavigationOptimisticActivePath","stopRouteTransitionLoading","startRouteTransitionLoading","useRouteTransitionLoadingActions","createPath","cancelPendingNavigation","jsx","NavLink","transitionTarget","navigationSequence"],"mappings":";;;;;;AAgCA,IAAIA,IAAoC;AAExC,MAAMC,IAA2C,gBAAAC,EAAA,OAC/CF,KAAqC,GAC9BA,IAFwC,6CAK3CG,IAA4C,gBAAAD,EAAA,CAACE,MAC1CJ,MAAsCI,GADG,8CAI5CC,IAAkC,gBAAAH,EAAA,MAAM;AAC5C,EAAAF,KAAqC;AACvC,GAFwC,oCAIlCM,IAAuB,gBAAAJ,EAAA,CAACK,MACrBA,EAAM,WAAWA,EAAM,UAAUA,EAAM,WAAWA,EAAM,UADpC,yBAIvBC,IAAyB,gBAAAN,EAAA,MACtB,GAAG,OAAO,SAAS,QAAQ,GAAG,OAAO,SAAS,MAAM,GAAG,OAAO,SAAS,IAAI,IADrD,2BAIzBO,IAAwB,gBAAAP,EAAA,CAACK,MAAyC;AACtE,MAAI,OAAO,SAAW;AACpB,WAAO;AAGT,QAAMG,IAAU,IAAI,IAAIH,EAAM,cAAc,MAAM,OAAO,SAAS,IAAI;AAEtE,SACEG,EAAQ,WAAW,OAAO,SAAS,UACnCF,QAA6B,GAAGE,EAAQ,QAAQ,GAAGA,EAAQ,MAAM,GAAGA,EAAQ,IAAI;AAEpF,GAX8B,0BAaxBC,IAAmC,gBAAAT,EAAA,CACvCK,GACAK,MACsC;AACtC,MACE,OAAO,SAAW,OAClBL,EAAM,oBACNA,EAAM,WAAW,KACjBD,EAAqBC,CAAK,KACzBK,KAAUA,MAAW;AAEtB;AAGF,QAAMF,IAAU,IAAI,IAAIH,EAAM,cAAc,MAAM,OAAO,SAAS,IAAI,GAChEM,IAAO,GAAGH,EAAQ,QAAQ,GAAGA,EA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AAWxB,EAAiBC,GAAWC,GAAiBC,CAAkB;AAAA,MAC1E,OAAOI,EAAaC,GAAOC,GAAaN,CAAkB;AAAA,MAEzD,UAAAa;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;AAEDL,EAAkB,cAAc;"}
|
|
@@ -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(
|
|
@@ -1,104 +1,110 @@
|
|
|
1
|
-
var
|
|
2
|
-
var s = (
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { OwpPageSkeleton as
|
|
5
|
-
import { useOwpAppContext as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const d = u.current && !!f;
|
|
16
|
-
return /* @__PURE__ */ r(
|
|
17
|
-
y,
|
|
1
|
+
var N = Object.defineProperty;
|
|
2
|
+
var s = (r, n) => N(r, "name", { value: n, configurable: !0 });
|
|
3
|
+
import { jsx as i } 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 { OwpPageSkeleton as k } from "../OwpPageSkeleton/OwpPageSkeleton.js";
|
|
5
|
+
import { useOwpAppContext as v } from "../../contexts/OwpAppContext.js";
|
|
6
|
+
import { useRouteSkeletonRenderedPathnames as C, useRouteTransitionLoadingActions as y } from "../../hooks/internal/useRouteTransitionLoading.js";
|
|
7
|
+
import { clsx as E } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
8
|
+
import { useState as F, Suspense as L, useEffect as w } from "react";
|
|
9
|
+
import { useLocation as A } from "react-router-dom";
|
|
10
|
+
import { OwpLoading as D } from "../OwpLoading/OwpLoading.js";
|
|
11
|
+
function M(r) {
|
|
12
|
+
const { children: n, loadingProps: t, showLoadingFallback: l = !1 } = r, { pathname: e } = A(), { slots: a, slotProps: o } = v(), u = C(), { markRouteSkeletonRendered: f } = y(), c = a == null ? void 0 : a.routeLoading, { getSkeletonSpec: m, releaseOnClick: R = !1, ...b } = (o == null ? void 0 : o.routeLoading) ?? {}, d = m == null ? void 0 : m(e), [p, h] = F(null), O = R === !0, x = !!d && !u.has(e);
|
|
13
|
+
return /* @__PURE__ */ i(
|
|
14
|
+
L,
|
|
18
15
|
{
|
|
19
|
-
fallback: /* @__PURE__ */
|
|
20
|
-
|
|
16
|
+
fallback: /* @__PURE__ */ i(
|
|
17
|
+
H,
|
|
21
18
|
{
|
|
22
|
-
pathname:
|
|
23
|
-
loadingProps:
|
|
24
|
-
routeLoadingSlotProps:
|
|
25
|
-
RouteLoadingSlot:
|
|
26
|
-
skeletonSpec:
|
|
27
|
-
shouldUseSkeleton:
|
|
28
|
-
shouldHoldOnResolve: !
|
|
19
|
+
pathname: e,
|
|
20
|
+
loadingProps: t,
|
|
21
|
+
routeLoadingSlotProps: b,
|
|
22
|
+
RouteLoadingSlot: c,
|
|
23
|
+
skeletonSpec: d,
|
|
24
|
+
shouldUseSkeleton: x,
|
|
25
|
+
shouldHoldOnResolve: !c && x && O,
|
|
26
|
+
showLoadingFallback: l,
|
|
27
|
+
onSkeletonRendered: f,
|
|
29
28
|
onFallbackRendered: /* @__PURE__ */ s(() => {
|
|
30
|
-
|
|
29
|
+
h(e);
|
|
31
30
|
}, "onFallbackRendered")
|
|
32
31
|
}
|
|
33
32
|
),
|
|
34
|
-
children: /* @__PURE__ */
|
|
35
|
-
|
|
33
|
+
children: /* @__PURE__ */ i(
|
|
34
|
+
j,
|
|
36
35
|
{
|
|
37
|
-
skeletonSpec:
|
|
38
|
-
isVisible:
|
|
36
|
+
skeletonSpec: d,
|
|
37
|
+
isVisible: p === e,
|
|
39
38
|
onRelease: /* @__PURE__ */ s(() => {
|
|
40
|
-
|
|
39
|
+
h(null);
|
|
41
40
|
}, "onRelease"),
|
|
42
|
-
children:
|
|
41
|
+
children: n
|
|
43
42
|
}
|
|
44
43
|
)
|
|
45
44
|
}
|
|
46
45
|
);
|
|
47
46
|
}
|
|
48
|
-
s(
|
|
49
|
-
function
|
|
50
|
-
pathname:
|
|
51
|
-
loadingProps:
|
|
52
|
-
routeLoadingSlotProps:
|
|
47
|
+
s(M, "OwpSuspense");
|
|
48
|
+
function H({
|
|
49
|
+
pathname: r,
|
|
50
|
+
loadingProps: n,
|
|
51
|
+
routeLoadingSlotProps: t,
|
|
53
52
|
RouteLoadingSlot: l,
|
|
54
|
-
skeletonSpec:
|
|
53
|
+
skeletonSpec: e,
|
|
55
54
|
shouldUseSkeleton: a,
|
|
56
55
|
shouldHoldOnResolve: o,
|
|
56
|
+
showLoadingFallback: u,
|
|
57
|
+
onSkeletonRendered: f,
|
|
57
58
|
onFallbackRendered: c
|
|
58
59
|
}) {
|
|
59
|
-
return
|
|
60
|
+
return w(() => {
|
|
60
61
|
o && c();
|
|
61
|
-
}, [c, o]),
|
|
62
|
+
}, [c, o]), w(() => {
|
|
63
|
+
if (!(!a || !e || l))
|
|
64
|
+
return () => {
|
|
65
|
+
f(r);
|
|
66
|
+
};
|
|
67
|
+
}, [l, f, r, a, e]), l ? /* @__PURE__ */ i(
|
|
62
68
|
l,
|
|
63
69
|
{
|
|
70
|
+
...t,
|
|
64
71
|
...n,
|
|
65
|
-
|
|
66
|
-
pathname: i,
|
|
72
|
+
pathname: r,
|
|
67
73
|
isFirstRouteLoading: !0
|
|
68
74
|
}
|
|
69
|
-
) : a &&
|
|
70
|
-
|
|
75
|
+
) : a && e ? /* @__PURE__ */ i(k, { spec: e }) : u ? /* @__PURE__ */ i("div", { className: "fixed inset-0 z-10 flex w-full flex-col overflow-hidden", children: /* @__PURE__ */ i(
|
|
76
|
+
D,
|
|
71
77
|
{
|
|
78
|
+
...t,
|
|
72
79
|
...n,
|
|
73
|
-
|
|
74
|
-
className: C(n == null ? void 0 : n.className, e == null ? void 0 : e.className)
|
|
80
|
+
className: E(t == null ? void 0 : t.className, n == null ? void 0 : n.className)
|
|
75
81
|
}
|
|
76
|
-
) });
|
|
82
|
+
) }) : null;
|
|
77
83
|
}
|
|
78
|
-
s(
|
|
79
|
-
function
|
|
80
|
-
skeletonSpec:
|
|
81
|
-
isVisible:
|
|
82
|
-
onRelease:
|
|
84
|
+
s(H, "RouteLoadingFallback");
|
|
85
|
+
function j({
|
|
86
|
+
skeletonSpec: r,
|
|
87
|
+
isVisible: n,
|
|
88
|
+
onRelease: t,
|
|
83
89
|
children: l
|
|
84
90
|
}) {
|
|
85
|
-
return !
|
|
91
|
+
return !n || !r ? l : /* @__PURE__ */ i(
|
|
86
92
|
"div",
|
|
87
93
|
{
|
|
88
94
|
"aria-label": "Release route loading skeleton",
|
|
89
95
|
className: "flex min-h-0 w-full flex-1 cursor-pointer flex-col overflow-hidden",
|
|
90
|
-
onClick:
|
|
91
|
-
onKeyDown: /* @__PURE__ */ s((
|
|
92
|
-
|
|
96
|
+
onClick: t,
|
|
97
|
+
onKeyDown: /* @__PURE__ */ s((e) => {
|
|
98
|
+
e.key !== "Enter" && e.key !== " " || (e.preventDefault(), t());
|
|
93
99
|
}, "onKeyDown"),
|
|
94
100
|
role: "button",
|
|
95
101
|
tabIndex: 0,
|
|
96
|
-
children: /* @__PURE__ */
|
|
102
|
+
children: /* @__PURE__ */ i(k, { spec: r })
|
|
97
103
|
}
|
|
98
104
|
);
|
|
99
105
|
}
|
|
100
|
-
s(
|
|
106
|
+
s(j, "RouteLoadingHold");
|
|
101
107
|
export {
|
|
102
|
-
|
|
108
|
+
M as OwpSuspense
|
|
103
109
|
};
|
|
104
110
|
//# sourceMappingURL=OwpSuspense.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwpSuspense.js","sources":["../../../src/components/OwpSuspense/OwpSuspense.tsx"],"sourcesContent":null,"names":["OwpSuspense","props","children","loadingProps","pathname","useLocation","slots","slotProps","useOwpAppContext","
|
|
1
|
+
{"version":3,"file":"OwpSuspense.js","sources":["../../../src/components/OwpSuspense/OwpSuspense.tsx"],"sourcesContent":null,"names":["OwpSuspense","props","children","loadingProps","showLoadingFallback","pathname","useLocation","slots","slotProps","useOwpAppContext","routeSkeletonRenderedPathnames","useRouteSkeletonRenderedPathnames","markRouteSkeletonRendered","useRouteTransitionLoadingActions","RouteLoadingSlot","getSkeletonSpec","releaseOnClick","routeLoadingProps","skeletonSpec","holdPathname","setHoldPathname","useState","isReleaseOnClickEnabled","shouldUseSkeleton","jsx","Suspense","RouteLoadingFallback","__name","RouteLoadingHold","routeLoadingSlotProps","shouldHoldOnResolve","onSkeletonRendered","onFallbackRendered","useEffect","OwpPageSkeleton","OwpLoading","clsx","isVisible","onRelease","event"],"mappings":";;;;;;;;;;AAoCA,SAASA,EAAYC,GAAyB;AAC5C,QAAM,EAAE,UAAAC,GAAU,cAAAC,GAAc,qBAAAC,IAAsB,OAAUH,GAC1D,EAAE,UAAAI,EAAA,IAAaC,EAAA,GACf,EAAE,OAAAC,GAAO,WAAAC,EAAA,IAAcC,EAAA,GACvBC,IAAiCC,EAAA,GACjC,EAAE,2BAAAC,EAAA,IAA8BC,EAAA,GAChCC,IAAmBP,KAAA,gBAAAA,EAAO,cAC1B,EAAE,iBAAAQ,GAAiB,gBAAAC,IAAiB,IAAO,GAAGC,OAClDT,KAAA,gBAAAA,EAAW,iBAAgB,CAAA,GACvBU,IAAeH,KAAA,gBAAAA,EAAkBV,IACjC,CAACc,GAAcC,CAAe,IAAIC,EAAwB,IAAI,GAC9DC,IAA0BN,MAAmB,IAC7CO,IAAoB,CAAC,CAACL,KAAgB,CAACR,EAA+B,IAAIL,CAAQ;AAExF,SACE,gBAAAmB;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UACE,gBAAAD;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,UAAArB;AAAA,UACA,cAAAF;AAAA,UACA,uBAAuBc;AAAA,UACvB,kBAAAH;AAAA,UACA,cAAAI;AAAA,UACA,mBAAAK;AAAA,UACA,qBAAqB,CAACT,KAAoBS,KAAqBD;AAAA,UAC/D,qBAAAlB;AAAA,UACA,oBAAoBQ;AAAA,UACpB,oBAAoB,gBAAAe,EAAA,MAAM;AACxB,YAAAP,EAAgBf,CAAQ;AAAA,UAC1B,GAFoB;AAAA,QAEpB;AAAA,MAAA;AAAA,MAIJ,UAAA,gBAAAmB;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,cAAAV;AAAA,UACA,WAAWC,MAAiBd;AAAA,UAC5B,WAAW,gBAAAsB,EAAA,MAAM;AACf,YAAAP,EAAgB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