@dile/utils 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { html, css, LitElement } from "lit";
|
|
2
|
+
import '@dile/iconlib/dile-iconlib.js';
|
|
3
|
+
import '@dile/iconlib/lucide-icons/timer.js';
|
|
2
4
|
|
|
3
5
|
export class DileTimeDuration extends LitElement {
|
|
4
6
|
static properties = {
|
|
@@ -28,22 +30,6 @@ export class DileTimeDuration extends LitElement {
|
|
|
28
30
|
this.icon = "lucide.timer";
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
connectedCallback() {
|
|
32
|
-
super.connectedCallback();
|
|
33
|
-
// Dynamically import dile-iconlib when component connects
|
|
34
|
-
if (this.icon) {
|
|
35
|
-
import('@dile/iconlib/dile-iconlib.js').catch(() => {
|
|
36
|
-
// Icon library not available, component will still work without icons
|
|
37
|
-
});
|
|
38
|
-
// Import the default lucide.timer icon
|
|
39
|
-
if (this.icon === 'lucide.timer') {
|
|
40
|
-
import('@dile/iconlib/lucide-icons/timer.js').catch(() => {
|
|
41
|
-
// Icon not available, will render empty
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
33
|
static get styles() {
|
|
48
34
|
return css`
|
|
49
35
|
:host {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/utils",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Utility Components of Diverse Uses Based on the Lit Library and Web Components Standard.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "d2de3865921d48f4c1973ba8f1afae8c74e4d68d"
|
|
34
34
|
}
|