bullet_train-themes 1.2.10 → 1.2.11

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: 7f8623fca321e4cf6861735d1fb1e4bda3b39bb812597878e25b7650798c3873
4
- data.tar.gz: 7e6214366cdb4a2e1152b15b249ae40ffc59e2eb37af227ceed03329492bd784
3
+ metadata.gz: 11a5f35480f1512c0799217b8ac2c5610e79263a0a93f83bb47edf7724846e9d
4
+ data.tar.gz: 746b8cec0f85996de9df5b706c1fbf62e6624670f2701dc372a5792019015bde
5
5
  SHA512:
6
- metadata.gz: adcc41dd6accd6aff0cf39a2aa9d4e589c55ad5444105e47dec76d9a205538870ff5fd2724500f9f988ade4384e64cfe0a6fd9613f2ccad5a3d2fd41c349d090
7
- data.tar.gz: 3f8f209d624a9729d2ec8e7a56f5ad1ed64b068fe151ebe6558930f309daa965918857dce42530a9fb9b8909159486912e2a9c2c8397039fa25a5a8f0849c438
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 %>
@@ -0,0 +1,9 @@
1
+ <% yield %>
2
+
3
+ <%
4
+ form ||= current_fields_form
5
+ options ||= {}
6
+ other_options ||= {}
7
+ %>
8
+
9
+ <%= render 'shared/fields/field', form: form, method: method, helper: :number_field, options: options, other_options: other_options %>
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.2.10"
3
+ VERSION = "1.2.11"
4
4
  end
5
5
  end
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.10
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: 2022-12-31 00:00:00.000000000 Z
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