@esri/calcite-components 5.2.1-next.1 → 5.2.1-next.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/dist/cdn/{2D3W3IJ7.js → 2BC6XEQR.js} +1 -1
- package/dist/cdn/{VSHLSN2G.js → 2BWFYMWU.js} +1 -1
- package/dist/cdn/{XZLFWYKP.js → 2CH52GNQ.js} +1 -1
- package/dist/cdn/{KTZVPGOU.js → 2M32OB6Z.js} +1 -1
- package/dist/cdn/{DUJO7X4L.js → 32GL6OD7.js} +1 -1
- package/dist/cdn/{PHWQYJHY.js → 3DR6XUK2.js} +1 -1
- package/dist/cdn/{TATVB4CC.js → 3LRQ2Q6N.js} +1 -1
- package/dist/cdn/{7EOLSREK.js → 3UJTJZIM.js} +1 -1
- package/dist/cdn/{HS4H3A7N.js → 4B7E5HVJ.js} +1 -1
- package/dist/cdn/{FD62O57O.js → 4GP7Y2SJ.js} +1 -1
- package/dist/cdn/{ICD2JOTU.js → 4H2JHQJI.js} +1 -1
- package/dist/cdn/{5GYMOLMB.js → 4O2F7P2K.js} +1 -1
- package/dist/cdn/{HJWEMAQW.js → 4ZSCQZAH.js} +1 -1
- package/dist/cdn/{LJHRM324.js → 57INRABK.js} +1 -1
- package/dist/cdn/{FO4RVNED.js → 5B2CNALY.js} +1 -1
- package/dist/cdn/{BY66KZBA.js → 5HAQIGGH.js} +1 -1
- package/dist/cdn/{DDTQMFDA.js → 5IQWUVJ2.js} +1 -1
- package/dist/cdn/{PZ6BOJMA.js → 5NFMURRE.js} +1 -1
- package/dist/cdn/{C2WNLXMX.js → 5OCVOZWC.js} +1 -1
- package/dist/cdn/{TVFDLI2M.js → 5QMNF4NQ.js} +1 -1
- package/dist/cdn/{APY54C5Q.js → 5QSLEGLG.js} +1 -1
- package/dist/cdn/{VTCMV5CY.js → 66URCJRJ.js} +1 -1
- package/dist/cdn/{ZR5QSMXI.js → 6AYD6QWQ.js} +1 -1
- package/dist/cdn/{XLOVBA75.js → 6V734JQA.js} +1 -1
- package/dist/cdn/{RBQTMFDU.js → 754YWHMD.js} +1 -1
- package/dist/cdn/{VJ76IZRG.js → 7EDVIRNF.js} +1 -1
- package/dist/cdn/{PZISTOV3.js → 7KFK6UMQ.js} +1 -1
- package/dist/cdn/{3GWFDJCN.js → 7QHWXOG6.js} +1 -1
- package/dist/cdn/{4IQE2ARX.js → 7VFBNIEQ.js} +1 -1
- package/dist/cdn/{OP6JQVZ4.js → 7WT7RASO.js} +1 -1
- package/dist/cdn/{IWNVWJQF.js → 7X2ZE26K.js} +1 -1
- package/dist/cdn/{V7HWKMGY.js → A2A6BPAO.js} +1 -1
- package/dist/cdn/{UDHNBZCV.js → AIVE2G3F.js} +1 -1
- package/dist/cdn/{YCXPVQ7W.js → ALN37MWW.js} +1 -1
- package/dist/cdn/{OAMSAV2V.js → AWRQDF22.js} +1 -1
- package/dist/cdn/{ACBM3IW2.js → B77TO2FE.js} +1 -1
- package/dist/cdn/{MEYED6AA.js → BMFDHX5K.js} +1 -1
- package/dist/cdn/{MARAT4PA.js → BTXEZX2E.js} +1 -1
- package/dist/cdn/{X2BNZPP5.js → BV3G36AA.js} +1 -1
- package/dist/cdn/{J4FDQTTT.js → BW27WG4V.js} +1 -1
- package/dist/cdn/{UFU62KUF.js → BW3W2JV4.js} +1 -1
- package/dist/cdn/{YKONY7MP.js → C6UONLQJ.js} +1 -1
- package/dist/cdn/{MFFPFDN3.js → CITATLBN.js} +1 -1
- package/dist/cdn/{KAYO4LFV.js → CPFUUBDA.js} +1 -1
- package/dist/cdn/{GU2BP4QQ.js → CR5RLTY7.js} +1 -1
- package/dist/cdn/{7XB2K344.js → CS4QQQQ6.js} +1 -1
- package/dist/cdn/{64NIPUAV.js → D6FUGXVO.js} +1 -1
- package/dist/cdn/{JCBILJ2V.js → DAHNK7HU.js} +1 -1
- package/dist/cdn/{47Z5RMLP.js → DCPRVIOV.js} +1 -1
- package/dist/cdn/{GZK5WJ57.js → DEJ4PCXW.js} +1 -1
- package/dist/cdn/{5AD32FNC.js → DMIVIN3O.js} +1 -1
- package/dist/cdn/{XXOAU6A6.js → DSLFGBDZ.js} +1 -1
- package/dist/cdn/{OV37KUDF.js → DWGXV3I4.js} +1 -1
- package/dist/cdn/{TPQJE4JZ.js → E6ZBXXZO.js} +1 -1
- package/dist/cdn/{5ZE2XVOM.js → EFNBCCF3.js} +1 -1
- package/dist/cdn/{D5UFORTB.js → EHODVFUU.js} +1 -1
- package/dist/cdn/{5556K4BZ.js → F7SSLALU.js} +1 -1
- package/dist/cdn/{KNM4EYT2.js → FPU447H2.js} +1 -1
- package/dist/cdn/{5LJME53S.js → FXCRLC3T.js} +1 -1
- package/dist/cdn/{BWWNPXLU.js → GGU7TV4F.js} +1 -1
- package/dist/cdn/{HECTUDZW.js → GJRUBNCB.js} +1 -1
- package/dist/cdn/{O5CHXKZB.js → GMXFPTA7.js} +1 -1
- package/dist/cdn/{CCTCXJLB.js → GOFJHC6K.js} +1 -1
- package/dist/cdn/{4XQHBRZ7.js → HFO7F2DK.js} +1 -1
- package/dist/cdn/{P6OIT6IA.js → I6IRJGWA.js} +1 -1
- package/dist/cdn/IB4REEGW.js +2 -0
- package/dist/cdn/{V7TTZUDU.js → IGY3A42N.js} +1 -1
- package/dist/cdn/{7H6FLFWC.js → IH4AMPBO.js} +1 -1
- package/dist/cdn/{AELDKEOJ.js → ITNEYONG.js} +1 -1
- package/dist/cdn/{7LLTCDHJ.js → IWG6RMKN.js} +1 -1
- package/dist/cdn/{JDZ2MHQT.js → JKQVUBHH.js} +1 -1
- package/dist/cdn/{HY4HUXH6.js → JLD2TVF6.js} +1 -1
- package/dist/cdn/{EXSMXNI5.js → JWTFDPZT.js} +1 -1
- package/dist/cdn/{GMNGDJJC.js → K7QC2ZDU.js} +1 -1
- package/dist/cdn/{ZHGUFPES.js → KJNLKQIQ.js} +1 -1
- package/dist/cdn/{J6WVHSUH.js → KSUF3NIF.js} +1 -1
- package/dist/cdn/{K2YNA4H3.js → LJBXISRW.js} +1 -1
- package/dist/cdn/{UNE3GNGY.js → LOUCDQ4W.js} +1 -1
- package/dist/cdn/{6DJ54R3E.js → LUVFKHWX.js} +1 -1
- package/dist/cdn/{DVFQX2S4.js → LZNA2NKS.js} +1 -1
- package/dist/cdn/{DUJAGFCN.js → M3PM3ZC5.js} +1 -1
- package/dist/cdn/{XK74BWBY.js → MHL7SSC6.js} +1 -1
- package/dist/cdn/{LIZMYMWX.js → MQJQXVDT.js} +1 -1
- package/dist/cdn/{ZWFV7IQF.js → N4GQLOFC.js} +1 -1
- package/dist/cdn/{UVP2URZU.js → NFCNTQQT.js} +1 -1
- package/dist/cdn/{MVZLR322.js → NISQASUR.js} +1 -1
- package/dist/cdn/{NR7C6THM.js → NPCPOUTG.js} +1 -1
- package/dist/cdn/{RPISQOOV.js → NPHIXWAI.js} +1 -1
- package/dist/cdn/{T7HJQVEM.js → O3YUATA7.js} +1 -1
- package/dist/cdn/{PZR2UCSY.js → OC25ZSXR.js} +1 -1
- package/dist/cdn/{NWGPLN5U.js → ODDVU6HH.js} +1 -1
- package/dist/cdn/{QP72DRA5.js → ONJQP2QF.js} +1 -1
- package/dist/cdn/{AVD27JPN.js → OU3ELGWB.js} +1 -1
- package/dist/cdn/{36ACS6PW.js → OZTYJIXS.js} +1 -1
- package/dist/cdn/{JD4HX7DK.js → PC5XT27S.js} +1 -1
- package/dist/cdn/{VSXELWUP.js → PNZG7XVI.js} +1 -1
- package/dist/cdn/{3TXOTJWU.js → POJ34CKO.js} +1 -1
- package/dist/cdn/{LOOSUYOK.js → PTOXQLN4.js} +1 -1
- package/dist/cdn/{KWD32TN7.js → QCRCWN75.js} +1 -1
- package/dist/cdn/{K2ZOLTIS.js → QEHLFY6B.js} +1 -1
- package/dist/cdn/{XEMVN7E4.js → QQQW3Q4O.js} +1 -1
- package/dist/cdn/{XKXQ2FRV.js → QR3WS5SG.js} +1 -1
- package/dist/cdn/{3M33VOCN.js → QTN52AZZ.js} +1 -1
- package/dist/cdn/{FONZCTE7.js → QYTU4N7H.js} +1 -1
- package/dist/cdn/{WALL5ANN.js → R5VP3JJ4.js} +1 -1
- package/dist/cdn/{SYUFT6VK.js → RCKVR5UE.js} +1 -1
- package/dist/cdn/{7YGZMDMH.js → RMXCUZS7.js} +1 -1
- package/dist/cdn/{5RUJDIZK.js → RN4N3S76.js} +1 -1
- package/dist/cdn/{GYJG77U2.js → RNP7WMCG.js} +1 -1
- package/dist/cdn/{MMMV7Y53.js → RPKC6E2Z.js} +1 -1
- package/dist/cdn/{UA5INVKE.js → S2UQHU6U.js} +1 -1
- package/dist/cdn/{TRCQ6XST.js → S7AGZIOA.js} +1 -1
- package/dist/cdn/{Q6SREDS6.js → SN52MIVD.js} +1 -1
- package/dist/cdn/{VGORLOF5.js → SPTBEPX3.js} +1 -1
- package/dist/cdn/{L3ZV6YAX.js → SQX6RUIY.js} +1 -1
- package/dist/cdn/{STWSSBRR.js → TG37NSVB.js} +1 -1
- package/dist/cdn/{GCCS2QAE.js → TNNI7MPZ.js} +1 -1
- package/dist/cdn/{VA3FXJ4L.js → TX2XJPMN.js} +1 -1
- package/dist/cdn/{2J63RKHC.js → U2IAZX73.js} +1 -1
- package/dist/cdn/{2KDRWAEX.js → U3YG6WDQ.js} +1 -1
- package/dist/cdn/{YLCZ6YH7.js → UBSGG3MZ.js} +1 -1
- package/dist/cdn/{YFGEBKZW.js → UG4ISMWE.js} +1 -1
- package/dist/cdn/{OCQGIPGM.js → UGUS6UV4.js} +1 -1
- package/dist/cdn/{EC7SRA3Y.js → UP27XAGF.js} +1 -1
- package/dist/cdn/{47IYU4JY.js → US7OH74Z.js} +1 -1
- package/dist/cdn/{7YIFSPHX.js → UWMSPEMD.js} +1 -1
- package/dist/cdn/{G4W7IVVU.js → V6XMYWUP.js} +1 -1
- package/dist/cdn/{475FWYXJ.js → VINTCRI4.js} +1 -1
- package/dist/cdn/{HY2MTBJL.js → VM5EQZC2.js} +1 -1
- package/dist/cdn/{34WBVPQS.js → VTZSAH53.js} +1 -1
- package/dist/cdn/{FKMLUGXQ.js → VWFXENR4.js} +1 -1
- package/dist/cdn/{AOSRQMDX.js → VXFZZLN5.js} +1 -1
- package/dist/cdn/{6HQ4CWFB.js → WG7232JG.js} +1 -1
- package/dist/cdn/{QOJAP6IQ.js → WR4TIONE.js} +1 -1
- package/dist/cdn/{UJVWFZIC.js → X33Q3HNC.js} +1 -1
- package/dist/cdn/{PPCVJI7W.js → XDGXIEBN.js} +1 -1
- package/dist/cdn/{KQOO3YMM.js → XK6LG672.js} +1 -1
- package/dist/cdn/{3ZN63BYS.js → XMS57KJK.js} +1 -1
- package/dist/cdn/{JYYONGWF.js → YKAV2JPA.js} +1 -1
- package/dist/cdn/{6GTRKPTR.js → ZNF2XKRD.js} +1 -1
- package/dist/cdn/{HS6EEDUA.js → ZSWGWFDK.js} +1 -1
- package/dist/cdn/{FGGSTAGP.js → ZWYX6TAE.js} +1 -1
- package/dist/cdn/{WSSWK3CM.js → ZZVJ6JVG.js} +1 -1
- package/dist/cdn/assets/icon/spectralProfile16.json +1 -0
- package/dist/cdn/assets/icon/spectralProfile24.json +1 -0
- package/dist/cdn/assets/icon/spectralProfile32.json +1 -0
- package/dist/cdn/assets/icon/temporalProfile16.json +1 -0
- package/dist/cdn/assets/icon/temporalProfile24.json +1 -0
- package/dist/cdn/assets/icon/temporalProfile32.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +3 -3
- package/dist/components/calcite-rating/customElement.js +8 -6
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +3 -3
- package/dist/cdn/SNRRWK5T.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as Ce,d as q,e as fe}from"./YJPIZ6DX.js";import{a as ce}from"./5556K4BZ.js";import{A as P,B as de,C as G,D as ue,E as pe,a as k,b as r,c as m,d as I,e as E,f,g as j,h as b,i as D,j as U,k as W,m as N,n as O,o as B,s as R,t as S,v as he,x as _,y as V,z as X}from"./TXTWTIAM.js";import"./EM6V55GC.js";import{a as le}from"./DUJAGFCN.js";import{a as F}from"./5ZE2XVOM.js";import{a as re}from"./4XQHBRZ7.js";import{c as H}from"./3XS7XZAX.js";import{a as ne}from"./YP3AYJH3.js";import{a as ie}from"./VI7SBYXT.js";import{a as se}from"./36ACS6PW.js";import{a as ae}from"./TVFDLI2M.js";import"./ZWPNZ5XW.js";import{e as oe}from"./UVP2URZU.js";import"./JD4HX7DK.js";import{B as K}from"./DJD3CC5A.js";import{E as T,F as g,G as ee,H as h,I as $,Q as x,T as te,g as Q,h as p,l as w,p as L}from"./3TXOTJWU.js";var Te=Q`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);display:inline-block;font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));inline-size:var(--calcite-internal-color-picker-min-width);min-inline-size:var(--calcite-internal-color-picker-min-width)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-internal-color-picker-min-width: 200px;--calcite-color-picker-spacing: var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]){--calcite-internal-color-picker-min-width: 240px;--calcite-color-picker-spacing: var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]){--calcite-internal-color-picker-min-width: 304px;--calcite-color-picker-spacing: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .control-section{display:flex;flex-direction:column;flex-wrap:wrap;align-items:baseline}:host([scale=l]) .color-hex-options{inline-size:100%;display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}calcite-input-number{--calcite-input-number-background-color: var(--calcite-color-picker-input-background-color);--calcite-input-number-border-color: var(--calcite-color-picker-input-border-color);--calcite-input-number-text-color: var(--calcite-color-picker-input-text-color);--calcite-input-prefix-text-color: var(--calcite-color-picker-input-prefix-text-color);--calcite-input-suffix-text-color: var(--calcite-color-picker-input-suffix-text-color)}calcite-button{--calcite-button-text-color: var(--calcite-color-picker-action-text-color);--calcite-button-text-color-press: var(--calcite-color-picker-action-text-color-press)}calcite-button:hover,calcite-button:focus{--calcite-button-text-color: var(--calcite-color-picker-action-text-color-hover)}calcite-button:active{--calcite-button-text-color: var(--calcite-color-picker-action-text-color-press)}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-picker-tab-border-color);--calcite-tab-text-color: var(--calcite-color-picker-tab-text-color);--calcite-tab-accent-color-press: var(--calcite-color-picker-tab-accent-color);--calcite-swatch-corner-radius: var(--calcite-color-picker-swatch-corner-radius)}calcite-tab-title:hover{--calcite-color-text-1: var(--calcite-color-picker-tab-text-color-hover)}calcite-swatch{--calcite-swatch-corner-radius: var(--calcite-color-picker-swatch-corner-radius)}.container{display:flex;flex-direction:column;block-size:min-content;border:1px solid var(--calcite-color-picker-border-color, var(--calcite-color-border-3));background-color:var(--calcite-color-picker-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));border-radius:var(--calcite-color-picker-corner-radius, var(--calcite-corner-radius));box-shadow:var(--calcite-color-picker-shadow, var(--calcite-shadow-none))}.control-and-scope{display:flex;position:relative;cursor:pointer;touch-action:none}.color-field,.control-and-scope{-webkit-user-select:none;user-select:none;border-radius:var(--calcite-color-picker-corner-radius, var(--calcite-corner-radius)) var(--calcite-color-picker-corner-radius, var(--calcite-corner-radius)) var(--calcite-corner-radius-none) var(--calcite-corner-radius-none)}.scope{font-size:var(--calcite-font-size-relative-base);outline-color:transparent;position:absolute;z-index:var(--calcite-z-index);border-radius:var(--calcite-corner-radius-pill);background-color:transparent;inline-size:var(--calcite-size-px);block-size:var(--calcite-size-px);pointer-events:none}.scope:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)));outline-offset:6px}.hex-and-channels-group{display:flex;flex-direction:column;flex-wrap:wrap;inline-size:100%}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing);gap:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-color-picker-text-color, var(--calcite-color-text-1))}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex}.channel{flex-grow:1}.channel[data-channel-index="3"]{margin-inline-start:-1px;min-inline-size:81px}:host([scale=s]) .channel[data-channel-index="3"]{min-inline-size:68px}:host([scale=l]) .channel[data-channel-index="3"]{min-inline-size:88px}.saved-colors-buttons{display:flex}.swatch-group{margin-block-start:var(--calcite-color-picker-spacing)}:host([hidden]){display:none}[hidden]{display:none}`,ve=16,Y=class extends ee{constructor(){super(),this._color=m,this.colorFieldScopeRef=T(),this.direction=oe(),this.hueScopeRef=T(),this.isActiveChannelInputEmpty=!1,this.mode=_.HEX,this.opacityScopeRef=T(),this.resizeObserver=ie("resize",e=>this.resizeCanvas(e)),this.shiftKeyChannelAdjustment=0,this._valueWasSet=!1,this.messages=se({blocking:!0}),this.captureColorFieldColor=(e,t,i=!0)=>{let{width:a,height:o}=this.dynamicDimensions.colorField,s=Math.round(f.s/a*e),l=Math.round(f.v/o*(o-t));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(s).value(l),i)},this.cancelable=re()(this),this.drawColorControls=H((e="all")=>{(e==="all"||e==="color-field")&&this.colorFieldRenderingContext&&this.drawColorField(),(e==="all"||e==="hue-slider")&&this.hueSliderRenderingContext&&this.drawHueSlider(),this.alphaChannel&&(e==="all"||e==="opacity-slider")&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()},ve),this.globalPointerMoveHandler=e=>{let{activeCanvasInfo:t,el:i}=this;if(!i.isConnected||!t)return;let{context:a,bounds:o}=t,s,l,{clientX:c,clientY:n}=e;a.canvas.matches(":hover")?(s=c-o.x,l=n-o.y):(c<o.x+o.width&&c>o.x?s=c-o.x:c<o.x?s=0:s=o.width,n<o.y+o.height&&n>o.y?l=n-o.y:n<o.y?l=0:l=o.height),a===this.colorFieldRenderingContext?this.captureColorFieldColor(s,l,!1):a===this.hueSliderRenderingContext?this.captureHueSliderColor(s):a===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(s)},this.globalPointerUpHandler=e=>{if(!K(e))return;let t=this.activeCanvasInfo;this.activeCanvasInfo=void 0,this.drawColorControls(),t&&this.calciteColorPickerChange.emit()},this.resizeCanvas=H(e=>{if(!this.hasUpdated)return;let[t]=e,i=Math.floor(t.contentBoxSize[0].inlineSize);this.dynamicDimensions.colorField.width!==i&&(this.updateDynamicDimensions(i),this.updateCanvasSize(),this.drawColorControls())},ve),this.updateDynamicDimensions=e=>{let t={width:ue(e,this.staticDimensions,this.alphaChannel),height:this.staticDimensions.slider.height};this.dynamicDimensions={colorField:pe(e),slider:t}},this.focusSetter=ae()(this),this.interactiveContainer=le(this),this.channelMode="rgb",this.channels=this.toChannels(m),this.staticDimensions=D.m,this.savedColors=[],this.alphaChannel=!1,this.channelsDisabled=!1,this.clearable=!1,this.disabled=!1,this.fieldDisabled=!1,this.format="auto",this.hexDisabled=!1,this.savedDisabled=!1,this.scale="m",this.calciteColorPickerChange=L({cancelable:!1}),this.calciteColorPickerInput=L({cancelable:!1}),this.listen("keydown",this.handleChannelKeyUpOrDown,{capture:!0}),this.listen("keyup",this.handleChannelKeyUpOrDown,{capture:!0})}static{this.properties={channelMode:[16,{},{state:!0}],channels:[16,{},{state:!0}],colorFieldScopeLeft:[16,{},{state:!0}],colorFieldScopeTop:[16,{},{state:!0}],staticDimensions:[16,{},{state:!0}],hueScopeLeft:[16,{},{state:!0}],opacityScopeLeft:[16,{},{state:!0}],savedColors:[16,{},{state:!0}],scopeOrientation:[16,{},{state:!0}],alphaChannel:[5,{},{type:Boolean}],channelsDisabled:[5,{},{type:Boolean}],clearable:[7,{},{reflect:!0,type:Boolean}],color:[0,{},{attribute:!1}],disabled:[7,{},{reflect:!0,type:Boolean}],fieldDisabled:[7,{},{reflect:!0,type:Boolean}],format:[3,{},{reflect:!0}],hexDisabled:[5,{},{type:Boolean}],messageOverrides:[0,{},{attribute:!1}],numberingSystem:[3,{},{reflect:!0}],savedDisabled:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],storageId:[3,{},{reflect:!0}],value:1}}static{this.styles=Te}get baseColorFieldColor(){return this.color||this.previousColor||m}get effectiveSliderWidth(){return this.dynamicDimensions.slider.width}get color(){return this._color}set color(e){let t=this._color;this._color=e,this.handleColorChange(e,t)}get value(){return this._value}set value(e){let t=this._value,i=e||void 0;this._value=i,this.handleValueChange(i,t),this._valueWasSet=!0}async setFocus(e){return this.focusSetter(()=>this.el,e)}connectedCallback(){super.connectedCallback(),this.observeResize(),this.cancelable.add([this.drawColorControls,this.resizeCanvas])}async load(){this._valueWasSet||(this._value??=R(S(m,this.alphaChannel)));let{clearable:e,color:t,format:i}=this,a=this.value,o=e&&!a,s=V(a),l=o||i==="auto"&&s||i===s,c=l?N(a,e,s):t;l||this.showIncompatibleColorWarning(a,i),this.setMode(i,!1),this.internalColorSet(c,!1,"initial"),this.updateStaticDimensions(this.scale),this.updateDynamicDimensions(D[this.scale].minWidth);let n=`${I}${this.storageId}`;if(this.storageId){let d=localStorage.getItem(n);d&&(this.savedColors=JSON.parse(d))}}willUpdate(e){e.has("alphaChannel")&&(this.hasUpdated||this.alphaChannel!==!1)&&this.handleAlphaChannelChange(this.alphaChannel),this.hasUpdated&&(e.has("alphaChannel")&&this.alphaChannel!==!1||e.has("staticDimensions")&&this.staticDimensions!==D.m)&&this.handleAlphaChannelDimensionsChange(),(e.has("alphaChannel")&&(this.hasUpdated||this.alphaChannel!==!1)||e.has("format")&&(this.hasUpdated||this.format!=="auto"))&&this.handleFormatOrAlphaChannelChange(),e.has("scale")&&(this.hasUpdated||this.scale!=="m")&&this.handleScaleChange(this.scale)}loaded(){this.handleAlphaChannelDimensionsChange()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("pointermove",this.globalPointerMoveHandler),window.removeEventListener("pointerup",this.globalPointerUpHandler),this.resizeObserver?.disconnect()}observeResize(){this.resizeObserver?.observe(this.el)}handleAlphaChannelChange(e){let{format:t}=this;e&&t!=="auto"&&!P(t)&&(x.warn(`ignoring alphaChannel as the current format (${t}) does not support alpha`),this.alphaChannel=!1)}handleAlphaChannelDimensionsChange(){this.drawColorControls()}handleColorChange(e,t){this.drawColorControls(),this.updateChannelsFromColor(e),this.previousColor=t}handleFormatOrAlphaChannelChange(){this.setMode(this.format),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(e="m"){this.updateStaticDimensions(e),this.updateCanvasSize(),this.drawColorControls()}handleValueChange(e,t){let{clearable:i,format:a}=this,o=!i||e,s=!1;if(o){let d=V(e);if(!d||a!=="auto"&&d!==a){this.showIncompatibleColorWarning(e,a),this._value=t;return}s=this.mode!==d,this.setMode(d,this.internalColorUpdateContext===void 0)}let l=this.activeCanvasInfo;if(this.internalColorUpdateContext==="initial")return;if(this.internalColorUpdateContext==="user-interaction"){this.calciteColorPickerInput.emit(),l||this.calciteColorPickerChange.emit();return}let c=N(e,i,this.mode),n=!X(c,this.color);(s||n)&&this.internalColorSet(c,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css"))||this.internalColorUpdateContext==="internal","internal")}handleTabActivate(e){this.channelMode=e.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)}handleColorFieldScopeKeyDown(e){let{key:t}=e,a={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}}[t];a&&(e.preventDefault(),this.scopeOrientation=t==="ArrowDown"||t==="ArrowUp"?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft===void 0?0:this.colorFieldScopeLeft+a.x,this.colorFieldScopeTop===void 0?0:this.colorFieldScopeTop+a.y,!1))}handleHueScopeKeyDown(e){let t=e.shiftKey?10:1,{key:i}=e,o={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1}[i];if(o){e.preventDefault();let s=o*t,l=this.baseColorFieldColor.hue(),c=this.baseColorFieldColor.hue(l+s);this.internalColorSet(c,!1)}}handleHexInputChange(e){e.stopPropagation();let{clearable:t,color:i}=this,o=e.target.value;if(t&&!o){this.internalColorSet(void 0);return}let s=i&&R(S(i,P(this.mode)));o!==s&&this.internalColorSet(k(o))}handleSavedColorSelect(e){let t=e.currentTarget;this.internalColorSet(k(t.color))}handleChannelInput(e){let t=e.currentTarget,i=Number(t.getAttribute("data-channel-index")),o=i===3?b.max:this.channelMode==="rgb"?Object.values(E)[i]:Object.values(f)[i],s;if(!t.value)s="",this.isActiveChannelInputEmpty=!0,this.upOrDownArrowKeyTracker=void 0;else{let c=Number(t.value)+this.shiftKeyChannelAdjustment;s=Ce(c,0,o).toString()}t.value=s,s!==""&&this.shiftKeyChannelAdjustment!==0?this.handleChannelChange(e):s!==""&&this.handleChannelChange(e)}handleChannelBlur(e){let t=e.currentTarget,i=Number(t.getAttribute("data-channel-index")),a=[...this.channels];!t.value&&!this.clearable&&(t.value=a[i]?.toString()??"")}handleChannelFocus(e){e.currentTarget.selectText()}handleChannelKeyUpOrDown(e){this.shiftKeyChannelAdjustment=0;let{key:t}=e;if(t!=="ArrowUp"&&t!=="ArrowDown"||!e.composedPath().some(o=>o.classList?.contains(r.channel)))return;let{shiftKey:i}=e;if(e.preventDefault(),!this.color){this.internalColorSet(this.previousColor),e.stopPropagation();return}let a=9;this.shiftKeyChannelAdjustment=t==="ArrowUp"&&i?a:t==="ArrowDown"&&i?-a:0,t==="ArrowUp"&&(this.upOrDownArrowKeyTracker="up"),t==="ArrowDown"&&(this.upOrDownArrowKeyTracker="down")}getChannelInputLimit(e){return this.channelMode==="rgb"?Object.values(E)[e]:Object.values(f)[e]}handleChannelChange(e){let t=e.currentTarget,i=Number(t.getAttribute("data-channel-index"));if(this.clearable&&!t.value){this.channels=[void 0,void 0,void 0,void 0],this.internalColorSet(void 0);return}let o=[...this.channels],s=i===3;this.isActiveChannelInputEmpty&&this.upOrDownArrowKeyTracker&&(t.value=this.upOrDownArrowKeyTracker==="up"?(o[i]+1<=this.getChannelInputLimit(i)?o[i]+1:this.getChannelInputLimit(i)).toString():(o[i]-1>=0?o[i]-1:0).toString(),this.isActiveChannelInputEmpty=!1,this.upOrDownArrowKeyTracker=void 0);let l=t.value?Number(t.value):o[i];o[i]=s?B(l):l,this.updateColorFromChannels(o)}handleSavedColorKeyDown(e){ne(e.key)&&(e.preventDefault(),this.handleSavedColorSelect(e))}handleColorFieldPointerDown(e){this.handleCanvasControlPointerDown(e,this.colorFieldRenderingContext,this.captureColorFieldColor,this.colorFieldScopeRef.value)}focusScope(e){requestAnimationFrame(()=>{e.focus()})}handleHueSliderPointerDown(e){this.handleCanvasControlPointerDown(e,this.hueSliderRenderingContext,this.captureHueSliderColor,this.hueScopeRef.value)}handleOpacitySliderPointerDown(e){this.handleCanvasControlPointerDown(e,this.opacitySliderRenderingContext,this.captureOpacitySliderValue,this.opacityScopeRef.value)}handleCanvasControlPointerDown(e,t,i,a){K(e)&&(window.addEventListener("pointermove",this.globalPointerMoveHandler),window.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:t,bounds:t.canvas.getBoundingClientRect()},i.call(this,e.offsetX,e.offsetY),this.focusScope(a))}handleKeyDown(e){e.key==="Enter"&&e.preventDefault()}showIncompatibleColorWarning(e,t){x.warn(`ignoring color value (${e}) as it is not compatible with the current format (${t})`)}setMode(e,t=!0){let i=e==="auto"?this.mode:e;this.mode=this.ensureCompatibleMode(i,t)}ensureCompatibleMode(e,t){let{alphaChannel:i}=this,a=P(e);if(i&&!a){let o=de(e);return t&&x.warn(`setting format to (${o}) as the provided one (${e}) does not support alpha`),o}if(!i&&a){let o=G(e);return t&&x.warn(`setting format to (${o}) as the provided one (${e}) does not support alpha`),o}return e}captureHueSliderColor(e){let t=j/this.effectiveSliderWidth*e;this.internalColorSet(this.baseColorFieldColor.hue(t),!1)}captureOpacitySliderValue(e){let t=B(b.max/this.effectiveSliderWidth*e);this.internalColorSet(this.baseColorFieldColor.alpha(t),!1)}internalColorSet(e,t=!0,i="user-interaction"){t&&X(e,this.color)||(this.internalColorUpdateContext=i,this.color=e,this.value=this.toValue(e),this.internalColorUpdateContext=void 0)}toValue(e,t=this.mode){if(!e)return;if(t.includes("hex")){let n=t===_.HEXA;return R(S(e.round(),n),n)}if(t.includes("-css")){let n=(t.startsWith("rgb")?e.rgb():e.hsl()).round().string();if((t.endsWith("a")||t.endsWith("a-css"))&&e.alpha()===1){let u=n.slice(0,3),C=n.slice(4,-1);return`${u}a(${C}, ${e.alpha()})`}return n}let a=G(t),s=(a==="rgb"?e.rgb():a==="hsl"?e.hsl():e.hsv()).round().object();if(t.endsWith("a"))return he(s);if(a==="rgb"){let{r:n,g:d,b:u}=s;return{r:n,g:d,b:u}}let{h:l,s:c}=s;return a==="hsl"?{h:l,s:c,l:s.l}:{h:l,s:c,v:s.v}}getSliderCapSpacing(){let{staticDimensions:{slider:{height:e},thumb:{radius:t}}}=this;return t*2-e}updateStaticDimensions(e="m"){this.staticDimensions=D[e]}deleteColor(){let e=S(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(e)>-1))return;let i=this.savedColors.filter(o=>o!==e);this.savedColors=i;let a=`${I}${this.storageId}`;this.storageId&&localStorage.setItem(a,JSON.stringify(i))}saveColor(){let e=S(this.color,this.alphaChannel);if(this.savedColors.indexOf(e)>-1)return;let i=[...this.savedColors,e];this.savedColors=i;let a=`${I}${this.storageId}`;this.storageId&&localStorage.setItem(a,JSON.stringify(i))}drawColorField(){let e=this.colorFieldRenderingContext,{width:t,height:i}=this.dynamicDimensions.colorField;e.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),e.fillRect(0,0,t,i);let a=e.createLinearGradient(0,0,t,0);a.addColorStop(0,"rgba(255,255,255,1)"),a.addColorStop(1,"rgba(255,255,255,0)"),e.fillStyle=a,e.fillRect(0,0,t,i);let o=e.createLinearGradient(0,0,0,i);o.addColorStop(0,"rgba(0,0,0,0)"),o.addColorStop(1,"rgba(0,0,0,1)"),e.fillStyle=o,e.fillRect(0,0,t,i),this.drawActiveColorFieldColor()}setCanvasContextSize(e,{height:t,width:i}){if(!e)return;let a=window.devicePixelRatio||1;e.width=i*a,e.height=t*a,e.style.height=`${t}px`,e.style.width=`${i}px`,e.getContext("2d").scale(a,a)}initColorField(e){e&&(this.colorFieldRenderingContext=e.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls())}initHueSlider(e){e&&(this.hueSliderRenderingContext=e.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider())}initOpacitySlider(e){e&&(this.opacitySliderRenderingContext=e.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider())}updateCanvasSize(e="all"){let{dynamicDimensions:t,staticDimensions:i}=this;(e==="all"||e==="color-field")&&this.setCanvasContextSize(this.colorFieldRenderingContext?.canvas,t.colorField);let a={width:this.effectiveSliderWidth,height:i.slider.height+(i.thumb.radius-t.slider.height/2)*2};(e==="all"||e==="hue-slider")&&this.setCanvasContextSize(this.hueSliderRenderingContext?.canvas,a),(e==="all"||e==="opacity-slider")&&this.setCanvasContextSize(this.opacitySliderRenderingContext?.canvas,a)}drawActiveColorFieldColor(){let{color:e}=this;if(!e)return;let t=e.hsv(),{staticDimensions:{thumb:{radius:i}}}=this,{width:a,height:o}=this.dynamicDimensions.colorField,s=t.saturationv()/(f.s/a),l=o-t.value()/(f.v/o);requestAnimationFrame(()=>{this.colorFieldScopeLeft=s,this.colorFieldScopeTop=l}),this.drawThumb(this.colorFieldRenderingContext,i,s,l,t,!1)}drawThumb(e,t,i,a,o,s){let c=2*Math.PI,n=1;if(e.beginPath(),e.arc(i,a,t,0,c),e.fillStyle="#fff",e.fill(),e.strokeStyle="rgba(0,0,0,0.3)",e.lineWidth=n,e.stroke(),s&&o.alpha()<1){let u=e.createPattern(this.getCheckeredBackgroundPattern(),"repeat");e.beginPath(),e.arc(i,a,t-3,0,c),e.fillStyle=u,e.fill()}e.globalCompositeOperation="source-atop",e.beginPath(),e.arc(i,a,t-3,0,c);let d=s?o.alpha():1;e.fillStyle=o.rgb().alpha(d).string(),e.fill(),e.globalCompositeOperation="source-over"}drawActiveHueSliderColor(){let{color:e}=this;if(!e)return;let t=e.hsv().saturationv(100).value(100),{staticDimensions:{thumb:{radius:i}}}=this,a=this.effectiveSliderWidth,o=t.hue()/(j/a),s=i,l=this.getSliderBoundX(o,a,i);requestAnimationFrame(()=>{this.hueScopeLeft=l}),this.drawThumb(this.hueSliderRenderingContext,i,l,s,t,!1)}drawHueSlider(){let e=this.hueSliderRenderingContext,{staticDimensions:{slider:{height:t},thumb:{radius:i}}}=this,a=0,o=i-t/2,s=this.effectiveSliderWidth,l=e.createLinearGradient(0,0,s,0),c=["red","yellow","lime","cyan","blue","magenta","#ff0004"],n=1/(c.length-1),d=0;c.forEach(u=>{l.addColorStop(d,k(u).string()),d+=n}),e.clearRect(0,0,s,t+this.getSliderCapSpacing()*2),this.drawSliderPath(e,t,s,a,o),e.fillStyle=l,e.fill(),e.strokeStyle="rgba(0,0,0,0.3)",e.lineWidth=1,e.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){let e=this.opacitySliderRenderingContext,{baseColorFieldColor:t,staticDimensions:{slider:{height:i},thumb:{radius:a}}}=this,o=0,s=a-i/2,l=this.effectiveSliderWidth;e.clearRect(0,0,l,i+this.getSliderCapSpacing()*2);let c=e.createLinearGradient(0,s,l,0),n=t.rgb().alpha(0),d=t.rgb().alpha(.5),u=t.rgb().alpha(1);c.addColorStop(0,n.string()),c.addColorStop(.5,d.string()),c.addColorStop(1,u.string()),this.drawSliderPath(e,i,l,o,s);let C=e.createPattern(this.getCheckeredBackgroundPattern(),"repeat");e.fillStyle=C,e.fill(),e.fillStyle=c,e.fill(),e.strokeStyle="rgba(0,0,0,0.3)",e.lineWidth=1,e.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(e,t,i,a,o){let s=t/2+1;e.beginPath(),e.moveTo(a+s,o),e.lineTo(a+i-s,o),e.quadraticCurveTo(a+i,o,a+i,o+s),e.lineTo(a+i,o+t-s),e.quadraticCurveTo(a+i,o+t,a+i-s,o+t),e.lineTo(a+s,o+t),e.quadraticCurveTo(a,o+t,a,o+t-s),e.lineTo(a,o+s),e.quadraticCurveTo(a,o,a+s,o),e.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;let e=document.createElement("canvas");e.width=10,e.height=10;let t=e.getContext("2d");return t.fillStyle="#ccc",t.fillRect(0,0,10,10),t.fillStyle="#fff",t.fillRect(0,0,5,5),t.fillRect(5,5,5,5),this.checkerPattern=e,e}drawActiveOpacitySliderColor(){let{color:e}=this;if(!e)return;let t=e,{staticDimensions:{thumb:{radius:i}}}=this,a=this.effectiveSliderWidth,o=O(t.alpha())/(b.max/a),s=i,l=this.getSliderBoundX(o,a,i);requestAnimationFrame(()=>{this.opacityScopeLeft=l}),this.drawThumb(this.opacitySliderRenderingContext,i,l,s,t,!0)}getSliderBoundX(e,t,i){let a=fe(e,t,i);return a===0?e:a===-1?q(e,0,t,i,i*2):q(e,0,t,t-i*2,t-i)}handleOpacityScopeKeyDown(e){let t=e.shiftKey?10:1,{key:i}=e,o={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01}[i];if(o){e.preventDefault();let s=o*t,l=this.baseColorFieldColor.alpha(),c=this.baseColorFieldColor.alpha(l+s);this.internalColorSet(c,!1)}}updateColorFromChannels(e){this.internalColorSet(k(e,this.channelMode))}updateChannelsFromColor(e){this.channels=e?this.toChannels(e):[void 0,void 0,void 0,void 0]}toChannels(e){let{channelMode:t}=this,i=(t==="rgb"?e.rgb():e.hsv()).round().array();return i.length===3&&i.push(1),i}getAdjustedScopePosition(e,t){return[e===void 0?NaN:e-U/2,t===void 0?NaN:t-U/2]}render(){let{channelsDisabled:e,color:t,colorFieldScopeLeft:i,colorFieldScopeTop:a,staticDimensions:{thumb:{radius:o}},fieldDisabled:s,hexDisabled:l,hueScopeLeft:c,messages:n,alphaChannel:d,opacityScopeLeft:u,savedColors:C,savedDisabled:y,scale:v,scopeOrientation:me}=this,J=this.effectiveSliderWidth,z=t?S(t,d):void 0,ge=o,be=c??J*m.hue()/f.h,Se=o,ye=u??J*O(m.alpha())/b.max,Z=t===void 0,M=me==="vertical",[we,$e]=this.getAdjustedScopePosition(i,a),[xe,ke]=this.getAdjustedScopePosition(be,ge),[De,Ae]=this.getAdjustedScopePosition(ye,Se);return this.interactiveContainer({disabled:this.disabled,children:p`<div class=${h(r.container)}>${s?null:p`<div class=${h(r.controlAndScope)}><canvas class=${h(r.colorField)} @pointerdown=${this.handleColorFieldPointerDown} ${g(this.initColorField)}></canvas><div .ariaLabel=${M?n.value:n.saturation} .ariaValueMax=${M?f.v:f.s} aria-valuemin=0 .ariaValueNow=${(M?t?.saturationv():t?.value())||"0"} class=${h({[r.scope]:!0,[r.colorFieldScope]:!0})} @keydown=${this.handleColorFieldScopeKeyDown} role=slider style=${$({top:`${$e||0}px`,left:`${we||0}px`})} tabindex=0 ${g(this.colorFieldScopeRef)}></div></div>`}<div class=${h(r.previewAndSliders)}><calcite-swatch class=${h(r.preview)} .color=${z} .label=${z} .scale=${this.alphaChannel?"l":this.scale}></calcite-swatch><div class=${h(r.sliders)}><div class=${h(r.controlAndScope)}><canvas class=${h({[r.slider]:!0,[r.hueSlider]:!0})} @pointerdown=${this.handleHueSliderPointerDown} ${g(this.initHueSlider)}></canvas><div .ariaLabel=${n.hue} .ariaValueMax=${f.h} aria-valuemin=0 .ariaValueNow=${t?.round().hue()||m.round().hue()} class=${h({[r.scope]:!0,[r.hueScope]:!0})} @keydown=${this.handleHueScopeKeyDown} role=slider style=${$({top:`${ke}px`,left:`${xe}px`})} tabindex=0 ${g(this.hueScopeRef)}></div></div>${d?p`<div class=${h(r.controlAndScope)}><canvas class=${h({[r.slider]:!0,[r.opacitySlider]:!0})} @pointerdown=${this.handleOpacitySliderPointerDown} ${g(this.initOpacitySlider)}></canvas><div .ariaLabel=${n.opacity} .ariaValueMax=${b.max} .ariaValueMin=${b.min} .ariaValueNow=${(t||m).round().alpha()} class=${h({[r.scope]:!0,[r.opacityScope]:!0})} @keydown=${this.handleOpacityScopeKeyDown} role=slider style=${$({top:`${Ae}px`,left:`${De}px`})} tabindex=0 ${g(this.opacityScopeRef)}></div></div>`:null}</div></div>${l&&e?null:p`<div class=${h({[r.controlSection]:!0,[r.section]:!0})}><div class=${h(r.hexAndChannelsGroup)}>${l?null:p`<div class=${h(r.hexOptions)}><calcite-color-picker-hex-input .allowEmpty=${this.clearable} .alphaChannel=${d} class=${h(r.control)} .messages=${n} .numberingSystem=${this.numberingSystem} @calciteColorPickerHexInputChange=${this.handleHexInputChange} .scale=${v} .value=${z}></calcite-color-picker-hex-input></div>`}${e?null:p`<calcite-tabs class=${h({[r.colorModeContainer]:!0,[r.splitSection]:!0})} .scale=${v==="l"?"m":"s"}><calcite-tab-nav slot=title-group>${this.renderChannelsTabTitle("rgb")}${this.renderChannelsTabTitle("hsv")}</calcite-tab-nav>${this.renderChannelsTab("rgb")}${this.renderChannelsTab("hsv")}</calcite-tabs>`}</div></div>`}${y?null:p`<div class=${h({[r.savedColorsSection]:!0,[r.section]:!0})}><div class=${h(r.header)}><label>${n.saved}</label><div class=${h(r.savedColorsButtons)}><calcite-button appearance=transparent class=${h(r.deleteColor)} .disabled=${Z} .iconStart=${W.minus} kind=neutral .label=${n.deleteColor} @click=${this.deleteColor} .scale=${v} type=button></calcite-button><calcite-button appearance=transparent class=${h(r.saveColor)} .disabled=${Z} .iconStart=${W.plus} kind=neutral .label=${n.saveColor} @click=${this.saveColor} .scale=${v} type=button></calcite-button></div></div>${C.length>0?p`<calcite-swatch-group class=${h(r.swatchGroup)} .label=${n.saved} .scale=${v} selection-mode=none>${ce(C,A=>A,A=>p`<calcite-swatch class=${h(r.savedColor)} .color=${A} .label=${A} @click=${this.handleSavedColorSelect} @keydown=${this.handleSavedColorKeyDown} .scale=${v} tabindex=0></calcite-swatch>`)}</calcite-swatch-group>`:null}</div>`}</div>`})}renderChannelsTabTitle(e){let{channelMode:t,messages:i}=this,a=e===t,o=e==="rgb"?i.rgb:i.hsv;return F(e,p`<calcite-tab-title class=${h(r.colorMode)} data-color-mode=${e??w} @calciteTabsActivate=${this.handleTabActivate} .selected=${a}>${o}</calcite-tab-title>`)}renderChannelsTab(e){let{clearable:t,channelMode:i,channels:a,messages:o,alphaChannel:s}=this,l=e===i,n=e==="rgb"?[o.red,o.green,o.blue]:[o.hue,o.saturation,o.value],d=this.direction,u=s?a:a.slice(0,3);return F(e,p`<calcite-tab class=${h(r.control)} .selected=${l}><div class=${h(r.channels)} dir=ltr>${u.map((C,y)=>{let v=y===3;return v&&(C=t&&!C?C:O(C)),this.renderChannel(C,y,n[y],d,v?"%":"")})}</div></calcite-tab>`)}renderChannel(e,t,i,a,o){return F(t,p`<calcite-input-number class=${h(r.channel)} data-channel-index=${t??w} dir=${a??w} .label=${i} lang=${this.messages._lang??w} number-button-type=none .numberingSystem=${this.numberingSystem} @calciteInputNumberChange=${this.handleChannelChange} @calciteInputNumberInput=${this.handleChannelInput} @calciteInternalInputNumberBlur=${this.handleChannelBlur} @calciteInternalInputNumberFocus=${this.handleChannelFocus} @keydown=${this.handleKeyDown} .scale=${this.scale==="l"?"m":"s"} style=${$({marginLeft:t>0&&!(this.scale==="s"&&this.alphaChannel&&t===3)?"-1px":""})} .suffixText=${o} .value=${e?.toString()}></calcite-input-number>`)}};te("calcite-color-picker",Y);export{Y as ColorPicker};
|
|
2
|
+
import{a as Ce,d as q,e as fe}from"./YJPIZ6DX.js";import{a as ce}from"./F7SSLALU.js";import{A as P,B as de,C as G,D as ue,E as pe,a as k,b as r,c as m,d as I,e as E,f,g as j,h as b,i as D,j as U,k as W,m as N,n as O,o as B,s as R,t as S,v as he,x as _,y as V,z as X}from"./TXTWTIAM.js";import"./EM6V55GC.js";import{a as le}from"./M3PM3ZC5.js";import{a as F}from"./EFNBCCF3.js";import{a as re}from"./HFO7F2DK.js";import{c as H}from"./3XS7XZAX.js";import{a as ne}from"./YP3AYJH3.js";import{a as ie}from"./VI7SBYXT.js";import{a as se}from"./OZTYJIXS.js";import{a as ae}from"./5QMNF4NQ.js";import"./ZWPNZ5XW.js";import{e as oe}from"./NFCNTQQT.js";import"./PC5XT27S.js";import{B as K}from"./DJD3CC5A.js";import{E as T,F as g,G as ee,H as h,I as $,Q as x,T as te,g as Q,h as p,l as w,p as L}from"./POJ34CKO.js";var Te=Q`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);display:inline-block;font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));inline-size:var(--calcite-internal-color-picker-min-width);min-inline-size:var(--calcite-internal-color-picker-min-width)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-internal-color-picker-min-width: 200px;--calcite-color-picker-spacing: var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]){--calcite-internal-color-picker-min-width: 240px;--calcite-color-picker-spacing: var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]){--calcite-internal-color-picker-min-width: 304px;--calcite-color-picker-spacing: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .control-section{display:flex;flex-direction:column;flex-wrap:wrap;align-items:baseline}:host([scale=l]) .color-hex-options{inline-size:100%;display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}calcite-input-number{--calcite-input-number-background-color: var(--calcite-color-picker-input-background-color);--calcite-input-number-border-color: var(--calcite-color-picker-input-border-color);--calcite-input-number-text-color: var(--calcite-color-picker-input-text-color);--calcite-input-prefix-text-color: var(--calcite-color-picker-input-prefix-text-color);--calcite-input-suffix-text-color: var(--calcite-color-picker-input-suffix-text-color)}calcite-button{--calcite-button-text-color: var(--calcite-color-picker-action-text-color);--calcite-button-text-color-press: var(--calcite-color-picker-action-text-color-press)}calcite-button:hover,calcite-button:focus{--calcite-button-text-color: var(--calcite-color-picker-action-text-color-hover)}calcite-button:active{--calcite-button-text-color: var(--calcite-color-picker-action-text-color-press)}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-picker-tab-border-color);--calcite-tab-text-color: var(--calcite-color-picker-tab-text-color);--calcite-tab-accent-color-press: var(--calcite-color-picker-tab-accent-color);--calcite-swatch-corner-radius: var(--calcite-color-picker-swatch-corner-radius)}calcite-tab-title:hover{--calcite-color-text-1: var(--calcite-color-picker-tab-text-color-hover)}calcite-swatch{--calcite-swatch-corner-radius: var(--calcite-color-picker-swatch-corner-radius)}.container{display:flex;flex-direction:column;block-size:min-content;border:1px solid var(--calcite-color-picker-border-color, var(--calcite-color-border-3));background-color:var(--calcite-color-picker-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));border-radius:var(--calcite-color-picker-corner-radius, var(--calcite-corner-radius));box-shadow:var(--calcite-color-picker-shadow, var(--calcite-shadow-none))}.control-and-scope{display:flex;position:relative;cursor:pointer;touch-action:none}.color-field,.control-and-scope{-webkit-user-select:none;user-select:none;border-radius:var(--calcite-color-picker-corner-radius, var(--calcite-corner-radius)) var(--calcite-color-picker-corner-radius, var(--calcite-corner-radius)) var(--calcite-corner-radius-none) var(--calcite-corner-radius-none)}.scope{font-size:var(--calcite-font-size-relative-base);outline-color:transparent;position:absolute;z-index:var(--calcite-z-index);border-radius:var(--calcite-corner-radius-pill);background-color:transparent;inline-size:var(--calcite-size-px);block-size:var(--calcite-size-px);pointer-events:none}.scope:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)));outline-offset:6px}.hex-and-channels-group{display:flex;flex-direction:column;flex-wrap:wrap;inline-size:100%}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing);gap:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-color-picker-text-color, var(--calcite-color-text-1))}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex}.channel{flex-grow:1}.channel[data-channel-index="3"]{margin-inline-start:-1px;min-inline-size:81px}:host([scale=s]) .channel[data-channel-index="3"]{min-inline-size:68px}:host([scale=l]) .channel[data-channel-index="3"]{min-inline-size:88px}.saved-colors-buttons{display:flex}.swatch-group{margin-block-start:var(--calcite-color-picker-spacing)}:host([hidden]){display:none}[hidden]{display:none}`,ve=16,Y=class extends ee{constructor(){super(),this._color=m,this.colorFieldScopeRef=T(),this.direction=oe(),this.hueScopeRef=T(),this.isActiveChannelInputEmpty=!1,this.mode=_.HEX,this.opacityScopeRef=T(),this.resizeObserver=ie("resize",e=>this.resizeCanvas(e)),this.shiftKeyChannelAdjustment=0,this._valueWasSet=!1,this.messages=se({blocking:!0}),this.captureColorFieldColor=(e,t,i=!0)=>{let{width:a,height:o}=this.dynamicDimensions.colorField,s=Math.round(f.s/a*e),l=Math.round(f.v/o*(o-t));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(s).value(l),i)},this.cancelable=re()(this),this.drawColorControls=H((e="all")=>{(e==="all"||e==="color-field")&&this.colorFieldRenderingContext&&this.drawColorField(),(e==="all"||e==="hue-slider")&&this.hueSliderRenderingContext&&this.drawHueSlider(),this.alphaChannel&&(e==="all"||e==="opacity-slider")&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()},ve),this.globalPointerMoveHandler=e=>{let{activeCanvasInfo:t,el:i}=this;if(!i.isConnected||!t)return;let{context:a,bounds:o}=t,s,l,{clientX:c,clientY:n}=e;a.canvas.matches(":hover")?(s=c-o.x,l=n-o.y):(c<o.x+o.width&&c>o.x?s=c-o.x:c<o.x?s=0:s=o.width,n<o.y+o.height&&n>o.y?l=n-o.y:n<o.y?l=0:l=o.height),a===this.colorFieldRenderingContext?this.captureColorFieldColor(s,l,!1):a===this.hueSliderRenderingContext?this.captureHueSliderColor(s):a===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(s)},this.globalPointerUpHandler=e=>{if(!K(e))return;let t=this.activeCanvasInfo;this.activeCanvasInfo=void 0,this.drawColorControls(),t&&this.calciteColorPickerChange.emit()},this.resizeCanvas=H(e=>{if(!this.hasUpdated)return;let[t]=e,i=Math.floor(t.contentBoxSize[0].inlineSize);this.dynamicDimensions.colorField.width!==i&&(this.updateDynamicDimensions(i),this.updateCanvasSize(),this.drawColorControls())},ve),this.updateDynamicDimensions=e=>{let t={width:ue(e,this.staticDimensions,this.alphaChannel),height:this.staticDimensions.slider.height};this.dynamicDimensions={colorField:pe(e),slider:t}},this.focusSetter=ae()(this),this.interactiveContainer=le(this),this.channelMode="rgb",this.channels=this.toChannels(m),this.staticDimensions=D.m,this.savedColors=[],this.alphaChannel=!1,this.channelsDisabled=!1,this.clearable=!1,this.disabled=!1,this.fieldDisabled=!1,this.format="auto",this.hexDisabled=!1,this.savedDisabled=!1,this.scale="m",this.calciteColorPickerChange=L({cancelable:!1}),this.calciteColorPickerInput=L({cancelable:!1}),this.listen("keydown",this.handleChannelKeyUpOrDown,{capture:!0}),this.listen("keyup",this.handleChannelKeyUpOrDown,{capture:!0})}static{this.properties={channelMode:[16,{},{state:!0}],channels:[16,{},{state:!0}],colorFieldScopeLeft:[16,{},{state:!0}],colorFieldScopeTop:[16,{},{state:!0}],staticDimensions:[16,{},{state:!0}],hueScopeLeft:[16,{},{state:!0}],opacityScopeLeft:[16,{},{state:!0}],savedColors:[16,{},{state:!0}],scopeOrientation:[16,{},{state:!0}],alphaChannel:[5,{},{type:Boolean}],channelsDisabled:[5,{},{type:Boolean}],clearable:[7,{},{reflect:!0,type:Boolean}],color:[0,{},{attribute:!1}],disabled:[7,{},{reflect:!0,type:Boolean}],fieldDisabled:[7,{},{reflect:!0,type:Boolean}],format:[3,{},{reflect:!0}],hexDisabled:[5,{},{type:Boolean}],messageOverrides:[0,{},{attribute:!1}],numberingSystem:[3,{},{reflect:!0}],savedDisabled:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],storageId:[3,{},{reflect:!0}],value:1}}static{this.styles=Te}get baseColorFieldColor(){return this.color||this.previousColor||m}get effectiveSliderWidth(){return this.dynamicDimensions.slider.width}get color(){return this._color}set color(e){let t=this._color;this._color=e,this.handleColorChange(e,t)}get value(){return this._value}set value(e){let t=this._value,i=e||void 0;this._value=i,this.handleValueChange(i,t),this._valueWasSet=!0}async setFocus(e){return this.focusSetter(()=>this.el,e)}connectedCallback(){super.connectedCallback(),this.observeResize(),this.cancelable.add([this.drawColorControls,this.resizeCanvas])}async load(){this._valueWasSet||(this._value??=R(S(m,this.alphaChannel)));let{clearable:e,color:t,format:i}=this,a=this.value,o=e&&!a,s=V(a),l=o||i==="auto"&&s||i===s,c=l?N(a,e,s):t;l||this.showIncompatibleColorWarning(a,i),this.setMode(i,!1),this.internalColorSet(c,!1,"initial"),this.updateStaticDimensions(this.scale),this.updateDynamicDimensions(D[this.scale].minWidth);let n=`${I}${this.storageId}`;if(this.storageId){let d=localStorage.getItem(n);d&&(this.savedColors=JSON.parse(d))}}willUpdate(e){e.has("alphaChannel")&&(this.hasUpdated||this.alphaChannel!==!1)&&this.handleAlphaChannelChange(this.alphaChannel),this.hasUpdated&&(e.has("alphaChannel")&&this.alphaChannel!==!1||e.has("staticDimensions")&&this.staticDimensions!==D.m)&&this.handleAlphaChannelDimensionsChange(),(e.has("alphaChannel")&&(this.hasUpdated||this.alphaChannel!==!1)||e.has("format")&&(this.hasUpdated||this.format!=="auto"))&&this.handleFormatOrAlphaChannelChange(),e.has("scale")&&(this.hasUpdated||this.scale!=="m")&&this.handleScaleChange(this.scale)}loaded(){this.handleAlphaChannelDimensionsChange()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("pointermove",this.globalPointerMoveHandler),window.removeEventListener("pointerup",this.globalPointerUpHandler),this.resizeObserver?.disconnect()}observeResize(){this.resizeObserver?.observe(this.el)}handleAlphaChannelChange(e){let{format:t}=this;e&&t!=="auto"&&!P(t)&&(x.warn(`ignoring alphaChannel as the current format (${t}) does not support alpha`),this.alphaChannel=!1)}handleAlphaChannelDimensionsChange(){this.drawColorControls()}handleColorChange(e,t){this.drawColorControls(),this.updateChannelsFromColor(e),this.previousColor=t}handleFormatOrAlphaChannelChange(){this.setMode(this.format),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(e="m"){this.updateStaticDimensions(e),this.updateCanvasSize(),this.drawColorControls()}handleValueChange(e,t){let{clearable:i,format:a}=this,o=!i||e,s=!1;if(o){let d=V(e);if(!d||a!=="auto"&&d!==a){this.showIncompatibleColorWarning(e,a),this._value=t;return}s=this.mode!==d,this.setMode(d,this.internalColorUpdateContext===void 0)}let l=this.activeCanvasInfo;if(this.internalColorUpdateContext==="initial")return;if(this.internalColorUpdateContext==="user-interaction"){this.calciteColorPickerInput.emit(),l||this.calciteColorPickerChange.emit();return}let c=N(e,i,this.mode),n=!X(c,this.color);(s||n)&&this.internalColorSet(c,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css"))||this.internalColorUpdateContext==="internal","internal")}handleTabActivate(e){this.channelMode=e.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)}handleColorFieldScopeKeyDown(e){let{key:t}=e,a={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}}[t];a&&(e.preventDefault(),this.scopeOrientation=t==="ArrowDown"||t==="ArrowUp"?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft===void 0?0:this.colorFieldScopeLeft+a.x,this.colorFieldScopeTop===void 0?0:this.colorFieldScopeTop+a.y,!1))}handleHueScopeKeyDown(e){let t=e.shiftKey?10:1,{key:i}=e,o={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1}[i];if(o){e.preventDefault();let s=o*t,l=this.baseColorFieldColor.hue(),c=this.baseColorFieldColor.hue(l+s);this.internalColorSet(c,!1)}}handleHexInputChange(e){e.stopPropagation();let{clearable:t,color:i}=this,o=e.target.value;if(t&&!o){this.internalColorSet(void 0);return}let s=i&&R(S(i,P(this.mode)));o!==s&&this.internalColorSet(k(o))}handleSavedColorSelect(e){let t=e.currentTarget;this.internalColorSet(k(t.color))}handleChannelInput(e){let t=e.currentTarget,i=Number(t.getAttribute("data-channel-index")),o=i===3?b.max:this.channelMode==="rgb"?Object.values(E)[i]:Object.values(f)[i],s;if(!t.value)s="",this.isActiveChannelInputEmpty=!0,this.upOrDownArrowKeyTracker=void 0;else{let c=Number(t.value)+this.shiftKeyChannelAdjustment;s=Ce(c,0,o).toString()}t.value=s,s!==""&&this.shiftKeyChannelAdjustment!==0?this.handleChannelChange(e):s!==""&&this.handleChannelChange(e)}handleChannelBlur(e){let t=e.currentTarget,i=Number(t.getAttribute("data-channel-index")),a=[...this.channels];!t.value&&!this.clearable&&(t.value=a[i]?.toString()??"")}handleChannelFocus(e){e.currentTarget.selectText()}handleChannelKeyUpOrDown(e){this.shiftKeyChannelAdjustment=0;let{key:t}=e;if(t!=="ArrowUp"&&t!=="ArrowDown"||!e.composedPath().some(o=>o.classList?.contains(r.channel)))return;let{shiftKey:i}=e;if(e.preventDefault(),!this.color){this.internalColorSet(this.previousColor),e.stopPropagation();return}let a=9;this.shiftKeyChannelAdjustment=t==="ArrowUp"&&i?a:t==="ArrowDown"&&i?-a:0,t==="ArrowUp"&&(this.upOrDownArrowKeyTracker="up"),t==="ArrowDown"&&(this.upOrDownArrowKeyTracker="down")}getChannelInputLimit(e){return this.channelMode==="rgb"?Object.values(E)[e]:Object.values(f)[e]}handleChannelChange(e){let t=e.currentTarget,i=Number(t.getAttribute("data-channel-index"));if(this.clearable&&!t.value){this.channels=[void 0,void 0,void 0,void 0],this.internalColorSet(void 0);return}let o=[...this.channels],s=i===3;this.isActiveChannelInputEmpty&&this.upOrDownArrowKeyTracker&&(t.value=this.upOrDownArrowKeyTracker==="up"?(o[i]+1<=this.getChannelInputLimit(i)?o[i]+1:this.getChannelInputLimit(i)).toString():(o[i]-1>=0?o[i]-1:0).toString(),this.isActiveChannelInputEmpty=!1,this.upOrDownArrowKeyTracker=void 0);let l=t.value?Number(t.value):o[i];o[i]=s?B(l):l,this.updateColorFromChannels(o)}handleSavedColorKeyDown(e){ne(e.key)&&(e.preventDefault(),this.handleSavedColorSelect(e))}handleColorFieldPointerDown(e){this.handleCanvasControlPointerDown(e,this.colorFieldRenderingContext,this.captureColorFieldColor,this.colorFieldScopeRef.value)}focusScope(e){requestAnimationFrame(()=>{e.focus()})}handleHueSliderPointerDown(e){this.handleCanvasControlPointerDown(e,this.hueSliderRenderingContext,this.captureHueSliderColor,this.hueScopeRef.value)}handleOpacitySliderPointerDown(e){this.handleCanvasControlPointerDown(e,this.opacitySliderRenderingContext,this.captureOpacitySliderValue,this.opacityScopeRef.value)}handleCanvasControlPointerDown(e,t,i,a){K(e)&&(window.addEventListener("pointermove",this.globalPointerMoveHandler),window.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:t,bounds:t.canvas.getBoundingClientRect()},i.call(this,e.offsetX,e.offsetY),this.focusScope(a))}handleKeyDown(e){e.key==="Enter"&&e.preventDefault()}showIncompatibleColorWarning(e,t){x.warn(`ignoring color value (${e}) as it is not compatible with the current format (${t})`)}setMode(e,t=!0){let i=e==="auto"?this.mode:e;this.mode=this.ensureCompatibleMode(i,t)}ensureCompatibleMode(e,t){let{alphaChannel:i}=this,a=P(e);if(i&&!a){let o=de(e);return t&&x.warn(`setting format to (${o}) as the provided one (${e}) does not support alpha`),o}if(!i&&a){let o=G(e);return t&&x.warn(`setting format to (${o}) as the provided one (${e}) does not support alpha`),o}return e}captureHueSliderColor(e){let t=j/this.effectiveSliderWidth*e;this.internalColorSet(this.baseColorFieldColor.hue(t),!1)}captureOpacitySliderValue(e){let t=B(b.max/this.effectiveSliderWidth*e);this.internalColorSet(this.baseColorFieldColor.alpha(t),!1)}internalColorSet(e,t=!0,i="user-interaction"){t&&X(e,this.color)||(this.internalColorUpdateContext=i,this.color=e,this.value=this.toValue(e),this.internalColorUpdateContext=void 0)}toValue(e,t=this.mode){if(!e)return;if(t.includes("hex")){let n=t===_.HEXA;return R(S(e.round(),n),n)}if(t.includes("-css")){let n=(t.startsWith("rgb")?e.rgb():e.hsl()).round().string();if((t.endsWith("a")||t.endsWith("a-css"))&&e.alpha()===1){let u=n.slice(0,3),C=n.slice(4,-1);return`${u}a(${C}, ${e.alpha()})`}return n}let a=G(t),s=(a==="rgb"?e.rgb():a==="hsl"?e.hsl():e.hsv()).round().object();if(t.endsWith("a"))return he(s);if(a==="rgb"){let{r:n,g:d,b:u}=s;return{r:n,g:d,b:u}}let{h:l,s:c}=s;return a==="hsl"?{h:l,s:c,l:s.l}:{h:l,s:c,v:s.v}}getSliderCapSpacing(){let{staticDimensions:{slider:{height:e},thumb:{radius:t}}}=this;return t*2-e}updateStaticDimensions(e="m"){this.staticDimensions=D[e]}deleteColor(){let e=S(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(e)>-1))return;let i=this.savedColors.filter(o=>o!==e);this.savedColors=i;let a=`${I}${this.storageId}`;this.storageId&&localStorage.setItem(a,JSON.stringify(i))}saveColor(){let e=S(this.color,this.alphaChannel);if(this.savedColors.indexOf(e)>-1)return;let i=[...this.savedColors,e];this.savedColors=i;let a=`${I}${this.storageId}`;this.storageId&&localStorage.setItem(a,JSON.stringify(i))}drawColorField(){let e=this.colorFieldRenderingContext,{width:t,height:i}=this.dynamicDimensions.colorField;e.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),e.fillRect(0,0,t,i);let a=e.createLinearGradient(0,0,t,0);a.addColorStop(0,"rgba(255,255,255,1)"),a.addColorStop(1,"rgba(255,255,255,0)"),e.fillStyle=a,e.fillRect(0,0,t,i);let o=e.createLinearGradient(0,0,0,i);o.addColorStop(0,"rgba(0,0,0,0)"),o.addColorStop(1,"rgba(0,0,0,1)"),e.fillStyle=o,e.fillRect(0,0,t,i),this.drawActiveColorFieldColor()}setCanvasContextSize(e,{height:t,width:i}){if(!e)return;let a=window.devicePixelRatio||1;e.width=i*a,e.height=t*a,e.style.height=`${t}px`,e.style.width=`${i}px`,e.getContext("2d").scale(a,a)}initColorField(e){e&&(this.colorFieldRenderingContext=e.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls())}initHueSlider(e){e&&(this.hueSliderRenderingContext=e.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider())}initOpacitySlider(e){e&&(this.opacitySliderRenderingContext=e.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider())}updateCanvasSize(e="all"){let{dynamicDimensions:t,staticDimensions:i}=this;(e==="all"||e==="color-field")&&this.setCanvasContextSize(this.colorFieldRenderingContext?.canvas,t.colorField);let a={width:this.effectiveSliderWidth,height:i.slider.height+(i.thumb.radius-t.slider.height/2)*2};(e==="all"||e==="hue-slider")&&this.setCanvasContextSize(this.hueSliderRenderingContext?.canvas,a),(e==="all"||e==="opacity-slider")&&this.setCanvasContextSize(this.opacitySliderRenderingContext?.canvas,a)}drawActiveColorFieldColor(){let{color:e}=this;if(!e)return;let t=e.hsv(),{staticDimensions:{thumb:{radius:i}}}=this,{width:a,height:o}=this.dynamicDimensions.colorField,s=t.saturationv()/(f.s/a),l=o-t.value()/(f.v/o);requestAnimationFrame(()=>{this.colorFieldScopeLeft=s,this.colorFieldScopeTop=l}),this.drawThumb(this.colorFieldRenderingContext,i,s,l,t,!1)}drawThumb(e,t,i,a,o,s){let c=2*Math.PI,n=1;if(e.beginPath(),e.arc(i,a,t,0,c),e.fillStyle="#fff",e.fill(),e.strokeStyle="rgba(0,0,0,0.3)",e.lineWidth=n,e.stroke(),s&&o.alpha()<1){let u=e.createPattern(this.getCheckeredBackgroundPattern(),"repeat");e.beginPath(),e.arc(i,a,t-3,0,c),e.fillStyle=u,e.fill()}e.globalCompositeOperation="source-atop",e.beginPath(),e.arc(i,a,t-3,0,c);let d=s?o.alpha():1;e.fillStyle=o.rgb().alpha(d).string(),e.fill(),e.globalCompositeOperation="source-over"}drawActiveHueSliderColor(){let{color:e}=this;if(!e)return;let t=e.hsv().saturationv(100).value(100),{staticDimensions:{thumb:{radius:i}}}=this,a=this.effectiveSliderWidth,o=t.hue()/(j/a),s=i,l=this.getSliderBoundX(o,a,i);requestAnimationFrame(()=>{this.hueScopeLeft=l}),this.drawThumb(this.hueSliderRenderingContext,i,l,s,t,!1)}drawHueSlider(){let e=this.hueSliderRenderingContext,{staticDimensions:{slider:{height:t},thumb:{radius:i}}}=this,a=0,o=i-t/2,s=this.effectiveSliderWidth,l=e.createLinearGradient(0,0,s,0),c=["red","yellow","lime","cyan","blue","magenta","#ff0004"],n=1/(c.length-1),d=0;c.forEach(u=>{l.addColorStop(d,k(u).string()),d+=n}),e.clearRect(0,0,s,t+this.getSliderCapSpacing()*2),this.drawSliderPath(e,t,s,a,o),e.fillStyle=l,e.fill(),e.strokeStyle="rgba(0,0,0,0.3)",e.lineWidth=1,e.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){let e=this.opacitySliderRenderingContext,{baseColorFieldColor:t,staticDimensions:{slider:{height:i},thumb:{radius:a}}}=this,o=0,s=a-i/2,l=this.effectiveSliderWidth;e.clearRect(0,0,l,i+this.getSliderCapSpacing()*2);let c=e.createLinearGradient(0,s,l,0),n=t.rgb().alpha(0),d=t.rgb().alpha(.5),u=t.rgb().alpha(1);c.addColorStop(0,n.string()),c.addColorStop(.5,d.string()),c.addColorStop(1,u.string()),this.drawSliderPath(e,i,l,o,s);let C=e.createPattern(this.getCheckeredBackgroundPattern(),"repeat");e.fillStyle=C,e.fill(),e.fillStyle=c,e.fill(),e.strokeStyle="rgba(0,0,0,0.3)",e.lineWidth=1,e.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(e,t,i,a,o){let s=t/2+1;e.beginPath(),e.moveTo(a+s,o),e.lineTo(a+i-s,o),e.quadraticCurveTo(a+i,o,a+i,o+s),e.lineTo(a+i,o+t-s),e.quadraticCurveTo(a+i,o+t,a+i-s,o+t),e.lineTo(a+s,o+t),e.quadraticCurveTo(a,o+t,a,o+t-s),e.lineTo(a,o+s),e.quadraticCurveTo(a,o,a+s,o),e.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;let e=document.createElement("canvas");e.width=10,e.height=10;let t=e.getContext("2d");return t.fillStyle="#ccc",t.fillRect(0,0,10,10),t.fillStyle="#fff",t.fillRect(0,0,5,5),t.fillRect(5,5,5,5),this.checkerPattern=e,e}drawActiveOpacitySliderColor(){let{color:e}=this;if(!e)return;let t=e,{staticDimensions:{thumb:{radius:i}}}=this,a=this.effectiveSliderWidth,o=O(t.alpha())/(b.max/a),s=i,l=this.getSliderBoundX(o,a,i);requestAnimationFrame(()=>{this.opacityScopeLeft=l}),this.drawThumb(this.opacitySliderRenderingContext,i,l,s,t,!0)}getSliderBoundX(e,t,i){let a=fe(e,t,i);return a===0?e:a===-1?q(e,0,t,i,i*2):q(e,0,t,t-i*2,t-i)}handleOpacityScopeKeyDown(e){let t=e.shiftKey?10:1,{key:i}=e,o={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01}[i];if(o){e.preventDefault();let s=o*t,l=this.baseColorFieldColor.alpha(),c=this.baseColorFieldColor.alpha(l+s);this.internalColorSet(c,!1)}}updateColorFromChannels(e){this.internalColorSet(k(e,this.channelMode))}updateChannelsFromColor(e){this.channels=e?this.toChannels(e):[void 0,void 0,void 0,void 0]}toChannels(e){let{channelMode:t}=this,i=(t==="rgb"?e.rgb():e.hsv()).round().array();return i.length===3&&i.push(1),i}getAdjustedScopePosition(e,t){return[e===void 0?NaN:e-U/2,t===void 0?NaN:t-U/2]}render(){let{channelsDisabled:e,color:t,colorFieldScopeLeft:i,colorFieldScopeTop:a,staticDimensions:{thumb:{radius:o}},fieldDisabled:s,hexDisabled:l,hueScopeLeft:c,messages:n,alphaChannel:d,opacityScopeLeft:u,savedColors:C,savedDisabled:y,scale:v,scopeOrientation:me}=this,J=this.effectiveSliderWidth,z=t?S(t,d):void 0,ge=o,be=c??J*m.hue()/f.h,Se=o,ye=u??J*O(m.alpha())/b.max,Z=t===void 0,M=me==="vertical",[we,$e]=this.getAdjustedScopePosition(i,a),[xe,ke]=this.getAdjustedScopePosition(be,ge),[De,Ae]=this.getAdjustedScopePosition(ye,Se);return this.interactiveContainer({disabled:this.disabled,children:p`<div class=${h(r.container)}>${s?null:p`<div class=${h(r.controlAndScope)}><canvas class=${h(r.colorField)} @pointerdown=${this.handleColorFieldPointerDown} ${g(this.initColorField)}></canvas><div .ariaLabel=${M?n.value:n.saturation} .ariaValueMax=${M?f.v:f.s} aria-valuemin=0 .ariaValueNow=${(M?t?.saturationv():t?.value())||"0"} class=${h({[r.scope]:!0,[r.colorFieldScope]:!0})} @keydown=${this.handleColorFieldScopeKeyDown} role=slider style=${$({top:`${$e||0}px`,left:`${we||0}px`})} tabindex=0 ${g(this.colorFieldScopeRef)}></div></div>`}<div class=${h(r.previewAndSliders)}><calcite-swatch class=${h(r.preview)} .color=${z} .label=${z} .scale=${this.alphaChannel?"l":this.scale}></calcite-swatch><div class=${h(r.sliders)}><div class=${h(r.controlAndScope)}><canvas class=${h({[r.slider]:!0,[r.hueSlider]:!0})} @pointerdown=${this.handleHueSliderPointerDown} ${g(this.initHueSlider)}></canvas><div .ariaLabel=${n.hue} .ariaValueMax=${f.h} aria-valuemin=0 .ariaValueNow=${t?.round().hue()||m.round().hue()} class=${h({[r.scope]:!0,[r.hueScope]:!0})} @keydown=${this.handleHueScopeKeyDown} role=slider style=${$({top:`${ke}px`,left:`${xe}px`})} tabindex=0 ${g(this.hueScopeRef)}></div></div>${d?p`<div class=${h(r.controlAndScope)}><canvas class=${h({[r.slider]:!0,[r.opacitySlider]:!0})} @pointerdown=${this.handleOpacitySliderPointerDown} ${g(this.initOpacitySlider)}></canvas><div .ariaLabel=${n.opacity} .ariaValueMax=${b.max} .ariaValueMin=${b.min} .ariaValueNow=${(t||m).round().alpha()} class=${h({[r.scope]:!0,[r.opacityScope]:!0})} @keydown=${this.handleOpacityScopeKeyDown} role=slider style=${$({top:`${Ae}px`,left:`${De}px`})} tabindex=0 ${g(this.opacityScopeRef)}></div></div>`:null}</div></div>${l&&e?null:p`<div class=${h({[r.controlSection]:!0,[r.section]:!0})}><div class=${h(r.hexAndChannelsGroup)}>${l?null:p`<div class=${h(r.hexOptions)}><calcite-color-picker-hex-input .allowEmpty=${this.clearable} .alphaChannel=${d} class=${h(r.control)} .messages=${n} .numberingSystem=${this.numberingSystem} @calciteColorPickerHexInputChange=${this.handleHexInputChange} .scale=${v} .value=${z}></calcite-color-picker-hex-input></div>`}${e?null:p`<calcite-tabs class=${h({[r.colorModeContainer]:!0,[r.splitSection]:!0})} .scale=${v==="l"?"m":"s"}><calcite-tab-nav slot=title-group>${this.renderChannelsTabTitle("rgb")}${this.renderChannelsTabTitle("hsv")}</calcite-tab-nav>${this.renderChannelsTab("rgb")}${this.renderChannelsTab("hsv")}</calcite-tabs>`}</div></div>`}${y?null:p`<div class=${h({[r.savedColorsSection]:!0,[r.section]:!0})}><div class=${h(r.header)}><label>${n.saved}</label><div class=${h(r.savedColorsButtons)}><calcite-button appearance=transparent class=${h(r.deleteColor)} .disabled=${Z} .iconStart=${W.minus} kind=neutral .label=${n.deleteColor} @click=${this.deleteColor} .scale=${v} type=button></calcite-button><calcite-button appearance=transparent class=${h(r.saveColor)} .disabled=${Z} .iconStart=${W.plus} kind=neutral .label=${n.saveColor} @click=${this.saveColor} .scale=${v} type=button></calcite-button></div></div>${C.length>0?p`<calcite-swatch-group class=${h(r.swatchGroup)} .label=${n.saved} .scale=${v} selection-mode=none>${ce(C,A=>A,A=>p`<calcite-swatch class=${h(r.savedColor)} .color=${A} .label=${A} @click=${this.handleSavedColorSelect} @keydown=${this.handleSavedColorKeyDown} .scale=${v} tabindex=0></calcite-swatch>`)}</calcite-swatch-group>`:null}</div>`}</div>`})}renderChannelsTabTitle(e){let{channelMode:t,messages:i}=this,a=e===t,o=e==="rgb"?i.rgb:i.hsv;return F(e,p`<calcite-tab-title class=${h(r.colorMode)} data-color-mode=${e??w} @calciteTabsActivate=${this.handleTabActivate} .selected=${a}>${o}</calcite-tab-title>`)}renderChannelsTab(e){let{clearable:t,channelMode:i,channels:a,messages:o,alphaChannel:s}=this,l=e===i,n=e==="rgb"?[o.red,o.green,o.blue]:[o.hue,o.saturation,o.value],d=this.direction,u=s?a:a.slice(0,3);return F(e,p`<calcite-tab class=${h(r.control)} .selected=${l}><div class=${h(r.channels)} dir=ltr>${u.map((C,y)=>{let v=y===3;return v&&(C=t&&!C?C:O(C)),this.renderChannel(C,y,n[y],d,v?"%":"")})}</div></calcite-tab>`)}renderChannel(e,t,i,a,o){return F(t,p`<calcite-input-number class=${h(r.channel)} data-channel-index=${t??w} dir=${a??w} .label=${i} lang=${this.messages._lang??w} number-button-type=none .numberingSystem=${this.numberingSystem} @calciteInputNumberChange=${this.handleChannelChange} @calciteInputNumberInput=${this.handleChannelInput} @calciteInternalInputNumberBlur=${this.handleChannelBlur} @calciteInternalInputNumberFocus=${this.handleChannelFocus} @keydown=${this.handleKeyDown} .scale=${this.scale==="l"?"m":"s"} style=${$({marginLeft:t>0&&!(this.scale==="s"&&this.alphaChannel&&t===3)?"-1px":""})} .suffixText=${o} .value=${e?.toString()}></calcite-input-number>`)}};te("calcite-color-picker",Y);export{Y as ColorPicker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"opacity":".5","d":"m2.283 9.425-.708-.708L6.5 3.793l3.068 3.068-.422.285-.353.354L6.5 5.207zm12.434-1.85L12.5 9.793l-2.217-2.217-.506.34-.286.282 3.009 3.009 2.925-2.924zM12 13v3h4v-3z"},{"opacity":".75","d":"M12 13v3H8v-3zm-9.936-.494 4.633-1.555 3.08-3.035L12.621 6l2.725-1.023L15 4l-2.677 1-3.177 2.146-2.894 2.91-4.505 1.501z"},{"d":"M3 15v1H0V0h1v15zm1-2v3h4v-3zm5.47-7.756 3.327-3.312 2.489-.996-.371-.929-2.597 1.047-2.742 2.678L6.706.029 1.799 1.047l.215.976 4.282-.88z"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"d":"M12 21v3H6v-3zM1 23V0H0v24h5v-1zM14.458 9.313l4.047-4.56 5.464-2.97-.477-.878-5.553 3.025-3.397 3.782-5.704-7.7-7.129 3.185.416.91 6.38-2.842z"},{"opacity":".75","d":"M18 21v3h-6v-3zM2.019 19.427l6.792-1.433 4.78-4.306 4.923-3.766 4.896-2.234-.415-.91-4.992 2.292-5.05 3.848-4.605 4.165-6.534 1.365z"},{"opacity":".5","d":"M24 21v3h-6v-3zM8.537 9.186l4.52 3.653.82-.624-5.414-4.376-6.55 6.615.71.703zm9.91 6.725-3.774-3.052-.817.626 4.674 3.778 4.635-4.778-.718-.696z"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"d":"M4 31v1H0V0h1v31zm1-3v4h9v-4zM22.811 6.898l7.914-3.943-.447-.895-7.986 3.98-4.712 4.65-5.87-8.778-9.857 3.105.3.954 9.142-2.88 6.129 9.164z"},{"opacity":".75","d":"M23 28v4h-9v-4zm-11.238-4.06 6.05-6.046 4.961-3.966 7.904-2.955-.35-.936-7.979 2.982-5.202 4.13-5.9 5.894-9.365 2.485.257.967z"},{"opacity":".5","d":"M32 28v4h-9v-4zM11.5 12.22l5.292 5.283.354-.354.394-.312-6.04-6.03-9.86 9.832.707.708zm18.679 2.91-7.638 6.7-4.293-4.286-.436.35-.315.314 5 4.991 8.34-7.317z"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"opacity":".5","d":"m1.575 7.717 5.676-5.645L11.456 0H15v1h-3.405L7.782 2.918 2.283 8.425z"},{"d":"M9.21 4.952 7.191 1H5.666L2.283 4.425l-.708-.708L5.263 0H7.81l2.05 4.102L15.1 5.13l-.2.979zM5.02 15.999a6.5 6.5 0 0 1-.787-.996H1V0H0v16l1-.001zm9.747-.996q-.346.536-.786.996H16v-.996zM14 11.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0m-1 0C13 9.57 11.43 8 9.5 8s-3.498 1.57-3.498 3.5S7.572 15 9.5 15c1.93 0 3.5-1.57 3.5-3.5m-3-.5V9H9v3h3v-1z"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"opacity":".5","d":"m1.584 17.625 10.64-13.634L17.331 0H24v1h-6.394l-4.799 3.8L2.292 18.333z"},{"d":"M15.5 11a6.5 6.5 0 0 0 0 13c3.59 0 6.498-2.91 6.498-6.5S19.089 11 15.5 11m0 12a5.5 5.5 0 0 1 0-11 5.5 5.5 0 0 1 0 11m3.5-6v1h-4v-4h1v3zm-8.226 7H0V0h1v23h8.418a7.5 7.5 0 0 0 1.356 1M24 23v1h-3.774a7.6 7.6 0 0 0 1.356-1zM17.917 8.864 13.025 1H8.394L2.337 9.288l-.805-.593L7.91 0h5.65l4.978 8.017L23.3 9.16l-.24.97z"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"opacity":".5","d":"M1.575 17.717 15.231 4.082 22.344 0H31v1h-8.394l-6.811 3.907L2.283 18.425z"},{"d":"M22.26 8.958 15.243 1h-4.577L2.283 9.425l-.708-.708L10.263 0h5.419l7.11 8.074 8.42 1.962-.23.974zM27.218 31c-.395.359-.807.698-1.249 1H32v-1zm-15.436 0H1V0H0v32h13.03a12 12 0 0 1-1.248-1M29 22.5c0 5.246-4.254 9.5-9.5 9.5s-9.498-4.254-9.498-9.5S14.254 13 19.5 13s9.5 4.254 9.5 9.5m-1 0c0-4.691-3.805-8.5-8.5-8.5a8.503 8.503 0 0 0-8.5 8.5 8.5 8.5 0 0 0 17 0m-8-.5v-6h-1v7h5v-1z"}]
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{S as t,u as e}from"./3TXOTJWU.js";var i=e(t,{"calcite-accordion":[()=>import("./UFU62KUF.js"),"appearance,iconPosition,iconType,scale,selectionMode"],"calcite-accordion-item":[()=>import("./47Z5RMLP.js"),"appearance,description,expanded,heading,headingLevel,iconEnd,iconFlipRtl,iconPosition,iconStart,iconType,messageOverrides:,scale;setFocus"],"calcite-action":[()=>import("./PZISTOV3.js"),"active,activeDescendant,alignment,appearance,aria:,compact,disabled,dragHandle,form,icon,iconFlipRtl,indicator,label,loading,messageOverrides:,overflowDisabled,scale,selectionAppearance,text,textEnabled,type,width;setFocus",1],"calcite-action-bar":[()=>import("./6DJ54R3E.js"),"actionsEndGroupLabel,actionsStartGroupLabel,expandDisabled,expanded,expandPosition,expandToggleDisabled,floating,layout,messageOverrides:,overflowActionsDisabled,overflowMode,overlayPositioning,position,scale,selectionAppearance;overflowActions,setFocus"],"calcite-action-group":[()=>import("./P6OIT6IA.js"),"actions:,columns,expanded,label,layout,menuFlipPlacements:,menuOpen,menuPlacement,messageOverrides:,overflowActionsDisabled,overlayPositioning,scale,selectedActions:,selectionMode,topLayerDisabled;setFocus"],"calcite-action-menu":[()=>import("./GYJG77U2.js"),"actions:,appearance,expanded,flipPlacements:,label,open,overlayPositioning,placement,scale,topLayerDisabled;setFocus"],"calcite-action-pad":[()=>import("./OAMSAV2V.js"),"actionsEndGroupLabel,expandDisabled,expanded,layout,messageOverrides:,overlayPositioning,position,scale,selectionAppearance;setFocus"],"calcite-alert":[()=>import("./VGORLOF5.js"),"active,autoClose,autoCloseDuration,embedded,icon,iconFlipRtl,kind,label,messageOverrides:,numberingSystem,open,openAlertCount,placement,queue,scale,topLayerDisabled;setFocus"],"calcite-autocomplete":[()=>import("./KAYO4LFV.js"),"alignment,autocomplete,disabled,flipPlacements:,form,icon,iconFlipRtl,inputValue,label,labelText,loading,maxLength,messageOverrides:,minLength,name,open,overlayPositioning,pattern,placeholder,placement,prefixText,readOnly,required,scale,status,suffixText,topLayerDisabled,validationIcon,validationMessage,validity:,value;reposition,scrollContentTo,selectText,setFocus",1],"calcite-autocomplete-item":[()=>import("./YFGEBKZW.js"),"active,description,disabled,guid,heading,iconEnd,iconFlipRtl,iconStart,inputValueMatchPattern,label,scale,selected,value;;requestSelection"],"calcite-autocomplete-item-group":[()=>import("./NR7C6THM.js"),"disableSpacing,heading,items:,label,position,scale"],"calcite-avatar":[()=>import("./XXOAU6A6.js"),"fullName,label,scale,thumbnail,userId,username"],"calcite-block":[()=>import("./KQOO3YMM.js"),"addToItems:,collapsible,description,disabled,dragDisabled,dragHandle,expandable,expanded,heading,headingLevel,iconEnd,iconFlipRtl,iconStart,label,loading,menuFlipPlacements:,menuPlacement,messageOverrides:,moveToItems:,open,overlayPositioning,scale,setPosition,setSize,sortDisabled,sortHandleOpen,status,toggleDisplay,topLayerDisabled;setFocus"],"calcite-block-group":[()=>import("./2KDRWAEX.js"),"canPull:,canPut:,disabled,dragEnabled,expandMode,group,label,loading,scale,sortDisabled;setFocus;emitOrderChangeEvent"],"calcite-block-section":[()=>import("./TPQJE4JZ.js"),"expanded,iconEnd,iconFlipRtl,iconStart,messageOverrides:,open,scale,status,text,toggleDisplay;setFocus"],"calcite-button":[()=>import("./J4FDQTTT.js"),"alignment,appearance,disabled,download,form,href,iconEnd,iconFlipRtl,iconStart,kind,label,loading,messageOverrides:,name,rel,round,scale,splitChild,target,type,width;setFocus",1],"calcite-card":[()=>import("./FO4RVNED.js"),"disabled,label,loading,messageOverrides:,scale,selectable,selected,selectionMode,thumbnailPosition;setFocus"],"calcite-card-group":[()=>import("./EC7SRA3Y.js"),"disabled,label,scale,selectedItems:,selectionMode;setFocus"],"calcite-carousel":[()=>import("./ACBM3IW2.js"),"arrowType,autoplay,autoplayDuration,controlOverlay,disabled,label,messageOverrides:,paginationDisabled,paginationPosition,paused,selectedItem:;play,setFocus,stop"],"calcite-carousel-item":[()=>import("./FONZCTE7.js"),"label,selected"],"calcite-checkbox":[()=>import("./RPISQOOV.js"),"checked,disabled,form,hovered,indeterminate,label,labelText,messageOverrides:,name,required,scale,status,validity:,value;setFocus",1],"calcite-chip":[()=>import("./6HQ4CWFB.js"),"appearance,closable,closed,closeOnDelete,disabled,icon,iconFlipRtl,interactive,kind,label,messageOverrides:,parentChipGroup:,scale,selected,selectionMode,value;setFocus"],"calcite-chip-group":[()=>import("./GZK5WJ57.js"),"disabled,label,scale,selectedItems:,selectionMode;setFocus"],"calcite-color-picker":[()=>import("./WSSWK3CM.js"),"alphaChannel,channelsDisabled,clearable,color:,disabled,fieldDisabled,format,hexDisabled,messageOverrides:,numberingSystem,savedDisabled,scale,storageId,value;setFocus"],"calcite-color-picker-hex-input":[()=>import("./JYYONGWF.js"),"allowEmpty,alphaChannel,hexLabel,messages:,numberingSystem,scale,value;setFocus"],"calcite-color-picker-swatch":[()=>import("./G4W7IVVU.js"),"active,color,scale"],"calcite-combobox":[()=>import("./MEYED6AA.js"),"allowCustomValues,clearDisabled,disabled,filteredItems:,filterProps:,filterText,flipPlacements:,form,label,labelText,maxItems,messageOverrides:,name,open,overlayPositioning,placeholder,placeholderIcon,placeholderIconFlipRtl,placement,readOnly,required,scale,selectAllEnabled,selectedItems:,selectionAppearance,selectionDisplay,selectionMode,status,topLayerDisabled,validationIcon,validationMessage,validity:,value;reposition,setFocus",1],"calcite-combobox-item":[()=>import("./GMNGDJJC.js"),"active,ancestors:,description,disabled,filterDisabled,filterTextMatchPattern,guid,heading,icon,iconFlipRtl,indeterminate,itemHidden,label,metadata:,scale,selected,selectionAppearance,selectionMode,shortHeading,value;;toggleSelection"],"calcite-combobox-item-group":[()=>import("./VA3FXJ4L.js"),"afterEmptyGroup,ancestors:,itemHidden,label,position,scale"],"calcite-date-picker":[()=>import("./DVFQX2S4.js"),"activeDate:,activeRange,calendars,headingLevel,layout,max,maxAsDate:,messageOverrides:,min,minAsDate:,monthStyle,numberingSystem,proximitySelectionDisabled,range,scale,value,valueAsDate:;reset,setFocus"],"calcite-date-picker-day":[()=>import("./MARAT4PA.js"),"active,currentMonth,dateTimeFormat:,day,disabled,endOfRange,highlighted,range,rangeHover,scale,selected,startOfRange,value:;setFocus"],"calcite-date-picker-month":[()=>import("./IWNVWJQF.js"),"activeDate:,calendars,dateTimeFormat:,endDate:,headingLevel,hoverRange:,layout,localeData:,max:,messages:,min:,monthStyle,range,scale,selectedDate:,startDate:"],"calcite-date-picker-month-header":[()=>import("./6GTRKPTR.js"),"activeDate:,headingLevel,localeData:,max:,messages:,min:,monthStyle,position,scale,selectedDate:"],"calcite-dialog":[()=>import("./APY54C5Q.js"),"beforeClose:,closeDisabled,description,dragEnabled,embedded,escapeDisabled,focusTrapDisabled,focusTrapOptions:,fullscreenDisabled,heading,headingLevel,icon,iconFlipRtl,kind,loading,menuOpen,messageOverrides:,modal,open,outsideCloseDisabled,overlayPositioning,placement,resizable,scale,topLayerDisabled,width,widthScale;scrollContentTo,setFocus,updateFocusTrapElements,updateSize"],"calcite-dropdown":[()=>import("./ZHGUFPES.js"),"closeOnSelectDisabled,disabled,flipPlacements:,maxItems,offsetDistance,offsetSkidding,open,overlayPositioning,placement,referenceElement,scale,selectedItems:,topLayerDisabled,type,width,widthScale;reposition,setFocus"],"calcite-dropdown-group":[()=>import("./HY4HUXH6.js"),"groupTitle,position,scale,selectionMode"],"calcite-dropdown-item":[()=>import("./HJWEMAQW.js"),"activeDescendant,disabled,href,iconEnd,iconFlipRtl,iconStart,label,rel,scale,selected,selectionMode,target;activateItem,setFocus"],"calcite-fab":[()=>import("./J6WVHSUH.js"),"appearance,disabled,icon,iconFlipRtl,kind,label,loading,scale,text,textEnabled;setFocus"],"calcite-filter":[()=>import("./OP6JQVZ4.js"),"disabled,filteredItems:,filterProps:,items:,label,messageOverrides:,placeholder,scale,value;filter,setFocus"],"calcite-flow":[()=>import("./K2ZOLTIS.js"),"customItemSelectors;back,setFocus"],"calcite-flow-item":[()=>import("./AELDKEOJ.js"),"beforeBack:,beforeClose:,closable,closed,collapsed,collapseDirection,collapsible,description,disabled,focusTrapEnabled,focusTrapOptions:,heading,headingLevel,icon,iconFlipRtl,loading,menuOpen,messageOverrides:,overlayPositioning,scale,selected,showBackButton,topLayerDisabled;scrollContentTo,setFocus,updateFocusTrapElements"],"calcite-focus-trap":[()=>import("./7YGZMDMH.js"),"active:,focusTrapDisabled,focusTrapDisabledOverride:,focusTrapOptions:;activate,deactivate,setFocus,updateFocusTrapElements"],"calcite-graph":[()=>import("./T7HJQVEM.js"),"colorStops:,data:,highlightMax,highlightMin,max,min"],"calcite-handle":[()=>import("./MVZLR322.js"),"blurUnselectDisabled,disabled,dragHandle,label,messageOverrides:,selected,setPosition,setSize;setFocus"],"calcite-icon":[()=>import("./XK74BWBY.js"),"flipRtl,icon,preload,scale,textLabel"],"calcite-inline-editable":[()=>import("./5AD32FNC.js"),"afterConfirm:,controls,disabled,editingEnabled,loading,messageOverrides:,scale;setFocus"],"calcite-input":[()=>import("./BWWNPXLU.js"),"accept,alignment,autocomplete,clearable,disabled,files:,form,groupSeparator,icon,iconFlipRtl,inlineEdit,inlineEditing,inlineEditingBeforeConfirm:,label,labelText,loading,localeFormat,max,maxLength,messageOverrides:,min,minLength,multiple,name,numberButtonType,numberingSystem,pattern,placeholder,prefixText,readOnly,required,scale,status,step,suffixText,type,validationIcon,validationMessage,validity:,value;selectText,setFocus",1],"calcite-input-date-picker":[()=>import("./7H6FLFWC.js"),"calendars,clearable,disabled,flipPlacements:,focusTrapDisabled,form,headingLevel,label,labelText,layout,max,maxAsDate:,messageOverrides:,min,minAsDate:,monthStyle,name,numberingSystem,open,overlayPositioning,placeholder,placement,proximitySelectionDisabled,range,readOnly,required,scale,status,topLayerDisabled,validationIcon,validationMessage,validity:,value,valueAsDate:;reposition,setFocus",1],"calcite-input-message":[()=>import("./2D3W3IJ7.js"),"icon,iconFlipRtl,scale,status"],"calcite-input-number":[()=>import("./TRCQ6XST.js"),"alignment,autocomplete,clearable,disabled,form,groupSeparator,icon,iconFlipRtl,inlineEdit,inlineEditing,inlineEditingBeforeConfirm:,integer,label,labelText,loading,localeFormat,max,maxLength,messageOverrides:,min,minLength,name,numberButtonType,numberingSystem,placeholder,prefixText,readOnly,required,scale,status,step,suffixText,validationIcon,validationMessage,validity:,value;selectText,setFocus",1],"calcite-input-text":[()=>import("./UNE3GNGY.js"),"alignment,autocomplete,clearable,disabled,form,icon,iconFlipRtl,inlineEdit,inlineEditing,inlineEditingBeforeConfirm:,label,labelText,loading,maxLength,messageOverrides:,minLength,name,pattern,placeholder,prefixText,readOnly,required,scale,status,suffixText,validationIcon,validationMessage,validity:,value;selectText,setFocus",1],"calcite-input-time-picker":[()=>import("./475FWYXJ.js"),"clearable,disabled,focusTrapDisabled,form,hourFormat,label,labelText,max,messageOverrides:,min,name,numberingSystem,open,overlayPositioning,placeholder,placement,readOnly,required,scale,status,step,validationIcon,validationMessage,validity:,value;reposition,setFocus",1],"calcite-input-time-zone":[()=>import("./ICD2JOTU.js"),"clearable,disabled,form,label,labelText,maxItems,messageOverrides:,mode,name,offsetStyle,open,overlayPositioning,placeholder,readOnly,referenceDate,required,scale,status,topLayerDisabled,validationIcon,validationMessage,validity:,value;setFocus",1],"calcite-label":[()=>import("./QOJAP6IQ.js"),"alignment,for,layout,scale"],"calcite-link":[()=>import("./5RUJDIZK.js"),"disabled,download,href,iconEnd,iconFlipRtl,iconStart,rel,target;setFocus"],"calcite-list":[()=>import("./SYUFT6VK.js"),"canPull:,canPut:,disabled,displayMode,dragEnabled,filteredData:,filteredItems:,filterEnabled,filterLabel,filterPlaceholder,filterPredicate:,filterProps:,filterText,group,interactionMode,label,loading,messageOverrides:,numberingSystem,scale,selectedItems:,selectionAppearance,selectionMode,sortDisabled;setFocus;emitOrderChangeEvent"],"calcite-list-item":[()=>import("./AVD27JPN.js"),"active,addToItems:,bordered,closable,closed,description,disabled,displayMode,dragDisabled,dragHandle,expanded,filterHidden,iconEnd,iconFlipRtl,iconStart,interactionMode,label,messageOverrides:,metadata:,moveToItems:,open,scale,selected,selectionAppearance,selectionMode,setPosition,setSize,sortDisabled,sortHandleOpen,topLayerDisabled,unavailable,value;setFocus"],"calcite-list-item-group":[()=>import("./MFFPFDN3.js"),"disabled,filterHidden,heading,scale"],"calcite-loader":[()=>import("./UDHNBZCV.js"),"complete,inline,label,messages:,scale,text,type,value"],"calcite-menu":[()=>import("./MMMV7Y53.js"),"label,layout,messageOverrides:,scale;setFocus"],"calcite-menu-item":[()=>import("./JCBILJ2V.js"),"active,breadcrumb,href,iconEnd,iconFlipRtl,iconStart,isTopLevelItem,label,layout,messageOverrides:,open,rel,scale,target,text,topLevelMenuLayout;setFocus"],"calcite-meter":[()=>import("./ZWFV7IQF.js"),"appearance,disabled,fillType,form,groupSeparator,high,label,low,max,messages:,min,name,numberingSystem,rangeLabels,rangeLabelType,scale,unitLabel,value,valueLabel,valueLabelType"],"calcite-navigation":[()=>import("./TATVB4CC.js"),"label,navigationAction,scale;setFocus"],"calcite-navigation-logo":[()=>import("./QP72DRA5.js"),"active,description,heading,headingLevel,href,icon,iconFlipRtl,label,rel,scale,target,thumbnail;setFocus"],"calcite-navigation-user":[()=>import("./47IYU4JY.js"),"active,fullName,label,scale,textDisabled,thumbnail,userId,username;setFocus"],"calcite-notice":[()=>import("./YCXPVQ7W.js"),"appearance,closable,icon,iconFlipRtl,kind,messageOverrides:,open,scale,width;setFocus"],"calcite-option":[()=>import("./2J63RKHC.js"),"disabled,label,selected,value"],"calcite-option-group":[()=>import("./5LJME53S.js"),"disabled,label"],"calcite-pagination":[()=>import("./L3ZV6YAX.js"),"groupSeparator,messageOverrides:,numberingSystem,pageSize,scale,startItem,totalItems;goTo,nextPage,previousPage,setFocus"],"calcite-panel":[()=>import("./3GWFDJCN.js"),"beforeClose:,closable,closed,collapsed,collapseDirection,collapsible,description,disabled,focusTrapEnabled,focusTrapOptions:,heading,headingLevel,icon,iconFlipRtl,loading,menuFlipPlacements:,menuOpen,menuPlacement,messageOverrides:,overlayPositioning,scale,topLayerDisabled;scrollContentTo,setFocus,updateFocusTrapElements"],"calcite-popover":[()=>import("./7EOLSREK.js"),"autoClose,closable,flipDisabled,flipPlacements:,focusTrapDisabled,focusTrapOptions:,heading,headingLevel,label,messageOverrides:,offsetDistance,offsetSkidding,open,overlayPositioning,placement,pointerDisabled,referenceElement,scale,topLayerDisabled,triggerDisabled;reposition,setFocus,updateFocusTrapElements"],"calcite-progress":[()=>import("./DUJO7X4L.js"),"label,reversed,text,type,value"],"calcite-radio-button":[()=>import("./X2BNZPP5.js"),"checked,disabled,focused,form,hovered,label,labelText,name,required,scale,status,validationMessage,validity:,value;emitCheckedChange,setFocus,setValidity",1],"calcite-radio-button-group":[()=>import("./XLOVBA75.js"),"disabled,labelText,layout,messageOverrides:,name,required,scale,selectedItem:,status,validationIcon,validationMessage;setFocus"],"calcite-rating":[()=>import("./SNRRWK5T.js"),"average,count,disabled,form,labelText,messageOverrides:,name,readOnly,required,scale,showChip,status,validationIcon,validationMessage,validity:,value;setFocus",1],"calcite-scrim":[()=>import("./5GYMOLMB.js"),"loading,messageOverrides:"],"calcite-segmented-control":[()=>import("./O5CHXKZB.js"),"appearance,disabled,form,labelText,layout,messageOverrides:,name,required,scale,selectedItem:,status,validationIcon,validationMessage,validity:,value,width;setFocus",1],"calcite-segmented-control-item":[()=>import("./Q6SREDS6.js"),"appearance,checked,iconEnd,iconFlipRtl,iconStart,layout,scale,value"],"calcite-select":[()=>import("./WALL5ANN.js"),"disabled,form,label,labelText,messageOverrides:,name,required,scale,selectedOption:,status,validationIcon,validationMessage,validity:,value,width;setFocus",1],"calcite-sheet":[()=>import("./64NIPUAV.js"),"beforeClose:,displayMode,embedded,escapeDisabled,focusTrapDisabled,focusTrapOptions:,height,heightScale,label,messageOverrides:,messages:,modalDisabled,open,opened,outsideCloseDisabled,position,resizable,topLayerDisabled,width,widthScale;setFocus,updateFocusTrapElements,updateSize"],"calcite-shell":[()=>import("./BY66KZBA.js"),"contentBehind"],"calcite-shell-panel":[()=>import("./C2WNLXMX.js"),"collapsed,displayMode,height,heightScale,layout,messageOverrides:,position,resizable,shellSizingDataProvider:,width,widthScale;updateSize"],"calcite-slider":[()=>import("./CCTCXJLB.js"),"disabled,fillPlacement,form,groupSeparator,hasHistogram,histogram:,histogramStops:,label,labelFormatter:,labelHandles,labelText,labelTicks,max,maxLabel,maxValue,messageOverrides:,min,minLabel,minValue,mirrored,name,numberingSystem,pageStep,precise,required,scale,snap,status,step,ticks,validationIcon,validationMessage,validity:,value;setFocus",1],"calcite-sort-handle":[()=>import("./7LLTCDHJ.js"),"addToItems:,disabled,flipPlacements:,label,messageOverrides:,messages:,moveToItems:,open,overlayPositioning,placement,scale,setPosition,setSize,sortDisabled,topLayerDisabled,widthScale;setFocus"],"calcite-sortable-list":[()=>import("./D5UFORTB.js"),"canPull:,canPut:,disabled,dragSelector,group,handleSelector,layout,loading"],"calcite-split-button":[()=>import("./HY2MTBJL.js"),"active,appearance,disabled,download,dropdownIconType,dropdownLabel,flipPlacements:,href,kind,loading,overlayPositioning,placement,primaryIconEnd,primaryIconFlipRtl,primaryIconStart,primaryLabel,primaryText,rel,scale,target,topLayerDisabled,width;setFocus"],"calcite-stack":[()=>import("./YLCZ6YH7.js"),"disabled"],"calcite-stepper":[()=>import("./ZR5QSMXI.js"),"icon,layout,messageOverrides:,numbered,numberingSystem,scale,selectedItem:;endStep,goToStep,nextStep,prevStep,startStep"],"calcite-stepper-item":[()=>import("./VSHLSN2G.js"),"complete,description,disabled,error,heading,icon,iconFlipRtl,itemHidden,layout,messageOverrides:,numbered,numberingSystem,scale,selected;setFocus"],"calcite-swatch":[()=>import("./RBQTMFDU.js"),"color,disabled,interactive,label,parentSwatchGroup:,scale,selected,selectionMode,value;setFocus"],"calcite-swatch-group":[()=>import("./PZ6BOJMA.js"),"disabled,label,scale,selectedItems:,selectionMode;setFocus"],"calcite-switch":[()=>import("./KWD32TN7.js"),"checked,disabled,form,label,labelTextEnd,labelTextStart,name,required,scale,validity:,value;setFocus",1],"calcite-tab":[()=>import("./AOSRQMDX.js"),"scale,selected,tab;getTabIndex;_updateAriaInfo"],"calcite-tab-nav":[()=>import("./7YIFSPHX.js"),"bordered,lastTabClosable,layout,messageOverrides:,position,scale,selectedTitle:,storageId,syncId"],"calcite-tab-title":[()=>import("./PPCVJI7W.js"),"beforeClose:,bordered,closable,closed,disabled,iconEnd,iconFlipRtl,iconStart,layout,messageOverrides:,position,scale,selected,tab;activateTab,getTabIdentifier,getTabIndex;_updateAriaInfo"],"calcite-table":[()=>import("./34WBVPQS.js"),"bordered,caption,currentPage,groupSeparator,interactionMode,layout,messageOverrides:,numbered,numberingSystem,pageSize,scale,selectedItems:,selectionDisplay,selectionMode,stickyHeader,striped"],"calcite-table-cell":[()=>import("./XEMVN7E4.js"),"alignment,colSpan,disabled,interactionMode,lastCell,messageOverrides:,numberCell,parentRowAlignment,parentRowIsSelected,parentRowPositionLocalized,parentRowType,positionInRow,reachesBodyEnd,readCellContentsToAT,rowSpan,scale,selectionCell;setFocus"],"calcite-table-header":[()=>import("./UA5INVKE.js"),"alignment,bodyRowCount,colSpan,description,heading,interactionMode,lastCell,messageOverrides:,numberCell,parentRowAlignment,parentRowIsSelected,parentRowType,positionInRow,rowSpan,scale,selectedRowCount,selectedRowCountLocalized,selectionCell,selectionMode;setFocus"],"calcite-table-row":[()=>import("./PZR2UCSY.js"),"alignment,bodyRowCount,cellCount,disabled,interactionMode,itemHidden,lastVisibleRow,numbered,positionAll,positionSection,positionSectionLocalized,readCellContentsToAT,rowType,scale,selected,selectedRowCount,selectedRowCountLocalized,selectionMode,stickyHeaderEnabled"],"calcite-tabs":[()=>import("./OV37KUDF.js"),"bordered,lastTabClosable,layout,position,scale"],"calcite-text":[()=>import("./NWGPLN5U.js"),"maxLines,truncatePosition"],"calcite-text-area":[()=>import("./V7HWKMGY.js"),"columns,disabled,form,groupSeparator,label,labelText,limitText,loading,maxLength,messageOverrides:,minLength,name,numberingSystem,placeholder,readOnly,required,resize,rows,scale,status,validationIcon,validationMessage,validity:,value,wrap;selectText,setFocus",1],"calcite-tile":[()=>import("./FKMLUGXQ.js"),"active,alignment,description,disabled,embed,heading,headingLevel,href,icon,iconFlipRtl,interactive,label,layout,scale,selected,selectionAppearance,selectionMode;setFocus"],"calcite-tile-group":[()=>import("./4IQE2ARX.js"),"alignment,disabled,label,layout,scale,selectedItems:,selectionAppearance,selectionMode"],"calcite-time-picker":[()=>import("./GU2BP4QQ.js"),"hourFormat,messageOverrides:,numberingSystem,scale,step,time:,value;setFocus"],"calcite-tooltip":[()=>import("./XKXQ2FRV.js"),"closeOnClick,label,offsetDistance,offsetSkidding,open,overlayPositioning,placement,pointerDisabled,referenceElement,scale,topLayerDisabled;reposition"],"calcite-tree":[()=>import("./V7TTZUDU.js"),"child,lines,parentExpanded,scale,selectedItems:,selectionMode"],"calcite-tree-item":[()=>import("./JDZ2MHQT.js"),"depth,disabled,expanded,hasChildren,iconFlipRtl,iconStart,indeterminate,label,lines,parentExpanded,scale,selected,selectionMode"]});i({resourcesUrl:import.meta.url});var a=new CSSStyleSheet;a.replaceSync(`@layer{:not([calcite-hydrated]):is(calcite-accordion,calcite-accordion-item,calcite-action,calcite-action-bar,calcite-action-group,calcite-action-menu,calcite-action-pad,calcite-alert,calcite-autocomplete,calcite-autocomplete-item,calcite-autocomplete-item-group,calcite-avatar,calcite-block,calcite-block-group,calcite-block-section,calcite-button,calcite-card,calcite-card-group,calcite-carousel,calcite-carousel-item,calcite-checkbox,calcite-chip,calcite-chip-group,calcite-color-picker,calcite-color-picker-hex-input,calcite-color-picker-swatch,calcite-combobox,calcite-combobox-item,calcite-combobox-item-group,calcite-date-picker,calcite-date-picker-day,calcite-date-picker-month,calcite-dialog,calcite-dropdown,calcite-dropdown-group,calcite-dropdown-item,calcite-fab,calcite-filter,calcite-flow,calcite-flow-item,calcite-focus-trap,calcite-graph,calcite-handle,calcite-icon,calcite-inline-editable,calcite-input,calcite-input-date-picker,calcite-input-message,calcite-input-number,calcite-input-text,calcite-input-time-picker,calcite-input-time-zone,calcite-label,calcite-link,calcite-list,calcite-list-item,calcite-list-item-group,calcite-loader,calcite-menu,calcite-menu-item,calcite-meter,calcite-navigation,calcite-navigation-logo,calcite-navigation-user,calcite-notice,calcite-option,calcite-option-group,calcite-pagination,calcite-panel,calcite-popover,calcite-progress,calcite-radio-button,calcite-radio-button-group,calcite-rating,calcite-scrim,calcite-segmented-control,calcite-segmented-control-item,calcite-select,calcite-sheet,calcite-shell,calcite-shell-panel,calcite-slider,calcite-sort-handle,calcite-sortable-list,calcite-split-button,calcite-stack,calcite-stepper,calcite-stepper-item,calcite-swatch,calcite-swatch-group,calcite-switch,calcite-tab,calcite-tab-nav,calcite-tab-title,calcite-table,calcite-table-cell,calcite-table-header,calcite-table-row,calcite-tabs,calcite-text,calcite-text-area,calcite-tile,calcite-tile-group,calcite-time-picker,calcite-tooltip,calcite-tree,calcite-tree-item){visibility:hidden}
|
|
2
|
+
import{S as t,u as e}from"./POJ34CKO.js";var i=e(t,{"calcite-accordion":[()=>import("./BW3W2JV4.js"),"appearance,iconPosition,iconType,scale,selectionMode"],"calcite-accordion-item":[()=>import("./DCPRVIOV.js"),"appearance,description,expanded,heading,headingLevel,iconEnd,iconFlipRtl,iconPosition,iconStart,iconType,messageOverrides:,scale;setFocus"],"calcite-action":[()=>import("./7KFK6UMQ.js"),"active,activeDescendant,alignment,appearance,aria:,compact,disabled,dragHandle,form,icon,iconFlipRtl,indicator,label,loading,messageOverrides:,overflowDisabled,scale,selectionAppearance,text,textEnabled,type,width;setFocus",1],"calcite-action-bar":[()=>import("./LUVFKHWX.js"),"actionsEndGroupLabel,actionsStartGroupLabel,expandDisabled,expanded,expandPosition,expandToggleDisabled,floating,layout,messageOverrides:,overflowActionsDisabled,overflowMode,overlayPositioning,position,scale,selectionAppearance;overflowActions,setFocus"],"calcite-action-group":[()=>import("./I6IRJGWA.js"),"actions:,columns,expanded,label,layout,menuFlipPlacements:,menuOpen,menuPlacement,messageOverrides:,overflowActionsDisabled,overlayPositioning,scale,selectedActions:,selectionMode,topLayerDisabled;setFocus"],"calcite-action-menu":[()=>import("./RNP7WMCG.js"),"actions:,appearance,expanded,flipPlacements:,label,open,overlayPositioning,placement,scale,topLayerDisabled;setFocus"],"calcite-action-pad":[()=>import("./AWRQDF22.js"),"actionsEndGroupLabel,expandDisabled,expanded,layout,messageOverrides:,overlayPositioning,position,scale,selectionAppearance;setFocus"],"calcite-alert":[()=>import("./SPTBEPX3.js"),"active,autoClose,autoCloseDuration,embedded,icon,iconFlipRtl,kind,label,messageOverrides:,numberingSystem,open,openAlertCount,placement,queue,scale,topLayerDisabled;setFocus"],"calcite-autocomplete":[()=>import("./CPFUUBDA.js"),"alignment,autocomplete,disabled,flipPlacements:,form,icon,iconFlipRtl,inputValue,label,labelText,loading,maxLength,messageOverrides:,minLength,name,open,overlayPositioning,pattern,placeholder,placement,prefixText,readOnly,required,scale,status,suffixText,topLayerDisabled,validationIcon,validationMessage,validity:,value;reposition,scrollContentTo,selectText,setFocus",1],"calcite-autocomplete-item":[()=>import("./UG4ISMWE.js"),"active,description,disabled,guid,heading,iconEnd,iconFlipRtl,iconStart,inputValueMatchPattern,label,scale,selected,value;;requestSelection"],"calcite-autocomplete-item-group":[()=>import("./NPCPOUTG.js"),"disableSpacing,heading,items:,label,position,scale"],"calcite-avatar":[()=>import("./DSLFGBDZ.js"),"fullName,label,scale,thumbnail,userId,username"],"calcite-block":[()=>import("./XK6LG672.js"),"addToItems:,collapsible,description,disabled,dragDisabled,dragHandle,expandable,expanded,heading,headingLevel,iconEnd,iconFlipRtl,iconStart,label,loading,menuFlipPlacements:,menuPlacement,messageOverrides:,moveToItems:,open,overlayPositioning,scale,setPosition,setSize,sortDisabled,sortHandleOpen,status,toggleDisplay,topLayerDisabled;setFocus"],"calcite-block-group":[()=>import("./U3YG6WDQ.js"),"canPull:,canPut:,disabled,dragEnabled,expandMode,group,label,loading,scale,sortDisabled;setFocus;emitOrderChangeEvent"],"calcite-block-section":[()=>import("./E6ZBXXZO.js"),"expanded,iconEnd,iconFlipRtl,iconStart,messageOverrides:,open,scale,status,text,toggleDisplay;setFocus"],"calcite-button":[()=>import("./BW27WG4V.js"),"alignment,appearance,disabled,download,form,href,iconEnd,iconFlipRtl,iconStart,kind,label,loading,messageOverrides:,name,rel,round,scale,splitChild,target,type,width;setFocus",1],"calcite-card":[()=>import("./5B2CNALY.js"),"disabled,label,loading,messageOverrides:,scale,selectable,selected,selectionMode,thumbnailPosition;setFocus"],"calcite-card-group":[()=>import("./UP27XAGF.js"),"disabled,label,scale,selectedItems:,selectionMode;setFocus"],"calcite-carousel":[()=>import("./B77TO2FE.js"),"arrowType,autoplay,autoplayDuration,controlOverlay,disabled,label,messageOverrides:,paginationDisabled,paginationPosition,paused,selectedItem:;play,setFocus,stop"],"calcite-carousel-item":[()=>import("./QYTU4N7H.js"),"label,selected"],"calcite-checkbox":[()=>import("./NPHIXWAI.js"),"checked,disabled,form,hovered,indeterminate,label,labelText,messageOverrides:,name,required,scale,status,validity:,value;setFocus",1],"calcite-chip":[()=>import("./WG7232JG.js"),"appearance,closable,closed,closeOnDelete,disabled,icon,iconFlipRtl,interactive,kind,label,messageOverrides:,parentChipGroup:,scale,selected,selectionMode,value;setFocus"],"calcite-chip-group":[()=>import("./DEJ4PCXW.js"),"disabled,label,scale,selectedItems:,selectionMode;setFocus"],"calcite-color-picker":[()=>import("./ZZVJ6JVG.js"),"alphaChannel,channelsDisabled,clearable,color:,disabled,fieldDisabled,format,hexDisabled,messageOverrides:,numberingSystem,savedDisabled,scale,storageId,value;setFocus"],"calcite-color-picker-hex-input":[()=>import("./YKAV2JPA.js"),"allowEmpty,alphaChannel,hexLabel,messages:,numberingSystem,scale,value;setFocus"],"calcite-color-picker-swatch":[()=>import("./V6XMYWUP.js"),"active,color,scale"],"calcite-combobox":[()=>import("./BMFDHX5K.js"),"allowCustomValues,clearDisabled,disabled,filteredItems:,filterProps:,filterText,flipPlacements:,form,label,labelText,maxItems,messageOverrides:,name,open,overlayPositioning,placeholder,placeholderIcon,placeholderIconFlipRtl,placement,readOnly,required,scale,selectAllEnabled,selectedItems:,selectionAppearance,selectionDisplay,selectionMode,status,topLayerDisabled,validationIcon,validationMessage,validity:,value;reposition,setFocus",1],"calcite-combobox-item":[()=>import("./K7QC2ZDU.js"),"active,ancestors:,description,disabled,filterDisabled,filterTextMatchPattern,guid,heading,icon,iconFlipRtl,indeterminate,itemHidden,label,metadata:,scale,selected,selectionAppearance,selectionMode,shortHeading,value;;toggleSelection"],"calcite-combobox-item-group":[()=>import("./TX2XJPMN.js"),"afterEmptyGroup,ancestors:,itemHidden,label,position,scale"],"calcite-date-picker":[()=>import("./LZNA2NKS.js"),"activeDate:,activeRange,calendars,headingLevel,layout,max,maxAsDate:,messageOverrides:,min,minAsDate:,monthStyle,numberingSystem,proximitySelectionDisabled,range,scale,value,valueAsDate:;reset,setFocus"],"calcite-date-picker-day":[()=>import("./BTXEZX2E.js"),"active,currentMonth,dateTimeFormat:,day,disabled,endOfRange,highlighted,range,rangeHover,scale,selected,startOfRange,value:;setFocus"],"calcite-date-picker-month":[()=>import("./7X2ZE26K.js"),"activeDate:,calendars,dateTimeFormat:,endDate:,headingLevel,hoverRange:,layout,localeData:,max:,messages:,min:,monthStyle,range,scale,selectedDate:,startDate:"],"calcite-date-picker-month-header":[()=>import("./ZNF2XKRD.js"),"activeDate:,headingLevel,localeData:,max:,messages:,min:,monthStyle,position,scale,selectedDate:"],"calcite-dialog":[()=>import("./5QSLEGLG.js"),"beforeClose:,closeDisabled,description,dragEnabled,embedded,escapeDisabled,focusTrapDisabled,focusTrapOptions:,fullscreenDisabled,heading,headingLevel,icon,iconFlipRtl,kind,loading,menuOpen,messageOverrides:,modal,open,outsideCloseDisabled,overlayPositioning,placement,resizable,scale,topLayerDisabled,width,widthScale;scrollContentTo,setFocus,updateFocusTrapElements,updateSize"],"calcite-dropdown":[()=>import("./KJNLKQIQ.js"),"closeOnSelectDisabled,disabled,flipPlacements:,maxItems,offsetDistance,offsetSkidding,open,overlayPositioning,placement,referenceElement,scale,selectedItems:,topLayerDisabled,type,width,widthScale;reposition,setFocus"],"calcite-dropdown-group":[()=>import("./JLD2TVF6.js"),"groupTitle,position,scale,selectionMode"],"calcite-dropdown-item":[()=>import("./4ZSCQZAH.js"),"activeDescendant,disabled,href,iconEnd,iconFlipRtl,iconStart,label,rel,scale,selected,selectionMode,target;activateItem,setFocus"],"calcite-fab":[()=>import("./KSUF3NIF.js"),"appearance,disabled,icon,iconFlipRtl,kind,label,loading,scale,text,textEnabled;setFocus"],"calcite-filter":[()=>import("./7WT7RASO.js"),"disabled,filteredItems:,filterProps:,items:,label,messageOverrides:,placeholder,scale,value;filter,setFocus"],"calcite-flow":[()=>import("./QEHLFY6B.js"),"customItemSelectors;back,setFocus"],"calcite-flow-item":[()=>import("./ITNEYONG.js"),"beforeBack:,beforeClose:,closable,closed,collapsed,collapseDirection,collapsible,description,disabled,focusTrapEnabled,focusTrapOptions:,heading,headingLevel,icon,iconFlipRtl,loading,menuOpen,messageOverrides:,overlayPositioning,scale,selected,showBackButton,topLayerDisabled;scrollContentTo,setFocus,updateFocusTrapElements"],"calcite-focus-trap":[()=>import("./RMXCUZS7.js"),"active:,focusTrapDisabled,focusTrapDisabledOverride:,focusTrapOptions:;activate,deactivate,setFocus,updateFocusTrapElements"],"calcite-graph":[()=>import("./O3YUATA7.js"),"colorStops:,data:,highlightMax,highlightMin,max,min"],"calcite-handle":[()=>import("./NISQASUR.js"),"blurUnselectDisabled,disabled,dragHandle,label,messageOverrides:,selected,setPosition,setSize;setFocus"],"calcite-icon":[()=>import("./MHL7SSC6.js"),"flipRtl,icon,preload,scale,textLabel"],"calcite-inline-editable":[()=>import("./DMIVIN3O.js"),"afterConfirm:,controls,disabled,editingEnabled,loading,messageOverrides:,scale;setFocus"],"calcite-input":[()=>import("./GGU7TV4F.js"),"accept,alignment,autocomplete,clearable,disabled,files:,form,groupSeparator,icon,iconFlipRtl,inlineEdit,inlineEditing,inlineEditingBeforeConfirm:,label,labelText,loading,localeFormat,max,maxLength,messageOverrides:,min,minLength,multiple,name,numberButtonType,numberingSystem,pattern,placeholder,prefixText,readOnly,required,scale,status,step,suffixText,type,validationIcon,validationMessage,validity:,value;selectText,setFocus",1],"calcite-input-date-picker":[()=>import("./IH4AMPBO.js"),"calendars,clearable,disabled,flipPlacements:,focusTrapDisabled,form,headingLevel,label,labelText,layout,max,maxAsDate:,messageOverrides:,min,minAsDate:,monthStyle,name,numberingSystem,open,overlayPositioning,placeholder,placement,proximitySelectionDisabled,range,readOnly,required,scale,status,topLayerDisabled,validationIcon,validationMessage,validity:,value,valueAsDate:;reposition,setFocus",1],"calcite-input-message":[()=>import("./2BC6XEQR.js"),"icon,iconFlipRtl,scale,status"],"calcite-input-number":[()=>import("./S7AGZIOA.js"),"alignment,autocomplete,clearable,disabled,form,groupSeparator,icon,iconFlipRtl,inlineEdit,inlineEditing,inlineEditingBeforeConfirm:,integer,label,labelText,loading,localeFormat,max,maxLength,messageOverrides:,min,minLength,name,numberButtonType,numberingSystem,placeholder,prefixText,readOnly,required,scale,status,step,suffixText,validationIcon,validationMessage,validity:,value;selectText,setFocus",1],"calcite-input-text":[()=>import("./LOUCDQ4W.js"),"alignment,autocomplete,clearable,disabled,form,icon,iconFlipRtl,inlineEdit,inlineEditing,inlineEditingBeforeConfirm:,label,labelText,loading,maxLength,messageOverrides:,minLength,name,pattern,placeholder,prefixText,readOnly,required,scale,status,suffixText,validationIcon,validationMessage,validity:,value;selectText,setFocus",1],"calcite-input-time-picker":[()=>import("./VINTCRI4.js"),"clearable,disabled,focusTrapDisabled,form,hourFormat,label,labelText,max,messageOverrides:,min,name,numberingSystem,open,overlayPositioning,placeholder,placement,readOnly,required,scale,status,step,validationIcon,validationMessage,validity:,value;reposition,setFocus",1],"calcite-input-time-zone":[()=>import("./4H2JHQJI.js"),"clearable,disabled,form,label,labelText,maxItems,messageOverrides:,mode,name,offsetStyle,open,overlayPositioning,placeholder,readOnly,referenceDate,required,scale,status,topLayerDisabled,validationIcon,validationMessage,validity:,value;setFocus",1],"calcite-label":[()=>import("./WR4TIONE.js"),"alignment,for,layout,scale"],"calcite-link":[()=>import("./RN4N3S76.js"),"disabled,download,href,iconEnd,iconFlipRtl,iconStart,rel,target;setFocus"],"calcite-list":[()=>import("./RCKVR5UE.js"),"canPull:,canPut:,disabled,displayMode,dragEnabled,filteredData:,filteredItems:,filterEnabled,filterLabel,filterPlaceholder,filterPredicate:,filterProps:,filterText,group,interactionMode,label,loading,messageOverrides:,numberingSystem,scale,selectedItems:,selectionAppearance,selectionMode,sortDisabled;setFocus;emitOrderChangeEvent"],"calcite-list-item":[()=>import("./OU3ELGWB.js"),"active,addToItems:,bordered,closable,closed,description,disabled,displayMode,dragDisabled,dragHandle,expanded,filterHidden,iconEnd,iconFlipRtl,iconStart,interactionMode,label,messageOverrides:,metadata:,moveToItems:,open,scale,selected,selectionAppearance,selectionMode,setPosition,setSize,sortDisabled,sortHandleOpen,topLayerDisabled,unavailable,value;setFocus"],"calcite-list-item-group":[()=>import("./CITATLBN.js"),"disabled,filterHidden,heading,scale"],"calcite-loader":[()=>import("./AIVE2G3F.js"),"complete,inline,label,messages:,scale,text,type,value"],"calcite-menu":[()=>import("./RPKC6E2Z.js"),"label,layout,messageOverrides:,scale;setFocus"],"calcite-menu-item":[()=>import("./DAHNK7HU.js"),"active,breadcrumb,href,iconEnd,iconFlipRtl,iconStart,isTopLevelItem,label,layout,messageOverrides:,open,rel,scale,target,text,topLevelMenuLayout;setFocus"],"calcite-meter":[()=>import("./N4GQLOFC.js"),"appearance,disabled,fillType,form,groupSeparator,high,label,low,max,messages:,min,name,numberingSystem,rangeLabels,rangeLabelType,scale,unitLabel,value,valueLabel,valueLabelType"],"calcite-navigation":[()=>import("./3LRQ2Q6N.js"),"label,navigationAction,scale;setFocus"],"calcite-navigation-logo":[()=>import("./ONJQP2QF.js"),"active,description,heading,headingLevel,href,icon,iconFlipRtl,label,rel,scale,target,thumbnail;setFocus"],"calcite-navigation-user":[()=>import("./US7OH74Z.js"),"active,fullName,label,scale,textDisabled,thumbnail,userId,username;setFocus"],"calcite-notice":[()=>import("./ALN37MWW.js"),"appearance,closable,icon,iconFlipRtl,kind,messageOverrides:,open,scale,width;setFocus"],"calcite-option":[()=>import("./U2IAZX73.js"),"disabled,label,selected,value"],"calcite-option-group":[()=>import("./FXCRLC3T.js"),"disabled,label"],"calcite-pagination":[()=>import("./SQX6RUIY.js"),"groupSeparator,messageOverrides:,numberingSystem,pageSize,scale,startItem,totalItems;goTo,nextPage,previousPage,setFocus"],"calcite-panel":[()=>import("./7QHWXOG6.js"),"beforeClose:,closable,closed,collapsed,collapseDirection,collapsible,description,disabled,focusTrapEnabled,focusTrapOptions:,heading,headingLevel,icon,iconFlipRtl,loading,menuFlipPlacements:,menuOpen,menuPlacement,messageOverrides:,overlayPositioning,scale,topLayerDisabled;scrollContentTo,setFocus,updateFocusTrapElements"],"calcite-popover":[()=>import("./3UJTJZIM.js"),"autoClose,closable,flipDisabled,flipPlacements:,focusTrapDisabled,focusTrapOptions:,heading,headingLevel,label,messageOverrides:,offsetDistance,offsetSkidding,open,overlayPositioning,placement,pointerDisabled,referenceElement,scale,topLayerDisabled,triggerDisabled;reposition,setFocus,updateFocusTrapElements"],"calcite-progress":[()=>import("./32GL6OD7.js"),"label,reversed,text,type,value"],"calcite-radio-button":[()=>import("./BV3G36AA.js"),"checked,disabled,focused,form,hovered,label,labelText,name,required,scale,status,validationMessage,validity:,value;emitCheckedChange,setFocus,setValidity",1],"calcite-radio-button-group":[()=>import("./6V734JQA.js"),"disabled,labelText,layout,messageOverrides:,name,required,scale,selectedItem:,status,validationIcon,validationMessage;setFocus"],"calcite-rating":[()=>import("./IB4REEGW.js"),"average,count,disabled,form,labelText,messageOverrides:,name,readOnly,required,scale,showChip,status,validationIcon,validationMessage,validity:,value;setFocus",1],"calcite-scrim":[()=>import("./4O2F7P2K.js"),"loading,messageOverrides:"],"calcite-segmented-control":[()=>import("./GMXFPTA7.js"),"appearance,disabled,form,labelText,layout,messageOverrides:,name,required,scale,selectedItem:,status,validationIcon,validationMessage,validity:,value,width;setFocus",1],"calcite-segmented-control-item":[()=>import("./SN52MIVD.js"),"appearance,checked,iconEnd,iconFlipRtl,iconStart,layout,scale,value"],"calcite-select":[()=>import("./R5VP3JJ4.js"),"disabled,form,label,labelText,messageOverrides:,name,required,scale,selectedOption:,status,validationIcon,validationMessage,validity:,value,width;setFocus",1],"calcite-sheet":[()=>import("./D6FUGXVO.js"),"beforeClose:,displayMode,embedded,escapeDisabled,focusTrapDisabled,focusTrapOptions:,height,heightScale,label,messageOverrides:,messages:,modalDisabled,open,opened,outsideCloseDisabled,position,resizable,topLayerDisabled,width,widthScale;setFocus,updateFocusTrapElements,updateSize"],"calcite-shell":[()=>import("./5HAQIGGH.js"),"contentBehind"],"calcite-shell-panel":[()=>import("./5OCVOZWC.js"),"collapsed,displayMode,height,heightScale,layout,messageOverrides:,position,resizable,shellSizingDataProvider:,width,widthScale;updateSize"],"calcite-slider":[()=>import("./GOFJHC6K.js"),"disabled,fillPlacement,form,groupSeparator,hasHistogram,histogram:,histogramStops:,label,labelFormatter:,labelHandles,labelText,labelTicks,max,maxLabel,maxValue,messageOverrides:,min,minLabel,minValue,mirrored,name,numberingSystem,pageStep,precise,required,scale,snap,status,step,ticks,validationIcon,validationMessage,validity:,value;setFocus",1],"calcite-sort-handle":[()=>import("./IWG6RMKN.js"),"addToItems:,disabled,flipPlacements:,label,messageOverrides:,messages:,moveToItems:,open,overlayPositioning,placement,scale,setPosition,setSize,sortDisabled,topLayerDisabled,widthScale;setFocus"],"calcite-sortable-list":[()=>import("./EHODVFUU.js"),"canPull:,canPut:,disabled,dragSelector,group,handleSelector,layout,loading"],"calcite-split-button":[()=>import("./VM5EQZC2.js"),"active,appearance,disabled,download,dropdownIconType,dropdownLabel,flipPlacements:,href,kind,loading,overlayPositioning,placement,primaryIconEnd,primaryIconFlipRtl,primaryIconStart,primaryLabel,primaryText,rel,scale,target,topLayerDisabled,width;setFocus"],"calcite-stack":[()=>import("./UBSGG3MZ.js"),"disabled"],"calcite-stepper":[()=>import("./6AYD6QWQ.js"),"icon,layout,messageOverrides:,numbered,numberingSystem,scale,selectedItem:;endStep,goToStep,nextStep,prevStep,startStep"],"calcite-stepper-item":[()=>import("./2BWFYMWU.js"),"complete,description,disabled,error,heading,icon,iconFlipRtl,itemHidden,layout,messageOverrides:,numbered,numberingSystem,scale,selected;setFocus"],"calcite-swatch":[()=>import("./754YWHMD.js"),"color,disabled,interactive,label,parentSwatchGroup:,scale,selected,selectionMode,value;setFocus"],"calcite-swatch-group":[()=>import("./5NFMURRE.js"),"disabled,label,scale,selectedItems:,selectionMode;setFocus"],"calcite-switch":[()=>import("./QCRCWN75.js"),"checked,disabled,form,label,labelTextEnd,labelTextStart,name,required,scale,validity:,value;setFocus",1],"calcite-tab":[()=>import("./VXFZZLN5.js"),"scale,selected,tab;getTabIndex;_updateAriaInfo"],"calcite-tab-nav":[()=>import("./UWMSPEMD.js"),"bordered,lastTabClosable,layout,messageOverrides:,position,scale,selectedTitle:,storageId,syncId"],"calcite-tab-title":[()=>import("./XDGXIEBN.js"),"beforeClose:,bordered,closable,closed,disabled,iconEnd,iconFlipRtl,iconStart,layout,messageOverrides:,position,scale,selected,tab;activateTab,getTabIdentifier,getTabIndex;_updateAriaInfo"],"calcite-table":[()=>import("./VTZSAH53.js"),"bordered,caption,currentPage,groupSeparator,interactionMode,layout,messageOverrides:,numbered,numberingSystem,pageSize,scale,selectedItems:,selectionDisplay,selectionMode,stickyHeader,striped"],"calcite-table-cell":[()=>import("./QQQW3Q4O.js"),"alignment,colSpan,disabled,interactionMode,lastCell,messageOverrides:,numberCell,parentRowAlignment,parentRowIsSelected,parentRowPositionLocalized,parentRowType,positionInRow,reachesBodyEnd,readCellContentsToAT,rowSpan,scale,selectionCell;setFocus"],"calcite-table-header":[()=>import("./S2UQHU6U.js"),"alignment,bodyRowCount,colSpan,description,heading,interactionMode,lastCell,messageOverrides:,numberCell,parentRowAlignment,parentRowIsSelected,parentRowType,positionInRow,rowSpan,scale,selectedRowCount,selectedRowCountLocalized,selectionCell,selectionMode;setFocus"],"calcite-table-row":[()=>import("./OC25ZSXR.js"),"alignment,bodyRowCount,cellCount,disabled,interactionMode,itemHidden,lastVisibleRow,numbered,positionAll,positionSection,positionSectionLocalized,readCellContentsToAT,rowType,scale,selected,selectedRowCount,selectedRowCountLocalized,selectionMode,stickyHeaderEnabled"],"calcite-tabs":[()=>import("./DWGXV3I4.js"),"bordered,lastTabClosable,layout,position,scale"],"calcite-text":[()=>import("./ODDVU6HH.js"),"maxLines,truncatePosition"],"calcite-text-area":[()=>import("./A2A6BPAO.js"),"columns,disabled,form,groupSeparator,label,labelText,limitText,loading,maxLength,messageOverrides:,minLength,name,numberingSystem,placeholder,readOnly,required,resize,rows,scale,status,validationIcon,validationMessage,validity:,value,wrap;selectText,setFocus",1],"calcite-tile":[()=>import("./VWFXENR4.js"),"active,alignment,description,disabled,embed,heading,headingLevel,href,icon,iconFlipRtl,interactive,label,layout,scale,selected,selectionAppearance,selectionMode;setFocus"],"calcite-tile-group":[()=>import("./7VFBNIEQ.js"),"alignment,disabled,label,layout,scale,selectedItems:,selectionAppearance,selectionMode"],"calcite-time-picker":[()=>import("./CR5RLTY7.js"),"hourFormat,messageOverrides:,numberingSystem,scale,step,time:,value;setFocus"],"calcite-tooltip":[()=>import("./QR3WS5SG.js"),"closeOnClick,label,offsetDistance,offsetSkidding,open,overlayPositioning,placement,pointerDisabled,referenceElement,scale,topLayerDisabled;reposition"],"calcite-tree":[()=>import("./IGY3A42N.js"),"child,lines,parentExpanded,scale,selectedItems:,selectionMode"],"calcite-tree-item":[()=>import("./JKQVUBHH.js"),"depth,disabled,expanded,hasChildren,iconFlipRtl,iconStart,indeterminate,label,lines,parentExpanded,scale,selected,selectionMode"]});i({resourcesUrl:import.meta.url});var a=new CSSStyleSheet;a.replaceSync(`@layer{:not([calcite-hydrated]):is(calcite-accordion,calcite-accordion-item,calcite-action,calcite-action-bar,calcite-action-group,calcite-action-menu,calcite-action-pad,calcite-alert,calcite-autocomplete,calcite-autocomplete-item,calcite-autocomplete-item-group,calcite-avatar,calcite-block,calcite-block-group,calcite-block-section,calcite-button,calcite-card,calcite-card-group,calcite-carousel,calcite-carousel-item,calcite-checkbox,calcite-chip,calcite-chip-group,calcite-color-picker,calcite-color-picker-hex-input,calcite-color-picker-swatch,calcite-combobox,calcite-combobox-item,calcite-combobox-item-group,calcite-date-picker,calcite-date-picker-day,calcite-date-picker-month,calcite-dialog,calcite-dropdown,calcite-dropdown-group,calcite-dropdown-item,calcite-fab,calcite-filter,calcite-flow,calcite-flow-item,calcite-focus-trap,calcite-graph,calcite-handle,calcite-icon,calcite-inline-editable,calcite-input,calcite-input-date-picker,calcite-input-message,calcite-input-number,calcite-input-text,calcite-input-time-picker,calcite-input-time-zone,calcite-label,calcite-link,calcite-list,calcite-list-item,calcite-list-item-group,calcite-loader,calcite-menu,calcite-menu-item,calcite-meter,calcite-navigation,calcite-navigation-logo,calcite-navigation-user,calcite-notice,calcite-option,calcite-option-group,calcite-pagination,calcite-panel,calcite-popover,calcite-progress,calcite-radio-button,calcite-radio-button-group,calcite-rating,calcite-scrim,calcite-segmented-control,calcite-segmented-control-item,calcite-select,calcite-sheet,calcite-shell,calcite-shell-panel,calcite-slider,calcite-sort-handle,calcite-sortable-list,calcite-split-button,calcite-stack,calcite-stepper,calcite-stepper-item,calcite-swatch,calcite-swatch-group,calcite-switch,calcite-tab,calcite-tab-nav,calcite-tab-title,calcite-table,calcite-table-cell,calcite-table-header,calcite-table-row,calcite-tabs,calcite-text,calcite-text-area,calcite-tile,calcite-tile-group,calcite-time-picker,calcite-tooltip,calcite-tree,calcite-tree-item){visibility:hidden}
|
|
3
3
|
|
|
4
4
|
:root{--calcite-border-width-none: 0;--calcite-border-width-sm: 1px;--calcite-border-width-md: 2px;--calcite-border-width-lg: 4px;--calcite-container-size-margin: 24px;--calcite-container-size-gutter: 16px;--calcite-container-size-content-fluid: 100%;--calcite-container-size-content-fixed: 1440px;--calcite-corner-radius-sharp: 0;--calcite-corner-radius-none: 0;--calcite-corner-radius-xs: 2px;--calcite-corner-radius-sm: 4px;--calcite-corner-radius-round: 4px;--calcite-corner-radius-pill: 9999px;--calcite-font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;--calcite-font-family-code: Monaco, Consolas, "Andale Mono", "Lucida Console", monospace;--calcite-font-weight-light: 300;--calcite-font-weight-regular: 400;--calcite-font-weight-normal: 400;--calcite-font-weight-medium: 500;--calcite-font-weight-semibold: 600;--calcite-font-weight-bold: 600;--calcite-font-size-xs: 10px;--calcite-font-size-sm: 12px;--calcite-font-size: 14px;--calcite-font-size-md: 16px;--calcite-font-size-lg: 18px;--calcite-font-size-xl: 20px;--calcite-font-size-xxl: 24px;--calcite-font-size-2xl: 24px;--calcite-font-size-relative-xs: .625rem;--calcite-font-size-relative-sm: .75rem;--calcite-font-size-relative-base: .875rem;--calcite-font-size-relative-md: 1rem;--calcite-font-size-relative-lg: 1.125rem;--calcite-font-size-relative-xl: 1.25rem;--calcite-font-size-relative-2xl: 1.625rem;--calcite-font-size-relative-3xl: 2rem;--calcite-font-size-relative-4xl: 2.5rem;--calcite-font-size-relative-5xl: 3rem;--calcite-font-size-relative-6xl: 3.5rem;--calcite-font-size-relative-7xl: 4rem;--calcite-font-style-emphasis: italic;--calcite-font-line-height-fixed-sm: 12px;--calcite-font-line-height-fixed-base: 16px;--calcite-font-line-height-fixed-lg: 20px;--calcite-font-line-height-fixed-xl: 24px;--calcite-font-line-height-fixed-2xl: 32px;--calcite-font-line-height-fixed-3xl: 40px;--calcite-font-line-height-fixed-4xl: 48px;--calcite-font-line-height-fixed-5xl: 64px;--calcite-font-line-height-fixed-6xl: 80px;--calcite-font-line-height-relative: normal;--calcite-font-line-height-relative-base: 1;--calcite-font-line-height-relative-tight: 1.25;--calcite-font-line-height-relative-snug: 1.375;--calcite-font-line-height-relative-normal: 1.5;--calcite-font-line-height-relative-relaxed: 1.625;--calcite-font-line-height-relative-loose: 2;--calcite-font-line-height-xs: .75rem;--calcite-font-line-height-sm: 1rem;--calcite-font-line-height-base: 1rem;--calcite-font-line-height-md: 1.25rem;--calcite-font-line-height-lg: 1.5rem;--calcite-font-line-height-xl: 1.5rem;--calcite-font-line-height-2xl: 2rem;--calcite-font-line-height-3xl: 2.5rem;--calcite-font-line-height-4xl: 3rem;--calcite-font-line-height-5xl: 4rem;--calcite-font-line-height-6xl: 4rem;--calcite-font-line-height-7xl: 5rem;--calcite-font-letter-spacing-tight: -.4px;--calcite-font-letter-spacing-normal: 0;--calcite-font-letter-spacing-wide: .4px;--calcite-font-paragraph-spacing-normal: 4px;--calcite-font-text-decoration-none: none;--calcite-font-text-decoration-underline: underline;--calcite-font-text-case-none: none;--calcite-font-text-case-uppercase: uppercase;--calcite-font-text-case-lowercase: lowercase;--calcite-font-text-case-capitalize: capitalize;--calcite-opacity-disabled: .5;--calcite-opacity-light: .4;--calcite-opacity-half: .5;--calcite-opacity-dark: .85;--calcite-opacity-full: 1;--calcite-shadow-none: 0 0 0 0 rgba(0, 0, 0, 0);--calcite-shadow-sm: 0 2px 8px 0 rgba(0, 0, 0, .1), 0 2px 8px 0 rgba(0, 0, 0, .04);--calcite-shadow-md: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--calcite-size-fixed-xxxs: 2px;--calcite-size-fixed-xxs: 4px;--calcite-size-fixed-xs: 6px;--calcite-size-fixed-sm: 8px;--calcite-size-fixed-sm-plus: 10px;--calcite-size-fixed-md: 12px;--calcite-size-fixed-md-plus: 14px;--calcite-size-fixed-lg: 16px;--calcite-size-fixed-xl: 20px;--calcite-size-fixed-xxl: 24px;--calcite-size-fixed-xxxl: 32px;--calcite-size-px: 1px;--calcite-size-4xs: .625rem;--calcite-size-xxxs: .75rem;--calcite-size-3xs: .75rem;--calcite-size-xxs: .875rem;--calcite-size-2xs: .875rem;--calcite-size-xs: 1rem;--calcite-size-sm: 1.5rem;--calcite-size-md: 2rem;--calcite-size-lg: 2.75rem;--calcite-size-xl: 3rem;--calcite-size-xxl: 4rem;--calcite-size-2xl: 4rem;--calcite-size-xxxl: 6rem;--calcite-size-3xl: 6rem;--calcite-spacing-fixed-xxs: 4px;--calcite-spacing-fixed-xs: 6px;--calcite-spacing-fixed-sm: 8px;--calcite-spacing-fixed-md: 12px;--calcite-spacing-fixed-lg: 14px;--calcite-spacing-fixed-xl: 16px;--calcite-spacing-fixed-xxl: 20px;--calcite-spacing-fixed-xxxl: 32px;--calcite-spacing-none: 0;--calcite-spacing-px: 1px;--calcite-spacing-base: 2px;--calcite-spacing-xxs: .25rem;--calcite-spacing-xs: .375rem;--calcite-spacing-sm: .5rem;--calcite-spacing-sm-plus: .625rem;--calcite-spacing-md: .75rem;--calcite-spacing-md-plus: .875rem;--calcite-spacing-lg: 1rem;--calcite-spacing-xl: 1.25rem;--calcite-spacing-xxl: 1.5rem;--calcite-spacing-xxxl: 2rem;--calcite-space-none: 0;--calcite-space-px: 1px;--calcite-space-base: 2px;--calcite-space-2xs: .25rem;--calcite-space-xs: .375rem;--calcite-space-sm: .5rem;--calcite-space-sm-plus: .625rem;--calcite-space-md: .75rem;--calcite-space-md-plus: .875rem;--calcite-space-lg: 1rem;--calcite-space-xl: 1.25rem;--calcite-space-2xl: 1.5rem;--calcite-space-3xl: 2rem;--calcite-space-4xl: 2.75rem;--calcite-z-index-deep: -999999;--calcite-z-index: 1;--calcite-z-index-sticky: 300;--calcite-z-index-header: 400;--calcite-z-index-toast: 500;--calcite-z-index-dropdown: 600;--calcite-z-index-overlay: 700;--calcite-z-index-modal: 800;--calcite-z-index-popup: 900;--calcite-z-index-tooltip: 901;--calcite-corner-radius: var(--calcite-corner-radius-none)}.calcite-typography{font-family:var(--calcite-font-family);font-size:.875rem;font-weight:400;line-height:1.15}.calcite-typography-light-minus-3h{font-family:var(--calcite-font-family);font-size:.625rem;font-weight:300;line-height:1.2}.calcite-typography-light-minus-2h{font-family:var(--calcite-font-family);font-size:.75rem;font-weight:300;line-height:1.33}.calcite-typography-light-minus-1h{font-family:var(--calcite-font-family);font-size:.875rem;font-weight:300;line-height:1.15}.calcite-typography-light-0h{font-family:var(--calcite-font-family);font-size:1rem;font-weight:300;line-height:1.25}.calcite-typography-light-1h{font-family:var(--calcite-font-family);font-size:1.125rem;font-weight:300;line-height:1.33}.calcite-typography-light-2h{font-family:var(--calcite-font-family);font-size:1.25rem;font-weight:300;line-height:1.2}.calcite-typography-regular-minus-3h{font-family:var(--calcite-font-family);font-size:.625rem;font-weight:400;line-height:1.2}.calcite-typography-regular-minus-2h{font-family:var(--calcite-font-family);font-size:.75rem;font-weight:400;line-height:1.33}.calcite-typography-regular-minus-1h{font-family:var(--calcite-font-family);font-size:.875rem;font-weight:400;line-height:1.15}.calcite-typography-regular-0h{font-family:var(--calcite-font-family);font-size:1rem;font-weight:400;line-height:1.25}.calcite-typography-regular-1h{font-family:var(--calcite-font-family);font-size:1.125rem;font-weight:400;line-height:1.33}.calcite-typography-regular-2h{font-family:var(--calcite-font-family);font-size:1.25rem;font-weight:400;line-height:1.2}.calcite-typography-medium-minus-3h{font-family:var(--calcite-font-family);font-size:.625rem;font-weight:500;line-height:1.2}.calcite-typography-medium-minus-2h{font-family:var(--calcite-font-family);font-size:.75rem;font-weight:500;line-height:1.33}.calcite-typography-medium-minus-1h{font-family:var(--calcite-font-family);font-size:.875rem;font-weight:500;line-height:1.15}.calcite-typography-medium-0h{font-family:var(--calcite-font-family);font-size:1rem;font-weight:500;line-height:1.25}.calcite-typography-medium-1h{font-family:var(--calcite-font-family);font-size:1.125rem;font-weight:500;line-height:1.33}.calcite-typography-medium-2h{font-family:var(--calcite-font-family);font-size:1.25rem;font-weight:500;line-height:1.2}.calcite-typography-bold-minus-3h{font-family:var(--calcite-font-family);font-size:.625rem;font-weight:600;line-height:1.2}.calcite-typography-bold-minus-2h{font-family:var(--calcite-font-family);font-size:.75rem;font-weight:600;line-height:1.33}.calcite-typography-bold-minus-1h{font-family:var(--calcite-font-family);font-size:.875rem;font-weight:600;line-height:1.15}.calcite-typography-bold-0h{font-family:var(--calcite-font-family);font-size:1rem;font-weight:600;line-height:1.25}.calcite-typography-bold-1h{font-family:var(--calcite-font-family);font-size:1.125rem;font-weight:600;line-height:1.33}.calcite-typography-bold-2h{font-family:var(--calcite-font-family);font-size:1.25rem;font-weight:600;line-height:1.2}.calcite-typography-wrap-light-0{font-family:var(--calcite-font-family);font-size:1rem;font-weight:300;line-height:1.375}.calcite-typography-wrap-light-1{font-family:var(--calcite-font-family);font-size:1.125rem;font-weight:300;line-height:1.375}.calcite-typography-wrap-light-2{font-family:var(--calcite-font-family);font-size:1.25rem;font-weight:300;line-height:1.375}.calcite-typography-wrap-light-3{font-family:var(--calcite-font-family);font-size:1.625rem;font-weight:300;line-height:1.25}.calcite-typography-wrap-light-minus-2{font-family:var(--calcite-font-family);font-size:.75rem;font-weight:300;line-height:1.375}.calcite-typography-wrap-light-minus-1{font-family:var(--calcite-font-family);font-size:.875rem;font-weight:300;line-height:1.375}.calcite-typography-wrap-regular-0{font-family:var(--calcite-font-family);font-size:1rem;font-weight:400;line-height:1.375}.calcite-typography-wrap-regular-1{font-family:var(--calcite-font-family);font-size:1.125rem;font-weight:400;line-height:1.375}.calcite-typography-wrap-regular-2{font-family:var(--calcite-font-family);font-size:1.25rem;font-weight:400;line-height:1.375}.calcite-typography-wrap-regular-3{font-family:var(--calcite-font-family);font-size:1.625rem;font-weight:400;line-height:1.25}.calcite-typography-wrap-regular-minus-2{font-family:var(--calcite-font-family);font-size:.75rem;font-weight:400;line-height:1.375}.calcite-typography-wrap-regular-minus-1{font-family:var(--calcite-font-family);font-size:.875rem;font-weight:400;line-height:1.375}.calcite-typography-wrap-medium-0{font-family:var(--calcite-font-family);font-size:1rem;font-weight:500;line-height:1.375}.calcite-typography-wrap-medium-1{font-family:var(--calcite-font-family);font-size:1.125rem;font-weight:500;line-height:1.375}.calcite-typography-wrap-medium-2{font-family:var(--calcite-font-family);font-size:1.25rem;font-weight:500;line-height:1.375}.calcite-typography-wrap-medium-3{font-family:var(--calcite-font-family);font-size:1.625rem;font-weight:500;line-height:1.25}.calcite-typography-wrap-medium-minus-2{font-family:var(--calcite-font-family);font-size:.75rem;font-weight:500;line-height:1.375}.calcite-typography-wrap-medium-minus-1{font-family:var(--calcite-font-family);font-size:.875rem;font-weight:500;line-height:1.375}.calcite-typography-wrap-bold-0{font-family:var(--calcite-font-family);font-size:1rem;font-weight:600;line-height:1.375}.calcite-typography-wrap-bold-1{font-family:var(--calcite-font-family);font-size:1.125rem;font-weight:600;line-height:1.375}.calcite-typography-wrap-bold-2{font-family:var(--calcite-font-family);font-size:1.25rem;font-weight:600;line-height:1.375}.calcite-typography-wrap-bold-3{font-family:var(--calcite-font-family);font-size:1.625rem;font-weight:600;line-height:1.25}.calcite-typography-wrap-bold-minus-2{font-family:var(--calcite-font-family);font-size:.75rem;font-weight:600;line-height:1.375}.calcite-typography-wrap-bold-minus-1{font-family:var(--calcite-font-family);font-size:.875rem;font-weight:600;line-height:1.375}.calcite-typography-hierarchy-display-1{font-size:1.625rem;font-weight:600;line-height:1.375}.calcite-typography-hierarchy-display-2{font-weight:600;line-height:1.375;font-size:1.25rem}.calcite-typography-hierarchy-heading-1{font-size:1.625rem;font-weight:500;line-height:1.375}.calcite-typography-hierarchy-heading-2{font-weight:500;line-height:1.375;font-size:1.25rem}.calcite-typography-hierarchy-heading-3{font-weight:500;line-height:1.375;font-size:1.125rem}.calcite-typography-hierarchy-heading-4{font-weight:500;line-height:1.375;font-size:1rem}.calcite-typography-hierarchy-heading-5{font-weight:500;line-height:1.375;font-size:.875rem}.calcite-typography-hierarchy-body-snug{line-height:1.375;font-size:.875rem}.calcite-typography-hierarchy-body{font-family:var(--calcite-font-family);font-size:.875rem;font-weight:400;line-height:1.15}.calcite-typography-hierarchy-overline{font-size:.75rem;text-case:uppercase;font-weight:600;line-height:1}.calcite-typography-hierarchy-caption{line-height:1.375;font-size:.75rem}:root{color-scheme:light;--calcite-color-surface-1: light-dark( #f7f7f7, #212121 );--calcite-color-surface-2: light-dark( #ffffff, #2b2b2b );--calcite-color-surface-3: light-dark( #f2f2f2, #363636 );--calcite-color-surface-4: light-dark( #ebebeb, #404040 );--calcite-color-surface-highlight: light-dark( #d6efff, #2b465f );--calcite-color-background: light-dark( #f7f7f7, #212121 );--calcite-color-background-none: light-dark( rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) );--calcite-color-foreground-1: light-dark( #ffffff, #2b2b2b );--calcite-color-foreground-2: light-dark( #f2f2f2, #363636 );--calcite-color-foreground-3: light-dark( #ebebeb, #404040 );--calcite-color-foreground-current: light-dark( #d6efff, #2b465f );--calcite-color-text-1: light-dark(#141414, #ffffff);--calcite-color-text-2: light-dark(#4a4a4a, #bfbfbf);--calcite-color-text-3: light-dark(#6b6b6b, #9e9e9e);--calcite-color-text-inverse: light-dark(#ffffff, #141414);--calcite-color-text-link: light-dark(#00619b, #00a0ff);--calcite-color-text-highlight: light-dark(#004874, #d6efff);--calcite-color-border-1: light-dark(#d4d4d4, #545454);--calcite-color-border-2: light-dark(#dedede, #4a4a4a);--calcite-color-border-3: light-dark(#ebebeb, #404040);--calcite-color-border-input: light-dark(#949494, #757575);--calcite-color-border-ghost: light-dark( rgba(0, 0, 0, .3), rgba(117, 117, 117, .3) );--calcite-color-border-white: light-dark( #ffffff, #f7f7f7 );--calcite-color-brand: light-dark(#007ac2, #009af2);--calcite-color-brand-hover: light-dark(#00619b, #40b9ff);--calcite-color-brand-press: light-dark(#004874, #80d1ff);--calcite-color-brand-underline: light-dark( rgba(0, 97, 155, .4), rgba(0, 160, 255, .4) );--calcite-color-inverse: light-dark(#363636, #f7f7f7);--calcite-color-inverse-hover: light-dark(#2b2b2b, #f2f2f2);--calcite-color-inverse-press: light-dark(#212121, #ebebeb);--calcite-color-status-info: light-dark(#00619b, #00a0ff);--calcite-color-status-info-hover: light-dark(#004874, #40b9ff);--calcite-color-status-info-press: light-dark(#00304d, #80d1ff);--calcite-color-status-success: light-dark(#288835, #36da43);--calcite-color-status-success-hover: light-dark(#1a6324, #6df278);--calcite-color-status-success-press: light-dark(#0d3f14, #9df2a3);--calcite-color-status-warning: light-dark(#da7c0b, #f89927);--calcite-color-status-warning-hover: light-dark(#c26b00, #ffaf4f);--calcite-color-status-warning-press: light-dark(#9a5b10, #ffc47d);--calcite-color-status-danger: light-dark(#d83020, #fe583e);--calcite-color-status-danger-hover: light-dark(#a82b1e, #fe7863);--calcite-color-status-danger-press: light-dark(#7c1d13, #fe9989);--calcite-color-transparent: light-dark( rgba(0, 0, 0, 0), rgba(255, 255, 255, 0) );--calcite-color-transparent-hover: light-dark( rgba(0, 0, 0, .04), rgba(255, 255, 255, .12) );--calcite-color-transparent-press: light-dark( rgba(0, 0, 0, .08), rgba(255, 255, 255, .16) );--calcite-color-transparent-scrim: light-dark( rgba(255, 255, 255, .85), rgba(0, 0, 0, .85) );--calcite-color-transparent-tint: light-dark( rgba(255, 255, 255, .8), rgba(43, 43, 43, .8) );--calcite-color-transparent-inverse-hover: light-dark( rgba(255, 255, 255, .12), rgba(0, 0, 0, .04) );--calcite-color-transparent-inverse-press: light-dark( rgba(255, 255, 255, .16), rgba(0, 0, 0, .08) );--calcite-color-focus: var(--calcite-color-brand)}.calcite-mode-auto{color-scheme:light dark}.calcite-mode-dark{color-scheme:dark}.calcite-mode-light{color-scheme:light}:root{--calcite-code-family: "Consolas", "Andale Mono", "Lucida Console", "Monaco", monospace;--calcite-sans-family: "Avenir Next", "Avenir", "Helvetica Neue", sans-serif;--calcite-font-size--3: .625rem;--calcite-font-size--2: .75rem;--calcite-font-size--1: .875rem;--calcite-font-size-0: 1rem;--calcite-font-size-1: 1.125rem;--calcite-font-size-2: 1.25rem;--calcite-font-size-3: 1.625rem;--calcite-font-size-4: 2rem;--calcite-font-size-5: 2.5rem;--calcite-font-size-6: 3rem;--calcite-font-size-7: 3.5rem;--calcite-font-size-8: 4rem;--calcite-font-weight-light: 300;--calcite-font-weight-normal: 400;--calcite-font-weight-medium: 500;--calcite-font-weight-bold: 600;--calcite-floating-ui-transition: var(--calcite-animation-timing);--calcite-animation-easing-function: cubic-bezier(.4, 0, .2, 1);--calcite-animation-timing: calc(.15s * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor: var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast: calc(.1s * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium: calc(.2s * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow: calc(.3s * var(--calcite-internal-duration-factor));--calcite-border-radius: var(--calcite-border-radius-round, 4px);--calcite-border-radius-base: 0;--calcite-offset-invert-focus: 0;--calcite-panel-width-multiplier: 1;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:var(--calcite-font-family)}@media(prefers-reduced-motion:reduce){:root{--calcite-internal-duration-factor: 0}}}`);document.adoptedStyleSheets=[...document.adoptedStyleSheets,a];
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -102,9 +102,9 @@ function getConfig() {
|
|
|
102
102
|
}
|
|
103
103
|
return effectiveConfig;
|
|
104
104
|
}
|
|
105
|
-
const version = "5.2.1-next.
|
|
105
|
+
const version = "5.2.1-next.3";
|
|
106
106
|
const buildDate = "2026-10-21";
|
|
107
|
-
const revision = "
|
|
107
|
+
const revision = "640b9ed33";
|
|
108
108
|
function stampVersion() {
|
|
109
109
|
const config = getConfig();
|
|
110
110
|
if (config && config.version) {
|
|
@@ -127,7 +127,7 @@ if (!isServer) {
|
|
|
127
127
|
if (process.env.NODE_ENV !== "test") {
|
|
128
128
|
queueMicrotask(stampVersion);
|
|
129
129
|
}
|
|
130
|
-
const runtime = makeRuntime({ defaultAssetPath: "https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.2.1-next.
|
|
130
|
+
const runtime = makeRuntime({ defaultAssetPath: "https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.2.1-next.3/dist/cdn/", hydratedAttribute: "calcite-hydrated" });
|
|
131
131
|
const originalSetAssetPath = runtime.setAssetPath;
|
|
132
132
|
runtime.setAssetPath = (path) => {
|
|
133
133
|
assetPathChanged = true;
|
|
@@ -3,6 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { live } from "lit/directives/live.js";
|
|
4
4
|
import { html, css } from "lit";
|
|
5
5
|
import { safeClassMap, LitElement, createEvent, stringOrBoolean, nothing, safeStyleMap } from "@arcgis/lumina";
|
|
6
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
7
|
import { g as guid } from "../../chunks/guid.js";
|
|
7
8
|
import { g as getLabelText } from "../../chunks/label.js";
|
|
8
9
|
import { u as useLabel } from "../../chunks/useLabel.js";
|
|
@@ -31,6 +32,7 @@ const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;use
|
|
|
31
32
|
class Rating extends LitElement {
|
|
32
33
|
constructor() {
|
|
33
34
|
super();
|
|
35
|
+
this.direction = useDirection();
|
|
34
36
|
this.emit = false;
|
|
35
37
|
this.formSupport = useForm({
|
|
36
38
|
inputType: "number",
|
|
@@ -140,6 +142,7 @@ class Rating extends LitElement {
|
|
|
140
142
|
const inputValue = this.getValueFromLabelEvent(event);
|
|
141
143
|
const key = event.key;
|
|
142
144
|
const numberKey = key == " " ? NaN : Number(key);
|
|
145
|
+
const isRtl = this.direction === "rtl";
|
|
143
146
|
this.emit = true;
|
|
144
147
|
if (isNaN(numberKey)) {
|
|
145
148
|
switch (key) {
|
|
@@ -148,15 +151,14 @@ class Rating extends LitElement {
|
|
|
148
151
|
this.value = !this.required && this.value === inputValue ? 0 : inputValue;
|
|
149
152
|
break;
|
|
150
153
|
case "ArrowLeft":
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
case "ArrowRight":
|
|
156
|
-
this.value = this.getNextRatingValue(inputValue);
|
|
154
|
+
case "ArrowRight": {
|
|
155
|
+
const isLeft = key === "ArrowLeft";
|
|
156
|
+
const shouldIncrement = isLeft === isRtl;
|
|
157
|
+
this.value = shouldIncrement ? this.getNextRatingValue(inputValue) : this.getPreviousRatingValue(inputValue);
|
|
157
158
|
this.updateFocus();
|
|
158
159
|
event.preventDefault();
|
|
159
160
|
break;
|
|
161
|
+
}
|
|
160
162
|
case "Tab":
|
|
161
163
|
this.hoverValue = void 0;
|
|
162
164
|
break;
|