uchi 0.1.7 → 0.2.0

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/uchi/application.js +384 -317
  3. data/app/assets/stylesheets/uchi/application.css +8 -0
  4. data/app/assets/tailwind/uchi.css +5 -0
  5. data/app/components/uchi/field/base/show.html.erb +1 -0
  6. data/app/components/uchi/field/base.rb +24 -27
  7. data/app/components/uchi/field/belongs_to/edit.html.erb +1 -1
  8. data/app/components/uchi/field/belongs_to.rb +36 -2
  9. data/app/components/uchi/field/boolean/index.html.erb +9 -7
  10. data/app/components/uchi/field/boolean/show.html.erb +9 -7
  11. data/app/components/uchi/field/file/show.html.erb +1 -1
  12. data/app/components/uchi/field/file.rb +1 -1
  13. data/app/components/uchi/field/has_and_belongs_to_many.rb +19 -1
  14. data/app/components/uchi/field/has_many/edit.html.erb +1 -1
  15. data/app/components/uchi/field/has_many.rb +20 -0
  16. data/app/components/uchi/field/id/show.html.erb +1 -1
  17. data/app/components/uchi/field/image/index.html.erb +1 -1
  18. data/app/components/uchi/field/image/show.html.erb +2 -2
  19. data/app/components/uchi/field/image.rb +1 -1
  20. data/app/components/uchi/field/select/edit.html.erb +1 -0
  21. data/app/components/uchi/field/select/index.html.erb +1 -0
  22. data/app/components/uchi/field/select/show.html.erb +1 -0
  23. data/app/components/uchi/field/select.rb +144 -0
  24. data/app/components/uchi/field/text.rb +1 -1
  25. data/app/components/uchi/flowbite/button.rb +1 -1
  26. data/app/components/uchi/flowbite/input/field.rb +6 -0
  27. data/app/components/uchi/flowbite/input/label.rb +2 -0
  28. data/app/components/uchi/flowbite/input_field.rb +11 -1
  29. data/app/components/uchi/flowbite/styles.rb +34 -0
  30. data/app/components/uchi/ui/actions/dropdown/dropdown.html.erb +1 -1
  31. data/app/components/uchi/ui/index/records_table/records_table.html.erb +1 -1
  32. data/app/controllers/uchi/repository_controller.rb +24 -8
  33. data/app/views/layouts/uchi/_javascript.html.erb +1 -1
  34. data/app/views/layouts/uchi/application.html.erb +4 -6
  35. data/app/views/uchi/has_many/associated_records/index.html.erb +6 -4
  36. data/app/views/uchi/repository/edit.html.erb +1 -1
  37. data/app/views/uchi/repository/new.html.erb +2 -2
  38. data/app/views/uchi/repository/show.html.erb +4 -4
  39. data/lib/uchi/field/configuration.rb +43 -6
  40. data/lib/uchi/field.rb +11 -0
  41. data/lib/uchi/plugins.rb +21 -0
  42. data/lib/uchi/repository/routes.rb +9 -5
  43. data/lib/uchi/repository.rb +45 -6
  44. data/lib/uchi/routes.rb +27 -5
  45. data/lib/uchi/sort_order.rb +9 -4
  46. data/lib/uchi/version.rb +1 -1
  47. data/lib/uchi.rb +5 -0
  48. metadata +8 -5
  49. data/app/components/uchi/field/date/show.html.erb +0 -1
  50. data/app/components/uchi/field/number/show.html.erb +0 -1
  51. data/app/components/uchi/field/string/show.html.erb +0 -1
  52. data/app/components/uchi/field/text/show.html.erb +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de2b1d1a3dd3e56ab24bce7e64663414c0dbfe4dfc4ac782ca47fcd967e4b048
4
- data.tar.gz: b9e0322ebafd58e4369f8b1e0087c8e4ec3bb637226a02b37b890d16be9986ad
3
+ metadata.gz: ec75b227fc8ef84d83c4d2d0e87b0f27975c49c1fc4ed0ac25452796ef1e5735
4
+ data.tar.gz: e91e00b058c007fe18266e7ce4fd538d60b53ba9b49ee35d2875bfd585c170e4
5
5
  SHA512:
6
- metadata.gz: b2ff7837db46a22eb39adc6cbd07077d9dd288032e6d77468a596c8042e3ab8476bc92ee57a3161ab177523701c0f7e4e4e8f8f49a45fc2691e8eaf0c4c2a0a2
7
- data.tar.gz: 01accad1e6c453af98f1cccde568c46eb6b6eb9e0474f5454f3b9b59e215df636b00a599909b506f0c878a44d40d2f4b936329d0dab8aea82f422cf0709586ff
6
+ metadata.gz: 31597c74d99be17fc726923ba7e47c725914589a42eb312c461ae5272e8ef62a2eb543be75ab395cb81c51d2b7456b4d28e89179f5986d2fa5065c86f22c15f8
7
+ data.tar.gz: 88d9f6b96296bed5da0b8d7120de8c6a047794e20e95cc21f125efc87805d2214a398ffa327daaa90aae08528ce1883c302208b4ab84adf870a3740b3b1923c7