forest_admin_datasource_customizer 1.0.0.pre.beta.67 → 1.0.0.pre.beta.68
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb4ded1e0af9d04763d01c46f38a3badbbf963689a1b1b3160e8b891e0f193bc
|
4
|
+
data.tar.gz: 0bbe747df4a860b4569e8da2e4d794790672e3b797df86ac4bf2e7133fa09756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0556831bfd0cc8cc3c7b3f76eb15cd99d664a5b89f33ba4541eab604efb626c4f3281af486d90683f3ab884318fd390110dc7b1f4fad189dd3bf6caa28ecf29
|
7
|
+
data.tar.gz: e931aa15321451fad8f8d36cd9d3ea615767b9023d008b05f04de4ebc6e46ea932346e50c973fe2bd3434eb380a73aa85e83b74d8d5d8a6672192877fbcd88a8
|
@@ -70,6 +70,8 @@ module ForestAdminDatasourceCustomizer
|
|
70
70
|
case field[:component]
|
71
71
|
when 'Separator'
|
72
72
|
FormLayoutElement::SeparatorElement.new(**field)
|
73
|
+
when 'HtmlBlock'
|
74
|
+
FormLayoutElement::HtmlBlockElement.new(**field)
|
73
75
|
else
|
74
76
|
raise ForestAdminDatasourceToolkit::Exceptions::ForestException,
|
75
77
|
"Unknow component type: #{field[:component]}"
|
@@ -16,10 +16,19 @@ module ForestAdminDatasourceCustomizer
|
|
16
16
|
end
|
17
17
|
|
18
18
|
class SeparatorElement < LayoutElement
|
19
|
-
def initialize(options)
|
19
|
+
def initialize(**options)
|
20
20
|
super(component: 'Separator', **options)
|
21
21
|
end
|
22
22
|
end
|
23
|
+
|
24
|
+
class HtmlBlockElement < LayoutElement
|
25
|
+
attr_accessor :content
|
26
|
+
|
27
|
+
def initialize(content:, **options)
|
28
|
+
super(component: 'HtmlBlock', **options)
|
29
|
+
@content = content
|
30
|
+
end
|
31
|
+
end
|
23
32
|
end
|
24
33
|
end
|
25
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_admin_datasource_customizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.beta.
|
4
|
+
version: 1.0.0.pre.beta.68
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthieu
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-09-
|
12
|
+
date: 2024-09-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|