carbon-addons-iot-react 4.1.11 → 4.1.13
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.
|
@@ -43,7 +43,7 @@ import { createColumnsWithFormattedLinks, determineFilterFunction, determinePrec
|
|
|
43
43
|
import ThresholdIcon from './ThresholdIcon.js';
|
|
44
44
|
import { OverflowMenuVertical } from '@carbon/icons-react';
|
|
45
45
|
|
|
46
|
-
var _excluded = ["id", "title", "isExpanded", "content", "children", "size", "onCardAction", "values", "filters", "isEditable", "isResizable", "i18n", "tooltip", "locale", "timeRange", "timeRangeOptions", "availableActions", "isLoading", "testID", "testId", "className", "renderDateDropdownInPortal", "withToolbarTooltips", "defaultDateFormatPattern"];
|
|
46
|
+
var _excluded = ["id", "title", "isExpanded", "content", "children", "size", "onCardAction", "values", "filters", "isEditable", "isResizable", "i18n", "tooltip", "locale", "timeRange", "timeRangeOptions", "availableActions", "isLoading", "testID", "testId", "className", "renderDateDropdownInPortal", "withToolbarTooltips", "defaultDateFormatPattern", "extraActions"];
|
|
47
47
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
48
48
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
49
49
|
var iotPrefix = settings.iotPrefix;
|
|
@@ -113,6 +113,7 @@ var TableCard = function TableCard(_ref) {
|
|
|
113
113
|
renderDateDropdownInPortal = _ref.renderDateDropdownInPortal,
|
|
114
114
|
withToolbarTooltips = _ref.withToolbarTooltips,
|
|
115
115
|
defaultDateFormatPattern = _ref.defaultDateFormatPattern,
|
|
116
|
+
extraActions = _ref.extraActions,
|
|
116
117
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
117
118
|
var mergedI18n = _objectSpread(_objectSpread({}, defaultProps.i18n), i18n);
|
|
118
119
|
|
|
@@ -477,7 +478,8 @@ var TableCard = function TableCard(_ref) {
|
|
|
477
478
|
timeRangeOptions: timeRangeOptions,
|
|
478
479
|
renderDateDropdownInPortal: renderDateDropdownInPortal,
|
|
479
480
|
locale: locale,
|
|
480
|
-
id: id
|
|
481
|
+
id: id,
|
|
482
|
+
extraActions: extraActions
|
|
481
483
|
});
|
|
482
484
|
var resizeHandles = isResizable ? getResizeHandles(children) : [];
|
|
483
485
|
return /*#__PURE__*/React__default.createElement(Card, _extends({
|
|
@@ -161,7 +161,7 @@ var compareGrains = function compareGrains(grain1, grain2) {
|
|
|
161
161
|
return 1;
|
|
162
162
|
};
|
|
163
163
|
var getUpdatedCardSize = function getUpdatedCardSize(oldSize) {
|
|
164
|
-
var changedSize = oldSize === '
|
|
164
|
+
var changedSize = oldSize === 'XSMALLWIDE' ? 'SMALLWIDE' : oldSize === 'WIDE' ? 'MEDIUMWIDE' : oldSize === 'TALL' ? 'LARGETHIN' : oldSize === 'XLARGE' ? 'LARGEWIDE' : null;
|
|
165
165
|
var newSize = oldSize;
|
|
166
166
|
if (changedSize) {
|
|
167
167
|
{
|
|
@@ -55,7 +55,7 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
55
55
|
var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
56
56
|
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
57
57
|
|
|
58
|
-
var _excluded = ["id", "title", "isExpanded", "content", "children", "size", "onCardAction", "values", "filters", "isEditable", "isResizable", "i18n", "tooltip", "locale", "timeRange", "timeRangeOptions", "availableActions", "isLoading", "testID", "testId", "className", "renderDateDropdownInPortal", "withToolbarTooltips", "defaultDateFormatPattern"];
|
|
58
|
+
var _excluded = ["id", "title", "isExpanded", "content", "children", "size", "onCardAction", "values", "filters", "isEditable", "isResizable", "i18n", "tooltip", "locale", "timeRange", "timeRangeOptions", "availableActions", "isLoading", "testID", "testId", "className", "renderDateDropdownInPortal", "withToolbarTooltips", "defaultDateFormatPattern", "extraActions"];
|
|
59
59
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
60
60
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
61
61
|
var iotPrefix = Settings.settings.iotPrefix;
|
|
@@ -125,6 +125,7 @@ var TableCard = function TableCard(_ref) {
|
|
|
125
125
|
renderDateDropdownInPortal = _ref.renderDateDropdownInPortal,
|
|
126
126
|
withToolbarTooltips = _ref.withToolbarTooltips,
|
|
127
127
|
defaultDateFormatPattern = _ref.defaultDateFormatPattern,
|
|
128
|
+
extraActions = _ref.extraActions,
|
|
128
129
|
others = _objectWithoutProperties__default.default(_ref, _excluded);
|
|
129
130
|
var mergedI18n = _objectSpread(_objectSpread({}, defaultProps.i18n), i18n);
|
|
130
131
|
|
|
@@ -489,7 +490,8 @@ var TableCard = function TableCard(_ref) {
|
|
|
489
490
|
timeRangeOptions: timeRangeOptions,
|
|
490
491
|
renderDateDropdownInPortal: renderDateDropdownInPortal,
|
|
491
492
|
locale: locale,
|
|
492
|
-
id: id
|
|
493
|
+
id: id,
|
|
494
|
+
extraActions: extraActions
|
|
493
495
|
});
|
|
494
496
|
var resizeHandles = isResizable ? cardUtilityFunctions.getResizeHandles(children) : [];
|
|
495
497
|
return /*#__PURE__*/React__default.default.createElement(Card.default, _extends__default.default({
|
|
@@ -172,7 +172,7 @@ var compareGrains = function compareGrains(grain1, grain2) {
|
|
|
172
172
|
return 1;
|
|
173
173
|
};
|
|
174
174
|
var getUpdatedCardSize = function getUpdatedCardSize(oldSize) {
|
|
175
|
-
var changedSize = oldSize === '
|
|
175
|
+
var changedSize = oldSize === 'XSMALLWIDE' ? 'SMALLWIDE' : oldSize === 'WIDE' ? 'MEDIUMWIDE' : oldSize === 'TALL' ? 'LARGETHIN' : oldSize === 'XLARGE' ? 'LARGEWIDE' : null;
|
|
176
176
|
var newSize = oldSize;
|
|
177
177
|
if (changedSize) {
|
|
178
178
|
{
|
package/package.json
CHANGED
|
@@ -345,11 +345,11 @@
|
|
|
345
345
|
"whatwg-fetch": "^3.0.0"
|
|
346
346
|
},
|
|
347
347
|
"sideEffects": false,
|
|
348
|
-
"version": "4.1.
|
|
348
|
+
"version": "4.1.13",
|
|
349
349
|
"resolutions": {
|
|
350
350
|
"chokidar": "3.3.1",
|
|
351
351
|
"react-grid-layout": "1.2.2",
|
|
352
352
|
"got": "11.8.5"
|
|
353
353
|
},
|
|
354
|
-
"gitHead": "
|
|
354
|
+
"gitHead": "747bdfe4b2568b157ab8b55aca2255b90a9dd3c2"
|
|
355
355
|
}
|
|
@@ -263201,7 +263201,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
263201
263201
|
return 1;
|
|
263202
263202
|
};
|
|
263203
263203
|
var getUpdatedCardSize = function getUpdatedCardSize(oldSize) {
|
|
263204
|
-
var changedSize = oldSize === '
|
|
263204
|
+
var changedSize = oldSize === 'XSMALLWIDE' ? 'SMALLWIDE' : oldSize === 'WIDE' ? 'MEDIUMWIDE' : oldSize === 'TALL' ? 'LARGETHIN' : oldSize === 'XLARGE' ? 'LARGEWIDE' : null;
|
|
263205
263205
|
var newSize = oldSize;
|
|
263206
263206
|
if (changedSize) {
|
|
263207
263207
|
{
|
|
@@ -300855,7 +300855,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
300855
300855
|
};
|
|
300856
300856
|
var ThresholdIcon$1 = ThresholdIcon;
|
|
300857
300857
|
|
|
300858
|
-
var _excluded$l = ["id", "title", "isExpanded", "content", "children", "size", "onCardAction", "values", "filters", "isEditable", "isResizable", "i18n", "tooltip", "locale", "timeRange", "timeRangeOptions", "availableActions", "isLoading", "testID", "testId", "className", "renderDateDropdownInPortal", "withToolbarTooltips", "defaultDateFormatPattern"];
|
|
300858
|
+
var _excluded$l = ["id", "title", "isExpanded", "content", "children", "size", "onCardAction", "values", "filters", "isEditable", "isResizable", "i18n", "tooltip", "locale", "timeRange", "timeRangeOptions", "availableActions", "isLoading", "testID", "testId", "className", "renderDateDropdownInPortal", "withToolbarTooltips", "defaultDateFormatPattern", "extraActions"];
|
|
300859
300859
|
function ownKeys$P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
300860
300860
|
function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty$c(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
300861
300861
|
var iotPrefix$U = settings.iotPrefix;
|
|
@@ -300925,6 +300925,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
300925
300925
|
renderDateDropdownInPortal = _ref.renderDateDropdownInPortal,
|
|
300926
300926
|
withToolbarTooltips = _ref.withToolbarTooltips,
|
|
300927
300927
|
defaultDateFormatPattern = _ref.defaultDateFormatPattern,
|
|
300928
|
+
extraActions = _ref.extraActions,
|
|
300928
300929
|
others = _objectWithoutProperties$3(_ref, _excluded$l);
|
|
300929
300930
|
var mergedI18n = _objectSpread$P(_objectSpread$P({}, defaultProps$_.i18n), i18n);
|
|
300930
300931
|
|
|
@@ -301289,7 +301290,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
301289
301290
|
timeRangeOptions: timeRangeOptions,
|
|
301290
301291
|
renderDateDropdownInPortal: renderDateDropdownInPortal,
|
|
301291
301292
|
locale: locale,
|
|
301292
|
-
id: id
|
|
301293
|
+
id: id,
|
|
301294
|
+
extraActions: extraActions
|
|
301293
301295
|
});
|
|
301294
301296
|
var resizeHandles = isResizable ? getResizeHandles(children) : [];
|
|
301295
301297
|
return /*#__PURE__*/React$1.createElement(Card$1, _extends$3({
|