@umbraco-ui/uui-toast-notification 1.6.2 → 1.7.0-rc.0
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.
- package/lib/index.js +3 -6
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -50,7 +50,6 @@ let UUIToastNotificationElement = class extends LitElement {
|
|
|
50
50
|
return this._autoClose;
|
|
51
51
|
}
|
|
52
52
|
set autoClose(value) {
|
|
53
|
-
var _a;
|
|
54
53
|
this._autoClose = value;
|
|
55
54
|
if (value !== null) {
|
|
56
55
|
if (this._timer === null) {
|
|
@@ -62,7 +61,7 @@ let UUIToastNotificationElement = class extends LitElement {
|
|
|
62
61
|
this._timer.start();
|
|
63
62
|
}
|
|
64
63
|
} else {
|
|
65
|
-
|
|
64
|
+
this._timer?.destroy();
|
|
66
65
|
this._timer = null;
|
|
67
66
|
}
|
|
68
67
|
}
|
|
@@ -127,12 +126,11 @@ let UUIToastNotificationElement = class extends LitElement {
|
|
|
127
126
|
new UUIToastNotificationEvent(UUIToastNotificationEvent.OPENING)
|
|
128
127
|
);
|
|
129
128
|
this._animationTimeout = window.setTimeout(() => {
|
|
130
|
-
var _a;
|
|
131
129
|
if (this.isOpen === true) {
|
|
132
130
|
this.style.height = "auto";
|
|
133
131
|
this._animate = false;
|
|
134
132
|
if (this._pauseTimer === false) {
|
|
135
|
-
|
|
133
|
+
this._timer?.start();
|
|
136
134
|
}
|
|
137
135
|
this.dispatchEvent(
|
|
138
136
|
new UUIToastNotificationEvent(UUIToastNotificationEvent.OPENED)
|
|
@@ -143,7 +141,6 @@ let UUIToastNotificationElement = class extends LitElement {
|
|
|
143
141
|
});
|
|
144
142
|
}
|
|
145
143
|
_makeClose() {
|
|
146
|
-
var _a;
|
|
147
144
|
if (this._open === false) {
|
|
148
145
|
return;
|
|
149
146
|
}
|
|
@@ -156,7 +153,7 @@ let UUIToastNotificationElement = class extends LitElement {
|
|
|
156
153
|
return;
|
|
157
154
|
}
|
|
158
155
|
this._open = false;
|
|
159
|
-
|
|
156
|
+
this._timer?.pause();
|
|
160
157
|
cancelAnimationFrame(this._requestAnimationUpdate);
|
|
161
158
|
if (this.isOpen === true) {
|
|
162
159
|
this._requestAnimationUpdate = requestAnimationFrame(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-toast-notification",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"custom-elements.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@umbraco-ui/uui-base": "1.
|
|
34
|
-
"@umbraco-ui/uui-button": "1.
|
|
35
|
-
"@umbraco-ui/uui-css": "1.
|
|
36
|
-
"@umbraco-ui/uui-icon": "1.
|
|
37
|
-
"@umbraco-ui/uui-icon-registry-essential": "1.
|
|
33
|
+
"@umbraco-ui/uui-base": "1.7.0-rc.0",
|
|
34
|
+
"@umbraco-ui/uui-button": "1.7.0-rc.0",
|
|
35
|
+
"@umbraco-ui/uui-css": "1.7.0-rc.0",
|
|
36
|
+
"@umbraco-ui/uui-icon": "1.7.0-rc.0",
|
|
37
|
+
"@umbraco-ui/uui-icon-registry-essential": "1.7.0-rc.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "npm run analyze && tsc --build
|
|
40
|
+
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
|
|
41
41
|
"clean": "tsc --build --clean && rimraf -g dist lib/*.js lib/**/*.js *.tgz lib/**/*.d.ts custom-elements.json",
|
|
42
42
|
"analyze": "web-component-analyzer **/*.element.ts --outFile custom-elements.json"
|
|
43
43
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-toast-notification",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "a7166e62b37b609e74b96821d397c694a5f42458"
|
|
49
49
|
}
|