@acorex/charts 21.0.2-next.34 → 21.0.2-next.35

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.
Files changed (31) hide show
  1. package/{types/acorex-charts-bar-chart.d.ts → bar-chart/index.d.ts} +1 -2
  2. package/{types/acorex-charts-donut-chart.d.ts → donut-chart/index.d.ts} +1 -2
  3. package/fesm2022/acorex-charts-bar-chart.mjs +17 -17
  4. package/fesm2022/acorex-charts-bar-chart.mjs.map +1 -1
  5. package/fesm2022/acorex-charts-chart-legend.mjs +13 -13
  6. package/fesm2022/acorex-charts-chart-legend.mjs.map +1 -1
  7. package/fesm2022/acorex-charts-chart-tooltip.mjs +10 -10
  8. package/fesm2022/acorex-charts-chart-tooltip.mjs.map +1 -1
  9. package/fesm2022/acorex-charts-donut-chart.mjs +17 -17
  10. package/fesm2022/acorex-charts-donut-chart.mjs.map +1 -1
  11. package/fesm2022/acorex-charts-funnel-chart.mjs +15 -13
  12. package/fesm2022/acorex-charts-funnel-chart.mjs.map +1 -1
  13. package/fesm2022/acorex-charts-gauge-chart.mjs +13 -13
  14. package/fesm2022/acorex-charts-gauge-chart.mjs.map +1 -1
  15. package/fesm2022/acorex-charts-heatmap-chart.mjs +12 -12
  16. package/fesm2022/acorex-charts-heatmap-chart.mjs.map +1 -1
  17. package/fesm2022/acorex-charts-hierarchy-chart.mjs +18 -18
  18. package/fesm2022/acorex-charts-hierarchy-chart.mjs.map +1 -1
  19. package/fesm2022/acorex-charts-line-chart.mjs +18 -15
  20. package/fesm2022/acorex-charts-line-chart.mjs.map +1 -1
  21. package/fesm2022/acorex-charts.mjs +4 -4
  22. package/fesm2022/acorex-charts.mjs.map +1 -1
  23. package/{types/acorex-charts-funnel-chart.d.ts → funnel-chart/index.d.ts} +1 -2
  24. package/{types/acorex-charts-gauge-chart.d.ts → gauge-chart/index.d.ts} +1 -2
  25. package/{types/acorex-charts-heatmap-chart.d.ts → heatmap-chart/index.d.ts} +1 -2
  26. package/{types/acorex-charts-hierarchy-chart.d.ts → hierarchy-chart/index.d.ts} +2 -3
  27. package/{types/acorex-charts-line-chart.d.ts → line-chart/index.d.ts} +1 -2
  28. package/package.json +12 -13
  29. /package/{types/acorex-charts-chart-legend.d.ts → chart-legend/index.d.ts} +0 -0
  30. /package/{types/acorex-charts-chart-tooltip.d.ts → chart-tooltip/index.d.ts} +0 -0
  31. /package/{types/acorex-charts.d.ts → index.d.ts} +0 -0
@@ -1,4 +1,3 @@
1
- import * as _acorex_charts_bar_chart from '@acorex/charts/bar-chart';
2
1
  import * as _acorex_charts from '@acorex/charts';
3
2
  import { NXNativeEvent, AXAnimationEasing, AXChartComponent, AXChartComponentBase } from '@acorex/charts';
4
3
  import * as d3 from 'd3';
@@ -177,7 +176,7 @@ declare class AXBarChartComponent extends AXChartComponent implements OnDestroy,
177
176
  animationDuration?: number;
178
177
  animationDelay?: number;
179
178
  animationEasing?: _acorex_charts.AXAnimationEasing;
180
- messages?: _acorex_charts_bar_chart.AXBarChartMessages;
179
+ messages?: AXBarChartMessages;
181
180
  }>;
182
181
  protected effectiveMessages: _angular_core.Signal<{
183
182
  noData: string;
@@ -1,4 +1,3 @@
1
- import * as _acorex_charts_donut_chart from '@acorex/charts/donut-chart';
2
1
  import * as _acorex_charts from '@acorex/charts';
3
2
  import { AXAnimationEasing, AXChartComponent, AXChartComponentBase } from '@acorex/charts';
4
3
  import * as d3 from 'd3';
@@ -166,7 +165,7 @@ declare class AXDonutChartComponent extends AXChartComponent implements OnDestro
166
165
  cornerRadius?: number;
167
166
  animationDuration?: number;
168
167
  animationEasing?: _acorex_charts.AXAnimationEasing;
169
- messages?: _acorex_charts_donut_chart.AXDonutChartMessages;
168
+ messages?: AXDonutChartMessages;
170
169
  }>;
