@esri/calcite-components 1.0.0-next.472 → 1.0.0-next.473

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 (795) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/calcite.js +1 -1
  3. package/dist/calcite/index.esm.js +1 -1
  4. package/dist/calcite/{p-96df4a40.system.entry.js → p-0171b2c1.system.entry.js} +2 -2
  5. package/dist/calcite/{p-4221780f.system.entry.js → p-017efcd6.system.entry.js} +2 -2
  6. package/dist/calcite/{p-69a747f7.system.entry.js → p-02afdd61.system.entry.js} +2 -2
  7. package/dist/calcite/{p-c899a1e0.entry.js → p-031bd69d.entry.js} +2 -2
  8. package/dist/calcite/{p-38a4a4b7.system.entry.js → p-03341288.system.entry.js} +2 -2
  9. package/dist/calcite/{p-4bf58ae7.system.js → p-04ff6b3c.system.js} +2 -2
  10. package/dist/calcite/{p-b5f93cc2.system.entry.js → p-06a2d075.system.entry.js} +2 -2
  11. package/dist/calcite/{p-a3b1eedb.system.js → p-08a4f773.system.js} +1 -1
  12. package/dist/calcite/{p-eb1b2008.system.entry.js → p-08aa52c4.system.entry.js} +2 -2
  13. package/dist/calcite/{p-511e79e9.entry.js → p-093994c0.entry.js} +2 -2
  14. package/dist/calcite/{p-75d0c214.system.entry.js → p-0b30cca2.system.entry.js} +2 -2
  15. package/dist/calcite/{p-bbafaa3d.system.entry.js → p-0e4d1240.system.entry.js} +2 -2
  16. package/dist/calcite/{p-a5f010bf.system.js → p-0ea5c8d7.system.js} +2 -2
  17. package/dist/calcite/{p-0450cc5e.system.js → p-117ce389.system.js} +1 -1
  18. package/dist/calcite/{p-a86db187.system.entry.js → p-12bd1cdc.system.entry.js} +2 -2
  19. package/dist/calcite/{p-88405859.system.js → p-14021acc.system.js} +1 -1
  20. package/dist/calcite/{p-68500c43.entry.js → p-143f3519.entry.js} +2 -2
  21. package/dist/calcite/p-15943d7d.js +6 -0
  22. package/dist/calcite/{p-ef8f797e.system.entry.js → p-177f36b2.system.entry.js} +2 -2
  23. package/dist/calcite/{p-1a976dc1.entry.js → p-18a3df57.entry.js} +2 -2
  24. package/dist/calcite/{p-6e6e1ec0.entry.js → p-18f4ed13.entry.js} +2 -2
  25. package/dist/calcite/{p-17d4e8d7.system.entry.js → p-1ba2f4e4.system.entry.js} +3 -3
  26. package/dist/calcite/{p-1ec03ba6.system.entry.js → p-1ca4fc2f.system.entry.js} +2 -2
  27. package/dist/calcite/{p-12909387.system.js → p-1f816841.system.js} +1 -1
  28. package/dist/calcite/{p-e4277b34.system.entry.js → p-2077567b.system.entry.js} +2 -2
  29. package/dist/calcite/{p-19e8bcb9.system.entry.js → p-2224388a.system.entry.js} +2 -2
  30. package/dist/calcite/{p-59c98577.entry.js → p-24dba5c0.entry.js} +2 -2
  31. package/dist/calcite/p-2508f221.system.js +6 -0
  32. package/dist/calcite/{p-76c53310.entry.js → p-26b72176.entry.js} +2 -2
  33. package/dist/calcite/{p-05fdab6b.js → p-2816b25b.js} +1 -1
  34. package/dist/calcite/{p-0e8e90b0.entry.js → p-2a1921cf.entry.js} +2 -2
  35. package/dist/calcite/{p-fecae5bd.js → p-2a323ed1.js} +2 -2
  36. package/dist/calcite/{p-e1ea6719.system.js → p-2e0ad816.system.js} +2 -2
  37. package/dist/calcite/{p-4f1de117.system.entry.js → p-2fc8ef29.system.entry.js} +2 -2
  38. package/dist/calcite/{p-d833d067.system.js → p-335a765f.system.js} +1 -1
  39. package/dist/calcite/{p-f138bb34.js → p-3523f113.js} +1 -1
  40. package/dist/calcite/{p-0d33b11a.entry.js → p-382e71f9.entry.js} +2 -2
  41. package/dist/calcite/{p-81d24b2c.system.entry.js → p-3b14b667.system.entry.js} +2 -2
  42. package/dist/calcite/{p-c01bdec4.system.entry.js → p-3d43aceb.system.entry.js} +2 -2
  43. package/dist/calcite/{p-79797faa.js → p-3dfb20de.js} +1 -1
  44. package/dist/calcite/{p-99513353.system.js → p-3f284cf7.system.js} +1 -1
  45. package/dist/calcite/{p-3cb4c01c.system.js → p-42f50596.system.js} +1 -1
  46. package/dist/calcite/{p-e656a55b.system.entry.js → p-44dc9d8f.system.entry.js} +3 -3
  47. package/dist/calcite/{p-706f0db3.entry.js → p-45af5920.entry.js} +2 -2
  48. package/dist/calcite/{p-34da4434.entry.js → p-49048238.entry.js} +2 -2
  49. package/dist/calcite/p-4a3c3e44.entry.js +6 -0
  50. package/dist/calcite/{p-6be1740a.system.entry.js → p-4b209a12.system.entry.js} +2 -2
  51. package/dist/calcite/{p-aa22cdfd.system.entry.js → p-4b774601.system.entry.js} +2 -2
  52. package/dist/calcite/{p-8cc3ef91.js → p-4d59c0a6.js} +1 -1
  53. package/dist/calcite/{p-239e1a5a.system.js → p-4e3c7699.system.js} +1 -1
  54. package/dist/calcite/{p-b861637b.system.entry.js → p-4fa34041.system.entry.js} +2 -2
  55. package/dist/calcite/{p-784615b3.system.entry.js → p-4fcde19a.system.entry.js} +3 -3
  56. package/dist/calcite/{p-583d3165.system.entry.js → p-5314e688.system.entry.js} +2 -2
  57. package/dist/calcite/{p-1f35bd00.entry.js → p-5536d736.entry.js} +2 -2
  58. package/dist/calcite/{p-0b66fe44.entry.js → p-580846f3.entry.js} +2 -2
  59. package/dist/calcite/{p-28d7afbb.entry.js → p-583f3736.entry.js} +2 -2
  60. package/dist/calcite/{p-bb4649ca.system.entry.js → p-59bb7355.system.entry.js} +2 -2
  61. package/dist/calcite/{p-bd61d393.system.entry.js → p-5a629484.system.entry.js} +2 -2
  62. package/dist/calcite/{p-0ac51796.entry.js → p-5d305d55.entry.js} +2 -2
  63. package/dist/calcite/{p-f3d02ee2.system.entry.js → p-5e0c4866.system.entry.js} +2 -2
  64. package/dist/calcite/{p-8f08f492.entry.js → p-5ee4729c.entry.js} +2 -2
  65. package/dist/calcite/{p-c74a269f.entry.js → p-621a231c.entry.js} +2 -2
  66. package/dist/calcite/{p-8d2e094f.js → p-621a38df.js} +1 -1
  67. package/dist/calcite/{p-2dd18f36.entry.js → p-64c086ca.entry.js} +2 -2
  68. package/dist/calcite/{p-c659e69f.system.entry.js → p-669e3e5d.system.entry.js} +2 -2
  69. package/dist/calcite/{p-0f7a6da5.entry.js → p-6805c836.entry.js} +2 -2
  70. package/dist/calcite/{p-5ce5bc55.system.js → p-6993899f.system.js} +2 -2
  71. package/dist/calcite/{p-8ec0cf1c.js → p-6b49aa6a.js} +2 -2
  72. package/dist/calcite/p-6ce605e6.js +6 -0
  73. package/dist/calcite/p-6efe66bd.entry.js +6 -0
  74. package/dist/calcite/{p-d0c3abd7.entry.js → p-6f7b7140.entry.js} +2 -2
  75. package/dist/calcite/{p-7375c35d.system.entry.js → p-7068f1c7.system.entry.js} +2 -2
  76. package/dist/calcite/{p-97541523.system.entry.js → p-71cf7f6a.system.entry.js} +2 -2
  77. package/dist/calcite/p-7326cbe7.entry.js +6 -0
  78. package/dist/calcite/{p-039e5636.js → p-73671373.js} +2 -2
  79. package/dist/calcite/{p-1d461f79.system.entry.js → p-74066119.system.entry.js} +2 -2
  80. package/dist/calcite/{p-34d748ac.system.entry.js → p-748d960a.system.entry.js} +2 -2
  81. package/dist/calcite/p-74d622e6.js +6 -0
  82. package/dist/calcite/{p-f261539d.entry.js → p-7535a82e.entry.js} +2 -2
  83. package/dist/calcite/{p-1b631c0b.system.js → p-75ba045d.system.js} +2 -2
  84. package/dist/calcite/{p-5f84ac24.entry.js → p-7649c118.entry.js} +2 -2
  85. package/dist/calcite/{p-9a58c901.entry.js → p-7c95923e.entry.js} +2 -2
  86. package/dist/calcite/{p-1b1f1cd7.js → p-81a84aa4.js} +2 -2
  87. package/dist/calcite/{p-fbaa8491.js → p-81ffc626.js} +2 -2
  88. package/dist/calcite/{p-6c718405.system.js → p-847fc3f5.system.js} +2 -2
  89. package/dist/calcite/{p-ff75e2df.entry.js → p-86061fd3.entry.js} +2 -2
  90. package/dist/calcite/{p-561dcb4f.system.entry.js → p-87605826.system.entry.js} +2 -2
  91. package/dist/calcite/{p-29cf2bab.entry.js → p-88ea6c68.entry.js} +2 -2
  92. package/dist/calcite/{p-de2b8834.entry.js → p-8aab022b.entry.js} +2 -2
  93. package/dist/calcite/p-8ad97cbf.entry.js +6 -0
  94. package/dist/calcite/{p-223b55a4.entry.js → p-8c3f54c3.entry.js} +2 -2
  95. package/dist/calcite/{p-fef5e9ae.entry.js → p-8dd963a7.entry.js} +2 -2
  96. package/dist/calcite/{p-c37d1967.system.entry.js → p-8deae485.system.entry.js} +2 -2
  97. package/dist/calcite/{p-0f25a997.system.js → p-8dfe0dd8.system.js} +1 -1
  98. package/dist/calcite/{p-1a09a7ca.system.entry.js → p-8e5ec05f.system.entry.js} +2 -2
  99. package/dist/calcite/{p-689353b0.entry.js → p-8e6824d2.entry.js} +2 -2
  100. package/dist/calcite/{p-2de5ec1d.system.js → p-8f14af33.system.js} +1 -1
  101. package/dist/calcite/{p-b14d3382.system.entry.js → p-9095ca20.system.entry.js} +2 -2
  102. package/dist/calcite/{p-d425c8bb.entry.js → p-911a3fe4.entry.js} +2 -2
  103. package/dist/calcite/{p-2af0a5de.js → p-91488168.js} +2 -2
  104. package/dist/calcite/{p-d926ba48.system.js → p-920e5dae.system.js} +2 -2
  105. package/dist/calcite/{p-c4c4a474.system.entry.js → p-93d8974a.system.entry.js} +2 -2
  106. package/dist/calcite/{p-a77a9028.entry.js → p-93ea735f.entry.js} +2 -2
  107. package/dist/calcite/{p-d5d0d3f3.system.entry.js → p-94f045f0.system.entry.js} +3 -3
  108. package/dist/calcite/p-9920af2f.system.entry.js +6 -0
  109. package/dist/calcite/{p-6bd3faf4.system.entry.js → p-9980ab98.system.entry.js} +2 -2
  110. package/dist/calcite/{p-7c6e546c.js → p-9a333d34.js} +2 -2
  111. package/dist/calcite/{p-dfd592b2.system.entry.js → p-9a97dec6.system.entry.js} +2 -2
  112. package/dist/calcite/{p-13b949bd.entry.js → p-9c049ca2.entry.js} +2 -2
  113. package/dist/calcite/{p-8e6f30ba.system.js → p-9c7a607b.system.js} +1 -1
  114. package/dist/calcite/{p-d1f2711e.entry.js → p-9c909a9a.entry.js} +2 -2
  115. package/dist/calcite/{p-cf2f65e4.entry.js → p-9d21b312.entry.js} +2 -2
  116. package/dist/calcite/{p-b6264214.js → p-9ed1fc1a.js} +1 -1
  117. package/dist/calcite/{p-0bd504f1.entry.js → p-9f05d5e4.entry.js} +2 -2
  118. package/dist/calcite/{p-89517200.js → p-a1584b4a.js} +1 -1
  119. package/dist/calcite/{p-1c80fc7a.system.entry.js → p-a1d8ee2a.system.entry.js} +2 -2
  120. package/dist/calcite/{p-c0de7c43.entry.js → p-a4039eb9.entry.js} +2 -2
  121. package/dist/calcite/{p-66dac43f.js → p-a727977d.js} +1 -1
  122. package/dist/calcite/p-a97c86d1.system.js +6 -0
  123. package/dist/calcite/{p-b999dfde.system.entry.js → p-acbaac21.system.entry.js} +2 -2
  124. package/dist/calcite/{p-9f1b1cc2.js → p-acbbb041.js} +1 -1
  125. package/dist/calcite/{p-bb374431.entry.js → p-aff65b02.entry.js} +2 -2
  126. package/dist/calcite/{p-2c264e88.entry.js → p-b2ab39d2.entry.js} +2 -2
  127. package/dist/calcite/{p-49355c24.entry.js → p-b2ef9fce.entry.js} +2 -2
  128. package/dist/calcite/{p-0ce2202e.system.entry.js → p-b38ac9e6.system.entry.js} +2 -2
  129. package/dist/calcite/{p-11f492cd.js → p-b5e63fb1.js} +1 -1
  130. package/dist/calcite/p-bbaa167a.js +6 -0
  131. package/dist/calcite/{p-d6754382.entry.js → p-bf846ef3.entry.js} +2 -2
  132. package/dist/calcite/{p-91d28a54.entry.js → p-c2106a7e.entry.js} +2 -2
  133. package/dist/calcite/{p-7c2047a2.entry.js → p-c3947d69.entry.js} +2 -2
  134. package/dist/calcite/{p-d48a24ff.system.js → p-c426fd46.system.js} +1 -1
  135. package/dist/calcite/{p-1b3f21ae.js → p-c452f185.js} +1 -1
  136. package/dist/calcite/{p-2a350924.entry.js → p-c6121802.entry.js} +2 -2
  137. package/dist/calcite/{p-012f35b8.system.entry.js → p-c89e4666.system.entry.js} +2 -2
  138. package/dist/calcite/{p-3145b36b.js → p-ce0c6672.js} +1 -1
  139. package/dist/calcite/{p-61616787.entry.js → p-cf70362f.entry.js} +2 -2
  140. package/dist/calcite/{p-ee10f098.system.entry.js → p-d1048557.system.entry.js} +2 -2
  141. package/dist/calcite/{p-88c96305.system.js → p-d25a7f4b.system.js} +2 -2
  142. package/dist/calcite/{p-b953dea3.entry.js → p-d2c26d81.entry.js} +2 -2
  143. package/dist/calcite/{p-a4d3d5b3.system.entry.js → p-d2e904eb.system.entry.js} +3 -3
  144. package/dist/calcite/{p-cb72b045.system.js → p-d68d3868.system.js} +2 -2
  145. package/dist/calcite/{p-e807cec3.system.entry.js → p-d8dfe6da.system.entry.js} +3 -3
  146. package/dist/calcite/{p-5992c1e1.entry.js → p-db3ebce0.entry.js} +2 -2
  147. package/dist/calcite/{p-c6b3d336.system.entry.js → p-dbd5f4b4.system.entry.js} +3 -3
  148. package/dist/calcite/{p-e557d06b.entry.js → p-dd3abfd3.entry.js} +2 -2
  149. package/dist/calcite/p-de4bca82.system.entry.js +6 -0
  150. package/dist/calcite/{p-8467f3e6.entry.js → p-e175a4d7.entry.js} +2 -2
  151. package/dist/calcite/{p-300dc585.system.js → p-e3673265.system.js} +3 -3
  152. package/dist/calcite/{p-1297ccc5.system.entry.js → p-e3c003b0.system.entry.js} +2 -2
  153. package/dist/calcite/{p-41f4d3e8.entry.js → p-e630db25.entry.js} +2 -2
  154. package/dist/calcite/{p-2aeddd96.entry.js → p-e713dfd9.entry.js} +2 -2
  155. package/dist/calcite/{p-4b522a5a.entry.js → p-e7e7bd9f.entry.js} +2 -2
  156. package/dist/calcite/{p-5f244ccd.system.entry.js → p-ec1439f2.system.entry.js} +2 -2
  157. package/dist/calcite/{p-8eebc13a.js → p-ec56452d.js} +1 -1
  158. package/dist/calcite/{p-83ae2b51.entry.js → p-ec748051.entry.js} +2 -2
  159. package/dist/calcite/{p-e37b037e.system.entry.js → p-ec7d3f06.system.entry.js} +2 -2
  160. package/dist/calcite/{p-763001f1.system.entry.js → p-f07b9632.system.entry.js} +2 -2
  161. package/dist/calcite/{p-f562b3e3.entry.js → p-f1518c76.entry.js} +2 -2
  162. package/dist/calcite/{p-c4ad624b.system.js → p-f3f24e05.system.js} +1 -1
  163. package/dist/calcite/{p-64713b72.system.js → p-f639b744.system.js} +1 -1
  164. package/dist/calcite/{p-7c1f396d.system.entry.js → p-fa161bed.system.entry.js} +2 -2
  165. package/dist/calcite/{p-ddae101c.system.entry.js → p-fc1e9dba.system.entry.js} +2 -2
  166. package/dist/calcite/{p-12da02f6.system.entry.js → p-fd447456.system.entry.js} +2 -2
  167. package/dist/calcite/{p-7514c1b4.system.entry.js → p-ff2872b0.system.entry.js} +2 -2
  168. package/dist/cjs/{ExpandToggle-cbd82aa9.js → ExpandToggle-09f24bc8.js} +5 -5
  169. package/dist/cjs/{Heading-d19c86d0.js → Heading-de8ca486.js} +2 -2
  170. package/dist/cjs/{array-1588e094.js → array-c96d72ff.js} +1 -1
  171. package/dist/cjs/calcite-accordion_2.cjs.entry.js +4 -4
  172. package/dist/cjs/calcite-action-bar.cjs.entry.js +10 -10
  173. package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
  174. package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
  175. package/dist/cjs/calcite-action-pad.cjs.entry.js +9 -9
  176. package/dist/cjs/calcite-action.cjs.entry.js +6 -6
  177. package/dist/cjs/calcite-alert.cjs.entry.js +5 -5
  178. package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
  179. package/dist/cjs/calcite-block_2.cjs.entry.js +8 -8
  180. package/dist/cjs/calcite-button.cjs.entry.js +8 -8
  181. package/dist/cjs/calcite-card.cjs.entry.js +6 -6
  182. package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
  183. package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
  184. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +8 -8
  185. package/dist/cjs/calcite-combobox_3.cjs.entry.js +12 -12
  186. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +9 -9
  187. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +7 -7
  188. package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
  189. package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
  190. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  191. package/dist/cjs/calcite-graph_2.cjs.entry.js +9 -9
  192. package/dist/cjs/calcite-handle.cjs.entry.js +4 -4
  193. package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
  194. package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
  195. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +11 -11
  196. package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
  197. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +8 -8
  198. package/dist/cjs/calcite-input.cjs.entry.js +11 -11
  199. package/dist/cjs/calcite-label.cjs.entry.js +5 -5
  200. package/dist/cjs/calcite-link.cjs.entry.js +5 -5
  201. package/dist/cjs/calcite-list_3.cjs.entry.js +8 -8
  202. package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
  203. package/dist/cjs/calcite-modal.cjs.entry.js +6 -6
  204. package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
  205. package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
  206. package/dist/cjs/calcite-pagination.cjs.entry.js +84 -3
  207. package/dist/cjs/calcite-panel.cjs.entry.js +9 -9
  208. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -11
  209. package/dist/cjs/calcite-popover_2.cjs.entry.js +7 -7
  210. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  211. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
  212. package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
  213. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -7
  214. package/dist/cjs/calcite-rating.cjs.entry.js +7 -7
  215. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  216. package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
  217. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  218. package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
  219. package/dist/cjs/calcite-stepper_2.cjs.entry.js +19 -13
  220. package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
  221. package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -6
  222. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
  223. package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
  224. package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
  225. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +5 -5
  226. package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -6
  227. package/dist/cjs/calcite-value-list_2.cjs.entry.js +11 -11
  228. package/dist/cjs/calcite.cjs.js +3 -3
  229. package/dist/cjs/{conditionalSlot-9fd3fca4.js → conditionalSlot-865dc641.js} +3 -3
  230. package/dist/cjs/{debounce-afe2f130.js → debounce-0e1c1ddd.js} +1 -1
  231. package/dist/cjs/{dom-fddf5502.js → dom-8ed5f8fa.js} +2 -2
  232. package/dist/cjs/{forIn-b6c2c5f0.js → forIn-12c8f6b3.js} +2 -2
  233. package/dist/cjs/{form-2a9132c1.js → form-50bc9366.js} +3 -3
  234. package/dist/cjs/{guid-9b31eb44.js → guid-6074e9d1.js} +1 -1
  235. package/dist/cjs/{index-42e003ab.js → index-8c219bd0.js} +1 -1
  236. package/dist/cjs/index.cjs.js +1 -1
  237. package/dist/cjs/{interactive-b7545c32.js → interactive-8d49799d.js} +1 -1
  238. package/dist/cjs/{interfaces-5fd48edb.js → interfaces-eb2e2f20.js} +1 -1
  239. package/dist/cjs/{label-5aa56e34.js → label-e490189b.js} +2 -2
  240. package/dist/cjs/loader.cjs.js +3 -3
  241. package/dist/cjs/{locale-49c63995.js → locale-fba67b58.js} +2 -2
  242. package/dist/cjs/{math-50f9140d.js → math-cb285efe.js} +1 -1
  243. package/dist/cjs/{number-85a681d8.js → number-ebb1b74c.js} +1 -1
  244. package/dist/cjs/{observers-883a20e8.js → observers-a93339e0.js} +1 -1
  245. package/dist/cjs/{popper-17e41493.js → popper-eece55f4.js} +2 -2
  246. package/dist/cjs/{resources-e2c88857.js → resources-02e29987.js} +1 -1
  247. package/dist/cjs/{resources-dd98361c.js → resources-61c470ff.js} +1 -1
  248. package/dist/cjs/{resources-7dfbf3d5.js → resources-848506af.js} +5 -5
  249. package/dist/cjs/{resources-c27559ac.js → resources-8eed49ed.js} +3 -3
  250. package/dist/cjs/{sortable.esm-8fde2d91.js → sortable.esm-df28d758.js} +1 -1
  251. package/dist/cjs/{utils-2ee77f00.js → utils-b04c34a2.js} +1 -1
  252. package/dist/collection/components/accordion/accordion.js +1 -1
  253. package/dist/collection/components/accordion/interfaces.js +1 -1
  254. package/dist/collection/components/accordion-item/accordion-item.js +1 -1
  255. package/dist/collection/components/action/action.js +1 -1
  256. package/dist/collection/components/action/resources.js +1 -1
  257. package/dist/collection/components/action-bar/action-bar.js +1 -1
  258. package/dist/collection/components/action-bar/resources.js +1 -1
  259. package/dist/collection/components/action-bar/utils.js +1 -1
  260. package/dist/collection/components/action-group/action-group.js +1 -1
  261. package/dist/collection/components/action-group/resources.js +1 -1
  262. package/dist/collection/components/action-menu/action-menu.js +1 -1
  263. package/dist/collection/components/action-menu/resources.js +1 -1
  264. package/dist/collection/components/action-pad/action-pad.js +1 -1
  265. package/dist/collection/components/action-pad/resources.js +1 -1
  266. package/dist/collection/components/alert/alert.js +1 -1
  267. package/dist/collection/components/alert/interfaces.js +1 -1
  268. package/dist/collection/components/alert/resources.js +1 -1
  269. package/dist/collection/components/avatar/avatar.js +1 -1
  270. package/dist/collection/components/avatar/utils.js +1 -1
  271. package/dist/collection/components/block/block.js +1 -1
  272. package/dist/collection/components/block/resources.js +1 -1
  273. package/dist/collection/components/block-section/block-section.js +1 -1
  274. package/dist/collection/components/block-section/interfaces.js +1 -1
  275. package/dist/collection/components/block-section/resources.js +1 -1
  276. package/dist/collection/components/button/button.js +1 -1
  277. package/dist/collection/components/button/interfaces.js +1 -1
  278. package/dist/collection/components/button/resources.js +1 -1
  279. package/dist/collection/components/card/card.js +1 -1
  280. package/dist/collection/components/card/resources.js +1 -1
  281. package/dist/collection/components/checkbox/checkbox.js +1 -1
  282. package/dist/collection/components/chip/chip.js +1 -1
  283. package/dist/collection/components/chip/interfaces.js +1 -1
  284. package/dist/collection/components/chip/resources.js +1 -1
  285. package/dist/collection/components/color-picker/color-picker.js +1 -1
  286. package/dist/collection/components/color-picker/interfaces.js +1 -1
  287. package/dist/collection/components/color-picker/resources.js +1 -1
  288. package/dist/collection/components/color-picker/utils.js +1 -1
  289. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  290. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  291. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  292. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  293. package/dist/collection/components/combobox/combobox.js +1 -1
  294. package/dist/collection/components/combobox/interfaces.js +1 -1
  295. package/dist/collection/components/combobox/resources.js +1 -1
  296. package/dist/collection/components/combobox/utils.js +1 -1
  297. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  298. package/dist/collection/components/combobox-item/resources.js +1 -1
  299. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  300. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  301. package/dist/collection/components/date-picker/date-picker.js +1 -1
  302. package/dist/collection/components/date-picker/interfaces.js +1 -1
  303. package/dist/collection/components/date-picker/resources.js +1 -1
  304. package/dist/collection/components/date-picker/utils.js +1 -1
  305. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  306. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  307. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
  308. package/dist/collection/components/dropdown/dropdown.js +1 -1
  309. package/dist/collection/components/dropdown/interfaces.js +1 -1
  310. package/dist/collection/components/dropdown/resources.js +1 -1
  311. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  312. package/dist/collection/components/dropdown-group/interfaces.js +1 -1
  313. package/dist/collection/components/dropdown-group/resources.js +1 -1
  314. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  315. package/dist/collection/components/dropdown-item/resources.js +1 -1
  316. package/dist/collection/components/fab/fab.js +1 -1
  317. package/dist/collection/components/fab/resources.js +1 -1
  318. package/dist/collection/components/filter/filter.js +1 -1
  319. package/dist/collection/components/filter/resources.js +1 -1
  320. package/dist/collection/components/flow/flow.js +1 -1
  321. package/dist/collection/components/flow/interfaces.js +1 -1
  322. package/dist/collection/components/flow/resources.js +1 -1
  323. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  324. package/dist/collection/components/functional/Heading.js +1 -1
  325. package/dist/collection/components/graph/graph.js +1 -1
  326. package/dist/collection/components/graph/interfaces.js +1 -1
  327. package/dist/collection/components/graph/util.js +1 -1
  328. package/dist/collection/components/handle/handle.js +1 -1
  329. package/dist/collection/components/handle/resources.js +1 -1
  330. package/dist/collection/components/icon/icon.js +1 -1
  331. package/dist/collection/components/icon/resources.js +1 -1
  332. package/dist/collection/components/icon/utils.js +1 -1
  333. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  334. package/dist/collection/components/inline-editable/resources.js +1 -1
  335. package/dist/collection/components/input/input.js +1 -1
  336. package/dist/collection/components/input/interfaces.js +1 -1
  337. package/dist/collection/components/input/resources.js +1 -1
  338. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  339. package/dist/collection/components/input-message/input-message.js +1 -1
  340. package/dist/collection/components/input-message/interfaces.js +1 -1
  341. package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
  342. package/dist/collection/components/interfaces.js +1 -1
  343. package/dist/collection/components/label/label.js +1 -1
  344. package/dist/collection/components/label/resources.js +1 -1
  345. package/dist/collection/components/link/link.js +1 -1
  346. package/dist/collection/components/list/list.js +1 -1
  347. package/dist/collection/components/list/resources.js +1 -1
  348. package/dist/collection/components/list-item/list-item.js +1 -1
  349. package/dist/collection/components/list-item/resources.js +1 -1
  350. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  351. package/dist/collection/components/list-item-group/resources.js +1 -1
  352. package/dist/collection/components/loader/loader.js +1 -1
  353. package/dist/collection/components/modal/interfaces.js +1 -1
  354. package/dist/collection/components/modal/modal.js +1 -1
  355. package/dist/collection/components/modal/resources.js +1 -1
  356. package/dist/collection/components/notice/notice.js +1 -1
  357. package/dist/collection/components/notice/resources.js +1 -1
  358. package/dist/collection/components/option/option.js +1 -1
  359. package/dist/collection/components/option-group/option-group.js +1 -1
  360. package/dist/collection/components/pagination/pagination.js +26 -3
  361. package/dist/collection/components/pagination/resources.js +1 -1
  362. package/dist/collection/components/panel/panel.js +1 -1
  363. package/dist/collection/components/panel/resources.js +1 -1
  364. package/dist/collection/components/pick-list/pick-list.js +1 -1
  365. package/dist/collection/components/pick-list/resources.js +1 -1
  366. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  367. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  368. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  369. package/dist/collection/components/pick-list-group/resources.js +1 -1
  370. package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
  371. package/dist/collection/components/pick-list-item/resources.js +1 -1
  372. package/dist/collection/components/popover/PopoverManager.js +1 -1
  373. package/dist/collection/components/popover/popover.js +1 -1
  374. package/dist/collection/components/popover/resources.js +1 -1
  375. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  376. package/dist/collection/components/progress/progress.js +1 -1
  377. package/dist/collection/components/radio-button/radio-button.js +1 -1
  378. package/dist/collection/components/radio-button/resources.js +1 -1
  379. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  380. package/dist/collection/components/radio-group/interfaces.js +1 -1
  381. package/dist/collection/components/radio-group/radio-group.js +1 -1
  382. package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
  383. package/dist/collection/components/radio-group-item/resources.js +1 -1
  384. package/dist/collection/components/rating/rating.js +1 -1
  385. package/dist/collection/components/rating/resources.js +1 -1
  386. package/dist/collection/components/scrim/resources.js +1 -1
  387. package/dist/collection/components/scrim/scrim.js +1 -1
  388. package/dist/collection/components/select/resources.js +1 -1
  389. package/dist/collection/components/select/select.js +1 -1
  390. package/dist/collection/components/shell/resources.js +1 -1
  391. package/dist/collection/components/shell/shell.js +1 -1
  392. package/dist/collection/components/shell-center-row/resources.js +1 -1
  393. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  394. package/dist/collection/components/shell-panel/resources.js +1 -1
  395. package/dist/collection/components/shell-panel/shell-panel.js +1 -1
  396. package/dist/collection/components/slider/slider.js +1 -1
  397. package/dist/collection/components/sortable-list/resources.js +1 -1
  398. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  399. package/dist/collection/components/split-button/resources.js +1 -1
  400. package/dist/collection/components/split-button/split-button.js +1 -1
  401. package/dist/collection/components/stepper/interfaces.js +1 -1
  402. package/dist/collection/components/stepper/stepper.js +15 -9
  403. package/dist/collection/components/stepper-item/stepper-item.js +1 -1
  404. package/dist/collection/components/switch/switch.js +1 -1
  405. package/dist/collection/components/tab/interfaces.js +1 -1
  406. package/dist/collection/components/tab/tab.js +1 -1
  407. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  408. package/dist/collection/components/tab-title/tab-title.js +1 -1
  409. package/dist/collection/components/tabs/interfaces.js +1 -1
  410. package/dist/collection/components/tabs/resources.js +1 -1
  411. package/dist/collection/components/tabs/tabs.js +1 -1
  412. package/dist/collection/components/tile/resources.js +1 -1
  413. package/dist/collection/components/tile/tile.js +1 -1
  414. package/dist/collection/components/tile-select/interfaces.js +1 -1
  415. package/dist/collection/components/tile-select/resources.js +1 -1
  416. package/dist/collection/components/tile-select/tile-select.js +1 -1
  417. package/dist/collection/components/tile-select-group/interfaces.js +1 -1
  418. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  419. package/dist/collection/components/time-picker/resources.js +1 -1
  420. package/dist/collection/components/time-picker/time-picker.js +1 -1
  421. package/dist/collection/components/tip/resources.js +1 -1
  422. package/dist/collection/components/tip/tip.js +1 -1
  423. package/dist/collection/components/tip-group/tip-group.js +1 -1
  424. package/dist/collection/components/tip-manager/resources.js +1 -1
  425. package/dist/collection/components/tip-manager/tip-manager.js +1 -1
  426. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  427. package/dist/collection/components/tooltip/resources.js +1 -1
  428. package/dist/collection/components/tooltip/tooltip.js +1 -1
  429. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  430. package/dist/collection/components/tree/interfaces.js +1 -1
  431. package/dist/collection/components/tree/tree.js +1 -1
  432. package/dist/collection/components/tree-item/interfaces.js +1 -1
  433. package/dist/collection/components/tree-item/resources.js +1 -1
  434. package/dist/collection/components/tree-item/tree-item.js +1 -1
  435. package/dist/collection/components/value-list/resources.js +1 -1
  436. package/dist/collection/components/value-list/value-list.js +1 -1
  437. package/dist/collection/components/value-list-item/resources.js +1 -1
  438. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  439. package/dist/collection/utils/array.js +1 -1
  440. package/dist/collection/utils/conditionalSlot.js +1 -1
  441. package/dist/collection/utils/date.js +1 -1
  442. package/dist/collection/utils/dom.js +1 -1
  443. package/dist/collection/utils/filter.js +1 -1
  444. package/dist/collection/utils/form.js +1 -1
  445. package/dist/collection/utils/globalAttributes.js +1 -1
  446. package/dist/collection/utils/guid.js +1 -1
  447. package/dist/collection/utils/interactive.js +1 -1
  448. package/dist/collection/utils/key.js +1 -1
  449. package/dist/collection/utils/label.js +1 -1
  450. package/dist/collection/utils/locale.js +1 -1
  451. package/dist/collection/utils/math.js +1 -1
  452. package/dist/collection/utils/number.js +1 -1
  453. package/dist/collection/utils/observers.js +1 -1
  454. package/dist/collection/utils/popper.js +1 -1
  455. package/dist/collection/utils/resources.js +1 -1
  456. package/dist/collection/utils/time.js +1 -1
  457. package/dist/components/ExpandToggle.js +1 -1
  458. package/dist/components/Heading.js +1 -1
  459. package/dist/components/action-group.js +1 -1
  460. package/dist/components/action-menu.js +1 -1
  461. package/dist/components/action.js +1 -1
  462. package/dist/components/array.js +1 -1
  463. package/dist/components/button.js +1 -1
  464. package/dist/components/calcite-accordion-item.js +1 -1
  465. package/dist/components/calcite-accordion.js +1 -1
  466. package/dist/components/calcite-action-bar.js +1 -1
  467. package/dist/components/calcite-action-group.js +1 -1
  468. package/dist/components/calcite-action-menu.js +1 -1
  469. package/dist/components/calcite-action-pad.js +1 -1
  470. package/dist/components/calcite-action.js +1 -1
  471. package/dist/components/calcite-alert.js +1 -1
  472. package/dist/components/calcite-avatar.js +1 -1
  473. package/dist/components/calcite-block-section.js +1 -1
  474. package/dist/components/calcite-block.js +1 -1
  475. package/dist/components/calcite-button.js +1 -1
  476. package/dist/components/calcite-card.js +1 -1
  477. package/dist/components/calcite-checkbox.js +1 -1
  478. package/dist/components/calcite-chip.js +1 -1
  479. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  480. package/dist/components/calcite-color-picker-swatch.js +1 -1
  481. package/dist/components/calcite-color-picker.js +1 -1
  482. package/dist/components/calcite-combobox-item-group.js +1 -1
  483. package/dist/components/calcite-combobox-item.js +1 -1
  484. package/dist/components/calcite-combobox.js +1 -1
  485. package/dist/components/calcite-date-picker-day.js +1 -1
  486. package/dist/components/calcite-date-picker-month-header.js +1 -1
  487. package/dist/components/calcite-date-picker-month.js +1 -1
  488. package/dist/components/calcite-date-picker.js +1 -1
  489. package/dist/components/calcite-dropdown-group.js +1 -1
  490. package/dist/components/calcite-dropdown-item.js +1 -1
  491. package/dist/components/calcite-dropdown.js +1 -1
  492. package/dist/components/calcite-fab.js +1 -1
  493. package/dist/components/calcite-filter.js +1 -1
  494. package/dist/components/calcite-flow.js +1 -1
  495. package/dist/components/calcite-graph.js +1 -1
  496. package/dist/components/calcite-handle.js +1 -1
  497. package/dist/components/calcite-icon.js +1 -1
  498. package/dist/components/calcite-inline-editable.js +1 -1
  499. package/dist/components/calcite-input-date-picker.js +1 -1
  500. package/dist/components/calcite-input-message.js +1 -1
  501. package/dist/components/calcite-input-time-picker.js +1 -1
  502. package/dist/components/calcite-input.js +1 -1
  503. package/dist/components/calcite-label.js +1 -1
  504. package/dist/components/calcite-link.js +1 -1
  505. package/dist/components/calcite-list-item-group.js +1 -1
  506. package/dist/components/calcite-list-item.js +1 -1
  507. package/dist/components/calcite-list.js +1 -1
  508. package/dist/components/calcite-loader.js +1 -1
  509. package/dist/components/calcite-modal.js +1 -1
  510. package/dist/components/calcite-notice.js +1 -1
  511. package/dist/components/calcite-option-group.js +1 -1
  512. package/dist/components/calcite-option.js +1 -1
  513. package/dist/components/calcite-pagination.js +83 -2
  514. package/dist/components/calcite-panel.js +1 -1
  515. package/dist/components/calcite-pick-list-group.js +1 -1
  516. package/dist/components/calcite-pick-list-item.js +1 -1
  517. package/dist/components/calcite-pick-list.js +1 -1
  518. package/dist/components/calcite-popover-manager.js +1 -1
  519. package/dist/components/calcite-popover.js +1 -1
  520. package/dist/components/calcite-progress.js +1 -1
  521. package/dist/components/calcite-radio-button-group.js +1 -1
  522. package/dist/components/calcite-radio-button.js +1 -1
  523. package/dist/components/calcite-radio-group-item.js +1 -1
  524. package/dist/components/calcite-radio-group.js +1 -1
  525. package/dist/components/calcite-rating.js +1 -1
  526. package/dist/components/calcite-scrim.js +1 -1
  527. package/dist/components/calcite-select.js +1 -1
  528. package/dist/components/calcite-shell-center-row.js +1 -1
  529. package/dist/components/calcite-shell-panel.js +1 -1
  530. package/dist/components/calcite-shell.js +1 -1
  531. package/dist/components/calcite-slider.js +1 -1
  532. package/dist/components/calcite-sortable-list.js +1 -1
  533. package/dist/components/calcite-split-button.js +1 -1
  534. package/dist/components/calcite-stepper-item.js +1 -1
  535. package/dist/components/calcite-stepper.js +15 -9
  536. package/dist/components/calcite-switch.js +1 -1
  537. package/dist/components/calcite-tab-nav.js +1 -1
  538. package/dist/components/calcite-tab-title.js +1 -1
  539. package/dist/components/calcite-tab.js +1 -1
  540. package/dist/components/calcite-tabs.js +1 -1
  541. package/dist/components/calcite-tile-select-group.js +1 -1
  542. package/dist/components/calcite-tile-select.js +1 -1
  543. package/dist/components/calcite-tile.js +1 -1
  544. package/dist/components/calcite-time-picker.js +1 -1
  545. package/dist/components/calcite-tip-group.js +1 -1
  546. package/dist/components/calcite-tip-manager.js +1 -1
  547. package/dist/components/calcite-tip.js +1 -1
  548. package/dist/components/calcite-tooltip-manager.js +1 -1
  549. package/dist/components/calcite-tooltip.js +1 -1
  550. package/dist/components/calcite-tree-item.js +1 -1
  551. package/dist/components/calcite-tree.js +1 -1
  552. package/dist/components/calcite-value-list-item.js +1 -1
  553. package/dist/components/calcite-value-list.js +1 -1
  554. package/dist/components/checkbox.js +1 -1
  555. package/dist/components/chip.js +1 -1
  556. package/dist/components/color-picker-hex-input.js +1 -1
  557. package/dist/components/color-picker-swatch.js +1 -1
  558. package/dist/components/conditionalSlot.js +1 -1
  559. package/dist/components/date-picker-day.js +1 -1
  560. package/dist/components/date-picker-month-header.js +1 -1
  561. package/dist/components/date-picker-month.js +1 -1
  562. package/dist/components/date-picker.js +1 -1
  563. package/dist/components/date.js +1 -1
  564. package/dist/components/debounce.js +1 -1
  565. package/dist/components/dom.js +1 -1
  566. package/dist/components/dropdown.js +1 -1
  567. package/dist/components/filter.js +1 -1
  568. package/dist/components/forIn.js +1 -1
  569. package/dist/components/form.js +1 -1
  570. package/dist/components/graph.js +1 -1
  571. package/dist/components/guid.js +1 -1
  572. package/dist/components/handle.js +1 -1
  573. package/dist/components/icon.js +1 -1
  574. package/dist/components/index.js +1 -1
  575. package/dist/components/input.js +1 -1
  576. package/dist/components/interactive.js +1 -1
  577. package/dist/components/interfaces.js +1 -1
  578. package/dist/components/interfaces2.js +1 -1
  579. package/dist/components/label.js +1 -1
  580. package/dist/components/label2.js +1 -1
  581. package/dist/components/link.js +1 -1
  582. package/dist/components/loader.js +1 -1
  583. package/dist/components/locale.js +1 -1
  584. package/dist/components/math.js +1 -1
  585. package/dist/components/number.js +1 -1
  586. package/dist/components/observers.js +1 -1
  587. package/dist/components/pick-list-item.js +1 -1
  588. package/dist/components/popover.js +1 -1
  589. package/dist/components/popper.js +1 -1
  590. package/dist/components/progress.js +1 -1
  591. package/dist/components/resources.js +1 -1
  592. package/dist/components/resources2.js +1 -1
  593. package/dist/components/resources3.js +1 -1
  594. package/dist/components/scrim.js +1 -1
  595. package/dist/components/shared-list-render.js +1 -1
  596. package/dist/components/sortable.esm.js +1 -1
  597. package/dist/components/switch.js +1 -1
  598. package/dist/components/tab-nav.js +1 -1
  599. package/dist/components/tab-title.js +1 -1
  600. package/dist/components/tab.js +1 -1
  601. package/dist/components/tabs.js +1 -1
  602. package/dist/components/tile.js +1 -1
  603. package/dist/components/time-picker.js +1 -1
  604. package/dist/components/utils.js +1 -1
  605. package/dist/components/utils2.js +1 -1
  606. package/dist/custom-elements/index.js +103 -19
  607. package/dist/esm/{ExpandToggle-9e559485.js → ExpandToggle-a5abe18b.js} +5 -5
  608. package/dist/esm/{Heading-5f7ecc43.js → Heading-ac9074fa.js} +2 -2
  609. package/dist/esm/{array-b1c0a225.js → array-b6abe05a.js} +1 -1
  610. package/dist/esm/calcite-accordion_2.entry.js +4 -4
  611. package/dist/esm/calcite-action-bar.entry.js +10 -10
  612. package/dist/esm/calcite-action-group.entry.js +8 -8
  613. package/dist/esm/calcite-action-menu.entry.js +8 -8
  614. package/dist/esm/calcite-action-pad.entry.js +9 -9
  615. package/dist/esm/calcite-action.entry.js +6 -6
  616. package/dist/esm/calcite-alert.entry.js +5 -5
  617. package/dist/esm/calcite-avatar.entry.js +5 -5
  618. package/dist/esm/calcite-block_2.entry.js +8 -8
  619. package/dist/esm/calcite-button.entry.js +8 -8
  620. package/dist/esm/calcite-card.entry.js +6 -6
  621. package/dist/esm/calcite-checkbox.entry.js +7 -7
  622. package/dist/esm/calcite-chip.entry.js +6 -6
  623. package/dist/esm/calcite-color-picker_3.entry.js +8 -8
  624. package/dist/esm/calcite-combobox_3.entry.js +12 -12
  625. package/dist/esm/calcite-date-picker_4.entry.js +9 -9
  626. package/dist/esm/calcite-dropdown_3.entry.js +7 -7
  627. package/dist/esm/calcite-fab.entry.js +5 -5
  628. package/dist/esm/calcite-filter.entry.js +7 -7
  629. package/dist/esm/calcite-flow.entry.js +3 -3
  630. package/dist/esm/calcite-graph_2.entry.js +9 -9
  631. package/dist/esm/calcite-handle.entry.js +4 -4
  632. package/dist/esm/calcite-icon.entry.js +5 -5
  633. package/dist/esm/calcite-inline-editable.entry.js +7 -7
  634. package/dist/esm/calcite-input-date-picker.entry.js +11 -11
  635. package/dist/esm/calcite-input-message.entry.js +4 -4
  636. package/dist/esm/calcite-input-time-picker_2.entry.js +8 -8
  637. package/dist/esm/calcite-input.entry.js +11 -11
  638. package/dist/esm/calcite-label.entry.js +5 -5
  639. package/dist/esm/calcite-link.entry.js +5 -5
  640. package/dist/esm/calcite-list_3.entry.js +8 -8
  641. package/dist/esm/calcite-loader.entry.js +3 -3
  642. package/dist/esm/calcite-modal.entry.js +6 -6
  643. package/dist/esm/calcite-notice.entry.js +7 -7
  644. package/dist/esm/calcite-option_3.entry.js +8 -8
  645. package/dist/esm/calcite-pagination.entry.js +84 -3
  646. package/dist/esm/calcite-panel.entry.js +9 -9
  647. package/dist/esm/calcite-pick-list_3.entry.js +11 -11
  648. package/dist/esm/calcite-popover_2.entry.js +7 -7
  649. package/dist/esm/calcite-progress.entry.js +2 -2
  650. package/dist/esm/calcite-radio-button-group.entry.js +3 -3
  651. package/dist/esm/calcite-radio-button.entry.js +8 -8
  652. package/dist/esm/calcite-radio-group_2.entry.js +7 -7
  653. package/dist/esm/calcite-rating.entry.js +7 -7
  654. package/dist/esm/calcite-scrim.entry.js +2 -2
  655. package/dist/esm/calcite-shell_3.entry.js +7 -7
  656. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  657. package/dist/esm/calcite-split-button.entry.js +3 -3
  658. package/dist/esm/calcite-stepper_2.entry.js +19 -13
  659. package/dist/esm/calcite-switch.entry.js +7 -7
  660. package/dist/esm/calcite-tab_4.entry.js +6 -6
  661. package/dist/esm/calcite-tile-select_2.entry.js +4 -4
  662. package/dist/esm/calcite-tile.entry.js +7 -7
  663. package/dist/esm/calcite-tip_3.entry.js +7 -7
  664. package/dist/esm/calcite-tooltip_2.entry.js +5 -5
  665. package/dist/esm/calcite-tree_2.entry.js +6 -6
  666. package/dist/esm/calcite-value-list_2.entry.js +11 -11
  667. package/dist/esm/calcite.js +3 -3
  668. package/dist/esm/{conditionalSlot-0b09826e.js → conditionalSlot-f095bf91.js} +3 -3
  669. package/dist/esm/{debounce-e4f4d217.js → debounce-dac3eee5.js} +1 -1
  670. package/dist/esm/{dom-41c9b953.js → dom-0a8986fb.js} +2 -2
  671. package/dist/esm/{forIn-b658f7ba.js → forIn-c77cfdd0.js} +2 -2
  672. package/dist/esm/{form-38020e0a.js → form-06a1c478.js} +3 -3
  673. package/dist/esm/{guid-32a8b958.js → guid-541996c1.js} +1 -1
  674. package/dist/esm/{index-b9b8e743.js → index-92097d0f.js} +1 -1
  675. package/dist/esm/index.js +1 -1
  676. package/dist/esm/{interactive-22774ddf.js → interactive-15dfd4f0.js} +1 -1
  677. package/dist/esm/{interfaces-9a0a8213.js → interfaces-1ceccfb4.js} +1 -1
  678. package/dist/esm/{label-2074cd4e.js → label-cd72b313.js} +2 -2
  679. package/dist/esm/loader.js +3 -3
  680. package/dist/esm/{locale-06ed8973.js → locale-a10d28e8.js} +2 -2
  681. package/dist/esm/{math-2cc8000b.js → math-0b59f4b9.js} +1 -1
  682. package/dist/esm/{number-b26bd9a5.js → number-9a76ec64.js} +1 -1
  683. package/dist/esm/{observers-7562cb71.js → observers-9a07b466.js} +1 -1
  684. package/dist/esm/{popper-17bf332a.js → popper-058a69e0.js} +2 -2
  685. package/dist/esm/{resources-9d65bbda.js → resources-2e2d7cc4.js} +5 -5
  686. package/dist/esm/{resources-b5206e6a.js → resources-3cbbd57f.js} +3 -3
  687. package/dist/esm/{resources-9d3bd7c9.js → resources-d12ff2f7.js} +1 -1
  688. package/dist/esm/{resources-26815a07.js → resources-e3a9c575.js} +1 -1
  689. package/dist/esm/{sortable.esm-1f263aab.js → sortable.esm-9e38dcde.js} +1 -1
  690. package/dist/esm/{utils-9d2c9c2c.js → utils-ce5a2d55.js} +1 -1
  691. package/dist/esm-es5/{ExpandToggle-9e559485.js → ExpandToggle-a5abe18b.js} +2 -2
  692. package/dist/esm-es5/{Heading-5f7ecc43.js → Heading-ac9074fa.js} +2 -2
  693. package/dist/esm-es5/{array-b1c0a225.js → array-b6abe05a.js} +1 -1
  694. package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
  695. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  696. package/dist/esm-es5/calcite-action-group.entry.js +2 -2
  697. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  698. package/dist/esm-es5/calcite-action-pad.entry.js +3 -3
  699. package/dist/esm-es5/calcite-action.entry.js +2 -2
  700. package/dist/esm-es5/calcite-alert.entry.js +2 -2
  701. package/dist/esm-es5/calcite-avatar.entry.js +2 -2
  702. package/dist/esm-es5/calcite-block_2.entry.js +2 -2
  703. package/dist/esm-es5/calcite-button.entry.js +2 -2
  704. package/dist/esm-es5/calcite-card.entry.js +2 -2
  705. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  706. package/dist/esm-es5/calcite-chip.entry.js +2 -2
  707. package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
  708. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  709. package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
  710. package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
  711. package/dist/esm-es5/calcite-fab.entry.js +2 -2
  712. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  713. package/dist/esm-es5/calcite-flow.entry.js +2 -2
  714. package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
  715. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  716. package/dist/esm-es5/calcite-icon.entry.js +2 -2
  717. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  718. package/dist/esm-es5/calcite-input-date-picker.entry.js +3 -3
  719. package/dist/esm-es5/calcite-input-message.entry.js +2 -2
  720. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  721. package/dist/esm-es5/calcite-input.entry.js +2 -2
  722. package/dist/esm-es5/calcite-label.entry.js +2 -2
  723. package/dist/esm-es5/calcite-link.entry.js +2 -2
  724. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  725. package/dist/esm-es5/calcite-loader.entry.js +2 -2
  726. package/dist/esm-es5/calcite-modal.entry.js +2 -2
  727. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  728. package/dist/esm-es5/calcite-option_3.entry.js +2 -2
  729. package/dist/esm-es5/calcite-pagination.entry.js +3 -3
  730. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  731. package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
  732. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  733. package/dist/esm-es5/calcite-progress.entry.js +2 -2
  734. package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
  735. package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
  736. package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
  737. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  738. package/dist/esm-es5/calcite-scrim.entry.js +2 -2
  739. package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
  740. package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
  741. package/dist/esm-es5/calcite-split-button.entry.js +2 -2
  742. package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
  743. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  744. package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
  745. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  746. package/dist/esm-es5/calcite-tile.entry.js +2 -2
  747. package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
  748. package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
  749. package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
  750. package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
  751. package/dist/esm-es5/calcite.js +2 -2
  752. package/dist/esm-es5/{conditionalSlot-0b09826e.js → conditionalSlot-f095bf91.js} +2 -2
  753. package/dist/esm-es5/{debounce-e4f4d217.js → debounce-dac3eee5.js} +1 -1
  754. package/dist/esm-es5/{dom-41c9b953.js → dom-0a8986fb.js} +2 -2
  755. package/dist/esm-es5/{forIn-b658f7ba.js → forIn-c77cfdd0.js} +2 -2
  756. package/dist/esm-es5/{form-38020e0a.js → form-06a1c478.js} +2 -2
  757. package/dist/esm-es5/{guid-32a8b958.js → guid-541996c1.js} +1 -1
  758. package/dist/esm-es5/{index-b9b8e743.js → index-92097d0f.js} +1 -1
  759. package/dist/esm-es5/index.js +1 -1
  760. package/dist/esm-es5/{interactive-22774ddf.js → interactive-15dfd4f0.js} +1 -1
  761. package/dist/esm-es5/{interfaces-9a0a8213.js → interfaces-1ceccfb4.js} +1 -1
  762. package/dist/esm-es5/{label-2074cd4e.js → label-cd72b313.js} +2 -2
  763. package/dist/esm-es5/loader.js +2 -2
  764. package/dist/esm-es5/{locale-06ed8973.js → locale-a10d28e8.js} +2 -2
  765. package/dist/esm-es5/{math-2cc8000b.js → math-0b59f4b9.js} +1 -1
  766. package/dist/esm-es5/{number-b26bd9a5.js → number-9a76ec64.js} +1 -1
  767. package/dist/esm-es5/{observers-7562cb71.js → observers-9a07b466.js} +1 -1
  768. package/dist/esm-es5/{popper-17bf332a.js → popper-058a69e0.js} +2 -2
  769. package/dist/esm-es5/{resources-9d65bbda.js → resources-2e2d7cc4.js} +2 -2
  770. package/dist/esm-es5/{resources-b5206e6a.js → resources-3cbbd57f.js} +2 -2
  771. package/dist/esm-es5/{resources-9d3bd7c9.js → resources-d12ff2f7.js} +1 -1
  772. package/dist/esm-es5/{resources-26815a07.js → resources-e3a9c575.js} +1 -1
  773. package/dist/esm-es5/{sortable.esm-1f263aab.js → sortable.esm-9e38dcde.js} +1 -1
  774. package/dist/esm-es5/{utils-9d2c9c2c.js → utils-ce5a2d55.js} +1 -1
  775. package/dist/extras/docs-json.json +1 -1
  776. package/dist/loader/cdn.js +1 -1
  777. package/dist/loader/index.cjs.js +1 -1
  778. package/dist/loader/index.es2017.js +1 -1
  779. package/dist/loader/index.js +1 -1
  780. package/dist/types/components/pagination/pagination.d.ts +5 -1
  781. package/dist/types/components/stepper/stepper.d.ts +1 -1
  782. package/hydrate/index.js +103 -18
  783. package/package.json +1 -1
  784. package/dist/calcite/p-0f1320c9.system.js +0 -6
  785. package/dist/calcite/p-180447e0.system.entry.js +0 -6
  786. package/dist/calcite/p-3eaf1dee.js +0 -6
  787. package/dist/calcite/p-6b66cc2b.entry.js +0 -6
  788. package/dist/calcite/p-92c61bf3.js +0 -6
  789. package/dist/calcite/p-a9c41a2f.system.entry.js +0 -6
  790. package/dist/calcite/p-b07f8ce8.entry.js +0 -6
  791. package/dist/calcite/p-b43c94af.entry.js +0 -6
  792. package/dist/calcite/p-c3a8b788.js +0 -6
  793. package/dist/calcite/p-ca6e9d02.system.js +0 -6
  794. package/dist/calcite/p-d11cc50b.entry.js +0 -6
  795. package/dist/calcite/p-f3027aa6.js +0 -6
