forty-cdk 0.25.1 → 0.25.2
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/fesm2022/forty-cdk-core.mjs +56 -1
- package/fesm2022/forty-cdk-core.mjs.map +1 -1
- package/fesm2022/forty-cdk-table.mjs +109 -4
- package/fesm2022/forty-cdk-table.mjs.map +1 -1
- package/package.json +1 -1
- package/table/README.md +4 -3
- package/types/forty-cdk-core.d.ts +27 -1
- package/types/forty-cdk-table.d.ts +63 -20
|
@@ -4378,6 +4378,61 @@ function findTabbableEdges(container) {
|
|
|
4378
4378
|
}
|
|
4379
4379
|
return { first, last: first };
|
|
4380
4380
|
}
|
|
4381
|
+
|
|
4382
|
+
|
|
4383
|
+
|
|
4384
|
+
|
|
4385
|
+
|
|
4386
|
+
|
|
4387
|
+
|
|
4388
|
+
|
|
4389
|
+
|
|
4390
|
+
|
|
4391
|
+
|
|
4392
|
+
|
|
4393
|
+
|
|
4394
|
+
|
|
4395
|
+
|
|
4396
|
+
|
|
4397
|
+
|
|
4398
|
+
|
|
4399
|
+
|
|
4400
|
+
|
|
4401
|
+
|
|
4402
|
+
|
|
4403
|
+
|
|
4404
|
+
|
|
4405
|
+
function stepFocusableCycle(container, from, direction) {
|
|
4406
|
+
const candidates = queryFocusableCandidates(container);
|
|
4407
|
+
if (candidates.length === 0) {
|
|
4408
|
+
return null;
|
|
4409
|
+
}
|
|
4410
|
+
const step = direction === 'forward' ? 1 : -1;
|
|
4411
|
+
const current = from === null ? -1 : indexOfInnermostContaining(candidates, from);
|
|
4412
|
+
const start = current === -1 ? (step === 1 ? 0 : candidates.length - 1) : current + step;
|
|
4413
|
+
for (let i = 0; i < candidates.length; i++) {
|
|
4414
|
+
const offset = (start + i * step) % candidates.length;
|
|
4415
|
+
const candidate = candidates[(offset + candidates.length) % candidates.length];
|
|
4416
|
+
if (isFocusableCandidate(candidate, container)) {
|
|
4417
|
+
return candidate;
|
|
4418
|
+
}
|
|
4419
|
+
}
|
|
4420
|
+
return null;
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4423
|
+
|
|
4424
|
+
|
|
4425
|
+
|
|
4426
|
+
|
|
4427
|
+
|
|
4428
|
+
function indexOfInnermostContaining(candidates, from) {
|
|
4429
|
+
for (let i = candidates.length - 1; i >= 0; i--) {
|
|
4430
|
+
if (composedContains(candidates[i], from)) {
|
|
4431
|
+
return i;
|
|
4432
|
+
}
|
|
4433
|
+
}
|
|
4434
|
+
return -1;
|
|
4435
|
+
}
|
|
4381
4436
|
const FOCUSABLE_LOCAL_NAMES = new Set(Object.keys(FOCUSABLE_LOCAL_NAME_QUALIFIERS));
|
|
4382
4437
|
|
|
4383
4438
|
|
|
@@ -7410,5 +7465,5 @@ function runVirtualizedNavigatorBridge(deps) {
|
|
|
7410
7465
|
|
|
7411
7466
|
|
|
7412
7467
|
|
|
7413
|
-
export { Collection, DRAG_DEAD_ZONE_PX, DateFieldEngine, FLICK_STALE_VELOCITY_MS, FLICK_VELOCITY_PX_PER_MS, FOR_DATE_ADAPTER, FOR_FIELDSET_CONTEXT, FOR_FIELD_CONTEXT, FOR_HOST_ROVING_CONTEXT, FOR_ID_SALT, FOR_TIME_VALUE_SOURCE, ForDateTimeLiteralBase, ForDateTimeSegmentBase, ForVisuallyHidden, FormUiControlBase, IdGenerator, LabelCache, LiveAnnouncer, MODAL_EXEMPT_ATTRIBUTE, MODAL_PEER_ATTRIBUTE, PreviewController, RangeFieldComposer, RangeSelectionEngine, RovingTabindex, TABLE_REGISTRATION_CONTEXT, TABLE_ROW_REGISTRATION_CONTEXT, TextValueControlBase, TimeFieldEngine, VirtualizedNavigator, accessibleTextContent, adoptHostId, afterNextRenderCancellable, assertInputBound, assertRootContext, assertTimeCapable, attachSwipeDismiss, clamp, clampPreviewPosition, clampToBounds, compareDateOf, composeWithTime, composedClosest, composedContains, composedParentElement, createDefaults, createFormatterCache, createKeyboardDragMediator, createPointerDragSession, createPointerSuppression, createSingleSlot, createTemplatePreview, createVetoableEvent, createVetoableNativeEvent, decimalPlaces, defaultItemToFormValue, emitVetoableEvent, emitVetoableNativeEvent, findFirstFocusable, findTypeaheadMatch, firstEnabledHandle, firstEnabledHost, flickVelocity, foldTypeaheadText, formatFortyMessage, fortyError, fortyWarn, hostAriaLabel, hostButtonType, hostDescribedBy, hostId, hostLabelledBy, injectDateAdapter, injectElementSize, injectFieldWiring, injectFocusTrap, injectHasFocusableContent, injectHiddenInput, injectMediaQuery, injectPauseController, injectPrefersReducedMotion, injectSyntheticActivation, injectTextDirection, injectTypeahead, isDragLiftKey, isHoverCapablePointer, isInArray, isNonTouchPointer, isRangeSelectShortcut, isScrollableAtEdge, isUnset, lastEnabledHandle, lastEnabledHost, mirrorUnfocusedValue, moveGridIndex, moveIndex, nextEnabledHandle, orphanContextError, provideForIdSalt, reflectDisabled, registerA11yDescription, registerA11yName, registerHandle, resolveActiveElement, resolveBoundaryElement, resolveConfigClass, resolveDropTarget, resolveEventTarget, resolveGridNavigation, resolveHostId, resolveLiftedDragControl, resolveListNavigation, resolveListTypeahead, resolveScrubReorder, resolveTreeExpandCollapse, resolveTreegridExpandCollapse, roundToDecimals, roundToStepPrecision, rovingListTarget, rovingTabStop, runVirtualizedNavigatorBridge, secondsOfDay, selectionTabStop, serializeISODate, serializeISOTime, singleSelected, snapToStep, stepOnGrid, throwUnsupportedVirtualizedRangeSelect, throwUnsupportedVirtualizedSelectionFollowsFocus, timeSentinel, toggleInArray, translateWindowReorder, unresolvedRootError, unsetInput };
|
|
7468
|
+
export { Collection, DRAG_DEAD_ZONE_PX, DateFieldEngine, FLICK_STALE_VELOCITY_MS, FLICK_VELOCITY_PX_PER_MS, FOR_DATE_ADAPTER, FOR_FIELDSET_CONTEXT, FOR_FIELD_CONTEXT, FOR_HOST_ROVING_CONTEXT, FOR_ID_SALT, FOR_TIME_VALUE_SOURCE, ForDateTimeLiteralBase, ForDateTimeSegmentBase, ForVisuallyHidden, FormUiControlBase, IdGenerator, LabelCache, LiveAnnouncer, MODAL_EXEMPT_ATTRIBUTE, MODAL_PEER_ATTRIBUTE, PreviewController, RangeFieldComposer, RangeSelectionEngine, RovingTabindex, TABLE_REGISTRATION_CONTEXT, TABLE_ROW_REGISTRATION_CONTEXT, TextValueControlBase, TimeFieldEngine, VirtualizedNavigator, accessibleTextContent, adoptHostId, afterNextRenderCancellable, assertInputBound, assertRootContext, assertTimeCapable, attachSwipeDismiss, clamp, clampPreviewPosition, clampToBounds, compareDateOf, composeWithTime, composedClosest, composedContains, composedParentElement, createDefaults, createFormatterCache, createKeyboardDragMediator, createPointerDragSession, createPointerSuppression, createSingleSlot, createTemplatePreview, createVetoableEvent, createVetoableNativeEvent, decimalPlaces, defaultItemToFormValue, emitVetoableEvent, emitVetoableNativeEvent, findFirstFocusable, findTypeaheadMatch, firstEnabledHandle, firstEnabledHost, flickVelocity, foldTypeaheadText, formatFortyMessage, fortyError, fortyWarn, hostAriaLabel, hostButtonType, hostDescribedBy, hostId, hostLabelledBy, injectDateAdapter, injectElementSize, injectFieldWiring, injectFocusTrap, injectHasFocusableContent, injectHiddenInput, injectMediaQuery, injectPauseController, injectPrefersReducedMotion, injectSyntheticActivation, injectTextDirection, injectTypeahead, isDragLiftKey, isHoverCapablePointer, isInArray, isNonTouchPointer, isRangeSelectShortcut, isScrollableAtEdge, isUnset, lastEnabledHandle, lastEnabledHost, mirrorUnfocusedValue, moveGridIndex, moveIndex, nextEnabledHandle, orphanContextError, provideForIdSalt, reflectDisabled, registerA11yDescription, registerA11yName, registerHandle, resolveActiveElement, resolveBoundaryElement, resolveConfigClass, resolveDropTarget, resolveEventTarget, resolveGridNavigation, resolveHostId, resolveLiftedDragControl, resolveListNavigation, resolveListTypeahead, resolveScrubReorder, resolveTreeExpandCollapse, resolveTreegridExpandCollapse, roundToDecimals, roundToStepPrecision, rovingListTarget, rovingTabStop, runVirtualizedNavigatorBridge, secondsOfDay, selectionTabStop, serializeISODate, serializeISOTime, singleSelected, snapToStep, stepFocusableCycle, stepOnGrid, throwUnsupportedVirtualizedRangeSelect, throwUnsupportedVirtualizedSelectionFollowsFocus, timeSentinel, toggleInArray, translateWindowReorder, unresolvedRootError, unsetInput };
|
|
7414
7469
|
//# sourceMappingURL=forty-cdk-core.mjs.map
|