@memobit/libs 3.28.2 → 3.30.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/Auth/ChangePasswordModal/ChangePasswordModal2.js +7 -7
- package/dist/components/Auth/Login/Login2.js +4 -4
- package/dist/components/Auth/MfaSetupModal/MfaSetupModal2.js +6 -6
- package/dist/components/DataView/DataView.CardView.js +84 -84
- package/dist/components/MenuHamburger/MenuHamburger2.js +14 -14
- package/dist/components/PageShell/AppFrame.js +32 -0
- package/dist/components/PageShell/AppNav.js +55 -0
- package/dist/components/PageShell/BottomSheet.js +45 -0
- package/dist/components/PageShell/FilterField.css +1 -0
- package/dist/components/PageShell/FilterField2.js +294 -0
- package/dist/components/PageShell/FilterSections.js +86 -0
- package/dist/components/PageShell/PageParts.js +316 -0
- package/dist/components/PageShell/PageShell.css +1 -0
- package/dist/components/PageShell/PageShell2.js +11 -0
- package/dist/components/PageShell/WorkbenchPhone.js +142 -0
- package/dist/components/PageShell/WorkbenchShell.js +160 -0
- package/dist/components/PageShell/filterRules.js +123 -0
- package/dist/components/PageShell/filterValues.js +30 -0
- package/dist/components/PageShell/menuItems.js +17 -0
- package/dist/components/PageShell/shellText.js +39 -0
- package/dist/components/PageShell/useAppFrame.js +6 -0
- package/dist/components/PageShell/usePaging.js +23 -0
- package/dist/components/PageShell/usePruneStaleFilters.js +17 -0
- package/dist/components/PageShell/useSummaryMessages.js +17 -0
- package/dist/components/Pagination/Pagination.css +1 -1
- package/dist/components/Pagination/Pagination2.js +14 -13
- package/dist/components/RouterAppFrame/RouterAppFrame.js +37 -0
- package/dist/components/ScrollToTop/ScrollToTop.css +1 -1
- package/dist/components/ScrollToTop/ScrollToTop2.js +20 -19
- package/dist/contexts/LanguageContext/libMessages.js +57 -7
- package/dist/helpers/VersionInfo.js +1 -1
- package/dist/hooks/useAccountMenu.js +6 -6
- package/dist/index.d.ts +335 -0
- package/dist/index.js +235 -213
- package/dist/router.d.ts +68 -0
- package/dist/router.js +4 -2
- package/dist/version.js +1 -1
- package/dist/version.json +4 -4
- package/package.json +147 -147
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.page-shell{min-height:100vh;color:var(--body-color);display:flex}.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;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;min-width:0;display:flex}.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{max-height:var(--spacing-32);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}.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))}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './PageShell.css';
|
|
2
|
+
import { WorkbenchShell as o } from "./WorkbenchShell.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
5
|
+
var i = ({ layout: r = "workbench", ...e }) => {
|
|
6
|
+
if (r === "workbench")
|
|
7
|
+
return /* @__PURE__ */ h(o, { ...e });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
i as PageShell
|
|
11
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Icon as v } from "../Icon/Icon2.js";
|
|
2
|
+
import { libMessages as j } from "../../contexts/LanguageContext/libMessages.js";
|
|
3
|
+
import { useMessages as L } from "../../hooks/useLanguage.js";
|
|
4
|
+
import { Button as N } from "../Button/Button2.js";
|
|
5
|
+
import { InputSearch as P } from "../InputSearch/InputSearch2.js";
|
|
6
|
+
import { useAppFrame as T } from "./useAppFrame.js";
|
|
7
|
+
import { countActiveFilters as z } from "./filterRules.js";
|
|
8
|
+
import { getHeadingText as O, getResultLabel as W } from "./shellText.js";
|
|
9
|
+
import { AppMark as D, PageMenu as V, PagePager as H, SortSheetBody as R } from "./PageParts.js";
|
|
10
|
+
import { TabBar as $ } from "./AppNav.js";
|
|
11
|
+
import { AppliedFilters as q, FilterSections as E } from "./FilterSections.js";
|
|
12
|
+
import { getMenuItems as G, navToMenuItems as J } from "./menuItems.js";
|
|
13
|
+
import { BottomSheet as w } from "./BottomSheet.js";
|
|
14
|
+
import { useCallback as K, useState as Q } from "react";
|
|
15
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
16
|
+
var pe = (h) => {
|
|
17
|
+
const { title: S, counts: p, primaryAction: l, actions: A = [], search: n, sort: a, view: m, filters: s = [], values: d = {}, onFilterChange: C = () => {
|
|
18
|
+
}, onClearFilters: u, pagination: g, children: y } = h, t = L(j), r = T(), [k, f] = Q(null), i = K(() => f(null), []), b = z(s, d), B = W(h, t), F = a?.fields.find((x) => x.value === a.value.field)?.label, I = [O(h, t), F].filter(Boolean).join(" · "), c = r?.nav ?? [], _ = c.length > 1 && c.length <= 5, M = [..._ ? [] : J(c), ...G(A, r?.menuItems ?? [], !0)];
|
|
19
|
+
return /* @__PURE__ */ o("div", {
|
|
20
|
+
className: [
|
|
21
|
+
"page-shell",
|
|
22
|
+
"page-shell--workbench",
|
|
23
|
+
"page-shell--phone",
|
|
24
|
+
_ ? "page-shell--with-tabs" : "",
|
|
25
|
+
l?.variant ? `page-shell--fab-${l.variant}` : ""
|
|
26
|
+
].filter(Boolean).join(" "),
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ o("header", {
|
|
29
|
+
className: "page-shell__topbar",
|
|
30
|
+
children: [
|
|
31
|
+
r && /* @__PURE__ */ e(D, {
|
|
32
|
+
app: r.app,
|
|
33
|
+
logoOnly: !0
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ e("h1", {
|
|
36
|
+
className: "page-shell__title",
|
|
37
|
+
children: S
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ e("span", { className: "page-shell__spacer" }),
|
|
40
|
+
s.length > 0 && /* @__PURE__ */ o("button", {
|
|
41
|
+
type: "button",
|
|
42
|
+
className: "page-shell__icon-button",
|
|
43
|
+
onClick: () => f("filters"),
|
|
44
|
+
children: [/* @__PURE__ */ e(v, {
|
|
45
|
+
name: "tune",
|
|
46
|
+
size: "md"
|
|
47
|
+
}), b > 0 && /* @__PURE__ */ e("span", {
|
|
48
|
+
className: "page-shell__badge page-shell__badge--corner",
|
|
49
|
+
children: b
|
|
50
|
+
})]
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ e(V, { items: M })
|
|
53
|
+
]
|
|
54
|
+
}),
|
|
55
|
+
n && /* @__PURE__ */ e("div", {
|
|
56
|
+
className: "page-shell__search-row",
|
|
57
|
+
children: /* @__PURE__ */ e(P, {
|
|
58
|
+
value: n.value,
|
|
59
|
+
placeholder: n.placeholder ?? t.search,
|
|
60
|
+
onChange: n.onChange
|
|
61
|
+
})
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ e(q, {
|
|
64
|
+
filters: s,
|
|
65
|
+
values: d,
|
|
66
|
+
onFilterChange: C,
|
|
67
|
+
onClearFilters: u,
|
|
68
|
+
scroll: !0
|
|
69
|
+
}),
|
|
70
|
+
(a || m || g && g.pageCount > 1) && /* @__PURE__ */ o("div", {
|
|
71
|
+
className: "page-shell__result-row",
|
|
72
|
+
children: [(a || m) && /* @__PURE__ */ o("button", {
|
|
73
|
+
type: "button",
|
|
74
|
+
className: "page-shell__result-line",
|
|
75
|
+
onClick: () => f("sort"),
|
|
76
|
+
children: [/* @__PURE__ */ e("span", { children: I || t.pageSortAndView }), /* @__PURE__ */ e(v, {
|
|
77
|
+
name: "caret-down",
|
|
78
|
+
size: "sm"
|
|
79
|
+
})]
|
|
80
|
+
}), /* @__PURE__ */ e(H, { pagination: g })]
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ e("div", {
|
|
83
|
+
className: "page-shell__content",
|
|
84
|
+
children: y
|
|
85
|
+
}),
|
|
86
|
+
l && /* @__PURE__ */ e("button", {
|
|
87
|
+
type: "button",
|
|
88
|
+
className: "page-shell__fab",
|
|
89
|
+
disabled: l.disabled,
|
|
90
|
+
onClick: l.onClick,
|
|
91
|
+
children: /* @__PURE__ */ e(v, {
|
|
92
|
+
name: l.icon ?? "plus",
|
|
93
|
+
size: "lg"
|
|
94
|
+
})
|
|
95
|
+
}),
|
|
96
|
+
_ && /* @__PURE__ */ e($, { nav: c }),
|
|
97
|
+
/* @__PURE__ */ e(w, {
|
|
98
|
+
isOpen: k === "filters",
|
|
99
|
+
tall: !0,
|
|
100
|
+
title: t.filters,
|
|
101
|
+
onClose: i,
|
|
102
|
+
end: b > 0 && u ? /* @__PURE__ */ e("button", {
|
|
103
|
+
type: "button",
|
|
104
|
+
className: "page-shell__link",
|
|
105
|
+
onClick: u,
|
|
106
|
+
children: t.pageClearAll
|
|
107
|
+
}) : void 0,
|
|
108
|
+
footer: /* @__PURE__ */ e(N, {
|
|
109
|
+
variant: "info",
|
|
110
|
+
fullWidth: !0,
|
|
111
|
+
disabled: p?.shown === 0,
|
|
112
|
+
onClick: i,
|
|
113
|
+
children: p ? B(p.shown) : t.pageDone
|
|
114
|
+
}),
|
|
115
|
+
children: /* @__PURE__ */ e(E, {
|
|
116
|
+
filters: s,
|
|
117
|
+
values: d,
|
|
118
|
+
context: "sheet",
|
|
119
|
+
onFilterChange: C
|
|
120
|
+
})
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ e(w, {
|
|
123
|
+
isOpen: k === "sort",
|
|
124
|
+
title: t.pageSortAndView,
|
|
125
|
+
onClose: i,
|
|
126
|
+
footer: /* @__PURE__ */ e(N, {
|
|
127
|
+
variant: "info",
|
|
128
|
+
fullWidth: !0,
|
|
129
|
+
onClick: i,
|
|
130
|
+
children: t.pageDone
|
|
131
|
+
}),
|
|
132
|
+
children: /* @__PURE__ */ e(R, {
|
|
133
|
+
sort: a,
|
|
134
|
+
view: m
|
|
135
|
+
})
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
export {
|
|
141
|
+
pe as WorkbenchPhone
|
|
142
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { libMessages as V } from "../../contexts/LanguageContext/libMessages.js";
|
|
2
|
+
import { useMessages as L } from "../../hooks/useLanguage.js";
|
|
3
|
+
import { Button as _ } from "../Button/Button2.js";
|
|
4
|
+
import { InputSearch as R } from "../InputSearch/InputSearch2.js";
|
|
5
|
+
import { useBreakpoint as E } from "../../hooks/useBreakpoint.js";
|
|
6
|
+
import { Drawer as H } from "../Drawer/Drawer2.js";
|
|
7
|
+
import { useAppFrame as q } from "./useAppFrame.js";
|
|
8
|
+
import { countActiveFilters as z } from "./filterRules.js";
|
|
9
|
+
import { getHeadingText as G, getResultLabel as J } from "./shellText.js";
|
|
10
|
+
import { ActionButton as v, AppMark as B, PageMenu as M, PagePager as K, SortDropdown as Q, ViewOptions as S, ViewToggle as U } from "./PageParts.js";
|
|
11
|
+
import { NavRail as X, SideNav as Y } from "./AppNav.js";
|
|
12
|
+
import { AppliedFilters as Z, FilterSections as $ } from "./FilterSections.js";
|
|
13
|
+
import { getButtonActions as ee, getMenuItems as y } from "./menuItems.js";
|
|
14
|
+
import { WorkbenchPhone as le } from "./WorkbenchPhone.js";
|
|
15
|
+
import { useState as ae } from "react";
|
|
16
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
17
|
+
var Ne = (n) => {
|
|
18
|
+
const { isMobile: I, isTablet: l } = E(), t = L(V), r = q(), [O, g] = ae(!1);
|
|
19
|
+
if (I) return /* @__PURE__ */ e(le, { ...n });
|
|
20
|
+
const { title: D, counts: N, primaryAction: c, actions: d = [], search: p, sort: b, view: s, filters: h = [], values: u = {}, onFilterChange: w = () => {
|
|
21
|
+
}, onClearFilters: i, pagination: P, children: T } = n, k = G(n, t), W = J(n, t), m = z(h, u), f = h.length > 0, C = r?.menuItems ?? [], o = r?.nav ?? [], j = !!(s && (s.columns || s.groupBy || s.toggles?.length)), A = /* @__PURE__ */ e($, {
|
|
22
|
+
filters: h,
|
|
23
|
+
values: u,
|
|
24
|
+
context: "panel",
|
|
25
|
+
onFilterChange: w
|
|
26
|
+
}), F = m > 0 && /* @__PURE__ */ e("span", {
|
|
27
|
+
className: "page-shell__badge",
|
|
28
|
+
children: m
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ a("div", {
|
|
31
|
+
className: [
|
|
32
|
+
"page-shell",
|
|
33
|
+
"page-shell--workbench",
|
|
34
|
+
l ? "page-shell--tablet" : "page-shell--desktop"
|
|
35
|
+
].join(" "),
|
|
36
|
+
children: [
|
|
37
|
+
!l && /* @__PURE__ */ a("aside", {
|
|
38
|
+
className: "page-shell__side",
|
|
39
|
+
children: [
|
|
40
|
+
r && /* @__PURE__ */ e(B, { app: r.app }),
|
|
41
|
+
c && /* @__PURE__ */ e(v, {
|
|
42
|
+
action: c,
|
|
43
|
+
fullWidth: !0
|
|
44
|
+
}),
|
|
45
|
+
o.length > 1 && /* @__PURE__ */ e(Y, { nav: o }),
|
|
46
|
+
f && /* @__PURE__ */ a("div", {
|
|
47
|
+
className: "page-shell__side-group",
|
|
48
|
+
children: [/* @__PURE__ */ a("div", {
|
|
49
|
+
className: "page-shell__side-head",
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ e("span", {
|
|
52
|
+
className: "page-shell__group-title",
|
|
53
|
+
children: t.filters
|
|
54
|
+
}),
|
|
55
|
+
F,
|
|
56
|
+
/* @__PURE__ */ e("span", { className: "page-shell__spacer" }),
|
|
57
|
+
m > 0 && i && /* @__PURE__ */ e("button", {
|
|
58
|
+
type: "button",
|
|
59
|
+
className: "page-shell__link",
|
|
60
|
+
onClick: i,
|
|
61
|
+
children: t.pageClearAll
|
|
62
|
+
})
|
|
63
|
+
]
|
|
64
|
+
}), A]
|
|
65
|
+
}),
|
|
66
|
+
s && /* @__PURE__ */ e(S, { view: s })
|
|
67
|
+
]
|
|
68
|
+
}),
|
|
69
|
+
l && o.length > 1 && /* @__PURE__ */ e(X, {
|
|
70
|
+
app: r?.app,
|
|
71
|
+
nav: o
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ a("div", {
|
|
74
|
+
className: "page-shell__main",
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ a("header", {
|
|
77
|
+
className: "page-shell__toolbar",
|
|
78
|
+
children: [
|
|
79
|
+
l && f && /* @__PURE__ */ a(_, {
|
|
80
|
+
icon: "tune",
|
|
81
|
+
variant: "default",
|
|
82
|
+
onClick: () => g(!0),
|
|
83
|
+
children: [t.filters, F]
|
|
84
|
+
}),
|
|
85
|
+
l && r && o.length <= 1 && /* @__PURE__ */ e(B, {
|
|
86
|
+
app: r.app,
|
|
87
|
+
logoOnly: !0
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ a("div", {
|
|
90
|
+
className: "page-shell__titles",
|
|
91
|
+
children: [/* @__PURE__ */ e("h1", {
|
|
92
|
+
className: "page-shell__title",
|
|
93
|
+
children: D
|
|
94
|
+
}), k && /* @__PURE__ */ e("p", {
|
|
95
|
+
className: "page-shell__heading",
|
|
96
|
+
children: k
|
|
97
|
+
})]
|
|
98
|
+
}),
|
|
99
|
+
l && c && /* @__PURE__ */ e(v, { action: c }),
|
|
100
|
+
l && /* @__PURE__ */ e(M, { items: y(d, C, !0) }),
|
|
101
|
+
l && /* @__PURE__ */ e("span", { className: "page-shell__break" }),
|
|
102
|
+
p && /* @__PURE__ */ e(R, {
|
|
103
|
+
className: "page-shell__search",
|
|
104
|
+
value: p.value,
|
|
105
|
+
placeholder: p.placeholder ?? t.search,
|
|
106
|
+
onChange: p.onChange
|
|
107
|
+
}),
|
|
108
|
+
b && /* @__PURE__ */ e(Q, { sort: b }),
|
|
109
|
+
l && s && /* @__PURE__ */ e(U, { view: s }),
|
|
110
|
+
!l && ee(d).map((x) => /* @__PURE__ */ e(v, { action: x }, x.id)),
|
|
111
|
+
!l && /* @__PURE__ */ e(M, { items: y(d, C, !1) })
|
|
112
|
+
]
|
|
113
|
+
}),
|
|
114
|
+
/* @__PURE__ */ a("div", {
|
|
115
|
+
className: "page-shell__status",
|
|
116
|
+
children: [/* @__PURE__ */ e(Z, {
|
|
117
|
+
filters: h,
|
|
118
|
+
values: u,
|
|
119
|
+
onFilterChange: w,
|
|
120
|
+
onClearFilters: i
|
|
121
|
+
}), /* @__PURE__ */ e(K, { pagination: P })]
|
|
122
|
+
}),
|
|
123
|
+
/* @__PURE__ */ e("div", {
|
|
124
|
+
className: "page-shell__content",
|
|
125
|
+
children: T
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
}),
|
|
129
|
+
l && f && /* @__PURE__ */ e(H, {
|
|
130
|
+
isOpen: O,
|
|
131
|
+
onClose: () => g(!1),
|
|
132
|
+
position: "left",
|
|
133
|
+
title: t.filters,
|
|
134
|
+
footer: /* @__PURE__ */ a("div", {
|
|
135
|
+
className: "page-shell__drawer-footer",
|
|
136
|
+
children: [m > 0 && i && /* @__PURE__ */ e(_, {
|
|
137
|
+
variant: "default",
|
|
138
|
+
onClick: i,
|
|
139
|
+
children: t.pageClearAll
|
|
140
|
+
}), N && /* @__PURE__ */ e(_, {
|
|
141
|
+
variant: "info",
|
|
142
|
+
fullWidth: !0,
|
|
143
|
+
onClick: () => g(!1),
|
|
144
|
+
children: W(N.shown)
|
|
145
|
+
})]
|
|
146
|
+
}),
|
|
147
|
+
children: /* @__PURE__ */ a("div", {
|
|
148
|
+
className: "page-shell__drawer-body",
|
|
149
|
+
children: [A, s && j && /* @__PURE__ */ e(S, {
|
|
150
|
+
view: s,
|
|
151
|
+
showToggle: !1
|
|
152
|
+
})]
|
|
153
|
+
})
|
|
154
|
+
})
|
|
155
|
+
]
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
export {
|
|
159
|
+
Ne as WorkbenchShell
|
|
160
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { formatAppDate as b } from "../../helpers/Datetime.js";
|
|
2
|
+
var A = 4, y = 24, $ = 10, k = 8, v = 14, s = (t) => typeof t == "string" || typeof t == "number", u = (t) => Array.isArray(t) ? t.filter(s) : [], d = (t) => s(t) && t !== "" ? t : null, g = (t) => typeof t == "number" ? t : 0, c = (t, n, e) => {
|
|
3
|
+
const [r, i] = u(t);
|
|
4
|
+
return [typeof r == "number" ? r : n, typeof i == "number" ? i : e];
|
|
5
|
+
}, M = (t) => typeof t == "object" && t !== null && !Array.isArray(t), m = (t) => M(t) ? t : { text: "" }, S = (t, n) => t.wordMatch ? [{
|
|
6
|
+
value: "or",
|
|
7
|
+
label: n.anyWord
|
|
8
|
+
}, {
|
|
9
|
+
value: "and",
|
|
10
|
+
label: n.allWords
|
|
11
|
+
}] : t.modes, C = (t) => {
|
|
12
|
+
switch (t.kind) {
|
|
13
|
+
case "multi":
|
|
14
|
+
return [];
|
|
15
|
+
case "rating":
|
|
16
|
+
return 0;
|
|
17
|
+
case "toggle":
|
|
18
|
+
return !1;
|
|
19
|
+
case "text":
|
|
20
|
+
return {
|
|
21
|
+
text: "",
|
|
22
|
+
mode: t.wordMatch ? "or" : t.modes?.[0]?.value
|
|
23
|
+
};
|
|
24
|
+
default:
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
}, h = (t, n) => {
|
|
28
|
+
switch (t.kind) {
|
|
29
|
+
case "single":
|
|
30
|
+
case "date":
|
|
31
|
+
return d(n) !== null;
|
|
32
|
+
case "multi":
|
|
33
|
+
return u(n).length > 0;
|
|
34
|
+
case "range": {
|
|
35
|
+
const [e, r] = c(n, t.min, t.max);
|
|
36
|
+
return e > t.min || r < t.max;
|
|
37
|
+
}
|
|
38
|
+
case "rating":
|
|
39
|
+
return g(n) > 0;
|
|
40
|
+
case "toggle":
|
|
41
|
+
return n === !0;
|
|
42
|
+
case "text":
|
|
43
|
+
return m(n).text.trim() !== "";
|
|
44
|
+
}
|
|
45
|
+
}, _ = (t, n) => t.filter((e) => h(e, n[e.id])).length, f = (t, n) => t.find((e) => e.value === n)?.label ?? String(n), w = (t, n) => {
|
|
46
|
+
if (t.kind !== "single" && t.kind !== "multi") return null;
|
|
47
|
+
if (t.control) return t.control;
|
|
48
|
+
const e = t.options.length;
|
|
49
|
+
if (t.kind === "single") {
|
|
50
|
+
if (e > $) return "search-list";
|
|
51
|
+
const r = t.options.reduce((i, a) => i + a.label.length, 3);
|
|
52
|
+
return e <= A && r <= y ? "segmented" : n === "sheet" ? "chips" : "radio";
|
|
53
|
+
}
|
|
54
|
+
return e > v ? "search-list" : e <= k || n === "sheet" ? "chips" : "checklist";
|
|
55
|
+
}, E = (t, n, e) => {
|
|
56
|
+
switch (t.kind) {
|
|
57
|
+
case "single": {
|
|
58
|
+
const r = d(n);
|
|
59
|
+
return r === null ? "" : f(t.options, r);
|
|
60
|
+
}
|
|
61
|
+
case "multi": {
|
|
62
|
+
const r = u(n);
|
|
63
|
+
return r.length === 1 ? f(t.options, r[0]) : e.selectedCount(r.length);
|
|
64
|
+
}
|
|
65
|
+
case "range": {
|
|
66
|
+
const [r, i] = c(n, t.min, t.max), a = t.unit ? ` ${t.unit}` : "";
|
|
67
|
+
return r > t.min && i < t.max ? `${r}–${i}${a}` : r > t.min ? `≥ ${r}${a}` : `≤ ${i}${a}`;
|
|
68
|
+
}
|
|
69
|
+
case "rating":
|
|
70
|
+
return e.ratingAtLeast(g(n));
|
|
71
|
+
case "toggle":
|
|
72
|
+
return t.label;
|
|
73
|
+
case "text": {
|
|
74
|
+
const { text: r, mode: i } = m(n), a = S(t, e), l = a && i !== a[0]?.value ? a.find((o) => o.value === i)?.label : void 0;
|
|
75
|
+
return l ? `“${r.trim()}” · ${l}` : `“${r.trim()}”`;
|
|
76
|
+
}
|
|
77
|
+
case "date": {
|
|
78
|
+
const r = d(n);
|
|
79
|
+
if (r === null) return "";
|
|
80
|
+
const i = b(String(r));
|
|
81
|
+
return t.relation === "until" ? e.dateUntil(i) : e.dateSince(i);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, F = (t, n, e) => t.flatMap((r) => {
|
|
85
|
+
const i = n[r.id];
|
|
86
|
+
if (!h(r, i)) return [];
|
|
87
|
+
if (r.kind === "multi") {
|
|
88
|
+
const l = u(i);
|
|
89
|
+
return l.map((o) => ({
|
|
90
|
+
key: `${r.id}:${o}`,
|
|
91
|
+
filterId: r.id,
|
|
92
|
+
label: f(r.options, o),
|
|
93
|
+
next: l.filter((x) => x !== o)
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
const a = r.kind === "text" ? {
|
|
97
|
+
...m(i),
|
|
98
|
+
text: ""
|
|
99
|
+
} : C(r);
|
|
100
|
+
return [{
|
|
101
|
+
key: r.id,
|
|
102
|
+
filterId: r.id,
|
|
103
|
+
label: E(r, i, e),
|
|
104
|
+
next: a
|
|
105
|
+
}];
|
|
106
|
+
});
|
|
107
|
+
export {
|
|
108
|
+
_ as countActiveFilters,
|
|
109
|
+
C as defaultFilterValue,
|
|
110
|
+
E as filterSummary,
|
|
111
|
+
F as getAppliedFilters,
|
|
112
|
+
S as getTextModes,
|
|
113
|
+
h as isFilterActive,
|
|
114
|
+
s as isScalar,
|
|
115
|
+
M as isTextFilterValue,
|
|
116
|
+
f as optionLabel,
|
|
117
|
+
w as pickControl,
|
|
118
|
+
u as toList,
|
|
119
|
+
g as toNumber,
|
|
120
|
+
c as toRange,
|
|
121
|
+
d as toScalar,
|
|
122
|
+
m as toText
|
|
123
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { isTextFilterValue as u, toList as a, toScalar as d } from "./filterRules.js";
|
|
2
|
+
var v = (e, n) => a(e).flatMap((t) => {
|
|
3
|
+
const i = n.find((r) => r === t);
|
|
4
|
+
return i === void 0 ? [] : [i];
|
|
5
|
+
}), g = (e, n) => n.find((t) => t === e), h = (e) => {
|
|
6
|
+
const [n, t] = a(e);
|
|
7
|
+
return typeof n == "number" && typeof t == "number" ? [n, t] : null;
|
|
8
|
+
}, m = (e) => u(e) ? e : null, F = (e, n) => e.flatMap((t) => {
|
|
9
|
+
if (t.kind !== "single" && t.kind !== "multi") return [];
|
|
10
|
+
const i = new Set(t.options.map((l) => l.value)), r = n[t.id];
|
|
11
|
+
if (t.kind === "single") {
|
|
12
|
+
const l = d(r);
|
|
13
|
+
return l !== null && !i.has(l) ? [{
|
|
14
|
+
id: t.id,
|
|
15
|
+
value: null
|
|
16
|
+
}] : [];
|
|
17
|
+
}
|
|
18
|
+
const o = a(r), s = o.filter((l) => i.has(l));
|
|
19
|
+
return s.length === o.length ? [] : [{
|
|
20
|
+
id: t.id,
|
|
21
|
+
value: s
|
|
22
|
+
}];
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
g as asFilterKey,
|
|
26
|
+
v as asFilterKeys,
|
|
27
|
+
h as asFilterRange,
|
|
28
|
+
m as asFilterText,
|
|
29
|
+
F as getStaleFilterChanges
|
|
30
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var o = (l) => l.map((e) => ({
|
|
2
|
+
label: e.label,
|
|
3
|
+
icon: e.icon,
|
|
4
|
+
onClick: e.onClick,
|
|
5
|
+
isActive: !1,
|
|
6
|
+
separator: e.separator
|
|
7
|
+
})), r = (l) => l.filter((e) => !e.menu), t = (l, e, a) => [...o(a ? l : l.filter((n) => n.menu)), ...e], i = (l) => l.map((e) => ({
|
|
8
|
+
label: e.label,
|
|
9
|
+
icon: e.icon,
|
|
10
|
+
onClick: e.onSelect,
|
|
11
|
+
isActive: e.isActive
|
|
12
|
+
}));
|
|
13
|
+
export {
|
|
14
|
+
r as getButtonActions,
|
|
15
|
+
t as getMenuItems,
|
|
16
|
+
i as navToMenuItems
|
|
17
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var t = ({ counts: e, noun: a, heading: l }, r) => [e && a ? r.pageItemCount(e.shown, e.total, a.one, a.other) : void 0, l].filter(Boolean).join(" · "), v = ({ noun: e, resultLabel: a }, l) => a ?? (e ? (r) => l.pageShowItems(r, e.one, e.other) : l.pageShowResults), i = (e, a) => {
|
|
2
|
+
switch (e) {
|
|
3
|
+
case "cards":
|
|
4
|
+
return {
|
|
5
|
+
value: e,
|
|
6
|
+
label: a.viewGrid,
|
|
7
|
+
icon: "grid"
|
|
8
|
+
};
|
|
9
|
+
case "table":
|
|
10
|
+
return {
|
|
11
|
+
value: e,
|
|
12
|
+
label: a.viewTable,
|
|
13
|
+
icon: "table"
|
|
14
|
+
};
|
|
15
|
+
case "gallery":
|
|
16
|
+
return {
|
|
17
|
+
value: e,
|
|
18
|
+
label: a.viewGallery,
|
|
19
|
+
icon: "gallery"
|
|
20
|
+
};
|
|
21
|
+
case "calendar":
|
|
22
|
+
return {
|
|
23
|
+
value: e,
|
|
24
|
+
label: a.pageViewCalendar,
|
|
25
|
+
icon: "calendar"
|
|
26
|
+
};
|
|
27
|
+
case "map":
|
|
28
|
+
return {
|
|
29
|
+
value: e,
|
|
30
|
+
label: a.pageViewMap,
|
|
31
|
+
icon: "map"
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}, s = (e, a) => e.map((l) => typeof l == "string" ? i(l, a) : l);
|
|
35
|
+
export {
|
|
36
|
+
t as getHeadingText,
|
|
37
|
+
v as getResultLabel,
|
|
38
|
+
s as resolveViewModes
|
|
39
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useState as s } from "react";
|
|
2
|
+
var h = 20, z = ({ itemCount: i, initialPageSize: o = h, resetOn: r = [] }) => {
|
|
3
|
+
const [c, e] = s(1), [n, p] = s(o), t = JSON.stringify(r), [S, P] = s(t);
|
|
4
|
+
t !== S && (P(t), e(1));
|
|
5
|
+
const a = Math.max(1, Math.ceil(i / n)), g = Math.min(c, a);
|
|
6
|
+
return {
|
|
7
|
+
page: g,
|
|
8
|
+
pageSize: n,
|
|
9
|
+
pageCount: a,
|
|
10
|
+
setPage: e,
|
|
11
|
+
setPageSize: (u) => {
|
|
12
|
+
p(u), e(1);
|
|
13
|
+
},
|
|
14
|
+
pagination: {
|
|
15
|
+
page: g,
|
|
16
|
+
pageCount: a,
|
|
17
|
+
onChange: e
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
z as usePaging
|
|
23
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getStaleFilterChanges as s } from "./filterValues.js";
|
|
2
|
+
import { useEffect as o, useMemo as m, useRef as u } from "react";
|
|
3
|
+
var h = (r, c, { isLoaded: f, onPrune: e }) => {
|
|
4
|
+
const n = u(e), t = m(() => f ? s(r, c) : [], [
|
|
5
|
+
r,
|
|
6
|
+
c,
|
|
7
|
+
f
|
|
8
|
+
]);
|
|
9
|
+
o(() => {
|
|
10
|
+
n.current = e;
|
|
11
|
+
}, [e]), o(() => {
|
|
12
|
+
t.length > 0 && n.current(t);
|
|
13
|
+
}, [t]);
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
h as usePruneStaleFilters
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { libMessages as t } from "../../contexts/LanguageContext/libMessages.js";
|
|
2
|
+
import { useMessages as a } from "../../hooks/useLanguage.js";
|
|
3
|
+
import { useMemo as s } from "react";
|
|
4
|
+
var g = () => {
|
|
5
|
+
const e = a(t);
|
|
6
|
+
return s(() => ({
|
|
7
|
+
selectedCount: e.pageSelectedCount,
|
|
8
|
+
ratingAtLeast: e.pageRatingAtLeast,
|
|
9
|
+
dateSince: e.pageDateSince,
|
|
10
|
+
dateUntil: e.pageDateUntil,
|
|
11
|
+
anyWord: e.pageAnyWord,
|
|
12
|
+
allWords: e.pageAllWords
|
|
13
|
+
}), [e]);
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
g as useSummaryMessages
|
|
17
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pagination{align-items:center;gap:var(--spacing-12);flex-wrap:wrap;justify-content:space-around;width:100%;display:flex}.pagination__pages{justify-content:center;align-items:center;gap:var(--spacing-8);flex:1;display:flex}.pagination--left .pagination__pages{justify-content:flex-start}.pagination--center .pagination__pages{flex:none;justify-content:center}.pagination--right{flex-direction:row-reverse}.pagination--right .pagination__pages{justify-content:flex-end}.pagination .page-info{color:var(--body-color);font-size:var(--font-size-sm)}.pagination__page-size{align-items:center;gap:var(--spacing-8);font-size:var(--font-size-sm);color:var(--body-color);display:flex}.pagination__page-size .dropdown-container{min-width:120px}@media (width>=769px) and (width<=1024px){.pagination__pages{flex-wrap:wrap}.pagination .page-info{text-align:center;width:100%;margin-top:var(--spacing-8)}}@media (width<=768px){.pagination{flex-direction:column;align-items:stretch}.pagination__pages{flex-wrap:wrap;justify-content:center}.pagination__page-size{justify-content:center}}
|
|
1
|
+
.pagination{align-items:center;gap:var(--spacing-12);flex-wrap:wrap;justify-content:space-around;width:100%;display:flex}.pagination__pages{justify-content:center;align-items:center;gap:var(--spacing-8);flex:1;display:flex}.pagination--left .pagination__pages{justify-content:flex-start}.pagination--center .pagination__pages{flex:none;justify-content:center}.pagination--right{flex-direction:row-reverse}.pagination--right .pagination__pages,.pagination--single{justify-content:flex-end}.pagination .page-info{color:var(--body-color);font-size:var(--font-size-sm)}.pagination__page-size{align-items:center;gap:var(--spacing-8);font-size:var(--font-size-sm);color:var(--body-color);display:flex}.pagination__page-size .dropdown-container{min-width:120px}@media (width>=769px) and (width<=1024px){.pagination__pages{flex-wrap:wrap}.pagination .page-info{text-align:center;width:100%;margin-top:var(--spacing-8)}}@media (width<=768px){.pagination{flex-direction:column;align-items:stretch}.pagination__pages{flex-wrap:wrap;justify-content:center}.pagination__page-size{justify-content:center}.pagination--single .pagination__page-size{justify-content:flex-end}}
|