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 +4 -4
- data/app/helpers/ndr_ui/bootstrap_helper.rb +12 -1
- data/lib/ndr_ui/version.rb +1 -1
- metadata +14 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0fdbcdfefa799141a11842d423f2b696eb20ded9a05403d511e261363ca1a52
|
4
|
+
data.tar.gz: 19ab6a1335afa5060fe8139733ed21d2fcb85de96348600af07f6e92b3de22c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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'
|
data/lib/ndr_ui/version.rb
CHANGED
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.
|
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-
|
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:
|
34
|
+
name: sass
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
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:
|
46
|
+
version: '0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name: sass
|
48
|
+
name: bootstrap-sass
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
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:
|
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:
|
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:
|
130
|
+
version: 5.4.5
|
137
131
|
- !ruby/object:Gem::Dependency
|
138
132
|
name: simplecov
|
139
133
|
requirement: !ruby/object:Gem::Requirement
|