@esri/calcite-components 5.2.0-next.13 → 5.2.0-next.15

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 (177) hide show
  1. package/dist/cdn/{5DLRVRTB.js → 2ICUEUOW.js} +1 -1
  2. package/dist/cdn/{PGVWE4EA.js → 2OJMBKZL.js} +1 -1
  3. package/dist/cdn/{JLVK7DCM.js → 2YQ43QTX.js} +1 -1
  4. package/dist/cdn/36576SWA.js +2 -0
  5. package/dist/cdn/{S5LXHCHK.js → 3A7TVJSM.js} +1 -1
  6. package/dist/cdn/{YJJXGE7M.js → 3HBRYHGR.js} +1 -1
  7. package/dist/cdn/{37XH3XV2.js → 3TSSOJNN.js} +1 -1
  8. package/dist/cdn/{TH2OYZRM.js → 3U46POVB.js} +1 -1
  9. package/dist/cdn/{JGG3REKB.js → 4OEMYYGV.js} +1 -1
  10. package/dist/cdn/{2KOVEQ6V.js → 4UXQSYZ7.js} +1 -1
  11. package/dist/cdn/{MI77AL74.js → 4VXMLC7M.js} +1 -1
  12. package/dist/cdn/{IXR6AOLA.js → 5FPES5GS.js} +1 -1
  13. package/dist/cdn/{6EJI7GR3.js → 5HPXECRV.js} +1 -1
  14. package/dist/cdn/{ZYP6DTZM.js → 5UW7EUHQ.js} +1 -1
  15. package/dist/cdn/{AUUZL3IY.js → 6KEWJUMR.js} +1 -1
  16. package/dist/cdn/{TKNKGS67.js → 6TTIV4ZC.js} +1 -1
  17. package/dist/cdn/{4MPVTOOA.js → 6VAAV6YM.js} +1 -1
  18. package/dist/cdn/{SVFHAQXZ.js → 7C77AIYE.js} +1 -1
  19. package/dist/cdn/{SJ7IRIUJ.js → 7ON7H7XO.js} +1 -1
  20. package/dist/cdn/{MIPD3UG7.js → 7V54ULAQ.js} +1 -1
  21. package/dist/cdn/{CIUUSXVU.js → 7YYKJIWV.js} +1 -1
  22. package/dist/cdn/{JQIRUYZ5.js → AVTZDKEU.js} +1 -1
  23. package/dist/cdn/{V4QUBQMC.js → B2RBPUJ7.js} +1 -1
  24. package/dist/cdn/{5WNVVSRL.js → BBVZ3JMD.js} +1 -1
  25. package/dist/cdn/{VYSZDOJ3.js → BH2577DK.js} +1 -1
  26. package/dist/cdn/BHKW6XAK.js +2 -0
  27. package/dist/cdn/{PZGMAWGK.js → BU2RIC53.js} +1 -1
  28. package/dist/cdn/{73JEDUOF.js → BU4KQTTB.js} +1 -1
  29. package/dist/cdn/{K2ONRWOE.js → CIU7BMGP.js} +1 -1
  30. package/dist/cdn/{RBDAO74R.js → CO2DVF6K.js} +1 -1
  31. package/dist/cdn/{XTIMJ6PK.js → CZROJYN3.js} +1 -1
  32. package/dist/cdn/{E2SF6FFO.js → D6GQPIAD.js} +1 -1
  33. package/dist/cdn/{4QIPXH65.js → DJSNRMSM.js} +1 -1
  34. package/dist/cdn/{NCL4QLNC.js → DN7W4U5Y.js} +1 -1
  35. package/dist/cdn/{T4WXQVRR.js → DNJQO5RP.js} +1 -1
  36. package/dist/cdn/{IY7IMBN4.js → DT2BAUOU.js} +1 -1
  37. package/dist/cdn/{55LPMYW7.js → DUH6VXSJ.js} +1 -1
  38. package/dist/cdn/{OE7IG34E.js → DYDGDY5D.js} +1 -1
  39. package/dist/cdn/{AB5KGTLK.js → E5Q7HYR5.js} +1 -1
  40. package/dist/cdn/{GSFTE2OL.js → E7KPXV4D.js} +1 -1
  41. package/dist/cdn/{EVGW34RU.js → EBFY3DI7.js} +1 -1
  42. package/dist/cdn/{G3GGJPKQ.js → EBKN4W5P.js} +1 -1
  43. package/dist/cdn/EOTOGYGB.js +2 -0
  44. package/dist/cdn/{CB6AXX3I.js → ETZWYJ2I.js} +1 -1
  45. package/dist/cdn/{Q65PSI4Q.js → EUIE5IWR.js} +1 -1
  46. package/dist/cdn/EXFLJZNY.js +2 -0
  47. package/dist/cdn/{QRLJ6PSS.js → EZ2VLGIN.js} +1 -1
  48. package/dist/cdn/{YZ52WJ6B.js → EZS7H7DP.js} +1 -1
  49. package/dist/cdn/{ZXUNPT2Q.js → F7TRKPMV.js} +1 -1
  50. package/dist/cdn/{757V32H5.js → FESOLJ65.js} +1 -1
  51. package/dist/cdn/{2K3PRZVD.js → FGA6I2LE.js} +1 -1
  52. package/dist/cdn/{RGA5Q7YM.js → FKCNVRGV.js} +1 -1
  53. package/dist/cdn/{A4XRM4OL.js → FLCHWBKR.js} +1 -1
  54. package/dist/cdn/{7VEEKDN4.js → GEEP5N3L.js} +1 -1
  55. package/dist/cdn/{GKRAR6S2.js → GFVBXNU2.js} +1 -1
  56. package/dist/cdn/{OFMKPVU3.js → GMFL6PGY.js} +1 -1
  57. package/dist/cdn/{IXVJAO3V.js → GNAKN63L.js} +1 -1
  58. package/dist/cdn/{B3NBIV2B.js → HWBQT3T2.js} +1 -1
  59. package/dist/cdn/{WLB4PQ3K.js → HYERCWKU.js} +1 -1
  60. package/dist/cdn/{LPE6RBTW.js → I5LV3F2A.js} +1 -1
  61. package/dist/cdn/{EDPXKXDC.js → ICWLUJEK.js} +1 -1
  62. package/dist/cdn/{7WWDIGHU.js → IJEONWQI.js} +1 -1
  63. package/dist/cdn/{CVYT7TD2.js → ILUA3HJQ.js} +1 -1
  64. package/dist/cdn/{U4HEA6RF.js → IV64BFMC.js} +1 -1
  65. package/dist/cdn/{O7JF2HEZ.js → IYS3R2W5.js} +1 -1
  66. package/dist/cdn/J4KRU5PH.js +2 -0
  67. package/dist/cdn/{N7A7EDNM.js → JIEYMW75.js} +1 -1
  68. package/dist/cdn/JIHLGDIF.js +2 -0
  69. package/dist/cdn/{26XP425T.js → JLXKH7FQ.js} +1 -1
  70. package/dist/cdn/{TIIPBO56.js → JMB6V353.js} +1 -1
  71. package/dist/cdn/{7LOCKNPA.js → JQNCTK7C.js} +1 -1
  72. package/dist/cdn/{KFYGMVI5.js → KBPBNUZD.js} +1 -1
  73. package/dist/cdn/{6AMPX5LP.js → KG4SRWDA.js} +1 -1
  74. package/dist/cdn/{QLDSH5RR.js → KTVMBPSM.js} +1 -1
  75. package/dist/cdn/{QDSEXFA4.js → LSA756AV.js} +1 -1
  76. package/dist/cdn/{VWEYC6WC.js → LZLK3UDG.js} +1 -1
  77. package/dist/cdn/{GHWACDBO.js → M27E5HDR.js} +1 -1
  78. package/dist/cdn/{YTLNA3LL.js → M6MU5RGX.js} +1 -1
  79. package/dist/cdn/{BLGOHZGW.js → MLU5JNL5.js} +1 -1
  80. package/dist/cdn/{IGYTTQKS.js → MTJMV4XH.js} +1 -1
  81. package/dist/cdn/{FWTCJIRT.js → N3QX4IC4.js} +1 -1
  82. package/dist/cdn/{4A4COXQD.js → NHCNZDRG.js} +1 -1
  83. package/dist/cdn/{72J45BVQ.js → NKXO643H.js} +1 -1
  84. package/dist/cdn/{VLW2JN3M.js → NNGMLYGE.js} +1 -1
  85. package/dist/cdn/{RBXO5V6S.js → NW4KWXXB.js} +1 -1
  86. package/dist/cdn/{T6DISZDZ.js → OCX6NYCM.js} +1 -1
  87. package/dist/cdn/{4ZF65FJ3.js → OE6VC6EY.js} +1 -1
  88. package/dist/cdn/{ABPRQKD7.js → ORRPVGCK.js} +1 -1
  89. package/dist/cdn/{HQD2EAGC.js → P4ESRCCM.js} +1 -1
  90. package/dist/cdn/{G5J35TQK.js → PIUP4ZQW.js} +1 -1
  91. package/dist/cdn/{KETQBDEA.js → PJALDHXX.js} +1 -1
  92. package/dist/cdn/{O7YNJFEI.js → PNJYQ6IH.js} +1 -1
  93. package/dist/cdn/{VPOYIWJL.js → PRRBFKOU.js} +1 -1
  94. package/dist/cdn/{HFR2D2IX.js → PUCKJHW2.js} +1 -1
  95. package/dist/cdn/{QGEAUM7Z.js → PUZHBU3E.js} +1 -1
  96. package/dist/cdn/{QCN3GX5G.js → Q6GM5XU4.js} +1 -1
  97. package/dist/cdn/{OWRMX7OF.js → QKUI4P3X.js} +1 -1
  98. package/dist/cdn/{3EKU73VJ.js → QVISZWVR.js} +1 -1
  99. package/dist/cdn/{IMEOCFYF.js → R7TJLOEF.js} +1 -1
  100. package/dist/cdn/{WKBRGWQF.js → RNRP4IRY.js} +1 -1
  101. package/dist/cdn/{PO5NX4EZ.js → RXY7D7QB.js} +1 -1
  102. package/dist/cdn/{D45T6WZO.js → RYLXEBE6.js} +1 -1
  103. package/dist/cdn/{W6DGYU32.js → S2TWAITW.js} +1 -1
  104. package/dist/cdn/{RQ6CHWFF.js → S5Z5B7WV.js} +1 -1
  105. package/dist/cdn/{4YXXSH7M.js → S6HM53NY.js} +1 -1
  106. package/dist/cdn/{G4PAQQBS.js → SAVNFJ57.js} +1 -1
  107. package/dist/cdn/SD4SZNSG.js +2 -0
  108. package/dist/cdn/{XYSCC2MW.js → SELOT4S4.js} +1 -1
  109. package/dist/cdn/{LA6WMGM2.js → SGCEWUTH.js} +1 -1
  110. package/dist/cdn/{UJRCVFK7.js → SQZBOLGJ.js} +1 -1
  111. package/dist/cdn/{2HEFWI76.js → SWDBHLKG.js} +1 -1
  112. package/dist/cdn/{RBOOQMK2.js → T6AKC47S.js} +1 -1
  113. package/dist/cdn/{W2HBBMVY.js → TQ6TTPUS.js} +1 -1
  114. package/dist/cdn/{SCOTSUZS.js → U4CWDR2F.js} +1 -1
  115. package/dist/cdn/{B4VBF6RY.js → UECWR7KX.js} +1 -1
  116. package/dist/cdn/{RIAFEMX7.js → UPZS6PZJ.js} +1 -1
  117. package/dist/cdn/{T7IARLHY.js → USLI3AX2.js} +1 -1
  118. package/dist/cdn/{RQX2R7CB.js → UVPSLQYP.js} +1 -1
  119. package/dist/cdn/{X7UO4JNZ.js → UWVFDDBU.js} +1 -1
  120. package/dist/cdn/{NQTIA5JE.js → VERBYQX6.js} +1 -1
  121. package/dist/cdn/{5JFV5OXV.js → VIKIAEXA.js} +1 -1
  122. package/dist/cdn/{JDEFCKTF.js → VSQC4OO7.js} +1 -1
  123. package/dist/cdn/{25KXT54Z.js → VXOTTW5W.js} +1 -1
  124. package/dist/cdn/{RI5TEZ64.js → WHDZYGAR.js} +1 -1
  125. package/dist/cdn/{R7ONS2BW.js → WIHIX3MV.js} +1 -1
  126. package/dist/cdn/{ZZX3GDJA.js → WNPNOONU.js} +1 -1
  127. package/dist/cdn/{RZE3FVJW.js → WU5PDRBJ.js} +1 -1
  128. package/dist/cdn/{HBSJ7AQE.js → XG4B2C5X.js} +1 -1
  129. package/dist/cdn/{JPKFNIRQ.js → XGJCQM35.js} +1 -1
  130. package/dist/cdn/{CSPAW6TJ.js → XM3R5LHF.js} +1 -1
  131. package/dist/cdn/{S7QMT7XO.js → XPMPRYRP.js} +1 -1
  132. package/dist/cdn/{6LAKY3MC.js → XT336ZH2.js} +1 -1
  133. package/dist/cdn/{EIFX7ZPB.js → Y5F3HQZT.js} +1 -1
  134. package/dist/cdn/{UEJ6BH4G.js → YCSY3IMN.js} +1 -1
  135. package/dist/cdn/{4REC4RTJ.js → YGOIXBFK.js} +1 -1
  136. package/dist/cdn/{KBUGJLKO.js → YQ5EBNWH.js} +1 -1
  137. package/dist/cdn/{THZF7YEP.js → YRYTBKSO.js} +1 -1
  138. package/dist/cdn/{7JVWNUZT.js → Z676GS42.js} +1 -1
  139. package/dist/cdn/{SOGTL62H.js → ZAQOJFC2.js} +1 -1
  140. package/dist/cdn/{4SHGT2EX.js → ZFFCVUVW.js} +1 -1
  141. package/dist/cdn/{4WHVBOF7.js → ZG6W5Q6E.js} +1 -1
  142. package/dist/cdn/{IJGE6GIP.js → ZYSPWQNI.js} +1 -1
  143. package/dist/cdn/{SKIST3XT.js → ZZ4SXAKR.js} +1 -1
  144. package/dist/cdn/ZZWQQ7NP.js +2 -0
  145. package/dist/cdn/index.js +1 -1
  146. package/dist/chunks/runtime.js +3 -3
  147. package/dist/components/calcite-combobox/customElement.d.ts +1 -0
  148. package/dist/components/calcite-combobox/customElement.js +1 -1
  149. package/dist/components/calcite-input-time-zone/customElement.d.ts +4 -1
  150. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  151. package/dist/components/calcite-segmented-control/customElement.d.ts +1 -0
  152. package/dist/components/calcite-segmented-control/customElement.js +1 -1
  153. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  154. package/dist/components/calcite-table/customElement.d.ts +6 -0
  155. package/dist/components/calcite-table/customElement.js +80 -5
  156. package/dist/components/calcite-table-cell/customElement.js +3 -2
  157. package/dist/components/calcite-table-header/customElement.js +1 -1
  158. package/dist/components/calcite-table-row/customElement.js +26 -15
  159. package/dist/docs/api.json +1 -1
  160. package/dist/docs/docs.json +1 -1
  161. package/dist/docs/vscode.css-custom-data.json +1 -1
  162. package/dist/docs/vscode.html-custom-data.json +1 -1
  163. package/dist/docs/web-types.json +1 -1
  164. package/dist/loader.js +3 -3
  165. package/dist/types/lumina.d.ts +1 -1
  166. package/dist/types/preact.d.ts +1 -1
  167. package/dist/types/react.d.ts +1 -1
  168. package/dist/types/stencil.d.ts +1 -1
  169. package/package.json +2 -2
  170. package/dist/cdn/A3VWD5T2.js +0 -2
  171. package/dist/cdn/AFSKWYMQ.js +0 -2
  172. package/dist/cdn/DGFAOYEF.js +0 -2
  173. package/dist/cdn/GTORVAFK.js +0 -2
  174. package/dist/cdn/H6UDUZKQ.js +0 -2
  175. package/dist/cdn/T26GUREL.js +0 -2
  176. package/dist/cdn/VRBVHS5L.js +0 -2
  177. package/dist/cdn/WLMQNPMZ.js +0 -2
