@parameter1/base-cms-marko-web 3.3.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. package/package.json +3 -3
  2. package/components/browser-component.marko.js +0 -81
  3. package/components/document/components/body-wrapper.marko.js +0 -33
  4. package/components/document/components/error.marko.js +0 -85
  5. package/components/document/components/lazysizes.marko.js +0 -21
  6. package/components/document/components/live-reload.marko.js +0 -30
  7. package/components/document/components/polyfill.marko.js +0 -33
  8. package/components/document/container.marko.js +0 -54
  9. package/components/document/index.marko.js +0 -118
  10. package/components/element/array.marko.js +0 -67
  11. package/components/element/audio.marko.js +0 -33
  12. package/components/element/block.marko.js +0 -44
  13. package/components/element/clear.marko.js +0 -32
  14. package/components/element/components/image.marko.js +0 -57
  15. package/components/element/components/text.marko.js +0 -37
  16. package/components/element/content/address1.marko.js +0 -40
  17. package/components/element/content/address2.marko.js +0 -40
  18. package/components/element/content/audio.marko.js +0 -40
  19. package/components/element/content/authors.marko.js +0 -43
  20. package/components/element/content/body.marko.js +0 -62
  21. package/components/element/content/byline.marko.js +0 -41
  22. package/components/element/content/city-state-zip.marko.js +0 -40
  23. package/components/element/content/contributors.marko.js +0 -43
  24. package/components/element/content/country.marko.js +0 -40
  25. package/components/element/content/embed-code.marko.js +0 -41
  26. package/components/element/content/end-date.marko.js +0 -42
  27. package/components/element/content/ends.marko.js +0 -41
  28. package/components/element/content/fax.marko.js +0 -40
  29. package/components/element/content/images.marko.js +0 -44
  30. package/components/element/content/mobile.marko.js +0 -40
  31. package/components/element/content/name.marko.js +0 -41
  32. package/components/element/content/phone.marko.js +0 -40
  33. package/components/element/content/photographers.marko.js +0 -43
  34. package/components/element/content/public-email.marko.js +0 -47
  35. package/components/element/content/published.marko.js +0 -42
  36. package/components/element/content/short-name.marko.js +0 -41
  37. package/components/element/content/sidebars.marko.js +0 -63
  38. package/components/element/content/source.marko.js +0 -40
  39. package/components/element/content/sponsors.marko.js +0 -43
  40. package/components/element/content/start-date.marko.js +0 -42
  41. package/components/element/content/starts.marko.js +0 -41
  42. package/components/element/content/teaser.marko.js +0 -41
  43. package/components/element/content/title.marko.js +0 -40
  44. package/components/element/content/tollfree.marko.js +0 -40
  45. package/components/element/content/website.marko.js +0 -51
  46. package/components/element/date.marko.js +0 -27
  47. package/components/element/image/caption.marko.js +0 -41
  48. package/components/element/image/credit.marko.js +0 -41
  49. package/components/element/image/display-name.marko.js +0 -40
  50. package/components/element/img.marko.js +0 -43
  51. package/components/element/index.marko.js +0 -47
  52. package/components/element/link.marko.js +0 -54
  53. package/components/element/magazine-issue/description.marko.js +0 -41
  54. package/components/element/magazine-issue/digital-edition-url.marko.js +0 -52
  55. package/components/element/magazine-issue/name.marko.js +0 -41
  56. package/components/element/magazine-publication/description.marko.js +0 -41
  57. package/components/element/magazine-publication/einquiry-url.marko.js +0 -52
  58. package/components/element/magazine-publication/name.marko.js +0 -41
  59. package/components/element/magazine-publication/renewal-url.marko.js +0 -52
  60. package/components/element/magazine-publication/reprints-url.marko.js +0 -52
  61. package/components/element/magazine-publication/subscribe-url.marko.js +0 -52
  62. package/components/element/obj-array.marko.js +0 -56
  63. package/components/element/obj-audio.marko.js +0 -51
  64. package/components/element/obj-date.marko.js +0 -54
  65. package/components/element/obj-nodes.marko.js +0 -62
  66. package/components/element/obj-text.marko.js +0 -53
  67. package/components/element/obj.marko.js +0 -61
  68. package/components/element/picture.marko.js +0 -83
  69. package/components/element/text.marko.js +0 -76
  70. package/components/element/website-section/description.marko.js +0 -45
  71. package/components/element/website-section/hierarchy.marko.js +0 -61
  72. package/components/element/website-section/name.marko.js +0 -46
  73. package/components/load-more/index.marko.js +0 -119
  74. package/components/load-more/trigger.marko.js +0 -40
  75. package/components/node/body.marko.js +0 -112
  76. package/components/node/element.marko.js +0 -39
  77. package/components/node/footer.marko.js +0 -63
  78. package/components/node/header.marko.js +0 -63
  79. package/components/node/image-inner-wrapper.marko.js +0 -116
  80. package/components/node/image-wrapper.marko.js +0 -98
  81. package/components/node/image.marko.js +0 -77
  82. package/components/node/index.marko.js +0 -100
  83. package/components/node-list/body.marko.js +0 -50
  84. package/components/node-list/element.marko.js +0 -35
  85. package/components/node-list/footer.marko.js +0 -50
  86. package/components/node-list/header.marko.js +0 -50
  87. package/components/node-list/index.marko.js +0 -93
  88. package/components/node-list/node.marko.js +0 -49
  89. package/components/node-list/nodes.marko.js +0 -126
  90. package/components/page/container.marko.js +0 -46
  91. package/components/page/description.marko.js +0 -26
  92. package/components/page/image.marko.js +0 -122
  93. package/components/page/layouts/content.marko.js +0 -63
  94. package/components/page/layouts/default.marko.js +0 -61
  95. package/components/page/layouts/dynamic-page.marko.js +0 -59
  96. package/components/page/layouts/magazine-issue.marko.js +0 -59
  97. package/components/page/layouts/magazine-publication.marko.js +0 -59
  98. package/components/page/layouts/website-section.marko.js +0 -78
  99. package/components/page/metadata/components/common.marko.js +0 -108
  100. package/components/page/metadata/content.marko.js +0 -201
  101. package/components/page/metadata/default.marko.js +0 -29
  102. package/components/page/metadata/dynamic-page.marko.js +0 -83
  103. package/components/page/metadata/magazine-issue.marko.js +0 -84
  104. package/components/page/metadata/magazine-publication.marko.js +0 -80
  105. package/components/page/metadata/website-section.marko.js +0 -79
  106. package/components/page/rel-canonical.marko.js +0 -42
  107. package/components/page/title.marko.js +0 -46
  108. package/components/page/wrapper.marko.js +0 -63
  109. package/components/resolve/page.marko.js +0 -49
  110. package/components/rss/website-section.marko.js +0 -46
