@carbon/ibm-products 2.47.0 → 2.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (474) hide show
  1. package/css/index-full-carbon.css +165 -50
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +1 -1
  6. package/css/index-without-carbon-released-only.min.css +1 -1
  7. package/css/index-without-carbon-released-only.min.css.map +1 -1
  8. package/css/index-without-carbon.css +30 -16
  9. package/css/index-without-carbon.css.map +1 -1
  10. package/css/index-without-carbon.min.css +1 -1
  11. package/css/index-without-carbon.min.css.map +1 -1
  12. package/css/index.css +165 -50
  13. package/css/index.css.map +1 -1
  14. package/css/index.min.css +1 -1
  15. package/css/index.min.css.map +1 -1
  16. package/es/components/APIKeyModal/index.d.ts +2 -1
  17. package/es/components/AboutModal/AboutModal.d.ts +1 -2
  18. package/es/components/AboutModal/index.d.ts +8 -1
  19. package/es/components/ActionSet/ActionSet.d.ts +1 -2
  20. package/es/components/ActionSet/ActionSet.js +2 -2
  21. package/es/components/ActionSet/index.d.ts +8 -1
  22. package/es/components/AddSelect/AddSelectBody.js +3 -3
  23. package/es/components/AddSelect/index.d.ts +2 -1
  24. package/es/components/Card/Card.d.ts +1 -0
  25. package/es/components/Card/Card.js +5 -2
  26. package/es/components/Carousel/index.d.ts +9 -2
  27. package/es/components/Cascade/Cascade.d.ts +1 -2
  28. package/es/components/Cascade/Cascade.js +2 -2
  29. package/es/components/Cascade/index.d.ts +2 -1
  30. package/es/components/Checklist/Checklist.d.ts +2 -2
  31. package/es/components/Checklist/Checklist.js +6 -6
  32. package/es/components/Checklist/index.d.ts +8 -1
  33. package/es/components/Coachmark/Coachmark.d.ts +1 -2
  34. package/es/components/Coachmark/Coachmark.js +5 -5
  35. package/es/components/Coachmark/index.d.ts +10 -3
  36. package/es/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +2 -3
  37. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +4 -3
  38. package/es/components/CoachmarkBeacon/index.d.ts +8 -1
  39. package/es/components/CoachmarkButton/CoachmarkButton.d.ts +1 -2
  40. package/es/components/CoachmarkButton/CoachmarkButton.js +4 -2
  41. package/es/components/CoachmarkButton/index.d.ts +8 -1
  42. package/es/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -2
  43. package/es/components/CoachmarkFixed/CoachmarkFixed.js +6 -5
  44. package/es/components/CoachmarkFixed/index.d.ts +8 -1
  45. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +1 -2
  46. package/es/components/CoachmarkOverlayElement/index.d.ts +8 -1
  47. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +1 -2
  48. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +10 -6
  49. package/es/components/CoachmarkOverlayElements/index.d.ts +8 -1
  50. package/es/components/CoachmarkStack/CoachmarkStack.d.ts +67 -2
  51. package/es/components/CoachmarkStack/CoachmarkStack.js +16 -9
  52. package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +71 -2
  53. package/es/components/CoachmarkStack/CoachmarkStackHome.js +19 -21
  54. package/es/components/ComboButton/ComboButton.d.ts +1 -1
  55. package/es/components/ComboButton/ComboButton.js +4 -4
  56. package/es/components/ComboButton/index.d.ts +9 -2
  57. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +0 -1
  58. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +28 -20
  59. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +6 -19
  60. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +29 -36
  61. package/es/components/CreateFullPage/CreateFullPage.d.ts +1 -1
  62. package/es/components/CreateFullPage/CreateFullPage.js +5 -5
  63. package/es/components/CreateFullPage/index.d.ts +9 -2
  64. package/es/components/CreateModal/CreateModal.d.ts +2 -3
  65. package/es/components/CreateModal/CreateModal.js +1 -1
  66. package/es/components/CreateModal/index.d.ts +2 -1
  67. package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
  68. package/es/components/CreateSidePanel/index.d.ts +7 -1
  69. package/es/components/CreateTearsheet/CreateTearsheet.d.ts +2 -2
  70. package/es/components/CreateTearsheet/CreateTearsheet.js +4 -4
  71. package/es/components/CreateTearsheet/index.d.ts +10 -3
  72. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +1 -1
  73. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
  74. package/es/components/CreateTearsheetNarrow/index.d.ts +8 -1
  75. package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +3 -4
  76. package/es/components/DataSpreadsheet/DataSpreadsheet.js +11 -10
  77. package/es/components/DataSpreadsheet/index.d.ts +8 -1
  78. package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  79. package/es/components/Datagrid/Datagrid/DatagridRow.js +7 -5
  80. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +2 -1
  81. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +4 -4
  82. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +3 -1
  83. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +10 -3
  84. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -1
  85. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -1
  86. package/es/components/Datagrid/Datagrid/addons/stateReducer.d.ts +7 -0
  87. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +70 -27
  88. package/es/components/Datagrid/types/index.d.ts +2 -0
  89. package/es/components/Datagrid/useFiltering.js +1 -1
  90. package/es/components/Datagrid/useNestedRowExpander.js +65 -16
  91. package/es/components/Datagrid/useRowRenderer.js +44 -2
  92. package/es/components/Datagrid/useSortableColumns.js +14 -1
  93. package/es/components/DelimitedList/DelimitedList.d.ts +1 -2
  94. package/es/components/DelimitedList/index.d.ts +8 -1
  95. package/es/components/EditFullPage/EditFullPage.d.ts +1 -2
  96. package/es/components/EditFullPage/index.d.ts +8 -1
  97. package/es/components/EditInPlace/EditInPlace.d.ts +5 -1
  98. package/es/components/EditInPlace/EditInPlace.js +11 -5
  99. package/es/components/EditInPlace/index.d.ts +8 -1
  100. package/es/components/EditSidePanel/EditSidePanel.d.ts +2 -3
  101. package/es/components/EditSidePanel/EditSidePanel.js +3 -3
  102. package/es/components/EditSidePanel/index.d.ts +8 -1
  103. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +1 -2
  104. package/es/components/EditTearsheetNarrow/index.d.ts +8 -1
  105. package/es/components/EditUpdateCards/EditUpdateCards.d.ts +1 -1
  106. package/es/components/EditUpdateCards/EditUpdateCards.js +2 -1
  107. package/es/components/EditUpdateCards/index.d.ts +8 -1
  108. package/es/components/ExportModal/ExportModal.d.ts +3 -3
  109. package/es/components/ExportModal/ExportModal.js +3 -3
  110. package/es/components/ExportModal/index.d.ts +2 -1
  111. package/es/components/ExpressiveCard/ExpressiveCard.d.ts +1 -1
  112. package/es/components/ExpressiveCard/ExpressiveCard.js +1 -1
  113. package/es/components/ExpressiveCard/index.d.ts +2 -1
  114. package/es/components/FeatureFlags/index.d.ts +26 -21
  115. package/es/components/FeatureFlags/index.js +1 -10
  116. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +1 -1
  117. package/es/components/FilterSummary/FilterSummary.d.ts +1 -1
  118. package/es/components/FilterSummary/FilterSummary.js +7 -8
  119. package/es/components/FilterSummary/index.d.ts +8 -1
  120. package/es/components/FullPageError/FullPageError.d.ts +1 -2
  121. package/es/components/FullPageError/FullPageError.js +10 -7
  122. package/es/components/FullPageError/assets/Error403SVG.d.ts +3 -1
  123. package/es/components/FullPageError/assets/Error403SVG.js +6 -3
  124. package/es/components/FullPageError/assets/Error404SVG.d.ts +3 -1
  125. package/es/components/FullPageError/assets/Error404SVG.js +6 -3
  126. package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +3 -1
  127. package/es/components/FullPageError/assets/ErrorGenericSVG.js +6 -3
  128. package/es/components/FullPageError/index.d.ts +8 -1
  129. package/es/components/GetStartedCard/GetStartedCard.d.ts +1 -1
  130. package/es/components/GetStartedCard/index.d.ts +8 -1
  131. package/es/components/Guidebanner/Guidebanner.d.ts +1 -2
  132. package/es/components/Guidebanner/Guidebanner.js +5 -4
  133. package/es/components/Guidebanner/GuidebannerElement.d.ts +1 -2
  134. package/es/components/Guidebanner/GuidebannerElementButton.d.ts +2 -3
  135. package/es/components/Guidebanner/GuidebannerElementButton.js +2 -2
  136. package/es/components/Guidebanner/GuidebannerElementLink.d.ts +2 -3
  137. package/es/components/Guidebanner/GuidebannerElementLink.js +1 -1
  138. package/es/components/Guidebanner/index.d.ts +14 -4
  139. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +2 -1
  140. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +2 -1
  141. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -0
  142. package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +3 -1
  143. package/es/components/HTTPErrors/assets/HTTPErrorSvg403.js +6 -3
  144. package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +3 -1
  145. package/es/components/HTTPErrors/assets/HTTPErrorSvg404.js +6 -3
  146. package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +3 -1
  147. package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.js +6 -3
  148. package/es/components/ImportModal/ImportModal.d.ts +1 -1
  149. package/es/components/ImportModal/ImportModal.js +3 -3
  150. package/es/components/ImportModal/index.d.ts +2 -1
  151. package/es/components/InlineTip/InlineTip.d.ts +1 -1
  152. package/es/components/InlineTip/InlineTip.js +4 -4
  153. package/es/components/InlineTip/InlineTipButton.d.ts +1 -2
  154. package/es/components/InlineTip/InlineTipButton.js +1 -1
  155. package/es/components/InlineTip/InlineTipLink.d.ts +1 -2
  156. package/es/components/InlineTip/InlineTipLink.js +2 -2
  157. package/es/components/InlineTip/index.d.ts +12 -3
  158. package/es/components/InterstitialScreen/InterstitialScreen.d.ts +1 -1
  159. package/es/components/InterstitialScreen/InterstitialScreen.js +6 -5
  160. package/es/components/InterstitialScreen/index.d.ts +8 -1
  161. package/es/components/InterstitialScreenView/InterstitialScreenView.d.ts +1 -2
  162. package/es/components/InterstitialScreenView/index.d.ts +8 -1
  163. package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +1 -2
  164. package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +1 -1
  165. package/es/components/InterstitialScreenViewModule/index.d.ts +8 -1
  166. package/es/components/MultiAddSelect/MultiAddSelect.d.ts +1 -1
  167. package/es/components/MultiAddSelect/MultiAddSelect.js +1 -1
  168. package/es/components/MultiAddSelect/index.d.ts +2 -1
  169. package/es/components/Nav/NavItem.js +4 -1
  170. package/es/components/Nav/NavList.js +3 -0
  171. package/es/components/NonLinearReading/NonLinearReading.d.ts +1 -1
  172. package/es/components/NonLinearReading/NonLinearReading.js +2 -2
  173. package/es/components/NonLinearReading/index.d.ts +8 -1
  174. package/es/components/NotificationsPanel/NotificationsPanel.d.ts +2 -2
  175. package/es/components/NotificationsPanel/NotificationsPanel.js +3 -3
  176. package/es/components/NotificationsPanel/index.d.ts +8 -1
  177. package/es/components/OptionsTile/OptionsTile.d.ts +2 -3
  178. package/es/components/OptionsTile/OptionsTile.js +4 -5
  179. package/es/components/OptionsTile/index.d.ts +8 -1
  180. package/es/components/PageHeader/PageHeader.d.ts +2 -2
  181. package/es/components/PageHeader/PageHeader.js +9 -9
  182. package/es/components/PageHeader/index.d.ts +2 -1
  183. package/es/components/ProductiveCard/ProductiveCard.d.ts +5 -1
  184. package/es/components/ProductiveCard/ProductiveCard.js +8 -2
  185. package/es/components/ProductiveCard/index.d.ts +2 -1
  186. package/es/components/RemoveModal/RemoveModal.d.ts +3 -4
  187. package/es/components/RemoveModal/RemoveModal.js +6 -6
  188. package/es/components/RemoveModal/index.d.ts +2 -1
  189. package/es/components/Saving/Saving.d.ts +1 -1
  190. package/es/components/Saving/Saving.js +3 -3
  191. package/es/components/Saving/index.d.ts +2 -1
  192. package/es/components/SearchBar/SearchBar.d.ts +1 -1
  193. package/es/components/SearchBar/SearchBar.js +2 -2
  194. package/es/components/SearchBar/index.d.ts +8 -1
  195. package/es/components/SidePanel/SidePanel.d.ts +1 -1
  196. package/es/components/SidePanel/SidePanel.js +23 -11
  197. package/es/components/SidePanel/index.d.ts +8 -1
  198. package/es/components/SingleAddSelect/SingleAddSelect.d.ts +1 -2
  199. package/es/components/SingleAddSelect/SingleAddSelect.js +1 -1
  200. package/es/components/SingleAddSelect/index.d.ts +2 -1
  201. package/es/components/StatusIcon/StatusIcon.d.ts +1 -1
  202. package/es/components/StatusIcon/StatusIcon.js +1 -1
  203. package/es/components/StatusIcon/index.d.ts +8 -1
  204. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +1 -2
  205. package/es/components/SteppedAnimatedMedia/index.d.ts +8 -1
  206. package/es/components/TagOverflow/TagOverflow.d.ts +3 -3
  207. package/es/components/TagOverflow/TagOverflow.js +4 -4
  208. package/es/components/TagOverflow/index.d.ts +8 -1
  209. package/es/components/TagSet/TagSet.d.ts +2 -2
  210. package/es/components/TagSet/TagSet.js +5 -5
  211. package/es/components/TagSet/index.d.ts +2 -1
  212. package/es/components/Tearsheet/Tearsheet.d.ts +2 -3
  213. package/es/components/Tearsheet/Tearsheet.js +5 -5
  214. package/es/components/Tearsheet/TearsheetNarrow.d.ts +3 -3
  215. package/es/components/Tearsheet/TearsheetNarrow.js +5 -5
  216. package/es/components/Tearsheet/TearsheetShell.js +10 -5
  217. package/es/components/Tearsheet/index.d.ts +10 -2
  218. package/es/components/Toolbar/Toolbar.d.ts +1 -1
  219. package/es/components/Toolbar/Toolbar.js +3 -3
  220. package/es/components/Toolbar/ToolbarButton.d.ts +2 -3
  221. package/es/components/Toolbar/ToolbarButton.js +3 -3
  222. package/es/components/Toolbar/ToolbarGroup.d.ts +1 -2
  223. package/es/components/Toolbar/ToolbarGroup.js +3 -3
  224. package/es/components/Toolbar/index.d.ts +12 -3
  225. package/es/components/TruncatedList/TruncatedList.d.ts +1 -2
  226. package/es/components/TruncatedList/TruncatedList.js +2 -2
  227. package/es/components/TruncatedList/index.d.ts +8 -1
  228. package/es/components/UserProfileImage/UserProfileImage.d.ts +3 -3
  229. package/es/components/UserProfileImage/UserProfileImage.js +5 -4
  230. package/es/components/UserProfileImage/index.d.ts +2 -1
  231. package/es/components/WebTerminal/WebTerminal.d.ts +4 -4
  232. package/es/components/WebTerminal/WebTerminal.js +6 -6
  233. package/es/components/WebTerminal/WebTerminalContentWrapper.d.ts +2 -3
  234. package/es/components/WebTerminal/index.d.ts +11 -3
  235. package/es/components/index.d.ts +73 -72
  236. package/es/global/js/hooks/useFocus.d.ts +1 -1
  237. package/es/global/js/hooks/useFocus.js +5 -4
  238. package/es/global/js/package-settings.d.ts +2 -0
  239. package/es/global/js/package-settings.js +2 -0
  240. package/es/index.js +46 -44
  241. package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +2 -4
  242. package/es/settings.d.ts +2 -0
  243. package/lib/components/APIKeyModal/index.d.ts +2 -1
  244. package/lib/components/AboutModal/AboutModal.d.ts +1 -2
  245. package/lib/components/AboutModal/index.d.ts +8 -1
  246. package/lib/components/ActionSet/ActionSet.d.ts +1 -2
  247. package/lib/components/ActionSet/ActionSet.js +2 -2
  248. package/lib/components/ActionSet/index.d.ts +8 -1
  249. package/lib/components/AddSelect/AddSelectBody.js +2 -2
  250. package/lib/components/AddSelect/index.d.ts +2 -1
  251. package/lib/components/Card/Card.d.ts +1 -0
  252. package/lib/components/Card/Card.js +5 -2
  253. package/lib/components/Carousel/index.d.ts +9 -2
  254. package/lib/components/Cascade/Cascade.d.ts +1 -2
  255. package/lib/components/Cascade/Cascade.js +2 -2
  256. package/lib/components/Cascade/index.d.ts +2 -1
  257. package/lib/components/Checklist/Checklist.d.ts +2 -2
  258. package/lib/components/Checklist/Checklist.js +6 -6
  259. package/lib/components/Checklist/index.d.ts +8 -1
  260. package/lib/components/Coachmark/Coachmark.d.ts +1 -2
  261. package/lib/components/Coachmark/Coachmark.js +5 -5
  262. package/lib/components/Coachmark/index.d.ts +10 -3
  263. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +2 -3
  264. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +4 -3
  265. package/lib/components/CoachmarkBeacon/index.d.ts +8 -1
  266. package/lib/components/CoachmarkButton/CoachmarkButton.d.ts +1 -2
  267. package/lib/components/CoachmarkButton/CoachmarkButton.js +4 -2
  268. package/lib/components/CoachmarkButton/index.d.ts +8 -1
  269. package/lib/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -2
  270. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +6 -5
  271. package/lib/components/CoachmarkFixed/index.d.ts +8 -1
  272. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +1 -2
  273. package/lib/components/CoachmarkOverlayElement/index.d.ts +8 -1
  274. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +1 -2
  275. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +10 -6
  276. package/lib/components/CoachmarkOverlayElements/index.d.ts +8 -1
  277. package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +67 -2
  278. package/lib/components/CoachmarkStack/CoachmarkStack.js +16 -9
  279. package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +71 -2
  280. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +19 -21
  281. package/lib/components/ComboButton/ComboButton.d.ts +1 -1
  282. package/lib/components/ComboButton/ComboButton.js +5 -5
  283. package/lib/components/ComboButton/index.d.ts +9 -2
  284. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +0 -1
  285. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +27 -19
  286. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +4 -17
  287. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +29 -36
  288. package/lib/components/CreateFullPage/CreateFullPage.d.ts +1 -1
  289. package/lib/components/CreateFullPage/CreateFullPage.js +5 -5
  290. package/lib/components/CreateFullPage/index.d.ts +9 -2
  291. package/lib/components/CreateModal/CreateModal.d.ts +2 -3
  292. package/lib/components/CreateModal/CreateModal.js +1 -1
  293. package/lib/components/CreateModal/index.d.ts +2 -1
  294. package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
  295. package/lib/components/CreateSidePanel/index.d.ts +7 -1
  296. package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +2 -2
  297. package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
  298. package/lib/components/CreateTearsheet/index.d.ts +10 -3
  299. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +1 -1
  300. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
  301. package/lib/components/CreateTearsheetNarrow/index.d.ts +8 -1
  302. package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +3 -4
  303. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +11 -10
  304. package/lib/components/DataSpreadsheet/index.d.ts +8 -1
  305. package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  306. package/lib/components/Datagrid/Datagrid/DatagridRow.js +7 -5
  307. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +2 -1
  308. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +4 -4
  309. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +3 -1
  310. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +10 -3
  311. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -1
  312. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -1
  313. package/lib/components/Datagrid/Datagrid/addons/stateReducer.d.ts +7 -0
  314. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +70 -26
  315. package/lib/components/Datagrid/types/index.d.ts +2 -0
  316. package/lib/components/Datagrid/useNestedRowExpander.js +64 -15
  317. package/lib/components/Datagrid/useRowRenderer.js +44 -2
  318. package/lib/components/Datagrid/useSortableColumns.js +14 -1
  319. package/lib/components/DelimitedList/DelimitedList.d.ts +1 -2
  320. package/lib/components/DelimitedList/index.d.ts +8 -1
  321. package/lib/components/EditFullPage/EditFullPage.d.ts +1 -2
  322. package/lib/components/EditFullPage/index.d.ts +8 -1
  323. package/lib/components/EditInPlace/EditInPlace.d.ts +5 -1
  324. package/lib/components/EditInPlace/EditInPlace.js +10 -4
  325. package/lib/components/EditInPlace/index.d.ts +8 -1
  326. package/lib/components/EditSidePanel/EditSidePanel.d.ts +2 -3
  327. package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
  328. package/lib/components/EditSidePanel/index.d.ts +8 -1
  329. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +1 -2
  330. package/lib/components/EditTearsheetNarrow/index.d.ts +8 -1
  331. package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +1 -1
  332. package/lib/components/EditUpdateCards/EditUpdateCards.js +2 -1
  333. package/lib/components/EditUpdateCards/index.d.ts +8 -1
  334. package/lib/components/ExportModal/ExportModal.d.ts +3 -3
  335. package/lib/components/ExportModal/ExportModal.js +3 -3
  336. package/lib/components/ExportModal/index.d.ts +2 -1
  337. package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +1 -1
  338. package/lib/components/ExpressiveCard/ExpressiveCard.js +1 -1
  339. package/lib/components/ExpressiveCard/index.d.ts +2 -1
  340. package/lib/components/FeatureFlags/index.d.ts +26 -21
  341. package/lib/components/FeatureFlags/index.js +1 -10
  342. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +1 -1
  343. package/lib/components/FilterSummary/FilterSummary.d.ts +1 -1
  344. package/lib/components/FilterSummary/FilterSummary.js +7 -8
  345. package/lib/components/FilterSummary/index.d.ts +8 -1
  346. package/lib/components/FullPageError/FullPageError.d.ts +1 -2
  347. package/lib/components/FullPageError/FullPageError.js +10 -7
  348. package/lib/components/FullPageError/assets/Error403SVG.d.ts +3 -1
  349. package/lib/components/FullPageError/assets/Error403SVG.js +6 -3
  350. package/lib/components/FullPageError/assets/Error404SVG.d.ts +3 -1
  351. package/lib/components/FullPageError/assets/Error404SVG.js +6 -3
  352. package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +3 -1
  353. package/lib/components/FullPageError/assets/ErrorGenericSVG.js +6 -3
  354. package/lib/components/FullPageError/index.d.ts +8 -1
  355. package/lib/components/GetStartedCard/GetStartedCard.d.ts +1 -1
  356. package/lib/components/GetStartedCard/index.d.ts +8 -1
  357. package/lib/components/Guidebanner/Guidebanner.d.ts +1 -2
  358. package/lib/components/Guidebanner/Guidebanner.js +18 -17
  359. package/lib/components/Guidebanner/GuidebannerElement.d.ts +1 -2
  360. package/lib/components/Guidebanner/GuidebannerElementButton.d.ts +2 -3
  361. package/lib/components/Guidebanner/GuidebannerElementButton.js +2 -2
  362. package/lib/components/Guidebanner/GuidebannerElementLink.d.ts +2 -3
  363. package/lib/components/Guidebanner/GuidebannerElementLink.js +1 -1
  364. package/lib/components/Guidebanner/index.d.ts +14 -4
  365. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +2 -1
  366. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +2 -1
  367. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -0
  368. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +3 -1
  369. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +6 -3
  370. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +3 -1
  371. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +6 -3
  372. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +3 -1
  373. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +6 -3
  374. package/lib/components/ImportModal/ImportModal.d.ts +1 -1
  375. package/lib/components/ImportModal/ImportModal.js +3 -3
  376. package/lib/components/ImportModal/index.d.ts +2 -1
  377. package/lib/components/InlineTip/InlineTip.d.ts +1 -1
  378. package/lib/components/InlineTip/InlineTip.js +4 -4
  379. package/lib/components/InlineTip/InlineTipButton.d.ts +1 -2
  380. package/lib/components/InlineTip/InlineTipButton.js +1 -1
  381. package/lib/components/InlineTip/InlineTipLink.d.ts +1 -2
  382. package/lib/components/InlineTip/InlineTipLink.js +2 -2
  383. package/lib/components/InlineTip/index.d.ts +12 -3
  384. package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +1 -1
  385. package/lib/components/InterstitialScreen/InterstitialScreen.js +6 -5
  386. package/lib/components/InterstitialScreen/index.d.ts +8 -1
  387. package/lib/components/InterstitialScreenView/InterstitialScreenView.d.ts +1 -2
  388. package/lib/components/InterstitialScreenView/index.d.ts +8 -1
  389. package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +1 -2
  390. package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +1 -1
  391. package/lib/components/InterstitialScreenViewModule/index.d.ts +8 -1
  392. package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +1 -1
  393. package/lib/components/MultiAddSelect/MultiAddSelect.js +1 -1
  394. package/lib/components/MultiAddSelect/index.d.ts +2 -1
  395. package/lib/components/Nav/NavItem.js +9 -7
  396. package/lib/components/Nav/NavList.js +8 -6
  397. package/lib/components/NonLinearReading/NonLinearReading.d.ts +1 -1
  398. package/lib/components/NonLinearReading/NonLinearReading.js +2 -2
  399. package/lib/components/NonLinearReading/index.d.ts +8 -1
  400. package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +2 -2
  401. package/lib/components/NotificationsPanel/NotificationsPanel.js +3 -3
  402. package/lib/components/NotificationsPanel/index.d.ts +8 -1
  403. package/lib/components/OptionsTile/OptionsTile.d.ts +2 -3
  404. package/lib/components/OptionsTile/OptionsTile.js +5 -6
  405. package/lib/components/OptionsTile/index.d.ts +8 -1
  406. package/lib/components/PageHeader/PageHeader.d.ts +2 -2
  407. package/lib/components/PageHeader/PageHeader.js +8 -8
  408. package/lib/components/PageHeader/index.d.ts +2 -1
  409. package/lib/components/ProductiveCard/ProductiveCard.d.ts +5 -1
  410. package/lib/components/ProductiveCard/ProductiveCard.js +8 -2
  411. package/lib/components/ProductiveCard/index.d.ts +2 -1
  412. package/lib/components/RemoveModal/RemoveModal.d.ts +3 -4
  413. package/lib/components/RemoveModal/RemoveModal.js +6 -6
  414. package/lib/components/RemoveModal/index.d.ts +2 -1
  415. package/lib/components/Saving/Saving.d.ts +1 -1
  416. package/lib/components/Saving/Saving.js +2 -2
  417. package/lib/components/Saving/index.d.ts +2 -1
  418. package/lib/components/SearchBar/SearchBar.d.ts +1 -1
  419. package/lib/components/SearchBar/SearchBar.js +1 -1
  420. package/lib/components/SearchBar/index.d.ts +8 -1
  421. package/lib/components/SidePanel/SidePanel.d.ts +1 -1
  422. package/lib/components/SidePanel/SidePanel.js +22 -10
  423. package/lib/components/SidePanel/index.d.ts +8 -1
  424. package/lib/components/SingleAddSelect/SingleAddSelect.d.ts +1 -2
  425. package/lib/components/SingleAddSelect/SingleAddSelect.js +1 -1
  426. package/lib/components/SingleAddSelect/index.d.ts +2 -1
  427. package/lib/components/StatusIcon/StatusIcon.d.ts +1 -1
  428. package/lib/components/StatusIcon/StatusIcon.js +1 -1
  429. package/lib/components/StatusIcon/index.d.ts +8 -1
  430. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +1 -2
  431. package/lib/components/SteppedAnimatedMedia/index.d.ts +8 -1
  432. package/lib/components/TagOverflow/TagOverflow.d.ts +3 -3
  433. package/lib/components/TagOverflow/TagOverflow.js +4 -4
  434. package/lib/components/TagOverflow/index.d.ts +8 -1
  435. package/lib/components/TagSet/TagSet.d.ts +2 -2
  436. package/lib/components/TagSet/TagSet.js +4 -4
  437. package/lib/components/TagSet/index.d.ts +2 -1
  438. package/lib/components/Tearsheet/Tearsheet.d.ts +2 -3
  439. package/lib/components/Tearsheet/Tearsheet.js +4 -4
  440. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +3 -3
  441. package/lib/components/Tearsheet/TearsheetNarrow.js +4 -4
  442. package/lib/components/Tearsheet/TearsheetShell.js +10 -5
  443. package/lib/components/Tearsheet/index.d.ts +10 -2
  444. package/lib/components/Toolbar/Toolbar.d.ts +1 -1
  445. package/lib/components/Toolbar/Toolbar.js +4 -4
  446. package/lib/components/Toolbar/ToolbarButton.d.ts +2 -3
  447. package/lib/components/Toolbar/ToolbarButton.js +4 -4
  448. package/lib/components/Toolbar/ToolbarGroup.d.ts +1 -2
  449. package/lib/components/Toolbar/ToolbarGroup.js +4 -4
  450. package/lib/components/Toolbar/index.d.ts +12 -3
  451. package/lib/components/TruncatedList/TruncatedList.d.ts +1 -2
  452. package/lib/components/TruncatedList/TruncatedList.js +2 -2
  453. package/lib/components/TruncatedList/index.d.ts +8 -1
  454. package/lib/components/UserProfileImage/UserProfileImage.d.ts +3 -3
  455. package/lib/components/UserProfileImage/UserProfileImage.js +5 -4
  456. package/lib/components/UserProfileImage/index.d.ts +2 -1
  457. package/lib/components/WebTerminal/WebTerminal.d.ts +4 -4
  458. package/lib/components/WebTerminal/WebTerminal.js +18 -18
  459. package/lib/components/WebTerminal/WebTerminalContentWrapper.d.ts +2 -3
  460. package/lib/components/WebTerminal/WebTerminalContentWrapper.js +4 -4
  461. package/lib/components/WebTerminal/index.d.ts +11 -3
  462. package/lib/components/index.d.ts +73 -72
  463. package/lib/global/js/hooks/useFocus.d.ts +1 -1
  464. package/lib/global/js/hooks/useFocus.js +5 -4
  465. package/lib/global/js/package-settings.d.ts +2 -0
  466. package/lib/global/js/package-settings.js +2 -0
  467. package/lib/index.js +169 -159
  468. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +2 -4
  469. package/lib/settings.d.ts +2 -0
  470. package/package.json +9 -9
  471. package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +2 -10
  472. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +30 -10
  473. package/scss/components/Datagrid/styles/_useNestedRows.scss +1 -1
  474. package/telemetry.yml +1 -1
@@ -1 +1,2 @@
1
- export { CreateModal } from "./CreateModal";
1
+ export { CreateModal } from './CreateModal';
2
+ export type { CreateModalProps } from './CreateModal';
@@ -12,8 +12,8 @@ import cx from 'classnames';
12
12
  import { pkg } from '../../settings.js';
13
13
  import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
14
14
  import { Form } from '@carbon/react';
15
- import uuidv4 from '../../global/js/utils/uuidv4.js';
16
15
  import { SidePanel } from '../SidePanel/SidePanel.js';
16
+ import uuidv4 from '../../global/js/utils/uuidv4.js';
17
17
 
18
18
  var _excluded = ["className", "children", "disableSubmit", "formTitle", "formDescription", "id", "onRequestClose", "onRequestSubmit", "open", "primaryButtonText", "secondaryButtonText", "selectorPageContent", "selectorPrimaryFocus", "subtitle", "title"];
19
19
 
@@ -1 +1,7 @@
1
- export { CreateSidePanel } from "./CreateSidePanel";
1
+ /**
2
+ * Copyright IBM Corp. 2020, 2021
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export { CreateSidePanel } from './CreateSidePanel';
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import React, { ReactNode, PropsWithChildren, Dispatch, SetStateAction } from 'react';
7
+ import React, { Dispatch, PropsWithChildren, ReactNode, SetStateAction } from 'react';
8
8
  export interface StepsContextType {
9
9
  currentStep: number;
10
10
  setIsDisabled: Dispatch<SetStateAction<boolean>>;
@@ -16,7 +16,7 @@ export interface StepsContextType {
16
16
  }
17
17
  export declare const StepsContext: React.Context<StepsContextType | null>;
18
18
  export declare const StepNumberContext: React.Context<number>;
19
- interface CreateTearsheetProps extends PropsWithChildren {
19
+ export interface CreateTearsheetProps extends PropsWithChildren {
20
20
  /**
21
21
  * The back button text
22
22
  */
