hotwire_combobox 0.1.8 → 0.1.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 115007b81c7f19287376a49f41aa34c43e2fb331a18459b9f47877bf282d15cf
|
4
|
+
data.tar.gz: b5eb9f21bd0f46f39a434ef8dea3d82a639e00b0dfb7f131c8264c77a55ac2ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd39e53b94270d271b0b397d4e983346ea3b99a8054d0f2ab59756a38e440b23d7bf53d63cd34e1422530aaa1fa2fe0fec57aa5d0f693778d52f0f3a2e722b18
|
7
|
+
data.tar.gz: b8ef213bc60a3b722d25bf4532e562151b4c660ebac0c5c75283cb045532787ff51bcb12ecafdeac28af54dc20262646d4953d5a7f306bdd43950442160831bc
|
@@ -1,8 +1,13 @@
|
|
1
1
|
module HotwireCombobox
|
2
2
|
module Helper
|
3
|
+
class << self
|
4
|
+
delegate :bypass_convenience_methods?, to: :HotwireCombobox
|
5
|
+
end
|
6
|
+
|
3
7
|
def hw_combobox_options(options)
|
4
8
|
options.map { |option| hw_combobox_option(**option) }
|
5
9
|
end
|
10
|
+
alias_method :combobox_options, :hw_combobox_options unless bypass_convenience_methods?
|
6
11
|
|
7
12
|
def hw_combobox_tag(name, value = nil, form: nil, options: [], data: {}, input: {}, **attrs)
|
8
13
|
value_field_attrs = {}.tap do |h|
|
@@ -23,11 +28,7 @@ module HotwireCombobox
|
|
23
28
|
listbox_id: hw_combobox_listbox_id(value_field_attrs[:id]),
|
24
29
|
parent_data: default_hw_combobox_parent_data(attrs, data)
|
25
30
|
end
|
26
|
-
|
27
|
-
unless HotwireCombobox.bypass_convenience_methods?
|
28
|
-
alias_method :combobox_options, :hw_combobox_options
|
29
|
-
alias_method :combobox_tag, :hw_combobox_tag
|
30
|
-
end
|
31
|
+
alias_method :combobox_tag, :hw_combobox_tag unless bypass_convenience_methods?
|
31
32
|
|
32
33
|
def hw_listbox_option_id(option)
|
33
34
|
option.try(:id)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hotwire_combobox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose Farias
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|