@aquera/nile-visualization 2.9.13 → 2.9.14

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.
@@ -61,6 +61,8 @@ export interface NileChartMenuItemDefault {
61
61
  label?: string;
62
62
  /** Optional nile-glyph icon name shown as a leading prefix (e.g. `'download'`). */
63
63
  glyph?: string;
64
+ method?: string;
65
+ color?: string;
64
66
  /** Show a divider line above this item. */
65
67
  divider?: boolean;
66
68
  fullscreen?: true;
@@ -83,6 +85,10 @@ export interface NileChartMenuItemCustom {
83
85
  id: string;
84
86
  /** Optional nile-glyph icon name shown as a leading prefix (e.g. `'share-07'`). */
85
87
  glyph?: string;
88
+ /** Render method for the leading glyph (passed to nile-glyph `method`, e.g. `'fill'`, `'stroke'`). */
89
+ method?: string;
90
+ /** Color for the leading glyph (passed to nile-glyph `color`, e.g. a hex value or CSS var). */
91
+ color?: string;
86
92
  /** Show a divider line above this item. */
87
93
  divider?: boolean;
88
94
  }
@@ -428,7 +428,13 @@ let NileChart = class NileChart extends NileElement {
428
428
  }
429
429
  _renderMenuItem(item, hasChart) {
430
430
  const glyph = item.glyph
431
- ? html `<nile-glyph class="nile-chart-menu-item-glyph" name=${item.glyph} size="16"></nile-glyph>`
431
+ ? html `<nile-glyph
432
+ class="nile-chart-menu-item-glyph"
433
+ name=${item.glyph}
434
+ method=${item.method ?? 'stroke'}
435
+ color=${item.color ?? 'var(--nile-colors-dark-500,var(--ng-colors-fg-secondary-700))'}
436
+ size="16"
437
+ ></nile-glyph>`
432
438
  : nothing;
433
439
  if (item.type === 'custom') {
434
440
  return html `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquera/nile-visualization",
3
- "version": "2.9.13",
3
+ "version": "2.9.14",
4
4
  "description": "A visualization Library for the Nile Design System",
5
5
  "license": "MIT",
6
6
  "author": "Aquera Inc",