@esri/calcite-components 5.0.1 → 5.0.2-next.1
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/{BOZMVUV7.js → 2TF6MUHY.js} +1 -1
- package/dist/cdn/{3GGFWBMW.js → 37IU7X6L.js} +1 -1
- package/dist/cdn/{PIZNEEPS.js → 3OZ7LBLM.js} +1 -1
- package/dist/cdn/{YO65IEOV.js → 4ABGUBAI.js} +1 -1
- package/dist/cdn/4B2UZUOZ.js +2 -0
- package/dist/cdn/4I6B23DE.js +2 -0
- package/dist/cdn/{DVJQHTGR.js → 4TGMZYHR.js} +1 -1
- package/dist/cdn/{MZMZWYUR.js → 56ZTRXRH.js} +1 -1
- package/dist/cdn/5I6Q7JMU.js +2 -0
- package/dist/cdn/{HKWN76B2.js → 5PYQCW72.js} +1 -1
- package/dist/cdn/{XHUG4XQC.js → 5UDLVWJ3.js} +1 -1
- package/dist/cdn/{6EGMZE4O.js → 5WETLSDD.js} +1 -1
- package/dist/cdn/{GH4B37J4.js → 6AWSATXY.js} +1 -1
- package/dist/cdn/{KP245ZBF.js → 6GY5AJN6.js} +1 -1
- package/dist/cdn/{4FRNO7GL.js → 6P6YBRZ3.js} +1 -1
- package/dist/cdn/{GJRSQYUG.js → 736DNSKH.js} +1 -1
- package/dist/cdn/{XVGFAGMB.js → 75LTP7S4.js} +1 -1
- package/dist/cdn/{YY5U7QTO.js → 7LDMJAMW.js} +1 -1
- package/dist/cdn/{CF6EYAB4.js → 7PMSDVGF.js} +1 -1
- package/dist/cdn/{VPRTJHM5.js → 7T732IKC.js} +1 -1
- package/dist/cdn/{5FVCMC2V.js → 7XX572EQ.js} +1 -1
- package/dist/cdn/{ZCHFPAHX.js → A3HRLJZ3.js} +1 -1
- package/dist/cdn/{PUSHNSUZ.js → ABRKMKJZ.js} +1 -1
- package/dist/cdn/{MQ2L2IAS.js → AEBTKUF4.js} +1 -1
- package/dist/cdn/{HAHBJO52.js → ALUAWLZB.js} +1 -1
- package/dist/cdn/{2WWL7YMY.js → AQVRAYBR.js} +1 -1
- package/dist/cdn/ASPDNTOF.js +2 -0
- package/dist/cdn/AZ62DLZZ.js +2 -0
- package/dist/cdn/{2ER54UNG.js → B4WDPRO6.js} +1 -1
- package/dist/cdn/{HQW5SGD4.js → B54VZGMX.js} +1 -1
- package/dist/cdn/{TCQDIQIA.js → BCJF6BSB.js} +1 -1
- package/dist/cdn/{2EF7AFT4.js → BN22KHXS.js} +1 -1
- package/dist/cdn/{4JCOHFVB.js → BOM766Q6.js} +1 -1
- package/dist/cdn/{32YS47NR.js → BR52O7XZ.js} +1 -1
- package/dist/cdn/{5MPJZHZZ.js → BTFNBRK6.js} +1 -1
- package/dist/cdn/{QN7DZIMR.js → BVOEC5Z6.js} +1 -1
- package/dist/cdn/{ZGEEIDNO.js → C7MCMRBT.js} +1 -1
- package/dist/cdn/COPNEKGG.js +2 -0
- package/dist/cdn/{IZC3PFLC.js → COXIOGSV.js} +1 -1
- package/dist/cdn/{HTGSVNSI.js → CZC32K6X.js} +1 -1
- package/dist/cdn/{HD55Q2LX.js → D737TI4B.js} +1 -1
- package/dist/cdn/{5XMHGCPI.js → DAYRVPG4.js} +1 -1
- package/dist/cdn/{HEB23MX6.js → DOI4I4C6.js} +1 -1
- package/dist/cdn/{IQTDDXGM.js → DVBAFI5E.js} +1 -1
- package/dist/cdn/{WMXYUN7Q.js → EBDSVVNG.js} +1 -1
- package/dist/cdn/EGAM64VB.js +2 -0
- package/dist/cdn/{SZYERRHI.js → EINKRNFX.js} +1 -1
- package/dist/cdn/{5ERZG2SH.js → EIXTBRBE.js} +1 -1
- package/dist/cdn/{H2VY2CHE.js → EZ4VJ5QO.js} +1 -1
- package/dist/cdn/{J5T2CPQH.js → FANVJFBW.js} +1 -1
- package/dist/cdn/{XYAFFNZD.js → FHM32QIF.js} +1 -1
- package/dist/cdn/{JIIAC4QQ.js → FJAHB7JL.js} +1 -1
- package/dist/cdn/{KDAQDKZ6.js → FWUAEVEA.js} +1 -1
- package/dist/cdn/{CSH33D3X.js → G5IUVSUL.js} +1 -1
- package/dist/cdn/{WDIVGB65.js → G5RUNPYI.js} +1 -1
- package/dist/cdn/{4V442MSP.js → GB64MLID.js} +1 -1
- package/dist/cdn/{N7UE22BN.js → GERBQ4WA.js} +1 -1
- package/dist/cdn/{ID67YTWR.js → GKPFKA7A.js} +1 -1
- package/dist/cdn/{Q2X74D5J.js → GOTJU3EI.js} +1 -1
- package/dist/cdn/{FCZN3GLW.js → GQSU5RJT.js} +1 -1
- package/dist/cdn/{QJD5HBPG.js → GSDEOP3L.js} +1 -1
- package/dist/cdn/{HKMQAGJU.js → H6R7HI4Y.js} +1 -1
- package/dist/cdn/{BFHYUPWE.js → H7CFP7AJ.js} +1 -1
- package/dist/cdn/{VK3YFQSD.js → HGPQNCRK.js} +1 -1
- package/dist/cdn/{KMM3FPAM.js → HMZCV7RE.js} +1 -1
- package/dist/cdn/{DUYEIXKJ.js → HYTPJJBZ.js} +1 -1
- package/dist/cdn/{ABBTIBZJ.js → I6MG3FXL.js} +1 -1
- package/dist/cdn/{5XGV2PIV.js → IGREXSRQ.js} +1 -1
- package/dist/cdn/IQHZEAC2.js +2 -0
- package/dist/cdn/{UTWTDAGQ.js → IYHJDTWD.js} +1 -1
- package/dist/cdn/JBDLZBRB.js +2 -0
- package/dist/cdn/{RNPZK6VL.js → JM2MUZ72.js} +1 -1
- package/dist/cdn/{W4VYBNGZ.js → JVAQGABH.js} +1 -1
- package/dist/cdn/{2XHVZIMO.js → KFZCUTSB.js} +1 -1
- package/dist/cdn/{FM54HJJB.js → KW6K5YNK.js} +1 -1
- package/dist/cdn/{T57DFDAI.js → L5PQN2XE.js} +1 -1
- package/dist/cdn/{CYFOTPWL.js → L6NNO5Y2.js} +1 -1
- package/dist/cdn/{ROXDHZQW.js → L7B2IDVM.js} +1 -1
- package/dist/cdn/{TFJ5DURW.js → LBJ36NUR.js} +1 -1
- package/dist/cdn/{PUUR5B6B.js → M6GVPF7D.js} +1 -1
- package/dist/cdn/MAAMW2B7.js +2 -0
- package/dist/cdn/{EUDMSAFC.js → MAZAXG2X.js} +1 -1
- package/dist/cdn/{26MSFL2X.js → MHKNTXHV.js} +1 -1
- package/dist/cdn/{KCOCRZGF.js → MJ3Z3GO4.js} +1 -1
- package/dist/cdn/{L46WCSDE.js → MVMTHRXQ.js} +1 -1
- package/dist/cdn/{EBDZRU62.js → NN4I6OVD.js} +1 -1
- package/dist/cdn/{YMIEKCRY.js → NNVWF4RD.js} +1 -1
- package/dist/cdn/{KZBO4JXY.js → OCRIDDYO.js} +1 -1
- package/dist/cdn/{S3SK7XPY.js → OE5JHRHX.js} +1 -1
- package/dist/cdn/{K6N4V2RI.js → OMQST422.js} +1 -1
- package/dist/cdn/OOXSSERQ.js +2 -0
- package/dist/cdn/{VNOVLC44.js → ORXHAN63.js} +1 -1
- package/dist/cdn/{7POQUZDD.js → OXDMB37D.js} +1 -1
- package/dist/cdn/{YU3EFXB3.js → OZMMHKMI.js} +1 -1
- package/dist/cdn/{DKG7N6W4.js → P3UWQJ5A.js} +1 -1
- package/dist/cdn/{Y37TTFK5.js → PQOHVBJL.js} +1 -1
- package/dist/cdn/{2AEOUSAJ.js → PRZHPDNJ.js} +1 -1
- package/dist/cdn/{ENVECIYB.js → Q7Y75JLG.js} +1 -1
- package/dist/cdn/QG4ZZ773.js +2 -0
- package/dist/cdn/QHTXLZXH.js +2 -0
- package/dist/cdn/{3HDWBRQW.js → QRT6RAP6.js} +1 -1
- package/dist/cdn/{M6OXKYRM.js → QSFI2FXU.js} +1 -1
- package/dist/cdn/{T6TBUMAM.js → R45Z4HA4.js} +1 -1
- package/dist/cdn/{URTLKUNG.js → R7AHP473.js} +1 -1
- package/dist/cdn/{TL7RJ3A4.js → RAWBCJED.js} +1 -1
- package/dist/cdn/{DPMRI6J7.js → RBU4UIPP.js} +1 -1
- package/dist/cdn/{OPQZAIG6.js → RRRARYR7.js} +1 -1
- package/dist/cdn/{5CA3DUUO.js → RUOTH4ND.js} +1 -1
- package/dist/cdn/{KXED5GEH.js → S3EWYNDF.js} +1 -1
- package/dist/cdn/{O2HQ52IT.js → S4KD5HUE.js} +1 -1
- package/dist/cdn/SEHRKGL6.js +2 -0
- package/dist/cdn/SONJMWRU.js +2 -0
- package/dist/cdn/TP3UIQMJ.js +2 -0
- package/dist/cdn/{LZQKHZV2.js → TZI7QB4P.js} +1 -1
- package/dist/cdn/{DSBTGL7J.js → UNKMJZ74.js} +1 -1
- package/dist/cdn/{RPZHVMLG.js → UOJEPGYE.js} +1 -1
- package/dist/cdn/{NUTRUQQ5.js → UPUJEF2I.js} +1 -1
- package/dist/cdn/{B45QBFXF.js → USBLPC64.js} +1 -1
- package/dist/cdn/{N7V5EZIN.js → UYZC53LU.js} +1 -1
- package/dist/cdn/{ZLN4IPKQ.js → V7N4AUX2.js} +1 -1
- package/dist/cdn/{XS2MK3FW.js → VCLHL6EN.js} +1 -1
- package/dist/cdn/{3NIQATQS.js → VHS3ED53.js} +1 -1
- package/dist/cdn/{P3SGNE45.js → VIUWVD3E.js} +1 -1
- package/dist/cdn/{3EEOGSFQ.js → VU7BRHTX.js} +1 -1
- package/dist/cdn/{A2JETGGY.js → VVV43WKE.js} +1 -1
- package/dist/cdn/{ST6SXM7P.js → VZUVNDQI.js} +1 -1
- package/dist/cdn/{QCT4DZF5.js → W3IKOE47.js} +1 -1
- package/dist/cdn/{3EQJ3YR3.js → WIKNVLZQ.js} +1 -1
- package/dist/cdn/{2QPXBQVA.js → WO6DN3C3.js} +1 -1
- package/dist/cdn/{AZAA5I5T.js → WSY4MZAW.js} +1 -1
- package/dist/cdn/{CW4DVEDS.js → WX5DK2YA.js} +1 -1
- package/dist/cdn/{7EHCJ4DQ.js → XCMEXBVC.js} +1 -1
- package/dist/cdn/{UMNBKAWV.js → XLR5DSUH.js} +1 -1
- package/dist/cdn/{6RR5SJL4.js → XQAFN7IM.js} +1 -1
- package/dist/cdn/{W4EJM2RB.js → YMQVHNTW.js} +1 -1
- package/dist/cdn/{DECCDYDC.js → YTXRTOPP.js} +1 -1
- package/dist/cdn/{D4UOIDSP.js → YUF7ORUE.js} +1 -1
- package/dist/cdn/YZLN2CQO.js +2 -0
- package/dist/cdn/{4FZOLUC2.js → Z45WIDY6.js} +1 -1
- package/dist/cdn/{Q6KEWISV.js → ZFSX2BLW.js} +1 -1
- package/dist/cdn/{TGSJVIYE.js → ZGP3YSR3.js} +1 -1
- package/dist/cdn/{EWZJCQT5.js → ZN5ZN6AC.js} +1 -1
- package/dist/cdn/{Q6WEAYV6.js → ZWZID5EL.js} +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/carousel/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/icon/addToLivestreamVideoLayer16.json +1 -0
- package/dist/cdn/assets/icon/addToLivestreamVideoLayer24.json +1 -0
- package/dist/cdn/assets/icon/addToLivestreamVideoLayer32.json +1 -0
- package/dist/cdn/assets/icon/addToVideoLayer16.json +1 -0
- package/dist/cdn/assets/icon/addToVideoLayer24.json +1 -0
- package/dist/cdn/assets/icon/addToVideoLayer32.json +1 -0
- package/dist/cdn/assets/icon/conditionalRulesDown16.json +1 -0
- package/dist/cdn/assets/icon/conditionalRulesDown24.json +1 -0
- package/dist/cdn/assets/icon/conditionalRulesDown32.json +1 -0
- package/dist/cdn/assets/icon/featureDetailsSet16.json +1 -0
- package/dist/cdn/assets/icon/featureDetailsSet24.json +1 -0
- package/dist/cdn/assets/icon/featureDetailsSet32.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/aria.js +12 -0
- package/dist/chunks/dom.js +9 -13
- package/dist/chunks/floating-ui.js +5 -5
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useFocusTrap.js +1 -1
- package/dist/chunks/useSizeOverride.js +58 -24
- package/dist/components/calcite-action-menu/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +2 -1
- package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.js +5 -11
- package/dist/components/calcite-dropdown/customElement.js +1 -1
- package/dist/components/calcite-dropdown-item/customElement.js +1 -1
- package/dist/components/calcite-icon/customElement.js +2 -1
- package/dist/components/calcite-list/customElement.d.ts +1 -0
- package/dist/components/calcite-list/customElement.js +14 -4
- package/dist/components/calcite-list-item/customElement.js +1 -1
- package/dist/components/calcite-meter/customElement.js +1 -1
- package/dist/components/calcite-popover/customElement.js +2 -1
- package/dist/components/calcite-segmented-control-item/customElement.js +2 -1
- package/dist/components/calcite-sheet/customElement.js +14 -15
- package/dist/components/calcite-shell-panel/customElement.js +8 -12
- package/dist/components/calcite-slider/customElement.js +1 -1
- package/dist/components/calcite-tab-nav/customElement.js +1 -1
- package/dist/components/calcite-tab-title/customElement.js +2 -1
- package/dist/components/calcite-tabs/customElement.js +1 -1
- package/dist/components/calcite-tooltip/customElement.js +1 -1
- package/dist/components/calcite-tree/customElement.js +2 -1
- package/dist/components/calcite-tree-item/customElement.js +2 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/translations.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/cdn/47TROKR5.js +0 -2
- package/dist/cdn/5IS2XCYK.js +0 -2
- package/dist/cdn/AG63SK35.js +0 -2
- package/dist/cdn/BSAERI3P.js +0 -2
- package/dist/cdn/CBWWW54X.js +0 -2
- package/dist/cdn/DCOWZP7H.js +0 -2
- package/dist/cdn/DQBDX3JP.js +0 -2
- package/dist/cdn/DV6PZIWJ.js +0 -2
- package/dist/cdn/DVVCFHUP.js +0 -2
- package/dist/cdn/HDXNLI6L.js +0 -2
- package/dist/cdn/J7UBPJM3.js +0 -2
- package/dist/cdn/LUUHTNOP.js +0 -2
- package/dist/cdn/MLTNSABV.js +0 -2
- package/dist/cdn/OJXQN5G4.js +0 -2
- package/dist/cdn/Q3ZUCK2B.js +0 -2
- package/dist/cdn/SQM2AMEE.js +0 -2
|
@@ -270,7 +270,7 @@ class DatePickerMonthHeader extends LitElement {
|
|
|
270
270
|
renderChevron(direction) {
|
|
271
271
|
const isDirectionRight = direction === "right";
|
|
272
272
|
const isDisabled = hasSameMonthAndYear(isDirectionRight ? this.nextMonthDate : this.prevMonthDate, this.activeDate) || !inRange(this.activeDate, this.min, this.max);
|
|
273
|
-
return html`<calcite-action alignment=center .ariaDisabled=${isDisabled} .ariaLabel=${isDirectionRight ? this.messages.nextMonth : this.messages.prevMonth} class=${safeClassMap(CSS.chevron)} compact data-direction=${direction ?? nothing} .disabled=${isDisabled} .icon=${isDirectionRight ? ICON.chevronRight : ICON.chevronLeft} icon-flip-rtl @click=${isDirectionRight ? this.nextMonthClick : this.prevMonthClick} @keydown=${isDirectionRight ? this.nextMonthKeydown : this.prevMonthKeydown} role=button .scale=${this.scale
|
|
273
|
+
return html`<calcite-action alignment=center .ariaDisabled=${isDisabled} .ariaLabel=${isDirectionRight ? this.messages.nextMonth : this.messages.prevMonth} class=${safeClassMap(CSS.chevron)} compact data-direction=${direction ?? nothing} .disabled=${isDisabled} .icon=${isDirectionRight ? ICON.chevronRight : ICON.chevronLeft} icon-flip-rtl @click=${isDirectionRight ? this.nextMonthClick : this.prevMonthClick} @keydown=${isDirectionRight ? this.nextMonthKeydown : this.prevMonthKeydown} role=button .scale=${this.scale} .text=${isDirectionRight ? this.messages.nextMonth : this.messages.prevMonth} ${ref(isDirectionRight ? this.nextMonthActionRef : this.prevMonthActionRef)}></calcite-action>`;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
customElement("calcite-date-picker-month-header", DatePickerMonthHeader);
|
|
@@ -77,7 +77,10 @@ class Dialog extends LitElement {
|
|
|
77
77
|
inline: { min: this.resizeValues.minInlineSize, max: this.resizeValues.maxInlineSize },
|
|
78
78
|
block: { min: this.resizeValues.minBlockSize, max: this.resizeValues.maxBlockSize }
|
|
79
79
|
}),
|
|
80
|
-
fullscreenDisabled: () => this.fullscreenDisabled
|
|
80
|
+
fullscreenDisabled: () => this.fullscreenDisabled,
|
|
81
|
+
onResize: (resizeValues) => {
|
|
82
|
+
this.resizeValues = resizeValues;
|
|
83
|
+
}
|
|
81
84
|
});
|
|
82
85
|
this.topLayer = useTopLayer({
|
|
83
86
|
disabledOverride: () => this.embedded,
|
|
@@ -478,16 +481,7 @@ class Dialog extends LitElement {
|
|
|
478
481
|
if (!dialogElement) {
|
|
479
482
|
return;
|
|
480
483
|
}
|
|
481
|
-
|
|
482
|
-
this.resizeValues = {
|
|
483
|
-
...this.resizeValues,
|
|
484
|
-
...appliedSize.inline !== void 0 && {
|
|
485
|
-
inlineSize: appliedSize.inline
|
|
486
|
-
},
|
|
487
|
-
...appliedSize.block !== void 0 && {
|
|
488
|
-
blockSize: appliedSize.block
|
|
489
|
-
}
|
|
490
|
-
};
|
|
484
|
+
this.sizeOverride.resize(size);
|
|
491
485
|
}
|
|
492
486
|
render() {
|
|
493
487
|
const { assistiveText, description, heading, opened, icon, iconFlipRtl } = this;
|
|
@@ -4,7 +4,7 @@ import { ref } from "lit/directives/ref.js";
|
|
|
4
4
|
import { css, nothing, html } from "lit";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { queryAssignedElements } from "lit/decorators.js";
|
|
7
|
-
import { f as focusElementInGroup, j as focusElement,
|
|
7
|
+
import { f as focusElementInGroup, j as focusElement, u as nextFrame } from "../../chunks/dom.js";
|
|
8
8
|
import { d as defaultMenuPlacement, r as reposition, c as connectFloatingUI, a as disconnectFloatingUI, f as filterValidFlipPlacements, h as hideFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
|
|
9
9
|
import { g as guid } from "../../chunks/guid.js";
|
|
10
10
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap, nothing, setAttribute } from "@arcgis/lumina";
|
|
6
|
-
import { t as toAriaBoolean } from "../../chunks/
|
|
6
|
+
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
7
7
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
8
8
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
9
9
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { g as getAssetPath, c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, isServer, nothing, svg, html } from "lit";
|
|
4
4
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
5
|
-
import { g as getElementDir
|
|
5
|
+
import { g as getElementDir } from "../../chunks/dom.js";
|
|
6
|
+
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
6
7
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
7
8
|
import { l as logger } from "../../chunks/logger.js";
|
|
8
9
|
const CSS = {
|
|
@@ -12,6 +12,7 @@ import type { ListDisplayMode, ListDragDetail } from "./interfaces.js";
|
|
|
12
12
|
*
|
|
13
13
|
* @cssproperty [--calcite-list-background-color] - Specifies the component's background color.
|
|
14
14
|
* @slot - A slot for adding `calcite-list-item` and `calcite-list-item-group` elements.
|
|
15
|
+
* @slot [empty-content] - A slot for adding content to display when the component has no `calcite-list-item`s.
|
|
15
16
|
* @slot [filter-actions-start] - A slot for adding actionable `calcite-action` elements before the filter component.
|
|
16
17
|
* @slot [filter-actions-end] - A slot for adding actionable `calcite-action` elements after the filter component.
|
|
17
18
|
* @slot [filter-no-results] - When `filterEnabled` is `true`, a slot for adding content to display when no results are found.
|
|
@@ -5,7 +5,7 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
5
5
|
import { debounce } from "es-toolkit";
|
|
6
6
|
import { css, html } from "lit";
|
|
7
7
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
8
|
-
import { s as slotChangeHasAssignedElement, h as getRootNode } from "../../chunks/dom.js";
|
|
8
|
+
import { n as slotChangeHasContent, s as slotChangeHasAssignedElement, h as getRootNode } from "../../chunks/dom.js";
|
|
9
9
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
10
|
import { l as listItemSelector, i as isListItem, a as listSelector, u as updateListItemChildren, b as listItemGroupSelector, e as expandedAncestors } from "../../chunks/utils4.js";
|
|
11
11
|
import { d as disconnectSortableComponent, c as connectSortableComponent } from "../../chunks/sortableComponent.js";
|
|
@@ -27,6 +27,7 @@ const CSS = {
|
|
|
27
27
|
containerHeight: "container-height"
|
|
28
28
|
};
|
|
29
29
|
const SLOTS = {
|
|
30
|
+
emptyContent: "empty-content",
|
|
30
31
|
filterNoResults: "filter-no-results",
|
|
31
32
|
filterActionsStart: "filter-actions-start",
|
|
32
33
|
filterActionsEnd: "filter-actions-end"
|
|
@@ -58,6 +59,8 @@ class List extends LitElement {
|
|
|
58
59
|
this.hasFilterActionsStart = false;
|
|
59
60
|
this.hasFilterNoResults = false;
|
|
60
61
|
this.sortHandleMenuItems = [];
|
|
62
|
+
this.hasContent = false;
|
|
63
|
+
this.hasEmptyContent = false;
|
|
61
64
|
this.disabled = false;
|
|
62
65
|
this.dragEnabled = false;
|
|
63
66
|
this.filterEnabled = false;
|
|
@@ -94,7 +97,7 @@ class List extends LitElement {
|
|
|
94
97
|
this.listen("calciteInternalListItemGroupDefaultSlotChange", this.handleCalciteInternalListItemGroupDefaultSlotChange);
|
|
95
98
|
}
|
|
96
99
|
static {
|
|
97
|
-
this.properties = { assistiveText: [16, {}, { state: true }], dataForFilter: [16, {}, { state: true }], hasFilterActionsEnd: [16, {}, { state: true }], hasFilterActionsStart: [16, {}, { state: true }], hasFilterNoResults: [16, {}, { state: true }], sortHandleMenuItems: [16, {}, { state: true }], canPull: [0, {}, { attribute: false }], canPut: [0, {}, { attribute: false }], disabled: [7, {}, { reflect: true, type: Boolean }], dragEnabled: [7, {}, { reflect: true, type: Boolean }], filterEnabled: [7, {}, { reflect: true, type: Boolean }], filterPredicate: [0, {}, { attribute: false }], filterLabel: [3, {}, { reflect: true }], filterPlaceholder: [3, {}, { reflect: true }], filterProps: [0, {}, { attribute: false }], filterText: [3, {}, { reflect: true }], filteredData: [0, {}, { attribute: false }], filteredItems: [0, {}, { attribute: false }], group: [3, {}, { reflect: true }], interactionMode: [3, {}, { reflect: true }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], numberingSystem: 1, scale: [3, {}, { reflect: true }], selectedItems: [0, {}, { attribute: false }], selectionAppearance: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], sortDisabled: [7, {}, { reflect: true, type: Boolean }] };
|
|
100
|
+
this.properties = { assistiveText: [16, {}, { state: true }], dataForFilter: [16, {}, { state: true }], hasFilterActionsEnd: [16, {}, { state: true }], hasFilterActionsStart: [16, {}, { state: true }], hasFilterNoResults: [16, {}, { state: true }], sortHandleMenuItems: [16, {}, { state: true }], hasContent: [16, {}, { state: true }], hasEmptyContent: [16, {}, { state: true }], canPull: [0, {}, { attribute: false }], canPut: [0, {}, { attribute: false }], disabled: [7, {}, { reflect: true, type: Boolean }], dragEnabled: [7, {}, { reflect: true, type: Boolean }], filterEnabled: [7, {}, { reflect: true, type: Boolean }], filterPredicate: [0, {}, { attribute: false }], filterLabel: [3, {}, { reflect: true }], filterPlaceholder: [3, {}, { reflect: true }], filterProps: [0, {}, { attribute: false }], filterText: [3, {}, { reflect: true }], filteredData: [0, {}, { attribute: false }], filteredItems: [0, {}, { attribute: false }], group: [3, {}, { reflect: true }], interactionMode: [3, {}, { reflect: true }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], numberingSystem: 1, scale: [3, {}, { reflect: true }], selectedItems: [0, {}, { attribute: false }], selectionAppearance: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], sortDisabled: [7, {}, { reflect: true, type: Boolean }] };
|
|
98
101
|
}
|
|
99
102
|
static {
|
|
100
103
|
this.styles = styles;
|
|
@@ -102,6 +105,9 @@ class List extends LitElement {
|
|
|
102
105
|
get hasActiveFilter() {
|
|
103
106
|
return this.filterEnabled && this.filterText && this.filteredItems.length !== this.visibleItems.length;
|
|
104
107
|
}
|
|
108
|
+
get showEmptyContentContainer() {
|
|
109
|
+
return !this.hasContent && this.hasEmptyContent;
|
|
110
|
+
}
|
|
105
111
|
get showNoResultsContainer() {
|
|
106
112
|
return this.filterEnabled && this.filterText && this.hasFilterNoResults && this.visibleItems.length && !this.filteredItems.length;
|
|
107
113
|
}
|
|
@@ -339,10 +345,14 @@ class List extends LitElement {
|
|
|
339
345
|
setParentList() {
|
|
340
346
|
this.parentListEl = this.el.parentElement?.closest(listSelector);
|
|
341
347
|
}
|
|
342
|
-
handleDefaultSlotChange() {
|
|
348
|
+
handleDefaultSlotChange(event) {
|
|
343
349
|
if (this.parentListEl) {
|
|
344
350
|
this.calciteInternalListDefaultSlotChange.emit();
|
|
345
351
|
}
|
|
352
|
+
this.hasContent = slotChangeHasContent(event);
|
|
353
|
+
}
|
|
354
|
+
handleEmptyContentSlotChange(event) {
|
|
355
|
+
this.hasEmptyContent = slotChangeHasContent(event);
|
|
346
356
|
}
|
|
347
357
|
setListItemGroups() {
|
|
348
358
|
this.listItemGroups = Array.from(this.el.querySelectorAll(listItemGroupSelector));
|
|
@@ -652,7 +662,7 @@ class List extends LitElement {
|
|
|
652
662
|
return this.interactiveContainer({ disabled: this.disabled, children: html`<div class=${safeClassMap({
|
|
653
663
|
[CSS.container]: true,
|
|
654
664
|
[CSS.containerHeight]: this.listItems.length < 1 && loading
|
|
655
|
-
})}>${this.dragEnabled ? html`<span aria-live=assertive class=${safeClassMap(CSS.assistiveText)}>${this.assistiveText}</span>` : null}${this.renderItemAriaLive()}${loading ? html`<calcite-scrim class=${safeClassMap(CSS.scrim)} .loading=${loading}></calcite-scrim>` : null}<div .ariaBusy=${loading} .ariaLabel=${label || ""} class=${safeClassMap(CSS.table)} @keydown=${this.handleListKeydown} role=treegrid>${filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? html`<div class=${safeClassMap(CSS.sticky)} role=rowgroup><div role=row><div role=columnheader><calcite-stack class=${safeClassMap(CSS.stack)}><slot name=${SLOTS.filterActionsStart} @slotchange=${this.handleFilterActionsStartSlotChange} slot=${SLOTS$1.actionsStart}></slot><calcite-filter .ariaLabel=${filterPlaceholder} .disabled=${disabled} .filterProps=${effectiveFilterProps} .items=${dataForFilter} .label=${filterLabel} @calciteFilterChange=${this.handleFilterChange} .placeholder=${filterPlaceholder} .scale=${this.scale} .value=${filterText} ${ref(this.setFilterEl)}></calcite-filter><slot name=${SLOTS.filterActionsEnd} @slotchange=${this.handleFilterActionsEndSlotChange} slot=${SLOTS$1.actionsEnd}></slot></calcite-stack></div></div></div>` : null}<div class=${safeClassMap(CSS.tableContainer)} role=rowgroup><slot @slotchange=${this.handleDefaultSlotChange} ${ref(this.setDefaultSlotEl)}></slot></div></div><div aria-live=polite .hidden=${!this.showNoResultsContainer}><slot name=${SLOTS.filterNoResults} @slotchange=${this.handleFilterNoResultsSlotChange}></slot></div></div>` });
|
|
665
|
+
})}>${this.dragEnabled ? html`<span aria-live=assertive class=${safeClassMap(CSS.assistiveText)}>${this.assistiveText}</span>` : null}${this.renderItemAriaLive()}${loading ? html`<calcite-scrim class=${safeClassMap(CSS.scrim)} .loading=${loading}></calcite-scrim>` : null}<div .ariaBusy=${loading} .ariaLabel=${label || ""} class=${safeClassMap(CSS.table)} @keydown=${this.handleListKeydown} role=treegrid>${filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? html`<div class=${safeClassMap(CSS.sticky)} role=rowgroup><div role=row><div role=columnheader><calcite-stack class=${safeClassMap(CSS.stack)}><slot name=${SLOTS.filterActionsStart} @slotchange=${this.handleFilterActionsStartSlotChange} slot=${SLOTS$1.actionsStart}></slot><calcite-filter .ariaLabel=${filterPlaceholder} .disabled=${disabled} .filterProps=${effectiveFilterProps} .items=${dataForFilter} .label=${filterLabel} @calciteFilterChange=${this.handleFilterChange} .placeholder=${filterPlaceholder} .scale=${this.scale} .value=${filterText} ${ref(this.setFilterEl)}></calcite-filter><slot name=${SLOTS.filterActionsEnd} @slotchange=${this.handleFilterActionsEndSlotChange} slot=${SLOTS$1.actionsEnd}></slot></calcite-stack></div></div></div>` : null}<div class=${safeClassMap(CSS.tableContainer)} role=rowgroup><div .hidden=${!this.showEmptyContentContainer}><slot name=${SLOTS.emptyContent} @slotchange=${this.handleEmptyContentSlotChange}></slot></div><slot @slotchange=${this.handleDefaultSlotChange} ${ref(this.setDefaultSlotEl)}></slot></div></div><div aria-live=polite .hidden=${!this.showNoResultsContainer}><slot name=${SLOTS.filterNoResults} @slotchange=${this.handleFilterNoResultsSlotChange}></slot></div></div>` });
|
|
656
666
|
}
|
|
657
667
|
renderItemAriaLive() {
|
|
658
668
|
const { messages, filteredItems, parentListEl, messages: { _lang: effectiveLocale }, numberingSystem } = this;
|
|
@@ -4,7 +4,7 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { css, html, nothing } from "lit";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
7
|
-
import { s as slotChangeHasAssignedElement,
|
|
7
|
+
import { s as slotChangeHasAssignedElement, v as getFirstTabbable, g as getElementDir } from "../../chunks/dom.js";
|
|
8
8
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
9
9
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
10
10
|
import { l as logger } from "../../chunks/logger.js";
|
|
@@ -6,7 +6,7 @@ import { createRef, ref } from "lit/directives/ref.js";
|
|
|
6
6
|
import { LitElement, safeClassMap, safeStyleMap } from "@arcgis/lumina";
|
|
7
7
|
import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm } from "../../chunks/form.js";
|
|
8
8
|
import { n as numberStringFormatter } from "../../chunks/locale.js";
|
|
9
|
-
import {
|
|
9
|
+
import { x as intersects } from "../../chunks/dom.js";
|
|
10
10
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
11
11
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
12
12
|
const CSS = {
|
|
@@ -5,7 +5,8 @@ import { css, html } from "lit";
|
|
|
5
5
|
import { LitElement, createEvent, safeClassMap, setAttribute } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
7
|
import { e as defaultOffsetDistance, r as reposition, a as disconnectFloatingUI, f as filterValidFlipPlacements, c as connectFloatingUI, h as hideFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
|
|
8
|
-
import { k as isPrimaryPointerButton,
|
|
8
|
+
import { k as isPrimaryPointerButton, y as isKeyboardTriggeredClick, q as queryElementRoots } from "../../chunks/dom.js";
|
|
9
|
+
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
9
10
|
import { g as guid } from "../../chunks/guid.js";
|
|
10
11
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
11
12
|
import { H as Heading } from "../../chunks/Heading.js";
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
5
|
-
import { n as slotChangeHasContent
|
|
5
|
+
import { n as slotChangeHasContent } from "../../chunks/dom.js";
|
|
6
|
+
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
6
7
|
const SLOTS = {
|
|
7
8
|
input: "input"
|
|
8
9
|
};
|
|
@@ -5,10 +5,11 @@ import { u as useSizeOverride, i as interact } from "../../chunks/useSizeOverrid
|
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { LitElement, createEvent, setAttribute, safeClassMap } from "@arcgis/lumina";
|
|
7
7
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
8
|
-
import {
|
|
8
|
+
import { z as ensureId, g as getElementDir, a as getStylePixelValue } from "../../chunks/dom.js";
|
|
9
9
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
10
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
11
11
|
import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
|
|
12
|
+
import { a as ariaValueFromSize } from "../../chunks/aria.js";
|
|
12
13
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
13
14
|
import { u as usePreventDocumentScroll } from "../../chunks/usePreventDocumentScroll.js";
|
|
14
15
|
import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
|
|
@@ -70,7 +71,10 @@ class Sheet extends LitElement {
|
|
|
70
71
|
getBounds: () => ({
|
|
71
72
|
inline: { min: this.resizeValues.minInlineSize, max: this.resizeValues.maxInlineSize },
|
|
72
73
|
block: { min: this.resizeValues.minBlockSize, max: this.resizeValues.maxBlockSize }
|
|
73
|
-
})
|
|
74
|
+
}),
|
|
75
|
+
onResize: (resizeValues) => {
|
|
76
|
+
this.resizeValues = { ...resizeValues };
|
|
77
|
+
}
|
|
74
78
|
});
|
|
75
79
|
this.topLayer = useTopLayer({
|
|
76
80
|
disabledOverride: () => this.embedded,
|
|
@@ -222,16 +226,7 @@ class Sheet extends LitElement {
|
|
|
222
226
|
if (!this.contentRef.value) {
|
|
223
227
|
return;
|
|
224
228
|
}
|
|
225
|
-
|
|
226
|
-
this.resizeValues = {
|
|
227
|
-
...this.resizeValues,
|
|
228
|
-
...appliedSize.inline !== void 0 && {
|
|
229
|
-
inlineSize: appliedSize.inline
|
|
230
|
-
},
|
|
231
|
-
...appliedSize.block !== void 0 && {
|
|
232
|
-
blockSize: appliedSize.block
|
|
233
|
-
}
|
|
234
|
-
};
|
|
229
|
+
this.sizeOverride.resize(size);
|
|
235
230
|
}
|
|
236
231
|
cleanupInteractions() {
|
|
237
232
|
this.interaction?.unset();
|
|
@@ -247,7 +242,12 @@ class Sheet extends LitElement {
|
|
|
247
242
|
return;
|
|
248
243
|
}
|
|
249
244
|
await this.el.componentOnReady();
|
|
250
|
-
const
|
|
245
|
+
const computedStyle = window.getComputedStyle(contentRef.value);
|
|
246
|
+
this.resizeValues.minInlineSize = parseInt(computedStyle.minInlineSize) || 0;
|
|
247
|
+
this.resizeValues.maxInlineSize = parseInt(computedStyle.maxInlineSize) || window.innerWidth;
|
|
248
|
+
this.resizeValues.minBlockSize = parseInt(computedStyle.minBlockSize) || 0;
|
|
249
|
+
this.resizeValues.maxBlockSize = parseInt(computedStyle.maxBlockSize) || window.innerHeight;
|
|
250
|
+
const { inlineSize, minInlineSize, blockSize, minBlockSize, maxInlineSize, maxBlockSize } = computedStyle;
|
|
251
251
|
const values = {
|
|
252
252
|
inlineSize: getStylePixelValue(inlineSize),
|
|
253
253
|
blockSize: getStylePixelValue(blockSize),
|
|
@@ -256,7 +256,6 @@ class Sheet extends LitElement {
|
|
|
256
256
|
maxInlineSize: getStylePixelValue(maxInlineSize) || window.innerWidth,
|
|
257
257
|
maxBlockSize: getStylePixelValue(maxBlockSize) || window.innerHeight
|
|
258
258
|
};
|
|
259
|
-
this.resizeValues = values;
|
|
260
259
|
const rtl = getElementDir(el) === "rtl";
|
|
261
260
|
this.interaction = interact(contentRef.value, { context: el.ownerDocument }).resizable({
|
|
262
261
|
edges: {
|
|
@@ -332,7 +331,7 @@ class Sheet extends LitElement {
|
|
|
332
331
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
333
332
|
[getDimensionClass("width", this.width, this.widthScale)]: !!(this.width || this.widthScale),
|
|
334
333
|
[getDimensionClass("height", this.height, this.heightScale)]: !!(this.height || this.heightScale)
|
|
335
|
-
})} .popover=${!this.embedded ? "manual" : null} ${ref(this.transitionRef)}><calcite-scrim class=${safeClassMap(CSS.scrim)} @click=${this.handleOutsideClose}></calcite-scrim><div class=${safeClassMap(CSS.content)} id=${IDS.sheetContent} ${ref(this.contentRef)}><div class=${safeClassMap(CSS.contentContainer)}><slot></slot></div>${resizable ? keyed("resize-handle", html`<div .ariaLabel=${this.messages.resizeEnabled} .ariaOrientation=${isBlockPosition ? "vertical" : "horizontal"} .ariaValueMax=${isBlockPosition ? resizeValues.maxBlockSize
|
|
334
|
+
})} .popover=${!this.embedded ? "manual" : null} ${ref(this.transitionRef)}><calcite-scrim class=${safeClassMap(CSS.scrim)} @click=${this.handleOutsideClose}></calcite-scrim><div class=${safeClassMap(CSS.content)} id=${IDS.sheetContent} ${ref(this.contentRef)}><div class=${safeClassMap(CSS.contentContainer)}><slot></slot></div>${resizable ? keyed("resize-handle", html`<div .ariaLabel=${this.messages.resizeEnabled} .ariaOrientation=${isBlockPosition ? "vertical" : "horizontal"} .ariaValueMax=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.maxBlockSize, resizeValues.maxInlineSize)} .ariaValueMin=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.minBlockSize, resizeValues.minInlineSize)} .ariaValueNow=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.blockSize, resizeValues.inlineSize)} class=${safeClassMap(CSS.resizeHandle)} @keydown=${this.handleKeyDown} role=separator tabindex=0 touch-action=none ${ref(this.setResizeHandleEl)}><div class=${safeClassMap(CSS.resizeHandleBar)}><calcite-icon .icon=${this.getResizeIcon()} scale=s></calcite-icon></div></div>`) : null}</div></div>`;
|
|
336
335
|
}
|
|
337
336
|
}
|
|
338
337
|
customElement("calcite-sheet", Sheet);
|
|
@@ -7,6 +7,7 @@ import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
|
7
7
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
8
8
|
import { g as getElementDir, a as getStylePixelValue, b as slotChangeGetAssignedElements, s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
|
|
9
9
|
import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
|
|
10
|
+
import { a as ariaValueFromSize } from "../../chunks/aria.js";
|
|
10
11
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
11
12
|
const styles$1 = css`.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@keyframes in{0%{opacity:0}to{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0,-5px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(.95,.95,1)}to{opacity:1;transform:scaleZ(1)}}`;
|
|
12
13
|
const CSS = {
|
|
@@ -42,7 +43,10 @@ class ShellPanel extends LitElement {
|
|
|
42
43
|
getBounds: () => ({
|
|
43
44
|
inline: { min: this.resizeValues.minInlineSize, max: this.resizeValues.maxInlineSize },
|
|
44
45
|
block: { min: this.resizeValues.minBlockSize, max: this.resizeValues.maxBlockSize }
|
|
45
|
-
})
|
|
46
|
+
}),
|
|
47
|
+
onResize: (resizeValues) => {
|
|
48
|
+
this.resizeValues = resizeValues;
|
|
49
|
+
}
|
|
46
50
|
});
|
|
47
51
|
this.resizeValues = {
|
|
48
52
|
inlineSize: null,
|
|
@@ -96,16 +100,7 @@ class ShellPanel extends LitElement {
|
|
|
96
100
|
if (!this.contentRef.value) {
|
|
97
101
|
return;
|
|
98
102
|
}
|
|
99
|
-
|
|
100
|
-
this.resizeValues = {
|
|
101
|
-
...this.resizeValues,
|
|
102
|
-
...appliedSize.inline !== void 0 && {
|
|
103
|
-
inlineSize: appliedSize.inline
|
|
104
|
-
},
|
|
105
|
-
...appliedSize.block !== void 0 && {
|
|
106
|
-
blockSize: appliedSize.block
|
|
107
|
-
}
|
|
108
|
-
};
|
|
103
|
+
this.sizeOverride.resize(size);
|
|
109
104
|
}
|
|
110
105
|
handleKeyDown(event) {
|
|
111
106
|
const { key, defaultPrevented, shiftKey } = event;
|
|
@@ -232,7 +227,8 @@ class ShellPanel extends LitElement {
|
|
|
232
227
|
render() {
|
|
233
228
|
const { collapsed, position, resizable, layout, displayMode, resizeValues } = this;
|
|
234
229
|
const dir = getElementDir(this.el);
|
|
235
|
-
const
|
|
230
|
+
const isBlockPosition = layout === "horizontal";
|
|
231
|
+
const separatorNode = !collapsed && resizable ? keyed("resize-handle", html`<div .ariaLabel=${this.messages.resize} .ariaOrientation=${isBlockPosition ? "vertical" : "horizontal"} .ariaValueMax=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.maxBlockSize, resizeValues.maxInlineSize)} .ariaValueMin=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.minBlockSize, resizeValues.minInlineSize)} .ariaValueNow=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.blockSize, resizeValues.inlineSize)} class=${safeClassMap(CSS.resizeHandle)} @keydown=${this.handleKeyDown} role=separator tabindex=0 touch-action=none ${ref(this.setResizeHandleEl)}><div class=${safeClassMap(CSS.resizeHandleBar)}><calcite-icon .icon=${this.getResizeIcon()} scale=s></calcite-icon></div></div>`) : null;
|
|
236
232
|
const getAnimationDir = () => {
|
|
237
233
|
if (layout === "horizontal") {
|
|
238
234
|
return position === "start" ? CSS_UTILITY.calciteAnimateInDown : CSS_UTILITY.calciteAnimateInUp;
|
|
@@ -5,7 +5,7 @@ import { css, html, nothing } from "lit";
|
|
|
5
5
|
import { LitElement, createEvent, stringOrBoolean, setAttribute, safeClassMap, safeStyleMap } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
7
|
import { g as guid } from "../../chunks/guid.js";
|
|
8
|
-
import { k as isPrimaryPointerButton,
|
|
8
|
+
import { k as isPrimaryPointerButton, x as intersects } from "../../chunks/dom.js";
|
|
9
9
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
10
10
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
11
11
|
import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
@@ -5,7 +5,7 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
5
5
|
import { a as calciteSize24, b as calciteSize32, d as calciteSize44 } from "../../chunks/core.js";
|
|
6
6
|
import { css, html } from "lit";
|
|
7
7
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
8
|
-
import { g as getElementDir,
|
|
8
|
+
import { g as getElementDir, A as filterDirectChildren, f as focusElementInGroup, j as focusElement } from "../../chunks/dom.js";
|
|
9
9
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
10
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
11
11
|
const ICON = {
|
|
@@ -4,7 +4,8 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { css, isServer, html } from "lit";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap, setAttribute } from "@arcgis/lumina";
|
|
7
|
-
import { o as nodeListToArray, g as getElementDir
|
|
7
|
+
import { o as nodeListToArray, g as getElementDir } from "../../chunks/dom.js";
|
|
8
|
+
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
8
9
|
import { g as guid } from "../../chunks/guid.js";
|
|
9
10
|
import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
|
|
10
11
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
|
-
import { b as slotChangeGetAssignedElements,
|
|
6
|
+
import { b as slotChangeGetAssignedElements, B as getSlotAssignedElements } from "../../chunks/dom.js";
|
|
7
7
|
const CSS = {
|
|
8
8
|
section: "section"
|
|
9
9
|
};
|
|
@@ -8,7 +8,7 @@ import { g as guid } from "../../chunks/guid.js";
|
|
|
8
8
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
9
9
|
import { F as FloatingArrow } from "../../chunks/FloatingArrow.js";
|
|
10
10
|
import { u as useTopLayer } from "../../chunks/useTopLayer.js";
|
|
11
|
-
import { q as queryElementRoots,
|
|
11
|
+
import { q as queryElementRoots, C as getShadowRootNode } from "../../chunks/dom.js";
|
|
12
12
|
const CSS = {
|
|
13
13
|
positionContainer: "position-container",
|
|
14
14
|
container: "container"
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, createEvent, setAttribute } from "@arcgis/lumina";
|
|
5
|
-
import { j as focusElement, o as nodeListToArray, b as slotChangeGetAssignedElements
|
|
5
|
+
import { j as focusElement, o as nodeListToArray, b as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
6
|
+
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
6
7
|
function isTreeItem(element) {
|
|
7
8
|
return element?.tagName === "CALCITE-TREE-ITEM";
|
|
8
9
|
}
|
|
@@ -4,7 +4,8 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { css, html, nothing } from "lit";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap, setAttribute } from "@arcgis/lumina";
|
|
7
|
-
import {
|
|
7
|
+
import { A as filterDirectChildren, b as slotChangeGetAssignedElements, s as slotChangeHasAssignedElement, g as getElementDir } from "../../chunks/dom.js";
|
|
8
|
+
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
8
9
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
9
10
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
10
11
|
const CSS = {
|