Files
NapCatQQ/.pnpm-store/v3/files/9d/2490314af15601a0f0b9a3101938ad89736584962fa9efdd6ee70cde139eb8de9d83edb5ac998dddb857b0c3b3b4fe1afd23c16ff0273d724c0ae876256c81
T
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

64 lines
2.5 KiB
Plaintext

var $b6837c2f80a3c32f$exports = require("./useSelectableCollection.main.js");
var $836f880b12dcae5c$exports = require("./ListKeyboardDelegate.main.js");
var $lm2JY$reactariai18n = require("@react-aria/i18n");
var $lm2JY$react = require("react");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "useSelectableList", () => $bd230acee196f50c$export$b95089534ab7c1fd);
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $bd230acee196f50c$export$b95089534ab7c1fd(props) {
let { selectionManager: selectionManager, collection: collection, disabledKeys: disabledKeys, ref: ref, keyboardDelegate: keyboardDelegate, layoutDelegate: layoutDelegate } = props;
// By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).
// When virtualized, the layout object will be passed in as a prop and override this.
let collator = (0, $lm2JY$reactariai18n.useCollator)({
usage: 'search',
sensitivity: 'base'
});
let disabledBehavior = selectionManager.disabledBehavior;
let delegate = (0, $lm2JY$react.useMemo)(()=>keyboardDelegate || new (0, $836f880b12dcae5c$exports.ListKeyboardDelegate)({
collection: collection,
disabledKeys: disabledKeys,
disabledBehavior: disabledBehavior,
ref: ref,
collator: collator,
layoutDelegate: layoutDelegate
}), [
keyboardDelegate,
layoutDelegate,
collection,
disabledKeys,
ref,
collator,
disabledBehavior
]);
let { collectionProps: collectionProps } = (0, $b6837c2f80a3c32f$exports.useSelectableCollection)({
...props,
ref: ref,
selectionManager: selectionManager,
keyboardDelegate: delegate
});
return {
listProps: collectionProps
};
}
//# sourceMappingURL=useSelectableList.main.js.map