New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zywave/zui-icons

Package Overview
Dependencies
Maintainers
1
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zywave/zui-icons - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1-pre.0

32

dist/zui-icon.js

@@ -7,14 +7,2 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

};
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var _ZuiIcon_internals, _ZuiIcon_iconLoaded;
import { ZuiBaseElement } from '@zywave/zui-base';

@@ -41,2 +29,4 @@ import { html } from 'lit';

}
#internals;
#iconLoaded;
constructor() {

@@ -52,15 +42,14 @@ super();

this.removeIconColor = false;
_ZuiIcon_internals.set(this, null);
_ZuiIcon_iconLoaded.set(this, false);
this.#internals = null;
this.#iconLoaded = false;
if (this.attachInternals) {
__classPrivateFieldSet(this, _ZuiIcon_internals, this.attachInternals(), "f");
this.#internals = this.attachInternals();
}
}
async updated(changedProps) {
var _a;
if (changedProps.has('icon')) {
__classPrivateFieldSet(this, _ZuiIcon_iconLoaded, false, "f");
this.#iconLoaded = false;
this.requestUpdate();
await ensureSVGLoaded(this.icon);
__classPrivateFieldSet(this, _ZuiIcon_iconLoaded, true, "f");
this.#iconLoaded = true;
this.requestUpdate();

@@ -74,4 +63,4 @@ await this.updateComplete;

}));
if ((_a = __classPrivateFieldGet(this, _ZuiIcon_internals, "f")) === null || _a === void 0 ? void 0 : _a.states) {
__classPrivateFieldGet(this, _ZuiIcon_internals, "f").states.add('--loaded');
if (this.#internals?.states) {
this.#internals.states.add('--loaded');
}

@@ -90,7 +79,6 @@ }

return html `
${__classPrivateFieldGet(this, _ZuiIcon_iconLoaded, "f") ? html ` <zui-svg class="${classMap(classes)}" svg-id="${this.icon}"></zui-svg> ` : html ``}
${this.#iconLoaded ? html ` <zui-svg class="${classMap(classes)}" svg-id="${this.icon}"></zui-svg> ` : html ``}
`;
}
}
_ZuiIcon_internals = new WeakMap(), _ZuiIcon_iconLoaded = new WeakMap();
__decorate([

@@ -97,0 +85,0 @@ property({ type: String, attribute: 'icon' })

{
"name": "@zywave/zui-icons",
"version": "4.3.0",
"version": "4.3.1-pre.0",
"main": "dist/index.js",

@@ -8,4 +8,4 @@ "module": "dist/index.js",

"dependencies": {
"@zywave/zui-base": "^4.1.26",
"@zywave/zui-svg": "^4.0.32"
"@zywave/zui-base": "^4.2.0-pre.0",
"@zywave/zui-svg": "^4.0.33-pre.0"
},

@@ -30,3 +30,3 @@ "scripts": {

"customElements": "dist/custom-elements.json",
"gitHead": "29ee30ce78d0cf12a2ee9390dab564815330ebd0"
"gitHead": "1d65fd119122e053cfb26ec6779084a5a61657c5"
}

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