@astryx-vue/core 0.23.0 → 0.24.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/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +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-mlCoLtma.js → Breadcrumbs-Nv-089W0.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-BNwTTDHu.js → CheckboxInput-FKfsoLcl.js} +14 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BLY16jPG.js → CheckboxList-DuSVBtMk.js} +20 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-CVQ7XS4L.js → ClickableCard-dNmSVHBu.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CVCIsgAU.js → ComplexSelector-C4CO8Fd2.js} +1 -1
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DYLdP-Ok.js → ContextMenu-SzsWZf18.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BVEOMFwc.js → DropdownMenu-BhxKnh6D.js} +2 -2
- package/dist/{DropdownMenu-PjqSkkQs.js → DropdownMenu-Der2x_k_.js} +3 -3
- package/dist/{DropdownMenuRadioItem.vue-C9DdN6UE.d.ts → DropdownMenuRadioItem.vue-DINRx71W.d.ts} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +2 -2
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-Bc4snKv8.js → ListItem-gj_lOvEt.js} +4 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DAhOiau3.js → MoreMenu-Dokwc4Mg.js} +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-ERv5u6r4.js → MultiSelector-CId8-qAX.js} +2 -2
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-CB3loauj.js → NavItem-_eIEwV41.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- 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-DuTUReOl.js → Pagination-C0Bx80Tu.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CewQJzEt.js → PowerSearch-Dq6Gi9z1.js} +5 -5
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-DrCL5-AN.js → RadioGroup-IKBXLzYU.js} +27 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CRi4E1zq.js → RadioList-NW4fGKgm.js} +4 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-DFUYTOVH.js → SegmentedControl-DRxcUlVP.js} +71 -4
- 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-D6yzPO5O.js → Selector-BW_oxWDM.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-z_6FwEJy.js → SideNav-B5mMRj98.js} +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DMHlRq7q.js → Slider-oD3AY4jh.js} +64 -20
- 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-OPRkoPLi.js → Switch-DG_A9cD0.js} +5 -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-CCjpL_Ku.js → Table-zNW23VwP.js} +4 -4
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DTrNL430.js → ToggleButton-Bnn_MiOn.js} +9 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CPNzkSj3.js → Token-B-j3AKxB.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DdddkJb1.js → Tokenizer-Cpdy_L00.js} +1 -1
- 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/TopNav/index.js +1 -1
- package/dist/{TopNav-C1wpttKX.js → TopNav-q8xDVlM_.js} +1 -1
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-DOAcS3PM.js → TreeList-CEGInQtF.js} +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-6y_r-VNU.js → Typeahead-C-PdRnRQ.js} +1 -1
- package/dist/{disabledInteraction-CPzL8kVP.js → disabledInteraction-Bqoyhoss.js} +9 -1
- package/dist/{index-beOIC0Qk.d.ts → index-0RIgvtdm.d.ts} +1 -1
- package/dist/{index-ZT45ZWd5.d.ts → index-85RFPeV0.d.ts} +3 -3
- package/dist/{index-CP-fJFcJ.d.ts → index-BOCb89V9.d.ts} +3 -3
- package/dist/{index-nk2xIHpr.d.ts → index-BWcZ-L80.d.ts} +3 -3
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-CpLLSVCn.d.ts → index-C2HVLdNb.d.ts} +2 -2
- package/dist/{index-51CkIKnI.d.ts → index-C93nwgTW.d.ts} +1 -1
- package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
- package/dist/{index-BJputYk6.d.ts → index-CH-xSiJz.d.ts} +3 -3
- package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
- package/dist/{index-BaFphczL.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-GgHVkJtB.d.ts → index-CRtGmCHi.d.ts} +1 -1
- package/dist/{index-DXHmlFcC.d.ts → index-CuW4AQ7M.d.ts} +3 -3
- package/dist/{index-Dc6mU3rv.d.ts → index-CyMStZq4.d.ts} +2 -2
- package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
- package/dist/{index-BlhbRf58.d.ts → index-DDVCVpnG.d.ts} +1 -1
- package/dist/{index-B5MCvW75.d.ts → index-DRDOArzq.d.ts} +63 -47
- package/dist/{index-MvrDMqnQ.d.ts → index-DYabo8TI.d.ts} +1 -1
- package/dist/{index-Cb-rvc1W.d.ts → index-DofC9Rll.d.ts} +1 -1
- package/dist/{index-SRA6e30Q.d.ts → index-HULXozsK.d.ts} +5 -5
- package/dist/{index-B-3EGjfQ.d.ts → index-Q1oG9yIT.d.ts} +2 -2
- package/dist/{index-B6svLvfZ.d.ts → index-Qdbssopn.d.ts} +1 -1
- package/dist/{index-NOxH5oYj.d.ts → index-etx25Eq-.d.ts} +1 -1
- package/dist/{index-B3U6GJKl.d.ts → index-lmd9LZKB.d.ts} +1 -1
- package/dist/{index-C9uW39Mj.d.ts → index-mK1ICsVg.d.ts} +3 -3
- package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
- package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
- package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +30 -30
- package/dist/index.js +30 -30
- package/dist/{types-Dxs5rf-2.d.ts → types-Gw2OjSK9.d.ts} +9 -9
- package/dist/{useMenuDrillIn-f3m-59Qb.js → useMenuDrillIn-CQrzwZvx.js} +1 -1
- package/package.json +1 -1
- package/styles/checkbox-list.css +5 -0
- package/styles/radio-indicator.css +2 -2
- package/styles/radio.css +25 -0
- package/styles/segmented-control.css +46 -1
- package/styles/slider.css +8 -2
- package/styles/switch.css +2 -1
- package/styles/toggle-button.css +3 -0
- package/dist/{Item-CzKm9wxQ.js → Item-DyaYlbyE.js} +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-
|
|
1
|
+
import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-85RFPeV0.js";
|
|
2
2
|
export { _default as MultiSelector, type MultiSelectorCheckboxPosition, type MultiSelectorCreateChange, type MultiSelectorDivider, type MultiSelectorEmits, type MultiSelectorHandle, type MultiSelectorHandleRef, type MultiSelectorOption, type MultiSelectorOptionData, type MultiSelectorPresentation, type MultiSelectorProps, type MultiSelectorSection, type MultiSelectorSelectedItem, type MultiSelectorSize, type MultiSelectorSlots, type MultiSelectorStatus, type MultiSelectorStatusVariant, type MultiSelectorTriggerDisplay, type MultiSelectorVariant, SELECT_ALL_VALUE, flattenOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-
|
|
1
|
+
import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-CId8-qAX.js";
|
|
2
2
|
export { _sfc_main as MultiSelector, SELECT_ALL_VALUE, flattenOptions };
|
|
@@ -17,15 +17,15 @@ import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
|
|
|
17
17
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
18
18
|
import { t as _sfc_main$5 } from "./Spinner-DEVPDsD0.js";
|
|
19
19
|
import { t as useIndicator } from "./useIndicator-PFDBNOvX.js";
|
|
20
|
+
import { t as consumeWhileDisabled } from "./disabledInteraction-Bqoyhoss.js";
|
|
20
21
|
import { t as _sfc_main$6 } from "./Field-D4UmRHlD.js";
|
|
21
22
|
import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
|
|
22
|
-
import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
|
|
23
23
|
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
24
24
|
import { n as fieldStatusPlacement, r as _sfc_main$7, t as normalizeTriggerVariant } from "./triggerVariant-DG0VhG-X.js";
|
|
25
25
|
import { t as multiSelectorMessages } from "./multi-selector-CpVI6bt5.js";
|
|
26
26
|
import { t as _sfc_main$8 } from "./InputClearButton-CzCP41sx.js";
|
|
27
27
|
import { n as useKeyboardHighlight, r as bindListboxEscape, t as assertOptionsArray } from "./assertOptions-og3t30Fh.js";
|
|
28
|
-
import { t as _sfc_main$9 } from "./Token-
|
|
28
|
+
import { t as _sfc_main$9 } from "./Token-B-j3AKxB.js";
|
|
29
29
|
import { n as scrollOptionIntoView, r as useAnchoredListbox, t as createStillPointerGate } from "./stillPointerGate-1Tgkns0J.js";
|
|
30
30
|
import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
|
|
31
31
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
package/dist/NavItem/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { r as resolveNavRoot } from "../link-DuuA2eCL.js";
|
|
2
2
|
import { t as _sfc_main } from "../NavItem-thEKXyJA.js";
|
|
3
|
-
import { t as _sfc_main$1 } from "../NavItem-
|
|
3
|
+
import { t as _sfc_main$1 } from "../NavItem-_eIEwV41.js";
|
|
4
4
|
export { _sfc_main as NavIcon, _sfc_main$1 as NavItem, resolveNavRoot };
|
|
@@ -2,7 +2,7 @@ import { t as hasSlotContent } from "./slotContent-CNWOrGOr.js";
|
|
|
2
2
|
import { t as usePressFeedback } from "./usePressFeedback-aufF1sCH.js";
|
|
3
3
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
4
4
|
import { n as isNavigableHref, r as resolveNavRoot, t as isExternalNavTarget } from "./link-DuuA2eCL.js";
|
|
5
|
-
import { n as disabledInteractionProps } from "./disabledInteraction-
|
|
5
|
+
import { n as disabledInteractionProps } from "./disabledInteraction-Bqoyhoss.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useSlots, withCtx } from "vue";
|
|
7
7
|
import "../styles/nav-item.css";
|
|
8
8
|
//#region src/NavItem/NavItem.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ai as NumberInputProps, ii as NumberInputEmits, oi as NumberInputStatus, ri as _default } from "../index-
|
|
1
|
+
import { ai as NumberInputProps, ii as NumberInputEmits, oi as NumberInputStatus, ri as _default } from "../index-DRDOArzq.js";
|
|
2
2
|
export { _default as NumberInput, type NumberInputEmits, type NumberInputProps, type NumberInputStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $r as OverflowListCollapsedItem, Qr as _default, ei as OverflowListEmits, ni as OverflowListProps, ti as OverflowListItem } from "../index-
|
|
1
|
+
import { $r as OverflowListCollapsedItem, Qr as _default, ei as OverflowListEmits, ni as OverflowListProps, ti as OverflowListItem } from "../index-DRDOArzq.js";
|
|
2
2
|
export { _default as OverflowList, type OverflowListCollapsedItem, type OverflowListEmits, type OverflowListItem, type OverflowListProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-
|
|
1
|
+
import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-0RIgvtdm.js";
|
|
2
2
|
export { _default as Pagination, type PaginationEmits, type PaginationProps, type PaginationSize, type PaginationSlots, type PaginationVariant };
|
package/dist/Pagination/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Pagination-
|
|
1
|
+
import { t as _sfc_main } from "../Pagination-C0Bx80Tu.js";
|
|
2
2
|
export { _sfc_main as Pagination };
|
|
@@ -5,9 +5,9 @@ import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
|
5
5
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
6
6
|
import { t as useFocusAcrossSwap } from "./focusAcrossSwap-Casww_IY.js";
|
|
7
7
|
import { i as safeNavHref } from "./link-DuuA2eCL.js";
|
|
8
|
-
import { t as consumeWhileDisabled } from "./disabledInteraction-
|
|
8
|
+
import { t as consumeWhileDisabled } from "./disabledInteraction-Bqoyhoss.js";
|
|
9
9
|
import { t as paginationMessages } from "./pagination-CxZBYsPu.js";
|
|
10
|
-
import { t as _sfc_main$1 } from "./Selector-
|
|
10
|
+
import { t as _sfc_main$1 } from "./Selector-BW_oxWDM.js";
|
|
11
11
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, toValue, unref, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
12
12
|
import "../styles/pagination.css";
|
|
13
13
|
/**
|
package/dist/Popover/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as PopoverRole, i as PopoverProps, n as PopoverPadding, r as PopoverPlacement, t as PopoverAlignment } from "../types-OGMYGejX.js";
|
|
2
|
-
import { i as _default, n as UsePopoverReturn, r as usePopover, t as UsePopoverOptions } from "../index-
|
|
2
|
+
import { i as _default, n as UsePopoverReturn, r as usePopover, t as UsePopoverOptions } from "../index-lmd9LZKB.js";
|
|
3
3
|
export { _default as Popover, type PopoverAlignment, type PopoverPadding, type PopoverPlacement, type PopoverProps, type PopoverRole, type UsePopoverOptions, type UsePopoverReturn, usePopover };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as PowerSearchItem, C as PowerSearchEmits, D as PowerSearchFieldType, E as PowerSearchFieldDefinition, F as PowerSearchSlots, I as PowerSearchStatus, M as PowerSearchOverflow, N as PowerSearchProps, O as PowerSearchFilter, P as PowerSearchSize, S as PowerSearchConfig, T as PowerSearchField, _ as FilterValue, a as usePowerSearchConfig, b as PowerSearchChangeType, c as resolveOperatorLabel, d as formatFilterValue, f as completePowerSearchFilter, g as DateTimeRangePart, h as DateTimeRange, i as createPowerSearchConfig, j as PowerSearchOperator, k as PowerSearchHandle, l as formatDateAbsolute, m as createPowerSearchLookup, n as InferPowerSearchData, o as _default, p as PowerSearchLookup, r as applyPowerSearchFilters, s as resolveEditorPlacement, t as searchPowerSearchFields, u as formatDateAbsoluteCompact, v as OperatorValue, w as PowerSearchEntity, x as PowerSearchComponents, y as PartialFilter } from "../index-
|
|
1
|
+
import { A as PowerSearchItem, C as PowerSearchEmits, D as PowerSearchFieldType, E as PowerSearchFieldDefinition, F as PowerSearchSlots, I as PowerSearchStatus, M as PowerSearchOverflow, N as PowerSearchProps, O as PowerSearchFilter, P as PowerSearchSize, S as PowerSearchConfig, T as PowerSearchField, _ as FilterValue, a as usePowerSearchConfig, b as PowerSearchChangeType, c as resolveOperatorLabel, d as formatFilterValue, f as completePowerSearchFilter, g as DateTimeRangePart, h as DateTimeRange, i as createPowerSearchConfig, j as PowerSearchOperator, k as PowerSearchHandle, l as formatDateAbsolute, m as createPowerSearchLookup, n as InferPowerSearchData, o as _default, p as PowerSearchLookup, r as applyPowerSearchFilters, s as resolveEditorPlacement, t as searchPowerSearchFields, u as formatDateAbsoluteCompact, v as OperatorValue, w as PowerSearchEntity, x as PowerSearchComponents, y as PartialFilter } from "../index-C2HVLdNb.js";
|
|
2
2
|
export { type DateTimeRange, type DateTimeRangePart, type FilterValue, type InferPowerSearchData, type OperatorValue, type PartialFilter, _default as PowerSearch, type PowerSearchChangeType, type PowerSearchComponents, type PowerSearchConfig, type PowerSearchEmits, type PowerSearchEntity, type PowerSearchField, type PowerSearchFieldDefinition, type PowerSearchFieldType, type PowerSearchFilter, type PowerSearchHandle, type PowerSearchItem, type PowerSearchLookup, type PowerSearchOperator, type PowerSearchOverflow, type PowerSearchProps, type PowerSearchSize, type PowerSearchSlots, type PowerSearchStatus, applyPowerSearchFilters, completePowerSearchFilter, createPowerSearchConfig, createPowerSearchLookup, formatDateAbsolute, formatDateAbsoluteCompact, formatFilterValue, resolveEditorPlacement, resolveOperatorLabel, searchPowerSearchFields, usePowerSearchConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "../PowerSearch-
|
|
1
|
+
import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "../PowerSearch-Dq6Gi9z1.js";
|
|
2
2
|
export { _sfc_main as PowerSearch, applyPowerSearchFilters, completePowerSearchFilter, createPowerSearchConfig, createPowerSearchLookup, formatDateAbsolute, formatDateAbsoluteCompact, formatFilterValue, resolveEditorPlacement, resolveOperatorLabel, searchPowerSearchFields, usePowerSearchConfig };
|
|
@@ -19,16 +19,16 @@ import { t as _sfc_main$9 } from "./DateInput-D9Jv70H7.js";
|
|
|
19
19
|
import { l as powerSearchMessages } from "./loadCatalog-BeQt6Uq-.js";
|
|
20
20
|
import { t as _sfc_main$10 } from "./DateRangeInput-BsB2kg_q.js";
|
|
21
21
|
import { t as _sfc_main$11 } from "./DateTimeInput-BDyKPKGD.js";
|
|
22
|
-
import { n as tokenNamingKey, t as _sfc_main$12 } from "./Token-
|
|
22
|
+
import { n as tokenNamingKey, t as _sfc_main$12 } from "./Token-B-j3AKxB.js";
|
|
23
23
|
import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-1Tgkns0J.js";
|
|
24
|
-
import { t as _sfc_main$13 } from "./MultiSelector-
|
|
24
|
+
import { t as _sfc_main$13 } from "./MultiSelector-CId8-qAX.js";
|
|
25
25
|
import { n as resolveNumberInputCommit, t as _sfc_main$14 } from "./NumberInput-Bl5TFhGD.js";
|
|
26
|
-
import { t as _sfc_main$15 } from "./Selector-
|
|
26
|
+
import { t as _sfc_main$15 } from "./Selector-BW_oxWDM.js";
|
|
27
27
|
import { o as useTypeaheadMenu } from "./useTypeaheadMenuConfig-GvdIymRg.js";
|
|
28
|
-
import { n as useTokenRemoveTap, t as _sfc_main$16 } from "./Tokenizer-
|
|
28
|
+
import { n as useTokenRemoveTap, t as _sfc_main$16 } from "./Tokenizer-Cpdy_L00.js";
|
|
29
29
|
import { t as _sfc_main$17 } from "./TextInput-D6tHM2sA.js";
|
|
30
30
|
import { t as _sfc_main$18 } from "./TimeInput-D0N8nwrI.js";
|
|
31
|
-
import { t as _sfc_main$19 } from "./Typeahead-
|
|
31
|
+
import { t as _sfc_main$19 } from "./Typeahead-C-PdRnRQ.js";
|
|
32
32
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
33
33
|
import "../styles/layer.css";
|
|
34
34
|
import "../styles/visually-hidden-utility.css";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-
|
|
1
|
+
import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-COgrQZIL.js";
|
|
2
2
|
export { _default as ProgressBar, type ProgressBarMark, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant };
|
package/dist/Radio/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Br as RadioGroupEmits, Gr as RadioOrientation, Hr as RadioGroupSlots, Jr as RadioSlots, Kr as RadioProps, Lr as _default$1, Rr as _default, Vr as RadioGroupProps, Wr as RadioOption, Xr as RadioStatusType, Yr as RadioStatus, Zr as RadioValue, qr as RadioSize, zr as RadioChangeEvent } from "../index-
|
|
1
|
+
import { Br as RadioGroupEmits, Gr as RadioOrientation, Hr as RadioGroupSlots, Jr as RadioSlots, Kr as RadioProps, Lr as _default$1, Rr as _default, Vr as RadioGroupProps, Wr as RadioOption, Xr as RadioStatusType, Yr as RadioStatus, Zr as RadioValue, qr as RadioSize, zr as RadioChangeEvent } from "../index-DRDOArzq.js";
|
|
2
2
|
export { _default as Radio, type RadioChangeEvent, _default$1 as RadioGroup, type RadioGroupEmits, type RadioGroupProps, type RadioGroupSlots, type RadioOption, type RadioOrientation, type RadioProps, type RadioSize, type RadioSlots, type RadioStatus, type RadioStatusType, type RadioValue };
|
package/dist/Radio/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../RadioGroup-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../RadioGroup-IKBXLzYU.js";
|
|
2
2
|
export { _sfc_main as Radio, _sfc_main$1 as RadioGroup };
|
|
@@ -3,7 +3,9 @@ import { t as usePressFeedback } from "./usePressFeedback-aufF1sCH.js";
|
|
|
3
3
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
4
4
|
import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
5
5
|
import { t as _sfc_main$3 } from "./Tooltip-CByjfHBZ.js";
|
|
6
|
+
import { i as useAriaRequired } from "./context-DsNhYm5O.js";
|
|
6
7
|
import { t as useIndicator } from "./useIndicator-PFDBNOvX.js";
|
|
8
|
+
import { r as withholdCallerHandlers } from "./disabledInteraction-Bqoyhoss.js";
|
|
7
9
|
import { t as _sfc_main$4 } from "./Field-D4UmRHlD.js";
|
|
8
10
|
import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
|
|
9
11
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, withCtx } from "vue";
|
|
@@ -15,6 +17,7 @@ const radioContextKey = defineLayerScopedKey("astryx-radio-context", void 0);
|
|
|
15
17
|
const _hoisted_1$1 = [
|
|
16
18
|
"for",
|
|
17
19
|
"data-size",
|
|
20
|
+
"data-align",
|
|
18
21
|
"data-disabled",
|
|
19
22
|
"data-readonly"
|
|
20
23
|
];
|
|
@@ -27,6 +30,8 @@ const _hoisted_2 = [
|
|
|
27
30
|
"readonly",
|
|
28
31
|
"form",
|
|
29
32
|
"aria-disabled",
|
|
33
|
+
"required",
|
|
34
|
+
"aria-invalid",
|
|
30
35
|
"aria-describedby"
|
|
31
36
|
];
|
|
32
37
|
const _hoisted_3 = { class: "astryx-radio-content" };
|
|
@@ -38,8 +43,10 @@ const _hoisted_6 = {
|
|
|
38
43
|
};
|
|
39
44
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
40
45
|
name: "AstryxRadio",
|
|
46
|
+
inheritAttrs: false,
|
|
41
47
|
__name: "Radio",
|
|
42
48
|
props: {
|
|
49
|
+
align: {},
|
|
43
50
|
value: {},
|
|
44
51
|
label: {},
|
|
45
52
|
description: {},
|
|
@@ -82,6 +89,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
82
89
|
function describedBy() {
|
|
83
90
|
return [hasDescription.value ? `${inputId.value}-description` : void 0, messageDescriptionId.value].filter(Boolean).join(" ") || void 0;
|
|
84
91
|
}
|
|
92
|
+
const rowAttrs = computed(() => mergeProps(withholdCallerHandlers(attrs, !!isDisabled.value), isDisabled.value ? {} : press.pressableProps));
|
|
85
93
|
function rowClick(event) {
|
|
86
94
|
const target = event.target;
|
|
87
95
|
if (target instanceof Element && target.closest("a, button, select, textarea, [role=\"button\"], [role=\"link\"]")) event.preventDefault();
|
|
@@ -89,14 +97,15 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
89
97
|
return (_ctx, _cache) => {
|
|
90
98
|
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/no-static-element-interactions -- 标签包住整行。点到链接时取消标签的默认选中,键盘仍由单选框处理。 "), createElementVNode("label", mergeProps({
|
|
91
99
|
ref_key: "row",
|
|
92
|
-
ref: row
|
|
100
|
+
ref: row
|
|
101
|
+
}, rowAttrs.value, {
|
|
93
102
|
for: inputId.value,
|
|
94
103
|
class: ["astryx-radio", {
|
|
95
104
|
"astryx-indicator-scope": !isDisabled.value,
|
|
96
105
|
"astryx-touch-hit-area-band": !isDisabled.value
|
|
97
|
-
}]
|
|
98
|
-
}, isDisabled.value ? void 0 : unref(press).pressableProps, {
|
|
106
|
+
}],
|
|
99
107
|
"data-size": indicatorSize.value,
|
|
108
|
+
"data-align": __props.align && __props.align !== "center" ? __props.align : void 0,
|
|
100
109
|
"data-disabled": isDisabled.value || void 0,
|
|
101
110
|
"data-readonly": isReadOnly.value || void 0,
|
|
102
111
|
onClick: rowClick
|
|
@@ -112,6 +121,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
112
121
|
readonly: isReadOnly.value,
|
|
113
122
|
form: explainedByMessage.value ? "" : void 0,
|
|
114
123
|
"aria-disabled": explainedByMessage.value || void 0,
|
|
124
|
+
required: unref(context)?.isRequired.value || void 0,
|
|
125
|
+
"aria-invalid": unref(context)?.isRequired.value ? unref(context).hasErrorStatus.value : void 0,
|
|
115
126
|
"aria-describedby": describedBy(),
|
|
116
127
|
onClick: click,
|
|
117
128
|
onChange: change
|
|
@@ -137,7 +148,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
137
148
|
});
|
|
138
149
|
//#endregion
|
|
139
150
|
//#region src/Radio/RadioGroup.vue
|
|
140
|
-
const _hoisted_1 = [
|
|
151
|
+
const _hoisted_1 = [
|
|
152
|
+
"aria-labelledby",
|
|
153
|
+
"aria-describedby",
|
|
154
|
+
"aria-disabled",
|
|
155
|
+
"aria-invalid",
|
|
156
|
+
"aria-required"
|
|
157
|
+
];
|
|
141
158
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
142
159
|
name: "AstryxRadioGroup",
|
|
143
160
|
inheritAttrs: false,
|
|
@@ -213,6 +230,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
213
230
|
]
|
|
214
231
|
});
|
|
215
232
|
const model = useModel(__props, "modelValue");
|
|
233
|
+
const ariaRequired = useAriaRequired(props);
|
|
216
234
|
const generatedName = `astryx-radio-${useId()}`;
|
|
217
235
|
const groupName = computed(() => props.name ?? generatedName);
|
|
218
236
|
const group = useTemplateRef("group");
|
|
@@ -249,6 +267,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
249
267
|
isGroupDisabled: computed(() => props.isDisabled ?? false),
|
|
250
268
|
isGroupReadOnly: computed(() => props.isReadOnly ?? false),
|
|
251
269
|
isRequired: computed(() => (props.isRequired && !props.isOptional) ?? false),
|
|
270
|
+
hasErrorStatus: computed(() => props.status?.type === "error"),
|
|
252
271
|
disabledMessage,
|
|
253
272
|
disabledMessageId,
|
|
254
273
|
size: computed(() => props.size)
|
|
@@ -292,7 +311,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
292
311
|
role: "radiogroup"
|
|
293
312
|
}, unref(parts).forwardedAttrs(), {
|
|
294
313
|
"aria-labelledby": [field.labelId, unref(attrs)["aria-labelledby"]].filter(Boolean).join(" ") || void 0,
|
|
295
|
-
"aria-describedby": groupDescribedBy(field.describedBy)
|
|
314
|
+
"aria-describedby": groupDescribedBy(field.describedBy),
|
|
315
|
+
"aria-disabled": __props.isDisabled || void 0,
|
|
316
|
+
"aria-invalid": __props.status?.type === "error" ? true : void 0,
|
|
317
|
+
"aria-required": unref(ariaRequired)
|
|
296
318
|
}), [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
297
319
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
298
320
|
key: option.value,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Fr as RadioListItemProps, Ir as _default, Pr as _default$1, Ur as RadioListProps } from "../index-
|
|
1
|
+
import { Fr as RadioListItemProps, Ir as _default, Pr as _default$1, Ur as RadioListProps } from "../index-DRDOArzq.js";
|
|
2
2
|
export { _default as RadioList, _default$1 as RadioListItem, type RadioListItemProps, type RadioListProps };
|
package/dist/RadioList/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../RadioList-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../RadioList-NW4fGKgm.js";
|
|
2
2
|
export { _sfc_main as RadioList, _sfc_main$1 as RadioListItem };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as _sfc_main$3, t as _sfc_main$2 } from "./RadioGroup-
|
|
1
|
+
import { n as _sfc_main$3, t as _sfc_main$2 } from "./RadioGroup-IKBXLzYU.js";
|
|
2
2
|
import { createBlock, createSlots, defineComponent, mergeModels, openBlock, renderSlot, useModel, withCtx } from "vue";
|
|
3
3
|
//#region src/Radio/RadioList.vue
|
|
4
4
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
@@ -130,6 +130,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
130
130
|
name: "AstryxRadioListItem",
|
|
131
131
|
__name: "RadioListItem",
|
|
132
132
|
props: {
|
|
133
|
+
align: {},
|
|
133
134
|
value: {},
|
|
134
135
|
label: {},
|
|
135
136
|
description: {},
|
|
@@ -139,6 +140,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
139
140
|
setup(__props) {
|
|
140
141
|
return (_ctx, _cache) => {
|
|
141
142
|
return openBlock(), createBlock(_sfc_main$3, {
|
|
143
|
+
align: __props.align,
|
|
142
144
|
value: __props.value,
|
|
143
145
|
label: __props.label,
|
|
144
146
|
description: __props.description,
|
|
@@ -161,6 +163,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
161
163
|
key: "2"
|
|
162
164
|
} : void 0
|
|
163
165
|
]), 1032, [
|
|
166
|
+
"align",
|
|
164
167
|
"value",
|
|
165
168
|
"label",
|
|
166
169
|
"description",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-
|
|
1
|
+
import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-etx25Eq-.js";
|
|
2
2
|
export { type ResizeDirection, _default as ResizeHandle, type ResizeHandleProps, type ResizeHandleSlots, type ResizePillPlacement, type ResizePosition };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Mr as ScrollableAreaProps, Nr as ScrollableAreaSlots, jr as _default } from "../index-
|
|
1
|
+
import { Mr as ScrollableAreaProps, Nr as ScrollableAreaSlots, jr as _default } from "../index-DRDOArzq.js";
|
|
2
2
|
export { _default as ScrollableArea, type ScrollableAreaProps, type ScrollableAreaSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SegmentedControlItemProps, c as SegmentedControlProps, i as SegmentedControlEmits, l as SegmentedControlSize, n as _default, o as SegmentedControlItemSlots, r as SegmentedControlContextValue, s as SegmentedControlLayout, t as _default$1, u as SegmentedControlSlots } from "../index-
|
|
1
|
+
import { a as SegmentedControlItemProps, c as SegmentedControlProps, i as SegmentedControlEmits, l as SegmentedControlSize, n as _default, o as SegmentedControlItemSlots, r as SegmentedControlContextValue, s as SegmentedControlLayout, t as _default$1, u as SegmentedControlSlots } from "../index-C93nwgTW.js";
|
|
2
2
|
export { _default as SegmentedControl, type SegmentedControlContextValue, type SegmentedControlEmits, _default$1 as SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlItemSlots, type SegmentedControlLayout, type SegmentedControlProps, type SegmentedControlSize, type SegmentedControlSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../SegmentedControl-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../SegmentedControl-DRxcUlVP.js";
|
|
2
2
|
export { _sfc_main as SegmentedControl, _sfc_main$1 as SegmentedControlItem };
|
|
@@ -10,6 +10,63 @@ import "../styles/segmented-control.css";
|
|
|
10
10
|
//#region src/SegmentedControl/context.ts
|
|
11
11
|
const segmentedControlContextKey = defineLayerScopedKey("astryx-segmented-control", null);
|
|
12
12
|
//#endregion
|
|
13
|
+
//#region src/SegmentedControl/useSegmentedSelection.ts
|
|
14
|
+
/**
|
|
15
|
+
* 选中块是控件里的一块独立表面,每次选中的分段变了都滑到新位置,大小也跟着变。
|
|
16
|
+
* 位置和大小从选中的分段量出来:分段变宽、换行、字体加载完、控件被缩放,都会重新量。
|
|
17
|
+
*/
|
|
18
|
+
function useSegmentedSelection(root) {
|
|
19
|
+
const box = shallowRef(null);
|
|
20
|
+
const isReady = shallowRef(false);
|
|
21
|
+
let observer;
|
|
22
|
+
let frame;
|
|
23
|
+
function measure() {
|
|
24
|
+
const element = root.value;
|
|
25
|
+
const selected = element?.querySelector("[role=\"radio\"][aria-checked=\"true\"]");
|
|
26
|
+
if (element == null || selected == null || selected.offsetWidth === 0 || selected.offsetHeight === 0) {
|
|
27
|
+
box.value = null;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const next = {
|
|
31
|
+
x: selected.offsetLeft,
|
|
32
|
+
y: selected.offsetTop,
|
|
33
|
+
width: selected.offsetWidth,
|
|
34
|
+
height: selected.offsetHeight
|
|
35
|
+
};
|
|
36
|
+
const current = box.value;
|
|
37
|
+
if (current == null || current.x !== next.x || current.y !== next.y || current.width !== next.width || current.height !== next.height) box.value = next;
|
|
38
|
+
}
|
|
39
|
+
onMounted(() => {
|
|
40
|
+
measure();
|
|
41
|
+
if (box.value != null && typeof requestAnimationFrame === "function") frame = requestAnimationFrame(() => {
|
|
42
|
+
isReady.value = true;
|
|
43
|
+
});
|
|
44
|
+
if (typeof ResizeObserver !== "undefined" && root.value != null) {
|
|
45
|
+
observer = new ResizeObserver(measure);
|
|
46
|
+
observer.observe(root.value);
|
|
47
|
+
for (const item of root.value.querySelectorAll("[role=\"radio\"]")) observer.observe(item);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
onUpdated(measure);
|
|
51
|
+
onBeforeUnmount(() => {
|
|
52
|
+
observer?.disconnect();
|
|
53
|
+
if (frame != null && typeof cancelAnimationFrame === "function") cancelAnimationFrame(frame);
|
|
54
|
+
});
|
|
55
|
+
return {
|
|
56
|
+
box,
|
|
57
|
+
isReady,
|
|
58
|
+
style: () => {
|
|
59
|
+
const current = box.value;
|
|
60
|
+
return current == null ? void 0 : {
|
|
61
|
+
"--_selection-x": `${current.x}px`,
|
|
62
|
+
"--_selection-y": `${current.y}px`,
|
|
63
|
+
"--_selection-width": `${current.width}px`,
|
|
64
|
+
"--_selection-height": `${current.height}px`
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
13
70
|
//#region src/SegmentedControl/SegmentedControl.vue
|
|
14
71
|
const _hoisted_1$1 = [
|
|
15
72
|
"aria-describedby",
|
|
@@ -18,8 +75,14 @@ const _hoisted_1$1 = [
|
|
|
18
75
|
"data-disabled",
|
|
19
76
|
"data-disabled-message",
|
|
20
77
|
"data-layout",
|
|
78
|
+
"data-selection",
|
|
21
79
|
"data-size"
|
|
22
80
|
];
|
|
81
|
+
const _hoisted_2$1 = {
|
|
82
|
+
key: 0,
|
|
83
|
+
class: "astryx-segmented-control__selection",
|
|
84
|
+
"aria-hidden": "true"
|
|
85
|
+
};
|
|
23
86
|
const ITEM_SELECTOR = "[role=\"radio\"]";
|
|
24
87
|
const TOOLTIP_SHOW_DELAY = 200;
|
|
25
88
|
const TOOLTIP_HIDE_DELAY = 100;
|
|
@@ -49,7 +112,9 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
49
112
|
const attrs = useAttrs();
|
|
50
113
|
const root = useTemplateRef("root");
|
|
51
114
|
const tooltipId = `astryx-segmented-control-${useId()}-tooltip`;
|
|
52
|
-
|
|
115
|
+
const element = computed(() => root.value ?? null);
|
|
116
|
+
const selection = useSegmentedSelection(root);
|
|
117
|
+
__expose({ element });
|
|
53
118
|
const showsDisabledMessage = computed(() => props.isDisabled && !!props.disabledMessage?.trim());
|
|
54
119
|
function select(value) {
|
|
55
120
|
if (props.isDisabled || value === model.value) return;
|
|
@@ -200,7 +265,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
200
265
|
]);
|
|
201
266
|
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !controlledAttrs.has(key))));
|
|
202
267
|
const rootClass = computed(() => ["astryx-segmented-control", attrs.class]);
|
|
203
|
-
const rootStyle = computed(() => attrs.style);
|
|
268
|
+
const rootStyle = computed(() => [attrs.style, selection.style()]);
|
|
204
269
|
const describedBy = computed(() => [attrs["aria-describedby"], showsDisabledMessage.value ? tooltipId : void 0].filter(Boolean).join(" ") || void 0);
|
|
205
270
|
return (_ctx, _cache) => {
|
|
206
271
|
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", mergeProps({
|
|
@@ -214,6 +279,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
214
279
|
"data-disabled": __props.isDisabled || void 0,
|
|
215
280
|
"data-disabled-message": showsDisabledMessage.value || void 0,
|
|
216
281
|
"data-layout": __props.layout,
|
|
282
|
+
"data-selection": unref(selection).box.value != null ? unref(selection).isReady.value ? "ready" : "measured" : void 0,
|
|
217
283
|
"data-size": unref(size),
|
|
218
284
|
style: rootStyle.value,
|
|
219
285
|
role: "radiogroup",
|
|
@@ -221,7 +287,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
221
287
|
onFocusout: scheduleHideTooltip,
|
|
222
288
|
onPointerenter: scheduleShowTooltip,
|
|
223
289
|
onPointerleave: scheduleHideTooltip
|
|
224
|
-
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$1), showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
290
|
+
}), [unref(selection).box.value != null ? (openBlock(), createElementBlock("span", _hoisted_2$1)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$1), showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
225
291
|
key: 0,
|
|
226
292
|
id: tooltipId,
|
|
227
293
|
anchor: root.value,
|
|
@@ -294,8 +360,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
294
360
|
});
|
|
295
361
|
const describedBy = computed(() => [attrs["aria-describedby"], context?.disabledReasonId.value].filter(Boolean).join(" ") || void 0);
|
|
296
362
|
function handleClick(event) {
|
|
363
|
+
if (isDisabled.value) return;
|
|
297
364
|
invokeNativeEventHandler(attrs.onClick, event);
|
|
298
|
-
if (event.defaultPrevented
|
|
365
|
+
if (event.defaultPrevented) return;
|
|
299
366
|
context?.select(props.value);
|
|
300
367
|
}
|
|
301
368
|
const controlledAttrs = /* @__PURE__ */ new Set([
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ar as SelectableCardSlots, Dr as _default, Or as SelectableCardEmits, kr as SelectableCardProps } from "../index-
|
|
1
|
+
import { Ar as SelectableCardSlots, Dr as _default, Or as SelectableCardEmits, kr as SelectableCardProps } from "../index-DRDOArzq.js";
|
|
2
2
|
export { _default as SelectableCard, _default as default, type SelectableCardEmits, type SelectableCardProps, type SelectableCardSlots };
|
package/dist/Selector/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SelectorOption, c as SelectorProps, d as SelectorSlots, f as SelectorStatus, h as SelectorVariant, i as SelectorIndicatorPosition, l as SelectorSection, m as SelectorStatusVariant, n as SelectorEmits, o as SelectorOptionInput, p as SelectorStatusInput, r as SelectorEntry, s as SelectorPresentation, t as _default, u as SelectorSize } from "../index-
|
|
1
|
+
import { a as SelectorOption, c as SelectorProps, d as SelectorSlots, f as SelectorStatus, h as SelectorVariant, i as SelectorIndicatorPosition, l as SelectorSection, m as SelectorStatusVariant, n as SelectorEmits, o as SelectorOptionInput, p as SelectorStatusInput, r as SelectorEntry, s as SelectorPresentation, t as _default, u as SelectorSize } from "../index-HULXozsK.js";
|
|
2
2
|
export { _default as Selector, type SelectorEmits, type SelectorEntry, type SelectorIndicatorPosition, type SelectorOption, type SelectorOptionInput, type SelectorPresentation, type SelectorProps, type SelectorSection, type SelectorSize, type SelectorSlots, type SelectorStatus, type SelectorStatusInput, type SelectorStatusVariant, type SelectorVariant };
|
package/dist/Selector/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Selector-
|
|
1
|
+
import { t as _sfc_main } from "../Selector-BW_oxWDM.js";
|
|
2
2
|
export { _sfc_main as Selector };
|
|
@@ -16,9 +16,9 @@ import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
|
16
16
|
import { n as clampInlineSize } from "./inlineSize-BNe8wggI.js";
|
|
17
17
|
import { t as _sfc_main$6 } from "./Spinner-DEVPDsD0.js";
|
|
18
18
|
import { t as useIndicator } from "./useIndicator-PFDBNOvX.js";
|
|
19
|
+
import { t as consumeWhileDisabled } from "./disabledInteraction-Bqoyhoss.js";
|
|
19
20
|
import { t as _sfc_main$7 } from "./Field-D4UmRHlD.js";
|
|
20
21
|
import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
|
|
21
|
-
import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
|
|
22
22
|
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
23
23
|
import { n as fieldStatusPlacement, r as _sfc_main$8, t as normalizeTriggerVariant } from "./triggerVariant-DG0VhG-X.js";
|
|
24
24
|
import { t as selectorMessages } from "./selector-BmGLjm94.js";
|
package/dist/SideNav/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Cr as SideNavResizable, Er as useSideNavCollapse, Sr as SideNavProps, Tr as SideNavCollapseContext, _r as SideNavEmits, br as SideNavItemEmits, cr as _default$3, dr as _default, fr as SideNavCollapseButtonProps, gr as SideNavControlledCollapsible, hr as SideNavCollapsible, lr as _default$2, mr as SideNavCollapseButtonSlots, pr as SideNavCollapseButtonSize, sr as _default$4, ur as _default$1, vr as SideNavHandle, wr as SideNavSectionProps, xr as SideNavItemProps, yr as SideNavHeadingProps } from "../index-
|
|
1
|
+
import { Cr as SideNavResizable, Er as useSideNavCollapse, Sr as SideNavProps, Tr as SideNavCollapseContext, _r as SideNavEmits, br as SideNavItemEmits, cr as _default$3, dr as _default, fr as SideNavCollapseButtonProps, gr as SideNavControlledCollapsible, hr as SideNavCollapsible, lr as _default$2, mr as SideNavCollapseButtonSlots, pr as SideNavCollapseButtonSize, sr as _default$4, ur as _default$1, vr as SideNavHandle, wr as SideNavSectionProps, xr as SideNavItemProps, yr as SideNavHeadingProps } from "../index-DRDOArzq.js";
|
|
2
2
|
export { _default as SideNav, _default$1 as SideNavCollapseButton, type SideNavCollapseButtonProps, type SideNavCollapseButtonSize, type SideNavCollapseButtonSlots, type SideNavCollapseContext, type SideNavCollapsible, type SideNavControlledCollapsible, type SideNavEmits, type SideNavHandle, _default$2 as SideNavHeading, type SideNavHeadingProps, _default$3 as SideNavItem, type SideNavItemEmits, type SideNavItemProps, type SideNavProps, type SideNavResizable, _default$4 as SideNavSection, type SideNavSectionProps, useSideNavCollapse };
|
package/dist/SideNav/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as useSideNavCollapse } from "../context-DQPBIsl5.js";
|
|
2
|
-
import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-
|
|
2
|
+
import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-B5mMRj98.js";
|
|
3
3
|
export { _sfc_main as SideNav, _sfc_main$1 as SideNavCollapseButton, _sfc_main$2 as SideNavHeading, _sfc_main$3 as SideNavItem, _sfc_main$4 as SideNavSection, useSideNavCollapse };
|
|
@@ -17,7 +17,7 @@ import { n as noteFocusWithin, r as useFocusLeavingChange, t as moveFocusLeftBeh
|
|
|
17
17
|
import { t as navMessages } from "./nav-DpKQUHqR.js";
|
|
18
18
|
import { t as useCloseMobileDrawer } from "./closeOnActivate-D1KgKWwm.js";
|
|
19
19
|
import { i as safeNavHref, r as resolveNavRoot } from "./link-DuuA2eCL.js";
|
|
20
|
-
import { t as _sfc_main$8 } from "./NavItem-
|
|
20
|
+
import { t as _sfc_main$8 } from "./NavItem-_eIEwV41.js";
|
|
21
21
|
import { t as _sfc_main$9 } from "./NavDisclosure-CqAThYgR.js";
|
|
22
22
|
import { t as _sfc_main$10 } from "./ResizeHandle-BMSbAFdP.js";
|
|
23
23
|
import { t as _sfc_main$11 } from "./NavHeadingSurface-DJ4pWvEi.js";
|
package/dist/Slider/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Slider-
|
|
1
|
+
import { t as _sfc_main } from "../Slider-oD3AY4jh.js";
|
|
2
2
|
export { _sfc_main as Slider };
|