agilibox 1.9.14 → 1.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/app/assets/javascripts/agilibox/modals.coffee +1 -0
- data/app/filters/agilibox/small_data/filter_strategy_by_date_or_datetime_period.rb +1 -1
- data/app/filters/agilibox/small_data/filter_strategy_by_key_values.rb +1 -1
- data/app/helpers/agilibox/bootstrap_helper.rb +4 -4
- data/app/helpers/agilibox/font_awesome_helper.rb +2 -2
- data/app/helpers/agilibox/form_helper.rb +2 -2
- data/lib/agilibox/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: c2ac38c7ce2b93922b8caeb2c8d90301c44836149b1a646426a6966f24772352
|
4
|
+
data.tar.gz: e80e585846ab6380434509048d4d9b88c673c8b307e47b1ac4d7530b77176336
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8c2c2b1836986a3f10100a46bccd85982f2bc2dd10ac0361b0aecb16fccf58b6dfc15e811616cdfcdd162cf48407116b3980c79ca88833d1fb5dbc13c362543
|
7
|
+
data.tar.gz: 187ff2cbd4cd530ed94c7f37780b0556ca86db37cce67c959fc6a441e1fbf96ffd60d0653286656bfe9163a04a1dea7c62c4f04a017f49d19d02f0a876fc2f06
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class Agilibox::SmallData::FilterStrategyByDateOrDatetimePeriod < ::Agilibox::SmallData::FilterStrategyByKeyValue
|
2
2
|
def initialize(*)
|
3
|
-
if
|
3
|
+
if instance_of?(Agilibox::SmallData::FilterStrategyByDateOrDatetimePeriod)
|
4
4
|
raise "please use FilterStrategyByDatePeriod or FilterStrategyByDatetimePeriod"
|
5
5
|
end
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Agilibox::SmallData::FilterStrategyByKeyValues < ::Agilibox::SmallData::FilterStrategyByKeyValue
|
2
2
|
def apply(query, value)
|
3
|
-
value = value.split
|
3
|
+
value = value.split if value.is_a?(String)
|
4
4
|
value = value.select(&:present?)
|
5
5
|
column = column_for(query)
|
6
6
|
|
@@ -35,10 +35,10 @@ module Agilibox::BootstrapHelper
|
|
35
35
|
&block
|
36
36
|
)
|
37
37
|
global_classes = Agilibox::BootstrapHelper.card_classes
|
38
|
-
card_classes = ([global_classes[:card]] + card_class.to_s.split
|
39
|
-
header_classes = ([global_classes[:header]] + header_class.to_s.split
|
40
|
-
body_classes = ([global_classes[:body]] + body_class.to_s.split
|
41
|
-
footer_classes = ([global_classes[:footer]] + footer_class.to_s.split
|
38
|
+
card_classes = ([global_classes[:card]] + card_class.to_s.split).compact.sort
|
39
|
+
header_classes = ([global_classes[:header]] + header_class.to_s.split).compact.sort
|
40
|
+
body_classes = ([global_classes[:body]] + body_class.to_s.split).compact.sort
|
41
|
+
footer_classes = ([global_classes[:footer]] + footer_class.to_s.split).compact.sort
|
42
42
|
|
43
43
|
if header
|
44
44
|
header_html = content_tag(header_tag, class: header_classes) { header }
|
@@ -6,7 +6,7 @@ module Agilibox::FontAwesomeHelper
|
|
6
6
|
fa_style = Agilibox::FontAwesomeHelper.default_fa_style_for_id(id)
|
7
7
|
end
|
8
8
|
|
9
|
-
css_classes = options.delete(:class).to_s.split
|
9
|
+
css_classes = options.delete(:class).to_s.split
|
10
10
|
css_classes << "icon"
|
11
11
|
css_classes << "fa-#{id}"
|
12
12
|
css_classes << "fa#{fa_style.to_s[0]}"
|
@@ -15,7 +15,7 @@ module Agilibox::FontAwesomeHelper
|
|
15
15
|
|
16
16
|
attributes = options.merge(class: css_classes.sort.join(" ")).sort.to_h
|
17
17
|
|
18
|
-
tag.span(**attributes)
|
18
|
+
tag.span(**attributes)
|
19
19
|
end
|
20
20
|
|
21
21
|
class << self
|
@@ -23,11 +23,11 @@ module Agilibox::FormHelper
|
|
23
23
|
|
24
24
|
tag.div(class: "actions form-actions") do
|
25
25
|
submit = tag.button(type: :submit, class: "btn btn-sm btn-success form-submit") do
|
26
|
-
tag.span(class: "fa fa-save")
|
26
|
+
tag.span(class: "fa fa-save") + " " + ta(submit_action)
|
27
27
|
end
|
28
28
|
|
29
29
|
cancel = tag.a(href: back_url, class: "btn btn-primary btn-sm form-cancel") do
|
30
|
-
tag.span(class: "fa fa-times")
|
30
|
+
tag.span(class: "fa fa-times") + " " + ta(:cancel)
|
31
31
|
end
|
32
32
|
|
33
33
|
cancel = "" if back_url == false
|
data/lib/agilibox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agilibox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agilidée
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails-i18n
|