@aquera/nile-visualization 1.6.0 → 1.8.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.
Files changed (101) hide show
  1. package/dist/src/internal/dashboard-adapters.d.ts +1 -0
  2. package/dist/src/internal/dashboard-adapters.js +11 -1
  3. package/dist/src/nile-anomaly-chart/nile-anomaly-chart.css.js +2 -0
  4. package/dist/src/nile-anomaly-chart/nile-anomaly-chart.js +1 -1
  5. package/dist/src/nile-area-chart/nile-area-chart.css.js +2 -0
  6. package/dist/src/nile-area-chart/nile-area-chart.js +1 -1
  7. package/dist/src/nile-area-negative-chart/nile-area-negative-chart.css.js +2 -0
  8. package/dist/src/nile-area-negative-chart/nile-area-negative-chart.js +1 -1
  9. package/dist/src/nile-area-range-chart/nile-area-range-chart.css.js +2 -0
  10. package/dist/src/nile-area-range-chart/nile-area-range-chart.js +1 -1
  11. package/dist/src/nile-area-spline-chart/nile-area-spline-chart.css.js +2 -0
  12. package/dist/src/nile-area-spline-chart/nile-area-spline-chart.js +1 -1
  13. package/dist/src/nile-bar-chart/nile-bar-chart.css.js +2 -0
  14. package/dist/src/nile-bar-chart/nile-bar-chart.js +1 -1
  15. package/dist/src/nile-bellcurve-chart/nile-bellcurve-chart.css.js +2 -0
  16. package/dist/src/nile-bellcurve-chart/nile-bellcurve-chart.js +1 -1
  17. package/dist/src/nile-boxplot-chart/nile-boxplot-chart.css.js +2 -0
  18. package/dist/src/nile-boxplot-chart/nile-boxplot-chart.js +1 -1
  19. package/dist/src/nile-bubble-chart/nile-bubble-chart.css.js +2 -0
  20. package/dist/src/nile-bubble-chart/nile-bubble-chart.js +1 -1
  21. package/dist/src/nile-chart/nile-chart.css.js +23 -1
  22. package/dist/src/nile-chart/nile-chart.js +45 -45
  23. package/dist/src/nile-cluster-chart/nile-cluster-chart.css.js +2 -0
  24. package/dist/src/nile-cluster-chart/nile-cluster-chart.js +1 -1
  25. package/dist/src/nile-column-chart/nile-column-chart.css.js +2 -0
  26. package/dist/src/nile-column-chart/nile-column-chart.js +1 -1
  27. package/dist/src/nile-column-drilldown-chart/nile-column-drilldown-chart.css.js +2 -0
  28. package/dist/src/nile-column-drilldown-chart/nile-column-drilldown-chart.js +1 -1
  29. package/dist/src/nile-column-pyramid-chart/nile-column-pyramid-chart.css.js +2 -0
  30. package/dist/src/nile-column-pyramid-chart/nile-column-pyramid-chart.js +1 -1
  31. package/dist/src/nile-column-range-chart/nile-column-range-chart.css.js +2 -0
  32. package/dist/src/nile-column-range-chart/nile-column-range-chart.js +1 -1
  33. package/dist/src/nile-dashboard-viewer/nile-dashboard-viewer.css.js +10 -0
  34. package/dist/src/nile-dashboard-viewer/nile-dashboard-viewer.d.ts +15 -6
  35. package/dist/src/nile-dashboard-viewer/nile-dashboard-viewer.js +47 -6
  36. package/dist/src/nile-donut-chart/nile-donut-chart.css.js +2 -0
  37. package/dist/src/nile-donut-chart/nile-donut-chart.js +1 -1
  38. package/dist/src/nile-dumbbell-chart/nile-dumbbell-chart.css.js +2 -0
  39. package/dist/src/nile-dumbbell-chart/nile-dumbbell-chart.js +1 -1
  40. package/dist/src/nile-dumbbell-lower-chart/nile-dumbbell-lower-chart.css.js +2 -0
  41. package/dist/src/nile-dumbbell-lower-chart/nile-dumbbell-lower-chart.js +1 -1
  42. package/dist/src/nile-dumbbell-upper-chart/nile-dumbbell-upper-chart.css.js +2 -0
  43. package/dist/src/nile-dumbbell-upper-chart/nile-dumbbell-upper-chart.js +1 -1
  44. package/dist/src/nile-euler-chart/nile-euler-chart.css.js +2 -0
  45. package/dist/src/nile-euler-chart/nile-euler-chart.js +1 -1
  46. package/dist/src/nile-fan-chart/nile-fan-chart.css.js +2 -0
  47. package/dist/src/nile-fan-chart/nile-fan-chart.js +1 -1
  48. package/dist/src/nile-flame-chart/nile-flame-chart.css.js +2 -0
  49. package/dist/src/nile-flame-chart/nile-flame-chart.js +1 -1
  50. package/dist/src/nile-funnel-chart/nile-funnel-chart.css.js +2 -0
  51. package/dist/src/nile-funnel-chart/nile-funnel-chart.js +1 -1
  52. package/dist/src/nile-gauge-chart/nile-gauge-chart.css.js +2 -0
  53. package/dist/src/nile-gauge-chart/nile-gauge-chart.js +1 -1
  54. package/dist/src/nile-heatmap-chart/nile-heatmap-chart.css.js +2 -0
  55. package/dist/src/nile-heatmap-chart/nile-heatmap-chart.js +1 -1
  56. package/dist/src/nile-histogram-chart/nile-histogram-chart.css.js +2 -0
  57. package/dist/src/nile-histogram-chart/nile-histogram-chart.js +1 -1
  58. package/dist/src/nile-inverted-area-chart/nile-inverted-area-chart.css.js +2 -0
  59. package/dist/src/nile-inverted-area-chart/nile-inverted-area-chart.js +1 -1
  60. package/dist/src/nile-kpi-chart/nile-kpi-chart.css.js +7 -0
  61. package/dist/src/nile-line-chart/nile-line-chart.css.js +2 -0
  62. package/dist/src/nile-line-chart/nile-line-chart.js +1 -1
  63. package/dist/src/nile-line-column-chart/nile-line-column-chart.css.js +2 -0
  64. package/dist/src/nile-line-column-chart/nile-line-column-chart.js +1 -1
  65. package/dist/src/nile-lollipop-chart/nile-lollipop-chart.css.js +2 -0
  66. package/dist/src/nile-lollipop-chart/nile-lollipop-chart.js +1 -1
  67. package/dist/src/nile-map-chart/nile-map-chart.css.js +2 -0
  68. package/dist/src/nile-map-chart/nile-map-chart.js +1 -1
  69. package/dist/src/nile-organization-chart/nile-organization-chart.css.js +2 -0
  70. package/dist/src/nile-organization-chart/nile-organization-chart.js +1 -1
  71. package/dist/src/nile-pie-chart/nile-pie-chart.css.js +2 -0
  72. package/dist/src/nile-pie-chart/nile-pie-chart.js +1 -1
  73. package/dist/src/nile-polygon-chart/nile-polygon-chart.css.js +2 -0
  74. package/dist/src/nile-polygon-chart/nile-polygon-chart.js +1 -1
  75. package/dist/src/nile-radar-chart/nile-radar-chart.css.js +2 -0
  76. package/dist/src/nile-radar-chart/nile-radar-chart.js +1 -1
  77. package/dist/src/nile-radial-bar-chart/nile-radial-bar-chart.css.js +2 -0
  78. package/dist/src/nile-radial-bar-chart/nile-radial-bar-chart.js +1 -1
  79. package/dist/src/nile-scatter-chart/nile-scatter-chart.css.js +2 -0
  80. package/dist/src/nile-scatter-chart/nile-scatter-chart.js +1 -1
  81. package/dist/src/nile-spiderweb-chart/nile-spiderweb-chart.css.js +2 -0
  82. package/dist/src/nile-spiderweb-chart/nile-spiderweb-chart.js +1 -1
  83. package/dist/src/nile-spline-chart/nile-spline-chart.css.js +2 -0
  84. package/dist/src/nile-spline-chart/nile-spline-chart.js +1 -1
  85. package/dist/src/nile-stacked-chart/nile-stacked-chart.css.js +2 -0
  86. package/dist/src/nile-stacked-chart/nile-stacked-chart.js +1 -1
  87. package/dist/src/nile-timeline-chart/nile-timeline-chart.css.js +2 -0
  88. package/dist/src/nile-timeline-chart/nile-timeline-chart.js +1 -1
  89. package/dist/src/nile-trendline-chart/nile-trendline-chart.css.js +2 -0
  90. package/dist/src/nile-trendline-chart/nile-trendline-chart.js +1 -1
  91. package/dist/src/nile-variable-pie-chart/nile-variable-pie-chart.css.js +2 -0
  92. package/dist/src/nile-variable-pie-chart/nile-variable-pie-chart.js +1 -1
  93. package/dist/src/nile-vector-chart/nile-vector-chart.css.js +2 -0
  94. package/dist/src/nile-vector-chart/nile-vector-chart.js +1 -1
  95. package/dist/src/nile-waterfall-chart/nile-waterfall-chart.css.js +2 -0
  96. package/dist/src/nile-waterfall-chart/nile-waterfall-chart.js +1 -1
  97. package/dist/src/nile-widget-viewer/nile-widget-viewer.d.ts +4 -0
  98. package/dist/src/nile-widget-viewer/nile-widget-viewer.js +18 -2
  99. package/dist/src/nile-xrange-chart/nile-xrange-chart.css.js +2 -0
  100. package/dist/src/nile-xrange-chart/nile-xrange-chart.js +1 -1
  101. package/package.json +1 -1
