@economic/taco 2.48.3 → 2.49.0-server.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (659) hide show
  1. package/dist/components/Report/Report.d.ts +1 -1
  2. package/dist/components/SearchInput2/SearchInput2.d.ts +2 -0
  3. package/dist/components/Table3/features/useEditingState.d.ts +11 -11
  4. package/dist/components/Table3/features/useTableEditing.d.ts +13 -13
  5. package/dist/esm/_virtual/_rollupPluginBabelHelpers.js +63 -0
  6. package/dist/esm/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
  7. package/dist/esm/node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js +17 -17
  8. package/dist/esm/node_modules/babel-plugin-transform-async-to-promises/helpers.mjs.js.map +1 -1
  9. package/dist/esm/packages/taco/src/charts/components/Area/AreaChart.js +32 -24
  10. package/dist/esm/packages/taco/src/charts/components/Area/AreaChart.js.map +1 -1
  11. package/dist/esm/packages/taco/src/charts/components/Bar/BarChart.js +84 -61
  12. package/dist/esm/packages/taco/src/charts/components/Bar/BarChart.js.map +1 -1
  13. package/dist/esm/packages/taco/src/charts/components/Donut/ActiveShape.js +16 -15
  14. package/dist/esm/packages/taco/src/charts/components/Donut/ActiveShape.js.map +1 -1
  15. package/dist/esm/packages/taco/src/charts/components/Donut/CenteredLabel.js +12 -13
  16. package/dist/esm/packages/taco/src/charts/components/Donut/CenteredLabel.js.map +1 -1
  17. package/dist/esm/packages/taco/src/charts/components/Donut/DonutChart.js +104 -68
  18. package/dist/esm/packages/taco/src/charts/components/Donut/DonutChart.js.map +1 -1
  19. package/dist/esm/packages/taco/src/charts/components/Donut/Legend.js +39 -29
  20. package/dist/esm/packages/taco/src/charts/components/Donut/Legend.js.map +1 -1
  21. package/dist/esm/packages/taco/src/charts/components/Donut/util.js +2 -2
  22. package/dist/esm/packages/taco/src/charts/components/Donut/util.js.map +1 -1
  23. package/dist/esm/packages/taco/src/charts/components/Legend.js +46 -37
  24. package/dist/esm/packages/taco/src/charts/components/Legend.js.map +1 -1
  25. package/dist/esm/packages/taco/src/charts/components/Line/LineChart.js +32 -24
  26. package/dist/esm/packages/taco/src/charts/components/Line/LineChart.js.map +1 -1
  27. package/dist/esm/packages/taco/src/charts/components/ResponsiveContainer.js +5 -3
  28. package/dist/esm/packages/taco/src/charts/components/ResponsiveContainer.js.map +1 -1
  29. package/dist/esm/packages/taco/src/charts/components/Tooltip.js +26 -25
  30. package/dist/esm/packages/taco/src/charts/components/Tooltip.js.map +1 -1
  31. package/dist/esm/packages/taco/src/charts/utils/color.js +13 -12
  32. package/dist/esm/packages/taco/src/charts/utils/color.js.map +1 -1
  33. package/dist/esm/packages/taco/src/charts/utils/common.js +39 -26
  34. package/dist/esm/packages/taco/src/charts/utils/common.js.map +1 -1
  35. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +30 -31
  36. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -1
  37. package/dist/esm/packages/taco/src/components/Alert/Alert.js +7 -9
  38. package/dist/esm/packages/taco/src/components/Alert/Alert.js.map +1 -1
  39. package/dist/esm/packages/taco/src/components/AlertDialog/AlertDialog.js +14 -13
  40. package/dist/esm/packages/taco/src/components/AlertDialog/AlertDialog.js.map +1 -1
  41. package/dist/esm/packages/taco/src/components/AlertDialog/Context.js +2 -2
  42. package/dist/esm/packages/taco/src/components/AlertDialog/Context.js.map +1 -1
  43. package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js +10 -9
  44. package/dist/esm/packages/taco/src/components/AlertDialog/components/Content.js.map +1 -1
  45. package/dist/esm/packages/taco/src/components/AlertDialog/components/Footer.js +4 -4
  46. package/dist/esm/packages/taco/src/components/AlertDialog/components/Footer.js.map +1 -1
  47. package/dist/esm/packages/taco/src/components/AlertDialog/components/Trigger.js +5 -6
  48. package/dist/esm/packages/taco/src/components/AlertDialog/components/Trigger.js.map +1 -1
  49. package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js +2 -2
  50. package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js.map +1 -1
  51. package/dist/esm/packages/taco/src/components/Badge/Badge.js +21 -25
  52. package/dist/esm/packages/taco/src/components/Badge/Badge.js.map +1 -1
  53. package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js +12 -14
  54. package/dist/esm/packages/taco/src/components/BadgeIcon/BadgeIcon.js.map +1 -1
  55. package/dist/esm/packages/taco/src/components/Banner/Banner.js +7 -10
  56. package/dist/esm/packages/taco/src/components/Banner/Banner.js.map +1 -1
  57. package/dist/esm/packages/taco/src/components/Banner/util.js +3 -3
  58. package/dist/esm/packages/taco/src/components/Banner/util.js.map +1 -1
  59. package/dist/esm/packages/taco/src/components/Button/Button.js +26 -28
  60. package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -1
  61. package/dist/esm/packages/taco/src/components/Button/util.js +25 -24
  62. package/dist/esm/packages/taco/src/components/Button/util.js.map +1 -1
  63. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js +75 -71
  64. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js.map +1 -1
  65. package/dist/esm/packages/taco/src/components/Card/Card.js +14 -15
  66. package/dist/esm/packages/taco/src/components/Card/Card.js.map +1 -1
  67. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js +24 -22
  68. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
  69. package/dist/esm/packages/taco/src/components/Combobox/Combobox.js +21 -23
  70. package/dist/esm/packages/taco/src/components/Combobox/Combobox.js.map +1 -1
  71. package/dist/esm/packages/taco/src/components/Combobox/useCombobox.js +76 -64
  72. package/dist/esm/packages/taco/src/components/Combobox/useCombobox.js.map +1 -1
  73. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +60 -57
  74. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
  75. package/dist/esm/packages/taco/src/components/Datepicker/useDatepicker.js +27 -28
  76. package/dist/esm/packages/taco/src/components/Datepicker/useDatepicker.js.map +1 -1
  77. package/dist/esm/packages/taco/src/components/Dialog/Context.js +4 -4
  78. package/dist/esm/packages/taco/src/components/Dialog/Context.js.map +1 -1
  79. package/dist/esm/packages/taco/src/components/Dialog/Dialog.js +54 -39
  80. package/dist/esm/packages/taco/src/components/Dialog/Dialog.js.map +1 -1
  81. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +36 -38
  82. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -1
  83. package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js +3 -3
  84. package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js.map +1 -1
  85. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js +2 -2
  86. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js.map +1 -1
  87. package/dist/esm/packages/taco/src/components/Dialog/components/Trigger.js +5 -6
  88. package/dist/esm/packages/taco/src/components/Dialog/components/Trigger.js.map +1 -1
  89. package/dist/esm/packages/taco/src/components/Dialog/util.js +7 -3
  90. package/dist/esm/packages/taco/src/components/Dialog/util.js.map +1 -1
  91. package/dist/esm/packages/taco/src/components/Drawer/Context.js +5 -5
  92. package/dist/esm/packages/taco/src/components/Drawer/Context.js.map +1 -1
  93. package/dist/esm/packages/taco/src/components/Drawer/Drawer.js +61 -51
  94. package/dist/esm/packages/taco/src/components/Drawer/Drawer.js.map +1 -1
  95. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +134 -145
  96. package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -1
  97. package/dist/esm/packages/taco/src/components/Drawer/components/Trigger.js +1 -1
  98. package/dist/esm/packages/taco/src/components/Drawer/components/Trigger.js.map +1 -1
  99. package/dist/esm/packages/taco/src/components/Drawer/util.js +5 -5
  100. package/dist/esm/packages/taco/src/components/Drawer/util.js.map +1 -1
  101. package/dist/esm/packages/taco/src/components/Field/Field.js +14 -12
  102. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  103. package/dist/esm/packages/taco/src/components/Form/Form.js +7 -6
  104. package/dist/esm/packages/taco/src/components/Form/Form.js.map +1 -1
  105. package/dist/esm/packages/taco/src/components/Group/Group.js +9 -7
  106. package/dist/esm/packages/taco/src/components/Group/Group.js.map +1 -1
  107. package/dist/esm/packages/taco/src/components/Hanger/Hanger.js +37 -36
  108. package/dist/esm/packages/taco/src/components/Hanger/Hanger.js.map +1 -1
  109. package/dist/esm/packages/taco/src/components/Header/Header.js +2 -2
  110. package/dist/esm/packages/taco/src/components/Header/Header.js.map +1 -1
  111. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js +14 -10
  112. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Avatar.js.map +1 -1
  113. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Badge.js +5 -4
  114. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Badge.js.map +1 -1
  115. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js +7 -9
  116. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Display.js.map +1 -1
  117. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js +9 -9
  118. package/dist/esm/packages/taco/src/components/Header/components/Agreement/Item.js.map +1 -1
  119. package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.js +66 -46
  120. package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.js.map +1 -1
  121. package/dist/esm/packages/taco/src/components/Header/components/Button.js +12 -8
  122. package/dist/esm/packages/taco/src/components/Header/components/Button.js.map +1 -1
  123. package/dist/esm/packages/taco/src/components/Header/components/Link.js +22 -18
  124. package/dist/esm/packages/taco/src/components/Header/components/Link.js.map +1 -1
  125. package/dist/esm/packages/taco/src/components/Header/components/Logo.js +4 -4
  126. package/dist/esm/packages/taco/src/components/Header/components/Logo.js.map +1 -1
  127. package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js +2 -2
  128. package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js.map +1 -1
  129. package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js +10 -9
  130. package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js.map +1 -1
  131. package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js +2 -2
  132. package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js.map +1 -1
  133. package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js +5 -7
  134. package/dist/esm/packages/taco/src/components/HoverCard/HoverCard.js.map +1 -1
  135. package/dist/esm/packages/taco/src/components/HoverCard/Primitives.js +1 -1
  136. package/dist/esm/packages/taco/src/components/HoverCard/Primitives.js.map +1 -1
  137. package/dist/esm/packages/taco/src/components/Icon/Icon.js +7 -7
  138. package/dist/esm/packages/taco/src/components/Icon/Icon.js.map +1 -1
  139. package/dist/esm/packages/taco/src/components/Icon/components/index.js +4 -4
  140. package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -1
  141. package/dist/esm/packages/taco/src/components/IconButton/IconButton.js +22 -23
  142. package/dist/esm/packages/taco/src/components/IconButton/IconButton.js.map +1 -1
  143. package/dist/esm/packages/taco/src/components/Input/Input.js +45 -44
  144. package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
  145. package/dist/esm/packages/taco/src/components/Input/util.js +8 -5
  146. package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
  147. package/dist/esm/packages/taco/src/components/Layout/Layout.js +7 -5
  148. package/dist/esm/packages/taco/src/components/Layout/Layout.js.map +1 -1
  149. package/dist/esm/packages/taco/src/components/Layout/components/Content.js +2 -2
  150. package/dist/esm/packages/taco/src/components/Layout/components/Content.js.map +1 -1
  151. package/dist/esm/packages/taco/src/components/Layout/components/Context.js +4 -2
  152. package/dist/esm/packages/taco/src/components/Layout/components/Context.js.map +1 -1
  153. package/dist/esm/packages/taco/src/components/Layout/components/Page.js +2 -2
  154. package/dist/esm/packages/taco/src/components/Layout/components/Page.js.map +1 -1
  155. package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js +34 -27
  156. package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js.map +1 -1
  157. package/dist/esm/packages/taco/src/components/Layout/components/Top.js +9 -6
  158. package/dist/esm/packages/taco/src/components/Layout/components/Top.js.map +1 -1
  159. package/dist/esm/packages/taco/src/components/List/components/Button.js +1 -1
  160. package/dist/esm/packages/taco/src/components/List/components/Button.js.map +1 -1
  161. package/dist/esm/packages/taco/src/components/List/components/Collapsible.js +10 -7
  162. package/dist/esm/packages/taco/src/components/List/components/Collapsible.js.map +1 -1
  163. package/dist/esm/packages/taco/src/components/List/components/Group.js +1 -1
  164. package/dist/esm/packages/taco/src/components/List/components/Group.js.map +1 -1
  165. package/dist/esm/packages/taco/src/components/List/components/Item.js +15 -13
  166. package/dist/esm/packages/taco/src/components/List/components/Item.js.map +1 -1
  167. package/dist/esm/packages/taco/src/components/List/components/Link.js +3 -3
  168. package/dist/esm/packages/taco/src/components/List/components/Link.js.map +1 -1
  169. package/dist/esm/packages/taco/src/components/List/components/Toggle.js +29 -27
  170. package/dist/esm/packages/taco/src/components/List/components/Toggle.js.map +1 -1
  171. package/dist/esm/packages/taco/src/components/Listbox/Listbox.js +21 -26
  172. package/dist/esm/packages/taco/src/components/Listbox/Listbox.js.map +1 -1
  173. package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js +82 -70
  174. package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js.map +1 -1
  175. package/dist/esm/packages/taco/src/components/Listbox/useListbox.js +56 -51
  176. package/dist/esm/packages/taco/src/components/Listbox/useListbox.js.map +1 -1
  177. package/dist/esm/packages/taco/src/components/Listbox/useMultiListbox.js +83 -65
  178. package/dist/esm/packages/taco/src/components/Listbox/useMultiListbox.js.map +1 -1
  179. package/dist/esm/packages/taco/src/components/Listbox/useTypeahead.js +9 -10
  180. package/dist/esm/packages/taco/src/components/Listbox/useTypeahead.js.map +1 -1
  181. package/dist/esm/packages/taco/src/components/Listbox/util.js +78 -48
  182. package/dist/esm/packages/taco/src/components/Listbox/util.js.map +1 -1
  183. package/dist/esm/packages/taco/src/components/Menu/Context.js +2 -2
  184. package/dist/esm/packages/taco/src/components/Menu/Context.js.map +1 -1
  185. package/dist/esm/packages/taco/src/components/Menu/Menu.js +42 -26
  186. package/dist/esm/packages/taco/src/components/Menu/Menu.js.map +1 -1
  187. package/dist/esm/packages/taco/src/components/Menu/components/Checkbox.js +8 -8
  188. package/dist/esm/packages/taco/src/components/Menu/components/Checkbox.js.map +1 -1
  189. package/dist/esm/packages/taco/src/components/Menu/components/Content.js +27 -21
  190. package/dist/esm/packages/taco/src/components/Menu/components/Content.js.map +1 -1
  191. package/dist/esm/packages/taco/src/components/Menu/components/Header.js +3 -3
  192. package/dist/esm/packages/taco/src/components/Menu/components/Header.js.map +1 -1
  193. package/dist/esm/packages/taco/src/components/Menu/components/Item.js +32 -32
  194. package/dist/esm/packages/taco/src/components/Menu/components/Item.js.map +1 -1
  195. package/dist/esm/packages/taco/src/components/Menu/components/Link.js +10 -10
  196. package/dist/esm/packages/taco/src/components/Menu/components/Link.js.map +1 -1
  197. package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js +15 -16
  198. package/dist/esm/packages/taco/src/components/Menu/components/RadioGroup.js.map +1 -1
  199. package/dist/esm/packages/taco/src/components/Menu/components/Separator.js +1 -1
  200. package/dist/esm/packages/taco/src/components/Menu/components/Separator.js.map +1 -1
  201. package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js +7 -7
  202. package/dist/esm/packages/taco/src/components/Menu/components/SubMenu.js.map +1 -1
  203. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +5 -5
  204. package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js.map +1 -1
  205. package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js +6 -6
  206. package/dist/esm/packages/taco/src/components/ModeSwitch/ModeSwitch.js.map +1 -1
  207. package/dist/esm/packages/taco/src/components/Navigation/Navigation.js +41 -36
  208. package/dist/esm/packages/taco/src/components/Navigation/Navigation.js.map +1 -1
  209. package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js +6 -6
  210. package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js.map +1 -1
  211. package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js +6 -6
  212. package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js.map +1 -1
  213. package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js +14 -11
  214. package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js.map +1 -1
  215. package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js +31 -24
  216. package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js.map +1 -1
  217. package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js +7 -7
  218. package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js.map +1 -1
  219. package/dist/esm/packages/taco/src/components/Navigation2/components/util.js +9 -7
  220. package/dist/esm/packages/taco/src/components/Navigation2/components/util.js.map +1 -1
  221. package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js +48 -51
  222. package/dist/esm/packages/taco/src/components/OverflowGroup/OverflowGroup.js.map +1 -1
  223. package/dist/esm/packages/taco/src/components/Pagination/PageNumbers.js +26 -23
  224. package/dist/esm/packages/taco/src/components/Pagination/PageNumbers.js.map +1 -1
  225. package/dist/esm/packages/taco/src/components/Pagination/Pagination.js +53 -39
  226. package/dist/esm/packages/taco/src/components/Pagination/Pagination.js.map +1 -1
  227. package/dist/esm/packages/taco/src/components/Pagination/usePagination.js +17 -7
  228. package/dist/esm/packages/taco/src/components/Pagination/usePagination.js.map +1 -1
  229. package/dist/esm/packages/taco/src/components/Pagination/usePaginationShortcuts.js +8 -9
  230. package/dist/esm/packages/taco/src/components/Pagination/usePaginationShortcuts.js.map +1 -1
  231. package/dist/esm/packages/taco/src/components/Popover/Popover.js +45 -43
  232. package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +1 -1
  233. package/dist/esm/packages/taco/src/components/Popover/Primitives.js +1 -1
  234. package/dist/esm/packages/taco/src/components/Popover/Primitives.js.map +1 -1
  235. package/dist/esm/packages/taco/src/components/Popover/util.js +3 -1
  236. package/dist/esm/packages/taco/src/components/Popover/util.js.map +1 -1
  237. package/dist/esm/packages/taco/src/components/Progress/Progress.js +13 -11
  238. package/dist/esm/packages/taco/src/components/Progress/Progress.js.map +1 -1
  239. package/dist/esm/packages/taco/src/components/Provider/Localization.js +13 -12
  240. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  241. package/dist/esm/packages/taco/src/components/Provider/Provider.js +8 -8
  242. package/dist/esm/packages/taco/src/components/Provider/Provider.js.map +1 -1
  243. package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js +54 -47
  244. package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -1
  245. package/dist/esm/packages/taco/src/components/RadioGroup/util.js +7 -1
  246. package/dist/esm/packages/taco/src/components/RadioGroup/util.js.map +1 -1
  247. package/dist/esm/packages/taco/src/components/Report/Report.js +7 -5
  248. package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -1
  249. package/dist/esm/packages/taco/src/components/Report/useReport.js +1 -1
  250. package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -1
  251. package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js +17 -13
  252. package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js.map +1 -1
  253. package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js +11 -11
  254. package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js.map +1 -1
  255. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js +48 -40
  256. package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js.map +1 -1
  257. package/dist/esm/packages/taco/src/components/Select/Select.js +28 -31
  258. package/dist/esm/packages/taco/src/components/Select/Select.js.map +1 -1
  259. package/dist/esm/packages/taco/src/components/Select/useSelect.js +79 -70
  260. package/dist/esm/packages/taco/src/components/Select/useSelect.js.map +1 -1
  261. package/dist/esm/packages/taco/src/components/Select2/Select2.js +154 -121
  262. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  263. package/dist/esm/packages/taco/src/components/Select2/components/Collection.js +2 -4
  264. package/dist/esm/packages/taco/src/components/Select2/components/Collection.js.map +1 -1
  265. package/dist/esm/packages/taco/src/components/Select2/components/Context.js +4 -2
  266. package/dist/esm/packages/taco/src/components/Select2/components/Context.js.map +1 -1
  267. package/dist/esm/packages/taco/src/components/Select2/components/Create.js +45 -41
  268. package/dist/esm/packages/taco/src/components/Select2/components/Create.js.map +1 -1
  269. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +145 -129
  270. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -1
  271. package/dist/esm/packages/taco/src/components/Select2/components/Group.js +8 -8
  272. package/dist/esm/packages/taco/src/components/Select2/components/Group.js.map +1 -1
  273. package/dist/esm/packages/taco/src/components/Select2/components/Option.js +29 -30
  274. package/dist/esm/packages/taco/src/components/Select2/components/Option.js.map +1 -1
  275. package/dist/esm/packages/taco/src/components/Select2/components/Search.js +9 -10
  276. package/dist/esm/packages/taco/src/components/Select2/components/Search.js.map +1 -1
  277. package/dist/esm/packages/taco/src/components/Select2/components/Title.js +2 -2
  278. package/dist/esm/packages/taco/src/components/Select2/components/Title.js.map +1 -1
  279. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +136 -128
  280. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
  281. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js +32 -23
  282. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js.map +1 -1
  283. package/dist/esm/packages/taco/src/components/Select2/utilities.js +13 -6
  284. package/dist/esm/packages/taco/src/components/Select2/utilities.js.map +1 -1
  285. package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js +16 -13
  286. package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js.map +1 -1
  287. package/dist/esm/packages/taco/src/components/Spinner/Spinner.js +17 -12
  288. package/dist/esm/packages/taco/src/components/Spinner/Spinner.js.map +1 -1
  289. package/dist/esm/packages/taco/src/components/Switch/Switch.js +14 -14
  290. package/dist/esm/packages/taco/src/components/Switch/Switch.js.map +1 -1
  291. package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js +28 -23
  292. package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js.map +1 -1
  293. package/dist/esm/packages/taco/src/components/Table/components/PaginatedTable.js +7 -3
  294. package/dist/esm/packages/taco/src/components/Table/components/PaginatedTable.js.map +1 -1
  295. package/dist/esm/packages/taco/src/components/Table/components/Table.js +22 -18
  296. package/dist/esm/packages/taco/src/components/Table/components/Table.js.map +1 -1
  297. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +100 -92
  298. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  299. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +137 -119
  300. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
  301. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowDraggable.js +55 -55
  302. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowDraggable.js.map +1 -1
  303. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowEditing.js +35 -41
  304. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowEditing.js.map +1 -1
  305. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowSelect.js +77 -71
  306. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowSelect.js.map +1 -1
  307. package/dist/esm/packages/taco/src/components/Table/hooks/useRowCreation.js +56 -30
  308. package/dist/esm/packages/taco/src/components/Table/hooks/useRowCreation.js.map +1 -1
  309. package/dist/esm/packages/taco/src/components/Table/hooks/useTable.js +151 -142
  310. package/dist/esm/packages/taco/src/components/Table/hooks/useTable.js.map +1 -1
  311. package/dist/esm/packages/taco/src/components/Table/hooks/useTableKeyboardNavigation.js +22 -20
  312. package/dist/esm/packages/taco/src/components/Table/hooks/useTableKeyboardNavigation.js.map +1 -1
  313. package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js +9 -12
  314. package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js.map +1 -1
  315. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js +41 -41
  316. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
  317. package/dist/esm/packages/taco/src/components/Table/util/rowIndexPath.js +16 -14
  318. package/dist/esm/packages/taco/src/components/Table/util/rowIndexPath.js.map +1 -1
  319. package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js +32 -26
  320. package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js.map +1 -1
  321. package/dist/esm/packages/taco/src/components/Table/util.js +37 -30
  322. package/dist/esm/packages/taco/src/components/Table/util.js.map +1 -1
  323. package/dist/esm/packages/taco/src/components/Table3/Table3.js +12 -10
  324. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  325. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js +13 -14
  326. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Cell.js.map +1 -1
  327. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +21 -23
  328. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -1
  329. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js +20 -17
  330. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +1 -1
  331. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +71 -75
  332. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -1
  333. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js +2 -2
  334. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +1 -1
  335. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +19 -20
  336. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +1 -1
  337. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +26 -25
  338. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -1
  339. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js +60 -48
  340. package/dist/esm/packages/taco/src/components/Table3/components/Editing/Alert.js.map +1 -1
  341. package/dist/esm/packages/taco/src/components/Table3/components/Editing/DiscardChangesConfirmationDialog.js +7 -8
  342. package/dist/esm/packages/taco/src/components/Table3/components/Editing/DiscardChangesConfirmationDialog.js.map +1 -1
  343. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js +18 -19
  344. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js.map +1 -1
  345. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js +7 -10
  346. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/SaveStatus.js.map +1 -1
  347. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js +38 -35
  348. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js.map +1 -1
  349. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +15 -15
  350. package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +1 -1
  351. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js +8 -11
  352. package/dist/esm/packages/taco/src/components/Table3/components/Toolbar/Editing/Editing.js.map +1 -1
  353. package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js +181 -241
  354. package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js.map +1 -1
  355. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +55 -33
  356. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -1
  357. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +33 -28
  358. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -1
  359. package/dist/esm/packages/taco/src/components/Table3/useTable3.js +25 -19
  360. package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -1
  361. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +29 -35
  362. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  363. package/dist/esm/packages/taco/src/components/Tabs/Tabs.js +34 -35
  364. package/dist/esm/packages/taco/src/components/Tabs/Tabs.js.map +1 -1
  365. package/dist/esm/packages/taco/src/components/Tag/Tag.js +12 -12
  366. package/dist/esm/packages/taco/src/components/Tag/Tag.js.map +1 -1
  367. package/dist/esm/packages/taco/src/components/Textarea/Textarea.js +8 -11
  368. package/dist/esm/packages/taco/src/components/Textarea/Textarea.js.map +1 -1
  369. package/dist/esm/packages/taco/src/components/Toast/Toast.js +19 -20
  370. package/dist/esm/packages/taco/src/components/Toast/Toast.js.map +1 -1
  371. package/dist/esm/packages/taco/src/components/Toast/Toaster.js +117 -96
  372. package/dist/esm/packages/taco/src/components/Toast/Toaster.js.map +1 -1
  373. package/dist/esm/packages/taco/src/components/Toast/util.js +6 -4
  374. package/dist/esm/packages/taco/src/components/Toast/util.js.map +1 -1
  375. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js +10 -9
  376. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js.map +1 -1
  377. package/dist/esm/packages/taco/src/components/Tour/Tour.js +49 -46
  378. package/dist/esm/packages/taco/src/components/Tour/Tour.js.map +1 -1
  379. package/dist/esm/packages/taco/src/components/Treeview/Treeview.js +33 -27
  380. package/dist/esm/packages/taco/src/components/Treeview/Treeview.js.map +1 -1
  381. package/dist/esm/packages/taco/src/components/Truncate/Truncate.js +15 -13
  382. package/dist/esm/packages/taco/src/components/Truncate/Truncate.js.map +1 -1
  383. package/dist/esm/packages/taco/src/components/VisuallyHidden/VisuallyHidden.js +1 -1
  384. package/dist/esm/packages/taco/src/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
  385. package/dist/esm/packages/taco/src/hooks/useBoundaryOverflowDetection.js +11 -6
  386. package/dist/esm/packages/taco/src/hooks/useBoundaryOverflowDetection.js.map +1 -1
  387. package/dist/esm/packages/taco/src/hooks/useBoundingClientRectListener.js +19 -13
  388. package/dist/esm/packages/taco/src/hooks/useBoundingClientRectListener.js.map +1 -1
  389. package/dist/esm/packages/taco/src/hooks/useGlobalKeyDown.js +4 -4
  390. package/dist/esm/packages/taco/src/hooks/useGlobalKeyDown.js.map +1 -1
  391. package/dist/esm/packages/taco/src/hooks/useId.js +4 -2
  392. package/dist/esm/packages/taco/src/hooks/useId.js.map +1 -1
  393. package/dist/esm/packages/taco/src/hooks/useIntersectionObserver.js +20 -18
  394. package/dist/esm/packages/taco/src/hooks/useIntersectionObserver.js.map +1 -1
  395. package/dist/esm/packages/taco/src/hooks/useIsFormControl.js +7 -5
  396. package/dist/esm/packages/taco/src/hooks/useIsFormControl.js.map +1 -1
  397. package/dist/esm/packages/taco/src/hooks/useIsHoverStatePaused.js +9 -5
  398. package/dist/esm/packages/taco/src/hooks/useIsHoverStatePaused.js.map +1 -1
  399. package/dist/esm/packages/taco/src/hooks/useIsLargeScreen.js +3 -1
  400. package/dist/esm/packages/taco/src/hooks/useIsLargeScreen.js.map +1 -1
  401. package/dist/esm/packages/taco/src/hooks/useLazyEffect.js +2 -2
  402. package/dist/esm/packages/taco/src/hooks/useLazyEffect.js.map +1 -1
  403. package/dist/esm/packages/taco/src/hooks/useLocalStorage.js +24 -22
  404. package/dist/esm/packages/taco/src/hooks/useLocalStorage.js.map +1 -1
  405. package/dist/esm/packages/taco/src/hooks/useMatchMedia.js +13 -6
  406. package/dist/esm/packages/taco/src/hooks/useMatchMedia.js.map +1 -1
  407. package/dist/esm/packages/taco/src/hooks/useMergedRef.js +3 -3
  408. package/dist/esm/packages/taco/src/hooks/useMergedRef.js.map +1 -1
  409. package/dist/esm/packages/taco/src/hooks/usePrevious.js +2 -2
  410. package/dist/esm/packages/taco/src/hooks/usePrevious.js.map +1 -1
  411. package/dist/esm/packages/taco/src/index.js +1 -0
  412. package/dist/esm/packages/taco/src/index.js.map +1 -1
  413. package/dist/esm/packages/taco/src/primitives/BubbleSelect.js +14 -14
  414. package/dist/esm/packages/taco/src/primitives/BubbleSelect.js.map +1 -1
  415. package/dist/esm/packages/taco/src/primitives/Button.js +15 -12
  416. package/dist/esm/packages/taco/src/primitives/Button.js.map +1 -1
  417. package/dist/esm/packages/taco/src/primitives/Collection/components/Root.js +50 -44
  418. package/dist/esm/packages/taco/src/primitives/Collection/components/Root.js.map +1 -1
  419. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Context.js +4 -2
  420. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Context.js.map +1 -1
  421. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Group.js +9 -5
  422. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Group.js.map +1 -1
  423. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Option.js +16 -18
  424. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Option.js.map +1 -1
  425. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Root.js +47 -40
  426. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Root.js.map +1 -1
  427. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Title.js +9 -10
  428. package/dist/esm/packages/taco/src/primitives/Listbox2/components/Title.js.map +1 -1
  429. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js +22 -20
  430. package/dist/esm/packages/taco/src/primitives/Sortable/components/Container.js.map +1 -1
  431. package/dist/esm/packages/taco/src/primitives/Sortable/components/Item.js +24 -27
  432. package/dist/esm/packages/taco/src/primitives/Sortable/components/Item.js.map +1 -1
  433. package/dist/esm/packages/taco/src/primitives/Sortable/components/List.js +11 -10
  434. package/dist/esm/packages/taco/src/primitives/Sortable/components/List.js.map +1 -1
  435. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +22 -19
  436. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -1
  437. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js +25 -22
  438. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +1 -1
  439. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js +7 -7
  440. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -1
  441. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js +30 -14
  442. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +1 -1
  443. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js +18 -19
  444. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/DisplayCell.js.map +1 -1
  445. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js +34 -34
  446. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -1
  447. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js +10 -12
  448. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/Cell.js.map +1 -1
  449. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js +19 -18
  450. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -1
  451. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js +42 -40
  452. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -1
  453. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +5 -7
  454. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -1
  455. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js +19 -24
  456. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -1
  457. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js +60 -56
  458. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -1
  459. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js +27 -23
  460. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -1
  461. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js +16 -17
  462. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Summary.js.map +1 -1
  463. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js +86 -87
  464. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -1
  465. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js +14 -11
  466. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Goto.js.map +1 -1
  467. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js +85 -58
  468. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -1
  469. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js +18 -20
  470. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Resizer.js.map +1 -1
  471. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js +3 -3
  472. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/SortIndicator.js.map +1 -1
  473. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js +11 -6
  474. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/util.js.map +1 -1
  475. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js +58 -49
  476. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -1
  477. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js +41 -43
  478. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.js.map +1 -1
  479. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js +61 -19
  480. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -1
  481. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js +1 -1
  482. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +1 -1
  483. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +11 -11
  484. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -1
  485. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/FilterContext.js +1 -1
  486. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/FilterContext.js.map +1 -1
  487. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js +23 -22
  488. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -1
  489. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js +54 -39
  490. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -1
  491. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js +39 -37
  492. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +1 -1
  493. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js +20 -16
  494. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -1
  495. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js +16 -15
  496. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -1
  497. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js +50 -41
  498. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -1
  499. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js +13 -9
  500. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/util.js.map +1 -1
  501. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js +59 -51
  502. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -1
  503. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +71 -67
  504. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +1 -1
  505. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js +60 -34
  506. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -1
  507. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js +64 -44
  508. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -1
  509. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js +62 -51
  510. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -1
  511. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js +7 -7
  512. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -1
  513. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js +13 -5
  514. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRef.js.map +1 -1
  515. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js +122 -79
  516. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -1
  517. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyle.js +15 -15
  518. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyle.js.map +1 -1
  519. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleColumnFreezing.js +31 -41
  520. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleColumnFreezing.js.map +1 -1
  521. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleGrid.js +31 -30
  522. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleGrid.js.map +1 -1
  523. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js +3 -3
  524. package/dist/esm/packages/taco/src/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +1 -1
  525. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js +14 -15
  526. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -1
  527. package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js +2 -2
  528. package/dist/esm/packages/taco/src/primitives/Table/Core/util/rows.js.map +1 -1
  529. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  530. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js +47 -43
  531. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js.map +1 -1
  532. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader2.js +231 -0
  533. package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader2.js.map +1 -0
  534. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnFreezing.js +11 -6
  535. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnFreezing.js.map +1 -1
  536. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnOrdering.js +5 -2
  537. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableColumnOrdering.js.map +1 -1
  538. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFontSize.js +15 -5
  539. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFontSize.js.map +1 -1
  540. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFooter.js +5 -2
  541. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableFooter.js.map +1 -1
  542. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTablePrinting.js +26 -16
  543. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTablePrinting.js.map +1 -1
  544. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActions.js +9 -3
  545. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActions.js.map +1 -1
  546. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +43 -24
  547. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  548. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowClick.js +9 -6
  549. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowClick.js.map +1 -1
  550. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js +9 -4
  551. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrag.js.map +1 -1
  552. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js +5 -2
  553. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowDrop.js.map +1 -1
  554. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js +9 -3
  555. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js.map +1 -1
  556. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGoto.js +5 -2
  557. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGoto.js.map +1 -1
  558. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGroups.js +1 -1
  559. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowGroups.js.map +1 -1
  560. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowHeight.js +15 -5
  561. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowHeight.js.map +1 -1
  562. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowSelection.js +14 -9
  563. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowSelection.js.map +1 -1
  564. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js +26 -13
  565. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSearch.js.map +1 -1
  566. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableServerLoading.js +43 -20
  567. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableServerLoading.js.map +1 -1
  568. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSettings.js +34 -24
  569. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSettings.js.map +1 -1
  570. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableDataListener.js +4 -4
  571. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableDataListener.js.map +1 -1
  572. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFilterListener.js +5 -3
  573. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFilterListener.js.map +1 -1
  574. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFontSizeListener.js +20 -16
  575. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableFontSizeListener.js.map +1 -1
  576. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowHeightListener.js +2 -2
  577. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowHeightListener.js.map +1 -1
  578. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js +8 -6
  579. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js.map +1 -1
  580. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js +17 -16
  581. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSearchListener.js.map +1 -1
  582. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js +8 -4
  583. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableServerLoadingListener.js.map +1 -1
  584. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +8 -6
  585. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -1
  586. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableShortcutsListener.js +17 -17
  587. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableShortcutsListener.js.map +1 -1
  588. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSortingListener.js +2 -2
  589. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSortingListener.js.map +1 -1
  590. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +56 -56
  591. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  592. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/columns.js +61 -29
  593. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/columns.js.map +1 -1
  594. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/dataTypes.js +8 -8
  595. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/dataTypes.js.map +1 -1
  596. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/filtering.js +33 -19
  597. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/filtering.js.map +1 -1
  598. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +11 -11
  599. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
  600. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/search.js +24 -20
  601. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/search.js.map +1 -1
  602. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +6 -7
  603. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -1
  604. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +145 -107
  605. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  606. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/sorting.js +3 -1
  607. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/sorting.js.map +1 -1
  608. package/dist/esm/packages/taco/src/types.js +1 -1
  609. package/dist/esm/packages/taco/src/types.js.map +1 -1
  610. package/dist/esm/packages/taco/src/utils/aria.js +2 -2
  611. package/dist/esm/packages/taco/src/utils/aria.js.map +1 -1
  612. package/dist/esm/packages/taco/src/utils/date.js +47 -23
  613. package/dist/esm/packages/taco/src/utils/date.js.map +1 -1
  614. package/dist/esm/packages/taco/src/utils/debounce.js +10 -4
  615. package/dist/esm/packages/taco/src/utils/debounce.js.map +1 -1
  616. package/dist/esm/packages/taco/src/utils/device.js +4 -2
  617. package/dist/esm/packages/taco/src/utils/device.js.map +1 -1
  618. package/dist/esm/packages/taco/src/utils/dom.js +29 -23
  619. package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
  620. package/dist/esm/packages/taco/src/utils/hooks/useDraggable.js +40 -38
  621. package/dist/esm/packages/taco/src/utils/hooks/useDraggable.js.map +1 -1
  622. package/dist/esm/packages/taco/src/utils/hooks/useDropTarget.js +9 -7
  623. package/dist/esm/packages/taco/src/utils/hooks/useDropTarget.js.map +1 -1
  624. package/dist/esm/packages/taco/src/utils/hooks/useListKeyboardNavigation.js +20 -9
  625. package/dist/esm/packages/taco/src/utils/hooks/useListKeyboardNavigation.js.map +1 -1
  626. package/dist/esm/packages/taco/src/utils/hooks/useListScrollTo.js +9 -9
  627. package/dist/esm/packages/taco/src/utils/hooks/useListScrollTo.js.map +1 -1
  628. package/dist/esm/packages/taco/src/utils/hooks/useOnClickOutside.js +8 -6
  629. package/dist/esm/packages/taco/src/utils/hooks/useOnClickOutside.js.map +1 -1
  630. package/dist/esm/packages/taco/src/utils/hooks/useTimer.js +16 -11
  631. package/dist/esm/packages/taco/src/utils/hooks/useTimer.js.map +1 -1
  632. package/dist/esm/packages/taco/src/utils/hooks/useTruncated.js +11 -6
  633. package/dist/esm/packages/taco/src/utils/hooks/useTruncated.js.map +1 -1
  634. package/dist/esm/packages/taco/src/utils/input.js +10 -7
  635. package/dist/esm/packages/taco/src/utils/input.js.map +1 -1
  636. package/dist/esm/packages/taco/src/utils/keyboard.js +10 -7
  637. package/dist/esm/packages/taco/src/utils/keyboard.js.map +1 -1
  638. package/dist/esm/packages/taco/src/utils/mergeRefs.js +2 -2
  639. package/dist/esm/packages/taco/src/utils/mergeRefs.js.map +1 -1
  640. package/dist/esm/packages/taco/src/utils/tailwind.js +5 -5
  641. package/dist/esm/packages/taco/src/utils/tailwind.js.map +1 -1
  642. package/dist/esm/packages/taco/tailwind.colors.js +1 -1
  643. package/dist/esm/packages/taco/tailwind.colors.js.map +1 -1
  644. package/dist/hooks/useLazyDebouncedEffect.d.ts +2 -0
  645. package/dist/index.d.ts +1 -0
  646. package/dist/primitives/Table/Core/components/Row/BuiltIns/SkeletonRow.d.ts +2 -2
  647. package/dist/primitives/Table/Core/components/Row/Row.d.ts +2 -0
  648. package/dist/primitives/Table/Core/features/useTableRenderer.d.ts +1 -1
  649. package/dist/primitives/Table/types.d.ts +10 -6
  650. package/dist/primitives/Table/useTableDataLoader2.d.ts +23 -0
  651. package/dist/primitives/Table/useTableManager/features/useTableSearch.d.ts +4 -2
  652. package/dist/primitives/Table/useTableManager/features/useTableServerLoading.d.ts +4 -1
  653. package/dist/primitives/Table/useTableManager/listeners/useTableSearchListener.d.ts +1 -2
  654. package/dist/primitives/Table/useTableManager/util/columns.d.ts +2 -1
  655. package/dist/taco.cjs.development.js +8203 -6928
  656. package/dist/taco.cjs.development.js.map +1 -1
  657. package/dist/taco.cjs.production.min.js +1 -1
  658. package/dist/taco.cjs.production.min.js.map +1 -1
  659. package/package.json +2 -3
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ReportRef, ReportProps, ReportColumnProps, ReportGroupProps } from './types';
3
3
  declare function Column<TType = unknown>(_: ReportColumnProps<TType>): null;
