pageflow-chart 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -10
- data/Gemfile +0 -2
- data/app/assets/javascripts/pageflow/chart/page_type.js +1 -16
- data/app/assets/stylesheets/pageflow/chart.scss +3 -3
- data/chart.gemspec +1 -1
- data/lib/pageflow/chart/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3edeadab75c938eec7fbdaeedef925d5aa79dfd758072d822f66e8f730850651
|
4
|
+
data.tar.gz: e9de614880042bebf4b941f70664ae0b0f7bb5a653eee29fc695f5b3f71bfdce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 325a81fb99b6786a72fb613c496507a62d6fa37fa8a53d342d58b85c68a246791c354b00866ae51835b6930afa087d8306a37923c5ec8f682c471878cc4dad5c
|
7
|
+
data.tar.gz: 14dbc39347ffdac89c0e7d5579f8ba299bc0508507de9146cccd9fc992ddd2d8d29f29101c76134cc2054b43660d07c75473d85be8e2c31de1fb5b45ef7ede67
|
data/CHANGELOG.md
CHANGED
@@ -1,18 +1,16 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Version 1.
|
3
|
+
### Version 1.2.0
|
4
4
|
|
5
|
-
|
5
|
+
2018-07-30
|
6
6
|
|
7
|
-
[Compare changes](https://github.com/codevise/pageflow-chart/compare/1-
|
7
|
+
[Compare changes](https://github.com/codevise/pageflow-chart/compare/1-1-stable...v1.2.0)
|
8
8
|
|
9
|
-
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
- Ignore Openuri::HttpError when downloading
|
14
|
-
([#40](https://github.com/codevise/pageflow-chart/pull/40))
|
9
|
+
- Add support for right to left layout
|
10
|
+
([#44](https://github.com/codevise/pageflow-chart/pull/44))
|
11
|
+
- Use split layout utils provided by pageflow 12.2
|
12
|
+
([#42](https://github.com/codevise/pageflow-chart/pull/42))
|
15
13
|
|
16
14
|
See
|
17
|
-
[1-
|
15
|
+
[1-1-stable branch](https://github.com/codevise/pageflow-chart/blob/1-1-stable/CHANGELOG.md)
|
18
16
|
for previous changes.
|
data/Gemfile
CHANGED
@@ -25,7 +25,7 @@ pageflow.react.registerPageTypeWithDefaultBackground('chart', {
|
|
25
25
|
|
26
26
|
pageElement.toggleClass('page-with_split_layout', !fullWidth);
|
27
27
|
|
28
|
-
var splitLayout =
|
28
|
+
var splitLayout = pageflow.pageSplitLayout.pageIsWideEnough(pageElement) && !fullWidth;
|
29
29
|
|
30
30
|
iframeWrapper.toggleClass('widescreened', splitLayout);
|
31
31
|
|
@@ -37,21 +37,6 @@ pageflow.react.registerPageTypeWithDefaultBackground('chart', {
|
|
37
37
|
}
|
38
38
|
},
|
39
39
|
|
40
|
-
wideEnoughForSplitLayout: function(pageElement) {
|
41
|
-
var pageTitle = pageElement.find('.page_header .title');
|
42
|
-
|
43
|
-
var pageTitleClientRect = pageTitle[0].getBoundingClientRect();
|
44
|
-
var pageClientRect = pageElement[0].getBoundingClientRect();
|
45
|
-
|
46
|
-
var spaceRightFromTitle = pageClientRect.right - pageTitleClientRect.right;
|
47
|
-
var spaceLeftFromTitle = pageTitleClientRect.left - pageClientRect.left;
|
48
|
-
var leftPositionedEmbedWidth = pageClientRect.width * 0.51;
|
49
|
-
var rightPositionedEmbedWidth = pageClientRect.width * 0.55;
|
50
|
-
|
51
|
-
return (spaceRightFromTitle >= rightPositionedEmbedWidth ||
|
52
|
-
spaceLeftFromTitle >= leftPositionedEmbedWidth);
|
53
|
-
},
|
54
|
-
|
55
40
|
customizeLayout: function(pageElement, configuration) {
|
56
41
|
var that = this;
|
57
42
|
var iframe = pageElement.find('iframe');
|
@@ -27,7 +27,7 @@
|
|
27
27
|
width: 45%;
|
28
28
|
height: 95%;
|
29
29
|
max-height: 600px;
|
30
|
-
|
30
|
+
@include position-end(10%);
|
31
31
|
margin-top: 16%;
|
32
32
|
margin-bottom: 0;
|
33
33
|
z-index: 1;
|
@@ -76,8 +76,8 @@
|
|
76
76
|
}
|
77
77
|
|
78
78
|
.text_position_right &.widescreened {
|
79
|
-
|
80
|
-
|
79
|
+
@include position-end(auto);
|
80
|
+
@include position-start(8%);
|
81
81
|
width: 42%;
|
82
82
|
}
|
83
83
|
|
data/chart.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
spec.required_ruby_version = '~> 2.1'
|
20
20
|
|
21
|
-
spec.add_runtime_dependency 'pageflow', '~> 12.
|
21
|
+
spec.add_runtime_dependency 'pageflow', '~> 12.2.x'
|
22
22
|
spec.add_runtime_dependency 'nokogiri', '~> 1.0'
|
23
23
|
spec.add_runtime_dependency 'paperclip', '~> 4.2'
|
24
24
|
spec.add_runtime_dependency 'state_machine', '~> 1.2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pageflow-chart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codevise Solutions Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pageflow
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 12.2.x
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 12.2.x
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -338,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
338
338
|
version: '0'
|
339
339
|
requirements: []
|
340
340
|
rubyforge_project:
|
341
|
-
rubygems_version: 2.7.
|
341
|
+
rubygems_version: 2.7.5
|
342
342
|
signing_key:
|
343
343
|
specification_version: 4
|
344
344
|
summary: Pagetype for Embedded Datawrapper Charts
|