@kyndryl-design-system/shidoka-applications 2.97.4 → 2.97.6

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 (122) hide show
  1. package/common/helpers/swiper.js +1 -1
  2. package/components/ai/sourcesFeedback/aiSourcesFeedback.js +1 -1
  3. package/components/ai/sourcesFeedback/index.js +1 -1
  4. package/components/global/header/headerCategories.js +1 -1
  5. package/components/global/header/headerFlyout.js +1 -1
  6. package/components/global/header/headerFlyouts.js +1 -1
  7. package/components/global/header/headerLink.js +1 -1
  8. package/components/global/header/headerNav.js +1 -1
  9. package/components/global/header/index.js +1 -1
  10. package/components/global/localNav/index.js +1 -1
  11. package/components/global/localNav/localNav.js +1 -1
  12. package/components/global/localNav/localNavLink.js +1 -1
  13. package/components/global/workspaceSwitcher/index.js +1 -1
  14. package/components/global/workspaceSwitcher/workspaceSwitcher.d.ts +9 -0
  15. package/components/global/workspaceSwitcher/workspaceSwitcher.d.ts.map +1 -1
  16. package/components/global/workspaceSwitcher/workspaceSwitcher.js +25 -13
  17. package/components/global/workspaceSwitcher/workspaceSwitcher.js.map +1 -1
  18. package/components/global/workspaceSwitcher/workspaceSwitcherMenuItem.js +1 -1
  19. package/components/reusable/accordion/accordionItem.d.ts +7 -0
  20. package/components/reusable/accordion/accordionItem.d.ts.map +1 -1
  21. package/components/reusable/accordion/accordionItem.js +68 -15
  22. package/components/reusable/accordion/accordionItem.js.map +1 -1
  23. package/components/reusable/accordion/index.js +1 -1
  24. package/components/reusable/badge/badge.js +1 -1
  25. package/components/reusable/badge/index.js +1 -1
  26. package/components/reusable/blockCodeView/blockCodeView.js +1 -1
  27. package/components/reusable/blockCodeView/index.js +1 -1
  28. package/components/reusable/buttonGroup/buttonGroup.js +1 -1
  29. package/components/reusable/buttonGroup/index.js +1 -1
  30. package/components/reusable/card/card.js +1 -1
  31. package/components/reusable/card/index.js +1 -1
  32. package/components/reusable/checkbox/checkboxGroup.js +1 -1
  33. package/components/reusable/checkbox/index.js +1 -1
  34. package/components/reusable/colorInput/colorInput.js +1 -1
  35. package/components/reusable/colorInput/index.js +1 -1
  36. package/components/reusable/datePicker/datepicker.js +1 -1
  37. package/components/reusable/datePicker/index.js +1 -1
  38. package/components/reusable/daterangepicker/daterangepicker.js +1 -1
  39. package/components/reusable/daterangepicker/index.js +1 -1
  40. package/components/reusable/dropdown/dropdown.js +4 -1
  41. package/components/reusable/dropdown/dropdown.js.map +1 -1
  42. package/components/reusable/dropdown/dropdownOption.js +1 -1
  43. package/components/reusable/dropdown/enhancedDropdownOption.js +1 -1
  44. package/components/reusable/dropdown/index.js +1 -1
  45. package/components/reusable/fileUploader/fileUploader.js +1 -1
  46. package/components/reusable/fileUploader/fileUploaderListContainer.js +1 -1
  47. package/components/reusable/fileUploader/index.js +1 -1
  48. package/components/reusable/iconSelector/iconSelector.js +1 -1
  49. package/components/reusable/iconSelector/index.js +1 -1
  50. package/components/reusable/inlineConfirm/index.js +1 -1
  51. package/components/reusable/inlineConfirm/inlineConfirm.js +1 -1
  52. package/components/reusable/loaders/aiLoader.js +1 -1
  53. package/components/reusable/loaders/index.js +1 -1
  54. package/components/reusable/loaders/inline.js +1 -1
  55. package/components/reusable/loaders/spinner.js +1 -1
  56. package/components/reusable/modal/index.js +1 -1
  57. package/components/reusable/modal/modal.js +1 -1
  58. package/components/reusable/multiInputField/index.js +1 -1
  59. package/components/reusable/multiInputField/multiInputField.js +1 -1
  60. package/components/reusable/notification/index.js +1 -1
  61. package/components/reusable/notification/notification.js +1 -1
  62. package/components/reusable/numberInput/index.js +1 -1
  63. package/components/reusable/numberInput/numberInput.js +1 -1
  64. package/components/reusable/overflowMenu/index.js +1 -1
  65. package/components/reusable/overflowMenu/overflowMenu.js +1 -1
  66. package/components/reusable/overflowMenu/overflowMenuItem.js +1 -1
  67. package/components/reusable/pagetitle/index.js +1 -1
  68. package/components/reusable/pagetitle/pageTitle.js +1 -1
  69. package/components/reusable/pagetitle/pageTitleOption.js +1 -1
  70. package/components/reusable/pagination/Pagination.js +1 -1
  71. package/components/reusable/pagination/index.js +1 -1
  72. package/components/reusable/pagination/pagination-navigation-buttons.js +1 -1
  73. package/components/reusable/pagination/pagination-page-size-dropdown.js +1 -1
  74. package/components/reusable/popover/index.js +1 -1
  75. package/components/reusable/popover/popover.js +1 -1
  76. package/components/reusable/progressBar/index.js +1 -1
  77. package/components/reusable/progressBar/progressBar.js +1 -1
  78. package/components/reusable/queryBuilder/index.js +1 -1
  79. package/components/reusable/queryBuilder/queryBuilder.js +1 -1
  80. package/components/reusable/queryBuilder/queryBuilderGroup.js +1 -1
  81. package/components/reusable/queryBuilder/queryBuilderRule.js +1 -1
  82. package/components/reusable/radioButton/index.js +1 -1
  83. package/components/reusable/radioButton/radioButtonGroup.js +1 -1
  84. package/components/reusable/search/index.js +1 -1
  85. package/components/reusable/search/search.js +1 -1
  86. package/components/reusable/sideDrawer/index.js +1 -1
  87. package/components/reusable/sideDrawer/sideDrawer.js +1 -1
  88. package/components/reusable/sliderInput/index.js +1 -1
  89. package/components/reusable/sliderInput/sliderInput.js +1 -1
  90. package/components/reusable/splitButton/index.js +1 -1
  91. package/components/reusable/splitButton/splitButton.js +1 -1
  92. package/components/reusable/stepper/index.js +1 -1
  93. package/components/reusable/stepper/stepper.js +1 -1
  94. package/components/reusable/stepper/stepperItem.js +1 -1
  95. package/components/reusable/table/index.js +1 -1
  96. package/components/reusable/table/table-body.js +1 -1
  97. package/components/reusable/table/table-header-row.js +1 -1
  98. package/components/reusable/table/table-header.js +1 -1
  99. package/components/reusable/table/table-row.js +1 -1
  100. package/components/reusable/table/table.skeleton.js +1 -1
  101. package/components/reusable/tag/index.js +1 -1
  102. package/components/reusable/tag/tag.js +1 -1
  103. package/components/reusable/tag/tagGroup.js +1 -1
  104. package/components/reusable/textArea/index.js +1 -1
  105. package/components/reusable/textArea/textArea.js +1 -1
  106. package/components/reusable/textInput/index.js +1 -1
  107. package/components/reusable/textInput/textInput.js +1 -1
  108. package/components/reusable/timepicker/index.js +1 -1
  109. package/components/reusable/timepicker/timepicker.js +1 -1
  110. package/components/reusable/tooltip/index.js +1 -1
  111. package/components/reusable/tooltip/tooltip.js +1 -1
  112. package/components/reusable/widget/index.js +1 -1
  113. package/components/reusable/widget/widget.js +1 -1
  114. package/components/reusable/widget/widgetDragHandle.js +1 -1
  115. package/index.js +1 -1
  116. package/package.json +1 -1
  117. package/{table.skeleton-qPvO0Hq3.js → table.skeleton-s1k_3Qt4.js} +2 -2
  118. package/{table.skeleton-qPvO0Hq3.js.map → table.skeleton-s1k_3Qt4.js.map} +1 -1
  119. package/vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js +2 -0
  120. package/vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js.map +1 -0
  121. package/vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js +0 -2
  122. package/vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{a as e}from"../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";const n={slidesPerView:1.25,centeredSlides:!0,spaceBetween:16,breakpoints:{672:{slidesPerView:"auto",spaceBetween:24}},keyboard:{enabled:!0},mousewheel:{enabled:!0,forceToAxis:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},scrollbar:{el:".swiper-scrollbar",draggable:!0},pagination:{el:".swiper-pagination",clickable:!0,type:"fraction"},on:{init:function(n){n.navigation.prevEl.innerHTML=e,n.navigation.nextEl.innerHTML=e,t(n)},transitionEnd:function(e){t(e)},scrollbarDragEnd:function(e){t(e)}}},t=e=>{const n=e.el.getBoundingClientRect();e.slides.forEach((e=>{const t=e.getBoundingClientRect();t.left<n.left||t.right>n.width+n.left?(e.classList.add("off-screen"),e.setAttribute("aria-disabled","true")):(e.classList.remove("off-screen"),e.setAttribute("aria-disabled","false"))}))};export{n as SwiperConfig};
1
+ import{a as e}from"../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";const n={slidesPerView:1.25,centeredSlides:!0,spaceBetween:16,breakpoints:{672:{slidesPerView:"auto",spaceBetween:24}},keyboard:{enabled:!0},mousewheel:{enabled:!0,forceToAxis:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},scrollbar:{el:".swiper-scrollbar",draggable:!0},pagination:{el:".swiper-pagination",clickable:!0,type:"fraction"},on:{init:function(n){n.navigation.prevEl.innerHTML=e,n.navigation.nextEl.innerHTML=e,t(n)},transitionEnd:function(e){t(e)},scrollbarDragEnd:function(e){t(e)}}},t=e=>{const n=e.el.getBoundingClientRect();e.slides.forEach((e=>{const t=e.getBoundingClientRect();t.left<n.left||t.right>n.width+n.left?(e.classList.add("off-screen"),e.setAttribute("aria-disabled","true")):(e.classList.remove("off-screen"),e.setAttribute("aria-disabled","false"))}))};export{n as SwiperConfig};
2
2
  //# sourceMappingURL=swiper.js.map
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as e,__esDecorate as t,__runInitializers as s,__classPrivateFieldGet as i,__classPrivateFieldSet as a}from"tslib";import{css as n,LitElement as l,unsafeCSS as o,html as c}from"lit";import{customElement as d,property as r,state as h,queryAssignedElements as u}from"lit/decorators.js";import{deepmerge as p}from"deepmerge-ts";import{classMap as k}from"lit-html/directives/class-map.js";import{unsafeSVG as b}from"lit/directives/unsafe-svg.js";import{R as m,S as f,T as v,U as g,k as y,c as C}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";import"../../reusable/link/link.js";import"../../reusable/card/card.js";import"../../reusable/card/vitalCard.skeleton.js";import"../../reusable/card/informationalCard.skeleton.js";import"../../reusable/button/button.js";import"../../reusable/link/defs.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"../../reusable/inlineConfirm/inlineConfirm.js";import"lit-html/directives/unsafe-svg.js";import"../../reusable/loaders/skeleton.js";import"../../../cardSample-BCIwY1rJ.js";import"../../../common/helpers/helpers.js";import"../../reusable/button/defs.js";var _=n`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as s,__classPrivateFieldGet as i,__classPrivateFieldSet as a}from"tslib";import{css as n,LitElement as l,unsafeCSS as o,html as c}from"lit";import{customElement as d,property as r,state as h,queryAssignedElements as u}from"lit/decorators.js";import{deepmerge as p}from"deepmerge-ts";import{classMap as k}from"lit-html/directives/class-map.js";import{unsafeSVG as b}from"lit/directives/unsafe-svg.js";import{R as m,S as f,T as v,U as g,k as y,c as C}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";import"../../reusable/link/link.js";import"../../reusable/card/card.js";import"../../reusable/card/vitalCard.skeleton.js";import"../../reusable/card/informationalCard.skeleton.js";import"../../reusable/button/button.js";import"../../reusable/link/defs.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"../../reusable/inlineConfirm/inlineConfirm.js";import"lit-html/directives/unsafe-svg.js";import"../../reusable/loaders/skeleton.js";import"../../../cardSample-BCIwY1rJ.js";import"../../../common/helpers/helpers.js";import"../../reusable/button/defs.js";var _=n`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,2 +1,2 @@
1
- export{AISourcesFeedback}from"./aiSourcesFeedback.js";import"tslib";import"lit";import"lit/decorators.js";import"deepmerge-ts";import"lit-html/directives/class-map.js";import"lit/directives/unsafe-svg.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";import"../../reusable/link/link.js";import"../../reusable/link/defs.js";import"../../reusable/card/card.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"../../reusable/inlineConfirm/inlineConfirm.js";import"lit-html/directives/unsafe-svg.js";import"../../reusable/button/button.js";import"../../../common/helpers/helpers.js";import"../../reusable/button/defs.js";import"../../reusable/card/vitalCard.skeleton.js";import"../../reusable/loaders/skeleton.js";import"../../../cardSample-BCIwY1rJ.js";import"../../reusable/card/informationalCard.skeleton.js";
1
+ export{AISourcesFeedback}from"./aiSourcesFeedback.js";import"tslib";import"lit";import"lit/decorators.js";import"deepmerge-ts";import"lit-html/directives/class-map.js";import"lit/directives/unsafe-svg.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";import"../../reusable/link/link.js";import"../../reusable/link/defs.js";import"../../reusable/card/card.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"../../reusable/inlineConfirm/inlineConfirm.js";import"lit-html/directives/unsafe-svg.js";import"../../reusable/button/button.js";import"../../../common/helpers/helpers.js";import"../../reusable/button/defs.js";import"../../reusable/card/vitalCard.skeleton.js";import"../../reusable/loaders/skeleton.js";import"../../../cardSample-BCIwY1rJ.js";import"../../reusable/card/informationalCard.skeleton.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as o}from"tslib";import{unsafeSVG as n}from"lit-html/directives/unsafe-svg.js";import{unsafeHTML as r}from"lit-html/directives/unsafe-html.js";import{css as s,LitElement as d,unsafeCSS as l,html as h}from"lit";import{customElement as c,property as u,state as m}from"lit/decorators.js";import"./headerCategory.js";import"../../reusable/button/button.js";import"./headerLink.js";import{h as g,d as y,f as v}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";import{ifDefined as p}from"lit/directives/if-defined.js";import{debounce as w}from"../../../common/helpers/helpers.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";import"lit/directives/class-map.js";import"lit/directives/style-map.js";import"../../reusable/textInput/textInput.js";import"deepmerge-ts";import"../../../common/mixins/form-input.js";var k=s`@charset "UTF-8";
1
+ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as o}from"tslib";import{unsafeSVG as n}from"lit-html/directives/unsafe-svg.js";import{unsafeHTML as r}from"lit-html/directives/unsafe-html.js";import{css as s,LitElement as d,unsafeCSS as l,html as h}from"lit";import{customElement as c,property as u,state as m}from"lit/decorators.js";import"./headerCategory.js";import"../../reusable/button/button.js";import"./headerLink.js";import{h as g,d as y,f as v}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";import{ifDefined as p}from"lit/directives/if-defined.js";import{debounce as w}from"../../../common/helpers/helpers.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";import"lit/directives/class-map.js";import"lit/directives/style-map.js";import"../../reusable/textInput/textInput.js";import"deepmerge-ts";import"../../../common/mixins/form-input.js";var k=s`@charset "UTF-8";
2
2
  *,
