Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@axa-ch/accordion

Package Overview
Dependencies
Maintainers
38
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axa-ch/accordion - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

dist/index.js

@@ -79,2 +79,2 @@ var window=function(){"use strict";

</div>
`}}return((t,e,i)=>{const s="string"==typeof e&&e;let n="";t.forEach((t=>{const o=t instanceof HTMLElement?t.constructor:t,{tagName:r}=o,l=!s&&e[r];if(l){if(!window.customElements.get(r)&&o.versions)throw Error(`'versions' is a reserved class property, but was found in ${r}'s class`);o.versions=l,rt(r,o)}let{versions:a}=o;!a&&i&&(a=e[i.constructor.tagName],a[r]=Object.values(a)[0]);const c=s||a[r];n=((t,e)=>{return`${t}-${i=e,`${i}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var i})(r,c),rt(n,class extends o{})}))})([ut],{"axa-accordion":{"axa-accordion":"1.2.0"}}),ut}();
`}}return((t,e,i)=>{const s="string"==typeof e&&e;let n="";t.forEach((t=>{const o=t instanceof HTMLElement?t.constructor:t,{tagName:r}=o,l=!s&&e[r];if(l){if(!window.customElements.get(r)&&o.versions)throw Error(`'versions' is a reserved class property, but was found in ${r}'s class`);o.versions=l,rt(r,o)}let{versions:a}=o;!a&&i&&(a=e[i.constructor.tagName],a[r]=Object.values(a)[0]);const c=s||a[r];n=((t,e)=>{return`${t}-${i=e,`${i}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var i})(r,c),rt(n,class extends o{})}))})([ut],{"axa-accordion":{"axa-accordion":"1.2.1"}}),ut}();

@@ -40,2 +40,2 @@ import{LitElement as n,css as t,unsafeCSS as e,html as o}from"lit";import{unsafeHTML as i}from"lit/directives/unsafe-html.js";import r from"@axa-ch/materials/icons/material-design/expand_less.svg";import a from"@axa-ch/materials/icons/material-design/expand_more.svg";import{classMap as s}from"lit/directives/class-map.js";var c=(n,t)=>{const e=n.toLowerCase();return window.customElements.get(e)||window.customElements.define(e,t),e};const l=n=>!(null==n),d=new Map;[[String,""],[Boolean,!1],[Object,{}],[Array,[]],[Number,0],[Function,()=>{}]].forEach((([n,t])=>{d.set(n,t)}));const m=()=>{},p=n=>{const{constructor:{properties:t}}=n;Object.keys(t).forEach((e=>{const o=t[e],{type:i,converter:r,defaultValue:a}=o;if(!i){if(!r)throw new Error(`<${n.nodeName}> property "${e}" is missing a type!`);return}let s=n[e];l(s)||(s=i===Boolean?n.hasAttribute(e):n.getAttribute(e),l(s)?n[e]=((n,t)=>t===Number?parseFloat(n):t===Function?m:t===Array||t===Object?JSON.parse(n):n)(s,i):void 0===a&&"defaultValue"in o||(n[e]="defaultValue"in o?a:d.get(i)))}))};var g=(n="")=>`${n}${Math.random().toString(36).slice(2)}`;class u extends n{static get tagName(){return"axa-accordion"}static get styles(){return t`

</div>
`}}((n,t,e)=>{const o="string"==typeof t&&t;let i="";n.forEach((n=>{const r=n instanceof HTMLElement?n.constructor:n,{tagName:a}=r,s=!o&&t[a];if(s){if(!window.customElements.get(a)&&r.versions)throw Error(`'versions' is a reserved class property, but was found in ${a}'s class`);r.versions=s,c(a,r)}let{versions:l}=r;!l&&e&&(l=t[e.constructor.tagName],l[a]=Object.values(l)[0]);const d=o||l[a];i=((n,t)=>{return`${n}-${e=t,`${e}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var e})(a,d),c(i,class extends r{})}))})([u],{"axa-accordion":{"axa-accordion":"1.2.0"}});export{u as default};
`}}((n,t,e)=>{const o="string"==typeof t&&t;let i="";n.forEach((n=>{const r=n instanceof HTMLElement?n.constructor:n,{tagName:a}=r,s=!o&&t[a];if(s){if(!window.customElements.get(a)&&r.versions)throw Error(`'versions' is a reserved class property, but was found in ${a}'s class`);r.versions=s,c(a,r)}let{versions:l}=r;!l&&e&&(l=t[e.constructor.tagName],l[a]=Object.values(l)[0]);const d=o||l[a];i=((n,t)=>{return`${n}-${e=t,`${e}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var e})(a,d),c(i,class extends r{})}))})([u],{"axa-accordion":{"axa-accordion":"1.2.1"}});export{u as default};

@@ -40,2 +40,2 @@ import t from"@skatejs/val";import{LitElement as n,css as e,unsafeCSS as o,html as i}from"lit";import{unsafeHTML as r}from"lit/directives/unsafe-html.js";import a from"@axa-ch/materials/icons/material-design/expand_less.svg";import s from"@axa-ch/materials/icons/material-design/expand_more.svg";import{classMap as c}from"lit/directives/class-map.js";var l=(t,n)=>{const e=t.toLowerCase();return window.customElements.get(e)||window.customElements.define(e,n),e};const d=(t,n,e)=>{const o="string"==typeof n&&n;let i="";return t.forEach((t=>{const r=t instanceof HTMLElement?t.constructor:t,{tagName:a}=r,s=!o&&n[a];if(s){if(!window.customElements.get(a)&&r.versions)throw Error(`'versions' is a reserved class property, but was found in ${a}'s class`);r.versions=s,l(a,r)}let{versions:c}=r;!c&&e&&(c=n[e.constructor.tagName],c[a]=Object.values(c)[0]);const d=o||c[a];i=((t,n)=>{return`${t}-${e=n,`${e}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var e})(a,d),l(i,class extends r{})})),i},p=(t,n)=>{const e={},o={};let i;return Object.keys(t).forEach((r=>{const a=t[r];let s;const c=n.properties[r]||{},{type:l}=c;switch(s=0===r.indexOf("on")&&r.charAt(2)===r.charAt(2).toUpperCase()?Function:"className"===r?"className":l,s){case"className":case Array:case Object:case Function:case Boolean:i=o;break;default:i=l?o:e}void 0!==a&&(i[r]="style"===r?(t=>Object.keys(t).reduce(((n,e)=>{let o=n;return`${o+=e.split(/(?=[A-Z])/).join("-").toLowerCase()}:${t[e]};`}),""))(a):a)})),{attrs:e,props:o}};const m=t=>!(null==t),u=new Map;[[String,""],[Boolean,!1],[Object,{}],[Array,[]],[Number,0],[Function,()=>{}]].forEach((([t,n])=>{u.set(t,n)}));const g=()=>{},h=t=>{const{constructor:{properties:n}}=t;Object.keys(n).forEach((e=>{const o=n[e],{type:i,converter:r,defaultValue:a}=o;if(!i){if(!r)throw new Error(`<${t.nodeName}> property "${e}" is missing a type!`);return}let s=t[e];m(s)||(s=i===Boolean?t.hasAttribute(e):t.getAttribute(e),m(s)?t[e]=((t,n)=>n===Number?parseFloat(t):n===Function?g:n===Array||n===Object?JSON.parse(t):t)(s,i):void 0===a&&"defaultValue"in o||(t[e]="defaultValue"in o?a:u.get(i)))}))};var b=(t="")=>`${t}${Math.random().toString(36).slice(2)}`;class f extends n{static get tagName(){return"axa-accordion"}static get styles(){return e`

</div>
`}}d([f],{"axa-accordion":{"axa-accordion":"1.2.0"}});var _=(n,e)=>((n,e,o)=>{const{tagName:i}=e,r=o?d([e],o):i,a=r.split("-").map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(""),s=({children:o,...i})=>{const{attrs:a,props:s}=p(i,e);return t(n)(r,{isReact:!0,attrs:a,...s},o)};return s.displayName=a,s})(n,f,e);export{_ as default};
`}}d([f],{"axa-accordion":{"axa-accordion":"1.2.1"}});var _=(n,e)=>((n,e,o)=>{const{tagName:i}=e,r=o?d([e],o):i,a=r.split("-").map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(""),s=({children:o,...i})=>{const{attrs:a,props:s}=p(i,e);return t(n)(r,{isReact:!0,attrs:a,...s},o)};return s.displayName=a,s})(n,f,e);export{_ as default};
{
"name": "@axa-ch/accordion",
"version": "1.2.1",
"version": "1.2.2",
"description": "The accordion component for the AXA Pattern Library",

@@ -30,8 +30,8 @@ "author": "Pattern Warriors",

"dependencies": {
"@axa-ch/materials": "16.0.5",
"@axa-ch/materials": "16.0.6",
"@skatejs/val": "^0.4.0",
"lit": "^2.2.1"
},
"gitHead": "59adf7473b8204e2da1df5d6fe6b5c9ab4f9a984",
"gitHead": "44a1e83cc4a7a822d780800fe552a2277655da2c",
"main": "lib/index.js"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc