@kyndryl-design-system/shidoka-applications 2.98.2 → 2.99.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/common/helpers/swiper.js +1 -1
  2. package/components/ai/sourcesFeedback/aiSourcesFeedback.js +3 -3
  3. package/components/ai/sourcesFeedback/index.js +1 -1
  4. package/components/global/header/headerCategories.js +1 -1
  5. package/components/global/header/headerCategory.js +1 -1
  6. package/components/global/header/headerFlyout.js +1 -1
  7. package/components/global/header/headerFlyouts.js +1 -1
  8. package/components/global/header/headerLink.js +1 -1
  9. package/components/global/header/headerNav.js +1 -1
  10. package/components/global/header/index.js +1 -1
  11. package/components/global/localNav/index.js +1 -1
  12. package/components/global/localNav/localNav.js +1 -1
  13. package/components/global/localNav/localNavLink.js +1 -1
  14. package/components/reusable/accordion/accordionItem.js +3 -3
  15. package/components/reusable/accordion/index.js +1 -1
  16. package/components/reusable/badge/badge.js +3 -3
  17. package/components/reusable/badge/index.js +1 -1
  18. package/components/reusable/blockCodeView/blockCodeView.js +1 -1
  19. package/components/reusable/blockCodeView/index.js +1 -1
  20. package/components/reusable/buttonGroup/buttonGroup.js +3 -3
  21. package/components/reusable/buttonGroup/index.js +1 -1
  22. package/components/reusable/card/card.js +1 -1
  23. package/components/reusable/card/index.js +1 -1
  24. package/components/reusable/checkbox/checkboxGroup.js +1 -1
  25. package/components/reusable/checkbox/index.js +1 -1
  26. package/components/reusable/colorInput/colorInput.js +1 -1
  27. package/components/reusable/colorInput/index.js +1 -1
  28. package/components/reusable/datePicker/datepicker.js +1 -1
  29. package/components/reusable/datePicker/index.js +1 -1
  30. package/components/reusable/daterangepicker/daterangepicker.js +1 -1
  31. package/components/reusable/daterangepicker/index.js +1 -1
  32. package/components/reusable/dropdown/dropdown.js +1 -1
  33. package/components/reusable/dropdown/dropdownOption.js +3 -3
  34. package/components/reusable/dropdown/enhancedDropdownOption.js +3 -3
  35. package/components/reusable/dropdown/index.js +1 -1
  36. package/components/reusable/fileUploader/fileUploader.js +1 -1
  37. package/components/reusable/fileUploader/fileUploaderListContainer.js +1 -1
  38. package/components/reusable/fileUploader/index.js +1 -1
  39. package/components/reusable/iconSelector/iconSelector.js +3 -3
  40. package/components/reusable/iconSelector/index.js +1 -1
  41. package/components/reusable/inlineConfirm/index.js +1 -1
  42. package/components/reusable/inlineConfirm/inlineConfirm.js +3 -3
  43. package/components/reusable/loaders/aiLoader.js +1 -1
  44. package/components/reusable/loaders/index.js +1 -1
  45. package/components/reusable/loaders/inline.js +1 -1
  46. package/components/reusable/loaders/spinner.js +1 -1
  47. package/components/reusable/modal/index.js +1 -1
  48. package/components/reusable/modal/modal.js +1 -1
  49. package/components/reusable/multiInputField/index.js +1 -1
  50. package/components/reusable/multiInputField/multiInputField.js +1 -1
  51. package/components/reusable/notification/index.js +1 -1
  52. package/components/reusable/notification/notification.js +3 -3
  53. package/components/reusable/numberInput/index.js +1 -1
  54. package/components/reusable/numberInput/numberInput.js +1 -1
  55. package/components/reusable/overflowMenu/index.js +1 -1
  56. package/components/reusable/overflowMenu/overflowMenu.js +3 -3
  57. package/components/reusable/overflowMenu/overflowMenuItem.js +1 -1
  58. package/components/reusable/pagetitle/index.js +1 -1
  59. package/components/reusable/pagetitle/pageTitle.js +3 -3
  60. package/components/reusable/pagetitle/pageTitleOption.js +1 -1
  61. package/components/reusable/pagination/Pagination.js +1 -1
  62. package/components/reusable/pagination/index.js +1 -1
  63. package/components/reusable/pagination/pagination-navigation-buttons.js +1 -1
  64. package/components/reusable/pagination/pagination-page-size-dropdown.js +1 -1
  65. package/components/reusable/popover/index.js +1 -1
  66. package/components/reusable/popover/popover.js +1 -1
  67. package/components/reusable/progressBar/index.js +1 -1
  68. package/components/reusable/progressBar/progressBar.js +1 -1
  69. package/components/reusable/queryBuilder/index.js +1 -1
  70. package/components/reusable/queryBuilder/queryBuilder.js +1 -1
  71. package/components/reusable/queryBuilder/queryBuilderGroup.js +3 -3
  72. package/components/reusable/queryBuilder/queryBuilderRule.js +3 -3
  73. package/components/reusable/radioButton/index.js +1 -1
  74. package/components/reusable/radioButton/radioButtonGroup.js +1 -1
  75. package/components/reusable/search/index.js +1 -1
  76. package/components/reusable/search/search.js +3 -3
  77. package/components/reusable/sideDrawer/index.js +1 -1
  78. package/components/reusable/sideDrawer/sideDrawer.js +1 -1
  79. package/components/reusable/sliderInput/index.js +1 -1
  80. package/components/reusable/sliderInput/sliderInput.js +3 -3
  81. package/components/reusable/splitButton/index.js +1 -1
  82. package/components/reusable/splitButton/splitButton.js +1 -1
  83. package/components/reusable/stepper/index.js +1 -1
  84. package/components/reusable/stepper/stepper.js +1 -1
  85. package/components/reusable/stepper/stepperItem.js +3 -3
  86. package/components/reusable/table/index.js +1 -1
  87. package/components/reusable/table/table-body.js +1 -1
  88. package/components/reusable/table/table-header-row.js +1 -1
  89. package/components/reusable/table/table-header.js +1 -1
  90. package/components/reusable/table/table-row.js +1 -1
  91. package/components/reusable/table/table.skeleton.js +1 -1
  92. package/components/reusable/tag/index.js +1 -1
  93. package/components/reusable/tag/tag.js +1 -1
  94. package/components/reusable/tag/tagGroup.js +1 -1
  95. package/components/reusable/textArea/index.js +1 -1
  96. package/components/reusable/textArea/textArea.js +1 -1
  97. package/components/reusable/textInput/index.js +1 -1
  98. package/components/reusable/textInput/textInput.js +1 -1
  99. package/components/reusable/timepicker/index.js +1 -1
  100. package/components/reusable/timepicker/timepicker.js +1 -1
  101. package/components/reusable/tooltip/index.js +1 -1
  102. package/components/reusable/tooltip/tooltip.js +1 -1
  103. package/components/reusable/widget/index.js +1 -1
  104. package/components/reusable/widget/widget.js +1 -1
  105. package/components/reusable/widget/widgetDragHandle.js +1 -1
  106. package/index.d.ts +0 -1
  107. package/index.d.ts.map +1 -1
  108. package/index.js +1 -1
  109. package/package.json +1 -1
  110. package/{table.skeleton-lXMbJbGN.js → table.skeleton-B0rBDdxB.js} +2 -2
  111. package/{table.skeleton-lXMbJbGN.js.map → table.skeleton-B0rBDdxB.js.map} +1 -1
  112. package/vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js +2 -0
  113. package/vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js.map +1 -0
  114. package/components/global/workspaceSwitcher/index.d.ts +0 -3
  115. package/components/global/workspaceSwitcher/index.d.ts.map +0 -1
  116. package/components/global/workspaceSwitcher/index.js +0 -2
  117. package/components/global/workspaceSwitcher/index.js.map +0 -1
  118. package/components/global/workspaceSwitcher/workspaceSwitcher.d.ts +0 -121
  119. package/components/global/workspaceSwitcher/workspaceSwitcher.d.ts.map +0 -1
  120. package/components/global/workspaceSwitcher/workspaceSwitcher.js +0 -378
  121. package/components/global/workspaceSwitcher/workspaceSwitcher.js.map +0 -1
  122. package/components/global/workspaceSwitcher/workspaceSwitcherMenuItem.d.ts +0 -62
  123. package/components/global/workspaceSwitcher/workspaceSwitcherMenuItem.d.ts.map +0 -1
  124. package/components/global/workspaceSwitcher/workspaceSwitcherMenuItem.js +0 -283
  125. package/components/global/workspaceSwitcher/workspaceSwitcherMenuItem.js.map +0 -1
  126. package/vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js +0 -2
  127. package/vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{a as e}from"../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.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-BDIAC-7x.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-CYoS5eiw.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{Q as m,R as f,S as v,T as g,k as y,c as C}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.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;
@@ -107,7 +107,7 @@ import{__setFunctionName as e,__esDecorate as t,__runInitializers as s,__classPr
107
107
  position: absolute;
108
108
  right: 8px;
109
109
  top: 8px;
110
- }`;const x={sourcesText:"Sources",foundSources:"Found sources",showMore:"Show more",showLess:"Show less",positiveFeedback:"Share what you liked",negativeFeedback:"Help us improve"};let w=(()=>{var n,w,S,D,$,O,T,F,j,E,M,R,U,W;let A,z,L,B,P,H,I,q,G,J,K,N,Q,V,X,Y,Z=[d("kyn-ai-sources-feedback")],ee=[],te=l,se=[],ie=[],ae=[],ne=[],le=[],oe=[],ce=[],de=[],re=[],he=[],ue=[],pe=[],ke=[],be=[],me=[],fe=[],ve=[],ge=[],ye=[],Ce=[],_e=[],xe=[],we=[],Se=[],De=[],$e=[],Oe=[],Te=[];return z=class extends te{get sourcesOpened(){return i(this,n,"f")}set sourcesOpened(e){a(this,n,e,"f")}get feedbackOpened(){return i(this,w,"f")}set feedbackOpened(e){a(this,w,e,"f")}get sourcesDisabled(){return i(this,S,"f")}set sourcesDisabled(e){a(this,S,e,"f")}get feedbackDisabled(){return i(this,D,"f")}set feedbackDisabled(e){a(this,D,e,"f")}get revealAllSources(){return i(this,$,"f")}set revealAllSources(e){a(this,$,e,"f")}get textStrings(){return i(this,O,"f")}set textStrings(e){a(this,O,e,"f")}get closeText(){return i(this,T,"f")}set closeText(e){a(this,T,e,"f")}get _limitCount(){return i(this,F,"f")}set _limitCount(e){a(this,F,e,"f")}get limitRevealed(){return i(this,j,"f")}set limitRevealed(e){a(this,j,e,"f")}get _textStrings(){return i(this,E,"f")}set _textStrings(e){a(this,E,e,"f")}get _selectedFeedbackType(){return i(this,M,"f")}set _selectedFeedbackType(e){a(this,M,e,"f")}get _sourceEls(){return i(this,R,"f")}set _sourceEls(e){a(this,R,e,"f")}get thumbsUpClickCount(){return i(this,U,"f")}set thumbsUpClickCount(e){a(this,U,e,"f")}get thumbsDownClickCount(){return i(this,W,"f")}set thumbsDownClickCount(e){a(this,W,e,"f")}render(){const e=k({"kyn-sources":!0,opened:this.sourcesOpened,disabled:this.sourcesDisabled}),t=k({"kyn-pos-feedback":!0,disabled:this.feedbackDisabled&&"positive"===this._selectedFeedbackType}),s=k({"kyn-neg-feedback":!0,disabled:this.feedbackDisabled&&"positive"===this._selectedFeedbackType});return c`
110
+ }`;const x={sourcesText:"Sources",foundSources:"Found sources",showMore:"Show more",showLess:"Show less",positiveFeedback:"Share what you liked",negativeFeedback:"Help us improve"};let w=(()=>{var n,w,S,D,$,O,T,F,j,E,M,R,U,W;let A,z,L,B,P,H,I,Q,q,G,J,K,N,V,X,Y,Z=[d("kyn-ai-sources-feedback")],ee=[],te=l,se=[],ie=[],ae=[],ne=[],le=[],oe=[],ce=[],de=[],re=[],he=[],ue=[],pe=[],ke=[],be=[],me=[],fe=[],ve=[],ge=[],ye=[],Ce=[],_e=[],xe=[],we=[],Se=[],De=[],$e=[],Oe=[],Te=[];return z=class extends te{get sourcesOpened(){return i(this,n,"f")}set sourcesOpened(e){a(this,n,e,"f")}get feedbackOpened(){return i(this,w,"f")}set feedbackOpened(e){a(this,w,e,"f")}get sourcesDisabled(){return i(this,S,"f")}set sourcesDisabled(e){a(this,S,e,"f")}get feedbackDisabled(){return i(this,D,"f")}set feedbackDisabled(e){a(this,D,e,"f")}get revealAllSources(){return i(this,$,"f")}set revealAllSources(e){a(this,$,e,"f")}get textStrings(){return i(this,O,"f")}set textStrings(e){a(this,O,e,"f")}get closeText(){return i(this,T,"f")}set closeText(e){a(this,T,e,"f")}get _limitCount(){return i(this,F,"f")}set _limitCount(e){a(this,F,e,"f")}get limitRevealed(){return i(this,j,"f")}set limitRevealed(e){a(this,j,e,"f")}get _textStrings(){return i(this,E,"f")}set _textStrings(e){a(this,E,e,"f")}get _selectedFeedbackType(){return i(this,M,"f")}set _selectedFeedbackType(e){a(this,M,e,"f")}get _sourceEls(){return i(this,R,"f")}set _sourceEls(e){a(this,R,e,"f")}get thumbsUpClickCount(){return i(this,U,"f")}set thumbsUpClickCount(e){a(this,U,e,"f")}get thumbsDownClickCount(){return i(this,W,"f")}set thumbsDownClickCount(e){a(this,W,e,"f")}render(){const e=k({"kyn-sources":!0,opened:this.sourcesOpened,disabled:this.sourcesDisabled}),t=k({"kyn-pos-feedback":!0,disabled:this.feedbackDisabled&&"positive"===this._selectedFeedbackType}),s=k({"kyn-neg-feedback":!0,disabled:this.feedbackDisabled&&"positive"===this._selectedFeedbackType});return c`
111
111
  <div class="action-bar">
112
112
  <div class="left-div">
113
113
  <slot name="copy"></slot>