3
3
  *::before,
4
4
  *::after {
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as o}from"tslib";import{unsafeSVG as n}from"lit-html/directives/unsafe-svg.js";import{css as s,LitElement as l,unsafeCSS as r,html as d}from"lit";import{customElement as m,state as c,property as h,queryAssignedElements as u}from"lit/decorators.js";import{classMap as b}from"lit/directives/class-map.js";import"../../reusable/link/link.js";import{LINK_TARGETS as p}from"../../reusable/link/defs.js";import{d as v,f as g,i as k,j as y,l as f}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";import"lit-html/directives/class-map.js";var _=s`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as o}from"tslib";import{unsafeSVG as n}from"lit-html/directives/unsafe-svg.js";import{css as s,LitElement as l,unsafeCSS as r,html as d}from"lit";import{customElement as m,state as c,property as h,queryAssignedElements as u}from"lit/decorators.js";import{classMap as b}from"lit/directives/class-map.js";import"../../reusable/link/link.js";import{LINK_TARGETS as p}from"../../reusable/link/defs.js";import{d as v,f as g,i as k,j as y,l as f}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";import"lit-html/directives/class-map.js";var _=s`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as e,__esDecorate as t,__runInitializers as o,__classPrivateFieldGet as i,__classPrivateFieldSet as n}from"tslib";import{unsafeSVG as r}from"lit-html/directives/unsafe-svg.js";import{css as a,LitElement as l,unsafeCSS as d,html as s}from"lit";import{customElement as c,property as u}from"lit/decorators.js";import{querySelectorAllDeep as m}from"query-selector-shadow-dom";import{o as p}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";var g=a`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as o,__classPrivateFieldGet as i,__classPrivateFieldSet as n}from"tslib";import{unsafeSVG as r}from"lit-html/directives/unsafe-svg.js";import{css as a,LitElement as l,unsafeCSS as d,html as s}from"lit";import{customElement as c,property as u}from"lit/decorators.js";import{querySelectorAllDeep as m}from"query-selector-shadow-dom";import{o as p}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";var g=a`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as n,__classPrivateFieldSet as a}from"tslib";import{unsafeSVG as o}from"lit-html/directives/unsafe-svg.js";import{css as s,LitElement as r,unsafeCSS as l,html as h}from"lit";import{customElement as d,property as c,state as u,queryAssignedElements as m}from"lit/decorators.js";import{classMap as p}from"lit/directives/class-map.js";import{styleMap as v}from"lit/directives/style-map.js";import{ifDefined as k}from"lit/directives/if-defined.js";import{debounce as g}from"../../../common/helpers/helpers.js";import"../../reusable/textInput/textInput.js";import{d as f,f as y,g as b}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";import"deepmerge-ts";import"../../reusable/button/button.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";import"../../../common/mixins/form-input.js";var x=s`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as n,__classPrivateFieldSet as a}from"tslib";import{unsafeSVG as o}from"lit-html/directives/unsafe-svg.js";import{css as s,LitElement as r,unsafeCSS as l,html as h}from"lit";import{customElement as d,property as c,state as u,queryAssignedElements as m}from"lit/decorators.js";import{classMap as p}from"lit/directives/class-map.js";import{styleMap as v}from"lit/directives/style-map.js";import{ifDefined as k}from"lit/directives/if-defined.js";import{debounce as g}from"../../../common/helpers/helpers.js";import"../../reusable/textInput/textInput.js";import{d as f,f as y,g as b}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";import"deepmerge-ts";import"../../reusable/button/button.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";import"../../../common/mixins/form-input.js";var x=s`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as o,__classPrivateFieldSet as n}from"tslib";import{unsafeSVG as a}from"lit-html/directives/unsafe-svg.js";import{css as r,LitElement as s,unsafeCSS as l,html as d}from"lit";import{customElement as c,state as u,property as p}from"lit/decorators.js";import{classMap as h}from"lit/directives/class-map.js";import{querySelectorAllDeep as m,querySelectorDeep as g}from"query-selector-shadow-dom";import{b as k,m as v}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";var b=r`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as o,__classPrivateFieldSet as n}from"tslib";import{unsafeSVG as a}from"lit-html/directives/unsafe-svg.js";import{css as r,LitElement as s,unsafeCSS as l,html as d}from"lit";import{customElement as c,state as u,property as p}from"lit/decorators.js";import{classMap as h}from"lit/directives/class-map.js";import{querySelectorAllDeep as m,querySelectorDeep as g}from"query-selector-shadow-dom";import{b as k,m as v}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";var b=r`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,2 +1,2 @@
1
- export{Header}from"./header.js";export{HeaderNav}from"./headerNav.js";export{HeaderLink}from"./headerLink.js";export{HeaderCategories}from"./headerCategories.js";export{HeaderCategory}from"./headerCategory.js";export{HeaderDivider}from"./headerDivider.js";export{HeaderFlyouts}from"./headerFlyouts.js";export{HeaderFlyout}from"./headerFlyout.js";export{HeaderUserProfile}from"./headerUserProfile.js";export{HeaderPanelLink}from"./headerPanelLink.js";export{HeaderNotificationPanel}from"./headerNotificationPanel.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"lit-html/directives/unsafe-html.js";import"../../../common/helpers/helpers.js";import"../../../vendor/@kyndryl-design-system/shidoka-foundation-7uii0Jz8.js";import"lit-html/directives/unsafe-svg.js";import"query-selector-shadow-dom";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";import"lit/directives/style-map.js";import"lit/directives/if-defined.js";import"../../reusable/textInput/textInput.js";import"deepmerge-ts";import"../../reusable/button/button.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";import"../../../common/mixins/form-input.js";import"../../reusable/link/link.js";import"../../reusable/link/defs.js";
1
+ export{Header}from"./header.js";export{HeaderNav}from"./headerNav.js";export{HeaderLink}from"./headerLink.js";export{HeaderCategories}from"./headerCategories.js";export{HeaderCategory}from"./headerCategory.js";export{HeaderDivider}from"./headerDivider.js";export{HeaderFlyouts}from"./headerFlyouts.js";export{HeaderFlyout}from"./headerFlyout.js";export{HeaderUserProfile}from"./headerUserProfile.js";export{HeaderPanelLink}from"./headerPanelLink.js";export{HeaderNotificationPanel}from"./headerNotificationPanel.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"lit-html/directives/unsafe-html.js";import"../../../common/helpers/helpers.js";import"../../../vendor/@kyndryl-design-system/shidoka-foundation-7uii0Jz8.js";import"lit-html/directives/unsafe-svg.js";import"query-selector-shadow-dom";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";import"lit/directives/style-map.js";import"lit/directives/if-defined.js";import"../../reusable/textInput/textInput.js";import"deepmerge-ts";import"../../reusable/button/button.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";import"../../../common/mixins/form-input.js";import"../../reusable/link/link.js";import"../../reusable/link/defs.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export{LocalNav}from"./localNav.js";export{LocalNavLink}from"./localNavLink.js";export{LocalNavDivider}from"./localNavDivider.js";import"tslib";import"lit-html/directives/unsafe-svg.js";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"deepmerge-ts";import"../../../common/helpers/helpers.js";import"../../reusable/button/button.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";
1
+ export{LocalNav}from"./localNav.js";export{LocalNavLink}from"./localNavLink.js";export{LocalNavDivider}from"./localNavDivider.js";import"tslib";import"lit-html/directives/unsafe-svg.js";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"deepmerge-ts";import"../../../common/helpers/helpers.js";import"../../reusable/button/button.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as n,__classPrivateFieldSet as a}from"tslib";import{unsafeSVG as s}from"lit-html/directives/unsafe-svg.js";import{css as o,LitElement as d,unsafeCSS as l,html as r}from"lit";import{customElement as c,property as h,state as p,queryAssignedElements as m,query as v}from"lit/decorators.js";import{classMap as g}from"lit/directives/class-map.js";import{deepmerge as u}from"deepmerge-ts";import{debounce as k}from"../../../common/helpers/helpers.js";import"../../reusable/button/button.js";import{k as x,p as b}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";var _=o`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as n,__classPrivateFieldSet as a}from"tslib";import{unsafeSVG as s}from"lit-html/directives/unsafe-svg.js";import{css as o,LitElement as d,unsafeCSS as l,html as r}from"lit";import{customElement as c,property as h,state as p,queryAssignedElements as m,query as v}from"lit/decorators.js";import{classMap as g}from"lit/directives/class-map.js";import{deepmerge as u}from"deepmerge-ts";import{debounce as k}from"../../../common/helpers/helpers.js";import"../../reusable/button/button.js";import{k as x,p as b}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";var _=o`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as n}from"tslib";import{unsafeSVG as s}from"lit-html/directives/unsafe-svg.js";import{css as d,LitElement as o,unsafeCSS as l,html as r}from"lit";import{customElement as c,property as h,state as p,queryAssignedElements as v}from"lit/decorators.js";import{classMap as m}from"lit/directives/class-map.js";import{k as u,f as k}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";var g=d`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as n}from"tslib";import{unsafeSVG as s}from"lit-html/directives/unsafe-svg.js";import{css as d,LitElement as o,unsafeCSS as l,html as r}from"lit";import{customElement as c,property as h,state as p,queryAssignedElements as v}from"lit/decorators.js";import{classMap as m}from"lit/directives/class-map.js";import{k as u,f as k}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";var g=d`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,2 +1,2 @@
1
- export{WorkspaceSwitcher}from"./workspaceSwitcher.js";export{WorkspaceSwitcherMenuItem}from"./workspaceSwitcherMenuItem.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/unsafe-svg.js";import"deepmerge-ts";import"../../reusable/link/link.js";import"lit-html/directives/class-map.js";import"../../reusable/link/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";import"lit/directives/class-map.js";import"../../reusable/iconSelector/iconSelector.js";import"lit-html/directives/unsafe-svg.js";import"../../reusable/iconSelector/iconSelectorGroup.js";
1
+ export{WorkspaceSwitcher}from"./workspaceSwitcher.js";export{WorkspaceSwitcherMenuItem}from"./workspaceSwitcherMenuItem.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/unsafe-svg.js";import"deepmerge-ts";import"../../reusable/link/link.js";import"lit-html/directives/class-map.js";import"../../reusable/link/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";import"lit/directives/class-map.js";import"../../reusable/iconSelector/iconSelector.js";import"lit-html/directives/unsafe-svg.js";import"../../reusable/iconSelector/iconSelectorGroup.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -23,6 +23,9 @@ export interface WorkspaceSwitcherAccountMeta {
23
23
  * which renders the preferred rigid built-in pattern.