@@ -391,7 +391,7 @@ let NileChart = class NileChart extends NileElement {
391
391
  return html `<nile-bar-chart
392
392
  .data=${config.data}
393
393
  .categories=${config.categories ?? []}
394
- .height=${config.height ?? '100%'}
394
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
395
395
  .yAxisTitle=${config.yAxisTitle ?? ''}
396
396
  .showLegend=${config.showLegend ?? true}
397
397
  .options=${mergedOptions}
@@ -412,7 +412,7 @@ let NileChart = class NileChart extends NileElement {
412
412
  return html `<nile-pie-chart
413
413
  .data=${config.data}
414
414
  .seriesName=${config.seriesName ?? ''}
415
- .height=${config.height ?? '100%'}
415
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
416
416
  .showDataLabels=${config.showDataLabels ?? true}
417
417
  .showLegend=${config.showLegend ?? true}
418
418
  .options=${mergedOptions}
@@ -433,7 +433,7 @@ let NileChart = class NileChart extends NileElement {
433
433
  return html `<nile-trendline-chart
434
434
  .data=${config.data}
435
435
  .categories=${config.categories ?? []}
436
- .height=${config.height ?? '100%'}
436
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
437
437
  .yAxisTitle=${config.yAxisTitle ?? ''}
438
438
  .forecast=${config.forecast ?? null}
439
439
  .options=${mergedOptions}
@@ -454,7 +454,7 @@ let NileChart = class NileChart extends NileElement {
454
454
  return html `<nile-anomaly-chart
455
455
  .data=${config.data}
456
456
  .categories=${config.categories ?? []}
457
- .height=${config.height ?? '100%'}
457
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
458
458
  .yAxisTitle=${config.yAxisTitle ?? ''}
459
459
  .anomaly=${config.anomaly ?? {}}
460
460
  .options=${mergedOptions}
@@ -475,7 +475,7 @@ let NileChart = class NileChart extends NileElement {
475
475
  return html `<nile-line-chart
476
476
  .data=${config.data}
477
477
  .categories=${config.categories ?? []}
478
- .height=${config.height ?? '100%'}
478
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
479
479
  .yAxisTitle=${config.yAxisTitle ?? ''}
480
480
  .showLegend=${config.showLegend ?? true}
481
481
  .options=${mergedOptions}
@@ -496,7 +496,7 @@ let NileChart = class NileChart extends NileElement {
496
496
  return html `<nile-area-chart
497
497
  .data=${config.data}
498
498
  .categories=${config.categories ?? []}
499
- .height=${config.height ?? '100%'}
499
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
500
500
  .yAxisTitle=${config.yAxisTitle ?? ''}
501
501
  .stacked=${config.stacked ?? false}
502
502
  .showLegend=${config.showLegend ?? true}
@@ -518,7 +518,7 @@ let NileChart = class NileChart extends NileElement {
518
518
  return html `<nile-column-chart
519
519
  .data=${config.data}
520
520
  .categories=${config.categories ?? []}
521
- .height=${config.height ?? '100%'}
521
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
522
522
  .yAxisTitle=${config.yAxisTitle ?? ''}
523
523
  .showLegend=${config.showLegend ?? true}
524
524
  .options=${mergedOptions}
@@ -539,7 +539,7 @@ let NileChart = class NileChart extends NileElement {
539
539
  return html `<nile-donut-chart
540
540
  .data=${config.data}
541
541
  .seriesName=${config.seriesName ?? ''}
542
- .height=${config.height ?? '100%'}
542
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
543
543
  .innerSize=${config.innerSize ?? '50%'}
544
544
  .semiCircle=${config.semiCircle ?? false}
545
545
  .semiCircle=${config.semiCircle ?? false}
@@ -562,7 +562,7 @@ let NileChart = class NileChart extends NileElement {
562
562
  case 'scatter':
563
563
  return html `<nile-scatter-chart
564
564
  .data=${config.data}
565
- .height=${config.height ?? '100%'}
565
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
566
566
  .xAxisTitle=${config.xAxisTitle ?? ''}
567
567
  .yAxisTitle=${config.yAxisTitle ?? ''}
568
568
  .showLegend=${config.showLegend ?? true}
@@ -583,7 +583,7 @@ let NileChart = class NileChart extends NileElement {
583
583
  case 'bubble':
584
584
  return html `<nile-bubble-chart
585
585
  .data=${config.data}
586
- .height=${config.height ?? '100%'}
586
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
587
587
  .xAxisTitle=${config.xAxisTitle ?? ''}
588
588
  .yAxisTitle=${config.yAxisTitle ?? ''}
589
589
  .showLegend=${config.showLegend ?? true}
@@ -605,7 +605,7 @@ let NileChart = class NileChart extends NileElement {
605
605
  return html `<nile-spline-chart
606
606
  .data=${config.data}
607
607
  .categories=${config.categories ?? []}
608
- .height=${config.height ?? '100%'}
608
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
609
609
  .yAxisTitle=${config.yAxisTitle ?? ''}
610
610
  .showLegend=${config.showLegend ?? true}
611
611
  .options=${mergedOptions}
@@ -626,7 +626,7 @@ let NileChart = class NileChart extends NileElement {
626
626
  return html `<nile-radar-chart
627
627
  .data=${config.data}
628
628
  .categories=${config.categories ?? []}
629
- .height=${config.height ?? '100%'}
629
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
630
630
  .showArea=${config.showArea ?? false}
631
631
  .showLegend=${config.showLegend ?? true}
632
632
  .options=${mergedOptions}
@@ -650,7 +650,7 @@ let NileChart = class NileChart extends NileElement {
650
650
  .max=${config.max ?? 100}
651
651
  .suffix=${config.suffix ?? ''}
652
652
  .bands=${config.bands ?? []}
653
- .height=${config.height ?? '100%'}
653
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
654
654
  .options=${mergedOptions}
655
655
  .loading=${config.loading ?? false}
656
656
  .chartBg=${config.chartBg ?? ''}
@@ -668,7 +668,7 @@ let NileChart = class NileChart extends NileElement {
668
668
  case 'waterfall':
669
669
  return html `<nile-waterfall-chart
670
670
  .data=${config.data}
671
- .height=${config.height ?? '100%'}
671
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
672
672
  .yAxisTitle=${config.yAxisTitle ?? ''}
673
673
  .showLegend=${config.showLegend ?? true}
674
674
  .options=${mergedOptions}
@@ -692,7 +692,7 @@ let NileChart = class NileChart extends NileElement {
692
692
  .joinBy=${config.joinBy ?? ['hc-key', 'hc-key']}
693
693
  .seriesType=${config.seriesType ?? 'map'}
694
694
  .zoom=${config.zoom ?? true}
695
- .height=${config.height ?? '100%'}
695
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
696
696
  .options=${mergedOptions}
697
697
  .loading=${config.loading ?? false}
698
698
  .chartBg=${config.chartBg ?? ''}
@@ -711,7 +711,7 @@ let NileChart = class NileChart extends NileElement {
711
711
  return html `<nile-stacked-chart
712
712
  .data=${config.data}
713
713
  .categories=${config.categories ?? []}
714
- .height=${config.height ?? '100%'}
714
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
715
715
  .yAxisTitle=${config.yAxisTitle ?? ''}
716
716
  .stackMode=${config.stackMode ?? 'normal'}
717
717
  .showLegend=${config.showLegend ?? true}
@@ -734,7 +734,7 @@ let NileChart = class NileChart extends NileElement {
734
734
  return html `<nile-cluster-chart
735
735
  .data=${config.data}
736
736
  .categories=${config.categories ?? []}
737
- .height=${config.height ?? '100%'}
737
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
738
738
  .yAxisTitle=${config.yAxisTitle ?? ''}
739
739
  .showLegend=${config.showLegend ?? true}
740
740
  .groupPadding=${config.groupPadding ?? 0.15}
@@ -756,7 +756,7 @@ let NileChart = class NileChart extends NileElement {
756
756
  case 'histogram':
757
757
  return html `<nile-histogram-chart
758
758
  .data=${config.data}
759
- .height=${config.height ?? '100%'}
759
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
760
760
  .xAxisTitle=${config.xAxisTitle ?? ''}
761
761
  .yAxisTitle=${config.yAxisTitle ?? ''}
762
762
  .histogramSeriesName=${config.histogramSeriesName ?? ''}
@@ -782,7 +782,7 @@ let NileChart = class NileChart extends NileElement {
782
782
  case 'bellcurve':
783
783
  return html `<nile-bellcurve-chart
784
784
  .data=${config.data}
785
- .height=${config.height ?? '100%'}
785
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
786
786
  .xAxisTitle=${config.xAxisTitle ?? ''}
787
787
  .yAxisTitle=${config.yAxisTitle ?? ''}
788
788
  .bellcurveSeriesName=${config.bellcurveSeriesName ?? ''}
@@ -810,7 +810,7 @@ let NileChart = class NileChart extends NileElement {
810
810
  return html `<nile-boxplot-chart
811
811
  .data=${config.data}
812
812
  .categories=${config.categories ?? []}
813
- .height=${config.height ?? '100%'}
813
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
814
814
  .xAxisTitle=${config.xAxisTitle ?? ''}
815
815
  .yAxisTitle=${config.yAxisTitle ?? ''}
816
816
  .horizontal=${config.horizontal ?? false}
@@ -832,7 +832,7 @@ let NileChart = class NileChart extends NileElement {
832
832
  case 'timeline':
833
833
  return html `<nile-timeline-chart
834
834
  .data=${config.data}
835
- .height=${config.height ?? '100%'}
835
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
836
836
  .seriesName=${config.seriesName ?? ''}
837
837
  .datetimeAxis=${config.datetimeAxis ?? false}
838
838
  .inverted=${config.inverted ?? false}
@@ -855,7 +855,7 @@ let NileChart = class NileChart extends NileElement {
855
855
  case 'dumbbell':
856
856
  return html `<nile-dumbbell-chart
857
857
  .data=${config.data}
858
- .height=${config.height ?? '100%'}
858
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
859
859
  .yAxisTitle=${config.yAxisTitle ?? ''}
860
860
  .seriesName=${config.seriesName ?? ''}
861
861
  .lowMarkerColor=${config.lowMarkerColor ?? ''}
@@ -879,7 +879,7 @@ let NileChart = class NileChart extends NileElement {
879
879
  case 'dumbbellLower':
880
880
  return html `<nile-dumbbell-lower-chart
881
881
  .data=${config.data}
882
- .height=${config.height ?? '100%'}
882
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
883
883
  .yAxisTitle=${config.yAxisTitle ?? ''}
884
884
  .seriesName=${config.seriesName ?? ''}
885
885
  .lowMarkerColor=${config.lowMarkerColor ?? ''}
@@ -903,7 +903,7 @@ let NileChart = class NileChart extends NileElement {
903
903
  case 'dumbbellUpper':
904
904
  return html `<nile-dumbbell-upper-chart
905
905
  .data=${config.data}
906
- .height=${config.height ?? '100%'}
906
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
907
907
  .yAxisTitle=${config.yAxisTitle ?? ''}
908
908
  .seriesName=${config.seriesName ?? ''}
909
909
  .lowMarkerColor=${config.lowMarkerColor ?? ''}
@@ -928,7 +928,7 @@ let NileChart = class NileChart extends NileElement {
928
928
  return html `<nile-fan-chart
929
929
  .lineData=${config.lineData}
930
930
  .bands=${config.bands}
931
- .height=${config.height ?? '100%'}
931
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
932
932
  .yAxisTitle=${config.yAxisTitle ?? ''}
933
933
  .lineSeriesName=${config.lineSeriesName ?? ''}
934
934
  .lineColor=${config.lineColor ?? '#1d4ed8'}
@@ -952,7 +952,7 @@ let NileChart = class NileChart extends NileElement {
952
952
  case 'funnel':
953
953
  return html `<nile-funnel-chart
954
954
  .data=${config.data}
955
- .height=${config.height ?? '100%'}
955
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
956
956
  .seriesName=${config.seriesName ?? ''}
957
957
  .showDataLabels=${config.showDataLabels ?? true}
958
958
  .options=${mergedOptions}
@@ -973,7 +973,7 @@ let NileChart = class NileChart extends NileElement {
973
973
  return html `<nile-organization-chart
974
974
  .nodes=${config.nodes}
975
975
  .links=${config.links}
976
- .height=${config.height ?? '100%'}
976
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
977
977
  .seriesName=${config.seriesName ?? ''}
978
978
  .inverted=${config.inverted ?? true}
979
979
  .options=${mergedOptions}
@@ -995,7 +995,7 @@ let NileChart = class NileChart extends NileElement {
995
995
  .categories=${config.categories}
996
996
  .columnSeries=${config.columnSeries}
997
997
  .lineSeries=${config.lineSeries}
998
- .height=${config.height ?? '100%'}
998
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
999
999
  .columnAxisTitle=${config.columnAxisTitle ?? ''}
1000
1000
  .lineAxisTitle=${config.lineAxisTitle ?? ''}
1001
1001
  .options=${mergedOptions}
@@ -1017,7 +1017,7 @@ let NileChart = class NileChart extends NileElement {
1017
1017
  .xCategories=${config.xCategories}
1018
1018
  .yCategories=${config.yCategories}
1019
1019
  .data=${config.data}
1020
- .height=${config.height ?? '100%'}
1020
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1021
1021
  .seriesName=${config.seriesName ?? ''}
1022
1022
  .colorMin=${config.colorMin ?? null}
1023
1023
  .colorMax=${config.colorMax ?? null}
@@ -1045,7 +1045,7 @@ let NileChart = class NileChart extends NileElement {
1045
1045
  .layout=${config.layout ?? 'flame'}
1046
1046
  .data=${config.data ?? []}
1047
1047
  .sunburstData=${config.sunburstData ?? []}
1048
- .height=${config.height ?? '100%'}
1048
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1049
1049
  .options=${mergedOptions}
1050
1050
  .loading=${config.loading ?? false}
1051
1051
  .chartBg=${config.chartBg ?? ''}
@@ -1064,7 +1064,7 @@ let NileChart = class NileChart extends NileElement {
1064
1064
  return html `<nile-spiderweb-chart
1065
1065
  .data=${config.data}
1066
1066
  .categories=${config.categories ?? []}
1067
- .height=${config.height ?? '100%'}
1067
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1068
1068
  .showArea=${config.showArea ?? false}
1069
1069
  .showLegend=${config.showLegend ?? true}
1070
1070
  .options=${mergedOptions}
@@ -1085,7 +1085,7 @@ let NileChart = class NileChart extends NileElement {
1085
1085
  return html `<nile-inverted-area-chart
1086
1086
  .data=${config.data}
1087
1087
  .categories=${config.categories ?? []}
1088
- .height=${config.height ?? '100%'}
1088
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1089
1089
  .yAxisTitle=${config.yAxisTitle ?? ''}
1090
1090
  .stacked=${config.stacked ?? false}
1091
1091
  .options=${mergedOptions}
@@ -1106,7 +1106,7 @@ let NileChart = class NileChart extends NileElement {
1106
1106
  return html `<nile-column-pyramid-chart
1107
1107
  .data=${config.data}
1108
1108
  .categories=${config.categories ?? []}
1109
- .height=${config.height ?? '100%'}
1109
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1110
1110
  .options=${mergedOptions}
1111
1111
  .loading=${config.loading ?? false}
1112
1112
  .chartBg=${config.chartBg ?? ''}
@@ -1125,7 +1125,7 @@ let NileChart = class NileChart extends NileElement {
1125
1125
  return html `<nile-lollipop-chart
1126
1126
  .data=${config.data}
1127
1127
  .categories=${config.categories ?? []}
1128
- .height=${config.height ?? '100%'}
1128
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1129
1129
  .options=${mergedOptions}
1130
1130
  .loading=${config.loading ?? false}
1131
1131
  .chartBg=${config.chartBg ?? ''}
@@ -1144,7 +1144,7 @@ let NileChart = class NileChart extends NileElement {
1144
1144
  return html `<nile-area-spline-chart
1145
1145
  .data=${config.data}
1146
1146
  .categories=${config.categories ?? []}
1147
- .height=${config.height ?? '100%'}
1147
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1148
1148
  .yAxisTitle=${config.yAxisTitle ?? ''}
1149
1149
  .stacked=${config.stacked ?? false}
1150
1150
  .options=${mergedOptions}
@@ -1165,7 +1165,7 @@ let NileChart = class NileChart extends NileElement {
1165
1165
  return html `<nile-area-negative-chart
1166
1166
  .data=${config.data}
1167
1167
  .categories=${config.categories ?? []}
1168
- .height=${config.height ?? '100%'}
1168
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1169
1169
  .yAxisTitle=${config.yAxisTitle ?? ''}
1170
1170
  .threshold=${config.threshold ?? 0}
1171
1171
  .options=${mergedOptions}
@@ -1186,7 +1186,7 @@ let NileChart = class NileChart extends NileElement {
1186
1186
  return html `<nile-area-range-chart
1187
1187
  .data=${config.data}
1188
1188
  .categories=${config.categories ?? []}
1189
- .height=${config.height ?? '100%'}
1189
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1190
1190
  .yAxisTitle=${config.yAxisTitle ?? ''}
1191
1191
  .options=${mergedOptions}
1192
1192
  .loading=${config.loading ?? false}
@@ -1206,7 +1206,7 @@ let NileChart = class NileChart extends NileElement {
1206
1206
  return html `<nile-column-range-chart
1207
1207
  .data=${config.data}
1208
1208
  .categories=${config.categories ?? []}
1209
- .height=${config.height ?? '100%'}
1209
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1210
1210
  .yAxisTitle=${config.yAxisTitle ?? ''}
1211
1211
  .options=${mergedOptions}
1212
1212
  .loading=${config.loading ?? false}
@@ -1226,7 +1226,7 @@ let NileChart = class NileChart extends NileElement {
1226
1226
  return html `<nile-column-drilldown-chart
1227
1227
  .data=${config.data}
1228
1228
  .drilldownSeries=${config.drilldownSeries}
1229
- .height=${config.height ?? '100%'}
1229
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1230
1230
  .seriesName=${config.seriesName ?? ''}
1231
1231
  .yAxisTitle=${config.yAxisTitle ?? ''}
1232
1232
  .options=${mergedOptions}
@@ -1247,7 +1247,7 @@ let NileChart = class NileChart extends NileElement {
1247
1247
  return html `<nile-radial-bar-chart
1248
1248
  .data=${config.data}
1249
1249
  .categories=${config.categories}
1250
- .height=${config.height ?? '100%'}
1250
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1251
1251
  .yAxisTitle=${config.yAxisTitle ?? ''}
1252
1252
  .innerSize=${config.innerSize ?? '28%'}
1253
1253
  .paneSize=${config.paneSize ?? '82%'}
@@ -1269,7 +1269,7 @@ let NileChart = class NileChart extends NileElement {
1269
1269
  case 'variablePie':
1270
1270
  return html `<nile-variable-pie-chart
1271
1271
  .data=${config.data}
1272
- .height=${config.height ?? '100%'}
1272
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1273
1273
  .seriesName=${config.seriesName ?? ''}
1274
1274
  .showDataLabels=${config.showDataLabels ?? true}
1275
1275
  .showLegend=${config.showLegend ?? true}
@@ -1290,7 +1290,7 @@ let NileChart = class NileChart extends NileElement {
1290
1290
  case 'euler':
1291
1291
  return html `<nile-euler-chart
1292
1292
  .data=${config.data}
1293
- .height=${config.height ?? '100%'}
1293
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1294
1294
  .options=${mergedOptions}
1295
1295
  .loading=${config.loading ?? false}
1296
1296
  .chartBg=${config.chartBg ?? ''}
@@ -1308,7 +1308,7 @@ let NileChart = class NileChart extends NileElement {
1308
1308
  case 'polygon':
1309
1309
  return html `<nile-polygon-chart
1310
1310
  .series=${config.series}
1311
- .height=${config.height ?? '100%'}
1311
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1312
1312
  .xAxisTitle=${config.xAxisTitle ?? ''}
1313
1313
  .yAxisTitle=${config.yAxisTitle ?? ''}
1314
1314
  .options=${mergedOptions}
@@ -1328,7 +1328,7 @@ let NileChart = class NileChart extends NileElement {
1328
1328
  case 'vector':
1329
1329
  return html `<nile-vector-chart
1330
1330
  .data=${config.data}
1331
- .height=${config.height ?? '100%'}
1331
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1332
1332
  .seriesName=${config.seriesName ?? ''}
1333
1333
  .xAxisTitle=${config.xAxisTitle ?? ''}
1334
1334
  .yAxisTitle=${config.yAxisTitle ?? ''}
@@ -1350,7 +1350,7 @@ let NileChart = class NileChart extends NileElement {
1350
1350
  return html `<nile-xrange-chart
1351
1351
  .data=${config.data}
1352
1352
  .categories=${config.categories}
1353
- .height=${config.height ?? '100%'}
1353
+ .height=${this.hasAttribute('fit') ? null : (config.height ?? '100%')}
1354
1354
  .seriesName=${config.seriesName ?? ''}
1355
1355
  .datetimeAxis=${config.datetimeAxis ?? false}
1356
1356
  .showLegend=${config.showLegend ?? true}
@@ -13,6 +13,7 @@ export const styles = css `
13
13
  --nile-chart-loading-bg: transparent;
14
14
  display: block;
15
15
  width: 100%;
16
+ height: 100%;
16
17
  position: relative;
17
18
  }
18
19
 
@@ -22,6 +23,7 @@ export const styles = css `
22
23
 
23
24
  .chart-container {
24
25
  width: 100%;
26
+ height: 100%;
25
27
  min-height: var(--nile-chart-min-height);
26
28
  background: var(--nile-chart-bg);
27
29
  border-radius: var(--nile-chart-border-radius);
@@ -126,7 +126,7 @@ let NileClusterChart = class NileClusterChart extends NileElement {
126
126
  buildOptions() {
127
127
  const self = this;
128
128
  return deepMerge({
129
- chart: { type: 'column', height: this.height },
129
+ chart: { type: 'column', ...(this.height ? { height: this.height } : {}) },
130
130
  title: { text: this.chartTitle || undefined },
131
131
  subtitle: { text: this.chartSubtitle || undefined },
132
132
  xAxis: { categories: this.categories },
@@ -13,6 +13,7 @@ export const styles = css `
13
13
  --nile-chart-loading-bg: transparent;
14
14
  display: block;
15
15
  width: 100%;
16
+ height: 100%;
16
17
  position: relative;
17
18
  }
18
19
 
@@ -22,6 +23,7 @@ export const styles = css `
22
23
 
23
24
  .chart-container {
24
25
  width: 100%;
26
+ height: 100%;
25
27
  min-height: var(--nile-chart-min-height);
26
28
  background: var(--nile-chart-bg);
27
29
  border-radius: var(--nile-chart-border-radius);
@@ -154,7 +154,7 @@ let NileColumnChart = class NileColumnChart extends NileElement {
154
154
  buildOptions() {
155
155
  const self = this;
156
156
  return deepMerge({
157
- chart: { type: 'column', height: this.height },
157
+ chart: { type: 'column', ...(this.height ? { height: this.height } : {}) },
158
158
  title: { text: this.chartTitle || undefined },
159
159
  subtitle: { text: this.chartSubtitle || undefined },
160
160
  xAxis: { categories: this.categories },
@@ -13,6 +13,7 @@ export const styles = css `
13
13
  --nile-chart-loading-bg: transparent;
14
14
  display: block;
15
15
  width: 100%;
16
+ height: 100%;
16
17
  position: relative;
17
18
  }
18
19
 
@@ -22,6 +23,7 @@ export const styles = css `
22
23
 
23
24
  .chart-container {
24
25
  width: 100%;
26
+ height: 100%;
25
27
  min-height: var(--nile-chart-min-height);
26
28
  background: var(--nile-chart-bg);
27
29
  border-radius: var(--nile-chart-border-radius);
@@ -126,7 +126,7 @@ let NileColumnDrilldownChart = class NileColumnDrilldownChart extends NileElemen
126
126
  })),
127
127
  };
128
128
  return deepMerge({
129
- chart: { type: 'column', height: this.height },
129
+ chart: { type: 'column', ...(this.height ? { height: this.height } : {}) },
130
130
  title: { text: this.chartTitle || undefined },
131
131
  subtitle: { text: this.chartSubtitle || undefined },
132
132
  xAxis: { type: 'category' },
@@ -13,6 +13,7 @@ export const styles = css `
13
13
  --nile-chart-loading-bg: transparent;
14
14
  display: block;
15
15
  width: 100%;
16
+ height: 100%;
16
17
  position: relative;
17
18
  }
18
19
 
@@ -22,6 +23,7 @@ export const styles = css `
22
23
 
23
24
  .chart-container {
24
25
  width: 100%;
26
+ height: 100%;
25
27
  min-height: var(--nile-chart-min-height);
26
28
  background: var(--nile-chart-bg);
27
29
  border-radius: var(--nile-chart-border-radius);
@@ -106,7 +106,7 @@ let NileColumnPyramidChart = class NileColumnPyramidChart extends NileElement {
106
106
  buildOptions() {
107
107
  const self = this;
108
108
  return deepMerge({
109
- chart: { type: 'columnpyramid', height: this.height },
109
+ chart: { type: 'columnpyramid', ...(this.height ? { height: this.height } : {}) },
110
110
  title: { text: this.chartTitle || undefined },
111
111
  subtitle: { text: this.chartSubtitle || undefined },
112
112
  xAxis: { categories: this.categories },
@@ -13,6 +13,7 @@ export const styles = css `
13
13
  --nile-chart-loading-bg: transparent;
14
14
  display: block;
15
15
  width: 100%;
16
+ height: 100%;
16
17
  position: relative;
17
18
  }
18
19
 
@@ -22,6 +23,7 @@ export const styles = css `
22
23
 
23
24
  .chart-container {
24
25
  width: 100%;
26
+ height: 100%;
25
27
  min-height: var(--nile-chart-min-height);
26
28
  background: var(--nile-chart-bg);
27
29
  border-radius: var(--nile-chart-border-radius);
@@ -116,7 +116,7 @@ let NileColumnRangeChart = class NileColumnRangeChart extends NileElement {
116
116
  buildOptions() {
117
117
  const self = this;
118
118
  return deepMerge({
119
- chart: { height: this.height },
119
+ chart: { ...(this.height ? { height: this.height } : {}) },
120
120
  title: { text: this.chartTitle || undefined },
121
121
  subtitle: { text: this.chartSubtitle || undefined },
122
122
  xAxis: { categories: this.categories },
@@ -20,6 +20,11 @@ export const styles = css `
20
20
  width: 100%;
21
21
  }
22
22
 
23
+ .dashboard-absolute {
24
+ position: relative;
25
+ width: 100%;
26
+ }
27
+
23
28
  .dashboard-cell {
24
29
  min-height: 0;
25
30
  min-width: 0;
@@ -29,6 +34,11 @@ export const styles = css `
29
34
  box-sizing: border-box;
30
35
  }
31
36
 
37
+ .dashboard-cell--absolute {
38
+ position: absolute;
39
+ box-sizing: border-box;
40
+ }
41
+
32
42
  nile-widget-viewer {
33
43
  display: block;
34
44
  width: 100%;
@@ -4,26 +4,35 @@ import NileElement from '../internal/nile-element.js';
4
4
  import type { NileDashboardConfig } from '../internal/types/dashboard-config.type.js';
5
5
  import '../nile-widget-viewer/index.js';
6
6
  /**
7
- * Renders a full dashboard of widgets. Supports two layout variants:
7
+ * Renders a full dashboard of widgets. Supports three layout variants:
8
8
  *
9
9
  * - `grid` (default): positions each widget using CSS Grid with `layout: { x, y, w, h }`.
10
10
  * - `x` / `w` → `grid-column: (x+1) / span w`
11
11
  * - `y` / `h` → `grid-row: (y+1) / span h`
12
12
  * - `fluid`: positions widgets with Flexbox. `x` / `y` are ignored; widgets flow in
13
- * declaration order and wrap as needed. `w` sets the proportional width (as a fraction
14
- * of `columns`) and `h` sets the height (in multiples of `cellHeight`).
13
+ * declaration order and wrap as needed.
14
+ * - `absolute`: pixel-faithful replacement for angular-gridster2's output. Each
15
+ * widget is `position: absolute` with computed `left`/`top`/`width`/`height`.
16
+ * Horizontal values are `calc()` of `100%` so the layout reflows with the
17
+ * container (no JS measurement required). Spacing between cells matches CSS
18
+ * `gap` (no outer margin), so the layout is pixel-identical to the `grid` variant.
15
19
  *
16
20
  * @example
17
21
  * ```html
18
- * <nile-dashboard-viewer variant="fluid" columns="12" cell-height="80" gap="8"></nile-dashboard-viewer>
22
+ * <nile-dashboard-viewer variant="absolute" columns="12" cell-height="80" gap="8"></nile-dashboard-viewer>
19
23
  * ```
20
24
  */
21
25
  export declare class NileDashboardViewer extends NileElement {
22
26
  static styles: CSSResultGroup;
23
27
  /** Dashboard configuration containing all widget configs. */
24
28
  config: NileDashboardConfig | null;
25
- /** Layout variant. `grid` uses x/y/w/h positioning; `fluid` flows widgets with Flexbox. Default: `grid`. */
26
- variant: 'grid' | 'fluid';
29
+ /**
30
+ * Layout variant.
31
+ * - `grid` uses CSS Grid with x/y/w/h positioning (default).
32
+ * - `fluid` flows widgets with Flexbox.
33
+ * - `absolute` mirrors angular-gridster2 (position:absolute with calc widths).
34
+ */
35
+ variant: 'grid' | 'fluid' | 'absolute';
27
36
  /** Total number of grid columns. Default: 12. */
28
37
  columns: number;
29
38
  /** Height of a single grid row in pixels. Default: 80. */