@salesforcedevs/dx-components 1.3.57 → 1.3.62-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 +4 -5
- package/src/modules/dx/cardTrial/cardTrial.html +3 -1
- package/src/modules/dx/cardTrial/cardTrial.ts +6 -0
- package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.css +5 -0
- package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.html +15 -10
- package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.ts +15 -1
- package/src/modules/dx/modal/modal.html +1 -1
- package/src/modules/dx/modal/modal.ts +6 -1
- package/src/modules/dx/searchResults/coveo.css +32 -31
- package/src/modules/dx/tabPanelItem/tabPanelItem.html +1 -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.62-alpha01",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@coveo/headless": "^
|
|
13
|
+
"@coveo/headless": "^2.7.1",
|
|
14
14
|
"@floating-ui/dom": "^1.0.4",
|
|
15
15
|
"@sfdocs-internal/wires": "^0.6.3",
|
|
16
16
|
"@types/throttle-debounce": "^5.0.0",
|
|
17
17
|
"@vimeo/player": "^2.16.4",
|
|
18
18
|
"classnames": "^2.2.6",
|
|
19
|
-
"coveo-search-ui": "^2.
|
|
19
|
+
"coveo-search-ui": "^2.10105.0",
|
|
20
20
|
"debounce": "^1.2.0",
|
|
21
21
|
"js-cookie": "^3.0.1",
|
|
22
22
|
"lodash.defaults": "^4.2.0",
|
|
@@ -39,6 +39,5 @@
|
|
|
39
39
|
"@types/vimeo__player": "^2.16.2",
|
|
40
40
|
"eventsourcemock": "^2.0.0",
|
|
41
41
|
"luxon": "^3.1.0"
|
|
42
|
-
}
|
|
43
|
-
"gitHead": "c5665d11db012d608e965c52cd0c332d15852392"
|
|
42
|
+
}
|
|
44
43
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
if:true={hasTwoButtons}
|
|
4
4
|
open={_modalOpen}
|
|
5
5
|
ontogglemodal={toggleModal}
|
|
6
|
+
onclosemodal={closeModal}
|
|
6
7
|
>
|
|
7
8
|
<dx-card-trial-expanded
|
|
8
9
|
badge-background-color={badgeBackgroundColor}
|
|
@@ -21,7 +22,8 @@
|
|
|
21
22
|
target={target}
|
|
22
23
|
terms={terms}
|
|
23
24
|
title={title}
|
|
24
|
-
|
|
25
|
+
type-badge-value={modalTypeBadgeValue}
|
|
26
|
+
type-badge-dark={modalTypeBadgeDark}
|
|
25
27
|
></dx-card-trial-expanded>
|
|
26
28
|
</dx-modal>
|
|
27
29
|
<div class="recommended-container" if:true={recommended}>
|
|
@@ -35,6 +35,8 @@ export default class CardTrial extends LightningElement {
|
|
|
35
35
|
@api typeBadgeColor?: string;
|
|
36
36
|
@api typeBadgeSize?: string = "default";
|
|
37
37
|
@api typeBadgeDark?: boolean = false;
|
|
38
|
+
@api modalTypeBadgeValue?: string;
|
|
39
|
+
@api modalTypeBadgeDark?: boolean;
|
|
38
40
|
|
|
39
41
|
@api
|
|
40
42
|
get details() {
|
|
@@ -98,6 +100,10 @@ export default class CardTrial extends LightningElement {
|
|
|
98
100
|
this._modalOpen = !this._modalOpen;
|
|
99
101
|
}
|
|
100
102
|
|
|
103
|
+
private closeModal() {
|
|
104
|
+
this._modalOpen = false;
|
|
105
|
+
}
|
|
106
|
+
|
|
101
107
|
private handleClick(e: PointerEvent) {
|
|
102
108
|
// card is clickable only if it doesn't contain buttons (for accessibility reasons)
|
|
103
109
|
if (!this.hasButtons) {
|
|
@@ -10,14 +10,21 @@
|
|
|
10
10
|
Close
|
|
11
11
|
</dx-button>
|
|
12
12
|
</div>
|
|
13
|
-
<div class="content-container">
|
|
13
|
+
<div class="content-container" tabindex="0" onkeydown={handleKeyDown}>
|
|
14
14
|
<div class="col-one">
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
<div class="badge-container">
|
|
16
|
+
<dx-icon-badge
|
|
17
|
+
class="badge-main"
|
|
18
|
+
background-color={badgeBackgroundColor}
|
|
19
|
+
symbol={badgeSymbol}
|
|
20
|
+
sprite={badgeSprite}
|
|
21
|
+
></dx-icon-badge>
|
|
22
|
+
<dx-type-badge
|
|
23
|
+
if:true={typeBadgeValue}
|
|
24
|
+
value={typeBadgeValue}
|
|
25
|
+
dark={typeBadgeDark}
|
|
26
|
+
></dx-type-badge>
|
|
27
|
+
</div>
|
|
21
28
|
<dx-card-title
|
|
22
29
|
class="title-main"
|
|
23
30
|
href={href}
|
|
@@ -73,9 +80,7 @@
|
|
|
73
80
|
for:each={colTwoItem.bullets}
|
|
74
81
|
for:item="bullet"
|
|
75
82
|
>
|
|
76
|
-
<li key={
|
|
77
|
-
{bullet}
|
|
78
|
-
</li>
|
|
83
|
+
<li key={bullet} class="bullet">{bullet}</li>
|
|
79
84
|
</template>
|
|
80
85
|
</ul>
|
|
81
86
|
</div>
|
|
@@ -17,6 +17,8 @@ export default class CardTrial extends LightningElement {
|
|
|
17
17
|
@api target?: string;
|
|
18
18
|
@api terms!: string;
|
|
19
19
|
@api title!: string;
|
|
20
|
+
@api typeBadgeValue?: string;
|
|
21
|
+
@api typeBadgeDark?: boolean = false;
|
|
20
22
|
|
|
21
23
|
@api
|
|
22
24
|
get details() {
|
|
@@ -75,8 +77,20 @@ export default class CardTrial extends LightningElement {
|
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
|
|
80
|
+
private handleModalToggle() {
|
|
81
|
+
this.dispatchEvent(
|
|
82
|
+
new CustomEvent("togglemodal", {
|
|
83
|
+
bubbles: true
|
|
84
|
+
})
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
78
88
|
private handleModalClose() {
|
|
79
|
-
this.dispatchEvent(
|
|
89
|
+
this.dispatchEvent(
|
|
90
|
+
new CustomEvent("closemodal", {
|
|
91
|
+
bubbles: true
|
|
92
|
+
})
|
|
93
|
+
);
|
|
80
94
|
}
|
|
81
95
|
|
|
82
96
|
private handleSignUpClick(e: PointerEvent) {
|
|
@@ -39,7 +39,7 @@ export default class Modal extends LightningElement {
|
|
|
39
39
|
|
|
40
40
|
handleKeyDown(event: KeyboardEvent): void {
|
|
41
41
|
if (event.key === "Escape") {
|
|
42
|
-
this.
|
|
42
|
+
this.handleCloseModal();
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -47,4 +47,9 @@ export default class Modal extends LightningElement {
|
|
|
47
47
|
this._open = !this._open;
|
|
48
48
|
this.dispatchEvent(new CustomEvent("togglemodal"));
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
handleCloseModal() {
|
|
52
|
+
this._open = false;
|
|
53
|
+
this.dispatchEvent(new CustomEvent("closemodal"));
|
|
54
|
+
}
|
|
50
55
|
}
|
|
@@ -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;
|
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.
|