@salesforcedevs/dx-components 1.3.36 → 1.3.37-alpha01
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 +3 -4
- package/src/modules/dx/cardNews/cardNews.css +14 -0
- package/src/modules/dx/cardNews/cardNews.ts +2 -1
- package/src/modules/dx/mainContentHeader/mainContentHeader.html +6 -1
- package/src/modules/dx/searchResults/coveo.css +32 -31
- package/src/modules/dx/searchResults/searchResults.css +5 -0
- package/src/modules/dx/searchResults/searchResults.ts +10 -0
- 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.37-alpha01",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@sfdocs-internal/wires": "^0.6.3",
|
|
16
16
|
"@vimeo/player": "^2.16.4",
|
|
17
17
|
"classnames": "^2.2.6",
|
|
18
|
-
"coveo-search-ui": "^2.
|
|
18
|
+
"coveo-search-ui": "^2.10104.0",
|
|
19
19
|
"debounce": "^1.2.0",
|
|
20
20
|
"js-cookie": "^3.0.1",
|
|
21
21
|
"lodash.defaults": "^4.2.0",
|
|
@@ -37,6 +37,5 @@
|
|
|
37
37
|
"@types/vimeo__player": "^2.16.2",
|
|
38
38
|
"eventsourcemock": "^2.0.0",
|
|
39
39
|
"luxon": "^3.1.0"
|
|
40
|
-
}
|
|
41
|
-
"gitHead": "83327a09abf6351d1cac3a905c5feb729356507a"
|
|
40
|
+
}
|
|
42
41
|
}
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
@import "dxHelpers/text";
|
|
3
3
|
@import "dxHelpers/card";
|
|
4
4
|
|
|
5
|
+
:host {
|
|
6
|
+
--dx-c-feature-img-padding-top: 0;
|
|
7
|
+
--dx-c-feature-img-padding-right: 0;
|
|
8
|
+
--dx-c-feature-img-padding-left: 0;
|
|
9
|
+
--dx-c-feature-img-padding-bottom: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
5
12
|
.dx-card-news {
|
|
6
13
|
position: relative;
|
|
7
14
|
display: flex;
|
|
@@ -157,3 +164,10 @@ img {
|
|
|
157
164
|
max-width: 25%;
|
|
158
165
|
}
|
|
159
166
|
}
|
|
167
|
+
|
|
168
|
+
.dx-card-news-img-padding {
|
|
169
|
+
padding: var(--dx-c-feature-img-padding-top)
|
|
170
|
+
var(--dx-c-feature-img-padding-right)
|
|
171
|
+
var(--dx-c-feature-img-padding-bottom)
|
|
172
|
+
var(--dx-c-feature-img-padding-left);
|
|
173
|
+
}
|
|
@@ -59,7 +59,8 @@ export default class CardNews extends LightningElement {
|
|
|
59
59
|
return cx(
|
|
60
60
|
this.imgVerticalAlign &&
|
|
61
61
|
`dx-card-news-img-vertical-align-${this.imgVerticalAlign}`,
|
|
62
|
-
this.textContainerWidth === "large" && `dx-card-news-img-small
|
|
62
|
+
this.textContainerWidth === "large" && `dx-card-news-img-small`,
|
|
63
|
+
`dx-card-news-img-padding`
|
|
63
64
|
);
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -6,7 +6,12 @@
|
|
|
6
6
|
<span if:true={subtitle} class="subtitle dx-text-heading-4b">
|
|
7
7
|
{subtitle}
|
|
8
8
|
</span>
|
|
9
|
-
<dx-button
|
|
9
|
+
<dx-button
|
|
10
|
+
onclick={onCtaClick}
|
|
11
|
+
href={ctaHref}
|
|
12
|
+
target={ctaTarget}
|
|
13
|
+
size="large"
|
|
14
|
+
>
|
|
10
15
|
{ctaLabel}
|
|
11
16
|
</dx-button>
|
|
12
17
|
</div>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Code generated by scripts/postinstall.js DO NOT EDIT
|
|
3
|
-
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/*
|
|
4
6
|
* @param direction vertical or horizontal
|
|
5
7
|
* @param position type of positioning to apply (relative/absolute)
|
|
6
8
|
*/
|
|
@@ -1376,6 +1378,15 @@ Code generated by scripts/postinstall.js DO NOT EDIT
|
|
|
1376
1378
|
.coveo-filetype-salesforce-standard-work-order-item,
|
|
1377
1379
|
.coveo-filetype-salesforce-standard-work-order,
|
|
1378
1380
|
.coveo-filetype-salesforce-standard-work-type,
|
|
1381
|
+
.coveo-filetype-slack,
|
|
1382
|
+
.coveo-icon.filetype.Slackmessage,
|
|
1383
|
+
.coveo-icon.filetype.slackmessage,
|
|
1384
|
+
.coveo-icon.filetype.Slackchannel,
|
|
1385
|
+
.coveo-icon.filetype.slackchannel,
|
|
1386
|
+
.coveo-icon.filetype.Slackfile,
|
|
1387
|
+
.coveo-icon.filetype.slackfile,
|
|
1388
|
+
.coveo-icon.filetype.Slackuser,
|
|
1389
|
+
.coveo-icon.filetype.slackuser,
|
|
1379
1390
|
.coveo-filetype-user,
|
|
1380
1391
|
.coveo-icon.objecttype.People,
|
|
1381
1392
|
.coveo-icon.objecttype.people,
|
|
@@ -1584,21 +1595,6 @@ Code generated by scripts/postinstall.js DO NOT EDIT
|
|
|
1584
1595
|
background-size: 56px 64px;
|
|
1585
1596
|
}
|
|
1586
1597
|
|
|
1587
|
-
.coveo-filetype-slack,
|
|
1588
|
-
.coveo-icon.filetype.Slackmessage,
|
|
1589
|
-
.coveo-icon.filetype.slackmessage,
|
|
1590
|
-
.coveo-icon.filetype.Slackchannel,
|
|
1591
|
-
.coveo-icon.filetype.slackchannel,
|
|
1592
|
-
.coveo-icon.filetype.Slackfile,
|
|
1593
|
-
.coveo-icon.filetype.slackfile,
|
|
1594
|
-
.coveo-icon.filetype.Slackuser,
|
|
1595
|
-
.coveo-icon.filetype.slackuser {
|
|
1596
|
-
display: inline-block;
|
|
1597
|
-
width: 124px;
|
|
1598
|
-
height: 124px;
|
|
1599
|
-
background-size: 124px 124px;
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
1598
|
.coveo-filetype-attachment-small,
|
|
1603
1599
|
.coveo-icon.objecttype.coveo-small.Attachment,
|
|
1604
1600
|
.coveo-icon.objecttype.coveo-small.attachment,
|
|
@@ -2124,6 +2120,15 @@ Code generated by scripts/postinstall.js DO NOT EDIT
|
|
|
2124
2120
|
.coveo-filetype-salesforce-standard-work-order-item-small,
|
|
2125
2121
|
.coveo-filetype-salesforce-standard-work-order-small,
|
|
2126
2122
|
.coveo-filetype-salesforce-standard-work-type-small,
|
|
2123
|
+
.coveo-filetype-slack-small,
|
|
2124
|
+
.coveo-icon.filetype.coveo-small.Slackmessage,
|
|
2125
|
+
.coveo-icon.filetype.coveo-small.slackmessage,
|
|
2126
|
+
.coveo-icon.filetype.coveo-small.Slackchannel,
|
|
2127
|
+
.coveo-icon.filetype.coveo-small.slackchannel,
|
|
2128
|
+
.coveo-icon.filetype.coveo-small.Slackfile,
|
|
2129
|
+
.coveo-icon.filetype.coveo-small.slackfile,
|
|
2130
|
+
.coveo-icon.filetype.coveo-small.Slackuser,
|
|
2131
|
+
.coveo-icon.filetype.coveo-small.slackuser,
|
|
2127
2132
|
.coveo-filetype-user-small,
|
|
2128
2133
|
.coveo-icon.objecttype.coveo-small.People,
|
|
2129
2134
|
.coveo-icon.objecttype.coveo-small.people,
|
|
@@ -2332,21 +2337,6 @@ Code generated by scripts/postinstall.js DO NOT EDIT
|
|
|
2332
2337
|
background-size: 28px 32px;
|
|
2333
2338
|
}
|
|
2334
2339
|
|
|
2335
|
-
.coveo-filetype-slack-small,
|
|
2336
|
-
.coveo-icon.filetype.coveo-small.Slackmessage,
|
|
2337
|
-
.coveo-icon.filetype.coveo-small.slackmessage,
|
|
2338
|
-
.coveo-icon.filetype.coveo-small.Slackchannel,
|
|
2339
|
-
.coveo-icon.filetype.coveo-small.slackchannel,
|
|
2340
|
-
.coveo-icon.filetype.coveo-small.Slackfile,
|
|
2341
|
-
.coveo-icon.filetype.coveo-small.slackfile,
|
|
2342
|
-
.coveo-icon.filetype.coveo-small.Slackuser,
|
|
2343
|
-
.coveo-icon.filetype.coveo-small.slackuser {
|
|
2344
|
-
display: inline-block;
|
|
2345
|
-
width: 62px;
|
|
2346
|
-
height: 62px;
|
|
2347
|
-
background-size: 62px 62px;
|
|
2348
|
-
}
|
|
2349
|
-
|
|
2350
2340
|
.coveo-filetype-attachment,
|
|
2351
2341
|
.coveo-icon.objecttype.Attachment,
|
|
2352
2342
|
.coveo-icon.objecttype.attachment,
|
|
@@ -8065,6 +8055,13 @@ select.coveo-dropdown::-ms-expand {
|
|
|
8065
8055
|
* @param $size size of the icon to use
|
|
8066
8056
|
*/
|
|
8067
8057
|
|
|
8058
|
+
@font-face {
|
|
8059
|
+
font-family: 'Lato';
|
|
8060
|
+
src: url('https://static.cloud.coveo.com/searchui/v2.10104/0/fonts/lato.woff2'), url('https://staticdev.cloud.coveo.com/searchui/v2.10104/0/fonts/lato.woff2'), url('../fonts/lato.woff2'), url('https://static.cloud.coveo.com/searchui/v2.10104/0/fonts/lato.woff'), url('https://staticdev.cloud.coveo.com/searchui/v2.10104/0/fonts/lato.woff'), url('../fonts/lato.woff');
|
|
8061
|
+
font-weight: normal;
|
|
8062
|
+
font-style: normal;
|
|
8063
|
+
}
|
|
8064
|
+
|
|
8068
8065
|
.CoveoSearchInterface {
|
|
8069
8066
|
min-height: 100%;
|
|
8070
8067
|
position: relative;
|
|
@@ -18738,6 +18735,10 @@ button.coveo-user-feedback-banner-explain-why-active {
|
|
|
18738
18735
|
* @param $size size of the icon to use
|
|
18739
18736
|
*/
|
|
18740
18737
|
|
|
18738
|
+
.coveo-user-explanation-modal .coveo-small-close {
|
|
18739
|
+
display: none;
|
|
18740
|
+
}
|
|
18741
|
+
|
|
18741
18742
|
.coveo-user-explanation-modal-explanation-section {
|
|
18742
18743
|
display: flex;
|
|
18743
18744
|
flex-wrap: wrap;
|
|
@@ -37,6 +37,7 @@ const resultsTemplatesInnerHtml = `
|
|
|
37
37
|
data-field-publicurl=""
|
|
38
38
|
>
|
|
39
39
|
<div class="dx-result">
|
|
40
|
+
<span class="CoveoFieldValue" data-field="@content_type" data-helper="badge" data-html-value="true"></span>
|
|
40
41
|
<p class="dx-result-title">
|
|
41
42
|
<a
|
|
42
43
|
class="CoveoResultLink"
|
|
@@ -52,6 +53,7 @@ const resultsTemplatesInnerHtml = `
|
|
|
52
53
|
type="text/html"
|
|
53
54
|
>
|
|
54
55
|
<div class="dx-result">
|
|
56
|
+
<span class="CoveoFieldValue" data-field="@content_type" data-helper="badge" data-html-value="true"></span>
|
|
55
57
|
<p class="dx-result-title">
|
|
56
58
|
<a class="CoveoResultLink"></a>
|
|
57
59
|
</p>
|
|
@@ -169,6 +171,14 @@ export default class SearchResults extends LightningElement {
|
|
|
169
171
|
|
|
170
172
|
this.attachListeners(this.root);
|
|
171
173
|
|
|
174
|
+
Coveo.TemplateHelpers.registerTemplateHelper(
|
|
175
|
+
"badge",
|
|
176
|
+
(value: string) => {
|
|
177
|
+
console.log({ value });
|
|
178
|
+
return `<dx-type-badge variant="${value}"></dx-type-badge>`;
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
|
|
172
182
|
Coveo.init(this.root);
|
|
173
183
|
}
|
|
174
184
|
|
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.
|