Socket
Socket
Sign inDemoInstall

@pie-api/pie-element-extensions

Package Overview
Dependencies
Maintainers
2
Versions
121
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.0 to 1.3.1

dist/pies/CategorizeCell.js

2

dist/pies/ConstructedCell.js

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

import{L as t,c as e,d as r,i as a,j as s,h as c}from"./utils-f50fe472.js";class i extends t{static get styles(){return[e`
import{L as t,c as e,d as r,m as a,a as s,h as c}from"./utils-4ed26ff2.js";class i extends t{static get styles(){return[e`
.cell {

@@ -3,0 +3,0 @@ background-color: var(--background-color, ${r});

@@ -1,29 +0,15 @@

import{k as e,N as t,l as r,L as s,c as a,d as n,a as o,g as i,e as c,m as l,f as d,h as p}from"./utils-f50fe472.js";
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
const u=new WeakMap,f=e(e=>s=>{if(!(s instanceof t))throw new Error("unsafeHTML can only be used in text bindings");const a=u.get(s);if(void 0!==a&&r(e)&&e===a.value&&s.value===a.fragment)return;const n=document.createElement("template");n.innerHTML=e;const o=document.importNode(n.content,!0);s.setValue(o),u.set(s,{value:e,fragment:o})});class m extends s{static get styles(){return[a`
import{L as e,c as t,d as r,j as s,k as a,f as o,g as i,i as n,h as c}from"./utils-4ed26ff2.js";import{u as p}from"./unsafe-html-a392e47f.js";class l extends e{static get styles(){return[t`
.response {
align-items: center;
background-color: var(--background-color, ${n});
color: var(--color, ${o});
background-color: var(--background-color, ${r});
color: var(--color, ${s});
display: flex;
flex-direction: column;
font-size: ${i}px;
font-family: ${c};
height: calc(var(--height, ${l}) * 1px);
font-size: ${a}px;
font-family: ${o};
height: calc(var(--height, ${i}) * 1px);
justify-content: start;
overflow: hidden;
padding: 8px;
width: calc(var(--width, ${d}) * 1px);
width: calc(var(--width, ${n}) * 1px);
}

@@ -33,5 +19,5 @@ p {

}
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_processEscapedMarkup(){const{markup:e}=this.model||{},{value:t}=this.session||{};if(!t||!e)return"";const r=document.createElement("textarea");return r.innerHTML=e,r.innerText.replace(/\{\{(.)\}\}/g,(e,r)=>t[r])}render(){return p`<div class="response">
${f(this._processEscapedMarkup())}
</div>`}}export default m;export{m as ConstructedResponse};
`]}static get properties(){return{model:{type:Object,attribute:!1},session:{type:Array,attribute:!1}}}_processEscapedMarkup(){const{markup:e}=this.model||{},{value:t}=this.session||{};if(!t||!e)return"";const r=document.createElement("textarea");return r.innerHTML=e,r.innerText.replace(/\{\{(.)\}\}/g,(e,r)=>t[r])}render(){return c`<div class="response">
${p(this._processEscapedMarkup())}
</div>`}}export default l;export{l as ConstructedResponse};
//# sourceMappingURL=ConstructedResponse.js.map

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

import{L as t,c as e,d as r,i as a,j as s,h as c}from"./utils-f50fe472.js";class i extends t{static get styles(){return[e`
import{L as t,c as e,d as r,m as a,a as s,h as c}from"./utils-4ed26ff2.js";class i extends t{static get styles(){return[e`
.cell {

@@ -3,0 +3,0 @@ background-color: var(--background-color, ${r});

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

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

@@ -3,0 +3,0 @@ align-items: start;

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

import{L as t,c as e,d as r,i as a,j as s,h as c}from"./utils-f50fe472.js";class i extends t{static get styles(){return[e`
import{L as t,c as e,d as r,m as a,a as s,h as c}from"./utils-4ed26ff2.js";class i extends t{static get styles(){return[e`
.cell {

@@ -3,0 +3,0 @@ background-color: var(--background-color, ${r});

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

import{L as e,c as t,h as a,m as r,f as s}from"./utils-f50fe472.js";class i extends e{static get styles(){return[t`
import{L as e,c as t,h as a,g as r,i as s}from"./utils-4ed26ff2.js";class i extends e{static get styles(){return[t`
.response {

@@ -3,0 +3,0 @@ position: relative;

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

import{L as t,c as e,d as s,a as r,g as a,e as o,i,j as c,h as l}from"./utils-f50fe472.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 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`
:host {

@@ -3,0 +3,0 @@ color: var(--color, black);

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

import{L as t,c as e,d as s,a as r,b as a,e as o,m as i,f as n,h as p}from"./utils-f50fe472.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 p}from"./utils-4ed26ff2.js";import{g as c}from"./utils-a3b6a48a.js";class l extends t{static get styles(){return[e`
.response {

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

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

import{L as t,c as e,d as r,i as a,j as s,h as c}from"./utils-f50fe472.js";class i extends t{static get styles(){return[e`
import{L as t,c as e,d as r,m as a,a as s,h as c}from"./utils-4ed26ff2.js";class i extends t{static get styles(){return[e`
.cell {

@@ -3,0 +3,0 @@ background-color: var(--background-color, ${r});

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

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

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

<div class="magnifier">&#9906;</div>
</div>`}}export default c;export{c as GraphingResponse};
</div>`}}export default d;export{d as GraphingResponse};
//# sourceMappingURL=GraphingResponse.js.map

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

import{L as t,c as e,d as r,i as a,j as s,h as c}from"./utils-f50fe472.js";class i extends t{static get styles(){return[e`
import{L as t,c as e,d as r,m as a,a as s,h as c}from"./utils-4ed26ff2.js";class i extends t{static get styles(){return[e`
.cell {

@@ -3,0 +3,0 @@ background-color: var(--background-color, ${r});

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

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

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

<div class="magnifier">&#9906;</div>
</div>`}}export default c;export{c as HotspotResponse};
</div>`}}export default d;export{d as HotspotResponse};
//# sourceMappingURL=HotspotResponse.js.map

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

import{L as t,c as e,d as r,i as a,j as s,h as c}from"./utils-f50fe472.js";class i extends t{static get styles(){return[e`
import{L as t,c as e,d as r,m as a,a as s,h as c}from"./utils-4ed26ff2.js";class i extends t{static get styles(){return[e`
.cell {

@@ -3,0 +3,0 @@ background-color: var(--background-color, ${r});

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

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

@@ -3,0 +3,0 @@ align-items: start;

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

import{L as t,c as e,d as r,i as a,j as s,h as c}from"./utils-f50fe472.js";class i extends t{static get styles(){return[e`
import{L as t,c as e,d as r,m as a,a as s,h as c}from"./utils-4ed26ff2.js";class i extends t{static get styles(){return[e`
.cell {

@@ -3,0 +3,0 @@ background-color: var(--background-color, ${r});

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

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

@@ -3,0 +3,0 @@ align-items: start;

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

import{L as e,c as t,d as r,a as s,g as o,e as a,i,j as c,h as n}from"./utils-f50fe472.js";class l extends e{static get styles(){return[t`
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`
:host {

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

font-family: ${a};
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{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};
//# sourceMappingURL=MultipleChoiceCell.js.map

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

import{L as e,c as t,d as s,a as r,b as o,e as a,m as i,f as n,h as c}from"./utils-f50fe472.js";class l extends e{static get styles(){return[t`
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`
.response {

@@ -8,4 +8,4 @@ align-items: center;

font-size: ${o}px;
font-family: ${a};
height: calc(var(--height, ${i}) * 1px);
font-family: ${i};
height: calc(var(--height, ${a}) * 1px);
justify-content: center;

@@ -12,0 +12,0 @@ overflow: hidden;

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

import{L as t,c as e,d as r,i as a,j as s,h as c}from"./utils-f50fe472.js";class i extends t{static get styles(){return[e`
import{L as t,c as e,d as r,m as a,a as s,h as c}from"./utils-4ed26ff2.js";class i extends t{static get styles(){return[e`
.cell {

@@ -3,0 +3,0 @@ background-color: var(--background-color, ${r});

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

import{L as t,c as e,d as s,a as r,g as a,e as n,m as o,f as i,h as l}from"./utils-f50fe472.js";class c 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 n,g as o,i,h as l}from"./utils-4ed26ff2.js";class c extends t{static get styles(){return[e`
.response {

@@ -3,0 +3,0 @@ align-items: start;

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

},
"version": "1.3.0",
"version": "1.3.1",
"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

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

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