@economic/taco 2.49.0-server.4 → 2.49.1

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 (645) hide show
  1. package/dist/components/Table3/components/Row/Editing/CreateNewRow.d.ts +0 -1
  2. package/dist/components/Table3/features/useTableEditing.d.ts +2 -2
  3. package/dist/components/Table3/types.d.ts +1 -1
  4. package/dist/esm/node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js +17 -17
  5. package/dist/esm/node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js.map +1 -1
  6. package/dist/esm/packages/taco/src/charts/components/Area/AreaChart.js +24 -32
  7. package/dist/esm/packages/taco/src/charts/components/Area/AreaChart.js.map +1 -1
  8. package/dist/esm/packages/taco/src/charts/components/Bar/BarChart.js +61 -84
  9. package/dist/esm/packages/taco/src/charts/components/Bar/BarChart.js.map +1 -1
  10. package/dist/esm/packages/taco/src/charts/components/Donut/ActiveShape.js +15 -16
  11. package/dist/esm/packages/taco/src/charts/components/Donut/ActiveShape.js.map +1 -1
  12. package/dist/esm/packages/taco/src/charts/components/Donut/CenteredLabel.js +13 -12
  13. package/dist/esm/packages/taco/src/charts/components/Donut/CenteredLabel.js.map +1 -1
  14. package/dist/esm/packages/taco/src/charts/components/Donut/DonutChart.js +68 -104
  15. package/dist/esm/packages/taco/src/charts/components/Donut/DonutChart.js.map +1 -1
  16. package/dist/esm/packages/taco/src/charts/components/Donut/Legend.js +29 -38
  17. package/dist/esm/packages/taco/src/charts/components/Donut/Legend.js.map +1 -1
  18. package/dist/esm/packages/taco/src/charts/components/Donut/util.js +2 -2
  19. package/dist/esm/packages/taco/src/charts/components/Donut/util.js.map +1 -1
  20. package/dist/esm/packages/taco/src/charts/components/Legend.js +37 -45
  21. package/dist/esm/packages/taco/src/charts/components/Legend.js.map +1 -1
  22. package/dist/esm/packages/taco/src/charts/components/Line/LineChart.js +24 -32
  23. package/dist/esm/packages/taco/src/charts/components/Line/LineChart.js.map +1 -1
  24. package/dist/esm/packages/taco/src/charts/components/ResponsiveContainer.js +3 -5
  25. package/dist/esm/packages/taco/src/charts/components/ResponsiveContainer.js.map +1 -1
  26. package/dist/esm/packages/taco/src/charts/components/Tooltip.js +25 -26
  27. package/dist/esm/packages/taco/src/charts/components/Tooltip.js.map +1 -1
  28. package/dist/esm/packages/taco/src/charts/utils/color.js +12 -13
  29. package/dist/esm/packages/taco/src/charts/utils/color.js.map +1 -1
  30. package/dist/esm/packages/taco/src/charts/utils/common.js +26 -39
  31. package/dist/esm/packages/taco/src/charts/utils/common.js.map +1 -1
  32. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +31 -30
  33. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -1
  34. package/dist/esm/packages/taco/src/components/Alert/Alert.js +9 -7
  35. package/dist/esm/packages/taco/src/components/Alert/Alert.js.map +1 -1
  36. package/dist/esm/packages/taco/src/components/AlertDialog/AlertDialog.js +13 -14
  37. package/dist/esm/packages/taco/src/components/AlertDialog/AlertDialog.js.map +1 -1
  38. package/dist/esm/packages/taco/src/components/AlertDialog/Context.js +2 -2
  39. package/dist/esm/packages/taco/src/components/AlertDialog/Context.js.map +1 -1
  40. package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js +9 -10
  41. package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js.map +1 -1
  42. package/dist/esm/packages/taco/src/components/AlertDialog/components/Footer.js +4 -4
  43. package/dist/esm/packages/taco/src/components/AlertDialog/components/Footer.js.map +1 -1
  44. package/dist/esm/packages/taco/src/components/AlertDialog/components/Trigger.js +6 -5
  45. package/dist/esm/packages/taco/src/components/AlertDialog/components/Trigger.js.map +1 -1
  46. package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js +2 -2
  47. package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js.map +1 -1
  48. package/dist/esm/packages/taco/src/components/Badge/Badge.js +25 -21
  49. package/dist/esm/packages/taco/src/components/Badge/Badge.js.map +1 -1
  50. package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js +14 -12
  51. package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js.map +1 -1
  52. package/dist/esm/packages/taco/src/components/Banner/Banner.js +10 -7
  53. package/dist/esm/packages/taco/src/components/Banner/Banner.js.map +1 -1
  54. package/dist/esm/packages/taco/src/components/Banner/util.js +3 -3
  55. package/dist/esm/packages/taco/src/components/Banner/util.js.map +1 -1
  56. package/dist/esm/packages/taco/src/components/Button/Button.js +28 -26
  57. package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -1
  58. package/dist/esm/packages/taco/src/components/Button/util.js +24 -25
  59. package/dist/esm/packages/taco/src/components/Button/util.js.map +1 -1
  60. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js +71 -75
  61. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js.map +1 -1
  62. package/dist/esm/packages/taco/src/components/Card/Card.js +15 -14
  63. package/dist/esm/packages/taco/src/components/Card/Card.js.map +1 -1
  64. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js +22 -24
  65. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
  66. package/dist/esm/packages/taco/src/components/Combobox/Combobox.js +23 -21
  67. package/dist/esm/packages/taco/src/components/Combobox/Combobox.js.map +1 -1
  68. package/dist/esm/packages/taco/src/components/Combobox/useCombobox.js +64 -76
  69. package/dist/esm/packages/taco/src/components/Combobox/useCombobox.js.map +1 -1
  70. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +57 -60
  71. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
  72. package/dist/esm/packages/taco/src/components/Datepicker/useDatepicker.js +28 -27
  73. package/dist/esm/packages/taco/src/components/Datepicker/useDatepicker.js.map +1 -1
  74. package/dist/esm/packages/taco/src/components/Dialog/Context.js +4 -4
  75. package/dist/esm/packages/taco/src/components/Dialog/Context.js.map +1 -1
  76. package/dist/esm/packages/taco/src/components/Dialog/Dialog.js +39 -54
  77. package/dist/esm/packages/taco/src/components/Dialog/Dialog.js.map +1 -1
  78. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +38 -36
  79. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -1
  80. package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js +3 -3
  81. package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js.map +1 -1
  82. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js +2 -2
  83. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js.map +1 -1
  84. package/dist/esm/packages/taco/src/components/Dialog/components/Trigger.js +6 -5
  85. package/dist/esm/packages/taco/src/components/Dialog/components/Trigger.js.map +1 -1
  86. package/dist/esm/packages/taco/src/components/Dialog/util.js +3 -7
  87. package/dist/esm/packages/taco/src/components/Dialog/util.js.map +1 -1
  88. package/dist/esm/packages/taco/src/components/Drawer/Context.js +5 -5
  89. package/dist/esm/packages/taco/src/components/Drawer/Context.js.map +1 -1
  90. package/dist/esm/packages/taco/src/components/Drawer/Drawer.js +51 -61
  91. package/dist/esm/packages/taco/src/components/Drawer/Drawer.js.map +1 -1
  92. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +145 -134
  93. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -1
  94. package/dist/esm/packages/taco/src/components/Drawer/components/Trigger.js +1 -1
  95. package/dist/esm/packages/taco/src/components/Drawer/components/Trigger.js.map +1 -1
  96. package/dist/esm/packages/taco/src/components/Drawer/util.js +5 -5
  97. package/dist/esm/packages/taco/src/components/Drawer/util.js.map +1 -1
  98. package/dist/esm/packages/taco/src/components/Field/Field.js +12 -14
  99. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  100. package/dist/esm/packages/taco/src/components/Form/Form.js +6 -7
  101. package/dist/esm/packages/taco/src/components/Form/Form.js.map +1 -1
  102. package/dist/esm/packages/taco/src/components/Group/Group.js +7 -9
  103. package/dist/esm/packages/taco/src/components/Group/Group.js.map +1 -1
  104. package/dist/esm/packages/taco/src/components/Hanger/Hanger.js +36 -37
  105. package/dist/esm/packages/taco/src/components/Hanger/Hanger.js.map +1 -1
  106. package/dist/esm/packages/taco/src/components/Header/Header.js +2 -2
  107. package/dist/esm/packages/taco/src/components/Header/Header.js.map +1 -1
  108. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js +10 -14
  109. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js.map +1 -1
  110. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Badge.js +4 -5
  111. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Badge.js.map +1 -1
  112. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js +9 -7
  113. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js.map +1 -1
  114. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js +9 -9
  115. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js.map +1 -1
  116. package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.js +46 -66
  117. package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.js.map +1 -1
  118. package/dist/esm/packages/taco/src/components/Header/components/Button.js +8 -12
  119. package/dist/esm/packages/taco/src/components/Header/components/Button.js.map +1 -1
  120. package/dist/esm/packages/taco/src/components/Header/components/Link.js +18 -22
  121. package/dist/esm/packages/taco/src/components/Header/components/Link.js.map +1 -1
  122. package/dist/esm/packages/taco/src/components/Header/components/Logo.js +4 -4
  123. package/dist/esm/packages/taco/src/components/Header/components/Logo.js.map +1 -1
  124. package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js +2 -2
  125. package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js.map +1 -1
  126. package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js +9 -10
  127. package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js.map +1 -1
  128. package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js +2 -2
  129. package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js.map +1 -1
  130. package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js +7 -5
  131. package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js.map +1 -1
  132. package/dist/esm/packages/taco/src/components/HoverCard/Primitives.js +1 -1
  133. package/dist/esm/packages/taco/src/components/HoverCard/Primitives.js.map +1 -1
  134. package/dist/esm/packages/taco/src/components/Icon/Icon.js +7 -7
  135. package/dist/esm/packages/taco/src/components/Icon/Icon.js.map +1 -1
  136. package/dist/esm/packages/taco/src/components/Icon/components/index.js +4 -4
  137. package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -1
  138. package/dist/esm/packages/taco/src/components/IconButton/IconButton.js +23 -22
  139. package/dist/esm/packages/taco/src/components/IconButton/IconButton.js.map +1 -1
  140. package/dist/esm/packages/taco/src/components/Input/Input.js +44 -45
  141. package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
  142. package/dist/esm/packages/taco/src/components/Input/util.js +5 -8
  143. package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
  144. package/dist/esm/packages/taco/src/components/Layout/Layout.js +5 -7
  145. package/dist/esm/packages/taco/src/components/Layout/Layout.js.map +1 -1
  146. package/dist/esm/packages/taco/src/components/Layout/components/Content.js +2 -2
  147. package/dist/esm/packages/taco/src/components/Layout/components/Content.js.map +1 -1
  148. package/dist/esm/packages/taco/src/components/Layout/components/Context.js +2 -4
  149. package/dist/esm/packages/taco/src/components/Layout/components/Context.js.map +1 -1
  150. package/dist/esm/packages/taco/src/components/Layout/components/Page.js +2 -2
  151. package/dist/esm/packages/taco/src/components/Layout/components/Page.js.map +1 -1
  152. package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js +27 -34
  153. package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js.map +1 -1
  154. package/dist/esm/packages/taco/src/components/Layout/components/Top.js +6 -9
  155. package/dist/esm/packages/taco/src/components/Layout/components/Top.js.map +1 -1
  156. package/dist/esm/packages/taco/src/components/List/components/Button.js +1 -1
  157. package/dist/esm/packages/taco/src/components/List/components/Button.js.map +1 -1
  158. package/dist/esm/packages/taco/src/components/List/components/Collapsible.js +7 -10
  159. package/dist/esm/packages/taco/src/components/List/components/Collapsible.js.map +1 -1
  160. package/dist/esm/packages/taco/src/components/List/components/Group.js +1 -1
  161. package/dist/esm/packages/taco/src/components/List/components/Group.js.map +1 -1
  162. package/dist/esm/packages/taco/src/components/List/components/Item.js +13 -15
  163. package/dist/esm/packages/taco/src/components/List/components/Item.js.map +1 -1
  164. package/dist/esm/packages/taco/src/components/List/components/Link.js +3 -3
  165. package/dist/esm/packages/taco/src/components/List/components/Link.js.map +1 -1
  166. package/dist/esm/packages/taco/src/components/List/components/Toggle.js +27 -29
  167. package/dist/esm/packages/taco/src/components/List/components/Toggle.js.map +1 -1
  168. package/dist/esm/packages/taco/src/components/Listbox/Listbox.js +26 -21
  169. package/dist/esm/packages/taco/src/components/Listbox/Listbox.js.map +1 -1
  170. package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js +70 -82
  171. package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js.map +1 -1
  172. package/dist/esm/packages/taco/src/components/Listbox/useListbox.js +51 -56
  173. package/dist/esm/packages/taco/src/components/Listbox/useListbox.js.map +1 -1
  174. package/dist/esm/packages/taco/src/components/Listbox/useMultiListbox.js +65 -83
  175. package/dist/esm/packages/taco/src/components/Listbox/useMultiListbox.js.map +1 -1
  176. package/dist/esm/packages/taco/src/components/Listbox/useTypeahead.js +10 -9
  177. package/dist/esm/packages/taco/src/components/Listbox/useTypeahead.js.map +1 -1
  178. package/dist/esm/packages/taco/src/components/Listbox/util.js +48 -78
  179. package/dist/esm/packages/taco/src/components/Listbox/util.js.map +1 -1
  180. package/dist/esm/packages/taco/src/components/Menu/Context.js +2 -2
  181. package/dist/esm/packages/taco/src/components/Menu/Context.js.map +1 -1
  182. package/dist/esm/packages/taco/src/components/Menu/Menu.js +26 -42
  183. package/dist/esm/packages/taco/src/components/Menu/Menu.js.map +1 -1
  184. package/dist/esm/packages/taco/src/components/Menu/components/Checkbox.js +8 -8
  185. package/dist/esm/packages/taco/src/components/Menu/components/Checkbox.js.map +1 -1
  186. package/dist/esm/packages/taco/src/components/Menu/components/Content.js +22 -28
  187. package/dist/esm/packages/taco/src/components/Menu/components/Content.js.map +1 -1
  188. package/dist/esm/packages/taco/src/components/Menu/components/Header.js +3 -3
  189. package/dist/esm/packages/taco/src/components/Menu/components/Header.js.map +1 -1
  190. package/dist/esm/packages/taco/src/components/Menu/components/Item.js +32 -32
  191. package/dist/esm/packages/taco/src/components/Menu/components/Item.js.map +1 -1
  192. package/dist/esm/packages/taco/src/components/Menu/components/Link.js +10 -10
  193. package/dist/esm/packages/taco/src/components/Menu/components/Link.js.map +1 -1
  194. package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js +16 -15
  195. package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js.map +1 -1
  196. package/dist/esm/packages/taco/src/components/Menu/components/Separator.js +1 -1
  197. package/dist/esm/packages/taco/src/components/Menu/components/Separator.js.map +1 -1
  198. package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js +7 -7
  199. package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js.map +1 -1
  200. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +5 -5
  201. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
  202. package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js +6 -6
  203. package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js.map +1 -1
  204. package/dist/esm/packages/taco/src/components/Navigation/Navigation.js +36 -41
  205. package/dist/esm/packages/taco/src/components/Navigation/Navigation.js.map +1 -1
  206. package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js +6 -6
  207. package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js.map +1 -1
  208. package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js +6 -6
  209. package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js.map +1 -1
  210. package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js +11 -14
  211. package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js.map +1 -1
  212. package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js +24 -31
  213. package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js.map +1 -1
  214. package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js +7 -7
  215. package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js.map +1 -1
  216. package/dist/esm/packages/taco/src/components/Navigation2/components/util.js +7 -9
  217. package/dist/esm/packages/taco/src/components/Navigation2/components/util.js.map +1 -1
  218. package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js +51 -48
  219. package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js.map +1 -1
  220. package/dist/esm/packages/taco/src/components/Pagination/PageNumbers.js +23 -26
  221. package/dist/esm/packages/taco/src/components/Pagination/PageNumbers.js.map +1 -1
  222. package/dist/esm/packages/taco/src/components/Pagination/Pagination.js +39 -53
  223. package/dist/esm/packages/taco/src/components/Pagination/Pagination.js.map +1 -1
  224. package/dist/esm/packages/taco/src/components/Pagination/usePagination.js +7 -17
  225. package/dist/esm/packages/taco/src/components/Pagination/usePagination.js.map +1 -1
  226. package/dist/esm/packages/taco/src/components/Pagination/usePaginationShortcuts.js +9 -8
  227. package/dist/esm/packages/taco/src/components/Pagination/usePaginationShortcuts.js.map +1 -1
  228. package/dist/esm/packages/taco/src/components/Popover/Popover.js +43 -45
  229. package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +1 -1
  230. package/dist/esm/packages/taco/src/components/Popover/Primitives.js +1 -1
  231. package/dist/esm/packages/taco/src/components/Popover/Primitives.js.map +1 -1
  232. package/dist/esm/packages/taco/src/components/Popover/util.js +1 -3
  233. package/dist/esm/packages/taco/src/components/Popover/util.js.map +1 -1
  234. package/dist/esm/packages/taco/src/components/Progress/Progress.js +11 -13
  235. package/dist/esm/packages/taco/src/components/Progress/Progress.js.map +1 -1
  236. package/dist/esm/packages/taco/src/components/Provider/Localization.js +12 -13
  237. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  238. package/dist/esm/packages/taco/src/components/Provider/Provider.js +8 -8
  239. package/dist/esm/packages/taco/src/components/Provider/Provider.js.map +1 -1
  240. package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js +47 -54
  241. package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -1
  242. package/dist/esm/packages/taco/src/components/RadioGroup/util.js +1 -7
  243. package/dist/esm/packages/taco/src/components/RadioGroup/util.js.map +1 -1
  244. package/dist/esm/packages/taco/src/components/Report/Report.js +5 -7
  245. package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -1
  246. package/dist/esm/packages/taco/src/components/Report/useReport.js +1 -1
  247. package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -1
  248. package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js +13 -17
  249. package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js.map +1 -1
  250. package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js +11 -11
  251. package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js.map +1 -1
  252. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js +39 -44
  253. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js.map +1 -1
  254. package/dist/esm/packages/taco/src/components/Select/Select.js +31 -28
  255. package/dist/esm/packages/taco/src/components/Select/Select.js.map +1 -1
  256. package/dist/esm/packages/taco/src/components/Select/useSelect.js +70 -79
  257. package/dist/esm/packages/taco/src/components/Select/useSelect.js.map +1 -1
  258. package/dist/esm/packages/taco/src/components/Select2/Select2.js +121 -154
  259. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  260. package/dist/esm/packages/taco/src/components/Select2/components/Collection.js +4 -2
  261. package/dist/esm/packages/taco/src/components/Select2/components/Collection.js.map +1 -1
  262. package/dist/esm/packages/taco/src/components/Select2/components/Context.js +2 -4
  263. package/dist/esm/packages/taco/src/components/Select2/components/Context.js.map +1 -1
  264. package/dist/esm/packages/taco/src/components/Select2/components/Create.js +41 -45
  265. package/dist/esm/packages/taco/src/components/Select2/components/Create.js.map +1 -1
  266. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +129 -145
  267. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -1
  268. package/dist/esm/packages/taco/src/components/Select2/components/Group.js +8 -8
  269. package/dist/esm/packages/taco/src/components/Select2/components/Group.js.map +1 -1
  270. package/dist/esm/packages/taco/src/components/Select2/components/Option.js +30 -29
  271. package/dist/esm/packages/taco/src/components/Select2/components/Option.js.map +1 -1
  272. package/dist/esm/packages/taco/src/components/Select2/components/Search.js +10 -9
  273. package/dist/esm/packages/taco/src/components/Select2/components/Search.js.map +1 -1
  274. package/dist/esm/packages/taco/src/components/Select2/components/Title.js +2 -2
  275. package/dist/esm/packages/taco/src/components/Select2/components/Title.js.map +1 -1
  276. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +128 -136
  277. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
  278. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js +23 -32
  279. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js.map +1 -1
  280. package/dist/esm/packages/taco/src/components/Select2/utilities.js +6 -13
  281. package/dist/esm/packages/taco/src/components/Select2/utilities.js.map +1 -1
  282. package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js +13 -16
  283. package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js.map +1 -1
  284. package/dist/esm/packages/taco/src/components/Spinner/Spinner.js +12 -17
  285. package/dist/esm/packages/taco/src/components/Spinner/Spinner.js.map +1 -1
  286. package/dist/esm/packages/taco/src/components/Switch/Switch.js +14 -14
  287. package/dist/esm/packages/taco/src/components/Switch/Switch.js.map +1 -1
  288. package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js +23 -28
  289. package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js.map +1 -1
  290. package/dist/esm/packages/taco/src/components/Table/components/PaginatedTable.js +3 -7
  291. package/dist/esm/packages/taco/src/components/Table/components/PaginatedTable.js.map +1 -1
  292. package/dist/esm/packages/taco/src/components/Table/components/Table.js +18 -22
  293. package/dist/esm/packages/taco/src/components/Table/components/Table.js.map +1 -1
  294. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +92 -100
  295. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  296. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +118 -136
  297. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
  298. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowDraggable.js +55 -55
  299. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowDraggable.js.map +1 -1
  300. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowEditing.js +41 -35
  301. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowEditing.js.map +1 -1
  302. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowSelect.js +71 -77
  303. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowSelect.js.map +1 -1
  304. package/dist/esm/packages/taco/src/components/Table/hooks/useRowCreation.js +30 -56
  305. package/dist/esm/packages/taco/src/components/Table/hooks/useRowCreation.js.map +1 -1
  306. package/dist/esm/packages/taco/src/components/Table/hooks/useTable.js +142 -151
  307. package/dist/esm/packages/taco/src/components/Table/hooks/useTable.js.map +1 -1
  308. package/dist/esm/packages/taco/src/components/Table/hooks/useTableKeyboardNavigation.js +20 -22
  309. package/dist/esm/packages/taco/src/components/Table/hooks/useTableKeyboardNavigation.js.map +1 -1
  310. package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js +12 -9
  311. package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js.map +1 -1
  312. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js +41 -41
  313. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
  314. package/dist/esm/packages/taco/src/components/Table/util/rowIndexPath.js +14 -16
  315. package/dist/esm/packages/taco/src/components/Table/util/rowIndexPath.js.map +1 -1
  316. package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js +26 -32
  317. package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js.map +1 -1
  318. package/dist/esm/packages/taco/src/components/Table/util.js +30 -37
  319. package/dist/esm/packages/taco/src/components/Table/util.js.map +1 -1
  320. package/dist/esm/packages/taco/src/components/Table3/Table3.js +10 -13
  321. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  322. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js +14 -13
  323. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js.map +1 -1
  324. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +23 -21
  325. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -1
  326. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js +17 -20
  327. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +1 -1
  328. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +75 -71
  329. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -1
  330. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js +2 -2
  331. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +1 -1
  332. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +20 -19
  333. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +1 -1
  334. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +25 -26
  335. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -1
  336. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +41 -48
  337. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -1
  338. package/dist/esm/packages/taco/src/components/Table3/components/Editing/DiscardChangesConfirmationDialog.js +8 -7
  339. package/dist/esm/packages/taco/src/components/Table3/components/Editing/DiscardChangesConfirmationDialog.js.map +1 -1
  340. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js +18 -18
  341. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js.map +1 -1
  342. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +10 -7
  343. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +1 -1
  344. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js +36 -38
  345. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js.map +1 -1
  346. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +15 -15
  347. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +1 -1
  348. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js +11 -8
  349. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js.map +1 -1
  350. package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js +208 -167
  351. package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js.map +1 -1
  352. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +50 -63
  353. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -1
  354. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +16 -18
  355. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -1
  356. package/dist/esm/packages/taco/src/components/Table3/useTable3.js +19 -25
  357. package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -1
  358. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +35 -29
  359. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  360. package/dist/esm/packages/taco/src/components/Tabs/Tabs.js +35 -34
  361. package/dist/esm/packages/taco/src/components/Tabs/Tabs.js.map +1 -1
  362. package/dist/esm/packages/taco/src/components/Tag/Tag.js +12 -12
  363. package/dist/esm/packages/taco/src/components/Tag/Tag.js.map +1 -1
  364. package/dist/esm/packages/taco/src/components/Textarea/Textarea.js +11 -8
  365. package/dist/esm/packages/taco/src/components/Textarea/Textarea.js.map +1 -1
  366. package/dist/esm/packages/taco/src/components/Toast/Toast.js +20 -19
  367. package/dist/esm/packages/taco/src/components/Toast/Toast.js.map +1 -1
  368. package/dist/esm/packages/taco/src/components/Toast/Toaster.js +96 -117
  369. package/dist/esm/packages/taco/src/components/Toast/Toaster.js.map +1 -1
  370. package/dist/esm/packages/taco/src/components/Toast/util.js +4 -6
  371. package/dist/esm/packages/taco/src/components/Toast/util.js.map +1 -1
  372. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js +9 -10
  373. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js.map +1 -1
  374. package/dist/esm/packages/taco/src/components/Tour/Tour.js +46 -49
  375. package/dist/esm/packages/taco/src/components/Tour/Tour.js.map +1 -1
  376. package/dist/esm/packages/taco/src/components/Treeview/Treeview.js +27 -33
  377. package/dist/esm/packages/taco/src/components/Treeview/Treeview.js.map +1 -1
  378. package/dist/esm/packages/taco/src/components/Truncate/Truncate.js +13 -15
  379. package/dist/esm/packages/taco/src/components/Truncate/Truncate.js.map +1 -1
  380. package/dist/esm/packages/taco/src/components/VisuallyHidden/VisuallyHidden.js +1 -1
  381. package/dist/esm/packages/taco/src/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
  382. package/dist/esm/packages/taco/src/hooks/useBoundaryOverflowDetection.js +6 -11
  383. package/dist/esm/packages/taco/src/hooks/useBoundaryOverflowDetection.js.map +1 -1
  384. package/dist/esm/packages/taco/src/hooks/useBoundingClientRectListener.js +13 -19
  385. package/dist/esm/packages/taco/src/hooks/useBoundingClientRectListener.js.map +1 -1
  386. package/dist/esm/packages/taco/src/hooks/useGlobalKeyDown.js +4 -4
  387. package/dist/esm/packages/taco/src/hooks/useGlobalKeyDown.js.map +1 -1
  388. package/dist/esm/packages/taco/src/hooks/useId.js +2 -4
  389. package/dist/esm/packages/taco/src/hooks/useId.js.map +1 -1
  390. package/dist/esm/packages/taco/src/hooks/useIntersectionObserver.js +18 -20
  391. package/dist/esm/packages/taco/src/hooks/useIntersectionObserver.js.map +1 -1
  392. package/dist/esm/packages/taco/src/hooks/useIsFormControl.js +5 -7
  393. package/dist/esm/packages/taco/src/hooks/useIsFormControl.js.map +1 -1
  394. package/dist/esm/packages/taco/src/hooks/useIsHoverStatePaused.js +5 -9
  395. package/dist/esm/packages/taco/src/hooks/useIsHoverStatePaused.js.map +1 -1
  396. package/dist/esm/packages/taco/src/hooks/useIsLargeScreen.js +1 -3
  397. package/dist/esm/packages/taco/src/hooks/useIsLargeScreen.js.map +1 -1
  398. package/dist/esm/packages/taco/src/hooks/useLazyEffect.js +2 -2
  399. package/dist/esm/packages/taco/src/hooks/useLazyEffect.js.map +1 -1
  400. package/dist/esm/packages/taco/src/hooks/useLocalStorage.js +22 -24
  401. package/dist/esm/packages/taco/src/hooks/useLocalStorage.js.map +1 -1
  402. package/dist/esm/packages/taco/src/hooks/useMatchMedia.js +6 -13
  403. package/dist/esm/packages/taco/src/hooks/useMatchMedia.js.map +1 -1
  404. package/dist/esm/packages/taco/src/hooks/useMergedRef.js +3 -3
  405. package/dist/esm/packages/taco/src/hooks/useMergedRef.js.map +1 -1
  406. package/dist/esm/packages/taco/src/hooks/usePrevious.js +2 -2
  407. package/dist/esm/packages/taco/src/hooks/usePrevious.js.map +1 -1
  408. package/dist/esm/packages/taco/src/primitives/BubbleSelect.js +14 -14
  409. package/dist/esm/packages/taco/src/primitives/BubbleSelect.js.map +1 -1
  410. package/dist/esm/packages/taco/src/primitives/Button.js +13 -16
  411. package/dist/esm/packages/taco/src/primitives/Button.js.map +1 -1
  412. package/dist/esm/packages/taco/src/primitives/Collection/components/Root.js +49 -53
  413. package/dist/esm/packages/taco/src/primitives/Collection/components/Root.js.map +1 -1
  414. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Context.js +2 -4
  415. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Context.js.map +1 -1
  416. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Group.js +5 -9
  417. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Group.js.map +1 -1
  418. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Option.js +18 -16
  419. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Option.js.map +1 -1
  420. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Root.js +40 -47
  421. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Root.js.map +1 -1
  422. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Title.js +10 -9
  423. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Title.js.map +1 -1
  424. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js +20 -22
  425. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js.map +1 -1
  426. package/dist/esm/packages/taco/src/primitives/Sortable/components/Item.js +27 -24
  427. package/dist/esm/packages/taco/src/primitives/Sortable/components/Item.js.map +1 -1
  428. package/dist/esm/packages/taco/src/primitives/Sortable/components/List.js +10 -11
  429. package/dist/esm/packages/taco/src/primitives/Sortable/components/List.js.map +1 -1
  430. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +19 -22
  431. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -1
  432. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js +22 -25
  433. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +1 -1
  434. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js +7 -7
  435. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -1
  436. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js +14 -30
  437. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +1 -1
  438. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js +19 -18
  439. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +1 -1
  440. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js +34 -34
  441. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -1
  442. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js +12 -10
  443. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +1 -1
  444. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js +18 -19
  445. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -1
  446. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js +40 -42
  447. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -1
  448. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +7 -5
  449. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -1
  450. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js +24 -19
  451. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -1
  452. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js +55 -56
  453. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -1
  454. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js +23 -27
  455. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -1
  456. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js +16 -13
  457. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -1
  458. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js +87 -86
  459. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -1
  460. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js +11 -14
  461. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +1 -1
  462. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js +58 -85
  463. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -1
  464. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js +20 -18
  465. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +1 -1
  466. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js +3 -3
  467. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +1 -1
  468. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js +6 -11
  469. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +1 -1
  470. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js +49 -58
  471. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -1
  472. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js +32 -28
  473. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -1
  474. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js +30 -35
  475. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -1
  476. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js +1 -1
  477. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +1 -1
  478. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +11 -11
  479. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -1
  480. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/FilterContext.js +1 -1
  481. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/FilterContext.js.map +1 -1
  482. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js +22 -23
  483. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -1
  484. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js +39 -54
  485. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -1
  486. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js +37 -39
  487. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +1 -1
  488. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js +16 -20
  489. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -1
  490. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js +15 -16
  491. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -1
  492. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js +41 -50
  493. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -1
  494. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js +9 -13
  495. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +1 -1
  496. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js +51 -57
  497. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -1
  498. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +67 -71
  499. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +1 -1
  500. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js +37 -40
  501. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -1
  502. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js +44 -64
  503. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -1
  504. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js +51 -62
  505. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -1
  506. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js +6 -6
  507. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -1
  508. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js +5 -13
  509. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js.map +1 -1
  510. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js +74 -90
  511. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -1
  512. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyle.js +15 -15
  513. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyle.js.map +1 -1
  514. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleColumnFreezing.js +41 -31
  515. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleColumnFreezing.js.map +1 -1
  516. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleGrid.js +30 -31
  517. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleGrid.js.map +1 -1
  518. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js +3 -3
  519. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +1 -1
  520. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +15 -14
  521. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -1
  522. package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js +2 -2
  523. package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js.map +1 -1
  524. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js +38 -44
  525. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js.map +1 -1
  526. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader2.js +56 -64
  527. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader2.js.map +1 -1
  528. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnFreezing.js +6 -11
  529. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnFreezing.js.map +1 -1
  530. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnOrdering.js +2 -5
  531. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnOrdering.js.map +1 -1
  532. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFontSize.js +5 -15
  533. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFontSize.js.map +1 -1
  534. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFooter.js +2 -5
  535. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFooter.js.map +1 -1
  536. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTablePrinting.js +16 -26
  537. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTablePrinting.js.map +1 -1
  538. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActions.js +3 -9
  539. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActions.js.map +1 -1
  540. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +23 -42
  541. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  542. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowClick.js +6 -9
  543. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowClick.js.map +1 -1
  544. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js +4 -9
  545. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map +1 -1
  546. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js +2 -5
  547. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map +1 -1
  548. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js +3 -9
  549. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js.map +1 -1
  550. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGoto.js +2 -5
  551. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGoto.js.map +1 -1
  552. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGroups.js +1 -1
  553. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGroups.js.map +1 -1
  554. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowHeight.js +5 -15
  555. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowHeight.js.map +1 -1
  556. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowSelection.js +9 -14
  557. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowSelection.js.map +1 -1
  558. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js +13 -25
  559. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js.map +1 -1
  560. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableServerLoading.js +26 -47
  561. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableServerLoading.js.map +1 -1
  562. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSettings.js +24 -34
  563. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSettings.js.map +1 -1
  564. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableDataListener.js +6 -7
  565. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableDataListener.js.map +1 -1
  566. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFilterListener.js +3 -3
  567. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFilterListener.js.map +1 -1
  568. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFontSizeListener.js +16 -20
  569. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFontSizeListener.js.map +1 -1
  570. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowHeightListener.js +2 -2
  571. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowHeightListener.js.map +1 -1
  572. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js +4 -6
  573. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js.map +1 -1
  574. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js +8 -8
  575. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js.map +1 -1
  576. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js +6 -6
  577. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js.map +1 -1
  578. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +6 -8
  579. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -1
  580. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableShortcutsListener.js +17 -17
  581. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableShortcutsListener.js.map +1 -1
  582. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSortingListener.js +2 -2
  583. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSortingListener.js.map +1 -1
  584. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +56 -56
  585. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  586. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/columns.js +30 -59
  587. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/columns.js.map +1 -1
  588. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/dataTypes.js +8 -8
  589. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/dataTypes.js.map +1 -1
  590. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/filtering.js +19 -33
  591. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/filtering.js.map +1 -1
  592. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +11 -11
  593. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
  594. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/search.js +20 -24
  595. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/search.js.map +1 -1
  596. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +7 -6
  597. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -1
  598. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +107 -139
  599. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  600. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/sorting.js +1 -3
  601. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/sorting.js.map +1 -1
  602. package/dist/esm/packages/taco/src/types.js +1 -1
  603. package/dist/esm/packages/taco/src/types.js.map +1 -1
  604. package/dist/esm/packages/taco/src/utils/aria.js +2 -2
  605. package/dist/esm/packages/taco/src/utils/aria.js.map +1 -1
  606. package/dist/esm/packages/taco/src/utils/date.js +23 -47
  607. package/dist/esm/packages/taco/src/utils/date.js.map +1 -1
  608. package/dist/esm/packages/taco/src/utils/debounce.js +4 -10
  609. package/dist/esm/packages/taco/src/utils/debounce.js.map +1 -1
  610. package/dist/esm/packages/taco/src/utils/device.js +2 -4
  611. package/dist/esm/packages/taco/src/utils/device.js.map +1 -1
  612. package/dist/esm/packages/taco/src/utils/dom.js +23 -29
  613. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  614. package/dist/esm/packages/taco/src/utils/hooks/useDraggable.js +38 -40
  615. package/dist/esm/packages/taco/src/utils/hooks/useDraggable.js.map +1 -1
  616. package/dist/esm/packages/taco/src/utils/hooks/useDropTarget.js +7 -9
  617. package/dist/esm/packages/taco/src/utils/hooks/useDropTarget.js.map +1 -1
  618. package/dist/esm/packages/taco/src/utils/hooks/useListKeyboardNavigation.js +9 -20
  619. package/dist/esm/packages/taco/src/utils/hooks/useListKeyboardNavigation.js.map +1 -1
  620. package/dist/esm/packages/taco/src/utils/hooks/useListScrollTo.js +9 -9
  621. package/dist/esm/packages/taco/src/utils/hooks/useListScrollTo.js.map +1 -1
  622. package/dist/esm/packages/taco/src/utils/hooks/useOnClickOutside.js +6 -8
  623. package/dist/esm/packages/taco/src/utils/hooks/useOnClickOutside.js.map +1 -1
  624. package/dist/esm/packages/taco/src/utils/hooks/useTimer.js +11 -16
  625. package/dist/esm/packages/taco/src/utils/hooks/useTimer.js.map +1 -1
  626. package/dist/esm/packages/taco/src/utils/hooks/useTruncated.js +6 -11
  627. package/dist/esm/packages/taco/src/utils/hooks/useTruncated.js.map +1 -1
  628. package/dist/esm/packages/taco/src/utils/input.js +7 -10
  629. package/dist/esm/packages/taco/src/utils/input.js.map +1 -1
  630. package/dist/esm/packages/taco/src/utils/keyboard.js +5 -8
  631. package/dist/esm/packages/taco/src/utils/keyboard.js.map +1 -1
  632. package/dist/esm/packages/taco/src/utils/mergeRefs.js +2 -2
  633. package/dist/esm/packages/taco/src/utils/mergeRefs.js.map +1 -1
  634. package/dist/esm/packages/taco/src/utils/tailwind.js +5 -5
  635. package/dist/esm/packages/taco/src/utils/tailwind.js.map +1 -1
  636. package/dist/esm/packages/taco/tailwind.colors.js +1 -1
  637. package/dist/esm/packages/taco/tailwind.colors.js.map +1 -1
  638. package/dist/primitives/Table/useTableManager/listeners/useTableDataListener.d.ts +1 -1
  639. package/dist/taco.cjs.development.js +6928 -7878
  640. package/dist/taco.cjs.development.js.map +1 -1
  641. package/dist/taco.cjs.production.min.js +1 -1
  642. package/dist/taco.cjs.production.min.js.map +1 -1
  643. package/package.json +3 -2
  644. package/dist/esm/_virtual/_rollupPluginBabelHelpers.js +0 -63
  645. package/dist/esm/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
