ui_bibz 2.0.0.alpha8 → 2.0.0.alpha9

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
  SHA1:
3
- metadata.gz: bf840a99cb963efc5f8b2b469ded1146702d1f33
4
- data.tar.gz: e6f0757da38ea3f7bedbadb583656da63a251a0c
3
+ metadata.gz: d994da13cc8dffb8a53814c5e82c09ce66b926fe
4
+ data.tar.gz: d384e0576e36d45b7afe84c66515414706b4c517
5
5
  SHA512:
6
- metadata.gz: 8a4e5715d1eeaf8520c387be0fda2d57d07ccc83dd72e35644bbd582591466bcb9d685086567bdc7a79704253a39e4204b1101605af6ab8ec9fdc702ff488e02
7
- data.tar.gz: ad885ba7b69912ce310721611f8a54cddb073a06a8dcad6da54cb0bf99648f2e0c42e6f95ee86cd951d6998841f3c454e8e75f0e3141f697345f6295f19df50a
6
+ metadata.gz: a2df8ff3e804c9bb4d2eefa746ea0c6817e0b89e453113422ad669a47d0a7258852113e2576495c91d8954d08492ff1162f0ce25f769ba8bc497c03732330293
7
+ data.tar.gz: 684081a938d52d29690900a6ed21e5a47cf07e95a48a5f3567147a4435c70e241a178617a5e24083f95c6648ffd773278694b024a2b652b0c28fe869f31a883d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (2.0.0.alpha8)
4
+ ui_bibz (2.0.0.alpha9)
5
5
  bootstrap (< 4.0.0.alpha3)
6
6
  bundler (>= 1.8.4)
7
7
  font-awesome-sass
@@ -5,6 +5,12 @@
5
5
  table
6
6
  th
7
7
  border-top: none
8
+
9
+ .progress
10
+ margin: 5px 0px 0px 0px
11
+ border: 1px solid $gray-light
12
+ border-radius: $border-radius
13
+
8
14
  .card-header
9
15
  //background-color: $table-bg-active
10
16
  .title
@@ -21,6 +27,7 @@
21
27
  .card-table, .card-body
22
28
  overflow-x: auto
23
29
  min-height: 200px
30
+
24
31
  .card-footer
25
32
  //background-color: $table-bg-active
26
33
  padding: 10px 10px
@@ -14,6 +14,8 @@ module UiBibz::Ui::Ux
14
14
  case @col.as
15
15
  when :boolean
16
16
  boolean_render
17
+ when :progress
18
+ progress_render
17
19
  end
18
20
  end
19
21
 
@@ -28,5 +30,9 @@ module UiBibz::Ui::Ux
28
30
  glyph.render
29
31
  end
30
32
 
33
+ def progress_render
34
+ UiBibz::Ui::Core::Progress.new(@content, state: (@col.state || :primary)).render
35
+ end
36
+
31
37
  end
32
38
  end
@@ -1,7 +1,7 @@
1
1
  module UiBibz::Ui::Ux
2
2
  class Column < UiBibz::Ui::Core::Component
3
3
 
4
- attr_accessor :hidden, :link, :name, :class, :as, :data_index, :date_format, :sort, :format, :date_format, :count, :custom_sort, :parent, :id
4
+ attr_accessor :hidden, :link, :state, :name, :class, :as, :data_index, :date_format, :sort, :format, :date_format, :count, :custom_sort, :parent, :id
5
5
 
6
6
  def initialize content = nil, options = nil, html_options = nil, &block
7
7
  super
@@ -19,6 +19,7 @@ module UiBibz::Ui::Ux
19
19
  @format = @options[:format]
20
20
  @class = @options[:class]
21
21
  @hidden = @options[:hidden]
22
+ @state = @options[:state]
22
23
  end
23
24
 
24
25
  def linkable?
@@ -1,3 +1,3 @@
1
1
  module UiBibz
2
- VERSION = "2.0.0.alpha8"
2
+ VERSION = "2.0.0.alpha9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ui_bibz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.alpha8
4
+ version: 2.0.0.alpha9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thooams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-24 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler