plutonium 0.18.7 → 0.18.8
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: db09e7efd9881620723c20ca5a7ca66da36abc10f6eaa11cdf35e0b02b2202e4
|
4
|
+
data.tar.gz: e03d61dda513fc33bf487179e55bcacfdd1964197c9eb4559ffb68ed1644b28b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cb1f9b6bc8ad83001cd8a70ce9a56d62d47a20a88fe10c32292866075b24759c402444920f6ec0000b3f12f08e79cb66a39f305d30ebc1e3ba015e2de680643
|
7
|
+
data.tar.gz: a04dc1fd9bf280c1574a3c1c71a1da9de2a6474a514f6cc1503c214250d40d5ef2a6350205906ddbac9ee497b73beef84095662d9222f1805b7254e6560205eb
|
@@ -7,6 +7,8 @@ module Plutonium
|
|
7
7
|
include Plutonium::UI::Component::Behaviour
|
8
8
|
|
9
9
|
class Builder < Builder
|
10
|
+
include Plutonium::UI::Display::Options::InferredTypes
|
11
|
+
|
10
12
|
def association_tag(**, &)
|
11
13
|
create_component(Plutonium::UI::Display::Components::Association, :association, **, &)
|
12
14
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Plutonium
|
4
|
+
module UI
|
5
|
+
module Display
|
6
|
+
module Options
|
7
|
+
module InferredTypes
|
8
|
+
private
|
9
|
+
|
10
|
+
def infer_field_component
|
11
|
+
case inferred_field_type
|
12
|
+
when :attachment
|
13
|
+
:attachment
|
14
|
+
else
|
15
|
+
super
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -32,6 +32,7 @@ module Plutonium
|
|
32
32
|
create_component(Components::Uppy, :uppy, **, &)
|
33
33
|
end
|
34
34
|
alias_method :file_tag, :uppy_tag
|
35
|
+
alias_method :attachment_tag, :uppy_tag
|
35
36
|
|
36
37
|
def secure_association_tag(**attributes, &)
|
37
38
|
attributes[:data_controller] = tokens(attributes[:data_controller], "slim-select") # TODO: put this behind a config
|
data/lib/plutonium/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plutonium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Froelich
|
@@ -814,6 +814,7 @@ files:
|
|
814
814
|
- lib/plutonium/ui/display/components/association.rb
|
815
815
|
- lib/plutonium/ui/display/components/attachment.rb
|
816
816
|
- lib/plutonium/ui/display/components/markdown.rb
|
817
|
+
- lib/plutonium/ui/display/options/inferred_types.rb
|
817
818
|
- lib/plutonium/ui/display/resource.rb
|
818
819
|
- lib/plutonium/ui/display/theme.rb
|
819
820
|
- lib/plutonium/ui/dyna_frame/content.rb
|