@actionexec/dashboards 0.16.1 → 0.16.2
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,5 +15,17 @@ interface Props {
|
|
|
15
15
|
onVariableChange?: (value: number) => void;
|
|
16
16
|
onPaletteChange?: (colors: string[]) => void;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
declare function WidgetRendererBase({ type, computed, palette, config, filterValue, filterOptions, dateBounds, onFilterChange, variableValue, onVariableChange, onPaletteChange, }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
+
/**
|
|
20
|
+
* Memoizado: um dashboard redesenha TODOS os widgets a cada mudanca de estado
|
|
21
|
+
* da tela — digitar numa variavel, arrastar um filtro, o container mudar de
|
|
22
|
+
* largura. Sem isto, cada uma dessas mexidas redesenhava tambem os graficos,
|
|
23
|
+
* que sao os widgets mais caros da tela, para chegar exatamente ao mesmo
|
|
24
|
+
* resultado.
|
|
25
|
+
*
|
|
26
|
+
* A memoizacao so vale se as props chegarem estaveis: `Dashboard` guarda os
|
|
27
|
+
* handlers por widget e usa constantes de modulo no lugar de `{}` e `[]`
|
|
28
|
+
* literais, que nasceriam diferentes a cada render.
|
|
29
|
+
*/
|
|
30
|
+
export declare const WidgetRenderer: import("react").MemoExoticComponent<typeof WidgetRendererBase>;
|
|
19
31
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actionexec/dashboards",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "Biblioteca de renderizacao de dashboards da plataforma Action — componente <Dashboard> unico, consumindo /external/dashboards.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|