foldkit-primitives 0.15.0 → 0.15.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/dist/dom/index.d.mts +9 -1
- package/dist/dom/index.d.mts.map +1 -1
- package/dist/dom/index.mjs +40 -5
- package/dist/dom/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/interaction/index.d.mts +37 -2
- package/dist/interaction/index.d.mts.map +1 -1
- package/dist/interaction/index.mjs +45 -12
- package/dist/interaction/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Coordinates, FullscreenMessage, Geolocation, GeolocationMessage, GeolocationModel, LiveStream, LiveStreamService, MediaDevice, MediaDevicesHandle, MediaDevicesMessage, MediaDevicesModel, MediaStreamConstraints, MediaStreamHandle, MediaStreamMessage, MediaStreamModel, MediaTrackHandle, PermissionState, PermissionStatusHandle, PermissionsHandle, PermissionsMessage, PermissionsModel, Watch, WatchService, enterFullscreen, exitFullscreen, fullscreenChanges, mediaDevices, mediaStream, permissions } from "./device/index.mjs";
|
|
2
2
|
import { A as Moved, C as TargetPressed, D as Move, E as Fact, M as ScrollLock, N as FocusScope, O as MoveEnded, P as tabbableWithin, S as TargetHovered, T as targetOf, _ as HOLD_TO_DRAG_MS, a as TextEdited, b as zoneOf, c as DRAG_THRESHOLD, d as DragFact, f as DragPlace, g as HOLD_SLOP, h as DraggedOver, i as TextCommitted, j as HideOutside, k as MoveStarted, l as DragCancelled, m as DragZone, n as EditableText, o as TextFact, p as DragStarted, r as TextCancelled, s as textOf, t as EditAsked, u as DragDropped, v as PointerDrag, w as Targets, x as TargetFact, y as boxOf } from "./editable-text-1D31qthY.mjs";
|
|
3
|
-
import { Autofocus, ClipboardMessage, ClipboardReadMessage, FLUID_HOVER_ATTRIBUTE, FLUID_LIT_ATTRIBUTE, FLUID_PRESS_ATTRIBUTE, FluidAxis, FluidHover, Focused, FollowTabStop, ImageDecodeMessage, ImageSource, Input, InputMask, KEYBOARD_INSET, KeepInView, KeepScrollOptions, KeyboardInset, Measure, NO_SWIPE, PointerFact, PointerMoved, PointerPoint, PointerPosition, PointerPressed, PointerReleased, Rect, SCROLL_BAR_ATTRIBUTE, SCROLL_OVERLAID_ATTRIBUTE, SETTLE_QUIET, SWIPE_WINDOW, ScriptMessage, ScrollBars, ScrollSettle, ScrollSettled, ShareData, ShareMessage, Swipe, SwipeEnded, SwipeFact, SwipeStarted, Swiped, TRACK_TARGET_ATTRIBUTE, TrackBox, TrackedTarget, applyMask, canScroll, copyText, cornerRadius, decodeImage, fluidHovered, keepScroll, keyboardInset, loadScript, measurePaddingBox, measured, paddingBoxOf, pointedLinks, readText, scrollThumb, share, trackedBox, velocityOf } from "./dom/index.mjs";
|
|
3
|
+
import { Autofocus, ClipboardMessage, ClipboardReadMessage, FLUID_HELD_ATTRIBUTE, FLUID_HOVER_ATTRIBUTE, FLUID_LIT_ATTRIBUTE, FLUID_PRESS_ATTRIBUTE, FluidAxis, FluidHover, Focused, FollowTabStop, ImageDecodeMessage, ImageSource, Input, InputMask, KEYBOARD_INSET, KeepInView, KeepScrollOptions, KeyboardInset, Measure, NO_SWIPE, PointerFact, PointerMoved, PointerPoint, PointerPosition, PointerPressed, PointerReleased, Rect, SCROLL_BAR_ATTRIBUTE, SCROLL_OVERLAID_ATTRIBUTE, SETTLE_QUIET, SWIPE_WINDOW, ScriptMessage, ScrollBars, ScrollSettle, ScrollSettled, ShareData, ShareMessage, Swipe, SwipeEnded, SwipeFact, SwipeStarted, Swiped, TRACK_TARGET_ATTRIBUTE, TrackBox, TrackedTarget, applyMask, canScroll, copyText, cornerRadius, decodeImage, fluidHovered, keepScroll, keyboardInset, loadScript, measurePaddingBox, measured, paddingBoxOf, pointedLinks, readText, scrollThumb, share, trackedBox, velocityOf } from "./dom/index.mjs";
|
|
4
4
|
import { a as modalityOfKey, i as Modality, n as InputModalityMessage, r as InputModalityModel, t as InputModality } from "./input-modality-BY-bSrEc.mjs";
|
|
5
5
|
import { ActiveElementMessage, Idle, IdleMessage, IdleModel, KeyPress, KeyboardMessage, PointerMessage, ScrollMessage, Visibility, VisibilityMessage, VisibilityModel, WindowSize, WindowSizeMessage, WindowSizeModel, activeElementEvents, keyboardEvents, matchHotkey, pointerEvents, scrollEvents } from "./events/index.mjs";
|
|
6
6
|
import { Breakpoints, BreakpointsMessage, BreakpointsModel, MediaQuery, MediaQueryMessage, MediaQueryModel, Platform, PlatformHints, PrefersDark, PrefersReducedMotion, breakpointFor, isBrowser, isServer, platformFromUA } from "./media/index.mjs";
|
|
@@ -9,4 +9,4 @@ import { Acquired, AcquiredSource, BroadcastChannelHandle, BroadcastMessage, Con
|
|
|
9
9
|
import { Bounds, Intersection, IntersectionChanged, Measured, Mutated, Mutation, Resize, Resized } from "./observers/index.mjs";
|
|
10
10
|
import { History, HistoryModel, Locale, LocaleMessage, LocaleModel, MasonryPlacement, MeasureRow, Pagination, PaginationMessage, PaginationModel, RowMeasured, SelectionSet, SelectionSetMessage, SelectionSetModel, Viewport, ViewportScrolled, Virtual, VirtualLayout, VirtualMessage, VirtualModel, VirtualWindow, canRedo, canUndo, distanceToEnd, history, isAtEnd, isSelected, masonry, offset, offsetFor, pageCount, range, stickyHeader, totalHeight, visibleRange, windowFor } from "./state/index.mjs";
|
|
11
11
|
import { Interval, IntervalMessage, IntervalModel, Throttle, ThrottleMessage, ThrottleModel, Throttled, Timer, TimerMessage, TimerModel, debounce, formatRelativeTime, ticks } from "./time/index.mjs";
|
|
12
|
-
export { Acquired, AcquiredSource, ActiveElementMessage, Autofocus, Bounds, Breakpoints, BreakpointsMessage, BreakpointsModel, BroadcastChannelHandle, BroadcastMessage, ClipboardMessage, ClipboardReadMessage, Conversation, ConversationHandler, Coordinates, DRAG_THRESHOLD, DragCancelled, DragDropped, DragFact, DragPlace, DragStarted, DragZone, DraggedOver, EditAsked, EditableText, FLUID_HOVER_ATTRIBUTE, FLUID_LIT_ATTRIBUTE, FLUID_PRESS_ATTRIBUTE, Fact, FluidAxis, FluidHover, FocusScope, Focused, FollowTabStop, FullscreenMessage, Geolocation, GeolocationMessage, GeolocationModel, HOLD_SLOP, HOLD_TO_DRAG_MS, HideOutside, History, HistoryModel, Idle, IdleMessage, IdleModel, ImageDecodeMessage, ImageSource, Input, InputMask, InputModality, InputModalityMessage, InputModalityModel, Intersection, IntersectionChanged, Interval, IntervalMessage, IntervalModel, KEYBOARD_INSET, KeepInView, KeepScrollOptions, KeyPress, KeyboardInset, KeyboardMessage, LiveStream, LiveStreamService, Locale, LocaleMessage, LocaleModel, MasonryPlacement, Measure, MeasureRow, Measured, MediaDevice, MediaDevicesHandle, MediaDevicesMessage, MediaDevicesModel, MediaQuery, MediaQueryMessage, MediaQueryModel, MediaStreamConstraints, MediaStreamHandle, MediaStreamMessage, MediaStreamModel, MediaTrackHandle, Modality, motion_d_exports as Motion, Move, MoveEnded, MoveStarted, Moved, Mutated, Mutation, NO_SWIPE, Online, OnlineMessage, OnlineModel, Pagination, PaginationMessage, PaginationModel, PermissionState, PermissionStatusHandle, PermissionsHandle, PermissionsMessage, PermissionsModel, Platform, PlatformHints, PointerDrag, PointerFact, PointerMessage, PointerMoved, PointerPoint, PointerPosition, PointerPressed, PointerReleased, PrefersDark, PrefersReducedMotion, Presence, PresenceMessage, PresenceModel, Rect, Resize, Resized, RowMeasured, SCROLL_BAR_ATTRIBUTE, SCROLL_OVERLAID_ATTRIBUTE, SETTLE_QUIET, SWIPE_WINDOW, ScriptMessage, ScrollBars, ScrollLock, ScrollMessage, ScrollSettle, ScrollSettled, SelectionSet, SelectionSetMessage, SelectionSetModel, ShareData, ShareMessage, SharedHost, SharedHostConnection, SharedHostOptions, Socket, SocketHandle, SocketService, SocketView, Source, SourceHandle, SourceService, Spring, SpringMessage, SpringModel, SseMessage, SseModel, SseView, StartHost, Swipe, SwipeEnded, SwipeFact, SwipeStarted, Swiped, TRACK_TARGET_ATTRIBUTE, TargetFact, TargetHovered, TargetPressed, Targets, TextCancelled, TextCommitted, TextEdited, TextFact, Throttle, ThrottleMessage, ThrottleModel, Throttled, Timer, TimerMessage, TimerModel, TrackBox, TrackedTarget, Tween, TweenMessage, TweenModel, Viewport, ViewportScrolled, Virtual, VirtualLayout, VirtualMessage, VirtualModel, VirtualWindow, Visibility, VisibilityMessage, VisibilityModel, Watch, WatchService, WebSocketMessage, WebSocketModel, WindowSize, WindowSizeMessage, WindowSizeModel, activeElementEvents, applyMask, boxOf, breakpointFor, broadcastMessages, canRedo, canScroll, canUndo, copyText, cornerRadius, debounce, decodeImage, distanceToEnd, enterFullscreen, exitFullscreen, fluidHovered, formatRelativeTime, fullscreenChanges, history, isAtEnd, isBrowser, isLive, isOpen, isSelected, isServer, isVisible, keepScroll, keyboardEvents, keyboardInset, loadScript, masonry, matchHotkey, measurePaddingBox, measured, mediaDevices, mediaStream, modalityOfKey, offset, offsetFor, paddingBoxOf, pageCount, permissions, platformFromUA, pointedLinks, pointerEvents, postBroadcast, range, readText, scrollEvents, scrollThumb, share, sse, stickyHeader, tabbableWithin, targetOf, textOf, ticks, totalHeight, trackedBox, velocityOf, viewOf, viewOfSse, visibleRange, websocket, windowFor, zoneOf };
|
|
12
|
+
export { Acquired, AcquiredSource, ActiveElementMessage, Autofocus, Bounds, Breakpoints, BreakpointsMessage, BreakpointsModel, BroadcastChannelHandle, BroadcastMessage, ClipboardMessage, ClipboardReadMessage, Conversation, ConversationHandler, Coordinates, DRAG_THRESHOLD, DragCancelled, DragDropped, DragFact, DragPlace, DragStarted, DragZone, DraggedOver, EditAsked, EditableText, FLUID_HELD_ATTRIBUTE, FLUID_HOVER_ATTRIBUTE, FLUID_LIT_ATTRIBUTE, FLUID_PRESS_ATTRIBUTE, Fact, FluidAxis, FluidHover, FocusScope, Focused, FollowTabStop, FullscreenMessage, Geolocation, GeolocationMessage, GeolocationModel, HOLD_SLOP, HOLD_TO_DRAG_MS, HideOutside, History, HistoryModel, Idle, IdleMessage, IdleModel, ImageDecodeMessage, ImageSource, Input, InputMask, InputModality, InputModalityMessage, InputModalityModel, Intersection, IntersectionChanged, Interval, IntervalMessage, IntervalModel, KEYBOARD_INSET, KeepInView, KeepScrollOptions, KeyPress, KeyboardInset, KeyboardMessage, LiveStream, LiveStreamService, Locale, LocaleMessage, LocaleModel, MasonryPlacement, Measure, MeasureRow, Measured, MediaDevice, MediaDevicesHandle, MediaDevicesMessage, MediaDevicesModel, MediaQuery, MediaQueryMessage, MediaQueryModel, MediaStreamConstraints, MediaStreamHandle, MediaStreamMessage, MediaStreamModel, MediaTrackHandle, Modality, motion_d_exports as Motion, Move, MoveEnded, MoveStarted, Moved, Mutated, Mutation, NO_SWIPE, Online, OnlineMessage, OnlineModel, Pagination, PaginationMessage, PaginationModel, PermissionState, PermissionStatusHandle, PermissionsHandle, PermissionsMessage, PermissionsModel, Platform, PlatformHints, PointerDrag, PointerFact, PointerMessage, PointerMoved, PointerPoint, PointerPosition, PointerPressed, PointerReleased, PrefersDark, PrefersReducedMotion, Presence, PresenceMessage, PresenceModel, Rect, Resize, Resized, RowMeasured, SCROLL_BAR_ATTRIBUTE, SCROLL_OVERLAID_ATTRIBUTE, SETTLE_QUIET, SWIPE_WINDOW, ScriptMessage, ScrollBars, ScrollLock, ScrollMessage, ScrollSettle, ScrollSettled, SelectionSet, SelectionSetMessage, SelectionSetModel, ShareData, ShareMessage, SharedHost, SharedHostConnection, SharedHostOptions, Socket, SocketHandle, SocketService, SocketView, Source, SourceHandle, SourceService, Spring, SpringMessage, SpringModel, SseMessage, SseModel, SseView, StartHost, Swipe, SwipeEnded, SwipeFact, SwipeStarted, Swiped, TRACK_TARGET_ATTRIBUTE, TargetFact, TargetHovered, TargetPressed, Targets, TextCancelled, TextCommitted, TextEdited, TextFact, Throttle, ThrottleMessage, ThrottleModel, Throttled, Timer, TimerMessage, TimerModel, TrackBox, TrackedTarget, Tween, TweenMessage, TweenModel, Viewport, ViewportScrolled, Virtual, VirtualLayout, VirtualMessage, VirtualModel, VirtualWindow, Visibility, VisibilityMessage, VisibilityModel, Watch, WatchService, WebSocketMessage, WebSocketModel, WindowSize, WindowSizeMessage, WindowSizeModel, activeElementEvents, applyMask, boxOf, breakpointFor, broadcastMessages, canRedo, canScroll, canUndo, copyText, cornerRadius, debounce, decodeImage, distanceToEnd, enterFullscreen, exitFullscreen, fluidHovered, formatRelativeTime, fullscreenChanges, history, isAtEnd, isBrowser, isLive, isOpen, isSelected, isServer, isVisible, keepScroll, keyboardEvents, keyboardInset, loadScript, masonry, matchHotkey, measurePaddingBox, measured, mediaDevices, mediaStream, modalityOfKey, offset, offsetFor, paddingBoxOf, pageCount, permissions, platformFromUA, pointedLinks, pointerEvents, postBroadcast, range, readText, scrollEvents, scrollThumb, share, sse, stickyHeader, tabbableWithin, targetOf, textOf, ticks, totalHeight, trackedBox, velocityOf, viewOf, viewOfSse, visibleRange, websocket, windowFor, zoneOf };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as FocusScope, C as targetOf, D as Moved, E as MoveStarted, O as HideOutside, S as Targets, T as MoveEnded, _ as PointerDrag, a as TextCommitted, b as TargetHovered, c as DRAG_THRESHOLD, d as DragPlace, f as DragStarted, g as HOLD_TO_DRAG_MS, h as HOLD_SLOP, i as TextCancelled, j as tabbableWithin, k as ScrollLock, l as DragCancelled, m as DraggedOver, n as EditAsked, o as TextEdited, p as DragZone, r as EditableText, s as textOf, t as FollowTabStop, u as DragDropped, v as boxOf, w as Move, x as TargetPressed, y as zoneOf } from "./follow-tab-stop-Caog2qg1.mjs";
|
|
2
|
-
import { Autofocus, ClipboardMessage, ClipboardReadMessage, FLUID_HOVER_ATTRIBUTE, FLUID_LIT_ATTRIBUTE, FLUID_PRESS_ATTRIBUTE, FluidHover, Focused, ImageDecodeMessage, Input, InputMask, KEYBOARD_INSET, KeepInView, KeyboardInset, Measure, NO_SWIPE, PointerMoved, PointerPoint, PointerPosition, PointerPressed, PointerReleased, SCROLL_BAR_ATTRIBUTE, SCROLL_OVERLAID_ATTRIBUTE, SETTLE_QUIET, SWIPE_WINDOW, ScriptMessage, ScrollBars, ScrollSettle, ScrollSettled, ShareData, ShareMessage, Swipe, SwipeEnded, SwipeStarted, Swiped, TRACK_TARGET_ATTRIBUTE, TrackBox, TrackedTarget, applyMask, canScroll, copyText, cornerRadius, decodeImage, fluidHovered, keepScroll, keyboardInset, loadScript, measurePaddingBox, measured, paddingBoxOf, pointedLinks, readText, scrollThumb, share, trackedBox, velocityOf } from "./dom/index.mjs";
|
|
2
|
+
import { Autofocus, ClipboardMessage, ClipboardReadMessage, FLUID_HELD_ATTRIBUTE, FLUID_HOVER_ATTRIBUTE, FLUID_LIT_ATTRIBUTE, FLUID_PRESS_ATTRIBUTE, FluidHover, Focused, ImageDecodeMessage, Input, InputMask, KEYBOARD_INSET, KeepInView, KeyboardInset, Measure, NO_SWIPE, PointerMoved, PointerPoint, PointerPosition, PointerPressed, PointerReleased, SCROLL_BAR_ATTRIBUTE, SCROLL_OVERLAID_ATTRIBUTE, SETTLE_QUIET, SWIPE_WINDOW, ScriptMessage, ScrollBars, ScrollSettle, ScrollSettled, ShareData, ShareMessage, Swipe, SwipeEnded, SwipeStarted, Swiped, TRACK_TARGET_ATTRIBUTE, TrackBox, TrackedTarget, applyMask, canScroll, copyText, cornerRadius, decodeImage, fluidHovered, keepScroll, keyboardInset, loadScript, measurePaddingBox, measured, paddingBoxOf, pointedLinks, readText, scrollThumb, share, trackedBox, velocityOf } from "./dom/index.mjs";
|
|
3
3
|
import { Coordinates, FullscreenMessage, Geolocation, GeolocationMessage, GeolocationModel, LiveStream, MediaDevice, MediaDevicesMessage, MediaDevicesModel, MediaStreamMessage, MediaStreamModel, PermissionState, PermissionsMessage, PermissionsModel, Watch, enterFullscreen, exitFullscreen, fullscreenChanges, mediaDevices, mediaStream, permissions } from "./device/index.mjs";
|
|
4
4
|
import { a as modalityOfKey, i as Modality, n as InputModalityMessage, r as InputModalityModel, t as InputModality } from "./input-modality-BXD383jg.mjs";
|
|
5
5
|
import { ActiveElementMessage, Idle, IdleMessage, IdleModel, KeyboardMessage, PointerMessage, ScrollMessage, Visibility, VisibilityMessage, VisibilityModel, WindowSize, WindowSizeMessage, WindowSizeModel, activeElementEvents, keyboardEvents, matchHotkey, pointerEvents, scrollEvents } from "./events/index.mjs";
|
|
@@ -9,4 +9,4 @@ import { BroadcastMessage, Online, OnlineMessage, OnlineModel, SharedHost, Socke
|
|
|
9
9
|
import { Bounds, Intersection, IntersectionChanged, Measured, Mutated, Mutation, Resize, Resized } from "./observers/index.mjs";
|
|
10
10
|
import { History, HistoryModel, Locale, LocaleMessage, LocaleModel, MeasureRow, Pagination, PaginationMessage, PaginationModel, RowMeasured, SelectionSet, SelectionSetMessage, SelectionSetModel, Viewport, ViewportScrolled, Virtual, VirtualMessage, VirtualModel, canRedo, canUndo, distanceToEnd, history, isAtEnd, isSelected, masonry, offset, offsetFor, pageCount, range, stickyHeader, totalHeight, visibleRange, windowFor } from "./state/index.mjs";
|
|
11
11
|
import { Interval, IntervalMessage, IntervalModel, Throttle, ThrottleMessage, ThrottleModel, Throttled, Timer, TimerMessage, TimerModel, debounce, formatRelativeTime, ticks } from "./time/index.mjs";
|
|
12
|
-
export { ActiveElementMessage, Autofocus, Bounds, Breakpoints, BreakpointsMessage, BreakpointsModel, BroadcastMessage, ClipboardMessage, ClipboardReadMessage, Coordinates, DRAG_THRESHOLD, DragCancelled, DragDropped, DragPlace, DragStarted, DragZone, DraggedOver, EditAsked, EditableText, FLUID_HOVER_ATTRIBUTE, FLUID_LIT_ATTRIBUTE, FLUID_PRESS_ATTRIBUTE, FluidHover, FocusScope, Focused, FollowTabStop, FullscreenMessage, Geolocation, GeolocationMessage, GeolocationModel, HOLD_SLOP, HOLD_TO_DRAG_MS, HideOutside, History, HistoryModel, Idle, IdleMessage, IdleModel, ImageDecodeMessage, Input, InputMask, InputModality, InputModalityMessage, InputModalityModel, Intersection, IntersectionChanged, Interval, IntervalMessage, IntervalModel, KEYBOARD_INSET, KeepInView, KeyboardInset, KeyboardMessage, LiveStream, Locale, LocaleMessage, LocaleModel, Measure, MeasureRow, Measured, MediaDevice, MediaDevicesMessage, MediaDevicesModel, MediaQuery, MediaQueryMessage, MediaQueryModel, MediaStreamMessage, MediaStreamModel, Modality, motion_exports as Motion, Move, MoveEnded, MoveStarted, Moved, Mutated, Mutation, NO_SWIPE, Online, OnlineMessage, OnlineModel, Pagination, PaginationMessage, PaginationModel, PermissionState, PermissionsMessage, PermissionsModel, Platform, PointerDrag, PointerMessage, PointerMoved, PointerPoint, PointerPosition, PointerPressed, PointerReleased, PrefersDark, PrefersReducedMotion, Presence, PresenceMessage, PresenceModel, Resize, Resized, RowMeasured, SCROLL_BAR_ATTRIBUTE, SCROLL_OVERLAID_ATTRIBUTE, SETTLE_QUIET, SWIPE_WINDOW, ScriptMessage, ScrollBars, ScrollLock, ScrollMessage, ScrollSettle, ScrollSettled, SelectionSet, SelectionSetMessage, SelectionSetModel, ShareData, ShareMessage, SharedHost, Socket, SocketView, Source, Spring, SpringMessage, SpringModel, SseMessage, SseModel, SseView, Swipe, SwipeEnded, SwipeStarted, Swiped, TRACK_TARGET_ATTRIBUTE, TargetHovered, TargetPressed, Targets, TextCancelled, TextCommitted, TextEdited, Throttle, ThrottleMessage, ThrottleModel, Throttled, Timer, TimerMessage, TimerModel, TrackBox, TrackedTarget, Tween, TweenMessage, TweenModel, Viewport, ViewportScrolled, Virtual, VirtualMessage, VirtualModel, Visibility, VisibilityMessage, VisibilityModel, Watch, WebSocketMessage, WebSocketModel, WindowSize, WindowSizeMessage, WindowSizeModel, activeElementEvents, applyMask, boxOf, breakpointFor, broadcastMessages, canRedo, canScroll, canUndo, copyText, cornerRadius, debounce, decodeImage, distanceToEnd, enterFullscreen, exitFullscreen, fluidHovered, formatRelativeTime, fullscreenChanges, history, isAtEnd, isBrowser, isLive, isOpen, isSelected, isServer, isVisible, keepScroll, keyboardEvents, keyboardInset, loadScript, masonry, matchHotkey, measurePaddingBox, measured, mediaDevices, mediaStream, modalityOfKey, offset, offsetFor, paddingBoxOf, pageCount, permissions, platformFromUA, pointedLinks, pointerEvents, postBroadcast, range, readText, scrollEvents, scrollThumb, share, sse, stickyHeader, tabbableWithin, targetOf, textOf, ticks, totalHeight, trackedBox, velocityOf, viewOf, viewOfSse, visibleRange, websocket, windowFor, zoneOf };
|
|
12
|
+
export { ActiveElementMessage, Autofocus, Bounds, Breakpoints, BreakpointsMessage, BreakpointsModel, BroadcastMessage, ClipboardMessage, ClipboardReadMessage, Coordinates, DRAG_THRESHOLD, DragCancelled, DragDropped, DragPlace, DragStarted, DragZone, DraggedOver, EditAsked, EditableText, FLUID_HELD_ATTRIBUTE, FLUID_HOVER_ATTRIBUTE, FLUID_LIT_ATTRIBUTE, FLUID_PRESS_ATTRIBUTE, FluidHover, FocusScope, Focused, FollowTabStop, FullscreenMessage, Geolocation, GeolocationMessage, GeolocationModel, HOLD_SLOP, HOLD_TO_DRAG_MS, HideOutside, History, HistoryModel, Idle, IdleMessage, IdleModel, ImageDecodeMessage, Input, InputMask, InputModality, InputModalityMessage, InputModalityModel, Intersection, IntersectionChanged, Interval, IntervalMessage, IntervalModel, KEYBOARD_INSET, KeepInView, KeyboardInset, KeyboardMessage, LiveStream, Locale, LocaleMessage, LocaleModel, Measure, MeasureRow, Measured, MediaDevice, MediaDevicesMessage, MediaDevicesModel, MediaQuery, MediaQueryMessage, MediaQueryModel, MediaStreamMessage, MediaStreamModel, Modality, motion_exports as Motion, Move, MoveEnded, MoveStarted, Moved, Mutated, Mutation, NO_SWIPE, Online, OnlineMessage, OnlineModel, Pagination, PaginationMessage, PaginationModel, PermissionState, PermissionsMessage, PermissionsModel, Platform, PointerDrag, PointerMessage, PointerMoved, PointerPoint, PointerPosition, PointerPressed, PointerReleased, PrefersDark, PrefersReducedMotion, Presence, PresenceMessage, PresenceModel, Resize, Resized, RowMeasured, SCROLL_BAR_ATTRIBUTE, SCROLL_OVERLAID_ATTRIBUTE, SETTLE_QUIET, SWIPE_WINDOW, ScriptMessage, ScrollBars, ScrollLock, ScrollMessage, ScrollSettle, ScrollSettled, SelectionSet, SelectionSetMessage, SelectionSetModel, ShareData, ShareMessage, SharedHost, Socket, SocketView, Source, Spring, SpringMessage, SpringModel, SseMessage, SseModel, SseView, Swipe, SwipeEnded, SwipeStarted, Swiped, TRACK_TARGET_ATTRIBUTE, TargetHovered, TargetPressed, Targets, TextCancelled, TextCommitted, TextEdited, Throttle, ThrottleMessage, ThrottleModel, Throttled, Timer, TimerMessage, TimerModel, TrackBox, TrackedTarget, Tween, TweenMessage, TweenModel, Viewport, ViewportScrolled, Virtual, VirtualMessage, VirtualModel, Visibility, VisibilityMessage, VisibilityModel, Watch, WebSocketMessage, WebSocketModel, WindowSize, WindowSizeMessage, WindowSizeModel, activeElementEvents, applyMask, boxOf, breakpointFor, broadcastMessages, canRedo, canScroll, canUndo, copyText, cornerRadius, debounce, decodeImage, distanceToEnd, enterFullscreen, exitFullscreen, fluidHovered, formatRelativeTime, fullscreenChanges, history, isAtEnd, isBrowser, isLive, isOpen, isSelected, isServer, isVisible, keepScroll, keyboardEvents, keyboardInset, loadScript, masonry, matchHotkey, measurePaddingBox, measured, mediaDevices, mediaStream, modalityOfKey, offset, offsetFor, paddingBoxOf, pageCount, permissions, platformFromUA, pointedLinks, pointerEvents, postBroadcast, range, readText, scrollEvents, scrollThumb, share, sse, stickyHeader, tabbableWithin, targetOf, textOf, ticks, totalHeight, trackedBox, velocityOf, viewOf, viewOfSse, visibleRange, websocket, windowFor, zoneOf };
|
|
@@ -2,9 +2,44 @@ import { A as Moved, C as TargetPressed, D as Move, E as Fact$1, M as ScrollLock
|
|
|
2
2
|
import { a as modalityOfKey, i as Modality, r as InputModalityModel, t as InputModality } from "../input-modality-BY-bSrEc.mjs";
|
|
3
3
|
import { Option, Schema } from "effect";
|
|
4
4
|
import * as Mount from "foldkit/mount";
|
|
5
|
+
import { MountAction } from "foldkit/mount";
|
|
5
6
|
import { Bundle, Declared } from "foldkit-bundle";
|
|
6
|
-
import { Behavior, Behaviors, NamedBehavior, SlotItem } from "foldkit-mixins";
|
|
7
|
+
import { Behavior, Behaviors, NamedBehavior, SlotAttributes, SlotItem, SlotRequirements } from "foldkit-mixins";
|
|
7
8
|
import { Attribute, Html, HtmlBuilder, KeyboardModifiers } from "foldkit/html";
|
|
9
|
+
declare namespace bundle_behavior_d_exports {
|
|
10
|
+
export { BundleBehavior, BundleBehaviorSpec, BundleMessageOf, BundleModelOf, BundleSlotOptions, fromBundle };
|
|
11
|
+
}
|
|
12
|
+
type BundleOf<D extends Declared<any, any>> = D extends Declared<infer B, any> ? B : never;
|
|
13
|
+
/** The Bundle's Model, which the parent's `Input` must hold at `declared.field`. */
|
|
14
|
+
type BundleModelOf<D extends Declared<any, any>> = Bundle.BundleParts<BundleOf<D>>['Model'];
|
|
15
|
+
/** The Bundle's Message, which `send` wraps for the parent. */
|
|
16
|
+
type BundleMessageOf<D extends Declared<any, any>> = Bundle.BundleParts<BundleOf<D>>['Message'];
|
|
17
|
+
interface BundleSlotOptions<D extends Declared<any, any>, Input, ParentMessage> {
|
|
18
|
+
readonly requires?: SlotRequirements;
|
|
19
|
+
readonly attributes?: (context: {
|
|
20
|
+
readonly input: Input;
|
|
21
|
+
readonly h: HtmlBuilder<ParentMessage>;
|
|
22
|
+
readonly item?: SlotItem;
|
|
23
|
+
/** The Bundle's Message as the parent's: what a handler the Behavior writes takes. */
|
|
24
|
+
readonly send: (message: BundleMessageOf<D>) => ParentMessage;
|
|
25
|
+
}) => SlotAttributes<ParentMessage>;
|
|
26
|
+
/** The Bundle's events, mounted on this slot and wrapped for the parent. */
|
|
27
|
+
readonly events?: MountAction<BundleMessageOf<D>, any>;
|
|
28
|
+
}
|
|
29
|
+
type BundleBehaviorSpec<D extends Declared<any, any>, Input, ParentMessage> = Readonly<Record<string, BundleSlotOptions<D, Input, ParentMessage>>>;
|
|
30
|
+
/**
|
|
31
|
+
* `fromBundle(declared)(slots)<Input, ParentMessage>(spec)` — a Behavior over
|
|
32
|
+
* `declared`, with every `events` mount and every `send` mapped through the
|
|
33
|
+
* placement's wrapper. `Input` must hold the Bundle's Model at the declared
|
|
34
|
+
* field, so attributes read the placed slice; the parent's `Message` includes
|
|
35
|
+
* the declared wrapper cases, so nothing can be sent outside it.
|
|
36
|
+
*/
|
|
37
|
+
declare const fromBundle: <D extends Declared<any, any>>(declared: D) => <Slots>(slots: Slots) => <Input extends { readonly [K in D['field']]: BundleModelOf<D>; }, ParentMessage>(spec: BundleBehaviorSpec<D, Input, ParentMessage>, options?: {
|
|
38
|
+
readonly name?: string;
|
|
39
|
+
}) => NamedBehavior<Slots, Input, ParentMessage>;
|
|
40
|
+
declare const BundleBehavior: {
|
|
41
|
+
readonly fromBundle: typeof fromBundle;
|
|
42
|
+
};
|
|
8
43
|
declare namespace dismiss_layer_d_exports {
|
|
9
44
|
export { BehaviorOptions$14 as BehaviorOptions, Dismiss, LAYER_ATTRIBUTE, Layer$1 as Layer, Message$9 as Message, Model$9 as Model, TRIGGER_ATTRIBUTE, behavior$14 as behavior, bundle$9 as bundle, layersOnPath, toDismiss };
|
|
10
45
|
}
|
|
@@ -1155,5 +1190,5 @@ interface BehaviorOptions<Input, Slots> {
|
|
|
1155
1190
|
*/
|
|
1156
1191
|
declare const behavior: <Field extends string>(declared: Declared<typeof bundle, Field>) => <Slots>(slots: Slots) => <Input extends { readonly [K in Field]: Model; }, ParentMessage>(options: BehaviorOptions<Input, Slots>) => Behavior.NamedBehavior<Slots, Input, ParentMessage>;
|
|
1157
1192
|
//#endregion
|
|
1158
|
-
export { dismiss_layer_d_exports as DismissLayer, editable_text_d_exports as EditableText, focus_scope_d_exports as FocusScope, focus_visible_d_exports as FocusVisible, grid_navigation_d_exports as GridNavigation, layers_d_exports as Layers, list_navigation_d_exports as ListNavigation, live_announce_d_exports as LiveAnnounce, long_press_d_exports as LongPress, move_d_exports as Move, overlay_d_exports as Overlay, placing_d_exports as Placing, pointer_drag_d_exports as PointerDrag, press_d_exports as Press, roving_tabindex_d_exports as RovingTabindex, selection_d_exports as Selection, targets_d_exports as Targets, tree_navigation_d_exports as TreeNavigation, typeahead_d_exports as Typeahead };
|
|
1193
|
+
export { bundle_behavior_d_exports as BundleBehavior, dismiss_layer_d_exports as DismissLayer, editable_text_d_exports as EditableText, focus_scope_d_exports as FocusScope, focus_visible_d_exports as FocusVisible, grid_navigation_d_exports as GridNavigation, layers_d_exports as Layers, list_navigation_d_exports as ListNavigation, live_announce_d_exports as LiveAnnounce, long_press_d_exports as LongPress, move_d_exports as Move, overlay_d_exports as Overlay, placing_d_exports as Placing, pointer_drag_d_exports as PointerDrag, press_d_exports as Press, roving_tabindex_d_exports as RovingTabindex, selection_d_exports as Selection, targets_d_exports as Targets, tree_navigation_d_exports as TreeNavigation, typeahead_d_exports as Typeahead };
|
|
1159
1194
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":["Layer","Model","Message","bundle","BehaviorOptions","behavior","BehaviorOptions","behavior","BehaviorOptions","behavior","BehaviorOptions","behavior","Model","Message","Args","bundle","MoveOptions","move","tabStop","BehaviorOptions","behavior","Model","Message","Args","bundle","RovingTabindex.Direction","move","BehaviorOptions","behavior","Model","Message","Args","bundle","Model","Message","Args","bundle","BehaviorOptions","RovingTabindex.Direction","RovingTabindex.MoveOptions","behavior","Model","Message","Args","bundle","BehaviorOptions","behavior","BehaviorOptions","Fact","behavior","dismissLayerBundle","Model","Message","Args","bundle","BehaviorOptions","behavior","Model","Message","Args","bundle","BehaviorOptions","behavior","BehaviorOptions","behavior","BehaviorOptions","behavior","Model","Message","Args","bundle","BehaviorOptions","behavior"],"sources":["../../src/interaction/dismiss-layer.ts","../../src/interaction/editable-text.ts","../../src/interaction/focus-scope.ts","../../src/interaction/focus-visible.ts","../../src/interaction/roving-tabindex.ts","../../src/interaction/grid-navigation.ts","../../src/interaction/layers.ts","../../src/interaction/live-announce.ts","../../src/interaction/list-navigation.ts","../../src/interaction/long-press.ts","../../src/interaction/move.ts","../../src/interaction/overlay.ts","../../src/interaction/press.ts","../../src/interaction/selection.ts","../../src/interaction/targets.ts","../../src/interaction/pointer-drag.ts","../../src/interaction/placing.ts","../../src/interaction/tree-navigation.ts","../../src/interaction/typeahead.ts"],"mappings":";;;;;;;;;;cAmBa;cACA;;cAKAA,SAAK,OAAA;;;;;;;KAONA,iBAAeA,QAAM;cAEpBC,SAAK,OAAA;;;;;;;;;;KAINA,iBAAeA,QAAM;cAEpBC,qCAAO;;;IAEL,QAAM,OAAA,OAAA,OAAA;;;;;;;IAAuB,QAAM,OAAA,OAAA,OAAA;;;IAC/B,QAAM,OAAA,OAAA,OAAA;;;;;;;;;KAEbA,mBAAiBA,UAAQ;cAExB,SAAO,OAAA;;;KACR,iBAAiB,QAAQ;;cAGxB,YAAS,QACZ,cAAcF,UAAM,QACpB,0BACP;cAsBUG,UAAM,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCN,eAAY,MAAU,cAAc,iBAAe;UA6C/CC,mBAAgB,OAAO;;WAE7B,aAAa;;WAEb,gBAAgB;WAChB,KAAK,OAAO;;WAEZ;;WAEA;;;;;;;;cASEC,cACV,sBAAoB,WAAa,gBAAgBF,UAAQ,YACzD,OAAK,OAAS,WACd,OAAO,eAAa,SACVC,mBAAgB,OAAO,WAC/B,SAAS,cAAc,OAAO,OAAO;;;;UCjKzBE,mBAAgB,OAAO;;WAE7B,iBAAiB;;WAEjB;;WAEA,YAAY,MAAM,aAAa;;cAG7BC,cACV,OAAK,OAAS,WACd,OAAO,eAAa,SACVD,mBAAgB,OAAO,mBAC/B,SAAS,cAAc,OAAO,OAAO;;;;UCxBzBE,mBAAgB;WACtB,iBAAiB;;WAEjB;;WAEA;;WAEA;;;;;;;;;cAUEC,cACV,OAAK,OAAS,WACd,OAAO,eAAa,SACVD,mBAAgB,WACxB,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1B,OAAI,MACT,cAAc,QAAM,wBACJ,aACX,WACA,mBAAiB,OACrBF,SAAK,MACNE,QAAI,8BAET;;cA6BU,UAAO,MAAU,cAAc,QAAM;UAKjCE,kBAAgB,OAAO;;WAE7B,iBAAiB;;WAEjB,YAAY;;WAEZ,OAAO,OAAO,UAAU,cAAc;;WAEtC,SAAS;WACT,aAAa,OAAO;;;;;;;;;;;cAqBlBC,aACV,sBAAoB,UAAY,gBAAgBF,UAAQ,QAAM,MAAQD,YACtE,OAAK,OAAS,WACd,0BAA0B,KAAK,QAAQF,YAAS,eAAa,SACnDI,kBAAgB,OAAO,WAC/B,SAAS,cAAc,OAAO,OAAO;;;;cCtN7B,OAAK,OAAA;;;;;;KAMN,eAAe,MAAM;cAEpB,mCAAO;;;IAET,MAAI,OAAA;;;;IAEF,YAAU,OAAA;;;;;KAIX,iBAAiB,QAAQ;cAExB,MAAI,OAAA;;sBAAJ,OAAA;;KAOD,cAAc,KAAK;cAElB,QAAM,OAAA;;;;;;;;;;;;;;;;;;;;;;cAuCN,QAAK,OACT,uBAAqB,SACnB,uBAAqB,eACjB;;cAgBF,cAAW,aAAe,WAAa;UAGnC,gBAAgB,OAAO;;WAE7B,YAAY;WACZ,QAAQ,OAAO,UAAU,UAAU,WAAW;;WAE9C,OAAO,OAAO,OAAO;;;WAGrB,UAAU,OAAO;;;;;;;;;cAUf,WACV,sBAAoB,UAAY,gBAAgB,QAAQ,YACxD,OAAK,OAAS,WACd,0BAA0B,KAAK,QAAQ,UAAS,eAAa,SACnD,gBAAgB,OAAO,WAC/B,SAAS,cAAc,OAAO,OAAO"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["Layer","Model","Message","bundle","BehaviorOptions","behavior","BehaviorOptions","behavior","BehaviorOptions","behavior","BehaviorOptions","behavior","Model","Message","Args","bundle","MoveOptions","move","tabStop","BehaviorOptions","behavior","Model","Message","Args","bundle","RovingTabindex.Direction","move","BehaviorOptions","behavior","Model","Message","Args","bundle","Model","Message","Args","bundle","BehaviorOptions","RovingTabindex.Direction","RovingTabindex.MoveOptions","behavior","Model","Message","Args","bundle","BehaviorOptions","behavior","BehaviorOptions","Fact","behavior","dismissLayerBundle","Model","Message","Args","bundle","BehaviorOptions","behavior","Model","Message","Args","bundle","BehaviorOptions","behavior","BehaviorOptions","behavior","BehaviorOptions","behavior","Model","Message","Args","bundle","BehaviorOptions","behavior"],"sources":["../../src/interaction/bundle-behavior.ts","../../src/interaction/dismiss-layer.ts","../../src/interaction/editable-text.ts","../../src/interaction/focus-scope.ts","../../src/interaction/focus-visible.ts","../../src/interaction/roving-tabindex.ts","../../src/interaction/grid-navigation.ts","../../src/interaction/layers.ts","../../src/interaction/live-announce.ts","../../src/interaction/list-navigation.ts","../../src/interaction/long-press.ts","../../src/interaction/move.ts","../../src/interaction/overlay.ts","../../src/interaction/press.ts","../../src/interaction/selection.ts","../../src/interaction/targets.ts","../../src/interaction/pointer-drag.ts","../../src/interaction/placing.ts","../../src/interaction/tree-navigation.ts","../../src/interaction/typeahead.ts"],"mappings":";;;;;;;;;;;KA+BK,SAAS,UAAU,sBAAsB,UAAU,eAAe,UAAU;;KAGrE,cAAc,UAAU,sBAAsB,OAAO,YAAY,SAAS;;KAG1E,gBAAgB,UAAU,sBAAsB,OAAO,YACjE,SAAS;UAGM,kBAAkB,UAAU,oBAAoB,OAAO;WAC7D,WAAW;WACX,cAAc;aACZ,OAAO;aACP,GAAG,YAAY;aACf,OAAO;;aAEP,OAAO,SAAS,gBAAgB,OAAO;QAC5C,eAAe;;WAEZ,SAAS,YAAY,gBAAgB;;KAGpC,mBAAmB,UAAU,oBAAoB,OAAO,iBAAiB,SACnF,eAAe,kBAAkB,GAAG,OAAO;;;;;;;;cAUhC,aACV,UAAU,oBAAkB,UAAY,OACxC,OAAK,OAAS,WACd,0BAA0B,KAAK,aAAa,cAAc,OAAM,eAAa,MACtE,mBAAmB,GAAG,OAAO,gBAAc;WAC5B;MACpB,cAAc,OAAO,OAAO;cAiCpB;8B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V,sBAAoB,UAAY,gBAAgBF,UAAQ,QAAM,MAAQD,YACtE,OAAK,OAAS,WACd,0BAA0B,KAAK,QAAQF,YAAS,eAAa,SACnDI,kBAAgB,OAAO,WAC/B,SAAS,cAAc,OAAO,OAAO;;;;cCtN7B,OAAK,OAAA;;;;;;KAMN,eAAe,MAAM;cAEpB,mCAAO;;;IAET,MAAI,OAAA;;;;IAEF,YAAU,OAAA;;;;;KAIX,iBAAiB,QAAQ;cAExB,MAAI,OAAA;;sBAAJ,OAAA;;KAOD,cAAc,KAAK;cAElB,QAAM,OAAA;;;;;;;;;;;;;;;;;;;;;;cAuCN,QAAK,OACT,uBAAqB,SACnB,uBAAqB,eACjB;;cAgBF,cAAW,aAAe,WAAa;UAGnC,gBAAgB,OAAO;;WAE7B,YAAY;WACZ,QAAQ,OAAO,UAAU,UAAU,WAAW;;WAE9C,OAAO,OAAO,OAAO;;;WAGrB,UAAU,OAAO;;;;;;;;;cAUf,WACV,sBAAoB,UAAY,gBAAgB,QAAQ,YACxD,OAAK,OAAS,WACd,0BAA0B,KAAK,QAAQ,UAAS,eAAa,SACnD,gBAAgB,OAAO,WAC/B,SAAS,cAAc,OAAO,OAAO"}
|
|
@@ -8,6 +8,40 @@ import { defineMessageUnion } from "foldkit/message";
|
|
|
8
8
|
import * as Subscription from "foldkit/subscription";
|
|
9
9
|
import { Bundle } from "foldkit-bundle";
|
|
10
10
|
import { Behavior, Capability } from "foldkit-mixins";
|
|
11
|
+
//#region src/interaction/bundle-behavior.ts
|
|
12
|
+
var bundle_behavior_exports = /* @__PURE__ */ __exportAll({
|
|
13
|
+
BundleBehavior: () => BundleBehavior,
|
|
14
|
+
fromBundle: () => fromBundle
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* `fromBundle(declared)(slots)<Input, ParentMessage>(spec)` — a Behavior over
|
|
18
|
+
* `declared`, with every `events` mount and every `send` mapped through the
|
|
19
|
+
* placement's wrapper. `Input` must hold the Bundle's Model at the declared
|
|
20
|
+
* field, so attributes read the placed slice; the parent's `Message` includes
|
|
21
|
+
* the declared wrapper cases, so nothing can be sent outside it.
|
|
22
|
+
*/
|
|
23
|
+
const fromBundle = (declared) => (slots) => (spec, options) => {
|
|
24
|
+
const send = (message) => declared.wrapper.make(message);
|
|
25
|
+
const built = Object.create(null);
|
|
26
|
+
for (const [name, slot] of Object.entries(spec)) {
|
|
27
|
+
if (slot === void 0) continue;
|
|
28
|
+
const { requires, attributes, events } = slot;
|
|
29
|
+
if (requires === void 0 && attributes === void 0 && events === void 0) continue;
|
|
30
|
+
built[name] = {
|
|
31
|
+
...requires === void 0 ? {} : { requires },
|
|
32
|
+
...attributes === void 0 ? {} : { attributes: (context) => attributes({
|
|
33
|
+
input: context.input,
|
|
34
|
+
h: context.h,
|
|
35
|
+
...context.item === void 0 ? {} : { item: context.item },
|
|
36
|
+
send
|
|
37
|
+
}) },
|
|
38
|
+
...events === void 0 ? {} : { mount: () => Mount.mapMessage(events, send) }
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return Behavior.forSlots(slots)(built, options);
|
|
42
|
+
};
|
|
43
|
+
const BundleBehavior = { fromBundle };
|
|
44
|
+
//#endregion
|
|
11
45
|
//#region src/interaction/dismiss-layer.ts
|
|
12
46
|
/**
|
|
13
47
|
* Dismissable layers: Escape closes the topmost open layer, a pointer press
|
|
@@ -1139,11 +1173,11 @@ const events = Mount.defineStream("PressEvents", {
|
|
|
1139
1173
|
* decides nothing; a click, a touch, Enter, Space, or an assistive
|
|
1140
1174
|
* technology's click all reach `update` and come out as one `Pressed`.
|
|
1141
1175
|
*/
|
|
1142
|
-
const behavior$6 = (declared) => (slots) => (options) =>
|
|
1176
|
+
const behavior$6 = (declared) => (slots) => (options) => BundleBehavior.fromBundle(declared)(slots)({ [options.target]: {
|
|
1143
1177
|
requires: { capability: Capability.Interactive },
|
|
1144
1178
|
attributes: ({ input, h }) => [...input[declared.field].pressed ? [h.DataAttribute("pressed", "true")] : [], ...options.disabled?.(input) === true ? [h.AriaDisabled(true)] : []],
|
|
1145
|
-
|
|
1146
|
-
}
|
|
1179
|
+
events: events()
|
|
1180
|
+
} }, { name: "Press" });
|
|
1147
1181
|
//#endregion
|
|
1148
1182
|
//#region src/interaction/long-press.ts
|
|
1149
1183
|
/**
|
|
@@ -1444,25 +1478,24 @@ const bundle$1 = Bundle.make("Selection", {
|
|
|
1444
1478
|
* to `Activated` unless told not to. A disabled item gets no click.
|
|
1445
1479
|
*/
|
|
1446
1480
|
const behavior$3 = (declared, args) => (slots) => (options) => {
|
|
1447
|
-
const wrap = (message) => declared.wrapper.make(message);
|
|
1448
1481
|
const itemsOf = perInput(options.items);
|
|
1449
1482
|
const selectedOf = perInput((input) => new Set(input[declared.field].selected));
|
|
1450
|
-
return
|
|
1451
|
-
...options.container === void 0 ? {} : { [options.container]:
|
|
1483
|
+
return BundleBehavior.fromBundle(declared)(slots)({
|
|
1484
|
+
...options.container === void 0 ? {} : { [options.container]: {
|
|
1452
1485
|
requires: { capability: Capability.Container },
|
|
1453
1486
|
attributes: ({ h }) => [h.AriaMultiSelectable(args.mode === "multiple")]
|
|
1454
|
-
}
|
|
1455
|
-
[options.item]:
|
|
1487
|
+
} },
|
|
1488
|
+
[options.item]: {
|
|
1456
1489
|
requires: { capability: Capability.Interactive },
|
|
1457
|
-
attributes: ({ input, h, item }) => {
|
|
1490
|
+
attributes: ({ input, h, item, send }) => {
|
|
1458
1491
|
if (item === void 0) return [];
|
|
1459
1492
|
const items = itemsOf(input);
|
|
1460
1493
|
const id = item.id ?? items.ids[item.index];
|
|
1461
1494
|
if (id === void 0) return [];
|
|
1462
1495
|
const clickable = options.click !== false && args.mode !== "none" && !items.isDisabled(item.index);
|
|
1463
|
-
return [h.AriaSelected(selectedOf(input).has(id)), ...clickable ? [h.OnClick(
|
|
1496
|
+
return [h.AriaSelected(selectedOf(input).has(id)), ...clickable ? [h.OnClick(send(Message$1.Activated({ id })))] : []];
|
|
1464
1497
|
}
|
|
1465
|
-
}
|
|
1498
|
+
}
|
|
1466
1499
|
}, { name: "Selection" });
|
|
1467
1500
|
};
|
|
1468
1501
|
//#endregion
|
|
@@ -1974,6 +2007,6 @@ const behavior = (declared, args) => (slots) => (options) => {
|
|
|
1974
2007
|
}, { name: "TreeNavigation" });
|
|
1975
2008
|
};
|
|
1976
2009
|
//#endregion
|
|
1977
|
-
export { dismiss_layer_exports as DismissLayer, editable_text_exports as EditableText, focus_scope_exports as FocusScope, focus_visible_exports as FocusVisible, grid_navigation_exports as GridNavigation, layers_exports as Layers, list_navigation_exports as ListNavigation, live_announce_exports as LiveAnnounce, long_press_exports as LongPress, move_exports as Move, overlay_exports as Overlay, placing_exports as Placing, pointer_drag_exports as PointerDrag, press_exports as Press, roving_tabindex_exports as RovingTabindex, selection_exports as Selection, targets_exports as Targets, tree_navigation_exports as TreeNavigation, typeahead_exports as Typeahead };
|
|
2010
|
+
export { bundle_behavior_exports as BundleBehavior, dismiss_layer_exports as DismissLayer, editable_text_exports as EditableText, focus_scope_exports as FocusScope, focus_visible_exports as FocusVisible, grid_navigation_exports as GridNavigation, layers_exports as Layers, list_navigation_exports as ListNavigation, live_announce_exports as LiveAnnounce, long_press_exports as LongPress, move_exports as Move, overlay_exports as Overlay, placing_exports as Placing, pointer_drag_exports as PointerDrag, press_exports as Press, roving_tabindex_exports as RovingTabindex, selection_exports as Selection, targets_exports as Targets, tree_navigation_exports as TreeNavigation, typeahead_exports as Typeahead };
|
|
1978
2011
|
|
|
1979
2012
|
//# sourceMappingURL=index.mjs.map
|