forest_admin_datasource_toolkit 1.0.0.pre.beta.68 → 1.0.0.pre.beta.70

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: 782b4a69580cae0ca60ce9458728945e08fd5763e1291a835d0c033d01b04d4d
4
- data.tar.gz: e83f24fea69a9b998c28e094bfe32c28b07409b423c5359d64d74d9f6a92223e
3
+ metadata.gz: ba5e890be37b6df871a6838cdc56f996a7ccd4fd7177641d899ee2b154fef5ef
4
+ data.tar.gz: cfb24313d4da3745ddb1f2bd468e109465c7b523f10b41aea11bc90ecb2522b1
5
5
  SHA512:
6
- metadata.gz: 6ead7641df99b32fdcd5f1a3b3c96265eaf9cf25e033adacde079c47ec04b6340acd0d53bd99f62c2ab29c784c1c26ffcb527a481c90f33a52ff45567abdbb3a
7
- data.tar.gz: fa6912d82bbfd90b530449fd73c92af1134b860e812fe0e9e88f4b26cc9a42f463fbde48b4c7c86167d13b2eee519b01f7f8cf7cbebc64d534fb374be9a710ff
6
+ metadata.gz: 8deb273f997354e2e90dd734c6efbc7e19f3f19f2baaaf69d30cf58be6b94cb194d71a294cb8443efb4116944182bbd211356558123edfff56198c1394fd326f
7
+ data.tar.gz: 8a4a2a0ce2855c51ce75c8e6aba9026a561ff272373bd71405b50a880b01356d592df48a864659188ac85f305c262d8872dc7b3d318098bac308eb5e7b6abe92
@@ -4,11 +4,12 @@ module ForestAdminDatasourceToolkit
4
4
  class ActionField
5
5
  attr_accessor :value, :watch_changes
6
6
  attr_reader :type, :label, :description, :is_required, :is_read_only, :enum_values, :collection_name, :widget,
7
- :placeholder
7
+ :placeholder, :id
8
8
 
9
9
  def initialize(
10
10
  type:,
11
- label:,
11
+ label: nil,
12
+ id: nil,
12
13
  description: nil,
13
14
  is_required: false,
14
15
  is_read_only: false,
@@ -21,6 +22,7 @@ module ForestAdminDatasourceToolkit
21
22
  )
22
23
  @type = type
23
24
  @label = label
25
+ @id = id
24
26
  @description = description
25
27
  @is_required = is_required
26
28
  @is_read_only = is_read_only
@@ -18,6 +18,10 @@ module ForestAdminDatasourceToolkit
18
18
  ActionLayoutElement::SeparatorElement.new(**field)
19
19
  when 'HtmlBlock'
20
20
  ActionLayoutElement::HtmlBlockElement.new(**field)
21
+ when 'Row'
22
+ return ActionLayoutElement::RowElement.new(**field) unless field[:fields].empty?
23
+
24
+ nil
21
25
  end
22
26
  end
23
27
 
@@ -43,6 +43,15 @@ module ForestAdminDatasourceToolkit
43
43
  super(component: 'Separator', **options)
44
44
  end
45
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
46
55
  end
47
56
  end
48
57
  end
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceToolkit
2
- VERSION = "1.0.0-beta.68"
2
+ VERSION = "1.0.0-beta.70"
3
3
  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.68
4
+ version: 1.0.0.pre.beta.70
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-23 00:00:00.000000000 Z
12
+ date: 2024-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport