- Name
service- Kind
- parameter
- Type
DateRangePickerService- Requirement
- required
DocsAPI referenceHeadlessdate-range-picker
date-range-picker headless API
The core connector and vanilla mount are always visible. Use the framework choice to inspect native composition, props, outputs, context and hooks for the selected adapter.
@grassroot/ui-headless-core/date-range-picker
Core connector and vanilla API
activateDateRangePickerLayer
functiondeclare function activateDateRangePickerLayer(service: DateRangePickerService, scope: PartScope, doc: Document): () => void;serviceDateRangePickerServicescopePartScopedocDocumentreturn() => void- Name
scope- Kind
- parameter
- Type
PartScope- Requirement
- required
- Name
doc- Kind
- parameter
- Type
Document- Requirement
- required
- Name
return- Kind
- return value
- Type
() => void- Requirement
- n/a
connectDateRangePicker
functiondeclare function connectDateRangePicker(service: DateRangePickerService, scope: PartScope, options?: DateRangePickerConnectOptions): DateRangePickerApi;serviceDateRangePickerServicescopePartScopeoptionsDateRangePickerConnectOptionsreturnDateRangePickerApi- Name
service- Kind
- parameter
- Type
DateRangePickerService- Requirement
- required
- Name
scope- Kind
- parameter
- Type
PartScope- Requirement
- required
- Name
options- Kind
- parameter
- Type
DateRangePickerConnectOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
DateRangePickerApi- Requirement
- n/a
DateRangeChangeDetail
interfaceinterface DateRangeChangeDetail { readonly value: DateRange; readonly reason: DateRangePickerReason;}reasonDateRangePickerReasonvalueDateRange- Name
reason- Kind
- property
- Type
DateRangePickerReason- Requirement
- required
- Name
value- Kind
- property
- Type
DateRange- Requirement
- required
dateRangePickerAnatomy
valueexport declare const dateRangePickerAnatomy: { readonly scope: "date-range-picker"; readonly parts: readonly ["root", "trigger", "content", "previous", "next", "label", "grid", "weekday", "preset", "cell", "band", "day", "footer"];};partsreadonly ["root", "trigger", "content", "previous", "next", "label", "grid", "weekday", "preset", "cell", "band", "day", "footer"]scope"date-range-picker"- Name
parts- Kind
- property
- Type
readonly ["root", "trigger", "content", "previous", "next", "label", "grid", "weekday", "preset", "cell", "band", "day", "footer"]- Requirement
- required
- Name
scope- Kind
- property
- Type
"date-range-picker"- Requirement
- required
DateRangePickerApi
interfaceinterface DateRangePickerApi { rootProps(): PartProps; triggerProps(): PartProps; contentProps(): PartProps; previousProps(): PartProps; nextProps(): PartProps; labelProps(): PartProps; gridProps(): PartProps; weekdayProps(index: number): PartProps; presetProps(index: number): PartProps; cellProps(index: number): PartProps; bandProps(index: number): PartProps | undefined; dayProps(index: number): PartProps; footerProps(): PartProps; days(): readonly DateRangeDay[]; presets(): readonly string[]; readonly range: DateRange; readonly hover: string | null; readonly open: boolean; readonly year: number; readonly month: number; destroy(): void;}bandProps(index: number) => PartProps | undefinedcellProps(index: number) => PartPropscontentProps() => PartPropsdayProps(index: number) => PartPropsdays() => readonly DateRangeDay[]destroy() => voidgridProps() => PartPropshoverstring | nulllabelProps() => PartPropsmonthnumbernextProps() => PartPropsopenbooleanpresetProps(index: number) => PartProps- Name
bandProps- Kind
- method
- Type
(index: number) => PartProps | undefined- Requirement
- required
- Name
cellProps- Kind
- method
- Type
(index: number) => PartProps- Requirement
- required
- Name
contentProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
dayProps- Kind
- method
- Type
(index: number) => PartProps- Requirement
- required
- Name
days- Kind
- method
- Type
() => readonly DateRangeDay[]- Requirement
- required
- Name
destroy- Kind
- method
- Type
() => void- Requirement
- required
- Name
footerProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
gridProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
hover- Kind
- property
- Type
string | null- Requirement
- required
- Name
labelProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
month- Kind
- property
- Type
number- Requirement
- required
- Name
nextProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
open- Kind
- property
- Type
boolean- Requirement
- required
- Name
presetProps- Kind
- method
- Type
(index: number) => PartProps- Requirement
- required
- Name
presets- Kind
- method
- Type
() => readonly string[]- Requirement
- required
- Name
previousProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
range- Kind
- property
- Type
DateRange- Requirement
- required
- Name
rootProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
triggerProps- Kind
- method
- Type
() => PartProps- Requirement
- required
- Name
weekdayProps- Kind
- method
- Type
(index: number) => PartProps- Requirement
- required
- Name
year- Kind
- property
- Type
number- Requirement
- required
DateRangePickerConnectOptions
interfaceinterface DateRangePickerConnectOptions { readonly ariaLabel?: string; readonly dayLabel?: (value: string) => string; readonly messages?: Partial<DateRangePickerMessages>; readonly onValueChange?: (detail: DateRangeChangeDetail) => void;}ariaLabelstringdayLabel(value: string) => stringmessagesPartial<DateRangePickerMessages>onValueChange(detail: DateRangeChangeDetail) => void- Name
ariaLabel- Kind
- property
- Type
string- Requirement
- optional
- Name
dayLabel- Kind
- property
- Type
(value: string) => string- Requirement
- optional
- Name
messages- Kind
- property
- Type
Partial<DateRangePickerMessages>- Requirement
- optional
- Name
onValueChange- Kind
- property
- Type
(detail: DateRangeChangeDetail) => void- Requirement
- optional
dateRangePickerMessages
valueexport declare const dateRangePickerMessages: DateRangePickerMessages;type DateRangePickerMessages = Pick<MessageTable, "rootLabel" | "contentLabel" | "previousMonthLabel" | "nextMonthLabel">;DateRangePickerMount
interfaceinterface DateRangePickerMount { readonly service: DateRangePickerService; readonly connector: DateRangePickerApi; readonly root: HTMLElement; destroy(): void;}connectorDateRangePickerApidestroy() => voidrootHTMLElementserviceDateRangePickerService- Name
connector- Kind
- property
- Type
DateRangePickerApi- Requirement
- required
- Name
destroy- Kind
- method
- Type
() => void- Requirement
- required
- Name
root- Kind
- property
- Type
HTMLElement- Requirement
- required
- Name
service- Kind
- property
- Type
DateRangePickerService- Requirement
- required
DateRangePickerPart
typetype DateRangePickerPart = (typeof dateRangePickerAnatomy.parts)[number];type DateRangePickerService = Service<DateRangePickerInput, "ready", DateRangePickerContext, DateRangePickerEvent, DateRangePickerCommand>;mountDateRangePicker
functiondeclare function mountDateRangePicker(container: HTMLElement, options?: MountDateRangePickerOptions): DateRangePickerMount;containerHTMLElementoptionsMountDateRangePickerOptionsreturnDateRangePickerMount- Name
container- Kind
- parameter
- Type
HTMLElement- Requirement
- required
- Name
options- Kind
- parameter
- Type
MountDateRangePickerOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
DateRangePickerMount- Requirement
- n/a
MountDateRangePickerOptions
interfaceinterface MountDateRangePickerOptions extends DateRangePickerInput, Pick<DateRangePickerConnectOptions, "ariaLabel" | "dayLabel" | "messages"> { readonly onValueChange?: (detail: DateRangeChangeDetail) => void;}onValueChange(detail: DateRangeChangeDetail) => void- Name
onValueChange- Kind
- property
- Type
(detail: DateRangeChangeDetail) => void- Requirement
- optional
runDateRangePickerCommand
functiondeclare function runDateRangePickerCommand(command: DateRangePickerCommand, options?: DateRangePickerConnectOptions): void;commandDateRangePickerCommandoptionsDateRangePickerConnectOptionsreturnvoid- Name
command- Kind
- parameter
- Type
DateRangePickerCommand- Requirement
- required
- Name
options- Kind
- parameter
- Type
DateRangePickerConnectOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
void- Requirement
- n/a
Framework adapters
Each panel keeps its adapter's public vocabulary. React compound exports, Vue composables, standalone Angular declarations, Svelte components, and Solid hooks stay native to their framework.
React imports
import { Root, RootProvider } from "@grassroot/ui-headless-react/date-range-picker";Vue imports
<script setup lang="ts">import { Root, RootProvider } from "@grassroot/ui-headless-vue/date-range-picker";</script>Angular imports
import { GrDateRangePickerRoot, GrDateRangePickerRootProvider } from "@grassroot/ui-headless-angular/date-range-picker";Svelte imports
<script lang="ts"> import { Root } from "@grassroot/ui-headless-svelte/date-range-picker";</script>Solid imports
import { Root, RootProvider } from "@grassroot/ui-headless-solid/date-range-picker";@grassroot/ui-headless-react/date-range-picker
React adapter
DateRangePickerRootProps
interfaceinterface DateRangePickerRootProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange">, DateRangePickerInput { readonly id?: string; readonly ariaLabel?: string; readonly dayLabel?: (value: string) => string; readonly onValueChange?: (detail: DateRangeChangeDetail) => void; readonly monthLabel?: (year: number, month: number) => ReactNode; readonly weekdayLabels?: readonly ReactNode[];}ariaLabelstringdayLabel(value: string) => stringidstringmonthLabel(year: number, month: number) => ReactNodeonValueChange(detail: DateRangeChangeDetail) => voidweekdayLabelsreadonly ReactNode[]- Name
ariaLabel- Kind
- property
- Type
string- Requirement
- optional
- Name
dayLabel- Kind
- property
- Type
(value: string) => string- Requirement
- optional
- Name
id- Kind
- property
- Type
string- Requirement
- optional
- Name
monthLabel- Kind
- property
- Type
(year: number, month: number) => ReactNode- Requirement
- optional
- Name
onValueChange- Kind
- property
- Type
(detail: DateRangeChangeDetail) => void- Requirement
- optional
- Name
weekdayLabels- Kind
- property
- Type
readonly ReactNode[]- Requirement
- optional
DateRangePickerRootProviderProps
interfaceinterface DateRangePickerRootProviderProps extends HTMLAttributes<HTMLDivElement> { readonly value: UseDateRangePickerResult; readonly monthLabel?: (year: number, month: number) => ReactNode; readonly weekdayLabels?: readonly ReactNode[];}monthLabel(year: number, month: number) => ReactNodevalueUseDateRangePickerResultweekdayLabelsreadonly ReactNode[]- Name
monthLabel- Kind
- property
- Type
(year: number, month: number) => ReactNode- Requirement
- optional
- Name
value- Kind
- property
- Type
UseDateRangePickerResult- Requirement
- required
- Name
weekdayLabels- Kind
- property
- Type
readonly ReactNode[]- Requirement
- optional
Root
valueexport declare const Root: import("react").ForwardRefExoticComponent<DateRangePickerRootProps & import("react").RefAttributes<HTMLDivElement>>;propsPreturnReactNode- Name
props- Kind
- parameter
- Type
P- Requirement
- required
- Name
return- Kind
- return value
- Type
ReactNode- Requirement
- n/a
RootProvider
valueexport declare const RootProvider: import("react").ForwardRefExoticComponent<DateRangePickerRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;propsPreturnReactNode- Name
props- Kind
- parameter
- Type
P- Requirement
- required
- Name
return- Kind
- return value
- Type
ReactNode- Requirement
- n/a
useDateRangePicker
functiondeclare function useDateRangePicker(input: DateRangePickerInput, options?: UseDateRangePickerOptions): UseDateRangePickerResult;inputDateRangePickerInputoptionsUseDateRangePickerOptionsreturnUseDateRangePickerResult- Name
input- Kind
- parameter
- Type
DateRangePickerInput- Requirement
- required
- Name
options- Kind
- parameter
- Type
UseDateRangePickerOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
UseDateRangePickerResult- Requirement
- n/a
useDateRangePickerContext
functiondeclare function useDateRangePickerContext(part: string): UseDateRangePickerResult;partstringreturnUseDateRangePickerResult- Name
part- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
UseDateRangePickerResult- Requirement
- n/a
UseDateRangePickerOptions
interfaceinterface UseDateRangePickerOptions { readonly id?: string; readonly ariaLabel?: string; readonly dayLabel?: (value: string) => string; readonly onValueChange?: (detail: DateRangeChangeDetail) => void;}ariaLabelstringdayLabel(value: string) => stringidstringonValueChange(detail: DateRangeChangeDetail) => void- Name
ariaLabel- Kind
- property
- Type
string- Requirement
- optional
- Name
dayLabel- Kind
- property
- Type
(value: string) => string- Requirement
- optional
- Name
id- Kind
- property
- Type
string- Requirement
- optional
- Name
onValueChange- Kind
- property
- Type
(detail: DateRangeChangeDetail) => void- Requirement
- optional
UseDateRangePickerResult
interfaceinterface UseDateRangePickerResult { readonly service: DateRangePickerService; readonly connector: DateRangePickerApi; readonly snapshot: DateRangePickerSnapshot;}connectorDateRangePickerApiserviceDateRangePickerServicesnapshotDateRangePickerSnapshot- Name
connector- Kind
- property
- Type
DateRangePickerApi- Requirement
- required
- Name
service- Kind
- property
- Type
DateRangePickerService- Requirement
- required
- Name
snapshot- Kind
- property
- Type
DateRangePickerSnapshot- Requirement
- required
@grassroot/ui-headless-vue/date-range-picker
Vue adapter
Root
valueexport declare const Root: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ value: PropType<DateRangePickerInput["value"]>; defaultValue: PropType<DateRangePickerInput["defaultValue"]>; defaultOpen: BooleanConstructor; today: StringConstructor; id: StringConstructor; ariaLabel: StringConstructor; dayLabel: PropType<(value: string) => string>; monthLabel: PropType<(year: number, month: number) => unknown>; weekdayLabels: PropType<readonly unknown[]>;}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any;}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { valueChange: (_detail: unknown) => true;}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ value: PropType<DateRangePickerInput["value"]>; defaultValue: PropType<DateRangePickerInput["defaultValue"]>; defaultOpen: BooleanConstructor; today: StringConstructor; id: StringConstructor; ariaLabel: StringConstructor; dayLabel: PropType<(value: string) => string>; monthLabel: PropType<(year: number, month: number) => unknown>; weekdayLabels: PropType<readonly unknown[]>;}>> & Readonly<{ onValueChange?: ((_detail: unknown) => any) | undefined;}>, { defaultOpen: boolean;}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;RootProvider
valueexport declare const RootProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ value: { type: PropType<UseDateRangePickerResult>; required: true; }; monthLabel: PropType<(year: number, month: number) => unknown>; weekdayLabels: PropType<readonly unknown[]>;}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any;}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ value: { type: PropType<UseDateRangePickerResult>; required: true; }; monthLabel: PropType<(year: number, month: number) => unknown>; weekdayLabels: PropType<readonly unknown[]>;}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;useDateRangePicker
functiondeclare function useDateRangePicker(input: () => DateRangePickerInput, options?: () => DateRangePickerOptions): UseDateRangePickerResult;input() => DateRangePickerInputoptions() => DateRangePickerOptionsreturnUseDateRangePickerResult- Name
input- Kind
- parameter
- Type
() => DateRangePickerInput- Requirement
- required
- Name
options- Kind
- parameter
- Type
() => DateRangePickerOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
UseDateRangePickerResult- Requirement
- n/a
useDateRangePickerContext
functiondeclare function useDateRangePickerContext(part: string): UseDateRangePickerResult;partstringreturnUseDateRangePickerResult- Name
part- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
UseDateRangePickerResult- Requirement
- n/a
UseDateRangePickerResult
interfaceinterface UseDateRangePickerResult { readonly service: DateRangePickerService; readonly connector: DateRangePickerApi; readonly snapshot: ShallowRef<DateRangePickerSnapshot>;}connectorDateRangePickerApiserviceDateRangePickerServicesnapshotShallowRef<DateRangePickerSnapshot>- Name
connector- Kind
- property
- Type
DateRangePickerApi- Requirement
- required
- Name
service- Kind
- property
- Type
DateRangePickerService- Requirement
- required
- Name
snapshot- Kind
- property
- Type
ShallowRef<DateRangePickerSnapshot>- Requirement
- required
@grassroot/ui-headless-angular/date-range-picker
Angular adapter
createDateRangePickerStore
functionexport declare function createDateRangePickerStore(initial: Record<string, unknown>, options?: DateRangePickerOptions): DateRangePickerStore;initialRecord<string, unknown>optionsDateRangePickerOptionsreturnDateRangePickerStore- Name
initial- Kind
- parameter
- Type
Record<string, unknown>- Requirement
- required
- Name
options- Kind
- parameter
- Type
DateRangePickerOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
DateRangePickerStore- Requirement
- n/a
DateRangePickerStore
interfaceexport interface DateRangePickerStore { readonly service: DateRangePickerService; readonly connector: DateRangePickerApi; readonly scope: PartScope; readonly version: WritableSignal<number>; start(): void; stop(): void; sync(input: Record<string, unknown>): void; syncOptions(options: Record<string, unknown>): void;}connectorDateRangePickerApiscopePartScopeserviceDateRangePickerServicestart() => voidstop() => voidsync(input: Record<string, unknown>) => voidsyncOptions(options: Record<string, unknown>) => voidversionWritableSignal<number>- Name
connector- Kind
- property
- Type
DateRangePickerApi- Requirement
- required
- Name
scope- Kind
- property
- Type
PartScope- Requirement
- required
- Name
service- Kind
- property
- Type
DateRangePickerService- Requirement
- required
- Name
start- Kind
- method
- Type
() => void- Requirement
- required
- Name
stop- Kind
- method
- Type
() => void- Requirement
- required
- Name
sync- Kind
- method
- Type
(input: Record<string, unknown>) => void- Requirement
- required
- Name
syncOptions- Kind
- method
- Type
(options: Record<string, unknown>) => void- Requirement
- required
- Name
version- Kind
- property
- Type
WritableSignal<number>- Requirement
- required
GrDateRangePickerRoot
classexport declare class GrDateRangePickerRoot implements OnDestroy { readonly value: import("@angular/core").InputSignal<{ start: string | null; end: string | null; } | undefined>; readonly defaultValue: import("@angular/core").InputSignal<{ start: string | null; end: string | null; } | undefined>; readonly defaultOpen: import("@angular/core").InputSignal<boolean>; readonly today: import("@angular/core").InputSignal<string | undefined>; readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>; readonly dayLabel: import("@angular/core").InputSignal<((value: string) => string) | undefined>; readonly valueChange: import("@angular/core").OutputEmitterRef<unknown>; readonly store: DateRangePickerStore; private readonly host; private readonly parts; private contentElement?; private last; constructor(); private applyParts; private ensureGrid; private apply; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<GrDateRangePickerRoot, never>; static ɵcmp: i0.ɵɵComponentDeclaration<GrDateRangePickerRoot, "gr-date-range-picker-root", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "today": { "alias": "today"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "dayLabel": { "alias": "dayLabel"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;}applyanyapplyPartsanyariaLabelimport("@angular/core").InputSignal<string | undefined>contentElementanydayLabelimport("@angular/core").InputSignal<((value: string) => string) | undefined>defaultOpenimport("@angular/core").InputSignal<boolean>defaultValueimport("@angular/core").InputSignal<{
start: string | null;
end: string | null;
} | undefined>ensureGridanyhostanylastanyngOnDestroy() => voidɵcmpi0.ɵɵComponentDeclaration<GrDateRangePickerRoot, "gr-date-range-picker-root", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "today": { "alias": "today"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "dayLabel": { "alias": "dayLabel"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>ɵfaci0.ɵɵFactoryDeclaration<GrDateRangePickerRoot, never>partsany- Name
apply- Kind
- property
- Type
any- Requirement
- required
- Name
applyParts- Kind
- property
- Type
any- Requirement
- required
- Name
ariaLabel- Kind
- property
- Type
import("@angular/core").InputSignal<string | undefined>- Requirement
- required
- Name
contentElement- Kind
- property
- Type
any- Requirement
- optional
- Name
dayLabel- Kind
- property
- Type
import("@angular/core").InputSignal<((value: string) => string) | undefined>- Requirement
- required
- Name
defaultOpen- Kind
- property
- Type
import("@angular/core").InputSignal<boolean>- Requirement
- required
- Name
defaultValue- Kind
- property
- Type
import("@angular/core").InputSignal<{ start: string | null; end: string | null; } | undefined>- Requirement
- required
- Name
ensureGrid- Kind
- property
- Type
any- Requirement
- required
- Name
host- Kind
- property
- Type
any- Requirement
- required
- Name
last- Kind
- property
- Type
any- Requirement
- required
- Name
ngOnDestroy- Kind
- method
- Type
() => void- Requirement
- required
- Name
ɵcmp- Kind
- property
- Type
i0.ɵɵComponentDeclaration<GrDateRangePickerRoot, "gr-date-range-picker-root", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "today": { "alias": "today"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "dayLabel": { "alias": "dayLabel"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>- Requirement
- required
- Name
ɵfac- Kind
- property
- Type
i0.ɵɵFactoryDeclaration<GrDateRangePickerRoot, never>- Requirement
- required
- Name
parts- Kind
- property
- Type
any- Requirement
- required
- Name
store- Kind
- property
- Type
DateRangePickerStore- Requirement
- required
- Name
today- Kind
- property
- Type
import("@angular/core").InputSignal<string | undefined>- Requirement
- required
- Name
value- Kind
- property
- Type
import("@angular/core").InputSignal<{ start: string | null; end: string | null; } | undefined>- Requirement
- required
- Name
valueChange- Kind
- property
- Type
import("@angular/core").OutputEmitterRef<unknown>- Requirement
- required
export declare class GrDateRangePickerRootProvider implements OnDestroy { private readonly store; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<GrDateRangePickerRootProvider, never>; static ɵcmp: i0.ɵɵComponentDeclaration<GrDateRangePickerRootProvider, "gr-date-range-picker-root-provider", never, {}, {}, never, ["*"], true, never>;}ngOnDestroy() => voidɵcmpi0.ɵɵComponentDeclaration<GrDateRangePickerRootProvider, "gr-date-range-picker-root-provider", never, {}, {}, never, ["*"], true, never>ɵfaci0.ɵɵFactoryDeclaration<GrDateRangePickerRootProvider, never>storeany- Name
ngOnDestroy- Kind
- method
- Type
() => void- Requirement
- required
- Name
ɵcmp- Kind
- property
- Type
i0.ɵɵComponentDeclaration<GrDateRangePickerRootProvider, "gr-date-range-picker-root-provider", never, {}, {}, never, ["*"], true, never>- Requirement
- required
- Name
ɵfac- Kind
- property
- Type
i0.ɵɵFactoryDeclaration<GrDateRangePickerRootProvider, never>- Requirement
- required
- Name
store- Kind
- property
- Type
any- Requirement
- required
@grassroot/ui-headless-svelte/date-range-picker
Svelte adapter
createDateRangePicker
functionexport declare function createDateRangePicker(input: () => DateRangePickerInput, options?: UseDateRangePickerOptions): UseDateRangePickerResult;input() => DateRangePickerInputoptionsUseDateRangePickerOptionsreturnUseDateRangePickerResult- Name
input- Kind
- parameter
- Type
() => DateRangePickerInput- Requirement
- required
- Name
options- Kind
- parameter
- Type
UseDateRangePickerOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
UseDateRangePickerResult- Requirement
- n/a
Root
valueexport declare const Root: LegacyComponentType;argsParameters<Component<Record<string, any>>>returnReturnType<Component<Record<string, any>, Record<string, any>>>- Name
args- Kind
- parameter
- Type
Parameters<Component<Record<string, any>>>- Requirement
- optional
- Name
return- Kind
- return value
- Type
ReturnType<Component<Record<string, any>, Record<string, any>>>- Requirement
- n/a
@grassroot/ui-headless-solid/date-range-picker
Solid adapter
Root
functionexport declare function Root(props: DateRangePickerRootProps): JSX.Element;propsDateRangePickerRootPropsreturnJSX.Element- Name
props- Kind
- parameter
- Type
DateRangePickerRootProps- Requirement
- required
- Name
return- Kind
- return value
- Type
JSX.Element- Requirement
- n/a
RootProvider
functionexport declare function RootProvider(props: { value: UseDateRangePickerResult;} & JSX.HTMLAttributes<HTMLDivElement>): JSX.Element;props{
value: UseDateRangePickerResult;
} & JSX.HTMLAttributes<HTMLDivElement>returnJSX.Element- Name
props- Kind
- parameter
- Type
{ value: UseDateRangePickerResult; } & JSX.HTMLAttributes<HTMLDivElement>- Requirement
- required
- Name
return- Kind
- return value
- Type
JSX.Element- Requirement
- n/a
useDateRangePicker
functionexport declare function useDateRangePicker(input: Accessor<DateRangePickerInput>, options?: DateRangePickerOptions): UseDateRangePickerResult;inputAccessor<DateRangePickerInput>optionsDateRangePickerOptionsreturnUseDateRangePickerResult- Name
input- Kind
- parameter
- Type
Accessor<DateRangePickerInput>- Requirement
- required
- Name
options- Kind
- parameter
- Type
DateRangePickerOptions- Requirement
- optional
- Name
return- Kind
- return value
- Type
UseDateRangePickerResult- Requirement
- n/a
useDateRangePickerContext
functionexport declare function useDateRangePickerContext(part: string): UseDateRangePickerResult;partstringreturnUseDateRangePickerResult- Name
part- Kind
- parameter
- Type
string- Requirement
- required
- Name
return- Kind
- return value
- Type
UseDateRangePickerResult- Requirement
- n/a
UseDateRangePickerResult
interfaceexport interface UseDateRangePickerResult { readonly service: DateRangePickerService; readonly connector: DateRangePickerApi; readonly scope: PartScope; readonly snapshot: Accessor<DateRangePickerSnapshot>;}connectorDateRangePickerApiscopePartScopeserviceDateRangePickerServicesnapshotAccessor<DateRangePickerSnapshot>- Name
connector- Kind
- property
- Type
DateRangePickerApi- Requirement
- required
- Name
scope- Kind
- property
- Type
PartScope- Requirement
- required
- Name
service- Kind
- property
- Type
DateRangePickerService- Requirement
- required
- Name
snapshot- Kind
- property
- Type
Accessor<DateRangePickerSnapshot>- Requirement
- required