carbon-addons-iot-react 2.149.0-next.52 → 2.149.0-next.53

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.149.0-next.53](https://github.com/carbon-design-system/carbon-addons-iot-react/compare/v2.149.0-next.52...v2.149.0-next.53) (2022-05-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **table:** show selected filter in date picker ([5dc0254](https://github.com/carbon-design-system/carbon-addons-iot-react/commit/5dc025449bf6c9cd91da5cde6142a8ebc0139b5d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.149.0-next.52](https://github.com/carbon-design-system/carbon-addons-iot-react/compare/v2.149.0-next.51...v2.149.0-next.52) (2022-05-16)
7
18
 
8
19
 
@@ -300,7 +300,7 @@ var TableToolbarAdvancedFilterFlyout = function TableToolbarAdvancedFilterFlyout
300
300
  key: "simple-filter-row-".concat(rowIndex),
301
301
  className: "".concat(iotPrefix, "--filter-flyout__simple-row")
302
302
  }, aRow.map(function (aColumn, columnIndex) {
303
- var _filters$find, _filterState$simple, _filterState$simple2;
303
+ var _filters$find, _filterState$simple2, _filterState$simple3;
304
304
 
305
305
  var column = columns.find(function (item) {
306
306
  return aColumn.columnId === item.id;
@@ -324,7 +324,7 @@ var TableToolbarAdvancedFilterFlyout = function TableToolbarAdvancedFilterFlyout
324
324
 
325
325
 
326
326
  if (column.isDate) {
327
- var _column$dateOptions, _column$dateOptions2;
327
+ var _column$dateOptions, _column$dateOptions2, _filterState$simple;
328
328
 
329
329
  return /*#__PURE__*/React__default.createElement(FormItem, {
330
330
  key: "simple-filter-item-".concat(rowIndex, "-").concat(columnIndex),
@@ -335,6 +335,7 @@ var TableToolbarAdvancedFilterFlyout = function TableToolbarAdvancedFilterFlyout
335
335
  locale: (column === null || column === void 0 ? void 0 : (_column$dateOptions = column.dateOptions) === null || _column$dateOptions === void 0 ? void 0 : _column$dateOptions.locale) || 'en',
336
336
  dateFormat: (column === null || column === void 0 ? void 0 : (_column$dateOptions2 = column.dateOptions) === null || _column$dateOptions2 === void 0 ? void 0 : _column$dateOptions2.dateFormat) || 'Y-m-d',
337
337
  id: "column-".concat(rowIndex, "-").concat(columnIndex),
338
+ value: filterState === null || filterState === void 0 ? void 0 : (_filterState$simple = filterState.simple) === null || _filterState$simple === void 0 ? void 0 : _filterState$simple[column.id],
338
339
  onChange: function onChange(evt) {
339
340
  setFilterState(function (prev) {
340
341
  return _objectSpread(_objectSpread({}, prev), {}, {
@@ -430,8 +431,8 @@ var TableToolbarAdvancedFilterFlyout = function TableToolbarAdvancedFilterFlyout
430
431
  });
431
432
  });
432
433
  },
433
- defaultValue: filterState === null || filterState === void 0 ? void 0 : (_filterState$simple = filterState.simple) === null || _filterState$simple === void 0 ? void 0 : _filterState$simple[column.id]
434
- }), filterState !== null && filterState !== void 0 && (_filterState$simple2 = filterState.simple) !== null && _filterState$simple2 !== void 0 && _filterState$simple2[column.id] ? /*#__PURE__*/React__default.createElement("div", {
434
+ defaultValue: filterState === null || filterState === void 0 ? void 0 : (_filterState$simple2 = filterState.simple) === null || _filterState$simple2 === void 0 ? void 0 : _filterState$simple2[column.id]
435
+ }), filterState !== null && filterState !== void 0 && (_filterState$simple3 = filterState.simple) !== null && _filterState$simple3 !== void 0 && _filterState$simple3[column.id] ? /*#__PURE__*/React__default.createElement("div", {
435
436
  role: "button",
436
437
  className: classnames("".concat(prefix, "--list-box__selection"), _defineProperty({}, "".concat(iotPrefix, "--clear-filters-button--disabled"), isDisabled)),
437
438
  tabIndex: isDisabled ? '-1' : '0',
@@ -312,7 +312,7 @@ var TableToolbarAdvancedFilterFlyout = function TableToolbarAdvancedFilterFlyout
312
312
  key: "simple-filter-row-".concat(rowIndex),
313
313
  className: "".concat(iotPrefix, "--filter-flyout__simple-row")
314
314
  }, aRow.map(function (aColumn, columnIndex) {
315
- var _filters$find, _filterState$simple, _filterState$simple2;
315
+ var _filters$find, _filterState$simple2, _filterState$simple3;
316
316
 
317
317
  var column = columns.find(function (item) {
318
318
  return aColumn.columnId === item.id;
@@ -336,7 +336,7 @@ var TableToolbarAdvancedFilterFlyout = function TableToolbarAdvancedFilterFlyout
336
336
 
337
337
 
338
338
  if (column.isDate) {
339
- var _column$dateOptions, _column$dateOptions2;
339
+ var _column$dateOptions, _column$dateOptions2, _filterState$simple;
340
340
 
341
341
  return /*#__PURE__*/React__default['default'].createElement(carbonComponentsReact.FormItem, {
342
342
  key: "simple-filter-item-".concat(rowIndex, "-").concat(columnIndex),
@@ -347,6 +347,7 @@ var TableToolbarAdvancedFilterFlyout = function TableToolbarAdvancedFilterFlyout
347
347
  locale: (column === null || column === void 0 ? void 0 : (_column$dateOptions = column.dateOptions) === null || _column$dateOptions === void 0 ? void 0 : _column$dateOptions.locale) || 'en',
348
348
  dateFormat: (column === null || column === void 0 ? void 0 : (_column$dateOptions2 = column.dateOptions) === null || _column$dateOptions2 === void 0 ? void 0 : _column$dateOptions2.dateFormat) || 'Y-m-d',
349
349
  id: "column-".concat(rowIndex, "-").concat(columnIndex),
350
+ value: filterState === null || filterState === void 0 ? void 0 : (_filterState$simple = filterState.simple) === null || _filterState$simple === void 0 ? void 0 : _filterState$simple[column.id],
350
351
  onChange: function onChange(evt) {
351
352
  setFilterState(function (prev) {
352
353
  return _objectSpread(_objectSpread({}, prev), {}, {
@@ -442,8 +443,8 @@ var TableToolbarAdvancedFilterFlyout = function TableToolbarAdvancedFilterFlyout
442
443
  });
443
444
  });
444
445
  },
445
- defaultValue: filterState === null || filterState === void 0 ? void 0 : (_filterState$simple = filterState.simple) === null || _filterState$simple === void 0 ? void 0 : _filterState$simple[column.id]
446
- }), filterState !== null && filterState !== void 0 && (_filterState$simple2 = filterState.simple) !== null && _filterState$simple2 !== void 0 && _filterState$simple2[column.id] ? /*#__PURE__*/React__default['default'].createElement("div", {
446
+ defaultValue: filterState === null || filterState === void 0 ? void 0 : (_filterState$simple2 = filterState.simple) === null || _filterState$simple2 === void 0 ? void 0 : _filterState$simple2[column.id]
447
+ }), filterState !== null && filterState !== void 0 && (_filterState$simple3 = filterState.simple) !== null && _filterState$simple3 !== void 0 && _filterState$simple3[column.id] ? /*#__PURE__*/React__default['default'].createElement("div", {
447
448
  role: "button",
448
449
  className: classnames__default['default']("".concat(prefix, "--list-box__selection"), _defineProperty__default['default']({}, "".concat(iotPrefix, "--clear-filters-button--disabled"), isDisabled)),
449
450
  tabIndex: isDisabled ? '-1' : '0',
package/package.json CHANGED
@@ -340,10 +340,10 @@
340
340
  "whatwg-fetch": "^3.0.0"
341
341
  },
342
342
  "sideEffects": false,
343
- "version": "2.149.0-next.52",
343
+ "version": "2.149.0-next.53",
344
344
  "resolutions": {
345
345
  "chokidar": "3.3.1",
346
346
  "react-grid-layout": "1.2.2"
347
347
  },
348
- "gitHead": "4dce4a4508c54cf4edfa36677d29bdcee2287bda"
348
+ "gitHead": "242e3c7484cd580e7888f9ed3faf5e7c2162a887"
349
349
  }
@@ -35725,7 +35725,7 @@
35725
35725
  key: "simple-filter-row-".concat(rowIndex),
35726
35726
  className: "".concat(iotPrefix$21, "--filter-flyout__simple-row")
35727
35727
  }, aRow.map(function (aColumn, columnIndex) {
35728
- var _filters$find, _filterState$simple, _filterState$simple2;
35728
+ var _filters$find, _filterState$simple2, _filterState$simple3;
35729
35729
 
35730
35730
  var column = columns.find(function (item) {
35731
35731
  return aColumn.columnId === item.id;
@@ -35749,7 +35749,7 @@
35749
35749
 
35750
35750
 
35751
35751
  if (column.isDate) {
35752
- var _column$dateOptions, _column$dateOptions2;
35752
+ var _column$dateOptions, _column$dateOptions2, _filterState$simple;
35753
35753
 
35754
35754
  return /*#__PURE__*/React__default['default'].createElement(carbonComponentsReact.FormItem, {
35755
35755
  key: "simple-filter-item-".concat(rowIndex, "-").concat(columnIndex),
@@ -35760,6 +35760,7 @@
35760
35760
  locale: (column === null || column === void 0 ? void 0 : (_column$dateOptions = column.dateOptions) === null || _column$dateOptions === void 0 ? void 0 : _column$dateOptions.locale) || 'en',
35761
35761
  dateFormat: (column === null || column === void 0 ? void 0 : (_column$dateOptions2 = column.dateOptions) === null || _column$dateOptions2 === void 0 ? void 0 : _column$dateOptions2.dateFormat) || 'Y-m-d',
35762
35762
  id: "column-".concat(rowIndex, "-").concat(columnIndex),
35763
+ value: filterState === null || filterState === void 0 ? void 0 : (_filterState$simple = filterState.simple) === null || _filterState$simple === void 0 ? void 0 : _filterState$simple[column.id],
35763
35764
  onChange: function onChange(evt) {
35764
35765
  setFilterState(function (prev) {
35765
35766
  return _objectSpread$1W(_objectSpread$1W({}, prev), {}, {
@@ -35855,8 +35856,8 @@
35855
35856
  });
35856
35857
  });
35857
35858
  },
35858
- defaultValue: filterState === null || filterState === void 0 ? void 0 : (_filterState$simple = filterState.simple) === null || _filterState$simple === void 0 ? void 0 : _filterState$simple[column.id]
35859
- }), filterState !== null && filterState !== void 0 && (_filterState$simple2 = filterState.simple) !== null && _filterState$simple2 !== void 0 && _filterState$simple2[column.id] ? /*#__PURE__*/React__default['default'].createElement("div", {
35859
+ defaultValue: filterState === null || filterState === void 0 ? void 0 : (_filterState$simple2 = filterState.simple) === null || _filterState$simple2 === void 0 ? void 0 : _filterState$simple2[column.id]
35860
+ }), filterState !== null && filterState !== void 0 && (_filterState$simple3 = filterState.simple) !== null && _filterState$simple3 !== void 0 && _filterState$simple3[column.id] ? /*#__PURE__*/React__default['default'].createElement("div", {
35860
35861
  role: "button",
35861
35862
  className: classnames$1("".concat(prefix$p, "--list-box__selection"), defineProperty$b({}, "".concat(iotPrefix$21, "--clear-filters-button--disabled"), isDisabled)),
35862
35863
  tabIndex: isDisabled ? '-1' : '0',