@data-c/ui 0.1.43 → 0.1.44
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 +24 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -570,12 +570,35 @@ declare function FilterContainer({ children }: {
|
|
|
570
570
|
children: ReactNode;
|
|
571
571
|
}): react_jsx_runtime.JSX.Element;
|
|
572
572
|
|
|
573
|
+
interface FilterDataContextProps<T = any> {
|
|
574
|
+
filterValues: T;
|
|
575
|
+
filterValuesAsArray: Array<Record<string, T>>;
|
|
576
|
+
appliedValues: T;
|
|
577
|
+
isOpen: boolean;
|
|
578
|
+
target?: HTMLElement;
|
|
579
|
+
container?: HTMLElement;
|
|
580
|
+
searchId?: string;
|
|
581
|
+
}
|
|
582
|
+
interface FilterApiContextProps<T = any> {
|
|
583
|
+
setContainer: (container: HTMLElement) => void;
|
|
584
|
+
openFilter: (event: React__default.MouseEvent<HTMLElement>) => void;
|
|
585
|
+
closeFilter: () => void;
|
|
586
|
+
toggleFilter: () => void;
|
|
587
|
+
onChangeFilterValue?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
588
|
+
changeFilterValue: (name: string, value: any) => void;
|
|
589
|
+
changeFilterValues: (filterValues: T) => void;
|
|
590
|
+
applyFilterValues: () => void;
|
|
591
|
+
deleteFilterValue?: (filterName: string) => void;
|
|
592
|
+
deleteAllFilterValues?: () => void;
|
|
593
|
+
}
|
|
573
594
|
interface FilterProviderProps<T = any> {
|
|
574
595
|
children: ReactNode;
|
|
575
596
|
filterValues?: T;
|
|
576
597
|
storagePath?: string;
|
|
577
598
|
}
|
|
578
599
|
declare function FilterProvider<T>(props: FilterProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
600
|
+
declare function useFilter<T = any>(): FilterDataContextProps<T>;
|
|
601
|
+
declare function useFilterApi<T = any>(): FilterApiContextProps<T>;
|
|
579
602
|
|
|
580
603
|
interface FilterRootProps {
|
|
581
604
|
children: ReactNode;
|
|
@@ -738,4 +761,4 @@ declare const DataTable: {
|
|
|
738
761
|
Root: typeof Root;
|
|
739
762
|
};
|
|
740
763
|
|
|
741
|
-
export { AlterarSenha, AlterarSenhaProps, Avatar, Breadcrumbs, BreadcrumbsItem, BreadcrumbsProps, Button, ButtonContainer, Checkbox, CheckboxProps, ColorsGrid, Content$1 as Content, ContentProps, ContentTitle, CurrencyCellStyle, CurrencyTextField, DataTable$1 as DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DataTable as DataTableV2, DeleteContainer, DeleteContainerProps, Dialog$1 as Dialog, DialogProps, Dialog as DialogV2, DrawerMenu, DrawerMenuProps, Editable, EditableProps, Filter, FilterContainer$1 as FilterContainer, FilterControl, FilterProps, Flag, FormContainer, FormContainerProps, GridColDef, Header, Icon, LabelValue, LabelValueProps, Menu, MenuItemProps$1 as MenuItemProps, MioAuth, MioAuthProps, OptionStyles, PageTitle, PasswordTextField, Profile, ProfileProps, SearchTextField, Surface, Tooltip, TooltipProps, Transporter, TransporterProps, renderMenuItems, theme };
|
|
764
|
+
export { AlterarSenha, AlterarSenhaProps, Avatar, Breadcrumbs, BreadcrumbsItem, BreadcrumbsProps, Button, ButtonContainer, Checkbox, CheckboxProps, ColorsGrid, Content$1 as Content, ContentProps, ContentTitle, CurrencyCellStyle, CurrencyTextField, DataTable$1 as DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DataTable as DataTableV2, DeleteContainer, DeleteContainerProps, Dialog$1 as Dialog, DialogProps, Dialog as DialogV2, DrawerMenu, DrawerMenuProps, Editable, EditableProps, Filter, FilterContainer$1 as FilterContainer, FilterControl, FilterProps, Flag, FormContainer, FormContainerProps, GridColDef, Header, Icon, LabelValue, LabelValueProps, Menu, MenuItemProps$1 as MenuItemProps, MioAuth, MioAuthProps, OptionStyles, PageTitle, PasswordTextField, Profile, ProfileProps, SearchTextField, Surface, Tooltip, TooltipProps, Transporter, TransporterProps, renderMenuItems, theme, useFilter, useFilterApi };
|