@true-engineering/true-react-common-ui-kit 3.47.0 → 3.49.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.
@@ -19048,7 +19048,7 @@
19048
19048
  if (trueReactPlatformHelpers.isEmpty(value)) {
19049
19049
  return /* @__PURE__ */ jsx(Fragment, {});
19050
19050
  }
19051
- if (filter.getSelectedValueView !== void 0) {
19051
+ if (trueReactPlatformHelpers.isNotEmpty(filter.getSelectedValueView)) {
19052
19052
  return /* @__PURE__ */ jsx("span", {
19053
19053
  className: classes.text,
19054
19054
  children: filter.getSelectedValueView(value)
@@ -19117,22 +19117,6 @@
19117
19117
  children: intervals.join(" ")
19118
19118
  });
19119
19119
  }
19120
- if (isMultiple) {
19121
- return /* @__PURE__ */ jsx(Fragment, {
19122
- children: Array.isArray(value) && value.length > 0 && /* @__PURE__ */ jsxs(Fragment, {
19123
- children: [
19124
- /* @__PURE__ */ jsx("span", {
19125
- className: classes.text,
19126
- children: displayValue(value[0])
19127
- }),
19128
- /* @__PURE__ */ jsx("span", {
19129
- className: classes.count,
19130
- children: value.length > 1 && " (+".concat(value.length - 1, ")")
19131
- })
19132
- ]
19133
- })
19134
- });
19135
- }
19136
19120
  if (isDate) {
19137
19121
  var from = value.from, to = value.to, periodType = value.periodType, label = value.label;
19138
19122
  var hasFrom = from !== void 0 && from !== null;
@@ -19163,6 +19147,24 @@
19163
19147
  children: range.join(" ")
19164
19148
  });
19165
19149
  }
19150
+ if (isMultiple) {
19151
+ var _filter_getSelectedValue;
19152
+ var convertValue = (_filter_getSelectedValue = filter.getSelectedValue) !== null && _filter_getSelectedValue !== void 0 ? _filter_getSelectedValue : displayValue;
19153
+ return /* @__PURE__ */ jsx(Fragment, {
19154
+ children: Array.isArray(value) && value.length > 0 && /* @__PURE__ */ jsxs(Fragment, {
19155
+ children: [
19156
+ /* @__PURE__ */ jsx("span", {
19157
+ className: classes.text,
19158
+ children: convertValue(value[0])
19159
+ }),
19160
+ /* @__PURE__ */ jsx("span", {
19161
+ className: classes.count,
19162
+ children: value.length > 1 && " (+".concat(value.length - 1, ")")
19163
+ })
19164
+ ]
19165
+ })
19166
+ });
19167
+ }
19166
19168
  if (isRange && Array.isArray(value)) {
19167
19169
  var rangeValue = value;
19168
19170
  var rangeValueFrom = rangeValue[0];
@@ -26284,7 +26286,7 @@
26284
26286
  return _array_like_to_array$7(o, minLen);
26285
26287
  }
26286
26288
  function FlexibleTableRowInner(param) {
26287
- var item = param.item, index = param.index, config = param.config, columns = param.columns, uniqueField = param.uniqueField, renderMode = param.renderMode, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isFocusable = param.isFocusable, isFocusable = _param_isFocusable === void 0 ? false : _param_isFocusable, _param_isFirstColumnSticky = param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, rowAttributes = param.rowAttributes, _param_isExpandableRowComponentInitiallyOpen = param.isExpandableRowComponentInitiallyOpen, isExpandableRowComponentInitiallyOpen = _param_isExpandableRowComponentInitiallyOpen === void 0 ? false : _param_isExpandableRowComponentInitiallyOpen, tweakStyles = param.tweakStyles, expandableRowComponent = param.expandableRowComponent, onRowHover = param.onRowHover, onRowClick = param.onRowClick;
26289
+ var item = param.item, index = param.index, config = param.config, columns = param.columns, uniqueField = param.uniqueField, renderMode = param.renderMode, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isFocusable = param.isFocusable, isFocusable = _param_isFocusable === void 0 ? false : _param_isFocusable, _param_isFirstColumnSticky = param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, rowAttributes = param.rowAttributes, _param_isExpandableRowComponentInitiallyOpen = param.isExpandableRowComponentInitiallyOpen, isExpandableRowComponentInitiallyOpen = _param_isExpandableRowComponentInitiallyOpen === void 0 ? false : _param_isExpandableRowComponentInitiallyOpen, rowRef = param.rowRef, tweakStyles = param.tweakStyles, expandableRowComponent = param.expandableRowComponent, onRowHover = param.onRowHover, onRowClick = param.onRowClick;
26288
26290
  var classes = useStyles$h({
26289
26291
  theme: tweakStyles
26290
26292
  });
@@ -26361,6 +26363,7 @@
26361
26363
  return /* @__PURE__ */ jsxs(Fragment, {
26362
26364
  children: [
26363
26365
  /* @__PURE__ */ jsx(Table.Row, _object_spread_props$k(_object_spread$l({
26366
+ ref: rowRef,
26364
26367
  className: clsx(classes.root, (_obj2 = {}, _define_property$m(_obj2, classes.active, isActive), _define_property$m(_obj2, classes.editable, isEditable), _define_property$m(_obj2, classes.clickable, isClickable), _obj2))
26365
26368
  }, !isLoading && {
26366
26369
  onClick: handleRowClick,