24
24
  * @slot left - Legacy non-list content for the left panel when `accountMeta` is not used. Prefer `accountMeta`; this slot is maintained for backward compatibility.
25
25
  * @slot left-list - List items for the left panel (rendered inside role="list").
26
+ * @slot mobile-trigger-icon - Optional icon override for the mobile flyout trigger. Provide an inline SVG or wrapper that contains one.
27
+ * @slot mobile-summary-icon - Optional icon override for the mobile account summary block. Provide an inline SVG or wrapper that contains one.
28
+ * @slot account-status-icon - Optional icon override for the built-in account meta status indicator. Provide an inline SVG or wrapper that contains one.
26
29
  * @slot right - Non-list content for the right panel (e.g. search).
27
30
  * @slot right-list - List items for the right panel (rendered inside role="list").
28
31
  * @fires on-account-meta-copy - Emits when a copy-style account meta action is activated.
@@ -87,6 +90,11 @@ export declare class WorkspaceSwitcher extends LitElement {
87
90
  * @internal
88
91
  */
89
92
  private _handleFlyoutToggle;
93
+ /**
94
+ * Re-syncs the parent flyout when icon slot assignments change.
95
+ * @internal
96
+ */
97
+ private _handleMobileIconSlotChange;
90
98
  connectedCallback(): void;
91
99
  disconnectedCallback(): void;
92
100
  willUpdate(changedProperties: Map<string, unknown>): void;
@@ -98,6 +106,7 @@ export declare class WorkspaceSwitcher extends LitElement {
98
106
  private _syncFlyoutHostMobilePresentation;
99
107
  private _clearFlyoutHostMobilePresentation;
100
108
  private _emitFlyoutHostMobilePresentation;
109
+ private _getMobilePresentationIconSvg;
101
110
  private _warnForLegacyLeftSlotUsage;
102
111
  private _renderAccountMeta;
103
112
  private _renderAccountMetaItem;
@@ -1 +1 @@
1
- {"version":3,"file":"workspaceSwitcher.d.ts","sourceRoot":"","sources":["../../../../src/components/global/workspaceSwitcher/workspaceSwitcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,KAAK,CAAC;AAOlD,OAAO,6BAA6B,CAAC;AAErC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAexD,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,gCAAgC,EAAE,CAAC;CAC5C;AAeD;;;;;;;;;;;;;;GAcG;AACH,qBACa,iBAAkB,SAAQ,UAAU;IAC/C,OAAgB,MAAM,0BAAoC;IAE1D,iCAAiC;IAEjC,QAAQ,CAAC,WAAW;;;;;MAAuB;IAE3C,wDAAwD;IAExD,QAAQ,CAAC,WAAW,EAAE,4BAA4B,GAAG,IAAI,CAAQ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AAC,yBAAyB,CAAS;IAEnD,6EAA6E;IAE7E,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAuB;IAE/D;;;OAGG;IACH,OAAO,CAAC,WAAW,CAAiC;IAEpD;;;OAGG;IACH,OAAO,CAAC,oBAAoB,CAAuB;IAEnD;;;OAGG;IACH,OAAO,CAAC,iBAAiB,CAAiC;IAE1D;;;OAGG;IACH,OAAO,CAAC,6BAA6B,CAAS;IAE9C;;;OAGG;IACH,OAAO,CAAC,+BAA+B,CAAS;IAEhD;;OAEG;IACH,OAAO,CAAC,mBAAmB,CAKzB;IAEF;;;OAGG;IACH,OAAO,CAAC,2BAA2B,CAEjC;IAEO,iBAAiB;IAqBjB,oBAAoB;IAapB,UAAU,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAWlD,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAa/C,MAAM;IAwDf,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,0BAA0B;IASlC,OAAO,CAAC,+BAA+B;IAYvC,OAAO,CAAC,iCAAiC;IAsBzC,OAAO,CAAC,kCAAkC;IAI1C,OAAO,CAAC,iCAAiC;IAUzC,OAAO,CAAC,6BAA6B;IAsBrC,OAAO,CAAC,2BAA2B;IAoBnC,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,sBAAsB;YAiDhB,2BAA2B;IA6BzC,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,kBAAkB;CAQ3B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,wBAAwB,EAAE,iBAAiB,CAAC;KAC7C;CACF"}
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as s}from"tslib";import{css as o,LitElement as n,unsafeCSS as r,html as c}from"lit";import{customElement as l,property as h,state as d}from"lit/decorators.js";import{unsafeSVG as u}from"lit/directives/unsafe-svg.js";import{deepmerge as p}from"deepmerge-ts";import"./workspaceSwitcherMenuItem.js";import"../../reusable/link/link.js";import{LINK_TARGETS as m}from"../../reusable/link/defs.js";import{s as w,n as k,i as g,j as f,l as _}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";import"lit/directives/class-map.js";import"../../reusable/iconSelector/iconSelector.js";import"lit-html/directives/class-map.js";import"lit-html/directives/unsafe-svg.js";import"../../reusable/iconSelector/iconSelectorGroup.js";var v=o`@charset "UTF-8";
1
+ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as s,__classPrivateFieldSet as a}from"tslib";import{css as o,LitElement as n,unsafeCSS as r,html as l}from"lit";import{customElement as c,property as h,state as d}from"lit/decorators.js";import{unsafeSVG as u}from"lit/directives/unsafe-svg.js";import{deepmerge as p}from"deepmerge-ts";import"./workspaceSwitcherMenuItem.js";import"../../reusable/link/link.js";import{LINK_TARGETS as m}from"../../reusable/link/defs.js";import{s as w,n as g,i as k,j as f,l as _}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";import"lit/directives/class-map.js";import"../../reusable/iconSelector/iconSelector.js";import"lit-html/directives/class-map.js";import"lit-html/directives/unsafe-svg.js";import"../../reusable/iconSelector/iconSelectorGroup.js";var v=o`@charset "UTF-8";
2
2
  *,
3
3
  *::before,
4
4
  *::after {
@@ -293,18 +293,28 @@ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPr
293
293
  .workspace-switcher {
294
294
  margin-top: 4px;
295
295
  }
296
- }`;const y={currentTitle:"CURRENT",workspacesTitle:"WORKSPACES",backToWorkspaces:"Workspaces",launchAssistiveText:"Opens in a new tab"};let x=(()=>{var o,x,b,S,M,L,T,C,A;let F,W,I,z,$,j,D,H,E,O,P,B=[l("kyn-workspace-switcher")],R=[],U=n,X=[],q=[],G=[],K=[],N=[],V=[],J=[],Q=[],Y=[],Z=[],tt=[],et=[],it=[],at=[],st=[],ot=[],nt=[],rt=[];return W=class extends U{constructor(){super(...arguments),o.set(this,i(this,X,y)),x.set(this,(i(this,q),i(this,G,null))),b.set(this,(i(this,K),i(this,N,"root"))),S.set(this,(i(this,V),i(this,J,!1))),M.set(this,(i(this,Q),i(this,Y,!1))),L.set(this,(i(this,Z),i(this,tt,!1))),T.set(this,(i(this,et),i(this,it,y))),C.set(this,(i(this,at),i(this,st,!1))),A.set(this,(i(this,ot),i(this,nt,null))),this._flyoutHost=(i(this,rt),null),this._copyFeedbackTimeout=null,this._lightDomObserver=null,this._hasWarnedAboutLegacyLeftSlot=!1,this._hasWarnedAboutLeftSlotConflict=!1,this._handleFlyoutToggle=t=>{const e=t.detail;(null==e?void 0:e.open)||(this.view="root")}}get textStrings(){return a(this,o,"f")}set textStrings(t){s(this,o,t,"f")}get accountMeta(){return a(this,x,"f")}set accountMeta(t){s(this,x,t,"f")}get view(){return a(this,b,"f")}set view(t){s(this,b,t,"f")}get hideCurrentTitle(){return a(this,S,"f")}set hideCurrentTitle(t){s(this,S,t,"f")}get hideWorkspacesTitle(){return a(this,M,"f")}set hideWorkspacesTitle(t){s(this,M,t,"f")}get hideLeftDivider(){return a(this,L,"f")}set hideLeftDivider(t){s(this,L,t,"f")}get _textStrings(){return a(this,T,"f")}set _textStrings(t){s(this,T,t,"f")}get _hasLegacyLeftSlotContent(){return a(this,C,"f")}set _hasLegacyLeftSlotContent(t){s(this,C,t,"f")}get _copiedAccountMetaIndex(){return a(this,A,"f")}set _copiedAccountMetaIndex(t){s(this,A,t,"f")}connectedCallback(){var t;super.connectedCallback(),this._updateLegacyLeftSlotState(),this._lightDomObserver=new MutationObserver((()=>this._updateLegacyLeftSlotState())),this._lightDomObserver.observe(this,{childList:!0,attributes:!0,attributeFilter:["slot"]}),this._flyoutHost=this.closest("kyn-header-flyout"),null===(t=this._flyoutHost)||void 0===t||t.addEventListener("on-flyout-toggle",this._handleFlyoutToggle),this._syncFlyoutHostMobilePresentation()}disconnectedCallback(){var t,e;super.disconnectedCallback(),null===(t=this._flyoutHost)||void 0===t||t.removeEventListener("on-flyout-toggle",this._handleFlyoutToggle),this._clearFlyoutHostMobilePresentation(),this._clearCopyFeedback(),null===(e=this._lightDomObserver)||void 0===e||e.disconnect(),this._lightDomObserver=null,this._flyoutHost=null}willUpdate(t){t.has("textStrings")&&(this._textStrings=p(y,this.textStrings)),t.has("accountMeta")&&(this._clearCopyFeedback(),this._warnForLegacyLeftSlotUsage())}updated(t){t.has("textStrings")&&this._updateChildMenuItemTextStrings(),(t.has("textStrings")||t.has("accountMeta"))&&this._syncFlyoutHostMobilePresentation()}render(){const t=null!=this.accountMeta||this._hasLegacyLeftSlotContent;return c`
296
+ }`;const y={currentTitle:"CURRENT",workspacesTitle:"WORKSPACES",backToWorkspaces:"Workspaces",launchAssistiveText:"Opens in a new tab"};let b=(()=>{var o,b,x,S,M,L,T,C,A;let F,I,W,z,$,H,j,P,D,E,O,B=[c("kyn-workspace-switcher")],R=[],U=n,X=[],q=[],N=[],G=[],K=[],V=[],J=[],Q=[],Y=[],Z=[],tt=[],et=[],it=[],st=[],at=[],ot=[],nt=[],rt=[];return I=class extends U{constructor(){super(...arguments),o.set(this,i(this,X,y)),b.set(this,(i(this,q),i(this,N,null))),x.set(this,(i(this,G),i(this,K,"root"))),S.set(this,(i(this,V),i(this,J,!1))),M.set(this,(i(this,Q),i(this,Y,!1))),L.set(this,(i(this,Z),i(this,tt,!1))),T.set(this,(i(this,et),i(this,it,y))),C.set(this,(i(this,st),i(this,at,!1))),A.set(this,(i(this,ot),i(this,nt,null))),this._flyoutHost=(i(this,rt),null),this._copyFeedbackTimeout=null,this._lightDomObserver=null,this._hasWarnedAboutLegacyLeftSlot=!1,this._hasWarnedAboutLeftSlotConflict=!1,this._handleFlyoutToggle=t=>{const e=t.detail;(null==e?void 0:e.open)||(this.view="root")},this._handleMobileIconSlotChange=()=>{this._syncFlyoutHostMobilePresentation()}}get textStrings(){return s(this,o,"f")}set textStrings(t){a(this,o,t,"f")}get accountMeta(){return s(this,b,"f")}set accountMeta(t){a(this,b,t,"f")}get view(){return s(this,x,"f")}set view(t){a(this,x,t,"f")}get hideCurrentTitle(){return s(this,S,"f")}set hideCurrentTitle(t){a(this,S,t,"f")}get hideWorkspacesTitle(){return s(this,M,"f")}set hideWorkspacesTitle(t){a(this,M,t,"f")}get hideLeftDivider(){return s(this,L,"f")}set hideLeftDivider(t){a(this,L,t,"f")}get _textStrings(){return s(this,T,"f")}set _textStrings(t){a(this,T,t,"f")}get _hasLegacyLeftSlotContent(){return s(this,C,"f")}set _hasLegacyLeftSlotContent(t){a(this,C,t,"f")}get _copiedAccountMetaIndex(){return s(this,A,"f")}set _copiedAccountMetaIndex(t){a(this,A,t,"f")}connectedCallback(){var t;super.connectedCallback(),this._updateLegacyLeftSlotState(),this._lightDomObserver=new MutationObserver((()=>this._updateLegacyLeftSlotState())),this._lightDomObserver.observe(this,{childList:!0,attributes:!0,attributeFilter:["slot"]}),this._flyoutHost=this.closest("kyn-header-flyout"),null===(t=this._flyoutHost)||void 0===t||t.addEventListener("on-flyout-toggle",this._handleFlyoutToggle),this._syncFlyoutHostMobilePresentation()}disconnectedCallback(){var t,e;super.disconnectedCallback(),null===(t=this._flyoutHost)||void 0===t||t.removeEventListener("on-flyout-toggle",this._handleFlyoutToggle),this._clearFlyoutHostMobilePresentation(),this._clearCopyFeedback(),null===(e=this._lightDomObserver)||void 0===e||e.disconnect(),this._lightDomObserver=null,this._flyoutHost=null}willUpdate(t){t.has("textStrings")&&(this._textStrings=p(y,this.textStrings)),t.has("accountMeta")&&(this._clearCopyFeedback(),this._warnForLegacyLeftSlotUsage())}updated(t){t.has("textStrings")&&this._updateChildMenuItemTextStrings(),(t.has("textStrings")||t.has("accountMeta"))&&this._syncFlyoutHostMobilePresentation()}render(){const t=null!=this.accountMeta||this._hasLegacyLeftSlotContent;return l`
297
+ <div hidden aria-hidden="true">
298
+ <slot
299
+ name="mobile-trigger-icon"
300
+ @slotchange=${this._handleMobileIconSlotChange}
301
+ ></slot>
302
+ <slot
303
+ name="mobile-summary-icon"
304
+ @slotchange=${this._handleMobileIconSlotChange}
305
+ ></slot>
306
+ </div>
297
307
  <div class="workspace-switcher">
