@factorialco/f0-react 1.278.0 → 1.279.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/experimental.d.ts +40 -25
- package/dist/experimental.js +9681 -9446
- package/dist/f0.d.ts +40 -25
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -912,6 +912,14 @@ declare interface CheckboxProps extends DataAttributes_2 {
|
|
|
912
912
|
name?: string;
|
|
913
913
|
}
|
|
914
914
|
|
|
915
|
+
declare type ChildrenResponse<R extends RecordType> = BaseResponse<R> | R[] | {
|
|
916
|
+
records: R[] & {
|
|
917
|
+
type?: ChildrenResponseType;
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
declare type ChildrenResponseType = "basic" | "detailed";
|
|
922
|
+
|
|
915
923
|
declare type ChipProps = BaseChipProps & ChipVariants & {
|
|
916
924
|
variant?: "default" | "selected";
|
|
917
925
|
};
|
|
@@ -1283,6 +1291,13 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
|
|
|
1283
1291
|
defaultGrouping?: GroupingState<R, Grouping>;
|
|
1284
1292
|
/** Current state of applied grouping */
|
|
1285
1293
|
currentGrouping?: GroupingState<R, Grouping>;
|
|
1294
|
+
/*******************************************************/
|
|
1295
|
+
/***** NESTED RECORDS ***************************************************/
|
|
1296
|
+
fetchChildren?: (item: R, filters?: FiltersState<FiltersDefinition>) => Promise<ChildrenResponse<R>>;
|
|
1297
|
+
/** Function to determine if an item has children */
|
|
1298
|
+
itemsWithChildren?: (item: R) => boolean;
|
|
1299
|
+
/** Function to get the number of children for an item */
|
|
1300
|
+
childrenCount?: (item: R) => number | undefined;
|
|
1286
1301
|
};
|
|
1287
1302
|
|
|
1288
1303
|
export declare type DateFilterDefinition = BaseFilterDefinition<"date"> & {
|
|
@@ -4180,6 +4195,31 @@ declare global {
|
|
|
4180
4195
|
}
|
|
4181
4196
|
|
|
4182
4197
|
|
|
4198
|
+
declare module "gridstack" {
|
|
4199
|
+
interface GridStackWidget {
|
|
4200
|
+
id?: string;
|
|
4201
|
+
allowedSizes?: Array<{
|
|
4202
|
+
w: number;
|
|
4203
|
+
h: number;
|
|
4204
|
+
}>;
|
|
4205
|
+
renderFn?: () => React.ReactElement | null;
|
|
4206
|
+
meta?: Record<string, unknown>;
|
|
4207
|
+
}
|
|
4208
|
+
interface GridStackNode {
|
|
4209
|
+
id?: string;
|
|
4210
|
+
w?: number;
|
|
4211
|
+
h?: number;
|
|
4212
|
+
x?: number;
|
|
4213
|
+
y?: number;
|
|
4214
|
+
allowedSizes?: Array<{
|
|
4215
|
+
w: number;
|
|
4216
|
+
h: number;
|
|
4217
|
+
}>;
|
|
4218
|
+
renderFn?: () => React.ReactElement | null;
|
|
4219
|
+
}
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
|
|
4183
4223
|
declare module "@tiptap/core" {
|
|
4184
4224
|
interface Commands<ReturnType> {
|
|
4185
4225
|
aiBlock: {
|
|
@@ -4207,31 +4247,6 @@ declare module "@tiptap/core" {
|
|
|
4207
4247
|
}
|
|
4208
4248
|
|
|
4209
4249
|
|
|
4210
|
-
declare module "gridstack" {
|
|
4211
|
-
interface GridStackWidget {
|
|
4212
|
-
id?: string;
|
|
4213
|
-
allowedSizes?: Array<{
|
|
4214
|
-
w: number;
|
|
4215
|
-
h: number;
|
|
4216
|
-
}>;
|
|
4217
|
-
renderFn?: () => React.ReactElement | null;
|
|
4218
|
-
meta?: Record<string, unknown>;
|
|
4219
|
-
}
|
|
4220
|
-
interface GridStackNode {
|
|
4221
|
-
id?: string;
|
|
4222
|
-
w?: number;
|
|
4223
|
-
h?: number;
|
|
4224
|
-
x?: number;
|
|
4225
|
-
y?: number;
|
|
4226
|
-
allowedSizes?: Array<{
|
|
4227
|
-
w: number;
|
|
4228
|
-
h: number;
|
|
4229
|
-
}>;
|
|
4230
|
-
renderFn?: () => React.ReactElement | null;
|
|
4231
|
-
}
|
|
4232
|
-
}
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
4250
|
declare namespace Calendar {
|
|
4236
4251
|
var displayName: string;
|
|
4237
4252
|
}
|