@carbon/ibm-products-web-components 0.45.0 → 0.46.0-rc.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/custom-elements.json +494 -19
  2. package/es/components/add-select/add-select-body.d.ts +15 -10
  3. package/es/components/add-select/add-select-body.d.ts.map +1 -1
  4. package/es/components/add-select/add-select-body.js +95 -73
  5. package/es/components/add-select/add-select-body.js.map +1 -1
  6. package/es/components/add-select/add-select-body.scss.js +1 -1
  7. package/es/components/add-select/add-select-body.scss.js.map +1 -1
  8. package/es/components/add-select/add-select-column.d.ts +83 -0
  9. package/es/components/add-select/add-select-column.d.ts.map +1 -0
  10. package/es/components/add-select/add-select-column.js +217 -0
  11. package/es/components/add-select/add-select-column.js.map +1 -0
  12. package/es/components/add-select/add-select-column.scss.js +14 -0
  13. package/es/components/add-select/add-select-column.scss.js.map +1 -0
  14. package/es/components/add-select/add-select-item-panel.d.ts +58 -0
  15. package/es/components/add-select/add-select-item-panel.d.ts.map +1 -0
  16. package/es/components/add-select/add-select-item-panel.js +162 -0
  17. package/es/components/add-select/add-select-item-panel.js.map +1 -0
  18. package/es/components/add-select/add-select-item-panel.scss.js +14 -0
  19. package/es/components/add-select/add-select-item-panel.scss.js.map +1 -0
  20. package/es/components/add-select/add-select-row.d.ts +42 -2
  21. package/es/components/add-select/add-select-row.d.ts.map +1 -1
  22. package/es/components/add-select/add-select-row.js +143 -23
  23. package/es/components/add-select/add-select-row.js.map +1 -1
  24. package/es/components/add-select/add-select-row.scss.js +1 -1
  25. package/es/components/add-select/add-select-row.scss.js.map +1 -1
  26. package/es/components/add-select/add-select-selection-summary-item.d.ts +64 -0
  27. package/es/components/add-select/add-select-selection-summary-item.d.ts.map +1 -0
  28. package/es/components/add-select/add-select-selection-summary-item.js +279 -0
  29. package/es/components/add-select/add-select-selection-summary-item.js.map +1 -0
  30. package/es/components/add-select/add-select-selection-summary-item.scss.js +14 -0
  31. package/es/components/add-select/add-select-selection-summary-item.scss.js.map +1 -0
  32. package/es/components/add-select/add-select-selection-summary.d.ts +48 -0
  33. package/es/components/add-select/add-select-selection-summary.d.ts.map +1 -0
  34. package/es/components/add-select/add-select-selection-summary.js +118 -0
  35. package/es/components/add-select/add-select-selection-summary.js.map +1 -0
  36. package/es/components/add-select/add-select-selection-summary.scss.js +14 -0
  37. package/es/components/add-select/add-select-selection-summary.scss.js.map +1 -0
  38. package/es/components/add-select/add-select.scss.js +1 -1
  39. package/es/components/add-select/index.d.ts +4 -1
  40. package/es/components/add-select/index.d.ts.map +1 -1
  41. package/es/components/add-select/index.js +4 -1
  42. package/es/components/coachmark/coachmark-header.js +2 -2
  43. package/es/components/coachmark/coachmark-header.js.map +1 -1
  44. package/es/components/edit-in-place/edit-in-place.js +2 -2
  45. package/es/components/edit-in-place/edit-in-place.js.map +1 -1
  46. package/es/components/guide-banner/guide-banner.js +2 -2
  47. package/es/components/guide-banner/guide-banner.js.map +1 -1
  48. package/es/components/notification-panel/notification.js +2 -2
  49. package/es/components/notification-panel/notification.js.map +1 -1
  50. package/es/components/side-panel/side-panel.js +2 -2
  51. package/es/components/side-panel/side-panel.js.map +1 -1
  52. package/es/components/tearsheet/tearsheet.scss.js +1 -1
  53. package/es/ibm-products-utilities/src/utils/add-select/add-select-data.js.map +1 -1
  54. package/es/ibm-products-web-components/package.js +1 -1
  55. package/es-custom/components/add-select/add-select-body.js +95 -73
  56. package/es-custom/components/add-select/add-select-body.js.map +1 -1
  57. package/es-custom/components/add-select/add-select-body.scss.js +1 -1
  58. package/es-custom/components/add-select/add-select-body.scss.js.map +1 -1
  59. package/es-custom/components/add-select/add-select-column.js +217 -0
  60. package/es-custom/components/add-select/add-select-column.js.map +1 -0
  61. package/es-custom/components/add-select/add-select-column.scss.js +14 -0
  62. package/es-custom/components/add-select/add-select-column.scss.js.map +1 -0
  63. package/es-custom/components/add-select/add-select-item-panel.js +162 -0
  64. package/es-custom/components/add-select/add-select-item-panel.js.map +1 -0
  65. package/es-custom/components/add-select/add-select-item-panel.scss.js +14 -0
  66. package/es-custom/components/add-select/add-select-item-panel.scss.js.map +1 -0
  67. package/es-custom/components/add-select/add-select-row.js +143 -23
  68. package/es-custom/components/add-select/add-select-row.js.map +1 -1
  69. package/es-custom/components/add-select/add-select-row.scss.js +1 -1
  70. package/es-custom/components/add-select/add-select-row.scss.js.map +1 -1
  71. package/es-custom/components/add-select/add-select-selection-summary-item.js +279 -0
  72. package/es-custom/components/add-select/add-select-selection-summary-item.js.map +1 -0
  73. package/es-custom/components/add-select/add-select-selection-summary-item.scss.js +14 -0
  74. package/es-custom/components/add-select/add-select-selection-summary-item.scss.js.map +1 -0
  75. package/es-custom/components/add-select/add-select-selection-summary.js +118 -0
  76. package/es-custom/components/add-select/add-select-selection-summary.js.map +1 -0
  77. package/es-custom/components/add-select/add-select-selection-summary.scss.js +14 -0
  78. package/es-custom/components/add-select/add-select-selection-summary.scss.js.map +1 -0
  79. package/es-custom/components/add-select/add-select.scss.js +1 -1
  80. package/es-custom/components/add-select/index.js +4 -1
  81. package/es-custom/components/coachmark/coachmark-header.js +2 -2
  82. package/es-custom/components/coachmark/coachmark-header.js.map +1 -1
  83. package/es-custom/components/edit-in-place/edit-in-place.js +2 -2
  84. package/es-custom/components/edit-in-place/edit-in-place.js.map +1 -1
  85. package/es-custom/components/guide-banner/guide-banner.js +2 -2
  86. package/es-custom/components/guide-banner/guide-banner.js.map +1 -1
  87. package/es-custom/components/notification-panel/notification.js +2 -2
  88. package/es-custom/components/notification-panel/notification.js.map +1 -1
  89. package/es-custom/components/side-panel/side-panel.js +2 -2
  90. package/es-custom/components/side-panel/side-panel.js.map +1 -1
  91. package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
  92. package/es-custom/ibm-products-utilities/src/utils/add-select/add-select-data.js.map +1 -1
  93. package/es-custom/ibm-products-web-components/package.js +1 -1
  94. package/lib/components/add-select/add-select-body.d.ts +15 -10
  95. package/lib/components/add-select/add-select-body.d.ts.map +1 -1
  96. package/lib/components/add-select/add-select-column.d.ts +83 -0
  97. package/lib/components/add-select/add-select-column.d.ts.map +1 -0
  98. package/lib/components/add-select/add-select-item-panel.d.ts +58 -0
  99. package/lib/components/add-select/add-select-item-panel.d.ts.map +1 -0
  100. package/lib/components/add-select/add-select-row.d.ts +42 -2
  101. package/lib/components/add-select/add-select-row.d.ts.map +1 -1
  102. package/lib/components/add-select/add-select-selection-summary-item.d.ts +64 -0
  103. package/lib/components/add-select/add-select-selection-summary-item.d.ts.map +1 -0
  104. package/lib/components/add-select/add-select-selection-summary.d.ts +48 -0
  105. package/lib/components/add-select/add-select-selection-summary.d.ts.map +1 -0
  106. package/lib/components/add-select/index.d.ts +4 -1
  107. package/lib/components/add-select/index.d.ts.map +1 -1
  108. package/package.json +7 -6
  109. package/scss/components/add-select/add-select-body.scss +36 -4
  110. package/scss/components/add-select/add-select-column.scss +81 -0
  111. package/scss/components/add-select/add-select-item-panel.scss +85 -0
  112. package/scss/components/add-select/add-select-row.scss +76 -9
  113. package/scss/components/add-select/add-select-selection-summary-item.scss +227 -0
  114. package/scss/components/add-select/add-select-selection-summary.scss +58 -0
  115. package/telemetry.yml +34 -5
  116. package/es/components/add-select/add-select-content.d.ts +0 -57
  117. package/es/components/add-select/add-select-content.d.ts.map +0 -1
  118. package/es/components/add-select/add-select-content.js +0 -188
  119. package/es/components/add-select/add-select-content.js.map +0 -1
  120. package/es/components/add-select/add-select-content.scss.js +0 -14
  121. package/es/components/add-select/add-select-content.scss.js.map +0 -1
  122. package/es-custom/components/add-select/add-select-content.js +0 -188
  123. package/es-custom/components/add-select/add-select-content.js.map +0 -1
  124. package/es-custom/components/add-select/add-select-content.scss.js +0 -14
  125. package/es-custom/components/add-select/add-select-content.scss.js.map +0 -1
  126. package/lib/components/add-select/add-select-content.d.ts +0 -57
  127. package/lib/components/add-select/add-select-content.d.ts.map +0 -1
  128. package/scss/components/add-select/add-select-content.scss +0 -42
@@ -222,9 +222,15 @@
222
222
  },
223
223
  {
224
224
  "name": "item-count",
225
- "description": "Item count for display",
226
- "type": "number",
227
- "default": "0"
225
+ "description": "Item count for display. When undefined, no count badge is rendered.",
226
+ "type": "number | undefined",
227
+ "default": "\"undefined\""
228
+ },
229
+ {
230
+ "name": "hide-search",
231
+ "description": "Whether to hide the search input",
232
+ "type": "boolean",
233
+ "default": "false"
228
234
  },
229
235
  {
230
236
  "name": "path",
@@ -265,9 +271,16 @@
265
271
  {
266
272
  "name": "itemCount",
267
273
  "attribute": "item-count",
268
- "description": "Item count for display",
269
- "type": "number",
270
- "default": "0"
274
+ "description": "Item count for display. When undefined, no count badge is rendered.",
275
+ "type": "number | undefined",
276
+ "default": "\"undefined\""
277
+ },
278
+ {
279
+ "name": "hideSearch",
280
+ "attribute": "hide-search",
281
+ "description": "Whether to hide the search input",
282
+ "type": "boolean",
283
+ "default": "false"
271
284
  },
272
285
  {
273
286
  "name": "path",
@@ -284,25 +297,156 @@
284
297
  "events": [
285
298
  {
286
299
  "name": "c4p-add-select-body-search",
287
- "description": "Fired when search term changes"
300
+ "description": "Fired when search term changes; detail: { searchTerm }"
301
+ },
302
+ {
303
+ "name": "c4p-add-select-body-breadcrumb-click",
304
+ "description": "Fired when a breadcrumb link is clicked; detail: { index }"
288
305
  }
289
306
  ],
290
307
  "slots": [
291
308
  {
292
309
  "name": "default",
293
- "description": "The main content area containing c4p-add-select-content"
310
+ "description": "The main content area containing c4p-add-select-column or rows"
294
311
  },
295
312
  {
296
313
  "name": "header",
297
- "description": "Custom header content"
314
+ "description": "Replaces the entire header section"
315
+ },
316
+ {
317
+ "name": "actions",
318
+ "description": "Custom actions (filter/sort) rendered next to the search input"
319
+ },
320
+ {
321
+ "name": "sub-header-actions",
322
+ "description": "Custom content rendered after breadcrumbs and item count"
298
323
  }
299
324
  ]
300
325
  },
301
326
  {
302
- "name": "c4p-add-select-content",
303
- "path": "./src/components/add-select/add-select-content.ts",
304
- "description": "Add Select Content component - contains the list of selectable items",
327
+ "name": "c4p-add-select-column",
328
+ "path": "./src/components/add-select/add-select-column.ts",
329
+ "description": "Add Select Column component — optional column wrapper providing column-level\nsearch, title, and \"Select All\" functionality. Propagates `multi` context to\nchild rows via the `multi` property/attribute.",
330
+ "attributes": [
331
+ {
332
+ "name": "title",
333
+ "description": "Column title shown in the header",
334
+ "type": "string",
335
+ "default": "\"\""
336
+ },
337
+ {
338
+ "name": "search-label",
339
+ "description": "Label text for the column search input (accessibility)",
340
+ "type": "string",
341
+ "default": "\"Search\""
342
+ },
343
+ {
344
+ "name": "search-placeholder",
345
+ "description": "Placeholder text for the column search input",
346
+ "type": "string",
347
+ "default": "\"Search\""
348
+ },
349
+ {
350
+ "name": "hide-search",
351
+ "description": "Whether to hide the column search input",
352
+ "type": "boolean",
353
+ "default": "false"
354
+ },
355
+ {
356
+ "name": "multi",
357
+ "description": "Whether this column uses multi-selection (checkboxes) or single-selection (radio buttons)",
358
+ "type": "boolean",
359
+ "default": "false"
360
+ },
361
+ {
362
+ "name": "show-select-all",
363
+ "description": "Whether to show the \"Select All\" checkbox (only when multi is true)",
364
+ "type": "boolean",
365
+ "default": "false"
366
+ },
367
+ {
368
+ "name": "item-count",
369
+ "description": "Total number of items in the column (shown in tag badge)",
370
+ "type": "number",
371
+ "default": "0"
372
+ },
373
+ {
374
+ "name": "all-selected",
375
+ "description": "Whether all items are currently selected",
376
+ "type": "boolean",
377
+ "default": "false"
378
+ },
379
+ {
380
+ "name": "all-indeterminate",
381
+ "description": "Whether the \"Select All\" checkbox is in an indeterminate state",
382
+ "type": "boolean",
383
+ "default": "false"
384
+ }
385
+ ],
305
386
  "properties": [
387
+ {
388
+ "name": "title",
389
+ "attribute": "title",
390
+ "description": "Column title shown in the header",
391
+ "type": "string",
392
+ "default": "\"\""
393
+ },
394
+ {
395
+ "name": "searchLabel",
396
+ "attribute": "search-label",
397
+ "description": "Label text for the column search input (accessibility)",
398
+ "type": "string",
399
+ "default": "\"Search\""
400
+ },
401
+ {
402
+ "name": "searchPlaceholder",
403
+ "attribute": "search-placeholder",
404
+ "description": "Placeholder text for the column search input",
405
+ "type": "string",
406
+ "default": "\"Search\""
407
+ },
408
+ {
409
+ "name": "hideSearch",
410
+ "attribute": "hide-search",
411
+ "description": "Whether to hide the column search input",
412
+ "type": "boolean",
413
+ "default": "false"
414
+ },
415
+ {
416
+ "name": "multi",
417
+ "attribute": "multi",
418
+ "description": "Whether this column uses multi-selection (checkboxes) or single-selection (radio buttons)",
419
+ "type": "boolean",
420
+ "default": "false"
421
+ },
422
+ {
423
+ "name": "showSelectAll",
424
+ "attribute": "show-select-all",
425
+ "description": "Whether to show the \"Select All\" checkbox (only when multi is true)",
426
+ "type": "boolean",
427
+ "default": "false"
428
+ },
429
+ {
430
+ "name": "itemCount",
431
+ "attribute": "item-count",
432
+ "description": "Total number of items in the column (shown in tag badge)",
433
+ "type": "number",
434
+ "default": "0"
435
+ },
436
+ {
437
+ "name": "allSelected",
438
+ "attribute": "all-selected",
439
+ "description": "Whether all items are currently selected",
440
+ "type": "boolean",
441
+ "default": "false"
442
+ },
443
+ {
444
+ "name": "allIndeterminate",
445
+ "attribute": "all-indeterminate",
446
+ "description": "Whether the \"Select All\" checkbox is in an indeterminate state",
447
+ "type": "boolean",
448
+ "default": "false"
449
+ },
306
450
  {
307
451
  "name": "styles",
308
452
  "default": "\"styles\""
@@ -310,16 +454,108 @@
310
454
  ],
311
455
  "events": [
312
456
  {
313
- "name": "c4p-add-select-row-navigate"
457
+ "name": "c4p-add-select-column-search",
458
+ "description": "Fired when column search changes; detail: { searchTerm }"
314
459
  },
315
460
  {
316
- "name": "c4p-add-select-row-select"
461
+ "name": "c4p-add-select-column-select-all",
462
+ "description": "Fired when \"Select All\" checkbox changes; detail: { checked }"
317
463
  }
318
464
  ],
319
465
  "slots": [
320
466
  {
321
467
  "name": "default",
322
- "description": "Contains c4p-add-select-row components"
468
+ "description": "AddSelectRow elements"
469
+ },
470
+ {
471
+ "name": "actions",
472
+ "description": "Custom actions (filter/sort) placed next to column search"
473
+ }
474
+ ]
475
+ },
476
+ {
477
+ "name": "c4p-add-select-item-panel",
478
+ "path": "./src/components/add-select/add-select-item-panel.ts",
479
+ "description": "Add Select Item Panel — side panel displaying detailed information about an item.\nCSS modifier `${blockClass}__item-summary-panel--open` is added when `open` is true,\nenabling CSS-driven slide-in/out transitions.",
480
+ "attributes": [
481
+ {
482
+ "name": "title",
483
+ "description": "Panel title",
484
+ "type": "string",
485
+ "default": "\"Item details\""
486
+ },
487
+ {
488
+ "name": "open",
489
+ "description": "Controls panel visibility via CSS modifier class (enables CSS transitions)",
490
+ "type": "boolean",
491
+ "default": "false"
492
+ },
493
+ {
494
+ "name": "close-icon-description",
495
+ "description": "Accessible label for the close icon button",
496
+ "type": "string",
497
+ "default": "\"Close\""
498
+ },
499
+ {
500
+ "name": "show-close-button",
501
+ "description": "Whether to show the close button",
502
+ "type": "boolean",
503
+ "default": "true"
504
+ }
505
+ ],
506
+ "properties": [
507
+ {
508
+ "name": "title",
509
+ "attribute": "title",
510
+ "description": "Panel title",
511
+ "type": "string",
512
+ "default": "\"Item details\""
513
+ },
514
+ {
515
+ "name": "item",
516
+ "description": "Item data (set via JS property)",
517
+ "type": "AddSelectItem | null"
518
+ },
519
+ {
520
+ "name": "open",
521
+ "attribute": "open",
522
+ "description": "Controls panel visibility via CSS modifier class (enables CSS transitions)",
523
+ "type": "boolean",
524
+ "default": "false"
525
+ },
526
+ {
527
+ "name": "closeIconDescription",
528
+ "attribute": "close-icon-description",
529
+ "description": "Accessible label for the close icon button",
530
+ "type": "string",
531
+ "default": "\"Close\""
532
+ },
533
+ {
534
+ "name": "showCloseButton",
535
+ "attribute": "show-close-button",
536
+ "description": "Whether to show the close button",
537
+ "type": "boolean",
538
+ "default": "true"
539
+ },
540
+ {
541
+ "name": "styles",
542
+ "default": "\"styles\""
543
+ }
544
+ ],
545
+ "events": [
546
+ {
547
+ "name": "c4p-add-select-item-panel-close",
548
+ "description": "Fired when close icon is clicked"
549
+ }
550
+ ],
551
+ "slots": [
552
+ {
553
+ "name": "default",
554
+ "description": "Highest priority: replaces all body rendering when populated"
555
+ },
556
+ {
557
+ "name": "render-item",
558
+ "description": "Medium priority: receives item for custom rendering"
323
559
  }
324
560
  ]
325
561
  },
@@ -358,12 +594,42 @@
358
594
  "type": "boolean",
359
595
  "default": "false"
360
596
  },
597
+ {
598
+ "name": "indeterminate",
599
+ "description": "Whether the checkbox is in an indeterminate state (multi hierarchical)",
600
+ "type": "boolean",
601
+ "default": "false"
602
+ },
361
603
  {
362
604
  "name": "disabled",
363
605
  "description": "Whether the item is disabled",
364
606
  "type": "boolean",
365
607
  "default": "false"
366
608
  },
609
+ {
610
+ "name": "skeleton",
611
+ "description": "Whether to render the row as a skeleton (loading) state",
612
+ "type": "boolean",
613
+ "default": "false"
614
+ },
615
+ {
616
+ "name": "has-item-panel",
617
+ "description": "Whether to show the item details icon button",
618
+ "type": "boolean",
619
+ "default": "false"
620
+ },
621
+ {
622
+ "name": "item-panel-open",
623
+ "description": "Whether the item panel is currently open for this item",
624
+ "type": "boolean",
625
+ "default": "false"
626
+ },
627
+ {
628
+ "name": "item-panel-icon-description",
629
+ "description": "Accessible label for the item panel icon button",
630
+ "type": "string",
631
+ "default": "\"View details\""
632
+ },
367
633
  {
368
634
  "name": "has-children",
369
635
  "description": "Whether the item has children (for navigation)",
@@ -413,6 +679,13 @@
413
679
  "type": "boolean",
414
680
  "default": "false"
415
681
  },
682
+ {
683
+ "name": "indeterminate",
684
+ "attribute": "indeterminate",
685
+ "description": "Whether the checkbox is in an indeterminate state (multi hierarchical)",
686
+ "type": "boolean",
687
+ "default": "false"
688
+ },
416
689
  {
417
690
  "name": "disabled",
418
691
  "attribute": "disabled",
@@ -420,6 +693,34 @@
420
693
  "type": "boolean",
421
694
  "default": "false"
422
695
  },
696
+ {
697
+ "name": "skeleton",
698
+ "attribute": "skeleton",
699
+ "description": "Whether to render the row as a skeleton (loading) state",
700
+ "type": "boolean",
701
+ "default": "false"
702
+ },
703
+ {
704
+ "name": "hasItemPanel",
705
+ "attribute": "has-item-panel",
706
+ "description": "Whether to show the item details icon button",
707
+ "type": "boolean",
708
+ "default": "false"
709
+ },
710
+ {
711
+ "name": "itemPanelOpen",
712
+ "attribute": "item-panel-open",
713
+ "description": "Whether the item panel is currently open for this item",
714
+ "type": "boolean",
715
+ "default": "false"
716
+ },
717
+ {
718
+ "name": "itemPanelIconDescription",
719
+ "attribute": "item-panel-icon-description",
720
+ "description": "Accessible label for the item panel icon button",
721
+ "type": "string",
722
+ "default": "\"View details\""
723
+ },
423
724
  {
424
725
  "name": "hasChildren",
425
726
  "attribute": "has-children",
@@ -447,6 +748,10 @@
447
748
  {
448
749
  "name": "c4p-add-select-row-navigate",
449
750
  "description": "Fired when navigating to children"
751
+ },
752
+ {
753
+ "name": "c4p-add-select-row-item-panel-click",
754
+ "description": "Fired when the item panel icon button is clicked"
450
755
  }
451
756
  ],
452
757
  "slots": [
@@ -464,6 +769,176 @@
464
769
  }
465
770
  ]
