@factorialco/f0-react 3.5.1 → 3.7.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/{F0CanvasPanel-CLzhNgm-.js → F0CanvasPanel-DfmThuOg.js} +10330 -10176
- package/dist/ai.d.ts +16 -32
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +186 -40
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +311 -33
- package/dist/f0.js +12341 -11855
- package/dist/i18n-provider-defaults.d.ts +16 -32
- package/dist/i18n-provider-defaults.js +18 -34
- package/dist/styles.css +1 -1
- package/dist/{useChatHistory-DXxW-N6d.js → useChatHistory-BMn0r9KO.js} +1644 -1784
- package/dist/{useDataCollectionSource-CehPwPy3.js → useDataCollectionSource-MryiHA0V.js} +28467 -19651
- package/dist/useDataCollectionSource.css +1 -1
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -1827,6 +1827,15 @@ export declare const defaultTranslations: {
|
|
|
1827
1827
|
readonly link: {
|
|
1828
1828
|
readonly opensInNewTab: "opens in new tab";
|
|
1829
1829
|
};
|
|
1830
|
+
readonly audioPlayer: {
|
|
1831
|
+
readonly label: "Audio player";
|
|
1832
|
+
readonly play: "Play";
|
|
1833
|
+
readonly pause: "Pause";
|
|
1834
|
+
readonly seek: "Seek";
|
|
1835
|
+
readonly options: "Recording options";
|
|
1836
|
+
readonly playbackSpeed: "Playback speed";
|
|
1837
|
+
readonly position: "{{current}} of {{total}}";
|
|
1838
|
+
};
|
|
1830
1839
|
readonly actions: {
|
|
1831
1840
|
readonly add: "Add";
|
|
1832
1841
|
readonly edit: "Edit";
|
|
@@ -1950,16 +1959,18 @@ export declare const defaultTranslations: {
|
|
|
1950
1959
|
readonly cancel: "Cancel";
|
|
1951
1960
|
};
|
|
1952
1961
|
readonly visualizations: {
|
|
1953
|
-
readonly table: "Table
|
|
1954
|
-
readonly editableTable: "Editable table
|
|
1955
|
-
readonly card: "Card
|
|
1956
|
-
readonly list: "List
|
|
1957
|
-
readonly kanban: "Kanban
|
|
1962
|
+
readonly table: "Table";
|
|
1963
|
+
readonly editableTable: "Editable table";
|
|
1964
|
+
readonly card: "Card";
|
|
1965
|
+
readonly list: "List";
|
|
1966
|
+
readonly kanban: "Kanban";
|
|
1967
|
+
readonly graph: "Graph";
|
|
1958
1968
|
readonly pagination: {
|
|
1959
1969
|
readonly of: "of";
|
|
1960
1970
|
};
|
|
1961
1971
|
readonly settings: "{{visualizationName}} settings";
|
|
1962
1972
|
readonly reset: "Reset to default";
|
|
1973
|
+
readonly viewSelectorLabel: "Select view";
|
|
1963
1974
|
};
|
|
1964
1975
|
readonly table: {
|
|
1965
1976
|
readonly settings: {
|
|
@@ -2470,33 +2481,6 @@ export declare const defaultTranslations: {
|
|
|
2470
2481
|
readonly zoomIn: "Zoom in";
|
|
2471
2482
|
readonly zoomOut: "Zoom out";
|
|
2472
2483
|
readonly navigation: "Graph navigation";
|
|
2473
|
-
readonly metadataSettings: "Metadata visibility";
|
|
2474
|
-
readonly tagTypeLabels: {
|
|
2475
|
-
readonly person: "People";
|
|
2476
|
-
readonly team: "Teams";
|
|
2477
|
-
readonly company: "Companies";
|
|
2478
|
-
readonly status: "Statuses";
|
|
2479
|
-
readonly alert: "Alerts";
|
|
2480
|
-
readonly balance: "Balances";
|
|
2481
|
-
readonly dot: "Tags";
|
|
2482
|
-
readonly raw: "Tags";
|
|
2483
|
-
};
|
|
2484
|
-
};
|
|
2485
|
-
readonly search: {
|
|
2486
|
-
readonly noResults: "No results";
|
|
2487
|
-
};
|
|
2488
|
-
readonly detailPanel: {
|
|
2489
|
-
readonly details: "Details";
|
|
2490
|
-
readonly moreActions: "More actions";
|
|
2491
|
-
readonly resize: "Resize detail panel";
|
|
2492
|
-
};
|
|
2493
|
-
readonly expander: {
|
|
2494
|
-
readonly collapse: "Collapse {{count}} items";
|
|
2495
|
-
readonly expand: "Expand {{count}} items";
|
|
2496
|
-
readonly expandWithParentSingular: "Expand {{parent}}, {{count}} child";
|
|
2497
|
-
readonly expandWithParentPlural: "Expand {{parent}}, {{count}} children";
|
|
2498
|
-
readonly collapseWithParent: "Collapse {{parent}}";
|
|
2499
|
-
readonly collapseDefault: "Collapse children";
|
|
2500
2484
|
};
|
|
2501
2485
|
};
|
|
2502
2486
|
readonly wizard: {
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as e, D as r, c as t, F as o, a as i, f as n, g as F, d as C, e as A, I as l, P as d, b as u, u as m } from "./F0CanvasPanel-
|
|
1
|
+
import { C as e, D as r, c as t, F as o, a as i, f as n, g as F, d as C, e as A, I as l, P as d, b as u, u as m } from "./F0CanvasPanel-DfmThuOg.js";
|
|
2
2
|
import { defaultTranslations as c } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as P, s as v, t as f, w as g, l as p, i as T, q as y, x as S, p as x, r as H, j as V, e as b, g as k, k as w, F as M, h as O, a as D, n as j, m as q, o as z, b as B, f as E, v as L, c as R, d as G, u as J } from "./useChatHistory-
|
|
3
|
+
import { A as P, s as v, t as f, w as g, l as p, i as T, q as y, x as S, p as x, r as H, j as V, e as b, g as k, k as w, F as M, h as O, a as D, n as j, m as q, o as z, b as B, f as E, v as L, c as R, d as G, u as J } from "./useChatHistory-BMn0r9KO.js";
|
|
4
4
|
export {
|
|
5
5
|
P as AiChatTranslationsProvider,
|
|
6
6
|
e as ChatSpinner,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1311,6 +1311,16 @@ declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "clas
|
|
|
1311
1311
|
* The aria-label of the button if not provided title or label will be used.
|
|
1312
1312
|
*/
|
|
1313
1313
|
"aria-label"?: string;
|
|
1314
|
+
/**
|
|
1315
|
+
* Forwarded to the underlying button. Useful for buttons that toggle an
|
|
1316
|
+
* expandable region (e.g. a tree/graph expander).
|
|
1317
|
+
*/
|
|
1318
|
+
"aria-expanded"?: boolean;
|
|
1319
|
+
/**
|
|
1320
|
+
* Forwarded to the underlying button. Use `-1` to take the button out of the
|
|
1321
|
+
* tab order (e.g. when a parent manages focus via roving tabindex).
|
|
1322
|
+
*/
|
|
1323
|
+
tabIndex?: number;
|
|
1314
1324
|
/**
|
|
1315
1325
|
* The variant of the button.
|
|
1316
1326
|
*/
|
|
@@ -2189,6 +2199,7 @@ declare type CollectionVisualizations<Record extends RecordType, Filters extends
|
|
|
2189
2199
|
list: VisualizacionTypeDefinition<ListCollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>>;
|
|
2190
2200
|
card: VisualizacionTypeDefinition<CardCollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>>;
|
|
2191
2201
|
kanban: VisualizacionTypeDefinition<KanbanCollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>>;
|
|
2202
|
+
graph: VisualizacionTypeDefinition<GraphCollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>, GraphVisualizationSettings>;
|
|
2192
2203
|
};
|
|
2193
2204
|
|
|
2194
2205
|
declare const collectionVisualizations: CollectionVisualizations<RecordType, FiltersDefinition, SortingsDefinition, SummariesDefinition, ItemActionsDefinition<RecordType>, NavigationFiltersDefinition, GroupingDefinition<RecordType>>;
|
|
@@ -2577,6 +2588,8 @@ export declare type DataCollectionSourceDefinition<R extends RecordType = Record
|
|
|
2577
2588
|
itemPreFilter?: (item: R) => boolean;
|
|
2578
2589
|
/** Lanes configuration */
|
|
2579
2590
|
lanes?: ReadonlyArray<Lane<Filters>>;
|
|
2591
|
+
/** Rich search preview shown in the shared header search (all visualizations). */
|
|
2592
|
+
searchPreview?: SearchPreview<R>;
|
|
2580
2593
|
};
|
|
2581
2594
|
|
|
2582
2595
|
/**
|
|
@@ -3045,6 +3058,15 @@ declare const defaultTranslations: {
|
|
|
3045
3058
|
readonly link: {
|
|
3046
3059
|
readonly opensInNewTab: "opens in new tab";
|
|
3047
3060
|
};
|
|
3061
|
+
readonly audioPlayer: {
|
|
3062
|
+
readonly label: "Audio player";
|
|
3063
|
+
readonly play: "Play";
|
|
3064
|
+
readonly pause: "Pause";
|
|
3065
|
+
readonly seek: "Seek";
|
|
3066
|
+
readonly options: "Recording options";
|
|
3067
|
+
readonly playbackSpeed: "Playback speed";
|
|
3068
|
+
readonly position: "{{current}} of {{total}}";
|
|
3069
|
+
};
|
|
3048
3070
|
readonly actions: {
|
|
3049
3071
|
readonly add: "Add";
|
|
3050
3072
|
readonly edit: "Edit";
|
|
@@ -3168,16 +3190,18 @@ declare const defaultTranslations: {
|
|
|
3168
3190
|
readonly cancel: "Cancel";
|
|
3169
3191
|
};
|
|
3170
3192
|
readonly visualizations: {
|
|
3171
|
-
readonly table: "Table
|
|
3172
|
-
readonly editableTable: "Editable table
|
|
3173
|
-
readonly card: "Card
|
|
3174
|
-
readonly list: "List
|
|
3175
|
-
readonly kanban: "Kanban
|
|
3193
|
+
readonly table: "Table";
|
|
3194
|
+
readonly editableTable: "Editable table";
|
|
3195
|
+
readonly card: "Card";
|
|
3196
|
+
readonly list: "List";
|
|
3197
|
+
readonly kanban: "Kanban";
|
|
3198
|
+
readonly graph: "Graph";
|
|
3176
3199
|
readonly pagination: {
|
|
3177
3200
|
readonly of: "of";
|
|
3178
3201
|
};
|
|
3179
3202
|
readonly settings: "{{visualizationName}} settings";
|
|
3180
3203
|
readonly reset: "Reset to default";
|
|
3204
|
+
readonly viewSelectorLabel: "Select view";
|
|
3181
3205
|
};
|
|
3182
3206
|
readonly table: {
|
|
3183
3207
|
readonly settings: {
|
|
@@ -3688,33 +3712,6 @@ declare const defaultTranslations: {
|
|
|
3688
3712
|
readonly zoomIn: "Zoom in";
|
|
3689
3713
|
readonly zoomOut: "Zoom out";
|
|
3690
3714
|
readonly navigation: "Graph navigation";
|
|
3691
|
-
readonly metadataSettings: "Metadata visibility";
|
|
3692
|
-
readonly tagTypeLabels: {
|
|
3693
|
-
readonly person: "People";
|
|
3694
|
-
readonly team: "Teams";
|
|
3695
|
-
readonly company: "Companies";
|
|
3696
|
-
readonly status: "Statuses";
|
|
3697
|
-
readonly alert: "Alerts";
|
|
3698
|
-
readonly balance: "Balances";
|
|
3699
|
-
readonly dot: "Tags";
|
|
3700
|
-
readonly raw: "Tags";
|
|
3701
|
-
};
|
|
3702
|
-
};
|
|
3703
|
-
readonly search: {
|
|
3704
|
-
readonly noResults: "No results";
|
|
3705
|
-
};
|
|
3706
|
-
readonly detailPanel: {
|
|
3707
|
-
readonly details: "Details";
|
|
3708
|
-
readonly moreActions: "More actions";
|
|
3709
|
-
readonly resize: "Resize detail panel";
|
|
3710
|
-
};
|
|
3711
|
-
readonly expander: {
|
|
3712
|
-
readonly collapse: "Collapse {{count}} items";
|
|
3713
|
-
readonly expand: "Expand {{count}} items";
|
|
3714
|
-
readonly expandWithParentSingular: "Expand {{parent}}, {{count}} child";
|
|
3715
|
-
readonly expandWithParentPlural: "Expand {{parent}}, {{count}} children";
|
|
3716
|
-
readonly collapseWithParent: "Collapse {{parent}}";
|
|
3717
|
-
readonly collapseDefault: "Collapse children";
|
|
3718
3715
|
};
|
|
3719
3716
|
};
|
|
3720
3717
|
readonly wizard: {
|
|
@@ -4573,6 +4570,9 @@ export declare type F0FileItemSize = (typeof f0FileItemSizes)[number];
|
|
|
4573
4570
|
|
|
4574
4571
|
export declare const f0FileItemSizes: readonly ["md", "lg"];
|
|
4575
4572
|
|
|
4573
|
+
/** Tag types that can be rendered in a node's metadata row. */
|
|
4574
|
+
declare type F0GraphNodeTagType = TagVariant["type"];
|
|
4575
|
+
|
|
4576
4576
|
declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
|
|
4577
4577
|
icon: IconType;
|
|
4578
4578
|
size?: "lg" | "md" | "sm" | "xs";
|
|
@@ -4739,7 +4739,7 @@ export declare type F0SearchInputProps = {
|
|
|
4739
4739
|
* @experimental This is an experimental component, use it at your own risk.
|
|
4740
4740
|
*/
|
|
4741
4741
|
export declare const F0SegmentedControl: {
|
|
4742
|
-
({ items, value, onChange, disabled, fullWidth, ariaLabel, ariaLabelledBy, }: F0SegmentedControlProps_2): JSX_2.Element;
|
|
4742
|
+
({ items, value, onChange, disabled, fullWidth, hideLabels, ariaLabel, ariaLabelledBy, }: F0SegmentedControlProps_2): JSX_2.Element;
|
|
4743
4743
|
displayName: string;
|
|
4744
4744
|
};
|
|
4745
4745
|
|
|
@@ -4771,6 +4771,12 @@ export declare interface F0SegmentedControlProps {
|
|
|
4771
4771
|
* @default false
|
|
4772
4772
|
*/
|
|
4773
4773
|
fullWidth?: boolean;
|
|
4774
|
+
/**
|
|
4775
|
+
* Render segments icon-only, keeping the label accessible to screen readers.
|
|
4776
|
+
* Segments without an icon still show their label. Useful in tight headers.
|
|
4777
|
+
* @default false
|
|
4778
|
+
*/
|
|
4779
|
+
hideLabels?: boolean;
|
|
4774
4780
|
/**
|
|
4775
4781
|
* Accessible name for the segmented control. The underlying ToggleGroup
|
|
4776
4782
|
* (single mode) renders as a `radiogroup`, which requires a name.
|
|
@@ -5413,6 +5419,97 @@ export declare const granularityDefinitions: {
|
|
|
5413
5419
|
|
|
5414
5420
|
export declare type GranularityDefinitionSimple = Pick<GranularityDefinition, "toRangeString" | "toString">;
|
|
5415
5421
|
|
|
5422
|
+
declare type GraphCollectionProps<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = CollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, GraphVisualizationOptions<Record, Filters, Sortings>>;
|
|
5423
|
+
|
|
5424
|
+
/**
|
|
5425
|
+
* Configuration for the "graph" visualization (org-chart style).
|
|
5426
|
+
*
|
|
5427
|
+
* The hierarchy is fetched on demand from the same `dataAdapter` of the source:
|
|
5428
|
+
* `childrenFilters(parentId)` returns the filter that the adapter understands as
|
|
5429
|
+
* "the direct children of parentId" (`null` = the roots). Children are loaded
|
|
5430
|
+
* when a node is expanded.
|
|
5431
|
+
*/
|
|
5432
|
+
declare type GraphVisualizationOptions<R extends RecordType, Filters extends FiltersDefinition, _Sortings extends SortingsDefinition> = {
|
|
5433
|
+
/** Primary line of text for a node. */
|
|
5434
|
+
title: (record: R) => string;
|
|
5435
|
+
/** Secondary line of text for a node. */
|
|
5436
|
+
subtitle?: (record: R) => string;
|
|
5437
|
+
/** Avatar shown on the leading side of the node pill. */
|
|
5438
|
+
avatar?: (record: R) => AvatarVariant;
|
|
5439
|
+
/** Tags rendered in the node metadata row. */
|
|
5440
|
+
tags?: (record: R) => TagVariant[];
|
|
5441
|
+
/**
|
|
5442
|
+
* Tag types present on the nodes. When provided, the controls bar gains a
|
|
5443
|
+
* toggle to show/hide each metadata type (like configuring table columns).
|
|
5444
|
+
*/
|
|
5445
|
+
nodeTagTypes?: ReadonlyArray<F0GraphNodeTagType>;
|
|
5446
|
+
/** Friendly labels per tag type, shown in the metadata visibility toggle. */
|
|
5447
|
+
nodeTagTypeLabels?: Partial<Record<F0GraphNodeTagType, string>>;
|
|
5448
|
+
/** Tag types visible by default. Defaults to all of `nodeTagTypes`. */
|
|
5449
|
+
defaultVisibleTagTypes?: ReadonlyArray<F0GraphNodeTagType>;
|
|
5450
|
+
/** Tag types that are always visible and cannot be hidden in the settings. */
|
|
5451
|
+
pinnedTagTypes?: ReadonlyArray<F0GraphNodeTagType>;
|
|
5452
|
+
/**
|
|
5453
|
+
* Floating toolbar shown above a node while it is selected. Provide the
|
|
5454
|
+
* action buttons (e.g. `<F0Button size="sm" … />`) for the given record.
|
|
5455
|
+
*/
|
|
5456
|
+
nodeActions?: (record: R) => ReactNode;
|
|
5457
|
+
/** Resolves a stable node id from a record. Defaults to `String(record.id)`. */
|
|
5458
|
+
getNodeId?: (record: R) => string;
|
|
5459
|
+
/** Number of children a node has. A node is expandable when this is `> 0`. */
|
|
5460
|
+
getChildrenCount: (record: R) => number;
|
|
5461
|
+
/**
|
|
5462
|
+
* Returns the filters that, applied to the source `dataAdapter`, fetch the
|
|
5463
|
+
* direct children of `parentId`. `parentId === null` must return the roots.
|
|
5464
|
+
*/
|
|
5465
|
+
childrenFilters: (parentId: string | null) => Partial<FiltersState<Filters>>;
|
|
5466
|
+
/**
|
|
5467
|
+
* How many levels to load and expand on the initial render.
|
|
5468
|
+
* - `0`: show only the roots; every level below loads on click.
|
|
5469
|
+
* - `1` (default): also show the roots' direct children.
|
|
5470
|
+
* - `2`: also pre-load the grandchildren for a fuller first view.
|
|
5471
|
+
*/
|
|
5472
|
+
defaultExpandDepth?: number;
|
|
5473
|
+
/**
|
|
5474
|
+
* Id of a node to reveal: loads its ancestor path, expands the branch and
|
|
5475
|
+
* centers/highlights it. Driven by the shared Data Collection search — set it
|
|
5476
|
+
* from `searchPreview.onSelect`.
|
|
5477
|
+
*/
|
|
5478
|
+
revealNodeId?: string;
|
|
5479
|
+
/**
|
|
5480
|
+
* Resolves the ancestor path (root → … → matched node) for a node so it can
|
|
5481
|
+
* be revealed, returning the records in root-first order. Required for
|
|
5482
|
+
* revealing nodes in branches that have not been expanded yet.
|
|
5483
|
+
*/
|
|
5484
|
+
loadNodePath?: (nodeId: string) => Promise<R[]>;
|
|
5485
|
+
/** Optional parent accessor used when linking the revealed ancestor path. */
|
|
5486
|
+
getParentId?: (record: R) => string | null;
|
|
5487
|
+
/**
|
|
5488
|
+
* Id of the node representing the current user. When set, a "Find me" button
|
|
5489
|
+
* is shown in the controls that centers the viewport on that node.
|
|
5490
|
+
*/
|
|
5491
|
+
currentUserNodeId?: string;
|
|
5492
|
+
/** Initial zoom preset passed through to F0Graph. */
|
|
5493
|
+
zoomPreset?: ZoomPreset;
|
|
5494
|
+
/**
|
|
5495
|
+
* Smallest zoom the user can pan to (the zoom-out limit), passed through to
|
|
5496
|
+
* F0Graph. Defaults to F0Graph's own default. Raise it (e.g. `0.3`) to keep
|
|
5497
|
+
* the tree readable and avoid the most zoomed-out "dot" level.
|
|
5498
|
+
*/
|
|
5499
|
+
minZoom?: number;
|
|
5500
|
+
/** Largest zoom the user can pan to (the zoom-in limit), passed through to F0Graph. */
|
|
5501
|
+
maxZoom?: number;
|
|
5502
|
+
/** Whether to render the zoom/fit controls. Defaults to `true`. */
|
|
5503
|
+
showControls?: boolean;
|
|
5504
|
+
};
|
|
5505
|
+
|
|
5506
|
+
declare type GraphVisualizationSettings = {
|
|
5507
|
+
/** Metadata order (tag-type ids), matching the table column settings shape. */
|
|
5508
|
+
order?: string[];
|
|
5509
|
+
/** Hidden metadata (tag-type ids). */
|
|
5510
|
+
hidden?: string[];
|
|
5511
|
+
};
|
|
5512
|
+
|
|
5416
5513
|
/**
|
|
5417
5514
|
* Symbol used to identify the groupId in the data
|
|
5418
5515
|
*/
|
|
@@ -7641,6 +7738,26 @@ declare type SearchOptions = {
|
|
|
7641
7738
|
debounceTime?: number;
|
|
7642
7739
|
};
|
|
7643
7740
|
|
|
7741
|
+
/**
|
|
7742
|
+
* Optional rich search preview shown in the shared Data Collection search.
|
|
7743
|
+
* When provided, typing in the header search renders a results dropdown with
|
|
7744
|
+
* avatar + title + subtitle, consistent across every visualization. Selecting a
|
|
7745
|
+
* result calls `onSelect` (e.g. the graph view reveals/centers the node).
|
|
7746
|
+
*/
|
|
7747
|
+
export declare type SearchPreview<R extends RecordType> = {
|
|
7748
|
+
search: (query: string) => Promise<R[]>;
|
|
7749
|
+
getId: (record: R) => string;
|
|
7750
|
+
render: (record: R) => SearchPreviewResultData;
|
|
7751
|
+
onSelect: (record: R) => void;
|
|
7752
|
+
};
|
|
7753
|
+
|
|
7754
|
+
/** Data shown for a single row of the search preview dropdown. */
|
|
7755
|
+
export declare type SearchPreviewResultData = {
|
|
7756
|
+
avatar?: AvatarVariant;
|
|
7757
|
+
title: string;
|
|
7758
|
+
subtitle?: string;
|
|
7759
|
+
};
|
|
7760
|
+
|
|
7644
7761
|
declare interface SecondaryAction extends PrimaryActionButton {
|
|
7645
7762
|
variant?: "outline" | "critical" | "outlinePromote" | "promote";
|
|
7646
7763
|
}
|
|
@@ -8989,27 +9106,32 @@ declare type Visualization<R extends RecordType, Filters extends FiltersDefiniti
|
|
|
8989
9106
|
type: "card";
|
|
8990
9107
|
/** Configuration options for card visualization */
|
|
8991
9108
|
options: CardVisualizationOptions<R, Filters, Sortings>;
|
|
8992
|
-
} & VisualizationFilterOverrides<Filters>) | ({
|
|
9109
|
+
} & VisualizationFilterOverrides<Filters, Sortings>) | ({
|
|
8993
9110
|
/** Kanban-based visualization type */
|
|
8994
9111
|
type: "kanban";
|
|
8995
9112
|
/** Configuration options for kanban visualization */
|
|
8996
9113
|
options: KanbanVisualizationOptions<R, Filters, Sortings>;
|
|
8997
|
-
} & VisualizationFilterOverrides<Filters>) | ({
|
|
9114
|
+
} & VisualizationFilterOverrides<Filters, Sortings>) | ({
|
|
8998
9115
|
/** Table-based visualization type */
|
|
8999
9116
|
type: "table";
|
|
9000
9117
|
/** Configuration options for table visualization */
|
|
9001
9118
|
options: TableVisualizationOptions<R, Filters, Sortings, Summaries>;
|
|
9002
|
-
} & VisualizationFilterOverrides<Filters>) | ({
|
|
9119
|
+
} & VisualizationFilterOverrides<Filters, Sortings>) | ({
|
|
9003
9120
|
/** Editable table-based visualization type */
|
|
9004
9121
|
type: "editableTable";
|
|
9005
9122
|
/** Configuration options for editable table visualization */
|
|
9006
9123
|
options: EditableTableVisualizationOptions<R, Filters, Sortings, Summaries>;
|
|
9007
|
-
} & VisualizationFilterOverrides<Filters>) | ({
|
|
9124
|
+
} & VisualizationFilterOverrides<Filters, Sortings>) | ({
|
|
9008
9125
|
/** List-based visualization type */
|
|
9009
9126
|
type: "list";
|
|
9010
9127
|
/** Configuration options for list visualization */
|
|
9011
9128
|
options: ListVisualizationOptions<R, Filters, Sortings>;
|
|
9012
|
-
} & VisualizationFilterOverrides<Filters>) | ({
|
|
9129
|
+
} & VisualizationFilterOverrides<Filters, Sortings>) | ({
|
|
9130
|
+
/** Graph/org-chart-based visualization type */
|
|
9131
|
+
type: "graph";
|
|
9132
|
+
/** Configuration options for graph visualization */
|
|
9133
|
+
options: GraphVisualizationOptions<R, Filters, Sortings>;
|
|
9134
|
+
} & VisualizationFilterOverrides<Filters, Sortings>) | ({
|
|
9013
9135
|
/** Human-readable label for the visualization */
|
|
9014
9136
|
label: string;
|
|
9015
9137
|
/** Icon to represent the visualization in UI */
|
|
@@ -9023,7 +9145,7 @@ declare type Visualization<R extends RecordType, Filters extends FiltersDefiniti
|
|
|
9023
9145
|
onLoadError: OnLoadErrorCallback;
|
|
9024
9146
|
source: DataCollectionSource<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>;
|
|
9025
9147
|
}) => JSX.Element;
|
|
9026
|
-
} & VisualizationFilterOverrides<Filters>);
|
|
9148
|
+
} & VisualizationFilterOverrides<Filters, Sortings>);
|
|
9027
9149
|
|
|
9028
9150
|
/**
|
|
9029
9151
|
* Optional per-visualization filter and preset overrides.
|
|
@@ -9032,7 +9154,7 @@ declare type Visualization<R extends RecordType, Filters extends FiltersDefiniti
|
|
|
9032
9154
|
*
|
|
9033
9155
|
* @template Filters - The filters type extending FiltersDefinition
|
|
9034
9156
|
*/
|
|
9035
|
-
export declare type VisualizationFilterOverrides<Filters extends FiltersDefinition> = {
|
|
9157
|
+
export declare type VisualizationFilterOverrides<Filters extends FiltersDefinition, Sortings extends SortingsDefinition = SortingsDefinition> = {
|
|
9036
9158
|
/** Override which filters are available when this visualization is active.
|
|
9037
9159
|
* If not provided, the global source filters are used.
|
|
9038
9160
|
* Can be a subset of the source filters definition. */
|
|
@@ -9040,6 +9162,10 @@ export declare type VisualizationFilterOverrides<Filters extends FiltersDefiniti
|
|
|
9040
9162
|
/** Preset configuration used only when this visualization is active.
|
|
9041
9163
|
* These replace the global source presets for this visualization. */
|
|
9042
9164
|
presets?: PresetsDefinition<Filters>;
|
|
9165
|
+
/** Override which sortings are available when this visualization is active.
|
|
9166
|
+
* If not provided, the global source sortings are used. Pass `{}` to hide the
|
|
9167
|
+
* sort selector for views that don't support sorting (e.g. the org chart). */
|
|
9168
|
+
sortings?: Partial<Sortings>;
|
|
9043
9169
|
};
|
|
9044
9170
|
|
|
9045
9171
|
/**
|
|
@@ -9296,6 +9422,26 @@ declare interface WithTooltipDescription {
|
|
|
9296
9422
|
description?: string;
|
|
9297
9423
|
}
|
|
9298
9424
|
|
|
9425
|
+
declare type ZoomPreset = keyof typeof zoomPresets;
|
|
9426
|
+
|
|
9427
|
+
declare const zoomPresets: {
|
|
9428
|
+
readonly default: {
|
|
9429
|
+
readonly detail: 0.56;
|
|
9430
|
+
readonly compact: 0.3;
|
|
9431
|
+
readonly dot: 0.18;
|
|
9432
|
+
};
|
|
9433
|
+
readonly dense: {
|
|
9434
|
+
readonly detail: 0.5;
|
|
9435
|
+
readonly compact: 0.2;
|
|
9436
|
+
readonly dot: 0.08;
|
|
9437
|
+
};
|
|
9438
|
+
readonly sparse: {
|
|
9439
|
+
readonly detail: 0.85;
|
|
9440
|
+
readonly compact: 0.45;
|
|
9441
|
+
readonly dot: 0.15;
|
|
9442
|
+
};
|
|
9443
|
+
};
|
|
9444
|
+
|
|
9299
9445
|
export { }
|
|
9300
9446
|
|
|
9301
9447
|
|
package/dist/experimental.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h as ga, B as pa, i as ba, j as xa, k as Dt, l as Be, m as Te, n as va, o as b, p as J, q as ye, u as oe, T as ya, r as wa, s as Na, R as Ca, t as Ia, v as ce, w as ka, x as Nt, y as ut, z as Ve, A as Le, E as Sa, G as Fa, H as U, J as Aa, K as La, L as xe, M as mn, N as Oa, O as Pa, Q as H, S as hn, U as z, V as ke, W as Ea, X as _a, Y as Da, Z as Ta, _ as za, $ as Oe, a0 as gn, a1 as Ra, a2 as we, a3 as Ue, a4 as Ba, e as pn, a5 as Ae, a6 as $a, a7 as bn, a8 as ie, a9 as X, aa as xn, ab as vn, ac as Ma, ad as yn, ae as pe, af as ae, ag as Wa, ah as ja, ai as Va, aj as Ua, ak as ve, al as Ye, am as Ha, an as Ga, ao as Ka, ap as qa, aq as Je, ar as wn, as as Ya, at as Ja, au as Za, av as He, aw as Xa, ax as Nn, ay as Qa, az as er, aA as tr, aB as nr, aC as ar, aD as rr, aE as ir, aF as lr, aG as ft, aH as Cn, aI as mt, aJ as In, aK as sr, aL as or, aM as cr, aN as dr, aO as ur, aP as Ze, aQ as Xe, aR as ht, aS as kn, aT as fr, aU as Ct, aV as mr, aW as hr, aX as gr, aY as Re, aZ as pr, a_ as br, a$ as $e, b0 as Tt, b1 as gt, b2 as xr, b3 as vr, a as yr, b as wr, b4 as Sn, b5 as Nr, g as Cr, F as Ir, b6 as kr, b7 as Fn, b8 as Sr, b9 as An, ba as Ln, bb as Fr, bc as Ar, bd as Lr, be as Or, bf as Pr, bg as Er, bh as _r, bi as Dr, bj as Tr, bk as On, bl as zr, bm as Rr, bn as Br, bo as $r, bp as ge, bq as It, br as kt, bs as St, bt as Pn, bu as Ft, bv as En, bw as _n, bx as Mr, by as Wr, bz as jr, bA as Vr, bB as Ur, bC as Hr, bD as Gr, bE as Kr, bF as zt, bG as qr, bH as Yr, bI as Rt, bJ as Bt, bK as $t, bL as Jr, bM as Zr, bN as Xr, bO as Qr, bP as Dn, bQ as ei, bR as ti } from "./F0CanvasPanel-
|
|
2
|
-
import { c1 as Kc, c0 as qc, cd as Yc, bZ as Jc, b_ as Zc, bS as Xc, cg as Qc, bT as ed, bU as td, ch as nd, b$ as ad, c9 as rd, ca as id, ce as ld, bV as sd, c3 as od, c2 as cd, bW as dd, bX as ud, cb as fd, ci as md, cc as hd, cf as gd, c8 as pd, c5 as bd, c7 as xd, c4 as vd, bY as yd, c6 as wd } from "./F0CanvasPanel-
|
|
1
|
+
import { h as ga, B as pa, i as ba, j as xa, k as Dt, l as Be, m as Te, n as va, o as b, p as J, q as ye, u as oe, T as ya, r as wa, s as Na, R as Ca, t as Ia, v as ce, w as ka, x as Nt, y as ut, z as Ve, A as Le, E as Sa, G as Fa, H as U, J as Aa, K as La, L as xe, M as mn, N as Oa, O as Pa, Q as H, S as hn, U as z, V as ke, W as Ea, X as _a, Y as Da, Z as Ta, _ as za, $ as Oe, a0 as gn, a1 as Ra, a2 as we, a3 as Ue, a4 as Ba, e as pn, a5 as Ae, a6 as $a, a7 as bn, a8 as ie, a9 as X, aa as xn, ab as vn, ac as Ma, ad as yn, ae as pe, af as ae, ag as Wa, ah as ja, ai as Va, aj as Ua, ak as ve, al as Ye, am as Ha, an as Ga, ao as Ka, ap as qa, aq as Je, ar as wn, as as Ya, at as Ja, au as Za, av as He, aw as Xa, ax as Nn, ay as Qa, az as er, aA as tr, aB as nr, aC as ar, aD as rr, aE as ir, aF as lr, aG as ft, aH as Cn, aI as mt, aJ as In, aK as sr, aL as or, aM as cr, aN as dr, aO as ur, aP as Ze, aQ as Xe, aR as ht, aS as kn, aT as fr, aU as Ct, aV as mr, aW as hr, aX as gr, aY as Re, aZ as pr, a_ as br, a$ as $e, b0 as Tt, b1 as gt, b2 as xr, b3 as vr, a as yr, b as wr, b4 as Sn, b5 as Nr, g as Cr, F as Ir, b6 as kr, b7 as Fn, b8 as Sr, b9 as An, ba as Ln, bb as Fr, bc as Ar, bd as Lr, be as Or, bf as Pr, bg as Er, bh as _r, bi as Dr, bj as Tr, bk as On, bl as zr, bm as Rr, bn as Br, bo as $r, bp as ge, bq as It, br as kt, bs as St, bt as Pn, bu as Ft, bv as En, bw as _n, bx as Mr, by as Wr, bz as jr, bA as Vr, bB as Ur, bC as Hr, bD as Gr, bE as Kr, bF as zt, bG as qr, bH as Yr, bI as Rt, bJ as Bt, bK as $t, bL as Jr, bM as Zr, bN as Xr, bO as Qr, bP as Dn, bQ as ei, bR as ti } from "./F0CanvasPanel-DfmThuOg.js";
|
|
2
|
+
import { c1 as Kc, c0 as qc, cd as Yc, bZ as Jc, b_ as Zc, bS as Xc, cg as Qc, bT as ed, bU as td, ch as nd, b$ as ad, c9 as rd, ca as id, ce as ld, bV as sd, c3 as od, c2 as cd, bW as dd, bX as ud, cb as fd, ci as md, cc as hd, cf as gd, c8 as pd, c5 as bd, c7 as xd, c4 as vd, bY as yd, c6 as wd } from "./F0CanvasPanel-DfmThuOg.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as Z } from "react/jsx-runtime";
|
|
4
4
|
import ue, { forwardRef as G, useRef as j, useTransition as ni, useState as D, useLayoutEffect as Tn, useId as pt, useContext as Pe, createContext as Qe, useEffect as W, useCallback as ne, useMemo as q, Fragment as ai, isValidElement as ri, cloneElement as zn, Children as Rn } from "react";
|
|
5
|
-
import { C as ii, P as li, a as Bn, M as si, p as oi, b as ci, R as Mt, c as $n, u as di, d as ui, e as fi, f as mi, g as hi, h as Mn, S as gi, A as pi, B as bi, L as xi, i as vi, V as yi, j as wi, k as Ni, l as Ci, O as Ii } from "./useDataCollectionSource-
|
|
6
|
-
import { r as Cd, s as Id, o as kd, H as Sd, t as Fd, z as Ad, a8 as Ld, G as Od, q as Pd, aa as Ed, a9 as _d, Q as Dd, ad as Td, F as zd, Y as Rd, U as Bd, J as $d, af as Md, K as Wd, Z as jd, _ as Vd, v as Ud, ab as Hd, ac as Gd, N as Kd, $ as qd, a5 as Yd, a7 as Jd, w as Zd, y as Xd, D as Qd, W as eu, ae as tu, X as nu, T as au, ag as ru, x as iu, E as lu, m as su, n as ou, a1 as cu, a2 as du, a6 as uu, I as fu, a3 as mu, a0 as hu, a4 as gu } from "./useDataCollectionSource-
|
|
5
|
+
import { C as ii, P as li, a as Bn, M as si, p as oi, b as ci, R as Mt, c as $n, u as di, d as ui, e as fi, f as mi, g as hi, h as Mn, S as gi, A as pi, B as bi, L as xi, i as vi, V as yi, j as wi, k as Ni, l as Ci, O as Ii } from "./useDataCollectionSource-MryiHA0V.js";
|
|
6
|
+
import { r as Cd, s as Id, o as kd, H as Sd, t as Fd, z as Ad, a8 as Ld, G as Od, q as Pd, aa as Ed, a9 as _d, Q as Dd, ad as Td, F as zd, Y as Rd, U as Bd, J as $d, af as Md, K as Wd, Z as jd, _ as Vd, v as Ud, ab as Hd, ac as Gd, N as Kd, $ as qd, a5 as Yd, a7 as Jd, w as Zd, y as Xd, D as Qd, W as eu, ae as tu, X as nu, T as au, ag as ru, x as iu, E as lu, m as su, n as ou, a1 as cu, a2 as du, a6 as uu, I as fu, a3 as mu, a0 as hu, a4 as gu } from "./useDataCollectionSource-MryiHA0V.js";
|
|
7
7
|
const ki = ga("Search", [
|
|
8
8
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
9
9
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|