@salesforcedevs/dx-components 1.17.2 → 1.17.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.3",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"volta": {
|
|
46
46
|
"node": "20.19.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "bca09dae53a71382bf30a0898a5772f45fe0bb21"
|
|
49
49
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
@import "dxHelpers/reset";
|
|
2
2
|
@import "dxHelpers/text";
|
|
3
3
|
|
|
4
|
+
.error-without-image {
|
|
5
|
+
margin-top: 50px;
|
|
6
|
+
margin-bottom: 50px;
|
|
7
|
+
}
|
|
8
|
+
|
|
4
9
|
.error_container {
|
|
5
10
|
background-color: #3a49da;
|
|
6
11
|
background-image: url("https://a.sfdcstatic.com/developer-website/images/bottom-right.svg"),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
|
+
import cx from "classnames";
|
|
2
3
|
|
|
3
4
|
export default class Error extends LightningElement {
|
|
4
5
|
@api track: boolean = false;
|
|
@@ -9,15 +10,12 @@ export default class Error extends LightningElement {
|
|
|
9
10
|
@api image!: string;
|
|
10
11
|
@api code!: string;
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
get className() {
|
|
14
|
+
return cx(
|
|
15
|
+
"error",
|
|
16
|
+
this.image ? "error-with-image" : "error-without-image"
|
|
17
|
+
);
|
|
15
18
|
}
|
|
16
|
-
set suggestions(value: string) {
|
|
17
|
-
this._suggestions = JSON.parse(value);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
private _suggestions = [];
|
|
21
19
|
|
|
22
20
|
renderedCallback() {
|
|
23
21
|
// Hide the docs header from 404 pages when URL contains /docs
|