@memobit/libs 4.0.0 → 4.1.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.
@@ -2,43 +2,45 @@ import { ThemeSettings as u } from "../ThemeSettings/ThemeSettings2.js";
2
2
  import { useAccountMenu as c } from "../../hooks/useAccountMenu.js";
3
3
  import { AppFrameContext as l } from "./useAppFrame.js";
4
4
  import { useMemo as f, useState as A } from "react";
5
- import { jsx as o, jsxs as a } from "react/jsx-runtime";
6
- var s = ({ app: e, nav: t, menuItems: r, status: m, children: n }) => {
7
- const i = f(() => ({
5
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
6
+ var a = ({ app: e, nav: t, navOptions: r, menuItems: n, status: m, children: i }) => {
7
+ const s = f(() => ({
8
8
  app: e,
9
9
  nav: t,
10
- menuItems: r,
10
+ navOptions: r,
11
+ menuItems: n,
11
12
  status: m
12
13
  }), [
13
14
  e,
14
15
  t,
15
16
  r,
17
+ n,
16
18
  m
17
19
  ]);
18
20
  return /* @__PURE__ */ o(l.Provider, {
19
- value: i,
20
- children: n
21
+ value: s,
22
+ children: i
21
23
  });
22
- }, h = ({ account: e, menuItems: t = [], children: r, ...m }) => {
23
- const n = c(e);
24
- return /* @__PURE__ */ a(s, {
25
- ...m,
26
- menuItems: [...t, ...n.items],
27
- children: [r, n.modals]
24
+ }, h = ({ account: e, menuItems: t = [], children: r, ...n }) => {
25
+ const m = c(e);
26
+ return /* @__PURE__ */ p(a, {
27
+ ...n,
28
+ menuItems: [...t, ...m.items],
29
+ children: [r, m.modals]
28
30
  });
29
- }, v = ({ theme: e, menuItems: t = [], children: r, ...m }) => {
30
- const [n, i] = A(!1), p = {
31
+ }, v = ({ theme: e, menuItems: t = [], children: r, ...n }) => {
32
+ const [m, i] = A(!1), s = {
31
33
  label: e.label ?? "Theme",
32
34
  icon: "theme-picker",
33
35
  onClick: () => i(!0),
34
36
  isActive: !1,
35
37
  separator: !0
36
38
  };
37
- return /* @__PURE__ */ a(s, {
38
- ...m,
39
- menuItems: [...t, p],
39
+ return /* @__PURE__ */ p(a, {
40
+ ...n,
41
+ menuItems: [...t, s],
40
42
  children: [r, /* @__PURE__ */ o(u, {
41
- isOpen: n,
43
+ isOpen: m,
42
44
  onClose: () => i(!1),
43
45
  currentApp: e.appName
44
46
  })]
@@ -49,7 +51,7 @@ var s = ({ app: e, nav: t, menuItems: r, status: m, children: n }) => {
49
51
  }) : t ? /* @__PURE__ */ o(v, {
50
52
  theme: t,
51
53
  ...r
52
- }) : /* @__PURE__ */ o(s, { ...r });
54
+ }) : /* @__PURE__ */ o(a, { ...r });
53
55
  export {
54
56
  I as AppFrame
55
57
  };
@@ -1,66 +1,131 @@
1
- import { Icon as r } from "../Icon/Icon2.js";
2
- import { AppMark as p } from "./PageParts.js";
3
- import { Fragment as i } from "react";
4
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
5
- var s = (l, a) => [l, a.isActive ? `${l}--active` : ""].filter(Boolean).join(" "), c = ({ item: l, size: a }) => /* @__PURE__ */ e("span", {
1
+ import { Icon as v } from "../Icon/Icon2.js";
2
+ import { libMessages as G } from "../../contexts/LanguageContext/libMessages.js";
3
+ import { useMessages as F } from "../../hooks/useLanguage.js";
4
+ import { InputSearch as A } from "../InputSearch/InputSearch2.js";
5
+ import { AppMark as I } from "./PageParts.js";
6
+ import { Fragment as x, useEffect as z, useState as y } from "react";
7
+ import { jsx as s, jsxs as n } from "react/jsx-runtime";
8
+ var _ = (a, l) => [a, l.isActive ? `${a}--active` : ""].filter(Boolean).join(" "), m = ({ item: a, size: l }) => /* @__PURE__ */ s("span", {
6
9
  className: "page-shell__nav-icon",
7
- style: l.color ? { color: l.color } : void 0,
8
- children: /* @__PURE__ */ e(r, {
9
- name: l.icon,
10
- size: a
10
+ style: a.color ? { color: a.color } : void 0,
11
+ children: /* @__PURE__ */ s(v, {
12
+ name: a.icon,
13
+ size: l
11
14
  })
12
- }), g = ({ nav: l }) => /* @__PURE__ */ e("nav", {
13
- className: "page-shell__side-nav",
14
- children: l.map((a, n) => /* @__PURE__ */ o(i, { children: [a.group && a.group !== l[n - 1]?.group && /* @__PURE__ */ e("span", {
15
- className: "page-shell__nav-group",
16
- children: a.group
17
- }), /* @__PURE__ */ o("button", {
18
- type: "button",
19
- className: s("page-shell__nav-row", a),
20
- onClick: a.onSelect,
21
- children: [
22
- /* @__PURE__ */ e(c, {
23
- item: a,
24
- size: "sm"
25
- }),
26
- /* @__PURE__ */ e("span", {
27
- className: "page-shell__nav-label",
28
- children: a.label
29
- }),
30
- a.count !== void 0 && /* @__PURE__ */ e("span", {
31
- className: "page-shell__nav-count",
32
- children: a.count
33
- })
34
- ]
35
- })] }, a.id))
36
- }), t = ({ app: l, nav: a }) => /* @__PURE__ */ o("nav", {
15
+ }), N = (a) => `page-shell-nav-folded:${a}`, M = (a) => {
16
+ if (!a) return /* @__PURE__ */ new Set();
17
+ try {
18
+ const l = JSON.parse(localStorage.getItem(N(a)) ?? "[]");
19
+ return new Set(Array.isArray(l) ? l.filter((r) => typeof r == "string") : []);
20
+ } catch {
21
+ return /* @__PURE__ */ new Set();
22
+ }
23
+ }, j = (a, l) => {
24
+ if (a)
25
+ try {
26
+ localStorage.setItem(N(a), JSON.stringify([...l]));
27
+ } catch {
28
+ }
29
+ }, $ = ({ nav: a, appName: l, options: r = {} }) => {
30
+ const d = F(G), [f, i] = y(""), [t, S] = y(() => r.collapsibleGroups ? M(l) : /* @__PURE__ */ new Set()), p = f.trim().toLowerCase(), h = p.length > 0, o = h ? a.filter((e) => e.label.toLowerCase().includes(p) || e.group?.toLowerCase().includes(p)) : a, g = r.collapsibleGroups === !0 && !h, w = (e) => g && e.group !== void 0 && t.has(e.group) && !e.isActive;
31
+ z(() => {
32
+ r.collapsibleGroups && j(l, t);
33
+ }, [
34
+ l,
35
+ t,
36
+ r.collapsibleGroups
37
+ ]);
38
+ const C = (e) => S((u) => {
39
+ const c = new Set(u);
40
+ return c.delete(e) || c.add(e), c;
41
+ }), b = (e) => {
42
+ i(""), e.onSelect();
43
+ }, k = (e) => {
44
+ e.key === "Enter" && h && o[0] && b(o[0]), e.key === "Escape" && i("");
45
+ };
46
+ return /* @__PURE__ */ n("nav", {
47
+ className: "page-shell__side-nav",
48
+ children: [r.search && /* @__PURE__ */ s(A, {
49
+ value: f,
50
+ placeholder: r.search,
51
+ onChange: i,
52
+ onKeyDown: k
53
+ }), /* @__PURE__ */ n("div", {
54
+ className: "page-shell__nav-list",
55
+ children: [o.map((e, u) => {
56
+ const c = e.group !== void 0 && e.group !== o[u - 1]?.group;
57
+ return /* @__PURE__ */ n(x, { children: [c && e.group && /* @__PURE__ */ s(E, {
58
+ group: e.group,
59
+ isFolded: g && t.has(e.group),
60
+ canFold: g,
61
+ onToggle: C
62
+ }), !w(e) && /* @__PURE__ */ n("button", {
63
+ type: "button",
64
+ className: _("page-shell__nav-row", e),
65
+ onClick: () => b(e),
66
+ children: [
67
+ /* @__PURE__ */ s(m, {
68
+ item: e,
69
+ size: "sm"
70
+ }),
71
+ /* @__PURE__ */ s("span", {
72
+ className: "page-shell__nav-label",
73
+ children: e.label
74
+ }),
75
+ e.count !== void 0 && /* @__PURE__ */ s("span", {
76
+ className: "page-shell__nav-count",
77
+ children: e.count
78
+ })
79
+ ]
80
+ })] }, e.id);
81
+ }), o.length === 0 && /* @__PURE__ */ s("span", {
82
+ className: "page-shell__nav-empty",
83
+ children: d.pageNoMatches
84
+ })]
85
+ })]
86
+ });
87
+ }, E = ({ group: a, isFolded: l, canFold: r, onToggle: d }) => r ? /* @__PURE__ */ n("button", {
88
+ type: "button",
89
+ className: "page-shell__nav-group page-shell__nav-group--toggle",
90
+ onClick: () => d(a),
91
+ children: [/* @__PURE__ */ s("span", {
92
+ className: "page-shell__nav-group-label",
93
+ children: a
94
+ }), /* @__PURE__ */ s(v, {
95
+ name: l ? "caret-right" : "caret-down",
96
+ size: "sm"
97
+ })]
98
+ }) : /* @__PURE__ */ s("span", {
99
+ className: "page-shell__nav-group",
100
+ children: a
101
+ }), q = ({ app: a, nav: l }) => /* @__PURE__ */ n("nav", {
37
102
  className: "page-shell__rail",
38
- children: [l && /* @__PURE__ */ e(p, {
39
- app: l,
103
+ children: [a && /* @__PURE__ */ s(I, {
104
+ app: a,
40
105
  logoOnly: !0
41
- }), a.map((n) => /* @__PURE__ */ o("button", {
106
+ }), l.map((r) => /* @__PURE__ */ n("button", {
42
107
  type: "button",
43
- className: s("page-shell__rail-item", n),
44
- onClick: n.onSelect,
45
- children: [/* @__PURE__ */ e(c, {
46
- item: n,
108
+ className: _("page-shell__rail-item", r),
109
+ onClick: r.onSelect,
110
+ children: [/* @__PURE__ */ s(m, {
111
+ item: r,
47
112
  size: "md"
48
- }), /* @__PURE__ */ e("span", { children: n.label })]
49
- }, n.id))]
50
- }), u = ({ nav: l }) => /* @__PURE__ */ e("nav", {
113
+ }), /* @__PURE__ */ s("span", { children: r.label })]
114
+ }, r.id))]
115
+ }), D = ({ nav: a }) => /* @__PURE__ */ s("nav", {
51
116
  className: "page-shell__tabbar",
52
- children: l.map((a) => /* @__PURE__ */ o("button", {
117
+ children: a.map((l) => /* @__PURE__ */ n("button", {
53
118
  type: "button",
54
- className: s("page-shell__tab", a),
55
- onClick: a.onSelect,
56
- children: [/* @__PURE__ */ e(r, {
57
- name: a.icon,
119
+ className: _("page-shell__tab", l),
120
+ onClick: l.onSelect,
121
+ children: [/* @__PURE__ */ s(v, {
122
+ name: l.icon,
58
123
  size: "md"
59
- }), /* @__PURE__ */ e("span", { children: a.label })]
60
- }, a.id))
124
+ }), /* @__PURE__ */ s("span", { children: l.label })]
125
+ }, l.id))
61
126
  });
62
127
  export {
63
- t as NavRail,
64
- g as SideNav,
65
- u as TabBar
128
+ q as NavRail,
129
+ $ as SideNav,
130
+ D as TabBar
66
131
  };
@@ -1,28 +1,29 @@
1
1
  import { Icon as h } from "../Icon/Icon2.js";
2
2
  import { libMessages as c } from "../../contexts/LanguageContext/libMessages.js";
3
3
  import { useMessages as o } from "../../hooks/useLanguage.js";
4
- import { Button as u } from "../Button/Button2.js";
4
+ import { Button as m } from "../Button/Button2.js";
5
5
  import { Tooltip as d } from "../Tooltip/Tooltip2.js";
6
6
  import { Chip as N } from "../Chip/Chip2.js";
7
7
  import { Dropdown as w } from "../Dropdown/Dropdown2.js";
8
8
  import { Slider as k } from "../Slider/Slider2.js";
9
9
  import { ToggleSwitch as S } from "../ToggleSwitch/ToggleSwitch2.js";
10
10
  import { MenuHamburger as V } from "../MenuHamburger/MenuHamburger2.js";
11
- import { OptionRow as g, Segmented as p } from "./FilterField2.js";
12
- import { hasViewExtras as y, resolveViewModes as z } from "./shellText.js";
13
- import { useState as A } from "react";
14
- import { Fragment as m, jsx as l, jsxs as r } from "react/jsx-runtime";
15
- var Q = ({ app: e, logoOnly: a = !1 }) => {
16
- const i = typeof e.logo == "string" ? /* @__PURE__ */ l("img", {
11
+ import { fitsSegmented as y } from "./filterRules.js";
12
+ import { OptionRow as u, Segmented as p } from "./FilterField2.js";
13
+ import { hasViewExtras as z, resolveViewModes as A } from "./shellText.js";
14
+ import { useState as R } from "react";
15
+ import { Fragment as g, jsx as l, jsxs as r } from "react/jsx-runtime";
16
+ var W = ({ app: e, logoOnly: i = !1 }) => {
17
+ const a = typeof e.logo == "string" ? /* @__PURE__ */ l("img", {
17
18
  src: e.logo,
18
19
  alt: e.name
19
20
  }) : e.logo ?? (e.icon ? /* @__PURE__ */ l(h, {
20
21
  name: e.icon,
21
22
  size: "lg"
22
- }) : null), s = /* @__PURE__ */ r(m, { children: [i && /* @__PURE__ */ l("span", {
23
+ }) : null), s = /* @__PURE__ */ r(g, { children: [a && /* @__PURE__ */ l("span", {
23
24
  className: "page-shell__logo",
24
- children: i
25
- }), !a && /* @__PURE__ */ l("span", {
25
+ children: a
26
+ }), !i && /* @__PURE__ */ l("span", {
26
27
  className: "page-shell__app-name",
27
28
  children: e.name
28
29
  })] });
@@ -35,31 +36,31 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
35
36
  className: "page-shell__app",
36
37
  children: s
37
38
  });
38
- }, U = ({ action: e, fullWidth: a = !1 }) => {
39
- const i = /* @__PURE__ */ l(u, {
39
+ }, X = ({ action: e, fullWidth: i = !1 }) => {
40
+ const a = /* @__PURE__ */ l(m, {
40
41
  icon: e.icon,
41
42
  variant: e.variant ?? "default",
42
43
  disabled: e.disabled,
43
- fullWidth: a,
44
+ fullWidth: i,
44
45
  onClick: e.onClick,
45
46
  children: e.label
46
47
  });
47
48
  return e.tooltip ? /* @__PURE__ */ l(d, {
48
49
  title: e.tooltip,
49
- children: i
50
- }) : i;
51
- }, W = ({ items: e }) => e.length > 0 ? /* @__PURE__ */ l(V, {
50
+ children: a
51
+ }) : a;
52
+ }, Y = ({ items: e }) => e.length > 0 ? /* @__PURE__ */ l(V, {
52
53
  items: e,
53
54
  disableResponsive: !0,
54
55
  showLabel: !1
55
- }) : null, f = ({ view: e, withLabels: a = !1 }) => {
56
- const i = o(c), { modes: s = [], onChange: n } = e;
56
+ }) : null, f = ({ view: e, withLabels: i = !1 }) => {
57
+ const a = o(c), { modes: s = [], onChange: n } = e;
57
58
  return s.length < 2 || !n ? null : /* @__PURE__ */ l("div", {
58
- className: ["page-shell__view-toggle", a ? "page-shell__view-toggle--labels" : ""].filter(Boolean).join(" "),
59
+ className: ["page-shell__view-toggle", i ? "page-shell__view-toggle--labels" : ""].filter(Boolean).join(" "),
59
60
  children: /* @__PURE__ */ l(p, {
60
- items: z(s, i).map((t) => ({
61
+ items: A(s, a).map((t) => ({
61
62
  value: t.value,
62
- label: a ? /* @__PURE__ */ r("span", {
63
+ label: i ? /* @__PURE__ */ r("span", {
63
64
  className: "page-shell__view-option",
64
65
  children: [/* @__PURE__ */ l(h, {
65
66
  name: t.icon,
@@ -79,11 +80,11 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
79
80
  }
80
81
  })
81
82
  });
82
- }, v = (e, a) => e.onChange({
83
- field: a.value,
84
- direction: a.direction ?? e.value.direction
85
- }), _ = (e) => e.fields.some((a) => a.value === e.value.field && a.direction !== void 0), X = ({ sort: e }) => {
86
- const a = o(c), i = e.value.direction === "asc";
83
+ }, v = (e, i) => e.onChange({
84
+ field: i.value,
85
+ direction: i.direction ?? e.value.direction
86
+ }), _ = (e) => e.fields.some((i) => i.value === e.value.field && i.direction !== void 0), Z = ({ sort: e }) => {
87
+ const i = o(c), a = e.value.direction === "asc";
87
88
  return /* @__PURE__ */ r("div", {
88
89
  className: "page-shell__sort",
89
90
  children: [/* @__PURE__ */ l("div", {
@@ -102,29 +103,29 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
102
103
  }
103
104
  })
104
105
  }), !_(e) && /* @__PURE__ */ l(d, {
105
- title: i ? a.pageAscending : a.pageDescending,
106
- children: /* @__PURE__ */ l(u, {
107
- icon: i ? "arrow-up" : "arrow-down",
106
+ title: a ? i.pageAscending : i.pageDescending,
107
+ children: /* @__PURE__ */ l(m, {
108
+ icon: a ? "arrow-up" : "arrow-down",
108
109
  variant: "default",
109
110
  onClick: () => e.onChange({
110
111
  field: e.value.field,
111
- direction: i ? "desc" : "asc"
112
+ direction: a ? "desc" : "asc"
112
113
  })
113
114
  })
114
115
  })]
115
116
  });
116
- }, Y = ({ sort: e, view: a }) => {
117
- const i = o(c);
117
+ }, ee = ({ sort: e, view: i }) => {
118
+ const a = o(c);
118
119
  return /* @__PURE__ */ r("div", {
119
120
  className: "filter-field filter-field--sheet page-shell__sheet-stack",
120
- children: [e && /* @__PURE__ */ r(m, { children: [
121
+ children: [e && /* @__PURE__ */ r(g, { children: [
121
122
  /* @__PURE__ */ l("span", {
122
123
  className: "page-shell__group-title",
123
- children: i.sortBy
124
+ children: a.sortBy
124
125
  }),
125
126
  /* @__PURE__ */ l("div", {
126
127
  className: "filter-field__rows",
127
- children: e.fields.map((s) => /* @__PURE__ */ l(g, {
128
+ children: e.fields.map((s) => /* @__PURE__ */ l(u, {
128
129
  label: s.label,
129
130
  mark: "radio",
130
131
  selected: e.value.field === s.value,
@@ -134,10 +135,10 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
134
135
  !_(e) && /* @__PURE__ */ l(p, {
135
136
  items: [{
136
137
  value: "asc",
137
- label: i.pageAscending
138
+ label: a.pageAscending
138
139
  }, {
139
140
  value: "desc",
140
- label: i.pageDescending
141
+ label: a.pageDescending
141
142
  }],
142
143
  value: e.value.direction,
143
144
  onSelect: (s) => e.onChange({
@@ -145,23 +146,23 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
145
146
  direction: s === "desc" ? "desc" : "asc"
146
147
  })
147
148
  })
148
- ] }), a && /* @__PURE__ */ r(m, { children: [
149
+ ] }), i && /* @__PURE__ */ r(g, { children: [
149
150
  /* @__PURE__ */ l("span", {
150
151
  className: "page-shell__group-title",
151
- children: i.pageView
152
+ children: a.pageView
152
153
  }),
153
154
  /* @__PURE__ */ l(f, {
154
- view: a,
155
+ view: i,
155
156
  withLabels: !0
156
157
  }),
157
158
  /* @__PURE__ */ l(C, {
158
- view: a,
159
+ view: i,
159
160
  context: "sheet"
160
161
  })
161
162
  ] })]
162
163
  });
163
- }, b = ({ label: e, summary: a, context: i, children: s }) => {
164
- const [n, t] = A(!1);
164
+ }, b = ({ label: e, summary: i, context: a, children: s }) => {
165
+ const [n, t] = R(!1);
165
166
  return /* @__PURE__ */ r("div", {
166
167
  className: "page-filters__section",
167
168
  children: [/* @__PURE__ */ r("button", {
@@ -175,7 +176,7 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
175
176
  }),
176
177
  /* @__PURE__ */ l("span", {
177
178
  className: "page-filters__summary",
178
- children: a
179
+ children: i
179
180
  }),
180
181
  /* @__PURE__ */ l(h, {
181
182
  name: n ? "caret-down" : "caret-right",
@@ -183,19 +184,19 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
183
184
  })
184
185
  ]
185
186
  }), n && /* @__PURE__ */ l("div", {
186
- className: `page-filters__body filter-field filter-field--${i}`,
187
+ className: `page-filters__body filter-field filter-field--${a}`,
187
188
  children: s
188
189
  })]
189
190
  });
190
- }, R = ({ columns: e, context: a }) => {
191
- const i = o(c), s = (n) => e.onChange(e.value.includes(n) ? e.value.filter((t) => t !== n) : [...e.value, n]);
191
+ }, M = ({ columns: e, context: i }) => {
192
+ const a = o(c), s = (n) => e.onChange(e.value.includes(n) ? e.value.filter((t) => t !== n) : [...e.value, n]);
192
193
  return /* @__PURE__ */ l(b, {
193
- label: i.columns,
194
- summary: i.pageColumnsShown(e.value.length, e.options.length),
195
- context: a,
194
+ label: a.columns,
195
+ summary: a.pageColumnsShown(e.value.length, e.options.length),
196
+ context: i,
196
197
  children: /* @__PURE__ */ l("div", {
197
198
  className: "filter-field__rows",
198
- children: e.options.map((n) => /* @__PURE__ */ l(g, {
199
+ children: e.options.map((n) => /* @__PURE__ */ l(u, {
199
200
  label: n.label,
200
201
  mark: "check",
201
202
  selected: e.value.includes(n.value),
@@ -203,20 +204,20 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
203
204
  }, n.value))
204
205
  })
205
206
  });
206
- }, M = ({ groupBy: e, context: a }) => {
207
- const i = o(c), s = e.options.find((n) => n.value === e.value);
207
+ }, T = ({ groupBy: e, context: i }) => {
208
+ const a = o(c), s = e.options.find((n) => n.value === e.value);
208
209
  return /* @__PURE__ */ l(b, {
209
- label: i.groupBy,
210
- summary: s?.label ?? i.pageGroupNone,
211
- context: a,
210
+ label: a.groupBy,
211
+ summary: s?.label ?? a.pageGroupNone,
212
+ context: i,
212
213
  children: /* @__PURE__ */ r("div", {
213
214
  className: "filter-field__rows",
214
- children: [/* @__PURE__ */ l(g, {
215
- label: i.pageGroupNone,
215
+ children: [/* @__PURE__ */ l(u, {
216
+ label: a.pageGroupNone,
216
217
  mark: "radio",
217
218
  selected: e.value === null,
218
219
  onClick: () => e.onChange(null)
219
- }), e.options.map((n) => /* @__PURE__ */ l(g, {
220
+ }), e.options.map((n) => /* @__PURE__ */ l(u, {
220
221
  label: n.label,
221
222
  mark: "radio",
222
223
  selected: e.value === n.value,
@@ -224,10 +225,10 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
224
225
  }, n.value))]
225
226
  })
226
227
  });
227
- }, T = ({ toggle: e, context: a }) => /* @__PURE__ */ l("div", {
228
+ }, $ = ({ toggle: e, context: i }) => /* @__PURE__ */ l("div", {
228
229
  className: "page-filters__flat",
229
230
  children: /* @__PURE__ */ r("div", {
230
- className: `filter-field filter-field--${a} filter-field__switch-row`,
231
+ className: `filter-field filter-field--${i} filter-field__switch-row`,
231
232
  children: [/* @__PURE__ */ l("button", {
232
233
  type: "button",
233
234
  className: "filter-field__switch-label",
@@ -240,25 +241,33 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
240
241
  onChange: e.onChange
241
242
  })]
242
243
  })
243
- }), $ = ({ choice: e, context: a }) => /* @__PURE__ */ l("div", {
244
+ }), D = ({ choice: e, context: i }) => /* @__PURE__ */ l("div", {
244
245
  className: "page-filters__flat",
245
246
  children: /* @__PURE__ */ r("div", {
246
- className: `filter-field filter-field--${a} page-shell__view-choice`,
247
+ className: `filter-field filter-field--${i} page-shell__view-choice`,
247
248
  children: [/* @__PURE__ */ l("span", {
248
249
  className: "page-shell__view-choice-label",
249
250
  children: e.label
250
- }), /* @__PURE__ */ l(p, {
251
+ }), y(e.options.map((a) => a.label)) ? /* @__PURE__ */ l(p, {
251
252
  items: e.options,
252
253
  value: e.value,
253
- onSelect: (i) => {
254
- i !== null && e.onChange(String(i));
254
+ onSelect: (a) => {
255
+ a !== null && e.onChange(String(a));
255
256
  }
257
+ }) : /* @__PURE__ */ l("div", {
258
+ className: "filter-field__rows",
259
+ children: e.options.map((a) => /* @__PURE__ */ l(u, {
260
+ label: a.label,
261
+ mark: "radio",
262
+ selected: e.value === a.value,
263
+ onClick: () => e.onChange(a.value)
264
+ }, a.value))
256
265
  })]
257
266
  })
258
- }), D = ({ slider: e, context: a }) => /* @__PURE__ */ l("div", {
267
+ }), O = ({ slider: e, context: i }) => /* @__PURE__ */ l("div", {
259
268
  className: "page-filters__flat",
260
269
  children: /* @__PURE__ */ r("div", {
261
- className: `filter-field filter-field--${a} page-shell__view-choice`,
270
+ className: `filter-field filter-field--${i} page-shell__view-choice`,
262
271
  children: [/* @__PURE__ */ l("span", {
263
272
  className: "page-shell__view-choice-label",
264
273
  children: e.label
@@ -273,86 +282,86 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
273
282
  onChange: e.onChange
274
283
  })]
275
284
  })
276
- }), C = ({ view: e, context: a }) => y(e) ? /* @__PURE__ */ r("div", {
277
- className: `page-filters page-filters--${a}`,
285
+ }), C = ({ view: e, context: i }) => z(e) ? /* @__PURE__ */ r("div", {
286
+ className: `page-filters page-filters--${i}`,
278
287
  children: [
279
- e.choices?.map((i) => /* @__PURE__ */ l($, {
280
- choice: i,
281
- context: a
282
- }, i.id)),
283
- e.sliders?.map((i) => /* @__PURE__ */ l(D, {
284
- slider: i,
285
- context: a
286
- }, i.id)),
287
- e.columns && /* @__PURE__ */ l(R, {
288
+ e.choices?.map((a) => /* @__PURE__ */ l(D, {
289
+ choice: a,
290
+ context: i
291
+ }, a.id)),
292
+ e.sliders?.map((a) => /* @__PURE__ */ l(O, {
293
+ slider: a,
294
+ context: i
295
+ }, a.id)),
296
+ e.columns && /* @__PURE__ */ l(M, {
288
297
  columns: e.columns,
289
- context: a
298
+ context: i
290
299
  }),
291
- e.groupBy && /* @__PURE__ */ l(M, {
300
+ e.groupBy && /* @__PURE__ */ l(T, {
292
301
  groupBy: e.groupBy,
293
- context: a
302
+ context: i
294
303
  }),
295
- e.toggles?.map((i) => /* @__PURE__ */ l(T, {
296
- toggle: i,
297
- context: a
298
- }, i.id))
304
+ e.toggles?.map((a) => /* @__PURE__ */ l($, {
305
+ toggle: a,
306
+ context: i
307
+ }, a.id))
299
308
  ]
300
- }) : null, Z = ({ pagination: e }) => {
301
- const a = o(c);
309
+ }) : null, le = ({ pagination: e }) => {
310
+ const i = o(c);
302
311
  if (!e || e.pageCount <= 1) return null;
303
- const { page: i, pageCount: s, onChange: n } = e;
312
+ const { page: a, pageCount: s, onChange: n } = e;
304
313
  return /* @__PURE__ */ r("div", {
305
314
  className: "page-shell__pager",
306
315
  children: [
307
316
  /* @__PURE__ */ l(d, {
308
- title: a.previous,
309
- children: /* @__PURE__ */ l(u, {
317
+ title: i.previous,
318
+ children: /* @__PURE__ */ l(m, {
310
319
  icon: "caret-left",
311
320
  variant: "plain",
312
321
  size: "small",
313
- disabled: i <= 1,
314
- onClick: () => n(i - 1)
322
+ disabled: a <= 1,
323
+ onClick: () => n(a - 1)
315
324
  })
316
325
  }),
317
326
  /* @__PURE__ */ l("span", {
318
327
  className: "page-shell__pager-label",
319
- children: a.pageOf(i, s)
328
+ children: i.pageOf(a, s)
320
329
  }),
321
330
  /* @__PURE__ */ l(d, {
322
- title: a.next,
323
- children: /* @__PURE__ */ l(u, {
331
+ title: i.next,
332
+ children: /* @__PURE__ */ l(m, {
324
333
  icon: "caret-right",
325
334
  variant: "plain",
326
335
  size: "small",
327
- disabled: i >= s,
328
- onClick: () => n(i + 1)
336
+ disabled: a >= s,
337
+ onClick: () => n(a + 1)
329
338
  })
330
339
  })
331
340
  ]
332
341
  });
333
- }, ee = ({ tabs: e }) => !e || e.items.length < 2 ? null : /* @__PURE__ */ l("div", {
342
+ }, ae = ({ tabs: e }) => !e || e.items.length < 2 ? null : /* @__PURE__ */ l("div", {
334
343
  className: "page-shell__tabs",
335
- children: e.items.map((a) => {
336
- const i = a.value === e.value;
344
+ children: e.items.map((i) => {
345
+ const a = i.value === e.value;
337
346
  return /* @__PURE__ */ l(N, {
338
- icon: a.icon,
339
- count: a.count,
340
- selected: i,
341
- variant: i ? "default" : a.tone ?? "default",
342
- onClick: () => e.onChange(a.value),
343
- children: a.label
344
- }, a.value);
347
+ icon: i.icon,
348
+ count: i.count,
349
+ selected: a,
350
+ variant: a ? "default" : i.tone ?? "default",
351
+ onClick: () => e.onChange(i.value),
352
+ children: i.label
353
+ }, i.value);
345
354
  })
346
- }), le = ({ view: e, showToggle: a = !0 }) => {
347
- const i = o(c);
355
+ }), ie = ({ view: e, showToggle: i = !0 }) => {
356
+ const a = o(c);
348
357
  return /* @__PURE__ */ r("div", {
349
358
  className: "page-shell__side-group",
350
359
  children: [
351
360
  /* @__PURE__ */ l("span", {
352
361
  className: "page-shell__group-title",
353
- children: i.pageView
362
+ children: a.pageView
354
363
  }),
355
- a && /* @__PURE__ */ l(f, {
364
+ i && /* @__PURE__ */ l(f, {
356
365
  view: e,
357
366
  withLabels: !0
358
367
  }),
@@ -364,14 +373,14 @@ var Q = ({ app: e, logoOnly: a = !1 }) => {
364
373
  });
365
374
  };
366
375
  export {
367
- U as ActionButton,
368
- Q as AppMark,
369
- W as PageMenu,
370
- Z as PagePager,
371
- ee as PageTabsRow,
372
- X as SortDropdown,
373
- Y as SortSheetBody,
376
+ X as ActionButton,
377
+ W as AppMark,
378
+ Y as PageMenu,
379
+ le as PagePager,
380
+ ae as PageTabsRow,
381
+ Z as SortDropdown,
382
+ ee as SortSheetBody,
374
383
  C as ViewExtras,
375
- le as ViewOptions,
384
+ ie as ViewOptions,
376
385
  f as ViewToggle
377
386
  };
@@ -1 +1 @@
1
- .page-shell{min-height:100vh;color:var(--body-color);display:flex}.page-shell,.page-shell__side,.page-shell__main,.page-shell__rail,.page-shell__toolbar,.page-shell__content{box-sizing:border-box}.page-shell__side{width:var(--spacing-300);gap:var(--spacing-16);height:100vh;padding:var(--spacing-16);background-color:var(--card-background-color);border-right:1px solid var(--card-border-color);flex-direction:column;flex:none;display:flex;position:sticky;top:0;overflow-y:auto}.page-shell__side-group{gap:var(--spacing-8);flex-direction:column;display:flex}.page-shell__side-head{align-items:center;gap:var(--spacing-8);display:flex}.page-shell__group-title{color:var(--body-color-muted);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);text-transform:uppercase}.page-shell__main{gap:var(--spacing-16);min-width:0;padding:var(--spacing-16);flex-direction:column;flex:auto;display:flex}.page-shell__toolbar{align-items:center;gap:var(--spacing-12);padding:var(--spacing-12) var(--spacing-16);background-color:var(--card-background-color);border:1px solid var(--card-border-color);border-radius:var(--radius);box-shadow:var(--card-box-shadow);flex-wrap:wrap;display:flex}.page-shell__titles{flex-direction:column;flex:0 auto;min-width:0;max-width:40%;display:flex}.page-shell__title{color:var(--body-title-color);font-family:var(--font-family-display);font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);line-height:var(--line-height-tight);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.page-shell__heading{color:var(--body-color-muted);font-size:var(--font-size-xs);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.page-shell__search{flex:1 1 var(--spacing-100);min-width:var(--spacing-100)}.page-shell__sort{align-items:center;gap:var(--spacing-4);flex:none;display:flex}.page-shell__sort-field{width:var(--spacing-200)}.page-shell__break{flex-basis:100%;height:0}.page-shell__content{gap:var(--spacing-16);flex-direction:column;flex:auto;min-width:0;display:flex}.page-shell__view-choice{gap:var(--spacing-6);flex-direction:column;display:flex}.page-shell__view-choice-label{color:var(--body-color);font-size:var(--font-size-sm)}.page-shell__tabs{gap:var(--spacing-8);flex-wrap:wrap;display:flex}.page-shell--phone .page-shell__tabs{padding:0 var(--spacing-8);flex-wrap:nowrap;overflow-x:auto}.page-shell__status{align-items:center;gap:var(--spacing-12);display:flex}.page-shell__status:empty{display:none}.page-shell__status .page-applied{flex:auto;min-width:0}.page-shell__pager{align-items:center;gap:var(--spacing-4);color:var(--body-color-muted);font-size:var(--font-size-sm);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;margin-left:auto;display:flex}.page-shell__spacer{flex:auto}.page-shell__badge{min-width:var(--spacing-20);height:var(--spacing-20);padding:0 var(--spacing-6);border-radius:var(--radius-full);background-color:var(--chip-selected-background-color);color:var(--chip-selected-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);line-height:var(--line-height-none);justify-content:center;align-items:center;display:inline-flex}.page-shell__badge--corner{min-width:var(--spacing-16);height:var(--spacing-16);padding:0 var(--spacing-4);font-size:var(--font-size-xxs);position:absolute;top:0;right:0}.page-shell__link{color:var(--links-color);font:inherit;cursor:pointer;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);white-space:nowrap;background:0 0;border:0;padding:0}.page-shell__link:hover{color:var(--links-hover-color)}.page-shell__app{color:var(--body-title-color);font:inherit;cursor:pointer;align-items:center;gap:var(--spacing-8);min-width:0;font-size:var(--font-size-md);font-weight:var(--font-weight-bold);cursor:default;background:0 0;border:0;padding:0;display:inline-flex}.page-shell__app--clickable{cursor:pointer}.page-shell__logo{flex:none;display:inline-flex}.page-shell__logo img,.page-shell__logo svg{width:auto;height:var(--spacing-32);max-width:var(--spacing-100);display:block}.page-shell__app-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-shell__view-option{align-items:center;gap:var(--spacing-4);display:inline-flex}.page-shell--tablet .page-shell__titles{flex:auto;max-width:none}.page-shell__drawer-footer .button{white-space:nowrap;justify-content:center}.page-shell__drawer-footer{gap:var(--spacing-8);width:100%;display:flex}.page-shell__drawer-body{gap:var(--spacing-16);flex-direction:column;display:flex}.page-shell__sheet-stack{gap:var(--spacing-12)}.page-shell--phone{flex-direction:column}.page-shell__topbar{z-index:20;align-items:center;gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-8) var(--spacing-8) var(--spacing-16);background-color:var(--card-background-color);color:var(--body-color);border-bottom:1px solid var(--card-border-color);display:flex;position:sticky;top:0}.page-shell__icon-button{color:inherit;font:inherit;cursor:pointer;width:var(--spacing-40);height:var(--spacing-40);border-radius:var(--radius);background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}.page-shell__search-row,.page-shell--phone .page-applied{padding:var(--spacing-8) var(--spacing-16) 0}.page-shell__result-row{align-items:center;gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-8) 0 var(--spacing-16);display:flex}.page-shell__result-line{color:var(--body-color-muted);font:inherit;cursor:pointer;align-items:center;gap:var(--spacing-4);min-width:0;font-size:var(--font-size-sm);text-align:left;background:0 0;border:0;padding:0;display:flex}.page-shell__result-line span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-shell--phone .page-shell__content{padding:var(--spacing-8) var(--spacing-8) calc(var(--spacing-80) + env(safe-area-inset-bottom,0px))}.page-shell__fab{color:var(--button-info-color);font:inherit;cursor:pointer;right:max(var(--spacing-16), env(safe-area-inset-right,0px));bottom:calc(var(--spacing-16) + env(safe-area-inset-bottom,0px));z-index:30;width:var(--spacing-60);height:var(--spacing-60);border-radius:var(--radius-full);background:0 0;background-color:var(--button-info-background-color);box-shadow:0 var(--spacing-4) var(--spacing-12) var(--box-shadow);border:0;justify-content:center;align-items:center;padding:0;display:flex;position:fixed}.page-shell__fab:disabled{cursor:default;filter:grayscale()}.page-shell--fab-warning .page-shell__fab{background-color:var(--button-warning-background-color);color:var(--button-warning-color)}.page-shell--fab-success .page-shell__fab{background-color:var(--button-success-background-color);color:var(--button-success-color)}.page-shell--fab-danger .page-shell__fab{background-color:var(--button-danger-background-color);color:var(--button-danger-color)}.page-filters{flex-direction:column;display:flex}.page-filters__section,.page-filters__flat{border-top:1px solid var(--delimiter-color)}.page-filters__section:first-child,.page-filters__flat:first-child,.page-filters__flat+.page-filters__flat{border-top:0}.page-filters__flat{padding:var(--spacing-4) 0}.page-filters__header{color:var(--body-color);font:inherit;cursor:pointer;align-items:center;gap:var(--spacing-8);width:100%;padding:0;padding:var(--spacing-12) 0;font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);text-align:left;background:0 0;border:0;display:flex}.page-filters__label{flex:none}.page-filters__summary{min-width:0;color:var(--body-accent-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}.page-filters__spacer{flex:auto}.page-filters__dot{width:var(--spacing-6);height:var(--spacing-6);border-radius:var(--radius-full);background-color:var(--body-accent-color);flex:none}.page-filters__body{padding:0 0 var(--spacing-12)}.page-filters--sheet .page-filters__header{padding:var(--spacing-16) 0;font-size:var(--font-size-md)}.page-applied{align-items:center;gap:var(--spacing-6);flex-wrap:wrap;display:flex}.page-applied--scroll{scrollbar-width:none;flex-wrap:nowrap;overflow-x:auto}.page-applied--scroll::-webkit-scrollbar{display:none}.page-applied--scroll>*{flex:none}.page-applied .chip__label{align-items:center;gap:var(--spacing-4);display:inline-flex}.page-applied__label{white-space:nowrap}.page-sheet{z-index:1100;position:fixed;inset:0}.page-sheet__backdrop{background-color:var(--backdrop-color);position:absolute;inset:0}.page-sheet__panel{max-height:85dvh;padding-bottom:env(safe-area-inset-bottom,0px);background-color:var(--modal-background-color);color:var(--modal-color);border-radius:var(--radius) var(--radius) 0 0;box-shadow:var(--modal-box-shadow);animation:page-sheet-up var(--transition-moderate);flex-direction:column;display:flex;position:absolute;bottom:0;left:0;right:0}.page-sheet__panel--tall{height:92dvh}.page-sheet__grab{width:var(--spacing-40);height:var(--spacing-4);margin:var(--spacing-8) auto 0;border-radius:var(--radius-full);background-color:var(--delimiter-color);flex:none}.page-sheet__header{align-items:center;gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-16);flex:none;display:flex}.page-sheet__title{color:var(--modal-title-color);font-family:var(--font-family-display);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);flex:auto}.page-sheet__body{min-height:0;padding:0 var(--spacing-16) var(--spacing-16);flex:auto;overflow-y:auto}.page-sheet__footer{gap:var(--spacing-8);padding:var(--spacing-12) var(--spacing-16);border-top:1px solid var(--delimiter-color);flex:none;display:flex}.page-sheet__footer .button{justify-content:center}@keyframes page-sheet-up{0%{transform:translateY(100%)}}@media (prefers-reduced-motion:reduce){.page-sheet__panel{animation:none}}.page-shell__side-nav{gap:var(--spacing-2);flex-direction:column;display:flex}.page-shell__nav-row{color:var(--body-color-muted);font:inherit;cursor:pointer;align-items:center;gap:var(--spacing-8);width:100%;padding:0;padding:var(--spacing-8) var(--spacing-12);border-radius:var(--radius);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);text-align:left;background:0 0;border:0;display:flex}.page-shell__nav-row:hover{background-color:var(--list-hover-background-color);color:var(--body-color)}.page-shell__nav-row--active,.page-shell__nav-row--active:hover{background-color:var(--chip-selected-background-color);color:var(--chip-selected-color)}.page-shell__nav-label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.page-shell__nav-count{font-size:var(--font-size-xs);font-variant-numeric:tabular-nums;flex:none}.page-shell__rail{align-items:center;gap:var(--spacing-8);width:var(--spacing-80);height:100vh;padding:var(--spacing-16) var(--spacing-8);background-color:var(--card-background-color);border-right:1px solid var(--card-border-color);flex-direction:column;flex:none;display:flex;position:sticky;top:0}.page-shell__rail-item{color:var(--body-color-muted);font:inherit;cursor:pointer;align-items:center;gap:var(--spacing-4);width:100%;padding:0;padding:var(--spacing-8) var(--spacing-4);border-radius:var(--radius);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);background:0 0;border:0;flex-direction:column;display:flex}.page-shell__rail-item:hover{background-color:var(--list-hover-background-color);color:var(--body-color)}.page-shell__rail-item--active,.page-shell__rail-item--active:hover{background-color:var(--chip-selected-background-color);color:var(--chip-selected-color)}.page-shell__tabbar{z-index:25;padding-bottom:env(safe-area-inset-bottom,0px);background-color:var(--card-background-color);border-top:1px solid var(--card-border-color);display:flex;position:fixed;bottom:0;left:0;right:0}.page-shell__tab{color:var(--body-color-muted);font:inherit;cursor:pointer;justify-content:center;align-items:center;gap:var(--spacing-2);height:var(--spacing-60);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);background:0 0;border:0;flex-direction:column;flex:1 1 0;padding:0;display:flex}.page-shell__tab .icon{padding:var(--spacing-2) var(--spacing-16);border-radius:var(--radius-full);transition:background-color var(--transition-fast)}.page-shell__tab--active{color:var(--body-accent-color);font-weight:var(--font-weight-semibold)}.page-shell__tab--active .icon{background-color:var(--chip-selected-background-color);color:var(--chip-selected-color)}.page-shell--with-tabs .page-shell__fab{bottom:calc(var(--spacing-60) + var(--spacing-16) + env(safe-area-inset-bottom,0px))}.page-shell--with-tabs .page-shell__content{padding-bottom:calc(var(--spacing-60) + var(--spacing-80) + env(safe-area-inset-bottom,0px))}.page-shell__nav-group{padding:var(--spacing-12) var(--spacing-12) var(--spacing-4);color:var(--body-color-muted);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);text-transform:uppercase}.page-shell__nav-icon{flex:none;display:inline-flex}.page-shell__aside{box-sizing:border-box}.page-shell__aside--docked{width:var(--spacing-400);height:100vh;padding:var(--spacing-16);background-color:var(--card-background-color);border-left:1px solid var(--card-border-color);flex:none;position:sticky;top:0;overflow-y:auto}.page-shell__aside--stacked{padding:0 var(--spacing-16) var(--spacing-16)}.page-shell__footer{z-index:15;padding:var(--spacing-8) var(--spacing-12);background-color:var(--card-background-color);border:1px solid var(--card-border-color);border-radius:var(--radius);box-shadow:0 calc(var(--spacing-4) * -1) var(--spacing-12) var(--box-shadow);position:sticky;bottom:0}.page-shell--phone .page-shell__footer{margin:0 var(--spacing-8)}.page-shell--with-tabs .page-shell__footer{bottom:calc(var(--spacing-60) + env(safe-area-inset-bottom,0px))}.page-shell--focus{flex-direction:column}.page-shell--focus .page-shell__main{width:100%}
1
+ .page-shell{min-height:100vh;color:var(--body-color);display:flex}.page-shell,.page-shell__side,.page-shell__main,.page-shell__rail,.page-shell__toolbar,.page-shell__content{box-sizing:border-box}.page-shell__side{width:var(--spacing-300);gap:var(--spacing-16);height:100vh;padding:var(--spacing-16);background-color:var(--card-background-color);border-right:1px solid var(--card-border-color);flex-direction:column;flex:none;display:flex;position:sticky;top:0;overflow-y:auto}.page-shell__side-group{gap:var(--spacing-8);flex-direction:column;display:flex}.page-shell__side-head{align-items:center;gap:var(--spacing-8);display:flex}.page-shell__group-title{color:var(--body-color-muted);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);text-transform:uppercase}.page-shell__main{gap:var(--spacing-16);min-width:0;padding:var(--spacing-16);flex-direction:column;flex:auto;display:flex}.page-shell__toolbar{align-items:center;gap:var(--spacing-12);padding:var(--spacing-12) var(--spacing-16);background-color:var(--card-background-color);border:1px solid var(--card-border-color);border-radius:var(--radius);box-shadow:var(--card-box-shadow);flex-wrap:wrap;display:flex}.page-shell__titles{flex-direction:column;flex:0 auto;min-width:0;max-width:40%;display:flex}.page-shell__title{color:var(--body-title-color);font-family:var(--font-family-display);font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);line-height:var(--line-height-tight);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.page-shell__heading{color:var(--body-color-muted);font-size:var(--font-size-xs);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.page-shell__search{flex:1 1 var(--spacing-100);min-width:var(--spacing-100)}.page-shell__sort{align-items:center;gap:var(--spacing-4);flex:none;display:flex}.page-shell__sort-field{width:var(--spacing-200)}.page-shell__break{flex-basis:100%;height:0}.page-shell__content{gap:var(--spacing-16);flex-direction:column;flex:auto;min-width:0;display:flex}.page-shell__view-choice{gap:var(--spacing-6);flex-direction:column;display:flex}.page-shell__view-choice-label{color:var(--body-color);font-size:var(--font-size-sm)}.page-shell__tabs{gap:var(--spacing-8);flex-wrap:wrap;display:flex}.page-shell--phone .page-shell__tabs{padding:0 var(--spacing-8);flex-wrap:nowrap;overflow-x:auto}.page-shell__status{align-items:center;gap:var(--spacing-12);display:flex}.page-shell__status:empty{display:none}.page-shell__status .page-applied{flex:auto;min-width:0}.page-shell__pager{align-items:center;gap:var(--spacing-4);color:var(--body-color-muted);font-size:var(--font-size-sm);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;margin-left:auto;display:flex}.page-shell__spacer{flex:auto}.page-shell__badge{min-width:var(--spacing-20);height:var(--spacing-20);padding:0 var(--spacing-6);border-radius:var(--radius-full);background-color:var(--chip-selected-background-color);color:var(--chip-selected-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);line-height:var(--line-height-none);justify-content:center;align-items:center;display:inline-flex}.page-shell__badge--corner{min-width:var(--spacing-16);height:var(--spacing-16);padding:0 var(--spacing-4);font-size:var(--font-size-xxs);position:absolute;top:0;right:0}.page-shell__link{color:var(--links-color);font:inherit;cursor:pointer;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);white-space:nowrap;background:0 0;border:0;padding:0}.page-shell__link:hover{color:var(--links-hover-color)}.page-shell__app{color:var(--body-title-color);font:inherit;cursor:pointer;align-items:center;gap:var(--spacing-8);min-width:0;font-size:var(--font-size-md);font-weight:var(--font-weight-bold);cursor:default;background:0 0;border:0;padding:0;display:inline-flex}.page-shell__app--clickable{cursor:pointer}.page-shell__logo{flex:none;display:inline-flex}.page-shell__logo img,.page-shell__logo svg{width:auto;height:var(--spacing-32);max-width:var(--spacing-100);display:block}.page-shell__app-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-shell__view-option{align-items:center;gap:var(--spacing-4);display:inline-flex}.page-shell--tablet .page-shell__titles{flex:auto;max-width:none}.page-shell__drawer-footer .button{white-space:nowrap;justify-content:center}.page-shell__drawer-footer{gap:var(--spacing-8);width:100%;display:flex}.page-shell__drawer-body{gap:var(--spacing-16);flex-direction:column;display:flex}.page-shell__sheet-stack{gap:var(--spacing-12)}.page-shell--phone{flex-direction:column}.page-shell__topbar{z-index:20;align-items:center;gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-8) var(--spacing-8) var(--spacing-16);background-color:var(--card-background-color);color:var(--body-color);border-bottom:1px solid var(--card-border-color);display:flex;position:sticky;top:0}.page-shell__icon-button{color:inherit;font:inherit;cursor:pointer;width:var(--spacing-40);height:var(--spacing-40);border-radius:var(--radius);background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}.page-shell__search-row,.page-shell--phone .page-applied{padding:var(--spacing-8) var(--spacing-16) 0}.page-shell__result-row{align-items:center;gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-8) 0 var(--spacing-16);display:flex}.page-shell__result-line{color:var(--body-color-muted);font:inherit;cursor:pointer;align-items:center;gap:var(--spacing-4);min-width:0;font-size:var(--font-size-sm);text-align:left;background:0 0;border:0;padding:0;display:flex}.page-shell__result-line span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-shell--phone .page-shell__content{padding:var(--spacing-8) var(--spacing-8) calc(var(--spacing-80) + env(safe-area-inset-bottom,0px))}.page-shell__fab{color:var(--button-info-color);font:inherit;cursor:pointer;right:max(var(--spacing-16), env(safe-area-inset-right,0px));bottom:calc(var(--spacing-16) + env(safe-area-inset-bottom,0px));z-index:30;width:var(--spacing-60);height:var(--spacing-60);border-radius:var(--radius-full);background:0 0;background-color:var(--button-info-background-color);box-shadow:0 var(--spacing-4) var(--spacing-12) var(--box-shadow);border:0;justify-content:center;align-items:center;padding:0;display:flex;position:fixed}.page-shell__fab:disabled{cursor:default;filter:grayscale()}.page-shell--fab-warning .page-shell__fab{background-color:var(--button-warning-background-color);color:var(--button-warning-color)}.page-shell--fab-success .page-shell__fab{background-color:var(--button-success-background-color);color:var(--button-success-color)}.page-shell--fab-danger .page-shell__fab{background-color:var(--button-danger-background-color);color:var(--button-danger-color)}.page-filters{flex-direction:column;display:flex}.page-filters__section,.page-filters__flat{border-top:1px solid var(--delimiter-color)}.page-filters__section:first-child,.page-filters__flat:first-child,.page-filters__flat+.page-filters__flat{border-top:0}.page-filters__flat{padding:var(--spacing-4) 0}.page-filters__header{color:var(--body-color);font:inherit;cursor:pointer;align-items:center;gap:var(--spacing-8);width:100%;padding:0;padding:var(--spacing-12) 0;font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);text-align:left;background:0 0;border:0;display:flex}.page-filters__label{flex:none}.page-filters__summary{min-width:0;color:var(--body-accent-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}.page-filters__spacer{flex:auto}.page-filters__dot{width:var(--spacing-6);height:var(--spacing-6);border-radius:var(--radius-full);background-color:var(--body-accent-color);flex:none}.page-filters__body{padding:0 0 var(--spacing-12)}.page-filters--sheet .page-filters__header{padding:var(--spacing-16) 0;font-size:var(--font-size-md)}.page-applied{align-items:center;gap:var(--spacing-6);flex-wrap:wrap;display:flex}.page-applied--scroll{scrollbar-width:none;flex-wrap:nowrap;overflow-x:auto}.page-applied--scroll::-webkit-scrollbar{display:none}.page-applied--scroll>*{flex:none}.page-applied .chip__label{align-items:center;gap:var(--spacing-4);display:inline-flex}.page-applied__label{white-space:nowrap}.page-sheet{z-index:1100;position:fixed;inset:0}.page-sheet__backdrop{background-color:var(--backdrop-color);position:absolute;inset:0}.page-sheet__panel{max-height:85dvh;padding-bottom:env(safe-area-inset-bottom,0px);background-color:var(--modal-background-color);color:var(--modal-color);border-radius:var(--radius) var(--radius) 0 0;box-shadow:var(--modal-box-shadow);animation:page-sheet-up var(--transition-moderate);flex-direction:column;display:flex;position:absolute;bottom:0;left:0;right:0}.page-sheet__panel--tall{height:92dvh}.page-sheet__grab{width:var(--spacing-40);height:var(--spacing-4);margin:var(--spacing-8) auto 0;border-radius:var(--radius-full);background-color:var(--delimiter-color);flex:none}.page-sheet__header{align-items:center;gap:var(--spacing-8);padding:var(--spacing-8) var(--spacing-16);flex:none;display:flex}.page-sheet__title{color:var(--modal-title-color);font-family:var(--font-family-display);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);flex:auto}.page-sheet__body{min-height:0;padding:0 var(--spacing-16) var(--spacing-16);flex:auto;overflow-y:auto}.page-sheet__footer{gap:var(--spacing-8);padding:var(--spacing-12) var(--spacing-16);border-top:1px solid var(--delimiter-color);flex:none;display:flex}.page-sheet__footer .button{justify-content:center}@keyframes page-sheet-up{0%{transform:translateY(100%)}}@media (prefers-reduced-motion:reduce){.page-sheet__panel{animation:none}}.page-shell__side-nav{gap:var(--spacing-8);flex-direction:column;display:flex}.page-shell__nav-list{gap:var(--spacing-2);flex-direction:column;display:flex}.page-shell__nav-empty{padding:var(--spacing-8) var(--spacing-12);color:var(--body-color-muted);font-size:var(--font-size-sm)}.page-shell__nav-row{color:var(--body-color-muted);font:inherit;cursor:pointer;align-items:center;gap:var(--spacing-8);width:100%;padding:0;padding:var(--spacing-8) var(--spacing-12);border-radius:var(--radius);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);text-align:left;background:0 0;border:0;display:flex}.page-shell__nav-row:hover{background-color:var(--list-hover-background-color);color:var(--body-color)}.page-shell__nav-row--active,.page-shell__nav-row--active:hover{background-color:var(--chip-selected-background-color);color:var(--chip-selected-color)}.page-shell__nav-label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.page-shell__nav-count{font-size:var(--font-size-xs);font-variant-numeric:tabular-nums;flex:none}.page-shell__rail{align-items:center;gap:var(--spacing-8);width:var(--spacing-80);height:100vh;padding:var(--spacing-16) var(--spacing-8);background-color:var(--card-background-color);border-right:1px solid var(--card-border-color);flex-direction:column;flex:none;display:flex;position:sticky;top:0}.page-shell__rail-item{color:var(--body-color-muted);font:inherit;cursor:pointer;align-items:center;gap:var(--spacing-4);width:100%;padding:0;padding:var(--spacing-8) var(--spacing-4);border-radius:var(--radius);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);background:0 0;border:0;flex-direction:column;display:flex}.page-shell__rail-item:hover{background-color:var(--list-hover-background-color);color:var(--body-color)}.page-shell__rail-item--active,.page-shell__rail-item--active:hover{background-color:var(--chip-selected-background-color);color:var(--chip-selected-color)}.page-shell__tabbar{z-index:25;padding-bottom:env(safe-area-inset-bottom,0px);background-color:var(--card-background-color);border-top:1px solid var(--card-border-color);display:flex;position:fixed;bottom:0;left:0;right:0}.page-shell__tab{color:var(--body-color-muted);font:inherit;cursor:pointer;justify-content:center;align-items:center;gap:var(--spacing-2);height:var(--spacing-60);font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);background:0 0;border:0;flex-direction:column;flex:1 1 0;padding:0;display:flex}.page-shell__tab .icon{padding:var(--spacing-2) var(--spacing-16);border-radius:var(--radius-full);transition:background-color var(--transition-fast)}.page-shell__tab--active{color:var(--body-accent-color);font-weight:var(--font-weight-semibold)}.page-shell__tab--active .icon{background-color:var(--chip-selected-background-color);color:var(--chip-selected-color)}.page-shell--with-tabs .page-shell__fab{bottom:calc(var(--spacing-60) + var(--spacing-16) + env(safe-area-inset-bottom,0px))}.page-shell--with-tabs .page-shell__content{padding-bottom:calc(var(--spacing-60) + var(--spacing-80) + env(safe-area-inset-bottom,0px))}.page-shell__nav-group{padding:var(--spacing-12) var(--spacing-12) var(--spacing-4);color:var(--body-color-muted);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);text-transform:uppercase}.page-shell__nav-group--toggle{align-items:center;gap:var(--spacing-8);border-radius:var(--radius);text-align:left;cursor:pointer;background:0 0;border:0;width:100%;font-family:inherit;display:flex}.page-shell__nav-group--toggle:hover{color:var(--body-color)}.page-shell__nav-group-label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.page-shell__nav-icon{flex:none;display:inline-flex}.page-shell__aside{box-sizing:border-box}.page-shell__aside--docked{width:var(--spacing-400);height:100vh;padding:var(--spacing-16);background-color:var(--card-background-color);border-left:1px solid var(--card-border-color);flex:none;position:sticky;top:0;overflow-y:auto}.page-shell__aside--stacked{padding:0 var(--spacing-16) var(--spacing-16)}.page-shell__footer{z-index:15;padding:var(--spacing-8) var(--spacing-12);background-color:var(--card-background-color);border:1px solid var(--card-border-color);border-radius:var(--radius);box-shadow:0 calc(var(--spacing-4) * -1) var(--spacing-12) var(--box-shadow);position:sticky;bottom:0}.page-shell--phone .page-shell__footer{margin:0 var(--spacing-8)}.page-shell--with-tabs .page-shell__footer{bottom:calc(var(--spacing-60) + env(safe-area-inset-bottom,0px))}.page-shell--focus{flex-direction:column}.page-shell--focus .page-shell__main{width:100%}
@@ -6,27 +6,27 @@ import { useBreakpoint as G } from "../../hooks/useBreakpoint.js";
6
6
  import { Drawer as J } from "../Drawer/Drawer2.js";
7
7
  import { useAppFrame as K } from "./useAppFrame.js";
8
8
  import { countActiveFilters as Q } from "./filterRules.js";
9
- import { getButtonActions as U, getMenuItems as I } from "./menuItems.js";
9
+ import { getButtonActions as U, getMenuItems as y } from "./menuItems.js";
10
10
  import { getHeadingText as X, getResultLabel as Y, hasViewExtras as Z } from "./shellText.js";
11
- import { ActionButton as N, AppMark as O, PageMenu as P, PagePager as $, PageTabsRow as ee, SortDropdown as ae, ViewOptions as T, ViewToggle as se } from "./PageParts.js";
11
+ import { ActionButton as N, AppMark as I, PageMenu as P, PagePager as $, PageTabsRow as ee, SortDropdown as ae, ViewOptions as T, ViewToggle as se } from "./PageParts.js";
12
12
  import { useConfirmedActions as le } from "./useConfirmedActions.js";
13
13
  import { NavRail as te, SideNav as ie } from "./AppNav.js";
14
- import { AppliedFilters as re, FilterSections as oe } from "./FilterSections.js";
14
+ import { AppliedFilters as oe, FilterSections as re } from "./FilterSections.js";
15
15
  import { WorkbenchPhone as ne } from "./WorkbenchPhone.js";
16
16
  import { useState as ce } from "react";
17
17
  import { jsx as e, jsxs as s } from "react/jsx-runtime";
18
18
  var Me = (i) => {
19
- const { isMobile: B, isTablet: a } = G(), l = q(H), t = K(), [D, g] = ce(!1), { primaryAction: p, actions: _, dialog: W } = le(i.primaryAction, i.actions ?? []);
19
+ const { isMobile: B, isTablet: a } = G(), t = q(H), l = K(), [D, g] = ce(!1), { primaryAction: p, actions: _, dialog: W } = le(i.primaryAction, i.actions ?? []);
20
20
  if (B) return /* @__PURE__ */ e(ne, { ...i });
21
- const { title: j, counts: b, search: o, sort: k, view: r, filters: h = [], values: u = {}, onFilterChange: w = () => {
22
- }, onClearFilters: n, pagination: R, tabs: V, aside: d, footer: C, children: L } = i, A = i.status ?? t?.status, F = X(i, l), E = Y(i, l), m = Q(h, u), f = h.length > 0, x = t?.menuItems ?? [], c = t?.nav ?? [], M = /* @__PURE__ */ e(oe, {
21
+ const { title: j, counts: b, search: r, sort: k, view: o, filters: h = [], values: u = {}, onFilterChange: w = () => {
22
+ }, onClearFilters: n, pagination: R, tabs: V, aside: m, footer: C, children: L } = i, A = i.status ?? l?.status, F = X(i, t), E = Y(i, t), d = Q(h, u), f = h.length > 0, x = l?.menuItems ?? [], c = l?.nav ?? [], M = /* @__PURE__ */ e(re, {
23
23
  filters: h,
24
24
  values: u,
25
25
  context: "panel",
26
26
  onFilterChange: w
27
- }), S = m > 0 && /* @__PURE__ */ e("span", {
27
+ }), O = d > 0 && /* @__PURE__ */ e("span", {
28
28
  className: "page-shell__badge",
29
- children: m
29
+ children: d
30
30
  });
31
31
  return /* @__PURE__ */ s("div", {
32
32
  className: [
@@ -38,12 +38,16 @@ var Me = (i) => {
38
38
  !a && /* @__PURE__ */ s("aside", {
39
39
  className: "page-shell__side",
40
40
  children: [
41
- t && /* @__PURE__ */ e(O, { app: t.app }),
41
+ l && /* @__PURE__ */ e(I, { app: l.app }),
42
42
  p && /* @__PURE__ */ e(N, {
43
43
  action: p,
44
44
  fullWidth: !0
45
45
  }),
46
- c.length > 1 && /* @__PURE__ */ e(ie, { nav: c }),
46
+ c.length > 1 && /* @__PURE__ */ e(ie, {
47
+ nav: c,
48
+ appName: l?.app.name,
49
+ options: l?.navOptions
50
+ }),
47
51
  f && /* @__PURE__ */ s("div", {
48
52
  className: "page-shell__side-group",
49
53
  children: [/* @__PURE__ */ s("div", {
@@ -51,24 +55,24 @@ var Me = (i) => {
51
55
  children: [
52
56
  /* @__PURE__ */ e("span", {
53
57
  className: "page-shell__group-title",
54
- children: l.filters
58
+ children: t.filters
55
59
  }),
56
- S,
60
+ O,
57
61
  /* @__PURE__ */ e("span", { className: "page-shell__spacer" }),
58
- m > 0 && n && /* @__PURE__ */ e("button", {
62
+ d > 0 && n && /* @__PURE__ */ e("button", {
59
63
  type: "button",
60
64
  className: "page-shell__link",
61
65
  onClick: n,
62
- children: l.pageClearAll
66
+ children: t.pageClearAll
63
67
  })
64
68
  ]
65
69
  }), M]
66
70
  }),
67
- r && /* @__PURE__ */ e(T, { view: r })
71
+ o && /* @__PURE__ */ e(T, { view: o })
68
72
  ]
69
73
  }),
70
74
  a && c.length > 1 && /* @__PURE__ */ e(te, {
71
- app: t?.app,
75
+ app: l?.app,
72
76
  nav: c
73
77
  }),
74
78
  /* @__PURE__ */ s("div", {
@@ -81,10 +85,10 @@ var Me = (i) => {
81
85
  icon: "tune",
82
86
  variant: "default",
83
87
  onClick: () => g(!0),
84
- children: [l.filters, S]
88
+ children: [t.filters, O]
85
89
  }),
86
- a && t && c.length <= 1 && /* @__PURE__ */ e(O, {
87
- app: t.app,
90
+ a && l && c.length <= 1 && /* @__PURE__ */ e(I, {
91
+ app: l.app,
88
92
  logoOnly: !0
89
93
  }),
90
94
  /* @__PURE__ */ s("div", {
@@ -97,29 +101,29 @@ var Me = (i) => {
97
101
  children: F
98
102
  })]
99
103
  }),
100
- (!o || a) && /* @__PURE__ */ e("span", { className: "page-shell__spacer" }),
104
+ (!r || a) && /* @__PURE__ */ e("span", { className: "page-shell__spacer" }),
101
105
  a && p && /* @__PURE__ */ e(N, { action: p }),
102
106
  a && A,
103
- a && /* @__PURE__ */ e(P, { items: I(_, x, !0) }),
107
+ a && /* @__PURE__ */ e(P, { items: y(_, x, !0) }),
104
108
  a && /* @__PURE__ */ e("span", { className: "page-shell__break" }),
105
- o && /* @__PURE__ */ e(z, {
109
+ r && /* @__PURE__ */ e(z, {
106
110
  className: "page-shell__search",
107
- value: o.value,
108
- placeholder: o.placeholder ?? l.search,
109
- autoFocus: o.autoFocus,
110
- onChange: o.onChange
111
+ value: r.value,
112
+ placeholder: r.placeholder ?? t.search,
113
+ autoFocus: r.autoFocus,
114
+ onChange: r.onChange
111
115
  }),
112
116
  k && /* @__PURE__ */ e(ae, { sort: k }),
113
- a && r && /* @__PURE__ */ e(se, { view: r }),
114
- !a && U(_).map((y) => /* @__PURE__ */ e(N, { action: y }, y.id)),
117
+ a && o && /* @__PURE__ */ e(se, { view: o }),
118
+ !a && U(_).map((S) => /* @__PURE__ */ e(N, { action: S }, S.id)),
115
119
  !a && A,
116
- !a && /* @__PURE__ */ e(P, { items: I(_, x, !1) })
120
+ !a && /* @__PURE__ */ e(P, { items: y(_, x, !1) })
117
121
  ]
118
122
  }),
119
123
  /* @__PURE__ */ e(ee, { tabs: V }),
120
124
  /* @__PURE__ */ s("div", {
121
125
  className: "page-shell__status",
122
- children: [/* @__PURE__ */ e(re, {
126
+ children: [/* @__PURE__ */ e(oe, {
123
127
  filters: h,
124
128
  values: u,
125
129
  onFilterChange: w,
@@ -130,9 +134,9 @@ var Me = (i) => {
130
134
  className: "page-shell__content",
131
135
  children: L
132
136
  }),
133
- a && d && /* @__PURE__ */ e("div", {
137
+ a && m && /* @__PURE__ */ e("div", {
134
138
  className: "page-shell__aside page-shell__aside--stacked",
135
- children: d
139
+ children: m
136
140
  }),
137
141
  C && /* @__PURE__ */ e("div", {
138
142
  className: "page-shell__footer",
@@ -140,21 +144,21 @@ var Me = (i) => {
140
144
  })
141
145
  ]
142
146
  }),
143
- !a && d && /* @__PURE__ */ e("aside", {
147
+ !a && m && /* @__PURE__ */ e("aside", {
144
148
  className: "page-shell__aside page-shell__aside--docked",
145
- children: d
149
+ children: m
146
150
  }),
147
151
  a && f && /* @__PURE__ */ e(J, {
148
152
  isOpen: D,
149
153
  onClose: () => g(!1),
150
154
  position: "left",
151
- title: l.filters,
155
+ title: t.filters,
152
156
  footer: /* @__PURE__ */ s("div", {
153
157
  className: "page-shell__drawer-footer",
154
- children: [m > 0 && n && /* @__PURE__ */ e(v, {
158
+ children: [d > 0 && n && /* @__PURE__ */ e(v, {
155
159
  variant: "default",
156
160
  onClick: n,
157
- children: l.pageClearAll
161
+ children: t.pageClearAll
158
162
  }), b && /* @__PURE__ */ e(v, {
159
163
  variant: "info",
160
164
  fullWidth: !0,
@@ -164,8 +168,8 @@ var Me = (i) => {
164
168
  }),
165
169
  children: /* @__PURE__ */ s("div", {
166
170
  className: "page-shell__drawer-body",
167
- children: [M, r && Z(r) && /* @__PURE__ */ e(T, {
168
- view: r,
171
+ children: [M, o && Z(o) && /* @__PURE__ */ e(T, {
172
+ view: o,
169
173
  showToggle: !1
170
174
  })]
171
175
  })
@@ -1,11 +1,11 @@
1
1
  import { formatAppDate as d } from "../../helpers/Datetime.js";
2
- var A = 4, k = 24, v = 10, S = 8, M = 14, h = (t) => typeof t == "string" || typeof t == "number", u = (t) => Array.isArray(t) ? t.filter(h) : [], f = (t) => h(t) && t !== "" ? t : null, x = (t) => typeof t == "number" ? t : 0, y = (t, n, e) => {
2
+ var s = 4, v = 24, S = 10, k = 8, M = 14, c = (t) => typeof t == "string" || typeof t == "number", u = (t) => Array.isArray(t) ? t.filter(c) : [], f = (t) => c(t) && t !== "" ? t : null, x = (t) => typeof t == "number" ? t : 0, y = (t, n, e) => {
3
3
  const [r, i] = u(t);
4
4
  return [typeof r == "number" ? r : n, typeof i == "number" ? i : e];
5
- }, b = (t) => {
5
+ }, $ = (t) => {
6
6
  const [n, e] = u(t);
7
7
  return [typeof n == "string" ? n : "", typeof e == "string" ? e : ""];
8
- }, C = (t) => typeof t == "object" && t !== null && !Array.isArray(t), c = (t) => C(t) ? t : { text: "" }, w = (t, n) => t.wordMatch ? [{
8
+ }, w = (t) => typeof t == "object" && t !== null && !Array.isArray(t), g = (t) => w(t) ? t : { text: "" }, C = (t, n) => t.wordMatch ? [{
9
9
  value: "or",
10
10
  label: n.anyWord
11
11
  }, {
@@ -28,8 +28,8 @@ var A = 4, k = 24, v = 10, S = 8, M = 14, h = (t) => typeof t == "string" || typ
28
28
  default:
29
29
  return null;
30
30
  }
31
- }, g = (t) => JSON.stringify(Array.isArray(t) ? [...t].map(String).sort() : t ?? null), $ = (t, n) => {
32
- if (t.defaultValue !== void 0) return g(n) !== g(t.defaultValue);
31
+ }, h = (t) => JSON.stringify(Array.isArray(t) ? [...t].map(String).sort() : t ?? null), b = (t, n) => {
32
+ if (t.defaultValue !== void 0) return h(n) !== h(t.defaultValue);
33
33
  switch (t.kind) {
34
34
  case "single":
35
35
  case "date":
@@ -45,21 +45,16 @@ var A = 4, k = 24, v = 10, S = 8, M = 14, h = (t) => typeof t == "string" || typ
45
45
  case "toggle":
46
46
  return n === !0;
47
47
  case "text":
48
- return c(n).text.trim() !== "";
48
+ return g(n).text.trim() !== "";
49
49
  case "date-range":
50
- return b(n).some((e) => e !== "");
50
+ return $(n).some((e) => e !== "");
51
51
  }
52
- }, T = (t, n) => t.filter((e) => $(e, n[e.id])).length, m = (t, n) => t.find((e) => e.value === n)?.label ?? String(n), _ = (t, n) => {
52
+ }, _ = (t, n) => t.filter((e) => b(e, n[e.id])).length, m = (t, n) => t.find((e) => e.value === n)?.label ?? String(n), V = (t, n = 0) => t.length <= s && t.reduce((e, r) => e + r.length, n) <= v, D = (t, n) => {
53
53
  if (t.kind !== "single" && t.kind !== "multi") return null;
54
54
  if (t.control) return t.control;
55
55
  const e = t.options.length;
56
- if (t.kind === "single") {
57
- if (e > v) return "search-list";
58
- const r = t.options.reduce((i, l) => i + l.label.length, 3);
59
- return e <= A && r <= k ? "segmented" : n === "sheet" ? "chips" : "radio";
60
- }
61
- return e > M ? "search-list" : e <= S || n === "sheet" ? "chips" : "checklist";
62
- }, V = (t, n, e) => {
56
+ return t.kind === "single" ? e > S ? "search-list" : V(t.options.map((r) => r.label), 3) ? "segmented" : n === "sheet" ? "chips" : "radio" : e > M ? "search-list" : e <= k || n === "sheet" ? "chips" : "checklist";
57
+ }, I = (t, n, e) => {
63
58
  switch (t.kind) {
64
59
  case "single": {
65
60
  const r = f(n);
@@ -82,7 +77,7 @@ var A = 4, k = 24, v = 10, S = 8, M = 14, h = (t) => typeof t == "string" || typ
82
77
  case "toggle":
83
78
  return t.label;
84
79
  case "text": {
85
- const { text: r, mode: i } = c(n), l = w(t, e), o = l && i !== l[0]?.value ? l.find((a) => a.value === i)?.label : void 0;
80
+ const { text: r, mode: i } = g(n), l = C(t, e), o = l && i !== l[0]?.value ? l.find((a) => a.value === i)?.label : void 0;
86
81
  return o ? `“${r.trim()}” · ${o}` : `“${r.trim()}”`;
87
82
  }
88
83
  case "date": {
@@ -92,13 +87,13 @@ var A = 4, k = 24, v = 10, S = 8, M = 14, h = (t) => typeof t == "string" || typ
92
87
  return t.relation === "until" ? e.dateUntil(i) : e.dateSince(i);
93
88
  }
94
89
  case "date-range": {
95
- const [r, i] = b(n);
90
+ const [r, i] = $(n);
96
91
  return r && i ? `${d(r)} – ${d(i)}` : r ? e.dateSince(d(r)) : i ? e.dateUntil(d(i)) : "";
97
92
  }
98
93
  }
99
- }, D = (t, n, e) => t.flatMap((r) => {
94
+ }, F = (t, n, e) => t.flatMap((r) => {
100
95
  const i = n[r.id];
101
- if (!$(r, i)) return [];
96
+ if (!b(r, i)) return [];
102
97
  if (r.kind === "multi" && r.chips === "excluded") {
103
98
  const o = u(i);
104
99
  return r.options.filter((a) => !o.includes(a.value)).map((a) => ({
@@ -114,35 +109,36 @@ var A = 4, k = 24, v = 10, S = 8, M = 14, h = (t) => typeof t == "string" || typ
114
109
  key: `${r.id}:${a}`,
115
110
  filterId: r.id,
116
111
  label: m(r.options, a),
117
- next: o.filter((s) => s !== a)
112
+ next: o.filter((A) => A !== a)
118
113
  }));
119
114
  }
120
115
  const l = r.kind === "text" ? {
121
- ...c(i),
116
+ ...g(i),
122
117
  text: ""
123
118
  } : E(r);
124
119
  return [{
125
120
  key: r.id,
126
121
  filterId: r.id,
127
- label: V(r, i, e),
122
+ label: I(r, i, e),
128
123
  next: l
129
124
  }];
130
125
  });
131
126
  export {
132
- T as countActiveFilters,
127
+ _ as countActiveFilters,
133
128
  E as defaultFilterValue,
134
- V as filterSummary,
135
- D as getAppliedFilters,
136
- w as getTextModes,
137
- $ as isFilterActive,
138
- h as isScalar,
139
- C as isTextFilterValue,
129
+ I as filterSummary,
130
+ V as fitsSegmented,
131
+ F as getAppliedFilters,
132
+ C as getTextModes,
133
+ b as isFilterActive,
134
+ c as isScalar,
135
+ w as isTextFilterValue,
140
136
  m as optionLabel,
141
- _ as pickControl,
142
- b as toDateRange,
137
+ D as pickControl,
138
+ $ as toDateRange,
143
139
  u as toList,
144
140
  x as toNumber,
145
141
  y as toRange,
146
142
  f as toScalar,
147
- c as toText
143
+ g as toText
148
144
  };
@@ -23,7 +23,7 @@ var r = (i) => {
23
23
  const o = {
24
24
  ...i,
25
25
  lib: d,
26
- libBuildNumber: 678,
26
+ libBuildNumber: 686,
27
27
  libCommit: n,
28
28
  libBuildDate: t
29
29
  };
package/dist/index.d.ts CHANGED
@@ -166,6 +166,8 @@ export declare interface AppFrameProps {
166
166
  app: AppIdentity;
167
167
  /** The app's sections. With react-router, RouterAppFrame from '@memobit/libs/router' builds these from paths. */
168
168
  nav?: AppNavItem[];
169
+ /** Search and folding groups for the desktop side list. */
170
+ navOptions?: AppNavOptions;
169
171
  /** Adds the account menu (theme, password, two-factor, logout) and mounts the dialogs it opens. Needs an AuthProvider above. */
170
172
  account?: UseAccountMenuOptions;
171
173
  /** For apps without sign-in: adds just the Theme entry and its dialog. `account` already includes it. */
@@ -226,6 +228,14 @@ export declare interface AppNavItem {
226
228
  onSelect: () => void;
227
229
  }
228
230
 
231
+ /** Extras for the desktop side list, for apps with many sections. */
232
+ export declare interface AppNavOptions {
233
+ /** Shows a box above the side list that narrows the sections by label or group; the text is its placeholder. */
234
+ search?: string;
235
+ /** Lets each group heading fold its sections away; remembered per app. A folded group still shows its current section. */
236
+ collapsibleGroups?: boolean;
237
+ }
238
+
229
239
  export declare interface AppPersistenceDefaults<TPages, TTheme> {
230
240
  pages?: TPages;
231
241
  theme: TTheme;
package/dist/router.d.ts CHANGED
@@ -13,6 +13,8 @@ declare interface AppFrameProps {
13
13
  app: AppIdentity;
14
14
  /** The app's sections. With react-router, RouterAppFrame from '@memobit/libs/router' builds these from paths. */
15
15
  nav?: AppNavItem[];
16
+ /** Search and folding groups for the desktop side list. */
17
+ navOptions?: AppNavOptions;
16
18
  /** Adds the account menu (theme, password, two-factor, logout) and mounts the dialogs it opens. Needs an AuthProvider above. */
17
19
  account?: UseAccountMenuOptions;
18
20
  /** For apps without sign-in: adds just the Theme entry and its dialog. `account` already includes it. */
@@ -53,6 +55,14 @@ declare interface AppNavItem {
53
55
  onSelect: () => void;
54
56
  }
55
57
 
58
+ /** Extras for the desktop side list, for apps with many sections. */
59
+ declare interface AppNavOptions {
60
+ /** Shows a box above the side list that narrows the sections by label or group; the text is its placeholder. */
61
+ search?: string;
62
+ /** Lets each group heading fold its sections away; remembered per app. A folded group still shows its current section. */
63
+ collapsibleGroups?: boolean;
64
+ }
65
+
56
66
  export declare interface AppRouteNavItem {
57
67
  path: string;
58
68
  label: string;
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
- var I = "4.0.0", B = 678, L = "42fdb7e", _ = "2026-11-08T16:08:44.618Z", r = "678";
1
+ var I = "4.1.1", B = 686, L = "9b53e81", _ = "2026-11-12T05:29:51.778Z", r = "686";
2
2
  export {
3
3
  _ as LIB_BUILD_DATE,
4
4
  r as LIB_BUILD_ID,
package/dist/version.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "4.0.0",
3
- "buildNumber": 678,
4
- "commit": "42fdb7e",
5
- "buildDate": "2026-11-08T16:08:44.618Z"
2
+ "version": "4.1.1",
3
+ "buildNumber": 686,
4
+ "commit": "9b53e81",
5
+ "buildDate": "2026-11-12T05:29:51.778Z"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memobit/libs",
3
- "version": "4.0.0",
3
+ "version": "4.1.1",
4
4
  "description": "React component library powering the Memobit apps — 100+ components, helpers and hooks. Icons ship as @memobit/icons and themes as @memobit/themes. TypeScript-first, ESM-only, React 19.",
5
5
  "keywords": [
6
6
  "react",
@@ -139,7 +139,7 @@
139
139
  "fast-uri@3": "3.1.9",
140
140
  "immutable": "5.1.9",
141
141
  "js-yaml": "4.3.2",
142
- "minimatch@10": "10.2.6",
142
+ "minimatch@10": "11.0.5",
143
143
  "nanoid@3": "3.3.18",
144
144
  "picomatch@2": "2.3.2",
145
145
  "postcss": "8.5.28",