@charlietango/ddb-widget
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -28,5 +28,5 @@ function isMobile() { | ||
} | ||
const headerHeight = 60; | ||
const headerHeight = 42; | ||
const itemHeight = 110; | ||
const margins = 40; | ||
const margins = 45; | ||
const maxHeight = 650; | ||
@@ -33,0 +33,0 @@ return this.numberOfItems >= 5 ? `${maxHeight}px` : `${this.numberOfItems * itemHeight + headerHeight + margins}px`; |
/*! | ||
* Built with http://stenciljs.com | ||
* 2018-09-22T15:06:19 | ||
* 2018-09-23T13:00:56 | ||
*/ | ||
!function(e,t,r,i,n,o,s,d,c,a,l,u,p,g){for((l=e.DdbWidget=e.DdbWidget||{}).components=c,(p=c.map(function(e){return e[0]})).length&&((u=t.createElement("style")).innerHTML=p.join()+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles",""),p=t.head.querySelector("meta[charset]"),t.head.insertBefore(u,p?p.nextSibling:t.head.firstChild)),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("DdbWidget"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var i=e["s-apps"],n=0,o=0;o<i.length;o++)if(e[i[o]].componentOnReady){if(e[i[o]].componentOnReady(t,r))return;n++}if(n<i.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,a),n=n||l.resourcesUrl,u=(p=t.querySelectorAll("script")).length-1;u>=0&&!(g=p[u]).src&&!g.hasAttribute("data-resources-url");u--);p=g.getAttribute("data-resources-url"),!n&&p&&(n=p),!n&&g.src&&(n=(p=g.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"ddb-widget/"),u=t.createElement("script"),function(e,t,r,i){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,u)?u.src=n+"ddb-widget.twb6lpzt.js":(u.src=n+"ddb-widget.biglrsa8.js",u.setAttribute("type","module"),u.setAttribute("crossorigin",!0)),u.setAttribute("data-resources-url",n),u.setAttribute("data-namespace","ddb-widget"),t.head.appendChild(u)}(window,document,0,0,"https://unpkg.com/@charlietango/ddb-widget/dist/ddb-widget/",0,0,0,[["ddb-widget","fqgrowz4",1,[["isMobile",16],["isOpen",16],["widgetData",16]],1],["link-list","fqgrowz4",1,[["color",1,0,1,2],["links",1]],1],["widget-launcher","fqgrowz4",1,[["color",1,0,1,2],["isExpanded",16],["isOpen",1,0,"is-open",4],["isReady",16],["logo",1],["promoImage",1],["promoText",1],["settings",1],["usePromoImage",1,0,"use-promo-image",4]],1],["widget-window","fqgrowz4",1,[["logo",1],["numberOfItems",1,0,"number-of-items",8],["onCloseClick",1]],1]],HTMLElement.prototype); | ||
!function(e,t,i,n,r,o,s,d,c,a,l,u,m,p){for((l=e.DdbWidget=e.DdbWidget||{}).components=c,(m=c.map(function(e){return e[0]})).length&&((u=t.createElement("style")).innerHTML=m.join()+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles",""),m=t.head.querySelector("meta[charset]"),t.head.insertBefore(u,m?m.nextSibling:t.head.firstChild)),function(e,t,i){(e["s-apps"]=e["s-apps"]||[]).push("DdbWidget"),i.componentOnReady||(i.componentOnReady=function(){var t=this;function i(i){if(t.nodeName.indexOf("-")>0){for(var n=e["s-apps"],r=0,o=0;o<n.length;o++)if(e[n[o]].componentOnReady){if(e[n[o]].componentOnReady(t,i))return;r++}if(r<n.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,i])}i(null)}return e.Promise?new e.Promise(i):{then:i}})}(e,0,a),r=r||l.resourcesUrl,u=(m=t.querySelectorAll("script")).length-1;u>=0&&!(p=m[u]).src&&!p.hasAttribute("data-resources-url");u--);m=p.getAttribute("data-resources-url"),!r&&m&&(r=m),!r&&p.src&&(r=(m=p.src.split("/").slice(0,-1)).join("/")+(m.length?"/":"")+"ddb-widget/"),u=t.createElement("script"),function(e,t,i,n){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in i)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,u)?u.src=r+"ddb-widget.twb6lpzt.js":(u.src=r+"ddb-widget.biglrsa8.js",u.setAttribute("type","module"),u.setAttribute("crossorigin",!0)),u.setAttribute("data-resources-url",r),u.setAttribute("data-namespace","ddb-widget"),t.head.appendChild(u)}(window,document,0,0,"https://unpkg.com/@charlietango/ddb-widget/dist/ddb-widget/",0,0,0,[["ddb-widget","mhcxm8da",1,[["isMobile",16],["isOpen",16],["widgetData",16]],1],["link-list","mhcxm8da",1,[["color",1,0,1,2],["links",1]],1],["widget-launcher","mhcxm8da",1,[["color",1,0,1,2],["isExpanded",16],["isOpen",1,0,"is-open",4],["isReady",16],["logo",1],["promoImage",1],["promoText",1],["settings",1],["usePromoImage",1,0,"use-promo-image",4]],1],["widget-window","mhcxm8da",1,[["logo",1],["numberOfItems",1,0,"number-of-items",8],["onCloseClick",1]],1]],HTMLElement.prototype); |
// DdbWidget: Host Data, ES Module/es2017 Target | ||
export const DdbWidget = ["ddb-widget","fqgrowz4",1,[["isMobile",16],["isOpen",16],["widgetData",16]],1]; | ||
export const LinkList = ["link-list","fqgrowz4",1,[["color",1,0,1,2],["links",1]],1]; | ||
export const WidgetLauncher = ["widget-launcher","fqgrowz4",1,[["color",1,0,1,2],["isExpanded",16],["isOpen",1,0,"is-open",4],["isReady",16],["logo",1],["promoImage",1],["promoText",1],["settings",1],["usePromoImage",1,0,"use-promo-image",4]],1]; | ||
export const WidgetWindow = ["widget-window","fqgrowz4",1,[["logo",1],["numberOfItems",1,0,"number-of-items",8],["onCloseClick",1]],1]; | ||
export const DdbWidget = ["ddb-widget","mhcxm8da",1,[["isMobile",16],["isOpen",16],["widgetData",16]],1]; | ||
export const LinkList = ["link-list","mhcxm8da",1,[["color",1,0,1,2],["links",1]],1]; | ||
export const WidgetLauncher = ["widget-launcher","mhcxm8da",1,[["color",1,0,1,2],["isExpanded",16],["isOpen",1,0,"is-open",4],["isReady",16],["logo",1],["promoImage",1],["promoText",1],["settings",1],["usePromoImage",1,0,"use-promo-image",4]],1]; | ||
export const WidgetWindow = ["widget-window","mhcxm8da",1,[["logo",1],["numberOfItems",1,0,"number-of-items",8],["onCloseClick",1]],1]; |
// DdbWidget: Host Data, ES Module/es5 Target | ||
export var DdbWidget = ["ddb-widget","fqgrowz4",1,[["isMobile",16],["isOpen",16],["widgetData",16]],1]; | ||
export var LinkList = ["link-list","fqgrowz4",1,[["color",1,0,1,2],["links",1]],1]; | ||
export var WidgetLauncher = ["widget-launcher","fqgrowz4",1,[["color",1,0,1,2],["isExpanded",16],["isOpen",1,0,"is-open",4],["isReady",16],["logo",1],["promoImage",1],["promoText",1],["settings",1],["usePromoImage",1,0,"use-promo-image",4]],1]; | ||
export var WidgetWindow = ["widget-window","fqgrowz4",1,[["logo",1],["numberOfItems",1,0,"number-of-items",8],["onCloseClick",1]],1]; | ||
export var DdbWidget = ["ddb-widget","mhcxm8da",1,[["isMobile",16],["isOpen",16],["widgetData",16]],1]; | ||
export var LinkList = ["link-list","mhcxm8da",1,[["color",1,0,1,2],["links",1]],1]; | ||
export var WidgetLauncher = ["widget-launcher","mhcxm8da",1,[["color",1,0,1,2],["isExpanded",16],["isOpen",1,0,"is-open",4],["isReady",16],["logo",1],["promoImage",1],["promoText",1],["settings",1],["usePromoImage",1,0,"use-promo-image",4]],1]; | ||
export var WidgetWindow = ["widget-window","mhcxm8da",1,[["logo",1],["numberOfItems",1,0,"number-of-items",8],["onCloseClick",1]],1]; |
{ | ||
"name": "@charlietango/ddb-widget", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Web Component built with Stencil by Charlie Tango", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
497404
5313