@yuktishaalaa/yuktai 4.6.3 → 4.6.4
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.mts +18 -8
- package/dist/index.d.ts +18 -8
- package/dist/index.js +57 -60
- package/dist/index.mjs +31 -34
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -195,12 +195,7 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
|
|
|
195
195
|
className?: string;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
|
|
199
|
-
highlightIds?: (string | number)[];
|
|
200
|
-
highlightColor?: string;
|
|
201
|
-
autoScrollToHighlight?: boolean;
|
|
202
|
-
};
|
|
203
|
-
declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, rowKey, view, mobileBreakpoint, theme, locale, search, selectable, selectedKeys, onSelectionChange, pagination, loading, highlightIds, highlightColor, autoScrollToHighlight, onRowClick, onSortChange, empty, className, }: YuktaiGridPropsWithHighlight<T>): react_jsx_runtime.JSX.Element;
|
|
198
|
+
declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, rowKey, view, mobileBreakpoint, theme, locale, ai, search, selectable, selectedKeys, onSelectionChange, pagination, loading, highlightIds, highlightColor, autoScrollToHighlight, onRowClick, onSortChange, empty, className, }: YuktaiGridProps<T>): react_jsx_runtime.JSX.Element;
|
|
204
199
|
|
|
205
200
|
interface UseGridOptions<T> {
|
|
206
201
|
data: T[];
|
|
@@ -227,6 +222,7 @@ interface UseGridReturn<T> {
|
|
|
227
222
|
}
|
|
228
223
|
declare function useGrid<T extends Record<string, unknown>>(options: UseGridOptions<T>): UseGridReturn<T>;
|
|
229
224
|
|
|
225
|
+
type Language = "en-US" | "te-IN";
|
|
230
226
|
interface YuktaiGridAIProps<T> {
|
|
231
227
|
data: T[];
|
|
232
228
|
columns: {
|
|
@@ -237,9 +233,23 @@ interface YuktaiGridAIProps<T> {
|
|
|
237
233
|
onSearch: (query: string) => void;
|
|
238
234
|
onSort?: (key: string, dir: "asc" | "desc") => void;
|
|
239
235
|
theme?: "light" | "dark";
|
|
240
|
-
|
|
236
|
+
/**
|
|
237
|
+
* Language of AI UI and AI responses.
|
|
238
|
+
* Default: English.
|
|
239
|
+
*/
|
|
240
|
+
language?: Language;
|
|
241
|
+
/**
|
|
242
|
+
* Language used by browser voice recognition.
|
|
243
|
+
* Default: English.
|
|
244
|
+
*/
|
|
245
|
+
inputLanguage?: Language;
|
|
246
|
+
/**
|
|
247
|
+
* When true, AI is rendered inside the grid.
|
|
248
|
+
* When false, AI uses the floating assistant UI.
|
|
249
|
+
*/
|
|
250
|
+
embedded?: boolean;
|
|
241
251
|
}
|
|
242
|
-
declare function YuktaiGridAI<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
|
|
252
|
+
declare function YuktaiGridAI<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, inputLanguage, embedded, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
|
|
243
253
|
|
|
244
254
|
declare global {
|
|
245
255
|
interface Document {
|
package/dist/index.d.ts
CHANGED
|
@@ -195,12 +195,7 @@ interface YuktaiGridProps<T = Record<string, unknown>> {
|
|
|
195
195
|
className?: string;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
|
|
199
|
-
highlightIds?: (string | number)[];
|
|
200
|
-
highlightColor?: string;
|
|
201
|
-
autoScrollToHighlight?: boolean;
|
|
202
|
-
};
|
|
203
|
-
declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, rowKey, view, mobileBreakpoint, theme, locale, search, selectable, selectedKeys, onSelectionChange, pagination, loading, highlightIds, highlightColor, autoScrollToHighlight, onRowClick, onSortChange, empty, className, }: YuktaiGridPropsWithHighlight<T>): react_jsx_runtime.JSX.Element;
|
|
198
|
+
declare function YuktaiGrid<T extends Record<string, unknown>>({ data, columns, rowKey, view, mobileBreakpoint, theme, locale, ai, search, selectable, selectedKeys, onSelectionChange, pagination, loading, highlightIds, highlightColor, autoScrollToHighlight, onRowClick, onSortChange, empty, className, }: YuktaiGridProps<T>): react_jsx_runtime.JSX.Element;
|
|
204
199
|
|
|
205
200
|
interface UseGridOptions<T> {
|
|
206
201
|
data: T[];
|
|
@@ -227,6 +222,7 @@ interface UseGridReturn<T> {
|
|
|
227
222
|
}
|
|
228
223
|
declare function useGrid<T extends Record<string, unknown>>(options: UseGridOptions<T>): UseGridReturn<T>;
|
|
229
224
|
|
|
225
|
+
type Language = "en-US" | "te-IN";
|
|
230
226
|
interface YuktaiGridAIProps<T> {
|
|
231
227
|
data: T[];
|
|
232
228
|
columns: {
|
|
@@ -237,9 +233,23 @@ interface YuktaiGridAIProps<T> {
|
|
|
237
233
|
onSearch: (query: string) => void;
|
|
238
234
|
onSort?: (key: string, dir: "asc" | "desc") => void;
|
|
239
235
|
theme?: "light" | "dark";
|
|
240
|
-
|
|
236
|
+
/**
|
|
237
|
+
* Language of AI UI and AI responses.
|
|
238
|
+
* Default: English.
|
|
239
|
+
*/
|
|
240
|
+
language?: Language;
|
|
241
|
+
/**
|
|
242
|
+
* Language used by browser voice recognition.
|
|
243
|
+
* Default: English.
|
|
244
|
+
*/
|
|
245
|
+
inputLanguage?: Language;
|
|
246
|
+
/**
|
|
247
|
+
* When true, AI is rendered inside the grid.
|
|
248
|
+
* When false, AI uses the floating assistant UI.
|
|
249
|
+
*/
|
|
250
|
+
embedded?: boolean;
|
|
241
251
|
}
|
|
242
|
-
declare function YuktaiGridAI<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
|
|
252
|
+
declare function YuktaiGridAI<T extends Record<string, unknown>>({ data, columns, onSearch, onSort, theme, language, inputLanguage, embedded, }: YuktaiGridAIProps<T>): react_jsx_runtime.JSX.Element;
|
|
243
253
|
|
|
244
254
|
declare global {
|
|
245
255
|
interface Document {
|