bullet_train-themes 1.2.10 → 1.2.11
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: 11a5f35480f1512c0799217b8ac2c5610e79263a0a93f83bb47edf7724846e9d
|
4
|
+
data.tar.gz: 746b8cec0f85996de9df5b706c1fbf62e6624670f2701dc372a5792019015bde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d5ded2a4a6c89d5670558e91f62c294cd6dd1c2820111666e44561cbc3af614a2378bb7bccfc22395395a42689e3c1c5a01b617fdf32eaf3c21391cd7f49c8d
|
7
|
+
data.tar.gz: 1cc5e0a22568a555eeeff9f9d7ee40998ade7100bebea7592390b5739e8b2dd38dbcb2cdc900effccf0bab722ed88859fc8bcdeb905a22acc023a285b710937c
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<% object ||= current_attributes_object %>
|
2
|
+
<% strategy ||= current_attributes_strategy || :none %>
|
3
|
+
<% url ||= nil %>
|
4
|
+
<% options ||= {} %>
|
5
|
+
|
6
|
+
<% if object.send(attribute).present? %>
|
7
|
+
<%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy %>
|
8
|
+
<% end %>
|
@@ -26,6 +26,12 @@ wrapper_options = { data: { controller: stimulus_controller }}
|
|
26
26
|
wrapper_options[:data]["#{stimulus_controller}-enable-search-value"] = true if other_options[:search]
|
27
27
|
wrapper_options[:data]["#{stimulus_controller}-accepts-new-value"] = true if other_options[:accepts_new]
|
28
28
|
wrapper_options[:data]["#{stimulus_controller}-search-url-value"] = choices_url if choices_url.present?
|
29
|
+
|
30
|
+
unless options[:multiple]
|
31
|
+
wrapper_options[:data]["action"] ||= ""
|
32
|
+
wrapper_options[:data]["action"] += " keydown->#{stimulus_controller}#injectKeystrokeIntoTextField $select2:open->#{stimulus_controller}#focusOnTextField"
|
33
|
+
end
|
34
|
+
|
29
35
|
html_options[:data] ||= {}
|
30
36
|
html_options[:data].merge!("#{stimulus_controller}-target": 'select')
|
31
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-themes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- app/views/themes/base/attributes/_has_many.html.erb
|
64
64
|
- app/views/themes/base/attributes/_html.html.erb
|
65
65
|
- app/views/themes/base/attributes/_image.html.erb
|
66
|
+
- app/views/themes/base/attributes/_number.html.erb
|
66
67
|
- app/views/themes/base/attributes/_option.html.erb
|
67
68
|
- app/views/themes/base/attributes/_options.html.erb
|
68
69
|
- app/views/themes/base/attributes/_phone_number.html.erb
|
@@ -70,6 +71,7 @@ files:
|
|
70
71
|
- app/views/themes/base/fields/_ckeditor.html.erb
|
71
72
|
- app/views/themes/base/fields/_email_field.html.erb
|
72
73
|
- app/views/themes/base/fields/_emoji_field.html.erb
|
74
|
+
- app/views/themes/base/fields/_number_field.html.erb
|
73
75
|
- app/views/themes/base/fields/_password_field.html.erb
|
74
76
|
- app/views/themes/base/fields/_phone_field.html.erb
|
75
77
|
- app/views/themes/base/fields/_super_select.html.erb
|