@@ -1,11 +1,12 @@
1
1
  import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
2
  import { Scale } from "../interfaces";
3
+ import { GlobalAttrComponent } from "../../utils/globalAttributes";
3
4
  export interface PaginationDetail {
4
5
  start: number;
5
6
  total: number;
6
7
  num: number;
7
8
  }
8
- export declare class Pagination {
9
+ export declare class Pagination implements GlobalAttrComponent {
9
10
  /** number of items per page */
10
11
  num: number;
11
12
  /** index of item that should begin the page */
@@ -27,6 +28,7 @@ export declare class Pagination {
27
28
  /** The scale of the pagination */
28
29
  scale: Scale;
29
30
  el: HTMLCalcitePaginationElement;
31
+ globalAttributes: {};
30
32
  /**
31
33
  * Emitted whenever the selected page changes.
32
34
  *
@@ -39,6 +41,8 @@ export declare class Pagination {
39
41
  * @see [PaginationDetail](https://github.com/Esri/calcite-components/blob/master/src/components/pagination/calcite-pagination.tsx#L18)
40
42
  */
41
43
  calcitePaginationChange: EventEmitter<PaginationDetail>;
44
+ connectedCallback(): void;
45
+ disconnectedCallback(): void;
42
46
  /** Go to the next page of results */
43
47
  nextPage(): Promise<void>;
44
48
  /** Go to the previous page of results */
@@ -54,7 +54,7 @@ export declare class Stepper {
54
54
  private stepperContentContainer;
55
55
  private getEnabledStepIndex;
56
56
  private addHorizontalContentContainer;
57
- private emitChangedItem;
57
+ private updateStep;
58
58
  private focusFirstItem;
59
59
  private focusLastItem;
60
60
  private focusNextItem;
package/hydrate/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.472
4
+ * v1.0.0-next.473
5
5
  */
6
6
  'use strict';
7
7
 
@@ -7669,7 +7669,7 @@ function throttle$1(func, wait, options) {
7669
7669
  }
7670
7670
 
7671
7671
  const observed = new Set();
7672
- let mutationObserver;
7672
+ let mutationObserver$1;
7673
7673
  const observerOptions = { childList: true };
7674
7674
  /**
7675
7675
  * Helper to set up a conditional slot component on connectedCallback.
@@ -7677,10 +7677,10 @@ const observerOptions = { childList: true };
7677
7677
  * @param component
7678
7678
  */
7679
7679
  function connectConditionalSlotComponent(component) {
7680
- if (!mutationObserver) {
7681
- mutationObserver = createObserver();
7680
+ if (!mutationObserver$1) {
7681
+ mutationObserver$1 = createObserver();
7682
7682
  }
7683
- mutationObserver.observe(component.el, observerOptions);
7683
+ mutationObserver$1.observe(component.el, observerOptions);
7684
7684
  }
7685
7685
  /**
7686
7686
  * Helper to tear down a conditional slot component on disconnectedCallback.
@@ -7692,13 +7692,13 @@ function disconnectConditionalSlotComponent(component) {
7692
7692
  // we explicitly process queued mutations and disconnect and reconnect
7693
7693
  // the observer until MutationObserver gets an `unobserve` method
7694
7694
  // see https://github.com/whatwg/dom/issues/126
7695
- processMutations(mutationObserver.takeRecords());
7696
- mutationObserver.disconnect();
7695
+ processMutations$1(mutationObserver$1.takeRecords());
7696
+ mutationObserver$1.disconnect();
7697
7697
  for (const [element] of observed.entries()) {
7698
- mutationObserver.observe(element, observerOptions);
7698
+ mutationObserver$1.observe(element, observerOptions);
7699
7699
  }
7700
7700
  }
7701
- function processMutations(mutations) {
7701
+ function processMutations$1(mutations) {
7702
7702
  mutations.forEach(({ target }) => {
7703
7703
  forceUpdate$1(target);
7704
7704
  });
@@ -22474,6 +22474,66 @@ class OptionGroup {
22474
22474
  }; }
22475
22475
  }
22476
22476
 
22477
+ const allowedGlobalAttributes = ["lang"];
22478
+ const elementToComponentAndObserverOptionsMap = new Map();
22479
+ let mutationObserver;
22480
+ function updateGlobalAttributes(component, attributeFilter) {
22481
+ const { el } = component;
22482
+ const updatedAttributes = {};
22483
+ attributeFilter
22484
+ .filter((attr) => !!allowedGlobalAttributes.includes(attr) && !!el.hasAttribute(attr))
22485
+ .forEach((attr) => {
22486
+ const value = el.getAttribute(attr);
22487
+ if (value !== null) {
22488
+ updatedAttributes[attr] = value;
22489
+ }
22490
+ });
22491
+ component.globalAttributes = updatedAttributes;
22492
+ }
22493
+ function processMutations(mutations) {
22494
+ mutations.forEach(({ target }) => {
22495
+ const [component, options] = elementToComponentAndObserverOptionsMap.get(target);
22496
+ updateGlobalAttributes(component, options.attributeFilter);
22497
+ });
22498
+ }
22499
+ /**
22500
+ * Helper to set up listening for changes to global attributes.
22501
+ *
22502
+ * render(): VNode {
22503
+ * const lang = this.inheritedAttributes['lang'] ?? 'en';
22504
+ * return <div>My lang is {lang}</div>;
22505
+ * }
22506
+ *
22507
+ * @param component
22508
+ * @param attributeFilter
22509
+ */
22510
+ function watchGlobalAttributes(component, attributeFilter) {
22511
+ const { el } = component;
22512
+ const observerOptions = { attributeFilter };
22513
+ elementToComponentAndObserverOptionsMap.set(el, [component, observerOptions]);
22514
+ updateGlobalAttributes(component, attributeFilter);
22515
+ if (!mutationObserver) {
22516
+ mutationObserver = createObserver();
22517
+ }
22518
+ mutationObserver.observe(el, observerOptions);
22519
+ }
22520
+ /**
22521
+ * Helper remove listening for changes to inherited attributes.
22522
+ *
22523
+ * @param component
22524
+ */
22525
+ function unwatchGlobalAttributes(component) {
22526
+ elementToComponentAndObserverOptionsMap.delete(component.el);
22527
+ // we explicitly process queued mutations and disconnect and reconnect
22528
+ // the observer until MutationObserver gets an `unobserve` method
22529
+ // see https://github.com/whatwg/dom/issues/126
22530
+ processMutations(mutationObserver.takeRecords());
22531
+ mutationObserver.disconnect();
22532
+ for (const [element, [, observerOptions]] of elementToComponentAndObserverOptionsMap.entries()) {
22533
+ mutationObserver.observe(element, observerOptions);
22534
+ }
22535
+ }
22536
+
22477
22537
  const CSS$l = {
22478
22538
  page: "page",
22479
22539
  selected: "is-selected",
@@ -22522,6 +22582,12 @@ class Pagination {
22522
22582
  this.textLabelPrevious = TEXT$9.previousLabel;
22523
22583
  /** The scale of the pagination */
22524
22584
  this.scale = "m";
22585
+ //--------------------------------------------------------------------------
22586
+ //
22587
+ // State
22588
+ //
22589
+ //--------------------------------------------------------------------------
22590
+ this.globalAttributes = {};
22525
22591
  this.previousClicked = () => {
22526
22592
  this.previousPage().then();
22527
22593
  this.emitUpdate();
@@ -22533,6 +22599,17 @@ class Pagination {
22533
22599
  }
22534
22600
  // --------------------------------------------------------------------------
22535
22601
  //
22602
+ // Lifecycle
22603
+ //
22604
+ // --------------------------------------------------------------------------
22605
+ connectedCallback() {
22606
+ watchGlobalAttributes(this, ["lang"]);
22607
+ }
22608
+ disconnectedCallback() {
22609
+ unwatchGlobalAttributes(this);
22610
+ }
22611
+ // --------------------------------------------------------------------------
22612
+ //
22536
22613
  // Public Methods
22537
22614
  //
22538
22615
  // --------------------------------------------------------------------------
@@ -22609,6 +22686,7 @@ class Pagination {
22609
22686
  return pages.map((page) => this.renderPage(page));
22610
22687
  }
22611
22688
  renderPage(start) {
22689
+ const lang = this.globalAttributes["lang"] || document.documentElement.lang || "en";
22612
22690
  const page = Math.floor(start / this.num) + (this.num === 1 ? 0 : 1);
22613
22691
  return (hAsync("button", { class: {
22614
22692
  [CSS$l.page]: true,
@@ -22616,7 +22694,7 @@ class Pagination {
22616
22694
  }, onClick: () => {
22617
22695
  this.start = start;
22618
22696
  this.emitUpdate();
22619
- } }, page));
22697
+ } }, localizeNumberString(page.toString(), lang, true)));
22620
22698
  }
22621
22699
  renderLeftEllipsis() {
22622
22700
  if (this.total / this.num > maxPagesDisplayed && this.showLeftEllipsis()) {
@@ -22652,6 +22730,7 @@ class Pagination {
22652
22730
  "textLabelNext": [1, "text-label-next"],
22653
22731
  "textLabelPrevious": [1, "text-label-previous"],
22654
22732
  "scale": [513],
22733
+ "globalAttributes": [32],
22655
22734
  "nextPage": [64],
22656
22735
  "previousPage": [64]
22657
22736
  },
@@ -30039,7 +30118,7 @@ class Stepper {
30039
30118
  if (content && item.active) {
30040
30119
  this.requestedContent = content;
30041
30120
  }
30042
- this.itemMap.set(item, position);
30121
+ this.itemMap.set(item, { position, content });
30043
30122
  this.items = this.sortItems();
30044
30123
  this.enabledItems = this.filterItems();
30045
30124
  event.stopPropagation();
@@ -30065,7 +30144,7 @@ class Stepper {
30065
30144
  if (typeof enabledStepIndex !== "number") {
30066
30145
  return;
30067
30146
  }
30068
- this.emitChangedItem(enabledStepIndex);
30147
+ this.updateStep(enabledStepIndex);
30069
30148
  }
30070
30149
  /** set the previous step as active */
30071
30150
  async prevStep() {
@@ -30073,7 +30152,7 @@ class Stepper {
30073
30152
  if (typeof enabledStepIndex !== "number") {
30074
30153
  return;
30075
30154
  }
30076
- this.emitChangedItem(enabledStepIndex);
30155
+ this.updateStep(enabledStepIndex);
30077
30156
  }
30078
30157
  /**
30079
30158
  * set the requested step as active
@@ -30083,7 +30162,7 @@ class Stepper {
30083
30162
  async goToStep(step) {
30084
30163
  const position = step - 1;
30085
30164
  if (this.currentPosition !== position) {
30086
- this.emitChangedItem(position);
30165
+ this.updateStep(position);
30087
30166
  }
30088
30167
  }
30089
30168
  /** set the first step as active */
@@ -30092,7 +30171,7 @@ class Stepper {
30092
30171
  if (typeof enabledStepIndex !== "number") {
30093
30172
  return;
30094
30173
  }
30095
- this.emitChangedItem(enabledStepIndex);
30174
+ this.updateStep(enabledStepIndex);
30096
30175
  }
30097
30176
  /** set the last step as active */
30098
30177
  async endStep() {
@@ -30100,7 +30179,7 @@ class Stepper {
30100
30179
  if (typeof enabledStepIndex !== "number") {
30101
30180
  return;
30102
30181
  }
30103
- this.emitChangedItem(enabledStepIndex);
30182
+ this.updateStep(enabledStepIndex);
30104
30183
  }
30105
30184
  //--------------------------------------------------------------------------
30106
30185
  //
@@ -30123,8 +30202,14 @@ class Stepper {
30123
30202
  this.stepperContentContainer.classList.add("calcite-stepper-content");
30124
30203
  this.el.insertAdjacentElement("beforeend", this.stepperContentContainer);
30125
30204
  }
30126
- emitChangedItem(position) {
30205
+ updateStep(position) {
30206
+ var _a;
30207
+ const { itemMap, items } = this;
30127
30208
  this.currentPosition = position;
30209
+ const content = (_a = itemMap.get(items[position])) === null || _a === void 0 ? void 0 : _a.content;
30210
+ if (content) {
30211
+ this.requestedContent = content;
30212
+ }
30128
30213
  this.calciteInternalStepperItemChange.emit({
30129
30214
  position
30130
30215
  });
@@ -30155,7 +30240,7 @@ class Stepper {
30155
30240
  }
30156
30241
  sortItems() {
30157
30242
  const { itemMap } = this;
30158
- return Array.from(itemMap.keys()).sort((a, b) => itemMap.get(a) - itemMap.get(b));
30243
+ return Array.from(itemMap.keys()).sort((a, b) => itemMap.get(a).position - itemMap.get(b).position);
30159
30244
  }
30160
30245
  filterItems() {
30161
30246
  return this.items.filter((item) => !item.disabled);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-components",
3
- "version": "1.0.0-next.472",
3
+ "version": "1.0.0-next.473",
4
4
  "description": "Web Components for Esri's Calcite Design System.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.472
5
- */
6
- System.register(["./p-64713b72.system.js","./p-3cb4c01c.system.js"],(function(e){"use strict";var t,n;return{setters:[function(e){t=e.f},function(e){n=e.c}],execute:function(){e({c:i,d:o});var r=new Set;var c;var s={childList:true};function i(e){if(!c){c=n("mutation",u)}c.observe(e.el,s)}function o(e){r.delete(e.el);u(c.takeRecords());c.disconnect();for(var t=0,n=r.entries();t<n.length;t++){var i=n[t][0];c.observe(i,s)}}function u(e){e.forEach((function(e){var n=e.target;t(n)}))}}}}));
@@ -1,6 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{c(n.next(t))}catch(t){r(t)}}function s(t){try{c(n["throw"](t))}catch(t){r(t)}}function c(t){t.done?i(t.value):a(t.value).then(o,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];a=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- * v1.0.0-next.472
6
- */System.register(["./p-64713b72.system.js","./p-e1ea6719.system.js","./p-2de5ec1d.system.js","./p-12909387.system.js"],(function(t){"use strict";var e,i,n,a,r,o,s,c;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.g;r=t.H},function(t){o=t.d;s=t.t},function(t){c=t.u},function(){}],execute:function(){var l="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex;width:100%;min-width:100%;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:justify;justify-content:space-between}:host([layout=vertical]){-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column}:host ::slotted(.calcite-stepper-content){display:-ms-flexbox;display:flex;width:100%;min-width:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap}";var p=t("calcite_stepper",function(){function t(t){e(this,t);this.calciteInternalStepperItemChange=i(this,"calciteInternalStepperItemChange",7);this.icon=false;this.layout="horizontal";this.numbered=false;this.scale="m";this.itemMap=new Map;this.items=[];this.enabledItems=[]}t.prototype.contentWatcher=function(){if(this.layout==="horizontal"){if(!this.stepperContentContainer&&this.requestedContent){this.addHorizontalContentContainer()}this.updateContent(this.requestedContent)}};t.prototype.componentDidLoad=function(){if(!this.currentPosition){this.calciteInternalStepperItemChange.emit({position:0})}};t.prototype.componentWillLoad=function(){if(this.layout==="horizontal"&&!this.stepperContentContainer){this.addHorizontalContentContainer()}};t.prototype.render=function(){return n("slot",null)};t.prototype.calciteInternalStepperItemKeyEvent=function(t){var e=t.detail.item;var i=t.target;var n=this.itemIndex(i)===0;var a=this.itemIndex(i)===this.enabledItems.length-1;switch(e.key){case"ArrowDown":case"ArrowRight":if(a){this.focusFirstItem()}else{this.focusNextItem(i)}break;case"ArrowUp":case"ArrowLeft":if(n){this.focusLastItem()}else{this.focusPrevItem(i)}break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}t.stopPropagation()};t.prototype.registerItem=function(t){var e=t.target;var i=t.detail,n=i.content,a=i.position;if(n&&e.active){this.requestedContent=n}this.itemMap.set(e,a);this.items=this.sortItems();this.enabledItems=this.filterItems();t.stopPropagation()};t.prototype.updateItem=function(t){if(t.detail.content){this.requestedContent=t.detail.content}this.currentPosition=t.detail.position;this.calciteInternalStepperItemChange.emit({position:this.currentPosition});t.stopPropagation()};t.prototype.nextStep=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.getEnabledStepIndex(this.currentPosition+1,"next");if(typeof t!=="number"){return[2]}this.emitChangedItem(t);return[2]}))}))};t.prototype.prevStep=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.getEnabledStepIndex(this.currentPosition-1,"previous");if(typeof t!=="number"){return[2]}this.emitChangedItem(t);return[2]}))}))};t.prototype.goToStep=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){e=t-1;if(this.currentPosition!==e){this.emitChangedItem(e)}return[2]}))}))};t.prototype.startStep=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.getEnabledStepIndex(0,"next");if(typeof t!=="number"){return[2]}this.emitChangedItem(t);return[2]}))}))};t.prototype.endStep=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.getEnabledStepIndex(this.items.length-1,"previous");if(typeof t!=="number"){return[2]}this.emitChangedItem(t);return[2]}))}))};t.prototype.getEnabledStepIndex=function(t,e){if(e===void 0){e="next"}var i;var n=this,a=n.items,r=n.currentPosition;var o=t;while((i=a[o])===null||i===void 0?void 0:i.disabled){o=o+(e==="previous"?-1:1)}return o!==r&&o<a.length&&o>=0?o:null};t.prototype.addHorizontalContentContainer=function(){this.stepperContentContainer=document.createElement("div");this.stepperContentContainer.classList.add("calcite-stepper-content");this.el.insertAdjacentElement("beforeend",this.stepperContentContainer)};t.prototype.emitChangedItem=function(t){this.currentPosition=t;this.calciteInternalStepperItemChange.emit({position:t})};t.prototype.focusFirstItem=function(){var t=this.enabledItems[0];this.focusElement(t)};t.prototype.focusLastItem=function(){var t=this.enabledItems[this.enabledItems.length-1];this.focusElement(t)};t.prototype.focusNextItem=function(t){var e=this.itemIndex(t);var i=this.enabledItems[e+1]||this.enabledItems[0];this.focusElement(i)};t.prototype.focusPrevItem=function(t){var e=this.itemIndex(t);var i=this.enabledItems[e-1]||this.enabledItems[this.enabledItems.length-1];this.focusElement(i)};t.prototype.itemIndex=function(t){return this.enabledItems.indexOf(t)};t.prototype.focusElement=function(t){t.focus()};t.prototype.sortItems=function(){var t=this.itemMap;return Array.from(t.keys()).sort((function(e,i){return t.get(e)-t.get(i)}))};t.prototype.filterItems=function(){return this.items.filter((function(t){return!t.disabled}))};t.prototype.updateContent=function(t){var e;this.stepperContentContainer.innerHTML="";(e=this.stepperContentContainer).append.apply(e,t)};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{requestedContent:["contentWatcher"]}},enumerable:false,configurable:true});return t}());p.style=l;var m="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-margin-end:0.25rem;margin-inline-end:0.25rem}:host([scale=s]) .stepper-item-subtitle{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .stepper-item-subtitle{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .stepper-item-subtitle{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:start;align-self:flex-start;margin-bottom:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;cursor:pointer;-ms-flex-direction:column;flex-direction:column;border-width:0px;border-top-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host .stepper-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:start;align-items:flex-start}:host .stepper-item-content,:host .stepper-item-header{-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);-webkit-padding-end:var(--calcite-stepper-item-spacing-unit-m);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-content{display:none;width:100%;-ms-flex-direction:column;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-top:1px;display:-ms-inline-flexbox;display:inline-flex;height:0.75rem;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-header-text{-ms-flex-direction:column;flex-direction:column;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .stepper-item-title,:host .stepper-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .stepper-item-title{margin-bottom:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .stepper-item-subtitle{color:var(--calcite-ui-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([complete]) .container .stepper-item-icon{color:var(--calcite-ui-brand)}:host([error]) .container{border-top-color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-ui-danger)}:host(:hover:not([disabled]):not([active])) .container,:host(:focus:not([disabled]):not([active])) .container{border-top-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-title,:host(:focus:not([disabled]):not([active])) .container .stepper-item-title{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-subtitle,:host(:focus:not([disabled]):not([active])) .container .stepper-item-subtitle{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([active])) .container,:host([error]:focus:not([disabled]):not([active])) .container{border-top-color:var(--calcite-ui-danger-hover)}:host([active]) .container{border-top-color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-title{color:var(--calcite-ui-text-1)}:host([active]) .container .stepper-item-subtitle{color:var(--calcite-ui-text-2)}:host([active]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([layout=vertical]) .container{margin-left:0px;margin-right:0px;margin-top:0px;-ms-flex:1 1 auto;flex:1 1 auto;border-top-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0px;padding-bottom:0px;border-inline-start-width:2px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-l);padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{-ms-flex-order:3;order:3;margin-top:1px;margin-bottom:0px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-s);padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);-webkit-margin-start:auto;margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{-webkit-padding-end:0px;padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0px}:host([layout=vertical][active]) .container .stepper-item-content{display:-ms-flexbox;display:flex}:host([layout=vertical][active]) .container .stepper-item-content ::slotted(:last-child){margin-bottom:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical][complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][complete]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][active]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical]:hover:not([disabled]):not([active])) .container,:host([layout=vertical]:focus:not([disabled]):not([active])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([active]) .container{border-top-color:highlight}:host([active]) .container .stepper-item-number{color:highlight}:host([active]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][active]) .container{border-color:highlight}}";var u=t("calcite_stepper_item",function(){function t(t){var n=this;e(this,t);this.calciteInternalStepperItemKeyEvent=i(this,"calciteInternalStepperItemKeyEvent",7);this.calciteInternalStepperItemSelect=i(this,"calciteInternalStepperItemSelect",7);this.calciteInternalStepperItemRegister=i(this,"calciteInternalStepperItemRegister",7);this.active=false;this.complete=false;this.error=false;this.disabled=false;this.icon=false;this.numbered=false;this.scale="m";this.keyDownHandler=function(t){if(!n.disabled&&t.target===n.el){switch(t.key){case" ":case"Enter":n.emitRequestedItem();t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":n.calciteInternalStepperItemKeyEvent.emit({item:t});t.preventDefault();break}}};this.emitRequestedItem=function(){if(!n.disabled){n.calciteInternalStepperItemSelect.emit({position:n.itemPosition,content:n.itemContent})}};this.setItemContent=function(t){n.itemPosition=n.getItemPosition();var e=t.target.assignedNodes({flatten:true});if(e.length){n.itemContent=e}n.registerStepperItem();if(n.active){n.emitRequestedItem()}}}t.prototype.disabledWatcher=function(){this.registerStepperItem()};t.prototype.componentWillLoad=function(){this.icon=o(this.el,"icon",false);this.numbered=o(this.el,"numbered",false);this.layout=o(this.el,"layout",false);this.scale=o(this.el,"scale","m");this.parentStepperEl=this.el.parentElement};t.prototype.componentDidRender=function(){c(this,true)};t.prototype.render=function(){return n(r,{"aria-expanded":s(this.active),onClick:this.emitRequestedItem,onKeyDown:this.keyDownHandler},n("div",{class:"container"},n("div",{class:"stepper-item-header"},this.icon?this.renderIcon():null,this.numbered?n("div",{class:"stepper-item-number"},this.getItemPosition()+1,"."):null,n("div",{class:"stepper-item-header-text"},n("span",{class:"stepper-item-title"},this.itemTitle),n("span",{class:"stepper-item-subtitle"},this.itemSubtitle))),n("div",{class:"stepper-item-content"},n("slot",{onSlotchange:this.setItemContent}))))};t.prototype.updateActiveItemOnChange=function(t){if(t.target===this.parentStepperEl||t.composedPath().includes(this.parentStepperEl)){this.activePosition=t.detail.position;this.determineActiveItem()}t.stopPropagation()};t.prototype.renderIcon=function(){var t=this.active?"circleF":this.error?"exclamationMarkCircleF":this.complete?"checkCircleF":"circle";return n("calcite-icon",{class:"stepper-item-icon",icon:t,scale:"s"})};t.prototype.determineActiveItem=function(){this.active=!this.disabled&&this.itemPosition===this.activePosition};t.prototype.registerStepperItem=function(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition,content:this.itemContent})};t.prototype.getItemPosition=function(){return Array.prototype.indexOf.call(this.parentStepperEl.querySelectorAll("calcite-stepper-item"),this.el)};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledWatcher"]}},enumerable:false,configurable:true});return t}());u.style=m}}}));
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.472
5
- */
6
- import{c as n}from"./p-8ec0cf1c.js";import{h as t}from"./p-79797faa.js";function e(n){return"checked"in n}const o=new WeakMap,i=new WeakSet;function r(n){var t;null===(t=n.formEl)||void 0===t||t.requestSubmit()}function s(n){var t;null===(t=n.formEl)||void 0===t||t.reset()}function c(t){const{el:r,value:s}=t,c=n(r,"form");if(!c||function(n,t){const e="calciteInternalFormComponentRegister";let o=!1;return n.addEventListener(e,(n=>{o=n.composedPath().some((n=>i.has(n))),n.stopPropagation()}),{once:!0}),t.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0})),o}(c,r))return;t.formEl=c,t.defaultValue=s,e(t)&&(t.defaultChecked=t.checked);const l=(t.onFormReset||u).bind(t);c.addEventListener("reset",l),o.set(t.el,l),i.add(r)}function u(){e(this)?this.checked=this.defaultChecked:this.value=this.defaultValue}function l(n){const{el:t,formEl:e}=n;if(!e)return;const r=o.get(t);e.removeEventListener("reset",r),o.delete(t),n.formEl=null,i.delete(t)}function a(n,t){n.defaultValue=t}function f(n,t,o){var i;const{defaultValue:r,disabled:s,name:c,required:u}=n;t.defaultValue=r,t.disabled=s,t.name=c,t.required=u,t.tabIndex=-1,e(n)?(t.defaultChecked=n.defaultChecked,t.value=n.checked?o||"on":"",s||n.checked||(t.disabled=!0)):t.value=o||"",null===(i=n.syncHiddenFormInput)||void 0===i||i.call(n,t)}const m=({component:n})=>(function(n){const{el:t,formEl:e,name:o,value:i}=n,{ownerDocument:r}=t,s=t.querySelectorAll('input[slot="hidden-form-input"]');if(!e||!o)return void s.forEach((n=>n.remove()));const c=Array.isArray(i)?i:[i],u=[],l=new Set;let a;s.forEach((t=>{const e=c.find((n=>n==t.value));null!=e?(l.add(e),f(n,t,e)):u.push(t)})),c.forEach((t=>{if(l.has(t))return;let e=u.pop();e||(e=r.createElement("input"),e.slot="hidden-form-input"),a||(a=r.createDocumentFragment()),a.append(e),f(n,e,t)})),a&&t.append(a),u.forEach((n=>n.remove()))}(n),t("slot",{name:"hidden-form-input"}));export{m as H,a,c,l as d,s as r,r as s}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.472
5
- */
6
- import{r as t,c as i,h as e,g as a,H as n}from"./p-79797faa.js";import{d as r,t as o}from"./p-8ec0cf1c.js";import{u as s}from"./p-b6264214.js";import"./p-3145b36b.js";const c=class{constructor(e){t(this,e),this.calciteInternalStepperItemChange=i(this,"calciteInternalStepperItemChange",7),this.icon=!1,this.layout="horizontal",this.numbered=!1,this.scale="m",this.itemMap=new Map,this.items=[],this.enabledItems=[]}contentWatcher(){"horizontal"===this.layout&&(!this.stepperContentContainer&&this.requestedContent&&this.addHorizontalContentContainer(),this.updateContent(this.requestedContent))}componentDidLoad(){this.currentPosition||this.calciteInternalStepperItemChange.emit({position:0})}componentWillLoad(){"horizontal"!==this.layout||this.stepperContentContainer||this.addHorizontalContentContainer()}render(){return e("slot",null)}calciteInternalStepperItemKeyEvent(t){const i=t.detail.item,e=t.target,a=0===this.itemIndex(e),n=this.itemIndex(e)===this.enabledItems.length-1;switch(i.key){case"ArrowDown":case"ArrowRight":n?this.focusFirstItem():this.focusNextItem(e);break;case"ArrowUp":case"ArrowLeft":a?this.focusLastItem():this.focusPrevItem(e);break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem()}t.stopPropagation()}registerItem(t){const i=t.target,{content:e,position:a}=t.detail;e&&i.active&&(this.requestedContent=e),this.itemMap.set(i,a),this.items=this.sortItems(),this.enabledItems=this.filterItems(),t.stopPropagation()}updateItem(t){t.detail.content&&(this.requestedContent=t.detail.content),this.currentPosition=t.detail.position,this.calciteInternalStepperItemChange.emit({position:this.currentPosition}),t.stopPropagation()}async nextStep(){const t=this.getEnabledStepIndex(this.currentPosition+1,"next");"number"==typeof t&&this.emitChangedItem(t)}async prevStep(){const t=this.getEnabledStepIndex(this.currentPosition-1,"previous");"number"==typeof t&&this.emitChangedItem(t)}async goToStep(t){const i=t-1;this.currentPosition!==i&&this.emitChangedItem(i)}async startStep(){const t=this.getEnabledStepIndex(0,"next");"number"==typeof t&&this.emitChangedItem(t)}async endStep(){const t=this.getEnabledStepIndex(this.items.length-1,"previous");"number"==typeof t&&this.emitChangedItem(t)}getEnabledStepIndex(t,i="next"){var e;const{items:a,currentPosition:n}=this;let r=t;for(;null===(e=a[r])||void 0===e?void 0:e.disabled;)r+="previous"===i?-1:1;return r!==n&&r<a.length&&r>=0?r:null}addHorizontalContentContainer(){this.stepperContentContainer=document.createElement("div"),this.stepperContentContainer.classList.add("calcite-stepper-content"),this.el.insertAdjacentElement("beforeend",this.stepperContentContainer)}emitChangedItem(t){this.currentPosition=t,this.calciteInternalStepperItemChange.emit({position:t})}focusFirstItem(){this.focusElement(this.enabledItems[0])}focusLastItem(){this.focusElement(this.enabledItems[this.enabledItems.length-1])}focusNextItem(t){const i=this.itemIndex(t);this.focusElement(this.enabledItems[i+1]||this.enabledItems[0])}focusPrevItem(t){const i=this.itemIndex(t);this.focusElement(this.enabledItems[i-1]||this.enabledItems[this.enabledItems.length-1])}itemIndex(t){return this.enabledItems.indexOf(t)}focusElement(t){t.focus()}sortItems(){const{itemMap:t}=this;return Array.from(t.keys()).sort(((i,e)=>t.get(i)-t.get(e)))}filterItems(){return this.items.filter((t=>!t.disabled))}updateContent(t){this.stepperContentContainer.innerHTML="",this.stepperContentContainer.append(...t)}get el(){return a(this)}static get watchers(){return{requestedContent:["contentWatcher"]}}};c.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex;width:100%;min-width:100%;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:justify;justify-content:space-between}:host([layout=vertical]){-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column}:host ::slotted(.calcite-stepper-content){display:-ms-flexbox;display:flex;width:100%;min-width:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap}";const l=class{constructor(e){t(this,e),this.calciteInternalStepperItemKeyEvent=i(this,"calciteInternalStepperItemKeyEvent",7),this.calciteInternalStepperItemSelect=i(this,"calciteInternalStepperItemSelect",7),this.calciteInternalStepperItemRegister=i(this,"calciteInternalStepperItemRegister",7),this.active=!1,this.complete=!1,this.error=!1,this.disabled=!1,this.icon=!1,this.numbered=!1,this.scale="m",this.keyDownHandler=t=>{if(!this.disabled&&t.target===this.el)switch(t.key){case" ":case"Enter":this.emitRequestedItem(),t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.calciteInternalStepperItemKeyEvent.emit({item:t}),t.preventDefault()}},this.emitRequestedItem=()=>{this.disabled||this.calciteInternalStepperItemSelect.emit({position:this.itemPosition,content:this.itemContent})},this.setItemContent=t=>{this.itemPosition=this.getItemPosition();const i=t.target.assignedNodes({flatten:!0});i.length&&(this.itemContent=i),this.registerStepperItem(),this.active&&this.emitRequestedItem()}}disabledWatcher(){this.registerStepperItem()}componentWillLoad(){this.icon=r(this.el,"icon",!1),this.numbered=r(this.el,"numbered",!1),this.layout=r(this.el,"layout",!1),this.scale=r(this.el,"scale","m"),this.parentStepperEl=this.el.parentElement}componentDidRender(){s(this,!0)}render(){return e(n,{"aria-expanded":o(this.active),onClick:this.emitRequestedItem,onKeyDown:this.keyDownHandler},e("div",{class:"container"},e("div",{class:"stepper-item-header"},this.icon?this.renderIcon():null,this.numbered?e("div",{class:"stepper-item-number"},this.getItemPosition()+1,"."):null,e("div",{class:"stepper-item-header-text"},e("span",{class:"stepper-item-title"},this.itemTitle),e("span",{class:"stepper-item-subtitle"},this.itemSubtitle))),e("div",{class:"stepper-item-content"},e("slot",{onSlotchange:this.setItemContent}))))}updateActiveItemOnChange(t){(t.target===this.parentStepperEl||t.composedPath().includes(this.parentStepperEl))&&(this.activePosition=t.detail.position,this.determineActiveItem()),t.stopPropagation()}renderIcon(){return e("calcite-icon",{class:"stepper-item-icon",icon:this.active?"circleF":this.error?"exclamationMarkCircleF":this.complete?"checkCircleF":"circle",scale:"s"})}determineActiveItem(){this.active=!this.disabled&&this.itemPosition===this.activePosition}registerStepperItem(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition,content:this.itemContent})}getItemPosition(){return Array.prototype.indexOf.call(this.parentStepperEl.querySelectorAll("calcite-stepper-item"),this.el)}get el(){return a(this)}static get watchers(){return{disabled:["disabledWatcher"]}}};l.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-margin-end:0.25rem;margin-inline-end:0.25rem}:host([scale=s]) .stepper-item-subtitle{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .stepper-item-subtitle{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .stepper-item-subtitle{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:start;align-self:flex-start;margin-bottom:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;cursor:pointer;-ms-flex-direction:column;flex-direction:column;border-width:0px;border-top-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host .stepper-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:start;align-items:flex-start}:host .stepper-item-content,:host .stepper-item-header{-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);-webkit-padding-end:var(--calcite-stepper-item-spacing-unit-m);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-content{display:none;width:100%;-ms-flex-direction:column;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-top:1px;display:-ms-inline-flexbox;display:inline-flex;height:0.75rem;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-header-text{-ms-flex-direction:column;flex-direction:column;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .stepper-item-title,:host .stepper-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .stepper-item-title{margin-bottom:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .stepper-item-subtitle{color:var(--calcite-ui-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([complete]) .container .stepper-item-icon{color:var(--calcite-ui-brand)}:host([error]) .container{border-top-color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-ui-danger)}:host(:hover:not([disabled]):not([active])) .container,:host(:focus:not([disabled]):not([active])) .container{border-top-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-title,:host(:focus:not([disabled]):not([active])) .container .stepper-item-title{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-subtitle,:host(:focus:not([disabled]):not([active])) .container .stepper-item-subtitle{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([active])) .container,:host([error]:focus:not([disabled]):not([active])) .container{border-top-color:var(--calcite-ui-danger-hover)}:host([active]) .container{border-top-color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-title{color:var(--calcite-ui-text-1)}:host([active]) .container .stepper-item-subtitle{color:var(--calcite-ui-text-2)}:host([active]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([layout=vertical]) .container{margin-left:0px;margin-right:0px;margin-top:0px;-ms-flex:1 1 auto;flex:1 1 auto;border-top-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-top:0px;padding-bottom:0px;border-inline-start-width:2px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-l);padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{-ms-flex-order:3;order:3;margin-top:1px;margin-bottom:0px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-s);padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);-webkit-margin-start:auto;margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{-webkit-padding-end:0px;padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0px}:host([layout=vertical][active]) .container .stepper-item-content{display:-ms-flexbox;display:flex}:host([layout=vertical][active]) .container .stepper-item-content ::slotted(:last-child){margin-bottom:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical][complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][complete]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][active]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical]:hover:not([disabled]):not([active])) .container,:host([layout=vertical]:focus:not([disabled]):not([active])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([active]) .container{border-top-color:highlight}:host([active]) .container .stepper-item-number{color:highlight}:host([active]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][active]) .container{border-color:highlight}}";export{c as calcite_stepper,l as calcite_stepper_item}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.472
5
- */
6
- import{h as t}from"./p-79797faa.js";function a(t){return Math.min(Math.max(Math.ceil(t),1),6)}const e=(a,e)=>{const r=`h${a.level}`;return delete a.level,t(r,Object.assign({},a),e)};export{e as H,a as c}
@@ -1,6 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,i,e,a){function n(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,r){function s(t){try{l(a.next(t))}catch(t){r(t)}}function o(t){try{l(a["throw"](t))}catch(t){r(t)}}function l(t){t.done?e(t.value):n(t.value).then(s,o)}l((a=a.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,n,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(i){return l([t,i])}}function l(s){if(a)throw new TypeError("Generator is already executing.");while(e)try{if(a=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;n=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1];r=s;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(s);break}if(r[2])e.ops.pop();e.trys.pop();continue}s=i.call(t,e)}catch(t){s=[6,t];n=0}finally{a=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
- /*!
3
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- * v1.0.0-next.472
6
- */System.register(["./p-64713b72.system.js"],(function(t){"use strict";var i,e,a,n,r;return{setters:[function(t){i=t.r;e=t.c;a=t.h;n=t.F;r=t.g}],execute:function(){var s={page:"page",selected:"is-selected",previous:"previous",next:"next",disabled:"is-disabled",ellipsis:"ellipsis",ellipsisStart:"ellipsis--start",ellipsisEnd:"ellipsis--end"};var o={nextLabel:"Next",previousLabel:"Previous"};var l="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-pagination-spacing:0.25rem 0.5rem}:host([scale=s]) .previous,:host([scale=s]) .next,:host([scale=s]) .page{height:1.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .previous,:host([scale=s]) .next{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]){--calcite-pagination-spacing:0.5rem 0.75rem}:host([scale=m]) .previous,:host([scale=m]) .next,:host([scale=m]) .page{height:2rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .previous,:host([scale=m]) .next{padding-left:0.5rem;padding-right:0.5rem}:host([scale=l]){--calcite-pagination-spacing:0.75rem 1rem}:host([scale=l]) .previous,:host([scale=l]) .next,:host([scale=l]) .page{height:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .previous,:host([scale=l]) .next{padding-left:1rem;padding-right:1rem}:host{display:-ms-flexbox;display:flex;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb}:host button{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.previous,.next,.page{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;border-style:none;--tw-border-opacity:0;background-color:transparent;font-family:inherit;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-ui-text-3);border-top:2px solid transparent;border-bottom:2px solid transparent}.previous:hover,.next:hover,.page:hover{color:var(--calcite-ui-text-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.page:hover{border-bottom-color:var(--calcite-ui-border-2)}.page.is-selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);border-bottom-color:var(--calcite-ui-brand)}.previous:hover,.next:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-brand)}.previous:active,.next:active{background-color:var(--calcite-ui-foreground-3)}.previous.is-disabled,.next.is-disabled{pointer-events:none;background-color:transparent}.previous.is-disabled>calcite-icon,.next.is-disabled>calcite-icon{opacity:var(--calcite-ui-opacity-disabled)}.next{margin-right:0px}.page,.ellipsis{padding:var(--calcite-pagination-spacing)}.ellipsis{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;color:var(--calcite-ui-text-3)}";var c=5;var u=t("calcite_pagination",function(){function t(t){var a=this;i(this,t);this.calcitePaginationUpdate=e(this,"calcitePaginationUpdate",7);this.calcitePaginationChange=e(this,"calcitePaginationChange",7);this.num=20;this.start=1;this.total=0;this.textLabelNext=o.nextLabel;this.textLabelPrevious=o.previousLabel;this.scale="m";this.previousClicked=function(){a.previousPage().then();a.emitUpdate()};this.nextClicked=function(){a.nextPage();a.emitUpdate()}}t.prototype.nextPage=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.start=Math.min(this.getLastStart(),this.start+this.num);return[2]}))}))};t.prototype.previousPage=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.start=Math.max(1,this.start-this.num);return[2]}))}))};t.prototype.getLastStart=function(){var t=this,i=t.total,e=t.num;var a=i%e===0?i-e:Math.floor(i/e)*e;return a+1};t.prototype.showLeftEllipsis=function(){return Math.floor(this.start/this.num)>3};t.prototype.showRightEllipsis=function(){return(this.total-this.start)/this.num>3};t.prototype.emitUpdate=function(){var t={start:this.start,total:this.total,num:this.num};this.calcitePaginationChange.emit(t);this.calcitePaginationUpdate.emit(t)};t.prototype.renderPages=function(){var t=this;var i=this.getLastStart();var e;var a;if(this.total/this.num<=c){a=1+this.num;e=i-this.num}else{if(this.start/this.num<c-1){a=1+this.num;e=1+4*this.num}else{if(this.start+3*this.num>=this.total){a=i-4*this.num;e=i-this.num}else{a=this.start-this.num;e=this.start+this.num}}}var n=[];while(a<=e){n.push(a);a=a+this.num}return n.map((function(i){return t.renderPage(i)}))};t.prototype.renderPage=function(t){var i;var e=this;var n=Math.floor(t/this.num)+(this.num===1?0:1);return a("button",{class:(i={},i[s.page]=true,i[s.selected]=t===this.start,i),onClick:function(){e.start=t;e.emitUpdate()}},n)};t.prototype.renderLeftEllipsis=function(){if(this.total/this.num>c&&this.showLeftEllipsis()){return a("span",{class:"".concat(s.ellipsis," ").concat(s.ellipsisStart)},"…")}};t.prototype.renderRightEllipsis=function(){if(this.total/this.num>c&&this.showRightEllipsis()){return a("span",{class:"".concat(s.ellipsis," ").concat(s.ellipsisEnd)},"…")}};t.prototype.render=function(){var t,i;var e=this,r=e.total,o=e.num,l=e.start;var c=o===1?l<=o:l<o;var u=o===1?l+o>r:l+o>r;return a(n,null,a("button",{"aria-label":this.textLabelPrevious,class:(t={},t[s.previous]=true,t[s.disabled]=c,t),disabled:c,onClick:this.previousClicked},a("calcite-icon",{flipRtl:true,icon:"chevronLeft",scale:"s"})),r>o?this.renderPage(1):null,this.renderLeftEllipsis(),this.renderPages(),this.renderRightEllipsis(),this.renderPage(this.getLastStart()),a("button",{"aria-label":this.textLabelNext,class:(i={},i[s.next]=true,i[s.disabled]=u,i),disabled:u,onClick:this.nextClicked},a("calcite-icon",{flipRtl:true,icon:"chevronRight",scale:"s"})))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());u.style=l}}}));
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.472
5
- */
6
- import{r as t,c as i,h as e,F as a,g as n}from"./p-79797faa.js";import{C as s,I as o,S as l}from"./p-89517200.js";import{g as r,t as c,f as m}from"./p-8ec0cf1c.js";import{g as h}from"./p-11f492cd.js";import{g as p}from"./p-3145b36b.js";import{c as u}from"./p-8eebc13a.js";import{c as f,d}from"./p-f3027aa6.js";const b=["ArrowUp","ArrowDown"],x=["ArrowUp","ArrowDown","End","Home"],k=class{constructor(e){t(this,e),this.calciteActionMenuOpenChange=i(this,"calciteActionMenuOpenChange",7),this.expanded=!1,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.actionElements=[],this.mutationObserver=u("mutation",(()=>this.getActions())),this.guid=`calcite-action-menu-${p()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.activeMenuItemIndex=-1,this.connectMenuButtonEl=()=>{const{el:t,menuButtonId:i,menuId:e,open:a,label:n}=this,s=r(t,l.trigger)||this.defaultMenuButtonEl;this.menuButtonEl!==s&&(this.disconnectMenuButtonEl(),this.menuButtonEl=s,this.setTooltipReferenceElement(),s&&(s.active=a,s.setAttribute("aria-controls",e),s.setAttribute("aria-expanded",c(a)),s.setAttribute("aria-haspopup","true"),s.id||(s.id=i),s.label||(s.label=n),s.text||(s.text=n),s.addEventListener("click",this.menuButtonClick),s.addEventListener("keydown",this.menuButtonKeyDown),s.addEventListener("keyup",this.menuButtonKeyUp)))},this.disconnectMenuButtonEl=()=>{const{menuButtonEl:t}=this;t&&(t.removeEventListener("click",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown),t.removeEventListener("keyup",this.menuButtonKeyUp))},this.setDefaultMenuButtonEl=t=>{this.defaultMenuButtonEl=t,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=()=>{this.toggleOpen()},this.updateTooltip=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-tooltip")));this.tooltipEl=i[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{const{tooltipEl:t,expanded:i,menuButtonEl:e}=this;t&&(t.referenceElement=i?null:e)},this.updateAction=(t,i)=>{const{guid:e,activeMenuItemIndex:a}=this,n=`${e}-action-${i}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=n),t.active=i===a},this.updateActions=t=>{null==t||t.forEach(this.updateAction)},this.getActions=()=>{const{el:t}=this,i=r(t,{all:!0,matches:"calcite-action"});this.updateActions(i),this.actionElements=i,this.connectMenuButtonEl()},this.menuButtonKeyUp=t=>{const{key:i}=t,{actionElements:e}=this;this.isValidKey(i,b)&&(t.preventDefault(),e.length&&(this.toggleOpen(!0),this.handleActionNavigation(i,e)))},this.menuButtonKeyDown=t=>{const{key:i}=t;this.isValidKey(i,b)&&t.preventDefault()},this.menuActionsContainerKeyDown=t=>{const{key:i}=t,{actionElements:e,activeMenuItemIndex:a}=this;if("Tab"!==i)if(" "!==i&&"Enter"!==i)this.isValidKey(i,x)&&t.preventDefault();else{t.preventDefault();const i=e[a];i?i.click():this.toggleOpen(!1)}else this.open=!1},this.menuActionsContainerKeyUp=t=>{const{key:i}=t,{actionElements:e}=this;"Escape"!==i?this.isValidKey(i,x)&&(t.preventDefault(),e.length&&this.handleActionNavigation(i,e)):this.toggleOpen(!1)},this.handleActionNavigation=(t,i)=>{const e=this.activeMenuItemIndex;"Home"===t&&(this.activeMenuItemIndex=0),"End"===t&&(this.activeMenuItemIndex=i.length-1),"ArrowUp"===t&&(this.activeMenuItemIndex=h(Math.max(e-1,-1),i.length)),"ArrowDown"===t&&(this.activeMenuItemIndex=h(e+1,i.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(t=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=t}}connectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0}),this.getActions(),f(this)}disconnectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect(),this.disconnectMenuButtonEl(),d(this)}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=t),this.calciteActionMenuOpenChange.emit(t)}closeCalciteActionMenuOnClick(t){t.composedPath().includes(this.el)||(this.open=!1)}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){m(this.open?this.menuEl:this.menuButtonEl)}renderMenuButton(){const{label:t,scale:i}=this;return e("slot",{name:l.trigger},e("calcite-action",{class:s.defaultTrigger,icon:o.menu,ref:this.setDefaultMenuButtonEl,scale:i,text:t}))}renderMenuItems(){const{actionElements:t,activeMenuItemIndex:i,open:a,menuId:n,menuButtonEl:o,label:l,placement:r,overlayPositioning:c,flipPlacements:m}=this,h=t[i];return e("calcite-popover",{disablePointer:!0,flipPlacements:m,label:l,offsetDistance:0,open:a,overlayPositioning:c,placement:r,referenceElement:o},e("div",{"aria-activedescendant":(null==h?void 0:h.id)||null,"aria-labelledby":null==o?void 0:o.id,class:s.menu,id:n,onClick:this.handleCalciteActionClick,onKeyDown:this.menuActionsContainerKeyDown,onKeyUp:this.menuActionsContainerKeyUp,ref:t=>this.menuEl=t,role:"menu",tabIndex:-1},e("slot",null)))}render(){return e(a,null,this.renderMenuButton(),this.renderMenuItems(),e("slot",{name:l.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(t,i){return!!i.find((i=>i===t))}get el(){return n(this)}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}};k.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:-ms-flexbox;display:flex;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";export{k as calcite_action_menu}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.472
5
- */
6
- import{r as t,c as a,h as i,H as n,g as o}from"./p-79797faa.js";import{t as e,E as r}from"./p-c3a8b788.js";import{f as s,g as c}from"./p-8ec0cf1c.js";import{c as l,d as p}from"./p-f3027aa6.js";import"./p-89517200.js";import"./p-f138bb34.js";import"./p-3145b36b.js";import"./p-8eebc13a.js";const d=class{constructor(i){t(this,i),this.calciteActionPadToggle=a(this,"calciteActionPadToggle",7),this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.actionMenuOpenChangeHandler=t=>{if(t.detail){const a=t.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((t=>{a.includes(t)||(t.menuOpen=!1)}))}},this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionPadToggle.emit()},this.setExpandToggleRef=t=>{this.expandToggleEl=t}}expandedHandler(t){e({parent:this.el,expanded:t})}connectedCallback(){l(this)}disconnectedCallback(){p(this)}componentWillLoad(){const{el:t,expanded:a}=this;e({parent:t,expanded:a})}async setFocus(t){"expand-toggle"!==t?this.el.focus():await s(this.expandToggleEl)}renderBottomActionGroup(){const{expanded:t,expandDisabled:a,intlExpand:n,intlCollapse:o,el:e,position:s,toggleExpand:l,scale:p}=this,d=c(e,"expand-tooltip"),m=a?null:i(r,{el:e,expanded:t,intlCollapse:o||"Collapse",intlExpand:n||"Expand",position:s,ref:this.setExpandToggleRef,scale:p,toggle:l,tooltip:d});return m?i("calcite-action-group",{class:"action-group--bottom",scale:p},i("slot",{name:"expand-tooltip"}),m):null}render(){return i(n,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},i("div",{class:"container"},i("slot",null),this.renderBottomActionGroup()))}get el(){return o(this)}static get watchers(){return{expanded:["expandedHandler"]}}};d.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}@keyframes in{0%{opacity:0}100%{opacity:1}}:host{-webkit-animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.125rem}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-bottom:0px;padding-top:0px}.container{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;overflow-y:auto;border-radius:0.25rem;background-color:var(--calcite-ui-background);--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);max-width:15vw}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}:host([layout=horizontal]) .container{-ms-flex-direction:row;flex-direction:row;max-width:unset}:host([layout=horizontal]) .container .action-group--bottom{padding:0px}:host([layout=horizontal]) .container ::slotted(calcite-action-group){border-width:0px;padding:0px;border-inline-end-width:1px}::slotted(calcite-action-group:last-child){border-bottom-width:0px}";export{d as calcite_action_pad}
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- * v1.0.0-next.472
5
- */
6
- import{f as t,h as e}from"./p-79797faa.js";import{a as o}from"./p-8ec0cf1c.js";import{S as n}from"./p-89517200.js";import{S as a}from"./p-f138bb34.js";const c=150,i=({actionCount:t,actionHeight:e,height:o,groupCount:n})=>Math.max(t-(({height:t,actionHeight:e,groupCount:o})=>Math.floor((t-2*o)/e))({height:o,actionHeight:e,groupCount:n}),0),r=t=>Array.from(t.querySelectorAll("calcite-action")).filter((t=>!t.closest("calcite-action-menu")||t.slot===n.trigger)),l=({actionGroups:e,expanded:o,overflowCount:n})=>{let c=n;e.reverse().forEach((e=>{let n=0;const i=r(e).reverse();i.forEach((t=>{t.slot===a.menuActions&&(t.removeAttribute("slot"),t.textEnabled=o)})),c>0&&i.some((t=>(i.filter((t=>!t.slot)).length>1&&i.length>2&&!t.closest("calcite-action-menu")&&(t.textEnabled=!0,t.setAttribute("slot",a.menuActions),n++,n>1&&c--),c<1))),t(e)}))};function s({parent:t,expanded:e}){r(t).filter((t=>t.slot!==a.menuActions)).forEach((t=>t.textEnabled=e)),t.querySelectorAll("calcite-action-group").forEach((t=>t.expanded=e))}const p=({expanded:t,intlExpand:n,intlCollapse:a,toggle:c,el:i,position:r,tooltip:l,ref:s,scale:p})=>{const f="rtl"===o(i),u=t?a:n,d=["chevrons-left","chevrons-right"];f&&d.reverse();const h="end"===function(t,e){var o;return t||(null===(o=e.closest("calcite-shell-panel"))||void 0===o?void 0:o.position)||"start"}(r,i);return e("calcite-action",{icon:t?h?d[1]:d[0]:h?d[0]:d[1],onClick:c,ref:e=>(({tooltip:t,referenceElement:e,expanded:o,ref:n})=>(t&&(t.referenceElement=!o&&e?e:null),n&&n(e),e))({tooltip:l,referenceElement:e,expanded:t,ref:s}),scale:p,text:u,textEnabled:t})};export{p as E,l as a,i as g,c as o,r as q,s as t}