@factorialco/f0-react 16.7.2 → 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.
- package/dist/{ArchiveThumbnail-PuK9lQt7.js → ArchiveThumbnail-CHD3Iy6h.js} +1 -1
- package/dist/{ArchiveViewer-EVdEZ47z.js → ArchiveViewer-BruLPfRd.js} +2 -2
- package/dist/{ChatPostComposerDialog-D_mW8jWn.js → ChatPostComposerDialog-D2VInjpJ.js} +2 -2
- package/dist/{CoachmarkProvider-B3rD36gl.js → CoachmarkProvider-BkKNhwDS.js} +19822 -19695
- package/dist/{CodeThumbnail-C_5FsBOm.js → CodeThumbnail-DPdOdeGw.js} +1 -1
- package/dist/{CodeViewer-Jsi_2xXh.js → CodeViewer-Md1vIG7A.js} +4 -4
- package/dist/{DocumentToolbar-BzByx1Dn.js → DocumentToolbar-DZKEtgXN.js} +2 -2
- package/dist/{DocxViewer-CSYglhFv.js → DocxViewer-DfzXVrsy.js} +1 -1
- package/dist/{F0AiProcessingOverlay-Bqx-e4_-.js → F0AiProcessingOverlay-Kv1fBtEQ.js} +331 -331
- package/dist/{F0Alert-HB_BxC2y.js → F0Alert-CPw8WeK2.js} +3 -3
- package/dist/F0AudioPlayer-DBErWDAZ.js +2 -0
- package/dist/{F0CanvasPanel-Bln7jkQW.js → F0CanvasPanel-CHlrtxyn.js} +4182 -4182
- package/dist/{F0DocumentViewer-DJ3LI-b-.js → F0DocumentViewer-DAmgyUac.js} +2 -2
- package/dist/{F0DocumentViewer-Dld2UWye.js → F0DocumentViewer-DPPUxead.js} +1 -1
- package/dist/{F0Map-DROScvs0.js → F0Map-BqlTQf2y.js} +9 -9
- package/dist/{F0Select-mxxXMo_K.js → F0Select-BysweEOJ.js} +1500 -1490
- package/dist/F0VideoPlayer-BNMgdgRq.js +1 -0
- package/dist/{F0VideoPlayer-B9TW8FVY.js → F0VideoPlayer-C4ntJknK.js} +15 -15
- package/dist/{HtmlViewer-DEUd_5sU.js → HtmlViewer-BtPzkwnP.js} +4 -4
- package/dist/{Map-B1ZzuTQM.js → Map-C30TPih9.js} +3 -3
- package/dist/{PdfThumbnail-BgDYJsQ1.js → PdfThumbnail-BEZgcOCH.js} +1 -1
- package/dist/{PdfViewer-B8yj3t3V.js → PdfViewer-BB7mpQE1.js} +6 -6
- package/dist/{SheetViewer-C4ZdihC_.js → SheetViewer-7Dbh6Qlw.js} +2 -2
- package/dist/{TextViewer-BszyoMOh.js → TextViewer-DhU8VF7y.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +52 -8
- package/dist/experimental.d.ts +121 -2
- package/dist/experimental.js +5738 -5299
- package/dist/f0.d.ts +1 -1
- package/dist/f0.js +167 -167
- package/dist/{highlight-D8IVJ7ry.js → highlight-D_yybAIe.js} +1 -1
- package/dist/{maplibre-lTb3LBXs.js → maplibre-CRK6U5yl.js} +1 -1
- package/dist/{pdfWorker-WlS_ycyi.js → pdfWorker-DM-jcBYr.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-DBhqq-Lu.d.ts → types-kaUL7GRh.d.ts} +19 -9
- package/package.json +1 -1
- package/dist/F0AudioPlayer-Cyjz-Ray.js +0 -2
- package/dist/F0VideoPlayer-C6rx3JDg.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
|
-
*
|
|
982
|
-
*
|
|
983
|
-
*
|
|
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
|
-
|
|
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
|
|
1642
|
-
* When passing
|
|
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" | "
|
|
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 +0,0 @@
|
|
|
1
|
-
export { t as F0VideoPlayer } from "./F0VideoPlayer-B9TW8FVY.js";
|