@memobit/libs 3.14.0 → 3.15.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.
@@ -0,0 +1,36 @@
1
+ var g = -1, u = "Unallocated", f = (t) => Array.isArray(t) ? t : t == null ? [] : [t], i = (t, r) => f(t).filter((s) => r.has(s)), m = (t, r, s, n = u) => {
2
+ const l = new Set(r.map((e) => e.id)), a = /* @__PURE__ */ new Map();
3
+ let o = 0;
4
+ t.forEach((e) => {
5
+ const c = i(s(e), l);
6
+ c.length === 0 && o++, c.forEach((h) => a.set(h, (a.get(h) ?? 0) + 1));
7
+ });
8
+ const d = r.filter((e) => a.has(e.id)).sort((e, c) => e.name.localeCompare(c.name)).map((e) => ({
9
+ value: e.id,
10
+ label: e.name,
11
+ count: a.get(e.id)
12
+ }));
13
+ return o > 0 && d.push({
14
+ value: -1,
15
+ label: n,
16
+ count: o
17
+ }), d;
18
+ }, E = (t, r, s) => {
19
+ const n = f(t);
20
+ if (n.length === 0) return !0;
21
+ const l = i(r, s);
22
+ return l.length === 0 ? n.includes(-1) : l.some((a) => n.includes(a));
23
+ }, I = (t, r, s) => {
24
+ const n = /* @__PURE__ */ new Set();
25
+ return t.forEach((l) => {
26
+ const a = i(s(l), r);
27
+ a.length === 0 && n.add(-1), a.forEach((o) => n.add(o));
28
+ }), n;
29
+ };
30
+ export {
31
+ g as UNALLOCATED_FILTER_ID,
32
+ u as UNALLOCATED_FILTER_LABEL,
33
+ m as getFilterOptions,
34
+ I as getMatchableFilterIds,
35
+ E as matchesIdFilter
36
+ };
@@ -23,7 +23,7 @@ var r = (i) => {
23
23
  const o = {
24
24
  ...i,
25
25
  lib: d,
26
- libBuildNumber: 556,
26
+ libBuildNumber: 563,
27
27
  libCommit: n,
28
28
  libBuildDate: t
29
29
  };
package/dist/index.d.ts CHANGED
@@ -1626,6 +1626,14 @@ export declare interface FileDropzoneProps {
1626
1626
  onFiles?: (files: File[]) => void;
1627
1627
  }
1628
1628
 
1629
+ /** Reads an item's lookup id(s): a single id for one-to-one fields, an array for many-to-many (tags). */
1630
+ export declare type FilterIdGetter<T> = (item: T) => number | number[] | null | undefined;
1631
+
1632
+ export declare interface FilterLookup {
1633
+ id: number;
1634
+ name: string;
1635
+ }
1636
+
1629
1637
  export declare const Flag: default_2.FC<FlagsProps>;
1630
1638
 
1631
1639
  declare interface FlagsProps {
@@ -1770,6 +1778,14 @@ export declare const getDaysInMonth: (year: number, month: number) => number;
1770
1778
  */
1771
1779
  export declare const getDefaultThemeForApp: (app: string, fallback?: Theme) => Theme;
1772
1780
 
1781
+ /**
1782
+ * Chip/dropdown options for one lookup filter: every lookup at least one item uses (alphabetical,
1783
+ * with item counts), then an "Unallocated" option when some items have no existing lookup.
1784
+ * Without it those items could only be found by clearing every filter. Pass `unallocatedLabel`
1785
+ * when the domain has a better word for it (e.g. "Uncategorized", "No tags").
1786
+ */
1787
+ export declare const getFilterOptions: <T>(items: T[], lookups: FilterLookup[], getId: FilterIdGetter<T>, unallocatedLabel?: string) => ControlPanelFilterOption[];
1788
+
1773
1789
  export declare const getIndicatorColor: (bmi: number, ranges: BMIRange[]) => string;
1774
1790
 
1775
1791
  export declare const getIndicatorPosition: (bmi: number, ranges: BMIRange[]) => number;
@@ -1781,6 +1797,12 @@ export declare const getIndicatorPosition: (bmi: number, ranges: BMIRange[]) =>
1781
1797
  */
1782
1798
  export declare const getIsoWeek: (date: Date) => number;
1783
1799
 
1800
+ /**
1801
+ * Filter values the items can currently match: the lookup ids they use, plus
1802
+ * `UNALLOCATED_FILTER_ID` when any item is unallocated. Use it to prune persisted filters.
1803
+ */
1804
+ export declare const getMatchableFilterIds: <T>(items: T[], knownIds: Set<number>, getId: FilterIdGetter<T>) => Set<number>;
1805
+
1784
1806
  /**
1785
1807
  * Generates a matrix of dates for calendar display
1786
1808
  * Returns a 2D array where each sub-array represents a week
@@ -2478,6 +2500,12 @@ export declare interface LoginResponse {
2478
2500
  */
2479
2501
  export declare const logUnexpectedError: (message: string, error: unknown, context?: ErrorReportContext) => void;
2480
2502
 
2503
+ /**
2504
+ * Whether an item passes a lookup filter. An empty or missing filter passes everything;
2505
+ * `UNALLOCATED_FILTER_ID` in the filter matches items with no existing lookup.
2506
+ */
2507
+ export declare const matchesIdFilter: (filterValue: number | number[] | null | undefined, itemValue: number | number[] | null | undefined, knownIds: Set<number>) => boolean;
2508
+
2481
2509
  export declare const matchStringsByLogicalOperator: (searchItems: string[], targetString: string, operator: LogicalOperator) => boolean;
2482
2510
 
2483
2511
  export declare const MenuHamburger: FC<MenuHamburgerProps>;
@@ -3267,7 +3295,7 @@ export declare interface SwipeHandlers {
3267
3295
  onTouchCancel: () => void;
3268
3296
  }
3269
3297
 
3270
- export declare type Theme = 'amber-meridian' | 'archive-indigo' | 'arctic-blue' | 'asphalt-code' | 'atelier-media' | 'audit-ember' | 'azure-night' | 'blossom-meadow' | 'blueprint-clay' | 'blush-market' | 'brass-chronicle' | 'carbon-velocity' | 'chalk-circuit' | 'chrono-atlas' | 'clinical-aqua' | 'cobalt-pulse' | 'citrus-vital' | 'command-slate' | 'crawler-dusk' | 'crimson-dusk' | 'cyber-forest' | 'dashdarkx' | 'ember-night' | 'emerald-ledger' | 'frost-petal' | 'garden-harvest' | 'gilded-bear' | 'graphite-shell' | 'horizon-amber' | 'horizon-drift' | 'indigo-stitch' | 'ivory-serif' | 'kindred-ink' | 'lamplight' | 'lavender-mist' | 'light-blue' | 'lumen' | 'luna' | 'mesh-circuit' | 'midnight-atlas' | 'midnight-amber' | 'midnight-folio' | 'mint-meadow' | 'mintone' | 'neon-tokyo' | 'noir-marquee' | 'ocean-breeze' | 'ocean-depths' | 'orbital-night' | 'sandstone' | 'sandy-parchment' | 'screening-room' | 'signal-burst' | 'signal-clarity' | 'slate-focus' | 'slate-bazaar' | 'spectrum-vault' | 'tailwind-vue-dark' | 'terminal-phosphor' | 'terracotta-kitchen' | 'twilight-pulse' | 'vault-guard' | 'velvet-reel' | 'velvet-tome' | 'verdant-pulse' | 'vital-aurora' | 'vital-signal' | 'war-room';
3298
+ export declare type Theme = 'amber-meridian' | 'archive-indigo' | 'arctic-blue' | 'asphalt-code' | 'atelier-media' | 'audit-ember' | 'azure-night' | 'blossom-meadow' | 'blueprint-clay' | 'blush-market' | 'brass-chronicle' | 'carbon-velocity' | 'chalk-circuit' | 'chrono-atlas' | 'circuit-harbor' | 'clinical-aqua' | 'cobalt-pulse' | 'citrus-vital' | 'command-slate' | 'crawler-dusk' | 'crimson-dusk' | 'cyber-forest' | 'dashdarkx' | 'ember-night' | 'emerald-ledger' | 'frost-petal' | 'garden-harvest' | 'gilded-bear' | 'graphite-shell' | 'horizon-amber' | 'horizon-drift' | 'indigo-stitch' | 'ivory-serif' | 'kindred-ink' | 'lamplight' | 'lavender-mist' | 'light-blue' | 'lumen' | 'luna' | 'mesh-circuit' | 'midnight-atlas' | 'midnight-amber' | 'midnight-folio' | 'mint-meadow' | 'mintone' | 'neon-tokyo' | 'noir-marquee' | 'ocean-breeze' | 'ocean-depths' | 'orbital-night' | 'sandstone' | 'sandy-parchment' | 'screening-room' | 'signal-burst' | 'signal-clarity' | 'slate-focus' | 'slate-bazaar' | 'spectrum-vault' | 'tailwind-vue-dark' | 'terminal-phosphor' | 'terracotta-kitchen' | 'twilight-pulse' | 'vault-guard' | 'velvet-reel' | 'velvet-tome' | 'verdant-pulse' | 'vital-aurora' | 'vital-signal' | 'war-room';
3271
3299
 
3272
3300
  export { THEME_CONFIGS }
3273
3301
 
@@ -3671,6 +3699,14 @@ declare type TreeVariant = 'default' | 'info' | 'success' | 'warning' | 'danger'
3671
3699
 
3672
3700
  export declare const truncateText: (text: string, maxLength?: number, separator?: string) => string;
3673
3701
 
3702
+ /**
3703
+ * Filter value that matches items with no value for a lookup field, or whose value points at a
3704
+ * lookup that no longer exists. Negative so it never collides with a database id and stays truthy.
3705
+ */
3706
+ export declare const UNALLOCATED_FILTER_ID = -1;
3707
+
3708
+ export declare const UNALLOCATED_FILTER_LABEL = "Unallocated";
3709
+
3674
3710
  export declare const useAccountMenu: ({ appName, mfaModal: MfaModal, themeLabel, loginPath }: UseAccountMenuOptions) => UseAccountMenuReturn;
3675
3711
 
3676
3712
  export declare interface UseAccountMenuOptions {
package/dist/index.js CHANGED
@@ -6,32 +6,32 @@ import { useTheme as n } from "./components/ThemeSettings/useTheme.js";
6
6
  import { useComponentEffect as s } from "./hooks/useComponentEffect.js";
7
7
  import { Button as d } from "./components/Button/Button2.js";
8
8
  import { Tooltip as c } from "./components/Tooltip/Tooltip2.js";
9
- import { Modal as S } from "./components/Modal/Modal2.js";
9
+ import { Modal as I } from "./components/Modal/Modal2.js";
10
10
  import { AlertDialog as P } from "./components/AlertDialog/AlertDialog2.js";
11
11
  import { AnalogClock as D } from "./components/AnalogClock/AnalogClock2.js";
12
12
  import { AngleSlider as h } from "./components/AngleSlider/AngleSlider2.js";
13
13
  import { Separator as B } from "./components/Separator/Separator2.js";
14
- import { AppHeader as E } from "./components/AppHeader/AppHeader2.js";
15
- import { AvatarInitials as L } from "./components/AvatarInitials/AvatarInitials2.js";
16
- import { Badge as _ } from "./components/Badge/Badge2.js";
17
- import { Banner as v } from "./components/Banner/Banner2.js";
18
- import { Blockquote as F } from "./components/Blockquote/Blockquote2.js";
19
- import { ADULT_RANGES as N, PEDIATRIC_THRESHOLDS as w, calculateBMI as U, getIndicatorColor as O, getIndicatorPosition as V, getPediatricRanges as W, getRangeLabel as z } from "./components/BMI/bmiUtils.js";
14
+ import { AppHeader as L } from "./components/AppHeader/AppHeader2.js";
15
+ import { AvatarInitials as R } from "./components/AvatarInitials/AvatarInitials2.js";
16
+ import { Badge as y } from "./components/Badge/Badge2.js";
17
+ import { Banner as b } from "./components/Banner/Banner2.js";
18
+ import { Blockquote as x } from "./components/Blockquote/Blockquote2.js";
19
+ import { ADULT_RANGES as N, PEDIATRIC_THRESHOLDS as O, calculateBMI as U, getIndicatorColor as w, getIndicatorPosition as V, getPediatricRanges as W, getRangeLabel as z } from "./components/BMI/bmiUtils.js";
20
20
  import { BMI as G } from "./components/BMI/BMI2.js";
21
21
  import { Breadcrumb as j } from "./components/Breadcrumb/Breadcrumb2.js";
22
22
  import { BulkActionBar as K } from "./components/BulkActionBar/BulkActionBar2.js";
23
- import { APP_DATE_FORMAT as Y, APP_DATE_TIME_FORMAT as Z, addDays as $, addMonths as rr, formatAppDate as or, formatAppDateTime as tr, formatDate as mr, formatDateLocale as ir, formatDuration as er, formatRelativeDuration as pr, formatRelativeTime as fr, formatSecondsToMediaTime as ar, getDaysInMonth as nr, getIsoWeek as lr, getMonthMatrix as sr, getTodayDateString as ur, isAfter as dr, isBefore as gr, isDateInRange as cr, isSameDay as Tr, isToday as Sr, isWeekend as Ir } from "./helpers/Datetime.js";
23
+ import { APP_DATE_FORMAT as Y, APP_DATE_TIME_FORMAT as Z, addDays as $, addMonths as rr, formatAppDate as or, formatAppDateTime as tr, formatDate as mr, formatDateLocale as ir, formatDuration as er, formatRelativeDuration as pr, formatRelativeTime as fr, formatSecondsToMediaTime as ar, getDaysInMonth as nr, getIsoWeek as lr, getMonthMatrix as sr, getTodayDateString as ur, isAfter as dr, isBefore as gr, isDateInRange as cr, isSameDay as Tr, isToday as Ir, isWeekend as Sr } from "./helpers/Datetime.js";
24
24
  import { Calendar as Cr } from "./components/Calendar/Calendar2.js";
25
25
  import { CalendarHeatmap as Ar } from "./components/CalendarHeatmap/CalendarHeatmap2.js";
26
26
  import { Card as Mr } from "./components/Card/Card2.js";
27
- import { Checkbox as kr } from "./components/Checkbox/Checkbox2.js";
28
- import { Chip as Rr } from "./components/Chip/Chip2.js";
29
- import { CollapsibleSection as yr } from "./components/CollapsibleSection/CollapsibleSection2.js";
30
- import { InputNumber as br } from "./components/InputNumber/InputNumber2.js";
31
- import { InputText as xr } from "./components/InputText/InputText2.js";
27
+ import { Checkbox as Er } from "./components/Checkbox/Checkbox2.js";
28
+ import { Chip as kr } from "./components/Chip/Chip2.js";
29
+ import { CollapsibleSection as _r } from "./components/CollapsibleSection/CollapsibleSection2.js";
30
+ import { InputNumber as Fr } from "./components/InputNumber/InputNumber2.js";
31
+ import { InputText as vr } from "./components/InputText/InputText2.js";
32
32
  import { ColorPicker as Hr } from "./components/ColorPicker/ColorPicker2.js";
33
- import { CommandPalette as wr } from "./components/CommandPalette/CommandPalette2.js";
34
- import { Confetti as Or } from "./components/Confetti/Confetti2.js";
33
+ import { CommandPalette as Or } from "./components/CommandPalette/CommandPalette2.js";
34
+ import { Confetti as wr } from "./components/Confetti/Confetti2.js";
35
35
  import Wr from "./components/ConfirmDialog/ConfirmDialog2.js";
36
36
  import { usePopover as Qr } from "./components/Popover/hooks/Popover.hook.js";
37
37
  import { Popover as qr } from "./components/Popover/Popover2.js";
@@ -45,15 +45,15 @@ import { foldDiacritics as fo, fuzzyMatch as ao } from "./helpers/Search.js";
45
45
  import { Dropdown as lo } from "./components/Dropdown/Dropdown2.js";
46
46
  import { InputDate as uo } from "./components/InputDate/InputDate2.js";
47
47
  import { InputSearch as co } from "./components/InputSearch/InputSearch2.js";
48
- import { Rating as So } from "./components/Rating/Rating2.js";
48
+ import { Rating as Io } from "./components/Rating/Rating2.js";
49
49
  import { Slider as Po } from "./components/Slider/Slider2.js";
50
50
  import { useControlPanel as Do, useControlPanelContext as Ao } from "./components/ControlPanel/useControlPanel.js";
51
51
  import { ControlPanel as Mo } from "./components/ControlPanel/ControlPanel2.js";
52
- import { breakpoints as ko, useBreakpoint as Eo } from "./hooks/useBreakpoint.js";
53
- import { ControlPanelProvider as Lo } from "./components/ControlPanel/ControlPanelContext.js";
54
- import { CopyButton as _o } from "./components/CopyButton/CopyButton2.js";
55
- import { Flag as vo } from "./components/Flag/Flag2.js";
56
- import { CountryWithFlag as Fo } from "./components/CountryWithFlag/CountryWithFlag2.js";
52
+ import { breakpoints as Eo, useBreakpoint as Lo } from "./hooks/useBreakpoint.js";
53
+ import { ControlPanelProvider as Ro } from "./components/ControlPanel/ControlPanelContext.js";
54
+ import { CopyButton as yo } from "./components/CopyButton/CopyButton2.js";
55
+ import { Flag as bo } from "./components/Flag/Flag2.js";
56
+ import { CountryWithFlag as xo } from "./components/CountryWithFlag/CountryWithFlag2.js";
57
57
  import { getResultsCount as No } from "./helpers/Pagination.js";
58
58
  import { EmptyState as Uo } from "./components/EmptyState/EmptyState2.js";
59
59
  import { Pagination as Vo } from "./components/Pagination/Pagination2.js";
@@ -70,16 +70,16 @@ import { EmojiPicker as nt } from "./components/EmojiPicker/EmojiPicker2.js";
70
70
  import { ErrorBoundary as st } from "./components/ErrorBoundary/ErrorBoundary2.js";
71
71
  import { ToggleButtons as dt } from "./components/ToggleButtons/ToggleButtons2.js";
72
72
  import { EventCalendar as ct } from "./components/EventCalendar/EventCalendar2.js";
73
- import { FileDropzone as St } from "./components/FileDropzone/FileDropzone2.js";
73
+ import { FileDropzone as It } from "./components/FileDropzone/FileDropzone2.js";
74
74
  import { FloatButton as Pt } from "./components/FloatButton/FloatButton2.js";
75
75
  import { FloatingWindow as Dt } from "./components/FloatingWindow/FloatingWindow2.js";
76
76
  import { Loading as ht } from "./components/Loading/Loading2.js";
77
77
  import { FolderBrowserModal as Bt } from "./components/FolderBrowserModal/FolderBrowserModal2.js";
78
- import { Col as Et } from "./components/Grid/Col.js";
79
- import { Grid as Lt } from "./components/Grid/Grid2.js";
80
- import { IconPicker as _t } from "./components/IconPicker/IconPicker2.js";
81
- import { FULL_IMAGE as vt, cropImage as xt, encodeCanvas as Ft, loadImageElement as Ht, renderImageRegion as Nt, rotatedSize as wt } from "./helpers/ImageCrop.js";
82
- import { ToggleSwitch as Ot } from "./components/ToggleSwitch/ToggleSwitch2.js";
78
+ import { Col as Lt } from "./components/Grid/Col.js";
79
+ import { Grid as Rt } from "./components/Grid/Grid2.js";
80
+ import { IconPicker as yt } from "./components/IconPicker/IconPicker2.js";
81
+ import { FULL_IMAGE as bt, cropImage as vt, encodeCanvas as xt, loadImageElement as Ht, renderImageRegion as Nt, rotatedSize as Ot } from "./helpers/ImageCrop.js";
82
+ import { ToggleSwitch as wt } from "./components/ToggleSwitch/ToggleSwitch2.js";
83
83
  import { ImageCropper as Wt } from "./components/ImageCropper/ImageCropper2.js";
84
84
  import { InfiniteScroll as Qt } from "./components/InfiniteScroll/InfiniteScroll2.js";
85
85
  import { validateEmail as qt } from "./components/InputEmail/validateEmail.js";
@@ -95,14 +95,14 @@ import { InputTime as lm } from "./components/InputTime/InputTime2.js";
95
95
  import { InputUrl as um } from "./components/InputUrl/InputUrl2.js";
96
96
  import { JourneyWizard as gm } from "./components/JourneyWizard/JourneyWizard2.js";
97
97
  import { List as Tm } from "./components/List/List2.js";
98
- import { MenuHamburger as Im } from "./components/MenuHamburger/MenuHamburger2.js";
98
+ import { MenuHamburger as Sm } from "./components/MenuHamburger/MenuHamburger2.js";
99
99
  import { Minimap as Cm } from "./components/Minimap/Minimap2.js";
100
100
  import { MiniStatsCard as Am } from "./components/MiniStatsCard/MiniStatsCard2.js";
101
101
  import { NavBar as Mm } from "./components/NavBar/NavBar2.js";
102
- import { NotificationPanel as km } from "./components/NotificationPanel/NotificationPanel2.js";
103
- import { PieChart as Rm } from "./components/PieChart/PieChart2.js";
104
- import { clamp as ym, format2Digits as _m, getPercent as bm, getPercentsOf2Numbers as vm } from "./helpers/Numbers.js";
105
- import { ProgressBar as Fm } from "./components/ProgressBar/ProgressBar2.js";
102
+ import { NotificationPanel as Em } from "./components/NotificationPanel/NotificationPanel2.js";
103
+ import { PieChart as km } from "./components/PieChart/PieChart2.js";
104
+ import { clamp as _m, format2Digits as ym, getPercent as Fm, getPercentsOf2Numbers as bm } from "./helpers/Numbers.js";
105
+ import { ProgressBar as xm } from "./components/ProgressBar/ProgressBar2.js";
106
106
  import { ProgressRing as Nm } from "./components/ProgressRing/ProgressRing2.js";
107
107
  import { QuantitySelector as Um } from "./components/QuantitySelector/QuantitySelector2.js";
108
108
  import { QuickAdd as Vm } from "./components/QuickAdd/QuickAdd2.js";
@@ -119,15 +119,15 @@ import { Sidebar as li } from "./components/Sidebar/Sidebar2.js";
119
119
  import { SidebarProvider as ui } from "./components/Sidebar/SidebarContext.js";
120
120
  import { SignalStrength as gi } from "./components/SignalStrength/SignalStrength2.js";
121
121
  import { Skeleton as Ti } from "./components/Skeleton/Skeleton2.js";
122
- import { SplitPanel as Ii } from "./components/SplitPanel/SplitPanel2.js";
122
+ import { SplitPanel as Si } from "./components/SplitPanel/SplitPanel2.js";
123
123
  import { Splitter as Ci } from "./components/Splitter/Splitter2.js";
124
124
  import { StackedBar as Ai } from "./components/StackedBar/StackedBar2.js";
125
125
  import { Stats as Mi } from "./components/Stats/Stats2.js";
126
- import { StickyBar as ki } from "./components/StickyBar/StickyBar2.js";
127
- import { SuggestionsList as Ri } from "./components/SuggestionsList/SuggestionsList2.js";
128
- import { THEME_CONFIGS as yi, getThemeConfig as _i } from "./components/ThemeSettings/themeConfig.js";
129
- import { getDefaultThemeForApp as vi } from "./components/ThemeSettings/getDefaultThemeForApp.js";
130
- import { ThemeProvider as Fi } from "./components/ThemeSettings/ThemeContext.js";
126
+ import { StickyBar as Ei } from "./components/StickyBar/StickyBar2.js";
127
+ import { SuggestionsList as ki } from "./components/SuggestionsList/SuggestionsList2.js";
128
+ import { THEME_CONFIGS as _i, getThemeConfig as yi } from "./components/ThemeSettings/themeConfig.js";
129
+ import { getDefaultThemeForApp as bi } from "./components/ThemeSettings/getDefaultThemeForApp.js";
130
+ import { ThemeProvider as xi } from "./components/ThemeSettings/ThemeContext.js";
131
131
  import { ThemeSettings as Ni } from "./components/ThemeSettings/ThemeSettings2.js";
132
132
  import { Timeline as Ui } from "./components/Timeline/Timeline2.js";
133
133
  import { TipsOfTheDay as Vi } from "./components/TipsOfTheDay/TipsOfTheDay2.js";
@@ -140,23 +140,24 @@ import { VirtualList as $i } from "./components/VirtualList/VirtualList2.js";
140
140
  import { WHtR as oe } from "./components/WHtR/WHtR2.js";
141
141
  import { ApiError as me, CSRF_HEADER as ie, HttpMethod as ee, HttpStatus as pe, buildRequestHeaders as fe, createApiClient as ae, getCsrfToken as ne, isClientErrorStatus as le, isServerErrorStatus as se, isSuccessStatus as ue, logUnexpectedError as de, readErrorMessage as ge } from "./helpers/Http.js";
142
142
  import { AuthContext as Te } from "./contexts/AuthContext/AuthContext.context.js";
143
- import { AuthProvider as Ie } from "./contexts/AuthContext/AuthContext.js";
143
+ import { AuthProvider as Se } from "./contexts/AuthContext/AuthContext.js";
144
144
  import { useAuth as Ce } from "./hooks/useAuth/useAuth.js";
145
145
  import { ChangePasswordModal as Ae } from "./components/Auth/ChangePasswordModal/ChangePasswordModal2.js";
146
146
  import { Login as Me } from "./components/Auth/Login/Login2.js";
147
- import { useAccountMenu as ke } from "./hooks/useAccountMenu.js";
148
- import { AppPersistenceStorage as Re } from "./helpers/AppPersistenceStorage.js";
149
- import { useAppPersistence as ye } from "./hooks/useAppPersistence.js";
150
- import { chartColors as be, chartTooltipStyle as ve } from "./helpers/Charts.js";
151
- import { formatBigNumber as Fe, formatBytes as He, formatMoney as Ne } from "./helpers/Format.js";
152
- import { highlightText as Ue } from "./helpers/Highlight.js";
153
- import { DATA_FILES_PATH as Ve, createImagePaths as We } from "./helpers/Images.js";
154
- import { matchStringsByLogicalOperator as Qe } from "./helpers/LogicalOperators.js";
155
- import { shortenText as qe, slugify as je, truncateText as Je } from "./helpers/Strings.js";
156
- import { extractDomainFromUrl as Xe, stripQueryString as Ye, stripTrackingParams as Ze } from "./helpers/Urls.js";
157
- import { LIB_BUILD_DATE as rp, LIB_BUILD_ID as op, LIB_BUILD_NUMBER as tp, LIB_COMMIT as mp, LIB_VERSION as ip } from "./version.js";
158
- import { initVersionInfo as pp } from "./helpers/VersionInfo.js";
159
- import { validateVin as ap } from "./validators/Vin.js";
147
+ import { useAccountMenu as Ee } from "./hooks/useAccountMenu.js";
148
+ import { AppPersistenceStorage as ke } from "./helpers/AppPersistenceStorage.js";
149
+ import { useAppPersistence as _e } from "./hooks/useAppPersistence.js";
150
+ import { chartColors as Fe, chartTooltipStyle as be } from "./helpers/Charts.js";
151
+ import { formatBigNumber as xe, formatBytes as He, formatMoney as Ne } from "./helpers/Format.js";
152
+ import { UNALLOCATED_FILTER_ID as Ue, UNALLOCATED_FILTER_LABEL as we, getFilterOptions as Ve, getMatchableFilterIds as We, matchesIdFilter as ze } from "./helpers/FilterOptions.js";
153
+ import { highlightText as Ge } from "./helpers/Highlight.js";
154
+ import { DATA_FILES_PATH as je, createImagePaths as Je } from "./helpers/Images.js";
155
+ import { matchStringsByLogicalOperator as Xe } from "./helpers/LogicalOperators.js";
156
+ import { shortenText as Ze, slugify as $e, truncateText as rp } from "./helpers/Strings.js";
157
+ import { extractDomainFromUrl as tp, stripQueryString as mp, stripTrackingParams as ip } from "./helpers/Urls.js";
158
+ import { LIB_BUILD_DATE as pp, LIB_BUILD_ID as fp, LIB_BUILD_NUMBER as ap, LIB_COMMIT as np, LIB_VERSION as lp } from "./version.js";
159
+ import { initVersionInfo as up } from "./helpers/VersionInfo.js";
160
+ import { validateVin as gp } from "./validators/Vin.js";
160
161
  export {
161
162
  N as ADULT_RANGES,
162
163
  Y as APP_DATE_FORMAT,
@@ -166,16 +167,16 @@ export {
166
167
  D as AnalogClock,
167
168
  h as AngleSlider,
168
169
  me as ApiError,
169
- E as AppHeader,
170
- Re as AppPersistenceStorage,
170
+ L as AppHeader,
171
+ ke as AppPersistenceStorage,
171
172
  Te as AuthContext,
172
173
  Me as AuthLogin,
173
- Ie as AuthProvider,
174
- L as AvatarInitials,
174
+ Se as AuthProvider,
175
+ R as AvatarInitials,
175
176
  G as BMI,
176
- _ as Badge,
177
- v as Banner,
178
- F as Blockquote,
177
+ y as Badge,
178
+ b as Banner,
179
+ x as Blockquote,
179
180
  j as Breadcrumb,
180
181
  K as BulkActionBar,
181
182
  d as Button,
@@ -184,21 +185,21 @@ export {
184
185
  Ar as CalendarHeatmap,
185
186
  Mr as Card,
186
187
  Ae as ChangePasswordModal,
187
- kr as Checkbox,
188
- Rr as Chip,
189
- Et as Col,
190
- yr as CollapsibleSection,
188
+ Er as Checkbox,
189
+ kr as Chip,
190
+ Lt as Col,
191
+ _r as CollapsibleSection,
191
192
  Hr as ColorPicker,
192
- wr as CommandPalette,
193
- Or as Confetti,
193
+ Or as CommandPalette,
194
+ wr as Confetti,
194
195
  Wr as ConfirmDialog,
195
196
  Jr as ConfirmPopover,
196
197
  Xr as ContextMenu,
197
198
  Mo as ControlPanel,
198
- Lo as ControlPanelProvider,
199
- _o as CopyButton,
200
- Fo as CountryWithFlag,
201
- Ve as DATA_FILES_PATH,
199
+ Ro as ControlPanelProvider,
200
+ yo as CopyButton,
201
+ xo as CountryWithFlag,
202
+ je as DATA_FILES_PATH,
202
203
  Yo as DataView,
203
204
  eo as DatePicker,
204
205
  $o as DateRangePicker,
@@ -210,17 +211,17 @@ export {
210
211
  Uo as EmptyState,
211
212
  st as ErrorBoundary,
212
213
  ct as EventCalendar,
213
- vt as FULL_IMAGE,
214
- St as FileDropzone,
215
- vo as Flag,
214
+ bt as FULL_IMAGE,
215
+ It as FileDropzone,
216
+ bo as Flag,
216
217
  Pt as FloatButton,
217
218
  Dt as FloatingWindow,
218
219
  Bt as FolderBrowserModal,
219
- Lt as Grid,
220
+ Rt as Grid,
220
221
  ee as HttpMethod,
221
222
  pe as HttpStatus,
222
223
  o as Icon,
223
- _t as IconPicker,
224
+ yt as IconPicker,
224
225
  Wt as ImageCropper,
225
226
  Qt as InfiniteScroll,
226
227
  uo as InputDate,
@@ -228,35 +229,35 @@ export {
228
229
  Xt as InputFile,
229
230
  Zt as InputMask,
230
231
  rm as InputMaskPresets,
231
- br as InputNumber,
232
+ Fr as InputNumber,
232
233
  pm as InputPIN,
233
234
  tm as InputPassword,
234
235
  im as InputPhone,
235
236
  co as InputSearch,
236
- xr as InputText,
237
+ vr as InputText,
237
238
  am as InputTextarea,
238
239
  lm as InputTime,
239
240
  um as InputUrl,
240
241
  gm as JourneyWizard,
241
- rp as LIB_BUILD_DATE,
242
- op as LIB_BUILD_ID,
243
- tp as LIB_BUILD_NUMBER,
244
- mp as LIB_COMMIT,
245
- ip as LIB_VERSION,
242
+ pp as LIB_BUILD_DATE,
243
+ fp as LIB_BUILD_ID,
244
+ ap as LIB_BUILD_NUMBER,
245
+ np as LIB_COMMIT,
246
+ lp as LIB_VERSION,
246
247
  Tm as List,
247
248
  ht as Loading,
248
- Im as MenuHamburger,
249
+ Sm as MenuHamburger,
249
250
  Ko as MiniSort,
250
251
  Am as MiniStatsCard,
251
252
  Cm as Minimap,
252
- S as Modal,
253
+ I as Modal,
253
254
  Mm as NavBar,
254
- km as NotificationPanel,
255
- w as PEDIATRIC_THRESHOLDS,
255
+ Em as NotificationPanel,
256
+ O as PEDIATRIC_THRESHOLDS,
256
257
  Vo as Pagination,
257
- Rm as PieChart,
258
+ km as PieChart,
258
259
  qr as Popover,
259
- Fm as ProgressBar,
260
+ xm as ProgressBar,
260
261
  Nm as ProgressRing,
261
262
  Um as QuantitySelector,
262
263
  Vm as QuickAdd,
@@ -264,7 +265,7 @@ export {
264
265
  jm as QuickOptionUpdate,
265
266
  Gm as Radio,
266
267
  Km as RangeSlider,
267
- So as Rating,
268
+ Io as Rating,
268
269
  ti as RichTextEditor,
269
270
  ii as RollingNumber,
270
271
  pi as ScrollToTop,
@@ -274,15 +275,15 @@ export {
274
275
  gi as SignalStrength,
275
276
  Ti as Skeleton,
276
277
  Po as Slider,
277
- Ii as SplitPanel,
278
+ Si as SplitPanel,
278
279
  Ci as Splitter,
279
280
  Ai as StackedBar,
280
281
  Mi as Stats,
281
- ki as StickyBar,
282
- Ri as SuggestionsList,
283
- yi as THEME_CONFIGS,
282
+ Ei as StickyBar,
283
+ ki as SuggestionsList,
284
+ _i as THEME_CONFIGS,
284
285
  f as ThemeContext,
285
- Fi as ThemeProvider,
286
+ xi as ThemeProvider,
286
287
  Ni as ThemeSettings,
287
288
  mo as TimePicker,
288
289
  Ui as Timeline,
@@ -294,34 +295,36 @@ export {
294
295
  ro as ToastContainer,
295
296
  oo as ToastProvider,
296
297
  dt as ToggleButtons,
297
- Ot as ToggleSwitch,
298
+ wt as ToggleSwitch,
298
299
  Gi as Toolbar,
299
300
  c as Tooltip,
300
301
  ji as TourHud,
301
302
  Ki as Transition,
302
303
  Yi as Tree,
304
+ Ue as UNALLOCATED_FILTER_ID,
305
+ we as UNALLOCATED_FILTER_LABEL,
303
306
  $i as VirtualList,
304
307
  oe as WHtR,
305
308
  $ as addDays,
306
309
  rr as addMonths,
307
- ko as breakpoints,
310
+ Eo as breakpoints,
308
311
  fe as buildRequestHeaders,
309
312
  U as calculateBMI,
310
313
  zo as calculateTimelineMarkers,
311
- be as chartColors,
312
- ve as chartTooltipStyle,
313
- ym as clamp,
314
+ Fe as chartColors,
315
+ be as chartTooltipStyle,
316
+ _m as clamp,
314
317
  ae as createApiClient,
315
- We as createImagePaths,
316
- xt as cropImage,
317
- Ft as encodeCanvas,
318
+ Je as createImagePaths,
319
+ vt as cropImage,
320
+ xt as encodeCanvas,
318
321
  Ym as ensureHtml,
319
- Xe as extractDomainFromUrl,
322
+ tp as extractDomainFromUrl,
320
323
  fo as foldDiacritics,
321
- _m as format2Digits,
324
+ ym as format2Digits,
322
325
  or as formatAppDate,
323
326
  tr as formatAppDateTime,
324
- Fe as formatBigNumber,
327
+ xe as formatBigNumber,
325
328
  He as formatBytes,
326
329
  mr as formatDate,
327
330
  ir as formatDateLocale,
@@ -333,22 +336,24 @@ export {
333
336
  ao as fuzzyMatch,
334
337
  ne as getCsrfToken,
335
338
  nr as getDaysInMonth,
336
- vi as getDefaultThemeForApp,
337
- O as getIndicatorColor,
339
+ bi as getDefaultThemeForApp,
340
+ Ve as getFilterOptions,
341
+ w as getIndicatorColor,
338
342
  V as getIndicatorPosition,
339
343
  lr as getIsoWeek,
344
+ We as getMatchableFilterIds,
340
345
  sr as getMonthMatrix,
341
346
  W as getPediatricRanges,
342
- bm as getPercent,
343
- vm as getPercentsOf2Numbers,
347
+ Fm as getPercent,
348
+ bm as getPercentsOf2Numbers,
344
349
  z as getRangeLabel,
345
350
  No as getResultsCount,
346
- _i as getThemeConfig,
351
+ yi as getThemeConfig,
347
352
  ur as getTodayDateString,
348
- Ue as highlightText,
353
+ Ge as highlightText,
349
354
  Zm as htmlToMarkdown,
350
355
  $m as htmlToPlainText,
351
- pp as initVersionInfo,
356
+ up as initVersionInfo,
352
357
  dr as isAfter,
353
358
  gr as isBefore,
354
359
  le as isClientErrorStatus,
@@ -356,25 +361,26 @@ export {
356
361
  Tr as isSameDay,
357
362
  se as isServerErrorStatus,
358
363
  ue as isSuccessStatus,
359
- Sr as isToday,
360
- Ir as isWeekend,
364
+ Ir as isToday,
365
+ Sr as isWeekend,
361
366
  Ht as loadImageElement,
362
367
  de as logUnexpectedError,
363
- Qe as matchStringsByLogicalOperator,
368
+ Xe as matchStringsByLogicalOperator,
369
+ ze as matchesIdFilter,
364
370
  ge as readErrorMessage,
365
371
  Nt as renderImageRegion,
366
- wt as rotatedSize,
367
- qe as shortenText,
368
- je as slugify,
372
+ Ot as rotatedSize,
373
+ Ze as shortenText,
374
+ $e as slugify,
369
375
  ri as splitHtmlIntoSteps,
370
- Ye as stripQueryString,
371
- Ze as stripTrackingParams,
372
- Je as truncateText,
373
- ke as useAccountMenu,
374
- ye as useAppPersistence,
376
+ mp as stripQueryString,
377
+ ip as stripTrackingParams,
378
+ rp as truncateText,
379
+ Ee as useAccountMenu,
380
+ _e as useAppPersistence,
375
381
  Ce as useAuth,
376
382
  e as useBodyScrollLock,
377
- Eo as useBreakpoint,
383
+ Lo as useBreakpoint,
378
384
  s as useComponentEffect,
379
385
  Do as useControlPanel,
380
386
  Ao as useControlPanelContext,
@@ -384,5 +390,5 @@ export {
384
390
  n as useTheme,
385
391
  Zr as useToast,
386
392
  qt as validateEmail,
387
- ap as validateVin
393
+ gp as validateVin
388
394
  };
package/dist/version.js CHANGED
@@ -1,7 +1,7 @@
1
- var I = "3.14.0", B = 556, L = "fd94730", _ = "2026-10-24T16:07:29.020Z", r = "556";
1
+ var I = "3.15.0", B = 563, L = "a5c437b", _ = "2026-10-25T15:04:49.385Z", a = "563";
2
2
  export {
3
3
  _ as LIB_BUILD_DATE,
4
- r as LIB_BUILD_ID,
4
+ a as LIB_BUILD_ID,
5
5
  B as LIB_BUILD_NUMBER,
6
6
  L as LIB_COMMIT,
7
7
  I as LIB_VERSION
package/dist/version.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "3.14.0",
3
- "buildNumber": 556,
4
- "commit": "fd94730",
5
- "buildDate": "2026-10-24T16:07:29.020Z"
2
+ "version": "3.15.0",
3
+ "buildNumber": 563,
4
+ "commit": "a5c437b",
5
+ "buildDate": "2026-10-25T15:04:49.385Z"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memobit/libs",
3
- "version": "3.14.0",
3
+ "version": "3.15.0",
4
4
  "description": "React component library powering the Memobit apps — 100+ components, helpers and hooks. Icons ship as @memobit/icons and themes as @memobit/themes. TypeScript-first, ESM-only, React 19.",
5
5
  "keywords": [
6
6
  "react",