@jupyterlab/apputils 3.4.6 → 3.4.8
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/lib/hoverbox.d.ts +20 -2
- package/lib/hoverbox.js +146 -11
- package/lib/hoverbox.js.map +1 -1
- package/package.json +9 -9
package/lib/hoverbox.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare type OutOfViewDisplay = 'hidden-inside' | 'hidden-outside' | 'stick-inside' | 'stick-outside';
|
|
1
2
|
/**
|
|
2
3
|
* A namespace for `HoverBox` members.
|
|
3
4
|
*/
|
|
@@ -19,8 +20,9 @@ export declare namespace HoverBox {
|
|
|
19
20
|
* The node that hosts the anchor.
|
|
20
21
|
*
|
|
21
22
|
* #### Notes
|
|
22
|
-
* The visibility of the
|
|
23
|
-
* heuristic that determines whether the hover box ought to be
|
|
23
|
+
* The visibility of the elements under hover box edges within this host
|
|
24
|
+
* node is the heuristic that determines whether the hover box ought to be
|
|
25
|
+
* visible.
|
|
24
26
|
*/
|
|
25
27
|
host: HTMLElement;
|
|
26
28
|
/**
|
|
@@ -72,6 +74,21 @@ export declare namespace HoverBox {
|
|
|
72
74
|
* the hover box for geometry calculation.
|
|
73
75
|
*/
|
|
74
76
|
style?: CSSStyleDeclaration;
|
|
77
|
+
/**
|
|
78
|
+
* How to position the hover box if its edges extend beyond the view of the
|
|
79
|
+
* host element. Value 'sticky' positions the box at the (inner or outer)
|
|
80
|
+
* edge of the host element.
|
|
81
|
+
*
|
|
82
|
+
* #### Notes
|
|
83
|
+
* The default value for each edge is `'hidden-inside'` for left and top,
|
|
84
|
+
* and `hidden-outside` for right and bottom edges.
|
|
85
|
+
*/
|
|
86
|
+
outOfViewDisplay?: {
|
|
87
|
+
top?: OutOfViewDisplay;
|
|
88
|
+
bottom?: OutOfViewDisplay;
|
|
89
|
+
left?: OutOfViewDisplay;
|
|
90
|
+
right?: OutOfViewDisplay;
|
|
91
|
+
};
|
|
75
92
|
}
|
|
76
93
|
/**
|
|
77
94
|
* Set the visible dimensions of a hovering box anchored to an editor cursor.
|
|
@@ -80,3 +97,4 @@ export declare namespace HoverBox {
|
|
|
80
97
|
*/
|
|
81
98
|
function setGeometry(options: IOptions): void;
|
|
82
99
|
}
|
|
100
|
+
export {};
|
package/lib/hoverbox.js
CHANGED
|
@@ -19,26 +19,21 @@ export var HoverBox;
|
|
|
19
19
|
* @param options - The hover box geometry calculation options.
|
|
20
20
|
*/
|
|
21
21
|
function setGeometry(options) {
|
|
22
|
-
const { anchor, host, node, privilege } = options;
|
|
22
|
+
const { anchor, host, node, privilege, outOfViewDisplay } = options;
|
|
23
23
|
// Add hover box class if it does not exist.
|
|
24
24
|
node.classList.add(HOVERBOX_CLASS);
|
|
25
|
-
//
|
|
26
|
-
node.classList.
|
|
27
|
-
// If the current coordinates are not visible, bail.
|
|
28
|
-
if (!host.contains(document.elementFromPoint(anchor.left, anchor.top))) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
25
|
+
// Make sure the node is visible so that its dimensions can be queried.
|
|
26
|
+
node.classList.remove(OUTOFVIEW_CLASS);
|
|
31
27
|
// Clear any previously set max-height.
|
|
32
28
|
node.style.maxHeight = '';
|
|
33
29
|
// Clear any programmatically set margin-top.
|
|
34
30
|
node.style.marginTop = '';
|
|
35
|
-
// Make sure the node is visible so that its dimensions can be queried.
|
|
36
|
-
node.classList.remove(OUTOFVIEW_CLASS);
|
|
37
31
|
const style = options.style || window.getComputedStyle(node);
|
|
38
32
|
const innerHeight = window.innerHeight;
|
|
39
33
|
const spaceAbove = anchor.top;
|
|
40
34
|
const spaceBelow = innerHeight - anchor.bottom;
|
|
41
35
|
const marginTop = parseInt(style.marginTop, 10) || 0;
|
|
36
|
+
const marginLeft = parseInt(style.marginLeft, 10) || 0;
|
|
42
37
|
const minHeight = parseInt(style.minHeight, 10) || options.minHeight;
|
|
43
38
|
let maxHeight = parseInt(style.maxHeight, 10) || options.maxHeight;
|
|
44
39
|
// Determine whether to render above or below; check privilege.
|
|
@@ -74,7 +69,7 @@ export var HoverBox;
|
|
|
74
69
|
options.offset.vertical &&
|
|
75
70
|
options.offset.vertical.below) ||
|
|
76
71
|
0;
|
|
77
|
-
|
|
72
|
+
let top = renderBelow
|
|
78
73
|
? innerHeight - spaceBelow + offsetBelow
|
|
79
74
|
: spaceAbove - node.getBoundingClientRect().height + offsetAbove;
|
|
80
75
|
node.style.top = `${Math.floor(top)}px`;
|
|
@@ -89,11 +84,151 @@ export var HoverBox;
|
|
|
89
84
|
node.scrollTop = 0;
|
|
90
85
|
}
|
|
91
86
|
// Move left to fit in the window.
|
|
92
|
-
const
|
|
87
|
+
const rect = node.getBoundingClientRect();
|
|
88
|
+
const hostRect = host.getBoundingClientRect(); // Query together to avoid extra layout recalculation
|
|
89
|
+
const right = rect.right;
|
|
93
90
|
if (right > window.innerWidth) {
|
|
94
91
|
left -= right - window.innerWidth;
|
|
95
92
|
node.style.left = `${Math.ceil(left)}px`;
|
|
96
93
|
}
|
|
94
|
+
// Move right to fit in the window
|
|
95
|
+
if (left < offsetHorizontal - marginLeft) {
|
|
96
|
+
left = offsetHorizontal - marginLeft;
|
|
97
|
+
node.style.left = `${Math.ceil(left)}px`;
|
|
98
|
+
}
|
|
99
|
+
// Hide the hover box before querying the DOM for the anchor coordinates.
|
|
100
|
+
node.classList.add(OUTOFVIEW_CLASS);
|
|
101
|
+
const bottom = rect.bottom;
|
|
102
|
+
const includesLeftTop = host.contains(document.elementFromPoint(left, top));
|
|
103
|
+
const includesRightTop = host.contains(document.elementFromPoint(right, top));
|
|
104
|
+
const includesRightBottom = host.contains(document.elementFromPoint(right, bottom));
|
|
105
|
+
const includesLeftBottom = host.contains(document.elementFromPoint(left, bottom));
|
|
106
|
+
const topEdgeInside = includesLeftTop || includesRightTop;
|
|
107
|
+
const bottomEdgeInside = includesLeftBottom || includesRightBottom;
|
|
108
|
+
const leftEdgeInside = includesLeftTop || includesLeftBottom;
|
|
109
|
+
const rightEdgeInside = includesRightBottom || includesRightTop;
|
|
110
|
+
const height = bottom - top;
|
|
111
|
+
const width = right - left;
|
|
112
|
+
const overTheTop = top < hostRect.top;
|
|
113
|
+
const belowTheBottom = bottom > hostRect.bottom;
|
|
114
|
+
const beforeTheLeft = left + marginLeft < hostRect.left;
|
|
115
|
+
const afterTheRight = right > hostRect.right;
|
|
116
|
+
let hide = false;
|
|
117
|
+
let leftChanged = false;
|
|
118
|
+
let topChanged = false;
|
|
119
|
+
if (overTheTop) {
|
|
120
|
+
switch ((outOfViewDisplay === null || outOfViewDisplay === void 0 ? void 0 : outOfViewDisplay.top) || 'hidden-inside') {
|
|
121
|
+
case 'hidden-inside':
|
|
122
|
+
if (!topEdgeInside) {
|
|
123
|
+
hide = true;
|
|
124
|
+
}
|
|
125
|
+
break;
|
|
126
|
+
case 'hidden-outside':
|
|
127
|
+
if (!bottomEdgeInside) {
|
|
128
|
+
hide = true;
|
|
129
|
+
}
|
|
130
|
+
break;
|
|
131
|
+
case 'stick-inside':
|
|
132
|
+
if (hostRect.top > top) {
|
|
133
|
+
top = hostRect.top;
|
|
134
|
+
topChanged = true;
|
|
135
|
+
}
|
|
136
|
+
break;
|
|
137
|
+
case 'stick-outside':
|
|
138
|
+
if (hostRect.top > bottom) {
|
|
139
|
+
top = hostRect.top - height;
|
|
140
|
+
topChanged = true;
|
|
141
|
+
}
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (belowTheBottom) {
|
|
146
|
+
switch ((outOfViewDisplay === null || outOfViewDisplay === void 0 ? void 0 : outOfViewDisplay.bottom) || 'hidden-outside') {
|
|
147
|
+
case 'hidden-inside':
|
|
148
|
+
if (!bottomEdgeInside) {
|
|
149
|
+
hide = true;
|
|
150
|
+
}
|
|
151
|
+
break;
|
|
152
|
+
case 'hidden-outside':
|
|
153
|
+
if (!topEdgeInside) {
|
|
154
|
+
hide = true;
|
|
155
|
+
}
|
|
156
|
+
break;
|
|
157
|
+
case 'stick-inside':
|
|
158
|
+
if (hostRect.bottom < bottom) {
|
|
159
|
+
top = hostRect.bottom - height;
|
|
160
|
+
topChanged = true;
|
|
161
|
+
}
|
|
162
|
+
break;
|
|
163
|
+
case 'stick-outside':
|
|
164
|
+
if (hostRect.bottom < top) {
|
|
165
|
+
top = hostRect.bottom;
|
|
166
|
+
topChanged = true;
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
if (beforeTheLeft) {
|
|
172
|
+
switch ((outOfViewDisplay === null || outOfViewDisplay === void 0 ? void 0 : outOfViewDisplay.left) || 'hidden-inside') {
|
|
173
|
+
case 'hidden-inside':
|
|
174
|
+
if (!leftEdgeInside) {
|
|
175
|
+
hide = true;
|
|
176
|
+
}
|
|
177
|
+
break;
|
|
178
|
+
case 'hidden-outside':
|
|
179
|
+
if (!rightEdgeInside) {
|
|
180
|
+
hide = true;
|
|
181
|
+
}
|
|
182
|
+
break;
|
|
183
|
+
case 'stick-inside':
|
|
184
|
+
if (hostRect.left > left + marginLeft) {
|
|
185
|
+
left = hostRect.left - marginLeft;
|
|
186
|
+
leftChanged = true;
|
|
187
|
+
}
|
|
188
|
+
break;
|
|
189
|
+
case 'stick-outside':
|
|
190
|
+
if (hostRect.left > right) {
|
|
191
|
+
left = hostRect.left - marginLeft - width;
|
|
192
|
+
leftChanged = true;
|
|
193
|
+
}
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
if (afterTheRight) {
|
|
198
|
+
switch ((outOfViewDisplay === null || outOfViewDisplay === void 0 ? void 0 : outOfViewDisplay.right) || 'hidden-outside') {
|
|
199
|
+
case 'hidden-inside':
|
|
200
|
+
if (!rightEdgeInside) {
|
|
201
|
+
hide = true;
|
|
202
|
+
}
|
|
203
|
+
break;
|
|
204
|
+
case 'hidden-outside':
|
|
205
|
+
if (!leftEdgeInside) {
|
|
206
|
+
hide = true;
|
|
207
|
+
}
|
|
208
|
+
break;
|
|
209
|
+
case 'stick-inside':
|
|
210
|
+
if (hostRect.right < right) {
|
|
211
|
+
left = hostRect.right - width;
|
|
212
|
+
leftChanged = true;
|
|
213
|
+
}
|
|
214
|
+
break;
|
|
215
|
+
case 'stick-outside':
|
|
216
|
+
if (hostRect.right < left) {
|
|
217
|
+
left = hostRect.right;
|
|
218
|
+
leftChanged = true;
|
|
219
|
+
}
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
if (!hide) {
|
|
224
|
+
node.classList.remove(OUTOFVIEW_CLASS);
|
|
225
|
+
}
|
|
226
|
+
if (leftChanged) {
|
|
227
|
+
node.style.left = `${Math.ceil(left)}px`;
|
|
228
|
+
}
|
|
229
|
+
if (topChanged) {
|
|
230
|
+
node.style.top = `${Math.ceil(top)}px`;
|
|
231
|
+
}
|
|
97
232
|
}
|
|
98
233
|
HoverBox.setGeometry = setGeometry;
|
|
99
234
|
})(HoverBox || (HoverBox = {}));
|
package/lib/hoverbox.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hoverbox.js","sourceRoot":"","sources":["../src/hoverbox.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D;;GAEG;AACH,MAAM,cAAc,GAAG,aAAa,CAAC;AAErC;;GAEG;AACH,MAAM,eAAe,GAAG,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"hoverbox.js","sourceRoot":"","sources":["../src/hoverbox.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D;;GAEG;AACH,MAAM,cAAc,GAAG,aAAa,CAAC;AAErC;;GAEG;AACH,MAAM,eAAe,GAAG,kBAAkB,CAAC;AAQ3C;;GAEG;AACH,MAAM,KAAW,QAAQ,CA6VxB;AA7VD,WAAiB,QAAQ;IA8FvB;;;;OAIG;IACH,SAAgB,WAAW,CAAC,OAAiB;QAC3C,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,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AG,IAAI,CAAC;qBACpB;oBACD,MAAM;gBACR,KAAK,eAAe;oBAClB,IAAI,QAAQ,CAAC,KAAK,GAAG,IAAI,EAAE;wBACzB,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC;wBACtB,WAAW,GAAG,IAAI,CAAC;qBACpB;oBACD,MAAM;aACT;SACF;QAED,IAAI,CAAC,IAAI,EAAE;YACT,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;SACxC;QAED,IAAI,WAAW,EAAE;YACf,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;SAC1C;QACD,IAAI,UAAU,EAAE;YACd,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;SACxC;IACH,CAAC;IAzPe,oBAAW,cAyP1B,CAAA;AACH,CAAC,EA7VgB,QAAQ,KAAR,QAAQ,QA6VxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/apputils",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.8",
|
|
4
4
|
"description": "JupyterLab - Application Utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"watch": "tsc -b --watch"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@jupyterlab/coreutils": "^5.4.
|
|
48
|
-
"@jupyterlab/observables": "^4.4.
|
|
49
|
-
"@jupyterlab/services": "^6.4.
|
|
50
|
-
"@jupyterlab/settingregistry": "^3.4.
|
|
51
|
-
"@jupyterlab/statedb": "^3.4.
|
|
52
|
-
"@jupyterlab/translation": "^3.4.
|
|
53
|
-
"@jupyterlab/ui-components": "^3.4.
|
|
47
|
+
"@jupyterlab/coreutils": "^5.4.8",
|
|
48
|
+
"@jupyterlab/observables": "^4.4.8",
|
|
49
|
+
"@jupyterlab/services": "^6.4.8",
|
|
50
|
+
"@jupyterlab/settingregistry": "^3.4.8",
|
|
51
|
+
"@jupyterlab/statedb": "^3.4.8",
|
|
52
|
+
"@jupyterlab/translation": "^3.4.8",
|
|
53
|
+
"@jupyterlab/ui-components": "^3.4.8",
|
|
54
54
|
"@lumino/algorithm": "^1.9.0",
|
|
55
55
|
"@lumino/commands": "^1.19.0",
|
|
56
56
|
"@lumino/coreutils": "^1.11.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"url": "^0.11.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@jupyterlab/testutils": "^3.4.
|
|
72
|
+
"@jupyterlab/testutils": "^3.4.8",
|
|
73
73
|
"@types/jest": "^26.0.10",
|
|
74
74
|
"@types/react-dom": "^17.0.0",
|
|
75
75
|
"@types/sanitize-html": "^2.3.1",
|