@factorialco/f0-react 3.6.0 → 3.7.1
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-DvbRRItR.js → F0CanvasPanel-CiR0Puvp.js} +15992 -15811
- package/dist/ai.d.ts +7 -32
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +177 -40
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +156 -33
- package/dist/f0.js +6 -6
- package/dist/i18n-provider-defaults.d.ts +7 -32
- package/dist/i18n-provider-defaults.js +9 -34
- package/dist/styles.css +1 -1
- package/dist/{useChatHistory-CLdeCKIl.js → useChatHistory-DYxggHJX.js} +1644 -1784
- package/dist/{useDataCollectionSource-DBWuY_n4.js → useDataCollectionSource-CL96mQHh.js} +28467 -19651
- package/dist/useDataCollectionSource.css +1 -1
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -1959,16 +1959,18 @@ export declare const defaultTranslations: {
|
|
|
1959
1959
|
readonly cancel: "Cancel";
|
|
1960
1960
|
};
|
|
1961
1961
|
readonly visualizations: {
|
|
1962
|
-
readonly table: "Table
|
|
1963
|
-
readonly editableTable: "Editable table
|
|
1964
|
-
readonly card: "Card
|
|
1965
|
-
readonly list: "List
|
|
1966
|
-
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";
|
|
1967
1968
|
readonly pagination: {
|
|
1968
1969
|
readonly of: "of";
|
|
1969
1970
|
};
|
|
1970
1971
|
readonly settings: "{{visualizationName}} settings";
|
|
1971
1972
|
readonly reset: "Reset to default";
|
|
1973
|
+
readonly viewSelectorLabel: "Select view";
|
|
1972
1974
|
};
|
|
1973
1975
|
readonly table: {
|
|
1974
1976
|
readonly settings: {
|
|
@@ -2479,33 +2481,6 @@ export declare const defaultTranslations: {
|
|
|
2479
2481
|
readonly zoomIn: "Zoom in";
|
|
2480
2482
|
readonly zoomOut: "Zoom out";
|
|
2481
2483
|
readonly navigation: "Graph navigation";
|
|
2482
|
-
readonly metadataSettings: "Metadata visibility";
|
|
2483
|
-
readonly tagTypeLabels: {
|
|
2484
|
-
readonly person: "People";
|
|
2485
|
-
readonly team: "Teams";
|
|
2486
|
-
readonly company: "Companies";
|
|
2487
|
-
readonly status: "Statuses";
|
|
2488
|
-
readonly alert: "Alerts";
|
|
2489
|
-
readonly balance: "Balances";
|
|
2490
|
-
readonly dot: "Tags";
|
|
2491
|
-
readonly raw: "Tags";
|
|
2492
|
-
};
|
|
2493
|
-
};
|
|
2494
|
-
readonly search: {
|
|
2495
|
-
readonly noResults: "No results";
|
|
2496
|
-
};
|
|
2497
|
-
readonly detailPanel: {
|
|
2498
|
-
readonly details: "Details";
|
|
2499
|
-
readonly moreActions: "More actions";
|
|
2500
|
-
readonly resize: "Resize detail panel";
|
|
2501
|
-
};
|
|
2502
|
-
readonly expander: {
|
|
2503
|
-
readonly collapse: "Collapse {{count}} items";
|
|
2504
|
-
readonly expand: "Expand {{count}} items";
|
|
2505
|
-
readonly expandWithParentSingular: "Expand {{parent}}, {{count}} child";
|
|
2506
|
-
readonly expandWithParentPlural: "Expand {{parent}}, {{count}} children";
|
|
2507
|
-
readonly collapseWithParent: "Collapse {{parent}}";
|
|
2508
|
-
readonly collapseDefault: "Collapse children";
|
|
2509
2484
|
};
|
|
2510
2485
|
};
|
|
2511
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-CiR0Puvp.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-DYxggHJX.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
|
/**
|
|
@@ -3177,16 +3190,18 @@ declare const defaultTranslations: {
|
|
|
3177
3190
|
readonly cancel: "Cancel";
|
|
3178
3191
|
};
|
|
3179
3192
|
readonly visualizations: {
|
|
3180
|
-
readonly table: "Table
|
|
3181
|
-
readonly editableTable: "Editable table
|
|
3182
|
-
readonly card: "Card
|
|
3183
|
-
readonly list: "List
|
|
3184
|
-
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";
|
|
3185
3199
|
readonly pagination: {
|
|
3186
3200
|
readonly of: "of";
|
|
3187
3201
|
};
|
|
3188
3202
|
readonly settings: "{{visualizationName}} settings";
|
|
3189
3203
|
readonly reset: "Reset to default";
|
|
3204
|
+
readonly viewSelectorLabel: "Select view";
|
|
3190
3205
|
};
|
|
3191
3206
|
readonly table: {
|
|
3192
3207
|
readonly settings: {
|
|
@@ -3697,33 +3712,6 @@ declare const defaultTranslations: {
|
|
|
3697
3712
|
readonly zoomIn: "Zoom in";
|
|
3698
3713
|
readonly zoomOut: "Zoom out";
|
|
3699
3714
|
readonly navigation: "Graph navigation";
|
|
3700
|
-
readonly metadataSettings: "Metadata visibility";
|
|
3701
|
-
readonly tagTypeLabels: {
|
|
3702
|
-
readonly person: "People";
|
|
3703
|
-
readonly team: "Teams";
|
|
3704
|
-
readonly company: "Companies";
|
|
3705
|
-
readonly status: "Statuses";
|
|
3706
|
-
readonly alert: "Alerts";
|
|
3707
|
-
readonly balance: "Balances";
|
|
3708
|
-
readonly dot: "Tags";
|
|
3709
|
-
readonly raw: "Tags";
|
|
3710
|
-
};
|
|
3711
|
-
};
|
|
3712
|
-
readonly search: {
|
|
3713
|
-
readonly noResults: "No results";
|
|
3714
|
-
};
|
|
3715
|
-
readonly detailPanel: {
|
|
3716
|
-
readonly details: "Details";
|
|
3717
|
-
readonly moreActions: "More actions";
|
|
3718
|
-
readonly resize: "Resize detail panel";
|
|
3719
|
-
};
|
|
3720
|
-
readonly expander: {
|
|
3721
|
-
readonly collapse: "Collapse {{count}} items";
|
|
3722
|
-
readonly expand: "Expand {{count}} items";
|
|
3723
|
-
readonly expandWithParentSingular: "Expand {{parent}}, {{count}} child";
|
|
3724
|
-
readonly expandWithParentPlural: "Expand {{parent}}, {{count}} children";
|
|
3725
|
-
readonly collapseWithParent: "Collapse {{parent}}";
|
|
3726
|
-
readonly collapseDefault: "Collapse children";
|
|
3727
3715
|
};
|
|
3728
3716
|
};
|
|
3729
3717
|
readonly wizard: {
|
|
@@ -4582,6 +4570,9 @@ export declare type F0FileItemSize = (typeof f0FileItemSizes)[number];
|
|
|
4582
4570
|
|
|
4583
4571
|
export declare const f0FileItemSizes: readonly ["md", "lg"];
|
|
4584
4572
|
|
|
4573
|
+
/** Tag types that can be rendered in a node's metadata row. */
|
|
4574
|
+
declare type F0GraphNodeTagType = TagVariant["type"];
|
|
4575
|
+
|
|
4585
4576
|
declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
|
|
4586
4577
|
icon: IconType;
|
|
4587
4578
|
size?: "lg" | "md" | "sm" | "xs";
|
|
@@ -4748,7 +4739,7 @@ export declare type F0SearchInputProps = {
|
|
|
4748
4739
|
* @experimental This is an experimental component, use it at your own risk.
|
|
4749
4740
|
*/
|
|
4750
4741
|
export declare const F0SegmentedControl: {
|
|
4751
|
-
({ 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;
|
|
4752
4743
|
displayName: string;
|
|
4753
4744
|
};
|
|
4754
4745
|
|
|
@@ -4780,6 +4771,12 @@ export declare interface F0SegmentedControlProps {
|
|
|
4780
4771
|
* @default false
|
|
4781
4772
|
*/
|
|
4782
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;
|
|
4783
4780
|
/**
|
|
4784
4781
|
* Accessible name for the segmented control. The underlying ToggleGroup
|
|
4785
4782
|
* (single mode) renders as a `radiogroup`, which requires a name.
|
|
@@ -5422,6 +5419,97 @@ export declare const granularityDefinitions: {
|
|
|
5422
5419
|
|
|
5423
5420
|
export declare type GranularityDefinitionSimple = Pick<GranularityDefinition, "toRangeString" | "toString">;
|
|
5424
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
|
+
|
|
5425
5513
|
/**
|
|
5426
5514
|
* Symbol used to identify the groupId in the data
|
|
5427
5515
|
*/
|
|
@@ -7650,6 +7738,26 @@ declare type SearchOptions = {
|
|
|
7650
7738
|
debounceTime?: number;
|
|
7651
7739
|
};
|
|
7652
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
|
+
|
|
7653
7761
|
declare interface SecondaryAction extends PrimaryActionButton {
|
|
7654
7762
|
variant?: "outline" | "critical" | "outlinePromote" | "promote";
|
|
7655
7763
|
}
|
|
@@ -8998,27 +9106,32 @@ declare type Visualization<R extends RecordType, Filters extends FiltersDefiniti
|
|
|
8998
9106
|
type: "card";
|
|
8999
9107
|
/** Configuration options for card visualization */
|
|
9000
9108
|
options: CardVisualizationOptions<R, Filters, Sortings>;
|
|
9001
|
-
} & VisualizationFilterOverrides<Filters>) | ({
|
|
9109
|
+
} & VisualizationFilterOverrides<Filters, Sortings>) | ({
|
|
9002
9110
|
/** Kanban-based visualization type */
|
|
9003
9111
|
type: "kanban";
|
|
9004
9112
|
/** Configuration options for kanban visualization */
|
|
9005
9113
|
options: KanbanVisualizationOptions<R, Filters, Sortings>;
|
|
9006
|
-
} & VisualizationFilterOverrides<Filters>) | ({
|
|
9114
|
+
} & VisualizationFilterOverrides<Filters, Sortings>) | ({
|
|
9007
9115
|
/** Table-based visualization type */
|
|
9008
9116
|
type: "table";
|
|
9009
9117
|
/** Configuration options for table visualization */
|
|
9010
9118
|
options: TableVisualizationOptions<R, Filters, Sortings, Summaries>;
|
|
9011
|
-
} & VisualizationFilterOverrides<Filters>) | ({
|
|
9119
|
+
} & VisualizationFilterOverrides<Filters, Sortings>) | ({
|
|
9012
9120
|
/** Editable table-based visualization type */
|
|
9013
9121
|
type: "editableTable";
|
|
9014
9122
|
/** Configuration options for editable table visualization */
|
|
9015
9123
|
options: EditableTableVisualizationOptions<R, Filters, Sortings, Summaries>;
|
|
9016
|
-
} & VisualizationFilterOverrides<Filters>) | ({
|
|
9124
|
+
} & VisualizationFilterOverrides<Filters, Sortings>) | ({
|
|
9017
9125
|
/** List-based visualization type */
|
|
9018
9126
|
type: "list";
|
|
9019
9127
|
/** Configuration options for list visualization */
|
|
9020
9128
|
options: ListVisualizationOptions<R, Filters, Sortings>;
|
|
9021
|
-
} & 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>) | ({
|
|
9022
9135
|
/** Human-readable label for the visualization */
|
|
9023
9136
|
label: string;
|
|
9024
9137
|
/** Icon to represent the visualization in UI */
|
|
@@ -9032,7 +9145,7 @@ declare type Visualization<R extends RecordType, Filters extends FiltersDefiniti
|
|
|
9032
9145
|
onLoadError: OnLoadErrorCallback;
|
|
9033
9146
|
source: DataCollectionSource<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>;
|
|
9034
9147
|
}) => JSX.Element;
|
|
9035
|
-
} & VisualizationFilterOverrides<Filters>);
|
|
9148
|
+
} & VisualizationFilterOverrides<Filters, Sortings>);
|
|
9036
9149
|
|
|
9037
9150
|
/**
|
|
9038
9151
|
* Optional per-visualization filter and preset overrides.
|
|
@@ -9041,7 +9154,7 @@ declare type Visualization<R extends RecordType, Filters extends FiltersDefiniti
|
|
|
9041
9154
|
*
|
|
9042
9155
|
* @template Filters - The filters type extending FiltersDefinition
|
|
9043
9156
|
*/
|
|
9044
|
-
export declare type VisualizationFilterOverrides<Filters extends FiltersDefinition> = {
|
|
9157
|
+
export declare type VisualizationFilterOverrides<Filters extends FiltersDefinition, Sortings extends SortingsDefinition = SortingsDefinition> = {
|
|
9045
9158
|
/** Override which filters are available when this visualization is active.
|
|
9046
9159
|
* If not provided, the global source filters are used.
|
|
9047
9160
|
* Can be a subset of the source filters definition. */
|
|
@@ -9049,6 +9162,10 @@ export declare type VisualizationFilterOverrides<Filters extends FiltersDefiniti
|
|
|
9049
9162
|
/** Preset configuration used only when this visualization is active.
|
|
9050
9163
|
* These replace the global source presets for this visualization. */
|
|
9051
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>;
|
|
9052
9169
|
};
|
|
9053
9170
|
|
|
9054
9171
|
/**
|
|
@@ -9305,6 +9422,26 @@ declare interface WithTooltipDescription {
|
|
|
9305
9422
|
description?: string;
|
|
9306
9423
|
}
|
|
9307
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
|
+
|
|
9308
9445
|
export { }
|
|
9309
9446
|
|
|
9310
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-CiR0Puvp.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-CiR0Puvp.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-CL96mQHh.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-CL96mQHh.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" }]
|