@nextelco/common-ui 2.1.66 → 2.1.68
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/bundle.js +1 -1
- package/dist/bundle.js.LICENSE.txt +31 -0
- package/dist/types/components/charts/Charts.d.ts +12 -0
- package/dist/types/components/organisms/MapaPontos/MapaPontos.d.ts +19 -2
- package/dist/types/exports/charts.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -16,12 +16,33 @@
|
|
|
16
16
|
http://jedwatson.github.io/classnames
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
+
/*!
|
|
20
|
+
* @kurkle/color v0.3.4
|
|
21
|
+
* https://github.com/kurkle/color#readme
|
|
22
|
+
* (c) 2024 Jukka Kurkela
|
|
23
|
+
* Released under the MIT License
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/*!
|
|
27
|
+
* Chart.js v4.5.1
|
|
28
|
+
* https://www.chartjs.org
|
|
29
|
+
* (c) 2025 Chart.js Contributors
|
|
30
|
+
* Released under the MIT License
|
|
31
|
+
*/
|
|
32
|
+
|
|
19
33
|
/*!
|
|
20
34
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
21
35
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
22
36
|
* Copyright 2024 Fonticons, Inc.
|
|
23
37
|
*/
|
|
24
38
|
|
|
39
|
+
/*!
|
|
40
|
+
* chartjs-plugin-datalabels v2.2.0
|
|
41
|
+
* https://chartjs-plugin-datalabels.netlify.app
|
|
42
|
+
* (c) 2017-2022 chartjs-plugin-datalabels contributors
|
|
43
|
+
* Released under the MIT license
|
|
44
|
+
*/
|
|
45
|
+
|
|
25
46
|
/*! *****************************************************************************
|
|
26
47
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
27
48
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -39,6 +60,16 @@ and limitations under the License.
|
|
|
39
60
|
|
|
40
61
|
/*! js-cookie v3.0.5 | MIT */
|
|
41
62
|
|
|
63
|
+
/**
|
|
64
|
+
* @license React
|
|
65
|
+
* react-jsx-runtime.production.js
|
|
66
|
+
*
|
|
67
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the MIT license found in the
|
|
70
|
+
* LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/
|
|
72
|
+
|
|
42
73
|
/**
|
|
43
74
|
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
|
44
75
|
*
|
|
@@ -37,6 +37,18 @@ export declare function Linha({ dados, altura, euros: emEuros }: {
|
|
|
37
37
|
altura?: number;
|
|
38
38
|
euros?: boolean;
|
|
39
39
|
}): React.JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* Several lines over the same labels — NOT stacked.
|
|
42
|
+
*
|
|
43
|
+
* Separate from `BarrasEmpilhadas` on purpose: two series that measure the same
|
|
44
|
+
* thing at two moments (created vs closed) must be read against each other, and
|
|
45
|
+
* stacking them would draw their sum, which means nothing.
|
|
46
|
+
*/
|
|
47
|
+
export declare function Linhas({ serie, altura, area, }: {
|
|
48
|
+
serie: SerieEmpilhada;
|
|
49
|
+
altura?: number;
|
|
50
|
+
area?: boolean;
|
|
51
|
+
}): React.JSX.Element;
|
|
40
52
|
export interface PontoRisco {
|
|
41
53
|
responsavel: string;
|
|
42
54
|
otsAtivas: number;
|
|
@@ -43,7 +43,16 @@ export interface MapaPontosProps<T extends PontoMapa> {
|
|
|
43
43
|
cor?: (ponto: T) => string;
|
|
44
44
|
/** HTML do balão. Sem isto não há balão. */
|
|
45
45
|
balao?: (ponto: T) => string;
|
|
46
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Forma do marcador.
|
|
48
|
+
*
|
|
49
|
+
* `circulo` para agregados — o tamanho pode variar com a contagem e lê-se
|
|
50
|
+
* como densidade. `pin` para registos individuais: a ponta assenta na
|
|
51
|
+
* coordenada exata, e é isso que se quer quando o ponto é um sítio e não um
|
|
52
|
+
* número.
|
|
53
|
+
*/
|
|
54
|
+
forma?: 'circulo' | 'pin';
|
|
55
|
+
/** Raio do marcador em píxeis. Só se aplica à forma `circulo`. */
|
|
47
56
|
raio?: (ponto: T) => number;
|
|
48
57
|
/**
|
|
49
58
|
* Texto por cima do marcador (ex: a contagem de uma zona).
|
|
@@ -64,6 +73,14 @@ export interface MapaPontosProps<T extends PontoMapa> {
|
|
|
64
73
|
centro?: [number, number];
|
|
65
74
|
zoom?: number;
|
|
66
75
|
altura?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Aspeto do fundo.
|
|
78
|
+
*
|
|
79
|
+
* `suave` dessatura os tiles por CSS, deixando os marcadores com cor — num
|
|
80
|
+
* mapa de dados, o fundo não deve disputar atenção com o que está em cima.
|
|
81
|
+
* Faz o que o basemap claro do CARTO fazia, sem precisar de chave.
|
|
82
|
+
*/
|
|
83
|
+
tema?: 'normal' | 'suave';
|
|
67
84
|
/** Agrupar pontos próximos. Com milhares de pontos, desligar trava o browser. */
|
|
68
85
|
agrupar?: boolean;
|
|
69
86
|
/** Tiles. Por omissão, CARTO claro — sem necessidade de chave. */
|
|
@@ -75,4 +92,4 @@ export interface MapaPontosProps<T extends PontoMapa> {
|
|
|
75
92
|
labels?: Partial<MapaPontosLabels>;
|
|
76
93
|
className?: string;
|
|
77
94
|
}
|
|
78
|
-
export default function MapaPontos<T extends PontoMapa>({ pontos, cor, balao, raio, rotulo, aproximado, onPontoClick, centro, zoom, altura, agrupar, urlTiles, atribuicaoTiles, truncadoEm, legenda, labels, className, }: MapaPontosProps<T>): React.JSX.Element;
|
|
95
|
+
export default function MapaPontos<T extends PontoMapa>({ pontos, cor, balao, forma, raio, rotulo, aproximado, onPontoClick, centro, zoom, altura, agrupar, tema, urlTiles, atribuicaoTiles, truncadoEm, legenda, labels, className, }: MapaPontosProps<T>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { PALETA, cor, BarrasEmpilhadas, BarrasHorizontais, Anel, Linha, Bolhas, } from '../components/charts/Charts';
|
|
1
|
+
export { PALETA, cor, BarrasEmpilhadas, BarrasHorizontais, Anel, Linha, Linhas, Bolhas, } from '../components/charts/Charts';
|
|
2
2
|
export type { SerieEmpilhada, Distribuicao, PontoRisco } from '../components/charts/Charts';
|
package/dist/types/index.d.ts
CHANGED