concerto_frontend 0.0.4 → 0.0.5

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: 2109ef432697e8bbe0343e7d22b13e9aa7e7a6b0
4
- data.tar.gz: 2eefdf355e3e02aa60e106fdefef1d8f89fdaee1
3
+ metadata.gz: 74cebfe384c75ff6ac44cb0e5b88a935a9f2cb97
4
+ data.tar.gz: 6bea013e0f5ed2c0a67d630a8252265ac67bc48a
5
5
  SHA512:
6
- metadata.gz: 400b9d44cdf4128771f3f1aec08f8684eb3f5ab8c516947726245c04fec2664cfa716673d0a15d6db84c8f529b6c000092b047554c26f73bcbe612d1ecb73058
7
- data.tar.gz: 2fde77c3ba4538b2acfb559b997574b500d11922298e6396e0e266c9c66486d433fa5519cc9d45c97deffb1b8ea1166be65102868e8f0ea203f4b6afc53e1fcd
6
+ metadata.gz: 7cb9613b900f026a36ac63cd4799e1fa4091c5492a674ffc5b26ddf5cca1e778a9a3ca85ed72156b0f74bf938c4eed202d76042ffa44352e1f4d33828b3d5f92
7
+ data.tar.gz: 659276c28a4f3b47985647b34a85e9f8b613af75e93310c9024024ad08b99061c5a7702c21a34e2099c8eaa5c870e683d9fabf2e565f3b2ee1e0b7840fcfe1d7
@@ -8599,12 +8599,18 @@ if (!window.Promise) {
8599
8599
  handleContentLoadedBound: Object,
8600
8600
  currentContent: Object,
8601
8601
  contentStyle: String,
8602
- contentQueue: Array,
8602
+ contentQueue: {
8603
+ type: Array,
8604
+ value: []
8605
+ },
8603
8606
  contentErrorCount: {
8604
8607
  type: Number,
8605
8608
  value: 0
8606
8609
  },
8607
- optConfig: Object,
8610
+ optConfig: {
8611
+ type: Object,
8612
+ observer: 'configTransition'
8613
+ },
8608
8614
  animationConfig: {
8609
8615
  type: Object,
8610
8616
  value: function() {
@@ -8616,7 +8622,7 @@ if (!window.Promise) {
8616
8622
  'exit': {
8617
8623
  name: 'fade-out-animation',
8618
8624
  node: this.$.content
8619
- }
8625
+ },
8620
8626
  }
8621
8627
  }
8622
8628
  }
@@ -8633,6 +8639,22 @@ if (!window.Promise) {
8633
8639
  this.loadNextContent();
8634
8640
  },
8635
8641
 
8642
+ configTransition: function() {
8643
+ // override default fade transition with field config for entry / exit
8644
+ if (this.optConfig['entry_transition'] && this.optConfig['exit_transition']) {
8645
+ this.animationConfig = {
8646
+ 'entry': {
8647
+ name: this.optConfig['entry_transition'],
8648
+ node: this.$.content
8649
+ },
8650
+ 'exit': {
8651
+ name: this.optConfig['exit_transition'],
8652
+ node: this.$.content
8653
+ }
8654
+ }
8655
+ }
8656
+ },
8657
+
8636
8658
  /**
8637
8659
  * Fetch new content from the server.
8638
8660
  *
@@ -1,3 +1,3 @@
1
1
  module ConcertoFrontend
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concerto_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Perez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-12 00:00:00.000000000 Z
11
+ date: 2015-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails