carbon-addons-iot-react 2.70.0 → 2.72.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.
- package/css/carbon-addons-iot-react.css +43 -10
- package/css/carbon-addons-iot-react.css.map +1 -1
- package/es/node_modules/carbon-components-react/es/components/UIShell/Content.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/Header.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/HeaderGlobalAction.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/HeaderMenu.js +3 -3
- package/es/node_modules/carbon-components-react/es/components/UIShell/HeaderMenuButton.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/HeaderName.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/HeaderNavigation.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/HeaderPanel.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/HeaderSideNavItems.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNav.js +3 -3
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNavDetails.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNavFooter.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNavHeader.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNavIcon.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNavItem.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNavItems.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNavLink.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNavLinkText.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNavMenu.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNavMenuItem.js +3 -3
- package/es/node_modules/carbon-components-react/es/components/UIShell/SideNavSwitcher.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SkipToContent.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/Switcher.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SwitcherDivider.js +2 -2
- package/es/node_modules/carbon-components-react/es/components/UIShell/SwitcherItem.js +3 -3
- package/es/node_modules/carbon-components-react/es/tools/wrapComponent.js +2 -2
- package/es/src/components/Accordion/AccordionItemDefer.jsx +52 -0
- package/es/src/components/AddCard/AddCard.jsx +2 -2
- package/es/src/components/BarChartCard/BarChartCard.jsx +2 -2
- package/es/src/components/Breadcrumb/Breadcrumb.jsx +5 -5
- package/es/src/components/Button/Button.jsx +2 -2
- package/es/src/components/Card/Card.jsx +5 -5
- package/es/src/components/Card/CardRangePicker.jsx +3 -3
- package/es/src/components/Card/CardToolbar.jsx +4 -4
- package/es/src/components/Card/DataStateRenderer.jsx +3 -3
- package/es/src/components/ComposedModal/ComposedModal.jsx +3 -3
- package/es/src/components/ComposedStructuredList/ComposedStructuredList.jsx +1 -1
- package/es/src/components/Dashboard/CardRenderer.jsx +1 -1
- package/es/src/components/Dashboard/Dashboard.jsx +1 -1
- package/es/src/components/Dashboard/DashboardGrid.jsx +1 -1
- package/es/src/components/DateTimePicker/DateTimePicker.jsx +5 -5
- package/es/src/components/GaugeCard/GaugeCard.jsx +17 -20
- package/es/src/components/Header/HeaderAction/HeaderAction.jsx +1 -1
- package/es/src/components/Header/HeaderAction/HeaderActionMenu.jsx +3 -3
- package/es/src/components/Header/HeaderAction/HeaderActionPanel.jsx +3 -3
- package/es/src/components/Hero/Hero.jsx +1 -1
- package/es/src/components/IconSwitch/IconSwitch.jsx +2 -2
- package/es/src/components/ImageCard/CardIcon.jsx +1 -1
- package/es/src/components/ImageCard/ImageHotspots.jsx +1 -1
- package/es/src/components/List/HierarchyList/HierarchyList.jsx +1 -1
- package/es/src/components/List/List.jsx +3 -3
- package/es/src/components/List/ListItem/ListItem.jsx +7 -7
- package/es/src/components/List/SimpleList/SimpleList.jsx +1 -1
- package/es/src/components/ListCard/ListCard.jsx +2 -2
- package/es/src/components/Page/EditPage.jsx +2 -2
- package/es/src/components/PageTitleBar/PageTitleBar.jsx +3 -3
- package/es/src/components/PageWizard/PageWizard.jsx +2 -2
- package/es/src/components/PageWizard/StatefulPageWizard.jsx +1 -1
- package/es/src/components/ProgressIndicator/ProgressIndicator.jsx +2 -2
- package/es/src/components/SideNav/SideNav.jsx +2 -2
- package/es/src/components/Table/Pagination.jsx +2 -2
- package/es/src/components/Table/StatefulTable.jsx +1 -1
- package/es/src/components/Table/Table.jsx +4 -4
- package/es/src/components/Table/TableBody/RowActionsCell/RowActionsCell.jsx +7 -14
- package/es/src/components/Table/TableBody/TableBodyRow/TableBodyRow.jsx +4 -4
- package/es/src/components/Table/TableCellRenderer/TableCellRenderer.jsx +2 -2
- package/es/src/components/Table/TableHead/ColumnHeaderRow/ColumnHeaderRow.jsx +1 -1
- package/es/src/components/Table/TableHead/ColumnHeaderSelect/ColumnHeaderSelect.jsx +2 -2
- package/es/src/components/Table/TableHead/ColumnResize.jsx +2 -2
- package/es/src/components/Table/TableHead/TableHead.jsx +6 -6
- package/es/src/components/Table/TableHead/TableHeader.js +3 -3
- package/es/src/components/Table/TableToolbar/TableToolbar.jsx +3 -3
- package/es/src/components/Table/TableToolbarSearch/TableToolbarSearch.jsx +3 -3
- package/es/src/components/Table/baseTableReducer.js +1 -1
- package/es/src/components/Table/tableReducer.js +1 -1
- package/es/src/components/TileCatalog/StatefulTileCatalog.jsx +1 -1
- package/es/src/components/TileCatalog/TileCatalog.jsx +2 -2
- package/es/src/components/TileCatalog/TileGroup.jsx +2 -2
- package/es/src/components/TileCatalogNew/TileCatalogNew.jsx +1 -1
- package/es/src/components/TileCatalogNew/TilePagination/TilePagination.jsx +5 -5
- package/es/src/components/TileGallery/StatefulTileGallery.jsx +1 -1
- package/es/src/components/TimePickerSpinner/TimePickerSpinner.jsx +4 -4
- package/es/src/components/ValueCard/Attribute.jsx +4 -4
- package/es/src/components/ValueCard/UnitRenderer.jsx +2 -2
- package/es/src/components/ValueCard/ValueRenderer.jsx +2 -2
- package/es/src/components/WizardInline/StatefulWizardInline.jsx +1 -1
- package/es/src/components/WizardInline/WizardHeader/WizardHeader.jsx +1 -1
- package/es/src/components/WizardModal/WizardModal.jsx +2 -2
- package/es/src/index.js +4 -5
- package/es/src/internal/deprecate.js +1 -1
- package/es/src/utils/cardUtilityFunctions.js +1 -1
- package/lib/css/carbon-addons-iot-react.css +43 -10
- package/lib/css/carbon-addons-iot-react.css.map +1 -1
- package/lib/node_modules/@carbon/charts-react/bar-chart-grouped.js +2 -2
- package/lib/node_modules/@carbon/charts-react/bar-chart-simple.js +2 -2
- package/lib/node_modules/@carbon/charts-react/bar-chart-stacked.js +2 -2
- package/lib/node_modules/@carbon/charts-react/line-chart.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/Content.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/Header.js +4 -4
- package/lib/node_modules/carbon-components-react/es/components/UIShell/HeaderGlobalAction.js +4 -4
- package/lib/node_modules/carbon-components-react/es/components/UIShell/HeaderGlobalBar.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/HeaderMenu.js +8 -8
- package/lib/node_modules/carbon-components-react/es/components/UIShell/HeaderMenuButton.js +4 -4
- package/lib/node_modules/carbon-components-react/es/components/UIShell/HeaderMenuItem.js +3 -3
- package/lib/node_modules/carbon-components-react/es/components/UIShell/HeaderName.js +5 -5
- package/lib/node_modules/carbon-components-react/es/components/UIShell/HeaderNavigation.js +4 -4
- package/lib/node_modules/carbon-components-react/es/components/UIShell/HeaderPanel.js +4 -4
- package/lib/node_modules/carbon-components-react/es/components/UIShell/HeaderSideNavItems.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNav.js +5 -5
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNavDetails.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNavFooter.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNavHeader.js +4 -4
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNavIcon.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNavItem.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNavItems.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNavLink.js +11 -11
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNavLinkText.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNavMenu.js +8 -8
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNavMenuItem.js +7 -7
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SideNavSwitcher.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SkipToContent.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/Switcher.js +4 -4
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SwitcherDivider.js +2 -2
- package/lib/node_modules/carbon-components-react/es/components/UIShell/SwitcherItem.js +7 -7
- package/lib/node_modules/carbon-components-react/es/prop-types/AriaPropTypes.js +2 -2
- package/lib/node_modules/carbon-components-react/es/tools/wrapComponent.js +2 -2
- package/lib/scss/components/GaugeCard/_gauge-card.scss +33 -6
- package/lib/scss/components/Table/TableBody/RowActionsCell/_row-actions-cell.scss +25 -2
- package/lib/scss/components/TextInput/_text-input.scss +4 -0
- package/lib/src/components/Accordion/AccordionItemDefer.jsx +57 -0
- package/lib/src/components/AddCard/AddCard.jsx +2 -2
- package/lib/src/components/BarChartCard/BarChartCard.jsx +22 -22
- package/lib/src/components/Breadcrumb/Breadcrumb.jsx +7 -7
- package/lib/src/components/Button/Button.jsx +4 -4
- package/lib/src/components/Card/Card.jsx +32 -32
- package/lib/src/components/Card/CardRangePicker.jsx +5 -5
- package/lib/src/components/Card/CardToolbar.jsx +13 -13
- package/lib/src/components/Card/DataStateRenderer.jsx +14 -14
- package/lib/src/components/ComposedModal/ComposedModal.jsx +10 -10
- package/lib/src/components/ComposedStructuredList/ComposedStructuredList.jsx +5 -5
- package/lib/src/components/Dashboard/CardRenderer.jsx +23 -23
- package/lib/src/components/Dashboard/Dashboard.jsx +8 -8
- package/lib/src/components/Dashboard/DashboardGrid.jsx +22 -22
- package/lib/src/components/Dashboard/DashboardHeader.jsx +5 -5
- package/lib/src/components/DateTimePicker/DateTimePicker.jsx +9 -9
- package/lib/src/components/FileDrop/FileDrop.jsx +2 -2
- package/lib/src/components/GaugeCard/GaugeCard.jsx +26 -29
- package/lib/src/components/Header/Header.jsx +12 -12
- package/lib/src/components/Header/HeaderAction/HeaderAction.jsx +11 -11
- package/lib/src/components/Header/HeaderAction/HeaderActionMenu.jsx +9 -9
- package/lib/src/components/Header/HeaderAction/HeaderActionPanel.jsx +10 -10
- package/lib/src/components/Header/HeaderActionGroup.jsx +6 -6
- package/lib/src/components/Hero/Hero.jsx +3 -3
- package/lib/src/components/IconSwitch/IconSwitch.jsx +2 -2
- package/lib/src/components/ImageCard/CardIcon.jsx +5 -5
- package/lib/src/components/ImageCard/Hotspot.jsx +2 -2
- package/lib/src/components/ImageCard/ImageCard.jsx +12 -12
- package/lib/src/components/ImageCard/ImageControls.jsx +3 -3
- package/lib/src/components/ImageCard/ImageHotspots.jsx +6 -6
- package/lib/src/components/List/HierarchyList/HierarchyList.jsx +6 -6
- package/lib/src/components/List/HierarchyList/index.js +2 -2
- package/lib/src/components/List/List.jsx +10 -10
- package/lib/src/components/List/ListItem/ListItem.jsx +7 -7
- package/lib/src/components/List/SimpleList/SimpleList.jsx +3 -3
- package/lib/src/components/ListCard/ListCard.jsx +9 -9
- package/lib/src/components/NavigationBar/NavigationBar.jsx +5 -5
- package/lib/src/components/Page/EditPage.jsx +9 -9
- package/lib/src/components/Page/PageHero.jsx +9 -9
- package/lib/src/components/Page/PageTitle.jsx +2 -2
- package/lib/src/components/PageTitleBar/PageTitleBar.jsx +8 -8
- package/lib/src/components/PageWizard/PageWizard.jsx +2 -2
- package/lib/src/components/PageWizard/PageWizardStep/PageWizardStep.jsx +7 -7
- package/lib/src/components/PageWizard/PageWizardStep/PageWizardStepContent.jsx +2 -2
- package/lib/src/components/PageWizard/PageWizardStep/PageWizardStepDescription.jsx +2 -2
- package/lib/src/components/PageWizard/PageWizardStep/PageWizardStepExtraContent.jsx +2 -2
- package/lib/src/components/PageWizard/PageWizardStep/PageWizardStepTitle.jsx +2 -2
- package/lib/src/components/PageWizard/StatefulPageWizard.jsx +4 -4
- package/lib/src/components/ProgressIndicator/ProgressIndicator.jsx +2 -2
- package/lib/src/components/ResourceList/ResourceList.jsx +2 -2
- package/lib/src/components/SideNav/SideNav.jsx +12 -12
- package/lib/src/components/SimplePagination/SimplePagination.jsx +7 -7
- package/lib/src/components/Table/EmptyTable/EmptyTable.jsx +4 -4
- package/lib/src/components/Table/Pagination.jsx +2 -2
- package/lib/src/components/Table/StatefulTable.jsx +25 -25
- package/lib/src/components/Table/Table.jsx +38 -38
- package/lib/src/components/Table/TableBody/RowActionsCell/RowActionsCell.jsx +14 -21
- package/lib/src/components/Table/TableBody/RowActionsCell/RowActionsError.jsx +4 -4
- package/lib/src/components/Table/TableBody/TableBody.jsx +7 -7
- package/lib/src/components/Table/TableBody/TableBodyRow/TableBodyRow.jsx +24 -24
- package/lib/src/components/Table/TableCellRenderer/TableCellRenderer.jsx +2 -2
- package/lib/src/components/Table/TableHead/ColumnHeaderRow/ColumnHeaderRow.jsx +7 -7
- package/lib/src/components/Table/TableHead/ColumnHeaderSelect/ColumnHeaderSelect.jsx +4 -4
- package/lib/src/components/Table/TableHead/ColumnResize.jsx +6 -6
- package/lib/src/components/Table/TableHead/FilterHeaderRow/FilterHeaderRow.jsx +7 -7
- package/lib/src/components/Table/TableHead/TableHead.jsx +30 -30
- package/lib/src/components/Table/TableHead/TableHeader.js +3 -3
- package/lib/src/components/Table/TablePropTypes.js +2 -2
- package/lib/src/components/Table/TableSkeletonWithHeaders/TableSkeletonWithHeaders.jsx +2 -2
- package/lib/src/components/Table/TableToolbar/TableToolbar.jsx +17 -17
- package/lib/src/components/Table/TableToolbarSearch/TableToolbarSearch.jsx +3 -3
- package/lib/src/components/Table/baseTableReducer.js +18 -18
- package/lib/src/components/Table/tableReducer.js +34 -34
- package/lib/src/components/TableCard/TableCard.jsx +26 -26
- package/lib/src/components/TableCard/ThresholdIcon.jsx +2 -2
- package/lib/src/components/TileCatalog/StatefulTileCatalog.jsx +12 -12
- package/lib/src/components/TileCatalog/TileCatalog.jsx +8 -8
- package/lib/src/components/TileCatalog/TileGroup.jsx +2 -2
- package/lib/src/components/TileCatalog/tileCatalogReducer.js +3 -3
- package/lib/src/components/TileCatalogNew/TileCatalogNew.jsx +3 -3
- package/lib/src/components/TileCatalogNew/TilePagination/TilePagination.jsx +5 -5
- package/lib/src/components/TileGallery/StatefulTileGallery.jsx +17 -17
- package/lib/src/components/TileGallery/TileGallery.jsx +2 -2
- package/lib/src/components/TimePickerSpinner/TimePickerSpinner.jsx +12 -12
- package/lib/src/components/TimeSeriesCard/TimeSeriesCard.jsx +35 -35
- package/lib/src/components/ValueCard/Attribute.jsx +19 -19
- package/lib/src/components/ValueCard/UnitRenderer.jsx +4 -4
- package/lib/src/components/ValueCard/ValueCard.jsx +52 -52
- package/lib/src/components/ValueCard/ValueRenderer.jsx +12 -12
- package/lib/src/components/WizardInline/StatefulWizardInline.jsx +5 -5
- package/lib/src/components/WizardInline/WizardFooter/WizardFooter.jsx +5 -5
- package/lib/src/components/WizardInline/WizardHeader/WizardHeader.jsx +7 -7
- package/lib/src/components/WizardInline/WizardInline.jsx +14 -14
- package/lib/src/components/WizardModal/WizardModal.jsx +8 -8
- package/lib/src/constants/CardPropTypes.js +14 -14
- package/lib/src/index.js +144 -144
- package/lib/src/internal/deprecate.js +1 -1
- package/lib/src/utils/cardUtilityFunctions.js +10 -10
- package/lib/src/utils/componentUtilityFunctions.js +13 -13
- package/package.json +1 -1
- package/scss/components/GaugeCard/_gauge-card.scss +33 -6
- package/scss/components/Table/TableBody/RowActionsCell/_row-actions-cell.scss +25 -2
- package/scss/components/TextInput/_text-input.scss +4 -0
- package/umd/carbon-addons-iot-react.js +797 -1424
- package/es/node_modules/carbon-components-react/es/components/Accordion/Accordion.Skeleton.js +0 -96
- package/es/node_modules/carbon-components-react/es/components/Accordion/Accordion.js +0 -45
- package/es/node_modules/carbon-components-react/es/components/Accordion/AccordionItem.js +0 -163
- package/es/node_modules/carbon-components-react/es/components/SkeletonText/SkeletonText.js +0 -111
- package/es/node_modules/carbon-components-react/es/prop-types/deprecate.js +0 -30
- package/es/src/components/Accordion/AccordionItem.jsx +0 -180
- package/lib/node_modules/carbon-components-react/es/components/Accordion/Accordion.Skeleton.js +0 -101
- package/lib/node_modules/carbon-components-react/es/components/Accordion/Accordion.js +0 -50
- package/lib/node_modules/carbon-components-react/es/components/Accordion/AccordionItem.js +0 -168
- package/lib/node_modules/carbon-components-react/es/components/SkeletonText/SkeletonText.js +0 -116
- package/lib/node_modules/carbon-components-react/es/prop-types/deprecate.js +0 -34
- package/lib/src/components/Accordion/AccordionItem.jsx +0 -185
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Tabs, SkeletonText, Breadcrumb, BreadcrumbItem, Tooltip } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { Fragment } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import 'core-js/modules/es.symbol';
|
|
6
|
-
import { Information20, Edit20 } from '@carbon/icons-react';
|
|
7
6
|
import Button from '../Button/Button.jsx';
|
|
8
7
|
import 'core-js/modules/es.array.map';
|
|
8
|
+
import { Information20, Edit20 } from '@carbon/icons-react';
|
|
9
9
|
import deprecate from '../../internal/deprecate.js';
|
|
10
10
|
import 'core-js/modules/es.symbol.description';
|
|
11
11
|
|
|
@@ -83,7 +83,7 @@ var PageTitleBar = function PageTitleBar(_ref) {
|
|
|
83
83
|
//
|
|
84
84
|
var titleBarContent = content || tabs;
|
|
85
85
|
return /*#__PURE__*/React.createElement("div", {
|
|
86
|
-
className:
|
|
86
|
+
className: classnames(className, 'page-title-bar')
|
|
87
87
|
}, isLoading ? /*#__PURE__*/React.createElement(SkeletonText, {
|
|
88
88
|
className: "page-title-bar-loading",
|
|
89
89
|
heading: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProgressIndicator, ProgressStep } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import 'core-js/modules/es.symbol';
|
|
6
6
|
import { settings } from '../../constants/Settings.js';
|
|
7
7
|
import 'core-js/modules/es.array.map';
|
|
@@ -136,7 +136,7 @@ var PageWizard = function PageWizard(_ref) {
|
|
|
136
136
|
beforeFooterContent: beforeFooterContent
|
|
137
137
|
});
|
|
138
138
|
return /*#__PURE__*/React.createElement("div", {
|
|
139
|
-
className:
|
|
139
|
+
className: classnames(isProgressIndicatorVertical ? "".concat(iotPrefix, "--page-wizard") : null, className, hasStickyFooter ? "".concat(iotPrefix, "--page-wizard__sticky") : null)
|
|
140
140
|
}, steps.length > 1 ? /*#__PURE__*/React.createElement("div", {
|
|
141
141
|
className: isProgressIndicatorVertical ? "".concat(iotPrefix, "--page-wizard--progress--vertical") : "".concat(iotPrefix, "--page-wizard--progress--horizontal")
|
|
142
142
|
}, /*#__PURE__*/React.createElement(ProgressIndicator, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import _extends from '@babel/runtime/helpers/extends';
|
|
4
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
6
5
|
import 'core-js/modules/es.array.map';
|
|
6
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import 'core-js/modules/es.array.find-index';
|
|
8
8
|
import PageWizard, { childrenPropType } from './PageWizard.jsx';
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProgressIndicator, ProgressStep } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import 'core-js/modules/es.symbol';
|
|
6
6
|
import { settings } from '../../constants/Settings.js';
|
|
7
7
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -118,7 +118,7 @@ var ProgressIndicator$1 = function ProgressIndicator$$1(_ref3) {
|
|
|
118
118
|
|
|
119
119
|
var currentStep = matchingIndex > -1 ? matchingIndex : 0;
|
|
120
120
|
return /*#__PURE__*/React.createElement(StyledProgressIndicator, {
|
|
121
|
-
className:
|
|
121
|
+
className: classnames(className, isVerticalMode ? "".concat(prefix, "--progress--vertical") : '', "".concat(iotPrefix, "--progress-indicator")),
|
|
122
122
|
onChange: handleChange,
|
|
123
123
|
currentIndex: currentStep,
|
|
124
124
|
isVerticalMode: isVerticalMode
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import classnames from 'classnames';
|
|
4
4
|
import 'core-js/modules/es.array.filter';
|
|
5
5
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import { settings } from '../../constants/Settings.js';
|
|
@@ -168,7 +168,7 @@ var SideNav = function SideNav(_ref) {
|
|
|
168
168
|
};
|
|
169
169
|
|
|
170
170
|
return /*#__PURE__*/React.createElement(CarbonSideNav, _extends({
|
|
171
|
-
className:
|
|
171
|
+
className: classnames((_classnames = {}, _defineProperty(_classnames, "".concat(iotPrefix, "--side-nav--expanded"), isSideNavExpanded), _defineProperty(_classnames, "".concat(prefix, "--side-nav--expanded"), isSideNavExpanded), _classnames)),
|
|
172
172
|
translateById: translateById,
|
|
173
173
|
"aria-label": "Side navigation",
|
|
174
174
|
defaultExpanded: defaultExpanded
|
|
@@ -2,7 +2,7 @@ import sizeMe from 'react-sizeme';
|
|
|
2
2
|
import { Pagination } from 'carbon-components-react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import
|
|
5
|
+
import classnames from 'classnames';
|
|
6
6
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
7
7
|
import { settings } from '../../constants/Settings.js';
|
|
8
8
|
import _extends from '@babel/runtime/helpers/extends';
|
|
@@ -23,7 +23,7 @@ var SizedPagination = sizeMe({
|
|
|
23
23
|
rest = _objectWithoutProperties(_ref, ["isItemPerPageHidden", "size", "className"]);
|
|
24
24
|
|
|
25
25
|
return /*#__PURE__*/React.createElement(Pagination, _extends({}, rest, {
|
|
26
|
-
className:
|
|
26
|
+
className: classnames(className, "".concat(iotPrefix, "--pagination"), _defineProperty({}, "".concat(iotPrefix, "--pagination--hide-page"), isItemPerPageHidden)),
|
|
27
27
|
style: {
|
|
28
28
|
'--pagination-text-display': (size === null || size === void 0 ? void 0 : size.width) && (size === null || size === void 0 ? void 0 : size.width) < 500 ? 'none' : 'flex'
|
|
29
29
|
}
|
|
@@ -8,8 +8,8 @@ import 'core-js/modules/es.object.keys';
|
|
|
8
8
|
import 'core-js/modules/web.dom-collections.for-each';
|
|
9
9
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
10
10
|
import _extends from '@babel/runtime/helpers/extends';
|
|
11
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
12
11
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
13
13
|
import merge from 'lodash/merge';
|
|
14
14
|
import Table, { defaultProps } from './Table.jsx';
|
|
15
15
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TableContainer, Table } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { useState, useMemo } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import 'core-js/modules/es.symbol';
|
|
6
6
|
import 'core-js/modules/es.array.filter';
|
|
7
7
|
import 'core-js/modules/es.array.for-each';
|
|
@@ -12,11 +12,11 @@ import 'core-js/modules/web.dom-collections.for-each';
|
|
|
12
12
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
13
13
|
import { settings } from '../../constants/Settings.js';
|
|
14
14
|
import _extends from '@babel/runtime/helpers/extends';
|
|
15
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
16
15
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
17
16
|
import 'core-js/modules/es.array.concat';
|
|
18
17
|
import 'core-js/modules/es.array.map';
|
|
19
18
|
import 'core-js/modules/es.array.slice';
|
|
19
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
20
20
|
import 'core-js/modules/es.array.some';
|
|
21
21
|
import 'core-js/modules/es.regexp.exec';
|
|
22
22
|
import isNil from 'lodash/isNil';
|
|
@@ -384,7 +384,7 @@ var Table$1 = function Table$$1(props) {
|
|
|
384
384
|
var isFiltered = view.filters.length > 0 || !isNil(view.toolbar) && !isNil(view.toolbar.search) && !isNil(view.toolbar.search.value) && view.toolbar.search.value !== '';
|
|
385
385
|
return /*#__PURE__*/React.createElement(TableContainer, {
|
|
386
386
|
style: style,
|
|
387
|
-
className:
|
|
387
|
+
className: classnames(className, "".concat(iotPrefix, "--table-container"))
|
|
388
388
|
},
|
|
389
389
|
/* If there is no items being rendered in the toolbar, don't render the toolbar */
|
|
390
390
|
options.hasFilter || options.hasSearch || options.hasRowActions || options.hasRowCountInHeader || options.hasColumnSelection || actions.toolbar.onDownloadCSV || secondaryTitle || view.toolbar.customToolbarContent || tooltip ? /*#__PURE__*/React.createElement(TableToolbar, {
|
|
@@ -416,7 +416,7 @@ var Table$1 = function Table$$1(props) {
|
|
|
416
416
|
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
417
417
|
className: "addons-iot-table-container"
|
|
418
418
|
}, /*#__PURE__*/React.createElement(Table, _extends({
|
|
419
|
-
className:
|
|
419
|
+
className: classnames((_classNames = {}, _defineProperty(_classNames, "".concat(iotPrefix, "--data-table--resize"), options.hasResize), _defineProperty(_classNames, "".concat(iotPrefix, "--data-table--fixed"), options.hasResize && !options.useAutoTableLayoutForResize), _classNames))
|
|
420
420
|
}, others), /*#__PURE__*/React.createElement(TableHead, _extends({}, others, {
|
|
421
421
|
i18n: i18n,
|
|
422
422
|
lightweight: lightweight,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataTable, Icon, OverflowMenu, Loading, Button, OverflowMenuItem } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { Fragment } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import 'core-js/modules/es.array.filter';
|
|
6
6
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
7
7
|
import { settings } from '../../../../constants/Settings.js';
|
|
@@ -22,7 +22,7 @@ import { RowActionPropTypes, RowActionErrorPropTypes } from '../../TablePropType
|
|
|
22
22
|
import RowActionsError from './RowActionsError.jsx';
|
|
23
23
|
|
|
24
24
|
function _templateObject5() {
|
|
25
|
-
var data = _taggedTemplateLiteral(["\n &&& {\n margin-left: 0.5rem;\n svg {\n margin-left: ", ";\n }\n
|
|
25
|
+
var data = _taggedTemplateLiteral(["\n &&& {\n margin-left: 0.5rem;\n svg {\n margin-left: ", ";\n }\n }\n &&&:hover > svg {\n fill: ", ";\n }\n"]);
|
|
26
26
|
|
|
27
27
|
_templateObject5 = function _templateObject5() {
|
|
28
28
|
return data;
|
|
@@ -52,7 +52,7 @@ function _templateObject3() {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
function _templateObject2() {
|
|
55
|
-
var data = _taggedTemplateLiteral(["\n &&& {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n\n
|
|
55
|
+
var data = _taggedTemplateLiteral(["\n &&& {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n\n /* If the actions are focused on, they should show up */\n > *:focus {\n opacity: 1;\n }\n\n /* the spinner was a little too big and causing the row to scroll so need to scale down a bit */\n .bx--loading--small {\n width: 1.875rem;\n height: 1.875rem;\n }\n }\n"]);
|
|
56
56
|
|
|
57
57
|
_templateObject2 = function _templateObject2() {
|
|
58
58
|
return data;
|
|
@@ -73,21 +73,16 @@ function _templateObject() {
|
|
|
73
73
|
var TableCell = DataTable.TableCell;
|
|
74
74
|
var iotPrefix = settings.iotPrefix;
|
|
75
75
|
var StyledTableCell = styled(TableCell)(_templateObject());
|
|
76
|
-
var RowActionsContainer = styled.div(_templateObject2()
|
|
77
|
-
return props.visible ? 1 : 0;
|
|
78
|
-
});
|
|
76
|
+
var RowActionsContainer = styled.div(_templateObject2());
|
|
79
77
|
var OverflowMenuContent = styled.div(_templateObject3());
|
|
80
78
|
var StyledIcon = styled(Icon)(_templateObject4());
|
|
81
79
|
var StyledOverflowMenu = styled(function (_ref) {
|
|
82
80
|
var isRowExpanded = _ref.isRowExpanded,
|
|
83
|
-
|
|
84
|
-
other = _objectWithoutProperties(_ref, ["isRowExpanded", "isOpen"]);
|
|
81
|
+
other = _objectWithoutProperties(_ref, ["isRowExpanded"]);
|
|
85
82
|
|
|
86
83
|
return /*#__PURE__*/React.createElement(OverflowMenu, other);
|
|
87
84
|
})(_templateObject5(), function (props) {
|
|
88
85
|
return props.hideLabel !== 'false' ? '0' : '';
|
|
89
|
-
}, function (props) {
|
|
90
|
-
return props.isOpen || props.isRowExpanded ? 1 : 0;
|
|
91
86
|
}, COLORS.blue);
|
|
92
87
|
var propTypes = {
|
|
93
88
|
/** Need to render different styles if expanded */
|
|
@@ -221,11 +216,10 @@ var RowActionsCell = /*#__PURE__*/function (_React$Component) {
|
|
|
221
216
|
return actions && actions.length > 0 ? /*#__PURE__*/React.createElement(StyledTableCell, {
|
|
222
217
|
key: "".concat(id, "-row-actions-cell")
|
|
223
218
|
}, /*#__PURE__*/React.createElement(RowActionsContainer, {
|
|
224
|
-
visible: isRowExpanded || isRowActionRunning || rowActionsError,
|
|
225
219
|
isRowExpanded: isRowExpanded,
|
|
226
220
|
className: "".concat(iotPrefix, "--row-actions-container")
|
|
227
221
|
}, /*#__PURE__*/React.createElement("div", {
|
|
228
|
-
className: "".concat(iotPrefix, "--row-actions-container__background")
|
|
222
|
+
className: classnames("".concat(iotPrefix, "--row-actions-container__background"), _defineProperty({}, "".concat(iotPrefix, "--row-actions-container__background--overflow-menu-open"), isOpen))
|
|
229
223
|
}, rowActionsError ? /*#__PURE__*/React.createElement(RowActionsError, {
|
|
230
224
|
actionFailedText: actionFailedText,
|
|
231
225
|
learnMoreText: learnMoreText,
|
|
@@ -247,7 +241,7 @@ var RowActionsCell = /*#__PURE__*/function (_React$Component) {
|
|
|
247
241
|
key: "".concat(tableId, "-").concat(id, "-row-actions-button-").concat(actionId),
|
|
248
242
|
"data-testid": "".concat(tableId, "-").concat(id, "-row-actions-button-").concat(actionId),
|
|
249
243
|
kind: "ghost",
|
|
250
|
-
className:
|
|
244
|
+
className: classnames(_defineProperty({}, "".concat(iotPrefix, "--row-actions-cell-btn--icononly"), !labelText)),
|
|
251
245
|
onClick: function onClick(e) {
|
|
252
246
|
return _onClick(e, id, actionId, onApplyRowAction);
|
|
253
247
|
}
|
|
@@ -262,7 +256,6 @@ var RowActionsCell = /*#__PURE__*/function (_React$Component) {
|
|
|
262
256
|
},
|
|
263
257
|
isRowExpanded: isRowExpanded,
|
|
264
258
|
iconDescription: overflowMenuAria,
|
|
265
|
-
isOpen: isOpen,
|
|
266
259
|
onOpen: this.handleOpen,
|
|
267
260
|
onClose: this.handleClose
|
|
268
261
|
}, actions.filter(function (action) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataTable, Checkbox } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import { settings } from '../../../../constants/Settings.js';
|
|
7
7
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -51,7 +51,7 @@ function _templateObject4() {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
function _templateObject3() {
|
|
54
|
-
var data = _taggedTemplateLiteral(["\n &&& {\n ", "\n ", "\n cursor: pointer;\n td {\n div .bx--btn--ghost:hover {\n background: ", ";\n }\n }\n
|
|
54
|
+
var data = _taggedTemplateLiteral(["\n &&& {\n ", "\n ", "\n cursor: pointer;\n td {\n div .bx--btn--ghost:hover {\n background: ", ";\n }\n }\n\n ", "\n }\n"]);
|
|
55
55
|
|
|
56
56
|
_templateObject3 = function _templateObject3() {
|
|
57
57
|
return data;
|
|
@@ -71,7 +71,7 @@ function _templateObject2() {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
function _templateObject() {
|
|
74
|
-
var data = _taggedTemplateLiteral(["\n &&& {\n ", "\n :hover {\n td {\n
|
|
74
|
+
var data = _taggedTemplateLiteral(["\n &&& {\n ", "\n :hover {\n td {\n ", " /* turn off hover states if the row is set not selectable */\n }\n ", " /* turn off hover states if the row is set not selectable */\n }\n\n\n"]);
|
|
75
75
|
|
|
76
76
|
_templateObject = function _templateObject() {
|
|
77
77
|
return data;
|
|
@@ -325,7 +325,7 @@ var TableBodyRow = function TableBodyRow(_ref6) {
|
|
|
325
325
|
"data-offset": offset,
|
|
326
326
|
offset: offset,
|
|
327
327
|
align: align,
|
|
328
|
-
className:
|
|
328
|
+
className: classnames("data-table-".concat(align), _defineProperty({}, "".concat(iotPrefix, "--table__cell--truncate"), truncateCellText)),
|
|
329
329
|
width: initialColumnWidth
|
|
330
330
|
}, /*#__PURE__*/React.createElement(StyledNestedSpan, {
|
|
331
331
|
nestingOffset: offset
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import { settings } from '../../../constants/Settings.js';
|
|
7
7
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
@@ -34,7 +34,7 @@ var TableCellRenderer = function TableCellRenderer(_ref) {
|
|
|
34
34
|
allowTooltip = _ref.allowTooltip,
|
|
35
35
|
truncateCellText = _ref.truncateCellText;
|
|
36
36
|
var mySpanRef = React.createRef();
|
|
37
|
-
var myClasses =
|
|
37
|
+
var myClasses = classnames((_classnames = {}, _defineProperty(_classnames, "".concat(iotPrefix, "--table__cell-text--truncate"), wrapText !== 'always' && truncateCellText), _defineProperty(_classnames, "".concat(iotPrefix, "--table__cell-text--no-wrap"), wrapText === 'never'), _classnames));
|
|
38
38
|
|
|
39
39
|
var _useState = useState(false),
|
|
40
40
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import React, { Component } from 'react';
|
|
4
4
|
import 'core-js/modules/es.array.filter';
|
|
5
5
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
|
-
import { Settings16 } from '@carbon/icons-react';
|
|
7
6
|
import 'core-js/modules/es.array.concat';
|
|
8
7
|
import 'core-js/modules/es.array.map';
|
|
8
|
+
import { Settings16 } from '@carbon/icons-react';
|
|
9
9
|
import { defaultFunction } from '../../../../utils/componentUtilityFunctions.js';
|
|
10
10
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
11
11
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import { DragSource, DropTarget } from 'react-dnd';
|
|
6
6
|
import Draggable from '../../../../../node_modules/@carbon/icons-react/es/draggable/16.js';
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ var ColumnHeaderSelect = function ColumnHeaderSelect(_ref) {
|
|
|
14
14
|
_onClick = _ref.onClick,
|
|
15
15
|
isOver = _ref.isOver;
|
|
16
16
|
return /*#__PURE__*/React.createElement(Button, {
|
|
17
|
-
className:
|
|
17
|
+
className: classnames('column-header__btn', 'column-header__select', {
|
|
18
18
|
'column-header__select--hidden': isHidden,
|
|
19
19
|
'column-header__select--isOver': isOver
|
|
20
20
|
}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React, { useState, useImperativeHandle } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import classnames from 'classnames';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import { settings } from '../../../constants/Settings.js';
|
|
6
6
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
@@ -148,7 +148,7 @@ var ColumnResize = React.forwardRef(function (props, ref) {
|
|
|
148
148
|
width: dragHandleWidth,
|
|
149
149
|
left: leftPosition || (document.dir === 'rtl' ? 0 : 'auto')
|
|
150
150
|
},
|
|
151
|
-
className:
|
|
151
|
+
className: classnames("".concat(iotPrefix, "--column-resize-handle"), _defineProperty({}, "".concat(iotPrefix, "--column-resize-handle--dragging"), columnIsBeingResized))
|
|
152
152
|
})
|
|
153
153
|
);
|
|
154
154
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataTable, Checkbox } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { createRef, useState, useCallback, useLayoutEffect } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import 'core-js/modules/es.symbol';
|
|
6
6
|
import 'core-js/modules/es.array.filter';
|
|
7
7
|
import 'core-js/modules/es.array.for-each';
|
|
@@ -11,10 +11,10 @@ import 'core-js/modules/es.object.keys';
|
|
|
11
11
|
import 'core-js/modules/web.dom-collections.for-each';
|
|
12
12
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
13
13
|
import { settings } from '../../../constants/Settings.js';
|
|
14
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
15
14
|
import 'core-js/modules/es.array.concat';
|
|
16
15
|
import 'core-js/modules/es.array.map';
|
|
17
16
|
import 'core-js/modules/es.array.slice';
|
|
17
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
18
18
|
import 'core-js/modules/es.array.reduce';
|
|
19
19
|
import isNil from 'lodash/isNil';
|
|
20
20
|
import { tableTranslateWithId } from '../../../utils/componentUtilityFunctions.js';
|
|
@@ -255,15 +255,15 @@ var TableHead = function TableHead(_ref) {
|
|
|
255
255
|
return !col.isHidden;
|
|
256
256
|
}).slice(-1)[0];
|
|
257
257
|
return /*#__PURE__*/React.createElement(CarbonTableHead, {
|
|
258
|
-
className:
|
|
258
|
+
className: classnames({
|
|
259
259
|
lightweight: lightweight
|
|
260
260
|
}),
|
|
261
261
|
onMouseMove: hasResize ? forwardMouseEvent : null,
|
|
262
262
|
onMouseUp: hasResize ? forwardMouseEvent : null
|
|
263
263
|
}, /*#__PURE__*/React.createElement(TableRow, null, hasRowExpansion ? /*#__PURE__*/React.createElement(TableExpandHeader, {
|
|
264
|
-
className:
|
|
264
|
+
className: classnames(_defineProperty({}, "".concat(iotPrefix, "--table-expand-resize"), hasResize))
|
|
265
265
|
}) : null, hasRowSelection === 'multi' ? /*#__PURE__*/React.createElement(TableHeader, {
|
|
266
|
-
className:
|
|
266
|
+
className: classnames("".concat(iotPrefix, "--table-header-checkbox"), _defineProperty({}, "".concat(iotPrefix, "--table-header-checkbox-resize"), hasResize)),
|
|
267
267
|
translateWithId: function translateWithId() {
|
|
268
268
|
return tableTranslateWithId.apply(void 0, arguments);
|
|
269
269
|
}
|
|
@@ -307,7 +307,7 @@ var TableHead = function TableHead(_ref) {
|
|
|
307
307
|
},
|
|
308
308
|
sortDirection: hasSort ? sort.direction : 'NONE',
|
|
309
309
|
align: align,
|
|
310
|
-
className:
|
|
310
|
+
className: classnames("table-header-label-".concat(align), _defineProperty({
|
|
311
311
|
'table-header-sortable': matchingColumnMeta.isSortable
|
|
312
312
|
}, "".concat(iotPrefix, "--table-header-resize"), hasResize))
|
|
313
313
|
}, /*#__PURE__*/React.createElement(TableCellRenderer, {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import classnames from 'classnames';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import { settings } from 'carbon-components';
|
|
6
|
-
import { ArrowUp20, ArrowsVertical20 } from '@carbon/icons-react';
|
|
7
6
|
import _extends from '@babel/runtime/helpers/extends';
|
|
8
7
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
8
|
+
import { ArrowUp20, ArrowsVertical20 } from '@carbon/icons-react';
|
|
9
9
|
import 'core-js/modules/es.object.values';
|
|
10
10
|
|
|
11
11
|
var _sortDirections;
|
|
@@ -74,7 +74,7 @@ var TableHeader = React.forwardRef(function TableHeader(_ref2, ref) {
|
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
var className =
|
|
77
|
+
var className = classnames(headerClassName, (_cx = {}, _defineProperty(_cx, "".concat(prefix, "--table-sort"), true), _defineProperty(_cx, "".concat(prefix, "--table-sort--active"), isSortHeader && sortDirection !== sortStates.NONE), _defineProperty(_cx, "".concat(prefix, "--table-sort--ascending"), isSortHeader && sortDirection === sortStates.DESC), _cx));
|
|
78
78
|
var ariaSort = !isSortHeader ? 'none' : sortDirections[sortDirection];
|
|
79
79
|
return /*#__PURE__*/React.createElement("th", {
|
|
80
80
|
scope: scope,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataTable, Tooltip, Button } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import 'core-js/modules/es.symbol';
|
|
6
6
|
import 'core-js/modules/es.array.filter';
|
|
7
7
|
import 'core-js/modules/es.array.for-each';
|
|
@@ -11,11 +11,11 @@ import 'core-js/modules/es.object.keys';
|
|
|
11
11
|
import 'core-js/modules/web.dom-collections.for-each';
|
|
12
12
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
13
13
|
import { settings } from '../../../constants/Settings.js';
|
|
14
|
-
import { Download20, Column20, Filter20 } from '@carbon/icons-react';
|
|
15
14
|
import _extends from '@babel/runtime/helpers/extends';
|
|
16
15
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
17
16
|
import 'core-js/modules/es.array.concat';
|
|
18
17
|
import 'core-js/modules/es.array.map';
|
|
18
|
+
import { Download20, Column20, Filter20 } from '@carbon/icons-react';
|
|
19
19
|
import 'core-js/modules/es.regexp.exec';
|
|
20
20
|
import { tableTranslateWithId } from '../../../utils/componentUtilityFunctions.js';
|
|
21
21
|
import deprecate from '../../../internal/deprecate.js';
|
|
@@ -141,7 +141,7 @@ var TableToolbar = function TableToolbar(_ref) {
|
|
|
141
141
|
isDisabled = _ref$tableState.isDisabled,
|
|
142
142
|
totalItemsCount = _ref$tableState.totalItemsCount;
|
|
143
143
|
return /*#__PURE__*/React.createElement(CarbonTableToolbar, {
|
|
144
|
-
className:
|
|
144
|
+
className: classnames("".concat(iotPrefix, "--table-toolbar"), className)
|
|
145
145
|
}, /*#__PURE__*/React.createElement(TableBatchActions, {
|
|
146
146
|
className: "".concat(iotPrefix, "--table-batch-actions"),
|
|
147
147
|
onCancel: onCancelBatchAction,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { DataTable } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { useRef, useState, useEffect } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import { settings } from '../../../constants/Settings.js';
|
|
7
7
|
import _extends from '@babel/runtime/helpers/extends';
|
|
8
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
9
8
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
9
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
|
|
11
11
|
var iotPrefix = settings.iotPrefix;
|
|
12
12
|
var CarbonTableToolbarSearch = DataTable.TableToolbarSearch;
|
|
@@ -97,7 +97,7 @@ var TableToolbarSearch = function TableToolbarSearch(_ref) {
|
|
|
97
97
|
return /*#__PURE__*/React.createElement("div", {
|
|
98
98
|
tabIndex: "-1",
|
|
99
99
|
ref: toolbarSearch,
|
|
100
|
-
className:
|
|
100
|
+
className: classnames("".concat(iotPrefix, "--table-toolbar-search"), _defineProperty({}, "".concat(iotPrefix, "--table-toolbar-search__expanded"), expanded)),
|
|
101
101
|
onClick: onClick,
|
|
102
102
|
onKeyDown: onKeyDown,
|
|
103
103
|
role: "button"
|
|
@@ -6,9 +6,9 @@ import 'core-js/modules/es.object.get-own-property-descriptors';
|
|
|
6
6
|
import 'core-js/modules/es.object.keys';
|
|
7
7
|
import 'core-js/modules/web.dom-collections.for-each';
|
|
8
8
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
9
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
10
9
|
import 'core-js/modules/es.array.concat';
|
|
11
10
|
import 'core-js/modules/es.array.map';
|
|
11
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
12
12
|
import 'core-js/modules/es.object.entries';
|
|
13
13
|
import 'core-js/modules/es.array.find-index';
|
|
14
14
|
import update from 'immutability-helper';
|
|
@@ -6,8 +6,8 @@ import 'core-js/modules/es.object.get-own-property-descriptors';
|
|
|
6
6
|
import 'core-js/modules/es.object.keys';
|
|
7
7
|
import 'core-js/modules/web.dom-collections.for-each';
|
|
8
8
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
9
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
10
9
|
import 'core-js/modules/es.array.map';
|
|
10
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
11
11
|
import 'core-js/modules/es.array.includes';
|
|
12
12
|
import 'core-js/modules/es.array.iterator';
|
|
13
13
|
import 'core-js/modules/es.array.reduce';
|
|
@@ -9,11 +9,11 @@ import 'core-js/modules/es.object.keys';
|
|
|
9
9
|
import 'core-js/modules/web.dom-collections.for-each';
|
|
10
10
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
11
11
|
import _extends from '@babel/runtime/helpers/extends';
|
|
12
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
13
12
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
14
13
|
import 'core-js/modules/es.array.concat';
|
|
15
14
|
import 'core-js/modules/es.array.map';
|
|
16
15
|
import 'core-js/modules/es.array.slice';
|
|
16
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
17
17
|
import 'core-js/modules/es.regexp.exec';
|
|
18
18
|
import 'core-js/modules/es.string.search';
|
|
19
19
|
import useDeepCompareEffect from 'use-deep-compare-effect';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataTable, Tile, SkeletonText, RadioTile } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { Fragment } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import { settings } from '../../constants/Settings.js';
|
|
6
6
|
import _extends from '@babel/runtime/helpers/extends';
|
|
7
7
|
import 'core-js/modules/es.array.map';
|
|
@@ -101,7 +101,7 @@ var TileCatalog = function TileCatalog(_ref) {
|
|
|
101
101
|
var pageSize = pagination && pagination.pageSize ? pagination.pageSize : 10;
|
|
102
102
|
var totalTiles = pagination && pagination.totalItems ? pagination.totalItems : 10;
|
|
103
103
|
return /*#__PURE__*/React.createElement("div", {
|
|
104
|
-
className:
|
|
104
|
+
className: classnames(className, "".concat(iotPrefix, "--tile-catalog"))
|
|
105
105
|
}, /*#__PURE__*/React.createElement("div", {
|
|
106
106
|
className: "".concat(iotPrefix, "--tile-catalog--header")
|
|
107
107
|
}, search && search.placeHolderText ? /*#__PURE__*/React.createElement(TableToolbarSearch, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tile } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import { settings } from '../../constants/Settings.js';
|
|
6
6
|
|
|
7
7
|
var iotPrefix = settings.iotPrefix;
|
|
@@ -17,7 +17,7 @@ var TileGroup = function TileGroup(_ref) {
|
|
|
17
17
|
var tiles = _ref.tiles,
|
|
18
18
|
className = _ref.className;
|
|
19
19
|
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
className:
|
|
20
|
+
className: classnames(className, "".concat(iotPrefix, "--tile-group"))
|
|
21
21
|
}, tiles, /*#__PURE__*/React.createElement(Tile, {
|
|
22
22
|
className: "".concat(iotPrefix, "--greedy-tile")
|
|
23
23
|
}));
|
|
@@ -3,8 +3,8 @@ import { DataTable, Select, SelectItem } from 'carbon-components-react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { settings } from '../../constants/Settings.js';
|
|
6
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
7
6
|
import 'core-js/modules/es.array.map';
|
|
7
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
8
8
|
import 'core-js/modules/es.array.fill';
|
|
9
9
|
import TilePagination from './TilePagination/TilePagination.jsx';
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import classnames from 'classnames';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import { settings } from '../../../constants/Settings.js';
|
|
6
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
7
6
|
import 'core-js/modules/es.array.concat';
|
|
7
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
8
8
|
import 'core-js/modules/es.number.constructor';
|
|
9
9
|
import 'core-js/modules/es.string.iterator';
|
|
10
10
|
import 'core-js/modules/es.array.from';
|
|
@@ -49,7 +49,7 @@ var TilePagination = function TilePagination(_ref) {
|
|
|
49
49
|
onClick: function onClick() {
|
|
50
50
|
return page > 1 && _onChange(page - 1);
|
|
51
51
|
},
|
|
52
|
-
className:
|
|
52
|
+
className: classnames("".concat(prefix, "--pagination-nav__page"), "".concat(prefix, "--pagination-nav__page--direction"), _defineProperty({}, "".concat(prefix, "--pagination-nav__page--disabled"), page === 1)),
|
|
53
53
|
ariaDisabled: "true"
|
|
54
54
|
}, /*#__PURE__*/React.createElement("span", {
|
|
55
55
|
className: "".concat(prefix, "--pagination-nav__accessibility-label")
|
|
@@ -73,7 +73,7 @@ var TilePagination = function TilePagination(_ref) {
|
|
|
73
73
|
onClick: function onClick() {
|
|
74
74
|
return page < numPages && _onChange(page + 1);
|
|
75
75
|
},
|
|
76
|
-
className:
|
|
76
|
+
className: classnames("".concat(prefix, "--pagination-nav__page"), "".concat(prefix, "--pagination-nav__page--direction"), _defineProperty({}, "".concat(prefix, "--pagination-nav__page--disabled"), page === numPages))
|
|
77
77
|
}, /*#__PURE__*/React.createElement("span", {
|
|
78
78
|
className: "".concat(prefix, "--pagination-nav__accessibility-label")
|
|
79
79
|
}, i18n.ariaLabelNextPage), /*#__PURE__*/React.createElement("svg", {
|
|
@@ -100,7 +100,7 @@ var TilePagination = function TilePagination(_ref) {
|
|
|
100
100
|
onClick: function onClick() {
|
|
101
101
|
return _onChange(pageNumber);
|
|
102
102
|
},
|
|
103
|
-
className:
|
|
103
|
+
className: classnames("".concat(prefix, "--pagination-nav__page"), (_classnames3 = {}, _defineProperty(_classnames3, "".concat(prefix, "--pagination-nav__page--active"), page === pageNumber), _defineProperty(_classnames3, "".concat(prefix, "--pagination-nav__page--disabled"), page === pageNumber), _classnames3)),
|
|
104
104
|
ariaCurrent: i18n.ariaLabelPage,
|
|
105
105
|
ariaDisabled: page === pageNumber
|
|
106
106
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -2,11 +2,11 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import 'core-js/modules/es.symbol';
|
|
4
4
|
import 'core-js/modules/es.array.filter';
|
|
5
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
6
5
|
import { ButtonKinds } from '../../../node_modules/carbon-components-react/es/prop-types/types.js';
|
|
7
6
|
import Button from '../Button/Button.jsx';
|
|
8
7
|
import 'core-js/modules/es.array.concat';
|
|
9
8
|
import 'core-js/modules/es.array.map';
|
|
9
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import 'core-js/modules/es.regexp.constructor';
|
|
11
11
|
import 'core-js/modules/es.regexp.exec';
|
|
12
12
|
import 'core-js/modules/es.regexp.to-string';
|