@nlo/frontend-common
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -22,2 +22,6 @@ declare const _sfc_main: import("vue").DefineComponent<{ | ||
}; | ||
portalDomain: { | ||
type: StringConstructor; | ||
required: true; | ||
}; | ||
}, { | ||
@@ -46,3 +50,7 @@ props: any; | ||
}; | ||
portalDomain: { | ||
type: StringConstructor; | ||
required: true; | ||
}; | ||
}>>, {}>; | ||
export default _sfc_main; |
@@ -1,1 +0,1 @@ | ||
(function(a,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(a=typeof globalThis<"u"?globalThis:a||self,n(a.index={},a.Vue))})(this,function(a,n){"use strict";class u{constructor(e){this.allowConsole=e}log(e,...r){this.allowConsole&&console.log(e,...r)}}const p=["base","meta","link","style","script","noscript"];let m;const _=()=>m;function h(t){return typeof t=="function"?t():n.unref(t)}function l(t,e=""){if(t instanceof Promise)return t;const r=h(t);if(!t||!r)return r;if(Array.isArray(r))return r.map(o=>l(o,e));if(typeof r=="object"){let o=!1;const s=Object.fromEntries(Object.entries(r).map(([c,i])=>c==="titleTemplate"||c.startsWith("on")?[c,n.unref(i)]:((typeof i=="function"||n.isRef(i))&&(o=!0),[c,l(i,c)])));return o&&p.includes(String(e))&&(s._dynamic=!0),s}return r}n.version.startsWith("3");const y=typeof window<"u",g="usehead";function d(){return n.getCurrentInstance()&&n.inject(g)||_()}function v(t,e={}){const r=d(),o=n.ref({});n.watchEffect(()=>{o.value=l(t)});const s=r.push(o.value,e);return n.watch(o,i=>s.patch(i)),n.getCurrentInstance()&&n.onBeforeUnmount(()=>{s.dispose()}),s}function H(t,e={}){return d().push(t,e)}function O(t,e={}){var o;const r=d();if(r){const s=y||!!((o=r.resolvedOptions)!=null&&o.document);return e.mode==="server"&&s||e.mode==="client"&&!s?void 0:s?v(t,e):H(t,e)}}const j={id:"nlportal",class:"nlportalHeader"},w=n.defineComponent({__name:"portal-header",props:{vertical:null,themeOverride:null,scriptBaseUrl:null,navigationItems:null,footer:null},setup(t){const e=t;return O({script:[{"data-menu-structure":JSON.stringify(e.navigationItems),id:"nlportal-header-script","data-portal-domain":"nedwin.sand-storm.nl","data-vertical":e.vertical,"data-regsrc":"50001","data-search-url":"/zoek?q=","data-theme-override":e.themeOverride,"data-footer":JSON.stringify(e.footer),src:`${e.scriptBaseUrl}/statics/nlportal-header.js`}]}),(r,o)=>(n.openBlock(),n.createElementBlock("div",j))}}),x="",f=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},B=f(w,[["__scopeId","data-v-a435a505"]]),b={},I={id:"nlportal-footer"};function S(t,e){return n.openBlock(),n.createElementBlock("footer",I)}const U=f(b,[["render",S]]);a.LogService=u,a.PortalFooter=U,a.PortalHeader=B,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})}); | ||
(function(a,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(a=typeof globalThis<"u"?globalThis:a||self,n(a.index={},a.Vue))})(this,function(a,n){"use strict";class u{constructor(e){this.allowConsole=e}log(e,...r){this.allowConsole&&console.log(e,...r)}}const p=["base","meta","link","style","script","noscript"];let m;const _=()=>m;function h(t){return typeof t=="function"?t():n.unref(t)}function l(t,e=""){if(t instanceof Promise)return t;const r=h(t);if(!t||!r)return r;if(Array.isArray(r))return r.map(o=>l(o,e));if(typeof r=="object"){let o=!1;const s=Object.fromEntries(Object.entries(r).map(([c,i])=>c==="titleTemplate"||c.startsWith("on")?[c,n.unref(i)]:((typeof i=="function"||n.isRef(i))&&(o=!0),[c,l(i,c)])));return o&&p.includes(String(e))&&(s._dynamic=!0),s}return r}n.version.startsWith("3");const y=typeof window<"u",g="usehead";function d(){return n.getCurrentInstance()&&n.inject(g)||_()}function v(t,e={}){const r=d(),o=n.ref({});n.watchEffect(()=>{o.value=l(t)});const s=r.push(o.value,e);return n.watch(o,i=>s.patch(i)),n.getCurrentInstance()&&n.onBeforeUnmount(()=>{s.dispose()}),s}function H(t,e={}){return d().push(t,e)}function O(t,e={}){var o;const r=d();if(r){const s=y||!!((o=r.resolvedOptions)!=null&&o.document);return e.mode==="server"&&s||e.mode==="client"&&!s?void 0:s?v(t,e):H(t,e)}}const j={id:"nlportal",class:"nlportalHeader"},B=n.defineComponent({__name:"portal-header",props:{vertical:null,themeOverride:null,scriptBaseUrl:null,navigationItems:null,footer:null,portalDomain:null},setup(t){const e=t;return O({script:[{"data-menu-structure":JSON.stringify(e.navigationItems),id:"nlportal-header-script","data-portal-domain":e.portalDomain,"data-vertical":e.vertical,"data-regsrc":"50001","data-search-url":"/zoek?q=","data-theme-override":e.themeOverride,"data-footer":JSON.stringify(e.footer),src:`${e.scriptBaseUrl}/statics/nlportal-header.js`}]}),(r,o)=>(n.openBlock(),n.createElementBlock("div",j))}}),x="",f=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},b=f(B,[["__scopeId","data-v-58037496"]]),w={},I={id:"nlportal-footer"};function S(t,e){return n.openBlock(),n.createElementBlock("footer",I)}const U=f(w,[["render",S]]);a.LogService=u,a.PortalFooter=U,a.PortalHeader=b,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})}); |
{ | ||
"name": "@nlo/frontend-common", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Collection of utilities for creating consistent front-ends between verticals", | ||
@@ -54,3 +54,3 @@ "main": "dist/index.umd.js", | ||
}, | ||
"gitHead": "6474312593f243397589b758a90aee73ac9dff9a" | ||
"gitHead": "11232cdbc9e016079161c73d18c45efad53500ae" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12518
281