@carbon/ibm-products 2.43.2-canary.1 → 2.43.2-canary.100
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +428 -143
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +218 -9
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +248 -105
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +349 -129
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/ActionBar/ActionBarItem.js +1 -1
- package/es/components/Coachmark/Coachmark.d.ts +6 -1
- package/es/components/Coachmark/Coachmark.js +47 -11
- package/es/components/Coachmark/CoachmarkOverlay.js +2 -4
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +13 -11
- package/es/components/CoachmarkStack/CoachmarkStack.js +7 -3
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +8 -4
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +76 -55
- package/es/components/ConditionBuilder/ConditionBuilder.js +82 -25
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +154 -0
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +3 -1
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +29 -13
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +8 -1
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +30 -8
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +14 -9
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +19 -11
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -13
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +75 -62
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +13 -7
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +31 -8
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +8 -2
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +35 -24
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +40 -36
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +40 -36
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +6 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +98 -40
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +24 -9
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +27 -9
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +114 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +71 -38
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +5 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +22 -9
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +1 -1
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +121 -40
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -1
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +45 -19
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +137 -40
- package/es/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
- package/es/components/ConditionBuilder/utils/useTranslations.js +26 -0
- package/es/components/ConditionBuilder/utils/util.d.ts +6 -4
- package/es/components/ConditionBuilder/utils/util.js +42 -17
- package/es/components/CreateFullPage/CreateFullPage.js +2 -2
- package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +26 -0
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +140 -54
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +25 -1
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +50 -9
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +16 -0
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +32 -8
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +4 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.d.ts +3 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +15 -3
- package/es/components/DataSpreadsheet/types/index.d.ts +2 -1
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +34 -2
- package/es/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
- package/es/components/Datagrid/Datagrid/Datagrid.js +4 -9
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -8
- package/es/components/Datagrid/Datagrid/DatagridRow.js +21 -8
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +3 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +7 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +54 -17
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +75 -12
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
- package/es/components/Datagrid/types/index.d.ts +61 -9
- package/es/components/Datagrid/useActionsColumn.d.ts +8 -1
- package/es/components/Datagrid/useActionsColumn.js +7 -6
- package/es/components/Datagrid/useColumnCenterAlign.d.ts +8 -1
- package/es/components/Datagrid/useColumnCenterAlign.js +1 -1
- package/es/components/Datagrid/useColumnRightAlign.d.ts +8 -1
- package/es/components/Datagrid/useColumnRightAlign.js +4 -3
- package/es/components/Datagrid/useCustomizeColumns.d.ts +8 -1
- package/es/components/Datagrid/useCustomizeColumns.js +4 -3
- package/es/components/Datagrid/useDefaultStringRenderer.js +0 -1
- package/es/components/Datagrid/useDisableSelectRows.d.ts +2 -1
- package/es/components/Datagrid/useDisableSelectRows.js +27 -22
- package/es/components/Datagrid/useInlineEdit.d.ts +8 -1
- package/es/components/Datagrid/useInlineEdit.js +13 -3
- package/es/components/Datagrid/useNestedRowExpander.js +1 -3
- package/es/components/Datagrid/useNestedRows.js +32 -13
- package/es/components/Datagrid/useRowExpander.js +1 -3
- package/es/components/Datagrid/useSelectRows.js +2 -1
- package/es/components/Datagrid/useStickyColumn.d.ts +8 -1
- package/es/components/Datagrid/useStickyColumn.js +12 -9
- package/es/components/Decorator/Decorator.js +2 -1
- package/es/components/DecoratorBase/DecoratorBase.js +3 -5
- package/es/components/DecoratorDualButton/DecoratorDualButton.js +2 -1
- package/es/components/DecoratorLink/DecoratorLink.js +2 -1
- package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +2 -1
- package/es/components/EditInPlace/EditInPlace.d.ts +4 -0
- package/es/components/EditInPlace/EditInPlace.js +21 -10
- package/es/components/EditTearsheet/EditTearsheet.d.ts +7 -2
- package/es/components/EditTearsheet/EditTearsheet.js +44 -10
- package/es/components/EditTearsheet/EditTearsheetForm.d.ts +45 -2
- package/es/components/EditTearsheet/EditTearsheetForm.js +3 -0
- package/es/components/EmptyStates/EmptyStateV2.d.ts +63 -2
- package/es/components/EmptyStates/EmptyStateV2.js +2 -1
- package/es/components/FullPageError/FullPageError.d.ts +36 -2
- package/es/components/FullPageError/FullPageError.js +0 -3
- package/es/components/GetStartedCard/GetStartedCard.d.ts +61 -2
- package/es/components/GetStartedCard/GetStartedCard.js +9 -8
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.js +204 -200
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.js +116 -112
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.js +110 -106
- package/es/components/Nav/NavItem.js +12 -3
- package/es/components/OptionsTile/OptionsTile.js +11 -6
- package/es/components/PageHeader/PageHeader.js +1 -0
- package/es/components/RemoveModal/RemoveModal.d.ts +4 -0
- package/es/components/RemoveModal/RemoveModal.js +7 -1
- package/es/components/SearchBar/SearchBar.d.ts +1 -1
- package/es/components/SearchBar/SearchBar.js +2 -2
- package/es/components/SidePanel/SidePanel.js +17 -21
- package/es/components/SidePanel/motion/variants.d.ts +4 -6
- package/es/components/SidePanel/motion/variants.js +10 -11
- package/es/components/StatusIndicator/StatusIndicatorStep.js +87 -0
- package/es/components/StringFormatter/StringFormatter.js +14 -3
- package/es/components/StringFormatter/utils/enums.d.ts +20 -1
- package/es/components/StringFormatter/utils/enums.js +22 -2
- package/es/components/TagOverflow/TagOverflow.d.ts +35 -4
- package/es/components/TagOverflow/TagOverflow.js +47 -64
- package/es/components/TagOverflow/TagOverflowModal.js +4 -6
- package/es/components/TagOverflow/TagOverflowPopover.d.ts +13 -1
- package/es/components/TagOverflow/TagOverflowPopover.js +38 -41
- package/es/components/Tearsheet/Tearsheet.d.ts +8 -1
- package/es/components/Tearsheet/Tearsheet.js +9 -1
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
- package/es/components/Tearsheet/TearsheetNarrow.js +12 -0
- package/es/components/Tearsheet/TearsheetShell.d.ts +11 -1
- package/es/components/Tearsheet/TearsheetShell.js +28 -7
- package/es/components/Toolbar/ToolbarButton.js +1 -1
- package/es/components/WebTerminal/WebTerminal.js +10 -12
- package/es/components/index.d.ts +1 -1
- package/es/global/js/hooks/useFocus.d.ts +1 -0
- package/es/global/js/hooks/useFocus.js +5 -2
- package/es/global/js/hooks/usePrefersReducedMotion.js +14 -8
- package/es/global/js/package-settings.d.ts +1 -1
- package/es/global/js/package-settings.js +1 -1
- package/es/index.js +1 -0
- package/es/node_modules/@carbon/icon-helpers/es/index.js +49 -62
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1020 -1058
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +881 -758
- package/es/settings.d.ts +1 -1
- package/lib/components/ActionBar/ActionBarItem.js +1 -1
- package/lib/components/Coachmark/Coachmark.d.ts +6 -1
- package/lib/components/Coachmark/Coachmark.js +46 -10
- package/lib/components/Coachmark/CoachmarkOverlay.js +2 -4
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +13 -11
- package/lib/components/CoachmarkStack/CoachmarkStack.js +7 -3
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +8 -4
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +74 -53
- package/lib/components/ConditionBuilder/ConditionBuilder.js +82 -25
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +163 -0
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +3 -1
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +28 -11
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +8 -1
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +29 -7
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +12 -7
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +18 -10
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -13
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +73 -60
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +13 -7
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +31 -8
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +8 -2
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +34 -24
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +40 -36
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +40 -36
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +6 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +96 -38
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +24 -9
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +28 -10
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +122 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +68 -35
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +5 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +21 -8
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +1 -1
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +118 -37
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -1
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +44 -17
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +137 -39
- package/lib/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
- package/lib/components/ConditionBuilder/utils/useTranslations.js +30 -0
- package/lib/components/ConditionBuilder/utils/util.d.ts +6 -4
- package/lib/components/ConditionBuilder/utils/util.js +44 -16
- package/lib/components/CreateFullPage/CreateFullPage.js +2 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +26 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +140 -54
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +25 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +50 -9
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +16 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +32 -8
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +4 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.d.ts +3 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +15 -3
- package/lib/components/DataSpreadsheet/types/index.d.ts +2 -1
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +34 -2
- package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
- package/lib/components/Datagrid/Datagrid/Datagrid.js +4 -9
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -8
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +21 -8
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +3 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +7 -4
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +53 -16
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +74 -11
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
- package/lib/components/Datagrid/types/index.d.ts +61 -9
- package/lib/components/Datagrid/useActionsColumn.d.ts +8 -1
- package/lib/components/Datagrid/useActionsColumn.js +7 -6
- package/lib/components/Datagrid/useColumnCenterAlign.d.ts +8 -1
- package/lib/components/Datagrid/useColumnCenterAlign.js +1 -1
- package/lib/components/Datagrid/useColumnRightAlign.d.ts +8 -1
- package/lib/components/Datagrid/useColumnRightAlign.js +4 -3
- package/lib/components/Datagrid/useCustomizeColumns.d.ts +8 -1
- package/lib/components/Datagrid/useCustomizeColumns.js +4 -3
- package/lib/components/Datagrid/useDefaultStringRenderer.js +0 -1
- package/lib/components/Datagrid/useDisableSelectRows.d.ts +2 -1
- package/lib/components/Datagrid/useDisableSelectRows.js +27 -22
- package/lib/components/Datagrid/useInlineEdit.d.ts +8 -1
- package/lib/components/Datagrid/useInlineEdit.js +13 -3
- package/lib/components/Datagrid/useNestedRowExpander.js +1 -3
- package/lib/components/Datagrid/useNestedRows.js +32 -13
- package/lib/components/Datagrid/useRowExpander.js +1 -3
- package/lib/components/Datagrid/useSelectRows.js +2 -1
- package/lib/components/Datagrid/useStickyColumn.d.ts +8 -1
- package/lib/components/Datagrid/useStickyColumn.js +12 -9
- package/lib/components/Decorator/Decorator.js +2 -1
- package/lib/components/DecoratorBase/DecoratorBase.js +3 -5
- package/lib/components/DecoratorDualButton/DecoratorDualButton.js +2 -1
- package/lib/components/DecoratorLink/DecoratorLink.js +2 -1
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +2 -1
- package/lib/components/EditInPlace/EditInPlace.d.ts +4 -0
- package/lib/components/EditInPlace/EditInPlace.js +21 -10
- package/lib/components/EditTearsheet/EditTearsheet.d.ts +7 -2
- package/lib/components/EditTearsheet/EditTearsheet.js +43 -9
- package/lib/components/EditTearsheet/EditTearsheetForm.d.ts +45 -2
- package/lib/components/EditTearsheet/EditTearsheetForm.js +3 -0
- package/lib/components/EmptyStates/EmptyStateV2.d.ts +63 -2
- package/lib/components/EmptyStates/EmptyStateV2.js +2 -1
- package/lib/components/FullPageError/FullPageError.d.ts +36 -2
- package/lib/components/FullPageError/FullPageError.js +0 -3
- package/lib/components/GetStartedCard/GetStartedCard.d.ts +61 -2
- package/lib/components/GetStartedCard/GetStartedCard.js +8 -7
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +204 -200
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +116 -112
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +110 -106
- package/lib/components/Nav/NavItem.js +10 -1
- package/lib/components/OptionsTile/OptionsTile.js +11 -6
- package/lib/components/PageHeader/PageHeader.js +1 -0
- package/lib/components/RemoveModal/RemoveModal.d.ts +4 -0
- package/lib/components/RemoveModal/RemoveModal.js +7 -1
- package/lib/components/SearchBar/SearchBar.d.ts +1 -1
- package/lib/components/SearchBar/SearchBar.js +2 -2
- package/lib/components/SidePanel/SidePanel.js +16 -20
- package/lib/components/SidePanel/motion/variants.d.ts +4 -6
- package/lib/components/SidePanel/motion/variants.js +10 -11
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +94 -0
- package/lib/components/StringFormatter/StringFormatter.js +13 -2
- package/lib/components/StringFormatter/utils/enums.d.ts +20 -1
- package/lib/components/StringFormatter/utils/enums.js +23 -1
- package/lib/components/TagOverflow/TagOverflow.d.ts +35 -4
- package/lib/components/TagOverflow/TagOverflow.js +46 -63
- package/lib/components/TagOverflow/TagOverflowModal.js +4 -6
- package/lib/components/TagOverflow/TagOverflowPopover.d.ts +13 -1
- package/lib/components/TagOverflow/TagOverflowPopover.js +37 -40
- package/lib/components/Tearsheet/Tearsheet.d.ts +8 -1
- package/lib/components/Tearsheet/Tearsheet.js +9 -1
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
- package/lib/components/Tearsheet/TearsheetNarrow.js +12 -0
- package/lib/components/Tearsheet/TearsheetShell.d.ts +11 -1
- package/lib/components/Tearsheet/TearsheetShell.js +26 -5
- package/lib/components/Toolbar/ToolbarButton.js +1 -1
- package/lib/components/WebTerminal/WebTerminal.js +10 -12
- package/lib/components/index.d.ts +1 -1
- package/lib/global/js/hooks/useFocus.d.ts +1 -0
- package/lib/global/js/hooks/useFocus.js +5 -1
- package/lib/global/js/hooks/usePrefersReducedMotion.js +13 -7
- package/lib/global/js/package-settings.d.ts +1 -1
- package/lib/global/js/package-settings.js +1 -1
- package/lib/index.js +5 -0
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +49 -62
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1036 -1074
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +946 -823
- package/lib/settings.d.ts +1 -1
- package/package.json +9 -8
- package/scss/components/Coachmark/_coachmark-overlay.scss +6 -70
- package/scss/components/Coachmark/_coachmark.scss +5 -4
- package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +1 -3
- package/scss/components/ConditionBuilder/_condition-builder.scss +5 -1
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +20 -3
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +32 -3
- package/scss/components/CreateModal/_create-modal.scss +0 -4
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +17 -2
- package/scss/components/Datagrid/_datagrid.scss +0 -4
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +13 -0
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +7 -5
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +5 -4
- package/scss/components/HTTPErrors/_http-errors.scss +77 -0
- package/scss/components/OptionsTile/_options-tile.scss +6 -6
- package/scss/components/SidePanel/_side-panel.scss +1 -1
- package/scss/components/StatusIcon/_status-icon.scss +4 -4
- package/scss/components/StringFormatter/_string-formatter.scss +2 -2
- package/scss/components/UserProfileImage/_user-profile-image.scss +6 -2
- package/scss/components/_index-released-only.scss +1 -0
- package/telemetry.yml +32 -19
- package/es/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
- package/es/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -16
- package/es/global/js/utils/window.d.ts +0 -2
- package/es/global/js/utils/window.js +0 -12
- package/lib/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
- package/lib/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -20
- package/lib/global/js/utils/window.d.ts +0 -2
- package/lib/global/js/utils/window.js +0 -16
package/es/settings.d.ts
CHANGED
@@ -25,6 +25,7 @@ export const pkg: {
|
|
25
25
|
ErrorEmptyState: boolean;
|
26
26
|
ExportModal: boolean;
|
27
27
|
ExpressiveCard: boolean;
|
28
|
+
FullPageError: boolean;
|
28
29
|
HTTPError403: boolean;
|
29
30
|
HTTPError404: boolean;
|
30
31
|
HTTPErrorOther: boolean;
|
@@ -66,7 +67,6 @@ export const pkg: {
|
|
66
67
|
BigNumbers: boolean;
|
67
68
|
TruncatedList: boolean;
|
68
69
|
DelimitedList: boolean;
|
69
|
-
FullPageError: boolean;
|
70
70
|
ScrollGradient: boolean;
|
71
71
|
StringFormatter: boolean;
|
72
72
|
StatusIndicator: boolean;
|
@@ -43,7 +43,7 @@ exports.ActionBarItem = /*#__PURE__*/React__default["default"].forwardRef(functi
|
|
43
43
|
className: cx__default["default"](blockClass, className),
|
44
44
|
kind: 'ghost',
|
45
45
|
size: 'md',
|
46
|
-
align: 'bottom-
|
46
|
+
align: 'bottom-end',
|
47
47
|
type: 'button',
|
48
48
|
label: label
|
49
49
|
}), Icon ? /*#__PURE__*/React__default["default"].createElement(Icon, null) : null);
|
@@ -12,6 +12,11 @@ interface CoachmarkProps {
|
|
12
12
|
* @see COACHMARK_ALIGNMENT
|
13
13
|
*/
|
14
14
|
align?: 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-top' | 'left-bottom' | 'right' | 'right-top' | 'right-bottom' | 'top' | 'top-left' | 'top-right';
|
15
|
+
/**
|
16
|
+
* Auto aligns the coachmark based on screen boundaries
|
17
|
+
* Applies only to Tooltip Coachmarks.
|
18
|
+
*/
|
19
|
+
autoAlign?: boolean;
|
15
20
|
/**
|
16
21
|
* Coachmark should use a single CoachmarkOverlayElements component as a child.
|
17
22
|
* @see CoachmarkOverlayElements
|
@@ -51,7 +56,7 @@ interface CoachmarkProps {
|
|
51
56
|
positionTune?: {
|
52
57
|
x: number;
|
53
58
|
y: number;
|
54
|
-
}
|
59
|
+
};
|
55
60
|
/**
|
56
61
|
* The optional button or beacon that the user will click to show the Coachmark.
|
57
62
|
*/
|
@@ -21,13 +21,16 @@ var hooks = require('./utils/hooks.js');
|
|
21
21
|
var devtools = require('../../global/js/utils/devtools.js');
|
22
22
|
var settings = require('../../settings.js');
|
23
23
|
var lodash = require('lodash');
|
24
|
+
var react = require('@carbon/react');
|
25
|
+
var useIsomorphicEffect = require('../../global/js/hooks/useIsomorphicEffect.js');
|
24
26
|
|
25
27
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
26
28
|
|
27
29
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
28
30
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
29
31
|
|
30
|
-
var _excluded = ["align", "children", "className", "onClose", "overlayClassName", "overlayKind", "overlayRef", "
|
32
|
+
var _excluded = ["align", "autoAlign", "children", "className", "onClose", "overlayClassName", "overlayKind", "overlayRef", "positionTune", "portalTarget", "target", "theme"];
|
33
|
+
|
31
34
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
32
35
|
var blockClass = "".concat(settings.pkg.prefix, "--coachmark");
|
33
36
|
var overlayBlockClass = "".concat(blockClass, "-overlay");
|
@@ -45,9 +48,10 @@ var defaults = {
|
|
45
48
|
*/
|
46
49
|
|
47
50
|
exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
48
|
-
var
|
51
|
+
var _positionTune$y, _positionTune$x;
|
49
52
|
var _ref$align = _ref.align,
|
50
53
|
align = _ref$align === void 0 ? defaults.align : _ref$align,
|
54
|
+
autoAlign = _ref.autoAlign,
|
51
55
|
children = _ref.children,
|
52
56
|
className = _ref.className,
|
53
57
|
_ref$onClose = _ref.onClose,
|
@@ -56,15 +60,14 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
56
60
|
_ref$overlayKind = _ref.overlayKind,
|
57
61
|
overlayKind = _ref$overlayKind === void 0 ? defaults.overlayKind : _ref$overlayKind,
|
58
62
|
overlayRef = _ref.overlayRef,
|
59
|
-
portalTarget = _ref.portalTarget,
|
60
63
|
positionTune = _ref.positionTune,
|
64
|
+
portalTarget = _ref.portalTarget,
|
61
65
|
target = _ref.target,
|
62
66
|
_ref$theme = _ref.theme,
|
63
67
|
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
64
68
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
65
69
|
var isBeacon = overlayKind === enums.COACHMARK_OVERLAY_KIND.TOOLTIP;
|
66
70
|
var isStacked = overlayKind === enums.COACHMARK_OVERLAY_KIND.STACKED;
|
67
|
-
var portalNode = portalTarget ? (_document$querySelect = document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : document.querySelector('body') : document.querySelector('body');
|
68
71
|
var _useState = React.useState(isStacked),
|
69
72
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
70
73
|
isOpen = _useState2[0],
|
@@ -88,6 +91,11 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
88
91
|
var backupRef = React.useRef();
|
89
92
|
var _coachmarkRef = ref || backupRef;
|
90
93
|
var _overlayRef = overlayRef || overlayBackupRef;
|
94
|
+
var portalNode = React.useRef(null);
|
95
|
+
useIsomorphicEffect.useIsomorphicEffect(function () {
|
96
|
+
var _document$querySelect, _document, _document2, _document3;
|
97
|
+
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector('body') : (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.querySelector('body');
|
98
|
+
}, [portalTarget]);
|
91
99
|
var closeOverlay = function closeOverlay() {
|
92
100
|
setIsOpen(false);
|
93
101
|
};
|
@@ -129,6 +137,10 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
129
137
|
setShouldResetPosition(true);
|
130
138
|
}
|
131
139
|
};
|
140
|
+
var overlayPositionStyle = {
|
141
|
+
top: ((_positionTune$y = positionTune === null || positionTune === void 0 ? void 0 : positionTune.y) !== null && _positionTune$y !== void 0 ? _positionTune$y : 0) - 16,
|
142
|
+
left: ((_positionTune$x = positionTune === null || positionTune === void 0 ? void 0 : positionTune.x) !== null && _positionTune$x !== void 0 ? _positionTune$x : 0) - 16
|
143
|
+
};
|
132
144
|
var contextValue = {
|
133
145
|
buttonProps: {
|
134
146
|
'aria-expanded': isOpen,
|
@@ -144,7 +156,8 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
144
156
|
targetRect: targetRect,
|
145
157
|
targetOffset: targetOffset,
|
146
158
|
align: align,
|
147
|
-
positionTune: positionTune
|
159
|
+
positionTune: positionTune,
|
160
|
+
isOpen: isOpen
|
148
161
|
};
|
149
162
|
var handleResize = lodash.throttle(function () {
|
150
163
|
closeOverlay();
|
@@ -178,18 +191,35 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
178
191
|
}, /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({
|
179
192
|
className: cx__default["default"](blockClass, "".concat(blockClass, "__").concat(theme), className),
|
180
193
|
ref: _coachmarkRef
|
181
|
-
}, rest, devtools.getDevtoolsProps(componentName)), target, isOpen && /*#__PURE__*/reactDom.createPortal( /*#__PURE__*/React__default["default"].createElement(CoachmarkOverlay.CoachmarkOverlay, {
|
194
|
+
}, rest, devtools.getDevtoolsProps(componentName)), overlayKind !== 'tooltip' ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, target, isOpen && (portalNode === null || portalNode === void 0 ? void 0 : portalNode.current) && /*#__PURE__*/reactDom.createPortal( /*#__PURE__*/React__default["default"].createElement(CoachmarkOverlay.CoachmarkOverlay, {
|
182
195
|
ref: _overlayRef,
|
183
196
|
fixedIsVisible: false,
|
184
197
|
kind: overlayKind,
|
185
198
|
onClose: handleClose,
|
186
199
|
theme: theme,
|
187
200
|
className: cx__default["default"](overlayClassName, "".concat(overlayBlockClass, "--is-visible"))
|
188
|
-
}, children),
|
189
|
-
|
190
|
-
|
201
|
+
}, children), // Default to `document.body` when `portalNode` is `null`
|
202
|
+
portalNode === null || portalNode === void 0 ? void 0 : portalNode.current)) : /*#__PURE__*/React__default["default"].createElement(react.Popover, {
|
203
|
+
highContrast: true,
|
204
|
+
caret: true,
|
205
|
+
style: _rollupPluginBabelHelpers.objectSpread2({
|
206
|
+
position: 'absolute'
|
207
|
+
}, overlayPositionStyle),
|
208
|
+
align: align,
|
209
|
+
autoAlign: autoAlign,
|
210
|
+
open: isOpen
|
211
|
+
}, target, /*#__PURE__*/React__default["default"].createElement(react.PopoverContent, null, isOpen && /*#__PURE__*/React__default["default"].createElement(CoachmarkOverlay.CoachmarkOverlay, {
|
212
|
+
ref: _overlayRef,
|
213
|
+
fixedIsVisible: false,
|
214
|
+
kind: overlayKind,
|
215
|
+
onClose: handleClose,
|
216
|
+
theme: theme,
|
217
|
+
className: cx__default["default"](overlayClassName, _rollupPluginBabelHelpers.defineProperty({}, "".concat(overlayBlockClass, "--is-visible"), isOpen))
|
218
|
+
}, children)))));
|
191
219
|
});
|
192
|
-
var overlayRefType = typeof HTMLElement === 'undefined' ? index["default"].object :
|
220
|
+
var overlayRefType = typeof HTMLElement === 'undefined' ? index["default"].object :
|
221
|
+
// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
|
222
|
+
index["default"].instanceOf(HTMLElement);
|
193
223
|
|
194
224
|
// Return a placeholder if not released and not enabled by feature flag
|
195
225
|
exports.Coachmark = settings.pkg.checkComponentEnabled(exports.Coachmark, componentName);
|
@@ -208,6 +238,11 @@ exports.Coachmark.propTypes = {
|
|
208
238
|
* @see COACHMARK_ALIGNMENT
|
209
239
|
*/
|
210
240
|
align: index["default"].oneOf(['bottom', 'bottom-left', 'bottom-right', 'left', 'left-top', 'left-bottom', 'right', 'right-top', 'right-bottom', 'top', 'top-left', 'top-right']),
|
241
|
+
/**
|
242
|
+
* Auto aligns the coachmark based on screen boundaries
|
243
|
+
* Applies only to Tooltip Coachmarks.
|
244
|
+
*/
|
245
|
+
autoAlign: index["default"].bool,
|
211
246
|
/**
|
212
247
|
* Coachmark should use a single CoachmarkOverlayElements component as a child.
|
213
248
|
* @see CoachmarkOverlayElements
|
@@ -246,6 +281,7 @@ exports.Coachmark.propTypes = {
|
|
246
281
|
/**
|
247
282
|
* Fine tune the position of the target in pixels. Applies only to Beacons.
|
248
283
|
*/
|
284
|
+
// @ts-ignore
|
249
285
|
positionTune: index["default"].shape({
|
250
286
|
x: index["default"].number,
|
251
287
|
y: index["default"].number
|
@@ -64,7 +64,7 @@ exports.CoachmarkOverlay = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
64
64
|
var coachmark = context.useCoachmark();
|
65
65
|
var isBeacon = kind === enums.COACHMARK_OVERLAY_KIND.TOOLTIP;
|
66
66
|
var isDraggable = kind === enums.COACHMARK_OVERLAY_KIND.FLOATING;
|
67
|
-
var isVisible = className
|
67
|
+
var isVisible = className === null || className === void 0 ? void 0 : className.includes('is-visible');
|
68
68
|
var handleKeyPress = function handleKeyPress(event) {
|
69
69
|
var shiftKey = event.shiftKey,
|
70
70
|
key = event.key;
|
@@ -172,9 +172,7 @@ exports.CoachmarkOverlay = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
172
172
|
return /*#__PURE__*/React__default["default"].cloneElement(child, {
|
173
173
|
isVisible: isVisible
|
174
174
|
});
|
175
|
-
}))
|
176
|
-
className: "".concat(blockClass, "__caret")
|
177
|
-
}));
|
175
|
+
})));
|
178
176
|
});
|
179
177
|
function getWindowDimensions() {
|
180
178
|
var _window = window,
|
@@ -35,7 +35,6 @@ var defaults = {
|
|
35
35
|
* Use beacon for the target prop of a Coachmark component.
|
36
36
|
*/
|
37
37
|
exports.CoachmarkBeacon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
38
|
-
var _coachmark$positionTu, _coachmark$positionTu2, _coachmark$positionTu3, _coachmark$positionTu4;
|
39
38
|
var label = _ref.label,
|
40
39
|
className = _ref.className,
|
41
40
|
_ref$kind = _ref.kind,
|
@@ -45,14 +44,9 @@ exports.CoachmarkBeacon = /*#__PURE__*/React__default["default"].forwardRef(func
|
|
45
44
|
if (!coachmark) {
|
46
45
|
return _div || (_div = /*#__PURE__*/React__default["default"].createElement("div", null, "CoachmarkBeacon is to be use exclusively within the target prop of Coachmark"));
|
47
46
|
}
|
48
|
-
var overlayPositionStyle = {
|
49
|
-
top: (_coachmark$positionTu = (_coachmark$positionTu2 = coachmark.positionTune) === null || _coachmark$positionTu2 === void 0 ? void 0 : _coachmark$positionTu2.y) !== null && _coachmark$positionTu !== void 0 ? _coachmark$positionTu : 0,
|
50
|
-
left: (_coachmark$positionTu3 = (_coachmark$positionTu4 = coachmark.positionTune) === null || _coachmark$positionTu4 === void 0 ? void 0 : _coachmark$positionTu4.x) !== null && _coachmark$positionTu3 !== void 0 ? _coachmark$positionTu3 : 0
|
51
|
-
};
|
52
47
|
return /*#__PURE__*/React__default["default"].createElement("span", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
53
48
|
className: cx__default["default"](blockClass, "".concat(blockClass, "-").concat(kind), className),
|
54
|
-
ref: ref
|
55
|
-
style: overlayPositionStyle
|
49
|
+
ref: ref
|
56
50
|
}, devtools.getDevtoolsProps(componentName), {
|
57
51
|
role: "tooltip"
|
58
52
|
}), /*#__PURE__*/React__default["default"].createElement("button", _rollupPluginBabelHelpers["extends"]({
|
@@ -20,6 +20,8 @@ var CoachmarkOverlay = require('../Coachmark/CoachmarkOverlay.js');
|
|
20
20
|
var CoachmarkTagline = require('../Coachmark/CoachmarkTagline.js');
|
21
21
|
var context = require('../Coachmark/utils/context.js');
|
22
22
|
var enums = require('../Coachmark/utils/enums.js');
|
23
|
+
var framerMotion = require('framer-motion');
|
24
|
+
var useIsomorphicEffect = require('../../global/js/hooks/useIsomorphicEffect.js');
|
23
25
|
|
24
26
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
25
27
|
|
@@ -48,7 +50,6 @@ var defaults = {
|
|
48
50
|
* This variant allows the a coachmark overlay to be displayed by interacting with the tagline.
|
49
51
|
*/
|
50
52
|
exports.CoachmarkFixed = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
51
|
-
var _document$querySelect;
|
52
53
|
var children = _ref.children,
|
53
54
|
className = _ref.className,
|
54
55
|
_ref$onClose = _ref.onClose,
|
@@ -60,7 +61,7 @@ exports.CoachmarkFixed = /*#__PURE__*/React__default["default"].forwardRef(funct
|
|
60
61
|
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
61
62
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
62
63
|
var overlayRef = React.useRef(null);
|
63
|
-
var portalNode =
|
64
|
+
var portalNode = React.useRef(null);
|
64
65
|
var _useState = React.useState(false),
|
65
66
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
66
67
|
isOpen = _useState2[0],
|
@@ -84,17 +85,19 @@ exports.CoachmarkFixed = /*#__PURE__*/React__default["default"].forwardRef(funct
|
|
84
85
|
_useState10 = _rollupPluginBabelHelpers.slicedToArray(_useState9, 2),
|
85
86
|
fixedIsVisible = _useState10[0],
|
86
87
|
setFixedIsVisible = _useState10[1];
|
87
|
-
var
|
88
|
+
var shouldReduceMotion = framerMotion.useReducedMotion();
|
89
|
+
useIsomorphicEffect.useIsomorphicEffect(function () {
|
90
|
+
var _document$querySelect, _document, _document2, _document3;
|
91
|
+
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector('body') : (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.querySelector('body');
|
92
|
+
}, [portalTarget]);
|
88
93
|
var handleClose = React.useCallback(function () {
|
89
|
-
|
90
|
-
if (prefersReducedMotion.matches) {
|
94
|
+
if (shouldReduceMotion) {
|
91
95
|
setIsOpen(false);
|
92
96
|
} else {
|
93
97
|
setFixedIsVisible(false);
|
94
98
|
}
|
95
|
-
}, [
|
99
|
+
}, [shouldReduceMotion]);
|
96
100
|
var handleTransitionEnd = function handleTransitionEnd(e) {
|
97
|
-
console.log('Here at transition end... ', e.propertyName === 'transform' && !fixedIsVisible);
|
98
101
|
if (e.propertyName === 'transform' && !fixedIsVisible) {
|
99
102
|
setIsOpen(false);
|
100
103
|
onClose();
|
@@ -173,7 +176,7 @@ exports.CoachmarkFixed = /*#__PURE__*/React__default["default"].forwardRef(funct
|
|
173
176
|
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React__default["default"].createElement(CoachmarkTagline.CoachmarkTagline, {
|
174
177
|
title: tagline,
|
175
178
|
onClose: onClose
|
176
|
-
}), isOpen && /*#__PURE__*/reactDom.createPortal( /*#__PURE__*/React__default["default"].createElement(CoachmarkOverlay.CoachmarkOverlay, {
|
179
|
+
}), isOpen && (portalNode === null || portalNode === void 0 ? void 0 : portalNode.current) && /*#__PURE__*/reactDom.createPortal( /*#__PURE__*/React__default["default"].createElement(CoachmarkOverlay.CoachmarkOverlay, {
|
177
180
|
ref: overlayRef,
|
178
181
|
fixedIsVisible: fixedIsVisible,
|
179
182
|
kind: enums.COACHMARK_OVERLAY_KIND.FIXED,
|
@@ -181,9 +184,8 @@ exports.CoachmarkFixed = /*#__PURE__*/React__default["default"].forwardRef(funct
|
|
181
184
|
onTransitionEnd: handleTransitionEnd,
|
182
185
|
theme: theme,
|
183
186
|
className: cx__default["default"](fixedIsVisible && "".concat(overlayBlockClass, "--is-visible"), overlayBlockClass)
|
184
|
-
}, children),
|
185
|
-
|
186
|
-
portalNode || document.body)));
|
187
|
+
}, children), // Default to `document.body` when `portalNode` is `null`
|
188
|
+
portalNode === null || portalNode === void 0 ? void 0 : portalNode.current)));
|
187
189
|
});
|
188
190
|
|
189
191
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -21,6 +21,7 @@ var CoachmarkStackHome = require('./CoachmarkStackHome.js');
|
|
21
21
|
var CoachmarkTagline = require('../Coachmark/CoachmarkTagline.js');
|
22
22
|
var context = require('../Coachmark/utils/context.js');
|
23
23
|
var enums = require('../Coachmark/utils/enums.js');
|
24
|
+
var useIsomorphicEffect = require('../../global/js/hooks/useIsomorphicEffect.js');
|
24
25
|
|
25
26
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
26
27
|
|
@@ -56,7 +57,6 @@ var defaults = {
|
|
56
57
|
* This variant allows the stacking of multiple coachmark overlays to be displayed by interacting with the tagline.
|
57
58
|
*/
|
58
59
|
exports.CoachmarkStack = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
59
|
-
var _document$querySelect;
|
60
60
|
var children = _ref.children,
|
61
61
|
className = _ref.className,
|
62
62
|
_ref$onClose = _ref.onClose,
|
@@ -72,7 +72,11 @@ exports.CoachmarkStack = /*#__PURE__*/React__default["default"].forwardRef(funct
|
|
72
72
|
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
73
73
|
title = _ref.title,
|
74
74
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
75
|
-
var portalNode =
|
75
|
+
var portalNode = React.useRef();
|
76
|
+
useIsomorphicEffect.useIsomorphicEffect(function () {
|
77
|
+
var _document$querySelect, _document, _document2, _document3;
|
78
|
+
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector('body') : (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.querySelector('body');
|
79
|
+
}, [portalTarget]);
|
76
80
|
var stackHomeRef = React.useRef();
|
77
81
|
var stackedCoachmarkRefs = React.useRef([]);
|
78
82
|
var _useState = React.useState(false),
|
@@ -215,7 +219,7 @@ exports.CoachmarkStack = /*#__PURE__*/React__default["default"].forwardRef(funct
|
|
215
219
|
portalTarget: portalTarget,
|
216
220
|
closeButtonLabel: closeButtonLabel,
|
217
221
|
title: title
|
218
|
-
}), /*#__PURE__*/reactDom.createPortal(wrappedChildren, portalNode)));
|
222
|
+
}), portalNode !== null && portalNode !== void 0 && portalNode.current ? /*#__PURE__*/reactDom.createPortal(wrappedChildren, portalNode === null || portalNode === void 0 ? void 0 : portalNode.current) : null));
|
219
223
|
});
|
220
224
|
|
221
225
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -20,6 +20,7 @@ var devtools = require('../../global/js/utils/devtools.js');
|
|
20
20
|
var settings = require('../../settings.js');
|
21
21
|
var reactDom = require('react-dom');
|
22
22
|
var CoachmarkHeader = require('../Coachmark/CoachmarkHeader.js');
|
23
|
+
var useIsomorphicEffect = require('../../global/js/hooks/useIsomorphicEffect.js');
|
23
24
|
var SteppedAnimatedMedia = require('../SteppedAnimatedMedia/SteppedAnimatedMedia.js');
|
24
25
|
|
25
26
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
@@ -42,7 +43,6 @@ var componentName = 'CoachmarkStackHome';
|
|
42
43
|
* of other Onboarding components.
|
43
44
|
*/
|
44
45
|
exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
45
|
-
var _document$querySelect;
|
46
46
|
var className = _ref.className,
|
47
47
|
description = _ref.description,
|
48
48
|
isOpen = _ref.isOpen,
|
@@ -66,11 +66,15 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
66
66
|
}
|
67
67
|
}, 100);
|
68
68
|
}, [isOpen]);
|
69
|
+
var portalNode = React.useRef();
|
70
|
+
useIsomorphicEffect.useIsomorphicEffect(function () {
|
71
|
+
var _document$querySelect, _document, _document2, _document3;
|
72
|
+
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector('body') : (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.querySelector('body');
|
73
|
+
}, [portalTarget]);
|
69
74
|
if (!navLinkLabels) {
|
70
75
|
return pconsole["default"].warn("".concat(componentName, " is an Onboarding internal component and is not intended for general use."));
|
71
76
|
}
|
72
|
-
|
73
|
-
return /*#__PURE__*/reactDom.createPortal( /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
77
|
+
return portalNode !== null && portalNode !== void 0 && portalNode.current ? /*#__PURE__*/reactDom.createPortal( /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
74
78
|
className: cx__default["default"](blockClass, className),
|
75
79
|
ref: ref,
|
76
80
|
role: "main"
|
@@ -112,7 +116,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
112
116
|
setLinkFocusIndex(0);
|
113
117
|
_onClose();
|
114
118
|
}
|
115
|
-
}, closeButtonLabel))))), portalNode);
|
119
|
+
}, closeButtonLabel))))), portalNode === null || portalNode === void 0 ? void 0 : portalNode.current) : null;
|
116
120
|
function renderNavLink(index, label) {
|
117
121
|
var ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
118
122
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
@@ -15,7 +15,6 @@ var icons = require('@carbon/react/icons');
|
|
15
15
|
var ConditionBuilderItem = require('../ConditionBuilderItem/ConditionBuilderItem.js');
|
16
16
|
var index = require('../../../node_modules/prop-types/index.js');
|
17
17
|
var DataConfigs = require('../ConditionBuilderContext/DataConfigs.js');
|
18
|
-
var ConditionBuilderItemOption = require('../ConditionBuilderItem/ConditionBuilderItemOption/ConditionBuilderItemOption.js');
|
19
18
|
var cx = require('classnames');
|
20
19
|
var ConditionConnector = require('../ConditionBuilderConnector/ConditionConnector.js');
|
21
20
|
var ConditionBuilderItemNumber = require('../ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js');
|
@@ -26,6 +25,9 @@ var ConditionBuilderButton = require('../ConditionBuilderButton/ConditionBuilder
|
|
26
25
|
var util = require('../utils/util.js');
|
27
26
|
var ConditionBuilderItemTime = require('../ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js');
|
28
27
|
var ConditionBuilderAdd = require('../ConditionBuilderAdd/ConditionBuilderAdd.js');
|
28
|
+
var ItemOption = require('../ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js');
|
29
|
+
var ItemOptionForValueField = require('../ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js');
|
30
|
+
var useTranslations = require('../utils/useTranslations.js');
|
29
31
|
|
30
32
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
31
33
|
|
@@ -33,6 +35,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
33
35
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
34
36
|
|
35
37
|
var _div;
|
38
|
+
|
36
39
|
/**
|
37
40
|
* This component build each block of condition consisting of property, operator value and close button.
|
38
41
|
*/
|
@@ -61,41 +64,46 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
61
64
|
isLastCondition = props.isLastCondition;
|
62
65
|
var _useContext = React.useContext(ConditionBuilderProvider.ConditionBuilderContext),
|
63
66
|
inputConfig = _useContext.inputConfig,
|
64
|
-
variant = _useContext.variant
|
65
|
-
|
66
|
-
var itemComponents = {
|
67
|
-
option: ConditionBuilderItemOption.ConditionBuilderItemOption,
|
68
|
-
text: ConditionBuilderItemText.ConditionBuilderItemText,
|
69
|
-
number: ConditionBuilderItemNumber.ConditionBuilderItemNumber,
|
70
|
-
date: ConditionBuilderItemDate.ConditionBuilderItemDate,
|
71
|
-
time: ConditionBuilderItemTime.ConditionBuilderItemTime
|
72
|
-
};
|
67
|
+
variant = _useContext.variant,
|
68
|
+
conditionBuilderRef = _useContext.conditionBuilderRef;
|
73
69
|
var _useState = React.useState(false),
|
74
70
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
75
71
|
showDeletionPreview = _useState2[0],
|
76
72
|
setShowDeletionPreview = _useState2[1];
|
73
|
+
var _useTranslations = useTranslations.useTranslations(['conditionRowText', 'conditionText', 'propertyText', 'operatorText', 'removeConditionText']),
|
74
|
+
_useTranslations2 = _rollupPluginBabelHelpers.slicedToArray(_useTranslations, 5),
|
75
|
+
conditionRowText = _useTranslations2[0],
|
76
|
+
conditionText = _useTranslations2[1],
|
77
|
+
propertyText = _useTranslations2[2],
|
78
|
+
operatorText = _useTranslations2[3],
|
79
|
+
removeConditionText = _useTranslations2[4];
|
77
80
|
|
78
81
|
//filtering the current property to access its properties and config options
|
79
82
|
var getCurrentConfig = function getCurrentConfig(property) {
|
80
83
|
var _inputConfig$properti, _inputConfig$properti2;
|
81
|
-
return (_inputConfig$properti = (_inputConfig$properti2 = inputConfig.properties) === null || _inputConfig$properti2 === void 0 ? void 0 : _inputConfig$properti2.
|
84
|
+
return (_inputConfig$properti = (_inputConfig$properti2 = inputConfig.properties) === null || _inputConfig$properti2 === void 0 ? void 0 : _inputConfig$properti2.find(function (eachProperty) {
|
82
85
|
return eachProperty.id == property;
|
83
|
-
})
|
86
|
+
})) !== null && _inputConfig$properti !== void 0 ? _inputConfig$properti : {};
|
84
87
|
};
|
85
88
|
var _getCurrentConfig = getCurrentConfig(property),
|
86
89
|
icon = _getCurrentConfig.icon,
|
87
90
|
type = _getCurrentConfig.type,
|
88
91
|
config = _getCurrentConfig.config,
|
89
92
|
label = _getCurrentConfig.label;
|
90
|
-
var ItemComponent;
|
91
|
-
// if (type == 'custom') {
|
92
|
-
// ItemComponent = config.component;
|
93
|
-
// } else {
|
94
|
-
ItemComponent = property ? itemComponents[type] : null;
|
95
|
-
//}
|
96
93
|
|
94
|
+
//Below possible input types expected for value field.
|
95
|
+
var itemComponents = {
|
96
|
+
text: ConditionBuilderItemText.ConditionBuilderItemText,
|
97
|
+
number: ConditionBuilderItemNumber.ConditionBuilderItemNumber,
|
98
|
+
date: ConditionBuilderItemDate.ConditionBuilderItemDate,
|
99
|
+
time: ConditionBuilderItemTime.ConditionBuilderItemTime,
|
100
|
+
option: ItemOptionForValueField.ItemOptionForValueField,
|
101
|
+
custom: config === null || config === void 0 ? void 0 : config.component,
|
102
|
+
textarea: ConditionBuilderItemText.ConditionBuilderItemText
|
103
|
+
};
|
104
|
+
var ItemComponent = property ? itemComponents[type] : null;
|
97
105
|
var onStatementChangeHandler = function onStatementChangeHandler(v, evt) {
|
98
|
-
util.focusThisField(evt);
|
106
|
+
util.focusThisField(evt, conditionBuilderRef);
|
99
107
|
onStatementChange(v);
|
100
108
|
};
|
101
109
|
var onPropertyChangeHandler = function onPropertyChangeHandler(newProperty) {
|
@@ -103,20 +111,22 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
103
111
|
property: newProperty,
|
104
112
|
operator: undefined,
|
105
113
|
value: '',
|
106
|
-
popoverToOpen: 'operatorField'
|
114
|
+
popoverToOpen: util.checkIsValid(newProperty) ? 'operatorField' : ''
|
107
115
|
}));
|
108
116
|
};
|
109
117
|
var onOperatorChangeHandler = function onOperatorChangeHandler(newOperator) {
|
110
118
|
onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, condition), {}, {
|
111
119
|
operator: newOperator,
|
112
120
|
value: undefined,
|
113
|
-
popoverToOpen: 'valueField'
|
121
|
+
popoverToOpen: util.checkIsValid(newOperator) ? 'valueField' : ''
|
114
122
|
}));
|
115
123
|
};
|
116
|
-
var onValueChangeHandler = function onValueChangeHandler(newValue) {
|
117
|
-
|
118
|
-
|
119
|
-
|
124
|
+
var onValueChangeHandler = function onValueChangeHandler(newValue, evt) {
|
125
|
+
var currentCondition = _rollupPluginBabelHelpers.objectSpread2({}, condition);
|
126
|
+
delete currentCondition.popoverToOpen;
|
127
|
+
util.focusThisField(evt, conditionBuilderRef);
|
128
|
+
onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, currentCondition), {}, {
|
129
|
+
value: newValue
|
120
130
|
}));
|
121
131
|
};
|
122
132
|
var handleShowDeletionPreview = function handleShowDeletionPreview() {
|
@@ -126,6 +136,9 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
126
136
|
setShowDeletionPreview(false);
|
127
137
|
};
|
128
138
|
var getOperators = function getOperators() {
|
139
|
+
if (config !== null && config !== void 0 && config.operators) {
|
140
|
+
return config.operators;
|
141
|
+
}
|
129
142
|
return DataConfigs.operatorConfig.filter(function (operator) {
|
130
143
|
return operator.type.indexOf(type) != -1 || operator.type == 'all';
|
131
144
|
});
|
@@ -137,11 +150,24 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
137
150
|
'aria-setsize': aria.setsize
|
138
151
|
} : {};
|
139
152
|
};
|
153
|
+
var renderChildren = function renderChildren(popoverRef) {
|
154
|
+
return /*#__PURE__*/React__default["default"].createElement(ItemComponent, {
|
155
|
+
conditionState: {
|
156
|
+
property: property,
|
157
|
+
operator: operator,
|
158
|
+
value: value
|
159
|
+
},
|
160
|
+
onChange: onValueChangeHandler,
|
161
|
+
config: config,
|
162
|
+
"data-name": "valueField",
|
163
|
+
parentRef: popoverRef,
|
164
|
+
type: type
|
165
|
+
});
|
166
|
+
};
|
140
167
|
return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({
|
141
168
|
className: cx__default["default"]("".concat(DataConfigs.blockClass, "__condition-block"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(DataConfigs.blockClass, "__condition__deletion-preview"), showDeletionPreview), _rollupPluginBabelHelpers.defineProperty({}, "".concat(DataConfigs.blockClass, "__gap-bottom"), variant == 'tree' && !(conditionIndex + 1 >= group.conditions.length)), _rollupPluginBabelHelpers.defineProperty({}, "".concat(DataConfigs.blockClass, "__gap ").concat(DataConfigs.blockClass, "__gap-bottom"), variant == 'sentence')),
|
142
169
|
role: "row",
|
143
|
-
"aria-label":
|
144
|
-
tabIndex: -1
|
170
|
+
"aria-label": conditionRowText
|
145
171
|
}, getAriaAttributes()), conjunction ? /*#__PURE__*/React__default["default"].createElement(ConditionConnector["default"], {
|
146
172
|
className: "".concat(DataConfigs.blockClass, "__gap"),
|
147
173
|
operator: conjunction,
|
@@ -152,74 +178,69 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
152
178
|
role: "gridcell"
|
153
179
|
})), isStatement && /*#__PURE__*/React__default["default"].createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
154
180
|
label: group.statement,
|
155
|
-
title:
|
181
|
+
title: conditionText,
|
156
182
|
"data-name": "connectorField",
|
157
183
|
popOverClassName: "".concat(DataConfigs.blockClass, "__gap"),
|
158
184
|
className: "".concat(DataConfigs.blockClass, "__statement-button")
|
159
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
185
|
+
}, /*#__PURE__*/React__default["default"].createElement(ItemOption.ItemOption, {
|
160
186
|
conditionState: {
|
161
187
|
value: group.statement,
|
162
|
-
label:
|
188
|
+
label: conditionText
|
163
189
|
},
|
164
190
|
onChange: onStatementChangeHandler,
|
165
191
|
config: {
|
166
192
|
options: DataConfigs.statementConfig
|
167
193
|
}
|
168
194
|
})), /*#__PURE__*/React__default["default"].createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
169
|
-
label: label,
|
170
|
-
title:
|
195
|
+
label: label !== null && label !== void 0 ? label : condition === null || condition === void 0 ? void 0 : condition.property,
|
196
|
+
title: propertyText,
|
171
197
|
renderIcon: icon !== null && icon !== void 0 ? icon : null,
|
172
198
|
className: "".concat(DataConfigs.blockClass, "__property-field"),
|
173
199
|
"data-name": "propertyField",
|
174
200
|
condition: condition,
|
175
|
-
type: type
|
176
|
-
|
201
|
+
type: type,
|
202
|
+
onChange: onPropertyChangeHandler
|
203
|
+
}, /*#__PURE__*/React__default["default"].createElement(ItemOption.ItemOption, {
|
177
204
|
conditionState: {
|
178
205
|
value: property,
|
179
|
-
label:
|
206
|
+
label: propertyText
|
180
207
|
},
|
181
208
|
onChange: onPropertyChangeHandler,
|
182
209
|
config: {
|
183
210
|
options: inputConfig.properties
|
184
211
|
}
|
185
|
-
})), property && /*#__PURE__*/React__default["default"].createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
212
|
+
})), util.checkIsValid(property) && /*#__PURE__*/React__default["default"].createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
186
213
|
label: operator,
|
187
|
-
title:
|
214
|
+
title: operatorText,
|
188
215
|
"data-name": "operatorField",
|
189
216
|
condition: condition,
|
190
|
-
type: type
|
191
|
-
|
217
|
+
type: type,
|
218
|
+
onChange: onOperatorChangeHandler
|
219
|
+
}, /*#__PURE__*/React__default["default"].createElement(ItemOption.ItemOption, {
|
192
220
|
config: {
|
193
221
|
options: getOperators()
|
194
222
|
},
|
195
223
|
conditionState: {
|
196
224
|
value: operator,
|
197
|
-
label:
|
225
|
+
label: operatorText
|
198
226
|
},
|
199
227
|
onChange: onOperatorChangeHandler
|
200
|
-
})), property && operator && /*#__PURE__*/React__default["default"].createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
228
|
+
})), util.checkIsValid(property) && util.checkIsValid(operator) && /*#__PURE__*/React__default["default"].createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
201
229
|
label: value,
|
202
230
|
type: type,
|
203
231
|
title: label,
|
204
232
|
showToolTip: true,
|
205
233
|
"data-name": "valueField",
|
206
234
|
condition: condition,
|
207
|
-
config: config
|
208
|
-
}, /*#__PURE__*/React__default["default"].createElement(ItemComponent, {
|
209
|
-
conditionState: {
|
210
|
-
property: property,
|
211
|
-
operator: operator,
|
212
|
-
value: value
|
213
|
-
},
|
214
|
-
onChange: onValueChangeHandler,
|
215
235
|
config: config,
|
216
|
-
|
217
|
-
|
236
|
+
onChange: onValueChangeHandler,
|
237
|
+
renderChildren: renderChildren
|
238
|
+
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
218
239
|
role: "gridcell",
|
219
|
-
"aria-label":
|
240
|
+
"aria-label": removeConditionText
|
220
241
|
}, /*#__PURE__*/React__default["default"].createElement(ConditionBuilderButton.ConditionBuilderButton, {
|
221
242
|
hideLabel: true,
|
222
|
-
label:
|
243
|
+
label: removeConditionText,
|
223
244
|
onClick: onRemove,
|
224
245
|
onMouseEnter: handleShowDeletionPreview,
|
225
246
|
onMouseLeave: handleHideDeletionPreview,
|