@kashifsaadat/react-scheduler 0.0.11 → 0.0.12
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/index.d.ts +22 -1
- package/dist/index.js +2417 -2394
- package/dist/index.umd.cjs +115 -115
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ declare type ParsedDatesRange = {
|
|
|
68
68
|
endDate: Date;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
export declare const Scheduler: ({ data, config, startDate, onRangeChange, onVisibleViewportChange, onZoomChange, onTileClick, onFilterData, onClearFilterData, onItemClick, onTileUpdate, isLoading }: SchedulerProps) => JSX.Element;
|
|
71
|
+
export declare const Scheduler: ({ data, config, startDate, onRangeChange, onVisibleViewportChange, onZoomChange, onTileClick, onFilterData, onClearFilterData, onItemClick, onTileUpdate, isLoading, searchValue, onSearchChange, defaultSearchValue }: SchedulerProps) => JSX.Element;
|
|
72
72
|
|
|
73
73
|
export declare type SchedulerData = SchedulerRow[];
|
|
74
74
|
|
|
@@ -127,6 +127,22 @@ export declare type SchedulerProps = {
|
|
|
127
127
|
* Returns the tile id, new start date, and new end date.
|
|
128
128
|
*/
|
|
129
129
|
onTileUpdate?: (payload: TileUpdatePayload) => void;
|
|
130
|
+
/**
|
|
131
|
+
* Controlled search value. When provided, the search input becomes controlled.
|
|
132
|
+
* The component will display this value and call onSearchChange when user types.
|
|
133
|
+
*/
|
|
134
|
+
searchValue?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Callback fired when the search value changes (user types in search box).
|
|
137
|
+
* Required when searchValue is provided for controlled mode.
|
|
138
|
+
* Also fires in uncontrolled mode if provided (useful for tracking).
|
|
139
|
+
*/
|
|
140
|
+
onSearchChange?: SearchChangeHandler;
|
|
141
|
+
/**
|
|
142
|
+
* Default search value for uncontrolled mode.
|
|
143
|
+
* Only used on initial mount. Ignored if searchValue is provided.
|
|
144
|
+
*/
|
|
145
|
+
defaultSearchValue?: string;
|
|
130
146
|
};
|
|
131
147
|
|
|
132
148
|
declare type SchedulerRow = {
|
|
@@ -141,6 +157,11 @@ declare type SchedulerRowLabel = {
|
|
|
141
157
|
subtitle: string;
|
|
142
158
|
};
|
|
143
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Handler type for search value changes
|
|
162
|
+
*/
|
|
163
|
+
export declare type SearchChangeHandler = (value: string) => void;
|
|
164
|
+
|
|
144
165
|
declare type Theme = {
|
|
145
166
|
light?: Partial<Record<ColorType, string>>;
|
|
146
167
|
dark?: Partial<Record<ColorType, string>>;
|