@tylertech/forge 2.24.1 → 2.24.3
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.
- package/custom-elements.json +2666 -2807
- package/dist/esm/accordion/index.js +1 -1
- package/dist/esm/app-bar/help-button/index.js +1 -1
- package/dist/esm/app-bar/index.js +1 -1
- package/dist/esm/app-bar/menu-button/index.js +1 -1
- package/dist/esm/app-bar/notification-button/index.js +1 -1
- package/dist/esm/app-bar/profile-button/index.js +1 -1
- package/dist/esm/app-bar/search/index.js +1 -1
- package/dist/esm/autocomplete/index.js +1 -1
- package/dist/esm/banner/index.js +1 -1
- package/dist/esm/bottom-sheet/index.js +1 -1
- package/dist/esm/busy-indicator/index.js +1 -1
- package/dist/esm/button/index.js +1 -1
- package/dist/esm/button-area/index.js +1 -1
- package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
- package/dist/esm/calendar/calendar-menu/index.js +1 -1
- package/dist/esm/calendar/index.js +1 -1
- package/dist/esm/checkbox/index.js +1 -1
- package/dist/esm/chip-field/index.js +1 -1
- package/dist/esm/chips/chip/index.js +1 -1
- package/dist/esm/chips/chip-set/index.js +1 -1
- package/dist/esm/chips/index.js +1 -1
- package/dist/esm/chunks/{chunk.UUBAUAER.js → chunk.3MMDUUTN.js} +2 -2
- package/dist/esm/chunks/{chunk.KZDQFUNT.js → chunk.3V2VDOOP.js} +2 -2
- package/dist/esm/chunks/{chunk.Q2PGK4IA.js → chunk.4KKMVMPN.js} +2 -2
- package/dist/esm/chunks/{chunk.WLBRU5HI.js → chunk.5SM7UG6C.js} +2 -2
- package/dist/esm/chunks/{chunk.LJQO5G5I.js → chunk.6DVJ22IK.js} +2 -2
- package/dist/esm/chunks/{chunk.QRWYYBZC.js → chunk.6NARYF7U.js} +2 -2
- package/dist/esm/chunks/{chunk.QRWYYBZC.js.map → chunk.6NARYF7U.js.map} +3 -3
- package/dist/esm/chunks/{chunk.4APGDQHF.js → chunk.AFW54X3W.js} +2 -2
- package/dist/esm/chunks/chunk.AH4YGLZ4.js +7 -0
- package/dist/esm/chunks/chunk.AH4YGLZ4.js.map +7 -0
- package/dist/esm/chunks/chunk.AJTQHK25.js +7 -0
- package/dist/esm/chunks/chunk.AJTQHK25.js.map +7 -0
- package/dist/esm/chunks/{chunk.KMMOZ2SF.js → chunk.C3G25JFG.js} +2 -2
- package/dist/esm/chunks/chunk.CL4FTBLR.js +7 -0
- package/dist/esm/chunks/chunk.CL4FTBLR.js.map +7 -0
- package/dist/esm/chunks/{chunk.POBCKMFO.js → chunk.CYLDP7ML.js} +2 -2
- package/dist/esm/chunks/{chunk.HDHGU4L2.js → chunk.E3K6KM57.js} +2 -2
- package/dist/esm/chunks/{chunk.PTEWJ5PZ.js → chunk.EQEMCHMB.js} +2 -2
- package/dist/esm/chunks/{chunk.QBST3QSM.js → chunk.FEU4FTVQ.js} +2 -2
- package/dist/esm/chunks/chunk.H2LKAI6N.js +7 -0
- package/dist/esm/chunks/chunk.H2LKAI6N.js.map +7 -0
- package/dist/esm/chunks/chunk.HGV5UXOS.js +7 -0
- package/dist/esm/chunks/chunk.HGV5UXOS.js.map +7 -0
- package/dist/esm/chunks/{chunk.IPQDOSLO.js → chunk.J4BGOSAD.js} +2 -2
- package/dist/esm/chunks/{chunk.BQRXAJTH.js → chunk.JFAOCIGZ.js} +2 -2
- package/dist/esm/chunks/{chunk.VUHUEAJD.js → chunk.JPL5457M.js} +2 -2
- package/dist/esm/chunks/{chunk.VUHUEAJD.js.map → chunk.JPL5457M.js.map} +1 -1
- package/dist/esm/chunks/{chunk.4QVF44G5.js → chunk.K57IO236.js} +2 -2
- package/dist/esm/chunks/{chunk.K2O3KSP7.js → chunk.KGMCBPGV.js} +2 -2
- package/dist/esm/chunks/chunk.KYH5GKVI.js +7 -0
- package/dist/esm/chunks/chunk.KYH5GKVI.js.map +7 -0
- package/dist/esm/chunks/chunk.LEINPSKL.js +7 -0
- package/dist/esm/chunks/chunk.LEINPSKL.js.map +7 -0
- package/dist/esm/chunks/{chunk.V5L5DKNF.js → chunk.LFBYFJTX.js} +2 -2
- package/dist/esm/chunks/chunk.MKHU4IPO.js +7 -0
- package/dist/esm/chunks/chunk.MKHU4IPO.js.map +7 -0
- package/dist/esm/chunks/chunk.N6MAUMFI.js +7 -0
- package/dist/esm/chunks/chunk.N6MAUMFI.js.map +7 -0
- package/dist/esm/chunks/{chunk.USKQFX4N.js → chunk.OBBYRQCY.js} +2 -2
- package/dist/esm/chunks/chunk.OJ54J4L3.js +7 -0
- package/dist/esm/chunks/chunk.OJ54J4L3.js.map +7 -0
- package/dist/esm/chunks/chunk.OML7MHH6.js +29 -0
- package/dist/esm/chunks/chunk.OML7MHH6.js.map +7 -0
- package/dist/esm/chunks/chunk.PSU432SK.js +12 -0
- package/dist/esm/chunks/{chunk.U5DETNRU.js → chunk.QIGNMZRL.js} +2 -2
- package/dist/esm/chunks/{chunk.DNWMURCG.js → chunk.RHXQ2GMV.js} +2 -2
- package/dist/esm/chunks/{chunk.OLNY6ZNB.js → chunk.TLXWXBQO.js} +2 -2
- package/dist/esm/chunks/chunk.TMEYQXRR.js +7 -0
- package/dist/esm/chunks/chunk.TMEYQXRR.js.map +7 -0
- package/dist/esm/chunks/{chunk.EPFMWAIO.js → chunk.TVWUZYVG.js} +2 -2
- package/dist/esm/chunks/{chunk.AITARMT3.js → chunk.UNFOIEF6.js} +2 -2
- package/dist/esm/chunks/{chunk.AITARMT3.js.map → chunk.UNFOIEF6.js.map} +2 -2
- package/dist/esm/chunks/{chunk.32AY5G4D.js → chunk.W3DFKTAX.js} +2 -2
- package/dist/esm/chunks/{chunk.ATJJ6NAY.js → chunk.WF24FWAT.js} +2 -2
- package/dist/esm/chunks/chunk.XINI6PNZ.js +7 -0
- package/dist/esm/chunks/chunk.XINI6PNZ.js.map +7 -0
- package/dist/esm/chunks/{chunk.WVU4LCVC.js → chunk.XKX2BE6Z.js} +2 -2
- package/dist/esm/chunks/{chunk.ZVHFSAID.js → chunk.YVXZ753Q.js} +2 -2
- package/dist/esm/chunks/{chunk.QFMQPAT2.js → chunk.Z7Y2RA4P.js} +2 -2
- package/dist/esm/color-picker/index.js +1 -1
- package/dist/esm/core/index.js +1 -1
- package/dist/esm/core/utils/index.js +1 -1
- package/dist/esm/date-picker/index.js +1 -1
- package/dist/esm/date-range-picker/index.js +1 -1
- package/dist/esm/expansion-panel/index.js +1 -1
- package/dist/esm/file-picker/index.js +1 -1
- package/dist/esm/icon/index.js +1 -1
- package/dist/esm/icon-button/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/list/index.js +1 -1
- package/dist/esm/list/list/index.js +1 -1
- package/dist/esm/list/list-item/index.js +1 -1
- package/dist/esm/list-dropdown/index.js +1 -1
- package/dist/esm/menu/index.js +1 -1
- package/dist/esm/open-icon/index.js +1 -1
- package/dist/esm/paginator/index.js +1 -1
- package/dist/esm/profile-card/index.js +1 -1
- package/dist/esm/quantity-field/index.js +1 -1
- package/dist/esm/radio/index.js +1 -1
- package/dist/esm/select/core/index.js +1 -1
- package/dist/esm/select/index.js +1 -1
- package/dist/esm/select/option/index.js +1 -1
- package/dist/esm/select/select/index.js +1 -1
- package/dist/esm/select/select-dropdown/index.js +1 -1
- package/dist/esm/slider/index.js +1 -1
- package/dist/esm/split-view/index.js +1 -1
- package/dist/esm/split-view/split-view/index.js +1 -1
- package/dist/esm/split-view/split-view-panel/index.js +1 -1
- package/dist/esm/stepper/index.js +1 -1
- package/dist/esm/stepper/step/index.js +1 -1
- package/dist/esm/stepper/stepper/index.js +1 -1
- package/dist/esm/switch/index.js +1 -1
- package/dist/esm/table/index.js +1 -1
- package/dist/esm/tabs/index.js +1 -1
- package/dist/esm/tabs/tab/index.js +1 -1
- package/dist/esm/tabs/tab-bar/index.js +1 -1
- package/dist/esm/time-picker/index.js +1 -1
- package/dist/esm/toast/index.js +1 -1
- package/esm/autocomplete/autocomplete-adapter.d.ts +2 -0
- package/esm/autocomplete/autocomplete-adapter.js +6 -0
- package/esm/autocomplete/autocomplete-foundation.js +1 -0
- package/esm/core/utils/utils.d.ts +9 -0
- package/esm/core/utils/utils.js +22 -0
- package/esm/date-picker/date-picker-adapter.js +3 -0
- package/esm/date-range-picker/date-range-picker-adapter.js +6 -1
- package/esm/list/list-item/list-item-adapter.js +3 -1
- package/esm/list-dropdown/list-dropdown-constants.d.ts +1 -0
- package/esm/list-dropdown/list-dropdown-utils.js +16 -3
- package/esm/menu/menu-adapter.d.ts +2 -0
- package/esm/menu/menu-adapter.js +3 -0
- package/esm/menu/menu-foundation.js +2 -0
- package/esm/select/core/base-select-adapter.d.ts +0 -2
- package/esm/select/core/base-select-foundation.js +1 -2
- package/esm/select/option/option.d.ts +0 -1
- package/esm/select/option/option.js +0 -5
- package/esm/select/select/select-adapter.d.ts +0 -1
- package/esm/select/select/select-adapter.js +4 -9
- package/esm/select/select/select-foundation.js +0 -1
- package/esm/select/select-dropdown/select-dropdown-adapter.d.ts +0 -1
- package/esm/select/select-dropdown/select-dropdown-adapter.js +0 -11
- package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
- package/esm/stepper/step/step-adapter.d.ts +4 -12
- package/esm/stepper/step/step-adapter.js +34 -35
- package/esm/stepper/step/step-constants.d.ts +1 -0
- package/esm/stepper/step/step-constants.js +2 -1
- package/esm/stepper/step/step-foundation.d.ts +0 -3
- package/esm/stepper/step/step-foundation.js +1 -7
- package/esm/stepper/step/step.d.ts +0 -3
- package/esm/stepper/step/step.js +2 -8
- package/esm/stepper/stepper/stepper-adapter.js +2 -3
- package/esm/stepper/stepper/stepper-foundation.js +14 -10
- package/esm/tabs/tab/tab-adapter.d.ts +1 -3
- package/esm/tabs/tab/tab-adapter.js +13 -14
- package/esm/tabs/tab/tab-constants.d.ts +2 -1
- package/esm/tabs/tab/tab-constants.js +2 -1
- package/esm/tabs/tab/tab-foundation.d.ts +0 -2
- package/esm/tabs/tab/tab-foundation.js +3 -3
- package/esm/tabs/tab/tab.d.ts +0 -1
- package/esm/tabs/tab/tab.js +2 -5
- package/esm/time-picker/time-picker-adapter.d.ts +2 -0
- package/esm/time-picker/time-picker-adapter.js +7 -2
- package/esm/time-picker/time-picker-foundation.js +1 -0
- package/package.json +1 -1
- package/styles/stepper/step/_mixins.scss +12 -1
- package/styles/stepper/step/step.scss +1 -1
- package/styles/tabs/tab/_mixins.scss +3 -7
- package/styles/tabs/tab/tab.scss +4 -0
- package/dist/esm/chunks/chunk.36RT7UOR.js +0 -7
- package/dist/esm/chunks/chunk.36RT7UOR.js.map +0 -7
- package/dist/esm/chunks/chunk.5KU2NSKM.js +0 -12
- package/dist/esm/chunks/chunk.F6DMKNFU.js +0 -29
- package/dist/esm/chunks/chunk.F6DMKNFU.js.map +0 -7
- package/dist/esm/chunks/chunk.HSUOYMJT.js +0 -7
- package/dist/esm/chunks/chunk.HSUOYMJT.js.map +0 -7
- package/dist/esm/chunks/chunk.HVYDNI2O.js +0 -7
- package/dist/esm/chunks/chunk.HVYDNI2O.js.map +0 -7
- package/dist/esm/chunks/chunk.KZJYLYWN.js +0 -7
- package/dist/esm/chunks/chunk.KZJYLYWN.js.map +0 -7
- package/dist/esm/chunks/chunk.LZOAYM6V.js +0 -7
- package/dist/esm/chunks/chunk.LZOAYM6V.js.map +0 -7
- package/dist/esm/chunks/chunk.M5AHW6YM.js +0 -7
- package/dist/esm/chunks/chunk.M5AHW6YM.js.map +0 -7
- package/dist/esm/chunks/chunk.M5QM2CPF.js +0 -7
- package/dist/esm/chunks/chunk.M5QM2CPF.js.map +0 -7
- package/dist/esm/chunks/chunk.MA2P7CG4.js +0 -7
- package/dist/esm/chunks/chunk.MA2P7CG4.js.map +0 -7
- package/dist/esm/chunks/chunk.MSOMQ4HD.js +0 -7
- package/dist/esm/chunks/chunk.MSOMQ4HD.js.map +0 -7
- package/dist/esm/chunks/chunk.POYFRYFF.js +0 -7
- package/dist/esm/chunks/chunk.POYFRYFF.js.map +0 -7
- package/dist/esm/chunks/chunk.QRSFRMBF.js +0 -7
- package/dist/esm/chunks/chunk.QRSFRMBF.js.map +0 -7
- package/dist/esm/chunks/chunk.U7SENURF.js +0 -7
- package/dist/esm/chunks/chunk.U7SENURF.js.map +0 -7
- /package/dist/esm/chunks/{chunk.UUBAUAER.js.map → chunk.3MMDUUTN.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KZDQFUNT.js.map → chunk.3V2VDOOP.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.Q2PGK4IA.js.map → chunk.4KKMVMPN.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.WLBRU5HI.js.map → chunk.5SM7UG6C.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.LJQO5G5I.js.map → chunk.6DVJ22IK.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.4APGDQHF.js.map → chunk.AFW54X3W.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.KMMOZ2SF.js.map → chunk.C3G25JFG.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.POBCKMFO.js.map → chunk.CYLDP7ML.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.HDHGU4L2.js.map → chunk.E3K6KM57.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.PTEWJ5PZ.js.map → chunk.EQEMCHMB.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QBST3QSM.js.map → chunk.FEU4FTVQ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.IPQDOSLO.js.map → chunk.J4BGOSAD.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.BQRXAJTH.js.map → chunk.JFAOCIGZ.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.4QVF44G5.js.map → chunk.K57IO236.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.K2O3KSP7.js.map → chunk.KGMCBPGV.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.V5L5DKNF.js.map → chunk.LFBYFJTX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.USKQFX4N.js.map → chunk.OBBYRQCY.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.5KU2NSKM.js.map → chunk.PSU432SK.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.U5DETNRU.js.map → chunk.QIGNMZRL.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.DNWMURCG.js.map → chunk.RHXQ2GMV.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.OLNY6ZNB.js.map → chunk.TLXWXBQO.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.EPFMWAIO.js.map → chunk.TVWUZYVG.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.32AY5G4D.js.map → chunk.W3DFKTAX.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ATJJ6NAY.js.map → chunk.WF24FWAT.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.WVU4LCVC.js.map → chunk.XKX2BE6Z.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.ZVHFSAID.js.map → chunk.YVXZ753Q.js.map} +0 -0
- /package/dist/esm/chunks/{chunk.QFMQPAT2.js.map → chunk.Z7Y2RA4P.js.map} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a as g,d as $}from"./chunk.F6DMKNFU.js";import{a as q}from"./chunk.HDHGU4L2.js";import{a as u,b as j}from"./chunk.2DXG2R3M.js";import{a as f,b as x,d as U,f as X,g as G}from"./chunk.F3MP6AXF.js";import{r as W,s as F}from"./chunk.MZLPUI6R.js";import{a as k}from"./chunk.YI4JTY4T.js";import{d as Y,l as V}from"./chunk.WHQZNZHW.js";import{a as z}from"./chunk.UWYANU5D.js";import{a as m}from"./chunk.KTGSZEAG.js";import{a as P,b as H}from"./chunk.DL7NX432.js";import{a as M,e as D,g as b,l as K}from"./chunk.LJLEPTLU.js";import{g as O,s as N,t as E}from"./chunk.4LA6HEA7.js";import{d as R,h as B,k as _,l as w}from"./chunk.J2M2MXP2.js";import{f as p}from"./chunk.MCIQXNKY.js";var J=`${H}tab-bar`,lt={ACTIVE_TAB:"active-tab",LAYOUT_MODE:"layout-mode",LAYOUT_ALIGN:"layout-align",UNDERLINE:"underline",AUTO_ACTIVATE:"auto-activate",STACKED:"stacked",SCROLL_BUTTONS:"scroll-buttons",FORCE_SCROLL_BUTTONS:"force-scroll-buttons"},st={UNDERLINED:"forge-tab-bar--underlined",ALIGN_CENTER:"forge-tab-bar--align-center",ALIGN_END:"forge-tab-bar--align-end",FIXED:"forge-tab-bar--fixed",STACKED:"forge-tab-bar--stacked"},ct={ROOT:".forge-tab-bar",TAB_SCROLLER:".mdc-tab-scroller",TAB_SCROLLER_AREA:".mdc-tab-scroller__scroll-area",TAB_SCROLLER_CONTENT:".mdc-tab-scroller__scroll-content",PREV_BUTTON_CONTAINER:".forge-tab-bar__scroll-prev-container",PREV_BUTTON:"#scroll-prev-btn",NEXT_BUTTON_CONTAINER:".forge-tab-bar__scroll-next-container",NEXT_BUTTON:"#scroll-next-btn"},dt={ACTIVATE:`${J}-activate`},d={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space"},v={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},i={attributes:lt,elementName:J,classes:st,selectors:ct,events:dt,strings:d,numbers:v},Q=[d.ARROW_LEFT_KEY,d.ARROW_RIGHT_KEY,d.END_KEY,d.HOME_KEY,d.ENTER_KEY,d.SPACE_KEY],Z={[v.ARROW_LEFT_KEYCODE]:d.ARROW_LEFT_KEY,[v.ARROW_RIGHT_KEYCODE]:d.ARROW_RIGHT_KEY,[v.END_KEYCODE]:d.END_KEY,[v.HOME_KEYCODE]:d.HOME_KEY,[v.ENTER_KEYCODE]:d.ENTER_KEY,[v.SPACE_KEYCODE]:d.SPACE_KEY};var y=class{constructor(e){this._adapter=e;this._isInitialized=!1;this._activeTab=-1;this._layoutMode="fixed";this._layoutAlign="start";this._underline=!1;this._autoActivate=!1;this._stacked=!1;this._scrollButtons=!0;this._forceScrollButtons=!1;this._tabsChangedListener=t=>this._onTabsChanged(t),this._tabInteractedListener=t=>this._onTabInteracted(t),this._keydownListener=t=>this._onKeydown(t),this._scrollPrevClickListener=t=>this._onScrollPrevious(t),this._scrollPrevMousedownListener=t=>t.preventDefault(),this._scrollNextClickListener=t=>this._onScrollNext(t),this._scrollNextMousedownListener=t=>t.preventDefault(),this._scrollListener=t=>this._onScroll(t)}initialize(){this._adapter.initializeTabs(this._activeTab,this._isFixed),this._adapter.initializeTabScroller(),this._adapter.initializeAccessibility(),this._adapter.addTabChangeListener(this._tabsChangedListener),this._adapter.addScrollPreviousListener("click",this._scrollPrevClickListener),this._adapter.addScrollPreviousListener("mousedown",this._scrollPrevMousedownListener),this._adapter.addScrollNextListener("click",this._scrollNextClickListener),this._adapter.addScrollNextListener("mousedown",this._scrollNextMousedownListener),this._adapter.addHostListener(g.events.INTERACTED,this._tabInteractedListener),this._adapter.addHostListener("keydown",this._keydownListener),this._adapter.addScrollListener(this._scrollListener),this._adapter.setUnderline(this._underline),this._adapter.setLayoutMode(this._layoutMode),this._adapter.setLayoutAlign(this._layoutAlign),window.requestAnimationFrame(()=>{this._syncScrollButtons(),this._adapter.ensureFocusableTab()}),this._isInitialized=!0}disconnect(){this._adapter.destroyTabScroller(),this._adapter.removeTabChangeListener(this._tabsChangedListener),this._adapter.removeHostListener(g.events.INTERACTED,this._tabInteractedListener),this._adapter.removeHostListener("keydown",this._keydownListener),this._isInitialized=!1}_onTabsChanged(e){this._adapter.initializeTabs(this._activeTab,this._isFixed),this._adapter.ensureFocusableTab(),window.setTimeout(()=>{window.requestAnimationFrame(()=>{this.scrollIntoView(this._activeTab),this._syncScrollButtons()})})}_onTabInteracted(e){let t=e.target,r=this._adapter.getTabIndex(t),o=t.tagName.toLowerCase()===g.elementName,n=r!==this._activeTab&&this._indexIsInRange(r);if(!o||!n)return;let s={index:r};!this._adapter.emitHostEvent(i.events.ACTIVATE,s,!0,!0)||(this.activateTab(r),this._adapter.focusTabAtIndex(r))}_onKeydown(e){let t=this._getKeyFromEvent(e);if(!!t)if(this._isActivationKey(t)||e.preventDefault(),this._autoActivate){if(this._isActivationKey(t))return;let r=this._determineTargetFromKey(this._activeTab,t);if(this._activeTab===r)return;let o={index:r};this._adapter.emitHostEvent(i.events.ACTIVATE,o,!0,!0)&&(this.activateTab(r),this._adapter.focusTabAtIndex(r))}else{let r=this._adapter.getFocusedTabIndex();if(r===-1)return;if(this._isActivationKey(t)){let o={index:r};this._adapter.emitHostEvent(i.events.ACTIVATE,o,!0,!0)&&this.activateTab(r)}else{let o=this._determineTargetFromKey(r,t);if(r===o)return;this._adapter.focusTabAtIndex(o),this.scrollIntoView(o)}}}_onScrollPrevious(e){let t=-this._adapter.getOffsetWidth();this._adapter.incrementScroll(t),this._syncScrollButtons()}_onScrollNext(e){let t=this._adapter.getOffsetWidth();this._adapter.incrementScroll(t),this._syncScrollButtons()}_onScroll(e){this._syncScrollButtons()}_syncScrollButtons(){let e=this._isScrollable();this._adapter.setPreviousButtonVisibility(e),this._adapter.setNextButtonVisibility(e),e&&(this._adapter.setPreviousButtonEnabled(this._adapter.isScrolled()),this._adapter.setNextButtonEnabled(!this._adapter.isScrolledEnd()))}_findAdjacentTabIndexClosestToEdge(e,t,r,o){let n=t.rootLeft-r,s=t.rootRight-r-o,h=n+s,l=n<0||h<0,S=s>0||h>0;return l?e-1:S?e+1:-1}_calculateScrollIncrement(e,t,r,o){let n=this._adapter.getTabDimensionsAtIndex(t),s=n.contentLeft-r-o,l=n.contentRight-r-i.numbers.EXTRA_SCROLL_AMOUNT,S=s+i.numbers.EXTRA_SCROLL_AMOUNT;return t<e?Math.min(l,0):Math.max(S,0)}_determineTargetFromKey(e,t,r){if(e===r)return e;let o=this._adapter.getTabCount()-1,n=t===i.strings.END_KEY,s=t===i.strings.ARROW_LEFT_KEY,h=t===i.strings.ARROW_RIGHT_KEY,l=r!==void 0?r:e;return n?l=o:s?l-=1:h?l+=1:l=0,l<0?l=o:l>o&&(l=0),this._adapter.isTabDisabled(l)?this._determineTargetFromKey(e,t,l):l}_isScrollable(){return this._forceScrollButtons||this._scrollButtons&&!k.isMobile&&!this._isFixed&&this._adapter.getScrollContentWidth()>this._adapter.getOffsetWidth()}_getKeyFromEvent(e){return Q.includes(e.key)?e.key:Z[e.keyCode]}_isActivationKey(e){return e===i.strings.SPACE_KEY||e===i.strings.ENTER_KEY}_indexIsInRange(e){return e>=0&&e<this._adapter.getTabCount()}activateTab(e){R(e)||(e=-1),this._activeTab!==-1&&this._adapter.deactivateTab(this._activeTab);let t=this._adapter.getTabBounds(this._activeTab);this._adapter.activateTab(e,t),this._adapter.syncTabIndex(e),this._adapter.ensureFocusableTab(),this.scrollIntoView(e),this._activeTab=e,this._syncScrollButtons(),this._adapter.setHostAttribute(i.attributes.ACTIVE_TAB,this._activeTab.toString())}scrollIntoView(e){if(!this._indexIsInRange(e))return;if(e===0)return this._adapter.scrollTo(0);if(e===this._adapter.getTabCount()-1)return this._adapter.scrollTo(this._adapter.getScrollContentWidth());let t=this._adapter.getScrollPosition(),r=this._adapter.getOffsetWidth(),o=this._adapter.getTabDimensionsAtIndex(e),n=this._findAdjacentTabIndexClosestToEdge(e,o,t,r);if(!this._indexIsInRange(n))return;let s=this._calculateScrollIncrement(e,n,t,r);this._adapter.incrementScroll(s)}get activeTab(){return this._activeTab}set activeTab(e){this._activeTab!==e&&(this._isInitialized?this.activateTab(e):(this._activeTab=e,this._adapter.setHostAttribute(i.attributes.ACTIVE_TAB,this._activeTab.toString())))}get _isFixed(){return this._layoutMode==="fixed"}get layoutMode(){return this._layoutMode}set layoutMode(e){this._layoutMode!==e&&(this._layoutMode=e,this._adapter.setLayoutMode(this._layoutMode),this._syncScrollButtons())}get layoutAlign(){return this._layoutAlign}set layoutAlign(e){this._layoutAlign!==e&&(this._layoutAlign=e,this._adapter.setLayoutAlign(this._layoutAlign))}get underline(){return this._underline}set underline(e){this._underline!==e&&(this._underline=e,this._adapter.setUnderline(this._underline),this._adapter.toggleHostAttribute(i.attributes.UNDERLINE,this._underline))}get stacked(){return this._stacked}set stacked(e){this._stacked!==e&&(this._stacked=e,this._adapter.setStacked(this._stacked),this._stacked?this._adapter.setHostAttribute(i.attributes.STACKED):this._adapter.removeHostAttribute(i.attributes.STACKED))}get scrollButtons(){return this._scrollButtons}set scrollButtons(e){this._scrollButtons!==e&&(this._scrollButtons=e,this._adapter.setHostAttribute(i.attributes.SCROLL_BUTTONS,this._scrollButtons.toString()),this._isInitialized&&this._syncScrollButtons())}get forceScrollButtons(){return this._forceScrollButtons}set forceScrollButtons(e){this._forceScrollButtons!==e&&(this._forceScrollButtons=e,this._isInitialized&&this._syncScrollButtons())}get autoActivate(){return this._autoActivate}set autoActivate(e){this._autoActivate!==e&&(this._autoActivate=e,this._adapter.setHostAttribute(i.attributes.AUTO_ACTIVATE,this._autoActivate.toString()))}};var A={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},tt={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"};var I;function et(a,e){if(e===void 0&&(e=!0),e&&typeof I!="undefined")return I;var t=a.createElement("div");t.classList.add(A.SCROLL_TEST),a.body.appendChild(t);var r=t.offsetHeight-t.clientHeight;return a.body.removeChild(t),e&&(I=r),r}var T=function(){function a(e){this.adapter=e}return a}();var rt=function(a){f(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getScrollPositionRTL=function(){var t=this.adapter.getScrollAreaScrollLeft(),r=this.calculateScrollEdges().right;return Math.round(r-t)},e.prototype.scrollToRTL=function(t){var r=this.calculateScrollEdges(),o=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(r.right-t);return{finalScrollPosition:n,scrollDelta:n-o}},e.prototype.incrementScrollRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft(),o=this.clampScrollValue(r-t);return{finalScrollPosition:o,scrollDelta:o-r}},e.prototype.getAnimatingScrollPosition=function(t){return t},e.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth(),r=this.adapter.getScrollAreaOffsetWidth();return{left:0,right:t-r}},e.prototype.clampScrollValue=function(t){var r=this.calculateScrollEdges();return Math.min(Math.max(r.left,t),r.right)},e}(T);var ot=function(a){f(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getScrollPositionRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft();return Math.round(t-r)},e.prototype.scrollToRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft(),o=this.clampScrollValue(-t);return{finalScrollPosition:o,scrollDelta:o-r}},e.prototype.incrementScrollRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft(),o=this.clampScrollValue(r-t);return{finalScrollPosition:o,scrollDelta:o-r}},e.prototype.getAnimatingScrollPosition=function(t,r){return t-r},e.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth(),r=this.adapter.getScrollAreaOffsetWidth();return{left:r-t,right:0}},e.prototype.clampScrollValue=function(t){var r=this.calculateScrollEdges();return Math.max(Math.min(r.right,t),r.left)},e}(T);var it=function(a){f(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getScrollPositionRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft();return Math.round(r-t)},e.prototype.scrollToRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft(),o=this.clampScrollValue(t);return{finalScrollPosition:o,scrollDelta:r-o}},e.prototype.incrementScrollRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft(),o=this.clampScrollValue(r+t);return{finalScrollPosition:o,scrollDelta:r-o}},e.prototype.getAnimatingScrollPosition=function(t,r){return t+r},e.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth(),r=this.adapter.getScrollAreaOffsetWidth();return{left:t-r,right:0}},e.prototype.clampScrollValue=function(t){var r=this.calculateScrollEdges();return Math.min(Math.max(r.right,t),r.left)},e}(T);var L=function(a){f(e,a);function e(t){var r=a.call(this,x(x({},e.defaultAdapter),t))||this;return r.isAnimating=!1,r}return Object.defineProperty(e,"cssClasses",{get:function(){return A},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return tt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-t+"px"),this.adapter.addScrollAreaClass(e.cssClasses.SCROLL_AREA_SCROLL)},e.prototype.getScrollPosition=function(){if(this.isRTL())return this.computeCurrentScrollPositionRTL();var t=this.calculateCurrentTranslateX(),r=this.adapter.getScrollAreaScrollLeft();return r-t},e.prototype.handleInteraction=function(){!this.isAnimating||this.stopScrollAnimation()},e.prototype.handleTransitionEnd=function(t){var r=t.target;!this.isAnimating||!this.adapter.eventTargetMatchesSelector(r,e.strings.CONTENT_SELECTOR)||(this.isAnimating=!1,this.adapter.removeClass(e.cssClasses.ANIMATING))},e.prototype.incrementScroll=function(t){t!==0&&this.animate(this.getIncrementScrollOperation(t))},e.prototype.incrementScrollImmediate=function(t){if(t!==0){var r=this.getIncrementScrollOperation(t);r.scrollDelta!==0&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(r.finalScrollPosition))}},e.prototype.scrollTo=function(t){if(this.isRTL()){this.scrollToImplRTL(t);return}this.scrollToImpl(t)},e.prototype.getRTLScroller=function(){return this.rtlScrollerInstance||(this.rtlScrollerInstance=this.rtlScrollerFactory()),this.rtlScrollerInstance},e.prototype.calculateCurrentTranslateX=function(){var t=this.adapter.getScrollContentStyleValue("transform");if(t==="none")return 0;var r=/\((.+?)\)/.exec(t);if(!r)return 0;var o=r[1],n=U(o.split(","),6),s=n[0],h=n[1],l=n[2],S=n[3],at=n[4],ft=n[5];return parseFloat(at)},e.prototype.clampScrollValue=function(t){var r=this.calculateScrollEdges();return Math.min(Math.max(r.left,t),r.right)},e.prototype.computeCurrentScrollPositionRTL=function(){var t=this.calculateCurrentTranslateX();return this.getRTLScroller().getScrollPositionRTL(t)},e.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth(),r=this.adapter.getScrollAreaOffsetWidth();return{left:0,right:t-r}},e.prototype.scrollToImpl=function(t){var r=this.getScrollPosition(),o=this.clampScrollValue(t),n=o-r;this.animate({finalScrollPosition:o,scrollDelta:n})},e.prototype.scrollToImplRTL=function(t){var r=this.getRTLScroller().scrollToRTL(t);this.animate(r)},e.prototype.getIncrementScrollOperation=function(t){if(this.isRTL())return this.getRTLScroller().incrementScrollRTL(t);var r=this.getScrollPosition(),o=t+r,n=this.clampScrollValue(o),s=n-r;return{finalScrollPosition:n,scrollDelta:s}},e.prototype.animate=function(t){var r=this;t.scrollDelta!==0&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+t.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame(function(){r.adapter.addClass(e.cssClasses.ANIMATING),r.adapter.setScrollContentStyleProperty("transform","none")}),this.isAnimating=!0)},e.prototype.stopScrollAnimation=function(){this.isAnimating=!1;var t=this.getAnimatingScrollPosition();this.adapter.removeClass(e.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(t)},e.prototype.getAnimatingScrollPosition=function(){var t=this.calculateCurrentTranslateX(),r=this.adapter.getScrollAreaScrollLeft();return this.isRTL()?this.getRTLScroller().getAnimatingScrollPosition(r,t):r-t},e.prototype.rtlScrollerFactory=function(){var t=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(t-1);var r=this.adapter.getScrollAreaScrollLeft();if(r<0)return this.adapter.setScrollAreaScrollLeft(t),new ot(this.adapter);var o=this.adapter.computeScrollAreaClientRect(),n=this.adapter.computeScrollContentClientRect(),s=Math.round(n.right-o.right);return this.adapter.setScrollAreaScrollLeft(t),s===r?new it(this.adapter):new rt(this.adapter)},e.prototype.isRTL=function(){return this.adapter.getScrollContentStyleValue("direction")==="rtl"},e}(X);var nt=function(a){f(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.attachTo=function(t){return new e(t)},e.prototype.initialize=function(){this.area=this.root.querySelector(L.strings.AREA_SELECTOR),this.content=this.root.querySelector(L.strings.CONTENT_SELECTOR)},e.prototype.initialSyncWithDOM=function(){var t=this;this.handleInteraction=function(){t.foundation.handleInteraction()},this.handleTransitionEnd=function(r){t.foundation.handleTransitionEnd(r)},this.area.addEventListener("wheel",this.handleInteraction,u()),this.area.addEventListener("touchstart",this.handleInteraction,u()),this.area.addEventListener("pointerdown",this.handleInteraction,u()),this.area.addEventListener("mousedown",this.handleInteraction,u()),this.area.addEventListener("keydown",this.handleInteraction,u()),this.content.addEventListener("transitionend",this.handleTransitionEnd)},e.prototype.destroy=function(){a.prototype.destroy.call(this),this.area.removeEventListener("wheel",this.handleInteraction,u()),this.area.removeEventListener("touchstart",this.handleInteraction,u()),this.area.removeEventListener("pointerdown",this.handleInteraction,u()),this.area.removeEventListener("mousedown",this.handleInteraction,u()),this.area.removeEventListener("keydown",this.handleInteraction,u()),this.content.removeEventListener("transitionend",this.handleTransitionEnd)},e.prototype.getDefaultFoundation=function(){var t=this,r={eventTargetMatchesSelector:function(o,n){return j(o,n)},addClass:function(o){t.root.classList.add(o)},removeClass:function(o){t.root.classList.remove(o)},addScrollAreaClass:function(o){t.area.classList.add(o)},setScrollAreaStyleProperty:function(o,n){t.area.style.setProperty(o,n)},setScrollContentStyleProperty:function(o,n){t.content.style.setProperty(o,n)},getScrollContentStyleValue:function(o){return window.getComputedStyle(t.content).getPropertyValue(o)},setScrollAreaScrollLeft:function(o){return t.area.scrollLeft=o},getScrollAreaScrollLeft:function(){return t.area.scrollLeft},getScrollContentOffsetWidth:function(){return t.content.offsetWidth},getScrollAreaOffsetWidth:function(){return t.area.offsetWidth},computeScrollAreaClientRect:function(){return t.area.getBoundingClientRect()},computeScrollContentClientRect:function(){return t.content.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return et(document)}};return new L(r)},e.prototype.getScrollPosition=function(){return this.foundation.getScrollPosition()},e.prototype.getScrollContentWidth=function(){return this.content.offsetWidth},e.prototype.incrementScroll=function(t){this.foundation.incrementScroll(t)},e.prototype.scrollTo=function(t){this.foundation.scrollTo(t)},e}(G);var C=class extends z{constructor(t){super(t);this._tabs=[];this._rootElement=b(this._component,i.selectors.ROOT),this._tabScrollElement=b(this._component,i.selectors.TAB_SCROLLER),this._tabScrollAreaElement=b(this._component,i.selectors.TAB_SCROLLER_AREA),this._tabScrollContentElement=b(this._component,i.selectors.TAB_SCROLLER_CONTENT),this._defaultSlotElement=b(this._component,g.selectors.DEFAULT_SLOT),this._prevButtonContainerElement=b(this._component,i.selectors.PREV_BUTTON_CONTAINER),this._prevButtonElement=b(this._component,i.selectors.PREV_BUTTON),this._nextButtonContainerElement=b(this._component,i.selectors.NEXT_BUTTON_CONTAINER),this._nextButtonElement=b(this._component,i.selectors.NEXT_BUTTON)}initializeTabs(t,r){this._tabs=this._getTabs(),this._tabs.length&&(this._tabs.forEach(o=>{o.active=!1,o.stretch=r}),t>=0&&t<this._tabs.length?this._tabs[t].active=!0:this.ensureFocusableTab())}initializeTabScroller(){this._tabScroller=new nt(this._tabScrollElement)}initializeAccessibility(){this._component.hasAttribute("role")||this._component.setAttribute("role","tablist")}destroyTabScroller(){this._tabScroller&&this._tabScroller.destroy()}addTabChangeListener(t){this._defaultSlotElement.addEventListener("slotchange",t)}removeTabChangeListener(t){this._defaultSlotElement.removeEventListener("slotchange",t)}addScrollListener(t){this._tabScrollAreaElement.addEventListener("scroll",t)}getTabIndex(t){return this._tabs.indexOf(t)}getTabCount(){return this._tabs.length}activateTab(t,r){let o=this._getTabByIndex(t);o&&o.activate(r)}deactivateTab(t){let r=this._getTabByIndex(t);r&&r.deactivate()}syncTabIndex(t){let r=this._getTabs(),o=r[t];r.filter(n=>n!==o).forEach(n=>n.setTabIndex(-1))}getTabBounds(t){let r=this._getTabByIndex(t);if(r)return r.computeIndicatorBounds()}setUnderline(t){E(this._rootElement,t,i.classes.UNDERLINED)}setStacked(t){E(this._rootElement,t,i.classes.STACKED)}scrollTo(t){this._tabScroller&&this._tabScroller.scrollTo(t)}getScrollContentWidth(){return this._tabScroller?this._tabScroller.getScrollContentWidth():0}getScrollPosition(){return this._tabScroller?this._tabScroller.getScrollPosition():0}getOffsetWidth(){return this._tabScrollElement.offsetWidth}getTabDimensionsAtIndex(t){let r=this._getTabByIndex(t);return r?r.computeDimensions():{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}}incrementScroll(t){this._tabScroller&&this._tabScroller.incrementScroll(t)}isScrolled(){return this._tabScrollAreaElement.scrollLeft>0}isScrolledEnd(){let t=Math.round(this._tabScrollAreaElement.scrollLeft),r=Math.round(this._tabScrollContentElement.scrollWidth-this._tabScrollElement.offsetWidth);return t>=r}getFocusedTabIndex(){let t=N(this._component.ownerDocument);return this._tabs.findIndex(r=>r===t?!0:!!r.shadowRoot.contains(t))}focusTabAtIndex(t){let r=this._getTabByIndex(t);if(r)return r.focus()}setLayoutMode(t){let r=t==="fixed";E(this._rootElement,r,i.classes.FIXED),this._tabs.forEach(o=>o.stretch=r)}setLayoutAlign(t){switch(O([i.classes.ALIGN_CENTER,i.classes.ALIGN_END],this._rootElement),t){case"center":this._rootElement.classList.add(i.classes.ALIGN_CENTER);break;case"end":this._rootElement.classList.add(i.classes.ALIGN_END);break}}setPreviousButtonVisibility(t){t?this._prevButtonContainerElement.style.removeProperty("display"):this._prevButtonContainerElement.style.display="none"}setPreviousButtonEnabled(t){this._prevButtonElement.disabled=!t}setNextButtonVisibility(t){t?this._nextButtonContainerElement.style.removeProperty("display"):this._nextButtonContainerElement.style.display="none"}setNextButtonEnabled(t){this._nextButtonElement.disabled=!t}addScrollPreviousListener(t,r){this._prevButtonElement.addEventListener(t,r)}addScrollNextListener(t,r){this._nextButtonElement.addEventListener(t,r)}isTabDisabled(t){let r=this._getTabByIndex(t);return r?r.disabled:!0}ensureFocusableTab(){let t=this._getTabs();if(!t.some(o=>o.active)&&t.length){let o=t[0];B(o.setTabIndex)&&t[0].setTabIndex(0)}}_getTabs(){return Array.from(this._component.querySelectorAll(g.elementName))}_getTabByIndex(t){return this._tabs[t]}};var pt='<template><div class="forge-tab-bar" part="root"><div class="forge-tab-bar__scroll-prev-container" part="previous-container"><forge-icon-button part="previous-button"><button type="button" tabindex="-1" aria-label="Scroll left" id="scroll-prev-btn" part="previous-button-element"><forge-icon name="keyboard_arrow_left" part="previous-button-icon"></forge-icon></button></forge-icon-button></div><div class="mdc-tab-scroller" part="tab-scroller"><div class="mdc-tab-scroller__scroll-area" part="scroll-area"><div class="mdc-tab-scroller__scroll-content" part="scroll-content"><slot></slot></div></div></div><div class="forge-tab-bar__scroll-next-container" part="next-container"><forge-icon-button part="next-button"><button type="button" tabindex="-1" aria-label="Scroll right" id="scroll-next-btn" part="next-button-element"><forge-icon name="keyboard_arrow_right" part="next-button-icon"></forge-icon></button></forge-icon-button></div></div></template>',bt='.forge-icon-button{display:-webkit-inline-box;display:inline-flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;font-size:24px;text-decoration:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:48px;height:48px;padding:12px}.forge-icon-button forge-icon,.forge-icon-button img,.forge-icon-button svg{width:24px;height:24px}.forge-icon-button:disabled{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.forge-icon-button:disabled{cursor:default;pointer-events:none}.forge-icon-button__icon{display:inline-block}.forge-icon-button__icon.forge-icon-button__icon--on{display:none}.forge-icon-button--on .forge-icon-button__icon{display:none}.forge-icon-button--on .forge-icon-button__icon.forge-icon-button__icon--on{display:inline-block}@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.forge-icon-button{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity}.forge-icon-button::after,.forge-icon-button::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.forge-icon-button::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.forge-icon-button::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.forge-icon-button.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.forge-icon-button.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.forge-icon-button.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.forge-icon-button.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.forge-icon-button.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.forge-icon-button::after,.forge-icon-button::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.forge-icon-button.mdc-ripple-upgraded::after,.forge-icon-button.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-icon-button.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-icon-button::after,.forge-icon-button::before{background-color:#000;background-color:var(--mdc-ripple-color,var(--mdc-theme-on-surface,#000))}.forge-icon-button.mdc-ripple-surface--hover::before,.forge-icon-button:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-icon-button.mdc-ripple-upgraded--background-focused::before,.forge-icon-button:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-icon-button:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-icon-button:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-icon-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}forge-icon-button{position:relative;display:inline-block;overflow:visible}.forge-icon-button--on{color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5)}.forge-icon-button--on::after,.forge-icon-button--on::before{background-color:#3f51b5;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#3f51b5))}.forge-icon-button--on.mdc-ripple-surface--hover::before,.forge-icon-button--on:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-icon-button--on.mdc-ripple-upgraded--background-focused::before,.forge-icon-button--on:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-icon-button--on:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-icon-button--on:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-icon-button--on.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.forge-icon-button--on::before{background-color:#3f51b5;background-color:var(--mdc-theme-primary,#3f51b5);opacity:.08}.forge-icon-button--dense{width:28px;height:28px;padding:2px;padding:0}.forge-icon-button--dense-1{width:44px;height:44px;padding:10px}.forge-icon-button--dense-2{width:40px;height:40px;padding:8px}.forge-icon-button--dense-3{width:36px;height:36px;padding:6px}.forge-icon-button--dense-4{width:32px;height:32px;padding:4px}.forge-icon-button--dense-5{width:28px;height:28px;padding:2px}.forge-icon-button--dense-6{width:24px;height:24px;padding:0}.forge-icon-button--with-badge forge-badge{z-index:1;z-index:var(--forge-z-index-surface,1);pointer-events:none;--forge-badge-max-width:32px;--forge-badge-border:1px solid transparent}.forge-icon-button--with-badge forge-badge[app-bar-context]{--forge-badge-border:2px solid var(--forge-app-bar-theme-background)}.mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{-webkit-transition:250ms -webkit-transform cubic-bezier(.4, 0, .2, 1);transition:250ms -webkit-transform cubic-bezier(.4, 0, .2, 1);transition:250ms transform cubic-bezier(.4, 0, .2, 1);transition:250ms transform cubic-bezier(.4, 0, .2, 1),250ms -webkit-transform cubic-bezier(.4, 0, .2, 1)}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:-webkit-box;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:-webkit-box;display:flex;-webkit-box-flex:1;flex:1 0 auto;-webkit-transform:none;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{-webkit-box-pack:start;justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{-webkit-box-pack:end;justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{-webkit-box-pack:center;justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}.forge-tab-bar{height:48px;height:var(--forge-tab-bar-height,48px);display:-webkit-box;display:flex;position:relative}.forge-tab-bar--underlined::after{border-bottom-color:#e0e0e0;border-bottom-color:var(--forge-theme-border-color,#e0e0e0);content:"";border-bottom-width:1px;border-bottom-style:solid;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:absolute;bottom:0;left:0;right:0}.forge-tab-bar--align-center .mdc-tab-scroller__scroll-content{-webkit-box-pack:center;justify-content:center}.forge-tab-bar--align-end .mdc-tab-scroller__scroll-content{-webkit-box-pack:end;justify-content:flex-end}.forge-tab-bar--stacked{height:72px;height:var(--forge-tab-bar-height,72px);-webkit-box-align:center;align-items:center}.forge-tab-bar--stacked .mdc-tab-scroller{height:100%}.mdc-tab-scroller{z-index:1;width:100%}.mdc-tab-scroller__scroll-area{height:100%;overflow-x:auto;scrollbar-width:none}:host{display:block;overflow:hidden}:host([hidden]){display:none}',c=class extends K{constructor(){super();Y.define([W,F]),D(this,pt,bt),this._foundation=new y(new C(this))}static get observedAttributes(){return[i.attributes.ACTIVE_TAB,i.attributes.LAYOUT_MODE,i.attributes.LAYOUT_ALIGN,i.attributes.UNDERLINE,i.attributes.AUTO_ACTIVATE,i.attributes.STACKED,i.attributes.SCROLL_BUTTONS,i.attributes.FORCE_SCROLL_BUTTONS]}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,r,o){switch(t){case i.attributes.ACTIVE_TAB:this.activeTab=w(o);break;case i.attributes.LAYOUT_MODE:this.layoutMode=o;break;case i.attributes.LAYOUT_ALIGN:this.layoutAlign=o;break;case i.attributes.UNDERLINE:this.underline=_(o);break;case i.attributes.AUTO_ACTIVATE:this.autoActivate=_(o);break;case i.attributes.STACKED:this.stacked=_(o);break;case i.attributes.SCROLL_BUTTONS:this.scrollButtons=_(o);break;case i.attributes.FORCE_SCROLL_BUTTONS:this.forceScrollButtons=_(o);break}}activateTab(t){this._foundation.activateTab(t)}scrollTabIntoView(t){this._foundation.scrollIntoView(t)}};p([m()],c.prototype,"activeTab",2),p([m()],c.prototype,"layoutMode",2),p([m()],c.prototype,"layoutAlign",2),p([m()],c.prototype,"underline",2),p([m()],c.prototype,"autoActivate",2),p([m()],c.prototype,"stacked",2),p([m()],c.prototype,"scrollButtons",2),p([m()],c.prototype,"forceScrollButtons",2),c=p([P({name:i.elementName,dependencies:[$,q,V]})],c);function ye(){M(c)}export{i as a,Q as b,Z as c,y as d,C as e,c as f,ye as g};
|
|
6
|
+
import{a as g,d as $}from"./chunk.OML7MHH6.js";import{a as q}from"./chunk.E3K6KM57.js";import{a as u,b as j}from"./chunk.2DXG2R3M.js";import{a as f,b as x,d as U,f as X,g as G}from"./chunk.F3MP6AXF.js";import{r as W,s as F}from"./chunk.MZLPUI6R.js";import{a as k}from"./chunk.YI4JTY4T.js";import{d as Y,l as V}from"./chunk.WHQZNZHW.js";import{a as z}from"./chunk.UWYANU5D.js";import{a as m}from"./chunk.KTGSZEAG.js";import{a as P,b as H}from"./chunk.DL7NX432.js";import{a as M,e as D,g as b,l as K}from"./chunk.LJLEPTLU.js";import{g as O,s as N,t as E}from"./chunk.4LA6HEA7.js";import{d as R,h as B,k as _,l as w}from"./chunk.J2M2MXP2.js";import{f as p}from"./chunk.MCIQXNKY.js";var J=`${H}tab-bar`,lt={ACTIVE_TAB:"active-tab",LAYOUT_MODE:"layout-mode",LAYOUT_ALIGN:"layout-align",UNDERLINE:"underline",AUTO_ACTIVATE:"auto-activate",STACKED:"stacked",SCROLL_BUTTONS:"scroll-buttons",FORCE_SCROLL_BUTTONS:"force-scroll-buttons"},st={UNDERLINED:"forge-tab-bar--underlined",ALIGN_CENTER:"forge-tab-bar--align-center",ALIGN_END:"forge-tab-bar--align-end",FIXED:"forge-tab-bar--fixed",STACKED:"forge-tab-bar--stacked"},ct={ROOT:".forge-tab-bar",TAB_SCROLLER:".mdc-tab-scroller",TAB_SCROLLER_AREA:".mdc-tab-scroller__scroll-area",TAB_SCROLLER_CONTENT:".mdc-tab-scroller__scroll-content",PREV_BUTTON_CONTAINER:".forge-tab-bar__scroll-prev-container",PREV_BUTTON:"#scroll-prev-btn",NEXT_BUTTON_CONTAINER:".forge-tab-bar__scroll-next-container",NEXT_BUTTON:"#scroll-next-btn"},dt={ACTIVATE:`${J}-activate`},d={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space"},v={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},i={attributes:lt,elementName:J,classes:st,selectors:ct,events:dt,strings:d,numbers:v},Q=[d.ARROW_LEFT_KEY,d.ARROW_RIGHT_KEY,d.END_KEY,d.HOME_KEY,d.ENTER_KEY,d.SPACE_KEY],Z={[v.ARROW_LEFT_KEYCODE]:d.ARROW_LEFT_KEY,[v.ARROW_RIGHT_KEYCODE]:d.ARROW_RIGHT_KEY,[v.END_KEYCODE]:d.END_KEY,[v.HOME_KEYCODE]:d.HOME_KEY,[v.ENTER_KEYCODE]:d.ENTER_KEY,[v.SPACE_KEYCODE]:d.SPACE_KEY};var y=class{constructor(e){this._adapter=e;this._isInitialized=!1;this._activeTab=-1;this._layoutMode="fixed";this._layoutAlign="start";this._underline=!1;this._autoActivate=!1;this._stacked=!1;this._scrollButtons=!0;this._forceScrollButtons=!1;this._tabsChangedListener=t=>this._onTabsChanged(t),this._tabInteractedListener=t=>this._onTabInteracted(t),this._keydownListener=t=>this._onKeydown(t),this._scrollPrevClickListener=t=>this._onScrollPrevious(t),this._scrollPrevMousedownListener=t=>t.preventDefault(),this._scrollNextClickListener=t=>this._onScrollNext(t),this._scrollNextMousedownListener=t=>t.preventDefault(),this._scrollListener=t=>this._onScroll(t)}initialize(){this._adapter.initializeTabs(this._activeTab,this._isFixed),this._adapter.initializeTabScroller(),this._adapter.initializeAccessibility(),this._adapter.addTabChangeListener(this._tabsChangedListener),this._adapter.addScrollPreviousListener("click",this._scrollPrevClickListener),this._adapter.addScrollPreviousListener("mousedown",this._scrollPrevMousedownListener),this._adapter.addScrollNextListener("click",this._scrollNextClickListener),this._adapter.addScrollNextListener("mousedown",this._scrollNextMousedownListener),this._adapter.addHostListener(g.events.INTERACTED,this._tabInteractedListener),this._adapter.addHostListener("keydown",this._keydownListener),this._adapter.addScrollListener(this._scrollListener),this._adapter.setUnderline(this._underline),this._adapter.setLayoutMode(this._layoutMode),this._adapter.setLayoutAlign(this._layoutAlign),window.requestAnimationFrame(()=>{this._syncScrollButtons(),this._adapter.ensureFocusableTab()}),this._isInitialized=!0}disconnect(){this._adapter.destroyTabScroller(),this._adapter.removeTabChangeListener(this._tabsChangedListener),this._adapter.removeHostListener(g.events.INTERACTED,this._tabInteractedListener),this._adapter.removeHostListener("keydown",this._keydownListener),this._isInitialized=!1}_onTabsChanged(e){this._adapter.initializeTabs(this._activeTab,this._isFixed),this._adapter.ensureFocusableTab(),window.setTimeout(()=>{window.requestAnimationFrame(()=>{this.scrollIntoView(this._activeTab),this._syncScrollButtons()})})}_onTabInteracted(e){let t=e.target,r=this._adapter.getTabIndex(t),o=t.tagName.toLowerCase()===g.elementName,n=r!==this._activeTab&&this._indexIsInRange(r);if(!o||!n)return;let s={index:r};!this._adapter.emitHostEvent(i.events.ACTIVATE,s,!0,!0)||(this.activateTab(r),this._adapter.focusTabAtIndex(r))}_onKeydown(e){let t=this._getKeyFromEvent(e);if(!!t)if(this._isActivationKey(t)||e.preventDefault(),this._autoActivate){if(this._isActivationKey(t))return;let r=this._determineTargetFromKey(this._activeTab,t);if(this._activeTab===r)return;let o={index:r};this._adapter.emitHostEvent(i.events.ACTIVATE,o,!0,!0)&&(this.activateTab(r),this._adapter.focusTabAtIndex(r))}else{let r=this._adapter.getFocusedTabIndex();if(r===-1)return;if(this._isActivationKey(t)){let o={index:r};this._adapter.emitHostEvent(i.events.ACTIVATE,o,!0,!0)&&this.activateTab(r)}else{let o=this._determineTargetFromKey(r,t);if(r===o)return;this._adapter.focusTabAtIndex(o),this.scrollIntoView(o)}}}_onScrollPrevious(e){let t=-this._adapter.getOffsetWidth();this._adapter.incrementScroll(t),this._syncScrollButtons()}_onScrollNext(e){let t=this._adapter.getOffsetWidth();this._adapter.incrementScroll(t),this._syncScrollButtons()}_onScroll(e){this._syncScrollButtons()}_syncScrollButtons(){let e=this._isScrollable();this._adapter.setPreviousButtonVisibility(e),this._adapter.setNextButtonVisibility(e),e&&(this._adapter.setPreviousButtonEnabled(this._adapter.isScrolled()),this._adapter.setNextButtonEnabled(!this._adapter.isScrolledEnd()))}_findAdjacentTabIndexClosestToEdge(e,t,r,o){let n=t.rootLeft-r,s=t.rootRight-r-o,h=n+s,l=n<0||h<0,S=s>0||h>0;return l?e-1:S?e+1:-1}_calculateScrollIncrement(e,t,r,o){let n=this._adapter.getTabDimensionsAtIndex(t),s=n.contentLeft-r-o,l=n.contentRight-r-i.numbers.EXTRA_SCROLL_AMOUNT,S=s+i.numbers.EXTRA_SCROLL_AMOUNT;return t<e?Math.min(l,0):Math.max(S,0)}_determineTargetFromKey(e,t,r){if(e===r)return e;let o=this._adapter.getTabCount()-1,n=t===i.strings.END_KEY,s=t===i.strings.ARROW_LEFT_KEY,h=t===i.strings.ARROW_RIGHT_KEY,l=r!==void 0?r:e;return n?l=o:s?l-=1:h?l+=1:l=0,l<0?l=o:l>o&&(l=0),this._adapter.isTabDisabled(l)?this._determineTargetFromKey(e,t,l):l}_isScrollable(){return this._forceScrollButtons||this._scrollButtons&&!k.isMobile&&!this._isFixed&&this._adapter.getScrollContentWidth()>this._adapter.getOffsetWidth()}_getKeyFromEvent(e){return Q.includes(e.key)?e.key:Z[e.keyCode]}_isActivationKey(e){return e===i.strings.SPACE_KEY||e===i.strings.ENTER_KEY}_indexIsInRange(e){return e>=0&&e<this._adapter.getTabCount()}activateTab(e){R(e)||(e=-1),this._activeTab!==-1&&this._adapter.deactivateTab(this._activeTab);let t=this._adapter.getTabBounds(this._activeTab);this._adapter.activateTab(e,t),this._adapter.syncTabIndex(e),this._adapter.ensureFocusableTab(),this.scrollIntoView(e),this._activeTab=e,this._syncScrollButtons(),this._adapter.setHostAttribute(i.attributes.ACTIVE_TAB,this._activeTab.toString())}scrollIntoView(e){if(!this._indexIsInRange(e))return;if(e===0)return this._adapter.scrollTo(0);if(e===this._adapter.getTabCount()-1)return this._adapter.scrollTo(this._adapter.getScrollContentWidth());let t=this._adapter.getScrollPosition(),r=this._adapter.getOffsetWidth(),o=this._adapter.getTabDimensionsAtIndex(e),n=this._findAdjacentTabIndexClosestToEdge(e,o,t,r);if(!this._indexIsInRange(n))return;let s=this._calculateScrollIncrement(e,n,t,r);this._adapter.incrementScroll(s)}get activeTab(){return this._activeTab}set activeTab(e){this._activeTab!==e&&(this._isInitialized?this.activateTab(e):(this._activeTab=e,this._adapter.setHostAttribute(i.attributes.ACTIVE_TAB,this._activeTab.toString())))}get _isFixed(){return this._layoutMode==="fixed"}get layoutMode(){return this._layoutMode}set layoutMode(e){this._layoutMode!==e&&(this._layoutMode=e,this._adapter.setLayoutMode(this._layoutMode),this._syncScrollButtons())}get layoutAlign(){return this._layoutAlign}set layoutAlign(e){this._layoutAlign!==e&&(this._layoutAlign=e,this._adapter.setLayoutAlign(this._layoutAlign))}get underline(){return this._underline}set underline(e){this._underline!==e&&(this._underline=e,this._adapter.setUnderline(this._underline),this._adapter.toggleHostAttribute(i.attributes.UNDERLINE,this._underline))}get stacked(){return this._stacked}set stacked(e){this._stacked!==e&&(this._stacked=e,this._adapter.setStacked(this._stacked),this._stacked?this._adapter.setHostAttribute(i.attributes.STACKED):this._adapter.removeHostAttribute(i.attributes.STACKED))}get scrollButtons(){return this._scrollButtons}set scrollButtons(e){this._scrollButtons!==e&&(this._scrollButtons=e,this._adapter.setHostAttribute(i.attributes.SCROLL_BUTTONS,this._scrollButtons.toString()),this._isInitialized&&this._syncScrollButtons())}get forceScrollButtons(){return this._forceScrollButtons}set forceScrollButtons(e){this._forceScrollButtons!==e&&(this._forceScrollButtons=e,this._isInitialized&&this._syncScrollButtons())}get autoActivate(){return this._autoActivate}set autoActivate(e){this._autoActivate!==e&&(this._autoActivate=e,this._adapter.setHostAttribute(i.attributes.AUTO_ACTIVATE,this._autoActivate.toString()))}};var A={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},tt={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"};var I;function et(a,e){if(e===void 0&&(e=!0),e&&typeof I!="undefined")return I;var t=a.createElement("div");t.classList.add(A.SCROLL_TEST),a.body.appendChild(t);var r=t.offsetHeight-t.clientHeight;return a.body.removeChild(t),e&&(I=r),r}var T=function(){function a(e){this.adapter=e}return a}();var rt=function(a){f(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getScrollPositionRTL=function(){var t=this.adapter.getScrollAreaScrollLeft(),r=this.calculateScrollEdges().right;return Math.round(r-t)},e.prototype.scrollToRTL=function(t){var r=this.calculateScrollEdges(),o=this.adapter.getScrollAreaScrollLeft(),n=this.clampScrollValue(r.right-t);return{finalScrollPosition:n,scrollDelta:n-o}},e.prototype.incrementScrollRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft(),o=this.clampScrollValue(r-t);return{finalScrollPosition:o,scrollDelta:o-r}},e.prototype.getAnimatingScrollPosition=function(t){return t},e.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth(),r=this.adapter.getScrollAreaOffsetWidth();return{left:0,right:t-r}},e.prototype.clampScrollValue=function(t){var r=this.calculateScrollEdges();return Math.min(Math.max(r.left,t),r.right)},e}(T);var ot=function(a){f(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getScrollPositionRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft();return Math.round(t-r)},e.prototype.scrollToRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft(),o=this.clampScrollValue(-t);return{finalScrollPosition:o,scrollDelta:o-r}},e.prototype.incrementScrollRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft(),o=this.clampScrollValue(r-t);return{finalScrollPosition:o,scrollDelta:o-r}},e.prototype.getAnimatingScrollPosition=function(t,r){return t-r},e.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth(),r=this.adapter.getScrollAreaOffsetWidth();return{left:r-t,right:0}},e.prototype.clampScrollValue=function(t){var r=this.calculateScrollEdges();return Math.max(Math.min(r.right,t),r.left)},e}(T);var it=function(a){f(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getScrollPositionRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft();return Math.round(r-t)},e.prototype.scrollToRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft(),o=this.clampScrollValue(t);return{finalScrollPosition:o,scrollDelta:r-o}},e.prototype.incrementScrollRTL=function(t){var r=this.adapter.getScrollAreaScrollLeft(),o=this.clampScrollValue(r+t);return{finalScrollPosition:o,scrollDelta:r-o}},e.prototype.getAnimatingScrollPosition=function(t,r){return t+r},e.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth(),r=this.adapter.getScrollAreaOffsetWidth();return{left:t-r,right:0}},e.prototype.clampScrollValue=function(t){var r=this.calculateScrollEdges();return Math.min(Math.max(r.right,t),r.left)},e}(T);var L=function(a){f(e,a);function e(t){var r=a.call(this,x(x({},e.defaultAdapter),t))||this;return r.isAnimating=!1,r}return Object.defineProperty(e,"cssClasses",{get:function(){return A},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return tt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-t+"px"),this.adapter.addScrollAreaClass(e.cssClasses.SCROLL_AREA_SCROLL)},e.prototype.getScrollPosition=function(){if(this.isRTL())return this.computeCurrentScrollPositionRTL();var t=this.calculateCurrentTranslateX(),r=this.adapter.getScrollAreaScrollLeft();return r-t},e.prototype.handleInteraction=function(){!this.isAnimating||this.stopScrollAnimation()},e.prototype.handleTransitionEnd=function(t){var r=t.target;!this.isAnimating||!this.adapter.eventTargetMatchesSelector(r,e.strings.CONTENT_SELECTOR)||(this.isAnimating=!1,this.adapter.removeClass(e.cssClasses.ANIMATING))},e.prototype.incrementScroll=function(t){t!==0&&this.animate(this.getIncrementScrollOperation(t))},e.prototype.incrementScrollImmediate=function(t){if(t!==0){var r=this.getIncrementScrollOperation(t);r.scrollDelta!==0&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(r.finalScrollPosition))}},e.prototype.scrollTo=function(t){if(this.isRTL()){this.scrollToImplRTL(t);return}this.scrollToImpl(t)},e.prototype.getRTLScroller=function(){return this.rtlScrollerInstance||(this.rtlScrollerInstance=this.rtlScrollerFactory()),this.rtlScrollerInstance},e.prototype.calculateCurrentTranslateX=function(){var t=this.adapter.getScrollContentStyleValue("transform");if(t==="none")return 0;var r=/\((.+?)\)/.exec(t);if(!r)return 0;var o=r[1],n=U(o.split(","),6),s=n[0],h=n[1],l=n[2],S=n[3],at=n[4],ft=n[5];return parseFloat(at)},e.prototype.clampScrollValue=function(t){var r=this.calculateScrollEdges();return Math.min(Math.max(r.left,t),r.right)},e.prototype.computeCurrentScrollPositionRTL=function(){var t=this.calculateCurrentTranslateX();return this.getRTLScroller().getScrollPositionRTL(t)},e.prototype.calculateScrollEdges=function(){var t=this.adapter.getScrollContentOffsetWidth(),r=this.adapter.getScrollAreaOffsetWidth();return{left:0,right:t-r}},e.prototype.scrollToImpl=function(t){var r=this.getScrollPosition(),o=this.clampScrollValue(t),n=o-r;this.animate({finalScrollPosition:o,scrollDelta:n})},e.prototype.scrollToImplRTL=function(t){var r=this.getRTLScroller().scrollToRTL(t);this.animate(r)},e.prototype.getIncrementScrollOperation=function(t){if(this.isRTL())return this.getRTLScroller().incrementScrollRTL(t);var r=this.getScrollPosition(),o=t+r,n=this.clampScrollValue(o),s=n-r;return{finalScrollPosition:n,scrollDelta:s}},e.prototype.animate=function(t){var r=this;t.scrollDelta!==0&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+t.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame(function(){r.adapter.addClass(e.cssClasses.ANIMATING),r.adapter.setScrollContentStyleProperty("transform","none")}),this.isAnimating=!0)},e.prototype.stopScrollAnimation=function(){this.isAnimating=!1;var t=this.getAnimatingScrollPosition();this.adapter.removeClass(e.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(t)},e.prototype.getAnimatingScrollPosition=function(){var t=this.calculateCurrentTranslateX(),r=this.adapter.getScrollAreaScrollLeft();return this.isRTL()?this.getRTLScroller().getAnimatingScrollPosition(r,t):r-t},e.prototype.rtlScrollerFactory=function(){var t=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(t-1);var r=this.adapter.getScrollAreaScrollLeft();if(r<0)return this.adapter.setScrollAreaScrollLeft(t),new ot(this.adapter);var o=this.adapter.computeScrollAreaClientRect(),n=this.adapter.computeScrollContentClientRect(),s=Math.round(n.right-o.right);return this.adapter.setScrollAreaScrollLeft(t),s===r?new it(this.adapter):new rt(this.adapter)},e.prototype.isRTL=function(){return this.adapter.getScrollContentStyleValue("direction")==="rtl"},e}(X);var nt=function(a){f(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.attachTo=function(t){return new e(t)},e.prototype.initialize=function(){this.area=this.root.querySelector(L.strings.AREA_SELECTOR),this.content=this.root.querySelector(L.strings.CONTENT_SELECTOR)},e.prototype.initialSyncWithDOM=function(){var t=this;this.handleInteraction=function(){t.foundation.handleInteraction()},this.handleTransitionEnd=function(r){t.foundation.handleTransitionEnd(r)},this.area.addEventListener("wheel",this.handleInteraction,u()),this.area.addEventListener("touchstart",this.handleInteraction,u()),this.area.addEventListener("pointerdown",this.handleInteraction,u()),this.area.addEventListener("mousedown",this.handleInteraction,u()),this.area.addEventListener("keydown",this.handleInteraction,u()),this.content.addEventListener("transitionend",this.handleTransitionEnd)},e.prototype.destroy=function(){a.prototype.destroy.call(this),this.area.removeEventListener("wheel",this.handleInteraction,u()),this.area.removeEventListener("touchstart",this.handleInteraction,u()),this.area.removeEventListener("pointerdown",this.handleInteraction,u()),this.area.removeEventListener("mousedown",this.handleInteraction,u()),this.area.removeEventListener("keydown",this.handleInteraction,u()),this.content.removeEventListener("transitionend",this.handleTransitionEnd)},e.prototype.getDefaultFoundation=function(){var t=this,r={eventTargetMatchesSelector:function(o,n){return j(o,n)},addClass:function(o){t.root.classList.add(o)},removeClass:function(o){t.root.classList.remove(o)},addScrollAreaClass:function(o){t.area.classList.add(o)},setScrollAreaStyleProperty:function(o,n){t.area.style.setProperty(o,n)},setScrollContentStyleProperty:function(o,n){t.content.style.setProperty(o,n)},getScrollContentStyleValue:function(o){return window.getComputedStyle(t.content).getPropertyValue(o)},setScrollAreaScrollLeft:function(o){return t.area.scrollLeft=o},getScrollAreaScrollLeft:function(){return t.area.scrollLeft},getScrollContentOffsetWidth:function(){return t.content.offsetWidth},getScrollAreaOffsetWidth:function(){return t.area.offsetWidth},computeScrollAreaClientRect:function(){return t.area.getBoundingClientRect()},computeScrollContentClientRect:function(){return t.content.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return et(document)}};return new L(r)},e.prototype.getScrollPosition=function(){return this.foundation.getScrollPosition()},e.prototype.getScrollContentWidth=function(){return this.content.offsetWidth},e.prototype.incrementScroll=function(t){this.foundation.incrementScroll(t)},e.prototype.scrollTo=function(t){this.foundation.scrollTo(t)},e}(G);var C=class extends z{constructor(t){super(t);this._tabs=[];this._rootElement=b(this._component,i.selectors.ROOT),this._tabScrollElement=b(this._component,i.selectors.TAB_SCROLLER),this._tabScrollAreaElement=b(this._component,i.selectors.TAB_SCROLLER_AREA),this._tabScrollContentElement=b(this._component,i.selectors.TAB_SCROLLER_CONTENT),this._defaultSlotElement=b(this._component,g.selectors.DEFAULT_SLOT),this._prevButtonContainerElement=b(this._component,i.selectors.PREV_BUTTON_CONTAINER),this._prevButtonElement=b(this._component,i.selectors.PREV_BUTTON),this._nextButtonContainerElement=b(this._component,i.selectors.NEXT_BUTTON_CONTAINER),this._nextButtonElement=b(this._component,i.selectors.NEXT_BUTTON)}initializeTabs(t,r){this._tabs=this._getTabs(),this._tabs.length&&(this._tabs.forEach(o=>{o.active=!1,o.stretch=r}),t>=0&&t<this._tabs.length?this._tabs[t].active=!0:this.ensureFocusableTab())}initializeTabScroller(){this._tabScroller=new nt(this._tabScrollElement)}initializeAccessibility(){this._component.hasAttribute("role")||this._component.setAttribute("role","tablist")}destroyTabScroller(){this._tabScroller&&this._tabScroller.destroy()}addTabChangeListener(t){this._defaultSlotElement.addEventListener("slotchange",t)}removeTabChangeListener(t){this._defaultSlotElement.removeEventListener("slotchange",t)}addScrollListener(t){this._tabScrollAreaElement.addEventListener("scroll",t)}getTabIndex(t){return this._tabs.indexOf(t)}getTabCount(){return this._tabs.length}activateTab(t,r){let o=this._getTabByIndex(t);o&&o.activate(r)}deactivateTab(t){let r=this._getTabByIndex(t);r&&r.deactivate()}syncTabIndex(t){let r=this._getTabs(),o=r[t];r.filter(n=>n!==o).forEach(n=>n.setTabIndex(-1))}getTabBounds(t){let r=this._getTabByIndex(t);if(r)return r.computeIndicatorBounds()}setUnderline(t){E(this._rootElement,t,i.classes.UNDERLINED)}setStacked(t){E(this._rootElement,t,i.classes.STACKED)}scrollTo(t){this._tabScroller&&this._tabScroller.scrollTo(t)}getScrollContentWidth(){return this._tabScroller?this._tabScroller.getScrollContentWidth():0}getScrollPosition(){return this._tabScroller?this._tabScroller.getScrollPosition():0}getOffsetWidth(){return this._tabScrollElement.offsetWidth}getTabDimensionsAtIndex(t){let r=this._getTabByIndex(t);return r?r.computeDimensions():{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}}incrementScroll(t){this._tabScroller&&this._tabScroller.incrementScroll(t)}isScrolled(){return this._tabScrollAreaElement.scrollLeft>0}isScrolledEnd(){let t=Math.round(this._tabScrollAreaElement.scrollLeft),r=Math.round(this._tabScrollContentElement.scrollWidth-this._tabScrollElement.offsetWidth);return t>=r}getFocusedTabIndex(){let t=N(this._component.ownerDocument);return this._tabs.findIndex(r=>r===t?!0:!!r.shadowRoot.contains(t))}focusTabAtIndex(t){let r=this._getTabByIndex(t);if(r)return r.focus()}setLayoutMode(t){let r=t==="fixed";E(this._rootElement,r,i.classes.FIXED),this._tabs.forEach(o=>o.stretch=r)}setLayoutAlign(t){switch(O([i.classes.ALIGN_CENTER,i.classes.ALIGN_END],this._rootElement),t){case"center":this._rootElement.classList.add(i.classes.ALIGN_CENTER);break;case"end":this._rootElement.classList.add(i.classes.ALIGN_END);break}}setPreviousButtonVisibility(t){t?this._prevButtonContainerElement.style.removeProperty("display"):this._prevButtonContainerElement.style.display="none"}setPreviousButtonEnabled(t){this._prevButtonElement.disabled=!t}setNextButtonVisibility(t){t?this._nextButtonContainerElement.style.removeProperty("display"):this._nextButtonContainerElement.style.display="none"}setNextButtonEnabled(t){this._nextButtonElement.disabled=!t}addScrollPreviousListener(t,r){this._prevButtonElement.addEventListener(t,r)}addScrollNextListener(t,r){this._nextButtonElement.addEventListener(t,r)}isTabDisabled(t){let r=this._getTabByIndex(t);return r?r.disabled:!0}ensureFocusableTab(){let t=this._getTabs();if(!t.some(o=>o.active)&&t.length){let o=t[0];B(o.setTabIndex)&&t[0].setTabIndex(0)}}_getTabs(){return Array.from(this._component.querySelectorAll(g.elementName))}_getTabByIndex(t){return this._tabs[t]}};var pt='<template><div class="forge-tab-bar" part="root"><div class="forge-tab-bar__scroll-prev-container" part="previous-container"><forge-icon-button part="previous-button"><button type="button" tabindex="-1" aria-label="Scroll left" id="scroll-prev-btn" part="previous-button-element"><forge-icon name="keyboard_arrow_left" part="previous-button-icon"></forge-icon></button></forge-icon-button></div><div class="mdc-tab-scroller" part="tab-scroller"><div class="mdc-tab-scroller__scroll-area" part="scroll-area"><div class="mdc-tab-scroller__scroll-content" part="scroll-content"><slot></slot></div></div></div><div class="forge-tab-bar__scroll-next-container" part="next-container"><forge-icon-button part="next-button"><button type="button" tabindex="-1" aria-label="Scroll right" id="scroll-next-btn" part="next-button-element"><forge-icon name="keyboard_arrow_right" part="next-button-icon"></forge-icon></button></forge-icon-button></div></div></template>',bt='.forge-icon-button{display:-webkit-inline-box;display:inline-flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;font-size:24px;text-decoration:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:48px;height:48px;padding:12px}.forge-icon-button forge-icon,.forge-icon-button img,.forge-icon-button svg{width:24px;height:24px}.forge-icon-button:disabled{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.forge-icon-button:disabled{cursor:default;pointer-events:none}.forge-icon-button__icon{display:inline-block}.forge-icon-button__icon.forge-icon-button__icon--on{display:none}.forge-icon-button--on .forge-icon-button__icon{display:none}.forge-icon-button--on .forge-icon-button__icon.forge-icon-button__icon--on{display:inline-block}@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.forge-icon-button{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity}.forge-icon-button::after,.forge-icon-button::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.forge-icon-button::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.forge-icon-button::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.forge-icon-button.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.forge-icon-button.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.forge-icon-button.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.forge-icon-button.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.forge-icon-button.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.forge-icon-button::after,.forge-icon-button::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.forge-icon-button.mdc-ripple-upgraded::after,.forge-icon-button.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-icon-button.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-icon-button::after,.forge-icon-button::before{background-color:#000;background-color:var(--mdc-ripple-color,var(--mdc-theme-on-surface,#000))}.forge-icon-button.mdc-ripple-surface--hover::before,.forge-icon-button:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-icon-button.mdc-ripple-upgraded--background-focused::before,.forge-icon-button:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-icon-button:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-icon-button:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-icon-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}forge-icon-button{position:relative;display:inline-block;overflow:visible}.forge-icon-button--on{color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5)}.forge-icon-button--on::after,.forge-icon-button--on::before{background-color:#3f51b5;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#3f51b5))}.forge-icon-button--on.mdc-ripple-surface--hover::before,.forge-icon-button--on:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-icon-button--on.mdc-ripple-upgraded--background-focused::before,.forge-icon-button--on:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-icon-button--on:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-icon-button--on:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-icon-button--on.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.forge-icon-button--on::before{background-color:#3f51b5;background-color:var(--mdc-theme-primary,#3f51b5);opacity:.08}.forge-icon-button--dense{width:28px;height:28px;padding:2px;padding:0}.forge-icon-button--dense-1{width:44px;height:44px;padding:10px}.forge-icon-button--dense-2{width:40px;height:40px;padding:8px}.forge-icon-button--dense-3{width:36px;height:36px;padding:6px}.forge-icon-button--dense-4{width:32px;height:32px;padding:4px}.forge-icon-button--dense-5{width:28px;height:28px;padding:2px}.forge-icon-button--dense-6{width:24px;height:24px;padding:0}.forge-icon-button--with-badge forge-badge{z-index:1;z-index:var(--forge-z-index-surface,1);pointer-events:none;--forge-badge-max-width:32px;--forge-badge-border:1px solid transparent}.forge-icon-button--with-badge forge-badge[app-bar-context]{--forge-badge-border:2px solid var(--forge-app-bar-theme-background)}.mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{-webkit-transition:250ms -webkit-transform cubic-bezier(.4, 0, .2, 1);transition:250ms -webkit-transform cubic-bezier(.4, 0, .2, 1);transition:250ms transform cubic-bezier(.4, 0, .2, 1);transition:250ms transform cubic-bezier(.4, 0, .2, 1),250ms -webkit-transform cubic-bezier(.4, 0, .2, 1)}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:-webkit-box;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:-webkit-box;display:flex;-webkit-box-flex:1;flex:1 0 auto;-webkit-transform:none;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{-webkit-box-pack:start;justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{-webkit-box-pack:end;justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{-webkit-box-pack:center;justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}.forge-tab-bar{height:48px;height:var(--forge-tab-bar-height,48px);display:-webkit-box;display:flex;position:relative}.forge-tab-bar--underlined::after{border-bottom-color:#e0e0e0;border-bottom-color:var(--forge-theme-border-color,#e0e0e0);content:"";border-bottom-width:1px;border-bottom-style:solid;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:absolute;bottom:0;left:0;right:0}.forge-tab-bar--align-center .mdc-tab-scroller__scroll-content{-webkit-box-pack:center;justify-content:center}.forge-tab-bar--align-end .mdc-tab-scroller__scroll-content{-webkit-box-pack:end;justify-content:flex-end}.forge-tab-bar--stacked{height:72px;height:var(--forge-tab-bar-height,72px);-webkit-box-align:center;align-items:center}.forge-tab-bar--stacked .mdc-tab-scroller{height:100%}.mdc-tab-scroller{z-index:1;width:100%}.mdc-tab-scroller__scroll-area{height:100%;overflow-x:auto;scrollbar-width:none}:host{display:block;overflow:hidden}:host([hidden]){display:none}',c=class extends K{constructor(){super();Y.define([W,F]),D(this,pt,bt),this._foundation=new y(new C(this))}static get observedAttributes(){return[i.attributes.ACTIVE_TAB,i.attributes.LAYOUT_MODE,i.attributes.LAYOUT_ALIGN,i.attributes.UNDERLINE,i.attributes.AUTO_ACTIVATE,i.attributes.STACKED,i.attributes.SCROLL_BUTTONS,i.attributes.FORCE_SCROLL_BUTTONS]}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,r,o){switch(t){case i.attributes.ACTIVE_TAB:this.activeTab=w(o);break;case i.attributes.LAYOUT_MODE:this.layoutMode=o;break;case i.attributes.LAYOUT_ALIGN:this.layoutAlign=o;break;case i.attributes.UNDERLINE:this.underline=_(o);break;case i.attributes.AUTO_ACTIVATE:this.autoActivate=_(o);break;case i.attributes.STACKED:this.stacked=_(o);break;case i.attributes.SCROLL_BUTTONS:this.scrollButtons=_(o);break;case i.attributes.FORCE_SCROLL_BUTTONS:this.forceScrollButtons=_(o);break}}activateTab(t){this._foundation.activateTab(t)}scrollTabIntoView(t){this._foundation.scrollIntoView(t)}};p([m()],c.prototype,"activeTab",2),p([m()],c.prototype,"layoutMode",2),p([m()],c.prototype,"layoutAlign",2),p([m()],c.prototype,"underline",2),p([m()],c.prototype,"autoActivate",2),p([m()],c.prototype,"stacked",2),p([m()],c.prototype,"scrollButtons",2),p([m()],c.prototype,"forceScrollButtons",2),c=p([P({name:i.elementName,dependencies:[$,q,V]})],c);function ye(){M(c)}export{i as a,Q as b,Z as c,y as d,C as e,c as f,ye as g};
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2018 Google Inc.
|
|
@@ -26,4 +26,4 @@ import{a as g,d as $}from"./chunk.F6DMKNFU.js";import{a as q}from"./chunk.HDHGU4
|
|
|
26
26
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
27
27
|
* THE SOFTWARE.
|
|
28
28
|
*/
|
|
29
|
-
//# sourceMappingURL=chunk.
|
|
29
|
+
//# sourceMappingURL=chunk.4KKMVMPN.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a as E}from"./chunk.4DAIIJ37.js";import{b as f,c as S,f as C}from"./chunk.EC5JFSHR.js";import{b as O}from"./chunk.KZJYLYWN.js";import{a as A}from"./chunk.UWYANU5D.js";import{a as I}from"./chunk.KTGSZEAG.js";import{a as L,b as B}from"./chunk.DL7NX432.js";import{a as w,e as k,g as u}from"./chunk.LJLEPTLU.js";import{f as h,g as _,t as y}from"./chunk.4LA6HEA7.js";import{k as v}from"./chunk.J2M2MXP2.js";import{a as m,b as g,f as c}from"./chunk.MCIQXNKY.js";var D=`${B}button-area`,z={DISABLED:"disabled",IGNORE:"data-forge-ignore",IGNORE_ALT:"forge-ignore"},T={ROOT:"root",BUTTON_SLOT:"button"},R={DISABLED:"forge-button-area--disabled"},N={ROOT:`#${T.ROOT}`,BUTTON_SLOT:"slot[name=button]"},o={elementName:D,attributes:z,ids:T,classes:R,selectors:N};var s=class extends A{constructor(e){super(e);this._rootElement=u(e,o.selectors.ROOT),this._buttonSlotElement=u(e,o.selectors.BUTTON_SLOT)}get root(){return this._rootElement}get unbounded(){return!1}get disabled(){return this.buttonIsDisabled()}destroy(){typeof this._destroyUserInteractionListener=="function"&&(this._destroyUserInteractionListener(),this._destroyUserInteractionListener=void 0)}setDisabled(e){var r;y(this._rootElement,e,o.classes.DISABLED),(r=this._buttonElement)==null||r.toggleAttribute(o.attributes.DISABLED,e)}addListener(e,r){this._rootElement.addEventListener(e,r)}removeListener(e,r){this._rootElement.removeEventListener(e,r)}addSlotChangeListener(e){this._buttonSlotElement.addEventListener("slotchange",e)}removeSlotChangeListener(e){this._buttonSlotElement.removeEventListener("slotchange",e)}startButtonObserver(e){this._buttonElement&&(this._buttonObserver=new MutationObserver(e),this._buttonObserver.observe(this._buttonElement,{attributeFilter:[o.attributes.DISABLED]}))}stopButtonObserver(){this._buttonObserver&&(this._buttonObserver.disconnect(),this._buttonObserver=void 0)}detectSlottedButton(){this._buttonElement=this._buttonSlotElement.assignedElements()[0]}buttonIsDisabled(){var e,r;return(r=(e=this._buttonElement)==null?void 0:e.disabled)!=null?r:!0}requestDisabledButtonFrame(){this._buttonElement&&(this._buttonElement.disabled=!0,requestAnimationFrame(()=>this._buttonElement.disabled=!1))}async createRipple(){if(this._rippleInstance)this._rippleInstance.destroy(),this._rippleInstance=void 0;else{let{userInteraction:e,destroy:r}=await O(this._rootElement);this._destroyUserInteractionListener=r;let{type:l}=await e;if(this._destroyUserInteractionListener=void 0,!this.isConnected)return;if(!this._rippleInstance){let x=g(m({},f.createAdapter(this)),{isSurfaceActive:()=>{var a,i;return this._rootElement.matches(":active")||((i=(a=this._buttonElement)==null?void 0:a.matches(":active"))!=null?i:!1)},isSurfaceDisabled:()=>{var a;return(a=this.disabled)!=null?a:!0},isUnbounded:()=>!!this.unbounded,registerInteractionHandler:(a,i)=>{var d;this._isRootEvent(a)?this._rootElement.addEventListener(a,i,{passive:!0}):(d=this._buttonElement)==null||d.addEventListener(a,i,{passive:!0})},deregisterInteractionHandler:(a,i)=>{var d;this._isRootEvent(a)?this._rootElement.removeEventListener(a,i,{passive:!0}):(d=this._buttonElement)==null||d.removeEventListener(a,i,{passive:!0})},addClass:a=>h(a,this._rootElement),removeClass:a=>_(a,this._rootElement),updateCssVariable:(a,i)=>this._rootElement.style.setProperty(a,i)});this._rippleInstance=new f(this._rootElement,new S(x)),l==="focusin"&&this._rippleInstance.handleFocus()}}}_isRootEvent(e){return["touchstart","pointerdown","mousedown"].includes(e)}};var p=class{constructor(t){this._adapter=t;this._disabled=!1;this._clickListener=e=>this._handleClick(e),this._keydownListener=e=>this._handleKeydown(e),this._pointerdownListener=e=>this._handlePointerdown(e),this._slotListener=()=>this._handleSlotChange()}initialize(){this._adapter.addListener("click",this._clickListener),this._adapter.addListener("keydown",this._keydownListener),this._adapter.addListener("pointerdown",this._pointerdownListener),this._adapter.addSlotChangeListener(this._slotListener),this._adapter.createRipple()}disconnect(){this._adapter.destroy(),this._adapter.removeListener("click",this._clickListener),this._adapter.removeSlotChangeListener(this._slotListener),this._adapter.stopButtonObserver()}_handleClick(t){var r;this._disabled&&t.stopPropagation(),((r=window.getSelection())==null?void 0:r.type)==="Range"&&t.stopPropagation(),this._shouldIgnoreEvent(t)&&t.stopPropagation()}_handleKeydown(t){t.key!==" "&&t.key!=="Enter"||this._shouldIgnoreEvent(t)&&t.stopPropagation()}_handlePointerdown(t){this._disabled||this._shouldIgnoreEvent(t)&&this._adapter.requestDisabledButtonFrame()}_handleSlotChange(){this._adapter.stopButtonObserver(),this._adapter.detectSlottedButton(),this._adapter.startButtonObserver(()=>this._handleButtonDisabled()),this._adapter.buttonIsDisabled()?this.disabled=!0:this._disabled&&this._adapter.setDisabled(!0)}_handleButtonDisabled(){this.disabled=this._adapter.buttonIsDisabled()}_shouldIgnoreEvent(t){return E(t).some(r=>r.nodeType===1&&(r.hasAttribute(o.attributes.IGNORE)||r.hasAttribute(o.attributes.IGNORE_ALT)))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(o.attributes.DISABLED,this._disabled))}};var F='<template><div class="forge-button-area" id="root" part="root"><div class="forge-button-area__button" id="button" part="button"><slot name="button"></slot></div><slot></slot></div></template>',M='@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface::after,.mdc-ripple-surface::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{--mdc-ripple-color:var(--mdc-theme-on-surface)}.forge-button-area{overflow:hidden}.forge-button-area:not(.forge-button-area--disabled).forge-button-area{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;cursor:pointer}.forge-button-area:not(.forge-button-area--disabled).forge-button-area::after,.forge-button-area:not(.forge-button-area--disabled).forge-button-area::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.forge-button-area:not(.forge-button-area--disabled).forge-button-area::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.forge-button-area:not(.forge-button-area--disabled).forge-button-area::after,.forge-button-area:not(.forge-button-area--disabled).forge-button-area::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area::after,.forge-button-area:not(.forge-button-area--disabled).forge-button-area::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-surface--hover::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded--background-focused::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-button-area:not(.forge-button-area--disabled).forge-button-area:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated::before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity, .12)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated::after,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated.mdc-ripple-surface--hover::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity, .16)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated.mdc-ripple-upgraded--background-focused::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-focus-opacity, .24)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-press-opacity, .24)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected::before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity, .08)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected::after,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected.mdc-ripple-surface--hover::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity, .12)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected.mdc-ripple-upgraded--background-focused::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-focus-opacity, .2)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-press-opacity, .2)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.forge-button-area__button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}:host{display:block}:host([hidden]){display:none}',n=class extends HTMLElement{constructor(){super();k(this,F,M),this._foundation=new p(new s(this))}static get observedAttributes(){return[o.attributes.DISABLED]}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(e,r,l){switch(e){case o.attributes.DISABLED:this.disabled=v(l);break}}};c([I()],n.prototype,"disabled",2),n=c([L({name:o.elementName,dependencies:[C]})],n);function se(){w(n)}export{o as a,s as b,p as c,n as d,se as e};
|
|
7
|
-
//# sourceMappingURL=chunk.
|
|
6
|
+
import{a as E}from"./chunk.4DAIIJ37.js";import{b as f,c as S,f as C}from"./chunk.EC5JFSHR.js";import{c as O}from"./chunk.KYH5GKVI.js";import{a as A}from"./chunk.UWYANU5D.js";import{a as I}from"./chunk.KTGSZEAG.js";import{a as L,b as B}from"./chunk.DL7NX432.js";import{a as w,e as k,g as u}from"./chunk.LJLEPTLU.js";import{f as h,g as _,t as y}from"./chunk.4LA6HEA7.js";import{k as v}from"./chunk.J2M2MXP2.js";import{a as m,b as g,f as c}from"./chunk.MCIQXNKY.js";var D=`${B}button-area`,z={DISABLED:"disabled",IGNORE:"data-forge-ignore",IGNORE_ALT:"forge-ignore"},T={ROOT:"root",BUTTON_SLOT:"button"},R={DISABLED:"forge-button-area--disabled"},N={ROOT:`#${T.ROOT}`,BUTTON_SLOT:"slot[name=button]"},o={elementName:D,attributes:z,ids:T,classes:R,selectors:N};var s=class extends A{constructor(e){super(e);this._rootElement=u(e,o.selectors.ROOT),this._buttonSlotElement=u(e,o.selectors.BUTTON_SLOT)}get root(){return this._rootElement}get unbounded(){return!1}get disabled(){return this.buttonIsDisabled()}destroy(){typeof this._destroyUserInteractionListener=="function"&&(this._destroyUserInteractionListener(),this._destroyUserInteractionListener=void 0)}setDisabled(e){var r;y(this._rootElement,e,o.classes.DISABLED),(r=this._buttonElement)==null||r.toggleAttribute(o.attributes.DISABLED,e)}addListener(e,r){this._rootElement.addEventListener(e,r)}removeListener(e,r){this._rootElement.removeEventListener(e,r)}addSlotChangeListener(e){this._buttonSlotElement.addEventListener("slotchange",e)}removeSlotChangeListener(e){this._buttonSlotElement.removeEventListener("slotchange",e)}startButtonObserver(e){this._buttonElement&&(this._buttonObserver=new MutationObserver(e),this._buttonObserver.observe(this._buttonElement,{attributeFilter:[o.attributes.DISABLED]}))}stopButtonObserver(){this._buttonObserver&&(this._buttonObserver.disconnect(),this._buttonObserver=void 0)}detectSlottedButton(){this._buttonElement=this._buttonSlotElement.assignedElements()[0]}buttonIsDisabled(){var e,r;return(r=(e=this._buttonElement)==null?void 0:e.disabled)!=null?r:!0}requestDisabledButtonFrame(){this._buttonElement&&(this._buttonElement.disabled=!0,requestAnimationFrame(()=>this._buttonElement.disabled=!1))}async createRipple(){if(this._rippleInstance)this._rippleInstance.destroy(),this._rippleInstance=void 0;else{let{userInteraction:e,destroy:r}=await O(this._rootElement);this._destroyUserInteractionListener=r;let{type:l}=await e;if(this._destroyUserInteractionListener=void 0,!this.isConnected)return;if(!this._rippleInstance){let x=g(m({},f.createAdapter(this)),{isSurfaceActive:()=>{var a,i;return this._rootElement.matches(":active")||((i=(a=this._buttonElement)==null?void 0:a.matches(":active"))!=null?i:!1)},isSurfaceDisabled:()=>{var a;return(a=this.disabled)!=null?a:!0},isUnbounded:()=>!!this.unbounded,registerInteractionHandler:(a,i)=>{var d;this._isRootEvent(a)?this._rootElement.addEventListener(a,i,{passive:!0}):(d=this._buttonElement)==null||d.addEventListener(a,i,{passive:!0})},deregisterInteractionHandler:(a,i)=>{var d;this._isRootEvent(a)?this._rootElement.removeEventListener(a,i,{passive:!0}):(d=this._buttonElement)==null||d.removeEventListener(a,i,{passive:!0})},addClass:a=>h(a,this._rootElement),removeClass:a=>_(a,this._rootElement),updateCssVariable:(a,i)=>this._rootElement.style.setProperty(a,i)});this._rippleInstance=new f(this._rootElement,new S(x)),l==="focusin"&&this._rippleInstance.handleFocus()}}}_isRootEvent(e){return["touchstart","pointerdown","mousedown"].includes(e)}};var p=class{constructor(t){this._adapter=t;this._disabled=!1;this._clickListener=e=>this._handleClick(e),this._keydownListener=e=>this._handleKeydown(e),this._pointerdownListener=e=>this._handlePointerdown(e),this._slotListener=()=>this._handleSlotChange()}initialize(){this._adapter.addListener("click",this._clickListener),this._adapter.addListener("keydown",this._keydownListener),this._adapter.addListener("pointerdown",this._pointerdownListener),this._adapter.addSlotChangeListener(this._slotListener),this._adapter.createRipple()}disconnect(){this._adapter.destroy(),this._adapter.removeListener("click",this._clickListener),this._adapter.removeSlotChangeListener(this._slotListener),this._adapter.stopButtonObserver()}_handleClick(t){var r;this._disabled&&t.stopPropagation(),((r=window.getSelection())==null?void 0:r.type)==="Range"&&t.stopPropagation(),this._shouldIgnoreEvent(t)&&t.stopPropagation()}_handleKeydown(t){t.key!==" "&&t.key!=="Enter"||this._shouldIgnoreEvent(t)&&t.stopPropagation()}_handlePointerdown(t){this._disabled||this._shouldIgnoreEvent(t)&&this._adapter.requestDisabledButtonFrame()}_handleSlotChange(){this._adapter.stopButtonObserver(),this._adapter.detectSlottedButton(),this._adapter.startButtonObserver(()=>this._handleButtonDisabled()),this._adapter.buttonIsDisabled()?this.disabled=!0:this._disabled&&this._adapter.setDisabled(!0)}_handleButtonDisabled(){this.disabled=this._adapter.buttonIsDisabled()}_shouldIgnoreEvent(t){return E(t).some(r=>r.nodeType===1&&(r.hasAttribute(o.attributes.IGNORE)||r.hasAttribute(o.attributes.IGNORE_ALT)))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(o.attributes.DISABLED,this._disabled))}};var F='<template><div class="forge-button-area" id="root" part="root"><div class="forge-button-area__button" id="button" part="button"><slot name="button"></slot></div><slot></slot></div></template>',M='@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface::after,.mdc-ripple-surface::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{--mdc-ripple-color:var(--mdc-theme-on-surface)}.forge-button-area{overflow:hidden}.forge-button-area:not(.forge-button-area--disabled).forge-button-area{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;cursor:pointer}.forge-button-area:not(.forge-button-area--disabled).forge-button-area::after,.forge-button-area:not(.forge-button-area--disabled).forge-button-area::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.forge-button-area:not(.forge-button-area--disabled).forge-button-area::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.forge-button-area:not(.forge-button-area--disabled).forge-button-area::after,.forge-button-area:not(.forge-button-area--disabled).forge-button-area::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area::after,.forge-button-area:not(.forge-button-area--disabled).forge-button-area::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-surface--hover::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded--background-focused::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-button-area:not(.forge-button-area--disabled).forge-button-area:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated::before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity, .12)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated::after,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated.mdc-ripple-surface--hover::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity, .16)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated.mdc-ripple-upgraded--background-focused::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-focus-opacity, .24)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-press-opacity, .24)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected::before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity, .08)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected::after,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected.mdc-ripple-surface--hover::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity, .12)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected.mdc-ripple-upgraded--background-focused::before,.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-focus-opacity, .2)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-press-opacity, .2)}.forge-button-area:not(.forge-button-area--disabled).forge-button-area--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.forge-button-area__button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}:host{display:block}:host([hidden]){display:none}',n=class extends HTMLElement{constructor(){super();k(this,F,M),this._foundation=new p(new s(this))}static get observedAttributes(){return[o.attributes.DISABLED]}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(e,r,l){switch(e){case o.attributes.DISABLED:this.disabled=v(l);break}}};c([I()],n.prototype,"disabled",2),n=c([L({name:o.elementName,dependencies:[C]})],n);function se(){w(n)}export{o as a,s as b,p as c,n as d,se as e};
|
|
7
|
+
//# sourceMappingURL=chunk.5SM7UG6C.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a as C,d as h}from"./chunk.
|
|
7
|
-
//# sourceMappingURL=chunk.
|
|
6
|
+
import{a as C,d as h}from"./chunk.TMEYQXRR.js";import{a as A}from"./chunk.E3K6KM57.js";import{o as B}from"./chunk.MZLPUI6R.js";import{d as M}from"./chunk.TEHQWMFI.js";import{d as _,l as b}from"./chunk.WHQZNZHW.js";import{a as f}from"./chunk.UWYANU5D.js";import{a as d}from"./chunk.KTGSZEAG.js";import{a as u,b as I}from"./chunk.DL7NX432.js";import{a,d as s,h as l,l as c}from"./chunk.LJLEPTLU.js";import{a as m,f as p}from"./chunk.MCIQXNKY.js";var n=class extends f{constructor(o){super(o)}initialize(){this._menuElement=l(this._component,C.elementName)}setMenuOptions(o){this._menuElement.options=o}};var i=class{constructor(e){this._adapter=e;this._options=[];this._isInitialized=!1}initialize(){this._adapter.initialize(),this._adapter.setMenuOptions(this._options),this._isInitialized=!0}disconnect(){this._isInitialized=!1}get options(){return this._options}set options(e){this._options=e.map(o=>m({},o)),this._isInitialized&&this._adapter.setMenuOptions(e)}};var g=`${I}app-bar-help-button`,O={elementName:g};var x='<template><forge-icon-button><forge-menu placement="bottom-end"><button type="button" aria-label="Open help menu"><forge-icon name="help"></forge-icon></button></forge-menu><forge-tooltip delay="500" position="bottom">Help</forge-tooltip></forge-icon-button></template>',t=class extends c{constructor(){super();_.define(B),this._foundation=new i(new n(this))}initializedCallback(){s(this,x)}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}};p([d()],t.prototype,"options",2),t=p([u({name:O.elementName,dependencies:[h,A,M,b]})],t);function W(){a(t)}export{n as a,i as b,O as c,t as d,W as e};
|
|
7
|
+
//# sourceMappingURL=chunk.6DVJ22IK.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a as s,f as D,g as L,h as y}from"./chunk.
|
|
7
|
-
//# sourceMappingURL=chunk.
|
|
6
|
+
import{a as s,f as D,g as L,h as y}from"./chunk.CL4FTBLR.js";import{b as A}from"./chunk.SGTKZRDH.js";import{d as C}from"./chunk.UNFOIEF6.js";import{b as N}from"./chunk.WEE3TIAW.js";import{c as v}from"./chunk.K57IO236.js";import{e as E}from"./chunk.AJTQHK25.js";import{d as f}from"./chunk.B3LPXCVL.js";import{b as x}from"./chunk.EOZITZSP.js";import{e as b}from"./chunk.WCSVKQR2.js";import{a as S}from"./chunk.E3K6KM57.js";import{a as c}from"./chunk.KTGSZEAG.js";import{a as _,b as h}from"./chunk.DL7NX432.js";import{a as T,e as u}from"./chunk.LJLEPTLU.js";import{k as g}from"./chunk.J2M2MXP2.js";import{a as m,f as a}from"./chunk.MCIQXNKY.js";var O=`${h}select-dropdown`,w={TARGET:"target",SELECTED_TEXT_TARGET:"selected-text-target",SYNC_SELECTED_TEXT:"sync-selected-text"},B=m({},w),M={SCROLLED_BOTTOM:`${O}-scrolled-bottom`},o={elementName:O,attributes:B,events:M};var d=class extends D{constructor(t){super(t);this._syncSelectedText=!1;this._originalTargetText="";this._targetDisconnectedListener=()=>this._onTargetDisconnected()}initialize(){this._tryAttach(),super.initialize()}disconnect(){super.disconnect(),this._adapter.isAttached()&&this._detach()}_onDropdownScrollEnd(){this._adapter.emitHostEvent(o.events.SCROLLED_BOTTOM)}_applyValue(t){super._applyValue(t),this._applySelection()}_applySelection(){if(super._applySelection(),this._syncSelectedText||typeof this._selectedTextBuilder=="function"){let t=this._getSelectedText();t||(t=this._originalTargetText),this._adapter.setTargetText(t||"",this._selectedTextTarget)}}_tryAttach(){this._adapter.attach(this._target),this._adapter.isAttached()&&(this._targetDisconnectedDestructor=this._adapter.setTargetDisconnectedListener(this._targetDisconnectedListener),this._originalTargetText=this._adapter.getTargetText(this._selectedTextTarget),this.initializeTarget())}_detach(){this._adapter.detach(),this._targetDisconnectedDestructor&&(this._targetDisconnectedDestructor(),this._targetDisconnectedDestructor=void 0)}_onTargetDisconnected(){this._adapter.detach()}get target(){return this._target}set target(t){this._target!==t&&(this._target=t,this._adapter.isAttached()&&this._detach(),this._tryAttach())}get selectedTextTarget(){return this._selectedTextTarget}set selectedTextTarget(t){this._selectedTextTarget!==t&&(this._selectedTextTarget=t)}get syncSelectedText(){return this._syncSelectedText}set syncSelectedText(t){this._syncSelectedText!==t&&(this._syncSelectedText=t)}};var l=class extends y{constructor(e){super(e)}initializeAccessibility(){this._targetElement.setAttribute("role","listbox"),this._targetElement.setAttribute("aria-live","polite"),this._targetElement.setAttribute("aria-haspopup","true"),this._targetElement.setAttribute("aria-expanded","false")}addClickListener(e){this._targetElement.addEventListener("click",e)}removeClickListener(e){this._targetElement&&this._targetElement.removeEventListener("click",e)}addTargetListener(e,t){let i,r;e==="keydown"&&(i=!1,r=!0),this._targetElement.addEventListener(e,t,{passive:i,capture:r})}removeTargetListener(e,t){this._targetElement&&this._targetElement.removeEventListener(e,t)}updateActiveDescendant(e){e?this._targetElement.setAttribute("aria-activedescendant",e):this._targetElement.removeAttribute("aria-activedescendant")}open(e){super.open(e),this._targetElement.setAttribute("aria-controls",`list-dropdown-popup-${e.id}`),this._targetElement.setAttribute("aria-expanded","true")}close(){this._targetElement.setAttribute("aria-expanded","false"),this._targetElement.removeAttribute("aria-activedescendant"),this._targetElement.removeAttribute("aria-controls"),super.close()}attach(e){let r=(this._component.getRootNode()||HTMLDocument||this._component.ownerDocument||document).querySelector(e);r&&(this._targetElement=r)}detach(){this._targetElement=void 0}setTargetDisconnectedListener(e){if(!this._targetElement||!this._targetElement.parentElement)return()=>{};let t=new MutationObserver(i=>{i.some(I=>Array.from(I.removedNodes).some(R=>R===this._targetElement))&&(t.disconnect(),e())});return t.observe(this._targetElement.parentElement,{childList:!0}),()=>t.disconnect()}isAttached(){return!!this._targetElement}setTargetText(e,t){let i=this._targetElement;if(t){let r=this._getElementBySelector(t);r&&(i=r)}i&&(i.textContent=e)}getTargetText(e){let t=e?this._getElementBySelector(e):this._targetElement;return t?t.innerText:""}_getElementBySelector(e){return this._targetElement.querySelector(e)||this._getRootNode().querySelector(e)}_getRootNode(){return this._component.getRootNode()||this._component.ownerDocument||document}};var P="<template></template>",H=":host{display:none}",n=class extends L{constructor(){super();u(this,P,H),this._foundation=new d(new l(this))}static get observedAttributes(){return[o.attributes.TARGET,o.attributes.SELECTED_TEXT_TARGET,o.attributes.SYNC_SELECTED_TEXT,s.attributes.VALUE,s.attributes.MULTIPLE,s.attributes.OBSERVE_SCROLL,s.attributes.OBSERVE_SCROLL_THRESHOLD,s.attributes.POPUP_CLASSES,s.attributes.OPTION_LIMIT,s.attributes.SYNC_POPUP_WIDTH]}attributeChangedCallback(t,i,r){switch(t){case o.attributes.TARGET:this.target=r;return;case o.attributes.SELECTED_TEXT_TARGET:this.selectedTextTarget=r;return;case o.attributes.SYNC_SELECTED_TEXT:this.syncSelectedText=g(r);return}super.attributeChangedCallback(t,i,r)}};a([c()],n.prototype,"target",2),a([c()],n.prototype,"selectedTextTarget",2),a([c()],n.prototype,"syncSelectedText",2),n=a([_({name:o.elementName,dependencies:[C,A,b,v,E,f,N,x,S]})],n);function pt(){T(n)}export{o as a,d as b,l as c,n as d,pt as e};
|
|
7
|
+
//# sourceMappingURL=chunk.6NARYF7U.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/select/select-dropdown/select-dropdown-constants.ts", "../../src/select/select-dropdown/select-dropdown-foundation.ts", "../../src/select/select-dropdown/select-dropdown-adapter.ts", "../../src/select/select-dropdown/select-dropdown.ts", "../../src/select/select-dropdown/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../../constants';\r\n\r\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}select-dropdown`;\r\n\r\nconst observedAttributes = {\r\n TARGET: 'target',\r\n SELECTED_TEXT_TARGET: 'selected-text-target',\r\n SYNC_SELECTED_TEXT: 'sync-selected-text'\r\n};\r\n\r\nconst attributes = {\r\n ...observedAttributes\r\n};\r\n\r\nconst events = {\r\n SCROLLED_BOTTOM: `${elementName}-scrolled-bottom`\r\n};\r\n\r\nexport const SELECT_DROPDOWN_CONSTANTS = {\r\n elementName,\r\n attributes,\r\n events\r\n};\r\n", "import { ISelectDropdownAdapter } from './select-dropdown-adapter';\r\nimport { BaseSelectFoundation, IBaseSelectFoundation } from '../core/base-select-foundation';\r\nimport { SELECT_DROPDOWN_CONSTANTS } from './select-dropdown-constants';\r\n\r\nexport interface ISelectDropdownFoundation extends IBaseSelectFoundation {\r\n target: string;\r\n selectedTextTarget: string;\r\n syncSelectedText: boolean;\r\n}\r\n\r\nexport class SelectDropdownFoundation extends BaseSelectFoundation<ISelectDropdownAdapter> implements ISelectDropdownFoundation {\r\n private _target: string;\r\n private _selectedTextTarget: string;\r\n private _syncSelectedText = false;\r\n private _originalTargetText = '';\r\n private _targetDisconnectedListener: () => void;\r\n private _targetDisconnectedDestructor: () => void;\r\n\r\n constructor(adapter: ISelectDropdownAdapter) {\r\n super(adapter);\r\n this._targetDisconnectedListener = () => this._onTargetDisconnected();\r\n }\r\n\r\n public initialize(): void {\r\n this._tryAttach();\r\n super.initialize();\r\n }\r\n\r\n public disconnect(): void {\r\n super.disconnect();\r\n if (this._adapter.isAttached()) {\r\n this._detach();\r\n }\r\n }\r\n\r\n protected _onDropdownScrollEnd(): void {\r\n this._adapter.emitHostEvent(SELECT_DROPDOWN_CONSTANTS.events.SCROLLED_BOTTOM);\r\n }\r\n\r\n protected _applyValue(value: string | string[]): void {\r\n super._applyValue(value);\r\n this._applySelection();\r\n }\r\n\r\n protected _applySelection(): void {\r\n super._applySelection();\r\n if (this._syncSelectedText || typeof this._selectedTextBuilder === 'function') {\r\n let text = this._getSelectedText();\r\n if (!text) {\r\n text = this._originalTargetText;\r\n }\r\n this._adapter.setTargetText(text || '', this._selectedTextTarget);\r\n }\r\n }\r\n\r\n private _tryAttach(): void {\r\n this._adapter.attach(this._target);\r\n if (this._adapter.isAttached()) {\r\n this._targetDisconnectedDestructor = this._adapter.setTargetDisconnectedListener(this._targetDisconnectedListener);\r\n this._originalTargetText = this._adapter.getTargetText(this._selectedTextTarget);\r\n this.initializeTarget();\r\n }\r\n }\r\n\r\n private _detach(): void {\r\n this._adapter.detach();\r\n if (this._targetDisconnectedDestructor) {\r\n this._targetDisconnectedDestructor();\r\n this._targetDisconnectedDestructor = undefined as any;\r\n }\r\n }\r\n\r\n private _onTargetDisconnected(): void {\r\n this._adapter.detach();\r\n }\r\n\r\n public get target(): string {\r\n return this._target;\r\n }\r\n public set target(value: string) {\r\n if (this._target !== value) {\r\n this._target = value;\r\n if (this._adapter.isAttached()) {\r\n this._detach();\r\n }\r\n this._tryAttach();\r\n }\r\n }\r\n\r\n public get selectedTextTarget(): string {\r\n return this._selectedTextTarget;\r\n }\r\n public set selectedTextTarget(value: string) {\r\n if (this._selectedTextTarget !== value) {\r\n this._selectedTextTarget = value;\r\n }\r\n }\r\n\r\n public get syncSelectedText(): boolean {\r\n return this._syncSelectedText;\r\n }\r\n public set syncSelectedText(value: boolean) {\r\n if (this._syncSelectedText !== value) {\r\n this._syncSelectedText = value;\r\n }\r\n }\r\n}\r\n", "import { ISelectDropdownComponent } from './select-dropdown';\r\nimport { BaseSelectAdapter, IBaseSelectAdapter } from '../core/base-select-adapter';\r\nimport { IListDropdownConfig } from '../../list-dropdown/list-dropdown-constants';\r\n\r\nexport interface ISelectDropdownAdapter extends IBaseSelectAdapter {\r\n attach(selector: string): void;\r\n detach(): void;\r\n setTargetDisconnectedListener(cb: () => void): () => void;\r\n isAttached(): boolean;\r\n setTargetText(text: string, selector: string): void;\r\n getTargetText(selector: string): string;\r\n}\r\n\r\nexport class SelectDropdownAdapter extends BaseSelectAdapter implements ISelectDropdownAdapter {\r\n constructor(component: ISelectDropdownComponent) {\r\n super(component);\r\n }\r\n\r\n public initializeAccessibility(): void {\r\n this._targetElement.setAttribute('role', 'listbox');\r\n this._targetElement.setAttribute('aria-live', 'polite');\r\n this._targetElement.setAttribute('aria-haspopup', 'true');\r\n this._targetElement.setAttribute('aria-expanded', 'false');\r\n }\r\n\r\n public addClickListener(listener: (evt: Event) => void): void {\r\n this._targetElement.addEventListener('click', listener);\r\n }\r\n\r\n public removeClickListener(listener: (evt: Event) => void): void {\r\n if (this._targetElement) {\r\n this._targetElement.removeEventListener('click', listener);\r\n }\r\n }\r\n\r\n public addTargetListener(type: string, listener: (evt: Event) => void): void {\r\n let passive: boolean | undefined;\r\n let capture: boolean | undefined;\r\n \r\n if (type === 'keydown') {\r\n // We don't use a passive keydown listener because we are preventing default in this event and Angular doesn't like that\r\n // We need to use capturing to ensure that we get to this event before zone.js does\r\n passive = false;\r\n capture = true;\r\n }\r\n\r\n this._targetElement.addEventListener(type, listener, { passive, capture });\r\n }\r\n\r\n public removeTargetListener(type: string, listener: (evt: Event) => void): void {\r\n if (this._targetElement) {\r\n this._targetElement.removeEventListener(type, listener);\r\n }\r\n }\r\n\r\n public updateActiveDescendant(id: string): void {\r\n if (id) {\r\n this._targetElement.setAttribute('aria-activedescendant', id);\r\n } else {\r\n this._targetElement.removeAttribute('aria-activedescendant');\r\n }\r\n }\r\n\r\n public open(config: IListDropdownConfig): void {\r\n super.open(config);\r\n this._targetElement.setAttribute('aria-controls', `list-dropdown-popup-${config.id}`);\r\n this._targetElement.setAttribute('aria-expanded', 'true');\r\n }\r\n\r\n public close(): void {\r\n this._targetElement.setAttribute('aria-expanded', 'false');\r\n this._targetElement.removeAttribute('aria-activedescendant');\r\n this._targetElement.removeAttribute('aria-controls');\r\n super.close();\r\n }\r\n\r\n public attach(selector: string): void {\r\n const rootNode = this._component.getRootNode() as ShadowRoot || HTMLDocument;\r\n const doc = rootNode || this._component.ownerDocument || document;\r\n const element = doc.querySelector(selector) as HTMLElement;\r\n if (element) {\r\n this._targetElement = element;\r\n }\r\n }\r\n\r\n public detach(): void {\r\n this._targetElement = undefined as any;\r\n }\r\n\r\n public setMultiple(multiple: boolean): void {\r\n if (!this._targetElement) {\r\n return;\r\n }\r\n if (multiple) {\r\n this._targetElement.setAttribute('aria-multiselectable', 'true');\r\n } else {\r\n this._targetElement.removeAttribute('aria-multiselectable');\r\n }\r\n }\r\n\r\n public setTargetDisconnectedListener(cb: () => void): () => void {\r\n if (!this._targetElement || !this._targetElement.parentElement) {\r\n return () => {};\r\n }\r\n const observer = new MutationObserver(mutations => {\r\n const isTargetRemoved = mutations.some(mutation => {\r\n return Array.from(mutation.removedNodes).some(node => node === this._targetElement);\r\n });\r\n if (isTargetRemoved) {\r\n observer.disconnect();\r\n cb();\r\n }\r\n });\r\n observer.observe(this._targetElement.parentElement, { childList: true });\r\n return () => observer.disconnect();\r\n }\r\n\r\n public isAttached(): boolean {\r\n return !!this._targetElement;\r\n }\r\n\r\n public setTargetText(text: string, selector: string): void {\r\n let target: Element = this._targetElement;\r\n if (selector) {\r\n const element = this._getElementBySelector(selector);\r\n if (element) {\r\n target = element;\r\n }\r\n }\r\n if (target) {\r\n target.textContent = text;\r\n }\r\n }\r\n\r\n public getTargetText(selector: string): string {\r\n const element = selector ? this._getElementBySelector(selector) : this._targetElement;\r\n return element ? element.innerText : '';\r\n }\r\n\r\n private _getElementBySelector(selector: string): HTMLElement | null {\r\n return this._targetElement.querySelector(selector) || this._getRootNode().querySelector(selector);\r\n }\r\n\r\n private _getRootNode(): ShadowRoot | HTMLDocument {\r\n return (this._component.getRootNode() as ShadowRoot | HTMLDocument) || this._component.ownerDocument || document;\r\n }\r\n}\r\n", "import { CustomElement, FoundationProperty, attachShadowTemplate, coerceBoolean } from '@tylertech/forge-core';\r\n\r\nimport { SelectDropdownFoundation } from './select-dropdown-foundation';\r\nimport { SELECT_DROPDOWN_CONSTANTS } from './select-dropdown-constants';\r\nimport { IBaseSelectComponent, BaseSelectComponent } from '../core/base-select';\r\nimport { BASE_SELECT_CONSTANTS } from '../core/base-select-constants';\r\nimport { SelectDropdownAdapter } from './select-dropdown-adapter';\r\nimport { OptionComponent } from '../option';\r\nimport { OptionGroupComponent } from '../option-group';\r\nimport { PopupComponent } from '../../popup';\r\nimport { ListComponent, ListItemComponent } from '../../list';\r\nimport { CircularProgressComponent } from '../../circular-progress';\r\nimport { ScaffoldComponent } from '../../scaffold';\r\nimport { ToolbarComponent } from '../../toolbar';\r\nimport { IconButtonComponent } from '../../icon-button';\r\n\r\nconst template = '<template></template>';\r\nconst styles = ':host{display:none}';\r\n\r\nexport interface ISelectDropdownComponent extends IBaseSelectComponent {\r\n target: string;\r\n selectedTextTarget: string;\r\n syncSelectedText: boolean;\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n 'forge-select-dropdown': ISelectDropdownComponent;\r\n }\r\n\r\n interface HTMLElementEventMap {\r\n 'forge-select-dropdown-scrolled-bottom': CustomEvent<void>;\r\n }\r\n}\r\n\r\n/**\r\n * The web component class behind the `<forge-select-dropdown>` custom element.\r\n * \r\n * @tag forge-select-dropdown\r\n */\r\n@CustomElement({\r\n name: SELECT_DROPDOWN_CONSTANTS.elementName,\r\n dependencies: [\r\n OptionComponent,\r\n OptionGroupComponent,\r\n PopupComponent,\r\n ListComponent,\r\n ListItemComponent,\r\n CircularProgressComponent,\r\n ScaffoldComponent,\r\n ToolbarComponent,\r\n IconButtonComponent\r\n ]\r\n})\r\nexport class SelectDropdownComponent extends BaseSelectComponent<SelectDropdownFoundation> implements ISelectDropdownComponent {\r\n public static get observedAttributes(): string[] {\r\n return [\r\n SELECT_DROPDOWN_CONSTANTS.attributes.TARGET,\r\n SELECT_DROPDOWN_CONSTANTS.attributes.SELECTED_TEXT_TARGET,\r\n SELECT_DROPDOWN_CONSTANTS.attributes.SYNC_SELECTED_TEXT,\r\n BASE_SELECT_CONSTANTS.attributes.VALUE,\r\n BASE_SELECT_CONSTANTS.attributes.MULTIPLE,\r\n BASE_SELECT_CONSTANTS.attributes.OBSERVE_SCROLL,\r\n BASE_SELECT_CONSTANTS.attributes.OBSERVE_SCROLL_THRESHOLD,\r\n BASE_SELECT_CONSTANTS.attributes.POPUP_CLASSES,\r\n BASE_SELECT_CONSTANTS.attributes.OPTION_LIMIT,\r\n BASE_SELECT_CONSTANTS.attributes.SYNC_POPUP_WIDTH\r\n ];\r\n }\r\n\r\n constructor() {\r\n super();\r\n attachShadowTemplate(this, template, styles);\r\n this._foundation = new SelectDropdownFoundation(new SelectDropdownAdapter(this));\r\n }\r\n\r\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\r\n switch (name) {\r\n case SELECT_DROPDOWN_CONSTANTS.attributes.TARGET:\r\n this.target = newValue;\r\n return;\r\n case SELECT_DROPDOWN_CONSTANTS.attributes.SELECTED_TEXT_TARGET:\r\n this.selectedTextTarget = newValue;\r\n return;\r\n case SELECT_DROPDOWN_CONSTANTS.attributes.SYNC_SELECTED_TEXT:\r\n this.syncSelectedText = coerceBoolean(newValue);\r\n return;\r\n }\r\n super.attributeChangedCallback(name, oldValue, newValue);\r\n }\r\n\r\n /** Sets the target element CSS selector */\r\n @FoundationProperty()\r\n public declare target: string;\r\n\r\n /** Sets the selected text element CSS selector */\r\n @FoundationProperty()\r\n public declare selectedTextTarget: string;\r\n\r\n /** Controls whether the selected text is synchronized to the target elements' text content. Default is false. */\r\n @FoundationProperty()\r\n public declare syncSelectedText: boolean;\r\n}\r\n", "import { defineCustomElement } from '@tylertech/forge-core';\r\n\r\nimport { SelectDropdownComponent } from './select-dropdown';\r\n\r\nexport * from './select-dropdown-adapter';\r\nexport * from './select-dropdown-constants';\r\nexport * from './select-dropdown-foundation';\r\nexport * from './select-dropdown';\r\n\r\nexport function defineSelectDropdownComponent(): void {\r\n defineCustomElement(SelectDropdownComponent);\r\n}\r\n"],
|
|
5
|
-
"mappings": "koBAEA,IAAMA,EAA2C,GAAGC,mBAE9CC,EAAqB,CACzB,OAAQ,SACR,qBAAsB,uBACtB,mBAAoB,oBACtB,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAS,CACb,gBAAiB,GAAGL,mBACtB,EAEaM,EAA4B,CACvC,YAAAN,EACA,WAAAG,EACA,OAAAE,CACF,ECZO,IAAME,EAAN,cAAuCC,CAAkF,CAQ9H,YAAYC,EAAiC,CAC3C,MAAMA,CAAO,EANf,KAAQ,kBAAoB,GAC5B,KAAQ,oBAAsB,GAM5B,KAAK,4BAA8B,IAAM,KAAK,sBAAsB,CACtE,CAEO,YAAmB,CACxB,KAAK,WAAW,EAChB,MAAM,WAAW,CACnB,CAEO,YAAmB,CACxB,MAAM,WAAW,EACb,KAAK,SAAS,WAAW,GAC3B,KAAK,QAAQ,CAEjB,CAEU,sBAA6B,CACrC,KAAK,SAAS,cAAcC,EAA0B,OAAO,eAAe,CAC9E,CAEU,YAAYC,EAAgC,CACpD,MAAM,YAAYA,CAAK,EACvB,KAAK,gBAAgB,CACvB,CAEU,iBAAwB,CAEhC,GADA,MAAM,gBAAgB,EAClB,KAAK,mBAAqB,OAAO,KAAK,sBAAyB,WAAY,CAC7E,IAAIC,EAAO,KAAK,iBAAiB,EAC5BA,IACHA,EAAO,KAAK,qBAEd,KAAK,SAAS,cAAcA,GAAQ,GAAI,KAAK,mBAAmB,CAClE,CACF,CAEQ,YAAmB,CACzB,KAAK,SAAS,OAAO,KAAK,OAAO,EAC7B,KAAK,SAAS,WAAW,IAC3B,KAAK,8BAAgC,KAAK,SAAS,8BAA8B,KAAK,2BAA2B,EACjH,KAAK,oBAAsB,KAAK,SAAS,cAAc,KAAK,mBAAmB,EAC/E,KAAK,iBAAiB,EAE1B,CAEQ,SAAgB,CACtB,KAAK,SAAS,OAAO,EACjB,KAAK,gCACP,KAAK,8BAA8B,EACnC,KAAK,8BAAgC,OAEzC,CAEQ,uBAA8B,CACpC,KAAK,SAAS,OAAO,CACvB,CAEA,IAAW,QAAiB,CAC1B,OAAO,KAAK,OACd,CACA,IAAW,OAAOD,EAAe,CAC3B,KAAK,UAAYA,IACnB,KAAK,QAAUA,EACX,KAAK,SAAS,WAAW,GAC3B,KAAK,QAAQ,EAEf,KAAK,WAAW,EAEpB,CAEA,IAAW,oBAA6B,CACtC,OAAO,KAAK,mBACd,CACA,IAAW,mBAAmBA,EAAe,CACvC,KAAK,sBAAwBA,IAC/B,KAAK,oBAAsBA,EAE/B,CAEA,IAAW,kBAA4B,CACrC,OAAO,KAAK,iBACd,CACA,IAAW,iBAAiBA,EAAgB,CACtC,KAAK,oBAAsBA,IAC7B,KAAK,kBAAoBA,EAE7B,CACF,EC7FO,IAAME,EAAN,cAAoCC,CAAoD,CAC7F,YAAYC,EAAqC,CAC/C,MAAMA,CAAS,CACjB,CAEO,yBAAgC,CACrC,KAAK,eAAe,aAAa,OAAQ,SAAS,EAClD,KAAK,eAAe,aAAa,YAAa,QAAQ,EACtD,KAAK,eAAe,aAAa,gBAAiB,MAAM,EACxD,KAAK,eAAe,aAAa,gBAAiB,OAAO,CAC3D,CAEO,iBAAiBC,EAAsC,CAC5D,KAAK,eAAe,iBAAiB,QAASA,CAAQ,CACxD,CAEO,oBAAoBA,EAAsC,CAC3D,KAAK,gBACP,KAAK,eAAe,oBAAoB,QAASA,CAAQ,CAE7D,CAEO,kBAAkBC,EAAcD,EAAsC,CAC3E,IAAIE,EACAC,EAEAF,IAAS,YAGXC,EAAU,GACVC,EAAU,IAGZ,KAAK,eAAe,iBAAiBF,EAAMD,EAAU,CAAE,QAAAE,EAAS,QAAAC,CAAQ,CAAC,CAC3E,CAEO,qBAAqBF,EAAcD,EAAsC,CAC1E,KAAK,gBACP,KAAK,eAAe,oBAAoBC,EAAMD,CAAQ,CAE1D,CAEO,uBAAuBI,EAAkB,CAC1CA,EACF,KAAK,eAAe,aAAa,wBAAyBA,CAAE,EAE5D,KAAK,eAAe,gBAAgB,uBAAuB,CAE/D,CAEO,KAAKC,EAAmC,CAC7C,MAAM,KAAKA,CAAM,EACjB,KAAK,eAAe,aAAa,gBAAiB,uBAAuBA,EAAO,IAAI,EACpF,KAAK,eAAe,aAAa,gBAAiB,MAAM,CAC1D,CAEO,OAAc,CACnB,KAAK,eAAe,aAAa,gBAAiB,OAAO,EACzD,KAAK,eAAe,gBAAgB,uBAAuB,EAC3D,KAAK,eAAe,gBAAgB,eAAe,EACnD,MAAM,MAAM,CACd,CAEO,OAAOC,EAAwB,CAGpC,IAAMC,GAFW,KAAK,WAAW,YAAY,GAAmB,cACxC,KAAK,WAAW,eAAiB,UACrC,cAAcD,CAAQ,EACtCC,IACF,KAAK,eAAiBA,EAE1B,CAEO,QAAe,CACpB,KAAK,eAAiB,MACxB,CAEO,
|
|
6
|
-
"names": ["elementName", "COMPONENT_NAME_PREFIX", "observedAttributes", "attributes", "__spreadValues", "events", "SELECT_DROPDOWN_CONSTANTS", "SelectDropdownFoundation", "BaseSelectFoundation", "adapter", "SELECT_DROPDOWN_CONSTANTS", "value", "text", "SelectDropdownAdapter", "BaseSelectAdapter", "component", "listener", "type", "passive", "capture", "id", "config", "selector", "element", "
|
|
4
|
+
"sourcesContent": ["import { COMPONENT_NAME_PREFIX } from '../../constants';\r\n\r\nconst elementName: keyof HTMLElementTagNameMap = `${COMPONENT_NAME_PREFIX}select-dropdown`;\r\n\r\nconst observedAttributes = {\r\n TARGET: 'target',\r\n SELECTED_TEXT_TARGET: 'selected-text-target',\r\n SYNC_SELECTED_TEXT: 'sync-selected-text'\r\n};\r\n\r\nconst attributes = {\r\n ...observedAttributes\r\n};\r\n\r\nconst events = {\r\n SCROLLED_BOTTOM: `${elementName}-scrolled-bottom`\r\n};\r\n\r\nexport const SELECT_DROPDOWN_CONSTANTS = {\r\n elementName,\r\n attributes,\r\n events\r\n};\r\n", "import { ISelectDropdownAdapter } from './select-dropdown-adapter';\r\nimport { BaseSelectFoundation, IBaseSelectFoundation } from '../core/base-select-foundation';\r\nimport { SELECT_DROPDOWN_CONSTANTS } from './select-dropdown-constants';\r\n\r\nexport interface ISelectDropdownFoundation extends IBaseSelectFoundation {\r\n target: string;\r\n selectedTextTarget: string;\r\n syncSelectedText: boolean;\r\n}\r\n\r\nexport class SelectDropdownFoundation extends BaseSelectFoundation<ISelectDropdownAdapter> implements ISelectDropdownFoundation {\r\n private _target: string;\r\n private _selectedTextTarget: string;\r\n private _syncSelectedText = false;\r\n private _originalTargetText = '';\r\n private _targetDisconnectedListener: () => void;\r\n private _targetDisconnectedDestructor: () => void;\r\n\r\n constructor(adapter: ISelectDropdownAdapter) {\r\n super(adapter);\r\n this._targetDisconnectedListener = () => this._onTargetDisconnected();\r\n }\r\n\r\n public initialize(): void {\r\n this._tryAttach();\r\n super.initialize();\r\n }\r\n\r\n public disconnect(): void {\r\n super.disconnect();\r\n if (this._adapter.isAttached()) {\r\n this._detach();\r\n }\r\n }\r\n\r\n protected _onDropdownScrollEnd(): void {\r\n this._adapter.emitHostEvent(SELECT_DROPDOWN_CONSTANTS.events.SCROLLED_BOTTOM);\r\n }\r\n\r\n protected _applyValue(value: string | string[]): void {\r\n super._applyValue(value);\r\n this._applySelection();\r\n }\r\n\r\n protected _applySelection(): void {\r\n super._applySelection();\r\n if (this._syncSelectedText || typeof this._selectedTextBuilder === 'function') {\r\n let text = this._getSelectedText();\r\n if (!text) {\r\n text = this._originalTargetText;\r\n }\r\n this._adapter.setTargetText(text || '', this._selectedTextTarget);\r\n }\r\n }\r\n\r\n private _tryAttach(): void {\r\n this._adapter.attach(this._target);\r\n if (this._adapter.isAttached()) {\r\n this._targetDisconnectedDestructor = this._adapter.setTargetDisconnectedListener(this._targetDisconnectedListener);\r\n this._originalTargetText = this._adapter.getTargetText(this._selectedTextTarget);\r\n this.initializeTarget();\r\n }\r\n }\r\n\r\n private _detach(): void {\r\n this._adapter.detach();\r\n if (this._targetDisconnectedDestructor) {\r\n this._targetDisconnectedDestructor();\r\n this._targetDisconnectedDestructor = undefined as any;\r\n }\r\n }\r\n\r\n private _onTargetDisconnected(): void {\r\n this._adapter.detach();\r\n }\r\n\r\n public get target(): string {\r\n return this._target;\r\n }\r\n public set target(value: string) {\r\n if (this._target !== value) {\r\n this._target = value;\r\n if (this._adapter.isAttached()) {\r\n this._detach();\r\n }\r\n this._tryAttach();\r\n }\r\n }\r\n\r\n public get selectedTextTarget(): string {\r\n return this._selectedTextTarget;\r\n }\r\n public set selectedTextTarget(value: string) {\r\n if (this._selectedTextTarget !== value) {\r\n this._selectedTextTarget = value;\r\n }\r\n }\r\n\r\n public get syncSelectedText(): boolean {\r\n return this._syncSelectedText;\r\n }\r\n public set syncSelectedText(value: boolean) {\r\n if (this._syncSelectedText !== value) {\r\n this._syncSelectedText = value;\r\n }\r\n }\r\n}\r\n", "import { ISelectDropdownComponent } from './select-dropdown';\r\nimport { BaseSelectAdapter, IBaseSelectAdapter } from '../core/base-select-adapter';\r\nimport { IListDropdownConfig } from '../../list-dropdown/list-dropdown-constants';\r\n\r\nexport interface ISelectDropdownAdapter extends IBaseSelectAdapter {\r\n attach(selector: string): void;\r\n detach(): void;\r\n setTargetDisconnectedListener(cb: () => void): () => void;\r\n isAttached(): boolean;\r\n setTargetText(text: string, selector: string): void;\r\n getTargetText(selector: string): string;\r\n}\r\n\r\nexport class SelectDropdownAdapter extends BaseSelectAdapter implements ISelectDropdownAdapter {\r\n constructor(component: ISelectDropdownComponent) {\r\n super(component);\r\n }\r\n\r\n public initializeAccessibility(): void {\r\n this._targetElement.setAttribute('role', 'listbox');\r\n this._targetElement.setAttribute('aria-live', 'polite');\r\n this._targetElement.setAttribute('aria-haspopup', 'true');\r\n this._targetElement.setAttribute('aria-expanded', 'false');\r\n }\r\n\r\n public addClickListener(listener: (evt: Event) => void): void {\r\n this._targetElement.addEventListener('click', listener);\r\n }\r\n\r\n public removeClickListener(listener: (evt: Event) => void): void {\r\n if (this._targetElement) {\r\n this._targetElement.removeEventListener('click', listener);\r\n }\r\n }\r\n\r\n public addTargetListener(type: string, listener: (evt: Event) => void): void {\r\n let passive: boolean | undefined;\r\n let capture: boolean | undefined;\r\n \r\n if (type === 'keydown') {\r\n // We don't use a passive keydown listener because we are preventing default in this event and Angular doesn't like that\r\n // We need to use capturing to ensure that we get to this event before zone.js does\r\n passive = false;\r\n capture = true;\r\n }\r\n\r\n this._targetElement.addEventListener(type, listener, { passive, capture });\r\n }\r\n\r\n public removeTargetListener(type: string, listener: (evt: Event) => void): void {\r\n if (this._targetElement) {\r\n this._targetElement.removeEventListener(type, listener);\r\n }\r\n }\r\n\r\n public updateActiveDescendant(id: string): void {\r\n if (id) {\r\n this._targetElement.setAttribute('aria-activedescendant', id);\r\n } else {\r\n this._targetElement.removeAttribute('aria-activedescendant');\r\n }\r\n }\r\n\r\n public open(config: IListDropdownConfig): void {\r\n super.open(config);\r\n this._targetElement.setAttribute('aria-controls', `list-dropdown-popup-${config.id}`);\r\n this._targetElement.setAttribute('aria-expanded', 'true');\r\n }\r\n\r\n public close(): void {\r\n this._targetElement.setAttribute('aria-expanded', 'false');\r\n this._targetElement.removeAttribute('aria-activedescendant');\r\n this._targetElement.removeAttribute('aria-controls');\r\n super.close();\r\n }\r\n\r\n public attach(selector: string): void {\r\n const rootNode = this._component.getRootNode() as ShadowRoot || HTMLDocument;\r\n const doc = rootNode || this._component.ownerDocument || document;\r\n const element = doc.querySelector(selector) as HTMLElement;\r\n if (element) {\r\n this._targetElement = element;\r\n }\r\n }\r\n\r\n public detach(): void {\r\n this._targetElement = undefined as any;\r\n }\r\n\r\n public setTargetDisconnectedListener(cb: () => void): () => void {\r\n if (!this._targetElement || !this._targetElement.parentElement) {\r\n return () => {};\r\n }\r\n const observer = new MutationObserver(mutations => {\r\n const isTargetRemoved = mutations.some(mutation => {\r\n return Array.from(mutation.removedNodes).some(node => node === this._targetElement);\r\n });\r\n if (isTargetRemoved) {\r\n observer.disconnect();\r\n cb();\r\n }\r\n });\r\n observer.observe(this._targetElement.parentElement, { childList: true });\r\n return () => observer.disconnect();\r\n }\r\n\r\n public isAttached(): boolean {\r\n return !!this._targetElement;\r\n }\r\n\r\n public setTargetText(text: string, selector: string): void {\r\n let target: Element = this._targetElement;\r\n if (selector) {\r\n const element = this._getElementBySelector(selector);\r\n if (element) {\r\n target = element;\r\n }\r\n }\r\n if (target) {\r\n target.textContent = text;\r\n }\r\n }\r\n\r\n public getTargetText(selector: string): string {\r\n const element = selector ? this._getElementBySelector(selector) : this._targetElement;\r\n return element ? element.innerText : '';\r\n }\r\n\r\n private _getElementBySelector(selector: string): HTMLElement | null {\r\n return this._targetElement.querySelector(selector) || this._getRootNode().querySelector(selector);\r\n }\r\n\r\n private _getRootNode(): ShadowRoot | HTMLDocument {\r\n return (this._component.getRootNode() as ShadowRoot | HTMLDocument) || this._component.ownerDocument || document;\r\n }\r\n}\r\n", "import { CustomElement, FoundationProperty, attachShadowTemplate, coerceBoolean } from '@tylertech/forge-core';\r\n\r\nimport { SelectDropdownFoundation } from './select-dropdown-foundation';\r\nimport { SELECT_DROPDOWN_CONSTANTS } from './select-dropdown-constants';\r\nimport { IBaseSelectComponent, BaseSelectComponent } from '../core/base-select';\r\nimport { BASE_SELECT_CONSTANTS } from '../core/base-select-constants';\r\nimport { SelectDropdownAdapter } from './select-dropdown-adapter';\r\nimport { OptionComponent } from '../option';\r\nimport { OptionGroupComponent } from '../option-group';\r\nimport { PopupComponent } from '../../popup';\r\nimport { ListComponent, ListItemComponent } from '../../list';\r\nimport { CircularProgressComponent } from '../../circular-progress';\r\nimport { ScaffoldComponent } from '../../scaffold';\r\nimport { ToolbarComponent } from '../../toolbar';\r\nimport { IconButtonComponent } from '../../icon-button';\r\n\r\nconst template = '<template></template>';\r\nconst styles = ':host{display:none}';\r\n\r\nexport interface ISelectDropdownComponent extends IBaseSelectComponent {\r\n target: string;\r\n selectedTextTarget: string;\r\n syncSelectedText: boolean;\r\n}\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n 'forge-select-dropdown': ISelectDropdownComponent;\r\n }\r\n\r\n interface HTMLElementEventMap {\r\n 'forge-select-dropdown-scrolled-bottom': CustomEvent<void>;\r\n }\r\n}\r\n\r\n/**\r\n * The web component class behind the `<forge-select-dropdown>` custom element.\r\n * \r\n * @tag forge-select-dropdown\r\n */\r\n@CustomElement({\r\n name: SELECT_DROPDOWN_CONSTANTS.elementName,\r\n dependencies: [\r\n OptionComponent,\r\n OptionGroupComponent,\r\n PopupComponent,\r\n ListComponent,\r\n ListItemComponent,\r\n CircularProgressComponent,\r\n ScaffoldComponent,\r\n ToolbarComponent,\r\n IconButtonComponent\r\n ]\r\n})\r\nexport class SelectDropdownComponent extends BaseSelectComponent<SelectDropdownFoundation> implements ISelectDropdownComponent {\r\n public static get observedAttributes(): string[] {\r\n return [\r\n SELECT_DROPDOWN_CONSTANTS.attributes.TARGET,\r\n SELECT_DROPDOWN_CONSTANTS.attributes.SELECTED_TEXT_TARGET,\r\n SELECT_DROPDOWN_CONSTANTS.attributes.SYNC_SELECTED_TEXT,\r\n BASE_SELECT_CONSTANTS.attributes.VALUE,\r\n BASE_SELECT_CONSTANTS.attributes.MULTIPLE,\r\n BASE_SELECT_CONSTANTS.attributes.OBSERVE_SCROLL,\r\n BASE_SELECT_CONSTANTS.attributes.OBSERVE_SCROLL_THRESHOLD,\r\n BASE_SELECT_CONSTANTS.attributes.POPUP_CLASSES,\r\n BASE_SELECT_CONSTANTS.attributes.OPTION_LIMIT,\r\n BASE_SELECT_CONSTANTS.attributes.SYNC_POPUP_WIDTH\r\n ];\r\n }\r\n\r\n constructor() {\r\n super();\r\n attachShadowTemplate(this, template, styles);\r\n this._foundation = new SelectDropdownFoundation(new SelectDropdownAdapter(this));\r\n }\r\n\r\n public attributeChangedCallback(name: string, oldValue: string, newValue: string): void {\r\n switch (name) {\r\n case SELECT_DROPDOWN_CONSTANTS.attributes.TARGET:\r\n this.target = newValue;\r\n return;\r\n case SELECT_DROPDOWN_CONSTANTS.attributes.SELECTED_TEXT_TARGET:\r\n this.selectedTextTarget = newValue;\r\n return;\r\n case SELECT_DROPDOWN_CONSTANTS.attributes.SYNC_SELECTED_TEXT:\r\n this.syncSelectedText = coerceBoolean(newValue);\r\n return;\r\n }\r\n super.attributeChangedCallback(name, oldValue, newValue);\r\n }\r\n\r\n /** Sets the target element CSS selector */\r\n @FoundationProperty()\r\n public declare target: string;\r\n\r\n /** Sets the selected text element CSS selector */\r\n @FoundationProperty()\r\n public declare selectedTextTarget: string;\r\n\r\n /** Controls whether the selected text is synchronized to the target elements' text content. Default is false. */\r\n @FoundationProperty()\r\n public declare syncSelectedText: boolean;\r\n}\r\n", "import { defineCustomElement } from '@tylertech/forge-core';\r\n\r\nimport { SelectDropdownComponent } from './select-dropdown';\r\n\r\nexport * from './select-dropdown-adapter';\r\nexport * from './select-dropdown-constants';\r\nexport * from './select-dropdown-foundation';\r\nexport * from './select-dropdown';\r\n\r\nexport function defineSelectDropdownComponent(): void {\r\n defineCustomElement(SelectDropdownComponent);\r\n}\r\n"],
|
|
5
|
+
"mappings": "koBAEA,IAAMA,EAA2C,GAAGC,mBAE9CC,EAAqB,CACzB,OAAQ,SACR,qBAAsB,uBACtB,mBAAoB,oBACtB,EAEMC,EAAaC,EAAA,GACdF,GAGCG,EAAS,CACb,gBAAiB,GAAGL,mBACtB,EAEaM,EAA4B,CACvC,YAAAN,EACA,WAAAG,EACA,OAAAE,CACF,ECZO,IAAME,EAAN,cAAuCC,CAAkF,CAQ9H,YAAYC,EAAiC,CAC3C,MAAMA,CAAO,EANf,KAAQ,kBAAoB,GAC5B,KAAQ,oBAAsB,GAM5B,KAAK,4BAA8B,IAAM,KAAK,sBAAsB,CACtE,CAEO,YAAmB,CACxB,KAAK,WAAW,EAChB,MAAM,WAAW,CACnB,CAEO,YAAmB,CACxB,MAAM,WAAW,EACb,KAAK,SAAS,WAAW,GAC3B,KAAK,QAAQ,CAEjB,CAEU,sBAA6B,CACrC,KAAK,SAAS,cAAcC,EAA0B,OAAO,eAAe,CAC9E,CAEU,YAAYC,EAAgC,CACpD,MAAM,YAAYA,CAAK,EACvB,KAAK,gBAAgB,CACvB,CAEU,iBAAwB,CAEhC,GADA,MAAM,gBAAgB,EAClB,KAAK,mBAAqB,OAAO,KAAK,sBAAyB,WAAY,CAC7E,IAAIC,EAAO,KAAK,iBAAiB,EAC5BA,IACHA,EAAO,KAAK,qBAEd,KAAK,SAAS,cAAcA,GAAQ,GAAI,KAAK,mBAAmB,CAClE,CACF,CAEQ,YAAmB,CACzB,KAAK,SAAS,OAAO,KAAK,OAAO,EAC7B,KAAK,SAAS,WAAW,IAC3B,KAAK,8BAAgC,KAAK,SAAS,8BAA8B,KAAK,2BAA2B,EACjH,KAAK,oBAAsB,KAAK,SAAS,cAAc,KAAK,mBAAmB,EAC/E,KAAK,iBAAiB,EAE1B,CAEQ,SAAgB,CACtB,KAAK,SAAS,OAAO,EACjB,KAAK,gCACP,KAAK,8BAA8B,EACnC,KAAK,8BAAgC,OAEzC,CAEQ,uBAA8B,CACpC,KAAK,SAAS,OAAO,CACvB,CAEA,IAAW,QAAiB,CAC1B,OAAO,KAAK,OACd,CACA,IAAW,OAAOD,EAAe,CAC3B,KAAK,UAAYA,IACnB,KAAK,QAAUA,EACX,KAAK,SAAS,WAAW,GAC3B,KAAK,QAAQ,EAEf,KAAK,WAAW,EAEpB,CAEA,IAAW,oBAA6B,CACtC,OAAO,KAAK,mBACd,CACA,IAAW,mBAAmBA,EAAe,CACvC,KAAK,sBAAwBA,IAC/B,KAAK,oBAAsBA,EAE/B,CAEA,IAAW,kBAA4B,CACrC,OAAO,KAAK,iBACd,CACA,IAAW,iBAAiBA,EAAgB,CACtC,KAAK,oBAAsBA,IAC7B,KAAK,kBAAoBA,EAE7B,CACF,EC7FO,IAAME,EAAN,cAAoCC,CAAoD,CAC7F,YAAYC,EAAqC,CAC/C,MAAMA,CAAS,CACjB,CAEO,yBAAgC,CACrC,KAAK,eAAe,aAAa,OAAQ,SAAS,EAClD,KAAK,eAAe,aAAa,YAAa,QAAQ,EACtD,KAAK,eAAe,aAAa,gBAAiB,MAAM,EACxD,KAAK,eAAe,aAAa,gBAAiB,OAAO,CAC3D,CAEO,iBAAiBC,EAAsC,CAC5D,KAAK,eAAe,iBAAiB,QAASA,CAAQ,CACxD,CAEO,oBAAoBA,EAAsC,CAC3D,KAAK,gBACP,KAAK,eAAe,oBAAoB,QAASA,CAAQ,CAE7D,CAEO,kBAAkBC,EAAcD,EAAsC,CAC3E,IAAIE,EACAC,EAEAF,IAAS,YAGXC,EAAU,GACVC,EAAU,IAGZ,KAAK,eAAe,iBAAiBF,EAAMD,EAAU,CAAE,QAAAE,EAAS,QAAAC,CAAQ,CAAC,CAC3E,CAEO,qBAAqBF,EAAcD,EAAsC,CAC1E,KAAK,gBACP,KAAK,eAAe,oBAAoBC,EAAMD,CAAQ,CAE1D,CAEO,uBAAuBI,EAAkB,CAC1CA,EACF,KAAK,eAAe,aAAa,wBAAyBA,CAAE,EAE5D,KAAK,eAAe,gBAAgB,uBAAuB,CAE/D,CAEO,KAAKC,EAAmC,CAC7C,MAAM,KAAKA,CAAM,EACjB,KAAK,eAAe,aAAa,gBAAiB,uBAAuBA,EAAO,IAAI,EACpF,KAAK,eAAe,aAAa,gBAAiB,MAAM,CAC1D,CAEO,OAAc,CACnB,KAAK,eAAe,aAAa,gBAAiB,OAAO,EACzD,KAAK,eAAe,gBAAgB,uBAAuB,EAC3D,KAAK,eAAe,gBAAgB,eAAe,EACnD,MAAM,MAAM,CACd,CAEO,OAAOC,EAAwB,CAGpC,IAAMC,GAFW,KAAK,WAAW,YAAY,GAAmB,cACxC,KAAK,WAAW,eAAiB,UACrC,cAAcD,CAAQ,EACtCC,IACF,KAAK,eAAiBA,EAE1B,CAEO,QAAe,CACpB,KAAK,eAAiB,MACxB,CAEO,8BAA8BC,EAA4B,CAC/D,GAAI,CAAC,KAAK,gBAAkB,CAAC,KAAK,eAAe,cAC/C,MAAO,IAAM,CAAC,EAEhB,IAAMC,EAAW,IAAI,iBAAiBC,GAAa,CACzBA,EAAU,KAAKC,GAC9B,MAAM,KAAKA,EAAS,YAAY,EAAE,KAAKC,GAAQA,IAAS,KAAK,cAAc,CACnF,IAECH,EAAS,WAAW,EACpBD,EAAG,EAEP,CAAC,EACD,OAAAC,EAAS,QAAQ,KAAK,eAAe,cAAe,CAAE,UAAW,EAAK,CAAC,EAChE,IAAMA,EAAS,WAAW,CACnC,CAEO,YAAsB,CAC3B,MAAO,CAAC,CAAC,KAAK,cAChB,CAEO,cAAcI,EAAcP,EAAwB,CACzD,IAAIQ,EAAkB,KAAK,eAC3B,GAAIR,EAAU,CACZ,IAAMC,EAAU,KAAK,sBAAsBD,CAAQ,EAC/CC,IACFO,EAASP,EAEb,CACIO,IACFA,EAAO,YAAcD,EAEzB,CAEO,cAAcP,EAA0B,CAC7C,IAAMC,EAAUD,EAAW,KAAK,sBAAsBA,CAAQ,EAAI,KAAK,eACvE,OAAOC,EAAUA,EAAQ,UAAY,EACvC,CAEQ,sBAAsBD,EAAsC,CAClE,OAAO,KAAK,eAAe,cAAcA,CAAQ,GAAK,KAAK,aAAa,EAAE,cAAcA,CAAQ,CAClG,CAEQ,cAA0C,CAChD,OAAQ,KAAK,WAAW,YAAY,GAAmC,KAAK,WAAW,eAAiB,QAC1G,CACF,ECvHA,IAAMS,EAAW,wBACXC,EAAS,sBAqCFC,EAAN,cAAsCC,CAAkF,CAgB7H,aAAc,CACZ,MAAM,EACNC,EAAqB,KAAMJ,EAAUC,CAAM,EAC3C,KAAK,YAAc,IAAII,EAAyB,IAAIC,EAAsB,IAAI,CAAC,CACjF,CAnBA,WAAkB,oBAA+B,CAC/C,MAAO,CACLC,EAA0B,WAAW,OACrCA,EAA0B,WAAW,qBACrCA,EAA0B,WAAW,mBACrCC,EAAsB,WAAW,MACjCA,EAAsB,WAAW,SACjCA,EAAsB,WAAW,eACjCA,EAAsB,WAAW,yBACjCA,EAAsB,WAAW,cACjCA,EAAsB,WAAW,aACjCA,EAAsB,WAAW,gBACnC,CACF,CAQO,yBAAyBC,EAAcC,EAAkBC,EAAwB,CACtF,OAAQF,QACDF,EAA0B,WAAW,OACxC,KAAK,OAASI,EACd,YACGJ,EAA0B,WAAW,qBACxC,KAAK,mBAAqBI,EAC1B,YACGJ,EAA0B,WAAW,mBACxC,KAAK,iBAAmBK,EAAcD,CAAQ,EAC9C,OAEJ,MAAM,yBAAyBF,EAAMC,EAAUC,CAAQ,CACzD,CAaF,EATiBE,EAAA,CADdC,EAAmB,GAtCTZ,EAuCI,sBAIAW,EAAA,CADdC,EAAmB,GA1CTZ,EA2CI,kCAIAW,EAAA,CADdC,EAAmB,GA9CTZ,EA+CI,gCA/CJA,EAANW,EAAA,CAdNE,EAAc,CACb,KAAMR,EAA0B,YAChC,aAAc,CACZS,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,CACF,CACF,CAAC,GACYtB,GC7CN,SAASuB,IAAsC,CACpDC,EAAoBC,CAAuB,CAC7C",
|
|
6
|
+
"names": ["elementName", "COMPONENT_NAME_PREFIX", "observedAttributes", "attributes", "__spreadValues", "events", "SELECT_DROPDOWN_CONSTANTS", "SelectDropdownFoundation", "BaseSelectFoundation", "adapter", "SELECT_DROPDOWN_CONSTANTS", "value", "text", "SelectDropdownAdapter", "BaseSelectAdapter", "component", "listener", "type", "passive", "capture", "id", "config", "selector", "element", "cb", "observer", "mutations", "mutation", "node", "text", "target", "template", "styles", "SelectDropdownComponent", "BaseSelectComponent", "attachShadowTemplate", "SelectDropdownFoundation", "SelectDropdownAdapter", "SELECT_DROPDOWN_CONSTANTS", "BASE_SELECT_CONSTANTS", "name", "oldValue", "newValue", "coerceBoolean", "__decorateClass", "FoundationProperty", "CustomElement", "OptionComponent", "OptionGroupComponent", "PopupComponent", "ListComponent", "ListItemComponent", "CircularProgressComponent", "ScaffoldComponent", "ToolbarComponent", "IconButtonComponent", "defineSelectDropdownComponent", "defineCustomElement", "SelectDropdownComponent"]
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2023 Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import{a as i}from"./chunk.KNKTQDLS.js";import{b,c as R}from"./chunk.EC5JFSHR.js";import{b as z}from"./chunk.KZJYLYWN.js";import{a as C}from"./chunk.KTGSZEAG.js";import{a as I}from"./chunk.DL7NX432.js";import{a as E,e as w,g as m,l as x}from"./chunk.LJLEPTLU.js";import{f as v,g as y,s as k}from"./chunk.4LA6HEA7.js";import{k as _}from"./chunk.J2M2MXP2.js";import{a as g,b as h,f as p}from"./chunk.MCIQXNKY.js";var d=class{constructor(e){this._adapter=e;this._dense=!1}connect(){this._adapter.connect(),this._adapter.deferRippleInitialization(),this._focusListenerCallback=()=>this._adapter.syncFocusedStateWithInput(),this._disabledListenerCallback=()=>this._adapter.syncDisabledStateWithInput(),this._syncRadiogroupCheckStyles=()=>this._adapter.syncRadiogroupCheckStyles(),this._addFocusEventListeners(),this._addInputDisabledListener(),this._extendNativeInputSetter(),this._addRadioChangeListener(),this._adapter.syncCheckedStateWithInput(),this._adapter.syncDisabledStateWithInput(),this._adapter.syncFocusedStateWithInput(),this._applyDense(),this.syncCheckedState()}disconnect(){this._removeFocusEventListeners(),this._removeInputDisabledListener(),this._adapter.revertNativeInputSetter(),this._removeRadioChangeListener(),this._adapter.destroyRipple()}syncCheckedState(){this._adapter.syncCheckedStateWithInput()}_applyDense(){this._dense?(this._adapter.addRootClass(i.classes.RADIO_DENSE),this._adapter.setHostAttribute(i.attributes.DENSE)):(this._adapter.removeRootClass(i.classes.RADIO_DENSE),this._adapter.removeHostAttribute(i.attributes.DENSE))}_extendNativeInputSetter(){this._adapter.extendNativeInputSetter(this._syncRadiogroupCheckStyles)}_addRadioChangeListener(){this._adapter.addInputEventListener("change",this._syncRadiogroupCheckStyles)}_removeRadioChangeListener(){this._adapter.removeInputEventListener("change",this._syncRadiogroupCheckStyles)}_addFocusEventListeners(){this._adapter.addInputEventListener("focus",this._focusListenerCallback),this._adapter.addInputEventListener("blur",this._focusListenerCallback)}_removeFocusEventListeners(){this._adapter.removeInputEventListener("focus",this._focusListenerCallback),this._adapter.removeInputEventListener("blur",this._focusListenerCallback)}_addInputDisabledListener(){this._adapter.addInputDisabledAttributeChangeListener(this._disabledListenerCallback)}_removeInputDisabledListener(){this._adapter.removeInputDisabledAttributeChangeListener()}get dense(){return this._dense}set dense(e){this._dense!==e&&(this._dense=e,this._applyDense())}};var c=class{constructor(e){this._component=e;this._rootElement=m(this._component,i.selectors.RADIO),this._containerElement=m(this._component,i.selectors.WRAPPER)}get root(){return this._rootElement}get unbounded(){return!0}get disabled(){return this._isDisabled()}connect(){let e=this._component.querySelector(i.selectors.LABEL);e&&e.setAttribute(i.attributes.SLOT,i.selectors.LABEL)}async deferRippleInitialization(){typeof this._destroyUserInteractionListener=="function"&&this._destroyUserInteractionListener();let{userInteraction:e,destroy:t}=z(this._rootElement);this._destroyUserInteractionListener=t;let{type:r}=await e;this._destroyUserInteractionListener=void 0,this._component.isConnected&&(this._rippleInstance=this._createRipple(),r==="focusin"&&this._rippleInstance.handleFocus())}destroyRipple(){var e;typeof this._destroyUserInteractionListener=="function"&&(this._destroyUserInteractionListener(),this._destroyUserInteractionListener=void 0),(e=this._rippleInstance)==null||e.destroy(),this._rippleInstance=void 0}setHostAttribute(e,t=""){this._component.setAttribute(e,t)}removeHostAttribute(e){this._component.removeAttribute(e)}addRootClass(e){this._rootElement.classList.add(e)}removeRootClass(e){this._rootElement.classList.remove(e)}addContainerClass(e){this._containerElement.classList.add(e)}removeContainerClass(e){this._containerElement.classList.remove(e)}syncDisabledStateWithInput(){this.inputDisabled?(this.addRootClass(i.classes.DISABLED),this.removeRootClass(i.classes.ENABLED),this.addContainerClass(i.classes.WRAPPER_DISABLED)):(this.addRootClass(i.classes.ENABLED),this.removeRootClass(i.classes.DISABLED),this.removeContainerClass(i.classes.WRAPPER_DISABLED))}syncFocusedStateWithInput(){k(this._component.ownerDocument)===this._inputElement?this.addRootClass(i.classes.FOCUSED):this.removeRootClass(i.classes.FOCUSED)}syncCheckedStateWithInput(){this.inputChecked?this.addRootClass(i.classes.CHECKED):this.removeRootClass(i.classes.CHECKED)}addInputEventListener(e,t){!this._inputElement||this._inputElement.addEventListener(e,t)}removeInputEventListener(e,t){!this._inputElement||this._inputElement.removeEventListener(e,t)}addInputDisabledAttributeChangeListener(e){this._setupInputDisabledAttributeMutationObserver(e)}removeInputDisabledAttributeChangeListener(){this._cleanupInputDisabledAttributeMutationObserver()}getRadiosFromContainingRadiogroup(){let e=this._getContainingRadioGroup(this._component);return e==null?null:e.querySelectorAll(i.elementName)}syncRadiogroupCheckStyles(){let e=this.getRadiosFromContainingRadiogroup();e&&e.forEach(t=>t.syncCheckedState())}extendNativeInputSetter(e){if(!this._inputElement)return;let t=this._inputElement,r=Object.getPrototypeOf(t);i.inputProperties.forEach(o=>{let a=Object.getOwnPropertyDescriptor(r,o);if(!!this._validPropertyDescriptor(a)&&a){let f={configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:l=>{var s;(s=a.set)==null||s.call(t,l),e()}};Object.defineProperty(t,o,f)}})}revertNativeInputSetter(){if(!this._inputElement)return;let e=this._inputElement,t=Object.getPrototypeOf(e);i.inputProperties.forEach(r=>{let o=Object.getOwnPropertyDescriptor(t,r);!this._validPropertyDescriptor(o)||Object.defineProperty(e,r,o)})}_validPropertyDescriptor(e){return!!e&&typeof e.set=="function"}_getContainingRadioGroup(e){if(!e||!e.parentElement)throw new Error('Unable to locate ancestor element with role="radiogroup". When using radios, a parent with this attribute must be applied.');let t=e.parentElement,r=t.getAttribute(i.attributes.ROLE);return!!r&&r.toLocaleLowerCase()===i.attributes.RADIOGROUP_ROLE.toLocaleLowerCase()?t:this._getContainingRadioGroup(t)}_setupInputDisabledAttributeMutationObserver(e){if(!this._inputElement)return;this._cleanupInputDisabledAttributeMutationObserver();let t=o=>this._inputDisabledAttributeMutationCallback(o,e);this._inputAttributeMutationObserver=new MutationObserver(t);let r={attributes:!0,attributeOldValue:!0,attributeFilter:["disabled"]};this._inputAttributeMutationObserver.observe(this._inputElement,r)}_cleanupInputDisabledAttributeMutationObserver(){this._inputAttributeMutationObserver&&(this._inputAttributeMutationObserver.disconnect(),delete this._inputAttributeMutationObserver)}_inputDisabledAttributeMutationCallback(e,t){for(let r of e)r.type!=="attributes"||!r.attributeName||r.attributeName!=="disabled"||r.target[r.attributeName]===r.oldValue||t()}get inputDisabled(){return this._inputElement?this._inputElement.disabled:!1}get inputChecked(){return this._inputElement?this._inputElement.checked:!1}get _inputElement(){return this._nativeInputElement||(this._nativeInputElement=this._component.querySelector(i.selectors.RADIO_INPUT)),this._nativeInputElement}_isDisabled(){return this._inputElement?this._inputElement.disabled:!1}_createRipple(){let e=h(g({},b.createAdapter(this)),{deregisterInteractionHandler:(t,r)=>{this._inputElement&&this._inputElement.removeEventListener(t,r,{passive:!0})},isSurfaceActive:()=>this._inputElement?this._inputElement.matches(":active"):!1,isUnbounded:()=>Boolean(this.unbounded),registerInteractionHandler:(t,r)=>{this._inputElement&&this._inputElement.addEventListener(t,r,{passive:!0})},isSurfaceDisabled:()=>this._inputElement?this._inputElement.disabled:!1,addClass:t=>v(t,this._rootElement),removeClass:t=>y(t,this._rootElement),updateCssVariable:(t,r)=>this._rootElement.style.setProperty(t,r)});return new b(this._rootElement,new R(e))}};var L='<template><div class="forge-radio-wrapper forge-form-field" part="root"><div class="mdc-radio" part="container"><slot></slot><div class="mdc-radio__background" part="background"><div class="mdc-radio__outer-circle" part="outer-circle"></div><div class="mdc-radio__inner-circle" part="inner-circle"></div></div><div class="mdc-radio__ripple" part="ripple-container"></div></div><slot name="label"></slot></div></template>',D='.mdc-radio{padding:10px;display:inline-block;position:relative;-webkit-box-flex:0;flex:0 0 auto;-webkit-box-sizing:content-box;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio.forge-radio--enabled .mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.54);border-color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.mdc-radio.forge-radio--enabled.forge-radio--checked .mdc-radio__background .mdc-radio__outer-circle{border-color:#3d5afe;border-color:var(--forge-theme-tertiary,#3d5afe)}.mdc-radio.forge-radio--enabled .mdc-radio__background .mdc-radio__inner-circle{border-color:#3d5afe;border-color:var(--forge-theme-tertiary,#3d5afe)}.mdc-radio.mdc-radio--disabled .mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.26);border-color:var(--forge-theme-form-field-icon-disabled-on-background,rgba(0,0,0,.26))}.mdc-radio.mdc-radio--disabled.forge-radio--checked .mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.26);border-color:var(--forge-theme-form-field-icon-disabled-on-background,rgba(0,0,0,.26))}.mdc-radio.mdc-radio--disabled .mdc-radio__background .mdc-radio__inner-circle{border-color:rgba(0,0,0,.26);border-color:var(--forge-theme-form-field-icon-disabled-on-background,rgba(0,0,0,.26))}.mdc-radio .mdc-radio__background::before{background-color:#3d5afe;background-color:var(--forge-theme-tertiary,#3d5afe)}.mdc-radio .mdc-radio__background::before{top:-10px;left:-10px;width:40px;height:40px}.mdc-radio .mdc-radio__native-control{top:0;right:0;left:0;width:40px;height:40px}@media screen and (forced-colors:active),(-ms-high-contrast:active){.mdc-radio.mdc-radio--disabled .mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio.mdc-radio--disabled.forge-radio--checked .mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio.mdc-radio--disabled .mdc-radio__background .mdc-radio__inner-circle{border-color:GrayText}}.mdc-radio__background{display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;-webkit-transform:scale(0,0);transform:scale(0,0);border-radius:50%;opacity:0;pointer-events:none;content:"";-webkit-transition:opacity 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:opacity 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:opacity 120ms 0s cubic-bezier(.4, 0, .6, 1),transform 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:opacity 120ms 0s cubic-bezier(.4, 0, .6, 1),transform 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;-webkit-transition:border-color 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:border-color 120ms 0s cubic-bezier(.4, 0, .6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;-webkit-transform:scale(0,0);transform:scale(0,0);border-width:10px;border-style:solid;border-radius:50%;-webkit-transition:border-color 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:border-color 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:transform 120ms 0s cubic-bezier(.4, 0, .6, 1),border-color 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:transform 120ms 0s cubic-bezier(.4, 0, .6, 1),border-color 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1)}.mdc-radio ::slotted(input[type=radio]){position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;top:0;right:0;left:0;width:40px;height:40px}.mdc-radio.forge-radio--dense{padding:4px;margin:0}.mdc-radio.forge-radio--dense .mdc-radio__background::before{top:-4px;left:-4px;width:28px;height:28px}.mdc-radio.forge-radio--dense .mdc-radio__native-control{top:0;right:0;left:0;width:28px;height:28px}.mdc-radio.forge-radio--dense ::slotted(input[type=radio]){width:28px;height:28px}.mdc-radio--disabled+::slotted(label){color:rgba(0,0,0,.38);color:var(--forge-theme-label-disabled-on-background,rgba(0,0,0,.38))}.forge-radio--checked .mdc-radio__background,.mdc-radio--disabled .mdc-radio__background{-webkit-transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),transform 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1)}.forge-radio--checked .mdc-radio__background .mdc-radio__outer-circle,.mdc-radio--disabled .mdc-radio__background .mdc-radio__outer-circle{-webkit-transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1);transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1)}.forge-radio--checked .mdc-radio__background .mdc-radio__inner-circle,.mdc-radio--disabled .mdc-radio__background .mdc-radio__inner-circle{-webkit-transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 120ms 0s cubic-bezier(0, 0, .2, 1),border-color 120ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 120ms 0s cubic-bezier(0, 0, .2, 1),border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.forge-radio--checked .mdc-radio__background .mdc-radio__inner-circle{-webkit-transform:scale(.5);transform:scale(.5);-webkit-transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 120ms 0s cubic-bezier(0, 0, .2, 1),border-color 120ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 120ms 0s cubic-bezier(0, 0, .2, 1),border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1)}.mdc-radio--disabled .mdc-radio__background{cursor:default}.forge-radio--focused .mdc-radio__background::before{-webkit-transform:scale(1);transform:scale(1);opacity:.12;-webkit-transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),transform 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1)}@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-radio{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity}.mdc-radio .mdc-radio__ripple::after,.mdc-radio .mdc-radio__ripple::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-radio .mdc-radio__ripple::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-radio .mdc-radio__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.mdc-radio.mdc-ripple-upgraded--unbounded .mdc-radio__ripple::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-radio.mdc-ripple-upgraded--foreground-activation .mdc-radio__ripple::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-radio.mdc-ripple-upgraded--foreground-deactivation .mdc-radio__ripple::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-radio .mdc-radio__ripple::after,.mdc-radio .mdc-radio__ripple::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after,.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-radio .mdc-radio__ripple::after,.mdc-radio .mdc-radio__ripple::before{background-color:#3d5afe;background-color:var(--forge-theme-tertiary,#3d5afe)}.mdc-radio.mdc-ripple-surface--hover .mdc-radio__ripple::before,.mdc-radio:hover .mdc-radio__ripple::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__ripple::before,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__ripple::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-radio:not(.mdc-ripple-upgraded) .mdc-radio__ripple::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.mdc-radio:not(.mdc-ripple-upgraded):active .mdc-radio__ripple::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-radio.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-radio.mdc-ripple-upgraded .mdc-radio__background::before,.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__background::before{content:none}.mdc-radio__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.forge-radio-wrapper--disabled{cursor:not-allowed}.forge-radio-wrapper--disabled ::slotted(label){cursor:not-allowed}.forge-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;vertical-align:middle}.forge-form-field ::slotted([slot=label]){-webkit-box-ordinal-group:1;order:0;margin-right:auto;padding-left:4px}.forge-form-field forge-switch~::slotted([slot=label]){padding-left:8px}.forge-form-field--align-end ::slotted([slot=label]){-webkit-box-ordinal-group:0;order:-1;margin-left:auto;padding-right:4px}:host{display:inline-block}:host([hidden]){display:none}',n=class extends x{constructor(){super();w(this,L,D),this._foundation=new d(new c(this))}static get observedAttributes(){return[i.attributes.DENSE]}connectedCallback(){this._ensureRadioInputElement().then(()=>this._foundation.connect())}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,r,o){switch(t){case i.attributes.DENSE:this.dense=_(o);break}}_ensureRadioInputElement(){return new Promise(t=>{if(this.querySelector(i.selectors.RADIO_INPUT)){t();return}let o=new MutationObserver(a=>{a.reduce((l,s)=>l+s.addedNodes.length,0)>0&&this.querySelector(i.selectors.RADIO_INPUT)&&(o.disconnect(),t())});o.observe(this,{childList:!0,subtree:!0})})}syncCheckedState(){this._foundation.syncCheckedState()}};p([C()],n.prototype,"dense",2),n=p([I({name:i.elementName})],n);function Q(){E(n)}export{n as a,Q as b};
|
|
7
|
-
//# sourceMappingURL=chunk.
|
|
6
|
+
import{a as i}from"./chunk.KNKTQDLS.js";import{b,c as R}from"./chunk.EC5JFSHR.js";import{c as z}from"./chunk.KYH5GKVI.js";import{a as C}from"./chunk.KTGSZEAG.js";import{a as I}from"./chunk.DL7NX432.js";import{a as E,e as w,g as m,l as x}from"./chunk.LJLEPTLU.js";import{f as v,g as y,s as k}from"./chunk.4LA6HEA7.js";import{k as _}from"./chunk.J2M2MXP2.js";import{a as g,b as h,f as p}from"./chunk.MCIQXNKY.js";var d=class{constructor(e){this._adapter=e;this._dense=!1}connect(){this._adapter.connect(),this._adapter.deferRippleInitialization(),this._focusListenerCallback=()=>this._adapter.syncFocusedStateWithInput(),this._disabledListenerCallback=()=>this._adapter.syncDisabledStateWithInput(),this._syncRadiogroupCheckStyles=()=>this._adapter.syncRadiogroupCheckStyles(),this._addFocusEventListeners(),this._addInputDisabledListener(),this._extendNativeInputSetter(),this._addRadioChangeListener(),this._adapter.syncCheckedStateWithInput(),this._adapter.syncDisabledStateWithInput(),this._adapter.syncFocusedStateWithInput(),this._applyDense(),this.syncCheckedState()}disconnect(){this._removeFocusEventListeners(),this._removeInputDisabledListener(),this._adapter.revertNativeInputSetter(),this._removeRadioChangeListener(),this._adapter.destroyRipple()}syncCheckedState(){this._adapter.syncCheckedStateWithInput()}_applyDense(){this._dense?(this._adapter.addRootClass(i.classes.RADIO_DENSE),this._adapter.setHostAttribute(i.attributes.DENSE)):(this._adapter.removeRootClass(i.classes.RADIO_DENSE),this._adapter.removeHostAttribute(i.attributes.DENSE))}_extendNativeInputSetter(){this._adapter.extendNativeInputSetter(this._syncRadiogroupCheckStyles)}_addRadioChangeListener(){this._adapter.addInputEventListener("change",this._syncRadiogroupCheckStyles)}_removeRadioChangeListener(){this._adapter.removeInputEventListener("change",this._syncRadiogroupCheckStyles)}_addFocusEventListeners(){this._adapter.addInputEventListener("focus",this._focusListenerCallback),this._adapter.addInputEventListener("blur",this._focusListenerCallback)}_removeFocusEventListeners(){this._adapter.removeInputEventListener("focus",this._focusListenerCallback),this._adapter.removeInputEventListener("blur",this._focusListenerCallback)}_addInputDisabledListener(){this._adapter.addInputDisabledAttributeChangeListener(this._disabledListenerCallback)}_removeInputDisabledListener(){this._adapter.removeInputDisabledAttributeChangeListener()}get dense(){return this._dense}set dense(e){this._dense!==e&&(this._dense=e,this._applyDense())}};var c=class{constructor(e){this._component=e;this._rootElement=m(this._component,i.selectors.RADIO),this._containerElement=m(this._component,i.selectors.WRAPPER)}get root(){return this._rootElement}get unbounded(){return!0}get disabled(){return this._isDisabled()}connect(){let e=this._component.querySelector(i.selectors.LABEL);e&&e.setAttribute(i.attributes.SLOT,i.selectors.LABEL)}async deferRippleInitialization(){typeof this._destroyUserInteractionListener=="function"&&this._destroyUserInteractionListener();let{userInteraction:e,destroy:t}=z(this._rootElement);this._destroyUserInteractionListener=t;let{type:r}=await e;this._destroyUserInteractionListener=void 0,this._component.isConnected&&(this._rippleInstance=this._createRipple(),r==="focusin"&&this._rippleInstance.handleFocus())}destroyRipple(){var e;typeof this._destroyUserInteractionListener=="function"&&(this._destroyUserInteractionListener(),this._destroyUserInteractionListener=void 0),(e=this._rippleInstance)==null||e.destroy(),this._rippleInstance=void 0}setHostAttribute(e,t=""){this._component.setAttribute(e,t)}removeHostAttribute(e){this._component.removeAttribute(e)}addRootClass(e){this._rootElement.classList.add(e)}removeRootClass(e){this._rootElement.classList.remove(e)}addContainerClass(e){this._containerElement.classList.add(e)}removeContainerClass(e){this._containerElement.classList.remove(e)}syncDisabledStateWithInput(){this.inputDisabled?(this.addRootClass(i.classes.DISABLED),this.removeRootClass(i.classes.ENABLED),this.addContainerClass(i.classes.WRAPPER_DISABLED)):(this.addRootClass(i.classes.ENABLED),this.removeRootClass(i.classes.DISABLED),this.removeContainerClass(i.classes.WRAPPER_DISABLED))}syncFocusedStateWithInput(){k(this._component.ownerDocument)===this._inputElement?this.addRootClass(i.classes.FOCUSED):this.removeRootClass(i.classes.FOCUSED)}syncCheckedStateWithInput(){this.inputChecked?this.addRootClass(i.classes.CHECKED):this.removeRootClass(i.classes.CHECKED)}addInputEventListener(e,t){!this._inputElement||this._inputElement.addEventListener(e,t)}removeInputEventListener(e,t){!this._inputElement||this._inputElement.removeEventListener(e,t)}addInputDisabledAttributeChangeListener(e){this._setupInputDisabledAttributeMutationObserver(e)}removeInputDisabledAttributeChangeListener(){this._cleanupInputDisabledAttributeMutationObserver()}getRadiosFromContainingRadiogroup(){let e=this._getContainingRadioGroup(this._component);return e==null?null:e.querySelectorAll(i.elementName)}syncRadiogroupCheckStyles(){let e=this.getRadiosFromContainingRadiogroup();e&&e.forEach(t=>t.syncCheckedState())}extendNativeInputSetter(e){if(!this._inputElement)return;let t=this._inputElement,r=Object.getPrototypeOf(t);i.inputProperties.forEach(o=>{let a=Object.getOwnPropertyDescriptor(r,o);if(!!this._validPropertyDescriptor(a)&&a){let f={configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:l=>{var s;(s=a.set)==null||s.call(t,l),e()}};Object.defineProperty(t,o,f)}})}revertNativeInputSetter(){if(!this._inputElement)return;let e=this._inputElement,t=Object.getPrototypeOf(e);i.inputProperties.forEach(r=>{let o=Object.getOwnPropertyDescriptor(t,r);!this._validPropertyDescriptor(o)||Object.defineProperty(e,r,o)})}_validPropertyDescriptor(e){return!!e&&typeof e.set=="function"}_getContainingRadioGroup(e){if(!e||!e.parentElement)throw new Error('Unable to locate ancestor element with role="radiogroup". When using radios, a parent with this attribute must be applied.');let t=e.parentElement,r=t.getAttribute(i.attributes.ROLE);return!!r&&r.toLocaleLowerCase()===i.attributes.RADIOGROUP_ROLE.toLocaleLowerCase()?t:this._getContainingRadioGroup(t)}_setupInputDisabledAttributeMutationObserver(e){if(!this._inputElement)return;this._cleanupInputDisabledAttributeMutationObserver();let t=o=>this._inputDisabledAttributeMutationCallback(o,e);this._inputAttributeMutationObserver=new MutationObserver(t);let r={attributes:!0,attributeOldValue:!0,attributeFilter:["disabled"]};this._inputAttributeMutationObserver.observe(this._inputElement,r)}_cleanupInputDisabledAttributeMutationObserver(){this._inputAttributeMutationObserver&&(this._inputAttributeMutationObserver.disconnect(),delete this._inputAttributeMutationObserver)}_inputDisabledAttributeMutationCallback(e,t){for(let r of e)r.type!=="attributes"||!r.attributeName||r.attributeName!=="disabled"||r.target[r.attributeName]===r.oldValue||t()}get inputDisabled(){return this._inputElement?this._inputElement.disabled:!1}get inputChecked(){return this._inputElement?this._inputElement.checked:!1}get _inputElement(){return this._nativeInputElement||(this._nativeInputElement=this._component.querySelector(i.selectors.RADIO_INPUT)),this._nativeInputElement}_isDisabled(){return this._inputElement?this._inputElement.disabled:!1}_createRipple(){let e=h(g({},b.createAdapter(this)),{deregisterInteractionHandler:(t,r)=>{this._inputElement&&this._inputElement.removeEventListener(t,r,{passive:!0})},isSurfaceActive:()=>this._inputElement?this._inputElement.matches(":active"):!1,isUnbounded:()=>Boolean(this.unbounded),registerInteractionHandler:(t,r)=>{this._inputElement&&this._inputElement.addEventListener(t,r,{passive:!0})},isSurfaceDisabled:()=>this._inputElement?this._inputElement.disabled:!1,addClass:t=>v(t,this._rootElement),removeClass:t=>y(t,this._rootElement),updateCssVariable:(t,r)=>this._rootElement.style.setProperty(t,r)});return new b(this._rootElement,new R(e))}};var L='<template><div class="forge-radio-wrapper forge-form-field" part="root"><div class="mdc-radio" part="container"><slot></slot><div class="mdc-radio__background" part="background"><div class="mdc-radio__outer-circle" part="outer-circle"></div><div class="mdc-radio__inner-circle" part="inner-circle"></div></div><div class="mdc-radio__ripple" part="ripple-container"></div></div><slot name="label"></slot></div></template>',D='.mdc-radio{padding:10px;display:inline-block;position:relative;-webkit-box-flex:0;flex:0 0 auto;-webkit-box-sizing:content-box;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio.forge-radio--enabled .mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.54);border-color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.mdc-radio.forge-radio--enabled.forge-radio--checked .mdc-radio__background .mdc-radio__outer-circle{border-color:#3d5afe;border-color:var(--forge-theme-tertiary,#3d5afe)}.mdc-radio.forge-radio--enabled .mdc-radio__background .mdc-radio__inner-circle{border-color:#3d5afe;border-color:var(--forge-theme-tertiary,#3d5afe)}.mdc-radio.mdc-radio--disabled .mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.26);border-color:var(--forge-theme-form-field-icon-disabled-on-background,rgba(0,0,0,.26))}.mdc-radio.mdc-radio--disabled.forge-radio--checked .mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0,0,0,.26);border-color:var(--forge-theme-form-field-icon-disabled-on-background,rgba(0,0,0,.26))}.mdc-radio.mdc-radio--disabled .mdc-radio__background .mdc-radio__inner-circle{border-color:rgba(0,0,0,.26);border-color:var(--forge-theme-form-field-icon-disabled-on-background,rgba(0,0,0,.26))}.mdc-radio .mdc-radio__background::before{background-color:#3d5afe;background-color:var(--forge-theme-tertiary,#3d5afe)}.mdc-radio .mdc-radio__background::before{top:-10px;left:-10px;width:40px;height:40px}.mdc-radio .mdc-radio__native-control{top:0;right:0;left:0;width:40px;height:40px}@media screen and (forced-colors:active),(-ms-high-contrast:active){.mdc-radio.mdc-radio--disabled .mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio.mdc-radio--disabled.forge-radio--checked .mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio.mdc-radio--disabled .mdc-radio__background .mdc-radio__inner-circle{border-color:GrayText}}.mdc-radio__background{display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;-webkit-transform:scale(0,0);transform:scale(0,0);border-radius:50%;opacity:0;pointer-events:none;content:"";-webkit-transition:opacity 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:opacity 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:opacity 120ms 0s cubic-bezier(.4, 0, .6, 1),transform 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:opacity 120ms 0s cubic-bezier(.4, 0, .6, 1),transform 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;-webkit-transition:border-color 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:border-color 120ms 0s cubic-bezier(.4, 0, .6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;-webkit-transform:scale(0,0);transform:scale(0,0);border-width:10px;border-style:solid;border-radius:50%;-webkit-transition:border-color 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:border-color 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:transform 120ms 0s cubic-bezier(.4, 0, .6, 1),border-color 120ms 0s cubic-bezier(.4, 0, .6, 1);transition:transform 120ms 0s cubic-bezier(.4, 0, .6, 1),border-color 120ms 0s cubic-bezier(.4, 0, .6, 1),-webkit-transform 120ms 0s cubic-bezier(.4, 0, .6, 1)}.mdc-radio ::slotted(input[type=radio]){position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;top:0;right:0;left:0;width:40px;height:40px}.mdc-radio.forge-radio--dense{padding:4px;margin:0}.mdc-radio.forge-radio--dense .mdc-radio__background::before{top:-4px;left:-4px;width:28px;height:28px}.mdc-radio.forge-radio--dense .mdc-radio__native-control{top:0;right:0;left:0;width:28px;height:28px}.mdc-radio.forge-radio--dense ::slotted(input[type=radio]){width:28px;height:28px}.mdc-radio--disabled+::slotted(label){color:rgba(0,0,0,.38);color:var(--forge-theme-label-disabled-on-background,rgba(0,0,0,.38))}.forge-radio--checked .mdc-radio__background,.mdc-radio--disabled .mdc-radio__background{-webkit-transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),transform 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1)}.forge-radio--checked .mdc-radio__background .mdc-radio__outer-circle,.mdc-radio--disabled .mdc-radio__background .mdc-radio__outer-circle{-webkit-transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1);transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1)}.forge-radio--checked .mdc-radio__background .mdc-radio__inner-circle,.mdc-radio--disabled .mdc-radio__background .mdc-radio__inner-circle{-webkit-transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 120ms 0s cubic-bezier(0, 0, .2, 1),border-color 120ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 120ms 0s cubic-bezier(0, 0, .2, 1),border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.forge-radio--checked .mdc-radio__background .mdc-radio__inner-circle{-webkit-transform:scale(.5);transform:scale(.5);-webkit-transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 120ms 0s cubic-bezier(0, 0, .2, 1),border-color 120ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 120ms 0s cubic-bezier(0, 0, .2, 1),border-color 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1)}.mdc-radio--disabled .mdc-radio__background{cursor:default}.forge-radio--focused .mdc-radio__background::before{-webkit-transform:scale(1);transform:scale(1);opacity:.12;-webkit-transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),transform 120ms 0s cubic-bezier(0, 0, .2, 1);transition:opacity 120ms 0s cubic-bezier(0, 0, .2, 1),transform 120ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 120ms 0s cubic-bezier(0, 0, .2, 1)}@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-radio{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity}.mdc-radio .mdc-radio__ripple::after,.mdc-radio .mdc-radio__ripple::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-radio .mdc-radio__ripple::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-radio .mdc-radio__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.mdc-radio.mdc-ripple-upgraded--unbounded .mdc-radio__ripple::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-radio.mdc-ripple-upgraded--foreground-activation .mdc-radio__ripple::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-radio.mdc-ripple-upgraded--foreground-deactivation .mdc-radio__ripple::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-radio .mdc-radio__ripple::after,.mdc-radio .mdc-radio__ripple::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after,.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-radio .mdc-radio__ripple::after,.mdc-radio .mdc-radio__ripple::before{background-color:#3d5afe;background-color:var(--forge-theme-tertiary,#3d5afe)}.mdc-radio.mdc-ripple-surface--hover .mdc-radio__ripple::before,.mdc-radio:hover .mdc-radio__ripple::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__ripple::before,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__ripple::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-radio:not(.mdc-ripple-upgraded) .mdc-radio__ripple::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.mdc-radio:not(.mdc-ripple-upgraded):active .mdc-radio__ripple::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-radio.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-radio.mdc-ripple-upgraded .mdc-radio__background::before,.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__background::before{content:none}.mdc-radio__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.forge-radio-wrapper--disabled{cursor:not-allowed}.forge-radio-wrapper--disabled ::slotted(label){cursor:not-allowed}.forge-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;vertical-align:middle}.forge-form-field ::slotted([slot=label]){-webkit-box-ordinal-group:1;order:0;margin-right:auto;padding-left:4px}.forge-form-field forge-switch~::slotted([slot=label]){padding-left:8px}.forge-form-field--align-end ::slotted([slot=label]){-webkit-box-ordinal-group:0;order:-1;margin-left:auto;padding-right:4px}:host{display:inline-block}:host([hidden]){display:none}',n=class extends x{constructor(){super();w(this,L,D),this._foundation=new d(new c(this))}static get observedAttributes(){return[i.attributes.DENSE]}connectedCallback(){this._ensureRadioInputElement().then(()=>this._foundation.connect())}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(t,r,o){switch(t){case i.attributes.DENSE:this.dense=_(o);break}}_ensureRadioInputElement(){return new Promise(t=>{if(this.querySelector(i.selectors.RADIO_INPUT)){t();return}let o=new MutationObserver(a=>{a.reduce((l,s)=>l+s.addedNodes.length,0)>0&&this.querySelector(i.selectors.RADIO_INPUT)&&(o.disconnect(),t())});o.observe(this,{childList:!0,subtree:!0})})}syncCheckedState(){this._foundation.syncCheckedState()}};p([C()],n.prototype,"dense",2),n=p([I({name:i.elementName})],n);function Q(){E(n)}export{n as a,Q as b};
|
|
7
|
+
//# sourceMappingURL=chunk.AFW54X3W.js.map
|