@v2coding/ui 0.1.19 → 0.1.20

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.
@@ -10926,8 +10926,18 @@ var addColumnType = function addColumnType(type, config) {
10926
10926
  var ColumnType$1 = ColumnType;
10927
10927
  var DefaultTypes = {
10928
10928
  default: function _default(_ref) {
10929
- var cellValue = _ref.cellValue;
10930
- return cellValue;
10929
+ var cellValue = _ref.cellValue,
10930
+ attrs = _ref.attrs,
10931
+ props = _ref.props;
10932
+ var fallback = attrs.fallback || props.fallback;
10933
+ var isEmpty = (attrs === null || attrs === void 0 ? void 0 : attrs.isEmpty) || Objects.isEmpty;
10934
+ var isEmptyValue = false;
10935
+
10936
+ if (typeof isEmpty === 'function') {
10937
+ isEmptyValue = isEmpty(cellValue);
10938
+ }
10939
+
10940
+ return isEmptyValue ? fallback : cellValue;
10931
10941
  },
10932
10942
  date: function date(_ref2) {
10933
10943
  var cellValue = _ref2.cellValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v2coding/ui",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "",
5
5
 
6
6
  "main": "dist/v2coding-ui.ssr.js",