@esri/calcite-components 5.0.1 → 5.0.2-next.0

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.
Files changed (205) hide show
  1. package/dist/cdn/{HD55Q2LX.js → 22J7TWJ6.js} +1 -1
  2. package/dist/cdn/{3EQJ3YR3.js → 2EQWMNYZ.js} +1 -1
  3. package/dist/cdn/{ZCHFPAHX.js → 34TTGYUD.js} +1 -1
  4. package/dist/cdn/{7EHCJ4DQ.js → 3BMKLICY.js} +1 -1
  5. package/dist/cdn/{CYFOTPWL.js → 3CUG3XV3.js} +1 -1
  6. package/dist/cdn/{GH4B37J4.js → 3HRXT3WM.js} +1 -1
  7. package/dist/cdn/{HKMQAGJU.js → 3VB57WOK.js} +1 -1
  8. package/dist/cdn/{3EEOGSFQ.js → 3YHA26D3.js} +1 -1
  9. package/dist/cdn/{PUUR5B6B.js → 43V5QGER.js} +1 -1
  10. package/dist/cdn/{S3SK7XPY.js → 4BTHUU7C.js} +1 -1
  11. package/dist/cdn/{KDAQDKZ6.js → 4GLJ5WCJ.js} +1 -1
  12. package/dist/cdn/{HTGSVNSI.js → 4M3JOTNB.js} +1 -1
  13. package/dist/cdn/{N7V5EZIN.js → 4M6NIGZP.js} +1 -1
  14. package/dist/cdn/{VK3YFQSD.js → 4OGZPOLV.js} +1 -1
  15. package/dist/cdn/{YO65IEOV.js → 53BMCKOC.js} +1 -1
  16. package/dist/cdn/{HKWN76B2.js → 5PYQCW72.js} +1 -1
  17. package/dist/cdn/{KZBO4JXY.js → 5WEEQQTD.js} +1 -1
  18. package/dist/cdn/{K6N4V2RI.js → 62O7CZO4.js} +1 -1
  19. package/dist/cdn/{CSH33D3X.js → 64I5O6AK.js} +1 -1
  20. package/dist/cdn/{IQTDDXGM.js → 6EMIOHSM.js} +1 -1
  21. package/dist/cdn/{2EF7AFT4.js → 6ISUNJEK.js} +1 -1
  22. package/dist/cdn/{5CA3DUUO.js → 7FHDLKMC.js} +1 -1
  23. package/dist/cdn/7LAOVYGT.js +2 -0
  24. package/dist/cdn/7LAQ6HRF.js +2 -0
  25. package/dist/cdn/{DPMRI6J7.js → 7QYZGMIU.js} +1 -1
  26. package/dist/cdn/{H2VY2CHE.js → 7SBLWXZ7.js} +1 -1
  27. package/dist/cdn/{XYAFFNZD.js → 7WFFJPSQ.js} +1 -1
  28. package/dist/cdn/{WMXYUN7Q.js → A7RHLWNW.js} +1 -1
  29. package/dist/cdn/AG6ZVN6T.js +2 -0
  30. package/dist/cdn/{Q6WEAYV6.js → AWOOETF2.js} +1 -1
  31. package/dist/cdn/{2QPXBQVA.js → BBDCNNNK.js} +1 -1
  32. package/dist/cdn/{DUYEIXKJ.js → BW2S4ONV.js} +1 -1
  33. package/dist/cdn/{EWZJCQT5.js → BWPEIBI4.js} +1 -1
  34. package/dist/cdn/{DKG7N6W4.js → CJDHQ4IZ.js} +1 -1
  35. package/dist/cdn/{DSBTGL7J.js → CONO2DFF.js} +1 -1
  36. package/dist/cdn/{6RR5SJL4.js → CZ3MBIWG.js} +1 -1
  37. package/dist/cdn/{GJRSQYUG.js → D567VCPZ.js} +1 -1
  38. package/dist/cdn/{EUDMSAFC.js → D5WXEB2S.js} +1 -1
  39. package/dist/cdn/{XS2MK3FW.js → DECKA3YI.js} +1 -1
  40. package/dist/cdn/{JIIAC4QQ.js → DKUBJQVG.js} +1 -1
  41. package/dist/cdn/{VNOVLC44.js → EADJK6JR.js} +1 -1
  42. package/dist/cdn/EKIJM2EZ.js +2 -0
  43. package/dist/cdn/{4FRNO7GL.js → EM7VLZVS.js} +1 -1
  44. package/dist/cdn/{FCZN3GLW.js → F7YD2LRT.js} +1 -1
  45. package/dist/cdn/{A2JETGGY.js → FCWQMCFN.js} +1 -1
  46. package/dist/cdn/{W4EJM2RB.js → FDT7Z5R5.js} +1 -1
  47. package/dist/cdn/{3HDWBRQW.js → FG6CE6CR.js} +1 -1
  48. package/dist/cdn/{5ERZG2SH.js → FHRSYDWQ.js} +1 -1
  49. package/dist/cdn/{ZGEEIDNO.js → FJV57D2B.js} +1 -1
  50. package/dist/cdn/{TGSJVIYE.js → FQ427HQI.js} +1 -1
  51. package/dist/cdn/{PIZNEEPS.js → GFXSAMZH.js} +1 -1
  52. package/dist/cdn/{HAHBJO52.js → GVXCFDAB.js} +1 -1
  53. package/dist/cdn/{3NIQATQS.js → HI2LEL5N.js} +1 -1
  54. package/dist/cdn/{MZMZWYUR.js → I2AMBCOU.js} +1 -1
  55. package/dist/cdn/{UMNBKAWV.js → IL2YI54J.js} +1 -1
  56. package/dist/cdn/{5MPJZHZZ.js → ISUDPV4K.js} +1 -1
  57. package/dist/cdn/{Q2X74D5J.js → JFAGNIAE.js} +1 -1
  58. package/dist/cdn/{Y37TTFK5.js → JFSH2NTS.js} +1 -1
  59. package/dist/cdn/{RPZHVMLG.js → JWLFUNCZ.js} +1 -1
  60. package/dist/cdn/{QN7DZIMR.js → K6QDEM22.js} +1 -1
  61. package/dist/cdn/{T57DFDAI.js → KDF2CQ6V.js} +1 -1
  62. package/dist/cdn/{QCT4DZF5.js → KGGMRDVT.js} +1 -1
  63. package/dist/cdn/{AZAA5I5T.js → KLYN6HXI.js} +1 -1
  64. package/dist/cdn/{B45QBFXF.js → KO2L6GVM.js} +1 -1
  65. package/dist/cdn/{BOZMVUV7.js → KVSEWQDY.js} +1 -1
  66. package/dist/cdn/{ST6SXM7P.js → KYFL44RO.js} +1 -1
  67. package/dist/cdn/{32YS47NR.js → L2RMWGFU.js} +1 -1
  68. package/dist/cdn/{O2HQ52IT.js → L3I33ZKT.js} +1 -1
  69. package/dist/cdn/{3GGFWBMW.js → LQTKUIQE.js} +1 -1
  70. package/dist/cdn/M75FT752.js +2 -0
  71. package/dist/cdn/{TL7RJ3A4.js → MFZ7YVJ4.js} +1 -1
  72. package/dist/cdn/{26MSFL2X.js → MHKNTXHV.js} +1 -1
  73. package/dist/cdn/{VPRTJHM5.js → MNMPA3TA.js} +1 -1
  74. package/dist/cdn/MUZVAHXT.js +2 -0
  75. package/dist/cdn/{TFJ5DURW.js → MYU7Y5SU.js} +1 -1
  76. package/dist/cdn/{DVJQHTGR.js → MZT45KOY.js} +1 -1
  77. package/dist/cdn/{Q6KEWISV.js → NC42RPAO.js} +1 -1
  78. package/dist/cdn/{OPQZAIG6.js → NMWAJ6DS.js} +1 -1
  79. package/dist/cdn/{2AEOUSAJ.js → NQ5OFK42.js} +1 -1
  80. package/dist/cdn/{5XGV2PIV.js → NTOIWV7Z.js} +1 -1
  81. package/dist/cdn/O5LRM6VL.js +2 -0
  82. package/dist/cdn/O5YYCT73.js +2 -0
  83. package/dist/cdn/{SZYERRHI.js → O74JMJ6L.js} +1 -1
  84. package/dist/cdn/{ID67YTWR.js → OEG6STZ2.js} +1 -1
  85. package/dist/cdn/{YU3EFXB3.js → OHKX62MN.js} +1 -1
  86. package/dist/cdn/{D4UOIDSP.js → OU5WKYLN.js} +1 -1
  87. package/dist/cdn/{W4VYBNGZ.js → POWGDKJW.js} +1 -1
  88. package/dist/cdn/{N7UE22BN.js → PPBLJIOG.js} +1 -1
  89. package/dist/cdn/{ZLN4IPKQ.js → PQGIY5I5.js} +1 -1
  90. package/dist/cdn/{5XMHGCPI.js → PWUQGBZK.js} +1 -1
  91. package/dist/cdn/{XVGFAGMB.js → QDPXO65U.js} +1 -1
  92. package/dist/cdn/{MQ2L2IAS.js → QFG35B5J.js} +1 -1
  93. package/dist/cdn/{ABBTIBZJ.js → QHNL5BOD.js} +1 -1
  94. package/dist/cdn/{CF6EYAB4.js → QKRWPXVQ.js} +1 -1
  95. package/dist/cdn/{M6OXKYRM.js → QSFI2FXU.js} +1 -1
  96. package/dist/cdn/QYZBB7II.js +2 -0
  97. package/dist/cdn/{L46WCSDE.js → R2VDAB4X.js} +1 -1
  98. package/dist/cdn/{KMM3FPAM.js → R55VTZHB.js} +1 -1
  99. package/dist/cdn/{HEB23MX6.js → RC47XLQM.js} +1 -1
  100. package/dist/cdn/{XHUG4XQC.js → RHI6745L.js} +1 -1
  101. package/dist/cdn/{KP245ZBF.js → RLTMWAVN.js} +1 -1
  102. package/dist/cdn/{ENVECIYB.js → S46R6H4E.js} +1 -1
  103. package/dist/cdn/{YY5U7QTO.js → S7ZT6HPL.js} +1 -1
  104. package/dist/cdn/{P3SGNE45.js → SAYMR4DZ.js} +1 -1
  105. package/dist/cdn/SEHRKGL6.js +2 -0
  106. package/dist/cdn/SG4GNVS7.js +2 -0
  107. package/dist/cdn/{2XHVZIMO.js → SXHSOWDK.js} +1 -1
  108. package/dist/cdn/{UTWTDAGQ.js → SYIZ6NTR.js} +1 -1
  109. package/dist/cdn/{ROXDHZQW.js → T55B5L5H.js} +1 -1
  110. package/dist/cdn/{PUSHNSUZ.js → TD25GLDA.js} +1 -1
  111. package/dist/cdn/{EBDZRU62.js → TI2VSRCH.js} +1 -1
  112. package/dist/cdn/TN4H44TC.js +2 -0
  113. package/dist/cdn/{DECCDYDC.js → TROM3FSV.js} +1 -1
  114. package/dist/cdn/{T6TBUMAM.js → TV35KLNO.js} +1 -1
  115. package/dist/cdn/{LZQKHZV2.js → TVKPTG2W.js} +1 -1
  116. package/dist/cdn/{WDIVGB65.js → USQTN6ZI.js} +1 -1
  117. package/dist/cdn/{TCQDIQIA.js → UWQ73LCA.js} +1 -1
  118. package/dist/cdn/V45HDOM6.js +2 -0
  119. package/dist/cdn/{YMIEKCRY.js → V5FD56LT.js} +1 -1
  120. package/dist/cdn/{NUTRUQQ5.js → VCY2OVXC.js} +1 -1
  121. package/dist/cdn/VOOV2W7M.js +2 -0
  122. package/dist/cdn/{4FZOLUC2.js → VOYRRY34.js} +1 -1
  123. package/dist/cdn/{4V442MSP.js → VQYBMIQT.js} +1 -1
  124. package/dist/cdn/{KCOCRZGF.js → VTBG23IN.js} +1 -1
  125. package/dist/cdn/{5FVCMC2V.js → WER3ECMN.js} +1 -1
  126. package/dist/cdn/{7POQUZDD.js → WIMHYFHJ.js} +1 -1
  127. package/dist/cdn/{CW4DVEDS.js → WPTPT2EG.js} +1 -1
  128. package/dist/cdn/{2WWL7YMY.js → WPZOPXNX.js} +1 -1
  129. package/dist/cdn/{FM54HJJB.js → WTIK57JB.js} +1 -1
  130. package/dist/cdn/{6EGMZE4O.js → WXECFC3A.js} +1 -1
  131. package/dist/cdn/{4JCOHFVB.js → X4A63V7P.js} +1 -1
  132. package/dist/cdn/XBY7CMDG.js +2 -0
  133. package/dist/cdn/{BFHYUPWE.js → XKPSXZ6Y.js} +1 -1
  134. package/dist/cdn/{IZC3PFLC.js → XP3SILHF.js} +1 -1
  135. package/dist/cdn/XWRCOS2O.js +2 -0
  136. package/dist/cdn/Y4WFCT4T.js +2 -0
  137. package/dist/cdn/{URTLKUNG.js → YGO2OW7J.js} +1 -1
  138. package/dist/cdn/{RNPZK6VL.js → YKB3BCT5.js} +1 -1
  139. package/dist/cdn/{J5T2CPQH.js → Z5M3OASB.js} +1 -1
  140. package/dist/cdn/{QJD5HBPG.js → ZBAS3OCN.js} +1 -1
  141. package/dist/cdn/{2ER54UNG.js → ZEBC3ZS4.js} +1 -1
  142. package/dist/cdn/{KXED5GEH.js → ZQVNYJBE.js} +1 -1
  143. package/dist/cdn/{HQW5SGD4.js → ZWZY243U.js} +1 -1
  144. package/dist/cdn/assets/icon/addToLivestreamVideoLayer16.json +1 -0
  145. package/dist/cdn/assets/icon/addToLivestreamVideoLayer24.json +1 -0
  146. package/dist/cdn/assets/icon/addToLivestreamVideoLayer32.json +1 -0
  147. package/dist/cdn/assets/icon/addToVideoLayer16.json +1 -0
  148. package/dist/cdn/assets/icon/addToVideoLayer24.json +1 -0
  149. package/dist/cdn/assets/icon/addToVideoLayer32.json +1 -0
  150. package/dist/cdn/assets/icon/conditionalRulesDown16.json +1 -0
  151. package/dist/cdn/assets/icon/conditionalRulesDown24.json +1 -0
  152. package/dist/cdn/assets/icon/conditionalRulesDown32.json +1 -0
  153. package/dist/cdn/assets/icon/featureDetailsSet16.json +1 -0
  154. package/dist/cdn/assets/icon/featureDetailsSet24.json +1 -0
  155. package/dist/cdn/assets/icon/featureDetailsSet32.json +1 -0
  156. package/dist/cdn/index.js +1 -1
  157. package/dist/chunks/aria.js +12 -0
  158. package/dist/chunks/dom.js +9 -13
  159. package/dist/chunks/floating-ui.js +5 -5
  160. package/dist/chunks/runtime.js +3 -3
  161. package/dist/chunks/useFocusTrap.js +1 -1
  162. package/dist/chunks/useSizeOverride.js +58 -24
  163. package/dist/components/calcite-action-menu/customElement.js +1 -1
  164. package/dist/components/calcite-date-picker-day/customElement.js +2 -1
  165. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  166. package/dist/components/calcite-dialog/customElement.js +5 -11
  167. package/dist/components/calcite-dropdown/customElement.js +1 -1
  168. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  169. package/dist/components/calcite-icon/customElement.js +2 -1
  170. package/dist/components/calcite-list/customElement.d.ts +1 -0
  171. package/dist/components/calcite-list/customElement.js +14 -4
  172. package/dist/components/calcite-list-item/customElement.js +1 -1
  173. package/dist/components/calcite-meter/customElement.js +1 -1
  174. package/dist/components/calcite-popover/customElement.js +2 -1
  175. package/dist/components/calcite-segmented-control-item/customElement.js +2 -1
  176. package/dist/components/calcite-sheet/customElement.js +14 -15
  177. package/dist/components/calcite-shell-panel/customElement.js +8 -12
  178. package/dist/components/calcite-slider/customElement.js +1 -1
  179. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  180. package/dist/components/calcite-tab-title/customElement.js +2 -1
  181. package/dist/components/calcite-tabs/customElement.js +1 -1
  182. package/dist/components/calcite-tooltip/customElement.js +1 -1
  183. package/dist/components/calcite-tree/customElement.js +2 -1
  184. package/dist/components/calcite-tree-item/customElement.js +2 -1
  185. package/dist/docs/api.json +1 -1
  186. package/dist/docs/docs.json +1 -1
  187. package/dist/docs/vscode.html-custom-data.json +1 -1
  188. package/dist/docs/web-types.json +1 -1
  189. package/package.json +6 -6
  190. package/dist/cdn/47TROKR5.js +0 -2
  191. package/dist/cdn/5IS2XCYK.js +0 -2
  192. package/dist/cdn/AG63SK35.js +0 -2
  193. package/dist/cdn/BSAERI3P.js +0 -2
  194. package/dist/cdn/CBWWW54X.js +0 -2
  195. package/dist/cdn/DCOWZP7H.js +0 -2
  196. package/dist/cdn/DQBDX3JP.js +0 -2
  197. package/dist/cdn/DV6PZIWJ.js +0 -2
  198. package/dist/cdn/DVVCFHUP.js +0 -2
  199. package/dist/cdn/HDXNLI6L.js +0 -2
  200. package/dist/cdn/J7UBPJM3.js +0 -2
  201. package/dist/cdn/LUUHTNOP.js +0 -2
  202. package/dist/cdn/MLTNSABV.js +0 -2
  203. package/dist/cdn/OJXQN5G4.js +0 -2
  204. package/dist/cdn/Q3ZUCK2B.js +0 -2
  205. package/dist/cdn/SQM2AMEE.js +0 -2
