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

@dpa-connect/user

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dpa-connect/user - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

public/favicon.ico

22

dist/cdk-user.js

@@ -695,8 +695,8 @@ /******/ (function(modules) { // webpackBootstrap

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=template&id=78166b48
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"cdk-User",class:{ 'is-dpa': _vm.isDpa },style:({ width: ((_vm.size + 16) + "px"), height: (_vm.size + "px") })},[_c('div',{staticClass:"cdk-User-dot"}),_vm._v(" "),_c('div',{staticClass:"cdk-User-image",style:({ width: (_vm.size + "px"), height: (_vm.size + "px") })},[(_vm.src)?_c('img',{attrs:{"src":_vm.src,"alt":""}}):[_vm._v(_vm._s(_vm.abbr))]],2),_vm._v(" "),(_vm.notifications)?_c('div',{staticClass:"cdk-User-notifications"},[_vm._v("\n "+_vm._s(_vm.notifications)+"\n ")]):_vm._e()])}
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=template&id=204b93bd
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"cdk-User",class:{ 'is-dpa': _vm.isDpa },style:({ width: ((_vm.size + 16) + "px"), height: (_vm.size + "px") })},[_c('div',{staticClass:"cdk-User-dot"}),_vm._v(" "),_c('div',{staticClass:"cdk-User-image",style:({ width: (_vm.size + "px"), height: (_vm.size + "px") })},[(_vm.src)?_c('img',{attrs:{"src":_vm.src,"alt":""}}):[_vm._v(_vm._s(_vm.abbr))]],2),_vm._v(" "),(_vm.notifications)?_c('div',{staticClass:"cdk-User-notifications"},[_vm._v("\n "+_vm._s(_vm.notifications)+"\n ")]):_vm._e()])}
var staticRenderFns = []
// CONCATENATED MODULE: ./src/App.vue?vue&type=template&id=78166b48
// CONCATENATED MODULE: ./src/App.vue?vue&type=template&id=204b93bd

@@ -723,18 +723,4 @@ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js