466
771
  },
772
+ {
773
+ "name": "c4p-add-select-selection-summary-item",
774
+ "path": "./src/components/add-select/add-select-selection-summary-item.ts",
775
+ "description": "Add Select Selection Summary Item — individual selected item display.",
776
+ "attributes": [
777
+ {
778
+ "name": "use-accordion",
779
+ "description": "Use accordion pattern for display",
780
+ "type": "boolean",
781
+ "default": "false"
782
+ },
783
+ {
784
+ "name": "remove-button-label",
785
+ "description": "Accessible label for the remove button",
786
+ "type": "string",
787
+ "default": "\"Remove item\""
788
+ },
789
+ {
790
+ "name": "hide-remove-button",
791
+ "description": "When true, the remove button is not rendered",
792
+ "type": "boolean",
793
+ "default": "false"
794
+ }
795
+ ],
796
+ "properties": [
797
+ {
798
+ "name": "item",
799
+ "description": "Item data (set via JS property)",
800
+ "type": "AddSelectItem | null"
801
+ },
802
+ {
803
+ "name": "useAccordion",
804
+ "attribute": "use-accordion",
805
+ "description": "Use accordion pattern for display",
806
+ "type": "boolean",
807
+ "default": "false"
808
+ },
809
+ {
810
+ "name": "removeButtonLabel",
811
+ "attribute": "remove-button-label",
812
+ "description": "Accessible label for the remove button",
813
+ "type": "string",
814
+ "default": "\"Remove item\""
815
+ },
816
+ {
817
+ "name": "hideRemoveButton",
818
+ "attribute": "hide-remove-button",
819
+ "description": "When true, the remove button is not rendered",
820
+ "type": "boolean",
821
+ "default": "false"
822
+ },
823
+ {
824
+ "name": "styles",
825
+ "default": "\"styles\""
826
+ }
827
+ ],
828
+ "events": [
829
+ {
830
+ "name": "c4p-add-select-selection-summary-item-remove",
831
+ "description": "Fired when remove button clicked; detail: { itemId }"
832
+ }
833
+ ],
834
+ "slots": [
835
+ {
836
+ "name": "default",
837
+ "description": "Highest priority: replaces all rendering when populated"
838
+ },
839
+ {
840
+ "name": "render-item",
841
+ "description": "Custom full-row renderer; replaces title/subtitle/body but keeps remove button (second priority after default slot)"
842
+ },
843
+ {
844
+ "name": "accordion-title",
845
+ "description": "Custom accordion title (used when use-accordion is true)"
846
+ },
847
+ {
848
+ "name": "accordion-body",
849
+ "description": "Custom accordion body (used when use-accordion is true)"
850
+ }
851
+ ]
852
+ },
853
+ {
854
+ "name": "c4p-add-select-selection-summary",
855
+ "path": "./src/components/add-select/add-select-selection-summary.ts",
856
+ "description": "Add Select Selection Summary — displays the list of selected items.",
857
+ "attributes": [
858
+ {
859
+ "name": "title",
860
+ "description": "Panel title",
861
+ "type": "string",
862
+ "default": "\"Selected items\""
863
+ },
864
+ {
865
+ "name": "selected-item-count",
866
+ "description": "Number of selected items — shown as a badge next to the title when provided.\nBadge is hidden when this is omitted/undefined.",
867
+ "type": "number | undefined",
868
+ "default": "\"undefined\""
869
+ },
870
+ {
871
+ "name": "show-edit-icon",
872
+ "description": "Show edit icon next to title",
873
+ "type": "boolean",
874
+ "default": "false"
875
+ },
876
+ {
877
+ "name": "edit-icon-description",
878
+ "description": "Accessible label for the edit icon button",
879
+ "type": "string",
880
+ "default": "\"Edit selections\""
881
+ }
882
+ ],
883
+ "properties": [
884
+ {
885
+ "name": "title",
886
+ "attribute": "title",
887
+ "description": "Panel title",
888
+ "type": "string",
889
+ "default": "\"Selected items\""
890
+ },
891
+ {
892
+ "name": "selectedItemCount",
893
+ "attribute": "selected-item-count",
894
+ "description": "Number of selected items — shown as a badge next to the title when provided.\nBadge is hidden when this is omitted/undefined.",
895
+ "type": "number | undefined",
896
+ "default": "\"undefined\""
897
+ },
898
+ {
899
+ "name": "showEditIcon",
900
+ "attribute": "show-edit-icon",
901
+ "description": "Show edit icon next to title",
902
+ "type": "boolean",
903
+ "default": "false"
904
+ },
905
+ {
906
+ "name": "editIconDescription",
907
+ "attribute": "edit-icon-description",
908
+ "description": "Accessible label for the edit icon button",
909
+ "type": "string",
910
+ "default": "\"Edit selections\""
911
+ },
912
+ {
913
+ "name": "styles",
914
+ "default": "\"styles\""
915
+ }
916
+ ],
917
+ "events": [
918
+ {
919
+ "name": "c4p-add-select-selection-summary-edit",
920
+ "description": "Fired when edit icon is clicked"
921
+ }
922
+ ],
923
+ "slots": [
924
+ {
925
+ "name": "default",
926
+ "description": "SelectionSummaryItem components or custom body content"
927
+ },
928
+ {
929
+ "name": "header",
930
+ "description": "Replaces the entire header section"
931
+ },
932
+ {
933
+ "name": "header-actions",
934
+ "description": "Custom actions alongside the edit icon"
935
+ },
936
+ {
937
+ "name": "empty-state",
938
+ "description": "Shown when selectedItemCount is 0 or not set"
939
+ }
940
+ ]
941
+ },
467
942
  {
468
943
  "name": "c4p-add-select",
469
944
  "path": "./src/components/add-select/add-select.ts",
@@ -3755,15 +4230,15 @@
3755
4230
  }
