vueless 0.0.457 → 0.0.458

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.457",
3
+ "version": "0.0.458",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -118,7 +118,7 @@
118
118
  </th>
119
119
 
120
120
  <th
121
- v-for="(column, index) in normalizedColumns"
121
+ v-for="(column, index) in visibleColumns"
122
122
  :key="index"
123
123
  v-bind="headerCellBaseAttrs"
124
124
  :class="cx([headerCellBaseAttrs.class, column.thClass])"
@@ -469,6 +469,10 @@ const isFooterSticky = computed(
469
469
 
470
470
  const normalizedColumns = computed(() => normalizeColumns(props.columns));
471
471
 
472
+ const visibleColumns = computed(() => {
473
+ return normalizedColumns.value.filter((column) => !column.isHidden);
474
+ });
475
+
472
476
  const colsCount = computed(() => {
473
477
  return props.columns.length + 1;
474
478
  });
@@ -4,7 +4,7 @@ export function normalizeColumns(columns) {
4
4
 
5
5
  export function getFilteredRow(row, columns) {
6
6
  const filteredRow = Object.entries(row).filter((item) => {
7
- const isShownColumn = columns.some((column) => column.key === item[0]);
7
+ const isShownColumn = columns.some((column) => column.key === item[0] && !column.isHidden);
8
8
 
9
9
  if (isShownColumn) return item;
10
10
  });
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.457",
4
+ "version": "0.0.458",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",