@covalent/components 8.4.0 → 8.5.1
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/action-ribbon.js +3 -3
- package/action-ribbon.mjs +25 -24
- package/alert.js +2 -2
- package/alert.mjs +21 -20
- package/{chip-d6f5c2bb.js → chip-21138b58.js} +53 -95
- package/{chip-9c846d01.mjs → chip-eb043df9.mjs} +1139 -1326
- package/chip-set.js +8 -8
- package/chip-set.mjs +17 -15
- package/chip.js +1 -1
- package/chip.mjs +5 -3
- package/foundation-2334d146.mjs +60 -0
- package/{foundation-eff81c1e.mjs → foundation-b3e4efcd.mjs} +22 -78
- package/foundation-e830bd94.js +22 -0
- package/{foundation-786bf879.js → foundation-e980aa3d.js} +3 -24
- package/index.d.ts +4 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +99 -91
- package/keyboard-39125691.js +43 -0
- package/keyboard-983b121c.mjs +159 -0
- package/package.json +1 -1
- package/theme/dark-theme.css +1 -0
- package/theme/dark-theme.css.map +1 -0
- package/theme/light-theme.css +1 -0
- package/theme/light-theme.css.map +1 -0
- package/tooltip.js +10 -73
- package/tooltip.mjs +385 -590
package/tooltip.mjs
CHANGED
@@ -1,65 +1,10 @@
|
|
1
|
-
import { i as
|
2
|
-
import { n as
|
3
|
-
import { i as
|
4
|
-
import { a as
|
5
|
-
import { _ as
|
6
|
-
|
7
|
-
|
8
|
-
* Copyright 2016 Google Inc.
|
9
|
-
*
|
10
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
11
|
-
* of this software and associated documentation files (the "Software"), to deal
|
12
|
-
* in the Software without restriction, including without limitation the rights
|
13
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
14
|
-
* copies of the Software, and to permit persons to whom the Software is
|
15
|
-
* furnished to do so, subject to the following conditions:
|
16
|
-
*
|
17
|
-
* The above copyright notice and this permission notice shall be included in
|
18
|
-
* all copies or substantial portions of the Software.
|
19
|
-
*
|
20
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
21
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
22
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
23
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
24
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
25
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
26
|
-
* THE SOFTWARE.
|
27
|
-
*/
|
28
|
-
var ht = (
|
29
|
-
/** @class */
|
30
|
-
function() {
|
31
|
-
function e(o) {
|
32
|
-
o === void 0 && (o = {}), this.adapter = o;
|
33
|
-
}
|
34
|
-
return Object.defineProperty(e, "cssClasses", {
|
35
|
-
get: function() {
|
36
|
-
return {};
|
37
|
-
},
|
38
|
-
enumerable: !1,
|
39
|
-
configurable: !0
|
40
|
-
}), Object.defineProperty(e, "strings", {
|
41
|
-
get: function() {
|
42
|
-
return {};
|
43
|
-
},
|
44
|
-
enumerable: !1,
|
45
|
-
configurable: !0
|
46
|
-
}), Object.defineProperty(e, "numbers", {
|
47
|
-
get: function() {
|
48
|
-
return {};
|
49
|
-
},
|
50
|
-
enumerable: !1,
|
51
|
-
configurable: !0
|
52
|
-
}), Object.defineProperty(e, "defaultAdapter", {
|
53
|
-
get: function() {
|
54
|
-
return {};
|
55
|
-
},
|
56
|
-
enumerable: !1,
|
57
|
-
configurable: !0
|
58
|
-
}), e.prototype.init = function() {
|
59
|
-
}, e.prototype.destroy = function() {
|
60
|
-
}, e;
|
61
|
-
}()
|
62
|
-
);
|
1
|
+
import { i as tt, r as et, s as it, x as F, e as rt } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
+
import { n as C } from "./property-9b6ea53b.mjs";
|
3
|
+
import { i as X } from "./query-d843aa92.mjs";
|
4
|
+
import { a as ot } from "./utils-2932417c.mjs";
|
5
|
+
import { _ as nt, a as Y, c as x, e as $, f as q } from "./tslib.es6-226581a4.mjs";
|
6
|
+
import { A as at, n as st, K as lt } from "./keyboard-983b121c.mjs";
|
7
|
+
import { M as dt } from "./foundation-2334d146.mjs";
|
63
8
|
/**
|
64
9
|
* @license
|
65
10
|
* Copyright 2020 Google Inc.
|
@@ -82,10 +27,10 @@ var ht = (
|
|
82
27
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
83
28
|
* THE SOFTWARE.
|
84
29
|
*/
|
85
|
-
var
|
86
|
-
(function(
|
87
|
-
|
88
|
-
})(
|
30
|
+
var S;
|
31
|
+
(function(i) {
|
32
|
+
i.RICH = "mdc-tooltip--rich", i.SHOWN = "mdc-tooltip--shown", i.SHOWING = "mdc-tooltip--showing", i.SHOWING_TRANSITION = "mdc-tooltip--showing-transition", i.HIDE = "mdc-tooltip--hide", i.HIDE_TRANSITION = "mdc-tooltip--hide-transition", i.MULTILINE_TOOLTIP = "mdc-tooltip--multiline", i.SURFACE = "mdc-tooltip__surface", i.SURFACE_ANIMATION = "mdc-tooltip__surface-animation", i.TOOLTIP_CARET_TOP = "mdc-tooltip__caret-surface-top", i.TOOLTIP_CARET_BOTTOM = "mdc-tooltip__caret-surface-bottom";
|
33
|
+
})(S || (S = {}));
|
89
34
|
var _ = {
|
90
35
|
BOUNDED_ANCHOR_GAP: 4,
|
91
36
|
UNBOUNDED_ANCHOR_GAP: 8,
|
@@ -104,96 +49,45 @@ var _ = {
|
|
104
49
|
// LINT.IfChange(rich-tooltip-dimensions)
|
105
50
|
RICH_MAX_WIDTH: 320
|
106
51
|
// LINT.ThenChange(_tooltip.scss:rich-tooltip-dimensions)
|
107
|
-
},
|
52
|
+
}, W = {
|
108
53
|
ARIA_EXPANDED: "aria-expanded",
|
109
54
|
ARIA_HASPOPUP: "aria-haspopup",
|
110
55
|
PERSISTENT: "data-mdc-tooltip-persistent",
|
111
56
|
SCROLLABLE_ANCESTOR: "tooltip-scrollable-ancestor",
|
112
57
|
HAS_CARET: "data-mdc-tooltip-has-caret"
|
113
|
-
},
|
58
|
+
}, j = {
|
114
59
|
HIDDEN: "MDCTooltip:hidden",
|
115
60
|
SHOWN: "MDCTooltip:shown"
|
116
|
-
},
|
117
|
-
(function(
|
118
|
-
|
119
|
-
})(
|
120
|
-
var
|
121
|
-
(function(
|
122
|
-
|
123
|
-
})(
|
124
|
-
var
|
125
|
-
(function(
|
126
|
-
|
127
|
-
})(
|
128
|
-
var
|
61
|
+
}, D;
|
62
|
+
(function(i) {
|
63
|
+
i[i.DETECTED = 0] = "DETECTED", i[i.START = 1] = "START", i[i.CENTER = 2] = "CENTER", i[i.END = 3] = "END", i[i.SIDE_START = 4] = "SIDE_START", i[i.SIDE_END = 5] = "SIDE_END";
|
64
|
+
})(D || (D = {}));
|
65
|
+
var N;
|
66
|
+
(function(i) {
|
67
|
+
i[i.DETECTED = 0] = "DETECTED", i[i.ABOVE = 1] = "ABOVE", i[i.BELOW = 2] = "BELOW", i[i.SIDE = 3] = "SIDE";
|
68
|
+
})(N || (N = {}));
|
69
|
+
var U;
|
70
|
+
(function(i) {
|
71
|
+
i[i.BOUNDED = 0] = "BOUNDED", i[i.UNBOUNDED = 1] = "UNBOUNDED";
|
72
|
+
})(U || (U = {}));
|
73
|
+
var h = {
|
129
74
|
LEFT: "left",
|
130
75
|
RIGHT: "right",
|
131
76
|
CENTER: "center",
|
132
77
|
TOP: "top",
|
133
78
|
BOTTOM: "bottom"
|
134
79
|
}, p;
|
135
|
-
(function(
|
136
|
-
|
80
|
+
(function(i) {
|
81
|
+
i[i.DETECTED = 0] = "DETECTED", i[i.ABOVE_START = 1] = "ABOVE_START", i[i.ABOVE_CENTER = 2] = "ABOVE_CENTER", i[i.ABOVE_END = 3] = "ABOVE_END", i[i.TOP_SIDE_START = 4] = "TOP_SIDE_START", i[i.CENTER_SIDE_START = 5] = "CENTER_SIDE_START", i[i.BOTTOM_SIDE_START = 6] = "BOTTOM_SIDE_START", i[i.TOP_SIDE_END = 7] = "TOP_SIDE_END", i[i.CENTER_SIDE_END = 8] = "CENTER_SIDE_END", i[i.BOTTOM_SIDE_END = 9] = "BOTTOM_SIDE_END", i[i.BELOW_START = 10] = "BELOW_START", i[i.BELOW_CENTER = 11] = "BELOW_CENTER", i[i.BELOW_END = 12] = "BELOW_END";
|
137
82
|
})(p || (p = {}));
|
138
83
|
var O;
|
139
|
-
(function(
|
140
|
-
|
84
|
+
(function(i) {
|
85
|
+
i[i.ABOVE = 1] = "ABOVE", i[i.BELOW = 2] = "BELOW", i[i.SIDE_TOP = 3] = "SIDE_TOP", i[i.SIDE_CENTER = 4] = "SIDE_CENTER", i[i.SIDE_BOTTOM = 5] = "SIDE_BOTTOM";
|
141
86
|
})(O || (O = {}));
|
142
|
-
var
|
143
|
-
(function(
|
144
|
-
|
145
|
-
})(
|
146
|
-
/**
|
147
|
-
* @license
|
148
|
-
* Copyright 2020 Google Inc.
|
149
|
-
*
|
150
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
151
|
-
* of this software and associated documentation files (the "Software"), to deal
|
152
|
-
* in the Software without restriction, including without limitation the rights
|
153
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
154
|
-
* copies of the Software, and to permit persons to whom the Software is
|
155
|
-
* furnished to do so, subject to the following conditions:
|
156
|
-
*
|
157
|
-
* The above copyright notice and this permission notice shall be included in
|
158
|
-
* all copies or substantial portions of the Software.
|
159
|
-
*
|
160
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
161
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
162
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
163
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
164
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
165
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
166
|
-
* THE SOFTWARE.
|
167
|
-
*/
|
168
|
-
var pt = (
|
169
|
-
/** @class */
|
170
|
-
function() {
|
171
|
-
function e() {
|
172
|
-
this.rafIDs = /* @__PURE__ */ new Map();
|
173
|
-
}
|
174
|
-
return e.prototype.request = function(o, t) {
|
175
|
-
var r = this;
|
176
|
-
this.cancel(o);
|
177
|
-
var i = requestAnimationFrame(function(n) {
|
178
|
-
r.rafIDs.delete(o), t(n);
|
179
|
-
});
|
180
|
-
this.rafIDs.set(o, i);
|
181
|
-
}, e.prototype.cancel = function(o) {
|
182
|
-
var t = this.rafIDs.get(o);
|
183
|
-
t && (cancelAnimationFrame(t), this.rafIDs.delete(o));
|
184
|
-
}, e.prototype.cancelAll = function() {
|
185
|
-
var o = this;
|
186
|
-
this.rafIDs.forEach(function(t, r) {
|
187
|
-
o.cancel(r);
|
188
|
-
});
|
189
|
-
}, e.prototype.getQueue = function() {
|
190
|
-
var o = [];
|
191
|
-
return this.rafIDs.forEach(function(t, r) {
|
192
|
-
o.push(r);
|
193
|
-
}), o;
|
194
|
-
}, e;
|
195
|
-
}()
|
196
|
-
);
|
87
|
+
var u;
|
88
|
+
(function(i) {
|
89
|
+
i[i.START = 1] = "START", i[i.CENTER = 2] = "CENTER", i[i.END = 3] = "END", i[i.SIDE_START = 4] = "SIDE_START", i[i.SIDE_END = 5] = "SIDE_END";
|
90
|
+
})(u || (u = {}));
|
197
91
|
/**
|
198
92
|
* @license
|
199
93
|
* Copyright 2016 Google Inc.
|
@@ -216,7 +110,7 @@ var pt = (
|
|
216
110
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
217
111
|
* THE SOFTWARE.
|
218
112
|
*/
|
219
|
-
var
|
113
|
+
var J = {
|
220
114
|
animation: {
|
221
115
|
prefixed: "-webkit-animation",
|
222
116
|
standard: "animation"
|
@@ -230,13 +124,13 @@ var et = {
|
|
230
124
|
standard: "transition"
|
231
125
|
}
|
232
126
|
};
|
233
|
-
function
|
234
|
-
return !!
|
127
|
+
function ht(i) {
|
128
|
+
return !!i.document && typeof i.document.createElement == "function";
|
235
129
|
}
|
236
|
-
function
|
237
|
-
if (
|
238
|
-
var t =
|
239
|
-
return a ?
|
130
|
+
function Q(i, o) {
|
131
|
+
if (ht(i) && o in J) {
|
132
|
+
var t = i.document.createElement("div"), r = J[o], e = r.standard, n = r.prefixed, a = e in t.style;
|
133
|
+
return a ? e : n;
|
240
134
|
}
|
241
135
|
return o;
|
242
136
|
}
|
@@ -262,127 +156,28 @@ function it(e, o) {
|
|
262
156
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
263
157
|
* THE SOFTWARE.
|
264
158
|
*/
|
265
|
-
var
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
PAGE_UP: "PageUp",
|
271
|
-
PAGE_DOWN: "PageDown",
|
272
|
-
END: "End",
|
273
|
-
HOME: "Home",
|
274
|
-
ARROW_LEFT: "ArrowLeft",
|
275
|
-
ARROW_UP: "ArrowUp",
|
276
|
-
ARROW_RIGHT: "ArrowRight",
|
277
|
-
ARROW_DOWN: "ArrowDown",
|
278
|
-
DELETE: "Delete",
|
279
|
-
ESCAPE: "Escape",
|
280
|
-
TAB: "Tab"
|
281
|
-
}, D = /* @__PURE__ */ new Set();
|
282
|
-
D.add(u.BACKSPACE);
|
283
|
-
D.add(u.ENTER);
|
284
|
-
D.add(u.SPACEBAR);
|
285
|
-
D.add(u.PAGE_UP);
|
286
|
-
D.add(u.PAGE_DOWN);
|
287
|
-
D.add(u.END);
|
288
|
-
D.add(u.HOME);
|
289
|
-
D.add(u.ARROW_LEFT);
|
290
|
-
D.add(u.ARROW_UP);
|
291
|
-
D.add(u.ARROW_RIGHT);
|
292
|
-
D.add(u.ARROW_DOWN);
|
293
|
-
D.add(u.DELETE);
|
294
|
-
D.add(u.ESCAPE);
|
295
|
-
D.add(u.TAB);
|
296
|
-
var S = {
|
297
|
-
BACKSPACE: 8,
|
298
|
-
ENTER: 13,
|
299
|
-
SPACEBAR: 32,
|
300
|
-
PAGE_UP: 33,
|
301
|
-
PAGE_DOWN: 34,
|
302
|
-
END: 35,
|
303
|
-
HOME: 36,
|
304
|
-
ARROW_LEFT: 37,
|
305
|
-
ARROW_UP: 38,
|
306
|
-
ARROW_RIGHT: 39,
|
307
|
-
ARROW_DOWN: 40,
|
308
|
-
DELETE: 46,
|
309
|
-
ESCAPE: 27,
|
310
|
-
TAB: 9
|
311
|
-
}, w = /* @__PURE__ */ new Map();
|
312
|
-
w.set(S.BACKSPACE, u.BACKSPACE);
|
313
|
-
w.set(S.ENTER, u.ENTER);
|
314
|
-
w.set(S.SPACEBAR, u.SPACEBAR);
|
315
|
-
w.set(S.PAGE_UP, u.PAGE_UP);
|
316
|
-
w.set(S.PAGE_DOWN, u.PAGE_DOWN);
|
317
|
-
w.set(S.END, u.END);
|
318
|
-
w.set(S.HOME, u.HOME);
|
319
|
-
w.set(S.ARROW_LEFT, u.ARROW_LEFT);
|
320
|
-
w.set(S.ARROW_UP, u.ARROW_UP);
|
321
|
-
w.set(S.ARROW_RIGHT, u.ARROW_RIGHT);
|
322
|
-
w.set(S.ARROW_DOWN, u.ARROW_DOWN);
|
323
|
-
w.set(S.DELETE, u.DELETE);
|
324
|
-
w.set(S.ESCAPE, u.ESCAPE);
|
325
|
-
w.set(S.TAB, u.TAB);
|
326
|
-
var P = /* @__PURE__ */ new Set();
|
327
|
-
P.add(u.PAGE_UP);
|
328
|
-
P.add(u.PAGE_DOWN);
|
329
|
-
P.add(u.END);
|
330
|
-
P.add(u.HOME);
|
331
|
-
P.add(u.ARROW_LEFT);
|
332
|
-
P.add(u.ARROW_UP);
|
333
|
-
P.add(u.ARROW_RIGHT);
|
334
|
-
P.add(u.ARROW_DOWN);
|
335
|
-
function ft(e) {
|
336
|
-
var o = e.key;
|
337
|
-
if (D.has(o))
|
338
|
-
return o;
|
339
|
-
var t = w.get(e.keyCode);
|
340
|
-
return t || u.UNKNOWN;
|
341
|
-
}
|
342
|
-
/**
|
343
|
-
* @license
|
344
|
-
* Copyright 2020 Google Inc.
|
345
|
-
*
|
346
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
347
|
-
* of this software and associated documentation files (the "Software"), to deal
|
348
|
-
* in the Software without restriction, including without limitation the rights
|
349
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
350
|
-
* copies of the Software, and to permit persons to whom the Software is
|
351
|
-
* furnished to do so, subject to the following conditions:
|
352
|
-
*
|
353
|
-
* The above copyright notice and this permission notice shall be included in
|
354
|
-
* all copies or substantial portions of the Software.
|
355
|
-
*
|
356
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
357
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
358
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
359
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
360
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
361
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
362
|
-
* THE SOFTWARE.
|
363
|
-
*/
|
364
|
-
var mt = H.RICH, $ = H.SHOWN, j = H.SHOWING, z = H.SHOWING_TRANSITION, k = H.HIDE, K = H.HIDE_TRANSITION, Tt = H.MULTILINE_TOOLTIP, Q;
|
365
|
-
(function(e) {
|
366
|
-
e.POLL_ANCHOR = "poll_anchor";
|
367
|
-
})(Q || (Q = {}));
|
368
|
-
var rt = typeof window < "u", Et = (
|
159
|
+
var ct = S.RICH, G = S.SHOWN, z = S.SHOWING, V = S.SHOWING_TRANSITION, M = S.HIDE, k = S.HIDE_TRANSITION, pt = S.MULTILINE_TOOLTIP, K;
|
160
|
+
(function(i) {
|
161
|
+
i.POLL_ANCHOR = "poll_anchor";
|
162
|
+
})(K || (K = {}));
|
163
|
+
var Z = typeof window < "u", ut = (
|
369
164
|
/** @class */
|
370
|
-
function(
|
371
|
-
|
165
|
+
function(i) {
|
166
|
+
nt(o, i);
|
372
167
|
function o(t) {
|
373
|
-
var r =
|
374
|
-
return r.tooltipShown = !1, r.anchorGap = _.BOUNDED_ANCHOR_GAP, r.xTooltipPos =
|
375
|
-
r.handleAnchorBlur(
|
376
|
-
}, r.documentClickHandler = function(
|
377
|
-
r.handleDocumentClick(
|
378
|
-
}, r.documentKeydownHandler = function(
|
379
|
-
r.handleKeydown(
|
168
|
+
var r = i.call(this, Y(Y({}, o.defaultAdapter), t)) || this;
|
169
|
+
return r.tooltipShown = !1, r.anchorGap = _.BOUNDED_ANCHOR_GAP, r.xTooltipPos = D.DETECTED, r.yTooltipPos = N.DETECTED, r.tooltipPositionWithCaret = p.DETECTED, r.minViewportTooltipThreshold = _.MIN_VIEWPORT_TOOLTIP_THRESHOLD, r.hideDelayMs = _.HIDE_DELAY_MS, r.showDelayMs = _.SHOW_DELAY_MS, r.anchorRect = null, r.parentRect = null, r.frameId = null, r.hideTimeout = null, r.showTimeout = null, r.addAncestorScrollEventListeners = new Array(), r.removeAncestorScrollEventListeners = new Array(), r.animFrame = new at(), r.anchorBlurHandler = function(e) {
|
170
|
+
r.handleAnchorBlur(e);
|
171
|
+
}, r.documentClickHandler = function(e) {
|
172
|
+
r.handleDocumentClick(e);
|
173
|
+
}, r.documentKeydownHandler = function(e) {
|
174
|
+
r.handleKeydown(e);
|
380
175
|
}, r.tooltipMouseEnterHandler = function() {
|
381
176
|
r.handleTooltipMouseEnter();
|
382
177
|
}, r.tooltipMouseLeaveHandler = function() {
|
383
178
|
r.handleTooltipMouseLeave();
|
384
|
-
}, r.richTooltipFocusOutHandler = function(
|
385
|
-
r.handleRichTooltipFocusOut(
|
179
|
+
}, r.richTooltipFocusOutHandler = function(e) {
|
180
|
+
r.handleRichTooltipFocusOut(e);
|
386
181
|
}, r.windowScrollHandler = function() {
|
387
182
|
r.handleWindowScrollEvent();
|
388
183
|
}, r.windowResizeHandler = function() {
|
@@ -483,7 +278,7 @@ var rt = typeof window < "u", Et = (
|
|
483
278
|
enumerable: !1,
|
484
279
|
configurable: !0
|
485
280
|
}), o.prototype.init = function() {
|
486
|
-
this.richTooltip = this.adapter.hasClass(
|
281
|
+
this.richTooltip = this.adapter.hasClass(ct), this.persistentTooltip = this.adapter.getAttribute(W.PERSISTENT) === "true", this.interactiveTooltip = !!this.adapter.getAnchorAttribute(W.ARIA_EXPANDED) && this.adapter.getAnchorAttribute(W.ARIA_HASPOPUP) === "dialog", this.hasCaret = this.richTooltip && this.adapter.getAttribute(W.HAS_CARET) === "true";
|
487
282
|
}, o.prototype.isShown = function() {
|
488
283
|
return this.tooltipShown;
|
489
284
|
}, o.prototype.isRich = function() {
|
@@ -523,10 +318,10 @@ var rt = typeof window < "u", Et = (
|
|
523
318
|
}, o.prototype.handleDocumentClick = function(t) {
|
524
319
|
this.richTooltip && this.persistentTooltip && this.anchorOrTooltipContainsTargetElement(t.target) || this.hide();
|
525
320
|
}, o.prototype.handleKeydown = function(t) {
|
526
|
-
var r =
|
527
|
-
if (r ===
|
528
|
-
var
|
529
|
-
return this.adapter.isInstanceOfElement(
|
321
|
+
var r = st(t);
|
322
|
+
if (r === lt.ESCAPE) {
|
323
|
+
var e = this.adapter.getActiveElement(), n = !1;
|
324
|
+
return this.adapter.isInstanceOfElement(e) && (n = this.adapter.tooltipContainsElement(e)), n && this.adapter.focusAnchorElement(), this.hide(), t.stopPropagation(), !1;
|
530
325
|
}
|
531
326
|
return !0;
|
532
327
|
}, o.prototype.handleAnchorBlur = function(t) {
|
@@ -544,20 +339,20 @@ var rt = typeof window < "u", Et = (
|
|
544
339
|
this.persistentTooltip || this.hide();
|
545
340
|
}, o.prototype.handleWindowChangeEvent = function() {
|
546
341
|
var t = this;
|
547
|
-
this.animFrame.request(
|
342
|
+
this.animFrame.request(K.POLL_ANCHOR, function() {
|
548
343
|
t.repositionTooltipOnAnchorMove();
|
549
344
|
});
|
550
345
|
}, o.prototype.show = function() {
|
551
|
-
var t, r,
|
346
|
+
var t, r, e = this;
|
552
347
|
if (this.clearHideTimeout(), this.clearShowTimeout(), !this.tooltipShown) {
|
553
|
-
this.tooltipShown = !0, this.adapter.removeAttribute("aria-hidden"), this.richTooltip && (this.interactiveTooltip && this.adapter.setAnchorAttribute("aria-expanded", "true"), this.adapter.registerEventHandler("focusout", this.richTooltipFocusOutHandler)), this.persistentTooltip || (this.adapter.registerEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.registerEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), this.adapter.removeClass(
|
348
|
+
this.tooltipShown = !0, this.adapter.removeAttribute("aria-hidden"), this.richTooltip && (this.interactiveTooltip && this.adapter.setAnchorAttribute("aria-expanded", "true"), this.adapter.registerEventHandler("focusout", this.richTooltipFocusOutHandler)), this.persistentTooltip || (this.adapter.registerEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.registerEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), this.adapter.removeClass(M), this.adapter.addClass(z), this.isTooltipMultiline() && !this.richTooltip && this.adapter.addClass(pt), this.anchorRect = this.adapter.getAnchorBoundingRect(), this.parentRect = this.adapter.getParentBoundingRect(), this.richTooltip ? this.positionRichTooltip() : this.positionPlainTooltip(), this.adapter.registerAnchorEventHandler("blur", this.anchorBlurHandler), this.adapter.registerDocumentEventHandler("click", this.documentClickHandler), this.adapter.registerDocumentEventHandler("keydown", this.documentKeydownHandler), this.adapter.registerWindowEventHandler("scroll", this.windowScrollHandler), this.adapter.registerWindowEventHandler("resize", this.windowResizeHandler);
|
554
349
|
try {
|
555
|
-
for (var n =
|
350
|
+
for (var n = x(this.addAncestorScrollEventListeners), a = n.next(); !a.done; a = n.next()) {
|
556
351
|
var d = a.value;
|
557
352
|
d();
|
558
353
|
}
|
559
|
-
} catch (
|
560
|
-
t = { error:
|
354
|
+
} catch (c) {
|
355
|
+
t = { error: c };
|
561
356
|
} finally {
|
562
357
|
try {
|
563
358
|
a && !a.done && (r = n.return) && r.call(n);
|
@@ -567,15 +362,15 @@ var rt = typeof window < "u", Et = (
|
|
567
362
|
}
|
568
363
|
}
|
569
364
|
this.frameId = requestAnimationFrame(function() {
|
570
|
-
|
365
|
+
e.clearAllAnimationClasses(), e.adapter.addClass(G), e.adapter.addClass(V);
|
571
366
|
});
|
572
367
|
}
|
573
368
|
}, o.prototype.hide = function() {
|
574
369
|
var t, r;
|
575
370
|
if (this.clearHideTimeout(), this.clearShowTimeout(), !!this.tooltipShown) {
|
576
|
-
this.frameId && cancelAnimationFrame(this.frameId), this.tooltipShown = !1, this.adapter.setAttribute("aria-hidden", "true"), this.adapter.deregisterEventHandler("focusout", this.richTooltipFocusOutHandler), this.richTooltip && this.interactiveTooltip && this.adapter.setAnchorAttribute("aria-expanded", "false"), this.persistentTooltip || (this.adapter.deregisterEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.deregisterEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), this.clearAllAnimationClasses(), this.adapter.addClass(
|
371
|
+
this.frameId && cancelAnimationFrame(this.frameId), this.tooltipShown = !1, this.adapter.setAttribute("aria-hidden", "true"), this.adapter.deregisterEventHandler("focusout", this.richTooltipFocusOutHandler), this.richTooltip && this.interactiveTooltip && this.adapter.setAnchorAttribute("aria-expanded", "false"), this.persistentTooltip || (this.adapter.deregisterEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.deregisterEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), this.clearAllAnimationClasses(), this.adapter.addClass(M), this.adapter.addClass(k), this.adapter.removeClass(G), this.adapter.deregisterAnchorEventHandler("blur", this.anchorBlurHandler), this.adapter.deregisterDocumentEventHandler("click", this.documentClickHandler), this.adapter.deregisterDocumentEventHandler("keydown", this.documentKeydownHandler), this.adapter.deregisterWindowEventHandler("scroll", this.windowScrollHandler), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), this.adapter.deregisterWindowEventHandler("contextmenu", this.preventContextMenuOnLongTouch);
|
577
372
|
try {
|
578
|
-
for (var
|
373
|
+
for (var e = x(this.removeAncestorScrollEventListeners), n = e.next(); !n.done; n = e.next()) {
|
579
374
|
var a = n.value;
|
580
375
|
a();
|
581
376
|
}
|
@@ -583,7 +378,7 @@ var rt = typeof window < "u", Et = (
|
|
583
378
|
t = { error: d };
|
584
379
|
} finally {
|
585
380
|
try {
|
586
|
-
n && !n.done && (r =
|
381
|
+
n && !n.done && (r = e.return) && r.call(e);
|
587
382
|
} finally {
|
588
383
|
if (t)
|
589
384
|
throw t.error;
|
@@ -591,19 +386,19 @@ var rt = typeof window < "u", Et = (
|
|
591
386
|
}
|
592
387
|
}
|
593
388
|
}, o.prototype.handleTransitionEnd = function() {
|
594
|
-
var t = this.adapter.hasClass(
|
595
|
-
this.adapter.removeClass(
|
389
|
+
var t = this.adapter.hasClass(M);
|
390
|
+
this.adapter.removeClass(z), this.adapter.removeClass(V), this.adapter.removeClass(M), this.adapter.removeClass(k), t && this.showTimeout === null ? this.adapter.notifyHidden() : t || this.adapter.notifyShown();
|
596
391
|
}, o.prototype.clearAllAnimationClasses = function() {
|
597
|
-
this.adapter.removeClass(
|
392
|
+
this.adapter.removeClass(V), this.adapter.removeClass(k);
|
598
393
|
}, o.prototype.setTooltipPosition = function(t) {
|
599
|
-
var r = t.xPos,
|
394
|
+
var r = t.xPos, e = t.yPos, n = t.withCaretPos;
|
600
395
|
if (this.hasCaret && n) {
|
601
396
|
this.tooltipPositionWithCaret = n;
|
602
397
|
return;
|
603
398
|
}
|
604
|
-
r && (this.xTooltipPos = r),
|
399
|
+
r && (this.xTooltipPos = r), e && (this.yTooltipPos = e);
|
605
400
|
}, o.prototype.setAnchorBoundaryType = function(t) {
|
606
|
-
t ===
|
401
|
+
t === U.UNBOUNDED ? this.anchorGap = _.UNBOUNDED_ANCHOR_GAP : this.anchorGap = _.BOUNDED_ANCHOR_GAP;
|
607
402
|
}, o.prototype.setShowDelay = function(t) {
|
608
403
|
this.showDelayMs = t;
|
609
404
|
}, o.prototype.setHideDelay = function(t) {
|
@@ -612,75 +407,75 @@ var rt = typeof window < "u", Et = (
|
|
612
407
|
var t = this.adapter.getTooltipSize();
|
613
408
|
return t.height > _.MIN_HEIGHT && t.width >= _.MAX_WIDTH;
|
614
409
|
}, o.prototype.positionPlainTooltip = function() {
|
615
|
-
var t = this.calculateTooltipStyles(this.anchorRect), r = t.top,
|
616
|
-
this.adapter.setSurfaceAnimationStyleProperty(d + "-origin", a + " " +
|
410
|
+
var t = this.calculateTooltipStyles(this.anchorRect), r = t.top, e = t.yTransformOrigin, n = t.left, a = t.xTransformOrigin, d = Z ? Q(window, "transform") : "transform";
|
411
|
+
this.adapter.setSurfaceAnimationStyleProperty(d + "-origin", a + " " + e), this.adapter.setStyleProperty("top", r + "px"), this.adapter.setStyleProperty("left", n + "px");
|
617
412
|
}, o.prototype.positionRichTooltip = function() {
|
618
|
-
var t, r,
|
413
|
+
var t, r, e, n;
|
619
414
|
this.adapter.setStyleProperty("width", ""), this.adapter.setStyleProperty("left", "-" + _.RICH_MAX_WIDTH + "px");
|
620
|
-
var a = Number(this.adapter.getComputedStyleProperty("width").slice(0, -2)), d = isFinite(a) ? a : _.RICH_MAX_WIDTH,
|
415
|
+
var a = Number(this.adapter.getComputedStyleProperty("width").slice(0, -2)), d = isFinite(a) ? a : _.RICH_MAX_WIDTH, c = Math.max(this.adapter.getViewportWidth() - 2 * _.MIN_VIEWPORT_TOOLTIP_THRESHOLD, _.MIN_WIDTH), s = Math.min(c, d);
|
621
416
|
this.adapter.setStyleProperty("width", s + "px");
|
622
|
-
var l = this.hasCaret ? this.calculateTooltipWithCaretStyles(this.anchorRect) : this.calculateTooltipStyles(this.anchorRect), T = l.top,
|
623
|
-
this.adapter.setSurfaceAnimationStyleProperty(
|
624
|
-
var
|
625
|
-
this.adapter.setStyleProperty("top", m + "px"), this.adapter.setStyleProperty("left",
|
417
|
+
var l = this.hasCaret ? this.calculateTooltipWithCaretStyles(this.anchorRect) : this.calculateTooltipStyles(this.anchorRect), T = l.top, y = l.yTransformOrigin, v = l.left, f = l.xTransformOrigin, E = Z ? Q(window, "transform") : "transform";
|
418
|
+
this.adapter.setSurfaceAnimationStyleProperty(E + "-origin", f + " " + y);
|
419
|
+
var g = v - ((r = (t = this.parentRect) === null || t === void 0 ? void 0 : t.left) !== null && r !== void 0 ? r : 0), m = T - ((n = (e = this.parentRect) === null || e === void 0 ? void 0 : e.top) !== null && n !== void 0 ? n : 0);
|
420
|
+
this.adapter.setStyleProperty("top", m + "px"), this.adapter.setStyleProperty("left", g + "px");
|
626
421
|
}, o.prototype.calculateTooltipStyles = function(t) {
|
627
422
|
if (!t)
|
628
423
|
return { top: 0, left: 0 };
|
629
|
-
var r = this.adapter.getTooltipSize(),
|
424
|
+
var r = this.adapter.getTooltipSize(), e = this.calculateYTooltipDistance(t, r.height), n = this.calculateXTooltipDistance(t, r.width);
|
630
425
|
return {
|
631
|
-
top:
|
632
|
-
yTransformOrigin:
|
426
|
+
top: e.distance,
|
427
|
+
yTransformOrigin: e.yTransformOrigin,
|
633
428
|
left: n.distance,
|
634
429
|
xTransformOrigin: n.xTransformOrigin
|
635
430
|
};
|
636
431
|
}, o.prototype.calculateXTooltipDistance = function(t, r) {
|
637
|
-
var
|
432
|
+
var e = !this.adapter.isRTL(), n, a, d, c, s, l, T;
|
638
433
|
if (this.richTooltip)
|
639
|
-
n =
|
434
|
+
n = e ? t.left - r : t.right, a = e ? t.right : t.left - r, l = e ? h.RIGHT : h.LEFT, T = e ? h.LEFT : h.RIGHT;
|
640
435
|
else {
|
641
|
-
n =
|
642
|
-
var
|
643
|
-
|
436
|
+
n = e ? t.left : t.right - r, a = e ? t.right - r : t.left, d = t.left + (t.width - r) / 2;
|
437
|
+
var y = t.left - (r + this.anchorGap), v = t.right + this.anchorGap;
|
438
|
+
c = e ? y : v, s = e ? v : y, l = e ? h.LEFT : h.RIGHT, T = e ? h.RIGHT : h.LEFT;
|
644
439
|
}
|
645
|
-
var
|
646
|
-
this.xTooltipPos ===
|
647
|
-
var
|
648
|
-
if (this.xTooltipPos ===
|
440
|
+
var f = [n, d, a];
|
441
|
+
this.xTooltipPos === D.SIDE_START ? f.push(c) : this.xTooltipPos === D.SIDE_END && f.push(s);
|
442
|
+
var E = this.richTooltip ? this.determineValidPositionOptions(n, a) : this.determineValidPositionOptions.apply(this, $([], q(f)));
|
443
|
+
if (this.xTooltipPos === D.START && E.has(n))
|
649
444
|
return { distance: n, xTransformOrigin: l };
|
650
|
-
if (this.xTooltipPos ===
|
445
|
+
if (this.xTooltipPos === D.END && E.has(a))
|
651
446
|
return { distance: a, xTransformOrigin: T };
|
652
|
-
if (this.xTooltipPos ===
|
653
|
-
return { distance: d, xTransformOrigin:
|
654
|
-
if (this.xTooltipPos ===
|
655
|
-
return { distance:
|
656
|
-
if (this.xTooltipPos ===
|
447
|
+
if (this.xTooltipPos === D.CENTER && E.has(d))
|
448
|
+
return { distance: d, xTransformOrigin: h.CENTER };
|
449
|
+
if (this.xTooltipPos === D.SIDE_START && E.has(c))
|
450
|
+
return { distance: c, xTransformOrigin: T };
|
451
|
+
if (this.xTooltipPos === D.SIDE_END && E.has(s))
|
657
452
|
return { distance: s, xTransformOrigin: l };
|
658
|
-
var
|
453
|
+
var g = this.richTooltip ? [
|
659
454
|
{ distance: a, xTransformOrigin: T },
|
660
455
|
{ distance: n, xTransformOrigin: l }
|
661
456
|
] : [
|
662
|
-
{ distance: d, xTransformOrigin:
|
457
|
+
{ distance: d, xTransformOrigin: h.CENTER },
|
663
458
|
{ distance: n, xTransformOrigin: l },
|
664
459
|
{ distance: a, xTransformOrigin: T }
|
665
|
-
], m =
|
666
|
-
var
|
667
|
-
return
|
460
|
+
], m = g.find(function(H) {
|
461
|
+
var b = H.distance;
|
462
|
+
return E.has(b);
|
668
463
|
});
|
669
464
|
if (m)
|
670
465
|
return m;
|
671
466
|
if (t.left < 0)
|
672
467
|
return {
|
673
468
|
distance: this.minViewportTooltipThreshold,
|
674
|
-
xTransformOrigin:
|
469
|
+
xTransformOrigin: h.LEFT
|
675
470
|
};
|
676
|
-
var
|
677
|
-
return { distance:
|
471
|
+
var w = this.adapter.getViewportWidth(), I = w - (r + this.minViewportTooltipThreshold);
|
472
|
+
return { distance: I, xTransformOrigin: h.RIGHT };
|
678
473
|
}, o.prototype.determineValidPositionOptions = function() {
|
679
|
-
for (var t, r,
|
680
|
-
|
474
|
+
for (var t, r, e = [], n = 0; n < arguments.length; n++)
|
475
|
+
e[n] = arguments[n];
|
681
476
|
var a = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
682
477
|
try {
|
683
|
-
for (var
|
478
|
+
for (var c = x(e), s = c.next(); !s.done; s = c.next()) {
|
684
479
|
var l = s.value;
|
685
480
|
this.positionHonorsViewportThreshold(l) ? a.add(l) : this.positionDoesntCollideWithViewport(l) && d.add(l);
|
686
481
|
}
|
@@ -688,7 +483,7 @@ var rt = typeof window < "u", Et = (
|
|
688
483
|
t = { error: T };
|
689
484
|
} finally {
|
690
485
|
try {
|
691
|
-
s && !s.done && (r =
|
486
|
+
s && !s.done && (r = c.return) && r.call(c);
|
692
487
|
} finally {
|
693
488
|
if (t)
|
694
489
|
throw t.error;
|
@@ -696,22 +491,22 @@ var rt = typeof window < "u", Et = (
|
|
696
491
|
}
|
697
492
|
return a.size ? a : d;
|
698
493
|
}, o.prototype.positionHonorsViewportThreshold = function(t) {
|
699
|
-
var r = this.adapter.getViewportWidth(),
|
700
|
-
return t +
|
494
|
+
var r = this.adapter.getViewportWidth(), e = this.adapter.getTooltipSize().width;
|
495
|
+
return t + e <= r - this.minViewportTooltipThreshold && t >= this.minViewportTooltipThreshold;
|
701
496
|
}, o.prototype.positionDoesntCollideWithViewport = function(t) {
|
702
|
-
var r = this.adapter.getViewportWidth(),
|
703
|
-
return t +
|
497
|
+
var r = this.adapter.getViewportWidth(), e = this.adapter.getTooltipSize().width;
|
498
|
+
return t + e <= r && t >= 0;
|
704
499
|
}, o.prototype.calculateYTooltipDistance = function(t, r) {
|
705
|
-
var
|
706
|
-
this.yTooltipPos ===
|
707
|
-
var s = this.determineValidYPositionOptions.apply(this,
|
708
|
-
return this.yTooltipPos ===
|
500
|
+
var e = t.bottom + this.anchorGap, n = t.top - (this.anchorGap + r), a = t.top + t.height / 2, d = a - r / 2, c = [n, e];
|
501
|
+
this.yTooltipPos === N.SIDE && c.push(d);
|
502
|
+
var s = this.determineValidYPositionOptions.apply(this, $([], q(c)));
|
503
|
+
return this.yTooltipPos === N.ABOVE && s.has(n) ? { distance: n, yTransformOrigin: h.BOTTOM } : this.yTooltipPos === N.BELOW && s.has(e) ? { distance: e, yTransformOrigin: h.TOP } : this.yTooltipPos === N.SIDE && s.has(d) ? { distance: d, yTransformOrigin: h.CENTER } : s.has(e) ? { distance: e, yTransformOrigin: h.TOP } : s.has(n) ? { distance: n, yTransformOrigin: h.BOTTOM } : { distance: e, yTransformOrigin: h.TOP };
|
709
504
|
}, o.prototype.determineValidYPositionOptions = function() {
|
710
|
-
for (var t, r,
|
711
|
-
|
505
|
+
for (var t, r, e = [], n = 0; n < arguments.length; n++)
|
506
|
+
e[n] = arguments[n];
|
712
507
|
var a = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
713
508
|
try {
|
714
|
-
for (var
|
509
|
+
for (var c = x(e), s = c.next(); !s.done; s = c.next()) {
|
715
510
|
var l = s.value;
|
716
511
|
this.yPositionHonorsViewportThreshold(l) ? a.add(l) : this.yPositionDoesntCollideWithViewport(l) && d.add(l);
|
717
512
|
}
|
@@ -719,7 +514,7 @@ var rt = typeof window < "u", Et = (
|
|
719
514
|
t = { error: T };
|
720
515
|
} finally {
|
721
516
|
try {
|
722
|
-
s && !s.done && (r =
|
517
|
+
s && !s.done && (r = c.return) && r.call(c);
|
723
518
|
} finally {
|
724
519
|
if (t)
|
725
520
|
throw t.error;
|
@@ -727,43 +522,43 @@ var rt = typeof window < "u", Et = (
|
|
727
522
|
}
|
728
523
|
return a.size ? a : d;
|
729
524
|
}, o.prototype.yPositionHonorsViewportThreshold = function(t) {
|
730
|
-
var r = this.adapter.getViewportHeight(),
|
731
|
-
return t +
|
525
|
+
var r = this.adapter.getViewportHeight(), e = this.adapter.getTooltipSize().height;
|
526
|
+
return t + e + this.minViewportTooltipThreshold <= r && t >= this.minViewportTooltipThreshold;
|
732
527
|
}, o.prototype.yPositionDoesntCollideWithViewport = function(t) {
|
733
|
-
var r = this.adapter.getViewportHeight(),
|
734
|
-
return t +
|
528
|
+
var r = this.adapter.getViewportHeight(), e = this.adapter.getTooltipSize().height;
|
529
|
+
return t + e <= r && t >= 0;
|
735
530
|
}, o.prototype.calculateTooltipWithCaretStyles = function(t) {
|
736
531
|
this.adapter.clearTooltipCaretStyles();
|
737
532
|
var r = this.adapter.getTooltipCaretBoundingRect();
|
738
533
|
if (!t || !r)
|
739
534
|
return { position: p.DETECTED, top: 0, left: 0 };
|
740
|
-
var
|
741
|
-
s.size < 1 && (s = this.generateBackupPositionOption(t, a, { caretWidth:
|
742
|
-
var l = this.determineTooltipWithCaretDistance(s), T = l.position,
|
535
|
+
var e = r.width / _.ANIMATION_SCALE, n = r.height / _.ANIMATION_SCALE / 2, a = this.adapter.getTooltipSize(), d = this.calculateYWithCaretDistanceOptions(t, a.height, { caretWidth: e, caretHeight: n }), c = this.calculateXWithCaretDistanceOptions(t, a.width, { caretWidth: e, caretHeight: n }), s = this.validateTooltipWithCaretDistances(d, c);
|
536
|
+
s.size < 1 && (s = this.generateBackupPositionOption(t, a, { caretWidth: e, caretHeight: n }));
|
537
|
+
var l = this.determineTooltipWithCaretDistance(s), T = l.position, y = l.xDistance, v = l.yDistance, f = this.setCaretPositionStyles(T, { caretWidth: e, caretHeight: n }), E = f.yTransformOrigin, g = f.xTransformOrigin;
|
743
538
|
return {
|
744
|
-
yTransformOrigin:
|
745
|
-
xTransformOrigin:
|
746
|
-
top:
|
747
|
-
left:
|
539
|
+
yTransformOrigin: E,
|
540
|
+
xTransformOrigin: g,
|
541
|
+
top: v,
|
542
|
+
left: y
|
748
543
|
};
|
749
|
-
}, o.prototype.calculateXWithCaretDistanceOptions = function(t, r,
|
750
|
-
var n =
|
751
|
-
[
|
752
|
-
[
|
753
|
-
[
|
754
|
-
[
|
755
|
-
[
|
544
|
+
}, o.prototype.calculateXWithCaretDistanceOptions = function(t, r, e) {
|
545
|
+
var n = e.caretWidth, a = e.caretHeight, d = !this.adapter.isRTL(), c = t.left + t.width / 2, s = t.left - (r + this.anchorGap + a), l = t.right + this.anchorGap + a, T = d ? s : l, y = d ? l : s, v = c - (_.CARET_INDENTATION + n / 2), f = c - (r - _.CARET_INDENTATION - n / 2), E = d ? v : f, g = d ? f : v, m = c - r / 2, w = /* @__PURE__ */ new Map([
|
546
|
+
[u.START, E],
|
547
|
+
[u.CENTER, m],
|
548
|
+
[u.END, g],
|
549
|
+
[u.SIDE_END, y],
|
550
|
+
[u.SIDE_START, T]
|
756
551
|
]);
|
757
|
-
return
|
758
|
-
}, o.prototype.calculateYWithCaretDistanceOptions = function(t, r,
|
759
|
-
var n =
|
552
|
+
return w;
|
553
|
+
}, o.prototype.calculateYWithCaretDistanceOptions = function(t, r, e) {
|
554
|
+
var n = e.caretWidth, a = e.caretHeight, d = t.top + t.height / 2, c = t.bottom + this.anchorGap + a, s = t.top - (this.anchorGap + r + a), l = d - (_.CARET_INDENTATION + n / 2), T = d - r / 2, y = d - (r - _.CARET_INDENTATION - n / 2), v = /* @__PURE__ */ new Map([
|
760
555
|
[O.ABOVE, s],
|
761
|
-
[O.BELOW,
|
556
|
+
[O.BELOW, c],
|
762
557
|
[O.SIDE_TOP, l],
|
763
558
|
[O.SIDE_CENTER, T],
|
764
|
-
[O.SIDE_BOTTOM,
|
559
|
+
[O.SIDE_BOTTOM, y]
|
765
560
|
]);
|
766
|
-
return
|
561
|
+
return v;
|
767
562
|
}, o.prototype.repositionTooltipOnAnchorMove = function() {
|
768
563
|
var t = this.adapter.getAnchorBoundingRect();
|
769
564
|
if (!(!t || !this.anchorRect)) {
|
@@ -771,106 +566,106 @@ var rt = typeof window < "u", Et = (
|
|
771
566
|
t.top + t.height < 0 || t.bottom - t.height >= r || (t.top !== this.anchorRect.top || t.left !== this.anchorRect.left || t.height !== this.anchorRect.height || t.width !== this.anchorRect.width) && (this.anchorRect = t, this.parentRect = this.adapter.getParentBoundingRect(), this.richTooltip ? this.positionRichTooltip() : this.positionPlainTooltip());
|
772
567
|
}
|
773
568
|
}, o.prototype.validateTooltipWithCaretDistances = function(t, r) {
|
774
|
-
var
|
569
|
+
var e, n, a, d, c, s, l = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map([
|
775
570
|
[
|
776
571
|
O.ABOVE,
|
777
572
|
[
|
778
|
-
|
779
|
-
|
780
|
-
|
573
|
+
u.START,
|
574
|
+
u.CENTER,
|
575
|
+
u.END
|
781
576
|
]
|
782
577
|
],
|
783
578
|
[
|
784
579
|
O.BELOW,
|
785
580
|
[
|
786
|
-
|
787
|
-
|
788
|
-
|
581
|
+
u.START,
|
582
|
+
u.CENTER,
|
583
|
+
u.END
|
789
584
|
]
|
790
585
|
],
|
791
586
|
[
|
792
587
|
O.SIDE_TOP,
|
793
|
-
[
|
588
|
+
[u.SIDE_START, u.SIDE_END]
|
794
589
|
],
|
795
590
|
[
|
796
591
|
O.SIDE_CENTER,
|
797
|
-
[
|
592
|
+
[u.SIDE_START, u.SIDE_END]
|
798
593
|
],
|
799
594
|
[
|
800
595
|
O.SIDE_BOTTOM,
|
801
|
-
[
|
596
|
+
[u.SIDE_START, u.SIDE_END]
|
802
597
|
]
|
803
598
|
]);
|
804
599
|
try {
|
805
|
-
for (var
|
806
|
-
var
|
807
|
-
if (this.yPositionHonorsViewportThreshold(
|
600
|
+
for (var v = x(y.keys()), f = v.next(); !f.done; f = v.next()) {
|
601
|
+
var E = f.value, g = t.get(E);
|
602
|
+
if (this.yPositionHonorsViewportThreshold(g))
|
808
603
|
try {
|
809
|
-
for (var m = (a = void 0,
|
810
|
-
var
|
811
|
-
if (this.positionHonorsViewportThreshold(
|
812
|
-
var
|
813
|
-
l.set(
|
604
|
+
for (var m = (a = void 0, x(y.get(E))), w = m.next(); !w.done; w = m.next()) {
|
605
|
+
var I = w.value, H = r.get(I);
|
606
|
+
if (this.positionHonorsViewportThreshold(H)) {
|
607
|
+
var b = this.caretPositionOptionsMapping(I, E);
|
608
|
+
l.set(b, { xDistance: H, yDistance: g });
|
814
609
|
}
|
815
610
|
}
|
816
|
-
} catch (
|
817
|
-
a = { error:
|
611
|
+
} catch (P) {
|
612
|
+
a = { error: P };
|
818
613
|
} finally {
|
819
614
|
try {
|
820
|
-
|
615
|
+
w && !w.done && (d = m.return) && d.call(m);
|
821
616
|
} finally {
|
822
617
|
if (a)
|
823
618
|
throw a.error;
|
824
619
|
}
|
825
620
|
}
|
826
|
-
if (this.yPositionDoesntCollideWithViewport(
|
621
|
+
if (this.yPositionDoesntCollideWithViewport(g))
|
827
622
|
try {
|
828
|
-
for (var
|
829
|
-
var
|
830
|
-
if (this.positionDoesntCollideWithViewport(
|
831
|
-
var
|
832
|
-
T.set(
|
623
|
+
for (var B = (c = void 0, x(y.get(E))), L = B.next(); !L.done; L = B.next()) {
|
624
|
+
var I = L.value, H = r.get(I);
|
625
|
+
if (this.positionDoesntCollideWithViewport(H)) {
|
626
|
+
var b = this.caretPositionOptionsMapping(I, E);
|
627
|
+
T.set(b, { xDistance: H, yDistance: g });
|
833
628
|
}
|
834
629
|
}
|
835
|
-
} catch (
|
836
|
-
|
630
|
+
} catch (P) {
|
631
|
+
c = { error: P };
|
837
632
|
} finally {
|
838
633
|
try {
|
839
|
-
|
634
|
+
L && !L.done && (s = B.return) && s.call(B);
|
840
635
|
} finally {
|
841
|
-
if (
|
842
|
-
throw
|
636
|
+
if (c)
|
637
|
+
throw c.error;
|
843
638
|
}
|
844
639
|
}
|
845
640
|
}
|
846
|
-
} catch (
|
847
|
-
|
641
|
+
} catch (P) {
|
642
|
+
e = { error: P };
|
848
643
|
} finally {
|
849
644
|
try {
|
850
|
-
|
645
|
+
f && !f.done && (n = v.return) && n.call(v);
|
851
646
|
} finally {
|
852
|
-
if (
|
853
|
-
throw
|
647
|
+
if (e)
|
648
|
+
throw e.error;
|
854
649
|
}
|
855
650
|
}
|
856
651
|
return l.size ? l : T;
|
857
|
-
}, o.prototype.generateBackupPositionOption = function(t, r,
|
652
|
+
}, o.prototype.generateBackupPositionOption = function(t, r, e) {
|
858
653
|
var n = !this.adapter.isRTL(), a, d;
|
859
654
|
if (t.left < 0)
|
860
|
-
a = this.minViewportTooltipThreshold +
|
655
|
+
a = this.minViewportTooltipThreshold + e.caretHeight, d = n ? u.END : u.START;
|
861
656
|
else {
|
862
|
-
var
|
863
|
-
a =
|
657
|
+
var c = this.adapter.getViewportWidth();
|
658
|
+
a = c - (r.width + this.minViewportTooltipThreshold + e.caretHeight), d = n ? u.START : u.END;
|
864
659
|
}
|
865
660
|
var s, l;
|
866
661
|
if (t.top < 0)
|
867
|
-
s = this.minViewportTooltipThreshold +
|
662
|
+
s = this.minViewportTooltipThreshold + e.caretHeight, l = O.BELOW;
|
868
663
|
else {
|
869
664
|
var T = this.adapter.getViewportHeight();
|
870
|
-
s = T - (r.height + this.minViewportTooltipThreshold +
|
665
|
+
s = T - (r.height + this.minViewportTooltipThreshold + e.caretHeight), l = O.ABOVE;
|
871
666
|
}
|
872
|
-
var
|
873
|
-
return /* @__PURE__ */ new Map([[
|
667
|
+
var y = this.caretPositionOptionsMapping(d, l);
|
668
|
+
return /* @__PURE__ */ new Map([[y, { xDistance: a, yDistance: s }]]);
|
874
669
|
}, o.prototype.determineTooltipWithCaretDistance = function(t) {
|
875
670
|
if (t.has(this.tooltipPositionWithCaret)) {
|
876
671
|
var r = t.get(this.tooltipPositionWithCaret);
|
@@ -880,7 +675,7 @@ var rt = typeof window < "u", Et = (
|
|
880
675
|
yDistance: r.yDistance
|
881
676
|
};
|
882
677
|
}
|
883
|
-
var
|
678
|
+
var e = [
|
884
679
|
p.ABOVE_START,
|
885
680
|
p.ABOVE_CENTER,
|
886
681
|
p.ABOVE_END,
|
@@ -893,7 +688,7 @@ var rt = typeof window < "u", Et = (
|
|
893
688
|
p.BELOW_START,
|
894
689
|
p.BELOW_CENTER,
|
895
690
|
p.BELOW_END
|
896
|
-
], n =
|
691
|
+
], n = e.find(function(d) {
|
897
692
|
return t.has(d);
|
898
693
|
}), a = t.get(n);
|
899
694
|
return {
|
@@ -904,61 +699,61 @@ var rt = typeof window < "u", Et = (
|
|
904
699
|
}, o.prototype.caretPositionOptionsMapping = function(t, r) {
|
905
700
|
switch (r) {
|
906
701
|
case O.ABOVE:
|
907
|
-
if (t ===
|
702
|
+
if (t === u.START)
|
908
703
|
return p.ABOVE_START;
|
909
|
-
if (t ===
|
704
|
+
if (t === u.CENTER)
|
910
705
|
return p.ABOVE_CENTER;
|
911
|
-
if (t ===
|
706
|
+
if (t === u.END)
|
912
707
|
return p.ABOVE_END;
|
913
708
|
break;
|
914
709
|
case O.BELOW:
|
915
|
-
if (t ===
|
710
|
+
if (t === u.START)
|
916
711
|
return p.BELOW_START;
|
917
|
-
if (t ===
|
712
|
+
if (t === u.CENTER)
|
918
713
|
return p.BELOW_CENTER;
|
919
|
-
if (t ===
|
714
|
+
if (t === u.END)
|
920
715
|
return p.BELOW_END;
|
921
716
|
break;
|
922
717
|
case O.SIDE_TOP:
|
923
|
-
if (t ===
|
718
|
+
if (t === u.SIDE_START)
|
924
719
|
return p.TOP_SIDE_START;
|
925
|
-
if (t ===
|
720
|
+
if (t === u.SIDE_END)
|
926
721
|
return p.TOP_SIDE_END;
|
927
722
|
break;
|
928
723
|
case O.SIDE_CENTER:
|
929
|
-
if (t ===
|
724
|
+
if (t === u.SIDE_START)
|
930
725
|
return p.CENTER_SIDE_START;
|
931
|
-
if (t ===
|
726
|
+
if (t === u.SIDE_END)
|
932
727
|
return p.CENTER_SIDE_END;
|
933
728
|
break;
|
934
729
|
case O.SIDE_BOTTOM:
|
935
|
-
if (t ===
|
730
|
+
if (t === u.SIDE_START)
|
936
731
|
return p.BOTTOM_SIDE_START;
|
937
|
-
if (t ===
|
732
|
+
if (t === u.SIDE_END)
|
938
733
|
return p.BOTTOM_SIDE_END;
|
939
734
|
break;
|
940
735
|
}
|
941
736
|
throw new Error("MDCTooltipFoundation: Invalid caret position of " + t + ", " + r);
|
942
737
|
}, o.prototype.setCaretPositionStyles = function(t, r) {
|
943
|
-
var
|
738
|
+
var e, n, a = this.calculateCaretPositionOnTooltip(t, r);
|
944
739
|
if (!a)
|
945
740
|
return { yTransformOrigin: 0, xTransformOrigin: 0 };
|
946
741
|
this.adapter.clearTooltipCaretStyles(), this.adapter.setTooltipCaretStyle(a.yAlignment, a.yAxisPx), this.adapter.setTooltipCaretStyle(a.xAlignment, a.xAxisPx);
|
947
|
-
var d = a.skew * (Math.PI / 180),
|
948
|
-
this.adapter.setTooltipCaretStyle("transform", "rotate(" + a.rotation + "deg) skewY(" + a.skew + "deg) scaleX(" +
|
742
|
+
var d = a.skew * (Math.PI / 180), c = Math.cos(d);
|
743
|
+
this.adapter.setTooltipCaretStyle("transform", "rotate(" + a.rotation + "deg) skewY(" + a.skew + "deg) scaleX(" + c + ")"), this.adapter.setTooltipCaretStyle("transform-origin", a.xAlignment + " " + a.yAlignment);
|
949
744
|
try {
|
950
|
-
for (var s =
|
745
|
+
for (var s = x(a.caretCorners), l = s.next(); !l.done; l = s.next()) {
|
951
746
|
var T = l.value;
|
952
747
|
this.adapter.setTooltipCaretStyle(T, "0");
|
953
748
|
}
|
954
|
-
} catch (
|
955
|
-
|
749
|
+
} catch (y) {
|
750
|
+
e = { error: y };
|
956
751
|
} finally {
|
957
752
|
try {
|
958
753
|
l && !l.done && (n = s.return) && n.call(s);
|
959
754
|
} finally {
|
960
|
-
if (
|
961
|
-
throw
|
755
|
+
if (e)
|
756
|
+
throw e.error;
|
962
757
|
}
|
963
758
|
}
|
964
759
|
return {
|
@@ -966,154 +761,154 @@ var rt = typeof window < "u", Et = (
|
|
966
761
|
xTransformOrigin: a.xTransformOrigin
|
967
762
|
};
|
968
763
|
}, o.prototype.calculateCaretPositionOnTooltip = function(t, r) {
|
969
|
-
var
|
764
|
+
var e = !this.adapter.isRTL(), n = this.adapter.getComputedStyleProperty("width"), a = this.adapter.getComputedStyleProperty("height");
|
970
765
|
if (!(!n || !a || !r)) {
|
971
|
-
var d = "calc((" + n + " - " + r.caretWidth + "px) / 2)",
|
766
|
+
var d = "calc((" + n + " - " + r.caretWidth + "px) / 2)", c = "calc((" + a + " - " + r.caretWidth + "px) / 2)", s = "0", l = _.CARET_INDENTATION + "px", T = "calc(" + n + " - " + l + ")", y = "calc(" + a + " - " + l + ")", v = 35, f = Math.abs(90 - v), E = ["border-bottom-right-radius", "border-top-left-radius"], g = ["border-bottom-left-radius", "border-top-right-radius"], m = 20;
|
972
767
|
switch (t) {
|
973
768
|
case p.BELOW_CENTER:
|
974
769
|
return {
|
975
|
-
yAlignment:
|
976
|
-
xAlignment:
|
770
|
+
yAlignment: h.TOP,
|
771
|
+
xAlignment: h.LEFT,
|
977
772
|
yAxisPx: s,
|
978
773
|
xAxisPx: d,
|
979
|
-
rotation: -1 *
|
774
|
+
rotation: -1 * v,
|
980
775
|
skew: -1 * m,
|
981
776
|
xTransformOrigin: d,
|
982
777
|
yTransformOrigin: s,
|
983
|
-
caretCorners:
|
778
|
+
caretCorners: E
|
984
779
|
};
|
985
780
|
case p.BELOW_END:
|
986
781
|
return {
|
987
|
-
yAlignment:
|
988
|
-
xAlignment:
|
782
|
+
yAlignment: h.TOP,
|
783
|
+
xAlignment: e ? h.RIGHT : h.LEFT,
|
989
784
|
yAxisPx: s,
|
990
785
|
xAxisPx: l,
|
991
|
-
rotation:
|
992
|
-
skew:
|
993
|
-
xTransformOrigin:
|
786
|
+
rotation: e ? v : -1 * v,
|
787
|
+
skew: e ? m : -1 * m,
|
788
|
+
xTransformOrigin: e ? T : l,
|
994
789
|
yTransformOrigin: s,
|
995
|
-
caretCorners:
|
790
|
+
caretCorners: e ? g : E
|
996
791
|
};
|
997
792
|
case p.BELOW_START:
|
998
793
|
return {
|
999
|
-
yAlignment:
|
1000
|
-
xAlignment:
|
794
|
+
yAlignment: h.TOP,
|
795
|
+
xAlignment: e ? h.LEFT : h.RIGHT,
|
1001
796
|
yAxisPx: s,
|
1002
797
|
xAxisPx: l,
|
1003
|
-
rotation:
|
1004
|
-
skew:
|
1005
|
-
xTransformOrigin:
|
798
|
+
rotation: e ? -1 * v : v,
|
799
|
+
skew: e ? -1 * m : m,
|
800
|
+
xTransformOrigin: e ? l : T,
|
1006
801
|
yTransformOrigin: s,
|
1007
|
-
caretCorners:
|
802
|
+
caretCorners: e ? E : g
|
1008
803
|
};
|
1009
804
|
case p.TOP_SIDE_END:
|
1010
805
|
return {
|
1011
|
-
yAlignment:
|
1012
|
-
xAlignment:
|
806
|
+
yAlignment: h.TOP,
|
807
|
+
xAlignment: e ? h.LEFT : h.RIGHT,
|
1013
808
|
yAxisPx: l,
|
1014
809
|
xAxisPx: s,
|
1015
|
-
rotation:
|
1016
|
-
skew:
|
1017
|
-
xTransformOrigin:
|
810
|
+
rotation: e ? f : -1 * f,
|
811
|
+
skew: e ? -1 * m : m,
|
812
|
+
xTransformOrigin: e ? s : n,
|
1018
813
|
yTransformOrigin: l,
|
1019
|
-
caretCorners:
|
814
|
+
caretCorners: e ? E : g
|
1020
815
|
};
|
1021
816
|
case p.CENTER_SIDE_END:
|
1022
817
|
return {
|
1023
|
-
yAlignment:
|
1024
|
-
xAlignment:
|
1025
|
-
yAxisPx:
|
818
|
+
yAlignment: h.TOP,
|
819
|
+
xAlignment: e ? h.LEFT : h.RIGHT,
|
820
|
+
yAxisPx: c,
|
1026
821
|
xAxisPx: s,
|
1027
|
-
rotation:
|
1028
|
-
skew:
|
1029
|
-
xTransformOrigin:
|
1030
|
-
yTransformOrigin:
|
1031
|
-
caretCorners:
|
822
|
+
rotation: e ? f : -1 * f,
|
823
|
+
skew: e ? -1 * m : m,
|
824
|
+
xTransformOrigin: e ? s : n,
|
825
|
+
yTransformOrigin: c,
|
826
|
+
caretCorners: e ? E : g
|
1032
827
|
};
|
1033
828
|
case p.BOTTOM_SIDE_END:
|
1034
829
|
return {
|
1035
|
-
yAlignment:
|
1036
|
-
xAlignment:
|
830
|
+
yAlignment: h.BOTTOM,
|
831
|
+
xAlignment: e ? h.LEFT : h.RIGHT,
|
1037
832
|
yAxisPx: l,
|
1038
833
|
xAxisPx: s,
|
1039
|
-
rotation:
|
1040
|
-
skew:
|
1041
|
-
xTransformOrigin:
|
1042
|
-
yTransformOrigin:
|
1043
|
-
caretCorners:
|
834
|
+
rotation: e ? -1 * f : f,
|
835
|
+
skew: e ? m : -1 * m,
|
836
|
+
xTransformOrigin: e ? s : n,
|
837
|
+
yTransformOrigin: y,
|
838
|
+
caretCorners: e ? g : E
|
1044
839
|
};
|
1045
840
|
case p.TOP_SIDE_START:
|
1046
841
|
return {
|
1047
|
-
yAlignment:
|
1048
|
-
xAlignment:
|
842
|
+
yAlignment: h.TOP,
|
843
|
+
xAlignment: e ? h.RIGHT : h.LEFT,
|
1049
844
|
yAxisPx: l,
|
1050
845
|
xAxisPx: s,
|
1051
|
-
rotation:
|
1052
|
-
skew:
|
1053
|
-
xTransformOrigin:
|
846
|
+
rotation: e ? -1 * f : f,
|
847
|
+
skew: e ? m : -1 * m,
|
848
|
+
xTransformOrigin: e ? n : s,
|
1054
849
|
yTransformOrigin: l,
|
1055
|
-
caretCorners:
|
850
|
+
caretCorners: e ? g : E
|
1056
851
|
};
|
1057
852
|
case p.CENTER_SIDE_START:
|
1058
853
|
return {
|
1059
|
-
yAlignment:
|
1060
|
-
xAlignment:
|
1061
|
-
yAxisPx:
|
854
|
+
yAlignment: h.TOP,
|
855
|
+
xAlignment: e ? h.RIGHT : h.LEFT,
|
856
|
+
yAxisPx: c,
|
1062
857
|
xAxisPx: s,
|
1063
|
-
rotation:
|
1064
|
-
skew:
|
1065
|
-
xTransformOrigin:
|
1066
|
-
yTransformOrigin:
|
1067
|
-
caretCorners:
|
858
|
+
rotation: e ? -1 * f : f,
|
859
|
+
skew: e ? m : -1 * m,
|
860
|
+
xTransformOrigin: e ? n : s,
|
861
|
+
yTransformOrigin: c,
|
862
|
+
caretCorners: e ? g : E
|
1068
863
|
};
|
1069
864
|
case p.BOTTOM_SIDE_START:
|
1070
865
|
return {
|
1071
|
-
yAlignment:
|
1072
|
-
xAlignment:
|
866
|
+
yAlignment: h.BOTTOM,
|
867
|
+
xAlignment: e ? h.RIGHT : h.LEFT,
|
1073
868
|
yAxisPx: l,
|
1074
869
|
xAxisPx: s,
|
1075
|
-
rotation:
|
1076
|
-
skew:
|
1077
|
-
xTransformOrigin:
|
1078
|
-
yTransformOrigin:
|
1079
|
-
caretCorners:
|
870
|
+
rotation: e ? f : -1 * f,
|
871
|
+
skew: e ? -1 * m : m,
|
872
|
+
xTransformOrigin: e ? n : s,
|
873
|
+
yTransformOrigin: y,
|
874
|
+
caretCorners: e ? E : g
|
1080
875
|
};
|
1081
876
|
case p.ABOVE_CENTER:
|
1082
877
|
return {
|
1083
|
-
yAlignment:
|
1084
|
-
xAlignment:
|
878
|
+
yAlignment: h.BOTTOM,
|
879
|
+
xAlignment: h.LEFT,
|
1085
880
|
yAxisPx: s,
|
1086
881
|
xAxisPx: d,
|
1087
|
-
rotation:
|
882
|
+
rotation: v,
|
1088
883
|
skew: m,
|
1089
884
|
xTransformOrigin: d,
|
1090
885
|
yTransformOrigin: a,
|
1091
|
-
caretCorners:
|
886
|
+
caretCorners: g
|
1092
887
|
};
|
1093
888
|
case p.ABOVE_END:
|
1094
889
|
return {
|
1095
|
-
yAlignment:
|
1096
|
-
xAlignment:
|
890
|
+
yAlignment: h.BOTTOM,
|
891
|
+
xAlignment: e ? h.RIGHT : h.LEFT,
|
1097
892
|
yAxisPx: s,
|
1098
893
|
xAxisPx: l,
|
1099
|
-
rotation:
|
1100
|
-
skew:
|
1101
|
-
xTransformOrigin:
|
894
|
+
rotation: e ? -1 * v : v,
|
895
|
+
skew: e ? -1 * m : m,
|
896
|
+
xTransformOrigin: e ? T : l,
|
1102
897
|
yTransformOrigin: a,
|
1103
|
-
caretCorners:
|
898
|
+
caretCorners: e ? E : g
|
1104
899
|
};
|
1105
900
|
default:
|
1106
901
|
case p.ABOVE_START:
|
1107
902
|
return {
|
1108
|
-
yAlignment:
|
1109
|
-
xAlignment:
|
903
|
+
yAlignment: h.BOTTOM,
|
904
|
+
xAlignment: e ? h.LEFT : h.RIGHT,
|
1110
905
|
yAxisPx: s,
|
1111
906
|
xAxisPx: l,
|
1112
|
-
rotation:
|
1113
|
-
skew:
|
1114
|
-
xTransformOrigin:
|
907
|
+
rotation: e ? v : -1 * v,
|
908
|
+
skew: e ? m : -1 * m,
|
909
|
+
xTransformOrigin: e ? l : T,
|
1115
910
|
yTransformOrigin: a,
|
1116
|
-
caretCorners:
|
911
|
+
caretCorners: e ? g : E
|
1117
912
|
};
|
1118
913
|
}
|
1119
914
|
}
|
@@ -1133,9 +928,9 @@ var rt = typeof window < "u", Et = (
|
|
1133
928
|
});
|
1134
929
|
}, o.prototype.destroy = function() {
|
1135
930
|
var t, r;
|
1136
|
-
this.frameId && (cancelAnimationFrame(this.frameId), this.frameId = null), this.clearHideTimeout(), this.clearShowTimeout(), this.adapter.removeClass(
|
931
|
+
this.frameId && (cancelAnimationFrame(this.frameId), this.frameId = null), this.clearHideTimeout(), this.clearShowTimeout(), this.adapter.removeClass(G), this.adapter.removeClass(V), this.adapter.removeClass(z), this.adapter.removeClass(M), this.adapter.removeClass(k), this.richTooltip && this.adapter.deregisterEventHandler("focusout", this.richTooltipFocusOutHandler), this.persistentTooltip || (this.adapter.deregisterEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.deregisterEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), this.adapter.deregisterAnchorEventHandler("blur", this.anchorBlurHandler), this.adapter.deregisterDocumentEventHandler("click", this.documentClickHandler), this.adapter.deregisterDocumentEventHandler("keydown", this.documentKeydownHandler), this.adapter.deregisterWindowEventHandler("scroll", this.windowScrollHandler), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler);
|
1137
932
|
try {
|
1138
|
-
for (var
|
933
|
+
for (var e = x(this.removeAncestorScrollEventListeners), n = e.next(); !n.done; n = e.next()) {
|
1139
934
|
var a = n.value;
|
1140
935
|
a();
|
1141
936
|
}
|
@@ -1143,7 +938,7 @@ var rt = typeof window < "u", Et = (
|
|
1143
938
|
t = { error: d };
|
1144
939
|
} finally {
|
1145
940
|
try {
|
1146
|
-
n && !n.done && (r =
|
941
|
+
n && !n.done && (r = e.return) && r.call(e);
|
1147
942
|
} finally {
|
1148
943
|
if (t)
|
1149
944
|
throw t.error;
|
@@ -1151,28 +946,28 @@ var rt = typeof window < "u", Et = (
|
|
1151
946
|
}
|
1152
947
|
this.animFrame.cancelAll();
|
1153
948
|
}, o;
|
1154
|
-
}(
|
949
|
+
}(dt)
|
1155
950
|
);
|
1156
|
-
const
|
951
|
+
const mt = `.mdc-tooltip__surface,.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-tooltip__surface{color:#fff;color:var(--mdc-theme-text-primary-on-dark, white)}.mdc-tooltip__surface{background-color:#0009}.mdc-tooltip__title{color:#000000de;color:var(--mdc-theme-text-primary-on-light, rgba(0, 0, 0, .87))}.mdc-tooltip__content{color:#0009}.mdc-tooltip__content-link{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-tooltip__interactive-content{overflow-x:unset;overflow-y:auto}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:#fff}.mdc-tooltip__surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size, .75rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-tooltip--rich .mdc-tooltip__surface{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-radius:4px;line-height:20px}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__surface .mdc-tooltip__title{display:block;margin-top:0;line-height:20px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-subtitle2-font-size, .875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, .0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-tooltip__surface .mdc-tooltip__title:before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-tooltip__surface .mdc-tooltip__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity .15s 0ms cubic-bezier(0,0,.2,1),transform .15s 0ms cubic-bezier(0,0,.2,1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface:before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface:before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:184px;margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:304px;align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;outline:1px solid transparent;z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__title,.mdc-tooltip__content{color:var(--mdc-theme-text-primary-on-background)}.mdc-tooltip__content-link{color:var(--mdc-theme-accent)}.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__surface,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-top,.mdc-tooltip.mdc-tooltip--rich .mdc-tooltip__caret-surface-bottom{background-color:var(--mdc-theme-surface)}
|
1157
952
|
`;
|
1158
|
-
var
|
1159
|
-
for (var
|
1160
|
-
(a =
|
1161
|
-
return r &&
|
953
|
+
var Tt = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, R = (i, o, t, r) => {
|
954
|
+
for (var e = r > 1 ? void 0 : r ? ft(o, t) : o, n = i.length - 1, a; n >= 0; n--)
|
955
|
+
(a = i[n]) && (e = (r ? a(o, t, e) : a(e)) || e);
|
956
|
+
return r && e && Tt(o, t, e), e;
|
1162
957
|
};
|
1163
|
-
let
|
958
|
+
let A = class extends it {
|
1164
959
|
constructor() {
|
1165
|
-
super(...arguments), this.mdcFoundationClass =
|
960
|
+
super(...arguments), this.mdcFoundationClass = ut;
|
1166
961
|
}
|
1167
962
|
createAdapter() {
|
1168
963
|
return {
|
1169
|
-
...
|
1170
|
-
getAttribute: (
|
1171
|
-
setAttribute: (
|
1172
|
-
removeAttribute: (
|
1173
|
-
getComputedStyleProperty: (
|
1174
|
-
setStyleProperty: (
|
1175
|
-
setSurfaceAnimationStyleProperty: (
|
964
|
+
...ot(this.mdcRoot),
|
965
|
+
getAttribute: (i) => this.mdcRoot.getAttribute(i),
|
966
|
+
setAttribute: (i, o) => this.mdcRoot.setAttribute(i, o),
|
967
|
+
removeAttribute: (i) => this.mdcRoot.removeAttribute(i),
|
968
|
+
getComputedStyleProperty: (i) => getComputedStyle(this.mdcRoot, i).cssText,
|
969
|
+
setStyleProperty: (i, o) => this.mdcRoot.style.setProperty(i, o),
|
970
|
+
setSurfaceAnimationStyleProperty: (i, o) => this.mdcSurface.style.setProperty(i, o),
|
1176
971
|
getViewportWidth: () => Math.max(
|
1177
972
|
document.documentElement.clientWidth || 0,
|
1178
973
|
window.innerWidth || 0
|
@@ -1187,54 +982,54 @@ let R = class extends st {
|
|
1187
982
|
}),
|
1188
983
|
getTooltipCaretBoundingRect: () => this.mdcRoot.getBoundingClientRect() ?? null,
|
1189
984
|
getAnchorBoundingRect: () => {
|
1190
|
-
var
|
1191
|
-
return ((
|
985
|
+
var i;
|
986
|
+
return ((i = this.anchor) == null ? void 0 : i.getBoundingClientRect()) ?? null;
|
1192
987
|
},
|
1193
988
|
getParentBoundingRect: () => {
|
1194
|
-
var
|
1195
|
-
return ((
|
989
|
+
var i;
|
990
|
+
return ((i = this.renderRoot.getRootNode().parentElement) == null ? void 0 : i.getBoundingClientRect()) ?? null;
|
1196
991
|
},
|
1197
|
-
getAnchorAttribute: (
|
992
|
+
getAnchorAttribute: (i) => {
|
1198
993
|
var o;
|
1199
|
-
return ((o = this.anchor) == null ? void 0 : o.getAttribute(
|
994
|
+
return ((o = this.anchor) == null ? void 0 : o.getAttribute(i)) ?? null;
|
1200
995
|
},
|
1201
|
-
setAnchorAttribute: (
|
996
|
+
setAnchorAttribute: (i, o) => {
|
1202
997
|
var t;
|
1203
|
-
return (t = this.anchor) == null ? void 0 : t.setAttribute(
|
998
|
+
return (t = this.anchor) == null ? void 0 : t.setAttribute(i, o);
|
1204
999
|
},
|
1205
1000
|
isRTL: () => !1,
|
1206
|
-
isInstanceOfElement: (
|
1207
|
-
anchorContainsElement: (
|
1001
|
+
isInstanceOfElement: (i) => i instanceof Element,
|
1002
|
+
anchorContainsElement: (i) => {
|
1208
1003
|
var o;
|
1209
|
-
return ((o = this.anchor) == null ? void 0 : o.contains(
|
1004
|
+
return ((o = this.anchor) == null ? void 0 : o.contains(i)) ?? !1;
|
1210
1005
|
},
|
1211
|
-
tooltipContainsElement: (
|
1006
|
+
tooltipContainsElement: (i) => this.contains(i),
|
1212
1007
|
focusAnchorElement: () => {
|
1213
|
-
var
|
1214
|
-
return (
|
1008
|
+
var i;
|
1009
|
+
return (i = this.anchor) == null ? void 0 : i.focus();
|
1215
1010
|
},
|
1216
|
-
registerEventHandler: (
|
1011
|
+
registerEventHandler: (i, o) => {
|
1217
1012
|
var t;
|
1218
|
-
return (t = this.mdcRoot) == null ? void 0 : t.addEventListener(
|
1013
|
+
return (t = this.mdcRoot) == null ? void 0 : t.addEventListener(i, o);
|
1219
1014
|
},
|
1220
|
-
deregisterEventHandler: (
|
1015
|
+
deregisterEventHandler: (i, o) => {
|
1221
1016
|
var t;
|
1222
|
-
return (t = this.mdcRoot) == null ? void 0 : t.removeEventListener(
|
1017
|
+
return (t = this.mdcRoot) == null ? void 0 : t.removeEventListener(i, o);
|
1223
1018
|
},
|
1224
|
-
registerAnchorEventHandler: (
|
1019
|
+
registerAnchorEventHandler: (i, o) => {
|
1225
1020
|
var t;
|
1226
|
-
return (t = this.anchor) == null ? void 0 : t.addEventListener(
|
1021
|
+
return (t = this.anchor) == null ? void 0 : t.addEventListener(i, o);
|
1227
1022
|
},
|
1228
|
-
deregisterAnchorEventHandler: (
|
1023
|
+
deregisterAnchorEventHandler: (i, o) => {
|
1229
1024
|
var t;
|
1230
|
-
return (t = this.anchor) == null ? void 0 : t.removeEventListener(
|
1025
|
+
return (t = this.anchor) == null ? void 0 : t.removeEventListener(i, o);
|
1231
1026
|
},
|
1232
|
-
registerDocumentEventHandler: (
|
1233
|
-
deregisterDocumentEventHandler: (
|
1234
|
-
registerWindowEventHandler: (
|
1235
|
-
deregisterWindowEventHandler: (
|
1236
|
-
notifyHidden: () => this.dispatchEvent(new Event(
|
1237
|
-
notifyShown: () => this.dispatchEvent(new Event(
|
1027
|
+
registerDocumentEventHandler: (i, o) => document.addEventListener(i, o),
|
1028
|
+
deregisterDocumentEventHandler: (i, o) => document.removeEventListener(i, o),
|
1029
|
+
registerWindowEventHandler: (i, o) => window.addEventListener(i, o),
|
1030
|
+
deregisterWindowEventHandler: (i, o) => window.removeEventListener(i, o),
|
1031
|
+
notifyHidden: () => this.dispatchEvent(new Event(j.HIDDEN)),
|
1032
|
+
notifyShown: () => this.dispatchEvent(new Event(j.SHOWN)),
|
1238
1033
|
setTooltipCaretStyle: () => {
|
1239
1034
|
},
|
1240
1035
|
clearTooltipCaretStyles: () => {
|
@@ -1242,12 +1037,12 @@ let R = class extends st {
|
|
1242
1037
|
getActiveElement: () => document.activeElement
|
1243
1038
|
};
|
1244
1039
|
}
|
1245
|
-
updated(
|
1246
|
-
super.updated(
|
1040
|
+
updated(i) {
|
1041
|
+
super.updated(i), this.showDelay !== void 0 && !isNaN(this.showDelay) && this.mdcFoundation.setShowDelay(this.showDelay), this.hideDelay !== void 0 && !isNaN(this.hideDelay) && this.mdcFoundation.setHideDelay(this.hideDelay);
|
1247
1042
|
}
|
1248
1043
|
async firstUpdated() {
|
1249
|
-
var
|
1250
|
-
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), (
|
1044
|
+
var i, o, t, r, e;
|
1045
|
+
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), (i = this.anchor) == null || i.addEventListener(
|
1251
1046
|
"click",
|
1252
1047
|
() => this.mdcFoundation.handleAnchorClick()
|
1253
1048
|
), (o = this.anchor) == null || o.addEventListener(
|
@@ -1259,14 +1054,14 @@ let R = class extends st {
|
|
1259
1054
|
), this.persistent || ((r = this.anchor) == null || r.addEventListener(
|
1260
1055
|
"mouseleave",
|
1261
1056
|
() => this.mdcFoundation.handleAnchorMouseLeave()
|
1262
|
-
), (
|
1057
|
+
), (e = this.anchor) == null || e.addEventListener(
|
1263
1058
|
"touchend",
|
1264
1059
|
() => this.mdcFoundation.handleAnchorTouchend()
|
1265
1060
|
));
|
1266
1061
|
}
|
1267
1062
|
disconnectedCallback() {
|
1268
|
-
var
|
1269
|
-
super.connectedCallback(), (
|
1063
|
+
var i, o, t, r, e;
|
1064
|
+
super.connectedCallback(), (i = this.anchor) == null || i.removeEventListener(
|
1270
1065
|
"click",
|
1271
1066
|
() => this.mdcFoundation.handleAnchorClick()
|
1272
1067
|
), (o = this.anchor) == null || o.removeEventListener(
|
@@ -1278,13 +1073,13 @@ let R = class extends st {
|
|
1278
1073
|
), (r = this.anchor) == null || r.removeEventListener(
|
1279
1074
|
"touchstart",
|
1280
1075
|
() => this.mdcFoundation.handleAnchorTouchstart()
|
1281
|
-
), (
|
1076
|
+
), (e = this.anchor) == null || e.removeEventListener(
|
1282
1077
|
"touchend",
|
1283
1078
|
() => this.mdcFoundation.handleAnchorTouchend()
|
1284
1079
|
);
|
1285
1080
|
}
|
1286
1081
|
render() {
|
1287
|
-
return
|
1082
|
+
return F`
|
1288
1083
|
<div
|
1289
1084
|
class="mdc-tooltip ${this.rich ? "mdc-tooltip--rich" : ""}"
|
1290
1085
|
role="tooltip"
|
@@ -1292,52 +1087,52 @@ let R = class extends st {
|
|
1292
1087
|
data-mdc-tooltip-persistent="true"
|
1293
1088
|
>
|
1294
1089
|
<div class="mdc-tooltip__surface mdc-tooltip__surface-animation">
|
1295
|
-
${this.rich ?
|
1090
|
+
${this.rich ? F`<div class="mdc-tooltip__title">${this.richTitle}</div>
|
1296
1091
|
<div class="mdc-tooltip__content">
|
1297
1092
|
<slot></slot>
|
1298
1093
|
</div>
|
1299
1094
|
<div class="mdc-tooltip--rich-actions">
|
1300
1095
|
<slot name="actionItems"></slot>
|
1301
|
-
</div>` :
|
1096
|
+
</div>` : F`<slot></slot>`}
|
1302
1097
|
</div>
|
1303
1098
|
</div>
|
1304
1099
|
`;
|
1305
1100
|
}
|
1306
1101
|
};
|
1307
|
-
|
1308
|
-
|
1309
|
-
${
|
1102
|
+
A.styles = [
|
1103
|
+
tt`
|
1104
|
+
${et(mt)}
|
1310
1105
|
`
|
1311
1106
|
];
|
1312
|
-
|
1313
|
-
|
1314
|
-
],
|
1315
|
-
|
1316
|
-
|
1317
|
-
],
|
1318
|
-
|
1319
|
-
|
1320
|
-
],
|
1321
|
-
|
1322
|
-
|
1323
|
-
],
|
1324
|
-
|
1325
|
-
|
1326
|
-
],
|
1327
|
-
|
1328
|
-
|
1329
|
-
],
|
1330
|
-
|
1331
|
-
|
1332
|
-
],
|
1333
|
-
|
1334
|
-
|
1335
|
-
],
|
1336
|
-
|
1337
|
-
|
1338
|
-
],
|
1339
|
-
const
|
1107
|
+
R([
|
1108
|
+
X(".mdc-tooltip")
|
1109
|
+
], A.prototype, "mdcRoot", 2);
|
1110
|
+
R([
|
1111
|
+
X(".mdc-tooltip__surface")
|
1112
|
+
], A.prototype, "mdcSurface", 2);
|
1113
|
+
R([
|
1114
|
+
C({ type: Object })
|
1115
|
+
], A.prototype, "anchor", 2);
|
1116
|
+
R([
|
1117
|
+
C()
|
1118
|
+
], A.prototype, "richTitle", 2);
|
1119
|
+
R([
|
1120
|
+
C({ type: Boolean, reflect: !0 })
|
1121
|
+
], A.prototype, "rich", 2);
|
1122
|
+
R([
|
1123
|
+
C({ type: Boolean, reflect: !0 })
|
1124
|
+
], A.prototype, "persistent", 2);
|
1125
|
+
R([
|
1126
|
+
C({ type: Number })
|
1127
|
+
], A.prototype, "showDelay", 2);
|
1128
|
+
R([
|
1129
|
+
C({ type: Number })
|
1130
|
+
], A.prototype, "hideDelay", 2);
|
1131
|
+
A = R([
|
1132
|
+
rt("cv-tooltip")
|
1133
|
+
], A);
|
1134
|
+
const Dt = A;
|
1340
1135
|
export {
|
1341
|
-
|
1342
|
-
|
1136
|
+
A as CovalentTooltip,
|
1137
|
+
Dt as default
|
1343
1138
|
};
|