@neo4j-ndl/react 2.9.4 → 2.10.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/CHANGELOG.md +6 -0
- package/lib/LICENSES.txt +26 -0
- package/lib/NOTICE.txt +6 -0
- package/lib/cjs/_common/utils.js +41 -1
- package/lib/cjs/_common/utils.js.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/tree-view/TreeItemWrapper.js +201 -0
- package/lib/cjs/tree-view/TreeItemWrapper.js.map +1 -0
- package/lib/cjs/tree-view/TreeView.js +314 -0
- package/lib/cjs/tree-view/TreeView.js.map +1 -0
- package/lib/cjs/tree-view/TreeViewItem.js +89 -0
- package/lib/cjs/tree-view/TreeViewItem.js.map +1 -0
- package/lib/cjs/tree-view/TreeViewTextItem.js +153 -0
- package/lib/cjs/tree-view/TreeViewTextItem.js.map +1 -0
- package/lib/cjs/tree-view/TreeViewTrail.js +30 -0
- package/lib/cjs/tree-view/TreeViewTrail.js.map +1 -0
- package/lib/cjs/tree-view/index.js +26 -0
- package/lib/cjs/tree-view/index.js.map +1 -0
- package/lib/cjs/tree-view/tree-view-keyboard-coordinates.js +119 -0
- package/lib/cjs/tree-view/tree-view-keyboard-coordinates.js.map +1 -0
- package/lib/cjs/tree-view/tree-view-keyboard-helpers.js +75 -0
- package/lib/cjs/tree-view/tree-view-keyboard-helpers.js.map +1 -0
- package/lib/cjs/tree-view/tree-view-types.js +24 -0
- package/lib/cjs/tree-view/tree-view-types.js.map +1 -0
- package/lib/cjs/tree-view/tree-view-utils.js +187 -0
- package/lib/cjs/tree-view/tree-view-utils.js.map +1 -0
- package/lib/esm/_common/utils.js +38 -0
- package/lib/esm/_common/utils.js.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/tree-view/TreeItemWrapper.js +172 -0
- package/lib/esm/tree-view/TreeItemWrapper.js.map +1 -0
- package/lib/esm/tree-view/TreeView.js +310 -0
- package/lib/esm/tree-view/TreeView.js.map +1 -0
- package/lib/esm/tree-view/TreeViewItem.js +63 -0
- package/lib/esm/tree-view/TreeViewItem.js.map +1 -0
- package/lib/esm/tree-view/TreeViewTextItem.js +147 -0
- package/lib/esm/tree-view/TreeViewTextItem.js.map +1 -0
- package/lib/esm/tree-view/TreeViewTrail.js +26 -0
- package/lib/esm/tree-view/TreeViewTrail.js.map +1 -0
- package/lib/esm/tree-view/index.js +22 -0
- package/lib/esm/tree-view/index.js.map +1 -0
- package/lib/esm/tree-view/tree-view-keyboard-coordinates.js +115 -0
- package/lib/esm/tree-view/tree-view-keyboard-coordinates.js.map +1 -0
- package/lib/esm/tree-view/tree-view-keyboard-helpers.js +68 -0
- package/lib/esm/tree-view/tree-view-keyboard-helpers.js.map +1 -0
- package/lib/esm/tree-view/tree-view-types.js +23 -0
- package/lib/esm/tree-view/tree-view-types.js.map +1 -0
- package/lib/esm/tree-view/tree-view-utils.js +179 -0
- package/lib/esm/tree-view/tree-view-utils.js.map +1 -0
- package/lib/types/_common/utils.d.ts +12 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/table/Table.d.ts +1 -1
- package/lib/types/tree-view/TreeItemWrapper.d.ts +32 -0
- package/lib/types/tree-view/TreeView.d.ts +34 -0
- package/lib/types/tree-view/TreeViewItem.d.ts +52 -0
- package/lib/types/tree-view/TreeViewTextItem.d.ts +23 -0
- package/lib/types/tree-view/TreeViewTrail.d.ts +24 -0
- package/lib/types/tree-view/index.d.ts +23 -0
- package/lib/types/tree-view/tree-view-keyboard-coordinates.d.ts +23 -0
- package/lib/types/tree-view/tree-view-keyboard-helpers.d.ts +25 -0
- package/lib/types/tree-view/tree-view-types.d.ts +80 -0
- package/lib/types/tree-view/tree-view-utils.d.ts +77 -0
- package/lib/types/typography/Typography.d.ts +1 -1
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 2.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#766](https://github.com/neo4j/needle/pull/766) [`98ed44af7b754baeb90263e4a97e1389992a1909`](https://github.com/neo4j/needle/commit/98ed44af7b754baeb90263e4a97e1389992a1909) Thanks [@noahmay](https://github.com/noahmay)! - Add tree view component
|
|
8
|
+
|
|
3
9
|
## 2.9.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/lib/LICENSES.txt
CHANGED
|
@@ -476,6 +476,32 @@ SOFTWARE.
|
|
|
476
476
|
|
|
477
477
|
-----
|
|
478
478
|
|
|
479
|
+
The following software may be included in this product: @dnd-kit/core, @dnd-kit/sortable. A copy of the source code may be downloaded from git+https://github.com/clauderic/dnd-kit.git (@dnd-kit/core), git+https://github.com/clauderic/dnd-kit.git (@dnd-kit/sortable). This software contains the following license and notice below:
|
|
480
|
+
|
|
481
|
+
MIT License
|
|
482
|
+
|
|
483
|
+
Copyright (c) 2021, Claudéric Demers
|
|
484
|
+
|
|
485
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
486
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
487
|
+
in the Software without restriction, including without limitation the rights
|
|
488
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
489
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
490
|
+
furnished to do so, subject to the following conditions:
|
|
491
|
+
|
|
492
|
+
The above copyright notice and this permission notice shall be included in all
|
|
493
|
+
copies or substantial portions of the Software.
|
|
494
|
+
|
|
495
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
496
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
497
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
498
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
499
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
500
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
501
|
+
SOFTWARE.
|
|
502
|
+
|
|
503
|
+
-----
|
|
504
|
+
|
|
479
505
|
The following software may be included in this product: @floating-ui/react. A copy of the source code may be downloaded from https://github.com/floating-ui/floating-ui.git. This software contains the following license and notice below:
|
|
480
506
|
|
|
481
507
|
MIT License
|
package/lib/NOTICE.txt
CHANGED
|
@@ -48,6 +48,12 @@ Third-party licenses
|
|
|
48
48
|
│ │ ├─ URL: https://github.com/conventional-changelog/commitlint.git
|
|
49
49
|
│ │ ├─ VendorName: Mario Nebl
|
|
50
50
|
│ │ └─ VendorUrl: https://commitlint.js.org/
|
|
51
|
+
│ ├─ [38;5;166m@dnd-kit/[39m[38;5;173mcore[39m[38;5;111m@[39m[38;5;111mnpm:6.1.0 [a2e03][39m (via [38;5;37mnpm:6.1.0 [a2e03][39m)
|
|
52
|
+
│ │ ├─ URL: git+https://github.com/clauderic/dnd-kit.git
|
|
53
|
+
│ │ └─ VendorName: Claudéric Demers
|
|
54
|
+
│ ├─ [38;5;166m@dnd-kit/[39m[38;5;173msortable[39m[38;5;111m@[39m[38;5;111mnpm:8.0.0 [a2e03][39m (via [38;5;37mnpm:8.0.0 [a2e03][39m)
|
|
55
|
+
│ │ ├─ URL: git+https://github.com/clauderic/dnd-kit.git
|
|
56
|
+
│ │ └─ VendorName: Claudéric Demers
|
|
51
57
|
│ ├─ [38;5;166m@floating-ui/[39m[38;5;173mreact[39m[38;5;111m@[39m[38;5;111mnpm:0.25.1 [a2e03][39m (via [38;5;37mnpm:0.25.1 [a2e03][39m)
|
|
52
58
|
│ │ ├─ URL: https://github.com/floating-ui/floating-ui.git
|
|
53
59
|
│ │ ├─ VendorName: atomiks
|
package/lib/cjs/_common/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findUntil = exports.isRefObject = exports.randomId = exports.useOnClickOutside = exports.useDocumentScrollToggle = exports.needleWarningMessage = exports.removeSpaces = exports.removeNewlines = void 0;
|
|
3
|
+
exports.findFocusableSibling = exports.findFocusableChildren = exports.findUntil = exports.isRefObject = exports.randomId = exports.useOnClickOutside = exports.useDocumentScrollToggle = exports.needleWarningMessage = exports.removeSpaces = exports.removeNewlines = void 0;
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) "Neo4j"
|
|
@@ -119,4 +119,44 @@ function findUntil(direction, el, matchSelector) {
|
|
|
119
119
|
return allSiblings[newIndex];
|
|
120
120
|
}
|
|
121
121
|
exports.findUntil = findUntil;
|
|
122
|
+
/**
|
|
123
|
+
* Find all html elements that are focusable given a parent element
|
|
124
|
+
* @param parentElement the parent element
|
|
125
|
+
* @returns an array of HTML elements
|
|
126
|
+
*/
|
|
127
|
+
const findFocusableChildren = (parentElement) => {
|
|
128
|
+
const focusableElements = 'a:not([disabled]), button:not([disabled]), input[type=text]:not([disabled]), input[type=checkbox]:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"])';
|
|
129
|
+
const focusable = Array.from(parentElement.querySelectorAll(focusableElements)).filter((element) => {
|
|
130
|
+
if (element instanceof HTMLElement) {
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
return false;
|
|
134
|
+
});
|
|
135
|
+
return focusable;
|
|
136
|
+
};
|
|
137
|
+
exports.findFocusableChildren = findFocusableChildren;
|
|
138
|
+
/**
|
|
139
|
+
* Using the element that currently has focus, finds the previous sibling of the currently focused element that is focusable
|
|
140
|
+
* @param parentRef the parent element
|
|
141
|
+
* @returns the previous focusable element
|
|
142
|
+
*/
|
|
143
|
+
const findFocusableSibling = (parentRef, direction) => {
|
|
144
|
+
const { current } = parentRef;
|
|
145
|
+
const { activeElement } = document;
|
|
146
|
+
if (current === null || activeElement === null) {
|
|
147
|
+
return undefined;
|
|
148
|
+
}
|
|
149
|
+
const focusable = (0, exports.findFocusableChildren)(current);
|
|
150
|
+
const index = focusable.indexOf(activeElement);
|
|
151
|
+
if (index > -1) {
|
|
152
|
+
const siblingElement = focusable[index + (direction === 'next' ? 1 : -1)];
|
|
153
|
+
if (siblingElement === undefined ||
|
|
154
|
+
!(siblingElement instanceof HTMLElement)) {
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
return siblingElement;
|
|
158
|
+
}
|
|
159
|
+
return undefined;
|
|
160
|
+
};
|
|
161
|
+
exports.findFocusableSibling = findFocusableSibling;
|
|
122
162
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/_common/utils.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,iCAMe;AAER,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,EAAE,CAC9C,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;AADzB,QAAA,cAAc,kBACW;AAEtC,qCAAqC;AAC9B,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,EAAE,CAC5C,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AADvB,QAAA,YAAY,gBACW;AAE7B,MAAM,oBAAoB,GAAG,CAAC,OAAe,EAAE,EAAE,CACtD,OAAO,CAAC,IAAI,CAAC,iBAAiB,OAAO,EAAE,CAAC,CAAC;AAD9B,QAAA,oBAAoB,wBACU;AAE3C,MAAM,gBAAgB,GAAG,CAAC,GAAa,EAAU,EAAE;IACjD,iFAAiF;IACjF,MAAM,aAAa,GAAG,GAAG,CAAC,eAAe,CAAC,WAAW,CAAC;IACtD,OA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AK,CAAC;IACf,CAAC,CAAC,CAAC;IACH,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAdW,QAAA,qBAAqB,yBAchC;AAEF;;;;GAIG;AACI,MAAM,oBAAoB,GAAG,CAClC,SAAuC,EACvC,SAA0B,EACD,EAAE;IAC3B,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IAC9B,MAAM,EAAE,aAAa,EAAE,GAAG,QAAQ,CAAC;IAEnC,IAAI,OAAO,KAAK,IAAI,IAAI,aAAa,KAAK,IAAI,EAAE;QAC9C,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,SAAS,GAAG,IAAA,6BAAqB,EAAC,OAAO,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC/C,IAAI,KAAK,GAAG,CAAC,CAAC,EAAE;QACd,MAAM,cAAc,GAAG,SAAS,CAAC,KAAK,GAAG,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1E,IACE,cAAc,KAAK,SAAS;YAC5B,CAAC,CAAC,cAAc,YAAY,WAAW,CAAC,EACxC;YACA,OAAO,SAAS,CAAC;SAClB;QACD,OAAO,cAAc,CAAC;KACvB;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAxBW,QAAA,oBAAoB,wBAwB/B"}
|
package/lib/cjs/index.js
CHANGED
|
@@ -77,4 +77,5 @@ __exportStar(require("./logo"), exports);
|
|
|
77
77
|
__exportStar(require("./clipboard-copier"), exports);
|
|
78
78
|
__exportStar(require("./slider"), exports);
|
|
79
79
|
__exportStar(require("./inline-edit"), exports);
|
|
80
|
+
__exportStar(require("./tree-view"), exports);
|
|
80
81
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,iDAA+B;AAC/B,gDAA8B;AAC9B,2CAAyB;AACzB,0CAAwB;AACxB,oDAAkC;AAClC,yCAAuB;AACvB,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,6CAA2B;AAC3B,wCAAsB;AACtB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B;AAC7B,sDAAoC;AACpC,qDAAmC;AACnC,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,gDAA8B;AAC9B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,qDAAmC;AACnC,2CAAyB;AACzB,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,iDAA+B;AAC/B,gDAA8B;AAC9B,2CAAyB;AACzB,0CAAwB;AACxB,oDAAkC;AAClC,yCAAuB;AACvB,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,6CAA2B;AAC3B,wCAAsB;AACtB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B;AAC7B,sDAAoC;AACpC,qDAAmC;AACnC,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,gDAA8B;AAC9B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,qDAAmC;AACnC,2CAAyB;AACzB,gDAA8B;AAC9B,8CAA4B"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.TreeItemWrapper = void 0;
|
|
41
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) "Neo4j"
|
|
45
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
46
|
+
*
|
|
47
|
+
* This file is part of Neo4j.
|
|
48
|
+
*
|
|
49
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
50
|
+
* it under the terms of the GNU General Public License as published by
|
|
51
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
52
|
+
* (at your option) any later version.
|
|
53
|
+
*
|
|
54
|
+
* This program is distributed in the hope that it will be useful,
|
|
55
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
56
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
57
|
+
* GNU General Public License for more details.
|
|
58
|
+
*
|
|
59
|
+
* You should have received a copy of the GNU General Public License
|
|
60
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
61
|
+
*/
|
|
62
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
63
|
+
const react_1 = __importStar(require("react"));
|
|
64
|
+
const utils_1 = require("../_common/utils");
|
|
65
|
+
const icons_1 = require("../icons");
|
|
66
|
+
const TreeViewTrail_1 = require("./TreeViewTrail");
|
|
67
|
+
const tree_view_keyboard_helpers_1 = require("./tree-view-keyboard-helpers");
|
|
68
|
+
/**
|
|
69
|
+
* Handles keydown events for when the item itself is focused (wrapperRef.current)
|
|
70
|
+
* Moves the focus between the item and its children as well as toggles collapsing of the item
|
|
71
|
+
* @param event
|
|
72
|
+
* @param shouldDisableInteraction
|
|
73
|
+
* @param wrapperRef
|
|
74
|
+
* @param onCollapse
|
|
75
|
+
* @param item
|
|
76
|
+
* @returns
|
|
77
|
+
*/
|
|
78
|
+
const onWrapperKeyDown = (event, shouldDisableInteraction, wrapperRef, onCollapse, item) => {
|
|
79
|
+
if (shouldDisableInteraction || wrapperRef.current === null) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (event.key === 'Enter' && onCollapse) {
|
|
83
|
+
onCollapse();
|
|
84
|
+
}
|
|
85
|
+
else if (event.key === 'ArrowRight') {
|
|
86
|
+
event.preventDefault();
|
|
87
|
+
if (item.canHaveSubItems && item.isCollapsed && onCollapse) {
|
|
88
|
+
onCollapse();
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
const focusable = (0, utils_1.findFocusableChildren)(wrapperRef.current);
|
|
92
|
+
const [firstElement] = focusable;
|
|
93
|
+
if (firstElement instanceof HTMLElement) {
|
|
94
|
+
firstElement.focus();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
event.preventDefault();
|
|
98
|
+
}
|
|
99
|
+
else if (event.key === 'ArrowLeft') {
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
if (item.canHaveSubItems && !item.isCollapsed && onCollapse) {
|
|
102
|
+
onCollapse();
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
(0, tree_view_keyboard_helpers_1.focusPreviousRow)(wrapperRef.current);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
else if (event.key === 'ArrowDown') {
|
|
109
|
+
event.preventDefault();
|
|
110
|
+
(0, tree_view_keyboard_helpers_1.focusNextRow)(wrapperRef.current);
|
|
111
|
+
}
|
|
112
|
+
else if (event.key === 'ArrowUp') {
|
|
113
|
+
event.preventDefault();
|
|
114
|
+
(0, tree_view_keyboard_helpers_1.focusPreviousRow)(wrapperRef.current);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Handles keydown events for when one of the items children is focused
|
|
119
|
+
* Moves the focus between the children of the item and up to the parent if needed.
|
|
120
|
+
* Stops the event from propagating to the parent since it has it own keydown handler
|
|
121
|
+
* The parent is the wrapperRef.current and uses onWrapperKeyDown
|
|
122
|
+
* @param event
|
|
123
|
+
* @param shouldDisableInteraction
|
|
124
|
+
* @param wrapperRef
|
|
125
|
+
*/
|
|
126
|
+
const onInnerDivKeyDown = (event, shouldDisableInteraction, wrapperRef) => {
|
|
127
|
+
var _a;
|
|
128
|
+
if (shouldDisableInteraction) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
event.stopPropagation();
|
|
132
|
+
if (event.key === 'ArrowRight') {
|
|
133
|
+
event.preventDefault();
|
|
134
|
+
const nextElement = (0, utils_1.findFocusableSibling)(wrapperRef, 'next');
|
|
135
|
+
if (nextElement) {
|
|
136
|
+
nextElement.focus();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
else if (event.key === 'ArrowLeft') {
|
|
140
|
+
event.preventDefault();
|
|
141
|
+
const previousElement = (0, utils_1.findFocusableSibling)(wrapperRef, 'prev');
|
|
142
|
+
if (previousElement) {
|
|
143
|
+
previousElement.focus();
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
(_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
else if (event.key === 'ArrowDown' && wrapperRef.current !== null) {
|
|
150
|
+
event.preventDefault();
|
|
151
|
+
(0, tree_view_keyboard_helpers_1.focusCellInNextRow)(wrapperRef.current);
|
|
152
|
+
}
|
|
153
|
+
else if (event.key === 'ArrowUp' && wrapperRef.current !== null) {
|
|
154
|
+
event.preventDefault();
|
|
155
|
+
(0, tree_view_keyboard_helpers_1.focusCellInPreviousRow)(wrapperRef.current);
|
|
156
|
+
}
|
|
157
|
+
else if (event.shiftKey && event.key === 'Tab') {
|
|
158
|
+
const previousElement = (0, utils_1.findFocusableSibling)(wrapperRef, 'prev');
|
|
159
|
+
if (previousElement) {
|
|
160
|
+
event.preventDefault();
|
|
161
|
+
previousElement.focus();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
else if (event.key === 'Tab') {
|
|
165
|
+
if (event.shiftKey) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
const nextElement = (0, utils_1.findFocusableSibling)(wrapperRef, 'next');
|
|
169
|
+
if (nextElement) {
|
|
170
|
+
nextElement.focus();
|
|
171
|
+
event.preventDefault();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Used as a helper function to wrap the TreeItem component
|
|
177
|
+
* This adds the drag handle and trail to the start of a tree item.
|
|
178
|
+
* Useful if you want to add additional functionality to the tree item but still keep the drag handle and trail
|
|
179
|
+
* Is also used internally to create the TreeViewTextItem component
|
|
180
|
+
*/
|
|
181
|
+
exports.TreeItemWrapper = react_1.default.forwardRef(function TreeItemWrapper(_a, ref) {
|
|
182
|
+
var { depth, shouldDisableInteraction, shouldDisableSorting, isGhost, isIndicator, onCollapse, item, setNodeRef, setActivatorNodeRef, dragHandleProps, style, trails, children, indentationWidth, tabIndex, onFocus } = _a,
|
|
183
|
+
// Need to destruct to avoid passing it to the component
|
|
184
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
185
|
+
restProps = __rest(_a, ["depth", "shouldDisableInteraction", "shouldDisableSorting", "isGhost", "isIndicator", "onCollapse", "item", "setNodeRef", "setActivatorNodeRef", "dragHandleProps", "style", "trails", "children", "indentationWidth", "tabIndex", "onFocus"]);
|
|
186
|
+
const wrapperRef = (0, react_1.useRef)(null);
|
|
187
|
+
return ((0, jsx_runtime_1.jsx)("li", { ref: (el) => {
|
|
188
|
+
wrapperRef.current = el;
|
|
189
|
+
if (el === null)
|
|
190
|
+
return;
|
|
191
|
+
setNodeRef(el);
|
|
192
|
+
}, className: (0, classnames_1.default)({
|
|
193
|
+
'ndl-tree-view-list-item': true,
|
|
194
|
+
indicator: isIndicator,
|
|
195
|
+
'ndl-tree-view-list-item-placeholder': isGhost,
|
|
196
|
+
'ndl-tree-view-list-item-disable-interaction': shouldDisableInteraction,
|
|
197
|
+
}), style: Object.assign(Object.assign({}, style), { paddingLeft: isIndicator ? `${depth * indentationWidth}px` : 0 }), role: "treeitem", onFocus: onFocus, "aria-selected": item.isSelected, "aria-expanded": item.canHaveSubItems ? !item.isCollapsed : undefined, onKeyDown: (event) => onWrapperKeyDown(event, shouldDisableInteraction !== null && shouldDisableInteraction !== void 0 ? shouldDisableInteraction : false, wrapperRef, onCollapse, item), children: (0, jsx_runtime_1.jsxs)("div", { role: "presentation", className: "ndl-tree-view-list-item-content", ref: ref, onKeyDown: (event) => onInnerDivKeyDown(event, shouldDisableInteraction !== null && shouldDisableInteraction !== void 0 ? shouldDisableInteraction : false, wrapperRef), children: [!shouldDisableSorting && ((0, jsx_runtime_1.jsx)("button", Object.assign({ className: "ndl-tree-view-drag-handle", ref: setActivatorNodeRef, "aria-label": "pick up" }, dragHandleProps, { tabIndex: tabIndex, children: (0, jsx_runtime_1.jsx)(icons_1.DragIcon, {}) }))), trails.map((trail, index) => {
|
|
198
|
+
return (0, jsx_runtime_1.jsx)(TreeViewTrail_1.Trail, { variant: trail }, index);
|
|
199
|
+
}), children] }) }));
|
|
200
|
+
});
|
|
201
|
+
//# sourceMappingURL=TreeItemWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeItemWrapper.js","sourceRoot":"","sources":["../../../src/tree-view/TreeItemWrapper.tsx"],"names":[],"mappings":";;;;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