@salesforcedevs/dx-components 1.20.14-cb-plain-loading-1 → 1.20.16
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/LICENSE +12 -0
- package/package.json +3 -2
- package/src/modules/dx/codeBlock/codeBlock.css +0 -20
- package/src/modules/dx/codeBlock/codeBlock.html +0 -3
- package/src/modules/dx/codeBlock/codeBlock.ts +1 -72
- package/src/modules/dx/emptyState/emptyState.html +1 -1
- package/src/modules/dx/emptyState/emptyState.ts +2 -2
- package/src/modules/dx/error/error.css +3 -3
- package/src/modules/dx/errorFallback/errorFallback.html +1 -1
- package/src/modules/dx/feature/feature.css +2 -2
- package/src/modules/dx/feature/feature.html +1 -1
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +5 -5
- package/src/modules/dx/featuredContentHeader/svgs.ts +2 -2
- package/src/modules/dx/footer/footer.css +4 -4
- package/src/modules/dx/footer/footer.html +1 -1
- package/src/modules/dx/footer/links.ts +1 -1
- package/src/modules/dx/input/input.ts +1 -1
- package/src/modules/dx/logo/logo.ts +1 -1
- package/src/modules/dx/searchResults/resultsTemplate.js +1 -1
- package/src/modules/dx/searchResults/searchResults.css +4 -4
- package/src/modules/dx/sectionBanner/sectionBanner.html +1 -1
- package/src/modules/dx/sidebar/sidebar.html +1 -1
- package/src/modules/dx/tabbedCodeBlock/tabbedCodeBlock.html +0 -1
- package/src/modules/dx/tabbedCodeBlock/tabbedCodeBlock.ts +1 -11
- package/src/modules/dx/treeItem/treeItem.html +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (c) 2020, Salesforce.com, Inc.
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
+
|
|
6
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
+
|
|
8
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
+
|
|
10
|
+
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
|
+
|
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.16",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -46,5 +46,6 @@
|
|
|
46
46
|
"volta": {
|
|
47
47
|
"node": "20.19.0",
|
|
48
48
|
"yarn": "1.22.19"
|
|
49
|
-
}
|
|
49
|
+
},
|
|
50
|
+
"gitHead": "07815cdf681065e2c2f967ab36c2482ed4819662"
|
|
50
51
|
}
|
|
@@ -30,13 +30,11 @@ pre {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
div.dx-theme-dark {
|
|
33
|
-
position: relative;
|
|
34
33
|
border: var(--dx-g-dark-mode-toggle-button-border);
|
|
35
34
|
border-radius: var(--dx-code-block-toolbar-border-radius, 0.3em);
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
div.dx-theme-light {
|
|
39
|
-
position: relative;
|
|
40
38
|
border: var(--dx-g-light-mode-code-block-border);
|
|
41
39
|
border-radius: var(--dx-code-block-toolbar-border-radius, 0.3em);
|
|
42
40
|
}
|
|
@@ -132,21 +130,3 @@ pre[class*="shiki"] {
|
|
|
132
130
|
dx-button {
|
|
133
131
|
--dx-g-button-icon-color: var(--dx-g-cloud-blue-vibrant-50);
|
|
134
132
|
}
|
|
135
|
-
|
|
136
|
-
.code-block-loading-container {
|
|
137
|
-
position: absolute;
|
|
138
|
-
top: 0;
|
|
139
|
-
left: 0;
|
|
140
|
-
right: 0;
|
|
141
|
-
bottom: 0;
|
|
142
|
-
display: flex;
|
|
143
|
-
align-items: center;
|
|
144
|
-
justify-content: center;
|
|
145
|
-
background-color: rgb(255 255 255 / 90%);
|
|
146
|
-
border-radius: 0 0 0.3em 0.3em;
|
|
147
|
-
z-index: 10;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.dx-theme-dark .code-block-loading-container {
|
|
151
|
-
background-color: rgb(0 0 0 / 90%);
|
|
152
|
-
}
|
|
@@ -73,9 +73,6 @@
|
|
|
73
73
|
</div>
|
|
74
74
|
</div>
|
|
75
75
|
<div class="code-block-content" lwc:dom="manual"></div>
|
|
76
|
-
<div class="code-block-loading-container" if:true={showLoaderUI}>
|
|
77
|
-
<dx-spinner size="large" variant="brand"></dx-spinner>
|
|
78
|
-
</div>
|
|
79
76
|
</div>
|
|
80
77
|
</template>
|
|
81
78
|
<template if:false={codeBlock}>No content provided</template>
|
|
@@ -3,7 +3,6 @@ import { CodeBlockTheme, CodeBlockLanguage } from "typings/custom";
|
|
|
3
3
|
import cx from "classnames";
|
|
4
4
|
import { track as gtmTrack } from "dxUtils/analytics";
|
|
5
5
|
import { highlightCode } from "dxUtils/shiki";
|
|
6
|
-
import { normalizeBoolean } from "dxUtils/normalizers";
|
|
7
6
|
|
|
8
7
|
/*
|
|
9
8
|
Custom language support is handled by the Shiki wrapper module
|
|
@@ -31,18 +30,7 @@ export default class CodeBlock extends LightningElement {
|
|
|
31
30
|
// if it is true, it renders code as is coming instead of wrapping it into html/xml comments tags.
|
|
32
31
|
@api isEncoded = false;
|
|
33
32
|
|
|
34
|
-
@api
|
|
35
|
-
get showLoadingIndicator() {
|
|
36
|
-
return this._showLoadingIndicator;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
set showLoadingIndicator(value) {
|
|
40
|
-
this._showLoadingIndicator = normalizeBoolean(value);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
33
|
private _codeBlockRendered: boolean = false;
|
|
44
|
-
private _showLoadingIndicator: boolean = false;
|
|
45
|
-
private _loaderHeightSet: boolean = false;
|
|
46
34
|
private markupLangs = ["visualforce", "html", "xml"];
|
|
47
35
|
private componentLoaded: boolean = false;
|
|
48
36
|
private showLanguageDropdown: boolean = false;
|
|
@@ -94,7 +82,6 @@ export default class CodeBlock extends LightningElement {
|
|
|
94
82
|
}
|
|
95
83
|
set codeBlock(value: string) {
|
|
96
84
|
this._codeBlockRendered = false;
|
|
97
|
-
this._loaderHeightSet = false;
|
|
98
85
|
let match;
|
|
99
86
|
this._codeBlock = (
|
|
100
87
|
(match = preTagRegexp.exec(value.trim())) === null
|
|
@@ -115,60 +102,6 @@ export default class CodeBlock extends LightningElement {
|
|
|
115
102
|
return cx(`dx-theme-${this.theme}`);
|
|
116
103
|
}
|
|
117
104
|
|
|
118
|
-
get showLoaderUI(): boolean {
|
|
119
|
-
return (
|
|
120
|
-
this.showLoadingIndicator &&
|
|
121
|
-
!this._codeBlockRendered &&
|
|
122
|
-
this._loaderHeightSet
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
private calculateContainerHeight(): number | null {
|
|
127
|
-
const computedStyle = window.getComputedStyle(this.template.host);
|
|
128
|
-
const customHeight = computedStyle.getPropertyValue(
|
|
129
|
-
"--dx-code-block-height"
|
|
130
|
-
);
|
|
131
|
-
|
|
132
|
-
// If custom height is set, use it
|
|
133
|
-
if (
|
|
134
|
-
customHeight &&
|
|
135
|
-
customHeight !== "unset" &&
|
|
136
|
-
!customHeight.includes("auto")
|
|
137
|
-
) {
|
|
138
|
-
return parseFloat(customHeight);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// If no custom height, calculate from number of lines + padding
|
|
142
|
-
if (this.codeBlock) {
|
|
143
|
-
const lines = this.codeBlock.split("\n").length;
|
|
144
|
-
const lineHeight = 20; // px
|
|
145
|
-
const verticalPadding = 28; // 14px top + 14px bottom
|
|
146
|
-
return lines * lineHeight + verticalPadding;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
return null; // No height calculation possible
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
private showPlainLoader(): void {
|
|
153
|
-
if (!this.showLoadingIndicator) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
const containerHeight = this.calculateContainerHeight();
|
|
158
|
-
if (containerHeight) {
|
|
159
|
-
// Set height on the content container for proper positioning
|
|
160
|
-
const contentContainer = this.template.querySelector(
|
|
161
|
-
".code-block-content"
|
|
162
|
-
) as HTMLElement;
|
|
163
|
-
if (contentContainer) {
|
|
164
|
-
contentContainer.style.height = `${containerHeight}px`;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
// Mark that loader height is set, which will show the loader
|
|
168
|
-
this._loaderHeightSet = true;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
105
|
private initializeTheme() {
|
|
173
106
|
window.addEventListener(EVENT_NAME, this.toggleTheme);
|
|
174
107
|
const darkModeSetting = localStorage.getItem(
|
|
@@ -186,9 +119,6 @@ export default class CodeBlock extends LightningElement {
|
|
|
186
119
|
}
|
|
187
120
|
|
|
188
121
|
async formatCodeBlock() {
|
|
189
|
-
// Show loading indicator immediately
|
|
190
|
-
this.showPlainLoader();
|
|
191
|
-
|
|
192
122
|
const divEl = this.template.querySelector("div.code-block-content");
|
|
193
123
|
const templateEl = document.createElement("template");
|
|
194
124
|
|
|
@@ -286,8 +216,6 @@ export default class CodeBlock extends LightningElement {
|
|
|
286
216
|
);
|
|
287
217
|
}
|
|
288
218
|
}
|
|
289
|
-
// Content is now rendered, hide the loader
|
|
290
|
-
this._codeBlockRendered = true;
|
|
291
219
|
}
|
|
292
220
|
}
|
|
293
221
|
|
|
@@ -376,6 +304,7 @@ export default class CodeBlock extends LightningElement {
|
|
|
376
304
|
this.selectedLanguageLabel = this.selectedLanguage.label;
|
|
377
305
|
this.selectedLanguageId = this.selectedLanguage.id;
|
|
378
306
|
this.formatCodeBlock();
|
|
307
|
+
this._codeBlockRendered = true;
|
|
379
308
|
}
|
|
380
309
|
|
|
381
310
|
disconnectedCallback(): void {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<img class={imageClassName} src={imageAssetPath} alt={imageAlt} />
|
|
4
4
|
<img
|
|
5
5
|
class="image-alt-small"
|
|
6
|
-
src="https://a.sfdcstatic.com/developer-website/images/binary-cloud-circle-small.svg"
|
|
6
|
+
src="https://a.sfdcstatic.com/developer-website/prod/images/binary-cloud-circle-small.svg"
|
|
7
7
|
alt="Cloud with binary code floating above"
|
|
8
8
|
lwc:if={altVariant}
|
|
9
9
|
/>
|
|
@@ -60,10 +60,10 @@ export default class EmptyState extends LightningElement {
|
|
|
60
60
|
|
|
61
61
|
get imageAssetPath() {
|
|
62
62
|
return this.variant === "base"
|
|
63
|
-
? `https://a.sfdcstatic.com/developer-website/images/docs-empty-state${
|
|
63
|
+
? `https://a.sfdcstatic.com/developer-website/prod/images/docs-empty-state${
|
|
64
64
|
this.size === "small" ? "-small" : ""
|
|
65
65
|
}.svg`
|
|
66
|
-
: `https://a.sfdcstatic.com/developer-website/images/binary-cloud-circle${
|
|
66
|
+
: `https://a.sfdcstatic.com/developer-website/prod/images/binary-cloud-circle${
|
|
67
67
|
this.size === "small" ? "-small" : ""
|
|
68
68
|
}.svg`;
|
|
69
69
|
}
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
.error_container {
|
|
10
10
|
background-color: #3a49da;
|
|
11
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/bottom-right.svg"),
|
|
12
|
-
url("https://a.sfdcstatic.com/developer-website/images/lower-left.svg"),
|
|
13
|
-
url("https://a.sfdcstatic.com/developer-website/images/top-right.svg");
|
|
11
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/bottom-right.svg"),
|
|
12
|
+
url("https://a.sfdcstatic.com/developer-website/prod/images/lower-left.svg"),
|
|
13
|
+
url("https://a.sfdcstatic.com/developer-website/prod/images/top-right.svg");
|
|
14
14
|
background-position: right bottom, left 90%, right top;
|
|
15
15
|
background-repeat: no-repeat;
|
|
16
16
|
padding: var(--dx-g-spacing-3xl) calc(var(--dx-g-spacing-3xl) + 20px) 130px
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
:host {
|
|
5
5
|
--dx-c-feature-img-box-shadow: 0 6px 30px 0 rgb(0 20 45 / 40%);
|
|
6
|
-
--dx-c-feature-description-left-img-src: url("https://a.sfdcstatic.com/developer-website/images/feature-backdrop1.svg");
|
|
6
|
+
--dx-c-feature-description-left-img-src: url("https://a.sfdcstatic.com/developer-website/prod/images/feature-backdrop1.svg");
|
|
7
7
|
--dx-c-feature-description-max-width: 31.75rem;
|
|
8
8
|
--dx-c-feature-img-margin-left: auto;
|
|
9
9
|
--dx-c-feature-img-container-padding: 4rem;
|
|
@@ -83,7 +83,7 @@ section {
|
|
|
83
83
|
|
|
84
84
|
.description-right .image {
|
|
85
85
|
margin-right: auto;
|
|
86
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/feature-backdrop2.svg");
|
|
86
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/feature-backdrop2.svg");
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.image-display-container {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<div if:true={isDisplay} class="image-display-container">
|
|
22
22
|
<img
|
|
23
23
|
class="image-display"
|
|
24
|
-
src="https://a.sfdcstatic.com/developer-website/images/featured-demo-art-blank.svg"
|
|
24
|
+
src="https://a.sfdcstatic.com/developer-website/prod/images/featured-demo-art-blank.svg"
|
|
25
25
|
alt={header}
|
|
26
26
|
/>
|
|
27
27
|
<div class="image-container">
|
|
@@ -221,8 +221,8 @@
|
|
|
221
221
|
|
|
222
222
|
.custom-bg-trial::after {
|
|
223
223
|
content: "";
|
|
224
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/trial-left.svg"),
|
|
225
|
-
url("https://a.sfdcstatic.com/developer-website/images/trial-right.svg");
|
|
224
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/trial-left.svg"),
|
|
225
|
+
url("https://a.sfdcstatic.com/developer-website/prod/images/trial-right.svg");
|
|
226
226
|
background-position: var(--dx-g-page-padding-horizontal) 50px,
|
|
227
227
|
right 15px top;
|
|
228
228
|
background-repeat: no-repeat;
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
|
|
236
236
|
@media screen and (max-width: 1024px) {
|
|
237
237
|
.custom-bg-trial::after {
|
|
238
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/trial-left.svg");
|
|
238
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/trial-left.svg");
|
|
239
239
|
background-position: 48px 30px;
|
|
240
240
|
background-size: contain;
|
|
241
241
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
|
|
244
244
|
.custom-bg-big-moon::after {
|
|
245
245
|
content: "";
|
|
246
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/big-moon.svg");
|
|
246
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/big-moon.svg");
|
|
247
247
|
background-position: top right;
|
|
248
248
|
background-repeat: no-repeat;
|
|
249
249
|
position: absolute;
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
justify-content: center;
|
|
259
259
|
align-items: center;
|
|
260
260
|
position: absolute;
|
|
261
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/blue-circle.svg");
|
|
261
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/blue-circle.svg");
|
|
262
262
|
top: 110px;
|
|
263
263
|
right: 230px;
|
|
264
264
|
left: unset;
|
|
@@ -6,10 +6,10 @@ const treesMobile =
|
|
|
6
6
|
|
|
7
7
|
// These codey-* ones are a bit of a hack for now: we were only given a PNG and limited time, so we're wrapping the PNG in an SVG.
|
|
8
8
|
const codeyDesktop =
|
|
9
|
-
'<svg class="codey-desktop" width="381" height="337" viewBox="0 0 381 337" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><image width="381" height="337" xlink:href="https://a.sfdcstatic.com/developer-website/images/podcast-bear.png" />';
|
|
9
|
+
'<svg class="codey-desktop" width="381" height="337" viewBox="0 0 381 337" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><image width="381" height="337" xlink:href="https://a.sfdcstatic.com/developer-website/prod/images/podcast-bear.png" />';
|
|
10
10
|
|
|
11
11
|
const codeyMobile =
|
|
12
|
-
'<svg class="codey-mobile" width="381" height="337" viewBox="0 0 381 337" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><image width="381" height="337" xlink:href="https://a.sfdcstatic.com/developer-website/images/podcast-bear.png" />';
|
|
12
|
+
'<svg class="codey-mobile" width="381" height="337" viewBox="0 0 381 337" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><image width="381" height="337" xlink:href="https://a.sfdcstatic.com/developer-website/prod/images/podcast-bear.png" />';
|
|
13
13
|
|
|
14
14
|
const moonDesktop =
|
|
15
15
|
'<svg width="1221" height="507" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M745.819 45.482c0 24.567-19.915 44.482-44.482 44.482s-44.483-19.915-44.483-44.482C656.854 20.916 676.77 1 701.337 1c24.567 0 44.482 19.916 44.482 44.482"/><path d="M745.819 45.482c0 24.567-19.915 44.482-44.482 44.482s-44.483-19.915-44.483-44.482C656.854 20.916 676.77 1 701.337 1c24.567 0 44.482 19.916 44.482 44.482Z" stroke="#90D0FE" stroke-width="2"/><path d="M476.154 420.627a4.095 4.095 0 1 1-8.191 0 4.095 4.095 0 1 1 8.19 0ZM99.154 150.627a4.095 4.095 0 1 1-8.191 0 4.095 4.095 0 1 1 8.19 0ZM1210.142 97.587l-1.518 4.1a1.063 1.063 0 0 1-.631.633l-4.102 1.518c-.933.346-.933 1.664 0 2.009l4.102 1.517c.293.109.523.34.63.633l1.519 4.102c.346.93 1.664.93 2.009 0l1.517-4.102c.109-.293.34-.524.633-.633l4.102-1.517c.932-.345.932-1.663 0-2.01l-4.102-1.517a1.068 1.068 0 0 1-.633-.632l-1.517-4.101c-.345-.933-1.663-.933-2.01 0ZM8.142 490.372l-1.518 4.1a1.067 1.067 0 0 1-.632.633l-4.1 1.518c-.934.345-.934 1.664 0 2.009l4.1 1.517c.293.109.524.34.632.633l1.518 4.1c.345.933 1.664.933 2.01 0l1.516-4.1c.11-.293.34-.524.633-.633l4.101-1.517c.932-.345.932-1.664 0-2.01l-4.1-1.517a1.071 1.071 0 0 1-.634-.632l-1.517-4.101c-.345-.933-1.664-.933-2.009 0ZM127.142 115.587l-1.518 4.1a1.064 1.064 0 0 1-.632.633l-4.1 1.518c-.934.346-.934 1.664 0 2.009l4.1 1.517c.293.109.524.34.632.633l1.518 4.102c.345.93 1.664.93 2.01 0l1.516-4.102c.11-.293.34-.524.633-.633l4.101-1.517c.932-.345.932-1.663 0-2.01l-4.1-1.517a1.068 1.068 0 0 1-.634-.632l-1.517-4.101c-.345-.933-1.664-.933-2.009 0ZM909.009 306.108c-5.999-11.612-9.387-24.793-9.387-38.765 0-11.403 2.257-22.279 6.348-32.206M1067.92 255.215c.568 3.96.862 8.01.862 12.129 0 46.713-37.867 84.58-84.58 84.58-28.474 0-53.664-14.071-68.99-35.64M911.555 224.004c14.768-24.701 41.776-41.24 72.647-41.24 38.302 0 70.658 25.459 81.068 60.378M1055.511 147.787l-3.452 9.329a2.439 2.439 0 0 1-1.44 1.44l-9.329 3.452c-2.121.784-2.121 3.784 0 4.569l9.329 3.452a2.436 2.436 0 0 1 1.44 1.44l3.452 9.329c.785 2.12 3.785 2.12 4.569 0l3.452-9.33a2.441 2.441 0 0 1 1.44-1.44l9.329-3.451c2.121-.785 2.121-3.785 0-4.57l-9.329-3.451a2.444 2.444 0 0 1-1.44-1.44l-3.452-9.33c-.784-2.12-3.784-2.12-4.569 0ZM919.251 376.385c0 5.69-4.614 10.304-10.306 10.304-5.69 0-10.305-4.613-10.305-10.305 0-5.692 4.614-10.306 10.305-10.306 5.692 0 10.306 4.615 10.306 10.307Z" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M984.116 224.502a5.027 5.027 0 1 1-10.054 0 5.027 5.027 0 0 1 10.054 0" fill="#90D0FE"/><path stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M1046.716 254.771h29.772M1087.929 254.771h7.089M902.279 225.33h23.242M870.108 225.33h10.053"/><path d="M893.055 225.33a2.01 2.01 0 1 1-4.021 0 2.01 2.01 0 0 1 4.02 0" fill="#90D0FE"/><path stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M893.425 315.627h31.409"/><path d="M936.898 315.627a2.011 2.011 0 1 1-4.023 0 2.011 2.011 0 0 1 4.023 0" fill="#90D0FE"/><path stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M1013.52 292.398v-16.036M1021.537 284.382l-16.051.002"/></g></svg>';
|
|
@@ -118,7 +118,7 @@ footer.signup-variant-no-signup {
|
|
|
118
118
|
height: 112px;
|
|
119
119
|
width: 110px;
|
|
120
120
|
margin-right: var(--dx-g-spacing-lg);
|
|
121
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-trees.svg");
|
|
121
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/footer-graphic-trees.svg");
|
|
122
122
|
filter: var(--dx-g-svg-filter);
|
|
123
123
|
}
|
|
124
124
|
|
|
@@ -126,7 +126,7 @@ footer.signup-variant-no-signup {
|
|
|
126
126
|
height: 96px;
|
|
127
127
|
width: 220px;
|
|
128
128
|
margin-right: var(--dx-g-spacing-lg);
|
|
129
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-mountains-2.svg");
|
|
129
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/footer-graphic-mountains-2.svg");
|
|
130
130
|
filter: var(--dx-g-svg-filter);
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -137,7 +137,7 @@ footer.signup-variant-no-signup {
|
|
|
137
137
|
bottom: 0;
|
|
138
138
|
height: 56px;
|
|
139
139
|
width: 100px;
|
|
140
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-mountains-small-2.svg");
|
|
140
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/footer-graphic-mountains-small-2.svg");
|
|
141
141
|
filter: var(--dx-g-svg-filter);
|
|
142
142
|
}
|
|
143
143
|
|
|
@@ -145,7 +145,7 @@ footer.signup-variant-no-signup {
|
|
|
145
145
|
height: 66px;
|
|
146
146
|
width: 52px;
|
|
147
147
|
margin-left: var(--dx-g-spacing-lg);
|
|
148
|
-
background-image: url("https://a.sfdcstatic.com/developer-website/images/footer-graphic-trees-small.svg");
|
|
148
|
+
background-image: url("https://a.sfdcstatic.com/developer-website/prod/images/footer-graphic-trees-small.svg");
|
|
149
149
|
filter: var(--dx-g-svg-filter);
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
>
|
|
49
49
|
<a class="logo" href="/">
|
|
50
50
|
<img
|
|
51
|
-
src="https://a.sfdcstatic.com/developer-website/images/salesforce-logo-corporate.svg"
|
|
51
|
+
src="https://a.sfdcstatic.com/developer-website/prod/images/salesforce-logo-corporate.svg"
|
|
52
52
|
alt="Salesforce logo"
|
|
53
53
|
/>
|
|
54
54
|
</a>
|
|
@@ -170,7 +170,7 @@ export const termsLinks = [
|
|
|
170
170
|
{
|
|
171
171
|
href: "https://www.salesforce.com/form/other/privacy-request/",
|
|
172
172
|
label: "Your Privacy Choices",
|
|
173
|
-
img: "https://a.sfdcstatic.com/developer-website/images/privacyoptions.svg"
|
|
173
|
+
img: "https://a.sfdcstatic.com/developer-website/prod/images/privacyoptions.svg"
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
href: "https://www.salesforce.com/company/disclosure/",
|
|
@@ -195,7 +195,7 @@ export default class Input extends LightningElement {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
private get shortcutImgSrc() {
|
|
198
|
-
return `https://a.sfdcstatic.com/developer-website/images/${this.commandKey}.svg`;
|
|
198
|
+
return `https://a.sfdcstatic.com/developer-website/prod/images/${this.commandKey}.svg`;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
private get shortcutImgAlt() {
|
|
@@ -3,7 +3,7 @@ import { LightningElement, api } from "lwc";
|
|
|
3
3
|
export default class Logo extends LightningElement {
|
|
4
4
|
@api href: string = "/";
|
|
5
5
|
@api imgSrc: string =
|
|
6
|
-
"https://a.sfdcstatic.com/developer-website/images/salesforce-cloud.svg";
|
|
6
|
+
"https://a.sfdcstatic.com/developer-website/prod/images/salesforce-cloud.svg";
|
|
7
7
|
@api imgAlt: string = "Salesforce logo";
|
|
8
8
|
@api label!: string;
|
|
9
9
|
}
|
|
@@ -9,7 +9,7 @@ export default html`
|
|
|
9
9
|
<div class="coveo-show-if-no-results">
|
|
10
10
|
<div class="no-results">
|
|
11
11
|
<img
|
|
12
|
-
src="https://a.sfdcstatic.com/developer-website/images/binary-cloud-circle-small.svg"
|
|
12
|
+
src="https://a.sfdcstatic.com/developer-website/prod/images/binary-cloud-circle-small.svg"
|
|
13
13
|
alt="purple cloud with floating binary numbers above"
|
|
14
14
|
/>
|
|
15
15
|
<div class="no-results-info">
|
|
@@ -311,7 +311,7 @@ li.coveo-dynamic-facet-breadcrumb-value-list-item {
|
|
|
311
311
|
|
|
312
312
|
.dx-search-header {
|
|
313
313
|
padding: var(--dx-g-spacing-xl);
|
|
314
|
-
background: url("https://a.sfdcstatic.com/developer-website/images/binary-cloud-trees.svg")
|
|
314
|
+
background: url("https://a.sfdcstatic.com/developer-website/prod/images/binary-cloud-trees.svg")
|
|
315
315
|
no-repeat 100% 0,
|
|
316
316
|
linear-gradient(
|
|
317
317
|
77deg,
|
|
@@ -352,7 +352,7 @@ li.coveo-dynamic-facet-breadcrumb-value-list-item {
|
|
|
352
352
|
|
|
353
353
|
@media (min-width: 928px) and (max-width: 1024px) {
|
|
354
354
|
.dx-search-header {
|
|
355
|
-
background: url("https://a.sfdcstatic.com/developer-website/images/binary-cloud-trees.svg")
|
|
355
|
+
background: url("https://a.sfdcstatic.com/developer-website/prod/images/binary-cloud-trees.svg")
|
|
356
356
|
no-repeat 200% 0,
|
|
357
357
|
linear-gradient(
|
|
358
358
|
77deg,
|
|
@@ -380,7 +380,7 @@ li.coveo-dynamic-facet-breadcrumb-value-list-item {
|
|
|
380
380
|
|
|
381
381
|
@media (min-width: 768px) and (max-width: 928px) {
|
|
382
382
|
.dx-search-header {
|
|
383
|
-
background: url("https://a.sfdcstatic.com/developer-website/images/binary-trees.svg")
|
|
383
|
+
background: url("https://a.sfdcstatic.com/developer-website/prod/images/binary-trees.svg")
|
|
384
384
|
no-repeat 90% 50%,
|
|
385
385
|
linear-gradient(
|
|
386
386
|
77deg,
|
|
@@ -392,7 +392,7 @@ li.coveo-dynamic-facet-breadcrumb-value-list-item {
|
|
|
392
392
|
|
|
393
393
|
@media (max-width: 768px) {
|
|
394
394
|
.dx-search-header {
|
|
395
|
-
background: url("https://a.sfdcstatic.com/developer-website/images/binary.svg")
|
|
395
|
+
background: url("https://a.sfdcstatic.com/developer-website/prod/images/binary.svg")
|
|
396
396
|
no-repeat 90% 50%,
|
|
397
397
|
linear-gradient(
|
|
398
398
|
77deg,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<img
|
|
4
4
|
if:false={hideTopGraphic}
|
|
5
5
|
class="graphic"
|
|
6
|
-
src="https://a.sfdcstatic.com/developer-website/images/dx-section-banner-graphic-1.svg"
|
|
6
|
+
src="https://a.sfdcstatic.com/developer-website/prod/images/dx-section-banner-graphic-1.svg"
|
|
7
7
|
alt=""
|
|
8
8
|
/>
|
|
9
9
|
<div class="content">
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<img
|
|
70
70
|
lwc:if={isSearchLoading}
|
|
71
71
|
class="loading-skeleton padding-horizontal"
|
|
72
|
-
src="https://a.sfdcstatic.com/developer-website/images/sidebar-loading.svg"
|
|
72
|
+
src="https://a.sfdcstatic.com/developer-website/prod/images/sidebar-loading.svg"
|
|
73
73
|
alt="loading"
|
|
74
74
|
/>
|
|
75
75
|
<template
|
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
import { CodeBlockItem } from "typings/custom";
|
|
3
|
-
import { safeDecodeURI, toJson
|
|
3
|
+
import { safeDecodeURI, toJson } from "dxUtils/normalizers";
|
|
4
4
|
import { DARK } from "dx/codeBlock";
|
|
5
5
|
|
|
6
6
|
export default class TabbedCodeBlock extends LightningElement {
|
|
7
7
|
_codeBlocks: CodeBlockItem[] = [];
|
|
8
|
-
private _showLoadingIndicator: boolean = false;
|
|
9
8
|
|
|
10
9
|
// By default, we want a dark theme for the tabbed code block; however, if the user changes the theme of any code block, it updates the same across the entire website.
|
|
11
10
|
@api defaultTheme = DARK;
|
|
12
11
|
|
|
13
|
-
@api
|
|
14
|
-
get showLoadingIndicator() {
|
|
15
|
-
return this._showLoadingIndicator;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
set showLoadingIndicator(value) {
|
|
19
|
-
this._showLoadingIndicator = normalizeBoolean(value);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
12
|
get tabs(): string {
|
|
23
13
|
// Use the code block headers to create a tabs array as a JSON string
|
|
24
14
|
return JSON.stringify(
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<img
|
|
17
17
|
if:true={showChildrenLoading}
|
|
18
18
|
class="tree-children-loading"
|
|
19
|
-
src="https://a.sfdcstatic.com/developer-website/images/sidebar-item-loading.svg"
|
|
19
|
+
src="https://a.sfdcstatic.com/developer-website/prod/images/sidebar-item-loading.svg"
|
|
20
20
|
alt="childrenLoading"
|
|
21
21
|
/>
|
|
22
22
|
<template if:true={showChildren} tabindex="0">
|