123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- 'use strict';
- /**
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: Storytelling (C) Copyright IBM Corp. 2018, 2019
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['storytelling/nls/StringResources', 'baglass/core-client/js/core-client/utils/UniqueId'], function (stringResources, UniqueId) {
- return {
- get: function get() {
- var _widgets;
- var titleId = UniqueId.get('title_');
- var subtitleId = UniqueId.get('subtitle_');
- return {
- layout: {
- type: 'container',
- templateName: 'Template1',
- items: [{
- type: 'genericPage',
- layoutPositioning: 'relative',
- css: 'templateBox aspectRatio_default',
- items: [{
- type: 'templateIndicator',
- style: {
- 'top': '0%',
- 'left': '0%',
- 'right': '0%',
- 'bottom': '0%'
- }
- }, {
- id: titleId,
- type: 'widget',
- style: {
- width: '79.33%',
- height: '23.52%',
- top: '26.42%',
- left: '10.27%'
- }
- }, {
- id: subtitleId,
- type: 'widget',
- style: {
- width: '62.54%',
- height: '13.68%',
- top: '52.40%',
- left: '18.63%'
- }
- }]
- }]
- },
- widgets: (_widgets = {}, _widgets[titleId] = {
- id: titleId,
- type: 'text',
- isResponsive: true,
- placeholder: {
- showIcon: false,
- text: stringResources.get('titleWidgetPlaceholderText')
- },
- content: '<div class="staticContent"><span class="textFitted responsiveColor responsiveFontSize responsiveFontFamily"><p style="text-align: center;"><br></p></span></div>',
- name: stringResources.get('titleWidgetPlaceholderText'),
- defaults: {
- justifyCenter: true
- }
- }, _widgets[subtitleId] = {
- id: subtitleId,
- type: 'text',
- isResponsive: true,
- placeholder: {
- showIcon: false,
- text: stringResources.get('subtitleWidgetPlaceholderText')
- },
- content: '<div class="staticContent"><span class="textFitted responsiveColor responsiveFontSize responsiveFontFamily"><p style="text-align: center;"><br></p></span></div>',
- name: stringResources.get('subtitleWidgetPlaceholderText'),
- defaults: {
- justifyCenter: true
- }
- }, _widgets)
- };
- }
- };
- });
- //# sourceMappingURL=TitleSceneLayout.js.map
|