@carbon/ibm-products 2.61.0 → 2.62.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 (547) hide show
  1. package/css/index-full-carbon.css +170 -22
  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 +170 -22
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +170 -22
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +170 -22
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/_virtual/_rollupPluginBabelHelpers.js +4 -4
  18. package/es/components/APIKeyModal/APIKeyDownloader.js +2 -2
  19. package/es/components/APIKeyModal/APIKeyModal.js +16 -16
  20. package/es/components/AboutModal/AboutModal.js +1 -1
  21. package/es/components/ActionBar/ActionBar.js +5 -5
  22. package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
  23. package/es/components/ActionSet/ActionSet.js +5 -5
  24. package/es/components/AddSelect/AddSelect.js +5 -4
  25. package/es/components/AddSelect/AddSelectBody.js +12 -11
  26. package/es/components/AddSelect/AddSelectColumn.js +1 -1
  27. package/es/components/AddSelect/AddSelectFilter.js +1 -1
  28. package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
  29. package/es/components/AddSelect/AddSelectRow.js +21 -13
  30. package/es/components/AddSelect/AddSelectSidebar.js +14 -4
  31. package/es/components/AddSelect/AddSelectSort.js +5 -5
  32. package/es/components/AddSelect/add-select-utils.js +3 -3
  33. package/es/components/AddSelect/types/index.d.ts +1 -0
  34. package/es/components/BigNumbers/BigNumbers.js +11 -11
  35. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
  36. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
  37. package/es/components/Card/Card.js +14 -14
  38. package/es/components/Card/CardFooter.js +4 -4
  39. package/es/components/Card/CardHeader.js +2 -2
  40. package/es/components/Carousel/Carousel.js +16 -16
  41. package/es/components/Cascade/Cascade.js +2 -2
  42. package/es/components/Checklist/Checklist.js +11 -11
  43. package/es/components/Checklist/ChecklistChart.js +1 -1
  44. package/es/components/Checklist/ChecklistIcon.js +1 -1
  45. package/es/components/Coachmark/Coachmark.js +10 -10
  46. package/es/components/Coachmark/CoachmarkDragbar.js +5 -5
  47. package/es/components/Coachmark/CoachmarkHeader.js +4 -4
  48. package/es/components/Coachmark/CoachmarkOverlay.js +4 -4
  49. package/es/components/Coachmark/CoachmarkTagline.js +3 -3
  50. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
  51. package/es/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
  52. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
  53. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
  54. package/es/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
  55. package/es/components/CoachmarkStack/CoachmarkStack.js +12 -22
  56. package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
  57. package/es/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
  58. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
  59. package/es/components/ConditionBuilder/ConditionBuilder.js +2 -2
  60. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
  61. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
  62. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
  63. package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
  64. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
  65. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
  66. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
  67. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
  68. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
  69. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
  70. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
  71. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
  72. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
  73. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
  74. package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
  75. package/es/components/ConditionBuilder/utils/useTranslations.js +2 -2
  76. package/es/components/ConditionBuilder/utils/util.js +13 -13
  77. package/es/components/CreateFullPage/CreateFullPage.js +3 -3
  78. package/es/components/CreateFullPage/CreateFullPageStep.js +9 -9
  79. package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
  80. package/es/components/CreateModal/CreateModal.js +1 -1
  81. package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
  82. package/es/components/CreateTearsheet/CreateTearsheet.js +4 -4
  83. package/es/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
  84. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
  85. package/es/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
  86. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
  87. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
  88. package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
  89. package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
  90. package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
  91. package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
  92. package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
  93. package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
  94. package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
  95. package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
  96. package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
  97. package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
  98. package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
  99. package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
  100. package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
  101. package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
  102. package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
  103. package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
  104. package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
  105. package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
  106. package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
  107. package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
  108. package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
  109. package/es/components/Datagrid/Datagrid/Datagrid.js +2 -2
  110. package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -1
  111. package/es/components/Datagrid/Datagrid/DatagridContent.js +14 -14
  112. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
  113. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
  114. package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
  115. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
  116. package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
  117. package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -19
  118. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
  119. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
  120. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
  121. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
  122. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
  123. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
  124. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
  125. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
  126. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
  127. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  128. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
  129. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
  130. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
  131. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
  132. package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
  133. package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -5
  134. package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
  135. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
  136. package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
  137. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
  138. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
  139. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
  140. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
  141. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
  142. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
  143. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
  144. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
  145. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
  146. package/es/components/Datagrid/useActionsColumn.js +2 -2
  147. package/es/components/Datagrid/useColumnRightAlign.js +3 -3
  148. package/es/components/Datagrid/useCustomizeColumns.js +1 -1
  149. package/es/components/Datagrid/useDatagrid.js +2 -2
  150. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
  151. package/es/components/Datagrid/useDisableSelectRows.js +16 -16
  152. package/es/components/Datagrid/useExpandedRow.js +1 -1
  153. package/es/components/Datagrid/useFiltering.js +1 -1
  154. package/es/components/Datagrid/useFloatingScroll.js +2 -2
  155. package/es/components/Datagrid/useFocusRowExpander.js +4 -4
  156. package/es/components/Datagrid/useInfiniteScroll.js +1 -1
  157. package/es/components/Datagrid/useInitialColumnSort.js +1 -1
  158. package/es/components/Datagrid/useInlineEdit.js +4 -4
  159. package/es/components/Datagrid/useNestedRowExpander.js +6 -6
  160. package/es/components/Datagrid/useNestedRows.js +6 -6
  161. package/es/components/Datagrid/useOnRowClick.js +1 -1
  162. package/es/components/Datagrid/useRowExpander.js +4 -4
  163. package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
  164. package/es/components/Datagrid/useRowRenderer.js +6 -6
  165. package/es/components/Datagrid/useSelectAllToggle.js +2 -2
  166. package/es/components/Datagrid/useSelectRows.js +5 -5
  167. package/es/components/Datagrid/useSortableColumns.js +11 -11
  168. package/es/components/Datagrid/useStickyColumn.js +8 -8
  169. package/es/components/DecoratorBase/DecoratorBase.js +8 -8
  170. package/es/components/DecoratorBase/DecoratorIcon.js +2 -2
  171. package/es/components/DelimitedList/DelimitedList.js +3 -3
  172. package/es/components/DescriptionList/DescriptionList.js +2 -2
  173. package/es/components/EditInPlace/EditInPlace.js +6 -6
  174. package/es/components/EditSidePanel/EditSidePanel.js +3 -3
  175. package/es/components/EditTearsheet/EditTearsheet.js +3 -3
  176. package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
  177. package/es/components/EmptyStates/EmptyState.js +5 -5
  178. package/es/components/EmptyStates/EmptyStateContent.js +2 -2
  179. package/es/components/EmptyStates/EmptyStateV2.js +2 -2
  180. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
  181. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
  182. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
  183. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
  184. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
  185. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
  186. package/es/components/ExportModal/ExportModal.js +7 -7
  187. package/es/components/FeatureFlags/index.js +1 -1
  188. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
  189. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
  190. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
  191. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
  192. package/es/components/FilterSummary/FilterSummary.js +18 -34
  193. package/es/components/FullPageError/FullPageError.js +1 -1
  194. package/es/components/Guidebanner/Guidebanner.js +8 -8
  195. package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
  196. package/es/components/ImportModal/ImportModal.js +2 -2
  197. package/es/components/InlineTip/InlineTip.d.ts +0 -14
  198. package/es/components/InlineTip/InlineTip.js +13 -35
  199. package/es/components/InlineTip/utils.js +1 -1
  200. package/es/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
  201. package/es/components/InterstitialScreen/InterstitialScreen.js +22 -56
  202. package/es/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
  203. package/es/components/MultiAddSelect/MultiAddSelect.js +2 -1
  204. package/es/components/Nav/Nav.js +3 -3
  205. package/es/components/Nav/NavItem.js +8 -9
  206. package/es/components/Nav/NavList.js +14 -15
  207. package/es/components/NonLinearReading/NonLinearReading.js +1 -1
  208. package/es/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
  209. package/es/components/NotificationsPanel/NotificationsPanel.js +89 -71
  210. package/es/components/OptionsTile/OptionsTile.js +4 -3
  211. package/es/components/PageHeader/PageHeader.js +19 -19
  212. package/es/components/PageHeader/PageHeaderTitle.js +1 -1
  213. package/es/components/PageHeader/PageHeaderUtils.js +1 -1
  214. package/es/components/ProductiveCard/ProductiveCard.js +1 -1
  215. package/es/components/RemoveModal/RemoveModal.js +2 -2
  216. package/es/components/Saving/Saving.js +4 -4
  217. package/es/components/ScrollGradient/ScrollGradient.js +6 -6
  218. package/es/components/SearchBar/SearchBar.js +6 -6
  219. package/es/components/SidePanel/SidePanel.js +45 -45
  220. package/es/components/SimpleHeader/SimpleHeader.js +4 -4
  221. package/es/components/StatusIcon/StatusIcon.js +1 -1
  222. package/es/components/StatusIndicator/StatusIndicator.js +2 -2
  223. package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
  224. package/es/components/StringFormatter/StringFormatter.js +4 -4
  225. package/es/components/TagOverflow/TagOverflow.js +7 -7
  226. package/es/components/TagOverflow/TagOverflowModal.js +4 -4
  227. package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
  228. package/es/components/TagSet/TagSet.js +15 -15
  229. package/es/components/TagSet/TagSetModal.js +6 -6
  230. package/es/components/TagSet/TagSetOverflow.js +3 -3
  231. package/es/components/Tearsheet/Tearsheet.js +2 -2
  232. package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
  233. package/es/components/Tearsheet/TearsheetShell.js +6 -6
  234. package/es/components/Toolbar/Toolbar.js +6 -6
  235. package/es/components/Toolbar/ToolbarButton.js +4 -4
  236. package/es/components/TruncatedList/TruncatedList.js +8 -8
  237. package/es/components/UserAvatar/UserAvatar.js +4 -4
  238. package/es/components/UserProfileImage/UserProfileImage.js +2 -2
  239. package/es/components/WebTerminal/WebTerminal.js +8 -8
  240. package/es/global/js/hooks/useControllableState.js +1 -1
  241. package/es/global/js/hooks/useCreateComponentFocus.js +1 -1
  242. package/es/global/js/hooks/useCreateComponentStepChange.js +10 -10
  243. package/es/global/js/hooks/useFocus.js +19 -19
  244. package/es/global/js/hooks/useOverflowItems/index.d.ts +7 -0
  245. package/es/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
  246. package/es/global/js/hooks/useOverflowString.js +6 -6
  247. package/es/global/js/hooks/usePresence.d.ts +23 -0
  248. package/es/global/js/hooks/usePresence.js +26 -6
  249. package/es/global/js/hooks/useResetCreateComponent.js +1 -1
  250. package/es/global/js/hooks/useResizeObserver.js +5 -5
  251. package/es/global/js/hooks/useRetrieveStepData.js +1 -1
  252. package/es/global/js/package-settings.js +4 -4
  253. package/es/global/js/utils/Wrap.js +2 -2
  254. package/es/global/js/utils/checkForOverflow.js +1 -1
  255. package/es/global/js/utils/debounce.d.ts +1 -1
  256. package/es/global/js/utils/debounce.js +2 -2
  257. package/es/global/js/utils/getSupportedLocale.d.ts +2 -0
  258. package/es/global/js/utils/getSupportedLocale.js +2 -0
  259. package/es/global/js/utils/lastIndexInArray.js +1 -1
  260. package/es/global/js/utils/props-helper.js +1 -1
  261. package/es/node_modules/@carbon/icon-helpers/es/index.js +2 -2
  262. package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
  263. package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +894 -863
  264. package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
  265. package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  266. package/es/settings.js +2 -2
  267. package/lib/_virtual/_rollupPluginBabelHelpers.js +4 -4
  268. package/lib/components/APIKeyModal/APIKeyDownloader.js +2 -2
  269. package/lib/components/APIKeyModal/APIKeyModal.js +16 -16
  270. package/lib/components/AboutModal/AboutModal.js +1 -1
  271. package/lib/components/ActionBar/ActionBar.js +5 -5
  272. package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
  273. package/lib/components/ActionSet/ActionSet.js +5 -5
  274. package/lib/components/AddSelect/AddSelect.js +5 -4
  275. package/lib/components/AddSelect/AddSelectBody.js +12 -11
  276. package/lib/components/AddSelect/AddSelectColumn.js +1 -1
  277. package/lib/components/AddSelect/AddSelectFilter.js +1 -1
  278. package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
  279. package/lib/components/AddSelect/AddSelectRow.js +20 -12
  280. package/lib/components/AddSelect/AddSelectSidebar.js +14 -4
  281. package/lib/components/AddSelect/AddSelectSort.js +5 -5
  282. package/lib/components/AddSelect/add-select-utils.js +3 -3
  283. package/lib/components/AddSelect/types/index.d.ts +1 -0
  284. package/lib/components/BigNumbers/BigNumbers.js +10 -10
  285. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
  286. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
  287. package/lib/components/Card/Card.js +14 -14
  288. package/lib/components/Card/CardFooter.js +4 -4
  289. package/lib/components/Card/CardHeader.js +2 -2
  290. package/lib/components/Carousel/Carousel.js +16 -16
  291. package/lib/components/Cascade/Cascade.js +2 -2
  292. package/lib/components/Checklist/Checklist.js +11 -11
  293. package/lib/components/Checklist/ChecklistChart.js +1 -1
  294. package/lib/components/Checklist/ChecklistIcon.js +1 -1
  295. package/lib/components/Coachmark/Coachmark.js +10 -10
  296. package/lib/components/Coachmark/CoachmarkDragbar.js +5 -5
  297. package/lib/components/Coachmark/CoachmarkHeader.js +4 -4
  298. package/lib/components/Coachmark/CoachmarkOverlay.js +4 -4
  299. package/lib/components/Coachmark/CoachmarkTagline.js +3 -3
  300. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
  301. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
  302. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
  303. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
  304. package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
  305. package/lib/components/CoachmarkStack/CoachmarkStack.js +12 -22
  306. package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
  307. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
  308. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
  309. package/lib/components/ConditionBuilder/ConditionBuilder.js +2 -2
  310. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
  311. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
  312. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
  313. package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
  314. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
  315. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
  316. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
  317. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
  318. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
  319. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
  320. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
  321. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
  322. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
  323. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
  324. package/lib/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
  325. package/lib/components/ConditionBuilder/utils/useTranslations.js +2 -2
  326. package/lib/components/ConditionBuilder/utils/util.js +13 -13
  327. package/lib/components/CreateFullPage/CreateFullPage.js +3 -3
  328. package/lib/components/CreateFullPage/CreateFullPageStep.js +9 -9
  329. package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
  330. package/lib/components/CreateModal/CreateModal.js +1 -1
  331. package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
  332. package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
  333. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
  334. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
  335. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
  336. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
  337. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
  338. package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
  339. package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
  340. package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
  341. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
  342. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
  343. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
  344. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
  345. package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
  346. package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
  347. package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
  348. package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
  349. package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
  350. package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
  351. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
  352. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
  353. package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
  354. package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
  355. package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
  356. package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
  357. package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
  358. package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
  359. package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -2
  360. package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -1
  361. package/lib/components/Datagrid/Datagrid/DatagridContent.js +14 -14
  362. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
  363. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
  364. package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
  365. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
  366. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
  367. package/lib/components/Datagrid/Datagrid/DatagridRow.js +19 -19
  368. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
  369. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
  370. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
  371. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
  372. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
  373. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
  374. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
  375. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
  376. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
  377. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  378. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
  379. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
  380. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
  381. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
  382. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
  383. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -6
  384. package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
  385. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
  386. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
  387. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
  388. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
  389. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
  390. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
  391. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
  392. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
  393. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
  394. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
  395. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
  396. package/lib/components/Datagrid/useActionsColumn.js +2 -2
  397. package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
  398. package/lib/components/Datagrid/useCustomizeColumns.js +1 -1
  399. package/lib/components/Datagrid/useDatagrid.js +2 -2
  400. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -1
  401. package/lib/components/Datagrid/useDisableSelectRows.js +16 -16
  402. package/lib/components/Datagrid/useExpandedRow.js +1 -1
  403. package/lib/components/Datagrid/useFiltering.js +1 -1
  404. package/lib/components/Datagrid/useFloatingScroll.js +2 -2
  405. package/lib/components/Datagrid/useFocusRowExpander.js +4 -4
  406. package/lib/components/Datagrid/useInfiniteScroll.js +1 -1
  407. package/lib/components/Datagrid/useInitialColumnSort.js +1 -1
  408. package/lib/components/Datagrid/useInlineEdit.js +4 -4
  409. package/lib/components/Datagrid/useNestedRowExpander.js +6 -6
  410. package/lib/components/Datagrid/useNestedRows.js +6 -6
  411. package/lib/components/Datagrid/useOnRowClick.js +1 -1
  412. package/lib/components/Datagrid/useRowExpander.js +4 -4
  413. package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
  414. package/lib/components/Datagrid/useRowRenderer.js +6 -6
  415. package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
  416. package/lib/components/Datagrid/useSelectRows.js +5 -5
  417. package/lib/components/Datagrid/useSortableColumns.js +11 -11
  418. package/lib/components/Datagrid/useStickyColumn.js +8 -8
  419. package/lib/components/DecoratorBase/DecoratorBase.js +8 -8
  420. package/lib/components/DecoratorBase/DecoratorIcon.js +2 -2
  421. package/lib/components/DelimitedList/DelimitedList.js +3 -3
  422. package/lib/components/DescriptionList/DescriptionList.js +2 -2
  423. package/lib/components/EditInPlace/EditInPlace.js +6 -6
  424. package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
  425. package/lib/components/EditTearsheet/EditTearsheet.js +3 -3
  426. package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
  427. package/lib/components/EmptyStates/EmptyState.js +5 -5
  428. package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
  429. package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
  430. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
  431. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
  432. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
  433. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
  434. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
  435. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
  436. package/lib/components/ExportModal/ExportModal.js +7 -7
  437. package/lib/components/FeatureFlags/index.js +1 -1
  438. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
  439. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
  440. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
  441. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
  442. package/lib/components/FilterSummary/FilterSummary.js +18 -34
  443. package/lib/components/FullPageError/FullPageError.js +1 -1
  444. package/lib/components/Guidebanner/Guidebanner.js +8 -8
  445. package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
  446. package/lib/components/ImportModal/ImportModal.js +2 -2
  447. package/lib/components/InlineTip/InlineTip.d.ts +0 -14
  448. package/lib/components/InlineTip/InlineTip.js +13 -35
  449. package/lib/components/InlineTip/utils.js +1 -1
  450. package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
  451. package/lib/components/InterstitialScreen/InterstitialScreen.js +22 -56
  452. package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
  453. package/lib/components/MultiAddSelect/MultiAddSelect.js +2 -1
  454. package/lib/components/Nav/Nav.js +3 -3
  455. package/lib/components/Nav/NavItem.js +12 -13
  456. package/lib/components/Nav/NavList.js +18 -19
  457. package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
  458. package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
  459. package/lib/components/NotificationsPanel/NotificationsPanel.js +89 -71
  460. package/lib/components/OptionsTile/OptionsTile.js +4 -3
  461. package/lib/components/PageHeader/PageHeader.js +19 -19
  462. package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
  463. package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
  464. package/lib/components/ProductiveCard/ProductiveCard.js +1 -1
  465. package/lib/components/RemoveModal/RemoveModal.js +2 -2
  466. package/lib/components/Saving/Saving.js +4 -4
  467. package/lib/components/ScrollGradient/ScrollGradient.js +6 -6
  468. package/lib/components/SearchBar/SearchBar.js +6 -6
  469. package/lib/components/SidePanel/SidePanel.js +45 -45
  470. package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
  471. package/lib/components/StatusIcon/StatusIcon.js +1 -1
  472. package/lib/components/StatusIndicator/StatusIndicator.js +2 -2
  473. package/lib/components/StatusIndicator/StatusIndicatorStep.js +1 -1
  474. package/lib/components/StringFormatter/StringFormatter.js +4 -4
  475. package/lib/components/TagOverflow/TagOverflow.js +7 -7
  476. package/lib/components/TagOverflow/TagOverflowModal.js +4 -4
  477. package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
  478. package/lib/components/TagSet/TagSet.js +15 -15
  479. package/lib/components/TagSet/TagSetModal.js +6 -6
  480. package/lib/components/TagSet/TagSetOverflow.js +3 -3
  481. package/lib/components/Tearsheet/Tearsheet.js +2 -2
  482. package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
  483. package/lib/components/Tearsheet/TearsheetShell.js +6 -6
  484. package/lib/components/Toolbar/Toolbar.js +6 -6
  485. package/lib/components/Toolbar/ToolbarButton.js +4 -4
  486. package/lib/components/TruncatedList/TruncatedList.js +8 -8
  487. package/lib/components/UserAvatar/UserAvatar.js +4 -4
  488. package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
  489. package/lib/components/WebTerminal/WebTerminal.js +8 -8
  490. package/lib/global/js/hooks/useControllableState.js +1 -1
  491. package/lib/global/js/hooks/useCreateComponentFocus.js +1 -1
  492. package/lib/global/js/hooks/useCreateComponentStepChange.js +10 -10
  493. package/lib/global/js/hooks/useFocus.js +19 -19
  494. package/lib/global/js/hooks/useOverflowItems/index.d.ts +7 -0
  495. package/lib/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
  496. package/lib/global/js/hooks/useOverflowString.js +6 -6
  497. package/lib/global/js/hooks/usePresence.d.ts +23 -0
  498. package/lib/global/js/hooks/usePresence.js +26 -6
  499. package/lib/global/js/hooks/useResetCreateComponent.js +1 -1
  500. package/lib/global/js/hooks/useResizeObserver.js +5 -5
  501. package/lib/global/js/hooks/useRetrieveStepData.js +1 -1
  502. package/lib/global/js/package-settings.js +4 -4
  503. package/lib/global/js/utils/Wrap.js +2 -2
  504. package/lib/global/js/utils/checkForOverflow.js +1 -1
  505. package/lib/global/js/utils/debounce.d.ts +1 -1
  506. package/lib/global/js/utils/debounce.js +2 -2
  507. package/lib/global/js/utils/getSupportedLocale.d.ts +2 -0
  508. package/lib/global/js/utils/getSupportedLocale.js +2 -0
  509. package/lib/global/js/utils/lastIndexInArray.js +1 -1
  510. package/lib/global/js/utils/props-helper.js +1 -1
  511. package/lib/node_modules/@carbon/icon-helpers/es/index.js +2 -2
  512. package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
  513. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +902 -871
  514. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
  515. package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  516. package/lib/settings.js +2 -2
  517. package/package.json +19 -19
  518. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +100 -22
  519. package/scss/components/Datagrid/styles/addons/_animations.scss +56 -0
  520. package/scss/components/FilterSummary/_animations.scss +20 -0
  521. package/scss/components/FilterSummary/_filter-summary.scss +11 -0
  522. package/scss/components/FullPageError/_full-page-error.scss +4 -0
  523. package/scss/components/GetStartedCard/_get-started-card.scss +2 -2
  524. package/scss/components/NotificationsPanel/_notifications-panel.scss +35 -7
  525. package/scss/components/SidePanel/_side-panel.scss +4 -2
  526. package/scss/components/Tearsheet/_tearsheet.scss +6 -12
  527. package/telemetry.yml +9 -17
  528. package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
  529. package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -80
  530. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
  531. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -146
  532. package/es/components/SteppedAnimatedMedia/index.d.ts +0 -8
  533. package/es/global/js/utils/getBezierValues.d.ts +0 -1
  534. package/es/global/js/utils/getBezierValues.js +0 -28
  535. package/es/global/js/utils/motionConstants.d.ts +0 -23
  536. package/es/global/js/utils/motionConstants.js +0 -39
  537. package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
  538. package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -84
  539. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
  540. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -148
  541. package/lib/components/SteppedAnimatedMedia/index.d.ts +0 -8
  542. package/lib/global/js/utils/getBezierValues.d.ts +0 -1
  543. package/lib/global/js/utils/getBezierValues.js +0 -30
  544. package/lib/global/js/utils/motionConstants.d.ts +0 -23
  545. package/lib/global/js/utils/motionConstants.js +0 -42
  546. /package/es/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
  547. /package/lib/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
