@astryx-vue/core 0.2.6 → 0.3.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/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BBhl5P1X.js → AlertDialog-RAVA_cT1.js} +9 -3
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-mrflO0Uy.js → AppShell-0wTvOo3H.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- 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/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-DIVwbGr3.js → BottomSheet-JYMB_Ofl.js} +1 -1
- package/dist/{BottomSheet-eJ3FzTBD.js → BottomSheet-pt7m4CvC.js} +2 -0
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-DPVaziH4.js → Breadcrumbs-DIm4figq.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/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-DAkOa7KK.js → Carousel-CA8zpD9v.js} +46 -29
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DVoI6UOA.js → Chat-Bmna9EOA.js} +5 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Bhds4RRe.js → ClickableCard-DUsC-j03.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-BUM3czCS.js → CodeBlock-D0BFubut.js} +4 -0
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-D6wYS30d.js → CommandPalette-YHsUNg3V.js} +4 -0
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Bil81sfq.js → ComplexSelector-DWLdKPGI.js} +11 -4
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-DdLJnxNN.js → ContextMenu-Bq9b3Ti5.js} +3 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-u2XKccpK.js → DateInput-DT518j5E.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-u7LhH6up.js → DateRangeInput-Bqi5tlIA.js} +15 -9
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DHp683jZ.js → DateTimeInput-A7m2O3bg.js} +2 -2
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-SM_BEOgM.js → DropdownMenu-CoOQVlRp.js} +1 -1
- package/dist/{DropdownMenu-BEasdJ6R.js → DropdownMenu-DEb2dSSP.js} +3 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-9X6eCUoY.js → Layout-C6RHllr-.js} +1 -1
- package/dist/{LayoutPanel-DeOh00p5.js → LayoutPanel-DXOsaeQb.js} +3 -0
- package/dist/Link/index.d.ts +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-2CVyZDuB.js → Markdown-CvtN7HnF.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-C3dkrM98.js → MobileNavToggle-DxGz0xKA.js} +9 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-D1WFGqGU.js → MoreMenu-Dlb7MLlW.js} +17 -10
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BeV98x7X.js → MultiSelector-BtAUfQ3t.js} +3 -1
- package/dist/NavItem/index.d.ts +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-Cc4BrjQg.js → Pagination-DqwNQFRp.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CtoBfVlD.js → Popover-DJf8POzL.js} +9 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DHoiObLn.js → PowerSearch-DvjiPqMZ.js} +10 -8
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-CJiaALHm.js → ScrollableArea-D4dCJv9I.js} +13 -2
- package/dist/Scrollbars/index.d.ts +2 -0
- package/dist/Scrollbars/index.js +3 -0
- package/dist/Scrollbars-D_93hJYK.js +75 -0
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Bj5s_tIN.js → SelectableCard-Cku4dRzc.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DuVozKNq.js → Selector-DJ2BhUTV.js} +3 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Dtv8eA2j.js → SideNav-BF8mYDxl.js} +14 -5
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-CjQEavuq.js → Stack-CTsTFfar.js} +10 -3
- package/dist/{Stack-D_Bhs-3r.js → Stack-kQlYbbL4.js} +8 -2
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- 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-hqZMmzfU.js → Table-fecqnm7P.js} +11 -6
- package/dist/Text/index.d.ts +2 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/{TimeField-ByiJKBRM.js → TimeField-CoHDGmsP.js} +2 -0
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-S8n946tp.js → TimeInput-D2k3Ux3p.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-41p035dX.js → Tokenizer-B5C_qY7t.js} +2 -0
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CeSeEMX3.js → TopNav-Ciq0l1w7.js} +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-k3xhFxkr.js → Typeahead-JP9RT87x.js} +2 -0
- package/dist/{index-CQCTKjIO.d.ts → index-0QGtSf3r.d.ts} +2 -2
- package/dist/{index-CsTbMVDS.d.ts → index-B3Fomy15.d.ts} +1 -1
- package/dist/{index-DQmK3Lq_.d.ts → index-B42oE_F-.d.ts} +1 -1
- package/dist/{index-EFqQF2Bx.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/{index-CY-KvZ9B.d.ts → index-B9e52paP.d.ts} +1 -1
- package/dist/{index-BXk7Wng7.d.ts → index-BULhhnGf.d.ts} +1 -1
- package/dist/{index-BNy3SW4S.d.ts → index-BVKivP59.d.ts} +1 -1
- package/dist/{index-BJMJ09K-.d.ts → index-BkjSF265.d.ts} +2 -2
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-DamRHh1i.d.ts → index-C2nbK2AA.d.ts} +2 -2
- package/dist/{index-DdGck82Y.d.ts → index-CICeEoZV.d.ts} +1 -1
- package/dist/{index-DYp2RWkM.d.ts → index-CL1T2j4y.d.ts} +2 -2
- package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-uKnRGtzi.d.ts → index-CqE4Bf3Q.d.ts} +2 -2
- package/dist/{index-BPYzIIYn.d.ts → index-Crp3NFLW.d.ts} +1 -1
- package/dist/{index-jW-mP58D.d.ts → index-D41_xqjs.d.ts} +4 -4
- package/dist/{index-DUnDGFQE.d.ts → index-DNA2l1RN.d.ts} +1 -1
- package/dist/{index-CdtZjkmG.d.ts → index-DUaLJO7l.d.ts} +61 -53
- package/dist/{index-WnUY4Kxu.d.ts → index-DVmgNb78.d.ts} +2 -2
- package/dist/{index-BUEPz7BL.d.ts → index-GI9xIV9l.d.ts} +3 -3
- package/dist/{index-BJSxFVXH.d.ts → index-IBAInumL.d.ts} +2 -2
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/index-fAZaRruV.d.ts +125 -0
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
- package/dist/{index-csA1lH_0.d.ts → index-xrzJC4wm.d.ts} +1 -1
- package/dist/{index-N7OVZ38M.d.ts → index-yT1yiiww.d.ts} +5 -5
- package/dist/index.d.ts +46 -45
- package/dist/index.js +66 -64
- package/dist/{types-H4Bbbxiw.d.ts → types-BnNTzEnd.d.ts} +1 -1
- package/dist/{types-BBWrcHMD.d.ts → types-Ckih2YJi.d.ts} +3 -2
- package/dist/useScrollbars-C2NJ6Qwq.js +43 -0
- package/package.json +7 -2
- package/styles/scrollbars.css +28 -0
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -43,3 +43,12 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
43
43
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
44
44
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
45
45
|
SOFTWARE.
|
|
46
|
+
|
|
47
|
+
## OverlayScrollbars
|
|
48
|
+
|
|
49
|
+
`ScrollbarsProvider` uses OverlayScrollbars as a runtime dependency. It is installed from npm and is not copied into this package. `styles/scrollbars.css` imports its stylesheet into the `astryx.base` layer and defines the `os-theme-astryx` theme.
|
|
50
|
+
|
|
51
|
+
- Repository: <https://github.com/KingSora/OverlayScrollbars>
|
|
52
|
+
- Version: `2.16.0`
|
|
53
|
+
- License: MIT
|
|
54
|
+
- Copyright: (c) Rene Haas | KingSora
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-
|
|
1
|
+
import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-RAVA_cT1.js";
|
|
2
2
|
export { _sfc_main as AlertDialog, useImperativeAlertDialog };
|
|
@@ -2,7 +2,8 @@ import { t as _sfc_main$1 } from "./Button-B6Hj_O_s.js";
|
|
|
2
2
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./Dialog-FGHfDu5M.js";
|
|
4
4
|
import { t as _sfc_main$3 } from "./Heading-BnwWEWkp.js";
|
|
5
|
-
import { t as
|
|
5
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
6
|
+
import { t as _sfc_main$4 } from "./Stack-kQlYbbL4.js";
|
|
6
7
|
import { t as _sfc_main$5 } from "./Text-CV3LmscH.js";
|
|
7
8
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, h, mergeProps, normalizeClass, openBlock, provide, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, useId, useTemplateRef, withCtx } from "vue";
|
|
8
9
|
import "../styles/alert-dialog.css";
|
|
@@ -10,7 +11,10 @@ import "../styles/alert-dialog.css";
|
|
|
10
11
|
const ALERT_DIALOG_CONTEXT_KEY = Symbol("astryx-alert-dialog");
|
|
11
12
|
//#endregion
|
|
12
13
|
//#region src/AlertDialog/AlertDialog.vue
|
|
13
|
-
const _hoisted_1 = {
|
|
14
|
+
const _hoisted_1 = {
|
|
15
|
+
ref: "content",
|
|
16
|
+
class: "astryx-alert-dialog__content"
|
|
17
|
+
};
|
|
14
18
|
const _hoisted_2 = { class: "astryx-alert-dialog__footer" };
|
|
15
19
|
/**
|
|
16
20
|
* Order is part of the contract, not just the visual: on a narrow screen the
|
|
@@ -51,6 +55,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
51
55
|
titleId
|
|
52
56
|
});
|
|
53
57
|
const dialog = useTemplateRef("dialog");
|
|
58
|
+
const contentEl = useTemplateRef("content");
|
|
59
|
+
useScrollbars(contentEl);
|
|
54
60
|
const element = computed(() => {
|
|
55
61
|
const rendered = dialog.value?.$el;
|
|
56
62
|
return rendered instanceof HTMLElement ? rendered : null;
|
|
@@ -120,7 +126,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
120
126
|
}, {
|
|
121
127
|
default: withCtx(() => [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])]),
|
|
122
128
|
_: 3
|
|
123
|
-
})]), createElementVNode("div", _hoisted_2, [createVNode(_sfc_main$4, {
|
|
129
|
+
})], 512), createElementVNode("div", _hoisted_2, [createVNode(_sfc_main$4, {
|
|
124
130
|
class: "astryx-alert-dialog__actions",
|
|
125
131
|
direction: unref(isSmallScreen) ? "vertical" : "horizontal",
|
|
126
132
|
gap: 2,
|
package/dist/AppShell/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AppShellMobileNav, c as AppShellVariant, i as AppShellHeight, n as AppShellBreakpoint, o as AppShellProps, r as AppShellEmits, s as AppShellSlots, t as _default } from "../index-
|
|
1
|
+
import { a as AppShellMobileNav, c as AppShellVariant, i as AppShellHeight, n as AppShellBreakpoint, o as AppShellProps, r as AppShellEmits, s as AppShellSlots, t as _default } from "../index-TXcNH86P.js";
|
|
2
2
|
export { _default as AppShell, type AppShellBreakpoint, type AppShellEmits, type AppShellHeight, type AppShellMobileNav, type AppShellProps, type AppShellSlots, type AppShellVariant };
|
package/dist/AppShell/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../AppShell-
|
|
1
|
+
import { t as _sfc_main } from "../AppShell-0wTvOo3H.js";
|
|
2
2
|
export { _sfc_main as AppShell };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as appShellMobileKey } from "./useAppShellMobile-DTsyuAJ4.js";
|
|
2
2
|
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
3
|
-
import { a as _sfc_main$2, n as _sfc_main$4, r as _sfc_main$3, t as _sfc_main$5 } from "./LayoutPanel-
|
|
4
|
-
import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-
|
|
3
|
+
import { a as _sfc_main$2, n as _sfc_main$4, r as _sfc_main$3, t as _sfc_main$5 } from "./LayoutPanel-DXOsaeQb.js";
|
|
4
|
+
import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-DxGz0xKA.js";
|
|
5
5
|
import { n as sideNavRenderModeKey } from "./context-BjNya0v8.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeModels, mergeProps, openBlock, provide, reactive, ref, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
7
7
|
import "../styles/app-shell.css";
|
package/dist/Avatar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AvatarProps, c as AvatarStatusDotProps, d as AvatarStatusDotVariantName, i as AvatarNumericSize, l as AvatarStatusDotSlots, n as _default, o as AvatarShape, r as AvatarNamedSize, s as AvatarSize, t as _default$1, u as AvatarStatusDotVariant } from "../index-
|
|
1
|
+
import { a as AvatarProps, c as AvatarStatusDotProps, d as AvatarStatusDotVariantName, i as AvatarNumericSize, l as AvatarStatusDotSlots, n as _default, o as AvatarShape, r as AvatarNamedSize, s as AvatarSize, t as _default$1, u as AvatarStatusDotVariant } from "../index-DNA2l1RN.js";
|
|
2
2
|
export { _default as Avatar, type AvatarNamedSize, type AvatarNumericSize, type AvatarProps, type AvatarShape, type AvatarSize, _default$1 as AvatarStatusDot, type AvatarStatusDotProps, type AvatarStatusDotSlots, type AvatarStatusDotVariant, type AvatarStatusDotVariantName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-
|
|
1
|
+
import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowEmits, type AvatarGroupOverflowProps, type AvatarGroupOverflowSlots, type AvatarGroupProps };
|
package/dist/Banner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ga as BannerContainer, Ja as BannerSlots, Ka as BannerEmits, Wa as _default, Ya as BannerStatus, qa as BannerProps } from "../index-
|
|
1
|
+
import { Ga as BannerContainer, Ja as BannerSlots, Ka as BannerEmits, Wa as _default, Ya as BannerStatus, qa as BannerProps } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-
|
|
1
|
+
import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-0QGtSf3r.js";
|
|
2
2
|
export { _default as BottomSheet, type BottomSheetEmits, type BottomSheetHeight, type BottomSheetMotion, type BottomSheetPadding, type BottomSheetProps, type BottomSheetPurpose, type BottomSheetSlots, type BottomSheetSnapPoint, type BottomSheetState, _default$1 as BottomSheetSwitcher };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../BottomSheet-
|
|
2
|
-
import { t as _sfc_main$1 } from "../BottomSheet-
|
|
1
|
+
import { t as _sfc_main } from "../BottomSheet-pt7m4CvC.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "../BottomSheet-JYMB_Ofl.js";
|
|
3
3
|
export { _sfc_main as BottomSheet, _sfc_main$1 as BottomSheetSwitcher };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as useFocusTrap } from "./useRestoreFocus-Djw9RUIf.js";
|
|
2
2
|
import { t as useScrollLock } from "./scrollLock-BzIvIimL.js";
|
|
3
|
-
import { n as bottomSheetSwitcherKey } from "./BottomSheet-
|
|
3
|
+
import { n as bottomSheetSwitcherKey } from "./BottomSheet-pt7m4CvC.js";
|
|
4
4
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, mergeProps, nextTick, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, useModel, useTemplateRef, watch } from "vue";
|
|
5
5
|
import "../styles/bottom-sheet.css";
|
|
6
6
|
//#region src/BottomSheet/BottomSheetSwitcher.vue
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { n as useFocusTrap, t as useRestoreFocus } from "./useRestoreFocus-Djw9RUIf.js";
|
|
2
2
|
import { t as useScrollLock } from "./scrollLock-BzIvIimL.js";
|
|
3
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
3
4
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUpdated, openBlock, ref, renderSlot, toValue, unref, useAttrs, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
4
5
|
import "../styles/bottom-sheet.css";
|
|
5
6
|
/** Scrim opacity at the peek stop: dimmed, never clear, because the sheet stays modal. */
|
|
@@ -578,6 +579,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
578
579
|
};
|
|
579
580
|
const panel = useTemplateRef("panel");
|
|
580
581
|
const body = useTemplateRef("body");
|
|
582
|
+
useScrollbars(body);
|
|
581
583
|
const isInteractive = computed(() => props.state === "open");
|
|
582
584
|
const heightKind = computed(() => {
|
|
583
585
|
const height = props.height;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as _sfc_main$1, n as _sfc_main$3, r as _sfc_main$2 } from "../useMenuDrillIn-DzKGkTho.js";
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-DIm4figq.js";
|
|
3
3
|
export { _sfc_main as BreadcrumbItem, _sfc_main$1 as BreadcrumbMenuCheckboxItem, _sfc_main$2 as BreadcrumbMenuRadioGroup, _sfc_main$3 as BreadcrumbMenuRadioItem, _sfc_main$4 as Breadcrumbs };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
2
2
|
import { n as useDevWarning } from "./useDevWarning-DznOpOHT.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
|
|
4
|
-
import { t as _sfc_main$3 } from "./DropdownMenu-
|
|
4
|
+
import { t as _sfc_main$3 } from "./DropdownMenu-DEb2dSSP.js";
|
|
5
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, useSlots, withCtx } from "vue";
|
|
6
6
|
import "../styles/breadcrumbs.css";
|
|
7
7
|
//#region src/Breadcrumbs/context.ts
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as ButtonProps, c as ButtonSizeValue, d as ButtonVariantMap, i as ButtonLinkElement, l as ButtonSlots, n as ButtonElevation, o as ButtonRootElement, r as ButtonEmits, s as ButtonSize, t as ButtonClickAction, u as ButtonVariant } from "../types-WlmsNL1I.js";
|
|
2
|
-
import { t as _default } from "../index-
|
|
2
|
+
import { t as _default } from "../index-B4OOtNP8.js";
|
|
3
3
|
export { _default as Button, _default as default, type ButtonClickAction, type ButtonElevation, type ButtonEmits, type ButtonLinkElement, type ButtonProps, type ButtonRootElement, type ButtonSize, type ButtonSizeValue, type ButtonSlots, type ButtonVariant, type ButtonVariantMap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ba as _default, Ha as ButtonGroupSlots, Ua as ButtonGroupOrientation, Va as ButtonGroupProps } from "../index-
|
|
1
|
+
import { Ba as _default, Ha as ButtonGroupSlots, Ua as ButtonGroupOrientation, Va as ButtonGroupProps } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
|
package/dist/Calendar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Fa as CalendarHandle, Ia as CalendarHandleRef, La as CalendarProps, Na as _default, Pa as CalendarEmits, Ra as CalendarRangeValue, za as CalendarSlots } from "../index-
|
|
1
|
+
import { Fa as CalendarHandle, Ia as CalendarHandleRef, La as CalendarProps, Na as _default, Pa as CalendarEmits, Ra as CalendarRangeValue, za as CalendarSlots } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as Calendar, type CalendarEmits, type CalendarHandle, type CalendarHandleRef, type CalendarProps, type CalendarRangeValue, type CalendarSlots };
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, t as _default } from "../index-
|
|
1
|
+
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, t as _default } from "../index-BVKivP59.js";
|
|
2
2
|
export { _default as Card, type CardElevation, type CardProps, type CardSizeValue, type CardSlots, type CardVariant };
|
package/dist/Card/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Card-
|
|
1
|
+
import { t as _sfc_main } from "../Card-B-I24X9S.js";
|
|
2
2
|
export { _sfc_main as Card };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
1
2
|
import { computed, createElementBlock, defineComponent, normalizeStyle, openBlock, renderSlot, useTemplateRef } from "vue";
|
|
2
3
|
import "../styles/card.css";
|
|
3
4
|
//#region src/Card/Card.vue
|
|
@@ -23,6 +24,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
23
24
|
const props = __props;
|
|
24
25
|
const element = useTemplateRef("element");
|
|
25
26
|
const hasFixedHeight = computed(() => props.height != null && props.height !== "auto");
|
|
27
|
+
useScrollbars(element, { enabled: hasFixedHeight });
|
|
26
28
|
function formatSize(value) {
|
|
27
29
|
if (value == null) return void 0;
|
|
28
30
|
return typeof value === "number" ? `${value}px` : value;
|
package/dist/Carousel/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Carousel-
|
|
1
|
+
import { t as _sfc_main } from "../Carousel-CA8zpD9v.js";
|
|
2
2
|
export { _sfc_main as Carousel };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./IconButton-DDNgNl7B.js";
|
|
2
2
|
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
|
|
4
|
-
import { Comment, Fragment, Text, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref,
|
|
4
|
+
import { Comment, Fragment, Text, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, h, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUpdated, openBlock, ref, unref, watch, withCtx } from "vue";
|
|
5
5
|
import "../styles/carousel.css";
|
|
6
6
|
//#region src/Carousel/slides.ts
|
|
7
7
|
function flattenSlides(nodes) {
|
|
@@ -17,14 +17,38 @@ function flattenSlides(nodes) {
|
|
|
17
17
|
}
|
|
18
18
|
return slides;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
/**
|
|
21
|
+
* 在自己的渲染函数里读取轮播的默认插槽,并给每张卡片套上分组外壳。
|
|
22
|
+
*
|
|
23
|
+
* 插槽必须在渲染时调用:Vue 才能追踪插槽里用到的响应式数据,
|
|
24
|
+
* 父组件传下新的插槽函数时也能立刻看到最新内容。放进 `computed` 或 `watch`
|
|
25
|
+
* 会得到缓存的旧结果,在 `setup` 里求值还会触发 Vue 的警告。
|
|
26
|
+
*/
|
|
27
|
+
const CarouselItems = defineComponent({
|
|
28
|
+
name: "CarouselItems",
|
|
29
|
+
props: {
|
|
30
|
+
content: {
|
|
31
|
+
type: Function,
|
|
32
|
+
default: void 0
|
|
33
|
+
},
|
|
34
|
+
label: {
|
|
35
|
+
type: Function,
|
|
36
|
+
required: true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
emits: ["update"],
|
|
40
|
+
setup(props, { emit }) {
|
|
41
|
+
onUpdated(() => emit("update"));
|
|
42
|
+
return () => {
|
|
43
|
+
const slides = flattenSlides(props.content?.() ?? []);
|
|
44
|
+
return slides.map((slide, index) => h("div", {
|
|
45
|
+
"key": index,
|
|
46
|
+
"class": "astryx-carousel__item",
|
|
47
|
+
"role": "group",
|
|
48
|
+
"aria-roledescription": "slide",
|
|
49
|
+
"aria-label": props.label(index + 1, slides.length)
|
|
50
|
+
}, [slide]));
|
|
51
|
+
};
|
|
28
52
|
}
|
|
29
53
|
});
|
|
30
54
|
//#endregion
|
|
@@ -178,13 +202,12 @@ const _hoisted_2 = [
|
|
|
178
202
|
"data-edge-fade",
|
|
179
203
|
"data-fade"
|
|
180
204
|
];
|
|
181
|
-
const _hoisted_3 =
|
|
182
|
-
const _hoisted_4 = {
|
|
205
|
+
const _hoisted_3 = {
|
|
183
206
|
key: 0,
|
|
184
207
|
class: "astryx-carousel__controls"
|
|
185
208
|
};
|
|
209
|
+
const _hoisted_4 = ["data-hidden"];
|
|
186
210
|
const _hoisted_5 = ["data-hidden"];
|
|
187
|
-
const _hoisted_6 = ["data-hidden"];
|
|
188
211
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
189
212
|
name: "AstryxCarousel",
|
|
190
213
|
inheritAttrs: false,
|
|
@@ -212,14 +235,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
212
235
|
},
|
|
213
236
|
setup(__props, { expose: __expose }) {
|
|
214
237
|
const props = __props;
|
|
215
|
-
const slots = useSlots();
|
|
216
238
|
const messages = useAstryxMessages();
|
|
217
239
|
const scroller = ref(null);
|
|
218
240
|
const startButton = ref(null);
|
|
219
241
|
const endButton = ref(null);
|
|
220
242
|
const focusedNav = ref(null);
|
|
221
243
|
const { measure, onKeyDown, overflow, scrollByDirection, scrollToIndex } = useCarouselScroller(scroller);
|
|
222
|
-
const slides = computed(() => flattenSlides(slots.default?.() ?? []));
|
|
223
244
|
const regionLabel = computed(() => props.label ?? messages.value.carousel.label);
|
|
224
245
|
const canScrollStart = computed(() => props.hasLoop && overflow.value.hasOverflow ? true : overflow.value.overflowStart);
|
|
225
246
|
const canScrollEnd = computed(() => props.hasLoop && overflow.value.hasOverflow ? true : overflow.value.overflowEnd);
|
|
@@ -286,9 +307,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
286
307
|
scrollPrev,
|
|
287
308
|
scrollTo: scrollToIndex
|
|
288
309
|
});
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
310
|
+
function slideLabel(position, total) {
|
|
311
|
+
return messages.value.carousel.slide(position, total);
|
|
312
|
+
}
|
|
292
313
|
return (_ctx, _cache) => {
|
|
293
314
|
return openBlock(), createElementBlock("div", {
|
|
294
315
|
class: normalizeClass(["astryx-carousel", _ctx.$attrs.class]),
|
|
@@ -311,16 +332,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
311
332
|
tabindex: "0",
|
|
312
333
|
style: normalizeStyle(scrollerStyle.value),
|
|
313
334
|
onKeydown: _cache[0] || (_cache[0] = ($event) => unref(onKeyDown)($event, __props.hasLoop))
|
|
314
|
-
}, [(
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
"aria-label": unref(messages).carousel.slide(index + 1, slides.value.length)
|
|
321
|
-
}, [createVNode(unref(CarouselSlideHost), { node: slide }, null, 8, ["node"])], 8, _hoisted_3);
|
|
322
|
-
}), 128))], 44, _hoisted_2),
|
|
323
|
-
__props.hasButtons ? (openBlock(), createElementBlock("div", _hoisted_4, [createElementVNode("div", {
|
|
335
|
+
}, [createVNode(unref(CarouselItems), {
|
|
336
|
+
content: _ctx.$slots.default,
|
|
337
|
+
label: slideLabel,
|
|
338
|
+
onUpdate: unref(measure)
|
|
339
|
+
}, null, 8, ["content", "onUpdate"])], 44, _hoisted_2),
|
|
340
|
+
__props.hasButtons ? (openBlock(), createElementBlock("div", _hoisted_3, [createElementVNode("div", {
|
|
324
341
|
class: "astryx-carousel__pill astryx-carousel__pill--start",
|
|
325
342
|
"data-hidden": !canScrollStart.value || void 0
|
|
326
343
|
}, [createVNode(_sfc_main$1, {
|
|
@@ -337,7 +354,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
337
354
|
size: "xsm"
|
|
338
355
|
})]),
|
|
339
356
|
_: 1
|
|
340
|
-
}, 8, ["label", "is-disabled"])], 8,
|
|
357
|
+
}, 8, ["label", "is-disabled"])], 8, _hoisted_4), createElementVNode("div", {
|
|
341
358
|
class: "astryx-carousel__pill astryx-carousel__pill--end",
|
|
342
359
|
"data-hidden": !canScrollEnd.value || void 0
|
|
343
360
|
}, [createVNode(_sfc_main$1, {
|
|
@@ -354,7 +371,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
354
371
|
size: "xsm"
|
|
355
372
|
})]),
|
|
356
373
|
_: 1
|
|
357
|
-
}, 8, ["label", "is-disabled"])], 8,
|
|
374
|
+
}, 8, ["label", "is-disabled"])], 8, _hoisted_5)])) : createCommentVNode("v-if", true)
|
|
358
375
|
], 14, _hoisted_1);
|
|
359
376
|
};
|
|
360
377
|
}
|
package/dist/Chat/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatSystemMessageProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageStatus, D as _default$11, Dt as ChatSendButtonEmits, E as _default$12, Et as ChatReasoningSlots, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageVariant, N as _default$5, Nt as ChatTokenizedTextProps, O as _default$10, Ot as ChatSendButtonProps, P as _default$4, Pt as ChatTokenizedTextSlots, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageSlots, T as _default$13, Tt as ChatReasoningProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageListSlots, a as useChatPasteAsToken, at as ChatDictationButtonProps, b as useChatMessageContext, bt as ChatMessageProps, c as SpeechRecognitionError, ct as ChatLayoutScrollButtonProps, d as useSpeechRecognition, dt as ChatMessageBubbleGroup, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatMessageBubbleProps, g as ChatComposerContextValue, gt as ChatMessageListProps, h as useChatComposerTokens, ht as ChatMessageListAlign, i as pastedTextLabel, it as ChatDensity, j as _default$7, jt as ChatSystemMessageSlots, k as _default$9, kt as ChatSendButtonSlots, l as UseSpeechRecognitionOptions, lt as ChatLayoutScrollSlotProps, m as UseChatComposerTokensReturn, mt as ChatMessageBubbleVariant, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatLayoutProps, p as UseChatComposerTokensOptions, pt as ChatMessageBubbleSlots, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatLayoutScrollButtonEmits, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatLayoutSlots, v as useChatLayoutContext, vt as ChatMessageMetadataProps, w as _default$14, wt as ChatReasoningEmits, x as _default$17, xt as ChatMessageSender, y as useChatListContext, yt as ChatMessageMetadataSlots, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-
|
|
1
|
+
import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatSystemMessageProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageStatus, D as _default$11, Dt as ChatSendButtonEmits, E as _default$12, Et as ChatReasoningSlots, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageVariant, N as _default$5, Nt as ChatTokenizedTextProps, O as _default$10, Ot as ChatSendButtonProps, P as _default$4, Pt as ChatTokenizedTextSlots, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageSlots, T as _default$13, Tt as ChatReasoningProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageListSlots, a as useChatPasteAsToken, at as ChatDictationButtonProps, b as useChatMessageContext, bt as ChatMessageProps, c as SpeechRecognitionError, ct as ChatLayoutScrollButtonProps, d as useSpeechRecognition, dt as ChatMessageBubbleGroup, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatMessageBubbleProps, g as ChatComposerContextValue, gt as ChatMessageListProps, h as useChatComposerTokens, ht as ChatMessageListAlign, i as pastedTextLabel, it as ChatDensity, j as _default$7, jt as ChatSystemMessageSlots, k as _default$9, kt as ChatSendButtonSlots, l as UseSpeechRecognitionOptions, lt as ChatLayoutScrollSlotProps, m as UseChatComposerTokensReturn, mt as ChatMessageBubbleVariant, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatLayoutProps, p as UseChatComposerTokensOptions, pt as ChatMessageBubbleSlots, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatLayoutScrollButtonEmits, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatLayoutSlots, v as useChatLayoutContext, vt as ChatMessageMetadataProps, w as _default$14, wt as ChatReasoningEmits, x as _default$17, xt as ChatMessageSender, y as useChatListContext, yt as ChatMessageMetadataSlots, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-IBAInumL.js";
|
|
2
2
|
export { _default as ChatComposer, type ChatComposerContextValue, type ChatComposerDensity, _default$1 as ChatComposerDrawer, type ChatComposerDrawerEmits, type ChatComposerDrawerProps, type ChatComposerDrawerSlots, type ChatComposerElevation, type ChatComposerEmits, _default$2 as ChatComposerInput, type ChatComposerInputControl, type ChatComposerInputEmits, type ChatComposerInputHandle, type ChatComposerInputProps, type ChatComposerProps, type ChatComposerSlots, type ChatComposerStatus, type ChatComposerToken, type ChatComposerTokenBadge, type ChatComposerTokenCustom, _default$3 as ChatComposerTokenElement, type ChatComposerTokenElementProps, type ChatComposerTrigger, type ChatComposerTriggerItem, type ChatDensity, _default$4 as ChatDictationButton, type ChatDictationButtonProps, _default$5 as ChatLayout, type ChatLayoutProps, _default$6 as ChatLayoutScrollButton, type ChatLayoutScrollButtonEmits, type ChatLayoutScrollButtonProps, type ChatLayoutScrollSlotProps, type ChatLayoutSlots, _default$7 as ChatMessage, _default$8 as ChatMessageBubble, type ChatMessageBubbleGroup, type ChatMessageBubbleProps, type ChatMessageBubbleSlots, type ChatMessageBubbleVariant, _default$9 as ChatMessageList, type ChatMessageListAlign, type ChatMessageListProps, type ChatMessageListSlots, _default$10 as ChatMessageMetadata, type ChatMessageMetadataProps, type ChatMessageMetadataSlots, type ChatMessageProps, type ChatMessageSender, type ChatMessageSlots, type ChatMessageStatus, _default$11 as ChatReasoning, type ChatReasoningEmits, type ChatReasoningProps, type ChatReasoningSlots, _default$12 as ChatSendButton, type ChatSendButtonEmits, type ChatSendButtonProps, type ChatSendButtonSlots, _default$13 as ChatSystemMessage, type ChatSystemMessageProps, type ChatSystemMessageSlots, type ChatSystemMessageVariant, _default$14 as ChatTokenizedText, type ChatTokenizedTextProps, type ChatTokenizedTextSlots, type ChatToolCallItem, type ChatToolCallStatus, _default$15 as ChatToolCalls, type ChatToolCallsEmits, type ChatToolCallsProps, type ChatToolCallsSlots, _default$16 as ChatTypingIndicator, type ChatTypingIndicatorProps, _default$17 as ChatUnreadDivider, type ChatUnreadDividerProps, PASTE_TOKEN_THRESHOLD, type SpeechRecognitionError, type TokenPortal, type UseChatComposerTokensOptions, type UseChatComposerTokensReturn, type UseChatDictationOptions, type UseChatPasteAsTokenOptions, type UseChatPasteAsTokenReturn, type UseSpeechRecognitionOptions, type UseSpeechRecognitionReturn, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
|
package/dist/Chat/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-
|
|
1
|
+
import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-Bmna9EOA.js";
|
|
2
2
|
export { _sfc_main as ChatComposer, _sfc_main$1 as ChatComposerDrawer, _sfc_main$2 as ChatComposerInput, _sfc_main$3 as ChatComposerTokenElement, _sfc_main$4 as ChatDictationButton, _sfc_main$5 as ChatLayout, _sfc_main$6 as ChatLayoutScrollButton, _sfc_main$7 as ChatMessage, _sfc_main$8 as ChatMessageBubble, _sfc_main$9 as ChatMessageList, _sfc_main$10 as ChatMessageMetadata, _sfc_main$11 as ChatReasoning, _sfc_main$12 as ChatSendButton, _sfc_main$13 as ChatSystemMessage, _sfc_main$14 as ChatTokenizedText, _sfc_main$15 as ChatToolCalls, _sfc_main$16 as ChatTypingIndicator, _sfc_main$17 as ChatUnreadDivider, PASTE_TOKEN_THRESHOLD, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
|
|
@@ -4,6 +4,7 @@ import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
|
4
4
|
import { r as useChatNewMessages, t as useChatStreamScroll } from "./useChatStreamScroll-oDfybEos.js";
|
|
5
5
|
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-Cru9_00b.js";
|
|
6
6
|
import { a as useAstryxLocale, o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
7
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
7
8
|
import { t as _sfc_main$26 } from "./Badge-CjDQPF5g.js";
|
|
8
9
|
import { t as _sfc_main$27 } from "./Icon-bteSId7T.js";
|
|
9
10
|
import { t as _sfc_main$28 } from "./Divider-BtwnL18I.js";
|
|
@@ -287,6 +288,8 @@ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
|
287
288
|
if (!props.open || !props.keyboardMove || index < 0) return;
|
|
288
289
|
document.getElementById(optionId(index))?.scrollIntoView({ block: "nearest" });
|
|
289
290
|
});
|
|
291
|
+
const listEl = useTemplateRef("list");
|
|
292
|
+
useScrollbars(listEl);
|
|
290
293
|
function onSelect(item, event) {
|
|
291
294
|
event.preventDefault();
|
|
292
295
|
emit("select", item);
|
|
@@ -300,6 +303,7 @@ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
|
300
303
|
style: normalizeStyle(style.value)
|
|
301
304
|
}, [createElementVNode("div", {
|
|
302
305
|
id: __props.listboxId,
|
|
306
|
+
ref: "list",
|
|
303
307
|
class: "astryx-chat-trigger__list",
|
|
304
308
|
role: "listbox",
|
|
305
309
|
"aria-label": __props.label
|
|
@@ -1783,6 +1787,7 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
|
1783
1787
|
const root = useTemplateRef("root");
|
|
1784
1788
|
const scrollTarget = computed(() => props.scrollRef ?? root.value);
|
|
1785
1789
|
const isSelfScrolling = computed(() => props.scrollRef == null);
|
|
1790
|
+
useScrollbars(root, { enabled: isSelfScrolling });
|
|
1786
1791
|
const scroll = useChatStreamScroll({ scrollRef: scrollTarget });
|
|
1787
1792
|
const newMessages = useChatNewMessages({
|
|
1788
1793
|
isLocked: scroll.isLocked,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Aa as CheckboxInputProps, Da as CheckboxInputChangeAction, Ea as _default, Ma as CheckboxValue, Oa as CheckboxInputChangeEvent, ja as CheckboxInputSlots, ka as CheckboxInputEmits } from "../index-
|
|
1
|
+
import { Aa as CheckboxInputProps, Da as CheckboxInputChangeAction, Ea as _default, Ma as CheckboxValue, Oa as CheckboxInputChangeEvent, ja as CheckboxInputSlots, ka as CheckboxInputEmits } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as CheckboxInput, type CheckboxInputChangeAction, type CheckboxInputChangeEvent, type CheckboxInputEmits, type CheckboxInputProps, type CheckboxInputSlots, type CheckboxValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ca as CheckboxListItemEmits, Sa as CheckboxListEmits, Ta as CheckboxListProps, ba as _default$1, wa as CheckboxListItemProps, xa as _default } from "../index-
|
|
1
|
+
import { Ca as CheckboxListItemEmits, Sa as CheckboxListEmits, Ta as CheckboxListProps, ba as _default$1, wa as CheckboxListItemProps, xa as _default } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _a as ClickableCardEmits, ga as _default, va as ClickableCardProps, ya as ClickableCardSlots } from "../index-
|
|
1
|
+
import { _a as ClickableCardEmits, ga as _default, va as ClickableCardProps, ya as ClickableCardSlots } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as ClickableCard_default } from "../ClickableCard-
|
|
1
|
+
import { n as _sfc_main, t as ClickableCard_default } from "../ClickableCard-DUsC-j03.js";
|
|
2
2
|
export { _sfc_main as ClickableCard, ClickableCard_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
2
|
import { n as useClickableContainer } from "./useClickableContainer-DyNpnSEa.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./Card-
|
|
3
|
+
import { t as _sfc_main$2 } from "./Card-B-I24X9S.js";
|
|
4
4
|
import { computed, createBlock, defineComponent, openBlock, renderSlot, useTemplateRef, withCtx } from "vue";
|
|
5
5
|
import "../styles/clickable-card.css";
|
|
6
6
|
//#region src/ClickableCard/ClickableCard.vue
|
package/dist/Code/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as SyntaxThemeInput, c as SyntaxTokenValue, i as SyntaxThemeDefinition, l as defineSyntaxTheme, n as SYNTAX_TOKEN_KEYS, o as SyntaxThemeTokens, r as SyntaxDiffTokenKey, s as SyntaxTokenKey, t as DIFF_SYNTAX_TOKEN_KEYS, u as githubDark } from "../syntaxTheme-CwVEcVDk.js";
|
|
2
|
-
import { A as _default, B as CodeSlots, C as applyHighlightRanges, D as parseFenceLanguage, E as diffLineKind, F as CodeBlockTokenizer, H as TokenLine, I as CodeColor, L as CodeHighlightMode, M as CodeBlockEmits, N as CodeBlockProps, O as splitDiffLines, P as CodeBlockSize, R as CodeProps, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLines, V as SyntaxToken, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as CodeBlockContainer, k as _default$1, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as DiffLineKind, x as tokyoNightLight, y as solarizedLight, z as CodeSize } from "../index-
|
|
2
|
+
import { A as _default, B as CodeSlots, C as applyHighlightRanges, D as parseFenceLanguage, E as diffLineKind, F as CodeBlockTokenizer, H as TokenLine, I as CodeColor, L as CodeHighlightMode, M as CodeBlockEmits, N as CodeBlockProps, O as splitDiffLines, P as CodeBlockSize, R as CodeProps, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLines, V as SyntaxToken, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as CodeBlockContainer, k as _default$1, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as DiffLineKind, x as tokyoNightLight, y as solarizedLight, z as CodeSize } from "../index-hCpxKePE.js";
|
|
3
3
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-CU-kfqeJ.js";
|
|
4
4
|
export { _default as Code, _default$1 as CodeBlock, type CodeBlockContainer, type CodeBlockEmits, type CodeBlockProps, type CodeBlockSize, type CodeBlockTokenizer, type CodeColor, type CodeHighlightMode, type CodeProps, type CodeSize, type CodeSlots, type UseClipboardOptions as CopyToClipboardOptions, type UseClipboardReturn as CopyToClipboardReturn, DIFF_SYNTAX_TOKEN_KEYS, type DiffLineKind, type DiffLines, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, type SyntaxDiffTokenKey, _default$2 as SyntaxTheme, type SyntaxThemeDefinition, type SyntaxThemeInput, type SyntaxThemeTokens, type SyntaxToken, type SyntaxTokenKey, type SyntaxTokenValue, type TokenLine, type UseSyntaxThemeReturn, allSyntaxPresets, applyHighlightRanges, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
package/dist/Code/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useClipboard } from "../useClipboard-BDfbEsWd.js";
|
|
2
|
-
import { a as tokenizeAsync, c as splitDiffLines, d as _sfc_main, i as tokenize, l as HIGHLIGHTED_TOKEN_TYPES, n as SYNC_TOKENIZE_THRESHOLD, o as diffLineKind, r as flatTokensToLines, s as parseFenceLanguage, t as _sfc_main$1, u as applyHighlightRanges } from "../CodeBlock-
|
|
2
|
+
import { a as tokenizeAsync, c as splitDiffLines, d as _sfc_main, i as tokenize, l as HIGHLIGHTED_TOKEN_TYPES, n as SYNC_TOKENIZE_THRESHOLD, o as diffLineKind, r as flatTokensToLines, s as parseFenceLanguage, t as _sfc_main$1, u as applyHighlightRanges } from "../CodeBlock-D0BFubut.js";
|
|
3
3
|
import { i as githubDark, n as SYNTAX_TOKEN_KEYS, r as defineSyntaxTheme, t as DIFF_SYNTAX_TOKEN_KEYS } from "../syntaxTheme-R7xnu5x5.js";
|
|
4
4
|
import { a as catppuccinMocha, c as githubLight, d as nord, f as oneDarkPro, g as tokyoNightLight, h as tokyoNight, i as catppuccinLatte, l as lightSyntaxPresets, m as solarizedLight, n as _sfc_main$2, o as darkSyntaxPresets, p as oneLight, r as allSyntaxPresets, s as dracula, t as useSyntaxTheme, u as monokai } from "../Code-XnPuGxey.js";
|
|
5
5
|
export { _sfc_main as Code, _sfc_main$1 as CodeBlock, DIFF_SYNTAX_TOKEN_KEYS, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _sfc_main$2 as SyntaxTheme, allSyntaxPresets, applyHighlightRanges, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as _sfc_main$3 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
2
|
import { t as useClipboard } from "./useClipboard-BDfbEsWd.js";
|
|
3
3
|
import { t as _sfc_main$4 } from "./IconButton-DDNgNl7B.js";
|
|
4
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
4
5
|
import { t as _sfc_main$5 } from "./Icon-bteSId7T.js";
|
|
5
6
|
import { a as syntaxThemeStyle } from "./syntaxTheme-R7xnu5x5.js";
|
|
6
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx, withModifiers } from "vue";
|
|
@@ -161,6 +162,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
161
162
|
setup(__props) {
|
|
162
163
|
const props = __props;
|
|
163
164
|
const code = useTemplateRef("code");
|
|
165
|
+
const scrollEl = useTemplateRef("scroll");
|
|
166
|
+
useScrollbars(scrollEl);
|
|
164
167
|
const chunks = computed(() => {
|
|
165
168
|
const lines = props.lines;
|
|
166
169
|
if (lines.length < CHUNK_THRESHOLD) return [{
|
|
@@ -252,6 +255,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
252
255
|
onBeforeUnmount(() => removeRanges?.());
|
|
253
256
|
return (_ctx, _cache) => {
|
|
254
257
|
return openBlock(), createElementBlock("div", {
|
|
258
|
+
ref: "scroll",
|
|
255
259
|
class: "astryx-code-block__scroll",
|
|
256
260
|
role: "group",
|
|
257
261
|
tabindex: "0",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-
|
|
1
|
+
import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-BkjSF265.js";
|
|
2
2
|
export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleConfig, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots, type UseCollapsibleOptions, type UseCollapsibleReturn, useCollapsible };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _sfc_main$3, i as _sfc_main$4, n as _sfc_main$6, o as _sfc_main$2, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main } from "../CommandPalette-
|
|
1
|
+
import { a as _sfc_main$3, i as _sfc_main$4, n as _sfc_main$6, o as _sfc_main$2, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main } from "../CommandPalette-YHsUNg3V.js";
|
|
2
2
|
export { _sfc_main as CommandPalette, _sfc_main$1 as CommandPaletteEmpty, _sfc_main$2 as CommandPaletteFooter, _sfc_main$3 as CommandPaletteGroup, _sfc_main$4 as CommandPaletteInput, _sfc_main$5 as CommandPaletteItem, _sfc_main$6 as CommandPaletteList };
|
|
@@ -3,6 +3,7 @@ import { n as useAsyncSource } from "./useAsyncSource-Gk0VtE7_.js";
|
|
|
3
3
|
import { t as _sfc_main$7 } from "./Kbd-BB-Dw6zE.js";
|
|
4
4
|
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
5
5
|
import { n as DIALOG_CONTEXT_KEY, t as _sfc_main$8 } from "./Dialog-FGHfDu5M.js";
|
|
6
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
6
7
|
import { t as _sfc_main$9 } from "./Spinner-9cYUCnDy.js";
|
|
7
8
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, onMounted, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
8
9
|
import "../styles/command-palette.css";
|
|
@@ -260,9 +261,12 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
260
261
|
const label = computed(() => props.label ?? messages.value.commandPalette.listLabel);
|
|
261
262
|
/** 没有可选项时它只是个空容器,不再当作 listbox 暴露给读屏。 */
|
|
262
263
|
const hasOptions = computed(() => palette == null || palette.items.value.length > 0);
|
|
264
|
+
const listEl = useTemplateRef("list");
|
|
265
|
+
useScrollbars(listEl);
|
|
263
266
|
return (_ctx, _cache) => {
|
|
264
267
|
return openBlock(), createElementBlock("div", {
|
|
265
268
|
id: unref(palette)?.listId,
|
|
269
|
+
ref: "list",
|
|
266
270
|
class: "astryx-command-palette-list",
|
|
267
271
|
role: hasOptions.value ? "listbox" : void 0,
|
|
268
272
|
"aria-label": hasOptions.value ? label.value : void 0
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-
|
|
1
|
+
import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-DWLdKPGI.js";
|
|
2
2
|
export { _sfc_main as ComplexSelector, ComplexSelector_default as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
2
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
2
3
|
import { t as _sfc_main$1 } from "./Icon-bteSId7T.js";
|
|
3
4
|
import { t as _sfc_main$2 } from "./Spinner-9cYUCnDy.js";
|
|
4
5
|
import { t as _sfc_main$3 } from "./Field-D5gUEGw4.js";
|
|
5
|
-
import { t as _sfc_main$4 } from "./Popover-
|
|
6
|
-
import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, normalizeProps, onBeforeUnmount, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, useId, useModel, useSlots, watch, withCtx } from "vue";
|
|
6
|
+
import { t as _sfc_main$4 } from "./Popover-DJf8POzL.js";
|
|
7
|
+
import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, normalizeProps, onBeforeUnmount, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
7
8
|
import "../styles/complex-selector.css";
|
|
8
9
|
//#region src/ComplexSelector/ComplexSelector.vue
|
|
9
10
|
const _hoisted_1 = [
|
|
@@ -77,6 +78,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
77
78
|
const messages = useAstryxMessages();
|
|
78
79
|
const isOpen = ref(false);
|
|
79
80
|
const isPending = ref(false);
|
|
81
|
+
const contentEl = useTemplateRef("contentEl");
|
|
82
|
+
useScrollbars(contentEl);
|
|
80
83
|
const optimistic = ref(void 0);
|
|
81
84
|
const triggerId = `astryx-complex-selector-${useId()}`;
|
|
82
85
|
const labelId = `${triggerId}-label`;
|
|
@@ -196,13 +199,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
196
199
|
}, {
|
|
197
200
|
content: withCtx(() => [createElementVNode("div", {
|
|
198
201
|
id: contentId,
|
|
202
|
+
ref_key: "contentEl",
|
|
203
|
+
ref: contentEl,
|
|
199
204
|
class: "astryx-complex-selector-content"
|
|
200
205
|
}, [renderSlot(_ctx.$slots, "default", {
|
|
201
206
|
close,
|
|
202
207
|
commit,
|
|
203
208
|
state: state.value,
|
|
204
209
|
value: displayValue.value
|
|
205
|
-
})])]),
|
|
210
|
+
})], 512)]),
|
|
206
211
|
default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(triggerProps.value)), () => [(openBlock(), createBlock(resolveDynamicComponent(triggerView)))])]),
|
|
207
212
|
_: 3
|
|
208
213
|
}, 8, [
|
|
@@ -242,13 +247,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
242
247
|
}, {
|
|
243
248
|
content: withCtx(() => [createElementVNode("div", {
|
|
244
249
|
id: contentId,
|
|
250
|
+
ref_key: "contentEl",
|
|
251
|
+
ref: contentEl,
|
|
245
252
|
class: "astryx-complex-selector-content"
|
|
246
253
|
}, [renderSlot(_ctx.$slots, "default", {
|
|
247
254
|
close,
|
|
248
255
|
commit,
|
|
249
256
|
state: state.value,
|
|
250
257
|
value: displayValue.value
|
|
251
|
-
})])]),
|
|
258
|
+
})], 512)]),
|
|
252
259
|
default: withCtx(() => [createElementVNode("button", {
|
|
253
260
|
id: triggerId,
|
|
254
261
|
class: "astryx-complex-selector",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $i as ContextMenuItemProps, Bi as _default, Gi as ContextMenuDividerProps, Hi as useContextMenuSize, Ii as _default$7, Ji as ContextMenuGroupProps, Ki as ContextMenuEmits, Li as _default$4, Qi as ContextMenuItemIcon, Ri as _default$3, Ui as ContextMenuCheckboxData, Vi as useContextMenu, Wi as ContextMenuDividerData, Xi as ContextMenuItemData, Yi as ContextMenuGroupSlots, Zi as ContextMenuItemEmits, aa as ContextMenuRadioData, ca as ContextMenuSize, da as ContextMenuSubMenuProps, ea as ContextMenuItemSlots, fa as ContextMenuSubMenuSlots, ha as ContextMenuWidth, ia as ContextMenuProps, la as ContextMenuSlots, ma as ContextMenuVariant, na as ContextMenuOption, oa as ContextMenuRadioOptionData, pa as ContextMenuTriggerElement, qi as ContextMenuEntry, ra as ContextMenuPresentation, sa as ContextMenuSection, ta as ContextMenuItemTarget, ua as ContextMenuSubMenuEmits, zi as _default$2 } from "../index-
|
|
1
|
+
import { $i as ContextMenuItemProps, Bi as _default, Gi as ContextMenuDividerProps, Hi as useContextMenuSize, Ii as _default$7, Ji as ContextMenuGroupProps, Ki as ContextMenuEmits, Li as _default$4, Qi as ContextMenuItemIcon, Ri as _default$3, Ui as ContextMenuCheckboxData, Vi as useContextMenu, Wi as ContextMenuDividerData, Xi as ContextMenuItemData, Yi as ContextMenuGroupSlots, Zi as ContextMenuItemEmits, aa as ContextMenuRadioData, ca as ContextMenuSize, da as ContextMenuSubMenuProps, ea as ContextMenuItemSlots, fa as ContextMenuSubMenuSlots, ha as ContextMenuWidth, ia as ContextMenuProps, la as ContextMenuSlots, ma as ContextMenuVariant, na as ContextMenuOption, oa as ContextMenuRadioOptionData, pa as ContextMenuTriggerElement, qi as ContextMenuEntry, ra as ContextMenuPresentation, sa as ContextMenuSection, ta as ContextMenuItemTarget, ua as ContextMenuSubMenuEmits, zi as _default$2 } from "../index-DUaLJO7l.js";
|
|
2
2
|
import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-CXEURBcq.js";
|
|
3
3
|
export { _default as ContextMenu, type ContextMenuCheckboxData, _default$1 as ContextMenuCheckboxItem, _default$2 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, type ContextMenuEntry, _default$3 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$4 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuPresentation, type ContextMenuProps, type ContextMenuRadioData, _default$5 as ContextMenuRadioGroup, _default$6 as ContextMenuRadioItem, type ContextMenuRadioOptionData, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$7 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { d as useContextMenuSize, i as _sfc_main$1, n as _sfc_main$6, r as _sfc_main$5, u as useContextMenu } from "../useMenuDrillIn-DzKGkTho.js";
|
|
2
|
-
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-
|
|
2
|
+
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-Bq9b3Ti5.js";
|
|
3
3
|
export { _sfc_main as ContextMenu, _sfc_main$1 as ContextMenuCheckboxItem, _sfc_main$2 as ContextMenuDivider, _sfc_main$3 as ContextMenuGroup, _sfc_main$4 as ContextMenuItem, _sfc_main$5 as ContextMenuRadioGroup, _sfc_main$6 as ContextMenuRadioItem, _sfc_main$7 as ContextMenuSubMenu, useContextMenu, useContextMenuSize };
|