@astryx-vue/core 0.21.0 → 0.22.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-0UUojm_Q.js → AlertDialog-VD9PadlM.js} +4 -4
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-6rvfUu8p.js → AppShell-C4XGguw0.js} +19 -4
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CXpGcula.js → Avatar-CAweS1WY.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-fmkd6nXw.js → Banner-DnK7bKAb.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-DqAuZBgA.js → BottomSheet-C4OU3mJT.js} +3 -3
- package/dist/{BottomSheet-DrKtyVVo.js → BottomSheet-CM0-eaUF.js} +4 -4
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-uaApwhFB.js → Breadcrumbs-DZAgtC9c.js} +4 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-CQAjaQa0.js → Button-Blnc0yB3.js} +3 -3
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-C3O9Uavl.js → Carousel-CB4Iap-B.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-CmjK6fBy.js → Chat-DjJPQ9bX.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-D6ow4VuS.js → CheckboxInput-CGTPmOHs.js} +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CPaRsgRQ.js → CheckboxList-CGzHkA95.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-DMG9rLQN.js → CodeBlock-CwQCMSKA.js} +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CmOytlWq.js → CommandPalette-DBOETNGM.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-mfEoIHtI.js → ComplexSelector-CNBH2t6W.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-DDvOR25x.js → ContextMenu-CUwAPrVP.js} +5 -5
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-pDh6H44y.js → DateInput-BQ-3bvV5.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-CQDfoXX5.js → DateRangeInput-DFXz4vNX.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CZjere9H.js → DateTimeInput-BHO4nXKW.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BRlZ7n83.js → Dialog-BCPhWMxL.js} +3 -3
- package/dist/{Dialog-XIB0KZ-m.js → Dialog-Dx6zuttb.js} +1 -1
- package/dist/{DialogHeader-DF6jFDq3.js → DialogHeader-C9fp2Rti.js} +2 -2
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-BYUELPLs.js → Drawer--2vLSKY_.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-DY3yFENC.js → DropdownMenu-BImEVieZ.js} +4 -4
- package/dist/{DropdownMenu-BBXFl5Mu.js → DropdownMenu-CskkQAAz.js} +7 -7
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-cs-L9Ovg.js → EmptyState-Dq3NWNnG.js} +3 -3
- package/dist/Field/index.js +3 -3
- package/dist/{Field-BQ3q-K5D.js → Field-DsucLkyQ.js} +1 -1
- package/dist/{FieldInfoTip-MgGzYEq0.js → FieldInfoTip-1zW3QTQG.js} +1 -1
- package/dist/{FieldLabel-yH6KAVyU.js → FieldLabel-D9uFPtXs.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-R8CqJrA5.js → FileInput-DLtHinlh.js} +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-DkCkHEG-.js → Heading-DBBChghq.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-D0KqUCXI.js → HoverCard-BW-bOUZI.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DR9_545-.js → IconButton-CIUbkA8_.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BfgtAgck.js → InfoTip-C71T8lv_.js} +1 -1
- package/dist/{InputClearButton-DaFtlyKR.js → InputClearButton-h0BxBXu1.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-1CLPKULR.js → InputGroup-DHPTru5v.js} +1 -1
- package/dist/{LayerContentBoundary-lxUfJk2v.js → LayerContentBoundary-DxeAFxNJ.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DyaSfJix.js → Lightbox-B3WP06Qt.js} +3 -3
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-JVAfvoxT.js → Link-CQK9d_Yf.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DtnPfhP0.js → Markdown-BVXFWJT0.js} +3 -3
- package/dist/MobileNav/index.js +2 -1
- package/dist/{MobileNavToggle-CPNsCIFR.js → MobileNavToggle-DGZPwsf9.js} +6 -8
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DQjrchg5.js → MoreMenu-Q_KpDTNB.js} +4 -4
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-sJ-LUrze.js → MultiSelector-CzGsdjcl.js} +7 -7
- package/dist/{NavDisclosure-CE79mxpa.js → NavDisclosure-DIYayUrP.js} +13 -4
- package/dist/{NavHeadingSurface-EsNdvhx7.js → NavHeadingSurface-bFcFpeMI.js} +15 -14
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-_Mo1yWZC.js → NavMenu-DYvMKPU_.js} +8 -6
- package/dist/{NavMenuItem-CDHKFOKi.js → NavMenuItem-Ccix-agv.js} +7 -4
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-Bpc2c39W.js → NumberInput-DTksMfSU.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-Dx_Iw8xd.js → OverflowList-DKM7TeUs.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-D7sbjDKw.js → Pagination-B-O21ut1.js} +271 -135
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Bhi0b1x0.js → Popover-BtfsoxXC.js} +6 -6
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-B13bgXSs.js → PowerSearch-CniqThU7.js} +16 -16
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-BtEaKOhz.js → ProgressBar-DOusesCL.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CFqN0t92.js → RadioGroup-CRwMwMw4.js} +2 -2
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DVNkGcpc.js → RadioList-PUlENMq5.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-sGqS3qNy.js → Selector-Qs1rFiI6.js} +6 -6
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Dw9MydVe.js → SideNav-BUfUwE2P.js} +11 -6
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-BkVTjzrx.js → Slider-BbiQbyie.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-D4S8b-FU.js → StatusDot-DhfcDBE7.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DU-MRs1W.js → Switch-CMK5bICl.js} +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-CmB55DUS.js → TabList-Bd3h7Nj3.js} +61 -22
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-BUh0OjeU.js → Table-DN9mo-cQ.js} +11 -11
- package/dist/Text/index.js +1 -1
- package/dist/{Text-BBQUFWb_.js → Text-Dez23ltM.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BVppzw5n.js → TextArea-BsGUOyDg.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-CmxKsaUt.js → TextInput-DZi0EMh-.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-_KR0IRj-.js → Thumbnail-CsmF1HTP.js} +2 -2
- package/dist/{TimeField-Dbr2MOqX.js → TimeField-DqOPj5s2.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-hzZ3tuAw.js → TimeInput-CA3kXBWB.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-UnFtEgGb.js → Timer-vubjQ88x.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-DiPZTa4W.js → Timestamp-Cz_0Ofj4.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-kV5KuJdD.js → Toast-DhJNtBjT.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DZ3n-izd.js → ToggleButton-BR_qVBEt.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-e8BisAF8.js → Tokenizer-C3pXgLmC.js} +5 -5
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-CPyoc4cM.js → Tooltip-BUHvOnE1.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-OOGD2uOp.js → TopNav-klsRhS-I.js} +168 -61
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead--CFFYPMl.js → Typeahead-BaPqX3Ey.js} +5 -5
- package/dist/{assertOptions-DLEhkmM-.js → assertOptions-DF9pum-3.js} +1 -1
- package/dist/closeOnActivate-D1KgKWwm.js +13 -0
- package/dist/composables/index.js +11 -11
- package/dist/{composables-DSx0MWv0.js → composables-BDWdSCwe.js} +2 -2
- package/dist/context-D8MAZio1.js +7 -0
- package/dist/{focusReturn-CiSQAp52.js → focusReturn-CsEp47Wa.js} +1 -1
- package/dist/{index-BOzyKBg8.d.ts → index--CtH4lQr.d.ts} +5 -5
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-DFLPv9io.d.ts → index-BOCb89V9.d.ts} +2 -2
- package/dist/{index-B8K2sDmO.d.ts → index-BhxqUt3y.d.ts} +2 -2
- package/dist/{index-CNzSg1OM.d.ts → index-BkxWKIV_.d.ts} +7 -7
- package/dist/{index-PffxihMx.d.ts → index-BmXk_doE.d.ts} +3 -3
- package/dist/{index-DGXCnzOL.d.ts → index-BrMtj1lT.d.ts} +4 -4
- package/dist/{index-BJputYk6.d.ts → index-BvW0tiei.d.ts} +4 -4
- package/dist/{index-ChqMaV6N.d.ts → index-Bzi3A980.d.ts} +1 -1
- package/dist/{index-51CkIKnI.d.ts → index-C93nwgTW.d.ts} +1 -1
- package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
- package/dist/{index-Cm36VS1A.d.ts → index-C9uW39Mj.d.ts} +1 -1
- package/dist/{index-DSoQE84m.d.ts → index-CAKT4Kkz.d.ts} +64 -50
- package/dist/{index-DB1EP38S.d.ts → index-CG3fD4hw.d.ts} +2 -2
- package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
- package/dist/{index-B-3EGjfQ.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
- package/dist/{index-BZNoML0r.d.ts → index-D0MA9x_i.d.ts} +9 -9
- package/dist/{index-FeZXsFO-.d.ts → index-DDrL_-hJ.d.ts} +1 -1
- package/dist/{index-Dge6tyPE.d.ts → index-DIw5D3zj.d.ts} +2 -2
- package/dist/{index-BL4mH8aK.d.ts → index-DMN_JVEt.d.ts} +1 -1
- package/dist/{index-MvrDMqnQ.d.ts → index-DYabo8TI.d.ts} +1 -1
- package/dist/{index-Cb-rvc1W.d.ts → index-DofC9Rll.d.ts} +1 -1
- package/dist/{index-fz8XqpNd.d.ts → index-DogWVRJi.d.ts} +15 -2
- package/dist/{index-B6svLvfZ.d.ts → index-Qdbssopn.d.ts} +1 -1
- package/dist/{index-BaFphczL.d.ts → index-YKCx03zD.d.ts} +2 -2
- package/dist/{index-DFTrqCmp.d.ts → index-rzkX36wM.d.ts} +3 -3
- package/dist/index.d.ts +29 -29
- package/dist/index.js +85 -85
- package/dist/{interactionModality-JFDvbtbb.js → interactionModality-CyU67ucP.js} +7 -2
- package/dist/{layerFocusReturn-DJ5mlqYj.js → layerFocusReturn-BeCsk_4F.js} +1 -1
- package/dist/{stillPointerGate-BTISispN.js → stillPointerGate-BX4vr5M-.js} +1 -1
- package/dist/{tooltipFocusRules-DPsyi9L5.js → tooltipFocusRules-BnZ1zwAm.js} +2 -2
- package/dist/{tooltipTriggerRules-Dazz57_v.js → tooltipTriggerRules-BLBEkBcK.js} +1 -1
- package/dist/{useCombobox-DTDT9dRx.js → useCombobox-DcBbaWYj.js} +1 -1
- package/dist/{useDismiss-N66C48zd.js → useDismiss-C1dyveme.js} +1 -1
- package/dist/{useFocusTrap-DzspshsM.js → useFocusTrap-DAKJJP0Z.js} +2 -2
- package/dist/{useInputStatusIcon-D1WRYTOZ.js → useInputStatusIcon-BDWAijXe.js} +1 -1
- package/dist/{useMenuPress-Cm7LVmHJ.js → useMenuPress-3203ryBY.js} +2 -2
- package/dist/{useResizable-C9FtmPir.js → useResizable-wZU54yCO.js} +1 -1
- package/dist/{useRestoreFocus-CEbfcwWb.js → useRestoreFocus-v8-FFcQQ.js} +2 -2
- package/dist/{useTooltip-BfOruqIL.js → useTooltip-0_wOd0e5.js} +5 -5
- package/dist/{useTouchTriggerInternal-TQnpDkL0.js → useTouchTriggerInternal-DwzthF8T.js} +1 -1
- package/dist/{useTruncationTooltip-CbzoB-1m.js → useTruncationTooltip-BDIe7-ya.js} +4 -4
- package/dist/{useTypeahead-BGmDZyPB.js → useTypeahead-BlqvS9x9.js} +1 -1
- package/dist/{useTypeaheadMenuConfig-BZaduAP4.js → useTypeaheadMenuConfig-CIf9Ep57.js} +2 -2
- package/package.json +1 -1
- package/styles/app-shell.css +36 -0
- package/styles/breadcrumbs.css +1 -0
- package/styles/nav-item.css +9 -3
- package/styles/nav-menu.css +3 -0
- package/styles/pagination.css +2 -2
- package/styles/tab-list.css +7 -3
- package/styles/tab-menu.css +1 -0
- package/styles/top-nav.css +141 -11
- package/dist/{index-5FGt4HsB.d.ts → index-BqhgeAT4.d.ts} +1 -1
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
1
2
|
import { t as useListFocus } from "./useListFocus-CkHfsZp0.js";
|
|
3
|
+
import { t as focusForLastInput } from "./focusReturn-CsEp47Wa.js";
|
|
2
4
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
3
5
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
6
|
+
import { t as useFocusAcrossSwap } from "./focusAcrossSwap-Casww_IY.js";
|
|
7
|
+
import { i as safeNavHref } from "./link-DuuA2eCL.js";
|
|
4
8
|
import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
|
|
5
9
|
import { t as paginationMessages } from "./pagination-CxZBYsPu.js";
|
|
6
|
-
import { t as _sfc_main$1 } from "./Selector-
|
|
7
|
-
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, vShow, watch, withDirectives, withKeys } from "vue";
|
|
10
|
+
import { t as _sfc_main$1 } from "./Selector-Qs1rFiI6.js";
|
|
11
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, toValue, unref, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
8
12
|
import "../styles/pagination.css";
|
|
9
13
|
/**
|
|
10
14
|
* 按容器宽度决定分页怎么排。
|
|
@@ -107,6 +111,87 @@ function usePagination(options) {
|
|
|
107
111
|
};
|
|
108
112
|
}
|
|
109
113
|
//#endregion
|
|
114
|
+
//#region src/Pagination/usePaginationLinks.ts
|
|
115
|
+
/** 点击带修饰键,或链接要在别处打开:这一页在本页没有换。 */
|
|
116
|
+
function opensElsewhere(event) {
|
|
117
|
+
if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return true;
|
|
118
|
+
const target = event.currentTarget?.target;
|
|
119
|
+
return target != null && target !== "" && target.toLowerCase() !== "_self";
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* 页码、上一页、下一页、首页、末页控件用 `getPageHref` 变成链接。
|
|
123
|
+
* 没有地址的控件(边界上、禁用、地址被导航规则拒绝)仍是按钮。
|
|
124
|
+
*/
|
|
125
|
+
function usePaginationLinks(options) {
|
|
126
|
+
const linkComponent = useLinkComponent();
|
|
127
|
+
/** 点击发生时的页码。浏览器跟随链接之前,上一页和下一页的地址不能先跳到下一页。 */
|
|
128
|
+
const heldPage = ref(null);
|
|
129
|
+
function currentPage() {
|
|
130
|
+
return heldPage.value ?? options.page.value;
|
|
131
|
+
}
|
|
132
|
+
function targetOf(kind) {
|
|
133
|
+
const from = currentPage();
|
|
134
|
+
const stride = options.step.value;
|
|
135
|
+
switch (kind) {
|
|
136
|
+
case "first": return 1;
|
|
137
|
+
case "last": return options.totalPages.value;
|
|
138
|
+
case "previous": return Math.max(1, from - stride);
|
|
139
|
+
case "next": {
|
|
140
|
+
const target = from + stride;
|
|
141
|
+
return options.isCursor.value ? target : Math.min(target, options.totalPages.value);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function hrefOf(page) {
|
|
146
|
+
const getPageHref = options.getPageHref();
|
|
147
|
+
if (getPageHref == null) return void 0;
|
|
148
|
+
return safeNavHref(getPageHref(page, options.pageSize()));
|
|
149
|
+
}
|
|
150
|
+
function controlHref(kind) {
|
|
151
|
+
if (!options.isAvailable(kind)) return void 0;
|
|
152
|
+
return hrefOf(targetOf(kind));
|
|
153
|
+
}
|
|
154
|
+
function pageHref(page, isDisabled) {
|
|
155
|
+
return isDisabled ? void 0 : hrefOf(page);
|
|
156
|
+
}
|
|
157
|
+
const custom = () => options.as() ?? linkComponent.value;
|
|
158
|
+
function root(href) {
|
|
159
|
+
if (href == null) return "button";
|
|
160
|
+
const component = custom();
|
|
161
|
+
return component == null ? "a" : toRaw(component);
|
|
162
|
+
}
|
|
163
|
+
/** 链接用 `href`(路由链接组件另给 `to`),按钮用 `type`。 */
|
|
164
|
+
function attrs(href) {
|
|
165
|
+
if (href == null) return { type: "button" };
|
|
166
|
+
return custom() == null ? { href } : {
|
|
167
|
+
href,
|
|
168
|
+
to: href
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* 链接被点击:记下点击时的页码,到这次点击结束为止地址都按它算;
|
|
173
|
+
* 点击要在别处打开时本页不换,否则照按钮那样换页,浏览器同时跟随链接。
|
|
174
|
+
*/
|
|
175
|
+
function activate(event, href, change) {
|
|
176
|
+
if (href == null) {
|
|
177
|
+
if (options.getPageHref() == null) change();
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
heldPage.value = options.page.value;
|
|
181
|
+
setTimeout(() => {
|
|
182
|
+
heldPage.value = null;
|
|
183
|
+
}, 0);
|
|
184
|
+
if (!opensElsewhere(event)) change();
|
|
185
|
+
}
|
|
186
|
+
return {
|
|
187
|
+
activate,
|
|
188
|
+
attrs,
|
|
189
|
+
controlHref,
|
|
190
|
+
pageHref,
|
|
191
|
+
root
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
//#endregion
|
|
110
195
|
//#region src/Pagination/Pagination.vue
|
|
111
196
|
const _hoisted_1 = [
|
|
112
197
|
"data-density",
|
|
@@ -119,77 +204,59 @@ const _hoisted_2 = {
|
|
|
119
204
|
key: 0,
|
|
120
205
|
class: "astryx-pagination-total"
|
|
121
206
|
};
|
|
122
|
-
const _hoisted_3 =
|
|
123
|
-
const _hoisted_4 =
|
|
124
|
-
const _hoisted_5 = [
|
|
125
|
-
"data-first",
|
|
126
|
-
"disabled",
|
|
127
|
-
"aria-label"
|
|
128
|
-
];
|
|
129
|
-
const _hoisted_6 = {
|
|
207
|
+
const _hoisted_3 = ["data-variant", "data-size"];
|
|
208
|
+
const _hoisted_4 = {
|
|
130
209
|
class: "astryx-pagination-label",
|
|
131
210
|
"aria-hidden": "true"
|
|
132
211
|
};
|
|
133
|
-
const
|
|
212
|
+
const _hoisted_5 = {
|
|
134
213
|
key: 1,
|
|
135
214
|
class: "astryx-pagination-input"
|
|
136
215
|
};
|
|
137
|
-
const
|
|
216
|
+
const _hoisted_6 = {
|
|
138
217
|
class: "astryx-pagination-input-label",
|
|
139
218
|
"aria-hidden": "true"
|
|
140
219
|
};
|
|
141
|
-
const
|
|
220
|
+
const _hoisted_7 = [
|
|
142
221
|
"max",
|
|
143
222
|
"value",
|
|
144
223
|
"disabled",
|
|
145
224
|
"aria-label"
|
|
146
225
|
];
|
|
147
|
-
const
|
|
226
|
+
const _hoisted_8 = {
|
|
148
227
|
key: 0,
|
|
149
228
|
class: "astryx-pagination-input-total"
|
|
150
229
|
};
|
|
151
|
-
const
|
|
230
|
+
const _hoisted_9 = {
|
|
152
231
|
key: 2,
|
|
153
232
|
class: "astryx-pagination-count"
|
|
154
233
|
};
|
|
155
|
-
const
|
|
234
|
+
const _hoisted_10 = {
|
|
156
235
|
key: 3,
|
|
157
236
|
class: "astryx-pagination-count"
|
|
158
237
|
};
|
|
159
|
-
const
|
|
160
|
-
const
|
|
238
|
+
const _hoisted_11 = ["aria-label"];
|
|
239
|
+
const _hoisted_12 = [
|
|
161
240
|
"data-page",
|
|
162
241
|
"tabindex",
|
|
163
242
|
"aria-disabled",
|
|
164
|
-
"aria-
|
|
243
|
+
"aria-checked",
|
|
165
244
|
"aria-label"
|
|
166
245
|
];
|
|
167
|
-
const
|
|
168
|
-
const
|
|
246
|
+
const _hoisted_13 = ["aria-hidden"];
|
|
247
|
+
const _hoisted_14 = {
|
|
169
248
|
key: 6,
|
|
170
249
|
class: "astryx-pagination-pages"
|
|
171
250
|
};
|
|
172
|
-
const
|
|
173
|
-
"disabled",
|
|
174
|
-
"aria-label",
|
|
175
|
-
"aria-current",
|
|
176
|
-
"onClick"
|
|
177
|
-
];
|
|
178
|
-
const _hoisted_18 = [
|
|
179
|
-
"data-last",
|
|
180
|
-
"disabled",
|
|
181
|
-
"aria-label"
|
|
182
|
-
];
|
|
183
|
-
const _hoisted_19 = {
|
|
251
|
+
const _hoisted_15 = {
|
|
184
252
|
class: "astryx-pagination-label",
|
|
185
253
|
"aria-hidden": "true"
|
|
186
254
|
};
|
|
187
|
-
const
|
|
188
|
-
const _hoisted_21 = {
|
|
255
|
+
const _hoisted_16 = {
|
|
189
256
|
key: 8,
|
|
190
257
|
class: "astryx-pagination-size-changer"
|
|
191
258
|
};
|
|
192
|
-
const
|
|
259
|
+
const _hoisted_17 = { class: "astryx-pagination-size-label" };
|
|
193
260
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
194
261
|
name: "AstryxPagination",
|
|
195
262
|
__name: "Pagination",
|
|
@@ -207,6 +274,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
207
274
|
type: [Boolean, null],
|
|
208
275
|
default: null
|
|
209
276
|
},
|
|
277
|
+
getPageHref: {},
|
|
278
|
+
as: {},
|
|
210
279
|
changeAction: {},
|
|
211
280
|
size: { default: "md" },
|
|
212
281
|
showSizeChanger: {
|
|
@@ -310,6 +379,39 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
310
379
|
pending.run(1);
|
|
311
380
|
}
|
|
312
381
|
});
|
|
382
|
+
const instance = getCurrentInstance();
|
|
383
|
+
function setsPageSize() {
|
|
384
|
+
const given = instance?.vnode.props;
|
|
385
|
+
return given != null && [
|
|
386
|
+
"pageSize",
|
|
387
|
+
"page-size",
|
|
388
|
+
"pageSizeOptions",
|
|
389
|
+
"page-size-options"
|
|
390
|
+
].some((key) => key in given);
|
|
391
|
+
}
|
|
392
|
+
const links = usePaginationLinks({
|
|
393
|
+
getPageHref: () => props.getPageHref,
|
|
394
|
+
as: () => props.as,
|
|
395
|
+
page: pageRef,
|
|
396
|
+
pageSize: () => setsPageSize() ? pageSizeRef.value : void 0,
|
|
397
|
+
step: stride,
|
|
398
|
+
totalPages: pagination.totalPages,
|
|
399
|
+
isCursor: pagination.isCursor,
|
|
400
|
+
isAvailable: (kind) => {
|
|
401
|
+
if (disabledControl.value) return false;
|
|
402
|
+
if (kind === "first" || kind === "previous") return pagination.canPrevious.value;
|
|
403
|
+
if (kind === "next") return pagination.canNext.value;
|
|
404
|
+
return !pagination.isCursor.value && pagination.canNext.value;
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
const firstHref = computed(() => links.controlHref("first"));
|
|
408
|
+
const previousHref = computed(() => links.controlHref("previous"));
|
|
409
|
+
const nextHref = computed(() => links.controlHref("next"));
|
|
410
|
+
const lastHref = computed(() => links.controlHref("last"));
|
|
411
|
+
useFocusAcrossSwap(() => root.value, ".astryx-pagination-first", () => firstHref.value != null);
|
|
412
|
+
useFocusAcrossSwap(() => root.value, ".astryx-pagination-prev", () => previousHref.value != null);
|
|
413
|
+
useFocusAcrossSwap(() => root.value, ".astryx-pagination-next", () => nextHref.value != null);
|
|
414
|
+
useFocusAcrossSwap(() => root.value, ".astryx-pagination-last", () => lastHref.value != null);
|
|
313
415
|
function syncFromProps() {
|
|
314
416
|
pageRef.value = props.page;
|
|
315
417
|
pageSizeRef.value = props.pageSize;
|
|
@@ -354,6 +456,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
354
456
|
function isEllipsis(page) {
|
|
355
457
|
return page === -1;
|
|
356
458
|
}
|
|
459
|
+
function pageLinkHref(page) {
|
|
460
|
+
return isEllipsis(page) ? void 0 : links.pageHref(page, disabledControl.value);
|
|
461
|
+
}
|
|
357
462
|
function onPageClick(page) {
|
|
358
463
|
if (!disabledControl.value && !isEllipsis(page)) pagination.goto(page);
|
|
359
464
|
}
|
|
@@ -374,7 +479,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
374
479
|
if (Number.isInteger(page) && page > 0 && page !== pageRef.value) onPageClick(page);
|
|
375
480
|
}
|
|
376
481
|
function onDotClick(event) {
|
|
377
|
-
event.currentTarget
|
|
482
|
+
focusForLastInput(event.currentTarget);
|
|
378
483
|
consumeWhileDisabled(event, disabledControl.value);
|
|
379
484
|
}
|
|
380
485
|
return (_ctx, _cache) => {
|
|
@@ -395,49 +500,60 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
395
500
|
total: totalRef.value,
|
|
396
501
|
from: fromIndex.value,
|
|
397
502
|
to: toIndex.value
|
|
398
|
-
}, () => [createTextVNode(toDisplayString(unref(messages).pagination.total(totalRef.value, fromIndex.value, toIndex.value)), 1)])])) : createCommentVNode("v-if", true), createElementVNode("div",
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
503
|
+
}, () => [createTextVNode(toDisplayString(unref(messages).pagination.total(totalRef.value, fromIndex.value, toIndex.value)), 1)])])) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
504
|
+
class: "astryx-pagination-content astryx-pagination-list",
|
|
505
|
+
"data-variant": variant.value,
|
|
506
|
+
"data-size": props.size
|
|
507
|
+
}, [
|
|
508
|
+
showFirstLast.value ? (openBlock(), createBlock(resolveDynamicComponent(unref(links).root(firstHref.value)), mergeProps({ key: 0 }, unref(links).attrs(firstHref.value), {
|
|
509
|
+
class: "astryx-pagination-button astryx-pagination-item astryx-pagination-first",
|
|
403
510
|
"data-first": "first",
|
|
404
|
-
disabled: disabledControl.value || !unref(pagination).canPrevious.value,
|
|
511
|
+
disabled: firstHref.value ? void 0 : disabledControl.value || !unref(pagination).canPrevious.value,
|
|
405
512
|
"aria-label": unref(messages).pagination.first,
|
|
406
|
-
onClick: _cache[0] || (_cache[0] = (
|
|
407
|
-
},
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
513
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(links).activate($event, firstHref.value, unref(pagination).first))
|
|
514
|
+
}), {
|
|
515
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [createElementVNode("svg", {
|
|
516
|
+
width: "16",
|
|
517
|
+
height: "16",
|
|
518
|
+
viewBox: "0 0 16 16",
|
|
519
|
+
fill: "none",
|
|
520
|
+
"aria-hidden": "true"
|
|
521
|
+
}, [createElementVNode("path", {
|
|
522
|
+
d: "M11 12L7 8L11 4M7 12L3 8L7 4",
|
|
523
|
+
stroke: "currentColor",
|
|
524
|
+
"stroke-width": "1.5",
|
|
525
|
+
"stroke-linecap": "round",
|
|
526
|
+
"stroke-linejoin": "round"
|
|
527
|
+
})], -1)])]),
|
|
528
|
+
_: 1
|
|
529
|
+
}, 16, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
|
|
530
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(links).root(previousHref.value)), mergeProps(unref(links).attrs(previousHref.value), {
|
|
531
|
+
class: "astryx-pagination-button astryx-pagination-item astryx-pagination-prev",
|
|
423
532
|
"data-first": showFirstLast.value ? void 0 : "first",
|
|
424
|
-
disabled: disabledControl.value || !unref(pagination).canPrevious.value,
|
|
533
|
+
disabled: previousHref.value ? void 0 : disabledControl.value || !unref(pagination).canPrevious.value,
|
|
425
534
|
"aria-label": resolvedPrevLabel.value,
|
|
426
|
-
onClick: _cache[1] || (_cache[1] = (
|
|
427
|
-
},
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
535
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(links).activate($event, previousHref.value, unref(pagination).previous))
|
|
536
|
+
}), {
|
|
537
|
+
default: withCtx(() => [_cache[9] || (_cache[9] = createElementVNode("svg", {
|
|
538
|
+
width: "16",
|
|
539
|
+
height: "16",
|
|
540
|
+
viewBox: "0 0 16 16",
|
|
541
|
+
fill: "none"
|
|
542
|
+
}, [createElementVNode("path", {
|
|
543
|
+
d: "M10 12L6 8L10 4",
|
|
544
|
+
stroke: "currentColor",
|
|
545
|
+
"stroke-width": "1.5",
|
|
546
|
+
"stroke-linecap": "round",
|
|
547
|
+
"stroke-linejoin": "round"
|
|
548
|
+
})], -1)), createElementVNode("span", _hoisted_4, toDisplayString(resolvedPrevLabel.value), 1)]),
|
|
549
|
+
_: 1
|
|
550
|
+
}, 16, [
|
|
551
|
+
"data-first",
|
|
552
|
+
"disabled",
|
|
553
|
+
"aria-label"
|
|
554
|
+
])),
|
|
555
|
+
variant.value === "input" ? (openBlock(), createElementBlock("span", _hoisted_5, [
|
|
556
|
+
createElementVNode("span", _hoisted_6, toDisplayString(resolvedPageLabel.value), 1),
|
|
441
557
|
createElementVNode("input", {
|
|
442
558
|
class: "astryx-pagination-input-field",
|
|
443
559
|
type: "number",
|
|
@@ -449,101 +565,121 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
449
565
|
"aria-label": unref(messages).pagination.goToPage,
|
|
450
566
|
onChange: onInputCommit,
|
|
451
567
|
onKeydown: withKeys(onInputCommit, ["enter"])
|
|
452
|
-
}, null, 40,
|
|
453
|
-
!unref(pagination).isCursor.value ? (openBlock(), createElementBlock("span",
|
|
454
|
-
])) : variant.value === "count" && !unref(pagination).isCursor.value ? (openBlock(), createElementBlock("span",
|
|
568
|
+
}, null, 40, _hoisted_7),
|
|
569
|
+
!unref(pagination).isCursor.value ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(messages).pagination.ofTotal(unref(pagination).totalPages.value)), 1)) : createCommentVNode("v-if", true)
|
|
570
|
+
])) : variant.value === "count" && !unref(pagination).isCursor.value ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(unref(messages).pagination.total(totalRef.value, fromIndex.value, toIndex.value)), 1)) : variant.value === "compact" && !unref(pagination).isCursor.value ? (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(unref(messages).pagination.pageOf(pageRef.value, unref(pagination).totalPages.value)), 1)) : variant.value === "dots" && !unref(pagination).isCursor.value ? (openBlock(), createElementBlock("div", {
|
|
455
571
|
key: 4,
|
|
456
572
|
ref: setDotsList,
|
|
457
573
|
class: "astryx-pagination-dots",
|
|
458
|
-
role: "
|
|
574
|
+
role: "radiogroup",
|
|
459
575
|
"aria-label": unref(messages).pagination.nav,
|
|
460
576
|
onFocusin: onDotsFocus,
|
|
461
|
-
onKeydown: _cache[
|
|
577
|
+
onKeydown: _cache[4] || (_cache[4] = (...args) => unref(dotsFocus).handleKeyDown && unref(dotsFocus).handleKeyDown(...args))
|
|
462
578
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pagination).totalPages.value, (dotPage) => {
|
|
463
579
|
return openBlock(), createElementBlock("button", {
|
|
464
580
|
key: dotPage,
|
|
465
581
|
type: "button",
|
|
582
|
+
role: "radio",
|
|
466
583
|
class: normalizeClass(["astryx-pagination-dot", { "is-active": dotPage === pageRef.value }]),
|
|
467
584
|
"data-page": dotPage,
|
|
468
585
|
tabindex: dotPage === pageRef.value ? 0 : -1,
|
|
469
586
|
"aria-disabled": disabledControl.value || void 0,
|
|
470
|
-
"aria-
|
|
587
|
+
"aria-checked": dotPage === pageRef.value,
|
|
471
588
|
"aria-label": unref(messages).pagination.page(dotPage),
|
|
589
|
+
onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"])),
|
|
472
590
|
onClick: onDotClick,
|
|
473
|
-
onKeydown: _cache[
|
|
474
|
-
}, null, 42,
|
|
475
|
-
}), 128))], 40,
|
|
591
|
+
onKeydown: _cache[3] || (_cache[3] = ($event) => unref(consumeWhileDisabled)($event, disabledControl.value))
|
|
592
|
+
}, null, 42, _hoisted_12);
|
|
593
|
+
}), 128))], 40, _hoisted_11)) : createCommentVNode("v-if", true),
|
|
476
594
|
variant.value === "pages" && !unref(pagination).isCursor.value ? (openBlock(), createElementBlock("span", {
|
|
477
595
|
key: 5,
|
|
478
596
|
class: "astryx-pagination-compact",
|
|
479
597
|
"aria-hidden": density.value === "minimal" ? void 0 : true
|
|
480
|
-
}, toDisplayString(unref(messages).pagination.compact(pageRef.value, unref(pagination).totalPages.value)), 9,
|
|
481
|
-
variant.value === "pages" && !unref(pagination).isCursor.value ? withDirectives((openBlock(), createElementBlock("div",
|
|
482
|
-
return openBlock(),
|
|
483
|
-
|
|
484
|
-
type: "button",
|
|
485
|
-
class: normalizeClass(["astryx-pagination-page", {
|
|
598
|
+
}, toDisplayString(unref(messages).pagination.compact(pageRef.value, unref(pagination).totalPages.value)), 9, _hoisted_13)) : createCommentVNode("v-if", true),
|
|
599
|
+
variant.value === "pages" && !unref(pagination).isCursor.value ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pagination).pageNumbers.value, (page, index) => {
|
|
600
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(links).root(pageLinkHref(page))), mergeProps({ key: index }, { ref_for: true }, unref(links).attrs(pageLinkHref(page)), {
|
|
601
|
+
class: ["astryx-pagination-page", {
|
|
486
602
|
"is-active": page === pageRef.value,
|
|
487
|
-
"is-ellipsis": isEllipsis(page)
|
|
488
|
-
|
|
489
|
-
|
|
603
|
+
"is-ellipsis": isEllipsis(page),
|
|
604
|
+
"astryx-pagination-item": !isEllipsis(page),
|
|
605
|
+
"astryx-pagination-ellipsis": isEllipsis(page)
|
|
606
|
+
}],
|
|
607
|
+
"data-selected": !isEllipsis(page) && page === pageRef.value ? "selected" : void 0,
|
|
608
|
+
disabled: pageLinkHref(page) ? void 0 : disabledControl.value || isEllipsis(page),
|
|
490
609
|
"aria-label": isEllipsis(page) ? unref(messages).pagination.more : unref(messages).pagination.page(page),
|
|
491
610
|
"aria-current": page === pageRef.value ? "page" : void 0,
|
|
492
|
-
onClick: ($event) => onPageClick(page)
|
|
493
|
-
}
|
|
611
|
+
onClick: ($event) => unref(links).activate($event, pageLinkHref(page), () => onPageClick(page))
|
|
612
|
+
}), {
|
|
613
|
+
default: withCtx(() => [createTextVNode(toDisplayString(isEllipsis(page) ? "..." : page), 1)]),
|
|
614
|
+
_: 2
|
|
615
|
+
}, 1040, [
|
|
616
|
+
"class",
|
|
617
|
+
"data-selected",
|
|
618
|
+
"disabled",
|
|
619
|
+
"aria-label",
|
|
620
|
+
"aria-current",
|
|
621
|
+
"onClick"
|
|
622
|
+
]);
|
|
494
623
|
}), 128))], 512)), [[vShow, density.value !== "minimal"]]) : createCommentVNode("v-if", true),
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
class: "astryx-pagination-button astryx-pagination-next",
|
|
624
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(links).root(nextHref.value)), mergeProps(unref(links).attrs(nextHref.value), {
|
|
625
|
+
class: "astryx-pagination-button astryx-pagination-item astryx-pagination-next",
|
|
498
626
|
"data-last": showFirstLast.value ? void 0 : "last",
|
|
499
|
-
disabled: disabledControl.value || !unref(pagination).canNext.value,
|
|
627
|
+
disabled: nextHref.value ? void 0 : disabledControl.value || !unref(pagination).canNext.value,
|
|
500
628
|
"aria-label": resolvedNextLabel.value,
|
|
501
|
-
onClick: _cache[
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
629
|
+
onClick: _cache[5] || (_cache[5] = ($event) => unref(links).activate($event, nextHref.value, unref(pagination).next))
|
|
630
|
+
}), {
|
|
631
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_15, toDisplayString(resolvedNextLabel.value), 1), _cache[10] || (_cache[10] = createElementVNode("svg", {
|
|
632
|
+
width: "16",
|
|
633
|
+
height: "16",
|
|
634
|
+
viewBox: "0 0 16 16",
|
|
635
|
+
fill: "none"
|
|
636
|
+
}, [createElementVNode("path", {
|
|
637
|
+
d: "M6 4L10 8L6 12",
|
|
638
|
+
stroke: "currentColor",
|
|
639
|
+
"stroke-width": "1.5",
|
|
640
|
+
"stroke-linecap": "round",
|
|
641
|
+
"stroke-linejoin": "round"
|
|
642
|
+
})], -1))]),
|
|
643
|
+
_: 1
|
|
644
|
+
}, 16, [
|
|
645
|
+
"data-last",
|
|
646
|
+
"disabled",
|
|
647
|
+
"aria-label"
|
|
648
|
+
])),
|
|
649
|
+
showFirstLast.value ? (openBlock(), createBlock(resolveDynamicComponent(unref(links).root(lastHref.value)), mergeProps({ key: 7 }, unref(links).attrs(lastHref.value), {
|
|
650
|
+
class: "astryx-pagination-button astryx-pagination-item astryx-pagination-last",
|
|
518
651
|
"data-last": "last",
|
|
519
|
-
disabled: disabledControl.value || !unref(pagination).canNext.value,
|
|
652
|
+
disabled: lastHref.value ? void 0 : disabledControl.value || !unref(pagination).canNext.value,
|
|
520
653
|
"aria-label": unref(messages).pagination.last,
|
|
521
|
-
onClick: _cache[
|
|
522
|
-
},
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
654
|
+
onClick: _cache[6] || (_cache[6] = ($event) => unref(links).activate($event, lastHref.value, unref(pagination).last))
|
|
655
|
+
}), {
|
|
656
|
+
default: withCtx(() => [..._cache[11] || (_cache[11] = [createElementVNode("svg", {
|
|
657
|
+
width: "16",
|
|
658
|
+
height: "16",
|
|
659
|
+
viewBox: "0 0 16 16",
|
|
660
|
+
fill: "none",
|
|
661
|
+
"aria-hidden": "true"
|
|
662
|
+
}, [createElementVNode("path", {
|
|
663
|
+
d: "M5 4L9 8L5 12M9 4L13 8L9 12",
|
|
664
|
+
stroke: "currentColor",
|
|
665
|
+
"stroke-width": "1.5",
|
|
666
|
+
"stroke-linecap": "round",
|
|
667
|
+
"stroke-linejoin": "round"
|
|
668
|
+
})], -1)])]),
|
|
669
|
+
_: 1
|
|
670
|
+
}, 16, ["disabled", "aria-label"])) : createCommentVNode("v-if", true),
|
|
671
|
+
props.showSizeChanger ? (openBlock(), createElementBlock("div", _hoisted_16, [createElementVNode("span", _hoisted_17, toDisplayString(resolvedPageSizeLabel.value), 1), createVNode(_sfc_main$1, {
|
|
536
672
|
"model-value": pageSizeRef.value,
|
|
537
673
|
options: pageSizeOptions.value,
|
|
538
674
|
disabled: disabledControl.value,
|
|
539
675
|
size: "sm",
|
|
540
|
-
"onUpdate:modelValue": _cache[
|
|
676
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = (size) => size && unref(pagination).setPageSize(Number(size)))
|
|
541
677
|
}, null, 8, [
|
|
542
678
|
"model-value",
|
|
543
679
|
"options",
|
|
544
680
|
"disabled"
|
|
545
681
|
])])) : createCommentVNode("v-if", true)
|
|
546
|
-
])], 10, _hoisted_1);
|
|
682
|
+
], 8, _hoisted_3)], 10, _hoisted_1);
|
|
547
683
|
};
|
|
548
684
|
}
|
|
549
685
|
});
|
package/dist/Popover/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as PopoverRole, i as PopoverProps, n as PopoverPadding, r as PopoverPlacement, t as PopoverAlignment } from "../types-OGMYGejX.js";
|
|
2
|
-
import { i as _default, n as UsePopoverReturn, r as usePopover, t as UsePopoverOptions } from "../index-
|
|
2
|
+
import { i as _default, n as UsePopoverReturn, r as usePopover, t as UsePopoverOptions } from "../index-BmXk_doE.js";
|
|
3
3
|
export { _default as Popover, type PopoverAlignment, type PopoverPadding, type PopoverPlacement, type PopoverProps, type PopoverRole, type UsePopoverOptions, type UsePopoverReturn, usePopover };
|
package/dist/Popover/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as usePopover, t as _sfc_main } from "../Popover-
|
|
1
|
+
import { n as usePopover, t as _sfc_main } from "../Popover-BtfsoxXC.js";
|
|
2
2
|
export { _sfc_main as Popover, usePopover };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Button-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Button-Blnc0yB3.js";
|
|
2
2
|
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
3
|
-
import { t as useDismiss } from "./useDismiss-
|
|
4
|
-
import { n as useLayer } from "./tooltipTriggerRules-
|
|
5
|
-
import { t as _sfc_main$2 } from "./LayerContentBoundary-
|
|
3
|
+
import { t as useDismiss } from "./useDismiss-C1dyveme.js";
|
|
4
|
+
import { n as useLayer } from "./tooltipTriggerRules-BLBEkBcK.js";
|
|
5
|
+
import { t as _sfc_main$2 } from "./LayerContentBoundary-DxeAFxNJ.js";
|
|
6
6
|
import { n as focusElement, r as getFocusables } from "./focus-x7mxEqjR.js";
|
|
7
7
|
import { a as inDocumentOrder } from "./focusRegion-CmDg7_4b.js";
|
|
8
|
-
import { t as useFocusTrap } from "./useFocusTrap-
|
|
8
|
+
import { t as useFocusTrap } from "./useFocusTrap-DAKJJP0Z.js";
|
|
9
9
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
10
10
|
import { t as useMergedRefs } from "./useMergedRefs-DTGo1cEU.js";
|
|
11
|
-
import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-
|
|
11
|
+
import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-BeCsk_4F.js";
|
|
12
12
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
13
13
|
import { n as clampInlineSize, t as LAYER_MAX_INLINE_SIZE } from "./inlineSize-BNe8wggI.js";
|
|
14
14
|
import { t as popoverMessages } from "./popover-DxCyd_Ua.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as PowerSearchItem, C as PowerSearchEmits, D as PowerSearchFieldType, E as PowerSearchFieldDefinition, F as PowerSearchSlots, I as PowerSearchStatus, M as PowerSearchOverflow, N as PowerSearchProps, O as PowerSearchFilter, P as PowerSearchSize, S as PowerSearchConfig, T as PowerSearchField, _ as FilterValue, a as usePowerSearchConfig, b as PowerSearchChangeType, c as resolveOperatorLabel, d as formatFilterValue, f as completePowerSearchFilter, g as DateTimeRangePart, h as DateTimeRange, i as createPowerSearchConfig, j as PowerSearchOperator, k as PowerSearchHandle, l as formatDateAbsolute, m as createPowerSearchLookup, n as InferPowerSearchData, o as _default, p as PowerSearchLookup, r as applyPowerSearchFilters, s as resolveEditorPlacement, t as searchPowerSearchFields, u as formatDateAbsoluteCompact, v as OperatorValue, w as PowerSearchEntity, x as PowerSearchComponents, y as PartialFilter } from "../index-
|
|
1
|
+
import { A as PowerSearchItem, C as PowerSearchEmits, D as PowerSearchFieldType, E as PowerSearchFieldDefinition, F as PowerSearchSlots, I as PowerSearchStatus, M as PowerSearchOverflow, N as PowerSearchProps, O as PowerSearchFilter, P as PowerSearchSize, S as PowerSearchConfig, T as PowerSearchField, _ as FilterValue, a as usePowerSearchConfig, b as PowerSearchChangeType, c as resolveOperatorLabel, d as formatFilterValue, f as completePowerSearchFilter, g as DateTimeRangePart, h as DateTimeRange, i as createPowerSearchConfig, j as PowerSearchOperator, k as PowerSearchHandle, l as formatDateAbsolute, m as createPowerSearchLookup, n as InferPowerSearchData, o as _default, p as PowerSearchLookup, r as applyPowerSearchFilters, s as resolveEditorPlacement, t as searchPowerSearchFields, u as formatDateAbsoluteCompact, v as OperatorValue, w as PowerSearchEntity, x as PowerSearchComponents, y as PartialFilter } from "../index-CG3fD4hw.js";
|
|
2
2
|
export { type DateTimeRange, type DateTimeRangePart, type FilterValue, type InferPowerSearchData, type OperatorValue, type PartialFilter, _default as PowerSearch, type PowerSearchChangeType, type PowerSearchComponents, type PowerSearchConfig, type PowerSearchEmits, type PowerSearchEntity, type PowerSearchField, type PowerSearchFieldDefinition, type PowerSearchFieldType, type PowerSearchFilter, type PowerSearchHandle, type PowerSearchItem, type PowerSearchLookup, type PowerSearchOperator, type PowerSearchOverflow, type PowerSearchProps, type PowerSearchSize, type PowerSearchSlots, type PowerSearchStatus, applyPowerSearchFilters, completePowerSearchFilter, createPowerSearchConfig, createPowerSearchLookup, formatDateAbsolute, formatDateAbsoluteCompact, formatFilterValue, resolveEditorPlacement, resolveOperatorLabel, searchPowerSearchFields, usePowerSearchConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "../PowerSearch-
|
|
1
|
+
import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "../PowerSearch-CniqThU7.js";
|
|
2
2
|
export { _sfc_main as PowerSearch, applyPowerSearchFilters, completePowerSearchFilter, createPowerSearchConfig, createPowerSearchLookup, formatDateAbsolute, formatDateAbsoluteCompact, formatFilterValue, resolveEditorPlacement, resolveOperatorLabel, searchPowerSearchFields, usePowerSearchConfig };
|