ndr_ui 2.2.0 → 2.3.0

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: d9251b6829a45855bbf3b52573285d8cf1621c4355054a478753febec951e832
4
- data.tar.gz: '043978f3db1be0bffbb30dba0f35425ed1c45286534f5ed3de2a32682c6b22d3'
3
+ metadata.gz: d0fdbcdfefa799141a11842d423f2b696eb20ded9a05403d511e261363ca1a52
4
+ data.tar.gz: 19ab6a1335afa5060fe8139733ed21d2fcb85de96348600af07f6e92b3de22c0
5
5
  SHA512:
6
- metadata.gz: b56e1411e9a349b27807911e621dcded460372439c03da2c62db2ff6c1168cf0c5ca2e20c23d985dd44ab3741095e3169238aba5dafc2c3aaf4951585ea54e68
7
- data.tar.gz: ac80973afb0c69e59c148020658ba988316cb55c022cf39306ffd077244f1adf0987b8eb300199e91704bb00b92727c61504094599f1b3df0ff6fa8b848c3f40
6
+ metadata.gz: d73c5cb8b8d40e39e90e1df48bcf0b1481e321107e74361df020bce72528410a9f92b95f61787a461f6568eb24295aecc66153839f703baa18c8c34453681f0c
7
+ data.tar.gz: 4520d208204125033fc82dc0ef5f4d31caf49b0616f0e2cd502ce4b11f74cd4fef6166f2b3e33023187ca6c257e4193a92b53d677bbcc630a35743e6829c175b
@@ -227,9 +227,15 @@ module NdrUi
227
227
  if horizontal = options.delete(:horizontal)
228
228
  # set the form html class for horizontal bootstrap forms
229
229
  options[:html][:class] ||= ''
230
- options[:html][:class] = (options[:html][:class].split(' ') << 'form-horizontal').uniq.join(' ')
230
+ classes = (options[:html][:class].split(' ') << 'form-horizontal').uniq.join(' ')
231
+ options[:html][:class] = classes
231
232
  end
232
233
 
234
+ # stimuls controller, default `form_controller`
235
+ options[:html][:'data-controller'] ||= ''
236
+ controllers = (options[:html][:'data-controller'].split(' ') << 'form').uniq.join(' ')
237
+ options[:html][:'data-controller'] = controllers
238
+
233
239
  # We switch autocomplete off by default
234
240
  raise 'autocomplete should be defined an html option' if options[:autocomplete]
235
241
  options[:html][:autocomplete] ||= 'off'
@@ -258,6 +264,11 @@ module NdrUi
258
264
  options[:html][:class] = classes
259
265
  end
260
266
 
267
+ # stimuls controller, default `form_controller`
268
+ options[:html][:'data-controller'] ||= ''
269
+ controllers = (options[:html][:'data-controller'].split(' ') << 'form').uniq.join(' ')
270
+ options[:html][:'data-controller'] = controllers
271
+
261
272
  # We switch autocomplete off by default
262
273
  raise 'autocomplete should be defined an html option' if options[:autocomplete]
263
274
  options[:html][:autocomplete] ||= 'off'
@@ -2,5 +2,5 @@
2
2
 
3
3
  # This stores the current version of the NdrUi gem. Use semantic versioning http://semver.org
4
4
  module NdrUi
5
- VERSION = '2.2.0'.freeze
5
+ VERSION = '2.3.0'.freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ndr_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NDR Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-08 00:00:00.000000000 Z
11
+ date: 2019-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -31,33 +31,33 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: '7.0'
33
33
  - !ruby/object:Gem::Dependency
34
- name: bootstrap-sass
34
+ name: sass
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 3.4.1
39
+ version: '0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 3.4.1
46
+ version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: sass-rails
48
+ name: bootstrap-sass
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '3.2'
53
+ version: 3.4.1
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ">="
58
+ - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '3.2'
60
+ version: 3.4.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: jquery-rails
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -118,22 +118,16 @@ dependencies:
118
118
  name: ndr_dev_support
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '3.1'
124
121
  - - ">="
125
122
  - !ruby/object:Gem::Version
126
- version: 3.1.3
123
+ version: 5.4.5
127
124
  type: :development
128
125
  prerelease: false
129
126
  version_requirements: !ruby/object:Gem::Requirement
130
127
  requirements:
131
- - - "~>"
132
- - !ruby/object:Gem::Version
133
- version: '3.1'
134
128
  - - ">="
135
129
  - !ruby/object:Gem::Version
136
- version: 3.1.3
130
+ version: 5.4.5
137
131
  - !ruby/object:Gem::Dependency
138
132
  name: simplecov
139
133
  requirement: !ruby/object:Gem::Requirement