171
170
  private readonly TOOLTIP_GAP;
172
171
  private readonly HIGHLIGHT_TRANSITION_DURATION;
@@ -42,9 +42,9 @@ function barChartConfig(config = {}) {
42
42
  class AXBarChartComponent extends AXChartComponent {
43
43
  // Inputs
44
44
  /** Chart data input */
45
- data = input([], ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
45
+ data = input([], ...(ngDevMode ? [{ debugName: "data" }] : []));
46
46
  /** Chart options input */
47
- options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
47
+ options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : []));
48
48
  // Outputs
49
49
  /** Emitted when a bar is clicked */
50
50
  barClick = output();
@@ -103,21 +103,21 @@ class AXBarChartComponent extends AXChartComponent {
103
103
  MANY_ITEMS_THRESHOLD = 20;
104
104
  VERY_MANY_ITEMS_THRESHOLD = 50;
105
105
  // Animation state
106
- _initialAnimationComplete = signal(false, ...(ngDevMode ? [{ debugName: "_initialAnimationComplete" }] : /* istanbul ignore next */ []));
106
+ _initialAnimationComplete = signal(false, ...(ngDevMode ? [{ debugName: "_initialAnimationComplete" }] : []));
107
107
  // Tooltip state
108
- _tooltipVisible = signal(false, ...(ngDevMode ? [{ debugName: "_tooltipVisible" }] : /* istanbul ignore next */ []));
109
- _tooltipPosition = signal({ x: 0, y: 0 }, ...(ngDevMode ? [{ debugName: "_tooltipPosition" }] : /* istanbul ignore next */ []));
108
+ _tooltipVisible = signal(false, ...(ngDevMode ? [{ debugName: "_tooltipVisible" }] : []));
109
+ _tooltipPosition = signal({ x: 0, y: 0 }, ...(ngDevMode ? [{ debugName: "_tooltipPosition" }] : []));
110
110
  _tooltipData = signal({
111
111
  title: '',
112
112
  value: '0',
113
113
  percentage: '0%',
114
114
  color: '',
115
- }, ...(ngDevMode ? [{ debugName: "_tooltipData" }] : /* istanbul ignore next */ []));
115
+ }, ...(ngDevMode ? [{ debugName: "_tooltipData" }] : []));
116
116
  _tooltipRafId = null;
117
117
  _pendingTooltipCoords = null;
118
118
  // Signals for component state
119
- _initialized = signal(false, ...(ngDevMode ? [{ debugName: "_initialized" }] : /* istanbul ignore next */ []));
120
- _rendered = signal(false, ...(ngDevMode ? [{ debugName: "_rendered" }] : /* istanbul ignore next */ []));
119
+ _initialized = signal(false, ...(ngDevMode ? [{ debugName: "_initialized" }] : []));
120
+ _rendered = signal(false, ...(ngDevMode ? [{ debugName: "_rendered" }] : []));
121
121
  // Tooltip accessors
122
122
  tooltipVisible = this._tooltipVisible.asReadonly();
123
123
  tooltipPosition = this._tooltipPosition.asReadonly();
@@ -134,7 +134,7 @@ class AXBarChartComponent extends AXChartComponent {
134
134
  ...this.configToken,
135
135
  ...this.options(),
136
136
  };
137
- }, ...(ngDevMode ? [{ debugName: "effectiveOptions" }] : /* istanbul ignore next */ []));
137
+ }, ...(ngDevMode ? [{ debugName: "effectiveOptions" }] : []));
138
138
  // Messages with defaults
139
139
  effectiveMessages = computed(() => {
140
140
  const defaultMessages = {
@@ -149,7 +149,7 @@ class AXBarChartComponent extends AXChartComponent {
149
149
  ...defaultMessages,
150
150
  ...this.effectiveOptions().messages,
151
151
  };
152
- }, ...(ngDevMode ? [{ debugName: "effectiveMessages" }] : /* istanbul ignore next */ []));
152
+ }, ...(ngDevMode ? [{ debugName: "effectiveMessages" }] : []));
153
153
  // Track hidden bars and series
154
154
  hiddenBars = new Set();
155
155
  hiddenSeries = new Set();
