katalyst-koi 4.7.2 → 4.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/builds/koi/admin.css +201 -150
- data/app/assets/builds/koi/admin.css.map +1 -1
- data/app/assets/javascripts/koi/controllers/index_actions_controller.js +0 -8
- data/app/assets/javascripts/koi/controllers/pagy_nav_controller.js +21 -0
- data/app/assets/stylesheets/koi/base/_index.scss +1 -0
- data/app/assets/stylesheets/koi/base/_tables.scss +15 -0
- data/app/assets/stylesheets/koi/components/_index.scss +0 -1
- data/app/components/concerns/koi/tables/cells.rb +85 -0
- data/app/components/koi/header/edit_component.rb +1 -1
- data/app/components/koi/header/show_component.rb +1 -1
- data/app/components/koi/summary_list/date_component.rb +2 -2
- data/app/components/koi/summary_list/datetime_component.rb +2 -2
- data/app/components/koi/summary_list/number_component.rb +2 -2
- data/app/components/koi/summary_table_component.rb +7 -0
- data/app/components/koi/table_component.rb +7 -0
- data/app/components/koi/tables/cells/enum_component.rb +27 -0
- data/app/components/koi/tables/table_component.rb +2 -54
- data/app/controllers/admin/admin_users_controller.rb +2 -2
- data/app/controllers/admin/sessions_controller.rb +8 -10
- data/app/controllers/admin/tokens_controller.rb +15 -13
- data/app/controllers/admin/url_rewrites_controller.rb +2 -2
- data/app/controllers/concerns/koi/controller/has_attachments.rb +1 -1
- data/app/controllers/concerns/koi/controller/is_admin_controller.rb +6 -4
- data/app/controllers/concerns/koi/controller/json_web_token.rb +1 -1
- data/app/helpers/koi/definition_list_helper.rb +2 -2
- data/app/helpers/koi/index_actions_helper.rb +2 -4
- data/app/helpers/koi/pagy.rb +15 -0
- data/app/models/url_rewrite.rb +1 -1
- data/app/views/admin/credentials/_credentials.html.erb +1 -1
- data/app/views/layouts/koi/application.html.erb +3 -0
- data/config/initializers/extensions.rb +1 -1
- data/config/initializers/flipper.rb +1 -1
- data/config/initializers/pagy.rb +2 -0
- data/config/locales/koi.en.yml +4 -0
- data/db/migrate/20130509235316_add_url_rewriter.rb +1 -1
- data/db/migrate/20230531063707_update_admin_users.rb +6 -3
- data/db/seeds.rb +1 -1
- data/lib/generators/koi/admin/admin_generator.rb +7 -1
- data/lib/generators/koi/admin_controller/admin_controller_generator.rb +6 -2
- data/lib/generators/koi/admin_controller/templates/controller.rb.tt +51 -53
- data/lib/generators/koi/admin_controller/templates/controller_spec.rb.tt +1 -1
- data/lib/generators/koi/admin_views/admin_views_generator.rb +8 -23
- data/lib/generators/koi/admin_views/templates/edit.html.erb.tt +1 -1
- data/lib/generators/koi/admin_views/templates/index.html.erb.tt +7 -12
- data/lib/generators/koi/admin_views/templates/new.html.erb.tt +1 -1
- data/lib/generators/koi/admin_views/templates/show.html.erb.tt +8 -4
- data/lib/govuk_design_system_formbuilder/elements/document.rb +5 -5
- data/lib/govuk_design_system_formbuilder/elements/image.rb +5 -5
- data/lib/koi/form_builder.rb +12 -12
- data/lib/koi/menu/builder.rb +6 -6
- metadata +9 -4
- data/app/assets/stylesheets/koi/components/_index-table.scss +0 -147
- data/app/assets/stylesheets/koi/components/index-table/_ordinal.scss +0 -38
@@ -13,7 +13,13 @@ module Koi
|
|
13
13
|
remove_hook_for(:scaffold_controller)
|
14
14
|
remove_hook_for(:resource_route)
|
15
15
|
|
16
|
-
hook_for :admin_controller, in: :koi, as: :admin, type: :boolean, default: true
|
16
|
+
hook_for :admin_controller, in: :koi, as: :admin, type: :boolean, default: true do |instance, controller|
|
17
|
+
args, opts, config = @_initializer
|
18
|
+
opts ||= {}
|
19
|
+
|
20
|
+
# setting model_name so that generators will use the controller_class_path
|
21
|
+
instance.invoke controller, args, { model_name: instance.name, **opts }, config
|
22
|
+
end
|
17
23
|
|
18
24
|
Rails::Generators::ModelGenerator.hook_for :admin_search, type: :boolean, default: true
|
19
25
|
Rails::Generators::ModelGenerator.hook_for :ordinal_scope, type: :boolean, default: true
|
@@ -15,14 +15,14 @@ module Koi
|
|
15
15
|
|
16
16
|
def create_controller_files
|
17
17
|
template("controller.rb",
|
18
|
-
File.join("app/controllers
|
18
|
+
File.join("app/controllers",
|
19
19
|
controller_class_path,
|
20
20
|
"#{controller_file_name}_controller.rb"))
|
21
21
|
end
|
22
22
|
|
23
23
|
def create_spec_files
|
24
24
|
template("controller_spec.rb",
|
25
|
-
File.join("spec/requests
|
25
|
+
File.join("spec/requests",
|
26
26
|
controller_class_path,
|
27
27
|
"#{controller_file_name}_controller_spec.rb"))
|
28
28
|
end
|
@@ -32,6 +32,10 @@ module Koi
|
|
32
32
|
|
33
33
|
private
|
34
34
|
|
35
|
+
def controller_class_path
|
36
|
+
["admin"] + super
|
37
|
+
end
|
38
|
+
|
35
39
|
def permitted_params
|
36
40
|
attachments, others = attributes_names.partition { |name| attachments?(name) }
|
37
41
|
params = others.map { |name| ":#{name}" }
|
@@ -1,76 +1,74 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
before_action :set_<%= singular_name %>, only: %i[show edit update destroy]
|
3
|
+
class <%= controller_class_name %>Controller < ApplicationController
|
4
|
+
before_action :set_<%= singular_name %>, only: %i[show edit update destroy]
|
6
5
|
|
7
|
-
|
8
|
-
|
6
|
+
def index
|
7
|
+
collection = Collection.new.with_params(params).apply(::<%= class_name %>.strict_loading.all)
|
9
8
|
|
10
|
-
|
11
|
-
|
9
|
+
render locals: { collection: }
|
10
|
+
end
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
def show
|
13
|
+
render locals: { <%= singular_name %>: @<%= singular_name %> }
|
14
|
+
end
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
def new
|
17
|
+
render locals: { <%= singular_name %>: ::<%= class_name %>.new }
|
18
|
+
end
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
def edit
|
21
|
+
render locals: { <%= singular_name %>: @<%= singular_name %> }
|
22
|
+
end
|
24
23
|
|
25
|
-
|
26
|
-
|
24
|
+
def create
|
25
|
+
@<%= singular_name %> = ::<%= class_name %>.new(<%= singular_table_name %>_params)
|
27
26
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
end
|
27
|
+
if @<%= singular_name %>.save
|
28
|
+
redirect_to [:admin, @<%= singular_name %>], status: :see_other
|
29
|
+
else
|
30
|
+
render :new, locals: { <%= singular_name %>: @<%= singular_name %> }, status: :unprocessable_content
|
33
31
|
end
|
32
|
+
end
|
34
33
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|
34
|
+
def update
|
35
|
+
if @<%= singular_name %>.update(<%= singular_table_name %>_params)
|
36
|
+
redirect_to action: :show, status: :see_other
|
37
|
+
else
|
38
|
+
render :edit, locals: { <%= singular_name %>: @<%= singular_name %> }, status: :unprocessable_content
|
41
39
|
end
|
40
|
+
end
|
42
41
|
|
43
|
-
|
44
|
-
|
42
|
+
def destroy
|
43
|
+
@<%= singular_name %>.destroy!
|
45
44
|
|
46
|
-
|
47
|
-
|
45
|
+
redirect_to action: :index, status: :see_other
|
46
|
+
end
|
48
47
|
|
49
|
-
|
48
|
+
private
|
50
49
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
50
|
+
# Only allow a list of trusted parameters through.
|
51
|
+
def <%= "#{singular_table_name}_params" %>
|
52
|
+
<%- if attributes_names.empty? -%>
|
53
|
+
params.fetch(:<%= singular_table_name %>, {})
|
54
|
+
<%- else -%>
|
55
|
+
params.require(:<%= singular_table_name %>).permit(<%= permitted_params %>)
|
56
|
+
<%- end -%>
|
57
|
+
end
|
59
58
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
59
|
+
# Use callbacks to share common setup or constraints between actions.
|
60
|
+
def set_<%= singular_name %>
|
61
|
+
@<%= singular_name %> = ::<%= class_name %>.find(params[:id])
|
62
|
+
end
|
64
63
|
|
65
|
-
|
66
|
-
|
64
|
+
class Collection < Katalyst::Tables::Collection::Base
|
65
|
+
attribute :search, :string
|
67
66
|
|
68
|
-
|
69
|
-
|
67
|
+
config.sorting = :<%= search_attribute %>
|
68
|
+
config.paginate = true
|
70
69
|
|
71
|
-
|
72
|
-
|
73
|
-
end
|
70
|
+
def filter
|
71
|
+
self.items = items.admin_search(search) if search.present?
|
74
72
|
end
|
75
73
|
end
|
76
74
|
end
|
@@ -12,13 +12,13 @@ module Koi
|
|
12
12
|
argument :attributes, type: :array, default: [], banner: "field:type field:type"
|
13
13
|
|
14
14
|
def create_root_folder
|
15
|
-
empty_directory File.join("app/views
|
15
|
+
empty_directory File.join("app/views", controller_file_path)
|
16
16
|
end
|
17
17
|
|
18
18
|
def copy_view_files
|
19
19
|
available_views.each do |filename|
|
20
20
|
target = filename.gsub("record", singular_name)
|
21
|
-
template filename, File.join("app/views
|
21
|
+
template filename, File.join("app/views", controller_file_path, target)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -28,6 +28,10 @@ module Koi
|
|
28
28
|
%w(index.html.erb edit.html.erb show.html.erb new.html.erb _fields.html.erb)
|
29
29
|
end
|
30
30
|
|
31
|
+
def controller_class_path
|
32
|
+
["admin"] + super
|
33
|
+
end
|
34
|
+
|
31
35
|
def govuk_input_for(attribute)
|
32
36
|
case attribute.type
|
33
37
|
when :string
|
@@ -47,27 +51,6 @@ module Koi
|
|
47
51
|
end
|
48
52
|
end
|
49
53
|
|
50
|
-
def summary_attribute_for(attribute)
|
51
|
-
case attribute.type
|
52
|
-
when :string
|
53
|
-
%(<% dl.text :#{attribute.name} %>)
|
54
|
-
when :integer
|
55
|
-
%(<% dl.number :#{attribute.name} %>)
|
56
|
-
when :boolean
|
57
|
-
%(<% dl.boolean :#{attribute.name} %>)
|
58
|
-
when :date
|
59
|
-
%(<% dl.date :#{attribute.name} %>)
|
60
|
-
when :datetime
|
61
|
-
%(<% dl.datetime :#{attribute.name} %>)
|
62
|
-
when :rich_text
|
63
|
-
%(<% dl.rich_text :#{attribute.name} %>)
|
64
|
-
when :attachment
|
65
|
-
%(<% dl.attachment :#{attribute.name} %>)
|
66
|
-
else
|
67
|
-
%(<% dl.text :#{attribute.name} %>)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
54
|
def index_attribute_for(attribute)
|
72
55
|
case attribute.type
|
73
56
|
when :integer
|
@@ -87,6 +70,8 @@ module Koi
|
|
87
70
|
end
|
88
71
|
end
|
89
72
|
|
73
|
+
alias_method :summary_attribute_for, :index_attribute_for
|
74
|
+
|
90
75
|
def index_attributes
|
91
76
|
attributes
|
92
77
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<%%= render(Koi::Header::EditComponent.new(resource: <%= singular_name %>)) %>
|
3
3
|
<%% end %>
|
4
4
|
|
5
|
-
<%%= form_with(model: <%= singular_name %>, url:
|
5
|
+
<%%= form_with(model: <%= singular_name %>, url: <%= show_helper(singular_name, type: :path) %>) do |form| %>
|
6
6
|
<%%= render "fields", form: %>
|
7
7
|
|
8
8
|
<div class="actions">
|
@@ -1,8 +1,3 @@
|
|
1
|
-
<%% content_for :head do %>
|
2
|
-
<meta name="turbo-refresh-method" content="morph">
|
3
|
-
<meta name="turbo-refresh-scroll" content="preserve">
|
4
|
-
<%% end %>
|
5
|
-
|
6
1
|
<%% content_for :header do %>
|
7
2
|
<%%= render(Koi::Header::IndexComponent.new(model: <%= class_name %>)) %>
|
8
3
|
<%% end %>
|
@@ -10,13 +5,13 @@
|
|
10
5
|
<%%= koi_index_actions create: true, search: true %>
|
11
6
|
|
12
7
|
<%%= table_with(collection:) do |row, <%= singular_name %>| %>
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
8
|
+
<%- index_attributes.each_with_index do |attribute, index| -%>
|
9
|
+
<%- if index.zero? -%>
|
10
|
+
<%% row.link :<%= attribute.name %> %>
|
11
|
+
<%- else -%>
|
12
|
+
<%= index_attribute_for attribute %>
|
13
|
+
<%- end -%>
|
14
|
+
<%- end -%>
|
20
15
|
<%% end %>
|
21
16
|
|
22
17
|
<%%== pagy_nav(collection.pagination) %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<%%= render(Koi::Header::NewComponent.new(model: <%= class_name %>)) %>
|
3
3
|
<%% end %>
|
4
4
|
|
5
|
-
<%%= form_with(model: <%= singular_name %>, url:
|
5
|
+
<%%= form_with(model: <%= singular_name %>, url: <%= index_helper(type: :path) %>) do |form| %>
|
6
6
|
<%%= render "fields", form: %>
|
7
7
|
|
8
8
|
<div class="actions">
|
@@ -4,14 +4,18 @@
|
|
4
4
|
|
5
5
|
<h2>Summary</h2>
|
6
6
|
|
7
|
-
<%%=
|
8
|
-
<%- attributes.
|
7
|
+
<%%= summary_table_with(model: <%= singular_name %>) do |row| %>
|
8
|
+
<%- attributes.each_with_index do |attribute, index| -%>
|
9
|
+
<%- if index.zero? -%>
|
10
|
+
<%% row.link :<%= attribute.name %> %>
|
11
|
+
<%- else -%>
|
9
12
|
<%= summary_attribute_for attribute %>
|
10
|
-
<%- end -%>
|
13
|
+
<%- end -%>
|
14
|
+
<%- end -%>
|
11
15
|
<%% end %>
|
12
16
|
|
13
17
|
<div class="actions">
|
14
|
-
<%%= button_to "Delete",
|
18
|
+
<%%= button_to "Delete", <%= show_helper(singular_name, type: :path) %>,
|
15
19
|
class: "button button--secondary",
|
16
20
|
method: :delete,
|
17
21
|
form: { data: { turbo_confirm: "Are you sure?" } } %>
|
@@ -8,8 +8,8 @@ module GOVUKDesignSystemFormBuilder
|
|
8
8
|
include FileElement
|
9
9
|
|
10
10
|
def initialize(builder, object_name, attribute_name, hint:, label:, caption:, form_group:, mime_types:,
|
11
|
-
**kwargs, &
|
12
|
-
super(builder, object_name, attribute_name, &
|
11
|
+
**kwargs, &)
|
12
|
+
super(builder, object_name, attribute_name, &)
|
13
13
|
|
14
14
|
@mime_types = mime_types
|
15
15
|
@label = label
|
@@ -59,10 +59,10 @@ module GOVUKDesignSystemFormBuilder
|
|
59
59
|
hint: {},
|
60
60
|
form_group: {},
|
61
61
|
mime_types: Koi.config.document_mime_types,
|
62
|
-
|
63
|
-
&
|
62
|
+
**,
|
63
|
+
&)
|
64
64
|
Elements::Document.new(
|
65
|
-
self, object_name, attribute_name, label:, caption:, hint:, form_group:, mime_types:,
|
65
|
+
self, object_name, attribute_name, label:, caption:, hint:, form_group:, mime_types:, **, &
|
66
66
|
).html
|
67
67
|
end
|
68
68
|
end
|
@@ -9,8 +9,8 @@ module GOVUKDesignSystemFormBuilder
|
|
9
9
|
include FileElement
|
10
10
|
|
11
11
|
def initialize(builder, object_name, attribute_name, hint:, label:, caption:, form_group:, mime_types:,
|
12
|
-
**kwargs, &
|
13
|
-
super(builder, object_name, attribute_name, &
|
12
|
+
**kwargs, &)
|
13
|
+
super(builder, object_name, attribute_name, &)
|
14
14
|
|
15
15
|
@mime_types = mime_types
|
16
16
|
@label = label
|
@@ -89,10 +89,10 @@ module GOVUKDesignSystemFormBuilder
|
|
89
89
|
hint: {},
|
90
90
|
form_group: {},
|
91
91
|
mime_types: Koi.config.image_mime_types,
|
92
|
-
|
93
|
-
&
|
92
|
+
**,
|
93
|
+
&)
|
94
94
|
Elements::Image.new(
|
95
|
-
self, object_name, attribute_name, label:, caption:, hint:, form_group:, mime_types:,
|
95
|
+
self, object_name, attribute_name, label:, caption:, hint:, form_group:, mime_types:, **, &
|
96
96
|
).html
|
97
97
|
end
|
98
98
|
end
|
data/lib/koi/form_builder.rb
CHANGED
@@ -7,31 +7,31 @@ module Koi
|
|
7
7
|
include GOVUKDesignSystemFormBuilder::Builder
|
8
8
|
|
9
9
|
# Generates a submit button for saving admin resources.
|
10
|
-
def admin_save(text = "Save", name: :commit, value: :save, class: "button button--primary", **
|
11
|
-
button(text, name:, value:, class:, **
|
10
|
+
def admin_save(text = "Save", name: :commit, value: :save, class: "button button--primary", **)
|
11
|
+
button(text, name:, value:, class:, **)
|
12
12
|
end
|
13
13
|
|
14
14
|
# Generates a delete link formatted as a button that will perform a turbo
|
15
15
|
# delete with a confirmation.
|
16
|
-
def admin_delete(text = "Delete", url: nil, confirm: "Are you sure?", data: {}, **
|
16
|
+
def admin_delete(text = "Delete", url: nil, confirm: "Are you sure?", data: {}, **)
|
17
17
|
return unless object.persisted?
|
18
18
|
|
19
19
|
link_to(text, url || url_for(action: :destroy),
|
20
20
|
class: "button button--secondary",
|
21
21
|
data: data.reverse_merge(turbo_method: :delete, turbo_confirm: confirm),
|
22
|
-
**
|
22
|
+
**)
|
23
23
|
end
|
24
24
|
|
25
25
|
# Generates an archive link formatted as a button that will perform a turbo
|
26
26
|
# delete with a confirmation.
|
27
|
-
def admin_archive(text = "Archive", **
|
28
|
-
admin_delete(text, **
|
27
|
+
def admin_archive(text = "Archive", **)
|
28
|
+
admin_delete(text, **)
|
29
29
|
end
|
30
30
|
|
31
31
|
# Generates a discard changes link formatted as a text button that navigates
|
32
32
|
# the user back to the previous page.
|
33
|
-
def admin_discard(text = "Discard", url: :back, **
|
34
|
-
link_to(text, url, class: "button button--text", **
|
33
|
+
def admin_discard(text = "Discard", url: :back, **)
|
34
|
+
link_to(text, url, class: "button button--text", **)
|
35
35
|
end
|
36
36
|
|
37
37
|
# @api internal
|
@@ -42,7 +42,7 @@ module Koi
|
|
42
42
|
hint[:text] ||= t("helpers.hint.default.document", max_size: @template.number_to_human_size(max_size))
|
43
43
|
end
|
44
44
|
|
45
|
-
super
|
45
|
+
super
|
46
46
|
end
|
47
47
|
|
48
48
|
# @api internal
|
@@ -53,20 +53,20 @@ module Koi
|
|
53
53
|
hint[:text] ||= t("helpers.hint.default.document", max_size: @template.number_to_human_size(max_size))
|
54
54
|
end
|
55
55
|
|
56
|
-
super
|
56
|
+
super
|
57
57
|
end
|
58
58
|
|
59
59
|
# Use content editor trix setup by default.
|
60
60
|
#
|
61
61
|
# @api internal
|
62
62
|
# @see GOVUKDesignSystemFormBuilder::Builder#govuk_rich_text_area
|
63
|
-
def govuk_rich_text_area(attribute_name, data: {},
|
63
|
+
def govuk_rich_text_area(attribute_name, data: {}, **, &)
|
64
64
|
data = data.reverse_merge(
|
65
65
|
direct_upload_url: @template.katalyst_content.direct_uploads_url,
|
66
66
|
controller: "content--editor--trix",
|
67
67
|
action: "trix-initialize->content--editor--trix#trixInitialize",
|
68
68
|
)
|
69
|
-
super
|
69
|
+
super
|
70
70
|
end
|
71
71
|
end
|
72
72
|
end
|
data/lib/koi/menu/builder.rb
CHANGED
@@ -27,10 +27,10 @@ module Koi
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
def add_menu(title:,
|
30
|
+
def add_menu(title:, **, &)
|
31
31
|
@menu.items.build(type: Katalyst::Navigation::Heading.name,
|
32
32
|
title:,
|
33
|
-
|
33
|
+
**,
|
34
34
|
index: @index,
|
35
35
|
depth: @depth)
|
36
36
|
@index += 1
|
@@ -39,21 +39,21 @@ module Koi
|
|
39
39
|
@depth -= 1
|
40
40
|
end
|
41
41
|
|
42
|
-
def add_link(title:, url:, **
|
42
|
+
def add_link(title:, url:, **)
|
43
43
|
@menu.items.build(type: Katalyst::Navigation::Link.name,
|
44
44
|
title:,
|
45
45
|
url:,
|
46
|
-
|
46
|
+
**,
|
47
47
|
index: @index,
|
48
48
|
depth: @depth)
|
49
49
|
@index += 1
|
50
50
|
end
|
51
51
|
|
52
|
-
def add_button(title:, url:, **
|
52
|
+
def add_button(title:, url:, **)
|
53
53
|
@menu.items.build(type: Katalyst::Navigation::Button.name,
|
54
54
|
title:,
|
55
55
|
url:,
|
56
|
-
|
56
|
+
**,
|
57
57
|
index: @index,
|
58
58
|
depth: @depth)
|
59
59
|
@index += 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: katalyst-koi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katalyst Interactive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -260,6 +260,7 @@ files:
|
|
260
260
|
- app/assets/javascripts/koi/controllers/keyboard_controller.js
|
261
261
|
- app/assets/javascripts/koi/controllers/navigation_controller.js
|
262
262
|
- app/assets/javascripts/koi/controllers/navigation_toggle_controller.js
|
263
|
+
- app/assets/javascripts/koi/controllers/pagy_nav_controller.js
|
263
264
|
- app/assets/javascripts/koi/controllers/show_hide_controller.js
|
264
265
|
- app/assets/javascripts/koi/controllers/sluggable_controller.js
|
265
266
|
- app/assets/javascripts/koi/controllers/webauthn_authentication_controller.js
|
@@ -272,17 +273,16 @@ files:
|
|
272
273
|
- app/assets/stylesheets/koi/base/_input.scss
|
273
274
|
- app/assets/stylesheets/koi/base/_link.scss
|
274
275
|
- app/assets/stylesheets/koi/base/_list.scss
|
276
|
+
- app/assets/stylesheets/koi/base/_tables.scss
|
275
277
|
- app/assets/stylesheets/koi/base/_typography.scss
|
276
278
|
- app/assets/stylesheets/koi/components/_actions-group.scss
|
277
279
|
- app/assets/stylesheets/koi/components/_clipboard.scss
|
278
280
|
- app/assets/stylesheets/koi/components/_document-field.scss
|
279
281
|
- app/assets/stylesheets/koi/components/_image-field.scss
|
280
282
|
- app/assets/stylesheets/koi/components/_index-actions.scss
|
281
|
-
- app/assets/stylesheets/koi/components/_index-table.scss
|
282
283
|
- app/assets/stylesheets/koi/components/_index.scss
|
283
284
|
- app/assets/stylesheets/koi/components/_pagy.scss
|
284
285
|
- app/assets/stylesheets/koi/components/_summary-list.scss
|
285
|
-
- app/assets/stylesheets/koi/components/index-table/_ordinal.scss
|
286
286
|
- app/assets/stylesheets/koi/layouts/_banner.scss
|
287
287
|
- app/assets/stylesheets/koi/layouts/_content.scss
|
288
288
|
- app/assets/stylesheets/koi/layouts/_flash.scss
|
@@ -303,6 +303,7 @@ files:
|
|
303
303
|
- app/assets/stylesheets/koi/utils/_hide.scss
|
304
304
|
- app/assets/stylesheets/koi/utils/_index.scss
|
305
305
|
- app/assets/stylesheets/koi/utils/_typography.scss
|
306
|
+
- app/components/concerns/koi/tables/cells.rb
|
306
307
|
- app/components/koi/content/editor/errors_component.html.erb
|
307
308
|
- app/components/koi/content/editor/errors_component.rb
|
308
309
|
- app/components/koi/content/editor/item_form_component.html.erb
|
@@ -326,7 +327,10 @@ files:
|
|
326
327
|
- app/components/koi/summary_list/text_component.rb
|
327
328
|
- app/components/koi/summary_list_component.html.erb
|
328
329
|
- app/components/koi/summary_list_component.rb
|
330
|
+
- app/components/koi/summary_table_component.rb
|
331
|
+
- app/components/koi/table_component.rb
|
329
332
|
- app/components/koi/tables/cells/attachment_component.rb
|
333
|
+
- app/components/koi/tables/cells/enum_component.rb
|
330
334
|
- app/components/koi/tables/cells/link_component.rb
|
331
335
|
- app/components/koi/tables/table_component.rb
|
332
336
|
- app/controllers/admin/admin_users_controller.rb
|
@@ -346,6 +350,7 @@ files:
|
|
346
350
|
- app/helpers/koi/date_helper.rb
|
347
351
|
- app/helpers/koi/definition_list_helper.rb
|
348
352
|
- app/helpers/koi/index_actions_helper.rb
|
353
|
+
- app/helpers/koi/pagy.rb
|
349
354
|
- app/jobs/koi/application_job.rb
|
350
355
|
- app/mailers/koi/application_mailer.rb
|
351
356
|
- app/models/admin/credential.rb
|