Comparing version 2.1.0 to 2.1.1
@@ -68,2 +68,5 @@ import { LitElement, html, css } from "lit"; | ||
doFeeedback(msg, status) { | ||
if(this.delayedClear) { | ||
clearTimeout(this.delayedClear); | ||
} | ||
if(this.opened) { | ||
@@ -91,2 +94,14 @@ this.clear(); | ||
} | ||
positiveFeedbackWithDelay(msg, milliseconds = 5000) { | ||
this.positiveFeedback(msg); | ||
this.clearAfterDelay(milliseconds); | ||
} | ||
negativeFeedbackWithDelay(msg, milliseconds = 5000) { | ||
this.negativeFeedback(msg); | ||
this.clearAfterDelay(milliseconds); | ||
} | ||
neutralFeedbackWithDelay(msg, milliseconds = 5000) { | ||
this.neutralFeedback(msg); | ||
this.clearAfterDelay(milliseconds); | ||
} | ||
clear() { | ||
@@ -98,2 +113,5 @@ this.slideHide(this.msgElement); | ||
} | ||
clearAfterDelay(miliseconds) { | ||
this.delayedClear = setTimeout( () => this.clear(), miliseconds); | ||
} | ||
} |
@@ -25,3 +25,3 @@ import { LitElement, html, css } from 'lit'; | ||
padding-bottom: 0.5rem; | ||
border-bottom: 1px solid var(--primary-color, #2962FF); | ||
border-bottom: 1px solid var(--dile-primary-color, #2962FF); | ||
} | ||
@@ -28,0 +28,0 @@ dile-icon { |
{ | ||
"name": "@dile/ui", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "UI Core components from dile-components.", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "9d26c17d9855b73203b87535fd2a8b83c890b4cb" | ||
"gitHead": "86998576dd07b55c375671f4025eb9cb50ab13ac" | ||
} |
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
204867
6504