hotwire_combobox 0.1.10 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +1 -4
  4. data/app/assets/javascripts/controllers/hw_combobox_controller.js +55 -211
  5. data/app/assets/javascripts/helpers.js +52 -0
  6. data/app/assets/javascripts/models/combobox/actors.js +24 -0
  7. data/app/assets/javascripts/models/combobox/async_loading.js +7 -0
  8. data/app/assets/javascripts/models/combobox/autocomplete.js +39 -0
  9. data/app/assets/javascripts/models/combobox/base.js +3 -0
  10. data/app/assets/javascripts/models/combobox/dialog.js +50 -0
  11. data/app/assets/javascripts/models/combobox/filtering.js +57 -0
  12. data/app/assets/javascripts/models/combobox/navigation.js +39 -0
  13. data/app/assets/javascripts/models/combobox/options.js +41 -0
  14. data/app/assets/javascripts/models/combobox/selection.js +62 -0
  15. data/app/assets/javascripts/models/combobox/toggle.js +104 -0
  16. data/app/assets/javascripts/models/combobox/validity.js +34 -0
  17. data/app/assets/javascripts/models/combobox.js +14 -0
  18. data/app/assets/javascripts/vendor/bodyScrollLock.js +299 -0
  19. data/app/assets/stylesheets/hotwire_combobox.css +181 -0
  20. data/app/helpers/hotwire_combobox/helper.rb +62 -73
  21. data/app/presenters/hotwire_combobox/component.rb +257 -0
  22. data/app/presenters/hotwire_combobox/listbox/option.rb +53 -0
  23. data/app/views/hotwire_combobox/_combobox.html.erb +5 -20
  24. data/app/views/hotwire_combobox/_next_page.turbo_stream.erb +5 -0
  25. data/app/views/hotwire_combobox/_paginated_options.turbo_stream.erb +7 -0
  26. data/app/views/hotwire_combobox/_pagination.html.erb +3 -0
  27. data/app/views/hotwire_combobox/combobox/_dialog.html.erb +7 -0
  28. data/app/views/hotwire_combobox/combobox/_hidden_field.html.erb +4 -0
  29. data/app/views/hotwire_combobox/combobox/_input.html.erb +2 -0
  30. data/app/views/hotwire_combobox/combobox/_paginated_listbox.html.erb +11 -0
  31. data/lib/hotwire_combobox/engine.rb +12 -2
  32. data/lib/hotwire_combobox/version.rb +1 -1
  33. data/lib/hotwire_combobox.rb +4 -2
  34. metadata +54 -2
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.10
4
+ version: 0.1.12
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-15 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,34 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: turbo-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '1.2'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '1.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: requestjs-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 0.0.11
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 0.0.11
55
83
  description: A combobox implementation for Ruby on Rails apps running on Hotwire.
56
84
  email:
57
85
  - jose@farias.mx
@@ -65,9 +93,33 @@ files:
65
93
  - app/assets/javascripts/controllers/application.js
66
94
  - app/assets/javascripts/controllers/hw_combobox_controller.js
67
95
  - app/assets/javascripts/controllers/index.js
96
+ - app/assets/javascripts/helpers.js
68
97
  - app/assets/javascripts/hotwire_combobox_application.js
98
+ - app/assets/javascripts/models/combobox.js
99
+ - app/assets/javascripts/models/combobox/actors.js
100
+ - app/assets/javascripts/models/combobox/async_loading.js
101
+ - app/assets/javascripts/models/combobox/autocomplete.js
102
+ - app/assets/javascripts/models/combobox/base.js
103
+ - app/assets/javascripts/models/combobox/dialog.js
104
+ - app/assets/javascripts/models/combobox/filtering.js
105
+ - app/assets/javascripts/models/combobox/navigation.js
106
+ - app/assets/javascripts/models/combobox/options.js
107
+ - app/assets/javascripts/models/combobox/selection.js
108
+ - app/assets/javascripts/models/combobox/toggle.js
109
+ - app/assets/javascripts/models/combobox/validity.js
110
+ - app/assets/javascripts/vendor/bodyScrollLock.js
111
+ - app/assets/stylesheets/hotwire_combobox.css
69
112
  - app/helpers/hotwire_combobox/helper.rb
113
+ - app/presenters/hotwire_combobox/component.rb
114
+ - app/presenters/hotwire_combobox/listbox/option.rb
70
115
  - app/views/hotwire_combobox/_combobox.html.erb
116
+ - app/views/hotwire_combobox/_next_page.turbo_stream.erb
117
+ - app/views/hotwire_combobox/_paginated_options.turbo_stream.erb
118
+ - app/views/hotwire_combobox/_pagination.html.erb
119
+ - app/views/hotwire_combobox/combobox/_dialog.html.erb
120
+ - app/views/hotwire_combobox/combobox/_hidden_field.html.erb
121
+ - app/views/hotwire_combobox/combobox/_input.html.erb
122
+ - app/views/hotwire_combobox/combobox/_paginated_listbox.html.erb
71
123
  - config/importmap.rb
72
124
  - lib/hotwire_combobox.rb
73
125
  - lib/hotwire_combobox/engine.rb