@@ -5,7 +5,6 @@ declare type CreateNewRowProps<TType = unknown> = {
5
5
  buttonRef: React.Ref<HTMLButtonElement>;
6
6
  isScrolled: boolean;
7
7
  onEditingCreate?: Table3EditingCreateHandler<TType>;
8
- scrollToIndex: (index: number) => void;
9
8
  table: ReactTable<TType>;
10
9
  tableMeta: ReactTableMeta<TType>;
11
10
  };
@@ -29,9 +29,9 @@ export declare function useTableEditing<TType = unknown>(isEnabled: boolean | un
29
29
  isEditing: boolean;
30
30
  isDetailedMode: boolean;
31
31
  toggleDetailedMode: React.Dispatch<React.SetStateAction<boolean>>;
32
- toggleEditing: <T_9 extends TType>(enabled: React.SetStateAction<boolean>, table: ReactTable<T_9>, scrollToIndex: (index: number) => void, doSave?: boolean) => void;
32
+ toggleEditing: <T_9 extends TType>(enabled: React.SetStateAction<boolean>, table: ReactTable<T_9>, scrollToIndex: (index: number) => void) => void;
33
33
  lastFocusedCellIndex: number | undefined;
34
34
  setLastFocusedCellIndex: React.Dispatch<React.SetStateAction<number | undefined>>;
35
- createRow: <T_10 extends TType>(table: ReactTable<T_10>, scrollToIndex: (index: number) => void, row?: Partial<T_10> | undefined) => Promise<void>;
35
+ createRow: <T_10 extends TType>(table: ReactTable<T_10>, row?: Partial<T_10> | undefined) => Promise<void>;
36
36
  createRowButtonRef: React.RefObject<HTMLButtonElement>;
37
37
  };