@@ -221,5 +221,5 @@ import{__setFunctionName as e,__esDecorate as t,__runInitializers as s,__classPr
221
221
 
222
222
  <slot name="feedback-form"></slot>
223
223
  </div>
224
- `}_handleClick(e,t,s){var i;if(e.preventDefault(),"sources"===t&&this.sourcesDisabled||"feedback"===t&&this.feedbackDisabled)return;(null===(i=e.target.id)||void 0===i?void 0:i.includes("kyn-feedback-title"))&&s&&this._updateFeedbackCounts(s),("sources"===t||this._shouldEmitFeedbackEvent(s))&&this._emitToggleEvent(t,s)}_updateFeedbackCounts(e){const t="positive"===e&&this.thumbsUpClickCount%2!=0||"negative"===e&&this.thumbsDownClickCount%2!=0;"positive"===e?(this.thumbsUpClickCount++,this.thumbsDownClickCount-=this.thumbsDownClickCount%2):(this.thumbsDownClickCount++,this.thumbsUpClickCount-=this.thumbsUpClickCount%2),t&&this.dispatchEvent(new CustomEvent("on-feedback-deselected",{detail:{feedbackType:e},bubbles:!0,composed:!0}))}_shouldEmitFeedbackEvent(e){if(!e)return!1;const t=e=>e%2!=0;return"positive"===e&&(t(this.thumbsUpClickCount)||this.feedbackOpened&&!t(this.thumbsUpClickCount))||"negative"===e&&(t(this.thumbsDownClickCount)||this.feedbackOpened&&!t(this.thumbsDownClickCount))}_emitToggleEvent(e,t){"sources"===e?(this.sourcesOpened=!this.sourcesOpened,this.feedbackOpened=!1):"feedback"===e&&(this.sourcesOpened=!1,this._toggleFeedbackPanel(t)),this.dispatchEvent(new CustomEvent("on-toggle",{detail:{sourcesOpened:this.sourcesOpened,feedbackOpened:this.feedbackOpened,selectedFeedbackType:this._selectedFeedbackType},bubbles:!0,composed:!0}))}_toggleFeedbackPanel(e){e&&(this._selectedFeedbackType===e&&this.feedbackOpened?(this.feedbackOpened=!1,this._selectedFeedbackType=null):(this.feedbackOpened=!0,this._selectedFeedbackType=e))}_handleSlotChange(){this._toggleLimitRevealed(this.limitRevealed)}_toggleLimitRevealed(e){this.limitRevealed=e,this._sourceEls.forEach(((e,t)=>{this.revealAllSources||this.limitRevealed||t<this._limitCount?e.style.display="block":e.style.display="none"}))}willUpdate(e){e.has("textStrings")&&(this._textStrings=p(x,this.textStrings))}updated(e){e.has("revealAllSources")&&void 0!==e.get("revealAllSources")&&this._toggleLimitRevealed(!1)}constructor(){super(...arguments),n.set(this,s(this,se,!1)),w.set(this,(s(this,ie),s(this,ae,!1))),S.set(this,(s(this,ne),s(this,le,!1))),D.set(this,(s(this,oe),s(this,ce,!1))),$.set(this,(s(this,de),s(this,re,!1))),O.set(this,(s(this,he),s(this,ue,x))),T.set(this,(s(this,pe),s(this,ke,"Close"))),F.set(this,(s(this,be),s(this,me,4))),j.set(this,(s(this,fe),s(this,ve,!1))),E.set(this,(s(this,ge),s(this,ye,x))),M.set(this,(s(this,Ce),s(this,_e,null))),R.set(this,(s(this,xe),s(this,we,void 0))),U.set(this,(s(this,Se),s(this,De,0))),W.set(this,(s(this,$e),s(this,Oe,0))),s(this,Te)}},n=new WeakMap,w=new WeakMap,S=new WeakMap,D=new WeakMap,$=new WeakMap,O=new WeakMap,T=new WeakMap,F=new WeakMap,j=new WeakMap,E=new WeakMap,M=new WeakMap,R=new WeakMap,U=new WeakMap,W=new WeakMap,e(z,"AISourcesFeedback"),(()=>{var e;const s="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=te[Symbol.metadata])&&void 0!==e?e:null):void 0;L=[r({type:Boolean})],B=[r({type:Boolean})],P=[r({type:Boolean})],H=[r({type:Boolean})],I=[r({type:Boolean})],q=[r({type:Object})],G=[r({type:String})],J=[h()],K=[h()],N=[h()],Q=[h()],V=[u({slot:"sources"})],X=[h()],Y=[h()],t(z,null,L,{kind:"accessor",name:"sourcesOpened",static:!1,private:!1,access:{has:e=>"sourcesOpened"in e,get:e=>e.sourcesOpened,set:(e,t)=>{e.sourcesOpened=t}},metadata:s},se,ie),t(z,null,B,{kind:"accessor",name:"feedbackOpened",static:!1,private:!1,access:{has:e=>"feedbackOpened"in e,get:e=>e.feedbackOpened,set:(e,t)=>{e.feedbackOpened=t}},metadata:s},ae,ne),t(z,null,P,{kind:"accessor",name:"sourcesDisabled",static:!1,private:!1,access:{has:e=>"sourcesDisabled"in e,get:e=>e.sourcesDisabled,set:(e,t)=>{e.sourcesDisabled=t}},metadata:s},le,oe),t(z,null,H,{kind:"accessor",name:"feedbackDisabled",static:!1,private:!1,access:{has:e=>"feedbackDisabled"in e,get:e=>e.feedbackDisabled,set:(e,t)=>{e.feedbackDisabled=t}},metadata:s},ce,de),t(z,null,I,{kind:"accessor",name:"revealAllSources",static:!1,private:!1,access:{has:e=>"revealAllSources"in e,get:e=>e.revealAllSources,set:(e,t)=>{e.revealAllSources=t}},metadata:s},re,he),t(z,null,q,{kind:"accessor",name:"textStrings",static:!1,private:!1,access:{has:e=>"textStrings"in e,get:e=>e.textStrings,set:(e,t)=>{e.textStrings=t}},metadata:s},ue,pe),t(z,null,G,{kind:"accessor",name:"closeText",static:!1,private:!1,access:{has:e=>"closeText"in e,get:e=>e.closeText,set:(e,t)=>{e.closeText=t}},metadata:s},ke,be),t(z,null,J,{kind:"accessor",name:"_limitCount",static:!1,private:!1,access:{has:e=>"_limitCount"in e,get:e=>e._limitCount,set:(e,t)=>{e._limitCount=t}},metadata:s},me,fe),t(z,null,K,{kind:"accessor",name:"limitRevealed",static:!1,private:!1,access:{has:e=>"limitRevealed"in e,get:e=>e.limitRevealed,set:(e,t)=>{e.limitRevealed=t}},metadata:s},ve,ge),t(z,null,N,{kind:"accessor",name:"_textStrings",static:!1,private:!1,access:{has:e=>"_textStrings"in e,get:e=>e._textStrings,set:(e,t)=>{e._textStrings=t}},metadata:s},ye,Ce),t(z,null,Q,{kind:"accessor",name:"_selectedFeedbackType",static:!1,private:!1,access:{has:e=>"_selectedFeedbackType"in e,get:e=>e._selectedFeedbackType,set:(e,t)=>{e._selectedFeedbackType=t}},metadata:s},_e,xe),t(z,null,V,{kind:"accessor",name:"_sourceEls",static:!1,private:!1,access:{has:e=>"_sourceEls"in e,get:e=>e._sourceEls,set:(e,t)=>{e._sourceEls=t}},metadata:s},we,Se),t(z,null,X,{kind:"accessor",name:"thumbsUpClickCount",static:!1,private:!1,access:{has:e=>"thumbsUpClickCount"in e,get:e=>e.thumbsUpClickCount,set:(e,t)=>{e.thumbsUpClickCount=t}},metadata:s},De,$e),t(z,null,Y,{kind:"accessor",name:"thumbsDownClickCount",static:!1,private:!1,access:{has:e=>"thumbsDownClickCount"in e,get:e=>e.thumbsDownClickCount,set:(e,t)=>{e.thumbsDownClickCount=t}},metadata:s},Oe,Te),t(null,A={value:z},Z,{kind:"class",name:z.name,metadata:s},null,ee),z=A.value,s&&Object.defineProperty(z,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})})(),z.styles=o(_),s(z,ee),z})();export{w as AISourcesFeedback};
224
+ `}_handleClick(e,t,s){var i;if(e.preventDefault(),"sources"===t&&this.sourcesDisabled||"feedback"===t&&this.feedbackDisabled)return;(null===(i=e.target.id)||void 0===i?void 0:i.includes("kyn-feedback-title"))&&s&&this._updateFeedbackCounts(s),("sources"===t||this._shouldEmitFeedbackEvent(s))&&this._emitToggleEvent(t,s)}_updateFeedbackCounts(e){const t="positive"===e&&this.thumbsUpClickCount%2!=0||"negative"===e&&this.thumbsDownClickCount%2!=0;"positive"===e?(this.thumbsUpClickCount++,this.thumbsDownClickCount-=this.thumbsDownClickCount%2):(this.thumbsDownClickCount++,this.thumbsUpClickCount-=this.thumbsUpClickCount%2),t&&this.dispatchEvent(new CustomEvent("on-feedback-deselected",{detail:{feedbackType:e},bubbles:!0,composed:!0}))}_shouldEmitFeedbackEvent(e){if(!e)return!1;const t=e=>e%2!=0;return"positive"===e&&(t(this.thumbsUpClickCount)||this.feedbackOpened&&!t(this.thumbsUpClickCount))||"negative"===e&&(t(this.thumbsDownClickCount)||this.feedbackOpened&&!t(this.thumbsDownClickCount))}_emitToggleEvent(e,t){"sources"===e?(this.sourcesOpened=!this.sourcesOpened,this.feedbackOpened=!1):"feedback"===e&&(this.sourcesOpened=!1,this._toggleFeedbackPanel(t)),this.dispatchEvent(new CustomEvent("on-toggle",{detail:{sourcesOpened:this.sourcesOpened,feedbackOpened:this.feedbackOpened,selectedFeedbackType:this._selectedFeedbackType},bubbles:!0,composed:!0}))}_toggleFeedbackPanel(e){e&&(this._selectedFeedbackType===e&&this.feedbackOpened?(this.feedbackOpened=!1,this._selectedFeedbackType=null):(this.feedbackOpened=!0,this._selectedFeedbackType=e))}_handleSlotChange(){this._toggleLimitRevealed(this.limitRevealed)}_toggleLimitRevealed(e){this.limitRevealed=e,this._sourceEls.forEach(((e,t)=>{this.revealAllSources||this.limitRevealed||t<this._limitCount?e.style.display="block":e.style.display="none"}))}willUpdate(e){e.has("textStrings")&&(this._textStrings=p(x,this.textStrings))}updated(e){e.has("revealAllSources")&&void 0!==e.get("revealAllSources")&&this._toggleLimitRevealed(!1)}constructor(){super(...arguments),n.set(this,s(this,se,!1)),w.set(this,(s(this,ie),s(this,ae,!1))),S.set(this,(s(this,ne),s(this,le,!1))),D.set(this,(s(this,oe),s(this,ce,!1))),$.set(this,(s(this,de),s(this,re,!1))),O.set(this,(s(this,he),s(this,ue,x))),T.set(this,(s(this,pe),s(this,ke,"Close"))),F.set(this,(s(this,be),s(this,me,4))),j.set(this,(s(this,fe),s(this,ve,!1))),E.set(this,(s(this,ge),s(this,ye,x))),M.set(this,(s(this,Ce),s(this,_e,null))),R.set(this,(s(this,xe),s(this,we,void 0))),U.set(this,(s(this,Se),s(this,De,0))),W.set(this,(s(this,$e),s(this,Oe,0))),s(this,Te)}},n=new WeakMap,w=new WeakMap,S=new WeakMap,D=new WeakMap,$=new WeakMap,O=new WeakMap,T=new WeakMap,F=new WeakMap,j=new WeakMap,E=new WeakMap,M=new WeakMap,R=new WeakMap,U=new WeakMap,W=new WeakMap,e(z,"AISourcesFeedback"),(()=>{var e;const s="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=te[Symbol.metadata])&&void 0!==e?e:null):void 0;L=[r({type:Boolean})],B=[r({type:Boolean})],P=[r({type:Boolean})],H=[r({type:Boolean})],I=[r({type:Boolean})],Q=[r({type:Object})],q=[r({type:String})],G=[h()],J=[h()],K=[h()],N=[h()],V=[u({slot:"sources"})],X=[h()],Y=[h()],t(z,null,L,{kind:"accessor",name:"sourcesOpened",static:!1,private:!1,access:{has:e=>"sourcesOpened"in e,get:e=>e.sourcesOpened,set:(e,t)=>{e.sourcesOpened=t}},metadata:s},se,ie),t(z,null,B,{kind:"accessor",name:"feedbackOpened",static:!1,private:!1,access:{has:e=>"feedbackOpened"in e,get:e=>e.feedbackOpened,set:(e,t)=>{e.feedbackOpened=t}},metadata:s},ae,ne),t(z,null,P,{kind:"accessor",name:"sourcesDisabled",static:!1,private:!1,access:{has:e=>"sourcesDisabled"in e,get:e=>e.sourcesDisabled,set:(e,t)=>{e.sourcesDisabled=t}},metadata:s},le,oe),t(z,null,H,{kind:"accessor",name:"feedbackDisabled",static:!1,private:!1,access:{has:e=>"feedbackDisabled"in e,get:e=>e.feedbackDisabled,set:(e,t)=>{e.feedbackDisabled=t}},metadata:s},ce,de),t(z,null,I,{kind:"accessor",name:"revealAllSources",static:!1,private:!1,access:{has:e=>"revealAllSources"in e,get:e=>e.revealAllSources,set:(e,t)=>{e.revealAllSources=t}},metadata:s},re,he),t(z,null,Q,{kind:"accessor",name:"textStrings",static:!1,private:!1,access:{has:e=>"textStrings"in e,get:e=>e.textStrings,set:(e,t)=>{e.textStrings=t}},metadata:s},ue,pe),t(z,null,q,{kind:"accessor",name:"closeText",static:!1,private:!1,access:{has:e=>"closeText"in e,get:e=>e.closeText,set:(e,t)=>{e.closeText=t}},metadata:s},ke,be),t(z,null,G,{kind:"accessor",name:"_limitCount",static:!1,private:!1,access:{has:e=>"_limitCount"in e,get:e=>e._limitCount,set:(e,t)=>{e._limitCount=t}},metadata:s},me,fe),t(z,null,J,{kind:"accessor",name:"limitRevealed",static:!1,private:!1,access:{has:e=>"limitRevealed"in e,get:e=>e.limitRevealed,set:(e,t)=>{e.limitRevealed=t}},metadata:s},ve,ge),t(z,null,K,{kind:"accessor",name:"_textStrings",static:!1,private:!1,access:{has:e=>"_textStrings"in e,get:e=>e._textStrings,set:(e,t)=>{e._textStrings=t}},metadata:s},ye,Ce),t(z,null,N,{kind:"accessor",name:"_selectedFeedbackType",static:!1,private:!1,access:{has:e=>"_selectedFeedbackType"in e,get:e=>e._selectedFeedbackType,set:(e,t)=>{e._selectedFeedbackType=t}},metadata:s},_e,xe),t(z,null,V,{kind:"accessor",name:"_sourceEls",static:!1,private:!1,access:{has:e=>"_sourceEls"in e,get:e=>e._sourceEls,set:(e,t)=>{e._sourceEls=t}},metadata:s},we,Se),t(z,null,X,{kind:"accessor",name:"thumbsUpClickCount",static:!1,private:!1,access:{has:e=>"thumbsUpClickCount"in e,get:e=>e.thumbsUpClickCount,set:(e,t)=>{e.thumbsUpClickCount=t}},metadata:s},De,$e),t(z,null,Y,{kind:"accessor",name:"thumbsDownClickCount",static:!1,private:!1,access:{has:e=>"thumbsDownClickCount"in e,get:e=>e.thumbsDownClickCount,set:(e,t)=>{e.thumbsDownClickCount=t}},metadata:s},Oe,Te),t(null,A={value:z},Z,{kind:"class",name:z.name,metadata:s},null,ee),z=A.value,s&&Object.defineProperty(z,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})})(),z.styles=o(_),s(z,ee),z})();export{w as AISourcesFeedback};
225
225
  //# sourceMappingURL=aiSourcesFeedback.js.map
@@ -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-CYoS5eiw.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-BDIAC-7x.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 s}from"lit-html/directives/unsafe-svg.js";import{unsafeHTML as n}from"lit-html/directives/unsafe-html.js";import{css as r,LitElement as d,unsafeCSS as l,html as h}from"lit";import{customElement as c,property as u,state as g}from"lit/decorators.js";import"./headerCategory.js";import"../../reusable/button/button.js";import"./headerLink.js";import{h as m,d as y,f as v}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import{ifDefined as p}from"lit/directives/if-defined.js";import{debounce as w}from"../../../common/helpers/helpers.js";import"lit/directives/style-map.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";import"lit/directives/class-map.js";import"../../reusable/textInput/textInput.js";import"deepmerge-ts";import"../../../common/mixins/form-input.js";var _=r`@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 s}from"lit-html/directives/unsafe-svg.js";import{unsafeHTML as n}from"lit-html/directives/unsafe-html.js";import{css as r,LitElement as d,unsafeCSS as l,html as h}from"lit";import{customElement as c,property as u,state as g}from"lit/decorators.js";import"./headerCategory.js";import"../../reusable/button/button.js";import"./headerLink.js";import{h as m,d as y,f as v}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import{ifDefined as p}from"lit/directives/if-defined.js";import{debounce as w}from"../../../common/helpers/helpers.js";import"lit/directives/style-map.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";import"lit/directives/class-map.js";import"../../reusable/textInput/textInput.js";import"deepmerge-ts";import"../../../common/mixins/form-input.js";var _=r`@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 n}from"tslib";import{css as s,LitElement as r,unsafeCSS as o,html as l}from"lit";import{customElement as d,property as h,state as c}from"lit/decorators.js";import{styleMap as m}from"lit/directives/style-map.js";import{unsafeSVG as g}from"lit-html/directives/unsafe-svg.js";import{d as u}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"./headerLink.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"../../../common/helpers/helpers.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";var k=s`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as n}from"tslib";import{css as s,LitElement as r,unsafeCSS as o,html as l}from"lit";import{customElement as d,property as h,state as c}from"lit/decorators.js";import{styleMap as m}from"lit/directives/style-map.js";import{unsafeSVG as g}from"lit-html/directives/unsafe-svg.js";import{d as u}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"./headerLink.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"../../../common/helpers/helpers.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";var k=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 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-CYoS5eiw.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-BDIAC-7x.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-CYoS5eiw.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-BDIAC-7x.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-CYoS5eiw.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-BDIAC-7x.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-CYoS5eiw.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-BDIAC-7x.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-CYoS5eiw.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-BDIAC-7x.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-CYoS5eiw.js";import"../../reusable/tooltip/tooltip.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-BDIAC-7x.js";import"../../reusable/tooltip/tooltip.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -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 l,LitElement as o,unsafeCSS as r,html as d}from"lit";import{customElement as h,property as c,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 _}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";var b=l`*,
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 l,LitElement as o,unsafeCSS as r,html as d}from"lit";import{customElement as h,property as c,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 _}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../reusable/button/defs.js";var b=l`*,
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 o,LitElement as l,unsafeCSS as d,html as r}from"lit";import{customElement as h,property as c,state as p,queryAssignedElements as m}from"lit/decorators.js";import{classMap as v}from"lit/directives/class-map.js";import{k as g,f as u}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"../../reusable/tooltip/tooltip.js";var k=o`*,
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 o,LitElement as l,unsafeCSS as d,html as r}from"lit";import{customElement as h,property as c,state as p,queryAssignedElements as m}from"lit/decorators.js";import{classMap as v}from"lit/directives/class-map.js";import{k as g,f as u}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"../../reusable/tooltip/tooltip.js";var k=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 o,__classPrivateFieldSet as n}from"tslib";import{css as a,LitElement as d,unsafeCSS as r,html as s}from"lit";import{customElement as c,property as l,state as m}from"lit/decorators.js";import{classMap as h}from"lit-html/directives/class-map.js";import{unsafeSVG as p}from"lit/directives/unsafe-svg.js";import{A as y}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";var k=a`/**
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as o,__classPrivateFieldSet as n}from"tslib";import{css as a,LitElement as d,unsafeCSS as r,html as s}from"lit";import{customElement as c,property as l,state as m}from"lit/decorators.js";import{classMap as h}from"lit-html/directives/class-map.js";import{unsafeSVG as p}from"lit/directives/unsafe-svg.js";import{z as y}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";var k=a`/**
2
2
  * Copyright Kyndryl, Inc. 2023
3
3
  */
