@dloizides/ui-tables 3.0.2 → 3.2.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/index.js CHANGED
@@ -9,6 +9,8 @@ var designTokens = require('@dloizides/design-tokens');
9
9
  var reactDom = require('react-dom');
10
10
  var uiForms = require('@dloizides/ui-forms');
11
11
  var a11y = require('@dloizides/a11y');
12
+ var uiButtons = require('@dloizides/ui-buttons');
13
+ var utils = require('@dloizides/utils');
12
14
 
13
15
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
14
16
 
@@ -1586,6 +1588,7 @@ function ActionButton({ label, hint, tone, disabled = false, onPress, testID })
1586
1588
  var FILTERS_TEST_ID = "ui-filters-declarative";
1587
1589
  var FIELD_MIN_WIDTH = {
1588
1590
  select: 150,
1591
+ multiSelect: 200,
1589
1592
  text: 200,
1590
1593
  number: 130,
1591
1594
  date: 160,
@@ -1647,6 +1650,25 @@ function BooleanField({ field, barTestID, value, onChange }) {
1647
1650
  )
1648
1651
  ] });
1649
1652
  }
1653
+
1654
+ // src/Filters/utils/toggleValue.ts
1655
+ function toggleValue(list, value) {
1656
+ return list.includes(value) ? list.filter((item) => item !== value) : [...list, value];
1657
+ }
1658
+ function MultiSelectField({ field, barTestID, value, onChange }) {
1659
+ const options = React2.useMemo(() => field.options.map((option) => ({ value: option.value, label: option.label })), [field.options]);
1660
+ const testID = field.testID ?? fieldTestID(barTestID, field.key);
1661
+ return /* @__PURE__ */ jsxRuntime.jsx(
1662
+ uiForms.ChipSelector,
1663
+ {
1664
+ multiple: true,
1665
+ options,
1666
+ value: [...value],
1667
+ onChange: (picked) => onChange(toggleValue(value, picked)),
1668
+ testID: `${testID}-chips`
1669
+ }
1670
+ );
1671
+ }
1650
1672
  function SelectField({ field, barTestID, value, onChange, placeholder, dropdownHint, optionHint }) {
1651
1673
  const { t } = uiFeedback.useUi();
1652
1674
  const testID = field.testID ?? fieldTestID(barTestID, field.key);
@@ -1729,6 +1751,9 @@ function asString(value) {
1729
1751
  function asBool(value) {
1730
1752
  return value === true;
1731
1753
  }
1754
+ function asList(value) {
1755
+ return Array.isArray(value) ? value : [];
1756
+ }
1732
1757
  function asRange(value) {
1733
1758
  if (typeof value === "object" && value !== null && "from" in value && "to" in value) return value;
1734
1759
  return EMPTY_RANGE;
@@ -1785,6 +1810,16 @@ function FilterFieldView({ field, barTestID, values, setField, onSubmit, strings
1785
1810
  optionHint: strings.optionHint
1786
1811
  }
1787
1812
  );
1813
+ case "multiSelect":
1814
+ return /* @__PURE__ */ jsxRuntime.jsx(
1815
+ MultiSelectField,
1816
+ {
1817
+ field,
1818
+ barTestID,
1819
+ value: asList(raw),
1820
+ onChange: (v) => setField(field.key, v)
1821
+ }
1822
+ );
1788
1823
  case "typeahead":
1789
1824
  return /* @__PURE__ */ jsxRuntime.jsx(
1790
1825
  TypeaheadField,
@@ -1827,6 +1862,7 @@ function FilterFieldView({ field, barTestID, values, setField, onSubmit, strings
1827
1862
  uiForms.Field,
1828
1863
  {
1829
1864
  containerStyle,
1865
+ error: field.kind === "dateRange" ? field.error : void 0,
1830
1866
  label: field.label,
1831
1867
  labelVariant: "control",
1832
1868
  testID,
@@ -2411,6 +2447,369 @@ var MonthStatusGrid = ({
2411
2447
  ] }, row[0]?.id)) });
2412
2448
  };
2413
2449
 
2450
+ // src/ReportFilters/constants.ts
2451
+ var REPORT_FILTERS_TEST_ID = "ui-report-filters";
2452
+ var REPORT_FIELD_KEYS = {
2453
+ scope: "scope",
2454
+ range: "range",
2455
+ statuses: "statuses",
2456
+ currency: "currency"
2457
+ };
2458
+ var DEFAULT_REPORT_QUERY_KEYS = {
2459
+ scope: "scope",
2460
+ from: "from",
2461
+ to: "to",
2462
+ statuses: "status",
2463
+ currency: "currency"
2464
+ };
2465
+ var EMPTY_REPORT_FILTERS = {
2466
+ scope: "",
2467
+ range: { from: "", to: "" },
2468
+ statuses: [],
2469
+ currency: ""
2470
+ };
2471
+ var LIST_SEPARATOR = ",";
2472
+ var PANEL_MAX_WIDTH = 360;
2473
+ var PANEL_SCREEN_SHARE = 0.88;
2474
+ var openPanelTestID = (testID) => `${testID}-open`;
2475
+ var panelTestID = (testID) => `${testID}-panel`;
2476
+ var panelFiltersTestID = (testID) => `${testID}-panel-filters`;
2477
+ var PANEL_PAD = 16;
2478
+ var HEADER_GAP = 8;
2479
+ var HEADER_BOTTOM = 12;
2480
+ var TITLE_FONT = 16;
2481
+ var PANEL_BORDER = 1;
2482
+ function FilterSidePanel({ visible, onClose, title, closeLabel, closeHint, children, testID }) {
2483
+ const { theme } = uiFeedback.useUi();
2484
+ const { width } = reactNative.useWindowDimensions();
2485
+ const panelWidth = Math.min(PANEL_MAX_WIDTH, Math.round(width * PANEL_SCREEN_SHARE));
2486
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible, onRequestClose: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles6.root, children: [
2487
+ /* @__PURE__ */ jsxRuntime.jsx(
2488
+ reactNative.Pressable,
2489
+ {
2490
+ accessibilityRole: "button",
2491
+ accessibilityLabel: closeLabel,
2492
+ accessibilityHint: closeHint,
2493
+ onPress: onClose,
2494
+ style: [reactNative.StyleSheet.absoluteFill, { backgroundColor: uiFeedback.MODAL_OVERLAY_COLOR }],
2495
+ testID: `${testID}-backdrop`
2496
+ }
2497
+ ),
2498
+ /* @__PURE__ */ jsxRuntime.jsxs(
2499
+ reactNative.View,
2500
+ {
2501
+ accessibilityViewIsModal: true,
2502
+ style: [styles6.panel, { width: panelWidth, backgroundColor: theme.colors.surface, borderColor: theme.colors.border }],
2503
+ testID,
2504
+ children: [
2505
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles6.header, children: [
2506
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles6.title, { color: theme.colors.text }], children: title }),
2507
+ /* @__PURE__ */ jsxRuntime.jsx(ActionButton, { label: closeLabel, hint: closeHint, tone: "primary", onPress: onClose, testID: `${testID}-close` })
2508
+ ] }),
2509
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { children })
2510
+ ]
2511
+ }
2512
+ )
2513
+ ] }) });
2514
+ }
2515
+ var styles6 = reactNative.StyleSheet.create({
2516
+ root: { flex: 1, flexDirection: "row", justifyContent: "flex-end" },
2517
+ panel: { height: "100%", padding: PANEL_PAD, borderLeftWidth: PANEL_BORDER },
2518
+ header: { flexDirection: "row", alignItems: "center", justifyContent: "space-between", gap: HEADER_GAP, marginBottom: HEADER_BOTTOM },
2519
+ title: { flexShrink: 1, fontSize: TITLE_FONT, fontWeight: "700" }
2520
+ });
2521
+
2522
+ // src/ReportFilters/utils/reportQuery.ts
2523
+ var ISO_DATE = /^\d{4}-\d{2}-\d{2}$/;
2524
+ var ISO_DATE_LENGTH = 10;
2525
+ function isIsoDate(value) {
2526
+ if (!ISO_DATE.test(value)) return false;
2527
+ const parsed = /* @__PURE__ */ new Date(`${value}T00:00:00Z`);
2528
+ return !Number.isNaN(parsed.getTime()) && parsed.toISOString().slice(0, ISO_DATE_LENGTH) === value;
2529
+ }
2530
+ function isRangeInverted(range) {
2531
+ const bothSet = range.from !== "" && range.to !== "";
2532
+ return bothSet && range.from > range.to;
2533
+ }
2534
+ function countActiveReportFilters(values) {
2535
+ const hasRange = values.range.from !== "" || values.range.to !== "";
2536
+ return [values.scope !== "", hasRange, values.statuses.length > 0, values.currency !== ""].filter(Boolean).length;
2537
+ }
2538
+ function readAll(source, key) {
2539
+ if (source instanceof URLSearchParams) return source.getAll(key);
2540
+ const raw = source[key];
2541
+ if (raw === void 0 || raw === null) return [];
2542
+ return typeof raw === "string" ? [raw] : [...raw];
2543
+ }
2544
+ function readOne(source, key) {
2545
+ return (readAll(source, key)[0] ?? "").trim();
2546
+ }
2547
+ function readDate(source, key) {
2548
+ const value = readOne(source, key);
2549
+ return isIsoDate(value) ? value : "";
2550
+ }
2551
+ function readList(source, key) {
2552
+ const items = readAll(source, key).flatMap((entry) => entry.split(LIST_SEPARATOR)).map((entry) => entry.trim()).filter((entry) => entry !== "");
2553
+ return Array.from(new Set(items));
2554
+ }
2555
+ function reportFiltersFromQuery(source, keys = DEFAULT_REPORT_QUERY_KEYS) {
2556
+ return {
2557
+ scope: readOne(source, keys.scope),
2558
+ range: { from: readDate(source, keys.from), to: readDate(source, keys.to) },
2559
+ statuses: readList(source, keys.statuses),
2560
+ currency: readOne(source, keys.currency)
2561
+ };
2562
+ }
2563
+ function reportFiltersToQuery(values, keys = DEFAULT_REPORT_QUERY_KEYS) {
2564
+ const entries = [
2565
+ [keys.scope, values.scope],
2566
+ [keys.from, values.range.from],
2567
+ [keys.to, values.range.to],
2568
+ [keys.statuses, values.statuses.join(LIST_SEPARATOR)],
2569
+ [keys.currency, values.currency]
2570
+ ];
2571
+ return Object.fromEntries(entries.filter(([, value]) => value !== ""));
2572
+ }
2573
+ function reportFiltersToParams(values, keys = DEFAULT_REPORT_QUERY_KEYS) {
2574
+ const query = reportFiltersToQuery(values, keys);
2575
+ const allKeys = [keys.scope, keys.from, keys.to, keys.statuses, keys.currency];
2576
+ return Object.fromEntries(allKeys.map((key) => [key, query[key]]));
2577
+ }
2578
+ function reportFiltersToSearch(values, keys = DEFAULT_REPORT_QUERY_KEYS) {
2579
+ return new URLSearchParams(reportFiltersToQuery(values, keys)).toString();
2580
+ }
2581
+
2582
+ // src/ReportFilters/hooks/useReportDraft.ts
2583
+ function useReportDraft(value, onChange) {
2584
+ const committedKey = reportFiltersToSearch(value);
2585
+ const [draft, setDraft] = React2.useState(value);
2586
+ const [seenKey, setSeenKey] = React2.useState(committedKey);
2587
+ if (seenKey !== committedKey) {
2588
+ setSeenKey(committedKey);
2589
+ setDraft(value);
2590
+ }
2591
+ const edit = React2.useCallback(
2592
+ (next) => {
2593
+ setDraft(next);
2594
+ if (!isRangeInverted(next.range)) onChange(next);
2595
+ },
2596
+ [onChange]
2597
+ );
2598
+ return { draft, edit };
2599
+ }
2600
+
2601
+ // src/ReportFilters/utils/reportFields.ts
2602
+ var EMPTY_RANGE2 = { from: "", to: "" };
2603
+ function buildReportFields(options, labels, values) {
2604
+ return [
2605
+ { key: REPORT_FIELD_KEYS.scope, kind: "select", label: labels.scope, options: options.scopes },
2606
+ {
2607
+ key: REPORT_FIELD_KEYS.range,
2608
+ kind: "dateRange",
2609
+ label: labels.range,
2610
+ fromLabel: labels.from,
2611
+ toLabel: labels.to,
2612
+ error: isRangeInverted(values.range) ? labels.invalidRange : void 0
2613
+ },
2614
+ { key: REPORT_FIELD_KEYS.statuses, kind: "multiSelect", label: labels.statuses, options: options.statuses },
2615
+ { key: REPORT_FIELD_KEYS.currency, kind: "select", label: labels.currency, options: options.currencies }
2616
+ ];
2617
+ }
2618
+ function toFilterValues(values) {
2619
+ return {
2620
+ [REPORT_FIELD_KEYS.scope]: values.scope,
2621
+ [REPORT_FIELD_KEYS.range]: values.range,
2622
+ [REPORT_FIELD_KEYS.statuses]: values.statuses,
2623
+ [REPORT_FIELD_KEYS.currency]: values.currency
2624
+ };
2625
+ }
2626
+ function asText(value) {
2627
+ return typeof value === "string" ? value : "";
2628
+ }
2629
+ function asList2(value) {
2630
+ return Array.isArray(value) ? value : [];
2631
+ }
2632
+ function asRange2(value) {
2633
+ const isRange = typeof value === "object" && !Array.isArray(value) && "from" in value;
2634
+ return isRange ? value : EMPTY_RANGE2;
2635
+ }
2636
+ function fromFilterValues(map) {
2637
+ return {
2638
+ scope: asText(map[REPORT_FIELD_KEYS.scope]),
2639
+ range: asRange2(map[REPORT_FIELD_KEYS.range]),
2640
+ statuses: asList2(map[REPORT_FIELD_KEYS.statuses]),
2641
+ currency: asText(map[REPORT_FIELD_KEYS.currency])
2642
+ };
2643
+ }
2644
+ var COMPACT_GAP = 8;
2645
+ function ReportFilters({
2646
+ value,
2647
+ onChange,
2648
+ options,
2649
+ labels,
2650
+ actions,
2651
+ compact,
2652
+ renderSelect,
2653
+ testID = REPORT_FILTERS_TEST_ID
2654
+ }) {
2655
+ const { width } = reactNative.useWindowDimensions();
2656
+ const [panelOpen, setPanelOpen] = React2.useState(false);
2657
+ const { draft, edit } = useReportDraft(value, onChange);
2658
+ const fields = React2.useMemo(() => buildReportFields(options, labels, draft), [options, labels, draft]);
2659
+ const values = React2.useMemo(() => toFilterValues(draft), [draft]);
2660
+ const handleChange = React2.useCallback((next) => edit(fromFilterValues(next)), [edit]);
2661
+ const isCompact = compact ?? width < CARD_STACK_BREAKPOINT;
2662
+ const renderBar = (barTestID, barActions) => /* @__PURE__ */ jsxRuntime.jsx(Filters, { fields, values, onChange: handleChange, actions: barActions, renderSelect, testID: barTestID });
2663
+ if (!isCompact) return renderBar(testID, actions);
2664
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles7.compactRow, testID, children: [
2665
+ /* @__PURE__ */ jsxRuntime.jsx(
2666
+ ActionButton,
2667
+ {
2668
+ label: labels.openPanel,
2669
+ hint: labels.openPanelHint,
2670
+ tone: "ghost",
2671
+ onPress: () => setPanelOpen(true),
2672
+ testID: openPanelTestID(testID)
2673
+ }
2674
+ ),
2675
+ actions,
2676
+ /* @__PURE__ */ jsxRuntime.jsx(
2677
+ FilterSidePanel,
2678
+ {
2679
+ visible: panelOpen,
2680
+ onClose: () => setPanelOpen(false),
2681
+ title: labels.panelTitle,
2682
+ closeLabel: labels.closePanel,
2683
+ closeHint: labels.closePanelHint,
2684
+ testID: panelTestID(testID),
2685
+ children: renderBar(panelFiltersTestID(testID))
2686
+ }
2687
+ )
2688
+ ] });
2689
+ }
2690
+ var styles7 = reactNative.StyleSheet.create({
2691
+ compactRow: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: COMPACT_GAP }
2692
+ });
2693
+ function useReportFilterQuery({
2694
+ params,
2695
+ setParams,
2696
+ keys = DEFAULT_REPORT_QUERY_KEYS
2697
+ }) {
2698
+ const values = React2.useMemo(() => reportFiltersFromQuery(params, keys), [params, keys]);
2699
+ const setValues = React2.useCallback(
2700
+ (next) => setParams(reportFiltersToParams(next, keys)),
2701
+ [setParams, keys]
2702
+ );
2703
+ return { values, setValues };
2704
+ }
2705
+
2706
+ // src/ExportCsvAction/ExportOutcome.ts
2707
+ var ExportOutcome = /* @__PURE__ */ ((ExportOutcome2) => {
2708
+ ExportOutcome2["Downloaded"] = "downloaded";
2709
+ ExportOutcome2["Truncated"] = "truncated";
2710
+ ExportOutcome2["Unsupported"] = "unsupported";
2711
+ ExportOutcome2["Failed"] = "failed";
2712
+ return ExportOutcome2;
2713
+ })(ExportOutcome || {});
2714
+
2715
+ // src/ExportCsvAction/utils/downloadCsv.ts
2716
+ var CSV_MIME = "text/csv;charset=utf-8";
2717
+ var UTF8_BOM = "\uFEFF";
2718
+ var CSV_EXTENSION = ".csv";
2719
+ var UNSAFE_FILENAME_CHARS = /[^A-Za-z0-9._-]+/g;
2720
+ var SAFE_REPLACEMENT = "-";
2721
+ var RANGE_JOINER = "--";
2722
+ var PART_JOINER = "_";
2723
+ function isFetchedRows(data) {
2724
+ return !Array.isArray(data);
2725
+ }
2726
+ function csvFilename(base, range) {
2727
+ const safeBase = base.trim().replace(UNSAFE_FILENAME_CHARS, SAFE_REPLACEMENT);
2728
+ if (range === void 0) return `${safeBase}${CSV_EXTENSION}`;
2729
+ const hasRange = range.from !== "" || range.to !== "";
2730
+ const name = hasRange ? `${safeBase}${PART_JOINER}${range.from}${RANGE_JOINER}${range.to}` : safeBase;
2731
+ return `${name}${CSV_EXTENSION}`;
2732
+ }
2733
+ function downloadCsv(csv, filename) {
2734
+ const hasDom = typeof document !== "undefined" && typeof URL !== "undefined";
2735
+ if (!hasDom || typeof URL.createObjectURL !== "function") return false;
2736
+ const url = URL.createObjectURL(new Blob([UTF8_BOM, csv], { type: CSV_MIME }));
2737
+ const link = document.createElement("a");
2738
+ link.href = url;
2739
+ link.download = filename;
2740
+ link.style.display = "none";
2741
+ document.body.appendChild(link);
2742
+ link.click();
2743
+ document.body.removeChild(link);
2744
+ URL.revokeObjectURL(url);
2745
+ return true;
2746
+ }
2747
+ async function runCsvExport(rows, columns, filename, download = downloadCsv) {
2748
+ try {
2749
+ const loaded = typeof rows === "function" ? await rows() : rows;
2750
+ const data = isFetchedRows(loaded) ? loaded.rows : loaded;
2751
+ const truncated = isFetchedRows(loaded) && loaded.truncated;
2752
+ if (!download(utils.toCsv(data, columns), filename)) return "unsupported" /* Unsupported */;
2753
+ return truncated ? "truncated" /* Truncated */ : "downloaded" /* Downloaded */;
2754
+ } catch {
2755
+ return "failed" /* Failed */;
2756
+ }
2757
+ }
2758
+ var EXPORT_CSV_TEST_ID = "ui-export-csv";
2759
+ function ExportCsvAction({
2760
+ rows,
2761
+ columns,
2762
+ filename,
2763
+ label,
2764
+ hint,
2765
+ disabled = false,
2766
+ onDone,
2767
+ testID = EXPORT_CSV_TEST_ID
2768
+ }) {
2769
+ const [busy, setBusy] = React2.useState(false);
2770
+ const run = React2.useCallback(async () => {
2771
+ setBusy(true);
2772
+ const outcome = await runCsvExport(rows, columns, filename);
2773
+ setBusy(false);
2774
+ onDone?.(outcome);
2775
+ }, [rows, columns, filename, onDone]);
2776
+ return /* @__PURE__ */ jsxRuntime.jsx(
2777
+ uiButtons.Button,
2778
+ {
2779
+ label,
2780
+ accessibilityLabel: label,
2781
+ accessibilityHint: hint,
2782
+ disabled,
2783
+ loading: busy,
2784
+ onPress: () => {
2785
+ void run();
2786
+ },
2787
+ testID
2788
+ }
2789
+ );
2790
+ }
2791
+
2792
+ // src/ExportCsvAction/utils/fetchAllPages.ts
2793
+ var FIRST_PAGE3 = 1;
2794
+ var DEFAULT_FETCH_CONCURRENCY = 2;
2795
+ function pageNumbers(from, to) {
2796
+ return Array.from({ length: Math.max(to - from + 1, 0) }, (_unused, index) => from + index);
2797
+ }
2798
+ function chunk(pages, size) {
2799
+ const step = Math.max(Math.floor(size), 1);
2800
+ const count = Math.ceil(pages.length / step);
2801
+ return Array.from({ length: count }, (_unused, index) => pages.slice(index * step, index * step + step));
2802
+ }
2803
+ async function fetchAllPages(fetchPage, { pageSize, maxPages, concurrency = DEFAULT_FETCH_CONCURRENCY }) {
2804
+ const first = await fetchPage(FIRST_PAGE3, pageSize);
2805
+ const lastPage = Math.min(first.totalPages, maxPages);
2806
+ const pages = [first];
2807
+ for (const batch of chunk(pageNumbers(FIRST_PAGE3 + 1, lastPage), concurrency)) {
2808
+ pages.push(...await Promise.all(batch.map((page) => fetchPage(page, pageSize))));
2809
+ }
2810
+ return { rows: pages.flatMap((page) => [...page.items]), truncated: first.totalPages > maxPages };
2811
+ }
2812
+
2414
2813
  Object.defineProperty(exports, "DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS", {
2415
2814
  enumerable: true,
2416
2815
  get: function () { return uiForms.DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS; }
@@ -2428,13 +2827,20 @@ Object.defineProperty(exports, "suggestOptions", {
2428
2827
  get: function () { return uiForms.suggestOptions; }
2429
2828
  });
2430
2829
  exports.CARD_STACK_BREAKPOINT = CARD_STACK_BREAKPOINT;
2830
+ exports.DEFAULT_FETCH_CONCURRENCY = DEFAULT_FETCH_CONCURRENCY;
2431
2831
  exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE;
2432
2832
  exports.DEFAULT_PAGE_SIZE_OPTIONS = DEFAULT_PAGE_SIZE_OPTIONS;
2833
+ exports.DEFAULT_REPORT_QUERY_KEYS = DEFAULT_REPORT_QUERY_KEYS;
2433
2834
  exports.DataTable = DataTable;
2835
+ exports.EMPTY_REPORT_FILTERS = EMPTY_REPORT_FILTERS;
2836
+ exports.EXPORT_CSV_TEST_ID = EXPORT_CSV_TEST_ID;
2837
+ exports.ExportCsvAction = ExportCsvAction;
2838
+ exports.ExportOutcome = ExportOutcome;
2434
2839
  exports.FIELD_MIN_WIDTH = FIELD_MIN_WIDTH;
2435
2840
  exports.FILTERS_I18N = FILTERS_I18N;
2436
2841
  exports.FILTERS_TEST_ID = FILTERS_TEST_ID;
2437
2842
  exports.FilterBar = FilterBar;
2843
+ exports.FilterSidePanel = FilterSidePanel;
2438
2844
  exports.Filters = Filters;
2439
2845
  exports.LedgerLayout = LedgerLayout;
2440
2846
  exports.MONTH_STATUS_GRID_TEST_ID = MONTH_STATUS_GRID_TEST_ID;
@@ -2443,7 +2849,10 @@ exports.MonthStatusGrid = MonthStatusGrid;
2443
2849
  exports.PagedTableLayout = PagedTableLayout;
2444
2850
  exports.PagedTableLayoutKind = PagedTableLayoutKind;
2445
2851
  exports.Pager = Pager;
2852
+ exports.REPORT_FIELD_KEYS = REPORT_FIELD_KEYS;
2853
+ exports.REPORT_FILTERS_TEST_ID = REPORT_FILTERS_TEST_ID;
2446
2854
  exports.RelativeTime = RelativeTime;
2855
+ exports.ReportFilters = ReportFilters;
2447
2856
  exports.STATUS_LEDGER_TEST_ID = STATUS_LEDGER_TEST_ID;
2448
2857
  exports.SortDirection = SortDirection;
2449
2858
  exports.StatCard = StatCard;
@@ -2454,26 +2863,45 @@ exports.StatusTone = StatusTone;
2454
2863
  exports.TABLE_I18N = TABLE_I18N;
2455
2864
  exports.TABLE_TEST_IDS = TABLE_TEST_IDS;
2456
2865
  exports.applyTestID = applyTestID;
2866
+ exports.buildReportFields = buildReportFields;
2457
2867
  exports.clearTestID = clearTestID;
2868
+ exports.countActiveReportFilters = countActiveReportFilters;
2869
+ exports.csvFilename = csvFilename;
2458
2870
  exports.distinctValues = distinctValues;
2871
+ exports.downloadCsv = downloadCsv;
2872
+ exports.fetchAllPages = fetchAllPages;
2459
2873
  exports.fieldTestID = fieldTestID;
2460
2874
  exports.filterLedgerRows = filterLedgerRows;
2461
2875
  exports.fitMonthGridColumns = fitMonthGridColumns;
2462
2876
  exports.formatRelativeTime = formatRelativeTime;
2877
+ exports.fromFilterValues = fromFilterValues;
2463
2878
  exports.isAttentionTone = isAttentionTone;
2879
+ exports.isIsoDate = isIsoDate;
2880
+ exports.isRangeInverted = isRangeInverted;
2464
2881
  exports.ledgerSectionTestID = ledgerSectionTestID;
2465
2882
  exports.ledgerSortDirectionTestID = ledgerSortDirectionTestID;
2466
2883
  exports.monthCellTestID = monthCellTestID;
2884
+ exports.openPanelTestID = openPanelTestID;
2885
+ exports.panelFiltersTestID = panelFiltersTestID;
2886
+ exports.panelTestID = panelTestID;
2887
+ exports.reportFiltersFromQuery = reportFiltersFromQuery;
2888
+ exports.reportFiltersToParams = reportFiltersToParams;
2889
+ exports.reportFiltersToQuery = reportFiltersToQuery;
2890
+ exports.reportFiltersToSearch = reportFiltersToSearch;
2467
2891
  exports.resolveStatToneColor = resolveStatToneColor;
2468
2892
  exports.rowDetailTestID = rowDetailTestID;
2469
2893
  exports.rowFadeTestID = rowFadeTestID;
2470
2894
  exports.rowSelectTestID = rowSelectTestID;
2471
2895
  exports.rowTestID = rowTestID;
2896
+ exports.runCsvExport = runCsvExport;
2472
2897
  exports.selectAllTestID = selectAllTestID;
2473
2898
  exports.sortLedgerRows = sortLedgerRows;
2474
2899
  exports.splitNeedsLook = splitNeedsLook;
2475
2900
  exports.toEpochMs = toEpochMs;
2901
+ exports.toFilterValues = toFilterValues;
2476
2902
  exports.useFilterDraft = useFilterDraft;
2477
2903
  exports.usePagedRows = usePagedRows;
2904
+ exports.useReportDraft = useReportDraft;
2905
+ exports.useReportFilterQuery = useReportFilterQuery;
2478
2906
  //# sourceMappingURL=index.js.map
2479
2907
  //# sourceMappingURL=index.js.map