anchor_view_components 0.25.0 → 0.26.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/app/components/anchor/input_component.rb +1 -1
- data/app/helpers/anchor/form_builder.rb +10 -0
- data/lib/anchor/view_components/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2bd0902d51ad208b9bc71cf869c64a255d6a1e071a4e85b0ffcfbc93c95ffe7
|
4
|
+
data.tar.gz: 9186d977123c8f0aefb6c39c8b9f8e3c498a02766ada923e087074ab6d518ed7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd9eaa7d2faf9a73844cc078b7c27d52a2e0325df66bee6db752fd94ee940458849475f74261300d36393a02e59b6ccadee19b8c804ccd1bade1e7e53bea79b7
|
7
|
+
data.tar.gz: f324276441f6744ceeab61a1b50e348312aada0c4f8476273d0d6486421553b513a28ba942f3d37911dff5bd9acf433cc4a45248b1439d936c3673839157bb00
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.26.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 14c155f: Fix check_box helper arguments
|
8
|
+
|
9
|
+
## 0.26.0
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- dede94c: Generate testid for check_box helper
|
14
|
+
- 1c4aec8: Dasherize input testid
|
15
|
+
|
3
16
|
## 0.25.0
|
4
17
|
|
5
18
|
### Minor Changes
|
@@ -99,6 +99,16 @@ module Anchor
|
|
99
99
|
|
100
100
|
# The following methods are pending to be replaced with ViewComponents.
|
101
101
|
|
102
|
+
def check_box(attribute, options = {}, *args)
|
103
|
+
super(
|
104
|
+
attribute,
|
105
|
+
options.merge(
|
106
|
+
data: { testid: "checkbox-#{attribute.to_s.dasherize}" }
|
107
|
+
),
|
108
|
+
*args
|
109
|
+
)
|
110
|
+
end
|
111
|
+
|
102
112
|
def datetime_field(attribute, options = {})
|
103
113
|
super attribute, options.merge(class: Anchor::InputComponent::INPUT_CLASSES)
|
104
114
|
end
|