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
|
@@ -2,7 +2,7 @@ import sizeMe from 'react-sizeme';
|
|
|
2
2
|
import { SkeletonText, Tooltip } from 'carbon-components-react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React, { useMemo, useCallback, useState, useEffect } from 'react';
|
|
5
|
-
import
|
|
5
|
+
import classnames from 'classnames';
|
|
6
6
|
import 'core-js/modules/es.symbol';
|
|
7
7
|
import 'core-js/modules/es.array.filter';
|
|
8
8
|
import 'core-js/modules/es.array.for-each';
|
|
@@ -13,9 +13,9 @@ import 'core-js/modules/web.dom-collections.for-each';
|
|
|
13
13
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
14
14
|
import { settings } from '../../constants/Settings.js';
|
|
15
15
|
import _extends from '@babel/runtime/helpers/extends';
|
|
16
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
17
16
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
18
17
|
import 'core-js/modules/es.array.concat';
|
|
18
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
19
19
|
import 'core-js/modules/es.array.includes';
|
|
20
20
|
import 'core-js/modules/es.array.iterator';
|
|
21
21
|
import 'core-js/modules/es.object.to-string';
|
|
@@ -64,7 +64,7 @@ var CardWrapper = function CardWrapper(_ref) {
|
|
|
64
64
|
onTouchEnd: onTouchEnd,
|
|
65
65
|
onTouchStart: onTouchStart,
|
|
66
66
|
onScroll: onScroll,
|
|
67
|
-
className:
|
|
67
|
+
className: classnames(className, "".concat(iotPrefix, "--card--wrapper"))
|
|
68
68
|
}, validOthers), children);
|
|
69
69
|
};
|
|
70
70
|
/** Header components */
|
|
@@ -100,7 +100,7 @@ var CardContent = function CardContent(props) {
|
|
|
100
100
|
var height = "".concat(dimensions.y - CARD_TITLE_HEIGHT, "px");
|
|
101
101
|
return /*#__PURE__*/React.createElement("div", {
|
|
102
102
|
style: _defineProperty({}, "--card-content-height", height),
|
|
103
|
-
className:
|
|
103
|
+
className: classnames("".concat(iotPrefix, "--card--content"), _defineProperty({}, "".concat(iotPrefix, "--card--content--expanded"), isExpanded))
|
|
104
104
|
}, children);
|
|
105
105
|
};
|
|
106
106
|
|
|
@@ -321,7 +321,7 @@ var Card = function Card(props) {
|
|
|
321
321
|
height: 'calc(100% - 50px)',
|
|
322
322
|
width: 'calc(100% - 50px)'
|
|
323
323
|
},
|
|
324
|
-
className:
|
|
324
|
+
className: classnames("".concat(iotPrefix, "--card"), className)
|
|
325
325
|
}), !hideHeader && /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(CardTitle, {
|
|
326
326
|
title: title
|
|
327
327
|
}, hasTitleTooltip ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ToolbarItem, OverflowMenu, OverflowMenuItem } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { useState, useCallback } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import classnames from 'classnames';
|
|
5
5
|
import 'core-js/modules/es.array.filter';
|
|
6
6
|
import 'core-js/modules/es.object.keys';
|
|
7
7
|
import { settings } from '../../constants/Settings.js';
|
|
8
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
9
8
|
import 'core-js/modules/es.array.map';
|
|
9
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import 'core-js/modules/es.array.includes';
|
|
11
11
|
import 'core-js/modules/es.string.includes';
|
|
12
12
|
import EventSchedule from '../../../node_modules/@carbon/icons-react/es/event--schedule/20.js';
|
|
@@ -64,7 +64,7 @@ var CardRangePicker = function CardRangePicker(_ref) {
|
|
|
64
64
|
className: "".concat(iotPrefix, "--card--toolbar-timerange-label")
|
|
65
65
|
}, timeBoxLabels[timeRange]) : null, /*#__PURE__*/React.createElement(OverflowMenu, {
|
|
66
66
|
iconDescription: timeBoxLabels[timeRange],
|
|
67
|
-
className:
|
|
67
|
+
className: classnames("".concat(iotPrefix, "--card--toolbar-action"), "".concat(iotPrefix, "--card--toolbar-date-range-action")),
|
|
68
68
|
flipped: true,
|
|
69
69
|
title: i18n.overflowMenuDescription,
|
|
70
70
|
menuOptionsClass: "".concat(iotPrefix, "--card--overflow"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OverflowMenu, OverflowMenuItem } 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';
|
|
@@ -27,7 +27,7 @@ var ToolbarSVGWrapper = function ToolbarSVGWrapper(props) {
|
|
|
27
27
|
return /*#__PURE__*/React.createElement("button", {
|
|
28
28
|
type: "button",
|
|
29
29
|
onClick: onClick,
|
|
30
|
-
className:
|
|
30
|
+
className: classnames("".concat(iotPrefix, "--card--toolbar-action"), "".concat(iotPrefix, "--card--toolbar-svg-wrapper"))
|
|
31
31
|
}, children);
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -64,7 +64,7 @@ var CardToolbar = function CardToolbar(_ref) {
|
|
|
64
64
|
onCardAction = _ref.onCardAction,
|
|
65
65
|
className = _ref.className;
|
|
66
66
|
return isEditable ? /*#__PURE__*/React.createElement("div", {
|
|
67
|
-
className:
|
|
67
|
+
className: classnames(className, "".concat(iotPrefix, "--card--toolbar"))
|
|
68
68
|
}, (availableActions.edit || availableActions.clone || availableActions.delete) && /*#__PURE__*/React.createElement(OverflowMenu, {
|
|
69
69
|
flipped: true,
|
|
70
70
|
title: i18n.overflowMenuDescription
|
|
@@ -85,7 +85,7 @@ var CardToolbar = function CardToolbar(_ref) {
|
|
|
85
85
|
},
|
|
86
86
|
itemText: i18n.deleteCardLabel
|
|
87
87
|
}))) : /*#__PURE__*/React.createElement("div", {
|
|
88
|
-
className:
|
|
88
|
+
className: classnames(className, "".concat(iotPrefix, "--card--toolbar"))
|
|
89
89
|
}, availableActions.range ? /*#__PURE__*/React.createElement(CardRangePicker, {
|
|
90
90
|
width: width,
|
|
91
91
|
i18n: i18n,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Tooltip } from 'carbon-components-react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import classnames from 'classnames';
|
|
4
4
|
import 'core-js/modules/es.symbol';
|
|
5
5
|
import { settings } from '../../constants/Settings.js';
|
|
6
|
-
import { ErrorFilled24, WarningFilled24 } from '@carbon/icons-react';
|
|
7
6
|
import 'core-js/modules/es.array.concat';
|
|
7
|
+
import { ErrorFilled24, WarningFilled24 } from '@carbon/icons-react';
|
|
8
8
|
import { CARD_SIZES, CARD_CONTENT_PADDING, CARD_DATA_STATE } from '../../constants/LayoutConstants.js';
|
|
9
9
|
import 'core-js/modules/es.symbol.description';
|
|
10
10
|
import { ValueCardPropTypes, CardPropTypes } from '../../constants/CardPropTypes.js';
|
|
@@ -82,7 +82,7 @@ var DataStateRenderer = function DataStateRenderer(_ref2) {
|
|
|
82
82
|
'--container-padding': "".concat(CARD_CONTENT_PADDING, "px")
|
|
83
83
|
}
|
|
84
84
|
}, /*#__PURE__*/React.createElement("p", {
|
|
85
|
-
className:
|
|
85
|
+
className: classnames("".concat(dsPrefix, "-dashes"))
|
|
86
86
|
}, "--"), /*#__PURE__*/React.createElement("div", {
|
|
87
87
|
className: "".concat(dsPrefix, "-grid")
|
|
88
88
|
}, size === CARD_SIZES.SMALL || size === CARD_SIZES.SMALLWIDE || size === CARD_SIZES.MEDIUMTHIN ? renderDataStateGridIcon() : renderDataStateGridItems()));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ComposedModal, InlineNotification, ModalFooter, Loading, ModalHeader, ModalBody } 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 _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
|
-
import warning from 'warning';
|
|
7
6
|
import _extends from '@babel/runtime/helpers/extends';
|
|
8
7
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
9
8
|
import Button from '../Button/Button.jsx';
|
|
10
9
|
import 'core-js/modules/es.array.concat';
|
|
10
|
+
import warning from 'warning';
|
|
11
11
|
import { scrollErrorIntoView } from '../../utils/componentUtilityFunctions.js';
|
|
12
12
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
13
13
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
@@ -213,7 +213,7 @@ var ComposedModal$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
213
213
|
return isFetchingData ? /*#__PURE__*/React.createElement(Loading, null) : /*#__PURE__*/React.createElement(StyledModal, _extends({}, props, {
|
|
214
214
|
open: open,
|
|
215
215
|
onClose: this.doNotClose,
|
|
216
|
-
className:
|
|
216
|
+
className: classnames(className, {
|
|
217
217
|
'error-modal': type === 'warn',
|
|
218
218
|
'big-modal': isLarge
|
|
219
219
|
})
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { StructuredListWrapper, StructuredListCell, StructuredListHead, StructuredListRow, StructuredListBody } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { Fragment } from 'react';
|
|
4
|
-
import warning from 'warning';
|
|
5
4
|
import _extends from '@babel/runtime/helpers/extends';
|
|
6
5
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
7
6
|
import 'core-js/modules/es.array.concat';
|
|
8
7
|
import 'core-js/modules/es.array.map';
|
|
8
|
+
import warning from 'warning';
|
|
9
9
|
import 'core-js/modules/es.array.iterator';
|
|
10
10
|
import 'core-js/modules/es.object.to-string';
|
|
11
11
|
import 'core-js/modules/web.dom-collections.iterator';
|
|
@@ -9,8 +9,8 @@ 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';
|
|
13
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
14
14
|
import 'core-js/modules/es.array.iterator';
|
|
15
15
|
import 'core-js/modules/es.object.to-string';
|
|
16
16
|
import 'core-js/modules/web.dom-collections.iterator';
|
|
@@ -9,9 +9,9 @@ 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 'core-js/modules/es.array.concat';
|
|
14
13
|
import 'core-js/modules/es.array.map';
|
|
14
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
15
15
|
import 'core-js/modules/es.array.includes';
|
|
16
16
|
import 'core-js/modules/es.object.to-string';
|
|
17
17
|
import 'core-js/modules/es.string.includes';
|
|
@@ -9,9 +9,9 @@ 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.map';
|
|
14
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
15
15
|
import 'core-js/modules/es.array.reduce';
|
|
16
16
|
import 'core-js/modules/es.array.some';
|
|
17
17
|
import { DASHBOARD_BREAKPOINTS, DASHBOARD_COLUMNS, CARD_DIMENSIONS, GUTTER, ROW_HEIGHT } from '../../constants/LayoutConstants.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TooltipDefinition, OrderedList, ListItem, FormGroup, RadioButtonGroup, RadioButton, NumberInput, Select, SelectItem, DatePicker, DatePickerInput, Button } 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 '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,12 +11,12 @@ 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 { Calendar16 } from '@carbon/icons-react';
|
|
15
14
|
import _extends from '@babel/runtime/helpers/extends';
|
|
16
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
17
15
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
18
16
|
import 'core-js/modules/es.array.concat';
|
|
19
17
|
import 'core-js/modules/es.array.map';
|
|
18
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
19
|
+
import { Calendar16 } from '@carbon/icons-react';
|
|
20
20
|
import 'core-js/modules/es.number.constructor';
|
|
21
21
|
import 'core-js/modules/es.regexp.exec';
|
|
22
22
|
import moment from 'moment';
|
|
@@ -670,7 +670,7 @@ var __unstableDateTimePicker = function __unstableDateTimePicker(_ref) {
|
|
|
670
670
|
"aria-label": strings.calendarLabel,
|
|
671
671
|
className: "".concat(iotPrefix, "--date-time-picker__icon")
|
|
672
672
|
})), /*#__PURE__*/React.createElement("div", {
|
|
673
|
-
className:
|
|
673
|
+
className: classnames("".concat(iotPrefix, "--date-time-picker__menu"), _defineProperty({}, "".concat(iotPrefix, "--date-time-picker__menu-expanded"), isExpanded)),
|
|
674
674
|
role: "listbox"
|
|
675
675
|
}, /*#__PURE__*/React.createElement("div", {
|
|
676
676
|
className: "".concat(iotPrefix, "--date-time-picker__menu-scroll")
|
|
@@ -687,7 +687,7 @@ var __unstableDateTimePicker = function __unstableDateTimePicker(_ref) {
|
|
|
687
687
|
onClick: function onClick() {
|
|
688
688
|
return onPresetClick(preset);
|
|
689
689
|
},
|
|
690
|
-
className:
|
|
690
|
+
className: classnames("".concat(iotPrefix, "--date-time-picker__listitem ").concat(iotPrefix, "--date-time-picker__listitem--preset"), _defineProperty({}, "".concat(iotPrefix, "--date-time-picker__listitem--preset-selected"), selectedPreset === preset.offset))
|
|
691
691
|
}, strings.presetLabels[i] || preset.label);
|
|
692
692
|
})) : /*#__PURE__*/React.createElement("div", null, showRelativeOption ? /*#__PURE__*/React.createElement(FormGroup, {
|
|
693
693
|
legendText: strings.customRangeLabel,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import classnames from 'classnames';
|
|
3
3
|
import 'core-js/modules/es.symbol';
|
|
4
4
|
import 'core-js/modules/es.array.filter';
|
|
5
5
|
import 'core-js/modules/es.array.for-each';
|
|
@@ -10,12 +10,13 @@ import 'core-js/modules/web.dom-collections.for-each';
|
|
|
10
10
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
11
11
|
import { settings } from '../../constants/Settings.js';
|
|
12
12
|
import _extends from '@babel/runtime/helpers/extends';
|
|
13
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
14
13
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
15
14
|
import 'core-js/modules/es.array.concat';
|
|
16
15
|
import 'core-js/modules/es.array.map';
|
|
16
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
17
17
|
import 'core-js/modules/es.array.iterator';
|
|
18
18
|
import 'core-js/modules/es.object.to-string';
|
|
19
|
+
import 'core-js/modules/es.regexp.to-string';
|
|
19
20
|
import 'core-js/modules/web.dom-collections.iterator';
|
|
20
21
|
import { CARD_CONTENT_PADDING } from '../../constants/LayoutConstants.js';
|
|
21
22
|
import { CardPropTypes, GaugeCardPropTypes } from '../../constants/CardPropTypes.js';
|
|
@@ -27,14 +28,14 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
27
28
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
28
29
|
var iotPrefix = settings.iotPrefix; // r value of the circle in SVG
|
|
29
30
|
|
|
30
|
-
var radius =
|
|
31
|
+
var radius = 36; // radius doubled plus stroke
|
|
32
|
+
|
|
33
|
+
var gaugeSize = radius * 2 + 8; // circumference of SVG.
|
|
31
34
|
|
|
32
|
-
var
|
|
35
|
+
var circum = 2 * Math.PI * radius;
|
|
33
36
|
var getStrokeDash = function getStrokeDash() {
|
|
34
37
|
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
35
|
-
//
|
|
36
|
-
var circum = 2 * Math.PI * radius; // length of stroke to match percentage
|
|
37
|
-
|
|
38
|
+
// length of stroke to match percentage
|
|
38
39
|
return value * circum / 100;
|
|
39
40
|
};
|
|
40
41
|
var getColor = function getColor(gauge, value) {
|
|
@@ -118,24 +119,24 @@ var GaugeCard = function GaugeCard(_ref) {
|
|
|
118
119
|
tooltip: tooltip,
|
|
119
120
|
isLoading: isLoading
|
|
120
121
|
}), /*#__PURE__*/React.createElement("div", {
|
|
121
|
-
className:
|
|
122
|
+
className: classnames("".concat(iotPrefix, "--gauge-container"), className),
|
|
122
123
|
style: myStyles
|
|
123
124
|
}, dataState && /*#__PURE__*/React.createElement(DataStateRenderer, {
|
|
124
125
|
dataState: dataState,
|
|
125
126
|
size: size,
|
|
126
127
|
id: id
|
|
127
128
|
}), !dataState && gauges.map(function (gauge, i) {
|
|
128
|
-
var
|
|
129
|
+
var _classnames5;
|
|
129
130
|
|
|
130
131
|
var _getColor = getColor(gauge, values[gauge.dataSourceId]),
|
|
131
|
-
color = _getColor.color
|
|
132
|
-
grade = _getColor.grade;
|
|
132
|
+
color = _getColor.color;
|
|
133
133
|
|
|
134
|
+
var valueLength = values[gauge.dataSourceId] && values[gauge.dataSourceId].toString().length;
|
|
134
135
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
135
136
|
key: "".concat(iotPrefix, "-gauge-").concat(i)
|
|
136
137
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
137
138
|
"aria-labelledby": "gauge-label",
|
|
138
|
-
className:
|
|
139
|
+
className: classnames("".concat(iotPrefix, "--gauge"), _defineProperty({}, "".concat(iotPrefix, "--gauge__loaded"), loadedState), className),
|
|
139
140
|
percent: "0",
|
|
140
141
|
style: {
|
|
141
142
|
'--gauge-value': values[gauge.dataSourceId] || 0,
|
|
@@ -143,6 +144,7 @@ var GaugeCard = function GaugeCard(_ref) {
|
|
|
143
144
|
'--gauge-colors': color,
|
|
144
145
|
'--gauge-bg': gauge.backgroundColor,
|
|
145
146
|
'--stroke-dash': getStrokeDash(values[gauge.dataSourceId]) || 0,
|
|
147
|
+
'--stroke-dash-array': circum,
|
|
146
148
|
'--gauge-size': "".concat(gaugeSize, "px"),
|
|
147
149
|
'--gauge-trend-color': gauge.trend.color
|
|
148
150
|
}
|
|
@@ -158,17 +160,12 @@ var GaugeCard = function GaugeCard(_ref) {
|
|
|
158
160
|
r: radius
|
|
159
161
|
}), /*#__PURE__*/React.createElement("text", {
|
|
160
162
|
id: "gauge-label",
|
|
161
|
-
className:
|
|
163
|
+
className: classnames("".concat(iotPrefix, "--gauge-value"), "".concat(iotPrefix, "--gauge-value__centered"), _defineProperty({}, "".concat(iotPrefix, "--gauge-value-sm"), valueLength === 4), _defineProperty({}, "".concat(iotPrefix, "--gauge-value-md"), valueLength === 3), _defineProperty({}, "".concat(iotPrefix, "--gauge-value-lg"), valueLength <= 2)),
|
|
162
164
|
x: gaugeSize / 2,
|
|
163
165
|
y: "33",
|
|
164
166
|
textAnchor: "middle"
|
|
165
|
-
}, /*#__PURE__*/React.createElement("tspan", null, values[gauge.dataSourceId]
|
|
166
|
-
className: "".concat(iotPrefix, "--gauge-
|
|
167
|
-
x: gaugeSize / 2,
|
|
168
|
-
y: "48",
|
|
169
|
-
textAnchor: "middle"
|
|
170
|
-
}, /*#__PURE__*/React.createElement("tspan", null, grade))), values[gauge.trend.dataSourceId] && /*#__PURE__*/React.createElement("div", {
|
|
171
|
-
className: cx("".concat(iotPrefix, "--gauge-trend"), (_classnames3 = {}, _defineProperty(_classnames3, "".concat(iotPrefix, "--gauge-trend__up"), gauge.trend.trend === 'up'), _defineProperty(_classnames3, "".concat(iotPrefix, "--gauge-trend__down"), gauge.trend.trend === 'down'), _classnames3)),
|
|
167
|
+
}, /*#__PURE__*/React.createElement("tspan", null, values[gauge.dataSourceId]), /*#__PURE__*/React.createElement("tspan", null, gauge.units))), values[gauge.trend.dataSourceId] && /*#__PURE__*/React.createElement("div", {
|
|
168
|
+
className: classnames("".concat(iotPrefix, "--gauge-trend"), (_classnames5 = {}, _defineProperty(_classnames5, "".concat(iotPrefix, "--gauge-trend__up"), gauge.trend.trend === 'up'), _defineProperty(_classnames5, "".concat(iotPrefix, "--gauge-trend__down"), gauge.trend.trend === 'down'), _classnames5)),
|
|
172
169
|
key: "".concat(gauge.trend.dataSourceId, "-").concat(i)
|
|
173
170
|
}, /*#__PURE__*/React.createElement("p", {
|
|
174
171
|
style: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React, { useState, useRef } from 'react';
|
|
3
3
|
import { settings } from 'carbon-components';
|
|
4
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
4
|
import 'core-js/modules/es.array.concat';
|
|
5
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
6
6
|
import { keyCodes } from '../../../constants/KeyCodeConstants.js';
|
|
7
7
|
import '../../../../node_modules/carbon-components-react/es/components/UIShell/Content.js';
|
|
8
8
|
import '../../../../node_modules/carbon-components-react/es/components/UIShell/Header.js';
|
|
@@ -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 _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import { settings } from 'carbon-components';
|
|
6
6
|
import _extends from '@babel/runtime/helpers/extends';
|
|
@@ -83,7 +83,7 @@ var HeaderActionMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
83
83
|
'aria-label': ariaLabel,
|
|
84
84
|
'aria-labelledby': ariaLabelledBy
|
|
85
85
|
};
|
|
86
|
-
var className =
|
|
86
|
+
var className = classnames("".concat(prefix, "--header__submenu"), customClassName); // Prevents the a element from navigating to it's href target
|
|
87
87
|
|
|
88
88
|
var handleDefaultClick = function handleDefaultClick(event) {
|
|
89
89
|
event.preventDefault();
|
|
@@ -107,7 +107,7 @@ var HeaderActionMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
107
107
|
"aria-haspopup": "menu" // eslint-disable-line jsx-a11y/aria-proptypes
|
|
108
108
|
,
|
|
109
109
|
"aria-expanded": isExpanded,
|
|
110
|
-
className:
|
|
110
|
+
className: classnames("".concat(prefix, "--header__menu-item"), "".concat(prefix, "--header__menu-title")),
|
|
111
111
|
href: "",
|
|
112
112
|
onKeyDown: this.handleOnKeyDown,
|
|
113
113
|
onClick: handleDefaultClick,
|
|
@@ -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.symbol';
|
|
5
5
|
import 'core-js/modules/es.array.filter';
|
|
6
6
|
import 'core-js/modules/es.array.for-each';
|
|
@@ -90,9 +90,9 @@ var HeaderActionPanel = function HeaderActionPanel(_ref) {
|
|
|
90
90
|
tabIndex: "-1",
|
|
91
91
|
key: "panel-".concat(index),
|
|
92
92
|
"aria-label": "Header Panel",
|
|
93
|
-
className: item.label !== APP_SWITCHER ?
|
|
93
|
+
className: item.label !== APP_SWITCHER ? classnames('action-btn__headerpanel', {
|
|
94
94
|
'action-btn__headerpanel--closed': !isExpanded
|
|
95
|
-
}) :
|
|
95
|
+
}) : classnames("".concat(carbonPrefix, "--app-switcher"), _defineProperty({}, item.childContent[0].className, item.childContent[0].className)),
|
|
96
96
|
expanded: isExpanded
|
|
97
97
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
98
98
|
"aria-label": item.label
|
|
@@ -2,8 +2,8 @@ import { Breadcrumb, SkeletonText, BreadcrumbItem, Tooltip } from 'carbon-compon
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { Fragment } from 'react';
|
|
4
4
|
import 'core-js/modules/es.symbol';
|
|
5
|
-
import warning from 'warning';
|
|
6
5
|
import 'core-js/modules/es.array.map';
|
|
6
|
+
import warning from 'warning';
|
|
7
7
|
import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import 'core-js/modules/es.symbol.description';
|
|
@@ -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 _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import { settings } from '../../constants/Settings.js';
|
|
7
7
|
import _extends from '@babel/runtime/helpers/extends';
|
|
@@ -49,7 +49,7 @@ var IconSwitch = React.forwardRef(function (props, ref) {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
var classes =
|
|
52
|
+
var classes = classnames(className, "".concat(iotPrefix, "--icon-switch"), "".concat(iotPrefix, "--icon-switch--").concat(size), _defineProperty({}, "".concat(iotPrefix, "--icon-switch--unselected"), !selected));
|
|
53
53
|
var commonProps = {
|
|
54
54
|
onClick: handleClick,
|
|
55
55
|
onKeyDown: handleKeyDown,
|
|
@@ -2,8 +2,8 @@ import { Icon } from 'carbon-components-react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import 'core-js/modules/es.object.keys';
|
|
5
|
-
import warning from 'warning';
|
|
6
5
|
import 'core-js/modules/es.array.concat';
|
|
6
|
+
import warning from 'warning';
|
|
7
7
|
import 'core-js/modules/es.object.to-string';
|
|
8
8
|
import 'core-js/modules/es.regexp.to-string';
|
|
9
9
|
import icons from '../../utils/bundledIcons.js';
|
|
@@ -10,9 +10,9 @@ import 'core-js/modules/es.object.keys';
|
|
|
10
10
|
import 'core-js/modules/web.dom-collections.for-each';
|
|
11
11
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
12
12
|
import _extends from '@babel/runtime/helpers/extends';
|
|
13
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
14
13
|
import 'core-js/modules/es.array.concat';
|
|
15
14
|
import 'core-js/modules/es.array.map';
|
|
15
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
16
16
|
import useDeepCompareEffect from 'use-deep-compare-effect';
|
|
17
17
|
import Hotspot, { propTypes } from './Hotspot.jsx';
|
|
18
18
|
import ImageControls from './ImageControls.jsx';
|
|
@@ -3,10 +3,10 @@ import React, { useState, useCallback, useEffect, useRef } from 'react';
|
|
|
3
3
|
import 'core-js/modules/es.array.filter';
|
|
4
4
|
import 'core-js/modules/es.array.for-each';
|
|
5
5
|
import 'core-js/modules/web.dom-collections.for-each';
|
|
6
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
7
6
|
import 'core-js/modules/es.array.concat';
|
|
8
7
|
import 'core-js/modules/es.array.slice';
|
|
9
8
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
9
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import 'core-js/modules/es.array.includes';
|
|
11
11
|
import 'core-js/modules/es.string.includes';
|
|
12
12
|
import isNil from 'lodash/isNil';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SkeletonText } from 'carbon-components-react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { forwardRef } 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';
|
|
@@ -160,7 +160,7 @@ var List = forwardRef(function (props, ref) {
|
|
|
160
160
|
return renderItemAndChildren(item, 0);
|
|
161
161
|
});
|
|
162
162
|
return /*#__PURE__*/React.createElement("div", {
|
|
163
|
-
className:
|
|
163
|
+
className: classnames("".concat(iotPrefix, "--list"), _defineProperty({}, "".concat(iotPrefix, "--list__full-height"), isFullHeight))
|
|
164
164
|
}, /*#__PURE__*/React.createElement(ListHeader, {
|
|
165
165
|
className: "".concat(iotPrefix, "--list--header"),
|
|
166
166
|
title: title,
|
|
@@ -169,7 +169,7 @@ var List = forwardRef(function (props, ref) {
|
|
|
169
169
|
i18n: i18n,
|
|
170
170
|
isLoading: isLoading
|
|
171
171
|
}), /*#__PURE__*/React.createElement("div", {
|
|
172
|
-
className:
|
|
172
|
+
className: classnames(_defineProperty({}, "".concat(iotPrefix, "--list--content__full-height"), isFullHeight), "".concat(iotPrefix, "--list--content"))
|
|
173
173
|
}, !isLoading ? listItems : /*#__PURE__*/React.createElement(SkeletonText, {
|
|
174
174
|
className: "".concat(iotPrefix, "--list--skeleton"),
|
|
175
175
|
width: "90%"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Icon } 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 'core-js/modules/es.array.concat';
|
|
@@ -20,7 +20,7 @@ var ListItemWrapper = function ListItemWrapper(_ref) {
|
|
|
20
20
|
return isSelectable ? /*#__PURE__*/React.createElement("div", {
|
|
21
21
|
role: "button",
|
|
22
22
|
tabIndex: 0,
|
|
23
|
-
className:
|
|
23
|
+
className: classnames("".concat(iotPrefix, "--list-item"), "".concat(iotPrefix, "--list-item__selectable"), _defineProperty({}, "".concat(iotPrefix, "--list-item__selected"), selected), _defineProperty({}, "".concat(iotPrefix, "--list-item__large"), isLargeRow)),
|
|
24
24
|
onKeyPress: function onKeyPress(_ref2) {
|
|
25
25
|
var key = _ref2.key;
|
|
26
26
|
return key === 'Enter' && onSelect(id);
|
|
@@ -29,7 +29,7 @@ var ListItemWrapper = function ListItemWrapper(_ref) {
|
|
|
29
29
|
onSelect(id);
|
|
30
30
|
}
|
|
31
31
|
}, children) : /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className:
|
|
32
|
+
className: classnames("".concat(iotPrefix, "--list-item"), _defineProperty({}, "".concat(iotPrefix, "--list-item__large"), isLargeRow))
|
|
33
33
|
}, children);
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -152,14 +152,14 @@ var ListItem = function ListItem(_ref3) {
|
|
|
152
152
|
isLargeRow: isLargeRow,
|
|
153
153
|
onSelect: onSelect
|
|
154
154
|
}, renderNestingOffset(), renderExpander(), /*#__PURE__*/React.createElement("div", {
|
|
155
|
-
className:
|
|
155
|
+
className: classnames("".concat(iotPrefix, "--list-item--content"), _defineProperty({}, "".concat(iotPrefix, "--list-item--content__selected"), selected), _defineProperty({}, "".concat(iotPrefix, "--list-item--content__large"), isLargeRow)),
|
|
156
156
|
ref: selectedItemRef
|
|
157
157
|
}, renderIcon(), /*#__PURE__*/React.createElement("div", {
|
|
158
|
-
className:
|
|
158
|
+
className: classnames("".concat(iotPrefix, "--list-item--content--values"), _defineProperty({}, "".concat(iotPrefix, "--list-item--content--values__large"), isLargeRow))
|
|
159
159
|
}, isLargeRow ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
160
160
|
className: "".concat(iotPrefix, "--list-item--content--values--main ").concat(iotPrefix, "--list-item--content--values--main__large")
|
|
161
161
|
}, /*#__PURE__*/React.createElement("div", {
|
|
162
|
-
className:
|
|
162
|
+
className: classnames("".concat(iotPrefix, "--list-item--content--values--value"), _defineProperty({}, "".concat(iotPrefix, "--list-item--category"), isCategory)),
|
|
163
163
|
title: value
|
|
164
164
|
}, value), renderRowActions()), secondaryValue ? /*#__PURE__*/React.createElement("div", {
|
|
165
165
|
title: secondaryValue,
|
|
@@ -167,7 +167,7 @@ var ListItem = function ListItem(_ref3) {
|
|
|
167
167
|
}, secondaryValue) : null) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
168
168
|
className: "".concat(iotPrefix, "--list-item--content--values--main")
|
|
169
169
|
}, /*#__PURE__*/React.createElement("div", {
|
|
170
|
-
className:
|
|
170
|
+
className: classnames("".concat(iotPrefix, "--list-item--content--values--value"), _defineProperty({}, "".concat(iotPrefix, "--list-item--category"), isCategory)),
|
|
171
171
|
title: value
|
|
172
172
|
}, value), secondaryValue ? /*#__PURE__*/React.createElement("div", {
|
|
173
173
|
title: secondaryValue,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import 'core-js/modules/es.array.filter';
|
|
4
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
4
|
import 'core-js/modules/es.array.concat';
|
|
6
5
|
import 'core-js/modules/es.array.slice';
|
|
7
6
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
7
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
8
8
|
import 'core-js/modules/es.regexp.exec';
|
|
9
9
|
import 'core-js/modules/es.string.search';
|
|
10
10
|
import List from '../List.jsx';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StructuredListWrapper, StructuredListBody, StructuredListRow, StructuredListCell, Link, InlineLoading } 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';
|
|
@@ -48,7 +48,7 @@ var ListCard = function ListCard(_ref) {
|
|
|
48
48
|
size: size,
|
|
49
49
|
onScroll: handleScroll
|
|
50
50
|
}, others), /*#__PURE__*/React.createElement("div", {
|
|
51
|
-
className:
|
|
51
|
+
className: classnames('list-card', className),
|
|
52
52
|
style: {
|
|
53
53
|
paddingTop: 0,
|
|
54
54
|
paddingRight: CARD_CONTENT_PADDING,
|
|
@@ -9,11 +9,11 @@ import 'core-js/modules/es.object.get-own-property-descriptors';
|
|
|
9
9
|
import 'core-js/modules/es.object.keys';
|
|
10
10
|
import 'core-js/modules/web.dom-collections.for-each';
|
|
11
11
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
12
|
-
import warning from 'warning';
|
|
13
12
|
import _extends from '@babel/runtime/helpers/extends';
|
|
14
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
15
13
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
16
14
|
import Button from '../Button/Button.jsx';
|
|
15
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
16
|
+
import warning from 'warning';
|
|
17
17
|
import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
|
|
18
18
|
import styled from 'styled-components';
|
|
19
19
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|