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

@pie-api/pie-element-extensions

Package Overview
Dependencies
Maintainers
2
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pie-api/pie-element-extensions - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

dist/pies/utils-d0c61112.js

4

dist/index.js

@@ -175,3 +175,3 @@ /**

}
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_getResponse(){const{choices:t,choicePrefix:e}=this.model||{},{value:s}=this.session||{};if(!t||!s)return R``;const i="numbers"===e?48:65;return s.map(e=>{const s=t.findIndex(t=>t.value===e);return String.fromCharCode(s+i)}).join(", ")}render(){const t=this._getResponse();return R` <div class="cell">${t}</div> `}}class st extends X{static get styles(){return[K`
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_getResponse(){const{choices:t,choicePrefix:e}=this.model||{},{value:s}=this.session||{};if(!t||!s)return R``;const i="numbers"===e?49:65;return s.map(e=>{const s=t.findIndex(t=>t.value===e);return String.fromCharCode(s+i)}).join(", ")}render(){const t=this._getResponse();return R` <div class="cell">${t}</div> `}}class st extends X{static get styles(){return[K`
.response {

@@ -189,2 +189,2 @@ align-items: center;

}
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_getResponse(){const{choices:t,choicePrefix:e}=this.model||{},{value:s}=this.session||{};if(!t||!s)return R``;const i="numbers"===e?48:65;return s.map(e=>{const s=t.findIndex(t=>t.value===e);return String.fromCharCode(s+i)}).join(", ")}render(){return R`<div class="response">${this._getResponse()}</div>`}}export{et as MultipleChoiceCell,st as MultipleChoiceResponse};
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_getResponse(){const{choices:t,choicePrefix:e}=this.model||{},{value:s}=this.session||{};if(!t||!s)return R``;const i="numbers"===e?49:65;return s.map(e=>{const s=t.findIndex(t=>t.value===e);return String.fromCharCode(s+i)}).join(", ")}render(){return R`<div class="response">${this._getResponse()}</div>`}}export{et as MultipleChoiceCell,st as MultipleChoiceResponse};

@@ -1,2 +0,2 @@

import{L as t,c as e,d as s,j as r,k as a,f as o,m as i,a as c,h as l}from"./utils-4ed26ff2.js";import{g as n}from"./utils-a3b6a48a.js";class p extends t{static get styles(){return[e`
import{L as t,c as e,d as s,j as r,k as a,f as o,m as c,a as i,h as l}from"./utils-4ed26ff2.js";import{g as n}from"./utils-d0c61112.js";class p extends t{static get styles(){return[e`
:host {

@@ -12,8 +12,8 @@ color: var(--color, black);

font-family: ${o};
height: calc(var(--height, ${i}) * 1px);
height: calc(var(--height, ${c}) * 1px);
justify-content: center;
overflow: hidden;
width: calc(var(--width, ${c}) * 1px);
width: calc(var(--width, ${i}) * 1px);
}
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_getResponse(){const{partA:t,partB:e}=this.model||{},{value:s}=this.session||{};if(!s)return"";const r=n(t,s.partA),a=n(e,s.partB);return l`<span>${r}, ${a}</span>`}render(){const t=this._getResponse();return l`<div class="cell">${t}</div>`}}export default p;export{p as EBSRCell};
//# sourceMappingURL=EBSRCell.js.map

@@ -1,2 +0,2 @@

import{L as t,c as e,d as s,j as r,o as a,f as o,g as i,i as n,h as p}from"./utils-4ed26ff2.js";import{g as c}from"./utils-a3b6a48a.js";class l extends t{static get styles(){return[e`
import{L as t,c as e,d as s,j as r,o as a,f as o,g as i,i as n,h as c}from"./utils-4ed26ff2.js";import{g as p}from"./utils-d0c61112.js";class l extends t{static get styles(){return[e`
.response {

@@ -14,3 +14,3 @@ align-items: center;

}
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_getResponse(){const{partA:t,partB:e}=this.model||{},{value:s}=this.session||{};if(!s)return"";const r=c(t,s.partA),a=c(e,s.partB);return p`<span>${r}, ${a}</span>`}render(){return p`<div class="response">${this._getResponse()}</div>`}}export default l;export{l as EBSRResponse};
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_getResponse(){const{partA:t,partB:e}=this.model||{},{value:s}=this.session||{};if(!s)return"";const r=p(t,s.partA),a=p(e,s.partB);return c`<span>${r}, ${a}</span>`}render(){return c`<div class="response">${this._getResponse()}</div>`}}export default l;export{l as EBSRResponse};
//# sourceMappingURL=EBSRResponse.js.map

@@ -17,3 +17,3 @@ import{L as e,c as t,d as r,j as s,k as o,f as a,m as c,a as i,h as n}from"./utils-4ed26ff2.js";class l extends e{static get styles(){return[t`

}
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_getResponse(){const{choices:e,choicePrefix:t}=this.model||{},{value:r}=this.session||{};if(!e||!r)return n``;const s="numbers"===t?48:65;return r.map(t=>{const r=e.findIndex(e=>e.value===t);return String.fromCharCode(r+s)}).join(", ")}render(){const e=this._getResponse();return n` <div class="cell">${e}</div> `}}export default l;export{l as MultipleChoiceCell};
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_getResponse(){const{choices:e,choicePrefix:t}=this.model||{},{value:r}=this.session||{};if(!e||!r)return n``;const s="numbers"===t?49:65;return r.map(t=>{const r=e.findIndex(e=>e.value===t);return String.fromCharCode(r+s)}).join(", ")}render(){const e=this._getResponse();return n` <div class="cell">${e}</div> `}}export default l;export{l as MultipleChoiceCell};
//# sourceMappingURL=MultipleChoiceCell.js.map

@@ -14,3 +14,3 @@ import{L as e,c as t,d as s,j as r,o,f as i,g as a,i as n,h as c}from"./utils-4ed26ff2.js";class l extends e{static get styles(){return[t`

}
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_getResponse(){const{choices:e,choicePrefix:t}=this.model||{},{value:s}=this.session||{};if(!e||!s)return c``;const r="numbers"===t?48:65;return s.map(t=>{const s=e.findIndex(e=>e.value===t);return String.fromCharCode(s+r)}).join(", ")}render(){return c`<div class="response">${this._getResponse()}</div>`}}export default l;export{l as MultipleChoiceResponse};
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_getResponse(){const{choices:e,choicePrefix:t}=this.model||{},{value:s}=this.session||{};if(!e||!s)return c``;const r="numbers"===t?49:65;return s.map(t=>{const s=e.findIndex(e=>e.value===t);return String.fromCharCode(s+r)}).join(", ")}render(){return c`<div class="response">${this._getResponse()}</div>`}}export default l;export{l as MultipleChoiceResponse};
//# sourceMappingURL=MultipleChoiceResponse.js.map

@@ -6,3 +6,3 @@ {

},
"version": "1.3.1",
"version": "1.3.2",
"description": "Extended capabilites for pie-elements",

@@ -9,0 +9,0 @@ "author": "PIE Api Authors",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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