@memobit/libs 3.35.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DataView/DataView2.js +46 -46
- package/dist/components/PageShell/AppNav.js +38 -27
- package/dist/components/PageShell/FilterField.css +1 -1
- package/dist/components/PageShell/FilterField2.js +243 -190
- package/dist/components/PageShell/FocusShell.js +60 -0
- package/dist/components/PageShell/PageParts.js +176 -155
- package/dist/components/PageShell/PageShell.css +1 -1
- package/dist/components/PageShell/PageShell2.js +11 -6
- package/dist/components/PageShell/WorkbenchPhone.js +75 -65
- package/dist/components/PageShell/WorkbenchShell.js +78 -64
- package/dist/components/PageShell/shellText.js +1 -1
- package/dist/components/PageShell/useConfirmedActions.js +35 -0
- package/dist/components/RouterAppFrame/RouterAppFrame.js +18 -16
- package/dist/components/ThemeSettings/ThemeContext.js +26 -26
- package/dist/components/ThemeSettings/ThemeContextValue.js +2 -1
- package/dist/components/ThemeSettings/getDefaultThemeForApp.js +5 -4
- package/dist/helpers/VersionInfo.js +1 -1
- package/dist/index.d.ts +60 -9
- package/dist/router.d.ts +11 -2
- package/dist/version.js +1 -1
- package/dist/version.json +4 -4
- package/package.json +2 -2
|
@@ -20,24 +20,24 @@ import { TableView as Pt } from "./DataView.TableView.js";
|
|
|
20
20
|
/* empty css */
|
|
21
21
|
import { useCallback as Ge, useEffect as Lt, useMemo as D, useRef as Pe, useState as _ } from "react";
|
|
22
22
|
import { Fragment as Vt, jsx as r, jsxs as M } from "react/jsx-runtime";
|
|
23
|
-
function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1, onSelectionChange: Le, selectedIds:
|
|
24
|
-
const f = ht(pt), { language: Ze } = gt(), { isMobile:
|
|
23
|
+
function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1, onSelectionChange: Le, selectedIds: te, pageSizeOptions: Ve = De, initialPageSize: Ae = De[1], showPageSize: U = !0, card: Be, actions: oe, actionsWidth: Re, timeline: h, onRowClick: ne, rowHref: se, rowClassName: re, rowDetail: xe, empty: ie, initialSortKey: $e = null, initialSortDirection: ze = "asc", sortKey: K, sortDirection: ae, onSortChange: Fe, miniSort: B, showCardSortControls: We = !0, desktopView: le = "table", cardMaxWidth: Ue, className: k, onPageChange: ce, onPageSizeChange: Ke, currentPage: X, totalItems: de, group: i, showResultsCount: Xe, totalCount: je, itemNoun: Oe, columnSelector: j, animateChanges: He = !0, highlightIds: v }) {
|
|
24
|
+
const f = ht(pt), { language: Ze } = gt(), { isMobile: ue } = yt(), R = Pe(null), x = _t(R, {
|
|
25
25
|
enabled: He && W !== void 0,
|
|
26
26
|
highlightKeys: v
|
|
27
|
-
}), [qe, Je] = _($e), [Qe, Ye] = _(ze), [Ie, et] = _([]), m =
|
|
27
|
+
}), [qe, Je] = _($e), [Qe, Ye] = _(ze), [Ie, et] = _([]), m = te ?? Ie, [tt, ot] = _(1), O = X ?? tt, [w, nt] = _(Ae), [fe, st] = _(() => l.reduce((e, t) => (t.width && (e[t.key] = t.width), e), {})), [me, rt] = _(/* @__PURE__ */ new Set()), pe = (e) => {
|
|
28
28
|
x.forceNext(), rt((t) => {
|
|
29
29
|
const s = new Set(t);
|
|
30
30
|
return s.has(e) ? s.delete(e) : s.add(e), s;
|
|
31
31
|
});
|
|
32
32
|
}, c = Ge((e, t) => W?.(e, t) ?? t, [W]), P = Ge((e) => {
|
|
33
|
-
e !== O && x.skipNext(), X === void 0 && ot(e),
|
|
33
|
+
e !== O && x.skipNext(), X === void 0 && ot(e), ce?.(e);
|
|
34
34
|
}, [
|
|
35
35
|
X,
|
|
36
36
|
O,
|
|
37
37
|
x,
|
|
38
|
-
|
|
39
|
-
]), d = K !== void 0 ? K : qe, u =
|
|
40
|
-
K === void 0 && Je(e),
|
|
38
|
+
ce
|
|
39
|
+
]), d = K !== void 0 ? K : qe, u = ae ?? Qe, T = (e, t) => {
|
|
40
|
+
K === void 0 && Je(e), ae === void 0 && Ye(t), Fe?.({
|
|
41
41
|
key: e,
|
|
42
42
|
direction: t
|
|
43
43
|
}), P(1);
|
|
@@ -73,7 +73,7 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
73
73
|
$,
|
|
74
74
|
g,
|
|
75
75
|
c
|
|
76
|
-
]), N =
|
|
76
|
+
]), N = de !== void 0, b = D(() => {
|
|
77
77
|
if (!i || N) return H;
|
|
78
78
|
const e = /* @__PURE__ */ new Map(), t = [];
|
|
79
79
|
H.forEach((o) => {
|
|
@@ -94,7 +94,7 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
94
94
|
i,
|
|
95
95
|
N,
|
|
96
96
|
H
|
|
97
|
-
]), z = N ?
|
|
97
|
+
]), z = N ? de : b.length, Z = Math.max(1, Math.ceil(z / w)), E = Math.min(O, Z), S = N ? b : b.slice((E - 1) * w, E * w), ge = Pe(void 0);
|
|
98
98
|
Lt(() => {
|
|
99
99
|
if (!v || v.length === 0 || N || ge.current === v) return;
|
|
100
100
|
const e = b.findIndex((s, o) => v.includes(c(s, o)));
|
|
@@ -111,7 +111,7 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
111
111
|
c,
|
|
112
112
|
E
|
|
113
113
|
]);
|
|
114
|
-
const
|
|
114
|
+
const q = Xe ?? Z > 1 ? Ct(w, z, je ?? z, E, Oe, Ze) : null, J = D(() => {
|
|
115
115
|
if (!i) return null;
|
|
116
116
|
const e = /* @__PURE__ */ new Map();
|
|
117
117
|
return b.forEach((t) => {
|
|
@@ -119,7 +119,7 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
119
119
|
e.set(s, (e.get(s) ?? 0) + 1);
|
|
120
120
|
}), e;
|
|
121
121
|
}, [i, b]), he = D(() => {
|
|
122
|
-
if (!i || !
|
|
122
|
+
if (!i || !J) return null;
|
|
123
123
|
const e = /* @__PURE__ */ new Map(), t = [];
|
|
124
124
|
S.forEach((o) => {
|
|
125
125
|
const n = i.groupBy(o), a = e.get(n);
|
|
@@ -129,12 +129,12 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
129
129
|
key: o,
|
|
130
130
|
label: i.groupLabel(o),
|
|
131
131
|
items: e.get(o),
|
|
132
|
-
totalCount:
|
|
132
|
+
totalCount: J.get(o) ?? 0
|
|
133
133
|
}));
|
|
134
134
|
return i.sortGroups ? s.sort(i.sortGroups) : s.sort((o, n) => o.key === null ? 1 : n.key === null ? -1 : 0), s;
|
|
135
135
|
}, [
|
|
136
136
|
i,
|
|
137
|
-
|
|
137
|
+
J,
|
|
138
138
|
S
|
|
139
139
|
]), ve = D(() => {
|
|
140
140
|
if (!h) return /* @__PURE__ */ new Map();
|
|
@@ -144,14 +144,14 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
144
144
|
}));
|
|
145
145
|
return Tt(e, h.granularity);
|
|
146
146
|
}, [S, h]), F = (e) => {
|
|
147
|
-
|
|
147
|
+
te === void 0 && et(e), Le?.(A.filter((t, s) => e.includes(c(t, s))));
|
|
148
148
|
}, we = (e, t) => {
|
|
149
149
|
F(t ? [...m, e] : m.filter((s) => s !== e));
|
|
150
150
|
}, it = (e) => {
|
|
151
151
|
e.sortable && (d === e.key ? T(e.key, u === "asc" ? "desc" : "asc") : T(e.key, "asc"));
|
|
152
152
|
}, at = (e, t) => {
|
|
153
153
|
e.preventDefault();
|
|
154
|
-
const s = e.clientX, o =
|
|
154
|
+
const s = e.clientX, o = fe[t] ?? 150, n = (L) => {
|
|
155
155
|
const y = L.clientX - s, V = l.find((C) => C.key === t)?.minWidth ?? 120;
|
|
156
156
|
st((C) => ({
|
|
157
157
|
...C,
|
|
@@ -161,30 +161,30 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
161
161
|
window.removeEventListener("mousemove", n), window.removeEventListener("mouseup", a);
|
|
162
162
|
};
|
|
163
163
|
window.addEventListener("mousemove", n), window.addEventListener("mouseup", a);
|
|
164
|
-
}, be = l.some((e) => e.filter),
|
|
164
|
+
}, be = l.some((e) => e.filter), Q = l.filter((e) => e.sortable), lt = Q.map((e) => ({
|
|
165
165
|
label: Nt(e),
|
|
166
166
|
value: e.key
|
|
167
|
-
})), ct =
|
|
167
|
+
})), ct = Q.length > 0, Y = d ? Q.find((e) => e.key === d) : void 0, dt = B?.align ?? "left", Se = (B?.columns ?? B?.column ?? []).length > 0 ? /* @__PURE__ */ r(Gt, {
|
|
168
168
|
columns: l,
|
|
169
169
|
config: B,
|
|
170
170
|
sortKey: d,
|
|
171
171
|
sortDirection: u,
|
|
172
172
|
onSort: T
|
|
173
|
-
}) : null, ye = j && j.options.length > 0 ? /* @__PURE__ */ r(Dt, { config: j }) : null, p = S.map(c),
|
|
173
|
+
}) : null, ye = j && j.options.length > 0 ? /* @__PURE__ */ r(Dt, { config: j }) : null, p = S.map(c), I = p.filter((e) => m.includes(e)).length, ee = !!G && p.length > 0 && I === p.length, Ce = !!G && I > 0 && I < p.length, _e = (e) => {
|
|
174
174
|
F(e ? [...m, ...p.filter((t) => !m.includes(t))] : m.filter((t) => !p.includes(t)));
|
|
175
175
|
}, ut = G && p.length > 0 ? /* @__PURE__ */ M("label", {
|
|
176
176
|
className: "data-view__select-all",
|
|
177
177
|
children: [/* @__PURE__ */ r(bt, {
|
|
178
|
-
checked:
|
|
178
|
+
checked: ee,
|
|
179
179
|
indeterminate: Ce,
|
|
180
180
|
onChange: _e
|
|
181
|
-
}), /* @__PURE__ */ r("span", { children:
|
|
182
|
-
}) : null, Me = (e) =>
|
|
181
|
+
}), /* @__PURE__ */ r("span", { children: ee ? f.clearSelection : f.selectThese(p.length) })]
|
|
182
|
+
}) : null, Me = (e) => q || Se || ye || e ? /* @__PURE__ */ M("div", {
|
|
183
183
|
className: `data-view__top-row data-view__top-row--mini-${dt}`,
|
|
184
184
|
children: [
|
|
185
|
-
|
|
185
|
+
q && /* @__PURE__ */ r("div", {
|
|
186
186
|
className: "data-view__results-count",
|
|
187
|
-
children:
|
|
187
|
+
children: q
|
|
188
188
|
}),
|
|
189
189
|
e,
|
|
190
190
|
Se,
|
|
@@ -192,7 +192,7 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
192
192
|
]
|
|
193
193
|
}) : null, ke = Me(), Te = /* @__PURE__ */ r(kt, {
|
|
194
194
|
currentPage: E,
|
|
195
|
-
totalPages:
|
|
195
|
+
totalPages: Z,
|
|
196
196
|
totalItems: z,
|
|
197
197
|
onPageChange: P,
|
|
198
198
|
pageSizeOptions: U ? Ve : void 0,
|
|
@@ -201,7 +201,7 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
201
201
|
x.skipNext(), nt(e), P(1), Ke?.(e);
|
|
202
202
|
} : void 0
|
|
203
203
|
});
|
|
204
|
-
if (
|
|
204
|
+
if (le !== "cards" && l.length === 0) return /* @__PURE__ */ M("div", {
|
|
205
205
|
className: `data-view${k ? ` ${k}` : ""}`,
|
|
206
206
|
ref: R,
|
|
207
207
|
children: [ke, /* @__PURE__ */ r("div", {
|
|
@@ -212,7 +212,7 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
212
212
|
})
|
|
213
213
|
})]
|
|
214
214
|
});
|
|
215
|
-
if (
|
|
215
|
+
if (le === "cards") return /* @__PURE__ */ M("div", {
|
|
216
216
|
className: `data-view data-view--cards${k ? ` ${k}` : ""}`,
|
|
217
217
|
ref: R,
|
|
218
218
|
children: [
|
|
@@ -242,9 +242,9 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
242
242
|
title: u === "asc" ? f.sortDescending : f.sortAscending,
|
|
243
243
|
children: /* @__PURE__ */ r(vt, {
|
|
244
244
|
className: "data-view__card-sort-direction",
|
|
245
|
-
disabled: !
|
|
245
|
+
disabled: !Y,
|
|
246
246
|
onClick: () => {
|
|
247
|
-
|
|
247
|
+
Y && T(Y.key, u === "asc" ? "desc" : "asc");
|
|
248
248
|
},
|
|
249
249
|
variant: "ghost",
|
|
250
250
|
children: /* @__PURE__ */ r(mt, { name: u === "asc" ? "arrow-up" : "arrow-down" })
|
|
@@ -263,28 +263,28 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
263
263
|
columns: l,
|
|
264
264
|
rowKey: c,
|
|
265
265
|
card: Be,
|
|
266
|
-
actions:
|
|
266
|
+
actions: oe,
|
|
267
267
|
timeline: h,
|
|
268
|
-
onRowClick:
|
|
269
|
-
rowHref:
|
|
270
|
-
rowClassName:
|
|
271
|
-
empty:
|
|
268
|
+
onRowClick: ne,
|
|
269
|
+
rowHref: se,
|
|
270
|
+
rowClassName: re,
|
|
271
|
+
empty: ie,
|
|
272
272
|
selectable: G,
|
|
273
273
|
selectedIds: m,
|
|
274
274
|
pinnedIds: g,
|
|
275
275
|
cardMaxWidth: Ue,
|
|
276
|
-
isMobile:
|
|
276
|
+
isMobile: ue,
|
|
277
277
|
groups: he ?? void 0,
|
|
278
278
|
showGroupCount: i?.showCount !== !1,
|
|
279
279
|
collapsible: i?.collapsible,
|
|
280
|
-
collapsedGroups:
|
|
281
|
-
onToggleGroup:
|
|
280
|
+
collapsedGroups: me,
|
|
281
|
+
onToggleGroup: pe,
|
|
282
282
|
onToggleSelect: we
|
|
283
283
|
}),
|
|
284
284
|
Te
|
|
285
285
|
]
|
|
286
286
|
});
|
|
287
|
-
const ft = l.filter((e) => !e.hideInTable && !(
|
|
287
|
+
const ft = l.filter((e) => !e.hideInTable && !(ue && e.hideInMobile)), Ne = h && ve.size > 0, Ee = /* @__PURE__ */ M(Vt, { children: [
|
|
288
288
|
ke,
|
|
289
289
|
/* @__PURE__ */ r("div", {
|
|
290
290
|
className: "data-view__wrapper",
|
|
@@ -292,7 +292,7 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
292
292
|
data: S,
|
|
293
293
|
columns: ft,
|
|
294
294
|
rowKey: c,
|
|
295
|
-
columnWidths:
|
|
295
|
+
columnWidths: fe,
|
|
296
296
|
onResizeStart: at,
|
|
297
297
|
sortKey: d,
|
|
298
298
|
sortDirection: u,
|
|
@@ -302,22 +302,22 @@ function oo({ columns: l, data: A, rowKey: W, pinnedIds: g, selectable: G = !1,
|
|
|
302
302
|
timelineMarkers: ve,
|
|
303
303
|
selectable: G,
|
|
304
304
|
selectedIds: m,
|
|
305
|
-
allVisibleSelected:
|
|
305
|
+
allVisibleSelected: ee,
|
|
306
306
|
someVisibleSelected: Ce,
|
|
307
307
|
onToggleVisibleSelection: _e,
|
|
308
308
|
onToggleSelect: we,
|
|
309
309
|
pinnedSet: $,
|
|
310
|
-
actions:
|
|
310
|
+
actions: oe,
|
|
311
311
|
actionsWidth: Re,
|
|
312
|
-
onRowClick:
|
|
313
|
-
rowHref:
|
|
314
|
-
rowClassName:
|
|
312
|
+
onRowClick: ne,
|
|
313
|
+
rowHref: se,
|
|
314
|
+
rowClassName: re,
|
|
315
315
|
rowDetail: xe,
|
|
316
|
-
empty:
|
|
316
|
+
empty: ie,
|
|
317
317
|
groups: he,
|
|
318
318
|
group: i,
|
|
319
|
-
collapsedGroups:
|
|
320
|
-
onToggleGroup:
|
|
319
|
+
collapsedGroups: me,
|
|
320
|
+
onToggleGroup: pe
|
|
321
321
|
})
|
|
322
322
|
}),
|
|
323
323
|
Te
|
|
@@ -1,55 +1,66 @@
|
|
|
1
|
-
import { Icon as
|
|
2
|
-
import { AppMark as
|
|
3
|
-
import {
|
|
4
|
-
|
|
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", {
|
|
6
|
+
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
|
|
11
|
+
})
|
|
12
|
+
}), g = ({ nav: l }) => /* @__PURE__ */ e("nav", {
|
|
5
13
|
className: "page-shell__side-nav",
|
|
6
|
-
children:
|
|
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", {
|
|
7
18
|
type: "button",
|
|
8
|
-
className:
|
|
19
|
+
className: s("page-shell__nav-row", a),
|
|
9
20
|
onClick: a.onSelect,
|
|
10
21
|
children: [
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
22
|
+
/* @__PURE__ */ e(c, {
|
|
23
|
+
item: a,
|
|
13
24
|
size: "sm"
|
|
14
25
|
}),
|
|
15
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ e("span", {
|
|
16
27
|
className: "page-shell__nav-label",
|
|
17
28
|
children: a.label
|
|
18
29
|
}),
|
|
19
|
-
a.count !== void 0 && /* @__PURE__ */
|
|
30
|
+
a.count !== void 0 && /* @__PURE__ */ e("span", {
|
|
20
31
|
className: "page-shell__nav-count",
|
|
21
32
|
children: a.count
|
|
22
33
|
})
|
|
23
34
|
]
|
|
24
|
-
}, a.id))
|
|
25
|
-
}),
|
|
35
|
+
})] }, a.id))
|
|
36
|
+
}), t = ({ app: l, nav: a }) => /* @__PURE__ */ o("nav", {
|
|
26
37
|
className: "page-shell__rail",
|
|
27
|
-
children: [
|
|
28
|
-
app:
|
|
38
|
+
children: [l && /* @__PURE__ */ e(p, {
|
|
39
|
+
app: l,
|
|
29
40
|
logoOnly: !0
|
|
30
|
-
}), a.map((n) => /* @__PURE__ */
|
|
41
|
+
}), a.map((n) => /* @__PURE__ */ o("button", {
|
|
31
42
|
type: "button",
|
|
32
|
-
className:
|
|
43
|
+
className: s("page-shell__rail-item", n),
|
|
33
44
|
onClick: n.onSelect,
|
|
34
|
-
children: [/* @__PURE__ */
|
|
35
|
-
|
|
45
|
+
children: [/* @__PURE__ */ e(c, {
|
|
46
|
+
item: n,
|
|
36
47
|
size: "md"
|
|
37
|
-
}), /* @__PURE__ */
|
|
48
|
+
}), /* @__PURE__ */ e("span", { children: n.label })]
|
|
38
49
|
}, n.id))]
|
|
39
|
-
}),
|
|
50
|
+
}), u = ({ nav: l }) => /* @__PURE__ */ e("nav", {
|
|
40
51
|
className: "page-shell__tabbar",
|
|
41
|
-
children:
|
|
52
|
+
children: l.map((a) => /* @__PURE__ */ o("button", {
|
|
42
53
|
type: "button",
|
|
43
|
-
className:
|
|
54
|
+
className: s("page-shell__tab", a),
|
|
44
55
|
onClick: a.onSelect,
|
|
45
|
-
children: [/* @__PURE__ */
|
|
56
|
+
children: [/* @__PURE__ */ e(r, {
|
|
46
57
|
name: a.icon,
|
|
47
58
|
size: "md"
|
|
48
|
-
}), /* @__PURE__ */
|
|
59
|
+
}), /* @__PURE__ */ e("span", { children: a.label })]
|
|
49
60
|
}, a.id))
|
|
50
61
|
});
|
|
51
62
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
63
|
+
t as NavRail,
|
|
64
|
+
g as SideNav,
|
|
65
|
+
u as TabBar
|
|
55
66
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.filter-field,.filter-field__stack{gap:var(--spacing-8);flex-direction:column;min-width:0;display:flex}.filter-field__segmented{gap:var(--spacing-2);padding:var(--spacing-2);border:1px solid var(--form-control-border-color);border-radius:var(--radius);background-color:var(--form-control-background-color);display:flex}.filter-field__segment{min-width:0;padding:var(--spacing-4) var(--spacing-8);border-radius:var(--radius-sm);color:var(--body-color-muted);font:inherit;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);white-space:nowrap;cursor:pointer;transition:background-color var(--transition-fast), color var(--transition-fast);text-overflow:ellipsis;white-space:nowrap;background-color:#0000;border:0;flex:auto;overflow:hidden}.filter-field__segment:hover{color:var(--body-color)}.filter-field__segment--selected,.filter-field__segment--selected:hover{background-color:var(--chip-selected-background-color);color:var(--chip-selected-color)}.filter-field__chips{gap:var(--spacing-6);flex-wrap:wrap;display:flex}.filter-field__chips .filter-field__chip--empty{opacity:.6}.filter-field__rows,.filter-field__options{flex-direction:column;display:flex}.filter-field__options{max-height:var(--spacing-300);overflow-y:auto}.filter-field__row{align-items:center;gap:var(--spacing-8);width:100%;padding:var(--spacing-6) var(--spacing-4);border-radius:var(--radius-sm);color:var(--body-color);font:inherit;font-size:var(--font-size-sm);text-align:left;cursor:pointer;background-color:#0000;border:0;display:flex}.filter-field__row:hover{background-color:var(--list-hover-background-color)}.filter-field__row--empty{color:var(--body-color-muted)}.filter-field__mark{width:var(--spacing-16);height:var(--spacing-16);border:1px solid var(--form-control-border-color);color:var(--card-background-color);flex:none;justify-content:center;align-items:center;display:flex}.filter-field__mark--radio{border-radius:var(--radius-full)}.filter-field__mark--check{border-radius:var(--radius-sm)}.filter-field__row--selected .filter-field__mark{border-color:var(--body-accent-color);background-color:var(--body-accent-color)}.filter-field__row--selected .filter-field__mark--radio{padding:var(--spacing-2);background-clip:content-box}.filter-field__row-label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.filter-field__count{color:var(--body-color-muted);font-size:var(--font-size-xs);font-variant-numeric:tabular-nums;flex:none}.filter-field__divider{height:1px;margin:var(--spacing-4) 0;background-color:var(--delimiter-color);flex:none}.filter-field__empty{padding:var(--spacing-8) var(--spacing-4);color:var(--body-color-muted);font-size:var(--font-size-sm)}.filter-field__link{padding:var(--spacing-2) 0;color:var(--links-color);font:inherit;font-size:var(--font-size-sm);cursor:pointer;background:0 0;border:0;align-self:flex-start}.filter-field__link:hover{color:var(--links-hover-color)}.filter-field__rating{align-items:center;gap:var(--spacing-8);flex-wrap:wrap;display:flex}.filter-field__switch-row{flex-direction:row;justify-content:space-between;align-items:center}.filter-field__switch-label{min-width:0;padding:var(--spacing-4) 0;color:var(--body-color);font:inherit;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);text-align:left;cursor:pointer;background:0 0;border:0;flex:auto}.filter-field--sheet .filter-field__segment{padding:var(--spacing-8) var(--spacing-6);font-size:var(--font-size-md)}.filter-field--sheet .filter-field__row{padding:var(--spacing-12) var(--spacing-4);font-size:var(--font-size-md)}.filter-field--sheet .filter-field__options{max-height:none}.filter-field--sheet .filter-field__switch-label{padding:var(--spacing-8) 0;font-size:var(--font-size-md)}
|
|
1
|
+
.filter-field,.filter-field__stack{gap:var(--spacing-8);flex-direction:column;min-width:0;display:flex}.filter-field__segmented{gap:var(--spacing-2);padding:var(--spacing-2);border:1px solid var(--form-control-border-color);border-radius:var(--radius);background-color:var(--form-control-background-color);display:flex}.filter-field__segment{min-width:0;padding:var(--spacing-4) var(--spacing-8);border-radius:var(--radius-sm);color:var(--body-color-muted);font:inherit;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);white-space:nowrap;cursor:pointer;transition:background-color var(--transition-fast), color var(--transition-fast);text-overflow:ellipsis;white-space:nowrap;background-color:#0000;border:0;flex:auto;overflow:hidden}.filter-field__segment:hover{color:var(--body-color)}.filter-field__segment--selected,.filter-field__segment--selected:hover{background-color:var(--chip-selected-background-color);color:var(--chip-selected-color)}.filter-field__chips{gap:var(--spacing-6);flex-wrap:wrap;display:flex}.filter-field__chips .filter-field__chip--empty{opacity:.6}.filter-field__rows,.filter-field__options{flex-direction:column;display:flex}.filter-field__options{max-height:var(--spacing-300);overflow-y:auto}.filter-field__row{align-items:center;gap:var(--spacing-8);width:100%;padding:var(--spacing-6) var(--spacing-4);border-radius:var(--radius-sm);color:var(--body-color);font:inherit;font-size:var(--font-size-sm);text-align:left;cursor:pointer;background-color:#0000;border:0;display:flex}.filter-field__row:hover{background-color:var(--list-hover-background-color)}.filter-field__row--empty{color:var(--body-color-muted)}.filter-field__mark{width:var(--spacing-16);height:var(--spacing-16);border:1px solid var(--form-control-border-color);color:var(--card-background-color);flex:none;justify-content:center;align-items:center;display:flex}.filter-field__mark--radio{border-radius:var(--radius-full)}.filter-field__mark--check{border-radius:var(--radius-sm)}.filter-field__row--selected .filter-field__mark{border-color:var(--body-accent-color);background-color:var(--body-accent-color)}.filter-field__row--selected .filter-field__mark--radio{padding:var(--spacing-2);background-clip:content-box}.filter-field__row-label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.filter-field__avatar{width:var(--spacing-20);height:var(--spacing-20);object-fit:cover;border-radius:50%;flex:none}.filter-field__chip-label{align-items:center;gap:var(--spacing-6);display:inline-flex}.filter-field__range-inputs{align-items:center;gap:var(--spacing-8);display:flex}.filter-field__range-inputs>:not(.filter-field__range-dash):not(.filter-field__count){flex:1 1 0;min-width:0}.filter-field__range-dash{color:var(--body-color-muted)}.filter-field__count{color:var(--body-color-muted);font-size:var(--font-size-xs);font-variant-numeric:tabular-nums;flex:none}.filter-field__divider{height:1px;margin:var(--spacing-4) 0;background-color:var(--delimiter-color);flex:none}.filter-field__empty{padding:var(--spacing-8) var(--spacing-4);color:var(--body-color-muted);font-size:var(--font-size-sm)}.filter-field__link{padding:var(--spacing-2) 0;color:var(--links-color);font:inherit;font-size:var(--font-size-sm);cursor:pointer;background:0 0;border:0;align-self:flex-start}.filter-field__link:hover{color:var(--links-hover-color)}.filter-field__rating{align-items:center;gap:var(--spacing-8);flex-wrap:wrap;display:flex}.filter-field__switch-row{flex-direction:row;justify-content:space-between;align-items:center}.filter-field__switch-label{min-width:0;padding:var(--spacing-4) 0;color:var(--body-color);font:inherit;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);text-align:left;cursor:pointer;background:0 0;border:0;flex:auto}.filter-field--sheet .filter-field__segment{padding:var(--spacing-8) var(--spacing-6);font-size:var(--font-size-md)}.filter-field--sheet .filter-field__row{padding:var(--spacing-12) var(--spacing-4);font-size:var(--font-size-md)}.filter-field--sheet .filter-field__options{max-height:none}.filter-field--sheet .filter-field__switch-label{padding:var(--spacing-8) 0;font-size:var(--font-size-md)}
|