@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.
- package/CHANGELOG.md +7 -0
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert2.js +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar2.js +1 -1
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundles/index.d.ts +39 -0
- package/dist/bundles/index.js +6 -6
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group2.js +1 -1
- package/dist/card/card2.js +4 -4
- package/dist/chat-message/chat-message2.js +1 -1
- package/dist/checkbox/checkbox-group2.js +1 -1
- package/dist/checkbox/checkbox2.js +1 -1
- package/dist/color/color2.js +1 -1
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +21 -0
- package/dist/custom-elements-vue.d.ts +21 -0
- package/dist/custom-elements.json +362 -0
- package/dist/data.html.json +40 -0
- package/dist/data.snippets.json +45 -45
- package/dist/date/date2.js +1 -1
- package/dist/datetime/datetime2.js +1 -1
- package/dist/dialog/dialog-footer2.js +1 -1
- package/dist/dialog/dialog-header2.js +1 -1
- package/dist/dialog/dialog2.js +1 -1
- package/dist/divider/divider2.js +1 -1
- package/dist/dot/dot2.js +1 -1
- package/dist/drawer/drawer-content2.js +1 -1
- package/dist/drawer/drawer-footer2.js +1 -1
- package/dist/drawer/drawer-header2.js +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/dropdown/dropdown-footer2.js +1 -1
- package/dist/dropdown/dropdown-header2.js +1 -1
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-bytes/format-bytes2.js +1 -1
- package/dist/format-datetime/format-datetime2.js +1 -1
- package/dist/format-number/format-number2.js +1 -1
- package/dist/format-relative-time/format-relative-time2.js +1 -1
- package/dist/format-truncate/define.d.ts +6 -0
- package/dist/format-truncate/define.js +7 -0
- package/dist/format-truncate/define.js.map +1 -0
- package/dist/format-truncate/format-truncate.d.ts +41 -0
- package/dist/format-truncate/format-truncate.examples.js +6 -0
- package/dist/format-truncate/format-truncate.examples.js.map +1 -0
- package/dist/format-truncate/format-truncate.examples.json +70 -0
- package/dist/format-truncate/format-truncate.js +6 -0
- package/dist/format-truncate/format-truncate.js.map +1 -0
- package/dist/format-truncate/format-truncate2.js +118 -0
- package/dist/format-truncate/format-truncate2.js.map +1 -0
- package/dist/format-truncate/index.d.ts +1 -0
- package/dist/format-truncate/index.js +2 -0
- package/dist/format-truncate/utils.d.ts +14 -0
- package/dist/format-truncate/utils.js +114 -0
- package/dist/format-truncate/utils.js.map +1 -0
- package/dist/forms/control/control2.js +1 -1
- package/dist/forms/control-group/control-group2.js +1 -1
- package/dist/forms/control-message/control-message2.js +1 -1
- package/dist/gauge/gauge2.js +1 -1
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column2.js +1 -1
- package/dist/grid/footer/footer2.js +1 -1
- package/dist/grid/grid2.js +1 -1
- package/dist/grid/header/header2.js +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +1 -1
- package/dist/icon/icon2.js +2 -2
- package/dist/icon-button/icon-button2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/internal/services/global.service.js +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu2.js +1 -1
- package/dist/month/month2.js +1 -1
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification2.js +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +1 -1
- package/dist/page/page-panel/page-panel-header2.js +1 -1
- package/dist/page/page-panel/page-panel2.js +1 -1
- package/dist/page/page2.js +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination2.js +1 -1
- package/dist/panel/panel2.js +4 -4
- package/dist/password/password2.js +1 -1
- package/dist/preferences-input/preferences-input2.js +1 -1
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-ring/progress-ring2.js +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
- package/dist/pulse/pulse2.js +1 -1
- package/dist/radio/radio-group2.js +1 -1
- package/dist/radio/radio2.js +1 -1
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle2.js +1 -1
- package/dist/search/search2.js +1 -1
- package/dist/select/select2.js +1 -1
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline2.js +1 -1
- package/dist/star-rating/star-rating2.js +1 -1
- package/dist/steps/steps2.js +2 -2
- package/dist/switch/switch-group2.js +1 -1
- package/dist/switch/switch2.js +1 -1
- package/dist/tabs/tabs-group2.js +1 -1
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast2.js +1 -1
- package/dist/toggletip/toggletip-footer2.js +1 -1
- package/dist/toggletip/toggletip-header2.js +1 -1
- package/dist/toggletip/toggletip2.js +1 -1
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree2.js +1 -1
- package/dist/week/week2.js +1 -1
- 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.
|
|
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.
|
|
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.
|
|
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.
|
|
123
|
+
version: "2.5.0",
|
|
124
124
|
children: [S.metadata.tag]
|
|
125
125
|
};
|
|
126
126
|
}
|
package/dist/alert/alert2.js
CHANGED
package/dist/avatar/avatar2.js
CHANGED
package/dist/badge/badge2.js
CHANGED
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';
|
package/dist/bundles/index.d.ts
CHANGED
|
@@ -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.
|