satis 2.1.0 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f91c8c6daa20c366d35d13987b245f216d1b550a693813e7f32e0af4c3b2c66
4
- data.tar.gz: 747f802bb8212519905a86b44330e1bcd0e297f1a9fedfa0930e7be525a8a93f
3
+ metadata.gz: 3100905fd0c0f9ab69fa8b367eb09bc2bd6f7b4c3a3dd1271517141417c9c667
4
+ data.tar.gz: fc168ce7e22bc01baebec87fb632dca6acdfeebdbcc623f852119be34393b7b7
5
5
  SHA512:
6
- metadata.gz: 3f5e8c79720994c1d0bd2de4a1e198246e44005231bb6d4bf2258ca67ae0115404627310d39a57ab1b9b4ecfeb7d037e7863de7bcaff047fcb6e9311a65f406b
7
- data.tar.gz: 6e1bea1edb2d629af392f10dc06fc57e039285dd9ed7ed3a312a31f50dc2418e72db646dcac99ba6aeb2e3c601d4ea72d8be0448c72943316d714d38bfef9d58
6
+ metadata.gz: d085a09e1de0e2ced5dd4d539d2aeb66510e4e6a4ba0857cd37081b6ad3e1734b80db6b388b4e3b07e5aa255c1496cce374c041f38ea02bc8ffa350bf93dc545
7
+ data.tar.gz: ab57757fd34af527fed33856165bfb0d2cbe1487f43d16252f20373744ce8fb086209f995ed0814ca07e868075ba50dfbafecb3063f25ad584b352e7c2804607
@@ -26,7 +26,9 @@ export default class SidebarMenuItemComponentController extends ApplicationContr
26
26
 
27
27
  if (this.hasSubmenuTarget) {
28
28
  this.submenuTarget.classList.remove("hidden")
29
- this.indicatorTarget.setAttribute("data-fa-transform", "rotate-90")
29
+ if(!this.submenuTarget.classList.contains("hidden") && !this.indicatorTarget.hasAttribute("data-fa-transform")){
30
+ this.indicatorTarget.setAttribute("data-fa-transform", "rotate-90")
31
+ }
30
32
  if (this.linkTarget){
31
33
  this.linkTarget.classList.add("focus")
32
34
  }
@@ -44,6 +46,20 @@ export default class SidebarMenuItemComponentController extends ApplicationContr
44
46
  }
45
47
  event.preventDefault()
46
48
  }
49
+ else {
50
+ if(this.linkInUrl || (this.linkTarget.href.length <= 0 && !this.hasActiveLinks)){
51
+ if (this.hasSubmenuTarget){
52
+ this.submenuTarget.classList.toggle("hidden")
53
+ if(!this.submenuTarget.classList.contains("hidden") && !this.indicatorTarget.hasAttribute("data-fa-transform")){
54
+ this.indicatorTarget.setAttribute("data-fa-transform", "rotate-90")
55
+ } else{
56
+ this.indicatorTarget.removeAttribute("data-fa-transform", "rotate-90")
57
+ }
58
+ event.preventDefault()
59
+
60
+ }
61
+ }
62
+ }
47
63
  }
48
64
 
49
65
  get linkInUrl() {
@@ -51,7 +51,12 @@
51
51
  &.is-invalid {
52
52
  @apply text-red-600;
53
53
 
54
- .fa-triangle-exclamation {
54
+ a {
55
+ @apply text-red-600;
56
+ }
57
+
58
+ .fa-square-xmark {
59
+ @apply text-red-400;
55
60
  display: inline;
56
61
  }
57
62
  }
@@ -18,7 +18,7 @@
18
18
  span.relative.inline-flex.rounded-full.h-2.w-2.bg-blue-500
19
19
  span id="tab_label_#{tab.id}"
20
20
  = ct(".#{tab.name}", scope: :tab)
21
- i.fal.fa-triangle-exclamation.ml-2.hidden
21
+ i.fal.fa-square-xmark.fa-solid.ml-2.hidden
22
22
  - if tab.badge
23
23
  span.badge
24
24
  = tab.badge
data/lib/satis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Satis
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: satis
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-31 00:00:00.000000000 Z
11
+ date: 2024-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: browser