@fundamental-ngx/cdk 0.43.32 → 0.43.34
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/esm2020/utils/directives/focusable-list/scroll.mjs +4 -2
- package/esm2020/utils/directives/only-digits/only-digits.directive.mjs +16 -4
- package/fesm2015/fundamental-ngx-cdk-utils.mjs +17 -3
- package/fesm2015/fundamental-ngx-cdk-utils.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-cdk-utils.mjs +17 -3
- package/fesm2020/fundamental-ngx-cdk-utils.mjs.map +1 -1
- package/fundamental-ngx-cdk-v0.43.34.tgz +0 -0
- package/package.json +2 -2
- package/fundamental-ngx-cdk-v0.43.32.tgz +0 -0
|
@@ -1941,8 +1941,20 @@ class OnlyDigitsDirective {
|
|
|
1941
1941
|
/** @hidden */
|
|
1942
1942
|
onKeyDown(e) {
|
|
1943
1943
|
if (
|
|
1944
|
-
// Allow: Delete, Backspace, Tab, Escape, Enter, End, Home, Arrow Left, Arrow Right
|
|
1945
|
-
KeyUtil.isKeyCode(e, [
|
|
1944
|
+
// Allow: Delete, Backspace, Tab, Escape, Enter, End, Home, Arrow Left, Arrow Right, Arrow Up, Arrow Down
|
|
1945
|
+
KeyUtil.isKeyCode(e, [
|
|
1946
|
+
DELETE,
|
|
1947
|
+
BACKSPACE,
|
|
1948
|
+
TAB,
|
|
1949
|
+
ESCAPE,
|
|
1950
|
+
ENTER,
|
|
1951
|
+
END,
|
|
1952
|
+
HOME,
|
|
1953
|
+
LEFT_ARROW,
|
|
1954
|
+
RIGHT_ARROW,
|
|
1955
|
+
UP_ARROW,
|
|
1956
|
+
DOWN_ARROW
|
|
1957
|
+
]) ||
|
|
1946
1958
|
// Allow: Ctrl+(A/C/V/X) and Cmd+(A/C/V/X) (Mac)
|
|
1947
1959
|
(KeyUtil.isKeyCode(e, [A, C, V, X]) && (e.ctrlKey || e.metaKey))) {
|
|
1948
1960
|
return; // let it happen, don't do anything
|
|
@@ -3435,7 +3447,9 @@ function scrollIntoView(element, position) {
|
|
|
3435
3447
|
*/
|
|
3436
3448
|
const elRect = element.getBoundingClientRect();
|
|
3437
3449
|
const topEl = document.elementFromPoint(elRect.left, elRect.top);
|
|
3438
|
-
if (!element.isSameNode(topEl) &&
|
|
3450
|
+
if (!element.isSameNode(topEl) &&
|
|
3451
|
+
topEl &&
|
|
3452
|
+
element.getBoundingClientRect().top !== topEl.getBoundingClientRect().top) {
|
|
3439
3453
|
scrollableParent.scrollBy({ top: elRect.top - topEl.getBoundingClientRect().bottom });
|
|
3440
3454
|
}
|
|
3441
3455
|
}
|