@everymatrix/general-footer-template 1.49.2 → 1.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/custom-clock.cjs.entry.js +2285 -0
- package/dist/cjs/custom-content-section.cjs.entry.js +1498 -1418
- package/dist/cjs/general-footer-template.cjs.entry.js +8 -3
- package/dist/cjs/general-footer-template.cjs.js +3 -3
- package/dist/cjs/image-list.cjs.entry.js +2 -2
- package/dist/cjs/{index-4c3922ac.js → index-465b4ca9.js} +73 -18
- package/dist/cjs/link-section-list.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/custom-clock/custom-clock.css +8 -0
- package/dist/collection/components/custom-clock/custom-clock.js +114 -0
- package/dist/collection/components/custom-content-section/custom-content-section.js +1 -1
- package/dist/collection/components/general-footer-template/general-footer-template.css +3 -3
- package/dist/collection/components/general-footer-template/general-footer-template.js +39 -1
- package/dist/collection/components/image-list/image-list.js +1 -1
- package/dist/collection/utils/locale.utils.js +42 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/custom-clock.entry.js +2281 -0
- package/dist/esm/custom-content-section.entry.js +1498 -1418
- package/dist/esm/general-footer-template.entry.js +8 -3
- package/dist/esm/general-footer-template.js +4 -4
- package/dist/esm/image-list.entry.js +2 -2
- package/dist/esm/{index-7361445e.js → index-9775f5ee.js} +73 -18
- package/dist/esm/link-section-list.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/general-footer-template/general-footer-template.esm.js +1 -1
- package/dist/general-footer-template/{p-0a75f723.entry.js → p-1274900b.entry.js} +1 -1
- package/dist/general-footer-template/p-2fce3c9f.js +2 -0
- package/dist/general-footer-template/p-330130cd.entry.js +1 -0
- package/dist/general-footer-template/{p-853dab90.entry.js → p-5982a2ca.entry.js} +2 -2
- package/dist/general-footer-template/p-cc02e076.entry.js +1 -0
- package/dist/general-footer-template/{p-4f676786.entry.js → p-e19d7226.entry.js} +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/custom-clock/custom-clock.d.ts +22 -0
- package/dist/types/components/general-footer-template/general-footer-template.d.ts +8 -0
- package/dist/types/components.d.ts +53 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/utils/locale.utils.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +3 -0
- package/package.json +1 -1
- package/dist/general-footer-template/p-26b76a9c.js +0 -2
- package/dist/general-footer-template/p-35120834.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-465b4ca9.js');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* custom rules for component types
|
|
@@ -68,6 +68,9 @@ const componentRules = {
|
|
|
68
68
|
"vendors": {
|
|
69
69
|
component: 'image-list',
|
|
70
70
|
},
|
|
71
|
+
"clock": {
|
|
72
|
+
component: 'custom-clock',
|
|
73
|
+
},
|
|
71
74
|
};
|
|
72
75
|
// This method takes repeater content and changes it to fit an uniform standard for property names in order to be treated in a general case by the footer
|
|
73
76
|
// ex. if helpLinks repeaters use "helpImage" and socialLinks repeaters use "socialImage", both will use "image" after the normalization
|
|
@@ -219,7 +222,7 @@ const GeneralFooterTemplateStyle1 = pariuriPlusVariantCss;
|
|
|
219
222
|
const variantStyle1Css = ":host {\n display: block;\n}\n\n/* $-background-primary: #14202d; */\n\n* {\n font-family: sans-serif;\n}\n\nhtml,\nbody {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\n.footer-section__container {\n color: #777;\n padding: 12px;\n}\n\n/* // FOOTER CONTAINER - only serves to be read as a container */\n.footer-container {\n container-type: inline-size;\n container-name: footerContainer;\n}\n\n\n.footer-grid {\n background-color: #14202d;\n display: grid;\n padding: 0 50px;\n grid-template-rows: repeat(9, auto);\n grid-template-areas: \"one\"\n \"two\"\n \"three\"\n \"four\"\n \"five\"\n \"six\"\n \"seven\";\n}\n\n \n\n.footer-section__container--1 {\n grid-area: one;\n border-bottom: 1px solid #444;\n}\n.footer-section__container--2 {\n position: relative;\n grid-area: two;\n border-bottom: 1px solid #444;\n}\n.footer-section__container--3 {\n grid-area: three;\n border-bottom: 1px solid #444;\n}\n.footer-section__container--4 {\n position: relative;\n grid-area: four;\n border-bottom: 1px solid #444;\n}\n.footer-section__container--5 {\n grid-area: five;\n border-bottom: 1px solid #444;\n}\n.footer-section__container--6 {\n padding-top: 22px;\n grid-area: six;\n}\n.footer-section__container--7 {\n grid-area: seven;\n}\n\n/* // remove paddings */\n.footer-section__container--7 div{\n padding: 0;\n}\n\n\n\n/* // STYLES FOR TABLET / DESKTOP */\n@container (min-width: 750px) {\n .footer-grid {\n background: $-background-primary;\n display: grid;\n grid-template-rows: repeat(5, auto);\n grid-template-columns: 1fr 1fr;\n grid-template-areas: \"one one\"\n \"two three\"\n \"four five\"\n \"six six\"\n \"seven seven\";\n }\n \n \n .footer-section__container--1 {\n grid-area: one;\n }\n .footer-section__container--2 {\n grid-area: two;\n }\n .footer-section__container--3 {\n grid-area: three;\n }\n .footer-section__container--4 {\n grid-area: four;\n }\n .footer-section__container--5 {\n grid-area: five;\n }\n .footer-section__container--6 {\n grid-area: six;\n padding: 0;\n }\n .footer-section__container--7 {\n grid-area: seven;\n padding: 0;\n }\n\n /* VERTICAL BARS */\n .footer-section__container--2:after,\n .footer-section__container--4:after {\n position: absolute;\n content: \"\";\n top: 10%;\n right: 0;\n width: 1px;\n height: 80%;\n background-color: #444;\n }\n\n /* // remove paddings */\n .footer-section__container--6 .image-list__wrapper {\n padding: 22px 0 0 0;\n }\n\n .footer-section__container--7 .custom-content-section__wrapper {\n padding: 0;\n padding-bottom: 22px;\n font-size: 14px;\n }\n\n \n}";
|
|
220
223
|
const GeneralFooterTemplateStyle2 = variantStyle1Css;
|
|
221
224
|
|
|
222
|
-
const generalFooterTemplateCss = ":host {\n display: block;\n}\n\n* {\n font-family: sans-serif;\n}\n\nhtml,\nbody {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\n.footer-section__container {\n color: var(--
|
|
225
|
+
const generalFooterTemplateCss = ":host {\n display: block;\n}\n\n* {\n font-family: sans-serif;\n}\n\nhtml,\nbody {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\n.footer-section__container {\n color: var(--emw--footer-typography, var(--emw--color-white, #FFFFFF));\n padding: 12px;\n}\n\n.footer-container {\n container-type: inline-size;\n container-name: footerContainer;\n}\n\n.footer-grid {\n background-color: var(--emw--footer-color-bg, var(--emw--color-dark-blue, #07072A));\n display: grid;\n grid-template-rows: repeat(9, auto);\n grid-template-areas: \"one\" \"two\" \"three\" \"four\" \"five\" \"six\" \"seven\";\n}\n\n.footer-section__container--1 {\n grid-area: one;\n}\n.footer-section__container--2 {\n grid-area: two;\n}\n.footer-section__container--3 {\n grid-area: three;\n}\n.footer-section__container--4 {\n grid-area: four;\n}\n.footer-section__container--5 {\n grid-area: five;\n}\n.footer-section__container--6 {\n grid-area: six;\n}\n.footer-section__container--7 {\n grid-area: seven;\n}\n\n@container (min-width: 750px) {\n .footer-grid {\n background: var(--emw--footer-color-bg, var(--emw--color-dark-blue, #07072A));\n display: grid;\n grid-template-rows: repeat(7, auto);\n grid-template-columns: 2fr 1fr;\n grid-template-areas: \"one two\" \"three four\" \"five five\" \"six six\" \"seven seven\" \"eight eight\" \"nine nine\";\n }\n .footer-section__container--1 {\n grid-area: one;\n }\n .footer-section__container--2 {\n grid-area: two;\n }\n .footer-section__container--3 {\n grid-area: three;\n }\n .footer-section__container--4 {\n grid-area: four;\n }\n .footer-section__container--5 {\n grid-area: five;\n }\n .footer-section__container--6 {\n grid-area: six;\n }\n .footer-section__container--7 {\n grid-area: seven;\n }\n}";
|
|
223
226
|
const GeneralFooterTemplateStyle3 = generalFooterTemplateCss;
|
|
224
227
|
|
|
225
228
|
const GeneralFooterTemplate = class {
|
|
@@ -260,6 +263,8 @@ const GeneralFooterTemplate = class {
|
|
|
260
263
|
this.postMessageEvent = 'NavigateTo';
|
|
261
264
|
this.clientStyling = '';
|
|
262
265
|
this.clientStylingUrl = '';
|
|
266
|
+
this.translationUrl = '';
|
|
267
|
+
this.clockFormat = 'HH:MM:ss';
|
|
263
268
|
this.hasErrors = false;
|
|
264
269
|
this.stylingAppends = false;
|
|
265
270
|
}
|
|
@@ -309,7 +314,7 @@ const GeneralFooterTemplate = class {
|
|
|
309
314
|
const FooterElement = componentRules[section].component;
|
|
310
315
|
const elementIsRepeater = this.footerContent.repeaters.hasOwnProperty(section);
|
|
311
316
|
const elementIsCustom = this.footerContent.wysiwyg.hasOwnProperty(section);
|
|
312
|
-
return index.h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, "base-url": this.baseUrl, language: this.language, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null });
|
|
317
|
+
return index.h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, "base-url": this.baseUrl, language: this.language, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null, "translation-url": this.translationUrl, "clock-format": this.clockFormat });
|
|
313
318
|
});
|
|
314
319
|
return (index.h("footer", { class: "FooterContainer", ref: el => this.stylingContainer = el }, index.h("div", { class: "FooterGrid customStyle" }, footerSections)));
|
|
315
320
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-465b4ca9.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('general-footer-template.cjs.js', document.baseURI).href));
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["general-footer-template.cjs",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"navigateViaEvent":[513,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasErrors":[32],"stylingAppends":[32]}]]],["link-section-list.cjs",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["image-list.cjs",[[2,"image-list",{"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["custom-clock.cjs",[[2,"custom-clock",{"clockFormat":[513,"clock-format"],"translationUrl":[513,"translation-url"],"language":[513],"timeString":[32]},null,{"translationUrl":["handleNewTranslations"]}]]],["general-footer-template.cjs",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"navigateViaEvent":[513,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clockFormat":[513,"clock-format"],"hasErrors":[32],"stylingAppends":[32]}]]],["link-section-list.cjs",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["image-list.cjs",[[2,"image-list",{"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-465b4ca9.js');
|
|
6
6
|
|
|
7
7
|
const imageListCss = ".sc-image-list-h {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.ImageListContainer.sc-image-list {\n height: 100%;\n}\n.ImageListWrapper.sc-image-list {\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n max-width: 90%;\n margin: auto;\n padding: var(--emw--spacing-large, 20px) 0;\n}\n.ImageListSectionTitle.sc-image-list {\n width: 100%;\n display: flex;\n justify-content: left;\n align-content: center;\n padding: var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 14px) var(--emw--spacing-x-large, 30px);\n color: var(--emw--footer-typography, var(--emw-color-thpography, #fff));\n text-transform: uppercase;\n font-size: 24px;\n font-weight: 100;\n}\n.ImageListLineup.sc-image-list {\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n gap: var(--emw--spacing-x-large, 30px);\n justify-content: left;\n align-items: flex-start;\n padding-left: var(--emw--spacing-large, 20px);\n}\n.ImageListIcon.sc-image-list img.sc-image-list {\n max-height: var(--emw--size-medium-2x-minus, 40px);\n}\n\na.sc-image-list {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n text-decoration: none;\n}\n\na.sc-image-list p.sc-image-list {\n text-decoration: none;\n color: var(--emw--color-gray-100, #666);\n margin: 0;\n}\n\n@container (max-width: 750px) {\n .ImageListSectionTitle.sc-image-list {\n justify-content: center;\n font-size: var(--emw--font-size-medium, 16px);\n color: var(--emw--footer-typography, var(--emw-color-thpography, #fff));\n padding: var(--emw--spacing-large, 20px) 0 var(--emw--spacing-x-large, 30px);\n justify-content: center;\n }\n .ImageListLineup.sc-image-list {\n justify-content: center;\n padding: 0;\n }\n}";
|
|
8
8
|
const ImageListStyle0 = imageListCss;
|
|
@@ -19,7 +19,7 @@ const ImageList = class {
|
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
21
|
var _a, _b, _c;
|
|
22
|
-
return index.h("div", { key: '
|
|
22
|
+
return index.h("div", { key: '904d6e891d4533b61fa5b5d56d94fef1b64e254f', class: "ImageListContainer" }, index.h("div", { key: '2519ef8038b27175a5cede599561d235e29ef1ee', class: "ImageListWrapper" }, index.h("div", { key: '10b2280a935e16b046ee3bac0a34c84740350b30', class: "ImageListSectionTitle" }, (_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.categoryTitle), index.h("div", { key: '11fb15bd73372b2e9bbec9250195a7a93f62e935', class: "ImageListLineup" }, (_c = (_b = this.repeaterContent) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.map(repeater => {
|
|
23
23
|
return (index.h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (index.h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater === null || repeater === void 0 ? void 0 : repeater.url, repeater === null || repeater === void 0 ? void 0 : repeater.target, repeater === null || repeater === void 0 ? void 0 : repeater.isExternalLink) }, index.h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" }), index.h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title))) : (index.h("a", { href: (repeater === null || repeater === void 0 ? void 0 : repeater.url) || 'javascript:void(0)', target: (repeater === null || repeater === void 0 ? void 0 : repeater.target) || '_parent' }, index.h("div", { class: "ImageListPositioner" }, index.h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" })), index.h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title)))));
|
|
24
24
|
}))));
|
|
25
25
|
}
|
|
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'general-footer-template';
|
|
24
|
-
const BUILD = /* general-footer-template */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad:
|
|
24
|
+
const BUILD = /* general-footer-template */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -75,6 +75,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
75
75
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
76
76
|
/* webpackMode: "lazy" */
|
|
77
77
|
'./general-footer-template.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
|
+
case 'custom-clock.cjs':
|
|
79
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
80
|
+
/* webpackMode: "lazy" */
|
|
81
|
+
'./custom-clock.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
82
|
case 'custom-content-section.cjs':
|
|
79
83
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
80
84
|
/* webpackMode: "lazy" */
|
|
@@ -395,17 +399,30 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
395
399
|
if (nonce != null) {
|
|
396
400
|
styleElm.setAttribute("nonce", nonce);
|
|
397
401
|
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
402
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
403
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
404
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
405
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
406
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
407
|
+
} else if ("host" in styleContainerNode) {
|
|
408
|
+
if (supportsConstructableStylesheets) {
|
|
409
|
+
const stylesheet = new CSSStyleSheet();
|
|
410
|
+
stylesheet.replaceSync(style);
|
|
411
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
412
|
+
} else {
|
|
413
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
414
|
+
if (existingStyleContainer) {
|
|
415
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
416
|
+
} else {
|
|
417
|
+
styleContainerNode.prepend(styleElm);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
} else {
|
|
421
|
+
styleContainerNode.append(styleElm);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
425
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
409
426
|
}
|
|
410
427
|
}
|
|
411
428
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
@@ -501,7 +518,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
501
518
|
if (memberName === "list") {
|
|
502
519
|
isProp = false;
|
|
503
520
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
504
|
-
elm
|
|
521
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
522
|
+
elm[memberName] = n;
|
|
523
|
+
} else {
|
|
524
|
+
elm.setAttribute(memberName, n);
|
|
525
|
+
}
|
|
505
526
|
}
|
|
506
527
|
} else {
|
|
507
528
|
elm[memberName] = newValue;
|
|
@@ -773,7 +794,7 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
|
773
794
|
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
774
795
|
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
775
796
|
if (scopeIds.size) {
|
|
776
|
-
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] =
|
|
797
|
+
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
|
|
777
798
|
if (element["s-ol"] || iterateChildNodes) {
|
|
778
799
|
for (const childNode of Array.from(element.childNodes)) {
|
|
779
800
|
updateElementScopeIds(childNode, element, true);
|
|
@@ -918,6 +939,9 @@ var postUpdateComponent = (hostRef) => {
|
|
|
918
939
|
{
|
|
919
940
|
addHydratedFlag(elm);
|
|
920
941
|
}
|
|
942
|
+
{
|
|
943
|
+
safeCall(instance, "componentDidLoad");
|
|
944
|
+
}
|
|
921
945
|
endPostUpdate();
|
|
922
946
|
{
|
|
923
947
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -969,6 +993,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
969
993
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
|
970
994
|
);
|
|
971
995
|
}
|
|
996
|
+
const elm = hostRef.$hostElement$ ;
|
|
972
997
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
973
998
|
const flags = hostRef.$flags$;
|
|
974
999
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -978,6 +1003,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
978
1003
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
979
1004
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
980
1005
|
if (instance) {
|
|
1006
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1007
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1008
|
+
if (watchMethods) {
|
|
1009
|
+
watchMethods.map((watchMethodName) => {
|
|
1010
|
+
try {
|
|
1011
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1012
|
+
} catch (e) {
|
|
1013
|
+
consoleError(e, elm);
|
|
1014
|
+
}
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
981
1018
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
982
1019
|
scheduleUpdate(hostRef, false);
|
|
983
1020
|
}
|
|
@@ -989,7 +1026,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
989
1026
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
990
1027
|
var _a, _b;
|
|
991
1028
|
const prototype = Cstr.prototype;
|
|
992
|
-
if (cmpMeta.$members$ ||
|
|
1029
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1030
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1031
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1032
|
+
}
|
|
993
1033
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
994
1034
|
members.map(([memberName, [memberFlags]]) => {
|
|
995
1035
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
@@ -1072,6 +1112,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1072
1112
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1073
1113
|
}
|
|
1074
1114
|
if (!Cstr.isProxied) {
|
|
1115
|
+
{
|
|
1116
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1117
|
+
}
|
|
1075
1118
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1076
1119
|
Cstr.isProxied = true;
|
|
1077
1120
|
}
|
|
@@ -1087,6 +1130,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1087
1130
|
{
|
|
1088
1131
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1089
1132
|
}
|
|
1133
|
+
{
|
|
1134
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1135
|
+
}
|
|
1090
1136
|
endNewInstance();
|
|
1091
1137
|
} else {
|
|
1092
1138
|
Cstr = elm.constructor;
|
|
@@ -1155,12 +1201,17 @@ var connectedCallback = (elm) => {
|
|
|
1155
1201
|
}
|
|
1156
1202
|
};
|
|
1157
1203
|
var disconnectInstance = (instance) => {
|
|
1204
|
+
{
|
|
1205
|
+
safeCall(instance, "disconnectedCallback");
|
|
1206
|
+
}
|
|
1158
1207
|
};
|
|
1159
1208
|
var disconnectedCallback = async (elm) => {
|
|
1160
1209
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1161
1210
|
const hostRef = getHostRef(elm);
|
|
1162
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1163
|
-
hostRef.$
|
|
1211
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1212
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1213
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1214
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1164
1215
|
}
|
|
1165
1216
|
}
|
|
1166
1217
|
};
|
|
@@ -1183,6 +1234,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1183
1234
|
let hasSlotRelocation = false;
|
|
1184
1235
|
lazyBundles.map((lazyBundle) => {
|
|
1185
1236
|
lazyBundle[1].map((compactMeta) => {
|
|
1237
|
+
var _a2;
|
|
1186
1238
|
const cmpMeta = {
|
|
1187
1239
|
$flags$: compactMeta[0],
|
|
1188
1240
|
$tagName$: compactMeta[1],
|
|
@@ -1198,6 +1250,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1198
1250
|
{
|
|
1199
1251
|
cmpMeta.$attrsToReflect$ = [];
|
|
1200
1252
|
}
|
|
1253
|
+
{
|
|
1254
|
+
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1255
|
+
}
|
|
1201
1256
|
const tagName = cmpMeta.$tagName$;
|
|
1202
1257
|
const HostElement = class extends HTMLElement {
|
|
1203
1258
|
// StencilLazyHost
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-465b4ca9.js');
|
|
6
6
|
|
|
7
7
|
const linkSectionListCss = ":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.LinkSectionListContainer {\n display: block;\n container-type: inline-size;\n}\n.LinkSectionListWrapper {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: var(--emw--font-weight-semibold, 500);\n text-transform: uppercase;\n}\n.LinkSectionListLink {\n font-weight: var(--emw--font-weight-light, 300);\n}\n\nul {\n width: fit-content;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: var(--emw--spacing-medium, 16px);\n padding-left: var(--emw--spacing-small-minus, 10px);\n font-size: var(--emw--font-size-small, 16px);\n text-transform: uppercase;\n}\nul li {\n list-style: disc;\n display: flex;\n align-items: center;\n padding-left: 25px;\n position: relative;\n}\nul li::before {\n content: \"\";\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 8px;\n height: 8px;\n background-color: var(--emw--footer-color-primary, var(--emw--color-primary, #22B04E));\n border-radius: 50%;\n}\nul li .LinkSectionListLinkText {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\nul li .LinkSectionListLinkText span {\n text-align: center;\n cursor: pointer;\n}\nul li .LinkSectionListLinkText img.LinkSectionIcon {\n position: relative;\n height: 25px;\n padding: 0 5px;\n}\n\na {\n color: inherit;\n}\n\n@container (min-width: 280px) {\n .LinkSectionListWrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n@container (min-width: 650px) {\n .LinkSectionListWrapper {\n grid-gap: 2rem;\n grid-template-columns: repeat(4, 1fr);\n grid-template-rows: 1fr;\n }\n}";
|
|
8
8
|
const LinkSectionListStyle0 = linkSectionListCss;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-465b4ca9.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["general-footer-template.cjs",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"navigateViaEvent":[513,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasErrors":[32],"stylingAppends":[32]}]]],["link-section-list.cjs",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["image-list.cjs",[[2,"image-list",{"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["custom-clock.cjs",[[2,"custom-clock",{"clockFormat":[513,"clock-format"],"translationUrl":[513,"translation-url"],"language":[513],"timeString":[32]},null,{"translationUrl":["handleNewTranslations"]}]]],["general-footer-template.cjs",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"navigateViaEvent":[513,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clockFormat":[513,"clock-format"],"hasErrors":[32],"stylingAppends":[32]}]]],["link-section-list.cjs",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["image-list.cjs",[[2,"image-list",{"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
3
|
"components/general-footer-template/general-footer-template.js",
|
|
4
|
+
"components/custom-clock/custom-clock.js",
|
|
4
5
|
"components/custom-content-section/custom-content-section.js",
|
|
5
6
|
"components/image-list/image-list.js",
|
|
6
7
|
"components/link-section-list/link-section-list.js"
|
|
7
8
|
],
|
|
8
9
|
"compiler": {
|
|
9
10
|
"name": "@stencil/core",
|
|
10
|
-
"version": "4.
|
|
11
|
-
"typescriptVersion": "5.5.
|
|
11
|
+
"version": "4.22.3",
|
|
12
|
+
"typescriptVersion": "5.5.4"
|
|
12
13
|
},
|
|
13
14
|
"collections": [],
|
|
14
15
|
"bundles": []
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { translate, getTranslations } from "../../utils/locale.utils";
|
|
3
|
+
import { format } from "date-fns";
|
|
4
|
+
export class CustomClock {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.startClock = () => {
|
|
7
|
+
this.intervalId = setInterval(() => {
|
|
8
|
+
this.timeString = format(new Date(), this.clockFormat);
|
|
9
|
+
}, 1000);
|
|
10
|
+
};
|
|
11
|
+
this.clockFormat = 'hh:MM a';
|
|
12
|
+
this.translationUrl = '';
|
|
13
|
+
this.language = 'en';
|
|
14
|
+
this.timeString = '';
|
|
15
|
+
}
|
|
16
|
+
handleNewTranslations() {
|
|
17
|
+
getTranslations(this.translationUrl);
|
|
18
|
+
}
|
|
19
|
+
async componentWillLoad() {
|
|
20
|
+
if (this.translationUrl.length > 2) {
|
|
21
|
+
await getTranslations(this.translationUrl);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
componentDidLoad() {
|
|
25
|
+
this.startClock();
|
|
26
|
+
}
|
|
27
|
+
disconnectedCallback() {
|
|
28
|
+
clearInterval(this.intervalId);
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return (h("div", { key: '35cc9ba979bdc24b138d98d94f5a68139b126634', class: "CustomClockContainer" }, h("p", { key: '49654823c681d720bdb2beca7516395afadfe123' }, translate('currentTime', this.language), ": ", this.timeString)));
|
|
32
|
+
}
|
|
33
|
+
static get is() { return "custom-clock"; }
|
|
34
|
+
static get encapsulation() { return "scoped"; }
|
|
35
|
+
static get originalStyleUrls() {
|
|
36
|
+
return {
|
|
37
|
+
"$": ["custom-clock.scss"]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
static get styleUrls() {
|
|
41
|
+
return {
|
|
42
|
+
"$": ["custom-clock.css"]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get properties() {
|
|
46
|
+
return {
|
|
47
|
+
"clockFormat": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "string",
|
|
52
|
+
"resolved": "string",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": false,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": "clockformat"
|
|
60
|
+
},
|
|
61
|
+
"attribute": "clock-format",
|
|
62
|
+
"reflect": true,
|
|
63
|
+
"defaultValue": "'hh:MM a'"
|
|
64
|
+
},
|
|
65
|
+
"translationUrl": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"mutable": false,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "string",
|
|
70
|
+
"resolved": "string",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": false,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": "custom translation by href"
|
|
78
|
+
},
|
|
79
|
+
"attribute": "translation-url",
|
|
80
|
+
"reflect": true,
|
|
81
|
+
"defaultValue": "''"
|
|
82
|
+
},
|
|
83
|
+
"language": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "string",
|
|
88
|
+
"resolved": "string",
|
|
89
|
+
"references": {}
|
|
90
|
+
},
|
|
91
|
+
"required": false,
|
|
92
|
+
"optional": false,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": "language"
|
|
96
|
+
},
|
|
97
|
+
"attribute": "language",
|
|
98
|
+
"reflect": true,
|
|
99
|
+
"defaultValue": "'en'"
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
static get states() {
|
|
104
|
+
return {
|
|
105
|
+
"timeString": {}
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
static get watchers() {
|
|
109
|
+
return [{
|
|
110
|
+
"propName": "translationUrl",
|
|
111
|
+
"methodName": "handleNewTranslations"
|
|
112
|
+
}];
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -14,7 +14,7 @@ export class CustomContentSection {
|
|
|
14
14
|
img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading']
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
return h("div", { key: '
|
|
17
|
+
return h("div", { key: '894fdc79eb310d5a7cfde48445afd3d1d464359e', class: "CustomContentSectionContainer" }, h("div", { key: 'cfecce550a4e9b6b692ff12de96262e1413f8f2b', class: "CustomContentSectionWrapper" }, h("div", { key: '1e76edcbb408a184848bda0c86a99d2467e3e081', class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "custom-content-section"; }
|
|
20
20
|
static get encapsulation() { return "scoped"; }
|
|
@@ -14,7 +14,7 @@ body {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.footer-section__container {
|
|
17
|
-
color: var(--
|
|
17
|
+
color: var(--emw--footer-typography, var(--emw--color-white, #FFFFFF));
|
|
18
18
|
padding: 12px;
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -24,7 +24,7 @@ body {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.footer-grid {
|
|
27
|
-
background-color: var(--
|
|
27
|
+
background-color: var(--emw--footer-color-bg, var(--emw--color-dark-blue, #07072A));
|
|
28
28
|
display: grid;
|
|
29
29
|
grid-template-rows: repeat(9, auto);
|
|
30
30
|
grid-template-areas: "one" "two" "three" "four" "five" "six" "seven";
|
|
@@ -54,7 +54,7 @@ body {
|
|
|
54
54
|
|
|
55
55
|
@container (min-width: 750px) {
|
|
56
56
|
.footer-grid {
|
|
57
|
-
background: var(--
|
|
57
|
+
background: var(--emw--footer-color-bg, var(--emw--color-dark-blue, #07072A));
|
|
58
58
|
display: grid;
|
|
59
59
|
grid-template-rows: repeat(7, auto);
|
|
60
60
|
grid-template-columns: 2fr 1fr;
|
|
@@ -37,6 +37,8 @@ export class GeneralFooterTemplate {
|
|
|
37
37
|
this.postMessageEvent = 'NavigateTo';
|
|
38
38
|
this.clientStyling = '';
|
|
39
39
|
this.clientStylingUrl = '';
|
|
40
|
+
this.translationUrl = '';
|
|
41
|
+
this.clockFormat = 'HH:MM:ss';
|
|
40
42
|
this.hasErrors = false;
|
|
41
43
|
this.stylingAppends = false;
|
|
42
44
|
}
|
|
@@ -86,7 +88,7 @@ export class GeneralFooterTemplate {
|
|
|
86
88
|
const FooterElement = componentRules[section].component;
|
|
87
89
|
const elementIsRepeater = this.footerContent.repeaters.hasOwnProperty(section);
|
|
88
90
|
const elementIsCustom = this.footerContent.wysiwyg.hasOwnProperty(section);
|
|
89
|
-
return h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, "base-url": this.baseUrl, language: this.language, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null });
|
|
91
|
+
return h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, "base-url": this.baseUrl, language: this.language, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null, "translation-url": this.translationUrl, "clock-format": this.clockFormat });
|
|
90
92
|
});
|
|
91
93
|
return (h("footer", { class: "FooterContainer", ref: el => this.stylingContainer = el }, h("div", { class: "FooterGrid customStyle" }, footerSections)));
|
|
92
94
|
}
|
|
@@ -314,6 +316,42 @@ export class GeneralFooterTemplate {
|
|
|
314
316
|
"attribute": "client-styling-url",
|
|
315
317
|
"reflect": true,
|
|
316
318
|
"defaultValue": "''"
|
|
319
|
+
},
|
|
320
|
+
"translationUrl": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"mutable": false,
|
|
323
|
+
"complexType": {
|
|
324
|
+
"original": "string",
|
|
325
|
+
"resolved": "string",
|
|
326
|
+
"references": {}
|
|
327
|
+
},
|
|
328
|
+
"required": false,
|
|
329
|
+
"optional": false,
|
|
330
|
+
"docs": {
|
|
331
|
+
"tags": [],
|
|
332
|
+
"text": "custom translation by href"
|
|
333
|
+
},
|
|
334
|
+
"attribute": "translation-url",
|
|
335
|
+
"reflect": true,
|
|
336
|
+
"defaultValue": "''"
|
|
337
|
+
},
|
|
338
|
+
"clockFormat": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"mutable": false,
|
|
341
|
+
"complexType": {
|
|
342
|
+
"original": "string",
|
|
343
|
+
"resolved": "string",
|
|
344
|
+
"references": {}
|
|
345
|
+
},
|
|
346
|
+
"required": false,
|
|
347
|
+
"optional": false,
|
|
348
|
+
"docs": {
|
|
349
|
+
"tags": [],
|
|
350
|
+
"text": "clockformat"
|
|
351
|
+
},
|
|
352
|
+
"attribute": "clock-format",
|
|
353
|
+
"reflect": true,
|
|
354
|
+
"defaultValue": "'HH:MM:ss'"
|
|
317
355
|
}
|
|
318
356
|
};
|
|
319
357
|
}
|
|
@@ -10,7 +10,7 @@ export class ImageList {
|
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
12
|
var _a, _b, _c;
|
|
13
|
-
return h("div", { key: '
|
|
13
|
+
return h("div", { key: '904d6e891d4533b61fa5b5d56d94fef1b64e254f', class: "ImageListContainer" }, h("div", { key: '2519ef8038b27175a5cede599561d235e29ef1ee', class: "ImageListWrapper" }, h("div", { key: '10b2280a935e16b046ee3bac0a34c84740350b30', class: "ImageListSectionTitle" }, (_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.categoryTitle), h("div", { key: '11fb15bd73372b2e9bbec9250195a7a93f62e935', class: "ImageListLineup" }, (_c = (_b = this.repeaterContent) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.map(repeater => {
|
|
14
14
|
return (h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater === null || repeater === void 0 ? void 0 : repeater.url, repeater === null || repeater === void 0 ? void 0 : repeater.target, repeater === null || repeater === void 0 ? void 0 : repeater.isExternalLink) }, h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" }), h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title))) : (h("a", { href: (repeater === null || repeater === void 0 ? void 0 : repeater.url) || 'javascript:void(0)', target: (repeater === null || repeater === void 0 ? void 0 : repeater.target) || '_parent' }, h("div", { class: "ImageListPositioner" }, h("img", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "" })), h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title)))));
|
|
15
15
|
}))));
|
|
16
16
|
}
|