SceneLayout1.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. 'use strict';
  2. /**
  3. * Licensed Materials - Property of IBM
  4. * IBM Cognos Products: Storytelling (C) Copyright IBM Corp. 2018, 2019
  5. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  6. */
  7. define(['storytelling/nls/StringResources', 'baglass/core-client/js/core-client/utils/UniqueId'], function (stringResources, UniqueId) {
  8. return {
  9. get: function get() {
  10. var _widgets;
  11. var titleId = UniqueId.get('title_');
  12. var text1Id = UniqueId.get('text1_');
  13. var vis1Id = UniqueId.get('vis1_');
  14. return {
  15. layout: {
  16. type: 'container',
  17. templateName: 'Template1',
  18. items: [{
  19. type: 'genericPage',
  20. layoutPositioning: 'relative',
  21. css: 'templateBox aspectRatio_default',
  22. items: [{
  23. type: 'templateIndicator',
  24. style: {
  25. 'top': '0%',
  26. 'left': '0%',
  27. 'right': '0%',
  28. 'bottom': '0%'
  29. }
  30. }, {
  31. id: titleId,
  32. type: 'widget',
  33. style: {
  34. width: '98.00%',
  35. height: '20.00%',
  36. top: '1.82%',
  37. left: '1.00%'
  38. }
  39. }, {
  40. id: text1Id,
  41. type: 'widget',
  42. style: {
  43. width: '30.00%',
  44. height: '74.54%',
  45. top: '23.64%',
  46. left: '1.00%'
  47. }
  48. }, {
  49. id: vis1Id,
  50. type: 'widget',
  51. style: {
  52. width: '67.00%',
  53. height: '74.54%',
  54. top: '23.64%',
  55. left: '32.00%'
  56. }
  57. }]
  58. }]
  59. },
  60. widgets: (_widgets = {}, _widgets[titleId] = {
  61. id: titleId,
  62. type: 'text',
  63. isResponsive: true,
  64. placeholder: {
  65. text: stringResources.get('titleWidgetPlaceholderText')
  66. },
  67. content: '<div class="staticContent"><span class="textFitted responsiveColor responsiveFontSize responsiveFontFamily"><p style="text-align: center;"><br></p></span></div>',
  68. name: stringResources.get('titleWidgetPlaceholderText'),
  69. defaults: {
  70. justifyCenter: true
  71. }
  72. }, _widgets[text1Id] = {
  73. id: text1Id,
  74. type: 'text',
  75. placeholder: {
  76. iconType: 'list'
  77. },
  78. content: '<div class="staticContent"><span class="textFitted responsiveColor responsiveFontSize responsiveFontFamily"><ul><li><br></li></ul></span></div>',
  79. name: '',
  80. defaults: {
  81. fontSize: '20'
  82. }
  83. }, _widgets[vis1Id] = {
  84. id: vis1Id,
  85. type: 'multipurpose',
  86. placeholder: {
  87. iconType: 'vis'
  88. }
  89. }, _widgets)
  90. };
  91. }
  92. };
  93. });
  94. //# sourceMappingURL=SceneLayout1.js.map