@astryx-vue/core 0.41.1 → 0.42.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.
Files changed (241) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-DxrO48Kg.js → AlertDialog-Cld8wc2u.js} +3 -3
  3. package/dist/AvatarGroup/index.d.ts +1 -1
  4. package/dist/AvatarGroup/index.js +1 -1
  5. package/dist/{AvatarGroup-BZ5iG7M-.js → AvatarGroup-CU1zqtTi.js} +1 -1
  6. package/dist/Banner/index.d.ts +1 -1
  7. package/dist/Banner/index.js +1 -1
  8. package/dist/{Banner-0YtnbBU6.js → Banner-5KOS4fe8.js} +1 -1
  9. package/dist/BottomSheet/index.d.ts +1 -1
  10. package/dist/Breadcrumbs/index.d.ts +2 -2
  11. package/dist/Breadcrumbs/index.js +2 -2
  12. package/dist/{Breadcrumbs-9KMHiyXr.js → Breadcrumbs-Bcrk04nL.js} +1 -1
  13. package/dist/Button/index.d.ts +1 -1
  14. package/dist/Button/index.js +1 -1
  15. package/dist/{Button-ClyetTf6.js → Button-tVILPfaj.js} +2 -2
  16. package/dist/ButtonGroup/index.d.ts +1 -1
  17. package/dist/ButtonGroup/index.js +1 -1
  18. package/dist/{ButtonGroup-tk0H2O8q.js → ButtonGroup-D7p8oEry.js} +2 -2
  19. package/dist/Calendar/index.d.ts +1 -1
  20. package/dist/Calendar/index.js +2 -2
  21. package/dist/{Calendar-CfhOlgQJ.js → Calendar-Brz2iDeZ.js} +1 -1
  22. package/dist/{Calendar-DbAQvHgy.js → Calendar-C1E1ZiaS.js} +1 -1
  23. package/dist/Carousel/index.d.ts +1 -1
  24. package/dist/Carousel/index.js +1 -1
  25. package/dist/{Carousel-utfvjW5p.js → Carousel-DlHeba5J.js} +1 -1
  26. package/dist/Chat/index.d.ts +1 -1
  27. package/dist/Chat/index.js +1 -1
  28. package/dist/{Chat-DL583Xle.js → Chat-B0jgkmWf.js} +1 -1
  29. package/dist/CheckboxInput/index.d.ts +1 -1
  30. package/dist/CheckboxInput/index.js +1 -1
  31. package/dist/{CheckboxInput-BQH87pfn.js → CheckboxInput-BhKf3JOh.js} +4 -4
  32. package/dist/CheckboxList/index.d.ts +1 -1
  33. package/dist/CheckboxList/index.js +1 -1
  34. package/dist/{CheckboxListItem-BL7gDglY.js → CheckboxListItem-DFCDLwLP.js} +4 -4
  35. package/dist/ClickableCard/index.d.ts +1 -1
  36. package/dist/ClickableCard/index.js +1 -1
  37. package/dist/{ClickableCard-CdByvXDr.js → ClickableCard-DyBa2X4I.js} +1 -1
  38. package/dist/Code/index.js +2 -2
  39. package/dist/{Code-KvqZ1ZES.js → Code-BtJV5J-h.js} +1 -1
  40. package/dist/{CodeBlock-e2rlXQWO.js → CodeBlock-D1i3lEK3.js} +1 -1
  41. package/dist/Collapsible/index.js +1 -1
  42. package/dist/{Collapsible-CTc7irlw.js → Collapsible-CXbcOn80.js} +1 -1
  43. package/dist/CommandPalette/index.js +1 -1
  44. package/dist/{CommandPalette-PBYSDIpx.js → CommandPalette-DyjB9xE_.js} +1 -1
  45. package/dist/ComplexSelector/index.js +1 -1
  46. package/dist/{ComplexSelector-CPg5jcdL.js → ComplexSelector-MRuOupEd.js} +2 -2
  47. package/dist/ContextMenu/index.d.ts +2 -2
  48. package/dist/ContextMenu/index.js +2 -2
  49. package/dist/{ContextMenu-DcZEviKv.js → ContextMenu-JZUal7pu.js} +1 -1
  50. package/dist/DateInput/index.d.ts +1 -1
  51. package/dist/DateInput/index.js +1 -1
  52. package/dist/{DateInput-C4qtEFDW.js → DateInput-B76O2ceL.js} +579 -78
  53. package/dist/DateRangeInput/index.d.ts +1 -1
  54. package/dist/DateRangeInput/index.js +1 -1
  55. package/dist/{DateRangeInput-CGqCQAlT.js → DateRangeInput-B8ZWK6sm.js} +4 -4
  56. package/dist/DateTimeInput/index.d.ts +1 -1
  57. package/dist/DateTimeInput/index.js +1 -1
  58. package/dist/{DateTimeInput-CAirxttc.js → DateTimeInput-DOaPB2D4.js} +4 -4
  59. package/dist/Dialog/index.js +1 -1
  60. package/dist/{DialogHeader-BS8mjD8z.js → DialogHeader-B4cnOihd.js} +1 -1
  61. package/dist/Divider/index.d.ts +1 -1
  62. package/dist/Drawer/index.d.ts +1 -1
  63. package/dist/Drawer/index.js +1 -1
  64. package/dist/{Drawer-Cq1Y_1iJ.js → Drawer-dk9etcN3.js} +1 -1
  65. package/dist/DropdownMenu/index.d.ts +2 -2
  66. package/dist/DropdownMenu/index.js +2 -2
  67. package/dist/{DropdownMenu-CSn1OQ2D.js → DropdownMenu-Dqkyvelz.js} +3 -3
  68. package/dist/{DropdownMenuRadioItem.vue-BFCbIBfb.d.ts → DropdownMenuRadioItem.vue-BrcSzOfA.d.ts} +1 -1
  69. package/dist/Field/index.js +3 -3
  70. package/dist/{Field-BzGwGqwa.js → Field-B_GThk2X.js} +1 -1
  71. package/dist/{FieldInfoTip-DqsdZxo0.js → FieldInfoTip-jhm02XZs.js} +1 -1
  72. package/dist/{FieldLabel-DdMLaCP_.js → FieldLabel-C0XDwWCd.js} +1 -1
  73. package/dist/FileInput/index.js +1 -1
  74. package/dist/{FileInput-B_BXknEU.js → FileInput-CbXrw3RO.js} +3 -3
  75. package/dist/HoverCard/index.d.ts +1 -1
  76. package/dist/IconButton/index.js +1 -1
  77. package/dist/{IconButton-kj1M_L7a.js → IconButton-CU1kvO7X.js} +1 -1
  78. package/dist/InfoTip/index.d.ts +1 -1
  79. package/dist/InfoTip/index.js +1 -1
  80. package/dist/{InfoTip-DJIb8b29.js → InfoTip-BwxUx7Hk.js} +1 -1
  81. package/dist/{InputClearButton-wd0VoZja.js → InputClearButton-CN8J7JOl.js} +1 -1
  82. package/dist/InputGroup/index.js +1 -1
  83. package/dist/{InputGroup-DGiF9Xaz.js → InputGroup-Ca-SOzyp.js} +1 -1
  84. package/dist/InternationalizationProvider/index.js +2 -1
  85. package/dist/{InternationalizationProvider-C37KH-mM.js → InternationalizationProvider-Ddr5L4mQ.js} +4 -60
  86. package/dist/Item-B6nYjAw3.js +1476 -0
  87. package/dist/Lightbox/index.js +1 -1
  88. package/dist/{Lightbox-Fu6RCX0k.js → Lightbox-DCI-S6Ln.js} +1 -1
  89. package/dist/Link/index.d.ts +1 -1
  90. package/dist/Link/index.js +1 -1
  91. package/dist/{Link-zPVCNAM6.js → Link-B5CJso43.js} +1 -1
  92. package/dist/List/index.d.ts +3 -2
  93. package/dist/List/index.js +4 -4
  94. package/dist/{List-D4w6clf-.js → List-DuWNjAKk.js} +2 -2
  95. package/dist/{ListItem-uvJaYGOJ.js → ListItem-BxQt4Emy.js} +8 -3
  96. package/dist/Markdown/index.d.ts +1 -1
  97. package/dist/Markdown/index.js +1 -1
  98. package/dist/{Markdown-BiXz75mz.js → Markdown-BFV7g8oa.js} +118 -59
  99. package/dist/MoreMenu/index.d.ts +1 -1
  100. package/dist/MoreMenu/index.js +1 -1
  101. package/dist/{MoreMenu-CgT9SajI.js → MoreMenu-DOVbdDmP.js} +2 -2
  102. package/dist/MultiSelector/index.d.ts +1 -1
  103. package/dist/MultiSelector/index.js +1 -1
  104. package/dist/{MultiSelector-CaL3UDIc.js → MultiSelector-BLESAk-K.js} +3 -3
  105. package/dist/NavItem/index.d.ts +1 -1
  106. package/dist/NavItem/index.js +1 -1
  107. package/dist/{NavItem-D_1ecPv_.js → NavItem-BR639emm.js} +1 -1
  108. package/dist/NavMenu/index.js +1 -1
  109. package/dist/{NavMenuItem-DqBCA1VP.js → NavMenuItem-C9e62bSc.js} +1 -1
  110. package/dist/NumberInput/index.d.ts +1 -1
  111. package/dist/NumberInput/index.js +1 -1
  112. package/dist/{NumberInput-0lTA5weY.js → NumberInput-C7cRBlQm.js} +3 -3
  113. package/dist/Outline/index.js +1 -1
  114. package/dist/{Outline-BoxN40Bd.js → Outline-BcZMmO9Y.js} +1 -1
  115. package/dist/OverflowList/index.d.ts +1 -1
  116. package/dist/OverflowList/index.js +1 -1
  117. package/dist/{OverflowList-7oui4oT5.js → OverflowList-cjl0AaEP.js} +1 -1
  118. package/dist/Pagination/index.d.ts +1 -1
  119. package/dist/Pagination/index.js +1 -1
  120. package/dist/{Pagination-BrkX0lga.js → Pagination-BnA277o8.js} +2 -2
  121. package/dist/Popover/index.d.ts +1 -1
  122. package/dist/Popover/index.js +1 -1
  123. package/dist/{Popover-BZ4VWDtv.js → Popover-DfO-mkcm.js} +1 -1
  124. package/dist/PowerSearch/index.d.ts +1 -1
  125. package/dist/PowerSearch/index.js +1 -1
  126. package/dist/{PowerSearch-BSoQJbHK.js → PowerSearch-CvBTNf6L.js} +19 -19
  127. package/dist/ProgressBar/index.d.ts +1 -1
  128. package/dist/Radio/index.d.ts +1 -1
  129. package/dist/Radio/index.js +1 -1
  130. package/dist/{RadioGroup-CrRm7H51.js → RadioGroup-CVOlUPbf.js} +4 -4
  131. package/dist/RadioList/index.d.ts +1 -1
  132. package/dist/RadioList/index.js +1 -1
  133. package/dist/{RadioListItem-iPD3y2Eo.js → RadioListItem-5y613Xrt.js} +1 -1
  134. package/dist/Resizable/index.d.ts +1 -1
  135. package/dist/ScrollableArea/index.d.ts +1 -1
  136. package/dist/SegmentedControl/index.js +1 -1
  137. package/dist/{SegmentedControl-D8A_jaFC.js → SegmentedControl-B6BQlTfN.js} +3 -3
  138. package/dist/SelectableCard/index.d.ts +1 -1
  139. package/dist/SelectableCard/index.js +1 -1
  140. package/dist/{SelectableCard-DIruuGBa.js → SelectableCard-C2hl7HBW.js} +1 -1
  141. package/dist/Selector/index.d.ts +1 -1
  142. package/dist/Selector/index.js +1 -1
  143. package/dist/{Selector-CFdM10Uc.js → Selector-Dw_0e0zY.js} +1 -1
  144. package/dist/SideNav/index.d.ts +1 -1
  145. package/dist/SideNav/index.js +1 -1
  146. package/dist/{SideNav-Cl1H-baW.js → SideNav-dsff7R2R.js} +2 -2
  147. package/dist/Slider/index.js +1 -1
  148. package/dist/{Slider-Bd3wpFo7.js → Slider-CN5NOM10.js} +3 -3
  149. package/dist/Stepper/index.d.ts +1 -1
  150. package/dist/Stepper/index.js +1 -1
  151. package/dist/{Stepper-CZU_Zvi5.js → Stepper-BYZasZK7.js} +1 -1
  152. package/dist/Swipe/index.d.ts +3 -0
  153. package/dist/Swipe/index.js +2 -0
  154. package/dist/Switch/index.d.ts +1 -1
  155. package/dist/Switch/index.js +1 -1
  156. package/dist/{Switch-BpkKyz98.js → Switch-DHr3_O1r.js} +4 -4
  157. package/dist/TabList/index.js +1 -1
  158. package/dist/{TabList-DZ2i0QIt.js → TabList-O34fxJlZ.js} +1 -1
  159. package/dist/Table/index.d.ts +1 -1
  160. package/dist/Table/index.js +1 -1
  161. package/dist/{Table-fSipO9Ju.js → Table-sTJtTqmi.js} +9 -9
  162. package/dist/TextArea/index.d.ts +1 -1
  163. package/dist/TextArea/index.js +1 -1
  164. package/dist/{TextArea-D5aDDlgr.js → TextArea-TO_A1D_W.js} +4 -4
  165. package/dist/TextInput/index.d.ts +1 -1
  166. package/dist/TextInput/index.js +1 -1
  167. package/dist/{TextInput-CVRWRtoL.js → TextInput-jIBboBDS.js} +4 -4
  168. package/dist/Thumbnail/index.js +1 -1
  169. package/dist/{Thumbnail-zFN5p6dk.js → Thumbnail-CRltyNsq.js} +2 -2
  170. package/dist/{TimeField-B49DgkyR.js → TimeField-BG409_10.js} +1 -1
  171. package/dist/TimeInput/index.d.ts +1 -1
  172. package/dist/TimeInput/index.js +1 -1
  173. package/dist/{TimeInput-BoFij92p.js → TimeInput-CQzBs55U.js} +2 -2
  174. package/dist/Timestamp/index.d.ts +1 -1
  175. package/dist/Timestamp/index.js +1 -1
  176. package/dist/{Timestamp-DunFvQYG.js → Timestamp-s4Nksy5i.js} +1 -1
  177. package/dist/Toast/index.js +1 -1
  178. package/dist/{Toast-BnIq3gzw.js → Toast-DcKB9QHW.js} +1 -1
  179. package/dist/ToggleButton/index.d.ts +1 -1
  180. package/dist/ToggleButton/index.js +1 -1
  181. package/dist/{ToggleButton-CLgj6yLQ.js → ToggleButton-DZgHhJd7.js} +3 -3
  182. package/dist/Token/index.d.ts +1 -1
  183. package/dist/Token/index.js +1 -1
  184. package/dist/{Token-BPjnWrHl.js → Token-B6mV8hyk.js} +1 -1
  185. package/dist/Tokenizer/index.d.ts +1 -1
  186. package/dist/Tokenizer/index.js +1 -1
  187. package/dist/{Tokenizer-CMv-Bi0y.js → Tokenizer-BvCiuyhk.js} +5 -5
  188. package/dist/Toolbar/index.d.ts +1 -1
  189. package/dist/Tooltip/index.d.ts +1 -1
  190. package/dist/TopNav/index.d.ts +1 -1
  191. package/dist/TopNav/index.js +1 -1
  192. package/dist/{TopNav-DUkn4CMv.js → TopNav-xKD14HTR.js} +2 -2
  193. package/dist/TreeList/index.d.ts +1 -1
  194. package/dist/TreeList/index.js +1 -1
  195. package/dist/{TreeList-o5MrA7rz.js → TreeList-BOr0GpJC.js} +1 -1
  196. package/dist/Typeahead/index.js +1 -1
  197. package/dist/{Typeahead-DXlsxjkQ.js → Typeahead-C18-lx2P.js} +3 -3
  198. package/dist/{accessibleName-9UI6HUaA.js → accessibleName-Chl0zwq_.js} +1 -1
  199. package/dist/{boxHold-DfsWCZLh.js → boxHold-BCbXt9_d.js} +1 -1
  200. package/dist/composables/index.js +4 -3
  201. package/dist/{composables-Dzpv7G2Z.js → composables-CKAzgdPD.js} +3 -473
  202. package/dist/context-BNCjTOCB.js +60 -0
  203. package/dist/createSwipe-DXObfkyb.js +77 -0
  204. package/dist/{index-CJT9kM7e.d.ts → index-3vt1Ew4A.d.ts} +2 -2
  205. package/dist/{index-BFPb14Xj.d.ts → index-B9LwZ19y.d.ts} +6 -6
  206. package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
  207. package/dist/{index-DofC9Rll.d.ts → index-BtqvPjAf.d.ts} +1 -1
  208. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  209. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  210. package/dist/{index-Bwh8O-v8.d.ts → index-CZ29Xu_E.d.ts} +1 -1
  211. package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
  212. package/dist/{index-DYabo8TI.d.ts → index-DPhQZXYw.d.ts} +1 -1
  213. package/dist/index-DPsvfn2V.d.ts +25 -0
  214. package/dist/{index-CuW4AQ7M.d.ts → index-DXHmlFcC.d.ts} +3 -3
  215. package/dist/{index-YP5WRwXH.d.ts → index-Dn6iAyK4.d.ts} +5 -5
  216. package/dist/{index-CCa_dvoF.d.ts → index-Ds4dOCSy.d.ts} +3 -3
  217. package/dist/{index-DgNCHxvu.d.ts → index-J83fLEyo.d.ts} +2 -2
  218. package/dist/{index-COqeB2ug.d.ts → index-Nln6FiRr.d.ts} +1 -1
  219. package/dist/{index-4_uuTfaY.d.ts → index-VWHtgjGh.d.ts} +1 -1
  220. package/dist/{index-0RIgvtdm.d.ts → index-ZXrvTM3A.d.ts} +2 -2
  221. package/dist/{index-uWIhWgDN.d.ts → index-lNjYxF1K.d.ts} +45 -44
  222. package/dist/{index-Ak1b0V24.d.ts → index-tdOyqA_U.d.ts} +1 -1
  223. package/dist/{index-LYiWcVDD.d.ts → index-v27zktLu.d.ts} +2 -2
  224. package/dist/index.d.ts +25 -23
  225. package/dist/index.js +81 -78
  226. package/dist/itemSlots-Dl7Ipj5I.js +539 -0
  227. package/dist/{pressSlot-5Bp-B175.js → pressSlot-31XyOhUS.js} +20 -2
  228. package/dist/swipeHost-B2OlVVZt.d.ts +73 -0
  229. package/dist/{types-D9mwL8sz.d.ts → types-wKC-Ws-M.d.ts} +29 -10
  230. package/dist/{useActionGroupTracking-Cujjrmt3.js → useActionGroupTracking-CioHSqgG.js} +2 -2
  231. package/dist/{useCalendarGrid-0WvxbeFC.js → useCalendarGrid-BpBA8UZa.js} +1 -1
  232. package/dist/{useInputStatusIcon-2sRn-Nbf.js → useInputStatusIcon-D0xNp9jO.js} +1 -1
  233. package/dist/{usePressFeedback-Ber7MRiI.js → usePressFeedback-D4oohqP5.js} +1 -1
  234. package/dist/{useTouchHitArea-B6g7fhfF.js → useTouchHitArea-rwyNMxFb.js} +1 -1
  235. package/package.json +5 -1
  236. package/styles/date-input.css +36 -0
  237. package/styles/list.css +125 -69
  238. package/styles/markdown.css +17 -0
  239. package/dist/Item-DC1v56yE.js +0 -723
  240. package/dist/itemSlots-BxUu7hje.js +0 -54
  241. package/dist/{index-D8lv2BiD.d.ts → index-J6YRJ7Ul.d.ts} +1 -1
@@ -0,0 +1,539 @@
1
+ import { f as toSpring } from "./roles-D6hLs7Rg.js";
2
+ import { c as solveSpring } from "./linearEasing-CDsqxyiS.js";
3
+ import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
4
+ import { c as motionNow } from "./cssValues-Cr6PhYTx.js";
5
+ import { n as createMotionEngine, r as SETTLE_THRESHOLD } from "./animator-D6Buqmbt.js";
6
+ import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
7
+ import { t as resolveMotion } from "./resolveMotion-BHR1cz0Q.js";
8
+ import { o as registerSpringsTable, s as springs } from "./springs-B5hVbZta.js";
9
+ import { i as getGestureHost } from "./geometry-ae8bOxQ5.js";
10
+ import { t as PanGestureRecognizer } from "./PanGestureRecognizer-BFSO5U4N.js";
11
+ import { t as resolveSnapPoint } from "./resolveSnapPoint-C7GZY6jT.js";
12
+ import { computed, inject, provide } from "vue";
13
+ //#region src/gestures/createPanGesture.ts
14
+ const ZERO = {
15
+ x: 0,
16
+ y: 0
17
+ };
18
+ /** Report drags on `element` as values, with the recognizer's options. */
19
+ function createPan(element, options) {
20
+ const { axis, onPan } = options;
21
+ const recognizer = new PanGestureRecognizer({
22
+ name: "pan",
23
+ ...options.recognizer,
24
+ direction: axis === "x" ? "horizontal" : axis === "y" ? "vertical" : "any"
25
+ });
26
+ const along = (point) => axis === "x" ? {
27
+ x: point.x,
28
+ y: 0
29
+ } : axis === "y" ? {
30
+ x: 0,
31
+ y: point.y
32
+ } : {
33
+ x: point.x,
34
+ y: point.y
35
+ };
36
+ let input = "touch";
37
+ recognizer.addListener(() => {
38
+ const state = recognizer.state;
39
+ if (state !== "began" && state !== "changed" && state !== "ended" && state !== "cancelled") return;
40
+ if (state === "began") {
41
+ const touch = recognizer.trackedTouches[0];
42
+ input = touch == null ? "touch" : touch.scrollType != null ? "scroll" : touch.pointerType;
43
+ }
44
+ onPan({
45
+ state,
46
+ translation: along(recognizer.translation()),
47
+ totalTranslation: along(recognizer.totalTranslation()),
48
+ velocity: state === "cancelled" ? { ...ZERO } : along(recognizer.velocity()),
49
+ input
50
+ });
51
+ });
52
+ let detach = getGestureHost(element.ownerDocument).attach(element, recognizer);
53
+ return { destroy() {
54
+ const current = detach;
55
+ detach = null;
56
+ current?.();
57
+ } };
58
+ }
59
+ /**
60
+ * Report drags on `element` as values. The drag claims its touch at UIKit's
61
+ * 10 pt, as `UIPanGestureRecognizer` does, so a tap stays a tap. The pan sets
62
+ * the element's `touch-action` for the axis.
63
+ * @example
64
+ * ```ts
65
+ * const pan = createPanGesture(card, {
66
+ * axis: 'x',
67
+ * onPan: ({ state, translation }) => {
68
+ * card.style.translate = state === 'changed' ? `${translation.x}px` : ''
69
+ * },
70
+ * })
71
+ * // Later:
72
+ * pan.destroy()
73
+ * ```
74
+ */
75
+ function createPanGesture(element, options) {
76
+ const { axis, onPan } = options;
77
+ return createPan(element, {
78
+ axis,
79
+ onPan: ({ state, translation, velocity }) => {
80
+ onPan({
81
+ state,
82
+ translation,
83
+ velocity
84
+ });
85
+ }
86
+ });
87
+ }
88
+ //#endregion
89
+ //#region src/dragToSnapPoints/compositorSettle.ts
90
+ /** Keyframes per second: twice a 60 Hz display's frame rate. */
91
+ const SAMPLE_HZ = 120;
92
+ /** The longest a settle plays (ms). */
93
+ const MAX_MS = 3e3;
94
+ /** The keyframe times (ms): a fixed grid, plus each time the curve crosses a bend. */
95
+ function keyframeTimes(valueAt, durationMs, bends) {
96
+ const steps = Math.ceil(durationMs / 1e3 * SAMPLE_HZ);
97
+ const grid = [];
98
+ for (let step = 0; step <= steps; step += 1) grid.push(Math.min(durationMs, step / SAMPLE_HZ * 1e3));
99
+ const times = [...grid];
100
+ for (const bend of bends) for (let index = 0; index < grid.length - 1; index += 1) {
101
+ let low = grid[index];
102
+ let high = grid[index + 1];
103
+ if ((valueAt(low) - bend) * (valueAt(high) - bend) >= 0) continue;
104
+ for (let iteration = 0; iteration < 24; iteration += 1) {
105
+ const middle = (low + high) / 2;
106
+ if ((valueAt(low) - bend) * (valueAt(middle) - bend) <= 0) high = middle;
107
+ else low = middle;
108
+ }
109
+ times.push((low + high) / 2);
110
+ }
111
+ return times.sort((a, b) => a - b);
112
+ }
113
+ /**
114
+ * Plays `curve` on `parts` from now. `onPass` runs on the first frame the
115
+ * value is past its offset in its direction, and `onFinish` on the first
116
+ * frame after the curve ends. A part with no Web Animations (a test DOM)
117
+ * shows the end pose at once, and the callbacks keep the curve's times.
118
+ */
119
+ function playCompositorSettle({ curve, parts, requestFrame, onPass, onFinish }) {
120
+ const durationMs = Math.min(MAX_MS, Math.max(0, curve.settleTime(SETTLE_THRESHOLD.x) * 1e3));
121
+ const started = motionNow();
122
+ let stopped = false;
123
+ let passed = onPass == null;
124
+ const valueAt = (ms) => curve.value(ms / 1e3);
125
+ const times = keyframeTimes(valueAt, durationMs, new Set(parts.flatMap((part) => part.bends ?? [])));
126
+ const values = times.map((ms, index) => index === times.length - 1 ? curve.to : valueAt(ms));
127
+ const offsets = times.map((ms) => durationMs === 0 ? 1 : ms / durationMs);
128
+ const animations = durationMs === 0 ? [] : parts.filter((part) => typeof part.element.animate === "function").map((part) => {
129
+ const end = part.offset(curve.to);
130
+ const animation = part.element.animate(values.map((value, index) => ({
131
+ offset: offsets[index],
132
+ translate: `${part.offset(value) - end}px 0px`
133
+ })), {
134
+ duration: durationMs,
135
+ easing: "linear",
136
+ fill: "backwards"
137
+ });
138
+ animation.startTime = started;
139
+ return animation;
140
+ });
141
+ const elapsedSeconds = () => Math.min(durationMs, Math.max(0, motionNow() - started)) / 1e3;
142
+ const presented = () => curve.value(elapsedSeconds());
143
+ const cancelAll = () => {
144
+ for (const animation of animations) animation.cancel();
145
+ };
146
+ const stop = () => {
147
+ const value = presented();
148
+ stopped = true;
149
+ cancelAll();
150
+ return value;
151
+ };
152
+ const frame = () => {
153
+ if (stopped) return;
154
+ const seconds = elapsedSeconds();
155
+ if (!passed && onPass != null) {
156
+ if ((curve.value(seconds) - onPass.offset) * onPass.direction >= 0) {
157
+ passed = true;
158
+ onPass.call();
159
+ if (stopped) return;
160
+ }
161
+ }
162
+ if (seconds * 1e3 >= durationMs) {
163
+ stopped = true;
164
+ cancelAll();
165
+ onFinish();
166
+ return;
167
+ }
168
+ requestFrame(frame);
169
+ };
170
+ requestFrame(frame);
171
+ return {
172
+ presented,
173
+ velocity: () => curve.velocity(elapsedSeconds()),
174
+ stop
175
+ };
176
+ }
177
+ //#endregion
178
+ //#region src/dragToSnapPoints/snapDragTypes.ts
179
+ /**
180
+ * The release speed, in px/s, above which a drag carries to the next snap
181
+ * point: the flick speed measured for UIKit's sheet on iOS 26.2.
182
+ */
183
+ const DEFAULT_FLICK_THRESHOLD = 1008;
184
+ //#endregion
185
+ //#region src/dragToSnapPoints/createSnapDrag.ts
186
+ /** The document timeline's clock, which the animator runs on. */
187
+ const now = () => performance.now();
188
+ /** Runs `callback` in the next animation frame (a timer without one). */
189
+ function requestFrame(callback) {
190
+ if (typeof requestAnimationFrame === "function") requestAnimationFrame(() => callback());
191
+ else setTimeout(callback, 16);
192
+ }
193
+ /**
194
+ * Where `element` is drawn now, read from the inline value an animator left
195
+ * on it. A drag destroyed and created again leaves it where it stopped. An
196
+ * axis it does not set reads 0.
197
+ */
198
+ function drawnAt(element, customProperty) {
199
+ if (customProperty != null) {
200
+ const value = Number.parseFloat(element.style.getPropertyValue(customProperty));
201
+ return {
202
+ x: Number.isFinite(value) ? value : 0,
203
+ y: 0
204
+ };
205
+ }
206
+ const [x = 0, y = 0] = element.style.getPropertyValue("translate").trim().split(/\s+/).map((part) => Number.parseFloat(part)).map((value) => Number.isFinite(value) ? value : 0);
207
+ return {
208
+ x,
209
+ y
210
+ };
211
+ }
212
+ /** Drops a point that is not a finite number, with a dev warning. */
213
+ function sortedSnapPoints(snapPoints) {
214
+ const usable = snapPoints.filter((point) => Number.isFinite(point));
215
+ if (usable.length < snapPoints.length) devWarn("createDragToSnapPoints", "snapPoints must be numbers; the others are ignored.");
216
+ return usable.sort((a, b) => a - b);
217
+ }
218
+ /** Lets a drag move `element` along `axis` and settles it on its snap points. */
219
+ function createSnapDrag(element, options) {
220
+ const { axis, onSettle, model } = options;
221
+ if (options.customProperty != null && axis !== "x") devWarn("createSnapDrag", "customProperty draws the x axis only, so this y drag draws nothing.");
222
+ const flickThreshold = options.flickThreshold ?? 1008;
223
+ let points = sortedSnapPoints(options.snapPoints);
224
+ const drawn = drawnAt(element, options.customProperty?.name);
225
+ const animator = createMotionEngine(element, {
226
+ initial: drawn,
227
+ ...options.customProperty != null ? { customProperty: options.customProperty } : {}
228
+ });
229
+ let targetIndex = points.length === 0 ? 0 : resolveSnapPoint({
230
+ points,
231
+ position: drawn[axis],
232
+ velocity: 0,
233
+ flickThreshold
234
+ }).index;
235
+ let turn = 0;
236
+ let drag = null;
237
+ let destroyed = false;
238
+ let inFlight = null;
239
+ let compositor = null;
240
+ let finishCompositor = null;
241
+ const position = () => compositor?.presented() ?? animator.get(axis);
242
+ /** Stops a compositor settle where it is on screen, and draws it there. */
243
+ const holdCompositor = () => {
244
+ if (compositor == null) return;
245
+ const value = compositor.stop();
246
+ compositor = null;
247
+ finishCompositor = null;
248
+ animator.set({ [axis]: value }, { promote: false });
249
+ };
250
+ const settle = (target, settleOptions) => {
251
+ registerSpringsTable();
252
+ targetIndex = target;
253
+ const mine = ++turn;
254
+ const flight = {
255
+ turn: mine,
256
+ options: settleOptions,
257
+ passed: false
258
+ };
259
+ inFlight = flight;
260
+ const { velocity } = settleOptions;
261
+ const spring = settleOptions.spring ?? springs.settle;
262
+ const touchRelease = settleOptions.touchRelease === true;
263
+ const { compositorParts } = options;
264
+ if (compositorParts != null && animator.reducedMotion({ touchRelease }) === "off") {
265
+ const startVelocity = velocity != null && velocity !== 0 ? velocity : compositor?.velocity() ?? animator.getVelocity(axis);
266
+ const from = position();
267
+ holdCompositor();
268
+ const to = points[target];
269
+ const curve = solveSpring(toSpring(resolveMotion(element, spring)), {
270
+ from,
271
+ to,
272
+ velocity: startVelocity
273
+ });
274
+ const { onPass } = settleOptions;
275
+ const play = () => {
276
+ if (destroyed || mine !== turn) return;
277
+ animator.stop();
278
+ animator.set({ [axis]: to }, { promote: false });
279
+ const finish = () => {
280
+ compositor = null;
281
+ finishCompositor = null;
282
+ if (inFlight === flight) inFlight = null;
283
+ if (mine === turn && !destroyed) onSettle(targetIndex);
284
+ };
285
+ compositor = playCompositorSettle({
286
+ curve,
287
+ parts: compositorParts(),
288
+ requestFrame,
289
+ ...onPass != null ? { onPass: {
290
+ ...onPass,
291
+ call: () => {
292
+ flight.passed = true;
293
+ onPass.call();
294
+ }
295
+ } } : {},
296
+ onFinish: finish
297
+ });
298
+ finishCompositor = finish;
299
+ };
300
+ if (settleOptions.start === "next-frame") requestFrame(play);
301
+ else play();
302
+ return null;
303
+ }
304
+ holdCompositor();
305
+ const handle = animator.animate({ [axis]: points[target] }, {
306
+ spring,
307
+ ...velocity != null && velocity !== 0 ? { velocity: { [axis]: velocity } } : {}
308
+ }, {
309
+ touchRelease,
310
+ ...settleOptions.start != null ? { start: settleOptions.start } : {}
311
+ });
312
+ let finished = false;
313
+ handle.finished.then((arrived) => {
314
+ finished = true;
315
+ if (inFlight === flight) inFlight = null;
316
+ if (arrived && mine === turn && !destroyed) onSettle(targetIndex);
317
+ });
318
+ const { onPass } = settleOptions;
319
+ if (onPass != null && typeof requestAnimationFrame === "function") {
320
+ const { direction } = onPass;
321
+ const check = (time) => {
322
+ if (destroyed || mine !== turn) return;
323
+ if ((animator.get(axis, time) - onPass.offset) * direction >= 0) {
324
+ flight.passed = true;
325
+ onPass.call();
326
+ return;
327
+ }
328
+ if (!finished) requestAnimationFrame(check);
329
+ };
330
+ requestAnimationFrame(check);
331
+ }
332
+ return handle;
333
+ };
334
+ /** Lands a model's landing (null: the element stays as it is). */
335
+ const land = (landing, touchRelease) => {
336
+ if (landing != null) settle(landing.index, {
337
+ velocity: landing.velocity,
338
+ spring: landing.spring,
339
+ touchRelease
340
+ });
341
+ };
342
+ const pan = createPan(element, {
343
+ axis,
344
+ recognizer: options.pan,
345
+ onPan: ({ state, translation, totalTranslation, velocity, input }) => {
346
+ if (destroyed || points.length === 0) return;
347
+ const moved = {
348
+ translation: translation[axis],
349
+ total: totalTranslation[axis],
350
+ input
351
+ };
352
+ if (state === "began") {
353
+ drag = {
354
+ start: position(),
355
+ startIndex: targetIndex,
356
+ input,
357
+ caught: false
358
+ };
359
+ if (model?.begin?.({
360
+ start: drag.start,
361
+ ...moved
362
+ }) === false) {
363
+ drag = null;
364
+ return;
365
+ }
366
+ }
367
+ if (drag == null) return;
368
+ const reading = {
369
+ start: drag.start,
370
+ ...moved,
371
+ input: drag.input
372
+ };
373
+ if (state === "began" || state === "changed") {
374
+ const target = model?.move != null ? model.move(reading) : { offset: drag.start + moved.translation };
375
+ if (target == null) return;
376
+ if (!drag.caught) {
377
+ drag.caught = true;
378
+ turn += 1;
379
+ holdCompositor();
380
+ }
381
+ if (target.spring == null) animator.set({ [axis]: target.offset });
382
+ else {
383
+ registerSpringsTable();
384
+ animator.animate({ [axis]: target.offset }, { spring: target.spring }, { at: now() });
385
+ }
386
+ return;
387
+ }
388
+ const { startIndex, start } = drag;
389
+ drag = null;
390
+ const touchRelease = reading.input === "touch";
391
+ if (state === "cancelled") {
392
+ if (model?.cancel != null) land(model.cancel(reading), touchRelease);
393
+ else settle(startIndex, {
394
+ velocity: 0,
395
+ touchRelease
396
+ });
397
+ return;
398
+ }
399
+ const release = velocity[axis];
400
+ if (model?.release != null) {
401
+ land(model.release({
402
+ ...reading,
403
+ velocity: release
404
+ }), touchRelease);
405
+ return;
406
+ }
407
+ const { index: target } = resolveSnapPoint({
408
+ points,
409
+ position: position(),
410
+ velocity: release,
411
+ flickThreshold,
412
+ start
413
+ });
414
+ settle(target, {
415
+ velocity: release,
416
+ touchRelease
417
+ });
418
+ }
419
+ });
420
+ return {
421
+ settleTo(target, settleOptions = {}) {
422
+ if (destroyed) return null;
423
+ if (!Number.isInteger(target) || target < 0 || target >= points.length) {
424
+ devWarn("createDragToSnapPoints", `settleTo(${target}) is outside the ${points.length} snap points, so it does nothing.`);
425
+ return null;
426
+ }
427
+ drag = null;
428
+ return settle(target, {
429
+ velocity: 0,
430
+ ...settleOptions
431
+ });
432
+ },
433
+ setSnapPoints(snapPoints) {
434
+ if (destroyed) return;
435
+ const flight = (drag == null || !drag.caught) && inFlight?.turn === turn ? inFlight : null;
436
+ const heading = flight == null ? null : points[targetIndex];
437
+ const startPoint = drag == null ? null : points[drag.startIndex];
438
+ points = sortedSnapPoints(snapPoints);
439
+ if (points.length === 0) {
440
+ turn += 1;
441
+ drag = null;
442
+ holdCompositor();
443
+ animator.stop();
444
+ targetIndex = 0;
445
+ return;
446
+ }
447
+ const nearest = (at) => resolveSnapPoint({
448
+ points,
449
+ position: at,
450
+ velocity: 0,
451
+ flickThreshold
452
+ }).index;
453
+ if (flight != null && heading != null) {
454
+ const { onPass, ...rest } = flight.options;
455
+ settle(nearest(heading), {
456
+ ...rest,
457
+ ...flight.passed ? {} : { onPass },
458
+ velocity: 0
459
+ });
460
+ if (drag != null) drag.startIndex = nearest(startPoint ?? drag.start);
461
+ return;
462
+ }
463
+ targetIndex = nearest(startPoint ?? position());
464
+ if (drag != null) drag.startIndex = targetIndex;
465
+ },
466
+ snapPoints() {
467
+ return points;
468
+ },
469
+ animator,
470
+ position,
471
+ finishSettle() {
472
+ const finish = finishCompositor;
473
+ if (compositor == null || finish == null) return;
474
+ compositor.stop();
475
+ finish();
476
+ },
477
+ destroy() {
478
+ if (destroyed) return;
479
+ destroyed = true;
480
+ pan.destroy();
481
+ holdCompositor();
482
+ animator.stop();
483
+ animator.dispose();
484
+ }
485
+ };
486
+ }
487
+ //#endregion
488
+ //#region src/List/context.ts
489
+ const listContextKey = defineLayerScopedKey("astryx-list-context", void 0);
490
+ /** The surrounding list, or `undefined` when the row stands alone. */
491
+ function useListContext() {
492
+ return readLayerScoped(listContextKey);
493
+ }
494
+ const itemDescriptionContextKey = Symbol("astryx-item-description");
495
+ /**
496
+ * The id of the description element of the nearest row, so a control rendered
497
+ * in one of that row's slots can point `aria-describedby` at it. `null` when
498
+ * the row renders no description.
499
+ */
500
+ function useItemDescriptionId() {
501
+ return inject(itemDescriptionContextKey, computed(() => null));
502
+ }
503
+ /**
504
+ * `ListItem` 直接渲染的那一行读到它。链接行的内边距和热区点按转给里面的链接,
505
+ * 行里的内容(插槽里的嵌套行)读到的是 `null`。
506
+ */
507
+ const itemListRowKey = defineLayerScopedKey("astryx-item-list-row", null);
508
+ //#endregion
509
+ //#region src/List/itemSlots.ts
510
+ /** Renders the row's own last child, after its content and end slot. */
511
+ const itemTrailingKey = Symbol("astryx-item-trailing");
512
+ /** The row's label needs an id: something names itself after it. */
513
+ const itemLabelNeededKey = Symbol("astryx-item-label-needed");
514
+ /** The id of the row's label element, or `null` when it renders none or needs none. */
515
+ const itemLabelIdKey = Symbol("astryx-item-label-id");
516
+ const NONE = computed(() => null);
517
+ const NOT_NEEDED = computed(() => false);
518
+ /** The id of the nearest row's label element, when the row gave it one. */
519
+ function useItemLabelId() {
520
+ return inject(itemLabelIdKey, NONE);
521
+ }
522
+ /**
523
+ * Item's side: reads what its wrapper handed it, then hands its own content
524
+ * nothing and its label's id.
525
+ */
526
+ function useItemSlotsFromWrapper(labelId, hasLabel) {
527
+ const trailing = inject(itemTrailingKey, NONE);
528
+ const isLabelNeeded = inject(itemLabelNeededKey, NOT_NEEDED);
529
+ const shownLabelId = computed(() => isLabelNeeded.value && hasLabel.value ? labelId : null);
530
+ provide(itemTrailingKey, NONE);
531
+ provide(itemLabelNeededKey, NOT_NEEDED);
532
+ provide(itemLabelIdKey, shownLabelId);
533
+ return {
534
+ trailing,
535
+ shownLabelId
536
+ };
537
+ }
538
+ //#endregion
539
+ export { itemDescriptionContextKey as a, useItemDescriptionId as c, DEFAULT_FLICK_THRESHOLD as d, createPanGesture as f, useItemSlotsFromWrapper as i, useListContext as l, itemTrailingKey as n, itemListRowKey as o, useItemLabelId as r, listContextKey as s, itemLabelNeededKey as t, createSnapDrag as u };
@@ -1,5 +1,23 @@
1
1
  import { a as idlePressGesture, n as PRESS_ONSET_MS, o as pressGestureStep, t as PRESS_FLASH_MS } from "./pressGesture-CwmZDuSC.js";
