fleetcor-lwc 1.4.1 → 1.4.2
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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template lwc:render-mode="light">
|
|
2
|
-
<div class="tooltip" onmouseover={over} ontouchstart={over} onmouseout={out} ontouchend={out}>
|
|
2
|
+
<div class="flt-tooltip" onmouseover={over} ontouchstart={over} onmouseout={out} ontouchend={out}>
|
|
3
3
|
<slot></slot>
|
|
4
4
|
<div if:true={content} class={tooltipVisibility} style={conentStyle}>
|
|
5
|
-
<svg class="tooltip__svg" height={svgH} width={svgW} style={svgStyle}>
|
|
6
|
-
<path class="tooltip__path" d={svgD}></path>
|
|
5
|
+
<svg class="flt-tooltip__svg" height={svgH} width={svgW} style={svgStyle}>
|
|
6
|
+
<path class="flt-tooltip__path" d={svgD}></path>
|
|
7
7
|
</svg>
|
|
8
|
-
<p class="tooltip__text" style={textStyle}></p>
|
|
8
|
+
<p class="flt-tooltip__text" style={textStyle}></p>
|
|
9
9
|
</div>
|
|
10
10
|
</div>
|
|
11
11
|
</template>
|
|
@@ -56,7 +56,7 @@ export default class Tooltip extends LightningElement {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
get tooltipVisibility() {
|
|
59
|
-
return this.active ? 'tooltip__content tooltip__content_visible' : 'tooltip__content'
|
|
59
|
+
return this.active ? 'flt-tooltip__content flt-tooltip__content_visible' : 'flt-tooltip__content'
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
get svgD() {
|
|
@@ -207,7 +207,7 @@ export default class Tooltip extends LightningElement {
|
|
|
207
207
|
|
|
208
208
|
update() {
|
|
209
209
|
if (this.content) {
|
|
210
|
-
const text = this.firstChild.querySelector('.tooltip__text')
|
|
210
|
+
const text = this.firstChild.querySelector('.flt-tooltip__text')
|
|
211
211
|
text.innerHTML = this.content
|
|
212
212
|
this.createTooltip()
|
|
213
213
|
}
|
|
@@ -232,7 +232,7 @@ export default class Tooltip extends LightningElement {
|
|
|
232
232
|
|
|
233
233
|
createTooltip() {
|
|
234
234
|
// 1. find width of tooltip
|
|
235
|
-
const text = this.firstChild.querySelector('.tooltip__text')
|
|
235
|
+
const text = this.firstChild.querySelector('.flt-tooltip__text')
|
|
236
236
|
this.minimalWidth = getLineWidth(text)
|
|
237
237
|
if (this.minimalWidth < this.maxWidth) {
|
|
238
238
|
this.minimalWidth = this.minimalWidth + this.paddingX * 2 + 2 * this.delta
|