@factorialco/f0-react 16.8.0 → 16.9.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.
Files changed (38) hide show
  1. package/dist/{ArchiveThumbnail-BKvu3lcu.js → ArchiveThumbnail-CHD3Iy6h.js} +1 -1
  2. package/dist/{ArchiveViewer-PokpRAw4.js → ArchiveViewer-BruLPfRd.js} +2 -2
  3. package/dist/{ChatPostComposerDialog-D-5viWxQ.js → ChatPostComposerDialog-D2VInjpJ.js} +2 -2
  4. package/dist/{CoachmarkProvider-C47BcI7u.js → CoachmarkProvider-BkKNhwDS.js} +11472 -11345
  5. package/dist/{CodeThumbnail-CroXmUci.js → CodeThumbnail-DPdOdeGw.js} +1 -1
  6. package/dist/{CodeViewer-DVTJp_wA.js → CodeViewer-Md1vIG7A.js} +4 -4
  7. package/dist/{DocumentToolbar-BANw77k3.js → DocumentToolbar-DZKEtgXN.js} +2 -2
  8. package/dist/{DocxViewer-CevgUJLK.js → DocxViewer-DfzXVrsy.js} +1 -1
  9. package/dist/{F0AiProcessingOverlay-DI6jMuCD.js → F0AiProcessingOverlay-Kv1fBtEQ.js} +2 -2
  10. package/dist/{F0Alert-ieGe_wih.js → F0Alert-CPw8WeK2.js} +1 -1
  11. package/dist/F0AudioPlayer-DBErWDAZ.js +2 -0
  12. package/dist/{F0CanvasPanel-C4ph6y28.js → F0CanvasPanel-CHlrtxyn.js} +5 -5
  13. package/dist/{F0DocumentViewer-CB-M5vkX.js → F0DocumentViewer-DAmgyUac.js} +2 -2
  14. package/dist/{F0DocumentViewer-NYnR9AyB.js → F0DocumentViewer-DPPUxead.js} +1 -1
  15. package/dist/{F0Map-CGd46RFu.js → F0Map-BqlTQf2y.js} +3 -3
  16. package/dist/{F0Select-mxxXMo_K.js → F0Select-BysweEOJ.js} +1500 -1490
  17. package/dist/F0VideoPlayer-BNMgdgRq.js +1 -0
  18. package/dist/{F0VideoPlayer-C0z6zvj3.js → F0VideoPlayer-C4ntJknK.js} +1 -1
  19. package/dist/{HtmlViewer-0nFbOUq8.js → HtmlViewer-BtPzkwnP.js} +4 -4
  20. package/dist/{Map-B08PBTa7.js → Map-C30TPih9.js} +3 -3
  21. package/dist/{PdfThumbnail-D7J4iWRY.js → PdfThumbnail-BEZgcOCH.js} +1 -1
  22. package/dist/{PdfViewer-cW_JCDxU.js → PdfViewer-BB7mpQE1.js} +3 -3
  23. package/dist/{SheetViewer-DqoHh8uJ.js → SheetViewer-7Dbh6Qlw.js} +2 -2
  24. package/dist/{TextViewer-Bj4KGv39.js → TextViewer-DhU8VF7y.js} +1 -1
  25. package/dist/ai.js +2 -2
  26. package/dist/component-status.js +2 -2
  27. package/dist/experimental.d.ts +1 -1
  28. package/dist/experimental.js +5 -5
  29. package/dist/f0.d.ts +1 -1
  30. package/dist/f0.js +7 -7
  31. package/dist/{highlight-CciFQ6gi.js → highlight-D_yybAIe.js} +1 -1
  32. package/dist/{maplibre-DSB7gj3I.js → maplibre-CRK6U5yl.js} +1 -1
  33. package/dist/{pdfWorker-D4A-2BUo.js → pdfWorker-DM-jcBYr.js} +1 -1
  34. package/dist/styles.css +1 -1
  35. package/dist/{types-DBhqq-Lu.d.ts → types-kaUL7GRh.d.ts} +19 -9
  36. package/package.json +1 -1
  37. package/dist/F0AudioPlayer-uMvUIjPA.js +0 -2
  38. package/dist/F0VideoPlayer-BA5EvMse.js +0 -1
@@ -978,11 +978,15 @@ interface DataSourceDefinition<R extends RecordType = RecordType, Filters extend
978
978
  */
979
979
  selectionDisabled?: (item: R) => boolean;
980
980
  /**
981
- * A row selected through something else — a tree node picked above it, say.
982
- * Renders indeterminate and disabled, and never enters the selection, so the
983
- * payload keeps naming only real picks. Implies `selectionDisabled`.
981
+ * Table only. In a tree, ticking a row ticks the rows loaded below it and
982
+ * unticking clears them; it does not load a collapsed subtree, so rows that
983
+ * never loaded stay out of the selection. Children that load later under a
984
+ * ticked row arrive ticked. A row that cannot be ticked passes the tick on to
985
+ * the rows below it. A row that is not ticked but has a ticked row below it
986
+ * shows the indeterminate mark and stays out of the selection; clicking it
987
+ * ticks it with its loaded subtree.
984
988
  */
