@salesforcedevs/dx-components 0.78.2-alpha → 0.79.2-alpha.0
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
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": "0.
|
|
3
|
+
"version": "0.79.2-alpha.0",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -27,5 +27,6 @@
|
|
|
27
27
|
"@types/lodash.get": "^4.4.6",
|
|
28
28
|
"@types/lodash.kebabcase": "^4.1.7",
|
|
29
29
|
"@types/vimeo__player": "^2.16.2"
|
|
30
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"gitHead": "1968be492da3999898cb9229e05f6c00e1d70283"
|
|
31
32
|
}
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
/>
|
|
21
21
|
</a>
|
|
22
22
|
<div
|
|
23
|
-
class="
|
|
23
|
+
class="
|
|
24
|
+
dx-card-base_section-vertical dx-card-base_column
|
|
25
|
+
card_section-text
|
|
26
|
+
"
|
|
24
27
|
>
|
|
25
28
|
<span if:true={label} part="label" class="label dx-text-label-3">
|
|
26
29
|
{label}
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
class="image dx-card-base_image"
|
|
8
8
|
/>
|
|
9
9
|
<div
|
|
10
|
-
class="
|
|
10
|
+
class="
|
|
11
|
+
dx-card-base_section-vertical dx-card-base_column
|
|
12
|
+
card_section-text
|
|
13
|
+
"
|
|
11
14
|
>
|
|
12
|
-
<span class="dx-text-label-3">{label}</span>
|
|
13
15
|
<dx-card-title title={title} target={target}></dx-card-title>
|
|
14
16
|
<span class="dx-text-body-2">{body}</span>
|
|
15
17
|
</div>
|
|
@@ -25,10 +25,10 @@ export default class Feature extends LightningElement {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
get target(): string {
|
|
28
|
-
return this.isExternalLink ?
|
|
28
|
+
return this.isExternalLink ? "_blank" : "_self";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
get iconSymbol(): string {
|
|
32
|
-
return this.isExternalLink ?
|
|
32
|
+
return this.isExternalLink ? "new_window" : "";
|
|
33
33
|
}
|
|
34
|
-
}
|
|
34
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* Code generated by scripts/postinstall.js DO NOT EDIT*/
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
/* -------------------------------------------------------------------
|
|
5
4
|
Microtip
|
|
6
5
|
|
|
@@ -16,254 +15,251 @@
|
|
|
16
15
|
3. Position Modifiers
|
|
17
16
|
--------------------------------------------------------------------*/
|
|
18
17
|
|
|
19
|
-
|
|
20
18
|
/* ------------------------------------------------
|
|
21
19
|
[1] Base Styles
|
|
22
20
|
-------------------------------------------------*/
|
|
23
21
|
|
|
24
22
|
[aria-label][role~="tooltip"] {
|
|
25
|
-
|
|
23
|
+
position: relative;
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
[aria-label][role~="tooltip"]::before,
|
|
29
27
|
[aria-label][role~="tooltip"]::after {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
transform: translate3d(0, 0, 0);
|
|
29
|
+
-webkit-backface-visibility: hidden;
|
|
30
|
+
backface-visibility: hidden;
|
|
31
|
+
will-change: transform;
|
|
32
|
+
opacity: 0;
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
transition: all var(--microtip-transition-duration, 0.18s)
|
|
35
|
+
var(--microtip-transition-easing, ease-in-out)
|
|
36
|
+
var(--microtip-transition-delay, 0s);
|
|
37
|
+
position: absolute;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
z-index: 10;
|
|
40
|
+
transform-origin: top;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
[aria-label][role~="tooltip"]::before {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
background-size: 100% auto !important;
|
|
45
|
+
content: "";
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
[aria-label][role~="tooltip"]::after {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
background: rgba(17, 17, 17, 0.9);
|
|
50
|
+
border-radius: 4px;
|
|
51
|
+
color: #ffffff;
|
|
52
|
+
content: attr(aria-label);
|
|
53
|
+
font-size: var(--microtip-font-size, 13px);
|
|
54
|
+
font-weight: var(--microtip-font-weight, normal);
|
|
55
|
+
text-transform: var(--microtip-text-transform, none);
|
|
56
|
+
padding: 0.5em 1em;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
box-sizing: content-box;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
[aria-label][role~="tooltip"]:hover::before,
|
|
62
62
|
[aria-label][role~="tooltip"]:hover::after,
|
|
63
63
|
[aria-label][role~="tooltip"]:focus::before,
|
|
64
64
|
[aria-label][role~="tooltip"]:focus::after {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
opacity: 1;
|
|
66
|
+
pointer-events: auto;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
69
|
/* ------------------------------------------------
|
|
72
70
|
[2] Position Modifiers
|
|
73
71
|
-------------------------------------------------*/
|
|
74
72
|
|
|
75
73
|
[role~="tooltip"][data-microtip-position|="top"]::before {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E")
|
|
75
|
+
no-repeat;
|
|
76
|
+
height: 6px;
|
|
77
|
+
width: 18px;
|
|
78
|
+
margin-bottom: 5px;
|
|
80
79
|
}
|
|
81
80
|
|
|
82
81
|
[role~="tooltip"][data-microtip-position|="top"]::after {
|
|
83
|
-
|
|
82
|
+
margin-bottom: 11px;
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
[role~="tooltip"][data-microtip-position|="top"]::before {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
transform: translate3d(-50%, 0, 0);
|
|
87
|
+
bottom: 100%;
|
|
88
|
+
left: 50%;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
[role~="tooltip"][data-microtip-position|="top"]:hover::before {
|
|
93
|
-
|
|
92
|
+
transform: translate3d(-50%, -5px, 0);
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
[role~="tooltip"][data-microtip-position|="top"]::after {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
transform: translate3d(-50%, 0, 0);
|
|
97
|
+
bottom: 100%;
|
|
98
|
+
left: 50%;
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
[role~="tooltip"][data-microtip-position="top"]:hover::after {
|
|
103
|
-
|
|
102
|
+
transform: translate3d(-50%, -5px, 0);
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
/* ------------------------------------------------
|
|
107
106
|
[2.1] Top Left
|
|
108
107
|
-------------------------------------------------*/
|
|
109
108
|
[role~="tooltip"][data-microtip-position="top-left"]::after {
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
transform: translate3d(calc(-100% + 16px), 0, 0);
|
|
110
|
+
bottom: 100%;
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
[role~="tooltip"][data-microtip-position="top-left"]:hover::after {
|
|
115
|
-
|
|
114
|
+
transform: translate3d(calc(-100% + 16px), -5px, 0);
|
|
116
115
|
}
|
|
117
116
|
|
|
118
|
-
|
|
119
117
|
/* ------------------------------------------------
|
|
120
118
|
[2.2] Top Right
|
|
121
119
|
-------------------------------------------------*/
|
|
122
120
|
[role~="tooltip"][data-microtip-position="top-right"]::after {
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
transform: translate3d(calc(0% + -16px), 0, 0);
|
|
122
|
+
bottom: 100%;
|
|
125
123
|
}
|
|
126
124
|
|
|
127
125
|
[role~="tooltip"][data-microtip-position="top-right"]:hover::after {
|
|
128
|
-
|
|
126
|
+
transform: translate3d(calc(0% + -16px), -5px, 0);
|
|
129
127
|
}
|
|
130
128
|
|
|
131
|
-
|
|
132
129
|
/* ------------------------------------------------
|
|
133
130
|
[2.3] Bottom
|
|
134
131
|
-------------------------------------------------*/
|
|
135
132
|
[role~="tooltip"][data-microtip-position|="bottom"]::before {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E")
|
|
134
|
+
no-repeat;
|
|
135
|
+
height: 6px;
|
|
136
|
+
width: 18px;
|
|
137
|
+
margin-top: 5px;
|
|
138
|
+
margin-bottom: 0;
|
|
141
139
|
}
|
|
142
140
|
|
|
143
141
|
[role~="tooltip"][data-microtip-position|="bottom"]::after {
|
|
144
|
-
|
|
142
|
+
margin-top: 11px;
|
|
145
143
|
}
|
|
146
144
|
|
|
147
145
|
[role~="tooltip"][data-microtip-position|="bottom"]::before {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
transform: translate3d(-50%, -10px, 0);
|
|
147
|
+
bottom: auto;
|
|
148
|
+
left: 50%;
|
|
149
|
+
top: 100%;
|
|
152
150
|
}
|
|
153
151
|
|
|
154
152
|
[role~="tooltip"][data-microtip-position|="bottom"]:hover::before {
|
|
155
|
-
|
|
153
|
+
transform: translate3d(-50%, 0, 0);
|
|
156
154
|
}
|
|
157
155
|
|
|
158
156
|
[role~="tooltip"][data-microtip-position|="bottom"]::after {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
transform: translate3d(-50%, -10px, 0);
|
|
158
|
+
top: 100%;
|
|
159
|
+
left: 50%;
|
|
162
160
|
}
|
|
163
161
|
|
|
164
162
|
[role~="tooltip"][data-microtip-position="bottom"]:hover::after {
|
|
165
|
-
|
|
163
|
+
transform: translate3d(-50%, 0, 0);
|
|
166
164
|
}
|
|
167
165
|
|
|
168
|
-
|
|
169
166
|
/* ------------------------------------------------
|
|
170
167
|
[2.4] Bottom Left
|
|
171
168
|
-------------------------------------------------*/
|
|
172
169
|
[role~="tooltip"][data-microtip-position="bottom-left"]::after {
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
transform: translate3d(calc(-100% + 16px), -10px, 0);
|
|
171
|
+
top: 100%;
|
|
175
172
|
}
|
|
176
173
|
|
|
177
174
|
[role~="tooltip"][data-microtip-position="bottom-left"]:hover::after {
|
|
178
|
-
|
|
175
|
+
transform: translate3d(calc(-100% + 16px), 0, 0);
|
|
179
176
|
}
|
|
180
177
|
|
|
181
|
-
|
|
182
178
|
/* ------------------------------------------------
|
|
183
179
|
[2.5] Bottom Right
|
|
184
180
|
-------------------------------------------------*/
|
|
185
181
|
[role~="tooltip"][data-microtip-position="bottom-right"]::after {
|
|
186
|
-
|
|
187
|
-
|
|
182
|
+
transform: translate3d(calc(0% + -16px), -10px, 0);
|
|
183
|
+
top: 100%;
|
|
188
184
|
}
|
|
189
185
|
|
|
190
186
|
[role~="tooltip"][data-microtip-position="bottom-right"]:hover::after {
|
|
191
|
-
|
|
187
|
+
transform: translate3d(calc(0% + -16px), 0, 0);
|
|
192
188
|
}
|
|
193
189
|
|
|
194
|
-
|
|
195
190
|
/* ------------------------------------------------
|
|
196
191
|
[2.6] Left
|
|
197
192
|
-------------------------------------------------*/
|
|
198
193
|
[role~="tooltip"][data-microtip-position="left"]::before,
|
|
199
194
|
[role~="tooltip"][data-microtip-position="left"]::after {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
195
|
+
bottom: auto;
|
|
196
|
+
left: auto;
|
|
197
|
+
right: 100%;
|
|
198
|
+
top: 50%;
|
|
199
|
+
transform: translate3d(10px, -50%, 0);
|
|
205
200
|
}
|
|
206
201
|
|
|
207
202
|
[role~="tooltip"][data-microtip-position="left"]::before {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
203
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E")
|
|
204
|
+
no-repeat;
|
|
205
|
+
height: 18px;
|
|
206
|
+
width: 6px;
|
|
207
|
+
margin-right: 5px;
|
|
208
|
+
margin-bottom: 0;
|
|
213
209
|
}
|
|
214
210
|
|
|
215
211
|
[role~="tooltip"][data-microtip-position="left"]::after {
|
|
216
|
-
|
|
212
|
+
margin-right: 11px;
|
|
217
213
|
}
|
|
218
214
|
|
|
219
215
|
[role~="tooltip"][data-microtip-position="left"]:hover::before,
|
|
220
216
|
[role~="tooltip"][data-microtip-position="left"]:hover::after {
|
|
221
|
-
|
|
217
|
+
transform: translate3d(0, -50%, 0);
|
|
222
218
|
}
|
|
223
219
|
|
|
224
|
-
|
|
225
220
|
/* ------------------------------------------------
|
|
226
221
|
[2.7] Right
|
|
227
222
|
-------------------------------------------------*/
|
|
228
223
|
[role~="tooltip"][data-microtip-position="right"]::before,
|
|
229
224
|
[role~="tooltip"][data-microtip-position="right"]::after {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
225
|
+
bottom: auto;
|
|
226
|
+
left: 100%;
|
|
227
|
+
top: 50%;
|
|
228
|
+
transform: translate3d(-10px, -50%, 0);
|
|
234
229
|
}
|
|
235
230
|
|
|
236
231
|
[role~="tooltip"][data-microtip-position="right"]::before {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
232
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E")
|
|
233
|
+
no-repeat;
|
|
234
|
+
height: 18px;
|
|
235
|
+
width: 6px;
|
|
236
|
+
margin-bottom: 0;
|
|
237
|
+
margin-left: 5px;
|
|
242
238
|
}
|
|
243
239
|
|
|
244
240
|
[role~="tooltip"][data-microtip-position="right"]::after {
|
|
245
|
-
|
|
241
|
+
margin-left: 11px;
|
|
246
242
|
}
|
|
247
243
|
|
|
248
244
|
[role~="tooltip"][data-microtip-position="right"]:hover::before,
|
|
249
245
|
[role~="tooltip"][data-microtip-position="right"]:hover::after {
|
|
250
|
-
|
|
246
|
+
transform: translate3d(0, -50%, 0);
|
|
251
247
|
}
|
|
252
248
|
|
|
253
249
|
/* ------------------------------------------------
|
|
254
250
|
[3] Size
|
|
255
251
|
-------------------------------------------------*/
|
|
256
252
|
[role~="tooltip"][data-microtip-size="small"]::after {
|
|
257
|
-
|
|
258
|
-
|
|
253
|
+
white-space: initial;
|
|
254
|
+
width: 80px;
|
|
259
255
|
}
|
|
260
256
|
|
|
261
257
|
[role~="tooltip"][data-microtip-size="medium"]::after {
|
|
262
|
-
|
|
263
|
-
|
|
258
|
+
white-space: initial;
|
|
259
|
+
width: 150px;
|
|
264
260
|
}
|
|
265
261
|
|
|
266
262
|
[role~="tooltip"][data-microtip-size="large"]::after {
|
|
267
|
-
|
|
268
|
-
|
|
263
|
+
white-space: initial;
|
|
264
|
+
width: 260px;
|
|
269
265
|
}
|