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