@esri/calcite-components 6.0.0-next.37 → 6.0.0-next.39
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/{W62GA6NU.js → 2EVAXBPF.js} +1 -1
- package/dist/cdn/{ASSN355L.js → 2O5XQMAS.js} +1 -1
- package/dist/cdn/{GTDETCHZ.js → 2Q5LNN4H.js} +1 -1
- package/dist/cdn/{3HZ7HUWN.js → 3J2CMFT3.js} +1 -1
- package/dist/cdn/{TO7FSXTE.js → 3MXEFWAT.js} +1 -1
- package/dist/cdn/{Q7DS5DWT.js → 4IPA43WP.js} +1 -1
- package/dist/cdn/{M6KP3FHZ.js → 4MMPVBHW.js} +1 -1
- package/dist/cdn/{KDYAEA4Z.js → 4YNZX2RZ.js} +1 -1
- package/dist/cdn/{OX7V2M4A.js → 5AOCJVKO.js} +1 -1
- package/dist/cdn/{UFC7THL7.js → 5CJA3NSK.js} +1 -1
- package/dist/cdn/{QDKWQYXS.js → 5FKTTB2F.js} +1 -1
- package/dist/cdn/{EUQMVFBJ.js → 5GEHXHHZ.js} +1 -1
- package/dist/cdn/{4FD5JJQH.js → 5IEOCI4D.js} +1 -1
- package/dist/cdn/{NXXWJSTA.js → 5LW4HHUD.js} +1 -1
- package/dist/cdn/{NNT7XBCO.js → 5M2XESPC.js} +1 -1
- package/dist/cdn/{DTXHHBDA.js → 5Z2QUI7C.js} +1 -1
- package/dist/cdn/{4YHGXXQL.js → 6EIZRNKF.js} +1 -1
- package/dist/cdn/{IH43SDJS.js → 6O7EL2GG.js} +1 -1
- package/dist/cdn/{OU7MVR4B.js → 6YBO5VPZ.js} +1 -1
- package/dist/cdn/{P4XE6ZZZ.js → 72DF2FP5.js} +1 -1
- package/dist/cdn/{AQROGW2K.js → 73HKOH4V.js} +1 -1
- package/dist/cdn/{E4GZAXJH.js → 76OYMF44.js} +1 -1
- package/dist/cdn/{YUSU4EBS.js → 7F5GSE5C.js} +1 -1
- package/dist/cdn/{MQ3VSM63.js → 7GGYX7QC.js} +1 -1
- package/dist/cdn/{RQZW427W.js → 7ITIOXXD.js} +1 -1
- package/dist/cdn/{K47G242V.js → 7OQB3NQU.js} +1 -1
- package/dist/cdn/{FSO4HHTR.js → 7PCZUBDH.js} +1 -1
- package/dist/cdn/{ZK42RZZS.js → 7W63EYA4.js} +1 -1
- package/dist/cdn/{ZBRSK3VD.js → A36UEGGR.js} +1 -1
- package/dist/cdn/AEVRC2TZ.js +2 -0
- package/dist/cdn/{YYSUCY5P.js → AMK6BSSC.js} +1 -1
- package/dist/cdn/{3PDPB7QZ.js → AXTESPF6.js} +1 -1
- package/dist/cdn/{6K6I3E2P.js → AZERX5NK.js} +1 -1
- package/dist/cdn/{K6K5YII7.js → BJKLFMZ5.js} +1 -1
- package/dist/cdn/{7TS7GCWB.js → BMTDLQPK.js} +1 -1
- package/dist/cdn/{VYKZSTNK.js → BVUNVYWK.js} +1 -1
- package/dist/cdn/{UO66ZNK4.js → BY2R4L6W.js} +1 -1
- package/dist/cdn/{7PWVZVGL.js → CIDMU3TK.js} +1 -1
- package/dist/cdn/{AGOHJA6M.js → CJ4B42KU.js} +1 -1
- package/dist/cdn/{524WBBTB.js → D5QLA6TB.js} +1 -1
- package/dist/cdn/{TFBMGUXL.js → D6LIIRFN.js} +1 -1
- package/dist/cdn/{MLJKWSY7.js → DA5BT7AJ.js} +1 -1
- package/dist/cdn/{QLFVND6A.js → DK3ZLDVV.js} +1 -1
- package/dist/cdn/{Y2KXRSAR.js → DKL4IBDA.js} +1 -1
- package/dist/cdn/{WZLOFBQS.js → DPKWAK6V.js} +1 -1
- package/dist/cdn/{EDXPXNKO.js → DXDHCQHP.js} +1 -1
- package/dist/cdn/{O7D7G6EN.js → DYULJCF6.js} +1 -1
- package/dist/cdn/{QKTLZQUN.js → E6N6OC7V.js} +1 -1
- package/dist/cdn/{GP34CHYQ.js → E6TXPVUK.js} +1 -1
- package/dist/cdn/{MRIBAYUU.js → EBBWL3GC.js} +1 -1
- package/dist/cdn/{ODCCWLHO.js → EKIT675G.js} +1 -1
- package/dist/cdn/{DJWPH4BH.js → ENFFN5YS.js} +1 -1
- package/dist/cdn/{P3Z3U6EW.js → ENVJOBSM.js} +1 -1
- package/dist/cdn/{NAZZ36GI.js → EWYR23NA.js} +1 -1
- package/dist/cdn/{TZ4SFAU3.js → F2ZNZJQU.js} +1 -1
- package/dist/cdn/{VTI62NNC.js → F44O3DHY.js} +1 -1
- package/dist/cdn/{GC3N62DP.js → FS676SJE.js} +1 -1
- package/dist/cdn/{7F2QIPTY.js → G7AJ6SBV.js} +1 -1
- package/dist/cdn/{T4O5U2M2.js → GHTXDBVB.js} +1 -1
- package/dist/cdn/{57Q6EBY2.js → GKMBFTJX.js} +1 -1
- package/dist/cdn/{QV6GOHCV.js → GRTLC4JW.js} +1 -1
- package/dist/cdn/{TVYZ5MJ6.js → GTL55ZIZ.js} +1 -1
- package/dist/cdn/{KNGFRNBZ.js → GVRPSBEQ.js} +1 -1
- package/dist/cdn/{QPJKCWHN.js → HAQDZHNO.js} +1 -1
- package/dist/cdn/{G3PFNMA4.js → HBL3AZ33.js} +1 -1
- package/dist/cdn/{7USZJATR.js → HCRISYPF.js} +1 -1
- package/dist/cdn/{VEWZWHDK.js → HF6OTUET.js} +1 -1
- package/dist/cdn/{N2RJZ5Y5.js → HIBSGTYP.js} +1 -1
- package/dist/cdn/{2HHATYJR.js → HQD2WNID.js} +1 -1
- package/dist/cdn/{CDCG7OXE.js → HX2I5ER5.js} +1 -1
- package/dist/cdn/{QVVLZSSP.js → HYVBHDE4.js} +1 -1
- package/dist/cdn/{A4SZIADG.js → HZRTT4D4.js} +1 -1
- package/dist/cdn/{LFCH7RWW.js → HZZQM5X6.js} +1 -1
- package/dist/cdn/{C2APFZNF.js → I3F643GU.js} +1 -1
- package/dist/cdn/{M5IRAD3I.js → I7TMREIA.js} +1 -1
- package/dist/cdn/{WUDAEBFN.js → ITS3WENA.js} +1 -1
- package/dist/cdn/{3HLN5YDB.js → KLUAPOCL.js} +1 -1
- package/dist/cdn/{N3VFPAWV.js → L2YYGIAA.js} +1 -1
- package/dist/cdn/{SXLMXADA.js → L7SZ5C47.js} +1 -1
- package/dist/cdn/{TXWO4UHN.js → LKPKGIGX.js} +1 -1
- package/dist/cdn/{7WMZPIRC.js → LMVB2YH5.js} +1 -1
- package/dist/cdn/{HYCXQXFM.js → LUDB674N.js} +1 -1
- package/dist/cdn/{5VVULODW.js → M35EFILC.js} +1 -1
- package/dist/cdn/{VQI3TQZQ.js → M7QZUL4H.js} +1 -1
- package/dist/cdn/{DFI5QYMB.js → MFZ4OYXB.js} +1 -1
- package/dist/cdn/{GJNUGSFY.js → MH7SLOVS.js} +1 -1
- package/dist/cdn/{IUS6A7OU.js → MVFQWEQI.js} +1 -1
- package/dist/cdn/{2NVP6HW7.js → MX3CWBWX.js} +1 -1
- package/dist/cdn/{XEKZJRA5.js → MXEDYHTA.js} +1 -1
- package/dist/cdn/{LS7OFBNJ.js → MYF4NRFE.js} +1 -1
- package/dist/cdn/{KPC3MYFR.js → MZB6LCLX.js} +1 -1
- package/dist/cdn/{NHG33M47.js → N3DODWDZ.js} +1 -1
- package/dist/cdn/{Q5WSLHDY.js → NM465VAG.js} +1 -1
- package/dist/cdn/{54O57WQV.js → NQMKWGHD.js} +1 -1
- package/dist/cdn/{W4P4NJPK.js → NW4GFOWD.js} +1 -1
- package/dist/cdn/{R32WAJSG.js → O23G7IQG.js} +1 -1
- package/dist/cdn/{OYPBMICI.js → O5YM4MPY.js} +1 -1
- package/dist/cdn/{K7DQPJIP.js → OD422W47.js} +1 -1
- package/dist/cdn/{HKLCZISC.js → OUMDQART.js} +1 -1
- package/dist/cdn/{IJVTRSXL.js → OY3YHD5V.js} +1 -1
- package/dist/cdn/{JFUV6THY.js → P2ZFKGWF.js} +1 -1
- package/dist/cdn/{QBRBNIXR.js → P3EEQR4C.js} +1 -1
- package/dist/cdn/{URTZ72R2.js → P3QNVIE4.js} +1 -1
- package/dist/cdn/{BOKGEQ2O.js → PFOEU6JO.js} +1 -1
- package/dist/cdn/{YE24NTR7.js → PK3Z7EO5.js} +1 -1
- package/dist/cdn/{V32PCMHG.js → PXSVR45M.js} +1 -1
- package/dist/cdn/{S33ZYVXV.js → Q42CXWOL.js} +1 -1
- package/dist/cdn/{KCTLWHLJ.js → Q5IBFZWB.js} +1 -1
- package/dist/cdn/{HMH2MKYA.js → QTPPWG2U.js} +1 -1
- package/dist/cdn/{4Y7A3UFB.js → RETP4XRA.js} +1 -1
- package/dist/cdn/{2S3WKYGY.js → RG26GLDZ.js} +1 -1
- package/dist/cdn/{64M6GGX4.js → RMBJIMJJ.js} +1 -1
- package/dist/cdn/{X6J3NQE6.js → SIMLPZXD.js} +1 -1
- package/dist/cdn/{CTBLHDKO.js → SIP5FXGC.js} +1 -1
- package/dist/cdn/{W5XNH3IT.js → SLCFEXCP.js} +1 -1
- package/dist/cdn/{CKCH7TWX.js → T5GOUYAO.js} +1 -1
- package/dist/cdn/{QVFPMVEH.js → TSO5GBRA.js} +1 -1
- package/dist/cdn/{WTPN2BAF.js → TXPJKIEB.js} +1 -1
- package/dist/cdn/{JDMUVSFJ.js → UJIGVSUT.js} +1 -1
- package/dist/cdn/{EM4CCBMC.js → V2CCLVBV.js} +1 -1
- package/dist/cdn/{6TAUFYMH.js → V6C4TX5C.js} +1 -1
- package/dist/cdn/{3JIBHCE2.js → VNHMDSYM.js} +1 -1
- package/dist/cdn/{VE5BG7IA.js → VQHWTU63.js} +1 -1
- package/dist/cdn/VRFK2RD5.js +2 -0
- package/dist/cdn/{B53L3WV4.js → VSVNADF5.js} +1 -1
- package/dist/cdn/{DPVRDJJ2.js → VTN3BBZT.js} +1 -1
- package/dist/cdn/{MO64TA77.js → W3I6TWPB.js} +1 -1
- package/dist/cdn/{B5K4B2QD.js → W4B5XB5B.js} +1 -1
- package/dist/cdn/{H7W2VIUC.js → WWBPOVPZ.js} +1 -1
- package/dist/cdn/{4DRQQQ4F.js → WWLMBEXI.js} +1 -1
- package/dist/cdn/{MDNGPOJD.js → X2QPS5EX.js} +1 -1
- package/dist/cdn/{2SAQVDK6.js → X3OFJN7G.js} +1 -1
- package/dist/cdn/{7CFSRB5X.js → X5AX6IYB.js} +1 -1
- package/dist/cdn/{WAORKQF4.js → XWUGNZTH.js} +1 -1
- package/dist/cdn/{3E7SA7JK.js → ZBM5U5CA.js} +1 -1
- package/dist/cdn/{MJT3EHT7.js → ZCYNRG4B.js} +1 -1
- package/dist/cdn/{CQEEBNPA.js → ZPA5SJEE.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +3 -3
- package/dist/components/calcite-stepper/customElement.d.ts +4 -12
- package/dist/components/calcite-stepper/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +1 -1
- package/dist/cdn/OYWYTVOL.js +0 -2
- package/dist/cdn/SBOWGNMI.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as i,b as o}from"./2ZG5MX5W.js";import{a as x}from"./JFUV6THY.js";import{a as z}from"./FSO4HHTR.js";import{j as l}from"./VTI62NNC.js";import{a as I}from"./JN6YLTUP.js";import{a as y}from"./IH43SDJS.js";import"./2IM7ZZ7U.js";import{a as f}from"./TVYZ5MJ6.js";import{b as g}from"./VMHJHFFS.js";import"./6TAUFYMH.js";import"./VE5BG7IA.js";import{v as b}from"./RRBGCYLX.js";import{E as p,F as d,G as h,H as t,K as m,M as u,T as v,g as c,h as r,l as n,p as a}from"./E4GZAXJH.js";var k=c`:host([disabled]),:host([layout=horizontal][disabled]) .stepper-item-header,:host([layout=horizontal-single][disabled]) .stepper-item-header{opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([layout=horizontal][disabled]) .stepper-item-header *,:host([layout=horizontal-single][disabled]) .stepper-item-header *,:host([disabled]) ::slotted(*),:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),:host([layout=horizontal-single][disabled]) .stepper-item-header ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-stepper-item-spacing-unit-s: .25rem;--calcite-internal-stepper-item-spacing-unit-m: .75rem;--calcite-internal-stepper-item-spacing-unit-l: 1rem;--calcite-internal-stepper-item-header-padding: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-stepper-action-inline-size: 2rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-inline-end:.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size-relative-sm)}:host([scale=m]){--calcite-internal-stepper-item-spacing-unit-s: .5rem;--calcite-internal-stepper-item-spacing-unit-m: 1rem;--calcite-internal-stepper-item-spacing-unit-l: 1.25rem;--calcite-internal-stepper-item-header-padding: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));--calcite-internal-stepper-action-inline-size: 2.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-inline-end:.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size-relative-base)}:host([scale=l]){--calcite-internal-stepper-item-spacing-unit-s: .75rem;--calcite-internal-stepper-item-spacing-unit-m: 1.25rem;--calcite-internal-stepper-item-spacing-unit-l: 1.5rem;--calcite-internal-stepper-item-header-padding: var(--calcite-theme-space-xl, var(--calcite-spacing-xl));--calcite-internal-stepper-action-inline-size: 3rem;font-size:var(--calcite-font-size-relative-lg);line-height:var(--calcite-font-line-height-lg);margin-inline-end:.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-relative-md)}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-bar-gap, var(--calcite-internal-stepper-item-spacing-unit-s))}:host .container{outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md);color:var(--calcite-color-text-3);border-color:var(--calcite-color-border-3);position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:var(--calcite-border-width-none);border-block-start-width:var(--calcite-border-width-md);border-style:solid;text-decoration-line:none}:host .container:active{background-color:var(--calcite-stepper-item-background-color-press, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}:host{outline-color:var(--calcite-color-transparent)}:host(: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)))}:host .stepper-item-content,:host .stepper-item-header{box-sizing:border-box;padding-block:var(--calcite-internal-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start;padding-block:var(--calcite-internal-stepper-item-header-padding)}:host .stepper-item-header:active{background-color:var(--calcite-stepper-item-background-color-press, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}:host .stepper-item-header *{display:inline-flex;align-items:center}:host .stepper-item-content{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);display:none;inline-size:100%;flex-direction:column}:host .stepper-item-icon{margin-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);display:inline-flex;block-size:var(--calcite-space-md);flex-shrink:0;align-self:flex-start;margin-block-start:var(--calcite-theme-space-base, var(--calcite-spacing-base));color:var(--calcite-stepper-item-icon-color, var(--calcite-color-border-input))}:host([complete]) .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}.stepper-item-heading,.stepper-item-description,.stepper-item-number{line-height:var(--calcite-font-line-height-relative-snug)}:host .stepper-item-heading{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));color:var(--calcite-stepper-item-header-text-color, var(--calcite-color-text-1))}:host .stepper-item-description{color:var(--calcite-stepper-item-description-text-color, var(--calcite-color-text-3))}:host .stepper-item-number{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));margin-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);color:var(--calcite-stepper-item-description-text-color, var(--calcite-color-text-1))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([complete]) .container{border-color:#007ac280}:host([complete]) .container .stepper-item-icon{color:var(--calcite-stepper-item-complete-icon-color, var(--calcite-color-brand))}:host([error]) .container{border-block-start-color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([error]) .container .stepper-item-icon{opacity:var(--calcite-opacity-full);color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-stepper-item-header-text-color-hover, var(--calcite-color-text-1))}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-stepper-item-description-text-color-hover, var(--calcite-color-text-2))}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-status-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-stepper-item-selected-header-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-medium)}:host([selected]) .container .stepper-item-description{color:var(--calcite-stepper-item-description-text-color-hover, var(--calcite-color-text-2))}:host([selected]) .container .stepper-item-number{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-brand));font-weight:var(--calcite-font-weight-medium)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-brand));opacity:var(--calcite-opacity-full)}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]){inline-size:100%}:host([layout=vertical]) .container{margin-inline:var(--calcite-space-none);margin-block-start:var(--calcite-space-none);flex:1 1 auto;border-block-start-width:var(--calcite-border-width-none);border-style:solid;padding-block:var(--calcite-space-none);border-inline-start-width:2px;padding-inline-start:var(--calcite-internal-stepper-item-spacing-unit-l);border-color:var(--calcite-stepper-bar-fill-color, var(--calcite-color-border-2))}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:var(--calcite-space-px) var(--calcite-space-none);padding-inline-start:var(--calcite-internal-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:var(--calcite-space-none)}:host([layout=vertical][complete]) .container{border-color:var(--calcite-stepper-bar-complete-fill-color, rgba(0, 122, 194, .5))}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-complete-fill-color-hover, var(--calcite-color-brand))}:host([layout=vertical][error]) .container{border-color:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}:host([layout=vertical][selected]) .container{border-color:var(--calcite-stepper-bar-selected-fill-color, var(--calcite-color-brand))}:host([layout=vertical][selected]) .container .stepper-item-content.has-slotted-content{margin-block-end:var(--calcite-internal-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-fill-color-hover, rgba(0, 122, 194, .5))}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-error-fill-color-hover, var(--calcite-color-status-danger-hover))}:host([layout=horizontal]),:host([layout=horizontal-single]){display:contents}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header,:host([layout=horizontal-single]) .stepper-item-header{border-width:var(--calcite-border-width-none);border-style:solid;border-block-start-width:var(--calcite-border-width-md);outline-color:var(--calcite-color-transparent);grid-row:items;border-color:var(--calcite-stepper-bar-fill-color, var(--calcite-color-border-2))}:host([layout=horizontal]) .stepper-item-header:focus,:host([layout=horizontal-single]) .stepper-item-header: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)))}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{cursor:auto;transition-timing-function:var(--calcite-animation-easing-function);padding-block:0;padding-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal-single]) .stepper-item-header{grid-area:1/1/1/-1}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][complete]) .stepper-item-header,:host([layout=horizontal-single][complete]) .stepper-item-header{border-color:var(--calcite-stepper-bar-complete-fill-color, rgba(0, 122, 194, .5))}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-complete-fill-color-hover, var(--calcite-color-brand))}:host([layout=horizontal][error]) .stepper-item-header,:host([layout=horizontal-single][error]) .stepper-item-header{border-color:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}:host([layout=horizontal][selected]) .stepper-item-header,:host([layout=horizontal-single][selected]) .stepper-item-header{border-color:var(--calcite-stepper-bar-selected-fill-color, var(--calcite-color-brand))}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-fill-color-hover, rgba(0, 122, 194, .5))}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-error-fill-color-hover, var(--calcite-color-status-danger-hover))}@media(forced-colors:active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}:host([layout=horizontal-single]) .stepper-item-header{border-style:none;margin-inline-end:var(--calcite-space-none);inline-size:100%;padding-inline:calc(var(--calcite-internal-stepper-action-inline-size) + .5rem)}:host([layout=horizontal-single][error]) .container .stepper-item-number{color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([layout=horizontal-single][error]) .container .stepper-item-icon{opacity:var(--calcite-opacity-full);color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([layout=horizontal-single][error][selected]),:host([layout=horizontal-single][complete][selected]) .container{color:var(--calcite-color-text-3)}:host([layout=horizontal-single][error][selected]) .stepper-item-heading,:host([layout=horizontal-single][complete][selected]) .container .stepper-item-heading{color:var(--calcite-stepper-item-header-text-color, var(--calcite-color-text-2))}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-number{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-text-3))}:host([hidden]){display:none}[hidden]{display:none}:host([item-hidden]){display:none}`,s=class extends h{constructor(){super(),this.headerRef=p(),this.itemPosition=0,this.selectedPosition=0,this.messages=y(),this.focusSetter=f()(this).setFocus,this.interactiveContainer=z(this),this.stepperItemHasContent=!1,this.complete=!1,this.disabled=!1,this.error=!1,this.icon=!1,this.iconFlipRtl=!1,this.itemHidden=!1,this.numbered=!1,this.scale="m",this.selected=!1,this.calciteInternalStepperItemSelect=a({cancelable:!1}),this.calciteInternalStepperItemUpdate=a({cancelable:!1}),this.calciteStepperItemSelect=a({cancelable:!1}),this.listenOn(document.body,"calciteInternalStepperItemChange",this.updateActiveItemOnChange),this.listen("click",this.handleItemClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={stepperItemHasContent:[16,{},{state:!0}],complete:[7,{},{reflect:!0,type:Boolean}],description:1,disabled:[7,{},{reflect:!0,type:Boolean}],error:[7,{},{reflect:!0,type:Boolean}],heading:1,icon:[5,{},{type:Boolean}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],itemHidden:[7,{},{reflect:!0,type:Boolean}],layout:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],numbered:[5,{},{type:Boolean}],numberingSystem:1,scale:[3,{},{reflect:!0}],selected:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=[k,x]}async setFocus(e){return this.focusSetter(()=>this.layout==="vertical"?this.el:this.headerRef.value,e)}async load(){this.parentStepperEl=this.el.parentElement,this.itemPosition=this.getItemPosition(),this.selected&&this.emitRequestedItem()}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.calciteInternalStepperItemUpdate.emit(),e.has("messages")&&this.effectiveLocaleWatcher(this.messages._lang)}updated(){m(this.el,"tabindex",this.disabled||this.layout==="horizontal"?null:0)}selectedHandler(){this.selected&&this.emitRequestedItem()}effectiveLocaleWatcher(e){l.numberFormatOptions={locale:e,numberingSystem:this.numberingSystem,useGrouping:!1}}updateActiveItemOnChange(e){(e.target===this.parentStepperEl||e.composedPath().includes(this.parentStepperEl))&&(this.selectedPosition=e.detail.position,this.determineSelectedItem())}keyDownHandler(e){!this.disabled&&e.target===this.el&&I(e.key)&&(this.emitUserRequestedItem(),e.preventDefault())}determineSelectedItem(){this.selected=!this.disabled&&this.itemPosition===this.selectedPosition}handleItemClick(e){this.disabled||g(this.el)||this.layout==="horizontal"&&e.composedPath().some(w=>w.classList?.contains("stepper-item-content"))||this.emitUserRequestedItem()}emitUserRequestedItem(){this.emitRequestedItem(),this.disabled||this.calciteStepperItemSelect.emit()}emitRequestedItem(){if(!this.disabled){let e=this.itemPosition;this.calciteInternalStepperItemSelect.emit({position:e})}}getItemPosition(){let e=this.parentStepperEl?.querySelectorAll("calcite-stepper-item:not([hidden]):not([item-hidden])");return e?Array.from(e).indexOf(this.el):-1}render(){return this.el.ariaCurrent=this.selected?"step":"false",this.interactiveContainer({disabled:this.disabled,children:r`<div class=${t(i.container)}>${this.complete&&r`<span aria-live=polite class=${t(u.screenReaderText)}>${this.messages.complete}</span>`||""}<div class=${t(i.stepperItemHeader)} tabindex=${(this.layout==="horizontal"&&!this.disabled?0:void 0)??n} ${d(this.headerRef)}>${this.icon?this.renderIcon():null}${this.numbered?r`<div class=${t(i.stepperItemNumber)}>${this.renderNumbers()}.</div>`:null}<div class=${t(i.stepperItemHeaderText)}><span class=${t(i.stepperItemHeading)}>${this.heading}</span><span class=${t(i.stepperItemDescription)}>${this.description}</span></div></div><div class=${t({[i.stepperItemContent]:!0,[i.hasSlottedContent]:this.stepperItemHasContent})}><slot @slotchange=${e=>this.stepperItemHasContent=b(e)}></slot></div></div>`})}renderIcon(){let e=o.circle;return this.selected&&(this.layout!=="horizontal-single"||!this.error&&!this.complete)?e=o.circleF:this.error?e=o.exclamationMarkCircleF:this.complete&&(e=o.checkCircleF),r`<calcite-icon class=${t(i.stepperItemIcon)} .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}renderNumbers(){return l.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:!1},l.numberFormatter.format(this.itemPosition+1)}};v("calcite-stepper-item",s);export{s as StepperItem};
|
|
2
|
+
import{a as i,b as o}from"./2ZG5MX5W.js";import{a as x}from"./P2ZFKGWF.js";import{a as z}from"./7PCZUBDH.js";import{j as l}from"./F44O3DHY.js";import{a as I}from"./JN6YLTUP.js";import{a as y}from"./6O7EL2GG.js";import"./2IM7ZZ7U.js";import{a as f}from"./GTL55ZIZ.js";import{b as g}from"./VMHJHFFS.js";import"./V6C4TX5C.js";import"./VQHWTU63.js";import{v as b}from"./RRBGCYLX.js";import{E as p,F as d,G as h,H as t,K as m,M as u,T as v,g as c,h as r,l as n,p as a}from"./76OYMF44.js";var k=c`:host([disabled]),:host([layout=horizontal][disabled]) .stepper-item-header,:host([layout=horizontal-single][disabled]) .stepper-item-header{opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([layout=horizontal][disabled]) .stepper-item-header *,:host([layout=horizontal-single][disabled]) .stepper-item-header *,:host([disabled]) ::slotted(*),:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),:host([layout=horizontal-single][disabled]) .stepper-item-header ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-stepper-item-spacing-unit-s: .25rem;--calcite-internal-stepper-item-spacing-unit-m: .75rem;--calcite-internal-stepper-item-spacing-unit-l: 1rem;--calcite-internal-stepper-item-header-padding: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-stepper-action-inline-size: 2rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-inline-end:.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size-relative-sm)}:host([scale=m]){--calcite-internal-stepper-item-spacing-unit-s: .5rem;--calcite-internal-stepper-item-spacing-unit-m: 1rem;--calcite-internal-stepper-item-spacing-unit-l: 1.25rem;--calcite-internal-stepper-item-header-padding: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));--calcite-internal-stepper-action-inline-size: 2.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-inline-end:.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size-relative-base)}:host([scale=l]){--calcite-internal-stepper-item-spacing-unit-s: .75rem;--calcite-internal-stepper-item-spacing-unit-m: 1.25rem;--calcite-internal-stepper-item-spacing-unit-l: 1.5rem;--calcite-internal-stepper-item-header-padding: var(--calcite-theme-space-xl, var(--calcite-spacing-xl));--calcite-internal-stepper-action-inline-size: 3rem;font-size:var(--calcite-font-size-relative-lg);line-height:var(--calcite-font-line-height-lg);margin-inline-end:.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-relative-md)}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-bar-gap, var(--calcite-internal-stepper-item-spacing-unit-s))}:host .container{outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md);color:var(--calcite-color-text-3);border-color:var(--calcite-color-border-3);position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:var(--calcite-border-width-none);border-block-start-width:var(--calcite-border-width-md);border-style:solid;text-decoration-line:none}:host .container:active{background-color:var(--calcite-stepper-item-background-color-press, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}:host{outline-color:var(--calcite-color-transparent)}:host(: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)))}:host .stepper-item-content,:host .stepper-item-header{box-sizing:border-box;padding-block:var(--calcite-internal-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start;padding-block:var(--calcite-internal-stepper-item-header-padding)}:host .stepper-item-header:active{background-color:var(--calcite-stepper-item-background-color-press, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}:host .stepper-item-header *{display:inline-flex;align-items:center}:host .stepper-item-content{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);display:none;inline-size:100%;flex-direction:column}:host .stepper-item-icon{margin-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);display:inline-flex;block-size:var(--calcite-space-md);flex-shrink:0;align-self:flex-start;margin-block-start:var(--calcite-theme-space-base, var(--calcite-spacing-base));color:var(--calcite-stepper-item-icon-color, var(--calcite-color-border-input))}:host([complete]) .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}.stepper-item-heading,.stepper-item-description,.stepper-item-number{line-height:var(--calcite-font-line-height-relative-snug)}:host .stepper-item-heading{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));color:var(--calcite-stepper-item-header-text-color, var(--calcite-color-text-1))}:host .stepper-item-description{color:var(--calcite-stepper-item-description-text-color, var(--calcite-color-text-3))}:host .stepper-item-number{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));margin-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);color:var(--calcite-stepper-item-description-text-color, var(--calcite-color-text-1))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([complete]) .container{border-color:#007ac280}:host([complete]) .container .stepper-item-icon{color:var(--calcite-stepper-item-complete-icon-color, var(--calcite-color-brand))}:host([error]) .container{border-block-start-color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([error]) .container .stepper-item-icon{opacity:var(--calcite-opacity-full);color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-stepper-item-header-text-color-hover, var(--calcite-color-text-1))}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-stepper-item-description-text-color-hover, var(--calcite-color-text-2))}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-status-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-stepper-item-selected-header-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-medium)}:host([selected]) .container .stepper-item-description{color:var(--calcite-stepper-item-description-text-color-hover, var(--calcite-color-text-2))}:host([selected]) .container .stepper-item-number{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-brand));font-weight:var(--calcite-font-weight-medium)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-brand));opacity:var(--calcite-opacity-full)}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]){inline-size:100%}:host([layout=vertical]) .container{margin-inline:var(--calcite-space-none);margin-block-start:var(--calcite-space-none);flex:1 1 auto;border-block-start-width:var(--calcite-border-width-none);border-style:solid;padding-block:var(--calcite-space-none);border-inline-start-width:2px;padding-inline-start:var(--calcite-internal-stepper-item-spacing-unit-l);border-color:var(--calcite-stepper-bar-fill-color, var(--calcite-color-border-2))}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:var(--calcite-space-px) var(--calcite-space-none);padding-inline-start:var(--calcite-internal-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:var(--calcite-space-none)}:host([layout=vertical][complete]) .container{border-color:var(--calcite-stepper-bar-complete-fill-color, rgba(0, 122, 194, .5))}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-complete-fill-color-hover, var(--calcite-color-brand))}:host([layout=vertical][error]) .container{border-color:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}:host([layout=vertical][selected]) .container{border-color:var(--calcite-stepper-bar-selected-fill-color, var(--calcite-color-brand))}:host([layout=vertical][selected]) .container .stepper-item-content.has-slotted-content{margin-block-end:var(--calcite-internal-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-fill-color-hover, rgba(0, 122, 194, .5))}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-error-fill-color-hover, var(--calcite-color-status-danger-hover))}:host([layout=horizontal]),:host([layout=horizontal-single]){display:contents}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header,:host([layout=horizontal-single]) .stepper-item-header{border-width:var(--calcite-border-width-none);border-style:solid;border-block-start-width:var(--calcite-border-width-md);outline-color:var(--calcite-color-transparent);grid-row:items;border-color:var(--calcite-stepper-bar-fill-color, var(--calcite-color-border-2))}:host([layout=horizontal]) .stepper-item-header:focus,:host([layout=horizontal-single]) .stepper-item-header: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)))}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{cursor:auto;transition-timing-function:var(--calcite-animation-easing-function);padding-block:0;padding-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal-single]) .stepper-item-header{grid-area:1/1/1/-1}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][complete]) .stepper-item-header,:host([layout=horizontal-single][complete]) .stepper-item-header{border-color:var(--calcite-stepper-bar-complete-fill-color, rgba(0, 122, 194, .5))}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-complete-fill-color-hover, var(--calcite-color-brand))}:host([layout=horizontal][error]) .stepper-item-header,:host([layout=horizontal-single][error]) .stepper-item-header{border-color:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}:host([layout=horizontal][selected]) .stepper-item-header,:host([layout=horizontal-single][selected]) .stepper-item-header{border-color:var(--calcite-stepper-bar-selected-fill-color, var(--calcite-color-brand))}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-fill-color-hover, rgba(0, 122, 194, .5))}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-error-fill-color-hover, var(--calcite-color-status-danger-hover))}@media(forced-colors:active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}:host([layout=horizontal-single]) .stepper-item-header{border-style:none;margin-inline-end:var(--calcite-space-none);inline-size:100%;padding-inline:calc(var(--calcite-internal-stepper-action-inline-size) + .5rem)}:host([layout=horizontal-single][error]) .container .stepper-item-number{color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([layout=horizontal-single][error]) .container .stepper-item-icon{opacity:var(--calcite-opacity-full);color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([layout=horizontal-single][error][selected]),:host([layout=horizontal-single][complete][selected]) .container{color:var(--calcite-color-text-3)}:host([layout=horizontal-single][error][selected]) .stepper-item-heading,:host([layout=horizontal-single][complete][selected]) .container .stepper-item-heading{color:var(--calcite-stepper-item-header-text-color, var(--calcite-color-text-2))}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-number{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-text-3))}:host([hidden]){display:none}[hidden]{display:none}:host([item-hidden]){display:none}`,s=class extends h{constructor(){super(),this.headerRef=p(),this.itemPosition=0,this.selectedPosition=0,this.messages=y(),this.focusSetter=f()(this).setFocus,this.interactiveContainer=z(this),this.stepperItemHasContent=!1,this.complete=!1,this.disabled=!1,this.error=!1,this.icon=!1,this.iconFlipRtl=!1,this.itemHidden=!1,this.numbered=!1,this.scale="m",this.selected=!1,this.calciteInternalStepperItemSelect=a({cancelable:!1}),this.calciteInternalStepperItemUpdate=a({cancelable:!1}),this.calciteStepperItemSelect=a({cancelable:!1}),this.listenOn(document.body,"calciteInternalStepperItemChange",this.updateActiveItemOnChange),this.listen("click",this.handleItemClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={stepperItemHasContent:[16,{},{state:!0}],complete:[7,{},{reflect:!0,type:Boolean}],description:1,disabled:[7,{},{reflect:!0,type:Boolean}],error:[7,{},{reflect:!0,type:Boolean}],heading:1,icon:[5,{},{type:Boolean}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],itemHidden:[7,{},{reflect:!0,type:Boolean}],layout:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],numbered:[5,{},{type:Boolean}],numberingSystem:1,scale:[3,{},{reflect:!0}],selected:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=[k,x]}async setFocus(e){return this.focusSetter(()=>this.layout==="vertical"?this.el:this.headerRef.value,e)}async load(){this.parentStepperEl=this.el.parentElement,this.itemPosition=this.getItemPosition(),this.selected&&this.emitRequestedItem()}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.calciteInternalStepperItemUpdate.emit(),e.has("messages")&&this.effectiveLocaleWatcher(this.messages._lang)}updated(){m(this.el,"tabindex",this.disabled||this.layout==="horizontal"?null:0)}selectedHandler(){this.selected&&this.emitRequestedItem()}effectiveLocaleWatcher(e){l.numberFormatOptions={locale:e,numberingSystem:this.numberingSystem,useGrouping:!1}}updateActiveItemOnChange(e){(e.target===this.parentStepperEl||e.composedPath().includes(this.parentStepperEl))&&(this.selectedPosition=e.detail.position,this.determineSelectedItem())}keyDownHandler(e){!this.disabled&&e.target===this.el&&I(e.key)&&(this.emitUserRequestedItem(),e.preventDefault())}determineSelectedItem(){this.selected=!this.disabled&&this.itemPosition===this.selectedPosition}handleItemClick(e){this.disabled||g(this.el)||this.layout==="horizontal"&&e.composedPath().some(w=>w.classList?.contains("stepper-item-content"))||this.emitUserRequestedItem()}emitUserRequestedItem(){this.emitRequestedItem(),this.disabled||this.calciteStepperItemSelect.emit()}emitRequestedItem(){if(!this.disabled){let e=this.itemPosition;this.calciteInternalStepperItemSelect.emit({position:e})}}getItemPosition(){let e=this.parentStepperEl?.querySelectorAll("calcite-stepper-item:not([hidden]):not([item-hidden])");return e?Array.from(e).indexOf(this.el):-1}render(){return this.el.ariaCurrent=this.selected?"step":"false",this.interactiveContainer({disabled:this.disabled,children:r`<div class=${t(i.container)}>${this.complete&&r`<span aria-live=polite class=${t(u.screenReaderText)}>${this.messages.complete}</span>`||""}<div class=${t(i.stepperItemHeader)} tabindex=${(this.layout==="horizontal"&&!this.disabled?0:void 0)??n} ${d(this.headerRef)}>${this.icon?this.renderIcon():null}${this.numbered?r`<div class=${t(i.stepperItemNumber)}>${this.renderNumbers()}.</div>`:null}<div class=${t(i.stepperItemHeaderText)}><span class=${t(i.stepperItemHeading)}>${this.heading}</span><span class=${t(i.stepperItemDescription)}>${this.description}</span></div></div><div class=${t({[i.stepperItemContent]:!0,[i.hasSlottedContent]:this.stepperItemHasContent})}><slot @slotchange=${e=>this.stepperItemHasContent=b(e)}></slot></div></div>`})}renderIcon(){let e=o.circle;return this.selected&&(this.layout!=="horizontal-single"||!this.error&&!this.complete)?e=o.circleF:this.error?e=o.exclamationMarkCircleF:this.complete&&(e=o.checkCircleF),r`<calcite-icon class=${t(i.stepperItemIcon)} .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}renderNumbers(){return l.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:!1},l.numberFormatter.format(this.itemPosition+1)}};v("calcite-stepper-item",s);export{s as StepperItem};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as l}from"./DQIUIZK3.js";import{a as g}from"./AFEHLM2Q.js";import{a as u}from"./FDHY2TZA.js";import"./2IM7ZZ7U.js";import{G as h,H as r,T as m,g as d,h as c,p}from"./
|
|
2
|
+
import{a as l}from"./DQIUIZK3.js";import{a as g}from"./AFEHLM2Q.js";import{a as u}from"./FDHY2TZA.js";import"./2IM7ZZ7U.js";import{G as h,H as r,T as m,g as d,h as c,p}from"./76OYMF44.js";var b=d`:host{display:block}.container{text-align:start}.title{margin-block-end:calc(-1 * var(--calcite-space-px));display:block;cursor:default;overflow-wrap:break-word;border-width:var(--calcite-border-width-none);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-dropdown-group-title-text-color, var(--calcite-color-text-1))}.separator{display:block;block-size:var(--calcite-space-px);background-color:var(--calcite-dropdown-group-border-color, var(--calcite-color-border-3))}:host([scale=s]){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=s]) .title{padding-block:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));padding-inline:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .first-title{padding-block-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .separator{margin-block:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));margin-inline:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=m]) .title{padding-block:var(--calcite-theme-space-sm, var(--calcite-spacing-sm));padding-inline:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=m]) .first-title{padding-block-start:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}:host([scale=m]) .separator{margin-block:var(--calcite-theme-space-sm, var(--calcite-spacing-sm));margin-inline:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]){font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l]) .title{padding-block:var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus));padding-inline:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}:host([scale=l]) .first-title{padding-block-start:var(--calcite-theme-space-xl, var(--calcite-spacing-xl))}:host([scale=l]) .separator{margin-block:var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus));margin-inline:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}:host([hidden]){display:none}[hidden]{display:none}`,o=class extends h{constructor(){super(),this.mutationObserver=u("mutation",()=>this.updateItems()),this.items=[],this.describedItems=new Set,this.currentItems=new Set,this.position=-1,this.scale="m",this.selectionMode="single",this.calciteInternalDropdownItemChange=p({cancelable:!1}),this.listen("calciteInternalDropdownItemSelect",this.updateActiveItemOnChange)}static{this.properties={groupTitle:[3,{},{reflect:!0}],position:[9,{},{type:Number}],scale:[3,{},{reflect:!0}],selectionMode:[3,{},{reflect:!0}]}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=b}connectedCallback(){super.connectedCallback(),this.updateItems(),this.mutationObserver?.observe(this.el,{childList:!0})}willUpdate(e){e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="single")&&this.updateItems()}updated(e){e.has("groupTitle")&&this.syncItemGroupDescriptions(this.getItems())}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.describedItems.forEach(e=>{e.ariaDescribedByElements=e.ariaDescribedByElements?.filter(s=>s!==this.el)??null}),this.describedItems.clear(),this.currentItems.clear(),this.items=[]}updateActiveItemOnChange(e){this.requestedDropdownGroup=e.detail.requestedDropdownGroup,this.requestedDropdownItem=e.detail.requestedDropdownItem,this.calciteInternalDropdownItemChange.emit({requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem})}updateItems(){let e=this.getItems();this.items=e,e.forEach(s=>{s.selectionMode=this.selectionMode}),this.syncItemGroupDescriptions(e)}getItems(){return Array.from(this.el.querySelectorAll("calcite-dropdown-item"))}syncItemGroupDescriptions(e=this.items){let s=this.groupTitle?this.el:null,i=this.currentItems;i.clear(),e.forEach(t=>i.add(t));let n=[];this.describedItems.forEach(t=>{i.has(t)||(t.ariaDescribedByElements=t.ariaDescribedByElements?.filter(a=>a!==this.el)??null,n.push(t))}),n.forEach(t=>this.describedItems.delete(t)),i.forEach(t=>{let a=t.ariaDescribedByElements?.filter(v=>v!==this.el)??[];t.ariaDescribedByElements=s?[...a,s]:a,this.describedItems.add(t)}),this.items=e}render(){let e=this.groupTitle?c`<span aria-hidden=true class=${r({[l.title]:!0,[l.firstTitle]:this.position===0})}>${this.groupTitle}</span>`:null,s=this.position>0?c`<div class=${r(l.separator)} role=separator></div>`:null;return this.el.ariaLabel=this.groupTitle??null,this.el.role="group",c`<div class=${r({[g.container]:!0})}>${s}${e}<slot></slot></div>`}};m("calcite-dropdown-group",o);export{o as DropdownGroup};
|