scb-wc 0.1.243 → 0.1.244

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 (78) hide show
  1. package/README.md +16 -19
  2. package/all.d.ts +0 -14
  3. package/all.js +0 -14
  4. package/index.js +85 -99
  5. package/mvc/components/all.js +0 -9
  6. package/mvc/components/scb-accordion/scb-accordion-item.js +1 -1
  7. package/mvc/components/scb-accordion/scb-accordion.js +1 -1
  8. package/mvc/components/scb-app-bar/scb-app-bar.js +1 -1
  9. package/mvc/components/scb-button/scb-button.js +3 -3
  10. package/mvc/components/scb-calendar/scb-calendar.js +1 -1
  11. package/mvc/components/scb-calendar-card/scb-calendar-card.js +2 -2
  12. package/mvc/components/scb-card/scb-card.js +2 -2
  13. package/mvc/components/scb-cookies-consent/scb-cookies-consent.js +1 -1
  14. package/mvc/components/scb-dialog/scb-dialog.js +1 -1
  15. package/mvc/components/scb-drawer/scb-drawer.js +3 -3
  16. package/mvc/components/scb-drop-zone/scb-drop-zone.js +1 -1
  17. package/mvc/components/scb-dropdown/scb-dropdown.js +3 -3
  18. package/mvc/components/scb-fact-card/scb-fact-card.js +1 -1
  19. package/mvc/components/scb-header/scb-header.js +2 -2
  20. package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +6 -6
  21. package/mvc/components/scb-icon-button/scb-icon-button.js +5 -5
  22. package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +6 -6
  23. package/mvc/components/scb-link/scb-link.js +1 -1
  24. package/mvc/components/scb-link-button/scb-link-button.js +1 -1
  25. package/mvc/components/scb-list/scb-list-item.js +6 -6
  26. package/mvc/components/scb-menu/scb-menu-item.js +1 -1
  27. package/mvc/components/scb-nav/scb-nav.js +1 -1
  28. package/mvc/components/scb-notification-card/scb-notification-card.js +1 -1
  29. package/mvc/components/scb-options-menu/scb-options-menu-item.js +1 -1
  30. package/mvc/components/scb-options-menu/scb-options-menu.js +2 -2
  31. package/mvc/components/scb-options-menu/scb-options-sub-menu.js +1 -1
  32. package/mvc/components/scb-overlay/scb-overlay.js +3 -3
  33. package/mvc/components/scb-pagination/scb-pagination.js +1 -1
  34. package/mvc/components/scb-progress-stepper/scb-progress-step.js +1 -1
  35. package/mvc/components/scb-search/scb-search.js +3 -3
  36. package/mvc/components/scb-segmented-button/scb-segmented-item.js +1 -1
  37. package/mvc/components/scb-select/scb-select-option.js +1 -1
  38. package/mvc/components/scb-select/scb-select.js +1 -1
  39. package/mvc/components/scb-snackbar/scb-snackbar.js +1 -1
  40. package/mvc/components/scb-stepper/scb-step.js +1 -1
  41. package/mvc/components/scb-table/scb-table.js +1 -1
  42. package/mvc/components/scb-table-advanced/scb-table-advanced.js +1 -1
  43. package/mvc/components/scb-textfield/scb-textfield.js +176 -34
  44. package/mvc/components/scb-toc/scb-toc-item.js +1 -1
  45. package/mvc/components/scb-tooltip/scb-tooltip.js +1 -1
  46. package/mvc/{components/shared → vendor}/component-size-token.js +1 -1
  47. package/mvc/vendor/lazy-focus-ring.js +2 -0
  48. package/mvc/vendor/lazy-ripple.js +2 -0
  49. package/mvc/{components/shared → vendor}/manual-popover.js +1 -1
  50. package/mvc/{components/scb-chevron → vendor}/scb-chevron.js +1 -1
  51. package/mvc/vendor/scb-icon-svg.js +11 -0
  52. package/package.json +2 -12
  53. package/scb-viz/scb-viz-series-differentiation-registry.js +7 -10
  54. package/scb-viz/scb-viz.js +43 -43
  55. package/scb-wc.bundle.js +288 -409
  56. package/scb-wc.d.ts +0 -28
  57. package/shared/scb-icon-svg.js +2 -5
  58. package/mvc/components/scb-datepicker/scb-datepicker.js +0 -143
  59. package/mvc/components/scb-table-next/read-table.js +0 -1
  60. package/mvc/components/scb-table-next/scb-table-next.js +0 -6
  61. package/mvc/components/shared/lazy-focus-ring.js +0 -2
  62. package/mvc/components/shared/lazy-ripple.js +0 -2
  63. package/mvc/components/shared/scb-icon-svg.js +0 -11
  64. package/scb-components/index.d.ts +0 -108
  65. package/scb-components/scb-table-next/read-table.d.ts +0 -29
  66. package/scb-components/scb-table-next/scb-table-next.d.ts +0 -22
  67. package/scb-components/scb-viz/scb-viz-actions-runtime.d.ts +0 -26
  68. package/scb-components/scb-viz/scb-viz-print-runtime.d.ts +0 -36
  69. package/scb-components/scb-viz/scb-viz-series-differentiation-registry.d.ts +0 -21
  70. package/scb-components/scb-viz/scb-viz-series-differentiation-runtime.d.ts +0 -42
  71. package/scb-components/scb-viz/scb-viz-table-runtime.d.ts +0 -31
  72. package/scb-components/shared/component-size-token.d.ts +0 -1
  73. package/scb-components/shared/lazy-focus-ring.d.ts +0 -4
  74. package/scb-components/shared/lazy-ripple.d.ts +0 -9
  75. package/scb-components/shared/manual-popover.d.ts +0 -7
  76. package/scb-components/shared/scb-icon-svg.d.ts +0 -3
  77. package/scb-table-next/read-table.js +0 -87
  78. package/scb-table-next/scb-table-next.js +0 -226
