@parameter1/base-cms-marko-web 3.4.0 → 3.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. package/middleware/disabled-features.js +15 -0
  2. package/package.json +2 -2
  3. package/start-server.js +3 -0
  4. package/components/browser-component.marko.js +0 -81
  5. package/components/document/components/body-wrapper.marko.js +0 -33
  6. package/components/document/components/error.marko.js +0 -85
  7. package/components/document/components/lazysizes.marko.js +0 -21
  8. package/components/document/components/live-reload.marko.js +0 -30
  9. package/components/document/components/polyfill.marko.js +0 -33
  10. package/components/document/container.marko.js +0 -54
  11. package/components/document/index.marko.js +0 -118
  12. package/components/element/array.marko.js +0 -67
  13. package/components/element/audio.marko.js +0 -33
  14. package/components/element/block.marko.js +0 -44
  15. package/components/element/clear.marko.js +0 -32
  16. package/components/element/components/image.marko.js +0 -57
  17. package/components/element/components/text.marko.js +0 -37
  18. package/components/element/content/address1.marko.js +0 -40
  19. package/components/element/content/address2.marko.js +0 -40
  20. package/components/element/content/audio.marko.js +0 -40
  21. package/components/element/content/authors.marko.js +0 -43
  22. package/components/element/content/body.marko.js +0 -62
  23. package/components/element/content/byline.marko.js +0 -41
  24. package/components/element/content/city-state-zip.marko.js +0 -40
  25. package/components/element/content/contributors.marko.js +0 -43
  26. package/components/element/content/country.marko.js +0 -40
  27. package/components/element/content/embed-code.marko.js +0 -41
  28. package/components/element/content/end-date.marko.js +0 -42
  29. package/components/element/content/ends.marko.js +0 -41
  30. package/components/element/content/fax.marko.js +0 -40
  31. package/components/element/content/images.marko.js +0 -44
  32. package/components/element/content/mobile.marko.js +0 -40
  33. package/components/element/content/name.marko.js +0 -41
  34. package/components/element/content/phone.marko.js +0 -40
  35. package/components/element/content/photographers.marko.js +0 -43
  36. package/components/element/content/public-email.marko.js +0 -47
  37. package/components/element/content/published.marko.js +0 -42
  38. package/components/element/content/short-name.marko.js +0 -41
  39. package/components/element/content/sidebars.marko.js +0 -63
  40. package/components/element/content/source.marko.js +0 -40
  41. package/components/element/content/sponsors.marko.js +0 -43
  42. package/components/element/content/start-date.marko.js +0 -42
  43. package/components/element/content/starts.marko.js +0 -41
  44. package/components/element/content/teaser.marko.js +0 -41
  45. package/components/element/content/title.marko.js +0 -40
  46. package/components/element/content/tollfree.marko.js +0 -40
  47. package/components/element/content/website.marko.js +0 -51
  48. package/components/element/date.marko.js +0 -27
  49. package/components/element/image/caption.marko.js +0 -41
  50. package/components/element/image/credit.marko.js +0 -41
  51. package/components/element/image/display-name.marko.js +0 -40
  52. package/components/element/img.marko.js +0 -43
  53. package/components/element/index.marko.js +0 -47
  54. package/components/element/link.marko.js +0 -54
  55. package/components/element/magazine-issue/description.marko.js +0 -41
  56. package/components/element/magazine-issue/digital-edition-url.marko.js +0 -52
  57. package/components/element/magazine-issue/name.marko.js +0 -41
  58. package/components/element/magazine-publication/description.marko.js +0 -41
  59. package/components/element/magazine-publication/einquiry-url.marko.js +0 -52
  60. package/components/element/magazine-publication/name.marko.js +0 -41
  61. package/components/element/magazine-publication/renewal-url.marko.js +0 -52
  62. package/components/element/magazine-publication/reprints-url.marko.js +0 -52
  63. package/components/element/magazine-publication/subscribe-url.marko.js +0 -52
  64. package/components/element/obj-array.marko.js +0 -56
  65. package/components/element/obj-audio.marko.js +0 -51
  66. package/components/element/obj-date.marko.js +0 -54
  67. package/components/element/obj-nodes.marko.js +0 -62
  68. package/components/element/obj-text.marko.js +0 -53
  69. package/components/element/obj.marko.js +0 -61
  70. package/components/element/picture.marko.js +0 -83
  71. package/components/element/text.marko.js +0 -76
  72. package/components/element/website-section/description.marko.js +0 -45
  73. package/components/element/website-section/hierarchy.marko.js +0 -61
  74. package/components/element/website-section/name.marko.js +0 -46
  75. package/components/load-more/index.marko.js +0 -119
  76. package/components/load-more/trigger.marko.js +0 -40
  77. package/components/node/body.marko.js +0 -112
  78. package/components/node/element.marko.js +0 -39
  79. package/components/node/footer.marko.js +0 -63
  80. package/components/node/header.marko.js +0 -63
  81. package/components/node/image-inner-wrapper.marko.js +0 -116
  82. package/components/node/image-wrapper.marko.js +0 -98
  83. package/components/node/image.marko.js +0 -77
  84. package/components/node/index.marko.js +0 -100
  85. package/components/node-list/body.marko.js +0 -50
  86. package/components/node-list/element.marko.js +0 -35
  87. package/components/node-list/footer.marko.js +0 -50
  88. package/components/node-list/header.marko.js +0 -50
  89. package/components/node-list/index.marko.js +0 -93
  90. package/components/node-list/node.marko.js +0 -49
  91. package/components/node-list/nodes.marko.js +0 -126
  92. package/components/page/container.marko.js +0 -46
  93. package/components/page/description.marko.js +0 -26
  94. package/components/page/image.marko.js +0 -122
  95. package/components/page/layouts/content.marko.js +0 -63
  96. package/components/page/layouts/default.marko.js +0 -61
  97. package/components/page/layouts/dynamic-page.marko.js +0 -59
  98. package/components/page/layouts/magazine-issue.marko.js +0 -59
  99. package/components/page/layouts/magazine-publication.marko.js +0 -59
  100. package/components/page/layouts/website-section.marko.js +0 -78
  101. package/components/page/metadata/components/common.marko.js +0 -108
  102. package/components/page/metadata/content.marko.js +0 -201
  103. package/components/page/metadata/default.marko.js +0 -29
  104. package/components/page/metadata/dynamic-page.marko.js +0 -83
  105. package/components/page/metadata/magazine-issue.marko.js +0 -84
  106. package/components/page/metadata/magazine-publication.marko.js +0 -80
  107. package/components/page/metadata/website-section.marko.js +0 -79
  108. package/components/page/rel-canonical.marko.js +0 -42
  109. package/components/page/title.marko.js +0 -46
  110. package/components/page/wrapper.marko.js +0 -63
  111. package/components/resolve/page.marko.js +0 -49
  112. package/components/rss/website-section.marko.js +0 -46
