lecom-ui 5.2.79 → 5.2.81
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.
|
@@ -55,14 +55,12 @@ function buildColumns({
|
|
|
55
55
|
}
|
|
56
56
|
const hasSort = !!externalColumn.onSort || !!externalColumn.onSortClient;
|
|
57
57
|
const isFilterable = !!externalColumn.filterable;
|
|
58
|
-
const
|
|
59
|
-
const filterInputValue = isFilterInputControlled ? externalColumn.filterProps?.value : column.getFilterValue() ?? "";
|
|
58
|
+
const filterInputValue = column.getFilterValue() ?? "";
|
|
60
59
|
const handleFilterInputChange = (event) => {
|
|
61
60
|
const updatedValue = event.target.value;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
column.setFilterValue(updatedValue);
|
|
61
|
+
column.setFilterValue(updatedValue);
|
|
62
|
+
if (externalColumn?.filterProps?.setFilterValue) {
|
|
63
|
+
externalColumn.filterProps.setFilterValue(updatedValue);
|
|
66
64
|
}
|
|
67
65
|
};
|
|
68
66
|
const title = typeof externalColumn.title === "function" ? externalColumn.title({ table, column }) : externalColumn.title;
|
package/dist/index.d.ts
CHANGED
|
@@ -352,8 +352,8 @@ declare const SairModoTeste: ({ color, strokeWidth, width, height, ...props }: R
|
|
|
352
352
|
|
|
353
353
|
declare const inputVariants: (props?: ({
|
|
354
354
|
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
355
|
-
size?: "
|
|
356
|
-
radius?: "
|
|
355
|
+
size?: "default" | "small" | "large" | null | undefined;
|
|
356
|
+
radius?: "default" | "small" | "large" | "full" | null | undefined;
|
|
357
357
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
358
358
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
|
|
359
359
|
sufix?: React$1.ReactNode;
|
|
@@ -479,8 +479,8 @@ interface FilterProps {
|
|
|
479
479
|
className?: string;
|
|
480
480
|
placeholder?: string;
|
|
481
481
|
value?: string;
|
|
482
|
-
|
|
483
|
-
inputProps?: InputProps
|
|
482
|
+
setFilterValue?: (value: string) => void;
|
|
483
|
+
inputProps?: Omit<InputProps, 'value' | 'onChange'>;
|
|
484
484
|
}
|
|
485
485
|
interface Column<TData, TValue> {
|
|
486
486
|
key: string;
|
|
@@ -882,7 +882,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
882
882
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
883
883
|
|
|
884
884
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
885
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<
|
|
885
|
+
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLLabelElement | HTMLParagraphElement | HTMLHeadingElement | HTMLInputElement | HTMLUListElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
|
|
886
886
|
className?: string;
|
|
887
887
|
collapsedSize?: number | undefined;
|
|
888
888
|
collapsible?: boolean | undefined;
|
|
@@ -1034,7 +1034,7 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
|
1034
1034
|
|
|
1035
1035
|
declare const textareaVariants: (props?: ({
|
|
1036
1036
|
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
1037
|
-
radius?: "
|
|
1037
|
+
radius?: "default" | "small" | "large" | null | undefined;
|
|
1038
1038
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1039
1039
|
interface TextareaProps extends React$1.ComponentProps<'textarea'>, VariantProps<typeof textareaVariants> {
|
|
1040
1040
|
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|