effective_bootstrap 0.9.45 → 0.9.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/effective_bootstrap/logic.js.coffee +9 -10
- data/app/helpers/effective_editor_helper.rb +2 -0
- data/app/helpers/effective_form_builder_helper.rb +2 -0
- data/app/helpers/effective_icons_helper.rb +2 -0
- data/app/models/effective/form_builder.rb +2 -0
- data/app/models/effective/form_input.rb +1 -1
- data/app/models/effective/form_inputs/article_editor.rb +2 -0
- data/app/models/effective/form_inputs/check_box.rb +2 -0
- data/app/models/effective/form_inputs/checks.rb +2 -0
- data/app/models/effective/form_inputs/ck_editor.rb +2 -0
- data/app/models/effective/form_inputs/clear.rb +2 -0
- data/app/models/effective/form_inputs/collection_input.rb +2 -0
- data/app/models/effective/form_inputs/date_field.rb +2 -0
- data/app/models/effective/form_inputs/datetime_field.rb +2 -0
- data/app/models/effective/form_inputs/delete.rb +2 -0
- data/app/models/effective/form_inputs/editor.rb +2 -0
- data/app/models/effective/form_inputs/email_cc_field.rb +2 -0
- data/app/models/effective/form_inputs/email_field.rb +2 -0
- data/app/models/effective/form_inputs/error_field.rb +3 -1
- data/app/models/effective/form_inputs/file_field.rb +2 -0
- data/app/models/effective/form_inputs/float_field.rb +2 -0
- data/app/models/effective/form_inputs/form_group.rb +2 -0
- data/app/models/effective/form_inputs/has_many.rb +2 -0
- data/app/models/effective/form_inputs/hidden_field.rb +2 -0
- data/app/models/effective/form_inputs/integer_field.rb +2 -0
- data/app/models/effective/form_inputs/number_field.rb +2 -0
- data/app/models/effective/form_inputs/number_text_field.rb +2 -0
- data/app/models/effective/form_inputs/password_field.rb +2 -0
- data/app/models/effective/form_inputs/percent_field.rb +2 -0
- data/app/models/effective/form_inputs/phone_field.rb +2 -0
- data/app/models/effective/form_inputs/price_field.rb +2 -0
- data/app/models/effective/form_inputs/radios.rb +2 -0
- data/app/models/effective/form_inputs/remote_link_to.rb +2 -0
- data/app/models/effective/form_inputs/reset.rb +2 -0
- data/app/models/effective/form_inputs/rich_text_area.rb +2 -0
- data/app/models/effective/form_inputs/save.rb +2 -0
- data/app/models/effective/form_inputs/search_field.rb +2 -0
- data/app/models/effective/form_inputs/select.rb +2 -0
- data/app/models/effective/form_inputs/select_or_text.rb +2 -0
- data/app/models/effective/form_inputs/static_field.rb +2 -0
- data/app/models/effective/form_inputs/submit.rb +4 -1
- data/app/models/effective/form_inputs/text_area.rb +2 -0
- data/app/models/effective/form_inputs/text_field.rb +2 -0
- data/app/models/effective/form_inputs/time_field.rb +2 -0
- data/app/models/effective/form_inputs/time_zone_select.rb +2 -0
- data/app/models/effective/form_inputs/url_field.rb +2 -0
- data/app/models/effective/form_logic.rb +2 -0
- data/app/models/effective/form_logics/hide_if.rb +2 -0
- data/app/models/effective/form_logics/show_if.rb +2 -0
- data/app/models/effective/form_logics/show_if_any.rb +2 -0
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb1974ae9373cb7598952c9268026c2e05b0d21e25f3d7022646aca63b8a72ef
|
4
|
+
data.tar.gz: f1400e0cfd13ddb003a00142c2150e756c565408275e110be183d04d741a1ab7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdf878720dca75c2ae3633099df420defa12ed38661be78ce4189d337bcda6e19c192c4318a5192ba3f207c9ead8aa72f506669b79bd52a105151f80d61dbad7
|
7
|
+
data.tar.gz: 8d18535bc868173d7ba3c3876887f9f9f76b022c0771127c3bb6d52338b650b223447d5ea65022dc51d7bc1de1a44b13a6892cf3bf1dbba0f1882671dce2bee6
|
@@ -11,14 +11,14 @@
|
|
11
11
|
|
12
12
|
if matches
|
13
13
|
$element.hide()
|
14
|
-
$element.find('input,textarea,select').prop('disabled', true)
|
14
|
+
$element.find('input,textarea,select,button').prop('disabled', true)
|
15
15
|
else
|
16
16
|
$element.fadeIn()
|
17
|
-
$element.find('input,textarea,select').removeAttr('disabled')
|
17
|
+
$element.find('input,textarea,select,button').removeAttr('disabled')
|
18
18
|
|
19
19
|
# Maybe disable it now
|
20
20
|
if options.needDisable
|
21
|
-
$element.find('input,textarea,select').prop('disabled', true)
|
21
|
+
$element.find('input,textarea,select,button').prop('disabled', true)
|
22
22
|
|
23
23
|
|
24
24
|
(this.EffectiveBootstrap || {}).effective_show_if = ($element, options) ->
|
@@ -34,14 +34,14 @@
|
|
34
34
|
|
35
35
|
if matches
|
36
36
|
$element.fadeIn()
|
37
|
-
$element.find('input,textarea,select').removeAttr('disabled')
|
37
|
+
$element.find('input,textarea,select,button').removeAttr('disabled')
|
38
38
|
else
|
39
39
|
$element.hide()
|
40
|
-
$element.find('input,textarea,select').prop('disabled', true)
|
40
|
+
$element.find('input,textarea,select,button').prop('disabled', true)
|
41
41
|
|
42
42
|
# Maybe disable it now
|
43
43
|
if options.needDisable
|
44
|
-
$element.find('input,textarea,select').prop('disabled', true)
|
44
|
+
$element.find('input,textarea,select,button').prop('disabled', true)
|
45
45
|
|
46
46
|
(this.EffectiveBootstrap || {}).effective_show_if_any = ($element, options) ->
|
47
47
|
$affects = $element.closest('form').find("input[name='#{options.name}'],select[name='#{options.name}']")
|
@@ -53,12 +53,11 @@
|
|
53
53
|
|
54
54
|
if found
|
55
55
|
$element.fadeIn()
|
56
|
-
$element.find('input,textarea,select').removeAttr('disabled')
|
56
|
+
$element.find('input,textarea,select,button').removeAttr('disabled')
|
57
57
|
else
|
58
58
|
$element.hide()
|
59
|
-
$element.find('input,textarea,select').prop('disabled', true)
|
59
|
+
$element.find('input,textarea,select,button').prop('disabled', true)
|
60
60
|
|
61
61
|
# Maybe disable it now
|
62
62
|
if options.needDisable
|
63
|
-
$element.find('input,textarea,select').prop('disabled', true)
|
64
|
-
|
63
|
+
$element.find('input,textarea,select,button').prop('disabled', true)
|
@@ -8,7 +8,7 @@ module Effective
|
|
8
8
|
EMPTY_HASH = {}
|
9
9
|
|
10
10
|
EXCLUSIVE_CLASS_PREFIXES = [] # None
|
11
|
-
EXCLUSIVE_CLASS_SUFFIXES = ['-primary', '-secondary', '-success', '-danger', '-warning', '-info', '-light', '-dark']
|
11
|
+
EXCLUSIVE_CLASS_SUFFIXES = ['-primary', '-secondary', '-success', '-danger', '-warning', '-info', '-light', '-dark', '-link']
|
12
12
|
|
13
13
|
DEFAULT_INPUT_GROUP_OPTIONS = { input_group: { class: 'input-group' }, prepend: false, append: false }
|
14
14
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Effective
|
2
4
|
module FormInputs
|
3
5
|
class ErrorField < Effective::FormInput
|
@@ -32,7 +34,7 @@ module Effective
|
|
32
34
|
end
|
33
35
|
)
|
34
36
|
|
35
|
-
content_tag(:div, content, options[:input])
|
37
|
+
content_tag(:div, content.html_safe, options[:input])
|
36
38
|
end
|
37
39
|
|
38
40
|
private
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#method-i-select
|
2
4
|
# select(object, method, choices = nil, options = {}, html_options = {}, &block)
|
3
5
|
# ActionView::Helpers::FormBuilder.instance_method(:check_box).bind(self).call(m, opts, v)`
|
@@ -1,9 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Effective
|
2
4
|
module FormInputs
|
3
5
|
class Submit < Effective::FormInput
|
4
6
|
|
5
7
|
def to_html(&block)
|
6
|
-
return
|
8
|
+
return nil if form_readonly?
|
9
|
+
super()
|
7
10
|
end
|
8
11
|
|
9
12
|
def build_input(&block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10
|
11
|
+
date: 2021-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|