//
//
//
//
//
//
//
/* harmony default export */ var Appvue_type_script_lang_js = ({
props: {
firstName: {
type: String,
default: ''
},
lastName: {
type: String,
default: ''
},
src: {

@@ -831,3 +817,3 @@ type: String,

// module
exports.push([module.i, ".cdk-User{position:relative}.cdk-User-dot{position:absolute;border-radius:100%;background-color:#2294fe;width:8px;height:8px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cdk-User.is-dpa .cdk-User-dot{background-color:#a3f2a5}.cdk-User-image{background-color:#444;margin-left:16px}.cdk-User-image,.cdk-User-notifications{border-radius:100%;color:#f1f1f1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:12px}.cdk-User-notifications{position:absolute;top:0;right:0;width:16px;height:16px;background-color:#ff4f5b}", ""]);
exports.push([module.i, ".cdk-User{position:relative}.cdk-User-dot{position:absolute;border-radius:100%;background-color:#2294fe;width:8px;height:8px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cdk-User.is-dpa .cdk-User-dot{background-color:#a3f2a5}.cdk-User-image{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#444;border-radius:100%;color:#f1f1f1;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;overflow:hidden}.cdk-User-image>img{display:block;width:100%}.cdk-User-notifications{position:absolute;top:0;right:0;width:16px;height:16px;color:#f1f1f1;background-color:#ff4f5b;border-radius:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:12px}", ""]);

@@ -834,0 +820,0 @@ // exports

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

(function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="WnQP")})({FfXn:function(t,e,n){var r=n("waH8");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("NdYU").default;t.exports.__inject__=function(t){o("e080d9ae",r,t)}},HrLf:function(t,e,n){if("undefined"!==typeof window){let t;(t=window.document.currentScript)&&(t=t.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=t[1])}},I1BE:function(t,e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"===typeof btoa){var s=r(o),i=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[n].concat(i).concat([s]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,"+e;return"/*# "+n+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"===typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var s=this[o][0];"number"===typeof s&&(r[s]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"===typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},NdYU:function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var s=e[o],i=s[0],a=s[1],c=s[2],u=s[3],p={id:t+":"+o,css:a,media:c,sourceMap:u};r[i]?r[i].parts.push(p):n.push(r[i]={id:i,parts:[p]})}return n}function o(t,e,n){var o=r(t,e);s(o,n)}function s(t,e){const n=e._injectedStyles||(e._injectedStyles={});for(var r=0;r<t.length;r++){var o=t[r],s=n[o.id];if(s){s.refs++;for(var i=0;i<s.parts.length;i++)s.parts[i](o.parts[i]);for(;i<o.parts.length;i++)s.parts.push(a(o.parts[i],e));s.parts.length>o.parts.length&&(s.parts.length=o.parts.length)}else{var c=[];for(i=0;i<o.parts.length;i++)c.push(a(o.parts[i],e));n[o.id]={id:o.id,refs:1,parts:c}}}}function i(t){var e=document.createElement("style");return e.type="text/css",t.appendChild(e),e}function a(t,e){var n=i(e),r=t.css,o=t.media,s=t.sourceMap;if(o&&n.setAttribute("media",o),s&&(r+="\n/*# sourceURL="+s.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),n.styleSheet)n.styleSheet.cssText=r;else{while(n.firstChild)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(r))}}n.r(e),n.d(e,"default",function(){return o})},WnQP:function(t,e,n){"use strict";n.r(e);n("HrLf");var r=n("i7/w"),o=n.n(r);const s=/-(\w)/g,i=t=>{return t.replace(s,(t,e)=>e?e.toUpperCase():"")},a=/\B([A-Z])/g,c=t=>{return t.replace(a,"-$1").toLowerCase()};function u(t){const e={};return t.forEach(t=>{e[t]=void 0}),e}function p(t,e,n){t[e]=[].concat(t[e]||[]),t[e].unshift(n)}function l(t,e){if(t){const n=t.$options[e]||[];n.forEach(e=>{e.call(t)})}}function f(t,e){return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:e})}const d=t=>/function Boolean/.test(String(t)),h=t=>/function Number/.test(String(t));function m(t,e,{type:n}={}){if(d(n))return"true"===t||"false"===t?"true"===t:""===t||t===e||null!=t;if(h(n)){const e=parseFloat(t,10);return isNaN(e)?t:e}return t}function b(t,e){const n=[];for(let r=0,o=e.length;r<o;r++)n.push(v(t,e[r]));return n}function v(t,e){if(3===e.nodeType)return e.data.trim()?e.data:null;if(1===e.nodeType){const n={attrs:g(e),domProps:{innerHTML:e.innerHTML}};return n.attrs.slot&&(n.slot=n.attrs.slot,delete n.attrs.slot),t(e.tagName,n)}return null}function g(t){const e={};for(let n=0,r=t.attributes.length;n<r;n++){const r=t.attributes[n];e[r.nodeName]=r.nodeValue}return e}function _(t,e){const n="function"===typeof e&&!e.cid;let r,o,s,a=!1;function d(t){if(a)return;const e="function"===typeof t?t.options:t,n=Array.isArray(e.props)?e.props:Object.keys(e.props||{});r=n.map(c),o=n.map(i);const u=Array.isArray(e.props)?{}:e.props||{};s=o.reduce((t,e,r)=>{return t[e]=u[n[r]],t},{}),p(e,"beforeCreate",function(){const t=this.$emit;this.$emit=((e,...n)=>{return this.$root.$options.customElement.dispatchEvent(f(e,n)),t.call(this,e,...n)})}),p(e,"created",function(){o.forEach(t=>{this.$root.props[t]=this[t]})}),o.forEach(t=>{Object.defineProperty(v.prototype,t,{get(){return this._wrapper.props[t]},set(e){this._wrapper.props[t]=e},enumerable:!1,configurable:!0})}),a=!0}function h(t,e){const n=i(e),r=t.hasAttribute(e)?t.getAttribute(e):void 0;t._wrapper.props[n]=m(r,e,s[n])}class v extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const n=this._wrapper=new t({name:"shadow-root",customElement:this,shadowRoot:this.shadowRoot,data(){return{props:{},slotChildren:[]}},render(t){return t(e,{ref:"inner",props:this.props},this.slotChildren)}}),r=new MutationObserver(t=>{let e=!1;for(let n=0;n<t.length;n++){const r=t[n];a&&"attributes"===r.type&&r.target===this?h(this,r.attributeName):e=!0}e&&(n.slotChildren=Object.freeze(b(n.$createElement,this.childNodes)))});r.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}get vueComponent(){return this._wrapper.$refs.inner}connectedCallback(){const t=this._wrapper;if(t._isMounted)l(this.vueComponent,"activated");else{const n=()=>{t.props=u(o),r.forEach(t=>{h(this,t)})};a?n():e().then(t=>{(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),d(t),n()}),t.slotChildren=Object.freeze(b(t.$createElement,this.childNodes)),t.$mount(),this.shadowRoot.appendChild(t.$el)}}disconnectedCallback(){l(this.vueComponent,"deactivated")}}return n||d(e),v}var y=_;n("I1BE"),n("NdYU");function w(t,e,n,r,o,s,i,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var p=u.render;u.render=function(t,e){return c.call(e),p(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:u}}var x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cdk-User",class:{"is-dpa":t.isDpa},style:{width:t.size+16+"px",height:t.size+"px"}},[n("div",{staticClass:"cdk-User-dot"}),t._v(" "),n("div",{staticClass:"cdk-User-image",style:{width:t.size+"px",height:t.size+"px"}},[t.src?n("img",{attrs:{src:t.src,alt:""}}):[t._v(t._s(t.abbr))]],2),t._v(" "),t.notifications?n("div",{staticClass:"cdk-User-notifications"},[t._v("\n "+t._s(t.notifications)+"\n ")]):t._e()])},C=[],k={props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},abbr:{type:String,default:""},size:{type:Number,default:48},isDpa:{type:Boolean,default:!1},notifications:{type:Number,required:!1}}},U=k;function j(t){var e=n("ZL7j");e.__inject__&&e.__inject__(t)}var E=w(U,x,C,!1,j,null,null,!0),S=E.exports;window.customElements.define("cdk-user",y(o.a,S))},ZL7j:function(t,e,n){"use strict";n.r(e);var r=n("FfXn"),o=n.n(r);for(var s in r)"default"!==s&&function(t){n.d(e,t,function(){return r[t]})}(s);e["default"]=o.a},"i7/w":function(t,e){t.exports=Vue},waH8:function(t,e,n){e=t.exports=n("I1BE")(!1),e.push([t.i,".cdk-User{position:relative}.cdk-User-dot{position:absolute;border-radius:100%;background-color:#2294fe;width:8px;height:8px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cdk-User.is-dpa .cdk-User-dot{background-color:#a3f2a5}.cdk-User-image{background-color:#444;margin-left:16px}.cdk-User-image,.cdk-User-notifications{border-radius:100%;color:#f1f1f1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:12px}.cdk-User-notifications{position:absolute;top:0;right:0;width:16px;height:16px;background-color:#ff4f5b}",""])}});
(function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="WnQP")})({FfXn:function(t,e,n){var r=n("waH8");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("NdYU").default;t.exports.__inject__=function(t){o("e080d9ae",r,t)}},HrLf:function(t,e,n){if("undefined"!==typeof window){let t;(t=window.document.currentScript)&&(t=t.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=t[1])}},I1BE:function(t,e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"===typeof btoa){var s=r(o),i=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[n].concat(i).concat([s]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,"+e;return"/*# "+n+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"===typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var s=this[o][0];"number"===typeof s&&(r[s]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"===typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},NdYU:function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var s=e[o],i=s[0],a=s[1],c=s[2],u=s[3],p={id:t+":"+o,css:a,media:c,sourceMap:u};r[i]?r[i].parts.push(p):n.push(r[i]={id:i,parts:[p]})}return n}function o(t,e,n){var o=r(t,e);s(o,n)}function s(t,e){const n=e._injectedStyles||(e._injectedStyles={});for(var r=0;r<t.length;r++){var o=t[r],s=n[o.id];if(s){s.refs++;for(var i=0;i<s.parts.length;i++)s.parts[i](o.parts[i]);for(;i<o.parts.length;i++)s.parts.push(a(o.parts[i],e));s.parts.length>o.parts.length&&(s.parts.length=o.parts.length)}else{var c=[];for(i=0;i<o.parts.length;i++)c.push(a(o.parts[i],e));n[o.id]={id:o.id,refs:1,parts:c}}}}function i(t){var e=document.createElement("style");return e.type="text/css",t.appendChild(e),e}function a(t,e){var n=i(e),r=t.css,o=t.media,s=t.sourceMap;if(o&&n.setAttribute("media",o),s&&(r+="\n/*# sourceURL="+s.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),n.styleSheet)n.styleSheet.cssText=r;else{while(n.firstChild)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(r))}}n.r(e),n.d(e,"default",function(){return o})},WnQP:function(t,e,n){"use strict";n.r(e);n("HrLf");var r=n("i7/w"),o=n.n(r);const s=/-(\w)/g,i=t=>{return t.replace(s,(t,e)=>e?e.toUpperCase():"")},a=/\B([A-Z])/g,c=t=>{return t.replace(a,"-$1").toLowerCase()};function u(t){const e={};return t.forEach(t=>{e[t]=void 0}),e}function p(t,e,n){t[e]=[].concat(t[e]||[]),t[e].unshift(n)}function l(t,e){if(t){const n=t.$options[e]||[];n.forEach(e=>{e.call(t)})}}function f(t,e){return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:e})}const d=t=>/function Boolean/.test(String(t)),h=t=>/function Number/.test(String(t));function b(t,e,{type:n}={}){if(d(n))return"true"===t||"false"===t?"true"===t:""===t||t===e||null!=t;if(h(n)){const e=parseFloat(t,10);return isNaN(e)?t:e}return t}function m(t,e){const n=[];for(let r=0,o=e.length;r<o;r++)n.push(g(t,e[r]));return n}function g(t,e){if(3===e.nodeType)return e.data.trim()?e.data:null;if(1===e.nodeType){const n={attrs:v(e),domProps:{innerHTML:e.innerHTML}};return n.attrs.slot&&(n.slot=n.attrs.slot,delete n.attrs.slot),t(e.tagName,n)}return null}function v(t){const e={};for(let n=0,r=t.attributes.length;n<r;n++){const r=t.attributes[n];e[r.nodeName]=r.nodeValue}return e}function _(t,e){const n="function"===typeof e&&!e.cid;let r,o,s,a=!1;function d(t){if(a)return;const e="function"===typeof t?t.options:t,n=Array.isArray(e.props)?e.props:Object.keys(e.props||{});r=n.map(c),o=n.map(i);const u=Array.isArray(e.props)?{}:e.props||{};s=o.reduce((t,e,r)=>{return t[e]=u[n[r]],t},{}),p(e,"beforeCreate",function(){const t=this.$emit;this.$emit=((e,...n)=>{return this.$root.$options.customElement.dispatchEvent(f(e,n)),t.call(this,e,...n)})}),p(e,"created",function(){o.forEach(t=>{this.$root.props[t]=this[t]})}),o.forEach(t=>{Object.defineProperty(g.prototype,t,{get(){return this._wrapper.props[t]},set(e){this._wrapper.props[t]=e},enumerable:!1,configurable:!0})}),a=!0}function h(t,e){const n=i(e),r=t.hasAttribute(e)?t.getAttribute(e):void 0;t._wrapper.props[n]=b(r,e,s[n])}class g extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const n=this._wrapper=new t({name:"shadow-root",customElement:this,shadowRoot:this.shadowRoot,data(){return{props:{},slotChildren:[]}},render(t){return t(e,{ref:"inner",props:this.props},this.slotChildren)}}),r=new MutationObserver(t=>{let e=!1;for(let n=0;n<t.length;n++){const r=t[n];a&&"attributes"===r.type&&r.target===this?h(this,r.attributeName):e=!0}e&&(n.slotChildren=Object.freeze(m(n.$createElement,this.childNodes)))});r.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}get vueComponent(){return this._wrapper.$refs.inner}connectedCallback(){const t=this._wrapper;if(t._isMounted)l(this.vueComponent,"activated");else{const n=()=>{t.props=u(o),r.forEach(t=>{h(this,t)})};a?n():e().then(t=>{(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),d(t),n()}),t.slotChildren=Object.freeze(m(t.$createElement,this.childNodes)),t.$mount(),this.shadowRoot.appendChild(t.$el)}}disconnectedCallback(){l(this.vueComponent,"deactivated")}}return n||d(e),g}var y=_;n("I1BE"),n("NdYU");function x(t,e,n,r,o,s,i,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var p=u.render;u.render=function(t,e){return c.call(e),p(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:u}}var w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cdk-User",class:{"is-dpa":t.isDpa},style:{width:t.size+16+"px",height:t.size+"px"}},[n("div",{staticClass:"cdk-User-dot"}),t._v(" "),n("div",{staticClass:"cdk-User-image",style:{width:t.size+"px",height:t.size+"px"}},[t.src?n("img",{attrs:{src:t.src,alt:""}}):[t._v(t._s(t.abbr))]],2),t._v(" "),t.notifications?n("div",{staticClass:"cdk-User-notifications"},[t._v("\n "+t._s(t.notifications)+"\n ")]):t._e()])},C=[],k={props:{src:{type:String,default:""},abbr:{type:String,default:""},size:{type:Number,default:48},isDpa:{type:Boolean,default:!1},notifications:{type:Number,required:!1}}},j=k;function U(t){var e=n("ZL7j");e.__inject__&&e.__inject__(t)}var E=x(j,w,C,!1,U,null,null,!0),S=E.exports;window.customElements.define("cdk-user",y(o.a,S))},ZL7j:function(t,e,n){"use strict";n.r(e);var r=n("FfXn"),o=n.n(r);for(var s in r)"default"!==s&&function(t){n.d(e,t,function(){return r[t]})}(s);e["default"]=o.a},"i7/w":function(t,e){t.exports=Vue},waH8:function(t,e,n){e=t.exports=n("I1BE")(!1),e.push([t.i,".cdk-User{position:relative}.cdk-User-dot{position:absolute;border-radius:100%;background-color:#2294fe;width:8px;height:8px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cdk-User.is-dpa .cdk-User-dot{background-color:#a3f2a5}.cdk-User-image{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#444;border-radius:100%;color:#f1f1f1;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;overflow:hidden}.cdk-User-image>img{display:block;width:100%}.cdk-User-notifications{position:absolute;top:0;right:0;width:16px;height:16px;color:#f1f1f1;background-color:#ff4f5b;border-radius:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:12px}",""])}});
//# sourceMappingURL=cdk-user.min.js.map
{
"name": "@dpa-connect/user",
"version": "0.4.0",
"version": "0.5.0",
"private": false,

@@ -5,0 +5,0 @@ "publishConfig": {

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