@agorapulse/ui-charts-map 20.1.1 → 20.1.3
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.
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { viewChild, input, signal, effect, untracked, Component } from '@angular/core';
|
|
3
|
-
import { mapChart } from 'highcharts/highmaps';
|
|
3
|
+
import { setOptions, mapChart } from 'highcharts/highmaps';
|
|
4
4
|
import geojson from '@highcharts/map-collection/custom/world-highres2.geo.json';
|
|
5
|
-
import { dateFormat } from 'highcharts';
|
|
5
|
+
import { dateFormat, numberFormat } from 'highcharts';
|
|
6
6
|
|
|
7
7
|
var ChartColor;
|
|
8
8
|
(function (ChartColor) {
|
|
@@ -239,9 +239,6 @@ class ChartOptions {
|
|
|
239
239
|
},
|
|
240
240
|
},
|
|
241
241
|
};
|
|
242
|
-
static build(options) {
|
|
243
|
-
return mergeDeep(ChartOptions.DEFAULT_OPTIONS, options);
|
|
244
|
-
}
|
|
245
242
|
static configure(series, options, color, labelDateFormat) {
|
|
246
243
|
// Configure axis
|
|
247
244
|
options.xAxis = mergeDeep({
|
|
@@ -257,9 +254,6 @@ class ChartOptions {
|
|
|
257
254
|
// Configure series
|
|
258
255
|
if (series && series.length) {
|
|
259
256
|
options.series = series;
|
|
260
|
-
if (options.legend) {
|
|
261
|
-
options.legend.enabled = series.length >= 2;
|
|
262
|
-
}
|
|
263
257
|
options.colors = ChartColors.getColors(series.length, color);
|
|
264
258
|
}
|
|
265
259
|
}
|
|
@@ -300,7 +294,7 @@ function deepCopy(source) {
|
|
|
300
294
|
}
|
|
301
295
|
|
|
302
296
|
class ChartMapOptions extends ChartOptions {
|
|
303
|
-
static build(options) {
|
|
297
|
+
static build(options, locale) {
|
|
304
298
|
const defaultMapOptions = {
|
|
305
299
|
chart: {
|
|
306
300
|
map: geojson,
|
|
@@ -320,6 +314,7 @@ class ChartMapOptions extends ChartOptions {
|
|
|
320
314
|
maxColor: ChartColors.SOFT_BLUE_COLORS[100],
|
|
321
315
|
},
|
|
322
316
|
legend: {
|
|
317
|
+
enabled: true,
|
|
323
318
|
align: 'left',
|
|
324
319
|
floating: true,
|
|
325
320
|
},
|
|
@@ -353,23 +348,28 @@ class ChartMapOptions extends ChartOptions {
|
|
|
353
348
|
},
|
|
354
349
|
tooltip: {
|
|
355
350
|
headerFormat: '',
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
'<div style="
|
|
359
|
-
|
|
351
|
+
pointFormatter: function () {
|
|
352
|
+
const value = numberFormat(this.value ?? 0, -1);
|
|
353
|
+
return ('<div style="border-bottom: 1px solid #eaecef; padding: 0 8px 7px">' +
|
|
354
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
355
|
+
`<span style="font-size: 12px; color: #858fa1">${this.translatedName}</span></div>` +
|
|
356
|
+
'<div style="font-size: 14px; color: #344563; margin: 6px 8px 0 8px;">' +
|
|
357
|
+
`<span style="color:${this.color}">\u25CF</span> ${this.series.name}: <b>${value}</b></div>`);
|
|
358
|
+
},
|
|
360
359
|
},
|
|
361
360
|
xAxis: {
|
|
362
361
|
crosshair: true,
|
|
363
362
|
},
|
|
364
363
|
};
|
|
365
|
-
|
|
364
|
+
const parts = new Intl.NumberFormat(locale).formatToParts(12345.6);
|
|
365
|
+
const decimalPoint = parts.find(p => p.type === 'decimal')?.value ?? '.';
|
|
366
|
+
const thousandsSep = parts.find(p => p.type === 'group')?.value ?? ',';
|
|
367
|
+
setOptions({ lang: { decimalPoint, thousandsSep } });
|
|
368
|
+
return mergeDeep(ChartOptions.DEFAULT_OPTIONS, mergeDeep(defaultMapOptions, options));
|
|
366
369
|
}
|
|
367
370
|
static configureMap(series, options, color, labelDateFormat) {
|
|
368
371
|
super.configure(series, options, color, labelDateFormat);
|
|
369
372
|
const colors = ChartColors.getChartColors(color);
|
|
370
|
-
if (options.legend) {
|
|
371
|
-
options.legend.enabled = true;
|
|
372
|
-
}
|
|
373
373
|
options.colorAxis.minColor = colors[20];
|
|
374
374
|
options.colorAxis.maxColor = colors[100];
|
|
375
375
|
}
|
|
@@ -380,15 +380,17 @@ class ChartMapComponent {
|
|
|
380
380
|
chartOptions = input({}, ...(ngDevMode ? [{ debugName: "chartOptions" }] : []));
|
|
381
381
|
color = input(ChartColor.ElectricBlue, ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
382
382
|
labelDateFormat = input('%m/%d', ...(ngDevMode ? [{ debugName: "labelDateFormat" }] : []));
|
|
383
|
+
locale = input('en', ...(ngDevMode ? [{ debugName: "locale" }] : []));
|
|
383
384
|
series = input.required(...(ngDevMode ? [{ debugName: "series" }] : []));
|
|
384
385
|
lastWidth = signal(0, ...(ngDevMode ? [{ debugName: "lastWidth" }] : []));
|
|
385
386
|
chartInstance = signal(null, ...(ngDevMode ? [{ debugName: "chartInstance" }] : []));
|
|
386
387
|
constructor() {
|
|
387
388
|
effect(() => {
|
|
388
389
|
const seriesValue = this.series();
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
390
|
+
this.color();
|
|
391
|
+
this.chartOptions();
|
|
392
|
+
this.labelDateFormat();
|
|
393
|
+
this.locale();
|
|
392
394
|
if (seriesValue.length > 0) {
|
|
393
395
|
untracked(() => {
|
|
394
396
|
this.initChart();
|
|
@@ -424,7 +426,7 @@ class ChartMapComponent {
|
|
|
424
426
|
currentChart.destroy();
|
|
425
427
|
}
|
|
426
428
|
try {
|
|
427
|
-
const builtOptions = ChartMapOptions.build(this.chartOptions());
|
|
429
|
+
const builtOptions = ChartMapOptions.build(this.chartOptions(), this.locale());
|
|
428
430
|
ChartMapOptions.configureMap(seriesValue, builtOptions, this.color(), this.labelDateFormat());
|
|
429
431
|
const newChart = mapChart(chartElement, builtOptions);
|
|
430
432
|
this.chartInstance.set(newChart);
|
|
@@ -434,7 +436,7 @@ class ChartMapComponent {
|
|
|
434
436
|
}
|
|
435
437
|
}
|
|
436
438
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ChartMapComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
437
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.1.3", type: ChartMapComponent, isStandalone: true, selector: "ap-chart-map", inputs: { chartOptions: { classPropertyName: "chartOptions", publicName: "chartOptions", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, labelDateFormat: { classPropertyName: "labelDateFormat", publicName: "labelDateFormat", isSignal: true, isRequired: false, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "chartRef", first: true, predicate: ["chart"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #chart></div>\n" });
|
|
439
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.1.3", type: ChartMapComponent, isStandalone: true, selector: "ap-chart-map", inputs: { chartOptions: { classPropertyName: "chartOptions", publicName: "chartOptions", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, labelDateFormat: { classPropertyName: "labelDateFormat", publicName: "labelDateFormat", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "chartRef", first: true, predicate: ["chart"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #chart></div>\n" });
|
|
438
440
|
}
|
|
439
441
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ChartMapComponent, decorators: [{
|
|
440
442
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agorapulse-ui-charts-map.mjs","sources":["../../../libs/ui-charts-map/src/lib/chart-colors.ts","../../../libs/ui-charts-map/src/lib/chart-options.ts","../../../libs/ui-charts-map/src/lib/chart-map/chart-map-options.model.ts","../../../libs/ui-charts-map/src/lib/chart-map/chart-map.component.ts","../../../libs/ui-charts-map/src/lib/chart-map/chart-map.component.html","../../../libs/ui-charts-map/index.ts","../../../libs/ui-charts-map/agorapulse-ui-charts-map.ts"],"sourcesContent":["export enum ChartColor {\n Grey,\n Orange,\n SoftBlue,\n ElectricBlue,\n Purple,\n Green,\n}\n\nexport class ChartColors {\n static readonly SOFT_BLUE_COLORS = {\n '10': '#EFF5FC',\n '20': '#DFEDFA',\n '40': '#C0DBF4',\n '60': '#A0C8EF',\n '85': '#78B1E8',\n '100': '#61A4E4',\n };\n static readonly ELECTRIC_BLUE_COLORS = {\n '10': '#e8f4ff',\n '20': '#d1e8ff',\n '40': '#a2d1ff',\n '60': '#74bbfe',\n '85': '#3a9efe',\n '100': '#178dfe',\n };\n static readonly ORANGE_COLORS = {\n '10': '#FFEFE9',\n '20': '#FFE1D4',\n '40': '#FFC2A8',\n '60': '#FFA47D',\n '85': '#FF7E46',\n '100': '#FF6726',\n };\n static readonly GREEN_COLORS = {\n '10': '#ECF7ED',\n '20': '#DAF1DD',\n '40': '#B5E3BB',\n '60': '#8FD498',\n '85': '#61C26D',\n '100': '#45B854',\n };\n static readonly PURPLE_COLORS = {\n '10': '#EFEDF8',\n '20': '#E0DDF2',\n '40': '#C1BBE6',\n '60': '#A398D9',\n '85': '#7C6DC9',\n '100': '#6554C0',\n };\n static readonly GREY_COLORS = {\n '10': '#EAECEF',\n '20': '#D6DAE0',\n '40': '#AEB5C1',\n '60': '#858FA1',\n '85': '#5D6A82',\n '100': '#344563',\n };\n\n static readonly BLACK_COLOR: string = '#000000';\n static readonly LIMIT_COLOR: string = '#E81313';\n static readonly WHITE_COLOR: string = '#FFFFFF';\n\n static getChartColors(color: ChartColor): { [shade: string]: string } {\n switch (color) {\n case ChartColor.Orange:\n return this.ORANGE_COLORS;\n case ChartColor.SoftBlue:\n return this.SOFT_BLUE_COLORS;\n case ChartColor.ElectricBlue:\n return this.ELECTRIC_BLUE_COLORS;\n case ChartColor.Purple:\n return this.PURPLE_COLORS;\n case ChartColor.Green:\n return this.GREEN_COLORS;\n default:\n return this.GREY_COLORS;\n }\n }\n\n static getColors(seriesCount: number, color: ChartColor): string[] {\n const colors = this.getChartColors(color);\n switch (seriesCount) {\n case 1:\n return [colors[100]];\n case 2:\n return [colors[40], colors[100]];\n case 3:\n return [colors[20], colors[60], colors[100]];\n case 4:\n return [colors[20], colors[40], colors[60], colors[100]];\n case 5:\n return [colors[10], colors[20], colors[40], colors[60], colors[100]];\n default:\n return [colors[20], colors[40], colors[60], colors[100]];\n }\n }\n}\n","import { dateFormat, Options, SeriesOptionsType } from 'highcharts';\nimport { ChartColor, ChartColors } from './chart-colors';\n\nexport class ChartOptions {\n static readonly DEFAULT_DATE_FORMAT: string = '%A, %b %e, %Y';\n static readonly DEFAULT_OPTIONS: Options = {\n /*lang: {\n decimalPoint: (manager && manager.locale !== 'en') ? ',' : '.',\n resetZoom: resetZoomLabel,\n resetZoomTitle: resetZoomHtmlTitle,\n shortMonths: [\n shortJanuary, shortFebruary, shortMarch, shortApril, shortMay, shortJune,\n shortJuly, shortAugust, shortSeptember, shortOctober, shortNovember, shortDecember\n ],\n thousandsSep: (manager && manager.locale !== 'en') ? ' ' : ',',\n weekdays: this.weekDays,\n zoomIn: zoomInHtmlTitle,\n zoomOut: zoomOutHtmlTitle\n },*/\n chart: {\n spacingRight: 20,\n zooming: {\n type: 'xy',\n resetButton: {\n theme: {\n fill: ChartColors.WHITE_COLOR,\n r: 4,\n style: {\n color: ChartColors.GREY_COLORS[100],\n fontSize: '12px',\n },\n states: {\n hover: {\n fill: ChartColors.GREY_COLORS[10],\n },\n },\n },\n },\n },\n panning: {\n enabled: true,\n },\n panKey: 'shift',\n style: {\n fontFamily: \"Averta, 'Open Sans', Helvetica, sans-serif\",\n },\n },\n colorAxis: {\n labels: {\n style: {\n color: ChartColors.GREY_COLORS[60],\n },\n },\n },\n credits: {\n enabled: false,\n },\n legend: {\n borderWidth: 0,\n itemStyle: {\n color: ChartColors.GREY_COLORS[60],\n fontSize: '14px',\n fontWeight: 'normal',\n },\n itemHoverStyle: {\n color: ChartColors.GREY_COLORS[100],\n fontWeight: 'bold',\n },\n },\n plotOptions: {\n series: {\n states: {\n hover: {\n brightness: 0,\n },\n },\n connectNulls: true,\n lineWidth: 4,\n },\n },\n navigation: {\n buttonOptions: {\n y: 0,\n },\n },\n title: {\n text: undefined,\n },\n tooltip: {\n backgroundColor: ChartColors.WHITE_COLOR,\n borderRadius: 4,\n borderWidth: 0,\n dateTimeLabelFormats: {\n day: ChartOptions.DEFAULT_DATE_FORMAT,\n week: ChartOptions.DEFAULT_DATE_FORMAT,\n },\n shadow: {\n color: ChartColors.BLACK_COLOR,\n offsetX: 0,\n offsetY: 2,\n opacity: 0.02,\n width: 6,\n },\n split: false,\n shared: true,\n useHTML: true,\n headerFormat:\n `<div style=\"border-bottom: 1px solid ${ChartColors.GREY_COLORS[10]}; padding: 0 8px 7px\">` +\n `<span style=\"font-size: 12px; color: ${ChartColors.GREY_COLORS[60]}\">{point.key}</span></div>`,\n pointFormat:\n `<div style=\"font-size: 14px; color: ${ChartColors.GREY_COLORS[100]}; margin: 6px 8px 0 8px;\">` +\n '<span style=\"color:{point.color}\">\\u25CF</span> {series.name}: <b>{point.y}</b></div>',\n },\n xAxis: {\n gridLineColor: ChartColors.GREY_COLORS[10],\n lineColor: ChartColors.GREY_COLORS[10],\n tickColor: ChartColors.GREY_COLORS[10],\n gridLineWidth: 1,\n title: {\n text: undefined,\n },\n labels: {\n style: {\n color: ChartColors.GREY_COLORS[40],\n fontSize: '12px',\n },\n },\n },\n yAxis: {\n allowDecimals: false,\n gridLineColor: ChartColors.GREY_COLORS[10],\n lineColor: ChartColors.GREY_COLORS[10],\n gridLineWidth: 1,\n title: {\n text: undefined,\n },\n labels: {\n style: {\n color: ChartColors.GREY_COLORS[40],\n fontSize: '12px',\n },\n },\n },\n };\n\n static build(options: Options): Options {\n return mergeDeep(ChartOptions.DEFAULT_OPTIONS, options);\n }\n\n static configure(series: SeriesOptionsType[], options: Options, color: ChartColor, labelDateFormat?: string) {\n // Configure axis\n options.xAxis = mergeDeep(\n {\n labels: {\n formatter: function (): string {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return dateFormat(labelDateFormat ? labelDateFormat : '%m/%d', this.value);\n },\n },\n //minTickInterval: 24 * 60 * 60 * 1000 // One day\n },\n options.xAxis\n );\n // Configure series\n if (series && series.length) {\n options.series = series;\n if (options.legend) {\n options.legend.enabled = series.length >= 2;\n }\n options.colors = ChartColors.getColors(series.length, color);\n }\n }\n}\n\nexport function isObject(item: any) {\n return item && typeof item === 'object' && !Array.isArray(item);\n}\n\nexport function mergeDeep(target: any, source: any) {\n const output = deepCopy(target);\n if (isObject(target) && isObject(source)) {\n Object.keys(source).forEach(key => {\n if (isObject(source[key])) {\n if (!(key in target)) Object.assign(output, { [key]: source[key] });\n else output[key] = mergeDeep(target[key], source[key]);\n } else {\n Object.assign(output, { [key]: source[key] });\n }\n });\n }\n return output;\n}\n\nfunction deepCopy(source: any) {\n if (typeof source !== 'object' || source === null) {\n return source; // Return the value if source is not an object\n }\n // Create an array or object to hold the values\n const newObject = Array.isArray(source) ? [] : {};\n for (const key in source) {\n if (source.hasOwnProperty(key)) {\n // Recursively (deep) copy for nested objects, including arrays\n (newObject as any)[key] = deepCopy(source[key]);\n }\n }\n return newObject;\n}\n","import geojson from '@highcharts/map-collection/custom/world-highres2.geo.json';\nimport * as Highcharts from 'highcharts';\nimport { ColorAxisOptions, Options, SeriesOptionsType } from 'highcharts';\n\nimport { ChartColor, ChartColors } from '../chart-colors';\nimport { ChartOptions, mergeDeep } from '../chart-options';\n\nexport class ChartMapOptions extends ChartOptions {\n static override build(options: Highcharts.Options): Highcharts.Options {\n const defaultMapOptions: Highcharts.Options = {\n chart: {\n map: geojson,\n },\n colorAxis: {\n allowDecimals: false,\n gridLineWidth: 2,\n gridLineColor: ChartColors.WHITE_COLOR,\n min: 0,\n tickAmount: 6,\n labels: {\n style: {\n fontSize: '12px',\n },\n },\n minColor: ChartColors.SOFT_BLUE_COLORS[20],\n maxColor: ChartColors.SOFT_BLUE_COLORS[100],\n },\n legend: {\n align: 'left',\n floating: true,\n },\n mapNavigation: {\n enabled: true,\n enableMouseWheelZoom: false,\n buttonOptions: {\n verticalAlign: 'middle',\n style: {\n color: ChartColors.GREY_COLORS[100],\n fontSize: '16px',\n fontWeight: 'normal',\n },\n theme: {\n fill: ChartColors.WHITE_COLOR,\n r: 4,\n states: {\n hover: {\n fill: ChartColors.GREY_COLORS[10],\n },\n },\n },\n },\n },\n plotOptions: {\n map: {\n borderColor: ChartColors.WHITE_COLOR,\n borderWidth: 0.5,\n nullColor: '#e2e2ea',\n },\n },\n tooltip: {\n headerFormat: '',\n pointFormat:\n '<div style=\"border-bottom: 1px solid #eaecef; padding: 0 8px 7px\">' +\n '<span style=\"font-size: 12px; color: #858fa1\">{point.translatedName}</span></div>' +\n '<div style=\"font-size: 14px; color: #344563; margin: 6px 8px 0 8px;\">' +\n '<span style=\"color:{point.color}\">\\u25CF</span> {series.name}: <b>{point.value}</b></div>',\n },\n xAxis: {\n crosshair: true,\n },\n };\n return super.build(mergeDeep(defaultMapOptions, options));\n }\n\n static configureMap(series: SeriesOptionsType[], options: Options, color: ChartColor, labelDateFormat?: string) {\n super.configure(series, options, color, labelDateFormat);\n const colors = ChartColors.getChartColors(color);\n if (options.legend) {\n options.legend.enabled = true;\n }\n (options.colorAxis as ColorAxisOptions).minColor = colors[20];\n (options.colorAxis as ColorAxisOptions).maxColor = colors[100];\n }\n}\n","import { Component, ElementRef, effect, input, signal, untracked, viewChild } from '@angular/core';\nimport { Options, SeriesMapOptions, mapChart } from 'highcharts/highmaps';\nimport { ChartColor } from '../chart-colors';\nimport { ChartMapOptions } from './chart-map-options.model';\n\n@Component({\n selector: 'ap-chart-map',\n templateUrl: './chart-map.component.html',\n standalone: true,\n})\nexport class ChartMapComponent {\n protected readonly chartRef = viewChild.required<ElementRef<HTMLDivElement>>('chart');\n\n readonly chartOptions = input<Options>({});\n readonly color = input<ChartColor>(ChartColor.ElectricBlue);\n readonly labelDateFormat = input<string>('%m/%d');\n readonly series = input.required<SeriesMapOptions[]>();\n\n private readonly lastWidth = signal<number>(0);\n private readonly chartInstance = signal<Highcharts.Chart | null>(null);\n\n constructor() {\n effect(() => {\n const seriesValue = this.series();\n const colorValue = this.color();\n const chartOptionsValue = this.chartOptions();\n const labelDateFormatValue = this.labelDateFormat();\n\n if (seriesValue.length > 0) {\n untracked(() => {\n this.initChart();\n });\n }\n });\n\n effect(() => {\n const chartElement = this.chartRef()?.nativeElement;\n if (!chartElement) return;\n\n const currentWidth = chartElement.clientWidth;\n if (currentWidth > 0 && currentWidth !== this.lastWidth()) {\n untracked(() => {\n this.lastWidth.set(currentWidth);\n });\n const seriesValue = this.series();\n if (seriesValue.length > 0) {\n untracked(() => {\n this.initChart();\n });\n }\n }\n });\n }\n\n private initChart(): void {\n const seriesValue = this.series();\n const chartElement = this.chartRef()?.nativeElement;\n\n if (!seriesValue.length || !chartElement) {\n return;\n }\n\n const currentChart = this.chartInstance();\n if (currentChart) {\n currentChart.destroy();\n }\n\n try {\n const builtOptions = ChartMapOptions.build(this.chartOptions());\n ChartMapOptions.configureMap(seriesValue, builtOptions, this.color(), this.labelDateFormat());\n\n const newChart = mapChart(chartElement, builtOptions);\n this.chartInstance.set(newChart);\n } catch (error) {\n console.error('Failed to initialize chart:', error);\n }\n }\n}\n","<div #chart></div>\n","/*\n * Public API Surface of ui-charts-map\n */\n\nexport { ChartMapComponent } from './src/lib/chart-map/chart-map.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA,IAAY,UAOX;AAPD,CA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AA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,4tBCV9B,sBACA,EAAA,CAAA;;2FDSa,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,cAEZ,IAAI,EAAA,QAAA,EAAA,sBAAA,EAAA;;;AERpB;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"agorapulse-ui-charts-map.mjs","sources":["../../../libs/ui-charts-map/src/lib/chart-colors.ts","../../../libs/ui-charts-map/src/lib/chart-options.ts","../../../libs/ui-charts-map/src/lib/chart-map/chart-map-options.model.ts","../../../libs/ui-charts-map/src/lib/chart-map/chart-map.component.ts","../../../libs/ui-charts-map/src/lib/chart-map/chart-map.component.html","../../../libs/ui-charts-map/index.ts","../../../libs/ui-charts-map/agorapulse-ui-charts-map.ts"],"sourcesContent":["export enum ChartColor {\n Grey,\n Orange,\n SoftBlue,\n ElectricBlue,\n Purple,\n Green,\n}\n\nexport class ChartColors {\n static readonly SOFT_BLUE_COLORS = {\n '10': '#EFF5FC',\n '20': '#DFEDFA',\n '40': '#C0DBF4',\n '60': '#A0C8EF',\n '85': '#78B1E8',\n '100': '#61A4E4',\n };\n static readonly ELECTRIC_BLUE_COLORS = {\n '10': '#e8f4ff',\n '20': '#d1e8ff',\n '40': '#a2d1ff',\n '60': '#74bbfe',\n '85': '#3a9efe',\n '100': '#178dfe',\n };\n static readonly ORANGE_COLORS = {\n '10': '#FFEFE9',\n '20': '#FFE1D4',\n '40': '#FFC2A8',\n '60': '#FFA47D',\n '85': '#FF7E46',\n '100': '#FF6726',\n };\n static readonly GREEN_COLORS = {\n '10': '#ECF7ED',\n '20': '#DAF1DD',\n '40': '#B5E3BB',\n '60': '#8FD498',\n '85': '#61C26D',\n '100': '#45B854',\n };\n static readonly PURPLE_COLORS = {\n '10': '#EFEDF8',\n '20': '#E0DDF2',\n '40': '#C1BBE6',\n '60': '#A398D9',\n '85': '#7C6DC9',\n '100': '#6554C0',\n };\n static readonly GREY_COLORS = {\n '10': '#EAECEF',\n '20': '#D6DAE0',\n '40': '#AEB5C1',\n '60': '#858FA1',\n '85': '#5D6A82',\n '100': '#344563',\n };\n\n static readonly BLACK_COLOR: string = '#000000';\n static readonly LIMIT_COLOR: string = '#E81313';\n static readonly WHITE_COLOR: string = '#FFFFFF';\n\n static getChartColors(color: ChartColor): { [shade: string]: string } {\n switch (color) {\n case ChartColor.Orange:\n return this.ORANGE_COLORS;\n case ChartColor.SoftBlue:\n return this.SOFT_BLUE_COLORS;\n case ChartColor.ElectricBlue:\n return this.ELECTRIC_BLUE_COLORS;\n case ChartColor.Purple:\n return this.PURPLE_COLORS;\n case ChartColor.Green:\n return this.GREEN_COLORS;\n default:\n return this.GREY_COLORS;\n }\n }\n\n static getColors(seriesCount: number, color: ChartColor): string[] {\n const colors = this.getChartColors(color);\n switch (seriesCount) {\n case 1:\n return [colors[100]];\n case 2:\n return [colors[40], colors[100]];\n case 3:\n return [colors[20], colors[60], colors[100]];\n case 4:\n return [colors[20], colors[40], colors[60], colors[100]];\n case 5:\n return [colors[10], colors[20], colors[40], colors[60], colors[100]];\n default:\n return [colors[20], colors[40], colors[60], colors[100]];\n }\n }\n}\n","import { dateFormat, Options, SeriesOptionsType } from 'highcharts';\nimport { ChartColor, ChartColors } from './chart-colors';\n\nexport class ChartOptions {\n static readonly DEFAULT_DATE_FORMAT: string = '%A, %b %e, %Y';\n static readonly DEFAULT_OPTIONS: Options = {\n /*lang: {\n decimalPoint: (manager && manager.locale !== 'en') ? ',' : '.',\n resetZoom: resetZoomLabel,\n resetZoomTitle: resetZoomHtmlTitle,\n shortMonths: [\n shortJanuary, shortFebruary, shortMarch, shortApril, shortMay, shortJune,\n shortJuly, shortAugust, shortSeptember, shortOctober, shortNovember, shortDecember\n ],\n thousandsSep: (manager && manager.locale !== 'en') ? ' ' : ',',\n weekdays: this.weekDays,\n zoomIn: zoomInHtmlTitle,\n zoomOut: zoomOutHtmlTitle\n },*/\n chart: {\n spacingRight: 20,\n zooming: {\n type: 'xy',\n resetButton: {\n theme: {\n fill: ChartColors.WHITE_COLOR,\n r: 4,\n style: {\n color: ChartColors.GREY_COLORS[100],\n fontSize: '12px',\n },\n states: {\n hover: {\n fill: ChartColors.GREY_COLORS[10],\n },\n },\n },\n },\n },\n panning: {\n enabled: true,\n },\n panKey: 'shift',\n style: {\n fontFamily: \"Averta, 'Open Sans', Helvetica, sans-serif\",\n },\n },\n colorAxis: {\n labels: {\n style: {\n color: ChartColors.GREY_COLORS[60],\n },\n },\n },\n credits: {\n enabled: false,\n },\n legend: {\n borderWidth: 0,\n itemStyle: {\n color: ChartColors.GREY_COLORS[60],\n fontSize: '14px',\n fontWeight: 'normal',\n },\n itemHoverStyle: {\n color: ChartColors.GREY_COLORS[100],\n fontWeight: 'bold',\n },\n },\n plotOptions: {\n series: {\n states: {\n hover: {\n brightness: 0,\n },\n },\n connectNulls: true,\n lineWidth: 4,\n },\n },\n navigation: {\n buttonOptions: {\n y: 0,\n },\n },\n title: {\n text: undefined,\n },\n tooltip: {\n backgroundColor: ChartColors.WHITE_COLOR,\n borderRadius: 4,\n borderWidth: 0,\n dateTimeLabelFormats: {\n day: ChartOptions.DEFAULT_DATE_FORMAT,\n week: ChartOptions.DEFAULT_DATE_FORMAT,\n },\n shadow: {\n color: ChartColors.BLACK_COLOR,\n offsetX: 0,\n offsetY: 2,\n opacity: 0.02,\n width: 6,\n },\n split: false,\n shared: true,\n useHTML: true,\n headerFormat:\n `<div style=\"border-bottom: 1px solid ${ChartColors.GREY_COLORS[10]}; padding: 0 8px 7px\">` +\n `<span style=\"font-size: 12px; color: ${ChartColors.GREY_COLORS[60]}\">{point.key}</span></div>`,\n pointFormat:\n `<div style=\"font-size: 14px; color: ${ChartColors.GREY_COLORS[100]}; margin: 6px 8px 0 8px;\">` +\n '<span style=\"color:{point.color}\">\\u25CF</span> {series.name}: <b>{point.y}</b></div>',\n },\n xAxis: {\n gridLineColor: ChartColors.GREY_COLORS[10],\n lineColor: ChartColors.GREY_COLORS[10],\n tickColor: ChartColors.GREY_COLORS[10],\n gridLineWidth: 1,\n title: {\n text: undefined,\n },\n labels: {\n style: {\n color: ChartColors.GREY_COLORS[40],\n fontSize: '12px',\n },\n },\n },\n yAxis: {\n allowDecimals: false,\n gridLineColor: ChartColors.GREY_COLORS[10],\n lineColor: ChartColors.GREY_COLORS[10],\n gridLineWidth: 1,\n title: {\n text: undefined,\n },\n labels: {\n style: {\n color: ChartColors.GREY_COLORS[40],\n fontSize: '12px',\n },\n },\n },\n };\n\n static configure(series: SeriesOptionsType[], options: Options, color: ChartColor, labelDateFormat?: string) {\n // Configure axis\n options.xAxis = mergeDeep(\n {\n labels: {\n formatter: function (): string {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return dateFormat(labelDateFormat ? labelDateFormat : '%m/%d', this.value);\n },\n },\n //minTickInterval: 24 * 60 * 60 * 1000 // One day\n },\n options.xAxis\n );\n // Configure series\n if (series && series.length) {\n options.series = series;\n options.colors = ChartColors.getColors(series.length, color);\n }\n }\n}\n\nexport function isObject(item: any) {\n return item && typeof item === 'object' && !Array.isArray(item);\n}\n\nexport function mergeDeep(target: any, source: any) {\n const output = deepCopy(target);\n if (isObject(target) && isObject(source)) {\n Object.keys(source).forEach(key => {\n if (isObject(source[key])) {\n if (!(key in target)) Object.assign(output, { [key]: source[key] });\n else output[key] = mergeDeep(target[key], source[key]);\n } else {\n Object.assign(output, { [key]: source[key] });\n }\n });\n }\n return output;\n}\n\nfunction deepCopy(source: any) {\n if (typeof source !== 'object' || source === null) {\n return source; // Return the value if source is not an object\n }\n // Create an array or object to hold the values\n const newObject = Array.isArray(source) ? [] : {};\n for (const key in source) {\n if (source.hasOwnProperty(key)) {\n // Recursively (deep) copy for nested objects, including arrays\n (newObject as any)[key] = deepCopy(source[key]);\n }\n }\n return newObject;\n}\n","import geojson from '@highcharts/map-collection/custom/world-highres2.geo.json';\nimport { ColorAxisOptions, numberFormat, Options, SeriesOptionsType } from 'highcharts';\nimport { setOptions as setMapOptions } from 'highcharts/highmaps';\n\nimport { ChartColor, ChartColors } from '../chart-colors';\nimport { ChartOptions, mergeDeep } from '../chart-options';\n\nexport class ChartMapOptions extends ChartOptions {\n static build(options: Highcharts.Options, locale: string): Highcharts.Options {\n const defaultMapOptions: Highcharts.Options = {\n chart: {\n map: geojson,\n },\n colorAxis: {\n allowDecimals: false,\n gridLineWidth: 2,\n gridLineColor: ChartColors.WHITE_COLOR,\n min: 0,\n tickAmount: 6,\n labels: {\n style: {\n fontSize: '12px',\n },\n },\n minColor: ChartColors.SOFT_BLUE_COLORS[20],\n maxColor: ChartColors.SOFT_BLUE_COLORS[100],\n },\n legend: {\n enabled: true,\n align: 'left',\n floating: true,\n },\n mapNavigation: {\n enabled: true,\n enableMouseWheelZoom: false,\n buttonOptions: {\n verticalAlign: 'middle',\n style: {\n color: ChartColors.GREY_COLORS[100],\n fontSize: '16px',\n fontWeight: 'normal',\n },\n theme: {\n fill: ChartColors.WHITE_COLOR,\n r: 4,\n states: {\n hover: {\n fill: ChartColors.GREY_COLORS[10],\n },\n },\n },\n },\n },\n plotOptions: {\n map: {\n borderColor: ChartColors.WHITE_COLOR,\n borderWidth: 0.5,\n nullColor: '#e2e2ea',\n },\n },\n tooltip: {\n headerFormat: '',\n pointFormatter: function () {\n const value = numberFormat(this.value ?? 0, -1);\n return (\n '<div style=\"border-bottom: 1px solid #eaecef; padding: 0 8px 7px\">' +\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n `<span style=\"font-size: 12px; color: #858fa1\">${(this as any).translatedName}</span></div>` +\n '<div style=\"font-size: 14px; color: #344563; margin: 6px 8px 0 8px;\">' +\n `<span style=\"color:${this.color}\">\\u25CF</span> ${this.series.name}: <b>${value}</b></div>`\n );\n },\n },\n xAxis: {\n crosshair: true,\n },\n };\n const parts = new Intl.NumberFormat(locale).formatToParts(12345.6);\n const decimalPoint = parts.find(p => p.type === 'decimal')?.value ?? '.';\n const thousandsSep = parts.find(p => p.type === 'group')?.value ?? ',';\n setMapOptions({ lang: { decimalPoint, thousandsSep } });\n return mergeDeep(ChartOptions.DEFAULT_OPTIONS, mergeDeep(defaultMapOptions, options));\n }\n\n static configureMap(series: SeriesOptionsType[], options: Options, color: ChartColor, labelDateFormat?: string) {\n super.configure(series, options, color, labelDateFormat);\n const colors = ChartColors.getChartColors(color);\n (options.colorAxis as ColorAxisOptions).minColor = colors[20];\n (options.colorAxis as ColorAxisOptions).maxColor = colors[100];\n }\n}\n","import { Component, ElementRef, effect, input, signal, untracked, viewChild } from '@angular/core';\nimport { Options, SeriesMapOptions, mapChart } from 'highcharts/highmaps';\nimport { ChartColor } from '../chart-colors';\nimport { ChartMapOptions } from './chart-map-options.model';\n\n@Component({\n selector: 'ap-chart-map',\n templateUrl: './chart-map.component.html',\n standalone: true,\n})\nexport class ChartMapComponent {\n protected readonly chartRef = viewChild.required<ElementRef<HTMLDivElement>>('chart');\n\n readonly chartOptions = input<Options>({});\n readonly color = input<ChartColor>(ChartColor.ElectricBlue);\n readonly labelDateFormat = input<string>('%m/%d');\n readonly locale = input<string>('en');\n readonly series = input.required<SeriesMapOptions[]>();\n\n private readonly lastWidth = signal<number>(0);\n private readonly chartInstance = signal<Highcharts.Chart | null>(null);\n\n constructor() {\n effect(() => {\n const seriesValue = this.series();\n this.color();\n this.chartOptions();\n this.labelDateFormat();\n this.locale();\n\n if (seriesValue.length > 0) {\n untracked(() => {\n this.initChart();\n });\n }\n });\n\n effect(() => {\n const chartElement = this.chartRef()?.nativeElement;\n if (!chartElement) return;\n\n const currentWidth = chartElement.clientWidth;\n if (currentWidth > 0 && currentWidth !== this.lastWidth()) {\n untracked(() => {\n this.lastWidth.set(currentWidth);\n });\n const seriesValue = this.series();\n if (seriesValue.length > 0) {\n untracked(() => {\n this.initChart();\n });\n }\n }\n });\n }\n\n private initChart(): void {\n const seriesValue = this.series();\n const chartElement = this.chartRef()?.nativeElement;\n\n if (!seriesValue.length || !chartElement) {\n return;\n }\n\n const currentChart = this.chartInstance();\n if (currentChart) {\n currentChart.destroy();\n }\n\n try {\n const builtOptions = ChartMapOptions.build(this.chartOptions(), this.locale());\n ChartMapOptions.configureMap(seriesValue, builtOptions, this.color(), this.labelDateFormat());\n\n const newChart = mapChart(chartElement, builtOptions);\n this.chartInstance.set(newChart);\n } catch (error) {\n console.error('Failed to initialize chart:', error);\n }\n }\n}\n","<div #chart></div>\n","/*\n * Public API Surface of ui-charts-map\n */\n\nexport { ChartMapComponent } from './src/lib/chart-map/chart-map.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["setMapOptions"],"mappings":";;;;;;AAAA,IAAY,UAOX;AAPD,CAAA,UAAY,UAAU,EAAA;AAClB,IAAA,UAAA,CAAA,UAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAI;AACJ,IAAA,UAAA,CAAA,UAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAM;AACN,IAAA,UAAA,CAAA,UAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAQ;AACR,IAAA,UAAA,CAAA,UAAA,CAAA,cAAA,CAAA,GAAA,CAAA,CAAA,GAAA,cAAY;AACZ,IAAA,UAAA,CAAA,UAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAM;AACN,IAAA,UAAA,CAAA,UAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAK;AACT,CAAC,EAPW,UAAU,KAAV,UAAU,GAAA,EAAA,CAAA,CAAA;MAST,WAAW,CAAA;IACpB,OAAgB,gBAAgB,GAAG;AAC/B,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,IAAI,EAAE,SAAS;AACf,QAAA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B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,cAEZ,IAAI,EAAA,QAAA,EAAA,sBAAA,EAAA;;;AERpB;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -16,13 +16,14 @@ declare class ChartMapComponent {
|
|
|
16
16
|
readonly chartOptions: _angular_core.InputSignal<Options>;
|
|
17
17
|
readonly color: _angular_core.InputSignal<ChartColor>;
|
|
18
18
|
readonly labelDateFormat: _angular_core.InputSignal<string>;
|
|
19
|
+
readonly locale: _angular_core.InputSignal<string>;
|
|
19
20
|
readonly series: _angular_core.InputSignal<SeriesMapOptions[]>;
|
|
20
21
|
private readonly lastWidth;
|
|
21
22
|
private readonly chartInstance;
|
|
22
23
|
constructor();
|
|
23
24
|
private initChart;
|
|
24
25
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartMapComponent, never>;
|
|
25
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartMapComponent, "ap-chart-map", never, { "chartOptions": { "alias": "chartOptions"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "labelDateFormat": { "alias": "labelDateFormat"; "required": false; "isSignal": true; }; "series": { "alias": "series"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
26
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartMapComponent, "ap-chart-map", never, { "chartOptions": { "alias": "chartOptions"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "labelDateFormat": { "alias": "labelDateFormat"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "series": { "alias": "series"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
export { ChartMapComponent };
|
package/package.json
CHANGED
|
Binary file
|