pageflow-chart 1.1.0 → 1.2.0

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: 468db56cbd4ad18e357d70438b2b0fef4f4dcf78ff3bce4b8a3b807db2823392
4
- data.tar.gz: 5052ee6ccb0760023ec96bb39db2d54f0e62e1897ac976a61afa298680897670
3
+ metadata.gz: 3edeadab75c938eec7fbdaeedef925d5aa79dfd758072d822f66e8f730850651
4
+ data.tar.gz: e9de614880042bebf4b941f70664ae0b0f7bb5a653eee29fc695f5b3f71bfdce
5
5
  SHA512:
6
- metadata.gz: c1ffd7a740081216f29f415f8b1945b1ef6ecccc5049e9711dd701c0bbe646fae153937248eb5051b5406be4730233fba09edcba622cc3a5577b9ca0938a3ddb
7
- data.tar.gz: 08ece544c861bbb9c4b3dc0d0fa4cb2cb9fcff824feb96ffee9541a98fb63d2c45199a7fd677c6428164ad89b07f19ceed2981e25980ea7de8bdf3c47b68b91c
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.1.0
3
+ ### Version 1.2.0
4
4
 
5
- 2017-11-08
5
+ 2018-07-30
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow-chart/compare/1-0-stable...v1.1.0)
7
+ [Compare changes](https://github.com/codevise/pageflow-chart/compare/1-1-stable...v1.2.0)
8
8
 
9
- - Require pageflow 12.1 for split layout handling and make split
10
- layout compatible with adjustable title max-widths
11
- ([#31](https://github.com/codevise/pageflow-chart/pull/31),
12
- [#41](https://github.com/codevise/pageflow-chart/pull/41))
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-0-stable branch](https://github.com/codevise/pageflow-chart/blob/1-0-stable/CHANGELOG.md)
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
@@ -4,5 +4,3 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem 'state_machine', git: 'https://github.com/codevise/state_machine.git'
7
-
8
- gem 'pageflow', git: 'https://github.com/codevise/pageflow'
@@ -25,7 +25,7 @@ pageflow.react.registerPageTypeWithDefaultBackground('chart', {
25
25
 
26
26
  pageElement.toggleClass('page-with_split_layout', !fullWidth);
27
27
 
28
- var splitLayout = this.wideEnoughForSplitLayout(pageElement) && !fullWidth;
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
- right: 10%;
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
- right: auto;
80
- left: 8%;
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.1'
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'
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module Chart
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '1.2.0'.freeze
4
4
  end
5
5
  end
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.1.0
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: 2017-11-08 00:00:00.000000000 Z
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: '12.1'
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: '12.1'
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.0
341
+ rubygems_version: 2.7.5
342
342
  signing_key:
343
343
  specification_version: 4
344
344
  summary: Pagetype for Embedded Datawrapper Charts