hotwire_combobox 0.1.42 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/app/assets/javascripts/controllers/hw_combobox_controller.js +25 -3
  4. data/app/assets/javascripts/hotwire_combobox.esm.js +531 -127
  5. data/app/assets/javascripts/hotwire_combobox.umd.js +531 -127
  6. data/app/assets/javascripts/hw_combobox/helpers.js +16 -0
  7. data/app/assets/javascripts/hw_combobox/models/combobox/announcements.js +7 -0
  8. data/app/assets/javascripts/hw_combobox/models/combobox/async_loading.js +4 -0
  9. data/app/assets/javascripts/hw_combobox/models/combobox/autocomplete.js +8 -6
  10. data/app/assets/javascripts/hw_combobox/models/combobox/dialog.js +1 -1
  11. data/app/assets/javascripts/hw_combobox/models/combobox/events.js +21 -6
  12. data/app/assets/javascripts/hw_combobox/models/combobox/filtering.js +33 -28
  13. data/app/assets/javascripts/hw_combobox/models/combobox/form_field.js +74 -0
  14. data/app/assets/javascripts/hw_combobox/models/combobox/multiselect.js +160 -0
  15. data/app/assets/javascripts/hw_combobox/models/combobox/navigation.js +15 -6
  16. data/app/assets/javascripts/hw_combobox/models/combobox/options.js +29 -9
  17. data/app/assets/javascripts/hw_combobox/models/combobox/selection.js +103 -51
  18. data/app/assets/javascripts/hw_combobox/models/combobox/toggle.js +45 -16
  19. data/app/assets/javascripts/hw_combobox/models/combobox/validity.js +1 -1
  20. data/app/assets/javascripts/hw_combobox/models/combobox.js +3 -0
  21. data/app/assets/stylesheets/hotwire_combobox.css +84 -18
  22. data/app/presenters/hotwire_combobox/component/customizable.rb +9 -1
  23. data/app/presenters/hotwire_combobox/component.rb +95 -28
  24. data/app/presenters/hotwire_combobox/listbox/group.rb +45 -0
  25. data/app/presenters/hotwire_combobox/listbox/item.rb +104 -0
  26. data/app/presenters/hotwire_combobox/listbox/option.rb +9 -4
  27. data/app/views/hotwire_combobox/_component.html.erb +1 -0
  28. data/app/views/hotwire_combobox/_selection_chip.turbo_stream.erb +8 -0
  29. data/app/views/hotwire_combobox/layouts/_selection_chip.turbo_stream.erb +7 -0
  30. data/lib/hotwire_combobox/helper.rb +111 -86
  31. data/lib/hotwire_combobox/version.rb +1 -1
  32. metadata +9 -2
@@ -1,3 +1,3 @@
1
1
  module HotwireCombobox
2
- VERSION = "0.1.42"
2
+ VERSION = "0.2.0"
3
3
  end
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.42
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Farias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-14 00:00:00.000000000 Z
11
+ date: 2024-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -69,12 +69,15 @@ files:
69
69
  - app/assets/javascripts/hw_combobox/helpers.js
70
70
  - app/assets/javascripts/hw_combobox/models/combobox.js
71
71
  - app/assets/javascripts/hw_combobox/models/combobox/actors.js
72
+ - app/assets/javascripts/hw_combobox/models/combobox/announcements.js
72
73
  - app/assets/javascripts/hw_combobox/models/combobox/async_loading.js
73
74
  - app/assets/javascripts/hw_combobox/models/combobox/autocomplete.js
74
75
  - app/assets/javascripts/hw_combobox/models/combobox/base.js
75
76
  - app/assets/javascripts/hw_combobox/models/combobox/dialog.js
76
77
  - app/assets/javascripts/hw_combobox/models/combobox/events.js
77
78
  - app/assets/javascripts/hw_combobox/models/combobox/filtering.js
79
+ - app/assets/javascripts/hw_combobox/models/combobox/form_field.js
80
+ - app/assets/javascripts/hw_combobox/models/combobox/multiselect.js
78
81
  - app/assets/javascripts/hw_combobox/models/combobox/navigation.js
79
82
  - app/assets/javascripts/hw_combobox/models/combobox/new_options.js
80
83
  - app/assets/javascripts/hw_combobox/models/combobox/options.js
@@ -86,15 +89,19 @@ files:
86
89
  - app/assets/stylesheets/hotwire_combobox.css
87
90
  - app/presenters/hotwire_combobox/component.rb
88
91
  - app/presenters/hotwire_combobox/component/customizable.rb
92
+ - app/presenters/hotwire_combobox/listbox/group.rb
93
+ - app/presenters/hotwire_combobox/listbox/item.rb
89
94
  - app/presenters/hotwire_combobox/listbox/option.rb
90
95
  - app/views/hotwire_combobox/_component.html.erb
91
96
  - app/views/hotwire_combobox/_next_page.turbo_stream.erb
92
97
  - app/views/hotwire_combobox/_paginated_options.turbo_stream.erb
93
98
  - app/views/hotwire_combobox/_pagination.html.erb
99
+ - app/views/hotwire_combobox/_selection_chip.turbo_stream.erb
94
100
  - app/views/hotwire_combobox/combobox/_dialog.html.erb
95
101
  - app/views/hotwire_combobox/combobox/_hidden_field.html.erb
96
102
  - app/views/hotwire_combobox/combobox/_input.html.erb
97
103
  - app/views/hotwire_combobox/combobox/_paginated_listbox.html.erb
104
+ - app/views/hotwire_combobox/layouts/_selection_chip.turbo_stream.erb
98
105
  - config/hw_importmap.rb
99
106
  - lib/hotwire_combobox.rb
100
107
  - lib/hotwire_combobox/engine.rb