@esri/calcite-components 5.1.0-next.3 → 5.1.0-next.5

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 (269) hide show
  1. package/dist/cdn/{WUW46I4S.js → 22IPJDDL.js} +1 -1
  2. package/dist/cdn/25CWB6HX.js +2 -0
  3. package/dist/cdn/25YVFVC7.js +2 -0
  4. package/dist/cdn/{HJ45IHRA.js → 2GS6R2BX.js} +1 -1
  5. package/dist/cdn/2QARK4VJ.js +2 -0
  6. package/dist/cdn/{NPTVRXRO.js → 2Z4Z3NMS.js} +1 -1
  7. package/dist/cdn/{2SXQFDOQ.js → 3KLZFJXW.js} +1 -1
  8. package/dist/cdn/3L2WKJUB.js +2 -0
  9. package/dist/cdn/{DKD23HP3.js → 3LOKHBAB.js} +1 -1
  10. package/dist/cdn/3NNVHOGK.js +2 -0
  11. package/dist/cdn/{32TBZZTY.js → 3WLFK4RW.js} +1 -1
  12. package/dist/cdn/{A26SXPLB.js → 42NQN6DY.js} +1 -1
  13. package/dist/cdn/462JN5WF.js +2 -0
  14. package/dist/cdn/{XSMU7S2O.js → 464S36UH.js} +1 -1
  15. package/dist/cdn/{QHUMJCWK.js → 4ALKCXNH.js} +1 -1
  16. package/dist/cdn/4GQPJFUJ.js +2 -0
  17. package/dist/cdn/{FH7GL6DM.js → 4GVH7HTQ.js} +1 -1
  18. package/dist/cdn/{C7TED56N.js → 4J6YW6EK.js} +1 -1
  19. package/dist/cdn/{DADGP3DW.js → 52ZOO5HQ.js} +1 -1
  20. package/dist/cdn/5HTRQR7F.js +2 -0
  21. package/dist/cdn/{LDLJRK76.js → 5J2UYJYX.js} +1 -1
  22. package/dist/cdn/{LJIHBKNI.js → 5L7CGWWD.js} +1 -1
  23. package/dist/cdn/{XRVUSKBQ.js → 5SU52VYR.js} +1 -1
  24. package/dist/cdn/5TCLHXAD.js +2 -0
  25. package/dist/cdn/{UMLQ6PVE.js → 6NEHFZMJ.js} +1 -1
  26. package/dist/cdn/{I5LZP3DC.js → 6VRXKEA7.js} +1 -1
  27. package/dist/cdn/{2HPKL5UL.js → 6XJYCX76.js} +1 -1
  28. package/dist/cdn/{RBGGE65K.js → 752PQ7IA.js} +1 -1
  29. package/dist/cdn/{I6XABN6A.js → 7RSGSW76.js} +1 -1
  30. package/dist/cdn/7UOYXJ3K.js +2 -0
  31. package/dist/cdn/{IQ23RSWK.js → A2UZRUUF.js} +1 -1
  32. package/dist/cdn/{EQ4Z4LBA.js → A7IQIXR3.js} +1 -1
  33. package/dist/cdn/{X6LSQXQT.js → AEUCGVU4.js} +1 -1
  34. package/dist/cdn/{VZDUTHQS.js → AJKEEG2Z.js} +1 -1
  35. package/dist/cdn/{QQYOGIVS.js → ALC6PGDZ.js} +1 -1
  36. package/dist/cdn/{WTL6TTVY.js → B55VO4LW.js} +1 -1
  37. package/dist/cdn/{QJ2FRJRU.js → BIEIKUB2.js} +1 -1
  38. package/dist/cdn/{D3ZA3ZSE.js → BPSXK66S.js} +1 -1
  39. package/dist/cdn/BS22M3WT.js +2 -0
  40. package/dist/cdn/{46F46R3T.js → BWDCDFXW.js} +1 -1
  41. package/dist/cdn/C25VFIND.js +2 -0
  42. package/dist/cdn/{3ZYN3227.js → CWQZDXHH.js} +1 -1
  43. package/dist/cdn/CXVISA7Y.js +2 -0
  44. package/dist/cdn/{N234JPQQ.js → D7UER3G6.js} +1 -1
  45. package/dist/cdn/{4ILCK5CI.js → DR7JKZAI.js} +1 -1
  46. package/dist/cdn/{UG6FM2IU.js → DY6SXW3X.js} +1 -1
  47. package/dist/cdn/{RHJW4CXA.js → ED7SQQHM.js} +1 -1
  48. package/dist/cdn/EFNE45MK.js +2 -0
  49. package/dist/cdn/{4DX77VVY.js → EGK4PSW5.js} +1 -1
  50. package/dist/cdn/{4ZGFXXYL.js → EJCQCHH7.js} +1 -1
  51. package/dist/cdn/{XLOC3L55.js → ENCYKNKN.js} +1 -1
  52. package/dist/cdn/EY4MG3NU.js +2 -0
  53. package/dist/cdn/{UQBN3Z6H.js → EZW5GK73.js} +1 -1
  54. package/dist/cdn/{N5SFF63Q.js → FWEFFYYZ.js} +1 -1
  55. package/dist/cdn/{MTIRRGHA.js → G4QI7VSJ.js} +1 -1
  56. package/dist/cdn/{TDDLSMO5.js → GEQ3EBJO.js} +1 -1
  57. package/dist/cdn/GLJVCFQW.js +2 -0
  58. package/dist/cdn/GNDNKP2Q.js +2 -0
  59. package/dist/cdn/H77SNVVI.js +2 -0
  60. package/dist/cdn/{5XFHSV4Z.js → HAUWZRL4.js} +1 -1
  61. package/dist/cdn/{UODBUSON.js → HBUNMGZ3.js} +1 -1
  62. package/dist/cdn/{GY6M2LPM.js → HFGDCX3I.js} +1 -1
  63. package/dist/cdn/{ZJ34LWXC.js → HGRVTRR3.js} +1 -1
  64. package/dist/cdn/{ECURCDZ2.js → HHOMMC4H.js} +1 -1
  65. package/dist/cdn/{Z2R5VRT7.js → HUNZU2OF.js} +1 -1
  66. package/dist/cdn/{YKP66AQ5.js → IFLPCKYL.js} +1 -1
  67. package/dist/cdn/{SK7CWKMU.js → IJP6ZKHZ.js} +1 -1
  68. package/dist/cdn/{RRN6YM7F.js → IU4TJIME.js} +1 -1
  69. package/dist/cdn/J42TNDHM.js +2 -0
  70. package/dist/cdn/J4J65DN5.js +2 -0
  71. package/dist/cdn/{732QLUKT.js → K4R3HUW3.js} +1 -1
  72. package/dist/cdn/KBHLSIAR.js +2 -0
  73. package/dist/cdn/{REAIBS67.js → KKMGV3S6.js} +1 -1
  74. package/dist/cdn/{SDDDIVHA.js → KUC6KV4R.js} +1 -1
  75. package/dist/cdn/{LCPYWUGK.js → KVPLQQ75.js} +1 -1
  76. package/dist/cdn/{GJ5VSZCN.js → KVRUYI63.js} +1 -1
  77. package/dist/cdn/MLQDQZZR.js +2 -0
  78. package/dist/cdn/{YQST67WD.js → MM6LZCYO.js} +1 -1
  79. package/dist/cdn/{ILHS3TD7.js → MQMNX7AM.js} +1 -1
  80. package/dist/cdn/N47CSPB7.js +2 -0
  81. package/dist/cdn/{RTSHUMUI.js → NAFJ5ZYO.js} +1 -1
  82. package/dist/cdn/{HFPBP7XA.js → NIBBUVHR.js} +1 -1
  83. package/dist/cdn/NMIBGEIB.js +2 -0
  84. package/dist/cdn/{ULGKAMEK.js → NNSUCRNU.js} +1 -1
  85. package/dist/cdn/{QOXTJ7PA.js → NT6RQTF7.js} +1 -1
  86. package/dist/cdn/O6ZRTXVO.js +2 -0
  87. package/dist/cdn/{XGISY6QA.js → O75ZRZLS.js} +1 -1
  88. package/dist/cdn/{YUZXLNNW.js → OCFKSX5L.js} +1 -1
  89. package/dist/cdn/{FUL4JV2P.js → ODOOWGRW.js} +1 -1
  90. package/dist/cdn/{IZBELXZC.js → OGOI7JTF.js} +1 -1
  91. package/dist/cdn/{MTQHRNJW.js → OO556Q5A.js} +1 -1
  92. package/dist/cdn/PGUOVY7V.js +2 -0
  93. package/dist/cdn/{EPKWV7TT.js → PJ3GHZ7T.js} +1 -1
  94. package/dist/cdn/PNXNTD3R.js +2 -0
  95. package/dist/cdn/{IF5AIFNS.js → PYD5GHXA.js} +1 -1
  96. package/dist/cdn/{ETXIJA2R.js → Q4EG6G7W.js} +1 -1
  97. package/dist/cdn/{SQLDNSI6.js → Q52IY7SS.js} +1 -1
  98. package/dist/cdn/{U63GYZ74.js → QEPJF6TC.js} +2 -2
  99. package/dist/cdn/{3TLJ5JOP.js → QHZAKDI7.js} +1 -1
  100. package/dist/cdn/{7J3JDTWK.js → QIUVPLV2.js} +1 -1
  101. package/dist/cdn/{RMERVJA5.js → QVTLP2LK.js} +1 -1
  102. package/dist/cdn/R3DLH5BB.js +2 -0
  103. package/dist/cdn/R5DGN3O6.js +2 -0
  104. package/dist/cdn/{MSGQMPT6.js → RGKOGN5W.js} +1 -1
  105. package/dist/cdn/{TG6MK4QD.js → RRNEZXM4.js} +1 -1
  106. package/dist/cdn/{7PFEVHWG.js → RU3YCR42.js} +1 -1
  107. package/dist/cdn/{7CVLFVE5.js → SF7SFEKA.js} +1 -1
  108. package/dist/cdn/SKOYS4HM.js +2 -0
  109. package/dist/cdn/{6KLHDA5V.js → SP22KLIK.js} +1 -1
  110. package/dist/cdn/{YX5LYAIV.js → SVHI2LRC.js} +1 -1
  111. package/dist/cdn/{LKHFQ3U6.js → T2MUZ4UN.js} +1 -1
  112. package/dist/cdn/{N6YVNJ3O.js → TAS3P2HU.js} +1 -1
  113. package/dist/cdn/{MHSIIKU2.js → TBA5ATIB.js} +1 -1
  114. package/dist/cdn/{EYR3DX5M.js → TW2SRS2O.js} +1 -1
  115. package/dist/cdn/{PNBC2B77.js → TZFOTRCX.js} +1 -1
  116. package/dist/cdn/{QGBPRJIT.js → UUHRTJGO.js} +1 -1
  117. package/dist/cdn/{KHE57SV3.js → UVJ3XYK5.js} +1 -1
  118. package/dist/cdn/{R265ZYQR.js → UYYGQ6AY.js} +1 -1
  119. package/dist/cdn/V2PPBU7J.js +2 -0
  120. package/dist/cdn/{2EN543JD.js → VB7GHJWK.js} +1 -1
  121. package/dist/cdn/VIMF6KPF.js +2 -0
  122. package/dist/cdn/{YT6UJRLT.js → VYSJFEY6.js} +1 -1
  123. package/dist/cdn/WI7KEIGV.js +2 -0
  124. package/dist/cdn/WOJJ53FN.js +2 -0
  125. package/dist/cdn/WSRLM2TQ.js +2 -0
  126. package/dist/cdn/{4NDBPQOW.js → X53XDNBL.js} +1 -1
  127. package/dist/cdn/{QUJE6MIQ.js → XPXJW5E3.js} +1 -1
  128. package/dist/cdn/XXVIE4SD.js +2 -0
  129. package/dist/cdn/{B4VMCAZI.js → Y5FMVLYP.js} +1 -1
  130. package/dist/cdn/{NB3LG2PS.js → YBZVV5BN.js} +1 -1
  131. package/dist/cdn/{GIV3RH7X.js → YQOYGBGD.js} +1 -1
  132. package/dist/cdn/{4I67VFAN.js → Z3B276DZ.js} +1 -1
  133. package/dist/cdn/Z6LSD6MR.js +2 -0
  134. package/dist/cdn/ZDZGWD2Y.js +2 -0
  135. package/dist/cdn/{JC2AVKOO.js → ZIKLLQSU.js} +1 -1
  136. package/dist/cdn/{KBSNJSUL.js → ZKCFISUX.js} +1 -1
  137. package/dist/cdn/{6C5JMRKM.js → ZKPCUAN2.js} +1 -1
  138. package/dist/cdn/{FXFRKJEJ.js → ZPJ4FGXO.js} +1 -1
  139. package/dist/cdn/{4PZDI5YW.js → ZVFZSDLX.js} +1 -1
  140. package/dist/cdn/ZZ746O36.js +2 -0
  141. package/dist/cdn/index.js +1 -1
  142. package/dist/chunks/ExpandToggle.js +2 -3
  143. package/dist/chunks/dom.js +22 -29
  144. package/dist/chunks/floating-ui.js +2 -2
  145. package/dist/chunks/input.js +17 -7
  146. package/dist/chunks/label.js +1 -1
  147. package/dist/chunks/openCloseComponent.js +1 -1
  148. package/dist/chunks/runtime.js +4 -4
  149. package/dist/chunks/useFocusTrap.js +1 -1
  150. package/dist/chunks/useSetFocus.js +1 -1
  151. package/dist/chunks/utils2.js +1 -1
  152. package/dist/components/calcite-accordion-item/customElement.js +4 -3
  153. package/dist/components/calcite-action-bar/customElement.d.ts +8 -1
  154. package/dist/components/calcite-action-bar/customElement.js +4 -2
  155. package/dist/components/calcite-action-pad/customElement.js +4 -2
  156. package/dist/components/calcite-alert/customElement.js +1 -1
  157. package/dist/components/calcite-autocomplete/customElement.js +3 -1
  158. package/dist/components/calcite-avatar/customElement.js +1 -1
  159. package/dist/components/calcite-block/customElement.js +1 -1
  160. package/dist/components/calcite-block-group/customElement.js +1 -1
  161. package/dist/components/calcite-button/customElement.js +1 -1
  162. package/dist/components/calcite-carousel/customElement.js +27 -25
  163. package/dist/components/calcite-checkbox/customElement.js +3 -2
  164. package/dist/components/calcite-chip/customElement.js +1 -1
  165. package/dist/components/calcite-chip-group/customElement.js +1 -1
  166. package/dist/components/calcite-color-picker/customElement.js +4 -2
  167. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  168. package/dist/components/calcite-combobox/customElement.d.ts +11 -1
  169. package/dist/components/calcite-combobox/customElement.js +8 -3
  170. package/dist/components/calcite-combobox-item/customElement.js +10 -4
  171. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  172. package/dist/components/calcite-dialog/customElement.d.ts +2 -0
  173. package/dist/components/calcite-dialog/customElement.js +2 -2
  174. package/dist/components/calcite-dropdown/customElement.js +4 -1
  175. package/dist/components/calcite-flow-item/customElement.d.ts +3 -1
  176. package/dist/components/calcite-flow-item/customElement.js +4 -4
  177. package/dist/components/calcite-icon/customElement.js +4 -3
  178. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  179. package/dist/components/calcite-input/customElement.js +4 -3
  180. package/dist/components/calcite-input-date-picker/customElement.js +3 -0
  181. package/dist/components/calcite-input-message/customElement.js +1 -1
  182. package/dist/components/calcite-input-number/customElement.js +4 -3
  183. package/dist/components/calcite-input-text/customElement.d.ts +1 -1
  184. package/dist/components/calcite-input-text/customElement.js +174 -27
  185. package/dist/components/calcite-input-time-picker/customElement.js +3 -2
  186. package/dist/components/calcite-link/customElement.js +4 -3
  187. package/dist/components/calcite-list/customElement.js +1 -1
  188. package/dist/components/calcite-list-item/customElement.js +5 -3
  189. package/dist/components/calcite-menu/customElement.js +1 -1
  190. package/dist/components/calcite-menu-item/customElement.js +4 -2
  191. package/dist/components/calcite-meter/customElement.js +1 -1
  192. package/dist/components/calcite-notice/customElement.js +1 -1
  193. package/dist/components/calcite-panel/customElement.d.ts +4 -2
  194. package/dist/components/calcite-panel/customElement.js +2 -2
  195. package/dist/components/calcite-popover/customElement.js +4 -1
  196. package/dist/components/calcite-progress/customElement.js +3 -2
  197. package/dist/components/calcite-radio-button/customElement.js +3 -3
  198. package/dist/components/calcite-scrim/customElement.js +1 -1
  199. package/dist/components/calcite-segmented-control/customElement.js +5 -3
  200. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  201. package/dist/components/calcite-sheet/customElement.js +8 -5
  202. package/dist/components/calcite-shell/customElement.js +1 -1
  203. package/dist/components/calcite-shell-panel/customElement.js +7 -5
  204. package/dist/components/calcite-slider/customElement.js +1 -1
  205. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  206. package/dist/components/calcite-stepper/customElement.js +1 -1
  207. package/dist/components/calcite-stepper-item/customElement.js +2 -2
  208. package/dist/components/calcite-swatch-group/customElement.js +1 -1
  209. package/dist/components/calcite-tab/customElement.js +1 -1
  210. package/dist/components/calcite-tab-nav/customElement.js +4 -2
  211. package/dist/components/calcite-tab-title/customElement.js +5 -3
  212. package/dist/components/calcite-table-cell/customElement.js +3 -2
  213. package/dist/components/calcite-tabs/customElement.js +1 -1
  214. package/dist/components/calcite-time-picker/customElement.js +3 -2
  215. package/dist/components/calcite-tooltip/customElement.js +4 -1
  216. package/dist/components/calcite-tree/customElement.js +1 -1
  217. package/dist/components/calcite-tree-item/customElement.js +4 -2
  218. package/dist/controllers/useForm.d.ts +3 -0
  219. package/dist/docs/api.json +1 -1
  220. package/dist/docs/docs.json +1 -1
  221. package/dist/docs/supported-browsers.json +1 -1
  222. package/dist/docs/vscode.css-custom-data.json +1 -1
  223. package/dist/docs/vscode.html-custom-data.json +1 -1
  224. package/dist/docs/web-types.json +1 -1
  225. package/dist/loader.js +3 -3
  226. package/dist/types/lumina.d.ts +1 -1
  227. package/dist/types/preact.d.ts +1 -1
  228. package/dist/types/react.d.ts +1 -1
  229. package/dist/types/stencil.d.ts +1 -1
  230. package/package.json +6 -6
  231. package/dist/cdn/2CCRLQOV.js +0 -2
  232. package/dist/cdn/2UXQ7FQU.js +0 -2
  233. package/dist/cdn/3KAMTN22.js +0 -2
  234. package/dist/cdn/4ET37OQN.js +0 -2
  235. package/dist/cdn/66NDMEG2.js +0 -2
  236. package/dist/cdn/76VE6QGI.js +0 -2
  237. package/dist/cdn/7AJLMSNL.js +0 -2
  238. package/dist/cdn/ALRQOPMQ.js +0 -2
  239. package/dist/cdn/AO7ZTAVY.js +0 -2
  240. package/dist/cdn/BEHKDUR6.js +0 -2
  241. package/dist/cdn/BKAZFAPN.js +0 -2
  242. package/dist/cdn/CSRCARFW.js +0 -2
  243. package/dist/cdn/EC3GCET5.js +0 -2
  244. package/dist/cdn/EREDWMAC.js +0 -2
  245. package/dist/cdn/EVZEXLBF.js +0 -2
  246. package/dist/cdn/GETIWK4G.js +0 -2
  247. package/dist/cdn/HSNJW6OM.js +0 -2
  248. package/dist/cdn/JLJULYTE.js +0 -2
  249. package/dist/cdn/JRAIIHMU.js +0 -2
  250. package/dist/cdn/JZWQZ5BO.js +0 -2
  251. package/dist/cdn/KFPRUCQK.js +0 -2
  252. package/dist/cdn/LFGU3E4X.js +0 -2
  253. package/dist/cdn/LGDOYO5J.js +0 -2
  254. package/dist/cdn/MOZ5AAJM.js +0 -2
  255. package/dist/cdn/NNVU3JV4.js +0 -2
  256. package/dist/cdn/O5XHZCXZ.js +0 -2
  257. package/dist/cdn/OXJIN4W5.js +0 -2
  258. package/dist/cdn/OXZJMSLQ.js +0 -2
  259. package/dist/cdn/P2745LUP.js +0 -2
  260. package/dist/cdn/RKSFMXT4.js +0 -2
  261. package/dist/cdn/RMKYCARB.js +0 -2
  262. package/dist/cdn/S5KQDAMG.js +0 -2
  263. package/dist/cdn/SUIJIBLR.js +0 -2
  264. package/dist/cdn/TQQTV5HV.js +0 -2
  265. package/dist/cdn/X2HWVZ5U.js +0 -2
  266. package/dist/cdn/XPGAQQQC.js +0 -2
  267. package/dist/cdn/YZ4W6DFR.js +0 -2
  268. package/dist/cdn/Z2BYWKFB.js +0 -2
  269. package/dist/cdn/ZCBRPKAV.js +0 -2
