@restio/ui 0.2.1-20260901160735 → 0.2.1-20261007123729

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.
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./src-gB-fpYMb.cjs");exports.AppBar=e.AppBar;exports.BlankSlate=e.BlankSlate;exports.Breadcrumbs=e.Breadcrumbs;exports.Dashboard=e.Dashboard;exports.DashboardWidget=e.DashboardWidget;exports.FilterBuilder=e.FilterBuilder;exports.FilterConditionEditor=e.FilterConditionEditor;exports.FilterField=e.FilterField;exports.Scaffold=e.Scaffold;exports.Section=e.Section;exports.Sidebar=e.Sidebar;exports.Stepper=e.Stepper;exports.addNodeAtPath=e.addNodeAtPath;exports.applyFilter=e.applyFilter;exports.countTopLevelFilters=e.countTopLevelFilters;exports.countTopLevelFiltersMap=e.countTopLevelFiltersMap;exports.emptyCondition=e.emptyCondition;exports.emptyFilterGroup=e.emptyFilterGroup;exports.fieldOptionsFromColumns=e.fieldOptionsFromColumns;exports.getDefaultOperator=e.getDefaultOperator;exports.getOperatorsForType=e.getOperatorsForType;exports.isFilterActive=e.isFilterActive;exports.mergeFilters=e.mergeFilters;exports.removeNodeAtPath=e.removeNodeAtPath;exports.stripByFields=e.stripByFields;exports.updateNodeAtPath=e.updateNodeAtPath;exports.useDashboard=e.useDashboard;exports.useScaffold=e.useScaffold;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./src-kY7g6XFo.cjs");exports.AppBar=e.AppBar;exports.BlankSlate=e.BlankSlate;exports.Breadcrumbs=e.Breadcrumbs;exports.Dashboard=e.Dashboard;exports.DashboardWidget=e.DashboardWidget;exports.Drawer=e.Drawer;exports.FilterBuilder=e.FilterBuilder;exports.FilterConditionEditor=e.FilterConditionEditor;exports.FilterField=e.FilterField;exports.Scaffold=e.Scaffold;exports.Section=e.Section;exports.Sidebar=e.Sidebar;exports.Stepper=e.Stepper;exports.addNodeAtPath=e.addNodeAtPath;exports.applyFilter=e.applyFilter;exports.countActiveConditionsByField=e.countActiveConditionsByField;exports.countTopLevelFilters=e.countTopLevelFilters;exports.countTopLevelFiltersMap=e.countTopLevelFiltersMap;exports.emptyCondition=e.emptyCondition;exports.emptyFilterGroup=e.emptyFilterGroup;exports.fieldOptionsFromColumns=e.fieldOptionsFromColumns;exports.getDefaultOperator=e.getDefaultOperator;exports.getOperatorsForType=e.getOperatorsForType;exports.isFilterActive=e.isFilterActive;exports.mergeFilters=e.mergeFilters;exports.removeFieldFilters=e.removeFieldFilters;exports.removeNodeAtPath=e.removeNodeAtPath;exports.stripByFields=e.stripByFields;exports.updateNodeAtPath=e.updateNodeAtPath;exports.useDashboard=e.useDashboard;exports.useScaffold=e.useScaffold;
@@ -41,6 +41,16 @@ interface BreadcrumbsProps extends React.HTMLAttributes<HTMLDivElement> {
41
41
 
42
42
  declare const Breadcrumbs: React__default.FC<BreadcrumbsProps>;
43
43
 
44
+ /** OverlayPanelPosition defines the possible positions for the OverlayPanel. */
45
+ type OverlayPanelPosition = "center" | "left" | "right" | "top" | "bottom";
46
+
47
+ interface DrawerProps {
48
+ children: ReactNode;
49
+ side?: Extract<OverlayPanelPosition, "left" | "right">;
50
+ }
51
+
52
+ declare const Drawer: React__default.FC<DrawerProps>;
53
+
44
54
  type SidebarLogoProps = {
45
55
  logo: string;
46
56
  /** Called when the logo button is clicked (e.g. to navigate home). */
@@ -140,9 +150,8 @@ interface StepperProps extends React.HTMLAttributes<HTMLElement> {
140
150
  }
141
151
 
142
152
  /**
143
- * Horizontal stepper that renders ordered steps with idle/active/done states.
144
- * Steps before `current` are automatically marked as done. Each step renders
145
- * as a `Tag` whose state changes with the step status.
153
+ * Horizontal stepper rendering ordered steps with idle/active/done states, each as a
154
+ * `Tag`. Steps before `current` are marked done automatically.
146
155
  */
147
156
  declare const Stepper: React__default.FC<StepperProps>;
148
157
 
@@ -366,9 +375,8 @@ interface ProgressBarProps {
366
375
  }
367
376
 
368
377
  /**
369
- * Maps each CellType to the component-specific props that can be passed
370
- * via `uiVariant` in a rule. TypeScript enforces that you only pass props
371
- * the underlying component actually understands.
378
+ * Maps each CellType to the component props accepted by `uiVariant`, so TypeScript
379
+ * only allows props the underlying component understands.
372
380
  */
373
381
  type CellUIVariantMap = {
374
382
  [K in CellType]: K extends "IMAGE" ? Partial<Omit<IconProps, "src">> : K extends "TAG" ? Partial<{
@@ -398,10 +406,8 @@ type LookupCellType<TData, TColumns extends readonly DataStructureColumn<TData>[
398
406
  /** Comparison operators for AST-like UI rules */
399
407
  type UIRuleOperator = "==" | "!=" | ">" | ">=" | "<" | "<=" | "includes" | "startsWith" | "endsWith" | "isEmpty" | "isNotEmpty";
400
408
  /**
401
- * A single declarative styling rule evaluated against a row.
402
- * Rules are compiled once into fast evaluators — no runtime functions.
403
- *
404
- * When `field` and `op` are omitted, the rule always matches (static styling).
409
+ * A declarative styling rule evaluated against a row, compiled once into a fast
410
+ * evaluator. Omitting `field` and `op` makes it a static rule that always matches.
405
411
  *
406
412
  * @example conditional
407
413
  * { field: "price", op: ">", value: 100, uiVariant: { color: "var(--rst-color-success)", fontWeight: "bold" } }
@@ -471,26 +477,20 @@ interface DataStructureColumn<TData, TValue = TData[keyof TData]> {
471
477
  /** Helper text shown below the field (e.g. "Opzionale", "Usa +/− per il segno"). */
472
478
  helperText?: string;
473
479
  /**
474
- * Generic column-level configuration for the target component.
475
- * Mirrors the uiConfig pattern: carries the props of the component
476
- * referenced by `cellType` (e.g. ChartProps for CHART, TableGridProps for TABLE_GRID).
477
- * `data` and `columns` are excluded — they come from the cell value and schema.
480
+ * Column-level config for the component named by `cellType` (e.g. ChartProps for
481
+ * CHART). `data` and `columns` are excluded — they come from the cell value and schema.
478
482
  */
479
483
  columnConfig?: Record<string, unknown>;
480
484
  /**
481
- * Called when an interactive cell (e.g. BUTTON, IMAGE click) fires an action.
482
- * The cell handler decides when to invoke it; the first argument is the
483
- * action id (for BUTTON = `option.value`). Works in any data-component
484
- * that renders Cell in display mode (CardList, TableGrid, …).
485
+ * Called when an interactive cell (e.g. BUTTON) fires an action; the first argument
486
+ * is the action id (for BUTTON, `option.value`).
485
487
  */
486
488
  onCellClick?: (actionId: string, rowData: TData, column: DataStructureColumn<TData, TValue>) => void;
487
489
  }
488
490
 
489
491
  /**
490
- * Derives `FilterFieldProp[]` from column definitions.
491
- *
492
- * Columns without a resolvable ID or header are skipped.
493
- * SELECT / BUTTON_GROUP columns populate `availableOptions` from `col.options`.
492
+ * Derives `FilterFieldProp[]` from column definitions, skipping columns without a
493
+ * resolvable ID or header and populating options from SELECT / BUTTON_GROUP columns.
494
494
  */
495
495
  declare function fieldOptionsFromColumns<TData>(columns: DataStructureColumn<TData>[]): FilterFieldProp[];
496
496
  /** Returns the available operator options for a given column type. */
@@ -523,18 +523,19 @@ declare function mergeFilters<TData>(global: FilterGroup | null, section: Filter
523
523
  * Empty groups do not count.
524
524
  */
525
525
  declare function countTopLevelFilters(filter: FilterGroup | null): number;
526
+ /**
527
+ * Counts ACTIVE conditions per `field.id` across the whole tree. Fields with zero active conditions are omitted. */
528
+ declare function countActiveConditionsByField(filter: FilterGroup | null): Map<string, number>;
529
+ /** Removes every condition with the given `field.id`, pruning groups left empty by the removal. Immutable — returns a new tree. */
530
+ declare function removeFieldFilters(root: FilterGroup, fieldId: string): FilterGroup;
526
531
  /**
527
532
  * Counts active top-level filters across a map of per-data-source filter groups.
528
533
  */
529
534
  declare function countTopLevelFiltersMap(filters: Record<string, FilterGroup | null> | null): number;
530
535
 
531
536
  /**
532
- * Filters `data` rows using the provided `FilterGroup` AST.
533
- *
534
- * - Returns the original `data` array reference unchanged when `filter` is
535
- * `null` or contains no active conditions (avoids unnecessary re-renders).
536
- * - Works with any `DataStructureComponent`-compatible column definition,
537
- * resolving values via `accessorFn` or `accessorKey`.
537
+ * Filters `data` with a `FilterGroup` AST, returning the same array reference when
538
+ * the filter is null or empty. Values resolve via `accessorFn` or `accessorKey`.
538
539
  *
539
540
  * @example
540
541
  * const visible = applyFilter(data, filterGroup, columns);
@@ -562,17 +563,8 @@ interface FilterConditionEditorProps {
562
563
  readonly onGuidedComplete?: () => void;
563
564
  }
564
565
  /**
565
- * Shared row-level filter condition editor: field → operator → value.
566
- *
567
- * Reused by both `FilterBuilder` (panel rows inside groups) and `FilterField`
568
- * (inline chips in edit-in-place mode). This is the single place where field /
569
- * operator / value input switching logic lives.
570
- *
571
- * Each piece (field, operator, value, delete) can be individually locked via
572
- * `condition.readOnly` or the `readOnly` prop.
573
- *
574
- * When `guided` is `true`, the editor walks the user through the three steps,
575
- * auto-opening the dropdown / focusing the input of the current step.
566
+ * Shared row-level filter editor (field → operator → value), used by both `FilterBuilder`
567
+ * and `FilterField`. Each piece can be locked, and `guided` walks the user through the steps.
576
568
  */
577
569
  declare const FilterConditionEditor: React.FC<FilterConditionEditorProps>;
578
570
 
@@ -591,66 +583,71 @@ interface FilterFieldProps {
591
583
 
592
584
  declare const FilterField: React.FC<FilterFieldProps>;
593
585
 
586
+ /** Horizontal alignment: main axis for flex, inside the cell for grid */
594
587
  type alignX = 'start' | 'center' | 'end' | 'space-between' | 'space-around';
588
+ /** Vertical alignment: cross axis for flex, inside the cell for grid */
595
589
  type alignY = 'start' | 'center' | 'end' | 'stretch';
596
- /** Layout block node */
590
+ /** Leaf node: renders content through `renderBlock(fieldId)` */
597
591
  type BlockNode = {
598
592
  type: 'block';
599
- /** The field/column identifier that the consumer maps to a Cell */
593
+ /** Identifier passed to `renderBlock` to resolve this block's content */
600
594
  fieldId: string;
601
595
  };
602
- /** Grid child node */
596
+ /** A child placed on a grid cell, with its position, span and content alignment */
603
597
  type GridChild = {
604
598
  node: LayoutNode;
599
+ /** Column to start at (1-based) */
605
600
  col: number;
601
+ /** Row to start at (1-based) */
606
602
  row: number;
603
+ /** Number of columns to span */
607
604
  w: number;
605
+ /** Number of rows to span */
608
606
  h: number;
609
- /** Horizontal alignment of content within the grid cell */
607
+ /** Alignment of the content inside the cell */
610
608
  alignX?: alignX;
611
- /** Vertical alignment of content within the grid cell */
609
+ /** Alignment of the content inside the cell */
612
610
  alignY?: alignY;
613
611
  };
614
- /** Grid container node */
612
+ /** Grid container: positions children on a column/row matrix */
615
613
  type GridContainer = {
616
614
  type: 'grid';
615
+ /** Number of equal-width columns */
617
616
  columns: number;
617
+ /** Number of rows; omit to size rows automatically */
618
618
  rows?: number;
619
+ /** Space between children, in units of 0.25rem (`8` = 2rem) */
619
620
  gap?: number;
620
621
  children: GridChild[];
621
622
  };
622
- /** Flex container node */
623
+ /** Flex container: lays children out along one axis */
623
624
  type FlexContainer = {
624
625
  type: 'flex';
626
+ /** Main axis; defaults to `row` */
625
627
  direction?: 'row' | 'column';
628
+ /** Space between children, in units of 0.25rem (`8` = 2rem) */
626
629
  gap?: number;
630
+ /** Alignment along the main axis */
627
631
  alignX?: alignX;
632
+ /** Alignment along the cross axis */
628
633
  alignY?: alignY;
629
634
  children: LayoutNode[];
630
635
  };
631
- /** Union of all node types */
636
+ /** Any node in a layout tree */
632
637
  type LayoutNode = BlockNode | GridContainer | FlexContainer;
633
- /** Responsive layout mapping breakpoints to layout trees */
638
+ /** One layout tree per breakpoint; every breakpoint is required, with no fallback between them */
634
639
  type ResponsiveLayout = {
635
640
  [K in Breakpoint]: LayoutNode;
636
641
  };
637
642
 
638
643
  /**
639
- * Props for the Dashboard orchestrator component.
640
- *
641
- * Dashboard provides global filters to all child DashboardWidget instances
642
- * and arranges them using the responsive Layout system.
643
- *
644
- * Global filters are organised per data source: each entry in `filters` is
645
- * keyed by the data source id (e.g. "transactions", "budgets") and contains
646
- * the filter tree specific to that source. Widgets pick the entry matching
647
- * their own data source via context.
644
+ * Props for the Dashboard orchestrator, which feeds global filters (keyed by data
645
+ * source id) to every child DashboardWidget and lays them out with the Layout system.
648
646
  */
649
647
  interface DashboardProps {
650
648
  /**
651
- * Global filter trees keyed by data source id.
652
- * Each widget receives the entry whose key matches its data source,
653
- * then merges it with its own per-section filters.
649
+ * Global filter trees keyed by data source id. Each widget merges the entry matching
650
+ * its own data source with its per-section filters.
654
651
  */
655
652
  filters: Record<string, FilterGroup | null> | null;
656
653
  /** Called when a data-source filter tree changes (key + new tree) */
@@ -658,9 +655,8 @@ interface DashboardProps {
658
655
  /** Responsive layout configuration (mobile / tablet / desktop breakpoints) */
659
656
  layout: ResponsiveLayout;
660
657
  /**
661
- * Field definitions for the FilterBuilder, keyed by data source id.
662
- * Each entry is shown as a separate tab/section inside the global filter
663
- * overlay. Required when `enableFilter` is true.
658
+ * FilterBuilder fields keyed by data source id, each shown as its own tab in the global
659
+ * filter overlay. Required when `enableFilter` is true.
664
660
  */
665
661
  fieldOptions?: Record<string, FilterFieldProp[]>;
666
662
  /** Show a filter button that opens the FilterBuilder overlay */
@@ -681,23 +677,14 @@ interface DashboardContextValue {
681
677
  }
682
678
 
683
679
  /**
684
- * Dashboard is the top-level orchestrator for a page of data widgets.
685
- *
686
- * It provides global filters to all child DashboardWidget instances via
687
- * context, keyed by data source id, and arranges widgets using the
688
- * responsive Layout system.
689
- *
690
- * When `enableFilter` is set, a filter button opens the FilterBuilder
691
- * overlay where the user picks a data source and edits its filter tree.
692
- * The button shows the total number of active top-level filters across
693
- * all data sources.
680
+ * Top-level orchestrator for a page of data widgets: shares global filters with every
681
+ * child DashboardWidget (keyed by data source id) and arranges them with the Layout system.
694
682
  */
695
683
  declare const Dashboard: React__default.FC<DashboardProps>;
696
684
 
697
685
  /**
698
- * Hook to consume the DashboardContext.
699
- * Returns the current filters and onFilterChange callback.
700
- * Returns null when used outside a Dashboard.
686
+ * Reads the DashboardContext, returning the current filters and `onFilterChange`,
687
+ * or null outside a Dashboard.
701
688
  */
702
689
  declare function useDashboard(): DashboardContextValue | null;
703
690
 
@@ -709,14 +696,8 @@ interface DashboardWidgetRenderPayload<TData> {
709
696
  data: TData[];
710
697
  }
711
698
  /**
712
- * Props for the DashboardWidget component.
713
- *
714
- * Three modes are supported, depending on which props you provide:
715
- *
716
- * - **Passthrough mode**: provide only `data`. The data is used as-is —
717
- * the server already prepared it. Zero frontend processing.
718
- * - **Legacy mode**: provide `data` + `columns`. Global dashboard filters
719
- * are applied client-side via `applyFilter()`.
699
+ * Props for DashboardWidget. Passthrough mode takes only `data` and uses it as-is;
700
+ * legacy mode takes `data` + `columns` and applies global filters client-side.
720
701
  */
721
702
  interface DashboardWidgetProps<TData> {
722
703
  /** Unique identifier for this widget (used as Layout block key) */
@@ -724,9 +705,8 @@ interface DashboardWidgetProps<TData> {
724
705
  /** Widget title displayed in the Section header */
725
706
  title: string;
726
707
  /**
727
- * Data source identifier used to pick this widget's entry from the
728
- * dashboard's per-source global filter map. Required to receive
729
- * global filters (otherwise only the per-section filter applies).
708
+ * Data source id that picks this widget's entry from the dashboard's per-source
709
+ * filter map. Required to receive global filters.
730
710
  */
731
711
  dataSourceId?: string;
732
712
  /** Optional subtitle displayed below the title */
@@ -734,10 +714,8 @@ interface DashboardWidgetProps<TData> {
734
714
  /** Optional icon name (bundled SVG) shown before the title in the Section header */
735
715
  icon?: string;
736
716
  /**
737
- * Data for this widget.
738
- *
739
- * - **Passthrough**: provide `data` alone → used as-is (server-ready).
740
- * - **Legacy**: provide `data` + `columns` → global filters applied.
717
+ * Data for this widget: alone it is used as-is (passthrough); with `columns`,
718
+ * global filters are applied client-side.
741
719
  */
742
720
  data?: TData[];
743
721
  /**
@@ -770,19 +748,13 @@ interface DashboardWidgetProps<TData> {
770
748
  }
771
749
 
772
750
  /**
773
- * DashboardWidget is a self-contained widget that:
774
- * 1. Receives its own data (raw, pre-filtered, or engine-backed)
775
- * 2. Renders a Section with a toolbar of actions (export, screenshot, expand)
776
- * 3. Passes data to the render prop
777
- *
778
- * Three modes:
779
- * - **Passthrough**: provide only `data` → used as-is (server-ready, zero processing)
780
- * - **Legacy**: provide `data` + `columns` → global filters applied via `applyFilter()`
751
+ * Self-contained widget that takes its own data (raw, pre-filtered, or engine-backed),
752
+ * renders a Section with an action toolbar, and passes the data to the render prop.
781
753
  */
782
754
  declare const DashboardWidget: {
783
755
  <TData extends object>({ title, subtitle, icon, data, columns, children, enableExport, enableScreenshot, enableExpand, enableFilter, fieldOptions, filters, onFilterChange, ignoreGlobalFilters, dataSourceId, className, }: DashboardWidgetProps<TData>): React__default.JSX.Element;
784
756
  displayName: string;
785
757
  };
786
758
 
787
- export { AppBar, BlankSlate, Breadcrumbs, Dashboard, DashboardWidget, FilterBuilder, FilterConditionEditor, FilterField, Scaffold, Section, Sidebar, Stepper, addNodeAtPath, applyFilter, countTopLevelFilters, countTopLevelFiltersMap, emptyCondition, emptyFilterGroup, fieldOptionsFromColumns, getDefaultOperator, getOperatorsForType, isFilterActive, mergeFilters, removeNodeAtPath, stripByFields, updateNodeAtPath, useDashboard, useScaffold };
788
- export type { AppBarActionsProps, AppBarMenuButtonProps, AppBarProps, AppBarTitleProps, BlankSlateAction, BlankSlateActionsProps, BlankSlateDescriptionProps, BlankSlateGraphicProps, BlankSlateHeadingProps, BlankSlatePreset, BlankSlateProps, BooleanOperator, BreadcrumbItem, BreadcrumbsProps, ConditionReadOnly, DashboardProps, DashboardWidgetProps, DashboardWidgetRenderPayload, DateOperator, FilterBuilderProps, FilterColumnType, FilterCondition, FilterConditionEditorProps, FilterFieldProp, FilterFieldProps, FilterGroup, FilterNode, FilterOperator, FilterValue, NumberOperator, OperatorOption, ScaffoldContextValue, ScaffoldProps, SectionProps, SidebarProps, SectionProps$1 as SidebarSectionProps, StepperItem, StepperProps, StepperStepState, StringOperator, UserProps };
759
+ export { AppBar, BlankSlate, Breadcrumbs, Dashboard, DashboardWidget, Drawer, FilterBuilder, FilterConditionEditor, FilterField, Scaffold, Section, Sidebar, Stepper, addNodeAtPath, applyFilter, countActiveConditionsByField, countTopLevelFilters, countTopLevelFiltersMap, emptyCondition, emptyFilterGroup, fieldOptionsFromColumns, getDefaultOperator, getOperatorsForType, isFilterActive, mergeFilters, removeFieldFilters, removeNodeAtPath, stripByFields, updateNodeAtPath, useDashboard, useScaffold };
760
+ export type { AppBarActionsProps, AppBarMenuButtonProps, AppBarProps, AppBarTitleProps, BlankSlateAction, BlankSlateActionsProps, BlankSlateDescriptionProps, BlankSlateGraphicProps, BlankSlateHeadingProps, BlankSlatePreset, BlankSlateProps, BooleanOperator, BreadcrumbItem, BreadcrumbsProps, ConditionReadOnly, DashboardProps, DashboardWidgetProps, DashboardWidgetRenderPayload, DateOperator, DrawerProps, FilterBuilderProps, FilterColumnType, FilterCondition, FilterConditionEditorProps, FilterFieldProp, FilterFieldProps, FilterGroup, FilterNode, FilterOperator, FilterValue, NumberOperator, OperatorOption, ScaffoldContextValue, ScaffoldProps, SectionProps, SidebarProps, SectionProps$1 as SidebarSectionProps, StepperItem, StepperProps, StepperStepState, StringOperator, UserProps };
package/dist/framework.js CHANGED
@@ -1,31 +1,34 @@
1
- import { $ as t, J as e, Q as s, S as r, X as o, Y as i, Z as l, _ as d, at as p, b as F, ct as n, d as u, et as m, g as c, h as f, it as h, lt as S, m as b, nt as y, ot as g, p as v, rt as A, st as B, tt as D, u as C, v as N, x as O, y as P } from "./src-DaTjVaGd.js";
1
+ import { $ as t, C as e, Q as s, S as r, X as o, Y as i, Z as d, _ as l, at as p, b as F, ct as n, d as u, dt as m, et as c, ft as f, g as h, h as v, it as y, lt as S, m as b, nt as A, ot as B, p as g, rt as C, st as D, tt as N, u as O, ut as P, v as T, x, y as L } from "./src-Bzrq1hWW.js";
2
2
  export {
3
- O as AppBar,
4
- f as BlankSlate,
5
- F as Breadcrumbs,
3
+ r as AppBar,
4
+ v as BlankSlate,
5
+ x as Breadcrumbs,
6
6
  u as Dashboard,
7
- C as DashboardWidget,
8
- e as FilterBuilder,
9
- i as FilterConditionEditor,
7
+ O as DashboardWidget,
8
+ F as Drawer,
9
+ i as FilterBuilder,
10
+ o as FilterConditionEditor,
10
11
  b as FilterField,
11
- d as Scaffold,
12
- c as Section,
13
- P as Sidebar,
14
- N as Stepper,
15
- o as addNodeAtPath,
16
- S as applyFilter,
17
- l as countTopLevelFilters,
18
- s as countTopLevelFiltersMap,
19
- t as emptyCondition,
20
- m as emptyFilterGroup,
21
- D as fieldOptionsFromColumns,
12
+ l as Scaffold,
13
+ h as Section,
14
+ L as Sidebar,
15
+ T as Stepper,
16
+ d as addNodeAtPath,
17
+ f as applyFilter,
18
+ s as countActiveConditionsByField,
19
+ t as countTopLevelFilters,
20
+ c as countTopLevelFiltersMap,
21
+ N as emptyCondition,
22
+ A as emptyFilterGroup,
23
+ C as fieldOptionsFromColumns,
22
24
  y as getDefaultOperator,
23
- A as getOperatorsForType,
24
- h as isFilterActive,
25
- p as mergeFilters,
26
- g as removeNodeAtPath,
27
- B as stripByFields,
28
- n as updateNodeAtPath,
29
- v as useDashboard,
30
- r as useScaffold
25
+ p as getOperatorsForType,
26
+ B as isFilterActive,
27
+ D as mergeFilters,
28
+ n as removeFieldFilters,
29
+ S as removeNodeAtPath,
30
+ P as stripByFields,
31
+ m as updateNodeAtPath,
32
+ g as useDashboard,
33
+ e as useScaffold
31
34
  };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./src-gB-fpYMb.cjs");exports.AIChatPanel=e.AIChatPanel;exports.AnchoredOverlay=e.AnchoredOverlay;exports.AppBar=e.AppBar;exports.Banner=e.Banner;exports.BlankSlate=e.BlankSlate;exports.Breadcrumbs=e.Breadcrumbs;exports.Button=e.Button;exports.ButtonDropdown=e.ButtonDropdown;exports.ButtonGroup=e.ButtonGroup;exports.Calendar=e.Calendar;exports.Card=e.Card;exports.CardList=e.CardList;exports.Cell=e.Cell;exports.CellType=e.CellType;exports.Chart=e.Chart;exports.Checkbox=e.Checkbox;exports.CheckboxGroup=e.CheckboxGroup;exports.Dashboard=e.Dashboard;exports.DashboardWidget=e.DashboardWidget;exports.DataComponentConfigurator=e.DataComponentConfigurator;exports.DatePicker=e.DatePicker;exports.DateRangePicker=e.DateRangePicker;exports.FileUpload=e.FileUpload;exports.FilterBuilder=e.FilterBuilder;exports.FilterConditionEditor=e.FilterConditionEditor;exports.FilterField=e.FilterField;exports.Form=e.Form;exports.Gantt=e.Gantt;exports.Icon=e.Icon;exports.KPI=e.KPI;exports.Kbd=e.Kbd;exports.Label=e.Label;exports.Layout=e.Layout;exports.Markdown=e.Markdown;exports.Menu=e.Menu;exports.MindTree=e.MindTree;exports.NumberInput=e.NumberInput;exports.OTP=e.OTPComponent;exports.OverlayPanel=e.OverlayPanel;exports.ProgressBar=e.ProgressBar;exports.Radio=e.Radio;exports.RadioGroup=e.RadioGroup;exports.Scaffold=e.Scaffold;exports.Section=e.Section;exports.SelectionGrid=e.SelectionGrid;exports.ShortcutProvider=e.ShortcutProvider;exports.Sidebar=e.Sidebar;exports.Stack=e.Stack;exports.Stepper=e.Stepper;exports.Switcher=e.Switcher;exports.TableGrid=e.TableGrid;exports.Tag=e.Tag;exports.Timeline=e.Timeline;exports.Tree=e.Tree;exports.TreeCard=e.TreeCard;exports.Workflow=e.Workflow;exports.WorkflowPanel=e.WorkflowPanel;exports.WorkflowToolbar=e.WorkflowToolbar;exports.addNodeAtPath=e.addNodeAtPath;exports.applyFilter=e.applyFilter;exports.cardLayoutPresetOptions=e.cardLayoutPresetOptions;exports.cardLayoutWithIcon=e.cardLayoutWithIcon;exports.countTopLevelFilters=e.countTopLevelFilters;exports.countTopLevelFiltersMap=e.countTopLevelFiltersMap;exports.createDataStructureFromFile=e.createDataStructureFromFile;exports.emptyCondition=e.emptyCondition;exports.emptyFilterGroup=e.emptyFilterGroup;exports.fieldOptionsFromColumns=e.fieldOptionsFromColumns;exports.financeKpiLayout=e.financeKpiLayout;exports.financeKpiLayoutWithIcon=e.financeKpiLayoutWithIcon;exports.getDefaultOperator=e.getDefaultOperator;exports.getOperatorsForType=e.getOperatorsForType;exports.getReachableNodes=e.getReachableNodes;exports.getTopologicalOrder=e.getTopologicalOrder;exports.isFilterActive=e.isFilterActive;exports.kpiLayoutPresetOptions=e.kpiLayoutPresetOptions;exports.mergeFilters=e.mergeFilters;exports.removeNodeAtPath=e.removeNodeAtPath;exports.resolveCardLayoutPreset=e.resolveCardLayoutPreset;exports.resolveKpiLayoutPreset=e.resolveKpiLayoutPreset;exports.stripByFields=e.stripByFields;exports.updateNodeAtPath=e.updateNodeAtPath;exports.useDashboard=e.useDashboard;exports.useDynamicVirtualList=e.useDynamicVirtualList;exports.useScaffold=e.useScaffold;exports.useShortcut=e.useShortcut;exports.validateWorkflow=e.validateWorkflow;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./src-kY7g6XFo.cjs");exports.AIChatPanel=e.AIChatPanel;exports.AnchoredOverlay=e.AnchoredOverlay;exports.AppBar=e.AppBar;exports.Banner=e.Banner;exports.BlankSlate=e.BlankSlate;exports.Breadcrumbs=e.Breadcrumbs;exports.Button=e.Button;exports.ButtonDropdown=e.ButtonDropdown;exports.ButtonGroup=e.ButtonGroup;exports.Calendar=e.Calendar;exports.Card=e.Card;exports.CardList=e.CardList;exports.Cell=e.Cell;exports.CellType=e.CellType;exports.Chart=e.Chart;exports.Checkbox=e.Checkbox;exports.CheckboxGroup=e.CheckboxGroup;exports.Dashboard=e.Dashboard;exports.DashboardWidget=e.DashboardWidget;exports.DataComponentConfigurator=e.DataComponentConfigurator;exports.DatePicker=e.DatePicker;exports.DateRangePicker=e.DateRangePicker;exports.Drawer=e.Drawer;exports.FileUpload=e.FileUpload;exports.FilterBuilder=e.FilterBuilder;exports.FilterConditionEditor=e.FilterConditionEditor;exports.FilterField=e.FilterField;exports.Form=e.Form;exports.Gantt=e.Gantt;exports.Icon=e.Icon;exports.Input=e.Input;exports.KPI=e.KPI;exports.Kbd=e.Kbd;exports.Label=e.Label;exports.Layout=e.Layout;exports.Markdown=e.Markdown;exports.Menu=e.Menu;exports.MindTree=e.MindTree;exports.NumberInput=e.NumberInput;exports.OTP=e.OTPComponent;exports.OverlayPanel=e.OverlayPanel;exports.ProgressBar=e.ProgressBar;exports.Radio=e.Radio;exports.RadioGroup=e.RadioGroup;exports.Scaffold=e.Scaffold;exports.Section=e.Section;exports.Select=e.Select;exports.SelectionGrid=e.SelectionGrid;exports.ShortcutProvider=e.ShortcutProvider;exports.Sidebar=e.Sidebar;exports.Stack=e.Stack;exports.Stepper=e.Stepper;exports.Switcher=e.Switcher;exports.TableGrid=e.TableGrid;exports.Tag=e.Tag;exports.TextInput=e.TextInput;exports.Textarea=e.Textarea;exports.Timeline=e.Timeline;exports.Tree=e.Tree;exports.TreeCard=e.TreeCard;exports.Typography=e.Typography;exports.Workflow=e.Workflow;exports.WorkflowPanel=e.WorkflowPanel;exports.WorkflowToolbar=e.WorkflowToolbar;exports.addNodeAtPath=e.addNodeAtPath;exports.applyFilter=e.applyFilter;exports.cardLayoutPresetOptions=e.cardLayoutPresetOptions;exports.cardLayoutWithIcon=e.cardLayoutWithIcon;exports.countActiveConditionsByField=e.countActiveConditionsByField;exports.countTopLevelFilters=e.countTopLevelFilters;exports.countTopLevelFiltersMap=e.countTopLevelFiltersMap;exports.createDataStructureFromFile=e.createDataStructureFromFile;exports.emptyCondition=e.emptyCondition;exports.emptyFilterGroup=e.emptyFilterGroup;exports.fieldOptionsFromColumns=e.fieldOptionsFromColumns;exports.financeKpiLayout=e.financeKpiLayout;exports.financeKpiLayoutWithIcon=e.financeKpiLayoutWithIcon;exports.getDefaultOperator=e.getDefaultOperator;exports.getOperatorsForType=e.getOperatorsForType;exports.getReachableNodes=e.getReachableNodes;exports.getTopologicalOrder=e.getTopologicalOrder;exports.isFilterActive=e.isFilterActive;exports.kpiLayoutPresetOptions=e.kpiLayoutPresetOptions;exports.mergeFilters=e.mergeFilters;exports.removeFieldFilters=e.removeFieldFilters;exports.removeNodeAtPath=e.removeNodeAtPath;exports.resolveCardLayoutPreset=e.resolveCardLayoutPreset;exports.resolveKpiLayoutPreset=e.resolveKpiLayoutPreset;exports.stripByFields=e.stripByFields;exports.updateNodeAtPath=e.updateNodeAtPath;exports.useDashboard=e.useDashboard;exports.useDynamicVirtualList=e.useDynamicVirtualList;exports.useScaffold=e.useScaffold;exports.useShortcut=e.useShortcut;exports.validateWorkflow=e.validateWorkflow;