@plumile/ui 0.1.68 → 0.1.70
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 +0 -1
- 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/MarkdownParagraph.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownShikiCodeBlock.js +4 -4
- 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/atomic/templates/detail-page/DetailPage.js +49 -0
- package/lib/esm/atomic/templates/detail-page/DetailPage.js.map +1 -0
- package/lib/esm/atomic/templates/detail-page/detailPage.css.js +8 -0
- package/lib/esm/atomic/templates/detail-page/detailPage.css.js.map +1 -0
- package/lib/esm/atomic/templates/page-container/PageContainer.js +36 -0
- package/lib/esm/atomic/templates/page-container/PageContainer.js.map +1 -0
- package/lib/esm/atomic/templates/page-container/pageContainer.css.js +8 -0
- package/lib/esm/atomic/templates/page-container/pageContainer.css.js.map +1 -0
- 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_page_header/BackofficePageHeader.js +27 -21
- package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js +2 -2
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js.map +1 -1
- 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 +109 -106
- 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/atomic/templates/detail-page/DetailPage.d.ts +19 -0
- package/lib/types/atomic/templates/detail-page/DetailPage.d.ts.map +1 -0
- package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts +9 -0
- package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts.map +1 -0
- package/lib/types/atomic/templates/page-container/PageContainer.d.ts +14 -0
- package/lib/types/atomic/templates/page-container/PageContainer.d.ts.map +1 -0
- package/lib/types/atomic/templates/page-container/pageContainer.css.d.ts +7 -0
- package/lib/types/atomic/templates/page-container/pageContainer.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts +2 -1
- package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts +2 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts.map +1 -1
- 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 +11 -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
|
@@ -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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./LazyBackofficeJsonViewer.css.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Suspense as e, lazy as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.tsx
|
|
5
|
-
var r =
|
|
5
|
+
var r = t(async () => ({ default: (await import("./BackofficeJsonViewer.js")).BackofficeJsonViewer })), i = (e) => {
|
|
6
6
|
try {
|
|
7
7
|
return JSON.stringify(e, null, 2);
|
|
8
8
|
} catch (e) {
|
|
@@ -12,15 +12,15 @@ var r = n(async () => ({ default: (await import("./BackofficeJsonViewer.js")).Ba
|
|
|
12
12
|
message: t
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
}, a = ({ value:
|
|
16
|
-
className:
|
|
17
|
-
children: i(
|
|
18
|
-
}), o = (
|
|
19
|
-
fallback: /* @__PURE__ */
|
|
20
|
-
value:
|
|
21
|
-
className:
|
|
15
|
+
}, a = ({ value: e, className: t }) => /* @__PURE__ */ n("pre", {
|
|
16
|
+
className: t ?? "_13lprza0",
|
|
17
|
+
children: i(e)
|
|
18
|
+
}), o = (t) => /* @__PURE__ */ n(e, {
|
|
19
|
+
fallback: /* @__PURE__ */ n(a, {
|
|
20
|
+
value: t.value,
|
|
21
|
+
className: t.className
|
|
22
22
|
}),
|
|
23
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ n(r, { ...t })
|
|
24
24
|
});
|
|
25
25
|
//#endregion
|
|
26
26
|
export { o as LazyBackofficeJsonViewer, o as default };
|
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
-
import { container as t,
|
|
2
|
+
import { container as t, headerRow as n, left as r, title as i, titleRow as a } from "./backofficePageHeader.css.js";
|
|
3
3
|
import "../../../index.js";
|
|
4
|
-
import { jsx as
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
5
|
//#region src/backoffice/molecules/backoffice_page_header/BackofficePageHeader.tsx
|
|
6
|
-
var
|
|
7
|
-
className: e(t,
|
|
8
|
-
children: [/* @__PURE__ */
|
|
9
|
-
className:
|
|
10
|
-
children: [/* @__PURE__ */
|
|
11
|
-
className:
|
|
12
|
-
children: [/* @__PURE__ */
|
|
13
|
-
className:
|
|
14
|
-
children:
|
|
15
|
-
}),
|
|
16
|
-
className:
|
|
17
|
-
children:
|
|
6
|
+
var c = ({ title: c, subtitle: l, actions: u, meta: d, leftActions: f, className: p }) => /* @__PURE__ */ s("div", {
|
|
7
|
+
className: e(t, p),
|
|
8
|
+
children: [/* @__PURE__ */ s("div", {
|
|
9
|
+
className: r,
|
|
10
|
+
children: [/* @__PURE__ */ s("div", {
|
|
11
|
+
className: n,
|
|
12
|
+
children: [f != null && /* @__PURE__ */ o("div", {
|
|
13
|
+
className: "_1puq2a83",
|
|
14
|
+
children: f
|
|
15
|
+
}), /* @__PURE__ */ s("div", {
|
|
16
|
+
className: a,
|
|
17
|
+
children: [/* @__PURE__ */ o("h1", {
|
|
18
|
+
className: i,
|
|
19
|
+
children: c
|
|
20
|
+
}), d != null && /* @__PURE__ */ o("div", {
|
|
21
|
+
className: "_1puq2a87",
|
|
22
|
+
children: d
|
|
23
|
+
})]
|
|
18
24
|
})]
|
|
19
|
-
}),
|
|
20
|
-
className: "
|
|
21
|
-
children:
|
|
25
|
+
}), l != null && (typeof l != "string" || l.trim() !== "") && /* @__PURE__ */ o("p", {
|
|
26
|
+
className: "_1puq2a86",
|
|
27
|
+
children: l
|
|
22
28
|
})]
|
|
23
|
-
}),
|
|
24
|
-
className: "
|
|
25
|
-
children:
|
|
29
|
+
}), u != null && /* @__PURE__ */ o("div", {
|
|
30
|
+
className: "_1puq2a88",
|
|
31
|
+
children: u
|
|
26
32
|
})]
|
|
27
33
|
});
|
|
28
34
|
//#endregion
|
|
29
|
-
export {
|
|
35
|
+
export { c as BackofficePageHeader, c as default };
|
|
30
36
|
|
|
31
37
|
//# sourceMappingURL=BackofficePageHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackofficePageHeader.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/BackofficePageHeader.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '@plumile/ui';\n\nimport * as styles from './backofficePageHeader.css.js';\n\nexport type BackofficePageHeaderProps = {\n title: string;\n subtitle?: ReactNode;\n actions?: ReactNode;\n meta?: ReactNode;\n className?: string;\n};\n\nexport const BackofficePageHeader = ({\n title,\n subtitle,\n actions,\n meta,\n className,\n}: BackofficePageHeaderProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <div className={styles.left}>\n <div className={styles.
|
|
1
|
+
{"version":3,"file":"BackofficePageHeader.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/BackofficePageHeader.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '@plumile/ui';\n\nimport * as styles from './backofficePageHeader.css.js';\n\nexport type BackofficePageHeaderProps = {\n title: string;\n subtitle?: ReactNode;\n actions?: ReactNode;\n meta?: ReactNode;\n leftActions?: ReactNode;\n className?: string;\n};\n\nexport const BackofficePageHeader = ({\n title,\n subtitle,\n actions,\n meta,\n leftActions,\n className,\n}: BackofficePageHeaderProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <div className={styles.left}>\n <div className={styles.headerRow}>\n {leftActions != null && (\n <div className={styles.leftActions}>{leftActions}</div>\n )}\n <div className={styles.titleRow}>\n <h1 className={styles.title}>{title}</h1>\n {meta != null && <div className={styles.metaRow}>{meta}</div>}\n </div>\n </div>\n {subtitle != null &&\n (typeof subtitle !== 'string' || subtitle.trim() !== '') && (\n <p className={styles.subtitle}>{subtitle}</p>\n )}\n </div>\n {actions != null && <div className={styles.actions}>{actions}</div>}\n </div>\n );\n};\n\nexport default BackofficePageHeader;\n"],"mappings":";;;;;AAeA,IAAa,KAAwB,EACnC,OAAA,GACA,UAAA,GACA,SAAA,GACA,SACA,aAAA,GACA,mBAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,GAAkB,EAAU;WAA/C,CACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACE,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACG,KAAe,QACd,kBAAC,OAAD;IAAK,WAAW;cAAqB;IAAkB,CAAA,EAEzD,kBAAC,OAAD;IAAK,WAAW;cAAhB,CACE,kBAAC,MAAD;KAAI,WAAW;eAAe;KAAW,CAAA,EACxC,KAAQ,QAAQ,kBAAC,OAAD;KAAK,WAAW;eAAiB;KAAW,CAAA,CACzD;MACF;MACL,KAAY,SACV,OAAO,KAAa,YAAY,EAAS,MAAM,KAAK,OACnD,kBAAC,KAAD;GAAG,WAAW;aAAkB;GAAa,CAAA,CAE7C;KACL,KAAW,QAAQ,kBAAC,OAAD;EAAK,WAAW;YAAiB;EAAc,CAAA,CAC/D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
//#region src/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.ts
|
|
3
|
-
var e = "_1puq2a80", t = "_1puq2a81", n = "_1puq2a82", r = "_1puq2a83", i = "_1puq2a84", a = "_1puq2a85", o = "_1puq2a86";
|
|
3
|
+
var e = "_1puq2a80", t = "_1puq2a81", n = "_1puq2a82", r = "_1puq2a83", i = "_1puq2a84", a = "_1puq2a85", o = "_1puq2a86", s = "_1puq2a87", c = "_1puq2a88";
|
|
4
4
|
//#endregion
|
|
5
|
-
export {
|
|
5
|
+
export { c as actions, e as container, n as headerRow, t as left, r as leftActions, s as metaRow, o as subtitle, a as title, i as titleRow };
|
|
6
6
|
|
|
7
7
|
//# sourceMappingURL=backofficePageHeader.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backofficePageHeader.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const container = style({\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n gap: vars.spacing[4],\n flexWrap: 'wrap',\n});\n\nexport const left = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[2],\n minWidth: 0,\n flex: 1,\n});\n\nexport const titleRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const title = style({\n fontSize: vars.fontSize['2xl'],\n lineHeight: vars.lineHeight['2xl'],\n fontWeight: vars.fontWeight.semibold,\n color: vars.colors.text,\n margin: 0,\n});\n\nexport const subtitle = style({\n margin: 0,\n fontSize: vars.fontSize.base,\n lineHeight: vars.lineHeight.base,\n color: vars.colors.textSecondary,\n});\n\nexport const metaRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const actions = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"backofficePageHeader.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const container = style({\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n gap: vars.spacing[4],\n flexWrap: 'wrap',\n});\n\nexport const left = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[2],\n minWidth: 0,\n flex: 1,\n});\n\nexport const headerRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[3],\n flexWrap: 'wrap',\n minWidth: 0,\n});\n\nexport const leftActions = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n flexShrink: 0,\n});\n\nexport const titleRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n minWidth: 0,\n});\n\nexport const title = style({\n fontSize: vars.fontSize['2xl'],\n lineHeight: vars.lineHeight['2xl'],\n fontWeight: vars.fontWeight.semibold,\n color: vars.colors.text,\n margin: 0,\n});\n\nexport const subtitle = style({\n margin: 0,\n fontSize: vars.fontSize.base,\n lineHeight: vars.lineHeight.base,\n color: vars.colors.textSecondary,\n});\n\nexport const metaRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const actions = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n"],"mappings":""}
|
|
@@ -3,13 +3,13 @@ import { Button as t } from "../../../atomic/atoms/button/Button.js";
|
|
|
3
3
|
import { container as n, triggerIcon as r, triggerIconOpen as i } from "./backofficeRelationsMenu.css.js";
|
|
4
4
|
import { ChevronDownIcon as a } from "../../../svg/ChevronDownIcon.js";
|
|
5
5
|
import "../../../index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useEffect as o, useRef as s, useState as c } from "react";
|
|
7
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
import { Link as d } from "@plumile/router";
|
|
9
9
|
//#region src/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.tsx
|
|
10
10
|
var f = ({ label: f = "Relations", items: p }) => {
|
|
11
|
-
let [m, h] =
|
|
12
|
-
return
|
|
11
|
+
let [m, h] = c(!1), g = s(null);
|
|
12
|
+
return o(() => {
|
|
13
13
|
if (!m) return;
|
|
14
14
|
let e = (e) => {
|
|
15
15
|
e.target instanceof Node && (g.current?.contains(e.target) || h(!1));
|
|
@@ -17,16 +17,16 @@ var f = ({ label: f = "Relations", items: p }) => {
|
|
|
17
17
|
return document.addEventListener("pointerdown", e), () => {
|
|
18
18
|
document.removeEventListener("pointerdown", e);
|
|
19
19
|
};
|
|
20
|
-
}, [m]), p.length === 0 ? /* @__PURE__ */
|
|
20
|
+
}, [m]), p.length === 0 ? /* @__PURE__ */ l(t, {
|
|
21
21
|
type: "button",
|
|
22
22
|
variant: "secondary",
|
|
23
23
|
size: "small",
|
|
24
24
|
disabled: !0,
|
|
25
25
|
children: f
|
|
26
|
-
}) : /* @__PURE__ */
|
|
26
|
+
}) : /* @__PURE__ */ u("div", {
|
|
27
27
|
className: n,
|
|
28
28
|
ref: g,
|
|
29
|
-
children: [/* @__PURE__ */
|
|
29
|
+
children: [/* @__PURE__ */ u(t, {
|
|
30
30
|
type: "button",
|
|
31
31
|
variant: "secondary",
|
|
32
32
|
size: "small",
|
|
@@ -35,25 +35,25 @@ var f = ({ label: f = "Relations", items: p }) => {
|
|
|
35
35
|
},
|
|
36
36
|
"aria-expanded": m,
|
|
37
37
|
"aria-haspopup": "menu",
|
|
38
|
-
children: [f, /* @__PURE__ */
|
|
38
|
+
children: [f, /* @__PURE__ */ l(a, {
|
|
39
39
|
size: 14,
|
|
40
40
|
className: e(r, { [i]: m })
|
|
41
41
|
})]
|
|
42
|
-
}), m && /* @__PURE__ */
|
|
42
|
+
}), m && /* @__PURE__ */ l("div", {
|
|
43
43
|
className: "_16f61fj3",
|
|
44
44
|
role: "menu",
|
|
45
45
|
children: p.map((e) => {
|
|
46
46
|
let t = null;
|
|
47
|
-
return typeof e.count == "number" && (t = e.count), /* @__PURE__ */
|
|
47
|
+
return typeof e.count == "number" && (t = e.count), /* @__PURE__ */ u(d, {
|
|
48
48
|
to: e.href,
|
|
49
49
|
className: "_16f61fj4",
|
|
50
50
|
onClick: (t) => {
|
|
51
51
|
h(!1), (e.onClick?.(t))?.catch(() => {});
|
|
52
52
|
},
|
|
53
|
-
children: [/* @__PURE__ */
|
|
53
|
+
children: [/* @__PURE__ */ l("span", {
|
|
54
54
|
className: "_16f61fj5",
|
|
55
55
|
children: e.label
|
|
56
|
-
}), t != null && /* @__PURE__ */
|
|
56
|
+
}), t != null && /* @__PURE__ */ l("span", {
|
|
57
57
|
className: "_16f61fj6",
|
|
58
58
|
children: t
|
|
59
59
|
})]
|
|
@@ -2,13 +2,13 @@ import { Button as e } from "../../../atomic/atoms/button/Button.js";
|
|
|
2
2
|
import { ErrorMessage as t } from "../../../atomic/atoms/error_message/ErrorMessage.js";
|
|
3
3
|
import { Modal as n } from "../../../atomic/atoms/modal/Modal.js";
|
|
4
4
|
import { body as r, footer as i } from "./confirmDialog.css.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useCallback as a, useState as o } from "react";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
//#region src/backoffice/molecules/confirm_dialog/ConfirmDialog.tsx
|
|
8
8
|
var l = ({ isOpen: l, title: u, children: d, confirmLabel: f = "Confirm", cancelLabel: p = "Cancel", confirmTone: m = "default", onClose: h, onConfirm: g, closeOnConfirm: _ = !0 }) => {
|
|
9
|
-
let [v, y] =
|
|
9
|
+
let [v, y] = o(!1), [b, x] = o(null), S = a(() => {
|
|
10
10
|
v || (x(null), h());
|
|
11
|
-
}, [v, h]), C =
|
|
11
|
+
}, [v, h]), C = a(async () => {
|
|
12
12
|
if (!v) {
|
|
13
13
|
x(null), y(!0);
|
|
14
14
|
try {
|
|
@@ -27,15 +27,15 @@ var l = ({ isOpen: l, title: u, children: d, confirmLabel: f = "Confirm", cancel
|
|
|
27
27
|
g
|
|
28
28
|
]), w = "primary";
|
|
29
29
|
m === "danger" && (w = "danger");
|
|
30
|
-
let T = /* @__PURE__ */
|
|
30
|
+
let T = /* @__PURE__ */ c("div", {
|
|
31
31
|
className: i,
|
|
32
|
-
children: [/* @__PURE__ */
|
|
32
|
+
children: [/* @__PURE__ */ s(e, {
|
|
33
33
|
type: "button",
|
|
34
34
|
variant: "secondary",
|
|
35
35
|
onClick: S,
|
|
36
36
|
disabled: v,
|
|
37
37
|
children: p
|
|
38
|
-
}), /* @__PURE__ */
|
|
38
|
+
}), /* @__PURE__ */ s(e, {
|
|
39
39
|
type: "button",
|
|
40
40
|
variant: w,
|
|
41
41
|
onClick: () => {
|
|
@@ -45,12 +45,12 @@ var l = ({ isOpen: l, title: u, children: d, confirmLabel: f = "Confirm", cancel
|
|
|
45
45
|
children: f
|
|
46
46
|
})]
|
|
47
47
|
}), E = null;
|
|
48
|
-
return b != null && (E = /* @__PURE__ */
|
|
48
|
+
return b != null && (E = /* @__PURE__ */ s(t, { children: b })), /* @__PURE__ */ s(n, {
|
|
49
49
|
isOpen: l,
|
|
50
50
|
onClose: S,
|
|
51
51
|
title: u,
|
|
52
52
|
footer: T,
|
|
53
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ c("div", {
|
|
54
54
|
className: r,
|
|
55
55
|
children: [E, d]
|
|
56
56
|
})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Input as e } from "../../../atomic/atoms/input/Input.js";
|
|
2
2
|
import { ModalCloseSvg as t } from "../../../icons/ModalCloseSvg.js";
|
|
3
3
|
import { SidebarSearchSvg as n } from "../../../icons/SidebarSearchSvg.js";
|
|
4
|
-
import {
|
|
5
|
-
import { clearButton as i, container as a } from "./globalSearchInput.css.js";
|
|
4
|
+
import { clearButton as r, container as i } from "./globalSearchInput.css.js";
|
|
6
5
|
import "../../../index.js";
|
|
6
|
+
import { ShortcutHint as a } from "../../atoms/shortcut_hint/ShortcutHint.js";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
//#region src/backoffice/molecules/global_search_input/GlobalSearchInput.tsx
|
|
9
9
|
var c = ({ value: c, onChange: l, placeholder: u = "Search…", ariaLabel: d, className: f, shortcut: p, rightSlot: m, clearLabel: h = "Clear search" }) => {
|
|
@@ -14,7 +14,7 @@ var c = ({ value: c, onChange: l, placeholder: u = "Search…", ariaLabel: d, cl
|
|
|
14
14
|
onClick: () => {
|
|
15
15
|
l("");
|
|
16
16
|
},
|
|
17
|
-
className:
|
|
17
|
+
className: r,
|
|
18
18
|
children: /* @__PURE__ */ o(t, {
|
|
19
19
|
width: 16,
|
|
20
20
|
height: 16,
|
|
@@ -22,9 +22,9 @@ var c = ({ value: c, onChange: l, placeholder: u = "Search…", ariaLabel: d, cl
|
|
|
22
22
|
})
|
|
23
23
|
}));
|
|
24
24
|
let y = null;
|
|
25
|
-
p != null && (y = /* @__PURE__ */ o(
|
|
25
|
+
p != null && (y = /* @__PURE__ */ o(a, { keys: p }));
|
|
26
26
|
let b = /* @__PURE__ */ s("span", {
|
|
27
|
-
className:
|
|
27
|
+
className: i,
|
|
28
28
|
children: [
|
|
29
29
|
v,
|
|
30
30
|
y,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ChevronLeftSvg as e } from "../../../icons/ChevronLeftSvg.js";
|
|
2
|
+
import { ChevronRightSvg as t } from "../../../icons/ChevronRightSvg.js";
|
|
3
|
+
import { cx as n } from "../../../theme/tools.js";
|
|
4
|
+
import "../../../index.js";
|
|
4
5
|
import { ShortcutHint as r } from "../../atoms/shortcut_hint/ShortcutHint.js";
|
|
5
6
|
import { button as i, icon as a, label as o } from "./sidebarCollapseToggle.css.js";
|
|
6
|
-
import "../../../index.js";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
//#region src/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.tsx
|
|
9
9
|
var l = ({ isCollapsed: l, onToggle: u, label: d = "Collapse", shortcut: f, className: p }) => {
|
|
10
|
-
let m =
|
|
11
|
-
l && (m =
|
|
10
|
+
let m = e, h = d;
|
|
11
|
+
l && (m = t, h = "Expand");
|
|
12
12
|
let g = null;
|
|
13
13
|
return f != null && (g = /* @__PURE__ */ s(r, { keys: f })), /* @__PURE__ */ c("button", {
|
|
14
14
|
type: "button",
|
|
15
|
-
className:
|
|
15
|
+
className: n(i, p),
|
|
16
16
|
onClick: u,
|
|
17
17
|
"aria-pressed": l,
|
|
18
18
|
children: [
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
-
import { actionSlot as t, actions as ee, actionsVisible as te, badge as
|
|
2
|
+
import { actionSlot as t, actions as ee, actionsVisible as te, badge as n, badgeCollapsed as r, dragHandle as i, icon as a, item as o, itemActive as s, itemCollapsed as c, itemDisabled as l, label as u, labelCollapsed as ne, link as d } from "./sidebarNavItem.css.js";
|
|
3
3
|
import "../../../index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useCallback as re, useEffect as ie, useRef as f, useState as p } from "react";
|
|
5
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
6
6
|
import { Link as _ } from "@plumile/router";
|
|
7
7
|
//#region src/backoffice/molecules/sidebar_nav_item/SidebarNavItem.tsx
|
|
8
8
|
var v = _, y = ({ label: _, href: y, icon: b, badge: x, isActive: S = !1, disabled: C = !1, onClick: ae, onDragStart: oe, onDragOver: se, onDrop: ce, onDragEnd: le, collapsed: w = !1, ariaLabel: ue, className: T, actionSlot: E, dragHandleSlot: D, dragHandleLabel: O, draggable: k = !1 }) => {
|
|
9
|
-
let A =
|
|
10
|
-
w && I.push(
|
|
9
|
+
let A = f(null), j = f(null), [M, N] = p(!1), [P, F] = p(!1), I = [o];
|
|
10
|
+
w && I.push(c), S && I.push(s), C && I.push(l), T != null && I.push(T);
|
|
11
11
|
let L = e(...I), R = ue;
|
|
12
12
|
R == null && typeof _ == "string" && (R = _);
|
|
13
13
|
let z, B;
|
|
@@ -15,33 +15,33 @@ var v = _, y = ({ label: _, href: y, icon: b, badge: x, isActive: S = !1, disabl
|
|
|
15
15
|
let V;
|
|
16
16
|
S && (V = "page");
|
|
17
17
|
let H = null;
|
|
18
|
-
b != null && (H = /* @__PURE__ */
|
|
19
|
-
className:
|
|
18
|
+
b != null && (H = /* @__PURE__ */ h("span", {
|
|
19
|
+
className: a,
|
|
20
20
|
children: b
|
|
21
21
|
}));
|
|
22
22
|
let U = null;
|
|
23
|
-
w && (U =
|
|
24
|
-
let de = e(
|
|
23
|
+
w && (U = ne);
|
|
24
|
+
let de = e(u, U), W = null;
|
|
25
25
|
if (x != null) {
|
|
26
26
|
let t = null;
|
|
27
|
-
w && (t =
|
|
28
|
-
className: e(
|
|
27
|
+
w && (t = r), W = /* @__PURE__ */ h("span", {
|
|
28
|
+
className: e(n, t),
|
|
29
29
|
children: x
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
let G = /* @__PURE__ */
|
|
32
|
+
let G = /* @__PURE__ */ g(m, { children: [
|
|
33
33
|
H,
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ h("span", {
|
|
35
35
|
className: de,
|
|
36
36
|
children: _
|
|
37
37
|
}),
|
|
38
38
|
W
|
|
39
39
|
] }), K = () => {
|
|
40
40
|
ae?.();
|
|
41
|
-
}, q = !w && !C && (E != null || D != null), J =
|
|
41
|
+
}, q = !w && !C && (E != null || D != null), J = re(() => {
|
|
42
42
|
j.current != null && (clearTimeout(j.current), j.current = null);
|
|
43
43
|
}, []);
|
|
44
|
-
|
|
44
|
+
ie(() => (q || (N(!1), F(!1), J()), () => {
|
|
45
45
|
J();
|
|
46
46
|
}), [J, q]);
|
|
47
47
|
let fe = () => {
|
|
@@ -60,23 +60,23 @@ var v = _, y = ({ label: _, href: y, icon: b, badge: x, isActive: S = !1, disabl
|
|
|
60
60
|
let t = e.relatedTarget;
|
|
61
61
|
t != null && A.current?.contains(t) || F(!1);
|
|
62
62
|
}, Y;
|
|
63
|
-
Y = C ? /* @__PURE__ */
|
|
64
|
-
className:
|
|
63
|
+
Y = C ? /* @__PURE__ */ h("span", {
|
|
64
|
+
className: d,
|
|
65
65
|
"aria-disabled": "true",
|
|
66
66
|
"aria-label": z,
|
|
67
67
|
title: B,
|
|
68
68
|
children: G
|
|
69
|
-
}) : y == null ? /* @__PURE__ */
|
|
69
|
+
}) : y == null ? /* @__PURE__ */ h("button", {
|
|
70
70
|
type: "button",
|
|
71
|
-
className:
|
|
71
|
+
className: d,
|
|
72
72
|
onClick: K,
|
|
73
73
|
"aria-current": V,
|
|
74
74
|
"aria-label": z,
|
|
75
75
|
title: B,
|
|
76
76
|
children: G
|
|
77
|
-
}) : /* @__PURE__ */
|
|
77
|
+
}) : /* @__PURE__ */ h(v, {
|
|
78
78
|
to: y,
|
|
79
|
-
className:
|
|
79
|
+
className: d,
|
|
80
80
|
"aria-current": V,
|
|
81
81
|
"aria-label": z,
|
|
82
82
|
title: B,
|
|
@@ -86,9 +86,9 @@ var v = _, y = ({ label: _, href: y, icon: b, badge: x, isActive: S = !1, disabl
|
|
|
86
86
|
let ge = q && (M || P), X;
|
|
87
87
|
ge && (X = te);
|
|
88
88
|
let _e = e(ee, X), Z = null;
|
|
89
|
-
D != null && !w && (Z = /* @__PURE__ */
|
|
89
|
+
D != null && !w && (Z = /* @__PURE__ */ h("button", {
|
|
90
90
|
type: "button",
|
|
91
|
-
className:
|
|
91
|
+
className: i,
|
|
92
92
|
draggable: k,
|
|
93
93
|
onDragStart: oe,
|
|
94
94
|
onDragEnd: le,
|
|
@@ -97,15 +97,15 @@ var v = _, y = ({ label: _, href: y, icon: b, badge: x, isActive: S = !1, disabl
|
|
|
97
97
|
children: D
|
|
98
98
|
}));
|
|
99
99
|
let Q = null;
|
|
100
|
-
E != null && !w && (Q = /* @__PURE__ */
|
|
100
|
+
E != null && !w && (Q = /* @__PURE__ */ h("span", {
|
|
101
101
|
className: t,
|
|
102
102
|
children: E
|
|
103
103
|
}));
|
|
104
104
|
let $ = null;
|
|
105
|
-
return q && ($ = /* @__PURE__ */
|
|
105
|
+
return q && ($ = /* @__PURE__ */ g("span", {
|
|
106
106
|
className: _e,
|
|
107
107
|
children: [Z, Q]
|
|
108
|
-
})), /* @__PURE__ */
|
|
108
|
+
})), /* @__PURE__ */ g("div", {
|
|
109
109
|
className: L,
|
|
110
110
|
onDragOver: se,
|
|
111
111
|
onDrop: ce,
|