bullet_train-fields 1.5.0 → 1.5.2

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: 3ded7f75436ca4ef0733e74a98ada1c9ebc5ada78ed3dd900a178fbd24692ad2
4
- data.tar.gz: 314e9d778a5891f623403f3efaf4721108342de6f0573485d467d74f25009d71
3
+ metadata.gz: 0b6abd1c294872a2df1334d0ebc9a868d4116ff191f636c59f9aea0c05256950
4
+ data.tar.gz: 02a5e83c6b160abead9306b77df957bbda4b1838ef336146e2586020c7fc1894
5
5
  SHA512:
6
- metadata.gz: 4876120184099f88837ec4de877585e08aabc3f14cad60a3f6cbafe80ae50ab852b498a4a8236d713e1ab6490d36cf910ed61d46cce8e806af28c273d2661d7d
7
- data.tar.gz: accb52f02b543a625d682845a6929aa5a8b877dd8f0db6ef8a1d87920827d3c13962a5133784fce508b01f6f0bbd4afbaa75fb2ec0f88780d66509e7b6a7ad97
6
+ metadata.gz: bbbd64632981b5b00eb9285ea26bc6f294131165eb73750db1f9001c2ababf16319ebf751032fc17f6f36dfe2e9b780a392ead82887415524116eeb50804c1e8
7
+ data.tar.gz: 7acb2fe2324b24e1c94db2c31d36983b102824b49ce8c38eb51a7af420145aae705b8148406b438978470b410fd40af44e96948df7086a38928ecbe2877b5d9c
@@ -1,4 +1,4 @@
1
- module RefreshFieldsHelper
1
+ module DependentFieldsFrameHelper
2
2
  def accept_query_string_override_for(form, method)
3
3
  field_name = form.field_name(method)
4
4
 
@@ -8,7 +8,7 @@ export default class extends Controller {
8
8
  }
9
9
  static classes = [ "loading" ]
10
10
 
11
- updateFrameFromDependentField(event) {
11
+ updateFrameFromDependableField(event) {
12
12
  const field = event?.detail?.event?.detail?.event?.target || // super select nests its original jQuery event, contains <select> target
13
13
  event?.detail?.event?.target || // dependable_controller will include the original event in detail
14
14
  event?.target // maybe it was fired straight from the field
@@ -12,7 +12,7 @@ import PasswordController from './fields/password_controller'
12
12
  import PhoneController from './fields/phone_controller'
13
13
  import SuperSelectController from './fields/super_select_controller'
14
14
  import DependableController from './dependable_controller'
15
- import RefreshFieldsController from './refresh_fields_controller'
15
+ import DependentFieldsFrameController from './dependent_fields_frame_controller'
16
16
 
17
17
  export const controllerDefinitions = [
18
18
  [FieldController, 'fields/field_controller.js'],
@@ -27,7 +27,7 @@ export const controllerDefinitions = [
27
27
  [PhoneController, 'fields/phone_controller.js'],
28
28
  [SuperSelectController, 'fields/super_select_controller.js'],
29
29
  [DependableController, 'dependable_controller.js'],
30
- [RefreshFieldsController, 'refresh_fields_controller.js'],
30
+ [DependentFieldsFrameController, 'dependent_fields_frame_controller.js'],
31
31
  ].map(function(d) {
32
32
  const key = d[1]
33
33
  const controller = d[0]
@@ -50,5 +50,5 @@ export {
50
50
  PhoneController,
51
51
  SuperSelectController,
52
52
  DependableController,
53
- RefreshFieldsController,
53
+ DependentFieldsFrameController,
54
54
  }
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Fields
3
- VERSION = "1.5.0"
3
+ VERSION = "1.5.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-02 00:00:00.000000000 Z
11
+ date: 2023-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -99,14 +99,15 @@ files:
99
99
  - app/controllers/concerns/fields/date_support.rb
100
100
  - app/controllers/concerns/fields/options_support.rb
101
101
  - app/controllers/concerns/fields/super_select_support.rb
102
+ - app/helpers/dependent_fields_frame_helper.rb
102
103
  - app/helpers/fields/address_field_helper.rb
103
104
  - app/helpers/fields/cloudinary_image_helper.rb
104
105
  - app/helpers/fields/html_editor_helper.rb
105
106
  - app/helpers/fields/phone_field_helper.rb
106
107
  - app/helpers/fields/trix_editor_helper.rb
107
108
  - app/helpers/fields_helper.rb
108
- - app/helpers/refresh_fields_helper.rb
109
109
  - app/javascript/controllers/dependable_controller.js
110
+ - app/javascript/controllers/dependent_fields_frame_controller.js
110
111
  - app/javascript/controllers/fields/button_toggle_controller.js
111
112
  - app/javascript/controllers/fields/cloudinary_image_controller.js
112
113
  - app/javascript/controllers/fields/color_picker_controller.js
@@ -119,7 +120,6 @@ files:
119
120
  - app/javascript/controllers/fields/phone_controller.js
120
121
  - app/javascript/controllers/fields/super_select_controller.js
121
122
  - app/javascript/controllers/index.js
122
- - app/javascript/controllers/refresh_fields_controller.js
123
123
  - app/javascript/index.js
124
124
  - app/javascript/trix_editor.js
125
125
  - config/routes.rb