4
4
  *,
@@ -236,7 +236,7 @@ slot[name=icon]::slotted(span) {
236
236
  .kyn-accordion-item-detail {
237
237
  transition: none;
238
238
  }
239
- }`;let b=(()=>{var a,b,g,u,f,v,x;let _,w,$,I,S,z,N,H,j,C=[c("kyn-accordion-item")],E=[],M=d,O=[],W=[],K=[],A=[],B=[],D=[],T=[],q=[],F=[],P=[],R=[],U=[],G=[],J=[];return w=class extends M{get opened(){return o(this,a,"f")}set opened(e){n(this,a,e,"f")}get disabled(){return o(this,b,"f")}set disabled(e){n(this,b,e,"f")}get _index(){return o(this,g,"f")}set _index(e){n(this,g,e,"f")}get _showNumber(){return o(this,u,"f")}set _showNumber(e){n(this,u,e,"f")}get _filledHeader(){return o(this,f,"f")}set _filledHeader(e){n(this,f,e,"f")}get _compact(){return o(this,v,"f")}set _compact(e){n(this,v,e,"f")}get _hasIcon(){return o(this,x,"f")}set _hasIcon(e){n(this,x,e,"f")}setIndex(e){this._index=e}setShowNumbers(e){this._showNumber=e}setFilledHeader(e){this._filledHeader=e}setCompact(e){this._compact=e}_handleIconSlotChange(e){const t=e.target;this._hasIcon=t.assignedElements({flatten:!0}).length>0}firstUpdated(){const e=this.renderRoot.querySelector('slot[name="icon"]');e&&(this._hasIcon=e.assignedElements({flatten:!0}).length>0)}open(){this.opened||this._toggleOpenState()}close(){this.opened&&this._toggleOpenState()}_handleClick(e){e.preventDefault(),this._toggleOpenState()}_handleKeypress(e){e.preventDefault()," "!=e.key&&"Enter"!=e.key||this._toggleOpenState()}_toggleOpenState(){this.disabled||(this.opened=!this.opened,this._emitToggleEvent())}_emitToggleEvent(){const e=new CustomEvent("on-toggle",{bubbles:!0,composed:!0,detail:{opened:this.opened}});this.dispatchEvent(e)}render(){const e=h({"kyn-accordion-item":!0,opened:this.opened,disabled:this.disabled,"filled-header":this._filledHeader,compact:this._compact,"has-icon":this._hasIcon,"show-number":this._showNumber});return s`
239
+ }`;let b=(()=>{var a,b,g,u,f,v,x;let _,w,$,I,S,z,N,H,j,C=[c("kyn-accordion-item")],E=[],M=d,O=[],W=[],K=[],B=[],D=[],T=[],q=[],A=[],F=[],P=[],R=[],U=[],G=[],J=[];return w=class extends M{get opened(){return o(this,a,"f")}set opened(e){n(this,a,e,"f")}get disabled(){return o(this,b,"f")}set disabled(e){n(this,b,e,"f")}get _index(){return o(this,g,"f")}set _index(e){n(this,g,e,"f")}get _showNumber(){return o(this,u,"f")}set _showNumber(e){n(this,u,e,"f")}get _filledHeader(){return o(this,f,"f")}set _filledHeader(e){n(this,f,e,"f")}get _compact(){return o(this,v,"f")}set _compact(e){n(this,v,e,"f")}get _hasIcon(){return o(this,x,"f")}set _hasIcon(e){n(this,x,e,"f")}setIndex(e){this._index=e}setShowNumbers(e){this._showNumber=e}setFilledHeader(e){this._filledHeader=e}setCompact(e){this._compact=e}_handleIconSlotChange(e){const t=e.target;this._hasIcon=t.assignedElements({flatten:!0}).length>0}firstUpdated(){const e=this.renderRoot.querySelector('slot[name="icon"]');e&&(this._hasIcon=e.assignedElements({flatten:!0}).length>0)}open(){this.opened||this._toggleOpenState()}close(){this.opened&&this._toggleOpenState()}_handleClick(e){e.preventDefault(),this._toggleOpenState()}_handleKeypress(e){e.preventDefault()," "!=e.key&&"Enter"!=e.key||this._toggleOpenState()}_toggleOpenState(){this.disabled||(this.opened=!this.opened,this._emitToggleEvent())}_emitToggleEvent(){const e=new CustomEvent("on-toggle",{bubbles:!0,composed:!0,detail:{opened:this.opened}});this.dispatchEvent(e)}render(){const e=h({"kyn-accordion-item":!0,opened:this.opened,disabled:this.disabled,"filled-header":this._filledHeader,compact:this._compact,"has-icon":this._hasIcon,"show-number":this._showNumber});return s`
240
240
  <div class="${e}">
241
241
  <div
242
242
  class="kyn-accordion-item-title"
@@ -286,5 +286,5 @@ slot[name=icon]::slotted(span) {
286
286
  </div>
287
287
  </div>
288
288
  </div>
289
- `}constructor(){super(...arguments),a.set(this,i(this,O,!1)),b.set(this,(i(this,W),i(this,K,!1))),g.set(this,(i(this,A),i(this,B,1))),u.set(this,(i(this,D),i(this,T,!1))),f.set(this,(i(this,q),i(this,F,!1))),v.set(this,(i(this,P),i(this,R,!1))),x.set(this,(i(this,U),i(this,G,!1))),i(this,J)}},a=new WeakMap,b=new WeakMap,g=new WeakMap,u=new WeakMap,f=new WeakMap,v=new WeakMap,x=new WeakMap,e(w,"AccordionItem"),(()=>{var e;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=M[Symbol.metadata])&&void 0!==e?e:null):void 0;$=[l({type:Boolean})],I=[l({type:Boolean})],S=[m()],z=[m()],N=[m()],H=[m()],j=[m()],t(w,null,$,{kind:"accessor",name:"opened",static:!1,private:!1,access:{has:e=>"opened"in e,get:e=>e.opened,set:(e,t)=>{e.opened=t}},metadata:i},O,W),t(w,null,I,{kind:"accessor",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:i},K,A),t(w,null,S,{kind:"accessor",name:"_index",static:!1,private:!1,access:{has:e=>"_index"in e,get:e=>e._index,set:(e,t)=>{e._index=t}},metadata:i},B,D),t(w,null,z,{kind:"accessor",name:"_showNumber",static:!1,private:!1,access:{has:e=>"_showNumber"in e,get:e=>e._showNumber,set:(e,t)=>{e._showNumber=t}},metadata:i},T,q),t(w,null,N,{kind:"accessor",name:"_filledHeader",static:!1,private:!1,access:{has:e=>"_filledHeader"in e,get:e=>e._filledHeader,set:(e,t)=>{e._filledHeader=t}},metadata:i},F,P),t(w,null,H,{kind:"accessor",name:"_compact",static:!1,private:!1,access:{has:e=>"_compact"in e,get:e=>e._compact,set:(e,t)=>{e._compact=t}},metadata:i},R,U),t(w,null,j,{kind:"accessor",name:"_hasIcon",static:!1,private:!1,access:{has:e=>"_hasIcon"in e,get:e=>e._hasIcon,set:(e,t)=>{e._hasIcon=t}},metadata:i},G,J),t(null,_={value:w},C,{kind:"class",name:w.name,metadata:i},null,E),w=_.value,i&&Object.defineProperty(w,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),w.styles=r(k),i(w,E),w})();export{b as AccordionItem};
289
+ `}constructor(){super(...arguments),a.set(this,i(this,O,!1)),b.set(this,(i(this,W),i(this,K,!1))),g.set(this,(i(this,B),i(this,D,1))),u.set(this,(i(this,T),i(this,q,!1))),f.set(this,(i(this,A),i(this,F,!1))),v.set(this,(i(this,P),i(this,R,!1))),x.set(this,(i(this,U),i(this,G,!1))),i(this,J)}},a=new WeakMap,b=new WeakMap,g=new WeakMap,u=new WeakMap,f=new WeakMap,v=new WeakMap,x=new WeakMap,e(w,"AccordionItem"),(()=>{var e;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=M[Symbol.metadata])&&void 0!==e?e:null):void 0;$=[l({type:Boolean})],I=[l({type:Boolean})],S=[m()],z=[m()],N=[m()],H=[m()],j=[m()],t(w,null,$,{kind:"accessor",name:"opened",static:!1,private:!1,access:{has:e=>"opened"in e,get:e=>e.opened,set:(e,t)=>{e.opened=t}},metadata:i},O,W),t(w,null,I,{kind:"accessor",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:i},K,B),t(w,null,S,{kind:"accessor",name:"_index",static:!1,private:!1,access:{has:e=>"_index"in e,get:e=>e._index,set:(e,t)=>{e._index=t}},metadata:i},D,T),t(w,null,z,{kind:"accessor",name:"_showNumber",static:!1,private:!1,access:{has:e=>"_showNumber"in e,get:e=>e._showNumber,set:(e,t)=>{e._showNumber=t}},metadata:i},q,A),t(w,null,N,{kind:"accessor",name:"_filledHeader",static:!1,private:!1,access:{has:e=>"_filledHeader"in e,get:e=>e._filledHeader,set:(e,t)=>{e._filledHeader=t}},metadata:i},F,P),t(w,null,H,{kind:"accessor",name:"_compact",static:!1,private:!1,access:{has:e=>"_compact"in e,get:e=>e._compact,set:(e,t)=>{e._compact=t}},metadata:i},R,U),t(w,null,j,{kind:"accessor",name:"_hasIcon",static:!1,private:!1,access:{has:e=>"_hasIcon"in e,get:e=>e._hasIcon,set:(e,t)=>{e._hasIcon=t}},metadata:i},G,J),t(null,_={value:w},C,{kind:"class",name:w.name,metadata:i},null,E),w=_.value,i&&Object.defineProperty(w,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),w.styles=r(k),i(w,E),w})();export{b as AccordionItem};
290
290
  //# sourceMappingURL=accordionItem.js.map
