@factorialco/f0-react 6.52.0 → 6.54.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.
@@ -1605,7 +1605,7 @@ export declare interface CalendarEventProps {
1605
1605
 
1606
1606
  export declare type CalendarMode = "single" | "range";
1607
1607
 
1608
- export declare type CalendarView = "day" | "month" | "year" | "week" | "quarter" | "halfyear";
1608
+ export declare type CalendarView = "day" | "month" | "year" | "week" | "quarter" | "halfyear" | "periods";
1609
1609
 
1610
1610
  declare type CalloutAction = {
1611
1611
  label: string;
@@ -3588,12 +3588,34 @@ declare type DateNavigationOptions_2 = {
3588
3588
  max?: Date;
3589
3589
  presets?: DatePreset[];
3590
3590
  hideGoToCurrent?: boolean;
3591
+ /**
3592
+ * Consumer-defined ranges (payroll cycles, academic terms…) navigable as an
3593
+ * extra entry in the granularity selector, named by its `label`.
3594
+ */
3595
+ periods?: DatePeriodsDefinition;
3591
3596
  };
3592
3597
 
3593
3598
  declare type DateNavigatorFilterDefinition = NavigationFilterDefinitionBase<Date | DateRange | DateValue> & {
3594
3599
  type: "date-navigator";
3595
3600
  } & DateNavigationOptions_2;
3596
3601
 
3602
+ export declare type DatePeriod = {
3603
+ /** Title of the period, e.g. "January 2026" */
3604
+ label: string;
3605
+ /** Overrides the date range rendered under the label */
3606
+ description?: string;
3607
+ from: Date;
3608
+ to: Date;
3609
+ };
3610
+
3611
+ export declare type DatePeriodsDefinition = {
3612
+ /** Label of the entry in the granularity selector, e.g. "Payroll" */
3613
+ label?: string;
3614
+ /** Heading rendered above the period list, e.g. the legal entity the periods belong to */
3615
+ header?: string;
3616
+ periods: DatePeriod[];
3617
+ };
3618
+
3597
3619
  declare type DatePickerCompareTo = Partial<Record<GranularityDefinitionKey, CompareToDef[]>>;
3598
3620
 
3599
3621
  declare interface DatePickerPopupProps {
@@ -3617,6 +3639,11 @@ declare interface DatePickerPopupProps {
3617
3639
  weekStartsOn?: WeekStartsOn;
3618
3640
  /** When true, switching granularity only changes the view; selection and close happen only on a cell click. Default false. */
3619
3641
  selectOnCellOnly?: boolean;
3642
+ /**
3643
+ * Consumer-defined ranges (payroll cycles, academic terms…) offered as an
3644
+ * extra entry in the granularity selector. Its `label` names that entry.
3645
+ */
3646
+ periods?: DatePeriodsDefinition;
3620
3647
  }
3621
3648
 
3622
3649
  export declare type DatePickerValue = {
@@ -4333,6 +4360,11 @@ declare const defaultTranslations: {
4333
4360
  readonly currentDate: "Today";
4334
4361
  readonly label: "Range";
4335
4362
  };
4363
+ readonly periods: {
4364
+ readonly currentDate: "Current period";
4365
+ readonly label: "Periods";
4366
+ readonly empty: "No periods available";
4367
+ };
4336
4368
  };
4337
4369
  readonly month: {
4338
4370
  readonly january: "January";
@@ -8486,8 +8518,14 @@ export declare const getGranularityDefinition: (granularityKey: GranularityDefin
8486
8518
  /**
8487
8519
  * Get granularity definitions with week granularity configured with the specified weekStartsOn.
8488
8520
  * The week granularity is only created when needed (lazy creation).
8521
+ *
8522
+ * The `periods` granularity is only selectable once the consumer supplies its
8523
+ * periods; without them it renders an empty list.
8524
+ *
8525
+ * Accepts a bare `weekStartsOn` for the original call style, or an options
8526
+ * object when more than the week start is configured.
8489
8527
  */
8490
- export declare function getGranularityDefinitions(weekStartsOn?: WeekStartsOn): Record<string, GranularityDefinition>;
8528
+ export declare function getGranularityDefinitions(options?: WeekStartsOn | GranularityDefinitionsOptions): Record<string, GranularityDefinition>;
8491
8529
 
8492
8530
  export declare const getGranularitySimpleDefinition: (granularityKey: GranularityDefinitionKey) => GranularityDefinitionSimple;
8493
8531
 
@@ -8517,6 +8555,12 @@ export declare interface GranularityDefinition {
8517
8555
  calendarMode?: CalendarMode;
8518
8556
  calendarView: CalendarView;
8519
8557
  weekStartsOn?: WeekStartsOn;
8558
+ selectorLabel?: string;
8559
+ hideDateInput?: boolean;
8560
+ getViewDateBounds?: () => {
8561
+ min?: Date;
8562
+ max?: Date;
8563
+ } | undefined;
8520
8564
  label: (viewDate: Date, i18n: TranslationsType, locale?: string) => ReactNode;
8521
8565
  toRangeString: (date: Date | DateRange | undefined | null, i18n: TranslationsType, format?: DateStringFormat) => DateRangeString;
8522
8566
  toRange: <T extends Date | DateRange | undefined | null>(date: T) => T extends Date | DateRange ? DateRangeComplete : T;
@@ -8555,10 +8599,16 @@ export declare const granularityDefinitions: {
8555
8599
  readonly halfyear: GranularityDefinition;
8556
8600
  readonly year: GranularityDefinition;
8557
8601
  readonly range: GranularityDefinition;
8602
+ readonly periods: GranularityDefinition;
8558
8603
  };
8559
8604
 
8560
8605
  export declare type GranularityDefinitionSimple = Pick<GranularityDefinition, "toRangeString" | "toString">;
8561
8606
 
8607
+ export declare type GranularityDefinitionsOptions = {
8608
+ weekStartsOn?: WeekStartsOn;
8609
+ periods?: DatePeriodsDefinition;
8610
+ };
8611
+
8562
8612
  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>>;
8563
8613
 
8564
8614
  /**
@@ -10345,6 +10395,18 @@ export declare interface NewHomeLayoutProps {
10345
10395
  * dragging and the add placeholder; the others stay put. Both by default.
10346
10396
  */
10347
10397
  editableWidgetContainers?: WidgetContainerSide[];
10398
+ /**
10399
+ * Which containers may still be ADDED TO. Narrower than
10400
+ * `editableWidgetContainers`, which it is a subset of: a column not named here
10401
+ * keeps its dragging and its "Remove widget" and only loses the offer to add.
10402
+ *
10403
+ * Defaults to every editable container — the common case, where the catalog
10404
+ * always has something for every column. Name the sides once a column's
10405
+ * catalog can run out: a main column that only ever holds one kind of widget
10406
+ * has nothing to offer the moment that widget is on it, and a "+" that opens
10407
+ * an empty picker is an offer the app cannot keep.
10408
+ */
10409
+ addableWidgetContainers?: WidgetContainerSide[];
10348
10410
  /**
10349
10411
  * Which containers keep ONLY THE WIDGETS YOU CAN SEE in the DOM. None by
10350
10412
  * default: for a Home of a dozen widgets, mounting them all is what keeps a
@@ -10398,7 +10460,10 @@ export declare interface NewHomeLayoutProps {
10398
10460
  * changes. Ignored when `rebuildWidget` is given.
10399
10461
  */
10400
10462
  renderWidgetPreview?: (widget: HomeWidgetItem, params: WidgetParams) => ReactNode;
10401
- /** When set, renders a "+ Add widget" affordance at the bottom of each column. */
10463
+ /**
10464
+ * When set, renders a "+ Add widget" affordance at the bottom of each column
10465
+ * that takes widgets — see `addableWidgetContainers`.
10466
+ */
10402
10467
  onClickAddNewWidget?: (side: WidgetContainerSide) => void;
10403
10468
  /** Called with a side and its widget ids in their new order after a drag. */
10404
10469
  onReorderWidgets?: (side: WidgetContainerSide, ids: string[]) => void;
@@ -10726,7 +10791,7 @@ export declare const OneCalendar: WithDataTestIdReturnType_2< {
10726
10791
  displayName: string;
10727
10792
  }>;
10728
10793
 
10729
- export declare const OneCalendarInternal: ({ mode, view, onSelect, defaultMonth, defaultSelected, showNavigation, showInput, minDate, maxDate, compact, weekStartsOn, selectOnCellOnly, }: OneCalendarInternalProps) => JSX_2.Element;
10794
+ export declare const OneCalendarInternal: ({ mode, view, onSelect, defaultMonth, defaultSelected, showNavigation, showInput, minDate, maxDate, compact, weekStartsOn, selectOnCellOnly, periods, }: OneCalendarInternalProps) => JSX_2.Element;
10730
10795
 
10731
10796
  export declare interface OneCalendarInternalProps {
10732
10797
  mode: CalendarMode;
@@ -10742,6 +10807,8 @@ export declare interface OneCalendarInternalProps {
10742
10807
  weekStartsOn?: WeekStartsOn;
10743
10808
  /** When true, a granularity change updates the view without emitting `onSelect`. Default false. */
10744
10809
  selectOnCellOnly?: boolean;
10810
+ /** Consumer-defined ranges rendered by the `periods` view. */
10811
+ periods?: DatePeriodsDefinition;
10745
10812
  }
10746
10813
 
10747
10814
  export declare type OneCalendarProps = Omit<OneCalendarInternalProps, (typeof privateProps_6)[number]>;
@@ -10875,7 +10942,7 @@ declare type OneDataCollectionProps<R extends RecordType, Filters extends Filter
10875
10942
 
10876
10943
  export declare const OneDateNavigator: typeof _OneDateNavigator;
10877
10944
 
10878
- declare function _OneDateNavigator({ onSelect, defaultValue, presets, granularities, hideNavigation, hideGoToCurrent, compareTo, defaultCompareTo, onCompareToChange, value, dataTestId, ...props }: OneDatePickerProps): JSX_2.Element;
10945
+ declare function _OneDateNavigator({ onSelect, defaultValue, presets, granularities, hideNavigation, hideGoToCurrent, compareTo, defaultCompareTo, onCompareToChange, value, dataTestId, periods, ...props }: OneDatePickerProps): JSX_2.Element;
10879
10946
 
10880
10947
  export declare interface OneDatePickerProps extends Omit<DatePickerPopupProps, "children">, WithDataTestIdProps {
10881
10948
  hideNavigation?: boolean;
@@ -1,6 +1,6 @@
1
- import { t as s, s as t, A as i, a as o, I as r, aq as n, ap as l, ar as d, B as S, v as C, x as g, K as m, ax as u, ay as c, aH as b, w as h, C as P, aw as p, aI as T, z as I, y as F, a2 as E, b0 as A, b7 as B, J as y, a$ as L, E as D, b as W, af as k, ag as v, D as O, am as _, F as x, i as N, l as R, n as f, j as H, c as M, p as V, q as w, H as G, aL as z, aM as U, aA as j, al as Y, aQ as q, as as K, a5 as X, aK as J, T as Q, ab as $, O as Z, bb as aa, U as ea, P as sa, L as ta, M as ia, at as oa, R as ra, aZ as na, b1 as la, S as da, a6 as Sa, a7 as Ca, Z as ga, _ as ma, $ as ua, Y as ca, a0 as ba, V as ha, a1 as Pa, a3 as pa, a4 as Ta, a8 as Ia, a9 as Fa, b5 as Ea, b4 as Aa, ao as Ba, an as ya, av as La, aJ as Da, aG as Wa, au as ka, aa as va, aB as Oa, b6 as _a, b9 as xa, az as Na, aE as Ra, aC as fa, ba as Ha, aF as Ma, aD as Va, b8 as wa, d as Ga, ae as za, b3 as Ua, b2 as ja, ai as Ya, f as qa, k as Ka, o as Xa, g as Ja, h as Qa, aT as $a, aR as Za, aj as ae, ak as ee, aP as se, aS as te, e as ie, r as oe, aX as re, aO as ne, aU as le, ac as de, a_ as Se, u as Ce, ad as ge, ah as me, aN as ue, Q as ce, N as be, G as he, X as Pe, W as pe, aY as Te, aW as Ie, aV as Fe } from "./experimental-hwx4eC1f.js";
2
- import { dN as Ae, eo as Be, en as ye, eA as Le, dk as De, el as We, cd as ke, c3 as ve, ca as Oe, eg as _e, bY as xe, bY as Ne, bR as Re, eh as fe, cg as He, d_ as Me, ci as Ve, eD as we, em as Ge, ew as ze, ex as Ue, d5 as je, eB as Ye, k as qe, dO as Ke, cM as Xe, ek as Je, eq as Qe, ep as $e, T as Ze, h as as, bS as es, ey as ss, eE as ts, ez as is, eC as os, ev as rs, es as ns, eu as ls, er as ds, ei as Ss, ej as Cs, ec as gs, et as ms } from "./F0CanvasPanel-D9QM6A5c.js";
3
- import { aw as cs, ax as bs, a5 as hs, a6 as Ps, a3 as ps, ag as Ts, C as Is, a7 as Fs, aI as Es, ac as As, aH as Bs, af as ys, a4 as Ls, au as Ds, aK as Ws, aJ as ks, am as vs, ah as Os, ap as _s, aN as xs, a2 as Ns, ar as Rs, ao as fs, aj as Hs, aP as Ms, ak as Vs, as as ws, at as Gs, a8 as zs, aL as Us, aM as js, al as Ys, av as qs, aE as Ks, O as Xs, aG as Js, a9 as Qs, aR as $s, ab as Zs, ad as at, ap as et, aO as st, aq as tt, an as it, aQ as ot, aa as rt, W as nt, ae as lt, a1 as dt, $ as St, a0 as Ct, aA as gt, aB as mt, ay as ut, aF as ct, ai as bt, aC as ht, l as Pt, az as pt, aD as Tt, y as It } from "./CoachmarkProvider-D1crauDt.js";
1
+ import { t as s, s as t, A as i, a as o, I as r, aq as n, ap as l, ar as d, B as S, v as C, x as g, K as m, ax as u, ay as c, aH as b, w as h, C as P, aw as p, aI as T, z as I, y as F, a2 as E, b0 as A, b7 as B, J as y, a$ as L, E as D, b as W, af as k, ag as v, D as O, am as _, F as x, i as N, l as R, n as f, j as H, c as M, p as V, q as w, H as G, aL as z, aM as U, aA as j, al as Y, aQ as q, as as K, a5 as X, aK as J, T as Q, ab as $, O as Z, bb as aa, U as ea, P as sa, L as ta, M as ia, at as oa, R as ra, aZ as na, b1 as la, S as da, a6 as Sa, a7 as Ca, Z as ga, _ as ma, $ as ua, Y as ca, a0 as ba, V as ha, a1 as Pa, a3 as pa, a4 as Ta, a8 as Ia, a9 as Fa, b5 as Ea, b4 as Aa, ao as Ba, an as ya, av as La, aJ as Da, aG as Wa, au as ka, aa as va, aB as Oa, b6 as _a, b9 as xa, az as Na, aE as Ra, aC as fa, ba as Ha, aF as Ma, aD as Va, b8 as wa, d as Ga, ae as za, b3 as Ua, b2 as ja, ai as Ya, f as qa, k as Ka, o as Xa, g as Ja, h as Qa, aT as $a, aR as Za, aj as ae, ak as ee, aP as se, aS as te, e as ie, r as oe, aX as re, aO as ne, aU as le, ac as de, a_ as Se, u as Ce, ad as ge, ah as me, aN as ue, Q as ce, N as be, G as he, X as Pe, W as pe, aY as Te, aW as Ie, aV as Fe } from "./experimental-_Kp5AvSm.js";
2
+ import { dN as Ae, eo as Be, en as ye, eA as Le, dk as De, el as We, cd as ke, c3 as ve, ca as Oe, eg as _e, bY as xe, bY as Ne, bR as Re, eh as fe, cg as He, d_ as Me, ci as Ve, eD as we, em as Ge, ew as ze, ex as Ue, d5 as je, eB as Ye, k as qe, dO as Ke, cM as Xe, ek as Je, eq as Qe, ep as $e, T as Ze, h as as, bS as es, ey as ss, eE as ts, ez as is, eC as os, ev as rs, es as ns, eu as ls, er as ds, ei as Ss, ej as Cs, ec as gs, et as ms } from "./F0CanvasPanel-P0IPIS91.js";
3
+ import { aw as cs, ax as bs, a5 as hs, a6 as Ps, a3 as ps, ag as Ts, C as Is, a7 as Fs, aI as Es, ac as As, aH as Bs, af as ys, a4 as Ls, au as Ds, aK as Ws, aJ as ks, am as vs, ah as Os, ap as _s, aN as xs, a2 as Ns, ar as Rs, ao as fs, aj as Hs, aP as Ms, ak as Vs, as as ws, at as Gs, a8 as zs, aL as Us, aM as js, al as Ys, av as qs, aE as Ks, O as Xs, aG as Js, a9 as Qs, aR as $s, ab as Zs, ad as at, ap as et, aO as st, aq as tt, an as it, aQ as ot, aa as rt, W as nt, ae as lt, a1 as dt, $ as St, a0 as Ct, aA as gt, aB as mt, ay as ut, aF as ct, ai as bt, aC as ht, l as Pt, az as pt, aD as Tt, y as It } from "./CoachmarkProvider-ZCp1K6Rh.js";
4
4
  export {
5
5
  cs as AUTO_PER_PAGE_MAX,
6
6
  bs as AUTO_PER_PAGE_MIN_RESERVED_ROWS,
package/dist/f0.d.ts CHANGED
@@ -2180,7 +2180,7 @@ export declare type CalendarDate = {
2180
2180
 
2181
2181
  export declare type CalendarMode = "single" | "range";
2182
2182
 
2183
- export declare type CalendarView = "day" | "month" | "year" | "week" | "quarter" | "halfyear";
2183
+ export declare type CalendarView = "day" | "month" | "year" | "week" | "quarter" | "halfyear" | "periods";
2184
2184
 
2185
2185
  /**
2186
2186
  * Profile data for a candidate entity (ATS applicant), resolved asynchronously
@@ -4454,12 +4454,34 @@ declare type DateNavigationOptions_2 = {
4454
4454
  max?: Date;
4455
4455
  presets?: DatePreset[];
4456
4456
  hideGoToCurrent?: boolean;
4457
+ /**
4458
+ * Consumer-defined ranges (payroll cycles, academic terms…) navigable as an
4459
+ * extra entry in the granularity selector, named by its `label`.
4460
+ */
4461
+ periods?: DatePeriodsDefinition;
4457
4462
  };
4458
4463
 
4459
4464
  declare type DateNavigatorFilterDefinition = NavigationFilterDefinitionBase<Date | DateRange | DateValue> & {
4460
4465
  type: "date-navigator";
4461
4466
  } & DateNavigationOptions_2;
4462
4467
 
4468
+ export declare type DatePeriod = {
4469
+ /** Title of the period, e.g. "January 2026" */
4470
+ label: string;
4471
+ /** Overrides the date range rendered under the label */
4472
+ description?: string;
4473
+ from: Date;
4474
+ to: Date;
4475
+ };
4476
+
4477
+ export declare type DatePeriodsDefinition = {
4478
+ /** Label of the entry in the granularity selector, e.g. "Payroll" */
4479
+ label?: string;
4480
+ /** Heading rendered above the period list, e.g. the legal entity the periods belong to */
4481
+ header?: string;
4482
+ periods: DatePeriod[];
4483
+ };
4484
+
4463
4485
  declare type DatePickerCompareTo = Partial<Record<GranularityDefinitionKey, CompareToDef[]>>;
4464
4486
 
4465
4487
  declare interface DatePickerPopupProps {
@@ -4483,6 +4505,11 @@ declare interface DatePickerPopupProps {
4483
4505
  weekStartsOn?: WeekStartsOn;
4484
4506
  /** When true, switching granularity only changes the view; selection and close happen only on a cell click. Default false. */
4485
4507
  selectOnCellOnly?: boolean;
4508
+ /**
4509
+ * Consumer-defined ranges (payroll cycles, academic terms…) offered as an
4510
+ * extra entry in the granularity selector. Its `label` names that entry.
4511
+ */
4512
+ periods?: DatePeriodsDefinition;
4486
4513
  }
4487
4514
 
4488
4515
  export declare const datepickerSizes: readonly ["sm", "md"];
@@ -5196,6 +5223,11 @@ export declare const defaultTranslations: {
5196
5223
  readonly currentDate: "Today";
5197
5224
  readonly label: "Range";
5198
5225
  };
5226
+ readonly periods: {
5227
+ readonly currentDate: "Current period";
5228
+ readonly label: "Periods";
5229
+ readonly empty: "No periods available";
5230
+ };
5199
5231
  };
5200
5232
  readonly month: {
5201
5233
  readonly january: "January";
@@ -13882,8 +13914,14 @@ export declare const getGranularityDefinition: (granularityKey: GranularityDefin
13882
13914
  /**
13883
13915
  * Get granularity definitions with week granularity configured with the specified weekStartsOn.
13884
13916
  * The week granularity is only created when needed (lazy creation).
13917
+ *
13918
+ * The `periods` granularity is only selectable once the consumer supplies its
13919
+ * periods; without them it renders an empty list.
13920
+ *
13921
+ * Accepts a bare `weekStartsOn` for the original call style, or an options
13922
+ * object when more than the week start is configured.
13885
13923
  */
13886
- export declare function getGranularityDefinitions(weekStartsOn?: WeekStartsOn): Record<string, GranularityDefinition>;
13924
+ export declare function getGranularityDefinitions(options?: WeekStartsOn | GranularityDefinitionsOptions): Record<string, GranularityDefinition>;
13887
13925
 
13888
13926
  export declare const getGranularitySimpleDefinition: (granularityKey: GranularityDefinitionKey) => GranularityDefinitionSimple;
13889
13927
 
@@ -13901,6 +13939,12 @@ export declare interface GranularityDefinition {
13901
13939
  calendarMode?: CalendarMode;
13902
13940
  calendarView: CalendarView;
13903
13941
  weekStartsOn?: WeekStartsOn;
13942
+ selectorLabel?: string;
13943
+ hideDateInput?: boolean;
13944
+ getViewDateBounds?: () => {
13945
+ min?: Date;
13946
+ max?: Date;
13947
+ } | undefined;
13904
13948
  label: (viewDate: Date, i18n: TranslationsType, locale?: string) => ReactNode;
13905
13949
  toRangeString: (date: Date | DateRange | undefined | null, i18n: TranslationsType, format?: DateStringFormat) => DateRangeString;
13906
13950
  toRange: <T extends Date | DateRange | undefined | null>(date: T) => T extends Date | DateRange ? DateRangeComplete : T;
@@ -13939,10 +13983,16 @@ export declare const granularityDefinitions: {
13939
13983
  readonly halfyear: GranularityDefinition;
13940
13984
  readonly year: GranularityDefinition;
13941
13985
  readonly range: GranularityDefinition;
13986
+ readonly periods: GranularityDefinition;
13942
13987
  };
13943
13988
 
13944
13989
  export declare type GranularityDefinitionSimple = Pick<GranularityDefinition, "toRangeString" | "toString">;
13945
13990
 
13991
+ export declare type GranularityDefinitionsOptions = {
13992
+ weekStartsOn?: WeekStartsOn;
13993
+ periods?: DatePeriodsDefinition;
13994
+ };
13995
+
13946
13996
  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>>;
13947
13997
 
13948
13998
  /**
@@ -15905,7 +15955,7 @@ export declare const OneCalendar: WithDataTestIdReturnType_3< {
15905
15955
  displayName: string;
15906
15956
  }>;
15907
15957
 
15908
- export declare const OneCalendarInternal: ({ mode, view, onSelect, defaultMonth, defaultSelected, showNavigation, showInput, minDate, maxDate, compact, weekStartsOn, selectOnCellOnly, }: OneCalendarInternalProps) => JSX_2.Element;
15958
+ export declare const OneCalendarInternal: ({ mode, view, onSelect, defaultMonth, defaultSelected, showNavigation, showInput, minDate, maxDate, compact, weekStartsOn, selectOnCellOnly, periods, }: OneCalendarInternalProps) => JSX_2.Element;
15909
15959
 
15910
15960
  export declare interface OneCalendarInternalProps {
15911
15961
  mode: CalendarMode;
@@ -15921,6 +15971,8 @@ export declare interface OneCalendarInternalProps {
15921
15971
  weekStartsOn?: WeekStartsOn;
15922
15972
  /** When true, a granularity change updates the view without emitting `onSelect`. Default false. */
15923
15973
  selectOnCellOnly?: boolean;
15974
+ /** Consumer-defined ranges rendered by the `periods` view. */
15975
+ periods?: DatePeriodsDefinition;
15924
15976
  }
15925
15977
 
15926
15978
  export declare type OneCalendarProps = Omit<OneCalendarInternalProps, (typeof privateProps_6)[number]>;
package/dist/f0.js CHANGED
@@ -1,18 +1,18 @@
1
- import { hY as hN, w as st, e3 as D_, cs as dn, hm as dN, bX as An, fl as $V, hZ as UV, h_ as vN, r as Jt, c3 as cf, h$ as YV, i0 as Nw, i1 as Mr, i2 as qa, i3 as XV, u as ze, bV as rp, i4 as qi, i5 as Yl, i6 as pN, bU as vl, hj as Yy, i7 as qV, S as re, s as A_, i8 as ZV, i9 as jV, ia as Iw, cy as KV, ib as QV, ic as JV, id as gN, ie as eF, t as np, v as ip, m as it, x as ap, y as Gr, O as tF, Q as rF, z as Zo, A as jo, ax as La, B as Ko, gt as Xy, d3 as xt, V as nt, ah as Dl, d4 as Na, dg as M_, ig as nF, cl as iF, cm as kw, n as mN, o as Al, bW as Lc, cn as aF, eA as Ad, e1 as yN, ih as oF, hl as Pw, d6 as sF, ii as Rw, db as lF, ij as uF, c0 as bN, dZ as _N, gc as qy, dk as cF, a7 as Zy, a6 as xN, gP as Xl, gQ as ff, gS as wN, hs as fF, gr as SN, d9 as CN, gq as hF, ik as op, b3 as E_, h6 as dF, c8 as TN, fZ as vF, au as pF, hT as L_, b6 as DN, c4 as gF, c5 as mF, c6 as yF, d as bF, bB as AN, ai as ls, bH as MN, b2 as EN, ag as N_, bJ as LN, X as I_, G as pl, H as gl, K as ml, L as yl, gu as Di, $ as NN, j as _F, b0 as Md, as as Ml, J as Nr, ek as xF, bS as IN, b4 as jy, cp as Nc, ci as wF, aS as hf, aq as ql, dF as kN, ds as SF, g$ as Or, il as CF, im as TF, io as PN, ip as sp, iq as DF, ir as AF, cD as Jn, R as RN, U as ON, ch as MF, is as EF, ca as BN, dX as LF, dY as NF, bP as bl, da as Zl, e6 as jl, eY as df, bK as IF, e4 as kF, br as PF, ak as zN, de as RF, aj as OF, aW as Ow, bF as Ic, b as VN, eW as k_, cg as BF, aZ as zF, l as FN, a8 as VF, a5 as FF, it as GF, iu as HF, iv as WF, hp as $F, cM as UF, c2 as YF, cE as GN, iw as HN, ix as XF, iy as qF, I as ZF, iz as jF, iA as KF, iB as QF, iC as JF } from "./F0CanvasPanel-D9QM6A5c.js";
2
- import { iT as Vhe, C as Fhe, D as Ghe, dz as Hhe, c as Whe, F as $he, a as Uhe, iM as Yhe, f as Xhe, cw as qhe, dA as Zhe, e8 as jhe, cb as Khe, cc as Qhe, cu as Jhe, c9 as ede, cv as tde, dm as rde, eg as nde, g as ide, c7 as ade, bY as ode, iH as sde, iY as lde, bR as ude, e as cde, d_ as fde, k as hde, cx as dde, iO as vde, dJ as pde, iP as gde, iR as mde, iS as yde, eD as bde, iV as _de, ew as xde, ex as wde, P as Sde, eB as Cde, iQ as Tde, ey as Dde, iU as Ade, iZ as Mde, iE as Ede, iF as Lde, iG as Nde, iD as Ide, ez as kde, iX as Pde, iN as Rde, iK as Ode, iJ as Bde, eC as zde, go as Vde, h7 as Fde, iW as Gde, dC as Hde, ev as Wde, es as $de, eu as Ude, er as Yde, iL as Xde, h9 as qde, h3 as Zde, gT as jde, j0 as Kde, ec as Qde, et as Jde, i$ as eve, dR as tve, ce as rve, gn as nve, gU as ive, dU as ave, hr as ove, dB as sve, cf as lve, iI as uve, h5 as cve, h4 as fve, i_ as hve } from "./F0CanvasPanel-D9QM6A5c.js";
1
+ import { hY as hN, w as st, e3 as D_, cs as dn, hm as dN, bX as An, fl as $V, hZ as UV, h_ as vN, r as Jt, c3 as cf, h$ as YV, i0 as Nw, i1 as Mr, i2 as qa, i3 as XV, u as ze, bV as rp, i4 as qi, i5 as Yl, i6 as pN, bU as vl, hj as Yy, i7 as qV, S as re, s as A_, i8 as ZV, i9 as jV, ia as Iw, cy as KV, ib as QV, ic as JV, id as gN, ie as eF, t as np, v as ip, m as it, x as ap, y as Gr, O as tF, Q as rF, z as Zo, A as jo, ax as La, B as Ko, gt as Xy, d3 as xt, V as nt, ah as Dl, d4 as Na, dg as M_, ig as nF, cl as iF, cm as kw, n as mN, o as Al, bW as Lc, cn as aF, eA as Ad, e1 as yN, ih as oF, hl as Pw, d6 as sF, ii as Rw, db as lF, ij as uF, c0 as bN, dZ as _N, gc as qy, dk as cF, a7 as Zy, a6 as xN, gP as Xl, gQ as ff, gS as wN, hs as fF, gr as SN, d9 as CN, gq as hF, ik as op, b3 as E_, h6 as dF, c8 as TN, fZ as vF, au as pF, hT as L_, b6 as DN, c4 as gF, c5 as mF, c6 as yF, d as bF, bB as AN, ai as ls, bH as MN, b2 as EN, ag as N_, bJ as LN, X as I_, G as pl, H as gl, K as ml, L as yl, gu as Di, $ as NN, j as _F, b0 as Md, as as Ml, J as Nr, ek as xF, bS as IN, b4 as jy, cp as Nc, ci as wF, aS as hf, aq as ql, dF as kN, ds as SF, g$ as Or, il as CF, im as TF, io as PN, ip as sp, iq as DF, ir as AF, cD as Jn, R as RN, U as ON, ch as MF, is as EF, ca as BN, dX as LF, dY as NF, bP as bl, da as Zl, e6 as jl, eY as df, bK as IF, e4 as kF, br as PF, ak as zN, de as RF, aj as OF, aW as Ow, bF as Ic, b as VN, eW as k_, cg as BF, aZ as zF, l as FN, a8 as VF, a5 as FF, it as GF, iu as HF, iv as WF, hp as $F, cM as UF, c2 as YF, cE as GN, iw as HN, ix as XF, iy as qF, I as ZF, iz as jF, iA as KF, iB as QF, iC as JF } from "./F0CanvasPanel-P0IPIS91.js";
2
+ import { iT as Vhe, C as Fhe, D as Ghe, dz as Hhe, c as Whe, F as $he, a as Uhe, iM as Yhe, f as Xhe, cw as qhe, dA as Zhe, e8 as jhe, cb as Khe, cc as Qhe, cu as Jhe, c9 as ede, cv as tde, dm as rde, eg as nde, g as ide, c7 as ade, bY as ode, iH as sde, iY as lde, bR as ude, e as cde, d_ as fde, k as hde, cx as dde, iO as vde, dJ as pde, iP as gde, iR as mde, iS as yde, eD as bde, iV as _de, ew as xde, ex as wde, P as Sde, eB as Cde, iQ as Tde, ey as Dde, iU as Ade, iZ as Mde, iE as Ede, iF as Lde, iG as Nde, iD as Ide, ez as kde, iX as Pde, iN as Rde, iK as Ode, iJ as Bde, eC as zde, go as Vde, h7 as Fde, iW as Gde, dC as Hde, ev as Wde, es as $de, eu as Ude, er as Yde, iL as Xde, h9 as qde, h3 as Zde, gT as jde, j0 as Kde, ec as Qde, et as Jde, i$ as eve, dR as tve, ce as rve, gn as nve, gU as ive, dU as ave, hr as ove, dB as sve, cf as lve, iI as uve, h5 as cve, h4 as fve, i_ as hve } from "./F0CanvasPanel-P0IPIS91.js";
3
3
  import { jsx as x, jsxs as B, Fragment as at } from "react/jsx-runtime";
4
- import { C as e5, W as t5, G as r5, H as n5, I as i5, J as Bw, aS as a5, aT as o5, Z as s5, K as l5, Q as u5, U as c5, Y as f5, r as h5, a2 as WN, aU as d5, aV as v5, aW as p5, aX as g5, aY as m5, aZ as $N, a_ as y5, n as P_, a$ as Za, b0 as b5, z as R_, b1 as O_, af as _5, b2 as x5, b3 as Cs, b4 as UN, b5 as w5, b6 as S5, b7 as C5, b8 as T5, b9 as D5, ba as A5, ar as M5, aH as E5, bb as L5, am as N5, E as I5, a as k5, j as lp, R as B_, k as z_, ap as YN, O as V_, bc as XN, bd as zw, be as F_, a3 as P5, bf as Vw, F as R5, l as qN, av as ZN, bg as O5, bh as B5, bi as z5, bj as Ts, bk as V5, aI as F5, M as G5 } from "./CoachmarkProvider-D1crauDt.js";
5
- import { a5 as vve, a6 as pve, ag as gve, a7 as mve, ac as yve, bG as bve, bF as _ve, by as xve, bm as wve, bl as Sve, bn as Cve, bo as Tve, bq as Dve, D as Ave, aK as Mve, aJ as Eve, aN as Lve, ao as Nve, aj as Ive, aP as kve, ak as Pve, a8 as Rve, bH as Ove, aL as Bve, aM as zve, al as Vve, a9 as Fve, P as Gve, ab as Hve, ad as Wve, aO as $ve, an as Uve, aQ as Yve, aa as Xve, ae as qve, bJ as Zve, a1 as jve, $ as Kve, a0 as Qve, bx as Jve, bD as epe, bD as tpe, bE as rpe, bt as npe, bs as ipe, bI as ape, aF as ope, bv as spe, bw as lpe, ai as upe, bK as cpe, bL as fpe, X as hpe, m as dpe, bz as vpe, bA as ppe, bB as gpe, bp as mpe, bu as ype, o as bpe, bC as _pe, br as xpe, bM as wpe } from "./CoachmarkProvider-D1crauDt.js";
4
+ import { C as e5, W as t5, G as r5, H as n5, I as i5, J as Bw, aS as a5, aT as o5, Z as s5, K as l5, Q as u5, U as c5, Y as f5, r as h5, a2 as WN, aU as d5, aV as v5, aW as p5, aX as g5, aY as m5, aZ as $N, a_ as y5, n as P_, a$ as Za, b0 as b5, z as R_, b1 as O_, af as _5, b2 as x5, b3 as Cs, b4 as UN, b5 as w5, b6 as S5, b7 as C5, b8 as T5, b9 as D5, ba as A5, ar as M5, aH as E5, bb as L5, am as N5, E as I5, a as k5, j as lp, R as B_, k as z_, ap as YN, O as V_, bc as XN, bd as zw, be as F_, a3 as P5, bf as Vw, F as R5, l as qN, av as ZN, bg as O5, bh as B5, bi as z5, bj as Ts, bk as V5, aI as F5, M as G5 } from "./CoachmarkProvider-ZCp1K6Rh.js";
5
+ import { a5 as vve, a6 as pve, ag as gve, a7 as mve, ac as yve, bG as bve, bF as _ve, by as xve, bm as wve, bl as Sve, bn as Cve, bo as Tve, bq as Dve, D as Ave, aK as Mve, aJ as Eve, aN as Lve, ao as Nve, aj as Ive, aP as kve, ak as Pve, a8 as Rve, bH as Ove, aL as Bve, aM as zve, al as Vve, a9 as Fve, P as Gve, ab as Hve, ad as Wve, aO as $ve, an as Uve, aQ as Yve, aa as Xve, ae as qve, bJ as Zve, a1 as jve, $ as Kve, a0 as Qve, bx as Jve, bD as epe, bD as tpe, bE as rpe, bt as npe, bs as ipe, bI as ape, aF as ope, bv as spe, bw as lpe, ai as upe, bK as cpe, bL as fpe, X as hpe, m as dpe, bz as vpe, bA as ppe, bB as gpe, bp as mpe, bu as ype, o as bpe, bC as _pe, br as xpe, bM as wpe } from "./CoachmarkProvider-ZCp1K6Rh.js";
6
6
  import * as wt from "react";
7
7
  import H5, { forwardRef as Dr, useRef as ae, useImperativeHandle as W5, Children as Ed, createContext as Fa, useContext as us, useState as ue, useMemo as ye, useEffect as we, useCallback as ve, useLayoutEffect as Ld, isValidElement as jN, Fragment as Kl, useSyncExternalStore as El, useId as pc, memo as $5 } from "react";
8
8
  import { createPortal as vf } from "react-dom";
9
9
  import { d as ie, g as pf, h as U5, i as ol, P as gf, u as Ql, j as Y5, f as Ga } from "./tooltip-DTpaXpXW.js";
10
- import { l as Ky, c as KN, d as Nd, r as Qy } from "./F0VideoPlayer-Czdae49M.js";
11
- import { F as Cpe } from "./F0VideoPlayer-Czdae49M.js";
12
- import { F as Dpe, p as Ape } from "./index-CBvQMzjP.js";
13
- import { c as Epe } from "./pdfWorker-BpY_xYql.js";
14
- import { D as X5, E as Id, G as G_, H as QN, I as JN, J as q5, K as Z5, L as j5, M as K5, N as Q5, F as J5 } from "./F0AiProcessingOverlay-B_jVVBb3.js";
15
- import { A as Npe, C as Ipe, t as kpe, s as Ppe, v as Rpe, y as Ope, l as Bpe, i as zpe, q as Vpe, z as Fpe, B as Gpe, p as Hpe, r as Wpe, j as $pe, e as Upe, g as Ype, k as Xpe, T as qpe, w as Zpe, h as jpe, a as Kpe, n as Qpe, m as Jpe, o as ege, b as tge, f as rge, x as nge, c as ige, d as age, u as oge } from "./F0AiProcessingOverlay-B_jVVBb3.js";
10
+ import { l as Ky, c as KN, d as Nd, r as Qy } from "./F0VideoPlayer-DI5WBHDp.js";
11
+ import { F as Cpe } from "./F0VideoPlayer-DI5WBHDp.js";
12
+ import { F as Dpe, p as Ape } from "./index-DPASot_7.js";
13
+ import { c as Epe } from "./pdfWorker-C1bH1MyO.js";
14
+ import { D as X5, E as Id, G as G_, H as QN, I as JN, J as q5, K as Z5, L as j5, M as K5, N as Q5, F as J5 } from "./F0AiProcessingOverlay-lHMypgLk.js";
15
+ import { A as Npe, C as Ipe, t as kpe, s as Ppe, v as Rpe, y as Ope, l as Bpe, i as zpe, q as Vpe, z as Fpe, B as Gpe, p as Hpe, r as Wpe, j as $pe, e as Upe, g as Ype, k as Xpe, T as qpe, w as Zpe, h as jpe, a as Kpe, n as Qpe, m as Jpe, o as ege, b as tge, f as rge, x as nge, c as ige, d as age, u as oge } from "./F0AiProcessingOverlay-lHMypgLk.js";
16
16
  import { g as eG } from "./_commonjsHelpers-ByX85dGu.js";
17
17
  import { utils as _l, write as eI } from "./xlsx-CzlURDDb.js";
18
18
  import { defaultTranslations as lge } from "./i18n-provider-defaults.js";
@@ -593,6 +593,11 @@ export declare const defaultTranslations: {
593
593
  readonly currentDate: "Today";
594
594
  readonly label: "Range";
595
595
  };
596
+ readonly periods: {
597
+ readonly currentDate: "Current period";
598
+ readonly label: "Periods";
599
+ readonly empty: "No periods available";
600
+ };
596
601
  };
597
602
  readonly month: {
598
603
  readonly january: "January";
@@ -592,6 +592,11 @@ const e = {
592
592
  range: {
593
593
  currentDate: "Today",
594
594
  label: "Range"
595
+ },
596
+ periods: {
597
+ currentDate: "Current period",
598
+ label: "Periods",
599
+ empty: "No periods available"
595
600
  }
596
601
  },
597
602
  month: {
@@ -0,0 +1,4 @@
1
+ import { F as r } from "./F0VideoPlayer-DI5WBHDp.js";
2
+ export {
3
+ r as F0VideoPlayer
4
+ };
@@ -1,7 +1,7 @@
1
- import { S as L, m as ye, u as Z, n as Se, o as Re, i as ke, j as _e, k as Ne, q as Ce, l as Le, w as Fe, r as Ve, s as Te } from "./F0CanvasPanel-D9QM6A5c.js";
1
+ import { S as L, m as ye, u as Z, n as Se, o as Re, i as ke, j as _e, k as Ne, q as Ce, l as Le, w as Fe, r as Ve, s as Te } from "./F0CanvasPanel-P0IPIS91.js";
2
2
  import { jsx as t, jsxs as y } from "react/jsx-runtime";
3
3
  import { lazy as J, forwardRef as ne, Suspense as He, useState as V, useRef as A, useMemo as te, useCallback as w, useEffect as T } from "react";
4
- import { e as Ee, D as Ue, P as je, c as De } from "./pdfWorker-BpY_xYql.js";
4
+ import { e as Ee, D as Ue, P as je, c as De } from "./pdfWorker-C1bH1MyO.js";
5
5
  import { F as We } from "./Printer-BD-FEi_2.js";
6
6
  import { d as ae } from "./tooltip-DTpaXpXW.js";
7
7
  import './index.css';const Oe = ({
@@ -222,7 +222,7 @@ import './index.css';const Oe = ({
222
222
  }), i;
223
223
  };
224
224
  Ee();
225
- const qe = J(() => import("./SheetViewer-rS-lxOWo.js")), Ge = J(() => import("./DocxViewer-BYC6ILzw.js")), Ze = J(() => import("./TextViewer-D_ddwlEE.js")), oe = 48, se = ne(
225
+ const qe = J(() => import("./SheetViewer-BmzPRFam.js")), Ge = J(() => import("./DocxViewer-C-BIw4US.js")), Ze = J(() => import("./TextViewer-Dc3lGJBv.js")), oe = 48, se = ne(
226
226
  (o, a) => {
227
227
  const { kind: e = "pdf", mimeType: i, ...l } = o;
228
228
  if (e === "pdf") return /* @__PURE__ */ t(le, { ref: a, ...l });
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { createContext, useReducer, forwardRef, useRef, useImperativeHandle, useEffect, useCallback, useMemo, useContext, useLayoutEffect } from "react";
3
3
  import { e as clsx } from "./tooltip-DTpaXpXW.js";
4
- import { W as invariant } from "./F0CanvasPanel-D9QM6A5c.js";
5
- import { d as dequal } from "./CoachmarkProvider-D1crauDt.js";
4
+ import { W as invariant } from "./F0CanvasPanel-P0IPIS91.js";
5
+ import { d as dequal } from "./CoachmarkProvider-ZCp1K6Rh.js";
6
6
  import { a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./_commonjsHelpers-ByX85dGu.js";
7
7
  import { c as commonjsRequire } from "./_commonjs-dynamic-modules-BpilXLfW.js";
8
8
  import './pdfWorker.css';var pdf$1 = { exports: {} };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "6.52.0",
3
+ "version": "6.54.0",
4
4
  "private": false,
5
5
  "files": [
6
6
  "assets",
@@ -1,4 +0,0 @@
1
- import { F as r } from "./F0VideoPlayer-Czdae49M.js";
2
- export {
3
- r as F0VideoPlayer
4
- };