power-compass 0.6.0 → 0.6.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5cf7df2950250c91f36e08150c320557221597db0fedd203a1ab8566c528984
4
- data.tar.gz: af59dfd4704c1259a1d0325db50392de17287a9ff7e97c70738e0cba40f59507
3
+ metadata.gz: 57165a5ce8b911ca3f0cdbea362926d3bc0563ba30356a5ca0ba34d756d8f4e3
4
+ data.tar.gz: a1e4dc2d72411951df56ec9920ef2e995a3dd3958ce466344f2cf65a0d71d1d4
5
5
  SHA512:
6
- metadata.gz: daf30710679b1d2fe384e108c76d06f815a6990b804aece6a7dd9338414caaa2b643694f0b7e3f211c7e06566bf5f45e15b7d2fefcb0c7dbd1e69f84bd306ab6
7
- data.tar.gz: 479652082ea6161af9c39133eca13124f5e7f6843c42c36465f7c593ceb071cda687715ba0d838e65412fd91036bb59fc1a3921829af1bac8f68bb67c801c6c1
6
+ metadata.gz: f3c29735f053bb8f20c2b4977acc6771cdddce5d4c173702bc1606f9af37d2837973e82c37620536693072c04d98ebaad154fd53c0e2b80437154e68fa7bc4ed
7
+ data.tar.gz: e56b037172bf9868f3ed513f9a8692e5b3a06f45d3c74acc7f8d9fa4237bc1168efb95e4a8b057aa1bc13f8ef5899a89d12a56df721daaa79c61b62abc9b4462
@@ -5,6 +5,14 @@ module Compass
5
5
  class Header
6
6
  class SearchInput < ApplicationComponent
7
7
  include ConfigProps
8
+
9
+ prop :filters, default: {}
10
+
11
+ private
12
+
13
+ def compass_props
14
+ { **super, filters: filters }
15
+ end
8
16
  end
9
17
  end
10
18
  end
@@ -4,6 +4,14 @@ module Compass
4
4
  class Layout
5
5
  class Sidebar < ApplicationComponent
6
6
  include ConfigProps
7
+
8
+ prop :filters, default: {}
9
+
10
+ private
11
+
12
+ def compass_props
13
+ { **super, filters: filters }
14
+ end
7
15
  end
8
16
  end
9
17
  end
@@ -7,14 +7,18 @@ module Compass
7
7
  module ConfigProps
8
8
  extend ActiveSupport::Concern
9
9
 
10
- included do
11
- private
10
+ private
12
11
 
13
- def current_context_id = instance_exec(&Compass.config.context_id)
12
+ def current_context_id
13
+ instance_exec(&Compass.config.context_id)
14
+ end
14
15
 
15
- def current_backends = Compass.config.backends
16
+ def current_backends
17
+ Compass.config.backends
18
+ end
16
19
 
17
- def compass_props = { backends: current_backends, contextId: current_context_id }
20
+ def compass_props
21
+ { backends: current_backends, contextId: current_context_id }
18
22
  end
19
23
  end
20
24
  end
@@ -1,3 +1,3 @@
1
1
  module Compass
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power-compass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Palhares