@covalent/components 6.4.0 → 6.4.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 +6 -6
- package/action-ribbon.mjs +24 -23
- package/alert.js +4 -4
- package/alert.mjs +28 -27
- package/app-shell.js +4 -4
- package/app-shell.mjs +10 -10
- package/{base-element-67ae173f.mjs → base-element-c3dc926e.mjs} +2 -2
- package/{base-element-58a3f9ea.js → base-element-d5abe37a.js} +1 -1
- package/button.js +4 -4
- package/button.mjs +13 -13
- package/card.js +8 -8
- package/card.mjs +4 -4
- package/check-list-item.js +3 -3
- package/check-list-item.mjs +16 -16
- package/checkbox.js +1 -1
- package/checkbox.mjs +15 -15
- package/circular-progress.js +7 -7
- package/circular-progress.mjs +6 -6
- package/class-map-08c84aeb.mjs +62 -0
- package/class-map-50b8edb4.js +9 -0
- package/code-snippet.js +9 -9
- package/code-snippet.mjs +1213 -1276
- package/{dialog-9ac44447.mjs → dialog-85c21333.mjs} +39 -39
- package/{dialog-79036d60.js → dialog-8ee07177.js} +4 -4
- package/dialog.js +1 -1
- package/dialog.mjs +8 -8
- package/{directive-helpers-e3ea6592.mjs → directive-helpers-725a181d.mjs} +3 -3
- package/{directive-helpers-0ce1f995.js → directive-helpers-fce8cf91.js} +2 -2
- package/drawer.js +1 -1
- package/drawer.mjs +8 -8
- package/empty-state.js +7 -7
- package/empty-state.mjs +4 -4
- package/{event-options-78d6cf94.mjs → event-options-3937d997.mjs} +1 -1
- package/{event-options-3f5eb195.js → event-options-7bc382d8.js} +1 -1
- package/{form-element-bd973124.mjs → form-element-6dbd7afa.mjs} +4 -4
- package/{form-element-ead758d4.js → form-element-d4e7bcdb.js} +2 -2
- package/foundation-2334d146.mjs +60 -0
- package/{foundation-62d4413d.js → foundation-3f55a9dc.js} +3 -24
- package/{foundation-3f556da7.mjs → foundation-c580100a.mjs} +28 -78
- package/foundation-e830bd94.js +22 -0
- package/icon-button.js +5 -5
- package/icon-button.mjs +12 -12
- package/icon-check-toggle.js +5 -5
- package/icon-check-toggle.mjs +15 -15
- package/icon-radio-toggle.js +4 -4
- package/icon-radio-toggle.mjs +15 -15
- package/icon.js +1 -1
- package/icon.mjs +3 -3
- package/{if-defined-c367f208.mjs → if-defined-639ed018.mjs} +1 -1
- package/if-defined-cb12d481.js +5 -0
- package/index.js +1 -1
- package/index.mjs +121 -120
- package/linear-progress.js +6 -6
- package/linear-progress.mjs +13 -13
- package/{list-066f5de4.mjs → list-d616957b.mjs} +3 -3
- package/{list-05db7fed.js → list-defdaa3b.js} +2 -2
- package/list-expansion.js +4 -4
- package/list-expansion.mjs +25 -25
- package/{list-item-8da7ba96.js → list-item-3fa66f09.js} +3 -3
- package/{list-item-ba77097d.mjs → list-item-d5c05e10.mjs} +6 -6
- package/list-item.js +1 -1
- package/list-item.mjs +13 -13
- package/list.js +1 -1
- package/list.mjs +15 -15
- package/menu.js +1 -1
- package/menu.mjs +15 -15
- package/{mwc-checkbox-base-3da36456.mjs → mwc-checkbox-base-10e977f2.mjs} +21 -21
- package/{mwc-checkbox-base-d46c7666.js → mwc-checkbox-base-435c1f1d.js} +9 -9
- package/{mwc-checkbox.css-b3434429.js → mwc-checkbox.css-956e3d6c.js} +1 -1
- package/{mwc-checkbox.css-8f4f1a9b.mjs → mwc-checkbox.css-b7abc7fd.mjs} +1 -1
- package/{mwc-drawer-base-fe660bdf.mjs → mwc-drawer-base-b2b772c3.mjs} +10 -10
- package/{mwc-drawer-base-8eecb1de.js → mwc-drawer-base-f44fcf34.js} +6 -6
- package/{mwc-icon-8c9cd0c9.js → mwc-icon-b96fb867.js} +2 -2
- package/{mwc-icon-ba18383d.mjs → mwc-icon-c7013880.mjs} +2 -2
- package/{mwc-line-ripple-directive-d1cf9570.js → mwc-line-ripple-directive-a97ce725.js} +3 -3
- package/{mwc-line-ripple-directive-ffce2cff.mjs → mwc-line-ripple-directive-c3e1f04a.mjs} +6 -6
- package/{mwc-list-base-cb3500b4.js → mwc-list-base-7d5f7278.js} +4 -4
- package/{mwc-list-base-32d4ac31.mjs → mwc-list-base-c0f8af1c.mjs} +9 -9
- package/{mwc-list-item-base-4a4d1e1b.js → mwc-list-item-base-803b9771.js} +8 -8
- package/{mwc-list-item-base-8654347d.mjs → mwc-list-item-base-acef0223.mjs} +7 -7
- package/{mwc-list-item.css-25adc0c4.js → mwc-list-item.css-401e2407.js} +1 -1
- package/{mwc-list-item.css-b0009fc7.mjs → mwc-list-item.css-b5481d96.mjs} +1 -1
- package/{mwc-menu-base-572a76b9.mjs → mwc-menu-base-8970b43d.mjs} +11 -11
- package/{mwc-menu-base-f14ec544.js → mwc-menu-base-ac49fe54.js} +17 -17
- package/{mwc-radio-base-470b4fcc.js → mwc-radio-base-442d495a.js} +4 -4
- package/{mwc-radio-base-9446d39b.mjs → mwc-radio-base-c29e6f42.mjs} +11 -11
- package/{mwc-radio.css-4e140252.js → mwc-radio.css-388ad26d.js} +1 -1
- package/{mwc-radio.css-7454bb11.mjs → mwc-radio.css-4694aa9c.mjs} +1 -1
- package/{mwc-slider.css-10adbaf8.mjs → mwc-slider.css-336f809b.mjs} +12 -12
- package/{mwc-slider.css-9dd57b10.js → mwc-slider.css-48f02f1e.js} +11 -11
- package/{mwc-tab-base-fc3ffb43.js → mwc-tab-base-1a19b299.js} +13 -13
- package/{mwc-tab-base-4ba47acc.mjs → mwc-tab-base-7fb3d339.mjs} +14 -14
- package/{mwc-top-app-bar-base-0304e67f.js → mwc-top-app-bar-base-14e0a018.js} +8 -8
- package/{mwc-top-app-bar-base-adc4168a.mjs → mwc-top-app-bar-base-79c87e69.mjs} +24 -22
- package/nav-list-item.js +2 -2
- package/nav-list-item.mjs +13 -13
- package/package.json +1 -1
- package/{property-57f6f6fe.js → property-074570d1.js} +1 -1
- package/{property-9b6ea53b.mjs → property-ca27685b.mjs} +9 -9
- package/{query-d843aa92.mjs → query-1e7846ea.mjs} +1 -1
- package/{query-680f1868.js → query-2ba749b7.js} +1 -1
- package/query-assigned-elements-07e38f46.js +33 -0
- package/{query-assigned-elements-4a39219d.mjs → query-assigned-elements-514e5265.mjs} +152 -153
- package/{query-assigned-nodes-99eae71d.js → query-assigned-nodes-9ec0fa5f.js} +1 -1
- package/{query-assigned-nodes-df691e78.mjs → query-assigned-nodes-bea12e0c.mjs} +1 -1
- package/radio-list-item.js +3 -3
- package/radio-list-item.mjs +18 -18
- package/radio.js +1 -1
- package/radio.mjs +15 -15
- package/{ripple-handlers-c82b1232.js → ripple-handlers-2176f137.js} +5 -5
- package/{ripple-handlers-321219b8.mjs → ripple-handlers-227497d3.mjs} +10 -10
- package/select.js +10 -10
- package/select.mjs +20 -20
- package/side-sheet.js +2 -2
- package/side-sheet.mjs +21 -21
- package/slider-range.js +7 -7
- package/slider-range.mjs +13 -13
- package/slider.js +3 -3
- package/slider.mjs +15 -15
- package/snackbar.js +6 -6
- package/snackbar.mjs +12 -12
- package/{state-b5e865db.mjs → state-6f7e570d.mjs} +1 -1
- package/state-949232e6.js +5 -0
- package/status-header-item.js +3 -3
- package/status-header-item.mjs +15 -15
- package/status-header.js +2 -2
- package/status-header.mjs +3 -3
- package/style-map-2cb0fb63.mjs +40 -0
- package/style-map-3056a771.js +5 -0
- package/style.css +1 -1
- package/switch.js +8 -8
- package/switch.mjs +13 -13
- package/tab-bar.js +5 -5
- package/tab-bar.mjs +16 -16
- package/tab.js +1 -1
- package/tab.mjs +12 -12
- package/text-lockup.js +4 -4
- package/text-lockup.mjs +7 -7
- package/textarea.js +4 -4
- package/textarea.mjs +26 -26
- package/{textfield-2cee5a1a.mjs → textfield-276b0ded.mjs} +14 -14
- package/{textfield-0993c163.js → textfield-507c6a06.js} +12 -12
- package/textfield.js +1 -1
- package/textfield.mjs +14 -14
- package/toolbar.js +1 -1
- package/toolbar.mjs +8 -8
- package/tooltip/tooltip.d.ts.map +1 -1
- package/tooltip.js +11 -32
- package/tooltip.mjs +516 -611
- package/{top-app-bar-a531c1b4.js → top-app-bar-34e85527.js} +1 -1
- package/{top-app-bar-f83386e0.mjs → top-app-bar-a236c3bc.mjs} +1 -1
- package/top-app-bar-fixed.js +5 -89
- package/top-app-bar-fixed.mjs +37 -279
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +9 -9
- package/tree-list-item.js +7 -7
- package/tree-list-item.mjs +6 -6
- package/tree-list.js +2 -2
- package/tree-list.mjs +1 -1
- package/tslib.es6-6b53b818.js +1 -0
- package/tslib.es6-b5e819a6.mjs +82 -0
- package/typography.js +3 -3
- package/typography.mjs +2 -2
- package/{utils-2932417c.mjs → utils-dc65fdc9.mjs} +2 -2
- package/class-map-4b94b017.mjs +0 -62
- package/class-map-b5efe8da.js +0 -9
- package/if-defined-f1c45245.js +0 -5
- package/query-assigned-elements-f623705d.js +0 -31
- package/state-0974a8e5.js +0 -5
- package/style-map-88d2563f.js +0 -5
- package/style-map-bc3ed3e0.mjs +0 -44
- package/tslib.es6-e6a11c8a.js +0 -1
- package/tslib.es6-f1eaf65c.mjs +0 -82
package/tooltip.mjs
CHANGED
@@ -1,65 +1,9 @@
|
|
1
|
-
import { i as
|
2
|
-
import {
|
3
|
-
import { i as
|
4
|
-
import { a as
|
5
|
-
import {
|
6
|
-
|
7
|
-
* @license
|
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 it, r as rt, s as ot, y as Y, e as nt } from "./query-assigned-elements-514e5265.mjs";
|
2
|
+
import { e as L } from "./property-ca27685b.mjs";
|
3
|
+
import { i as et } from "./query-1e7846ea.mjs";
|
4
|
+
import { a as at } from "./utils-dc65fdc9.mjs";
|
5
|
+
import { a as st, b as J, c as H } from "./tslib.es6-b5e819a6.mjs";
|
6
|
+
import { M as lt } from "./foundation-2334d146.mjs";
|
63
7
|
/**
|
64
8
|
* @license
|
65
9
|
* Copyright 2020 Google Inc.
|
@@ -82,67 +26,62 @@ var ht = (
|
|
82
26
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
83
27
|
* THE SOFTWARE.
|
84
28
|
*/
|
85
|
-
var
|
86
|
-
(function(
|
87
|
-
|
88
|
-
})(
|
89
|
-
var
|
29
|
+
var x;
|
30
|
+
(function(i) {
|
31
|
+
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";
|
32
|
+
})(x || (x = {}));
|
33
|
+
var O = {
|
90
34
|
BOUNDED_ANCHOR_GAP: 4,
|
91
35
|
UNBOUNDED_ANCHOR_GAP: 8,
|
92
36
|
MIN_VIEWPORT_TOOLTIP_THRESHOLD: 8,
|
93
37
|
HIDE_DELAY_MS: 600,
|
94
38
|
SHOW_DELAY_MS: 500,
|
95
39
|
// LINT.IfChange(tooltip-dimensions)
|
96
|
-
MIN_WIDTH: 40,
|
97
40
|
MIN_HEIGHT: 24,
|
98
41
|
MAX_WIDTH: 200,
|
99
42
|
// LINT.ThenChange(_tooltip.scss:tooltip-dimensions)
|
100
43
|
CARET_INDENTATION: 24,
|
101
44
|
// LINT.IfChange(tooltip-anim-scale)
|
102
|
-
ANIMATION_SCALE: 0.8
|
45
|
+
ANIMATION_SCALE: 0.8
|
103
46
|
// LINT.ThenChange(_tooltip.scss:tooltip-anim-scale)
|
104
|
-
|
105
|
-
RICH_MAX_WIDTH: 320
|
106
|
-
// LINT.ThenChange(_tooltip.scss:rich-tooltip-dimensions)
|
107
|
-
}, U = {
|
47
|
+
}, G = {
|
108
48
|
ARIA_EXPANDED: "aria-expanded",
|
109
49
|
ARIA_HASPOPUP: "aria-haspopup",
|
110
50
|
PERSISTENT: "data-mdc-tooltip-persistent",
|
111
51
|
SCROLLABLE_ANCESTOR: "tooltip-scrollable-ancestor",
|
112
52
|
HAS_CARET: "data-mdc-tooltip-has-caret"
|
113
|
-
},
|
114
|
-
HIDDEN: "MDCTooltip:hidden"
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
var c = {
|
53
|
+
}, dt = {
|
54
|
+
HIDDEN: "MDCTooltip:hidden"
|
55
|
+
}, P;
|
56
|
+
(function(i) {
|
57
|
+
i[i.DETECTED = 0] = "DETECTED", i[i.START = 1] = "START", i[i.CENTER = 2] = "CENTER", i[i.END = 3] = "END";
|
58
|
+
})(P || (P = {}));
|
59
|
+
var F;
|
60
|
+
(function(i) {
|
61
|
+
i[i.DETECTED = 0] = "DETECTED", i[i.ABOVE = 1] = "ABOVE", i[i.BELOW = 2] = "BELOW";
|
62
|
+
})(F || (F = {}));
|
63
|
+
var j;
|
64
|
+
(function(i) {
|
65
|
+
i[i.BOUNDED = 0] = "BOUNDED", i[i.UNBOUNDED = 1] = "UNBOUNDED";
|
66
|
+
})(j || (j = {}));
|
67
|
+
var d = {
|
129
68
|
LEFT: "left",
|
130
69
|
RIGHT: "right",
|
131
70
|
CENTER: "center",
|
132
71
|
TOP: "top",
|
133
72
|
BOTTOM: "bottom"
|
134
|
-
},
|
135
|
-
(function(
|
136
|
-
|
137
|
-
})(
|
138
|
-
var
|
139
|
-
(function(
|
140
|
-
|
141
|
-
})(
|
142
|
-
var
|
143
|
-
(function(
|
144
|
-
|
145
|
-
})(
|
73
|
+
}, h;
|
74
|
+
(function(i) {
|
75
|
+
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";
|
76
|
+
})(h || (h = {}));
|
77
|
+
var _;
|
78
|
+
(function(i) {
|
79
|
+
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";
|
80
|
+
})(_ || (_ = {}));
|
81
|
+
var T;
|
82
|
+
(function(i) {
|
83
|
+
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";
|
84
|
+
})(T || (T = {}));
|
146
85
|
/**
|
147
86
|
* @license
|
148
87
|
* Copyright 2020 Google Inc.
|
@@ -165,33 +104,33 @@ var f;
|
|
165
104
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
166
105
|
* THE SOFTWARE.
|
167
106
|
*/
|
168
|
-
var
|
107
|
+
var ct = (
|
169
108
|
/** @class */
|
170
109
|
function() {
|
171
|
-
function
|
110
|
+
function i() {
|
172
111
|
this.rafIDs = /* @__PURE__ */ new Map();
|
173
112
|
}
|
174
|
-
return
|
113
|
+
return i.prototype.request = function(o, t) {
|
175
114
|
var r = this;
|
176
115
|
this.cancel(o);
|
177
|
-
var
|
116
|
+
var e = requestAnimationFrame(function(n) {
|
178
117
|
r.rafIDs.delete(o), t(n);
|
179
118
|
});
|
180
|
-
this.rafIDs.set(o,
|
181
|
-
},
|
119
|
+
this.rafIDs.set(o, e);
|
120
|
+
}, i.prototype.cancel = function(o) {
|
182
121
|
var t = this.rafIDs.get(o);
|
183
122
|
t && (cancelAnimationFrame(t), this.rafIDs.delete(o));
|
184
|
-
},
|
123
|
+
}, i.prototype.cancelAll = function() {
|
185
124
|
var o = this;
|
186
125
|
this.rafIDs.forEach(function(t, r) {
|
187
126
|
o.cancel(r);
|
188
127
|
});
|
189
|
-
},
|
128
|
+
}, i.prototype.getQueue = function() {
|
190
129
|
var o = [];
|
191
130
|
return this.rafIDs.forEach(function(t, r) {
|
192
131
|
o.push(r);
|
193
132
|
}), o;
|
194
|
-
},
|
133
|
+
}, i;
|
195
134
|
}()
|
196
135
|
);
|
197
136
|
/**
|
@@ -216,7 +155,7 @@ var pt = (
|
|
216
155
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
217
156
|
* THE SOFTWARE.
|
218
157
|
*/
|
219
|
-
var
|
158
|
+
var Z = {
|
220
159
|
animation: {
|
221
160
|
prefixed: "-webkit-animation",
|
222
161
|
standard: "animation"
|
@@ -230,13 +169,13 @@ var et = {
|
|
230
169
|
standard: "transition"
|
231
170
|
}
|
232
171
|
};
|
233
|
-
function
|
234
|
-
return
|
172
|
+
function ht(i) {
|
173
|
+
return Boolean(i.document) && typeof i.document.createElement == "function";
|
235
174
|
}
|
236
|
-
function
|
237
|
-
if (
|
238
|
-
var t =
|
239
|
-
return a ?
|
175
|
+
function X(i, o) {
|
176
|
+
if (ht(i) && o in Z) {
|
177
|
+
var t = i.document.createElement("div"), r = Z[o], e = r.standard, n = r.prefixed, a = e in t.style;
|
178
|
+
return a ? e : n;
|
240
179
|
}
|
241
180
|
return o;
|
242
181
|
}
|
@@ -262,7 +201,7 @@ function it(e, o) {
|
|
262
201
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
263
202
|
* THE SOFTWARE.
|
264
203
|
*/
|
265
|
-
var
|
204
|
+
var p = {
|
266
205
|
UNKNOWN: "Unknown",
|
267
206
|
BACKSPACE: "Backspace",
|
268
207
|
ENTER: "Enter",
|
@@ -279,21 +218,21 @@ var u = {
|
|
279
218
|
ESCAPE: "Escape",
|
280
219
|
TAB: "Tab"
|
281
220
|
}, D = /* @__PURE__ */ new Set();
|
282
|
-
D.add(
|
283
|
-
D.add(
|
284
|
-
D.add(
|
285
|
-
D.add(
|
286
|
-
D.add(
|
287
|
-
D.add(
|
288
|
-
D.add(
|
289
|
-
D.add(
|
290
|
-
D.add(
|
291
|
-
D.add(
|
292
|
-
D.add(
|
293
|
-
D.add(
|
294
|
-
D.add(
|
295
|
-
D.add(
|
296
|
-
var
|
221
|
+
D.add(p.BACKSPACE);
|
222
|
+
D.add(p.ENTER);
|
223
|
+
D.add(p.SPACEBAR);
|
224
|
+
D.add(p.PAGE_UP);
|
225
|
+
D.add(p.PAGE_DOWN);
|
226
|
+
D.add(p.END);
|
227
|
+
D.add(p.HOME);
|
228
|
+
D.add(p.ARROW_LEFT);
|
229
|
+
D.add(p.ARROW_UP);
|
230
|
+
D.add(p.ARROW_RIGHT);
|
231
|
+
D.add(p.ARROW_DOWN);
|
232
|
+
D.add(p.DELETE);
|
233
|
+
D.add(p.ESCAPE);
|
234
|
+
D.add(p.TAB);
|
235
|
+
var R = {
|
297
236
|
BACKSPACE: 8,
|
298
237
|
ENTER: 13,
|
299
238
|
SPACEBAR: 32,
|
@@ -309,35 +248,35 @@ var S = {
|
|
309
248
|
ESCAPE: 27,
|
310
249
|
TAB: 9
|
311
250
|
}, w = /* @__PURE__ */ new Map();
|
312
|
-
w.set(
|
313
|
-
w.set(
|
314
|
-
w.set(
|
315
|
-
w.set(
|
316
|
-
w.set(
|
317
|
-
w.set(
|
318
|
-
w.set(
|
319
|
-
w.set(
|
320
|
-
w.set(
|
321
|
-
w.set(
|
322
|
-
w.set(
|
323
|
-
w.set(
|
324
|
-
w.set(
|
325
|
-
w.set(
|
326
|
-
var
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
function
|
336
|
-
var o =
|
251
|
+
w.set(R.BACKSPACE, p.BACKSPACE);
|
252
|
+
w.set(R.ENTER, p.ENTER);
|
253
|
+
w.set(R.SPACEBAR, p.SPACEBAR);
|
254
|
+
w.set(R.PAGE_UP, p.PAGE_UP);
|
255
|
+
w.set(R.PAGE_DOWN, p.PAGE_DOWN);
|
256
|
+
w.set(R.END, p.END);
|
257
|
+
w.set(R.HOME, p.HOME);
|
258
|
+
w.set(R.ARROW_LEFT, p.ARROW_LEFT);
|
259
|
+
w.set(R.ARROW_UP, p.ARROW_UP);
|
260
|
+
w.set(R.ARROW_RIGHT, p.ARROW_RIGHT);
|
261
|
+
w.set(R.ARROW_DOWN, p.ARROW_DOWN);
|
262
|
+
w.set(R.DELETE, p.DELETE);
|
263
|
+
w.set(R.ESCAPE, p.ESCAPE);
|
264
|
+
w.set(R.TAB, p.TAB);
|
265
|
+
var I = /* @__PURE__ */ new Set();
|
266
|
+
I.add(p.PAGE_UP);
|
267
|
+
I.add(p.PAGE_DOWN);
|
268
|
+
I.add(p.END);
|
269
|
+
I.add(p.HOME);
|
270
|
+
I.add(p.ARROW_LEFT);
|
271
|
+
I.add(p.ARROW_UP);
|
272
|
+
I.add(p.ARROW_RIGHT);
|
273
|
+
I.add(p.ARROW_DOWN);
|
274
|
+
function pt(i) {
|
275
|
+
var o = i.key;
|
337
276
|
if (D.has(o))
|
338
277
|
return o;
|
339
|
-
var t = w.get(
|
340
|
-
return t ||
|
278
|
+
var t = w.get(i.keyCode);
|
279
|
+
return t || p.UNKNOWN;
|
341
280
|
}
|
342
281
|
/**
|
343
282
|
* @license
|
@@ -361,28 +300,28 @@ function ft(e) {
|
|
361
300
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
362
301
|
* THE SOFTWARE.
|
363
302
|
*/
|
364
|
-
var
|
365
|
-
(function(
|
366
|
-
|
303
|
+
var ut = x.RICH, $ = x.SHOWN, q = x.SHOWING, U = x.SHOWING_TRANSITION, V = x.HIDE, z = x.HIDE_TRANSITION, Tt = x.MULTILINE_TOOLTIP, Q;
|
304
|
+
(function(i) {
|
305
|
+
i.POLL_ANCHOR = "poll_anchor";
|
367
306
|
})(Q || (Q = {}));
|
368
|
-
var
|
307
|
+
var tt = typeof window < "u", mt = (
|
369
308
|
/** @class */
|
370
|
-
function(
|
371
|
-
|
309
|
+
function(i) {
|
310
|
+
st(o, i);
|
372
311
|
function o(t) {
|
373
|
-
var r =
|
374
|
-
return r.tooltipShown = !1, r.anchorGap =
|
375
|
-
r.handleAnchorBlur(
|
376
|
-
}, r.documentClickHandler = function(
|
377
|
-
r.handleDocumentClick(
|
378
|
-
}, r.documentKeydownHandler = function(
|
379
|
-
r.handleKeydown(
|
312
|
+
var r = i.call(this, J(J({}, o.defaultAdapter), t)) || this;
|
313
|
+
return r.tooltipShown = !1, r.anchorGap = O.BOUNDED_ANCHOR_GAP, r.xTooltipPos = P.DETECTED, r.yTooltipPos = F.DETECTED, r.tooltipPositionWithCaret = h.DETECTED, r.minViewportTooltipThreshold = O.MIN_VIEWPORT_TOOLTIP_THRESHOLD, r.hideDelayMs = O.HIDE_DELAY_MS, r.showDelayMs = O.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 ct(), r.anchorBlurHandler = function(e) {
|
314
|
+
r.handleAnchorBlur(e);
|
315
|
+
}, r.documentClickHandler = function(e) {
|
316
|
+
r.handleDocumentClick(e);
|
317
|
+
}, r.documentKeydownHandler = function(e) {
|
318
|
+
r.handleKeydown(e);
|
380
319
|
}, r.tooltipMouseEnterHandler = function() {
|
381
320
|
r.handleTooltipMouseEnter();
|
382
321
|
}, r.tooltipMouseLeaveHandler = function() {
|
383
322
|
r.handleTooltipMouseLeave();
|
384
|
-
}, r.richTooltipFocusOutHandler = function(
|
385
|
-
r.handleRichTooltipFocusOut(
|
323
|
+
}, r.richTooltipFocusOutHandler = function(e) {
|
324
|
+
r.handleRichTooltipFocusOut(e);
|
386
325
|
}, r.windowScrollHandler = function() {
|
387
326
|
r.handleWindowScrollEvent();
|
388
327
|
}, r.windowResizeHandler = function() {
|
@@ -463,8 +402,6 @@ var rt = typeof window < "u", Et = (
|
|
463
402
|
},
|
464
403
|
notifyHidden: function() {
|
465
404
|
},
|
466
|
-
notifyShown: function() {
|
467
|
-
},
|
468
405
|
getTooltipCaretBoundingRect: function() {
|
469
406
|
return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 };
|
470
407
|
},
|
@@ -474,16 +411,13 @@ var rt = typeof window < "u", Et = (
|
|
474
411
|
},
|
475
412
|
getActiveElement: function() {
|
476
413
|
return null;
|
477
|
-
},
|
478
|
-
isInstanceOfElement: function() {
|
479
|
-
return !1;
|
480
414
|
}
|
481
415
|
};
|
482
416
|
},
|
483
417
|
enumerable: !1,
|
484
418
|
configurable: !0
|
485
419
|
}), o.prototype.init = function() {
|
486
|
-
this.richTooltip = this.adapter.hasClass(
|
420
|
+
this.richTooltip = this.adapter.hasClass(ut), this.persistentTooltip = this.adapter.getAttribute(G.PERSISTENT) === "true", this.interactiveTooltip = !!this.adapter.getAnchorAttribute(G.ARIA_EXPANDED) && this.adapter.getAnchorAttribute(G.ARIA_HASPOPUP) === "dialog", this.hasCaret = this.richTooltip && this.adapter.getAttribute(G.HAS_CARET) === "true";
|
487
421
|
}, o.prototype.isShown = function() {
|
488
422
|
return this.tooltipShown;
|
489
423
|
}, o.prototype.isRich = function() {
|
@@ -502,15 +436,11 @@ var rt = typeof window < "u", Et = (
|
|
502
436
|
}, this.showDelayMs), this.adapter.registerWindowEventHandler("contextmenu", this.preventContextMenuOnLongTouch);
|
503
437
|
}, o.prototype.preventContextMenuOnLongTouch = function(t) {
|
504
438
|
t.preventDefault();
|
505
|
-
}, o.prototype.tooltipContainsRelatedTargetElement = function(t) {
|
506
|
-
return this.adapter.isInstanceOfElement(t) && this.adapter.tooltipContainsElement(t);
|
507
|
-
}, o.prototype.anchorOrTooltipContainsTargetElement = function(t) {
|
508
|
-
return this.adapter.isInstanceOfElement(t) && (this.adapter.tooltipContainsElement(t) || this.adapter.anchorContainsElement(t));
|
509
439
|
}, o.prototype.handleAnchorTouchend = function() {
|
510
440
|
this.clearShowTimeout(), this.isShown() || this.adapter.deregisterWindowEventHandler("contextmenu", this.preventContextMenuOnLongTouch);
|
511
441
|
}, o.prototype.handleAnchorFocus = function(t) {
|
512
|
-
var r = this;
|
513
|
-
|
442
|
+
var r = this, e = t.relatedTarget, n = e instanceof HTMLElement && this.adapter.tooltipContainsElement(e);
|
443
|
+
n || (this.showTimeout = setTimeout(function() {
|
514
444
|
r.show();
|
515
445
|
}, this.showDelayMs));
|
516
446
|
}, o.prototype.handleAnchorMouseLeave = function() {
|
@@ -521,16 +451,21 @@ var rt = typeof window < "u", Et = (
|
|
521
451
|
}, o.prototype.handleAnchorClick = function() {
|
522
452
|
this.tooltipShown ? this.hide() : this.show();
|
523
453
|
}, o.prototype.handleDocumentClick = function(t) {
|
524
|
-
|
454
|
+
var r = t.target instanceof HTMLElement && (this.adapter.anchorContainsElement(t.target) || this.adapter.tooltipContainsElement(t.target));
|
455
|
+
this.richTooltip && this.persistentTooltip && r || this.hide();
|
525
456
|
}, o.prototype.handleKeydown = function(t) {
|
526
|
-
var r =
|
527
|
-
if (r ===
|
528
|
-
var
|
529
|
-
|
457
|
+
var r = pt(t);
|
458
|
+
if (r === p.ESCAPE) {
|
459
|
+
var e = this.adapter.getActiveElement(), n = e instanceof HTMLElement && this.adapter.tooltipContainsElement(e);
|
460
|
+
n && this.adapter.focusAnchorElement(), this.hide();
|
530
461
|
}
|
531
|
-
return !0;
|
532
462
|
}, o.prototype.handleAnchorBlur = function(t) {
|
533
|
-
|
463
|
+
if (this.richTooltip) {
|
464
|
+
var r = t.relatedTarget instanceof HTMLElement && this.adapter.tooltipContainsElement(t.relatedTarget);
|
465
|
+
if (r || t.relatedTarget === null && this.interactiveTooltip)
|
466
|
+
return;
|
467
|
+
}
|
468
|
+
this.hide();
|
534
469
|
}, o.prototype.handleTooltipMouseEnter = function() {
|
535
470
|
this.show();
|
536
471
|
}, o.prototype.handleTooltipMouseLeave = function() {
|
@@ -539,25 +474,30 @@ var rt = typeof window < "u", Et = (
|
|
539
474
|
t.hide();
|
540
475
|
}, this.hideDelayMs);
|
541
476
|
}, o.prototype.handleRichTooltipFocusOut = function(t) {
|
542
|
-
|
477
|
+
var r = t.relatedTarget instanceof HTMLElement && (this.adapter.anchorContainsElement(t.relatedTarget) || this.adapter.tooltipContainsElement(t.relatedTarget));
|
478
|
+
r || t.relatedTarget === null && this.interactiveTooltip || this.hide();
|
543
479
|
}, o.prototype.handleWindowScrollEvent = function() {
|
544
|
-
this.persistentTooltip
|
480
|
+
if (this.persistentTooltip) {
|
481
|
+
this.handleWindowChangeEvent();
|
482
|
+
return;
|
483
|
+
}
|
484
|
+
this.hide();
|
545
485
|
}, o.prototype.handleWindowChangeEvent = function() {
|
546
486
|
var t = this;
|
547
487
|
this.animFrame.request(Q.POLL_ANCHOR, function() {
|
548
488
|
t.repositionTooltipOnAnchorMove();
|
549
489
|
});
|
550
490
|
}, o.prototype.show = function() {
|
551
|
-
var t, r,
|
491
|
+
var t, r, e = this;
|
552
492
|
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(
|
493
|
+
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(V), this.adapter.addClass(q), this.isTooltipMultiline() && !this.richTooltip && this.adapter.addClass(Tt), 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
494
|
try {
|
555
|
-
for (var n =
|
556
|
-
var
|
557
|
-
|
495
|
+
for (var n = H(this.addAncestorScrollEventListeners), a = n.next(); !a.done; a = n.next()) {
|
496
|
+
var c = a.value;
|
497
|
+
c();
|
558
498
|
}
|
559
|
-
} catch (
|
560
|
-
t = { error:
|
499
|
+
} catch (u) {
|
500
|
+
t = { error: u };
|
561
501
|
} finally {
|
562
502
|
try {
|
563
503
|
a && !a.done && (r = n.return) && r.call(n);
|
@@ -567,23 +507,23 @@ var rt = typeof window < "u", Et = (
|
|
567
507
|
}
|
568
508
|
}
|
569
509
|
this.frameId = requestAnimationFrame(function() {
|
570
|
-
|
510
|
+
e.clearAllAnimationClasses(), e.adapter.addClass($), e.adapter.addClass(U);
|
571
511
|
});
|
572
512
|
}
|
573
513
|
}, o.prototype.hide = function() {
|
574
514
|
var t, r;
|
575
515
|
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(
|
516
|
+
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(V), this.adapter.addClass(z), this.adapter.removeClass($), 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
517
|
try {
|
578
|
-
for (var
|
518
|
+
for (var e = H(this.removeAncestorScrollEventListeners), n = e.next(); !n.done; n = e.next()) {
|
579
519
|
var a = n.value;
|
580
520
|
a();
|
581
521
|
}
|
582
|
-
} catch (
|
583
|
-
t = { error:
|
522
|
+
} catch (c) {
|
523
|
+
t = { error: c };
|
584
524
|
} finally {
|
585
525
|
try {
|
586
|
-
n && !n.done && (r =
|
526
|
+
n && !n.done && (r = e.return) && r.call(e);
|
587
527
|
} finally {
|
588
528
|
if (t)
|
589
529
|
throw t.error;
|
@@ -591,233 +531,200 @@ var rt = typeof window < "u", Et = (
|
|
591
531
|
}
|
592
532
|
}
|
593
533
|
}, o.prototype.handleTransitionEnd = function() {
|
594
|
-
var t = this.adapter.hasClass(
|
595
|
-
this.adapter.removeClass(
|
534
|
+
var t = this.adapter.hasClass(V);
|
535
|
+
this.adapter.removeClass(q), this.adapter.removeClass(U), this.adapter.removeClass(V), this.adapter.removeClass(z), t && this.showTimeout === null && this.adapter.notifyHidden();
|
596
536
|
}, o.prototype.clearAllAnimationClasses = function() {
|
597
|
-
this.adapter.removeClass(
|
537
|
+
this.adapter.removeClass(U), this.adapter.removeClass(z);
|
598
538
|
}, o.prototype.setTooltipPosition = function(t) {
|
599
|
-
var r = t.xPos,
|
539
|
+
var r = t.xPos, e = t.yPos, n = t.withCaretPos;
|
600
540
|
if (this.hasCaret && n) {
|
601
541
|
this.tooltipPositionWithCaret = n;
|
602
542
|
return;
|
603
543
|
}
|
604
|
-
r && (this.xTooltipPos = r),
|
544
|
+
r && (this.xTooltipPos = r), e && (this.yTooltipPos = e);
|
605
545
|
}, o.prototype.setAnchorBoundaryType = function(t) {
|
606
|
-
t ===
|
546
|
+
t === j.UNBOUNDED ? this.anchorGap = O.UNBOUNDED_ANCHOR_GAP : this.anchorGap = O.BOUNDED_ANCHOR_GAP;
|
607
547
|
}, o.prototype.setShowDelay = function(t) {
|
608
548
|
this.showDelayMs = t;
|
609
549
|
}, o.prototype.setHideDelay = function(t) {
|
610
550
|
this.hideDelayMs = t;
|
611
551
|
}, o.prototype.isTooltipMultiline = function() {
|
612
552
|
var t = this.adapter.getTooltipSize();
|
613
|
-
return t.height >
|
553
|
+
return t.height > O.MIN_HEIGHT && t.width >= O.MAX_WIDTH;
|
614
554
|
}, o.prototype.positionPlainTooltip = function() {
|
615
|
-
var t = this.calculateTooltipStyles(this.anchorRect), r = t.top,
|
616
|
-
this.adapter.setSurfaceAnimationStyleProperty(
|
555
|
+
var t = this.calculateTooltipStyles(this.anchorRect), r = t.top, e = t.yTransformOrigin, n = t.left, a = t.xTransformOrigin, c = tt ? X(window, "transform") : "transform";
|
556
|
+
this.adapter.setSurfaceAnimationStyleProperty(c + "-origin", a + " " + e), this.adapter.setStyleProperty("top", r + "px"), this.adapter.setStyleProperty("left", n + "px");
|
617
557
|
}, o.prototype.positionRichTooltip = function() {
|
618
|
-
var t, r,
|
619
|
-
this.adapter.setStyleProperty("width",
|
620
|
-
var
|
621
|
-
this.adapter.
|
622
|
-
var l = this.
|
623
|
-
this.adapter.
|
624
|
-
var y = g - ((r = (t = this.parentRect) === null || t === void 0 ? void 0 : t.left) !== null && r !== void 0 ? r : 0), m = T - ((n = (i = this.parentRect) === null || i === void 0 ? void 0 : i.top) !== null && n !== void 0 ? n : 0);
|
625
|
-
this.adapter.setStyleProperty("top", m + "px"), this.adapter.setStyleProperty("left", y + "px");
|
558
|
+
var t, r, e, n, a = this.adapter.getComputedStyleProperty("width");
|
559
|
+
this.adapter.setStyleProperty("width", a);
|
560
|
+
var c = this.hasCaret ? this.calculateTooltipWithCaretStyles(this.anchorRect) : this.calculateTooltipStyles(this.anchorRect), u = c.top, s = c.yTransformOrigin, l = c.left, g = c.xTransformOrigin, A = tt ? X(window, "transform") : "transform";
|
561
|
+
this.adapter.setSurfaceAnimationStyleProperty(A + "-origin", g + " " + s);
|
562
|
+
var E = l - ((r = (t = this.parentRect) === null || t === void 0 ? void 0 : t.left) !== null && r !== void 0 ? r : 0), f = u - ((n = (e = this.parentRect) === null || e === void 0 ? void 0 : e.top) !== null && n !== void 0 ? n : 0);
|
563
|
+
this.adapter.setStyleProperty("top", f + "px"), this.adapter.setStyleProperty("left", E + "px");
|
626
564
|
}, o.prototype.calculateTooltipStyles = function(t) {
|
627
565
|
if (!t)
|
628
566
|
return { top: 0, left: 0 };
|
629
|
-
var r = this.adapter.getTooltipSize(),
|
567
|
+
var r = this.adapter.getTooltipSize(), e = this.calculateYTooltipDistance(t, r.height), n = this.calculateXTooltipDistance(t, r.width);
|
630
568
|
return {
|
631
|
-
top:
|
632
|
-
yTransformOrigin:
|
569
|
+
top: e.distance,
|
570
|
+
yTransformOrigin: e.yTransformOrigin,
|
633
571
|
left: n.distance,
|
634
572
|
xTransformOrigin: n.xTransformOrigin
|
635
573
|
};
|
636
574
|
}, o.prototype.calculateXTooltipDistance = function(t, r) {
|
637
|
-
var
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
if (this.xTooltipPos === x.CENTER && v.has(d))
|
653
|
-
return { distance: d, xTransformOrigin: c.CENTER };
|
654
|
-
if (this.xTooltipPos === x.SIDE_START && v.has(h))
|
655
|
-
return { distance: h, xTransformOrigin: T };
|
656
|
-
if (this.xTooltipPos === x.SIDE_END && v.has(s))
|
657
|
-
return { distance: s, xTransformOrigin: l };
|
658
|
-
var y = this.richTooltip ? [
|
659
|
-
{ distance: a, xTransformOrigin: T },
|
660
|
-
{ distance: n, xTransformOrigin: l }
|
575
|
+
var e = !this.adapter.isRTL(), n, a, c, u, s;
|
576
|
+
this.richTooltip ? (n = e ? t.left - r : t.right, a = e ? t.right : t.left - r, u = e ? d.RIGHT : d.LEFT, s = e ? d.LEFT : d.RIGHT) : (n = e ? t.left : t.right - r, a = e ? t.right - r : t.left, c = t.left + (t.width - r) / 2, u = e ? d.LEFT : d.RIGHT, s = e ? d.RIGHT : d.LEFT);
|
577
|
+
var l = this.richTooltip ? this.determineValidPositionOptions(n, a) : (
|
578
|
+
// For plain tooltips, centerPos is defined
|
579
|
+
this.determineValidPositionOptions(c, n, a)
|
580
|
+
);
|
581
|
+
if (this.xTooltipPos === P.START && l.has(n))
|
582
|
+
return { distance: n, xTransformOrigin: u };
|
583
|
+
if (this.xTooltipPos === P.END && l.has(a))
|
584
|
+
return { distance: a, xTransformOrigin: s };
|
585
|
+
if (this.xTooltipPos === P.CENTER && l.has(c))
|
586
|
+
return { distance: c, xTransformOrigin: d.CENTER };
|
587
|
+
var g = this.richTooltip ? [
|
588
|
+
{ distance: a, xTransformOrigin: s },
|
589
|
+
{ distance: n, xTransformOrigin: u }
|
661
590
|
] : [
|
662
|
-
{ distance:
|
663
|
-
{ distance: n, xTransformOrigin:
|
664
|
-
{ distance: a, xTransformOrigin:
|
665
|
-
],
|
666
|
-
var
|
667
|
-
return
|
591
|
+
{ distance: c, xTransformOrigin: d.CENTER },
|
592
|
+
{ distance: n, xTransformOrigin: u },
|
593
|
+
{ distance: a, xTransformOrigin: s }
|
594
|
+
], A = g.find(function(v) {
|
595
|
+
var y = v.distance;
|
596
|
+
return l.has(y);
|
668
597
|
});
|
669
|
-
if (
|
670
|
-
return
|
598
|
+
if (A)
|
599
|
+
return A;
|
671
600
|
if (t.left < 0)
|
672
601
|
return {
|
673
602
|
distance: this.minViewportTooltipThreshold,
|
674
|
-
xTransformOrigin:
|
603
|
+
xTransformOrigin: d.LEFT
|
675
604
|
};
|
676
|
-
var
|
677
|
-
return { distance:
|
605
|
+
var E = this.adapter.getViewportWidth(), f = E - (r + this.minViewportTooltipThreshold);
|
606
|
+
return { distance: f, xTransformOrigin: d.RIGHT };
|
678
607
|
}, o.prototype.determineValidPositionOptions = function() {
|
679
|
-
for (var t, r,
|
680
|
-
|
681
|
-
var a = /* @__PURE__ */ new Set(),
|
608
|
+
for (var t, r, e = [], n = 0; n < arguments.length; n++)
|
609
|
+
e[n] = arguments[n];
|
610
|
+
var a = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
682
611
|
try {
|
683
|
-
for (var
|
612
|
+
for (var u = H(e), s = u.next(); !s.done; s = u.next()) {
|
684
613
|
var l = s.value;
|
685
|
-
this.positionHonorsViewportThreshold(l) ? a.add(l) : this.positionDoesntCollideWithViewport(l) &&
|
614
|
+
this.positionHonorsViewportThreshold(l) ? a.add(l) : this.positionDoesntCollideWithViewport(l) && c.add(l);
|
686
615
|
}
|
687
|
-
} catch (
|
688
|
-
t = { error:
|
616
|
+
} catch (g) {
|
617
|
+
t = { error: g };
|
689
618
|
} finally {
|
690
619
|
try {
|
691
|
-
s && !s.done && (r =
|
620
|
+
s && !s.done && (r = u.return) && r.call(u);
|
692
621
|
} finally {
|
693
622
|
if (t)
|
694
623
|
throw t.error;
|
695
624
|
}
|
696
625
|
}
|
697
|
-
return a.size ? a :
|
626
|
+
return a.size ? a : c;
|
698
627
|
}, o.prototype.positionHonorsViewportThreshold = function(t) {
|
699
|
-
var r = this.adapter.getViewportWidth(),
|
700
|
-
return t +
|
628
|
+
var r = this.adapter.getViewportWidth(), e = this.adapter.getTooltipSize().width;
|
629
|
+
return t + e <= r - this.minViewportTooltipThreshold && t >= this.minViewportTooltipThreshold;
|
701
630
|
}, o.prototype.positionDoesntCollideWithViewport = function(t) {
|
702
|
-
var r = this.adapter.getViewportWidth(),
|
703
|
-
return t +
|
631
|
+
var r = this.adapter.getViewportWidth(), e = this.adapter.getTooltipSize().width;
|
632
|
+
return t + e <= r && t >= 0;
|
704
633
|
}, o.prototype.calculateYTooltipDistance = function(t, r) {
|
705
|
-
var
|
706
|
-
this.yTooltipPos ===
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
for (var t, r, i = [], n = 0; n < arguments.length; n++)
|
711
|
-
i[n] = arguments[n];
|
712
|
-
var a = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
713
|
-
try {
|
714
|
-
for (var h = I(i), s = h.next(); !s.done; s = h.next()) {
|
715
|
-
var l = s.value;
|
716
|
-
this.yPositionHonorsViewportThreshold(l) ? a.add(l) : this.yPositionDoesntCollideWithViewport(l) && d.add(l);
|
717
|
-
}
|
718
|
-
} catch (T) {
|
719
|
-
t = { error: T };
|
720
|
-
} finally {
|
721
|
-
try {
|
722
|
-
s && !s.done && (r = h.return) && r.call(h);
|
723
|
-
} finally {
|
724
|
-
if (t)
|
725
|
-
throw t.error;
|
726
|
-
}
|
727
|
-
}
|
728
|
-
return a.size ? a : d;
|
634
|
+
var e = t.bottom + this.anchorGap, n = t.top - (this.anchorGap + r), a = this.determineValidYPositionOptions(n, e);
|
635
|
+
return this.yTooltipPos === F.ABOVE && a.has(n) ? { distance: n, yTransformOrigin: d.BOTTOM } : this.yTooltipPos === F.BELOW && a.has(e) ? { distance: e, yTransformOrigin: d.TOP } : a.has(e) ? { distance: e, yTransformOrigin: d.TOP } : a.has(n) ? { distance: n, yTransformOrigin: d.BOTTOM } : { distance: e, yTransformOrigin: d.TOP };
|
636
|
+
}, o.prototype.determineValidYPositionOptions = function(t, r) {
|
637
|
+
var e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
638
|
+
return this.yPositionHonorsViewportThreshold(t) ? e.add(t) : this.yPositionDoesntCollideWithViewport(t) && n.add(t), this.yPositionHonorsViewportThreshold(r) ? e.add(r) : this.yPositionDoesntCollideWithViewport(r) && n.add(r), e.size ? e : n;
|
729
639
|
}, o.prototype.yPositionHonorsViewportThreshold = function(t) {
|
730
|
-
var r = this.adapter.getViewportHeight(),
|
731
|
-
return t +
|
640
|
+
var r = this.adapter.getViewportHeight(), e = this.adapter.getTooltipSize().height;
|
641
|
+
return t + e + this.minViewportTooltipThreshold <= r && t >= this.minViewportTooltipThreshold;
|
732
642
|
}, o.prototype.yPositionDoesntCollideWithViewport = function(t) {
|
733
|
-
var r = this.adapter.getViewportHeight(),
|
734
|
-
return t +
|
643
|
+
var r = this.adapter.getViewportHeight(), e = this.adapter.getTooltipSize().height;
|
644
|
+
return t + e <= r && t >= 0;
|
735
645
|
}, o.prototype.calculateTooltipWithCaretStyles = function(t) {
|
736
646
|
this.adapter.clearTooltipCaretStyles();
|
737
647
|
var r = this.adapter.getTooltipCaretBoundingRect();
|
738
648
|
if (!t || !r)
|
739
|
-
return { position:
|
740
|
-
var
|
741
|
-
s.size < 1 && (s = this.generateBackupPositionOption(t, a, { caretWidth:
|
742
|
-
var l = this.determineTooltipWithCaretDistance(s),
|
649
|
+
return { position: h.DETECTED, top: 0, left: 0 };
|
650
|
+
var e = r.width / O.ANIMATION_SCALE, n = r.height / O.ANIMATION_SCALE / 2, a = this.adapter.getTooltipSize(), c = this.calculateYWithCaretDistanceOptions(t, a.height, { caretWidth: e, caretHeight: n }), u = this.calculateXWithCaretDistanceOptions(t, a.width, { caretWidth: e, caretHeight: n }), s = this.validateTooltipWithCaretDistances(c, u);
|
651
|
+
s.size < 1 && (s = this.generateBackupPositionOption(t, a, { caretWidth: e, caretHeight: n }));
|
652
|
+
var l = this.determineTooltipWithCaretDistance(s), g = l.position, A = l.xDistance, E = l.yDistance, f = this.setCaretPositionStyles(g, { caretWidth: e, caretHeight: n }), v = f.yTransformOrigin, y = f.xTransformOrigin;
|
743
653
|
return {
|
744
654
|
yTransformOrigin: v,
|
745
655
|
xTransformOrigin: y,
|
746
|
-
top:
|
656
|
+
top: E,
|
747
657
|
left: A
|
748
658
|
};
|
749
|
-
}, o.prototype.calculateXWithCaretDistanceOptions = function(t, r,
|
750
|
-
var n =
|
751
|
-
[
|
752
|
-
[
|
753
|
-
[
|
754
|
-
[
|
755
|
-
[
|
659
|
+
}, o.prototype.calculateXWithCaretDistanceOptions = function(t, r, e) {
|
660
|
+
var n = e.caretWidth, a = e.caretHeight, c = !this.adapter.isRTL(), u = t.left + t.width / 2, s = t.left - (r + this.anchorGap + a), l = t.right + this.anchorGap + a, g = c ? s : l, A = c ? l : s, E = u - (O.CARET_INDENTATION + n / 2), f = u - (r - O.CARET_INDENTATION - n / 2), v = c ? E : f, y = c ? f : E, m = u - r / 2, C = /* @__PURE__ */ new Map([
|
661
|
+
[T.START, v],
|
662
|
+
[T.CENTER, m],
|
663
|
+
[T.END, y],
|
664
|
+
[T.SIDE_END, A],
|
665
|
+
[T.SIDE_START, g]
|
756
666
|
]);
|
757
|
-
return
|
758
|
-
}, o.prototype.calculateYWithCaretDistanceOptions = function(t, r,
|
759
|
-
var n =
|
760
|
-
[
|
761
|
-
[
|
762
|
-
[
|
763
|
-
[
|
764
|
-
[
|
667
|
+
return C;
|
668
|
+
}, o.prototype.calculateYWithCaretDistanceOptions = function(t, r, e) {
|
669
|
+
var n = e.caretWidth, a = e.caretHeight, c = t.top + t.height / 2, u = t.bottom + this.anchorGap + a, s = t.top - (this.anchorGap + r + a), l = c - (O.CARET_INDENTATION + n / 2), g = c - r / 2, A = c - (r - O.CARET_INDENTATION - n / 2), E = /* @__PURE__ */ new Map([
|
670
|
+
[_.ABOVE, s],
|
671
|
+
[_.BELOW, u],
|
672
|
+
[_.SIDE_TOP, l],
|
673
|
+
[_.SIDE_CENTER, g],
|
674
|
+
[_.SIDE_BOTTOM, A]
|
765
675
|
]);
|
766
|
-
return
|
676
|
+
return E;
|
767
677
|
}, o.prototype.repositionTooltipOnAnchorMove = function() {
|
768
678
|
var t = this.adapter.getAnchorBoundingRect();
|
769
|
-
|
770
|
-
var r = this.adapter.getViewportHeight();
|
771
|
-
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
|
-
}
|
679
|
+
!t || !this.anchorRect || (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());
|
773
680
|
}, o.prototype.validateTooltipWithCaretDistances = function(t, r) {
|
774
|
-
var
|
681
|
+
var e, n, a, c, u, s, l = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map([
|
775
682
|
[
|
776
|
-
|
683
|
+
_.ABOVE,
|
777
684
|
[
|
778
|
-
|
779
|
-
|
780
|
-
|
685
|
+
T.START,
|
686
|
+
T.CENTER,
|
687
|
+
T.END
|
781
688
|
]
|
782
689
|
],
|
783
690
|
[
|
784
|
-
|
691
|
+
_.BELOW,
|
785
692
|
[
|
786
|
-
|
787
|
-
|
788
|
-
|
693
|
+
T.START,
|
694
|
+
T.CENTER,
|
695
|
+
T.END
|
789
696
|
]
|
790
697
|
],
|
791
698
|
[
|
792
|
-
|
793
|
-
[
|
699
|
+
_.SIDE_TOP,
|
700
|
+
[T.SIDE_START, T.SIDE_END]
|
794
701
|
],
|
795
702
|
[
|
796
|
-
|
797
|
-
[
|
703
|
+
_.SIDE_CENTER,
|
704
|
+
[T.SIDE_START, T.SIDE_END]
|
798
705
|
],
|
799
706
|
[
|
800
|
-
|
801
|
-
[
|
707
|
+
_.SIDE_BOTTOM,
|
708
|
+
[T.SIDE_START, T.SIDE_END]
|
802
709
|
]
|
803
710
|
]);
|
804
711
|
try {
|
805
|
-
for (var
|
806
|
-
var v =
|
712
|
+
for (var E = H(A.keys()), f = E.next(); !f.done; f = E.next()) {
|
713
|
+
var v = f.value, y = t.get(v);
|
807
714
|
if (this.yPositionHonorsViewportThreshold(y))
|
808
715
|
try {
|
809
|
-
for (var m = (a = void 0,
|
810
|
-
var b =
|
811
|
-
if (this.positionHonorsViewportThreshold(
|
812
|
-
var
|
813
|
-
l.set(
|
716
|
+
for (var m = (a = void 0, H(A.get(v))), C = m.next(); !C.done; C = m.next()) {
|
717
|
+
var b = C.value, B = r.get(b);
|
718
|
+
if (this.positionHonorsViewportThreshold(B)) {
|
719
|
+
var K = this.caretPositionOptionsMapping(b, v);
|
720
|
+
l.set(K, { xDistance: B, yDistance: y });
|
814
721
|
}
|
815
722
|
}
|
816
|
-
} catch (
|
817
|
-
a = { error:
|
723
|
+
} catch (W) {
|
724
|
+
a = { error: W };
|
818
725
|
} finally {
|
819
726
|
try {
|
820
|
-
|
727
|
+
C && !C.done && (c = m.return) && c.call(m);
|
821
728
|
} finally {
|
822
729
|
if (a)
|
823
730
|
throw a.error;
|
@@ -825,51 +732,51 @@ var rt = typeof window < "u", Et = (
|
|
825
732
|
}
|
826
733
|
if (this.yPositionDoesntCollideWithViewport(y))
|
827
734
|
try {
|
828
|
-
for (var
|
829
|
-
var b =
|
830
|
-
if (this.positionDoesntCollideWithViewport(
|
831
|
-
var
|
832
|
-
|
735
|
+
for (var k = (u = void 0, H(A.get(v))), M = k.next(); !M.done; M = k.next()) {
|
736
|
+
var b = M.value, B = r.get(b);
|
737
|
+
if (this.positionDoesntCollideWithViewport(B)) {
|
738
|
+
var K = this.caretPositionOptionsMapping(b, v);
|
739
|
+
g.set(K, { xDistance: B, yDistance: y });
|
833
740
|
}
|
834
741
|
}
|
835
|
-
} catch (
|
836
|
-
|
742
|
+
} catch (W) {
|
743
|
+
u = { error: W };
|
837
744
|
} finally {
|
838
745
|
try {
|
839
|
-
|
746
|
+
M && !M.done && (s = k.return) && s.call(k);
|
840
747
|
} finally {
|
841
|
-
if (
|
842
|
-
throw
|
748
|
+
if (u)
|
749
|
+
throw u.error;
|
843
750
|
}
|
844
751
|
}
|
845
752
|
}
|
846
|
-
} catch (
|
847
|
-
|
753
|
+
} catch (W) {
|
754
|
+
e = { error: W };
|
848
755
|
} finally {
|
849
756
|
try {
|
850
|
-
|
757
|
+
f && !f.done && (n = E.return) && n.call(E);
|
851
758
|
} finally {
|
852
|
-
if (
|
853
|
-
throw
|
759
|
+
if (e)
|
760
|
+
throw e.error;
|
854
761
|
}
|
855
762
|
}
|
856
|
-
return l.size ? l :
|
857
|
-
}, o.prototype.generateBackupPositionOption = function(t, r,
|
858
|
-
var n = !this.adapter.isRTL(), a,
|
763
|
+
return l.size ? l : g;
|
764
|
+
}, o.prototype.generateBackupPositionOption = function(t, r, e) {
|
765
|
+
var n = !this.adapter.isRTL(), a, c;
|
859
766
|
if (t.left < 0)
|
860
|
-
a = this.minViewportTooltipThreshold +
|
767
|
+
a = this.minViewportTooltipThreshold + e.caretHeight, c = n ? T.END : T.START;
|
861
768
|
else {
|
862
|
-
var
|
863
|
-
a =
|
769
|
+
var u = this.adapter.getViewportWidth();
|
770
|
+
a = u - (r.width + this.minViewportTooltipThreshold + e.caretHeight), c = n ? T.START : T.END;
|
864
771
|
}
|
865
772
|
var s, l;
|
866
773
|
if (t.top < 0)
|
867
|
-
s = this.minViewportTooltipThreshold +
|
774
|
+
s = this.minViewportTooltipThreshold + e.caretHeight, l = _.BELOW;
|
868
775
|
else {
|
869
|
-
var
|
870
|
-
s =
|
776
|
+
var g = this.adapter.getViewportHeight();
|
777
|
+
s = g - (r.height + this.minViewportTooltipThreshold + e.caretHeight), l = _.ABOVE;
|
871
778
|
}
|
872
|
-
var A = this.caretPositionOptionsMapping(
|
779
|
+
var A = this.caretPositionOptionsMapping(c, l);
|
873
780
|
return /* @__PURE__ */ new Map([[A, { xDistance: a, yDistance: s }]]);
|
874
781
|
}, o.prototype.determineTooltipWithCaretDistance = function(t) {
|
875
782
|
if (t.has(this.tooltipPositionWithCaret)) {
|
@@ -880,21 +787,21 @@ var rt = typeof window < "u", Et = (
|
|
880
787
|
yDistance: r.yDistance
|
881
788
|
};
|
882
789
|
}
|
883
|
-
var
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
], n =
|
897
|
-
return t.has(
|
790
|
+
var e = [
|
791
|
+
h.ABOVE_START,
|
792
|
+
h.ABOVE_CENTER,
|
793
|
+
h.ABOVE_END,
|
794
|
+
h.TOP_SIDE_START,
|
795
|
+
h.CENTER_SIDE_START,
|
796
|
+
h.BOTTOM_SIDE_START,
|
797
|
+
h.TOP_SIDE_END,
|
798
|
+
h.CENTER_SIDE_END,
|
799
|
+
h.BOTTOM_SIDE_END,
|
800
|
+
h.BELOW_START,
|
801
|
+
h.BELOW_CENTER,
|
802
|
+
h.BELOW_END
|
803
|
+
], n = e.find(function(c) {
|
804
|
+
return t.has(c);
|
898
805
|
}), a = t.get(n);
|
899
806
|
return {
|
900
807
|
position: n,
|
@@ -903,62 +810,62 @@ var rt = typeof window < "u", Et = (
|
|
903
810
|
};
|
904
811
|
}, o.prototype.caretPositionOptionsMapping = function(t, r) {
|
905
812
|
switch (r) {
|
906
|
-
case
|
907
|
-
if (t ===
|
908
|
-
return
|
909
|
-
if (t ===
|
910
|
-
return
|
911
|
-
if (t ===
|
912
|
-
return
|
813
|
+
case _.ABOVE:
|
814
|
+
if (t === T.START)
|
815
|
+
return h.ABOVE_START;
|
816
|
+
if (t === T.CENTER)
|
817
|
+
return h.ABOVE_CENTER;
|
818
|
+
if (t === T.END)
|
819
|
+
return h.ABOVE_END;
|
913
820
|
break;
|
914
|
-
case
|
915
|
-
if (t ===
|
916
|
-
return
|
917
|
-
if (t ===
|
918
|
-
return
|
919
|
-
if (t ===
|
920
|
-
return
|
821
|
+
case _.BELOW:
|
822
|
+
if (t === T.START)
|
823
|
+
return h.BELOW_START;
|
824
|
+
if (t === T.CENTER)
|
825
|
+
return h.BELOW_CENTER;
|
826
|
+
if (t === T.END)
|
827
|
+
return h.BELOW_END;
|
921
828
|
break;
|
922
|
-
case
|
923
|
-
if (t ===
|
924
|
-
return
|
925
|
-
if (t ===
|
926
|
-
return
|
829
|
+
case _.SIDE_TOP:
|
830
|
+
if (t === T.SIDE_START)
|
831
|
+
return h.TOP_SIDE_START;
|
832
|
+
if (t === T.SIDE_END)
|
833
|
+
return h.TOP_SIDE_END;
|
927
834
|
break;
|
928
|
-
case
|
929
|
-
if (t ===
|
930
|
-
return
|
931
|
-
if (t ===
|
932
|
-
return
|
835
|
+
case _.SIDE_CENTER:
|
836
|
+
if (t === T.SIDE_START)
|
837
|
+
return h.CENTER_SIDE_START;
|
838
|
+
if (t === T.SIDE_END)
|
839
|
+
return h.CENTER_SIDE_END;
|
933
840
|
break;
|
934
|
-
case
|
935
|
-
if (t ===
|
936
|
-
return
|
937
|
-
if (t ===
|
938
|
-
return
|
841
|
+
case _.SIDE_BOTTOM:
|
842
|
+
if (t === T.SIDE_START)
|
843
|
+
return h.BOTTOM_SIDE_START;
|
844
|
+
if (t === T.SIDE_END)
|
845
|
+
return h.BOTTOM_SIDE_END;
|
939
846
|
break;
|
940
847
|
}
|
941
848
|
throw new Error("MDCTooltipFoundation: Invalid caret position of " + t + ", " + r);
|
942
849
|
}, o.prototype.setCaretPositionStyles = function(t, r) {
|
943
|
-
var
|
850
|
+
var e, n, a = this.calculateCaretPositionOnTooltip(t, r);
|
944
851
|
if (!a)
|
945
852
|
return { yTransformOrigin: 0, xTransformOrigin: 0 };
|
946
853
|
this.adapter.clearTooltipCaretStyles(), this.adapter.setTooltipCaretStyle(a.yAlignment, a.yAxisPx), this.adapter.setTooltipCaretStyle(a.xAlignment, a.xAxisPx);
|
947
|
-
var
|
948
|
-
this.adapter.setTooltipCaretStyle("transform", "rotate(" + a.rotation + "deg) skewY(" + a.skew + "deg) scaleX(" +
|
854
|
+
var c = a.skew * (Math.PI / 180), u = Math.cos(c);
|
855
|
+
this.adapter.setTooltipCaretStyle("transform", "rotate(" + a.rotation + "deg) skewY(" + a.skew + "deg) scaleX(" + u + ")"), this.adapter.setTooltipCaretStyle("transform-origin", a.xAlignment + " " + a.yAlignment);
|
949
856
|
try {
|
950
|
-
for (var s =
|
951
|
-
var
|
952
|
-
this.adapter.setTooltipCaretStyle(
|
857
|
+
for (var s = H(a.caretCorners), l = s.next(); !l.done; l = s.next()) {
|
858
|
+
var g = l.value;
|
859
|
+
this.adapter.setTooltipCaretStyle(g, "0");
|
953
860
|
}
|
954
861
|
} catch (A) {
|
955
|
-
|
862
|
+
e = { error: A };
|
956
863
|
} finally {
|
957
864
|
try {
|
958
865
|
l && !l.done && (n = s.return) && n.call(s);
|
959
866
|
} finally {
|
960
|
-
if (
|
961
|
-
throw
|
867
|
+
if (e)
|
868
|
+
throw e.error;
|
962
869
|
}
|
963
870
|
}
|
964
871
|
return {
|
@@ -966,154 +873,154 @@ var rt = typeof window < "u", Et = (
|
|
966
873
|
xTransformOrigin: a.xTransformOrigin
|
967
874
|
};
|
968
875
|
}, o.prototype.calculateCaretPositionOnTooltip = function(t, r) {
|
969
|
-
var
|
876
|
+
var e = !this.adapter.isRTL(), n = this.adapter.getComputedStyleProperty("width"), a = this.adapter.getComputedStyleProperty("height");
|
970
877
|
if (!(!n || !a || !r)) {
|
971
|
-
var
|
878
|
+
var c = "calc((" + n + " - " + r.caretWidth + "px) / 2)", u = "calc((" + a + " - " + r.caretWidth + "px) / 2)", s = "0", l = O.CARET_INDENTATION + "px", g = "calc(" + n + " - " + l + ")", A = "calc(" + a + " - " + l + ")", E = 35, f = Math.abs(90 - E), v = ["border-bottom-right-radius", "border-top-left-radius"], y = ["border-bottom-left-radius", "border-top-right-radius"], m = 20;
|
972
879
|
switch (t) {
|
973
|
-
case
|
880
|
+
case h.BELOW_CENTER:
|
974
881
|
return {
|
975
|
-
yAlignment:
|
976
|
-
xAlignment:
|
882
|
+
yAlignment: d.TOP,
|
883
|
+
xAlignment: d.LEFT,
|
977
884
|
yAxisPx: s,
|
978
|
-
xAxisPx:
|
979
|
-
rotation: -1 *
|
885
|
+
xAxisPx: c,
|
886
|
+
rotation: -1 * E,
|
980
887
|
skew: -1 * m,
|
981
|
-
xTransformOrigin:
|
888
|
+
xTransformOrigin: c,
|
982
889
|
yTransformOrigin: s,
|
983
890
|
caretCorners: v
|
984
891
|
};
|
985
|
-
case
|
892
|
+
case h.BELOW_END:
|
986
893
|
return {
|
987
|
-
yAlignment:
|
988
|
-
xAlignment:
|
894
|
+
yAlignment: d.TOP,
|
895
|
+
xAlignment: e ? d.RIGHT : d.LEFT,
|
989
896
|
yAxisPx: s,
|
990
897
|
xAxisPx: l,
|
991
|
-
rotation:
|
992
|
-
skew:
|
993
|
-
xTransformOrigin:
|
898
|
+
rotation: e ? E : -1 * E,
|
899
|
+
skew: e ? m : -1 * m,
|
900
|
+
xTransformOrigin: e ? g : l,
|
994
901
|
yTransformOrigin: s,
|
995
|
-
caretCorners:
|
902
|
+
caretCorners: e ? y : v
|
996
903
|
};
|
997
|
-
case
|
904
|
+
case h.BELOW_START:
|
998
905
|
return {
|
999
|
-
yAlignment:
|
1000
|
-
xAlignment:
|
906
|
+
yAlignment: d.TOP,
|
907
|
+
xAlignment: e ? d.LEFT : d.RIGHT,
|
1001
908
|
yAxisPx: s,
|
1002
909
|
xAxisPx: l,
|
1003
|
-
rotation:
|
1004
|
-
skew:
|
1005
|
-
xTransformOrigin:
|
910
|
+
rotation: e ? -1 * E : E,
|
911
|
+
skew: e ? -1 * m : m,
|
912
|
+
xTransformOrigin: e ? l : g,
|
1006
913
|
yTransformOrigin: s,
|
1007
|
-
caretCorners:
|
914
|
+
caretCorners: e ? v : y
|
1008
915
|
};
|
1009
|
-
case
|
916
|
+
case h.TOP_SIDE_END:
|
1010
917
|
return {
|
1011
|
-
yAlignment:
|
1012
|
-
xAlignment:
|
918
|
+
yAlignment: d.TOP,
|
919
|
+
xAlignment: e ? d.LEFT : d.RIGHT,
|
1013
920
|
yAxisPx: l,
|
1014
921
|
xAxisPx: s,
|
1015
|
-
rotation:
|
1016
|
-
skew:
|
1017
|
-
xTransformOrigin:
|
922
|
+
rotation: e ? f : -1 * f,
|
923
|
+
skew: e ? -1 * m : m,
|
924
|
+
xTransformOrigin: e ? s : n,
|
1018
925
|
yTransformOrigin: l,
|
1019
|
-
caretCorners:
|
926
|
+
caretCorners: e ? v : y
|
1020
927
|
};
|
1021
|
-
case
|
928
|
+
case h.CENTER_SIDE_END:
|
1022
929
|
return {
|
1023
|
-
yAlignment:
|
1024
|
-
xAlignment:
|
1025
|
-
yAxisPx:
|
930
|
+
yAlignment: d.TOP,
|
931
|
+
xAlignment: e ? d.LEFT : d.RIGHT,
|
932
|
+
yAxisPx: u,
|
1026
933
|
xAxisPx: s,
|
1027
|
-
rotation:
|
1028
|
-
skew:
|
1029
|
-
xTransformOrigin:
|
1030
|
-
yTransformOrigin:
|
1031
|
-
caretCorners:
|
934
|
+
rotation: e ? f : -1 * f,
|
935
|
+
skew: e ? -1 * m : m,
|
936
|
+
xTransformOrigin: e ? s : n,
|
937
|
+
yTransformOrigin: u,
|
938
|
+
caretCorners: e ? v : y
|
1032
939
|
};
|
1033
|
-
case
|
940
|
+
case h.BOTTOM_SIDE_END:
|
1034
941
|
return {
|
1035
|
-
yAlignment:
|
1036
|
-
xAlignment:
|
942
|
+
yAlignment: d.BOTTOM,
|
943
|
+
xAlignment: e ? d.LEFT : d.RIGHT,
|
1037
944
|
yAxisPx: l,
|
1038
945
|
xAxisPx: s,
|
1039
|
-
rotation:
|
1040
|
-
skew:
|
1041
|
-
xTransformOrigin:
|
946
|
+
rotation: e ? -1 * f : f,
|
947
|
+
skew: e ? m : -1 * m,
|
948
|
+
xTransformOrigin: e ? s : n,
|
1042
949
|
yTransformOrigin: A,
|
1043
|
-
caretCorners:
|
950
|
+
caretCorners: e ? y : v
|
1044
951
|
};
|
1045
|
-
case
|
952
|
+
case h.TOP_SIDE_START:
|
1046
953
|
return {
|
1047
|
-
yAlignment:
|
1048
|
-
xAlignment:
|
954
|
+
yAlignment: d.TOP,
|
955
|
+
xAlignment: e ? d.RIGHT : d.LEFT,
|
1049
956
|
yAxisPx: l,
|
1050
957
|
xAxisPx: s,
|
1051
|
-
rotation:
|
1052
|
-
skew:
|
1053
|
-
xTransformOrigin:
|
958
|
+
rotation: e ? -1 * f : f,
|
959
|
+
skew: e ? m : -1 * m,
|
960
|
+
xTransformOrigin: e ? n : s,
|
1054
961
|
yTransformOrigin: l,
|
1055
|
-
caretCorners:
|
962
|
+
caretCorners: e ? y : v
|
1056
963
|
};
|
1057
|
-
case
|
964
|
+
case h.CENTER_SIDE_START:
|
1058
965
|
return {
|
1059
|
-
yAlignment:
|
1060
|
-
xAlignment:
|
1061
|
-
yAxisPx:
|
966
|
+
yAlignment: d.TOP,
|
967
|
+
xAlignment: e ? d.RIGHT : d.LEFT,
|
968
|
+
yAxisPx: u,
|
1062
969
|
xAxisPx: s,
|
1063
|
-
rotation:
|
1064
|
-
skew:
|
1065
|
-
xTransformOrigin:
|
1066
|
-
yTransformOrigin:
|
1067
|
-
caretCorners:
|
970
|
+
rotation: e ? -1 * f : f,
|
971
|
+
skew: e ? m : -1 * m,
|
972
|
+
xTransformOrigin: e ? n : s,
|
973
|
+
yTransformOrigin: u,
|
974
|
+
caretCorners: e ? y : v
|
1068
975
|
};
|
1069
|
-
case
|
976
|
+
case h.BOTTOM_SIDE_START:
|
1070
977
|
return {
|
1071
|
-
yAlignment:
|
1072
|
-
xAlignment:
|
978
|
+
yAlignment: d.BOTTOM,
|
979
|
+
xAlignment: e ? d.RIGHT : d.LEFT,
|
1073
980
|
yAxisPx: l,
|
1074
981
|
xAxisPx: s,
|
1075
|
-
rotation:
|
1076
|
-
skew:
|
1077
|
-
xTransformOrigin:
|
982
|
+
rotation: e ? f : -1 * f,
|
983
|
+
skew: e ? -1 * m : m,
|
984
|
+
xTransformOrigin: e ? n : s,
|
1078
985
|
yTransformOrigin: A,
|
1079
|
-
caretCorners:
|
986
|
+
caretCorners: e ? v : y
|
1080
987
|
};
|
1081
|
-
case
|
988
|
+
case h.ABOVE_CENTER:
|
1082
989
|
return {
|
1083
|
-
yAlignment:
|
1084
|
-
xAlignment:
|
990
|
+
yAlignment: d.BOTTOM,
|
991
|
+
xAlignment: d.LEFT,
|
1085
992
|
yAxisPx: s,
|
1086
|
-
xAxisPx:
|
1087
|
-
rotation:
|
993
|
+
xAxisPx: c,
|
994
|
+
rotation: E,
|
1088
995
|
skew: m,
|
1089
|
-
xTransformOrigin:
|
996
|
+
xTransformOrigin: c,
|
1090
997
|
yTransformOrigin: a,
|
1091
998
|
caretCorners: y
|
1092
999
|
};
|
1093
|
-
case
|
1000
|
+
case h.ABOVE_END:
|
1094
1001
|
return {
|
1095
|
-
yAlignment:
|
1096
|
-
xAlignment:
|
1002
|
+
yAlignment: d.BOTTOM,
|
1003
|
+
xAlignment: e ? d.RIGHT : d.LEFT,
|
1097
1004
|
yAxisPx: s,
|
1098
1005
|
xAxisPx: l,
|
1099
|
-
rotation:
|
1100
|
-
skew:
|
1101
|
-
xTransformOrigin:
|
1006
|
+
rotation: e ? -1 * E : E,
|
1007
|
+
skew: e ? -1 * m : m,
|
1008
|
+
xTransformOrigin: e ? g : l,
|
1102
1009
|
yTransformOrigin: a,
|
1103
|
-
caretCorners:
|
1010
|
+
caretCorners: e ? v : y
|
1104
1011
|
};
|
1105
1012
|
default:
|
1106
|
-
case
|
1013
|
+
case h.ABOVE_START:
|
1107
1014
|
return {
|
1108
|
-
yAlignment:
|
1109
|
-
xAlignment:
|
1015
|
+
yAlignment: d.BOTTOM,
|
1016
|
+
xAlignment: e ? d.LEFT : d.RIGHT,
|
1110
1017
|
yAxisPx: s,
|
1111
1018
|
xAxisPx: l,
|
1112
|
-
rotation:
|
1113
|
-
skew:
|
1114
|
-
xTransformOrigin:
|
1019
|
+
rotation: e ? E : -1 * E,
|
1020
|
+
skew: e ? m : -1 * m,
|
1021
|
+
xTransformOrigin: e ? l : g,
|
1115
1022
|
yTransformOrigin: a,
|
1116
|
-
caretCorners:
|
1023
|
+
caretCorners: e ? y : v
|
1117
1024
|
};
|
1118
1025
|
}
|
1119
1026
|
}
|
@@ -1133,17 +1040,17 @@ var rt = typeof window < "u", Et = (
|
|
1133
1040
|
});
|
1134
1041
|
}, o.prototype.destroy = function() {
|
1135
1042
|
var t, r;
|
1136
|
-
this.frameId && (cancelAnimationFrame(this.frameId), this.frameId = null), this.clearHideTimeout(), this.clearShowTimeout(), this.adapter.removeClass($), this.adapter.removeClass(
|
1043
|
+
this.frameId && (cancelAnimationFrame(this.frameId), this.frameId = null), this.clearHideTimeout(), this.clearShowTimeout(), this.adapter.removeClass($), this.adapter.removeClass(U), this.adapter.removeClass(q), this.adapter.removeClass(V), this.adapter.removeClass(z), 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
1044
|
try {
|
1138
|
-
for (var
|
1045
|
+
for (var e = H(this.removeAncestorScrollEventListeners), n = e.next(); !n.done; n = e.next()) {
|
1139
1046
|
var a = n.value;
|
1140
1047
|
a();
|
1141
1048
|
}
|
1142
|
-
} catch (
|
1143
|
-
t = { error:
|
1049
|
+
} catch (c) {
|
1050
|
+
t = { error: c };
|
1144
1051
|
} finally {
|
1145
1052
|
try {
|
1146
|
-
n && !n.done && (r =
|
1053
|
+
n && !n.done && (r = e.return) && r.call(e);
|
1147
1054
|
} finally {
|
1148
1055
|
if (t)
|
1149
1056
|
throw t.error;
|
@@ -1151,28 +1058,28 @@ var rt = typeof window < "u", Et = (
|
|
1151
1058
|
}
|
1152
1059
|
this.animFrame.cancelAll();
|
1153
1060
|
}, o;
|
1154
|
-
}(
|
1061
|
+
}(lt)
|
1155
1062
|
);
|
1156
|
-
const
|
1063
|
+
const ft = `.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__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{z-index:9}.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__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{position:fixed;display:none}.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-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{-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);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{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;align-items:flex-start;border-radius:4px;display:flex;flex-direction:column;line-height:20px;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.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{display:block;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);margin:0 8px}.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);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
1064
|
`;
|
1158
|
-
var
|
1159
|
-
for (var
|
1160
|
-
(a =
|
1161
|
-
return r &&
|
1065
|
+
var Et = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, N = (i, o, t, r) => {
|
1066
|
+
for (var e = r > 1 ? void 0 : r ? gt(o, t) : o, n = i.length - 1, a; n >= 0; n--)
|
1067
|
+
(a = i[n]) && (e = (r ? a(o, t, e) : a(e)) || e);
|
1068
|
+
return r && e && Et(o, t, e), e;
|
1162
1069
|
};
|
1163
|
-
let
|
1070
|
+
let S = class extends ot {
|
1164
1071
|
constructor() {
|
1165
|
-
super(...arguments), this.mdcFoundationClass =
|
1072
|
+
super(...arguments), this.mdcFoundationClass = mt;
|
1166
1073
|
}
|
1167
1074
|
createAdapter() {
|
1168
1075
|
return {
|
1169
|
-
...
|
1170
|
-
getAttribute: (
|
1171
|
-
setAttribute: (
|
1172
|
-
removeAttribute: (
|
1173
|
-
getComputedStyleProperty: (
|
1174
|
-
setStyleProperty: (
|
1175
|
-
setSurfaceAnimationStyleProperty: (
|
1076
|
+
...at(this.mdcRoot),
|
1077
|
+
getAttribute: (i) => this.mdcRoot.getAttribute(i),
|
1078
|
+
setAttribute: (i, o) => this.mdcRoot.setAttribute(i, o),
|
1079
|
+
removeAttribute: (i) => this.mdcRoot.removeAttribute(i),
|
1080
|
+
getComputedStyleProperty: (i) => getComputedStyle(this.mdcRoot, i).cssText,
|
1081
|
+
setStyleProperty: (i, o) => this.mdcRoot.style.setProperty(i, o),
|
1082
|
+
setSurfaceAnimationStyleProperty: (i, o) => this.mdcSurface.style.setProperty(i, o),
|
1176
1083
|
getViewportWidth: () => Math.max(
|
1177
1084
|
document.documentElement.clientWidth || 0,
|
1178
1085
|
window.innerWidth || 0
|
@@ -1185,56 +1092,54 @@ let R = class extends st {
|
|
1185
1092
|
width: this.mdcRoot.clientWidth,
|
1186
1093
|
height: this.mdcRoot.clientHeight
|
1187
1094
|
}),
|
1188
|
-
getTooltipCaretBoundingRect: () => this.mdcRoot.getBoundingClientRect() ?? null,
|
1189
1095
|
getAnchorBoundingRect: () => {
|
1190
|
-
var
|
1191
|
-
return ((
|
1096
|
+
var i;
|
1097
|
+
return ((i = this.anchor) == null ? void 0 : i.getBoundingClientRect()) ?? null;
|
1192
1098
|
},
|
1193
1099
|
getParentBoundingRect: () => {
|
1194
|
-
var
|
1195
|
-
return ((
|
1100
|
+
var i;
|
1101
|
+
return ((i = this.renderRoot.getRootNode().parentElement) == null ? void 0 : i.getBoundingClientRect()) ?? null;
|
1196
1102
|
},
|
1197
|
-
getAnchorAttribute: (
|
1103
|
+
getAnchorAttribute: (i) => {
|
1198
1104
|
var o;
|
1199
|
-
return ((o = this.anchor) == null ? void 0 : o.getAttribute(
|
1105
|
+
return ((o = this.anchor) == null ? void 0 : o.getAttribute(i)) ?? null;
|
1200
1106
|
},
|
1201
|
-
setAnchorAttribute: (
|
1107
|
+
setAnchorAttribute: (i, o) => {
|
1202
1108
|
var t;
|
1203
|
-
return (t = this.anchor) == null ? void 0 : t.setAttribute(
|
1109
|
+
return (t = this.anchor) == null ? void 0 : t.setAttribute(i, o);
|
1204
1110
|
},
|
1205
1111
|
isRTL: () => !1,
|
1206
|
-
|
1207
|
-
anchorContainsElement: (e) => {
|
1112
|
+
anchorContainsElement: (i) => {
|
1208
1113
|
var o;
|
1209
|
-
return ((o = this.anchor) == null ? void 0 : o.contains(
|
1114
|
+
return ((o = this.anchor) == null ? void 0 : o.contains(i)) ?? !1;
|
1210
1115
|
},
|
1211
|
-
tooltipContainsElement: (
|
1116
|
+
tooltipContainsElement: (i) => this.contains(i),
|
1212
1117
|
focusAnchorElement: () => {
|
1213
|
-
var
|
1214
|
-
return (
|
1118
|
+
var i;
|
1119
|
+
return (i = this.anchor) == null ? void 0 : i.focus();
|
1215
1120
|
},
|
1216
|
-
registerEventHandler: (
|
1121
|
+
registerEventHandler: (i, o) => {
|
1217
1122
|
var t;
|
1218
|
-
return (t = this.mdcRoot) == null ? void 0 : t.addEventListener(
|
1123
|
+
return (t = this.mdcRoot) == null ? void 0 : t.addEventListener(i, o);
|
1219
1124
|
},
|
1220
|
-
deregisterEventHandler: (
|
1125
|
+
deregisterEventHandler: (i, o) => {
|
1221
1126
|
var t;
|
1222
|
-
return (t = this.mdcRoot) == null ? void 0 : t.removeEventListener(
|
1127
|
+
return (t = this.mdcRoot) == null ? void 0 : t.removeEventListener(i, o);
|
1223
1128
|
},
|
1224
|
-
registerAnchorEventHandler: (
|
1129
|
+
registerAnchorEventHandler: (i, o) => {
|
1225
1130
|
var t;
|
1226
|
-
return (t = this.anchor) == null ? void 0 : t.addEventListener(
|
1131
|
+
return (t = this.anchor) == null ? void 0 : t.addEventListener(i, o);
|
1227
1132
|
},
|
1228
|
-
deregisterAnchorEventHandler: (
|
1133
|
+
deregisterAnchorEventHandler: (i, o) => {
|
1229
1134
|
var t;
|
1230
|
-
return (t = this.anchor) == null ? void 0 : t.removeEventListener(
|
1135
|
+
return (t = this.anchor) == null ? void 0 : t.removeEventListener(i, o);
|
1231
1136
|
},
|
1232
|
-
registerDocumentEventHandler: (
|
1233
|
-
deregisterDocumentEventHandler: (
|
1234
|
-
registerWindowEventHandler: (
|
1235
|
-
deregisterWindowEventHandler: (
|
1236
|
-
notifyHidden: () => this.dispatchEvent(new Event(
|
1237
|
-
|
1137
|
+
registerDocumentEventHandler: (i, o) => document.addEventListener(i, o),
|
1138
|
+
deregisterDocumentEventHandler: (i, o) => document.removeEventListener(i, o),
|
1139
|
+
registerWindowEventHandler: (i, o) => window.addEventListener(i, o),
|
1140
|
+
deregisterWindowEventHandler: (i, o) => window.removeEventListener(i, o),
|
1141
|
+
notifyHidden: () => this.dispatchEvent(new Event(dt.HIDDEN)),
|
1142
|
+
getTooltipCaretBoundingRect: () => null,
|
1238
1143
|
setTooltipCaretStyle: () => {
|
1239
1144
|
},
|
1240
1145
|
clearTooltipCaretStyles: () => {
|
@@ -1242,12 +1147,12 @@ let R = class extends st {
|
|
1242
1147
|
getActiveElement: () => document.activeElement
|
1243
1148
|
};
|
1244
1149
|
}
|
1245
|
-
updated(
|
1246
|
-
super.updated(
|
1150
|
+
updated(i) {
|
1151
|
+
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
1152
|
}
|
1248
1153
|
async firstUpdated() {
|
1249
|
-
var
|
1250
|
-
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), (
|
1154
|
+
var i, o, t, r, e;
|
1155
|
+
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), (i = this.anchor) == null || i.addEventListener(
|
1251
1156
|
"click",
|
1252
1157
|
() => this.mdcFoundation.handleAnchorClick()
|
1253
1158
|
), (o = this.anchor) == null || o.addEventListener(
|
@@ -1259,14 +1164,14 @@ let R = class extends st {
|
|
1259
1164
|
), this.persistent || ((r = this.anchor) == null || r.addEventListener(
|
1260
1165
|
"mouseleave",
|
1261
1166
|
() => this.mdcFoundation.handleAnchorMouseLeave()
|
1262
|
-
), (
|
1167
|
+
), (e = this.anchor) == null || e.addEventListener(
|
1263
1168
|
"touchend",
|
1264
1169
|
() => this.mdcFoundation.handleAnchorTouchend()
|
1265
1170
|
));
|
1266
1171
|
}
|
1267
1172
|
disconnectedCallback() {
|
1268
|
-
var
|
1269
|
-
super.connectedCallback(), (
|
1173
|
+
var i, o, t, r, e;
|
1174
|
+
super.connectedCallback(), (i = this.anchor) == null || i.removeEventListener(
|
1270
1175
|
"click",
|
1271
1176
|
() => this.mdcFoundation.handleAnchorClick()
|
1272
1177
|
), (o = this.anchor) == null || o.removeEventListener(
|
@@ -1278,7 +1183,7 @@ let R = class extends st {
|
|
1278
1183
|
), (r = this.anchor) == null || r.removeEventListener(
|
1279
1184
|
"touchstart",
|
1280
1185
|
() => this.mdcFoundation.handleAnchorTouchstart()
|
1281
|
-
), (
|
1186
|
+
), (e = this.anchor) == null || e.removeEventListener(
|
1282
1187
|
"touchend",
|
1283
1188
|
() => this.mdcFoundation.handleAnchorTouchend()
|
1284
1189
|
);
|
@@ -1304,40 +1209,40 @@ let R = class extends st {
|
|
1304
1209
|
`;
|
1305
1210
|
}
|
1306
1211
|
};
|
1307
|
-
|
1308
|
-
|
1309
|
-
${
|
1212
|
+
S.styles = [
|
1213
|
+
it`
|
1214
|
+
${rt(ft)}
|
1310
1215
|
`
|
1311
1216
|
];
|
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
|
1217
|
+
N([
|
1218
|
+
et(".mdc-tooltip")
|
1219
|
+
], S.prototype, "mdcRoot", 2);
|
1220
|
+
N([
|
1221
|
+
et(".mdc-tooltip__surface")
|
1222
|
+
], S.prototype, "mdcSurface", 2);
|
1223
|
+
N([
|
1224
|
+
L({ type: Object })
|
1225
|
+
], S.prototype, "anchor", 2);
|
1226
|
+
N([
|
1227
|
+
L()
|
1228
|
+
], S.prototype, "richTitle", 2);
|
1229
|
+
N([
|
1230
|
+
L({ type: Boolean, reflect: !0 })
|
1231
|
+
], S.prototype, "rich", 2);
|
1232
|
+
N([
|
1233
|
+
L({ type: Boolean, reflect: !0 })
|
1234
|
+
], S.prototype, "persistent", 2);
|
1235
|
+
N([
|
1236
|
+
L({ type: Number })
|
1237
|
+
], S.prototype, "showDelay", 2);
|
1238
|
+
N([
|
1239
|
+
L({ type: Number })
|
1240
|
+
], S.prototype, "hideDelay", 2);
|
1241
|
+
S = N([
|
1242
|
+
nt("cv-tooltip")
|
1243
|
+
], S);
|
1244
|
+
const wt = S;
|
1340
1245
|
export {
|
1341
|
-
|
1342
|
-
|
1246
|
+
S as CovalentTooltip,
|
1247
|
+
wt as default
|
1343
1248
|
};
|