@@ -1,76 +0,0 @@
1
- // Compiled using marko@4.20.2 - DO NOT EDIT
2
- "use strict";
3
-
4
- var marko_template = module.exports = require("marko/src/html").t(__filename),
5
- marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/text.marko",
6
- marko_renderer = require("marko/src/runtime/components/renderer"),
7
- text_template = require("./components/text.marko"),
8
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
9
- text_tag = marko_loadTag(text_template),
10
- marko_assign = require("marko/src/runtime/helpers/assign"),
11
- marko_web_link_template = require("./link.marko"),
12
- marko_web_link_tag = marko_loadTag(marko_web_link_template),
13
- marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag");
14
-
15
- function render(input, out, __component, component, state) {
16
- var data = input;
17
-
18
- const tag = input.tag === undefined ? "div" : input.tag;
19
-
20
- const value = input.value != null ? `${input.value}`.trim() : null;
21
-
22
- const textInput = {
23
- html: input.html,
24
- renderBody: input.renderBody,
25
- value,
26
- };
27
-
28
- if (value) {
29
- if (input.link) {
30
- if (tag) {
31
- marko_dynamicTag(out, tag, function() {
32
- return marko_assign({}, input.attrs, {
33
- class: input.class
34
- });
35
- }, function(out) {
36
- marko_web_link_tag(marko_assign({}, input.link, {
37
- renderBody: function(out) {
38
- text_tag(textInput, out, __component, "2");
39
- }
40
- }), out, __component, "1");
41
- }, null, null, __component, "0");
42
- } else {
43
- marko_web_link_tag(marko_assign({}, input.link, {
44
- renderBody: function(out) {
45
- text_tag(textInput, out, __component, "4");
46
- }
47
- }), out, __component, "3");
48
- }
49
- } else {
50
- if (tag) {
51
- marko_dynamicTag(out, tag, function() {
52
- return marko_assign({}, input.attrs, {
53
- class: input.class
54
- });
55
- }, function(out) {
56
- text_tag(textInput, out, __component, "6");
57
- }, null, null, __component, "5");
58
- } else {
59
- text_tag(textInput, out, __component, "7");
60
- }
61
- }
62
- }
63
- }
64
-
65
- marko_template._ = marko_renderer(render, {
66
- ___implicit: true,
67
- ___type: marko_componentType
68
- });
69
-
70
- marko_template.meta = {
71
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/text.marko",
72
- tags: [
73
- "./components/text.marko",
74
- "./link.marko"
75
- ]
76
- };
@@ -1,45 +0,0 @@
1
- // Compiled using marko@4.20.2 - DO NOT EDIT
2
- "use strict";
3
-
4
- var marko_template = module.exports = require("marko/src/html").t(__filename),
5
- marko_componentType = "/@parameter1/base-cms-marko-web$1.49.0/components/element/website-section/description.marko",
6
- marko_renderer = require("marko/src/runtime/components/renderer"),
7
- module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
8
- baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
9
- get = module_baseCmsObjectPath_module.get,
10
- module_extractRender = require("../extract-render"),
11
- extractRender = module_extractRender.default || module_extractRender,
12
- marko_assign = require("marko/src/runtime/helpers/assign"),
13
- marko_loadTemplate = require("marko/src/runtime/helpers/load-template"),
14
- marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
15
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
16
- marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
17
-
18
- function render(input, out, __component, component, state) {
19
- var data = input;
20
-
21
- marko_web_obj_text_tag(marko_assign({
22
- type: "website-section",
23
- blockName: input.blockName,
24
- obj: input.obj,
25
- field: "description",
26
- html: true,
27
- tag: input.tag,
28
- class: input.class,
29
- modifiers: input.modifiers,
30
- attrs: input.attrs,
31
- link: input.link
32
- }, extractRender(input)), out, __component, "0");
33
- }
34
-
35
- marko_template._ = marko_renderer(render, {
36
- ___implicit: true,
37
- ___type: marko_componentType
38
- });
39
-
40
- marko_template.meta = {
41
- id: "/@parameter1/base-cms-marko-web$1.49.0/components/element/website-section/description.marko",
42
- tags: [
43
- "../obj-text.marko"
44
- ]
45
- };
@@ -1,61 +0,0 @@
1
- // Compiled using marko@4.20.2 - DO NOT EDIT
2
- "use strict";
3
-
4
- var marko_template = module.exports = require("marko/src/html").t(__filename),
5
- marko_componentType = "/@parameter1/base-cms-marko-web$1.49.0/components/element/website-section/hierarchy.marko",
6
- marko_component = require("./hierarchy.marko"),
7
- marko_renderer = require("marko/src/runtime/components/renderer"),
8
- module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
9
- baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
10
- getAsArray = module_baseCmsObjectPath_module.getAsArray,
11
- getAsObject = module_baseCmsObjectPath_module.getAsObject,
12
- marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
13
- marko_loadTemplate = require("marko/src/runtime/helpers/load-template"),
14
- marko_web_array_template = marko_loadTemplate(require.resolve("../array.marko")),
15
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
16
- marko_web_array_tag = marko_loadTag(marko_web_array_template),
17
- marko_web_obj_template = marko_loadTemplate(require.resolve("../obj.marko")),
18
- marko_web_obj_tag = marko_loadTag(marko_web_obj_template);
19
-
20
- function render(input, out, __component, component, state) {
21
- var data = input;
22
-
23
- marko_web_obj_tag({
24
- type: "website-section",
25
- blockName: input.blockName,
26
- obj: input.obj,
27
- field: "hierarchy",
28
- class: input.class,
29
- modifiers: input.modifiers,
30
- renderBody: function(out, { value, classNames }) {
31
- marko_web_array_tag({
32
- attrs: input.attrs,
33
- tag: input.tag,
34
- value: value,
35
- class: classNames,
36
- renderBody: function(out, { value: node, index, length }) {
37
- marko_dynamicTag(out, input.renderBody, function() {
38
- return {
39
- node: node,
40
- index: index,
41
- length: length
42
- };
43
- }, null, null, null, __component, "2");
44
- }
45
- }, out, __component, "1");
46
- }
47
- }, out, __component, "0");
48
- }
49
-
50
- marko_template._ = marko_renderer(render, {
51
- ___type: marko_componentType
52
- }, marko_component);
53
-
54
- marko_template.meta = {
55
- id: "/@parameter1/base-cms-marko-web$1.49.0/components/element/website-section/hierarchy.marko",
56
- component: "./hierarchy.marko",
57
- tags: [
58
- "../array.marko",
59
- "../obj.marko"
60
- ]
61
- };
@@ -1,46 +0,0 @@
1
- // Compiled using marko@4.20.2 - DO NOT EDIT
2
- "use strict";
3
-
4
- var marko_template = module.exports = require("marko/src/html").t(__filename),
5
- marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/website-section/name.marko",
6
- marko_renderer = require("marko/src/runtime/components/renderer"),
7
- module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
8
- baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
9
- get = module_baseCmsObjectPath_module.get,
10
- module_extractRender = require("../extract-render"),
11
- extractRender = module_extractRender.default || module_extractRender,
12
- marko_assign = require("marko/src/runtime/helpers/assign"),
13
- marko_web_obj_text_template = require("../obj-text.marko"),
14
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
15
- marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
16
-
17
- function render(input, out, __component, component, state) {
18
- var data = input;
19
-
20
- const attrs = { title: get(input.obj, "fullName"), ...input.attrs };
21
-
22
- marko_web_obj_text_tag(marko_assign({
23
- type: "website-section",
24
- blockName: input.blockName,
25
- obj: input.obj,
26
- field: "name",
27
- tag: input.tag,
28
- class: input.class,
29
- modifiers: input.modifiers,
30
- attrs: attrs,
31
- link: input.link,
32
- html: true
33
- }, extractRender(input)), out, __component, "0");
34
- }
35
-
36
- marko_template._ = marko_renderer(render, {
37
- ___implicit: true,
38
- ___type: marko_componentType
39
- });
40
-
41
- marko_template.meta = {
42
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/website-section/name.marko",
43
- tags: [
44
- "../obj-text.marko"
45
- ]
46
- };
@@ -1,119 +0,0 @@
1
- // Compiled using marko@4.20.2 - DO NOT EDIT
2
- "use strict";
3
-
4
- var marko_template = module.exports = require("marko/src/html").t(__filename),
5
- marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/load-more/index.marko",
6
- marko_component = require("./index.marko"),
7
- marko_renderer = require("marko/src/runtime/components/renderer"),
8
- module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
9
- baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
10
- getAsObject = module_baseCmsObjectPath_module.getAsObject,
11
- getAsArray = module_baseCmsObjectPath_module.getAsArray,
12
- marko_web_browser_component_template = require("../browser-component.marko"),
13
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
14
- marko_web_browser_component_tag = marko_loadTag(marko_web_browser_component_template),
15
- marko_str = require("marko/src/runtime/helpers/to-string"),
16
- marko_assign = require("marko/src/runtime/helpers/assign"),
17
- marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
18
- marko_web_load_more_trigger_template = require("./trigger.marko"),
19
- marko_web_load_more_trigger_tag = marko_loadTag(marko_web_load_more_trigger_template),
20
- marko_web_page_container_template = require("../page/container.marko"),
21
- marko_web_page_container_tag = marko_loadTag(marko_web_page_container_template),
22
- marko_web_query_template = require("@parameter1/base-cms-marko-core/components/queries/index.marko"),
23
- marko_web_query_tag = marko_loadTag(marko_web_query_template);
24
-
25
- function render(input, out, __component, component, state) {
26
- var data = input;
27
-
28
- const { components, fragments } = out.global;
29
-
30
- const Component = components.get(input.componentName);
31
-
32
- const pageNumber = input.pageNumber || 1;
33
-
34
- const queryParams = {
35
- ...getAsObject(input, "queryParams"),
36
- queryName: "LoadMore",
37
- queryFragment: fragments.get(input.fragmentName),
38
- };
39
-
40
- if (Component) {
41
- marko_web_query_tag({
42
- collapsible: true,
43
- name: input.queryName,
44
- params: queryParams,
45
- renderBody: function(out, { nodes, pageInfo }) {
46
- if (nodes.length) {
47
- marko_web_page_container_tag(marko_assign({
48
- tag: "section"
49
- }, input.pageInput, {
50
- modifiers: ["load-more", `page-${pageNumber}`, ...getAsArray(input, "pageInput.modifiers")],
51
- attrs: input.attrs,
52
- renderBody: function(out) {
53
- marko_web_browser_component_tag({
54
- name: "TriggerInViewEvent",
55
- props: {
56
- eventName: "load-more-in-view",
57
- data: {
58
- page_number: pageNumber + 1
59
- }
60
- }
61
- }, out, __component, "2");
62
-
63
- if ((pageNumber === 1) && input.header) {
64
- out.w("<div class=\"load-more-header\">" +
65
- marko_str(input.header) +
66
- "</div>");
67
- }
68
-
69
- marko_dynamicTag(out, Component, function() {
70
- return marko_assign({}, input.componentInput, {
71
- nodes: nodes,
72
- "page-info": pageInfo,
73
- "page-number": pageNumber
74
- });
75
- }, null, null, null, __component, "4");
76
-
77
- const { endCursor, hasNextPage } = pageInfo;
78
-
79
- delete queryParams.skip;
80
-
81
- delete queryParams.queryFragment;
82
-
83
- delete queryParams.renderBody;
84
-
85
- const provide = {
86
- ...input,
87
- queryParams: { ...queryParams, after: endCursor },
88
- };
89
-
90
- marko_web_load_more_trigger_tag(marko_assign({}, input.triggerInput, {
91
- appendTo: input.appendTo,
92
- maxPages: input.maxPages,
93
- expand: input.expand,
94
- pageNumber: pageNumber,
95
- provide: provide,
96
- show: hasNextPage
97
- }), out, __component, "5");
98
- }
99
- }), out, __component, "1");
100
- }
101
- }
102
- }, out, __component, "0");
103
- }
104
- }
105
-
106
- marko_template._ = marko_renderer(render, {
107
- ___type: marko_componentType
108
- }, marko_component);
109
-
110
- marko_template.meta = {
111
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/load-more/index.marko",
112
- component: "./",
113
- tags: [
114
- "../browser-component.marko",
115
- "./trigger.marko",
116
- "../page/container.marko",
117
- "@parameter1/base-cms-marko-core/components/queries/index.marko"
118
- ]
119
- };
@@ -1,40 +0,0 @@
1
- // Compiled using marko@4.20.2 - DO NOT EDIT
2
- "use strict";
3
-
4
- var marko_template = module.exports = require("marko/src/html").t(__filename),
5
- marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/load-more/trigger.marko",
6
- marko_renderer = require("marko/src/runtime/components/renderer"),
7
- marko_web_browser_component_template = require("../browser-component.marko"),
8
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
9
- marko_web_browser_component_tag = marko_loadTag(marko_web_browser_component_template);
10
-
11
- function render(input, out, __component, component, state) {
12
- var data = input;
13
-
14
- const { config } = out.global;
15
-
16
- const props = {
17
- ...input,
18
- mountPoint: config.loadMoreMountPoint(),
19
- appendTo: input.appendTo || ".document-container",
20
- };
21
-
22
- if (input.show) {
23
- marko_web_browser_component_tag({
24
- name: "LoadMoreTrigger",
25
- props: props
26
- }, out, __component, "0");
27
- }
28
- }
29
-
30
- marko_template._ = marko_renderer(render, {
31
- ___implicit: true,
32
- ___type: marko_componentType
33
- });
34
-
35
- marko_template.meta = {
36
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/load-more/trigger.marko",
37
- tags: [
38
- "../browser-component.marko"
39
- ]
40
- };
@@ -1,112 +0,0 @@
1
- // Compiled using marko@4.20.2 - DO NOT EDIT
2
- "use strict";
3
-
4
- var marko_template = module.exports = require("marko/src/html").t(__filename),
5
- marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/node/body.marko",
6
- marko_renderer = require("marko/src/runtime/components/renderer"),
7
- module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
8
- baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
9
- getAsArray = module_baseCmsObjectPath_module.getAsArray,
10
- get = module_baseCmsObjectPath_module.get,
11
- module_showElement = require("../element/show-element"),
12
- showElement = module_showElement.default || module_showElement,
13
- marko_assign = require("marko/src/runtime/helpers/assign"),
14
- marko_web_node_header_template = require("./header.marko"),
15
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
16
- marko_web_node_header_tag = marko_loadTag(marko_web_node_header_template),
17
- marko_web_node_element_template = require("./element.marko"),
18
- marko_web_node_element_tag = marko_loadTag(marko_web_node_element_template),
19
- marko_forOf = require("marko/src/runtime/helpers/for-of"),
20
- marko_web_node_footer_template = require("./footer.marko"),
21
- marko_web_node_footer_tag = marko_loadTag(marko_web_node_footer_template);
22
-
23
- function render(input, out, __component, component, state) {
24
- var data = input;
25
-
26
- const showHeader = showElement(get(input.header, "left")) || showElement(get(input.header, "right"));
27
-
28
- const showTitle = showElement(input.title);
29
-
30
- const showText = getAsArray(input.text).some(t => showElement(t));
31
-
32
- const showFooter = showElement(get(input.footer, "left")) || showElement(get(input.footer, "right"));
33
-
34
- const showBody = showHeader || showTitle || showText || showFooter;
35
-
36
- if (showBody) {
37
- marko_web_node_element_tag({
38
- show: true,
39
- tag: input.tag,
40
- blockName: input.blockName,
41
- name: "body",
42
- modifiers: input.modifiers,
43
- attrs: input.attrs,
44
- renderBody: function(out) {
45
- if (showHeader) {
46
- marko_web_node_header_tag(marko_assign({}, input.header, {
47
- modifiers: ["body", ...getAsArray(input, "header.modifiers")]
48
- }), out, __component, "1");
49
- }
50
-
51
- if (showTitle || showText) {
52
- marko_web_node_element_tag({
53
- show: true,
54
- tag: "div",
55
- blockName: "node",
56
- name: "contents",
57
- modifiers: [
58
- "body"
59
- ],
60
- renderBody: function(out) {
61
- if (showTitle) {
62
- marko_web_node_element_tag(marko_assign({
63
- show: true,
64
- tag: "div",
65
- blockName: "node",
66
- name: "title"
67
- }, input.title), out, __component, "3");
68
- }
69
-
70
- if (showText) {
71
- var $for$0 = 0;
72
-
73
- marko_forOf(input.text, function(text) {
74
- var $keyScope$0 = "[" + (($for$0++) + "]");
75
-
76
- if (showElement(text)) {
77
- marko_web_node_element_tag(marko_assign({
78
- show: true,
79
- tag: "div",
80
- blockName: "node",
81
- name: "text"
82
- }, text), out, __component, "4" + $keyScope$0);
83
- }
84
- });
85
- }
86
- }
87
- }, out, __component, "2");
88
- }
89
-
90
- if (showFooter) {
91
- marko_web_node_footer_tag(marko_assign({}, input.footer, {
92
- modifiers: ["body", ...getAsArray(input, "footer.modifiers")]
93
- }), out, __component, "5");
94
- }
95
- }
96
- }, out, __component, "0");
97
- }
98
- }
99
-
100
- marko_template._ = marko_renderer(render, {
101
- ___implicit: true,
102
- ___type: marko_componentType
103
- });
104
-
105
- marko_template.meta = {
106
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node/body.marko",
107
- tags: [
108
- "./header.marko",
109
- "./element.marko",
110
- "./footer.marko"
111
- ]
112
- };
@@ -1,39 +0,0 @@
1
- // Compiled using marko@4.20.2 - DO NOT EDIT
2
- "use strict";
3
-
4
- var marko_template = module.exports = require("marko/src/html").t(__filename),
5
- marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/node/element.marko",
6
- marko_renderer = require("marko/src/runtime/components/renderer"),
7
- marko_assign = require("marko/src/runtime/helpers/assign"),
8
- marko_web_element_template = require("../element"),
9
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
10
- marko_web_element_tag = marko_loadTag(marko_web_element_template);
11
-
12
- function render(input, out, __component, component, state) {
13
- var data = input;
14
-
15
- const block = input.blockName || "node";
16
-
17
- const show = input.show != null ? input.show : true;
18
-
19
- if (show) {
20
- marko_web_element_tag(marko_assign({
21
- name: "default",
22
- tag: "div"
23
- }, input, {
24
- blockName: block
25
- }), out, __component, "0");
26
- }
27
- }
28
-
29
- marko_template._ = marko_renderer(render, {
30
- ___implicit: true,
31
- ___type: marko_componentType
32
- });
33
-
34
- marko_template.meta = {
35
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node/element.marko",
36
- tags: [
37
- "../element"
38
- ]
39
- };
@@ -1,63 +0,0 @@
1
- // Compiled using marko@4.20.2 - DO NOT EDIT
2
- "use strict";
3
-
4
- var marko_template = module.exports = require("marko/src/html").t(__filename),
5
- marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/node/footer.marko",
6
- marko_renderer = require("marko/src/runtime/components/renderer"),
7
- module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
8
- baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
9
- getAsObject = module_baseCmsObjectPath_module.getAsObject,
10
- marko_assign = require("marko/src/runtime/helpers/assign"),
11
- marko_web_node_element_template = require("./element.marko"),
12
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
13
- marko_web_node_element_tag = marko_loadTag(marko_web_node_element_template);
14
-
15
- function render(input, out, __component, component, state) {
16
- var data = input;
17
-
18
- const left = getAsObject(input, "left");
19
-
20
- const right = getAsObject(input, "right");
21
-
22
- marko_web_node_element_tag({
23
- show: true,
24
- tag: input.tag,
25
- blockName: input.blockName,
26
- name: "footer",
27
- modifiers: input.modifiers,
28
- attrs: input.attrs,
29
- renderBody: function(out) {
30
- if (left.renderBody) {
31
- marko_web_node_element_tag(marko_assign({
32
- show: true,
33
- tag: "div",
34
- blockName: "node"
35
- }, left, {
36
- name: "footer-left"
37
- }), out, __component, "1");
38
- }
39
-
40
- if (right.renderBody) {
41
- marko_web_node_element_tag(marko_assign({
42
- show: true,
43
- tag: "div",
44
- blockName: "node"
45
- }, right, {
46
- name: "footer-right"
47
- }), out, __component, "2");
48
- }
49
- }
50
- }, out, __component, "0");
51
- }
52
-
53
- marko_template._ = marko_renderer(render, {
54
- ___implicit: true,
55
- ___type: marko_componentType
56
- });
57
-
58
- marko_template.meta = {
59
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node/footer.marko",
60
- tags: [
61
- "./element.marko"
62
- ]
63
- };
@@ -1,63 +0,0 @@
1
- // Compiled using marko@4.20.2 - DO NOT EDIT
2
- "use strict";
3
-
4
- var marko_template = module.exports = require("marko/src/html").t(__filename),
5
- marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/node/header.marko",
6
- marko_renderer = require("marko/src/runtime/components/renderer"),
7
- module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
8
- baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
9
- getAsObject = module_baseCmsObjectPath_module.getAsObject,
10
- marko_assign = require("marko/src/runtime/helpers/assign"),
11
- marko_web_node_element_template = require("./element.marko"),
12
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
13
- marko_web_node_element_tag = marko_loadTag(marko_web_node_element_template);
14
-
15
- function render(input, out, __component, component, state) {
16
- var data = input;
17
-
18
- const left = getAsObject(input, "left");
19
-
20
- const right = getAsObject(input, "right");
21
-
22
- marko_web_node_element_tag({
23
- show: true,
24
- tag: input.tag,
25
- blockName: input.blockName,
26
- name: "header",
27
- modifiers: input.modifiers,
28
- attrs: input.attrs,
29
- renderBody: function(out) {
30
- if (left.renderBody) {
31
- marko_web_node_element_tag(marko_assign({
32
- show: true,
33
- tag: "div",
34
- blockName: "node"
35
- }, left, {
36
- name: "header-left"
37
- }), out, __component, "1");
38
- }
39
-
40
- if (right.renderBody) {
41
- marko_web_node_element_tag(marko_assign({
42
- show: true,
43
- tag: "div",
44
- blockName: "node"
45
- }, right, {
46
- name: "header-right"
47
- }), out, __component, "2");
48
- }
49
- }
50
- }, out, __component, "0");
51
- }
52
-
53
- marko_template._ = marko_renderer(render, {
54
- ___implicit: true,
55
- ___type: marko_componentType
56
- });
57
-
58
- marko_template.meta = {
59
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node/header.marko",
60
- tags: [
61
- "./element.marko"
62
- ]
63
- };