@@ -17,7 +17,7 @@ const CSS = {
17
17
  lastCell: "last-cell",
18
18
  staticCell: "static-cell"
19
19
  };
20
- const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:contents}:host([alignment=center]) td:not(.selection-cell):not(.number-cell){text-align:center}:host([alignment=end]) td:not(.selection-cell):not(.number-cell){text-align:end}.assistive-text{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}td{white-space:normal;text-align:start;vertical-align:middle;color:var(--calcite-table-cell-text-color, var(--calcite-color-text-1));background-color:var(--calcite-internal-table-cell-background-color, var(--calcite-table-cell-background-color, transparent));font-size:var(--calcite-internal-table-cell-font-size);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-table-cell-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)));padding:var(--calcite-internal-table-cell-padding)}td:not(.static-cell){outline-color:transparent}td:not(.static-cell):focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}td.start.content-cell{vertical-align:top}td.end.content-cell{vertical-align:bottom}td.last-cell{border-inline-end:0}.footer-cell{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-table-cell-text-color, var(--calcite-color-text-1));background-color:var(--calcite-table-cell-background-color, var(--calcite-table-cell-background, var(--calcite-color-background)));border-block-start:var(--calcite-border-width-sm) solid var(--calcite-table-cell-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)))}.number-cell,.selection-cell{text-align:center;border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-table-cell-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)));inline-size:2rem;min-inline-size:2rem}.number-cell{color:var(--calcite-table-number-cell-text-color, var(--calcite-color-text-1));background-color:var(--calcite-table-number-cell-background-color, var(--calcite-color-foreground-2))}.number-cell.footer-cell{background-color:var(--calcite-table-number-cell-background-color, var(--calcite-table-cell-background-color, var(--calcite-color-background)))}.selection-cell{color:var(--calcite-table-selection-cell-icon-color, var(--calcite-color-text-3))}.selection-cell:not(.footer-cell){cursor:pointer;background-color:var(--calcite-table-selection-cell-background-color, var(--calcite-table-cell-background-color, transparent))}.selection-cell.footer-cell{background-color:var(--calcite-table-selection-cell-background-color, var(--calcite-table-cell-background-color, var(--calcite-color-background)))}.selected-cell:not(.number-cell):not(.footer-cell){background-color:var(--calcite-table-cell-background-color-selected, var(--calcite-table-row-background-color-selected, var(--calcite-color-surface-highlight)))}.selection-cell.selected-cell{box-shadow:inset 0 0 0 0 var(--calcite-table-row-accent-color-selected, var(--calcite-color-brand));color:var(--calcite-table-selection-cell-icon-color-selected, var(--calcite-color-brand))}.calcite--rtl.selection-cell.selected-cell{box-shadow:inset -.25rem 0 0 0 var(--calcite-table-row-accent-color-selected, var(--calcite-color-brand))}.selection-cell{vertical-align:middle}.selection-cell ::slotted(calcite-icon){pointer-events:none;margin-block-start:.25rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
20
+ const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:contents}:host([alignment=center]) td:not(.selection-cell):not(.number-cell){text-align:center}:host([alignment=end]) td:not(.selection-cell):not(.number-cell){text-align:end}.assistive-text{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}td{white-space:normal;text-align:start;vertical-align:middle;color:var(--calcite-table-cell-text-color, var(--calcite-color-text-1));background-color:var(--calcite-internal-table-cell-background-color, var(--calcite-table-cell-background-color, transparent));font-size:var(--calcite-internal-table-cell-font-size);border-block-end:var(--calcite-internal-table-row-border-block-end-width, 0) solid var(--calcite-internal-table-row-border-block-end-color, transparent);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-table-cell-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)));padding:var(--calcite-internal-table-cell-padding)}td:not(.static-cell){outline-color:transparent}td:not(.static-cell):focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}td.start.content-cell{vertical-align:top}td.end.content-cell{vertical-align:bottom}td.last-cell{border-inline-end:0}:host([reaches-body-end]) td{border-block-end:0}.footer-cell{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-table-cell-text-color, var(--calcite-color-text-1));background-color:var(--calcite-table-cell-background-color, var(--calcite-table-cell-background, var(--calcite-color-background)));border-block-end:0;border-block-start:var(--calcite-border-width-sm) solid var(--calcite-table-cell-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)))}.number-cell,.selection-cell{text-align:center;border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-table-cell-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)));inline-size:2rem;min-inline-size:2rem}.number-cell{color:var(--calcite-table-number-cell-text-color, var(--calcite-color-text-1));background-color:var(--calcite-table-number-cell-background-color, var(--calcite-color-foreground-2))}.number-cell.footer-cell{background-color:var(--calcite-table-number-cell-background-color, var(--calcite-table-cell-background-color, var(--calcite-color-background)))}.selection-cell{color:var(--calcite-table-selection-cell-icon-color, var(--calcite-color-text-3))}.selection-cell:not(.footer-cell){cursor:pointer;background-color:var(--calcite-table-selection-cell-background-color, var(--calcite-table-cell-background-color, transparent))}.selection-cell.footer-cell{background-color:var(--calcite-table-selection-cell-background-color, var(--calcite-table-cell-background-color, var(--calcite-color-background)))}.selected-cell:not(.number-cell):not(.footer-cell){background-color:var(--calcite-table-cell-background-color-selected, var(--calcite-table-row-background-color-selected, var(--calcite-color-surface-highlight)))}.selection-cell.selected-cell{box-shadow:inset 0 0 0 0 var(--calcite-table-row-accent-color-selected, var(--calcite-color-brand));color:var(--calcite-table-selection-cell-icon-color-selected, var(--calcite-color-brand))}.calcite--rtl.selection-cell.selected-cell{box-shadow:inset -.25rem 0 0 0 var(--calcite-table-row-accent-color-selected, var(--calcite-color-brand))}.selection-cell{vertical-align:middle}.selection-cell ::slotted(calcite-icon){pointer-events:none;margin-block-start:.25rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
21
21
  class TableCell extends LitElement {
22
22
  constructor() {
23
23
  super(...arguments);
@@ -34,6 +34,7 @@ class TableCell extends LitElement {
34
34
  this.interactionMode = "interactive";
35
35
  this.lastCell = false;
36
36
  this.numberCell = false;
37
+ this.reachesBodyEnd = false;
37
38
  this.parentRowAlignment = "start";
38
39
  this.parentRowIsSelected = false;
39
40
  this.readCellContentsToAT = false;
@@ -41,7 +42,7 @@ class TableCell extends LitElement {
41
42
  this.selectionCell = false;
42
43
  }
43
44
  static {
44
- this.properties = { contentsText: [16, {}, { state: true }], focused: [16, {}, { state: true }], selectionText: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], colSpan: [11, {}, { reflect: true, type: Number }], disabled: [5, {}, { type: Boolean }], interactionMode: 1, lastCell: [5, {}, { type: Boolean }], messageOverrides: [0, {}, { attribute: false }], numberCell: [5, {}, { type: Boolean }], parentRowAlignment: 1, parentRowIsSelected: [5, {}, { type: Boolean }], parentRowPositionLocalized: 1, parentRowType: 1, positionInRow: [9, {}, { type: Number }], readCellContentsToAT: [5, {}, { type: Boolean }], rowSpan: [11, {}, { reflect: true, type: Number }], scale: 1, selectionCell: [5, {}, { type: Boolean }] };
45
+ this.properties = { contentsText: [16, {}, { state: true }], focused: [16, {}, { state: true }], selectionText: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], colSpan: [11, {}, { reflect: true, type: Number }], disabled: [5, {}, { type: Boolean }], interactionMode: 1, lastCell: [5, {}, { type: Boolean }], messageOverrides: [0, {}, { attribute: false }], numberCell: [5, {}, { type: Boolean }], reachesBodyEnd: [7, {}, { reflect: true, type: Boolean }], parentRowAlignment: 1, parentRowIsSelected: [5, {}, { type: Boolean }], parentRowPositionLocalized: 1, parentRowType: 1, positionInRow: [9, {}, { type: Number }], readCellContentsToAT: [5, {}, { type: Boolean }], rowSpan: [11, {}, { reflect: true, type: Number }], scale: 1, selectionCell: [5, {}, { type: Boolean }] };
45
46
  }
46
47
  static {
47
48
  this.styles = styles;
@@ -26,7 +26,7 @@ const ICONS = {
26
26
  indeterminate: "minus-square-f",
27
27
  unchecked: "square"
28
28
  };
29
- const styles = css`:host{display:contents}:host([alignment=center]) th{text-align:center}:host([alignment=end]) th{text-align:end}.assistive-text{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}th{white-space:normal;text-align:start;vertical-align:top;font-weight:var(--calcite-font-weight-medium);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-table-header-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)));padding-block:calc(var(--calcite-internal-table-cell-padding) * 1.5);padding-inline:var(--calcite-internal-table-cell-padding);background-color:var(--calcite-table-header-background-color, var(--calcite-table-header-background, var(--calcite-color-foreground-2)));font-size:var(--calcite-internal-table-cell-font-size);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-table-cell-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)))}th:not(.static-cell){outline-color:transparent}th:not(.static-cell):not(.static-cell):focus-within{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}th:not(.center):not(.end).content-cell{vertical-align:top}th.center{vertical-align:middle}th.end.content-cell{vertical-align:bottom}th.body-row,th.footer-row{padding-block:var(--calcite-internal-table-cell-padding);border-block-end:0}th.footer-row{border-block-start:var(--calcite-border-width-sm) solid var(--calcite-table-header-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)))}th.last-cell{border-inline-end:0}.cell--multiple-selection{cursor:pointer;vertical-align:middle;color:var(--calcite-table-selection-cell-icon-color, var(--calcite-color-text-3));background-color:var(--calcite-table-selection-cell-background-color, var(--calcite-color-foreground-2))}.cell--multiple-selection.selected-cell{background-color:var(--calcite-table-selection-cell-background-color-selected, var(--calcite-color-foreground-2))}.cell--multiple-selection:not(.end){vertical-align:middle}.number-cell{background-color:var(--calcite-table-number-cell-background-color, var(--calcite-table-cell-background-color, var(--calcite-color-foreground-2)))}.number-cell,.selection-cell{inline-size:2rem;min-inline-size:2rem}.selection-cell calcite-icon.active{color:var(--calcite-table-selection-cell-icon-color-selected, var(--calcite-color-brand))}.number-cell calcite-icon,.selection-cell calcite-icon{margin-inline-start:auto;margin-inline-end:auto;vertical-align:middle}.heading{color:var(--calcite-table-header-heading-text-color, var(--calcite-color-text-1))}.description{color:var(--calcite-table-header-description-text-color, var(--calcite-color-text-3));font-size:var(--calcite-internal-table-cell-font-size-secondary)}`;
29
+ const styles = css`:host{display:contents}:host([alignment=center]) th{text-align:center}:host([alignment=end]) th{text-align:end}.assistive-text{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}th{white-space:normal;text-align:start;vertical-align:top;font-weight:var(--calcite-font-weight-medium);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-table-header-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)));padding-block:calc(var(--calcite-internal-table-cell-padding) * 1.5);padding-inline:var(--calcite-internal-table-cell-padding);background-color:var(--calcite-table-header-background-color, var(--calcite-table-header-background, var(--calcite-color-foreground-2)));font-size:var(--calcite-internal-table-cell-font-size);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-table-cell-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)))}th:not(.static-cell){outline-color:transparent}th:not(.static-cell):not(.static-cell):focus-within{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}th:not(.body-row):not(.footer-row){border-block-end-width:var(--calcite-internal-table-header-border-block-end-width, var(--calcite-border-width-sm));box-shadow:var(--calcite-internal-table-sticky-header-border-shadow, 0 0 0 0 transparent)}th:not(.center):not(.end).content-cell{vertical-align:top}th.center{vertical-align:middle}th.end.content-cell{vertical-align:bottom}th.body-row,th.footer-row{padding-block:var(--calcite-internal-table-cell-padding);border-block-end:0}th.footer-row{border-block-start:var(--calcite-border-width-sm) solid var(--calcite-table-header-border-color, var(--calcite-table-border-color, var(--calcite-color-border-2)))}th.last-cell{border-inline-end:0}.cell--multiple-selection{cursor:pointer;vertical-align:middle;color:var(--calcite-table-selection-cell-icon-color, var(--calcite-color-text-3));background-color:var(--calcite-table-selection-cell-background-color, var(--calcite-color-foreground-2))}.cell--multiple-selection.selected-cell{background-color:var(--calcite-table-selection-cell-background-color-selected, var(--calcite-color-foreground-2))}.cell--multiple-selection:not(.end){vertical-align:middle}.number-cell{background-color:var(--calcite-table-number-cell-background-color, var(--calcite-table-cell-background-color, var(--calcite-color-foreground-2)))}.number-cell,.selection-cell{inline-size:2rem;min-inline-size:2rem}.selection-cell calcite-icon.active{color:var(--calcite-table-selection-cell-icon-color-selected, var(--calcite-color-brand))}.number-cell calcite-icon,.selection-cell calcite-icon{margin-inline-start:auto;margin-inline-end:auto;vertical-align:middle}.heading{color:var(--calcite-table-header-heading-text-color, var(--calcite-color-text-1))}.description{color:var(--calcite-table-header-description-text-color, var(--calcite-color-text-3));font-size:var(--calcite-internal-table-cell-font-size-secondary)}`;
30
30
  class TableHeader extends LitElement {
31
31
  constructor() {
32
32
  super(...arguments);
@@ -4,7 +4,7 @@ import { keyed } from "lit/directives/keyed.js";
4
4
  import { css, html, render } from "lit";
5
5
  import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
6
6
  import { createRef, ref } from "lit/directives/ref.js";
7
- import { f as focusElementInGroup } from "../../chunks/dom.js";
7
+ import { f as focusElementInGroup, D as getSlotAssignedElements } from "../../chunks/dom.js";
8
8
  import { i as isActivationKey } from "../../chunks/key.js";
9
9
  import { g as getIconScale } from "../../chunks/component.js";
10
10
  import { u as useInteractive } from "../../chunks/useInteractive.js";
@@ -17,12 +17,16 @@ const ICONS = {
17
17
  circleF: "circle-f",
18
18
  circle: "circle"
19
19
  };
20
- const styles = css`@charset "UTF-8";:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:contents}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) tr{pointer-events:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}calcite-table-cell{--calcite-internal-table-cell-background-color: var( --calcite-table-row-background-color, var(--calcite-table-row-background, var(--calcite-color-foreground-1)) )}:host([selected]) calcite-table-cell{--calcite-internal-table-cell-background-color: var( --calcite-table-row-background-color-selected, var(--calcite-color-foreground-1) )}tr{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-table-row-border-color, transparent);background-color:var(--calcite-table-row-background-color, var(--calcite-table-row-background, var(--calcite-color-foreground-1)))}tr.last-visible-row{border-block-end:0}@-moz-document url-prefix(){tr{box-shadow:inset 0 -1px 0 0 var(--calcite-table-row-border-color)}tr.last-visible-row{box-shadow:inset 0 -1px 0 0 transparent}}:host([item-hidden]){display:none}`;
20
+ const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:contents}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) tr{pointer-events:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}calcite-table-cell{--calcite-internal-table-cell-background-color: var( --calcite-table-row-background-color, var(--calcite-table-row-background, var(--calcite-color-foreground-1)) )}:host([slot=table-header]) tr{position:var(--calcite-internal-table-header-row-position);inset-block-start:var(--calcite-internal-table-header-offset, 0);z-index:var(--calcite-internal-table-header-z-index, calc(var(--calcite-z-index) + 1))}:host([selected]) calcite-table-cell{--calcite-internal-table-cell-background-color: var( --calcite-table-row-background-color-selected, var(--calcite-color-foreground-1) )}tr{--calcite-internal-table-row-border-block-end-width: var(--calcite-border-width-sm);--calcite-internal-table-row-border-block-end-color: var(--calcite-table-row-border-color, transparent);background-color:var(--calcite-table-row-background-color, var(--calcite-table-row-background, var(--calcite-color-foreground-1)))}tr.last-visible-row{--calcite-internal-table-row-border-block-end-width: 0;--calcite-internal-table-row-border-block-end-color: transparent}:host([item-hidden]){display:none}`;
21
21
  class TableRow extends LitElement {
22
22
  constructor() {
23
23
  super();
24
+ this.numberedCellRef = createRef();
25
+ this.numberedHeaderRef = createRef();
24
26
  this.rowCells = [];
25
- this.tableRowSlotRef = createRef();
27
+ this.rowSlotRef = createRef();
28
+ this.selectionCellRef = createRef();
29
+ this.selectionHeaderRef = createRef();
26
30
  this.userTriggered = false;
27
31
  this._selected = false;
28
32
  this.clickHandler = () => {
@@ -42,6 +46,7 @@ class TableRow extends LitElement {
42
46
  this.interactionMode = "interactive";
43
47
  this.lastVisibleRow = false;
44
48
  this.numbered = false;
49
+ this.stickyHeaderEnabled = false;
45
50
  this.selectionMode = "none";
46
51
  this.calciteInternalTableRowFocusRequest = createEvent({ cancelable: false });
47
52
  this.calciteInternalTableRowSelect = createEvent({ cancelable: false });
@@ -49,7 +54,7 @@ class TableRow extends LitElement {
49
54
  this.listenOn(document, "calciteInternalTableRowFocusChange", this.calciteInternalTableRowFocusChangeHandler);
50
55
  }
51
56
  static {
52
- this.properties = { alignment: [3, {}, { reflect: true }], itemHidden: [7, {}, { reflect: true, type: Boolean }], bodyRowCount: [9, {}, { type: Number }], cellCount: [9, {}, { type: Number }], disabled: [7, {}, { reflect: true, type: Boolean }], interactionMode: 1, lastVisibleRow: [5, {}, { type: Boolean }], numbered: [5, {}, { type: Boolean }], positionAll: [9, {}, { type: Number }], positionSection: [9, {}, { type: Number }], positionSectionLocalized: 1, readCellContentsToAT: [5, {}, { type: Boolean }], rowType: 1, scale: 1, selected: [7, {}, { reflect: true, type: Boolean }], selectedRowCount: [9, {}, { type: Number }], selectedRowCountLocalized: 1, selectionMode: 1 };
57
+ this.properties = { alignment: [3, {}, { reflect: true }], itemHidden: [7, {}, { reflect: true, type: Boolean }], bodyRowCount: [9, {}, { type: Number }], cellCount: [9, {}, { type: Number }], disabled: [7, {}, { reflect: true, type: Boolean }], interactionMode: 1, lastVisibleRow: [5, {}, { type: Boolean }], numbered: [5, {}, { type: Boolean }], positionAll: [9, {}, { type: Number }], positionSection: [9, {}, { type: Number }], positionSectionLocalized: 1, readCellContentsToAT: [5, {}, { type: Boolean }], rowType: 1, scale: 1, stickyHeaderEnabled: [5, {}, { type: Boolean }], selected: [7, {}, { reflect: true, type: Boolean }], selectedRowCount: [9, {}, { type: Number }], selectedRowCountLocalized: 1, selectionMode: 1 };
53
58
  }
54
59
  static {
55
60
  this.styles = styles;
@@ -79,7 +84,7 @@ class TableRow extends LitElement {
79
84
  }
80
85
  }
81
86
  loaded() {
82
- if (this.tableRowEl && this.rowCells.length > 0) {
87
+ if (this.rowCells.length > 0) {
83
88
  this.updateCells();
84
89
  }
85
90
  }
@@ -87,12 +92,12 @@ class TableRow extends LitElement {
87
92
  this.updateCells();
88
93
  }
89
94
  handleCellChanges() {
90
- if (this.tableRowEl && this.rowCells.length > 0) {
95
+ if (this.rowCells.length > 0) {
91
96
  this.updateCells();
92
97
  }
93
98
  }
94
99
  handleDelayedCellChanges() {
95
- if (this.tableRowEl && this.rowCells.length > 0) {
100
+ if (this.rowCells.length > 0) {
96
101
  requestAnimationFrame(() => this.updateCells());
97
102
  }
98
103
  }
@@ -180,10 +185,14 @@ class TableRow extends LitElement {
180
185
  }
181
186
  updateCells() {
182
187
  const alignment = this.alignment ? this.alignment : this.rowType !== "head" ? "center" : "start";
183
- const slottedCells = this.tableRowSlotRef.value?.assignedElements({ flatten: true })?.filter((el) => el.matches("calcite-table-cell") || el.matches("calcite-table-header")) ?? [];
184
- const tableRowEls = this.tableRowEl?.querySelectorAll("calcite-table-header, calcite-table-cell");
185
- const renderedCells = tableRowEls ? Array.from(tableRowEls).filter((el) => el.numberCell || el.selectionCell) : void 0;
186
- const cells = renderedCells ? renderedCells.concat(slottedCells) : slottedCells;
188
+ const slottedCells = this.rowSlotRef.value ? getSlotAssignedElements(this.rowSlotRef.value, "calcite-table-cell, calcite-table-header") : [];
189
+ const renderedCells = [
190
+ this.numberedCellRef.value,
191
+ this.numberedHeaderRef.value,
192
+ this.selectionCellRef.value,
193
+ this.selectionHeaderRef.value
194
+ ].filter((cell) => cell != null);
195
+ const cells = renderedCells.concat(slottedCells);
187
196
  if (cells.length > 0) {
188
197
  cells?.forEach((cell, index) => {
189
198
  cell.interactionMode = this.interactionMode;
@@ -194,8 +203,11 @@ class TableRow extends LitElement {
194
203
  cell.positionInRow = index + 1;
195
204
  cell.scale = this.scale;
196
205
  if (cell.nodeName === "CALCITE-TABLE-CELL") {
206
+ const rowSpan = cell.rowSpan || 1;
207
+ const reachesBodyEnd = this.rowType === "body" && rowSpan > 1 && this.positionSection + rowSpan >= this.bodyRowCount;
197
208
  cell.readCellContentsToAT = this.readCellContentsToAT;
198
209
  cell.disabled = this.disabled;
210
+ cell.reachesBodyEnd = reachesBodyEnd;
199
211
  }
200
212
  });
201
213
  }
@@ -215,18 +227,17 @@ class TableRow extends LitElement {
215
227
  return html`<calcite-icon .icon=${icon} .scale=${getIconScale(this.scale)}></calcite-icon>`;
216
228
  }
217
229
  renderSelectableCell() {
218
- return this.rowType === "head" ? keyed("selection-head", html`<calcite-table-header alignment=center .bodyRowCount=${this.bodyRowCount} @click=${this.clickHandler} @keydown=${this.handleKeyboardSelection} .parentRowAlignment=${this.alignment} .selectedRowCount=${this.selectedRowCount} .selectedRowCountLocalized=${this.selectedRowCountLocalized} .selectionCell=${true} .selectionMode=${this.selectionMode}></calcite-table-header>`) : this.rowType === "body" ? keyed("selection-body", html`<calcite-table-cell alignment=center @click=${this.clickHandler} @keydown=${this.handleKeyboardSelection} .parentRowAlignment=${this.alignment} .parentRowIsSelected=${this.selected} .parentRowPositionLocalized=${this.positionSectionLocalized} .selectionCell=${true}>${this.renderSelectionIcon()}</calcite-table-cell>`) : keyed("selection-foot", html`<calcite-table-cell alignment=center .parentRowAlignment=${this.alignment} .selectionCell=${true}></calcite-table-cell>`);
230
+ return this.rowType === "head" ? keyed("selection-head", html`<calcite-table-header alignment=center .bodyRowCount=${this.bodyRowCount} @click=${this.clickHandler} @keydown=${this.handleKeyboardSelection} .parentRowAlignment=${this.alignment} .selectedRowCount=${this.selectedRowCount} .selectedRowCountLocalized=${this.selectedRowCountLocalized} .selectionCell=${true} .selectionMode=${this.selectionMode} ${ref(this.selectionHeaderRef)}></calcite-table-header>`) : this.rowType === "body" ? keyed("selection-body", html`<calcite-table-cell alignment=center @click=${this.clickHandler} @keydown=${this.handleKeyboardSelection} .parentRowAlignment=${this.alignment} .parentRowIsSelected=${this.selected} .parentRowPositionLocalized=${this.positionSectionLocalized} .selectionCell=${true} ${ref(this.selectionCellRef)}>${this.renderSelectionIcon()}</calcite-table-cell>`) : keyed("selection-foot", html`<calcite-table-cell alignment=center .parentRowAlignment=${this.alignment} .selectionCell=${true} ${ref(this.selectionCellRef)}></calcite-table-cell>`);
219
231
  }
220
232
  renderNumberedCell() {
221
- return this.rowType === "head" ? keyed("numbered-head", html`<calcite-table-header alignment=center .numberCell=${true} .parentRowAlignment=${this.alignment}></calcite-table-header>`) : this.rowType === "body" ? keyed("numbered-body", html`<calcite-table-cell alignment=center .numberCell=${true} .parentRowAlignment=${this.alignment}>${this.positionSectionLocalized}</calcite-table-cell>`) : keyed("numbered-foot", html`<calcite-table-cell alignment=center .numberCell=${true} .parentRowAlignment=${this.alignment}></calcite-table-cell>`);
233
+ return this.rowType === "head" ? keyed("numbered-head", html`<calcite-table-header alignment=center .numberCell=${true} .parentRowAlignment=${this.alignment} ${ref(this.numberedHeaderRef)}></calcite-table-header>`) : this.rowType === "body" ? keyed("numbered-body", html`<calcite-table-cell alignment=center .numberCell=${true} .parentRowAlignment=${this.alignment} ${ref(this.numberedCellRef)}>${this.positionSectionLocalized}</calcite-table-cell>`) : keyed("numbered-foot", html`<calcite-table-cell alignment=center .numberCell=${true} .parentRowAlignment=${this.alignment} ${ref(this.numberedCellRef)}></calcite-table-cell>`);
222
234
  }
223
235
  render() {
224
236
  return this.interactiveContainer({ disabled: this.disabled, children: html`<tr .ariaRowIndex=${this.positionAll + 1} .ariaSelected=${this.selected} class=${safeClassMap({ [CSS.lastVisibleRow]: this.lastVisibleRow })} @keydown=${this.keyDownHandler} ${ref((el) => {
225
237
  if (!el) {
226
238
  return;
227
239
  }
228
- this.tableRowEl = el;
229
- render(html`${this.numbered && this.renderNumberedCell() || ""}${this.selectionMode !== "none" && this.renderSelectableCell() || ""}<slot ${ref(this.tableRowSlotRef)}></slot>`, el);
240
+ render(html`${this.numbered && this.renderNumberedCell() || ""}${this.selectionMode !== "none" && this.renderSelectableCell() || ""}<slot ${ref(this.rowSlotRef)}></slot>`, el);
230
241
  })}></tr>` });
231
242
  }
232
243
  }