@roots/bud-client 2023.10.6-10 → 2023.10.8-9
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.
|
@@ -97,7 +97,7 @@ export class Component extends HTMLElement {
|
|
|
97
97
|
* Hide status indicator
|
|
98
98
|
*/
|
|
99
99
|
hide() {
|
|
100
|
-
this.
|
|
100
|
+
this.timeout = setTimeout(() => {
|
|
101
101
|
this.shadowRoot.querySelector(this.selector).classList.remove(`show`);
|
|
102
102
|
}, 2000);
|
|
103
103
|
}
|
|
@@ -156,7 +156,7 @@ export class Component extends HTMLElement {
|
|
|
156
156
|
* Show status indicator
|
|
157
157
|
*/
|
|
158
158
|
show() {
|
|
159
|
-
this.
|
|
159
|
+
this.timeout && clearTimeout(this.timeout);
|
|
160
160
|
this.shadowRoot.querySelector(this.selector).classList.add(`show`);
|
|
161
161
|
}
|
|
162
162
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roots/bud-client",
|
|
3
|
-
"version": "2023.10.
|
|
3
|
+
"version": "2023.10.8-9",
|
|
4
4
|
"description": "Client scripts for @roots/bud",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16"
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"types": "./lib/index.d.ts",
|
|
70
70
|
"module": "./lib/index.mjs",
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@roots/bud": "2023.10.
|
|
72
|
+
"@roots/bud": "2023.10.8-9",
|
|
73
73
|
"@skypack/package-check": "0.2.2",
|
|
74
|
-
"@types/node": "18.
|
|
75
|
-
"@types/webpack-env": "1.18.
|
|
74
|
+
"@types/node": "18.18.3",
|
|
75
|
+
"@types/webpack-env": "1.18.2"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"tslib": "2.6.2"
|
|
@@ -20,7 +20,7 @@ export class Component extends HTMLElement {
|
|
|
20
20
|
/**
|
|
21
21
|
* Timer
|
|
22
22
|
*/
|
|
23
|
-
public
|
|
23
|
+
public timeout: NodeJS.Timeout
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Component name
|
|
@@ -127,7 +127,7 @@ export class Component extends HTMLElement {
|
|
|
127
127
|
* Hide status indicator
|
|
128
128
|
*/
|
|
129
129
|
public hide() {
|
|
130
|
-
this.
|
|
130
|
+
this.timeout = setTimeout(() => {
|
|
131
131
|
this.shadowRoot.querySelector(this.selector).classList.remove(`show`)
|
|
132
132
|
}, 2000)
|
|
133
133
|
}
|
|
@@ -190,7 +190,7 @@ export class Component extends HTMLElement {
|
|
|
190
190
|
* Show status indicator
|
|
191
191
|
*/
|
|
192
192
|
public show() {
|
|
193
|
-
this.
|
|
193
|
+
this.timeout && clearTimeout(this.timeout)
|
|
194
194
|
this.shadowRoot.querySelector(this.selector).classList.add(`show`)
|
|
195
195
|
}
|
|
196
196
|
}
|