@@ -42,15 +42,15 @@ var ConditionConnector = function ConditionConnector(_ref) {
42
42
  }
43
43
  }, []);
44
44
  var activeConnectorHandler = function activeConnectorHandler(evt) {
45
- var parentGroup = evt === null || evt === undefined ? undefined : evt.currentTarget.closest('.eachGroup');
45
+ var parentGroup = evt === null || evt === void 0 ? void 0 : evt.currentTarget.closest('.eachGroup');
46
46
  handleConnectorHover(parentGroup, true);
47
47
  };
48
48
  var inActiveConnectorHandler = function inActiveConnectorHandler(evt) {
49
- var parentGroup = evt === null || evt === undefined ? undefined : evt.currentTarget.closest('.eachGroup');
49
+ var parentGroup = evt === null || evt === void 0 ? void 0 : evt.currentTarget.closest('.eachGroup');
50
50
  handleConnectorHover(parentGroup, false);
51
51
  };
52
52
  var onChangeHandler = function onChangeHandler(op, evt) {
53
- onChange === null || onChange === undefined || onChange(op);
53
+ onChange === null || onChange === void 0 || onChange(op);
54
54
  util.focusThisField(evt, conditionBuilderRef);
55
55
  };
56
56
  return variant == util.HIERARCHICAL_VARIANT ? /*#__PURE__*/React.createElement("span", {
@@ -37,7 +37,7 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
37
37
  setRootState = _useContext.setRootState,
38
38
  variant = _useContext.variant,
39
39
  actionState = _useContext.actionState;
40
- var initialConditionState = React.useRef(initialState !== null && initialState !== undefined && initialState.state ? JSON.parse(JSON.stringify(initialState === null || initialState === undefined ? undefined : initialState.state)) : null);
40
+ var initialConditionState = React.useRef(initialState !== null && initialState !== void 0 && initialState.state ? JSON.parse(JSON.stringify(initialState === null || initialState === void 0 ? void 0 : initialState.state)) : null);
41
41
  var _useState = React.useState(false),
42
42
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
43
43
  isConditionBuilderActive = _useState2[0],
@@ -59,24 +59,24 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
59
59
  };
60
60
  React.useEffect(function () {
61
61
  var _rootState$groups;
62
- if (rootState !== null && rootState !== undefined && (_rootState$groups = rootState.groups) !== null && _rootState$groups !== undefined && _rootState$groups.length) {
62
+ if (rootState !== null && rootState !== void 0 && (_rootState$groups = rootState.groups) !== null && _rootState$groups !== void 0 && _rootState$groups.length) {
63
63
  setIsConditionBuilderActive(true);
64
64
  } else {
65
65
  setIsConditionBuilderActive(false);
66
66
  }
67
67
  if (getConditionState) {
68
- getConditionState(rootState !== null && rootState !== undefined ? rootState : {});
68
+ getConditionState(rootState !== null && rootState !== void 0 ? rootState : {});
69
69
  }
70
70
 
71
71
  // eslint-disable-next-line react-hooks/exhaustive-deps
72
72
  }, [rootState]);
73
73
  React.useEffect(function () {
74
- getActionsState === null || getActionsState === undefined || getActionsState(actionState !== null && actionState !== undefined ? actionState : []);
74
+ getActionsState === null || getActionsState === void 0 || getActionsState(actionState !== null && actionState !== void 0 ? actionState : []);
75
75
  // eslint-disable-next-line react-hooks/exhaustive-deps
76
76
  }, [actionState]);
77
77
  React.useEffect(function () {
78
- if (initialState !== null && initialState !== undefined && initialState.enabledDefault) {
79
- setRootState === null || setRootState === undefined || setRootState(initialState.state);
78
+ if (initialState !== null && initialState !== void 0 && initialState.enabledDefault) {
79
+ setRootState === null || setRootState === void 0 || setRootState(initialState.state);
80
80
  }
81
81
  // eslint-disable-next-line react-hooks/exhaustive-deps
82
82
  }, [initialState]);
@@ -84,25 +84,25 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
84
84
  var _initialConditionStat;
85
85
  //when add condition button is clicked.
86
86
  setIsConditionBuilderActive(true);
87
- if (initialConditionState !== null && initialConditionState !== undefined && (_initialConditionStat = initialConditionState.current) !== null && _initialConditionStat !== undefined && (_initialConditionStat = _initialConditionStat.groups) !== null && _initialConditionStat !== undefined && _initialConditionStat.length) {
88
- setRootState === null || setRootState === undefined || setRootState(initialConditionState.current);
87
+ if (initialConditionState !== null && initialConditionState !== void 0 && (_initialConditionStat = initialConditionState.current) !== null && _initialConditionStat !== void 0 && (_initialConditionStat = _initialConditionStat.groups) !== null && _initialConditionStat !== void 0 && _initialConditionStat.length) {
88
+ setRootState === null || setRootState === void 0 || setRootState(initialConditionState.current);
89
89
  initialConditionState.current = null;
90
90
  } else {
91
- setRootState === null || setRootState === undefined || setRootState(ConditionBuilderProvider.emptyState); //here we can set an empty skeleton object for an empty condition builder,
91
+ setRootState === null || setRootState === void 0 || setRootState(ConditionBuilderProvider.emptyState); //here we can set an empty skeleton object for an empty condition builder,
92
92
  }
93
93
 
94
94
  //or we can even pre-populate some existing builder and continue editing
95
95
  };
96
96
  var _onRemove = React.useCallback(function (groupId) {
97
97
  var _rootState$groups2;
98
- var groups = rootState === null || rootState === undefined || (_rootState$groups2 = rootState.groups) === null || _rootState$groups2 === undefined ? undefined : _rootState$groups2.filter(function (group) {
99
- return groupId !== (group === null || group === undefined ? undefined : group.id);
98
+ var groups = rootState === null || rootState === void 0 || (_rootState$groups2 = rootState.groups) === null || _rootState$groups2 === void 0 ? void 0 : _rootState$groups2.filter(function (group) {
99
+ return groupId !== (group === null || group === void 0 ? void 0 : group.id);
100
100
  });
101
- setRootState === null || setRootState === undefined || setRootState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rootState), {}, {
101
+ setRootState === null || setRootState === void 0 || setRootState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rootState), {}, {
102
102
  groups: rootState ? groups : []
103
103
  }));
104
104
  //set the initial state to empty.
105
- if ((groups === null || groups === undefined ? undefined : groups.length) === 0) {
105
+ if ((groups === null || groups === void 0 ? void 0 : groups.length) === 0) {
106
106
  initialConditionState.current = null;
107
107
  }
108
108
  }, [setRootState, rootState]);
@@ -113,7 +113,7 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
113
113
  */
114
114
  if (rootState && rootState.groups) {
115
115
  var groups = [].concat(_rollupPluginBabelHelpers.toConsumableArray(rootState.groups ? rootState.groups.slice(0, groupIndex) : []), [updatedGroup], _rollupPluginBabelHelpers.toConsumableArray(rootState.groups ? rootState.groups.slice(groupIndex + 1) : []));
116
- setRootState === null || setRootState === undefined || setRootState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rootState), {}, {
116
+ setRootState === null || setRootState === void 0 || setRootState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rootState), {}, {
117
117
  groups: groups
118
118
  }));
119
119
  }
@@ -131,13 +131,13 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
131
131
  id: uuidv4.default()
132
132
  }]
133
133
  };
134
- setRootState === null || setRootState === undefined || setRootState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rootState), {}, {
134
+ setRootState === null || setRootState === void 0 || setRootState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rootState), {}, {
135
135
  groups: rootState && rootState.groups ? [].concat(_rollupPluginBabelHelpers.toConsumableArray(rootState.groups), [newGroup]) : [newGroup]
136
136
  }));
137
137
  };
138
138
  var getColorIndex = function getColorIndex() {
139
139
  var _rootState$groups$len, _rootState$groups3;
140
- var groupLength = (_rootState$groups$len = rootState === null || rootState === undefined || (_rootState$groups3 = rootState.groups) === null || _rootState$groups3 === undefined ? undefined : _rootState$groups3.length) !== null && _rootState$groups$len !== undefined ? _rootState$groups$len : 0;
140
+ var groupLength = (_rootState$groups$len = rootState === null || rootState === void 0 || (_rootState$groups3 = rootState.groups) === null || _rootState$groups3 === void 0 ? void 0 : _rootState$groups3.length) !== null && _rootState$groups$len !== void 0 ? _rootState$groups$len : 0;
141
141
  return groupLength % 5;
142
142
  };
