@fragiola/primitives-vue 0.0.0-stage → 0.1.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/CHANGELOG.md +67 -0
- package/LICENSE +21 -0
- package/README.md +41 -2
- package/dist/accordion-CmKuKHkK.js +278 -0
- package/dist/accordion-CmKuKHkK.js.map +1 -0
- package/dist/accordion.d.ts +4 -0
- package/dist/accordion.js +1 -0
- package/dist/alert-dialog-CPG51QOk.js +38 -0
- package/dist/alert-dialog-CPG51QOk.js.map +1 -0
- package/dist/alert-dialog.d.ts +9 -0
- package/dist/alert-dialog.js +1 -0
- package/dist/aspect-ratio-Ba7GaRnV.js +37 -0
- package/dist/aspect-ratio-Ba7GaRnV.js.map +1 -0
- package/dist/aspect-ratio.d.ts +3 -0
- package/dist/aspect-ratio.js +1 -0
- package/dist/async-list-Dc8wqcxe.js +39 -0
- package/dist/async-list-Dc8wqcxe.js.map +1 -0
- package/dist/async-list.d.ts +2 -0
- package/dist/async-list.js +1 -0
- package/dist/autocomplete-virtual-D_2Wuih7.js +55 -0
- package/dist/autocomplete-virtual-D_2Wuih7.js.map +1 -0
- package/dist/autocomplete-virtual.d.ts +2 -0
- package/dist/autocomplete-virtual.js +3 -0
- package/dist/autocomplete.d.ts +6 -0
- package/dist/autocomplete.js +1 -0
- package/dist/avatar-DdDGa6x7.js +166 -0
- package/dist/avatar-DdDGa6x7.js.map +1 -0
- package/dist/avatar.d.ts +3 -0
- package/dist/avatar.js +1 -0
- package/dist/breadcrumbs-BFAjlnC_.js +131 -0
- package/dist/breadcrumbs-BFAjlnC_.js.map +1 -0
- package/dist/breadcrumbs.d.ts +3 -0
- package/dist/breadcrumbs.js +1 -0
- package/dist/button-DVUcUCXc.js +56 -0
- package/dist/button-DVUcUCXc.js.map +1 -0
- package/dist/button-attributes-Ue6sUse5.js +83 -0
- package/dist/button-attributes-Ue6sUse5.js.map +1 -0
- package/dist/button.d.ts +3 -0
- package/dist/button.js +1 -0
- package/dist/calendar-preset-Bjc7rcNX.js +84 -0
- package/dist/calendar-preset-Bjc7rcNX.js.map +1 -0
- package/dist/calendar-preset.d.ts +3 -0
- package/dist/calendar-preset.js +3 -0
- package/dist/calendar-prev-button-jluYmM-3.js +307 -0
- package/dist/calendar-prev-button-jluYmM-3.js.map +1 -0
- package/dist/calendar-root-base-C9dfkl55.js +310 -0
- package/dist/calendar-root-base-C9dfkl55.js.map +1 -0
- package/dist/calendar-view-Djy5iHGK.js +160 -0
- package/dist/calendar-view-Djy5iHGK.js.map +1 -0
- package/dist/calendar-view.d.ts +4 -0
- package/dist/calendar-view.js +4 -0
- package/dist/calendar.d.ts +5 -0
- package/dist/calendar.js +1 -0
- package/dist/carousel-BOacnCmz.js +553 -0
- package/dist/carousel-BOacnCmz.js.map +1 -0
- package/dist/carousel.d.ts +4 -0
- package/dist/carousel.js +1 -0
- package/dist/cascade-select-B-Nf6eOA.js +697 -0
- package/dist/cascade-select-B-Nf6eOA.js.map +1 -0
- package/dist/cascade-select.d.ts +6 -0
- package/dist/cascade-select.js +1 -0
- package/dist/change-details-Bc4-Xzdm.d.ts +37 -0
- package/dist/checkbox-D5NvqFgS.js +230 -0
- package/dist/checkbox-D5NvqFgS.js.map +1 -0
- package/dist/checkbox-group-C3XftlZd.js +104 -0
- package/dist/checkbox-group-C3XftlZd.js.map +1 -0
- package/dist/checkbox-group-context-C0Z5sWM1.js +5 -0
- package/dist/checkbox-group-context-C0Z5sWM1.js.map +1 -0
- package/dist/checkbox-group.d.ts +4 -0
- package/dist/checkbox-group.js +1 -0
- package/dist/checkbox.d.ts +4 -0
- package/dist/checkbox.js +1 -0
- package/dist/clipboard-BM-4-lTv.js +195 -0
- package/dist/clipboard-BM-4-lTv.js.map +1 -0
- package/dist/clipboard.d.ts +4 -0
- package/dist/clipboard.js +1 -0
- package/dist/collapsible-DSCxhlQN.js +158 -0
- package/dist/collapsible-DSCxhlQN.js.map +1 -0
- package/dist/collapsible.d.ts +4 -0
- package/dist/collapsible.js +1 -0
- package/dist/color-area-uEHPo-Nq.js +350 -0
- package/dist/color-area-uEHPo-Nq.js.map +1 -0
- package/dist/color-area.d.ts +4 -0
- package/dist/color-area.js +1 -0
- package/dist/color-field-Di2IbTa3.js +384 -0
- package/dist/color-field-Di2IbTa3.js.map +1 -0
- package/dist/color-field.d.ts +4 -0
- package/dist/color-field.js +1 -0
- package/dist/color-picker-BgFgq5R0.js +311 -0
- package/dist/color-picker-BgFgq5R0.js.map +1 -0
- package/dist/color-picker-binding-CJ-Cbxbj.js +5 -0
- package/dist/color-picker-binding-CJ-Cbxbj.js.map +1 -0
- package/dist/color-picker-popover-Dx6LX0V3.js +233 -0
- package/dist/color-picker-popover-Dx6LX0V3.js.map +1 -0
- package/dist/color-picker-popover.d.ts +6 -0
- package/dist/color-picker-popover.js +1 -0
- package/dist/color-picker.d.ts +4 -0
- package/dist/color-picker.js +1 -0
- package/dist/color-slider-BCqoolnY.js +410 -0
- package/dist/color-slider-BCqoolnY.js.map +1 -0
- package/dist/color-slider.d.ts +4 -0
- package/dist/color-slider.js +1 -0
- package/dist/color-swatch-C-8IN28V.js +54 -0
- package/dist/color-swatch-C-8IN28V.js.map +1 -0
- package/dist/color-swatch-picker-CU1wrhjX.js +312 -0
- package/dist/color-swatch-picker-CU1wrhjX.js.map +1 -0
- package/dist/color-swatch-picker.d.ts +4 -0
- package/dist/color-swatch-picker.js +1 -0
- package/dist/color-swatch.d.ts +3 -0
- package/dist/color-swatch.js +1 -0
- package/dist/color-wheel-F_BoXKON.js +284 -0
- package/dist/color-wheel-F_BoXKON.js.map +1 -0
- package/dist/color-wheel.d.ts +4 -0
- package/dist/color-wheel.js +1 -0
- package/dist/combobox-virtual-DTRTVq5N.js +56 -0
- package/dist/combobox-virtual-DTRTVq5N.js.map +1 -0
- package/dist/combobox-virtual.d.ts +2 -0
- package/dist/combobox-virtual.js +3 -0
- package/dist/combobox.d.ts +6 -0
- package/dist/combobox.js +1 -0
- package/dist/command-virtual-LoTBDEY5.js +59 -0
- package/dist/command-virtual-LoTBDEY5.js.map +1 -0
- package/dist/command-virtual.d.ts +3 -0
- package/dist/command-virtual.js +3 -0
- package/dist/command.d.ts +4 -0
- package/dist/command.js +1 -0
- package/dist/context-menu-zdHIGS9E.js +151 -0
- package/dist/context-menu-zdHIGS9E.js.map +1 -0
- package/dist/context-menu.d.ts +7 -0
- package/dist/context-menu.js +1 -0
- package/dist/date-field-pgSTZiPb.js +78 -0
- package/dist/date-field-pgSTZiPb.js.map +1 -0
- package/dist/date-field-root-base-CYLuAykm.js +212 -0
- package/dist/date-field-root-base-CYLuAykm.js.map +1 -0
- package/dist/date-field.d.ts +4 -0
- package/dist/date-field.js +1 -0
- package/dist/date-picker-input-CiuuRiWZ.js +16 -0
- package/dist/date-picker-input-CiuuRiWZ.js.map +1 -0
- package/dist/date-picker-input-root-base-ExPSLeKw.js +318 -0
- package/dist/date-picker-input-root-base-ExPSLeKw.js.map +1 -0
- package/dist/date-picker-input.d.ts +4 -0
- package/dist/date-picker-input.js +3 -0
- package/dist/date-picker-trigger-C2BlzvfR.js +349 -0
- package/dist/date-picker-trigger-C2BlzvfR.js.map +1 -0
- package/dist/date-picker.d.ts +6 -0
- package/dist/date-picker.js +1 -0
- package/dist/date-range-field-Bygmkl5c.js +80 -0
- package/dist/date-range-field-Bygmkl5c.js.map +1 -0
- package/dist/date-range-field-input-CivpQMYd.js +69 -0
- package/dist/date-range-field-input-CivpQMYd.js.map +1 -0
- package/dist/date-range-field-root-base-BP26TSWz.js +267 -0
- package/dist/date-range-field-root-base-BP26TSWz.js.map +1 -0
- package/dist/date-range-field.d.ts +4 -0
- package/dist/date-range-field.js +1 -0
- package/dist/date-range-picker-input-BUNCCXUY.js +17 -0
- package/dist/date-range-picker-input-BUNCCXUY.js.map +1 -0
- package/dist/date-range-picker-input.d.ts +4 -0
- package/dist/date-range-picker-input.js +3 -0
- package/dist/date-range-picker.d.ts +7 -0
- package/dist/date-range-picker.js +1 -0
- package/dist/dialog-MNjIMCfA.js +38 -0
- package/dist/dialog-MNjIMCfA.js.map +1 -0
- package/dist/dialog-root-base-jbZipaoQ.js +329 -0
- package/dist/dialog-root-base-jbZipaoQ.js.map +1 -0
- package/dist/dialog-viewport-tYqWTs9Q.d.ts +54 -0
- package/dist/dialog.d.ts +9 -0
- package/dist/dialog.js +1 -0
- package/dist/direction-CN_deiZU.js +30 -0
- package/dist/direction-CN_deiZU.js.map +1 -0
- package/dist/direction-context-D-C_P6Lm.js +19 -0
- package/dist/direction-context-D-C_P6Lm.js.map +1 -0
- package/dist/direction.d.ts +2 -0
- package/dist/direction.js +1 -0
- package/dist/drawer-BcnuGtEt.js +357 -0
- package/dist/drawer-BcnuGtEt.js.map +1 -0
- package/dist/drawer.d.ts +9 -0
- package/dist/drawer.js +1 -0
- package/dist/drop-zone-vFJ5Kvsy.js +98 -0
- package/dist/drop-zone-vFJ5Kvsy.js.map +1 -0
- package/dist/drop-zone.d.ts +4 -0
- package/dist/drop-zone.js +1 -0
- package/dist/editable-CabzXgiN.js +436 -0
- package/dist/editable-CabzXgiN.js.map +1 -0
- package/dist/editable.d.ts +4 -0
- package/dist/editable.js +1 -0
- package/dist/field-DQ2d5nhC.js +397 -0
- package/dist/field-DQ2d5nhC.js.map +1 -0
- package/dist/field.d.ts +4 -0
- package/dist/field.js +1 -0
- package/dist/fieldset-CmmDzOPs.js +80 -0
- package/dist/fieldset-CmmDzOPs.js.map +1 -0
- package/dist/fieldset-context-DtEOoG6M.js +5 -0
- package/dist/fieldset-context-DtEOoG6M.js.map +1 -0
- package/dist/fieldset.d.ts +3 -0
- package/dist/fieldset.js +1 -0
- package/dist/file-upload-_Hh-STdv.js +644 -0
- package/dist/file-upload-_Hh-STdv.js.map +1 -0
- package/dist/file-upload.d.ts +4 -0
- package/dist/file-upload.js +1 -0
- package/dist/form-context-DBnVT1lw.js +5 -0
- package/dist/form-context-DBnVT1lw.js.map +1 -0
- package/dist/form-s9HijjTL.js +92 -0
- package/dist/form-s9HijjTL.js.map +1 -0
- package/dist/form.d.ts +3 -0
- package/dist/form.js +1 -0
- package/dist/hover-card-rmd0fD17.js +355 -0
- package/dist/hover-card-rmd0fD17.js.map +1 -0
- package/dist/hover-card.d.ts +9 -0
- package/dist/hover-card.js +1 -0
- package/dist/index-5WtjXdX9.d.ts +63 -0
- package/dist/index-5eBkkEtv.d.ts +36 -0
- package/dist/index-B-vqAG6g.d.ts +33 -0
- package/dist/index-B1uYYVtV.d.ts +18 -0
- package/dist/index-B8E3X1CK.d.ts +66 -0
- package/dist/index-B8Ufhgzu.d.ts +36 -0
- package/dist/index-BJz7OWbi.d.ts +88 -0
- package/dist/index-BMjRueuv.d.ts +40 -0
- package/dist/index-BP7Tmb0E.d.ts +95 -0
- package/dist/index-Bbb1Zgwo.d.ts +50 -0
- package/dist/index-BdJFU5tH.d.ts +28 -0
- package/dist/index-BdfnRo-h.d.ts +55 -0
- package/dist/index-BniQvFN-.d.ts +38 -0
- package/dist/index-Bt0B-8RV.d.ts +14 -0
- package/dist/index-BuWJcRPC.d.ts +18 -0
- package/dist/index-Byf0GNd9.d.ts +41 -0
- package/dist/index-BzHLkAWU.d.ts +35 -0
- package/dist/index-C-QYKtWy.d.ts +28 -0
- package/dist/index-C7nh2Oil.d.ts +40 -0
- package/dist/index-CDKebSlA.d.ts +41 -0
- package/dist/index-CFPqV6qJ.d.ts +72 -0
- package/dist/index-CRJv_zWm.d.ts +37 -0
- package/dist/index-CTzUalDO.d.ts +76 -0
- package/dist/index-CZHLD5cJ.d.ts +17 -0
- package/dist/index-Cgwn5qgy.d.ts +88 -0
- package/dist/index-Ch4h1DFC.d.ts +55 -0
- package/dist/index-Cj3B9gY_.d.ts +50 -0
- package/dist/index-Cj6NwCBD.d.ts +44 -0
- package/dist/index-CkDThwop.d.ts +21 -0
- package/dist/index-Cn-D14iz.d.ts +13 -0
- package/dist/index-CpTiLSql.d.ts +53 -0
- package/dist/index-CqP363e5.d.ts +118 -0
- package/dist/index-Cv4dRdEa.d.ts +72 -0
- package/dist/index-CyI637MF.d.ts +37 -0
- package/dist/index-D11YCkvR.d.ts +42 -0
- package/dist/index-D3yyJGzf.d.ts +74 -0
- package/dist/index-D5PbKxcs.d.ts +26 -0
- package/dist/index-DAYklR-H.d.ts +18 -0
- package/dist/index-DIZSgXHM.d.ts +79 -0
- package/dist/index-DZckp3H0.d.ts +37 -0
- package/dist/index-DaqoBvQf.d.ts +56 -0
- package/dist/index-Df9i45Gr.d.ts +65 -0
- package/dist/index-DqI6n06W.d.ts +59 -0
- package/dist/index-Drp7svmT.d.ts +30 -0
- package/dist/index-DxsUcSGT.d.ts +99 -0
- package/dist/index-Dyyi-1mv.d.ts +35 -0
- package/dist/index-I2ewgOGz.d.ts +76 -0
- package/dist/index-JGhlANKo.d.ts +24 -0
- package/dist/index-KASc7z5u.d.ts +38 -0
- package/dist/index-LTcmDERY.d.ts +65 -0
- package/dist/index-Mf2RPgmw.d.ts +38 -0
- package/dist/index-NdY27G_d.d.ts +58 -0
- package/dist/index-QO79pDtI.d.ts +70 -0
- package/dist/index-S0FIwOSw.d.ts +59 -0
- package/dist/index-UxsyZS_A.d.ts +23 -0
- package/dist/index-W8aOtVIu.d.ts +40 -0
- package/dist/index-WC9xwMaX.d.ts +34 -0
- package/dist/index-Xwb9OtVU.d.ts +7 -0
- package/dist/index-ZWJJ2V_J.d.ts +49 -0
- package/dist/index-_Q_N8ZbU.d.ts +35 -0
- package/dist/index-bC3hHzam.d.ts +101 -0
- package/dist/index-baY49J-s.d.ts +15 -0
- package/dist/index-dCTvA7uS.d.ts +20 -0
- package/dist/index-mhpoLESL.d.ts +77 -0
- package/dist/index-p3t0BKd4.d.ts +22 -0
- package/dist/index-sgaMj_3p.d.ts +69 -0
- package/dist/index-tSLNRqTo.d.ts +33 -0
- package/dist/index-t_lSQgLA.d.ts +1346 -0
- package/dist/index-uL1dEAhG.d.ts +28 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.js +106 -0
- package/dist/label-Ce-gIayi.js +35 -0
- package/dist/label-Ce-gIayi.js.map +1 -0
- package/dist/label.d.ts +3 -0
- package/dist/label.js +1 -0
- package/dist/labelled-part-DB2rXJFG.js +56 -0
- package/dist/labelled-part-DB2rXJFG.js.map +1 -0
- package/dist/link-CZ3ISaPX.js +42 -0
- package/dist/link-CZ3ISaPX.js.map +1 -0
- package/dist/link-attributes-D9UusWws.js +29 -0
- package/dist/link-attributes-D9UusWws.js.map +1 -0
- package/dist/link.d.ts +3 -0
- package/dist/link.js +1 -0
- package/dist/listbox-virtual-He6BWlPj.js +291 -0
- package/dist/listbox-virtual-He6BWlPj.js.map +1 -0
- package/dist/listbox-virtual.d.ts +5 -0
- package/dist/listbox-virtual.js +3 -0
- package/dist/listbox.d.ts +4 -0
- package/dist/listbox.js +1 -0
- package/dist/live-region-style-9ofmajhO.js +46 -0
- package/dist/live-region-style-9ofmajhO.js.map +1 -0
- package/dist/menu-D7TVxPdb.js +144 -0
- package/dist/menu-D7TVxPdb.js.map +1 -0
- package/dist/menu-bar-context-k5vMlwmW.js +13 -0
- package/dist/menu-bar-context-k5vMlwmW.js.map +1 -0
- package/dist/menu-submenu-trigger-ClI2Pm4X.js +885 -0
- package/dist/menu-submenu-trigger-ClI2Pm4X.js.map +1 -0
- package/dist/menu-submenu-trigger-DNH8_uUB.d.ts +127 -0
- package/dist/menu.d.ts +10 -0
- package/dist/menu.js +1 -0
- package/dist/menubar-CQn3AOiQ.js +212 -0
- package/dist/menubar-CQn3AOiQ.js.map +1 -0
- package/dist/menubar.d.ts +3 -0
- package/dist/menubar.js +1 -0
- package/dist/meter-7Qd_WaUY.js +202 -0
- package/dist/meter-7Qd_WaUY.js.map +1 -0
- package/dist/meter.d.ts +3 -0
- package/dist/meter.js +1 -0
- package/dist/month-calendar-root-base-VcD8ZNW5.js +354 -0
- package/dist/month-calendar-root-base-VcD8ZNW5.js.map +1 -0
- package/dist/month-calendar.d.ts +5 -0
- package/dist/month-calendar.js +1 -0
- package/dist/month-picker-DzOYqW1S.js +15 -0
- package/dist/month-picker-DzOYqW1S.js.map +1 -0
- package/dist/month-picker-root-base-ByMK_Mfq.js +158 -0
- package/dist/month-picker-root-base-ByMK_Mfq.js.map +1 -0
- package/dist/month-picker.d.ts +7 -0
- package/dist/month-picker.js +3 -0
- package/dist/month-range-calendar-CJAWu1-Z.js +18 -0
- package/dist/month-range-calendar-CJAWu1-Z.js.map +1 -0
- package/dist/month-range-calendar.d.ts +5 -0
- package/dist/month-range-calendar.js +3 -0
- package/dist/month-range-picker-CRJDG2HG.js +15 -0
- package/dist/month-range-picker-CRJDG2HG.js.map +1 -0
- package/dist/month-range-picker.d.ts +8 -0
- package/dist/month-range-picker.js +3 -0
- package/dist/multiple-calendar-BIb2zfBH.js +176 -0
- package/dist/multiple-calendar-BIb2zfBH.js.map +1 -0
- package/dist/multiple-calendar.d.ts +5 -0
- package/dist/multiple-calendar.js +3 -0
- package/dist/navigation-menu-COTxGol_.js +727 -0
- package/dist/navigation-menu-COTxGol_.js.map +1 -0
- package/dist/navigation-menu.d.ts +5 -0
- package/dist/navigation-menu.js +1 -0
- package/dist/number-field-CqxEnwiS.js +581 -0
- package/dist/number-field-CqxEnwiS.js.map +1 -0
- package/dist/number-field.d.ts +4 -0
- package/dist/number-field.js +1 -0
- package/dist/otp-field-DIDuypLU.js +420 -0
- package/dist/otp-field-DIDuypLU.js.map +1 -0
- package/dist/otp-field.d.ts +4 -0
- package/dist/otp-field.js +1 -0
- package/dist/overlay-handle-DUptsQOb.js +42 -0
- package/dist/overlay-handle-DUptsQOb.js.map +1 -0
- package/dist/overlay-handle-DzC9LJQo.d.ts +16 -0
- package/dist/overlay-portal-Cmn7Dt7E.d.ts +30 -0
- package/dist/overlay-portal-ZNtXmoFd.js +32 -0
- package/dist/overlay-portal-ZNtXmoFd.js.map +1 -0
- package/dist/pagination-BNUjFYxK.js +264 -0
- package/dist/pagination-BNUjFYxK.js.map +1 -0
- package/dist/pagination.d.ts +4 -0
- package/dist/pagination.js +1 -0
- package/dist/parts--mC44S1N.js +1023 -0
- package/dist/parts--mC44S1N.js.map +1 -0
- package/dist/parts-BP00C3Q5.js +874 -0
- package/dist/parts-BP00C3Q5.js.map +1 -0
- package/dist/parts-CMh29O5y.js +14 -0
- package/dist/parts-CMh29O5y.js.map +1 -0
- package/dist/parts-CZqNGRqe.js +20 -0
- package/dist/parts-CZqNGRqe.js.map +1 -0
- package/dist/parts-DMy2yQZs.js +254 -0
- package/dist/parts-DMy2yQZs.js.map +1 -0
- package/dist/parts-DVv0aov9.js +14 -0
- package/dist/parts-DVv0aov9.js.map +1 -0
- package/dist/parts-M3ThgZzl.js +489 -0
- package/dist/parts-M3ThgZzl.js.map +1 -0
- package/dist/parts-stPOp8dr.js +451 -0
- package/dist/parts-stPOp8dr.js.map +1 -0
- package/dist/parts-uxRkRrFr.js +668 -0
- package/dist/parts-uxRkRrFr.js.map +1 -0
- package/dist/password-input-DC39W-do.js +231 -0
- package/dist/password-input-DC39W-do.js.map +1 -0
- package/dist/password-input.d.ts +4 -0
- package/dist/password-input.js +1 -0
- package/dist/popover-BaQTGAYJ.js +328 -0
- package/dist/popover-BaQTGAYJ.js.map +1 -0
- package/dist/popover.d.ts +9 -0
- package/dist/popover.js +1 -0
- package/dist/progress-DH1Xrj73.js +219 -0
- package/dist/progress-DH1Xrj73.js.map +1 -0
- package/dist/progress.d.ts +3 -0
- package/dist/progress.js +1 -0
- package/dist/public-component-AV8E7mGp.js +8 -0
- package/dist/public-component-AV8E7mGp.js.map +1 -0
- package/dist/public-component-DYpU9aDh.d.ts +33 -0
- package/dist/radio-B9YCSnFs.js +159 -0
- package/dist/radio-B9YCSnFs.js.map +1 -0
- package/dist/radio-group-CmSF4FTc.js +173 -0
- package/dist/radio-group-CmSF4FTc.js.map +1 -0
- package/dist/radio-group-context-C196JZ9D.js +5 -0
- package/dist/radio-group-context-C196JZ9D.js.map +1 -0
- package/dist/radio-group.d.ts +4 -0
- package/dist/radio-group.js +1 -0
- package/dist/radio.d.ts +3 -0
- package/dist/radio.js +1 -0
- package/dist/range-calendar-BDbNdL75.js +20 -0
- package/dist/range-calendar-BDbNdL75.js.map +1 -0
- package/dist/range-calendar.d.ts +5 -0
- package/dist/range-calendar.js +1 -0
- package/dist/rating-oC2t52av.js +351 -0
- package/dist/rating-oC2t52av.js.map +1 -0
- package/dist/rating.d.ts +4 -0
- package/dist/rating.js +1 -0
- package/dist/render-part-B5XVbHaS.js +36 -0
- package/dist/render-part-B5XVbHaS.js.map +1 -0
- package/dist/render-part-BaTKiWBp.d.ts +28 -0
- package/dist/render.d.ts +3 -0
- package/dist/render.js +3 -0
- package/dist/roving-context-LyHQFJqZ.js +32 -0
- package/dist/roving-context-LyHQFJqZ.js.map +1 -0
- package/dist/scroll-area-_EApTP33.js +328 -0
- package/dist/scroll-area-_EApTP33.js.map +1 -0
- package/dist/scroll-area.d.ts +3 -0
- package/dist/scroll-area.js +1 -0
- package/dist/search-field-DJIr926A.js +221 -0
- package/dist/search-field-DJIr926A.js.map +1 -0
- package/dist/search-field.d.ts +4 -0
- package/dist/search-field.js +1 -0
- package/dist/segmented-control-BMvmqBpR.js +389 -0
- package/dist/segmented-control-BMvmqBpR.js.map +1 -0
- package/dist/segmented-control.d.ts +4 -0
- package/dist/segmented-control.js +1 -0
- package/dist/select-virtual-BwZrX4bh.js +53 -0
- package/dist/select-virtual-BwZrX4bh.js.map +1 -0
- package/dist/select-virtual.d.ts +3 -0
- package/dist/select-virtual.js +3 -0
- package/dist/select.d.ts +6 -0
- package/dist/select.js +1 -0
- package/dist/separator-SgHyzEHB.js +42 -0
- package/dist/separator-SgHyzEHB.js.map +1 -0
- package/dist/separator.d.ts +3 -0
- package/dist/separator.js +1 -0
- package/dist/slider-DU5Cx7yj.js +539 -0
- package/dist/slider-DU5Cx7yj.js.map +1 -0
- package/dist/slider.d.ts +4 -0
- package/dist/slider.js +1 -0
- package/dist/state-attributes-DhboDeMS.js +14 -0
- package/dist/state-attributes-DhboDeMS.js.map +1 -0
- package/dist/steps-Dl_mMqRB.js +363 -0
- package/dist/steps-Dl_mMqRB.js.map +1 -0
- package/dist/steps.d.ts +4 -0
- package/dist/steps.js +1 -0
- package/dist/switch-CT9QBKOs.js +183 -0
- package/dist/switch-CT9QBKOs.js.map +1 -0
- package/dist/switch.d.ts +4 -0
- package/dist/switch.js +1 -0
- package/dist/tabs-BhVbQ7AV.js +369 -0
- package/dist/tabs-BhVbQ7AV.js.map +1 -0
- package/dist/tabs.d.ts +4 -0
- package/dist/tabs.js +1 -0
- package/dist/tag-group-DdpjWmzb.js +422 -0
- package/dist/tag-group-DdpjWmzb.js.map +1 -0
- package/dist/tag-group.d.ts +4 -0
- package/dist/tag-group.js +1 -0
- package/dist/tags-input-Iw3mST3A.js +627 -0
- package/dist/tags-input-Iw3mST3A.js.map +1 -0
- package/dist/tags-input.d.ts +4 -0
- package/dist/tags-input.js +1 -0
- package/dist/time-field-5Ghk_4SZ.js +76 -0
- package/dist/time-field-5Ghk_4SZ.js.map +1 -0
- package/dist/time-field.d.ts +4 -0
- package/dist/time-field.js +1 -0
- package/dist/time-range-field-DNOZQK4F.js +77 -0
- package/dist/time-range-field-DNOZQK4F.js.map +1 -0
- package/dist/time-range-field.d.ts +4 -0
- package/dist/time-range-field.js +1 -0
- package/dist/toast-DBKxX79M.js +426 -0
- package/dist/toast-DBKxX79M.js.map +1 -0
- package/dist/toast.d.ts +3 -0
- package/dist/toast.js +1 -0
- package/dist/toggle-Cca0PFQv.js +101 -0
- package/dist/toggle-Cca0PFQv.js.map +1 -0
- package/dist/toggle-group-DTUrLX_H.js +102 -0
- package/dist/toggle-group-DTUrLX_H.js.map +1 -0
- package/dist/toggle-group-context-gMEC8r-Z.js +5 -0
- package/dist/toggle-group-context-gMEC8r-Z.js.map +1 -0
- package/dist/toggle-group.d.ts +4 -0
- package/dist/toggle-group.js +1 -0
- package/dist/toggle.d.ts +4 -0
- package/dist/toggle.js +1 -0
- package/dist/toolbar-WU8JwFd0.js +272 -0
- package/dist/toolbar-WU8JwFd0.js.map +1 -0
- package/dist/toolbar.d.ts +3 -0
- package/dist/toolbar.js +1 -0
- package/dist/tooltip-C1kKsTSh.js +358 -0
- package/dist/tooltip-C1kKsTSh.js.map +1 -0
- package/dist/tooltip.d.ts +9 -0
- package/dist/tooltip.js +1 -0
- package/dist/use-color-picker-binding-BrG-whys.js +32 -0
- package/dist/use-color-picker-binding-BrG-whys.js.map +1 -0
- package/dist/use-controllable-B46G4v0A.js +30 -0
- package/dist/use-controllable-B46G4v0A.js.map +1 -0
- package/dist/use-field-control-CdYqr0dK.js +109 -0
- package/dist/use-field-control-CdYqr0dK.js.map +1 -0
- package/dist/use-overlay-root-BkyTQIsX.js +296 -0
- package/dist/use-overlay-root-BkyTQIsX.js.map +1 -0
- package/dist/use-overlay-trigger-D9OXZ_6K.d.ts +12 -0
- package/dist/use-overlay-trigger-KM35pX0a.js +61 -0
- package/dist/use-overlay-trigger-KM35pX0a.js.map +1 -0
- package/dist/use-panel-transition-DF7f1nmF.js +112 -0
- package/dist/use-panel-transition-DF7f1nmF.js.map +1 -0
- package/dist/use-panel-transition-r_BlVRob.d.ts +2 -0
- package/dist/use-positioner-BD24G6q1.js +73 -0
- package/dist/use-positioner-BD24G6q1.js.map +1 -0
- package/dist/use-positioner-D98pYl_K.d.ts +12 -0
- package/dist/use-presence-BcvBOTDI.d.ts +3 -0
- package/dist/use-required-context-CPpEkr4Q.js +11 -0
- package/dist/use-required-context-CPpEkr4Q.js.map +1 -0
- package/dist/use-roving-composite-CW0mE_VU.js +71 -0
- package/dist/use-roving-composite-CW0mE_VU.js.map +1 -0
- package/dist/use-roving-item-B9Cil5Rq.js +42 -0
- package/dist/use-roving-item-B9Cil5Rq.js.map +1 -0
- package/dist/use-segment-group-CAlwM3KP.js +304 -0
- package/dist/use-segment-group-CAlwM3KP.js.map +1 -0
- package/dist/use-virtual-rows-DesBexmk.js +142 -0
- package/dist/use-virtual-rows-DesBexmk.js.map +1 -0
- package/dist/virtual-list-BNvYqnFf.js +49 -0
- package/dist/virtual-list-BNvYqnFf.js.map +1 -0
- package/dist/year-calendar-cYl3WHEM.js +18 -0
- package/dist/year-calendar-cYl3WHEM.js.map +1 -0
- package/dist/year-calendar.d.ts +5 -0
- package/dist/year-calendar.js +3 -0
- package/dist/year-picker-DYQZbF1h.js +15 -0
- package/dist/year-picker-DYQZbF1h.js.map +1 -0
- package/dist/year-picker.d.ts +8 -0
- package/dist/year-picker.js +3 -0
- package/dist/year-range-calendar-ODgfmdiv.js +18 -0
- package/dist/year-range-calendar-ODgfmdiv.js.map +1 -0
- package/dist/year-range-calendar.d.ts +5 -0
- package/dist/year-range-calendar.js +3 -0
- package/dist/year-range-picker-DKXlcy7I.js +15 -0
- package/dist/year-range-picker-DKXlcy7I.js.map +1 -0
- package/dist/year-range-picker.d.ts +8 -0
- package/dist/year-range-picker.js +3 -0
- package/package.json +548 -3
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import { t as useRequiredContext } from "./use-required-context-CPpEkr4Q.js";
|
|
2
|
+
import { t as publicComponent } from "./public-component-AV8E7mGp.js";
|
|
3
|
+
import { n as renderPart, t as asProp } from "./render-part-B5XVbHaS.js";
|
|
4
|
+
import { t as useColorPickerBinding } from "./use-color-picker-binding-BrG-whys.js";
|
|
5
|
+
import { t as useControllable } from "./use-controllable-B46G4v0A.js";
|
|
6
|
+
import { n as useFieldControl, t as OUTSIDE_FIELD } from "./use-field-control-CdYqr0dK.js";
|
|
7
|
+
import { t as elementSetter } from "./use-overlay-root-BkyTQIsX.js";
|
|
8
|
+
import { t as stateAttributes } from "./state-attributes-DhboDeMS.js";
|
|
9
|
+
import { Fragment, computed, defineComponent, h, provide, ref, shallowRef, useId, watch } from "vue";
|
|
10
|
+
import { VISUALLY_HIDDEN_INPUT_STYLE, bridgeForm } from "@fragiola/primitives/form";
|
|
11
|
+
import { clampColorChannel, colorChannelFormat, colorChannelRange, colorSpaceFor, convertColor, formatColor, formatColorChannel, getColorChannel, isSameColor, parseColor, setColorChannel } from "@fragiola/primitives/color";
|
|
12
|
+
import { parseNumber } from "@fragiola/primitives/number";
|
|
13
|
+
// src/components/color-field/color-field-context.ts
|
|
14
|
+
const ColorFieldKey = Symbol("ColorField");
|
|
15
|
+
// src/components/color-field/color-field-input.ts
|
|
16
|
+
/**
|
|
17
|
+
* The text: a textbox (hex), or a `spinbutton` with `channel` (spec/color-field.md); Enter and
|
|
18
|
+
* blur commit it, the arrows step it.
|
|
19
|
+
*/
|
|
20
|
+
const ColorFieldInput = publicComponent(defineComponent({
|
|
21
|
+
name: "ColorFieldInput",
|
|
22
|
+
inheritAttrs: false,
|
|
23
|
+
props: asProp,
|
|
24
|
+
setup(props, { attrs, slots }) {
|
|
25
|
+
const context = useRequiredContext(ColorFieldKey, "ColorField.Input");
|
|
26
|
+
const onKeydown = (event) => {
|
|
27
|
+
if (event.key === "Enter") {
|
|
28
|
+
context.commitText("keyboard", event);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (context.stepKey(event.key, event.shiftKey, event)) event.preventDefault();
|
|
32
|
+
};
|
|
33
|
+
const onInput = (event) => {
|
|
34
|
+
context.onInputText(event.target.value);
|
|
35
|
+
};
|
|
36
|
+
return () => {
|
|
37
|
+
const state = context.state.value;
|
|
38
|
+
const { disabled, readOnly, required } = state;
|
|
39
|
+
const channelMode = context.channel() !== void 0;
|
|
40
|
+
const range = context.range();
|
|
41
|
+
const { field } = context;
|
|
42
|
+
return renderPart("input", {
|
|
43
|
+
attrs,
|
|
44
|
+
slots
|
|
45
|
+
}, props.as, state, {
|
|
46
|
+
id: context.inputId(),
|
|
47
|
+
type: "text",
|
|
48
|
+
role: channelMode ? "spinbutton" : void 0,
|
|
49
|
+
inputmode: channelMode ? "decimal" : void 0,
|
|
50
|
+
autocomplete: "off",
|
|
51
|
+
autocorrect: "off",
|
|
52
|
+
spellcheck: "false",
|
|
53
|
+
value: state.inputValue,
|
|
54
|
+
disabled,
|
|
55
|
+
readonly: readOnly,
|
|
56
|
+
"aria-valuenow": channelMode ? context.channelValue.value ?? void 0 : void 0,
|
|
57
|
+
"aria-valuemin": channelMode ? range?.min : void 0,
|
|
58
|
+
"aria-valuemax": channelMode ? range?.max : void 0,
|
|
59
|
+
"aria-valuetext": channelMode && state.value !== null ? context.valueText.value : void 0,
|
|
60
|
+
"aria-required": required ? "true" : void 0,
|
|
61
|
+
"aria-readonly": readOnly ? "true" : void 0,
|
|
62
|
+
...field.aria(),
|
|
63
|
+
"data-primitives-part": "color-field-input",
|
|
64
|
+
...context.attributes(),
|
|
65
|
+
onInput,
|
|
66
|
+
onKeydown,
|
|
67
|
+
onFocus: field.onFocus,
|
|
68
|
+
onBlur: (event) => {
|
|
69
|
+
context.commitText("input-blur", event);
|
|
70
|
+
field.onBlur();
|
|
71
|
+
},
|
|
72
|
+
ref: context.setInputElement
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}));
|
|
77
|
+
// src/components/color-field/color-field-root.ts
|
|
78
|
+
/** A `Color`, a string `parseColor` reads (`null` when it reads none), or `null`. */
|
|
79
|
+
function toColor(value) {
|
|
80
|
+
if (value === void 0 || value === null) return value;
|
|
81
|
+
return parseColor(value);
|
|
82
|
+
}
|
|
83
|
+
/** Black in `space`: what a channel typed into an empty field is set on. */
|
|
84
|
+
function black(space) {
|
|
85
|
+
return convertColor({
|
|
86
|
+
space: "rgb",
|
|
87
|
+
red: 0,
|
|
88
|
+
green: 0,
|
|
89
|
+
blue: 0,
|
|
90
|
+
alpha: 1
|
|
91
|
+
}, space);
|
|
92
|
+
}
|
|
93
|
+
/** The 24-bit number of a color, plus `amount`, clamped, back to an rgb color. */
|
|
94
|
+
function stepHex(color, amount) {
|
|
95
|
+
const rgb = convertColor(color ?? black("rgb"), "rgb");
|
|
96
|
+
const number = Math.min(Math.max((rgb.red << 16) + (rgb.green << 8) + rgb.blue + amount, 0), 16777215);
|
|
97
|
+
return {
|
|
98
|
+
space: "rgb",
|
|
99
|
+
red: number >> 16 & 255,
|
|
100
|
+
green: number >> 8 & 255,
|
|
101
|
+
blue: number & 255,
|
|
102
|
+
alpha: rgb.alpha
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function round2(value) {
|
|
106
|
+
return Math.round(value * 100) / 100 + 0;
|
|
107
|
+
}
|
|
108
|
+
const COLOR_OR_NULL = [
|
|
109
|
+
Object,
|
|
110
|
+
String,
|
|
111
|
+
null
|
|
112
|
+
];
|
|
113
|
+
// src/components/color-field/parts.ts
|
|
114
|
+
/** spec/color-field.md */
|
|
115
|
+
const ColorField = {
|
|
116
|
+
Root: publicComponent(defineComponent({
|
|
117
|
+
name: "ColorFieldRoot",
|
|
118
|
+
inheritAttrs: false,
|
|
119
|
+
props: {
|
|
120
|
+
...asProp,
|
|
121
|
+
value: {
|
|
122
|
+
type: COLOR_OR_NULL,
|
|
123
|
+
default: void 0
|
|
124
|
+
},
|
|
125
|
+
defaultValue: {
|
|
126
|
+
type: COLOR_OR_NULL,
|
|
127
|
+
default: void 0
|
|
128
|
+
},
|
|
129
|
+
/** The channel the field edits (none: the whole color, as hex). */
|
|
130
|
+
channel: {
|
|
131
|
+
type: String,
|
|
132
|
+
default: void 0
|
|
133
|
+
},
|
|
134
|
+
/** With `channel`, the space it edits it in. */
|
|
135
|
+
colorSpace: {
|
|
136
|
+
type: String,
|
|
137
|
+
default: void 0
|
|
138
|
+
},
|
|
139
|
+
/** The locale of the channel's text (BCP 47; default: the runtime's). */
|
|
140
|
+
locale: {
|
|
141
|
+
type: String,
|
|
142
|
+
default: void 0
|
|
143
|
+
},
|
|
144
|
+
name: {
|
|
145
|
+
type: String,
|
|
146
|
+
default: void 0
|
|
147
|
+
},
|
|
148
|
+
/** The Input's id (generated unless given). */
|
|
149
|
+
id: {
|
|
150
|
+
type: String,
|
|
151
|
+
default: void 0
|
|
152
|
+
},
|
|
153
|
+
disabled: {
|
|
154
|
+
type: Boolean,
|
|
155
|
+
default: false
|
|
156
|
+
},
|
|
157
|
+
readOnly: {
|
|
158
|
+
type: Boolean,
|
|
159
|
+
default: false
|
|
160
|
+
},
|
|
161
|
+
required: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
default: false
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
emits: {
|
|
167
|
+
"update:value": (_value) => true,
|
|
168
|
+
valueChange: (_value, _details) => true
|
|
169
|
+
},
|
|
170
|
+
setup(props, { attrs, slots, emit }) {
|
|
171
|
+
const generatedId = useId();
|
|
172
|
+
const inputId = () => props.id ?? generatedId;
|
|
173
|
+
const report = (next, details) => {
|
|
174
|
+
emit("update:value", next);
|
|
175
|
+
emit("valueChange", next, details);
|
|
176
|
+
};
|
|
177
|
+
const defaultValue = () => props.defaultValue ?? null;
|
|
178
|
+
const binding = useColorPickerBinding(() => props.value !== void 0 || props.defaultValue !== void 0, useControllable(() => toColor(props.value), toColor(defaultValue()) ?? null, report), report);
|
|
179
|
+
const { picker, bound } = binding;
|
|
180
|
+
const own = {
|
|
181
|
+
value: binding.value,
|
|
182
|
+
set: (next, details) => {
|
|
183
|
+
const to = bound();
|
|
184
|
+
if (to === null) {
|
|
185
|
+
binding.set(next, details);
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (next === null) return;
|
|
189
|
+
binding.set(next, details);
|
|
190
|
+
to.commit(next, details);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
const space = computed(() => {
|
|
194
|
+
const current = own.value.value;
|
|
195
|
+
return props.channel === void 0 ? current?.space ?? "rgb" : colorSpaceFor(props.channel, current ?? black("rgb"), props.colorSpace);
|
|
196
|
+
});
|
|
197
|
+
const value = computed(() => {
|
|
198
|
+
const current = own.value.value;
|
|
199
|
+
return current === null || props.channel === void 0 ? current : convertColor(current, space.value);
|
|
200
|
+
});
|
|
201
|
+
const channelValue = computed(() => value.value === null || props.channel === void 0 ? null : getColorChannel(value.value, props.channel));
|
|
202
|
+
const typed = ref(null);
|
|
203
|
+
const input = shallowRef(null);
|
|
204
|
+
const hidden = shallowRef(null);
|
|
205
|
+
const valueText = computed(() => value.value === null ? "" : props.channel === void 0 ? formatColor(value.value, "hex") : formatColorChannel(value.value, props.channel, props.locale));
|
|
206
|
+
const formValue = computed(() => value.value === null ? "" : props.channel === void 0 ? formatColor(value.value, "hex") : String(channelValue.value));
|
|
207
|
+
const field = picker !== null ? OUTSIDE_FIELD : useFieldControl({
|
|
208
|
+
id: inputId,
|
|
209
|
+
labelable: true,
|
|
210
|
+
value: () => formValue.value === "" ? null : formValue.value,
|
|
211
|
+
filled: () => value.value !== null,
|
|
212
|
+
input: () => hidden.value,
|
|
213
|
+
focusTarget: () => input.value
|
|
214
|
+
});
|
|
215
|
+
const disabled = () => props.disabled || field.disabled() || (picker?.disabled() ?? false);
|
|
216
|
+
const state = computed(() => ({
|
|
217
|
+
value: value.value,
|
|
218
|
+
inputValue: typed.value ?? valueText.value,
|
|
219
|
+
disabled: disabled(),
|
|
220
|
+
readOnly: props.readOnly,
|
|
221
|
+
required: props.required
|
|
222
|
+
}));
|
|
223
|
+
const setValue = (next, details) => {
|
|
224
|
+
if (!isSameColor(next, value.value)) own.set(next, details);
|
|
225
|
+
};
|
|
226
|
+
/** The channel's number in `text` (channel mode), or `null`. */
|
|
227
|
+
const channelOf = (text) => {
|
|
228
|
+
const edited = props.channel;
|
|
229
|
+
if (edited === void 0) return null;
|
|
230
|
+
const { format, scale } = colorChannelFormat(edited);
|
|
231
|
+
const parsed = parseNumber(text, {
|
|
232
|
+
locale: props.locale,
|
|
233
|
+
format
|
|
234
|
+
});
|
|
235
|
+
return parsed === null || Number.isNaN(parsed) ? null : round2(clampColorChannel(edited, parsed / scale));
|
|
236
|
+
};
|
|
237
|
+
const withChannel = (number) => {
|
|
238
|
+
const edited = props.channel;
|
|
239
|
+
return setColorChannel(value.value ?? black(space.value), edited, clampColorChannel(edited, round2(number)));
|
|
240
|
+
};
|
|
241
|
+
const commitText = (reason, event) => {
|
|
242
|
+
const text = typed.value;
|
|
243
|
+
if (text === null) return;
|
|
244
|
+
typed.value = null;
|
|
245
|
+
if (props.channel === void 0) {
|
|
246
|
+
if (text.trim() === "") {
|
|
247
|
+
setValue(null, {
|
|
248
|
+
reason: "input-clear",
|
|
249
|
+
event
|
|
250
|
+
});
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
const parsed = parseColor(text);
|
|
254
|
+
if (parsed !== null) setValue(parsed, {
|
|
255
|
+
reason,
|
|
256
|
+
event
|
|
257
|
+
});
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
const number = channelOf(text);
|
|
261
|
+
if (number !== null) setValue(withChannel(number), {
|
|
262
|
+
reason,
|
|
263
|
+
event
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
const stepKey = (key, shiftKey, event) => {
|
|
267
|
+
if (disabled() || props.readOnly) return false;
|
|
268
|
+
const reason = "keyboard";
|
|
269
|
+
const edited = props.channel;
|
|
270
|
+
if (edited === void 0) {
|
|
271
|
+
if (key !== "ArrowUp" && key !== "ArrowDown") return false;
|
|
272
|
+
const base = typed.value === null ? value.value : parseColor(typed.value) ?? value.value;
|
|
273
|
+
typed.value = null;
|
|
274
|
+
setValue(stepHex(base, key === "ArrowUp" ? 1 : -1), {
|
|
275
|
+
reason,
|
|
276
|
+
event
|
|
277
|
+
});
|
|
278
|
+
return true;
|
|
279
|
+
}
|
|
280
|
+
const range = colorChannelRange(edited);
|
|
281
|
+
const base = (typed.value === null ? null : channelOf(typed.value)) ?? (value.value === null ? range.min : getColorChannel(value.value, edited));
|
|
282
|
+
const amount = shiftKey ? range.largeStep : range.step;
|
|
283
|
+
let next;
|
|
284
|
+
switch (key) {
|
|
285
|
+
case "ArrowUp":
|
|
286
|
+
next = base + amount;
|
|
287
|
+
break;
|
|
288
|
+
case "ArrowDown":
|
|
289
|
+
next = base - amount;
|
|
290
|
+
break;
|
|
291
|
+
case "PageUp":
|
|
292
|
+
next = base + range.largeStep;
|
|
293
|
+
break;
|
|
294
|
+
case "PageDown":
|
|
295
|
+
next = base - range.largeStep;
|
|
296
|
+
break;
|
|
297
|
+
case "Home":
|
|
298
|
+
next = range.min;
|
|
299
|
+
break;
|
|
300
|
+
case "End":
|
|
301
|
+
next = range.max;
|
|
302
|
+
break;
|
|
303
|
+
default: return false;
|
|
304
|
+
}
|
|
305
|
+
typed.value = null;
|
|
306
|
+
setValue(withChannel(next), {
|
|
307
|
+
reason,
|
|
308
|
+
event
|
|
309
|
+
});
|
|
310
|
+
return true;
|
|
311
|
+
};
|
|
312
|
+
watch(hidden, (element, _, onCleanup) => {
|
|
313
|
+
if (element === null) return;
|
|
314
|
+
onCleanup(bridgeForm(element, {
|
|
315
|
+
reset: () => {
|
|
316
|
+
typed.value = null;
|
|
317
|
+
if (bound() === null) {
|
|
318
|
+
field.reset();
|
|
319
|
+
const next = toColor(defaultValue()) ?? null;
|
|
320
|
+
if (!isSameColor(next, value.value)) own.set(next, { reason: "none" });
|
|
321
|
+
}
|
|
322
|
+
element.value = formValue.value;
|
|
323
|
+
const text = input.value;
|
|
324
|
+
if (text instanceof HTMLInputElement) text.value = valueText.value;
|
|
325
|
+
},
|
|
326
|
+
invalid: () => input.value
|
|
327
|
+
}));
|
|
328
|
+
}, { flush: "post" });
|
|
329
|
+
const attributes = () => ({
|
|
330
|
+
...stateAttributes({
|
|
331
|
+
disabled: disabled(),
|
|
332
|
+
readonly: props.readOnly,
|
|
333
|
+
required: props.required,
|
|
334
|
+
channel: props.channel
|
|
335
|
+
}),
|
|
336
|
+
...field.attributes()
|
|
337
|
+
});
|
|
338
|
+
provide(ColorFieldKey, {
|
|
339
|
+
state,
|
|
340
|
+
channel: () => props.channel,
|
|
341
|
+
channelValue,
|
|
342
|
+
range: () => props.channel === void 0 ? void 0 : colorChannelRange(props.channel),
|
|
343
|
+
valueText,
|
|
344
|
+
inputId,
|
|
345
|
+
field,
|
|
346
|
+
attributes,
|
|
347
|
+
onInputText: (text) => {
|
|
348
|
+
typed.value = text;
|
|
349
|
+
},
|
|
350
|
+
commitText,
|
|
351
|
+
stepKey,
|
|
352
|
+
setInputElement: elementSetter(input)
|
|
353
|
+
});
|
|
354
|
+
return () => {
|
|
355
|
+
const current = state.value;
|
|
356
|
+
return h(Fragment, [renderPart("div", {
|
|
357
|
+
attrs,
|
|
358
|
+
slots
|
|
359
|
+
}, props.as, current, {
|
|
360
|
+
"data-primitives-part": "color-field-root",
|
|
361
|
+
...attributes()
|
|
362
|
+
}), h("input", {
|
|
363
|
+
ref: (element) => {
|
|
364
|
+
hidden.value = element;
|
|
365
|
+
},
|
|
366
|
+
type: "text",
|
|
367
|
+
"aria-hidden": "true",
|
|
368
|
+
tabindex: -1,
|
|
369
|
+
name: bound() === null ? field.name() ?? props.name : void 0,
|
|
370
|
+
value: formValue.value,
|
|
371
|
+
required: current.required,
|
|
372
|
+
disabled: current.disabled,
|
|
373
|
+
onFocus: () => input.value?.focus(),
|
|
374
|
+
style: VISUALLY_HIDDEN_INPUT_STYLE,
|
|
375
|
+
"data-primitives-part": "color-field-hidden-input"
|
|
376
|
+
})]);
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
})),
|
|
380
|
+
Input: ColorFieldInput
|
|
381
|
+
};
|
|
382
|
+
export { ColorField as t };
|
|
383
|
+
|
|
384
|
+
//# sourceMappingURL=color-field-Di2IbTa3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-field-Di2IbTa3.js","names":[],"sources":["../src/components/color-field/color-field-context.ts","../src/components/color-field/color-field-input.ts","../src/components/color-field/color-field-root.ts","../src/components/color-field/parts.ts"],"sourcesContent":["import type {\n Color,\n ColorChannel,\n ColorChannelRange,\n} from \"@fragiola/primitives/color\";\nimport type { ComputedRef, InjectionKey } from \"vue\";\nimport type { FieldControlBinding } from \"../../composables/use-field-control.ts\";\n\nexport interface ColorFieldContext {\n state: ComputedRef<ColorFieldState>;\n channel: () => ColorChannel | undefined;\n /** The channel's value (channel mode), `null` when empty. */\n channelValue: ComputedRef<number | null>;\n range: () => ColorChannelRange | undefined;\n /** The value's text (the channel's, with `channel`). */\n valueText: ComputedRef<string>;\n inputId: () => string;\n field: FieldControlBinding;\n /** The Root's state attributes and the field's, for the Input too. */\n attributes: () => Record<string, string>;\n onInputText: (text: string) => void;\n /** Parses the typed text and sets the value, or goes back to the value's text. */\n commitText: (reason: \"keyboard\" | \"input-blur\", event: Event) => void;\n /** Handles a step key (`true` when it did). */\n stepKey: (key: string, shiftKey: boolean, event: Event) => boolean;\n setInputElement: (value: unknown) => void;\n}\n\nexport const ColorFieldKey: InjectionKey<ColorFieldContext> =\n Symbol(\"ColorField\");\n\n/** The state every color field part shares. */\nexport interface ColorFieldState {\n value: Color | null;\n inputValue: string;\n disabled: boolean;\n readOnly: boolean;\n required: boolean;\n}\n","import { defineComponent } from \"vue\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { ColorFieldKey, type ColorFieldState } from \"./color-field-context.ts\";\n\n/**\n * The text: a textbox (hex), or a `spinbutton` with `channel` (spec/color-field.md); Enter and\n * blur commit it, the arrows step it.\n */\nexport const ColorFieldInput: PartComponent<\n Record<never, never>,\n ColorFieldState\n> = publicComponent(\n defineComponent({\n name: \"ColorFieldInput\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(\n ColorFieldKey,\n \"ColorField.Input\",\n );\n const onKeydown = (event: KeyboardEvent) => {\n if (event.key === \"Enter\") {\n context.commitText(\"keyboard\", event);\n return;\n }\n if (context.stepKey(event.key, event.shiftKey, event)) {\n event.preventDefault();\n }\n };\n const onInput = (event: Event) => {\n context.onInputText((event.target as HTMLInputElement).value);\n };\n return () => {\n const state = context.state.value;\n const { disabled, readOnly, required } = state;\n const channelMode = context.channel() !== undefined;\n const range = context.range();\n const { field } = context;\n return renderPart(\"input\", { attrs, slots }, props.as, state, {\n id: context.inputId(),\n type: \"text\",\n role: channelMode ? \"spinbutton\" : undefined,\n inputmode: channelMode ? \"decimal\" : undefined,\n autocomplete: \"off\",\n autocorrect: \"off\",\n spellcheck: \"false\",\n value: state.inputValue,\n disabled,\n readonly: readOnly,\n \"aria-valuenow\": channelMode\n ? (context.channelValue.value ?? undefined)\n : undefined,\n \"aria-valuemin\": channelMode ? range?.min : undefined,\n \"aria-valuemax\": channelMode ? range?.max : undefined,\n \"aria-valuetext\":\n channelMode && state.value !== null\n ? context.valueText.value\n : undefined,\n \"aria-required\": required ? \"true\" : undefined,\n \"aria-readonly\": readOnly ? \"true\" : undefined,\n ...field.aria(),\n \"data-primitives-part\": \"color-field-input\",\n ...context.attributes(),\n onInput,\n onKeydown,\n onFocus: field.onFocus,\n onBlur: (event: FocusEvent) => {\n context.commitText(\"input-blur\", event);\n field.onBlur();\n },\n ref: context.setInputElement,\n });\n };\n },\n }),\n);\n","import {\n type Color,\n type ColorChannel,\n type ColorSpace,\n clampColorChannel,\n colorChannelFormat,\n colorChannelRange,\n colorSpaceFor,\n convertColor,\n formatColor,\n formatColorChannel,\n getColorChannel,\n isSameColor,\n parseColor,\n setColorChannel,\n} from \"@fragiola/primitives/color\";\nimport {\n bridgeForm,\n VISUALLY_HIDDEN_INPUT_STYLE,\n} from \"@fragiola/primitives/form\";\nimport { parseNumber } from \"@fragiola/primitives/number\";\nimport {\n computed,\n defineComponent,\n Fragment,\n h,\n type PropType,\n provide,\n ref,\n shallowRef,\n useId,\n watch,\n} from \"vue\";\nimport { useColorPickerBinding } from \"../../composables/use-color-picker-binding.ts\";\nimport { useControllable } from \"../../composables/use-controllable.ts\";\nimport {\n OUTSIDE_FIELD,\n useFieldControl,\n} from \"../../composables/use-field-control.ts\";\nimport { elementSetter } from \"../../composables/use-overlay-root.ts\";\nimport type {\n ChangeDetails,\n ChangeReason,\n} from \"../../utils/change-details.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { stateAttributes } from \"../../utils/state-attributes.ts\";\nimport { ColorFieldKey, type ColorFieldState } from \"./color-field-context.ts\";\n\n/** A `Color`, a string `parseColor` reads (`null` when it reads none), or `null`. */\nfunction toColor(\n value: Color | string | null | undefined,\n): Color | null | undefined {\n if (value === undefined || value === null) {\n return value;\n }\n return parseColor(value);\n}\n\n/** Black in `space`: what a channel typed into an empty field is set on. */\nfunction black(space: ColorSpace): Color {\n return convertColor(\n { space: \"rgb\", red: 0, green: 0, blue: 0, alpha: 1 },\n space,\n );\n}\n\n/** The 24-bit number of a color, plus `amount`, clamped, back to an rgb color. */\nfunction stepHex(color: Color | null, amount: number): Color {\n const rgb = convertColor(color ?? black(\"rgb\"), \"rgb\") as Extract<\n Color,\n { space: \"rgb\" }\n >;\n const number = Math.min(\n Math.max((rgb.red << 16) + (rgb.green << 8) + rgb.blue + amount, 0),\n 0xffffff,\n );\n return {\n space: \"rgb\",\n red: (number >> 16) & 0xff,\n green: (number >> 8) & 0xff,\n blue: number & 0xff,\n alpha: rgb.alpha,\n };\n}\n\nfunction round2(value: number): number {\n return Math.round(value * 100) / 100 + 0;\n}\n\nexport interface ColorFieldRootProps {\n /** A color (or a string `parseColor` reads), or `null` while empty (`v-model:value`). */\n value?: Color | string | null;\n defaultValue?: Color | string | null;\n /** The channel the field edits (none: the whole color, as hex). */\n channel?: ColorChannel;\n /** With `channel`, the space it edits it in. */\n colorSpace?: ColorSpace;\n /** The locale of the channel's text (BCP 47; default: the runtime's). */\n locale?: string;\n name?: string;\n /** The Input's id (generated unless given). */\n id?: string;\n disabled?: boolean;\n readOnly?: boolean;\n required?: boolean;\n}\n\nexport type ColorFieldRootEmits = {\n \"update:value\": (value: Color | null) => true;\n valueChange: (value: Color | null, details: ChangeDetails) => true;\n};\n\nconst COLOR_OR_NULL = [Object, String, null] as PropType<Color | string | null>;\n\n/**\n * Holds a ColorField's value (`v-model:value`), its typed text and its hidden form input\n * (spec/color-field.md: a hex textbox, or the APG spinbutton for one channel; the text commits on\n * Enter and blur).\n */\nexport const ColorFieldRoot: PartComponent<\n ColorFieldRootProps,\n ColorFieldState,\n ColorFieldRootEmits\n> = publicComponent(\n defineComponent({\n name: \"ColorFieldRoot\",\n inheritAttrs: false,\n props: {\n ...asProp,\n value: { type: COLOR_OR_NULL, default: undefined },\n defaultValue: { type: COLOR_OR_NULL, default: undefined },\n /** The channel the field edits (none: the whole color, as hex). */\n channel: {\n type: String as PropType<ColorChannel>,\n default: undefined,\n },\n /** With `channel`, the space it edits it in. */\n colorSpace: {\n type: String as PropType<ColorSpace>,\n default: undefined,\n },\n /** The locale of the channel's text (BCP 47; default: the runtime's). */\n locale: { type: String, default: undefined },\n name: { type: String, default: undefined },\n /** The Input's id (generated unless given). */\n id: { type: String, default: undefined },\n disabled: { type: Boolean, default: false },\n readOnly: { type: Boolean, default: false },\n required: { type: Boolean, default: false },\n },\n emits: {\n \"update:value\": (_value: Color | null) => true,\n valueChange: (_value: Color | null, _details: ChangeDetails) =>\n true,\n },\n setup(props, { attrs, slots, emit }) {\n const generatedId = useId();\n const inputId = () => props.id ?? generatedId;\n const report = (next: Color | null, details: ChangeDetails) => {\n emit(\"update:value\", next);\n emit(\"valueChange\", next, details);\n };\n const defaultValue = () => props.defaultValue ?? null;\n // inside a ColorPicker, bound to its color unless given its own (spec/color-picker.md)\n const binding = useColorPickerBinding(\n () =>\n props.value !== undefined ||\n props.defaultValue !== undefined,\n useControllable<Color | null, ChangeDetails>(\n () => toColor(props.value),\n toColor(defaultValue()) ?? null,\n report,\n ),\n report,\n );\n const { picker, bound } = binding;\n const own = {\n value: binding.value,\n set: (next: Color | null, details: ChangeDetails) => {\n const to = bound();\n if (to === null) {\n binding.set(next, details);\n return;\n }\n // a bound field never commits `null`: its text goes back to the picker's\n if (next === null) {\n return;\n }\n binding.set(next, details);\n to.commit(next, details);\n },\n };\n const space = computed<ColorSpace>(() => {\n const current = own.value.value;\n return props.channel === undefined\n ? (current?.space ?? \"rgb\")\n : colorSpaceFor(\n props.channel,\n current ?? black(\"rgb\"),\n props.colorSpace,\n );\n });\n const value = computed(() => {\n const current = own.value.value;\n return current === null || props.channel === undefined\n ? current\n : convertColor(current, space.value);\n });\n const channelValue = computed(() =>\n value.value === null || props.channel === undefined\n ? null\n : getColorChannel(value.value, props.channel),\n );\n // the text the user typed, until a commit (`null`: the value's text)\n const typed = ref<string | null>(null);\n const input = shallowRef<HTMLElement | null>(null);\n const hidden = shallowRef<HTMLInputElement | null>(null);\n const valueText = computed(() =>\n value.value === null\n ? \"\"\n : props.channel === undefined\n ? formatColor(value.value, \"hex\")\n : formatColorChannel(\n value.value,\n props.channel,\n props.locale,\n ),\n );\n const formValue = computed(() =>\n value.value === null\n ? \"\"\n : props.channel === undefined\n ? formatColor(value.value, \"hex\")\n : String(channelValue.value),\n );\n // inside a ColorPicker, the picker is the field's control: the control reads none\n const field =\n picker !== null\n ? OUTSIDE_FIELD\n : useFieldControl({\n id: inputId,\n labelable: true,\n value: () =>\n formValue.value === \"\" ? null : formValue.value,\n filled: () => value.value !== null,\n input: () => hidden.value,\n focusTarget: () => input.value,\n });\n const disabled = () =>\n props.disabled ||\n field.disabled() ||\n (picker?.disabled() ?? false);\n const state = computed<ColorFieldState>(() => ({\n value: value.value,\n inputValue: typed.value ?? valueText.value,\n disabled: disabled(),\n readOnly: props.readOnly,\n required: props.required,\n }));\n\n const setValue = (next: Color | null, details: ChangeDetails) => {\n if (!isSameColor(next, value.value)) {\n own.set(next, details);\n }\n };\n /** The channel's number in `text` (channel mode), or `null`. */\n const channelOf = (text: string): number | null => {\n const edited = props.channel;\n if (edited === undefined) {\n return null;\n }\n const { format, scale } = colorChannelFormat(edited);\n const parsed = parseNumber(text, {\n locale: props.locale,\n format,\n });\n return parsed === null || Number.isNaN(parsed)\n ? null\n : round2(clampColorChannel(edited, parsed / scale));\n };\n const withChannel = (number: number): Color => {\n const edited = props.channel as ColorChannel;\n return setColorChannel(\n value.value ?? black(space.value),\n edited,\n clampColorChannel(edited, round2(number)),\n );\n };\n const commitText = (\n reason: \"keyboard\" | \"input-blur\",\n event: Event,\n ) => {\n const text = typed.value;\n if (text === null) {\n return;\n }\n typed.value = null;\n if (props.channel === undefined) {\n if (text.trim() === \"\") {\n setValue(null, { reason: \"input-clear\", event });\n return;\n }\n const parsed = parseColor(text);\n if (parsed !== null) {\n setValue(parsed, { reason, event });\n }\n return;\n }\n const number = channelOf(text);\n if (number !== null) {\n setValue(withChannel(number), { reason, event });\n }\n };\n const stepKey = (key: string, shiftKey: boolean, event: Event) => {\n if (disabled() || props.readOnly) {\n return false;\n }\n const reason: ChangeReason = \"keyboard\";\n const edited = props.channel;\n if (edited === undefined) {\n if (key !== \"ArrowUp\" && key !== \"ArrowDown\") {\n return false;\n }\n const base =\n typed.value === null\n ? value.value\n : (parseColor(typed.value) ?? value.value);\n typed.value = null;\n setValue(stepHex(base, key === \"ArrowUp\" ? 1 : -1), {\n reason,\n event,\n });\n return true;\n }\n const range = colorChannelRange(edited);\n const typedNumber =\n typed.value === null ? null : channelOf(typed.value);\n const base =\n typedNumber ??\n (value.value === null\n ? range.min\n : getColorChannel(value.value, edited));\n const amount = shiftKey ? range.largeStep : range.step;\n let next: number;\n switch (key) {\n case \"ArrowUp\":\n next = base + amount;\n break;\n case \"ArrowDown\":\n next = base - amount;\n break;\n case \"PageUp\":\n next = base + range.largeStep;\n break;\n case \"PageDown\":\n next = base - range.largeStep;\n break;\n case \"Home\":\n next = range.min;\n break;\n case \"End\":\n next = range.max;\n break;\n default:\n return false;\n }\n typed.value = null;\n setValue(withChannel(next), { reason, event });\n return true;\n };\n\n // a form reset returns it to its default, and its text with it\n watch(\n hidden,\n (element, _, onCleanup) => {\n if (element === null) {\n return;\n }\n onCleanup(\n bridgeForm(element, {\n reset: () => {\n typed.value = null;\n // a bound field is reset by its picker\n if (bound() === null) {\n field.reset();\n const next =\n toColor(defaultValue()) ?? null;\n if (!isSameColor(next, value.value)) {\n own.set(next, { reason: \"none\" });\n }\n }\n // the rendered texts: Vue sets `value` as a property only, so\n // the browser's reset emptied them, and an unchanged value\n // patches nothing\n element.value = formValue.value;\n const text = input.value;\n if (text instanceof HTMLInputElement) {\n text.value = valueText.value;\n }\n },\n invalid: () => input.value,\n }),\n );\n },\n { flush: \"post\" },\n );\n\n const attributes = () => ({\n ...stateAttributes({\n disabled: disabled(),\n readonly: props.readOnly,\n required: props.required,\n channel: props.channel,\n }),\n ...field.attributes(),\n });\n provide(ColorFieldKey, {\n state,\n channel: () => props.channel,\n channelValue,\n range: () =>\n props.channel === undefined\n ? undefined\n : colorChannelRange(props.channel),\n valueText,\n inputId,\n field,\n attributes,\n onInputText: (text: string) => {\n typed.value = text;\n },\n commitText,\n stepKey,\n setInputElement: elementSetter(input),\n });\n\n return () => {\n const current = state.value;\n return h(Fragment, [\n renderPart(\"div\", { attrs, slots }, props.as, current, {\n \"data-primitives-part\": \"color-field-root\",\n ...attributes(),\n }),\n h(\"input\", {\n ref: (element: unknown) => {\n hidden.value = element as HTMLInputElement | null;\n },\n type: \"text\",\n \"aria-hidden\": \"true\",\n tabindex: -1,\n name:\n bound() === null\n ? (field.name() ?? props.name)\n : undefined,\n value: formValue.value,\n required: current.required,\n disabled: current.disabled,\n onFocus: () => input.value?.focus(),\n style: VISUALLY_HIDDEN_INPUT_STYLE,\n \"data-primitives-part\": \"color-field-hidden-input\",\n }),\n ]);\n };\n },\n }),\n);\n","import { ColorFieldInput } from \"./color-field-input.ts\";\nimport { ColorFieldRoot } from \"./color-field-root.ts\";\n\n/** spec/color-field.md */\nexport const ColorField = {\n Root: ColorFieldRoot,\n Input: ColorFieldInput,\n};\n"],"mappings":";;;;;;;;;;;;;AA4BA,MAAa,gBACT,OAAO,YAAY;;;;;;AChBvB,MAAa,kBAGT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;CACP,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,MAAM,UAAU,mBACZ,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V,MACI,MAAM,MAAM,OACL,MAAM,KAAK,KAAK,MAAM,OACvB,KAAA;KACV,OAAO,UAAU;KACjB,UAAU,QAAQ;KAClB,UAAU,QAAQ;KAClB,eAAe,MAAM,OAAO,MAAM;KAClC,OAAO;KACP,wBAAwB;IAC5B,CAAC,CACL,CAAC;GACL;EACJ;CACJ,CAAC,CC/cK;CACN,OAAO;AACX"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { n as ChangeReason, t as ChangeDetails } from "./change-details-Bc4-Xzdm.js";
|
|
2
|
+
import { n as RenderSlotProps } from "./render-part-BaTKiWBp.js";
|
|
3
|
+
import { a as HslColor, c as ColorFieldRootEmits, i as HsbColor, l as ColorFieldRootProps, n as ColorChannel, o as RgbColor, r as ColorSpace, s as ColorField, t as Color, u as ColorFieldState } from "./index-BMjRueuv.js";
|
|
4
|
+
export { type ChangeDetails, type ChangeReason, type Color, type ColorChannel, ColorField, type ColorFieldRootEmits, type ColorFieldRootProps, type ColorFieldState, type ColorSpace, type HsbColor, type HslColor, type RenderSlotProps, type RgbColor };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as ColorField } from "./color-field-Di2IbTa3.js";
|