3756
4231
  ],
3757
4232
  "properties": [
4233
+ {
4234
+ "name": "styles",
4235
+ "default": "\"styles\""
4236
+ },
3758
4237
  {
3759
4238
  "name": "tearsheetType",
3760
4239
  "attribute": "tearsheet-type",
3761
4240
  "type": "string",
3762
4241
  "default": "\"wide\""
3763
- },
3764
- {
3765
- "name": "styles",
3766
- "default": "\"styles\""
3767
4242
  }
3768
4243
  ]
3769
4244
  },
@@ -15,16 +15,14 @@ import '@carbon/web-components/es/components/link/index.js';
15
15
  /**
16
16
  * Add Select Body component - contains the main content area
17
17
  * @element c4p-add-select-body
18
- * @slot default - The main content area containing c4p-add-select-content
19
- * @slot header - Custom header content
20
- * @fires c4p-add-select-body-search - Fired when search term changes
18
+ * @slot default - The main content area containing c4p-add-select-column or rows
19
+ * @slot header - Replaces the entire header section
20
+ * @slot actions - Custom actions (filter/sort) rendered next to the search input
21
+ * @slot sub-header-actions - Custom content rendered after breadcrumbs and item count
22
+ * @fires c4p-add-select-body-search - Fired when search term changes; detail: { searchTerm }
23
+ * @fires c4p-add-select-body-breadcrumb-click - Fired when a breadcrumb link is clicked; detail: { index }
21
24
  */
