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: dc7be9cd681f1268f79a3196e2df52f823bf27435addf2bafd6149d54c2cccae
4
- data.tar.gz: 4ec5d39db429e15805cd46c0ae414a1486c24c42df2f2bd89c00b171e01bb7ab
3
+ metadata.gz: eb4ded1e0af9d04763d01c46f38a3badbbf963689a1b1b3160e8b891e0f193bc
4
+ data.tar.gz: 0bbe747df4a860b4569e8da2e4d794790672e3b797df86ac4bf2e7133fa09756
5
5
  SHA512:
6
- metadata.gz: d7f31dd4e49979ecd1b488b505eaf7c87ed8a41f2301578a2b4b26458075e64fd491c15b58638663d166da004d2c1f972412c5c4418809e77533b4bdc736de9c
7
- data.tar.gz: 928ae535652f6eba9f2ccf93686d09e71b0a51d0d8a98e24fd70a702e37f8734f5f0358b2b2c30bfc30d5972135b31ff02b37fadda364d9116f12304986e98f9
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
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceCustomizer
2
- VERSION = "1.0.0-beta.67"
2
+ VERSION = "1.0.0-beta.68"
3
3
  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.67
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-19 00:00:00.000000000 Z
12
+ date: 2024-09-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport