@plumile/ui 0.1.67 → 0.1.69
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/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js +62 -0
- package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js.map +1 -0
- package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +17 -0
- package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js.map +1 -0
- package/lib/esm/{backoffice/organisms/backoffice_topbar/BackofficeTopbar.js → admin/organisms/admin_topbar/AdminTopbar.js} +4 -4
- package/lib/esm/admin/organisms/admin_topbar/AdminTopbar.js.map +1 -0
- package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +8 -0
- package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js.map +1 -0
- package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js +19 -0
- package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js.map +1 -0
- package/lib/esm/admin/theme/AdminThemeProvider.js +11 -0
- package/lib/esm/admin/theme/AdminThemeProvider.js.map +1 -0
- package/lib/esm/admin/theme/adminTheme.css.js +7 -0
- package/lib/esm/admin/theme/adminTheme.css.js.map +1 -0
- package/lib/esm/atomic/atoms/badge/Badge.js +3 -3
- package/lib/esm/atomic/atoms/button/Button.js +1 -1
- package/lib/esm/atomic/atoms/checkbox/Checkbox.js +1 -1
- package/lib/esm/atomic/atoms/error_message/ErrorMessage.js +1 -1
- package/lib/esm/atomic/atoms/formatted-date/FormattedDate.js +4 -4
- package/lib/esm/atomic/atoms/label/Label.js +1 -1
- package/lib/esm/atomic/atoms/modal/Modal.js +13 -13
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuDropdown.js +12 -12
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuPopover.js +20 -20
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.js +14 -14
- package/lib/esm/atomic/molecules/card/Card.js +6 -6
- package/lib/esm/atomic/molecules/checkbox_field/CheckboxField.js +1 -1
- package/lib/esm/atomic/molecules/dropdown/Dropdown.js +80 -80
- package/lib/esm/atomic/molecules/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/atomic/molecules/form/Form.js +1 -1
- package/lib/esm/atomic/molecules/form_error/FormError.js +1 -1
- package/lib/esm/atomic/molecules/highlight/HighlightCode.js +25 -25
- package/lib/esm/atomic/molecules/markdown/LazyMarkdownRenderer.js +7 -7
- package/lib/esm/atomic/molecules/markdown/MarkdownRenderer.js +33 -33
- package/lib/esm/atomic/molecules/markdown/MarkdownRenderer.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/LazyMarkdownCodeBlock.js +9 -9
- package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownCodeBlock.js +7 -7
- package/lib/esm/atomic/molecules/markdown/components/MarkdownCodeCopyButton.js +9 -9
- package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnotesSection.js +7 -7
- package/lib/esm/atomic/molecules/markdown/components/MarkdownMermaidBlock.js +34 -34
- package/lib/esm/atomic/molecules/markdown/components/MarkdownShikiCodeBlock.js +4 -4
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTaskListItem.css.js +0 -1
- package/lib/esm/atomic/molecules/profile_dropdown/ProfileDropdown.js +25 -25
- package/lib/esm/atomic/molecules/toast/ToastProvider.js +15 -15
- package/lib/esm/atomic/molecules/toast/ToastViewport.js +15 -15
- package/lib/esm/atomic/organisms/login_form/LoginForm.js +1 -1
- package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js +34 -34
- package/lib/esm/atomic/organisms/sidebar/icons.js +13 -13
- package/lib/esm/atomic/templates/auth_layout/AuthLayout.js +1 -1
- package/lib/esm/backoffice/atoms/copyable_text/CopyableText.js +10 -10
- package/lib/esm/backoffice/atoms/shortcut_hint/ShortcutHint.js +6 -6
- package/lib/esm/backoffice/atoms/tag/Tag.js +7 -7
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js +22 -22
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.js +12 -12
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +11 -11
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js +12 -12
- package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js +9 -9
- package/lib/esm/backoffice/molecules/global_search_input/GlobalSearchInput.js +5 -5
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js +7 -7
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js +26 -26
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +11 -11
- package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js +20 -20
- package/lib/esm/components/data-table/TableCell.js +17 -17
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js +27 -27
- package/lib/esm/components/layout/AppShell.js +14 -0
- package/lib/esm/components/layout/AppShell.js.map +1 -0
- package/lib/esm/components/layout/PageShell.js +65 -65
- package/lib/esm/components/layout/PageShell.js.map +1 -1
- package/lib/esm/components/layout/SettingsLayout.css.js +8 -0
- package/lib/esm/components/layout/SettingsLayout.css.js.map +1 -0
- package/lib/esm/{backoffice/templates/settings_template/SettingsTemplate.js → components/layout/SettingsLayout.js} +5 -5
- package/lib/esm/components/layout/SettingsLayout.js.map +1 -0
- package/lib/esm/components/layout/SplitViewLayout.css.js +8 -0
- package/lib/esm/components/layout/SplitViewLayout.css.js.map +1 -0
- package/lib/esm/{backoffice/templates/split_view_template/SplitViewTemplate.js → components/layout/SplitViewLayout.js} +5 -5
- package/lib/esm/components/layout/SplitViewLayout.js.map +1 -0
- package/lib/esm/components/select/SimpleSelect.js +23 -23
- package/lib/esm/index.js +105 -104
- package/lib/esm/node_modules/react-shiki/dist/chunk-QPJZGYHO.js +23 -23
- package/lib/esm/node_modules/react-shiki/dist/chunk-QPJZGYHO.js.map +1 -1
- package/lib/esm/style.css +1 -1
- package/lib/esm/theme/ThemeProvider.js +11 -11
- package/lib/esm/theme/VisuallyHidden.js +3 -3
- package/lib/esm/theme/index.js +9 -9
- package/lib/types/{backoffice/organisms/backoffice_sidebar/BackofficeSidebar.d.ts → admin/organisms/admin_sidebar/AdminSidebar.d.ts} +7 -7
- package/lib/types/admin/organisms/admin_sidebar/AdminSidebar.d.ts.map +1 -0
- package/lib/types/{backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.d.ts → admin/organisms/admin_sidebar/adminSidebar.css.d.ts} +1 -1
- package/lib/types/admin/organisms/admin_sidebar/adminSidebar.css.d.ts.map +1 -0
- package/lib/types/admin/organisms/admin_topbar/AdminTopbar.d.ts +10 -0
- package/lib/types/admin/organisms/admin_topbar/AdminTopbar.d.ts.map +1 -0
- package/lib/types/{backoffice/organisms/backoffice_topbar/backofficeTopbar.css.d.ts → admin/organisms/admin_topbar/adminTopbar.css.d.ts} +1 -1
- package/lib/types/admin/organisms/admin_topbar/adminTopbar.css.d.ts.map +1 -0
- package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts +14 -0
- package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts.map +1 -0
- package/lib/types/admin/theme/AdminThemeProvider.d.ts +7 -0
- package/lib/types/admin/theme/AdminThemeProvider.d.ts.map +1 -0
- package/lib/types/admin/theme/adminTheme.css.d.ts +2 -0
- package/lib/types/admin/theme/adminTheme.css.d.ts.map +1 -0
- package/lib/types/components/layout/AppShell.d.ts +12 -0
- package/lib/types/components/layout/AppShell.d.ts.map +1 -0
- package/lib/types/{backoffice/templates/settings_template/settingsTemplate.css.d.ts → components/layout/SettingsLayout.css.d.ts} +1 -1
- package/lib/types/components/layout/SettingsLayout.css.d.ts.map +1 -0
- package/lib/types/components/layout/SettingsLayout.d.ts +11 -0
- package/lib/types/components/layout/SettingsLayout.d.ts.map +1 -0
- package/lib/types/{backoffice/templates/split_view_template/splitViewTemplate.css.d.ts → components/layout/SplitViewLayout.css.d.ts} +1 -1
- package/lib/types/components/layout/SplitViewLayout.css.d.ts.map +1 -0
- package/lib/types/components/layout/SplitViewLayout.d.ts +11 -0
- package/lib/types/components/layout/SplitViewLayout.d.ts.map +1 -0
- package/lib/types/index.d.ts +9 -8
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +10 -10
- package/lib/esm/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.js +0 -14
- package/lib/esm/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.js +0 -62
- package/lib/esm/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.js +0 -17
- package/lib/esm/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_topbar/BackofficeTopbar.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.js +0 -8
- package/lib/esm/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.js.map +0 -1
- package/lib/esm/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.js +0 -19
- package/lib/esm/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.js.map +0 -1
- package/lib/esm/backoffice/templates/settings_template/SettingsTemplate.js.map +0 -1
- package/lib/esm/backoffice/templates/settings_template/settingsTemplate.css.js +0 -8
- package/lib/esm/backoffice/templates/settings_template/settingsTemplate.css.js.map +0 -1
- package/lib/esm/backoffice/templates/split_view_template/SplitViewTemplate.js.map +0 -1
- package/lib/esm/backoffice/templates/split_view_template/splitViewTemplate.css.js +0 -8
- package/lib/esm/backoffice/templates/split_view_template/splitViewTemplate.css.js.map +0 -1
- package/lib/esm/backoffice/theme/BackofficeThemeProvider.js +0 -11
- package/lib/esm/backoffice/theme/BackofficeThemeProvider.js.map +0 -1
- package/lib/esm/backoffice/theme/backofficeTheme.css.js +0 -7
- package/lib/esm/backoffice/theme/backofficeTheme.css.js.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.d.ts +0 -12
- package/lib/types/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_topbar/BackofficeTopbar.d.ts +0 -10
- package/lib/types/backoffice/organisms/backoffice_topbar/BackofficeTopbar.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.d.ts.map +0 -1
- package/lib/types/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.d.ts +0 -14
- package/lib/types/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.d.ts.map +0 -1
- package/lib/types/backoffice/templates/settings_template/SettingsTemplate.d.ts +0 -11
- package/lib/types/backoffice/templates/settings_template/SettingsTemplate.d.ts.map +0 -1
- package/lib/types/backoffice/templates/settings_template/settingsTemplate.css.d.ts.map +0 -1
- package/lib/types/backoffice/templates/split_view_template/SplitViewTemplate.d.ts +0 -11
- package/lib/types/backoffice/templates/split_view_template/SplitViewTemplate.d.ts.map +0 -1
- package/lib/types/backoffice/templates/split_view_template/splitViewTemplate.css.d.ts.map +0 -1
- package/lib/types/backoffice/theme/BackofficeThemeProvider.d.ts +0 -7
- package/lib/types/backoffice/theme/BackofficeThemeProvider.d.ts.map +0 -1
- package/lib/types/backoffice/theme/backofficeTheme.css.d.ts +0 -2
- package/lib/types/backoffice/theme/backofficeTheme.css.d.ts.map +0 -1
|
@@ -4,20 +4,20 @@ import { Button as n } from "../../atoms/button/Button.js";
|
|
|
4
4
|
import { ModalCloseSvg as r } from "../../../icons/ModalCloseSvg.js";
|
|
5
5
|
import { actions as i, closeButton as a, header as o, kindRecipe as s, message as c, progressBar as l, progressTrack as u, title as d, toast as f, viewport as p } from "./toast.css.js";
|
|
6
6
|
import { INFO_TOAST_DURATION_MS as m } from "./constants.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { useMemo as h } from "react";
|
|
8
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
9
9
|
//#region src/atomic/molecules/toast/ToastViewport.tsx
|
|
10
10
|
var v = ({ toasts: v, onDismiss: y, dismissLabel: b, className: x }) => {
|
|
11
|
-
let { t: S } = t(), C = b ?? S("toast.dismissAriaLabel"), w =
|
|
12
|
-
let p = t.kind ?? "info",
|
|
13
|
-
t.message != null && (v = /* @__PURE__ */
|
|
11
|
+
let { t: S } = t(), C = b ?? S("toast.dismissAriaLabel"), w = h(() => v.map((t) => {
|
|
12
|
+
let p = t.kind ?? "info", h = t.actions ?? [], v = null;
|
|
13
|
+
t.message != null && (v = /* @__PURE__ */ g("div", {
|
|
14
14
|
className: c,
|
|
15
15
|
children: t.message
|
|
16
16
|
}));
|
|
17
17
|
let b = null;
|
|
18
|
-
|
|
18
|
+
h.length > 0 && (b = /* @__PURE__ */ g("div", {
|
|
19
19
|
className: i,
|
|
20
|
-
children:
|
|
20
|
+
children: h.map((e) => /* @__PURE__ */ g(n, {
|
|
21
21
|
type: "button",
|
|
22
22
|
size: "small",
|
|
23
23
|
variant: "secondary",
|
|
@@ -26,29 +26,29 @@ var v = ({ toasts: v, onDismiss: y, dismissLabel: b, className: x }) => {
|
|
|
26
26
|
}, e.id))
|
|
27
27
|
}));
|
|
28
28
|
let x = null;
|
|
29
|
-
return p === "info" && (x = /* @__PURE__ */
|
|
29
|
+
return p === "info" && (x = /* @__PURE__ */ g("div", {
|
|
30
30
|
className: u,
|
|
31
31
|
"aria-hidden": "true",
|
|
32
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ g("div", {
|
|
33
33
|
className: l,
|
|
34
34
|
style: { animationDuration: `${m}ms` }
|
|
35
35
|
})
|
|
36
|
-
})), /* @__PURE__ */
|
|
36
|
+
})), /* @__PURE__ */ _("div", {
|
|
37
37
|
className: e(f, s({ kind: p })),
|
|
38
38
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ _("div", {
|
|
40
40
|
className: o,
|
|
41
|
-
children: [/* @__PURE__ */
|
|
41
|
+
children: [/* @__PURE__ */ g("div", {
|
|
42
42
|
className: d,
|
|
43
43
|
children: t.title
|
|
44
|
-
}), /* @__PURE__ */
|
|
44
|
+
}), /* @__PURE__ */ g("button", {
|
|
45
45
|
type: "button",
|
|
46
46
|
className: a,
|
|
47
47
|
"aria-label": C,
|
|
48
48
|
onClick: () => {
|
|
49
49
|
y(t.id);
|
|
50
50
|
},
|
|
51
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ g(r, {
|
|
52
52
|
width: 18,
|
|
53
53
|
height: 18,
|
|
54
54
|
"aria-hidden": "true"
|
|
@@ -65,7 +65,7 @@ var v = ({ toasts: v, onDismiss: y, dismissLabel: b, className: x }) => {
|
|
|
65
65
|
C,
|
|
66
66
|
v
|
|
67
67
|
]);
|
|
68
|
-
return v.length === 0 ? null : /* @__PURE__ */
|
|
68
|
+
return v.length === 0 ? null : /* @__PURE__ */ g("div", {
|
|
69
69
|
className: e(p, x),
|
|
70
70
|
children: w
|
|
71
71
|
});
|
|
@@ -4,8 +4,8 @@ import { Button as n } from "../../atoms/button/Button.js";
|
|
|
4
4
|
import { FormError as r } from "../../molecules/form_error/FormError.js";
|
|
5
5
|
import { FormField as i } from "../../molecules/form_field/FormField.js";
|
|
6
6
|
import { useLoginForm as a } from "./useLoginForm.js";
|
|
7
|
-
import "../../../index.js";
|
|
8
7
|
import { form as o } from "./loginForm.css.js";
|
|
8
|
+
import "../../../index.js";
|
|
9
9
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
10
10
|
//#region src/atomic/organisms/login_form/LoginForm.tsx
|
|
11
11
|
var l = (l) => {
|
|
@@ -3,28 +3,28 @@ import { useUiTranslation as t } from "../../../i18n/useUiTranslation.js";
|
|
|
3
3
|
import { SidebarContainer as n } from "./SidebarContainer.js";
|
|
4
4
|
import { ChevronLeftIcon as r, ChevronRightIcon as i } from "./icons.js";
|
|
5
5
|
import { childIcon as a, childLabel as o, childLinkRecipe as s, collapseButton as c, collapseButtonLabel as l, collapseButtonStateRecipe as u, collapsibleContent as d, collapsibleItem as f, collapsibleSection as p, collapsibleStateRecipe as m, iconBaseLayer as h, iconHiddenOnHover as g, iconVisibleOnHover as _, iconWrapper as v, itemWrapper as y, label as b, navButton as x, navGapRecipe as ee, navLinkRecipe as S, navWithTrailingAction as C, trailingActionButton as w, trailingActionIconHidden as T, trailingActionIconVisible as E, trailingActionIconWrapper as D, trailingIconWrapper as te } from "./navigationSidebar.css.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useCallback as O, useMemo as k, useState as A } from "react";
|
|
7
|
+
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
8
8
|
import { Link as P, useLocation as F } from "@plumile/router";
|
|
9
9
|
//#region src/atomic/organisms/sidebar/NavigationSidebar.tsx
|
|
10
10
|
var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
11
11
|
let i = "collapsed";
|
|
12
|
-
return n && (i = "expanded"), /* @__PURE__ */
|
|
12
|
+
return n && (i = "expanded"), /* @__PURE__ */ M("div", {
|
|
13
13
|
id: t,
|
|
14
14
|
"aria-hidden": !n,
|
|
15
15
|
className: e(p, m({ state: i })),
|
|
16
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ M("div", {
|
|
17
17
|
className: d,
|
|
18
18
|
children: r
|
|
19
19
|
})
|
|
20
20
|
});
|
|
21
21
|
}, L = ({ items: d, headerSlot: p, isCollapsed: m, onCollapsedChange: L, showCollapseToggle: R = !0 }) => {
|
|
22
|
-
let { t: z } = t(), [B, V] =
|
|
22
|
+
let { t: z } = t(), [B, V] = A(!1), [H, U] = A({}), W = m != null, G = m ?? B, { pathname: K } = F(), q = (e, t) => t === !0 ? K === e : K === e ? !0 : K.startsWith(`${e}/`), J = O((e, t) => {
|
|
23
23
|
U((n) => ({
|
|
24
24
|
...n,
|
|
25
25
|
[e]: t
|
|
26
26
|
}));
|
|
27
|
-
}, []), Y =
|
|
27
|
+
}, []), Y = O(() => {
|
|
28
28
|
let e = !G;
|
|
29
29
|
W || V(e), L?.(e);
|
|
30
30
|
}, [
|
|
@@ -33,22 +33,22 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
33
33
|
L
|
|
34
34
|
]), X;
|
|
35
35
|
G || (X = p ?? void 0);
|
|
36
|
-
let Z =
|
|
36
|
+
let Z = k(() => {
|
|
37
37
|
if (!R) return null;
|
|
38
38
|
let t = r, n = z("navigation.sidebar.actions.collapseAriaLabel");
|
|
39
39
|
G && (t = i, n = z("navigation.sidebar.actions.expandAriaLabel"));
|
|
40
40
|
let a = "expanded";
|
|
41
41
|
G && (a = "collapsed");
|
|
42
42
|
let o = null;
|
|
43
|
-
return G || (o = /* @__PURE__ */
|
|
43
|
+
return G || (o = /* @__PURE__ */ M("span", {
|
|
44
44
|
className: l,
|
|
45
45
|
children: z("navigation.sidebar.actions.collapse")
|
|
46
|
-
})), /* @__PURE__ */
|
|
46
|
+
})), /* @__PURE__ */ N("button", {
|
|
47
47
|
type: "button",
|
|
48
48
|
onClick: Y,
|
|
49
49
|
className: e(c, u({ state: a })),
|
|
50
50
|
"aria-label": n,
|
|
51
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ M(t, { size: 20 }), o]
|
|
52
52
|
});
|
|
53
53
|
}, [
|
|
54
54
|
Y,
|
|
@@ -56,7 +56,7 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
56
56
|
R,
|
|
57
57
|
z
|
|
58
58
|
]);
|
|
59
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ M(n, {
|
|
60
60
|
headerSlot: X,
|
|
61
61
|
footerSlot: Z,
|
|
62
62
|
isCollapsed: G,
|
|
@@ -66,45 +66,45 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
66
66
|
u && (l = `navigation-sidebar-${t.key}-children`), r && n.some((e) => q(e.to)) && (i = !0);
|
|
67
67
|
let d = null;
|
|
68
68
|
!G && t.trailingAction != null && (d = t.trailingAction);
|
|
69
|
-
let p = d != null, m = t.hoverIcon !== void 0 && t.hoverIcon !== null,
|
|
69
|
+
let p = d != null, m = t.hoverIcon !== void 0 && t.hoverIcon !== null, O = t.trailingIcon !== void 0 && t.trailingIcon !== null, k = t.trailingHoverIcon !== void 0 && t.trailingHoverIcon !== null, A = !G && !p && (O || k), F;
|
|
70
70
|
G && (F = t.label);
|
|
71
71
|
let L = "expanded";
|
|
72
72
|
G && (L = "collapsed");
|
|
73
73
|
let R = ee({ state: L }), z;
|
|
74
74
|
p && (z = C);
|
|
75
75
|
let B = null;
|
|
76
|
-
G || (B = /* @__PURE__ */
|
|
76
|
+
G || (B = /* @__PURE__ */ M("span", {
|
|
77
77
|
className: b,
|
|
78
78
|
children: t.label
|
|
79
79
|
}));
|
|
80
80
|
let V = null;
|
|
81
|
-
m && (V = /* @__PURE__ */
|
|
81
|
+
m && (V = /* @__PURE__ */ M("span", {
|
|
82
82
|
className: _,
|
|
83
83
|
children: t.hoverIcon
|
|
84
84
|
}));
|
|
85
|
-
let U = /* @__PURE__ */
|
|
85
|
+
let U = /* @__PURE__ */ N("span", {
|
|
86
86
|
className: v,
|
|
87
|
-
children: [/* @__PURE__ */
|
|
87
|
+
children: [/* @__PURE__ */ M("span", {
|
|
88
88
|
className: e(h, { [g]: m }),
|
|
89
89
|
children: t.icon
|
|
90
90
|
}), V]
|
|
91
91
|
}), W = null;
|
|
92
|
-
if (
|
|
92
|
+
if (A) {
|
|
93
93
|
let n = null;
|
|
94
|
-
|
|
95
|
-
className: e(h, { [g]:
|
|
94
|
+
O && (n = /* @__PURE__ */ M("span", {
|
|
95
|
+
className: e(h, { [g]: k }),
|
|
96
96
|
children: t.trailingIcon
|
|
97
97
|
}));
|
|
98
98
|
let r = null;
|
|
99
|
-
|
|
99
|
+
k && (r = /* @__PURE__ */ M("span", {
|
|
100
100
|
className: _,
|
|
101
101
|
children: t.trailingHoverIcon
|
|
102
|
-
})), W = /* @__PURE__ */
|
|
102
|
+
})), W = /* @__PURE__ */ N("span", {
|
|
103
103
|
className: te,
|
|
104
104
|
children: [n, r]
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
let K = /* @__PURE__ */
|
|
107
|
+
let K = /* @__PURE__ */ N(j, { children: [
|
|
108
108
|
U,
|
|
109
109
|
B,
|
|
110
110
|
W
|
|
@@ -117,7 +117,7 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
117
117
|
q(t.to, t.exact) && (n = "active"), X = e(S({ state: n }), R, z);
|
|
118
118
|
}
|
|
119
119
|
let Z;
|
|
120
|
-
Z = r ? /* @__PURE__ */
|
|
120
|
+
Z = r ? /* @__PURE__ */ M("button", {
|
|
121
121
|
type: "button",
|
|
122
122
|
className: X,
|
|
123
123
|
"aria-expanded": i,
|
|
@@ -125,7 +125,7 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
125
125
|
"aria-label": F,
|
|
126
126
|
onClick: Y,
|
|
127
127
|
children: K
|
|
128
|
-
}) : /* @__PURE__ */
|
|
128
|
+
}) : /* @__PURE__ */ M(P, {
|
|
129
129
|
to: t.to,
|
|
130
130
|
className: X,
|
|
131
131
|
exact: t.exact,
|
|
@@ -137,17 +137,17 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
137
137
|
let e = (e) => {
|
|
138
138
|
e.preventDefault(), e.stopPropagation(), d.onClick();
|
|
139
139
|
}, t = d.hoverIcon, n = t != null, r = null;
|
|
140
|
-
n && (r = /* @__PURE__ */
|
|
140
|
+
n && (r = /* @__PURE__ */ M("span", {
|
|
141
141
|
className: E,
|
|
142
142
|
children: t
|
|
143
|
-
})), Q = /* @__PURE__ */
|
|
143
|
+
})), Q = /* @__PURE__ */ M("button", {
|
|
144
144
|
type: "button",
|
|
145
145
|
"aria-label": d.label,
|
|
146
146
|
onClick: e,
|
|
147
147
|
className: w,
|
|
148
|
-
children: /* @__PURE__ */
|
|
148
|
+
children: /* @__PURE__ */ N("span", {
|
|
149
149
|
className: D,
|
|
150
|
-
children: [/* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ M("span", {
|
|
151
151
|
className: T,
|
|
152
152
|
children: d.icon
|
|
153
153
|
}), r]
|
|
@@ -155,30 +155,30 @@ var I = ({ id: t, isExpanded: n, children: r }) => {
|
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
let $ = null;
|
|
158
|
-
return u && l != null && ($ = /* @__PURE__ */
|
|
158
|
+
return u && l != null && ($ = /* @__PURE__ */ M(I, {
|
|
159
159
|
id: l,
|
|
160
160
|
isExpanded: i,
|
|
161
161
|
children: n.map((e) => {
|
|
162
162
|
let t = null;
|
|
163
|
-
e.icon != null && (t = /* @__PURE__ */
|
|
163
|
+
e.icon != null && (t = /* @__PURE__ */ M("span", {
|
|
164
164
|
className: a,
|
|
165
165
|
children: e.icon
|
|
166
166
|
}));
|
|
167
167
|
let n = "default";
|
|
168
|
-
return q(e.to) && (n = "active"), /* @__PURE__ */
|
|
168
|
+
return q(e.to) && (n = "active"), /* @__PURE__ */ M("div", {
|
|
169
169
|
className: f,
|
|
170
|
-
children: /* @__PURE__ */
|
|
170
|
+
children: /* @__PURE__ */ N(P, {
|
|
171
171
|
to: e.to,
|
|
172
172
|
className: s({ state: n }),
|
|
173
173
|
"aria-label": e.label,
|
|
174
|
-
children: [t, /* @__PURE__ */
|
|
174
|
+
children: [t, /* @__PURE__ */ M("span", {
|
|
175
175
|
className: o,
|
|
176
176
|
children: e.label
|
|
177
177
|
})]
|
|
178
178
|
})
|
|
179
179
|
}, e.key);
|
|
180
180
|
})
|
|
181
|
-
})), /* @__PURE__ */
|
|
181
|
+
})), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("div", {
|
|
182
182
|
className: y,
|
|
183
183
|
children: [Z, Q]
|
|
184
184
|
}), $] }, t.key);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ChevronLeftSvg as e } from "../../../icons/ChevronLeftSvg.js";
|
|
2
|
+
import { ChevronRightSvg as t } from "../../../icons/ChevronRightSvg.js";
|
|
3
|
+
import { SidebarHomeSvg as n } from "../../../icons/SidebarHomeSvg.js";
|
|
4
|
+
import { ChevronDownSvg as r } from "../../../icons/ChevronDownSvg.js";
|
|
5
5
|
import { GlobeSvg as i } from "../../../icons/GlobeSvg.js";
|
|
6
6
|
import { ProjectsFolderSvg as a } from "../../../icons/ProjectsFolderSvg.js";
|
|
7
7
|
import { SidebarInitiativesSvg as o } from "../../../icons/SidebarInitiativesSvg.js";
|
|
@@ -12,10 +12,10 @@ import { SidebarTasksSvg as u } from "../../../icons/SidebarTasksSvg.js";
|
|
|
12
12
|
import { SidebarTeamSvg as d } from "../../../icons/SidebarTeamSvg.js";
|
|
13
13
|
import { jsx as f } from "react/jsx-runtime";
|
|
14
14
|
//#region src/atomic/organisms/sidebar/icons.tsx
|
|
15
|
-
var p = ({ size: e = 24, className:
|
|
15
|
+
var p = ({ size: e = 24, className: t }) => /* @__PURE__ */ f(n, {
|
|
16
16
|
width: e,
|
|
17
17
|
height: e,
|
|
18
|
-
className:
|
|
18
|
+
className: t
|
|
19
19
|
}), m = ({ size: e = 24, className: t }) => /* @__PURE__ */ f(u, {
|
|
20
20
|
width: e,
|
|
21
21
|
height: e,
|
|
@@ -40,18 +40,18 @@ var p = ({ size: e = 24, className: n }) => /* @__PURE__ */ f(t, {
|
|
|
40
40
|
width: e,
|
|
41
41
|
height: e,
|
|
42
42
|
className: t
|
|
43
|
-
}), b = ({ size:
|
|
44
|
-
width: t,
|
|
45
|
-
height: t,
|
|
46
|
-
className: n
|
|
47
|
-
}), x = ({ size: e = 24, className: t }) => /* @__PURE__ */ f(r, {
|
|
43
|
+
}), b = ({ size: e = 24, className: t }) => /* @__PURE__ */ f(r, {
|
|
48
44
|
width: e,
|
|
49
45
|
height: e,
|
|
50
46
|
className: t
|
|
51
|
-
}),
|
|
47
|
+
}), x = ({ size: e = 24, className: n }) => /* @__PURE__ */ f(t, {
|
|
52
48
|
width: e,
|
|
53
49
|
height: e,
|
|
54
|
-
className:
|
|
50
|
+
className: n
|
|
51
|
+
}), S = ({ size: t = 24, className: n }) => /* @__PURE__ */ f(e, {
|
|
52
|
+
width: t,
|
|
53
|
+
height: t,
|
|
54
|
+
className: n
|
|
55
55
|
}), C = ({ size: e = 24, className: t }) => /* @__PURE__ */ f(c, {
|
|
56
56
|
width: e,
|
|
57
57
|
height: e,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formCardStyle as e, headerStyle as t, mainStyle as n, subtitleStyle as r, titleStyle as i } from "./authLayout.css.js";
|
|
2
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
4
|
//#region src/atomic/templates/auth_layout/AuthLayout.tsx
|
|
5
5
|
var s = (s) => {
|
|
6
6
|
let { title: c, subtitle: l, children: u } = s, d = null;
|
|
@@ -2,8 +2,8 @@ import { cx as e } from "../../../theme/tools.js";
|
|
|
2
2
|
import { Button as t } from "../../../atomic/atoms/button/Button.js";
|
|
3
3
|
import { feedback as n, root as r, value as i, valueNoTruncate as a } from "./copyableText.css.js";
|
|
4
4
|
import "../../../index.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useCallback as o, useEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
6
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
7
|
//#region src/backoffice/atoms/copyable_text/CopyableText.tsx
|
|
8
8
|
var p = (e) => {
|
|
9
9
|
try {
|
|
@@ -15,16 +15,16 @@ var p = (e) => {
|
|
|
15
15
|
return !1;
|
|
16
16
|
}
|
|
17
17
|
}, m = ({ value: m, copyValue: h, className: g, truncate: _ = !0, copyLabel: v = "Copy", copiedLabel: y = "Copied" }) => {
|
|
18
|
-
let [b, x] =
|
|
18
|
+
let [b, x] = u(!1), S = l(null), C = h ?? m, w = c(() => {
|
|
19
19
|
let t = null;
|
|
20
20
|
return _ || (t = a), e(i, t, g);
|
|
21
|
-
}, [g, _]), T =
|
|
21
|
+
}, [g, _]), T = o(() => {
|
|
22
22
|
S.current != null && (window.clearTimeout(S.current), S.current = null);
|
|
23
23
|
}, []);
|
|
24
|
-
|
|
24
|
+
s(() => () => {
|
|
25
25
|
T();
|
|
26
26
|
}, [T]);
|
|
27
|
-
let E =
|
|
27
|
+
let E = o(async () => {
|
|
28
28
|
T();
|
|
29
29
|
let e = !1;
|
|
30
30
|
try {
|
|
@@ -41,20 +41,20 @@ var p = (e) => {
|
|
|
41
41
|
}, [T, C]), D = () => {
|
|
42
42
|
E().catch(() => {});
|
|
43
43
|
}, O = null;
|
|
44
|
-
return b && (O = /* @__PURE__ */
|
|
44
|
+
return b && (O = /* @__PURE__ */ d("span", {
|
|
45
45
|
className: n,
|
|
46
46
|
role: "status",
|
|
47
47
|
"aria-live": "polite",
|
|
48
48
|
children: y
|
|
49
|
-
})), /* @__PURE__ */
|
|
49
|
+
})), /* @__PURE__ */ f("span", {
|
|
50
50
|
className: r,
|
|
51
51
|
children: [
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ d("span", {
|
|
53
53
|
className: w,
|
|
54
54
|
title: m,
|
|
55
55
|
children: m
|
|
56
56
|
}),
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ d(t, {
|
|
58
58
|
type: "button",
|
|
59
59
|
variant: "secondary",
|
|
60
60
|
size: "small",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { container as e, key as t } from "./shortcutHint.css.js";
|
|
2
|
+
import { cx as n } from "../../../theme/tools.js";
|
|
3
3
|
import "../../../index.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
//#region src/backoffice/atoms/shortcut_hint/ShortcutHint.tsx
|
|
6
6
|
var i = ({ keys: i, className: a }) => {
|
|
7
7
|
let o = [];
|
|
8
8
|
return o = typeof i == "string" ? i.split(" ") : [...i], /* @__PURE__ */ r("span", {
|
|
9
|
-
className: e
|
|
9
|
+
className: n(e, a),
|
|
10
10
|
"aria-hidden": "true",
|
|
11
|
-
children: o.map((e,
|
|
12
|
-
className:
|
|
11
|
+
children: o.map((e, n) => /* @__PURE__ */ r("kbd", {
|
|
12
|
+
className: t,
|
|
13
13
|
children: e
|
|
14
|
-
}, `${e}-${
|
|
14
|
+
}, `${e}-${n}`))
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
@@ -2,25 +2,25 @@ import { cx as e } from "../../../theme/tools.js";
|
|
|
2
2
|
import { ModalCloseSvg as t } from "../../../icons/ModalCloseSvg.js";
|
|
3
3
|
import { removeButton as n, rootRecipe as r } from "./tag.css.js";
|
|
4
4
|
import "../../../index.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useId as i } from "react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
//#region src/backoffice/atoms/tag/Tag.tsx
|
|
8
8
|
var s = ({ children: s, tone: c = "neutral", className: l, onRemove: u, removeLabel: d = "Remove" }) => {
|
|
9
|
-
let f =
|
|
10
|
-
return p && (m = /* @__PURE__ */
|
|
9
|
+
let f = i(), p = typeof u == "function", m = null;
|
|
10
|
+
return p && (m = /* @__PURE__ */ a("button", {
|
|
11
11
|
type: "button",
|
|
12
12
|
className: n,
|
|
13
13
|
onClick: u,
|
|
14
14
|
"aria-label": d,
|
|
15
15
|
"aria-describedby": f,
|
|
16
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ a(t, {
|
|
17
17
|
width: 14,
|
|
18
18
|
height: 14,
|
|
19
19
|
"aria-hidden": "true"
|
|
20
20
|
})
|
|
21
|
-
})), /* @__PURE__ */
|
|
21
|
+
})), /* @__PURE__ */ o("span", {
|
|
22
22
|
className: e(r({ tone: c }), l),
|
|
23
|
-
children: [/* @__PURE__ */
|
|
23
|
+
children: [/* @__PURE__ */ a("span", {
|
|
24
24
|
id: f,
|
|
25
25
|
children: s
|
|
26
26
|
}), m]
|
|
@@ -3,14 +3,14 @@ import { Input as t } from "../../../atomic/atoms/input/Input.js";
|
|
|
3
3
|
import { ModalCloseSvg as n } from "../../../icons/ModalCloseSvg.js";
|
|
4
4
|
import { backdrop as r, closeButton as i, drawer as a, drawerContainer as o, header as s, searchRow as c, section as l, sectionDescription as u, sectionHeader as d, sectionItem as f, sectionItems as p, sectionTitle as m, sections as h, subtitle as g, title as _, titleBlock as v } from "./backofficeFilterDrawer.css.js";
|
|
5
5
|
import "../../../index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useEffect as y } from "react";
|
|
7
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
8
8
|
import { useTranslation as C } from "react-i18next";
|
|
9
9
|
import { createPortal as w } from "react-dom";
|
|
10
10
|
//#region src/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.tsx
|
|
11
11
|
var T = ({ isOpen: T, title: E, sections: D, searchValue: O, onSearchChange: k, onClose: A, onReset: j }) => {
|
|
12
12
|
let { t: M } = C("ui"), N = E ?? M("backoffice.filterDrawer.title");
|
|
13
|
-
if (
|
|
13
|
+
if (y(() => {
|
|
14
14
|
let e = (e) => {
|
|
15
15
|
e.key === "Escape" && T && A();
|
|
16
16
|
};
|
|
@@ -19,7 +19,7 @@ var T = ({ isOpen: T, title: E, sections: D, searchValue: O, onSearchChange: k,
|
|
|
19
19
|
};
|
|
20
20
|
}, [T, A]), !T) return null;
|
|
21
21
|
let P = D.reduce((e, t) => e + t.items.length, 0), F = null;
|
|
22
|
-
k != null && (F = /* @__PURE__ */
|
|
22
|
+
k != null && (F = /* @__PURE__ */ x(t, {
|
|
23
23
|
value: O ?? "",
|
|
24
24
|
onChange: (e) => {
|
|
25
25
|
k(e.target.value);
|
|
@@ -29,7 +29,7 @@ var T = ({ isOpen: T, title: E, sections: D, searchValue: O, onSearchChange: k,
|
|
|
29
29
|
fullWidth: !0
|
|
30
30
|
}));
|
|
31
31
|
let I = null;
|
|
32
|
-
j != null && (I = /* @__PURE__ */
|
|
32
|
+
j != null && (I = /* @__PURE__ */ x(e, {
|
|
33
33
|
type: "button",
|
|
34
34
|
variant: "secondary",
|
|
35
35
|
size: "small",
|
|
@@ -38,13 +38,13 @@ var T = ({ isOpen: T, title: E, sections: D, searchValue: O, onSearchChange: k,
|
|
|
38
38
|
}));
|
|
39
39
|
let L = M("backoffice.filterDrawer.ariaLabel");
|
|
40
40
|
typeof N == "string" && (L = N);
|
|
41
|
-
let R = /* @__PURE__ */
|
|
41
|
+
let R = /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", {
|
|
42
42
|
className: r,
|
|
43
43
|
onClick: A
|
|
44
|
-
}), /* @__PURE__ */
|
|
44
|
+
}), /* @__PURE__ */ x("div", {
|
|
45
45
|
className: o,
|
|
46
46
|
onClick: A,
|
|
47
|
-
children: /* @__PURE__ */
|
|
47
|
+
children: /* @__PURE__ */ S("aside", {
|
|
48
48
|
className: a,
|
|
49
49
|
role: "dialog",
|
|
50
50
|
"aria-modal": "true",
|
|
@@ -53,51 +53,51 @@ var T = ({ isOpen: T, title: E, sections: D, searchValue: O, onSearchChange: k,
|
|
|
53
53
|
e.stopPropagation();
|
|
54
54
|
},
|
|
55
55
|
children: [
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ S("div", {
|
|
57
57
|
className: s,
|
|
58
|
-
children: [/* @__PURE__ */
|
|
58
|
+
children: [/* @__PURE__ */ S("div", {
|
|
59
59
|
className: v,
|
|
60
|
-
children: [/* @__PURE__ */
|
|
60
|
+
children: [/* @__PURE__ */ x("div", {
|
|
61
61
|
className: _,
|
|
62
62
|
children: N
|
|
63
|
-
}), /* @__PURE__ */
|
|
63
|
+
}), /* @__PURE__ */ x("div", {
|
|
64
64
|
className: g,
|
|
65
65
|
children: M("backoffice.filterDrawer.subtitle", { count: P })
|
|
66
66
|
})]
|
|
67
|
-
}), /* @__PURE__ */
|
|
67
|
+
}), /* @__PURE__ */ x("button", {
|
|
68
68
|
type: "button",
|
|
69
69
|
className: i,
|
|
70
70
|
onClick: A,
|
|
71
71
|
"aria-label": M("backoffice.filterDrawer.closeAriaLabel"),
|
|
72
|
-
children: /* @__PURE__ */
|
|
72
|
+
children: /* @__PURE__ */ x(n, {
|
|
73
73
|
width: 18,
|
|
74
74
|
height: 18,
|
|
75
75
|
"aria-hidden": "true"
|
|
76
76
|
})
|
|
77
77
|
})]
|
|
78
78
|
}),
|
|
79
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ S("div", {
|
|
80
80
|
className: c,
|
|
81
81
|
children: [F, I]
|
|
82
82
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ x("div", {
|
|
84
84
|
className: h,
|
|
85
85
|
children: D.map((e) => {
|
|
86
86
|
let t = null;
|
|
87
|
-
return e.description != null && (t = /* @__PURE__ */
|
|
87
|
+
return e.description != null && (t = /* @__PURE__ */ x("div", {
|
|
88
88
|
className: u,
|
|
89
89
|
children: e.description
|
|
90
|
-
})), /* @__PURE__ */
|
|
90
|
+
})), /* @__PURE__ */ S("section", {
|
|
91
91
|
className: l,
|
|
92
|
-
children: [/* @__PURE__ */
|
|
92
|
+
children: [/* @__PURE__ */ S("div", {
|
|
93
93
|
className: d,
|
|
94
|
-
children: [/* @__PURE__ */
|
|
94
|
+
children: [/* @__PURE__ */ x("div", {
|
|
95
95
|
className: m,
|
|
96
96
|
children: e.title
|
|
97
97
|
}), t]
|
|
98
|
-
}), /* @__PURE__ */
|
|
98
|
+
}), /* @__PURE__ */ x("div", {
|
|
99
99
|
className: p,
|
|
100
|
-
children: e.items.map((e) => /* @__PURE__ */
|
|
100
|
+
children: e.items.map((e) => /* @__PURE__ */ x("div", {
|
|
101
101
|
className: f,
|
|
102
102
|
children: e.node
|
|
103
103
|
}, e.id))
|
|
@@ -2,8 +2,8 @@ import { cx as e } from "../../../theme/tools.js";
|
|
|
2
2
|
import { Button as t } from "../../../atomic/atoms/button/Button.js";
|
|
3
3
|
import { actions as n, container as r, header as i, pre as a, title as o, truncated as s } from "./backofficeJsonViewer.css.js";
|
|
4
4
|
import "../../../index.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useCallback as c, useMemo as l, useState as u } from "react";
|
|
6
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
7
|
//#region src/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.tsx
|
|
8
8
|
var p = (e) => {
|
|
9
9
|
try {
|
|
@@ -15,7 +15,7 @@ var p = (e) => {
|
|
|
15
15
|
return !1;
|
|
16
16
|
}
|
|
17
17
|
}, m = ({ value: m, title: h = "Raw JSON", className: g, maxHeight: _, truncate: v = !1, truncateLabel: y = "Collapse", expandLabel: b = "Expand", copyLabel: x = "Copy", copiedLabel: S = "Copied" }) => {
|
|
18
|
-
let [C, w] =
|
|
18
|
+
let [C, w] = u(v), [T, E] = u(!1), D = l(() => {
|
|
19
19
|
try {
|
|
20
20
|
return JSON.stringify(m, null, 2);
|
|
21
21
|
} catch (e) {
|
|
@@ -25,7 +25,7 @@ var p = (e) => {
|
|
|
25
25
|
message: t
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
}, [m]), O =
|
|
28
|
+
}, [m]), O = c(async () => {
|
|
29
29
|
let e = !1;
|
|
30
30
|
try {
|
|
31
31
|
typeof navigator < "u" && (await navigator.clipboard.writeText(D), e = !0);
|
|
@@ -35,21 +35,21 @@ var p = (e) => {
|
|
|
35
35
|
e ||= p(D), e && (E(!0), window.setTimeout(() => {
|
|
36
36
|
E(!1);
|
|
37
37
|
}, 1400));
|
|
38
|
-
}, [D]), k =
|
|
38
|
+
}, [D]), k = l(() => {
|
|
39
39
|
if (_ != null) return { maxHeight: _ };
|
|
40
40
|
}, [_]), A = x;
|
|
41
41
|
T && (A = S);
|
|
42
42
|
let j = y;
|
|
43
|
-
return C && (j = b), /* @__PURE__ */
|
|
43
|
+
return C && (j = b), /* @__PURE__ */ f("div", {
|
|
44
44
|
className: e(r, g),
|
|
45
|
-
children: [/* @__PURE__ */
|
|
45
|
+
children: [/* @__PURE__ */ f("div", {
|
|
46
46
|
className: i,
|
|
47
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ d("span", {
|
|
48
48
|
className: o,
|
|
49
49
|
children: h
|
|
50
|
-
}), /* @__PURE__ */
|
|
50
|
+
}), /* @__PURE__ */ f("div", {
|
|
51
51
|
className: n,
|
|
52
|
-
children: [/* @__PURE__ */
|
|
52
|
+
children: [/* @__PURE__ */ d(t, {
|
|
53
53
|
type: "button",
|
|
54
54
|
variant: "secondary",
|
|
55
55
|
size: "small",
|
|
@@ -57,7 +57,7 @@ var p = (e) => {
|
|
|
57
57
|
O().catch(() => {});
|
|
58
58
|
},
|
|
59
59
|
children: A
|
|
60
|
-
}), /* @__PURE__ */
|
|
60
|
+
}), /* @__PURE__ */ d(t, {
|
|
61
61
|
type: "button",
|
|
62
62
|
variant: "secondary",
|
|
63
63
|
size: "small",
|
|
@@ -67,7 +67,7 @@ var p = (e) => {
|
|
|
67
67
|
children: j
|
|
68
68
|
})]
|
|
69
69
|
})]
|
|
70
|
-
}), /* @__PURE__ */
|
|
70
|
+
}), /* @__PURE__ */ d("pre", {
|
|
71
71
|
className: e(a, { [s]: C }),
|
|
72
72
|
style: k,
|
|
73
73
|
children: D
|