concerto_frontend 0.0.5 → 0.0.6
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 +4 -4
- data/app/views/concerto_frontend/_frontend.html +47 -23
- data/lib/concerto_frontend/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b0e5bcb2331088553d5df7fab2fc35bf26dd854
|
4
|
+
data.tar.gz: 0d46a1b8a65f81ae55386d0d8c2fa6a92c0c5d5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1da0c73a41c8c65bd375347a00a265a97c8dfa3f8b3437825e6dc3f71fa6c9877f340d190e8cc4474ad527352141048be3a3e41fc44214a13c0368d789d23cd9
|
7
|
+
data.tar.gz: 7602050934e75f5b59449ed9cfdede5dd3c794361edd255af031a8019b7ae54531edd637c66ca63fe14c490f11ad0ddef87ed27bdbd43c6b6557341de638d451
|
@@ -8131,7 +8131,9 @@ if (!window.Promise) {
|
|
8131
8131
|
* the element's dimensions as constraints.
|
8132
8132
|
*/
|
8133
8133
|
optimalFontSize: function(element, content) {
|
8134
|
-
|
8134
|
+
var disable = !!parseInt(element.config['disable_text_autosize']);
|
8135
|
+
|
8136
|
+
if (element.parentNode && !disable) {
|
8135
8137
|
// Font size and container constraints
|
8136
8138
|
var maxSize = 200;
|
8137
8139
|
var minSize = 4;
|
@@ -8242,6 +8244,10 @@ if (!window.Promise) {
|
|
8242
8244
|
type: Boolean,
|
8243
8245
|
value: false,
|
8244
8246
|
reflectToAttribute: true
|
8247
|
+
},
|
8248
|
+
config: {
|
8249
|
+
type: Object,
|
8250
|
+
reflectToAttribute: true
|
8245
8251
|
}
|
8246
8252
|
},
|
8247
8253
|
|
@@ -8309,8 +8315,7 @@ if (!window.Promise) {
|
|
8309
8315
|
data: {
|
8310
8316
|
type: String,
|
8311
8317
|
observer: 'dataChanged'
|
8312
|
-
}
|
8313
|
-
config: Object
|
8318
|
+
}
|
8314
8319
|
},
|
8315
8320
|
|
8316
8321
|
|
@@ -8462,10 +8467,6 @@ if (!window.Promise) {
|
|
8462
8467
|
data: {
|
8463
8468
|
type: String,
|
8464
8469
|
observer: 'dataChanged'
|
8465
|
-
},
|
8466
|
-
config: {
|
8467
|
-
type: Object,
|
8468
|
-
value: {}
|
8469
8470
|
}
|
8470
8471
|
},
|
8471
8472
|
|
@@ -8514,8 +8515,11 @@ if (!window.Promise) {
|
|
8514
8515
|
ConcertoBehaviors.Utils],
|
8515
8516
|
|
8516
8517
|
properties: {
|
8517
|
-
|
8518
|
-
|
8518
|
+
offset: {
|
8519
|
+
type: Number,
|
8520
|
+
reflectToAttribute: true
|
8521
|
+
},
|
8522
|
+
dateObj: Object
|
8519
8523
|
},
|
8520
8524
|
|
8521
8525
|
/**
|
@@ -8524,6 +8528,15 @@ if (!window.Promise) {
|
|
8524
8528
|
*/
|
8525
8529
|
attached: function() {
|
8526
8530
|
this.dateObj = new Date();
|
8531
|
+
|
8532
|
+
if (this.offset) {
|
8533
|
+
var localTime = this.dateObj.getTime();
|
8534
|
+
var localOffset = this.dateObj.getTimezoneOffset() * 60000;
|
8535
|
+
var utc = localTime + localOffset;
|
8536
|
+
var time = utc + this.offset*1000;
|
8537
|
+
this.dateObj = new Date(time);
|
8538
|
+
}
|
8539
|
+
|
8527
8540
|
var date = this.prepareDate();
|
8528
8541
|
var time = this.prepareTime();
|
8529
8542
|
this.$.clientTime.innerHTML = date + "<br />" + time;
|
@@ -8596,6 +8609,10 @@ if (!window.Promise) {
|
|
8596
8609
|
fieldId: Number,
|
8597
8610
|
fieldName: String,
|
8598
8611
|
baseUrl: String,
|
8612
|
+
timeOffset: {
|
8613
|
+
type: Number,
|
8614
|
+
reflectToAttribute: true
|
8615
|
+
},
|
8599
8616
|
handleContentLoadedBound: Object,
|
8600
8617
|
currentContent: Object,
|
8601
8618
|
contentStyle: String,
|
@@ -8640,18 +8657,23 @@ if (!window.Promise) {
|
|
8640
8657
|
},
|
8641
8658
|
|
8642
8659
|
configTransition: function() {
|
8643
|
-
//
|
8644
|
-
if (this.optConfig['entry_transition']
|
8645
|
-
this.
|
8646
|
-
'entry'
|
8647
|
-
|
8648
|
-
|
8649
|
-
|
8650
|
-
|
8651
|
-
|
8652
|
-
|
8653
|
-
|
8660
|
+
// Customize entry transition
|
8661
|
+
if (this.optConfig['entry_transition']) {
|
8662
|
+
if (this.optConfig['entry_transition'] == 'replace') {
|
8663
|
+
this.animationConfig['entry']['name'] = 'transform-animation';
|
8664
|
+
} else {
|
8665
|
+
this.animationConfig['entry']['name'] = this.optConfig['entry_transition'];
|
8666
|
+
}
|
8667
|
+
this.animationConfig['entry']['node'] = this.$.content;
|
8668
|
+
}
|
8669
|
+
// Customize exit transition
|
8670
|
+
if (this.optConfig['exit_transition']) {
|
8671
|
+
if (this.optConfig['exit_transition'] == 'replace') {
|
8672
|
+
this.animationConfig['exit']['name'] = 'transform-animation';
|
8673
|
+
} else {
|
8674
|
+
this.animationConfig['exit']['name'] = this.optConfig['exit_transition'];
|
8654
8675
|
}
|
8676
|
+
this.animationConfig['exit']['node'] = this.$.content;
|
8655
8677
|
}
|
8656
8678
|
},
|
8657
8679
|
|
@@ -8714,7 +8736,7 @@ if (!window.Promise) {
|
|
8714
8736
|
'id': 0,
|
8715
8737
|
'name': 'System Time',
|
8716
8738
|
'type': 'ClientTime',
|
8717
|
-
'render_details': {'
|
8739
|
+
'render_details': {'offset': this.timeOffset}
|
8718
8740
|
};
|
8719
8741
|
}
|
8720
8742
|
|
@@ -8884,7 +8906,7 @@ if (!window.Promise) {
|
|
8884
8906
|
<div id="{{templateId(template.id)}}" class="template" style$="{{backgroundImage(template.path)}}">
|
8885
8907
|
<template is="dom-repeat" items="{{template.positions}}" as="position">
|
8886
8908
|
<div class="position" id="{{positionId(position.id)}}" style$="{{computeFieldPosition(position)}}">
|
8887
|
-
<concerto-field screen-id="{{screenId}}" field-id="{{position.field.id}}" field-name="{{position.field.name}}" base-url="{{baseUrl}}" content-style="{{position.style}}" opt-config="{{position.field.config}}">
|
8909
|
+
<concerto-field screen-id="{{screenId}}" field-id="{{position.field.id}}" field-name="{{position.field.name}}" base-url="{{baseUrl}}" time-offset="{{timeOffset}}" content-style="{{position.style}}" opt-config="{{position.field.config}}">
|
8888
8910
|
</concerto-field>
|
8889
8911
|
</div>
|
8890
8912
|
</template>
|
@@ -8906,7 +8928,8 @@ if (!window.Promise) {
|
|
8906
8928
|
reflectToAttribute: true
|
8907
8929
|
},
|
8908
8930
|
name: String,
|
8909
|
-
template: Object
|
8931
|
+
template: Object,
|
8932
|
+
timeOffset: Number
|
8910
8933
|
},
|
8911
8934
|
|
8912
8935
|
ready: function() {
|
@@ -8948,6 +8971,7 @@ if (!window.Promise) {
|
|
8948
8971
|
var data = response.response;
|
8949
8972
|
this.name = data.name;
|
8950
8973
|
this.template = data.template;
|
8974
|
+
this.timeOffset = data.time_zone;
|
8951
8975
|
},
|
8952
8976
|
|
8953
8977
|
setupChanged: function(event, response) {
|
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
|
+
version: 0.0.6
|
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-
|
11
|
+
date: 2015-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|