@@ -7,14 +7,14 @@
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default, { forwardRef, useState, useRef, useEffect, createContext } from 'react';
10
- import PropTypes from '../../node_modules/prop-types/index.js';
11
- import cx from 'classnames';
12
10
  import { Form } from '@carbon/react';
11
+ import PropTypes from '../../node_modules/prop-types/index.js';
13
12
  import { TearsheetShell } from '../Tearsheet/TearsheetShell.js';
14
- import { pkg } from '../../settings.js';
13
+ import cx from 'classnames';
15
14
  import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
16
- import { lastIndexInArray } from '../../global/js/utils/lastIndexInArray.js';
17
15
  import { getNumberOfHiddenSteps } from '../../global/js/utils/getNumberOfHiddenSteps.js';
16
+ import { lastIndexInArray } from '../../global/js/utils/lastIndexInArray.js';
17
+ import { pkg } from '../../settings.js';
18
18
  import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
19
19
  import { useCreateComponentFocus } from '../../global/js/hooks/useCreateComponentFocus.js';
20
20
  import { useValidCreateStepCount } from '../../global/js/hooks/useValidCreateStepCount.js';
@@ -1,3 +1,10 @@
1
- export { CreateTearsheet } from "./CreateTearsheet";
2
- export { CreateTearsheetStep } from "./CreateTearsheetStep";
3
- export { CreateTearsheetDivider } from "./CreateTearsheetDivider";
1
+ /**
2
+ * Copyright IBM Corp. 2021, 2021
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export { CreateTearsheet } from './CreateTearsheet';
8
+ export { CreateTearsheetStep } from './CreateTearsheetStep';
9
+ export { CreateTearsheetDivider } from './CreateTearsheetDivider';
10
+ export type { CreateTearsheetProps } from './CreateTearsheet';
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import React, { PropsWithChildren, ReactNode } from 'react';
8
8
  type VerticalPosition = 'normal' | 'lower';
9
- interface CreateTearsheetNarrowProps extends PropsWithChildren {
9
+ export interface CreateTearsheetNarrowProps extends PropsWithChildren {
10
10
  /**
11
11
  * Provide the contents of the CreateTearsheetNarrow.
12
12
  */
@@ -7,12 +7,12 @@
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default from 'react';
10
+ import { Form } from '@carbon/react';
10
11
  import PropTypes from '../../node_modules/prop-types/index.js';
12
+ import { TearsheetNarrow } from '../Tearsheet/TearsheetNarrow.js';
11
13
  import cx from 'classnames';
12
- import { Form } from '@carbon/react';
13
14
  import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
14
15
  import { pkg } from '../../settings.js';
15
- import { TearsheetNarrow } from '../Tearsheet/TearsheetNarrow.js';
16
16
  import uuidv4 from '../../global/js/utils/uuidv4.js';
17
17
 
18
18
  var _excluded = ["children", "className", "description", "disableSubmit", "formDescription", "formTitle", "label", "open", "onRequestClose", "onRequestSubmit", "primaryButtonText", "secondaryButtonText", "selectorPrimaryFocus", "title", "verticalPosition"];
@@ -1 +1,8 @@
1
- export { CreateTearsheetNarrow } from "./CreateTearsheetNarrow";
1
+ /**
2
+ * Copyright IBM Corp. 2021, 2021
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export { CreateTearsheetNarrow } from './CreateTearsheetNarrow';
8
+ export type { CreateTearsheetNarrowProps } from './CreateTearsheetNarrow';
@@ -4,10 +4,10 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import React from 'react';
8
- import { Column } from 'react-table';
9
7
  import { Size, Theme } from './types';
10
- interface DataSpreadsheetProps {
8
+ import { Column } from 'react-table';
9
+ import React from 'react';
10
+ export interface DataSpreadsheetProps {
11
11
  /**
12
12
  * Specifies the cell height
13
13
  */