@@ -1,4 +1,4 @@
1
- import{g as v,h as f,m as y,p,v as b,y as x}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/icon.js";import"../../vendor/ripple.js";import{addLazyFocusRingListeners as w}from"../shared/lazy-focus-ring.js";import{t as d}from"../../vendor/decorate.js";import"../scb-chevron/scb-chevron.js";import"../scb-divider/scb-divider.js";(function(){try{var u=typeof globalThis<"u"?globalThis:window;if(!u.__scb_ce_guard_installed__){u.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,s,i){try{customElements.get(e)||t(e,s,i)}catch(a){var o=String(a||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw a}}}}catch{}})();var m,g,c=(m=class extends f{constructor(...t){super(...t),this.expanded=!1,this.label="",this.supportingText="",this.current=!1,this.itemHref="#",this.noDivider=!1,this._unique=g._uid(),this._overflowVisibleTimer=null,this._slotHasContent=!1,this._trailingSlotHasContent=!1,this._onSlotChange=()=>{const e=this.renderRoot.querySelector("slot:not([name])"),s=!!e&&e.assignedElements({flatten:!0}).length>0;this._slotHasContent!==s&&(this._slotHasContent=s,this.requestUpdate()),!this._slotHasContent&&this.expanded&&(this.expanded=!1),this._applyInertByExpanded()},this._toggleAccordion=()=>{if(!this._slotHasContent)return;const e=!this.expanded;this.setExpanded(e)},this._onKeyDown=e=>{const s=this.closest("scb-toc"),i=Array.from(s?.querySelectorAll("scb-toc-item")||[]).map(n=>({host:n,label:n.renderRoot.querySelector(".toc-item-label")||null})).filter(n=>!!n.label),o=i.findIndex(n=>n.host===this);if(o<0)return;const a=e.currentTarget?.classList?.contains("toc-chevron-button")??!1;switch(e.key){case"Enter":case" ":if(!a)return;e.preventDefault(),this._toggleAccordion();break;case"ArrowDown":e.preventDefault(),o<i.length-1&&i[o+1].label.focus();break;case"ArrowUp":e.preventDefault(),o>0&&i[o-1].label.focus();break;case"Home":e.preventDefault(),i.length&&i[0].label.focus();break;case"End":e.preventDefault(),i.length&&i[i.length-1].label.focus();break}}}setExpanded(t){this.expanded!==t&&(this.expanded=t)}static _uid(){return globalThis.crypto?.randomUUID?.()??`${g._uidPrefix}-${++g._uidSeq}`}firstUpdated(){this._applyInertByExpanded(),this._syncOverflowVisibilityByExpanded()}updated(t){t.has("expanded")&&(this._applyInertByExpanded(),this._syncOverflowVisibilityByExpanded(),this.dispatchEvent(new CustomEvent("expanded-changed",{detail:{expanded:this.expanded,label:this.label},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("expandedchanged",{detail:{expanded:this.expanded,label:this.label},bubbles:!0,composed:!0})))}connectedCallback(){super.connectedCallback(),this._removeLazyFocusRingListeners=w(this,this.renderRoot),this._slotHasContent=Array.from(this.children).some(t=>{const e=t.getAttribute("slot");return e===null||e===""}),this._trailingSlotHasContent=Array.from(this.children).some(t=>t.getAttribute("slot")==="trailing"),!this._slotHasContent&&this.expanded&&(this.expanded=!1)}disconnectedCallback(){this._removeLazyFocusRingListeners?.(),this._removeLazyFocusRingListeners=void 0,super.disconnectedCallback(),this._overflowVisibleTimer!==null&&(window.clearTimeout(this._overflowVisibleTimer),this._overflowVisibleTimer=null)}_applyInertByExpanded(){const t=this.renderRoot.querySelector(".scb-toc-item-bottom");t&&(this.expanded?(t.removeAttribute("inert"),t.setAttribute("aria-hidden","false"),this._restoreTabIndexesIfNeeded()):(t.setAttribute("inert",""),t.setAttribute("aria-hidden","true"),this._removeTabIndexesIfNeeded()))}_syncOverflowVisibilityByExpanded(){if(this._overflowVisibleTimer!==null&&(window.clearTimeout(this._overflowVisibleTimer),this._overflowVisibleTimer=null),this.removeAttribute("data-expanded-settled"),!this.expanded)return;const t=this.renderRoot.querySelector(".scb-toc-item-bottom");if(!t){this.setAttribute("data-expanded-settled","");return}const e=this._getTransitionMs(t);if(e<=0){this.setAttribute("data-expanded-settled","");return}this._overflowVisibleTimer=window.setTimeout(()=>{this._overflowVisibleTimer=null,this.expanded&&this.setAttribute("data-expanded-settled","")},e)}_getTransitionMs(t){const e=getComputedStyle(t),s=e.transitionDuration.split(",").map(r=>r.trim()),i=e.transitionDelay.split(",").map(r=>r.trim()),o=r=>{const l=parseFloat(r);return Number.isFinite(l)?r.endsWith("ms")?l:r.endsWith("s")?l*1e3:l:0},a=Math.max(s.length,i.length);let n=0;for(let r=0;r<a;r+=1){const l=o(s[r]??s[s.length-1]??"0s"),h=o(i[r]??i[i.length-1]??"0s");n=Math.max(n,l+h)}return Math.ceil(n)}_supportsInert(){return"inert"in HTMLElement.prototype}_collectFocusableFromSlot(){const t=this.renderRoot.querySelector("slot:not([name])");if(!t)return[];const e=t.assignedElements({flatten:!0}),s=[],i=o=>{o instanceof HTMLElement&&o.matches("a,button,input,select,textarea,[tabindex]")&&s.push(o)};return e.forEach(o=>{i(o),o.querySelectorAll?.("a,button,input,select,textarea,[tabindex]").forEach(a=>i(a))}),s}_removeTabIndexesIfNeeded(){this._supportsInert()||this._collectFocusableFromSlot().forEach(t=>{const e=t.getAttribute("tabindex");e!==null&&t.setAttribute("data-scb-prev-tabindex",e),t.setAttribute("tabindex","-1")})}_restoreTabIndexesIfNeeded(){this._supportsInert()||this._collectFocusableFromSlot().forEach(t=>{const e=t.getAttribute("data-scb-prev-tabindex");e!==null?(t.setAttribute("tabindex",e),t.removeAttribute("data-scb-prev-tabindex")):t.removeAttribute("tabindex")})}render(){const t=`bottom-${this._unique}`,e=`toc-label-${this._unique}`,s=`toc-chevron-${this._unique}`,i=this.supportingText.trim().length>0;return b`
1
+ import{g as v,h as f,m as y,p,v as b,y as x}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/icon.js";import"../../vendor/ripple.js";import{t as w}from"../../vendor/lazy-focus-ring.js";import{t as d}from"../../vendor/decorate.js";import"../../vendor/scb-chevron.js";import"../scb-divider/scb-divider.js";(function(){try{var u=typeof globalThis<"u"?globalThis:window;if(!u.__scb_ce_guard_installed__){u.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,s,i){try{customElements.get(e)||t(e,s,i)}catch(a){var o=String(a||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw a}}}}catch{}})();var m,g,c=(m=class extends f{constructor(...t){super(...t),this.expanded=!1,this.label="",this.supportingText="",this.current=!1,this.itemHref="#",this.noDivider=!1,this._unique=g._uid(),this._overflowVisibleTimer=null,this._slotHasContent=!1,this._trailingSlotHasContent=!1,this._onSlotChange=()=>{const e=this.renderRoot.querySelector("slot:not([name])"),s=!!e&&e.assignedElements({flatten:!0}).length>0;this._slotHasContent!==s&&(this._slotHasContent=s,this.requestUpdate()),!this._slotHasContent&&this.expanded&&(this.expanded=!1),this._applyInertByExpanded()},this._toggleAccordion=()=>{if(!this._slotHasContent)return;const e=!this.expanded;this.setExpanded(e)},this._onKeyDown=e=>{const s=this.closest("scb-toc"),i=Array.from(s?.querySelectorAll("scb-toc-item")||[]).map(n=>({host:n,label:n.renderRoot.querySelector(".toc-item-label")||null})).filter(n=>!!n.label),o=i.findIndex(n=>n.host===this);if(o<0)return;const a=e.currentTarget?.classList?.contains("toc-chevron-button")??!1;switch(e.key){case"Enter":case" ":if(!a)return;e.preventDefault(),this._toggleAccordion();break;case"ArrowDown":e.preventDefault(),o<i.length-1&&i[o+1].label.focus();break;case"ArrowUp":e.preventDefault(),o>0&&i[o-1].label.focus();break;case"Home":e.preventDefault(),i.length&&i[0].label.focus();break;case"End":e.preventDefault(),i.length&&i[i.length-1].label.focus();break}}}setExpanded(t){this.expanded!==t&&(this.expanded=t)}static _uid(){return globalThis.crypto?.randomUUID?.()??`${g._uidPrefix}-${++g._uidSeq}`}firstUpdated(){this._applyInertByExpanded(),this._syncOverflowVisibilityByExpanded()}updated(t){t.has("expanded")&&(this._applyInertByExpanded(),this._syncOverflowVisibilityByExpanded(),this.dispatchEvent(new CustomEvent("expanded-changed",{detail:{expanded:this.expanded,label:this.label},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("expandedchanged",{detail:{expanded:this.expanded,label:this.label},bubbles:!0,composed:!0})))}connectedCallback(){super.connectedCallback(),this._removeLazyFocusRingListeners=w(this,this.renderRoot),this._slotHasContent=Array.from(this.children).some(t=>{const e=t.getAttribute("slot");return e===null||e===""}),this._trailingSlotHasContent=Array.from(this.children).some(t=>t.getAttribute("slot")==="trailing"),!this._slotHasContent&&this.expanded&&(this.expanded=!1)}disconnectedCallback(){this._removeLazyFocusRingListeners?.(),this._removeLazyFocusRingListeners=void 0,super.disconnectedCallback(),this._overflowVisibleTimer!==null&&(window.clearTimeout(this._overflowVisibleTimer),this._overflowVisibleTimer=null)}_applyInertByExpanded(){const t=this.renderRoot.querySelector(".scb-toc-item-bottom");t&&(this.expanded?(t.removeAttribute("inert"),t.setAttribute("aria-hidden","false"),this._restoreTabIndexesIfNeeded()):(t.setAttribute("inert",""),t.setAttribute("aria-hidden","true"),this._removeTabIndexesIfNeeded()))}_syncOverflowVisibilityByExpanded(){if(this._overflowVisibleTimer!==null&&(window.clearTimeout(this._overflowVisibleTimer),this._overflowVisibleTimer=null),this.removeAttribute("data-expanded-settled"),!this.expanded)return;const t=this.renderRoot.querySelector(".scb-toc-item-bottom");if(!t){this.setAttribute("data-expanded-settled","");return}const e=this._getTransitionMs(t);if(e<=0){this.setAttribute("data-expanded-settled","");return}this._overflowVisibleTimer=window.setTimeout(()=>{this._overflowVisibleTimer=null,this.expanded&&this.setAttribute("data-expanded-settled","")},e)}_getTransitionMs(t){const e=getComputedStyle(t),s=e.transitionDuration.split(",").map(r=>r.trim()),i=e.transitionDelay.split(",").map(r=>r.trim()),o=r=>{const l=parseFloat(r);return Number.isFinite(l)?r.endsWith("ms")?l:r.endsWith("s")?l*1e3:l:0},a=Math.max(s.length,i.length);let n=0;for(let r=0;r<a;r+=1){const l=o(s[r]??s[s.length-1]??"0s"),h=o(i[r]??i[i.length-1]??"0s");n=Math.max(n,l+h)}return Math.ceil(n)}_supportsInert(){return"inert"in HTMLElement.prototype}_collectFocusableFromSlot(){const t=this.renderRoot.querySelector("slot:not([name])");if(!t)return[];const e=t.assignedElements({flatten:!0}),s=[],i=o=>{o instanceof HTMLElement&&o.matches("a,button,input,select,textarea,[tabindex]")&&s.push(o)};return e.forEach(o=>{i(o),o.querySelectorAll?.("a,button,input,select,textarea,[tabindex]").forEach(a=>i(a))}),s}_removeTabIndexesIfNeeded(){this._supportsInert()||this._collectFocusableFromSlot().forEach(t=>{const e=t.getAttribute("tabindex");e!==null&&t.setAttribute("data-scb-prev-tabindex",e),t.setAttribute("tabindex","-1")})}_restoreTabIndexesIfNeeded(){this._supportsInert()||this._collectFocusableFromSlot().forEach(t=>{const e=t.getAttribute("data-scb-prev-tabindex");e!==null?(t.setAttribute("tabindex",e),t.removeAttribute("data-scb-prev-tabindex")):t.removeAttribute("tabindex")})}render(){const t=`bottom-${this._unique}`,e=`toc-label-${this._unique}`,s=`toc-chevron-${this._unique}`,i=this.supportingText.trim().length>0;return b`
2
2
  <div class="scb-toc-item">
