katalyst-koi 4.3.3 → 4.3.4
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c01ffe84ee107bd97647f21cd15c415414125836b88ba30368b455c042474ed
|
|
4
|
+
data.tar.gz: d766e1be77f966a305893b04de02f1a8f4f43ff526bd3f1dc6a350091ff15968
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 665d7e7700c959418293da0ec63a1f859ba18559bda48d5c9ed85e24e25de1fe3bdbf5c2695422b0c90549cef0bece37b66ca2ea46aa7e4deb8deb69cba6a27c
|
|
7
|
+
data.tar.gz: bdce01747a0093c8984c1437afd946f420209cfd133669cea99488d7926574986011880ffd962a4bc29bb02e83d0af23f3b2536a53f80b510222ed3b94a29e4f
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Koi
|
|
4
|
+
module Navigation
|
|
5
|
+
module Editor
|
|
6
|
+
class ErrorsComponent < ViewComponent::Base
|
|
7
|
+
include Katalyst::HtmlAttributes
|
|
8
|
+
include Katalyst::Tables::TurboReplaceable
|
|
9
|
+
include Turbo::FramesHelper
|
|
10
|
+
|
|
11
|
+
attr_reader :menu
|
|
12
|
+
|
|
13
|
+
def initialize(menu:)
|
|
14
|
+
super()
|
|
15
|
+
|
|
16
|
+
@menu = menu
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def id
|
|
20
|
+
dom_id(menu, :errors)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def form_builder
|
|
24
|
+
Koi::FormBuilder.new(menu.model_name.param_key, container, self, {})
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: katalyst-koi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.3.
|
|
4
|
+
version: 4.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Katalyst Interactive
|
|
@@ -299,6 +299,8 @@ files:
|
|
|
299
299
|
- app/components/koi/header_component.html.erb
|
|
300
300
|
- app/components/koi/header_component.rb
|
|
301
301
|
- app/components/koi/index_table_component.rb
|
|
302
|
+
- app/components/koi/navigation/editor/errors_component.html.erb
|
|
303
|
+
- app/components/koi/navigation/editor/errors_component.rb
|
|
302
304
|
- app/components/koi/ordinal_table_component.rb
|
|
303
305
|
- app/controllers/admin/admin_users_controller.rb
|
|
304
306
|
- app/controllers/admin/application_controller.rb
|
|
@@ -310,7 +312,6 @@ files:
|
|
|
310
312
|
- app/controllers/concerns/koi/controller/has_admin_users.rb
|
|
311
313
|
- app/controllers/concerns/koi/controller/has_webauthn.rb
|
|
312
314
|
- app/controllers/concerns/koi/controller/is_admin_controller.rb
|
|
313
|
-
- app/helpers/katalyst/navigation/editor/errors.rb
|
|
314
315
|
- app/helpers/koi/application_helper.rb
|
|
315
316
|
- app/helpers/koi/date_helper.rb
|
|
316
317
|
- app/helpers/koi/definition_list_helper.rb
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Katalyst
|
|
4
|
-
module Navigation
|
|
5
|
-
module Editor
|
|
6
|
-
class Errors < Base
|
|
7
|
-
def build(**options)
|
|
8
|
-
turbo_frame_tag dom_id(menu, :errors) do
|
|
9
|
-
form_builder.govuk_error_summary(**options)
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
private
|
|
14
|
-
|
|
15
|
-
def form_builder
|
|
16
|
-
Koi::FormBuilder.new(menu.model_name.param_key, menu, self, {})
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|