@nvidia-elements/core 2.4.1 → 2.5.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 (128) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/accordion/accordion2.js +4 -4
  3. package/dist/alert/alert-group2.js +1 -1
  4. package/dist/alert/alert2.js +1 -1
  5. package/dist/avatar/avatar-group2.js +1 -1
  6. package/dist/avatar/avatar2.js +1 -1
  7. package/dist/badge/badge2.js +1 -1
  8. package/dist/breadcrumb/breadcrumb2.js +1 -1
  9. package/dist/bundle.d.ts +2 -0
  10. package/dist/bundles/index.d.ts +39 -0
  11. package/dist/bundles/index.js +6 -6
  12. package/dist/button/button2.js +1 -1
  13. package/dist/button-group/button-group2.js +1 -1
  14. package/dist/card/card2.js +4 -4
  15. package/dist/chat-message/chat-message2.js +1 -1
  16. package/dist/checkbox/checkbox-group2.js +1 -1
  17. package/dist/checkbox/checkbox2.js +1 -1
  18. package/dist/color/color2.js +1 -1
  19. package/dist/combobox/combobox2.js +1 -1
  20. package/dist/copy-button/copy-button2.js +1 -1
  21. package/dist/custom-elements-jsx.d.ts +21 -0
  22. package/dist/custom-elements-vue.d.ts +21 -0
  23. package/dist/custom-elements.json +362 -0
  24. package/dist/data.html.json +40 -0
  25. package/dist/data.snippets.json +45 -45
  26. package/dist/date/date2.js +1 -1
  27. package/dist/datetime/datetime2.js +1 -1
  28. package/dist/dialog/dialog-footer2.js +1 -1
  29. package/dist/dialog/dialog-header2.js +1 -1
  30. package/dist/dialog/dialog2.js +1 -1
  31. package/dist/divider/divider2.js +1 -1
  32. package/dist/dot/dot2.js +1 -1
  33. package/dist/drawer/drawer-content2.js +1 -1
  34. package/dist/drawer/drawer-footer2.js +1 -1
  35. package/dist/drawer/drawer-header2.js +1 -1
  36. package/dist/drawer/drawer2.js +1 -1
  37. package/dist/dropdown/dropdown-footer2.js +1 -1
  38. package/dist/dropdown/dropdown-header2.js +1 -1
  39. package/dist/dropdown/dropdown2.js +1 -1
  40. package/dist/dropdown-group/dropdown-group.js +1 -1
  41. package/dist/dropzone/dropzone2.js +1 -1
  42. package/dist/file/file2.js +1 -1
  43. package/dist/format-bytes/format-bytes2.js +1 -1
  44. package/dist/format-datetime/format-datetime2.js +1 -1
  45. package/dist/format-number/format-number2.js +1 -1
  46. package/dist/format-relative-time/format-relative-time2.js +1 -1
  47. package/dist/format-truncate/define.d.ts +6 -0
  48. package/dist/format-truncate/define.js +7 -0
  49. package/dist/format-truncate/define.js.map +1 -0
  50. package/dist/format-truncate/format-truncate.d.ts +41 -0
  51. package/dist/format-truncate/format-truncate.examples.js +6 -0
  52. package/dist/format-truncate/format-truncate.examples.js.map +1 -0
  53. package/dist/format-truncate/format-truncate.examples.json +70 -0
  54. package/dist/format-truncate/format-truncate.js +6 -0
  55. package/dist/format-truncate/format-truncate.js.map +1 -0
  56. package/dist/format-truncate/format-truncate2.js +118 -0
  57. package/dist/format-truncate/format-truncate2.js.map +1 -0
  58. package/dist/format-truncate/index.d.ts +1 -0
  59. package/dist/format-truncate/index.js +2 -0
  60. package/dist/format-truncate/utils.d.ts +14 -0
  61. package/dist/format-truncate/utils.js +114 -0
  62. package/dist/format-truncate/utils.js.map +1 -0
  63. package/dist/forms/control/control2.js +1 -1
  64. package/dist/forms/control-group/control-group2.js +1 -1
  65. package/dist/forms/control-message/control-message2.js +1 -1
  66. package/dist/gauge/gauge2.js +1 -1
  67. package/dist/grid/cell/cell2.js +1 -1
  68. package/dist/grid/column/column2.js +1 -1
  69. package/dist/grid/footer/footer2.js +1 -1
  70. package/dist/grid/grid2.js +1 -1
  71. package/dist/grid/header/header2.js +1 -1
  72. package/dist/grid/placeholder/placeholder2.js +1 -1
  73. package/dist/grid/row/row2.js +1 -1
  74. package/dist/icon/icon2.js +2 -2
  75. package/dist/icon-button/icon-button2.js +1 -1
  76. package/dist/index.js +1 -1
  77. package/dist/input/input-group2.js +1 -1
  78. package/dist/input/input2.js +1 -1
  79. package/dist/internal/services/global.service.js +1 -1
  80. package/dist/logo/logo2.js +1 -1
  81. package/dist/menu/menu-item2.js +1 -1
  82. package/dist/menu/menu2.js +1 -1
  83. package/dist/month/month2.js +1 -1
  84. package/dist/notification/notification-group2.js +1 -1
  85. package/dist/notification/notification2.js +1 -1
  86. package/dist/page/page-panel/page-panel-content2.js +1 -1
  87. package/dist/page/page-panel/page-panel-footer2.js +1 -1
  88. package/dist/page/page-panel/page-panel-header2.js +1 -1
  89. package/dist/page/page-panel/page-panel2.js +1 -1
  90. package/dist/page/page2.js +1 -1
  91. package/dist/page-header/page-header2.js +1 -1
  92. package/dist/page-loader/page-loader2.js +1 -1
  93. package/dist/pagination/pagination2.js +1 -1
  94. package/dist/panel/panel2.js +4 -4
  95. package/dist/password/password2.js +1 -1
  96. package/dist/preferences-input/preferences-input2.js +1 -1
  97. package/dist/progress-bar/progress-bar2.js +1 -1
  98. package/dist/progress-ring/progress-ring2.js +1 -1
  99. package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
  100. package/dist/pulse/pulse2.js +1 -1
  101. package/dist/radio/radio-group2.js +1 -1
  102. package/dist/radio/radio2.js +1 -1
  103. package/dist/range/range2.js +1 -1
  104. package/dist/resize-handle/resize-handle2.js +1 -1
  105. package/dist/search/search2.js +1 -1
  106. package/dist/select/select2.js +1 -1
  107. package/dist/skeleton/skeleton2.js +1 -1
  108. package/dist/sort-button/sort-button2.js +1 -1
  109. package/dist/sparkline/sparkline2.js +1 -1
  110. package/dist/star-rating/star-rating2.js +1 -1
  111. package/dist/steps/steps2.js +2 -2
  112. package/dist/switch/switch-group2.js +1 -1
  113. package/dist/switch/switch2.js +1 -1
  114. package/dist/tabs/tabs-group2.js +1 -1
  115. package/dist/tabs/tabs2.js +2 -2
  116. package/dist/tag/tag2.js +1 -1
  117. package/dist/textarea/textarea2.js +1 -1
  118. package/dist/time/time2.js +1 -1
  119. package/dist/toast/toast2.js +1 -1
  120. package/dist/toggletip/toggletip-footer2.js +1 -1
  121. package/dist/toggletip/toggletip-header2.js +1 -1
  122. package/dist/toggletip/toggletip2.js +1 -1
  123. package/dist/toolbar/toolbar2.js +1 -1
  124. package/dist/tooltip/tooltip2.js +1 -1
  125. package/dist/tree/tree-node2.js +1 -1
  126. package/dist/tree/tree2.js +1 -1
  127. package/dist/week/week2.js +1 -1
  128. package/package.json +14 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 2.5.0 (2026-08-25)
