@parameter1/base-cms-marko-web 2.98.0 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/components/browser-component.marko.js +2 -2
- package/components/document/components/body-wrapper.marko.js +2 -2
- package/components/document/components/error.marko.js +2 -2
- package/components/document/components/live-reload.marko.js +2 -2
- package/components/document/container.marko.js +2 -2
- package/components/document/index.marko.js +3 -3
- package/components/element/array.marko.js +2 -2
- package/components/element/block.marko.js +2 -2
- package/components/element/clear.marko.js +2 -2
- package/components/element/components/image.marko +1 -1
- package/components/element/components/image.marko.js +3 -3
- package/components/element/components/text.marko.js +2 -2
- package/components/element/content/address1.marko.js +3 -4
- package/components/element/content/address2.marko.js +3 -4
- package/components/element/content/authors.marko.js +3 -4
- package/components/element/content/body.marko.js +4 -5
- package/components/element/content/byline.marko.js +5 -5
- package/components/element/content/city-state-zip.marko.js +3 -4
- package/components/element/content/contributors.marko.js +3 -4
- package/components/element/content/country.marko.js +3 -4
- package/components/element/content/embed-code.marko.js +3 -4
- package/components/element/content/end-date.marko.js +3 -4
- package/components/element/content/fax.marko.js +3 -4
- package/components/element/content/mobile.marko.js +3 -4
- package/components/element/content/name.marko.js +3 -4
- package/components/element/content/phone.marko.js +3 -4
- package/components/element/content/photographers.marko.js +3 -4
- package/components/element/content/public-email.marko.js +3 -4
- package/components/element/content/published.marko.js +3 -4
- package/components/element/content/short-name.marko.js +3 -4
- package/components/element/content/sidebars.marko.js +16 -8
- package/components/element/content/source.marko.js +3 -4
- package/components/element/content/sponsors.marko.js +3 -4
- package/components/element/content/start-date.marko.js +3 -4
- package/components/element/content/teaser.marko.js +3 -4
- package/components/element/content/title.marko.js +3 -4
- package/components/element/content/tollfree.marko.js +3 -4
- package/components/element/content/website.marko.js +3 -4
- package/components/element/date.marko.js +3 -4
- package/components/element/image/caption.marko.js +3 -4
- package/components/element/image/credit.marko.js +3 -4
- package/components/element/image/display-name.marko.js +3 -4
- package/components/element/img.marko.js +4 -5
- package/components/element/index.marko.js +2 -2
- package/components/element/link.marko.js +5 -4
- package/components/element/magazine-publication/cancel-url.marko +22 -0
- package/components/element/magazine-publication/change-address-url.marko +22 -0
- package/components/element/magazine-publication/marko.json +20 -0
- package/components/element/obj-array.marko.js +4 -5
- package/components/element/obj-date.marko.js +4 -5
- package/components/element/obj-nodes.marko.js +4 -5
- package/components/element/obj-text.marko.js +4 -5
- package/components/element/obj.marko.js +2 -2
- package/components/element/picture.marko.js +83 -0
- package/components/element/text.marko.js +4 -5
- package/components/element/website-section/name.marko.js +5 -5
- package/components/load-more/index.marko.js +2 -2
- package/components/load-more/trigger.marko.js +2 -2
- package/components/node/body.marko.js +5 -6
- package/components/node/element.marko.js +4 -5
- package/components/node/footer.marko.js +3 -4
- package/components/node/header.marko.js +3 -4
- package/components/node/image-inner-wrapper.marko.js +4 -5
- package/components/node/image-wrapper.marko.js +6 -7
- package/components/node/image.marko.js +3 -4
- package/components/node/index.marko.js +7 -8
- package/components/node-list/body.marko.js +3 -4
- package/components/node-list/element.marko.js +4 -5
- package/components/node-list/footer.marko.js +3 -4
- package/components/node-list/header.marko.js +3 -4
- package/components/node-list/index.marko.js +6 -7
- package/components/node-list/node.marko.js +3 -4
- package/components/node-list/nodes.marko.js +4 -5
- package/components/page/container.marko.js +2 -2
- package/components/page/description.marko.js +2 -2
- package/components/page/image.marko.js +7 -8
- package/components/page/layouts/content.marko.js +8 -6
- package/components/page/layouts/default.marko.js +2 -2
- package/components/page/layouts/website-section.marko.js +5 -5
- package/components/page/metadata/components/common.marko.js +2 -2
- package/components/page/metadata/content.marko.js +79 -7
- package/components/page/metadata/default.marko.js +2 -2
- package/components/page/metadata/website-section.marko.js +4 -5
- package/components/page/rel-canonical.marko.js +2 -2
- package/components/page/title.marko.js +2 -2
- package/components/page/wrapper.marko.js +2 -2
- package/components/resolve/page.marko.js +3 -4
- package/components/rss/website-section.marko.js +2 -2
- package/package.json +13 -13
@@ -2,12 +2,11 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/photographers.marko",
|
6
6
|
marko_component = require("./photographers.marko"),
|
7
7
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
8
8
|
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
9
|
-
|
10
|
-
marko_web_obj_nodes_template = marko_loadTemplate(require.resolve("../obj-nodes.marko")),
|
9
|
+
marko_web_obj_nodes_template = require("../obj-nodes.marko"),
|
11
10
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
12
11
|
marko_web_obj_nodes_tag = marko_loadTag(marko_web_obj_nodes_template);
|
13
12
|
|
@@ -36,7 +35,7 @@ marko_template._ = marko_renderer(render, {
|
|
36
35
|
}, marko_component);
|
37
36
|
|
38
37
|
marko_template.meta = {
|
39
|
-
id: "/@parameter1/base-cms-marko-web$
|
38
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/photographers.marko",
|
40
39
|
component: "./photographers.marko",
|
41
40
|
tags: [
|
42
41
|
"../obj-nodes.marko"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/public-email.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -10,8 +10,7 @@ var marko_template = module.exports = require("marko/src/html").t(__filename),
|
|
10
10
|
module_extractRender = require("../extract-render"),
|
11
11
|
extractRender = module_extractRender.default || module_extractRender,
|
12
12
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
13
|
-
|
14
|
-
marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
|
13
|
+
marko_web_obj_text_template = require("../obj-text.marko"),
|
15
14
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
16
15
|
marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
|
17
16
|
|
@@ -41,7 +40,7 @@ marko_template._ = marko_renderer(render, {
|
|
41
40
|
});
|
42
41
|
|
43
42
|
marko_template.meta = {
|
44
|
-
id: "/@parameter1/base-cms-marko-web$
|
43
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/public-email.marko",
|
45
44
|
tags: [
|
46
45
|
"../obj-text.marko"
|
47
46
|
]
|
@@ -2,13 +2,12 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/published.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_extractRender = require("../extract-render"),
|
8
8
|
extractRender = module_extractRender.default || module_extractRender,
|
9
9
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
10
|
-
|
11
|
-
marko_web_obj_date_template = marko_loadTemplate(require.resolve("../obj-date.marko")),
|
10
|
+
marko_web_obj_date_template = require("../obj-date.marko"),
|
12
11
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
13
12
|
marko_web_obj_date_tag = marko_loadTag(marko_web_obj_date_template);
|
14
13
|
|
@@ -36,7 +35,7 @@ marko_template._ = marko_renderer(render, {
|
|
36
35
|
});
|
37
36
|
|
38
37
|
marko_template.meta = {
|
39
|
-
id: "/@parameter1/base-cms-marko-web$
|
38
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/published.marko",
|
40
39
|
tags: [
|
41
40
|
"../obj-date.marko"
|
42
41
|
]
|
@@ -2,13 +2,12 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/short-name.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_extractRender = require("../extract-render"),
|
8
8
|
extractRender = module_extractRender.default || module_extractRender,
|
9
9
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
10
|
-
|
11
|
-
marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
|
10
|
+
marko_web_obj_text_template = require("../obj-text.marko"),
|
12
11
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
13
12
|
marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
|
14
13
|
|
@@ -35,7 +34,7 @@ marko_template._ = marko_renderer(render, {
|
|
35
34
|
});
|
36
35
|
|
37
36
|
marko_template.meta = {
|
38
|
-
id: "/@parameter1/base-cms-marko-web$
|
37
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/short-name.marko",
|
39
38
|
tags: [
|
40
39
|
"../obj-text.marko"
|
41
40
|
]
|
@@ -2,22 +2,26 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/sidebars.marko",
|
6
6
|
marko_component = require("./sidebars.marko"),
|
7
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,
|
8
11
|
module_extractRender = require("../extract-render"),
|
9
12
|
extractRender = module_extractRender.default || module_extractRender,
|
10
13
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
11
|
-
|
12
|
-
marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
|
14
|
+
marko_web_obj_text_template = require("../obj-text.marko"),
|
13
15
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
14
16
|
marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template),
|
15
|
-
marko_web_obj_array_template =
|
17
|
+
marko_web_obj_array_template = require("../obj-array.marko"),
|
16
18
|
marko_web_obj_array_tag = marko_loadTag(marko_web_obj_array_template);
|
17
19
|
|
18
20
|
function render(input, out, __component, component, state) {
|
19
21
|
var data = input;
|
20
22
|
|
23
|
+
const { parseEmbeddedMedia, res } = out.global;
|
24
|
+
|
21
25
|
marko_web_obj_array_tag({
|
22
26
|
type: "content",
|
23
27
|
blockName: input.blockName,
|
@@ -28,12 +32,16 @@ function render(input, out, __component, component, state) {
|
|
28
32
|
modifiers: input.modifiers,
|
29
33
|
attrs: input.attrs,
|
30
34
|
renderBody: function(out, { value }) {
|
35
|
+
const v = value == null ? "" : `${value}`.trim();
|
36
|
+
|
37
|
+
const embedOptions = getAsObject(input, "embedOptions");
|
38
|
+
|
39
|
+
const obj = { sidebar: parseEmbeddedMedia(v, res, embedOptions) };
|
40
|
+
|
31
41
|
marko_web_obj_text_tag(marko_assign({
|
32
42
|
type: "content",
|
33
43
|
blockName: input.blockName,
|
34
|
-
obj:
|
35
|
-
sidebar: value
|
36
|
-
},
|
44
|
+
obj: obj,
|
37
45
|
field: "sidebar",
|
38
46
|
html: true
|
39
47
|
}, extractRender(input)), out, __component, "1");
|
@@ -46,7 +54,7 @@ marko_template._ = marko_renderer(render, {
|
|
46
54
|
}, marko_component);
|
47
55
|
|
48
56
|
marko_template.meta = {
|
49
|
-
id: "/@parameter1/base-cms-marko-web$
|
57
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/sidebars.marko",
|
50
58
|
component: "./sidebars.marko",
|
51
59
|
tags: [
|
52
60
|
"../obj-text.marko",
|
@@ -2,13 +2,12 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/source.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_extractRender = require("../extract-render"),
|
8
8
|
extractRender = module_extractRender.default || module_extractRender,
|
9
9
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
10
|
-
|
11
|
-
marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
|
10
|
+
marko_web_obj_text_template = require("../obj-text.marko"),
|
12
11
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
13
12
|
marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
|
14
13
|
|
@@ -34,7 +33,7 @@ marko_template._ = marko_renderer(render, {
|
|
34
33
|
});
|
35
34
|
|
36
35
|
marko_template.meta = {
|
37
|
-
id: "/@parameter1/base-cms-marko-web$
|
36
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/source.marko",
|
38
37
|
tags: [
|
39
38
|
"../obj-text.marko"
|
40
39
|
]
|
@@ -2,12 +2,11 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/sponsors.marko",
|
6
6
|
marko_component = require("./sponsors.marko"),
|
7
7
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
8
8
|
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
9
|
-
|
10
|
-
marko_web_obj_nodes_template = marko_loadTemplate(require.resolve("../obj-nodes.marko")),
|
9
|
+
marko_web_obj_nodes_template = require("../obj-nodes.marko"),
|
11
10
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
12
11
|
marko_web_obj_nodes_tag = marko_loadTag(marko_web_obj_nodes_template);
|
13
12
|
|
@@ -36,7 +35,7 @@ marko_template._ = marko_renderer(render, {
|
|
36
35
|
}, marko_component);
|
37
36
|
|
38
37
|
marko_template.meta = {
|
39
|
-
id: "/@parameter1/base-cms-marko-web$
|
38
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/sponsors.marko",
|
40
39
|
component: "./sponsors.marko",
|
41
40
|
tags: [
|
42
41
|
"../obj-nodes.marko"
|
@@ -2,13 +2,12 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/start-date.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_extractRender = require("../extract-render"),
|
8
8
|
extractRender = module_extractRender.default || module_extractRender,
|
9
9
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
10
|
-
|
11
|
-
marko_web_obj_date_template = marko_loadTemplate(require.resolve("../obj-date.marko")),
|
10
|
+
marko_web_obj_date_template = require("../obj-date.marko"),
|
12
11
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
13
12
|
marko_web_obj_date_tag = marko_loadTag(marko_web_obj_date_template);
|
14
13
|
|
@@ -36,7 +35,7 @@ marko_template._ = marko_renderer(render, {
|
|
36
35
|
});
|
37
36
|
|
38
37
|
marko_template.meta = {
|
39
|
-
id: "/@parameter1/base-cms-marko-web$
|
38
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/start-date.marko",
|
40
39
|
tags: [
|
41
40
|
"../obj-date.marko"
|
42
41
|
]
|
@@ -2,13 +2,12 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/teaser.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_extractRender = require("../extract-render"),
|
8
8
|
extractRender = module_extractRender.default || module_extractRender,
|
9
9
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
10
|
-
|
11
|
-
marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
|
10
|
+
marko_web_obj_text_template = require("../obj-text.marko"),
|
12
11
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
13
12
|
marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
|
14
13
|
|
@@ -35,7 +34,7 @@ marko_template._ = marko_renderer(render, {
|
|
35
34
|
});
|
36
35
|
|
37
36
|
marko_template.meta = {
|
38
|
-
id: "/@parameter1/base-cms-marko-web$
|
37
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/teaser.marko",
|
39
38
|
tags: [
|
40
39
|
"../obj-text.marko"
|
41
40
|
]
|
@@ -2,13 +2,12 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/title.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_extractRender = require("../extract-render"),
|
8
8
|
extractRender = module_extractRender.default || module_extractRender,
|
9
9
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
10
|
-
|
11
|
-
marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
|
10
|
+
marko_web_obj_text_template = require("../obj-text.marko"),
|
12
11
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
13
12
|
marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
|
14
13
|
|
@@ -34,7 +33,7 @@ marko_template._ = marko_renderer(render, {
|
|
34
33
|
});
|
35
34
|
|
36
35
|
marko_template.meta = {
|
37
|
-
id: "/@parameter1/base-cms-marko-web$
|
36
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/title.marko",
|
38
37
|
tags: [
|
39
38
|
"../obj-text.marko"
|
40
39
|
]
|
@@ -2,13 +2,12 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/tollfree.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_extractRender = require("../extract-render"),
|
8
8
|
extractRender = module_extractRender.default || module_extractRender,
|
9
9
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
10
|
-
|
11
|
-
marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
|
10
|
+
marko_web_obj_text_template = require("../obj-text.marko"),
|
12
11
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
13
12
|
marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
|
14
13
|
|
@@ -34,7 +33,7 @@ marko_template._ = marko_renderer(render, {
|
|
34
33
|
});
|
35
34
|
|
36
35
|
marko_template.meta = {
|
37
|
-
id: "/@parameter1/base-cms-marko-web$
|
36
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/tollfree.marko",
|
38
37
|
tags: [
|
39
38
|
"../obj-text.marko"
|
40
39
|
]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/website.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
8
8
|
baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
|
@@ -10,8 +10,7 @@ var marko_template = module.exports = require("marko/src/html").t(__filename),
|
|
10
10
|
module_extractRender = require("../extract-render"),
|
11
11
|
extractRender = module_extractRender.default || module_extractRender,
|
12
12
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
13
|
-
|
14
|
-
marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
|
13
|
+
marko_web_obj_text_template = require("../obj-text.marko"),
|
15
14
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
16
15
|
marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
|
17
16
|
|
@@ -45,7 +44,7 @@ marko_template._ = marko_renderer(render, {
|
|
45
44
|
});
|
46
45
|
|
47
46
|
marko_template.meta = {
|
48
|
-
id: "/@parameter1/base-cms-marko-web$
|
47
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/content/website.marko",
|
49
48
|
tags: [
|
50
49
|
"../obj-text.marko"
|
51
50
|
]
|
@@ -2,10 +2,9 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/date.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
-
|
8
|
-
marko_core_date_template = marko_loadTemplate(require.resolve("@parameter1/base-cms-marko-core/components/elements/date.marko")),
|
7
|
+
marko_core_date_template = require("@parameter1/base-cms-marko-core/components/elements/date.marko"),
|
9
8
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
10
9
|
marko_core_date_tag = marko_loadTag(marko_core_date_template);
|
11
10
|
|
@@ -21,7 +20,7 @@ marko_template._ = marko_renderer(render, {
|
|
21
20
|
});
|
22
21
|
|
23
22
|
marko_template.meta = {
|
24
|
-
id: "/@parameter1/base-cms-marko-web$
|
23
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/date.marko",
|
25
24
|
tags: [
|
26
25
|
"@parameter1/base-cms-marko-core/components/elements/date.marko"
|
27
26
|
]
|
@@ -2,13 +2,12 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/image/caption.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_extractRender = require("../extract-render"),
|
8
8
|
extractRender = module_extractRender.default || module_extractRender,
|
9
9
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
10
|
-
|
11
|
-
marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
|
10
|
+
marko_web_obj_text_template = require("../obj-text.marko"),
|
12
11
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
13
12
|
marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
|
14
13
|
|
@@ -35,7 +34,7 @@ marko_template._ = marko_renderer(render, {
|
|
35
34
|
});
|
36
35
|
|
37
36
|
marko_template.meta = {
|
38
|
-
id: "/@parameter1/base-cms-marko-web$
|
37
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/image/caption.marko",
|
39
38
|
tags: [
|
40
39
|
"../obj-text.marko"
|
41
40
|
]
|
@@ -2,13 +2,12 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/image/credit.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_extractRender = require("../extract-render"),
|
8
8
|
extractRender = module_extractRender.default || module_extractRender,
|
9
9
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
10
|
-
|
11
|
-
marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
|
10
|
+
marko_web_obj_text_template = require("../obj-text.marko"),
|
12
11
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
13
12
|
marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
|
14
13
|
|
@@ -35,7 +34,7 @@ marko_template._ = marko_renderer(render, {
|
|
35
34
|
});
|
36
35
|
|
37
36
|
marko_template.meta = {
|
38
|
-
id: "/@parameter1/base-cms-marko-web$
|
37
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/image/credit.marko",
|
39
38
|
tags: [
|
40
39
|
"../obj-text.marko"
|
41
40
|
]
|
@@ -2,13 +2,12 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/image/display-name.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_extractRender = require("../extract-render"),
|
8
8
|
extractRender = module_extractRender.default || module_extractRender,
|
9
9
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
10
|
-
|
11
|
-
marko_web_obj_text_template = marko_loadTemplate(require.resolve("../obj-text.marko")),
|
10
|
+
marko_web_obj_text_template = require("../obj-text.marko"),
|
12
11
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
13
12
|
marko_web_obj_text_tag = marko_loadTag(marko_web_obj_text_template);
|
14
13
|
|
@@ -34,7 +33,7 @@ marko_template._ = marko_renderer(render, {
|
|
34
33
|
});
|
35
34
|
|
36
35
|
marko_template.meta = {
|
37
|
-
id: "/@parameter1/base-cms-marko-web$
|
36
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/image/display-name.marko",
|
38
37
|
tags: [
|
39
38
|
"../obj-text.marko"
|
40
39
|
]
|
@@ -2,14 +2,13 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/img.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
-
|
8
|
-
image_template = marko_loadTemplate(require.resolve("./components/image.marko")),
|
7
|
+
image_template = require("./components/image.marko"),
|
9
8
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
10
9
|
image_tag = marko_loadTag(image_template),
|
11
10
|
marko_assign = require("marko/src/runtime/helpers/assign"),
|
12
|
-
marko_web_link_template =
|
11
|
+
marko_web_link_template = require("./link.marko"),
|
13
12
|
marko_web_link_tag = marko_loadTag(marko_web_link_template);
|
14
13
|
|
15
14
|
function render(input, out, __component, component, state) {
|
@@ -36,7 +35,7 @@ marko_template._ = marko_renderer(render, {
|
|
36
35
|
});
|
37
36
|
|
38
37
|
marko_template.meta = {
|
39
|
-
id: "/@parameter1/base-cms-marko-web$
|
38
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/img.marko",
|
40
39
|
tags: [
|
41
40
|
"./components/image.marko",
|
42
41
|
"./link.marko"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/index.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -43,5 +43,5 @@ marko_template._ = marko_renderer(render, {
|
|
43
43
|
});
|
44
44
|
|
45
45
|
marko_template.meta = {
|
46
|
-
id: "/@parameter1/base-cms-marko-web$
|
46
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/index.marko"
|
47
47
|
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/link.marko",
|
6
6
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
7
|
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
8
8
|
marko_mergeAttrs = require("marko/src/runtime/html/helpers/merge-attrs");
|
@@ -26,11 +26,12 @@ function render(input, out, __component, component, state) {
|
|
26
26
|
|
27
27
|
if (hasHref) {
|
28
28
|
out.w("<a" +
|
29
|
-
marko_mergeAttrs(
|
29
|
+
marko_mergeAttrs({
|
30
|
+
rel: rel
|
31
|
+
}, input.attrs, {
|
30
32
|
href: href,
|
31
33
|
title: input.title,
|
32
34
|
target: target,
|
33
|
-
rel: rel,
|
34
35
|
class: classNames
|
35
36
|
}) +
|
36
37
|
">");
|
@@ -49,5 +50,5 @@ marko_template._ = marko_renderer(render, {
|
|
49
50
|
});
|
50
51
|
|
51
52
|
marko_template.meta = {
|
52
|
-
id: "/@parameter1/base-cms-marko-web$
|
53
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/link.marko"
|
53
54
|
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { isObject } from "@parameter1/base-cms-utils";
|
2
|
+
import extractRender from "../extract-render";
|
3
|
+
|
4
|
+
$ const linkInput = { field: "cancelUrl" };
|
5
|
+
$ if (input.link === true) {
|
6
|
+
input.link = linkInput;
|
7
|
+
} else if (isObject(input.link)) {
|
8
|
+
input.link = { ...input.link, ...linkInput };
|
9
|
+
}
|
10
|
+
|
11
|
+
<marko-web-obj-text
|
12
|
+
type="magazine-publication"
|
13
|
+
block-name=input.blockName
|
14
|
+
obj=input.obj
|
15
|
+
field="cancelUrl"
|
16
|
+
tag=input.tag
|
17
|
+
class=input.class
|
18
|
+
modifiers=input.modifiers
|
19
|
+
attrs=input.attrs
|
20
|
+
link=input.link
|
21
|
+
...extractRender(input)
|
22
|
+
/>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { isObject } from "@parameter1/base-cms-utils";
|
2
|
+
import extractRender from "../extract-render";
|
3
|
+
|
4
|
+
$ const linkInput = { field: "changeAddressUrl" };
|
5
|
+
$ if (input.link === true) {
|
6
|
+
input.link = linkInput;
|
7
|
+
} else if (isObject(input.link)) {
|
8
|
+
input.link = { ...input.link, ...linkInput };
|
9
|
+
}
|
10
|
+
|
11
|
+
<marko-web-obj-text
|
12
|
+
type="magazine-publication"
|
13
|
+
block-name=input.blockName
|
14
|
+
obj=input.obj
|
15
|
+
field="changeAddressUrl"
|
16
|
+
tag=input.tag
|
17
|
+
class=input.class
|
18
|
+
modifiers=input.modifiers
|
19
|
+
attrs=input.attrs
|
20
|
+
link=input.link
|
21
|
+
...extractRender(input)
|
22
|
+
/>
|
@@ -39,6 +39,26 @@
|
|
39
39
|
"@attrs": "object",
|
40
40
|
"@link": "expression"
|
41
41
|
},
|
42
|
+
"<marko-web-magazine-publication-change-address-url>": {
|
43
|
+
"template": "./change-address-url.marko",
|
44
|
+
"@block-name": "string",
|
45
|
+
"@obj": "object",
|
46
|
+
"@tag": "string",
|
47
|
+
"@class": "string",
|
48
|
+
"@modifiers": "string",
|
49
|
+
"@attrs": "object",
|
50
|
+
"@link": "expression"
|
51
|
+
},
|
52
|
+
"<marko-web-magazine-publication-cancel-url>": {
|
53
|
+
"template": "./cancel-url.marko",
|
54
|
+
"@block-name": "string",
|
55
|
+
"@obj": "object",
|
56
|
+
"@tag": "string",
|
57
|
+
"@class": "string",
|
58
|
+
"@modifiers": "string",
|
59
|
+
"@attrs": "object",
|
60
|
+
"@link": "expression"
|
61
|
+
},
|
42
62
|
"<marko-web-magazine-publication-reprints-url>": {
|
43
63
|
"template": "./reprints-url.marko",
|
44
64
|
"@block-name": "string",
|
@@ -2,15 +2,14 @@
|
|
2
2
|
"use strict";
|
3
3
|
|
4
4
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
-
marko_componentType = "/@parameter1/base-cms-marko-web$
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.0.0/components/element/obj-array.marko",
|
6
6
|
marko_component = require("./obj-array.marko"),
|
7
7
|
marko_renderer = require("marko/src/runtime/components/renderer"),
|
8
8
|
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
9
|
-
|
10
|
-
marko_web_array_template = marko_loadTemplate(require.resolve("./array.marko")),
|
9
|
+
marko_web_array_template = require("./array.marko"),
|
11
10
|
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
12
11
|
marko_web_array_tag = marko_loadTag(marko_web_array_template),
|
13
|
-
marko_web_obj_template =
|
12
|
+
marko_web_obj_template = require("./obj.marko"),
|
14
13
|
marko_web_obj_tag = marko_loadTag(marko_web_obj_template);
|
15
14
|
|
16
15
|
function render(input, out, __component, component, state) {
|
@@ -48,7 +47,7 @@ marko_template._ = marko_renderer(render, {
|
|
48
47
|
}, marko_component);
|
49
48
|
|
50
49
|
marko_template.meta = {
|
51
|
-
id: "/@parameter1/base-cms-marko-web$
|
50
|
+
id: "/@parameter1/base-cms-marko-web$3.0.0/components/element/obj-array.marko",
|
52
51
|
component: "./obj-array.marko",
|
53
52
|
tags: [
|
54
53
|
"./array.marko",
|