4
4
  declare function Group(_: ReportGroupProps): null;
5
- export declare const Report: (<TType = unknown>(props: Pick<import("../..").TableProps<TType>, "length" | "loadAll" | "loadPage" | "pageSize" | "enableFiltering" | "enableSearch" | "enableSorting" | "enableColumnFreezing" | "enableColumnHiding" | "enableColumnResizing" | "enableRowExpansion" | "enableRowExpansionAll" | "enableRowSelection" | "enableColumnOrdering" | "enableFontSize" | "enableFooter" | "enablePrinting" | "enableRowActions" | "enableRowActive" | "enableRowClick" | "enableRowDrag" | "enableRowDrop" | "enableRowGoto" | "enableRowHeight" | "enableSaveSettings" | "children" | "data" | "id" | "customSettings" | "defaultColumnFreezingIndex" | "defaultRowActiveIndex" | "defaultRowGroupColumnId" | "defaultSettings" | "emptyState" | "rowActions" | "rowActionsForGroup" | "rowActionsLength" | "rowExpansionRenderer" | "rowIdentityAccessor" | "shortcuts" | "toolbarLeft" | "toolbarRight" | "toolbarPanel" | "onRowClick" | "onRowDrag" | "onRowDrop" | "onRowGoto" | "onRowSelect" | "onChangeFilter" | "onChangeSearch" | "onChangeSettings" | "onChangeSort"> & React.RefAttributes<import("../..").TableRef>) => JSX.Element) & {
5
+ export declare const Report: (<TType = unknown>(props: Pick<import("../..").TableProps<TType>, "length" | "loadAll" | "loadPage" | "pageSize" | "pages" | "_experimentalDataLoader2" | "enableFiltering" | "enableSearch" | "enableSorting" | "enableColumnFreezing" | "enableColumnHiding" | "enableColumnResizing" | "enableRowExpansion" | "enableRowExpansionAll" | "enableRowSelection" | "enableColumnOrdering" | "enableFontSize" | "enableFooter" | "enablePrinting" | "enableRowActions" | "enableRowActive" | "enableRowClick" | "enableRowDrag" | "enableRowDrop" | "enableRowGoto" | "enableRowHeight" | "enableSaveSettings" | "children" | "data" | "id" | "customSettings" | "defaultColumnFreezingIndex" | "defaultRowActiveIndex" | "defaultRowGroupColumnId" | "defaultSettings" | "emptyState" | "rowActions" | "rowActionsForGroup" | "rowActionsLength" | "rowExpansionRenderer" | "rowIdentityAccessor" | "shortcuts" | "toolbarLeft" | "toolbarRight" | "toolbarPanel" | "onRowClick" | "onRowDrag" | "onRowDrop" | "onRowGoto" | "onRowSelect" | "onChangeFilter" | "onChangeSearch" | "onChangeSettings" | "onChangeSort"> & React.RefAttributes<import("../..").TableRef>) => JSX.Element) & {
6
6
  Column: typeof Column;
7
7
  Group: typeof Group;
8
8
  };
@@ -13,12 +13,14 @@ interface BasicSearchInput2Props extends CommonSearchInput2Props {
13
13
  findTotal?: never;
14
14
  onClickFindNext?: never;
15
15
  onClickFindPrevious?: never;
16
+ showTotal?: never;
16
17
  }
17
18
  interface ComplexSearchInput2Props extends CommonSearchInput2Props {
18
19
  findCurrent: number | null;
19
20
  findTotal: number | null;
20
21
  onClickFindNext: () => void;
21
22
  onClickFindPrevious: () => void;
23
+ showTotal?: boolean;
22
24
  }
23
25
  export declare type SearchInput2Props = BasicSearchInput2Props | ComplexSearchInput2Props;
24
26
  export declare const SearchInput2: React.ForwardRefExoticComponent<(BasicSearchInput2Props & React.RefAttributes<HTMLInputElement>) | (ComplexSearchInput2Props & React.RefAttributes<HTMLInputElement>)>;
@@ -2,28 +2,28 @@ import { Table as ReactTable, Cell as ReactTableCell } from '@tanstack/react-tab
2
2
  import { Table3EditingChangeHandler, Table3EditingSaveHandler, Table3EditingValidatorFn } from '../types';
3
3
  declare type EditingSaveState = 'saving' | 'saved' | 'errored';
4
4
  export declare function usePendingChangesState<TType = unknown>(handleSave: Table3EditingSaveHandler<TType> | undefined, handleChange: Table3EditingChangeHandler<TType> | undefined, rowIdentityAccessor: keyof TType, validator: Table3EditingValidatorFn<TType> | undefined): {
5
- setRowValue: <T extends TType>(rowId: string, original: T, value: Partial<T>) => Promise<void>;
6
5
  getRowValue: (rowId: string) => any;
7
6
  getRowMoveReason: (rowId: string) => unknown;
8
7
  hasRowErrors: (rowId: string) => boolean;
9
8
  hasRowErrorsShownInAlert: (rowId: string) => boolean;
10
- hasTemporaryRowErrors: <T_1 extends TType>() => boolean;
9
+ hasTemporaryRowErrors: <T extends TType>() => boolean;
11
10
  getRowStatus: (rowId: string) => any;
12
11
  setRowStatus: (rowId: string, status: EditingSaveState | undefined) => void;
13
- setCellValue: <T_2 extends TType>(cell: ReactTableCell<T_2, unknown>, value: unknown) => void;
14
- getCellValue: <T_3 extends TType>(cell: ReactTableCell<T_3, unknown>) => unknown | undefined;
15
- getCellError: <T_4 extends TType>(cell: ReactTableCell<T_4, unknown>) => string | undefined;
16
- onCellChanged: <T_5 extends TType>(cell: ReactTableCell<T_5, unknown>, rowIndex: number, nextValue: any, shouldRunUpdaters?: boolean) => Promise<void>;
17
- getErrorsShownInAlert: <T_6 extends TType>() => {
12
+ setCellValue: <T_1 extends TType>(cell: ReactTableCell<T_1, unknown>, rowIndex: number, value: unknown) => void;
13
+ getCellValue: <T_2 extends TType>(cell: ReactTableCell<T_2, unknown>) => unknown | undefined;
14
+ getCellError: <T_3 extends TType>(cell: ReactTableCell<T_3, unknown>) => string | undefined;
15
+ onCellChanged: <T_4 extends TType>(cell: ReactTableCell<T_4, unknown>, rowIndex: number, nextValue: any, shouldRunUpdaters?: boolean) => Promise<void>;
16
+ getErrorsShownInAlert: <T_5 extends TType>() => {
18
17
  rowId: string;
19
- changes: Partial<T_6>;
18
+ index: any;
19
+ changes: Partial<T_5>;
20
20
  errors: any;
21
21
  }[];
22
22
  hasChanges: (rowId?: string | undefined) => boolean;
23
- saveChanges: <T_7 extends TType>(table: ReactTable<T_7>, rowId?: string | undefined) => Promise<boolean>;
24
- discardChanges: <T_8 extends TType>(rowId: string, table: ReactTable<T_8>) => void;
23
+ saveChanges: <T_6 extends TType>(table: ReactTable<T_6>, rowId?: string | undefined) => Promise<boolean>;
24
+ discardChanges: <T_7 extends TType>(rowId: string, table: ReactTable<T_7>) => void;
25
25
  hasSaved: () => boolean;
26
- insertTemporaryRow: <T_9 extends TType>(data: Partial<T_9>) => string;
26
+ insertTemporaryRow: <T_8 extends TType>(data: Partial<T_8>, rowIndex: number) => string;
27
27
  temporaryRows: any;
28
28
  };
29
29
  export {};
@@ -2,36 +2,36 @@ import React from 'react';
2
2
  import { Table as ReactTable } from '@tanstack/react-table';
3
3
  import { Table3EditingChangeHandler, Table3EditingCreateHandler, Table3EditingSaveHandler, Table3EditingValidatorFn } from '../types';
4
4
  export declare function useTableEditing<TType = unknown>(isEnabled: boolean | undefined, handleSave: Table3EditingSaveHandler<TType> | undefined, handleChange: Table3EditingChangeHandler<TType> | undefined, handleCreate: Table3EditingCreateHandler<TType> | undefined, rowIdentityAccessor: keyof TType | undefined, validator: Table3EditingValidatorFn<TType> | undefined): {
5
- setRowValue: <T extends TType>(rowId: string, original: T, value: Partial<T>) => Promise<void>;
6
5
  getRowValue: (rowId: string) => any;
7
6
  getRowMoveReason: (rowId: string) => unknown;
8
7
  hasRowErrors: (rowId: string) => boolean;
9
8
  hasRowErrorsShownInAlert: (rowId: string) => boolean;
10
- hasTemporaryRowErrors: <T_1 extends TType>() => boolean;
9
+ hasTemporaryRowErrors: <T extends TType>() => boolean;
11
10
  getRowStatus: (rowId: string) => any;
12
11
  setRowStatus: (rowId: string, status: "saving" | "saved" | "errored" | undefined) => void;
13
- setCellValue: <T_2 extends TType>(cell: import("@tanstack/react-table").Cell<T_2, unknown>, value: unknown) => void;
14
- getCellValue: <T_3 extends TType>(cell: import("@tanstack/react-table").Cell<T_3, unknown>) => unknown;
15
- getCellError: <T_4 extends TType>(cell: import("@tanstack/react-table").Cell<T_4, unknown>) => string | undefined;
16
- onCellChanged: <T_5 extends TType>(cell: import("@tanstack/react-table").Cell<T_5, unknown>, rowIndex: number, nextValue: any, shouldRunUpdaters?: boolean) => Promise<void>;
17
- getErrorsShownInAlert: <T_6 extends TType>() => {
12
+ setCellValue: <T_1 extends TType>(cell: import("@tanstack/react-table").Cell<T_1, unknown>, rowIndex: number, value: unknown) => void;
13
+ getCellValue: <T_2 extends TType>(cell: import("@tanstack/react-table").Cell<T_2, unknown>) => unknown;
14
+ getCellError: <T_3 extends TType>(cell: import("@tanstack/react-table").Cell<T_3, unknown>) => string | undefined;
15
+ onCellChanged: <T_4 extends TType>(cell: import("@tanstack/react-table").Cell<T_4, unknown>, rowIndex: number, nextValue: any, shouldRunUpdaters?: boolean) => Promise<void>;
16
+ getErrorsShownInAlert: <T_5 extends TType>() => {
18
17
  rowId: string;
19
- changes: Partial<T_6>;
18
+ index: any;
19
+ changes: Partial<T_5>;
20
20
  errors: any;
21
21
  }[];
22
22
  hasChanges: (rowId?: string | undefined) => boolean;
23
- saveChanges: <T_7 extends TType>(table: ReactTable<T_7>, rowId?: string | undefined) => Promise<boolean>;
24
- discardChanges: <T_8 extends TType>(rowId: string, table: ReactTable<T_8>) => void;
23
+ saveChanges: <T_6 extends TType>(table: ReactTable<T_6>, rowId?: string | undefined) => Promise<boolean>;
24
+ discardChanges: <T_7 extends TType>(rowId: string, table: ReactTable<T_7>) => void;
25
25
  hasSaved: () => boolean;
26
- insertTemporaryRow: <T_9 extends TType>(data: Partial<T_9>) => string;
26
+ insertTemporaryRow: <T_8 extends TType>(data: Partial<T_8>, rowIndex: number) => string;
27
27
  temporaryRows: any;
28
28
  isEnabled: boolean;
29
29
  isEditing: boolean;
30
30
  isDetailedMode: boolean;
31
31
  toggleDetailedMode: React.Dispatch<React.SetStateAction<boolean>>;
32
- toggleEditing: <T_10 extends TType>(enabled: React.SetStateAction<boolean>, table: ReactTable<T_10>, 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, doSave?: boolean) => void;
33
33
  lastFocusedCellIndex: number | undefined;
34
34
  setLastFocusedCellIndex: React.Dispatch<React.SetStateAction<number | undefined>>;
35
- createRow: <T_11 extends TType>(table: ReactTable<T_11>, scrollToIndex: (index: number) => void, row?: Partial<T_11> | undefined) => Promise<void>;
35
+ createRow: <T_10 extends TType>(table: ReactTable<T_10>, scrollToIndex: (index: number) => void, row?: Partial<T_10> | undefined) => Promise<void>;
36
36
  createRowButtonRef: React.RefObject<HTMLButtonElement>;
37
37
  };
@@ -0,0 +1,63 @@
1
+ function _extends() {
2
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
3
+ for (var i = 1; i < arguments.length; i++) {
4
+ var source = arguments[i];
5
+ for (var key in source) {
6
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7
+ target[key] = source[key];
8
+ }
9
+ }
10
+ }
11
+ return target;
12
+ };
13
+ return _extends.apply(this, arguments);
14
+ }
15
+ function _objectDestructuringEmpty(obj) {
16
+ if (obj == null) throw new TypeError("Cannot destructure " + obj);
17
+ }
18
+ function _objectWithoutPropertiesLoose(source, excluded) {
19
+ if (source == null) return {};
20
+ var target = {};
21
+ var sourceKeys = Object.keys(source);
22
+ var key, i;
23
+ for (i = 0; i < sourceKeys.length; i++) {
24
+ key = sourceKeys[i];
25
+ if (excluded.indexOf(key) >= 0) continue;
26
+ target[key] = source[key];
27
+ }
28
+ return target;
29
+ }
30
+ function _unsupportedIterableToArray(o, minLen) {
31
+ if (!o) return;
32
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
33
+ var n = Object.prototype.toString.call(o).slice(8, -1);
34
+ if (n === "Object" && o.constructor) n = o.constructor.name;
35
+ if (n === "Map" || n === "Set") return Array.from(o);
36
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
37
+ }
38
+ function _arrayLikeToArray(arr, len) {
39
+ if (len == null || len > arr.length) len = arr.length;
40
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
41
+ return arr2;
42
+ }
43
+ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
44
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
45
+ if (it) return (it = it.call(o)).next.bind(it);
46
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
47
+ if (it) o = it;
48
+ var i = 0;
49
+ return function () {
50
+ if (i >= o.length) return {
51
+ done: true
52
+ };
53
+ return {
54
+ done: false,
55
+ value: o[i++]
56
+ };
57
+ };
58
+ }
59
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
60
+ }
61
+
62
+ export { _arrayLikeToArray as arrayLikeToArray, _createForOfIteratorHelperLoose as createForOfIteratorHelperLoose, _extends as extends, _objectDestructuringEmpty as objectDestructuringEmpty, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _unsupportedIterableToArray as unsupportedIterableToArray };
63
+ //# sourceMappingURL=_rollupPluginBabelHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_rollupPluginBabelHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,11 +1,11 @@
1
1
  // A type of promise-like that resolves synchronously and supports only one observer
