@astryx-vue/core 0.16.4 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-C8W-FjkH.js → AlertDialog-CNb0dkY9.js} +4 -4
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-dMLeTLRs.js → Avatar-D85dSNpq.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CJgIpZby.js → Banner-BXITu2pn.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-oyT1pLaR.js → Breadcrumbs-DXzBkpkd.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-OfqvSU1j.js → Button-BZtim0B-.js} +1 -2
- 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/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-DN_gn5t4.js → Carousel-BaCXqtKK.js} +1 -1
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DzxOPova.js → Chat-Wq7e98zS.js} +3 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CWfobjQ1.js → CheckboxInput-3ONBl1AY.js} +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CEFhwHbk.js → CheckboxList-CbRX5YDA.js} +3 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-DFq81dwg.js → CodeBlock-CLVXVlB7.js} +2 -2
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-urnqxaZR.js → CommandPalette-CECjNvGB.js} +2 -2
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Bb9Tietz.js → ComplexSelector-Dmaag1wm.js} +7 -3
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-UGCRWpCu.js → DateInput-BitZfGEY.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-CbFNAXhb.js → DateRangeInput-kxXBsUTU.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DsB9quGn.js → DateTimeInput-Cfkuec_h.js} +4 -4
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-CvRMUDsx.js → Dialog-BQ5OBB1d.js} +1 -1
- package/dist/{Dialog-BoV6-sZg.js → Dialog-DgdbRn2l.js} +25 -6
- package/dist/{DialogHeader-Dz-7FLep.js → DialogHeader-D8234o9F.js} +7 -3
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-EuUM3b5t.js → Drawer-Dqus7kUc.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-BvTeXvbu.js → DropdownMenu-BC_zB9le.js} +1 -1
- package/dist/{DropdownMenu-DF56Xz8n.js → DropdownMenu-LQsXd-_V.js} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-D2ENfW7V.js → EmptyState-Bw0kWfMi.js} +3 -3
- package/dist/Field/index.js +3 -3
- package/dist/{Field-BE1CuxSu.js → Field-BXkGR8H0.js} +1 -1
- package/dist/{FieldInfoTip-CSXfFcdR.js → FieldInfoTip-DzpUxMDh.js} +1 -1
- package/dist/{FieldLabel-CvPYOohI.js → FieldLabel-DI7Yqdhf.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-dYwavUsk.js → FileInput-BNHjbyQY.js} +2 -2
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-CNOg6iq5.js → Heading-Oph-5DDq.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-DafCEtWH.js → HoverCard-DVPLeccv.js} +22 -10
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-Cn3iSGRd.js → IconButton-Du2XBBAX.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BnGk9nr_.js → InfoTip-Bjw1ithP.js} +1 -1
- package/dist/{InputClearButton-h4GQJMqr.js → InputClearButton-CED-zP2y.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-BX4cdWQW.js → InputGroup-D5PoL4cU.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-7rA65NO7.js → InternationalizationProvider-Dr5GE6f0.js} +1 -1
- package/dist/LayerProvider/index.d.ts +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-3y6Gzumf.js → Lightbox-RN_f7zRw.js} +3 -2
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-wft8544N.js → Link-CQ-Ztuo_.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-rtBS8dBv.js → Markdown-DnnWjJGX.js} +3 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BfaD8buF.js → MoreMenu-i80Ey9vR.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BqsGkkNQ.js → MultiSelector-BK6nZweN.js} +28 -16
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CKXqM4cC.js → NumberInput-BPeesTRv.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-BYbqhFXF.js → Pagination-DFQNX_Mb.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-BepO8m2B.js → Popover-CmAEizH-.js} +3 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-UclIfhPU.js → PowerSearch-BAOqpQag.js} +16 -16
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-CHdyTMyH.js → ProgressBar-DgyPRxV0.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BvoO922B.js → RadioGroup-FhoQMqg5.js} +2 -2
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-LmcRXW-R.js → RadioList-DK2uXQ5S.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CTzIfy5D.js → Selector-Bo7qkt1P.js} +158 -63
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BFDgU7Ul.js → SideNav-CcZLUd7G.js} +2 -2
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-JoQDr9bl.js → Slider-DIgb8ogt.js} +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DdR_DF-k.js → StatusDot-Cxm-uhTD.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-CijkvpAA.js → Switch-5toeiELX.js} +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-0D-DE9wZ.js → Table-CRKljXg4.js} +12 -12
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-DKlvc1pK.js → Text-CiSw2pOi.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-B2uVGYED.js → TextArea-B82oXF-m.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-7_aLlg3G.js → TextInput-_SIiqVOY.js} +4 -4
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +1 -1
- package/dist/{Theme-8bDq2nud.js → Theme-iqi6AvU_.js} +363 -39
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-B1E4wEei.js → Thumbnail-BlueoqOH.js} +2 -2
- package/dist/{TimeField-EMXQhof_.js → TimeField-CBWgdA1Y.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-Cy1ikWWy.js → TimeInput-8ASOMV3B.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DOs3NhSX.js → Timer-C8evnsTE.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-Dw5CyS_N.js → Timestamp-CgvZe6vH.js} +3 -3
- package/dist/Toast/index.d.ts +2 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DhWuBX-f.js → Toast-CzbqvHDN.js} +107 -34
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DcLaKPDT.js → ToggleButton-CO0XWWc0.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DGW3Nurz.js → Tokenizer-CsFiYUJ_.js} +173 -105
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-vUyPDqhh.js → Tooltip-DQipgW1R.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/Typeahead/index.d.ts +2 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BuVI6J9T.js → Typeahead--kEp21ut.js} +160 -72
- package/dist/{useKeyboardHighlight-CGCf1O57.js → assertOptions-CK_gJ0d3.js} +12 -1
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/index.js +7 -7
- package/dist/composables-BKHcPgN0.js +5730 -0
- package/dist/{index-BZ_lOqjE.d.ts → index-85RFPeV0.d.ts} +6 -6
- package/dist/{index-rzkX36wM.d.ts → index-9tZJgo0R.d.ts} +1 -1
- package/dist/{index-s0Ezq3U-.d.ts → index-B0iRA00v.d.ts} +5 -5
- package/dist/{index-B00KlO-P.d.ts → index-B95VIgRl.d.ts} +66 -66
- package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-BTK7aStw.d.ts → index-BaK0mywG.d.ts} +1 -1
- package/dist/{index-Bfm6mF-r.d.ts → index-BfoazhEu.d.ts} +1 -1
- package/dist/{index-BOCb89V9.d.ts → index-BxWCX2pJ.d.ts} +1 -1
- package/dist/{index-CQ1bsxLC.d.ts → index-C1qJlC65.d.ts} +1 -1
- package/dist/{index-CL8JvxHW.d.ts → index-C1zwvxPH.d.ts} +2 -2
- package/dist/{index-Dc9_kBrU.d.ts → index-CH-xSiJz.d.ts} +10 -3
- package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-FeZXsFO-.d.ts → index-CbA8rR_b.d.ts} +2 -2
- package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
- package/dist/{index-B0R5CLPF.d.ts → index-CsYDrQ9R.d.ts} +1 -1
- package/dist/{index-BhxqUt3y.d.ts → index-CuW4AQ7M.d.ts} +2 -2
- package/dist/{index-rnFsCdJ7.d.ts → index-Cy1rEWC-.d.ts} +1 -1
- package/dist/{index-BSlzqFzV.d.ts → index-CyMStZq4.d.ts} +5 -5
- package/dist/{index-C2cH8OLC.d.ts → index-D31bgBoy.d.ts} +1 -1
- package/dist/index-DGXCnzOL.d.ts +69 -0
- package/dist/{index-nNUT4Etk.d.ts → index-DK0Wdo9N.d.ts} +5 -5
- package/dist/{index--tm6L1ot.d.ts → index-DofC9Rll.d.ts} +2 -2
- package/dist/{index-Dy746dfn.d.ts → index-Qdbssopn.d.ts} +1 -1
- package/dist/{index-DE1genab.d.ts → index-QnlWyUxN.d.ts} +2 -2
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-D7XRtUTY.d.ts → index-bk5kfP_c.d.ts} +5 -1
- package/dist/{index-C5e2rZML.d.ts → index-dWlCpnua.d.ts} +2 -2
- package/dist/{index-DS9SzqqJ.d.ts → index-lmd9LZKB.d.ts} +2 -2
- package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
- package/dist/{index-BXDqyk2_.d.ts → index-tuNsmJxw.d.ts} +169 -2
- package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
- package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
- package/dist/index.d.ts +40 -39
- package/dist/index.js +75 -75
- package/dist/{layerFocusReturn-13azEIdn.js → layerFocusReturn-B8Hp14ZG.js} +1 -1
- package/dist/{loadCatalog-DFyDz_4e.d.ts → loadCatalog-BJwcyX8i.d.ts} +2 -0
- package/dist/{loadCatalog-C3MSknfx.js → loadCatalog-C1kms5sO.js} +5 -1
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/{locale-OCGw4bi6.js → locale-CHhsd9Mq.js} +1 -1
- package/dist/tooltipFocusRules-D4cJ08fk.js +67 -0
- package/dist/{useLayer-CzyH9KXY.js → tooltipTriggerRules-PBxqztvn.js} +10 -1
- package/dist/{typeahead-RkZw0Ktn.js → typeahead-BgfLP7vR.js} +2 -0
- package/dist/{types-BRfVvZTH.d.ts → types-Bc_G8h4i.d.ts} +2 -0
- package/dist/{index-BzViSe8D.d.ts → types-C1ydeFiu.d.ts} +43 -65
- package/dist/{types-uWxXh1Jm.d.ts → types-fRasDCe4.d.ts} +47 -6
- package/dist/{useAsyncSource-Gk0VtE7_.js → useAsyncSource-7GTcK8ep.js} +31 -1
- package/dist/{useAsyncSource-aGzrvRkI.d.ts → useAsyncSource-DbG2FSuI.d.ts} +19 -2
- package/dist/{useCombobox-D374_pT8.js → useCombobox-DIR9yoEu.js} +150 -3
- package/dist/{useInputStatusIcon-CwCNWBnG.js → useInputStatusIcon-ne9V7ZQC.js} +1 -1
- package/dist/{useTooltip-frKBHzqr.js → useTooltip-C7gHRGEO.js} +9 -44
- package/dist/{useTruncationTooltip-DUkkZgmO.js → useTruncationTooltip-DwUQN7fD.js} +3 -3
- package/dist/{useTypeaheadAnnouncement-CSikDlpK.js → useTypeaheadMenuConfig--4f7jR6G.js} +264 -20
- package/package.json +1 -1
- package/styles/dialog-header.css +19 -4
- package/styles/dialog.css +4 -0
- package/styles/hover-card.css +6 -0
- package/styles/motion.css +10 -0
- package/styles/selector.css +10 -0
- package/styles/toast.css +19 -0
- package/styles/tooltip.css +6 -0
- package/dist/composables-CCsHfpCS.js +0 -1256
- package/dist/tooltipTriggerRules-9zkDe8_b.js +0 -10
- package/dist/useHoverLayerDismiss-CFGjvYi4.js +0 -27
- package/dist/{index-J6YRJ7Ul.d.ts → index-D8lv2BiD.d.ts} +1 -1
|
@@ -1,19 +1,22 @@
|
|
|
1
|
+
import { t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
|
|
1
2
|
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
2
3
|
import { p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.js";
|
|
3
|
-
import { t as _sfc_main$
|
|
4
|
+
import { t as _sfc_main$3 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
4
5
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
5
|
-
import { t as
|
|
6
|
+
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
7
|
+
import { t as useInputStatusIcon } from "./useInputStatusIcon-ne9V7ZQC.js";
|
|
6
8
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
7
9
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
8
10
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
9
|
-
import { t as _sfc_main$
|
|
10
|
-
import { t as _sfc_main$
|
|
11
|
+
import { t as _sfc_main$4 } from "./Spinner-DEVPDsD0.js";
|
|
12
|
+
import { t as _sfc_main$5 } from "./Field-BXkGR8H0.js";
|
|
11
13
|
import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
+
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
15
|
+
import { t as typeaheadMessages } from "./typeahead-BgfLP7vR.js";
|
|
16
|
+
import { t as _sfc_main$6 } from "./Token-jBbgdevV.js";
|
|
14
17
|
import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-0vdn-hSa.js";
|
|
15
|
-
import { a as
|
|
16
|
-
import { Fragment,
|
|
18
|
+
import { a as useLatchedOptionGrid, n as useTypeaheadAnnouncement, o as useTypeaheadMenu, r as _sfc_main$7, t as useTypeaheadMenuConfig } from "./useTypeaheadMenuConfig--4f7jR6G.js";
|
|
19
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, inject, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
17
20
|
import "../styles/layer.css";
|
|
18
21
|
import "../styles/visually-hidden-utility.css";
|
|
19
22
|
import "../styles/typeahead.css";
|
|
@@ -23,6 +26,11 @@ import "../styles/typeahead.css";
|
|
|
23
26
|
* 单独使用的 `BaseTypeahead` 拿不到它,只渲染裸输入。
|
|
24
27
|
*/
|
|
25
28
|
const typeaheadChromeKey = Symbol("astryxTypeaheadChrome");
|
|
29
|
+
/**
|
|
30
|
+
* `Typeahead` 告诉里面的 `BaseTypeahead`:输入框被值标签盖住时,dialog 菜单关闭后
|
|
31
|
+
* 焦点还给哪个元素(值标签的按钮),而不是看不见的输入框。
|
|
32
|
+
*/
|
|
33
|
+
const typeaheadFocusKey = Symbol("astryxTypeaheadFocus");
|
|
26
34
|
//#endregion
|
|
27
35
|
//#region src/Typeahead/BaseTypeahead.vue
|
|
28
36
|
const _hoisted_1 = {
|
|
@@ -53,12 +61,6 @@ const _hoisted_3 = [
|
|
|
53
61
|
const _hoisted_4 = ["aria-label"];
|
|
54
62
|
const _hoisted_5 = ["id"];
|
|
55
63
|
const _hoisted_6 = ["name", "value"];
|
|
56
|
-
const _hoisted_7 = [
|
|
57
|
-
"id",
|
|
58
|
-
"role",
|
|
59
|
-
"aria-label",
|
|
60
|
-
"data-placement"
|
|
61
|
-
];
|
|
62
64
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
63
65
|
name: "AstryxBaseTypeahead",
|
|
64
66
|
inheritAttrs: false,
|
|
@@ -122,7 +124,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
122
124
|
String,
|
|
123
125
|
Object,
|
|
124
126
|
Array
|
|
125
|
-
] }
|
|
127
|
+
] },
|
|
128
|
+
menu: {}
|
|
126
129
|
},
|
|
127
130
|
emits: [
|
|
128
131
|
"update:modelValue",
|
|
@@ -135,6 +138,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
135
138
|
const props = __props;
|
|
136
139
|
const emit = __emit;
|
|
137
140
|
const attrs = useAttrs();
|
|
141
|
+
const announce = useAnnounce();
|
|
138
142
|
const messages = useComponentMessages({ typeahead: typeaheadMessages });
|
|
139
143
|
const generatedId = `astryx-typeahead-${useId()}`;
|
|
140
144
|
const inputId = computed(() => props.inputId ?? generatedId);
|
|
@@ -145,14 +149,17 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
145
149
|
let suppressFocusOpen = false;
|
|
146
150
|
const inputRef = useTemplateRef("inputRef");
|
|
147
151
|
const controlRef = useTemplateRef("controlRef");
|
|
148
|
-
const
|
|
152
|
+
const popupRef = useTemplateRef("popupRef");
|
|
153
|
+
const listboxRef = computed(() => popupRef.value?.el ?? null);
|
|
149
154
|
useScrollbars(listboxRef);
|
|
150
155
|
const placeholder = computed(() => props.placeholder ?? messages.value.typeahead.placeholder);
|
|
151
156
|
const emptyText = computed(() => props.emptySearchText ?? props.emptyText ?? messages.value.typeahead.empty);
|
|
152
157
|
const clearLabel = computed(() => messages.value.typeahead.clear);
|
|
153
158
|
/** 新名 hasEntriesOnFocus 和旧名 showOnFocus 任一为真就生效。 */
|
|
154
159
|
const showsEntriesOnFocus = computed(() => props.hasEntriesOnFocus || props.showOnFocus);
|
|
155
|
-
|
|
160
|
+
/** 禁用的字段仍是 Tab 停点:输入框用 aria-disabled 加只读,不用原生 disabled。 */
|
|
161
|
+
const focusableDisabled = computed(() => Boolean(props.isFocusableDisabled) || props.disabled);
|
|
162
|
+
const disabledDescription = computed(() => focusableDisabled.value && Boolean(props.disabledReason?.trim()));
|
|
156
163
|
/** 有禁用原因时鼠标悬停或键盘聚焦都能读到它。 */
|
|
157
164
|
const showsDisabledMessage = computed(() => Boolean(props.disabled) && Boolean(props.disabledReason?.trim()));
|
|
158
165
|
const disabledTooltip = useButtonTooltip(showsDisabledMessage);
|
|
@@ -185,7 +192,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
185
192
|
return [
|
|
186
193
|
props.describedBy,
|
|
187
194
|
externalDescribedBy.value,
|
|
188
|
-
|
|
195
|
+
disabledDescription.value ? disabledId.value : void 0
|
|
189
196
|
].filter(Boolean).join(" ") || void 0;
|
|
190
197
|
});
|
|
191
198
|
/**
|
|
@@ -219,38 +226,58 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
219
226
|
function inputAttrs() {
|
|
220
227
|
return Object.fromEntries(Object.entries(attrs).filter(([key]) => !controlledAttrs.has(key)));
|
|
221
228
|
}
|
|
229
|
+
/** dialog 角色的菜单只能由 `open()` 打开,输入和聚焦都不开结果列表。 */
|
|
230
|
+
const isDialogMenu = computed(() => props.menu?.role === "dialog");
|
|
222
231
|
const menu = useTypeaheadMenu({
|
|
223
232
|
source: () => props.searchSource,
|
|
224
233
|
debounceMs: () => props.debounceMs,
|
|
225
234
|
showOnFocus: () => showsEntriesOnFocus.value,
|
|
226
235
|
minQueryLength: () => props.minQueryLength,
|
|
227
236
|
maxItems: () => props.maxMenuItems,
|
|
228
|
-
disabled: () => props.disabled,
|
|
237
|
+
disabled: () => props.disabled || isDialogMenu.value,
|
|
229
238
|
onSelect: (entry) => {
|
|
230
239
|
commit(entry.item);
|
|
231
240
|
},
|
|
232
|
-
onEscape: () => {
|
|
233
|
-
restoreSelection();
|
|
234
|
-
},
|
|
235
241
|
onQueryChange: (query) => {
|
|
236
242
|
emit("search", query);
|
|
237
243
|
emit("changeQuery", query);
|
|
238
244
|
}
|
|
239
245
|
});
|
|
246
|
+
/** 搜索忙碌时由输入框念一次「加载中」;框里的转圈图标只是装饰。 */
|
|
247
|
+
const settleBusy = useBusyAnnouncement(() => menu.status.value === "loading", () => messages.value.typeahead.loading, inputRef);
|
|
240
248
|
useTypeaheadAnnouncement({
|
|
241
249
|
menu,
|
|
250
|
+
settleBusy,
|
|
242
251
|
emptyText: () => emptyText.value,
|
|
243
252
|
emptySearchText: () => emptyText.value,
|
|
244
253
|
resultCount: (count) => messages.value.typeahead.resultCount(count)
|
|
245
254
|
});
|
|
255
|
+
const focusWiring = inject(typeaheadFocusKey, null);
|
|
256
|
+
const menuConfig = useTypeaheadMenuConfig({
|
|
257
|
+
config: () => props.menu,
|
|
258
|
+
popupEl: () => listboxRef.value,
|
|
259
|
+
inputEl: () => inputRef.value,
|
|
260
|
+
listbox: {
|
|
261
|
+
isOpen: menu.combobox.isOpen,
|
|
262
|
+
open: () => menu.open(),
|
|
263
|
+
close: () => menu.close()
|
|
264
|
+
},
|
|
265
|
+
isDisabled: () => props.disabled,
|
|
266
|
+
canOpenList: () => showsEntriesOnFocus.value || menu.query.value !== "",
|
|
267
|
+
returnTarget: () => focusWiring?.inputReturnTarget() ?? null
|
|
268
|
+
});
|
|
246
269
|
/** 下拉挂靠外面给的元素;没给就挂在自己的外框上。 */
|
|
247
270
|
const anchor = computed(() => props.anchorRef ?? controlRef.value ?? null);
|
|
248
271
|
const anchored = useAnchoredListbox({
|
|
249
272
|
anchor,
|
|
250
273
|
layer: listboxRef,
|
|
251
|
-
isOpen:
|
|
274
|
+
isOpen: menuConfig.popupOpen,
|
|
252
275
|
menuWidth: () => props.menuWidth,
|
|
253
276
|
onDismiss: () => {
|
|
277
|
+
if (menuConfig.isDialog.value) {
|
|
278
|
+
menuConfig.dismiss();
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
254
281
|
menu.close();
|
|
255
282
|
restoreSelection();
|
|
256
283
|
}
|
|
@@ -264,7 +291,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
264
291
|
onMounted(() => {
|
|
265
292
|
if (props.hasAutoFocus) inputRef.value?.focus();
|
|
266
293
|
});
|
|
267
|
-
watch(
|
|
294
|
+
watch(menuConfig.popupOpen, (isOpen) => {
|
|
268
295
|
emit("openChange", isOpen);
|
|
269
296
|
});
|
|
270
297
|
watch(() => menu.combobox.activeIndex.value, (index) => {
|
|
@@ -274,11 +301,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
274
301
|
});
|
|
275
302
|
});
|
|
276
303
|
function commit(item) {
|
|
304
|
+
if (props.disabled) return;
|
|
277
305
|
editing.value = false;
|
|
278
|
-
menu.
|
|
279
|
-
|
|
306
|
+
menu.resetQuery();
|
|
307
|
+
menuConfig.beginPick();
|
|
280
308
|
emit("update:modelValue", item);
|
|
281
309
|
emit("change", item);
|
|
310
|
+
if (!menuConfig.endPick() || !showsEntriesOnFocus.value) menu.close();
|
|
282
311
|
suppressFocusOpen = item != null;
|
|
283
312
|
nextTick(() => {
|
|
284
313
|
inputRef.value?.focus();
|
|
@@ -288,7 +317,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
288
317
|
function restoreSelection() {
|
|
289
318
|
if (selected.value == null) return;
|
|
290
319
|
editing.value = false;
|
|
291
|
-
menu.
|
|
320
|
+
menu.resetQuery();
|
|
292
321
|
}
|
|
293
322
|
function startEdit() {
|
|
294
323
|
if (props.disabled || selected.value == null || editing.value) return;
|
|
@@ -299,6 +328,16 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
299
328
|
inputRef.value?.select();
|
|
300
329
|
});
|
|
301
330
|
}
|
|
331
|
+
/** 值标签上按退格或删除:有清除按钮就和它一样清掉并念出来,没有就进入编辑。 */
|
|
332
|
+
function onTokenKeydown(event) {
|
|
333
|
+
if (event.key !== "Backspace" && event.key !== "Delete" || props.disabled || selected.value == null) return;
|
|
334
|
+
event.preventDefault();
|
|
335
|
+
if (props.clearable) {
|
|
336
|
+
const { label } = selected.value;
|
|
337
|
+
commit(null);
|
|
338
|
+
announce(messages.value.typeahead.selectionCleared(label));
|
|
339
|
+
} else startEdit();
|
|
340
|
+
}
|
|
302
341
|
function highlight(index) {
|
|
303
342
|
const entry = menu.entries.value[index];
|
|
304
343
|
if (entry && !entry.disabled) menu.combobox.activeIndex.value = index;
|
|
@@ -337,7 +376,17 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
337
376
|
function onKeydown(event) {
|
|
338
377
|
if (event.defaultPrevented || isImeKeyEvent(event)) return;
|
|
339
378
|
if (optionGrid.actionGrid.onKeyDown(event)) return;
|
|
379
|
+
if (menuConfig.isDialog.value) {
|
|
380
|
+
menuConfig.closeOnEscape(event);
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
const endsEdit = event.key === "Escape" && editing.value && !menu.combobox.isOpen.value;
|
|
340
384
|
menu.onKeyDown(event);
|
|
385
|
+
if (endsEdit) {
|
|
386
|
+
event.preventDefault();
|
|
387
|
+
restoreSelection();
|
|
388
|
+
nextTick(() => controlRef.value?.querySelector(".astryx-token button")?.focus());
|
|
389
|
+
}
|
|
341
390
|
}
|
|
342
391
|
function onControlClick(event) {
|
|
343
392
|
if (props.disabled) return;
|
|
@@ -359,7 +408,9 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
359
408
|
}
|
|
360
409
|
__expose({
|
|
361
410
|
focus: () => inputRef.value?.focus(),
|
|
362
|
-
blur: () => inputRef.value?.blur()
|
|
411
|
+
blur: () => inputRef.value?.blur(),
|
|
412
|
+
open: menuConfig.open,
|
|
413
|
+
close: menuConfig.close
|
|
363
414
|
});
|
|
364
415
|
return (_ctx, _cache) => {
|
|
365
416
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -387,7 +438,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
387
438
|
id: tokenValueId.value,
|
|
388
439
|
hidden: ""
|
|
389
440
|
}, toDisplayString(selected.value.label), 9, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
390
|
-
showToken.value && selected.value ? (openBlock(), createBlock(_sfc_main$
|
|
441
|
+
showToken.value && selected.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
391
442
|
key: 2,
|
|
392
443
|
class: "astryx-typeahead-value",
|
|
393
444
|
label: selected.value.label,
|
|
@@ -395,7 +446,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
395
446
|
disabled: props.disabled,
|
|
396
447
|
"aria-labelledby": tokenLabelledBy.value,
|
|
397
448
|
"aria-describedby": describedBy.value,
|
|
398
|
-
onClick: startEdit
|
|
449
|
+
onClick: startEdit,
|
|
450
|
+
onKeydown: onTokenKeydown
|
|
399
451
|
}, null, 8, [
|
|
400
452
|
"label",
|
|
401
453
|
"size",
|
|
@@ -412,6 +464,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
412
464
|
role: "combobox",
|
|
413
465
|
autocomplete: "off",
|
|
414
466
|
autocapitalize: "off",
|
|
467
|
+
autocorrect: "off",
|
|
468
|
+
enterkeyhint: "search",
|
|
415
469
|
tabindex: resolvedTabIndex.value,
|
|
416
470
|
"data-autofocus": props.hasAutoFocus || void 0,
|
|
417
471
|
placeholder: showToken.value ? void 0 : placeholder.value,
|
|
@@ -419,13 +473,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
419
473
|
disabled: props.disabled && !focusableDisabled.value,
|
|
420
474
|
readonly: focusableDisabled.value || void 0,
|
|
421
475
|
"aria-disabled": focusableDisabled.value ? "true" : void 0,
|
|
422
|
-
"aria-expanded": unref(
|
|
476
|
+
"aria-expanded": unref(menuConfig).popupOpen.value,
|
|
423
477
|
"aria-controls": listboxId.value,
|
|
424
|
-
"aria-haspopup": unref(optionGrid).popupKind.value,
|
|
478
|
+
"aria-haspopup": unref(menuConfig).isDialog.value ? "dialog" : unref(optionGrid).popupKind.value,
|
|
425
479
|
"aria-label": ariaLabel.value,
|
|
426
480
|
"aria-labelledby": labelledBy.value,
|
|
427
481
|
"aria-autocomplete": "list",
|
|
428
|
-
"aria-activedescendant": unref(optionGrid).gridMode.value ? unref(optionGrid).actionGrid.activeDescendant.value : unref(menu).activeId.value ? `${listboxId.value}-option-${unref(menu).combobox.activeIndex.value}` : void 0,
|
|
482
|
+
"aria-activedescendant": unref(menuConfig).isDialog.value ? void 0 : unref(optionGrid).gridMode.value ? unref(optionGrid).actionGrid.activeDescendant.value : unref(menu).activeId.value ? `${listboxId.value}-option-${unref(menu).combobox.activeIndex.value}` : void 0,
|
|
429
483
|
"aria-describedby": describedBy.value,
|
|
430
484
|
"aria-required": props.required || void 0,
|
|
431
485
|
"aria-invalid": props.status === "error" ? true : void 0,
|
|
@@ -434,12 +488,12 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
434
488
|
onBlur,
|
|
435
489
|
onKeydown
|
|
436
490
|
}), null, 16, _hoisted_3),
|
|
437
|
-
unref(menu).status.value === "loading" ? (openBlock(), createBlock(_sfc_main$
|
|
491
|
+
unref(menu).status.value === "loading" ? (openBlock(), createBlock(_sfc_main$4, {
|
|
438
492
|
key: 3,
|
|
439
493
|
class: "astryx-typeahead-spinner",
|
|
440
494
|
size: "sm",
|
|
441
|
-
"aria-
|
|
442
|
-
}
|
|
495
|
+
"aria-hidden": "true"
|
|
496
|
+
})) : createCommentVNode("v-if", true),
|
|
443
497
|
props.clearable && selected.value && !props.disabled ? (openBlock(), createElementBlock("button", {
|
|
444
498
|
key: 4,
|
|
445
499
|
type: "button",
|
|
@@ -459,7 +513,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
459
513
|
"stroke-linecap": "round"
|
|
460
514
|
})], -1)])], 8, _hoisted_4)) : createCommentVNode("v-if", true),
|
|
461
515
|
unref(statusIcon) ? (openBlock(), createBlock(resolveDynamicComponent(unref(statusIcon)), normalizeProps(mergeProps({ key: 5 }, unref(statusIconProps))), null, 16)) : createCommentVNode("v-if", true),
|
|
462
|
-
|
|
516
|
+
disabledDescription.value ? (openBlock(), createElementBlock("span", {
|
|
463
517
|
key: 6,
|
|
464
518
|
id: disabledId.value,
|
|
465
519
|
class: "astryx-visually-hidden"
|
|
@@ -471,7 +525,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
471
525
|
value: selected.value?.id ?? ""
|
|
472
526
|
}, null, 8, _hoisted_6)) : createCommentVNode("v-if", true)
|
|
473
527
|
], 38)], 2),
|
|
474
|
-
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$
|
|
528
|
+
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
475
529
|
key: 0,
|
|
476
530
|
id: disabledTooltipId.value,
|
|
477
531
|
anchor: controlRef.value,
|
|
@@ -487,17 +541,17 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
487
541
|
"onPointerEnter",
|
|
488
542
|
"onPointerLeave"
|
|
489
543
|
])) : createCommentVNode("v-if", true),
|
|
490
|
-
(
|
|
544
|
+
createVNode(_sfc_main$7, {
|
|
491
545
|
id: listboxId.value,
|
|
492
|
-
ref_key: "
|
|
493
|
-
ref:
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
546
|
+
ref_key: "popupRef",
|
|
547
|
+
ref: popupRef,
|
|
548
|
+
"is-open": unref(menuConfig).popupOpen.value,
|
|
549
|
+
config: props.menu,
|
|
550
|
+
label: unref(messages).typeahead.results,
|
|
551
|
+
grid: unref(optionGrid).gridMode.value,
|
|
552
|
+
placement: unref(anchored).position.value.placement,
|
|
553
|
+
"popup-style": unref(anchored).style.value,
|
|
554
|
+
"popup-class": "astryx-typeahead-popup",
|
|
501
555
|
entries: unref(menu).entries.value.map((entry) => ({
|
|
502
556
|
id: entry.id,
|
|
503
557
|
label: entry.label,
|
|
@@ -508,38 +562,57 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
508
562
|
selected: optionSelected(entry.item.id)
|
|
509
563
|
})),
|
|
510
564
|
"active-index": unref(menu).combobox.activeIndex.value,
|
|
511
|
-
grid: unref(optionGrid).gridMode.value,
|
|
512
565
|
"action-index": unref(optionGrid).actionGrid.column.value === "action" ? unref(menu).combobox.activeIndex.value : -1,
|
|
513
|
-
status: unref(menu).
|
|
514
|
-
"listbox-id": listboxId.value,
|
|
566
|
+
status: unref(menu).menuStatus.value,
|
|
515
567
|
"empty-text": emptyText.value,
|
|
516
568
|
"loading-text": unref(messages).typeahead.loading,
|
|
517
569
|
"error-text": unref(messages).typeahead.error,
|
|
570
|
+
query: unref(menu).query.value,
|
|
571
|
+
"is-settled": unref(menu).isSettled.value,
|
|
518
572
|
onSelect: onMenuSelect,
|
|
519
|
-
onHighlight: highlight
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
573
|
+
onHighlight: highlight,
|
|
574
|
+
onClose: unref(menuConfig).close,
|
|
575
|
+
onKeydown: unref(menuConfig).closeOnEscape
|
|
576
|
+
}, createSlots({ _: 2 }, [
|
|
577
|
+
_ctx.$slots.item ? {
|
|
578
|
+
name: "item",
|
|
579
|
+
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "item", {
|
|
580
|
+
item: unref(menu).entries.value.find((entry) => entry.id === slotProps.entry.id).item,
|
|
581
|
+
isActive: slotProps.isActive,
|
|
582
|
+
isSelected: slotProps.isSelected
|
|
583
|
+
})]),
|
|
584
|
+
key: "0"
|
|
585
|
+
} : void 0,
|
|
586
|
+
_ctx.$slots.empty ? {
|
|
587
|
+
name: "empty",
|
|
588
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "empty")]),
|
|
589
|
+
key: "1"
|
|
590
|
+
} : void 0,
|
|
591
|
+
_ctx.$slots.menu ? {
|
|
592
|
+
name: "menu",
|
|
593
|
+
fn: withCtx((menuProps) => [renderSlot(_ctx.$slots, "menu", normalizeProps(guardReactiveProps(menuProps)))]),
|
|
594
|
+
key: "2"
|
|
595
|
+
} : void 0
|
|
596
|
+
]), 1032, [
|
|
597
|
+
"id",
|
|
598
|
+
"is-open",
|
|
599
|
+
"config",
|
|
600
|
+
"label",
|
|
601
|
+
"grid",
|
|
602
|
+
"placement",
|
|
603
|
+
"popup-style",
|
|
533
604
|
"entries",
|
|
534
605
|
"active-index",
|
|
535
|
-
"grid",
|
|
536
606
|
"action-index",
|
|
537
607
|
"status",
|
|
538
|
-
"listbox-id",
|
|
539
608
|
"empty-text",
|
|
540
609
|
"loading-text",
|
|
541
|
-
"error-text"
|
|
542
|
-
|
|
610
|
+
"error-text",
|
|
611
|
+
"query",
|
|
612
|
+
"is-settled",
|
|
613
|
+
"onClose",
|
|
614
|
+
"onKeydown"
|
|
615
|
+
])
|
|
543
616
|
], 64);
|
|
544
617
|
};
|
|
545
618
|
}
|
|
@@ -605,6 +678,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
605
678
|
name: {},
|
|
606
679
|
width: {},
|
|
607
680
|
startIcon: {},
|
|
681
|
+
menu: {},
|
|
608
682
|
containerClass: { type: [
|
|
609
683
|
Boolean,
|
|
610
684
|
null,
|
|
@@ -666,6 +740,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
666
740
|
});
|
|
667
741
|
provide(typeaheadChromeKey, true);
|
|
668
742
|
const inputId = `astryx-typeahead-${useId()}`;
|
|
743
|
+
provide(typeaheadFocusKey, { inputReturnTarget: () => document.getElementById(inputId)?.closest(".astryx-typeahead-control")?.querySelector(".astryx-token button") ?? null });
|
|
669
744
|
const base = useTemplateRef("base");
|
|
670
745
|
/** 新名 disabledMessage 优先,旧名 disabledReason 继续可用。 */
|
|
671
746
|
const disabledMessage = computed(() => {
|
|
@@ -694,10 +769,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
694
769
|
}
|
|
695
770
|
__expose({
|
|
696
771
|
focus: () => base.value?.focus(),
|
|
697
|
-
blur: () => base.value?.blur()
|
|
772
|
+
blur: () => base.value?.blur(),
|
|
773
|
+
open: () => base.value?.open(),
|
|
774
|
+
close: () => base.value?.close()
|
|
698
775
|
});
|
|
699
776
|
return (_ctx, _cache) => {
|
|
700
|
-
return openBlock(), createBlock(_sfc_main$
|
|
777
|
+
return openBlock(), createBlock(_sfc_main$5, {
|
|
701
778
|
class: normalizeClass(["astryx-typeahead", [unref(parts).containerClass.value, `size-${props.size}`]]),
|
|
702
779
|
style: normalizeStyle(unref(parts).containerStyle.value),
|
|
703
780
|
label: props.label,
|
|
@@ -740,6 +817,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
740
817
|
"show-on-focus": showsEntriesOnFocus.value,
|
|
741
818
|
"has-auto-focus": props.hasAutoFocus,
|
|
742
819
|
"empty-search-text": emptySearchText.value,
|
|
820
|
+
menu: props.menu,
|
|
743
821
|
required: props.required,
|
|
744
822
|
name: props.name,
|
|
745
823
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event)),
|
|
@@ -750,7 +828,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
750
828
|
}), createSlots({ _: 2 }, [
|
|
751
829
|
_ctx.$slots.icon || props.startIcon ? {
|
|
752
830
|
name: "icon",
|
|
753
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [(openBlock(), createBlock(
|
|
831
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [typeof props.startIcon === "string" ? (openBlock(), createBlock(_sfc_main$2, {
|
|
832
|
+
key: 0,
|
|
833
|
+
icon: props.startIcon,
|
|
834
|
+
size: "sm"
|
|
835
|
+
}, null, 8, ["icon"])) : (openBlock(), createBlock(resolveDynamicComponent(props.startIcon), { key: 1 }))])]),
|
|
754
836
|
key: "0"
|
|
755
837
|
} : void 0,
|
|
756
838
|
_ctx.$slots.item ? {
|
|
@@ -766,6 +848,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
766
848
|
name: "empty",
|
|
767
849
|
fn: withCtx(() => [renderSlot(_ctx.$slots, "empty")]),
|
|
768
850
|
key: "2"
|
|
851
|
+
} : void 0,
|
|
852
|
+
_ctx.$slots.menu ? {
|
|
853
|
+
name: "menu",
|
|
854
|
+
fn: withCtx((menuProps) => [renderSlot(_ctx.$slots, "menu", normalizeProps(guardReactiveProps(menuProps)))]),
|
|
855
|
+
key: "3"
|
|
769
856
|
} : void 0
|
|
770
857
|
]), 1040, [
|
|
771
858
|
"control-class",
|
|
@@ -789,6 +876,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
789
876
|
"show-on-focus",
|
|
790
877
|
"has-auto-focus",
|
|
791
878
|
"empty-search-text",
|
|
879
|
+
"menu",
|
|
792
880
|
"required",
|
|
793
881
|
"name"
|
|
794
882
|
])]),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as isKeyboardModality, p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.js";
|
|
2
|
+
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
2
3
|
import { n as focusElement } from "./focus-x7mxEqjR.js";
|
|
3
4
|
import { nextTick, onScopeDispose, ref, watch } from "vue";
|
|
4
5
|
//#region src/Selector/selectorEscape.ts
|
|
@@ -57,4 +58,14 @@ function useKeyboardHighlight(activeIndex) {
|
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
60
|
//#endregion
|
|
60
|
-
|
|
61
|
+
//#region src/selectors/assertOptions.ts
|
|
62
|
+
/**
|
|
63
|
+
* 开发期检查:Selector、MultiSelector 的 `options` 必须是数组。
|
|
64
|
+
* 它们不读 `<option>` 子节点,缺了这个属性时点名组件、属性和改法,
|
|
65
|
+
* 免得调用方只看到内部的 TypeError。生产构建里不做这项检查。
|
|
66
|
+
*/
|
|
67
|
+
function assertOptionsArray(component, options) {
|
|
68
|
+
if (isDevBuild() && !Array.isArray(options)) throw devPropError(component, "options", `must be an array of options, for example :options="[{ value: 'nyc', label: 'New York' }]". ${component} does not read <option> children.`);
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
export { focusSelectorTrigger as a, dismissSelectorEscape as i, useKeyboardHighlight as n, onSelectorListboxEscape as o, bindListboxEscape as r, assertOptionsArray as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as todayISODate, $n as UseContainerRevealOptions, $t as HandleRef, A as useRestoreFocus, An as DatePresentation, Ar as
|
|
2
|
-
import { a as
|
|
1
|
+
import { $ as todayISODate, $n as UseContainerRevealOptions, $t as HandleRef, A as useRestoreFocus, An as DatePresentation, Ar as AnimatorAnimateOptions, At as useLayer, B as useOverflow, Bn as formatDisplayTime, Br as WeekStartsOn, Bt as UseInputContainerOptions, C as ScrollStickyContainment, Cn as UseDismissOptions, Cr as AnnounceFn, Ct as useListFocus, D as useScrollableArea, Dn as useDisclosureHandle, Dr as useAnimator, Dt as LayerMode, E as UseScrollableAreaResult, En as DisclosureHandleRef, Er as AnnouncePoliteness, Et as useResolvedLayerTeleport, F as PendingChange, Fn as ISOTimeString, Fr as AnimatorValues, Ft as InteractiveRole, G as NumberStepDirection, Gn as resolveTimeSurface, Gr as isRangeWithinSpan, Gt as useIndicatorFocusRing, H as ComputeOverflowResult, Hn as isTimeInRange, Hr as compareISODate, Ht as IndicatorFocusRingHandlers, I as usePendingChange, In as NativePicker, Ir as SnapPaging, It as UseInteractiveRoleOptions, J as useNumberField, Jn as UseControllableStateOptions, Jr as resolveWeekStart, Jt as imageModeFromPixels, K as UseNumberFieldOptions, Kn as shiftTime, Kr as isSameRange, Kt as ImageSampleRegion, L as OverflowInlineBounds, Ln as ParsedTime, Lr as SnapPagingOptions, Lt as UseInteractiveRoleReturn, M as UsePressFeedbackOptions, Mn as resolveDatePresentation, Mr as AnimatorDecayVelocity, Mt as UseKeyboardHint, N as UsePressFeedbackReturn, Nn as resolveDateSurface, Nr as AnimatorHandle, Nt as UseKeyboardHintOptions, O as RestoreFocus, On as devWarn, Or as createAnimator, Ot as UseLayerOptions, P as usePressFeedback, Pn as HourFormat, Pr as AnimatorSnapshot, Pt as useKeyboardHint, Q as toISODate, Qn as UseContainerReveal, Qt as useHotkeys, R as UseOverflowOptions, Rn as TimePresentation, Rr as ISODateRange, Rt as useInteractiveRole, S as ScrollRole, Sn as useEntryAnimation, Sr as useAppShellMobile, St as UseListFocusOptions, T as UseScrollableAreaOptions, Tn as DisclosureHandle, Tr as useAnnounce, Tt as useLayerTeleportTarget, U as computeOverflow, Un as parseDisplayTime, Ur as formatDateRange, Ut as UseIndicatorFocusRingOptions, V as ComputeOverflowInput, Vn as formatISOTime, Vr as applyRangeClick, Vt as useInputContainer, W as NumberField, Wn as parseISOTime, Wr as isDayOutsideSpan, Wt as UseIndicatorFocusRingReturn, X as buildMonthGrid, Xn as ContainerRevealOptions, Xt as useImageMode, Y as addMonths, Yn as useControllableState, Yr as spanDays, Yt as perceptualLightness, Z as parseISODate, Zn as ContentRevealOptions, Zt as Hotkey, _ as useScrollLock, _n as FieldControlStateInput, _r as UseChatNewMessagesOptions, _t as LongPressHandlers, a as UseTouchTriggerOptions, an as UseGridFocusReturn, ar as useCoarsePointer, at as useMenuPress, b as ScrollKeyboardAccess, bn as UseEntryAnimationOptions, br as AppShellMobile, bt as ListFocus, c as isActionTrigger, cn as UseFocusTrapOptions, cr as UseClickableContainerOptions, ct as MENU_PRESS_MARKER, d as snapToGraphemeBoundary, dn as FileSelectionOptions, dr as useClickableContainer, dt as MenuPressEvent, en as useHandleRef, er as useContainerReveal, et as MergedRef, f as useStreamingText, fn as FileSelectionResult, fr as ChatScrollToBottomOptions, ft as MenuPressGesture, g as useScrollOverflow, gn as FieldControlState, gr as CHAT_MESSAGE_CLASS, gt as useMediaQuery, h as UseScrollOverflowResult, hn as selectFiles, hr as useChatStreamScroll, ht as menuPressStep, i as LayerTouchTrigger, in as UseGridFocusOptions, ir as useCombobox, it as MenuPressOptions, j as useResolvedLabelHidden, jn as DateSurface, jr as AnimatorChannel, jt as KeyboardHintOrientation, k as UseRestoreFocusOptions, kn as useDevWarning, kr as Animator, kt as UseLayerReturn, l as StreamingTextSpeed, ln as useFocusTrap, lr as hasInteractiveAncestor, lt as MENU_PRESS_SETTLE_MS, m as ScrollOverflowState, mn as formatFileSize, mr as UseChatStreamScrollReturn, mt as MenuPressStep, n as UseTypeaheadReturn, nn as UseGridRovingFocusOptions, nr as ComboboxOption, nt as useMergedRefs, o as UseTouchTriggerReturn, on as useGridFocus, or as ClickableContainerHandlers, ot as isMenuPressActivation, p as useSnapPaging, pn as FileSizeUnits, pr as UseChatStreamScrollOptions, pt as MenuPressPointerType, q as computeSteppedValue, qn as ControllableState, qr as orderRange, qt as UseImageModeOptions, r as useTypeahead, rn as useGridRovingFocus, rr as UseComboboxOptions, rt as MenuPress, s as useTouchTrigger, sn as FocusTrap, sr as INTERACTIVE_SELECTORS, st as resetMenuPress, t as UseTypeaheadOptions, tn as GridRovingFocus, tr as Combobox, tt as MergedRefHandle, u as UseStreamingTextOptions, un as FileRejection, ur as hasTextSelection, ut as MenuPressEffect, v as ScrollAxis, vn as useFieldControlState, vr as UseChatNewMessagesReturn, vt as LongPressOptions, w as ScrollableAreaState, wn as useDismiss, wr as UseAnnounceOptions, wt as useLayerMountTarget, x as ScrollOverscroll, xn as UseEntryAnimationReturn, xr as appShellMobileKey, xt as ListFocusOrientation, y as ScrollAxisState, yn as EntryAnimationPreset, yr as useChatNewMessages, yt as useLongPress, z as UseOverflowReturn, zn as TimeSurface, zr as RangeClickResult, zt as InputContainerHandlers } from "../index-tuNsmJxw.js";
|
|
2
|
+
import { a as SearchSource, c as createStaticSource, i as SearchContext, l as useAsyncSource, n as AsyncSourceStatus, o as SearchableItem, r as CreateStaticSourceOptions, s as UseAsyncSourceOptions, t as AsyncSource } from "../useAsyncSource-DbG2FSuI.js";
|
|
3
3
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-DeO8fCW_.js";
|
|
4
4
|
import { t as characterCount } from "../characters-rcDbGt71.js";
|
|
5
5
|
import { i as useInputStatusIcon, n as UseInputStatusIconOptions, r as UseInputStatusIconReturn, t as InputStatusVariant } from "../useInputStatusIcon-B6m_t8cK.js";
|
|
6
6
|
import { a as ResizableRegionConfig, c as UseResizableMultiConfig, d as percent, f as useResizable, i as ResizableRegion, l as UseResizableOptions, n as ResizablePercentSize, o as ResizableSize, r as ResizableProps, s as ResizableState, t as ResizableDirection, u as UseResizableSingleOptions } from "../useResizable-CJd4JkbJ.js";
|
|
7
|
-
export { type AnnounceFn, type AnnouncePoliteness, type AppShellMobile, type AsyncSource, type AsyncSourceStatus, CHAT_MESSAGE_CLASS, type ChatScrollToBottomOptions, type ClickableContainerHandlers, type Combobox, type ComboboxOption, type ComputeOverflowInput, type ComputeOverflowResult, type ContainerRevealOptions, type ContentRevealOptions, type ControllableState, type CreateStaticSourceOptions, type DatePresentation, type DateSurface, type DisclosureHandle, type DisclosureHandleRef, type EntryAnimationPreset, type FieldControlState, type FieldControlStateInput, type FileRejection, type FileSelectionOptions, type FileSelectionResult, type FileSizeUnits, type FocusTrap, type GridRovingFocus, type HandleRef, type Hotkey, type HourFormat, INTERACTIVE_SELECTORS, type ISODateRange, type ISOTimeString, type ImageSampleRegion, type IndicatorFocusRingHandlers, type InputContainerHandlers, type InputStatusVariant, type InteractiveRole, type KeyboardHintOrientation, type LayerMode, type LayerTouchTrigger, type ListFocus, type ListFocusOrientation, type LongPressHandlers, type LongPressOptions, MENU_PRESS_MARKER, MENU_PRESS_SETTLE_MS, type MenuPress, type MenuPressEffect, type MenuPressEvent, type MenuPressGesture, type MenuPressOptions, type MenuPressPointerType, type MenuPressStep, type MergedRef, type MergedRefHandle, type NativePicker, type NumberField, type NumberStepDirection, type OverflowInlineBounds, type ParsedTime, type PendingChange, type RangeClickResult, type ResizableDirection, type ResizablePercentSize, type ResizableProps, type ResizableRegion, type ResizableRegionConfig, type ResizableSize, type ResizableState, type RestoreFocus, type ScrollAxis, type ScrollAxisState, type ScrollKeyboardAccess, type ScrollOverflowState, type ScrollOverscroll, type ScrollRole, type ScrollStickyContainment, type ScrollableAreaState, type SearchSource, type SearchableItem, type SnapPaging, type SnapPagingOptions, type StreamingTextSpeed, type TimePresentation, type TimeSurface, type UseAnnounceOptions, type UseAsyncSourceOptions, type UseChatNewMessagesOptions, type UseChatNewMessagesReturn, type UseChatStreamScrollOptions, type UseChatStreamScrollReturn, type UseClickableContainerOptions, type UseClipboardOptions, type UseClipboardReturn, type UseComboboxOptions, type UseContainerReveal, type UseContainerRevealOptions, type UseControllableStateOptions, type UseDismissOptions, type UseEntryAnimationOptions, type UseEntryAnimationReturn, type UseFocusTrapOptions, type UseGridFocusOptions, type UseGridFocusReturn, type UseGridRovingFocusOptions, type UseImageModeOptions, type UseIndicatorFocusRingOptions, type UseIndicatorFocusRingReturn, type UseInputContainerOptions, type UseInputStatusIconOptions, type UseInputStatusIconReturn, type UseInteractiveRoleOptions, type UseInteractiveRoleReturn, type UseKeyboardHint, type UseKeyboardHintOptions, type UseLayerOptions, type UseLayerReturn, type UseListFocusOptions, type UseNumberFieldOptions, type UseOverflowOptions, type UseOverflowReturn, type UsePressFeedbackOptions, type UsePressFeedbackReturn, type UseResizableMultiConfig, type UseResizableOptions, type UseResizableSingleOptions, type UseRestoreFocusOptions, type UseScrollOverflowResult, type UseScrollableAreaOptions, type UseScrollableAreaResult, type UseStreamingTextOptions, type UseTouchTriggerOptions, type UseTouchTriggerReturn, type UseTypeaheadOptions, type UseTypeaheadReturn, type WeekStartsOn, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, computeSteppedValue, characterCount as countCharacters, createStaticSource, devWarn, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, hasInteractiveAncestor, hasTextSelection, imageModeFromPixels, isActionTrigger, isDayOutsideSpan, isMenuPressActivation, isRangeWithinSpan, isSameRange, isTimeInRange, menuPressStep, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, perceptualLightness, resetMenuPress, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useContainerReveal, useControllableState, useDevWarning, useDisclosureHandle, useDismiss, useEntryAnimation, useFieldControlState, useFocusTrap, useGridFocus, useGridRovingFocus, useHandleRef, useHotkeys, useImageMode, useIndicatorFocusRing, useInputContainer, useInputStatusIcon, useInteractiveRole, useKeyboardHint, useLayer, useLayerMountTarget, useLayerTeleportTarget, useListFocus, useLongPress, useMediaQuery, useMenuPress, useMergedRefs, useNumberField, useOverflow, usePendingChange, usePressFeedback, useResizable, useResolvedLabelHidden, useResolvedLayerTeleport, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useSnapPaging, useStreamingText, useTouchTrigger, useTypeahead };
|
|
7
|
+
export { type Animator, type AnimatorAnimateOptions, type AnimatorChannel, type AnimatorDecayVelocity, type AnimatorHandle, type AnimatorSnapshot, type AnimatorValues, type AnnounceFn, type AnnouncePoliteness, type AppShellMobile, type AsyncSource, type AsyncSourceStatus, CHAT_MESSAGE_CLASS, type ChatScrollToBottomOptions, type ClickableContainerHandlers, type Combobox, type ComboboxOption, type ComputeOverflowInput, type ComputeOverflowResult, type ContainerRevealOptions, type ContentRevealOptions, type ControllableState, type CreateStaticSourceOptions, type DatePresentation, type DateSurface, type DisclosureHandle, type DisclosureHandleRef, type EntryAnimationPreset, type FieldControlState, type FieldControlStateInput, type FileRejection, type FileSelectionOptions, type FileSelectionResult, type FileSizeUnits, type FocusTrap, type GridRovingFocus, type HandleRef, type Hotkey, type HourFormat, INTERACTIVE_SELECTORS, type ISODateRange, type ISOTimeString, type ImageSampleRegion, type IndicatorFocusRingHandlers, type InputContainerHandlers, type InputStatusVariant, type InteractiveRole, type KeyboardHintOrientation, type LayerMode, type LayerTouchTrigger, type ListFocus, type ListFocusOrientation, type LongPressHandlers, type LongPressOptions, MENU_PRESS_MARKER, MENU_PRESS_SETTLE_MS, type MenuPress, type MenuPressEffect, type MenuPressEvent, type MenuPressGesture, type MenuPressOptions, type MenuPressPointerType, type MenuPressStep, type MergedRef, type MergedRefHandle, type NativePicker, type NumberField, type NumberStepDirection, type OverflowInlineBounds, type ParsedTime, type PendingChange, type RangeClickResult, type ResizableDirection, type ResizablePercentSize, type ResizableProps, type ResizableRegion, type ResizableRegionConfig, type ResizableSize, type ResizableState, type RestoreFocus, type ScrollAxis, type ScrollAxisState, type ScrollKeyboardAccess, type ScrollOverflowState, type ScrollOverscroll, type ScrollRole, type ScrollStickyContainment, type ScrollableAreaState, type SearchContext, type SearchSource, type SearchableItem, type SnapPaging, type SnapPagingOptions, type StreamingTextSpeed, type TimePresentation, type TimeSurface, type UseAnnounceOptions, type UseAsyncSourceOptions, type UseChatNewMessagesOptions, type UseChatNewMessagesReturn, type UseChatStreamScrollOptions, type UseChatStreamScrollReturn, type UseClickableContainerOptions, type UseClipboardOptions, type UseClipboardReturn, type UseComboboxOptions, type UseContainerReveal, type UseContainerRevealOptions, type UseControllableStateOptions, type UseDismissOptions, type UseEntryAnimationOptions, type UseEntryAnimationReturn, type UseFocusTrapOptions, type UseGridFocusOptions, type UseGridFocusReturn, type UseGridRovingFocusOptions, type UseImageModeOptions, type UseIndicatorFocusRingOptions, type UseIndicatorFocusRingReturn, type UseInputContainerOptions, type UseInputStatusIconOptions, type UseInputStatusIconReturn, type UseInteractiveRoleOptions, type UseInteractiveRoleReturn, type UseKeyboardHint, type UseKeyboardHintOptions, type UseLayerOptions, type UseLayerReturn, type UseListFocusOptions, type UseNumberFieldOptions, type UseOverflowOptions, type UseOverflowReturn, type UsePressFeedbackOptions, type UsePressFeedbackReturn, type UseResizableMultiConfig, type UseResizableOptions, type UseResizableSingleOptions, type UseRestoreFocusOptions, type UseScrollOverflowResult, type UseScrollableAreaOptions, type UseScrollableAreaResult, type UseStreamingTextOptions, type UseTouchTriggerOptions, type UseTouchTriggerReturn, type UseTypeaheadOptions, type UseTypeaheadReturn, type WeekStartsOn, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, computeSteppedValue, characterCount as countCharacters, createAnimator, createStaticSource, devWarn, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, hasInteractiveAncestor, hasTextSelection, imageModeFromPixels, isActionTrigger, isDayOutsideSpan, isMenuPressActivation, isRangeWithinSpan, isSameRange, isTimeInRange, menuPressStep, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, perceptualLightness, resetMenuPress, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnimator, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useContainerReveal, useControllableState, useDevWarning, useDisclosureHandle, useDismiss, useEntryAnimation, useFieldControlState, useFocusTrap, useGridFocus, useGridRovingFocus, useHandleRef, useHotkeys, useImageMode, useIndicatorFocusRing, useInputContainer, useInputStatusIcon, useInteractiveRole, useKeyboardHint, useLayer, useLayerMountTarget, useLayerTeleportTarget, useListFocus, useLongPress, useMediaQuery, useMenuPress, useMergedRefs, useNumberField, useOverflow, usePendingChange, usePressFeedback, useResizable, useResolvedLabelHidden, useResolvedLayerTeleport, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useSnapPaging, useStreamingText, useTouchTrigger, useTypeahead };
|
|
@@ -3,20 +3,20 @@ import { n as isMenuPressActivation, r as resetMenuPress } from "../strayClick-_
|
|
|
3
3
|
import { t as usePressFeedback } from "../usePressFeedback-2YAzGB6C.js";
|
|
4
4
|
import { n as useLayerTeleportTarget, r as useResolvedLayerTeleport, t as useLayerMountTarget } from "../useLayerMountTarget-BmZyeKWE.js";
|
|
5
5
|
import { t as useDismiss } from "../useDismiss-Dfb0Ky7T.js";
|
|
6
|
-
import {
|
|
6
|
+
import { n as useLayer } from "../tooltipTriggerRules-PBxqztvn.js";
|
|
7
7
|
import { t as useCoarsePointer } from "../useCoarsePointer-GItEMrjX.js";
|
|
8
8
|
import { t as useMediaQuery } from "../useMediaQuery-BzXGT1Aw.js";
|
|
9
9
|
import { t as characterCount } from "../characters-wTnzjkkR.js";
|
|
10
|
+
import { a as useKeyboardHint, c as perceptualLightness, d as useGridFocus, f as useEntryAnimation, g as createAnimator, h as useAnimator, i as useSnapPaging, l as useImageMode, m as useContainerReveal, n as snapToGraphemeBoundary, o as useIndicatorFocusRing, p as useControllableState, r as useStreamingText, s as imageModeFromPixels, t as useTouchTrigger, u as useGridRovingFocus } from "../composables-BKHcPgN0.js";
|
|
11
|
+
import { n as useDevWarning, t as devWarn } from "../useDevWarning-B2fsk2B-.js";
|
|
10
12
|
import { t as useAnnounce } from "../announce-GU01Oix2.js";
|
|
11
13
|
import { n as useAppShellMobile, t as appShellMobileKey } from "../useAppShellMobile-DTsyuAJ4.js";
|
|
12
|
-
import { n as useAsyncSource, t as createStaticSource } from "../useAsyncSource-
|
|
14
|
+
import { n as useAsyncSource, t as createStaticSource } from "../useAsyncSource-7GTcK8ep.js";
|
|
13
15
|
import { n as CHAT_MESSAGE_CLASS, r as useChatNewMessages, t as useChatStreamScroll } from "../useChatStreamScroll-BIMKffDA.js";
|
|
14
16
|
import { t as useClipboard } from "../useClipboard-CTY3GwFz.js";
|
|
15
|
-
import { t as useCombobox } from "../useCombobox-
|
|
16
|
-
import { a as useKeyboardHint, c as perceptualLightness, d as useGridFocus, f as useEntryAnimation, i as useSnapPaging, l as useImageMode, m as useContainerReveal, n as snapToGraphemeBoundary, o as useIndicatorFocusRing, p as useControllableState, r as useStreamingText, s as imageModeFromPixels, t as useTouchTrigger, u as useGridRovingFocus } from "../composables-CCsHfpCS.js";
|
|
17
|
+
import { t as useCombobox } from "../useCombobox-DIR9yoEu.js";
|
|
17
18
|
import { n as resolveDateSurface, t as resolveDatePresentation } from "../useDatePresentation-C07PnOCw.js";
|
|
18
19
|
import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, l as spanDays, n as compareISODate, o as isSameRange, r as formatDateRange, s as orderRange, t as applyRangeClick } from "../useDateRange-CIXoE_8k.js";
|
|
19
|
-
import { n as useDevWarning, t as devWarn } from "../useDevWarning-B2fsk2B-.js";
|
|
20
20
|
import { t as useDisclosureHandle } from "../useDisclosureHandle-Df3HhAfC.js";
|
|
21
21
|
import { t as useFieldControlState } from "../useFieldControlState-voICDrys.js";
|
|
22
22
|
import { n as selectFiles, t as formatFileSize } from "../useFileSelection-Cfcbh8XI.js";
|
|
@@ -24,7 +24,7 @@ import { t as useFocusTrap } from "../useFocusTrap-BUd-fvUH.js";
|
|
|
24
24
|
import { t as useHandleRef } from "../useHandleRef-6cdKugm8.js";
|
|
25
25
|
import { n as useResizable, r as useHotkeys, t as percent } from "../useResizable-BMlG1oxA.js";
|
|
26
26
|
import { t as useInputContainer } from "../useInputContainer-CLhsKYZ6.js";
|
|
27
|
-
import { t as useInputStatusIcon } from "../useInputStatusIcon-
|
|
27
|
+
import { t as useInputStatusIcon } from "../useInputStatusIcon-ne9V7ZQC.js";
|
|
28
28
|
import { t as useInteractiveRole } from "../useInteractiveRole-Cn0Nd5GX.js";
|
|
29
29
|
import { t as useListFocus } from "../useListFocus-CbHkLT-X.js";
|
|
30
30
|
import { a as useLongPress, i as MENU_PRESS_MARKER, n as MENU_PRESS_SETTLE_MS, r as menuPressStep, t as useMenuPress } from "../useMenuPress-9dOj2hvC.js";
|
|
@@ -41,4 +41,4 @@ import { t as useScrollOverflow } from "../useScrollOverflow-DuMoGXmm.js";
|
|
|
41
41
|
import { a as parseISOTime, i as parseDisplayTime, n as formatISOTime, o as resolveTimeSurface, r as isTimeInRange, s as shiftTime, t as formatDisplayTime } from "../useTimeValue-_XW9g2V1.js";
|
|
42
42
|
import { n as isActionTrigger } from "../useTouchTriggerInternal-Bs7obOrb.js";
|
|
43
43
|
import { t as useTypeahead } from "../useTypeahead-BrWvmOu9.js";
|
|
44
|
-
export { CHAT_MESSAGE_CLASS, INTERACTIVE_SELECTORS, MENU_PRESS_MARKER, MENU_PRESS_SETTLE_MS, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, computeSteppedValue, characterCount as countCharacters, createStaticSource, devWarn, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, hasInteractiveAncestor, hasTextSelection, imageModeFromPixels, isActionTrigger, isDayOutsideSpan, isMenuPressActivation, isRangeWithinSpan, isSameRange, isTimeInRange, menuPressStep, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, perceptualLightness, resetMenuPress, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useContainerReveal, useControllableState, useDevWarning, useDisclosureHandle, useDismiss, useEntryAnimation, useFieldControlState, useFocusTrap, useGridFocus, useGridRovingFocus, useHandleRef, useHotkeys, useImageMode, useIndicatorFocusRing, useInputContainer, useInputStatusIcon, useInteractiveRole, useKeyboardHint, useLayer, useLayerMountTarget, useLayerTeleportTarget, useListFocus, useLongPress, useMediaQuery, useMenuPress, useMergedRefs, useNumberField, useOverflow, usePendingChange, usePressFeedback, useResizable, useResolvedLabelHidden, useResolvedLayerTeleport, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useSnapPaging, useStreamingText, useTouchTrigger, useTypeahead };
|
|
44
|
+
export { CHAT_MESSAGE_CLASS, INTERACTIVE_SELECTORS, MENU_PRESS_MARKER, MENU_PRESS_SETTLE_MS, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, computeSteppedValue, characterCount as countCharacters, createAnimator, createStaticSource, devWarn, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, hasInteractiveAncestor, hasTextSelection, imageModeFromPixels, isActionTrigger, isDayOutsideSpan, isMenuPressActivation, isRangeWithinSpan, isSameRange, isTimeInRange, menuPressStep, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, perceptualLightness, resetMenuPress, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnimator, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useContainerReveal, useControllableState, useDevWarning, useDisclosureHandle, useDismiss, useEntryAnimation, useFieldControlState, useFocusTrap, useGridFocus, useGridRovingFocus, useHandleRef, useHotkeys, useImageMode, useIndicatorFocusRing, useInputContainer, useInputStatusIcon, useInteractiveRole, useKeyboardHint, useLayer, useLayerMountTarget, useLayerTeleportTarget, useListFocus, useLongPress, useMediaQuery, useMenuPress, useMergedRefs, useNumberField, useOverflow, usePendingChange, usePressFeedback, useResizable, useResolvedLabelHidden, useResolvedLayerTeleport, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useSnapPaging, useStreamingText, useTouchTrigger, useTypeahead };
|