@tak-ps/vue-tabler 3.55.2 → 3.56.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,14 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v3.56.0
14
+
15
+ - :rocket: Add ability to hide advanced
16
+
17
+ ### v3.55.3
18
+
19
+ - :bug: Dynamic loading causes vite to load all in production mode
20
+
13
21
  ### v3.55.2
14
22
 
15
23
  - :bug: Switch to `setup` for IconButton
@@ -31,7 +31,7 @@
31
31
  <div><span v-text='err.message' /></div>
32
32
  </div>
33
33
 
34
- <template v-if='err.body || err.stack'>
34
+ <template v-if='advanced && (err.body || err.stack)'>
35
35
  <div class='py-2 px-3'>
36
36
  <div
37
37
  class='subheader d-flex align-items-center cursor-pointer'
@@ -83,6 +83,10 @@ export default {
83
83
  type: Boolean,
84
84
  default: false
85
85
  },
86
+ advanced: {
87
+ type: Boolean,
88
+ default: true
89
+ },
86
90
  },
87
91
  data: function() {
88
92
  return {
@@ -10,10 +10,14 @@
10
10
  </template>
11
11
  <template v-else>
12
12
  <TablerIconButton
13
- icon='IconTrash'
14
13
  title='Delete'
15
14
  @click.stop.prevent='modal = true'
16
- />
15
+ >
16
+ <IconTrash
17
+ :size='32'
18
+ :stroke='1'
19
+ />
20
+ </tablericonbutton>
17
21
  </template>
18
22
 
19
23
  <TablerModal v-if='modal'>
@@ -1,40 +1,21 @@
1
1
  <template>
2
- <div
3
- tabindex='0'
4
- role='button'
5
- v-tooltip='title'
6
- class='cursor-pointer hover-button rounded'
7
- >
8
- <IconButton
9
- :title='title'
10
- :size='size'
11
- :stroke='stroke'
12
- />
13
- </div>
2
+ <div
3
+ v-tooltip='title'
4
+ tabindex='0'
5
+ role='button'
6
+ class='cursor-pointer hover-button rounded'
7
+ >
8
+ <slot />
9
+ </div>
14
10
  </template>
15
11
 
16
12
  <script setup>
17
- import { defineAsyncComponent, defineProps } from 'vue'
18
- import * as Icons from '@tabler/icons-vue';
13
+ import { defineProps } from 'vue'
19
14
 
20
- const props = defineProps({
21
- icon: {
22
- type: String,
23
- required: true
24
- },
15
+ defineProps({
25
16
  title: {
26
17
  type: String,
27
18
  required: true
28
19
  },
29
- size: {
30
- type: Number,
31
- default: 32
32
- },
33
- stroke: {
34
- type: Number,
35
- default: 1
36
- }
37
20
  })
38
-
39
- const IconButton = Icons[props.icon];
40
21
  </script>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.55.2",
4
+ "version": "3.56.0",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",