@salesforcedevs/dx-components 1.3.279 → 1.3.281-alpha
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 +2 -3
- package/src/assets/icons/salesforcebrand-sprite/svg/symbols.svg +20 -0
- package/src/modules/dx/agenda/agenda.html +1 -0
- package/src/modules/dx/cardClickthrough/cardClickthrough.css +11 -0
- package/src/modules/dx/cardTitle/cardTitle.css +1 -1
- package/src/modules/dx/coveoRecommendations/coveoRecommendations.ts +16 -2
- package/src/modules/dx/footer/footer.css +1 -0
- package/src/modules/dxBaseElements/headerBase/headerBase.ts +2 -1
- package/src/modules/dxConstants/brands/brands.ts +2 -1
- package/LICENSE +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.281-alpha",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -45,6 +45,5 @@
|
|
|
45
45
|
},
|
|
46
46
|
"volta": {
|
|
47
47
|
"node": "16.19.1"
|
|
48
|
-
}
|
|
49
|
-
"gitHead": "b70fd3b3f6d1791b810f152f08dfe315cfaf0bd9"
|
|
48
|
+
}
|
|
50
49
|
}
|
|
@@ -63,6 +63,26 @@
|
|
|
63
63
|
<ellipse class="ast2" cx="26.9" cy="41.6" rx="1.7" ry="2.4"/>
|
|
64
64
|
<path class="ast2" d="M40.4 41.6c0-1.3-.7-2.4-1.7-2.4-.9 0-1.7 1.1-1.7 2.4s.7 2.4 1.7 2.4 1.7-1.1 1.7-2.4zM25 38.5c.2-.7 1.3-1.1 2.1-.9.7.2 1.6-.2 1.8-.9.2-.7-.2-1.6-.9-1.8-2.4-.8-5 .4-5.7 2.7-.2.7.2 1.6.9 1.8.7.2 1.5-.2 1.8-.9zM36.9 35.2c-.7.4-1 1.2-.6 1.9s1.2 1 1.9.6c.8-.4 1.9-.2 2.3.5.4.7 1.2 1 1.9.6s1-1.2.6-1.9c-1.1-2.1-3.9-2.8-6.1-1.7z"/>
|
|
65
65
|
</symbol>
|
|
66
|
+
<symbol id="einstein" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
|
|
67
|
+
<ellipse fill="#032d60" cx="26.9" cy="41.6" rx="1.7" ry="2.4"/>
|
|
68
|
+
<path fill="#032d60" d="M40.4 41.6c0-1.3-.7-2.4-1.7-2.4-.9 0-1.7 1.1-1.7 2.4s.7 2.4 1.7 2.4 1.7-1.1 1.7-2.4zM25 38.5c.2-.7 1.3-1.1 2.1-.9.7.2 1.6-.2 1.8-.9.2-.7-.2-1.6-.9-1.8-2.4-.8-5 .4-5.7 2.7-.2.7.2 1.6.9 1.8.7.2 1.5-.2 1.8-.9zM36.9 35.2c-.7.4-1 1.2-.6 1.9s1.2 1 1.9.6c.8-.4 1.9-.2 2.3.5.4.7 1.2 1 1.9.6s1-1.2.6-1.9c-1.1-2.1-3.9-2.8-6.1-1.7z"/>
|
|
69
|
+
<path fill="#032d60" d="M62.5 32.9c-.1-.6-.5-1.1-1-1.3-.5-.3-1.1-.3-1.7-.1-1.2.5-3.3 1-4.4.6.2-.1.3-.2.5-.3.8-.4 1.4-.8 2.2-1 1-.3 1.7-1.4 1.4-2.4-.7-2.5-2-4.5-4.2-6.2.5-.5.9-1 1.1-1.5.3-.6.3-1.2.1-1.8-.3-.6-.8-1-1.4-1.1-2.1-.5-5-1.7-6.9-2.7-1.8-1-3.7-1-5.5-.7 0-1.4-.2-2.5-.3-3.2-.5-1.9-1.7-3.4-3.2-4.1-.4-.2-.9-.3-1.4-.1-2 .5-5.6 1.7-8.2 3.3C28 8 25.3 6 23.2 5.4c-.6-.2-1.3-.1-1.8.3s-.8 1-.8 1.6c0 1.1-.5 1.9-1.5 3.2-1 1.3-2.1 2.9-2.5 5.2-3.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0 .1 0 0c-2.4 3.4-6.7 5.3-12 5.3-8.5 0-13.5-4-14.2-11.2-.5-4.1.1-9.5 5-13.1 2.5 1.4 6.5 2.7 8.6 2.7.8 0 1.5-.4 1.8-1.2.3-.7.2-1.5-.3-2.1-.4-.5-.8-1.1-1-1.7 3.3 1.3 6.8 3.5 8.2 5.7.4.7 1.2 1 1.9.9.6-.1 1.1-.2 1.6-.5 1.8 3.6 3.4 9.6.4 15.2z"/>
|
|
70
|
+
<path fill="#032d60" d="M35.3 45.1c-.1 0-.3 0-.4.1-.4.6-1.2 1-2.1 1-.9 0-1.7-.4-2.1-1-.1-.1-.2-.2-.4-.2-1.8.4-3.6 1.3-5.4 2.6-.6.4-.9 1.1-.9 1.8 0 1 .2 1.6.7 2 .3.3.7.4 1.2.4.7 0 1.6-.2 2.6-.5 1.2-.3 2.6-.7 4-.7 1.3 0 2.7.3 4 .6 1.8.4 3.4.8 4.3.1.4-.4.7-.9.7-1.8 0-.6-.2-1.1-.7-1.5-.6-.6-2.7-2.2-5.5-2.9z"/>
|
|
71
|
+
</symbol>
|
|
72
|
+
<symbol id="einstein-filled" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
|
|
73
|
+
<style>.ast0{fill:#0d9dda}.ast1{fill:#fff}.ast2{fill:#032d60}</style>
|
|
74
|
+
<path class="ast0" d="m53.9 42 2-.3c.6-.2 3.3-1.4 3-5.8-1.7.4-4.1.6-5.9-.5-1-.6-2.2-1.7-2.4-3.9-.1-.7.2-1.4.7-1.8.2-.2.4-.3.6-.4.7-.3 1.3-.6 1.9-1 .3-.2.7-.4 1.1-.6-.7-1.4-1.9-2.5-4-3.6-.6-.3-1-.9-1-1.6 0-.7.3-1.3.8-1.7l.1-.1c-1.7-.6-3.4-1.4-4.7-2.1-1.2-.7-2.9-.3-4.8.1l-.4.1c-.6.1-1.2 0-1.7-.4s-.7-1-.7-1.6c.1-2.6-.1-4.1-.2-4.6s-.3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ast2" d="M40.4 41.6c0-1.3-.7-2.4-1.7-2.4-.9 0-1.7 1.1-1.7 2.4s.7 2.4 1.7 2.4 1.7-1.1 1.7-2.4zM25 38.5c.2-.7 1.3-1.1 2.1-.9.7.2 1.6-.2 1.8-.9.2-.7-.2-1.6-.9-1.8-2.4-.8-5 .4-5.7 2.7-.2.7.2 1.6.9 1.8.7.2 1.5-.2 1.8-.9zM36.9 35.2c-.7.4-1 1.2-.6 1.9s1.2 1 1.9.6c.8-.4 1.9-.2 2.3.5.4.7 1.2 1 1.9.6s1-1.2.6-1.9c-1.1-2.1-3.9-2.8-6.1-1.7z"/>
|
|
85
|
+
</symbol>
|
|
66
86
|
<symbol id="automotive" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg">
|
|
67
87
|
<g clip-path="url(#clip0_1284_14491)">
|
|
68
88
|
<path
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
:host {
|
|
6
6
|
--dx-c-heading-max-lines: 4;
|
|
7
7
|
--dx-c-card-grid-max-width: 60px;
|
|
8
|
+
--dx-c-card-title-word-break: keep-all;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
.card {
|
|
@@ -16,6 +17,15 @@
|
|
|
16
17
|
cursor: default;
|
|
17
18
|
}
|
|
18
19
|
|
|
20
|
+
/* Specificity of this rule and the next is required to override default "base" card behavior */
|
|
21
|
+
.card.dx-card-base.not-clickable:hover {
|
|
22
|
+
box-shadow: var(--dx-g-box-shadow-sm); /* no shadow as if clickable */
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.card.dx-card-base.not-clickable:hover dx-card-title {
|
|
26
|
+
--dx-c-card-title-color: var(--dx-g-text-heading-color);
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
.image {
|
|
20
30
|
width: 100%;
|
|
21
31
|
height: 160px;
|
|
@@ -63,6 +73,7 @@
|
|
|
63
73
|
height: fit-content;
|
|
64
74
|
line-height: 24px;
|
|
65
75
|
padding: 0 12px;
|
|
76
|
+
text-wrap: nowrap;
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
/* text section */
|
|
@@ -15,7 +15,7 @@ h3.dx-text-display-6 {
|
|
|
15
15
|
font-size: var(--dx-c-card-title-font-size);
|
|
16
16
|
line-height: var(--dx-c-card-title-line-height);
|
|
17
17
|
letter-spacing: var(--dx-c-card-title-letter-spacing);
|
|
18
|
-
word-break: break-word;
|
|
18
|
+
word-break: var(--dx-c-card-title-word-break, break-word);
|
|
19
19
|
hyphens: auto;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -15,9 +15,15 @@ interface Recommendation {
|
|
|
15
15
|
clickEvent: () => void;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
const language_to_locale_map = {
|
|
19
|
+
english: "en",
|
|
20
|
+
japanese: "ja"
|
|
21
|
+
};
|
|
22
|
+
|
|
18
23
|
export default class CoveoRecommendations extends LightningElement {
|
|
19
24
|
@api coveoAuthToken!: string;
|
|
20
25
|
@api coveoOrganizationId!: string;
|
|
26
|
+
@api postAcf: string = "{}";
|
|
21
27
|
|
|
22
28
|
_recommendations = [] as Recommendation[];
|
|
23
29
|
|
|
@@ -28,6 +34,13 @@ export default class CoveoRecommendations extends LightningElement {
|
|
|
28
34
|
showRecommendations = true;
|
|
29
35
|
recommendationsLoading = true;
|
|
30
36
|
|
|
37
|
+
getLocale() {
|
|
38
|
+
const acf = JSON.parse(this.postAcf);
|
|
39
|
+
return language_to_locale_map[
|
|
40
|
+
(acf?.language as keyof typeof language_to_locale_map) || "english"
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
|
|
31
44
|
connectedCallback() {
|
|
32
45
|
const actionsHistory = localStorage.getItem(
|
|
33
46
|
"__coveo.analytics.history"
|
|
@@ -42,6 +55,7 @@ export default class CoveoRecommendations extends LightningElement {
|
|
|
42
55
|
method: "POST",
|
|
43
56
|
body: JSON.stringify({
|
|
44
57
|
pipeline: "Recommendations_Developer_Blogs",
|
|
58
|
+
locale: this.getLocale(),
|
|
45
59
|
searchHub: SEARCH_HUB,
|
|
46
60
|
numberOfResults: 3,
|
|
47
61
|
actionsHistory: JSON.parse(actionsHistory!),
|
|
@@ -94,7 +108,7 @@ export default class CoveoRecommendations extends LightningElement {
|
|
|
94
108
|
logSearchAnalytics = (uid: string, time: number) => {
|
|
95
109
|
const payload = {
|
|
96
110
|
anonymous: true,
|
|
97
|
-
language:
|
|
111
|
+
language: this.getLocale(),
|
|
98
112
|
originLevel1: SEARCH_HUB,
|
|
99
113
|
originLevel2: SEARCH_HUB,
|
|
100
114
|
actionCause: "recommendationInterfaceLoad",
|
|
@@ -121,7 +135,7 @@ export default class CoveoRecommendations extends LightningElement {
|
|
|
121
135
|
documentPosition: index,
|
|
122
136
|
documentTitle: this._recommendations[index].originalCoveoData.title,
|
|
123
137
|
documentUrl: this._recommendations[index].originalCoveoData.uri,
|
|
124
|
-
language:
|
|
138
|
+
language: this.getLocale(),
|
|
125
139
|
originLevel1: SEARCH_HUB,
|
|
126
140
|
originLevel2: SEARCH_HUB,
|
|
127
141
|
actionCause: "recommendationOpen",
|
package/LICENSE
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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.
|