@m4l/components 9.86.0 → 9.87.1
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/components/SideBar/SideBar.d.ts +2 -7
- package/components/SideBar/SideBar.d.ts.map +1 -1
- package/components/SideBar/SideBar.js +54 -48
- package/components/SideBar/constants.d.ts +21 -0
- package/components/SideBar/constants.d.ts.map +1 -1
- package/components/SideBar/constants.js +34 -14
- package/components/SideBar/dictionaryDefaults.d.ts +4 -0
- package/components/SideBar/dictionaryDefaults.d.ts.map +1 -0
- package/components/SideBar/dictionaryDefaults.js +35 -0
- package/components/SideBar/helpers/getMenuDataWithState/index.js +4 -4
- package/components/SideBar/helpers/resolveSidebarWidth.d.ts +3 -0
- package/components/SideBar/helpers/resolveSidebarWidth.d.ts.map +1 -0
- package/components/SideBar/helpers/resolveSidebarWidth.js +7 -0
- package/components/SideBar/hooks/useSideBarPreferences.d.ts +4 -0
- package/components/SideBar/hooks/useSideBarPreferences.d.ts.map +1 -0
- package/components/SideBar/hooks/useSideBarPreferences.js +71 -0
- package/components/SideBar/index.d.ts +4 -1
- package/components/SideBar/index.d.ts.map +1 -1
- package/components/SideBar/slots/SideBarSlots.js +1 -1
- package/components/SideBar/subcomponents/SideBarNavigation/SideBarNavigation.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SideBarNavigation.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SideBarNavigation.js +257 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarBranding.d.ts +6 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarBranding.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarBranding.js +44 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarInstances.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarInstances.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarInstances.js +77 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarItemIcon.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarItemIcon.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarItemIcon.js +40 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarLabelTooltip.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarLabelTooltip.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarLabelTooltip.js +21 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarRow.d.ts +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarRow.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/SidebarRow.js +62 -0
- package/components/SideBar/subcomponents/SideBarNavigation/assets/sidebar-texture.jpg.js +4 -0
- package/components/SideBar/subcomponents/SideBarNavigation/constants.d.ts +32 -0
- package/components/SideBar/subcomponents/SideBarNavigation/constants.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/constants.js +17 -0
- package/components/SideBar/subcomponents/SideBarNavigation/helpers.d.ts +17 -0
- package/components/SideBar/subcomponents/SideBarNavigation/helpers.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/helpers.js +61 -0
- package/components/SideBar/subcomponents/SideBarNavigation/slots/styled.d.ts +75 -0
- package/components/SideBar/subcomponents/SideBarNavigation/slots/styled.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/slots/styled.js +508 -0
- package/components/SideBar/subcomponents/SideBarNavigation/types.d.ts +108 -0
- package/components/SideBar/subcomponents/SideBarNavigation/types.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/useSidebarResize.d.ts +16 -0
- package/components/SideBar/subcomponents/SideBarNavigation/useSidebarResize.d.ts.map +1 -0
- package/components/SideBar/subcomponents/SideBarNavigation/useSidebarResize.js +42 -0
- package/components/SideBar/types.d.ts +70 -60
- package/components/SideBar/types.d.ts.map +1 -1
- package/index.js +200 -194
- package/package.json +9 -9
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { jsx as i, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEnvironment as Ue, useModuleDictionary as qe } from "@m4l/core";
|
|
3
|
+
import { useIsMobile as Je } from "@m4l/graphics";
|
|
4
|
+
import { ActionsSearchOutlined as Qe, ShapeStarOutlined as Xe, ArrowChevronSmUpOutlined as we } from "@m4l/icons";
|
|
5
|
+
import { useContext as Ze, useId as $e, useState as T, useMemo as j, useRef as ke, useEffect as Ve } from "react";
|
|
6
|
+
import { shallow as et } from "zustand/shallow";
|
|
7
|
+
import { AreasContext as tt } from "../../../areas/contexts/AreasContext/index.js";
|
|
8
|
+
import { useAreasStore as rt } from "../../../areas/hooks/useAreas/index.js";
|
|
9
|
+
import { SIDEBAR_DICTIONARY as h, SIDEBAR_WIDTH as pe } from "../../constants.js";
|
|
10
|
+
import { resolveSidebarWidth as it } from "../../helpers/resolveSidebarWidth.js";
|
|
11
|
+
import { EMPTY_SIDEBAR_WINDOWS as ot, EMPTY_SIDEBAR_MENU as nt } from "./constants.js";
|
|
12
|
+
import { sidebarNavigationEntries as at, sidebarLeaves as dt, windowShortcutId as Y, sidebarRoute as st, filterSidebarEntries as ct, instanceTitle as lt, setShortcutPinned as ut } from "./helpers.js";
|
|
13
|
+
import { SidebarBranding as mt, SidebarAttribution as ht } from "./SidebarBranding.js";
|
|
14
|
+
import { SidebarInstances as St } from "./SidebarInstances.js";
|
|
15
|
+
import { sidebarItemIcon as U } from "./SidebarItemIcon.js";
|
|
16
|
+
import { SidebarLabelTooltip as Ie } from "./SidebarLabelTooltip.js";
|
|
17
|
+
import { SidebarRow as ft } from "./SidebarRow.js";
|
|
18
|
+
import { SidebarPanel as wt, SidebarChromeHeader as pt, SidebarScroll as It, SidebarSearch as bt, SidebarGlyph as be, SidebarSearchInput as vt, SidebarBranches as ve, SidebarBranch as ge, SidebarBranchToggle as Ae, SidebarBranchGlyph as Ee, SidebarChevron as Be, SidebarDisclosure as Ce, SidebarDisclosureClip as xe, SidebarChildren as Te, SidebarMenu as gt, SidebarGroup as At, SidebarGroupHeading as Et, SidebarEmpty as Bt, SidebarChromeFooter as Ct, SidebarFooterAction as xt, SidebarDrawer as Tt, SidebarFrame as Rt, SidebarResizeHandle as Lt } from "./slots/styled.js";
|
|
19
|
+
import { useSidebarResize as Dt } from "./useSidebarResize.js";
|
|
20
|
+
function $t(u) {
|
|
21
|
+
return Ze(tt) ? /* @__PURE__ */ i(Wt, { ...u }) : /* @__PURE__ */ i(Re, { ...u });
|
|
22
|
+
}
|
|
23
|
+
function Wt(u) {
|
|
24
|
+
const I = rt((s) => ({
|
|
25
|
+
activeAreaId: s.currentAreaId,
|
|
26
|
+
activeWindowId: s.hashAreas[s.currentAreaId]?.currentLayoutId || void 0,
|
|
27
|
+
windows: s.hashWindows,
|
|
28
|
+
selectArea: s.areasActions.selectArea,
|
|
29
|
+
selectLayout: s.areaActions.selectLayout,
|
|
30
|
+
closeWindow: s.windowActions.close
|
|
31
|
+
}), et);
|
|
32
|
+
return /* @__PURE__ */ i(Re, { ...u, areas: I });
|
|
33
|
+
}
|
|
34
|
+
function Re({
|
|
35
|
+
anchored: u,
|
|
36
|
+
menuData: I = nt,
|
|
37
|
+
moduleSelectedId: s,
|
|
38
|
+
onMenuItemClick: b,
|
|
39
|
+
onToggleVisible: N,
|
|
40
|
+
visible: q,
|
|
41
|
+
companyLogoSmallUrl: J,
|
|
42
|
+
headerComponent: Q,
|
|
43
|
+
footerComponent: X,
|
|
44
|
+
navigation: Le,
|
|
45
|
+
areas: m
|
|
46
|
+
}) {
|
|
47
|
+
const { hostApiRemote: z } = Ue(), { getLabel: c } = qe(), {
|
|
48
|
+
title: v,
|
|
49
|
+
showHeading: Z = !0,
|
|
50
|
+
rootTitles: $,
|
|
51
|
+
badgeColor: k,
|
|
52
|
+
attributionLogo: De,
|
|
53
|
+
attributionLogoUrl: We,
|
|
54
|
+
footerAction: S,
|
|
55
|
+
preferences: ye
|
|
56
|
+
} = Le, K = De ?? We, { favorites: R, updateFavorites: O, width: Me, onWidthChange: Fe } = ye, L = Je(), D = Dt(it(Me), Fe), g = m?.activeAreaId, V = m?.activeWindowId, W = m?.windows ?? ot, ee = $e(), [te, Ne] = T(""), [ze, Ke] = T(() => /* @__PURE__ */ new Set()), [y, Oe] = T(!0), [f, M] = T(), [A, P] = T(), E = te.trim().toLocaleLowerCase(), B = j(
|
|
57
|
+
() => at(I, v, $),
|
|
58
|
+
[I, v, $]
|
|
59
|
+
), C = j(() => dt(B), [B]), w = j(() => Object.values(W).filter((e) => e.emergeType === "layout" && e.winType === "microfrontend"), [W]), _ = w.filter((e) => e.areaId === g), re = ke(w), ie = new Map(C.map((e) => [e.id, e])), Pe = new Map(B.map((e, t) => [e.id, t])), _e = new Map(w.map((e) => [Y(e.windowId), e])), oe = _.filter((e) => e.moduleId === A?.entry.item.moduleId).sort((e, t) => (e.moduleCount ?? 0) - (t.moduleCount ?? 0));
|
|
60
|
+
Ve(() => {
|
|
61
|
+
const e = re.current.filter((o) => !W[o.windowId]);
|
|
62
|
+
if (re.current = w, !e.length)
|
|
63
|
+
return;
|
|
64
|
+
const t = new Set(e.map((o) => Y(o.windowId))), r = /* @__PURE__ */ new Map();
|
|
65
|
+
for (const o of e) {
|
|
66
|
+
const a = w.filter(
|
|
67
|
+
(n) => n.moduleId === o.moduleId && n.areaId === o.areaId
|
|
68
|
+
);
|
|
69
|
+
if (a.length === 1) {
|
|
70
|
+
const n = C.find((l) => l.item.moduleId === o.moduleId);
|
|
71
|
+
n && r.set(Y(a[0].windowId), n.id);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
O((o) => {
|
|
75
|
+
const a = [...new Set(o.filter((n) => !t.has(n)).map((n) => r.get(n) ?? n))];
|
|
76
|
+
return a.length === o.length && a.every((n, l) => n === o[l]) ? o : a;
|
|
77
|
+
});
|
|
78
|
+
}, [w, C, O, W]);
|
|
79
|
+
const Ge = (e) => {
|
|
80
|
+
Ke((t) => {
|
|
81
|
+
const r = new Set(t);
|
|
82
|
+
return r.has(e) ? r.delete(e) : r.add(e), r;
|
|
83
|
+
});
|
|
84
|
+
}, x = () => {
|
|
85
|
+
P(void 0);
|
|
86
|
+
}, ne = (e) => {
|
|
87
|
+
const t = R.includes(e);
|
|
88
|
+
O((r) => ut(r, e, !t)), t && M((r) => r?.favoriteId === e ? { ...r, favoriteId: void 0 } : r);
|
|
89
|
+
}, ae = (e, t, r) => {
|
|
90
|
+
t.areaId !== g && m?.selectArea(t.areaId), m?.selectLayout(t.areaId, t.windowId), M({ entryId: e.id, areaId: t.areaId, favoriteId: r, windowId: t.windowId }), x(), L && N(!1);
|
|
91
|
+
}, He = (e, t, r, o) => {
|
|
92
|
+
if (o) {
|
|
93
|
+
ae(e, o, r);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
M({ entryId: e.id, areaId: g, favoriteId: r });
|
|
97
|
+
const a = _.filter((n) => n.moduleId === e.item.moduleId);
|
|
98
|
+
if (!t.shiftKey && a.length > 1) {
|
|
99
|
+
P({ entry: e, anchor: t.currentTarget });
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
t.shiftKey ? b(e.item, { shiftKey: !0 }) : b(e.item), x(), L && N(!1);
|
|
103
|
+
}, de = f && f.areaId === g ? ie.get(f.entryId) : void 0, se = de?.item.moduleId === s ? de : void 0, G = se ?? C.find((e) => e.item.moduleId && e.item.moduleId === s), F = se && (!f?.windowId || f.windowId === V) ? f?.favoriteId : void 0, je = new Set(G && !F ? st(B, G.id) : []), ce = ct(B, E), le = R.flatMap((e) => {
|
|
104
|
+
const t = _e.get(e), r = ie.get(e) ?? C.find((o) => t && o.item.moduleId === t.moduleId);
|
|
105
|
+
return !r || E && !r.item.title.toLocaleLowerCase().includes(E) ? [] : [{ id: e, entry: r, instance: t }];
|
|
106
|
+
}), ue = (e, t, r, o) => {
|
|
107
|
+
const a = r ?? e.id, n = r ? F === a : !F && G?.id === e.id, l = !r && e.item.moduleId && _.some(
|
|
108
|
+
(p) => p.moduleId === e.item.moduleId
|
|
109
|
+
);
|
|
110
|
+
return /* @__PURE__ */ i(
|
|
111
|
+
ft,
|
|
112
|
+
{
|
|
113
|
+
title: o ? lt(e.item.title, o.moduleCount ?? 1) : e.item.title,
|
|
114
|
+
icon: U(e.item, z),
|
|
115
|
+
favoriteShortcut: !!r,
|
|
116
|
+
nested: t,
|
|
117
|
+
selected: n,
|
|
118
|
+
pinned: R.includes(a),
|
|
119
|
+
getLabel: c,
|
|
120
|
+
onSelect: (p) => He(e, p, r, o),
|
|
121
|
+
onPin: () => ne(a),
|
|
122
|
+
onAdd: l ? (p) => {
|
|
123
|
+
M({ entryId: e.id, areaId: g }), b(e.item, { shiftKey: !0 });
|
|
124
|
+
const Ye = p.currentTarget.closest("[data-sidebar-row]") ?? p.currentTarget;
|
|
125
|
+
P({ entry: e, anchor: Ye });
|
|
126
|
+
} : void 0
|
|
127
|
+
},
|
|
128
|
+
a
|
|
129
|
+
);
|
|
130
|
+
}, me = (e, t, r) => {
|
|
131
|
+
if (!e.children)
|
|
132
|
+
return ue(e, t);
|
|
133
|
+
const o = !!E || !ze.has(e.id), n = { current: je.has(e.id), nested: t };
|
|
134
|
+
return /* @__PURE__ */ d(ge, { ownerState: n, children: [
|
|
135
|
+
/* @__PURE__ */ i(Ie, { title: e.item.title, children: (l) => /* @__PURE__ */ d(
|
|
136
|
+
Ae,
|
|
137
|
+
{
|
|
138
|
+
type: "button",
|
|
139
|
+
ownerState: n,
|
|
140
|
+
"aria-expanded": o,
|
|
141
|
+
onClick: () => Ge(e.id),
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ i(Ee, { "aria-hidden": "true", ownerState: n, children: U(e.item, z, t ? void 0 : r) }),
|
|
144
|
+
l,
|
|
145
|
+
/* @__PURE__ */ i(Be, { "aria-hidden": "true", ownerState: { expanded: o }, children: /* @__PURE__ */ i(we, {}) })
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
) }),
|
|
149
|
+
/* @__PURE__ */ i(Ce, { ownerState: { expanded: o }, inert: !o, children: /* @__PURE__ */ i(xe, { children: /* @__PURE__ */ i(Te, { ownerState: { nested: t, withGuide: !0 }, role: "group", "aria-label": e.item.title, children: e.children.map((l) => me(l, !0, r)) }) }) })
|
|
150
|
+
] }, e.id);
|
|
151
|
+
}, he = c(h.favorites), H = { current: !!F, nested: !1 }, Se = L ? q : u, fe = /* @__PURE__ */ d(wt, { "data-sidebar-panel": !0, "data-testid": "platform-sidebar", inert: !Se, children: [
|
|
152
|
+
(Q || J || k) && /* @__PURE__ */ i(pt, { children: Q ?? /* @__PURE__ */ i(mt, { logo: J, title: v, badgeColor: k }) }),
|
|
153
|
+
/* @__PURE__ */ d(It, { ownerState: { showHeading: Z }, onScroll: x, children: [
|
|
154
|
+
/* @__PURE__ */ d(bt, { children: [
|
|
155
|
+
/* @__PURE__ */ i(be, { "aria-hidden": "true", children: /* @__PURE__ */ i(Qe, {}) }),
|
|
156
|
+
/* @__PURE__ */ i(
|
|
157
|
+
vt,
|
|
158
|
+
{
|
|
159
|
+
type: "search",
|
|
160
|
+
"aria-label": c(h.search),
|
|
161
|
+
placeholder: c(h.search),
|
|
162
|
+
value: te,
|
|
163
|
+
onChange: (e) => {
|
|
164
|
+
Ne(e.currentTarget.value), x();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
] }),
|
|
169
|
+
/* @__PURE__ */ d(ve, { children: [
|
|
170
|
+
le.length > 0 && /* @__PURE__ */ d(ge, { role: "group", "aria-label": he, ownerState: H, children: [
|
|
171
|
+
/* @__PURE__ */ i(Ie, { title: he, children: (e) => /* @__PURE__ */ d(
|
|
172
|
+
Ae,
|
|
173
|
+
{
|
|
174
|
+
type: "button",
|
|
175
|
+
ownerState: H,
|
|
176
|
+
"aria-expanded": y,
|
|
177
|
+
"aria-controls": ee,
|
|
178
|
+
onClick: () => Oe((t) => !t),
|
|
179
|
+
children: [
|
|
180
|
+
/* @__PURE__ */ i(Ee, { "aria-hidden": "true", ownerState: H, children: /* @__PURE__ */ i(Xe, {}) }),
|
|
181
|
+
e,
|
|
182
|
+
/* @__PURE__ */ i(Be, { "aria-hidden": "true", ownerState: { expanded: y }, children: /* @__PURE__ */ i(we, {}) })
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
) }),
|
|
186
|
+
/* @__PURE__ */ i(
|
|
187
|
+
Ce,
|
|
188
|
+
{
|
|
189
|
+
id: ee,
|
|
190
|
+
ownerState: { expanded: y },
|
|
191
|
+
inert: !y,
|
|
192
|
+
children: /* @__PURE__ */ i(xe, { children: /* @__PURE__ */ i(Te, { ownerState: { nested: !1 }, role: "list", children: le.map(({ id: e, entry: t, instance: r }) => ue(t, !1, e, r)) }) })
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
] }),
|
|
196
|
+
/* @__PURE__ */ i(gt, { role: "menu", "aria-label": c(h.navigation), children: /* @__PURE__ */ d(At, { role: "group", "aria-label": v, children: [
|
|
197
|
+
Z && /* @__PURE__ */ i(Et, { children: v }),
|
|
198
|
+
/* @__PURE__ */ d(ve, { children: [
|
|
199
|
+
ce.map((e) => me(e, !1, Pe.get(e.id))),
|
|
200
|
+
E && !ce.length && /* @__PURE__ */ i(Bt, { role: "status", children: c(h.noResults) })
|
|
201
|
+
] })
|
|
202
|
+
] }) })
|
|
203
|
+
] })
|
|
204
|
+
] }),
|
|
205
|
+
(S || X || K) && /* @__PURE__ */ d(Ct, { children: [
|
|
206
|
+
S && /* @__PURE__ */ d(
|
|
207
|
+
xt,
|
|
208
|
+
{
|
|
209
|
+
type: "button",
|
|
210
|
+
onClick: (e) => {
|
|
211
|
+
e.shiftKey ? b(S.item, { shiftKey: !0 }) : b(S.item);
|
|
212
|
+
},
|
|
213
|
+
children: [
|
|
214
|
+
/* @__PURE__ */ i(be, { "aria-hidden": "true", children: S.icon }),
|
|
215
|
+
S.item.title
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
),
|
|
219
|
+
X,
|
|
220
|
+
K && /* @__PURE__ */ i(ht, { logo: K, label: c(h.attribution) })
|
|
221
|
+
] }),
|
|
222
|
+
m && A && Se && oe.length > 1 && /* @__PURE__ */ i(
|
|
223
|
+
St,
|
|
224
|
+
{
|
|
225
|
+
menu: A,
|
|
226
|
+
instances: oe,
|
|
227
|
+
selectedWindowId: V,
|
|
228
|
+
favorites: R,
|
|
229
|
+
icon: U(A.entry.item, z),
|
|
230
|
+
getLabel: c,
|
|
231
|
+
onSelect: (e) => ae(A.entry, e),
|
|
232
|
+
onToggleFavorite: ne,
|
|
233
|
+
onCloseInstance: m.closeWindow,
|
|
234
|
+
onDismiss: x
|
|
235
|
+
}
|
|
236
|
+
)
|
|
237
|
+
] });
|
|
238
|
+
return L ? /* @__PURE__ */ i(Tt, { open: q, onClose: () => N(!1), children: fe }) : /* @__PURE__ */ d(Rt, { ownerState: { width: D.width, expanded: u, resizing: D.resizing }, children: [
|
|
239
|
+
fe,
|
|
240
|
+
u && /* @__PURE__ */ i(
|
|
241
|
+
Lt,
|
|
242
|
+
{
|
|
243
|
+
type: "button",
|
|
244
|
+
role: "separator",
|
|
245
|
+
"aria-orientation": "vertical",
|
|
246
|
+
"aria-label": c(h.resize),
|
|
247
|
+
"aria-valuemin": pe.min,
|
|
248
|
+
"aria-valuemax": pe.max,
|
|
249
|
+
"aria-valuenow": D.width,
|
|
250
|
+
...D.handle
|
|
251
|
+
}
|
|
252
|
+
)
|
|
253
|
+
] });
|
|
254
|
+
}
|
|
255
|
+
export {
|
|
256
|
+
$t as SideBarNavigation
|
|
257
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SidebarAttributionProps, SidebarBrandingProps } from './types';
|
|
2
|
+
/** Display the tenant logo and its localized environment badge. */
|
|
3
|
+
export declare function SidebarBranding({ logo, title, badgeColor }: SidebarBrandingProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
/** Display the attribution in the compact navigation footer. */
|
|
5
|
+
export declare function SidebarAttribution({ logo, label }: SidebarAttributionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=SidebarBranding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarBranding.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/SidebarBranding.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE7E,mEAAmE;AACnE,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,oBAAoB,oDAkBhF;AAED,gEAAgE;AAChE,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,uBAAuB,oDAoB1E"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsxs as o, jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useHostThemeMode as a } from "@m4l/graphics";
|
|
3
|
+
import { useTheme as n } from "@mui/material/styles";
|
|
4
|
+
import { SIDEBAR_ATTRIBUTION_SIZE as s } from "./constants.js";
|
|
5
|
+
import { SidebarBrandHeader as b, SidebarBrandLogo as m, SidebarBrandBadge as c, SidebarAttributionRoot as l, SidebarAttributionDivider as p, SidebarAttributionLogo as S, SidebarAttributionMark as f } from "./slots/styled.js";
|
|
6
|
+
import { Typography as h } from "../../../extended/mui/Typography/Typography.js";
|
|
7
|
+
function I({ logo: e, title: i, badgeColor: t }) {
|
|
8
|
+
const d = a(n().palette.mode);
|
|
9
|
+
return /* @__PURE__ */ o(b, { children: [
|
|
10
|
+
typeof e == "string" ? /* @__PURE__ */ r(
|
|
11
|
+
m,
|
|
12
|
+
{
|
|
13
|
+
ownerState: { themeMode: d },
|
|
14
|
+
src: e,
|
|
15
|
+
alt: "logo",
|
|
16
|
+
width: "72px",
|
|
17
|
+
height: "32px",
|
|
18
|
+
enableIntersectionObserver: !1
|
|
19
|
+
}
|
|
20
|
+
) : e,
|
|
21
|
+
t && /* @__PURE__ */ r(c, { label: i, variant: "contained", color: t, size: "small" })
|
|
22
|
+
] });
|
|
23
|
+
}
|
|
24
|
+
function T({ logo: e, label: i }) {
|
|
25
|
+
const t = a(n().palette.mode);
|
|
26
|
+
return /* @__PURE__ */ o(l, { children: [
|
|
27
|
+
/* @__PURE__ */ r(h, { variant: "bodyStandard", color: "text.disabled", children: i }),
|
|
28
|
+
/* @__PURE__ */ r(p, { orientation: "vertical", customVariant: "solid" }),
|
|
29
|
+
typeof e == "string" ? /* @__PURE__ */ r(
|
|
30
|
+
S,
|
|
31
|
+
{
|
|
32
|
+
ownerState: { themeMode: t },
|
|
33
|
+
src: e,
|
|
34
|
+
alt: "powerbyLogo",
|
|
35
|
+
...s,
|
|
36
|
+
enableIntersectionObserver: !1
|
|
37
|
+
}
|
|
38
|
+
) : /* @__PURE__ */ r(f, { children: e })
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
T as SidebarAttribution,
|
|
43
|
+
I as SidebarBranding
|
|
44
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SidebarInstancesProps } from './types';
|
|
2
|
+
/** Display and act on the real layout windows for the selected module in this Area. */
|
|
3
|
+
export declare function SidebarInstances({ menu, instances, selectedWindowId, favorites, icon, getLabel, onSelect, onToggleFavorite, onCloseInstance, onDismiss, }: SidebarInstancesProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=SidebarInstances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarInstances.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/SidebarInstances.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,uFAAuF;AACvF,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,SAAS,GACV,EAAE,qBAAqB,oDA4DvB"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { BooleanPinOffSmallOutlined as g, BooleanPinSmallOutlined as B, ActionsTrashOutlined as O } from "@m4l/icons";
|
|
3
|
+
import { SIDEBAR_DICTIONARY as i } from "../../constants.js";
|
|
4
|
+
import { windowShortcutId as k, instanceTitle as x } from "./helpers.js";
|
|
5
|
+
import { SidebarInstancePopover as T, SidebarInstanceRow as j, SidebarPrimaryAction as v, SidebarGlyph as l, SidebarLabel as D, SidebarActions as E, SidebarAction as p } from "./slots/styled.js";
|
|
6
|
+
function Y({
|
|
7
|
+
menu: o,
|
|
8
|
+
instances: m,
|
|
9
|
+
selectedWindowId: b,
|
|
10
|
+
favorites: w,
|
|
11
|
+
icon: S,
|
|
12
|
+
getLabel: r,
|
|
13
|
+
onSelect: I,
|
|
14
|
+
onToggleFavorite: f,
|
|
15
|
+
onCloseInstance: C,
|
|
16
|
+
onDismiss: P
|
|
17
|
+
}) {
|
|
18
|
+
const c = o.anchor.getBoundingClientRect(), y = o.anchor.closest("[data-sidebar-panel]")?.getBoundingClientRect(), A = { top: Math.max(8, c.top - 14), left: (y?.right ?? c.right) - 10 }, s = r(i.closeInstance);
|
|
19
|
+
return /* @__PURE__ */ e(
|
|
20
|
+
T,
|
|
21
|
+
{
|
|
22
|
+
open: !0,
|
|
23
|
+
anchorReference: "anchorPosition",
|
|
24
|
+
anchorPosition: A,
|
|
25
|
+
onClose: P,
|
|
26
|
+
marginThreshold: 8,
|
|
27
|
+
slotProps: { paper: { role: "menu", "aria-label": r(i.instances) } },
|
|
28
|
+
children: m.map((t, R) => {
|
|
29
|
+
const a = b === t.windowId, h = k(t.windowId), n = w.includes(h), u = r(n ? i.unpin : i.pin);
|
|
30
|
+
return /* @__PURE__ */ d(j, { ownerState: { selected: a, nested: !1 }, children: [
|
|
31
|
+
/* @__PURE__ */ d(
|
|
32
|
+
v,
|
|
33
|
+
{
|
|
34
|
+
type: "button",
|
|
35
|
+
role: "menuitemradio",
|
|
36
|
+
"aria-checked": a,
|
|
37
|
+
autoFocus: a,
|
|
38
|
+
onClick: () => I(t),
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ e(l, { "aria-hidden": "true", "data-sidebar-icon": !0, children: S }),
|
|
41
|
+
/* @__PURE__ */ e(D, { children: x(o.entry.item.title, t.moduleCount ?? R + 1) })
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ d(E, { "data-sidebar-actions": !0, children: [
|
|
46
|
+
/* @__PURE__ */ e(
|
|
47
|
+
p,
|
|
48
|
+
{
|
|
49
|
+
type: "button",
|
|
50
|
+
ownerState: { pinned: n },
|
|
51
|
+
"aria-label": u,
|
|
52
|
+
"aria-pressed": n,
|
|
53
|
+
title: u,
|
|
54
|
+
onClick: () => f(h),
|
|
55
|
+
children: /* @__PURE__ */ e(l, { "aria-hidden": "true", children: n ? /* @__PURE__ */ e(g, {}) : /* @__PURE__ */ e(B, {}) })
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
/* @__PURE__ */ e(
|
|
59
|
+
p,
|
|
60
|
+
{
|
|
61
|
+
type: "button",
|
|
62
|
+
ownerState: { destructive: !0 },
|
|
63
|
+
"aria-label": s,
|
|
64
|
+
title: s,
|
|
65
|
+
onClick: () => C(t.windowId),
|
|
66
|
+
children: /* @__PURE__ */ e(l, { "aria-hidden": "true", children: /* @__PURE__ */ e(O, {}) })
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
] })
|
|
70
|
+
] }, t.windowId);
|
|
71
|
+
})
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
Y as SidebarInstances
|
|
77
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MenuDataType } from '../../types';
|
|
2
|
+
/** Render the design-system icon for standard modules and honor backend artwork for other entries. */
|
|
3
|
+
export declare function sidebarItemIcon(item: MenuDataType, hostApiRemote: string, groupIndex?: number): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=SidebarItemIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarItemIcon.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/SidebarItemIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AA2ChD,sGAAsG;AACtG,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,oDAwB7F"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Icon as _ } from "@m4l/base";
|
|
3
|
+
import { FileFolderLogOutlined as p, MarkTagOutlined as m, ShapeNetworkOutlined as v, UserPersonsOutlined as O, NotificationBellCogOutlined as f, ConectivityDispositiveOutlined as l, NotificationBookAlertOutlined as h, UserUsersOutlined as I, ChartAnalyticsOutlined as g, TravelRoute02Outlined as y, TravelGpsHistoryOutlined as F, DevCommandLineOutlined as U, MediaVideoOutlined as k, TravelCarOutlined as C, LayoutGridOutlined as b, ShapeBlocksOutlined as a, FileFolderFilesOutlined as B, FileFolderBriefcaseOutlined as M } from "@m4l/icons";
|
|
4
|
+
import { isValidElement as T } from "react";
|
|
5
|
+
const n = {
|
|
6
|
+
operative_my_gps_devices: C,
|
|
7
|
+
operative_media_manager: k,
|
|
8
|
+
operative_devices_commands_list: U,
|
|
9
|
+
operative_gps_history_list: F,
|
|
10
|
+
operative_movements_and_stops: y,
|
|
11
|
+
shared_reports_list: g,
|
|
12
|
+
shared_users_list: I,
|
|
13
|
+
operative_protocols_list: h,
|
|
14
|
+
operative_devices_list: l,
|
|
15
|
+
admin_devices_list: l,
|
|
16
|
+
operative_alarms_profiles_list: f,
|
|
17
|
+
shared_persons_list: O,
|
|
18
|
+
operative_departments_list: v,
|
|
19
|
+
shared_tags_list: m,
|
|
20
|
+
shared_users_resources_logs_list: p
|
|
21
|
+
}, L = [a, B, M];
|
|
22
|
+
function A(e, d, s) {
|
|
23
|
+
const r = e.moduleId && Object.prototype.hasOwnProperty.call(n, e.moduleId) ? n[e.moduleId] : void 0;
|
|
24
|
+
if (r)
|
|
25
|
+
return /* @__PURE__ */ o(r, {});
|
|
26
|
+
if (T(e.iconUrl))
|
|
27
|
+
return e.iconUrl;
|
|
28
|
+
if (typeof e.iconUrl == "string") {
|
|
29
|
+
const t = e.iconUrl.trim(), i = d.replace(/\/$/u, "");
|
|
30
|
+
if (i && (t.startsWith("/main/na/icons/") || t.startsWith(i + "/main/na/icons/"))) {
|
|
31
|
+
const u = t.startsWith("/") ? i + t : t;
|
|
32
|
+
return /* @__PURE__ */ o(_, { src: u, size: "small", color: "currentColor" });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const c = s === void 0 ? b : L[s] ?? a;
|
|
36
|
+
return /* @__PURE__ */ o(c, {});
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
A as sidebarItemIcon
|
|
40
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SidebarLabelTooltipProps } from './types';
|
|
2
|
+
/** Show the complete label on the existing menu control when its text is clipped. */
|
|
3
|
+
export declare function SidebarLabelTooltip({ title, children }: SidebarLabelTooltipProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=SidebarLabelTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarLabelTooltip.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/SidebarLabelTooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,qFAAqF;AACrF,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,wBAAwB,oDA2BhF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Tooltip as u } from "@m4l/base";
|
|
3
|
+
import { useRef as a, useState as f, useCallback as b, useEffect as d } from "react";
|
|
4
|
+
import { SidebarLabel as m } from "./slots/styled.js";
|
|
5
|
+
function R({ title: t, children: s }) {
|
|
6
|
+
const o = a(null), [c, i] = f(!1), r = b(() => {
|
|
7
|
+
const e = o.current;
|
|
8
|
+
i(!!(e && e.scrollWidth > e.clientWidth));
|
|
9
|
+
}, []);
|
|
10
|
+
return d(() => {
|
|
11
|
+
r();
|
|
12
|
+
const e = o.current;
|
|
13
|
+
if (!e || typeof ResizeObserver > "u")
|
|
14
|
+
return;
|
|
15
|
+
const n = new ResizeObserver(r);
|
|
16
|
+
return n.observe(e), () => n.disconnect();
|
|
17
|
+
}, [t, r]), /* @__PURE__ */ l(u, { describeChild: !0, title: c ? t : null, onOpen: r, children: s(/* @__PURE__ */ l(m, { ref: o, children: t })) });
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
R as SidebarLabelTooltip
|
|
21
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SidebarRowProps } from './types';
|
|
2
|
+
/** Render one launch target with independent pin and duplicate actions. */
|
|
3
|
+
export declare function SidebarRow({ title, icon, selected, pinned, favoriteShortcut, nested, onSelect, onPin, onAdd, getLabel, }: SidebarRowProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=SidebarRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarRow.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/SidebarRow.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,2EAA2E;AAC3E,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,gBAAwB,EACxB,MAAc,EACd,QAAQ,EACR,KAAK,EACL,KAAK,EACL,QAAQ,GACT,EAAE,eAAe,oDAgDjB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { BooleanPinOffSmallOutlined as y, BooleanPinSmallOutlined as A, ActionsAddOutlined as O } from "@m4l/icons";
|
|
3
|
+
import { SIDEBAR_DICTIONARY as t } from "../../constants.js";
|
|
4
|
+
import { SidebarLabelTooltip as R } from "./SidebarLabelTooltip.js";
|
|
5
|
+
import { SidebarRowFrame as B, SidebarRowBody as C, SidebarPrimaryAction as I, SidebarGlyph as m, SidebarActions as k, SidebarAction as s, SidebarSmallGlyph as x } from "./slots/styled.js";
|
|
6
|
+
function L({
|
|
7
|
+
title: u,
|
|
8
|
+
icon: S,
|
|
9
|
+
selected: r,
|
|
10
|
+
pinned: e,
|
|
11
|
+
favoriteShortcut: o = !1,
|
|
12
|
+
nested: h = !1,
|
|
13
|
+
onSelect: p,
|
|
14
|
+
onPin: f,
|
|
15
|
+
onAdd: n,
|
|
16
|
+
getLabel: d
|
|
17
|
+
}) {
|
|
18
|
+
const l = { selected: r, nested: h }, c = d(e ? t.unpin : t.pin), b = d(t.addInstance);
|
|
19
|
+
return /* @__PURE__ */ i(B, { ownerState: l, role: o ? "listitem" : void 0, children: /* @__PURE__ */ a(C, { ownerState: l, "data-sidebar-row": !0, children: [
|
|
20
|
+
/* @__PURE__ */ i(R, { title: u, children: (w) => /* @__PURE__ */ a(
|
|
21
|
+
I,
|
|
22
|
+
{
|
|
23
|
+
type: "button",
|
|
24
|
+
role: o ? void 0 : "menuitem",
|
|
25
|
+
"aria-current": r ? "page" : void 0,
|
|
26
|
+
onClick: p,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ i(m, { "aria-hidden": "true", "data-sidebar-icon": !0, children: S }),
|
|
29
|
+
w
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
) }),
|
|
33
|
+
/* @__PURE__ */ a(k, { "data-sidebar-actions": !0, children: [
|
|
34
|
+
/* @__PURE__ */ i(
|
|
35
|
+
s,
|
|
36
|
+
{
|
|
37
|
+
type: "button",
|
|
38
|
+
ownerState: { selected: r, pinned: e },
|
|
39
|
+
"aria-label": c,
|
|
40
|
+
"aria-pressed": e,
|
|
41
|
+
title: c,
|
|
42
|
+
onClick: f,
|
|
43
|
+
children: /* @__PURE__ */ i(m, { "aria-hidden": "true", children: e ? /* @__PURE__ */ i(y, {}) : /* @__PURE__ */ i(A, {}) })
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
n && /* @__PURE__ */ i(
|
|
47
|
+
s,
|
|
48
|
+
{
|
|
49
|
+
type: "button",
|
|
50
|
+
ownerState: { selected: r },
|
|
51
|
+
"aria-label": b,
|
|
52
|
+
title: b,
|
|
53
|
+
onClick: n,
|
|
54
|
+
children: /* @__PURE__ */ i(x, { "aria-hidden": "true", children: /* @__PURE__ */ i(O, {}) })
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] })
|
|
58
|
+
] }) });
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
L as SidebarRow
|
|
62
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const v = "data:image/jp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5fqzPqv8AB/8AJAD/2Q==";
|
|
2
|
+
export {
|
|
3
|
+
v as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MenuDataType } from '../../types';
|
|
2
|
+
import { SidebarAreas } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* The tenant provides a single logo. In dark mode, neutralize its RGB channels
|
|
5
|
+
* while preserving alpha and lift the flat grey to match primary text.
|
|
6
|
+
* Contrast alone lands at 4.13:1 against the default dark background. Raising
|
|
7
|
+
* brightness to 1.4 brings the result to #B3B3B3 (7.79:1) and matches the
|
|
8
|
+
* surrounding menu labels. A value near 1.8 would give the brand more prominence.
|
|
9
|
+
*/
|
|
10
|
+
export declare const DARK_MODE_LOGO_FILTER = "contrast(0) brightness(1.4)";
|
|
11
|
+
/** Keep the original logo artwork in light mode. */
|
|
12
|
+
export declare const LIGHT_MODE_LOGO_FILTER = "none";
|
|
13
|
+
export declare const SIDEBAR_TYPOGRAPHY: {
|
|
14
|
+
readonly heading: {
|
|
15
|
+
readonly letterSpacing: string;
|
|
16
|
+
readonly fontSize: string;
|
|
17
|
+
readonly lineHeight: string;
|
|
18
|
+
readonly fontWeight: number;
|
|
19
|
+
};
|
|
20
|
+
readonly section: import('@m4l/styles').FontProperties;
|
|
21
|
+
readonly control: import('@m4l/styles').FontProperties;
|
|
22
|
+
readonly item: import('@m4l/styles').FontProperties;
|
|
23
|
+
readonly hint: import('@m4l/styles').FontProperties;
|
|
24
|
+
};
|
|
25
|
+
export declare const SIDEBAR_KEYBOARD_RESIZE_STEP = 8;
|
|
26
|
+
export declare const SIDEBAR_ATTRIBUTION_SIZE: {
|
|
27
|
+
readonly width: "47px";
|
|
28
|
+
readonly height: "9px";
|
|
29
|
+
};
|
|
30
|
+
export declare const EMPTY_SIDEBAR_MENU: MenuDataType[];
|
|
31
|
+
export declare const EMPTY_SIDEBAR_WINDOWS: SidebarAreas['windows'];
|
|
32
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/subcomponents/SideBarNavigation/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAI5C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,gCAAgC,CAAC;AAEnE,oDAAoD;AACpD,eAAO,MAAM,sBAAsB,SAAS,CAAC;AAE7C,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAMrB,CAAC;AACX,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,wBAAwB;;;CAA4C,CAAC;AAClF,eAAO,MAAM,kBAAkB,EAAE,YAAY,EAAO,CAAC;AACrD,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,SAAS,CAAM,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TYPOGRAPHY_SIZES_DESKTOP as t, BASE_LETTER_SPACING as n } from "@m4l/styles";
|
|
2
|
+
const { bodyDens: o, bodyStandard: E, captionDens: _, captionStandard: S, captionSlim: c } = t.medium, i = "contrast(0) brightness(1.4)", s = "none", R = {
|
|
3
|
+
heading: { ..._, letterSpacing: n["normal0-5"] },
|
|
4
|
+
section: o,
|
|
5
|
+
control: S,
|
|
6
|
+
item: E,
|
|
7
|
+
hint: c
|
|
8
|
+
}, T = 8, D = { width: "47px", height: "9px" }, e = [], A = {};
|
|
9
|
+
export {
|
|
10
|
+
i as DARK_MODE_LOGO_FILTER,
|
|
11
|
+
e as EMPTY_SIDEBAR_MENU,
|
|
12
|
+
A as EMPTY_SIDEBAR_WINDOWS,
|
|
13
|
+
s as LIGHT_MODE_LOGO_FILTER,
|
|
14
|
+
D as SIDEBAR_ATTRIBUTION_SIZE,
|
|
15
|
+
T as SIDEBAR_KEYBOARD_RESIZE_STEP,
|
|
16
|
+
R as SIDEBAR_TYPOGRAPHY
|
|
17
|
+
};
|