@esri/calcite-components 1.0.0-next.352 → 1.0.0-next.356

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 (611) hide show
  1. package/dist/calcite/assets/calcite-icon/rightAlign16.json +1 -0
  2. package/dist/calcite/assets/calcite-icon/rightAlign24.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/rightAlign32.json +1 -0
  4. package/dist/calcite/calcite.css +1 -1
  5. package/dist/calcite/calcite.esm.js +1 -1
  6. package/dist/calcite/calcite.js +1 -1
  7. package/dist/calcite/p-0134e87c.system.entry.js +5 -0
  8. package/dist/calcite/p-02856c5a.system.entry.js +5 -0
  9. package/dist/calcite/p-04bf9bca.system.entry.js +5 -0
  10. package/dist/calcite/p-082c3059.system.entry.js +5 -0
  11. package/dist/calcite/p-0ac72794.system.entry.js +5 -0
  12. package/dist/calcite/p-0b187e6a.system.entry.js +5 -0
  13. package/dist/calcite/p-0d9a5d78.entry.js +5 -0
  14. package/dist/calcite/p-12c57970.js +5 -0
  15. package/dist/calcite/p-141c978b.system.entry.js +5 -0
  16. package/dist/calcite/p-1509da0f.system.entry.js +5 -0
  17. package/dist/calcite/p-15a38242.system.entry.js +5 -0
  18. package/dist/calcite/{p-389d11dd.entry.js → p-18c9da83.entry.js} +1 -1
  19. package/dist/calcite/p-1d26d522.system.entry.js +5 -0
  20. package/dist/calcite/p-2015299a.entry.js +5 -0
  21. package/dist/calcite/{p-27d9be53.entry.js → p-209f2049.entry.js} +1 -1
  22. package/dist/calcite/p-20d2db84.entry.js +5 -0
  23. package/dist/calcite/{p-dbc16f65.system.entry.js → p-227da2a5.system.entry.js} +1 -1
  24. package/dist/calcite/{p-21857b73.entry.js → p-2c278864.entry.js} +1 -1
  25. package/dist/calcite/p-2c3bbbb4.system.entry.js +5 -0
  26. package/dist/calcite/p-3366ef60.entry.js +5 -0
  27. package/dist/calcite/p-3baf4001.system.entry.js +5 -0
  28. package/dist/calcite/p-3c14f089.system.entry.js +5 -0
  29. package/dist/calcite/{p-26ace86f.entry.js → p-3c1841bd.entry.js} +1 -1
  30. package/dist/calcite/p-3c34f20d.system.js +5 -0
  31. package/dist/calcite/p-3e8cf990.entry.js +5 -0
  32. package/dist/calcite/p-3f51ac4b.system.entry.js +5 -0
  33. package/dist/calcite/{p-56963201.entry.js → p-475b5015.entry.js} +1 -1
  34. package/dist/calcite/{p-8d98d2a5.entry.js → p-481366ac.entry.js} +1 -1
  35. package/dist/calcite/p-4aa28569.entry.js +5 -0
  36. package/dist/calcite/{p-52966b4c.js → p-4f9b0b0f.js} +1 -1
  37. package/dist/calcite/p-4fee156d.system.entry.js +5 -0
  38. package/dist/calcite/{p-5c7c2892.system.entry.js → p-513bc44f.system.entry.js} +1 -1
  39. package/dist/calcite/p-54e07c75.entry.js +5 -0
  40. package/dist/calcite/p-557f31e6.system.entry.js +5 -0
  41. package/dist/calcite/{p-ca9795e8.entry.js → p-55e6b0b2.entry.js} +1 -1
  42. package/dist/calcite/p-57555baa.system.entry.js +5 -0
  43. package/dist/calcite/{p-90a47591.entry.js → p-59222393.entry.js} +1 -1
  44. package/dist/calcite/{p-940d168f.entry.js → p-5cce1e8b.entry.js} +1 -1
  45. package/dist/calcite/{p-a7a4f22d.entry.js → p-5d9fe852.entry.js} +1 -1
  46. package/dist/calcite/p-5dcd2088.system.entry.js +5 -0
  47. package/dist/calcite/p-6173cf08.system.js +5 -0
  48. package/dist/calcite/{p-5c849dc8.entry.js → p-66ca7309.entry.js} +1 -1
  49. package/dist/calcite/{p-38b6901a.system.entry.js → p-6c453fd0.system.entry.js} +1 -1
  50. package/dist/calcite/p-6cd93563.entry.js +5 -0
  51. package/dist/calcite/p-6dbcd698.system.entry.js +5 -0
  52. package/dist/calcite/p-6e0fd056.entry.js +5 -0
  53. package/dist/calcite/p-6f0c4739.system.entry.js +5 -0
  54. package/dist/calcite/p-6fb2082b.entry.js +5 -0
  55. package/dist/calcite/p-70566b09.system.entry.js +5 -0
  56. package/dist/calcite/p-732a0005.system.entry.js +5 -0
  57. package/dist/calcite/p-74365957.system.entry.js +5 -0
  58. package/dist/calcite/p-748c198c.system.entry.js +5 -0
  59. package/dist/calcite/p-765d6b57.system.entry.js +5 -0
  60. package/dist/calcite/{p-39b7addd.entry.js → p-770c1d6b.entry.js} +1 -1
  61. package/dist/calcite/p-7a2142c2.system.entry.js +5 -0
  62. package/dist/calcite/p-7a28e833.system.entry.js +5 -0
  63. package/dist/calcite/p-7bd71ff0.system.entry.js +5 -0
  64. package/dist/calcite/{p-04cbeb2a.entry.js → p-805c94b9.entry.js} +1 -1
  65. package/dist/calcite/p-83d41684.entry.js +5 -0
  66. package/dist/calcite/{p-d0c41b96.system.entry.js → p-84738edb.system.entry.js} +1 -1
  67. package/dist/calcite/p-869eb8f9.entry.js +5 -0
  68. package/dist/calcite/{p-d92c66b3.entry.js → p-8e1945e3.entry.js} +1 -1
  69. package/dist/calcite/p-90f7c357.system.entry.js +5 -0
  70. package/dist/calcite/p-917e53a2.system.entry.js +5 -0
  71. package/dist/calcite/p-92ad7d95.entry.js +5 -0
  72. package/dist/calcite/p-94398466.system.entry.js +5 -0
  73. package/dist/calcite/{p-18d9a261.system.js → p-99d32fc3.system.js} +1 -1
  74. package/dist/calcite/{p-7975c2f9.entry.js → p-9acd0a18.entry.js} +1 -1
  75. package/dist/calcite/p-a348ffb1.system.entry.js +5 -0
  76. package/dist/calcite/p-a57bd5e6.entry.js +5 -0
  77. package/dist/calcite/p-a76aa7d2.system.entry.js +5 -0
  78. package/dist/calcite/{p-71da0971.entry.js → p-a7f8b343.entry.js} +1 -1
  79. package/dist/calcite/p-a88d8075.entry.js +5 -0
  80. package/dist/calcite/p-ac234622.system.entry.js +5 -0
  81. package/dist/calcite/p-ae224016.system.entry.js +5 -0
  82. package/dist/calcite/p-afa72097.system.entry.js +5 -0
  83. package/dist/calcite/p-b01c3a89.system.entry.js +5 -0
  84. package/dist/calcite/{p-d1c47e18.system.entry.js → p-b1a43a5f.system.entry.js} +1 -1
  85. package/dist/calcite/p-b55fa7bc.entry.js +5 -0
  86. package/dist/calcite/p-b5bb4618.system.entry.js +5 -0
  87. package/dist/calcite/p-b63dfa63.entry.js +5 -0
  88. package/dist/calcite/{p-0b6e6f8d.entry.js → p-bc85a791.entry.js} +1 -1
  89. package/dist/calcite/{p-e284b5b8.entry.js → p-bccf787f.entry.js} +1 -1
  90. package/dist/calcite/{p-ffba00b9.entry.js → p-bfd9f64a.entry.js} +1 -1
  91. package/dist/calcite/p-c077d664.entry.js +5 -0
  92. package/dist/calcite/{p-dfc1ecd1.system.entry.js → p-c3124245.system.entry.js} +1 -1
  93. package/dist/calcite/{p-1ddaef77.entry.js → p-c5761666.entry.js} +1 -1
  94. package/dist/calcite/p-c7b8a068.entry.js +5 -0
  95. package/dist/calcite/p-cc63f8f9.entry.js +5 -0
  96. package/dist/calcite/p-cd54c8d0.system.entry.js +5 -0
  97. package/dist/calcite/{p-49610262.entry.js → p-cfcb2161.entry.js} +1 -1
  98. package/dist/calcite/p-d00fbd1e.entry.js +5 -0
  99. package/dist/calcite/{p-834ec82a.system.js → p-d4bafc77.system.js} +1 -1
  100. package/dist/calcite/p-d5b221b1.entry.js +5 -0
  101. package/dist/calcite/p-d6bfa9b1.entry.js +5 -0
  102. package/dist/calcite/{p-c157e22e.entry.js → p-d6e8d643.entry.js} +1 -1
  103. package/dist/calcite/p-d8653ba3.entry.js +5 -0
  104. package/dist/calcite/p-db85eed9.entry.js +5 -0
  105. package/dist/calcite/{p-4163c0ae.system.entry.js → p-dba7c714.system.entry.js} +1 -1
  106. package/dist/calcite/p-dd9f2e61.js +5 -0
  107. package/dist/calcite/p-e2094dff.system.entry.js +5 -0
  108. package/dist/calcite/p-e426746f.system.entry.js +5 -0
  109. package/dist/calcite/p-e5130ebf.system.entry.js +5 -0
  110. package/dist/calcite/p-e62edb4d.system.entry.js +5 -0
  111. package/dist/calcite/{p-19aaba9d.entry.js → p-e63f0806.entry.js} +1 -1
  112. package/dist/calcite/p-e7103edc.entry.js +5 -0
  113. package/dist/calcite/p-e8270c76.system.entry.js +5 -0
  114. package/dist/calcite/p-eca26cba.system.entry.js +5 -0
  115. package/dist/calcite/p-ef6f8370.entry.js +5 -0
  116. package/dist/calcite/{p-a6da572a.system.entry.js → p-f26cad61.system.entry.js} +1 -1
  117. package/dist/calcite/p-f3d02833.js +5 -0
  118. package/dist/calcite/{p-35fb0117.entry.js → p-f5739197.entry.js} +1 -1
  119. package/dist/calcite/p-f63b9411.entry.js +5 -0
  120. package/dist/calcite/p-f70f5521.system.entry.js +5 -0
  121. package/dist/calcite/{p-f497ac7a.system.entry.js → p-f763b1e7.system.entry.js} +1 -1
  122. package/dist/calcite/{p-3197e276.system.entry.js → p-f8c99ef3.system.entry.js} +1 -1
  123. package/dist/calcite/{p-f492b6f8.entry.js → p-f8f128a2.entry.js} +1 -1
  124. package/dist/calcite/{p-66f9478e.entry.js → p-f95fb85f.entry.js} +1 -1
  125. package/dist/calcite/{p-dcaf145a.entry.js → p-fc3c1e91.entry.js} +1 -1
  126. package/dist/calcite/p-fcde21ce.system.js +5 -0
  127. package/dist/calcite/p-fdd3ea5e.entry.js +5 -0
  128. package/dist/calcite/{p-394ad62d.entry.js → p-fe3fff79.entry.js} +1 -1
  129. package/dist/calcite/p-fee9511c.system.entry.js +5 -0
  130. package/dist/cjs/calcite-accordion_2.cjs.entry.js +2 -2
  131. package/dist/cjs/calcite-action-bar.cjs.entry.js +1 -1
  132. package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
  133. package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
  134. package/dist/cjs/calcite-action-pad.cjs.entry.js +1 -1
  135. package/dist/cjs/calcite-action.cjs.entry.js +1 -1
  136. package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
  137. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  138. package/dist/cjs/calcite-block_2.cjs.entry.js +2 -2
  139. package/dist/cjs/calcite-button.cjs.entry.js +1 -1
  140. package/dist/cjs/calcite-card.cjs.entry.js +1 -1
  141. package/dist/cjs/calcite-checkbox.cjs.entry.js +1 -1
  142. package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
  143. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +3 -3
  144. package/dist/cjs/calcite-combobox_3.cjs.entry.js +4 -4
  145. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +7 -7
  146. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +4 -4
  147. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  148. package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
  149. package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
  150. package/dist/cjs/calcite-graph_2.cjs.entry.js +2 -2
  151. package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
  152. package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
  153. package/dist/cjs/calcite-inline-editable.cjs.entry.js +1 -1
  154. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +5 -5
  155. package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
  156. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +6 -6
  157. package/dist/cjs/calcite-input.cjs.entry.js +11 -3
  158. package/dist/cjs/calcite-label.cjs.entry.js +1 -1
  159. package/dist/cjs/calcite-link.cjs.entry.js +1 -1
  160. package/dist/cjs/calcite-list_3.cjs.entry.js +3 -3
  161. package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
  162. package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
  163. package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
  164. package/dist/cjs/calcite-option_3.cjs.entry.js +3 -3
  165. package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
  166. package/dist/cjs/calcite-panel.cjs.entry.js +1 -1
  167. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +3 -3
  168. package/dist/cjs/calcite-popover_2.cjs.entry.js +3 -3
  169. package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
  170. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +1 -1
  171. package/dist/cjs/calcite-radio-button.cjs.entry.js +1 -1
  172. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +2 -2
  173. package/dist/cjs/calcite-rating.cjs.entry.js +1 -1
  174. package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
  175. package/dist/cjs/calcite-shell_3.cjs.entry.js +3 -3
  176. package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
  177. package/dist/cjs/calcite-split-button.cjs.entry.js +1 -1
  178. package/dist/cjs/calcite-stepper_2.cjs.entry.js +2 -2
  179. package/dist/cjs/calcite-switch.cjs.entry.js +1 -1
  180. package/dist/cjs/calcite-tab_4.cjs.entry.js +4 -4
  181. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +2 -2
  182. package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
  183. package/dist/cjs/calcite-tip_3.cjs.entry.js +3 -3
  184. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +3 -3
  185. package/dist/cjs/calcite-tree_2.cjs.entry.js +2 -2
  186. package/dist/cjs/calcite-value-list_2.cjs.entry.js +3 -3
  187. package/dist/cjs/calcite.cjs.js +1 -1
  188. package/dist/cjs/loader.cjs.js +1 -1
  189. package/dist/cjs/locale-b9b153dd.js +127 -0
  190. package/dist/cjs/number-e813e801.js +84 -0
  191. package/dist/cjs/{popper-ccef76e3.js → popper-adfdc032.js} +28 -9
  192. package/dist/cjs/{resources-d3c42dc4.js → resources-c524c005.js} +1 -1
  193. package/dist/collection/collection-manifest.json +1 -1
  194. package/dist/collection/components/calcite-accordion/calcite-accordion.css +1 -1
  195. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +1 -1
  196. package/dist/collection/components/calcite-action/calcite-action.css +1 -1
  197. package/dist/collection/components/calcite-action-bar/calcite-action-bar.css +1 -1
  198. package/dist/collection/components/calcite-action-group/calcite-action-group.css +1 -1
  199. package/dist/collection/components/calcite-action-menu/calcite-action-menu.css +1 -1
  200. package/dist/collection/components/calcite-action-pad/calcite-action-pad.css +1 -1
  201. package/dist/collection/components/calcite-alert/calcite-alert.css +1 -1
  202. package/dist/collection/components/calcite-avatar/calcite-avatar.css +1 -1
  203. package/dist/collection/components/calcite-block/calcite-block.css +1 -1
  204. package/dist/collection/components/calcite-block-section/calcite-block-section.css +1 -1
  205. package/dist/collection/components/calcite-button/calcite-button.css +1 -1
  206. package/dist/collection/components/calcite-card/calcite-card.css +1 -1
  207. package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +2 -2
  208. package/dist/collection/components/calcite-chip/calcite-chip.css +1 -1
  209. package/dist/collection/components/calcite-color-picker/calcite-color-picker.css +1 -1
  210. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.css +1 -1
  211. package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.css +1 -1
  212. package/dist/collection/components/calcite-combobox/calcite-combobox.css +1 -1
  213. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +1 -1
  214. package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.css +1 -1
  215. package/dist/collection/components/calcite-date-picker/calcite-date-picker.css +1 -1
  216. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +1 -1
  217. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +1 -1
  218. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +1 -1
  219. package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +1 -1
  220. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +1 -1
  221. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +1 -1
  222. package/dist/collection/components/calcite-fab/calcite-fab.css +1 -1
  223. package/dist/collection/components/calcite-filter/calcite-filter.css +3 -3
  224. package/dist/collection/components/calcite-flow/calcite-flow.css +3 -3
  225. package/dist/collection/components/calcite-graph/calcite-graph.css +1 -1
  226. package/dist/collection/components/calcite-handle/calcite-handle.css +1 -1
  227. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign16.json +1 -0
  228. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign24.json +1 -0
  229. package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign32.json +1 -0
  230. package/dist/collection/components/calcite-icon/calcite-icon.css +1 -1
  231. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +5 -1
  232. package/dist/collection/components/calcite-input/calcite-input.css +6 -2
  233. package/dist/collection/components/calcite-input/calcite-input.js +8 -0
  234. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +1 -1
  235. package/dist/collection/components/calcite-input-message/calcite-input-message.css +1 -1
  236. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +1 -1
  237. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +2 -2
  238. package/dist/collection/components/calcite-label/calcite-label.css +5 -1
  239. package/dist/collection/components/calcite-link/calcite-link.css +1 -1
  240. package/dist/collection/components/calcite-list/calcite-list.css +1 -1
  241. package/dist/collection/components/calcite-list-item/calcite-list-item.css +3 -1
  242. package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.css +1 -1
  243. package/dist/collection/components/calcite-loader/calcite-loader.css +5 -1
  244. package/dist/collection/components/calcite-modal/calcite-modal.css +1 -1
  245. package/dist/collection/components/calcite-notice/calcite-notice.css +2 -2
  246. package/dist/collection/components/calcite-option/calcite-option.css +1 -1
  247. package/dist/collection/components/calcite-option-group/calcite-option-group.css +1 -1
  248. package/dist/collection/components/calcite-pagination/calcite-pagination.css +1 -1
  249. package/dist/collection/components/calcite-panel/calcite-panel.css +2 -2
  250. package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +1 -1
  251. package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +10 -3
  252. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.css +1 -1
  253. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.css +4 -4
  254. package/dist/collection/components/calcite-popover/calcite-popover.css +1 -1
  255. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.css +1 -1
  256. package/dist/collection/components/calcite-progress/calcite-progress.css +1 -1
  257. package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +1 -1
  258. package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.css +1 -1
  259. package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +1 -1
  260. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +1 -1
  261. package/dist/collection/components/calcite-rating/calcite-rating.css +3 -3
  262. package/dist/collection/components/calcite-scrim/calcite-scrim.css +1 -1
  263. package/dist/collection/components/calcite-select/calcite-select.css +1 -1
  264. package/dist/collection/components/calcite-shell/calcite-shell.css +1 -1
  265. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.css +1 -1
  266. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +2 -2
  267. package/dist/collection/components/calcite-slider/calcite-slider.css +1 -1
  268. package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +1 -1
  269. package/dist/collection/components/calcite-split-button/calcite-split-button.css +5 -1
  270. package/dist/collection/components/calcite-stepper/calcite-stepper.css +1 -1
  271. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +1 -1
  272. package/dist/collection/components/calcite-switch/calcite-switch.css +1 -1
  273. package/dist/collection/components/calcite-tab/calcite-tab.css +1 -1
  274. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +1 -1
  275. package/dist/collection/components/calcite-tab-title/calcite-tab-title.css +1 -1
  276. package/dist/collection/components/calcite-tabs/calcite-tabs.css +1 -1
  277. package/dist/collection/components/calcite-tile/calcite-tile.css +1 -1
  278. package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +2 -2
  279. package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.css +1 -1
  280. package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +1 -1
  281. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +4 -4
  282. package/dist/collection/components/calcite-tip/calcite-tip.css +1 -1
  283. package/dist/collection/components/calcite-tip-group/calcite-tip-group.css +1 -1
  284. package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.css +1 -1
  285. package/dist/collection/components/calcite-tooltip/calcite-tooltip.css +1 -1
  286. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.css +1 -1
  287. package/dist/collection/components/calcite-tree/calcite-tree.css +1 -1
  288. package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +1 -1
  289. package/dist/collection/components/calcite-value-list/calcite-value-list.css +1 -1
  290. package/dist/collection/components/calcite-value-list/calcite-value-list.js +13 -6
  291. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css +2 -2
  292. package/dist/collection/utils/locale.js +42 -38
  293. package/dist/collection/utils/number.js +41 -23
  294. package/dist/components/calcite-accordion-item.js +1 -1
  295. package/dist/components/calcite-accordion.js +1 -1
  296. package/dist/components/calcite-action-bar.js +1 -1
  297. package/dist/components/calcite-action-group2.js +1 -1
  298. package/dist/components/calcite-action-menu2.js +1 -1
  299. package/dist/components/calcite-action-pad.js +1 -1
  300. package/dist/components/calcite-action2.js +1 -1
  301. package/dist/components/calcite-alert.js +1 -1
  302. package/dist/components/calcite-avatar.js +1 -1
  303. package/dist/components/calcite-block-section.js +1 -1
  304. package/dist/components/calcite-block.js +1 -1
  305. package/dist/components/calcite-button2.js +1 -1
  306. package/dist/components/calcite-card.js +1 -1
  307. package/dist/components/calcite-checkbox2.js +1 -1
  308. package/dist/components/calcite-chip2.js +1 -1
  309. package/dist/components/calcite-color-picker-hex-input2.js +1 -1
  310. package/dist/components/calcite-color-picker-swatch2.js +1 -1
  311. package/dist/components/calcite-color-picker.js +1 -1
  312. package/dist/components/calcite-combobox-item-group.js +1 -1
  313. package/dist/components/calcite-combobox-item.js +1 -1
  314. package/dist/components/calcite-combobox.js +1 -1
  315. package/dist/components/calcite-date-picker-day2.js +1 -1
  316. package/dist/components/calcite-date-picker-month-header2.js +1 -1
  317. package/dist/components/calcite-date-picker-month2.js +1 -1
  318. package/dist/components/calcite-date-picker2.js +1 -1
  319. package/dist/components/calcite-dropdown-group.js +1 -1
  320. package/dist/components/calcite-dropdown-item.js +1 -1
  321. package/dist/components/calcite-dropdown2.js +1 -1
  322. package/dist/components/calcite-fab.js +1 -1
  323. package/dist/components/calcite-filter2.js +1 -1
  324. package/dist/components/calcite-flow.js +1 -1
  325. package/dist/components/calcite-graph2.js +1 -1
  326. package/dist/components/calcite-handle2.js +1 -1
  327. package/dist/components/calcite-icon2.js +1 -1
  328. package/dist/components/calcite-inline-editable.js +1 -1
  329. package/dist/components/calcite-input-date-picker.js +1 -1
  330. package/dist/components/calcite-input-message.js +1 -1
  331. package/dist/components/calcite-input-time-picker.js +2 -2
  332. package/dist/components/calcite-input2.js +9 -1
  333. package/dist/components/calcite-label2.js +1 -1
  334. package/dist/components/calcite-link2.js +1 -1
  335. package/dist/components/calcite-list-item-group.js +1 -1
  336. package/dist/components/calcite-list-item.js +1 -1
  337. package/dist/components/calcite-list.js +1 -1
  338. package/dist/components/calcite-loader2.js +1 -1
  339. package/dist/components/calcite-modal.js +1 -1
  340. package/dist/components/calcite-notice.js +1 -1
  341. package/dist/components/calcite-option-group.js +1 -1
  342. package/dist/components/calcite-option.js +1 -1
  343. package/dist/components/calcite-pagination.js +1 -1
  344. package/dist/components/calcite-panel.js +1 -1
  345. package/dist/components/calcite-pick-list-group.js +1 -1
  346. package/dist/components/calcite-pick-list-item2.js +1 -1
  347. package/dist/components/calcite-pick-list.js +1 -1
  348. package/dist/components/calcite-popover-manager.js +1 -1
  349. package/dist/components/calcite-popover2.js +1 -1
  350. package/dist/components/calcite-progress2.js +1 -1
  351. package/dist/components/calcite-radio-button-group.js +1 -1
  352. package/dist/components/calcite-radio-button.js +1 -1
  353. package/dist/components/calcite-radio-group-item.js +1 -1
  354. package/dist/components/calcite-radio-group.js +1 -1
  355. package/dist/components/calcite-rating.js +1 -1
  356. package/dist/components/calcite-scrim2.js +1 -1
  357. package/dist/components/calcite-select.js +1 -1
  358. package/dist/components/calcite-shell-center-row.js +1 -1
  359. package/dist/components/calcite-shell-panel.js +1 -1
  360. package/dist/components/calcite-shell.js +1 -1
  361. package/dist/components/calcite-slider.js +1 -1
  362. package/dist/components/calcite-sortable-list.js +1 -1
  363. package/dist/components/calcite-split-button.js +1 -1
  364. package/dist/components/calcite-stepper-item.js +1 -1
  365. package/dist/components/calcite-stepper.js +1 -1
  366. package/dist/components/calcite-switch2.js +1 -1
  367. package/dist/components/calcite-tab-nav2.js +1 -1
  368. package/dist/components/calcite-tab-title2.js +1 -1
  369. package/dist/components/calcite-tab2.js +1 -1
  370. package/dist/components/calcite-tabs2.js +1 -1
  371. package/dist/components/calcite-tile-select-group.js +1 -1
  372. package/dist/components/calcite-tile-select.js +1 -1
  373. package/dist/components/calcite-tile2.js +1 -1
  374. package/dist/components/calcite-time-picker2.js +4 -4
  375. package/dist/components/calcite-tip-group.js +1 -1
  376. package/dist/components/calcite-tip-manager.js +1 -1
  377. package/dist/components/calcite-tip.js +1 -1
  378. package/dist/components/calcite-tooltip-manager2.js +1 -1
  379. package/dist/components/calcite-tooltip.js +1 -1
  380. package/dist/components/calcite-tree-item.js +1 -1
  381. package/dist/components/calcite-tree.js +1 -1
  382. package/dist/components/calcite-value-list-item.js +1 -1
  383. package/dist/components/calcite-value-list.js +2 -2
  384. package/dist/components/locale.js +42 -38
  385. package/dist/components/number.js +42 -24
  386. package/dist/components/popper.js +28 -9
  387. package/dist/custom-elements/index.js +212 -163
  388. package/dist/esm/calcite-accordion_2.entry.js +2 -2
  389. package/dist/esm/calcite-action-bar.entry.js +1 -1
  390. package/dist/esm/calcite-action-group.entry.js +1 -1
  391. package/dist/esm/calcite-action-menu.entry.js +1 -1
  392. package/dist/esm/calcite-action-pad.entry.js +1 -1
  393. package/dist/esm/calcite-action.entry.js +1 -1
  394. package/dist/esm/calcite-alert.entry.js +1 -1
  395. package/dist/esm/calcite-avatar.entry.js +1 -1
  396. package/dist/esm/calcite-block_2.entry.js +2 -2
  397. package/dist/esm/calcite-button.entry.js +1 -1
  398. package/dist/esm/calcite-card.entry.js +1 -1
  399. package/dist/esm/calcite-checkbox.entry.js +1 -1
  400. package/dist/esm/calcite-chip.entry.js +1 -1
  401. package/dist/esm/calcite-color-picker_3.entry.js +3 -3
  402. package/dist/esm/calcite-combobox_3.entry.js +4 -4
  403. package/dist/esm/calcite-date-picker_4.entry.js +7 -7
  404. package/dist/esm/calcite-dropdown_3.entry.js +4 -4
  405. package/dist/esm/calcite-fab.entry.js +1 -1
  406. package/dist/esm/calcite-filter.entry.js +1 -1
  407. package/dist/esm/calcite-flow.entry.js +1 -1
  408. package/dist/esm/calcite-graph_2.entry.js +2 -2
  409. package/dist/esm/calcite-handle.entry.js +1 -1
  410. package/dist/esm/calcite-icon.entry.js +1 -1
  411. package/dist/esm/calcite-inline-editable.entry.js +1 -1
  412. package/dist/esm/calcite-input-date-picker.entry.js +5 -5
  413. package/dist/esm/calcite-input-message.entry.js +1 -1
  414. package/dist/esm/calcite-input-time-picker_2.entry.js +6 -6
  415. package/dist/esm/calcite-input.entry.js +11 -3
  416. package/dist/esm/calcite-label.entry.js +1 -1
  417. package/dist/esm/calcite-link.entry.js +1 -1
  418. package/dist/esm/calcite-list_3.entry.js +3 -3
  419. package/dist/esm/calcite-loader.entry.js +1 -1
  420. package/dist/esm/calcite-modal.entry.js +1 -1
  421. package/dist/esm/calcite-notice.entry.js +1 -1
  422. package/dist/esm/calcite-option_3.entry.js +3 -3
  423. package/dist/esm/calcite-pagination.entry.js +1 -1
  424. package/dist/esm/calcite-panel.entry.js +1 -1
  425. package/dist/esm/calcite-pick-list_3.entry.js +3 -3
  426. package/dist/esm/calcite-popover_2.entry.js +3 -3
  427. package/dist/esm/calcite-progress.entry.js +1 -1
  428. package/dist/esm/calcite-radio-button-group.entry.js +1 -1
  429. package/dist/esm/calcite-radio-button.entry.js +1 -1
  430. package/dist/esm/calcite-radio-group_2.entry.js +2 -2
  431. package/dist/esm/calcite-rating.entry.js +1 -1
  432. package/dist/esm/calcite-scrim.entry.js +1 -1
  433. package/dist/esm/calcite-shell_3.entry.js +3 -3
  434. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  435. package/dist/esm/calcite-split-button.entry.js +1 -1
  436. package/dist/esm/calcite-stepper_2.entry.js +2 -2
  437. package/dist/esm/calcite-switch.entry.js +1 -1
  438. package/dist/esm/calcite-tab_4.entry.js +4 -4
  439. package/dist/esm/calcite-tile-select_2.entry.js +2 -2
  440. package/dist/esm/calcite-tile.entry.js +1 -1
  441. package/dist/esm/calcite-tip_3.entry.js +3 -3
  442. package/dist/esm/calcite-tooltip_2.entry.js +3 -3
  443. package/dist/esm/calcite-tree_2.entry.js +2 -2
  444. package/dist/esm/calcite-value-list_2.entry.js +3 -3
  445. package/dist/esm/calcite.js +1 -1
  446. package/dist/esm/loader.js +1 -1
  447. package/dist/esm/locale-1b48f64f.js +122 -0
  448. package/dist/esm/number-8779395f.js +76 -0
  449. package/dist/esm/{popper-405efdae.js → popper-1814b3c1.js} +28 -9
  450. package/dist/esm/{resources-421133b2.js → resources-74c807b4.js} +1 -1
  451. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  452. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  453. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  454. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  455. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  456. package/dist/esm-es5/calcite-action.entry.js +1 -1
  457. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  458. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  459. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  460. package/dist/esm-es5/calcite-button.entry.js +1 -1
  461. package/dist/esm-es5/calcite-card.entry.js +1 -1
  462. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  463. package/dist/esm-es5/calcite-chip.entry.js +2 -2
  464. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  465. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  466. package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
  467. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  468. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  469. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  470. package/dist/esm-es5/calcite-flow.entry.js +2 -2
  471. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  472. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  473. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  474. package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
  475. package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
  476. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  477. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  478. package/dist/esm-es5/calcite-input.entry.js +1 -1
  479. package/dist/esm-es5/calcite-label.entry.js +1 -1
  480. package/dist/esm-es5/calcite-link.entry.js +1 -1
  481. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  482. package/dist/esm-es5/calcite-loader.entry.js +1 -1
  483. package/dist/esm-es5/calcite-modal.entry.js +2 -2
  484. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  485. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  486. package/dist/esm-es5/calcite-pagination.entry.js +1 -1
  487. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  488. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  489. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  490. package/dist/esm-es5/calcite-progress.entry.js +1 -1
  491. package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
  492. package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
  493. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  494. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  495. package/dist/esm-es5/calcite-scrim.entry.js +1 -1
  496. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  497. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  498. package/dist/esm-es5/calcite-split-button.entry.js +1 -1
  499. package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
  500. package/dist/esm-es5/calcite-switch.entry.js +1 -1
  501. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  502. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  503. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  504. package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
  505. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  506. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  507. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  508. package/dist/esm-es5/locale-1b48f64f.js +5 -0
  509. package/dist/esm-es5/number-8779395f.js +5 -0
  510. package/dist/esm-es5/popper-1814b3c1.js +5 -0
  511. package/dist/esm-es5/{resources-421133b2.js → resources-74c807b4.js} +1 -1
  512. package/dist/extras/docs-json.json +8 -8
  513. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +1 -1
  514. package/dist/types/components/calcite-pick-list/calcite-pick-list.d.ts +1 -1
  515. package/dist/types/components/calcite-pick-list/shared-list-render.d.ts +2 -2
  516. package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +2 -2
  517. package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +2 -2
  518. package/dist/types/components.d.ts +9 -9
  519. package/dist/types/stencil-public-runtime.d.ts +6 -4
  520. package/dist/types/utils/number.d.ts +2 -1
  521. package/hydrate/index.js +213 -164
  522. package/package.json +15 -15
  523. package/dist/calcite/p-05a069ad.system.entry.js +0 -5
  524. package/dist/calcite/p-05afd204.system.entry.js +0 -5
  525. package/dist/calcite/p-05edaadf.system.entry.js +0 -5
  526. package/dist/calcite/p-070ce87b.system.entry.js +0 -5
  527. package/dist/calcite/p-0a65fbd6.system.entry.js +0 -5
  528. package/dist/calcite/p-0dcf351d.system.entry.js +0 -5
  529. package/dist/calcite/p-11b9e4bb.system.js +0 -5
  530. package/dist/calcite/p-12c1a605.system.entry.js +0 -5
  531. package/dist/calcite/p-15276457.entry.js +0 -5
  532. package/dist/calcite/p-1529e188.entry.js +0 -5
  533. package/dist/calcite/p-18c4af8f.system.js +0 -5
  534. package/dist/calcite/p-1a5bd3cd.system.entry.js +0 -5
  535. package/dist/calcite/p-1e6a3265.entry.js +0 -5
  536. package/dist/calcite/p-1f1eeab3.system.entry.js +0 -5
  537. package/dist/calcite/p-20f933ec.system.entry.js +0 -5
  538. package/dist/calcite/p-21aa0028.entry.js +0 -5
  539. package/dist/calcite/p-2c0832d4.system.entry.js +0 -5
  540. package/dist/calcite/p-2ea5fe51.system.entry.js +0 -5
  541. package/dist/calcite/p-2f5787f7.entry.js +0 -5
  542. package/dist/calcite/p-308bcde7.system.entry.js +0 -5
  543. package/dist/calcite/p-30a5d7eb.system.entry.js +0 -5
  544. package/dist/calcite/p-3c42905b.system.entry.js +0 -5
  545. package/dist/calcite/p-3ed7c8b9.system.entry.js +0 -5
  546. package/dist/calcite/p-4308ccda.system.entry.js +0 -5
  547. package/dist/calcite/p-462f38ea.entry.js +0 -5
  548. package/dist/calcite/p-463b50b4.system.entry.js +0 -5
  549. package/dist/calcite/p-4c902a9d.entry.js +0 -5
  550. package/dist/calcite/p-4cf5bdd0.entry.js +0 -5
  551. package/dist/calcite/p-4f1fd456.system.entry.js +0 -5
  552. package/dist/calcite/p-5ebc6442.system.entry.js +0 -5
  553. package/dist/calcite/p-5f949b17.system.entry.js +0 -5
  554. package/dist/calcite/p-6472926f.entry.js +0 -5
  555. package/dist/calcite/p-64b2b37a.system.entry.js +0 -5
  556. package/dist/calcite/p-6a06c39d.entry.js +0 -5
  557. package/dist/calcite/p-6d0d9bba.js +0 -5
  558. package/dist/calcite/p-7958e723.entry.js +0 -5
  559. package/dist/calcite/p-7b709610.entry.js +0 -5
  560. package/dist/calcite/p-81fecc87.system.entry.js +0 -5
  561. package/dist/calcite/p-8396a2d2.js +0 -5
  562. package/dist/calcite/p-88143ee3.system.entry.js +0 -5
  563. package/dist/calcite/p-8abe0816.system.entry.js +0 -5
  564. package/dist/calcite/p-8ac0823e.system.entry.js +0 -5
  565. package/dist/calcite/p-8e0dff09.entry.js +0 -5
  566. package/dist/calcite/p-8ecae737.system.entry.js +0 -5
  567. package/dist/calcite/p-910e1235.system.entry.js +0 -5
  568. package/dist/calcite/p-91300144.js +0 -5
  569. package/dist/calcite/p-95c01d5c.system.entry.js +0 -5
  570. package/dist/calcite/p-9b5bb8ad.system.entry.js +0 -5
  571. package/dist/calcite/p-9d7fd252.entry.js +0 -5
  572. package/dist/calcite/p-a391ef7c.entry.js +0 -5
  573. package/dist/calcite/p-a84c50db.system.entry.js +0 -5
  574. package/dist/calcite/p-b000a562.system.entry.js +0 -5
  575. package/dist/calcite/p-b343bc29.entry.js +0 -5
  576. package/dist/calcite/p-b485b5c0.entry.js +0 -5
  577. package/dist/calcite/p-b5dcec87.system.entry.js +0 -5
  578. package/dist/calcite/p-bd70cb32.entry.js +0 -5
  579. package/dist/calcite/p-c33bdeaa.system.entry.js +0 -5
  580. package/dist/calcite/p-c3fc696a.system.entry.js +0 -5
  581. package/dist/calcite/p-c6e950ce.system.entry.js +0 -5
  582. package/dist/calcite/p-cd2a194c.entry.js +0 -5
  583. package/dist/calcite/p-cdf1d141.system.entry.js +0 -5
  584. package/dist/calcite/p-cf9389d2.entry.js +0 -5
  585. package/dist/calcite/p-d1d02a92.entry.js +0 -5
  586. package/dist/calcite/p-d6d92f2c.system.entry.js +0 -5
  587. package/dist/calcite/p-d791b8ed.system.entry.js +0 -5
  588. package/dist/calcite/p-db18b0b9.system.entry.js +0 -5
  589. package/dist/calcite/p-dbafbe0a.entry.js +0 -5
  590. package/dist/calcite/p-dd4d55d4.system.entry.js +0 -5
  591. package/dist/calcite/p-e33346fd.system.entry.js +0 -5
  592. package/dist/calcite/p-e592e359.system.entry.js +0 -5
  593. package/dist/calcite/p-e9197eeb.entry.js +0 -5
  594. package/dist/calcite/p-ea59c57b.entry.js +0 -5
  595. package/dist/calcite/p-ed64efc7.entry.js +0 -5
  596. package/dist/calcite/p-f45f88db.entry.js +0 -5
  597. package/dist/calcite/p-f7f4177f.system.entry.js +0 -5
  598. package/dist/calcite/p-fa872404.system.entry.js +0 -5
  599. package/dist/calcite/p-fc57d215.entry.js +0 -5
  600. package/dist/calcite/p-fc998713.system.js +0 -5
  601. package/dist/calcite/p-fdba68b7.entry.js +0 -5
  602. package/dist/calcite/p-fe0e0b7f.entry.js +0 -5
  603. package/dist/calcite/p-fe5c3f36.system.entry.js +0 -5
  604. package/dist/calcite/p-ffaaffcc.system.entry.js +0 -5
  605. package/dist/cjs/locale-ccfa66f6.js +0 -123
  606. package/dist/cjs/number-f57fd111.js +0 -65
  607. package/dist/esm/locale-86b789f9.js +0 -118
  608. package/dist/esm/number-eb92427e.js +0 -58
  609. package/dist/esm-es5/locale-86b789f9.js +0 -5
  610. package/dist/esm-es5/number-eb92427e.js +0 -5
  611. package/dist/esm-es5/popper-405efdae.js +0 -5
