five-two-nw-olivander 0.1.2.21 → 0.1.2.22

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 539b6791367e3d96d805c01c479594b8df38866f9c15641cce69e9523d9556e7
4
- data.tar.gz: fc09874c9cd028c1e477db9fd5c448a77334f8c777b607a7527c2793328d03f8
3
+ metadata.gz: cf9c0144387ec2d459f02dadea4b96402dac9698093cc3fd897de95fc787ba7d
4
+ data.tar.gz: 84c801572bdec84621c76e8c34c0b640dcbc0f9b106edf4c0425d683455e7673
5
5
  SHA512:
6
- metadata.gz: 88815b3f90b87c1dd9ea1312cbc6b41d2f8c99c503f9c37e4d3850ea6427e5031af6a8e06dd3fd016baf2c5cde5fec6372126e8a1a26008528b6ba14af570132
7
- data.tar.gz: a73c30e128514624507f6ce823088a8d30fa97b9fa3831c8a919e246339e69fe5d518f022226b04181ccba0dd751a384f349052d03b0605900d5ba2f8656ec32
6
+ metadata.gz: e2cae3668e04550b11d6514e73cd914d29aab621e3b63b3ddaf1d0f79af52bb1d6b92e24d9a1747f0cf8af5e043ccc6a288b4e64a5fc4c960893db417e37d932
7
+ data.tar.gz: a6dd96121cec897f2639f147fca0737fdb20fc4dab3e8879635b6d41bf385dfe9303ece99333687c9e51041d383a051bca081f1896c640eafb73e201ca3ef1de
@@ -1,5 +1,7 @@
1
1
  - resource = (@_effective_resource || Effective::Resource.new(controller_path))
2
2
 
3
+ = render_optional_partial 'index_before'
4
+
3
5
  - if @datatable
4
6
  - content_for :datatable do
5
7
  = render_datatable(@datatable, charts: false)
@@ -7,18 +9,19 @@
7
9
  - keys = @datatable._charts.keys
8
10
  - ks = keys.size
9
11
  - if ks.positive?
10
- %br
11
- .row
12
- - @datatable._charts.keys.each do |k|
12
+ %br.foo
13
+ .row{ data: { controller: 'datatable-index-charts' }}
14
+ - keys.each do |k|
15
+ - chart = @datatable._charts[k]
13
16
  %div{ class: "#{col_class_num('xl', ks, 3)} #{col_class_num('lg', ks, 2)} #{col_class_num('md', ks, 6)} #{col_class_num('sm', ks, 6)}"}
14
- .card.card-primary
17
+ .card.card-primary{ data: { controller: 'datatable-expandable-chart' } }
15
18
  .card-header
16
19
  %h3.card-title= I18n.t([@datatable.class.name.underscore, 'charts', k].join('.'))
17
20
  .card-tools.text-right
18
21
  %button.btn.btn-tool{ type: :button, 'data-card-widget': :maximize }
19
22
  %i.fas.fa-expand
20
- .card-body{ style: 'min-height: 220px' }
21
- = render_datatable_chart(@datatable, k)
23
+ .card-body{ style: 'height: 220px' }
24
+ = send(chart[:as].underscore, @datatable.to_json[:charts][k][:data], id: chart[:name], height: '90%', adapter: 'google')
22
25
 
23
26
  = content_for :datatable_charts
24
27
 
@@ -45,7 +48,4 @@
45
48
  %p or include Effective::CrudController in your controller
46
49
  -# .card-footer
47
50
 
48
- - begin
49
- = render partial: 'index_additional'
50
- - rescue ActionView::MissingTemplate
51
- - Rails.logger.debug "did not find additional index partial"
51
+ = render_optional_partial 'index_after'
@@ -1,3 +1,3 @@
1
1
  module Olivander
2
- VERSION = "0.1.2.21"
2
+ VERSION = "0.1.2.22"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: five-two-nw-olivander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.21
4
+ version: 0.1.2.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dennis