@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
|
@@ -1,104 +1,97 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { useGetNavigationList as
|
|
5
|
-
import { useOwpTranslation as
|
|
6
|
-
import { useSetShortcuts as
|
|
7
|
-
import { OwpNavigationHelper as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var r = (l, e) => E(l, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsxs as u, jsx as t } 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 { useGetNavigationList as O } from "../../../hooks/useNavigation.js";
|
|
5
|
+
import { useOwpTranslation as P } from "../../../hooks/useOwpTranslation.js";
|
|
6
|
+
import { useSetShortcuts as D, useGetShortcuts as G } from "../../../hooks/internal/useShortcuts.js";
|
|
7
|
+
import { OwpNavigationHelper as A } from "../../../utils/internal/navigationUtils.js";
|
|
8
|
+
import { isNavigationSearchTextMatch as F } from "../../../utils/internal/navigationSearchUtils.js";
|
|
9
|
+
import H 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/Clear.js";
|
|
10
|
+
import C from "@mui/material/Box";
|
|
11
|
+
import { amber as I, grey as M } from "@mui/material/colors";
|
|
12
|
+
import U from "@mui/material/Divider";
|
|
12
13
|
import x from "@mui/material/IconButton";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { clsx as
|
|
21
|
-
import { useRef as
|
|
22
|
-
import { Link as
|
|
23
|
-
import { toolbarToggleSx as
|
|
24
|
-
import { find as
|
|
14
|
+
import W from "@mui/material/Input";
|
|
15
|
+
import q from "@mui/material/ListItemIcon";
|
|
16
|
+
import J from "@mui/material/ListItemText";
|
|
17
|
+
import K from "@mui/material/Menu";
|
|
18
|
+
import Q from "@mui/material/MenuItem";
|
|
19
|
+
import R from "@mui/material/Tooltip";
|
|
20
|
+
import V from "@mui/material/Typography";
|
|
21
|
+
import { clsx as k } from "../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
22
|
+
import { useRef as X, useState as w, useMemo as g } from "react";
|
|
23
|
+
import { Link as Y } from "react-router-dom";
|
|
24
|
+
import { toolbarToggleSx as Z } from "./toggleStyles.js";
|
|
25
|
+
import { find as $ } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/array/find.js";
|
|
25
26
|
import { OwpSvgIcon as v } from "../../../components/OwpSvgIcon/OwpSvgIcon.js";
|
|
26
|
-
import { xor as
|
|
27
|
-
function yo(
|
|
28
|
-
const { variant: e = "horizontal", className:
|
|
29
|
-
() =>
|
|
30
|
-
[
|
|
31
|
-
),
|
|
32
|
-
() =>
|
|
33
|
-
[
|
|
34
|
-
),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return m.filter(
|
|
39
|
-
(l) => {
|
|
40
|
-
var b, w;
|
|
41
|
-
return (w = (b = l == null ? void 0 : l.title) == null ? void 0 : b.toLowerCase()) == null ? void 0 : w.includes(o);
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
}, [m, n]);
|
|
45
|
-
function j(o) {
|
|
27
|
+
import { xor as _ } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/array/xor.js";
|
|
28
|
+
function yo(l) {
|
|
29
|
+
const { variant: e = "horizontal", className: p = "" } = l, i = X(null), [s, S] = w(null), [n, d] = w(""), N = O(), z = D(), c = G(), { t: f } = P(), a = g(
|
|
30
|
+
() => A.getFlatNavigation(N),
|
|
31
|
+
[N]
|
|
32
|
+
), m = g(
|
|
33
|
+
() => c.map((o) => $(a, { id: o })).filter((o) => !!o),
|
|
34
|
+
[a, c]
|
|
35
|
+
), T = g(() => !n || !a ? [] : a.filter(
|
|
36
|
+
(o) => F(o == null ? void 0 : o.title, n)
|
|
37
|
+
), [a, n]);
|
|
38
|
+
function B(o) {
|
|
46
39
|
S(o.currentTarget);
|
|
47
40
|
}
|
|
48
|
-
r(
|
|
49
|
-
function
|
|
41
|
+
r(B, "addMenuClick");
|
|
42
|
+
function L() {
|
|
50
43
|
S(null);
|
|
51
44
|
}
|
|
52
|
-
r(
|
|
53
|
-
function
|
|
54
|
-
|
|
45
|
+
r(L, "addMenuClose");
|
|
46
|
+
function j(o) {
|
|
47
|
+
d(o.target.value);
|
|
55
48
|
}
|
|
56
|
-
r(
|
|
57
|
-
function
|
|
58
|
-
let
|
|
59
|
-
|
|
49
|
+
r(j, "search");
|
|
50
|
+
function b(o) {
|
|
51
|
+
let h = [...c];
|
|
52
|
+
h = _(h, [o]), z(h);
|
|
60
53
|
}
|
|
61
|
-
return r(
|
|
62
|
-
|
|
54
|
+
return r(b, "toggleInShortcuts"), /* @__PURE__ */ u(
|
|
55
|
+
C,
|
|
63
56
|
{
|
|
64
|
-
className:
|
|
57
|
+
className: k(
|
|
65
58
|
"flex flex-shrink overflow-hidden",
|
|
66
59
|
e === "vertical" ? "flex-col" : "",
|
|
67
|
-
|
|
60
|
+
p
|
|
68
61
|
),
|
|
69
62
|
children: [
|
|
70
63
|
/* @__PURE__ */ t(
|
|
71
|
-
|
|
64
|
+
C,
|
|
72
65
|
{
|
|
73
|
-
className:
|
|
66
|
+
className: k(
|
|
74
67
|
"flex flex-1 items-center",
|
|
75
68
|
e === "vertical" ? "flex-col" : "max-h-36"
|
|
76
69
|
),
|
|
77
70
|
children: /* @__PURE__ */ t(
|
|
78
|
-
|
|
71
|
+
R,
|
|
79
72
|
{
|
|
80
|
-
title:
|
|
73
|
+
title: f("Title.즐겨찾기 등록/삭제"),
|
|
81
74
|
placement: e === "horizontal" ? "bottom" : "left",
|
|
82
75
|
children: /* @__PURE__ */ t(
|
|
83
76
|
x,
|
|
84
77
|
{
|
|
85
|
-
sx:
|
|
78
|
+
sx: Z,
|
|
86
79
|
"aria-haspopup": "true",
|
|
87
|
-
onClick:
|
|
88
|
-
children: /* @__PURE__ */ t(v, { size: 20, sx: { color:
|
|
80
|
+
onClick: B,
|
|
81
|
+
children: /* @__PURE__ */ t(v, { size: 20, sx: { color: I[600] }, children: "heroicons-solid:star" })
|
|
89
82
|
}
|
|
90
83
|
)
|
|
91
84
|
}
|
|
92
85
|
)
|
|
93
86
|
}
|
|
94
87
|
),
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
|
|
88
|
+
/* @__PURE__ */ u(
|
|
89
|
+
K,
|
|
97
90
|
{
|
|
98
91
|
id: "add-menu",
|
|
99
|
-
anchorEl:
|
|
100
|
-
open: !!
|
|
101
|
-
onClose:
|
|
92
|
+
anchorEl: s,
|
|
93
|
+
open: !!s,
|
|
94
|
+
onClose: L,
|
|
102
95
|
classes: {
|
|
103
96
|
paper: "min-w-256"
|
|
104
97
|
},
|
|
@@ -108,18 +101,18 @@ function yo(s) {
|
|
|
108
101
|
(o = i == null ? void 0 : i.current) == null || o.focus();
|
|
109
102
|
}, "onEntered"),
|
|
110
103
|
onExited: /* @__PURE__ */ r(() => {
|
|
111
|
-
|
|
104
|
+
d("");
|
|
112
105
|
}, "onExited")
|
|
113
106
|
},
|
|
114
107
|
children: [
|
|
115
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ u("div", { className: "flex justify-between items-center p-16 pt-8", children: [
|
|
116
109
|
/* @__PURE__ */ t(
|
|
117
|
-
|
|
110
|
+
W,
|
|
118
111
|
{
|
|
119
112
|
inputRef: i,
|
|
120
113
|
value: n,
|
|
121
|
-
onChange:
|
|
122
|
-
placeholder:
|
|
114
|
+
onChange: j,
|
|
115
|
+
placeholder: f("Common.검색"),
|
|
123
116
|
fullWidth: !0,
|
|
124
117
|
inputProps: {
|
|
125
118
|
"aria-label": "Search"
|
|
@@ -130,32 +123,32 @@ function yo(s) {
|
|
|
130
123
|
/* @__PURE__ */ t(
|
|
131
124
|
x,
|
|
132
125
|
{
|
|
133
|
-
sx: { color:
|
|
126
|
+
sx: { color: M[500] },
|
|
134
127
|
onClick: /* @__PURE__ */ r(() => {
|
|
135
128
|
var o;
|
|
136
|
-
|
|
129
|
+
d(""), (o = i == null ? void 0 : i.current) == null || o.focus();
|
|
137
130
|
}, "onClick"),
|
|
138
|
-
children: /* @__PURE__ */ t(
|
|
131
|
+
children: /* @__PURE__ */ t(H, {})
|
|
139
132
|
}
|
|
140
133
|
)
|
|
141
134
|
] }),
|
|
142
|
-
((n == null ? void 0 : n.length) > 0 || (
|
|
143
|
-
n.length > 0 &&
|
|
144
|
-
|
|
135
|
+
((n == null ? void 0 : n.length) > 0 || (m == null ? void 0 : m.length) > 0) && /* @__PURE__ */ t(U, { sx: { backgroundColor: M[500] } }),
|
|
136
|
+
n.length > 0 && T.map((o) => /* @__PURE__ */ t(
|
|
137
|
+
y,
|
|
145
138
|
{
|
|
146
|
-
shortcuts:
|
|
139
|
+
shortcuts: c,
|
|
147
140
|
item: o,
|
|
148
|
-
onToggle: /* @__PURE__ */ r(() =>
|
|
141
|
+
onToggle: /* @__PURE__ */ r(() => b(o.id), "onToggle")
|
|
149
142
|
},
|
|
150
143
|
o.id
|
|
151
144
|
)),
|
|
152
|
-
n.length !== 0 &&
|
|
153
|
-
n.length === 0 &&
|
|
154
|
-
|
|
145
|
+
n.length !== 0 && T.length === 0 && /* @__PURE__ */ t(V, { color: "text.secondary", className: "p-16 pb-8", children: f("Message.검색된 결과가 없습니다...") }),
|
|
146
|
+
n.length === 0 && m.map((o) => /* @__PURE__ */ t(
|
|
147
|
+
y,
|
|
155
148
|
{
|
|
156
|
-
shortcuts:
|
|
149
|
+
shortcuts: c,
|
|
157
150
|
item: o,
|
|
158
|
-
onToggle: /* @__PURE__ */ r(() =>
|
|
151
|
+
onToggle: /* @__PURE__ */ r(() => b(o.id), "onToggle")
|
|
159
152
|
},
|
|
160
153
|
o.id
|
|
161
154
|
))
|
|
@@ -167,24 +160,24 @@ function yo(s) {
|
|
|
167
160
|
);
|
|
168
161
|
}
|
|
169
162
|
r(yo, "NavigationShortcutsToggle");
|
|
170
|
-
function
|
|
171
|
-
const { item: e, onToggle:
|
|
172
|
-
return !e || !e.id ? null : /* @__PURE__ */ t(
|
|
173
|
-
/* @__PURE__ */ t(
|
|
174
|
-
/* @__PURE__ */ t(
|
|
163
|
+
function y(l) {
|
|
164
|
+
const { item: e, onToggle: p, shortcuts: i = [] } = l;
|
|
165
|
+
return !e || !e.id ? null : /* @__PURE__ */ t(Y, { to: e.url || "", role: "button", children: /* @__PURE__ */ u(Q, { children: [
|
|
166
|
+
/* @__PURE__ */ t(q, { className: "min-w-36", children: e.icon ? /* @__PURE__ */ t(v, { children: e.icon }) : /* @__PURE__ */ t("span", { className: "text-center text-2xl font-semibold uppercase", children: e.title[0] }) }),
|
|
167
|
+
/* @__PURE__ */ t(J, { primary: e.title }),
|
|
175
168
|
/* @__PURE__ */ t(
|
|
176
169
|
x,
|
|
177
170
|
{
|
|
178
|
-
onClick: /* @__PURE__ */ r((
|
|
179
|
-
|
|
171
|
+
onClick: /* @__PURE__ */ r((s) => {
|
|
172
|
+
s.preventDefault(), s.stopPropagation(), p();
|
|
180
173
|
}, "onClick"),
|
|
181
174
|
size: "large",
|
|
182
|
-
children: /* @__PURE__ */ t(v, { size: 20, sx: { color:
|
|
175
|
+
children: /* @__PURE__ */ t(v, { size: 20, sx: { color: I[600] }, children: i.includes(e.id) ? "heroicons-solid:star" : "heroicons-outline:star" })
|
|
183
176
|
}
|
|
184
177
|
)
|
|
185
178
|
] }, e.id) });
|
|
186
179
|
}
|
|
187
|
-
r(
|
|
180
|
+
r(y, "ShortcutMenuItem");
|
|
188
181
|
export {
|
|
189
182
|
yo as default
|
|
190
183
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationShortcutsToggle.js","sources":["../../../../src/layout/components/toggles/NavigationShortcutsToggle.tsx"],"sourcesContent":null,"names":["NavigationShortcutsToggle","props","variant","className","searchInputRef","useRef","addMenu","setAddMenu","useState","searchText","setSearchText","navigation","useGetNavigationList","setShortcuts","useSetShortcuts","userShortcuts","useGetShortcuts","t","useOwpTranslation","flatNavigation","useMemo","NavigationHelper","shortcutItems","id","find","item","searchResults","
|
|
1
|
+
{"version":3,"file":"NavigationShortcutsToggle.js","sources":["../../../../src/layout/components/toggles/NavigationShortcutsToggle.tsx"],"sourcesContent":null,"names":["NavigationShortcutsToggle","props","variant","className","searchInputRef","useRef","addMenu","setAddMenu","useState","searchText","setSearchText","navigation","useGetNavigationList","setShortcuts","useSetShortcuts","userShortcuts","useGetShortcuts","t","useOwpTranslation","flatNavigation","useMemo","NavigationHelper","shortcutItems","id","find","item","searchResults","isNavigationSearchTextMatch","addMenuClick","event","__name","addMenuClose","search","ev","toggleInShortcuts","nextShortcuts","xor","jsxs","Box","clsx","jsx","Tooltip","IconButton","toolbarToggleSx","OwpSvgIcon","amber","Menu","_a","Input","grey","ClearIcon","Divider","_item","ShortcutMenuItem","Typography","onToggle","shortcuts","Link","MenuItem","ListItemIcon","ListItemText"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,S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= Object.defineProperty;
|
|
2
|
+
var r = (l, a) => f(l, "name", { value: a, configurable: !0 });
|
|
3
|
+
import { jsx as m } 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 { useOwpAppContext as p } from "../../../contexts/OwpAppContext.js";
|
|
5
5
|
import { useOwpDialogs as h } from "../../../hooks/useOwpDialogs.js";
|
|
6
6
|
import { preloadOnIdle as w } from "../../../utils/preloadOnIdle.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import g 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/PaletteOutlined.js";
|
|
8
|
+
import P from "@mui/material/IconButton";
|
|
9
9
|
import T from "@mui/material/Tooltip";
|
|
10
10
|
import { clsx as v } from "../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
11
11
|
import { useRef as D, useCallback as b, useEffect as x } from "react";
|
|
12
12
|
import { toolbarToggleSx as O } from "./toggleStyles.js";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const E = /* @__PURE__ */ r(() => import("../../../features/themePreview/dialogs/index.js"), "defaultThemePreviewDialogLoader");
|
|
14
|
+
function A(l) {
|
|
15
|
+
const { className: a = "" } = l, u = h(), { env: e } = p(), t = D(null), n = (e == null ? void 0 : e.isThemePreviewEnabled) === !0, c = (e == null ? void 0 : e.themePreviewDialogLoader) ?? E, i = b(() => (t.current || (t.current = c().catch((o) => {
|
|
16
|
+
throw t.current = null, o;
|
|
17
|
+
})), t.current), [c]);
|
|
17
18
|
if (x(() => {
|
|
18
|
-
if (
|
|
19
|
+
if (n)
|
|
19
20
|
return w(() => i());
|
|
20
|
-
}, [
|
|
21
|
+
}, [n, i]), !n)
|
|
21
22
|
return null;
|
|
22
|
-
const
|
|
23
|
+
const d = /* @__PURE__ */ r(async () => {
|
|
23
24
|
try {
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} catch (r) {
|
|
29
|
-
console.error(r);
|
|
25
|
+
const o = await i();
|
|
26
|
+
await u.open(o.ThemePreviewDialog, {});
|
|
27
|
+
} catch (o) {
|
|
28
|
+
console.error(o);
|
|
30
29
|
}
|
|
31
|
-
}, "handleOpenThemePreviewDialog"),
|
|
30
|
+
}, "handleOpenThemePreviewDialog"), s = /* @__PURE__ */ r(() => {
|
|
32
31
|
i();
|
|
33
32
|
}, "handlePreloadThemePreviewDialog");
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
|
|
33
|
+
return /* @__PURE__ */ m(T, { title: "Theme Preview", placement: "bottom", children: /* @__PURE__ */ m(
|
|
34
|
+
P,
|
|
36
35
|
{
|
|
37
36
|
sx: O,
|
|
38
|
-
onClick:
|
|
39
|
-
onMouseEnter:
|
|
40
|
-
onFocus:
|
|
37
|
+
onClick: d,
|
|
38
|
+
onMouseEnter: s,
|
|
39
|
+
onFocus: s,
|
|
41
40
|
className: v(a),
|
|
42
41
|
"aria-label": "Theme Preview",
|
|
43
|
-
children: /* @__PURE__ */
|
|
42
|
+
children: /* @__PURE__ */ m(g, { fontSize: "small" })
|
|
44
43
|
}
|
|
45
44
|
) });
|
|
46
45
|
}
|
|
47
|
-
|
|
46
|
+
r(A, "ThemePreviewToggle");
|
|
48
47
|
export {
|
|
49
|
-
|
|
48
|
+
A as default
|
|
50
49
|
};
|
|
51
50
|
//# sourceMappingURL=ThemePreviewToggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemePreviewToggle.js","sources":["../../../../src/layout/components/toggles/ThemePreviewToggle.tsx"],"sourcesContent":null,"names":["ThemePreviewToggle","props","className","dialogs","useOwpDialogs","env","useOwpAppContext","dialogModulePromiseRef","useRef","isThemePreviewEnabled","themePreviewDialogLoader","loadThemePreviewDialog","useCallback","error","useEffect","preloadOnIdle","handleOpenThemePreviewDialog","
|
|
1
|
+
{"version":3,"file":"ThemePreviewToggle.js","sources":["../../../../src/layout/components/toggles/ThemePreviewToggle.tsx"],"sourcesContent":null,"names":["defaultThemePreviewDialogLoader","__name","ThemePreviewToggle","props","className","dialogs","useOwpDialogs","env","useOwpAppContext","dialogModulePromiseRef","useRef","isThemePreviewEnabled","themePreviewDialogLoader","loadThemePreviewDialog","useCallback","error","useEffect","preloadOnIdle","handleOpenThemePreviewDialog","dialogModule","handlePreloadThemePreviewDialog","jsx","Tooltip","IconButton","toolbarToggleSx","clsx","PaletteOutlinedIcon"],"mappings":";;;;;;;;;;;;AAiBA,MAAMA,IAA4D,gBAAAC,EAAA,MAChE,OAAO,iDAAiC,GADwB;AAOlE,SAASC,EAAmBC,GAAgC;AAC1D,QAAM,EAAE,WAAAC,IAAY,GAAA,IAAOD,GACrBE,IAAUC,EAAA,GACV,EAAE,KAAAC,EAAA,IAAQC,EAAA,GACVC,IAAyBC,EAAiD,IAAI,GAC9EC,KAAwBJ,KAAA,gBAAAA,EAAK,2BAA0B,IACvDK,KACHL,KAAA,gBAAAA,EAAK,6BACNP,GAEIa,IAAyBC,EAAY,OACpCL,EAAuB,YAC1BA,EAAuB,UAAUG,EAAA,EAA2B,MAAM,CAACG,MAAU;AAC3E,UAAAN,EAAuB,UAAU,MAC3BM;AAAA,EACR,CAAC,IAGIN,EAAuB,UAC7B,CAACG,CAAwB,CAAC;AAU7B,MARAI,EAAU,MAAM;AACd,QAAKL;AAIL,aAAOM,EAAc,MAAMJ,GAAwB;AAAA,EACrD,GAAG,CAACF,GAAuBE,CAAsB,CAAC,GAE9C,CAACF;AACH,WAAO;AAGT,QAAMO,IAA+B,gBAAAjB,EAAA,YAAY;AAC/C,QAAI;AACF,YAAMkB,IAAe,MAAMN,EAAA;AAE3B,YAAMR,EAAQ,KAAKc,EAAa,oBAAoB,CAAA,CAAE;AAAA,IACxD,SAASJ,GAAO;AACd,cAAQ,MAAMA,CAAK;AAAA,IACrB;AAAA,EACF,GARqC,iCAU/BK,IAAkC,gBAAAnB,EAAA,MAAM;AAC5C,IAAKY,EAAA;AAAA,EACP,GAFwC;AAIxC,SACE,gBAAAQ,EAACC,GAAA,EAAQ,OAAM,iBAAgB,WAAU,UACvC,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,IAAIC;AAAA,MACJ,SAASN;AAAA,MACT,cAAcE;AAAA,MACd,SAASA;AAAA,MACT,WAAWK,EAAKrB,CAAS;AAAA,MACzB,cAAW;AAAA,MAEX,UAAA,gBAAAiB,EAACK,GAAA,EAAoB,UAAS,QAAA,CAAQ;AAAA,IAAA;AAAA,EAAA,GAE1C;AAEJ;AA7DSzB,EAAAC,GAAA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Q = Object.defineProperty;
|
|
2
2
|
var w = (k, D) => Q(k, "name", { value: D, configurable: !0 });
|
|
3
|
-
import { __module as I } from "../../../../../_virtual/
|
|
3
|
+
import { __module as I } from "../../../../../_virtual/index3.js";
|
|
4
4
|
var F;
|
|
5
5
|
function W() {
|
|
6
6
|
return F ? I.exports : (F = 1, (function(k, D) {
|
package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var O = Object.defineProperty;
|
|
2
2
|
var C = (i, r) => O(i, "name", { value: r, configurable: !0 });
|
|
3
|
-
import { __exports as o } from "../../../../../../../_virtual/
|
|
3
|
+
import { __exports as o } from "../../../../../../../_virtual/index4.js";
|
|
4
4
|
import { __require as c } from "./CODE39/index.js";
|
|
5
5
|
import { __require as D } from "./CODE128/index.js";
|
|
6
6
|
import { __require as d } from "./EAN_UPC/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var a = (r, e) => c(r, "name", { value: e, configurable: !0 });
|
|
3
|
-
import n from "../../../../../../_virtual/
|
|
3
|
+
import n from "../../../../../../_virtual/index19.js";
|
|
4
4
|
import m from "react-dom";
|
|
5
5
|
import t from "react";
|
|
6
6
|
import u from "./useWaitForDOMRef.js";
|