@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
@@ -12,7 +12,7 @@ var s = class extends o(r) {
12
12
  static {
13
13
  this.metadata = {
14
14
  tag: "nve-button",
15
- version: "2.4.1"
15
+ version: "2.5.0"
16
16
  };
17
17
  }
18
18
  render() {
@@ -26,7 +26,7 @@ var f = class extends c {
26
26
  static {
27
27
  this.metadata = {
28
28
  tag: "nve-button-group",
29
- version: "2.4.1",
29
+ version: "2.5.0",
30
30
  children: [
31
31
  "nve-button",
32
32
  "nve-icon-button",
@@ -16,7 +16,7 @@ var d = class extends c {
16
16
  static {
17
17
  this.metadata = {
18
18
  tag: "nve-card",
19
- version: "2.4.1"
19
+ version: "2.5.0"
20
20
  };
21
21
  }
22
22
  render() {
@@ -37,7 +37,7 @@ var f = class extends c {
37
37
  static {
38
38
  this.metadata = {
39
39
  tag: "nve-card-header",
40
- version: "2.4.1",
40
+ version: "2.5.0",
41
41
  parents: ["nve-card"]
42
42
  };
43
43
  }
@@ -53,7 +53,7 @@ var p = class extends c {
53
53
  static {
54
54
  this.metadata = {
55
55
  tag: "nve-card-content",
56
- version: "2.4.1",
56
+ version: "2.5.0",
57
57
  parents: ["nve-card"]
58
58
  };
59
59
  }
@@ -72,7 +72,7 @@ var m = class extends c {
72
72
  static {
73
73
  this.metadata = {
74
74
  tag: "nve-card-footer",
75
- version: "2.4.1",
75
+ version: "2.5.0",
76
76
  parents: ["nve-card"]
77
77
  };
78
78
  }
@@ -13,7 +13,7 @@ var l = class extends o {
13
13
  static {
14
14
  this.metadata = {
15
15
  tag: "nve-chat-message",
16
- version: "2.4.1"
16
+ version: "2.5.0"
17
17
  };
18
18
  }
19
19
  render() {
@@ -12,7 +12,7 @@ var o = class extends i {
12
12
  static {
13
13
  this.metadata = {
14
14
  tag: "nve-checkbox-group",
15
- version: "2.4.1",
15
+ version: "2.5.0",
16
16
  children: [
17
17
  "label",
18
18
  "nve-control-message",
@@ -15,7 +15,7 @@ var o = class extends i {
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-checkbox",
18
- version: "2.4.1",
18
+ version: "2.5.0",
19
19
  children: [
20
20
  "label",
21
21
  "input",
@@ -21,7 +21,7 @@ var f = class extends a {
21
21
  static {
22
22
  this.metadata = {
23
23
  tag: "nve-color",
24
- version: "2.4.1"
24
+ version: "2.5.0"
25
25
  };
26
26
  }
27
27
  static {
@@ -31,7 +31,7 @@ var S = class extends l {
31
31
  static {
32
32
  this.metadata = {
33
33
  tag: "nve-combobox",
34
- version: "2.4.1"
34
+ version: "2.5.0"
35
35
  };
36
36
  }
37
37
  static {
@@ -32,7 +32,7 @@ var p = class extends a {
32
32
  static {
33
33
  this.metadata = {
34
34
  tag: "nve-copy-button",
35
- version: "2.4.1"
35
+ version: "2.5.0"
36
36
  };
37
37
  }
38
38
  static {
@@ -1246,6 +1246,17 @@ When both are present, this property takes precedence. */
1246
1246
  sync?: boolean;
1247
1247
  };
1248
1248
 
1249
+ export type FormatTruncateProps = {
1250
+ /** Location of the ellipsis. Use start or end to preserve one edge, or center to preserve both edges. */
1251
+ position?: "start" | "center" | "end";
1252
+ /** Text unit used for center truncation. Character preserves graphemes, word preserves words, and path preserves path segments. */
1253
+ strategy?: "character" | "word" | "path";
1254
+ /** Edge favored by center truncation. The favored edge keeps at least the configured number of units. */
1255
+ bias?: "start" | "end";
1256
+ /** Number of strategy units retained at the biased edge during center truncation. */
1257
+ preserve?: number;
1258
+ };
1259
+
1249
1260
  export type ControlGroupProps = {
1250
1261
  /** Controls the directional arrangement and spacing behavior of the element's content.
1251
1262
  - `vertical` Arranges content in a vertical stack with block-level spacing.
@@ -4993,6 +5004,16 @@ export type CustomElements = {
4993
5004
  */
4994
5005
  "nve-format-relative-time": Partial<FormatRelativeTimeProps & BaseProps & BaseEvents>;
4995
5006
 
5007
+ /**
5008
+ * Truncates text at its start, center, or end while preserving the full text for assistive technology.
5009
+ * ---
5010
+ *
5011
+ *
5012
+ * ### **Slots:**
5013
+ * - _default_ - Text to truncate. The component flattens, trims, and normalizes mixed text and element nodes.
5014
+ */
5015
+ "nve-format-truncate": Partial<FormatTruncateProps & BaseProps & BaseEvents>;
5016
+
4996
5017
  /**
4997
5018
  * Groups many related form controls under a shared label and validation context for semantically linked inputs.
4998
5019
  * ---
@@ -1122,6 +1122,17 @@ When both are present, this property takes precedence. */
1122
1122
  sync?: boolean;
1123
1123
  };
1124
1124
 
1125
+ type FormatTruncateProps = {
1126
+ /** Location of the ellipsis. Use start or end to preserve one edge, or center to preserve both edges. */
1127
+ position?: "start" | "center" | "end";
1128
+ /** Text unit used for center truncation. Character preserves graphemes, word preserves words, and path preserves path segments. */
1129
+ strategy?: "character" | "word" | "path";
1130
+ /** Edge favored by center truncation. The favored edge keeps at least the configured number of units. */
1131
+ bias?: "start" | "end";
1132
+ /** Number of strategy units retained at the biased edge during center truncation. */
1133
+ preserve?: number;
1134
+ };
1135
+
1125
1136
  type ControlGroupProps = {
1126
1137
  /** Controls the directional arrangement and spacing behavior of the element's content.
1127
1138
  - `vertical` Arranges content in a vertical stack with block-level spacing.
@@ -4751,6 +4762,16 @@ export type CustomElements = {
4751
4762
  */
4752
4763
  "nve-format-relative-time": DefineComponent<FormatRelativeTimeProps>;
4753
4764
 
4765
+ /**
4766
+ * Truncates text at its start, center, or end while preserving the full text for assistive technology.
4767
+ * ---
4768
+ *
4769
+ *
4770
+ * ### **Slots:**
4771
+ * - _default_ - Text to truncate. The component flattens, trims, and normalizes mixed text and element nodes.
4772
+ */
4773
+ "nve-format-truncate": DefineComponent<FormatTruncateProps>;
4774
+
4754
4775
  /**
4755
4776
  * Groups many related form controls under a shared label and validation context for semantically linked inputs.
4756
4777
  * ---
@@ -2726,6 +2726,14 @@
2726
2726
  "package": "@nvidia-elements/core/format-relative-time"
2727
2727
  }
2728
2728
  },
2729
+ {
2730
+ "kind": "js",
2731
+ "name": "*",
2732
+ "declaration": {
2733
+ "name": "*",
2734
+ "package": "@nvidia-elements/core/format-truncate"
2735
+ }
2736
+ },
2729
2737
  {
2730
2738
  "kind": "js",
2731
2739
  "name": "*",
@@ -15331,6 +15339,360 @@
15331
15339
  }
15332
15340
  ]
15333
15341
  },
15342
+ {
15343
+ "kind": "javascript-module",
15344
+ "path": "/src/format-truncate/define.js",
15345
+ "declarations": [],
15346
+ "exports": []
15347
+ },
15348
+ {
15349
+ "kind": "javascript-module",
15350
+ "path": "/src/format-truncate/format-truncate.js",
15351
+ "declarations": [
15352
+ {
15353
+ "kind": "class",
15354
+ "description": "Truncates text at its start, center, or end while preserving the full text for assistive technology.",
15355
+ "name": "FormatTruncate",
15356
+ "slots": [
15357
+ {
15358
+ "description": "Text to truncate. The component flattens, trims, and normalizes mixed text and element nodes.",
15359
+ "name": ""
15360
+ }
15361
+ ],
15362
+ "members": [
15363
+ {
15364
+ "kind": "field",
15365
+ "name": "position",
15366
+ "type": {
15367
+ "text": "'start' | 'center' | 'end'",
15368
+ "_sourceAliases": [],
15369
+ "values": [
15370
+ {
15371
+ "value": "start",
15372
+ "description": ""
15373
+ },
15374
+ {
15375
+ "value": "center",
15376
+ "description": ""
15377
+ },
15378
+ {
15379
+ "value": "end",
15380
+ "description": ""
15381
+ }
15382
+ ]
15383
+ },
15384
+ "default": "'start'",
15385
+ "description": "Location of the ellipsis. Use start or end to preserve one edge, or center to preserve both edges.",
15386
+ "attribute": "position",
15387
+ "reflects": true
15388
+ },
15389
+ {
15390
+ "kind": "field",
15391
+ "name": "strategy",
15392
+ "type": {
15393
+ "text": "'character' | 'word' | 'path'",
15394
+ "_sourceAliases": [],
15395
+ "values": [
15396
+ {
15397
+ "value": "character",
15398
+ "description": ""
15399
+ },
15400
+ {
15401
+ "value": "word",
15402
+ "description": ""
15403
+ },
15404
+ {
15405
+ "value": "path",
15406
+ "description": ""
15407
+ }
15408
+ ]
15409
+ },
15410
+ "default": "'character'",
15411
+ "description": "Text unit used for center truncation. Character preserves graphemes, word preserves words, and path preserves path segments.",
15412
+ "attribute": "strategy",
15413
+ "reflects": true
15414
+ },
15415
+ {
15416
+ "kind": "field",
15417
+ "name": "bias",
15418
+ "type": {
15419
+ "text": "'start' | 'end'",
15420
+ "_sourceAliases": [],
15421
+ "values": [
15422
+ {
15423
+ "value": "start",
15424
+ "description": ""
15425
+ },
15426
+ {
15427
+ "value": "end",
15428
+ "description": ""
15429
+ }
15430
+ ]
15431
+ },
15432
+ "default": "'end'",
15433
+ "description": "Edge favored by center truncation. The favored edge keeps at least the configured number of units.",
15434
+ "attribute": "bias",
15435
+ "reflects": true
15436
+ },
15437
+ {
15438
+ "kind": "field",
15439
+ "name": "preserve",
15440
+ "type": {
15441
+ "text": "number",
15442
+ "_sourceAliases": [],
15443
+ "values": [
15444
+ {
15445
+ "value": "number",
15446
+ "description": ""
15447
+ }
15448
+ ]
15449
+ },
15450
+ "default": "6",
15451
+ "description": "Number of strategy units retained at the biased edge during center truncation.",
15452
+ "attribute": "preserve",
15453
+ "reflects": true
15454
+ },
15455
+ {
15456
+ "kind": "method",
15457
+ "name": "connectedMoveCallback",
15458
+ "return": {
15459
+ "type": {
15460
+ "text": "void"
15461
+ }
15462
+ }
15463
+ }
15464
+ ],
15465
+ "attributes": [
15466
+ {
15467
+ "name": "position",
15468
+ "type": {
15469
+ "text": "'start' | 'center' | 'end'",
15470
+ "_sourceAliases": [],
15471
+ "values": [
15472
+ {
15473
+ "value": "start",
15474
+ "description": ""
15475
+ },
15476
+ {
15477
+ "value": "center",
15478
+ "description": ""
15479
+ },
15480
+ {
15481
+ "value": "end",
15482
+ "description": ""
15483
+ }
15484
+ ]
15485
+ },
15486
+ "default": "'start'",
15487
+ "description": "Location of the ellipsis. Use start or end to preserve one edge, or center to preserve both edges.",
15488
+ "fieldName": "position"
15489
+ },
15490
+ {
15491
+ "name": "strategy",
15492
+ "type": {
15493
+ "text": "'character' | 'word' | 'path'",
15494
+ "_sourceAliases": [],
15495
+ "values": [
15496
+ {
15497
+ "value": "character",
15498
+ "description": ""
15499
+ },
15500
+ {
15501
+ "value": "word",
15502
+ "description": ""
15503
+ },
15504
+ {
15505
+ "value": "path",
15506
+ "description": ""
15507
+ }
15508
+ ]
15509
+ },
15510
+ "default": "'character'",
15511
+ "description": "Text unit used for center truncation. Character preserves graphemes, word preserves words, and path preserves path segments.",
15512
+ "fieldName": "strategy"
15513
+ },
15514
+ {
15515
+ "name": "bias",
15516
+ "type": {
15517
+ "text": "'start' | 'end'",
15518
+ "_sourceAliases": [],
15519
+ "values": [
15520
+ {
15521
+ "value": "start",
15522
+ "description": ""
15523
+ },
15524
+ {
15525
+ "value": "end",
15526
+ "description": ""
15527
+ }
15528
+ ]
15529
+ },
15530
+ "default": "'end'",
15531
+ "description": "Edge favored by center truncation. The favored edge keeps at least the configured number of units.",
15532
+ "fieldName": "bias"
15533
+ },
15534
+ {
15535
+ "name": "preserve",
15536
+ "type": {
15537
+ "text": "number",
15538
+ "_sourceAliases": [],
15539
+ "values": [
15540
+ {
15541
+ "value": "number",
15542
+ "description": ""
15543
+ }
15544
+ ]
15545
+ },
15546
+ "default": "6",
15547
+ "description": "Number of strategy units retained at the biased edge during center truncation.",
15548
+ "fieldName": "preserve"
15549
+ }
15550
+ ],
15551
+ "superclass": {
15552
+ "name": "LitElement",
15553
+ "package": "lit"
15554
+ },
15555
+ "tagName": "nve-format-truncate",
15556
+ "customElement": true,
15557
+ "metadata": {
15558
+ "unitTests": true,
15559
+ "apiReview": true,
15560
+ "performance": true,
15561
+ "stable": true,
15562
+ "vqa": true,
15563
+ "responsive": true,
15564
+ "themes": true,
15565
+ "aria": "#",
15566
+ "entrypoint": "@nvidia-elements/core/format-truncate",
15567
+ "example": "<div nve-layout=\"column gap:sm\" style=\"max-width: 16rem\">\n <nve-format-truncate position=\"start\">training-pipeline-2026-08-05-production</nve-format-truncate>\n <nve-format-truncate position=\"center\">training-pipeline-2026-08-05-production</nve-format-truncate>\n <nve-format-truncate position=\"end\">training-pipeline-2026-08-05-production</nve-format-truncate>\n</div>",
15568
+ "package": true,
15569
+ "documentation": "https://nvidia.github.io/elements/docs/elements/format-truncate/",
15570
+ "since": "0.0.0",
15571
+ "status": "beta",
15572
+ "behavior": "content",
15573
+ "markdown": "## nve-format-truncate\n\nTruncates text at its start, center, or end while preserving the full text for assistive technology.\n\n### Example\n\n```html\n<div nve-layout=\"column gap:sm\" style=\"max-width: 16rem\">\n <nve-format-truncate position=\"start\">training-pipeline-2026-08-05-production</nve-format-truncate>\n <nve-format-truncate position=\"center\">training-pipeline-2026-08-05-production</nve-format-truncate>\n <nve-format-truncate position=\"end\">training-pipeline-2026-08-05-production</nve-format-truncate>\n</div>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/format-truncate/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | Text to truncate. The component flattens, trims, and normalizes mixed text and element nodes. |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| position | `'start' \\| 'center' \\| 'end'` | Location of the ellipsis. Use start or end to preserve one edge, or center to preserve both edges. |\n| strategy | `'character' \\| 'word' \\| 'path'` | Text unit used for center truncation. Character preserves graphemes, word preserves words, and path preserves path segments. |\n| bias | `'start' \\| 'end'` | Edge favored by center truncation. The favored edge keeps at least the configured number of units. |\n| preserve | `number` | Number of strategy units retained at the biased edge during center truncation. |\n| connectedMoveCallback | | |"
15574
+ }
15575
+ }
15576
+ ],
15577
+ "exports": [
15578
+ {
15579
+ "kind": "js",
15580
+ "name": "FormatTruncate",
15581
+ "declaration": {
15582
+ "name": "FormatTruncate",
15583
+ "module": "/src/format-truncate/format-truncate.js"
15584
+ }
15585
+ }
15586
+ ]
15587
+ },
15588
+ {
15589
+ "kind": "javascript-module",
15590
+ "path": "/src/format-truncate/index.js",
15591
+ "declarations": [],
15592
+ "exports": [
15593
+ {
15594
+ "kind": "js",
15595
+ "name": "*",
15596
+ "declaration": {
15597
+ "name": "*",
15598
+ "module": "home/runner/work/elements/elements/projects/core/src/format-truncate/format-truncate.js"
15599
+ }
15600
+ }
15601
+ ]
15602
+ },
15603
+ {
15604
+ "kind": "javascript-module",
15605
+ "path": "/src/format-truncate/utils.js",
15606
+ "declarations": [
15607
+ {
15608
+ "kind": "function",
15609
+ "name": "normalizeTruncateText",
15610
+ "return": {
15611
+ "type": {
15612
+ "text": "string"
15613
+ }
15614
+ },
15615
+ "parameters": [
15616
+ {
15617
+ "name": "nodes",
15618
+ "type": {
15619
+ "text": "Iterable<Node>",
15620
+ "_sourceAliases": []
15621
+ }
15622
+ }
15623
+ ]
15624
+ },
15625
+ {
15626
+ "kind": "function",
15627
+ "name": "normalizeTruncateString",
15628
+ "return": {
15629
+ "type": {
15630
+ "text": "string"
15631
+ }
15632
+ },
15633
+ "parameters": [
15634
+ {
15635
+ "name": "text",
15636
+ "type": {
15637
+ "text": "string",
15638
+ "_sourceAliases": []
15639
+ }
15640
+ }
15641
+ ]
15642
+ },
15643
+ {
15644
+ "kind": "function",
15645
+ "name": "truncateText",
15646
+ "return": {
15647
+ "type": {
15648
+ "text": "string"
15649
+ }
15650
+ },
15651
+ "parameters": [
15652
+ {
15653
+ "name": "text",
15654
+ "type": {
15655
+ "text": "string",
15656
+ "_sourceAliases": []
15657
+ }
15658
+ },
15659
+ {
15660
+ "name": "{\n position,\n strategy,\n bias,\n preserve,\n availableWidth,\n measureText\n }",
15661
+ "type": {
15662
+ "text": "{\n position: TruncatePosition;\n strategy: TruncateStrategy;\n bias: TruncateBias;\n preserve: number;\n availableWidth: number;\n measureText: (value: string) => number;\n }",
15663
+ "_sourceAliases": []
15664
+ }
15665
+ }
15666
+ ]
15667
+ }
15668
+ ],
15669
+ "exports": [
15670
+ {
15671
+ "kind": "js",
15672
+ "name": "normalizeTruncateText",
15673
+ "declaration": {
15674
+ "name": "normalizeTruncateText",
15675
+ "module": "/src/format-truncate/utils.js"
15676
+ }
15677
+ },
15678
+ {
15679
+ "kind": "js",
15680
+ "name": "normalizeTruncateString",
15681
+ "declaration": {
15682
+ "name": "normalizeTruncateString",
15683
+ "module": "/src/format-truncate/utils.js"
15684
+ }
15685
+ },
15686
+ {
15687
+ "kind": "js",
15688
+ "name": "truncateText",
15689
+ "declaration": {
15690
+ "name": "truncateText",
15691
+ "module": "/src/format-truncate/utils.js"
15692
+ }
15693
+ }
15694
+ ]
15695
+ },
15334
15696
  {
15335
15697
  "kind": "javascript-module",
15336
15698
  "path": "/src/forms/control-group/control-group.js",
@@ -1948,6 +1948,46 @@
1948
1948
  }
1949
1949
  ]
1950
1950
  },
1951
+ {
1952
+ "name": "nve-format-truncate",
1953
+ "description": "Truncates text at its start, center, or end while preserving the full text for assistive technology.\n---\n\n\n### **Slots:**\n - _default_ - Text to truncate. The component flattens, trims, and normalizes mixed text and element nodes.",
1954
+ "attributes": [
1955
+ {
1956
+ "name": "position",
1957
+ "description": "Location of the ellipsis. Use start or end to preserve one edge, or center to preserve both edges.",
1958
+ "values": [
1959
+ { "name": "start" },
1960
+ { "name": "center" },
1961
+ { "name": "end" }
1962
+ ]
1963
+ },
1964
+ {
1965
+ "name": "strategy",
1966
+ "description": "Text unit used for center truncation. Character preserves graphemes, word preserves words, and path preserves path segments.",
1967
+ "values": [
1968
+ { "name": "character" },
1969
+ { "name": "word" },
1970
+ { "name": "path" }
1971
+ ]
1972
+ },
1973
+ {
1974
+ "name": "bias",
1975
+ "description": "Edge favored by center truncation. The favored edge keeps at least the configured number of units.",
1976
+ "values": [{ "name": "start" }, { "name": "end" }]
1977
+ },
1978
+ {
1979
+ "name": "preserve",
1980
+ "description": "Number of strategy units retained at the biased edge during center truncation.",
1981
+ "values": []
1982
+ }
1983
+ ],
1984
+ "references": [
1985
+ {
1986
+ "name": "Documentation",
1987
+ "url": "https://nvidia.github.io/elements/docs/elements/format-truncate/"
1988
+ }
1989
+ ]
1990
+ },
1951
1991
  {
1952
1992
  "name": "nve-control-group",
1953
1993
  "description": "Groups many related form controls under a shared label and validation context for semantically linked inputs.\n---\n\n\n### **Slots:**\n - _default_ - Control input elements\n\n### **CSS Properties:**\n - **--color** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/color) _(default: undefined)_\n- **--label-color** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/color) _(default: undefined)_\n- **--label-text-transform** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform) _(default: undefined)_\n- **--label-font-weight** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) _(default: undefined)_\n- **--label-font-size** - [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size) _(default: undefined)_",