@@ -2335,27 +2335,45 @@ function requireInteract_min() {
2335
2335
  }
2336
2336
  var interact_minExports = /* @__PURE__ */ requireInteract_min();
2337
2337
  const interact = /* @__PURE__ */ getDefaultExportFromCjs(interact_minExports);
2338
+ function clampAndApplySize(axis, size, bounds, el) {
2339
+ const cssPropertyName = `${axis}-size`;
2340
+ if (size === void 0) {
2341
+ return void 0;
2342
+ }
2343
+ if (size === null) {
2344
+ el.style.removeProperty(cssPropertyName);
2345
+ return null;
2346
+ }
2347
+ let clampedSize = size;
2348
+ if (bounds.min !== null) {
2349
+ clampedSize = Math.round(Math.max(clampedSize, bounds.min));
2350
+ }
2351
+ if (bounds.max !== null) {
2352
+ clampedSize = Math.round(Math.min(clampedSize, bounds.max));
2353
+ }
2354
+ el.style.setProperty(cssPropertyName, `${Math.round(clampedSize)}px`);
2355
+ return clampedSize;
2356
+ }
2357
+ function applyAxes(sizes, el, getBounds) {
2358
+ const bounds = getBounds?.() ?? {
2359
+ inline: { min: null, max: null },
2360
+ block: { min: null, max: null }
2361
+ };
2362
+ const clampedInlineSize = clampAndApplySize("inline", sizes.inline, bounds.inline, el);
2363
+ const clampedBlockSize = clampAndApplySize("block", sizes.block, bounds.block, el);
2364
+ return {
2365
+ inline: clampedInlineSize,
2366
+ block: clampedBlockSize
2367
+ };
2368
+ }
2338
2369
  const useSizeOverride = (context) => makeController(() => {
2339
- const applyAxis = (requestedSize, axis, el) => {
2340
- if (requestedSize === void 0) {
2341
- return void 0;
2342
- }
2343
- const prop = axis === "block" ? "block-size" : "inline-size";
2344
- if (requestedSize === null) {
2345
- el.style.removeProperty(prop);
2346
- return null;
2347
- }
2348
- let clampedSize = requestedSize;
2349
- const bounds = context.getBounds?.() ?? { inline: { min: null, max: null }, block: { min: null, max: null } };
2350
- const { min, max } = axis === "inline" ? bounds.inline : bounds.block;
2351
- if (min !== null) {
2352
- clampedSize = Math.round(Math.max(clampedSize, min));
2353
- }
2354
- if (max !== null) {
2355
- clampedSize = Math.round(Math.min(clampedSize, max));
2356
- }
2357
- el.style.setProperty(prop, `${Math.round(clampedSize)}px`);
2358
- return clampedSize;
2370
+ let lastResizeValues = {
2371
+ inlineSize: null,
2372
+ blockSize: null,
2373
+ minInlineSize: null,
2374
+ minBlockSize: null,
2375
+ maxInlineSize: null,
2376
+ maxBlockSize: null
2359
2377
  };
2360
2378
  return {
2361
2379
  resize(sizes) {
@@ -2371,11 +2389,27 @@ const useSizeOverride = (context) => makeController(() => {
2371
2389
  if (!targetElement) {
2372
2390
  return { inline: void 0, block: void 0 };
2373
2391
  }
2374
- const inline = applyAxis(sizes.inline, "inline", targetElement);
2375
- const block = applyAxis(sizes.block, "block", targetElement);
2392
+ const { inline: inlineSize, block: blockSize } = applyAxes(sizes, targetElement, context.getBounds);
2393
+ const bounds = context.getBounds?.() ?? {
2394
+ inline: { min: null, max: null },
2395
+ block: { min: null, max: null }
2396
+ };
2397
+ lastResizeValues = {
2398
+ inlineSize,
2399
+ blockSize,
2400
+ minInlineSize: bounds.inline.min,
2401
+ maxInlineSize: bounds.inline.max,
2402
+ minBlockSize: bounds.block.min,
2403
+ maxBlockSize: bounds.block.max
2404
+ };
2405
+ context.onResize?.(lastResizeValues);
2376
2406
  return {
2377
- inline,
2378
- block
2407
+ inline: inlineSize,
2408
+ block: blockSize,
2409
+ minInlineSize: bounds.inline.min,
2410
+ maxInlineSize: bounds.inline.max,
2411
+ minBlockSize: bounds.block.min,
2412
+ maxBlockSize: bounds.block.max
2379
2413
  };
2380
2414
  }
2381
2415
  };
@@ -4,7 +4,7 @@ import { ref } from "lit/directives/ref.js";
4
4
  import { css, html, nothing } from "lit";
5
5
  import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
6
6
  import { g as getRoundRobinIndex } from "../../chunks/array.js";
7
- import { t as toAriaBoolean } from "../../chunks/dom.js";
7
+ import { t as toAriaBoolean } from "../../chunks/aria.js";
8
8
  import { g as guid } from "../../chunks/guid.js";
9
9
  import { i as isActivationKey } from "../../chunks/key.js";
10
10
  import { i as isAction } from "../../chunks/resources.js";
@@ -3,7 +3,8 @@ import { c as customElement } from "../../chunks/runtime.js";
3
3
  import { css, html } from "lit";
4
4
  import { LitElement, createEvent, setAttribute, safeClassMap } from "@arcgis/lumina";
5
5
  import { a as dateToISO } from "../../chunks/date.js";
6
- import { c as closestElementCrossShadowBoundary, t as toAriaBoolean } from "../../chunks/dom.js";
6
+ import { c as closestElementCrossShadowBoundary } from "../../chunks/dom.js";
7
+ import { t as toAriaBoolean } from "../../chunks/aria.js";
7
8
  import { i as isActivationKey } from "../../chunks/key.js";
8
9
  import { n as numberStringFormatter } from "../../chunks/locale.js";
9
10
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
@@ -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 === "l" ? "l" : "m"} .text=${isDirectionRight ? this.messages.nextMonth : this.messages.prevMonth} ${ref(isDirectionRight ? this.nextMonthActionRef : this.prevMonthActionRef)}></calcite-action>`;
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
- const appliedSize = this.sizeOverride.resize(size);
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, v as nextFrame } from "../../chunks/dom.js";
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/dom.js";
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, t as toAriaBoolean } from "../../chunks/dom.js";
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, x as getFirstTabbable, g as getElementDir } from "../../chunks/dom.js";
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 { y as intersects } from "../../chunks/dom.js";
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, z as isKeyboardTriggeredClick, t as toAriaBoolean, q as queryElementRoots } from "../../chunks/dom.js";
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, t as toAriaBoolean } from "../../chunks/dom.js";
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 { A as ensureId, g as getElementDir, a as getStylePixelValue } from "../../chunks/dom.js";
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
- const appliedSize = this.sizeOverride.resize(size);
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 { inlineSize, minInlineSize, blockSize, minBlockSize, maxInlineSize, maxBlockSize } = window.getComputedStyle(contentRef.value);
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 : resizeValues.maxInlineSize} .ariaValueMin=${isBlockPosition ? resizeValues.minBlockSize : resizeValues.minInlineSize} .ariaValueNow=${isBlockPosition ? 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>`;
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
- const appliedSize = this.sizeOverride.resize(size);
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 separatorNode = !collapsed && resizable ? keyed("resize-handle", html`<div .ariaLabel=${this.messages.resize} .ariaOrientation=${layout === "horizontal" ? "vertical" : "horizontal"} .ariaValueMax=${layout == "horizontal" ? resizeValues.maxBlockSize : resizeValues.maxInlineSize} .ariaValueMin=${layout == "horizontal" ? resizeValues.minBlockSize : resizeValues.minInlineSize} .ariaValueNow=${layout == "horizontal" ? 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;
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, y as intersects } from "../../chunks/dom.js";
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, B as filterDirectChildren, f as focusElementInGroup, j as focusElement } from "../../chunks/dom.js";
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, t as toAriaBoolean } from "../../chunks/dom.js";
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, C as getSlotAssignedElements } from "../../chunks/dom.js";
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, D as getShadowRootNode } from "../../chunks/dom.js";
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, t as toAriaBoolean } from "../../chunks/dom.js";
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 { B as filterDirectChildren, b as slotChangeGetAssignedElements, s as slotChangeHasAssignedElement, g as getElementDir, t as toAriaBoolean } from "../../chunks/dom.js";
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 = {