298
308
  <div class="workspace-switcher__left">
299
- ${this.hideCurrentTitle?null:c`<span class="workspace-switcher__title"
309
+ ${this.hideCurrentTitle?null:l`<span class="workspace-switcher__title"
300
310
  >${this._textStrings.currentTitle}</span
301
311
  >`}
302
- ${t?c`
312
+ ${t?l`
303
313
  <div class="workspace-switcher__left-header">
304
- ${this.accountMeta?this._renderAccountMeta():c`<slot name="left"></slot>`}
314
+ ${this.accountMeta?this._renderAccountMeta():l`<slot name="left"></slot>`}
305
315
  </div>
306
316
  `:null}
307
- ${this.hideWorkspacesTitle?null:c`<span class="workspace-switcher__title"
317
+ ${this.hideWorkspacesTitle?null:l`<span class="workspace-switcher__title"
308
318
  >${this._textStrings.workspacesTitle}</span
309
319
  >`}
310
320
  <div class="workspace-switcher__list" role="list">
@@ -324,13 +334,15 @@ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPr
324
334
  </div>
325
335
  </div>
326
336
  </div>
327
- `}_handleBackClick(){this.view="root"}_updateLegacyLeftSlotState(){this._hasLegacyLeftSlotContent=Array.from(this.children).some((t=>"left"===t.getAttribute("slot"))),this._updateChildMenuItemTextStrings(),this._warnForLegacyLeftSlotUsage()}_updateChildMenuItemTextStrings(){const t={launchAssistiveText:this._textStrings.launchAssistiveText};this.querySelectorAll("kyn-workspace-switcher-menu-item").forEach((e=>{e.textStrings=t}))}_syncFlyoutHostMobilePresentation(){var t,e,i,a,s,o;this._emitFlyoutHostMobilePresentation({buttonIconSvg:k,summaryIconSvg:(null===(t=this.accountMeta)||void 0===t?void 0:t.name)?w:"",summaryLabel:null!==(i=null===(e=this.accountMeta)||void 0===e?void 0:e.name)&&void 0!==i?i:"",summaryDetails:null!==(o=null===(s=null===(a=this.accountMeta)||void 0===a?void 0:a.items)||void 0===s?void 0:s.filter((t=>{var e;return!!(null===(e=t.text)||void 0===e?void 0:e.trim())})).slice(0,2))&&void 0!==o?o:[],mobileLabel:this._textStrings.backToWorkspaces,hideButtonContentOnMobile:!0})}_clearFlyoutHostMobilePresentation(){this._emitFlyoutHostMobilePresentation()}_emitFlyoutHostMobilePresentation(t={}){var e;null===(e=this._flyoutHost)||void 0===e||e.dispatchEvent(new CustomEvent("kyn-internal-flyout-mobile-presentation",{detail:t}))}_warnForLegacyLeftSlotUsage(){if(this._hasLegacyLeftSlotContent&&"undefined"!=typeof console)return this.accountMeta&&!this._hasWarnedAboutLeftSlotConflict?(console.warn('[kyn-workspace-switcher] `accountMeta` overrides legacy `slot="left"` content. Remove the slot content or migrate fully to `accountMeta`.'),void(this._hasWarnedAboutLeftSlotConflict=!0)):void(this.accountMeta||this._hasWarnedAboutLegacyLeftSlot||(console.warn('[kyn-workspace-switcher] `slot="left"` is a legacy API. Prefer the `accountMeta` property for rigid account meta rendering.'),this._hasWarnedAboutLegacyLeftSlot=!0))}_renderAccountMeta(){var t;return this.accountMeta?c`
337
+ `}_handleBackClick(){this.view="root"}_updateLegacyLeftSlotState(){this._hasLegacyLeftSlotContent=Array.from(this.children).some((t=>"left"===t.getAttribute("slot"))),this._updateChildMenuItemTextStrings(),this._warnForLegacyLeftSlotUsage(),this._syncFlyoutHostMobilePresentation()}_updateChildMenuItemTextStrings(){const t={launchAssistiveText:this._textStrings.launchAssistiveText};this.querySelectorAll("kyn-workspace-switcher-menu-item").forEach((e=>{e.textStrings=t}))}_syncFlyoutHostMobilePresentation(){var t,e,i,s,a,o;this._emitFlyoutHostMobilePresentation({buttonIconSvg:this._getMobilePresentationIconSvg("mobile-trigger-icon",g),summaryIconSvg:(null===(t=this.accountMeta)||void 0===t?void 0:t.name)?this._getMobilePresentationIconSvg("mobile-summary-icon",w):"",summaryLabel:null!==(i=null===(e=this.accountMeta)||void 0===e?void 0:e.name)&&void 0!==i?i:"",summaryDetails:null!==(o=null===(a=null===(s=this.accountMeta)||void 0===s?void 0:s.items)||void 0===a?void 0:a.filter((t=>{var e;return!!(null===(e=t.text)||void 0===e?void 0:e.trim())})).slice(0,2))&&void 0!==o?o:[],mobileLabel:this._textStrings.backToWorkspaces,hideButtonContentOnMobile:!0})}_clearFlyoutHostMobilePresentation(){this._emitFlyoutHostMobilePresentation()}_emitFlyoutHostMobilePresentation(t={}){var e;null===(e=this._flyoutHost)||void 0===e||e.dispatchEvent(new CustomEvent("kyn-internal-flyout-mobile-presentation",{detail:t}))}_getMobilePresentationIconSvg(t,e=""){const i=Array.from(this.children).find((e=>e.getAttribute("slot")===t));if(!i)return e;const s="svg"===i.tagName.toLowerCase()?i:i.querySelector("svg");return(null==s?void 0:s.outerHTML.trim().startsWith("<svg"))?s.outerHTML:e}_warnForLegacyLeftSlotUsage(){if(this._hasLegacyLeftSlotContent&&"undefined"!=typeof console)return this.accountMeta&&!this._hasWarnedAboutLeftSlotConflict?(console.warn('[kyn-workspace-switcher] `accountMeta` overrides legacy `slot="left"` content. Remove the slot content or migrate fully to `accountMeta`.'),void(this._hasWarnedAboutLeftSlotConflict=!0)):void(this.accountMeta||this._hasWarnedAboutLegacyLeftSlot||(console.warn('[kyn-workspace-switcher] `slot="left"` is a legacy API. Prefer the `accountMeta` property for rigid account meta rendering.'),this._hasWarnedAboutLegacyLeftSlot=!0))}_renderAccountMeta(){var t;return this.accountMeta?l`
328
338
  <div class="workspace-switcher__account-meta">
329
339
  <span
330
340
  class="workspace-switcher__account-meta-status"
331
341
  aria-hidden="true"
332
342
  >
333
- ${u(w)}
343
+ <slot name="account-status-icon"
344
+ >${u(w)}</slot
345
+ >
334
346
  </span>
335
347
  <div class="workspace-switcher__account-meta-content">
336
348
  <span
@@ -342,7 +354,7 @@ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPr
342
354
  ${null===(t=this.accountMeta.items)||void 0===t?void 0:t.map(((t,e)=>this._renderAccountMetaItem(t,e)))}
343
355
  </div>
344
356
  </div>
345
- `:null}_renderAccountMetaItem(t,e){var i,a;const s="copy"===t.actionIcon?this._copiedAccountMetaIndex===e?g:f:"launch"===t.actionIcon?_:null;if(t.href||"copy"===t.actionIcon){const o=null!==(i=t.target)&&void 0!==i?i:m.SELF,n=null!==(a=t.rel)&&void 0!==a?a:"_blank"===o?"noopener noreferrer":"";return c`
357
+ `:null}_renderAccountMetaItem(t,e){var i,s;const a="copy"===t.actionIcon?this._copiedAccountMetaIndex===e?k:f:"launch"===t.actionIcon?_:null;if(t.href||"copy"===t.actionIcon){const o=null!==(i=t.target)&&void 0!==i?i:m.SELF,n=null!==(s=t.rel)&&void 0!==s?s:"_blank"===o?"noopener noreferrer":"";return l`
346
358
  <kyn-link
347
359
  class="workspace-switcher__account-meta-link"
348
360
  standalone
@@ -353,16 +365,16 @@ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPr
353
365
  @on-click=${i=>this._handleAccountMetaItemClick(i,t,e)}
354
366
  >
355
367
  ${t.text}
356
- ${s?c`
368
+ ${a?l`
357
369
  <span
358
370
  slot="icon"
359
371
  class="workspace-switcher__account-meta-link-icon"
360
372
  >
361
- ${u(s)}
373
+ ${u(a)}
362
374
  </span>
363
375
  `:null}
364
376
  </kyn-link>
365
- `}return c`
377
+ `}return l`
366
378
  <span class="workspace-switcher__account-meta-item">${t.text}</span>
367
- `}async _handleAccountMetaItemClick(t,e,i){var a,s,o;if("copy"!==e.actionIcon)return;const n=null!==(a=e.copyValue)&&void 0!==a?a:e.text,r=null===(s=t.detail)||void 0===s?void 0:s.origEvent;null==r||r.preventDefault();const c=null===(o=globalThis.navigator)||void 0===o?void 0:o.clipboard;try{await(null==c?void 0:c.writeText(n)),this._showCopyFeedback(i)}catch{return}this.dispatchEvent(new CustomEvent("on-account-meta-copy",{detail:{index:i,text:e.text,value:n,success:!0},bubbles:!0,composed:!0}))}_showCopyFeedback(t){this._copiedAccountMetaIndex=t,null!=this._copyFeedbackTimeout&&window.clearTimeout(this._copyFeedbackTimeout),this._copyFeedbackTimeout=window.setTimeout((()=>{this._copiedAccountMetaIndex=null,this._copyFeedbackTimeout=null}),3e3)}_clearCopyFeedback(){this._copiedAccountMetaIndex=null,null!=this._copyFeedbackTimeout&&(window.clearTimeout(this._copyFeedbackTimeout),this._copyFeedbackTimeout=null)}},o=new WeakMap,x=new WeakMap,b=new WeakMap,S=new WeakMap,M=new WeakMap,L=new WeakMap,T=new WeakMap,C=new WeakMap,A=new WeakMap,t(W,"WorkspaceSwitcher"),(()=>{var t;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(t=U[Symbol.metadata])&&void 0!==t?t:null):void 0;I=[h({type:Object})],z=[h({attribute:!1})],$=[h({type:String,reflect:!0})],j=[h({type:Boolean,reflect:!0})],D=[h({type:Boolean,reflect:!0})],H=[h({type:Boolean,reflect:!0,attribute:"hide-left-divider"})],E=[d()],O=[d()],P=[d()],e(W,null,I,{kind:"accessor",name:"textStrings",static:!1,private:!1,access:{has:t=>"textStrings"in t,get:t=>t.textStrings,set:(t,e)=>{t.textStrings=e}},metadata:i},X,q),e(W,null,z,{kind:"accessor",name:"accountMeta",static:!1,private:!1,access:{has:t=>"accountMeta"in t,get:t=>t.accountMeta,set:(t,e)=>{t.accountMeta=e}},metadata:i},G,K),e(W,null,$,{kind:"accessor",name:"view",static:!1,private:!1,access:{has:t=>"view"in t,get:t=>t.view,set:(t,e)=>{t.view=e}},metadata:i},N,V),e(W,null,j,{kind:"accessor",name:"hideCurrentTitle",static:!1,private:!1,access:{has:t=>"hideCurrentTitle"in t,get:t=>t.hideCurrentTitle,set:(t,e)=>{t.hideCurrentTitle=e}},metadata:i},J,Q),e(W,null,D,{kind:"accessor",name:"hideWorkspacesTitle",static:!1,private:!1,access:{has:t=>"hideWorkspacesTitle"in t,get:t=>t.hideWorkspacesTitle,set:(t,e)=>{t.hideWorkspacesTitle=e}},metadata:i},Y,Z),e(W,null,H,{kind:"accessor",name:"hideLeftDivider",static:!1,private:!1,access:{has:t=>"hideLeftDivider"in t,get:t=>t.hideLeftDivider,set:(t,e)=>{t.hideLeftDivider=e}},metadata:i},tt,et),e(W,null,E,{kind:"accessor",name:"_textStrings",static:!1,private:!1,access:{has:t=>"_textStrings"in t,get:t=>t._textStrings,set:(t,e)=>{t._textStrings=e}},metadata:i},it,at),e(W,null,O,{kind:"accessor",name:"_hasLegacyLeftSlotContent",static:!1,private:!1,access:{has:t=>"_hasLegacyLeftSlotContent"in t,get:t=>t._hasLegacyLeftSlotContent,set:(t,e)=>{t._hasLegacyLeftSlotContent=e}},metadata:i},st,ot),e(W,null,P,{kind:"accessor",name:"_copiedAccountMetaIndex",static:!1,private:!1,access:{has:t=>"_copiedAccountMetaIndex"in t,get:t=>t._copiedAccountMetaIndex,set:(t,e)=>{t._copiedAccountMetaIndex=e}},metadata:i},nt,rt),e(null,F={value:W},B,{kind:"class",name:W.name,metadata:i},null,R),W=F.value,i&&Object.defineProperty(W,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),W.styles=r(v),i(W,R),W})();export{x as WorkspaceSwitcher};
379
+ `}async _handleAccountMetaItemClick(t,e,i){var s,a,o;if("copy"!==e.actionIcon)return;const n=null!==(s=e.copyValue)&&void 0!==s?s:e.text,r=null===(a=t.detail)||void 0===a?void 0:a.origEvent;null==r||r.preventDefault();const l=null===(o=globalThis.navigator)||void 0===o?void 0:o.clipboard;try{await(null==l?void 0:l.writeText(n)),this._showCopyFeedback(i)}catch{return}this.dispatchEvent(new CustomEvent("on-account-meta-copy",{detail:{index:i,text:e.text,value:n,success:!0},bubbles:!0,composed:!0}))}_showCopyFeedback(t){this._copiedAccountMetaIndex=t,null!=this._copyFeedbackTimeout&&window.clearTimeout(this._copyFeedbackTimeout),this._copyFeedbackTimeout=window.setTimeout((()=>{this._copiedAccountMetaIndex=null,this._copyFeedbackTimeout=null}),3e3)}_clearCopyFeedback(){this._copiedAccountMetaIndex=null,null!=this._copyFeedbackTimeout&&(window.clearTimeout(this._copyFeedbackTimeout),this._copyFeedbackTimeout=null)}},o=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,M=new WeakMap,L=new WeakMap,T=new WeakMap,C=new WeakMap,A=new WeakMap,t(I,"WorkspaceSwitcher"),(()=>{var t;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(t=U[Symbol.metadata])&&void 0!==t?t:null):void 0;W=[h({type:Object})],z=[h({attribute:!1})],$=[h({type:String,reflect:!0})],H=[h({type:Boolean,reflect:!0})],j=[h({type:Boolean,reflect:!0})],P=[h({type:Boolean,reflect:!0,attribute:"hide-left-divider"})],D=[d()],E=[d()],O=[d()],e(I,null,W,{kind:"accessor",name:"textStrings",static:!1,private:!1,access:{has:t=>"textStrings"in t,get:t=>t.textStrings,set:(t,e)=>{t.textStrings=e}},metadata:i},X,q),e(I,null,z,{kind:"accessor",name:"accountMeta",static:!1,private:!1,access:{has:t=>"accountMeta"in t,get:t=>t.accountMeta,set:(t,e)=>{t.accountMeta=e}},metadata:i},N,G),e(I,null,$,{kind:"accessor",name:"view",static:!1,private:!1,access:{has:t=>"view"in t,get:t=>t.view,set:(t,e)=>{t.view=e}},metadata:i},K,V),e(I,null,H,{kind:"accessor",name:"hideCurrentTitle",static:!1,private:!1,access:{has:t=>"hideCurrentTitle"in t,get:t=>t.hideCurrentTitle,set:(t,e)=>{t.hideCurrentTitle=e}},metadata:i},J,Q),e(I,null,j,{kind:"accessor",name:"hideWorkspacesTitle",static:!1,private:!1,access:{has:t=>"hideWorkspacesTitle"in t,get:t=>t.hideWorkspacesTitle,set:(t,e)=>{t.hideWorkspacesTitle=e}},metadata:i},Y,Z),e(I,null,P,{kind:"accessor",name:"hideLeftDivider",static:!1,private:!1,access:{has:t=>"hideLeftDivider"in t,get:t=>t.hideLeftDivider,set:(t,e)=>{t.hideLeftDivider=e}},metadata:i},tt,et),e(I,null,D,{kind:"accessor",name:"_textStrings",static:!1,private:!1,access:{has:t=>"_textStrings"in t,get:t=>t._textStrings,set:(t,e)=>{t._textStrings=e}},metadata:i},it,st),e(I,null,E,{kind:"accessor",name:"_hasLegacyLeftSlotContent",static:!1,private:!1,access:{has:t=>"_hasLegacyLeftSlotContent"in t,get:t=>t._hasLegacyLeftSlotContent,set:(t,e)=>{t._hasLegacyLeftSlotContent=e}},metadata:i},at,ot),e(I,null,O,{kind:"accessor",name:"_copiedAccountMetaIndex",static:!1,private:!1,access:{has:t=>"_copiedAccountMetaIndex"in t,get:t=>t._copiedAccountMetaIndex,set:(t,e)=>{t._copiedAccountMetaIndex=e}},metadata:i},nt,rt),e(null,F={value:I},B,{kind:"class",name:I.name,metadata:i},null,R),I=F.value,i&&Object.defineProperty(I,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),I.styles=r(v),i(I,R),I})();export{b as WorkspaceSwitcher};
368
380
  //# sourceMappingURL=workspaceSwitcher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workspaceSwitcher.js","sources":["../../../../src/components/global/workspaceSwitcher/workspaceSwitcher.ts"],"sourcesContent":["import { LitElement, html, unsafeCSS } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport { deepmerge } from 'deepmerge-ts';\n\nimport WorkspaceSwitcherScss from './workspaceSwitcher.scss?inline';\n\nimport './workspaceSwitcherMenuItem';\nimport type { WorkspaceSwitcherMenuItem } from './workspaceSwitcherMenuItem';\nimport '../../reusable/link';\nimport { LINK_TARGETS } from '../../reusable/link/defs';\n\nimport checkmarkFilledIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/checkmark-filled.svg';\nimport checkmarkIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/checkmark.svg';\nimport copyIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/copy.svg';\nimport gridIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/grid.svg';\nimport launchIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/launch.svg';\n\nconst _defaultTextStrings = {\n currentTitle: 'CURRENT',\n workspacesTitle: 'WORKSPACES',\n backToWorkspaces: 'Workspaces',\n launchAssistiveText: 'Opens in a new tab',\n};\n\nexport interface WorkspaceSwitcherAccountMetaItem {\n text: string;\n href?: string;\n target?: LINK_TARGETS;\n rel?: string;\n actionIcon?: 'copy' | 'launch';\n copyValue?: string;\n}\n\nexport interface WorkspaceSwitcherAccountMeta {\n name: string;\n items?: WorkspaceSwitcherAccountMetaItem[];\n}\n\ntype MobilePresentationDetail = {\n buttonIconSvg?: string;\n summaryIconSvg?: string;\n summaryLabel?: string;\n summaryDetails?: WorkspaceSwitcherAccountMetaItem[];\n mobileLabel?: string;\n hideButtonContentOnMobile?: boolean;\n};\n\nconst _mobilePresentationEvent = 'kyn-internal-flyout-mobile-presentation';\n\ntype HeaderFlyoutHost = HTMLElement;\n\n/**\n * Workspace Switcher shell component providing two-panel layout with mobile drill-down.\n * Component fits to 100% of the width and height of its container and surfaces two panels for content composition via slots.\n * Consumers compose workspace and account rows via named slots using\n * sub-components like `kyn-workspace-switcher-menu-item`.\n * The account meta block can also be provided via the `accountMeta` property,\n * which renders the preferred rigid built-in pattern.\n * @slot left - Legacy non-list content for the left panel when `accountMeta` is not used. Prefer `accountMeta`; this slot is maintained for backward compatibility.\n * @slot left-list - List items for the left panel (rendered inside role=\"list\").\n * @slot right - Non-list content for the right panel (e.g. search).\n * @slot right-list - List items for the right panel (rendered inside role=\"list\").\n * @fires on-account-meta-copy - Emits when a copy-style account meta action is activated.\n * @cssprop [--kyn-workspace-switcher-max-height=none] - Maximum height of the switcher panel.\n * @cssprop [--kyn-workspace-switcher-left-panel-width=275px] - Width of the left panel in desktop two-panel layout.\n */\n@customElement('kyn-workspace-switcher')\nexport class WorkspaceSwitcher extends LitElement {\n static override styles = unsafeCSS(WorkspaceSwitcherScss);\n\n /** Text string customization. */\n @property({ type: Object })\n accessor textStrings = _defaultTextStrings;\n\n /** Built-in account meta content for the left panel. */\n @property({ attribute: false })\n accessor accountMeta: WorkspaceSwitcherAccountMeta | null = null;\n\n /** Mobile drill-down view state. 'root' shows left panel, 'detail' shows right panel.\n * @internal\n */\n @property({ type: String, reflect: true })\n accessor view: 'root' | 'detail' = 'root';\n\n /** Hides the heading above the account meta info. */\n @property({ type: Boolean, reflect: true })\n accessor hideCurrentTitle = false;\n\n /** Hides the heading above the lower left-hand side list. Example: suppress for accounts-only customers. */\n @property({ type: Boolean, reflect: true })\n accessor hideWorkspacesTitle = false;\n\n /** Hides the divider beneath the `left` slot content. */\n @property({ type: Boolean, reflect: true, attribute: 'hide-left-divider' })\n accessor hideLeftDivider = false;\n\n /** Merged text strings.\n * @internal\n */\n @state()\n private accessor _textStrings = _defaultTextStrings;\n\n /** Tracks whether legacy left-slot content is present. */\n @state()\n private accessor _hasLegacyLeftSlotContent = false;\n\n /** Tracks which copy-style account meta item is showing success feedback. */\n @state()\n private accessor _copiedAccountMetaIndex: number | null = null;\n\n /**\n * The nearest flyout host, if any.\n * @internal\n */\n private _flyoutHost: HeaderFlyoutHost | null = null;\n\n /**\n * Clears transient copy feedback after a short delay.\n * @internal\n */\n private _copyFeedbackTimeout: number | null = null;\n\n /**\n * Watches for legacy slot usage changes.\n * @internal\n */\n private _lightDomObserver: MutationObserver | null = null;\n\n /**\n * Ensures legacy slot guidance only logs once per host instance.\n * @internal\n */\n private _hasWarnedAboutLegacyLeftSlot = false;\n\n /**\n * Ensures conflicting input guidance only logs once per host instance.\n * @internal\n */\n private _hasWarnedAboutLeftSlotConflict = false;\n\n /**\n * @internal\n */\n private _handleFlyoutToggle = (e: Event) => {\n const detail = (e as CustomEvent).detail;\n if (!detail?.open) {\n this.view = 'root';\n }\n };\n\n override connectedCallback() {\n super.connectedCallback();\n this._updateLegacyLeftSlotState();\n this._lightDomObserver = new MutationObserver(() =>\n this._updateLegacyLeftSlotState()\n );\n this._lightDomObserver.observe(this, {\n childList: true,\n attributes: true,\n attributeFilter: ['slot'],\n });\n this._flyoutHost = this.closest(\n 'kyn-header-flyout'\n ) as HeaderFlyoutHost | null;\n this._flyoutHost?.addEventListener(\n 'on-flyout-toggle',\n this._handleFlyoutToggle as EventListener\n );\n this._syncFlyoutHostMobilePresentation();\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n this._flyoutHost?.removeEventListener(\n 'on-flyout-toggle',\n this._handleFlyoutToggle as EventListener\n );\n this._clearFlyoutHostMobilePresentation();\n this._clearCopyFeedback();\n this._lightDomObserver?.disconnect();\n this._lightDomObserver = null;\n this._flyoutHost = null;\n }\n\n override willUpdate(changedProperties: Map<string, unknown>) {\n if (changedProperties.has('textStrings')) {\n this._textStrings = deepmerge(_defaultTextStrings, this.textStrings);\n }\n\n if (changedProperties.has('accountMeta')) {\n this._clearCopyFeedback();\n this._warnForLegacyLeftSlotUsage();\n }\n }\n\n override updated(changedProperties: Map<string, unknown>) {\n if (changedProperties.has('textStrings')) {\n this._updateChildMenuItemTextStrings();\n }\n\n if (\n changedProperties.has('textStrings') ||\n changedProperties.has('accountMeta')\n ) {\n this._syncFlyoutHostMobilePresentation();\n }\n }\n\n override render() {\n const showLeftHeader =\n this.accountMeta != null || this._hasLegacyLeftSlotContent;\n\n return html`\n <div class=\"workspace-switcher\">\n <div class=\"workspace-switcher__left\">\n ${!this.hideCurrentTitle\n ? html`<span class=\"workspace-switcher__title\"\n >${this._textStrings.currentTitle}</span\n >`\n : null}\n ${showLeftHeader\n ? html`\n <div class=\"workspace-switcher__left-header\">\n ${this.accountMeta\n ? this._renderAccountMeta()\n : html`<slot name=\"left\"></slot>`}\n </div>\n `\n : null}\n ${!this.hideWorkspacesTitle\n ? html`<span class=\"workspace-switcher__title\"\n >${this._textStrings.workspacesTitle}</span\n >`\n : null}\n <div class=\"workspace-switcher__list\" role=\"list\">\n <slot name=\"left-list\"></slot>\n </div>\n </div>\n <div class=\"workspace-switcher__right\">\n <kyn-workspace-switcher-menu-item\n class=\"workspace-switcher__back\"\n variant=\"back\"\n name=${this._textStrings.backToWorkspaces}\n @on-click=${this._handleBackClick}\n ></kyn-workspace-switcher-menu-item>\n <slot name=\"right\"></slot>\n <div class=\"workspace-switcher__list\" role=\"list\">\n <slot name=\"right-list\"></slot>\n </div>\n </div>\n </div>\n `;\n }\n\n private _handleBackClick() {\n this.view = 'root';\n }\n\n private _updateLegacyLeftSlotState() {\n this._hasLegacyLeftSlotContent = Array.from(this.children).some(\n (child) => child.getAttribute('slot') === 'left'\n );\n this._updateChildMenuItemTextStrings();\n this._warnForLegacyLeftSlotUsage();\n }\n\n private _updateChildMenuItemTextStrings() {\n const menuItemTextStrings = {\n launchAssistiveText: this._textStrings.launchAssistiveText,\n };\n\n this.querySelectorAll<WorkspaceSwitcherMenuItem>(\n 'kyn-workspace-switcher-menu-item'\n ).forEach((item) => {\n item.textStrings = menuItemTextStrings;\n });\n }\n\n private _syncFlyoutHostMobilePresentation() {\n this._emitFlyoutHostMobilePresentation({\n buttonIconSvg: gridIcon,\n summaryIconSvg: this.accountMeta?.name ? checkmarkFilledIcon : '',\n summaryLabel: this.accountMeta?.name ?? '',\n summaryDetails:\n this.accountMeta?.items\n ?.filter((item) => !!item.text?.trim())\n .slice(0, 2) ?? [],\n mobileLabel: this._textStrings.backToWorkspaces,\n hideButtonContentOnMobile: true,\n });\n }\n\n private _clearFlyoutHostMobilePresentation() {\n this._emitFlyoutHostMobilePresentation();\n }\n\n private _emitFlyoutHostMobilePresentation(\n detail: MobilePresentationDetail = {}\n ) {\n this._flyoutHost?.dispatchEvent(\n new CustomEvent(_mobilePresentationEvent, {\n detail,\n })\n );\n }\n\n private _warnForLegacyLeftSlotUsage() {\n if (!this._hasLegacyLeftSlotContent || typeof console === 'undefined')\n return;\n\n if (this.accountMeta && !this._hasWarnedAboutLeftSlotConflict) {\n console.warn(\n '[kyn-workspace-switcher] `accountMeta` overrides legacy `slot=\"left\"` content. Remove the slot content or migrate fully to `accountMeta`.'\n );\n this._hasWarnedAboutLeftSlotConflict = true;\n return;\n }\n\n if (!this.accountMeta && !this._hasWarnedAboutLegacyLeftSlot) {\n console.warn(\n '[kyn-workspace-switcher] `slot=\"left\"` is a legacy API. Prefer the `accountMeta` property for rigid account meta rendering.'\n );\n this._hasWarnedAboutLegacyLeftSlot = true;\n }\n }\n\n private _renderAccountMeta() {\n if (!this.accountMeta) return null;\n\n return html`\n <div class=\"workspace-switcher__account-meta\">\n <span\n class=\"workspace-switcher__account-meta-status\"\n aria-hidden=\"true\"\n >\n ${unsafeSVG(checkmarkFilledIcon)}\n </span>\n <div class=\"workspace-switcher__account-meta-content\">\n <span\n class=\"workspace-switcher__account-meta-name\"\n title=${this.accountMeta.name}\n >\n ${this.accountMeta.name}\n </span>\n ${this.accountMeta.items?.map((item, index) =>\n this._renderAccountMetaItem(item, index)\n )}\n </div>\n </div>\n `;\n }\n\n private _renderAccountMetaItem(\n item: WorkspaceSwitcherAccountMetaItem,\n index: number\n ) {\n const icon =\n item.actionIcon === 'copy'\n ? this._copiedAccountMetaIndex === index\n ? checkmarkIcon\n : copyIcon\n : item.actionIcon === 'launch'\n ? launchIcon\n : null;\n\n if (item.href || item.actionIcon === 'copy') {\n const target = item.target ?? LINK_TARGETS.SELF;\n const rel =\n item.rel ?? (target === '_blank' ? 'noopener noreferrer' : '');\n\n return html`\n <kyn-link\n class=\"workspace-switcher__account-meta-link\"\n standalone\n animationInactive\n href=${item.href || 'javascript:void(0)'}\n target=${target}\n rel=${rel}\n @on-click=${(e: CustomEvent) =>\n this._handleAccountMetaItemClick(e, item, index)}\n >\n ${item.text}\n ${icon\n ? html`\n <span\n slot=\"icon\"\n class=\"workspace-switcher__account-meta-link-icon\"\n >\n ${unsafeSVG(icon)}\n </span>\n `\n : null}\n </kyn-link>\n `;\n }\n\n return html`\n <span class=\"workspace-switcher__account-meta-item\">${item.text}</span>\n `;\n }\n\n private async _handleAccountMetaItemClick(\n e: CustomEvent,\n item: WorkspaceSwitcherAccountMetaItem,\n index: number\n ) {\n if (item.actionIcon !== 'copy') return;\n\n const copyValue = item.copyValue ?? item.text;\n const origEvent = e.detail?.origEvent as Event | undefined;\n\n origEvent?.preventDefault();\n const clipboard = globalThis.navigator?.clipboard;\n\n try {\n await clipboard?.writeText(copyValue);\n this._showCopyFeedback(index);\n } catch {\n return;\n }\n\n this.dispatchEvent(\n new CustomEvent('on-account-meta-copy', {\n detail: { index, text: item.text, value: copyValue, success: true },\n bubbles: true,\n composed: true,\n })\n );\n }\n\n private _showCopyFeedback(index: number) {\n this._copiedAccountMetaIndex = index;\n\n if (this._copyFeedbackTimeout != null) {\n window.clearTimeout(this._copyFeedbackTimeout);\n }\n\n this._copyFeedbackTimeout = window.setTimeout(() => {\n this._copiedAccountMetaIndex = null;\n this._copyFeedbackTimeout = null;\n }, 3000);\n }\n\n private _clearCopyFeedback() {\n this._copiedAccountMetaIndex = null;\n\n if (this._copyFeedbackTimeout != null) {\n window.clearTimeout(this._copyFeedbackTimeout);\n this._copyFeedbackTimeout = null;\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-workspace-switcher': WorkspaceSwitcher;\n }\n}\n"],"names":["_defaultTextStrings","currentTitle","workspacesTitle","backToWorkspaces","launchAssistiveText","WorkspaceSwitcher","customElement","LitElement","_classThis","_classSuper","_WorkspaceSwitcher_textStrings_accessor_storage","set","this","__runInitializers","_textStrings_initializers","_WorkspaceSwitcher_accountMeta_accessor_storage","_textStrings_extraInitializers","_accountMeta_initializers","_WorkspaceSwitcher_view_accessor_storage","_accountMeta_extraInitializers","_view_initializers","_WorkspaceSwitcher_hideCurrentTitle_accessor_storage","_view_extraInitializers","_hideCurrentTitle_initializers","_WorkspaceSwitcher_hideWorkspacesTitle_accessor_storage","_hideCurrentTitle_extraInitializers","_hideWorkspacesTitle_initializers","_WorkspaceSwitcher_hideLeftDivider_accessor_storage","_hideWorkspacesTitle_extraInitializers","_hideLeftDivider_initializers","_WorkspaceSwitcher__textStrings_accessor_storage","_hideLeftDivider_extraInitializers","__textStrings_initializers","_WorkspaceSwitcher__hasLegacyLeftSlotContent_accessor_storage","__textStrings_extraInitializers","__hasLegacyLeftSlotContent_initializers","_WorkspaceSwitcher__copiedAccountMetaIndex_accessor_storage","__hasLegacyLeftSlotContent_extraInitializers","__copiedAccountMetaIndex_initializers","_flyoutHost","__copiedAccountMetaIndex_extraInitializers","_copyFeedbackTimeout","_lightDomObserver","_hasWarnedAboutLegacyLeftSlot","_hasWarnedAboutLeftSlotConflict","_handleFlyoutToggle","e","detail","open","view","textStrings","__classPrivateFieldGet","value","__classPrivateFieldSet","accountMeta","hideCurrentTitle","hideWorkspacesTitle","hideLeftDivider","_textStrings","_hasLegacyLeftSlotContent","_copiedAccountMetaIndex","connectedCallback","super","_updateLegacyLeftSlotState","MutationObserver","observe","childList","attributes","attributeFilter","closest","_a","addEventListener","_syncFlyoutHostMobilePresentation","disconnectedCallback","removeEventListener","_clearFlyoutHostMobilePresentation","_clearCopyFeedback","_b","disconnect","willUpdate","changedProperties","has","deepmerge","_warnForLegacyLeftSlotUsage","updated","_updateChildMenuItemTextStrings","render","showLeftHeader","html","_renderAccountMeta","_handleBackClick","Array","from","children","some","child","getAttribute","menuItemTextStrings","querySelectorAll","forEach","item","_emitFlyoutHostMobilePresentation","buttonIconSvg","gridIcon","summaryIconSvg","name","checkmarkFilledIcon","summaryLabel","_c","summaryDetails","_f","_e","_d","items","filter","text","trim","slice","mobileLabel","hideButtonContentOnMobile","dispatchEvent","CustomEvent","console","warn","unsafeSVG","map","index","_renderAccountMetaItem","icon","actionIcon","checkmarkIcon","copyIcon","launchIcon","href","target","LINK_TARGETS","SELF","rel","_handleAccountMetaItemClick","copyValue","origEvent","preventDefault","clipboard","globalThis","navigator","writeText","_showCopyFeedback","success","bubbles","composed","window","clearTimeout","setTimeout","_textStrings_decorators","property","type","Object","_accountMeta_decorators","attribute","String","reflect","Boolean","_hideLeftDivider_decorators","__textStrings_decorators","state","__hasLegacyLeftSlotContent_decorators","__copiedAccountMetaIndex_decorators","__esDecorate","kind","static","private","access","obj","get","metadata","_metadata","_view_decorators","_hideCurrentTitle_decorators","_hideWorkspacesTitle_decorators","_classDescriptor","_classDecorators","_classExtraInitializers","styles","unsafeCSS","WorkspaceSwitcherScss"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkBA,MAAMA,EAAsB,CAC1BC,aAAc,UACdC,gBAAiB,aACjBC,iBAAkB,aAClBC,oBAAqB,0BA8CVC,EAAiB,yDAD7BC,EAAc,kCACwBC,2GAARC,EAAA,cAAQC,oCAK5BC,EAAAC,IAAAC,KAAAC,EAAAD,KAAAE,EAAcd,IAIde,EAAAJ,IAAAC,MAAAC,EAAAD,KAAAI,GAAAH,EAAAD,KAAAK,EAAmD,QAMnDC,EAAAP,IAAAC,MAAAC,EAAAD,KAAAO,GAAAN,EAAAD,KAAAQ,EAA0B,UAI1BC,EAAAV,IAAAC,MAAAC,EAAAD,KAAAU,GAAAT,EAAAD,KAAAW,GAAmB,KAInBC,EAAAb,IAAAC,MAAAC,EAAAD,KAAAa,GAAAZ,EAAAD,KAAAc,GAAsB,KAItBC,EAAAhB,IAAAC,MAAAC,EAAAD,KAAAgB,GAAAf,EAAAD,KAAAiB,IAAkB,KAMVC,EAAAnB,IAAAC,MAAAC,EAAAD,KAAAmB,IAAAlB,EAAAD,KAAAoB,GAAehC,KAIfiC,EAAAtB,IAAAC,MAAAC,EAAAD,KAAAsB,IAAArB,EAAAD,KAAAuB,IAA4B,KAI5BC,EAAAzB,IAAAC,MAAAC,EAAAD,KAAAyB,IAA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AAA,QAAA/D,KAAAjG,EAAAiG,KAAAqE,SAAAC,GAAA,KAAAM,iHACkB7K,EAAA8K,OAASC,EAAUC,GADxB3K,EAAAL,EAAA6K,MAAiB"}
1
+ {"version":3,"file":"workspaceSwitcher.js","sources":["../../../../src/components/global/workspaceSwitcher/workspaceSwitcher.ts"],"sourcesContent":["import { LitElement, html, unsafeCSS } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport { deepmerge } from 'deepmerge-ts';\n\nimport WorkspaceSwitcherScss from './workspaceSwitcher.scss?inline';\n\nimport './workspaceSwitcherMenuItem';\nimport type { WorkspaceSwitcherMenuItem } from './workspaceSwitcherMenuItem';\nimport '../../reusable/link';\nimport { LINK_TARGETS } from '../../reusable/link/defs';\n\nimport checkmarkFilledIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/checkmark-filled.svg';\nimport checkmarkIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/checkmark.svg';\nimport copyIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/copy.svg';\nimport accountsIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/accounts.svg';\nimport launchIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/launch.svg';\n\nconst _defaultTextStrings = {\n currentTitle: 'CURRENT',\n workspacesTitle: 'WORKSPACES',\n backToWorkspaces: 'Workspaces',\n launchAssistiveText: 'Opens in a new tab',\n};\n\nexport interface WorkspaceSwitcherAccountMetaItem {\n text: string;\n href?: string;\n target?: LINK_TARGETS;\n rel?: string;\n actionIcon?: 'copy' | 'launch';\n copyValue?: string;\n}\n\nexport interface WorkspaceSwitcherAccountMeta {\n name: string;\n items?: WorkspaceSwitcherAccountMetaItem[];\n}\n\ntype MobilePresentationDetail = {\n buttonIconSvg?: string;\n summaryIconSvg?: string;\n summaryLabel?: string;\n summaryDetails?: WorkspaceSwitcherAccountMetaItem[];\n mobileLabel?: string;\n hideButtonContentOnMobile?: boolean;\n};\n\nconst _mobilePresentationEvent = 'kyn-internal-flyout-mobile-presentation';\n\ntype HeaderFlyoutHost = HTMLElement;\n\n/**\n * Workspace Switcher shell component providing two-panel layout with mobile drill-down.\n * Component fits to 100% of the width and height of its container and surfaces two panels for content composition via slots.\n * Consumers compose workspace and account rows via named slots using\n * sub-components like `kyn-workspace-switcher-menu-item`.\n * The account meta block can also be provided via the `accountMeta` property,\n * which renders the preferred rigid built-in pattern.\n * @slot left - Legacy non-list content for the left panel when `accountMeta` is not used. Prefer `accountMeta`; this slot is maintained for backward compatibility.\n * @slot left-list - List items for the left panel (rendered inside role=\"list\").\n * @slot mobile-trigger-icon - Optional icon override for the mobile flyout trigger. Provide an inline SVG or wrapper that contains one.\n * @slot mobile-summary-icon - Optional icon override for the mobile account summary block. Provide an inline SVG or wrapper that contains one.\n * @slot account-status-icon - Optional icon override for the built-in account meta status indicator. Provide an inline SVG or wrapper that contains one.\n * @slot right - Non-list content for the right panel (e.g. search).\n * @slot right-list - List items for the right panel (rendered inside role=\"list\").\n * @fires on-account-meta-copy - Emits when a copy-style account meta action is activated.\n * @cssprop [--kyn-workspace-switcher-max-height=none] - Maximum height of the switcher panel.\n * @cssprop [--kyn-workspace-switcher-left-panel-width=275px] - Width of the left panel in desktop two-panel layout.\n */\n@customElement('kyn-workspace-switcher')\nexport class WorkspaceSwitcher extends LitElement {\n static override styles = unsafeCSS(WorkspaceSwitcherScss);\n\n /** Text string customization. */\n @property({ type: Object })\n accessor textStrings = _defaultTextStrings;\n\n /** Built-in account meta content for the left panel. */\n @property({ attribute: false })\n accessor accountMeta: WorkspaceSwitcherAccountMeta | null = null;\n\n /** Mobile drill-down view state. 'root' shows left panel, 'detail' shows right panel.\n * @internal\n */\n @property({ type: String, reflect: true })\n accessor view: 'root' | 'detail' = 'root';\n\n /** Hides the heading above the account meta info. */\n @property({ type: Boolean, reflect: true })\n accessor hideCurrentTitle = false;\n\n /** Hides the heading above the lower left-hand side list. Example: suppress for accounts-only customers. */\n @property({ type: Boolean, reflect: true })\n accessor hideWorkspacesTitle = false;\n\n /** Hides the divider beneath the `left` slot content. */\n @property({ type: Boolean, reflect: true, attribute: 'hide-left-divider' })\n accessor hideLeftDivider = false;\n\n /** Merged text strings.\n * @internal\n */\n @state()\n private accessor _textStrings = _defaultTextStrings;\n\n /** Tracks whether legacy left-slot content is present. */\n @state()\n private accessor _hasLegacyLeftSlotContent = false;\n\n /** Tracks which copy-style account meta item is showing success feedback. */\n @state()\n private accessor _copiedAccountMetaIndex: number | null = null;\n\n /**\n * The nearest flyout host, if any.\n * @internal\n */\n private _flyoutHost: HeaderFlyoutHost | null = null;\n\n /**\n * Clears transient copy feedback after a short delay.\n * @internal\n */\n private _copyFeedbackTimeout: number | null = null;\n\n /**\n * Watches for legacy slot usage changes.\n * @internal\n */\n private _lightDomObserver: MutationObserver | null = null;\n\n /**\n * Ensures legacy slot guidance only logs once per host instance.\n * @internal\n */\n private _hasWarnedAboutLegacyLeftSlot = false;\n\n /**\n * Ensures conflicting input guidance only logs once per host instance.\n * @internal\n */\n private _hasWarnedAboutLeftSlotConflict = false;\n\n /**\n * @internal\n */\n private _handleFlyoutToggle = (e: Event) => {\n const detail = (e as CustomEvent).detail;\n if (!detail?.open) {\n this.view = 'root';\n }\n };\n\n /**\n * Re-syncs the parent flyout when icon slot assignments change.\n * @internal\n */\n private _handleMobileIconSlotChange = () => {\n this._syncFlyoutHostMobilePresentation();\n };\n\n override connectedCallback() {\n super.connectedCallback();\n this._updateLegacyLeftSlotState();\n this._lightDomObserver = new MutationObserver(() =>\n this._updateLegacyLeftSlotState()\n );\n this._lightDomObserver.observe(this, {\n childList: true,\n attributes: true,\n attributeFilter: ['slot'],\n });\n this._flyoutHost = this.closest(\n 'kyn-header-flyout'\n ) as HeaderFlyoutHost | null;\n this._flyoutHost?.addEventListener(\n 'on-flyout-toggle',\n this._handleFlyoutToggle as EventListener\n );\n this._syncFlyoutHostMobilePresentation();\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n this._flyoutHost?.removeEventListener(\n 'on-flyout-toggle',\n this._handleFlyoutToggle as EventListener\n );\n this._clearFlyoutHostMobilePresentation();\n this._clearCopyFeedback();\n this._lightDomObserver?.disconnect();\n this._lightDomObserver = null;\n this._flyoutHost = null;\n }\n\n override willUpdate(changedProperties: Map<string, unknown>) {\n if (changedProperties.has('textStrings')) {\n this._textStrings = deepmerge(_defaultTextStrings, this.textStrings);\n }\n\n if (changedProperties.has('accountMeta')) {\n this._clearCopyFeedback();\n this._warnForLegacyLeftSlotUsage();\n }\n }\n\n override updated(changedProperties: Map<string, unknown>) {\n if (changedProperties.has('textStrings')) {\n this._updateChildMenuItemTextStrings();\n }\n\n if (\n changedProperties.has('textStrings') ||\n changedProperties.has('accountMeta')\n ) {\n this._syncFlyoutHostMobilePresentation();\n }\n }\n\n override render() {\n const showLeftHeader =\n this.accountMeta != null || this._hasLegacyLeftSlotContent;\n\n return html`\n <div hidden aria-hidden=\"true\">\n <slot\n name=\"mobile-trigger-icon\"\n @slotchange=${this._handleMobileIconSlotChange}\n ></slot>\n <slot\n name=\"mobile-summary-icon\"\n @slotchange=${this._handleMobileIconSlotChange}\n ></slot>\n </div>\n <div class=\"workspace-switcher\">\n <div class=\"workspace-switcher__left\">\n ${!this.hideCurrentTitle\n ? html`<span class=\"workspace-switcher__title\"\n >${this._textStrings.currentTitle}</span\n >`\n : null}\n ${showLeftHeader\n ? html`\n <div class=\"workspace-switcher__left-header\">\n ${this.accountMeta\n ? this._renderAccountMeta()\n : html`<slot name=\"left\"></slot>`}\n </div>\n `\n : null}\n ${!this.hideWorkspacesTitle\n ? html`<span class=\"workspace-switcher__title\"\n >${this._textStrings.workspacesTitle}</span\n >`\n : null}\n <div class=\"workspace-switcher__list\" role=\"list\">\n <slot name=\"left-list\"></slot>\n </div>\n </div>\n <div class=\"workspace-switcher__right\">\n <kyn-workspace-switcher-menu-item\n class=\"workspace-switcher__back\"\n variant=\"back\"\n name=${this._textStrings.backToWorkspaces}\n @on-click=${this._handleBackClick}\n ></kyn-workspace-switcher-menu-item>\n <slot name=\"right\"></slot>\n <div class=\"workspace-switcher__list\" role=\"list\">\n <slot name=\"right-list\"></slot>\n </div>\n </div>\n </div>\n `;\n }\n\n private _handleBackClick() {\n this.view = 'root';\n }\n\n private _updateLegacyLeftSlotState() {\n this._hasLegacyLeftSlotContent = Array.from(this.children).some(\n (child) => child.getAttribute('slot') === 'left'\n );\n this._updateChildMenuItemTextStrings();\n this._warnForLegacyLeftSlotUsage();\n this._syncFlyoutHostMobilePresentation();\n }\n\n private _updateChildMenuItemTextStrings() {\n const menuItemTextStrings = {\n launchAssistiveText: this._textStrings.launchAssistiveText,\n };\n\n this.querySelectorAll<WorkspaceSwitcherMenuItem>(\n 'kyn-workspace-switcher-menu-item'\n ).forEach((item) => {\n item.textStrings = menuItemTextStrings;\n });\n }\n\n private _syncFlyoutHostMobilePresentation() {\n this._emitFlyoutHostMobilePresentation({\n buttonIconSvg: this._getMobilePresentationIconSvg(\n 'mobile-trigger-icon',\n accountsIcon\n ),\n summaryIconSvg: this.accountMeta?.name\n ? this._getMobilePresentationIconSvg(\n 'mobile-summary-icon',\n checkmarkFilledIcon\n )\n : '',\n summaryLabel: this.accountMeta?.name ?? '',\n summaryDetails:\n this.accountMeta?.items\n ?.filter((item) => !!item.text?.trim())\n .slice(0, 2) ?? [],\n mobileLabel: this._textStrings.backToWorkspaces,\n hideButtonContentOnMobile: true,\n });\n }\n\n private _clearFlyoutHostMobilePresentation() {\n this._emitFlyoutHostMobilePresentation();\n }\n\n private _emitFlyoutHostMobilePresentation(\n detail: MobilePresentationDetail = {}\n ) {\n this._flyoutHost?.dispatchEvent(\n new CustomEvent(_mobilePresentationEvent, {\n detail,\n })\n );\n }\n\n private _getMobilePresentationIconSvg(\n slotName: 'mobile-trigger-icon' | 'mobile-summary-icon',\n fallbackSvg = ''\n ) {\n const assignedIconHost = Array.from(this.children).find(\n (child) => child.getAttribute('slot') === slotName\n );\n\n if (!assignedIconHost) return fallbackSvg;\n\n const iconNode =\n assignedIconHost.tagName.toLowerCase() === 'svg'\n ? assignedIconHost\n : assignedIconHost.querySelector('svg');\n\n if (iconNode?.outerHTML.trim().startsWith('<svg')) {\n return iconNode.outerHTML;\n }\n\n return fallbackSvg;\n }\n\n private _warnForLegacyLeftSlotUsage() {\n if (!this._hasLegacyLeftSlotContent || typeof console === 'undefined')\n return;\n\n if (this.accountMeta && !this._hasWarnedAboutLeftSlotConflict) {\n console.warn(\n '[kyn-workspace-switcher] `accountMeta` overrides legacy `slot=\"left\"` content. Remove the slot content or migrate fully to `accountMeta`.'\n );\n this._hasWarnedAboutLeftSlotConflict = true;\n return;\n }\n\n if (!this.accountMeta && !this._hasWarnedAboutLegacyLeftSlot) {\n console.warn(\n '[kyn-workspace-switcher] `slot=\"left\"` is a legacy API. Prefer the `accountMeta` property for rigid account meta rendering.'\n );\n this._hasWarnedAboutLegacyLeftSlot = true;\n }\n }\n\n private _renderAccountMeta() {\n if (!this.accountMeta) return null;\n\n return html`\n <div class=\"workspace-switcher__account-meta\">\n <span\n class=\"workspace-switcher__account-meta-status\"\n aria-hidden=\"true\"\n >\n <slot name=\"account-status-icon\"\n >${unsafeSVG(checkmarkFilledIcon)}</slot\n >\n </span>\n <div class=\"workspace-switcher__account-meta-content\">\n <span\n class=\"workspace-switcher__account-meta-name\"\n title=${this.accountMeta.name}\n >\n ${this.accountMeta.name}\n </span>\n ${this.accountMeta.items?.map((item, index) =>\n this._renderAccountMetaItem(item, index)\n )}\n </div>\n </div>\n `;\n }\n\n private _renderAccountMetaItem(\n item: WorkspaceSwitcherAccountMetaItem,\n index: number\n ) {\n const icon =\n item.actionIcon === 'copy'\n ? this._copiedAccountMetaIndex === index\n ? checkmarkIcon\n : copyIcon\n : item.actionIcon === 'launch'\n ? launchIcon\n : null;\n\n if (item.href || item.actionIcon === 'copy') {\n const target = item.target ?? LINK_TARGETS.SELF;\n const rel =\n item.rel ?? (target === '_blank' ? 'noopener noreferrer' : '');\n\n return html`\n <kyn-link\n class=\"workspace-switcher__account-meta-link\"\n standalone\n animationInactive\n href=${item.href || 'javascript:void(0)'}\n target=${target}\n rel=${rel}\n @on-click=${(e: CustomEvent) =>\n this._handleAccountMetaItemClick(e, item, index)}\n >\n ${item.text}\n ${icon\n ? html`\n <span\n slot=\"icon\"\n class=\"workspace-switcher__account-meta-link-icon\"\n >\n ${unsafeSVG(icon)}\n </span>\n `\n : null}\n </kyn-link>\n `;\n }\n\n return html`\n <span class=\"workspace-switcher__account-meta-item\">${item.text}</span>\n `;\n }\n\n private async _handleAccountMetaItemClick(\n e: CustomEvent,\n item: WorkspaceSwitcherAccountMetaItem,\n index: number\n ) {\n if (item.actionIcon !== 'copy') return;\n\n const copyValue = item.copyValue ?? item.text;\n const origEvent = e.detail?.origEvent as Event | undefined;\n\n origEvent?.preventDefault();\n const clipboard = globalThis.navigator?.clipboard;\n\n try {\n await clipboard?.writeText(copyValue);\n this._showCopyFeedback(index);\n } catch {\n return;\n }\n\n this.dispatchEvent(\n new CustomEvent('on-account-meta-copy', {\n detail: { index, text: item.text, value: copyValue, success: true },\n bubbles: true,\n composed: true,\n })\n );\n }\n\n private _showCopyFeedback(index: number) {\n this._copiedAccountMetaIndex = index;\n\n if (this._copyFeedbackTimeout != null) {\n window.clearTimeout(this._copyFeedbackTimeout);\n }\n\n this._copyFeedbackTimeout = window.setTimeout(() => {\n this._copiedAccountMetaIndex = null;\n this._copyFeedbackTimeout = null;\n }, 3000);\n }\n\n private _clearCopyFeedback() {\n this._copiedAccountMetaIndex = null;\n\n if (this._copyFeedbackTimeout != null) {\n window.clearTimeout(this._copyFeedbackTimeout);\n this._copyFeedbackTimeout = null;\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-workspace-switcher': WorkspaceSwitcher;\n }\n}\n"],"names":["_defaultTextStrings","currentTitle","workspacesTitle","backToWorkspaces","launchAssistiveText","WorkspaceSwitcher","customElement","LitElement","_classThis","_classSuper","_WorkspaceSwitcher_textStrings_accessor_storage","set","this","__runInitializers","_textStrings_initializers","_WorkspaceSwitcher_accountMeta_accessor_storage","_textStrings_extraInitializers","_accountMeta_initializers","_WorkspaceSwitcher_view_accessor_storage","_accountMeta_extraInitializers","_view_initializers","_WorkspaceSwitcher_hideCurrentTitle_accessor_storage","_view_extraInitializers","_hideCurrentTitle_initializers","_WorkspaceSwitcher_hideWorkspacesTitle_accessor_storage","_hideCurrentTitle_extraInitializers","_hideWorkspacesTitle_initializers","_WorkspaceSwitcher_hideLeftDivider_accessor_storage","_hideWorkspacesTitle_extraInitializers","_hideLeftDivider_initializers","_WorkspaceSwitcher__textStrings_accessor_storage","_hideLeftDivider_extraInitializers","__textStrings_initializers","_WorkspaceSwitcher__hasLegacyLeftSlotContent_accessor_storage","__textStrings_extraInitializers","__hasLegacyLeftSlotContent_initializers","_WorkspaceSwitcher__copiedAccountMetaIndex_accessor_storage","__hasLegacyLeftSlotContent_extraInitializers","__copiedAccountMetaIndex_initializers","_flyoutHost","__copiedAccountMetaIndex_extraInitializers","_copyFeedbackTimeout","_lightDomObserver","_hasWarnedAboutLegacyLeftSlot","_hasWarnedAboutLeftSlotConflict","_handleFlyoutToggle","e","detail","open","view","_handleMobileIconSlotChange","_syncFlyoutHostMobilePresentation","textStrings","__classPrivateFieldGet","value","__classPrivateFieldSet","accountMeta","hideCurrentTitle","hideWorkspacesTitle","hideLeftDivider","_textStrings","_hasLegacyLeftSlotContent","_copiedAccountMetaIndex","connectedCallback","super","_updateLegacyLeftSlotState","MutationObserver","observe","childList","attributes","attributeFilter","closest","_a","addEventListener","disconnectedCallback","removeEventListener","_clearFlyoutHostMobilePresentation","_clearCopyFeedback","_b","disconnect","willUpdate","changedProperties","has","deepmerge","_warnForLegacyLeftSlotUsage","updated","_updateChildMenuItemTextStrings","render","showLeftHeader","html","_renderAccountMeta","_handleBackClick","Array","from","children","some","child","getAttribute","menuItemTextStrings","querySelectorAll","forEach","item","_emitFlyoutHostMobilePresentation","buttonIconSvg","_getMobilePresentationIconSvg","accountsIcon","summaryIconSvg","name","checkmarkFilledIcon","summaryLabel","_c","summaryDetails","_f","_e","_d","items","filter","text","trim","slice","mobileLabel","hideButtonContentOnMobile","dispatchEvent","CustomEvent","slotName","fallbackSvg","assignedIconHost","find","iconNode","tagName","toLowerCase","querySelector","outerHTML","startsWith","console","warn","unsafeSVG","map","index","_renderAccountMetaItem","icon","actionIcon","checkmarkIcon","copyIcon","launchIcon","href","target","LINK_TARGETS","SELF","rel","_handleAccountMetaItemClick","copyValue","origEvent","preventDefault","clipboard","globalThis","navigator","writeText","_showCopyFeedback","success","bubbles","composed","window","clearTimeout","setTimeout","_textStrings_decorators","property","type","Object","_accountMeta_decorators","attribute","String","reflect","Boolean","_hideLeftDivider_decorators","__textStrings_decorators","state","__hasLegacyLeftSlotContent_decorators","__copiedAccountMetaIndex_decorators","__esDecorate","kind","static","private","access","obj","get","metadata","_metadata","_view_decorators","_hideCurrentTitle_decorators","_hideWorkspacesTitle_decorators","_classDescriptor","_classDecorators","_classExtraInitializers","styles","unsafeCSS","WorkspaceSwitcherScss"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkBA,MAAMA,EAAsB,CAC1BC,aAAc,UACdC,gBAAiB,aACjBC,iBAAkB,aAClBC,oBAAqB,0BAiDVC,EAAiB,yDAD7BC,EAAc,kCACwBC,2GAARC,EAAA,cAAQC,oCAK5BC,EAAAC,I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rivateFieldGet as n,__classPrivateFieldSet as a}from"tslib";import{css as m,LitElement as s,unsafeCSS as o,html as r}from"lit";import{customElement as c,property as l,state as u}from"lit/decorators.js";import{classMap as d}from"lit/directives/class-map.js";import{unsafeSVG as h}from"lit/directives/unsafe-svg.js";import{deepmerge as v}from"deepmerge-ts";import{f as p,d as k,l as _}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BX5ha5gR.js";import"../../reusable/iconSelector/iconSelector.js";import"../../reusable/iconSelector/iconSelectorGroup.js";import"lit-html/directives/class-map.js";import"lit-html/directives/unsafe-svg.js";var g=m`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as n,__classPrivateFieldSet as a}from"tslib";import{css as m,LitElement as s,unsafeCSS as o,html as r}from"lit";import{customElement as c,property as l,state as u}from"lit/decorators.js";import{classMap as d}from"lit/directives/class-map.js";import{unsafeSVG as h}from"lit/directives/unsafe-svg.js";import{deepmerge as v}from"deepmerge-ts";import{f as p,d as k,l as _}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BF-nc1nV.js";import"../../reusable/iconSelector/iconSelector.js";import"../../reusable/iconSelector/iconSelectorGroup.js";import"lit-html/directives/class-map.js";import"lit-html/directives/unsafe-svg.js";var g=m`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -37,10 +37,17 @@ export declare class AccordionItem extends LitElement {
37
37
  * @ignore
38
38
  */
39
39
  private accessor _compact;
40
+ /**
41
+ * Whether an icon is assigned to the icon slot.
42
+ * @ignore
43
+ */
44
+ private accessor _hasIcon;
40
45
  setIndex(index: number): void;
41
46
  setShowNumbers(value: boolean): void;
42
47
  setFilledHeader(value: boolean): void;
43
48
  setCompact(value: boolean): void;
49
+ private _handleIconSlotChange;
50
+ firstUpdated(): void;
44
51
  open(): void;
45
52
  close(): void;
46
53
  private _handleClick;
@@ -1 +1 @@
1
- {"version":3,"file":"accordionItem.d.ts","sourceRoot":"","sources":["../../../../src/components/reusable/accordion/accordionItem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAQ,UAAU,EAAa,MAAM,KAAK,CAAC;AAOlD;;;;;;;;GAQG;AACH,qBACa,aAAc,SAAQ,UAAU;IAC3C,OAAgB,MAAM,0BAAyB;IAE/C,mCAAmC;IAEnC,QAAQ,CAAC,MAAM,UAAS;IAExB,qCAAqC;IAErC,QAAQ,CAAC,QAAQ,UAAS;IAE1B;;;OAGG;IACM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAK;IAErC;;;OAGG;IACM,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IAE9C;;;OAGG;IACM,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IAEhD;;;OAGG;IACM,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAE3C,QAAQ,CAAC,KAAK,EAAE,MAAM;IAItB,cAAc,CAAC,KAAK,EAAE,OAAO;IAI7B,eAAe,CAAC,KAAK,EAAE,OAAO;IAI9B,UAAU,CAAC,KAAK,EAAE,OAAO;IAIzB,IAAI;IAIJ,KAAK;IAIL,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,gBAAgB;IASf,MAAM;CA0DhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,aAAa,CAAC;KACrC;CACF"}
1
+ {"version":3,"file":"accordionItem.d.ts","sourceRoot":"","sources":["../../../../src/components/reusable/accordion/accordionItem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAQ,UAAU,EAAa,MAAM,KAAK,CAAC;AAOlD;;;;;;;;GAQG;AACH,qBACa,aAAc,SAAQ,UAAU;IAC3C,OAAgB,MAAM,0BAAyB;IAE/C,mCAAmC;IAEnC,QAAQ,CAAC,MAAM,UAAS;IAExB,qCAAqC;IAErC,QAAQ,CAAC,QAAQ,UAAS;IAE1B;;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