2
- const _Pact = /*#__PURE__*/function () {
2
+ var _Pact = /*#__PURE__*/function () {
3
3
  function _Pact() {}
4
4
  _Pact.prototype.then = function (onFulfilled, onRejected) {
5
- const result = new _Pact();
6
- const state = this.s;
5
+ var result = new _Pact();
6
+ var state = this.s;
7
7
  if (state) {
8
- const callback = state & 1 ? onFulfilled : onRejected;
8
+ var callback = state & 1 ? onFulfilled : onRejected;
9
9
  if (callback) {
10
10
  try {
11
11
  _settle(result, 1, callback(this.v));
@@ -19,7 +19,7 @@ const _Pact = /*#__PURE__*/function () {
19
19
  }
20
20
  this.o = function (_this) {
21
21
  try {
22
- const value = _this.v;
22
+ var 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
- const observer = pact.o;
59
+ var observer = pact.o;
60
60
  if (observer) {
61
61
  observer(pact);
62
62
  }
@@ -96,17 +96,13 @@ function _forTo(array, body, check) {
96
96
  _cycle();
97
97
  return pact;
98
98
  }
99
- const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = /*#__PURE__*/Symbol("Symbol.iterator")) : "@@iterator";
99
+ var _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 iterator = target[_iteratorSymbol](),
106
- step,
107
- pact,
108
- reject;
109
- function _cycle(result) {
105
+ var _cycle = function _cycle(result) {
110
106
  try {
111
107
  while (!(step = iterator.next()).done && (!check || !check())) {
112
108
  result = body(step.value);
@@ -127,13 +123,17 @@ function _forOf(target, body, check) {
127
123
  } catch (e) {
128
124
  _settle(pact || (pact = new _Pact()), 2, e);
129
125
  }
130
- }
126
+ };
127
+ var iterator = target[_iteratorSymbol](),
128
+ step,
129
+ pact,
130
+ reject;
131
131
  _cycle();
132
- if (iterator.return) {
133
- var _fixup = function (value) {
132
+ if (iterator["return"]) {
133
+ var _fixup = function _fixup(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
- const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = /*#__PURE__*/Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
163
+ var _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","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,EA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AAK,CAAC;AACtE;MAEakB,oBAAoB,gBAAiB,OAAOZ,MAAM,KAAK,WAAW,GAAIA,MAAM,CAACa,aAAa,KAAKb,MAAM,CAACa,aAAa,gBAAGb,MAAM,CAAC,sBAAsB,CAAC,CAAC,GAAI;;AAgVtK;AACO,SAASc,MAAMA,CAACrB,IAAI,EAAEsB,OAAO,EAAE;EACrC,IAAI;IACH,IAAIvC,MAAM,GAAGiB,IAAI,EAAE;GACnB,CAAC,OAAMX,CAAC,EAAE;IACV,OAAOiC,OAAO,CAACjC,CAAC,CAAC;;EAElB,IAAIN,MAAM,IAAIA,MAAM,CAACH,IAAI,EAAE;IAC1B,OAAOG,MAAM,CAACH,IAAI,CAAC,KAAK,CAAC,EAAE0C,OAAO,CAAC;;EAEpC,OAAOvC,MAAM;AACd;;AAEA;AACO,SAASwC,gBAAgBA,CAACvB,IAAI,EAAEwB,SAAS,EAAE;EACjD,IAAI;IACH,IAAIzC,MAAM,GAAGiB,IAAI,EAAE;GACnB,CAAC,OAAOX,CAAC,EAAE;IACX,OAAOmC,SAAS,CAAC,IAAI,EAAEnC,CAAC,CAAC;;EAE1B,IAAIN,MAAM,IAAIA,MAAM,CAACH,IAAI,EAAE;IAC1B,OAAOG,MAAM,CAACH,IAAI,CAAC4C,SAAS,CAAC9B,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE8B,SAAS,CAAC9B,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;;EAE5E,OAAO8B,SAAS,CAAC,KAAK,EAAEzC,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","_fixup","TypeError","values","push","_asyncIteratorSymbol","asyncIterator","_catch","recover","_finallyRethrows","finalizer"],"mappings":"AAAA;IACaA,KAAK,gBA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35 @@
1
1
  import React__default, { useState } from 'react';
2
+ import { objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose, extends as _extends } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
2
3
  import { AreaChart as AreaChart$1, CartesianGrid, XAxis, YAxis, Legend, Tooltip, Area as Area$1 } from 'recharts';
3
4
  import { getThemeColor } from '../../utils/color.js';
4
5
  import { getCartesianGridProps, getXAxisProps, getYAxisProps, getLegendProps, getTooltipProps } from '../../utils/common.js';
5
6
  import { ResponsiveContainer } from '../ResponsiveContainer.js';
6
7
 
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 => {
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;
24
31
  setHoveredArea(null);
25
- setActiveAreas({
26
- ...activeAreas,
27
- [entry.dataKey]: !activeAreas[entry.dataKey]
28
- });
32
+ setActiveAreas(_extends({}, activeAreas, (_extends2 = {}, _extends2[entry.dataKey] = !activeAreas[entry.dataKey], _extends2)));
29
33
  };
30
34
  return /*#__PURE__*/React__default.createElement(ResponsiveContainer, null, /*#__PURE__*/React__default.createElement(AreaChart$1, {
31
35
  data: data,
@@ -37,12 +41,16 @@ const AreaChart = function AreaChart(externalProps) {
37
41
  }
38
42
  }, /*#__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({
39
43
  onClick: handleLegendClick,
40
- onMouseEnter: entry => setHoveredArea(entry.dataKey),
41
- onMouseLeave: () => setHoveredArea(null),
44
+ onMouseEnter: function onMouseEnter(entry) {
45
+ return setHoveredArea(entry.dataKey);
46
+ },
47
+ onMouseLeave: function onMouseLeave() {
48
+ return setHoveredArea(null);
49
+ },
42
50
  activeItems: activeAreas
43
51
  }))), /*#__PURE__*/React__default.createElement(Tooltip, Object.assign({}, getTooltipProps(), {
44
52
  formatter: formatter
45
- })), React__default.Children.map(children, child => {
53
+ })), React__default.Children.map(children, function (child) {
46
54
  var _child$props$color, _child$props$color2, _child$props$color3;
47
55
  return /*#__PURE__*/React__default.createElement(Area$1, {
48
56
  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","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,E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A,GAAI,UAAU,CAAC;MACtDW,OAAO,EAAEnC,KAAK,CAACV,KAAK,CAAC6C,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
+ {"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,C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