Files
dsProject/dsBase/WebRoot/html/cdn/es/components/roving-focus-group/src/roving-focus-group.mjs
2025-08-14 15:45:08 +08:00

33 lines
1014 B
JavaScript

import { buildProps, definePropType } from '../../../utils/props.mjs';
import '../../collection/index.mjs';
import { createCollectionWithScope } from '../../collection/src/collection.mjs';
const rovingFocusGroupProps = buildProps({
style: { type: definePropType([String, Array, Object]) },
currentTabId: {
type: definePropType(String)
},
defaultCurrentTabId: String,
loop: Boolean,
dir: {
type: String,
values: ["ltr", "rtl"],
default: "ltr"
},
orientation: {
type: definePropType(String)
},
onBlur: Function,
onFocus: Function,
onMousedown: Function
});
const {
ElCollection,
ElCollectionItem,
COLLECTION_INJECTION_KEY,
COLLECTION_ITEM_INJECTION_KEY
} = createCollectionWithScope("RovingFocusGroup");
export { ElCollection, ElCollectionItem, COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, rovingFocusGroupProps };
//# sourceMappingURL=roving-focus-group.mjs.map