@@ -7,7 +7,7 @@ export declare type Table3Ref = TableRef & {
7
7
  };
8
8
  export declare type Table3EditingChangeHandler<TType = unknown> = (accessor: string, value: unknown, row: TType, prevRow: TType) => Promise<Partial<TType>> | undefined;
9
9
  export declare type Table3EditingCreateHandler<TType = unknown> = () => Partial<TType>;
10
- export declare type Table3EditingDiscardHandler = () => Partial<void>;
10
+ export declare type Table3EditingDiscardHandler = () => void;
11
11
  export declare type Table3EditingSaveHandler<TType = unknown> = (row: TType) => Promise<void>;
12
12
  export declare type Table3EditingValidatorFn<TType = unknown> = (row: TType) => Promise<Partial<Record<keyof TType, string>> | undefined> | Partial<Record<keyof TType, string>> | undefined;
13
13
  export interface Table3FeatureProps<TType = unknown> extends TableFeatureProps<TType> {
@@ -1,11 +1,11 @@
1
1
  // A type of promise-like that resolves synchronously and supports only one observer
2
- var _Pact = /*#__PURE__*/function () {
2
+ const _Pact = /*#__PURE__*/function () {
3
3
  function _Pact() {}
4
4
  _Pact.prototype.then = function (onFulfilled, onRejected) {
5
- var result = new _Pact();
6
- var state = this.s;
5
+ const result = new _Pact();
6
+ const state = this.s;
7
7
  if (state) {
8
- var callback = state & 1 ? onFulfilled : onRejected;
8
+ const callback = state & 1 ? onFulfilled : onRejected;
9
9
  if (callback) {
10
10
  try {
11
11
  _settle(result, 1, callback(this.v));
@@ -19,7 +19,7 @@ var _Pact = /*#__PURE__*/function () {
19
19
  }
20
20
  this.o = function (_this) {
21
21
  try {
22
- var value = _this.v;
22
+ const value = _this.v;
23
23
  if (_this.s & 1) {
24
24
  _settle(result, 1, onFulfilled ? onFulfilled(value) : value);
25
25
  } else if (onRejected) {
@@ -56,7 +56,7 @@ function _settle(pact, state, value) {
56
56
  }
57
57
  pact.s = state;
58
58
  pact.v = value;
59
- var observer = pact.o;
59
+ const observer = pact.o;
60
60
  if (observer) {
61
61
  observer(pact);
62
62
  }
@@ -96,13 +96,17 @@ function _forTo(array, body, check) {
96
96
  _cycle();
97
97
  return pact;
98
98
  }
99
- var _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = /*#__PURE__*/Symbol("Symbol.iterator")) : "@@iterator";
99
+ const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = /*#__PURE__*/Symbol("Symbol.iterator")) : "@@iterator";
100
100
 
101
101
  // Asynchronously iterate through an object's values
102
102
  // Uses for...of if the runtime supports it, otherwise iterates until length on a copy
103
103
  function _forOf(target, body, check) {
104
104
  if (typeof target[_iteratorSymbol] === "function") {
105
- var _cycle = function _cycle(result) {
105
+ var iterator = target[_iteratorSymbol](),
106
+ step,
107
+ pact,
108
+ reject;
109
+ function _cycle(result) {
106
110
  try {
107
111
  while (!(step = iterator.next()).done && (!check || !check())) {
108
112
  result = body(step.value);
@@ -123,17 +127,13 @@ function _forOf(target, body, check) {
123
127
  } catch (e) {
124
128
  _settle(pact || (pact = new _Pact()), 2, e);
125
129
  }
126
- };
127
- var iterator = target[_iteratorSymbol](),
128
- step,
129
- pact,
130
- reject;
130
+ }
131
131
  _cycle();
132
- if (iterator["return"]) {
133
- var _fixup = function _fixup(value) {
132
+ if (iterator.return) {
133
+ var _fixup = function (value) {
134
134
  try {
135
135
  if (!step.done) {
136
- iterator["return"]();
136
+ iterator.return();
137
137
  }
138
138
  } catch (e) {}
139
139
  return value;
@@ -160,7 +160,7 @@ function _forOf(target, body, check) {
160
160
  return body(values[i]);
161
161
  }, check);
162
162
  }
163
- var _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = /*#__PURE__*/Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
163
+ const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = /*#__PURE__*/Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
164
164
 
165
165
  // Asynchronously call a function and send errors to recovery continuation
166
166
  function _catch(body, recover) {
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.mjs.js","sources":["../../../../../../node_modules/babel-plugin-transform-async-to-promises/helpers.mjs"],"sourcesContent":["// A type of promise-like that resolves synchronously and supports only one observer\nexport const _Pact = /*#__PURE__*/(function() {\n\tfunction _Pact() {}\n\t_Pact.prototype.then = function(onFulfilled, onRejected) {\n\t\tconst result = new _Pact();\n\t\tconst state = this.s;\n\t\tif (state) {\n\t\t\tconst callback = state & 1 ? onFulfilled : onRejected;\n\t\t\tif (callback) {\n\t\t\t\ttry {\n\t\t\t\t\t_settle(result, 1, callback(this.v));\n\t\t\t\t} catch (e) {\n\t\t\t\t\t_settle(result, 2, e);\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t} else {\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}\n\t\tthis.o = function(_this) {\n\t\t\ttry {\n\t\t\t\tconst value = _this.v;\n\t\t\t\tif (_this.s & 1) {\n\t\t\t\t\t_settle(result, 1, onFulfilled ? onFulfilled(value) : value);\n\t\t\t\t} else if (onRejected) {\n\t\t\t\t\t_settle(result, 1, onRejected(value));\n\t\t\t\t} else {\n\t\t\t\t\t_settle(result, 2, value);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\t_settle(result, 2, e);\n\t\t\t}\n\t\t};\n\t\treturn result;\n\t}\n\treturn _Pact;\n})();\n\n// Settles a pact synchronously\nexport function _settle(pact, state, value) {\n\tif (!pact.s) {\n\t\tif (value instanceof _Pact) {\n\t\t\tif (value.s) {\n\t\t\t\tif (state & 1) {\n\t\t\t\t\tstate = value.s;\n\t\t\t\t}\n\t\t\t\tvalue = value.v;\n\t\t\t} else {\n\t\t\t\tvalue.o = _settle.bind(null, pact, state);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (value && value.then) {\n\t\t\tvalue.then(_settle.bind(null, pact, state), _settle.bind(null, pact, 2));\n\t\t\treturn;\n\t\t}\n\t\tpact.s = state;\n\t\tpact.v = value;\n\t\tconst observer = pact.o;\n\t\tif (observer) {\n\t\t\tobserver(pact);\n\t\t}\n\t}\n}\n\nexport function _isSettledPact(thenable) {\n\treturn thenable instanceof _Pact && thenable.s & 1;\n}\n\n// Converts argument to a function that always returns a Promise\nexport function _async(f) {\n\treturn function() {\n\t\tfor (var args = [], i = 0; i < arguments.length; i++) {\n\t\t\targs[i] = arguments[i];\n\t\t}\n\t\ttry {\n\t\t\treturn Promise.resolve(f.apply(this, args));\n\t\t} catch(e) {\n\t\t\treturn Promise.reject(e);\n\t\t}\n\t}\n}\n\n// Awaits on a value that may or may not be a Promise (equivalent to the await keyword in ES2015, with continuations passed explicitly)\nexport function _await(value, then, direct) {\n\tif (direct) {\n\t\treturn then ? then(value) : value;\n\t}\n\tif (!value || !value.then) {\n\t\tvalue = Promise.resolve(value);\n\t}\n\treturn then ? value.then(then) : value;\n}\n\n// Awaits on a value that may or may not be a Promise, then ignores it\nexport function _awaitIgnored(value, direct) {\n\tif (!direct) {\n\t\treturn value && value.then ? value.then(_empty) : Promise.resolve();\n\t}\n}\n\n// Proceeds after a value has resolved, or proceeds immediately if the value is not thenable\nexport function _continue(value, then) {\n\treturn value && value.then ? value.then(then) : then(value);\n}\n\n// Proceeds after a value has resolved, or proceeds immediately if the value is not thenable\nexport function _continueIgnored(value) {\n\tif (value && value.then) {\n\t\treturn value.then(_empty);\n\t}\n}\n\n// Asynchronously iterate through an object that has a length property, passing the index as the first argument to the callback (even as the length property changes)\nexport function _forTo(array, body, check) {\n\tvar i = -1, pact, reject;\n\tfunction _cycle(result) {\n\t\ttry {\n\t\t\twhile (++i < array.length && (!check || !check())) {\n\t\t\t\tresult = body(i);\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\t\tresult = result.v;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pact) {\n\t\t\t\t_settle(pact, 1, result);\n\t\t\t} else {\n\t\t\t\tpact = result;\n\t\t\t}\n\t\t} catch (e) {\n\t\t\t_settle(pact || (pact = new _Pact()), 2, e);\n\t\t}\n\t}\n\t_cycle();\n\treturn pact;\n}\n\n// Asynchronously iterate through an object's properties (including properties inherited from the prototype)\n// Uses a snapshot of the object's properties\nexport function _forIn(target, body, check) {\n\tvar keys = [];\n\tfor (var key in target) {\n\t\tkeys.push(key);\n\t}\n\treturn _forTo(keys, function(i) { return body(keys[i]); }, check);\n}\n\n// Asynchronously iterate through an object's own properties (excluding properties inherited from the prototype)\n// Uses a snapshot of the object's properties\nexport function _forOwn(target, body, check) {\n\tvar keys = [];\n\tfor (var key in target) {\n\t\tif (Object.prototype.hasOwnProperty.call(target, key)) {\n\t\t\tkeys.push(key);\n\t\t}\n\t}\n\treturn _forTo(keys, function(i) { return body(keys[i]); }, check);\n}\n\nexport const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== \"undefined\" ? (Symbol.iterator || (Symbol.iterator = Symbol(\"Symbol.iterator\"))) : \"@@iterator\";\n\n// Asynchronously iterate through an object's values\n// Uses for...of if the runtime supports it, otherwise iterates until length on a copy\nexport function _forOf(target, body, check) {\n\tif (typeof target[_iteratorSymbol] === \"function\") {\n\t\tvar iterator = target[_iteratorSymbol](), step, pact, reject;\n\t\tfunction _cycle(result) {\n\t\t\ttry {\n\t\t\t\twhile (!(step = iterator.next()).done && (!check || !check())) {\n\t\t\t\t\tresult = body(step.value);\n\t\t\t\t\tif (result && result.then) {\n\t\t\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\t\t\tresult = result.v;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresult.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (pact) {\n\t\t\t\t\t_settle(pact, 1, result);\n\t\t\t\t} else {\n\t\t\t\t\tpact = result;\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\t_settle(pact || (pact = new _Pact()), 2, e);\n\t\t\t}\n\t\t}\n\t\t_cycle();\n\t\tif (iterator.return) {\n\t\t\tvar _fixup = function(value) {\n\t\t\t\ttry {\n\t\t\t\t\tif (!step.done) {\n\t\t\t\t\t\titerator.return();\n\t\t\t\t\t}\n\t\t\t\t} catch(e) {\n\t\t\t\t}\n\t\t\t\treturn value;\n\t\t\t}\n\t\t\tif (pact && pact.then) {\n\t\t\t\treturn pact.then(_fixup, function(e) {\n\t\t\t\t\tthrow _fixup(e);\n\t\t\t\t});\n\t\t\t}\n\t\t\t_fixup();\n\t\t}\n\t\treturn pact;\n\t}\n\t// No support for Symbol.iterator\n\tif (!(\"length\" in target)) {\n\t\tthrow new TypeError(\"Object is not iterable\");\n\t}\n\t// Handle live collections properly\n\tvar values = [];\n\tfor (var i = 0; i < target.length; i++) {\n\t\tvalues.push(target[i]);\n\t}\n\treturn _forTo(values, function(i) { return body(values[i]); }, check);\n}\n\nexport const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== \"undefined\" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol(\"Symbol.asyncIterator\"))) : \"@@asyncIterator\";\n\n// Asynchronously iterate on a value using it's async iterator if present, or its synchronous iterator if missing\nexport function _forAwaitOf(target, body, check) {\n\tif (typeof target[_asyncIteratorSymbol] === \"function\") {\n\t\tvar pact = new _Pact();\n\t\tvar iterator = target[_asyncIteratorSymbol]();\n\t\titerator.next().then(_resumeAfterNext).then(void 0, _reject);\n\t\treturn pact;\n\t\tfunction _resumeAfterBody(result) {\n\t\t\tif (check && check()) {\n\t\t\t\treturn _settle(pact, 1, iterator.return ? iterator.return().then(function() { return result; }) : result);\n\t\t\t}\n\t\t\titerator.next().then(_resumeAfterNext).then(void 0, _reject);\n\t\t}\n\t\tfunction _resumeAfterNext(step) {\n\t\t\tif (step.done) {\n\t\t\t\t_settle(pact, 1);\n\t\t\t} else {\n\t\t\t\tPromise.resolve(body(step.value)).then(_resumeAfterBody).then(void 0, _reject);\n\t\t\t}\n\t\t}\n\t\tfunction _reject(error) {\n\t\t\t_settle(pact, 2, iterator.return ? iterator.return().then(function() { return error; }) : error);\n\t\t}\n\t}\n\treturn Promise.resolve(_forOf(target, function(value) { return Promise.resolve(value).then(body); }, check));\n}\n\n// Asynchronously implement a generic for loop\nexport function _for(test, update, body) {\n\tvar stage;\n\tfor (;;) {\n\t\tvar shouldContinue = test();\n\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\tshouldContinue = shouldContinue.v;\n\t\t}\n\t\tif (!shouldContinue) {\n\t\t\treturn result;\n\t\t}\n\t\tif (shouldContinue.then) {\n\t\t\tstage = 0;\n\t\t\tbreak;\n\t\t}\n\t\tvar result = body();\n\t\tif (result && result.then) {\n\t\t\tif (_isSettledPact(result)) {\n\t\t\t\tresult = result.s;\n\t\t\t} else {\n\t\t\t\tstage = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (update) {\n\t\t\tvar updateValue = update();\n\t\t\tif (updateValue && updateValue.then && !_isSettledPact(updateValue)) {\n\t\t\t\tstage = 2;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tvar pact = new _Pact();\n\tvar reject = _settle.bind(null, pact, 2);\n\t(stage === 0 ? shouldContinue.then(_resumeAfterTest) : stage === 1 ? result.then(_resumeAfterBody) : updateValue.then(_resumeAfterUpdate)).then(void 0, reject);\n\treturn pact;\n\tfunction _resumeAfterBody(value) {\n\t\tresult = value;\n\t\tdo {\n\t\t\tif (update) {\n\t\t\t\tupdateValue = update();\n\t\t\t\tif (updateValue && updateValue.then && !_isSettledPact(updateValue)) {\n\t\t\t\t\tupdateValue.then(_resumeAfterUpdate).then(void 0, reject);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tshouldContinue = test();\n\t\t\tif (!shouldContinue || (_isSettledPact(shouldContinue) && !shouldContinue.v)) {\n\t\t\t\t_settle(pact, 1, result);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (shouldContinue.then) {\n\t\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tresult = body();\n\t\t\tif (_isSettledPact(result)) {\n\t\t\t\tresult = result.v;\n\t\t\t}\n\t\t} while (!result || !result.then);\n\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t}\n\tfunction _resumeAfterTest(shouldContinue) {\n\t\tif (shouldContinue) {\n\t\t\tresult = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t} else {\n\t\t\t\t_resumeAfterBody(result);\n\t\t\t}\n\t\t} else {\n\t\t\t_settle(pact, 1, result);\n\t\t}\n\t}\n\tfunction _resumeAfterUpdate() {\n\t\tif (shouldContinue = test()) {\n\t\t\tif (shouldContinue.then) {\n\t\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t} else {\n\t\t\t\t_resumeAfterTest(shouldContinue);\n\t\t\t}\n\t\t} else {\n\t\t\t_settle(pact, 1, result);\n\t\t}\n\t}\n}\n\n// Asynchronously implement a do ... while loop\nexport function _do(body, test) {\n\tvar awaitBody;\n\tdo {\n\t\tvar result = body();\n\t\tif (result && result.then) {\n\t\t\tif (_isSettledPact(result)) {\n\t\t\t\tresult = result.v;\n\t\t\t} else {\n\t\t\t\tawaitBody = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tvar shouldContinue = test();\n\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\tshouldContinue = shouldContinue.v;\n\t\t}\n\t\tif (!shouldContinue) {\n\t\t\treturn result;\n\t\t}\n\t} while (!shouldContinue.then);\n\tconst pact = new _Pact();\n\tconst reject = _settle.bind(null, pact, 2);\n\t(awaitBody ? result.then(_resumeAfterBody) : shouldContinue.then(_resumeAfterTest)).then(void 0, reject);\n\treturn pact;\n\tfunction _resumeAfterBody(value) {\n\t\tresult = value;\n\t\tfor (;;) {\n\t\t\tshouldContinue = test();\n\t\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\t\tshouldContinue = shouldContinue.v;\n\t\t\t}\n\t\t\tif (!shouldContinue) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (shouldContinue.then) {\n\t\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tresult = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\tresult = result.v;\n\t\t\t\t} else {\n\t\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t_settle(pact, 1, result);\n\t}\n\tfunction _resumeAfterTest(shouldContinue) {\n\t\tif (shouldContinue) {\n\t\t\tdo {\n\t\t\t\tresult = body();\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\t\tresult = result.v;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tshouldContinue = test();\n\t\t\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\t\t\tshouldContinue = shouldContinue.v;\n\t\t\t\t}\n\t\t\t\tif (!shouldContinue) {\n\t\t\t\t\t_settle(pact, 1, result);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} while (!shouldContinue.then);\n\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t} else {\n\t\t\t_settle(pact, 1, result);\n\t\t}\n\t}\n}\n\n// Asynchronously implement a switch statement\nexport function _switch(discriminant, cases) {\n\tvar dispatchIndex = -1;\n\tvar awaitBody;\n\touter: {\n\t\tfor (var i = 0; i < cases.length; i++) {\n\t\t\tvar test = cases[i][0];\n\t\t\tif (test) {\n\t\t\t\tvar testValue = test();\n\t\t\t\tif (testValue && testValue.then) {\n\t\t\t\t\tbreak outer;\n\t\t\t\t}\n\t\t\t\tif (testValue === discriminant) {\n\t\t\t\t\tdispatchIndex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Found the default case, set it as the pending dispatch case\n\t\t\t\tdispatchIndex = i;\n\t\t\t}\n\t\t}\n\t\tif (dispatchIndex !== -1) {\n\t\t\tdo {\n\t\t\t\tvar body = cases[dispatchIndex][1];\n\t\t\t\twhile (!body) {\n\t\t\t\t\tdispatchIndex++;\n\t\t\t\t\tbody = cases[dispatchIndex][1];\n\t\t\t\t}\n\t\t\t\tvar result = body();\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tawaitBody = true;\n\t\t\t\t\tbreak outer;\n\t\t\t\t}\n\t\t\t\tvar fallthroughCheck = cases[dispatchIndex][2];\n\t\t\t\tdispatchIndex++;\n\t\t\t} while (fallthroughCheck && !fallthroughCheck());\n\t\t\treturn result;\n\t\t}\n\t}\n\tconst pact = new _Pact();\n\tconst reject = _settle.bind(null, pact, 2);\n\t(awaitBody ? result.then(_resumeAfterBody) : testValue.then(_resumeAfterTest)).then(void 0, reject);\n\treturn pact;\n\tfunction _resumeAfterTest(value) {\n\t\tfor (;;) {\n\t\t\tif (value === discriminant) {\n\t\t\t\tdispatchIndex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (++i === cases.length) {\n\t\t\t\tif (dispatchIndex !== -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\t_settle(pact, 1, result);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttest = cases[i][0];\n\t\t\tif (test) {\n\t\t\t\tvalue = test();\n\t\t\t\tif (value && value.then) {\n\t\t\t\t\tvalue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdispatchIndex = i;\n\t\t\t}\n\t\t}\n\t\tdo {\n\t\t\tvar body = cases[dispatchIndex][1];\n\t\t\twhile (!body) {\n\t\t\t\tdispatchIndex++;\n\t\t\t\tbody = cases[dispatchIndex][1];\n\t\t\t}\n\t\t\tvar result = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar fallthroughCheck = cases[dispatchIndex][2];\n\t\t\tdispatchIndex++;\n\t\t} while (fallthroughCheck && !fallthroughCheck());\n\t\t_settle(pact, 1, result);\n\t}\n\tfunction _resumeAfterBody(result) {\n\t\tfor (;;) {\n\t\t\tvar fallthroughCheck = cases[dispatchIndex][2];\n\t\t\tif (!fallthroughCheck || fallthroughCheck()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdispatchIndex++;\n\t\t\tvar body = cases[dispatchIndex][1];\n\t\t\twhile (!body) {\n\t\t\t\tdispatchIndex++;\n\t\t\t\tbody = cases[dispatchIndex][1];\n\t\t\t}\n\t\t\tresult = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t_settle(pact, 1, result);\n\t}\n}\n\n// Asynchronously call a function and pass the result to explicitly passed continuations\nexport function _call(body, then, direct) {\n\tif (direct) {\n\t\treturn then ? then(body()) : body();\n\t}\n\ttry {\n\t\tvar result = Promise.resolve(body());\n\t\treturn then ? result.then(then) : result;\n\t} catch (e) {\n\t\treturn Promise.reject(e);\n\t}\n}\n\n// Asynchronously call a function and swallow the result\nexport function _callIgnored(body, direct) {\n\treturn _call(body, _empty, direct);\n}\n\n// Asynchronously call a function and pass the result to explicitly passed continuations\nexport function _invoke(body, then) {\n\tvar result = body();\n\tif (result && result.then) {\n\t\treturn result.then(then);\n\t}\n\treturn then(result);\n}\n\n// Asynchronously call a function and swallow the result\nexport function _invokeIgnored(body) {\n\tvar result = body();\n\tif (result && result.then) {\n\t\treturn result.then(_empty);\n\t}\n}\n\n// Asynchronously call a function and send errors to recovery continuation\nexport function _catch(body, recover) {\n\ttry {\n\t\tvar result = body();\n\t} catch(e) {\n\t\treturn recover(e);\n\t}\n\tif (result && result.then) {\n\t\treturn result.then(void 0, recover);\n\t}\n\treturn result;\n}\n\n// Asynchronously await a promise and pass the result to a finally continuation\nexport function _finallyRethrows(body, finalizer) {\n\ttry {\n\t\tvar result = body();\n\t} catch (e) {\n\t\treturn finalizer(true, e);\n\t}\n\tif (result && result.then) {\n\t\treturn result.then(finalizer.bind(null, false), finalizer.bind(null, true));\n\t}\n\treturn finalizer(false, result);\n}\n\n// Asynchronously await a promise and invoke a finally continuation that always overrides the result\nexport function _finally(body, finalizer) {\n\ttry {\n\t\tvar result = body();\n\t} catch (e) {\n\t\treturn finalizer();\n\t}\n\tif (result && result.then) {\n\t\treturn result.then(finalizer, finalizer);\n\t}\n\treturn finalizer();\n}\n\n// Rethrow or return a value from a finally continuation\nexport function _rethrow(thrown, value) {\n\tif (thrown)\n\t\tthrow value;\n\treturn value;\n}\n\n// Empty function to implement break and other control flow that ignores asynchronous results\nexport function _empty() {\n}\n\n// Sentinel value for early returns in generators \nexport const _earlyReturn = /*#__PURE__*/ {};\n\n// Asynchronously call a function and send errors to recovery continuation, skipping early returns\nexport function _catchInGenerator(body, recover) {\n\treturn _catch(body, function(e) {\n\t\tif (e === _earlyReturn) {\n\t\t\tthrow e;\n\t\t}\n\t\treturn recover(e);\n\t});\n}\n\n// Asynchronous generator class; accepts the entrypoint of the generator, to which it passes itself when the generator should start\nexport const _AsyncGenerator = /*#__PURE__*/(function() {\n\tfunction _AsyncGenerator(entry) {\n\t\tthis._entry = entry;\n\t\tthis._pact = null;\n\t\tthis._resolve = null;\n\t\tthis._return = null;\n\t\tthis._promise = null;\n\t}\n\n\tfunction _wrapReturnedValue(value) {\n\t\treturn { value: value, done: true };\n\t}\n\tfunction _wrapYieldedValue(value) {\n\t\treturn { value: value, done: false };\n\t}\n\n\t_AsyncGenerator.prototype._yield = function(value) {\n\t\t// Yield the value to the pending next call\n\t\tthis._resolve(value && value.then ? value.then(_wrapYieldedValue) : _wrapYieldedValue(value));\n\t\t// Return a pact for an upcoming next/return/throw call\n\t\treturn this._pact = new _Pact();\n\t};\n\t_AsyncGenerator.prototype.next = function(value) {\n\t\t// Advance the generator, starting it if it has yet to be started\n\t\tconst _this = this;\n\t\treturn _this._promise = new Promise(function (resolve) {\n\t\t\tconst _pact = _this._pact;\n\t\t\tif (_pact === null) {\n\t\t\t\tconst _entry = _this._entry;\n\t\t\t\tif (_entry === null) {\n\t\t\t\t\t// Generator is started, but not awaiting a yield expression\n\t\t\t\t\t// Abandon the next call!\n\t\t\t\t\treturn resolve(_this._promise);\n\t\t\t\t}\n\t\t\t\t// Start the generator\n\t\t\t\t_this._entry = null;\n\t\t\t\t_this._resolve = resolve;\n\t\t\t\tfunction returnValue(value) {\n\t\t\t\t\t_this._resolve(value && value.then ? value.then(_wrapReturnedValue) : _wrapReturnedValue(value));\n\t\t\t\t\t_this._pact = null;\n\t\t\t\t\t_this._resolve = null;\n\t\t\t\t}\n\t\t\t\tvar result = _entry(_this);\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tresult.then(returnValue, function(error) {\n\t\t\t\t\t\tif (error === _earlyReturn) {\n\t\t\t\t\t\t\treturnValue(_this._return);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconst pact = new _Pact();\n\t\t\t\t\t\t\t_this._resolve(pact);\n\t\t\t\t\t\t\t_this._pact = null;\n\t\t\t\t\t\t\t_this._resolve = null;\n\t\t\t\t\t\t\t_resolve(pact, 2, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\treturnValue(result);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Generator is started and a yield expression is pending, settle it\n\t\t\t\t_this._pact = null;\n\t\t\t\t_this._resolve = resolve;\n\t\t\t\t_settle(_pact, 1, value);\n\t\t\t}\n\t\t});\n\t};\n\t_AsyncGenerator.prototype.return = function(value) {\n\t\t// Early return from the generator if started, otherwise abandons the generator\n\t\tconst _this = this;\n\t\treturn _this._promise = new Promise(function (resolve) {\n\t\t\tconst _pact = _this._pact;\n\t\t\tif (_pact === null) {\n\t\t\t\tif (_this._entry === null) {\n\t\t\t\t\t// Generator is started, but not awaiting a yield expression\n\t\t\t\t\t// Abandon the return call!\n\t\t\t\t\treturn resolve(_this._promise);\n\t\t\t\t}\n\t\t\t\t// Generator is not started, abandon it and return the specified value\n\t\t\t\t_this._entry = null;\n\t\t\t\treturn resolve(value && value.then ? value.then(_wrapReturnedValue) : _wrapReturnedValue(value));\n\t\t\t}\n\t\t\t// Settle the yield expression with a rejected \"early return\" value\n\t\t\t_this._return = value;\n\t\t\t_this._resolve = resolve;\n\t\t\t_this._pact = null;\n\t\t\t_settle(_pact, 2, _earlyReturn);\n\t\t});\n\t};\n\t_AsyncGenerator.prototype.throw = function(error) {\n\t\t// Inject an exception into the pending yield expression\n\t\tconst _this = this;\n\t\treturn _this._promise = new Promise(function (resolve, reject) {\n\t\t\tconst _pact = _this._pact;\n\t\t\tif (_pact === null) {\n\t\t\t\tif (_this._entry === null) {\n\t\t\t\t\t// Generator is started, but not awaiting a yield expression\n\t\t\t\t\t// Abandon the throw call!\n\t\t\t\t\treturn resolve(_this._promise);\n\t\t\t\t}\n\t\t\t\t// Generator is not started, abandon it and return a rejected Promise containing the error\n\t\t\t\t_this._entry = null;\n\t\t\t\treturn reject(error);\n\t\t\t}\n\t\t\t// Settle the yield expression with the value as a rejection\n\t\t\t_this._resolve = resolve;\n\t\t\t_this._pact = null;\n\t\t\t_settle(_pact, 2, error);\n\t\t});\n\t};\n\n\t_AsyncGenerator.prototype[_asyncIteratorSymbol] = function() {\n\t\treturn this;\n\t};\n\t\n\treturn _AsyncGenerator;\n})();\n"],"names":["_Pact","prototype","then","onFulfilled","onRejected","result","state","s","callback","_settle","v","e","o","_this","value","pact","bind","observer","_isSettledPact","thenable","_forTo","array","body","check","i","reject","_cycle","length","_iteratorSymbol","Symbol","iterator","_forOf","target","step","next","done","_fixup","TypeError","values","push","_asyncIteratorSymbol","asyncIterator","_catch","recover","_finallyRethrows","finalizer"],"mappings":"AAAA;IACaA,KAAK,gBAAiB,YAAW;EAC7C,SAASA,KAAKA,GAAG;EACjBA,KAAK,CAACC,SAAS,CAACC,IAAI,GAAG,UAASC,WAAW,EAAEC,UAAU,EAAE;IACxD,IAAMC,MAAM,GAAG,IAAIL,KAAK,E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,EAAE,UAASd,CAAC,EAAE;IAAE,OAAOF,IAAI,CAACgB,MAAM,CAACd,CAAC,CAAC,CAAC;GAAG,EAAED,KAAK,CAAC;AACtE;IAEaiB,oBAAoB,gBAAiB,OAAOX,MAAM,KAAK,WAAW,GAAIA,MAAM,CAACY,aAAa,KAAKZ,MAAM,CAACY,aAAa,gBAAGZ,MAAM,CAAC,sBAAsB,CAAC,CAAC,GAAI;;AAgVtK;AACO,SAASa,MAAMA,CAACpB,IAAI,EAAEqB,OAAO,EAAE;EACrC,IAAI;IACH,IAAItC,MAAM,GAAGiB,IAAI,EAAE;GACnB,CAAC,OAAMX,CAAC,EAAE;IACV,OAAOgC,OAAO,CAAChC,CAAC,CAAC;;EAElB,IAAIN,MAAM,IAAIA,MAAM,CAACH,IAAI,EAAE;IAC1B,OAAOG,MAAM,CAACH,IAAI,CAAC,KAAK,CAAC,EAAEyC,OAAO,CAAC;;EAEpC,OAAOtC,MAAM;AACd;;AAEA;AACO,SAASuC,gBAAgBA,CAACtB,IAAI,EAAEuB,SAAS,EAAE;EACjD,IAAI;IACH,IAAIxC,MAAM,GAAGiB,IAAI,EAAE;GACnB,CAAC,OAAOX,CAAC,EAAE;IACX,OAAOkC,SAAS,CAAC,IAAI,EAAElC,CAAC,CAAC;;EAE1B,IAAIN,MAAM,IAAIA,MAAM,CAACH,IAAI,EAAE;IAC1B,OAAOG,MAAM,CAACH,IAAI,CAAC2C,SAAS,CAAC7B,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE6B,SAAS,CAAC7B,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;;EAE5E,OAAO6B,SAAS,CAAC,KAAK,EAAExC,MAAM,CAAC;AAChC;;;;"}
1
+ {"version":3,"file":"helpers.mjs.js","sources":["../../../../../../node_modules/babel-plugin-transform-async-to-promises/helpers.mjs"],"sourcesContent":["// A type of promise-like that resolves synchronously and supports only one observer\nexport const _Pact = /*#__PURE__*/(function() {\n\tfunction _Pact() {}\n\t_Pact.prototype.then = function(onFulfilled, onRejected) {\n\t\tconst result = new _Pact();\n\t\tconst state = this.s;\n\t\tif (state) {\n\t\t\tconst callback = state & 1 ? onFulfilled : onRejected;\n\t\t\tif (callback) {\n\t\t\t\ttry {\n\t\t\t\t\t_settle(result, 1, callback(this.v));\n\t\t\t\t} catch (e) {\n\t\t\t\t\t_settle(result, 2, e);\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t} else {\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}\n\t\tthis.o = function(_this) {\n\t\t\ttry {\n\t\t\t\tconst value = _this.v;\n\t\t\t\tif (_this.s & 1) {\n\t\t\t\t\t_settle(result, 1, onFulfilled ? onFulfilled(value) : value);\n\t\t\t\t} else if (onRejected) {\n\t\t\t\t\t_settle(result, 1, onRejected(value));\n\t\t\t\t} else {\n\t\t\t\t\t_settle(result, 2, value);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\t_settle(result, 2, e);\n\t\t\t}\n\t\t};\n\t\treturn result;\n\t}\n\treturn _Pact;\n})();\n\n// Settles a pact synchronously\nexport function _settle(pact, state, value) {\n\tif (!pact.s) {\n\t\tif (value instanceof _Pact) {\n\t\t\tif (value.s) {\n\t\t\t\tif (state & 1) {\n\t\t\t\t\tstate = value.s;\n\t\t\t\t}\n\t\t\t\tvalue = value.v;\n\t\t\t} else {\n\t\t\t\tvalue.o = _settle.bind(null, pact, state);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (value && value.then) {\n\t\t\tvalue.then(_settle.bind(null, pact, state), _settle.bind(null, pact, 2));\n\t\t\treturn;\n\t\t}\n\t\tpact.s = state;\n\t\tpact.v = value;\n\t\tconst observer = pact.o;\n\t\tif (observer) {\n\t\t\tobserver(pact);\n\t\t}\n\t}\n}\n\nexport function _isSettledPact(thenable) {\n\treturn thenable instanceof _Pact && thenable.s & 1;\n}\n\n// Converts argument to a function that always returns a Promise\nexport function _async(f) {\n\treturn function() {\n\t\tfor (var args = [], i = 0; i < arguments.length; i++) {\n\t\t\targs[i] = arguments[i];\n\t\t}\n\t\ttry {\n\t\t\treturn Promise.resolve(f.apply(this, args));\n\t\t} catch(e) {\n\t\t\treturn Promise.reject(e);\n\t\t}\n\t}\n}\n\n// Awaits on a value that may or may not be a Promise (equivalent to the await keyword in ES2015, with continuations passed explicitly)\nexport function _await(value, then, direct) {\n\tif (direct) {\n\t\treturn then ? then(value) : value;\n\t}\n\tif (!value || !value.then) {\n\t\tvalue = Promise.resolve(value);\n\t}\n\treturn then ? value.then(then) : value;\n}\n\n// Awaits on a value that may or may not be a Promise, then ignores it\nexport function _awaitIgnored(value, direct) {\n\tif (!direct) {\n\t\treturn value && value.then ? value.then(_empty) : Promise.resolve();\n\t}\n}\n\n// Proceeds after a value has resolved, or proceeds immediately if the value is not thenable\nexport function _continue(value, then) {\n\treturn value && value.then ? value.then(then) : then(value);\n}\n\n// Proceeds after a value has resolved, or proceeds immediately if the value is not thenable\nexport function _continueIgnored(value) {\n\tif (value && value.then) {\n\t\treturn value.then(_empty);\n\t}\n}\n\n// Asynchronously iterate through an object that has a length property, passing the index as the first argument to the callback (even as the length property changes)\nexport function _forTo(array, body, check) {\n\tvar i = -1, pact, reject;\n\tfunction _cycle(result) {\n\t\ttry {\n\t\t\twhile (++i < array.length && (!check || !check())) {\n\t\t\t\tresult = body(i);\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\t\tresult = result.v;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pact) {\n\t\t\t\t_settle(pact, 1, result);\n\t\t\t} else {\n\t\t\t\tpact = result;\n\t\t\t}\n\t\t} catch (e) {\n\t\t\t_settle(pact || (pact = new _Pact()), 2, e);\n\t\t}\n\t}\n\t_cycle();\n\treturn pact;\n}\n\n// Asynchronously iterate through an object's properties (including properties inherited from the prototype)\n// Uses a snapshot of the object's properties\nexport function _forIn(target, body, check) {\n\tvar keys = [];\n\tfor (var key in target) {\n\t\tkeys.push(key);\n\t}\n\treturn _forTo(keys, function(i) { return body(keys[i]); }, check);\n}\n\n// Asynchronously iterate through an object's own properties (excluding properties inherited from the prototype)\n// Uses a snapshot of the object's properties\nexport function _forOwn(target, body, check) {\n\tvar keys = [];\n\tfor (var key in target) {\n\t\tif (Object.prototype.hasOwnProperty.call(target, key)) {\n\t\t\tkeys.push(key);\n\t\t}\n\t}\n\treturn _forTo(keys, function(i) { return body(keys[i]); }, check);\n}\n\nexport const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== \"undefined\" ? (Symbol.iterator || (Symbol.iterator = Symbol(\"Symbol.iterator\"))) : \"@@iterator\";\n\n// Asynchronously iterate through an object's values\n// Uses for...of if the runtime supports it, otherwise iterates until length on a copy\nexport function _forOf(target, body, check) {\n\tif (typeof target[_iteratorSymbol] === \"function\") {\n\t\tvar iterator = target[_iteratorSymbol](), step, pact, reject;\n\t\tfunction _cycle(result) {\n\t\t\ttry {\n\t\t\t\twhile (!(step = iterator.next()).done && (!check || !check())) {\n\t\t\t\t\tresult = body(step.value);\n\t\t\t\t\tif (result && result.then) {\n\t\t\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\t\t\tresult = result.v;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresult.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (pact) {\n\t\t\t\t\t_settle(pact, 1, result);\n\t\t\t\t} else {\n\t\t\t\t\tpact = result;\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\t_settle(pact || (pact = new _Pact()), 2, e);\n\t\t\t}\n\t\t}\n\t\t_cycle();\n\t\tif (iterator.return) {\n\t\t\tvar _fixup = function(value) {\n\t\t\t\ttry {\n\t\t\t\t\tif (!step.done) {\n\t\t\t\t\t\titerator.return();\n\t\t\t\t\t}\n\t\t\t\t} catch(e) {\n\t\t\t\t}\n\t\t\t\treturn value;\n\t\t\t}\n\t\t\tif (pact && pact.then) {\n\t\t\t\treturn pact.then(_fixup, function(e) {\n\t\t\t\t\tthrow _fixup(e);\n\t\t\t\t});\n\t\t\t}\n\t\t\t_fixup();\n\t\t}\n\t\treturn pact;\n\t}\n\t// No support for Symbol.iterator\n\tif (!(\"length\" in target)) {\n\t\tthrow new TypeError(\"Object is not iterable\");\n\t}\n\t// Handle live collections properly\n\tvar values = [];\n\tfor (var i = 0; i < target.length; i++) {\n\t\tvalues.push(target[i]);\n\t}\n\treturn _forTo(values, function(i) { return body(values[i]); }, check);\n}\n\nexport const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== \"undefined\" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol(\"Symbol.asyncIterator\"))) : \"@@asyncIterator\";\n\n// Asynchronously iterate on a value using it's async iterator if present, or its synchronous iterator if missing\nexport function _forAwaitOf(target, body, check) {\n\tif (typeof target[_asyncIteratorSymbol] === \"function\") {\n\t\tvar pact = new _Pact();\n\t\tvar iterator = target[_asyncIteratorSymbol]();\n\t\titerator.next().then(_resumeAfterNext).then(void 0, _reject);\n\t\treturn pact;\n\t\tfunction _resumeAfterBody(result) {\n\t\t\tif (check && check()) {\n\t\t\t\treturn _settle(pact, 1, iterator.return ? iterator.return().then(function() { return result; }) : result);\n\t\t\t}\n\t\t\titerator.next().then(_resumeAfterNext).then(void 0, _reject);\n\t\t}\n\t\tfunction _resumeAfterNext(step) {\n\t\t\tif (step.done) {\n\t\t\t\t_settle(pact, 1);\n\t\t\t} else {\n\t\t\t\tPromise.resolve(body(step.value)).then(_resumeAfterBody).then(void 0, _reject);\n\t\t\t}\n\t\t}\n\t\tfunction _reject(error) {\n\t\t\t_settle(pact, 2, iterator.return ? iterator.return().then(function() { return error; }) : error);\n\t\t}\n\t}\n\treturn Promise.resolve(_forOf(target, function(value) { return Promise.resolve(value).then(body); }, check));\n}\n\n// Asynchronously implement a generic for loop\nexport function _for(test, update, body) {\n\tvar stage;\n\tfor (;;) {\n\t\tvar shouldContinue = test();\n\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\tshouldContinue = shouldContinue.v;\n\t\t}\n\t\tif (!shouldContinue) {\n\t\t\treturn result;\n\t\t}\n\t\tif (shouldContinue.then) {\n\t\t\tstage = 0;\n\t\t\tbreak;\n\t\t}\n\t\tvar result = body();\n\t\tif (result && result.then) {\n\t\t\tif (_isSettledPact(result)) {\n\t\t\t\tresult = result.s;\n\t\t\t} else {\n\t\t\t\tstage = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (update) {\n\t\t\tvar updateValue = update();\n\t\t\tif (updateValue && updateValue.then && !_isSettledPact(updateValue)) {\n\t\t\t\tstage = 2;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tvar pact = new _Pact();\n\tvar reject = _settle.bind(null, pact, 2);\n\t(stage === 0 ? shouldContinue.then(_resumeAfterTest) : stage === 1 ? result.then(_resumeAfterBody) : updateValue.then(_resumeAfterUpdate)).then(void 0, reject);\n\treturn pact;\n\tfunction _resumeAfterBody(value) {\n\t\tresult = value;\n\t\tdo {\n\t\t\tif (update) {\n\t\t\t\tupdateValue = update();\n\t\t\t\tif (updateValue && updateValue.then && !_isSettledPact(updateValue)) {\n\t\t\t\t\tupdateValue.then(_resumeAfterUpdate).then(void 0, reject);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tshouldContinue = test();\n\t\t\tif (!shouldContinue || (_isSettledPact(shouldContinue) && !shouldContinue.v)) {\n\t\t\t\t_settle(pact, 1, result);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (shouldContinue.then) {\n\t\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tresult = body();\n\t\t\tif (_isSettledPact(result)) {\n\t\t\t\tresult = result.v;\n\t\t\t}\n\t\t} while (!result || !result.then);\n\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t}\n\tfunction _resumeAfterTest(shouldContinue) {\n\t\tif (shouldContinue) {\n\t\t\tresult = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t} else {\n\t\t\t\t_resumeAfterBody(result);\n\t\t\t}\n\t\t} else {\n\t\t\t_settle(pact, 1, result);\n\t\t}\n\t}\n\tfunction _resumeAfterUpdate() {\n\t\tif (shouldContinue = test()) {\n\t\t\tif (shouldContinue.then) {\n\t\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t} else {\n\t\t\t\t_resumeAfterTest(shouldContinue);\n\t\t\t}\n\t\t} else {\n\t\t\t_settle(pact, 1, result);\n\t\t}\n\t}\n}\n\n// Asynchronously implement a do ... while loop\nexport function _do(body, test) {\n\tvar awaitBody;\n\tdo {\n\t\tvar result = body();\n\t\tif (result && result.then) {\n\t\t\tif (_isSettledPact(result)) {\n\t\t\t\tresult = result.v;\n\t\t\t} else {\n\t\t\t\tawaitBody = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tvar shouldContinue = test();\n\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\tshouldContinue = shouldContinue.v;\n\t\t}\n\t\tif (!shouldContinue) {\n\t\t\treturn result;\n\t\t}\n\t} while (!shouldContinue.then);\n\tconst pact = new _Pact();\n\tconst reject = _settle.bind(null, pact, 2);\n\t(awaitBody ? result.then(_resumeAfterBody) : shouldContinue.then(_resumeAfterTest)).then(void 0, reject);\n\treturn pact;\n\tfunction _resumeAfterBody(value) {\n\t\tresult = value;\n\t\tfor (;;) {\n\t\t\tshouldContinue = test();\n\t\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\t\tshouldContinue = shouldContinue.v;\n\t\t\t}\n\t\t\tif (!shouldContinue) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (shouldContinue.then) {\n\t\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tresult = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\tresult = result.v;\n\t\t\t\t} else {\n\t\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t_settle(pact, 1, result);\n\t}\n\tfunction _resumeAfterTest(shouldContinue) {\n\t\tif (shouldContinue) {\n\t\t\tdo {\n\t\t\t\tresult = body();\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tif (_isSettledPact(result)) {\n\t\t\t\t\t\tresult = result.v;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tshouldContinue = test();\n\t\t\t\tif (_isSettledPact(shouldContinue)) {\n\t\t\t\t\tshouldContinue = shouldContinue.v;\n\t\t\t\t}\n\t\t\t\tif (!shouldContinue) {\n\t\t\t\t\t_settle(pact, 1, result);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} while (!shouldContinue.then);\n\t\t\tshouldContinue.then(_resumeAfterTest).then(void 0, reject);\n\t\t} else {\n\t\t\t_settle(pact, 1, result);\n\t\t}\n\t}\n}\n\n// Asynchronously implement a switch statement\nexport function _switch(discriminant, cases) {\n\tvar dispatchIndex = -1;\n\tvar awaitBody;\n\touter: {\n\t\tfor (var i = 0; i < cases.length; i++) {\n\t\t\tvar test = cases[i][0];\n\t\t\tif (test) {\n\t\t\t\tvar testValue = test();\n\t\t\t\tif (testValue && testValue.then) {\n\t\t\t\t\tbreak outer;\n\t\t\t\t}\n\t\t\t\tif (testValue === discriminant) {\n\t\t\t\t\tdispatchIndex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Found the default case, set it as the pending dispatch case\n\t\t\t\tdispatchIndex = i;\n\t\t\t}\n\t\t}\n\t\tif (dispatchIndex !== -1) {\n\t\t\tdo {\n\t\t\t\tvar body = cases[dispatchIndex][1];\n\t\t\t\twhile (!body) {\n\t\t\t\t\tdispatchIndex++;\n\t\t\t\t\tbody = cases[dispatchIndex][1];\n\t\t\t\t}\n\t\t\t\tvar result = body();\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tawaitBody = true;\n\t\t\t\t\tbreak outer;\n\t\t\t\t}\n\t\t\t\tvar fallthroughCheck = cases[dispatchIndex][2];\n\t\t\t\tdispatchIndex++;\n\t\t\t} while (fallthroughCheck && !fallthroughCheck());\n\t\t\treturn result;\n\t\t}\n\t}\n\tconst pact = new _Pact();\n\tconst reject = _settle.bind(null, pact, 2);\n\t(awaitBody ? result.then(_resumeAfterBody) : testValue.then(_resumeAfterTest)).then(void 0, reject);\n\treturn pact;\n\tfunction _resumeAfterTest(value) {\n\t\tfor (;;) {\n\t\t\tif (value === discriminant) {\n\t\t\t\tdispatchIndex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (++i === cases.length) {\n\t\t\t\tif (dispatchIndex !== -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\t_settle(pact, 1, result);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttest = cases[i][0];\n\t\t\tif (test) {\n\t\t\t\tvalue = test();\n\t\t\t\tif (value && value.then) {\n\t\t\t\t\tvalue.then(_resumeAfterTest).then(void 0, reject);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdispatchIndex = i;\n\t\t\t}\n\t\t}\n\t\tdo {\n\t\t\tvar body = cases[dispatchIndex][1];\n\t\t\twhile (!body) {\n\t\t\t\tdispatchIndex++;\n\t\t\t\tbody = cases[dispatchIndex][1];\n\t\t\t}\n\t\t\tvar result = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar fallthroughCheck = cases[dispatchIndex][2];\n\t\t\tdispatchIndex++;\n\t\t} while (fallthroughCheck && !fallthroughCheck());\n\t\t_settle(pact, 1, result);\n\t}\n\tfunction _resumeAfterBody(result) {\n\t\tfor (;;) {\n\t\t\tvar fallthroughCheck = cases[dispatchIndex][2];\n\t\t\tif (!fallthroughCheck || fallthroughCheck()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdispatchIndex++;\n\t\t\tvar body = cases[dispatchIndex][1];\n\t\t\twhile (!body) {\n\t\t\t\tdispatchIndex++;\n\t\t\t\tbody = cases[dispatchIndex][1];\n\t\t\t}\n\t\t\tresult = body();\n\t\t\tif (result && result.then) {\n\t\t\t\tresult.then(_resumeAfterBody).then(void 0, reject);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t_settle(pact, 1, result);\n\t}\n}\n\n// Asynchronously call a function and pass the result to explicitly passed continuations\nexport function _call(body, then, direct) {\n\tif (direct) {\n\t\treturn then ? then(body()) : body();\n\t}\n\ttry {\n\t\tvar result = Promise.resolve(body());\n\t\treturn then ? result.then(then) : result;\n\t} catch (e) {\n\t\treturn Promise.reject(e);\n\t}\n}\n\n// Asynchronously call a function and swallow the result\nexport function _callIgnored(body, direct) {\n\treturn _call(body, _empty, direct);\n}\n\n// Asynchronously call a function and pass the result to explicitly passed continuations\nexport function _invoke(body, then) {\n\tvar result = body();\n\tif (result && result.then) {\n\t\treturn result.then(then);\n\t}\n\treturn then(result);\n}\n\n// Asynchronously call a function and swallow the result\nexport function _invokeIgnored(body) {\n\tvar result = body();\n\tif (result && result.then) {\n\t\treturn result.then(_empty);\n\t}\n}\n\n// Asynchronously call a function and send errors to recovery continuation\nexport function _catch(body, recover) {\n\ttry {\n\t\tvar result = body();\n\t} catch(e) {\n\t\treturn recover(e);\n\t}\n\tif (result && result.then) {\n\t\treturn result.then(void 0, recover);\n\t}\n\treturn result;\n}\n\n// Asynchronously await a promise and pass the result to a finally continuation\nexport function _finallyRethrows(body, finalizer) {\n\ttry {\n\t\tvar result = body();\n\t} catch (e) {\n\t\treturn finalizer(true, e);\n\t}\n\tif (result && result.then) {\n\t\treturn result.then(finalizer.bind(null, false), finalizer.bind(null, true));\n\t}\n\treturn finalizer(false, result);\n}\n\n// Asynchronously await a promise and invoke a finally continuation that always overrides the result\nexport function _finally(body, finalizer) {\n\ttry {\n\t\tvar result = body();\n\t} catch (e) {\n\t\treturn finalizer();\n\t}\n\tif (result && result.then) {\n\t\treturn result.then(finalizer, finalizer);\n\t}\n\treturn finalizer();\n}\n\n// Rethrow or return a value from a finally continuation\nexport function _rethrow(thrown, value) {\n\tif (thrown)\n\t\tthrow value;\n\treturn value;\n}\n\n// Empty function to implement break and other control flow that ignores asynchronous results\nexport function _empty() {\n}\n\n// Sentinel value for early returns in generators \nexport const _earlyReturn = /*#__PURE__*/ {};\n\n// Asynchronously call a function and send errors to recovery continuation, skipping early returns\nexport function _catchInGenerator(body, recover) {\n\treturn _catch(body, function(e) {\n\t\tif (e === _earlyReturn) {\n\t\t\tthrow e;\n\t\t}\n\t\treturn recover(e);\n\t});\n}\n\n// Asynchronous generator class; accepts the entrypoint of the generator, to which it passes itself when the generator should start\nexport const _AsyncGenerator = /*#__PURE__*/(function() {\n\tfunction _AsyncGenerator(entry) {\n\t\tthis._entry = entry;\n\t\tthis._pact = null;\n\t\tthis._resolve = null;\n\t\tthis._return = null;\n\t\tthis._promise = null;\n\t}\n\n\tfunction _wrapReturnedValue(value) {\n\t\treturn { value: value, done: true };\n\t}\n\tfunction _wrapYieldedValue(value) {\n\t\treturn { value: value, done: false };\n\t}\n\n\t_AsyncGenerator.prototype._yield = function(value) {\n\t\t// Yield the value to the pending next call\n\t\tthis._resolve(value && value.then ? value.then(_wrapYieldedValue) : _wrapYieldedValue(value));\n\t\t// Return a pact for an upcoming next/return/throw call\n\t\treturn this._pact = new _Pact();\n\t};\n\t_AsyncGenerator.prototype.next = function(value) {\n\t\t// Advance the generator, starting it if it has yet to be started\n\t\tconst _this = this;\n\t\treturn _this._promise = new Promise(function (resolve) {\n\t\t\tconst _pact = _this._pact;\n\t\t\tif (_pact === null) {\n\t\t\t\tconst _entry = _this._entry;\n\t\t\t\tif (_entry === null) {\n\t\t\t\t\t// Generator is started, but not awaiting a yield expression\n\t\t\t\t\t// Abandon the next call!\n\t\t\t\t\treturn resolve(_this._promise);\n\t\t\t\t}\n\t\t\t\t// Start the generator\n\t\t\t\t_this._entry = null;\n\t\t\t\t_this._resolve = resolve;\n\t\t\t\tfunction returnValue(value) {\n\t\t\t\t\t_this._resolve(value && value.then ? value.then(_wrapReturnedValue) : _wrapReturnedValue(value));\n\t\t\t\t\t_this._pact = null;\n\t\t\t\t\t_this._resolve = null;\n\t\t\t\t}\n\t\t\t\tvar result = _entry(_this);\n\t\t\t\tif (result && result.then) {\n\t\t\t\t\tresult.then(returnValue, function(error) {\n\t\t\t\t\t\tif (error === _earlyReturn) {\n\t\t\t\t\t\t\treturnValue(_this._return);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconst pact = new _Pact();\n\t\t\t\t\t\t\t_this._resolve(pact);\n\t\t\t\t\t\t\t_this._pact = null;\n\t\t\t\t\t\t\t_this._resolve = null;\n\t\t\t\t\t\t\t_resolve(pact, 2, error);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\treturnValue(result);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Generator is started and a yield expression is pending, settle it\n\t\t\t\t_this._pact = null;\n\t\t\t\t_this._resolve = resolve;\n\t\t\t\t_settle(_pact, 1, value);\n\t\t\t}\n\t\t});\n\t};\n\t_AsyncGenerator.prototype.return = function(value) {\n\t\t// Early return from the generator if started, otherwise abandons the generator\n\t\tconst _this = this;\n\t\treturn _this._promise = new Promise(function (resolve) {\n\t\t\tconst _pact = _this._pact;\n\t\t\tif (_pact === null) {\n\t\t\t\tif (_this._entry === null) {\n\t\t\t\t\t// Generator is started, but not awaiting a yield expression\n\t\t\t\t\t// Abandon the return call!\n\t\t\t\t\treturn resolve(_this._promise);\n\t\t\t\t}\n\t\t\t\t// Generator is not started, abandon it and return the specified value\n\t\t\t\t_this._entry = null;\n\t\t\t\treturn resolve(value && value.then ? value.then(_wrapReturnedValue) : _wrapReturnedValue(value));\n\t\t\t}\n\t\t\t// Settle the yield expression with a rejected \"early return\" value\n\t\t\t_this._return = value;\n\t\t\t_this._resolve = resolve;\n\t\t\t_this._pact = null;\n\t\t\t_settle(_pact, 2, _earlyReturn);\n\t\t});\n\t};\n\t_AsyncGenerator.prototype.throw = function(error) {\n\t\t// Inject an exception into the pending yield expression\n\t\tconst _this = this;\n\t\treturn _this._promise = new Promise(function (resolve, reject) {\n\t\t\tconst _pact = _this._pact;\n\t\t\tif (_pact === null) {\n\t\t\t\tif (_this._entry === null) {\n\t\t\t\t\t// Generator is started, but not awaiting a yield expression\n\t\t\t\t\t// Abandon the throw call!\n\t\t\t\t\treturn resolve(_this._promise);\n\t\t\t\t}\n\t\t\t\t// Generator is not started, abandon it and return a rejected Promise containing the error\n\t\t\t\t_this._entry = null;\n\t\t\t\treturn reject(error);\n\t\t\t}\n\t\t\t// Settle the yield expression with the value as a rejection\n\t\t\t_this._resolve = resolve;\n\t\t\t_this._pact = null;\n\t\t\t_settle(_pact, 2, error);\n\t\t});\n\t};\n\n\t_AsyncGenerator.prototype[_asyncIteratorSymbol] = function() {\n\t\treturn this;\n\t};\n\t\n\treturn _AsyncGenerator;\n})();\n"],"names":["_Pact","prototype","then","onFulfilled","onRejected","result","state","s","callback","_settle","v","e","o","_this","value","pact","bind","observer","_isSettledPact","thenable","_forTo","array","body","check","i","reject","_cycle","length","_iteratorSymbol","Symbol","iterator","_forOf","target","step","next","done","return","_fixup","TypeError","values","push","_asyncIteratorSymbol","asyncIterator","_catch","recover","_finallyRethrows","finalizer"],"mappings":"AAAA;MACaA,KAAK,gBAAiB,YAAW;EAC7C,SAASA,KAAKA,GAAG;EACjBA,KAAK,CAACC,SAAS,CAACC,IAAI,GAAG,UAASC,WAAW,EAAEC,UAAU,EAAE;IACxD,MAAMC,MAAM,GAAG,IAAIL,KAAK,EAAE;IAC1B,MAAMM,KAAK,GAAG,IAAI,CAACC,CAAC;IACpB,IAAID,KAAK,EAAE;MACV,MAAME,QAAQ,GAAGF,KAAK,GAAG,CAAC,GAAGH,WAAW,GAAGC,UAAU;MACrD,IAAII,QAAQ,EAAE;QACb,IAAI;UACHC,OAAO,CAACJ,MAAM,EAAE,CAAC,EAAEG,QAAQ,CAAC,IAAI,CAACE,CAAC,CAAC,CAAC;SACpC,CAAC,OAAOC,CAAC,EAAE;UACXF,OAAO,CAACJ,MAAM,EAAE,CAAC,EAAEM,CAAC,CAAC;;QAEtB,OAAON,MAAM;OACb,MAAM;QACN,OAAO,IAAI;;;IAGb,IAAI,CAACO,CAAC,GAAG,UAASC,KAAK,EAAE;MACxB,IAAI;QACH,MAAMC,KAAK,GAAGD,KAAK,CAACH,CAAC;QACrB,IAAIG,KAAK,CAACN,CAAC,GAAG,CAAC,EAAE;UAChBE,OAAO,CAACJ,MAAM,EAAE,CAAC,EAAEF,WAAW,GAAGA,WAAW,CAACW,KAAK,CAAC,GAAGA,KAAK,CAAC;SAC5D,MAAM,IAAIV,UAAU,EAAE;UACtBK,OAAO,CAACJ,MAAM,EAAE,CAAC,EAAED,UAAU,CAACU,KAAK,CAAC,CAAC;SACrC,MAAM;UACNL,OAAO,CAACJ,MAAM,EAAE,CAAC,EAAES,KAAK,CAAC;;OAE1B,CAAC,OAAOH,CAAC,EAAE;QACXF,OAAO,CAACJ,MAAM,EAAE,CAAC,EAAEM,CAAC,CAAC;;KAEtB;IACD,OAAON,MAAM;GACb;EACD,OAAOL,KAAK;AACb,CAAC;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AAO8B,SAAS,CAAC,KAAK,EAAEzC,MAAM,CAAC;AAChC;;;;"}
@@ -1,35 +1,31 @@
1
1
  import React__default, { useState } from 'react';
2
- import { objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose, extends as _extends } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
3
2
  import { AreaChart as AreaChart$1, CartesianGrid, XAxis, YAxis, Legend, Tooltip, Area as Area$1 } from 'recharts';
4
3
  import { getThemeColor } from '../../utils/color.js';
5
4
  import { getCartesianGridProps, getXAxisProps, getYAxisProps, getLegendProps, getTooltipProps } from '../../utils/common.js';
6
5
  import { ResponsiveContainer } from '../ResponsiveContainer.js';
7
6
 
8
- var _excluded = ["children", "data", "formatter"];
9
- var Area = function Area(_) {
10
- return null;
11
- };
12
- var AreaChart = function AreaChart(externalProps) {
13
- var children = externalProps.children,
14
- data = externalProps.data,
15
- formatter = externalProps.formatter,
16
- props = _objectWithoutPropertiesLoose(externalProps, _excluded);
17
- var _useState = useState(null),
18
- hoveredArea = _useState[0],
19
- setHoveredArea = _useState[1];
20
- var _useState2 = useState(function () {
21
- var areas = {};
22
- React__default.Children.forEach(children, function (child) {
23
- areas[child.props.accessor] = true;
24
- });
25
- return areas;
26
- }),
27
- activeAreas = _useState2[0],
28
- setActiveAreas = _useState2[1];
29
- var handleLegendClick = function handleLegendClick(entry) {
30
- var _extends2;
7
+ const Area = _ => null;
8
+ const AreaChart = function AreaChart(externalProps) {
9
+ const {
10
+ children,
11
+ data,
12
+ formatter,
13
+ ...props
14
+ } = externalProps;
15
+ const [hoveredArea, setHoveredArea] = useState(null);
16
+ const [activeAreas, setActiveAreas] = useState(() => {
17
+ const areas = {};
18
+ React__default.Children.forEach(children, child => {
19
+ areas[child.props.accessor] = true;
20
+ });
21
+ return areas;
22
+ });
23
+ const handleLegendClick = entry => {
31
24
  setHoveredArea(null);
32
- setActiveAreas(_extends({}, activeAreas, (_extends2 = {}, _extends2[entry.dataKey] = !activeAreas[entry.dataKey], _extends2)));
25
+ setActiveAreas({
26
+ ...activeAreas,
27
+ [entry.dataKey]: !activeAreas[entry.dataKey]
28
+ });
33
29
  };
34
30
  return /*#__PURE__*/React__default.createElement(ResponsiveContainer, null, /*#__PURE__*/React__default.createElement(AreaChart$1, {
35
31
  data: data,
@@ -41,16 +37,12 @@ var AreaChart = function AreaChart(externalProps) {
41
37
  }
42
38
  }, /*#__PURE__*/React__default.createElement(CartesianGrid, Object.assign({}, getCartesianGridProps())), /*#__PURE__*/React__default.createElement(XAxis, Object.assign({}, getXAxisProps(props))), /*#__PURE__*/React__default.createElement(YAxis, Object.assign({}, getYAxisProps(props))), /*#__PURE__*/React__default.createElement(Legend, Object.assign({}, getLegendProps({
43
39
  onClick: handleLegendClick,
44
- onMouseEnter: function onMouseEnter(entry) {
45
- return setHoveredArea(entry.dataKey);
46
- },
47
- onMouseLeave: function onMouseLeave() {
48
- return setHoveredArea(null);
49
- },
40
+ onMouseEnter: entry => setHoveredArea(entry.dataKey),
41
+ onMouseLeave: () => setHoveredArea(null),
50
42
  activeItems: activeAreas
51
43
  }))), /*#__PURE__*/React__default.createElement(Tooltip, Object.assign({}, getTooltipProps(), {
52
44
  formatter: formatter
53
- })), React__default.Children.map(children, function (child) {
45
+ })), React__default.Children.map(children, child => {
54
46
  var _child$props$color, _child$props$color2, _child$props$color3;
55
47
  return /*#__PURE__*/React__default.createElement(Area$1, {
56
48
  activeDot: {
@@ -1 +1 @@
1
- {"version":3,"file":"AreaChart.js","sources":["../../../../../../../../src/charts/components/Area/AreaChart.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport * as Recharts from 'recharts';\n\nimport { Color, getThemeColor } from '../../utils/color';\nimport {\n CommonChartProps,\n getCartesianGridProps,\n getXAxisProps,\n getYAxisProps,\n getLegendProps,\n getTooltipProps,\n} from '../../utils/common';\nimport { ResponsiveContainer } from '../ResponsiveContainer';\nimport { ActiveChartItems, PayloadType } from '../types';\n\ntype AreaChartBarProps<TType> = {\n accessor: keyof TType & string;\n color?: Color;\n label?: string;\n stackId?: string;\n};\n\nconst Area = (_: AreaChartBarProps<any>) => null;\n\ntype AreaChartProps<TType> = CommonChartProps<TType> & {\n children: React.ReactElement<AreaChartBarProps<TType>> | React.ReactElement<AreaChartBarProps<TType>>[];\n data: TType[];\n formatter?: (value: any) => string;\n};\n\nexport const AreaChart = function AreaChart<TType = unknown>(externalProps: AreaChartProps<TType>) {\n const { children, data, formatter, ...props } = externalProps;\n const [hoveredArea, setHoveredArea] = useState<(keyof TType & string) | null>(null);\n const [activeAreas, setActiveAreas] = useState<ActiveChartItems<TType>>(() => {\n const areas = {} as ActiveChartItems<TType>;\n\n React.Children.forEach(children, child => {\n areas[child.props.accessor] = true;\n });\n\n return areas;\n });\n\n const handleLegendClick = (entry: PayloadType<TType>): void => {\n setHoveredArea(null);\n setActiveAreas({ ...activeAreas, [entry.dataKey]: !activeAreas[entry.dataKey] });\n };\n\n return (\n <ResponsiveContainer>\n <Recharts.AreaChart data={data} margin={{ top: 10, right: 0, left: -25, bottom: 0 }}>\n <Recharts.CartesianGrid {...getCartesianGridProps()} />\n <Recharts.XAxis {...getXAxisProps<TType>(props)} />\n <Recharts.YAxis {...getYAxisProps<TType>(props)} />\n <Recharts.Legend\n {...getLegendProps({\n onClick: handleLegendClick,\n onMouseEnter: entry => setHoveredArea(entry.dataKey),\n onMouseLeave: () => setHoveredArea(null),\n activeItems: activeAreas,\n })}\n />\n <Recharts.Tooltip {...getTooltipProps()} formatter={formatter} />\n {React.Children.map(children, child => (\n <Recharts.Area\n activeDot={{\n fill: getThemeColor(child.props.color ?? 'blue-300'),\n }}\n isAnimationActive={false}\n dataKey={child.props.accessor}\n dot={false}\n fill={getThemeColor(child.props.color ?? 'grey-100')}\n name={child.props.label}\n strokeWidth={2}\n stroke={getThemeColor(child.props.color ?? 'grey-300')}\n stackId={child.props.stackId}\n hide={!activeAreas[child.props.accessor]}\n opacity={hoveredArea && child.props.accessor !== hoveredArea ? 0.3 : 1}\n />\n ))}\n </Recharts.AreaChart>\n </ResponsiveContainer>\n );\n};\nAreaChart.Area = Area;\n"],"names":["Area","_","AreaChart","externalProps","children","data","formatter","props","_objectWithoutPropertiesLoose","_excluded","_useState","useState","hoveredArea","setHoveredArea","_useState2","areas","React","Children","forEach","child","accessor","activeAreas","setActiveAreas","handleLegendClick","entry","_extends","_extends2","dataKey","ResponsiveContainer","Recharts","margin","top","right","left","bottom","getCartesianGridProps","getXAxisProps","getYAxisProps","getLegendProps","onClick","onMouseEnter","onMouseLeave","activeItems","getTooltipProps","map","_child$props$color","_child$props$color2","_child$props$color3","activeDot","fill","getThemeColor","color","isAnimationActive","dot","name","label","strokeWidth","stroke","stackId","hide","opacity"],"mappings":";;;;;;;;AAsBA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAIC,CAAyB;EAAA,OAAK,IAAI;AAAA;IAQnCC,SAAS,GAAG,SAASA,SAASA,CAAkBC,aAAoC;EAC7F,IAAQC,QAAQ,GAAgCD,aAAa,CAArDC,QAAQ;IAAEC,IAAI,GAA0BF,aAAa,CAA3CE,IAAI;IAAEC,SAAS,GAAeH,aAAa,CAArCG,SAAS;IAAKC,KAAK,GAAAC,6BAAA,CAAKL,aAAa,EAAAM,SAAA;EAC7D,IAAAC,SAAA,GAAsCC,QAAQ,CAAgC,IAAI,CAAC;IAA5EC,WAAW,GAAAF,SAAA;IAAEG,cAAc,GAAAH,SAAA;EAClC,IAAAI,UAAA,GAAsCH,QAAQ,CAA0B;MACpE,IAAMI,KAAK,GAAG,EAA6B;MAE3CC,cAAK,CAACC,QAAQ,CAACC,OAAO,CAACd,QAAQ,EAAE,UAAAe,KAAK;QAClCJ,KAAK,CAACI,KAAK,CAACZ,KAAK,CAACa,QAAQ,CAAC,GAAG,IAAI;OACrC,CAAC;MAEF,OAAOL,KAAK;KACf,CAAC;IARKM,WAAW,GAAAP,UAAA;IAAEQ,cAAc,GAAAR,UAAA;EAUlC,IAAMS,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA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ACtD;MACDO,iBAAiB,EAAE,KAAK;MACxBzB,OAAO,EAAER,KAAK,CAACZ,KAAK,CAACa,QAAQ;MAC7BiC,GAAG,EAAE,KAAK;MACVJ,IAAI,EAAEC,aAAa,EAAAJ,mBAAA,GAAC3B,KAAK,CAACZ,KAAK,CAAC4C,KAAK,cAAAL,mBAAA,cAAAA,mBAAA,GAAI,UAAU,CAAC;MACpDQ,IAAI,EAAEnC,KAAK,CAACZ,KAAK,CAACgD,KAAK;MACvBC,WAAW,EAAE,CAAC;MACdC,MAAM,EAAEP,aAAa,EAAAH,mBAAA,GAAC5B,KAAK,CAACZ,KAAK,CAAC4C,KAAK,cAAAJ,mBAAA,cAAAA,mBAAA,GAAI,UAAU,CAAC;MACtDW,OAAO,EAAEvC,KAAK,CAACZ,KAAK,CAACmD,OAAO;MAC5BC,IAAI,EAAE,CAACtC,WAAW,CAACF,KAAK,CAACZ,KAAK,CAACa,QAAQ,CAAC;MACxCwC,OAAO,EAAEhD,WAAW,IAAIO,KAAK,CAACZ,KAAK,CAACa,QAAQ,KAAKR,WAAW,GAAG,GAAG,GAAG;MACvE;GACL,CAAC,CACe,CACH;AAE9B;AACAV,SAAS,CAACF,IAAI,GAAGA,IAAI;;;;"}
1
+ {"version":3,"file":"AreaChart.js","sources":["../../../../../../../../src/charts/components/Area/AreaChart.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport * as Recharts from 'recharts';\n\nimport { Color, getThemeColor } from '../../utils/color';\nimport {\n CommonChartProps,\n getCartesianGridProps,\n getXAxisProps,\n getYAxisProps,\n getLegendProps,\n getTooltipProps,\n} from '../../utils/common';\nimport { ResponsiveContainer } from '../ResponsiveContainer';\nimport { ActiveChartItems, PayloadType } from '../types';\n\ntype AreaChartBarProps<TType> = {\n accessor: keyof TType & string;\n color?: Color;\n label?: string;\n stackId?: string;\n};\n\nconst Area = (_: AreaChartBarProps<any>) => null;\n\ntype AreaChartProps<TType> = CommonChartProps<TType> & {\n children: React.ReactElement<AreaChartBarProps<TType>> | React.ReactElement<AreaChartBarProps<TType>>[];\n data: TType[];\n formatter?: (value: any) => string;\n};\n\nexport const AreaChart = function AreaChart<TType = unknown>(externalProps: AreaChartProps<TType>) {\n const { children, data, formatter, ...props } = externalProps;\n const [hoveredArea, setHoveredArea] = useState<(keyof TType & string) | null>(null);\n const [activeAreas, setActiveAreas] = useState<ActiveChartItems<TType>>(() => {\n const areas = {} as ActiveChartItems<TType>;\n\n React.Children.forEach(children, child => {\n areas[child.props.accessor] = true;\n });\n\n return areas;\n });\n\n const handleLegendClick = (entry: PayloadType<TType>): void => {\n setHoveredArea(null);\n setActiveAreas({ ...activeAreas, [entry.dataKey]: !activeAreas[entry.dataKey] });\n };\n\n return (\n <ResponsiveContainer>\n <Recharts.AreaChart data={data} margin={{ top: 10, right: 0, left: -25, bottom: 0 }}>\n <Recharts.CartesianGrid {...getCartesianGridProps()} />\n <Recharts.XAxis {...getXAxisProps<TType>(props)} />\n <Recharts.YAxis {...getYAxisProps<TType>(props)} />\n <Recharts.Legend\n {...getLegendProps({\n onClick: handleLegendClick,\n onMouseEnter: entry => setHoveredArea(entry.dataKey),\n onMouseLeave: () => setHoveredArea(null),\n activeItems: activeAreas,\n })}\n />\n <Recharts.Tooltip {...getTooltipProps()} formatter={formatter} />\n {React.Children.map(children, child => (\n <Recharts.Area\n activeDot={{\n fill: getThemeColor(child.props.color ?? 'blue-300'),\n }}\n isAnimationActive={false}\n dataKey={child.props.accessor}\n dot={false}\n fill={getThemeColor(child.props.color ?? 'grey-100')}\n name={child.props.label}\n strokeWidth={2}\n stroke={getThemeColor(child.props.color ?? 'grey-300')}\n stackId={child.props.stackId}\n hide={!activeAreas[child.props.accessor]}\n opacity={hoveredArea && child.props.accessor !== hoveredArea ? 0.3 : 1}\n />\n ))}\n </Recharts.AreaChart>\n </ResponsiveContainer>\n );\n};\nAreaChart.Area = Area;\n"],"names":["Area","_","AreaChart","externalProps","children","data","formatter","props","hoveredArea","setHoveredArea","useState","activeAreas","setActiveAreas","areas","React","Children","forEach","child","accessor","handleLegendClick","entry","dataKey","ResponsiveContainer","Recharts","margin","top","right","left","bottom","getCartesianGridProps","getXAxisProps","getYAxisProps","getLegendProps","onClick","onMouseEnter","onMouseLeave","activeItems","getTooltipProps","map","_child$props$color","_child$props$color2","_child$props$color3","activeDot","fill","getThemeColor","color","isAnimationActive","dot","name","label","strokeWidth","stroke","stackId","hide","opacity"],"mappings":";;;;;;AAsBA,MAAMA,IAAI,GAAIC,CAAyB,IAAK,IAAI;MAQnCC,SAAS,GAAG,SAASA,SAASA,CAAkBC,aAAoC;EAC7F,MAAM;IAAEC,QAAQ;IAAEC,IAAI;IAAEC,SAAS;IAAE,GAAGC;GAAO,GAAGJ,aAAa;EAC7D,MAAM,CAACK,WAAW,EAAEC,cAAc,CAAC,GAAGC,QAAQ,CAAgC,IAAI,CAAC;EACnF,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGF,QAAQ,CAA0B;IACpE,MAAMG,KAAK,GAAG,EAA6B;IAE3CC,cAAK,CAACC,QAAQ,CAACC,OAAO,CAACZ,QAAQ,EAAEa,KAAK;MAClCJ,KAAK,CAACI,KAAK,CAACV,KAAK,CAACW,QAAQ,CAAC,GAAG,IAAI;KACrC,CAAC;IAEF,OAAOL,KAAK;GACf,CAAC;EAEF,MAAMM,iBAAiB,GAAIC,KAAyB;IAChDX,cAAc,CAAC,IAAI,CAAC;IACpBG,cAAc,CAAC;MAAE,GAAGD,WAAW;MAAE,CAACS,KAAK,CAACC,OAAO,GAAG,CAACV,WAAW,CAACS,KAAK,CAACC,OAAO;KAAG,CAAC;GACnF;EAED,oBACIP,6BAACQ,mBAAmB,qBAChBR,6BAACS,WAAkB;IAAClB,IAAI,EAAEA,IAAI;IAAEmB,MAAM,EAAE;MAAEC,GAAG,EAAE,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,IAAI,EAAE,CAAC,EAAE;MAAEC,MAAM,EAAE;;kBAC5Ed,6BAACS,aAAsB,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AC6C,OAAO;MAC5BC,IAAI,EAAE,CAAC1C,WAAW,CAACM,KAAK,CAACV,KAAK,CAACW,QAAQ,CAAC;MACxCoC,OAAO,EAAE9C,WAAW,IAAIS,KAAK,CAACV,KAAK,CAACW,QAAQ,KAAKV,WAAW,GAAG,GAAG,GAAG;MACvE;GACL,CAAC,CACe,CACH;AAE9B;AACAN,SAAS,CAACF,IAAI,GAAGA,IAAI;;;;"}
@@ -1,52 +1,45 @@
1
1
  import React__default, { useState } from 'react';
2
- import { objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose, extends as _extends } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
3
2
  import { BarChart as BarChart$1, CartesianGrid, XAxis, YAxis, Legend, Tooltip, Bar as Bar$1, Cell } from 'recharts';
4
3
  import { getThemeColor } from '../../utils/color.js';
5
4
  import { getCartesianGridProps, getXAxisProps, getYAxisProps, getLegendProps, getTooltipProps } from '../../utils/common.js';
6
5
  import { ResponsiveContainer } from '../ResponsiveContainer.js';
7
6
 
8
- var _excluded = ["children", "data", "formatter", "layout"];
9
- var Bar = function Bar(_) {
10
- return null;
11
- };
12
- var getXAxisVerticalProps = function getXAxisVerticalProps(props) {
13
- return _extends({}, getXAxisProps(props), {
7
+ const Bar = _ => null;
8
+ const getXAxisVerticalProps = props => ({
9
+ ...getXAxisProps(props),
10
+ ...{
14
11
  type: 'number',
15
12
  dataKey: undefined
16
- });
17
- };
18
- var getYAxisVerticalProps = function getYAxisVerticalProps(props) {
19
- return _extends({}, getYAxisProps(props), {
13
+ }
14
+ });
15
+ const getYAxisVerticalProps = props => ({
16
+ ...getYAxisProps(props),
17
+ ...{
20
18
  dataKey: props.accessor,
21
19
  type: 'category'
20
+ }
21
+ });
22
+ const BarChart = function BarChart(externalProps) {
23
+ const {
24
+ children,
25
+ data,
26
+ formatter,
27
+ layout = 'horizontal',
28
+ ...props
29
+ } = externalProps;
30
+ const [activeIndex, setActiveIndex] = React__default.useState(undefined);
31
+ const [hoveredBar, setHoveredBar] = useState(null);
32
+ const [activeBars, setActiveBars] = useState(() => {
33
+ const keys = {};
34
+ React__default.Children.forEach(children, child => {
35
+ keys[child.props.accessor] = true;
36
+ });
37
+ return keys;
22
38
  });
23
- };
24
- var BarChart = function BarChart(externalProps) {
25
- var children = externalProps.children,
26
- data = externalProps.data,
27
- formatter = externalProps.formatter,
28
- _externalProps$layout = externalProps.layout,
29
- layout = _externalProps$layout === void 0 ? 'horizontal' : _externalProps$layout,
30
- props = _objectWithoutPropertiesLoose(externalProps, _excluded);
31
- var _React$useState = React__default.useState(undefined),
32
- activeIndex = _React$useState[0],
33
- setActiveIndex = _React$useState[1];
34
- var _useState = useState(null),
35
- hoveredBar = _useState[0],
36
- setHoveredBar = _useState[1];
37
- var _useState2 = useState(function () {
38
- var keys = {};
39
- React__default.Children.forEach(children, function (child) {
40
- keys[child.props.accessor] = true;
41
- });
42
- return keys;
43
- }),
44
- activeBars = _useState2[0],
45
- setActiveBars = _useState2[1];
46
39
  // Recharts doesn't provide a way for us to know if a stacked bar is at the top or the bottom,
47
40
  // so we can't set proper radiuses without some "magic"
48
- var stacks = {};
49
- React__default.Children.forEach(children, function (child) {
41
+ const stacks = {};
42
+ React__default.Children.forEach(children, child => {
50
43
  if (child.props.stackId) {
51
44
  if (!stacks[child.props.stackId]) {
52
45
  stacks[child.props.stackId] = [child.props.accessor];
@@ -55,12 +48,14 @@ var BarChart = function BarChart(externalProps) {
55
48
  }
56
49
  }
57
50
  });
58
- var handleLegendClick = function handleLegendClick(entry) {
59
- var _extends2;
51
+ const handleLegendClick = entry => {
60
52
  setHoveredBar(null);
61
- setActiveBars(_extends({}, activeBars, (_extends2 = {}, _extends2[entry.dataKey] = !activeBars[entry.dataKey], _extends2)));
53
+ setActiveBars({
54
+ ...activeBars,
55
+ [entry.dataKey]: !activeBars[entry.dataKey]
56
+ });
62
57
  };
63
- var handleLegendHover = function handleLegendHover(entry, index) {
58
+ const handleLegendHover = (entry, index) => {
64
59
  setHoveredBar(entry.dataKey);
65
60
  setActiveIndex(index);
66
61
  };
@@ -73,59 +68,41 @@ var BarChart = function BarChart(externalProps) {
73
68
  left: layout === 'vertical' ? 0 : -25,
74
69
  bottom: 0
75
70
  },
76
- onMouseMove: function onMouseMove(chartState) {
77
- return setActiveIndex(chartState.activeTooltipIndex);
78
- },
79
- onMouseLeave: function onMouseLeave() {
80
- return setActiveIndex(undefined);
81
- }
71
+ onMouseMove: chartState => setActiveIndex(chartState.activeTooltipIndex),
72
+ onMouseLeave: () => setActiveIndex(undefined)
82
73
  }, /*#__PURE__*/React__default.createElement(CartesianGrid, Object.assign({}, getCartesianGridProps())), /*#__PURE__*/React__default.createElement(XAxis, Object.assign({}, layout === 'vertical' ? getXAxisVerticalProps(props) : getXAxisProps(props))), /*#__PURE__*/React__default.createElement(YAxis, Object.assign({}, layout === 'vertical' ? getYAxisVerticalProps(props) : getYAxisProps(props))), /*#__PURE__*/React__default.createElement(Legend, Object.assign({}, getLegendProps({
83
74
  onClick: handleLegendClick,
84
75
  onMouseEnter: handleLegendHover,
85
- onMouseLeave: function onMouseLeave() {
86
- return setHoveredBar(null);
87
- },
76
+ onMouseLeave: () => setHoveredBar(null),
88
77
  activeItems: activeBars
89
78
  }))), /*#__PURE__*/React__default.createElement(Tooltip, Object.assign({}, getTooltipProps(), {
90
79
  formatter: formatter
91
- })), React__default.Children.map(children, function (child) {
92
- return /*#__PURE__*/React__default.createElement(Bar$1, {
93
- isAnimationActive: false,
94
- barSize: 16,
95
- dataKey: child.props.accessor,
96
- name: child.props.label,
97
- onMouseEnter: function onMouseEnter(_, index) {
98
- return setActiveIndex(index);
99
- },
100
- onMouseLeave: function onMouseLeave() {
101
- return setActiveIndex(undefined);
102
- },
103
- fill: getThemeColor(child.props.color ? "" + child.props.color : "blue-300"),
104
- radius: getBarRadius(stacks, child.props.accessor, child.props.stackId, activeBars),
105
- stackId: child.props.stackId,
106
- style: child.props.stackId ? {
107
- stroke: '#fff',
108
- strokeWidth: '2px'
109
- } : undefined,
110
- hide: !activeBars[child.props.accessor]
111
- }, data.map(function (_, index) {
112
- return /*#__PURE__*/React__default.createElement(Cell, {
113
- key: "cell-" + index,
114
- opacity: hoveredBar && child.props.accessor !== hoveredBar || activeIndex !== undefined && activeIndex !== index ? 0.3 : 1
115
- });
116
- }));
117
- })));
80
+ })), React__default.Children.map(children, child => (/*#__PURE__*/React__default.createElement(Bar$1, {
81
+ isAnimationActive: false,
82
+ barSize: 16,
83
+ dataKey: child.props.accessor,
84
+ name: child.props.label,
85
+ onMouseEnter: (_, index) => setActiveIndex(index),
86
+ onMouseLeave: () => setActiveIndex(undefined),
87
+ fill: getThemeColor(child.props.color ? `${child.props.color}` : `blue-300`),
88
+ radius: getBarRadius(stacks, child.props.accessor, child.props.stackId, activeBars),
89
+ stackId: child.props.stackId,
90
+ style: child.props.stackId ? {
91
+ stroke: '#fff',
92
+ strokeWidth: '2px'
93
+ } : undefined,
94
+ hide: !activeBars[child.props.accessor]
95
+ }, data.map((_, index) => (/*#__PURE__*/React__default.createElement(Cell, {
96
+ key: `cell-${index}`,
97
+ opacity: hoveredBar && child.props.accessor !== hoveredBar || activeIndex !== undefined && activeIndex !== index ? 0.3 : 1
98
+ }))))))));
118
99
  };
119
100
  BarChart.Bar = Bar;
120
- var getBarRadius = function getBarRadius(stacks, accessor, stackId, activeBars) {
101
+ const getBarRadius = (stacks, accessor, stackId, activeBars) => {
121
102
  if (stackId && Array.isArray(stacks[stackId])) {
122
- var length = stacks[stackId].length - 1;
123
- var index = stacks[stackId].indexOf(accessor);
124
- if (Object.entries(activeBars).filter(function (item) {
125
- return item[0] !== accessor;
126
- }).every(function (item) {
127
- return !item[1];
128
- })) {
103
+ const length = stacks[stackId].length - 1;
104
+ const index = stacks[stackId].indexOf(accessor);
105
+ if (Object.entries(activeBars).filter(item => item[0] !== accessor).every(item => !item[1])) {
129
106
  return [3, 3, 0, 0];
130
107
  }
131
108
  if (activeBars[stacks[stackId][index + 1]] === false) {