3
3
  <div class=${`scb-toc-item-top${i?"":" no-supporting-text"}`}>
4
4
  <div>
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../scb-button/scb-button.js","../../vendor/vendor.js","../../vendor/vendor-lit.js","../../vendor/preload-helper.js","../../vendor/component-defaults.js","../../vendor/decorate.js","../../vendor/assertClassBrand.js","../../vendor/classPrivateMethodInitSpec.js","../../vendor/aria-references.internal.js"])))=>i.map(i=>d[i]);
2
- import{g as C,h as q,m as H,p as c,v as d,y as N}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/icon.js";import{t as I}from"../../vendor/preload-helper.js";import{componentSizeToken as K}from"../shared/component-size-token.js";import{t as p}from"../../vendor/decorate.js";import{closeManualPopover as m,openManualPopover as j}from"../shared/manual-popover.js";(function(){try{var f=typeof globalThis<"u"?globalThis:window;if(!f.__scb_ce_guard_installed__){f.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(i,e,o){try{customElements.get(i)||t(i,e,o)}catch(h){var n=String(h||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw h}}}}catch{}})();var T,V=0,x="data-scb-tooltip-managed-action-size",l=(T=class extends q{constructor(...t){super(...t),this.variant="plain",this.arrow=null,this.supportingtext="",this.label="",this.trigger="hover",this.position="top",this.open=!1,this.delay=.25,this.offset=0,this.maxWidth="300px",this._hoverActive=!1,this._clickActive=!1,this._hideTimeout=null,this._triggerEl=null,this._originalPosition="top",this._tooltipId=`scb-tooltip-${++V}`,this._buttonDepsLoaded=!1,this._listeningForPositionChanges=!1,this._listeningForDismiss=!1,this._onWindowReposition=()=>{if(!this.open)return;const i=this._getTooltipElement(),e=this._triggerEl;!i||!e||this._positionTooltip(i,e)},this._onDocumentKeyDown=i=>{i.key!=="Escape"||!this.open||(this._clickActive=!1,this._hoverActive=!1,this._setOpenState(!1))},this._onDocumentPointerDown=i=>{this.open&&(i.composedPath().includes(this)||(this._clickActive=!1,this._hoverActive=!1,this._setOpenState(!1)))},this._ensureButtonDepsIfNeeded=()=>{this._syncRichActionButtonSizes(),!this._buttonDepsLoaded&&this.querySelector('[slot="scb-tooltip-button"]')&&(this._buttonDepsLoaded=!0,I(()=>import("../scb-button/scb-button.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url))},this._onTriggerMouseEnter=()=>{this._hasTooltipContent()&&(this._hoverActive=!0,this._setOpenState(!0))},this._onTriggerMouseLeave=()=>{this._hoverActive=!1,this._clickActive||this._setOpenState(!1)},this._onTriggerFocus=()=>{this._hasTooltipContent()&&(this._hoverActive=!0,this._setOpenState(!0))},this._onTriggerBlur=()=>{this._hoverActive=!1,this._clickActive||this._setOpenState(!1)},this._onTriggerKeyDown=i=>{i.key==="Tab"&&(this._hoverActive=!1,this._clickActive=!1,this._setOpenState(!1),m(this._getTooltipElement()))},this._onTooltipMouseEnter=()=>{this._hasTooltipContent()&&(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!0,this._setOpenState(!0))},this._onTooltipMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!1,this._clickActive||this._setOpenState(!1))},this._onTriggerClick=()=>{this._hasTooltipContent()&&(this._clickActive=!this._clickActive,this._clickActive?this._setOpenState(!0):this._hoverActive||this._setOpenState(!1))}}_syncRichActionButtonSizes(){const t=K(this,"--scb-tooltip-design-rich-action-button-size-medium",["small","medium","large"],"medium"),i=this.querySelectorAll(':scope > scb-button[slot="scb-tooltip-button"]');for(const e of i){const o=e.getAttribute(x);if(o!==null&&e.getAttribute("size")!==o){e.removeAttribute(x);continue}(!e.hasAttribute("size")||o!==null)&&(e.setAttribute("size",t),e.setAttribute(x,t))}}firstUpdated(){this._originalPosition=this.position,this._updateDelayCss(),this._updateMaxWidthCss(),this._updateTriggerElement(),this._updateTooltipHoverListeners(),this._ensureButtonDepsIfNeeded(),this.open&&this._syncOpenState()}updated(t){if(this._syncRichActionButtonSizes(),t.has("trigger")&&(this._updateTriggerElement(),this._updateTooltipHoverListeners()),t.has("delay")&&this._updateDelayCss(),t.has("maxWidth")&&this._updateMaxWidthCss(),(t.has("supportingtext")||t.has("label")||t.has("variant"))&&(this._hasTooltipContent()||(this._hoverActive=!1,this._clickActive=!1,this.open=!1),this._updateTriggerElement(),this._updateTooltipHoverListeners()),t.has("open")){if(this.open&&!this._hasTooltipContent()){this.open=!1;return}this._syncOpenState(),this._dispatchOpenChanged()}}connectedCallback(){super.connectedCallback(),this.hasUpdated&&(this._updateTriggerElement(),this._updateTooltipHoverListeners(),this.open&&this._syncOpenState())}disconnectedCallback(){super.disconnectedCallback(),this._detachTriggerListeners(),this._triggerEl&&this._removeTriggerDescription(this._triggerEl);const t=this._getTooltipElement();t&&(t.removeEventListener("mouseenter",this._onTooltipMouseEnter),t.removeEventListener("mouseleave",this._onTooltipMouseLeave),m(t)),this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null),this._detachPositionListeners(),this._detachDismissListeners()}_getTooltipElement(){return this.renderRoot.querySelector(".scb-tooltip")}_syncOpenState(){const t=this._getTooltipElement();t&&(this.open?this._showTooltip(t):this._hideTooltip(t))}_setOpenState(t){if(this.open===t){t&&this._syncOpenState();return}this.open=t}_getSupportingText(){return(this.supportingtext??"").replace(/<br\s*\/?>/gi,`
2
+ import{g as C,h as q,m as H,p as c,v as d,y as N}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/icon.js";import{t as I}from"../../vendor/preload-helper.js";import{t as K}from"../../vendor/component-size-token.js";import{t as p}from"../../vendor/decorate.js";import{a as j,t as m}from"../../vendor/manual-popover.js";(function(){try{var f=typeof globalThis<"u"?globalThis:window;if(!f.__scb_ce_guard_installed__){f.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(i,e,o){try{customElements.get(i)||t(i,e,o)}catch(h){var n=String(h||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw h}}}}catch{}})();var T,V=0,x="data-scb-tooltip-managed-action-size",l=(T=class extends q{constructor(...t){super(...t),this.variant="plain",this.arrow=null,this.supportingtext="",this.label="",this.trigger="hover",this.position="top",this.open=!1,this.delay=.25,this.offset=0,this.maxWidth="300px",this._hoverActive=!1,this._clickActive=!1,this._hideTimeout=null,this._triggerEl=null,this._originalPosition="top",this._tooltipId=`scb-tooltip-${++V}`,this._buttonDepsLoaded=!1,this._listeningForPositionChanges=!1,this._listeningForDismiss=!1,this._onWindowReposition=()=>{if(!this.open)return;const i=this._getTooltipElement(),e=this._triggerEl;!i||!e||this._positionTooltip(i,e)},this._onDocumentKeyDown=i=>{i.key!=="Escape"||!this.open||(this._clickActive=!1,this._hoverActive=!1,this._setOpenState(!1))},this._onDocumentPointerDown=i=>{this.open&&(i.composedPath().includes(this)||(this._clickActive=!1,this._hoverActive=!1,this._setOpenState(!1)))},this._ensureButtonDepsIfNeeded=()=>{this._syncRichActionButtonSizes(),!this._buttonDepsLoaded&&this.querySelector('[slot="scb-tooltip-button"]')&&(this._buttonDepsLoaded=!0,I(()=>import("../scb-button/scb-button.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url))},this._onTriggerMouseEnter=()=>{this._hasTooltipContent()&&(this._hoverActive=!0,this._setOpenState(!0))},this._onTriggerMouseLeave=()=>{this._hoverActive=!1,this._clickActive||this._setOpenState(!1)},this._onTriggerFocus=()=>{this._hasTooltipContent()&&(this._hoverActive=!0,this._setOpenState(!0))},this._onTriggerBlur=()=>{this._hoverActive=!1,this._clickActive||this._setOpenState(!1)},this._onTriggerKeyDown=i=>{i.key==="Tab"&&(this._hoverActive=!1,this._clickActive=!1,this._setOpenState(!1),m(this._getTooltipElement()))},this._onTooltipMouseEnter=()=>{this._hasTooltipContent()&&(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!0,this._setOpenState(!0))},this._onTooltipMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!1,this._clickActive||this._setOpenState(!1))},this._onTriggerClick=()=>{this._hasTooltipContent()&&(this._clickActive=!this._clickActive,this._clickActive?this._setOpenState(!0):this._hoverActive||this._setOpenState(!1))}}_syncRichActionButtonSizes(){const t=K(this,"--scb-tooltip-design-rich-action-button-size-medium",["small","medium","large"],"medium"),i=this.querySelectorAll(':scope > scb-button[slot="scb-tooltip-button"]');for(const e of i){const o=e.getAttribute(x);if(o!==null&&e.getAttribute("size")!==o){e.removeAttribute(x);continue}(!e.hasAttribute("size")||o!==null)&&(e.setAttribute("size",t),e.setAttribute(x,t))}}firstUpdated(){this._originalPosition=this.position,this._updateDelayCss(),this._updateMaxWidthCss(),this._updateTriggerElement(),this._updateTooltipHoverListeners(),this._ensureButtonDepsIfNeeded(),this.open&&this._syncOpenState()}updated(t){if(this._syncRichActionButtonSizes(),t.has("trigger")&&(this._updateTriggerElement(),this._updateTooltipHoverListeners()),t.has("delay")&&this._updateDelayCss(),t.has("maxWidth")&&this._updateMaxWidthCss(),(t.has("supportingtext")||t.has("label")||t.has("variant"))&&(this._hasTooltipContent()||(this._hoverActive=!1,this._clickActive=!1,this.open=!1),this._updateTriggerElement(),this._updateTooltipHoverListeners()),t.has("open")){if(this.open&&!this._hasTooltipContent()){this.open=!1;return}this._syncOpenState(),this._dispatchOpenChanged()}}connectedCallback(){super.connectedCallback(),this.hasUpdated&&(this._updateTriggerElement(),this._updateTooltipHoverListeners(),this.open&&this._syncOpenState())}disconnectedCallback(){super.disconnectedCallback(),this._detachTriggerListeners(),this._triggerEl&&this._removeTriggerDescription(this._triggerEl);const t=this._getTooltipElement();t&&(t.removeEventListener("mouseenter",this._onTooltipMouseEnter),t.removeEventListener("mouseleave",this._onTooltipMouseLeave),m(t)),this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null),this._detachPositionListeners(),this._detachDismissListeners()}_getTooltipElement(){return this.renderRoot.querySelector(".scb-tooltip")}_syncOpenState(){const t=this._getTooltipElement();t&&(this.open?this._showTooltip(t):this._hideTooltip(t))}_setOpenState(t){if(this.open===t){t&&this._syncOpenState();return}this.open=t}_getSupportingText(){return(this.supportingtext??"").replace(/<br\s*\/?>/gi,`
3
3
  `)}_hasTooltipContent(){const t=this._getSupportingText().trim();return this.variant==="rich"?!!((this.label||"").trim()||t):!!t}_updateDelayCss(){const t=Number.isFinite(this.delay)?this.delay:.25;this.style.setProperty("--delay",`${t}s`)}_updateMaxWidthCss(){const t=(this.maxWidth||"").trim(),i=t.toLowerCase()==="none",e=i?"none":t||"300px";this.style.setProperty("--max-width",e),this.style.setProperty("--wrap",i?"nowrap":"normal")}_dispatchOpenChanged(){const t={open:this.open};this.dispatchEvent(new CustomEvent("open-changed",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("openchanged",{detail:t,bubbles:!0,composed:!0}))}_findTriggerElement(){const t=this.querySelector("[scb-tooltip-anchor]:not([slot])");return t||(Array.from(this.children).find(i=>i!==this._triggerDescription)??null)}_updateTriggerElement(){const t=this._triggerEl;t&&(this._detachTriggerListeners(),this._removeTriggerDescription(t));const i=this._findTriggerElement();this._triggerEl=i,i&&this._hasTooltipContent()&&(this._setTriggerDescription(i),i.addEventListener("keydown",this._onTriggerKeyDown),(this.trigger==="click"||this.trigger==="hover-click")&&i.addEventListener("click",this._onTriggerClick),(this.trigger==="hover"||this.trigger==="hover-click")&&(i.addEventListener("mouseenter",this._onTriggerMouseEnter),i.addEventListener("mouseleave",this._onTriggerMouseLeave),i.addEventListener("focus",this._onTriggerFocus),i.addEventListener("blur",this._onTriggerBlur)))}_setTriggerDescription(t){if(!this._triggerDescription){const o=this.ownerDocument.createElement("span");o.id=`${this._tooltipId}-description`,o.hidden=!0,this._triggerDescription=o}const i=this._triggerDescription;i.textContent=[this.variant==="rich"?this.label:"",this._getSupportingText()].join(" ").replace(/\s+/g," ").trim(),i.parentNode!==this&&this.append(i);const e=t.getAttribute("aria-describedby")?.match(/\S+/g)??[];t.setAttribute("aria-describedby",[...new Set([...e,i.id])].join(" "))}_removeTriggerDescription(t){const i=this._triggerDescription;if(!i)return;const e=t.getAttribute("aria-describedby")?.match(/\S+/g)??[];if(!e.includes(i.id))return;const o=e.filter(n=>n!==i.id);o.length?t.setAttribute("aria-describedby",o.join(" ")):t.removeAttribute("aria-describedby")}_updateTooltipHoverListeners(){const t=this._getTooltipElement();t&&(t.removeEventListener("mouseenter",this._onTooltipMouseEnter),t.removeEventListener("mouseleave",this._onTooltipMouseLeave),(this.trigger==="hover"||this.trigger==="hover-click")&&(t.addEventListener("mouseenter",this._onTooltipMouseEnter),t.addEventListener("mouseleave",this._onTooltipMouseLeave)))}_detachTriggerListeners(){const t=this._triggerEl;t&&(t.removeEventListener("click",this._onTriggerClick),t.removeEventListener("keydown",this._onTriggerKeyDown),t.removeEventListener("mouseenter",this._onTriggerMouseEnter),t.removeEventListener("mouseleave",this._onTriggerMouseLeave),t.removeEventListener("focus",this._onTriggerFocus),t.removeEventListener("blur",this._onTriggerBlur))}_showTooltip(t){if(!this._hasTooltipContent()){this.open=!1;return}this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null);const i=this._triggerEl;this._resetPosition(),t.classList.remove("hidden"),t.setAttribute("aria-hidden","false"),j(t,i),this._attachPositionListeners(),this._attachDismissListeners(),requestAnimationFrame(()=>{i&&this._positionTooltip(t,i),t.setAttribute("open","")})}_hideTooltip(t){t.removeAttribute("open"),t.setAttribute("aria-hidden","true"),this._detachPositionListeners(),this._detachDismissListeners(),this._scheduleHidden(t)}_attachPositionListeners(){this._listeningForPositionChanges||(this._listeningForPositionChanges=!0,window.addEventListener("resize",this._onWindowReposition,{passive:!0}),window.addEventListener("scroll",this._onWindowReposition,{passive:!0,capture:!0}))}_detachPositionListeners(){this._listeningForPositionChanges&&(this._listeningForPositionChanges=!1,window.removeEventListener("resize",this._onWindowReposition),window.removeEventListener("scroll",this._onWindowReposition,!0))}_attachDismissListeners(){this._listeningForDismiss||(this._listeningForDismiss=!0,document.addEventListener("keydown",this._onDocumentKeyDown),document.addEventListener("pointerdown",this._onDocumentPointerDown,!0))}_detachDismissListeners(){this._listeningForDismiss&&(this._listeningForDismiss=!1,document.removeEventListener("keydown",this._onDocumentKeyDown),document.removeEventListener("pointerdown",this._onDocumentPointerDown,!0))}_scheduleHidden(t){const i=(Number.isFinite(this.delay)?this.delay:.25)*1e3;if(i<=0){t.classList.add("hidden"),m(t);return}this._hideTimeout=window.setTimeout(()=>{t.classList.add("hidden"),m(t),this._hideTimeout=null},i)}_resetPosition(){this.position=this._originalPosition}_positionTooltip(t,i){const e=i.getBoundingClientRect(),o=t.getBoundingClientRect(),n=(this.offset??0)+8,h=8,g=h,_=window.innerHeight-h,y=h,w=window.innerWidth-h,z=s=>s>=g&&s+o.height<=_,O=s=>s>=y&&s+o.width<=w,k=(s,r,a,b)=>{let u=0;s<a&&(u+=a-s);const A=s+r;return A>b&&(u+=A-b),u},P=s=>{let r=0,a=0;switch(s){case"top":r=e.top-o.height-n,a=e.left-(o.width-e.width)/2;break;case"bottom":r=e.bottom+n,a=e.left-(o.width-e.width)/2;break;case"left":a=e.left-o.width-n,r=e.top-(o.height-e.height)/2;break;case"right":a=e.right+n,r=e.top-(o.height-e.height)/2;break}const b=k(r,o.height,g,_),u=k(a,o.width,y,w);return{pos:s,top:r,left:a,fitsV:z(r),fitsH:O(a),totalOverflow:b+u}},E=this.position==="top"||this.position==="bottom",L=this.position,S=[L,this._getOppositePosition(L),E?"left":"top",E?"right":"bottom"].map(P);let v=S.find(s=>s.fitsV&&s.fitsH)??S.reduce((s,r)=>r.totalOverflow<s.totalOverflow?r:s);const D=(s,r,a)=>Math.min(Math.max(s,r),a),M=g,$=_-o.height,B=y,F=w-o.width,W=D(v.top,M,$),R=D(v.left,B,F);t.style.top=`${W}px`,t.style.left=`${R}px`,this.position!==v.pos&&(this.position=v.pos)}_getOppositePosition(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}_onDefaultSlotChange(){this._updateTriggerElement(),this.open&&this._syncOpenState()}render(){const t=this._hasTooltipContent(),i=this.arrow?d`<svg
4
4
  class="scb-tooltip-arrow"
5
5
  xmlns="http://www.w3.org/2000/svg"
@@ -1 +1 @@
1
- (function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var o=customElements.define.bind(customElements);customElements.define=function(e,i,n){try{customElements.get(e)||o(e,i,n)}catch(c){var r=String(c||"");if(r.indexOf("already been used")===-1&&r.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();function u(t,o,e,i){const n=getComputedStyle(t).getPropertyValue(o).trim();return e.includes(n)?n:i}export{u as componentSizeToken};
1
+ (function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var o=customElements.define.bind(customElements);customElements.define=function(e,i,n){try{customElements.get(e)||o(e,i,n)}catch(c){var r=String(c||"");if(r.indexOf("already been used")===-1&&r.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();function u(t,o,e,i){const n=getComputedStyle(t).getPropertyValue(o).trim();return e.includes(n)?n:i}export{u as t};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./md-focus-ring.js","./rolldown-runtime.js","./vendor.js","./vendor-lit.js","./attachable-controller.js"])))=>i.map(i=>d[i]);
2
+ import{t as f}from"./rolldown-runtime.js";import{t as _}from"./preload-helper.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var n=customElements.define.bind(customElements);customElements.define=function(s,t,d){try{customElements.get(s)||n(s,t,d)}catch(i){var r=String(i||"");if(r.indexOf("already been used")===-1&&r.indexOf("NotSupportedError")===-1)throw i}}}}catch{}})();var v=f({addLazyFocusRingListeners:()=>l,ensureFocusRingOnFocusVisible:()=>c,ensureFocusRingOnTab:()=>u,ensureFocusRingReady:()=>o}),a,o=()=>{customElements.get("md-focus-ring")||(a??(a=_(()=>import("./md-focus-ring.js").then(e=>e.t).then(()=>{}),__vite__mapDeps([0,1,2,3,4]),import.meta.url)))},c=e=>{const n=e.composedPath()[0];n instanceof HTMLElement&&n.matches(":focus-visible")&&o()},u=e=>{e.key==="Tab"&&o()},l=(...e)=>{const n=c,s=u;for(const t of e)t.addEventListener("focusin",n),t.addEventListener("keydown",s);return()=>{for(const t of e)t.removeEventListener("focusin",n),t.removeEventListener("keydown",s)}};export{v as i,c as n,o as r,l as t};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ripple.js","./rolldown-runtime.js","./vendor.js","./vendor-lit.js","./attachable-controller.js"])))=>i.map(i=>d[i]);
2
+ import{t as s}from"./preload-helper.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var r=customElements.define.bind(customElements);customElements.define=function(t,n,d){try{customElements.get(t)||r(t,n,d)}catch(a){var o=String(a||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw a}}}}catch{}})();var i,l=()=>(i??(i=s(()=>import("./ripple.js").then(e=>e.t).then(()=>{}),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),i),f=async(e,r,t,n=!1)=>{!e||!r||(e.control=r,r.matches(":hover")&&(e.hovered=!0),t?.type==="pointerenter"?e.handlePointerenter?.(t):t?.type==="pointerdown"&&await e.handlePointerdown?.(t),n&&e.handleClick?.())};export{l as ensureRippleReady,f as syncRippleToControl};
@@ -1 +1 @@
1
- (function(){try{var o=typeof globalThis<"u"?globalThis:window;if(!o.__scb_ce_guard_installed__){o.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(r,e,s){try{customElements.get(r)||t(r,e,s)}catch(i){var n=String(i||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw i}}}}catch{}})();var c=new WeakMap;function p(o){const t=(c.get(o)??0)+1;return c.set(o,t),t}function d(o){const t=getComputedStyle(o),r=n=>n.endsWith("ms")?Number.parseFloat(n):Number.parseFloat(n)*1e3,e=t.transitionDuration.split(",").map(n=>r(n.trim())),s=t.transitionDelay.split(",").map(n=>r(n.trim()));return e.reduce((n,i,a)=>{const f=s[a%s.length]??0;return Math.max(n,i+f)},0)}var l=["scb-datepicker","scb-dialog","scb-drawer","scb-dropdown","scb-options-menu","scb-options-sub-menu","scb-overlay","scb-search","scb-select","scb-tooltip"].join(",");function v(o,t,r="manual"){if(!o)return!1;p(o);const e=o;if(typeof e.showPopover!="function")return!1;if(o.setAttribute("popover",r),!o.matches(":popover-open"))try{e.showPopover(t?{source:t}:void 0)}catch{return!1}return o.matches(":popover-open")}function u(o){if(!o)return;p(o);const t=o;if(typeof t.hidePopover=="function"&&o.matches(":popover-open"))try{t.hidePopover()}catch{}o.removeAttribute("popover")}function m(o,t,r){if(!o)return;const e=p(o);requestAnimationFrame(async()=>{const s=r??o,n=d(s),i=s.getAnimations().filter(a=>a.playState!=="finished");i.length>0?await Promise.allSettled(i.map(a=>a.finished)):n>0&&await new Promise(a=>setTimeout(a,n)),c.get(o)===e&&(u(o),t?.())})}function h(o){return!!o?.matches(":popover-open")}function b(o){const t=r=>{for(const e of r.querySelectorAll("*"))e.shadowRoot&&t(e.shadowRoot),e.matches("[popover]")&&h(e)&&u(e),e.matches(l)&&"open"in e&&e.open&&(e.open=!1)};t(o)}export{u as closeManualPopover,m as closeManualPopoverAfterAnimations,b as closeNestedPopupSurfaces,h as isManualPopoverOpen,v as openManualPopover};
1
+ (function(){try{var o=typeof globalThis<"u"?globalThis:window;if(!o.__scb_ce_guard_installed__){o.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(r,e,s){try{customElements.get(r)||t(r,e,s)}catch(i){var n=String(i||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw i}}}}catch{}})();var c=new WeakMap;function p(o){const t=(c.get(o)??0)+1;return c.set(o,t),t}function d(o){const t=getComputedStyle(o),r=n=>n.endsWith("ms")?Number.parseFloat(n):Number.parseFloat(n)*1e3,e=t.transitionDuration.split(",").map(n=>r(n.trim())),s=t.transitionDelay.split(",").map(n=>r(n.trim()));return e.reduce((n,i,a)=>{const f=s[a%s.length]??0;return Math.max(n,i+f)},0)}var l=["scb-datepicker","scb-dialog","scb-drawer","scb-dropdown","scb-options-menu","scb-options-sub-menu","scb-overlay","scb-search","scb-select","scb-tooltip"].join(",");function v(o,t,r="manual"){if(!o)return!1;p(o);const e=o;if(typeof e.showPopover!="function")return!1;if(o.setAttribute("popover",r),!o.matches(":popover-open"))try{e.showPopover(t?{source:t}:void 0)}catch{return!1}return o.matches(":popover-open")}function u(o){if(!o)return;p(o);const t=o;if(typeof t.hidePopover=="function"&&o.matches(":popover-open"))try{t.hidePopover()}catch{}o.removeAttribute("popover")}function m(o,t,r){if(!o)return;const e=p(o);requestAnimationFrame(async()=>{const s=r??o,n=d(s),i=s.getAnimations().filter(a=>a.playState!=="finished");i.length>0?await Promise.allSettled(i.map(a=>a.finished)):n>0&&await new Promise(a=>setTimeout(a,n)),c.get(o)===e&&(u(o),t?.())})}function h(o){return!!o?.matches(":popover-open")}function b(o){const t=r=>{for(const e of r.querySelectorAll("*"))e.shadowRoot&&t(e.shadowRoot),e.matches("[popover]")&&h(e)&&u(e),e.matches(l)&&"open"in e&&e.open&&(e.open=!1)};t(o)}export{v as a,h as i,m as n,b as r,u as t};
@@ -1,4 +1,4 @@
1
- import{h,m as v,p as d,v as p,y as f}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as c}from"../../vendor/decorate.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var r=customElements.define.bind(customElements);customElements.define=function(o,a,l){try{customElements.get(o)||r(o,a,l)}catch(i){var s=String(i||"");if(s.indexOf("already been used")===-1&&s.indexOf("NotSupportedError")===-1)throw i}}}}catch{}})();var n,t=(n=class extends h{constructor(...r){super(...r),this.open=!1}render(){return p`
1
+ import{h,m as v,p as d,v as p,y as f}from"./vendor.js";import"./vendor-lit.js";import{t as c}from"./decorate.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var r=customElements.define.bind(customElements);customElements.define=function(o,a,l){try{customElements.get(o)||r(o,a,l)}catch(i){var s=String(i||"");if(s.indexOf("already been used")===-1&&s.indexOf("NotSupportedError")===-1)throw i}}}}catch{}})();var n,t=(n=class extends h{constructor(...r){super(...r),this.open=!1}render(){return p`
2
2
  <svg
3
3
  class="chevron-icon"
4
4
  viewBox="0 0 24 24"
@@ -0,0 +1,11 @@
1
+ import{_ as l,g as o}from"./vendor.js";import"./vendor-lit.js";(function(){try{var a=typeof globalThis<"u"?globalThis:window;if(!a.__scb_ce_guard_installed__){a.__scb_ce_guard_installed__=!0;var h=customElements.define.bind(customElements);customElements.define=function(e,t,v){try{customElements.get(e)||h(e,t,v)}catch(r){var n=String(r||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw r}}}}catch{}})();var c=new Map([["arrow_forward","M12 4l-1.41 1.41L15.17 10H4v2h11.17l-4.58 4.59L12 18l8-8-8-8Z"],["chevron_left","M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59Z"],["chevron_right","M8.59 16.59 10 18l6-6-6-6-1.41 1.41L13.17 12l-4.58 4.59Z"],["close","M18.3 5.71 16.89 4.3 12 9.17 7.11 4.3 5.7 5.71 10.59 10.6 5.7 15.49 7.11 16.9 12 12.01l4.89 4.89 1.41-1.41-4.89-4.89 4.89-4.89Z"],["menu","M3 6h18v2H3V6Zm0 5h18v2H3v-2Zm0 5h18v2H3v-2Z"],["open_in_new","M14 3h7v7h-2V6.41l-9.83 9.83-1.41-1.41L17.59 5H14V3ZM5 5h6v2H7v10h10v-4h2v6H5V5Z"],["payments","M3 6h18v12H3V6Zm2 2v8h14V8H5Zm7 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM7 9h2v2H7V9Zm8 4h2v2h-2v-2Z"],["person_4","M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-8 8c0-3.31 3.58-6 8-6s8 2.69 8 6v1H4v-1Z"],["price_change","M12 2 3 6v6c0 5 3.84 9.74 9 10 5.16-.26 9-5 9-10V6l-9-4Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Zm-7 6.5V15h2v2.6a9.1 9.1 0 0 1-2-3.1Zm12-1.9V15h2a9.1 9.1 0 0 1-2 3.1Z"],["search","M9.5 3a6.5 6.5 0 0 1 5.17 10.44l5.45 5.44-1.42 1.42-5.44-5.45A6.5 6.5 0 1 1 9.5 3Zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"],["trending_up","M16 6h5v5h-2V9.41l-6.17 6.17-4-4L3.41 17 2 15.59l6.83-6.83 4 4L17.59 8H16V6Z"],["volume_up","M3 9v6h4l5 5V4L7 9H3Zm13.5 3a4.5 4.5 0 0 0-2.5-4.03v8.06A4.5 4.5 0 0 0 16.5 12Zm-2.5-8.7v2.06A7 7 0 0 1 18 12a7 7 0 0 1-4 6.64v2.06A9 9 0 0 0 20 12a9 9 0 0 0-6-8.7Z"],["work","M10 4h4a2 2 0 0 1 2 2v2h4a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h4V6a2 2 0 0 1 2-2Zm0 4h4V6h-4v2Zm-6 2v8h16v-8H4Zm6 3h4v2h-4v-2Z"]]);function m(a,h="material-icon",e){const t=(a||"").trim(),v=c.get(t);return v?l`
2
+ <svg
3
+ class=${`${h} scb-svg-icon`}
4
+ part=${e||o}
5
+ aria-hidden="true"
6
+ viewBox="0 0 24 24"
7
+ focusable="false"
8
+ >
9
+ <path d=${v}></path>
10
+ </svg>
11
+ `:o}export{m as t};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scb-wc",
3
- "version": "0.1.243",
3
+ "version": "0.1.244",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -506,16 +506,6 @@
506
506
  "import": "./scb-table-advanced/scb-table-advanced.js",
507
507
  "require": "./scb-table-advanced/scb-table-advanced.js"
508
508
  },
509
- "./scb-table-next": {
510
- "types": "./scb-components/scb-table-next/scb-table-next.d.ts",
511
- "import": "./scb-table-next/scb-table-next.js",
512
- "require": "./scb-table-next/scb-table-next.js"
513
- },
514
- "./scb-table-next/read-table": {
515
- "types": "./scb-components/scb-table-next/read-table.d.ts",
516
- "import": "./scb-table-next/read-table.js",
517
- "require": "./scb-table-next/read-table.js"
518
- },
519
509
  "./scb-tabs": {
520
510
  "types": "./scb-components/scb-tabs/scb-tabs.d.ts",
521
511
  "import": "./scb-tabs/scb-tabs.js",
@@ -559,5 +549,5 @@
559
549
  "./scb-viz/*": null,
560
550
  "./mvc/*": "./mvc/*"
561
551
  },
562
- "buildHash": "5C71B8C4583A3B9A5FC4ABE17F6A1AE9A012B7810A51C1B3E911D6F7E5B8D19A"
552
+ "buildHash": "A7378EC8C2FFC3B40EC4941E9A039341DCF709B6F62B26F297B0AFCD46E70F55"
563
553
  }
@@ -93,25 +93,22 @@ var e = (e, t, n = "1.25") => {
93
93
  ]
94
94
  };
95
95
  function i() {
96
- return r;
97
- }
98
- function a() {
99
96
  return r.patterns.map(({ kind: e }) => e);
100
97
  }
101
- function o(e) {
98
+ function a(e) {
102
99
  return r.patterns.find(({ kind: t }) => t === e) || r.patterns.find(({ kind: e }) => e === r.defaultPatternKind) || r.patterns[0];
103
100
  }
104
- function s(e, t, n) {
105
- let r = o(n);
101
+ function o(e, t, n) {
102
+ let r = a(n);
106
103
  return r?.appendMarks(e, t), r?.kind || n;
107
104
  }
108
- function c(e) {
109
- let t = r.dashStyles, n = r.markerSymbols, i = a();
105
+ function s(e) {
106
+ let t = r.dashStyles, n = r.markerSymbols, a = i();
110
107
  return {
111
108
  dashStyle: t[e % t.length],
112
109
  markerSymbol: n[e % n.length],
113
- patternKind: i[e % i.length]
110
+ patternKind: a[e % a.length]
114
111
  };
115
112
  }
116
113
  //#endregion
117
- export { s as appendScbVizSeriesDifferentiationPatternMarks, o as getScbVizSeriesDifferentiationPatternDefinition, a as getScbVizSeriesDifferentiationPatternKinds, i as getScbVizSeriesDifferentiationRegistry, c as getScbVizSeriesDifferentiationVariant, r as scbVizSeriesDifferentiationRegistry };
114
+ export { o as appendScbVizSeriesDifferentiationPatternMarks, a as getScbVizSeriesDifferentiationPatternDefinition, i as getScbVizSeriesDifferentiationPatternKinds, s as getScbVizSeriesDifferentiationVariant, r as scbVizSeriesDifferentiationRegistry };
@@ -9,10 +9,10 @@ import "../scb-horizontal-scroller/scb-horizontal-scroller.js";
9
9
  import "../scb-segmented-button/scb-segmented-item.js";
10
10
  import "../scb-segmented-button/scb-segmented-button.js";
11
11
  import "../scb-table/scb-table.js";
12
- import { buildScbVizExportFileName as t, createScbVizCsvBlob as n, createScbVizRasterBlobFromElement as r, createScbVizRasterDataUrlFromElement as i, downloadScbVizBlob as a, getScbVizCurrentFullscreenElement as o, isScbVizFullscreenSupported as s, openScbVizPrintFrame as c, runWithScbVizForcedPrintLightMode as l, toggleScbVizFullscreen as u } from "./scb-viz-actions-runtime.js";
13
- import { buildScbVizPrintDocumentHtml as d, buildScbVizPrintableFooterHtml as f, buildScbVizPrintableTableHtml as p } from "./scb-viz-print-runtime.js";
14
- import { getScbVizSeriesDifferentiationPatternKinds as m } from "./scb-viz-series-differentiation-registry.js";
15
- import { clearScbVizSeriesDifferentiationColorClass as h, clearScbVizSeriesDifferentiationMetadata as g, ensureScbVizStyledModeSeriesPattern as _, getScbVizGroupedSeriesDifferentiationVariant as v, getScbVizHighchartsColorClassName as y, getScbVizHighchartsSvgRoot as b, getScbVizLegendSeriesDifferentiationTargets as x, getScbVizSeriesDifferentiationVariantByIndex as S, isScbVizGroupedSeriesDifferentiationChart as C, isScbVizHighchartsStyledMode as w, setScbVizSeriesDifferentiationColorClass as T, setScbVizSeriesDifferentiationMetadata as E, shouldShowScbVizSeriesDifferentiationAction as D, usesScbVizGroupedPointDifferentiation as O } from "./scb-viz-series-differentiation-runtime.js";
12
+ import { getScbVizSeriesDifferentiationPatternKinds as t } from "./scb-viz-series-differentiation-registry.js";
13
+ import { clearScbVizSeriesDifferentiationColorClass as n, clearScbVizSeriesDifferentiationMetadata as r, ensureScbVizStyledModeSeriesPattern as i, getScbVizGroupedSeriesDifferentiationVariant as a, getScbVizHighchartsColorClassName as o, getScbVizHighchartsSvgRoot as s, getScbVizLegendSeriesDifferentiationTargets as c, getScbVizSeriesDifferentiationVariantByIndex as l, isScbVizGroupedSeriesDifferentiationChart as u, isScbVizHighchartsStyledMode as d, setScbVizSeriesDifferentiationColorClass as f, setScbVizSeriesDifferentiationMetadata as p, shouldShowScbVizSeriesDifferentiationAction as m, usesScbVizGroupedPointDifferentiation as h } from "./scb-viz-series-differentiation-runtime.js";
14
+ import { buildScbVizExportFileName as g, createScbVizCsvBlob as _, createScbVizRasterBlobFromElement as v, createScbVizRasterDataUrlFromElement as y, downloadScbVizBlob as b, getScbVizCurrentFullscreenElement as x, isScbVizFullscreenSupported as S, openScbVizPrintFrame as C, runWithScbVizForcedPrintLightMode as w, toggleScbVizFullscreen as T } from "./scb-viz-actions-runtime.js";
15
+ import { buildScbVizPrintDocumentHtml as E, buildScbVizPrintableFooterHtml as D, buildScbVizPrintableTableHtml as O } from "./scb-viz-print-runtime.js";
16
16
  import { buildScbVizResolvedTableView as k, createScbVizCsvRows as A, inferScbVizTableAlignments as j, normalizeScbVizRenderableCell as M, readScbVizTableDataFromSlot as N } from "./scb-viz-table-runtime.js";
17
17
  import { LitElement as P, css as F, html as I } from "lit";
18
18
  import { customElement as L, property as R, state as z } from "lit/decorators.js";
@@ -1161,16 +1161,16 @@ var H = /* @__PURE__ */ new Set([
1161
1161
  ].includes(n) ? "line" : ["area", "areaspline"].includes(n) ? "area" : ["column", "bar"].includes(n) ? this._isGroupedSeriesDifferentiationChart(e, t) ? "grouped-fill" : "fill" : ["pie", "variablepie"].includes(n) ? "point-fill" : null;
1162
1162
  }
1163
1163
  _getSeriesDifferentiationVariantByIndex(e) {
1164
- return S(e);
1164
+ return l(e);
1165
1165
  }
1166
1166
  _isGroupedSeriesDifferentiationChart(e, t) {
1167
- return C(e, t);
1167
+ return u(e, t);
1168
1168
  }
1169
1169
  _usesGroupedPointDifferentiation(e) {
1170
- return O(e);
1170
+ return h(e);
1171
1171
  }
1172
1172
  _getGroupedSeriesDifferentiationVariant(e, t, n) {
1173
- let r = v(e, t, n);
1173
+ let r = a(e, t, n);
1174
1174
  return {
1175
1175
  ...r,
1176
1176
  variantIndex: typeof r.variantIndex == "number" ? r.variantIndex : n
@@ -1202,7 +1202,7 @@ var H = /* @__PURE__ */ new Set([
1202
1202
  });
1203
1203
  }
1204
1204
  _shouldShowSeriesDifferentiationAction() {
1205
- return D({
1205
+ return m({
1206
1206
  chart: this._getCurrentHighchartsChart(),
1207
1207
  getCurrentPrintableView: () => this._getCurrentPrintableView(),
1208
1208
  getSeriesDifferentiationGroup: (e, t) => this._getSeriesDifferentiationGroup(e, t),
@@ -1221,45 +1221,45 @@ var H = /* @__PURE__ */ new Set([
1221
1221
  return { marker: a && Object.keys(a).length > 0 ? a : t && Object.keys(t).length > 0 ? t : { enabled: !1 } };
1222
1222
  }
1223
1223
  _isHighchartsStyledMode(e) {
1224
- return w(e);
1224
+ return d(e);
1225
1225
  }
1226
1226
  _getHighchartsSvgRoot(e) {
1227
- return b(e);
1227
+ return s(e);
1228
1228
  }
1229
1229
  _getHighchartsColorClassName(e, t) {
1230
- return y(e, t);
1230
+ return o(e, t);
1231
1231
  }
1232
1232
  _setSeriesDifferentiationMetadata(e, t) {
1233
- E(e, t);
1233
+ p(e, t);
1234
1234
  }
1235
1235
  _clearSeriesDifferentiationMetadata(e) {
1236
- g(e);
1236
+ r(e);
1237
1237
  }
1238
1238
  _setSeriesDifferentiationColorClass(e, t) {
1239
- T(e, t);
1239
+ f(e, t);
1240
1240
  }
1241
1241
  _clearSeriesDifferentiationColorClass(e) {
1242
- h(e);
1242
+ n(e);
1243
1243
  }
1244
1244
  _getLegendSeriesDifferentiationTargets(e) {
1245
- return x(e);
1245
+ return c(e);
1246
1246
  }
1247
1247
  _ensureStyledModeSeriesPattern(e, t, n) {
1248
- _(e, t, n);
1248
+ i(e, t, n);
1249
1249
  }
1250
1250
  _applyStyledModeSeriesDifferentiation(e) {
1251
- let t = this._getHighchartsSvgRoot(e);
1252
- if (!t) return;
1253
- t.classList.add("scb-viz-series-differentiation-enabled");
1254
- let n = m(), r = this._getSeriesDifferentiationSnapshotStore(e);
1255
- e.series?.forEach((t, i) => {
1251
+ let n = this._getHighchartsSvgRoot(e);
1252
+ if (!n) return;
1253
+ n.classList.add("scb-viz-series-differentiation-enabled");
1254
+ let r = t(), i = this._getSeriesDifferentiationSnapshotStore(e);
1255
+ e.series?.forEach((t, n) => {
1256
1256
  let a = this._getSeriesDifferentiationGroup(t, e);
1257
1257
  if (!a) return;
1258
- let o = String(t?.index ?? i);
1259
- r.has(o) || r.set(o, this._captureSeriesDifferentiationSnapshot(t));
1260
- let s = a === "grouped-fill" && this._usesGroupedPointDifferentiation(t), c = a === "grouped-fill" ? this._getGroupedSeriesDifferentiationVariant(t, e, i) : {
1261
- variantIndex: i,
1262
- ...this._getSeriesDifferentiationVariantByIndex(i)
1258
+ let o = String(t?.index ?? n);
1259
+ i.has(o) || i.set(o, this._captureSeriesDifferentiationSnapshot(t));
1260
+ let s = a === "grouped-fill" && this._usesGroupedPointDifferentiation(t), c = a === "grouped-fill" ? this._getGroupedSeriesDifferentiationVariant(t, e, n) : {
1261
+ variantIndex: n,
1262
+ ...this._getSeriesDifferentiationVariantByIndex(n)
1263
1263
  }, { dashStyle: l, markerSymbol: u, patternKind: d } = c, f = this._getHighchartsColorClassName(t?.graph ?? t?.area ?? t?.group, c.variantIndex), p = this._getLegendSeriesDifferentiationTargets(t);
1264
1264
  this._setSeriesDifferentiationMetadata(t?.graph, {
1265
1265
  role: "graph",
@@ -1283,8 +1283,8 @@ var H = /* @__PURE__ */ new Set([
1283
1283
  role: "fill",
1284
1284
  patternKind: d
1285
1285
  }), this._setSeriesDifferentiationColorClass(e?.graphic, f);
1286
- }), this._ensureStyledModeSeriesPattern(e, f, d))), a === "point-fill" && t.points?.forEach((t, r) => {
1287
- let i = n[r % n.length], a = this._getHighchartsColorClassName(t?.graphic ?? t?.legendSymbol ?? t?.legendItem?.symbol ?? t?.legendItem?.group, r), o = this._getLegendSeriesDifferentiationTargets(t);
1286
+ }), this._ensureStyledModeSeriesPattern(e, f, d))), a === "point-fill" && t.points?.forEach((t, n) => {
1287
+ let i = r[n % r.length], a = this._getHighchartsColorClassName(t?.graphic ?? t?.legendSymbol ?? t?.legendItem?.symbol ?? t?.legendItem?.group, n), o = this._getLegendSeriesDifferentiationTargets(t);
1288
1288
  this._setSeriesDifferentiationMetadata(t?.graphic, {
1289
1289
  role: "fill",
1290
1290
  patternKind: i
@@ -1361,7 +1361,7 @@ var H = /* @__PURE__ */ new Set([
1361
1361
  return n.has(r) ? r : t;
1362
1362
  }
1363
1363
  _buildExportFileName(e) {
1364
- return t({
1364
+ return g({
1365
1365
  lang: this.lang,
1366
1366
  title: this.title
1367
1367
  }, e);
@@ -1370,17 +1370,17 @@ var H = /* @__PURE__ */ new Set([
1370
1370
  return this;
1371
1371
  }
1372
1372
  _getCurrentFullscreenElement() {
1373
- return o();
1373
+ return x();
1374
1374
  }
1375
1375
  _isFullscreenSupported() {
1376
- return s(this._getFullscreenTarget());
1376
+ return S(this._getFullscreenTarget());
1377
1377
  }
1378
1378
  _syncFullscreenState() {
1379
1379
  let e = this._getCurrentFullscreenElement() === this._getFullscreenTarget();
1380
1380
  this._isFullscreen = e, this.toggleAttribute("data-scb-viz-fullscreen", e), this.#c(), this.#r();
1381
1381
  }
1382
1382
  async _toggleFullscreen() {
1383
- await u(this._getFullscreenTarget());
1383
+ await T(this._getFullscreenTarget());
1384
1384
  }
1385
1385
  _renderActionsMenu() {
1386
1386
  let e = this._getCurrentPrintableView(), t = this._canExportRaster(), n = this._canExportCsv(), r = t && (e === "diagram" || e === "image"), i = n && e === "table", a = this._shouldShowSeriesDifferentiationAction(), o = `${this._instanceId}-actions-menu`;
@@ -1802,17 +1802,17 @@ var H = /* @__PURE__ */ new Set([
1802
1802
  async #m(e) {
1803
1803
  let t = this._getExportableVisualElement();
1804
1804
  if (!t) return;
1805
- let n = await r(t, this._getExportSurfaceTarget(), e);
1806
- n && a(n, this._buildExportFileName(e === "jpeg" ? "jpg" : "png"));
1805
+ let n = await v(t, this._getExportSurfaceTarget(), e);
1806
+ n && b(n, this._buildExportFileName(e === "jpeg" ? "jpg" : "png"));
1807
1807
  }
1808
1808
  _getCurrentPrintableView() {
1809
1809
  return this.variant === "Table" ? "table" : this.variant === "Image" ? "image" : this.selectedChip === "Table" ? "table" : "diagram";
1810
1810
  }
1811
1811
  #h(e) {
1812
- return p(this._getResolvedTableView(e), (e) => this._escapeHtml(e), { getEmptyHeaderLabel: (e) => this._getEmptyTableHeaderLabel(e) });
1812
+ return O(this._getResolvedTableView(e), (e) => this._escapeHtml(e), { getEmptyHeaderLabel: (e) => this._getEmptyTableHeaderLabel(e) });
1813
1813
  }
1814
1814
  #g() {
1815
- return f({
1815
+ return D({
1816
1816
  comment: this.comment,
1817
1817
  commentLabel: this.commentLabel,
1818
1818
  description: this.description,
@@ -1830,7 +1830,7 @@ var H = /* @__PURE__ */ new Set([
1830
1830
  });
1831
1831
  }
1832
1832
  #_(e) {
1833
- return d({
1833
+ return E({
1834
1834
  contentHtml: e,
1835
1835
  escapeHtml: (e) => this._escapeHtml(e),
1836
1836
  footerHtml: this.#g(),
@@ -1840,7 +1840,7 @@ var H = /* @__PURE__ */ new Set([
1840
1840
  });
1841
1841
  }
1842
1842
  async #v() {
1843
- await l(this, async () => {
1843
+ await w(this, async () => {
1844
1844
  let e = this._getCurrentPrintableView(), t = "";
1845
1845
  if (e === "table") {
1846
1846
  let e = this._getResolvedTableData();
@@ -1853,16 +1853,16 @@ var H = /* @__PURE__ */ new Set([
1853
1853
  } else {
1854
1854
  let e = this._getExportableVisualElement();
1855
1855
  if (!e) return;
1856
- let n = await i(e, this._getExportSurfaceTarget(), "png");
1856
+ let n = await y(e, this._getExportSurfaceTarget(), "png");
1857
1857
  if (!n) return;
1858
1858
  t = `<img class="viz-chart-image" src="${n}" alt="${this._escapeHtml(this._getImageAltText())}">`;
1859
1859
  }
1860
- await c(this.#_(t));
1860
+ await C(this.#_(t));
1861
1861
  });
1862
1862
  }
1863
1863
  #y() {
1864
1864
  let e = this._getResolvedTableData();
1865
- e?.rows?.length && a(n(A(e, (e) => this._normalizeRenderableCell(e)), this.lang), this._buildExportFileName("csv"));
1865
+ e?.rows?.length && b(_(A(e, (e) => this._normalizeRenderableCell(e)), this.lang), this._buildExportFileName("csv"));
1866
1866
  }
1867
1867
  #b() {
1868
1868
  let e = this.#x(this.spacing), t = this.#x(this.spacingTop) ?? e, n = this.#x(this.spacingBottom) ?? e, r = this.#x(this.spacingLeft), i = this.#x(this.spacingRight);