@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
|
@@ -2,20 +2,21 @@ import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
|
2
2
|
import { i as trackInteractionModality, p as isImeKeyEvent, t as getInteractionModality } from "./interactionModality-B5dR7nnb.js";
|
|
3
3
|
import { t as _sfc_main$1 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
4
4
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
5
|
-
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
6
5
|
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
7
|
-
import { t as
|
|
6
|
+
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
7
|
+
import { t as useInputStatusIcon } from "./useInputStatusIcon-ne9V7ZQC.js";
|
|
8
8
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
9
9
|
import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
|
|
10
10
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
11
11
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
12
|
-
import { t as _sfc_main$2 } from "./Field-
|
|
12
|
+
import { t as _sfc_main$2 } from "./Field-BXkGR8H0.js";
|
|
13
13
|
import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
|
|
14
|
+
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
14
15
|
import { t as tokenizerMessages } from "./tokenizer-ChiAuPN-.js";
|
|
15
16
|
import { t as _sfc_main$3 } from "./Token-jBbgdevV.js";
|
|
16
17
|
import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-0vdn-hSa.js";
|
|
17
|
-
import { a as
|
|
18
|
-
import { Fragment,
|
|
18
|
+
import { a as useLatchedOptionGrid, n as useTypeaheadAnnouncement, o as useTypeaheadMenu, r as _sfc_main$4, t as useTypeaheadMenuConfig } from "./useTypeaheadMenuConfig--4f7jR6G.js";
|
|
19
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
19
20
|
import "../styles/layer.css";
|
|
20
21
|
import "../styles/visually-hidden-utility.css";
|
|
21
22
|
import "../styles/typeahead.css";
|
|
@@ -130,6 +131,64 @@ function pickInputAttrs(attrs) {
|
|
|
130
131
|
return Object.fromEntries(Object.entries(attrs).filter(([key]) => !controlledAttrs.has(key)));
|
|
131
132
|
}
|
|
132
133
|
//#endregion
|
|
134
|
+
//#region src/Tokenizer/useTokenizerDisabled.ts
|
|
135
|
+
/**
|
|
136
|
+
* 禁用的 Tokenizer 仍是 Tab 停点:输入框用 aria-disabled 加只读,不用原生 disabled,
|
|
137
|
+
* 有禁用说明时悬停和键盘聚焦都能读到它。
|
|
138
|
+
* 例外是 `overflow="unfocused-layer"` 且没有说明:输入框在失焦时才展开的浮层里,
|
|
139
|
+
* 禁用的字段打不开那层,此时仍用原生 disabled。
|
|
140
|
+
*/
|
|
141
|
+
function useTokenizerDisabled(props) {
|
|
142
|
+
/** 新名 disabledMessage 优先,旧名 disabledReason 继续可用。 */
|
|
143
|
+
const disabledMessage = computed(() => {
|
|
144
|
+
const message = props.disabledMessage?.trim() ? props.disabledMessage : props.disabledReason;
|
|
145
|
+
return message?.trim() ? message : void 0;
|
|
146
|
+
});
|
|
147
|
+
const showsDisabledMessage = computed(() => Boolean(props.disabled) && Boolean(disabledMessage.value));
|
|
148
|
+
return {
|
|
149
|
+
disabledMessage,
|
|
150
|
+
showsDisabledMessage,
|
|
151
|
+
focusableDisabled: computed(() => Boolean(props.disabled) && (showsDisabledMessage.value || props.overflow !== "unfocused-layer")),
|
|
152
|
+
disabledTooltip: useButtonTooltip(showsDisabledMessage)
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/Tokenizer/useTokenizerFieldAria.ts
|
|
157
|
+
/** 输入框的名字、说明和状态图标。 */
|
|
158
|
+
function useTokenizerFieldAria(options) {
|
|
159
|
+
const { props, attrs, inputId, fieldLabelId, disabledId, hasDisabledDescription } = options;
|
|
160
|
+
const fieldStatus = computed(() => {
|
|
161
|
+
if (!props.statusMessage || props.status === "default") return void 0;
|
|
162
|
+
return {
|
|
163
|
+
type: props.status,
|
|
164
|
+
message: props.statusMessage
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
/** 调用方的 aria-labelledby 接在字段自己的标签后面,不取代它。 */
|
|
168
|
+
const labelledBy = computed(() => {
|
|
169
|
+
const external = attrs["aria-labelledby"];
|
|
170
|
+
return typeof external === "string" && external !== "" ? `${fieldLabelId} ${external}` : void 0;
|
|
171
|
+
});
|
|
172
|
+
const { statusIcon, statusIconProps } = useInputStatusIcon({
|
|
173
|
+
status: () => fieldStatus.value,
|
|
174
|
+
statusVariant: () => props.statusVariant ?? "attached"
|
|
175
|
+
});
|
|
176
|
+
return {
|
|
177
|
+
fieldStatus,
|
|
178
|
+
labelledBy,
|
|
179
|
+
statusIcon,
|
|
180
|
+
statusIconProps,
|
|
181
|
+
describedBy: computed(() => {
|
|
182
|
+
return [
|
|
183
|
+
typeof attrs["aria-describedby"] === "string" ? attrs["aria-describedby"] : void 0,
|
|
184
|
+
props.description ? `${inputId}-description` : void 0,
|
|
185
|
+
props.statusMessage ? `${inputId}-status` : void 0,
|
|
186
|
+
hasDisabledDescription.value ? disabledId : void 0
|
|
187
|
+
].filter(Boolean).join(" ") || void 0;
|
|
188
|
+
})
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
//#endregion
|
|
133
192
|
//#region src/Tokenizer/useTokenizerKeys.ts
|
|
134
193
|
/** 输入框和标签上的按键:退格删最后一个、方向键在标签和输入框之间移动焦点。 */
|
|
135
194
|
function useTokenizerKeys(options) {
|
|
@@ -208,17 +267,13 @@ const _hoisted_7 = [
|
|
|
208
267
|
"value",
|
|
209
268
|
"disabled"
|
|
210
269
|
];
|
|
211
|
-
const _hoisted_8 = [
|
|
212
|
-
"role",
|
|
213
|
-
"aria-label",
|
|
214
|
-
"data-placement"
|
|
215
|
-
];
|
|
216
270
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
217
271
|
name: "AstryxTokenizer",
|
|
218
272
|
inheritAttrs: false,
|
|
219
273
|
__name: "Tokenizer",
|
|
220
274
|
props: {
|
|
221
275
|
modelValue: { default: () => [] },
|
|
276
|
+
menu: {},
|
|
222
277
|
searchSource: {},
|
|
223
278
|
label: {},
|
|
224
279
|
isLabelHidden: { type: Boolean },
|
|
@@ -358,21 +413,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
358
413
|
const placeholderHeight = ref(0);
|
|
359
414
|
const announce = useAnnounce();
|
|
360
415
|
const anchorRef = useTemplateRef("anchorRef");
|
|
361
|
-
const
|
|
416
|
+
const popupRef = useTemplateRef("popupRef");
|
|
417
|
+
const listboxRef = computed(() => popupRef.value?.el ?? null);
|
|
362
418
|
useScrollbars(listboxRef);
|
|
363
419
|
const inputRef = useTemplateRef("inputRef");
|
|
364
420
|
const tokenEls = /* @__PURE__ */ new Map();
|
|
365
421
|
const placeholder = computed(() => props.placeholder ?? messages.value.tokenizer.placeholder);
|
|
366
422
|
const emptyText = computed(() => props.emptySearchText ?? props.emptyText ?? messages.value.tokenizer.empty);
|
|
367
|
-
|
|
368
|
-
const disabledMessage = computed(() => {
|
|
369
|
-
const message = props.disabledMessage?.trim() ? props.disabledMessage : props.disabledReason;
|
|
370
|
-
return message?.trim() ? message : void 0;
|
|
371
|
-
});
|
|
372
|
-
const focusableDisabled = computed(() => Boolean(props.disabled && disabledMessage.value));
|
|
373
|
-
/** 有禁用原因时鼠标悬停或键盘聚焦都能读到它。 */
|
|
374
|
-
const showsDisabledMessage = computed(() => Boolean(props.disabled) && Boolean(disabledMessage.value));
|
|
375
|
-
const disabledTooltip = useButtonTooltip(showsDisabledMessage);
|
|
423
|
+
const { disabledMessage, showsDisabledMessage, focusableDisabled, disabledTooltip } = useTokenizerDisabled(props);
|
|
376
424
|
/** 两个名字任一为真就画清除按钮。 */
|
|
377
425
|
const showsClear = computed(() => props.hasClear || props.clearable);
|
|
378
426
|
/** 两个名字任一为真就在聚焦时先展开。 */
|
|
@@ -384,29 +432,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
384
432
|
const atMax = computed(() => props.maxEntries != null && values.value.length >= props.maxEntries);
|
|
385
433
|
const collapsed = computed(() => props.overflow !== "none" && !focused.value);
|
|
386
434
|
const floating = computed(() => props.overflow === "unfocused-layer" && focused.value);
|
|
387
|
-
const fieldStatus =
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
/** 调用方的 aria-labelledby 接在字段自己的标签后面,不取代它。 */
|
|
395
|
-
const labelledBy = computed(() => {
|
|
396
|
-
const external = attrs["aria-labelledby"];
|
|
397
|
-
return typeof external === "string" && external !== "" ? `${fieldLabelId} ${external}` : void 0;
|
|
398
|
-
});
|
|
399
|
-
const { statusIcon, statusIconProps } = useInputStatusIcon({
|
|
400
|
-
status: () => fieldStatus.value,
|
|
401
|
-
statusVariant: () => props.statusVariant
|
|
402
|
-
});
|
|
403
|
-
const describedBy = computed(() => {
|
|
404
|
-
return [
|
|
405
|
-
typeof attrs["aria-describedby"] === "string" ? attrs["aria-describedby"] : void 0,
|
|
406
|
-
props.description ? `${inputId}-description` : void 0,
|
|
407
|
-
props.statusMessage ? `${inputId}-status` : void 0,
|
|
408
|
-
focusableDisabled.value ? disabledId : void 0
|
|
409
|
-
].filter(Boolean).join(" ") || void 0;
|
|
435
|
+
const { fieldStatus, labelledBy, statusIcon, statusIconProps, describedBy } = useTokenizerFieldAria({
|
|
436
|
+
props,
|
|
437
|
+
attrs,
|
|
438
|
+
inputId,
|
|
439
|
+
fieldLabelId,
|
|
440
|
+
disabledId,
|
|
441
|
+
hasDisabledDescription: computed(() => focusableDisabled.value && Boolean(disabledMessage.value))
|
|
410
442
|
});
|
|
411
443
|
function inputAttrs() {
|
|
412
444
|
return pickInputAttrs(attrs);
|
|
@@ -417,7 +449,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
417
449
|
showOnFocus: () => showsEntriesOnFocus.value && !atMax.value,
|
|
418
450
|
minQueryLength: () => props.minQueryLength,
|
|
419
451
|
maxItems: () => props.maxMenuItems,
|
|
420
|
-
disabled: () => props.disabled || atMax.value,
|
|
452
|
+
disabled: () => props.disabled || atMax.value || props.menu?.role === "dialog",
|
|
421
453
|
excludeIds: () => values.value.map((item) => item.id),
|
|
422
454
|
blockedLabels: () => values.value.map((item) => item.label),
|
|
423
455
|
creatable: () => isCreatable.value && !atMax.value,
|
|
@@ -428,18 +460,33 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
428
460
|
emit("changeQuery", query);
|
|
429
461
|
}
|
|
430
462
|
});
|
|
463
|
+
/** 搜索忙碌时由输入框念一次「加载中」;列表里的转圈只是装饰。 */
|
|
464
|
+
const settleBusy = useBusyAnnouncement(() => menu.status.value === "loading", () => messages.value.tokenizer.loading, inputRef);
|
|
431
465
|
useTypeaheadAnnouncement({
|
|
432
466
|
menu,
|
|
467
|
+
settleBusy,
|
|
433
468
|
emptyText: () => emptyText.value,
|
|
434
469
|
emptySearchText: () => emptyText.value,
|
|
435
470
|
resultCount: (count) => messages.value.tokenizer.resultCount(count)
|
|
436
471
|
});
|
|
472
|
+
const menuConfig = useTypeaheadMenuConfig({
|
|
473
|
+
config: () => props.menu,
|
|
474
|
+
popupEl: () => listboxRef.value,
|
|
475
|
+
inputEl: () => inputRef.value,
|
|
476
|
+
listbox: {
|
|
477
|
+
isOpen: menu.combobox.isOpen,
|
|
478
|
+
open: () => menu.open(),
|
|
479
|
+
close: () => menu.close()
|
|
480
|
+
},
|
|
481
|
+
isDisabled: () => props.disabled,
|
|
482
|
+
canOpenList: () => showsEntriesOnFocus.value || menu.query.value !== ""
|
|
483
|
+
});
|
|
437
484
|
const anchored = useAnchoredListbox({
|
|
438
485
|
anchor: anchorRef,
|
|
439
486
|
layer: listboxRef,
|
|
440
|
-
isOpen:
|
|
487
|
+
isOpen: menuConfig.popupOpen,
|
|
441
488
|
menuWidth: () => props.menuWidth,
|
|
442
|
-
onDismiss: () => menu.close()
|
|
489
|
+
onDismiss: () => menuConfig.isDialog.value ? menuConfig.dismiss() : menu.close()
|
|
443
490
|
});
|
|
444
491
|
onMounted(() => {
|
|
445
492
|
if (props.hasAutoFocus) inputRef.value?.focus();
|
|
@@ -455,12 +502,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
455
502
|
const hiddenCount = computed(() => Math.max(0, tokenCount.value - visibleCount.value));
|
|
456
503
|
const measureMoreLabel = computed(() => messages.value.tokenizer.more(Math.max(hiddenCount.value, 1)));
|
|
457
504
|
const visibleItems = computed(() => values.value.slice(0, visibleCount.value));
|
|
458
|
-
watch(collapsed, () =>
|
|
459
|
-
|
|
460
|
-
});
|
|
461
|
-
watch(() => menu.combobox.isOpen.value, (isOpen) => {
|
|
462
|
-
emit("openChange", isOpen);
|
|
463
|
-
});
|
|
505
|
+
watch(collapsed, () => void nextTick(() => overflow.remeasure()));
|
|
506
|
+
watch(menuConfig.popupOpen, (isOpen) => emit("openChange", isOpen));
|
|
464
507
|
watch(() => menu.combobox.activeIndex.value, (index) => {
|
|
465
508
|
if (!menu.combobox.isOpen.value || index < 0) return;
|
|
466
509
|
nextTick(() => scrollOptionIntoView(listboxRef.value, menu.entries.value[index]?.id));
|
|
@@ -473,13 +516,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
473
516
|
if (props.disabled || atMax.value || values.value.some((entry) => entry.id === item.id)) return;
|
|
474
517
|
const fromFocusList = showsEntriesOnFocus.value && type === "add" && menu.query.value === "";
|
|
475
518
|
const pickedIndex = Math.max(0, menu.entries.value.findIndex((entry) => entry.item.id === item.id));
|
|
519
|
+
menuConfig.beginPick();
|
|
476
520
|
commit([...values.value, item], {
|
|
477
521
|
type,
|
|
478
522
|
item
|
|
479
523
|
});
|
|
480
524
|
announce(messages.value.tokenizer.added(item.label));
|
|
481
|
-
menu.
|
|
482
|
-
if (!fromFocusList) menu.close();
|
|
525
|
+
menu.resetQuery();
|
|
526
|
+
if (!fromFocusList && !menuConfig.endPick()) menu.close();
|
|
483
527
|
nextTick(() => {
|
|
484
528
|
inputRef.value?.focus();
|
|
485
529
|
if (!fromFocusList) return;
|
|
@@ -527,8 +571,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
527
571
|
}
|
|
528
572
|
function onFocusOut(event) {
|
|
529
573
|
disabledTooltip.onBlur();
|
|
530
|
-
|
|
531
|
-
if (next instanceof Node && (anchorRef.value?.contains(next) || listboxRef.value?.contains(next))) return;
|
|
574
|
+
if (isInsideTokenizer(event.relatedTarget)) return;
|
|
532
575
|
focused.value = false;
|
|
533
576
|
menu.close();
|
|
534
577
|
emit("blur", event);
|
|
@@ -544,7 +587,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
544
587
|
getListbox: () => listboxRef.value,
|
|
545
588
|
listboxId: () => listboxId
|
|
546
589
|
});
|
|
547
|
-
const { onInputKeyDown, onTokenKeyDown } = useTokenizerKeys({
|
|
590
|
+
const { onInputKeyDown: onListKeyDown, onTokenKeyDown } = useTokenizerKeys({
|
|
548
591
|
values,
|
|
549
592
|
disabled: () => props.disabled,
|
|
550
593
|
menu,
|
|
@@ -553,6 +596,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
553
596
|
remove,
|
|
554
597
|
focusToken
|
|
555
598
|
});
|
|
599
|
+
function onInputKeyDown(event) {
|
|
600
|
+
if (!menuConfig.closeOnEscape(event)) onListKeyDown(event);
|
|
601
|
+
}
|
|
556
602
|
function onFieldClick(event) {
|
|
557
603
|
if (props.disabled) return;
|
|
558
604
|
const target = event.target;
|
|
@@ -570,7 +616,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
570
616
|
}
|
|
571
617
|
__expose({
|
|
572
618
|
focus: () => inputRef.value?.focus(),
|
|
573
|
-
blur: () => inputRef.value?.blur()
|
|
619
|
+
blur: () => inputRef.value?.blur(),
|
|
620
|
+
open: menuConfig.open,
|
|
621
|
+
close: menuConfig.close
|
|
574
622
|
});
|
|
575
623
|
return (_ctx, _cache) => {
|
|
576
624
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -589,7 +637,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
589
637
|
"is-disabled": props.disabled,
|
|
590
638
|
"is-required": props.required,
|
|
591
639
|
"is-optional": props.optional,
|
|
592
|
-
status: fieldStatus
|
|
640
|
+
status: unref(fieldStatus),
|
|
593
641
|
"status-variant": props.statusVariant,
|
|
594
642
|
width: props.width
|
|
595
643
|
}, {
|
|
@@ -617,8 +665,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
617
665
|
onClick: onFieldClick,
|
|
618
666
|
onFocusin: onFocusIn,
|
|
619
667
|
onFocusout: onFocusOut,
|
|
620
|
-
onPointerenter: _cache[
|
|
621
|
-
onPointerleave: _cache[
|
|
668
|
+
onPointerenter: _cache[0] || (_cache[0] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
|
|
669
|
+
onPointerleave: _cache[1] || (_cache[1] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
|
|
622
670
|
}, [
|
|
623
671
|
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
|
|
624
672
|
createElementVNode("span", {
|
|
@@ -675,23 +723,25 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
675
723
|
role: "combobox",
|
|
676
724
|
autocomplete: "off",
|
|
677
725
|
autocapitalize: "off",
|
|
726
|
+
autocorrect: "off",
|
|
727
|
+
enterkeyhint: "search",
|
|
678
728
|
"data-autofocus": props.hasAutoFocus || void 0,
|
|
679
729
|
placeholder: values.value.length === 0 ? placeholder.value : void 0,
|
|
680
730
|
value: unref(menu).query.value,
|
|
681
|
-
disabled: props.disabled && !focusableDisabled
|
|
682
|
-
readonly: focusableDisabled
|
|
683
|
-
"aria-disabled": focusableDisabled
|
|
684
|
-
"aria-expanded": unref(
|
|
685
|
-
"aria-haspopup": unref(optionGrid).popupKind.value,
|
|
731
|
+
disabled: props.disabled && !unref(focusableDisabled),
|
|
732
|
+
readonly: unref(focusableDisabled) || atMax.value || void 0,
|
|
733
|
+
"aria-disabled": unref(focusableDisabled) ? "true" : void 0,
|
|
734
|
+
"aria-expanded": unref(menuConfig).popupOpen.value,
|
|
735
|
+
"aria-haspopup": unref(menuConfig).isDialog.value ? "dialog" : unref(optionGrid).popupKind.value,
|
|
686
736
|
"aria-controls": listboxId,
|
|
687
737
|
"aria-autocomplete": "list",
|
|
688
|
-
"aria-activedescendant": unref(optionGrid).gridMode.value ? unref(optionGrid).actionGrid.activeDescendant.value : unref(menu).activeId.value ? `${listboxId}-option-${unref(menu).combobox.activeIndex.value}` : void 0,
|
|
689
|
-
"aria-labelledby": labelledBy
|
|
690
|
-
"aria-describedby": describedBy
|
|
738
|
+
"aria-activedescendant": unref(menuConfig).isDialog.value ? void 0 : unref(optionGrid).gridMode.value ? unref(optionGrid).actionGrid.activeDescendant.value : unref(menu).activeId.value ? `${listboxId}-option-${unref(menu).combobox.activeIndex.value}` : void 0,
|
|
739
|
+
"aria-labelledby": unref(labelledBy),
|
|
740
|
+
"aria-describedby": unref(describedBy),
|
|
691
741
|
"aria-required": props.required || void 0,
|
|
692
742
|
"aria-invalid": props.status === "error" ? true : void 0,
|
|
693
743
|
onInput,
|
|
694
|
-
onKeydown:
|
|
744
|
+
onKeydown: onInputKeyDown
|
|
695
745
|
}), null, 16, _hoisted_5),
|
|
696
746
|
renderSlot(_ctx.$slots, "end"),
|
|
697
747
|
showsClear.value && values.value.length > 0 && !props.disabled ? (openBlock(), createElementBlock("button", {
|
|
@@ -700,7 +750,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
700
750
|
class: "astryx-tokenizer-clear",
|
|
701
751
|
"aria-label": unref(messages).tokenizer.clear,
|
|
702
752
|
onClick: clearAll
|
|
703
|
-
}, [..._cache[
|
|
753
|
+
}, [..._cache[2] || (_cache[2] = [createElementVNode("svg", {
|
|
704
754
|
width: "16",
|
|
705
755
|
height: "16",
|
|
706
756
|
viewBox: "0 0 16 16",
|
|
@@ -713,11 +763,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
713
763
|
"stroke-linecap": "round"
|
|
714
764
|
})], -1)])], 8, _hoisted_6)) : createCommentVNode("v-if", true),
|
|
715
765
|
unref(statusIcon) ? (openBlock(), createBlock(resolveDynamicComponent(unref(statusIcon)), normalizeProps(mergeProps({ key: 2 }, unref(statusIconProps))), null, 16)) : createCommentVNode("v-if", true),
|
|
716
|
-
focusableDisabled
|
|
766
|
+
unref(focusableDisabled) && unref(disabledMessage) ? (openBlock(), createElementBlock("span", {
|
|
717
767
|
key: 3,
|
|
718
768
|
id: disabledId,
|
|
719
769
|
class: "astryx-visually-hidden"
|
|
720
|
-
}, toDisplayString(disabledMessage
|
|
770
|
+
}, toDisplayString(unref(disabledMessage)), 1)) : createCommentVNode("v-if", true),
|
|
721
771
|
(openBlock(true), createElementBlock(Fragment, null, renderList(hiddenCarrierItems.value, (item) => {
|
|
722
772
|
return openBlock(), createElementBlock("input", {
|
|
723
773
|
key: `${props.name}-${item.id}`,
|
|
@@ -744,12 +794,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
744
794
|
"status-variant",
|
|
745
795
|
"width"
|
|
746
796
|
]),
|
|
747
|
-
showsDisabledMessage
|
|
797
|
+
unref(showsDisabledMessage) ? (openBlock(), createBlock(_sfc_main$1, {
|
|
748
798
|
key: 0,
|
|
749
799
|
id: disabledTooltipId,
|
|
750
800
|
anchor: anchorRef.value,
|
|
751
801
|
open: unref(disabledTooltip).isOpen.value,
|
|
752
|
-
text: disabledMessage
|
|
802
|
+
text: unref(disabledMessage) ?? "",
|
|
753
803
|
onPointerEnter: unref(disabledTooltip).onTooltipPointerEnter,
|
|
754
804
|
onPointerLeave: unref(disabledTooltip).onTooltipPointerLeave
|
|
755
805
|
}, null, 8, [
|
|
@@ -759,17 +809,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
759
809
|
"onPointerEnter",
|
|
760
810
|
"onPointerLeave"
|
|
761
811
|
])) : createCommentVNode("v-if", true),
|
|
762
|
-
(
|
|
812
|
+
createVNode(_sfc_main$4, {
|
|
763
813
|
id: listboxId,
|
|
764
|
-
ref_key: "
|
|
765
|
-
ref:
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
}, [createVNode(_sfc_main$4, {
|
|
814
|
+
ref_key: "popupRef",
|
|
815
|
+
ref: popupRef,
|
|
816
|
+
"is-open": unref(menuConfig).popupOpen.value,
|
|
817
|
+
config: props.menu,
|
|
818
|
+
label: unref(messages).tokenizer.results,
|
|
819
|
+
grid: unref(optionGrid).gridMode.value,
|
|
820
|
+
placement: unref(anchored).position.value.placement,
|
|
821
|
+
"popup-style": unref(anchored).style.value,
|
|
773
822
|
entries: unref(menu).entries.value.map((entry) => ({
|
|
774
823
|
id: entry.id,
|
|
775
824
|
label: entry.label,
|
|
@@ -780,37 +829,56 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
780
829
|
selected: values.value.some((item) => item.id === entry.item.id)
|
|
781
830
|
})),
|
|
782
831
|
"active-index": unref(menu).combobox.activeIndex.value,
|
|
783
|
-
grid: unref(optionGrid).gridMode.value,
|
|
784
832
|
"action-index": unref(optionGrid).actionGrid.column.value === "action" ? unref(menu).combobox.activeIndex.value : -1,
|
|
785
|
-
status: unref(menu).
|
|
786
|
-
"listbox-id": listboxId,
|
|
833
|
+
status: unref(menu).menuStatus.value,
|
|
787
834
|
"empty-text": emptyText.value,
|
|
788
835
|
"loading-text": unref(messages).tokenizer.loading,
|
|
789
836
|
"error-text": unref(messages).tokenizer.error,
|
|
837
|
+
query: unref(menu).query.value,
|
|
838
|
+
"is-settled": unref(menu).isSettled.value,
|
|
790
839
|
onSelect: onMenuSelect,
|
|
791
|
-
onHighlight: highlight
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
840
|
+
onHighlight: highlight,
|
|
841
|
+
onClose: unref(menuConfig).close,
|
|
842
|
+
onKeydown: unref(menuConfig).closeOnEscape
|
|
843
|
+
}, createSlots({ _: 2 }, [
|
|
844
|
+
_ctx.$slots.item ? {
|
|
845
|
+
name: "item",
|
|
846
|
+
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "item", {
|
|
847
|
+
item: unref(menu).entries.value.find((entry) => entry.id === slotProps.entry.id).item,
|
|
848
|
+
isActive: slotProps.isActive,
|
|
849
|
+
isSelected: slotProps.isSelected
|
|
850
|
+
})]),
|
|
851
|
+
key: "0"
|
|
852
|
+
} : void 0,
|
|
853
|
+
_ctx.$slots.empty ? {
|
|
854
|
+
name: "empty",
|
|
855
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "empty")]),
|
|
856
|
+
key: "1"
|
|
857
|
+
} : void 0,
|
|
858
|
+
_ctx.$slots.menu ? {
|
|
859
|
+
name: "menu",
|
|
860
|
+
fn: withCtx((menuProps) => [renderSlot(_ctx.$slots, "menu", normalizeProps(guardReactiveProps(menuProps)))]),
|
|
861
|
+
key: "2"
|
|
862
|
+
} : void 0
|
|
863
|
+
]), 1032, [
|
|
864
|
+
"is-open",
|
|
865
|
+
"config",
|
|
866
|
+
"label",
|
|
867
|
+
"grid",
|
|
868
|
+
"placement",
|
|
869
|
+
"popup-style",
|
|
805
870
|
"entries",
|
|
806
871
|
"active-index",
|
|
807
|
-
"grid",
|
|
808
872
|
"action-index",
|
|
809
873
|
"status",
|
|
810
874
|
"empty-text",
|
|
811
875
|
"loading-text",
|
|
812
|
-
"error-text"
|
|
813
|
-
|
|
876
|
+
"error-text",
|
|
877
|
+
"query",
|
|
878
|
+
"is-settled",
|
|
879
|
+
"onClose",
|
|
880
|
+
"onKeydown"
|
|
881
|
+
])
|
|
814
882
|
], 64);
|
|
815
883
|
};
|
|
816
884
|
}
|
package/dist/Toolbar/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { T as _default } from "../index-
|
|
1
|
+
import { T as _default } from "../index-B95VIgRl.js";
|
|
2
2
|
import { et as ToolbarOrientation, nt as ToolbarSize, tt as ToolbarProps } from "../useResizable-CJd4JkbJ.js";
|
|
3
3
|
export { _default as Toolbar, type ToolbarOrientation, type ToolbarProps, type ToolbarSize };
|
package/dist/Tooltip/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as useTooltip } from "../useTooltip-
|
|
2
|
-
import { t as _sfc_main } from "../Tooltip-
|
|
1
|
+
import { t as useTooltip } from "../useTooltip-C7gHRGEO.js";
|
|
2
|
+
import { t as _sfc_main } from "../Tooltip-DQipgW1R.js";
|
|
3
3
|
export { _sfc_main as Tooltip, useTooltip };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as _sfc_main$1, t as useTooltip } from "./useTooltip-
|
|
1
|
+
import { i as _sfc_main$1, t as useTooltip } from "./useTooltip-C7gHRGEO.js";
|
|
2
2
|
import { Fragment, Teleport, computed, createElementBlock, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, nextTick, onMounted, onUpdated, openBlock, ref, renderSlot, toDisplayString, unref, useAttrs, watch, withCtx } from "vue";
|
|
3
3
|
import "../styles/tooltip.css";
|
|
4
4
|
//#region src/Tooltip/Tooltip.vue
|
package/dist/TopNav/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-
|
|
1
|
+
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-B95VIgRl.js";
|
|
2
2
|
export { _default as TopNav, _default$1 as TopNavHeading, type TopNavHeadingProps, _default$2 as TopNavItem, type TopNavItemEmits, type TopNavItemProps, _default$3 as TopNavMegaMenu, type TopNavMegaMenuEmits, _default$4 as TopNavMegaMenuFeaturedCard, type TopNavMegaMenuFeaturedCardProps, _default$5 as TopNavMegaMenuItem, type TopNavMegaMenuItemProps, type TopNavMegaMenuProps, _default$6 as TopNavMenu, type TopNavMenuEmits, type TopNavMenuItem, type TopNavMenuProps, type TopNavProps };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as TypeaheadSize, i as TypeaheadItemProps, l as TypeaheadSlots, r as TypeaheadEmits, s as TypeaheadProps, t as BaseTypeaheadProps, u as TypeaheadStatus } from "../types-C1ydeFiu.js";
|
|
2
|
+
import { n as _default$1, r as _default, t as _default$2 } from "../index-DGXCnzOL.js";
|
|
2
3
|
export { _default as BaseTypeahead, type BaseTypeaheadProps, _default$1 as Typeahead, type TypeaheadEmits, _default$2 as TypeaheadItem, type TypeaheadItemProps, type TypeaheadProps, type TypeaheadSize, type TypeaheadSlots, type TypeaheadStatus };
|
package/dist/Typeahead/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead
|
|
1
|
+
import { i as _sfc_main$2 } from "../useTypeaheadMenuConfig--4f7jR6G.js";
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead--kEp21ut.js";
|
|
3
3
|
export { _sfc_main as BaseTypeahead, _sfc_main$1 as Typeahead, _sfc_main$2 as TypeaheadItem };
|