@@ -94,4 +94,3 @@ interface DataSpreadsheetProps {
94
94
  * DataSpreadsheet: used to organize and display large amounts of structured data, separated by columns and rows in a grid-like format.
95
95
  */
96
96
  export declare let DataSpreadsheet: React.ForwardRefExoticComponent<DataSpreadsheetProps & React.RefAttributes<HTMLDivElement>>;
97
- export {};
@@ -6,24 +6,24 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, defineProperty as _defineProperty, typeof as _typeof, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default, { useRef, useState, useMemo, useCallback, useEffect } from 'react';
10
9
  import { useTable, useBlockLayout, useColumnOrder } from 'react-table';
11
- import PropTypes from '../../node_modules/prop-types/index.js';
12
- import cx from 'classnames';
13
- import { pkg } from '../../settings.js';
10
+ import React__default, { useRef, useState, useMemo, useCallback, useEffect } from 'react';
14
11
  import { DataSpreadsheetBody } from './DataSpreadsheetBody.js';
15
12
  import { DataSpreadsheetHeader } from './DataSpreadsheetHeader.js';
16
- import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
17
- import { getScrollbarWidth } from '../../global/js/utils/getScrollbarWidth.js';
18
- import uuidv4 from '../../global/js/utils/uuidv4.js';
19
- import { deepCloneObject } from '../../global/js/utils/deepCloneObject.js';
13
+ import PropTypes from '../../node_modules/prop-types/index.js';
20
14
  import { createActiveCellFn } from './utils/createActiveCellFn.js';
15
+ import cx from 'classnames';
16
+ import { deepCloneObject } from '../../global/js/utils/deepCloneObject.js';
21
17
  import { getCellSize } from './utils/getCellSize.js';
18
+ import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
19
+ import { getScrollbarWidth } from '../../global/js/utils/getScrollbarWidth.js';
20
+ import { handleEditSubmit } from './utils/handleEditSubmit.js';
22
21
  import { handleHeaderCellSelection } from './utils/handleHeaderCellSelection.js';
22
+ import { handleKeyPress } from './utils/commonEventHandlers.js';
23
+ import { pkg } from '../../settings.js';
23
24
  import { removeCellSelections } from './utils/removeCellSelections.js';
24
25
  import { selectAllCells } from './utils/selectAllCells.js';
25
- import { handleEditSubmit } from './utils/handleEditSubmit.js';
26
- import { handleKeyPress } from './utils/commonEventHandlers.js';
26
+ import uuidv4 from '../../global/js/utils/uuidv4.js';
27
27
  import { useActiveElement } from '../../global/js/hooks/useActiveElement.js';
28
28
  import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
29
29
  import { useMultipleKeyTracking } from './hooks/useMultipleKeyTracking.js';
@@ -33,6 +33,7 @@ import { useMoveActiveCell } from './hooks/useMoveActiveCell.js';
33
33
  import { useSpreadsheetEdit } from './hooks/useSpreadsheetEdit.js';
34
34
 
35
35
  var _excluded = ["cellSize", "className", "columns", "data", "defaultEmptyRowCount", "onDataUpdate", "onColDrag", "id", "onActiveCellChange", "onSelectionAreaChange", "renderRowHeader", "renderRowHeaderDirection", "disableColumnSwapping", "readOnlyTable", "selectAllAriaLabel", "spreadsheetAriaLabel", "theme", "totalVisibleColumns"];
36
+
36
37
  // The block part of our conventional BEM class names (blockClass__E--M).
37
38
  var blockClass = "".concat(pkg.prefix, "--data-spreadsheet");
38
39
  var componentName = 'DataSpreadsheet';
@@ -1 +1,8 @@
1
- export { DataSpreadsheet } from "./DataSpreadsheet";
1
+ /**
2
+ * Copyright IBM Corp. 2022, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export { DataSpreadsheet } from './DataSpreadsheet';
8
+ export type { DataSpreadsheetProps } from './DataSpreadsheet';
@@ -14,6 +14,7 @@ import { CLEAR_SINGLE_FILTER, CLEAR_FILTERS } from './addons/Filtering/constants
14
14
  import DatagridBody from './DatagridBody.js';
15
15
  import DatagridHead from './DatagridHead.js';
16
16
  import DatagridToolbar from './DatagridToolbar.js';
17
+ import FilterSummary from '../../FilterSummary/FilterSummary.js';
17
18
  import PropTypes from '../../../node_modules/prop-types/index.js';
18
19
  import cx from 'classnames';
19
20
  import { handleGridFocus } from './addons/InlineEdit/handleGridFocus.js';
@@ -26,7 +27,6 @@ import { useClickOutside } from '../../../global/js/hooks/useClickOutside.js';
26
27
  import { useMultipleKeyTracking } from '../../DataSpreadsheet/hooks/useMultipleKeyTracking.js';
27
28
  import useSubscribeToEventEmitter from './addons/Filtering/hooks/useSubscribeToEventEmitter.js';
28
29
  import FilterPanel from './addons/Filtering/FilterPanel.js';
29
- import FilterSummary from '../../FilterSummary/FilterSummary.js';
30
30
 
31
31
  var blockClass = "".concat(pkg.prefix, "--datagrid");
32
32
  var gcClass = "".concat(blockClass, "__grid-container");
@@ -40,7 +40,8 @@ var DatagridRow = function DatagridRow(datagridState) {
40
40
  withMouseHover = datagridState.withMouseHover,
41
41
  setMouseOverRowIndex = datagridState.setMouseOverRowIndex,
42
42
  headers = datagridState.headers,
43
- visibleColumns = datagridState.visibleColumns;
43
+ visibleColumns = datagridState.visibleColumns,
44
+ getAsyncSubRows = datagridState.getAsyncSubRows;
44
45
  var getVisibleNestedRowCount = function getVisibleNestedRowCount(_ref) {
45
46
  var isExpanded = _ref.isExpanded,
46
47
  subRows = _ref.subRows;
@@ -117,15 +118,16 @@ var DatagridRow = function DatagridRow(datagridState) {
117
118
  var _r$original;
118
119
  return /*#__PURE__*/isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.slug);
