@factorialco/f0-react 4.42.1 → 4.44.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/DocumentToolbar-D3GqxyBD.js +93 -0
- package/dist/DocxViewer-BIZmtyWY.js +5575 -0
- package/dist/{F0AiProcessingOverlay-9Sa4lp5v.js → F0AiProcessingOverlay-rViVqtAb.js} +3 -3
- package/dist/{F0CanvasPanel-DmTDCr-7.js → F0CanvasPanel-VGTPb68G.js} +44057 -43868
- package/dist/{LocationMap-o-OdzIn4.js → LocationMap-CdKO0X5V.js} +1 -1
- package/dist/SheetViewer-HsR5toIL.js +137 -0
- package/dist/TextViewer-Dn0MDAXs.js +74 -0
- package/dist/ai.d.ts +9 -0
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +17 -0
- package/dist/experimental.js +5 -5
- package/dist/f0-BaDuQbAV.js +79441 -0
- package/dist/f0.d.ts +50 -1
- package/dist/f0.js +299 -79563
- package/dist/i18n-provider-defaults.d.ts +9 -0
- package/dist/i18n-provider-defaults.js +10 -1
- package/dist/{index-DKG1q6vB.js → index-DoDUaTro.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/xlsx-CzlURDDb.js +24525 -0
- package/package.json +3 -2
- package/dist/xlsx-Bedf3nwD.js +0 -15557
package/dist/f0.d.ts
CHANGED
|
@@ -4667,6 +4667,8 @@ export declare const defaultTranslations: {
|
|
|
4667
4667
|
readonly date: "Date";
|
|
4668
4668
|
readonly custom: "Custom period";
|
|
4669
4669
|
readonly selectDate: "Select Date";
|
|
4670
|
+
readonly selectMonth: "Select month";
|
|
4671
|
+
readonly selectYear: "Select year";
|
|
4670
4672
|
readonly compareTo: "Compare to";
|
|
4671
4673
|
readonly presets: {
|
|
4672
4674
|
readonly last7Days: "Last 7 days";
|
|
@@ -4960,6 +4962,8 @@ export declare const defaultTranslations: {
|
|
|
4960
4962
|
readonly closePreview: "Close";
|
|
4961
4963
|
readonly previousImage: "Previous image";
|
|
4962
4964
|
readonly nextImage: "Next image";
|
|
4965
|
+
readonly openDocument: "Open document";
|
|
4966
|
+
readonly documentPreview: "Document preview";
|
|
4963
4967
|
readonly photo: "Photo";
|
|
4964
4968
|
readonly photoCount: {
|
|
4965
4969
|
readonly one: "{{count}} photo";
|
|
@@ -5267,6 +5271,11 @@ export declare const defaultTranslations: {
|
|
|
5267
5271
|
readonly print: "Print";
|
|
5268
5272
|
readonly download: "Download";
|
|
5269
5273
|
readonly loading: "Loading document";
|
|
5274
|
+
readonly previewFailed: "Preview isn't available for this file";
|
|
5275
|
+
readonly showingFirstRows: {
|
|
5276
|
+
readonly one: "Showing the first row";
|
|
5277
|
+
readonly other: "Showing the first {{count}} rows";
|
|
5278
|
+
};
|
|
5270
5279
|
};
|
|
5271
5280
|
};
|
|
5272
5281
|
|
|
@@ -8699,6 +8708,15 @@ export declare type F0DialogSecondaryActionItem = F0DialogActionItem;
|
|
|
8699
8708
|
|
|
8700
8709
|
declare type F0DialogSize = (typeof dialogSizes)[number];
|
|
8701
8710
|
|
|
8711
|
+
/**
|
|
8712
|
+
* Document families the viewer can render. "pdf" is the default and keeps the
|
|
8713
|
+
* full toolbar (paging, zoom, print, download); the other kinds render a
|
|
8714
|
+
* lazy-loaded, read-only preview: "sheet" (xlsx/xls/csv) as an Excel-style
|
|
8715
|
+
* grid with one tab per sheet, "docx" through docx-preview with page layout,
|
|
8716
|
+
* and "text" as a rendered markdown document (`.md`) or monospaced source.
|
|
8717
|
+
*/
|
|
8718
|
+
export declare type F0DocumentKind = "pdf" | "sheet" | "docx" | "text";
|
|
8719
|
+
|
|
8702
8720
|
/**
|
|
8703
8721
|
* @experimental This is an experimental component use it at your own risk
|
|
8704
8722
|
*/
|
|
@@ -10633,11 +10651,34 @@ export declare const F0PdfViewer: WithDataTestIdReturnType_3<ForwardRefExoticCom
|
|
|
10633
10651
|
Skeleton: () => JSX_2.Element;
|
|
10634
10652
|
}>;
|
|
10635
10653
|
|
|
10654
|
+
/**
|
|
10655
|
+
* Host-provided toolbar action, appended after the built-in controls in every
|
|
10656
|
+
* kind — e.g. a Close button when the viewer lives inside a fullscreen overlay.
|
|
10657
|
+
*/
|
|
10658
|
+
export declare type F0PdfViewerAction = {
|
|
10659
|
+
icon: IconType;
|
|
10660
|
+
label: string;
|
|
10661
|
+
onClick: () => void;
|
|
10662
|
+
};
|
|
10663
|
+
|
|
10636
10664
|
export declare interface F0PdfViewerProps extends WithDataTestIdProps, DataAttributes_2 {
|
|
10637
|
-
/** Source URL of the
|
|
10665
|
+
/** Source URL of the document. */
|
|
10638
10666
|
url: string;
|
|
10639
10667
|
/** File name used when downloading the document. Defaults to "document.pdf". */
|
|
10640
10668
|
filename?: string;
|
|
10669
|
+
/**
|
|
10670
|
+
* Document family to render. Defaults to "pdf" (unchanged behavior). For the
|
|
10671
|
+
* other kinds the PDF-only props below (page, scale, rotation, print…) are
|
|
10672
|
+
* ignored.
|
|
10673
|
+
*/
|
|
10674
|
+
kind?: F0DocumentKind;
|
|
10675
|
+
/** MIME type of the document — used by kind "text" to detect markdown. */
|
|
10676
|
+
mimeType?: string;
|
|
10677
|
+
/**
|
|
10678
|
+
* Custom actions appended to the toolbar (after the built-in controls), in
|
|
10679
|
+
* every kind — e.g. a Close button when the viewer fills an overlay.
|
|
10680
|
+
*/
|
|
10681
|
+
actions?: F0PdfViewerAction[];
|
|
10641
10682
|
/** Zero-based page index to scroll to initially (and on change). */
|
|
10642
10683
|
page?: number;
|
|
10643
10684
|
/** Restrict rendering to a subset of pages (zero-based indexes). */
|
|
@@ -11096,6 +11137,14 @@ declare type F0SelectBaseProps<T extends string, R = unknown> = {
|
|
|
11096
11137
|
* @default true
|
|
11097
11138
|
*/
|
|
11098
11139
|
preserveSelectionOnDatasetChange?: boolean;
|
|
11140
|
+
/**
|
|
11141
|
+
* When true, the dropdown sizes to its widest option (never narrower than
|
|
11142
|
+
* the trigger) instead of the default 20rem minimum. Useful for compact
|
|
11143
|
+
* value pickers like month/year selectors.
|
|
11144
|
+
*
|
|
11145
|
+
* @default false
|
|
11146
|
+
*/
|
|
11147
|
+
fitContentWidth?: boolean;
|
|
11099
11148
|
} & WithDataTestIdProps;
|
|
11100
11149
|
|
|
11101
11150
|
/**
|