scb-wc-test 0.1.360 → 0.1.361
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.
|
@@ -55,7 +55,8 @@ import{a as I,n as p,i as V,x as b,E as j,k as A,t as q}from"../../vendor/vendor
|
|
|
55
55
|
.scb-tooltip {
|
|
56
56
|
position: absolute;
|
|
57
57
|
min-width: 120px;
|
|
58
|
-
max-width:
|
|
58
|
+
max-width: none;
|
|
59
|
+
width: max-content;
|
|
59
60
|
opacity: 0;
|
|
60
61
|
visibility: hidden;
|
|
61
62
|
z-index: var(--scb-tooltip-z-index, 1000);
|
|
@@ -79,12 +80,13 @@ import{a as I,n as p,i as V,x as b,E as j,k as A,t as q}from"../../vendor/vendor
|
|
|
79
80
|
font-style: normal;
|
|
80
81
|
line-height: var(--md-sys-typescale-body-small-line-height);
|
|
81
82
|
letter-spacing: var(--md-sys-typescale-body-small-tracking);
|
|
83
|
+
white-space: nowrap;
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
/* Plain variant */
|
|
85
87
|
|
|
86
88
|
:host([variant='plain']) .scb-tooltip {
|
|
87
|
-
max-width:
|
|
89
|
+
max-width: none;
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
:host([variant='plain']) .scb-tooltip-container {
|
|
@@ -157,7 +159,7 @@ import{a as I,n as p,i as V,x as b,E as j,k as A,t as q}from"../../vendor/vendor
|
|
|
157
159
|
gap: var(--spacing-3);
|
|
158
160
|
border-radius: var(--md-sys-shape-corner-medium);
|
|
159
161
|
min-width: 200px;
|
|
160
|
-
max-width:
|
|
162
|
+
max-width: none;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
:host([variant='rich']) .scb-tooltip-text-container {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scb-wc-test",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.361",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -428,5 +428,5 @@
|
|
|
428
428
|
},
|
|
429
429
|
"./mvc/*": "./mvc/*"
|
|
430
430
|
},
|
|
431
|
-
"buildHash": "
|
|
431
|
+
"buildHash": "586EBD00409B420F8BAFC9407DC7D9517D1263865A60AACC5828C7D248AC975D"
|
|
432
432
|
}
|
|
@@ -195,7 +195,7 @@ let U = 0, l = class extends V {
|
|
|
195
195
|
- uppdaterar host-attributet position när vi byter sida
|
|
196
196
|
*/
|
|
197
197
|
_positionTooltip(t, e) {
|
|
198
|
-
const o = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = this.getBoundingClientRect(), f = (this.offset ?? 0) + 8, v = 8, y = v, T = window.innerHeight - v,
|
|
198
|
+
const o = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = this.getBoundingClientRect(), f = (this.offset ?? 0) + 8, v = 8, y = v, T = window.innerHeight - v, w = v, x = window.innerWidth - v, O = (s) => s >= y && s + r.height <= T, $ = (s) => s >= w && s + r.width <= x, E = (s, n, a, d) => {
|
|
199
199
|
let c = 0;
|
|
200
200
|
s < a && (c += a - s);
|
|
201
201
|
const _ = s + n;
|
|
@@ -224,8 +224,8 @@ let U = 0, l = class extends V {
|
|
|
224
224
|
), I = E(
|
|
225
225
|
c,
|
|
226
226
|
r.width,
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
w,
|
|
228
|
+
x
|
|
229
229
|
);
|
|
230
230
|
return {
|
|
231
231
|
pos: s,
|
|
@@ -239,7 +239,7 @@ let U = 0, l = class extends V {
|
|
|
239
239
|
let m = k.find((s) => s.fitsV && s.fitsH) ?? k.reduce(
|
|
240
240
|
(s, n) => n.totalOverflow < s.totalOverflow ? n : s
|
|
241
241
|
);
|
|
242
|
-
const M = (s, n, a) => Math.min(Math.max(s, n), a), S = y - i.top, B = T - r.height - i.top, D =
|
|
242
|
+
const M = (s, n, a) => Math.min(Math.max(s, n), a), S = y - i.top, B = T - r.height - i.top, D = w - i.left, z = x - r.width - i.left, R = M(m.top, S, B), F = M(m.left, D, z);
|
|
243
243
|
t.style.top = `${R}px`, t.style.left = `${F}px`, this.position !== m.pos && (this.position = m.pos);
|
|
244
244
|
}
|
|
245
245
|
/*
|
|
@@ -332,7 +332,8 @@ l.styles = N`
|
|
|
332
332
|
.scb-tooltip {
|
|
333
333
|
position: absolute;
|
|
334
334
|
min-width: 120px;
|
|
335
|
-
max-width:
|
|
335
|
+
max-width: none;
|
|
336
|
+
width: max-content;
|
|
336
337
|
opacity: 0;
|
|
337
338
|
visibility: hidden;
|
|
338
339
|
z-index: var(--scb-tooltip-z-index, 1000);
|
|
@@ -356,12 +357,13 @@ l.styles = N`
|
|
|
356
357
|
font-style: normal;
|
|
357
358
|
line-height: var(--md-sys-typescale-body-small-line-height);
|
|
358
359
|
letter-spacing: var(--md-sys-typescale-body-small-tracking);
|
|
360
|
+
white-space: nowrap;
|
|
359
361
|
}
|
|
360
362
|
|
|
361
363
|
/* Plain variant */
|
|
362
364
|
|
|
363
365
|
:host([variant='plain']) .scb-tooltip {
|
|
364
|
-
max-width:
|
|
366
|
+
max-width: none;
|
|
365
367
|
}
|
|
366
368
|
|
|
367
369
|
:host([variant='plain']) .scb-tooltip-container {
|
|
@@ -434,7 +436,7 @@ l.styles = N`
|
|
|
434
436
|
gap: var(--spacing-3);
|
|
435
437
|
border-radius: var(--md-sys-shape-corner-medium);
|
|
436
438
|
min-width: 200px;
|
|
437
|
-
max-width:
|
|
439
|
+
max-width: none;
|
|
438
440
|
}
|
|
439
441
|
|
|
440
442
|
:host([variant='rich']) .scb-tooltip-text-container {
|
package/scb-wc-test.bundle.js
CHANGED
|
@@ -5728,7 +5728,8 @@
|
|
|
5728
5728
|
.scb-tooltip {
|
|
5729
5729
|
position: absolute;
|
|
5730
5730
|
min-width: 120px;
|
|
5731
|
-
max-width:
|
|
5731
|
+
max-width: none;
|
|
5732
|
+
width: max-content;
|
|
5732
5733
|
opacity: 0;
|
|
5733
5734
|
visibility: hidden;
|
|
5734
5735
|
z-index: var(--scb-tooltip-z-index, 1000);
|
|
@@ -5752,12 +5753,13 @@
|
|
|
5752
5753
|
font-style: normal;
|
|
5753
5754
|
line-height: var(--md-sys-typescale-body-small-line-height);
|
|
5754
5755
|
letter-spacing: var(--md-sys-typescale-body-small-tracking);
|
|
5756
|
+
white-space: nowrap;
|
|
5755
5757
|
}
|
|
5756
5758
|
|
|
5757
5759
|
/* Plain variant */
|
|
5758
5760
|
|
|
5759
5761
|
:host([variant='plain']) .scb-tooltip {
|
|
5760
|
-
max-width:
|
|
5762
|
+
max-width: none;
|
|
5761
5763
|
}
|
|
5762
5764
|
|
|
5763
5765
|
:host([variant='plain']) .scb-tooltip-container {
|
|
@@ -5830,7 +5832,7 @@
|
|
|
5830
5832
|
gap: var(--spacing-3);
|
|
5831
5833
|
border-radius: var(--md-sys-shape-corner-medium);
|
|
5832
5834
|
min-width: 200px;
|
|
5833
|
-
max-width:
|
|
5835
|
+
max-width: none;
|
|
5834
5836
|
}
|
|
5835
5837
|
|
|
5836
5838
|
:host([variant='rich']) .scb-tooltip-text-container {
|