@@ -1,2 +1,2 @@
1
- export{Accordion}from"./accordion.js";export{AccordionItem}from"./accordionItem.js";import"tslib";import"lit";import"lit/decorators.js";import"lit-html/directives/class-map.js";import"lit/directives/unsafe-svg.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";
1
+ export{Accordion}from"./accordion.js";export{AccordionItem}from"./accordionItem.js";import"tslib";import"lit";import"lit/decorators.js";import"lit-html/directives/class-map.js";import"lit/directives/unsafe-svg.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as e,__esDecorate as a,__runInitializers as t,__classPrivateFieldGet as r,__classPrivateFieldSet as o}from"tslib";import{css as i,LitElement as d,unsafeCSS as n,html as s}from"lit";import{customElement as c,property as l,state as g}from"lit/decorators.js";import{classMap as h}from"lit-html/directives/class-map.js";import{unsafeSVG as b}from"lit/directives/unsafe-svg.js";import{a0 as u,i as m,a1 as k,a2 as v,a3 as p}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";var y=i`*,
1
+ import{__setFunctionName as e,__esDecorate as a,__runInitializers as t,__classPrivateFieldGet as r,__classPrivateFieldSet as o}from"tslib";import{css as i,LitElement as d,unsafeCSS as n,html as s}from"lit";import{customElement as c,property as l,state as g}from"lit/decorators.js";import{classMap as h}from"lit-html/directives/class-map.js";import{unsafeSVG as b}from"lit/directives/unsafe-svg.js";import{Z as u,i as m,_ as k,$ as v,a0 as p}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";var y=i`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -171,7 +171,7 @@ import{__setFunctionName as e,__esDecorate as a,__runInitializers as t,__classPr
171
171
  white-space: nowrap;
172
172
  overflow: hidden;
173
173
  text-overflow: ellipsis;
174
- }`;let f=(()=>{var i,f,x,w,z,T,O,S;let _,I,$,M,W,j,B,P,q,A,C=[c("kyn-badge")],D=[],E=d,F=[],G=[],H=[],J=[],K=[],L=[],N=[],Q=[],R=[],U=[],V=[],X=[],Y=[],Z=[],ee=[],ae=[];return I=class extends E{get label(){return r(this,i,"f")}set label(e){o(this,i,e,"f")}get size(){return r(this,f,"f")}set size(e){o(this,f,e,"f")}get type(){return r(this,x,"f")}set type(e){o(this,x,e,"f")}get status(){return r(this,w,"f")}set status(e){o(this,w,e,"f")}get noTruncation(){return r(this,z,"f")}set noTruncation(e){o(this,z,e,"f")}get iconTitle(){return r(this,T,"f")}set iconTitle(e){o(this,T,e,"f")}get hideIcon(){return r(this,O,"f")}set hideIcon(e){o(this,O,e,"f")}get _iconOnly(){return r(this,S,"f")}set _iconOnly(e){o(this,S,e,"f")}updated(e){super.updated(e),0===this.label.length?this._iconOnly=!0:this._iconOnly=!1}render(){const e="md"===this.size?"badge-medium":"badge-small",a={badge:!0,"no-truncation":this.noTruncation,[`${e}`]:!0,[`badge-${this.type}-${this.status}`]:!0};return s`<div class=${h(a)} title=${this.label}>
174
+ }`;let f=(()=>{var i,f,x,w,z,T,_,O;let S,$,I,M,W,j,B,P,Z,q,A=[c("kyn-badge")],C=[],D=d,E=[],F=[],G=[],H=[],J=[],K=[],L=[],N=[],Q=[],R=[],U=[],V=[],X=[],Y=[],ee=[],ae=[];return $=class extends D{get label(){return r(this,i,"f")}set label(e){o(this,i,e,"f")}get size(){return r(this,f,"f")}set size(e){o(this,f,e,"f")}get type(){return r(this,x,"f")}set type(e){o(this,x,e,"f")}get status(){return r(this,w,"f")}set status(e){o(this,w,e,"f")}get noTruncation(){return r(this,z,"f")}set noTruncation(e){o(this,z,e,"f")}get iconTitle(){return r(this,T,"f")}set iconTitle(e){o(this,T,e,"f")}get hideIcon(){return r(this,_,"f")}set hideIcon(e){o(this,_,e,"f")}get _iconOnly(){return r(this,O,"f")}set _iconOnly(e){o(this,O,e,"f")}updated(e){super.updated(e),0===this.label.length?this._iconOnly=!0:this._iconOnly=!1}render(){const e="md"===this.size?"badge-medium":"badge-small",a={badge:!0,"no-truncation":this.noTruncation,[`${e}`]:!0,[`badge-${this.type}-${this.status}`]:!0};return s`<div class=${h(a)} title=${this.label}>
175
175
  ${this.hideIcon?"":s`<slot>
176
176
  <span
177
177
  class="badge-icon"
@@ -182,5 +182,5 @@ import{__setFunctionName as e,__esDecorate as a,__runInitializers as t,__classPr
182
182
  </span>
183
183
  </slot>`}
184
184
  ${this._iconOnly?"":s`<span class="badge-label">${this.label}</span>`}
