bullet_train 1.7.21 → 1.7.23

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: f4f2685373654c8fe8fe84423de70f52cc62f7110f388826348b6909eddbdf99
4
- data.tar.gz: 7059266b1951653f961529f05699afe0825d33951c1d41ae1764d5cc61b27c79
3
+ metadata.gz: f862701bd33288070a27c6cb4d129e83adc37664b3afd632341b92c7b88deba4
4
+ data.tar.gz: 59900a35f5547563b17af1efa3e0111210f1e5c22ffac57cfaf9faf703359239
5
5
  SHA512:
6
- metadata.gz: 72f9d90558c04e417f59ebc3c194dc87ec97d0c36fc87fd446fca2a87fae414a0653db916ef335aefd6f478e0c0063764d4f89dc74343f0653e688685f1fd1f3
7
- data.tar.gz: c3e5f0fc4d6ea7c54513ab626ba4ea52bd80a3a4e0eff2a345d2247ed1fc60c50461da2815517877d95ab5a6371f7cc912acdbc2b0a210fc7b1920936779a6ca
6
+ metadata.gz: 55086ab8f8f0bfa8fd5c37958c91d27dc7b79d2d74fd219bdb10026697302f4a2c9e3a7b7de601226fc02ad8285b9fc391ba43319a45f1af5e182ae8fd821a8e
7
+ data.tar.gz: b3210f854f1fde2c2277c6ae30fa10e0900963b13e647e9d7835b4cd0038695c9492c1ec9f46677a49e6bd6ad2bb15edf41ff956d9326c1a39af14d7181efb69
@@ -84,9 +84,9 @@ en:
84
84
  date_and_time: '%m/%d/%Y %l:%M %p'
85
85
  file_fields:
86
86
  download: Download File
87
- download_current: Download Current Document
88
- remove: Remove Current Document
89
- upload: Upload New Document
87
+ download_current: Download Current File
88
+ remove: Remove Current File
89
+ upload: Upload New File
90
90
  bulk_select:
91
91
  all: All
92
92
 
@@ -1,4 +1,4 @@
1
- Note: before you attempt to manually wire up a `super_select` field, note that Super Scaffolding will automatically do that for your models. See [Super Scaffolding](/docs/super-scaffolding.md) docs, section 4, for an example. And make sure Super Scaffolding doesn't automatically do what you're trying to do.
1
+ Note: before you attempt to manually wire up a `super_select` field, note that Super Scaffolding will automatically do that for your models. See [Super Scaffolding](/docs/super-scaffolding.md), docs, section 5, for an example. And make sure Super Scaffolding doesn't automatically do what you're trying to do.
2
2
 
3
3
  # Examples for the `super_select` Field Partial
4
4
 
@@ -133,40 +133,7 @@ All events dispatched from the `super_select` partial are [Select2's jQuery even
133
133
  | select2:clearing | $select2:clearing |
134
134
  | select2:clear | $select2:clear |
135
135
 
136
- For example, the view template for catching the `$change` events in a parent `dependent-form-fields` using a Stimulus controller with a single `updateDependentFields` method would look like this:
137
-
138
- <pre><code>&lt;div data-controller="dependent-form-fields"&gt;
139
- &lt;div data-action="$change->dependent-form-fields#updateDependentFields"&gt;
140
- <%= render 'shared/fields/super_select', form: form, method: :category_id,
141
- choices: Category.all.map { |category| [category.label_string, category.id] } %>
142
- &lt;/div&gt;
143
- &lt;div&gt;
144
- &lt;!-- This is the dependent field that would get updated when the previous one changes --&gt;
145
- <%= render 'shared/fields/super_select', form: form, method: :category_id,
146
- choices: Category.all.map { |category| [category.label_string, category.id] },
147
- html_options: { data: { 'dependent-form-fields-target': 'dependentField' }} %>
148
- &lt;/div&gt;
149
- &lt;/div&gt;</code></pre>
150
-
151
- And this is an example of what the `dependent-form-fields` Stimulus controller would look like.
152
-
153
- <pre><code>
154
- // dependent_form_fields_controller.js
155
- import { Controller } from "stimulus"
156
-
157
- export default class extends Controller {
158
- static targets = [ "dependentField" ]
159
-
160
- updateDependentFields(event) {
161
- const originalSelect2Event = event.detail.event
162
- console.log(`catching event ${event.type}`, originalSelect2Event)
163
-
164
- this.dependentFieldTargets.forEach((dependentField) => {
165
- // update dependentField based on value found in originalSelect2Event.target.value
166
- })
167
- }
168
- }
169
- </code></pre>
136
+ For an example of catching the `$change` event to update a dependent field, look at the [Dynamic Forms and Dependent Fields](/docs/field-partials/dynamic-forms-dependent-fields.md) doc.
170
137
 
171
138
  [select2]: https://select2.org
172
139
  [select2_events]: https://select2.org/programmatic-control/events
@@ -11,7 +11,7 @@ Most of these include skipping particular functionalities, so take a look at wha
11
11
  |--------|-------------|
12
12
  | `--sortable` | [Details here](/docs/super-scaffolding/sortable.md) |
13
13
  | `--namespace=customers` | [Details here](/docs/namespacing.md) |
14
- | `--sidebar="ti-world"` | Pass the Themify icon or Font Awesome icon of your choice to automatically add it to the navbar* |
14
+ | `--navbar="ti-world"` | Pass the Themify icon or Font Awesome icon of your choice to automatically add it to the navbar* |
15
15
  | `--only-index` | Only scaffold the index view for a model"` |
16
16
  | `--skip-views` | |
17
17
  | `--skip-form` | |
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.7.21"
2
+ VERSION = "1.7.23"
3
3
  end
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.21
4
+ version: 1.7.23
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-08-20 00:00:00.000000000 Z
11
+ date: 2024-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard