@factorialco/f0-react 1.277.1 → 1.279.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.
@@ -1316,6 +1316,14 @@ export declare const ChartWidgetEmptyState: ForwardRefExoticComponent<Props_5 &
1316
1316
 
1317
1317
  export declare type ChatWidgetEmptyStateProps = Props_5;
1318
1318
 
1319
+ declare type ChildrenResponse<R extends RecordType> = BaseResponse<R> | R[] | {
1320
+ records: R[] & {
1321
+ type?: ChildrenResponseType;
1322
+ };
1323
+ };
1324
+
1325
+ declare type ChildrenResponseType = "basic" | "detailed";
1326
+
1319
1327
  export declare function ClockInControls({ trackedMinutes, remainingMinutes, data, labels, locationId, locations, canShowLocation, locationSelectorDisabled, onClockIn, onClockOut, onBreak, breakTypes, onChangeBreakTypeId, canShowBreakButton, canSeeGraph, canSeeRemainingTime, onChangeLocationId, canShowProject, projectSelectorElement, breakTypeName, }: ClockInControlsProps): JSX_2.Element;
1320
1328
 
1321
1329
  export declare interface ClockInControlsProps {
@@ -1828,6 +1836,13 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
1828
1836
  defaultGrouping?: GroupingState<R, Grouping>;
1829
1837
  /** Current state of applied grouping */
1830
1838
  currentGrouping?: GroupingState<R, Grouping>;
1839
+ /*******************************************************/
1840
+ /***** NESTED RECORDS ***************************************************/
1841
+ fetchChildren?: (item: R, filters?: FiltersState<FiltersDefinition>) => Promise<ChildrenResponse<R>>;
1842
+ /** Function to determine if an item has children */
1843
+ itemsWithChildren?: (item: R) => boolean;
1844
+ /** Function to get the number of children for an item */
1845
+ childrenCount?: (item: R) => number | undefined;
1831
1846
  };
1832
1847
 
1833
1848
  export declare type DateFilterDefinition = BaseFilterDefinition<"date"> & {