adminforth 1.1.24 → 1.1.26

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.
@@ -66,6 +66,7 @@
66
66
  </RouterLink>
67
67
 
68
68
  <button
69
+ v-if="listResource?.options?.allowedActions?.filter"
69
70
  class="flex gap-1 items-center py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 rounded-default"
70
71
  @click="()=>{filtersShow = !filtersShow}"
71
72
  >
@@ -6,7 +6,7 @@
6
6
  v-model="search"
7
7
  @focus="showDropdown = true"
8
8
  class="block w-full pl-3 pr-10 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 sm:text-sm transition duration-150 ease-in-out dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
9
- :placeholder="selectedItems.length ? '' : 'Select...'"
9
+ :placeholder="selectedItems.length ? '' : placeholder || 'Select...'"
10
10
  />
11
11
  <div class="absolute inset-y-0 left-2 flex items-center pr-2 flex-wrap">
12
12
  {{ }}
@@ -67,6 +67,11 @@ const props = defineProps({
67
67
  type: Boolean,
68
68
  default: false,
69
69
  },
70
+ placeholder: {
71
+ type: String,
72
+ default: '',
73
+
74
+ },
70
75
  });
71
76
 
72
77
  const emit = defineEmits(['update:modelValue']);
@@ -44,14 +44,14 @@
44
44
  </div>
45
45
  </td>
46
46
  <td class="px-6 py-4 whitespace-nowrap whitespace-pre-wrap relative">
47
-
48
47
  <Dropdown
49
48
  single
50
49
  v-if="column.foreignResource"
51
50
  :options="columnOptions[column.name] || []"
51
+ :placeholder = "columnOptions[column.name].length || 'There are no options available'"
52
52
  :modelValue="currentValues[column.name]"
53
53
  @update:modelValue="setCurrentValue(column.name, $event)"
54
- />
54
+ ></Dropdown>
55
55
  <Dropdown
56
56
  single
57
57
  v-else-if="column.enum"
@@ -62,6 +62,7 @@
62
62
  <button
63
63
  class="flex gap-1 items-center py-1 px-3 me-2 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 rounded-default"
64
64
  @click="()=>{filtersShow = !filtersShow}"
65
+ v-if="coreStore.resource?.options?.allowedActions?.filter"
65
66
  >
66
67
  <IconFilterOutline class="w-4 h-4 me-2"/>
67
68
  Filter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -66,6 +66,7 @@
66
66
  </RouterLink>
67
67
 
68
68
  <button
69
+ v-if="listResource?.options?.allowedActions?.filter"
69
70
  class="flex gap-1 items-center py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 rounded-default"
70
71
  @click="()=>{filtersShow = !filtersShow}"
71
72
  >
@@ -6,7 +6,7 @@
6
6
  v-model="search"
7
7
  @focus="showDropdown = true"
8
8
  class="block w-full pl-3 pr-10 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 sm:text-sm transition duration-150 ease-in-out dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
9
- :placeholder="selectedItems.length ? '' : 'Select...'"
9
+ :placeholder="selectedItems.length ? '' : placeholder || 'Select...'"
10
10
  />
11
11
  <div class="absolute inset-y-0 left-2 flex items-center pr-2 flex-wrap">
12
12
  {{ }}
@@ -67,6 +67,11 @@ const props = defineProps({
67
67
  type: Boolean,
68
68
  default: false,
69
69
  },
70
+ placeholder: {
71
+ type: String,
72
+ default: '',
73
+
74
+ },
70
75
  });
71
76
 
72
77
  const emit = defineEmits(['update:modelValue']);
@@ -44,14 +44,14 @@
44
44
  </div>
45
45
  </td>
46
46
  <td class="px-6 py-4 whitespace-nowrap whitespace-pre-wrap relative">
47
-
48
47
  <Dropdown
49
48
  single
50
49
  v-if="column.foreignResource"
51
50
  :options="columnOptions[column.name] || []"
51
+ :placeholder = "columnOptions[column.name].length || 'There are no options available'"
52
52
  :modelValue="currentValues[column.name]"
53
53
  @update:modelValue="setCurrentValue(column.name, $event)"
54
- />
54
+ ></Dropdown>
55
55
  <Dropdown
56
56
  single
57
57
  v-else-if="column.enum"
@@ -62,6 +62,7 @@
62
62
  <button
63
63
  class="flex gap-1 items-center py-1 px-3 me-2 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 rounded-default"
64
64
  @click="()=>{filtersShow = !filtersShow}"
65
+ v-if="coreStore.resource?.options?.allowedActions?.filter"
65
66
  >
66
67
  <IconFilterOutline class="w-4 h-4 me-2"/>
67
68
  Filter