@@ -1,5 +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
- */
5
- import{r as t,c as i,h as e,H as n,g as a}from"./p-2e29554c.js";import{T as o,s as r,d as s,a as l,C as c}from"./p-f87c1273.js";import{c as h,d as u,g as d}from"./p-bb4dcd31.js";import{c as m,d as p,H as b}from"./p-f3b489d9.js";import{d as f,g,l as x}from"./p-8396a2d2.js";import{i as w,p as v,s as y,n as k}from"./p-91300144.js";import{d as z}from"./p-2d09cc25.js";import"./p-8a63221d.js";const D={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"};let j=class{constructor(e){t(this,e),this.calciteInputFocus=i(this,"calciteInputFocus",7),this.calciteInputBlur=i(this,"calciteInputBlur",7),this.calciteInputInput=i(this,"calciteInputInput",7),this.calciteInputChange=i(this,"calciteInputChange",7),this.alignment="start",this.autofocus=!1,this.clearable=!1,this.disabled=!1,this.groupSeparator=!1,this.hidden=!1,this.intlLoading=o.loading,this.iconFlipRtl=!1,this.loading=!1,this.locale=document.documentElement.lang||"en",this.localeFormat=!1,this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.editingEnabled=!1,this.type="text",this.value="",this.childElType="input",this.keyDownHandler=t=>{"ArrowUp"===t.key&&t.preventDefault(),this.readOnly||this.disabled||this.isClearable&&"Escape"===t.key&&(this.clearInputValue(t),t.preventDefault())},this.clearInputValue=t=>{this.setValue("",t,!0)},this.inputBlurHandler=()=>{"number"===this.type&&this.setLocalizedValue(this.value),this.calciteInputBlur.emit({element:this.childEl,value:this.value}),this.preFocusValue!==this.value&&this.calciteInputChange.emit()},this.inputFocusHandler=t=>{t.target!==this.slottedActionEl&&this.setFocus(),this.calciteInputFocus.emit({element:this.childEl,value:this.value}),this.preFocusValue=this.value},this.inputInputHandler=t=>{this.disabled||this.readOnly||this.setValue(t.target.value,t)},this.inputKeyDownHandler=t=>{this.disabled||this.readOnly||"Enter"===t.key&&this.calciteInputChange.emit()},this.inputNumberInputHandler=t=>{if(this.disabled||this.readOnly)return;const i=t.target.value,e=f(i,this.locale);"insertFromPaste"===t.inputType?(w(e)||t.preventDefault(),this.setValue(v(e),t),this.childNumberEl.value=this.localizedValue):this.setValue(f(i,this.locale),t)},this.inputNumberKeyDownHandler=t=>{if("number"!==this.type||this.disabled||this.readOnly)return;if("ArrowUp"===t.key)return void this.nudgeNumberValue("up",t);if("ArrowDown"===t.key)return void this.nudgeNumberValue("down",t);const i=[...k,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab","-"];if(t.altKey||t.ctrlKey||t.metaKey)return;const e=t.shiftKey&&"Tab"===t.key;if(i.includes(t.key)&&(!t.shiftKey||e))return void("Enter"===t.key&&this.calciteInputChange.emit());const n=g(this.locale);if(t.key===n){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&-1===this.childNumberEl.value.indexOf(n))return}t.preventDefault()},this.nudgeNumberValue=(t,i)=>{if(i instanceof KeyboardEvent&&i.repeat||"number"!==this.type)return;const e=this.maxString?parseFloat(this.maxString):null,n=this.minString?parseFloat(this.minString):null;this.incrementOrDecrementNumberValue(t,e,n,i);let a=!0;this.nudgeNumberValueIntervalId=window.setInterval((()=>{a?a=!1:this.incrementOrDecrementNumberValue(t,e,n,i)}),100)},this.numberButtonMouseUpAndMouseOutHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.numberButtonMouseDownHandler=t=>{t.preventDefault(),this.nudgeNumberValue(t.target.dataset.adjustment,t)},this.setChildElRef=t=>{this.childEl=t},this.setChildNumberElRef=t=>{this.childNumberEl=t},this.setLocalizedValue=t=>{this.localizedValue=x(t,this.locale,this.groupSeparator)},this.setValue=(t,i,e=!1)=>{const n=this.value;if("number"===this.type){const i=y(t);this.value=i,this.setLocalizedValue(i)}else this.value=t;i&&(this.calciteInputInput.emit({element:this.childEl,nativeEvent:i,value:this.value}).defaultPrevented?(this.value=n,this.setLocalizedValue(n)):e&&this.calciteInputChange.emit())},this.inputKeyUpHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)}}disabledWatcher(){this.setDisabledAction()}maxWatcher(){var t;this.maxString=(null===(t=this.max)||void 0===t?void 0:t.toString())||null}minWatcher(){var t;this.minString=(null===(t=this.min)||void 0===t?void 0:t.toString())||null}valueWatcher(t){null!=t?"number"===this.type&&this.localizedValue!==x(t,this.locale)?this.setLocalizedValue(t):this.childEl&&this.childEl.value!==t&&(this.childEl.value=t):this.value=""}updateRequestedIcon(){this.requestedIcon=r(D,this.icon,this.type)}get isClearable(){return!this.isTextarea&&(this.clearable||"search"===this.type)&&this.value.length>0}get isTextarea(){return"textarea"===this.childElType}connectedCallback(){this.scale=s(this.el,"scale",this.scale),this.status=s(this.el,"status",this.status),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),"number"===this.type&&this.value&&(w(this.value)?this.localizedValue=x(this.value,this.locale,this.groupSeparator):this.value=""),h(this),m(this)}disconnectedCallback(){u(this),p(this)}componentWillLoad(){var t,i;this.childElType="textarea"===this.type?"textarea":"input",this.maxString=null===(t=this.max)||void 0===t?void 0:t.toString(),this.minString=null===(i=this.min)||void 0===i?void 0:i.toString(),this.requestedIcon=r(D,this.icon,this.type)}componentDidLoad(){this.slottedActionEl=this.el.querySelector("[slot=action]"),this.setDisabledAction()}componentShouldUpdate(t,i,e){return!("number"===this.type&&"value"===e&&t&&!w(t)&&(this.value=i,1))}async setFocus(){var t,i;"number"===this.type?null===(t=this.childNumberEl)||void 0===t||t.focus():null===(i=this.childEl)||void 0===i||i.focus()}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(t,i,e,n){const{value:a}=this,o="any"===this.step?1:Math.abs(this.step||1),r=a&&""!==a?parseFloat(a):0,s=r+o*("up"===t?1:-1),l="number"==typeof e&&!isNaN(e)&&s<e||"number"==typeof i&&!isNaN(i)&&s>i?r:s,c=z(r),h=z(o);this.setValue(l.toFixed(Math.max(c,h)),n,!0)}onFormReset(){this.setValue(this.defaultValue)}syncHiddenFormInput(t){var i,e,n,a;"number"===this.type?(t.type="number",t.min=null!==(e=null===(i=this.min)||void 0===i?void 0:i.toString(10))&&void 0!==e?e:"",t.max=null!==(a=null===(n=this.max)||void 0===n?void 0:n.toString(10))&&void 0!==a?a:""):"text"===this.type?(t.type="text",null!=this.minLength&&(t.minLength=this.minLength),null!=this.maxLength&&(t.maxLength=this.maxLength)):"password"===this.type&&(t.type="password")}setDisabledAction(){if(!this.slottedActionEl)return;const t=this.slottedActionEl;this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")}render(){const t=l(this.el),i=e("div",{class:"loader"},e("calcite-progress",{label:this.intlLoading,type:"indeterminate"})),a=e("button",{class:"clear-button",disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:this.disabled?-1:0,type:"button"},e("calcite-icon",{icon:"x",scale:"s"})),o=e("calcite-icon",{class:"icon",flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:"s"}),r="horizontal"===this.numberButtonType,s=e("button",{class:{"number-button-item":!0,"number-button-item--horizontal":r},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onMouseDown:this.numberButtonMouseDownHandler,onMouseOut:this.numberButtonMouseUpAndMouseOutHandler,onMouseUp:this.numberButtonMouseUpAndMouseOutHandler,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"chevron-up",scale:"s"})),h=e("button",{class:{"number-button-item":!0,"number-button-item--horizontal":r},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onMouseDown:this.numberButtonMouseDownHandler,onMouseOut:this.numberButtonMouseUpAndMouseOutHandler,onMouseUp:this.numberButtonMouseUpAndMouseOutHandler,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"chevron-down",scale:"s"})),u=e("div",{class:"number-button-wrapper"},s,h),m=e("div",{class:"prefix"},this.prefixText),p=e("div",{class:"suffix"},this.suffixText),f="number"===this.type?e("input",{"aria-label":d(this),autofocus:!!this.autofocus||null,defaultValue:this.defaultValue,disabled:!!this.disabled||null,enterKeyHint:this.el.enterKeyHint,inputMode:this.el.inputMode,key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,name:void 0,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputNumberInputHandler,onKeyDown:this.inputNumberKeyDownHandler,onKeyUp:this.inputKeyUpHandler,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildNumberElRef,type:"text",value:this.localizedValue}):null,g="number"!==this.type?[e(this.childElType,{"aria-label":d(this),autofocus:!!this.autofocus||null,class:{"editing-enabled":this.editingEnabled,"inline-child":!!this.inlineEditableEl},defaultValue:this.defaultValue,disabled:!!this.disabled||null,enterKeyHint:this.el.enterKeyHint,inputMode:this.el.inputMode,max:this.maxString,maxLength:this.maxLength,min:this.minString,minLength:this.minLength,name:this.name,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeyDownHandler,onKeyUp:this.inputKeyUpHandler,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildElRef,required:!!this.required||null,step:this.step,tabIndex:this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null,type:this.type,value:this.value}),this.isTextarea?e("div",{class:"resize-icon-wrapper"},e("calcite-icon",{icon:"chevron-down",scale:"s"})):null]:null;return e(n,{onClick:this.inputFocusHandler,onKeyDown:this.keyDownHandler},e("div",{class:{wrapper:!0,[c.rtl]:"rtl"===t}},"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:h,this.prefixText?m:null,e("div",{class:"element-wrapper"},f,g,this.isClearable?a:null,this.requestedIcon?o:null,this.loading?i:null),e("div",{class:"action-wrapper"},e("slot",{name:"action"})),"number"!==this.type||"vertical"!==this.numberButtonType||this.readOnly?null:u,this.suffixText?p:null,"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:s,e(b,{component:this})))}get el(){return a(this)}static get watchers(){return{disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"]}}};j.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:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{height:1.5rem;padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) textarea{height:1.5rem;min-height:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{height:1.5rem}:host([scale=s]) input[type=file]{height:1.5rem}:host([scale=s]) .clear-button{min-height:1.5rem;min-width:1.5rem}:host([scale=s]) textarea{height:auto;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{height:2rem;padding:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea{min-height:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{height:2rem}:host([scale=m]) input[type=file]{height:2rem}:host([scale=m]) .clear-button{min-height:2rem;min-width:2rem}:host([scale=m]) textarea{height:auto;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{height:2.75rem;padding:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea{min-height:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{height:2.75rem}:host([scale=l]) input[type=file]{height:2.75rem}:host([scale=l]) .clear-button{min-height:2.75rem;min-width:2.75rem}:host([scale=l]) textarea{height:auto;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .wrapper{pointer-events:none;--tw-text-opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) button,:host([disabled]) textarea,:host([disabled]) input{pointer-events:none}:host([disabled]) textarea{resize:none}:host textarea,:host input{-webkit-transition:150ms ease-in-out, height 0s;transition:150ms ease-in-out, height 0s;-webkit-appearance:none;position:relative;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;max-height:100%;width:100%;max-width:100%;-ms-flex:1 1 0%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}:host input[type=search]::-webkit-search-decoration{-webkit-appearance:none}:host input,:host textarea{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder,:host textarea::placeholder,:host textarea:-ms-input-placeholder,:host textarea::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input:focus,:host textarea:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly],:host textarea[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus,:host textarea[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}:host textarea,:host input{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 textarea:focus,:host input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{-webkit-padding-start:2rem;padding-inline-start:2rem}:host([icon][scale=m]) input{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host([icon][scale=l]) input{-webkit-padding-start:3rem;padding-inline-start:3rem}.element-wrapper{position:relative;-ms-flex-order:3;order:3;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center}.icon{pointer-events:none;position:absolute;z-index:10;display:block;-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}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;height:0px;width:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;-ms-flex-order:4;order:4;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;min-height:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:stretch;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);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;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-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}.clear-button:hover calcite-icon{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}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{top:1px;left:1px;right:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}.prefix,.suffix{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{-ms-flex-order:2;order:2;border-inline-end-width:0px}.suffix{-ms-flex-order:5;order:5;border-inline-start-width:0px}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}:host input[type=number]{-moz-appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0px}.number-button-wrapper{pointer-events:none;-ms-flex-order:6;order:6;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-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}:host([number-button-type=vertical]) .wrapper{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{-ms-flex-order:2;order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:1;order:1;max-height:100%;min-height:100%;-ms-flex-item-align:stretch;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:5;order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-top-width:0px}.number-button-item{max-height:50%;min-height:50%;pointer-events:initial;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px;padding-left:0.5rem;padding-right:0.5rem;-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;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;-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}.number-button-item:focus{background-color:var(--calcite-ui-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item:active{background-color:var(--calcite-ui-foreground-3)}.wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}:host input::-webkit-calendar-picker-indicator{display:none}:host input[type=date]::-webkit-input-placeholder{visibility:hidden !important}:host textarea::-webkit-resizer{position:absolute;bottom:0px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem;inset-inline-end:0}.resize-icon-wrapper{bottom:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;height:0.75rem;width:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}.resize-icon-wrapper calcite-icon{bottom:0.25rem;inset-inline-end:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);text-align:center}:host([type=file][scale=s]) input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}:host([type=file][scale=m]) input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}:host([type=file][scale=l]) input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}:host(.no-bottom-border) input{border-bottom-width:0px}:host(.border-top-color-one) input{border-top-color:var(--calcite-ui-border-1)}:host .inline-child{background-color:transparent;-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}:host .inline-child .editing-enabled{background-color:inherit}:host .inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{j as calcite_input}
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,a){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{l(a.next(t))}catch(t){o(t)}}function s(t){try{l(a["throw"](t))}catch(t){o(t)}}function l(t){t.done?i(t.value):n(t.value).then(r,s)}l((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,n,o,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(e){return l([t,e])}}function l(r){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,n&&(o=r[0]&2?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;if(n=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;n=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){i.label=r[1];break}if(r[0]===6&&i.label<o[1]){i.label=o[1];o=r;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(r);break}if(o[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];n=0}finally{a=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[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
- */System.register(["./p-288bc438.system.js","./p-07284a52.system.js","./p-477bac2c.system.js","./p-e020662f.system.js"],(function(t){"use strict";var e,i,a,n,o,r,s;return{setters:[function(t){e=t.r;i=t.c;a=t.h;n=t.H;o=t.g},function(t){r=t.s},function(t){s=t.S},function(){}],execute:function(){var l={intlClose:"Close"};var c={slow:14e3,medium:1e4,fast:6e3};var u={title:"title",message:"message",link:"link"};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:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]){--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}:host([scale=s]) slot[name=title]::slotted(*),:host([scale=s]) *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) slot[name=message]::slotted(*),:host([scale=s]) *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) slot[name=link]::slotted(*),:host([scale=s]) *::slotted([slot=link]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .alert-queue-count{margin-left:0.5rem;margin-right:0.5rem}:host([scale=s]) .container{--calcite-alert-min-height:3.5rem}:host([scale=s]) .alert-close{padding:0.5rem}:host([scale=m]){--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}:host([scale=m]) slot[name=title]::slotted(*),:host([scale=m]) *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) slot[name=message]::slotted(*),:host([scale=m]) *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) slot[name=link]::slotted(*),:host([scale=m]) *::slotted([slot=link]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .alert-queue-count{margin-left:0.75rem;margin-right:0.75rem}:host([scale=m]) .container{--calcite-alert-min-height:4.1875rem}:host([scale=l]){--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}:host([scale=l]) slot[name=title]::slotted(*),:host([scale=l]) *::slotted([slot=title]){margin-bottom:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) slot[name=message]::slotted(*),:host([scale=l]) *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) slot[name=link]::slotted(*),:host([scale=l]) *::slotted([slot=link]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .alert-queue-count{margin-left:1rem;margin-right:1rem}:host([scale=l]) .container{--calcite-alert-min-height:5.625rem}:host{display:block}:host .container{pointer-events:none;position:fixed;left:0px;right:0px;bottom:0px;margin-top:0px;margin-bottom:0px;margin-left:auto;margin-right:auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--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);border-radius:var(--calcite-border-radius);border-top:0px solid transparent;border-left:1px solid var(--calcite-ui-border-3);border-right:1px solid var(--calcite-ui-border-3);border-bottom:1px solid var(--calcite-ui-border-3);min-height:var(--calcite-alert-min-height);width:var(--calcite-alert-width);max-width:90%;max-height:0;z-index:101;-webkit-transform:translate3d(0, 1.5rem, 0);transform:translate3d(0, 1.5rem, 0);-webkit-transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}.container{display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.alert-close{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}.alert-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]) .container:not(.queued){max-height:100%;border-top-width:2px;opacity:1;-webkit-transform:translate3d(0, -1.5rem, 0);transform:translate3d(0, -1.5rem, 0);pointer-events:initial}slot[name=title]::slotted(*),*::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}slot[name=link]::slotted(*),*::slotted([slot=link]){display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-link)}.alert-content{-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;padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);-ms-flex:1 1 auto;flex:1 1 auto;min-width:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-bottom-left-radius:var(--calcite-border-radius);border-bottom-right-radius:var(--calcite-border-radius)}.alert-content:first-of-type:not(:only-child){-webkit-padding-start:var(--calcite-alert-spacing-token-large);padding-inline-start:var(--calcite-alert-spacing-token-large)}.alert-content:only-child{padding:var(--calcite-alert-spacing-token-small)}.alert-icon{-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;padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px}.alert-close{-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;padding:var(--calcite-alert-spacing-token-small) var(--calcite-alert-spacing-token-large);-ms-flex:0 0 auto;flex:0 0 auto;cursor:pointer;-ms-flex-item-align:stretch;align-self:stretch;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;overflow:hidden;border-end-end-radius:var(--calcite-border-radius)}.alert-close:hover,.alert-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.alert-close:active{background-color:var(--calcite-ui-foreground-3)}.alert-queue-count{visibility:hidden;display:-ms-flexbox;display:flex;cursor:default;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;-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;overflow:hidden;border-left:0px solid transparent;border-right:0px solid transparent;border-top-right-radius:0}.alert-queue-count.active{visibility:visible;opacity:1}:host([auto-dismiss])>.alert-queue-count{-webkit-border-end:0px solid transparent;border-inline-end:0px solid transparent}.alert-dismiss-progress{position:absolute;left:0px;right:0px;display:block;width:100%;overflow:hidden;top:-2px;height:2px;z-index:103;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}.alert-dismiss-progress:after{position:absolute;top:0px;display:block;height:2px;content:"";background-color:var(--calcite-alert-dismiss-progress-background);z-index:104;inset-inline-end:0}:host([color=blue]) .container{border-top-color:var(--calcite-ui-info)}:host([color=blue]) .container .alert-icon{color:var(--calcite-ui-info)}:host([color=red]) .container{border-top-color:var(--calcite-ui-danger)}:host([color=red]) .container .alert-icon{color:var(--calcite-ui-danger)}:host([color=yellow]) .container{border-top-color:var(--calcite-ui-warning)}:host([color=yellow]) .container .alert-icon{color:var(--calcite-ui-warning)}:host([color=green]) .container{border-top-color:var(--calcite-ui-success)}:host([color=green]) .container .alert-icon{color:var(--calcite-ui-success)}:host([auto-dismiss-duration=fast]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 6000ms ease-out;animation:dismissProgress 6000ms ease-out}:host([auto-dismiss-duration=medium]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 10000ms ease-out;animation:dismissProgress 10000ms ease-out}:host([auto-dismiss-duration=slow]) .alert-dismiss-progress:after{-webkit-animation:dismissProgress 14000ms ease-out;animation:dismissProgress 14000ms ease-out}@-webkit-keyframes dismissProgress{0%{width:0px}0%{opacity:0.75}100%{width:100%}100%{opacity:1}}@keyframes dismissProgress{0%{width:0px}0%{opacity:0.75}100%{width:100%}100%{opacity:1}}';var d=t("calcite_alert",function(){function t(t){var a=this;e(this,t);this.calciteAlertClose=i(this,"calciteAlertClose",7);this.calciteAlertOpen=i(this,"calciteAlertOpen",7);this.calciteAlertSync=i(this,"calciteAlertSync",7);this.calciteAlertRegister=i(this,"calciteAlertRegister",7);this.active=false;this.autoDismiss=false;this.autoDismissDuration=this.autoDismiss?"medium":null;this.color="blue";this.intlClose=l.intlClose;this.scale="m";this.queue=[];this.queueLength=0;this.queued=false;this.autoDismissTimeoutId=null;this.trackTimer=Date.now();this.closeAlert=function(){a.autoDismissTimeoutId=null;a.queued=false;a.active=false;a.queue=a.queue.filter((function(t){return t!==a.el}));a.determineActiveAlert();a.calciteAlertSync.emit({queue:a.queue});a.calciteAlertClose.emit({el:a.el,queue:a.queue})}}t.prototype.watchActive=function(){var t=this;if(this.active&&!this.queued){this.calciteAlertRegister.emit()}if(!this.active){this.queue=this.queue.filter((function(e){return e!==t.el}));this.calciteAlertSync.emit({queue:this.queue})}};t.prototype.updateRequestedIcon=function(){this.requestedIcon=r(s,this.icon,this.color)};t.prototype.updateDuration=function(){var t=this;if(this.autoDismiss&&this.autoDismissTimeoutId){window.clearTimeout(this.autoDismissTimeoutId);this.autoDismissTimeoutId=window.setTimeout((function(){return t.closeAlert()}),c[this.autoDismissDuration]-(Date.now()-this.trackTimer))}};t.prototype.connectedCallback=function(){if(this.active&&!this.queued){this.calciteAlertRegister.emit()}};t.prototype.componentWillLoad=function(){this.requestedIcon=r(s,this.icon,this.color)};t.prototype.componentDidLoad=function(){this.alertLinkEl=this.el.querySelectorAll("calcite-link")[0]};t.prototype.disconnectedCallback=function(){window.clearTimeout(this.autoDismissTimeoutId)};t.prototype.render=function(){var t=this;var e=a("button",{"aria-label":this.intlClose,class:"alert-close",onClick:this.closeAlert,ref:function(e){return t.closeButton=e},type:"button"},a("calcite-icon",{icon:"x",scale:this.scale==="l"?"m":"s"}));var i="+"+(this.queueLength>2?this.queueLength-1:1);var o=a("div",{class:(this.queueLength>1?"active ":"")+"alert-queue-count"},a("calcite-chip",{scale:this.scale,value:i},i));var r=this,s=r.active,l=r.autoDismiss,c=r.label,m=r.queued,d=r.requestedIcon;var h=l?"alert":"alertdialog";var f=!s;return a(n,{"aria-hidden":f.toString(),"aria-label":c,"calcite-hydrated-hidden":f,role:h},a("div",{class:{container:true,queued:m}},d?a("div",{class:"alert-icon"},a("calcite-icon",{icon:d,scale:this.scale==="l"?"m":"s"})):null,a("div",{class:"alert-content"},a("slot",{name:u.title}),a("slot",{name:u.message}),a("slot",{name:u.link})),o,!l?e:null,s&&!m&&l?a("div",{class:"alert-dismiss-progress"}):null))};t.prototype.alertSync=function(t){if(this.queue!==t.detail.queue){this.queue=t.detail.queue}this.queueLength=this.queue.length;this.determineActiveAlert()};t.prototype.alertRegister=function(){if(this.active&&!this.queue.includes(this.el)){this.queued=true;this.queue.push(this.el)}this.calciteAlertSync.emit({queue:this.queue});this.determineActiveAlert()};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.closeButton&&!this.alertLinkEl){return[2]}else if(this.alertLinkEl){this.alertLinkEl.setFocus()}else if(this.closeButton){this.closeButton.focus()}return[2]}))}))};t.prototype.determineActiveAlert=function(){var t=this;var e;if(((e=this.queue)===null||e===void 0?void 0:e[0])===this.el){this.openAlert();if(this.autoDismiss&&!this.autoDismissTimeoutId){this.trackTimer=Date.now();this.autoDismissTimeoutId=window.setTimeout((function(){return t.closeAlert()}),c[this.autoDismissDuration])}}else{return}};t.prototype.openAlert=function(){var t=this;window.clearTimeout(this.queueTimeout);this.queueTimeout=window.setTimeout((function(){return t.queued=false}),300);this.calciteAlertOpen.emit({el:this.el,queue:this.queue})};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["watchActive"],icon:["updateRequestedIcon"],color:["updateRequestedIcon"],autoDismissDuration:["updateDuration"]}},enumerable:false,configurable:true});return t}());d.style=m}}}));
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,i,n,e){function a(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,r){function o(t){try{l(e.next(t))}catch(t){r(t)}}function s(t){try{l(e["throw"](t))}catch(t){r(t)}}function l(t){t.done?n(t.value):a(t.value).then(o,s)}l((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},e,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(i){return l([t,i])}}function l(o){if(e)throw new TypeError("Generator is already executing.");while(n)try{if(e=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:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=i.call(t,n)}catch(t){o=[6,t];a=0}finally{e=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
- */System.register(["./p-288bc438.system.js","./p-07284a52.system.js","./p-e020662f.system.js"],(function(t){"use strict";var i,n,e,a,r,o,s;return{setters:[function(t){i=t.r;n=t.h;e=t.H;a=t.g},function(t){r=t.a;o=t.C;s=t.f},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:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline}:host a,:host span{position:relative;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:0px;border-style:none;font-family:inherit;-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;text-decoration:none;line-height:inherit;font-size:inherit;-webkit-appearance:none}:host a:hover,:host span:hover{text-decoration:none}:host a,:host span{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 a:focus,:host span:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-icon{width:1em;height:1em;min-width:unset;min-height:unset}.calcite-link--icon{vertical-align:text-top;-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;margin-top:0.125rem}:host([disabled]){pointer-events:none}:host([disabled]) span,:host([disabled]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-link--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host .calcite-link--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host span,:host a{position:relative;display:inline;border-style:none;background-color:transparent;padding:0px;color:var(--calcite-ui-text-link);-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;line-height:inherit;white-space:initial;background-image:-webkit-gradient(linear, left top, left bottom, from(currentColor), to(currentColor)), -webkit-gradient(linear, left top, left bottom, from(var(--calcite-link-blue-underline)), to(var(--calcite-link-blue-underline)));background-image:linear-gradient(currentColor, currentColor), linear-gradient(var(--calcite-link-blue-underline), var(--calcite-link-blue-underline));background-position:0% 100%, 100% 100%;background-repeat:no-repeat, no-repeat;background-size:0% 1px, 100% 1px}:host span:hover,:host span:focus,:host a:hover,:host a:focus{background-size:100% 1px, 100% 1px}:host span:active,:host a:active{background-size:100% 2px, 100% 2px}:host span.calcite--rtl,:host a.calcite--rtl{background-position:100% 100%, 100% 100%}";var c=t("calcite_link",function(){function t(t){var n=this;i(this,t);this.disabled=false;this.childElType="span";this.storeTagRef=function(t){n.childEl=t}}t.prototype.hrefHandler=function(t){this.childElType=t?"a":"span"};t.prototype.connectedCallback=function(){this.childElType=this.href?"a":"span"};t.prototype.render=function(){var t;var i=r(this.el);var a=n("calcite-icon",{class:"calcite-link--icon icon-start",flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:"s"});var s=n("calcite-icon",{class:"calcite-link--icon icon-end",flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:"s"});var l=this.childElType;var c=this.childElType==="span"?"link":null;var u=this.disabled?-1:this.childElType==="span"?0:null;return n(e,{role:"presentation"},n(l,{class:(t={},t[o.rtl]=i==="rtl",t),href:l==="a"&&this.href,ref:this.storeTagRef,rel:l==="a"&&this.rel,role:c,tabIndex:u,target:l==="a"&&this.target},this.iconStart?a:null,n("slot",null),this.iconEnd?s:null))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){s(this.childEl);return[2]}))}))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{href:["hrefHandler"]}},enumerable:false,configurable:true});return t}());c.style=l}}}));
@@ -1,123 +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
- */
5
- 'use strict';
6
-
7
- const number = require('./number-f57fd111.js');
8
-
9
- const locales = [
10
- "ar",
11
- "bs",
12
- "ca",
13
- "cs",
14
- "da",
15
- "de",
16
- "de-CH",
17
- "el",
18
- "en",
19
- "en-AU",
20
- "en-CA",
21
- "en-GB",
22
- "es",
23
- "es-MX",
24
- "et",
25
- "fi",
26
- "fr",
27
- "fr-CH",
28
- "he",
29
- "hi",
30
- "hr",
31
- "hu",
32
- "id",
33
- "it",
34
- "it-CH",
35
- "ja",
36
- "ko",
37
- "lt",
38
- "lv",
39
- "mk",
40
- "nb",
41
- "nl",
42
- "pl",
43
- "pt",
44
- "pt-PT",
45
- "ro",
46
- "ru",
47
- "sk",
48
- "sl",
49
- "sr",
50
- "sv",
51
- "th",
52
- "tr",
53
- "uk",
54
- "vi",
55
- "zh-CN",
56
- "zh-HK",
57
- "zh-TW"
58
- ];
59
- function createLocaleNumberFormatter(locale) {
60
- return new Intl.NumberFormat(locale, {
61
- minimumFractionDigits: 0,
62
- maximumFractionDigits: 20
63
- });
64
- }
65
- function delocalizeNumberString(numberString, locale) {
66
- if (numberString) {
67
- const groupSeparator = getGroupSeparator(locale);
68
- const decimalSeparator = getDecimalSeparator(locale);
69
- const splitNumberString = numberString.split("");
70
- const decimalIndex = splitNumberString.lastIndexOf(decimalSeparator);
71
- const delocalizedNumberString = splitNumberString
72
- .map((value, index) => {
73
- if (value === groupSeparator || (value === decimalSeparator && index !== decimalIndex)) {
74
- return "";
75
- }
76
- return value;
77
- })
78
- .reduce((string, part) => string + part)
79
- .replace(decimalSeparator, ".");
80
- return isNaN(Number(delocalizedNumberString)) ? numberString : delocalizedNumberString;
81
- }
82
- return numberString;
83
- }
84
- function getGroupSeparator(locale) {
85
- const formatter = createLocaleNumberFormatter(locale);
86
- const parts = formatter.formatToParts(1234567.8);
87
- const value = parts.find((part) => part.type === "group").value;
88
- return value.trim().length === 0 ? " " : value;
89
- }
90
- function getDecimalSeparator(locale) {
91
- const formatter = createLocaleNumberFormatter(locale);
92
- const parts = formatter.formatToParts(1234567.8);
93
- const value = parts.find((part) => part.type === "decimal").value;
94
- return value.trim().length === 0 ? " " : value;
95
- }
96
- function localizeNumberString(numberString, locale, displayGroupSeparator = false) {
97
- if (numberString) {
98
- const number$1 = Number(number.sanitizeDecimalString(numberString));
99
- if (!isNaN(number$1)) {
100
- const formatter = createLocaleNumberFormatter(locale);
101
- const parts = formatter.formatToParts(number$1);
102
- const localizedNumberString = parts
103
- .map(({ type, value }) => {
104
- switch (type) {
105
- case "group":
106
- return displayGroupSeparator ? getGroupSeparator(locale) : "";
107
- case "decimal":
108
- return getDecimalSeparator(locale);
109
- default:
110
- return value;
111
- }
112
- })
113
- .reduce((string, part) => string + part);
114
- return localizedNumberString;
115
- }
116
- }
117
- return numberString;
118
- }
119
-
120
- exports.delocalizeNumberString = delocalizeNumberString;
121
- exports.getDecimalSeparator = getDecimalSeparator;
122
- exports.locales = locales;
123
- exports.localizeNumberString = localizeNumberString;
@@ -1,65 +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
- */
5
- 'use strict';
6
-
7
- function isActivationKey(key) {
8
- return key === "Enter" || key === " ";
9
- }
10
- const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
11
-
12
- function isValidNumber(numberString) {
13
- return !(!numberString || isNaN(Number(numberString)));
14
- }
15
- function parseNumberString(numberString) {
16
- if (!numberString || !stringContainsNumbers(numberString)) {
17
- return "";
18
- }
19
- let containsDecimal = false;
20
- const result = numberString
21
- .split("")
22
- .filter((value, i) => {
23
- if (value.match(/\./g) && !containsDecimal) {
24
- containsDecimal = true;
25
- return true;
26
- }
27
- if (value.match(/\-/g) && i === 0) {
28
- return true;
29
- }
30
- return numberKeys.includes(value);
31
- })
32
- .reduce((string, part) => string + part);
33
- return isValidNumber(result) ? Number(result).toString() : null;
34
- }
35
- function sanitizeDecimalString(decimalString) {
36
- const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
37
- return decimalString.replace(decimalAtEndOfStringButNotStart, "");
38
- }
39
- function sanitizeNegativeString(negativeString) {
40
- const allHyphensExceptTheStart = /(?!^-)-/g;
41
- return negativeString.replace(allHyphensExceptTheStart, "");
42
- }
43
- function sanitizeLeadingZeroString(zeroString) {
44
- const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
45
- return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
46
- }
47
- function sanitizeNumberString(value) {
48
- const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
49
- const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
50
- return isValidNumber(sanitizedValue)
51
- ? isNegativeDecimalOnlyZeros.test(sanitizedValue)
52
- ? sanitizedValue
53
- : Number(sanitizedValue).toString()
54
- : value;
55
- }
56
- function stringContainsNumbers(string) {
57
- return numberKeys.some((number) => string.includes(number));
58
- }
59
-
60
- exports.isActivationKey = isActivationKey;
61
- exports.isValidNumber = isValidNumber;
62
- exports.numberKeys = numberKeys;
63
- exports.parseNumberString = parseNumberString;
64
- exports.sanitizeDecimalString = sanitizeDecimalString;
65
- exports.sanitizeNumberString = sanitizeNumberString;
@@ -1,118 +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
- */
5
- import { a as sanitizeDecimalString } from './number-eb92427e.js';
6
-
7
- const locales = [
8
- "ar",
9
- "bs",
10
- "ca",
11
- "cs",
12
- "da",
13
- "de",
14
- "de-CH",
15
- "el",
16
- "en",
17
- "en-AU",
18
- "en-CA",
19
- "en-GB",
20
- "es",
21
- "es-MX",
22
- "et",
23
- "fi",
24
- "fr",
25
- "fr-CH",
26
- "he",
27
- "hi",
28
- "hr",
29
- "hu",
30
- "id",
31
- "it",
32
- "it-CH",
33
- "ja",
34
- "ko",
35
- "lt",
36
- "lv",
37
- "mk",
38
- "nb",
39
- "nl",
40
- "pl",
41
- "pt",
42
- "pt-PT",
43
- "ro",
44
- "ru",
45
- "sk",
46
- "sl",
47
- "sr",
48
- "sv",
49
- "th",
50
- "tr",
51
- "uk",
52
- "vi",
53
- "zh-CN",
54
- "zh-HK",
55
- "zh-TW"
56
- ];
57
- function createLocaleNumberFormatter(locale) {
58
- return new Intl.NumberFormat(locale, {
59
- minimumFractionDigits: 0,
60
- maximumFractionDigits: 20
61
- });
62
- }
63
- function delocalizeNumberString(numberString, locale) {
64
- if (numberString) {
65
- const groupSeparator = getGroupSeparator(locale);
66
- const decimalSeparator = getDecimalSeparator(locale);
67
- const splitNumberString = numberString.split("");
68
- const decimalIndex = splitNumberString.lastIndexOf(decimalSeparator);
69
- const delocalizedNumberString = splitNumberString
70
- .map((value, index) => {
71
- if (value === groupSeparator || (value === decimalSeparator && index !== decimalIndex)) {
72
- return "";
73
- }
74
- return value;
75
- })
76
- .reduce((string, part) => string + part)
77
- .replace(decimalSeparator, ".");
78
- return isNaN(Number(delocalizedNumberString)) ? numberString : delocalizedNumberString;
79
- }
80
- return numberString;
81
- }
82
- function getGroupSeparator(locale) {
83
- const formatter = createLocaleNumberFormatter(locale);
84
- const parts = formatter.formatToParts(1234567.8);
85
- const value = parts.find((part) => part.type === "group").value;
86
- return value.trim().length === 0 ? " " : value;
87
- }
88
- function getDecimalSeparator(locale) {
89
- const formatter = createLocaleNumberFormatter(locale);
90
- const parts = formatter.formatToParts(1234567.8);
91
- const value = parts.find((part) => part.type === "decimal").value;
92
- return value.trim().length === 0 ? " " : value;
93
- }
94
- function localizeNumberString(numberString, locale, displayGroupSeparator = false) {
95
- if (numberString) {
96
- const number = Number(sanitizeDecimalString(numberString));
97
- if (!isNaN(number)) {
98
- const formatter = createLocaleNumberFormatter(locale);
99
- const parts = formatter.formatToParts(number);
100
- const localizedNumberString = parts
101
- .map(({ type, value }) => {
102
- switch (type) {
103
- case "group":
104
- return displayGroupSeparator ? getGroupSeparator(locale) : "";
105
- case "decimal":
106
- return getDecimalSeparator(locale);
107
- default:
108
- return value;
109
- }
110
- })
111
- .reduce((string, part) => string + part);
112
- return localizedNumberString;
113
- }
114
- }
115
- return numberString;
116
- }
117
-
118
- export { locales as a, delocalizeNumberString as d, getDecimalSeparator as g, localizeNumberString as l };
@@ -1,58 +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
- */
5
- function isActivationKey(key) {
6
- return key === "Enter" || key === " ";
7
- }
8
- const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
9
-
10
- function isValidNumber(numberString) {
11
- return !(!numberString || isNaN(Number(numberString)));
12
- }
13
- function parseNumberString(numberString) {
14
- if (!numberString || !stringContainsNumbers(numberString)) {
15
- return "";
16
- }
17
- let containsDecimal = false;
18
- const result = numberString
19
- .split("")
20
- .filter((value, i) => {
21
- if (value.match(/\./g) && !containsDecimal) {
22
- containsDecimal = true;
23
- return true;
24
- }
25
- if (value.match(/\-/g) && i === 0) {
26
- return true;
27
- }
28
- return numberKeys.includes(value);
29
- })
30
- .reduce((string, part) => string + part);
31
- return isValidNumber(result) ? Number(result).toString() : null;
32
- }
33
- function sanitizeDecimalString(decimalString) {
34
- const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
35
- return decimalString.replace(decimalAtEndOfStringButNotStart, "");
36
- }
37
- function sanitizeNegativeString(negativeString) {
38
- const allHyphensExceptTheStart = /(?!^-)-/g;
39
- return negativeString.replace(allHyphensExceptTheStart, "");
40
- }
41
- function sanitizeLeadingZeroString(zeroString) {
42
- const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
43
- return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
44
- }
45
- function sanitizeNumberString(value) {
46
- const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
47
- const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
48
- return isValidNumber(sanitizedValue)
49
- ? isNegativeDecimalOnlyZeros.test(sanitizedValue)
50
- ? sanitizedValue
51
- : Number(sanitizedValue).toString()
52
- : value;
53
- }
54
- function stringContainsNumbers(string) {
55
- return numberKeys.some((number) => string.includes(number));
56
- }
57
-
58
- export { sanitizeDecimalString as a, isActivationKey as b, isValidNumber as i, numberKeys as n, parseNumberString as p, sanitizeNumberString as s };
@@ -1,5 +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
- */
5
- import{a as sanitizeDecimalString}from"./number-eb92427e.js";var locales=["ar","bs","ca","cs","da","de","de-CH","el","en","en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","nb","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"];function createLocaleNumberFormatter(r){return new Intl.NumberFormat(r,{minimumFractionDigits:0,maximumFractionDigits:20})}function delocalizeNumberString(r,e){if(r){var t=getGroupSeparator(e);var a=getDecimalSeparator(e);var i=r.split("");var n=i.lastIndexOf(a);var u=i.map((function(r,e){if(r===t||r===a&&e!==n){return""}return r})).reduce((function(r,e){return r+e})).replace(a,".");return isNaN(Number(u))?r:u}return r}function getGroupSeparator(r){var e=createLocaleNumberFormatter(r);var t=e.formatToParts(1234567.8);var a=t.find((function(r){return r.type==="group"})).value;return a.trim().length===0?" ":a}function getDecimalSeparator(r){var e=createLocaleNumberFormatter(r);var t=e.formatToParts(1234567.8);var a=t.find((function(r){return r.type==="decimal"})).value;return a.trim().length===0?" ":a}function localizeNumberString(r,e,t){if(t===void 0){t=false}if(r){var a=Number(sanitizeDecimalString(r));if(!isNaN(a)){var i=createLocaleNumberFormatter(e);var n=i.formatToParts(a);var u=n.map((function(r){var a=r.type,i=r.value;switch(a){case"group":return t?getGroupSeparator(e):"";case"decimal":return getDecimalSeparator(e);default:return i}})).reduce((function(r,e){return r+e}));return u}}return r}export{locales as a,delocalizeNumberString as d,getDecimalSeparator as g,localizeNumberString as l};
@@ -1,5 +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
- */
5
- function isActivationKey(r){return r==="Enter"||r===" "}var numberKeys=["0","1","2","3","4","5","6","7","8","9"];function isValidNumber(r){return!(!r||isNaN(Number(r)))}function parseNumberString(r){if(!r||!stringContainsNumbers(r)){return""}var e=false;var n=r.split("").filter((function(r,n){if(r.match(/\./g)&&!e){e=true;return true}if(r.match(/\-/g)&&n===0){return true}return numberKeys.includes(r)})).reduce((function(r,e){return r+e}));return isValidNumber(n)?Number(n).toString():null}function sanitizeDecimalString(r){var e=/(?!^\.)\.$/;return r.replace(e,"")}function sanitizeNegativeString(r){var e=/(?!^-)-/g;return r.replace(e,"")}function sanitizeLeadingZeroString(r){var e=/^([-0])0+(?=\d)/;return r.replace(e,"$1")}function sanitizeNumberString(r){var e=sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(r)));var n=/^-\b0\b\.?0*$/;return isValidNumber(e)?n.test(e)?e:Number(e).toString():r}function stringContainsNumbers(r){return numberKeys.some((function(e){return r.includes(e)}))}export{sanitizeDecimalString as a,isActivationKey as b,isValidNumber as i,numberKeys as n,parseNumberString as p,sanitizeNumberString as s};
@@ -1,5 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{f(n.next(e))}catch(e){i(e)}}function s(e){try{f(n["throw"](e))}catch(e){i(e)}}function f(e){e.done?r(e.value):a(e.value).then(o,s)}f((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return f([e,t])}}function f(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=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
- */import{a as getElementDir}from"./dom-e55f9eaf.js";var top="top";var bottom="bottom";var right="right";var left="left";var auto="auto";var basePlacements=[top,bottom,right,left];var start="start";var end="end";var clippingParents="clippingParents";var viewport="viewport";var popper="popper";var reference="reference";var variationPlacements=basePlacements.reduce((function(e,t){return e.concat([t+"-"+start,t+"-"+end])}),[]);var placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])}),[]);var beforeRead="beforeRead";var read="read";var afterRead="afterRead";var beforeMain="beforeMain";var main="main";var afterMain="afterMain";var beforeWrite="beforeWrite";var write="write";var afterWrite="afterWrite";var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(e==null){return window}if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function isElement(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if(typeof ShadowRoot==="undefined"){return false}var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{};var n=t.attributes[e]||{};var a=t.elements[e];if(!isHTMLElement(a)||!getNodeName(a)){return}Object.assign(a.style,r);Object.keys(n).forEach((function(e){var t=n[e];if(t===false){a.removeAttribute(e)}else{a.setAttribute(e,t===true?"":t)}}))}))}function effect$2(e){var t=e.state;var r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper);t.styles=r;if(t.elements.arrow){Object.assign(t.elements.arrow.style,r.arrow)}return function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e];var a=t.attributes[e]||{};var i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]);var o=i.reduce((function(e,t){e[t]="";return e}),{});if(!isHTMLElement(n)||!getNodeName(n)){return}Object.assign(n.style,o);Object.keys(a).forEach((function(e){n.removeAttribute(e)}))}))}}var applyStyles$1={name:"applyStyles",enabled:true,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var max=Math.max;var min=Math.min;var round=Math.round;function getBoundingClientRect(e,t){if(t===void 0){t=false}var r=e.getBoundingClientRect();var n=1;var a=1;if(isHTMLElement(e)&&t){var i=e.offsetHeight;var o=e.offsetWidth;if(o>0){n=round(r.width)/o||1}if(i>0){a=round(r.height)/i||1}}return{width:r.width/n,height:r.height/a,top:r.top/a,right:r.right/n,bottom:r.bottom/a,left:r.left/n,x:r.left/n,y:r.top/a}}function getLayoutRect(e){var t=getBoundingClientRect(e);var r=e.offsetWidth;var n=e.offsetHeight;if(Math.abs(t.width-r)<=1){r=t.width}if(Math.abs(t.height-n)<=1){n=t.height}return{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function contains(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t)){return true}else if(r&&isShadowRoot(r)){var n=t;do{if(n&&e.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){if(getNodeName(e)==="html"){return e}return e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){if(!isHTMLElement(e)||getComputedStyle(e).position==="fixed"){return null}return e.offsetParent}function getContainingBlock(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;var r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&isHTMLElement(e)){var n=getComputedStyle(e);if(n.position==="fixed"){return null}}var a=getParentNode(e);while(isHTMLElement(a)&&["html","body"].indexOf(getNodeName(a))<0){var i=getComputedStyle(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none"){return a}else{a=a.parentNode}}return null}function getOffsetParent(e){var t=getWindow(e);var r=getTrueOffsetParent(e);while(r&&isTableElement(r)&&getComputedStyle(r).position==="static"){r=getTrueOffsetParent(r)}if(r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle(r).position==="static")){return t}return r||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within(e,t,r){return max(e,min(t,r))}function withinMaxClamp(e,t,r){var n=within(e,t,r);return n>r?r:n}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce((function(t,r){t[r]=e;return t}),{})}var toPaddingObject=function e(t,r){t=typeof t==="function"?t(Object.assign({},r.rects,{placement:r.placement})):t;return mergePaddingObject(typeof t!=="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t;var r=e.state,n=e.name,a=e.options;var i=r.elements.arrow;var o=r.modifiersData.popperOffsets;var s=getBasePlacement(r.placement);var f=getMainAxisFromPlacement(s);var l=[left,right].indexOf(s)>=0;var c=l?"height":"width";if(!i||!o){return}var p=toPaddingObject(a.padding,r);var u=getLayoutRect(i);var d=f==="y"?top:left;var v=f==="y"?bottom:right;var m=r.rects.reference[c]+r.rects.reference[f]-o[f]-r.rects.popper[c];var g=o[f]-r.rects.reference[f];var h=getOffsetParent(i);var y=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0;var b=m/2-g/2;var w=p[d];var O=y-u[c]-p[v];var x=y/2-u[c]/2+b;var P=within(w,x,O);var S=f;r.modifiersData[n]=(t={},t[S]=P,t.centerOffset=P-x,t)}function effect$1(e){var t=e.state,r=e.options;var n=r.element,a=n===void 0?"[data-popper-arrow]":n;if(a==null){return}if(typeof a==="string"){a=t.elements.popper.querySelector(a);if(!a){return}}if(!contains(t.elements.popper,a)){return}t.elements.arrow=a}var arrow$1={name:"arrow",enabled:true,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,r=e.y;var n=window;var a=n.devicePixelRatio||1;return{x:round(t*a)/a||0,y:round(r*a)/a||0}}function mapToStyles(e){var t;var r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,f=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,p=e.isFixed;var u=c===true?roundOffsetsByDPR(o):typeof c==="function"?c(o):o,d=u.x,v=d===void 0?0:d,m=u.y,g=m===void 0?0:m;var h=o.hasOwnProperty("x");var y=o.hasOwnProperty("y");var b=left;var w=top;var O=window;if(l){var x=getOffsetParent(r);var P="clientHeight";var S="clientWidth";if(x===getWindow(r)){x=getDocumentElement(r);if(getComputedStyle(x).position!=="static"&&s==="absolute"){P="scrollHeight";S="scrollWidth"}}x=x;if(a===top||(a===left||a===right)&&i===end){w=bottom;var E=p&&O.visualViewport?O.visualViewport.height:x[P];g-=E-n.height;g*=f?1:-1}if(a===left||(a===top||a===bottom)&&i===end){b=right;var M=p&&O.visualViewport?O.visualViewport.width:x[S];v-=M-n.width;v*=f?1:-1}}var T=Object.assign({position:s},l&&unsetSides);if(f){var C;return Object.assign({},T,(C={},C[w]=y?"0":"",C[b]=h?"0":"",C.transform=(O.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",C))}return Object.assign({},T,(t={},t[w]=y?g+"px":"",t[b]=h?v+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,r=e.options;var n=r.gpuAcceleration,a=n===void 0?true:n,i=r.adaptive,o=i===void 0?true:i,s=r.roundOffsets,f=s===void 0?true:s;var l={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};if(t.modifiersData.popperOffsets!=null){t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:f})))}if(t.modifiersData.arrow!=null){t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:f})))}t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:true};function effect(e){var t=e.state,r=e.instance,n=e.options;var a=n.scroll,i=a===void 0?true:a,o=n.resize,s=o===void 0?true:o;var f=getWindow(t.elements.popper);var l=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(i){l.forEach((function(e){e.addEventListener("scroll",r.update,passive)}))}if(s){f.addEventListener("resize",r.update,passive)}return function(){if(i){l.forEach((function(e){e.removeEventListener("scroll",r.update,passive)}))}if(s){f.removeEventListener("resize",r.update,passive)}}}var eventListeners={name:"eventListeners",enabled:true,phase:"write",fn:function e(){},effect:effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return hash$1[e]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return hash[e]}))}function getWindowScroll(e){var t=getWindow(e);var r=t.pageXOffset;var n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e){var t=getWindow(e);var r=getDocumentElement(e);var n=t.visualViewport;var a=r.clientWidth;var i=r.clientHeight;var o=0;var s=0;if(n){a=n.width;i=n.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){o=n.offsetLeft;s=n.offsetTop}}return{width:a,height:i,x:o+getWindowScrollBarX(e),y:s}}function getDocumentRect(e){var t;var r=getDocumentElement(e);var n=getWindowScroll(e);var a=(t=e.ownerDocument)==null?void 0:t.body;var i=max(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0);var o=max(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);var s=-n.scrollLeft+getWindowScrollBarX(e);var f=-n.scrollTop;if(getComputedStyle(a||r).direction==="rtl"){s+=max(r.clientWidth,a?a.clientWidth:0)-i}return{width:i,height:o,x:s,y:f}}function isScrollParent(e){var t=getComputedStyle(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function getScrollParent(e){if(["html","body","#document"].indexOf(getNodeName(e))>=0){return e.ownerDocument.body}if(isHTMLElement(e)&&isScrollParent(e)){return e}return getScrollParent(getParentNode(e))}function listScrollParents(e,t){var r;if(t===void 0){t=[]}var n=getScrollParent(e);var a=n===((r=e.ownerDocument)==null?void 0:r.body);var i=getWindow(n);var o=a?[i].concat(i.visualViewport||[],isScrollParent(n)?n:[]):n;var s=t.concat(o);return a?s:s.concat(listScrollParents(getParentNode(o)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);t.top=t.top+e.clientTop;t.left=t.left+e.clientLeft;t.bottom=t.top+e.clientHeight;t.right=t.left+e.clientWidth;t.width=e.clientWidth;t.height=e.clientHeight;t.x=t.left;t.y=t.top;return t}function getClientRectFromMixedType(e,t){return t===viewport?rectToClientRect(getViewportRect(e)):isElement(t)?getInnerBoundingClientRect(t):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e));var r=["absolute","fixed"].indexOf(getComputedStyle(e).position)>=0;var n=r&&isHTMLElement(e)?getOffsetParent(e):e;if(!isElement(n)){return[]}return t.filter((function(e){return isElement(e)&&contains(e,n)&&getNodeName(e)!=="body"&&(r?getComputedStyle(e).position!=="static":true)}))}function getClippingRect(e,t,r){var n=t==="clippingParents"?getClippingParents(e):[].concat(t);var a=[].concat(n,[r]);var i=a[0];var o=a.reduce((function(t,r){var n=getClientRectFromMixedType(e,r);t.top=max(n.top,t.top);t.right=min(n.right,t.right);t.bottom=min(n.bottom,t.bottom);t.left=max(n.left,t.left);return t}),getClientRectFromMixedType(e,i));o.width=o.right-o.left;o.height=o.bottom-o.top;o.x=o.left;o.y=o.top;return o}function computeOffsets(e){var t=e.reference,r=e.element,n=e.placement;var a=n?getBasePlacement(n):null;var i=n?getVariation(n):null;var o=t.x+t.width/2-r.width/2;var s=t.y+t.height/2-r.height/2;var f;switch(a){case top:f={x:o,y:t.y-r.height};break;case bottom:f={x:o,y:t.y+t.height};break;case right:f={x:t.x+t.width,y:s};break;case left:f={x:t.x-r.width,y:s};break;default:f={x:t.x,y:t.y}}var l=a?getMainAxisFromPlacement(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(i){case start:f[l]=f[l]-(t[c]/2-r[c]/2);break;case end:f[l]=f[l]+(t[c]/2-r[c]/2);break}}return f}function detectOverflow(e,t){if(t===void 0){t={}}var r=t,n=r.placement,a=n===void 0?e.placement:n,i=r.boundary,o=i===void 0?clippingParents:i,s=r.rootBoundary,f=s===void 0?viewport:s,l=r.elementContext,c=l===void 0?popper:l,p=r.altBoundary,u=p===void 0?false:p,d=r.padding,v=d===void 0?0:d;var m=mergePaddingObject(typeof v!=="number"?v:expandToHashMap(v,basePlacements));var g=c===popper?reference:popper;var h=e.rects.popper;var y=e.elements[u?g:c];var b=getClippingRect(isElement(y)?y:y.contextElement||getDocumentElement(e.elements.popper),o,f);var w=getBoundingClientRect(e.elements.reference);var O=computeOffsets({reference:w,element:h,strategy:"absolute",placement:a});var x=rectToClientRect(Object.assign({},h,O));var P=c===popper?x:w;var S={top:b.top-P.top+m.top,bottom:P.bottom-b.bottom+m.bottom,left:b.left-P.left+m.left,right:P.right-b.right+m.right};var E=e.modifiersData.offset;if(c===popper&&E){var M=E[a];Object.keys(S).forEach((function(e){var t=[right,bottom].indexOf(e)>=0?1:-1;var r=[top,bottom].indexOf(e)>=0?"y":"x";S[e]+=M[r]*t}))}return S}function computeAutoPlacement(e,t){if(t===void 0){t={}}var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,f=r.allowedAutoPlacements,l=f===void 0?placements:f;var c=getVariation(n);var p=c?s?variationPlacements:variationPlacements.filter((function(e){return getVariation(e)===c})):basePlacements;var u=p.filter((function(e){return l.indexOf(e)>=0}));if(u.length===0){u=p}var d=u.reduce((function(t,r){t[r]=detectOverflow(e,{placement:r,boundary:a,rootBoundary:i,padding:o})[getBasePlacement(r)];return t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto){return[]}var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,r=e.options,n=e.name;if(t.modifiersData[n]._skip){return}var a=r.mainAxis,i=a===void 0?true:a,o=r.altAxis,s=o===void 0?true:o,f=r.fallbackPlacements,l=r.padding,c=r.boundary,p=r.rootBoundary,u=r.altBoundary,d=r.flipVariations,v=d===void 0?true:d,m=r.allowedAutoPlacements;var g=t.options.placement;var h=getBasePlacement(g);var y=h===g;var b=f||(y||!v?[getOppositePlacement(g)]:getExpandedFallbackPlacements(g));var w=[g].concat(b).reduce((function(e,r){return e.concat(getBasePlacement(r)===auto?computeAutoPlacement(t,{placement:r,boundary:c,rootBoundary:p,padding:l,flipVariations:v,allowedAutoPlacements:m}):r)}),[]);var O=t.rects.reference;var x=t.rects.popper;var P=new Map;var S=true;var E=w[0];for(var M=0;M<w.length;M++){var T=w[M];var C=getBasePlacement(T);var R=getVariation(T)===start;var D=[top,bottom].indexOf(C)>=0;var B=D?"width":"height";var A=detectOverflow(t,{placement:T,boundary:c,rootBoundary:p,altBoundary:u,padding:l});var L=D?R?right:left:R?bottom:top;if(O[B]>x[B]){L=getOppositePlacement(L)}var j=getOppositePlacement(L);var W=[];if(i){W.push(A[C]<=0)}if(s){W.push(A[L]<=0,A[j]<=0)}if(W.every((function(e){return e}))){E=T;S=false;break}P.set(T,W)}if(S){var N=v?3:1;var H=function e(t){var r=w.find((function(e){var r=P.get(e);if(r){return r.slice(0,t).every((function(e){return e}))}}));if(r){E=r;return"break"}};for(var k=N;k>0;k--){var V=H(k);if(V==="break")break}}if(t.placement!==E){t.modifiersData[n]._skip=true;t.placement=E;t.reset=true}}var flip$1={name:"flip",enabled:true,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:false}};function getSideOffsets(e,t,r){if(r===void 0){r={x:0,y:0}}return{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some((function(t){return e[t]>=0}))}function hide(e){var t=e.state,r=e.name;var n=t.rects.reference;var a=t.rects.popper;var i=t.modifiersData.preventOverflow;var o=detectOverflow(t,{elementContext:"reference"});var s=detectOverflow(t,{altBoundary:true});var f=getSideOffsets(o,n);var l=getSideOffsets(s,a,i);var c=isAnySideFullyClipped(f);var p=isAnySideFullyClipped(l);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:p};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}var hide$1={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,r){var n=getBasePlacement(e);var a=[left,top].indexOf(n)>=0?-1:1;var i=typeof r==="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],s=i[1];o=o||0;s=(s||0)*a;return[left,right].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function offset(e){var t=e.state,r=e.options,n=e.name;var a=r.offset,i=a===void 0?[0,0]:a;var o=placements.reduce((function(e,r){e[r]=distanceAndSkiddingToXY(r,t.rects,i);return e}),{});var s=o[t.placement],f=s.x,l=s.y;if(t.modifiersData.popperOffsets!=null){t.modifiersData.popperOffsets.x+=f;t.modifiersData.popperOffsets.y+=l}t.modifiersData[n]=o}var offset$1={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,r=e.name;t.modifiersData[r]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:true,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,r=e.options,n=e.name;var a=r.mainAxis,i=a===void 0?true:a,o=r.altAxis,s=o===void 0?false:o,f=r.boundary,l=r.rootBoundary,c=r.altBoundary,p=r.padding,u=r.tether,d=u===void 0?true:u,v=r.tetherOffset,m=v===void 0?0:v;var g=detectOverflow(t,{boundary:f,rootBoundary:l,padding:p,altBoundary:c});var h=getBasePlacement(t.placement);var y=getVariation(t.placement);var b=!y;var w=getMainAxisFromPlacement(h);var O=getAltAxis(w);var x=t.modifiersData.popperOffsets;var P=t.rects.reference;var S=t.rects.popper;var E=typeof m==="function"?m(Object.assign({},t.rects,{placement:t.placement})):m;var M=typeof E==="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E);var T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null;var C={x:0,y:0};if(!x){return}if(i){var R;var D=w==="y"?top:left;var B=w==="y"?bottom:right;var A=w==="y"?"height":"width";var L=x[w];var j=L+g[D];var W=L-g[B];var N=d?-S[A]/2:0;var H=y===start?P[A]:S[A];var k=y===start?-S[A]:-P[A];var V=t.elements.arrow;var $=d&&V?getLayoutRect(V):{width:0,height:0};var F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject();var _=F[D];var q=F[B];var I=within(0,P[A],$[A]);var X=b?P[A]/2-N-I-_-M.mainAxis:H-I-_-M.mainAxis;var U=b?-P[A]/2+N+I+q+M.mainAxis:k+I+q+M.mainAxis;var z=t.elements.arrow&&getOffsetParent(t.elements.arrow);var Y=z?w==="y"?z.clientTop||0:z.clientLeft||0:0;var G=(R=T==null?void 0:T[w])!=null?R:0;var J=L+X-G-Y;var K=L+U-G;var Q=within(d?min(j,J):j,L,d?max(W,K):W);x[w]=Q;C[w]=Q-L}if(s){var Z;var ee=w==="x"?top:left;var te=w==="x"?bottom:right;var re=x[O];var ne=O==="y"?"height":"width";var ae=re+g[ee];var ie=re-g[te];var oe=[top,left].indexOf(h)!==-1;var se=(Z=T==null?void 0:T[O])!=null?Z:0;var fe=oe?ae:re-P[ne]-S[ne]-se+M.altAxis;var le=oe?re+P[ne]+S[ne]-se-M.altAxis:ie;var ce=d&&oe?withinMaxClamp(fe,re,le):within(d?fe:ae,re,d?le:ie);x[O]=ce;C[O]=ce-re}t.modifiersData[n]=C}var preventOverflow$1={name:"preventOverflow",enabled:true,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){if(e===getWindow(e)||!isHTMLElement(e)){return getWindowScroll(e)}else{return getHTMLElementScroll(e)}}function isElementScaled(e){var t=e.getBoundingClientRect();var r=round(t.width)/e.offsetWidth||1;var n=round(t.height)/e.offsetHeight||1;return r!==1||n!==1}function getCompositeRect(e,t,r){if(r===void 0){r=false}var n=isHTMLElement(t);var a=isHTMLElement(t)&&isElementScaled(t);var i=getDocumentElement(t);var o=getBoundingClientRect(e,a);var s={scrollLeft:0,scrollTop:0};var f={x:0,y:0};if(n||!n&&!r){if(getNodeName(t)!=="body"||isScrollParent(i)){s=getNodeScroll(t)}if(isHTMLElement(t)){f=getBoundingClientRect(t,true);f.x+=t.clientLeft;f.y+=t.clientTop}else if(i){f.x=getWindowScrollBarX(i)}}return{x:o.left+s.scrollLeft-f.x,y:o.top+s.scrollTop-f.y,width:o.width,height:o.height}}function order(e){var t=new Map;var r=new Set;var n=[];e.forEach((function(e){t.set(e.name,e)}));function a(e){r.add(e.name);var i=[].concat(e.requires||[],e.requiresIfExists||[]);i.forEach((function(e){if(!r.has(e)){var n=t.get(e);if(n){a(n)}}}));n.push(e)}e.forEach((function(e){if(!r.has(e.name)){a(e)}}));return n}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}function debounce(e){var t;return function(){if(!t){t=new Promise((function(r){Promise.resolve().then((function(){t=undefined;r(e())}))}))}return t}}function mergeByName(e){var t=e.reduce((function(e,t){var r=e[t.name];e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t;return e}),{});return Object.keys(t).map((function(e){return t[e]}))}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return!t.some((function(e){return!(e&&typeof e.getBoundingClientRect==="function")}))}function popperGenerator(e){if(e===void 0){e={}}var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,i=a===void 0?DEFAULT_OPTIONS:a;return function e(t,r,a){if(a===void 0){a=i}var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,i),modifiersData:{},elements:{reference:t,popper:r},attributes:{},styles:{}};var s=[];var f=false;var l={state:o,setOptions:function e(a){var s=typeof a==="function"?a(o.options):a;p();o.options=Object.assign({},i,o.options,s);o.scrollParents={reference:isElement(t)?listScrollParents(t):t.contextElement?listScrollParents(t.contextElement):[],popper:listScrollParents(r)};var f=orderModifiers(mergeByName([].concat(n,o.options.modifiers)));o.orderedModifiers=f.filter((function(e){return e.enabled}));c();return l.update()},forceUpdate:function e(){if(f){return}var t=o.elements,r=t.reference,n=t.popper;if(!areValidElements(r,n)){return}o.rects={reference:getCompositeRect(r,getOffsetParent(n),o.options.strategy==="fixed"),popper:getLayoutRect(n)};o.reset=false;o.placement=o.options.placement;o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var a=0;a<o.orderedModifiers.length;a++){if(o.reset===true){o.reset=false;a=-1;continue}var i=o.orderedModifiers[a],s=i.fn,c=i.options,p=c===void 0?{}:c,u=i.name;if(typeof s==="function"){o=s({state:o,options:p,name:u,instance:l})||o}}},update:debounce((function(){return new Promise((function(e){l.forceUpdate();e(o)}))})),destroy:function e(){p();f=true}};if(!areValidElements(t,r)){return l}l.setOptions(a).then((function(e){if(!f&&a.onFirstUpdate){a.onFirstUpdate(e)}}));function c(){o.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=r===void 0?{}:r,a=e.effect;if(typeof a==="function"){var i=a({state:o,name:t,instance:l,options:n});var f=function e(){};s.push(i||f)}}))}function p(){s.forEach((function(e){return e()}));s=[]}return l}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1];var createPopper$1=popperGenerator({defaultModifiers:defaultModifiers});var CSS={animation:"calcite-popper-anim",animationActive:"calcite-popper-anim--active"};function getPlacement(e,t){var r=["left","right"];var n=["start","end"];if(getElementDir(e)==="rtl"){r.reverse();n.reverse()}return t.replace(/-leading/gi,"-"+n[0]).replace(/-trailing/gi,"-"+n[1]).replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}function createPopper(e){var t=e.referenceEl,r=e.el,n=e.placement,a=e.overlayPositioning,i=a===void 0?"absolute":a,o=e.modifiers;if(!t){return null}return createPopper$1(t,r,{strategy:i,placement:getPlacement(r,n),modifiers:o})}function updatePopper(e){var t=e.el,r=e.modifiers,n=e.placement,a=e.popper;return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:e=getPlacement(t,n);return[4,a.setOptions({modifiers:r,placement:e})];case 1:i.sent();return[2]}}))}))}function hypotenuse(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}var visiblePointerSize=4;var defaultOffsetDistance=Math.ceil(hypotenuse(visiblePointerSize,visiblePointerSize));export{CSS as C,createPopper as c,defaultOffsetDistance as d,updatePopper as u};