143
143
  if (!isConditionBuilderActive) {
@@ -161,7 +161,7 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
161
161
  level: 4
162
162
  }, /*#__PURE__*/React.createElement(react.Heading, null, conditionHeadingText)), /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
163
163
  className: "".concat(util.blockClass, "__content-container")
164
- }, wrapperRole), rootState && (rootState === null || rootState === undefined || (_rootState$groups4 = rootState.groups) === null || _rootState$groups4 === undefined ? undefined : _rootState$groups4.map(function (eachGroup, groupIndex) {
164
+ }, wrapperRole), rootState && (rootState === null || rootState === void 0 || (_rootState$groups4 = rootState.groups) === null || _rootState$groups4 === void 0 ? void 0 : _rootState$groups4.map(function (eachGroup, groupIndex) {
165
165
  var _ref2;
166
166
  return /*#__PURE__*/React.createElement("div", {
167
167
  key: eachGroup.id,
@@ -171,7 +171,7 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
171
171
  aria: {
172
172
  level: 1,
173
173
  posinset: groupIndex * 2 + 1,
174
- setsize: (_ref2 = rootState.groups && rootState.groups.length * 2) !== null && _ref2 !== undefined ? _ref2 : 0
174
+ setsize: (_ref2 = rootState.groups && rootState.groups.length * 2) !== null && _ref2 !== void 0 ? _ref2 : 0
175
175
  },
176
176
  group: eachGroup,
177
177
  onRemove: function onRemove() {
@@ -204,7 +204,7 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
204
204
  previewType: "newGroup",
205
205
  colorIndex: getColorIndex(),
206
206
  group: {
207
- groupOperator: rootState === null || rootState === undefined ? undefined : rootState.operator,
207
+ groupOperator: rootState === null || rootState === void 0 ? void 0 : rootState.operator,
208
208
  id: uuidv4.default()
209
209
  }
210
210
  })), actions && /*#__PURE__*/React.createElement(ConditionBuilderActions.default, {
@@ -50,7 +50,7 @@ var ConditionBuilderItem = function ConditionBuilderItem(_ref) {
50
50
  unlessAny: translationObject.translationsObject.unlessText
51
51
  };
52
52
  //Appending statements from custom statement configuration if present
53
- statementConfigCustom === null || statementConfigCustom === undefined || statementConfigCustom.forEach(function (statement) {
53
+ statementConfigCustom === null || statementConfigCustom === void 0 || statementConfigCustom.forEach(function (statement) {
54
54
  statementIdMap[statement.id] = statement.label;
55
55
  });
56
56
  var _useTranslations = useTranslations.useTranslations(['invalidText', 'addConditionText', 'addPropertyText', 'addOperatorText', 'addValueText', label], statementIdMap),
@@ -110,7 +110,7 @@ var ConditionBuilderItem = function ConditionBuilderItem(_ref) {
110
110
  //this will focus the first input field in the popover
111
111
  if (open && popoverRef.current) {
112
112
  var _popoverRef$current;
113
- var firstFocusableElement = popoverRef === null || popoverRef === undefined || (_popoverRef$current = popoverRef.current) === null || _popoverRef$current === undefined ? undefined : _popoverRef$current.querySelector('input,textarea');
113
+ var firstFocusableElement = popoverRef === null || popoverRef === void 0 || (_popoverRef$current = popoverRef.current) === null || _popoverRef$current === void 0 ? void 0 : _popoverRef$current.querySelector('input,textarea');
114
114
  if (firstFocusableElement) {
115
115
  setTimeout(function () {
116
116
  return firstFocusableElement.focus();
@@ -120,8 +120,8 @@ var ConditionBuilderItem = function ConditionBuilderItem(_ref) {
120
120
  }, [popoverRef, open]);
121
121
  var manageInvalidSelection = function manageInvalidSelection() {
122
122
  //when the user didn't select any value , we need to show as incomplete
123
- if (rest['data-name'] === 'propertyField' && !(condition !== null && condition !== undefined && condition.property) || rest['data-name'] === 'operatorField' && !(condition !== null && condition !== undefined && condition.operator) || rest['data-name'] === 'valueField' && !(condition !== null && condition !== undefined && condition.value)) {
124
- onChange === null || onChange === undefined || onChange('INVALID');
123
+ if (rest['data-name'] === 'propertyField' && !(condition !== null && condition !== void 0 && condition.property) || rest['data-name'] === 'operatorField' && !(condition !== null && condition !== void 0 && condition.operator) || rest['data-name'] === 'valueField' && !(condition !== null && condition !== void 0 && condition.value)) {
124
+ onChange === null || onChange === void 0 || onChange('INVALID');
125
125
  }
126
126
  };
127
127
  var closePopover = function closePopover() {
@@ -147,15 +147,15 @@ var ConditionBuilderItem = function ConditionBuilderItem(_ref) {
147
147
  var getCustomOperatorLabel = function getCustomOperatorLabel(propertyLabel) {
148
148
  var _config$operators;
149
149
  return propertyLabel && (// @ts-ignore
150
- config === null || config === undefined || (_config$operators = config.operators) === null || _config$operators === undefined ? undefined : _config$operators.find(function (operator) {
150
+ config === null || config === void 0 || (_config$operators = config.operators) === null || _config$operators === void 0 ? void 0 : _config$operators.find(function (operator) {
151
151
  return operator.id === propertyLabel;
152
152
  }));
153
153
  };
154
154
  var getLabel = function getLabel() {
155
155
  // @ts-ignore
156
- if (config !== null && config !== undefined && config.operators && rest['data-name'] === 'operatorField') {
156
+ if (config !== null && config !== void 0 && config.operators && rest['data-name'] === 'operatorField') {
157
157
  var _getCustomOperatorLab, _getCustomOperatorLab2;
158
- return (_getCustomOperatorLab = (_getCustomOperatorLab2 = getCustomOperatorLabel(propertyLabel)) === null || _getCustomOperatorLab2 === undefined ? undefined : _getCustomOperatorLab2.label) !== null && _getCustomOperatorLab !== undefined ? _getCustomOperatorLab : propertyLabel;
158
+ return (_getCustomOperatorLab = (_getCustomOperatorLab2 = getCustomOperatorLabel(propertyLabel)) === null || _getCustomOperatorLab2 === void 0 ? void 0 : _getCustomOperatorLab2.label) !== null && _getCustomOperatorLab !== void 0 ? _getCustomOperatorLab : propertyLabel;
159
159
  } else if (propertyLabel) {
160
160
  return propertyLabel;
161
161
  } else if (rest['data-name'] === 'propertyField') {
@@ -38,7 +38,7 @@ var ConditionBuilderItemDate = function ConditionBuilderItemDate(_ref) {
38
38
  datePickerType: "single",
39
39
  value: conditionState.value,
40
40
  onClose: onCloseHandler,
41
- appendTo: parentRef === null || parentRef === undefined ? undefined : parentRef.current
41
+ appendTo: parentRef === null || parentRef === void 0 ? void 0 : parentRef.current
42
42
  }, /*#__PURE__*/React.createElement(react.DatePickerInput, {
43
43
  id: "datePicker",
44
44
  placeholder: "dd/mm/yyyy",
@@ -49,7 +49,7 @@ var ConditionBuilderItemDate = function ConditionBuilderItemDate(_ref) {
49
49
  datePickerType: datePickerType,
50
50
  onClose: onCloseHandler,
51
51
  value: conditionState.value,
52
- appendTo: parentRef === null || parentRef === undefined ? undefined : parentRef.current
52
+ appendTo: parentRef === null || parentRef === void 0 ? void 0 : parentRef.current
53
53
  }, /*#__PURE__*/React.createElement(react.DatePickerInput, {
54
54
  id: "datePickerStart",
55
55
  placeholder: "dd/mm/yyyy",
@@ -26,7 +26,7 @@ var ConditionBuilderItemNumber = function ConditionBuilderItemNumber(_ref) {
26
26
  var value = _ref2.value;
27
27
  if (value !== '' && !isNaN(value) && checkIfValid(value)) {
28
28
  var _config$unit;
29
- onChange("".concat(value, " ").concat((_config$unit = config.unit) !== null && _config$unit !== undefined ? _config$unit : ''));
29
+ onChange("".concat(value, " ").concat((_config$unit = config.unit) !== null && _config$unit !== void 0 ? _config$unit : ''));
30
30
  } else {
31
31
  onChange('INVALID');
32
32
  }
@@ -45,14 +45,14 @@ var ConditionBuilderItemNumber = function ConditionBuilderItemNumber(_ref) {
45
45
  };
46
46
  var getDefaultValue = function getDefaultValue() {
47
47
  var _split$, _conditionState$value;
48
- return (_split$ = (_conditionState$value = conditionState.value) === null || _conditionState$value === undefined || (_conditionState$value = _conditionState$value.split(' ')) === null || _conditionState$value === undefined ? undefined : _conditionState$value[0]) !== null && _split$ !== undefined ? _split$ : '';
48
+ return (_split$ = (_conditionState$value = conditionState.value) === null || _conditionState$value === void 0 || (_conditionState$value = _conditionState$value.split(' ')) === null || _conditionState$value === void 0 ? void 0 : _conditionState$value[0]) !== null && _split$ !== void 0 ? _split$ : '';
49
49
  };
50
50
  return /*#__PURE__*/React.createElement("div", {
51
51
  className: "".concat(util.blockClass, "__item-number")
52
52
  }, /*#__PURE__*/React.createElement(react.NumberInput, _rollupPluginBabelHelpers.extends({}, config, {
53
53
  label: conditionState.property,
54
54
  hideLabel: true,
55
- id: (_conditionState$prope = conditionState.property) === null || _conditionState$prope === undefined ? undefined : _conditionState$prope.replace(/\s/g, ''),
55
+ id: (_conditionState$prope = conditionState.property) === null || _conditionState$prope === void 0 ? void 0 : _conditionState$prope.replace(/\s/g, ''),
56
56
  invalidText: invalidNumberWarnText,
57
57
  allowEmpty: true,
58
58
  onChange: onChangeHandler,
@@ -18,9 +18,9 @@ var util = require('../../utils/util.js');
18
18
 
19
19
  var ItemOption = function ItemOption(_ref) {
20
20
  var _ref$conditionState = _ref.conditionState,
21
- conditionState = _ref$conditionState === undefined ? {} : _ref$conditionState,
21
+ conditionState = _ref$conditionState === void 0 ? {} : _ref$conditionState,
22
22
  _ref$config = _ref.config,
23
- config = _ref$config === undefined ? {} : _ref$config,
23
+ config = _ref$config === void 0 ? {} : _ref$config,
24
24
  onChange = _ref.onChange;
25
25
  var _useContext = React.useContext(ConditionBuilderProvider.ConditionBuilderContext),
26
26
  popOverSearchThreshold = _useContext.popOverSearchThreshold;
@@ -37,16 +37,16 @@ var ItemOption = function ItemOption(_ref) {
37
37
  searchValue = _useState2[0],
38
38
  setSearchValue = _useState2[1];
39
39
  var selection = conditionState.value;
40
- var filteredItems = searchValue ? allOptions === null || allOptions === undefined ? undefined : allOptions.filter(function (opt) {
40
+ var filteredItems = searchValue ? allOptions === null || allOptions === void 0 ? void 0 : allOptions.filter(function (opt) {
41
41
  var _opt$label;
42
- return (_opt$label = opt.label) === null || _opt$label === undefined ? undefined : _opt$label.toLowerCase().includes(searchValue.toLowerCase());
42
+ return (_opt$label = opt.label) === null || _opt$label === void 0 ? void 0 : _opt$label.toLowerCase().includes(searchValue.toLowerCase());
43
43
  }) : allOptions;
44
44
  React.useEffect(function () {
45
45
  //this will focus the first input field in the popover
46
46
 
47
47
  if (contentRef.current) {
48
48
  var _contentRef$current;
49
- var firstFocusableElement = (_contentRef$current = contentRef.current) === null || _contentRef$current === undefined ? undefined : _contentRef$current.querySelector('input, button,li');
49
+ var firstFocusableElement = (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.querySelector('input, button,li');
50
50
  if (firstFocusableElement) {
51
51
  firstFocusableElement.focus();
52
52
  }
@@ -86,7 +86,7 @@ var ItemOption = function ItemOption(_ref) {
86
86
  })), /*#__PURE__*/React.createElement("ul", {
87
87
  "aria-label": getAriaLabel(),
88
88
  role: "listbox"
89
- }, filteredItems === null || filteredItems === undefined ? undefined : filteredItems.map(function (option) {
89
+ }, filteredItems === null || filteredItems === void 0 ? void 0 : filteredItems.map(function (option) {
90
90
  var isSelected = selection === option.id;
91
91
  var Icon = option.icon;
92
92
  return /*#__PURE__*/React.createElement("li", {
@@ -19,9 +19,9 @@ var util = require('../../utils/util.js');
19
19
  var _SelectSkeleton, _CheckboxCheckedFille, _Checkbox;
20
20
  var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
21
21
  var _ref$conditionState = _ref.conditionState,
22
- conditionState = _ref$conditionState === undefined ? {} : _ref$conditionState,
22
+ conditionState = _ref$conditionState === void 0 ? {} : _ref$conditionState,
23
23
  _ref$config = _ref.config,
24
- config = _ref$config === undefined ? {} : _ref$config,
24
+ config = _ref$config === void 0 ? {} : _ref$config,
25
25
  onChange = _ref.onChange;
26
26
  var multiSelectable = util.checkForMultiSelectOperator(conditionState, config);
27
27
  var _useContext = React.useContext(ConditionBuilderProvider.ConditionBuilderContext),
@@ -43,7 +43,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
43
43
  _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
44
44
  searchValue = _useState4[0],
45
45
  setSearchValue = _useState4[1];
46
- var filteredItems = allOptions === null || allOptions === undefined ? undefined : allOptions.filter(function (opt) {
46
+ var filteredItems = allOptions === null || allOptions === void 0 ? void 0 : allOptions.filter(function (opt) {
47
47
  return opt.label.toLowerCase().includes(searchValue.toLowerCase());
48
48
  });
49
49
  var selection = Array.isArray(conditionState.value) ? conditionState.value : conditionState.value !== undefined ? [conditionState.value] : [];
@@ -79,7 +79,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
79
79
  return getOptions(rootState, conditionState);
80
80
  case 2:
81
81
  response = _context.sent;
82
- if ((response === null || response === undefined ? undefined : response.length) > 0 && Object.keys(response[0]).includes('label') && Object.keys(response[0]).includes('id')) {
82
+ if ((response === null || response === void 0 ? void 0 : response.length) > 0 && Object.keys(response[0]).includes('label') && Object.keys(response[0]).includes('id')) {
83
83
  setAllOptions(response);
84
84
  }
85
85
  case 4:
@@ -102,7 +102,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
102
102
  if (contentRef.current) {
103
103
  var firstFocusableElement = contentRef.current.querySelector('input, button,li');
104
104
  if (firstFocusableElement) {
105
- firstFocusableElement === null || firstFocusableElement === undefined || firstFocusableElement.focus();
105
+ firstFocusableElement === null || firstFocusableElement === void 0 || firstFocusableElement.focus();
106
106
  }
107
107
  }
108
108
  }, [allOptions]);
@@ -169,7 +169,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
169
169
  "aria-label": getAriaLabel(),
170
170
  role: "listbox",
171
171
  "data-multi-select": multiSelectable
172
- }, filteredItems === null || filteredItems === undefined ? undefined : filteredItems.map(function (option) {
172
+ }, filteredItems === null || filteredItems === void 0 ? void 0 : filteredItems.map(function (option) {
173
173
  var isSelected = selection.map(function (option) {
174
174
  return option.id;
175
175
  }).includes(option.id);
@@ -22,7 +22,7 @@ var ConditionBuilderItemText = function ConditionBuilderItemText(_ref) {
22
22
  var inputProps = _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, config), {}, {
23
23
  hideLabel: true,
24
24
  value: util.checkIsValid(conditionState.value) ? conditionState.value : '',
25
- id: (_conditionState$prope = conditionState.property) === null || _conditionState$prope === undefined ? undefined : _conditionState$prope.replace(/\s/g, ''),
25
+ id: (_conditionState$prope = conditionState.property) === null || _conditionState$prope === void 0 ? void 0 : _conditionState$prope.replace(/\s/g, ''),
26
26
  onChange: function onChange(evt) {
27
27
  _onChange(evt.target.value);
28
28
  },
@@ -26,12 +26,12 @@ var ConditionBuilderItemTime = function ConditionBuilderItemTime(_ref) {
26
26
  _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
27
27
  dayZoneValue = _useState4[0],
28
28
  setDayZoneValue = _useState4[1];
29
- var _useState5 = React.useState(config === null || config === undefined || (_config$timeZones = config.timeZones) === null || _config$timeZones === undefined ? undefined : _config$timeZones[0]),
29
+ var _useState5 = React.useState(config === null || config === void 0 || (_config$timeZones = config.timeZones) === null || _config$timeZones === void 0 ? void 0 : _config$timeZones[0]),
30
30
  _useState6 = _rollupPluginBabelHelpers.slicedToArray(_useState5, 2),
31
31
  timeZoneValue = _useState6[0],
32
32
  setTimeZoneValue = _useState6[1];
33
33
  React.useEffect(function () {
34
- var timeToUpdate = "".concat(timeValue !== null && timeValue !== undefined ? timeValue : '', " ").concat(dayZoneValue !== null && dayZoneValue !== undefined ? dayZoneValue : '', " ").concat(timeZoneValue !== null && timeZoneValue !== undefined ? timeZoneValue : '');
34
+ var timeToUpdate = "".concat(timeValue !== null && timeValue !== void 0 ? timeValue : '', " ").concat(dayZoneValue !== null && dayZoneValue !== void 0 ? dayZoneValue : '', " ").concat(timeZoneValue !== null && timeZoneValue !== void 0 ? timeZoneValue : '');
35
35
  onChange(timeValue ? timeToUpdate : undefined);
36
36
  // eslint-disable-next-line react-hooks/exhaustive-deps
37
37
  }, [timeValue, dayZoneValue, timeZoneValue]);
@@ -62,7 +62,7 @@ var ConditionBuilderItemTime = function ConditionBuilderItemTime(_ref) {
62
62
  }))), /*#__PURE__*/React.createElement(react.TimePickerSelect, {
63
63
  id: "time-picker-time-zone",
64
64
  onChange: setTimeZone
65
- }, config === null || config === undefined || (_config$timeZones2 = config.timeZones) === null || _config$timeZones2 === undefined ? undefined : _config$timeZones2.map(function (timeZone, index) {
65
+ }, config === null || config === void 0 || (_config$timeZones2 = config.timeZones) === null || _config$timeZones2 === void 0 ? void 0 : _config$timeZones2.map(function (timeZone, index) {
66
66
  return /*#__PURE__*/React.createElement(react.SelectItem, {
67
67
  key: index,
68
68
  value: timeZone,
@@ -71,7 +71,7 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
71
71
  //we will shift the group one level up. The subgroups will open up as conditions.
72
72
 
73
73
  //spreading out the condition inside the subgroup
74
- var allConditions = group === null || group === undefined || (_group$conditions = group.conditions) === null || _group$conditions === undefined ? undefined : _group$conditions.reduce(function (acc, condition) {
74
+ var allConditions = group === null || group === void 0 || (_group$conditions = group.conditions) === null || _group$conditions === void 0 ? void 0 : _group$conditions.reduce(function (acc, condition) {
75
75
  var _condition = condition;
76
76
  if (_condition.conditions) {
77
77
  //this is a subgroup
@@ -79,7 +79,7 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
79
79
  }
80
80
  return acc;
81
81
  }, []);
82
- onChange === null || onChange === undefined || onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, group), {}, {
82
+ onChange === null || onChange === void 0 || onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, group), {}, {
83
83
  conditions: allConditions
84
84
  }));
85
85
  } else {
@@ -89,16 +89,16 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
89
89
  //This is to handle a edge case.
90
90
  //When a group has structure as 1 condition,1 subgroup, 1 condition and if we delete first condition,
91
91
  //the group will start with a subgroup. To avoid this,opening up that subgroup.
92
- if ((filteredConditions === null || filteredConditions === undefined ? undefined : filteredConditions[0]).conditions) {
92
+ if ((filteredConditions === null || filteredConditions === void 0 ? void 0 : filteredConditions[0]).conditions) {
93
93
  var firstFilteredConditions = filteredConditions[0];
94
- filteredConditions.splice.apply(filteredConditions, [0, 1].concat(_rollupPluginBabelHelpers.toConsumableArray(firstFilteredConditions === null || firstFilteredConditions === undefined ? undefined : firstFilteredConditions.conditions)));
94
+ filteredConditions.splice.apply(filteredConditions, [0, 1].concat(_rollupPluginBabelHelpers.toConsumableArray(firstFilteredConditions === null || firstFilteredConditions === void 0 ? void 0 : firstFilteredConditions.conditions)));
95
95
  }
96
- onChange === null || onChange === undefined || onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, group), {}, {
96
+ onChange === null || onChange === void 0 || onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, group), {}, {
97
97
  conditions: filteredConditions
98
98
  }));
99
99
  }
100
100
  } else {
101
- onRemove === null || onRemove === undefined || onRemove(evt);
101
+ onRemove === null || onRemove === void 0 || onRemove(evt);
102
102
  }
103
103
  };
104
104
  //check to identify a group without a plain condition
@@ -109,10 +109,10 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
109
109
  };
110
110
  var onChangeHandler = function onChangeHandler(updatedCondition, conditionIndex) {
111
111
  var _group$id;
112
- var updatedConditions = [].concat(_rollupPluginBabelHelpers.toConsumableArray(group !== null && group !== undefined && group.conditions ? group.conditions.slice(0, conditionIndex) : []), [updatedCondition], _rollupPluginBabelHelpers.toConsumableArray(group !== null && group !== undefined && group.conditions ? group.conditions.slice(conditionIndex + 1) : []));
113
- onChange === null || onChange === undefined || onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, group), {}, {
112
+ var updatedConditions = [].concat(_rollupPluginBabelHelpers.toConsumableArray(group !== null && group !== void 0 && group.conditions ? group.conditions.slice(0, conditionIndex) : []), [updatedCondition], _rollupPluginBabelHelpers.toConsumableArray(group !== null && group !== void 0 && group.conditions ? group.conditions.slice(conditionIndex + 1) : []));
113
+ onChange === null || onChange === void 0 || onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, group), {}, {
114
114
  conditions: updatedConditions,
115
- id: (_group$id = group === null || group === undefined ? undefined : group.id) !== null && _group$id !== undefined ? _group$id : uuidv4.default()
115
+ id: (_group$id = group === null || group === void 0 ? void 0 : group.id) !== null && _group$id !== void 0 ? _group$id : uuidv4.default()
116
116
  }));
117
117
  };
118
118
  var addConditionHandler = function addConditionHandler(conditionIndex) {
@@ -123,7 +123,7 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
123
123
  popoverToOpen: 'propertyField',
124
124
  id: uuidv4.default()
125
125
  };
126
- onChange === null || onChange === undefined || onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, group), {}, {
126
+ onChange === null || onChange === void 0 || onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, group), {}, {
127
127
  conditions: [].concat(_rollupPluginBabelHelpers.toConsumableArray(group.conditions ? group.conditions.slice(0, conditionIndex + 1) : []), [newCondition], _rollupPluginBabelHelpers.toConsumableArray(group.conditions ? group.conditions.slice(conditionIndex + 1) : []))
128
128
  }));
129
129
  };
@@ -132,7 +132,7 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
132
132
  //get all close buttons.
133
133
  //if the last condition is closing, focus the second last one.
134
134
  //or focus the next one.
135
- var currentGroupCloseButtons = (_e$currentTarget$clos = e.currentTarget.closest(".".concat(util.blockClass, "__group"))) === null || _e$currentTarget$clos === undefined ? undefined : _e$currentTarget$clos.querySelectorAll('[data-name="closeCondition"]');
135
+ var currentGroupCloseButtons = (_e$currentTarget$clos = e.currentTarget.closest(".".concat(util.blockClass, "__group"))) === null || _e$currentTarget$clos === void 0 ? void 0 : _e$currentTarget$clos.querySelectorAll('[data-name="closeCondition"]');
136
136
  if (conditionIndex == currentGroupCloseButtons.length - 1) {
137
137
  util.manageTabIndexAndFocus(currentGroupCloseButtons[conditionIndex - 1], conditionBuilderRef);
138
138
  } else {
@@ -142,25 +142,25 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
142
142
  var handleFocusOnCloseHierarchical = function handleFocusOnCloseHierarchical(evt) {
143
143
  var _evt$currentTarget, _evt$currentTarget2, _conditionBuilderCont, _conditionBuilderCont2;
144
144
  //getting the current aria-level and aria-posinset.
145
- var currentLevel = (_evt$currentTarget = evt.currentTarget) === null || _evt$currentTarget === undefined || (_evt$currentTarget = _evt$currentTarget.closest('[role="row"]')) === null || _evt$currentTarget === undefined ? undefined : _evt$currentTarget.getAttribute('aria-level');
146
- var currentPos = (_evt$currentTarget2 = evt.currentTarget) === null || _evt$currentTarget2 === undefined || (_evt$currentTarget2 = _evt$currentTarget2.closest('[role="row"]')) === null || _evt$currentTarget2 === undefined ? undefined : _evt$currentTarget2.getAttribute('aria-posinset');
145
+ var currentLevel = (_evt$currentTarget = evt.currentTarget) === null || _evt$currentTarget === void 0 || (_evt$currentTarget = _evt$currentTarget.closest('[role="row"]')) === null || _evt$currentTarget === void 0 ? void 0 : _evt$currentTarget.getAttribute('aria-level');
146
+ var currentPos = (_evt$currentTarget2 = evt.currentTarget) === null || _evt$currentTarget2 === void 0 || (_evt$currentTarget2 = _evt$currentTarget2.closest('[role="row"]')) === null || _evt$currentTarget2 === void 0 ? void 0 : _evt$currentTarget2.getAttribute('aria-posinset');
147
147
 
148
148
  //finding the next and previous items in same level
149
- var nextElement = (_conditionBuilderCont = conditionBuilderContentRef.current) === null || _conditionBuilderCont === undefined ? undefined : _conditionBuilderCont.querySelector("[aria-level=\"".concat(currentLevel, "\"][aria-posinset=\"").concat(Number(currentPos) + 1, "\"]"));
150
- var prevElement = (_conditionBuilderCont2 = conditionBuilderContentRef.current) === null || _conditionBuilderCont2 === undefined ? undefined : _conditionBuilderCont2.querySelector("[aria-level=\"".concat(currentLevel, "\"][aria-posinset=\"").concat(Number(currentPos) - 1, "\"]"));
149
+ var nextElement = (_conditionBuilderCont = conditionBuilderContentRef.current) === null || _conditionBuilderCont === void 0 ? void 0 : _conditionBuilderCont.querySelector("[aria-level=\"".concat(currentLevel, "\"][aria-posinset=\"").concat(Number(currentPos) + 1, "\"]"));
150
+ var prevElement = (_conditionBuilderCont2 = conditionBuilderContentRef.current) === null || _conditionBuilderCont2 === void 0 ? void 0 : _conditionBuilderCont2.querySelector("[aria-level=\"".concat(currentLevel, "\"][aria-posinset=\"").concat(Number(currentPos) - 1, "\"]"));
151
151
  //checking if next level is a valid condition. If then, focus the close button inside that condition
152
152
  //Otherwise , check the previous item is a valid condition
153
153
 
154
- if (nextElement !== null && nextElement !== undefined && nextElement.classList.contains("".concat(util.blockClass, "__condition-block"))) {
155
- util.manageTabIndexAndFocus(nextElement === null || nextElement === undefined ? undefined : nextElement.querySelector('[data-name="closeCondition"]'), conditionBuilderRef);
156
- } else if (prevElement !== null && prevElement !== undefined && prevElement.classList.contains("".concat(util.blockClass, "__condition-block"))) {
157
- util.manageTabIndexAndFocus(prevElement === null || prevElement === undefined ? undefined : prevElement.querySelector('[data-name="closeCondition"]'), conditionBuilderRef);
154
+ if (nextElement !== null && nextElement !== void 0 && nextElement.classList.contains("".concat(util.blockClass, "__condition-block"))) {
155
+ util.manageTabIndexAndFocus(nextElement === null || nextElement === void 0 ? void 0 : nextElement.querySelector('[data-name="closeCondition"]'), conditionBuilderRef);
156
+ } else if (prevElement !== null && prevElement !== void 0 && prevElement.classList.contains("".concat(util.blockClass, "__condition-block"))) {
157
+ util.manageTabIndexAndFocus(prevElement === null || prevElement === void 0 ? void 0 : prevElement.querySelector('[data-name="closeCondition"]'), conditionBuilderRef);
158
158
  }
159
159
  //If there are no valid condition in this group, focus next or previous row
160
160
  else {
161
161
  var _conditionBuilderCont3, _conditionBuilderCont4;
162
- var prevRows = (_conditionBuilderCont3 = conditionBuilderContentRef.current) === null || _conditionBuilderCont3 === undefined ? undefined : _conditionBuilderCont3.querySelectorAll("[aria-level=\"".concat(Number(currentLevel) - 1, "\"][role=\"row\"]"));
163
- var nextRow = (_conditionBuilderCont4 = conditionBuilderContentRef.current) === null || _conditionBuilderCont4 === undefined ? undefined : _conditionBuilderCont4.querySelector("[aria-level=\"".concat(Number(currentLevel) + 1, "\"][role=\"row\"]"));
162
+ var prevRows = (_conditionBuilderCont3 = conditionBuilderContentRef.current) === null || _conditionBuilderCont3 === void 0 ? void 0 : _conditionBuilderCont3.querySelectorAll("[aria-level=\"".concat(Number(currentLevel) - 1, "\"][role=\"row\"]"));
163
+ var nextRow = (_conditionBuilderCont4 = conditionBuilderContentRef.current) === null || _conditionBuilderCont4 === void 0 ? void 0 : _conditionBuilderCont4.querySelector("[aria-level=\"".concat(Number(currentLevel) + 1, "\"][role=\"row\"]"));
164
164
  if (nextRow) {
165
165
  //since there are no condition in current group, this group will move one level up
166
166
 
@@ -170,12 +170,12 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
170
170
  };
171
171
  setTimeout(function () {
172
172
  var _conditionBuilderCont5;
173
- var currentRowToFocus = (_conditionBuilderCont5 = conditionBuilderContentRef.current) === null || _conditionBuilderCont5 === undefined ? undefined : _conditionBuilderCont5.querySelector("[role=\"row\"][aria-level=\"".concat(rowIdentity.ariaLevel, "\"][aria-posinset=\"").concat(rowIdentity.ariaPosInSet, "\"]"));
174
- util.manageTabIndexAndFocus(currentRowToFocus === null || currentRowToFocus === undefined ? undefined : currentRowToFocus.querySelector('[data-name="closeCondition"]'), conditionBuilderRef);
173
+ var currentRowToFocus = (_conditionBuilderCont5 = conditionBuilderContentRef.current) === null || _conditionBuilderCont5 === void 0 ? void 0 : _conditionBuilderCont5.querySelector("[role=\"row\"][aria-level=\"".concat(rowIdentity.ariaLevel, "\"][aria-posinset=\"").concat(rowIdentity.ariaPosInSet, "\"]"));
174
+ util.manageTabIndexAndFocus(currentRowToFocus === null || currentRowToFocus === void 0 ? void 0 : currentRowToFocus.querySelector('[data-name="closeCondition"]'), conditionBuilderRef);
175
175
  }, 0);
176
- } else if (prevRows !== null && prevRows !== undefined && prevRows.length && prevRows.length > 1) {
176
+ } else if (prevRows !== null && prevRows !== void 0 && prevRows.length && prevRows.length > 1) {
177
177
  var _prevRows;
178
- util.manageTabIndexAndFocus((_prevRows = prevRows[prevRows.length - 2]) === null || _prevRows === undefined ? undefined : _prevRows.querySelector('[data-name="closeCondition"]'), conditionBuilderRef);
178
+ util.manageTabIndexAndFocus((_prevRows = prevRows[prevRows.length - 2]) === null || _prevRows === void 0 ? void 0 : _prevRows.querySelector('[data-name="closeCondition"]'), conditionBuilderRef);
179
179
  }
180
180
  }
181
181
  };
@@ -214,7 +214,7 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
214
214
  var _statementConfig$find;
215
215
  var groupOperator = (_statementConfig$find = statementConfig.find(function (statement) {
216
216
  return statement.id == updatedStatement;
217
- })) === null || _statementConfig$find === undefined ? undefined : _statementConfig$find.connector;
217
+ })) === null || _statementConfig$find === void 0 ? void 0 : _statementConfig$find.connector;
218
218
  onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, group), {}, {
219
219
  groupOperator: groupOperator,
220
220
  statement: updatedStatement
@@ -233,7 +233,7 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
233
233
  className: "".concat(util.blockClass, "__condition-wrapper"),
234
234
  role: "grid",
235
235
  "aria-label": conditionBuilderText
236
- }, group === null || group === undefined || (_group$conditions2 = group.conditions) === null || _group$conditions2 === undefined ? undefined : _group$conditions2.map(function (eachCondition, conditionIndex) {
236
+ }, group === null || group === void 0 || (_group$conditions2 = group.conditions) === null || _group$conditions2 === void 0 ? void 0 : _group$conditions2.map(function (eachCondition, conditionIndex) {
237
237
  var _group$conditions3;
238
238
  return /*#__PURE__*/React.createElement("div", {
239
239
  key: eachCondition.id,
@@ -243,7 +243,7 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
243
243
  aria: {
244
244
  level: aria.level + 1,
245
245
  posinset: conditionIndex + 1,
246
- setsize: group === null || group === undefined || (_group$conditions3 = group.conditions) === null || _group$conditions3 === undefined ? undefined : _group$conditions3.length
246
+ setsize: group === null || group === void 0 || (_group$conditions3 = group.conditions) === null || _group$conditions3 === void 0 ? void 0 : _group$conditions3.length
247
247
  },
248
248
  isStatement: conditionIndex == 0,
249
249
  condition: eachCondition,
@@ -294,7 +294,7 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
294
294
  options: statementConfig,
295
295
  isStatement: true
296
296
  }
297
- }))), group === null || group === undefined || (_group$conditions4 = group.conditions) === null || _group$conditions4 === undefined ? undefined : _group$conditions4.map(function (eachCondition, conditionIndex) {
297
+ }))), group === null || group === void 0 || (_group$conditions4 = group.conditions) === null || _group$conditions4 === void 0 ? void 0 : _group$conditions4.map(function (eachCondition, conditionIndex) {
298
298
  var _group$conditions$len, _group$conditions5, _group$conditions$len2, _group$conditions6;
299
299
  return /*#__PURE__*/React.createElement(React.Fragment, {
300
300
  key: eachCondition.id
@@ -308,7 +308,7 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
308
308
  aria: {
309
309
  level: aria.level + 1,
310
310
  posinset: conditionIndex + 1,
311
- setsize: (_group$conditions$len = (_group$conditions5 = group.conditions) === null || _group$conditions5 === undefined ? undefined : _group$conditions5.length) !== null && _group$conditions$len !== undefined ? _group$conditions$len : 0
311
+ setsize: (_group$conditions$len = (_group$conditions5 = group.conditions) === null || _group$conditions5 === void 0 ? void 0 : _group$conditions5.length) !== null && _group$conditions$len !== void 0 ? _group$conditions$len : 0
312
312
  },
313
313
  className: "".concat(util.blockClass, "__group"),
314
314
  group: eachCondition,
@@ -323,7 +323,7 @@ var _ConditionGroupBuilder = function ConditionGroupBuilder(_ref) {
323
323
  aria: {
324
324
  level: aria.level + 1,
325
325
  posinset: conditionIndex + 1,
326
- setsize: (_group$conditions$len2 = (_group$conditions6 = group.conditions) === null || _group$conditions6 === undefined ? undefined : _group$conditions6.length) !== null && _group$conditions$len2 !== undefined ? _group$conditions$len2 : 0
326
+ setsize: (_group$conditions$len2 = (_group$conditions6 = group.conditions) === null || _group$conditions6 === void 0 ? void 0 : _group$conditions6.length) !== null && _group$conditions$len2 !== void 0 ? _group$conditions$len2 : 0
327
327
  },
328
328
  isStatement: false,
329
329
  condition: eachCondition,