fleetcor-lwc 3.16.0 → 3.17.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.
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
<template lwc:render-mode="light">
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
tabindex="0"
|
|
4
|
+
class={computedStyles}
|
|
5
|
+
onmousedown={handleMousedownView}
|
|
6
|
+
onfocus={handleShowView}
|
|
7
|
+
onblur={handleHideView}
|
|
8
|
+
>
|
|
3
9
|
<div class="flt-picklist__wrapp">
|
|
4
10
|
<div class="flt-picklist__wrapp-text">
|
|
5
11
|
<div lwc:if={placeholderVisible} class="flt-picklist__placeholder">{placeholder}</div>
|
|
@@ -10,13 +16,15 @@
|
|
|
10
16
|
height="24"
|
|
11
17
|
viewBox="0 0 24 24"
|
|
12
18
|
fill="none"
|
|
13
|
-
class="flt-picklist__view-arrow"
|
|
19
|
+
class="flt-picklist__view-arrow"
|
|
20
|
+
>
|
|
14
21
|
<path
|
|
15
22
|
d="M19 9L12 16L5 9"
|
|
16
23
|
stroke-width="2"
|
|
17
24
|
stroke-linecap="round"
|
|
18
25
|
stroke-linejoin="round"
|
|
19
|
-
class="flt-picklist__view-arrow-path"
|
|
26
|
+
class="flt-picklist__view-arrow-path"
|
|
27
|
+
></path>
|
|
20
28
|
</svg>
|
|
21
29
|
</div>
|
|
22
30
|
<div class="flt-picklist__dropdown-container">
|
|
@@ -28,14 +36,16 @@
|
|
|
28
36
|
onclick={handleChange}
|
|
29
37
|
data-value={option.value}
|
|
30
38
|
class="flt-picklist__option flt-picklist__option_selected"
|
|
31
|
-
lwc:inner-html={option.label}
|
|
39
|
+
lwc:inner-html={option.label}
|
|
40
|
+
></div>
|
|
32
41
|
<div
|
|
33
42
|
lwc:else
|
|
34
43
|
onclick={handleChange}
|
|
35
44
|
key={option.value}
|
|
36
45
|
data-value={option.value}
|
|
37
46
|
class="flt-picklist__option"
|
|
38
|
-
lwc:inner-html={option.label}
|
|
47
|
+
lwc:inner-html={option.label}
|
|
48
|
+
></div>
|
|
39
49
|
</template>
|
|
40
50
|
</div>
|
|
41
51
|
</div>
|
|
@@ -75,6 +75,13 @@ export default class Picklist extends SelectElement {
|
|
|
75
75
|
this.querySelector('.flt-picklist').blur()
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
handleMousedownView(event) {
|
|
79
|
+
if (event.currentTarget === document.activeElement) {
|
|
80
|
+
event.currentTarget.blur();
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
78
85
|
handleShowView(event) {
|
|
79
86
|
event.stopPropagation()
|
|
80
87
|
if (!this.disabled) {
|