bullet_train 1.7.8 → 1.7.9
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 +4 -4
- data/docs/field-partials/dynamic-forms-dependent-fields.md +11 -7
- data/lib/bullet_train/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 990e8e2152fe4336a91a7476964b9635633b97608dc436de2c52322e8707a75a
|
|
4
|
+
data.tar.gz: 751e11af8ba96d42d806dab7ec2a0a735645af19adf0f6e22bdd702d2dcaa689
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 210c3801c1020ffde7835789d90fffcb0ffebd7840bec6e2afed6487423180897414888b3ced6ef1b1bda642d421a6d58eaadea49a5f6a4656d63bce927640f0
|
|
7
|
+
data.tar.gz: 2012d61884669049258c67838da59eaf2fdb2dec9468fd6f577fb1e215947ea54caf6813dc8b37aa9cf201ad6a70f697a340683745843c4d218f612d7fbf0555
|
|
@@ -53,11 +53,13 @@ To let our `:heard_from_other` field handle the `dependable:updated` event, we'l
|
|
|
53
53
|
<%= render 'shared/fields/text_field',
|
|
54
54
|
method: :heard_from_other,
|
|
55
55
|
id: form.field_id(:heard_from_other),
|
|
56
|
-
options: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
options: {
|
|
57
|
+
disabled: true,
|
|
58
|
+
data: {
|
|
59
|
+
controller: "field-availability",
|
|
60
|
+
action: "dependable:updated->field-availability#toggle",
|
|
61
|
+
field_availability_expected_value: "other"
|
|
62
|
+
}
|
|
61
63
|
}
|
|
62
64
|
%>
|
|
63
65
|
```
|
|
@@ -114,8 +116,10 @@ We'll move the conditional on the `disabled` property. And we'll also let the `d
|
|
|
114
116
|
|
|
115
117
|
<%= render 'shared/fields/text_field',
|
|
116
118
|
method: :heard_from_other,
|
|
117
|
-
options: {
|
|
118
|
-
|
|
119
|
+
options: {
|
|
120
|
+
disabled: form.object&.heard_from != "other",
|
|
121
|
+
data: {"#{dependent_fields_controller_name}-target": "field"}
|
|
122
|
+
}
|
|
119
123
|
%>
|
|
120
124
|
<% end %>
|
|
121
125
|
```
|
data/lib/bullet_train/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bullet_train
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Culver
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-05-
|
|
11
|
+
date: 2024-05-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: standard
|