@trismegisto/charts 3.3.14 → 3.4.0
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/README.md +36 -25
- package/dist/core/bar-chart.d.ts +12 -0
- package/dist/core/bar-chart.js +30 -0
- package/dist/core/bar-chart.js.map +1 -0
- package/dist/core/boxplot-chart.d.ts +15 -0
- package/dist/core/boxplot-chart.js +45 -0
- package/dist/core/boxplot-chart.js.map +1 -0
- package/dist/core/bullet-chart.d.ts +29 -0
- package/dist/core/bullet-chart.js +95 -0
- package/dist/core/bullet-chart.js.map +1 -0
- package/dist/core/calendar-heatmap.d.ts +18 -0
- package/dist/core/calendar-heatmap.js +79 -0
- package/dist/core/calendar-heatmap.js.map +1 -0
- package/dist/core/chart-host.d.ts +19 -0
- package/dist/core/chart-host.js +109 -0
- package/dist/core/chart-host.js.map +1 -0
- package/dist/core/charts-i18n.d.ts +25 -0
- package/dist/core/charts-i18n.js +33 -0
- package/dist/core/charts-i18n.js.map +1 -0
- package/dist/core/charts-messages.d.ts +88 -0
- package/dist/core/charts-messages.en.d.ts +2 -0
- package/dist/core/charts-messages.en.js +106 -0
- package/dist/core/charts-messages.en.js.map +1 -0
- package/dist/core/charts-messages.es.d.ts +2 -0
- package/dist/core/charts-messages.es.js +106 -0
- package/dist/core/charts-messages.es.js.map +1 -0
- package/dist/core/charts-messages.js +106 -0
- package/dist/core/charts-messages.js.map +1 -0
- package/dist/core/context.d.ts +22 -0
- package/dist/core/context.js +13 -0
- package/dist/core/context.js.map +1 -0
- package/dist/core/engine-locale.d.ts +3 -0
- package/dist/core/engine-locale.js +59 -0
- package/dist/core/engine-locale.js.map +1 -0
- package/dist/core/format.d.ts +13 -0
- package/dist/core/format.js +64 -0
- package/dist/core/format.js.map +1 -0
- package/dist/core/frame.d.ts +19 -0
- package/dist/core/frame.js +28 -0
- package/dist/core/frame.js.map +1 -0
- package/dist/core/funnel-chart.d.ts +8 -0
- package/dist/core/funnel-chart.js +33 -0
- package/dist/core/funnel-chart.js.map +1 -0
- package/dist/core/gauge-chart.d.ts +44 -0
- package/dist/core/gauge-chart.js +218 -0
- package/dist/core/gauge-chart.js.map +1 -0
- package/dist/core/gauge-layout.d.ts +67 -0
- package/dist/core/gauge-layout.js +140 -0
- package/dist/core/gauge-layout.js.map +1 -0
- package/dist/core/heatmap-chart.d.ts +17 -0
- package/dist/core/heatmap-chart.js +55 -0
- package/dist/core/heatmap-chart.js.map +1 -0
- package/dist/core/index.d.ts +32 -0
- package/dist/core/index.js +38 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/line-chart.d.ts +12 -0
- package/dist/core/line-chart.js +29 -0
- package/dist/core/line-chart.js.map +1 -0
- package/dist/core/navigation.d.ts +25 -0
- package/dist/core/navigation.js +57 -0
- package/dist/core/navigation.js.map +1 -0
- package/dist/core/observe.d.ts +28 -0
- package/dist/core/observe.js +115 -0
- package/dist/core/observe.js.map +1 -0
- package/dist/core/options.d.ts +27 -0
- package/dist/core/options.js +64 -0
- package/dist/core/options.js.map +1 -0
- package/dist/core/pie-chart.d.ts +9 -0
- package/dist/core/pie-chart.js +34 -0
- package/dist/core/pie-chart.js.map +1 -0
- package/dist/core/radar-chart.d.ts +18 -0
- package/dist/core/radar-chart.js +34 -0
- package/dist/core/radar-chart.js.map +1 -0
- package/dist/core/sankey-chart.d.ts +15 -0
- package/dist/core/sankey-chart.js +32 -0
- package/dist/core/sankey-chart.js.map +1 -0
- package/dist/core/scatter-chart.d.ts +33 -0
- package/dist/core/scatter-chart.js +62 -0
- package/dist/core/scatter-chart.js.map +1 -0
- package/dist/core/sparkline-chart.d.ts +20 -0
- package/dist/core/sparkline-chart.js +60 -0
- package/dist/core/sparkline-chart.js.map +1 -0
- package/dist/core/stats.d.ts +12 -0
- package/dist/core/stats.js +23 -0
- package/dist/core/stats.js.map +1 -0
- package/dist/core/theme.d.ts +8 -0
- package/dist/core/theme.js +171 -0
- package/dist/core/theme.js.map +1 -0
- package/dist/core/treemap-chart.d.ts +21 -0
- package/dist/core/treemap-chart.js +45 -0
- package/dist/core/treemap-chart.js.map +1 -0
- package/dist/core/types.d.ts +10 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/view.d.ts +24 -0
- package/dist/core/view.js +2 -0
- package/dist/core/view.js.map +1 -0
- package/dist/core/waterfall-chart.d.ts +32 -0
- package/dist/core/waterfall-chart.js +115 -0
- package/dist/core/waterfall-chart.js.map +1 -0
- package/dist/engine/aria.d.ts +8 -0
- package/dist/engine/aria.js +70 -0
- package/dist/engine/aria.js.map +1 -0
- package/dist/engine/component/legend.d.ts +11 -0
- package/dist/engine/component/legend.js +349 -0
- package/dist/engine/component/legend.js.map +1 -0
- package/dist/engine/component/text-style.d.ts +6 -0
- package/dist/engine/component/text-style.js +26 -0
- package/dist/engine/component/text-style.js.map +1 -0
- package/dist/engine/component/title.d.ts +2 -0
- package/dist/engine/component/title.js +90 -0
- package/dist/engine/component/title.js.map +1 -0
- package/dist/engine/component/tooltip.d.ts +40 -0
- package/dist/engine/component/tooltip.js +418 -0
- package/dist/engine/component/tooltip.js.map +1 -0
- package/dist/engine/component/visual-map.d.ts +9 -0
- package/dist/engine/component/visual-map.js +381 -0
- package/dist/engine/component/visual-map.js.map +1 -0
- package/dist/engine/contract.d.ts +504 -0
- package/dist/engine/contract.js +10 -0
- package/dist/engine/contract.js.map +1 -0
- package/dist/engine/coord/axis.d.ts +55 -0
- package/dist/engine/coord/axis.js +349 -0
- package/dist/engine/coord/axis.js.map +1 -0
- package/dist/engine/coord/calendar.d.ts +44 -0
- package/dist/engine/coord/calendar.js +282 -0
- package/dist/engine/coord/calendar.js.map +1 -0
- package/dist/engine/coord/cartesian.d.ts +22 -0
- package/dist/engine/coord/cartesian.js +449 -0
- package/dist/engine/coord/cartesian.js.map +1 -0
- package/dist/engine/coord/polar.d.ts +24 -0
- package/dist/engine/coord/polar.js +232 -0
- package/dist/engine/coord/polar.js.map +1 -0
- package/dist/engine/coord/radar.d.ts +90 -0
- package/dist/engine/coord/radar.js +288 -0
- package/dist/engine/coord/radar.js.map +1 -0
- package/dist/engine/index.d.ts +27 -0
- package/dist/engine/index.js +16 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/engine/instance.d.ts +79 -0
- package/dist/engine/instance.js +773 -0
- package/dist/engine/instance.js.map +1 -0
- package/dist/engine/label-layout.d.ts +3 -0
- package/dist/engine/label-layout.js +35 -0
- package/dist/engine/label-layout.js.map +1 -0
- package/dist/engine/locale.d.ts +9 -0
- package/dist/engine/locale.js +154 -0
- package/dist/engine/locale.js.map +1 -0
- package/dist/engine/model.d.ts +26 -0
- package/dist/engine/model.js +307 -0
- package/dist/engine/model.js.map +1 -0
- package/dist/engine/option/axis.d.ts +167 -0
- package/dist/engine/option/axis.js +2 -0
- package/dist/engine/option/axis.js.map +1 -0
- package/dist/engine/option/components.d.ts +424 -0
- package/dist/engine/option/components.js +2 -0
- package/dist/engine/option/components.js.map +1 -0
- package/dist/engine/option.d.ts +59 -0
- package/dist/engine/option.js +2 -0
- package/dist/engine/option.js.map +1 -0
- package/dist/engine/registry.d.ts +9 -0
- package/dist/engine/registry.js +42 -0
- package/dist/engine/registry.js.map +1 -0
- package/dist/engine/render/path.d.ts +26 -0
- package/dist/engine/render/path.js +387 -0
- package/dist/engine/render/path.js.map +1 -0
- package/dist/engine/render/svg.d.ts +60 -0
- package/dist/engine/render/svg.js +624 -0
- package/dist/engine/render/svg.js.map +1 -0
- package/dist/engine/render/text.d.ts +13 -0
- package/dist/engine/render/text.js +144 -0
- package/dist/engine/render/text.js.map +1 -0
- package/dist/engine/scale.d.ts +38 -0
- package/dist/engine/scale.js +170 -0
- package/dist/engine/scale.js.map +1 -0
- package/dist/engine/series/bar.d.ts +65 -0
- package/dist/engine/series/bar.js +417 -0
- package/dist/engine/series/bar.js.map +1 -0
- package/dist/engine/series/boxplot.d.ts +31 -0
- package/dist/engine/series/boxplot.js +125 -0
- package/dist/engine/series/boxplot.js.map +1 -0
- package/dist/engine/series/cartesian-data.d.ts +38 -0
- package/dist/engine/series/cartesian-data.js +159 -0
- package/dist/engine/series/cartesian-data.js.map +1 -0
- package/dist/engine/series/circular-common.d.ts +51 -0
- package/dist/engine/series/circular-common.js +196 -0
- package/dist/engine/series/circular-common.js.map +1 -0
- package/dist/engine/series/circular-options.d.ts +151 -0
- package/dist/engine/series/circular-options.js +2 -0
- package/dist/engine/series/circular-options.js.map +1 -0
- package/dist/engine/series/common.d.ts +51 -0
- package/dist/engine/series/common.js +210 -0
- package/dist/engine/series/common.js.map +1 -0
- package/dist/engine/series/funnel.d.ts +37 -0
- package/dist/engine/series/funnel.js +204 -0
- package/dist/engine/series/funnel.js.map +1 -0
- package/dist/engine/series/gauge.d.ts +106 -0
- package/dist/engine/series/gauge.js +349 -0
- package/dist/engine/series/gauge.js.map +1 -0
- package/dist/engine/series/heatmap.d.ts +31 -0
- package/dist/engine/series/heatmap.js +222 -0
- package/dist/engine/series/heatmap.js.map +1 -0
- package/dist/engine/series/label-fit.d.ts +7 -0
- package/dist/engine/series/label-fit.js +56 -0
- package/dist/engine/series/label-fit.js.map +1 -0
- package/dist/engine/series/line.d.ts +63 -0
- package/dist/engine/series/line.js +347 -0
- package/dist/engine/series/line.js.map +1 -0
- package/dist/engine/series/pie.d.ts +59 -0
- package/dist/engine/series/pie.js +396 -0
- package/dist/engine/series/pie.js.map +1 -0
- package/dist/engine/series/radar.d.ts +34 -0
- package/dist/engine/series/radar.js +168 -0
- package/dist/engine/series/radar.js.map +1 -0
- package/dist/engine/series/sankey.d.ts +64 -0
- package/dist/engine/series/sankey.js +486 -0
- package/dist/engine/series/sankey.js.map +1 -0
- package/dist/engine/series/scatter.d.ts +38 -0
- package/dist/engine/series/scatter.js +167 -0
- package/dist/engine/series/scatter.js.map +1 -0
- package/dist/engine/series/treemap.d.ts +77 -0
- package/dist/engine/series/treemap.js +493 -0
- package/dist/engine/series/treemap.js.map +1 -0
- package/dist/engine/theme.d.ts +9 -0
- package/dist/engine/theme.js +84 -0
- package/dist/engine/theme.js.map +1 -0
- package/dist/engine/util.d.ts +68 -0
- package/dist/engine/util.js +269 -0
- package/dist/engine/util.js.map +1 -0
- package/package.json +35 -24
- package/fesm2022/trismegisto-charts.mjs +0 -12428
- package/fesm2022/trismegisto-charts.mjs.map +0 -1
- package/types/trismegisto-charts.d.ts +0 -1970
- package/types/trismegisto-charts.d.ts.map +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type MessageParams, type PluralMessage } from '@trismegisto/primitives/i18n';
|
|
2
|
+
import { type CatalogOverride } from '@trismegisto/primitives/messages';
|
|
3
|
+
import { type ChartsMessages } from './charts-messages';
|
|
4
|
+
export type ChartsMessagesOverride = CatalogOverride<ChartsMessages>;
|
|
5
|
+
export interface ChartsI18nConfig {
|
|
6
|
+
/** Catálogos extras ou substitutos, por idioma (mesmas chaves de `ChartsMessages`). */
|
|
7
|
+
readonly catalogs?: Readonly<Record<string, ChartsMessages>>;
|
|
8
|
+
/** Textos avulsos sobrescritos por cima do catálogo ativo, em qualquer idioma. */
|
|
9
|
+
readonly override?: ChartsMessagesOverride;
|
|
10
|
+
}
|
|
11
|
+
/** Catálogos que acompanham o pacote, por idioma. */
|
|
12
|
+
export declare const CHARTS_BUILT_IN_MESSAGES: Readonly<Record<string, ChartsMessages>>;
|
|
13
|
+
/** Escolhe, num mapa por idioma, o do idioma ativo (o `pick` do store de i18n da lib). */
|
|
14
|
+
export type LocalePicker = <T>(byLocale: Readonly<Record<string, T>>, fallback: T) => T;
|
|
15
|
+
/** Catálogo ativo: embutidos + do app, escolhido pelo idioma, com as sobrescritas do app. */
|
|
16
|
+
export declare function resolveChartsMessages(pick: LocalePicker, config?: ChartsI18nConfig): ChartsMessages;
|
|
17
|
+
/** Idioma de todo `Intl` (números, datas, plural): o pedido à lib; sem ele, o do catálogo. */
|
|
18
|
+
export declare function chartsFormatLocale(libLocale: string | null | undefined, messages: ChartsMessages): string;
|
|
19
|
+
/** Formatação de texto que os gráficos usam (template nomeado e plural no idioma ativo). */
|
|
20
|
+
export interface ChartsTextFormatter {
|
|
21
|
+
format(template: string, params?: MessageParams): string;
|
|
22
|
+
plural(message: PluralMessage, count: number, params?: MessageParams): string;
|
|
23
|
+
}
|
|
24
|
+
/** Formatador de texto para um idioma fixo. */
|
|
25
|
+
export declare function chartsText(locale: string): ChartsTextFormatter;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Catálogo dos gráficos sem framework: os catálogos embutidos, a escolha pelo idioma ativo com as
|
|
2
|
+
// sobrescritas do app e a formatação de texto. O Angular (`ChartsI18nService`) e o React ligam isso ao
|
|
3
|
+
// idioma da lib cada um do seu jeito.
|
|
4
|
+
import { formatMessage, pluralMessage } from '@trismegisto/primitives/i18n';
|
|
5
|
+
import { mergeCatalog } from '@trismegisto/primitives/messages';
|
|
6
|
+
import { CHARTS_MESSAGES_EN } from './charts-messages.en';
|
|
7
|
+
import { CHARTS_MESSAGES_ES } from './charts-messages.es';
|
|
8
|
+
import { CHARTS_MESSAGES_PT_BR } from './charts-messages';
|
|
9
|
+
/** Catálogos que acompanham o pacote, por idioma. */
|
|
10
|
+
export const CHARTS_BUILT_IN_MESSAGES = {
|
|
11
|
+
'pt-BR': CHARTS_MESSAGES_PT_BR,
|
|
12
|
+
pt: CHARTS_MESSAGES_PT_BR,
|
|
13
|
+
en: CHARTS_MESSAGES_EN,
|
|
14
|
+
'en-US': CHARTS_MESSAGES_EN,
|
|
15
|
+
es: CHARTS_MESSAGES_ES,
|
|
16
|
+
};
|
|
17
|
+
/** Catálogo ativo: embutidos + do app, escolhido pelo idioma, com as sobrescritas do app. */
|
|
18
|
+
export function resolveChartsMessages(pick, config = {}) {
|
|
19
|
+
const base = pick({ ...CHARTS_BUILT_IN_MESSAGES, ...config.catalogs }, CHARTS_MESSAGES_PT_BR);
|
|
20
|
+
return config.override ? mergeCatalog(config.override, base) : base;
|
|
21
|
+
}
|
|
22
|
+
/** Idioma de todo `Intl` (números, datas, plural): o pedido à lib; sem ele, o do catálogo. */
|
|
23
|
+
export function chartsFormatLocale(libLocale, messages) {
|
|
24
|
+
return libLocale || messages.meta.locale;
|
|
25
|
+
}
|
|
26
|
+
/** Formatador de texto para um idioma fixo. */
|
|
27
|
+
export function chartsText(locale) {
|
|
28
|
+
return {
|
|
29
|
+
format: (template, params = {}) => formatMessage(template, params),
|
|
30
|
+
plural: (message, count, params = {}) => pluralMessage(message, count, locale, params),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=charts-i18n.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"charts-i18n.js","sourceRoot":"","sources":["../../src/core/charts-i18n.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,uGAAuG;AACvG,sCAAsC;AACtC,OAAO,EAA0C,aAAa,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACpH,OAAO,EAAwB,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAuB,MAAM,mBAAmB,CAAC;AAW/E,qDAAqD;AACrD,MAAM,CAAC,MAAM,wBAAwB,GAA6C;IAChF,OAAO,EAAE,qBAAqB;IAC9B,EAAE,EAAE,qBAAqB;IACzB,EAAE,EAAE,kBAAkB;IACtB,OAAO,EAAE,kBAAkB;IAC3B,EAAE,EAAE,kBAAkB;CACvB,CAAC;AAKF,6FAA6F;AAC7F,MAAM,UAAU,qBAAqB,CAAC,IAAkB,EAAE,SAA2B,EAAE;IACrF,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,GAAG,wBAAwB,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE,EAAE,qBAAqB,CAAC,CAAC;IAC9F,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACtE,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,kBAAkB,CAAC,SAAoC,EAAE,QAAwB;IAC/F,OAAO,SAAS,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;AAC3C,CAAC;AAQD,+CAA+C;AAC/C,MAAM,UAAU,UAAU,CAAC,MAAc;IACvC,OAAO;QACL,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,MAAM,CAAC;QAClE,MAAM,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;KACvF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { PluralMessage } from '@trismegisto/primitives/i18n';
|
|
2
|
+
/** Tipos de gráfico do pacote (chave de `ChartsMessages.types`). */
|
|
3
|
+
export type ChartKind = 'bar' | 'line' | 'area' | 'pie' | 'donut' | 'heatmap' | 'calendar' | 'scatter' | 'gauge' | 'funnel' | 'radar' | 'treemap' | 'sankey' | 'boxplot' | 'sparkline' | 'bubble' | 'bullet' | 'waterfall' | 'chart';
|
|
4
|
+
/**
|
|
5
|
+
* Textos do `@trismegisto/charts`: o que o pacote escreve na tela (alternar tabela, cabeçalhos), o resumo
|
|
6
|
+
* para leitor de tela e os textos que o motor usa por dentro (nomes de série e descrição automática).
|
|
7
|
+
* Texto com variável é template nomeado; contagem é `PluralMessage`.
|
|
8
|
+
*/
|
|
9
|
+
export interface ChartsMessages {
|
|
10
|
+
readonly meta: {
|
|
11
|
+
readonly locale: string;
|
|
12
|
+
};
|
|
13
|
+
readonly frame: {
|
|
14
|
+
readonly showTable: string;
|
|
15
|
+
readonly showChart: string;
|
|
16
|
+
/** Legenda da tabela de dados: `{label}` é o rótulo acessível do gráfico. */
|
|
17
|
+
readonly tableCaption: string;
|
|
18
|
+
readonly noData: string;
|
|
19
|
+
readonly keyboardHint: string;
|
|
20
|
+
};
|
|
21
|
+
readonly columns: {
|
|
22
|
+
readonly category: string;
|
|
23
|
+
readonly series: string;
|
|
24
|
+
readonly value: string;
|
|
25
|
+
readonly date: string;
|
|
26
|
+
readonly share: string;
|
|
27
|
+
readonly row: string;
|
|
28
|
+
readonly column: string;
|
|
29
|
+
readonly x: string;
|
|
30
|
+
readonly y: string;
|
|
31
|
+
readonly indicator: string;
|
|
32
|
+
readonly path: string;
|
|
33
|
+
readonly source: string;
|
|
34
|
+
readonly target: string;
|
|
35
|
+
readonly min: string;
|
|
36
|
+
readonly q1: string;
|
|
37
|
+
readonly median: string;
|
|
38
|
+
readonly q3: string;
|
|
39
|
+
readonly max: string;
|
|
40
|
+
readonly goal: string;
|
|
41
|
+
readonly ranges: string;
|
|
42
|
+
readonly change: string;
|
|
43
|
+
readonly cumulative: string;
|
|
44
|
+
readonly size: string;
|
|
45
|
+
};
|
|
46
|
+
readonly types: Readonly<Record<ChartKind, string>>;
|
|
47
|
+
readonly summary: {
|
|
48
|
+
/** `{type}` com N séries e `{points}` pontos. */
|
|
49
|
+
readonly series: PluralMessage;
|
|
50
|
+
readonly range: string;
|
|
51
|
+
readonly total: string;
|
|
52
|
+
readonly largest: string;
|
|
53
|
+
readonly gauge: string;
|
|
54
|
+
readonly links: PluralMessage;
|
|
55
|
+
readonly items: PluralMessage;
|
|
56
|
+
/** Medidor com legenda: `{caption}` é o texto do app abaixo do valor. */
|
|
57
|
+
readonly gaugeCaption: string;
|
|
58
|
+
/** `{count}` pontos, do `{first}` ao `{last}`, com `{min}` e `{max}`. */
|
|
59
|
+
readonly sparkline: PluralMessage;
|
|
60
|
+
/** Um indicador do gráfico de bala: `{name}`, `{value}` e a meta `{target}`. */
|
|
61
|
+
readonly bulletItem: string;
|
|
62
|
+
readonly bulletItemNoTarget: string;
|
|
63
|
+
/** `{count}` etapas, do valor inicial `{start}` ao final `{end}`. */
|
|
64
|
+
readonly waterfall: PluralMessage;
|
|
65
|
+
};
|
|
66
|
+
/** Nomes das partes do gráfico de cascata (legenda, tooltip e tabela). */
|
|
67
|
+
readonly waterfall: {
|
|
68
|
+
readonly increase: string;
|
|
69
|
+
readonly decrease: string;
|
|
70
|
+
readonly total: string;
|
|
71
|
+
};
|
|
72
|
+
/** Texto que o motor usa na descrição automática (opção `aria` do `hm-chart`). */
|
|
73
|
+
readonly engine: {
|
|
74
|
+
readonly legendAll: string;
|
|
75
|
+
readonly legendInverse: string;
|
|
76
|
+
readonly withTitle: string;
|
|
77
|
+
readonly withoutTitle: string;
|
|
78
|
+
readonly singleWithName: string;
|
|
79
|
+
readonly singleWithoutName: string;
|
|
80
|
+
readonly multiplePrefix: string;
|
|
81
|
+
readonly multipleWithName: string;
|
|
82
|
+
readonly multipleWithoutName: string;
|
|
83
|
+
readonly allData: string;
|
|
84
|
+
readonly partialData: string;
|
|
85
|
+
readonly dataWithName: string;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export declare const CHARTS_MESSAGES_PT_BR: ChartsMessages;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export const CHARTS_MESSAGES_EN = {
|
|
2
|
+
meta: { locale: 'en-US' },
|
|
3
|
+
frame: {
|
|
4
|
+
showTable: 'View as table',
|
|
5
|
+
showChart: 'View as chart',
|
|
6
|
+
tableCaption: 'Data for {label}',
|
|
7
|
+
noData: 'No data to display.',
|
|
8
|
+
keyboardHint: 'Use the arrow keys to move through the points.',
|
|
9
|
+
},
|
|
10
|
+
columns: {
|
|
11
|
+
category: 'Category',
|
|
12
|
+
series: 'Series',
|
|
13
|
+
value: 'Value',
|
|
14
|
+
date: 'Date',
|
|
15
|
+
share: 'Share',
|
|
16
|
+
row: 'Row',
|
|
17
|
+
column: 'Column',
|
|
18
|
+
x: 'X',
|
|
19
|
+
y: 'Y',
|
|
20
|
+
indicator: 'Indicator',
|
|
21
|
+
path: 'Group',
|
|
22
|
+
source: 'Source',
|
|
23
|
+
target: 'Target',
|
|
24
|
+
min: 'Minimum',
|
|
25
|
+
q1: 'First quartile',
|
|
26
|
+
median: 'Median',
|
|
27
|
+
q3: 'Third quartile',
|
|
28
|
+
max: 'Maximum',
|
|
29
|
+
goal: 'Target',
|
|
30
|
+
ranges: 'Ranges',
|
|
31
|
+
change: 'Change',
|
|
32
|
+
cumulative: 'Cumulative',
|
|
33
|
+
size: 'Size',
|
|
34
|
+
},
|
|
35
|
+
types: {
|
|
36
|
+
bar: 'Bar chart',
|
|
37
|
+
line: 'Line chart',
|
|
38
|
+
area: 'Area chart',
|
|
39
|
+
pie: 'Pie chart',
|
|
40
|
+
donut: 'Donut chart',
|
|
41
|
+
heatmap: 'Heat map',
|
|
42
|
+
calendar: 'Calendar heat map',
|
|
43
|
+
scatter: 'Scatter plot',
|
|
44
|
+
gauge: 'Gauge',
|
|
45
|
+
funnel: 'Funnel chart',
|
|
46
|
+
radar: 'Radar chart',
|
|
47
|
+
treemap: 'Treemap',
|
|
48
|
+
sankey: 'Sankey diagram',
|
|
49
|
+
boxplot: 'Box plot',
|
|
50
|
+
sparkline: 'Sparkline',
|
|
51
|
+
bubble: 'Bubble chart',
|
|
52
|
+
bullet: 'Bullet chart',
|
|
53
|
+
waterfall: 'Waterfall chart',
|
|
54
|
+
chart: 'Chart',
|
|
55
|
+
},
|
|
56
|
+
summary: {
|
|
57
|
+
series: {
|
|
58
|
+
one: '{type} with 1 series and {points} points.',
|
|
59
|
+
other: '{type} with {count} series and {points} points.',
|
|
60
|
+
},
|
|
61
|
+
range: 'Values from {min} to {max}.',
|
|
62
|
+
total: 'Total: {total}.',
|
|
63
|
+
largest: 'Largest: {name} ({value}).',
|
|
64
|
+
gauge: '{type}: {value}, on a scale from {min} to {max}.',
|
|
65
|
+
links: {
|
|
66
|
+
one: '{type} with 1 flow between {nodes} nodes.',
|
|
67
|
+
other: '{type} with {count} flows between {nodes} nodes.',
|
|
68
|
+
},
|
|
69
|
+
items: {
|
|
70
|
+
zero: '{type} with no items.',
|
|
71
|
+
one: '{type} with 1 item.',
|
|
72
|
+
other: '{type} with {count} items.',
|
|
73
|
+
},
|
|
74
|
+
gaugeCaption: '{type}: {value} {caption}, on a scale from {min} to {max}.',
|
|
75
|
+
sparkline: {
|
|
76
|
+
one: '{type} with 1 point: {last}.',
|
|
77
|
+
other: '{type} with {count} points, from {first} to {last}. Minimum {min}, maximum {max}.',
|
|
78
|
+
},
|
|
79
|
+
bulletItem: '{name}: {value}, target {target}.',
|
|
80
|
+
bulletItemNoTarget: '{name}: {value}.',
|
|
81
|
+
waterfall: {
|
|
82
|
+
one: '{type} with 1 step: from {start} to {end}.',
|
|
83
|
+
other: '{type} with {count} steps: from {start} to {end}.',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
waterfall: {
|
|
87
|
+
increase: 'Increase',
|
|
88
|
+
decrease: 'Decrease',
|
|
89
|
+
total: 'Total',
|
|
90
|
+
},
|
|
91
|
+
engine: {
|
|
92
|
+
legendAll: 'All',
|
|
93
|
+
legendInverse: 'Invert',
|
|
94
|
+
withTitle: 'Chart about "{title}"',
|
|
95
|
+
withoutTitle: 'Chart',
|
|
96
|
+
singleWithName: ' of type {seriesType} named {seriesName}.',
|
|
97
|
+
singleWithoutName: ' of type {seriesType}.',
|
|
98
|
+
multiplePrefix: '. It has {seriesCount} series.',
|
|
99
|
+
multipleWithName: ' Series {seriesId} is a {seriesType} representing {seriesName}.',
|
|
100
|
+
multipleWithoutName: ' Series {seriesId} is a {seriesType}.',
|
|
101
|
+
allData: 'The data is: ',
|
|
102
|
+
partialData: 'The first {displayCnt} items are: ',
|
|
103
|
+
dataWithName: 'the value for {name} is {value}',
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=charts-messages.en.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"charts-messages.en.js","sourceRoot":"","sources":["../../src/core/charts-messages.en.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAmB;IAChD,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;IACzB,KAAK,EAAE;QACL,SAAS,EAAE,eAAe;QAC1B,SAAS,EAAE,eAAe;QAC1B,YAAY,EAAE,kBAAkB;QAChC,MAAM,EAAE,qBAAqB;QAC7B,YAAY,EAAE,gDAAgD;KAC/D;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,QAAQ;QAChB,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;QACd,GAAG,EAAE,KAAK;QACV,MAAM,EAAE,QAAQ;QAChB,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,SAAS,EAAE,WAAW;QACtB,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,QAAQ;QAChB,GAAG,EAAE,SAAS;QACd,EAAE,EAAE,gBAAgB;QACpB,MAAM,EAAE,QAAQ;QAChB,EAAE,EAAE,gBAAgB;QACpB,GAAG,EAAE,SAAS;QACd,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,YAAY;QACxB,IAAI,EAAE,MAAM;KACb;IACD,KAAK,EAAE;QACL,GAAG,EAAE,WAAW;QAChB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,YAAY;QAClB,GAAG,EAAE,WAAW;QAChB,KAAK,EAAE,aAAa;QACpB,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,cAAc;QACvB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,cAAc;QACtB,KAAK,EAAE,aAAa;QACpB,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,g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@@ -0,0 +1,106 @@
|
|
|
1
|
+
export const CHARTS_MESSAGES_ES = {
|
|
2
|
+
meta: { locale: 'es' },
|
|
3
|
+
frame: {
|
|
4
|
+
showTable: 'Ver como tabla',
|
|
5
|
+
showChart: 'Ver como gráfico',
|
|
6
|
+
tableCaption: 'Datos de {label}',
|
|
7
|
+
noData: 'No hay datos para mostrar.',
|
|
8
|
+
keyboardHint: 'Use las flechas para recorrer los puntos.',
|
|
9
|
+
},
|
|
10
|
+
columns: {
|
|
11
|
+
category: 'Categoría',
|
|
12
|
+
series: 'Serie',
|
|
13
|
+
value: 'Valor',
|
|
14
|
+
date: 'Fecha',
|
|
15
|
+
share: 'Participación',
|
|
16
|
+
row: 'Fila',
|
|
17
|
+
column: 'Columna',
|
|
18
|
+
x: 'X',
|
|
19
|
+
y: 'Y',
|
|
20
|
+
indicator: 'Indicador',
|
|
21
|
+
path: 'Grupo',
|
|
22
|
+
source: 'Origen',
|
|
23
|
+
target: 'Destino',
|
|
24
|
+
min: 'Mínimo',
|
|
25
|
+
q1: 'Primer cuartil',
|
|
26
|
+
median: 'Mediana',
|
|
27
|
+
q3: 'Tercer cuartil',
|
|
28
|
+
max: 'Máximo',
|
|
29
|
+
goal: 'Meta',
|
|
30
|
+
ranges: 'Rangos',
|
|
31
|
+
change: 'Variación',
|
|
32
|
+
cumulative: 'Acumulado',
|
|
33
|
+
size: 'Tamaño',
|
|
34
|
+
},
|
|
35
|
+
types: {
|
|
36
|
+
bar: 'Gráfico de barras',
|
|
37
|
+
line: 'Gráfico de líneas',
|
|
38
|
+
area: 'Gráfico de área',
|
|
39
|
+
pie: 'Gráfico circular',
|
|
40
|
+
donut: 'Gráfico de anillo',
|
|
41
|
+
heatmap: 'Mapa de calor',
|
|
42
|
+
calendar: 'Mapa de calor de calendario',
|
|
43
|
+
scatter: 'Gráfico de dispersión',
|
|
44
|
+
gauge: 'Indicador',
|
|
45
|
+
funnel: 'Gráfico de embudo',
|
|
46
|
+
radar: 'Gráfico de radar',
|
|
47
|
+
treemap: 'Mapa de árbol',
|
|
48
|
+
sankey: 'Diagrama de Sankey',
|
|
49
|
+
boxplot: 'Diagrama de caja',
|
|
50
|
+
sparkline: 'Minigráfico',
|
|
51
|
+
bubble: 'Gráfico de burbujas',
|
|
52
|
+
bullet: 'Gráfico de bala',
|
|
53
|
+
waterfall: 'Gráfico de cascada',
|
|
54
|
+
chart: 'Gráfico',
|
|
55
|
+
},
|
|
56
|
+
summary: {
|
|
57
|
+
series: {
|
|
58
|
+
one: '{type} con 1 serie y {points} puntos.',
|
|
59
|
+
other: '{type} con {count} series y {points} puntos.',
|
|
60
|
+
},
|
|
61
|
+
range: 'Valores de {min} a {max}.',
|
|
62
|
+
total: 'Total: {total}.',
|
|
63
|
+
largest: 'Mayor: {name} ({value}).',
|
|
64
|
+
gauge: '{type}: {value}, en una escala de {min} a {max}.',
|
|
65
|
+
links: {
|
|
66
|
+
one: '{type} con 1 flujo entre {nodes} nodos.',
|
|
67
|
+
other: '{type} con {count} flujos entre {nodes} nodos.',
|
|
68
|
+
},
|
|
69
|
+
items: {
|
|
70
|
+
zero: '{type} sin elementos.',
|
|
71
|
+
one: '{type} con 1 elemento.',
|
|
72
|
+
other: '{type} con {count} elementos.',
|
|
73
|
+
},
|
|
74
|
+
gaugeCaption: '{type}: {value} {caption}, en una escala de {min} a {max}.',
|
|
75
|
+
sparkline: {
|
|
76
|
+
one: '{type} con 1 punto: {last}.',
|
|
77
|
+
other: '{type} con {count} puntos, de {first} a {last}. Mínimo {min}, máximo {max}.',
|
|
78
|
+
},
|
|
79
|
+
bulletItem: '{name}: {value}, meta {target}.',
|
|
80
|
+
bulletItemNoTarget: '{name}: {value}.',
|
|
81
|
+
waterfall: {
|
|
82
|
+
one: '{type} con 1 etapa: de {start} a {end}.',
|
|
83
|
+
other: '{type} con {count} etapas: de {start} a {end}.',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
waterfall: {
|
|
87
|
+
increase: 'Aumento',
|
|
88
|
+
decrease: 'Disminución',
|
|
89
|
+
total: 'Total',
|
|
90
|
+
},
|
|
91
|
+
engine: {
|
|
92
|
+
legendAll: 'Todos',
|
|
93
|
+
legendInverse: 'Invertir',
|
|
94
|
+
withTitle: 'Gráfico sobre "{title}"',
|
|
95
|
+
withoutTitle: 'Gráfico',
|
|
96
|
+
singleWithName: ' de tipo {seriesType} llamado {seriesName}.',
|
|
97
|
+
singleWithoutName: ' de tipo {seriesType}.',
|
|
98
|
+
multiplePrefix: '. Tiene {seriesCount} series.',
|
|
99
|
+
multipleWithName: ' La serie {seriesId} es un {seriesType} que representa {seriesName}.',
|
|
100
|
+
multipleWithoutName: ' La serie {seriesId} es un {seriesType}.',
|
|
101
|
+
allData: 'Los datos son: ',
|
|
102
|
+
partialData: 'Los primeros {displayCnt} elementos son: ',
|
|
103
|
+
dataWithName: 'el valor de {name} es {value}',
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=charts-messages.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"charts-messages.es.js","sourceRoot":"","sources":["../../src/core/charts-messages.es.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAmB;IAChD,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;IACtB,KAAK,EAAE;QACL,SAAS,EAAE,gBAAgB;QAC3B,SAAS,EAAE,kBAAkB;QAC7B,YAAY,EAAE,kBAAkB;QAChC,MAAM,EAAE,4BAA4B;QACpC,YAAY,EAAE,2CAA2C;KAC1D;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,OAAO;QACf,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,eAAe;QACtB,GAAG,EAAE,MAAM;QACX,MAAM,EAAE,SAAS;QACjB,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,SAAS,EAAE,WAAW;QACtB,IAA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DAA4D;QAC1E,SAAS,EAAE;YACT,GAAG,EAAE,6BAA6B;YAClC,KAAK,EAAE,6EAA6E;SACrF;QACD,UAAU,EAAE,iCAAiC;QAC7C,kBAAkB,EAAE,kBAAkB;QACtC,SAAS,EAAE;YACT,GAAG,EAAE,yCAAyC;YAC9C,KAAK,EAAE,gDAAgD;SACxD;KACF;IACD,SAAS,EAAE;QACT,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,aAAa;QACvB,KAAK,EAAE,OAAO;KACf;IACD,MAAM,EAAE;QACN,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,UAAU;QACzB,SAAS,EAAE,yBAAyB;QACpC,YAAY,EAAE,SAAS;QACvB,cAAc,EAAE,6CAA6C;QAC7D,iBAAiB,EAAE,wBAAwB;QAC3C,cAAc,EAAE,+BAA+B;QAC/C,gBAAgB,EAAE,sEAAsE;QACxF,mBAAmB,EAAE,0CAA0C;QAC/D,OAAO,EAAE,iBAAiB;QAC1B,WAAW,EAAE,2CAA2C;QACxD,YAAY,EAAE,+BAA+B;KAC9C;CACF,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export const CHARTS_MESSAGES_PT_BR = {
|
|
2
|
+
meta: { locale: 'pt-BR' },
|
|
3
|
+
frame: {
|
|
4
|
+
showTable: 'Ver como tabela',
|
|
5
|
+
showChart: 'Ver como gráfico',
|
|
6
|
+
tableCaption: 'Dados de {label}',
|
|
7
|
+
noData: 'Sem dados para exibir.',
|
|
8
|
+
keyboardHint: 'Use as setas para percorrer os pontos.',
|
|
9
|
+
},
|
|
10
|
+
columns: {
|
|
11
|
+
category: 'Categoria',
|
|
12
|
+
series: 'Série',
|
|
13
|
+
value: 'Valor',
|
|
14
|
+
date: 'Data',
|
|
15
|
+
share: 'Participação',
|
|
16
|
+
row: 'Linha',
|
|
17
|
+
column: 'Coluna',
|
|
18
|
+
x: 'X',
|
|
19
|
+
y: 'Y',
|
|
20
|
+
indicator: 'Indicador',
|
|
21
|
+
path: 'Grupo',
|
|
22
|
+
source: 'Origem',
|
|
23
|
+
target: 'Destino',
|
|
24
|
+
min: 'Mínimo',
|
|
25
|
+
q1: '1º quartil',
|
|
26
|
+
median: 'Mediana',
|
|
27
|
+
q3: '3º quartil',
|
|
28
|
+
max: 'Máximo',
|
|
29
|
+
goal: 'Meta',
|
|
30
|
+
ranges: 'Faixas',
|
|
31
|
+
change: 'Variação',
|
|
32
|
+
cumulative: 'Acumulado',
|
|
33
|
+
size: 'Tamanho',
|
|
34
|
+
},
|
|
35
|
+
types: {
|
|
36
|
+
bar: 'Gráfico de barras',
|
|
37
|
+
line: 'Gráfico de linhas',
|
|
38
|
+
area: 'Gráfico de área',
|
|
39
|
+
pie: 'Gráfico de pizza',
|
|
40
|
+
donut: 'Gráfico de rosca',
|
|
41
|
+
heatmap: 'Mapa de calor',
|
|
42
|
+
calendar: 'Mapa de calor de calendário',
|
|
43
|
+
scatter: 'Gráfico de dispersão',
|
|
44
|
+
gauge: 'Medidor',
|
|
45
|
+
funnel: 'Gráfico de funil',
|
|
46
|
+
radar: 'Gráfico de radar',
|
|
47
|
+
treemap: 'Mapa de árvore',
|
|
48
|
+
sankey: 'Diagrama de Sankey',
|
|
49
|
+
boxplot: 'Diagrama de caixa',
|
|
50
|
+
sparkline: 'Minigráfico',
|
|
51
|
+
bubble: 'Gráfico de bolhas',
|
|
52
|
+
bullet: 'Gráfico de bala',
|
|
53
|
+
waterfall: 'Gráfico de cascata',
|
|
54
|
+
chart: 'Gráfico',
|
|
55
|
+
},
|
|
56
|
+
summary: {
|
|
57
|
+
series: {
|
|
58
|
+
one: '{type} com 1 série e {points} pontos.',
|
|
59
|
+
other: '{type} com {count} séries e {points} pontos.',
|
|
60
|
+
},
|
|
61
|
+
range: 'Valores de {min} a {max}.',
|
|
62
|
+
total: 'Total: {total}.',
|
|
63
|
+
largest: 'Maior: {name} ({value}).',
|
|
64
|
+
gauge: '{type}: {value}, numa escala de {min} a {max}.',
|
|
65
|
+
links: {
|
|
66
|
+
one: '{type} com 1 fluxo entre {nodes} nós.',
|
|
67
|
+
other: '{type} com {count} fluxos entre {nodes} nós.',
|
|
68
|
+
},
|
|
69
|
+
items: {
|
|
70
|
+
zero: '{type} sem itens.',
|
|
71
|
+
one: '{type} com 1 item.',
|
|
72
|
+
other: '{type} com {count} itens.',
|
|
73
|
+
},
|
|
74
|
+
gaugeCaption: '{type}: {value} {caption}, numa escala de {min} a {max}.',
|
|
75
|
+
sparkline: {
|
|
76
|
+
one: '{type} com 1 ponto: {last}.',
|
|
77
|
+
other: '{type} com {count} pontos, de {first} a {last}. Mínimo {min}, máximo {max}.',
|
|
78
|
+
},
|
|
79
|
+
bulletItem: '{name}: {value}, meta {target}.',
|
|
80
|
+
bulletItemNoTarget: '{name}: {value}.',
|
|
81
|
+
waterfall: {
|
|
82
|
+
one: '{type} com 1 etapa: de {start} a {end}.',
|
|
83
|
+
other: '{type} com {count} etapas: de {start} a {end}.',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
waterfall: {
|
|
87
|
+
increase: 'Aumento',
|
|
88
|
+
decrease: 'Redução',
|
|
89
|
+
total: 'Total',
|
|
90
|
+
},
|
|
91
|
+
engine: {
|
|
92
|
+
legendAll: 'Todos',
|
|
93
|
+
legendInverse: 'Inverter',
|
|
94
|
+
withTitle: 'Gráfico sobre "{title}"',
|
|
95
|
+
withoutTitle: 'Gráfico',
|
|
96
|
+
singleWithName: ' do tipo {seriesType} chamado {seriesName}.',
|
|
97
|
+
singleWithoutName: ' do tipo {seriesType}.',
|
|
98
|
+
multiplePrefix: '. Tem {seriesCount} séries.',
|
|
99
|
+
multipleWithName: ' A série {seriesId} é um {seriesType} que representa {seriesName}.',
|
|
100
|
+
multipleWithoutName: ' A série {seriesId} é um {seriesType}.',
|
|
101
|
+
allData: 'Os dados são: ',
|
|
102
|
+
partialData: 'Os primeiros {displayCnt} itens são: ',
|
|
103
|
+
dataWithName: 'o valor de {name} é {value}',
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=charts-messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"charts-messages.js","sourceRoot":"","sources":["../../src/core/charts-messages.ts"],"names":[],"mappings":"AA2GA,MAAM,CAAC,MAAM,qBAAqB,GAAmB;IACnD,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;IACzB,KAAK,EAAE;QACL,SAAS,EAAE,iBAAiB;QAC5B,SAAS,EAAE,kBAAkB;QAC7B,YAAY,EAAE,kBAAkB;QAChC,MAAM,EAAE,wBAAwB;QAChC,YAAY,EAAE,wCAAwC;KACvD;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,OAAO;QACf,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,cAAc;QACrB,GAAG,EAAE,OAAO;QACZ,MAAM,EAAE,QAAQ;QAChB,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,SAAS,EAAE,WAAW;QACtB,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,SAAS;QACjB,GAAG,EAAE,QAAQ;QACb,EAAE,EAAE,YAAY;QAChB,MAAM,EAAE,SAAS;QACjB,EAAE,EAAE,YAAY;QAChB,GAAG,EAAE,QAAQ;QACb,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,UAAU;QAClB,UAAU,EAAE,WAAW;QACvB,IAAI,EAAE,SAAS;KAChB;IACD,KAAK,EAAE;QACL,GAAG,EAAE,mBAAmB;QACxB,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,iBAAiB;QACvB,GAAG,EAAE,kBAAkB;QACvB,KAAK,EAAE,kBAAkB;QACzB,OAAO,EAAE,eAAe;QACxB,QAAQ,EAAE,6BAA6B;QACvC,OAAO,EAAE,sBAAsB;QAC/B,KAAK,EAAE,SAAS;QACh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C;QAC7D,OAAO,EAAE,gBAAgB;QACzB,WAAW,EAAE,uCAAuC;QACpD,YAAY,EAAE,6BAA6B;KAC5C;CACF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ChartsTextFormatter } from './charts-i18n';
|
|
2
|
+
import type { ChartsMessages } from './charts-messages';
|
|
3
|
+
import { type NumberFormatter } from './format';
|
|
4
|
+
/** O que cada gráfico tipado recebe para montar opção, resumo e tabela. */
|
|
5
|
+
export interface ChartContext {
|
|
6
|
+
readonly m: ChartsMessages;
|
|
7
|
+
readonly locale: string;
|
|
8
|
+
readonly num: NumberFormatter;
|
|
9
|
+
readonly legend: boolean;
|
|
10
|
+
readonly tooltip: boolean;
|
|
11
|
+
readonly i18n: ChartsTextFormatter;
|
|
12
|
+
}
|
|
13
|
+
export interface ChartContextInput {
|
|
14
|
+
readonly messages: ChartsMessages;
|
|
15
|
+
readonly locale: string;
|
|
16
|
+
readonly numberFormat?: Intl.NumberFormatOptions | null;
|
|
17
|
+
readonly legend?: boolean;
|
|
18
|
+
readonly tooltip?: boolean;
|
|
19
|
+
readonly text: ChartsTextFormatter;
|
|
20
|
+
}
|
|
21
|
+
/** Contexto de montagem a partir do catálogo, do idioma e das entradas comuns (legenda, tooltip, formato). */
|
|
22
|
+
export declare function createChartContext(input: ChartContextInput): ChartContext;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { numberFormatter } from './format';
|
|
2
|
+
/** Contexto de montagem a partir do catálogo, do idioma e das entradas comuns (legenda, tooltip, formato). */
|
|
3
|
+
export function createChartContext(input) {
|
|
4
|
+
return {
|
|
5
|
+
m: input.messages,
|
|
6
|
+
locale: input.locale,
|
|
7
|
+
num: numberFormatter(input.locale, input.numberFormat ?? null),
|
|
8
|
+
legend: input.legend ?? true,
|
|
9
|
+
tooltip: input.tooltip ?? true,
|
|
10
|
+
i18n: input.text,
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/core/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,eAAe,EAAE,MAAM,UAAU,CAAC;AAqBjE,8GAA8G;AAC9G,MAAM,UAAU,kBAAkB,CAAC,KAAwB;IACzD,OAAO;QACL,CAAC,EAAE,KAAK,CAAC,QAAQ;QACjB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,GAAG,EAAE,eAAe,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,IAAI,IAAI,CAAC;QAC9D,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,IAAI;QAC5B,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI;QAC9B,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** Nomes de mês e dia da semana do idioma, via `Intl` (o motor usa nos eixos de tempo e no calendário). */
|
|
2
|
+
function timeNames(locale) {
|
|
3
|
+
const month = (style) => {
|
|
4
|
+
const fmt = new Intl.DateTimeFormat(locale, { month: style, timeZone: 'UTC' });
|
|
5
|
+
return Array.from({ length: 12 }, (_, m) => fmt.format(Date.UTC(2024, m, 1)));
|
|
6
|
+
};
|
|
7
|
+
// 2024-01-07 foi um domingo: o motor espera a semana começando no domingo.
|
|
8
|
+
const day = (style) => {
|
|
9
|
+
const fmt = new Intl.DateTimeFormat(locale, { weekday: style, timeZone: 'UTC' });
|
|
10
|
+
return Array.from({ length: 7 }, (_, d) => fmt.format(Date.UTC(2024, 0, 7 + d)));
|
|
11
|
+
};
|
|
12
|
+
return { month: month('long'), monthAbbr: month('short'), dayOfWeek: day('long'), dayOfWeekAbbr: day('short') };
|
|
13
|
+
}
|
|
14
|
+
/** Objeto de idioma no formato do motor, montado do catálogo do pacote + `Intl`. */
|
|
15
|
+
export function engineLocale(messages, locale) {
|
|
16
|
+
const e = messages.engine;
|
|
17
|
+
const t = messages.types;
|
|
18
|
+
return {
|
|
19
|
+
time: timeNames(locale),
|
|
20
|
+
legend: { selector: { all: e.legendAll, inverse: e.legendInverse } },
|
|
21
|
+
toolbox: {},
|
|
22
|
+
series: {
|
|
23
|
+
typeNames: {
|
|
24
|
+
pie: t.pie,
|
|
25
|
+
bar: t.bar,
|
|
26
|
+
line: t.line,
|
|
27
|
+
scatter: t.scatter,
|
|
28
|
+
radar: t.radar,
|
|
29
|
+
treemap: t.treemap,
|
|
30
|
+
boxplot: t.boxplot,
|
|
31
|
+
heatmap: t.heatmap,
|
|
32
|
+
sankey: t.sankey,
|
|
33
|
+
funnel: t.funnel,
|
|
34
|
+
gauge: t.gauge,
|
|
35
|
+
chart: t.chart,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
aria: {
|
|
39
|
+
general: { withTitle: e.withTitle, withoutTitle: e.withoutTitle },
|
|
40
|
+
series: {
|
|
41
|
+
single: { prefix: '', withName: e.singleWithName, withoutName: e.singleWithoutName },
|
|
42
|
+
multiple: {
|
|
43
|
+
prefix: e.multiplePrefix,
|
|
44
|
+
withName: e.multipleWithName,
|
|
45
|
+
withoutName: e.multipleWithoutName,
|
|
46
|
+
separator: { middle: '', end: '' },
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
data: {
|
|
50
|
+
allData: e.allData,
|
|
51
|
+
partialData: e.partialData,
|
|
52
|
+
withName: e.dataWithName,
|
|
53
|
+
withoutName: '{value}',
|
|
54
|
+
separator: { middle: ', ', end: '. ' },
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=engine-locale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-locale.js","sourceRoot":"","sources":["../../src/core/engine-locale.ts"],"names":[],"mappings":"AAEA,2GAA2G;AAC3G,SAAS,SAAS,CAAC,MAAc;IAC/B,MAAM,KAAK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;gBAC1B,QAAQ,EAAE,CAAC,CAAC,YAAY;gBACxB,WAAW,EAAE,SAAS;gBACtB,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE;aACvC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Traço para valor ausente: não é texto de interface, é a marca tipográfica de "sem valor". */
|
|
2
|
+
export declare const EMPTY_VALUE = "\u2014";
|
|
3
|
+
export type NumberFormatter = (value: number | null | undefined) => string;
|
|
4
|
+
export type DateFormatter = (value: Date | string | number) => string;
|
|
5
|
+
export declare function numberFormatter(locale: string, options?: Intl.NumberFormatOptions | null): NumberFormatter;
|
|
6
|
+
/** Data: `Date`, timestamp ou `AAAA-MM-DD` (lida como data local, sem deslocar o dia pelo fuso). */
|
|
7
|
+
export declare function toDate(value: Date | string | number): Date;
|
|
8
|
+
/** `AAAA-MM-DD` local (o formato que o calendário do motor entende). */
|
|
9
|
+
export declare function isoDay(value: Date | string | number): string;
|
|
10
|
+
export declare function dateFormatter(locale: string, options?: Intl.DateTimeFormatOptions | null): DateFormatter;
|
|
11
|
+
/** Menor e maior valor finito (ou `null` se não houver nenhum). */
|
|
12
|
+
export declare function extent(values: Iterable<number | null | undefined>): [number, number] | null;
|
|
13
|
+
export declare function sum(values: Iterable<number | null | undefined>): number;
|