fleetcor-lwc 2.7.2 → 2.7.4
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
|
@@ -415,6 +415,15 @@ $FLT_RADIO_GROUP_CIRCLE_DISABLED_SELECTED_BG_COLOR: var(
|
|
|
415
415
|
|
|
416
416
|
## Release Notes:
|
|
417
417
|
|
|
418
|
+
- v.2.7.4
|
|
419
|
+
- Tooltip bug fix with render content
|
|
420
|
+
|
|
421
|
+
---
|
|
422
|
+
- v.2.7.3
|
|
423
|
+
- Added required class marker for the checkbox component
|
|
424
|
+
|
|
425
|
+
---
|
|
426
|
+
|
|
418
427
|
- v.2.7.2
|
|
419
428
|
- Added variant for the RadioGroupIcon: 'hide-checkbox'
|
|
420
429
|
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
<template lwc:render-mode="light">
|
|
2
2
|
<label class={computedLabelClass}>
|
|
3
3
|
<input
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
class="flt-checkbox__input"
|
|
5
|
+
type="checkbox"
|
|
6
|
+
checked={value}
|
|
7
|
+
disabled={disabled}
|
|
8
|
+
onchange={handleChange}
|
|
9
|
+
/>
|
|
10
|
+
|
|
9
11
|
<span class={computedSpanClass}>
|
|
10
12
|
<svg
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
if:true={value}
|
|
14
|
+
class="flt-checkbox__icon-agree"
|
|
15
|
+
width="20"
|
|
16
|
+
height="20"
|
|
17
|
+
viewBox="0 0 20 20"
|
|
18
|
+
fill="none"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
>
|
|
18
21
|
<path
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
class="flt-checkbox__icon-agree-path"
|
|
23
|
+
d="M3.75 10.625L8.75 15.625L16.25 4.375"
|
|
24
|
+
stroke-width="2"
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round"
|
|
27
|
+
></path>
|
|
24
28
|
</svg>
|
|
25
29
|
</span>
|
|
30
|
+
|
|
26
31
|
<div class="flt-checkbox__label"></div>
|
|
27
32
|
</label>
|
|
28
33
|
<div class={computedErrorMessage}>{errorMessage}</div>
|
|
@@ -33,6 +33,7 @@ export default class Checkbox extends CheckboxElement {
|
|
|
33
33
|
get computedLabelClass() {
|
|
34
34
|
return this.generateClassNameList({
|
|
35
35
|
'flt-checkbox': true,
|
|
36
|
+
'flt-checkbox_required': this.required,
|
|
36
37
|
'flt-checkbox_active': this.value,
|
|
37
38
|
'flt-checkbox_disabled': this.disabled,
|
|
38
39
|
'flt-checkbox_error': this.error,
|
|
@@ -351,9 +351,12 @@ export default class Tooltip extends BaseElement {
|
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
renderedCallback() {
|
|
354
|
+
const text = this.firstChild.querySelector('.flt-tooltip__text')
|
|
354
355
|
if (this.firstSetup) {
|
|
355
356
|
this.firstSetup = !this.firstSetup
|
|
356
357
|
this.update()
|
|
358
|
+
} else if (this.content != text.innerHTML) {
|
|
359
|
+
this.update()
|
|
357
360
|
}
|
|
358
361
|
}
|
|
359
362
|
}
|