@@ -157,14 +157,14 @@ class AXBarChartComponent extends AXChartComponent {
157
157
  isClusteredMode = computed(() => {
158
158
  const value = this.data();
159
159
  return Array.isArray(value) && value.length > 0 && 'chartData' in value[0];
160
- }, ...(ngDevMode ? [{ debugName: "isClusteredMode" }] : /* istanbul ignore next */ []));
160
+ }, ...(ngDevMode ? [{ debugName: "isClusteredMode" }] : []));
161
161
  visibleData = computed(() => {
162
162
  const value = this.data() || [];
163
163
  if (this.isClusteredMode()) {
164
164
  return value;
165
165
  }
166
166
  return value.filter((d) => !this.hiddenBars.has(d.id));
167
- }, ...(ngDevMode ? [{ debugName: "visibleData" }] : /* istanbul ignore next */ []));
167
+ }, ...(ngDevMode ? [{ debugName: "visibleData" }] : []));
168
168
  hasVisibleData = computed(() => {
169
169
  const value = this.data();
170
170
  if (!Array.isArray(value) || value.length === 0)
@@ -176,7 +176,7 @@ class AXBarChartComponent extends AXChartComponent {
176
176
  return groups.some((g) => visibleSeries.some((_, idx) => !!g.chartData[idx]));
177
177
  }
178
178
  return value.some((d) => !this.hiddenBars.has(d.id));
179
- }, ...(ngDevMode ? [{ debugName: "hasVisibleData" }] : /* istanbul ignore next */ []));
179
+ }, ...(ngDevMode ? [{ debugName: "hasVisibleData" }] : []));
180
180
  // Type guard helper
