@astryx-vue/core 0.13.1 → 0.14.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-CsdgJDLK.js → AlertDialog-BOyx3Owt.js} +4 -4
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CE5Up5SI.js → AppShell-CHN80IBy.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-D5CFSkAG.js → Avatar-B-dg3imS.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-B4IEG4Fx.js → Banner-qEMqg2D8.js} +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-D67lQ3Lo.js → BottomSheet-CFrcT1Lr.js} +3 -3
- package/dist/{BottomSheet-UctSPL-g.js → BottomSheet-qD8zeVYQ.js} +3 -3
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-By21sIml.js → Breadcrumbs-61TGNa4M.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-CfbR2oPc.js → Button-47s3ZBYa.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DwFAzDky.js → Calendar-D029GXOJ.js} +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-mL_KdBMw.js → Carousel-CYjVpChx.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-C10BQlIl.js → Chat-BfekV9OQ.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-BGqRMoEA.js → CheckboxInput-Cr0qhZpZ.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DbMhC06M.js → CheckboxList-DOAdqkXD.js} +4 -4
- 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-DAlWY51H.js → CodeBlock-CuNiGAhQ.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DYk_FyFB.js → CommandPalette-DU4VBuWx.js} +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-NDpRucQB.js → ComplexSelector-CdeoaX2o.js} +3 -3
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-JDU4HDKm.js → ContextMenu-Cw34CTey.js} +5 -5
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DVEb1-fM.js → DateInput-vxaVpM2X.js} +562 -123
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-OuAz80nR.js → DateRangeInput-X5VDZkfk.js} +14 -11
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-J5CFTSSa.js → DateTimeInput-B8HeL3dk.js} +19 -11
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-C0WuGDqP.js → Dialog-CprMsTku.js} +3 -3
- package/dist/{Dialog-Cm8CXGpI.js → Dialog-DCsuevxA.js} +1 -1
- package/dist/{DialogHeader-BD2Ezw4F.js → DialogHeader-DyMQBW1_.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-CFpcRHt7.js → Drawer-BkFF7krL.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-2QRvY0aP.js → DropdownMenu-DEEcKIHY.js} +6 -6
- package/dist/{DropdownMenu-5Mn01A-5.js → DropdownMenu-Dt88fMAT.js} +3 -3
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CqUTEnGg.js → EmptyState-BS8ESteS.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-Cw8J8ld7.js → Field-Dxacpe9d.js} +2 -2
- package/dist/{FieldInfoTip-D7UNDNje.js → FieldInfoTip-DS4OAl2Q.js} +1 -1
- package/dist/{FieldLabel-CJbiefUx.js → FieldLabel-DjzTYhCM.js} +2 -2
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CgfiwVfs.js → FileInput-Dak2gIXU.js} +3 -3
- package/dist/FormLayout/index.d.ts +2 -2
- package/dist/FormLayout/index.js +1 -1
- package/dist/{FormLayout-B9dUB6Ps.js → FormLayout-CGJVeNsL.js} +5 -3
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BO9n2vLl.js → Heading-BYB7QXkT.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-47J_i9AH.js → HoverCard-CtDr234t.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DiDHiGbo.js → IconButton-DvgueAEp.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-ClRC1Hh9.js → InfoTip-DshbO5eW.js} +1 -1
- package/dist/{InputClearButton-DL4RM5z1.js → InputClearButton-DEb-bGsY.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-JMOrdsmu.js → InputGroup-DLu11Lsd.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-BYU2MRtX.js → InternationalizationProvider-CqCxB9ku.js} +1 -1
- package/dist/{LayerContentBoundary-CeebKoPB.js → LayerContentBoundary-Cx5xXZzg.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-kKjxYZ05.js → Lightbox-f_0_73Zi.js} +3 -3
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-CkbAlJ3-.js → Link-CFxZ9W2X.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DXRFVNJd.js → Markdown-DTqTIKbq.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DUtvvHc7.js → MobileNavToggle-D_J_uTW-.js} +3 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CEJ9E2eD.js → MoreMenu-BY1t1_QA.js} +4 -4
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DgWCWpnM.js → MultiSelector-BmdODQAC.js} +8 -7
- package/dist/{NavDisclosure-Bf5OFtwv.js → NavDisclosure-mXBWmRDC.js} +1 -1
- package/dist/{NavHeadingSurface-D5MpO-gO.js → NavHeadingSurface-foJo5bLT.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-BcmUfk7z.js → NavMenu-CG9Bthba.js} +2 -2
- package/dist/{NavMenuItem-C9xk9KZk.js → NavMenuItem-BiFZUPxC.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DNcE_HLD.js → NumberInput-BDNiEgzf.js} +5 -5
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CeQT7MBd.js → OverflowList-CR96Nr5t.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DJGQe6wH.js → Pagination-CA3yJwyk.js} +1 -1
- package/dist/{PickerWheel-CSwUYfes.js → PickerWheel-DNX3yrUd.js} +21 -8
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-C68nCirC.js → Popover-Mj71LwjH.js} +6 -6
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-C6lkutch.js → PowerSearch-CajkGExd.js} +18 -18
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-MaDhabCm.js → ProgressBar-sGSCEtHC.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CLQLK_V7.js → RadioGroup-D58Fy-bM.js} +3 -3
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DfHTyqIQ.js → RadioList-u9PoRBXY.js} +1 -1
- package/dist/Resizable/index.d.ts +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-CPCoJ7Sb.js → Selector-jA_SESFs.js} +7 -6
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-CV8MKVL-.js → SideNav-BgmpUELq.js} +5 -5
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-CHJ1CESd.js → Slider-Depy9L-Y.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-CGaRrl39.js → StatusDot-D0Wy2ggp.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-Bx9ezhrN.js → Switch-dD4OQLkI.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-o4t9vWvl.js → TabList-CoiyQidC.js} +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CO2cYE8r.js → Table-Cb0ec1PS.js} +12 -12
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-C6SB2hHJ.js → Text-BWSmB93V.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-DVaDS_1K.js → TextArea-CbY2w_ic.js} +6 -6
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Dylfzj33.js → TextInput-C8f89GV8.js} +6 -6
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BTQAYnWi.js → Thumbnail-DENhXd9-.js} +2 -2
- package/dist/{TimeField-B3JGgLuf.js → TimeField-DcZ9wYGn.js} +8 -8
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-Dmy6PxaD.js → TimeInput-DyiU7_IA.js} +3 -3
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-CN5BmaFS.js → Timer-CgBSMr9E.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-B7UcCEo2.js → Timestamp-B-VgG6l8.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DCipbbCW.js → Toast-CRSZV9K-.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-C78lrcdr.js → ToggleButton-Bm5IQUy5.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-D7B1ff3O.js → Tokenizer-DmjNQLDl.js} +6 -6
- 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-kQPfj3SE.js → Tooltip-BwrJVZ8X.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-AGY785QI.js → TopNav-C3gyHUVv.js} +4 -4
- 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-QWYeVsel.js → Typeahead-LdmEDCOU.js} +6 -6
- package/dist/busyAnnouncement-D3eGqdsf.js +88 -0
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +11 -11
- package/dist/{composables-CyKB3F8u.js → composables-Bi0Rt0Uj.js} +2 -2
- package/dist/{context-Cfml4jaK.js → context-DsNhYm5O.js} +6 -1
- package/dist/{date-input-CiEBtStM.js → date-input-rUD8YAow.js} +4 -0
- package/dist/{utils-BOmFijPc.js → dateParser-DS_a8Ej8.js} +1 -329
- package/dist/{fieldParts-CDOlBdy6.js → fieldParts-CbWvZLhH.js} +1 -1
- package/dist/{format-CiN0Dt_H.js → format-CMHyAMn3.js} +28 -1
- package/dist/{index-BhxqUt3y.d.ts → index--kbwaSXW.d.ts} +1 -1
- package/dist/{index-CL8JvxHW.d.ts → index-B3yTdknp.d.ts} +1 -1
- package/dist/{index-bgjrSSaT.d.ts → index-B449gOMC.d.ts} +3 -3
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-D7YRtteD.d.ts → index-BHYhTZzp.d.ts} +1 -1
- package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-CVs4A2QU.d.ts → index-BPymttXR.d.ts} +1 -0
- package/dist/{index-Dep8pgnU.d.ts → index-BbXwtkv6.d.ts} +3 -3
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-CREW8ZiL.d.ts → index-C5VJoanX.d.ts} +3 -3
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-ul1hNxih.d.ts → index-CLHJybQY.d.ts} +1 -1
- 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-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-BWaO4-T-.d.ts → index-Cr9uPUc5.d.ts} +101 -55
- package/dist/{index-BzViSe8D.d.ts → index-D1J81rYJ.d.ts} +4 -4
- package/dist/{index-9YGUb_Ht.d.ts → index-DG7FmGCE.d.ts} +2 -2
- package/dist/{index-C90l2rH1.d.ts → index-DcisK4t8.d.ts} +11 -1
- package/dist/{index-BpprL2SN.d.ts → index-DfdtDWSP.d.ts} +5 -1
- package/dist/{index-CfoExOY_.d.ts → index-Dg0JsBpI.d.ts} +1 -1
- package/dist/{index-DS9SzqqJ.d.ts → index-Djf0M7PH.d.ts} +2 -2
- package/dist/{index-O9y23OPJ.d.ts → index-DneQgJfI.d.ts} +1 -1
- package/dist/{index-Cun6cXGP.d.ts → index-DpYJBFJj.d.ts} +2 -2
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-Dc9_kBrU.d.ts → index-YfMHAQ_D.d.ts} +2 -2
- package/dist/{index-Dlq0cFK-.d.ts → index-dWlCpnua.d.ts} +3 -3
- package/dist/{index-DPhQZXYw.d.ts → index-eCp-ElSp.d.ts} +2 -2
- package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
- package/dist/{index-Bl_K_cRv.d.ts → index-wTwhcFQx.d.ts} +1 -1
- 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 +36 -36
- package/dist/index.js +94 -92
- package/dist/{layerDepth-BU_55vPr.js → layerDepth-I6d28O4d.js} +5 -2
- package/dist/{layerFocusReturn-DWGkSHXj.js → layerFocusReturn-BrS5RTx6.js} +1 -1
- package/dist/{loadCatalog-Kp7aQZpL.d.ts → loadCatalog-Cvf-xgDD.d.ts} +34 -27
- package/dist/{loadCatalog-BtQRPyzj.js → loadCatalog-DYuZZRtf.js} +1 -1
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-DET_YkFW.js → locale-B-DrJCMs.js} +1 -1
- package/dist/{selectorEscape-LkWoVYQN.js → selectorEscape-FjiU_5WC.js} +3 -16
- package/dist/{stillPointerGate-BZ7KMJOB.js → stillPointerGate-DlAU_J_M.js} +1 -1
- package/dist/timeParser-D9tCF_b3.js +203 -0
- package/dist/{useDismiss-74dLMi5S.js → useDismiss-21Gk7uWk.js} +1 -1
- package/dist/{useFocusTrap-CyooA0OC.js → useFocusTrap-BFQ7Goue.js} +1 -1
- package/dist/{useHoverLayerDismiss-B1W5qIBx.js → useHoverLayerDismiss-Chfty2wT.js} +1 -1
- package/dist/{useInputStatusIcon-ZqCxDNTj.js → useInputStatusIcon-Yd0hvw5K.js} +1 -1
- package/dist/{useLayer-BnjrJ85F.js → useLayer-vK4-yRk_.js} +1 -1
- package/dist/{useMenuPress-BWq7kwWm.js → useMenuPress-9vsHzbRX.js} +1 -1
- package/dist/{useResizable-De4Xp3TD.js → useResizable-DYlc06-H.js} +1 -1
- package/dist/{useRestoreFocus-CSrI8x7v.js → useRestoreFocus-BhcXCJwM.js} +1 -1
- package/dist/useTimeValue-_XW9g2V1.js +52 -0
- package/dist/{useTooltip-uc-VLZ8I.js → useTooltip-DIg3ZE9P.js} +4 -4
- package/dist/{useTouchTriggerInternal-b-txblws.js → useTouchTriggerInternal-CrLW-7kT.js} +1 -1
- package/dist/{useTruncationTooltip-BVMCoNno.js → useTruncationTooltip-D9_lzxpF.js} +2 -2
- package/dist/{useTypeahead-BWj3xhbR.js → useTypeahead-CiLt-yEg.js} +1 -1
- package/dist/{useTypeaheadAnnouncement-DVkdWTWy.js → useTypeaheadAnnouncement-C59m2nSx.js} +1 -1
- package/dist/utils/index.js +3 -1
- package/dist/utils-BW62BpDR.js +135 -0
- package/package.json +1 -1
- package/styles/date-input.css +45 -3
- package/styles/date-range-input.css +7 -0
- package/styles/time-input.css +7 -0
- package/dist/useTimeValue-BJd0xBhG.js +0 -95
- package/dist/{index-J6YRJ7Ul.d.ts → index-CHx33xGa.d.ts} +1 -1
package/styles/date-input.css
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
@media (hover: hover) {
|
|
44
|
-
.astryx-date-input-wrapper:hover:not([data-disabled='true']):not(:focus-within) {
|
|
44
|
+
.astryx-date-input-wrapper:hover:not([data-disabled='true']):not([data-busy]):not(:focus-within) {
|
|
45
45
|
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--astryx-input-status-color, var(--astryx-input-border, #d4d4d4)) 30%, transparent);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -51,12 +51,18 @@
|
|
|
51
51
|
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--astryx-input-status-color, var(--astryx-input-focus, #262626)) 15%, transparent);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
/* 禁用的样子只属于禁用;忙碌的字段保持平常的样子,只多一个转圈。 */
|
|
54
55
|
.astryx-date-input-wrapper[data-disabled='true'] {
|
|
55
56
|
opacity: 0.5;
|
|
56
57
|
box-shadow: none;
|
|
57
58
|
cursor: default;
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
/* 禁用的字段仍可聚焦,聚焦时焦点环照样出现。 */
|
|
62
|
+
.astryx-date-input-wrapper[data-disabled='true']:focus-within {
|
|
63
|
+
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--astryx-input-status-color, var(--astryx-input-focus, #262626)) 15%, transparent);
|
|
64
|
+
}
|
|
65
|
+
|
|
60
66
|
.astryx-date-input.status-error {
|
|
61
67
|
--astryx-input-status-color: var(--astryx-input-error, #e33f4a);
|
|
62
68
|
}
|
|
@@ -166,12 +172,35 @@
|
|
|
166
172
|
flex: none;
|
|
167
173
|
}
|
|
168
174
|
|
|
169
|
-
|
|
175
|
+
/* 粗指针下点一下就弹键盘,焦点样子渐变会在键盘升起的每一帧重画,所以直接出现。 */
|
|
176
|
+
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
|
|
170
177
|
.astryx-date-input-wrapper {
|
|
171
178
|
transition: none;
|
|
172
179
|
}
|
|
173
180
|
}
|
|
174
181
|
|
|
182
|
+
@media (forced-colors: active) {
|
|
183
|
+
.astryx-date-input-wrapper {
|
|
184
|
+
border-color: ButtonText;
|
|
185
|
+
color: CanvasText;
|
|
186
|
+
background: Canvas;
|
|
187
|
+
box-shadow: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.astryx-date-input-wrapper[data-disabled='true'] {
|
|
191
|
+
color: GrayText;
|
|
192
|
+
border-color: GrayText;
|
|
193
|
+
opacity: 1;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* 强制颜色会把边框统一重画、去掉内阴影;聚焦的字段(含仍可聚焦的禁用字段)用 Highlight 标出来。 */
|
|
197
|
+
.astryx-date-input-wrapper:focus-within,
|
|
198
|
+
.astryx-date-input-wrapper[data-disabled='true']:focus-within {
|
|
199
|
+
border-color: Highlight;
|
|
200
|
+
box-shadow: none;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
175
204
|
@media (pointer: coarse) {
|
|
176
205
|
@supports (-webkit-touch-callout: none) {
|
|
177
206
|
.astryx-date-input-field {
|
|
@@ -189,6 +218,18 @@
|
|
|
189
218
|
padding: var(--astryx-spacing-3, 12px);
|
|
190
219
|
}
|
|
191
220
|
|
|
221
|
+
/* 底部面板的抓手条浮在内容上方、高 24px。静止时面板第一行要落在它下面:
|
|
222
|
+
面板自己的上内边距不够 24px 时,差多少这里补多少。 */
|
|
223
|
+
.astryx-date-touch,
|
|
224
|
+
.astryx-time-touch,
|
|
225
|
+
.astryx-date-time-touch-tabs {
|
|
226
|
+
padding-block-start: max(var(--astryx-spacing-3, 12px), calc(var(--astryx-spacing-6, 24px) - var(--container-padding-block-start, 0px)));
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.astryx-date-time-touch .astryx-date-touch {
|
|
230
|
+
padding-block-start: var(--astryx-spacing-3, 12px);
|
|
231
|
+
}
|
|
232
|
+
|
|
192
233
|
.astryx-date-touch-header,
|
|
193
234
|
.astryx-date-touch-nav,
|
|
194
235
|
.astryx-date-time-touch-tabs {
|
|
@@ -279,7 +320,8 @@
|
|
|
279
320
|
}
|
|
280
321
|
|
|
281
322
|
.astryx-date-time-touch-tabs {
|
|
282
|
-
padding: var(--astryx-spacing-3, 12px)
|
|
323
|
+
padding-inline: var(--astryx-spacing-3, 12px);
|
|
324
|
+
padding-block-end: 0;
|
|
283
325
|
}
|
|
284
326
|
}
|
|
285
327
|
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
2
|
|
|
3
3
|
@layer astryx.components {
|
|
4
|
+
/* 粗指针下点一下就弹键盘,焦点样子渐变会在键盘升起的每一帧重画,所以直接出现。 */
|
|
5
|
+
@media (pointer: coarse) {
|
|
6
|
+
.astryx-date-range-input.astryx-bordered-control {
|
|
7
|
+
transition: none;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
4
11
|
.astryx-date-range-input {
|
|
5
12
|
width: 100%;
|
|
6
13
|
}
|
package/styles/time-input.css
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
2
|
|
|
3
3
|
@layer astryx.components {
|
|
4
|
+
/* 粗指针下点一下就弹键盘,焦点样子渐变会在键盘升起的每一帧重画,所以直接出现。 */
|
|
5
|
+
@media (pointer: coarse) {
|
|
6
|
+
.astryx-time-input.astryx-bordered-control {
|
|
7
|
+
transition: none;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
4
11
|
.astryx-time-input {
|
|
5
12
|
width: 100%;
|
|
6
13
|
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
//#region src/composables/useTimeValue.ts
|
|
2
|
-
const DISPLAY_TIME = /^(\d{1,2})(?::(\d{2}))?(?::(\d{2}))?\s*([ap])\.?m\.?$/i;
|
|
3
|
-
const COMPACT_TIME = /^(\d{2})(\d{2})(\d{2})?$/;
|
|
4
|
-
const ISO_TIME = /^(\d{2}):(\d{2})(?::(\d{2}))?$/;
|
|
5
|
-
function clampPart(value, max) {
|
|
6
|
-
return Number.isInteger(value) && value >= 0 && value <= max;
|
|
7
|
-
}
|
|
8
|
-
function parseISOTime(value) {
|
|
9
|
-
const match = ISO_TIME.exec(value.trim());
|
|
10
|
-
if (!match) return null;
|
|
11
|
-
const hours = Number(match[1]);
|
|
12
|
-
const minutes = Number(match[2]);
|
|
13
|
-
const seconds = match[3] == null ? 0 : Number(match[3]);
|
|
14
|
-
if (!clampPart(hours, 23) || !clampPart(minutes, 59) || !clampPart(seconds, 59)) return null;
|
|
15
|
-
return {
|
|
16
|
-
hours,
|
|
17
|
-
minutes,
|
|
18
|
-
seconds
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function formatISOTime(time, hasSeconds) {
|
|
22
|
-
const hours = String(time.hours).padStart(2, "0");
|
|
23
|
-
const minutes = String(time.minutes).padStart(2, "0");
|
|
24
|
-
const seconds = String(time.seconds).padStart(2, "0");
|
|
25
|
-
return hasSeconds ? `${hours}:${minutes}:${seconds}` : `${hours}:${minutes}`;
|
|
26
|
-
}
|
|
27
|
-
function formatDisplayTime(value, hourFormat, hasSeconds) {
|
|
28
|
-
const parsed = parseISOTime(value);
|
|
29
|
-
if (!parsed) return value;
|
|
30
|
-
if (hourFormat === "24h") return formatISOTime(parsed, hasSeconds);
|
|
31
|
-
const suffix = parsed.hours < 12 ? "AM" : "PM";
|
|
32
|
-
return `${parsed.hours % 12 || 12}:${String(parsed.minutes).padStart(2, "0")}${hasSeconds ? `:${String(parsed.seconds).padStart(2, "0")}` : ""} ${suffix}`;
|
|
33
|
-
}
|
|
34
|
-
function parseDisplayTime(text, hasSeconds) {
|
|
35
|
-
const trimmed = text.trim();
|
|
36
|
-
if (!trimmed) return null;
|
|
37
|
-
const meridiem = DISPLAY_TIME.exec(trimmed);
|
|
38
|
-
if (meridiem) {
|
|
39
|
-
let hours = Number(meridiem[1]);
|
|
40
|
-
const minutes = meridiem[2] == null ? 0 : Number(meridiem[2]);
|
|
41
|
-
const seconds = meridiem[3] == null ? 0 : Number(meridiem[3]);
|
|
42
|
-
if (!clampPart(hours, 12) || hours === 0 || !clampPart(minutes, 59) || !clampPart(seconds, 59)) return null;
|
|
43
|
-
const isPm = meridiem[4].toLowerCase() === "p";
|
|
44
|
-
if (hours === 12) hours = isPm ? 12 : 0;
|
|
45
|
-
else if (isPm) hours += 12;
|
|
46
|
-
return formatISOTime({
|
|
47
|
-
hours,
|
|
48
|
-
minutes,
|
|
49
|
-
seconds
|
|
50
|
-
}, hasSeconds);
|
|
51
|
-
}
|
|
52
|
-
const compact = COMPACT_TIME.exec(trimmed);
|
|
53
|
-
if (compact) return parseDisplayTime(`${compact[1]}:${compact[2]}${compact[3] ? `:${compact[3]}` : ""}`, hasSeconds);
|
|
54
|
-
const iso = parseISOTime(trimmed);
|
|
55
|
-
if (!iso) return null;
|
|
56
|
-
return formatISOTime(iso, hasSeconds);
|
|
57
|
-
}
|
|
58
|
-
function shiftTime(value, minuteDelta, hasSeconds) {
|
|
59
|
-
const parsed = parseISOTime(value) ?? {
|
|
60
|
-
hours: 0,
|
|
61
|
-
minutes: 0,
|
|
62
|
-
seconds: 0
|
|
63
|
-
};
|
|
64
|
-
const total = parsed.hours * 60 + parsed.minutes + minuteDelta;
|
|
65
|
-
const day = 1440;
|
|
66
|
-
const normalized = (total % day + day) % day;
|
|
67
|
-
return formatISOTime({
|
|
68
|
-
hours: Math.floor(normalized / 60),
|
|
69
|
-
minutes: normalized % 60,
|
|
70
|
-
seconds: parsed.seconds
|
|
71
|
-
}, hasSeconds);
|
|
72
|
-
}
|
|
73
|
-
function comparable(value) {
|
|
74
|
-
const parsed = parseISOTime(value);
|
|
75
|
-
if (!parsed) return value;
|
|
76
|
-
return formatISOTime(parsed, true);
|
|
77
|
-
}
|
|
78
|
-
function isTimeInRange(value, min, max) {
|
|
79
|
-
const current = comparable(value);
|
|
80
|
-
if (min && current < comparable(min)) return false;
|
|
81
|
-
if (max && current > comparable(max)) return false;
|
|
82
|
-
return true;
|
|
83
|
-
}
|
|
84
|
-
function resolveTimeSurface(options) {
|
|
85
|
-
const presentation = options.presentation ?? (options.nativePicker === "always" ? "native" : options.nativePicker === "never" ? "text-input" : "adaptive-native");
|
|
86
|
-
const needsTypedField = options.hasSeconds || options.increment !== 1 || options.needsTypedField === true;
|
|
87
|
-
if (presentation === "text-input" || presentation === "popover") return "text";
|
|
88
|
-
if (presentation === "bottom-sheet") return "sheet";
|
|
89
|
-
if (presentation === "adaptive-bottom-sheet") return options.coarse ? "sheet" : "text";
|
|
90
|
-
if (needsTypedField) return "text";
|
|
91
|
-
if (presentation === "native") return "native";
|
|
92
|
-
return options.coarse ? "native" : "text";
|
|
93
|
-
}
|
|
94
|
-
//#endregion
|
|
95
|
-
export { parseISOTime as a, parseDisplayTime as i, formatISOTime as n, resolveTimeSurface as o, isTimeInRange as r, shiftTime as s, formatDisplayTime as t };
|
|
@@ -43,8 +43,8 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
|
|
|
43
43
|
onRemove?: ((event: Event) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
size: TokenSize;
|
|
46
|
-
disabled: boolean;
|
|
47
46
|
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
47
|
+
disabled: boolean;
|
|
48
48
|
labelHidden: boolean;
|
|
49
49
|
removable: boolean;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|