@nextelco/common-ui 2.1.49 → 2.1.51
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.
|
@@ -27,6 +27,20 @@ export interface LayoutProps {
|
|
|
27
27
|
/** Quando este build foi feito, por baixo do logout. Ver Sidebar.deployedAt. */
|
|
28
28
|
deployedAt?: string | number | Date;
|
|
29
29
|
deployedAtLabel?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Estado inicial da sidebar (aberta/fechada). Sem isto mantém-se o comportamento de
|
|
32
|
+
* sempre: aberta no desktop, fechada em mobile. Passar isto serve para a app repor o
|
|
33
|
+
* que a pessoa tinha antes de recarregar a página (ex.: lido do seu próprio
|
|
34
|
+
* localStorage) — o Layout não persiste nada sozinho, tal como já acontece com `theme`.
|
|
35
|
+
*/
|
|
36
|
+
sidebarOpen?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Chamado sempre que a sidebar abre/fecha por uma ação da pessoa (o atalho da própria
|
|
39
|
+
* Sidebar, ou o botão de expandir em mobile) — nunca pelo ajuste automático ao
|
|
40
|
+
* redimensionar a janela, que não é uma escolha dela. Mesmo padrão de
|
|
41
|
+
* `onThemeChange`: o Layout só avisa, quem usa decide se e como guardar.
|
|
42
|
+
*/
|
|
43
|
+
onSidebarOpenChange?: (open: boolean) => void;
|
|
30
44
|
}
|
|
31
|
-
declare const Layout: ({ children, menus, groupLabels, appTitle, topBar, avatar, onLogout, logoutLabel, languages, currentLang, onLanguageChange, theme, onThemeChange, themeLabels, footer, deployedAt, deployedAtLabel, }: LayoutProps) => React.JSX.Element;
|
|
45
|
+
declare const Layout: ({ children, menus, groupLabels, appTitle, topBar, avatar, onLogout, logoutLabel, languages, currentLang, onLanguageChange, theme, onThemeChange, themeLabels, footer, deployedAt, deployedAtLabel, sidebarOpen: sidebarOpenProp, onSidebarOpenChange, }: LayoutProps) => React.JSX.Element;
|
|
32
46
|
export default Layout;
|
|
@@ -149,6 +149,11 @@ interface DataTableProps<T> {
|
|
|
149
149
|
onRowClick?: (row: T) => void;
|
|
150
150
|
/** Duplo clique — atalho para o detalhe sem roubar o clique simples (seleção, edição inline). */
|
|
151
151
|
onRowDoubleClick?: (row: T) => void;
|
|
152
|
+
/**
|
|
153
|
+
* Classes extra por linha, a partir dos dados — estado de risco, linha desactivada, etc.
|
|
154
|
+
* Vem depois das classes da tabela, por isso ganha em caso de conflito.
|
|
155
|
+
*/
|
|
156
|
+
rowClassName?: (row: T) => string | undefined;
|
|
152
157
|
isLoading?: boolean;
|
|
153
158
|
isError?: boolean;
|
|
154
159
|
/** max-height do viewport com scroll (default 70vh). */
|
|
@@ -232,5 +237,5 @@ export declare function pesquisaCuringa(q: string): (v: string) => boolean;
|
|
|
232
237
|
* Com paginação de servidor, passa também `allData`/`onDataNeeded`: sem o dataset completo,
|
|
233
238
|
* filtrar, ordenar e agrupar só olhariam para a página à vista.
|
|
234
239
|
*/
|
|
235
|
-
export default function DataTable<T>({ columns, data, allData, onDataNeeded, isAllDataLoading, alwaysClient, onClientModeChange, rowKey, onRowClick, onRowDoubleClick, isLoading, isError, maxHeight, pageSize, pageSizeOptions, selectable, onSelectionChange, clearSelectionTrigger, storageKey, sortFromFilter, filterMode, defaultSortKey, defaultSortDir, viewRef, exportFileName, onExport, extraToolbar, emptySubLabel, emptyIcon, labels, }: DataTableProps<T>): React.JSX.Element;
|
|
240
|
+
export default function DataTable<T>({ columns, data, allData, onDataNeeded, isAllDataLoading, alwaysClient, onClientModeChange, rowKey, onRowClick, onRowDoubleClick, rowClassName, isLoading, isError, maxHeight, pageSize, pageSizeOptions, selectable, onSelectionChange, clearSelectionTrigger, storageKey, sortFromFilter, filterMode, defaultSortKey, defaultSortDir, viewRef, exportFileName, onExport, extraToolbar, emptySubLabel, emptyIcon, labels, }: DataTableProps<T>): React.JSX.Element;
|
|
236
241
|
export {};
|