vueless 0.0.457 → 0.0.459

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.459",
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
  });
@@ -234,7 +234,7 @@ const elementId = props.id || useId();
234
234
 
235
235
  const { moneyInputAttrs } = useAttrs(props);
236
236
 
237
- const { formattedValue, rawValue, setValue } = useFormatCurrency(`#${elementId}`, () => ({
237
+ const { formattedValue, rawValue, setValue } = useFormatCurrency(elementId, () => ({
238
238
  minFractionDigits: props.minFractionDigits,
239
239
  maxFractionDigits: props.maxFractionDigits,
240
240
  decimalSeparator: props.decimalSeparator,
@@ -17,7 +17,7 @@ export default function useFormatCurrency(elementId, options) {
17
17
  );
18
18
 
19
19
  onMounted(() => {
20
- inputElement = document.querySelector(elementId);
20
+ inputElement = document.getElementById(elementId);
21
21
  inputElement.addEventListener("input", onInput);
22
22
 
23
23
  onInput(formattedValue.value);
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.459",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",