985
- selectionInherited?: (item: R) => boolean;
989
+ cascadeSelection?: boolean;
986
990
  /**
987
991
  * Removes the header select-all and the cross-page "Select all N items" CTA,
988
992
  * forcing row-by-row selection. Mirrors `F0Select`'s prop of the same name.
@@ -1603,6 +1607,11 @@ interface UseSelectableProps<R extends RecordType, Filters extends FiltersDefini
1603
1607
  * reaches rows absent from `data.records`. Falls back to `data.records`.
1604
1608
  */
1605
1609
  getRenderedSelectableEntries?: () => [SelectionId, R][];
1610
+ /**
1611
+ * Loaded rows below a row in a tree. A tick or untick, row or "select all",
1612
+ * takes them along in the same update.
1613
+ */
1614
+ getRowsBelow?: (id: SelectionId) => readonly R[];
1606
1615
  /**
1607
1616
  * Count of currently-rendered selectable rows (incl. nested children). Used
1608
1617
  * as the item total when it exceeds `paginationInfo.total`, so selection
@@ -1638,10 +1647,11 @@ interface UseSelectableReturn<R extends RecordType, Filters extends FiltersDefin
1638
1647
  clearSelection: () => void;
1639
1648
  /**
1640
1649
  * Handles the change of the selected item.
1641
- * Accepts either SelectionId(s) or the item itself (R).
1642
- * When passing an item, the ID will be extracted using source.selectable.
1650
+ * Accepts either SelectionId(s) or the item(s) themselves (R).
1651
+ * When passing items, the IDs will be extracted using source.selectable, and
1652
+ * items without one, or whose selection is disabled, are skipped.
1643
1653
  */
1644
- handleSelectItemChange: (itemOrId: R | SelectionId | readonly SelectionId[], checked: boolean) => void;
1654
+ handleSelectItemChange: (itemOrId: R | readonly R[] | SelectionId | readonly SelectionId[], checked: boolean) => void;
1645
1655
  /**
1646
1656
  * Handles "select all" for the current page only
1647
1657
  */
@@ -1664,7 +1674,7 @@ interface UseSelectableReturn<R extends RecordType, Filters extends FiltersDefin
1664
1674
  * Custom hook to manage selection state for items and groups in a data table
1665
1675
  * Supports single/multi selection, grouped data, pagination, and filtering
1666
1676
  */
1667
- declare function useSelectable<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Grouping extends GroupingDefinition<R>>({ data, paginationInfo, source, selectionMode, selectedState, onSelectItems, disableSelectAll: disableSelectAllProp, isSearchActive, allPagesSelection, resetOnPageChange, preserveSelectionOnDatasetChange, getRenderedSelectableEntries, renderedSelectableCount }: UseSelectableProps<R, Filters, Sortings, Grouping>): UseSelectableReturn<R, Filters>;
1677
+ declare function useSelectable<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Grouping extends GroupingDefinition<R>>({ data, paginationInfo, source, selectionMode, selectedState, onSelectItems, disableSelectAll: disableSelectAllProp, isSearchActive, allPagesSelection, resetOnPageChange, preserveSelectionOnDatasetChange, getRenderedSelectableEntries, getRowsBelow, renderedSelectableCount }: UseSelectableProps<R, Filters, Sortings, Grouping>): UseSelectableReturn<R, Filters>;
1668
1678
  //#endregion
1669
1679
  //#region src/elements/F0InputField/types.d.ts
1670
1680
  declare const inputFieldVariantNames: readonly ["field", "inline"];
@@ -6440,7 +6450,7 @@ type SelectCellConfig<R extends RecordType> = {
6440
6450
  source?: never;
6441
6451
  mapOptions?: never;
6442
6452
  } | (SelectCellListConfig<R> & {
6443
- source: Omit<DataSourceDefinition<RecordType, FiltersDefinition, SortingsDefinition, GroupingDefinition<RecordType>>, "selectable" | "selectionDisabled" | "selectionInherited" | "disableSelectAll" | "grouping" | "defaultGrouping" | "currentGrouping" | "fetchChildren" | "itemsWithChildren" | "childrenCount">;
6453
+ source: Omit<DataSourceDefinition<RecordType, FiltersDefinition, SortingsDefinition, GroupingDefinition<RecordType>>, "selectable" | "selectionDisabled" | "disableSelectAll" | "grouping" | "defaultGrouping" | "currentGrouping" | "fetchChildren" | "itemsWithChildren" | "childrenCount">;
6444
6454
  mapOptions: (record: RecordType) => F0SelectItemProps<string, RecordType>;
6445
6455
  options?: never;
6446
6456
  submenus?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "16.8.0",
3
+ "version": "16.9.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/factorialco/f0.git",
@@ -1,2 +0,0 @@
1
- export { qi as F0AudioPlayer } from "./F0CanvasPanel-C4ph6y28.js";
2
- import "./f0.js";
@@ -1 +0,0 @@
1
- export { t as F0VideoPlayer } from "./F0VideoPlayer-C0z6zvj3.js";