fleetcor-lwc 3.16.0 → 3.18.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/README.md
CHANGED
|
@@ -952,16 +952,30 @@ You can override them as you wish by global css variables as priority.
|
|
|
952
952
|
<details>
|
|
953
953
|
<summary>Click to expand/collapse</summary>
|
|
954
954
|
|
|
955
|
+
v.3.18.0
|
|
956
|
+
|
|
957
|
+
- Bug fix `flt-picklist` component
|
|
958
|
+
|
|
959
|
+
---
|
|
960
|
+
|
|
961
|
+
v.3.17.0
|
|
962
|
+
|
|
963
|
+
- Bug fix `flt-picklist` component
|
|
964
|
+
|
|
965
|
+
---
|
|
966
|
+
|
|
955
967
|
v.3.16.0
|
|
956
968
|
|
|
957
969
|
- Update `flt-input-text` - it's become more powerfull with type number
|
|
958
970
|
|
|
959
971
|
---
|
|
972
|
+
|
|
960
973
|
v.3.15.0
|
|
961
974
|
|
|
962
975
|
- Added to `flt-input-with-picklist` api attribute `inputmode` and `input-type`
|
|
963
976
|
|
|
964
977
|
---
|
|
978
|
+
|
|
965
979
|
v.3.14.0
|
|
966
980
|
|
|
967
981
|
- Added to `flt-input-text`, `flt-input-email`, `flt-input-phone` api attribute `inputmode`
|
|
@@ -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,19 @@ export default class Picklist extends SelectElement {
|
|
|
75
75
|
this.querySelector('.flt-picklist').blur()
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
handleMousedownView(event) {
|
|
79
|
+
let classList = event.target.parentElement.classList;
|
|
80
|
+
|
|
81
|
+
if (
|
|
82
|
+
event.currentTarget === document.activeElement &&
|
|
83
|
+
!classList.contains('flt-picklist__dropdown') &&
|
|
84
|
+
!classList.contains('flt-picklist__dropdown-container')
|
|
85
|
+
) {
|
|
86
|
+
event.currentTarget.blur();
|
|
87
|
+
event.preventDefault();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
78
91
|
handleShowView(event) {
|
|
79
92
|
event.stopPropagation()
|
|
80
93
|
if (!this.disabled) {
|