@@ -2,7 +2,8 @@
2
2
  import { c as customElement } from "../../chunks/runtime.js";
3
3
  import { css, isServer, nothing, html } from "lit";
4
4
  import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
5
- import { g as getElementDir, b as slotChangeGetAssignedElements } from "../../chunks/dom.js";
5
+ import { useDirection } from "@arcgis/lumina/controllers";
6
+ import { a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
6
7
  import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
7
8
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
8
9
  import { I as InternalLabel } from "../../chunks/InternalLabel.js";
@@ -20,6 +21,7 @@ const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;use
20
21
  class SegmentedControl extends LitElement {
21
22
  constructor() {
22
23
  super();
24
+ this.direction = useDirection();
23
25
  this.items = [];
24
26
  this.messages = useT9n();
25
27
  this.focusSetter = useSetFocus()(this);
@@ -119,12 +121,12 @@ class SegmentedControl extends LitElement {
119
121
  handleKeyDown(event) {
120
122
  const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
121
123
  const { key } = event;
122
- const { el, selectedItem } = this;
124
+ const { selectedItem } = this;
123
125
  if (keys.indexOf(key) === -1) {
124
126
  return;
125
127
  }
126
128
  let adjustedKey = key;
127
- if (getElementDir(el) === "rtl") {
129
+ if (this.direction === "rtl") {
128
130
  if (key === "ArrowRight") {
129
131
  adjustedKey = "ArrowLeft";
130
132
  }
@@ -2,7 +2,7 @@
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 } from "../../chunks/dom.js";
5
+ import { m as slotChangeHasContent } from "../../chunks/dom.js";
6
6
  import { t as toAriaBoolean } from "../../chunks/aria.js";
7
7
  const SLOTS = {
8
8
  input: "input"
@@ -5,7 +5,8 @@ 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 { z as ensureId, g as getElementDir, a as getStylePixelValue } from "../../chunks/dom.js";
8
+ import { useDirection } from "@arcgis/lumina/controllers";
9
+ import { y as ensureId, g as getStylePixelValue } from "../../chunks/dom.js";
9
10
  import { c as createObserver } from "../../chunks/observers.js";
10
11
  import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
11
12
  import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
@@ -37,6 +38,7 @@ class Sheet extends LitElement {
37
38
  constructor() {
38
39
  super();
39
40
  this.contentRef = createRef();
41
+ this.direction = useDirection();
40
42
  this.focusTrap = useFocusTrap({
41
43
  triggerProp: "open",
42
44
  focusTrapOptions: {
@@ -178,14 +180,14 @@ class Sheet extends LitElement {
178
180
  }
179
181
  handleKeyDown(event) {
180
182
  const { key, defaultPrevented, shiftKey } = event;
181
- const { contentRef, position, resizable, el, resizeValues: { maxBlockSize, maxInlineSize, minBlockSize, minInlineSize } } = this;
183
+ const { contentRef, position, resizable, resizeValues: { maxBlockSize, maxInlineSize, minBlockSize, minInlineSize } } = this;
182
184
  const arrowKeys = position === "block-end" || position === "block-start" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"];
183
185
  const keys = [...arrowKeys, "Home", "End"];
184
186
  if (!resizable || !contentRef.value || defaultPrevented || !keys.includes(key)) {
185
187
  return;
186
188
  }
187
189
  const rect = this.getContentRefDOMRect();
188
- const invertRTL = getElementDir(el) === "rtl" ? -1 : 1;
190
+ const invertRTL = this.direction === "rtl" ? -1 : 1;
189
191
  const stepValue = shiftKey ? resizeShiftStep : resizeStep;
190
192
  switch (key) {
191
193
  case "ArrowUp":
@@ -256,7 +258,8 @@ class Sheet extends LitElement {
256
258
  maxInlineSize: getStylePixelValue(maxInlineSize) || window.innerWidth,
257
259
  maxBlockSize: getStylePixelValue(maxBlockSize) || window.innerHeight
258
260
  };
259
- const rtl = getElementDir(el) === "rtl";
261
+ this.resizeValues = values;
262
+ const rtl = this.direction === "rtl";
260
263
  this.interaction = interact(contentRef.value, { context: el.ownerDocument }).resizable({
261
264
  edges: {
262
265
  top: position === "block-end" ? resizeHandleEl : false,
@@ -318,7 +321,7 @@ class Sheet extends LitElement {
318
321
  }
319
322
  render() {
320
323
  const { resizable, position, resizeValues } = this;
321
- const dir = getElementDir(this.el);
324
+ const dir = this.direction;
322
325
  const isBlockPosition = position === "block-start" || position === "block-end";
323
326
  setAttribute(this.el, "aria-describedby", this.contentId);
324
327
  this.el.ariaLabel = this.label;
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
3
3
  import { keyed } from "lit/directives/keyed.js";
4
4
  import { css, html } from "lit";
5
5
  import { LitElement, safeClassMap } from "@arcgis/lumina";
6
- import { s as slotChangeHasAssignedElement, b as slotChangeGetAssignedElements } from "../../chunks/dom.js";
6
+ import { s as slotChangeHasAssignedElement, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
7
7
  const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0;border-width:0px;z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{pointer-events:none;display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap}::slotted(calcite-shell-panel){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-normal)}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:var(--calcite-border-width-sm);border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-none);border-inline-end-width:var(--calcite-border-width-none);border-style:solid}slot[name=panel-top]::slotted(calcite-shell-panel:not([display-mode^=float])),slot[name=panel-bottom]::slotted(calcite-shell-panel:not([display-mode^=float])){border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:var(--calcite-border-width-sm)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-panel){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:.25rem;--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);inset-block-end:.5rem;inset-inline:var(--calcite-shell-tip-spacing, 26vw)}slot[name=panel-bottom]::slotted(calcite-shell-panel){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-panel){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}:host([hidden]){display:none}[hidden]{display:none}`;
8
8
  const CSS = {
9
9
  main: "main",
@@ -5,7 +5,8 @@ import { u as useSizeOverride, i as interact } from "../../chunks/useSizeOverrid
5
5
  import { css, html } from "lit";
6
6
  import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
7
7
  import { createRef, ref } from "lit/directives/ref.js";
8
- import { g as getElementDir, a as getStylePixelValue, b as slotChangeGetAssignedElements, s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
8
+ import { useDirection } from "@arcgis/lumina/controllers";
9
+ import { g as getStylePixelValue, a as slotChangeGetAssignedElements, s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
9
10
  import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
10
11
  import { a as ariaValueFromSize } from "../../chunks/aria.js";
11
12
  import { u as useT9n } from "../../chunks/useT9n.js";
@@ -35,6 +36,7 @@ const styles = css`:host{pointer-events:none;position:relative;display:flex;flex
35
36
  class ShellPanel extends LitElement {
36
37
  constructor() {
37
38
  super(...arguments);
39
+ this.direction = useDirection();
38
40
  this.actionBars = [];
39
41
  this.contentRef = createRef();
40
42
  this.messages = useT9n();
@@ -104,14 +106,14 @@ class ShellPanel extends LitElement {
104
106
  }
105
107
  handleKeyDown(event) {
106
108
  const { key, defaultPrevented, shiftKey } = event;
107
- const { position, layout, resizable, contentRef, el, resizeValues: { maxBlockSize, maxInlineSize, minBlockSize, minInlineSize } } = this;
109
+ const { position, layout, resizable, contentRef, resizeValues: { maxBlockSize, maxInlineSize, minBlockSize, minInlineSize } } = this;
108
110
  const arrowKeys = layout === "horizontal" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"];
109
111
  const keys = [...arrowKeys, "Home", "End"];
110
112
  if (!resizable || !contentRef.value || defaultPrevented || !keys.includes(key)) {
111
113
  return;
112
114
  }
113
115
  const rect = this.getContentElDOMRect();
114
- const invertRTL = getElementDir(el) === "rtl" ? -1 : 1;
116
+ const invertRTL = this.direction === "rtl" ? -1 : 1;
115
117
  const stepValue = shiftKey ? resizeShiftStep : resizeStep;
116
118
  switch (key) {
117
119
  case "ArrowUp":
@@ -168,7 +170,7 @@ class ShellPanel extends LitElement {
168
170
  maxBlockSize: getStylePixelValue(maxBlockSize) || window.innerHeight
169
171
  };
170
172
  this.resizeValues = values;
171
- const rtl = getElementDir(el) === "rtl";
173
+ const rtl = this.direction === "rtl";
172
174
  this.interaction = interact(contentRef.value, { context: el.ownerDocument }).resizable({
173
175
  edges: {
174
176
  top: position === "end" && layout === "horizontal" ? resizeHandleEl : false,
@@ -226,7 +228,7 @@ class ShellPanel extends LitElement {
226
228
  }
227
229
  render() {
228
230
  const { collapsed, position, resizable, layout, displayMode, resizeValues } = this;
229
- const dir = getElementDir(this.el);
231
+ const dir = this.direction;
230
232
  const isBlockPosition = layout === "horizontal";
231
233
  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;
232
234
  const getAnimationDir = () => {
@@ -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, x as intersects } from "../../chunks/dom.js";
8
+ import { j as isPrimaryPointerButton, v 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";
@@ -4,7 +4,7 @@ import { css, html } from "lit";
4
4
  import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
5
5
  import { c as createObserver } from "../../chunks/observers.js";
6
6
  import { d as disconnectSortableComponent, c as connectSortableComponent } from "../../chunks/sortableComponent.js";
7
- import { j as focusElement } from "../../chunks/dom.js";
7
+ import { i as focusElement } from "../../chunks/dom.js";
8
8
  import { l as logger } from "../../chunks/logger.js";
9
9
  import { u as useInteractive } from "../../chunks/useInteractive.js";
10
10
  const CSS = {
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
3
3
  import { svg, html, css, nothing } from "lit";
4
4
  import { safeClassMap, LitElement, createEvent } from "@arcgis/lumina";
5
5
  import { createRef, ref } from "lit/directives/ref.js";
6
- import { f as focusElementInGroup, b as slotChangeGetAssignedElements } from "../../chunks/dom.js";
6
+ import { f as focusElementInGroup, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
7
7
  import { c as createObserver } from "../../chunks/observers.js";
8
8
  import { g as guid } from "../../chunks/guid.js";
9
9
  import { u as useT9n } from "../../chunks/useT9n.js";
@@ -7,7 +7,7 @@ import { n as numberStringFormatter } from "../../chunks/locale.js";
7
7
  import { u as useT9n } from "../../chunks/useT9n.js";
8
8
  import { i as isHidden } from "../../chunks/component.js";
9
9
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
10
- import { n as slotChangeHasContent } from "../../chunks/dom.js";
10
+ import { m as slotChangeHasContent } from "../../chunks/dom.js";
11
11
  import { u as useInteractive } from "../../chunks/useInteractive.js";
12
12
  const CSS = {
13
13
  container: "container",
@@ -27,7 +27,7 @@ const ICONS = {
27
27
  exclamationMarkCircleF: "exclamationMarkCircleF",
28
28
  checkCircleF: "checkCircleF"
29
29
  };
30
- const styles = css`:host([disabled]),:host([layout=horizontal][disabled]) .stepper-item-header,:host([layout=horizontal-single][disabled]) .stepper-item-header{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([layout=horizontal][disabled]) .stepper-item-header *,:host([layout=horizontal-single][disabled]) .stepper-item-header *,:host([disabled]) ::slotted(*),:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),:host([layout=horizontal-single][disabled]) .stepper-item-header ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-stepper-item-spacing-unit-s: .25rem;--calcite-internal-stepper-item-spacing-unit-m: .75rem;--calcite-internal-stepper-item-spacing-unit-l: 1rem;--calcite-internal-stepper-item-header-padding: var(--calcite-spacing-md);--calcite-internal-stepper-action-inline-size: 2rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-inline-end:.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size-relative-sm)}:host([scale=m]){--calcite-internal-stepper-item-spacing-unit-s: .5rem;--calcite-internal-stepper-item-spacing-unit-m: 1rem;--calcite-internal-stepper-item-spacing-unit-l: 1.25rem;--calcite-internal-stepper-item-header-padding: var(--calcite-spacing-lg);--calcite-internal-stepper-action-inline-size: 2.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-inline-end:.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size-relative-base)}:host([scale=l]){--calcite-internal-stepper-item-spacing-unit-s: .75rem;--calcite-internal-stepper-item-spacing-unit-m: 1.25rem;--calcite-internal-stepper-item-spacing-unit-l: 1.5rem;--calcite-internal-stepper-item-header-padding: var(--calcite-spacing-xl);--calcite-internal-stepper-action-inline-size: 3rem;font-size:var(--calcite-font-size-relative-lg);line-height:var(--calcite-font-line-height-lg);margin-inline-end:.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-relative-md)}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-bar-gap, var(--calcite-internal-stepper-item-spacing-unit-s))}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-color-border-3);color:var(--calcite-color-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px}:host .container:active{background-color:var(--calcite-stepper-item-background-color-press, var(--calcite-color-foreground-3))}:host{outline-color:transparent}:host(:focus){outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host .stepper-item-content,:host .stepper-item-header{padding-block:var(--calcite-internal-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start;padding-block:var(--calcite-internal-stepper-item-header-padding)}:host .stepper-item-header:active{background-color:var(--calcite-stepper-item-background-color-press, var(--calcite-color-foreground-3))}:host .stepper-item-header *{display:inline-flex;align-items:center}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}:host .stepper-item-icon{margin-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);display:inline-flex;block-size:.75rem;flex-shrink:0;align-self:flex-start;margin-block-start:var(--calcite-spacing-base);color:var(--calcite-stepper-item-icon-color, var(--calcite-color-border-input))}:host([complete]) .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}.stepper-item-heading,.stepper-item-description,.stepper-item-number{line-height:var(--calcite-font-line-height-relative-snug)}:host .stepper-item-heading{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-stepper-item-header-text-color, var(--calcite-color-text-1))}:host .stepper-item-description{color:var(--calcite-stepper-item-description-text-color, var(--calcite-color-text-3))}:host .stepper-item-number{font-weight:var(--calcite-font-weight-normal);margin-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);color:var(--calcite-stepper-item-description-text-color, var(--calcite-color-text-1))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([complete]) .container{border-color:#007ac280}:host([complete]) .container .stepper-item-icon{color:var(--calcite-stepper-item-complete-icon-color, var(--calcite-color-brand))}:host([error]) .container{border-block-start-color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-stepper-item-header-text-color-hover, var(--calcite-color-text-1))}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-stepper-item-description-text-color-hover, var(--calcite-color-text-2))}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-status-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-stepper-item-selected-header-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-medium)}:host([selected]) .container .stepper-item-description{color:var(--calcite-stepper-item-description-text-color-hover, var(--calcite-color-text-2))}:host([selected]) .container .stepper-item-number{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-brand));font-weight:var(--calcite-font-weight-medium)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-brand));opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]){inline-size:100%}:host([layout=vertical]) .container{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-internal-stepper-item-spacing-unit-l);border-color:var(--calcite-stepper-bar-fill-color, var(--calcite-color-border-2))}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-internal-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0}:host([layout=vertical][complete]) .container{border-color:var(--calcite-stepper-bar-complete-fill-color, rgba(0, 122, 194, .5))}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-complete-fill-color-hover, var(--calcite-color-brand))}:host([layout=vertical][error]) .container{border-color:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}:host([layout=vertical][selected]) .container{border-color:var(--calcite-stepper-bar-selected-fill-color, var(--calcite-color-brand))}:host([layout=vertical][selected]) .container .stepper-item-content.has-slotted-content{margin-block-end:var(--calcite-internal-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-fill-color-hover, rgba(0, 122, 194, .5))}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-error-fill-color-hover, var(--calcite-color-status-danger-hover))}:host([layout=horizontal]),:host([layout=horizontal-single]){display:contents}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header,:host([layout=horizontal-single]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;outline-color:transparent;grid-row:items;border-color:var(--calcite-stepper-bar-fill-color, var(--calcite-color-border-2))}:host([layout=horizontal]) .stepper-item-header:focus,:host([layout=horizontal-single]) .stepper-item-header:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{cursor:auto;transition-timing-function:cubic-bezier(.4,0,.2,1);padding-block:0;padding-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal-single]) .stepper-item-header{grid-area:1/1/1/-1}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][complete]) .stepper-item-header,:host([layout=horizontal-single][complete]) .stepper-item-header{border-color:var(--calcite-stepper-bar-complete-fill-color, rgba(0, 122, 194, .5))}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-complete-fill-color-hover, var(--calcite-color-brand))}:host([layout=horizontal][error]) .stepper-item-header,:host([layout=horizontal-single][error]) .stepper-item-header{border-color:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}:host([layout=horizontal][selected]) .stepper-item-header,:host([layout=horizontal-single][selected]) .stepper-item-header{border-color:var(--calcite-stepper-bar-selected-fill-color, var(--calcite-color-brand))}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-fill-color-hover, rgba(0, 122, 194, .5))}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-error-fill-color-hover, var(--calcite-color-status-danger-hover))}@media(forced-colors:active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}:host([layout=horizontal-single]) .stepper-item-header{margin-inline-end:0px;box-sizing:border-box;border-style:none;inline-size:100%;padding-inline:calc(var(--calcite-internal-stepper-action-inline-size) + .5rem)}:host([layout=horizontal-single][error]) .container .stepper-item-number{color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([layout=horizontal-single][error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([layout=horizontal-single][error][selected]),:host([layout=horizontal-single][complete][selected]) .container{color:var(--calcite-color-text-3)}:host([layout=horizontal-single][error][selected]) .stepper-item-heading,:host([layout=horizontal-single][complete][selected]) .container .stepper-item-heading{color:var(--calcite-stepper-item-header-text-color, var(--calcite-color-text-2))}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-number{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-text-3))}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([item-hidden]){display:none}`;
30
+ const styles = css`:host([disabled]),:host([layout=horizontal][disabled]) .stepper-item-header,:host([layout=horizontal-single][disabled]) .stepper-item-header{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([layout=horizontal][disabled]) .stepper-item-header *,:host([layout=horizontal-single][disabled]) .stepper-item-header *,:host([disabled]) ::slotted(*),:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),:host([layout=horizontal-single][disabled]) .stepper-item-header ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-stepper-item-spacing-unit-s: .25rem;--calcite-internal-stepper-item-spacing-unit-m: .75rem;--calcite-internal-stepper-item-spacing-unit-l: 1rem;--calcite-internal-stepper-item-header-padding: var(--calcite-spacing-md);--calcite-internal-stepper-action-inline-size: 2rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-inline-end:.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size-relative-sm)}:host([scale=m]){--calcite-internal-stepper-item-spacing-unit-s: .5rem;--calcite-internal-stepper-item-spacing-unit-m: 1rem;--calcite-internal-stepper-item-spacing-unit-l: 1.25rem;--calcite-internal-stepper-item-header-padding: var(--calcite-spacing-lg);--calcite-internal-stepper-action-inline-size: 2.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-inline-end:.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size-relative-base)}:host([scale=l]){--calcite-internal-stepper-item-spacing-unit-s: .75rem;--calcite-internal-stepper-item-spacing-unit-m: 1.25rem;--calcite-internal-stepper-item-spacing-unit-l: 1.5rem;--calcite-internal-stepper-item-header-padding: var(--calcite-spacing-xl);--calcite-internal-stepper-action-inline-size: 3rem;font-size:var(--calcite-font-size-relative-lg);line-height:var(--calcite-font-line-height-lg);margin-inline-end:.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-relative-md)}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-bar-gap, var(--calcite-internal-stepper-item-spacing-unit-s))}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-color-border-3);color:var(--calcite-color-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px}:host .container:active{background-color:var(--calcite-stepper-item-background-color-press, var(--calcite-color-foreground-3))}:host{outline-color:transparent}:host(:focus){outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host .stepper-item-content,:host .stepper-item-header{box-sizing:border-box;padding-block:var(--calcite-internal-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start;padding-block:var(--calcite-internal-stepper-item-header-padding)}:host .stepper-item-header:active{background-color:var(--calcite-stepper-item-background-color-press, var(--calcite-color-foreground-3))}:host .stepper-item-header *{display:inline-flex;align-items:center}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}:host .stepper-item-icon{margin-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);display:inline-flex;block-size:.75rem;flex-shrink:0;align-self:flex-start;margin-block-start:var(--calcite-spacing-base);color:var(--calcite-stepper-item-icon-color, var(--calcite-color-border-input))}:host([complete]) .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}.stepper-item-heading,.stepper-item-description,.stepper-item-number{line-height:var(--calcite-font-line-height-relative-snug)}:host .stepper-item-heading{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-stepper-item-header-text-color, var(--calcite-color-text-1))}:host .stepper-item-description{color:var(--calcite-stepper-item-description-text-color, var(--calcite-color-text-3))}:host .stepper-item-number{font-weight:var(--calcite-font-weight-normal);margin-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);color:var(--calcite-stepper-item-description-text-color, var(--calcite-color-text-1))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([complete]) .container{border-color:#007ac280}:host([complete]) .container .stepper-item-icon{color:var(--calcite-stepper-item-complete-icon-color, var(--calcite-color-brand))}:host([error]) .container{border-block-start-color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-stepper-item-header-text-color-hover, var(--calcite-color-text-1))}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-stepper-item-description-text-color-hover, var(--calcite-color-text-2))}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-status-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-stepper-item-selected-header-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-medium)}:host([selected]) .container .stepper-item-description{color:var(--calcite-stepper-item-description-text-color-hover, var(--calcite-color-text-2))}:host([selected]) .container .stepper-item-number{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-brand));font-weight:var(--calcite-font-weight-medium)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-brand));opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]){inline-size:100%}:host([layout=vertical]) .container{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-internal-stepper-item-spacing-unit-l);border-color:var(--calcite-stepper-bar-fill-color, var(--calcite-color-border-2))}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-internal-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0}:host([layout=vertical][complete]) .container{border-color:var(--calcite-stepper-bar-complete-fill-color, rgba(0, 122, 194, .5))}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-complete-fill-color-hover, var(--calcite-color-brand))}:host([layout=vertical][error]) .container{border-color:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}:host([layout=vertical][selected]) .container{border-color:var(--calcite-stepper-bar-selected-fill-color, var(--calcite-color-brand))}:host([layout=vertical][selected]) .container .stepper-item-content.has-slotted-content{margin-block-end:var(--calcite-internal-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-fill-color-hover, rgba(0, 122, 194, .5))}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-error-fill-color-hover, var(--calcite-color-status-danger-hover))}:host([layout=horizontal]),:host([layout=horizontal-single]){display:contents}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header,:host([layout=horizontal-single]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;outline-color:transparent;grid-row:items;border-color:var(--calcite-stepper-bar-fill-color, var(--calcite-color-border-2))}:host([layout=horizontal]) .stepper-item-header:focus,:host([layout=horizontal-single]) .stepper-item-header:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{cursor:auto;transition-timing-function:cubic-bezier(.4,0,.2,1);padding-block:0;padding-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal-single]) .stepper-item-header{grid-area:1/1/1/-1}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][complete]) .stepper-item-header,:host([layout=horizontal-single][complete]) .stepper-item-header{border-color:var(--calcite-stepper-bar-complete-fill-color, rgba(0, 122, 194, .5))}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-complete-fill-color-hover, var(--calcite-color-brand))}:host([layout=horizontal][error]) .stepper-item-header,:host([layout=horizontal-single][error]) .stepper-item-header{border-color:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}:host([layout=horizontal][selected]) .stepper-item-header,:host([layout=horizontal-single][selected]) .stepper-item-header{border-color:var(--calcite-stepper-bar-selected-fill-color, var(--calcite-color-brand))}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-fill-color-hover, rgba(0, 122, 194, .5))}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-error-fill-color-hover, var(--calcite-color-status-danger-hover))}@media(forced-colors:active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}:host([layout=horizontal-single]) .stepper-item-header{margin-inline-end:0px;border-style:none;inline-size:100%;padding-inline:calc(var(--calcite-internal-stepper-action-inline-size) + .5rem)}:host([layout=horizontal-single][error]) .container .stepper-item-number{color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([layout=horizontal-single][error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([layout=horizontal-single][error][selected]),:host([layout=horizontal-single][complete][selected]) .container{color:var(--calcite-color-text-3)}:host([layout=horizontal-single][error][selected]) .stepper-item-heading,:host([layout=horizontal-single][complete][selected]) .container .stepper-item-heading{color:var(--calcite-stepper-item-header-text-color, var(--calcite-color-text-2))}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-number{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-text-3))}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([item-hidden]){display:none}`;
31
31
  class StepperItem extends LitElement {
32
32
  constructor() {
33
33
  super();
@@ -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 } from "@arcgis/lumina";
6
- import { f as focusElementInGroup, b as slotChangeGetAssignedElements } from "../../chunks/dom.js";
6
+ import { f as focusElementInGroup, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
7
7
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
8
8
  import { u as useInteractive } from "../../chunks/useInteractive.js";
9
9
  const CSS = {
@@ -2,7 +2,7 @@
2
2
  import { c as customElement } from "../../chunks/runtime.js";
3
3
  import { css, html } from "lit";
4
4
  import { LitElement, setAttribute, safeClassMap } from "@arcgis/lumina";
5
- import { o as nodeListToArray } from "../../chunks/dom.js";
5
+ import { n as nodeListToArray } from "../../chunks/dom.js";
6
6
  import { g as guid } from "../../chunks/guid.js";
7
7
  const CSS = {
8
8
  container: "container",
@@ -5,7 +5,8 @@ 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, A as filterDirectChildren, f as focusElementInGroup, j as focusElement } from "../../chunks/dom.js";
8
+ import { useDirection } from "@arcgis/lumina/controllers";
9
+ import { z as filterDirectChildren, f as focusElementInGroup, i as focusElement } from "../../chunks/dom.js";
9
10
  import { c as createObserver } from "../../chunks/observers.js";
10
11
  import { u as useT9n } from "../../chunks/useT9n.js";
11
12
  const ICON = {
@@ -26,6 +27,7 @@ const styles = css`:host{position:relative;display:flex}:host([bordered]) .scrol
26
27
  class TabNav extends LitElement {
27
28
  constructor() {
28
29
  super();
30
+ this.direction = useDirection();
29
31
  this.effectiveDir = "ltr";
30
32
  this.lastScrollWheelAxis = "x";
31
33
  this.resizeObserver = createObserver("resize", () => {
@@ -82,7 +84,7 @@ class TabNav extends LitElement {
82
84
  const { parentTabsEl } = this;
83
85
  this.layout = parentTabsEl?.layout;
84
86
  this.bordered = parentTabsEl?.bordered;
85
- this.effectiveDir = getElementDir(this.el);
87
+ this.effectiveDir = this.direction;
86
88
  }
87
89
  loaded() {
88
90
  this.scrollTabTitleIntoView(this.selectedTitle, "instant");
@@ -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 } from "../../chunks/dom.js";
7
+ import { useDirection } from "@arcgis/lumina/controllers";
8
+ import { n as nodeListToArray } from "../../chunks/dom.js";
8
9
  import { t as toAriaBoolean } from "../../chunks/aria.js";
9
10
  import { g as guid } from "../../chunks/guid.js";
10
11
  import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
@@ -33,6 +34,7 @@ class TabTitle extends LitElement {
33
34
  constructor() {
34
35
  super();
35
36
  this.closeButtonRef = createRef();
37
+ this.direction = useDirection();
36
38
  this.guid = IDS.host(guid());
37
39
  this.mutationObserver = createObserver("mutation", () => this.updateHasText());
38
40
  this.resizeObserver = createObserver("resize", () => {
@@ -153,7 +155,7 @@ class TabTitle extends LitElement {
153
155
  break;
154
156
  case "ArrowRight":
155
157
  event.preventDefault();
156
- if (getElementDir(this.el) === "ltr") {
158
+ if (this.direction === "ltr") {
157
159
  this.calciteInternalTabsFocusNext.emit();
158
160
  } else {
159
161
  this.calciteInternalTabsFocusPrevious.emit();
@@ -161,7 +163,7 @@ class TabTitle extends LitElement {
161
163
  break;
162
164
  case "ArrowLeft":
163
165
  event.preventDefault();
164
- if (getElementDir(this.el) === "ltr") {
166
+ if (this.direction === "ltr") {
165
167
  this.calciteInternalTabsFocusPrevious.emit();
166
168
  } else {
167
169
  this.calciteInternalTabsFocusNext.emit();
@@ -3,7 +3,7 @@ import { C as CSS_UTILITY, c as customElement } from "../../chunks/runtime.js";
3
3
  import { css, nothing, html } from "lit";
4
4
  import { createRef, ref } from "lit/directives/ref.js";
5
5
  import { LitElement, safeClassMap } from "@arcgis/lumina";
6
- import { g as getElementDir } from "../../chunks/dom.js";
6
+ import { useDirection } from "@arcgis/lumina/controllers";
7
7
  import { u as useT9n } from "../../chunks/useT9n.js";
8
8
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
9
9
  import { u as useInteractive } from "../../chunks/useInteractive.js";
@@ -22,6 +22,7 @@ class TableCell extends LitElement {
22
22
  constructor() {
23
23
  super(...arguments);
24
24
  this.containerRef = createRef();
25
+ this.direction = useDirection();
25
26
  this.messages = useT9n();
26
27
  this.focusSetter = useSetFocus()(this);
27
28
  this.interactiveContainer = useInteractive(this);
@@ -66,7 +67,7 @@ class TableCell extends LitElement {
66
67
  this.focused = true;
67
68
  }
68
69
  render() {
69
- const dir = getElementDir(this.el);
70
+ const dir = this.direction;
70
71
  const staticCell = this.disabled || this.interactionMode === "static" && (!this.selectionCell || this.selectionCell && this.parentRowType === "foot");
71
72
  return this.interactiveContainer({ disabled: this.disabled, children: html`<td class=${safeClassMap({
72
73
  [CSS.footerCell]: this.parentRowType === "foot",
@@ -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, B as getSlotAssignedElements } from "../../chunks/dom.js";
6
+ import { a as slotChangeGetAssignedElements, A as getSlotAssignedElements } from "../../chunks/dom.js";
7
7
  const CSS = {
8
8
  section: "section"
9
9
  };
@@ -3,10 +3,10 @@ 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
5
  import { createRef, ref } from "lit/directives/ref.js";
6
+ import { useDirection } from "@arcgis/lumina/controllers";
6
7
  import { i as isValidNumber } from "../../chunks/locale.js";
7
8
  import { c as componentFocusable, g as getIconScale } from "../../chunks/component.js";
8
9
  import { d as decimalPlaces } from "../../chunks/math.js";
9
- import { g as getElementDir } from "../../chunks/dom.js";
10
10
  import { u as useT9n } from "../../chunks/useT9n.js";
11
11
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
12
12
  import { u as useTime } from "../../chunks/useTime.js";
@@ -53,6 +53,7 @@ const styles = css`:host{display:inline-block}.time-picker{display:flex;-webkit-
53
53
  class TimePicker extends LitElement {
54
54
  constructor() {
55
55
  super();
56
+ this.direction = useDirection();
56
57
  this.fractionalSecondRef = createRef();
57
58
  this.hourRef = createRef();
58
59
  this.meridiemRef = createRef();
@@ -318,7 +319,7 @@ class TimePicker extends LitElement {
318
319
  [CSS.buttonFractionalSecondDown]: true
319
320
  })} @click=${this.fractionalSecondDownClickHandler} role=button><calcite-icon .icon=${ICONS.chevronDown} .scale=${iconScale}></calcite-icon></span></div>` || ""}${showSecondSuffix && html`<span class=${safeClassMap({ [CSS.delimiter]: true, [CSS.secondSuffix]: true })}>${localizedSecondSuffix.trim()}</span>` || ""}${showMeridiem && html`<div class=${safeClassMap({
320
321
  [CSS.column]: true,
321
- [CSS.meridiemStart]: meridiemOrder === 0 || getElementDir(this.el) === "rtl"
322
+ [CSS.meridiemStart]: meridiemOrder === 0 || this.direction === "rtl"
322
323
  })} role=group><span .ariaLabel=${messages.meridiemUp} class=${safeClassMap({
323
324
  [CSS.button]: true,
324
325
  [CSS.buttonMeridiemUp]: true,
@@ -3,12 +3,13 @@ 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 { createRef, ref } from "lit/directives/ref.js";
6
+ import { useDirection } from "@arcgis/lumina/controllers";
6
7
  import { e as defaultOffsetDistance, r as reposition, a as disconnectFloatingUI, h as hideFloatingUI, c as connectFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
7
8
  import { g as guid } from "../../chunks/guid.js";
8
9
  import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
9
10
  import { F as FloatingArrow } from "../../chunks/FloatingArrow.js";
10
11
  import { u as useTopLayer } from "../../chunks/useTopLayer.js";
11
- import { q as queryElementRoots, C as getShadowRootNode } from "../../chunks/dom.js";
12
+ import { q as queryElementRoots, B as getShadowRootNode } from "../../chunks/dom.js";
12
13
  const CSS = {
13
14
  positionContainer: "position-container",
14
15
  container: "container"
@@ -269,6 +270,7 @@ class Tooltip extends LitElement {
269
270
  constructor() {
270
271
  super(...arguments);
271
272
  this.arrowRef = createRef();
273
+ this.direction = useDirection();
272
274
  this.guid = IDS.host(guid());
273
275
  this.transitionProp = "opacity";
274
276
  this.transitionRef = createRef();
@@ -298,6 +300,7 @@ class Tooltip extends LitElement {
298
300
  async reposition(delayed = false) {
299
301
  const { referenceEl, placement, overlayPositioning, offsetDistance, offsetSkidding, arrowRef, floatingEl } = this;
300
302
  return reposition(this, {
303
+ direction: this.direction,
301
304
  floatingEl,
302
305
  referenceEl,
303
306
  overlayPositioning,
@@ -2,7 +2,7 @@
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 } from "../../chunks/dom.js";
5
+ import { i as focusElement, n as nodeListToArray, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
6
6
  import { t as toAriaBoolean } from "../../chunks/aria.js";
7
7
  function isTreeItem(element) {
8
8
  return element?.tagName === "CALCITE-TREE-ITEM";
@@ -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 { A as filterDirectChildren, b as slotChangeGetAssignedElements, s as slotChangeHasAssignedElement, g as getElementDir } from "../../chunks/dom.js";
7
+ import { useDirection } from "@arcgis/lumina/controllers";
8
+ import { z as filterDirectChildren, a as slotChangeGetAssignedElements, s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
8
9
  import { t as toAriaBoolean } from "../../chunks/aria.js";
9
10
  import { g as getIconScale } from "../../chunks/component.js";
10
11
  import { u as useInteractive } from "../../chunks/useInteractive.js";
@@ -39,6 +40,7 @@ class TreeItem extends LitElement {
39
40
  constructor() {
40
41
  super();
41
42
  this.actionSlotWrapperRef = createRef();
43
+ this.direction = useDirection();
42
44
  this.userChangedValue = false;
43
45
  this.interactiveContainer = useInteractive(this);
44
46
  this.hasEndActions = false;
@@ -242,7 +244,7 @@ class TreeItem extends LitElement {
242
244
  return null;
243
245
  }
244
246
  render() {
245
- const rtl = getElementDir(this.el) === "rtl";
247
+ const rtl = this.direction === "rtl";
246
248
  const selectionIcon = this.getSelectionIcon();
247
249
  const checkboxIsIndeterminate = this.hasChildren && this.indeterminate;
248
250
  const chevron = this.hasChildren || this.selectionMode === "ancestors" ? html`<calcite-icon class=${safeClassMap({
@@ -0,0 +1,3 @@
1
+ import type { Writable } from "type-fest";
2
+
3
+ export type MutableValidityState = Writable<ValidityState>;