185
- </div>`}_getStatusIcon(){switch(this.status){case"critical":return p;case"error":return v;case"warning":return k;case"success":return m;case"information":return u;default:return""}}constructor(){super(...arguments),i.set(this,t(this,F,"")),f.set(this,(t(this,G),t(this,H,"md"))),x.set(this,(t(this,J),t(this,K,"medium"))),w.set(this,(t(this,L),t(this,N,"success"))),z.set(this,(t(this,Q),t(this,R,!1))),T.set(this,(t(this,U),t(this,V,"Icon title"))),O.set(this,(t(this,X),t(this,Y,!1))),S.set(this,(t(this,Z),t(this,ee,!1))),t(this,ae)}},i=new WeakMap,f=new WeakMap,x=new WeakMap,w=new WeakMap,z=new WeakMap,T=new WeakMap,O=new WeakMap,S=new WeakMap,e(I,"Badge"),(()=>{var e;const t="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=E[Symbol.metadata])&&void 0!==e?e:null):void 0;$=[l({type:String})],M=[l({type:String})],W=[l({type:String})],j=[l({type:String})],B=[l({type:Boolean})],P=[l({type:String})],q=[l({type:Boolean})],A=[g()],a(I,null,$,{kind:"accessor",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,a)=>{e.label=a}},metadata:t},F,G),a(I,null,M,{kind:"accessor",name:"size",static:!1,private:!1,access:{has:e=>"size"in e,get:e=>e.size,set:(e,a)=>{e.size=a}},metadata:t},H,J),a(I,null,W,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,a)=>{e.type=a}},metadata:t},K,L),a(I,null,j,{kind:"accessor",name:"status",static:!1,private:!1,access:{has:e=>"status"in e,get:e=>e.status,set:(e,a)=>{e.status=a}},metadata:t},N,Q),a(I,null,B,{kind:"accessor",name:"noTruncation",static:!1,private:!1,access:{has:e=>"noTruncation"in e,get:e=>e.noTruncation,set:(e,a)=>{e.noTruncation=a}},metadata:t},R,U),a(I,null,P,{kind:"accessor",name:"iconTitle",static:!1,private:!1,access:{has:e=>"iconTitle"in e,get:e=>e.iconTitle,set:(e,a)=>{e.iconTitle=a}},metadata:t},V,X),a(I,null,q,{kind:"accessor",name:"hideIcon",static:!1,private:!1,access:{has:e=>"hideIcon"in e,get:e=>e.hideIcon,set:(e,a)=>{e.hideIcon=a}},metadata:t},Y,Z),a(I,null,A,{kind:"accessor",name:"_iconOnly",static:!1,private:!1,access:{has:e=>"_iconOnly"in e,get:e=>e._iconOnly,set:(e,a)=>{e._iconOnly=a}},metadata:t},ee,ae),a(null,_={value:I},C,{kind:"class",name:I.name,metadata:t},null,D),I=_.value,t&&Object.defineProperty(I,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})})(),I.styles=n(y),t(I,D),I})();export{f as Badge};
185
+ </div>`}_getStatusIcon(){switch(this.status){case"critical":return p;case"error":return v;case"warning":return k;case"success":return m;case"information":return u;default:return""}}constructor(){super(...arguments),i.set(this,t(this,E,"")),f.set(this,(t(this,F),t(this,G,"md"))),x.set(this,(t(this,H),t(this,J,"medium"))),w.set(this,(t(this,K),t(this,L,"success"))),z.set(this,(t(this,N),t(this,Q,!1))),T.set(this,(t(this,R),t(this,U,"Icon title"))),_.set(this,(t(this,V),t(this,X,!1))),O.set(this,(t(this,Y),t(this,ee,!1))),t(this,ae)}},i=new WeakMap,f=new WeakMap,x=new WeakMap,w=new WeakMap,z=new WeakMap,T=new WeakMap,_=new WeakMap,O=new WeakMap,e($,"Badge"),(()=>{var e;const t="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=D[Symbol.metadata])&&void 0!==e?e:null):void 0;I=[l({type:String})],M=[l({type:String})],W=[l({type:String})],j=[l({type:String})],B=[l({type:Boolean})],P=[l({type:String})],Z=[l({type:Boolean})],q=[g()],a($,null,I,{kind:"accessor",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,a)=>{e.label=a}},metadata:t},E,F),a($,null,M,{kind:"accessor",name:"size",static:!1,private:!1,access:{has:e=>"size"in e,get:e=>e.size,set:(e,a)=>{e.size=a}},metadata:t},G,H),a($,null,W,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,a)=>{e.type=a}},metadata:t},J,K),a($,null,j,{kind:"accessor",name:"status",static:!1,private:!1,access:{has:e=>"status"in e,get:e=>e.status,set:(e,a)=>{e.status=a}},metadata:t},L,N),a($,null,B,{kind:"accessor",name:"noTruncation",static:!1,private:!1,access:{has:e=>"noTruncation"in e,get:e=>e.noTruncation,set:(e,a)=>{e.noTruncation=a}},metadata:t},Q,R),a($,null,P,{kind:"accessor",name:"iconTitle",static:!1,private:!1,access:{has:e=>"iconTitle"in e,get:e=>e.iconTitle,set:(e,a)=>{e.iconTitle=a}},metadata:t},U,V),a($,null,Z,{kind:"accessor",name:"hideIcon",static:!1,private:!1,access:{has:e=>"hideIcon"in e,get:e=>e.hideIcon,set:(e,a)=>{e.hideIcon=a}},metadata:t},X,Y),a($,null,q,{kind:"accessor",name:"_iconOnly",static:!1,private:!1,access:{has:e=>"_iconOnly"in e,get:e=>e._iconOnly,set:(e,a)=>{e._iconOnly=a}},metadata:t},ee,ae),a(null,S={value:$},A,{kind:"class",name:$.name,metadata:t},null,C),$=S.value,t&&Object.defineProperty($,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})})(),$.styles=n(y),t($,C),$})();export{f as Badge};
186
186
  //# sourceMappingURL=badge.js.map
@@ -1,2 +1,2 @@
1
- export{Badge}from"./badge.js";import"tslib";import"lit";import"lit/decorators.js";import"lit-html/directives/class-map.js";import"lit/directives/unsafe-svg.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";
1
+ export{Badge}from"./badge.js";import"tslib";import"lit";import"lit/decorators.js";import"lit-html/directives/class-map.js";import"lit/directives/unsafe-svg.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as o,__classPrivateFieldSet as a}from"tslib";import{unsafeSVG as n}from"lit-html/directives/unsafe-svg.js";import{css as s,LitElement as r,unsafeCSS as l,html as c}from"lit";import{customElement as d,property as h,state as p}from"lit/decorators.js";import{classMap as g}from"lit/directives/class-map.js";import{ifDefined as u}from"lit/directives/if-defined.js";import{deepmerge as m}from"deepmerge-ts";import k from"prismjs";import"prismjs/plugins/autoloader/prism-autoloader";import"prismjs/plugins/line-numbers/prism-line-numbers";import{aa as v,ab as b,k as y}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var w,x=s`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as o,__classPrivateFieldSet as a}from"tslib";import{unsafeSVG as n}from"lit-html/directives/unsafe-svg.js";import{css as s,LitElement as r,unsafeCSS as l,html as c}from"lit";import{customElement as d,property as h,state as p}from"lit/decorators.js";import{classMap as g}from"lit/directives/class-map.js";import{ifDefined as u}from"lit/directives/if-defined.js";import{deepmerge as m}from"deepmerge-ts";import k from"prismjs";import"prismjs/plugins/autoloader/prism-autoloader";import"prismjs/plugins/line-numbers/prism-line-numbers";import{a9 as v,aa as b,k as y}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var w,x=s`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,2 +1,2 @@
1
- export{BlockCodeView}from"./blockCodeView.js";import"tslib";import"lit-html/directives/unsafe-svg.js";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"deepmerge-ts";import"prismjs";import"prismjs/plugins/autoloader/prism-autoloader";import"prismjs/plugins/line-numbers/prism-line-numbers";import"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";
1
+ export{BlockCodeView}from"./blockCodeView.js";import"tslib";import"lit-html/directives/unsafe-svg.js";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"deepmerge-ts";import"prismjs";import"prismjs/plugins/autoloader/prism-autoloader";import"prismjs/plugins/line-numbers/prism-line-numbers";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as t,__esDecorate as e,__runInitializers as s,__classPrivateFieldGet as i,__classPrivateFieldSet as n}from"tslib";import{css as a,LitElement as r,unsafeCSS as l,html as o}from"lit";import{customElement as c,property as d,state as h,queryAssignedElements as u}from"lit/decorators.js";import{classMap as b}from"lit-html/directives/class-map.js";import"../button/button.js";import{BUTTON_KINDS as g}from"../button/defs.js";import{x as m,d as p}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import{unsafeSVG as k}from"lit/directives/unsafe-svg.js";import"lit/directives/if-defined.js";import"../../../common/helpers/helpers.js";var v=a`.kd-btn-group {
1
+ import{__setFunctionName as t,__esDecorate as e,__runInitializers as s,__classPrivateFieldGet as i,__classPrivateFieldSet as n}from"tslib";import{css as a,LitElement as r,unsafeCSS as l,html as o}from"lit";import{customElement as c,property as d,state as h,queryAssignedElements as u}from"lit/decorators.js";import{classMap as b}from"lit-html/directives/class-map.js";import"../button/button.js";import{BUTTON_KINDS as g}from"../button/defs.js";import{v as m,d as p}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import{unsafeSVG as k}from"lit/directives/unsafe-svg.js";import"lit/directives/if-defined.js";import"../../../common/helpers/helpers.js";var v=a`.kd-btn-group {
2
2
  display: inline-flex;
3
3
  gap: 1px;
4
4
  }
@@ -15,7 +15,7 @@ import{__setFunctionName as t,__esDecorate as e,__runInitializers as s,__classPr
15
15
 
16
16
  .kd-btn-group > kyn-button:focus-within .kd-btn {
17
17
  outline-offset: 0 !important;
18
- }`;const _={DEFAULT:"default",PAGINATION:"pagination",ICONS:"icons"},x={prevButtonDescription:"Previous Page",nextButtonDescription:"Next Page",indivGroupItemDescription:""};let f=(()=>{var a,f,S,y,I,P,N,M,w,C;let E,$,B,A,V,L,O,W,j,D,G,T,H=[c("kyn-button-group")],U=[],q=r,F=[],R=[],Y=[],z=[],J=[],K=[],Q=[],X=[],Z=[],tt=[],et=[],st=[],it=[],nt=[],at=[],rt=[],lt=[],ot=[],ct=[],dt=[];return $=class extends q{constructor(){super(...arguments),a.set(this,s(this,F,_.DEFAULT)),f.set(this,(s(this,R),s(this,Y,!1))),S.set(this,(s(this,z),s(this,J,0))),y.set(this,(s(this,K),s(this,Q,1))),I.set(this,(s(this,X),s(this,Z,5))),P.set(this,(s(this,tt),s(this,et,1))),N.set(this,(s(this,st),s(this,it,1))),M.set(this,(s(this,nt),s(this,at,x))),w.set(this,(s(this,rt),s(this,lt,x))),C.set(this,(s(this,ot),s(this,ct,void 0))),this._boundHandlers=(s(this,dt),new Map)}get kind(){return i(this,a,"f")}set kind(t){n(this,a,t,"f")}get vertical(){return i(this,f,"f")}set vertical(t){n(this,f,t,"f")}get selectedIndex(){return i(this,S,"f")}set selectedIndex(t){n(this,S,t,"f")}get totalPages(){return i(this,y,"f")}set totalPages(t){n(this,y,t,"f")}get maxVisible(){return i(this,I,"f")}set maxVisible(t){n(this,I,t,"f")}get clickIncrementBy(){return i(this,P,"f")}set clickIncrementBy(t){n(this,P,t,"f")}get _visibleStart(){return i(this,N,"f")}set _visibleStart(t){n(this,N,t,"f")}static get properties(){return{...super.properties,visibleStart:{type:Number,attribute:!1},visibleEnd:{type:Number,attribute:!1}}}get visibleStart(){return this._visibleStart}get visibleEnd(){return Math.min(this.totalPages,this._visibleStart+this.maxVisible-1)}get textStrings(){return i(this,M,"f")}set textStrings(t){n(this,M,t,"f")}get _textStrings(){return i(this,w,"f")}set _textStrings(t){n(this,w,t,"f")}get _buttons(){return i(this,C,"f")}set _buttons(t){n(this,C,t,"f")}render(){return this.kind===_.PAGINATION?this._renderPagination():this.kind===_.ICONS?this._renderIcons():this._renderDefault()}firstUpdated(){this._attachClickListeners(),this._syncSelection()}updated(t){this.kind===_.PAGINATION?(t.has("totalPages")||t.has("maxVisible")||t.has("clickIncrementBy"))&&this._updateWindow():t.has("selectedIndex")&&this._syncSelection(),(t.has("kind")||t.has("vertical"))&&(this._attachClickListeners(),this._syncSelection())}_renderDefault(){const t={"kd-btn-group":!0,"kd-btn-group--vertical":this.vertical};return o`
18
+ }`;const _={DEFAULT:"default",PAGINATION:"pagination",ICONS:"icons"},f={prevButtonDescription:"Previous Page",nextButtonDescription:"Next Page",indivGroupItemDescription:""};let x=(()=>{var a,x,S,y,I,P,N,M,w,C;let E,$,B,A,V,L,O,W,j,D,G,T,H=[c("kyn-button-group")],U=[],q=r,F=[],R=[],Y=[],z=[],J=[],K=[],Q=[],X=[],Z=[],tt=[],et=[],st=[],it=[],nt=[],at=[],rt=[],lt=[],ot=[],ct=[],dt=[];return $=class extends q{constructor(){super(...arguments),a.set(this,s(this,F,_.DEFAULT)),x.set(this,(s(this,R),s(this,Y,!1))),S.set(this,(s(this,z),s(this,J,0))),y.set(this,(s(this,K),s(this,Q,1))),I.set(this,(s(this,X),s(this,Z,5))),P.set(this,(s(this,tt),s(this,et,1))),N.set(this,(s(this,st),s(this,it,1))),M.set(this,(s(this,nt),s(this,at,f))),w.set(this,(s(this,rt),s(this,lt,f))),C.set(this,(s(this,ot),s(this,ct,void 0))),this._boundHandlers=(s(this,dt),new Map)}get kind(){return i(this,a,"f")}set kind(t){n(this,a,t,"f")}get vertical(){return i(this,x,"f")}set vertical(t){n(this,x,t,"f")}get selectedIndex(){return i(this,S,"f")}set selectedIndex(t){n(this,S,t,"f")}get totalPages(){return i(this,y,"f")}set totalPages(t){n(this,y,t,"f")}get maxVisible(){return i(this,I,"f")}set maxVisible(t){n(this,I,t,"f")}get clickIncrementBy(){return i(this,P,"f")}set clickIncrementBy(t){n(this,P,t,"f")}get _visibleStart(){return i(this,N,"f")}set _visibleStart(t){n(this,N,t,"f")}static get properties(){return{...super.properties,visibleStart:{type:Number,attribute:!1},visibleEnd:{type:Number,attribute:!1}}}get visibleStart(){return this._visibleStart}get visibleEnd(){return Math.min(this.totalPages,this._visibleStart+this.maxVisible-1)}get textStrings(){return i(this,M,"f")}set textStrings(t){n(this,M,t,"f")}get _textStrings(){return i(this,w,"f")}set _textStrings(t){n(this,w,t,"f")}get _buttons(){return i(this,C,"f")}set _buttons(t){n(this,C,t,"f")}render(){return this.kind===_.PAGINATION?this._renderPagination():this.kind===_.ICONS?this._renderIcons():this._renderDefault()}firstUpdated(){this._attachClickListeners(),this._syncSelection()}updated(t){this.kind===_.PAGINATION?(t.has("totalPages")||t.has("maxVisible")||t.has("clickIncrementBy"))&&this._updateWindow():t.has("selectedIndex")&&this._syncSelection(),(t.has("kind")||t.has("vertical"))&&(this._attachClickListeners(),this._syncSelection())}_renderDefault(){const t={"kd-btn-group":!0,"kd-btn-group--vertical":this.vertical};return o`
19
19
  <div class=${b(t)} role="radiogroup">
20
20
  <slot @slotchange=${()=>this._handleSlotChange()}></slot>
21
21
  </div>
@@ -56,5 +56,5 @@ import{__setFunctionName as t,__esDecorate as e,__runInitializers as s,__classPr
56
56
  ${k(p)}
57
57
  </kyn-button>
58
58
  </div>
59
- `}_updateWindow(){const t=this.selectedIndex+1,e=Math.floor(this.maxVisible/2);let s=Math.max(1,t-e);Math.min(this.totalPages,s+this.maxVisible-1)===this.totalPages&&this.totalPages>this.maxVisible&&(s=this.totalPages-this.maxVisible+1),this._visibleStart=s}_onPage(t){if("prev"===t){const t=Math.max(1,this._visibleStart-this.clickIncrementBy);this._visibleStart=t,this.requestUpdate()}else if("next"===t){const t=Math.max(1,this.totalPages-this.maxVisible+1),e=Math.min(t,this._visibleStart+this.clickIncrementBy);this._visibleStart=e,this.requestUpdate()}else this.selectedIndex=t-1;this.dispatchEvent(new CustomEvent("on-change",{bubbles:!0,composed:!0,detail:{value:"number"==typeof t?t:null,selectedIndex:this.selectedIndex,visibleStart:this.visibleStart,visibleEnd:this.visibleEnd}}))}_attachClickListeners(){this.kind!==_.PAGINATION&&this._buttons.forEach(((t,e)=>{const s=this._boundHandlers.get(t);s&&t.removeEventListener("on-click",s);const i=()=>this._onButtonClick(e);this._boundHandlers.set(t,i),t.addEventListener("on-click",i)}))}_handleSlotChange(){requestAnimationFrame((()=>{this._buttons.forEach((t=>{t.kind=this.kind===_.ICONS?g.SECONDARY:g.PRIMARY})),this._syncSelection(),this._attachClickListeners()}))}_onButtonClick(t){if(this.kind===_.PAGINATION){const e=this._buttons[t].value;return this._onPage("string"==typeof e?Number(e):e)}this.selectedIndex=t,this._emitChange(this._buttons[t].value),this._syncSelection()}_emitChange(t){this.dispatchEvent(new CustomEvent("on-change",{bubbles:!0,composed:!0,detail:{value:t}}))}_syncSelection(){const t=this._buttons.length;this._buttons.forEach(((e,s)=>{e.selected=s===this.selectedIndex,e.classList.remove("kd-btn--group-single","kd-btn--group-first","kd-btn--group-middle","kd-btn--group-last","kd-btn--group-vertical"),this.vertical&&e.classList.add("kd-btn--group-vertical"),1===t?e.classList.add("kd-btn--group-single"):0===s?e.classList.add("kd-btn--group-first"):s===t-1?e.classList.add("kd-btn--group-last"):e.classList.add("kd-btn--group-middle")}))}disconnectedCallback(){this._boundHandlers.forEach(((t,e)=>{e.removeEventListener("click",t)})),this._boundHandlers.clear(),super.disconnectedCallback()}},a=new WeakMap,f=new WeakMap,S=new WeakMap,y=new WeakMap,I=new WeakMap,P=new WeakMap,N=new WeakMap,M=new WeakMap,w=new WeakMap,C=new WeakMap,t($,"ButtonGroup"),(()=>{var t;const s="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(t=q[Symbol.metadata])&&void 0!==t?t:null):void 0;B=[d({type:String})],A=[d({type:Boolean})],V=[d({type:Number})],L=[d({type:Number})],O=[d({type:Number})],W=[d({type:Number})],j=[h()],D=[d({type:Object})],G=[h()],T=[u({slot:"",flatten:!0})],e($,null,B,{kind:"accessor",name:"kind",static:!1,private:!1,access:{has:t=>"kind"in t,get:t=>t.kind,set:(t,e)=>{t.kind=e}},metadata:s},F,R),e($,null,A,{kind:"accessor",name:"vertical",static:!1,private:!1,access:{has:t=>"vertical"in t,get:t=>t.vertical,set:(t,e)=>{t.vertical=e}},metadata:s},Y,z),e($,null,V,{kind:"accessor",name:"selectedIndex",static:!1,private:!1,access:{has:t=>"selectedIndex"in t,get:t=>t.selectedIndex,set:(t,e)=>{t.selectedIndex=e}},metadata:s},J,K),e($,null,L,{kind:"accessor",name:"totalPages",static:!1,private:!1,access:{has:t=>"totalPages"in t,get:t=>t.totalPages,set:(t,e)=>{t.totalPages=e}},metadata:s},Q,X),e($,null,O,{kind:"accessor",name:"maxVisible",static:!1,private:!1,access:{has:t=>"maxVisible"in t,get:t=>t.maxVisible,set:(t,e)=>{t.maxVisible=e}},metadata:s},Z,tt),e($,null,W,{kind:"accessor",name:"clickIncrementBy",static:!1,private:!1,access:{has:t=>"clickIncrementBy"in t,get:t=>t.clickIncrementBy,set:(t,e)=>{t.clickIncrementBy=e}},metadata:s},et,st),e($,null,j,{kind:"accessor",name:"_visibleStart",static:!1,private:!1,access:{has:t=>"_visibleStart"in t,get:t=>t._visibleStart,set:(t,e)=>{t._visibleStart=e}},metadata:s},it,nt),e($,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:s},at,rt),e($,null,G,{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:s},lt,ot),e($,null,T,{kind:"accessor",name:"_buttons",static:!1,private:!1,access:{has:t=>"_buttons"in t,get:t=>t._buttons,set:(t,e)=>{t._buttons=e}},metadata:s},ct,dt),e(null,E={value:$},H,{kind:"class",name:$.name,metadata:s},null,U),$=E.value,s&&Object.defineProperty($,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})})(),$.styles=l(v),s($,U),$})();export{_ as BUTTON_GROUP_KINDS,f as ButtonGroup};
59
+ `}_updateWindow(){const t=this.selectedIndex+1,e=Math.floor(this.maxVisible/2);let s=Math.max(1,t-e);Math.min(this.totalPages,s+this.maxVisible-1)===this.totalPages&&this.totalPages>this.maxVisible&&(s=this.totalPages-this.maxVisible+1),this._visibleStart=s}_onPage(t){if("prev"===t){const t=Math.max(1,this._visibleStart-this.clickIncrementBy);this._visibleStart=t,this.requestUpdate()}else if("next"===t){const t=Math.max(1,this.totalPages-this.maxVisible+1),e=Math.min(t,this._visibleStart+this.clickIncrementBy);this._visibleStart=e,this.requestUpdate()}else this.selectedIndex=t-1;this.dispatchEvent(new CustomEvent("on-change",{bubbles:!0,composed:!0,detail:{value:"number"==typeof t?t:null,selectedIndex:this.selectedIndex,visibleStart:this.visibleStart,visibleEnd:this.visibleEnd}}))}_attachClickListeners(){this.kind!==_.PAGINATION&&this._buttons.forEach(((t,e)=>{const s=this._boundHandlers.get(t);s&&t.removeEventListener("on-click",s);const i=()=>this._onButtonClick(e);this._boundHandlers.set(t,i),t.addEventListener("on-click",i)}))}_handleSlotChange(){requestAnimationFrame((()=>{this._buttons.forEach((t=>{t.kind=this.kind===_.ICONS?g.SECONDARY:g.PRIMARY})),this._syncSelection(),this._attachClickListeners()}))}_onButtonClick(t){if(this.kind===_.PAGINATION){const e=this._buttons[t].value;return this._onPage("string"==typeof e?Number(e):e)}this.selectedIndex=t,this._emitChange(this._buttons[t].value),this._syncSelection()}_emitChange(t){this.dispatchEvent(new CustomEvent("on-change",{bubbles:!0,composed:!0,detail:{value:t}}))}_syncSelection(){const t=this._buttons.length;this._buttons.forEach(((e,s)=>{e.selected=s===this.selectedIndex,e.classList.remove("kd-btn--group-single","kd-btn--group-first","kd-btn--group-middle","kd-btn--group-last","kd-btn--group-vertical"),this.vertical&&e.classList.add("kd-btn--group-vertical"),1===t?e.classList.add("kd-btn--group-single"):0===s?e.classList.add("kd-btn--group-first"):s===t-1?e.classList.add("kd-btn--group-last"):e.classList.add("kd-btn--group-middle")}))}disconnectedCallback(){this._boundHandlers.forEach(((t,e)=>{e.removeEventListener("click",t)})),this._boundHandlers.clear(),super.disconnectedCallback()}},a=new WeakMap,x=new WeakMap,S=new WeakMap,y=new WeakMap,I=new WeakMap,P=new WeakMap,N=new WeakMap,M=new WeakMap,w=new WeakMap,C=new WeakMap,t($,"ButtonGroup"),(()=>{var t;const s="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(t=q[Symbol.metadata])&&void 0!==t?t:null):void 0;B=[d({type:String})],A=[d({type:Boolean})],V=[d({type:Number})],L=[d({type:Number})],O=[d({type:Number})],W=[d({type:Number})],j=[h()],D=[d({type:Object})],G=[h()],T=[u({slot:"",flatten:!0})],e($,null,B,{kind:"accessor",name:"kind",static:!1,private:!1,access:{has:t=>"kind"in t,get:t=>t.kind,set:(t,e)=>{t.kind=e}},metadata:s},F,R),e($,null,A,{kind:"accessor",name:"vertical",static:!1,private:!1,access:{has:t=>"vertical"in t,get:t=>t.vertical,set:(t,e)=>{t.vertical=e}},metadata:s},Y,z),e($,null,V,{kind:"accessor",name:"selectedIndex",static:!1,private:!1,access:{has:t=>"selectedIndex"in t,get:t=>t.selectedIndex,set:(t,e)=>{t.selectedIndex=e}},metadata:s},J,K),e($,null,L,{kind:"accessor",name:"totalPages",static:!1,private:!1,access:{has:t=>"totalPages"in t,get:t=>t.totalPages,set:(t,e)=>{t.totalPages=e}},metadata:s},Q,X),e($,null,O,{kind:"accessor",name:"maxVisible",static:!1,private:!1,access:{has:t=>"maxVisible"in t,get:t=>t.maxVisible,set:(t,e)=>{t.maxVisible=e}},metadata:s},Z,tt),e($,null,W,{kind:"accessor",name:"clickIncrementBy",static:!1,private:!1,access:{has:t=>"clickIncrementBy"in t,get:t=>t.clickIncrementBy,set:(t,e)=>{t.clickIncrementBy=e}},metadata:s},et,st),e($,null,j,{kind:"accessor",name:"_visibleStart",static:!1,private:!1,access:{has:t=>"_visibleStart"in t,get:t=>t._visibleStart,set:(t,e)=>{t._visibleStart=e}},metadata:s},it,nt),e($,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:s},at,rt),e($,null,G,{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:s},lt,ot),e($,null,T,{kind:"accessor",name:"_buttons",static:!1,private:!1,access:{has:t=>"_buttons"in t,get:t=>t._buttons,set:(t,e)=>{t._buttons=e}},metadata:s},ct,dt),e(null,E={value:$},H,{kind:"class",name:$.name,metadata:s},null,U),$=E.value,s&&Object.defineProperty($,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})})(),$.styles=l(v),s($,U),$})();export{_ as BUTTON_GROUP_KINDS,x as ButtonGroup};
60
60
  //# sourceMappingURL=buttonGroup.js.map
@@ -1,2 +1,2 @@
1
- export{ButtonGroup}from"./buttonGroup.js";import"tslib";import"lit";import"lit/decorators.js";import"lit-html/directives/class-map.js";import"../button/button.js";import"lit/directives/if-defined.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"lit/directives/unsafe-svg.js";
1
+ export{ButtonGroup}from"./buttonGroup.js";import"tslib";import"lit";import"lit/decorators.js";import"lit-html/directives/class-map.js";import"../button/button.js";import"lit/directives/if-defined.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"lit/directives/unsafe-svg.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as r,__esDecorate as e,__runInitializers as a,__classPrivateFieldGet as t,__classPrivateFieldSet as i}from"tslib";import{css as o,LitElement as n,unsafeCSS as d,html as c}from"lit";import{customElement as l,property as s}from"lit/decorators.js";import{classMap as p}from"lit/directives/class-map.js";import{ifDefined as b}from"lit/directives/if-defined.js";import"../inlineConfirm/inlineConfirm.js";import"lit-html/directives/unsafe-svg.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";var g=o`*,
1
+ import{__setFunctionName as r,__esDecorate as e,__runInitializers as a,__classPrivateFieldGet as t,__classPrivateFieldSet as i}from"tslib";import{css as o,LitElement as n,unsafeCSS as d,html as c}from"lit";import{customElement as l,property as s}from"lit/decorators.js";import{classMap as p}from"lit/directives/class-map.js";import{ifDefined as b}from"lit/directives/if-defined.js";import"../inlineConfirm/inlineConfirm.js";import"lit-html/directives/unsafe-svg.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";var g=o`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,2 +1,2 @@
1
- export{Card}from"./card.js";export{VitalCardSkeleton}from"./vitalCard.skeleton.js";export{InformationalCardSkeleton}from"./informationalCard.skeleton.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"../inlineConfirm/inlineConfirm.js";import"lit-html/directives/unsafe-svg.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"../loaders/skeleton.js";import"../../../cardSample-BCIwY1rJ.js";
1
+ export{Card}from"./card.js";export{VitalCardSkeleton}from"./vitalCard.skeleton.js";export{InformationalCardSkeleton}from"./informationalCard.skeleton.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"../inlineConfirm/inlineConfirm.js";import"lit-html/directives/unsafe-svg.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"../loaders/skeleton.js";import"../../../cardSample-BCIwY1rJ.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as l}from"tslib";import{unsafeSVG as s}from"lit-html/directives/unsafe-svg.js";import{css as r,LitElement as o,unsafeCSS as n,html as d}from"lit";import{customElement as c,property as h,state as p}from"lit/decorators.js";import{deepmerge as u}from"deepmerge-ts";import{FormMixin as m}from"../../../common/mixins/form-input.js";import"../textInput/textInput.js";import"./checkbox.js";import{e as v}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"lit/directives/if-defined.js";import"lit/directives/class-map.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var k=r`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as l}from"tslib";import{unsafeSVG as s}from"lit-html/directives/unsafe-svg.js";import{css as r,LitElement as o,unsafeCSS as n,html as d}from"lit";import{customElement as c,property as h,state as p}from"lit/decorators.js";import{deepmerge as u}from"deepmerge-ts";import{FormMixin as m}from"../../../common/mixins/form-input.js";import"../textInput/textInput.js";import"./checkbox.js";import{e as v}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"lit/directives/if-defined.js";import"lit/directives/class-map.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var k=r`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,2 +1,2 @@
1
- export{Checkbox}from"./checkbox.js";export{CheckboxGroup}from"./checkboxGroup.js";export{CheckboxSubgroup}from"./checkboxSubgroup.js";import"tslib";import"lit";import"lit/decorators.js";import"lit-html/directives/class-map.js";import"lit/directives/if-defined.js";import"lit-html/directives/unsafe-svg.js";import"deepmerge-ts";import"../../../common/mixins/form-input.js";import"../textInput/textInput.js";import"lit/directives/class-map.js";import"../button/button.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";
1
+ export{Checkbox}from"./checkbox.js";export{CheckboxGroup}from"./checkboxGroup.js";export{CheckboxSubgroup}from"./checkboxSubgroup.js";import"tslib";import"lit";import"lit/decorators.js";import"lit-html/directives/class-map.js";import"lit/directives/if-defined.js";import"lit-html/directives/unsafe-svg.js";import"deepmerge-ts";import"../../../common/mixins/form-input.js";import"../textInput/textInput.js";import"lit/directives/class-map.js";import"../button/button.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.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 r}from"tslib";import{css as o,LitElement as l,unsafeCSS as n,html as d}from"lit";import{customElement as s,property as c,state as p,query as h}from"lit/decorators.js";import{unsafeSVG as u}from"lit-html/directives/unsafe-svg.js";import{deepmerge as m}from"deepmerge-ts";import{classMap as v}from"lit/directives/class-map.js";import{e as g}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import{FormMixin as b}from"../../../common/mixins/form-input.js";var f=o`*,
1
+ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as r}from"tslib";import{css as o,LitElement as l,unsafeCSS as n,html as d}from"lit";import{customElement as s,property as c,state as p,query as h}from"lit/decorators.js";import{unsafeSVG as u}from"lit-html/directives/unsafe-svg.js";import{deepmerge as m}from"deepmerge-ts";import{classMap as v}from"lit/directives/class-map.js";import{e as g}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import{FormMixin as b}from"../../../common/mixins/form-input.js";var f=o`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,2 +1,2 @@
1
- export{ColorInput}from"./colorInput.js";import"tslib";import"lit";import"lit/decorators.js";import"lit-html/directives/unsafe-svg.js";import"deepmerge-ts";import"lit/directives/class-map.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"../../../common/mixins/form-input.js";
1
+ export{ColorInput}from"./colorInput.js";import"tslib";import"lit";import"lit/decorators.js";import"lit-html/directives/unsafe-svg.js";import"deepmerge-ts";import"lit/directives/class-map.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"../../../common/mixins/form-input.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 s}from"tslib";import{css as n,LitElement as r,unsafeCSS as l,html as o}from"lit";import{customElement as d,property as c,state as h,query as p}from"lit/decorators.js";import{classMap as u}from"lit/directives/class-map.js";import{FormMixin as m}from"../../../common/mixins/form-input.js";import{unsafeSVG as g}from"lit-html/directives/unsafe-svg.js";import{getPlaceholder as f,injectFlatpickrStyles as v,updateEnableTime as k,clearFlatpickrInput as b,emitValue as y,initializeSingleAnchorFlatpickr as x,getModalContainer as _,setCalendarAttributes as w,hideEmptyYear as D,getFlatpickrOptions as I,handleInputClick as F,handleInputFocus as z,loadLocale as S}from"../../../common/helpers/flatpickr/flatpickr.js";import"flatpickr/dist/esm/l10n/default.js";import{debounce as E,CONFIG_DEBOUNCE_DELAY as T,isEmptyValue as M,cleanupFlatpickrInstance as C,generateRandomId as $,filterValidDates as L,shouldSkipManualInputSync as V}from"../../../common/helpers/flatpickr/utils.js";import"../button/button.js";import A from"flatpickr";import{c as N}from"../../../shidoka-flatpickr-theme-BqZcH5Up.js";import{c as W,t as O,e as P}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"flatpickr/dist/esm/plugins/rangePlugin.js";import"../../../common/helpers/flatpickr/langs.js";import"../../../common/helpers/flatpickr/overlay.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var j=n`*,
1
+ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as s}from"tslib";import{css as n,LitElement as r,unsafeCSS as l,html as o}from"lit";import{customElement as d,property as c,state as h,query as p}from"lit/decorators.js";import{classMap as u}from"lit/directives/class-map.js";import{FormMixin as m}from"../../../common/mixins/form-input.js";import{unsafeSVG as g}from"lit-html/directives/unsafe-svg.js";import{getPlaceholder as f,injectFlatpickrStyles as v,updateEnableTime as k,clearFlatpickrInput as b,emitValue as y,initializeSingleAnchorFlatpickr as x,getModalContainer as _,setCalendarAttributes as w,hideEmptyYear as D,getFlatpickrOptions as I,handleInputClick as F,handleInputFocus as z,loadLocale as S}from"../../../common/helpers/flatpickr/flatpickr.js";import"flatpickr/dist/esm/l10n/default.js";import{debounce as E,CONFIG_DEBOUNCE_DELAY as T,isEmptyValue as M,cleanupFlatpickrInstance as C,generateRandomId as $,filterValidDates as L,shouldSkipManualInputSync as V}from"../../../common/helpers/flatpickr/utils.js";import"../button/button.js";import A from"flatpickr";import{c as N}from"../../../shidoka-flatpickr-theme-BqZcH5Up.js";import{c as W,r as O,e as P}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"flatpickr/dist/esm/plugins/rangePlugin.js";import"../../../common/helpers/flatpickr/langs.js";import"../../../common/helpers/flatpickr/overlay.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var j=n`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,2 +1,2 @@
1
- export{DatePicker}from"./datepicker.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"../../../common/mixins/form-input.js";import"lit-html/directives/unsafe-svg.js";import"../../../common/helpers/flatpickr/flatpickr.js";import"flatpickr";import"flatpickr/dist/esm/plugins/rangePlugin.js";import"flatpickr/dist/esm/l10n/default.js";import"../../../common/helpers/flatpickr/langs.js";import"../../../common/helpers/flatpickr/overlay.js";import"../../../common/helpers/flatpickr/utils.js";import"../button/button.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../shidoka-flatpickr-theme-BqZcH5Up.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";
1
+ export{DatePicker}from"./datepicker.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"../../../common/mixins/form-input.js";import"lit-html/directives/unsafe-svg.js";import"../../../common/helpers/flatpickr/flatpickr.js";import"flatpickr";import"flatpickr/dist/esm/plugins/rangePlugin.js";import"flatpickr/dist/esm/l10n/default.js";import"../../../common/helpers/flatpickr/langs.js";import"../../../common/helpers/flatpickr/overlay.js";import"../../../common/helpers/flatpickr/utils.js";import"../button/button.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../shidoka-flatpickr-theme-BqZcH5Up.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.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 s}from"tslib";import{css as n,LitElement as r,unsafeCSS as l,html as o}from"lit";import{customElement as d,property as c,state as h,query as u}from"lit/decorators.js";import{classMap as p}from"lit/directives/class-map.js";import{ifDefined as g}from"lit/directives/if-defined.js";import{FormMixin as f}from"../../../common/mixins/form-input.js";import{unsafeSVG as m}from"lit-html/directives/unsafe-svg.js";import{DateRangeEditableMode as v,getPlaceholder as k,injectFlatpickrStyles as b,updateEnableTime as y,clearFlatpickrInput as D,emitValue as x,initializeSingleAnchorFlatpickr as _,getModalContainer as w,setCalendarAttributes as I,hideEmptyYear as S,getFlatpickrOptions as E,applyDateRangeEditingRestrictions as F,handleInputClick as z,handleInputFocus as M,loadLocale as T}from"../../../common/helpers/flatpickr/flatpickr.js";import"flatpickr/dist/esm/l10n/default.js";import{debounce as A,CONFIG_DEBOUNCE_DELAY as $,RESIZE_DEBOUNCE_DELAY as C,cleanupFlatpickrInstance as R,generateRandomId as L,filterValidDates as O,shouldSkipManualInputSync as P}from"../../../common/helpers/flatpickr/utils.js";import"../button/button.js";import{c as V}from"../../../shidoka-flatpickr-theme-BqZcH5Up.js";import{c as N,t as W,e as j}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"flatpickr";import"flatpickr/dist/esm/plugins/rangePlugin.js";import"../../../common/helpers/flatpickr/langs.js";import"../../../common/helpers/flatpickr/overlay.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var q=n`*,
1
+ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as s}from"tslib";import{css as n,LitElement as r,unsafeCSS as l,html as o}from"lit";import{customElement as d,property as c,state as h,query as u}from"lit/decorators.js";import{classMap as p}from"lit/directives/class-map.js";import{ifDefined as g}from"lit/directives/if-defined.js";import{FormMixin as f}from"../../../common/mixins/form-input.js";import{unsafeSVG as m}from"lit-html/directives/unsafe-svg.js";import{DateRangeEditableMode as v,getPlaceholder as k,injectFlatpickrStyles as b,updateEnableTime as y,clearFlatpickrInput as D,emitValue as x,initializeSingleAnchorFlatpickr as _,getModalContainer as w,setCalendarAttributes as I,hideEmptyYear as S,getFlatpickrOptions as E,applyDateRangeEditingRestrictions as F,handleInputClick as z,handleInputFocus as M,loadLocale as T}from"../../../common/helpers/flatpickr/flatpickr.js";import"flatpickr/dist/esm/l10n/default.js";import{debounce as A,CONFIG_DEBOUNCE_DELAY as $,RESIZE_DEBOUNCE_DELAY as C,cleanupFlatpickrInstance as R,generateRandomId as L,filterValidDates as O,shouldSkipManualInputSync as P}from"../../../common/helpers/flatpickr/utils.js";import"../button/button.js";import{c as V}from"../../../shidoka-flatpickr-theme-BqZcH5Up.js";import{c as N,r as W,e as j}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"flatpickr";import"flatpickr/dist/esm/plugins/rangePlugin.js";import"../../../common/helpers/flatpickr/langs.js";import"../../../common/helpers/flatpickr/overlay.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var q=n`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -1,2 +1,2 @@
1
- export{DateRangePicker}from"./daterangepicker.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"../../../common/mixins/form-input.js";import"lit-html/directives/unsafe-svg.js";import"../../../common/helpers/flatpickr/flatpickr.js";import"flatpickr";import"flatpickr/dist/esm/plugins/rangePlugin.js";import"flatpickr/dist/esm/l10n/default.js";import"../../../common/helpers/flatpickr/langs.js";import"../../../common/helpers/flatpickr/overlay.js";import"../../../common/helpers/flatpickr/utils.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../shidoka-flatpickr-theme-BqZcH5Up.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";
1
+ export{DateRangePicker}from"./daterangepicker.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"../../../common/mixins/form-input.js";import"lit-html/directives/unsafe-svg.js";import"../../../common/helpers/flatpickr/flatpickr.js";import"flatpickr";import"flatpickr/dist/esm/plugins/rangePlugin.js";import"flatpickr/dist/esm/l10n/default.js";import"../../../common/helpers/flatpickr/langs.js";import"../../../common/helpers/flatpickr/overlay.js";import"../../../common/helpers/flatpickr/utils.js";import"../button/button.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../../../shidoka-flatpickr-theme-BqZcH5Up.js";import"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as l,__classPrivateFieldSet as a}from"tslib";import{unsafeSVG as s}from"lit-html/directives/unsafe-svg.js";import{css as n,LitElement as o,unsafeCSS as d,html as r,nothing as h}from"lit";import{customElement as c,property as p,state as u,query as v}from"lit/decorators.js";import{classMap as m}from"lit/directives/class-map.js";import{ifDefined as g}from"lit/directives/if-defined.js";import{FormMixin as f}from"../../../common/mixins/form-input.js";import{deepmerge as b}from"deepmerge-ts";import"./dropdownOption.js";import"./enhancedDropdownOption.js";import"../tag/tag.js";import"../tag/tagGroup.js";import"../tag/tag.skeleton.js";import"../button/button.js";import"../textInput/textInput.js";import{c as k,k as x,e as y}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"../checkbox/checkbox.js";import"lit-html/directives/class-map.js";import"../checkbox/checkboxGroup.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../checkbox/checkboxSubgroup.js";import"../../../tag-ehM901IX.js";import"../link/link.js";import"../link/defs.js";import"../loaders/skeleton.js";var w=n`*,
1
+ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as l,__classPrivateFieldSet as a}from"tslib";import{unsafeSVG as s}from"lit-html/directives/unsafe-svg.js";import{css as n,LitElement as o,unsafeCSS as d,html as r,nothing as h}from"lit";import{customElement as c,property as p,state as u,query as v}from"lit/decorators.js";import{classMap as m}from"lit/directives/class-map.js";import{ifDefined as g}from"lit/directives/if-defined.js";import{FormMixin as f}from"../../../common/mixins/form-input.js";import{deepmerge as b}from"deepmerge-ts";import"./dropdownOption.js";import"./enhancedDropdownOption.js";import"../tag/tag.js";import"../tag/tagGroup.js";import"../tag/tag.skeleton.js";import"../button/button.js";import"../textInput/textInput.js";import{c as k,k as x,e as y}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"../checkbox/checkbox.js";import"lit-html/directives/class-map.js";import"../checkbox/checkboxGroup.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../checkbox/checkboxSubgroup.js";import"../../../tag-ehM901IX.js";import"../link/link.js";import"../link/defs.js";import"../loaders/skeleton.js";var w=n`*,
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 n,__classPrivateFieldGet as o,__classPrivateFieldSet as i}from"tslib";import{unsafeSVG as a}from"lit-html/directives/unsafe-svg.js";import{css as d,LitElement as r,unsafeCSS as l,html as s}from"lit";import{customElement as c,property as m,state as u}from"lit/decorators.js";import{classMap as h}from"lit/directives/class-map.js";import"../checkbox/checkbox.js";import"../checkbox/checkboxGroup.js";import"../checkbox/checkboxSubgroup.js";import"../button/button.js";import{r as v,c as b}from"../../../vendor/@kyndryl-design-system/shidoka-icons-CYoS5eiw.js";import"lit-html/directives/class-map.js";import"lit/directives/if-defined.js";import"deepmerge-ts";import"../../../common/mixins/form-input.js";import"../textInput/textInput.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var p=d`*,
1
+ import{__setFunctionName as e,__esDecorate as t,__runInitializers as n,__classPrivateFieldGet as o,__classPrivateFieldSet as i}from"tslib";import{unsafeSVG as a}from"lit-html/directives/unsafe-svg.js";import{css as d,LitElement as r,unsafeCSS as l,html as s}from"lit";import{customElement as c,property as m,state as u}from"lit/decorators.js";import{classMap as h}from"lit/directives/class-map.js";import"../checkbox/checkbox.js";import"../checkbox/checkboxGroup.js";import"../checkbox/checkboxSubgroup.js";import"../button/button.js";import{q as v,c as b}from"../../../vendor/@kyndryl-design-system/shidoka-icons-BDIAC-7x.js";import"lit-html/directives/class-map.js";import"lit/directives/if-defined.js";import"deepmerge-ts";import"../../../common/mixins/form-input.js";import"../textInput/textInput.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var p=d`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -387,7 +387,7 @@ kyn-checkbox {
387
387
  }