22
25
  declare class CDSAddSelectBody extends LitElement {
23
- /**
24
- * Whether this is a multi-select (inherited from parent c4p-add-select)
25
- * @private
26
- */
27
- private get _multi();
28
26
  /**
29
27
  * Label for items section
30
28
  */
@@ -52,9 +50,13 @@ declare class CDSAddSelectBody extends LitElement {
52
50
  */
53
51
  private _searchTerm;
54
52
  /**
55
- * Item count for display
53
+ * Item count for display. When undefined, no count badge is rendered.
54
+ */
55
+ itemCount: number | undefined;
56
+ /**
57
+ * Whether to hide the search input
56
58
  */
57
- itemCount: number;
59
+ hideSearch: boolean;
58
60
  /**
59
61
  * Navigation path for breadcrumbs
60
62
  */
@@ -66,6 +68,9 @@ declare class CDSAddSelectBody extends LitElement {
66
68
  * Handle search input
67
69
  */
68
70
  private _handleSearch;
71
+ /** Tracks whether the header slot has been filled by the consumer */
72
+ private _hasHeaderSlot;
73
+ private _handleHeaderSlotChange;
69
74
  render(): import("lit-html").TemplateResult<1>;
70
75
  /**
71
76
  * The name of the custom event fired when search term changes
@@ -1 +1 @@
1
- {"version":3,"file":"add-select-body.d.ts","sourceRoot":"","sources":["../../../src/components/add-select/add-select-body.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAIvC,OAAO,sDAAsD,CAAC;AAC9D,OAAO,sDAAsD,CAAC;AAC9D,OAAO,mDAAmD,CAAC;AAC3D,OAAO,0DAA0D,CAAC;AAClE,OAAO,oDAAoD,CAAC;AAM5D;;;;;;GAMG;AACH,cACM,gBAAiB,SAAQ,UAAU;IACvC;;;OAGG;IACH,OAAO,KAAK,MAAM,GAGjB;IAED;;OAEG;IAEH,UAAU,SAAM;IAEhB;;OAEG;IAEH,iBAAiB,SAAM;IAEvB;;OAEG;IAEH,uBAAuB,SAAY;IAEnC;;OAEG;IAIH;;OAEG;IAIH;;OAEG;IAEH,kBAAkB,SAAoB;IAEtC;;OAEG;IAEH,OAAO,CAAC,WAAW,CAAM;IAEzB;;OAEG;IAEH,SAAS,SAAK;IAEd;;OAEG;IAEH,IAAI,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAM;IAEhD;;OAEG;IACH,OAAO,CAAC,aAAa;IAgBrB,MAAM;IA2GN;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED;;OAEG;IACH,MAAM,KAAK,oBAAoB,WAE9B;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"add-select-body.d.ts","sourceRoot":"","sources":["../../../src/components/add-select/add-select-body.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AAGhD,OAAO,sDAAsD,CAAC;AAC9D,OAAO,sDAAsD,CAAC;AAC9D,OAAO,mDAAmD,CAAC;AAC3D,OAAO,0DAA0D,CAAC;AAClE,OAAO,oDAAoD,CAAC;AAM5D;;;;;;;;;GASG;AACH,cACM,gBAAiB,SAAQ,UAAU;IACvC;;OAEG;IAEH,UAAU,SAAM;IAEhB;;OAEG;IAEH,iBAAiB,SAAM;IAEvB;;OAEG;IAEH,uBAAuB,SAAY;IAEnC;;OAEG;IAIH;;OAEG;IAIH;;OAEG;IAEH,kBAAkB,SAAoB;IAEtC;;OAEG;IAEH,OAAO,CAAC,WAAW,CAAM;IAEzB;;OAEG;IAEH,SAAS,EAAE,MAAM,GAAG,SAAS,CAAa;IAE1C;;OAEG;IAEH,UAAU,UAAS;IAEnB;;OAEG;IAEH,IAAI,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAM;IAEhD;;OAEG;IACH,OAAO,CAAC,aAAa;IAgBrB,qEAAqE;IAErE,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,uBAAuB;IAK/B,MAAM;IA4IN;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED;;OAEG;IACH,MAAM,KAAK,oBAAoB,WAE9B;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,gBAAgB,CAAC"}