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

@dataforsyningen/designsystem

Package Overview
Dependencies
Maintainers
0
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dataforsyningen/designsystem - npm Package Compare versions

Comparing version 7.12.0 to 7.12.1

7

assets/designsystem.js

@@ -817,5 +817,3 @@ // src/js/toast.js

}
this.debounceTimer = setTimeout(() => {
this.setClassBySize.bind(this);
}, 100);
this.debounceTimer = setTimeout(this.setClassBySize.bind(this), 100);
}

@@ -841,3 +839,2 @@ setClassBySize() {

for (const element of Array.from(container.children)) {
console.log(element, element.clientWidth);
if (visibleContentWidth < maxWidth) {

@@ -851,3 +848,2 @@ visibleContentWidth = visibleContentWidth + element.clientWidth + 8;

}
console.log("minmax", visibleContentWidth, maxWidth);
this.shadowRoot.querySelector(".menu-items").style.width = `${visibleContentWidth}px`;

@@ -1688,3 +1684,2 @@ }

if (!isSupported()) {
console.log("polyfilling popover");
apply();

@@ -1691,0 +1686,0 @@ }

2

package.json
{
"name": "@dataforsyningen/designsystem",
"version": "7.12.0",
"version": "7.12.1",
"description": "Common design system for Klimadatastyrelsen with CSS, icons, UI components, and logo images.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -538,7 +538,7 @@ var ToggleEvent = class extends Event {

// Polyfill popover
export function popoverPolyfill() {
if (!isSupported()) {
console.log('polyfilling popover')
apply()
}
}
}

@@ -172,11 +172,10 @@ import { DSTogglePanel } from './togglePanel.js'

}
this.debounceTimer = setTimeout(() => {
this.setClassBySize.bind(this)
}, 100)
this.debounceTimer = setTimeout(this.setClassBySize.bind(this), 100)
}
setClassBySize() {
const container = this.shadowRoot.querySelector('.menu-container')
const items = this.shadowRoot.querySelector('.menu-items')
this.classList.remove('compact')

@@ -201,3 +200,2 @@ container.classList.remove('compact')

for (const element of Array.from(container.children)) {
console.log(element, element.clientWidth)

@@ -212,3 +210,2 @@ if (visibleContentWidth < maxWidth) {

}
console.log('minmax', visibleContentWidth, maxWidth)
this.shadowRoot.querySelector('.menu-items').style.width = `${ visibleContentWidth }px`

@@ -215,0 +212,0 @@ }

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