388
388
  .remove-option .clear-icon {
389
389
  padding-top: 4px;
390
- }`;let g=(()=>{var d,g,k,y,f,x,w,$,S,E,C,I,j,M;let W,A,D,P,O,B,z,F,R,q,N,T,U,K,L,V,G=[c("kyn-dropdown-option")],H=[],J=r,Q=[],X=[],Y=[],Z=[],_=[],ee=[],te=[],ne=[],oe=[],ie=[],ae=[],de=[],re=[],le=[],se=[],ce=[],me=[],ue=[],he=[],ve=[],be=[],pe=[],ge=[],ke=[],ye=[],fe=[],xe=[],we=[];return A=class extends J{get value(){return o(this,d,"f")}set value(e){i(this,d,e,"f")}get selected(){return o(this,g,"f")}set selected(e){i(this,g,e,"f")}get disabled(){return o(this,k,"f")}set disabled(e){i(this,k,e,"f")}get allowAddOption(){return o(this,y,"f")}set allowAddOption(e){i(this,y,e,"f")}get highlighted(){return o(this,f,"f")}set highlighted(e){i(this,f,e,"f")}get multiple(){return o(this,x,"f")}set multiple(e){i(this,x,e,"f")}get removable(){return o(this,w,"f")}set removable(e){i(this,w,e,"f")}get text(){return o(this,$,"f")}set text(e){i(this,$,e,"f")}get indeterminate(){return o(this,S,"f")}set indeterminate(e){i(this,S,e,"f")}get readonly(){return o(this,E,"f")}set readonly(e){i(this,E,e,"f")}get kind(){return o(this,C,"f")}set kind(e){i(this,C,e,"f")}get hasIcon(){return o(this,I,"f")}set hasIcon(e){i(this,I,e,"f")}get role(){return o(this,j,"f")}set role(e){i(this,j,e,"f")}get ariaSelected(){return o(this,M,"f")}set ariaSelected(e){i(this,M,e,"f")}render(){const e={option:!0,"menu-item":!0,"option-is-readonly":this.readonly,"ai-connected":"ai"===this.kind};return s`
390
+ }`;let g=(()=>{var d,g,k,y,f,x,w,$,S,E,C,I,j,M;let W,A,D,P,O,B,z,q,F,R,N,T,U,K,L,V,G=[c("kyn-dropdown-option")],H=[],J=r,Q=[],X=[],Y=[],Z=[],_=[],ee=[],te=[],ne=[],oe=[],ie=[],ae=[],de=[],re=[],le=[],se=[],ce=[],me=[],ue=[],he=[],ve=[],be=[],pe=[],ge=[],ke=[],ye=[],fe=[],xe=[],we=[];return A=class extends J{get value(){return o(this,d,"f")}set value(e){i(this,d,e,"f")}get selected(){return o(this,g,"f")}set selected(e){i(this,g,e,"f")}get disabled(){return o(this,k,"f")}set disabled(e){i(this,k,e,"f")}get allowAddOption(){return o(this,y,"f")}set allowAddOption(e){i(this,y,e,"f")}get highlighted(){return o(this,f,"f")}set highlighted(e){i(this,f,e,"f")}get multiple(){return o(this,x,"f")}set multiple(e){i(this,x,e,"f")}get removable(){return o(this,w,"f")}set removable(e){i(this,w,e,"f")}get text(){return o(this,$,"f")}set text(e){i(this,$,e,"f")}get indeterminate(){return o(this,S,"f")}set indeterminate(e){i(this,S,e,"f")}get readonly(){return o(this,E,"f")}set readonly(e){i(this,E,e,"f")}get kind(){return o(this,C,"f")}set kind(e){i(this,C,e,"f")}get hasIcon(){return o(this,I,"f")}set hasIcon(e){i(this,I,e,"f")}get role(){return o(this,j,"f")}set role(e){i(this,j,e,"f")}get ariaSelected(){return o(this,M,"f")}set ariaSelected(e){i(this,M,e,"f")}render(){const e={option:!0,"menu-item":!0,"option-is-readonly":this.readonly,"ai-connected":"ai"===this.kind};return s`
391
391
  <div
