forest_admin_datasource_toolkit 1.0.0.pre.beta.67 → 1.0.0.pre.beta.69
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: db7496ee20d81fe9eeab8575811f04439e2b15b8048a55f4893c93033a1bb715
|
4
|
+
data.tar.gz: 14e0fc35dea7a7e135f9660212df4f6cbddb75f7bd1150fca511698603d15ada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fda5e2a624bc0e262e5279d9c4b0faec307e4ae01a614c09ff00daa579067a11ccff433328ce91769d2af818ce2f3934f42da13f58f66acb1cec4da74c6c1422
|
7
|
+
data.tar.gz: 654219c544e315a5b62e8554ccc66328b643f61eeae64d4f1af80d3078725f16975de580e595003b265d223328a8e8eeea9c7009ee02fcf1a4879810ddbc3cca
|
@@ -16,6 +16,12 @@ module ForestAdminDatasourceToolkit
|
|
16
16
|
case field[:component]
|
17
17
|
when 'Separator'
|
18
18
|
ActionLayoutElement::SeparatorElement.new(**field)
|
19
|
+
when 'HtmlBlock'
|
20
|
+
ActionLayoutElement::HtmlBlockElement.new(**field)
|
21
|
+
when 'Row'
|
22
|
+
return ActionLayoutElement::RowElement.new(**field) unless field[:fields].empty?
|
23
|
+
|
24
|
+
nil
|
19
25
|
end
|
20
26
|
end
|
21
27
|
|
@@ -29,11 +29,29 @@ module ForestAdminDatasourceToolkit
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
+
class HtmlBlockElement < BaseLayoutElement
|
33
|
+
attr_reader :content
|
34
|
+
|
35
|
+
def initialize(content:, **options)
|
36
|
+
super(component: 'HtmlBlock', **options)
|
37
|
+
@content = content
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
32
41
|
class SeparatorElement < BaseLayoutElement
|
33
42
|
def initialize(**options)
|
34
43
|
super(component: 'Separator', **options)
|
35
44
|
end
|
36
45
|
end
|
46
|
+
|
47
|
+
class RowElement < BaseLayoutElement
|
48
|
+
attr_accessor :fields
|
49
|
+
|
50
|
+
def initialize(fields:, **options)
|
51
|
+
super(component: 'Row', **options)
|
52
|
+
@fields = fields
|
53
|
+
end
|
54
|
+
end
|
37
55
|
end
|
38
56
|
end
|
39
57
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_admin_datasource_toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.beta.
|
4
|
+
version: 1.0.0.pre.beta.69
|
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-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|