adminforth 1.6.3-next.12 → 1.6.3-next.14

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.
@@ -46,7 +46,7 @@
46
46
  <label v-if="!$slots.item" :for="item.value">{{ item.label }}</label>
47
47
  </div>
48
48
  <div v-if="!filteredItems.length" class="px-4 py-2 cursor-pointer text-gray-400 dark:text-gray-300">
49
- {{ $t('No results found') }}
49
+ {{ options.length ? $t('No results found') : $t('No items here') }}
50
50
  </div>
51
51
 
52
52
  <div v-if="$slots['extra-item']" class="px-4 py-2 dark:text-gray-400">
@@ -398,9 +398,9 @@ function onSortButtonClick(event, field) {
398
398
  } else {
399
399
  const sortField = sort.value[sortIndex];
400
400
  if (sortField.direction === 'asc') {
401
- sort.value[sortIndex].direction = 'desc';
401
+ sort.value = sort.value.map((s) => s.field === field ? {field, direction: 'desc'} : s);
402
402
  } else {
403
- sort.value.splice(sortIndex, 1);
403
+ sort.value = sort.value.filter((s) => s.field !== field);
404
404
  }
405
405
  }
406
406
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.6.3-next.12",
3
+ "version": "1.6.3-next.14",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",