@neovici/cosmoz-omnitable 8.2.2 → 8.2.3

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.
@@ -223,7 +223,7 @@ class Omnitable extends hauntedPolymer(useOmnitable)(mixin({ isEmpty }, translat
223
223
  /**
224
224
  * Specific columns to enable
225
225
  */
226
- enabledColumns: { type: Array },
226
+ enabledColumns: { type: Array, notify: true },
227
227
 
228
228
  /**
229
229
  * Whether bottom-bar has actions.
@@ -38,7 +38,7 @@ const
38
38
  }
39
39
 
40
40
  const columns = Array.isArray(enabledColumns)
41
- ? domColumns.filter(column => enabledColumns.includes(column.name))
41
+ ? domColumns.filter(column => enabledColumns.includes(column.name))
42
42
  : domColumns.filter(column => !column.disabled);
43
43
 
44
44
  // eslint-disable-next-line max-lines-per-function
@@ -133,6 +133,8 @@ const
133
133
  };
134
134
  }, []);
135
135
 
136
+ useEffect(() => setColumns(domColumnsToConfig(host, { enabledColumns })), [enabledColumns]);
137
+
136
138
  return columns;
137
139
  };
138
140
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-omnitable",
3
- "version": "8.2.2",
3
+ "version": "8.2.3",
4
4
  "description": "[![Build Status](https://travis-ci.org/Neovici/cosmoz-omnitable.svg?branch=master)](https://travis-ci.org/Neovici/cosmoz-omnitable)",
5
5
  "keywords": [
6
6
  "web-components"