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 +4 -4
- data/app/helpers/{refresh_fields_helper.rb → dependent_fields_frame_helper.rb} +1 -1
- data/app/javascript/controllers/{refresh_fields_controller.js → dependent_fields_frame_controller.js} +1 -1
- data/app/javascript/controllers/index.js +3 -3
- data/lib/bullet_train/fields/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b6abd1c294872a2df1334d0ebc9a868d4116ff191f636c59f9aea0c05256950
|
4
|
+
data.tar.gz: 02a5e83c6b160abead9306b77df957bbda4b1838ef336146e2586020c7fc1894
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbbd64632981b5b00eb9285ea26bc6f294131165eb73750db1f9001c2ababf16319ebf751032fc17f6f36dfe2e9b780a392ead82887415524116eeb50804c1e8
|
7
|
+
data.tar.gz: 7acb2fe2324b24e1c94db2c31d36983b102824b49ce8c38eb51a7af420145aae705b8148406b438978470b410fd40af44e96948df7086a38928ecbe2877b5d9c
|
@@ -8,7 +8,7 @@ export default class extends Controller {
|
|
8
8
|
}
|
9
9
|
static classes = [ "loading" ]
|
10
10
|
|
11
|
-
|
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
|
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
|
-
[
|
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
|
-
|
53
|
+
DependentFieldsFrameController,
|
54
54
|
}
|
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.
|
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-
|
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
|