2
2
  import { n as hasInteractiveAncestor } from "./useClickableContainer-Dtjg-nkm.js";
3
+ //#region src/composables/internal/pressHeld.ts
4
+ /**
5
+ * 一块可按表面的按压被它的主人「按住不放」:表面照样接住按压,但什么都不画,和不可用的表面一样,
6
+ * 它外面的表面也不亮。表面里面的可按元素保留自己的按压。
7
+ *
8
+ * 打开着的横滑行把这个标记写在行根上,所以点行的内容只会合上行,不会让行亮起来。
9
+ * 写它的代码负责再把它摘掉;表面始终是可按的。
10
+ */
11
+ const PRESS_HELD = "data-astryx-press-held";
12
+ /** 按住或放开一块表面的按压。 */
13
+ function setPressHeld(surface, isHeld) {
14
+ surface.toggleAttribute(PRESS_HELD, isHeld);
15
+ }
16
+ /** 表面的按压是否被主人按住。 */
17
+ function isPressHeld(surface) {
18
+ return surface.hasAttribute(PRESS_HELD);
19
+ }
20
+ //#endregion
3
21
  //#region src/composables/internal/pressSurface.ts
4
22
  /**
5
23
  * 触屏按压模型里「这一下按的是谁」的判断:从手指落点往上找最里层的可按元素。
@@ -44,7 +62,7 @@ function landsOnNestedControl(target, container) {
44
62
  function pressSurfaceAt(target) {
45
63
  if (!(target instanceof Element)) return null;
46
64
  const found = target.closest(`[${PRESSABLE_ATTRIBUTE}]`);
47
- if (!(found instanceof HTMLElement) || found.matches(DISABLED)) return null;
65
+ if (!(found instanceof HTMLElement) || found.matches(DISABLED) || isPressHeld(found)) return null;
48
66
  if (found.hasAttribute("data-astryx-press-container") && target !== found && landsOnNestedControl(target, found)) return null;
49
67
  return found;
50
68
  }
@@ -219,4 +237,4 @@ function takeOver(other, element) {
219
237
  if (other.live?.element === element) finish(other);
220
238
  }
221
239
  //#endregion
222
- export { finish as a, pressFadeMs as c, PRESS_CONTAINER_ATTRIBUTE as d, PRESS_GROUP_ITEM_ATTRIBUTE as f, finger as i, PRESSABLE_ATTRIBUTE as l, pressSurfaceAt as m, apply as n, releaseIfDead as o, isTrackedByGroup as p, button as r, takeOver as s, PRESSED_ATTRIBUTE as t, PRESS_ACTION_ATTRIBUTE as u };
240
+ export { finish as a, pressFadeMs as c, PRESS_CONTAINER_ATTRIBUTE as d, PRESS_GROUP_ITEM_ATTRIBUTE as f, setPressHeld as h, finger as i, PRESSABLE_ATTRIBUTE as l, pressSurfaceAt as m, apply as n, releaseIfDead as o, isTrackedByGroup as p, button as r, takeOver as s, PRESSED_ATTRIBUTE as t, PRESS_ACTION_ATTRIBUTE as u };
@@ -0,0 +1,73 @@
1
+ import { Component } from "vue";
2
+ //#region src/Swipe/swipeHost.d.ts
3
+ /** 操作长什么样:普通、想要的那个、危险的那个。是动词的分量,不是状态。 */
4
+ type ItemSwipeActionVariant = 'neutral' | 'accent' | 'destructive';
5
+ /**
6
+ * `reveal`:快速松手顺着动的方向走,慢松手过半个面板就停开;停开时每个操作都是真按钮。
7
+ * 一甩永远不触发操作;拖得够远越过确认点,行跑到前面、最外侧操作盖满面板,松手就触发它,
8
+ * 往回拖则作罢。一侧有两个及以上操作时,只有从已停开的行开始的拖动才会触发。
9
+ * `commit`:越过确认点松手,行滑出并触发这一侧唯一的操作;什么都不会停开,面板只是展示。
10
+ * 一侧有两个及以上操作时 `commit` 一个都不触发。
11
+ */
12
+ type ItemSwipeBehavior = 'reveal' | 'commit';
13
+ /**
14
+ * 一个动词。行把它画成按 `variant` 着色的一块,图标在标签上面。
15
+ * 所有字段在手势开始前就已知,所以定义可以放在模块顶层。
16
+ */
17
+ interface SwipeAction<Id extends string = string> {
18
+ /**
19
+ * 操作的名字。`onActivate` 会收到它,行也按操作的 id 区分面板:
20
+ * 换成 id 相同的新值,停开的行保持停开;id 变了,行合上。
21
+ */
22
+ id: Id;
23
+ /** 动词的名字,也是行停开时按钮的无障碍名称。写动词达成的状态(「已读」),手势本身已经表达了动作。 */
24
+ label: string;
25
+ /** 画在标签上面。 */
26
+ icon?: Component;
27
+ /**
28
+ * 点停开的操作、全滑到底、或 `commit` 松手时触发。行滑出时(全滑、commit、带 `hasRemoval`
29
+ * 的操作被点),等行的内容离开原来的盒子才触发;没有 `hasRemoval` 的操作被点时立即触发。
30
+ * 收到操作的 `id` 和行的 `itemKey`(`ListItem` 的,普通 `Item` 上是 `undefined`),
31
+ * 所以一个处理函数就能服务所有行。可以返回 Promise,行不等它。
32
+ */
33
+ onActivate: (event: {
34
+ id: Id;
35
+ itemKey: string | number | undefined;
36
+ }) => void;
37
+ isDisabled?: boolean;
38
+ /** @default 'accent' */
39
+ variant?: ItemSwipeActionVariant;
40
+ /**
41
+ * 操作触发后行停在滑出的位置,不弹回。只表示这一点:不代表调用方会删掉这一行,
42
+ * 和 `swipeBehavior`、`variant` 互不相关。
43
+ * @default false
44
+ */
45
+ hasRemoval?: boolean;
46
+ }
47
+ /**
48
+ * 每一侧横滑露出的动词(越靠后越靠外),以及两侧共用的收场方式。
49
+ * `leading` 由往行内末尾的拖动露出,`trailing` 由往行内开头的拖动露出。
50
+ */
51
+ interface CreateSwipeOptions<Id extends string = string> {
52
+ /** 往行内末尾拖(从左到右的文字里是向右)露出;越靠后越靠外。 */
53
+ leading?: ReadonlyArray<SwipeAction<Id>>;
54
+ /** 往行内开头拖(从左到右的文字里是向左)露出;越靠后越靠外。 */
55
+ trailing?: ReadonlyArray<SwipeAction<Id>>;
56
+ /**
57
+ * 横滑怎么收场,两侧共用。见 `ItemSwipeBehavior`。
58
+ * @default 'reveal'
59
+ */
60
+ swipeBehavior?: ItemSwipeBehavior;
61
+ }
62
+ /**
63
+ * 配好的横滑操作。只能由 `createSwipe` 造出、只能传给 `swipe`,里面没有可读的内容。
64
+ * 它的类型带着操作的 id。
65
+ */
66
+ interface Swipe<Id extends string = string> {
67
+ /** 永远不存在的品牌字段,只给类型用。 */
68
+ readonly '@astryx-vue/core/swipe/v1'?: never;
69
+ /** 操作的 id,只给类型用,永远不存在。 */
70
+ readonly '@astryx-vue/core/swipe/ids'?: Id;
71
+ }
72
+ //#endregion
73
+ export { SwipeAction as a, Swipe as i, ItemSwipeActionVariant as n, ItemSwipeBehavior as r, CreateSwipeOptions as t };