@esri/calcite-components 6.0.0-next.31 → 6.0.0-next.32
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/{XHPNS5U2.js → 22EM6PC2.js} +1 -1
- package/dist/cdn/{53PS6CZL.js → 27T56KCJ.js} +1 -1
- package/dist/cdn/{FXXU75VF.js → 27X4URIG.js} +1 -1
- package/dist/cdn/{EMABUCCR.js → 2ADZ7WR7.js} +1 -1
- package/dist/cdn/{XYJCBX3I.js → 3BGTTAUS.js} +1 -1
- package/dist/cdn/{XLKXI7LP.js → 3KAPB7Y4.js} +1 -1
- package/dist/cdn/{CZU7XPPT.js → 3UY6U54N.js} +1 -1
- package/dist/cdn/{2EICVMIF.js → 467XRWLI.js} +1 -1
- package/dist/cdn/{OEIKIW4U.js → 4IJ4XYKR.js} +1 -1
- package/dist/cdn/{LCHQJ4MQ.js → 4KYT4OEB.js} +1 -1
- package/dist/cdn/{ZFFJ2OIF.js → 4PH7QLZ5.js} +1 -1
- package/dist/cdn/{LWFSZPRR.js → 4UJZNDVL.js} +1 -1
- package/dist/cdn/{QGSJUTCP.js → 4X66Y5SG.js} +1 -1
- package/dist/cdn/{EP5LLXX4.js → 5AF7LKCH.js} +1 -1
- package/dist/cdn/{6WV3KNMZ.js → 5CBIKAEI.js} +1 -1
- package/dist/cdn/{AKVVCXG3.js → 5HV3MQAN.js} +1 -1
- package/dist/cdn/{ZLB7L4F5.js → 5NP4NQ75.js} +1 -1
- package/dist/cdn/{WVVMKG5N.js → 6IK4YY4Q.js} +1 -1
- package/dist/cdn/{LZ6OR7RA.js → 6UWV2IB4.js} +1 -1
- package/dist/cdn/{UULWUEQO.js → 74CFBRNP.js} +1 -1
- package/dist/cdn/{2PG2X6DW.js → 7B7AUCFT.js} +1 -1
- package/dist/cdn/{POITAP34.js → 7HIIGKXC.js} +1 -1
- package/dist/cdn/{Q7RZISPL.js → 7VHIR7OZ.js} +1 -1
- package/dist/cdn/{YECKA2ZW.js → AMN4XNVI.js} +1 -1
- package/dist/cdn/{TIWFUW3J.js → AXHUTZFE.js} +1 -1
- package/dist/cdn/{FO6LYZW4.js → AXMEQ5HK.js} +1 -1
- package/dist/cdn/{VMYCDZD2.js → B6MKXPF6.js} +1 -1
- package/dist/cdn/{HXCRPQGA.js → BAM2PBGA.js} +1 -1
- package/dist/cdn/{DJCCMQ2L.js → BE6XQC6U.js} +1 -1
- package/dist/cdn/{PYIK4KHH.js → BQUS7O7D.js} +1 -1
- package/dist/cdn/{VXLGWACB.js → C7S3BDBX.js} +1 -1
- package/dist/cdn/{EF3BUYJC.js → CCVUAR5Z.js} +1 -1
- package/dist/cdn/{XI3MOZK5.js → CERRSYTB.js} +1 -1
- package/dist/cdn/{AHRDMPHO.js → CJ2QW6FE.js} +1 -1
- package/dist/cdn/{TUD6L36C.js → COIMZWZL.js} +1 -1
- package/dist/cdn/{LPFCI2JS.js → CW3F5PSX.js} +1 -1
- package/dist/cdn/{EYH7MGST.js → CXDE6DBI.js} +1 -1
- package/dist/cdn/{I2JJAFXF.js → CXEQ3W3L.js} +1 -1
- package/dist/cdn/{WTEHIDO5.js → CXYDFUFV.js} +1 -1
- package/dist/cdn/{PRQAWGWH.js → D7Z5DPHN.js} +1 -1
- package/dist/cdn/{LTCHWQR3.js → DRWMIG2A.js} +1 -1
- package/dist/cdn/{KXIZ5KRA.js → DZ5YZLLW.js} +1 -1
- package/dist/cdn/{BM7PKQEE.js → DZU2XLXM.js} +1 -1
- package/dist/cdn/{WNN5TCEM.js → EEA73SFZ.js} +1 -1
- package/dist/cdn/{3WAZATDE.js → EHNEXHJE.js} +1 -1
- package/dist/cdn/{DXQRUUGW.js → EIFUYOVZ.js} +1 -1
- package/dist/cdn/{R76EDXIV.js → EIZDIRB4.js} +1 -1
- package/dist/cdn/{OMJJIWNI.js → EKI76LG7.js} +1 -1
- package/dist/cdn/{UWKNJTTT.js → EZI27HAU.js} +1 -1
- package/dist/cdn/{K7TEHKIB.js → FEGFX2WD.js} +1 -1
- package/dist/cdn/{CXUJ6D3S.js → FU7MF74E.js} +1 -1
- package/dist/cdn/{KAS7QQXU.js → GEYT6LB7.js} +1 -1
- package/dist/cdn/{RF2ESZNB.js → GKYK7XCO.js} +1 -1
- package/dist/cdn/{F7HJ5PLB.js → GQSCXVIU.js} +1 -1
- package/dist/cdn/{B3TPMDTI.js → HDPXMQMP.js} +1 -1
- package/dist/cdn/{L3RIQALN.js → HPJSPMNH.js} +1 -1
- package/dist/cdn/{SEJ76OVQ.js → HSPTT3LV.js} +1 -1
- package/dist/cdn/{7JBKIZBM.js → I2DVQMTF.js} +1 -1
- package/dist/cdn/{YYI5VFC7.js → IOERUJQH.js} +1 -1
- package/dist/cdn/{KTAZO6DU.js → ISBKAVOX.js} +1 -1
- package/dist/cdn/{25WQLNNW.js → IZPGTGLJ.js} +1 -1
- package/dist/cdn/{SKAFRDJU.js → J6VYFTM4.js} +1 -1
- package/dist/cdn/{JJPEDAA2.js → JCIA6RBQ.js} +1 -1
- package/dist/cdn/{OYMO3TIV.js → JDKIG3OK.js} +1 -1
- package/dist/cdn/{KHF466WZ.js → JJSTRCI5.js} +1 -1
- package/dist/cdn/{W4TLBDYL.js → K46PS2N6.js} +1 -1
- package/dist/cdn/{RSWSHTGM.js → KCVCJJ3G.js} +1 -1
- package/dist/cdn/{SOPFB2NB.js → KELOMBLQ.js} +1 -1
- package/dist/cdn/{VEHHJZNU.js → KSGKP7BB.js} +1 -1
- package/dist/cdn/{YCD5ER2N.js → KWGKBIM3.js} +1 -1
- package/dist/cdn/{HR7CYYBZ.js → L2YJXRI7.js} +1 -1
- package/dist/cdn/{GBMQJT6W.js → LGADD3GQ.js} +1 -1
- package/dist/cdn/{N5NQSH22.js → LGKFD5NE.js} +1 -1
- package/dist/cdn/{V6RZQJXC.js → LQBOZRSZ.js} +1 -1
- package/dist/cdn/{FLIAG56H.js → LSUYGJUQ.js} +1 -1
- package/dist/cdn/{V6ZZ4RBL.js → LW757VXF.js} +1 -1
- package/dist/cdn/{FU6NA7PB.js → M4QXPEYA.js} +1 -1
- package/dist/cdn/{QBSBGSTD.js → M5EKCOWL.js} +1 -1
- package/dist/cdn/{ZTGJZPSH.js → MGB7IHBN.js} +1 -1
- package/dist/cdn/{54G7DTNB.js → MGO56IDG.js} +1 -1
- package/dist/cdn/{OIJRWX3U.js → MJA76ZEB.js} +1 -1
- package/dist/cdn/{LM44Z2YW.js → MKBFZDRN.js} +1 -1
- package/dist/cdn/{Z3RAOXLB.js → MTMSXD7G.js} +1 -1
- package/dist/cdn/{52AJ3HED.js → MX6NVG77.js} +1 -1
- package/dist/cdn/{5RKUA7QO.js → MZUQW7T7.js} +1 -1
- package/dist/cdn/{R7E74QWO.js → N3EQA7VR.js} +1 -1
- package/dist/cdn/{KMFBNSRF.js → O7KTF2FA.js} +1 -1
- package/dist/cdn/{GMTYKXXG.js → OD5VRFWK.js} +1 -1
- package/dist/cdn/{V3W7VRT4.js → OKOR5MWV.js} +1 -1
- package/dist/cdn/{OQP252UQ.js → OTCKOUA5.js} +1 -1
- package/dist/cdn/{YRWU2UTQ.js → OX7I2ZE2.js} +1 -1
- package/dist/cdn/{KN7MRVRI.js → OZLM7DWI.js} +1 -1
- package/dist/cdn/{UJXLCRG2.js → PJWHKL5T.js} +1 -1
- package/dist/cdn/{EFVTVOOR.js → PP543GMX.js} +1 -1
- package/dist/cdn/{EFVN7U3F.js → PXOGEKNF.js} +1 -1
- package/dist/cdn/{FNAH6NQG.js → PXUJV3K3.js} +1 -1
- package/dist/cdn/{NCFAPNW4.js → PZCLR7V5.js} +1 -1
- package/dist/cdn/{774WPE36.js → QILUIDT6.js} +1 -1
- package/dist/cdn/{3DV2QFJM.js → QVOUVRVF.js} +1 -1
- package/dist/cdn/{H4NA2INQ.js → R7A2S2JK.js} +1 -1
- package/dist/cdn/{N4QWOISQ.js → RHP7E5MQ.js} +1 -1
- package/dist/cdn/{7IUJS4P4.js → RMYDLD3L.js} +1 -1
- package/dist/cdn/{NS2YZ7ZI.js → S26F7J4L.js} +1 -1
- package/dist/cdn/{LAZHNUYQ.js → S3H4IEOB.js} +1 -1
- package/dist/cdn/{BATSHTK3.js → S663GSUU.js} +1 -1
- package/dist/cdn/{2BYBUUJF.js → SHMDC6YI.js} +1 -1
- package/dist/cdn/{3KAWJG7J.js → SKHMBPZX.js} +1 -1
- package/dist/cdn/{AHYVL5HV.js → SNKADWIL.js} +1 -1
- package/dist/cdn/{MHP4C6M5.js → SS7TOHAX.js} +1 -1
- package/dist/cdn/{SSGWU6YZ.js → SZ3RMLLZ.js} +1 -1
- package/dist/cdn/{DZM2S6KB.js → TBE6QB2J.js} +1 -1
- package/dist/cdn/{CIDG2F5F.js → TPAN4Z6I.js} +1 -1
- package/dist/cdn/{C5EVZQH3.js → TQP5GGZ4.js} +1 -1
- package/dist/cdn/{VCIEHQQW.js → TTIGWOQG.js} +1 -1
- package/dist/cdn/{XDMYEBJH.js → UD45ZUIJ.js} +1 -1
- package/dist/cdn/{BUBXZ5WE.js → UF7RT555.js} +1 -1
- package/dist/cdn/{TMVYXUZN.js → UFT5JASX.js} +1 -1
- package/dist/cdn/{FV4TNNCF.js → UIQPXBY4.js} +1 -1
- package/dist/cdn/{JTOHE7CS.js → UOIFOIA6.js} +1 -1
- package/dist/cdn/{VJU4EZTG.js → UR5QD42E.js} +1 -1
- package/dist/cdn/{T5PNTRK7.js → UXLAVDPR.js} +1 -1
- package/dist/cdn/{FAF6XJO6.js → V3GKPSJW.js} +1 -1
- package/dist/cdn/{XVMK63KW.js → VGYAXHO5.js} +1 -1
- package/dist/cdn/{KTKKXZXY.js → VYD36H5B.js} +1 -1
- package/dist/cdn/{ULJ4L2ON.js → VZXKU2HR.js} +1 -1
- package/dist/cdn/{GLTFFYAP.js → WRX5ZQ6D.js} +1 -1
- package/dist/cdn/{MS4WXMPW.js → WYG6UDXB.js} +1 -1
- package/dist/cdn/{RSRFMRYY.js → X52BCUBS.js} +1 -1
- package/dist/cdn/{RGWCUF5I.js → X5DVSEAW.js} +1 -1
- package/dist/cdn/{WZGQOKQU.js → X653HX5H.js} +1 -1
- package/dist/cdn/{2O65CGCA.js → XALW74CE.js} +1 -1
- package/dist/cdn/{E3CDXWJK.js → YHFR2OVW.js} +1 -1
- package/dist/cdn/{UMVVW22N.js → ZGI3EA4A.js} +1 -1
- package/dist/cdn/{PV5DG5LX.js → ZHPJ2ZY3.js} +1 -1
- package/dist/cdn/{G3JKDGAW.js → ZNERL4GM.js} +1 -1
- package/dist/cdn/{HQQWVRW3.js → ZSKZIJOQ.js} +1 -1
- package/dist/cdn/{T4NYST7K.js → ZUVHRYHB.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +4 -4
- package/dist/components/calcite-link/customElement.d.ts +5 -1
- package/dist/components/calcite-link/customElement.js +2 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,9 @@ export interface DeclareCssProperties {
|
|
|
15
15
|
*
|
|
16
16
|
* Passing a 'href' allows the component to behave like a link
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* Use the `label` property to provide a custom accessible name.
|
|
19
|
+
*
|
|
20
|
+
* Consumers are responsible for providing other link attributes such as `rel` and `target`.
|
|
19
21
|
*
|
|
20
22
|
* @slot - A slot for adding text.
|
|
21
23
|
*/
|
|
@@ -42,6 +44,8 @@ export abstract class Link extends LitElement {
|
|
|
42
44
|
accessor iconFlipRtl: FlipContext | undefined;
|
|
43
45
|
/** Specifies an icon to display at the start of the component. */
|
|
44
46
|
accessor iconStart: IconName | undefined;
|
|
47
|
+
/** Specifies an accessible label for the component. */
|
|
48
|
+
accessor label: string | undefined;
|
|
45
49
|
/** Specifies the relationship to the linked resource defined in `href`. */
|
|
46
50
|
accessor rel: string | undefined;
|
|
47
51
|
/** Specifies the frame or window to open the linked resource. */
|
|
@@ -37,7 +37,7 @@ class Link extends LitElement {
|
|
|
37
37
|
this.listen("click", this.clickHandler);
|
|
38
38
|
}
|
|
39
39
|
static {
|
|
40
|
-
this.properties = { disabled: [7, {}, { reflect: true, type: Boolean }], download: [3, { converter: stringOrBoolean }, { reflect: true }], href: [3, {}, { reflect: true }], iconEnd: [3, {}, { reflect: true }], iconFlipRtl: [3, {}, { reflect: true }], iconStart: [3, {}, { reflect: true }], rel: 1, target: 1 };
|
|
40
|
+
this.properties = { disabled: [7, {}, { reflect: true, type: Boolean }], download: [3, { converter: stringOrBoolean }, { reflect: true }], href: [3, {}, { reflect: true }], iconEnd: [3, {}, { reflect: true }], iconFlipRtl: [3, {}, { reflect: true }], iconStart: [3, {}, { reflect: true }], label: 1, rel: 1, target: 1 };
|
|
41
41
|
}
|
|
42
42
|
static {
|
|
43
43
|
this.styles = styles;
|
|
@@ -55,7 +55,7 @@ class Link extends LitElement {
|
|
|
55
55
|
const dir = this.direction;
|
|
56
56
|
const actAsButton = !this.href;
|
|
57
57
|
this.el.role = "presentation";
|
|
58
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html`<a class=${safeClassMap({ [CSS_UTILITY.rtl]: dir === "rtl" })} download=${(download === true || download === "" ? "" : download || void 0) ?? nothing} href=${(this.href || void 0) ?? nothing} @click=${this.anchorClickHandler} @keydown=${actAsButton ? this.keyDownHandler : void 0} rel=${this.rel ?? nothing} .role=${actAsButton ? "button" : void 0} tabindex=${(actAsButton ? 0 : void 0) ?? nothing} target=${(this.href ? this.target : void 0) ?? nothing} ${ref(this.anchorRef)}>${html`${this.iconStart ? this.renderIcon("start") : null}<span class=${safeClassMap(CSS.text)}><slot></slot></span>${this.iconEnd ? this.renderIcon("end") : null}`}</a>` });
|
|
58
|
+
return this.interactiveContainer({ disabled: this.disabled, children: html`<a .ariaLabel=${this.label} class=${safeClassMap({ [CSS_UTILITY.rtl]: dir === "rtl" })} download=${(download === true || download === "" ? "" : download || void 0) ?? nothing} href=${(this.href || void 0) ?? nothing} @click=${this.anchorClickHandler} @keydown=${actAsButton ? this.keyDownHandler : void 0} rel=${this.rel ?? nothing} .role=${actAsButton ? "button" : void 0} tabindex=${(actAsButton ? 0 : void 0) ?? nothing} target=${(this.href ? this.target : void 0) ?? nothing} ${ref(this.anchorRef)}>${html`${this.iconStart ? this.renderIcon("start") : null}<span class=${safeClassMap(CSS.text)}><slot></slot></span>${this.iconEnd ? this.renderIcon("end") : null}`}</a>` });
|
|
59
59
|
}
|
|
60
60
|
renderIcon(position) {
|
|
61
61
|
const isStart = position === "start";
|