katalyst-koi 4.7.3 → 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/builds/koi/admin.css +201 -150
  3. data/app/assets/builds/koi/admin.css.map +1 -1
  4. data/app/assets/javascripts/koi/controllers/index_actions_controller.js +0 -8
  5. data/app/assets/javascripts/koi/controllers/pagy_nav_controller.js +21 -0
  6. data/app/assets/stylesheets/koi/base/_index.scss +1 -0
  7. data/app/assets/stylesheets/koi/base/_tables.scss +15 -0
  8. data/app/assets/stylesheets/koi/components/_index.scss +0 -1
  9. data/app/components/concerns/koi/tables/cells.rb +85 -0
  10. data/app/components/koi/header/edit_component.rb +1 -1
  11. data/app/components/koi/header/show_component.rb +1 -1
  12. data/app/components/koi/summary_list/date_component.rb +2 -2
  13. data/app/components/koi/summary_list/datetime_component.rb +2 -2
  14. data/app/components/koi/summary_list/number_component.rb +2 -2
  15. data/app/components/koi/summary_table_component.rb +7 -0
  16. data/app/components/koi/table_component.rb +7 -0
  17. data/app/components/koi/tables/cells/enum_component.rb +27 -0
  18. data/app/components/koi/tables/table_component.rb +2 -54
  19. data/app/controllers/admin/admin_users_controller.rb +2 -2
  20. data/app/controllers/admin/sessions_controller.rb +8 -10
  21. data/app/controllers/admin/tokens_controller.rb +15 -13
  22. data/app/controllers/admin/url_rewrites_controller.rb +2 -2
  23. data/app/controllers/concerns/koi/controller/has_attachments.rb +1 -1
  24. data/app/controllers/concerns/koi/controller/is_admin_controller.rb +6 -4
  25. data/app/controllers/concerns/koi/controller/json_web_token.rb +1 -1
  26. data/app/helpers/koi/definition_list_helper.rb +2 -2
  27. data/app/helpers/koi/index_actions_helper.rb +2 -4
  28. data/app/helpers/koi/pagy.rb +15 -0
  29. data/app/models/url_rewrite.rb +1 -1
  30. data/app/views/admin/credentials/_credentials.html.erb +1 -1
  31. data/config/initializers/extensions.rb +1 -1
  32. data/config/initializers/flipper.rb +1 -1
  33. data/config/initializers/pagy.rb +2 -0
  34. data/config/locales/koi.en.yml +4 -0
  35. data/db/migrate/20130509235316_add_url_rewriter.rb +1 -1
  36. data/db/migrate/20230531063707_update_admin_users.rb +6 -3
  37. data/db/seeds.rb +1 -1
  38. data/lib/generators/koi/admin/admin_generator.rb +7 -1
  39. data/lib/generators/koi/admin_controller/admin_controller_generator.rb +6 -2
  40. data/lib/generators/koi/admin_controller/templates/controller.rb.tt +51 -53
  41. data/lib/generators/koi/admin_controller/templates/controller_spec.rb.tt +1 -1
  42. data/lib/generators/koi/admin_views/admin_views_generator.rb +8 -23
  43. data/lib/generators/koi/admin_views/templates/edit.html.erb.tt +1 -1
  44. data/lib/generators/koi/admin_views/templates/index.html.erb.tt +7 -7
  45. data/lib/generators/koi/admin_views/templates/new.html.erb.tt +1 -1
  46. data/lib/generators/koi/admin_views/templates/show.html.erb.tt +8 -4
  47. data/lib/govuk_design_system_formbuilder/elements/document.rb +5 -5
  48. data/lib/govuk_design_system_formbuilder/elements/image.rb +5 -5
  49. data/lib/koi/form_builder.rb +12 -12
  50. data/lib/koi/menu/builder.rb +6 -6
  51. metadata +9 -4
  52. data/app/assets/stylesheets/koi/components/_index-table.scss +0 -147
  53. data/app/assets/stylesheets/koi/components/index-table/_ordinal.scss +0 -38
@@ -1,38 +0,0 @@
1
- $width: 2rem !default;
2
- $time: 125ms !default;
3
-
4
- .index-table {
5
- tr {
6
- transition:
7
- top $time ease-in-out,
8
- transform $time ease-in-out;
9
- }
10
-
11
- tr[dragging] {
12
- transition: transform $time ease-in-out;
13
- filter: drop-shadow(0 0 0.5rem var(--row-border-color));
14
- transform: scale(1.01);
15
- td {
16
- box-shadow: none;
17
- }
18
- }
19
-
20
- th.ordinal {
21
- width: $width;
22
- padding-left: 0;
23
- a {
24
- width: $width;
25
- height: 3rem;
26
- }
27
- a::after {
28
- right: 0;
29
- }
30
- }
31
-
32
- td.ordinal {
33
- width: $width;
34
- padding-left: 0;
35
- cursor: grab;
36
- text-align: center;
37
- }
38
- }