@factorialco/f0-react 1.472.1 → 1.474.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/ai.d.ts CHANGED
@@ -529,6 +529,11 @@ export declare const aiTranslations: {
529
529
  readonly source: "Source";
530
530
  readonly applied: "Applied on";
531
531
  };
532
+ readonly requisition: {
533
+ readonly lineManager: "Line manager";
534
+ readonly reason: "Reason";
535
+ readonly status: "Status";
536
+ };
532
537
  };
533
538
  readonly credits: {
534
539
  readonly title: "Credits";
@@ -1797,6 +1802,11 @@ export declare const defaultTranslations: {
1797
1802
  readonly source: "Source";
1798
1803
  readonly applied: "Applied on";
1799
1804
  };
1805
+ readonly requisition: {
1806
+ readonly lineManager: "Line manager";
1807
+ readonly reason: "Reason";
1808
+ readonly status: "Status";
1809
+ };
1800
1810
  };
1801
1811
  readonly credits: {
1802
1812
  readonly title: "Credits";
@@ -1920,6 +1930,10 @@ export declare const defaultTranslations: {
1920
1930
  readonly funnel: "Funnel";
1921
1931
  readonly pieChart: "Pie";
1922
1932
  readonly table: "Table";
1933
+ readonly emptyState: {
1934
+ readonly title: "No data available";
1935
+ readonly description: "Try a different date or fewer filters";
1936
+ };
1923
1937
  };
1924
1938
  readonly select: {
1925
1939
  readonly noResults: "No results found";
@@ -3143,15 +3157,18 @@ declare type RelaxedNumericWithFormatter = Omit<NumericWithFormatter, "numericVa
3143
3157
  numericValue: Numeric;
3144
3158
  };
3145
3159
 
3146
- /**
3147
- * Profile data for a requisition entity (ATS requisition), resolved asynchronously
3148
- * and displayed in the entity reference hover card.
3149
- */
3150
3160
  export declare type RequisitionProfile = {
3151
3161
  id: string | number;
3152
3162
  title: string;
3153
3163
  status?: string;
3164
+ statusVariant?: StatusVariant;
3154
3165
  reason?: string;
3166
+ location?: string;
3167
+ lineManager?: {
3168
+ firstName: string;
3169
+ lastName: string;
3170
+ avatarUrl?: string;
3171
+ };
3155
3172
  };
3156
3173
 
3157
3174
  declare type SetFormCardValueFormatter = <T = unknown>(entry: FormCardValueFormatterEntry<T>) => void;
@@ -3162,6 +3179,8 @@ export declare type SparklineDataPoint = {
3162
3179
 
3163
3180
  declare const statuses: readonly ["neutral", "info", "positive", "warning", "critical"];
3164
3181
 
3182
+ declare type StatusVariant = Variant;
3183
+
3165
3184
  declare type TagDataType<T extends string> = Omit<Extract<TagVariant, {
3166
3185
  type: T;
3167
3186
  }>, "type" | "description">;
@@ -3374,6 +3393,11 @@ declare module "gridstack" {
3374
3393
  }
3375
3394
 
3376
3395
 
3396
+ declare namespace Calendar {
3397
+ var displayName: string;
3398
+ }
3399
+
3400
+
3377
3401
  declare module "@tiptap/core" {
3378
3402
  interface Commands<ReturnType> {
3379
3403
  enhanceHighlight: {
@@ -3421,8 +3445,3 @@ declare module "@tiptap/core" {
3421
3445
  };
3422
3446
  }
3423
3447
  }
3424
-
3425
-
3426
- declare namespace Calendar {
3427
- var displayName: string;
3428
- }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-DP4kUKby.js";
1
+ import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-Ca84otXf.js";
2
2
  import { defaultTranslations as S } from "./i18n-provider-defaults.js";
3
- import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-CPaHAyIU.js";
3
+ import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-VRQgNN6R.js";
4
4
  export {
5
5
  v as AiChatTranslationsProvider,
6
6
  t as ChatSpinner,
@@ -3129,6 +3129,11 @@ declare const defaultTranslations: {
3129
3129
  readonly source: "Source";
3130
3130
  readonly applied: "Applied on";
3131
3131
  };
3132
+ readonly requisition: {
3133
+ readonly lineManager: "Line manager";
3134
+ readonly reason: "Reason";
3135
+ readonly status: "Status";
3136
+ };
3132
3137
  };
3133
3138
  readonly credits: {
3134
3139
  readonly title: "Credits";
@@ -3252,6 +3257,10 @@ declare const defaultTranslations: {
3252
3257
  readonly funnel: "Funnel";
3253
3258
  readonly pieChart: "Pie";
3254
3259
  readonly table: "Table";
3260
+ readonly emptyState: {
3261
+ readonly title: "No data available";
3262
+ readonly description: "Try a different date or fewer filters";
3263
+ };
3255
3264
  };
3256
3265
  readonly select: {
3257
3266
  readonly noResults: "No results found";
@@ -6623,15 +6632,18 @@ declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
6623
6632
  content: JSONContent[];
6624
6633
  }
6625
6634
 
6626
- /**
6627
- * Profile data for a requisition entity (ATS requisition), resolved asynchronously
6628
- * and displayed in the entity reference hover card.
6629
- */
6630
6635
  declare type RequisitionProfile = {
6631
6636
  id: string | number;
6632
6637
  title: string;
6633
6638
  status?: string;
6639
+ statusVariant?: StatusVariant;
6634
6640
  reason?: string;
6641
+ location?: string;
6642
+ lineManager?: {
6643
+ firstName: string;
6644
+ lastName: string;
6645
+ avatarUrl?: string;
6646
+ };
6635
6647
  };
6636
6648
 
6637
6649
  export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordType;
@@ -8124,6 +8136,11 @@ declare module "gridstack" {
8124
8136
  }
8125
8137
 
8126
8138
 
8139
+ declare namespace Calendar {
8140
+ var displayName: string;
8141
+ }
8142
+
8143
+
8127
8144
  declare module "@tiptap/core" {
8128
8145
  interface Commands<ReturnType> {
8129
8146
  enhanceHighlight: {
@@ -8171,8 +8188,3 @@ declare module "@tiptap/core" {
8171
8188
  };
8172
8189
  }
8173
8190
  }
8174
-
8175
-
8176
- declare namespace Calendar {
8177
- var displayName: string;
8178
- }
@@ -1,9 +1,9 @@
1
- import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, O as b, W as Z, P as pe, u as se, ag as ma, ah as ha, ai as ba, aj as pa, ak as ga, a5 as oe, al as xa, am as ht, an as rt, ao as Be, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ve, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as ge, aI as $e, aJ as _a, aK as bt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as za, aV as Pa, aW as Ra, X as be, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as bn, bj as tr, bk as nr, bl as pn, bm as ar, bn as rr, T as Ue, bo as pt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as br, bF as pr, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as zr, c7 as Pr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-DP4kUKby.js";
2
- import { cG as Ac, cF as Lc, co as Ec, cS as _c, cz as Oc, cA as Tc, cn as Dc, cC as zc, cp as Pc, d2 as Rc, d0 as Bc, cq as $c, cD as Wc, cE as Mc, cB as jc, cr as Vc, cO as Gc, cP as Hc, cT as Uc, c_ as Kc, c$ as qc, cx as Yc, d1 as Zc, cy as Xc, cs as Jc, cI as Qc, cH as ed, ct as td, cu as nd, cv as ad, cQ as rd, d3 as ld, cm as id, cR as sd, cV as od, cW as cd, cN as dd, cK as ud, cM as fd, cJ as md, cw as hd, cL as bd, cX as pd, cY as gd, cU as xd, cZ as vd } from "./F0AiChat-DP4kUKby.js";
1
+ import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, O as b, W as Z, P as pe, u as se, ag as ma, ah as ha, ai as ba, aj as pa, ak as ga, a5 as oe, al as xa, am as ht, an as rt, ao as Be, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ve, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as ge, aI as $e, aJ as _a, aK as bt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as za, aV as Pa, aW as Ra, X as be, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as bn, bj as tr, bk as nr, bl as pn, bm as ar, bn as rr, T as Ue, bo as pt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as br, bF as pr, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as zr, c7 as Pr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-Ca84otXf.js";
2
+ import { cG as Ac, cF as Lc, co as Ec, cS as _c, cz as Oc, cA as Tc, cn as Dc, cC as zc, cp as Pc, d2 as Rc, d0 as Bc, cq as $c, cD as Wc, cE as Mc, cB as jc, cr as Vc, cO as Gc, cP as Hc, cT as Uc, c_ as Kc, c$ as qc, cx as Yc, d1 as Zc, cy as Xc, cs as Jc, cI as Qc, cH as ed, ct as td, cu as nd, cv as ad, cQ as rd, d3 as ld, cm as id, cR as sd, cV as od, cW as cd, cN as dd, cK as ud, cM as fd, cJ as md, cw as hd, cL as bd, cX as pd, cY as gd, cU as xd, cZ as vd } from "./F0AiChat-Ca84otXf.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
4
  import re, { forwardRef as j, useRef as V, useTransition as Kr, useState as _, useLayoutEffect as Ln, useId as qr, useContext as Ke, createContext as yt, useEffect as W, useCallback as Q, useMemo as K, Fragment as Yr, isValidElement as Zr, cloneElement as En, Children as _n } from "react";
5
- import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-Bav926mJ.js";
6
- import { l as yd, m as Nd, j as Cd, n as kd, s as Sd, D as Id, k as Fd, o as Ad, v as Ld, w as Ed, N as _d, x as Od, p as Td, r as Dd, R as zd, q as Pd, _ as Rd, u as Bd, t as $d } from "./index-Bav926mJ.js";
5
+ import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-CR_-PFTI.js";
6
+ import { l as yd, m as Nd, j as Cd, n as kd, s as Sd, D as Id, k as Fd, o as Ad, v as Ld, w as Ed, N as _d, x as Od, p as Td, r as Dd, R as zd, q as Pd, _ as Rd, u as Bd, t as $d } from "./index-CR_-PFTI.js";
7
7
  const dl = oa("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
package/dist/f0.d.ts CHANGED
@@ -902,6 +902,11 @@ export declare const aiTranslations: {
902
902
  readonly source: "Source";
903
903
  readonly applied: "Applied on";
904
904
  };
905
+ readonly requisition: {
906
+ readonly lineManager: "Line manager";
907
+ readonly reason: "Reason";
908
+ readonly status: "Status";
909
+ };
905
910
  };
906
911
  readonly credits: {
907
912
  readonly title: "Credits";
@@ -3367,6 +3372,19 @@ declare type DataAttributes_2 = {
3367
3372
  [key: `data-${string}`]: string | undefined;
3368
3373
  };
3369
3374
 
3375
+ /**
3376
+ * Resolves an `F0DataChartEmptyStateProps` config (i18n defaults + overrides
3377
+ * + render-prop) into rendered output. Used internally by `F0DataChart` and
3378
+ * reused by dashboard wrappers when data is absent.
3379
+ */
3380
+ export declare const DataChartEmptyStateView: ({ chartType, emptyState, }: DataChartEmptyStateViewProps) => JSX_2.Element;
3381
+
3382
+ declare interface DataChartEmptyStateViewProps {
3383
+ /** The chart variant — drives the background skeleton illustration. */
3384
+ chartType: F0DataChartProps["type"];
3385
+ emptyState?: F0DataChartEmptyStateProps;
3386
+ }
3387
+
3370
3388
  declare type DataCollectionBaseFetchOptions<Filters extends FiltersDefinition, NavigationFilters extends NavigationFiltersDefinition> = BaseFetchOptions<Filters> & DataCollectionExtendFetchOptions<NavigationFilters>;
3371
3389
 
3372
3390
  /**
@@ -4272,6 +4290,11 @@ export declare const defaultTranslations: {
4272
4290
  readonly source: "Source";
4273
4291
  readonly applied: "Applied on";
4274
4292
  };
4293
+ readonly requisition: {
4294
+ readonly lineManager: "Line manager";
4295
+ readonly reason: "Reason";
4296
+ readonly status: "Status";
4297
+ };
4275
4298
  };
4276
4299
  readonly credits: {
4277
4300
  readonly title: "Credits";
@@ -4395,6 +4418,10 @@ export declare const defaultTranslations: {
4395
4418
  readonly funnel: "Funnel";
4396
4419
  readonly pieChart: "Pie";
4397
4420
  readonly table: "Table";
4421
+ readonly emptyState: {
4422
+ readonly title: "No data available";
4423
+ readonly description: "Try a different date or fewer filters";
4424
+ };
4398
4425
  };
4399
4426
  readonly select: {
4400
4427
  readonly noResults: "No results found";
@@ -6206,7 +6233,7 @@ export declare interface F0DataChartBarSeries {
6206
6233
  color?: ChartColorToken;
6207
6234
  }
6208
6235
 
6209
- declare interface F0DataChartBaseProps {
6236
+ declare interface F0DataChartBaseProps extends F0DataChartCommonProps {
6210
6237
  /** Labels for the category axis (one per data point) */
6211
6238
  categories: string[];
6212
6239
  /** Show the legend below the chart. @default true */
@@ -6223,6 +6250,39 @@ declare interface F0DataChartBaseProps {
6223
6250
  echartsOptions?: Partial<echarts_2.EChartsOption>;
6224
6251
  }
6225
6252
 
6253
+ /**
6254
+ * Props shared by every `F0DataChart` variant.
6255
+ */
6256
+ declare interface F0DataChartCommonProps {
6257
+ /** Customize or opt out of the empty state shown when data is empty. */
6258
+ emptyState?: F0DataChartEmptyStateProps;
6259
+ }
6260
+
6261
+ /**
6262
+ * Configuration for the empty state shown when a chart has no data.
6263
+ *
6264
+ * `F0DataChart` auto-detects empty data across all variants and renders a
6265
+ * default empty state. Use this prop to customize the copy, fully replace
6266
+ * the rendered UI via `render`, or skip detection via `disabled`.
6267
+ */
6268
+ export declare interface F0DataChartEmptyStateProps {
6269
+ /** Override the default headline. */
6270
+ title?: string;
6271
+ /** Override the default supporting copy. */
6272
+ description?: string;
6273
+ /**
6274
+ * Render-prop escape hatch — when provided, replaces the entire empty
6275
+ * state UI. Still gated by the empty-data detection.
6276
+ */
6277
+ render?: () => ReactNode;
6278
+ /**
6279
+ * Skip empty-data detection and render the chart as usual. Use when zero
6280
+ * values are legitimate (e.g. a "0 errors per day" timeline).
6281
+ * @default false
6282
+ */
6283
+ disabled?: boolean;
6284
+ }
6285
+
6226
6286
  /**
6227
6287
  * A single data point in a funnel chart series.
6228
6288
  * Each point has a value and a stage name.
@@ -6242,7 +6302,7 @@ export declare interface F0DataChartFunnelDataPoint {
6242
6302
  * Funnels do NOT use category/value axes — stage names come from the data
6243
6303
  * points themselves. This interface is separate from `F0DataChartBaseProps`.
6244
6304
  */
6245
- export declare interface F0DataChartFunnelProps {
6305
+ export declare interface F0DataChartFunnelProps extends F0DataChartCommonProps {
6246
6306
  /** Chart type */
6247
6307
  type: "funnel";
6248
6308
  /** The funnel series to render */
@@ -6292,7 +6352,7 @@ export declare interface F0DataChartFunnelSeries {
6292
6352
  *
6293
6353
  * A single-value gauge indicator — no axes, no legend.
6294
6354
  */
6295
- export declare interface F0DataChartGaugeProps {
6355
+ export declare interface F0DataChartGaugeProps extends F0DataChartCommonProps {
6296
6356
  /** Chart type */
6297
6357
  type: "gauge";
6298
6358
  /** Current value */
@@ -6320,7 +6380,7 @@ export declare interface F0DataChartGaugeProps {
6320
6380
  * Uses two category axes (x for columns, y for rows) and a visualMap for
6321
6381
  * value→color mapping.
6322
6382
  */
6323
- export declare interface F0DataChartHeatmapProps {
6383
+ export declare interface F0DataChartHeatmapProps extends F0DataChartCommonProps {
6324
6384
  /** Chart type */
6325
6385
  type: "heatmap";
6326
6386
  /** Column labels (x-axis) */
@@ -6406,7 +6466,7 @@ export declare interface F0DataChartPieDataPoint {
6406
6466
  * Pies do NOT use category/value axes — segment names come from the data
6407
6467
  * points themselves. This interface is separate from `F0DataChartBaseProps`.
6408
6468
  */
6409
- export declare interface F0DataChartPieProps {
6469
+ export declare interface F0DataChartPieProps extends F0DataChartCommonProps {
6410
6470
  /** Chart type */
6411
6471
  type: "pie";
6412
6472
  /** The pie series to render */
@@ -6460,7 +6520,7 @@ export declare interface F0DataChartRadarIndicator {
6460
6520
  *
6461
6521
  * Radar charts use a polar coordinate system — no cartesian axes.
6462
6522
  */
6463
- export declare interface F0DataChartRadarProps {
6523
+ export declare interface F0DataChartRadarProps extends F0DataChartCommonProps {
6464
6524
  /** Chart type */
6465
6525
  type: "radar";
6466
6526
  /** Axes of the radar — defines the dimensions to compare */
@@ -11544,15 +11604,18 @@ declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
11544
11604
  content: JSONContent[];
11545
11605
  }
11546
11606
 
11547
- /**
11548
- * Profile data for a requisition entity (ATS requisition), resolved asynchronously
11549
- * and displayed in the entity reference hover card.
11550
- */
11551
11607
  export declare type RequisitionProfile = {
11552
11608
  id: string | number;
11553
11609
  title: string;
11554
11610
  status?: string;
11611
+ statusVariant?: StatusVariant;
11555
11612
  reason?: string;
11613
+ location?: string;
11614
+ lineManager?: {
11615
+ firstName: string;
11616
+ lastName: string;
11617
+ avatarUrl?: string;
11618
+ };
11556
11619
  };
11557
11620
 
11558
11621
  export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordType;
@@ -13694,6 +13757,11 @@ declare module "gridstack" {
13694
13757
  }
13695
13758
 
13696
13759
 
13760
+ declare namespace Calendar {
13761
+ var displayName: string;
13762
+ }
13763
+
13764
+
13697
13765
  declare module "@tiptap/core" {
13698
13766
  interface Commands<ReturnType> {
13699
13767
  enhanceHighlight: {
@@ -13741,8 +13809,3 @@ declare module "@tiptap/core" {
13741
13809
  };
13742
13810
  }
13743
13811
  }
13744
-
13745
-
13746
- declare namespace Calendar {
13747
- var displayName: string;
13748
- }