@tak-ps/vue-tabler 3.4.0 → 3.5.0

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/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v3.5.0
14
+
15
+ - :rocket: Add `TablerNone` component for use when a list or property is empty
16
+
13
17
  ### v3.4.0
14
18
 
15
19
  - :rocket: Add `TablerSchema` component for creating forms from basic JSON Schemas
@@ -0,0 +1,49 @@
1
+ <template>
2
+ <div class='card-body'>
3
+ <div class='d-flex justify-content-center' :class='{
4
+ "mt-4 mb-2": !compact
5
+ }'>
6
+ <NotesOffIcon v-if='compact' width='32' height='32' />
7
+ <NotesOffIcon v-else width='48' height='48' />
8
+ </div>
9
+
10
+ <div class='text-center' :class='{
11
+ "mb-4 mt-2": !compact
12
+ }'>
13
+ <div>No <span v-text='label'/></div>
14
+ </div>
15
+
16
+ <div v-if='create' @click='$emit("create")' class='d-flex justify-content-center my-4' :class='{
17
+ "my-4": !compact
18
+ }'>
19
+ <div class='btn btn-primary'><span>Create <span v-text='label'/></span></div>
20
+ </div>
21
+ </div>
22
+ </template>
23
+
24
+ <script>
25
+ import {
26
+ NotesOffIcon
27
+ } from 'vue-tabler-icons'
28
+
29
+ export default {
30
+ name: 'TablerNone',
31
+ props: {
32
+ label: {
33
+ type: String,
34
+ default: 'Items'
35
+ },
36
+ compact: {
37
+ type: Boolean,
38
+ default: false
39
+ },
40
+ create: {
41
+ type: Boolean,
42
+ default: true
43
+ },
44
+ },
45
+ components: {
46
+ NotesOffIcon
47
+ }
48
+ }
49
+ </script>
package/lib.js CHANGED
@@ -1,3 +1,4 @@
1
+ export { default as TablerNone } from './components/None.vue'
1
2
  export { default as TablerError } from './components/Err.vue'
2
3
  export { default as TablerList } from './components/List.vue'
3
4
  export { default as TablerHelp } from './components/Help.vue'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.4.0",
4
+ "version": "3.5.0",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",