@ekzo-dev/toolkit
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "@ekzo-dev/toolkit", | ||
"description": "Aurelia toolkit", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"homepage": "https://github.com/ekzo-dev/aurelia-components/tree/main/packages/toolkit", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -1,2 +0,2 @@ | ||
import { bindable, BindingMode, customAttribute } from 'aurelia'; | ||
import { bindable, BindingMode, customAttribute, resolve } from 'aurelia'; | ||
@@ -79,3 +79,3 @@ export interface IDragNDropConfig { | ||
constructor(private element: Element) { | ||
constructor(private readonly element: HTMLElement = resolve(HTMLElement)) { | ||
// window.addEventListener('dragend', (event) => this.dragend(event)); | ||
@@ -138,3 +138,3 @@ } | ||
event.dataTransfer.setData('input/plain', JSON.stringify(this.payload)); | ||
(this.element as HTMLElement).style.opacity = '0.5'; | ||
this.element.style.opacity = '0.5'; | ||
// (this.element as HTMLElement).style.transform = 'scale(0.9, 0.9)'; | ||
@@ -150,3 +150,3 @@ this.element.setAttribute('moving', ''); | ||
this.element.classList.remove('over'); | ||
(this.element as HTMLElement).style.opacity = ''; | ||
this.element.style.opacity = ''; | ||
// (this.element as HTMLElement).style.transform = ''; | ||
@@ -153,0 +153,0 @@ this.element.removeAttribute('moving'); |
@@ -1,2 +0,2 @@ | ||
import { bindable, customAttribute } from 'aurelia'; | ||
import { bindable, customAttribute, resolve } from 'aurelia'; | ||
import { AsYouType, CountryCode } from 'libphonenumber-js'; | ||
@@ -14,3 +14,3 @@ | ||
constructor(private element: Element) {} | ||
constructor(private readonly element: HTMLElement = resolve(HTMLElement)) {} | ||
@@ -17,0 +17,0 @@ attaching() { |
@@ -1,2 +0,2 @@ | ||
import { customAttribute, ICustomAttributeViewModel } from 'aurelia'; | ||
import { customAttribute, ICustomAttributeViewModel, resolve } from 'aurelia'; | ||
@@ -9,3 +9,3 @@ @customAttribute('auto-resize') | ||
constructor(private element: Element) {} | ||
constructor(private readonly element: HTMLElement = resolve(HTMLElement)) {} | ||
@@ -12,0 +12,0 @@ attaching() { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25152