@tak-ps/vue-tabler 3.79.3 → 3.80.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.80.0
14
+
15
+ - :rocket: Add `clickAnywhereExpand` prop to TablerSlidedown
16
+
13
17
  ### v3.79.3
14
18
 
15
19
  - :bug: Remove Debug Code
@@ -2,8 +2,10 @@
2
2
  <div
3
3
  class='hover-expandable rounded position-relative px-2 py-2'
4
4
  :class='{
5
- "expanded": isExpanded
5
+ "expanded": isExpanded,
6
+ "cursor-pointer": props.clickAnywhereExpand && !isExpanded
6
7
  }'
8
+ @click='(props.clickAnywhereExpand && !isExpanded) ? toggle() : null'
7
9
  >
8
10
  <div class='mb-2'>
9
11
  <slot />
@@ -21,7 +23,7 @@
21
23
  <div
22
24
  class='arrow-container'
23
25
  title='Toggle content'
24
- @click='toggle'
26
+ @click.stop='toggle'
25
27
  >
26
28
  <IconChevronDown
27
29
  size='24'
@@ -45,6 +47,13 @@ const isExpanded = ref(false);
45
47
 
46
48
  const contentWrapperRef = ref(null);
47
49
 
50
+ const props = defineProps({
51
+ clickAnywhereExpand: {
52
+ type: Boolean,
53
+ default: false
54
+ }
55
+ });
56
+
48
57
  function toggle() {
49
58
  isExpanded.value = !isExpanded.value;
50
59
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.79.3",
4
+ "version": "3.80.0",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",