181
181
  isClusteredData(value) {
182
182
  return Array.isArray(value) && value.length > 0 && 'chartData' in value[0];
@@ -1338,13 +1338,13 @@ class AXBarChartComponent extends AXChartComponent {
1338
1338
  container.append('div').attr('class', 'ax-chart-message-text ax-bar-chart-no-data-text').text(text);
1339
1339
  container.append('div').attr('class', 'ax-chart-message-help ax-bar-chart-no-data-help').text(helpText);
1340
1340
  }
1341
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXBarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1342
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.9", type: AXBarChartComponent, isStandalone: true, selector: "ax-bar-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { barClick: "barClick" }, viewQueries: [{ propertyName: "chartContainerEl", first: true, predicate: ["chartContainer"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-bar-chart\" role=\"img\" #chartContainer>\n <!-- Shared tooltip component -->\n <ax-chart-tooltip\n [visible]=\"tooltipVisible()\"\n [position]=\"tooltipPosition()\"\n [data]=\"tooltipData()\"\n [showPercentage]=\"true\"\n ></ax-chart-tooltip>\n</div>\n", styles: ["ax-bar-chart{display:block;width:100%;height:100%;min-height:clamp(220px,38vw,360px);--ax-comp-bar-chart-axis-label-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-labels-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-data-labels-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-grid-lines-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-bg-color: 0, 0, 0, 0}ax-bar-chart .ax-bar-chart{width:100%;height:100%;position:relative;min-height:0;box-sizing:border-box;overflow:hidden;background-color:rgba(var(--ax-comp-bar-chart-bg-color))}ax-bar-chart .ax-bar-chart svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%}ax-bar-chart .ax-bar-chart svg g:has(text){font-family:inherit}ax-bar-chart .ax-bar-chart .ax-bar-chart-data-label{pointer-events:none;-webkit-user-select:none;user-select:none}ax-bar-chart .ax-bar-chart .ax-bar-chart-data-label[data-inside-bar=true]{fill:#fff;font-weight:600;text-shadow:0 0 2px rgba(0,0,0,.3)}ax-bar-chart .ax-bar-chart-no-data-message{text-align:center;background-color:rgb(var(--ax-comp-bar-chart-bg-color));padding:1.5rem;border-radius:.5rem;border:1px solid rgba(var(--ax-sys-color-surface));width:80%;max-width:300px}ax-bar-chart .ax-bar-chart-no-data-message .ax-bar-chart-no-data-icon{opacity:.6;margin-bottom:.75rem}ax-bar-chart .ax-bar-chart-no-data-message .ax-bar-chart-no-data-text{font-size:1rem;font-weight:600;margin-bottom:.5rem}ax-bar-chart .ax-bar-chart-no-data-message .ax-bar-chart-no-data-help{font-size:.8rem;opacity:.6}\n"], dependencies: [{ kind: "component", type: AXChartTooltipComponent, selector: "ax-chart-tooltip", inputs: ["data", "position", "visible", "showPercentage", "style"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1341
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXBarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1342
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.3", type: AXBarChartComponent, isStandalone: true, selector: "ax-bar-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { barClick: "barClick" }, viewQueries: [{ propertyName: "chartContainerEl", first: true, predicate: ["chartContainer"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-bar-chart\" role=\"img\" #chartContainer>\n <!-- Shared tooltip component -->\n <ax-chart-tooltip\n [visible]=\"tooltipVisible()\"\n [position]=\"tooltipPosition()\"\n [data]=\"tooltipData()\"\n [showPercentage]=\"true\"\n ></ax-chart-tooltip>\n</div>\n", styles: ["ax-bar-chart{display:block;width:100%;height:100%;min-height:clamp(220px,38vw,360px);--ax-comp-bar-chart-axis-label-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-labels-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-data-labels-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-grid-lines-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-bg-color: 0, 0, 0, 0}ax-bar-chart .ax-bar-chart{width:100%;height:100%;position:relative;min-height:0;box-sizing:border-box;overflow:hidden;background-color:rgba(var(--ax-comp-bar-chart-bg-color))}ax-bar-chart .ax-bar-chart svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%}ax-bar-chart .ax-bar-chart svg g:has(text){font-family:inherit}ax-bar-chart .ax-bar-chart .ax-bar-chart-data-label{pointer-events:none;-webkit-user-select:none;user-select:none}ax-bar-chart .ax-bar-chart .ax-bar-chart-data-label[data-inside-bar=true]{fill:#fff;font-weight:600;text-shadow:0 0 2px rgba(0,0,0,.3)}ax-bar-chart .ax-bar-chart-no-data-message{text-align:center;background-color:rgb(var(--ax-comp-bar-chart-bg-color));padding:1.5rem;border-radius:.5rem;border:1px solid rgba(var(--ax-sys-color-surface));width:80%;max-width:300px}ax-bar-chart .ax-bar-chart-no-data-message .ax-bar-chart-no-data-icon{opacity:.6;margin-bottom:.75rem}ax-bar-chart .ax-bar-chart-no-data-message .ax-bar-chart-no-data-text{font-size:1rem;font-weight:600;margin-bottom:.5rem}ax-bar-chart .ax-bar-chart-no-data-message .ax-bar-chart-no-data-help{font-size:.8rem;opacity:.6}\n"], dependencies: [{ kind: "component", type: AXChartTooltipComponent, selector: "ax-chart-tooltip", inputs: ["data", "position", "visible", "showPercentage", "style"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1343
1343
  }
1344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXBarChartComponent, decorators: [{
1344
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXBarChartComponent, decorators: [{
1345
1345
  type: Component,
1346
1346
  args: [{ selector: 'ax-bar-chart', encapsulation: ViewEncapsulation.None, imports: [AXChartTooltipComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ax-bar-chart\" role=\"img\" #chartContainer>\n <!-- Shared tooltip component -->\n <ax-chart-tooltip\n [visible]=\"tooltipVisible()\"\n [position]=\"tooltipPosition()\"\n [data]=\"tooltipData()\"\n [showPercentage]=\"true\"\n ></ax-chart-tooltip>\n</div>\n", styles: ["ax-bar-chart{display:block;width:100%;height:100%;min-height:clamp(220px,38vw,360px);--ax-comp-bar-chart-axis-label-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-labels-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-data-labels-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-grid-lines-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-bar-chart-bg-color: 0, 0, 0, 0}ax-bar-chart .ax-bar-chart{width:100%;height:100%;position:relative;min-height:0;box-sizing:border-box;overflow:hidden;background-color:rgba(var(--ax-comp-bar-chart-bg-color))}ax-bar-chart .ax-bar-chart svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%}ax-bar-chart .ax-bar-chart svg g:has(text){font-family:inherit}ax-bar-chart .ax-bar-chart .ax-bar-chart-data-label{pointer-events:none;-webkit-user-select:none;user-select:none}ax-bar-chart .ax-bar-chart .ax-bar-chart-data-label[data-inside-bar=true]{fill:#fff;font-weight:600;text-shadow:0 0 2px rgba(0,0,0,.3)}ax-bar-chart .ax-bar-chart-no-data-message{text-align:center;background-color:rgb(var(--ax-comp-bar-chart-bg-color));padding:1.5rem;border-radius:.5rem;border:1px solid rgba(var(--ax-sys-color-surface));width:80%;max-width:300px}ax-bar-chart .ax-bar-chart-no-data-message .ax-bar-chart-no-data-icon{opacity:.6;margin-bottom:.75rem}ax-bar-chart .ax-bar-chart-no-data-message .ax-bar-chart-no-data-text{font-size:1rem;font-weight:600;margin-bottom:.5rem}ax-bar-chart .ax-bar-chart-no-data-message .ax-bar-chart-no-data-help{font-size:.8rem;opacity:.6}\n"] }]
1347
- }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], barClick: [{ type: i0.Output, args: ["barClick"] }], chartContainerEl: [{ type: i0.ViewChild, args: ['chartContainer', { isSignal: true }] }] } });
1347
+ }], ctorParameters: () => [] });
1348
1348
 
1349
1349
  /**
1350
1350
  * Generated bundle index. Do not edit.