392
392
  class=${h(e)}
393
393
  role="option"
@@ -458,5 +458,5 @@ kyn-checkbox {
458
458
  </kyn-button>
459
459
  `:null}
460
460
  </div>
461
- `}firstUpdated(){const e=this.closest("kyn-dropdown");e&&(this.kind=e.kind,e.addEventListener("kind-changed",(e=>{this.kind=e.detail})))}willUpdate(e){var t;if(e.has("selected")&&(this.ariaSelected=this.selected.toString()),e.has("disabled")||e.has("readonly")){const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".menu-item");e&&(e.tabIndex=this.disabled||this.readonly?-1:0)}}focus(e){var t,n;null===(n=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".menu-item"))||void 0===n||n.focus(e)}handleKeyDown(e){if(!this.disabled&&!this.readonly){if(e.stopPropagation(),"Enter"===e.key||" "===e.key)return e.preventDefault(),void this.handleClick(e);switch(e.key){case"ArrowDown":return e.preventDefault(),void this.moveFocus(1);case"ArrowUp":return e.preventDefault(),void this.moveFocus(-1);case"Home":return e.preventDefault(),void this.moveToEdge("start");case"End":return e.preventDefault(),void this.moveToEdge("end")}}}moveFocus(e){var t,n;let o=e>0?this.nextElementSibling:this.previousElementSibling;for(;o;){const i=o.tagName.toLowerCase();if("kyn-dropdown-option"===i||"kyn-enhanced-dropdown-option"===i){const e=o;if(!e.disabled&&!e.readonly){this.highlighted=!1,null===(t=e.focus)||void 0===t||t.call(e,{preventScroll:!0}),e.highlighted=!0,null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});break}}o=e>0?o.nextElementSibling:o.previousElementSibling}}moveToEdge(e){var t,n;const o=this.parentElement;if(!o)return;const i=o.querySelectorAll("kyn-dropdown-option, kyn-enhanced-dropdown-option"),a=Array.from(i),d="start"===e?a[0]:a[a.length-1];!d||d.disabled||d.readonly||(this.highlighted=!1,null===(t=d.focus)||void 0===t||t.call(d,{preventScroll:!0}),d.highlighted=!0,null===(n=d.scrollIntoView)||void 0===n||n.call(d,{block:"nearest"}))}handleRemoveClick(e){e.stopPropagation();const t=new CustomEvent("on-remove-option",{bubbles:!0,composed:!0,detail:{value:this.value}});this.dispatchEvent(t)}handleSlotChange(e){const t=e.target.assignedNodes({flatten:!0});let n="";for(let e=0;e<t.length;e++)n+=t[e].textContent.trim();this.text=n}handleCheckboxChange(e){const t=e.detail||{};this.disabled||this.readonly||this.handleClick(t.origEvent||e,t.checked)}handleClick(e,t){(e instanceof MouseEvent||"undefined"!=typeof PointerEvent&&e instanceof PointerEvent)&&e.stopPropagation(),this.disabled||this.readonly||("boolean"==typeof t?this.selected=t:this.multiple?this.selected=!this.selected:this.selected=!0,this.dispatchEvent(new CustomEvent("on-click",{bubbles:!0,composed:!0,detail:{selected:this.selected,value:this.value,origEvent:e}})))}handleBlur(e){this.highlighted=!1;const t=new CustomEvent("on-blur",{bubbles:!0,composed:!0,detail:{origEvent:e}});this.dispatchEvent(t)}handleIconSlotChange(e){const t=e.target.assignedNodes({flatten:!0});this.hasIcon=t.length>0}constructor(){super(...arguments),d.set(this,n(this,Q,"")),g.set(this,(n(this,X),n(this,Y,!1))),k.set(this,(n(this,Z),n(this,_,!1))),y.set(this,(n(this,ee),n(this,te,!1))),f.set(this,(n(this,ne),n(this,oe,!1))),x.set(this,(n(this,ie),n(this,ae,!1))),w.set(this,(n(this,de),n(this,re,!1))),$.set(this,(n(this,le),n(this,se,""))),S.set(this,(n(this,ce),n(this,me,!1))),E.set(this,(n(this,ue),n(this,he,!1))),C.set(this,(n(this,ve),n(this,be,"default"))),I.set(this,(n(this,pe),n(this,ge,!1))),j.set(this,(n(this,ke),n(this,ye,"option"))),M.set(this,(n(this,fe),n(this,xe,"false"))),n(this,we)}},d=new WeakMap,g=new WeakMap,k=new WeakMap,y=new WeakMap,f=new WeakMap,x=new WeakMap,w=new WeakMap,$=new WeakMap,S=new WeakMap,E=new WeakMap,C=new WeakMap,I=new WeakMap,j=new WeakMap,M=new WeakMap,e(A,"DropdownOption"),(()=>{var e;const n="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=J[Symbol.metadata])&&void 0!==e?e:null):void 0;D=[m({type:String})],P=[m({type:Boolean})],O=[m({type:Boolean})],B=[m({type:Boolean})],z=[u()],F=[m({type:Boolean})],R=[m({type:Boolean})],q=[u()],N=[m({type:Boolean,reflect:!0})],T=[m({type:Boolean,reflect:!0})],U=[u()],K=[u()],L=[m({type:String,reflect:!0})],V=[m({type:String,reflect:!0,attribute:"aria-selected"})],t(A,null,D,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:n},Q,X),t(A,null,P,{kind:"accessor",name:"selected",static:!1,private:!1,access:{has:e=>"selected"in e,get:e=>e.selected,set:(e,t)=>{e.selected=t}},metadata:n},Y,Z),t(A,null,O,{kind:"accessor",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:n},_,ee),t(A,null,B,{kind:"accessor",name:"allowAddOption",static:!1,private:!1,access:{has:e=>"allowAddOption"in e,get:e=>e.allowAddOption,set:(e,t)=>{e.allowAddOption=t}},metadata:n},te,ne),t(A,null,z,{kind:"accessor",name:"highlighted",static:!1,private:!1,access:{has:e=>"highlighted"in e,get:e=>e.highlighted,set:(e,t)=>{e.highlighted=t}},metadata:n},oe,ie),t(A,null,F,{kind:"accessor",name:"multiple",static:!1,private:!1,access:{has:e=>"multiple"in e,get:e=>e.multiple,set:(e,t)=>{e.multiple=t}},metadata:n},ae,de),t(A,null,R,{kind:"accessor",name:"removable",static:!1,private:!1,access:{has:e=>"removable"in e,get:e=>e.removable,set:(e,t)=>{e.removable=t}},metadata:n},re,le),t(A,null,q,{kind:"accessor",name:"text",static:!1,private:!1,access:{has:e=>"text"in e,get:e=>e.text,set:(e,t)=>{e.text=t}},metadata:n},se,ce),t(A,null,N,{kind:"accessor",name:"indeterminate",static:!1,private:!1,access:{has:e=>"indeterminate"in e,get:e=>e.indeterminate,set:(e,t)=>{e.indeterminate=t}},metadata:n},me,ue),t(A,null,T,{kind:"accessor",name:"readonly",static:!1,private:!1,access:{has:e=>"readonly"in e,get:e=>e.readonly,set:(e,t)=>{e.readonly=t}},metadata:n},he,ve),t(A,null,U,{kind:"accessor",name:"kind",static:!1,private:!1,access:{has:e=>"kind"in e,get:e=>e.kind,set:(e,t)=>{e.kind=t}},metadata:n},be,pe),t(A,null,K,{kind:"accessor",name:"hasIcon",static:!1,private:!1,access:{has:e=>"hasIcon"in e,get:e=>e.hasIcon,set:(e,t)=>{e.hasIcon=t}},metadata:n},ge,ke),t(A,null,L,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:n},ye,fe),t(A,null,V,{kind:"accessor",name:"ariaSelected",static:!1,private:!1,access:{has:e=>"ariaSelected"in e,get:e=>e.ariaSelected,set:(e,t)=>{e.ariaSelected=t}},metadata:n},xe,we),t(null,W={value:A},G,{kind:"class",name:A.name,metadata:n},null,H),A=W.value,n&&Object.defineProperty(A,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:n})})(),A.styles=l(p),n(A,H),A})();export{g as DropdownOption};
461
+ `}firstUpdated(){const e=this.closest("kyn-dropdown");e&&(this.kind=e.kind,e.addEventListener("kind-changed",(e=>{this.kind=e.detail})))}willUpdate(e){var t;if(e.has("selected")&&(this.ariaSelected=this.selected.toString()),e.has("disabled")||e.has("readonly")){const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".menu-item");e&&(e.tabIndex=this.disabled||this.readonly?-1:0)}}focus(e){var t,n;null===(n=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".menu-item"))||void 0===n||n.focus(e)}handleKeyDown(e){if(!this.disabled&&!this.readonly){if(e.stopPropagation(),"Enter"===e.key||" "===e.key)return e.preventDefault(),void this.handleClick(e);switch(e.key){case"ArrowDown":return e.preventDefault(),void this.moveFocus(1);case"ArrowUp":return e.preventDefault(),void this.moveFocus(-1);case"Home":return e.preventDefault(),void this.moveToEdge("start");case"End":return e.preventDefault(),void this.moveToEdge("end")}}}moveFocus(e){var t,n;let o=e>0?this.nextElementSibling:this.previousElementSibling;for(;o;){const i=o.tagName.toLowerCase();if("kyn-dropdown-option"===i||"kyn-enhanced-dropdown-option"===i){const e=o;if(!e.disabled&&!e.readonly){this.highlighted=!1,null===(t=e.focus)||void 0===t||t.call(e,{preventScroll:!0}),e.highlighted=!0,null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});break}}o=e>0?o.nextElementSibling:o.previousElementSibling}}moveToEdge(e){var t,n;const o=this.parentElement;if(!o)return;const i=o.querySelectorAll("kyn-dropdown-option, kyn-enhanced-dropdown-option"),a=Array.from(i),d="start"===e?a[0]:a[a.length-1];!d||d.disabled||d.readonly||(this.highlighted=!1,null===(t=d.focus)||void 0===t||t.call(d,{preventScroll:!0}),d.highlighted=!0,null===(n=d.scrollIntoView)||void 0===n||n.call(d,{block:"nearest"}))}handleRemoveClick(e){e.stopPropagation();const t=new CustomEvent("on-remove-option",{bubbles:!0,composed:!0,detail:{value:this.value}});this.dispatchEvent(t)}handleSlotChange(e){const t=e.target.assignedNodes({flatten:!0});let n="";for(let e=0;e<t.length;e++)n+=t[e].textContent.trim();this.text=n}handleCheckboxChange(e){const t=e.detail||{};this.disabled||this.readonly||this.handleClick(t.origEvent||e,t.checked)}handleClick(e,t){(e instanceof MouseEvent||"undefined"!=typeof PointerEvent&&e instanceof PointerEvent)&&e.stopPropagation(),this.disabled||this.readonly||("boolean"==typeof t?this.selected=t:this.multiple?this.selected=!this.selected:this.selected=!0,this.dispatchEvent(new CustomEvent("on-click",{bubbles:!0,composed:!0,detail:{selected:this.selected,value:this.value,origEvent:e}})))}handleBlur(e){this.highlighted=!1;const t=new CustomEvent("on-blur",{bubbles:!0,composed:!0,detail:{origEvent:e}});this.dispatchEvent(t)}handleIconSlotChange(e){const t=e.target.assignedNodes({flatten:!0});this.hasIcon=t.length>0}constructor(){super(...arguments),d.set(this,n(this,Q,"")),g.set(this,(n(this,X),n(this,Y,!1))),k.set(this,(n(this,Z),n(this,_,!1))),y.set(this,(n(this,ee),n(this,te,!1))),f.set(this,(n(this,ne),n(this,oe,!1))),x.set(this,(n(this,ie),n(this,ae,!1))),w.set(this,(n(this,de),n(this,re,!1))),$.set(this,(n(this,le),n(this,se,""))),S.set(this,(n(this,ce),n(this,me,!1))),E.set(this,(n(this,ue),n(this,he,!1))),C.set(this,(n(this,ve),n(this,be,"default"))),I.set(this,(n(this,pe),n(this,ge,!1))),j.set(this,(n(this,ke),n(this,ye,"option"))),M.set(this,(n(this,fe),n(this,xe,"false"))),n(this,we)}},d=new WeakMap,g=new WeakMap,k=new WeakMap,y=new WeakMap,f=new WeakMap,x=new WeakMap,w=new WeakMap,$=new WeakMap,S=new WeakMap,E=new WeakMap,C=new WeakMap,I=new WeakMap,j=new WeakMap,M=new WeakMap,e(A,"DropdownOption"),(()=>{var e;const n="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=J[Symbol.metadata])&&void 0!==e?e:null):void 0;D=[m({type:String})],P=[m({type:Boolean})],O=[m({type:Boolean})],B=[m({type:Boolean})],z=[u()],q=[m({type:Boolean})],F=[m({type:Boolean})],R=[u()],N=[m({type:Boolean,reflect:!0})],T=[m({type:Boolean,reflect:!0})],U=[u()],K=[u()],L=[m({type:String,reflect:!0})],V=[m({type:String,reflect:!0,attribute:"aria-selected"})],t(A,null,D,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:e=>"value"in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:n},Q,X),t(A,null,P,{kind:"accessor",name:"selected",static:!1,private:!1,access:{has:e=>"selected"in e,get:e=>e.selected,set:(e,t)=>{e.selected=t}},metadata:n},Y,Z),t(A,null,O,{kind:"accessor",name:"disabled",static:!1,private:!1,access:{has:e=>"disabled"in e,get:e=>e.disabled,set:(e,t)=>{e.disabled=t}},metadata:n},_,ee),t(A,null,B,{kind:"accessor",name:"allowAddOption",static:!1,private:!1,access:{has:e=>"allowAddOption"in e,get:e=>e.allowAddOption,set:(e,t)=>{e.allowAddOption=t}},metadata:n},te,ne),t(A,null,z,{kind:"accessor",name:"highlighted",static:!1,private:!1,access:{has:e=>"highlighted"in e,get:e=>e.highlighted,set:(e,t)=>{e.highlighted=t}},metadata:n},oe,ie),t(A,null,q,{kind:"accessor",name:"multiple",static:!1,private:!1,access:{has:e=>"multiple"in e,get:e=>e.multiple,set:(e,t)=>{e.multiple=t}},metadata:n},ae,de),t(A,null,F,{kind:"accessor",name:"removable",static:!1,private:!1,access:{has:e=>"removable"in e,get:e=>e.removable,set:(e,t)=>{e.removable=t}},metadata:n},re,le),t(A,null,R,{kind:"accessor",name:"text",static:!1,private:!1,access:{has:e=>"text"in e,get:e=>e.text,set:(e,t)=>{e.text=t}},metadata:n},se,ce),t(A,null,N,{kind:"accessor",name:"indeterminate",static:!1,private:!1,access:{has:e=>"indeterminate"in e,get:e=>e.indeterminate,set:(e,t)=>{e.indeterminate=t}},metadata:n},me,ue),t(A,null,T,{kind:"accessor",name:"readonly",static:!1,private:!1,access:{has:e=>"readonly"in e,get:e=>e.readonly,set:(e,t)=>{e.readonly=t}},metadata:n},he,ve),t(A,null,U,{kind:"accessor",name:"kind",static:!1,private:!1,access:{has:e=>"kind"in e,get:e=>e.kind,set:(e,t)=>{e.kind=t}},metadata:n},be,pe),t(A,null,K,{kind:"accessor",name:"hasIcon",static:!1,private:!1,access:{has:e=>"hasIcon"in e,get:e=>e.hasIcon,set:(e,t)=>{e.hasIcon=t}},metadata:n},ge,ke),t(A,null,L,{kind:"accessor",name:"role",static:!1,private:!1,access:{has:e=>"role"in e,get:e=>e.role,set:(e,t)=>{e.role=t}},metadata:n},ye,fe),t(A,null,V,{kind:"accessor",name:"ariaSelected",static:!1,private:!1,access:{has:e=>"ariaSelected"in e,get:e=>e.ariaSelected,set:(e,t)=>{e.ariaSelected=t}},metadata:n},xe,we),t(null,W={value:A},G,{kind:"class",name:A.name,metadata:n},null,H),A=W.value,n&&Object.defineProperty(A,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:n})})(),A.styles=l(p),n(A,H),A})();export{g as DropdownOption};
462
462
  //# sourceMappingURL=dropdownOption.js.map