119
120
  });
120
- var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(carbon.prefix, "--data-table--selected"), row.isSelected), "".concat(blockClass, "__slug--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug)));
121
+ var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(blockClass, "__carbon-row-expandable--async"), getAsyncSubRows && row.depth > 0), "".concat(carbon.prefix, "--data-table--selected"), row.isSelected), "".concat(blockClass, "__slug--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug)));
121
122
  var withActionsColumn = headers ? !!headers.filter(function (header) {
122
123
  return header.isAction;
123
124
  }).length : false;
125
+ var rowKey = !row.isSkeleton ? key : row.skeletonKey;
124
126
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
125
- key: key
127
+ key: "".concat(rowKey, "__").concat(key, "__row--fragment")
126
128
  }, /*#__PURE__*/React__default.createElement(TableRow, _extends({}, rowProps, {
127
129
  className: cx(rowClassNames, className),
128
- key: row.id,
130
+ key: rowKey,
129
131
  onMouseEnter: hoverHandler,
130
132
  onMouseLeave: handleMouseLeave,
131
133
  onFocus: hoverHandler,
@@ -164,7 +166,7 @@ var DatagridRow = function DatagridRow(datagridState) {
164
166
  style.flex = lastVisibleFlexStyle;
165
167
  }
166
168
  return /*#__PURE__*/React__default.createElement(TableCell, _extends({
167
- className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), row.canExpand && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)), columnClassname)
169
+ className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), (row.canExpand || getAsyncSubRows) && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)), columnClassname)
168
170
  }, restProps, {
169
171
  style: style,
170
172
  key: cell.column.id
@@ -8,10 +8,11 @@
8
8
  import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default, { useState, useCallback, useEffect } from 'react';
10
10
  import PropTypes from '../../../../../node_modules/prop-types/index.js';
11
+ import '../../../../Tearsheet/Tearsheet.js';
12
+ import { TearsheetNarrow } from '../../../../Tearsheet/TearsheetNarrow.js';
11
13
  import Columns from './Columns.js';
12
14
  import Actions from './Actions.js';
13
15
  import { pkg } from '../../../../../settings.js';
14
- import { TearsheetNarrow } from '../../../../Tearsheet/TearsheetNarrow.js';
15
16
 
16
17
  var blockClass = "".concat(pkg.prefix, "--datagrid");
17
18
  var CustomizeColumnsTearsheet = function CustomizeColumnsTearsheet(_ref) {
@@ -161,10 +161,10 @@ var DraggableItemsList = function DraggableItemsList(_ref) {
161
161
  strategy: verticalListSortingStrategy
162
162
  }, visibleCols.map(function (colDef) {
163
163
  var colHeaderTitle = getNodeTextContent(colDef.Header);
164
- var searchString = new RegExp('(' + filterString + ')');
165
- var res = filterString.length ? colHeaderTitle.toLowerCase().split(searchString) : null;
166
- var firstWord = res !== null ? res[0] === '' ? res[1].charAt(0).toUpperCase() + res[1].substring(1) : res[0].charAt(0).toUpperCase() + res[0].substring(1) : null;
167
- var highlightedText = res !== null ? res[0] === '' ? "<strong>".concat(firstWord, "</strong>") + res[2] : firstWord + "<strong>".concat(res[1], "</strong>") + res[2] : colHeaderTitle;
164
+ var parts = colHeaderTitle.split(new RegExp("(".concat(filterString, ")"), 'gi'));
165
+ var highlightedText = parts.map(function (part) {
166
+ return part.toLowerCase() === filterString.toLowerCase() ? "<strong>".concat(part, "</strong>") : part;
167
+ }).join('');
168
168
  var isFrozenColumn = !!colDef.sticky;
169
169
  var isDisabled = colDef.disabled;
170
170
  var listContents = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Checkbox, {
@@ -1,7 +1,8 @@
1
1
  export default FilterFlyout;
2
- declare function FilterFlyout({ updateMethod, flyoutIconDescription, filters, title, primaryActionLabel, onFlyoutOpen, onFlyoutClose, onApply, onCancel, secondaryActionLabel, setAllFilters, data, reactTableFiltersState, }: {
2
+ declare function FilterFlyout({ updateMethod, flyoutIconDescription, align, filters, title, primaryActionLabel, onFlyoutOpen, onFlyoutClose, onApply, onCancel, secondaryActionLabel, setAllFilters, data, reactTableFiltersState, }: {
3
3
  updateMethod: any;
4
4
  flyoutIconDescription?: string | undefined;
5
+ align?: string | undefined;
5
6
  filters?: any[] | undefined;
6
7
  title?: string | undefined;
7
8
  primaryActionLabel?: string | undefined;
@@ -16,6 +17,7 @@ declare function FilterFlyout({ updateMethod, flyoutIconDescription, filters, ti
16
17
  }): import("react/jsx-runtime").JSX.Element;
17
18
  declare namespace FilterFlyout {
18
19
  namespace propTypes {
20
+ let align: PropTypes.Requireable<string>;
19
21
  let data: PropTypes.Validator<any[]>;
20
22
  let filters: PropTypes.Validator<(PropTypes.InferProps<{
21
23
  type: PropTypes.Validator<string>;
@@ -10,6 +10,7 @@ import { BATCH, INSTANT, FLYOUT, CLEAR_FILTERS } from './constants.js';
10
10
  import { usePrefix, IconButton } from '@carbon/react';
11
11
  import React__default, { useState, useRef, useEffect } from 'react';
12
12
  import { breakpoints, px } from '@carbon/layout';
13
+ import { ActionSet } from '../../../../ActionSet/ActionSet.js';
13
14
  import { Filter } from '@carbon/react/icons';
14
15
  import PropTypes from '../../../../../node_modules/prop-types/index.js';
15
16
  import cx from 'classnames';
@@ -19,7 +20,6 @@ import useShouldDisableButtons from './hooks/useShouldDisableButtons.js';
19
20
  import { useWindowResize } from '../../../../../global/js/hooks/useWindowResize.js';
20
21
  import { useClickOutside } from '../../../../../global/js/hooks/useClickOutside.js';
21
22
  import useSubscribeToEventEmitter from './hooks/useSubscribeToEventEmitter.js';
22
- import { ActionSet } from '../../../../ActionSet/ActionSet.js';
23
23
 
24
24
  var _Filter;
25
25
  var blockClass = "".concat(pkg.prefix, "--datagrid");
@@ -28,12 +28,15 @@ var defaults = {
28
28
  flyoutIconDescription: 'Open filters',
29
29
  title: 'Filter',
30
30
  primaryActionLabel: 'Apply',
31
- secondaryActionLabel: 'Cancel'
31
+ secondaryActionLabel: 'Cancel',
32
+ align: 'bottom'
32
33
  };
33
34
  var FilterFlyout = function FilterFlyout(_ref) {
34
35
  var updateMethod = _ref.updateMethod,
35
36
  _ref$flyoutIconDescri = _ref.flyoutIconDescription,
36
37
  flyoutIconDescription = _ref$flyoutIconDescri === void 0 ? defaults.flyoutIconDescription : _ref$flyoutIconDescri,
38
+ _ref$align = _ref.align,
39
+ align = _ref$align === void 0 ? defaults.align : _ref$align,
37
40
  _ref$filters = _ref.filters,
38
41
  filters = _ref$filters === void 0 ? [] : _ref$filters,
39
42
  _ref$title = _ref.title,
@@ -224,7 +227,7 @@ var FilterFlyout = function FilterFlyout(_ref) {
224
227
  }, /*#__PURE__*/React__default.createElement(IconButton, {
225
228
  label: flyoutIconDescription,
226
229
  kind: "ghost",
227
- align: "bottom",
230
+ align: align,
228
231
  onClick: open ? closeFlyout : openFlyout,
229
232
  className: cx("".concat(componentClass, "__trigger"), _defineProperty({}, "".concat(componentClass, "__trigger--open"), open)),
230
233
  disabled: data.length === 0
@@ -241,6 +244,10 @@ var FilterFlyout = function FilterFlyout(_ref) {
241
244
  }, renderFilters())), renderActionSet()));
242
245
  };
243
246
  FilterFlyout.propTypes = {
247
+ /**
248
+ * Tooltip alignment for the filter button
249
+ */
250
+ align: PropTypes.string,
244
251
  /**
245
252
  * All data rows in the table
246
253
  */
@@ -11,13 +11,13 @@ import { PANEL, BATCH, CLEAR_FILTERS, INSTANT } from './constants.js';
11
11
  import React__default, { useState, useContext, useRef, useMemo, useEffect } from 'react';
12
12
  import { panelVariants, innerContainerVariants, actionSetVariants } from './motion/variants.js';
13
13
  import { motion, useReducedMotion } from 'framer-motion';
14
+ import { ActionSet } from '../../../../ActionSet/ActionSet.js';
14
15
  import { Close } from '@carbon/react/icons';
15
16
  import { FilterContext } from './FilterProvider.js';
16
17
  import PropTypes from '../../../../../node_modules/prop-types/index.js';
17
18
  import cx from 'classnames';
18
19
  import { pkg } from '../../../../../settings.js';
19
20
  import { rem } from '@carbon/layout';
20
- import { ActionSet } from '../../../../ActionSet/ActionSet.js';
21
21
  import useFilters from './hooks/useFilters.js';
22
22
  import useShouldDisableButtons from './hooks/useShouldDisableButtons.js';
23
23
  import useSubscribeToEventEmitter from './hooks/useSubscribeToEventEmitter.js';
@@ -345,7 +345,8 @@ var InlineEditCell = function InlineEditCell(_ref) {
345
345
  }
346
346
  }
347
347
  },
348
- ref: dropdownRef
348
+ ref: dropdownRef,
349
+ autoAlign: true
349
350
  }));
350
351
  };
351
352
  var setRenderIcon = function setRenderIcon() {
@@ -14,4 +14,11 @@ export function handleSelectAllRowData({ dispatch, rows, getRowId, indeterminate
14
14
  indeterminate: any;
15
15
  isChecked: any;
16
16
  }): any;
17
+ export function handleDynamicRowCheck({ dispatch, status, rowId, depth, index, }: {
18
+ dispatch: any;
19
+ status: any;
20
+ rowId: any;
21
+ depth: any;
22
+ index: any;
23
+ }): any;
17
24
  export function stateReducer(newState: any, action: any): any;
@@ -14,6 +14,7 @@ var COLUMN_RESIZE_END = 'columnDoneResizing';
14
14
  var INIT = 'init';
15
15
  var TOGGLE_ROW_SELECTED = 'toggleRowSelected';
16
16
  var TOGGLE_ALL_ROWS_SELECTED = 'toggleAllRowsSelected';
17
+ var DYNAMIC_ROW_CHECK = 'dynamicRowCheck';
17
18
  var blockClass = "".concat(pkg.prefix, "--datagrid");
18
19
  var handleColumnResizeEndEvent = function handleColumnResizeEndEvent(dispatch, onColResizeEnd, headerId, isKeyEvent) {
19
20
  dispatch({
@@ -77,15 +78,57 @@ var handleSelectAllRowData = function handleSelectAllRowData(_ref2) {
77
78
  }
78
79
  });
79
80
  };
81
+ var handleDynamicRowCheck = function handleDynamicRowCheck(_ref3) {
82
+ var dispatch = _ref3.dispatch,
83
+ status = _ref3.status,
84
+ rowId = _ref3.rowId,
85
+ depth = _ref3.depth,
86
+ index = _ref3.index;
87
+ return dispatch({
88
+ type: DYNAMIC_ROW_CHECK,
89
+ payload: {
90
+ status: status,
91
+ rowId: rowId,
92
+ depth: depth,
93
+ index: index
94
+ }
95
+ });
96
+ };
80
97
  var stateReducer = function stateReducer(newState, action) {
81
98
  switch (action.type) {
99
+ case DYNAMIC_ROW_CHECK:
100
+ {
101
+ var _action$payload = action.payload,
102
+ status = _action$payload.status,
103
+ rowId = _action$payload.rowId,
104
+ depth = _action$payload.depth,
105
+ index = _action$payload.index;
106
+ if (status === 'start') {
107
+ var skeletonRow = function skeletonRow(id) {
108
+ return {
109
+ isSkeleton: true,
110
+ values: 'skeleton',
111
+ id: id,
112
+ depth: depth,
113
+ index: index,
114
+ skeletonKey: "".concat(id, "__skeleton")
115
+ };
116
+ };
117
+ return _objectSpread2(_objectSpread2({}, newState), {}, {
118
+ dynamicRowSkeleton: skeletonRow(rowId)
119
+ });
120
+ }
121
+ return _objectSpread2(_objectSpread2({}, newState), {}, {
122
+ dynamicRowSkeleton: null
123
+ });
124
+ }
82
125
  case TOGGLE_ALL_ROWS_SELECTED:
83
126
  {
84
- var _ref3 = action.payload || {},
85
- rows = _ref3.rows,
86
- getRowId = _ref3.getRowId,
87
- indeterminate = _ref3.indeterminate,
88
- isChecked = _ref3.isChecked;
127
+ var _ref4 = action.payload || {},
128
+ rows = _ref4.rows,
129
+ getRowId = _ref4.getRowId,
130
+ indeterminate = _ref4.indeterminate,
131
+ isChecked = _ref4.isChecked;
89
132
  var newSelectedRowIds = {};
90
133
  if (rows) {
91
134
  var newSelectedRowData = {};
@@ -107,10 +150,10 @@ var stateReducer = function stateReducer(newState, action) {
107
150
  }
108
151
  case TOGGLE_ROW_SELECTED:
109
152
  {
110
- var _ref4 = action.payload || {},
111
- rowData = _ref4.rowData,
112
- _isChecked = _ref4.isChecked,
113
- _getRowId = _ref4.getRowId;
153
+ var _ref5 = action.payload || {},
154
+ rowData = _ref5.rowData,
155
+ _isChecked = _ref5.isChecked,
156
+ _getRowId = _ref5.getRowId;
114
157
  if (!rowData) {
115
158
  return;
116
159
  }
@@ -121,9 +164,9 @@ var stateReducer = function stateReducer(newState, action) {
121
164
  }
122
165
  if (rowData && !_isChecked) {
123
166
  var newData = _objectSpread2({}, newState.selectedRowData);
124
- var dataWithRemovedRow = Object.fromEntries(Object.entries(newData).filter(function (_ref5) {
125
- var _ref6 = _slicedToArray(_ref5, 1),
126
- key = _ref6[0];
167
+ var dataWithRemovedRow = Object.fromEntries(Object.entries(newData).filter(function (_ref6) {
168
+ var _ref7 = _slicedToArray(_ref6, 1),
169
+ key = _ref7[0];
127
170
  return parseInt(key) !== parseInt(_getRowId(rowData.original, rowData.index));
128
171
  }));
129
172
  return _objectSpread2(_objectSpread2({}, newState), {}, {
@@ -140,27 +183,27 @@ var stateReducer = function stateReducer(newState, action) {
140
183
  }
141
184
  case COLUMN_RESIZE_START:
142
185
  {
143
- var _ref7 = action.payload || {},
144
- headerId = _ref7.headerId;
186
+ var _ref8 = action.payload || {},
187
+ headerId = _ref8.headerId;
145
188
  return _objectSpread2(_objectSpread2({}, newState), {}, {
146
189
  isResizing: headerId
147
190
  });
148
191
  }
149
192
  case COLUMN_RESIZING:
150
193
  {
151
- var _ref8 = action.payload || {},
152
- _headerId = _ref8.headerId,
153
- newWidth = _ref8.newWidth,
154
- defaultWidth = _ref8.defaultWidth;
194
+ var _ref9 = action.payload || {},
195
+ _headerId = _ref9.headerId,
196
+ newWidth = _ref9.newWidth,
197
+ defaultWidth = _ref9.defaultWidth;
155
198
  var newColumnWidth = {};
156
199
  if (typeof _headerId === 'undefined') {
157
200
  return _objectSpread2({}, newState);
158
201
  }
159
202
  newColumnWidth[_headerId] = newWidth;
160
- var cleanedWidths = Object.fromEntries(Object.entries(newState.columnResizing.columnWidths).filter(function (_ref9) {
161
- var _ref10 = _slicedToArray(_ref9, 2);
162
- _ref10[0];
163
- var value = _ref10[1];
203
+ var cleanedWidths = Object.fromEntries(Object.entries(newState.columnResizing.columnWidths).filter(function (_ref10) {
204
+ var _ref11 = _slicedToArray(_ref10, 2);
205
+ _ref11[0];
206
+ var value = _ref11[1];
164
207
  return !isNaN(value);
165
208
  }));
166
209
  var headerIdArray = newState.columnResizing.headerIdWidths || [];
@@ -175,10 +218,10 @@ var stateReducer = function stateReducer(newState, action) {
175
218
  }
176
219
  case COLUMN_RESIZE_END:
177
220
  {
178
- var _ref11 = action.payload || {},
179
- onColResizeEnd = _ref11.onColResizeEnd,
180
- _headerId2 = _ref11.headerId,
181
- isKeyEvent = _ref11.isKeyEvent;
221
+ var _ref12 = action.payload || {},
222
+ onColResizeEnd = _ref12.onColResizeEnd,
223
+ _headerId2 = _ref12.headerId,
224
+ isKeyEvent = _ref12.isKeyEvent;
182
225
  var currentColumn = {};
183
226
  currentColumn[_headerId2] = newState.columnResizing.columnWidths[_headerId2];
184
227
  var allChangedColumns = newState.columnResizing.columnWidths;
@@ -204,4 +247,4 @@ var stateReducer = function stateReducer(newState, action) {
204
247
  }
205
248
  };
206
249
 
207
- export { handleColumnResizeEndEvent, handleColumnResizingEvent, handleSelectAllRowData, handleToggleRowSelected, stateReducer };
250
+ export { handleColumnResizeEndEvent, handleColumnResizingEvent, handleDynamicRowCheck, handleSelectAllRowData, handleToggleRowSelected, stateReducer };
@@ -120,6 +120,7 @@ export interface DatagridRow<T extends object = any> extends Omit<Row<T>, 'cells
120
120
  cells: Array<DataGridCell>;
121
121
  isSkeleton?: boolean;
122
122
  hasExpanded?: boolean;
123
+ skeletonKey?: string;
123
124
  }
124
125
  export interface DataGridHeader<T extends object = any> extends ColumnInstance, UseResizeColumnsColumnProps<T>, UseSortByColumnProps<T> {
125
126
  className(className: any, arg1: {
@@ -245,6 +246,7 @@ export interface DataGridState<T extends object = any> extends TableCommonProps,
245
246
  expandedContentHeight?: number;
246
247
  onRowExpand?: (row: DatagridRow, event: React.MouseEvent<HTMLElement>) => void;
247
248
  ExpandedRowContentComponent?: JSXElementConstructor<any>;
249
+ getAsyncSubRows?: (row: DatagridRow) => void;
248
250
  }
249
251
  export interface DataGridData {
250
252
  instance?: DataGridTableInstance;
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { defineProperty as _defineProperty, slicedToArray as _slicedToArray, typeof as _typeof, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import { useMemo } from 'react';
10
- import { DATE, NUMBER, CHECKBOX, BATCH, MULTISELECT } from './Datagrid/addons/Filtering/constants.js';
10
+ import { MULTISELECT, DATE, NUMBER, CHECKBOX, BATCH } from './Datagrid/addons/Filtering/constants.js';
11
11
  import FilterFlyout from './Datagrid/addons/Filtering/FilterFlyout.js';
12
12
 
13
13
  var handleMultiFilter = function handleMultiFilter(rows, id, value) {