2
+
3
+ * feat(core): add format-truncate ([d6c0f2e](https://github.com/NVIDIA/elements/commit/d6c0f2e))
4
+ * chore(forms): cover select default value before connect ([724ee3f](https://github.com/NVIDIA/elements/commit/724ee3f))
5
+ * chore(release): @nvidia-elements/lint-v2.4.0 [skip ci] ([963c501](https://github.com/NVIDIA/elements/commit/963c501))
6
+ * chore(starters): update @tsconfig/node20 to 20.1.10 ([8c23a01](https://github.com/NVIDIA/elements/commit/8c23a01))
7
+
1
8
  ## <small>2.4.1 (2026-08-25)</small>
2
9
 
3
10
  * fix(core): missing animation timing for progress-bar ([05150d4](https://github.com/NVIDIA/elements/commit/05150d4))
@@ -28,7 +28,7 @@ var b = class extends g {
28
28
  static {
29
29
  this.metadata = {
30
30
  tag: "nve-accordion-header",
31
- version: "2.4.1"
31
+ version: "2.5.0"
32
32
  };
33
33
  }
34
34
  render() {
@@ -46,7 +46,7 @@ var x = class extends g {
46
46
  static {
47
47
  this.metadata = {
48
48
  tag: "nve-accordion-content",
49
- version: "2.4.1"
49
+ version: "2.5.0"
50
50
  };
51
51
  }
52
52
  render() {
@@ -62,7 +62,7 @@ var x = class extends g {
62
62
  static {
63
63
  this.metadata = {
64
64
  tag: "nve-accordion",
65
- version: "2.4.1",
65
+ version: "2.5.0",
66
66
  children: [
67
67
  b.metadata.tag,
68
68
  x.metadata.tag,
@@ -120,7 +120,7 @@ var C = class extends g {
120
120
  static {
121
121
  this.metadata = {
122
122
  tag: "nve-accordion-group",
123
- version: "2.4.1",
123
+ version: "2.5.0",
124
124
  children: [S.metadata.tag]
125
125
  };
126
126
  }
@@ -19,7 +19,7 @@ var f = class extends c {
19
19
  static {
20
20
  this.metadata = {
21
21
  tag: "nve-alert-group",
22
- version: "2.4.1",
22
+ version: "2.5.0",
23
23
  children: [o.metadata.tag]
24
24
  };
25
25
  }
@@ -28,7 +28,7 @@ var v = class extends m {
28
28
  static {
29
29
  this.metadata = {
30
30
  tag: "nve-alert",
31
- version: "2.4.1"
31
+ version: "2.5.0"
32
32
  };
33
33
  }
34
34
  static {
@@ -10,7 +10,7 @@ var a = class extends r {
10
10
  static {
11
11
  this.metadata = {
12
12
  tag: "nve-avatar-group",
13
- version: "2.4.1"
13
+ version: "2.5.0"
14
14
  };
15
15
  }
16
16
  render() {
@@ -11,7 +11,7 @@ var s = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-avatar",
14
- version: "2.4.1"
14
+ version: "2.5.0"
15
15
  };
16
16
  }
17
17
  render() {
@@ -25,7 +25,7 @@ var g = class extends f {
25
25
  static {
26
26
  this.metadata = {
27
27
  tag: "nve-badge",
28
- version: "2.4.1"
28
+ version: "2.5.0"
29
29
  };
30
30
  }
31
31
  static {
@@ -24,7 +24,7 @@ var m = class extends u {
24
24
  static {
25
25
  this.metadata = {
26
26
  tag: "nve-breadcrumb",
27
- version: "2.4.1"
27
+ version: "2.5.0"
28
28
  };
29
29
  }
30
30
  static {
package/dist/bundle.d.ts CHANGED
@@ -25,6 +25,7 @@ import '@nvidia-elements/core/format-bytes/define.js';
25
25
  import '@nvidia-elements/core/format-datetime/define.js';
26
26
  import '@nvidia-elements/core/format-number/define.js';
27
27
  import '@nvidia-elements/core/format-relative-time/define.js';
28
+ import '@nvidia-elements/core/format-truncate/define.js';
28
29
  import '@nvidia-elements/core/forms/define.js';
29
30
  import '@nvidia-elements/core/gauge/define.js';
30
31
  import '@nvidia-elements/core/grid/define.js';
@@ -94,6 +95,7 @@ export * from '@nvidia-elements/core/format-bytes';
94
95
  export * from '@nvidia-elements/core/format-datetime';
95
96
  export * from '@nvidia-elements/core/format-number';
96
97
  export * from '@nvidia-elements/core/format-relative-time';
98
+ export * from '@nvidia-elements/core/format-truncate';
97
99
  export * from '@nvidia-elements/core/forms';
98
100
  export * from '@nvidia-elements/core/gauge';
99
101
  export * from '@nvidia-elements/core/grid';
@@ -3170,6 +3170,45 @@ export declare class FormatRelativeTime extends LitElement {
3170
3170
  updated(changed: Map<string, unknown>): void;
3171
3171
  render(): TemplateResult<1>;
3172
3172
  }
3173
+ /**
3174
+ * @element nve-format-truncate
3175
+ * @description Truncates text at its start, center, or end while preserving the full text for assistive technology.
3176
+ * @documentation https://nvidia.github.io/elements/docs/elements/format-truncate/
3177
+ * @since 0.0.0
3178
+ * @entrypoint \@nvidia-elements/core/format-truncate
3179
+ * @slot - Text to truncate. The component flattens, trims, and normalizes mixed text and element nodes.
3180
+ * @beta
3181
+ */
3182
+ export declare class FormatTruncate extends LitElement {
3183
+ #private;
3184
+ static styles: CSSResult[];
3185
+ static readonly metadata: {
3186
+ tag: string;
3187
+ version: string;
3188
+ };
3189
+ /**
3190
+ * Location of the ellipsis. Use start or end to preserve one edge, or center to preserve both edges.
3191
+ */
3192
+ position: "start" | "center" | "end";
3193
+ /**
3194
+ * Text unit used for center truncation. Character preserves graphemes, word preserves words, and path preserves path segments.
3195
+ */
3196
+ strategy: "character" | "word" | "path";
3197
+ /**
3198
+ * Edge favored by center truncation. The favored edge keeps at least the configured number of units.
3199
+ */
3200
+ bias: "start" | "end";
3201
+ /**
3202
+ * Number of strategy units retained at the biased edge during center truncation.
3203
+ */
3204
+ preserve: number;
3205
+ /** @private */
3206
+ _internals: ElementInternals;
3207
+ connectedCallback(): void;
3208
+ disconnectedCallback(): void;
3209
+ connectedMoveCallback(): void;
3210
+ render(): TemplateResult;
3211
+ }
3173
3212
  /**
3174
3213
  * @element nve-gauge
3175
3214
  * @description Use a gauge to show system resource usage.