@astryx-vue/core 0.48.3 → 0.49.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.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-CZv_5cjZ.js → AlertDialog-DNgVPORz.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-rKRkWR6U.js → Banner-Bf02r-yq.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CmTe311W.js → Breadcrumbs-BO92n_gZ.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-ByMwpaTC.js → Button-DwmMamqP.js} +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-DlzYnaXk.js → ButtonGroup-BXakzcni.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-PAvDguJz.js → Carousel-ChQ4iAbd.js} +1 -1
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-CYljOQ16.js → Chat-BQ3X4O_m.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-B7LhVr3T.js → CheckboxInput-BV24VjGX.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CC-9D_l_.js → CheckboxListItem-CkRd0wCc.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-Aw-ZvPzl.js → Code-BF64T695.js} +1 -1
- package/dist/{CodeBlock-BZUBgEQK.js → CodeBlock-BBDJUZfC.js} +6 -6
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BewrtpKV.js → ComplexSelector-CEhKT_Ch.js} +2 -2
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CQlYu1dv.js → ContextMenu-Q9eY1PTu.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-D78SOx0f.js → DateInput-B6QlWwYX.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-PnBK_G5d.js → DateRangeInput-CekZEo9D.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DPoTqJ36.js → DateTimeInput-BQJbBokF.js} +4 -4
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-CT4gkqfm.js → DialogHeader-CFOZWZCo.js} +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-BkU8kiAU.js → Drawer-C7TKWFC2.js} +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-WuoVaE3D.js → DropdownMenu-B-RXka4k.js} +3 -3
- package/dist/{DropdownMenuRadioItem.vue-Ck5Goxxp.d.ts → DropdownMenuRadioItem.vue-Dnvhnk6I.d.ts} +1 -1
- package/dist/Field/index.js +3 -3
- package/dist/{Field-2ypSh8vl.js → Field-BBUdFefr.js} +1 -1
- package/dist/{FieldInfoTip-Dss2g3m-.js → FieldInfoTip-B5pHDMoB.js} +1 -1
- package/dist/{FieldLabel-D0gHrlZZ.js → FieldLabel-Bmf3rMAj.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-B00g3NMy.js → FileInput-CTbpyb7U.js} +3 -3
- package/dist/Heading/index.d.ts +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/Icon/index.d.ts +2 -2
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-BilMzjDj.js → IconButton-BECXhNpc.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-YXziP1RR.js → InfoTip-CzqdqGQb.js} +1 -1
- package/dist/{InputClearButton-DEmIF1Dt.js → InputClearButton-DCmZXm1V.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-Eodo_3A2.js → InputGroup-BCFekxRW.js} +1 -1
- package/dist/{Item-D6y1lkrO.js → Item-Bu6zfWmO.js} +8 -5
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Di1n_Ghn.js → Lightbox-BuN6O4LJ.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +3 -3
- package/dist/List/index.js +6 -5
- package/dist/{List-DkH8AKN1.js → List-j_6OjfPy.js} +4 -3
- package/dist/{ListItem-5d5B-FOb.js → ListItem-BecR-pIf.js} +45 -16
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DvBtpprk.js → Markdown-DuhbgLxR.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-bUsXdSxn.js → MoreMenu-DR69661F.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-gLmtlWmJ.js → MultiSelector-CJhk6rE5.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-BBEONs4g.js → NumberInput-u_srLjWB.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cu9RHoEu.js → Pagination-oedlA7QU.js} +3 -3
- package/dist/Popover/index.d.ts +2 -2
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CgyIJd4u.js → Popover-BPJ1JOpo.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DB17gW3o.js → PowerSearch-6J57Tf11.js} +17 -17
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-WoFdfefT.js → RadioGroup-DX-CMn6z.js} +2 -2
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-CULhpyUB.js → RadioListItem-D3ZGR-2p.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BDD1z8ow.js → SegmentedControl-C1H0lJhN.js} +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-V9YZ6h09.js → Selector-B3kb-prB.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BQbQ4vk6.js → SideNav-BFTTsfpL.js} +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-IqPowFpR.js → Slider-DDyAlIYs.js} +1 -1
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-C3Z-eqrJ.js → Switch-CCWpRU3s.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-B6EYjM3T.js → Table-z2KzblHT.js} +16 -16
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-vg40GTUn.js → TextArea-D0iKBXn5.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BT5SNPml.js → TextInput-C7Hz5OMa.js} +4 -4
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-DjTQfpBD.js → Thumbnail-B3BSsLvy.js} +1 -1
- package/dist/{TimeField-Ni4p7bg4.js → TimeField-BKJLhDGx.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-x5uEONH9.js → TimeInput-B05w9Zi7.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CGhrqcmb.js → Timestamp-CRuJNA1J.js} +8 -8
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DDOAUhO2.js → Toast-3geCc5ms.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-BQrwvaI1.js → ToggleButton-BK5Fjp05.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-CU2M1KhH.js → Tokenizer-DLPRqWnJ.js} +4 -4
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-_ijsXkA2.js → Typeahead-kiQZR_mY.js} +2 -2
- package/dist/{accessibleName-COG4Ik6i.js → accessibleName-41pKwUlI.js} +1 -1
- package/dist/{adaptationTypes-ChvftfT2.d.ts → adaptationTypes-DtZ4sfHW.d.ts} +1 -1
- package/dist/{compactDefinition-BruPZusf.d.ts → compactDefinition-CJ7U-1ki.d.ts} +1 -1
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/index.js +3 -3
- package/dist/{composables-G10dqPNt.js → composables-Bx5tWrpo.js} +165 -71
- package/dist/{createReorderable-Bw3Q9mUd.d.ts → createReorderable-yDBsr_S2.d.ts} +26 -1
- package/dist/{index-BfFpUr1B.d.ts → index-3LdpzxQZ.d.ts} +1 -1
- package/dist/{index-BtS6x0HF.d.ts → index-B4vbiBIK.d.ts} +1 -1
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-DwG42flu.d.ts → index-BAewXS3B.d.ts} +4 -4
- package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-BgT6mH3U.d.ts → index-BR3MOBYd.d.ts} +2 -2
- package/dist/{index-BbHuan0g.d.ts → index-BZ_lQz43.d.ts} +1 -1
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-mK1ICsVg.d.ts → index-C9uW39Mj.d.ts} +3 -3
- package/dist/{index-zHX0wDmq.d.ts → index-CX_DhZP6.d.ts} +65 -65
- package/dist/{index-DJ14EAf2.d.ts → index-CiQe0lC6.d.ts} +2 -2
- package/dist/{index-CD1-Hqm0.d.ts → index-CmqD5Ya9.d.ts} +2 -2
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
- package/dist/{index-B8NGDyIe.d.ts → index-DSAtZP4A.d.ts} +1 -1
- package/dist/{index-CjCJRK-z.d.ts → index-DVh2VnYE.d.ts} +1 -1
- package/dist/{index-Er_LwyZ7.d.ts → index-Dc0PpHtw.d.ts} +1 -1
- package/dist/{index-SdevVVTE.d.ts → index-DpyZvaKL.d.ts} +3 -3
- package/dist/{index-DEeR90QP.d.ts → index-DzIm3T2F.d.ts} +6 -6
- package/dist/{index-CJB63c7Y.d.ts → index-HW957XKH.d.ts} +4 -4
- package/dist/{index-B_XTzQhm.d.ts → index-JCxvZLM1.d.ts} +2 -2
- package/dist/{index-BtqvPjAf.d.ts → index-Otl047R1.d.ts} +2 -2
- package/dist/{index-tdOyqA_U.d.ts → index-Pad9p8CU.d.ts} +2 -2
- package/dist/{index-Dmr81uHZ.d.ts → index-YpwwNU0k.d.ts} +2 -2
- package/dist/{index-Ds4dOCSy.d.ts → index-m-fFGq2e.d.ts} +1 -1
- package/dist/{index-BzoS2kIC.d.ts → index-p-3TjnAx.d.ts} +1 -1
- package/dist/{index-bXbjUqwx.d.ts → index-qWsSnTeH.d.ts} +6 -6
- package/dist/{index-DyvHDvtx.d.ts → index-qfgwQY3C.d.ts} +51 -4
- package/dist/{index-rXRK6WSZ.d.ts → index-u0S11WWM.d.ts} +1 -1
- package/dist/{index-C2zmTbpC.d.ts → index-uUPApRZX.d.ts} +1 -1
- package/dist/index.d.ts +39 -39
- package/dist/index.js +61 -60
- package/dist/internal/touch.js +1 -1
- package/dist/{itemSlots-DtrAXXlG.js → itemSlots-BxdGvQQt.js} +3 -3
- package/dist/reorderMarks-AcPJbqH_.js +64 -0
- package/dist/{reorderTypes-CvmAkO-R.js → reorderTypes-P74-IlCD.js} +18 -5
- package/dist/{semantic-CPGOW6Vf.d.ts → semantic-DJT2VDXi.d.ts} +2 -0
- package/dist/{types-FT6yUPZi.d.ts → types-8RqDWwvd.d.ts} +1 -1
- package/dist/{types-xOsWAC6i.d.ts → types-FJdc8Z4x.d.ts} +13 -5
- package/dist/{useActionGroupTracking-fTU4uvzA.js → useActionGroupTracking-CQa3WqUI.js} +1 -1
- package/dist/{useInputStatusIcon-DFx25PSi.js → useInputStatusIcon-B4QDbnjc.js} +1 -1
- package/dist/{useTouchHitArea-Cs4K31MA.js → useTouchHitArea-oji1qpyF.js} +1 -1
- package/package.json +1 -1
- package/styles/list-reorder.css +180 -19
- package/styles/list.css +10 -3
- package/dist/{Theme-Cw4hiTNt.js → Theme-Dy7FHpog.js} +1 -1
- package/dist/{index-7tsRPFfY.d.ts → index-CNZCQgHF.d.ts} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as subscribeInput } from "./inputStream-CFvjNDgT.js";
|
|
2
|
-
import { n as useTouchHitArea } from "./useTouchHitArea-
|
|
2
|
+
import { c as plainRect, l as screenScale, n as useTouchHitArea, o as growth, s as inLayout } from "./useTouchHitArea-oji1qpyF.js";
|
|
3
3
|
import { f as toSpring, u as durationBounceOf } from "./roles-D6hLs7Rg.js";
|
|
4
4
|
import { i as reducedMotionCrossFade } from "./linearEasing-CDsqxyiS.js";
|
|
5
5
|
import { f as scroll, r as UIKIT_GESTURES } from "./gestures-BpGkqgpV.js";
|
|
@@ -18,15 +18,17 @@ import { t as getGestureHost } from "./GestureHost-CnGqeHAJ.js";
|
|
|
18
18
|
import { t as PanGestureRecognizer } from "./PanGestureRecognizer-DZpS28MS.js";
|
|
19
19
|
import { i as locksSelectionFor, n as lockSelection } from "./selectionLock-c18P1UV3.js";
|
|
20
20
|
import { t as VelocityTracker } from "./VelocityTracker-Cw1aVRnL.js";
|
|
21
|
-
import { f as createPanGesture, l as useListContext, r as useItemLabelId, u as createSnapDrag } from "./itemSlots-
|
|
21
|
+
import { f as createPanGesture, l as useListContext, r as useItemLabelId, u as createSnapDrag } from "./itemSlots-BxdGvQQt.js";
|
|
22
|
+
import { t as _sfc_main$5 } from "./ComponentIcon-DEcgLIM0.js";
|
|
22
23
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
23
24
|
import { n as listMessages, t as keyboardHintMessages } from "./keyboard-hint-DZrL82bU.js";
|
|
24
25
|
import { t as renderedText } from "./renderedText-BwJdmps3.js";
|
|
26
|
+
import { c as markReorderPreview, d as reorderHandlesIn, f as showReorderLine, i as hideReorderLine, l as markReorderSource, n as clearReordering, o as isReordering, r as closestReorderHandle, s as listReorderHandleAttrs, t as clearReorderSource, u as markReordering } from "./reorderMarks-AcPJbqH_.js";
|
|
25
27
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
26
|
-
import { t as _sfc_main$
|
|
28
|
+
import { t as _sfc_main$6 } from "./Kbd-CwtGTUmB.js";
|
|
27
29
|
import { n as paintedBackground, t as inertClone } from "./inertClone-BUK-k6-n.js";
|
|
28
30
|
import { t as nearestScroller } from "./scrollingAncestor-QzzYeTWo.js";
|
|
29
|
-
import { a as markLeaving, n as isLeaving, t as REORDER_ENGINE } from "./reorderTypes-
|
|
31
|
+
import { a as markLeaving, n as isLeaving, o as markTravelling, s as setTravellingBackdrop, t as REORDER_ENGINE } from "./reorderTypes-P74-IlCD.js";
|
|
30
32
|
import { r as reducesMotion } from "./reducedMotion-CgciA13L.js";
|
|
31
33
|
import { t as createDevWarnings } from "./devWarnings-DI1R0rGp.js";
|
|
32
34
|
import { t as LongPressGestureRecognizer } from "./LongPressGestureRecognizer-BA7RijIc.js";
|
|
@@ -37,6 +39,7 @@ import { r as makeSnapPaging, s as snapPages } from "./snapPagingValue-B5hfph1H.
|
|
|
37
39
|
import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-CCk8lhbz.js";
|
|
38
40
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, getCurrentScope, h, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, ref, renderList, renderSlot, shallowRef, toDisplayString, toValue, unref, useId, useTemplateRef, vShow, watch, watchEffect, withCtx, withDirectives, withModifiers } from "vue";
|
|
39
41
|
import "../styles/layer.css";
|
|
42
|
+
import "../styles/container-reveal.css";
|
|
40
43
|
import "../styles/list-reorder.css";
|
|
41
44
|
import "../styles/keyboard-hint.css";
|
|
42
45
|
import "../styles/indicator-focus-ring.css";
|
|
@@ -332,63 +335,27 @@ function releaseMotion(element, ...properties) {
|
|
|
332
335
|
for (const property of properties) if (isIdentityText(property, element.style.getPropertyValue(property))) element.style.removeProperty(property);
|
|
333
336
|
}
|
|
334
337
|
//#endregion
|
|
335
|
-
//#region src/List/reorder/
|
|
338
|
+
//#region src/List/reorder/reorderHandleHitArea.ts
|
|
336
339
|
/**
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
* (`data-astryx-reordering`), its insertion line
|
|
342
|
-
* (`data-astryx-reorder-line`), the dimmed source row
|
|
343
|
-
* (`data-astryx-reorder-source`) and the preview copy
|
|
344
|
-
* (`data-astryx-reorder-preview`)
|
|
345
|
-
* @position List reorder internals: only this file writes these names.
|
|
346
|
-
* styles/list.css reads them. Not exported from the package root.
|
|
340
|
+
* A finger's target grows toward 44 px, centred on the grip, but it stays
|
|
341
|
+
* inside its list on the block axis. On the first and last rows, a control
|
|
342
|
+
* right against the list's top or bottom edge then keeps its taps, as it does
|
|
343
|
+
* next to the rows' own targets. The insets are the handle's layout px.
|
|
347
344
|
*/
|
|
348
|
-
|
|
349
|
-
const
|
|
350
|
-
const
|
|
351
|
-
const
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
const
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
/**
|
|
362
|
-
* The list reorders: a drag or a reorder mode move owns its next commit, and
|
|
363
|
-
* its handles show the grabbing cursor.
|
|
364
|
-
*/
|
|
365
|
-
function markReordering(list) {
|
|
366
|
-
list.setAttribute(REORDERING, "");
|
|
367
|
-
}
|
|
368
|
-
function clearReordering(list) {
|
|
369
|
-
list.removeAttribute(REORDERING);
|
|
370
|
-
}
|
|
371
|
-
function isReordering(list) {
|
|
372
|
-
return list.hasAttribute(REORDERING);
|
|
373
|
-
}
|
|
374
|
-
/** The list's insertion line (its `::after`) shows. */
|
|
375
|
-
function showReorderLine(list) {
|
|
376
|
-
list.setAttribute(REORDER_LINE, "");
|
|
377
|
-
}
|
|
378
|
-
function hideReorderLine(list) {
|
|
379
|
-
list.removeAttribute(REORDER_LINE);
|
|
380
|
-
}
|
|
381
|
-
/** The dragged row, dimmed in its place while its preview moves. */
|
|
382
|
-
function markReorderSource(row) {
|
|
383
|
-
row.setAttribute(REORDER_SOURCE, "");
|
|
384
|
-
}
|
|
385
|
-
function clearReorderSource(row) {
|
|
386
|
-
row.removeAttribute(REORDER_SOURCE);
|
|
387
|
-
}
|
|
388
|
-
/** The copy of the dragged row that follows the pointer. */
|
|
389
|
-
function markReorderPreview(element) {
|
|
390
|
-
element.setAttribute(REORDER_PREVIEW, "");
|
|
345
|
+
function reorderHandleGrowth(target, element) {
|
|
346
|
+
const scale = screenScale(element, target);
|
|
347
|
+
const box = inLayout(target, target, scale);
|
|
348
|
+
const full = growth(box);
|
|
349
|
+
const list = element.closest("ul, ol");
|
|
350
|
+
if (list == null) return full;
|
|
351
|
+
const bounds = inLayout(plainRect(list), target, scale);
|
|
352
|
+
return {
|
|
353
|
+
...full,
|
|
354
|
+
top: Math.max(0, Math.min(full.top, box.top - bounds.top)),
|
|
355
|
+
bottom: Math.max(0, Math.min(full.bottom, bounds.bottom - box.bottom))
|
|
356
|
+
};
|
|
391
357
|
}
|
|
358
|
+
const REORDER_HANDLE_HIT_AREA = { growth: reorderHandleGrowth };
|
|
392
359
|
//#endregion
|
|
393
360
|
//#region src/List/reorder/reorderState.ts
|
|
394
361
|
function messagesFrom(list) {
|
|
@@ -421,6 +388,10 @@ function gestureStateOf(state) {
|
|
|
421
388
|
//#region src/List/reorder/ListReorderHandle.vue
|
|
422
389
|
const _hoisted_1$4 = [
|
|
423
390
|
"id",
|
|
391
|
+
"data-placement",
|
|
392
|
+
"data-reveal",
|
|
393
|
+
"data-hangs",
|
|
394
|
+
"data-in-end-slot",
|
|
424
395
|
"data-row-align",
|
|
425
396
|
"aria-label",
|
|
426
397
|
"aria-labelledby",
|
|
@@ -440,17 +411,39 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
440
411
|
type: Boolean,
|
|
441
412
|
default: false
|
|
442
413
|
},
|
|
443
|
-
rowAlign: {}
|
|
414
|
+
rowAlign: {},
|
|
415
|
+
placement: { default: "end" },
|
|
416
|
+
isAlwaysVisible: {
|
|
417
|
+
type: Boolean,
|
|
418
|
+
default: true
|
|
419
|
+
},
|
|
420
|
+
isInRow: {
|
|
421
|
+
type: Boolean,
|
|
422
|
+
default: false
|
|
423
|
+
},
|
|
424
|
+
isInEndSlot: {
|
|
425
|
+
type: Boolean,
|
|
426
|
+
default: false
|
|
427
|
+
}
|
|
444
428
|
},
|
|
445
429
|
setup(__props) {
|
|
446
430
|
/**
|
|
447
|
-
*
|
|
448
|
-
*
|
|
431
|
+
* 可重排行的手柄:一个切换按钮,默认在行末,`handle.placement` 为 `start` 时在行首。鼠标按住拖过 4px、
|
|
432
|
+
* 手指按住片刻后拖,都会拖动这一行;点一下(或空格、回车)进入重排模式,`aria-pressed` 表示模式开着。
|
|
433
|
+
*
|
|
434
|
+
* 手柄只有一个握把:主题 `list-reorder-handle` 槽位的图标(默认 `menu`),对辅助技术隐藏,框固定 1rem。
|
|
435
|
+
* 四周有一圈看不见、至少 24px 的点按范围;粗指针下它朝 44px 长,但不伸出列表的上下边。
|
|
436
|
+
* `isAlwaysVisible` 为假时,细指针下它只在行悬停或含焦点时显示,挂在行内容外面,不占位置。
|
|
449
437
|
*
|
|
450
438
|
* 名字跟着行走:行有自己的名字时叫「调整「名字」的顺序」;借行的标签元素命名时只写动词,
|
|
451
439
|
* 后半句由 `aria-labelledby` 指过去;行没有能读的名字时按位置叫「调整第 N 项的顺序」。
|
|
452
440
|
*/
|
|
453
441
|
const props = __props;
|
|
442
|
+
/** 主题没给槽位时画的握把。 */
|
|
443
|
+
const REORDER_GRIP_FALLBACK = {
|
|
444
|
+
icon: "menu",
|
|
445
|
+
size: "sm"
|
|
446
|
+
};
|
|
454
447
|
const button = useTemplateRef("button");
|
|
455
448
|
const list = useListContext();
|
|
456
449
|
const controller = computed(() => list?.reorder.value?.session);
|
|
@@ -534,7 +527,8 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
534
527
|
if (labelledBy.value != null) return list.reorderHandleVerb;
|
|
535
528
|
return text.value !== "" ? list.reorderHandle(text.value) : void 0;
|
|
536
529
|
});
|
|
537
|
-
useTouchHitArea(button, computed(() => controller.value != null && !props.isDisabled));
|
|
530
|
+
useTouchHitArea(button, computed(() => controller.value != null && !props.isDisabled), REORDER_HANDLE_HIT_AREA);
|
|
531
|
+
const hangs = computed(() => !props.isAlwaysVisible && !props.isInRow);
|
|
538
532
|
function onClick() {
|
|
539
533
|
const session = controller.value;
|
|
540
534
|
if (session != null && !session.takeDrag(button.value) && !props.isDisabled) session.toggleMode(button.value);
|
|
@@ -559,9 +553,13 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
559
553
|
ref_key: "button",
|
|
560
554
|
ref: button,
|
|
561
555
|
type: "button",
|
|
562
|
-
class: "astryx-list-reorder-handle astryx-touch-hit-area"
|
|
556
|
+
class: ["astryx-list-reorder-handle astryx-touch-hit-area", { "astryx-reveal__content--preserve": !__props.isAlwaysVisible }]
|
|
563
557
|
}, unref(listReorderHandleAttrs), {
|
|
564
558
|
"data-astryx-pressable": "",
|
|
559
|
+
"data-placement": __props.placement,
|
|
560
|
+
"data-reveal": __props.isAlwaysVisible ? "always" : "adaptive",
|
|
561
|
+
"data-hangs": hangs.value || void 0,
|
|
562
|
+
"data-in-end-slot": __props.isInEndSlot || void 0,
|
|
565
563
|
"data-row-align": __props.rowAlign,
|
|
566
564
|
"aria-label": name.value,
|
|
567
565
|
"aria-labelledby": shownLabelledBy.value == null ? void 0 : `${verbId} ${shownLabelledBy.value}`,
|
|
@@ -574,7 +572,12 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
574
572
|
onPointerdown: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"])),
|
|
575
573
|
onTouchstartPassive: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"])),
|
|
576
574
|
onContextmenu: onContextMenu
|
|
577
|
-
}),
|
|
575
|
+
}), [createVNode(_sfc_main$5, {
|
|
576
|
+
class: "astryx-list-reorder-handle__grip",
|
|
577
|
+
"icon-slot": "list-reorder-handle",
|
|
578
|
+
fallback: REORDER_GRIP_FALLBACK,
|
|
579
|
+
color: "inherit"
|
|
580
|
+
})], 16, _hoisted_1$4)) : createCommentVNode("v-if", true);
|
|
578
581
|
};
|
|
579
582
|
}
|
|
580
583
|
});
|
|
@@ -706,7 +709,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
706
709
|
label: unref(messages).list.reorderMoveUp,
|
|
707
710
|
onPress: _cache[0] || (_cache[0] = ($event) => step(-1))
|
|
708
711
|
}, {
|
|
709
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
712
|
+
default: withCtx(() => [createVNode(_sfc_main$6, {
|
|
710
713
|
keys: "up",
|
|
711
714
|
"aria-hidden": "true"
|
|
712
715
|
})]),
|
|
@@ -716,7 +719,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
716
719
|
label: unref(messages).list.reorderMoveDown,
|
|
717
720
|
onPress: _cache[1] || (_cache[1] = ($event) => step(1))
|
|
718
721
|
}, {
|
|
719
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
722
|
+
default: withCtx(() => [createVNode(_sfc_main$6, {
|
|
720
723
|
keys: "down",
|
|
721
724
|
"aria-hidden": "true"
|
|
722
725
|
})]),
|
|
@@ -1572,6 +1575,32 @@ var ReorderNames = class extends ReorderBase {
|
|
|
1572
1575
|
//#endregion
|
|
1573
1576
|
//#region src/List/reorder/reorderDrag.ts
|
|
1574
1577
|
var ReorderDrag = class extends ReorderNames {
|
|
1578
|
+
/** A re-grab or the rest step ends the mark that the drop started. */
|
|
1579
|
+
travelEnds = /* @__PURE__ */ new WeakMap();
|
|
1580
|
+
/**
|
|
1581
|
+
* Marks a dropped row as travelling for the length of its glide: it rides
|
|
1582
|
+
* above the rows it passes, on its preview's backdrop.
|
|
1583
|
+
*/
|
|
1584
|
+
travel(row, backdrop) {
|
|
1585
|
+
setTravellingBackdrop(row, backdrop);
|
|
1586
|
+
this.travelEnds.set(row, markTravelling(row));
|
|
1587
|
+
}
|
|
1588
|
+
endTravel(row) {
|
|
1589
|
+
const end = this.travelEnds.get(row);
|
|
1590
|
+
if (end != null) {
|
|
1591
|
+
this.travelEnds.delete(row);
|
|
1592
|
+
end();
|
|
1593
|
+
setTravellingBackdrop(row, null);
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
/**
|
|
1597
|
+
* The row's handle top inside the row, or 0 without a handle. It reads
|
|
1598
|
+
* layout; a transform on the row moves both boxes alike.
|
|
1599
|
+
*/
|
|
1600
|
+
handleInset(row) {
|
|
1601
|
+
const handle = this.handleIn(row);
|
|
1602
|
+
return handle == null ? 0 : handle.getBoundingClientRect().top - row.getBoundingClientRect().top;
|
|
1603
|
+
}
|
|
1575
1604
|
gesture(row, event) {
|
|
1576
1605
|
switch (event.state) {
|
|
1577
1606
|
case "began":
|
|
@@ -1601,6 +1630,7 @@ var ReorderDrag = class extends ReorderNames {
|
|
|
1601
1630
|
if (dragged < 0 || !movable[dragged]) return false;
|
|
1602
1631
|
const at = motionNow();
|
|
1603
1632
|
const tops = rows.map((element) => layoutTop(element, list));
|
|
1633
|
+
const insets = rows.map((element) => this.handleInset(element));
|
|
1604
1634
|
const heights = rows.map((element) => element.offsetHeight);
|
|
1605
1635
|
const lineSpan = lineSpanOf(row, list);
|
|
1606
1636
|
const previewSpan = previewSpanOf(row, list);
|
|
@@ -1617,6 +1647,7 @@ var ReorderDrag = class extends ReorderNames {
|
|
|
1617
1647
|
const shown = shownY(row, at);
|
|
1618
1648
|
const origin = row.getBoundingClientRect().top - shown - tops[dragged];
|
|
1619
1649
|
const scroller = scrollerOf(list);
|
|
1650
|
+
this.endTravel(row);
|
|
1620
1651
|
const restore = {
|
|
1621
1652
|
zIndex: row.style.zIndex,
|
|
1622
1653
|
backgroundColor: row.style.backgroundColor,
|
|
@@ -1639,6 +1670,7 @@ var ReorderDrag = class extends ReorderNames {
|
|
|
1639
1670
|
list,
|
|
1640
1671
|
rows,
|
|
1641
1672
|
tops,
|
|
1673
|
+
insets,
|
|
1642
1674
|
geometry,
|
|
1643
1675
|
dragged,
|
|
1644
1676
|
lineSpan,
|
|
@@ -1659,6 +1691,7 @@ var ReorderDrag = class extends ReorderNames {
|
|
|
1659
1691
|
step: 0,
|
|
1660
1692
|
restore,
|
|
1661
1693
|
preview,
|
|
1694
|
+
background,
|
|
1662
1695
|
previewOffset: 0,
|
|
1663
1696
|
scrollStale: false,
|
|
1664
1697
|
ownScroll: false,
|
|
@@ -1941,10 +1974,12 @@ var ReorderDrop = class extends ReorderDrag {
|
|
|
1941
1974
|
list,
|
|
1942
1975
|
rows,
|
|
1943
1976
|
tops: session.tops,
|
|
1977
|
+
insets: session.insets,
|
|
1944
1978
|
dragged,
|
|
1945
1979
|
droppedTop,
|
|
1946
1980
|
velocity,
|
|
1947
1981
|
restore: session.restore,
|
|
1982
|
+
background: session.background,
|
|
1948
1983
|
releasedAt
|
|
1949
1984
|
};
|
|
1950
1985
|
options.onReorder({
|
|
@@ -2006,6 +2041,7 @@ var ReorderDrop = class extends ReorderDrag {
|
|
|
2006
2041
|
running.handle.finished.then(settle);
|
|
2007
2042
|
return;
|
|
2008
2043
|
}
|
|
2044
|
+
this.endTravel(element);
|
|
2009
2045
|
element.style.zIndex = restore.zIndex;
|
|
2010
2046
|
element.style.backgroundColor = restore.backgroundColor;
|
|
2011
2047
|
for (const row of restore.rows) releaseMotion(row, "translate");
|
|
@@ -2096,14 +2132,14 @@ var ReorderDrop = class extends ReorderDrag {
|
|
|
2096
2132
|
return {
|
|
2097
2133
|
element,
|
|
2098
2134
|
index,
|
|
2099
|
-
shift: (index === pending.dragged ? pending.droppedTop : pending.tops[index]) - layoutTop(element, list),
|
|
2135
|
+
shift: (index === pending.dragged ? pending.droppedTop : pending.tops[index]) + pending.insets[index] - this.handleInset(element) - layoutTop(element, list),
|
|
2100
2136
|
value: shownY(element, at),
|
|
2101
2137
|
moving: isMoving(element)
|
|
2102
2138
|
};
|
|
2103
2139
|
});
|
|
2104
2140
|
const settles = (row) => Math.abs(row.value + row.shift) < .5 && !row.moving;
|
|
2105
2141
|
const glides = (row) => !settles(row) && Math.abs(row.shift) >= .5;
|
|
2106
|
-
const spring =
|
|
2142
|
+
const spring = !landsAtOnce && rows.some((row) => row != null && glides(row)) ? touchMotion.glideBase(list) : null;
|
|
2107
2143
|
for (const row of rows) {
|
|
2108
2144
|
if (row == null) continue;
|
|
2109
2145
|
const { element, index, shift, value, moving } = row;
|
|
@@ -2112,8 +2148,10 @@ var ReorderDrop = class extends ReorderDrag {
|
|
|
2112
2148
|
continue;
|
|
2113
2149
|
}
|
|
2114
2150
|
if (!glides(row)) continue;
|
|
2115
|
-
if (spring != null && index === pending.dragged)
|
|
2116
|
-
|
|
2151
|
+
if (spring != null && index === pending.dragged) {
|
|
2152
|
+
if (!reducesMotion(list)) this.travel(element, pending.background || "transparent");
|
|
2153
|
+
touchMotion.glide(element, shift, spring, at, pending.velocity);
|
|
2154
|
+
} else if (spring != null) touchMotion.follow(element, shift, spring, at);
|
|
2117
2155
|
else settleAtRest(element, value, moving);
|
|
2118
2156
|
}
|
|
2119
2157
|
clearReordering(list);
|
|
@@ -2151,11 +2189,67 @@ var ReorderDrop = class extends ReorderDrag {
|
|
|
2151
2189
|
}
|
|
2152
2190
|
};
|
|
2153
2191
|
//#endregion
|
|
2192
|
+
//#region src/List/reorder/reorderLayout.ts
|
|
2193
|
+
function placementOf(handle) {
|
|
2194
|
+
return handle?.placement === "start" ? "start" : "end";
|
|
2195
|
+
}
|
|
2196
|
+
function isAlwaysVisibleOf(handle) {
|
|
2197
|
+
return (handle?.revealBehavior ?? "always") === "always";
|
|
2198
|
+
}
|
|
2199
|
+
/** Rows that reach their container's padding edge keep their handles in them. */
|
|
2200
|
+
function reachesPadding(edge) {
|
|
2201
|
+
return edge === "outset" || edge === "bleed";
|
|
2202
|
+
}
|
|
2203
|
+
const REVEALING_ROW = { class: "astryx-reveal" };
|
|
2204
|
+
const ROOM_AT_START = { "data-reorder-room": "start" };
|
|
2205
|
+
const ROOM_AFTER_MARKER = { "data-reorder-room": "marker" };
|
|
2206
|
+
const NO_ATTRS = {};
|
|
2207
|
+
/** Where a List row's handle sits, and the row's own attributes for it. */
|
|
2208
|
+
function reorderRowLayout({ edge, handle, hasHandle, hasMarker, hasEndContent }) {
|
|
2209
|
+
const placement = placementOf(handle);
|
|
2210
|
+
const isAtStart = placement === "start";
|
|
2211
|
+
const isAlwaysVisible = isAlwaysVisibleOf(handle);
|
|
2212
|
+
const isAfterMarker = isAtStart && hasMarker;
|
|
2213
|
+
const isInRow = isAfterMarker || reachesPadding(edge);
|
|
2214
|
+
let rowAttrs = NO_ATTRS;
|
|
2215
|
+
if (hasHandle) rowAttrs = isAlwaysVisible ? NO_ATTRS : REVEALING_ROW;
|
|
2216
|
+
else if (isAfterMarker) rowAttrs = ROOM_AFTER_MARKER;
|
|
2217
|
+
else if (isAtStart) rowAttrs = ROOM_AT_START;
|
|
2218
|
+
return {
|
|
2219
|
+
placement,
|
|
2220
|
+
isAlwaysVisible,
|
|
2221
|
+
isInRow,
|
|
2222
|
+
isInEndSlot: !isAtStart && isAlwaysVisible && hasEndContent,
|
|
2223
|
+
rowAttrs
|
|
2224
|
+
};
|
|
2225
|
+
}
|
|
2226
|
+
/**
|
|
2227
|
+
* The List's own attributes while it reorders. `data-reorder-handle` names
|
|
2228
|
+
* the handles' edge. `data-reorder-shown` says when the handles take a place
|
|
2229
|
+
* in their rows: `always`, or only where the primary pointer is coarse. The
|
|
2230
|
+
* rows read both for the room a row without a handle keeps.
|
|
2231
|
+
* `data-reorder-gutter` names the room hanging handles take beside the rows'
|
|
2232
|
+
* text, by the rows' own inset.
|
|
2233
|
+
*/
|
|
2234
|
+
function reorderListLayout({ edge, density, handle, hasMarkers }) {
|
|
2235
|
+
const placement = placementOf(handle);
|
|
2236
|
+
const sitsInRows = isAlwaysVisibleOf(handle) || reachesPadding(edge);
|
|
2237
|
+
const hangs = !sitsInRows && !(placement === "start" && hasMarkers);
|
|
2238
|
+
const attrs = {
|
|
2239
|
+
"data-reorder-handle": placement,
|
|
2240
|
+
"data-reorder-shown": sitsInRows ? "always" : "coarse"
|
|
2241
|
+
};
|
|
2242
|
+
if (hangs) attrs["data-reorder-gutter"] = edge === "flush" ? "flush" : density === "spacious" ? "spacious" : "padded";
|
|
2243
|
+
return attrs;
|
|
2244
|
+
}
|
|
2245
|
+
//#endregion
|
|
2154
2246
|
//#region src/List/reorder/reorderController.ts
|
|
2155
2247
|
var ListReorderController = class extends ReorderDrop {
|
|
2156
2248
|
Host = _sfc_main$1;
|
|
2157
2249
|
Handle = _sfc_main$4;
|
|
2158
2250
|
RowName = ListReorderRowName_default;
|
|
2251
|
+
rowLayout = reorderRowLayout;
|
|
2252
|
+
listLayout = reorderListLayout;
|
|
2159
2253
|
/** Starts reorder mode on `handle`, or ends it there. */
|
|
2160
2254
|
toggleMode(handle) {
|
|
2161
2255
|
if (handle == null || this.session != null) return;
|
|
@@ -3114,7 +3208,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
3114
3208
|
"aria-hidden": "true",
|
|
3115
3209
|
style: normalizeStyle(style.value)
|
|
3116
3210
|
}, [createElementVNode("span", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(keys.value, (key) => {
|
|
3117
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3211
|
+
return openBlock(), createBlock(_sfc_main$6, {
|
|
3118
3212
|
key,
|
|
3119
3213
|
keys: key
|
|
3120
3214
|
}, null, 8, ["keys"]);
|
|
@@ -6,6 +6,26 @@ interface ReorderMove<TKey extends string | number = string | number, TTo = numb
|
|
|
6
6
|
/** The item's index after the move. */
|
|
7
7
|
readonly to: TTo;
|
|
8
8
|
}
|
|
9
|
+
/** Where each item's reorder handle sits and when it shows. */
|
|
10
|
+
interface ReorderHandleOptions {
|
|
11
|
+
/**
|
|
12
|
+
* The edge of each item that the handle sits at: `'end'`, after the item's
|
|
13
|
+
* content, or `'start'`, before it.
|
|
14
|
+
* @default 'end'
|
|
15
|
+
*/
|
|
16
|
+
readonly placement?: 'start' | 'end';
|
|
17
|
+
/**
|
|
18
|
+
* How the handle reveals itself. `'always'`: it takes its own place in its
|
|
19
|
+
* item, and its grip always shows. `'adaptive'`: where the primary pointer
|
|
20
|
+
* is fine, it shows while its item is hovered or holds the focus; where it
|
|
21
|
+
* is coarse, it always shows. Where it shows only on hover or focus, it
|
|
22
|
+
* takes no space: it hangs outside the item's content, so the content keeps
|
|
23
|
+
* its place, and the collection takes that room from its container's
|
|
24
|
+
* padding. Without it, the collection decides: List and TransferList use
|
|
25
|
+
* `'always'`, and ListInput uses `'adaptive'`.
|
|
26
|
+
*/
|
|
27
|
+
readonly revealBehavior?: 'always' | 'adaptive';
|
|
28
|
+
}
|
|
9
29
|
interface ReorderableOptions<TKey extends string | number = string | number, TTo = number> {
|
|
10
30
|
/**
|
|
11
31
|
* Called once per committed move. Apply it by rendering the items in their
|
|
@@ -18,6 +38,11 @@ interface ReorderableOptions<TKey extends string | number = string | number, TTo
|
|
|
18
38
|
* item moves without it.
|
|
19
39
|
*/
|
|
20
40
|
isReorderable?: (key: TKey) => boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Where each item's handle sits and when it shows. Without it, the handle
|
|
43
|
+
* ends each item, and the collection decides when it shows.
|
|
44
|
+
*/
|
|
45
|
+
handle?: ReorderHandleOptions;
|
|
21
46
|
}
|
|
22
47
|
declare const reorderableBrand: unique symbol;
|
|
23
48
|
/** What `createReorderable` makes: pass it to a List's `reorderable`. */
|
|
@@ -52,4 +77,4 @@ interface Reorderable<TKey extends string | number = string | number, TTo = numb
|
|
|
52
77
|
*/
|
|
53
78
|
declare function createReorderable<TKey extends string | number = string | number, TTo = number>(options: ReorderableOptions<TKey, TTo>): Reorderable<TKey, TTo>;
|
|
54
79
|
//#endregion
|
|
55
|
-
export { createReorderable as i,
|
|
80
|
+
export { createReorderable as a, ReorderableOptions as i, ReorderMove as n, Reorderable as r, ReorderHandleOptions as t };
|
|
@@ -28,9 +28,9 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
|
|
|
28
28
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
block: boolean;
|
|
31
|
+
isIconOnly: boolean;
|
|
31
32
|
isDisabled: boolean;
|
|
32
33
|
size: NavItemSize;
|
|
33
|
-
isIconOnly: boolean;
|
|
34
34
|
isSelected: boolean;
|
|
35
35
|
isFocusableWhenDisabled: boolean;
|
|
36
36
|
plain: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
|
|
2
|
-
import { C as DropdownMenuGroupSlots, D as DropdownMenuItemVariant, E as DropdownMenuItemSlots, F as DropdownMenuSubMenuProps, I as DropdownMenuSubMenuSlots, P as DropdownMenuSubMenuPresentation, S as DropdownMenuGroupProps, T as DropdownMenuItemProps, _ as DropdownMenuSlots, f as DropdownMenuProps, g as DropdownMenuSize } from "./DropdownMenuRadioItem.vue-
|
|
2
|
+
import { C as DropdownMenuGroupSlots, D as DropdownMenuItemVariant, E as DropdownMenuItemSlots, F as DropdownMenuSubMenuProps, I as DropdownMenuSubMenuSlots, P as DropdownMenuSubMenuPresentation, S as DropdownMenuGroupProps, T as DropdownMenuItemProps, _ as DropdownMenuSlots, f as DropdownMenuProps, g as DropdownMenuSize } from "./DropdownMenuRadioItem.vue-Dnvhnk6I.js";
|
|
3
3
|
import { ComputedRef, InjectionKey, Ref } from "vue";
|
|
4
4
|
//#region src/DropdownMenu/useMenuDrillIn.d.ts
|
|
5
5
|
/**
|
|
@@ -45,8 +45,8 @@ interface TimerProps {
|
|
|
45
45
|
//#region src/Timer/Timer.vue.d.ts
|
|
46
46
|
declare const __VLS_export: import("vue").DefineComponent<TimerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TimerProps> & Readonly<{}>, {
|
|
47
47
|
type: TimerType;
|
|
48
|
-
format: "clock" | "elapsed";
|
|
49
48
|
color: TimerColor;
|
|
49
|
+
format: "clock" | "elapsed";
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
declare const _default: typeof __VLS_export;
|
|
52
52
|
//#endregion
|
|
@@ -8,12 +8,12 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
|
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
9
9
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
|
-
type: "button" | "
|
|
12
|
-
isDisabled: boolean;
|
|
13
|
-
elevation: ButtonElevation;
|
|
14
|
-
isLoading: boolean;
|
|
11
|
+
type: "button" | "reset" | "submit";
|
|
15
12
|
isIconOnly: boolean;
|
|
13
|
+
elevation: ButtonElevation;
|
|
14
|
+
isDisabled: boolean;
|
|
16
15
|
isInterruptible: boolean;
|
|
16
|
+
isLoading: boolean;
|
|
17
17
|
loadingLabel: string;
|
|
18
18
|
variant: ButtonVariant;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -101,8 +101,8 @@ type __VLS_Slots = {
|
|
|
101
101
|
declare const __VLS_base: import("vue").DefineComponent<CenterProps, {
|
|
102
102
|
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
103
103
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CenterProps> & Readonly<{}>, {
|
|
104
|
-
isInline: boolean;
|
|
105
104
|
axis: CenterAxis;
|
|
105
|
+
isInline: boolean;
|
|
106
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
107
107
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
108
108
|
declare const _default: typeof __VLS_export;
|
|
@@ -18,8 +18,8 @@ type __VLS_Slots$2 = {
|
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base$2: import("vue").DefineComponent<StackProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackProps> & Readonly<{}>, {
|
|
20
20
|
as: StackElement;
|
|
21
|
-
wrap: StackWrap;
|
|
22
21
|
direction: StackDirection;
|
|
22
|
+
wrap: StackWrap;
|
|
23
23
|
isScrollable: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
@@ -35,8 +35,8 @@ type __VLS_Slots$1 = {
|
|
|
35
35
|
default: () => unknown;
|
|
36
36
|
};
|
|
37
37
|
declare const __VLS_base$1: import("vue").DefineComponent<StackItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackItemProps> & Readonly<{}>, {
|
|
38
|
-
size: StackItemSize;
|
|
39
38
|
as: StackElement;
|
|
39
|
+
size: StackItemSize;
|
|
40
40
|
isScrollable: boolean;
|
|
41
41
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
42
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
@@ -63,8 +63,8 @@ interface TreeListSlots {
|
|
|
63
63
|
//#region src/TreeList/TreeList.vue.d.ts
|
|
64
64
|
type __VLS_Slots = TreeListSlots;
|
|
65
65
|
declare const __VLS_base: import("vue").DefineComponent<TreeListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TreeListProps> & Readonly<{}>, {
|
|
66
|
-
density: TreeListDensity;
|
|
67
66
|
variant: TreeListVariant;
|
|
67
|
+
density: TreeListDensity;
|
|
68
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
69
69
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
70
70
|
declare const _default: typeof __VLS_export;
|
|
@@ -80,10 +80,10 @@ type __VLS_Slots = {} & {
|
|
|
80
80
|
};
|
|
81
81
|
declare const __VLS_base: import("vue").DefineComponent<HeadingProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeadingProps> & Readonly<{}>, {
|
|
82
82
|
color: HeadingColor;
|
|
83
|
+
maxLines: number;
|
|
83
84
|
display: HeadingDisplay;
|
|
84
85
|
justify: HeadingJustify;
|
|
85
86
|
hasCapsize: boolean;
|
|
86
|
-
maxLines: number;
|
|
87
87
|
hasTruncateTooltip: HeadingTruncateTooltip;
|
|
88
88
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
89
89
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -154,16 +154,16 @@ type __VLS_Slots = {
|
|
|
154
154
|
default: () => unknown;
|
|
155
155
|
};
|
|
156
156
|
declare const __VLS_base: import("vue").DefineComponent<TabListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
157
|
-
"update:value": (value: string) => any;
|
|
158
157
|
change: (value: string) => any;
|
|
158
|
+
"update:value": (value: string) => any;
|
|
159
159
|
}, string, import("vue").PublicProps, Readonly<TabListProps> & Readonly<{
|
|
160
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
161
160
|
onChange?: ((value: string) => any) | undefined;
|
|
161
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
162
162
|
}>, {
|
|
163
163
|
layout: TabListLayout;
|
|
164
164
|
isFullBleed: boolean;
|
|
165
|
-
overflow: TabListOverflow;
|
|
166
165
|
hasDivider: boolean;
|
|
166
|
+
overflow: TabListOverflow;
|
|
167
167
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
168
|
declare const __VLS_export$1: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
169
169
|
declare const _default$1: typeof __VLS_export$1;
|