@factorialco/f0-react 6.88.0 → 6.88.2
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/{ChatDocxThumbnail-DzNPNFya.js → ChatDocxThumbnail-DhzoVI1K.js} +11 -8
- package/dist/{ChatPdfThumbnail-BFul62a4.js → ChatPdfThumbnail-BHa-zmGt.js} +1 -1
- package/dist/{ChatSheetThumbnail-CxGL5ukQ.js → ChatSheetThumbnail-D8aN1W_0.js} +3 -2
- package/dist/{ChatTextThumbnail-FVwMzn0I.js → ChatTextThumbnail-B53pSYUy.js} +2 -1
- package/dist/{CoachmarkProvider-2_pMSJdO.js → CoachmarkProvider-Dl0ullRd.js} +11948 -11697
- package/dist/{DocumentToolbar-BR442e_P.js → DocumentToolbar-CbvxX6_A.js} +2 -2
- package/dist/{DocxViewer-YweHIcvR.js → DocxViewer-D0ywzo9E.js} +11 -9
- package/dist/{F0AiProcessingOverlay-Dpen_hcq.js → F0AiProcessingOverlay-CwJG6TgU.js} +492 -405
- package/dist/{F0CanvasPanel-DjWQhvxj.js → F0CanvasPanel-CpgOQnbI.js} +7475 -7355
- package/dist/F0CanvasPanel.css +1 -1
- package/dist/{F0VideoPlayer-CYnKHXXD.js → F0VideoPlayer-CXAjfSnS.js} +447 -429
- package/dist/{LocationMap-YcfJrfST.js → LocationMap-BHPvamUV.js} +5 -3
- package/dist/{SheetViewer-CPr0Xea_.js → SheetViewer-B0xNsuOQ.js} +3 -3
- package/dist/{TextViewer-Cu9mNx0F.js → TextViewer-DDrr3xIG.js} +4 -3
- package/dist/ai.d.ts +13 -13
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +8 -8
- package/dist/component-status.js +3 -2
- package/dist/{experimental-Q9kMJ9wE.js → experimental-B-SPgEj_.js} +3070 -2859
- package/dist/experimental.d.ts +65 -54
- package/dist/experimental.js +3 -3
- package/dist/f0.d.ts +84 -73
- package/dist/f0.js +8070 -7967
- package/dist/i18n-provider-defaults.d.ts +4 -4
- package/dist/{index-O6DySIGj.js → index-D1wOJXWr.js} +23 -13
- package/dist/index-uG8opRj1.js +4 -0
- package/dist/{pdfWorker-CrkERbwq.js → pdfWorker-mxUZLnlP.js} +2 -2
- package/dist/{sheetPreview-5qeAOp0W.js → sheetPreview-Djc-YyVs.js} +4 -2
- package/icons/app/CursorClick.d.ts.map +1 -1
- package/icons/app/FitView.d.ts.map +1 -1
- package/icons/modules/Benefits.d.ts.map +1 -1
- package/icons/modules/Calendar.d.ts.map +1 -1
- package/icons/modules/Cards.d.ts.map +1 -1
- package/icons/modules/ClockIn.d.ts.map +1 -1
- package/icons/modules/Communities.d.ts.map +1 -1
- package/icons/modules/Complaints.d.ts.map +1 -1
- package/icons/modules/Discover.d.ts.map +1 -1
- package/icons/modules/Documents.d.ts.map +1 -1
- package/icons/modules/Engagement.d.ts.map +1 -1
- package/icons/modules/Finance.d.ts.map +1 -1
- package/icons/modules/Goals.d.ts.map +1 -1
- package/icons/modules/Home.d.ts.map +1 -1
- package/icons/modules/Hub.d.ts.map +1 -1
- package/icons/modules/Inbox.d.ts.map +1 -1
- package/icons/modules/ItManagement.d.ts.map +1 -1
- package/icons/modules/Kudos.d.ts.map +1 -1
- package/icons/modules/LMS.d.ts.map +1 -1
- package/icons/modules/Marketplace.d.ts.map +1 -1
- package/icons/modules/Meetings.d.ts.map +1 -1
- package/icons/modules/MyDocuments.d.ts.map +1 -1
- package/icons/modules/Organization.d.ts.map +1 -1
- package/icons/modules/Overviews.d.ts.map +1 -1
- package/icons/modules/Pages.d.ts.map +1 -1
- package/icons/modules/Payroll.d.ts.map +1 -1
- package/icons/modules/Performance.d.ts.map +1 -1
- package/icons/modules/Profile.d.ts.map +1 -1
- package/icons/modules/Projects.d.ts.map +1 -1
- package/icons/modules/Recruitment.d.ts.map +1 -1
- package/icons/modules/Reports.d.ts.map +1 -1
- package/icons/modules/Rocket.d.ts.map +1 -1
- package/icons/modules/SalaryAdvance.d.ts.map +1 -1
- package/icons/modules/Sales.d.ts.map +1 -1
- package/icons/modules/Settings.d.ts.map +1 -1
- package/icons/modules/Shifts.d.ts.map +1 -1
- package/icons/modules/Social.d.ts.map +1 -1
- package/icons/modules/Software.d.ts.map +1 -1
- package/icons/modules/Spaces.d.ts.map +1 -1
- package/icons/modules/Spending.d.ts.map +1 -1
- package/icons/modules/Tasks.d.ts.map +1 -1
- package/icons/modules/TimeOff.d.ts.map +1 -1
- package/icons/modules/TimeTracking.d.ts.map +1 -1
- package/icons/modules/Trainings.d.ts.map +1 -1
- package/icons/modules/Treasury.d.ts.map +1 -1
- package/icons/modules/Workflows.d.ts.map +1 -1
- package/icons/special/One.d.ts.map +1 -1
- package/package.json +6 -3
- package/dist/index-N_SH9qr4.js +0 -4
package/dist/f0.d.ts
CHANGED
|
@@ -190,7 +190,7 @@ declare type Action_2 = {
|
|
|
190
190
|
|
|
191
191
|
declare type Action_3 = {
|
|
192
192
|
label: string;
|
|
193
|
-
onClick: () => void
|
|
193
|
+
onClick: () => void | Promise<void>;
|
|
194
194
|
icon?: IconType;
|
|
195
195
|
variant?: ButtonVariant;
|
|
196
196
|
size?: "md" | "lg";
|
|
@@ -985,7 +985,7 @@ export declare type AiInsightCardContent = {
|
|
|
985
985
|
avatar: Pick<F0AvatarPersonProps, "firstName" | "lastName" | "src">;
|
|
986
986
|
} | {
|
|
987
987
|
content: "people";
|
|
988
|
-
avatars:
|
|
988
|
+
avatars: Pick<F0AvatarPersonProps, "firstName" | "lastName" | "src">[];
|
|
989
989
|
} | {
|
|
990
990
|
content: "team";
|
|
991
991
|
avatar: Pick<F0AvatarTeamProps, "name" | "src">;
|
|
@@ -1669,7 +1669,7 @@ declare type BaseColor = keyof typeof baseColors;
|
|
|
1669
1669
|
*/
|
|
1670
1670
|
export declare type BaseDataAdapter<R extends RecordType, Filters extends FiltersDefinition, Options extends BaseFetchOptions<Filters>, FetchReturn = BaseResponse<R>> = {
|
|
1671
1671
|
/** Indicates this adapter doesn't use pagination */
|
|
1672
|
-
paginationType?:
|
|
1672
|
+
paginationType?: undefined;
|
|
1673
1673
|
/**
|
|
1674
1674
|
* Function to fetch data based on filter options
|
|
1675
1675
|
* @param options - The filter options to apply when fetching data
|
|
@@ -2081,7 +2081,7 @@ declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "clas
|
|
|
2081
2081
|
/**
|
|
2082
2082
|
* Callback fired when the button is clicked. Supports async functions for loading state.
|
|
2083
2083
|
*/
|
|
2084
|
-
onClick?: (event: React.MouseEvent<HTMLElement
|
|
2084
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<unknown>;
|
|
2085
2085
|
/**
|
|
2086
2086
|
* The title of the button.
|
|
2087
2087
|
*/
|
|
@@ -2793,7 +2793,7 @@ declare type CardSelectRenderIfCondition = CardSelectRenderIfBase & ({
|
|
|
2793
2793
|
});
|
|
2794
2794
|
|
|
2795
2795
|
declare type CardVisualizationOptions<T, _Filters extends FiltersDefinition, _Sortings extends SortingsDefinition> = {
|
|
2796
|
-
cardProperties:
|
|
2796
|
+
cardProperties: readonly CardPropertyDefinition<T>[];
|
|
2797
2797
|
title: (record: T) => string;
|
|
2798
2798
|
description?: (record: T) => string;
|
|
2799
2799
|
avatar?: (record: T) => CardAvatarVariant;
|
|
@@ -3867,14 +3867,14 @@ export declare interface DashboardCollectionItem<Filters extends FiltersDefiniti
|
|
|
3867
3867
|
* Visualization configs for the collection (table, card, list, kanban).
|
|
3868
3868
|
* Same shape as OneDataCollection's `visualizations` prop.
|
|
3869
3869
|
*/
|
|
3870
|
-
visualizations:
|
|
3870
|
+
visualizations: readonly any[];
|
|
3871
3871
|
}
|
|
3872
3872
|
|
|
3873
3873
|
export declare interface DashboardFetchSpec {
|
|
3874
|
-
fetch:
|
|
3874
|
+
fetch: {
|
|
3875
3875
|
toolId: string;
|
|
3876
3876
|
args: Record<string, unknown>;
|
|
3877
|
-
}
|
|
3877
|
+
}[];
|
|
3878
3878
|
query: string | null;
|
|
3879
3879
|
columnLabels?: Record<string, string>;
|
|
3880
3880
|
}
|
|
@@ -4164,6 +4164,11 @@ declare interface DataCollectionSettingsContextType {
|
|
|
4164
4164
|
* Extends the base data source with data collection specific elements / features
|
|
4165
4165
|
*/
|
|
4166
4166
|
declare type DataCollectionSource<R extends RecordType = RecordType, Filters extends FiltersDefinition = FiltersDefinition, Sortings extends SortingsDefinition = SortingsDefinition, Summaries extends SummariesDefinition = SummariesDefinition, ItemActions extends ItemActionsDefinition<R> = ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition = NavigationFiltersDefinition, Grouping extends GroupingDefinition<R> = GroupingDefinition<R>> = DataSource<R, Filters, Sortings, Grouping> & DataCollectionSourceDefinition<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping> & {
|
|
4167
|
+
/**
|
|
4168
|
+
* The definition, pinned to `deps`, for what is rendered per record — the
|
|
4169
|
+
* source itself changes identity every render. Set by `memoizeDefinition`.
|
|
4170
|
+
*/
|
|
4171
|
+
definition?: DataCollectionSourceDefinition<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>;
|
|
4167
4172
|
currentNavigationFilters: NavigationFiltersState<NavigationFilters>;
|
|
4168
4173
|
setCurrentNavigationFilters: React.Dispatch<React.SetStateAction<NavigationFiltersState<NavigationFilters>>>;
|
|
4169
4174
|
/** Current summaries data */
|
|
@@ -4180,6 +4185,12 @@ declare type DataCollectionSourceDefinition<R extends RecordType = RecordType, F
|
|
|
4180
4185
|
/**
|
|
4181
4186
|
* Data Collection specific datasource elements / features
|
|
4182
4187
|
*/
|
|
4188
|
+
/**
|
|
4189
|
+
* Pin this definition to `deps` so rows can skip a render. Only safe if `deps`
|
|
4190
|
+
* lists everything the callbacks below close over: miss one and a row keeps
|
|
4191
|
+
* calling the closure it mounted with.
|
|
4192
|
+
*/
|
|
4193
|
+
memoizeDefinition?: boolean;
|
|
4183
4194
|
/** Navigation filters */
|
|
4184
4195
|
navigationFilters?: NavigationFilters;
|
|
4185
4196
|
currentNavigationFilters?: NavigationFiltersState<NavigationFilters>;
|
|
@@ -4213,7 +4224,7 @@ declare type DataCollectionSourceDefinition<R extends RecordType = RecordType, F
|
|
|
4213
4224
|
/** Item filter that can be used to filter the items before they are displayed */
|
|
4214
4225
|
itemPreFilter?: (item: R) => boolean;
|
|
4215
4226
|
/** Lanes configuration */
|
|
4216
|
-
lanes?:
|
|
4227
|
+
lanes?: readonly Lane<Filters>[];
|
|
4217
4228
|
/** Rich search preview shown in the shared header search (all visualizations). */
|
|
4218
4229
|
searchPreview?: SearchPreview<R>;
|
|
4219
4230
|
};
|
|
@@ -6135,7 +6146,7 @@ export declare type DialogControls = {
|
|
|
6135
6146
|
} | {
|
|
6136
6147
|
kind: "back";
|
|
6137
6148
|
label: string;
|
|
6138
|
-
onClick: () => void
|
|
6149
|
+
onClick: () => void | Promise<void>;
|
|
6139
6150
|
};
|
|
6140
6151
|
|
|
6141
6152
|
export declare type DialogDefinition = {
|
|
@@ -6579,7 +6590,7 @@ declare type EditableTableOnCellChangeParams<R extends RecordType> = {
|
|
|
6579
6590
|
};
|
|
6580
6591
|
|
|
6581
6592
|
declare type EditableTableVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = Omit<TableVisualizationOptions<R, _Filters, Sortings, Summaries>, "columns"> & {
|
|
6582
|
-
columns:
|
|
6593
|
+
columns: readonly EditableTableColumnDefinition<R, Sortings, Summaries>[];
|
|
6583
6594
|
/**
|
|
6584
6595
|
* Called when a cell value changes. Receives an object with the full updated
|
|
6585
6596
|
* row (`updatedItem`) and a `changes` map of the modified attributes, keyed by
|
|
@@ -9046,12 +9057,12 @@ export declare type F0CustomConfig<TValue = unknown, TConfig = undefined> = TCon
|
|
|
9046
9057
|
*/
|
|
9047
9058
|
declare type F0CustomConfigBase<TValue = unknown> = {
|
|
9048
9059
|
/** Render function for the custom component */
|
|
9049
|
-
render: (props: CustomFieldRenderProps<TValue
|
|
9060
|
+
render: (props: CustomFieldRenderProps<TValue>) => ReactNode;
|
|
9050
9061
|
} | {
|
|
9051
9062
|
/** Name identifying this custom field type (resolved by renderCustomField on the form) */
|
|
9052
9063
|
customFieldName: string;
|
|
9053
9064
|
/** Optional render function (overridden by form-level renderCustomField when customFieldName is set) */
|
|
9054
|
-
render?: (props: CustomFieldRenderProps<TValue
|
|
9065
|
+
render?: (props: CustomFieldRenderProps<TValue>) => ReactNode;
|
|
9055
9066
|
};
|
|
9056
9067
|
|
|
9057
9068
|
/**
|
|
@@ -9104,7 +9115,7 @@ export declare type F0CustomFieldConfig<TValue = unknown, TConfig = undefined> =
|
|
|
9104
9115
|
*
|
|
9105
9116
|
* @typeParam TValue - Type of the field value (inferred from Zod schema)
|
|
9106
9117
|
*/
|
|
9107
|
-
declare type F0CustomFieldConfigBase<TValue = unknown> = F0BaseConfig & F0CustomConfig<TValue
|
|
9118
|
+
declare type F0CustomFieldConfigBase<TValue = unknown> = F0BaseConfig & F0CustomConfig<TValue> & {
|
|
9108
9119
|
fieldType: "custom";
|
|
9109
9120
|
};
|
|
9110
9121
|
|
|
@@ -10057,7 +10068,7 @@ export declare type F0DialogPrimaryAction = {
|
|
|
10057
10068
|
label: string;
|
|
10058
10069
|
icon?: IconType;
|
|
10059
10070
|
iconPosition?: "left" | "right";
|
|
10060
|
-
onClick: () => void
|
|
10071
|
+
onClick: () => void | Promise<void>;
|
|
10061
10072
|
disabled?: boolean;
|
|
10062
10073
|
loading?: boolean;
|
|
10063
10074
|
};
|
|
@@ -10079,7 +10090,7 @@ export declare type F0DialogSecondaryAction = {
|
|
|
10079
10090
|
label: string;
|
|
10080
10091
|
icon?: IconType;
|
|
10081
10092
|
iconPosition?: "left" | "right";
|
|
10082
|
-
onClick: () => void
|
|
10093
|
+
onClick: () => void | Promise<void>;
|
|
10083
10094
|
disabled?: boolean;
|
|
10084
10095
|
loading?: boolean;
|
|
10085
10096
|
};
|
|
@@ -10283,9 +10294,9 @@ declare type F0EntitiesListField = F0BaseField & {
|
|
|
10283
10294
|
/** User-facing text (add button, dialog description/title) */
|
|
10284
10295
|
labels?: F0EntitiesListLabels;
|
|
10285
10296
|
/** Ids of the items that can be edited (matched against `item.id`) */
|
|
10286
|
-
editableIds?:
|
|
10297
|
+
editableIds?: (string | number)[];
|
|
10287
10298
|
/** Ids of the items that can be removed (matched against `item.id`) */
|
|
10288
|
-
removableIds?:
|
|
10299
|
+
removableIds?: (string | number)[];
|
|
10289
10300
|
/** Maximum number of rows allowed */
|
|
10290
10301
|
maxItems?: number;
|
|
10291
10302
|
/** Per-column presentation options, keyed by item-schema property name */
|
|
@@ -10428,7 +10439,7 @@ declare interface F0EntitiesListOptions<T = EntitiesListItem> {
|
|
|
10428
10439
|
* editing per row; with more than 2 it shows/hides the per-row edit
|
|
10429
10440
|
* (pencil) action that opens the edit dialog.
|
|
10430
10441
|
*/
|
|
10431
|
-
editableIds?:
|
|
10442
|
+
editableIds?: (string | number)[];
|
|
10432
10443
|
/**
|
|
10433
10444
|
* Restricts which items can be removed, matched against each item's `id`
|
|
10434
10445
|
* property. The remove counterpart to {@link editableIds}, and independent
|
|
@@ -10438,7 +10449,7 @@ declare interface F0EntitiesListOptions<T = EntitiesListItem> {
|
|
|
10438
10449
|
* this list shows no remove action (`list-view`) / no remove button
|
|
10439
10450
|
* (`editable-table`).
|
|
10440
10451
|
*/
|
|
10441
|
-
removableIds?:
|
|
10452
|
+
removableIds?: (string | number)[];
|
|
10442
10453
|
/** Minimum number of rows required (defaults to 1 unless the field is optional) */
|
|
10443
10454
|
minItems?: number;
|
|
10444
10455
|
/** Maximum number of rows allowed. When reached the add button is hidden. */
|
|
@@ -11177,15 +11188,15 @@ export declare namespace f0FormField {
|
|
|
11177
11188
|
}): RichTextObjectSchema & F0ZodType<RichTextObjectSchema>;
|
|
11178
11189
|
/* Excluded from this release type: SelectConfig */
|
|
11179
11190
|
export function select<const V extends string, R extends Record<string, unknown> = Record<string, unknown>>(config: SelectConfig<R> & {
|
|
11180
|
-
options:
|
|
11191
|
+
options: ({
|
|
11181
11192
|
value: V;
|
|
11182
|
-
} & Record<string, unknown
|
|
11193
|
+
} & Record<string, unknown>)[];
|
|
11183
11194
|
optional: true;
|
|
11184
11195
|
}): z.ZodOptional<z.ZodEnum<[V, ...V[]]>> & F0ZodType<z.ZodOptional<z.ZodEnum<[V, ...V[]]>>>;
|
|
11185
11196
|
export function select<const V extends string, R extends Record<string, unknown> = Record<string, unknown>>(config: SelectConfig<R> & {
|
|
11186
|
-
options:
|
|
11197
|
+
options: ({
|
|
11187
11198
|
value: V;
|
|
11188
|
-
} & Record<string, unknown
|
|
11199
|
+
} & Record<string, unknown>)[];
|
|
11189
11200
|
optional?: false | undefined;
|
|
11190
11201
|
}): z.ZodEnum<[V, ...V[]]> & F0ZodType<z.ZodEnum<[V, ...V[]]>>;
|
|
11191
11202
|
export function select<R extends Record<string, unknown> = Record<string, unknown>>(config: SelectConfig<R> & {
|
|
@@ -11195,16 +11206,16 @@ export declare namespace f0FormField {
|
|
|
11195
11206
|
optional?: false | undefined;
|
|
11196
11207
|
}): z.ZodString & F0ZodType<z.ZodString>;
|
|
11197
11208
|
/* Excluded from this release type: MultiSelectConfig */
|
|
11198
|
-
export function multiSelect<const V extends string>(config: Omit<MultiSelectConfig
|
|
11199
|
-
options:
|
|
11209
|
+
export function multiSelect<const V extends string>(config: Omit<MultiSelectConfig, "options"> & {
|
|
11210
|
+
options: ({
|
|
11200
11211
|
value: V;
|
|
11201
|
-
} & Record<string, unknown
|
|
11212
|
+
} & Record<string, unknown>)[];
|
|
11202
11213
|
optional: true;
|
|
11203
11214
|
}): z.ZodOptional<z.ZodArray<z.ZodEnum<[V, ...V[]]>>> & F0ZodType<z.ZodOptional<z.ZodArray<z.ZodEnum<[V, ...V[]]>>>>;
|
|
11204
|
-
export function multiSelect<const V extends string>(config: Omit<MultiSelectConfig
|
|
11205
|
-
options:
|
|
11215
|
+
export function multiSelect<const V extends string>(config: Omit<MultiSelectConfig, "options"> & {
|
|
11216
|
+
options: ({
|
|
11206
11217
|
value: V;
|
|
11207
|
-
} & Record<string, unknown
|
|
11218
|
+
} & Record<string, unknown>)[];
|
|
11208
11219
|
optional?: false | undefined;
|
|
11209
11220
|
}): z.ZodArray<z.ZodEnum<[V, ...V[]]>> & F0ZodType<z.ZodArray<z.ZodEnum<[V, ...V[]]>>>;
|
|
11210
11221
|
export function multiSelect<V extends string | number = string, R extends Record<string, unknown> = Record<string, unknown>>(config: MultiSelectConfig<V, R> & {
|
|
@@ -12670,7 +12681,7 @@ declare interface F0SelectConfigWithCustomFieldName extends F0SelectConfigBase {
|
|
|
12670
12681
|
*/
|
|
12671
12682
|
declare interface F0SelectConfigWithOptions<T extends SelectValueType = string> extends F0SelectConfigBase {
|
|
12672
12683
|
/** Options for the select dropdown */
|
|
12673
|
-
options: F0SelectItemProps<T
|
|
12684
|
+
options: F0SelectItemProps<T>[];
|
|
12674
12685
|
source?: never;
|
|
12675
12686
|
mapOptions?: never;
|
|
12676
12687
|
}
|
|
@@ -12695,8 +12706,8 @@ declare type F0SelectDataProps<T extends string, R = unknown> = {
|
|
|
12695
12706
|
} | {
|
|
12696
12707
|
source?: never;
|
|
12697
12708
|
mapOptions?: never;
|
|
12698
|
-
searchFn?: (option: F0SelectItemProps<T
|
|
12699
|
-
options: F0SelectItemProps<T
|
|
12709
|
+
searchFn?: (option: F0SelectItemProps<T>, search?: string) => boolean | undefined;
|
|
12710
|
+
options: F0SelectItemProps<T>[];
|
|
12700
12711
|
};
|
|
12701
12712
|
|
|
12702
12713
|
/**
|
|
@@ -12850,7 +12861,7 @@ declare type F0SelectSelectionProps<T extends string, R = unknown> = F0SelectSin
|
|
|
12850
12861
|
multiple?: false;
|
|
12851
12862
|
value?: T;
|
|
12852
12863
|
defaultItem?: F0SelectItemObject<T, ResolvedRecordType<R>>;
|
|
12853
|
-
onChange?: (value: T, originalItem?: ResolvedRecordType<R
|
|
12864
|
+
onChange?: (value: T, originalItem?: ResolvedRecordType<R>, option?: F0SelectItemObject<T, ResolvedRecordType<R>>) => void;
|
|
12854
12865
|
onSelectItems?: never;
|
|
12855
12866
|
} | {
|
|
12856
12867
|
multiple: true;
|
|
@@ -12882,7 +12893,7 @@ declare type F0SelectSingleSelectionProps<T extends string, R = unknown> = {
|
|
|
12882
12893
|
multiple?: false;
|
|
12883
12894
|
value?: T;
|
|
12884
12895
|
defaultItem?: F0SelectItemObject<T, ResolvedRecordType<R>>;
|
|
12885
|
-
onChange?: (value: T, originalItem?: ResolvedRecordType<R
|
|
12896
|
+
onChange?: (value: T, originalItem?: ResolvedRecordType<R>, option?: F0SelectItemObject<T, ResolvedRecordType<R>>) => void;
|
|
12886
12897
|
/** Callback for selection changes - provides full selection state for advanced use cases (e.g., "Select All" with exclusions) */
|
|
12887
12898
|
onSelectItems?: never;
|
|
12888
12899
|
};
|
|
@@ -14168,7 +14179,7 @@ export declare const getDataCollectionStorageKey: (id: string) => string;
|
|
|
14168
14179
|
* @returns The pagination type of the data adapter
|
|
14169
14180
|
*/
|
|
14170
14181
|
export declare const getDataSourcePaginationType: <D extends {
|
|
14171
|
-
paginationType?: PaginationType | undefined
|
|
14182
|
+
paginationType?: PaginationType | undefined;
|
|
14172
14183
|
}>(dataAdapter: D) => PaginationType;
|
|
14173
14184
|
|
|
14174
14185
|
export declare function getEmojiLabel(emoji: string): string;
|
|
@@ -14293,13 +14304,13 @@ declare type GraphVisualizationOptions<R extends RecordType, Filters extends Fil
|
|
|
14293
14304
|
* toggle to show/hide each metadata column (like configuring table columns).
|
|
14294
14305
|
* Values are tag `column` keys (or `type` when a tag has no `column`).
|
|
14295
14306
|
*/
|
|
14296
|
-
nodeTagTypes?:
|
|
14307
|
+
nodeTagTypes?: readonly F0GraphNodeTagColumn[];
|
|
14297
14308
|
/** Friendly labels per tag column, shown in the metadata visibility toggle. */
|
|
14298
14309
|
nodeTagTypeLabels?: Partial<Record<F0GraphNodeTagColumn, string>>;
|
|
14299
14310
|
/** Tag columns visible by default. Defaults to all of `nodeTagTypes`. */
|
|
14300
|
-
defaultVisibleTagTypes?:
|
|
14311
|
+
defaultVisibleTagTypes?: readonly F0GraphNodeTagColumn[];
|
|
14301
14312
|
/** Tag columns that are always visible and cannot be hidden in the settings. */
|
|
14302
|
-
pinnedTagTypes?:
|
|
14313
|
+
pinnedTagTypes?: readonly F0GraphNodeTagColumn[];
|
|
14303
14314
|
/**
|
|
14304
14315
|
* Tag columns the actor is not allowed to see, mapped to the reason. Each is
|
|
14305
14316
|
* still listed in the settings but with its toggle forced OFF and disabled,
|
|
@@ -14726,7 +14737,7 @@ export declare type heightType = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl
|
|
|
14726
14737
|
*/
|
|
14727
14738
|
export declare type HiddenAction = "required" | "multiSelect" | "allowCreate" | "questionType" | "duplicate" | "delete";
|
|
14728
14739
|
|
|
14729
|
-
export declare type HiddenActions =
|
|
14740
|
+
export declare type HiddenActions = readonly HiddenAction[];
|
|
14730
14741
|
|
|
14731
14742
|
export declare const HomeLayout: WithDataTestIdReturnType_2<ForwardRefExoticComponent<Omit<{
|
|
14732
14743
|
widgets?: ReactNode[];
|
|
@@ -14857,7 +14868,7 @@ declare type InFilterOptionItem<T = unknown> = {
|
|
|
14857
14868
|
/** The filter key where child selections are stored in FiltersState */
|
|
14858
14869
|
filterKey: string;
|
|
14859
14870
|
/** Child options, which can themselves have children for infinite nesting */
|
|
14860
|
-
options:
|
|
14871
|
+
options: InFilterOptionItem<T>[];
|
|
14861
14872
|
};
|
|
14862
14873
|
};
|
|
14863
14874
|
|
|
@@ -14877,7 +14888,7 @@ declare type InFilterOptions_2<T, _R extends RecordType = RecordType> = {
|
|
|
14877
14888
|
*/
|
|
14878
14889
|
getLabel?: (value: unknown) => string | Promise<string>;
|
|
14879
14890
|
} & ({
|
|
14880
|
-
options: Array<InFilterOptionItem<T>> | (() => Array<InFilterOptionItem<T>> | Promise<
|
|
14891
|
+
options: Array<InFilterOptionItem<T>> | (() => Array<InFilterOptionItem<T>> | Promise<InFilterOptionItem<T>[]>);
|
|
14881
14892
|
} | {
|
|
14882
14893
|
source: DataSourceDefinition<any, FiltersDefinition, SortingsDefinition, GroupingDefinition<any>>;
|
|
14883
14894
|
mapOptions: (item: any) => InFilterOptionItem<T>;
|
|
@@ -15221,12 +15232,12 @@ declare type KanbanOnMove<TRecord extends RecordType> = (fromLaneId: string, toL
|
|
|
15221
15232
|
} | null) => Promise<TRecord>;
|
|
15222
15233
|
|
|
15223
15234
|
declare type KanbanVisualizationOptions<Record extends RecordType, _Filters extends FiltersDefinition, _Sortings extends SortingsDefinition> = {
|
|
15224
|
-
lanes:
|
|
15235
|
+
lanes: readonly KanbanLaneDefinition[];
|
|
15225
15236
|
/** Per-group columns: when grouping is active, each group's board renders the
|
|
15226
15237
|
* lanes this returns instead of the global `lanes` (lane ids must exist in
|
|
15227
15238
|
* `source.lanes`). Enables the onboarding case where each policy version has
|
|
15228
15239
|
* its own phases. NOTE: API shape pending Foundations review. */
|
|
15229
|
-
getLanesForGroup?: (groupKey: string) =>
|
|
15240
|
+
getLanesForGroup?: (groupKey: string) => readonly KanbanLaneDefinition[];
|
|
15230
15241
|
/** Whether each group header shows a selection checkbox when the collection is
|
|
15231
15242
|
* selectable. Defaults to `true` (parity with Card/List). Set to `false` to
|
|
15232
15243
|
* keep per-card selection while hiding the group-level checkbox — e.g. when
|
|
@@ -15237,7 +15248,7 @@ declare type KanbanVisualizationOptions<Record extends RecordType, _Filters exte
|
|
|
15237
15248
|
title?: (record: Record) => string;
|
|
15238
15249
|
description?: (record: Record) => string;
|
|
15239
15250
|
avatar?: (record: Record) => CardAvatarVariant;
|
|
15240
|
-
metadata?: (record: Record) =>
|
|
15251
|
+
metadata?: (record: Record) => readonly CardMetadata[];
|
|
15241
15252
|
onMove?: KanbanOnMove<Record>;
|
|
15242
15253
|
onCreate?: KanbanOnCreate;
|
|
15243
15254
|
};
|
|
@@ -15366,7 +15377,7 @@ declare type ListPropertyDefinition<R, Sortings extends SortingsDefinition> = Wi
|
|
|
15366
15377
|
|
|
15367
15378
|
declare type ListVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition> = {
|
|
15368
15379
|
itemDefinition: (record: R) => ItemDefinition;
|
|
15369
|
-
fields:
|
|
15380
|
+
fields: readonly ListPropertyDefinition<R, Sortings>[];
|
|
15370
15381
|
};
|
|
15371
15382
|
|
|
15372
15383
|
export declare interface LoadingStateProps {
|
|
@@ -15398,7 +15409,7 @@ declare interface LocalizedOption<T> {
|
|
|
15398
15409
|
* locking the question outright. Both are the question's wording — what it asks
|
|
15399
15410
|
* — as opposed to the answer it collects.
|
|
15400
15411
|
*/
|
|
15401
|
-
export declare type LockedFields =
|
|
15412
|
+
export declare type LockedFields = readonly ("title" | "description")[];
|
|
15402
15413
|
|
|
15403
15414
|
export declare type LockedQuestionNotice = {
|
|
15404
15415
|
description: string;
|
|
@@ -15543,14 +15554,14 @@ declare type Message_2 = {
|
|
|
15543
15554
|
id?: string;
|
|
15544
15555
|
role?: string;
|
|
15545
15556
|
content?: unknown;
|
|
15546
|
-
toolCalls?:
|
|
15557
|
+
toolCalls?: {
|
|
15547
15558
|
id: string;
|
|
15548
15559
|
type?: string;
|
|
15549
15560
|
function?: {
|
|
15550
15561
|
name: string;
|
|
15551
15562
|
arguments: string;
|
|
15552
15563
|
};
|
|
15553
|
-
}
|
|
15564
|
+
}[];
|
|
15554
15565
|
generativeUI?: () => unknown;
|
|
15555
15566
|
rawData?: unknown;
|
|
15556
15567
|
/**
|
|
@@ -17078,7 +17089,7 @@ declare type Props = {
|
|
|
17078
17089
|
/**
|
|
17079
17090
|
* Array of chips to display.
|
|
17080
17091
|
*/
|
|
17081
|
-
chips:
|
|
17092
|
+
chips: ChipProps[];
|
|
17082
17093
|
/**
|
|
17083
17094
|
* The maximum number of chips to display.
|
|
17084
17095
|
* @default 4
|
|
@@ -17171,11 +17182,11 @@ declare interface RadarChartSkeletonProps {
|
|
|
17171
17182
|
export declare interface RadarComputation {
|
|
17172
17183
|
datasetId: string;
|
|
17173
17184
|
seriesColumn: string;
|
|
17174
|
-
indicators:
|
|
17185
|
+
indicators: {
|
|
17175
17186
|
column: string;
|
|
17176
17187
|
label: string;
|
|
17177
17188
|
max?: number;
|
|
17178
|
-
}
|
|
17189
|
+
}[];
|
|
17179
17190
|
limit?: number;
|
|
17180
17191
|
sortBy?: string;
|
|
17181
17192
|
sortOrder?: "asc" | "desc";
|
|
@@ -17792,17 +17803,17 @@ declare type SelectCellConfig<R extends RecordType> = {
|
|
|
17792
17803
|
* Represents a collection of selected items.
|
|
17793
17804
|
* @template T - The type of items in the collection
|
|
17794
17805
|
*/
|
|
17795
|
-
export declare type SelectedItems<T> =
|
|
17806
|
+
export declare type SelectedItems<T> = readonly T[];
|
|
17796
17807
|
|
|
17797
17808
|
export declare type SelectedItemsDetailedStatus<R extends RecordType, Filters extends FiltersDefinition> = {
|
|
17798
17809
|
allSelected: boolean | "indeterminate";
|
|
17799
17810
|
/** Status of items that have been loaded. Items not yet loaded won't appear here. */
|
|
17800
|
-
itemsStatus:
|
|
17811
|
+
itemsStatus: readonly {
|
|
17801
17812
|
item: R;
|
|
17802
17813
|
checked: boolean;
|
|
17803
|
-
}
|
|
17814
|
+
}[];
|
|
17804
17815
|
/** All selected item IDs, including those not yet loaded */
|
|
17805
|
-
selectedIds:
|
|
17816
|
+
selectedIds: readonly SelectionId[];
|
|
17806
17817
|
groupsStatus: Record<string, boolean>;
|
|
17807
17818
|
filters: FiltersState<Filters>;
|
|
17808
17819
|
selectedCount: number;
|
|
@@ -17836,21 +17847,21 @@ export declare type SelectionId = number | string;
|
|
|
17836
17847
|
export declare type SelectionMeta<R extends RecordType> = {
|
|
17837
17848
|
selectedItemsCount: number;
|
|
17838
17849
|
totalKnownItemsCount: number;
|
|
17839
|
-
checkedItems:
|
|
17840
|
-
uncheckedItems:
|
|
17850
|
+
checkedItems: readonly R[];
|
|
17851
|
+
uncheckedItems: readonly R[];
|
|
17841
17852
|
};
|
|
17842
17853
|
|
|
17843
17854
|
export declare type SelectionStatus<R extends RecordType, Filters extends FiltersDefinition> = {
|
|
17844
17855
|
allChecked: boolean | "indeterminate";
|
|
17845
17856
|
/** Status of items that have been loaded. Items not yet loaded won't appear here. */
|
|
17846
|
-
itemsStatus:
|
|
17857
|
+
itemsStatus: readonly {
|
|
17847
17858
|
item: R;
|
|
17848
17859
|
checked: boolean;
|
|
17849
|
-
}
|
|
17860
|
+
}[];
|
|
17850
17861
|
/** All selected item IDs, including those not yet loaded */
|
|
17851
|
-
selectedIds:
|
|
17852
|
-
checkedItems:
|
|
17853
|
-
uncheckedItems:
|
|
17862
|
+
selectedIds: readonly SelectionId[];
|
|
17863
|
+
checkedItems: readonly R[];
|
|
17864
|
+
uncheckedItems: readonly R[];
|
|
17854
17865
|
groupsStatus: Record<string, boolean>;
|
|
17855
17866
|
filters: FiltersState<Filters>;
|
|
17856
17867
|
selectedCount: number;
|
|
@@ -18399,7 +18410,7 @@ declare type TableVisualizationOptions<R extends RecordType, _Filters extends Fi
|
|
|
18399
18410
|
/**
|
|
18400
18411
|
* The columns to display
|
|
18401
18412
|
*/
|
|
18402
|
-
columns:
|
|
18413
|
+
columns: readonly TableColumnDefinition<R, Sortings, Summaries>[];
|
|
18403
18414
|
/**
|
|
18404
18415
|
* Placeholder to display in summary-row cells when no summary value is
|
|
18405
18416
|
* rendered. This also applies to columns without a `summary` definition.
|
|
@@ -18603,7 +18614,7 @@ export declare type TagListProps<T extends TagType> = {
|
|
|
18603
18614
|
/**
|
|
18604
18615
|
* Array of tag data corresponding to the specified type.
|
|
18605
18616
|
*/
|
|
18606
|
-
tags:
|
|
18617
|
+
tags: TagTypeMapping[T][];
|
|
18607
18618
|
/**
|
|
18608
18619
|
* The maximum number of tags to display.
|
|
18609
18620
|
* @default 4
|
|
@@ -19407,7 +19418,7 @@ declare type UseChatHistoryReturn = {
|
|
|
19407
19418
|
threads: ChatThread[];
|
|
19408
19419
|
isLoading: boolean;
|
|
19409
19420
|
error: string | null;
|
|
19410
|
-
refetch: () => void
|
|
19421
|
+
refetch: () => Promise<void>;
|
|
19411
19422
|
pinnedIds: Set<string>;
|
|
19412
19423
|
/**
|
|
19413
19424
|
* Ids of threads with an in-flight pin/unpin/delete request. Use it to show a
|
|
@@ -19591,7 +19602,7 @@ export declare interface UseDataReturn<R extends RecordType> {
|
|
|
19591
19602
|
* - actions: Available actions for the collection
|
|
19592
19603
|
* - presets: Available filter presets
|
|
19593
19604
|
*/
|
|
19594
|
-
export declare function useDataSource<R extends RecordType = RecordType, FiltersSchema extends FiltersDefinition = FiltersDefinition, Sortings extends SortingsDefinition = SortingsDefinition, Grouping extends GroupingDefinition<R> = GroupingDefinition<R>>({ defaultFilters, currentFilters: externalCurrentFilters, defaultGrouping: externalDefaultGrouping, currentGrouping: externalCurrentGrouping, filters, search, defaultSortings, currentSortings: externalCurrentSortings, dataAdapter, grouping, ...rest }: DataSourceDefinition<R, FiltersSchema, Sortings, Grouping>, deps?:
|
|
19605
|
+
export declare function useDataSource<R extends RecordType = RecordType, FiltersSchema extends FiltersDefinition = FiltersDefinition, Sortings extends SortingsDefinition = SortingsDefinition, Grouping extends GroupingDefinition<R> = GroupingDefinition<R>>({ defaultFilters, currentFilters: externalCurrentFilters, defaultGrouping: externalDefaultGrouping, currentGrouping: externalCurrentGrouping, filters, search, defaultSortings, currentSortings: externalCurrentSortings, dataAdapter, grouping, ...rest }: DataSourceDefinition<R, FiltersSchema, Sortings, Grouping>, deps?: readonly unknown[]): DataSource<R, FiltersSchema, Sortings, Grouping>;
|
|
19595
19606
|
|
|
19596
19607
|
export declare function useDataSourceItemNavigation<R extends RecordType>(props: UseDataSourceItemNavigationProps<R>): UseDataSourceItemNavigationReturn<R>;
|
|
19597
19608
|
|
|
@@ -20116,7 +20127,7 @@ export declare type UseSelectableProps<R extends RecordType, Filters extends Fil
|
|
|
20116
20127
|
* Selectable rows currently rendered (incl. nested children), so "select all"
|
|
20117
20128
|
* reaches rows absent from `data.records`. Falls back to `data.records`.
|
|
20118
20129
|
*/
|
|
20119
|
-
getRenderedSelectableEntries?: () =>
|
|
20130
|
+
getRenderedSelectableEntries?: () => [SelectionId, R][];
|
|
20120
20131
|
/**
|
|
20121
20132
|
* Count of currently-rendered selectable rows (incl. nested children). Used
|
|
20122
20133
|
* as the item total when it exceeds `paginationInfo.total`, so selection
|
|
@@ -20450,7 +20461,7 @@ export declare type WithDataTestIdPropsOf<T extends default_2.ComponentType<unkn
|
|
|
20450
20461
|
export declare type WithDataTestIdReturnType<T extends default_2.ComponentType<any>> = default_2.ForwardRefExoticComponent<default_2.PropsWithoutRef<default_2.ComponentProps<T> & WithDataTestIdProps> & default_2.RefAttributes<T extends default_2.ForwardRefExoticComponent<infer P> ? P extends default_2.RefAttributes<infer R> ? R : unknown : unknown>> & Pick<T, Exclude<keyof T, keyof default_2.ForwardRefExoticComponent<unknown>>>;
|
|
20451
20462
|
|
|
20452
20463
|
export declare type WithGroupId<RecordType> = RecordType & {
|
|
20453
|
-
[GROUP_ID_SYMBOL]: unknown
|
|
20464
|
+
[GROUP_ID_SYMBOL]: unknown;
|
|
20454
20465
|
};
|
|
20455
20466
|
|
|
20456
20467
|
declare type WithOptionalSorting<R extends RecordType, Sortings extends SortingsDefinition> = Omit<PropertyDefinition_2<R>, "hide"> & {
|
|
@@ -20547,17 +20558,17 @@ declare namespace _Page {
|
|
|
20547
20558
|
declare module "gridstack" {
|
|
20548
20559
|
interface GridStackWidget {
|
|
20549
20560
|
id?: string;
|
|
20550
|
-
allowedSizes?:
|
|
20561
|
+
allowedSizes?: {
|
|
20551
20562
|
w: number;
|
|
20552
20563
|
h: number;
|
|
20553
|
-
}
|
|
20564
|
+
}[];
|
|
20554
20565
|
meta?: Record<string, unknown>;
|
|
20555
20566
|
}
|
|
20556
20567
|
interface GridStackNode {
|
|
20557
|
-
allowedSizes?:
|
|
20568
|
+
allowedSizes?: {
|
|
20558
20569
|
w: number;
|
|
20559
20570
|
h: number;
|
|
20560
|
-
}
|
|
20571
|
+
}[];
|
|
20561
20572
|
}
|
|
20562
20573
|
}
|
|
20563
20574
|
|