@memobit/libs 3.33.0 → 3.35.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/MenuHamburger/MenuHamburger2.js +22 -20
- package/dist/components/PageShell/AppFrame.js +48 -25
- package/dist/components/PageShell/FilterField.css +1 -1
- package/dist/components/PageShell/FilterField2.js +164 -131
- package/dist/components/PageShell/PageParts.js +104 -70
- package/dist/components/PageShell/PageShell.css +1 -1
- package/dist/components/PageShell/WorkbenchPhone.js +55 -52
- package/dist/components/PageShell/WorkbenchShell.js +86 -81
- package/dist/components/PageShell/filterRules.js +76 -51
- package/dist/components/PageShell/filterValues.js +24 -17
- package/dist/components/PageShell/liveCounts.js +21 -0
- package/dist/components/PageShell/menuItems.js +7 -6
- package/dist/components/PageShell/shellText.js +6 -5
- package/dist/components/PageShell/useSummaryMessages.js +2 -0
- package/dist/components/RouterAppFrame/RouterAppFrame.js +15 -12
- package/dist/contexts/LanguageContext/libMessages.js +2 -0
- package/dist/helpers/VersionInfo.js +1 -1
- package/dist/index.d.ts +98 -5
- package/dist/index.js +135 -132
- package/dist/router.d.ts +13 -0
- package/dist/version.js +2 -2
- package/dist/version.json +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -167,11 +167,21 @@ export declare interface AppFrameProps {
|
|
|
167
167
|
nav?: AppNavItem[];
|
|
168
168
|
/** Adds the account menu (theme, password, two-factor, logout) and mounts the dialogs it opens. Needs an AuthProvider above. */
|
|
169
169
|
account?: UseAccountMenuOptions;
|
|
170
|
+
/** For apps without sign-in: adds just the Theme entry and its dialog. `account` already includes it. */
|
|
171
|
+
theme?: AppFrameTheme;
|
|
170
172
|
/** App-specific menu entries, listed before the account ones. Page actions join them on small screens. */
|
|
171
173
|
menuItems?: MenuHamburgerItem[];
|
|
174
|
+
/** An app-wide indicator shown beside the page menu on every page and device: a notifications bell, a monitor's health. Keep it small. */
|
|
175
|
+
status?: ReactNode;
|
|
172
176
|
children: ReactNode;
|
|
173
177
|
}
|
|
174
178
|
|
|
179
|
+
export declare interface AppFrameTheme {
|
|
180
|
+
/** Shown in the theme dialog's "For <app>" recommended filter. */
|
|
181
|
+
appName: string;
|
|
182
|
+
label?: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
175
185
|
export declare const AppHeader: default_2.FC<AppHeaderProps>;
|
|
176
186
|
|
|
177
187
|
export declare interface AppHeaderProps {
|
|
@@ -193,6 +203,13 @@ export declare interface AppIdentity {
|
|
|
193
203
|
onHomeClick?: () => void;
|
|
194
204
|
}
|
|
195
205
|
|
|
206
|
+
/**
|
|
207
|
+
* The filters with each option counting the items it would leave, given every other applied filter. Counts follow
|
|
208
|
+
* the user's other choices, so an option that leads to an empty list shows 0 (and is drawn dimmed) before it is
|
|
209
|
+
* picked. Only `single` and `multi` filters with a predicate are recounted; pass items already narrowed by the search.
|
|
210
|
+
*/
|
|
211
|
+
export declare const applyLiveCounts: <T>(filters: FilterSpec[], items: T[], values: PageFilterValues, predicates: FilterPredicates<T>) => FilterSpec[];
|
|
212
|
+
|
|
196
213
|
/** One of the app's sections. Shown as a side list on desktop, an icon rail on tablet and a bottom tab bar on phone. */
|
|
197
214
|
export declare interface AppNavItem {
|
|
198
215
|
id: string;
|
|
@@ -222,6 +239,12 @@ declare interface AppVersionInfo {
|
|
|
222
239
|
buildDate: string;
|
|
223
240
|
}
|
|
224
241
|
|
|
242
|
+
/** A date-range filter's ends as 'YYYY-MM-DD', null where open. */
|
|
243
|
+
export declare const asFilterDateRange: (value: FilterValue | undefined) => {
|
|
244
|
+
from: string | null;
|
|
245
|
+
to: string | null;
|
|
246
|
+
};
|
|
247
|
+
|
|
225
248
|
/** A single filter's selected key, if it is one of `allowed`. */
|
|
226
249
|
export declare const asFilterKey: <K extends string | number>(value: FilterValue | undefined, allowed: readonly K[]) => K | undefined;
|
|
227
250
|
|
|
@@ -1341,6 +1364,9 @@ export declare interface DateFilterSpec extends FilterSpecBase {
|
|
|
1341
1364
|
kind: 'date';
|
|
1342
1365
|
/** Whether items on or after the date match (`since`, the default) or on or before it (`until`). */
|
|
1343
1366
|
relation?: 'since' | 'until';
|
|
1367
|
+
/** The earliest and latest days the picker offers, as 'YYYY-MM-DD'. */
|
|
1368
|
+
min?: string;
|
|
1369
|
+
max?: string;
|
|
1344
1370
|
}
|
|
1345
1371
|
|
|
1346
1372
|
export declare const DatePicker: default_2.FC<DatePickerProps>;
|
|
@@ -1368,6 +1394,14 @@ declare interface DateRange {
|
|
|
1368
1394
|
end?: string;
|
|
1369
1395
|
}
|
|
1370
1396
|
|
|
1397
|
+
/** A span of days. Either end may stay open, e.g. a value saved from an older "from" filter. */
|
|
1398
|
+
export declare interface DateRangeFilterSpec extends FilterSpecBase {
|
|
1399
|
+
kind: 'date-range';
|
|
1400
|
+
/** The earliest and latest days the picker offers, as 'YYYY-MM-DD'. */
|
|
1401
|
+
min?: string;
|
|
1402
|
+
max?: string;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1371
1405
|
export declare const DateRangePicker: default_2.FC<DateRangePickerProps>;
|
|
1372
1406
|
|
|
1373
1407
|
export declare interface DateRangePickerProps {
|
|
@@ -1448,6 +1482,7 @@ export declare interface DayAgendaProps<T = unknown> {
|
|
|
1448
1482
|
className?: string;
|
|
1449
1483
|
}
|
|
1450
1484
|
|
|
1485
|
+
/** The value a filter returns to when cleared: its `defaultValue`, else its kind's empty value. */
|
|
1451
1486
|
export declare const defaultFilterValue: (spec: FilterSpec) => FilterValue;
|
|
1452
1487
|
|
|
1453
1488
|
declare type DiffLang = 'javascript' | 'typescript' | 'jsx' | 'tsx' | 'css' | 'scss' | 'html' | 'json' | 'python' | 'bash' | 'plaintext';
|
|
@@ -1795,7 +1830,7 @@ export declare interface FilterKeyLookup {
|
|
|
1795
1830
|
}
|
|
1796
1831
|
|
|
1797
1832
|
/** What a filter's data is. The widget is chosen from this, the option count and where the filter sits. */
|
|
1798
|
-
export declare type FilterKind = 'single' | 'multi' | 'range' | 'rating' | 'toggle' | 'text' | 'date';
|
|
1833
|
+
export declare type FilterKind = 'single' | 'multi' | 'range' | 'rating' | 'toggle' | 'text' | 'date' | 'date-range';
|
|
1799
1834
|
|
|
1800
1835
|
export declare interface FilterLookup {
|
|
1801
1836
|
id: number;
|
|
@@ -1816,20 +1851,34 @@ export declare interface FilterOption {
|
|
|
1816
1851
|
color?: string;
|
|
1817
1852
|
}
|
|
1818
1853
|
|
|
1854
|
+
/**
|
|
1855
|
+
* Whether an item passes one filter at the given value. It must also answer for values the user hasn't picked:
|
|
1856
|
+
* a one-option value while counting, and the filter's empty value (null, [], 0, false), which lets every item through.
|
|
1857
|
+
*/
|
|
1858
|
+
export declare type FilterPredicate<T> = (item: T, value: FilterValue | undefined) => boolean;
|
|
1859
|
+
|
|
1860
|
+
export declare type FilterPredicates<T> = Record<string, FilterPredicate<T>>;
|
|
1861
|
+
|
|
1819
1862
|
/** `pinned` filters start open and stay in sight; `secondary` ones sit at the end. */
|
|
1820
1863
|
export declare type FilterPriority = 'pinned' | 'default' | 'secondary';
|
|
1821
1864
|
|
|
1822
|
-
export declare type FilterSpec = SingleFilterSpec | MultiFilterSpec | RangeFilterSpec | RatingFilterSpec | ToggleFilterSpec | TextFilterSpec | DateFilterSpec;
|
|
1865
|
+
export declare type FilterSpec = SingleFilterSpec | MultiFilterSpec | RangeFilterSpec | RatingFilterSpec | ToggleFilterSpec | TextFilterSpec | DateFilterSpec | DateRangeFilterSpec;
|
|
1823
1866
|
|
|
1824
1867
|
declare interface FilterSpecBase {
|
|
1825
1868
|
id: string;
|
|
1826
1869
|
label: string;
|
|
1827
1870
|
priority?: FilterPriority;
|
|
1871
|
+
/**
|
|
1872
|
+
* The value the page starts with, when it isn't the empty one (e.g. status "Open", "last 30 days").
|
|
1873
|
+
* At this value the filter doesn't count as applied and shows no chip; removing its chip returns to it.
|
|
1874
|
+
*/
|
|
1875
|
+
defaultValue?: FilterValue;
|
|
1828
1876
|
}
|
|
1829
1877
|
|
|
1830
1878
|
/**
|
|
1831
1879
|
* A filter's value. By kind: single → option value or null; multi → option values; range → [min, max]
|
|
1832
|
-
* or null; rating → the minimum (0 for any); toggle → boolean; text → TextFilterValue; date → 'YYYY-MM-DD' or null
|
|
1880
|
+
* or null; rating → the minimum (0 for any); toggle → boolean; text → TextFilterValue; date → 'YYYY-MM-DD' or null;
|
|
1881
|
+
* date-range → ['YYYY-MM-DD', 'YYYY-MM-DD'] with '' for an open end, or null.
|
|
1833
1882
|
*/
|
|
1834
1883
|
export declare type FilterValue = string | number | boolean | null | Array<string | number> | TextFilterValue;
|
|
1835
1884
|
|
|
@@ -2792,6 +2841,7 @@ export declare interface MenuHamburgerItem {
|
|
|
2792
2841
|
onClick: () => void;
|
|
2793
2842
|
isActive: boolean;
|
|
2794
2843
|
separator?: boolean;
|
|
2844
|
+
disabled?: boolean;
|
|
2795
2845
|
}
|
|
2796
2846
|
|
|
2797
2847
|
declare interface MenuHamburgerProps {
|
|
@@ -2930,6 +2980,11 @@ export declare interface MultiFilterSpec extends FilterSpecBase {
|
|
|
2930
2980
|
kind: 'multi';
|
|
2931
2981
|
options: FilterOption[];
|
|
2932
2982
|
control?: FilterControl;
|
|
2983
|
+
/**
|
|
2984
|
+
* What the applied chips list: the picked options (default), or the ones left out ("Without X"). Use `excluded`
|
|
2985
|
+
* with a `defaultValue` of every option, for filters where everything is on until the user turns some off.
|
|
2986
|
+
*/
|
|
2987
|
+
chips?: 'selected' | 'excluded';
|
|
2933
2988
|
}
|
|
2934
2989
|
|
|
2935
2990
|
export declare const NavBar: default_2.FC<NavBarProps>;
|
|
@@ -3037,6 +3092,8 @@ export declare interface PagePagination {
|
|
|
3037
3092
|
export declare interface PageSearch {
|
|
3038
3093
|
value: string;
|
|
3039
3094
|
placeholder?: string;
|
|
3095
|
+
/** Focuses the box when the page opens, for pages whose main job is searching. */
|
|
3096
|
+
autoFocus?: boolean;
|
|
3040
3097
|
onChange: (value: string) => void;
|
|
3041
3098
|
}
|
|
3042
3099
|
|
|
@@ -3068,6 +3125,10 @@ export declare interface PageShellProps {
|
|
|
3068
3125
|
resultLabel?: (count: number) => string;
|
|
3069
3126
|
/** The list's current page, shown at the top (beside the applied filters) once there is more than one. */
|
|
3070
3127
|
pagination?: PagePagination;
|
|
3128
|
+
/** Switches between the parts of this page; drawn under the toolbar. Not for app sections, which belong in the frame's nav. */
|
|
3129
|
+
tabs?: PageTabs;
|
|
3130
|
+
/** This page's own indicator (e.g. an overdue bell), shown where the frame's `status` goes, in its place. */
|
|
3131
|
+
status?: ReactNode;
|
|
3071
3132
|
children: ReactNode;
|
|
3072
3133
|
}
|
|
3073
3134
|
|
|
@@ -3089,14 +3150,44 @@ export declare interface PageSortValue {
|
|
|
3089
3150
|
direction: PageSortDirection;
|
|
3090
3151
|
}
|
|
3091
3152
|
|
|
3092
|
-
|
|
3093
|
-
|
|
3153
|
+
/** One part of a page that has several (settings tabs, dashboard sections, one car's records). */
|
|
3154
|
+
export declare interface PageTab {
|
|
3155
|
+
value: string;
|
|
3156
|
+
label: string;
|
|
3157
|
+
icon?: IconName;
|
|
3158
|
+
count?: number;
|
|
3159
|
+
/** Colours the tab while it isn't the current one, to flag what it holds (e.g. overdue items). */
|
|
3160
|
+
tone?: 'warning' | 'danger';
|
|
3161
|
+
}
|
|
3162
|
+
|
|
3163
|
+
export declare interface PageTabs {
|
|
3164
|
+
items: PageTab[];
|
|
3094
3165
|
value: string;
|
|
3095
3166
|
onChange: (value: string) => void;
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3169
|
+
export declare interface PageView {
|
|
3170
|
+
/** The ways to show the list. Leave out (or pass one) for a page with a single way; the other options still show. */
|
|
3171
|
+
modes?: Array<BuiltInViewMode | PageViewMode>;
|
|
3172
|
+
value?: string;
|
|
3173
|
+
onChange?: (value: string) => void;
|
|
3096
3174
|
/** Optional fields the user can show or hide. Listed with the view options, closed until opened. */
|
|
3097
3175
|
columns?: PageColumns;
|
|
3098
3176
|
groupBy?: PageGroupBy;
|
|
3099
3177
|
toggles?: PageViewToggle[];
|
|
3178
|
+
choices?: PageViewChoice[];
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
/** A display setting that always holds one of its options (currency, whose figures). Not a filter: it never counts as applied. */
|
|
3182
|
+
declare interface PageViewChoice {
|
|
3183
|
+
id: string;
|
|
3184
|
+
label: string;
|
|
3185
|
+
options: Array<{
|
|
3186
|
+
value: string;
|
|
3187
|
+
label: string;
|
|
3188
|
+
}>;
|
|
3189
|
+
value: string;
|
|
3190
|
+
onChange: (value: string) => void;
|
|
3100
3191
|
}
|
|
3101
3192
|
|
|
3102
3193
|
export declare interface PageViewMode {
|
|
@@ -3974,6 +4065,8 @@ export declare const ToggleButtons: FC<ToggleProps>;
|
|
|
3974
4065
|
|
|
3975
4066
|
export declare interface ToggleFilterSpec extends FilterSpecBase {
|
|
3976
4067
|
kind: 'toggle';
|
|
4068
|
+
/** How many items the toggle leaves, shown beside its label. */
|
|
4069
|
+
count?: number;
|
|
3977
4070
|
}
|
|
3978
4071
|
|
|
3979
4072
|
declare interface ToggleProps {
|
package/dist/index.js
CHANGED
|
@@ -127,57 +127,58 @@ import { AppFrame as xi } from "./components/PageShell/AppFrame.js";
|
|
|
127
127
|
import { RangeSlider as Hi } from "./components/RangeSlider/RangeSlider2.js";
|
|
128
128
|
import { countActiveFilters as Ui, defaultFilterValue as wi, isFilterActive as Ki } from "./components/PageShell/filterRules.js";
|
|
129
129
|
import { FilterField as Wi } from "./components/PageShell/FilterField2.js";
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
168
|
-
import {
|
|
169
|
-
import {
|
|
170
|
-
import {
|
|
171
|
-
import {
|
|
172
|
-
import {
|
|
173
|
-
import {
|
|
174
|
-
import {
|
|
175
|
-
import {
|
|
176
|
-
import {
|
|
177
|
-
import {
|
|
178
|
-
import {
|
|
179
|
-
import {
|
|
180
|
-
import {
|
|
130
|
+
import { asFilterDateRange as Qi, asFilterKey as Gi, asFilterKeys as qi, asFilterRange as Yi, asFilterText as ji, getStaleFilterChanges as Ji } from "./components/PageShell/filterValues.js";
|
|
131
|
+
import { applyLiveCounts as Zi } from "./components/PageShell/liveCounts.js";
|
|
132
|
+
import { PageShell as re } from "./components/PageShell/PageShell2.js";
|
|
133
|
+
import { usePaging as te } from "./components/PageShell/usePaging.js";
|
|
134
|
+
import { usePruneStaleFilters as ie } from "./components/PageShell/usePruneStaleFilters.js";
|
|
135
|
+
import { PieChart as pe } from "./components/PieChart/PieChart2.js";
|
|
136
|
+
import { clamp as fe, format2Digits as ne, getPercent as le, getPercentsOf2Numbers as se } from "./helpers/Numbers.js";
|
|
137
|
+
import { ProgressBar as ge } from "./components/ProgressBar/ProgressBar2.js";
|
|
138
|
+
import { ProgressRing as Te } from "./components/ProgressRing/ProgressRing2.js";
|
|
139
|
+
import { QuantitySelector as Ie } from "./components/QuantitySelector/QuantitySelector2.js";
|
|
140
|
+
import { QuickAdd as Pe } from "./components/QuickAdd/QuickAdd2.js";
|
|
141
|
+
import { QuickNumberUpdate as Ce } from "./components/QuickNumberUpdate/QuickNumberUpdate2.js";
|
|
142
|
+
import { Radio as he } from "./components/Radio/Radio2.js";
|
|
143
|
+
import { QuickOptionUpdate as Le } from "./components/QuickOptionUpdate/QuickOptionUpdate2.js";
|
|
144
|
+
import { ensureHtml as Be, htmlToMarkdown as Fe, htmlToPlainText as Re, splitHtmlIntoSteps as ke } from "./helpers/HtmlContent.js";
|
|
145
|
+
import { RichTextEditor as ye } from "./components/RichTextEditor/RichTextEditor2.js";
|
|
146
|
+
import { ScrollToTop as be } from "./components/ScrollToTop/ScrollToTop2.js";
|
|
147
|
+
import { useSidebar as Oe } from "./components/Sidebar/useSidebar.js";
|
|
148
|
+
import { Sidebar as Ne } from "./components/Sidebar/Sidebar2.js";
|
|
149
|
+
import { SidebarProvider as we } from "./components/Sidebar/SidebarContext.js";
|
|
150
|
+
import { SignalStrength as Ve } from "./components/SignalStrength/SignalStrength2.js";
|
|
151
|
+
import { Skeleton as ze } from "./components/Skeleton/Skeleton2.js";
|
|
152
|
+
import { SplitPanel as Ge } from "./components/SplitPanel/SplitPanel2.js";
|
|
153
|
+
import { Splitter as Ye } from "./components/Splitter/Splitter2.js";
|
|
154
|
+
import { StackedBar as Je } from "./components/StackedBar/StackedBar2.js";
|
|
155
|
+
import { Stats as Ze } from "./components/Stats/Stats2.js";
|
|
156
|
+
import { StickyBar as rp } from "./components/StickyBar/StickyBar2.js";
|
|
157
|
+
import { SuggestionsList as tp } from "./components/SuggestionsList/SuggestionsList2.js";
|
|
158
|
+
import { Timeline as ip } from "./components/Timeline/Timeline2.js";
|
|
159
|
+
import { TipsOfTheDay as pp } from "./components/TipsOfTheDay/TipsOfTheDay2.js";
|
|
160
|
+
import { Toolbar as fp } from "./components/Toolbar/Toolbar2.js";
|
|
161
|
+
import { ToolButton as lp } from "./components/ToolButton/ToolButton2.js";
|
|
162
|
+
import { ToolPalette as up } from "./components/ToolPalette/ToolPalette2.js";
|
|
163
|
+
import { TourHud as dp } from "./components/TourHud/TourHud2.js";
|
|
164
|
+
import { Transition as cp } from "./components/Transition/Transition2.js";
|
|
165
|
+
import { Tree as Sp } from "./components/Tree/Tree2.js";
|
|
166
|
+
import { VirtualList as Ap } from "./components/VirtualList/VirtualList2.js";
|
|
167
|
+
import { WHtR as Dp } from "./components/WHtR/WHtR2.js";
|
|
168
|
+
import { Login as Mp } from "./components/Auth/Login/Login2.js";
|
|
169
|
+
import { AppPersistenceStorage as Ep } from "./helpers/AppPersistenceStorage.js";
|
|
170
|
+
import { useAppPersistence as Fp } from "./hooks/useAppPersistence.js";
|
|
171
|
+
import { chartColors as kp, chartTooltipStyle as _p } from "./helpers/Charts.js";
|
|
172
|
+
import { UNALLOCATED_FILTER_ID as vp, UNALLOCATED_FILTER_KEY as bp, UNALLOCATED_FILTER_LABEL as xp, getFilterOptions as Op, getKeyFilterOptions as Hp, getMatchableFilterIds as Np, getMatchableFilterKeys as Up, matchesIdFilter as wp, matchesKeyFilter as Kp } from "./helpers/FilterOptions.js";
|
|
173
|
+
import { formatBigNumber as Wp, formatBytes as zp, formatMoney as Qp } from "./helpers/Format.js";
|
|
174
|
+
import { highlightText as qp } from "./helpers/Highlight.js";
|
|
175
|
+
import { DATA_FILES_PATH as jp, createImagePaths as Jp } from "./helpers/Images.js";
|
|
176
|
+
import { matchStringsByLogicalOperator as Zp } from "./helpers/LogicalOperators.js";
|
|
177
|
+
import { shortenText as ra, slugify as oa, truncateText as ta } from "./helpers/Strings.js";
|
|
178
|
+
import { extractDomainFromUrl as ia, stripQueryString as ea, stripTrackingParams as pa } from "./helpers/Urls.js";
|
|
179
|
+
import { LIB_BUILD_DATE as fa, LIB_BUILD_ID as na, LIB_BUILD_NUMBER as la, LIB_COMMIT as sa, LIB_VERSION as ua } from "./version.js";
|
|
180
|
+
import { initVersionInfo as da } from "./helpers/VersionInfo.js";
|
|
181
|
+
import { validateVin as ca } from "./validators/Vin.js";
|
|
181
182
|
export {
|
|
182
183
|
j as ADULT_RANGES,
|
|
183
184
|
sr as APP_DATE_FORMAT,
|
|
@@ -190,9 +191,9 @@ export {
|
|
|
190
191
|
$m as ApiError,
|
|
191
192
|
xi as AppFrame,
|
|
192
193
|
U as AppHeader,
|
|
193
|
-
|
|
194
|
+
Ep as AppPersistenceStorage,
|
|
194
195
|
ui as AuthContext,
|
|
195
|
-
|
|
196
|
+
Mp as AuthLogin,
|
|
196
197
|
di as AuthProvider,
|
|
197
198
|
K as AvatarInitials,
|
|
198
199
|
mr as BMI,
|
|
@@ -222,7 +223,7 @@ export {
|
|
|
222
223
|
Wo as ControlPanelProvider,
|
|
223
224
|
Qo as CopyButton,
|
|
224
225
|
jo as CountryWithFlag,
|
|
225
|
-
|
|
226
|
+
jp as DATA_FILES_PATH,
|
|
226
227
|
ct as DataView,
|
|
227
228
|
Ao as DatePicker,
|
|
228
229
|
St as DateRangePicker,
|
|
@@ -264,11 +265,11 @@ export {
|
|
|
264
265
|
_m as InputTime,
|
|
265
266
|
vm as InputUrl,
|
|
266
267
|
xm as JourneyWizard,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
268
|
+
fa as LIB_BUILD_DATE,
|
|
269
|
+
na as LIB_BUILD_ID,
|
|
270
|
+
la as LIB_BUILD_NUMBER,
|
|
271
|
+
sa as LIB_COMMIT,
|
|
272
|
+
ua as LIB_VERSION,
|
|
272
273
|
$o as LIST_MOTION_KEY_ATTRIBUTE,
|
|
273
274
|
I as LanguageContext,
|
|
274
275
|
P as LanguageProvider,
|
|
@@ -283,92 +284,94 @@ export {
|
|
|
283
284
|
jm as NavBar,
|
|
284
285
|
Xm as NotificationPanel,
|
|
285
286
|
J as PEDIATRIC_THRESHOLDS,
|
|
286
|
-
|
|
287
|
+
re as PageShell,
|
|
287
288
|
pt as Pagination,
|
|
288
|
-
|
|
289
|
+
pe as PieChart,
|
|
289
290
|
po as Popover,
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
291
|
+
ge as ProgressBar,
|
|
292
|
+
Te as ProgressRing,
|
|
293
|
+
Ie as QuantitySelector,
|
|
294
|
+
Pe as QuickAdd,
|
|
295
|
+
Ce as QuickNumberUpdate,
|
|
296
|
+
Le as QuickOptionUpdate,
|
|
297
|
+
he as Radio,
|
|
297
298
|
Hi as RangeSlider,
|
|
298
299
|
_o as Rating,
|
|
299
|
-
|
|
300
|
+
ye as RichTextEditor,
|
|
300
301
|
Qm as RollingNumber,
|
|
301
|
-
|
|
302
|
+
be as ScrollToTop,
|
|
302
303
|
H as Separator,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
304
|
+
Ne as Sidebar,
|
|
305
|
+
we as SidebarProvider,
|
|
306
|
+
Ve as SignalStrength,
|
|
307
|
+
ze as Skeleton,
|
|
307
308
|
vo as Slider,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
309
|
+
Ge as SplitPanel,
|
|
310
|
+
Ye as Splitter,
|
|
311
|
+
Je as StackedBar,
|
|
312
|
+
Ze as Stats,
|
|
313
|
+
rp as StickyBar,
|
|
314
|
+
tp as SuggestionsList,
|
|
314
315
|
Di as THEME_CONFIGS,
|
|
315
316
|
s as ThemeContext,
|
|
316
317
|
Bi as ThemeProvider,
|
|
317
318
|
Ri as ThemeSettings,
|
|
318
319
|
So as TimePicker,
|
|
319
|
-
|
|
320
|
+
ip as Timeline,
|
|
320
321
|
lt as TimelineMarkerDot,
|
|
321
322
|
st as TimelineMarkers,
|
|
322
323
|
ut as TimelineMobileSeparator,
|
|
323
|
-
|
|
324
|
+
pp as TipsOfTheDay,
|
|
324
325
|
Si as Toast,
|
|
325
326
|
To as ToastContainer,
|
|
326
327
|
co as ToastProvider,
|
|
327
328
|
bt as ToggleButtons,
|
|
328
329
|
am as ToggleSwitch,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
330
|
+
lp as ToolButton,
|
|
331
|
+
up as ToolPalette,
|
|
332
|
+
fp as Toolbar,
|
|
332
333
|
B as Tooltip,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
334
|
+
dp as TourHud,
|
|
335
|
+
cp as Transition,
|
|
336
|
+
Sp as Tree,
|
|
337
|
+
vp as UNALLOCATED_FILTER_ID,
|
|
338
|
+
bp as UNALLOCATED_FILTER_KEY,
|
|
339
|
+
xp as UNALLOCATED_FILTER_LABEL,
|
|
340
|
+
Ap as VirtualList,
|
|
341
|
+
Dp as WHtR,
|
|
341
342
|
gr as addDays,
|
|
342
343
|
dr as addMonths,
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
Zi as applyLiveCounts,
|
|
345
|
+
Qi as asFilterDateRange,
|
|
346
|
+
Gi as asFilterKey,
|
|
347
|
+
qi as asFilterKeys,
|
|
348
|
+
Yi as asFilterRange,
|
|
349
|
+
ji as asFilterText,
|
|
347
350
|
wo as breakpoints,
|
|
348
351
|
mi as buildRequestHeaders,
|
|
349
352
|
X as calculateBMI,
|
|
350
353
|
ft as calculateTimelineMarkers,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
+
kp as chartColors,
|
|
355
|
+
_p as chartTooltipStyle,
|
|
356
|
+
fe as clamp,
|
|
354
357
|
Ui as countActiveFilters,
|
|
355
358
|
ii as createApiClient,
|
|
356
|
-
|
|
359
|
+
Jp as createImagePaths,
|
|
357
360
|
om as cropImage,
|
|
358
361
|
wi as defaultFilterValue,
|
|
359
362
|
tm as encodeCanvas,
|
|
360
|
-
|
|
361
|
-
|
|
363
|
+
Be as ensureHtml,
|
|
364
|
+
ia as extractDomainFromUrl,
|
|
362
365
|
Do as foldDiacritics,
|
|
363
|
-
|
|
366
|
+
ne as format2Digits,
|
|
364
367
|
Tr as formatAppDate,
|
|
365
368
|
cr as formatAppDateTime,
|
|
366
|
-
|
|
367
|
-
|
|
369
|
+
Wp as formatBigNumber,
|
|
370
|
+
zp as formatBytes,
|
|
368
371
|
Ir as formatDate,
|
|
369
372
|
Sr as formatDateLocale,
|
|
370
373
|
Pr as formatDuration,
|
|
371
|
-
|
|
374
|
+
Qp as formatMoney,
|
|
372
375
|
Ar as formatRelativeDuration,
|
|
373
376
|
Cr as formatRelativeTime,
|
|
374
377
|
Dr as formatSecondsToMediaTime,
|
|
@@ -376,26 +379,26 @@ export {
|
|
|
376
379
|
ei as getCsrfToken,
|
|
377
380
|
hr as getDaysInMonth,
|
|
378
381
|
Li as getDefaultThemeForApp,
|
|
379
|
-
|
|
382
|
+
Op as getFilterOptions,
|
|
380
383
|
Z as getIndicatorColor,
|
|
381
384
|
$ as getIndicatorPosition,
|
|
382
385
|
Mr as getIsoWeek,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
+
Hp as getKeyFilterOptions,
|
|
387
|
+
Np as getMatchableFilterIds,
|
|
388
|
+
Up as getMatchableFilterKeys,
|
|
386
389
|
Lr as getMonthMatrix,
|
|
387
390
|
rr as getPediatricRanges,
|
|
388
|
-
|
|
389
|
-
|
|
391
|
+
le as getPercent,
|
|
392
|
+
se as getPercentsOf2Numbers,
|
|
390
393
|
or as getRangeLabel,
|
|
391
394
|
Xo as getResultsCount,
|
|
392
|
-
|
|
395
|
+
Ji as getStaleFilterChanges,
|
|
393
396
|
hi as getThemeConfig,
|
|
394
397
|
Er as getTodayDateString,
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
398
|
+
qp as highlightText,
|
|
399
|
+
Fe as htmlToMarkdown,
|
|
400
|
+
Re as htmlToPlainText,
|
|
401
|
+
da as initVersionInfo,
|
|
399
402
|
Br as isAfter,
|
|
400
403
|
Fr as isBefore,
|
|
401
404
|
pi as isClientErrorStatus,
|
|
@@ -408,22 +411,22 @@ export {
|
|
|
408
411
|
yr as isWeekend,
|
|
409
412
|
mm as loadImageElement,
|
|
410
413
|
ni as logUnexpectedError,
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
+
Zp as matchStringsByLogicalOperator,
|
|
415
|
+
wp as matchesIdFilter,
|
|
416
|
+
Kp as matchesKeyFilter,
|
|
414
417
|
li as readErrorMessage,
|
|
415
418
|
im as renderImageRegion,
|
|
416
419
|
a as roCount,
|
|
417
420
|
em as rotatedSize,
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
421
|
+
ra as shortenText,
|
|
422
|
+
oa as slugify,
|
|
423
|
+
ke as splitHtmlIntoSteps,
|
|
424
|
+
ea as stripQueryString,
|
|
425
|
+
pa as stripTrackingParams,
|
|
426
|
+
ta as truncateText,
|
|
424
427
|
_i as useAccountMenu,
|
|
425
428
|
vi as useAppFrame,
|
|
426
|
-
|
|
429
|
+
Fp as useAppPersistence,
|
|
427
430
|
ci as useAuth,
|
|
428
431
|
n as useBodyScrollLock,
|
|
429
432
|
Ko as useBreakpoint,
|
|
@@ -435,13 +438,13 @@ export {
|
|
|
435
438
|
D as useLanguageMenuItem,
|
|
436
439
|
rt as useListMotion,
|
|
437
440
|
h as useMessages,
|
|
438
|
-
|
|
441
|
+
te as usePaging,
|
|
439
442
|
io as usePopover,
|
|
440
|
-
|
|
441
|
-
|
|
443
|
+
ie as usePruneStaleFilters,
|
|
444
|
+
Oe as useSidebar,
|
|
442
445
|
At as useSwipe,
|
|
443
446
|
g as useTheme,
|
|
444
447
|
uo as useToast,
|
|
445
448
|
gm as validateEmail,
|
|
446
|
-
|
|
449
|
+
ca as validateVin
|
|
447
450
|
};
|
package/dist/router.d.ts
CHANGED
|
@@ -15,11 +15,21 @@ declare interface AppFrameProps {
|
|
|
15
15
|
nav?: AppNavItem[];
|
|
16
16
|
/** Adds the account menu (theme, password, two-factor, logout) and mounts the dialogs it opens. Needs an AuthProvider above. */
|
|
17
17
|
account?: UseAccountMenuOptions;
|
|
18
|
+
/** For apps without sign-in: adds just the Theme entry and its dialog. `account` already includes it. */
|
|
19
|
+
theme?: AppFrameTheme;
|
|
18
20
|
/** App-specific menu entries, listed before the account ones. Page actions join them on small screens. */
|
|
19
21
|
menuItems?: MenuHamburgerItem[];
|
|
22
|
+
/** An app-wide indicator shown beside the page menu on every page and device: a notifications bell, a monitor's health. Keep it small. */
|
|
23
|
+
status?: ReactNode;
|
|
20
24
|
children: ReactNode;
|
|
21
25
|
}
|
|
22
26
|
|
|
27
|
+
declare interface AppFrameTheme {
|
|
28
|
+
/** Shown in the theme dialog's "For <app>" recommended filter. */
|
|
29
|
+
appName: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
declare interface AppIdentity {
|
|
24
34
|
name: string;
|
|
25
35
|
icon?: IconName;
|
|
@@ -45,6 +55,8 @@ export declare interface AppRouteNavItem {
|
|
|
45
55
|
count?: number;
|
|
46
56
|
/** Whether only the exact path counts as this section. Defaults to true for '/' and false otherwise, so '/archive/12' still lights up Archive. */
|
|
47
57
|
end?: boolean;
|
|
58
|
+
/** Other paths that belong to this section, e.g. ['/person/:id/*'] for a People section's detail pages. */
|
|
59
|
+
activeOn?: string[];
|
|
48
60
|
}
|
|
49
61
|
|
|
50
62
|
declare interface MenuHamburgerItem {
|
|
@@ -53,6 +65,7 @@ declare interface MenuHamburgerItem {
|
|
|
53
65
|
onClick: () => void;
|
|
54
66
|
isActive: boolean;
|
|
55
67
|
separator?: boolean;
|
|
68
|
+
disabled?: boolean;
|
|
56
69
|
}
|
|
57
70
|
|
|
58
71
|
export declare function ProtectedRoute({ children, loginPath }: ProtectedRouteProps): ReactElement;
|