@@ -1,116 +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/image-inner-wrapper.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
- getAsObject = module_baseCmsObjectPath_module.getAsObject,
11
- module_imageValues = require("./utils/image-values"),
12
- imageValues = module_imageValues.default || module_imageValues,
13
- module_imageHeight = require("./utils/image-height"),
14
- imageHeight = module_imageHeight.default || module_imageHeight,
15
- marko_assign = require("marko/src/runtime/helpers/assign"),
16
- marko_web_node_image_template = require("./image.marko"),
17
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
18
- marko_web_node_image_tag = marko_loadTag(marko_web_node_image_template),
19
- marko_web_link_template = require("../element/link.marko"),
20
- marko_web_link_tag = marko_loadTag(marko_web_link_template),
21
- marko_mergeAttrs = require("marko/src/runtime/html/helpers/merge-attrs");
22
-
23
- function render(input, out, __component, component, state) {
24
- var data = input;
25
-
26
- const blockName = input.blockName || "node";
27
-
28
- const element = `${blockName}__image-inner-wrapper`;
29
-
30
- const {
31
- src,
32
- alt,
33
- isLogo,
34
- lazyload,
35
- imageAttrs,
36
- } = input;
37
-
38
- const usePlaceholder = input.usePlaceholder == null ? true : input.usePlaceholder;
39
-
40
- const hasImage = Boolean(src);
41
-
42
- const hasLink = Boolean(get(input, "link.href"));
43
-
44
- const isPlaceholder = !hasImage && usePlaceholder;
45
-
46
- const { width, height, modifier } = imageValues(input);
47
-
48
- const modifiers = [];
49
-
50
- if (modifier) modifiers.push(modifier);
51
-
52
- if (input.gradient) modifiers.push("gradient");
53
-
54
- if (isPlaceholder) modifiers.push("placeholder");
55
-
56
- const classNames = [element, ...modifiers.map(mod => `${element}--${mod}`), input.class];
57
-
58
- const options = {
59
- ...input.options,
60
- w: input.width,
61
- h: input.ar ? imageHeight(input.width, input.ar) : undefined,
62
- };
63
-
64
- const imageInput = {
65
- src,
66
- alt,
67
- width,
68
- height,
69
- options,
70
- isLogo,
71
- usePlaceholder,
72
- lazyload,
73
- attrs: imageAttrs,
74
- };
75
-
76
- if (hasImage || usePlaceholder) {
77
- if (hasLink) {
78
- const linkAttrs = { ...input.attrs, ...getAsObject(input, "link.attrs") };
79
-
80
- marko_web_link_tag(marko_assign({}, input.link, {
81
- attrs: linkAttrs,
82
- class: classNames,
83
- renderBody: function(out) {
84
- marko_web_node_image_tag(marko_assign({
85
- lazyload: true
86
- }, imageInput), out, __component, "1");
87
- }
88
- }), out, __component, "0");
89
- } else {
90
- out.w("<div" +
91
- marko_mergeAttrs(input.attrs, {
92
- class: classNames
93
- }) +
94
- ">");
95
-
96
- marko_web_node_image_tag(marko_assign({
97
- lazyload: true
98
- }, imageInput), out, __component, "3");
99
-
100
- out.w("</div>");
101
- }
102
- }
103
- }
104
-
105
- marko_template._ = marko_renderer(render, {
106
- ___implicit: true,
107
- ___type: marko_componentType
108
- });
109
-
110
- marko_template.meta = {
111
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node/image-inner-wrapper.marko",
112
- tags: [
113
- "./image.marko",
114
- "../element/link.marko"
115
- ]
116
- };
@@ -1,98 +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/image-wrapper.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
- module_imageValues = require("./utils/image-values"),
11
- imageValues = module_imageValues.default || module_imageValues,
12
- marko_assign = require("marko/src/runtime/helpers/assign"),
13
- marko_web_node_image_inner_wrapper_template = require("./image-inner-wrapper.marko"),
14
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
15
- marko_web_node_image_inner_wrapper_tag = marko_loadTag(marko_web_node_image_inner_wrapper_template),
16
- marko_web_node_header_template = require("./header.marko"),
17
- marko_web_node_header_tag = marko_loadTag(marko_web_node_header_template),
18
- marko_web_node_body_template = require("./body.marko"),
19
- marko_web_node_body_tag = marko_loadTag(marko_web_node_body_template),
20
- marko_web_node_element_template = require("./element.marko"),
21
- marko_web_node_element_tag = marko_loadTag(marko_web_node_element_template);
22
-
23
- function render(input, out, __component, component, state) {
24
- var data = input;
25
-
26
- const usePlaceholder = input.usePlaceholder == null ? true : input.usePlaceholder;
27
-
28
- const hasImage = Boolean(input.src);
29
-
30
- const { width, height } = imageValues(input);
31
-
32
- const style = [];
33
-
34
- if (width) {
35
- style.push(`width: ${input.width}px;`);
36
- // Add min-width for IE11
37
- style.push(`min-width: ${input.width}px;`);
38
- }
39
-
40
- if (height) style.push(`height: ${height}px;`);
41
-
42
- const { header, body, align } = input;
43
-
44
- delete input.header;
45
-
46
- delete input.body;
47
-
48
- delete input.align;
49
-
50
- const modifiers = [];
51
-
52
- if (align) modifiers.push(`align-${align}`);
53
-
54
- if (hasImage || usePlaceholder) {
55
- marko_web_node_element_tag({
56
- show: true,
57
- tag: "div",
58
- blockName: input.blockName,
59
- name: "image-wrapper",
60
- attrs: {
61
- style: style
62
- },
63
- modifiers: modifiers,
64
- renderBody: function(out) {
65
- marko_web_node_image_inner_wrapper_tag(marko_assign({
66
- lazyload: true
67
- }, input), out, __component, "1");
68
-
69
- if (header) {
70
- marko_web_node_header_tag(marko_assign({}, header, {
71
- modifiers: ["overlay", ...getAsArray(header, "modifiers")]
72
- }), out, __component, "2");
73
- }
74
-
75
- if (body) {
76
- marko_web_node_body_tag(marko_assign({}, body, {
77
- modifiers: ["overlay", ...getAsArray(header, "modifiers")]
78
- }), out, __component, "3");
79
- }
80
- }
81
- }, out, __component, "0");
82
- }
83
- }
84
-
85
- marko_template._ = marko_renderer(render, {
86
- ___implicit: true,
87
- ___type: marko_componentType
88
- });
89
-
90
- marko_template.meta = {
91
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node/image-wrapper.marko",
92
- tags: [
93
- "./image-inner-wrapper.marko",
94
- "./header.marko",
95
- "./body.marko",
96
- "./element.marko"
97
- ]
98
- };
@@ -1,77 +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/image.marko",
6
- marko_renderer = require("marko/src/runtime/components/renderer"),
7
- module_baseCmsImage_module = require("@parameter1/base-cms-image"),
8
- baseCmsImage_module = module_baseCmsImage_module.default || module_baseCmsImage_module,
9
- buildImgixUrl = module_baseCmsImage_module.buildImgixUrl,
10
- module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
11
- baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
12
- get = module_baseCmsObjectPath_module.get,
13
- marko_web_img_template = require("../element/img.marko"),
14
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
15
- marko_web_img_tag = marko_loadTag(marko_web_img_template),
16
- marko_mergeAttrs = require("marko/src/runtime/html/helpers/merge-attrs");
17
-
18
- function render(input, out, __component, component, state) {
19
- var data = input;
20
-
21
- const element = "node__image";
22
-
23
- const hasImage = Boolean(input.src);
24
-
25
- const style = [];
26
-
27
- if (input.width) style.push(`width: ${input.width}px;`);
28
-
29
- if (input.height) style.push(`height: ${input.height}px;`);
30
-
31
- const attrs = { ...input.attrs, style };
32
-
33
- const options = {
34
- fit: get(input, "options.w") && get(input, "options.h") ? "crop" : undefined,
35
- ...input.options,
36
- }
37
-
38
- if (hasImage) {
39
- const src = buildImgixUrl(input.src, options, input.defaultOptions, input.isLogo);
40
-
41
- const srcset = [`${buildImgixUrl(src, { dpr: 2 })} 2x`];
42
-
43
- marko_web_img_tag({
44
- lazyload: input.lazyload,
45
- src: src,
46
- srcset: srcset,
47
- alt: input.alt,
48
- attrs: attrs,
49
- class: [
50
- element,
51
- input.class
52
- ]
53
- }, out, __component, "0");
54
- } else if (input.usePlaceholder) {
55
- out.w("<div" +
56
- marko_mergeAttrs(attrs, {
57
- class: [
58
- element,
59
- element + "--placeholder",
60
- input.class
61
- ]
62
- }) +
63
- "></div>");
64
- }
65
- }
66
-
67
- marko_template._ = marko_renderer(render, {
68
- ___implicit: true,
69
- ___type: marko_componentType
70
- });
71
-
72
- marko_template.meta = {
73
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node/image.marko",
74
- tags: [
75
- "../element/img.marko"
76
- ]
77
- };
@@ -1,100 +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/index.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
- marko_web_node_header_template = require("./header.marko"),
11
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
12
- marko_web_node_header_tag = marko_loadTag(marko_web_node_header_template),
13
- marko_assign = require("marko/src/runtime/helpers/assign"),
14
- marko_web_node_image_wrapper_template = require("./image-wrapper.marko"),
15
- marko_web_node_image_wrapper_tag = marko_loadTag(marko_web_node_image_wrapper_template),
16
- marko_web_node_body_template = require("./body.marko"),
17
- marko_web_node_body_tag = marko_loadTag(marko_web_node_body_template),
18
- marko_web_node_element_template = require("./element.marko"),
19
- marko_web_node_element_tag = marko_loadTag(marko_web_node_element_template),
20
- marko_web_node_footer_template = require("./footer.marko"),
21
- marko_web_node_footer_tag = marko_loadTag(marko_web_node_footer_template),
22
- marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag");
23
-
24
- function render(input, out, __component, component, state) {
25
- var data = input;
26
-
27
- const blockName = input.blockName || "node";
28
-
29
- const tag = input.tag || "div";
30
-
31
- const modifiers = [...getAsArray(input.modifiers)];
32
-
33
- if (input.imagePosition) modifiers.push(`image-${input.imagePosition}`);
34
-
35
- if (input.flush) modifiers.push("flush");
36
-
37
- if (input.flushX) modifiers.push("flush-x");
38
-
39
- if (input.flushY) modifiers.push("flush-y");
40
-
41
- if (input.card) modifiers.push("card");
42
-
43
- if (input.imageFlush) modifiers.push("image-flush");
44
-
45
- if (input.fullHeight) modifiers.push("full-height");
46
-
47
- if (input.type) modifiers.push(`${input.type}-type`);
48
-
49
- const classNames = [blockName, ...modifiers.map(mod => `${blockName}--${mod}`), input.class];
50
-
51
- marko_dynamicTag(out, tag, function() {
52
- return marko_assign({}, input.attrs, {
53
- class: classNames
54
- });
55
- }, function(out) {
56
- if (input.header) {
57
- marko_web_node_header_tag(input.header, out, __component, "1");
58
- }
59
-
60
- marko_web_node_element_tag({
61
- show: true,
62
- tag: "div",
63
- blockName: "node",
64
- name: "contents",
65
- renderBody: function(out) {
66
- if (input.image) {
67
- marko_web_node_image_wrapper_tag(marko_assign({
68
- ar: "1:1",
69
- width: 320,
70
- lazyload: true
71
- }, input.image), out, __component, "3");
72
- }
73
-
74
- if (input.body) {
75
- marko_web_node_body_tag(input.body, out, __component, "4");
76
- }
77
- }
78
- }, out, __component, "2");
79
-
80
- if (input.footer) {
81
- marko_web_node_footer_tag(input.footer, out, __component, "5");
82
- }
83
- }, null, null, __component, "0");
84
- }
85
-
86
- marko_template._ = marko_renderer(render, {
87
- ___implicit: true,
88
- ___type: marko_componentType
89
- });
90
-
91
- marko_template.meta = {
92
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node/index.marko",
93
- tags: [
94
- "./header.marko",
95
- "./image-wrapper.marko",
96
- "./body.marko",
97
- "./element.marko",
98
- "./footer.marko"
99
- ]
100
- };
@@ -1,50 +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-list/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
- marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
11
- marko_web_node_list_element_template = require("./element.marko"),
12
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
13
- marko_web_node_list_element_tag = marko_loadTag(marko_web_node_list_element_template);
14
-
15
- function render(input, out, __component, component, state) {
16
- var data = input;
17
-
18
- const blockName = input.blockName || "node-list";
19
-
20
- const modifiers = [...getAsArray(input, "modifiers")];
21
-
22
- if (input.flushX) modifiers.push("flush-x");
23
-
24
- if (input.flushY) modifiers.push("flush-y");
25
-
26
- if (input.renderBody) {
27
- marko_web_node_list_element_tag({
28
- tag: input.tag,
29
- blockName: blockName,
30
- name: "body",
31
- modifiers: modifiers,
32
- attrs: input.attrs,
33
- renderBody: function(out) {
34
- marko_dynamicTag(out, input.renderBody, null, null, null, null, __component, "1");
35
- }
36
- }, out, __component, "0");
37
- }
38
- }
39
-
40
- marko_template._ = marko_renderer(render, {
41
- ___implicit: true,
42
- ___type: marko_componentType
43
- });
44
-
45
- marko_template.meta = {
46
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node-list/body.marko",
47
- tags: [
48
- "./element.marko"
49
- ]
50
- };
@@ -1,35 +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-list/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-list";
16
-
17
- marko_web_element_tag(marko_assign({
18
- name: "default",
19
- tag: "div"
20
- }, input, {
21
- blockName: block
22
- }), out, __component, "0");
23
- }
24
-
25
- marko_template._ = marko_renderer(render, {
26
- ___implicit: true,
27
- ___type: marko_componentType
28
- });
29
-
30
- marko_template.meta = {
31
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node-list/element.marko",
32
- tags: [
33
- "../element"
34
- ]
35
- };
@@ -1,50 +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-list/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
- getAsArray = module_baseCmsObjectPath_module.getAsArray,
10
- marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
11
- marko_web_node_list_element_template = require("./element.marko"),
12
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
13
- marko_web_node_list_element_tag = marko_loadTag(marko_web_node_list_element_template);
14
-
15
- function render(input, out, __component, component, state) {
16
- var data = input;
17
-
18
- const blockName = input.blockName || "node-list";
19
-
20
- const modifiers = [...getAsArray(input, "modifiers")];
21
-
22
- if (input.flushX) modifiers.push("flush-x");
23
-
24
- if (input.flushY) modifiers.push("flush-y");
25
-
26
- if (input.renderBody) {
27
- marko_web_node_list_element_tag({
28
- tag: input.tag,
29
- blockName: blockName,
30
- name: "footer",
31
- modifiers: modifiers,
32
- attrs: input.attrs,
33
- renderBody: function(out) {
34
- marko_dynamicTag(out, input.renderBody, null, null, null, null, __component, "1");
35
- }
36
- }, out, __component, "0");
37
- }
38
- }
39
-
40
- marko_template._ = marko_renderer(render, {
41
- ___implicit: true,
42
- ___type: marko_componentType
43
- });
44
-
45
- marko_template.meta = {
46
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node-list/footer.marko",
47
- tags: [
48
- "./element.marko"
49
- ]
50
- };
@@ -1,50 +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-list/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
- getAsArray = module_baseCmsObjectPath_module.getAsArray,
10
- marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
11
- marko_web_node_list_element_template = require("./element.marko"),
12
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
13
- marko_web_node_list_element_tag = marko_loadTag(marko_web_node_list_element_template);
14
-
15
- function render(input, out, __component, component, state) {
16
- var data = input;
17
-
18
- const blockName = input.blockName || "node-list";
19
-
20
- const modifiers = [...getAsArray(input, "modifiers")];
21
-
22
- if (input.flushX) modifiers.push("flush-x");
23
-
24
- if (input.flushY) modifiers.push("flush-y");
25
-
26
- if (input.renderBody) {
27
- marko_web_node_list_element_tag({
28
- tag: input.tag,
29
- blockName: blockName,
30
- name: "header",
31
- modifiers: modifiers,
32
- attrs: input.attrs,
33
- renderBody: function(out) {
34
- marko_dynamicTag(out, input.renderBody, null, null, null, null, __component, "1");
35
- }
36
- }, out, __component, "0");
37
- }
38
- }
39
-
40
- marko_template._ = marko_renderer(render, {
41
- ___implicit: true,
42
- ___type: marko_componentType
43
- });
44
-
45
- marko_template.meta = {
46
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node-list/header.marko",
47
- tags: [
48
- "./element.marko"
49
- ]
50
- };
@@ -1,93 +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-list/index.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_shouldCollapse = require("../../utils/should-collapse"),
12
- shouldCollapse = module_shouldCollapse.default || module_shouldCollapse,
13
- marko_web_node_list_header_template = require("./header.marko"),
14
- marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
15
- marko_web_node_list_header_tag = marko_loadTag(marko_web_node_list_header_template),
16
- marko_web_node_list_body_template = require("./body.marko"),
17
- marko_web_node_list_body_tag = marko_loadTag(marko_web_node_list_body_template),
18
- marko_web_node_list_nodes_template = require("./nodes.marko"),
19
- marko_web_node_list_nodes_tag = marko_loadTag(marko_web_node_list_nodes_template),
20
- marko_web_node_list_footer_template = require("./footer.marko"),
21
- marko_web_node_list_footer_tag = marko_loadTag(marko_web_node_list_footer_template),
22
- marko_mergeAttrs = require("marko/src/runtime/html/helpers/merge-attrs");
23
-
24
- function render(input, out, __component, component, state) {
25
- var data = input;
26
-
27
- const blockName = input.blockName || "node-list";
28
-
29
- const tag = input.tag || "div";
30
-
31
- const nodes = getAsArray(input, "nodes.nodes");
32
-
33
- const justified = get(input, "justified", false);
34
-
35
- const innerJustified = get(input, "innerJustified", false);
36
-
37
- const modifiers = [...getAsArray(input.modifiers)];
38
-
39
- if (input.flushX) modifiers.push("flush-x");
40
-
41
- if (input.flushY) modifiers.push("flush-y");
42
-
43
- if (input.fullHeight) modifiers.push("full-height");
44
-
45
- if (justified) modifiers.push("justified");
46
-
47
- if (innerJustified) modifiers.push("inner-justified");
48
-
49
- const collapsible = shouldCollapse(input.collapsible);
50
-
51
- const classNames = [blockName, ...modifiers.map(mod => `${blockName}--${mod}`), input.class];
52
-
53
- if (nodes.length || (!collapsible)) {
54
- out.w("<div" +
55
- marko_mergeAttrs(input.attrs, {
56
- class: classNames
57
- }) +
58
- ">");
59
-
60
- if (input.header) {
61
- marko_web_node_list_header_tag(input.header, out, __component, "1");
62
- }
63
-
64
- if (input.body) {
65
- marko_web_node_list_body_tag(input.body, out, __component, "2");
66
- }
67
-
68
- if (input.nodes) {
69
- marko_web_node_list_nodes_tag(input.nodes, out, __component, "3");
70
- }
71
-
72
- if (input.footer) {
73
- marko_web_node_list_footer_tag(input.footer, out, __component, "4");
74
- }
75
-
76
- out.w("</div>");
77
- }
78
- }
79
-
80
- marko_template._ = marko_renderer(render, {
81
- ___implicit: true,
82
- ___type: marko_componentType
83
- });
84
-
85
- marko_template.meta = {
86
- id: "/@parameter1/base-cms-marko-web$3.0.0/components/node-list/index.marko",
87
- tags: [
88
- "./header.marko",
89
- "./body.marko",
90
- "./nodes.marko",
91
- "./footer.marko"
92
- ]
93
- };