@leavepulse/ui 0.43.4 → 0.45.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/README.md +121 -7
- package/dist/assets/{LpCommandPalette-B-0Est4Z.css → LpCommandPalette-nGNnzXqQ.css} +21 -21
- package/dist/assets/{LpDropzone-BBoWvi-J.css → LpDropzone-i4BdMi1H.css} +12 -12
- package/dist/assets/{LpImageEditor-Ct7Y3aNu.css → LpImageEditor-CbMA82g8.css} +6 -6
- package/dist/assets/{LpRollingText-CR1mb0Vt.css → LpRollingText-BGnE6q9j.css} +3 -0
- package/dist/assets/{LpShortcutsDialog-C6YoQ8_M.css → LpShortcutsDialog-CqYX3yy6.css} +28 -7
- package/dist/assets/{LpSkeleton-D7xU8IPV.css → LpSkeleton-H3Z5dEIk.css} +4 -1
- package/dist/assets/{LpTable-BgPLJOXa.css → LpTable-CPwWxTJS.css} +49 -9
- package/dist/chunks/ContextMenuItems-BtKU7074.js +124 -0
- package/dist/chunks/{LayoutCanvas-Dd20boUG.js → LayoutCanvas-BkaGXTjx.js} +26 -9
- package/dist/chunks/{LayoutNode-DGpZA9LX.js → LayoutNode-B3_9E1Xa.js} +28 -12
- package/dist/chunks/{LpActionBar-BlvtGB2P.js → LpActionBar-CnfFVIwC.js} +26 -12
- package/dist/chunks/{LpAddressInput-B-Zvxsn7.js → LpAddressInput-BwX8uo4_.js} +54 -49
- package/dist/chunks/{LpAlert-BAYHDSS1.js → LpAlert-B6ilrM7T.js} +16 -9
- package/dist/chunks/{LpAppShell-BGQVIY-3.js → LpAppShell-C53_RaGF.js} +53 -26
- package/dist/chunks/{LpAutocomplete-DExlIZe_.js → LpAutocomplete-C8IgSMsi.js} +52 -24
- package/dist/chunks/{LpAvatar-B3-xAOH3.js → LpAvatar-C1XStdOo.js} +19 -10
- package/dist/chunks/LpBreadcrumbs-CQJd73Gm.js +95 -0
- package/dist/chunks/{LpButton-5VXXCjwF.js → LpButton-CKSwC6Mu.js} +45 -15
- package/dist/chunks/{LpCalendar-B7Ko5RdR.js → LpCalendar-DrA2McTU.js} +1 -1
- package/dist/chunks/{LpCard-BhI1N_vL.js → LpCard-C2IvucmX.js} +1 -1
- package/dist/chunks/{LpCheckbox-CVccKYaH.js → LpCheckbox-Bkj13CbW.js} +8 -4
- package/dist/chunks/{LpCodeBlock-Bo0B4TFR.js → LpCodeBlock-ca7ANFyW.js} +49 -17
- package/dist/chunks/{LpColorPicker-BlXea7LM.js → LpColorPicker-zz4VGkG4.js} +75 -26
- package/dist/chunks/{LpConfirmDialog-Q-bxff8z.js → LpConfirmDialog-DCw5jR1t.js} +59 -17
- package/dist/chunks/LpConfirmHost-CbywMpMP.js +49 -0
- package/dist/chunks/LpContextMenu-BqkAYa9X.js +69 -0
- package/dist/chunks/LpDatePicker-DuusgT69.js +195 -0
- package/dist/chunks/LpDateRangePicker-DHeuznfC.js +208 -0
- package/dist/chunks/{LpDisclosure-ChQYmjlR.js → LpDisclosure-Cc23-JOT.js} +1 -1
- package/dist/chunks/{LpDrawer-BZ6k3hvo.js → LpDrawer-Dt4aB4Fr.js} +65 -28
- package/dist/chunks/{LpDropdownMenu-DJpoqRCb.js → LpDropdownMenu-DdJGQzPn.js} +2 -1
- package/dist/chunks/{LpEmptyState-Dsdqz1Wj.js → LpEmptyState-BJbZXC8D.js} +1 -1
- package/dist/chunks/LpFieldNotice-wtieLUTj.js +64 -0
- package/dist/chunks/{LpFileTree-_5vFBgaK.js → LpFileTree-CNurOvkV.js} +25 -10
- package/dist/chunks/{LpFileTreeNode-BdcIYKIE.js → LpFileTreeNode-D_qRRdsH.js} +3 -3
- package/dist/chunks/LpFormField-CtVYj6tO.js +101 -0
- package/dist/chunks/{LpIcon-CCnX5_2j.js → LpIcon-DYtaid0K.js} +20 -6
- package/dist/chunks/{LpInput-9EXWUM9B.js → LpInput-D-YGQbEv.js} +58 -20
- package/dist/chunks/{LpLightbox-2sYVMY-S.js → LpLightbox-DSDahF23.js} +148 -61
- package/dist/chunks/{LpLink-DCND-zyu.js → LpLink-Krkjhe_y.js} +15 -6
- package/dist/chunks/{LpLogViewer-CaRy5MeS.js → LpLogViewer-KypbgOyo.js} +300 -72
- package/dist/chunks/{LpMapPicker-ul4oYno6.js → LpMapPicker-Cc84LaM3.js} +39 -14
- package/dist/chunks/{LpMediaGallery-FF-NquIo.js → LpMediaGallery-YKr-cQPN.js} +7 -4
- package/dist/chunks/{LpModal-Bt0pQCI_.js → LpModal-DMMDQHAu.js} +52 -29
- package/dist/chunks/{LpModalNav-YaifHrXC.js → LpModalNav-BVPDyIup.js} +10 -7
- package/dist/chunks/{LpNotificationBell-DyGGsMAM.js → LpNotificationBell-CCwyJP5C.js} +79 -33
- package/dist/chunks/{LpNumberField-CWuX08iX.js → LpNumberField-B77O-z28.js} +21 -8
- package/dist/chunks/{LpNumberFlow-amWYaeuA.js → LpNumberFlow-z4WPZcZu.js} +22 -12
- package/dist/chunks/{LpOtpInput-y2v-pmiN.js → LpOtpInput-CziPF3Oq.js} +37 -8
- package/dist/chunks/{LpPagination-5FxjmmB5.js → LpPagination-BcDlo3r_.js} +31 -20
- package/dist/chunks/{LpPasswordInput--sjYCkLS.js → LpPasswordInput-eKzQhbQP.js} +11 -8
- package/dist/chunks/LpPhoneInput-BCbrrhgE.js +336 -0
- package/dist/chunks/{LpPie-D6OnzwlJ.js → LpPie-BEJ2SfI6.js} +84 -28
- package/dist/chunks/{LpPopover-8268UmlC.js → LpPopover-DCKeqiVn.js} +5 -2
- package/dist/chunks/{LpProgress-Btq5W4Ut.js → LpProgress-CBU1iI69.js} +5 -4
- package/dist/chunks/{LpRadioGroup-xPIuVDO_.js → LpRadioGroup-DmEW0l78.js} +9 -2
- package/dist/chunks/LpRangeCalendar-DZuaRV0W.js +331 -0
- package/dist/chunks/{LpRollingText-CM5gkSeF.js → LpRollingText-DB7upf-5.js} +1 -1
- package/dist/chunks/{LpScrollArea-D8xyKXcF.js → LpScrollArea-Bry1fdOM.js} +14 -2
- package/dist/chunks/{LpSection-aM6J_u51.js → LpSection-tKEH0jYf.js} +1 -1
- package/dist/chunks/{LpSegmented-fV0Sk92p.js → LpSegmented-C09EEam2.js} +8 -4
- package/dist/chunks/{LpSelect-ANIVtrpM.js → LpSelect-DNIL6MB9.js} +50 -31
- package/dist/chunks/{LpSidebar-ClBUwoEz.js → LpSidebar-CQNB0-yU.js} +30 -22
- package/dist/chunks/{LpSidebarNav-llOcs_Fn.js → LpSidebarNav-kx-LdqNU.js} +16 -11
- package/dist/chunks/{LpSkeleton-CTI-vBgW.js → LpSkeleton-BB6XIV-w.js} +1 -1
- package/dist/chunks/{LpSlider-BwNIBkAK.js → LpSlider-Cuzmrd7p.js} +7 -2
- package/dist/chunks/{LpSparkline-C6xQ2dwv.js → LpSparkline-CB80N8SJ.js} +11 -4
- package/dist/chunks/{LpStat-CQaW8R--.js → LpStat-B-7udBRP.js} +2 -2
- package/dist/chunks/{LpStepper-Bk-XaQYU.js → LpStepper-C7XiVKZj.js} +34 -19
- package/dist/chunks/{LpSwitch-Blizvqyt.js → LpSwitch-OrcOJX9m.js} +41 -27
- package/dist/chunks/LpTableFilter-BV8PpLM9.js +158 -0
- package/dist/chunks/{LpTableOfContents-CjvxPMpU.js → LpTableOfContents-BUcAfGPQ.js} +36 -41
- package/dist/chunks/{LpTabs-Cefe_lys.js → LpTabs-29iW1XOx.js} +20 -6
- package/dist/chunks/LpTagsInput-D1SuqbhB.js +300 -0
- package/dist/chunks/LpTextarea-uuScWo6-.js +77 -0
- package/dist/chunks/LpThemeProvider-Be4r2TQX.js +35 -0
- package/dist/chunks/LpThemeSwitcher-B4aVPbNC.js +166 -0
- package/dist/chunks/{LpTilt-DuyKbpkA.js → LpTilt-B7KHX1zH.js} +2 -2
- package/dist/chunks/{LpTimeField-K6nAGboX.js → LpTimeField-Cqe7fXnh.js} +14 -8
- package/dist/chunks/{LpToaster-gDB1EaU3.js → LpToaster-DpJvoCOh.js} +94 -31
- package/dist/chunks/{LpTooltip-hCLPAqMG.js → LpTooltip-CXVKcOXT.js} +14 -6
- package/dist/chunks/LpTooltipProvider-CftjV7Xc.js +25 -0
- package/dist/chunks/{LpTopologyCanvas-Cm1L39uL.js → LpTopologyCanvas-6ozNrQKh.js} +8 -2
- package/dist/chunks/{LpUptimeBar-DvAMno0S.js → LpUptimeBar-ugcv25xj.js} +44 -15
- package/dist/chunks/icons-CkA0njzm.js +43 -0
- package/dist/chunks/{LpThemeSwitcher-Cue-myST.js → useTheme-DJm1JSsY.js} +215 -260
- package/dist/component-names.d.ts +1 -1
- package/dist/components/ContextMenuItems.vue.d.ts +8 -0
- package/dist/components/ContextMenuItems.vue.js +4 -0
- package/dist/components/LayoutCanvas.vue.js +1 -1
- package/dist/components/LayoutNode.vue.d.ts +4 -0
- package/dist/components/LayoutNode.vue.js +1 -1
- package/dist/components/LpActionBar.vue.d.ts +3 -0
- package/dist/components/LpActionBar.vue.js +1 -1
- package/dist/components/LpAddressInput.vue.d.ts +1 -1
- package/dist/components/LpAddressInput.vue.js +1 -1
- package/dist/components/LpAlert.vue.d.ts +9 -0
- package/dist/components/LpAlert.vue.js +1 -1
- package/dist/components/LpAppShell.vue.d.ts +10 -0
- package/dist/components/LpAppShell.vue.js +1 -1
- package/dist/components/LpAutocomplete.vue.d.ts +31 -6
- package/dist/components/LpAutocomplete.vue.js +1 -1
- package/dist/components/LpAvatar.vue.d.ts +3 -3
- package/dist/components/LpAvatar.vue.js +1 -1
- package/dist/components/LpBadge.vue.d.ts +2 -2
- package/dist/components/LpBreadcrumbs.vue.d.ts +13 -9
- package/dist/components/LpBreadcrumbs.vue.js +1 -1
- package/dist/components/LpButton.vue.d.ts +35 -98
- package/dist/components/LpButton.vue.js +1 -1
- package/dist/components/LpCalendar.vue.js +1 -1
- package/dist/components/LpCard.vue.js +1 -1
- package/dist/components/LpChart.vue.d.ts +47 -3
- package/dist/components/LpChart.vue.js +377 -97
- package/dist/components/LpCheckbox.vue.js +1 -1
- package/dist/components/LpCodeBlock.vue.d.ts +2 -0
- package/dist/components/LpCodeBlock.vue.js +1 -1
- package/dist/components/LpColorPicker.vue.d.ts +2 -2
- package/dist/components/LpColorPicker.vue.js +1 -1
- package/dist/components/LpCommandPalette.vue.d.ts +14 -3
- package/dist/components/LpCommandPalette.vue.js +142 -77
- package/dist/components/LpConfirmDialog.vue.d.ts +15 -3
- package/dist/components/LpConfirmDialog.vue.js +1 -1
- package/dist/components/LpConfirmHost.vue.d.ts +9 -0
- package/dist/components/LpConfirmHost.vue.js +4 -0
- package/dist/components/LpContextMenu.vue.d.ts +3 -5
- package/dist/components/LpContextMenu.vue.js +1 -1
- package/dist/components/LpDatePicker.vue.d.ts +24 -6
- package/dist/components/LpDatePicker.vue.js +1 -1
- package/dist/components/LpDateRangePicker.vue.d.ts +60 -0
- package/dist/components/LpDateRangePicker.vue.js +4 -0
- package/dist/components/LpDisclosure.vue.js +1 -1
- package/dist/components/LpDrawer.vue.d.ts +10 -0
- package/dist/components/LpDrawer.vue.js +1 -1
- package/dist/components/LpDropdownMenu.vue.js +1 -1
- package/dist/components/LpDropzone.vue.js +23 -7
- package/dist/components/LpEmptyState.vue.js +1 -1
- package/dist/components/LpFieldNotice.vue.d.ts +8 -0
- package/dist/components/LpFieldNotice.vue.js +4 -0
- package/dist/components/LpFileTree.vue.d.ts +11 -2
- package/dist/components/LpFileTree.vue.js +1 -1
- package/dist/components/LpFileTreeNode.vue.js +1 -1
- package/dist/components/LpFormField.vue.d.ts +13 -1
- package/dist/components/LpFormField.vue.js +1 -1
- package/dist/components/LpIcon.vue.d.ts +0 -1
- package/dist/components/LpIcon.vue.js +1 -1
- package/dist/components/LpImageEditor.vue.js +93 -58
- package/dist/components/LpInput.vue.d.ts +22 -3
- package/dist/components/LpInput.vue.js +1 -1
- package/dist/components/LpLightbox.vue.d.ts +17 -0
- package/dist/components/LpLightbox.vue.js +1 -1
- package/dist/components/LpLink.vue.d.ts +11 -11
- package/dist/components/LpLink.vue.js +1 -1
- package/dist/components/LpLogViewer.vue.d.ts +72 -3
- package/dist/components/LpLogViewer.vue.js +1 -1
- package/dist/components/LpMapPicker.vue.d.ts +4 -4
- package/dist/components/LpMapPicker.vue.js +1 -1
- package/dist/components/LpMediaGallery.vue.js +1 -1
- package/dist/components/LpModal.vue.d.ts +16 -6
- package/dist/components/LpModal.vue.js +1 -1
- package/dist/components/LpModalNav.vue.d.ts +0 -1
- package/dist/components/LpModalNav.vue.js +1 -1
- package/dist/components/LpNotificationBell.vue.d.ts +11 -2
- package/dist/components/LpNotificationBell.vue.js +1 -1
- package/dist/components/LpNumberField.vue.d.ts +2 -0
- package/dist/components/LpNumberField.vue.js +1 -1
- package/dist/components/LpNumberFlow.vue.js +1 -1
- package/dist/components/LpOtpInput.vue.js +1 -1
- package/dist/components/LpPagination.vue.d.ts +2 -0
- package/dist/components/LpPagination.vue.js +1 -1
- package/dist/components/LpPasswordInput.vue.js +1 -1
- package/dist/components/LpPhoneInput.vue.d.ts +13 -0
- package/dist/components/LpPhoneInput.vue.js +1 -1
- package/dist/components/LpPie.vue.d.ts +21 -2
- package/dist/components/LpPie.vue.js +1 -1
- package/dist/components/LpPopover.vue.d.ts +2 -0
- package/dist/components/LpPopover.vue.js +1 -1
- package/dist/components/LpProgress.vue.d.ts +1 -1
- package/dist/components/LpProgress.vue.js +1 -1
- package/dist/components/LpRadioGroup.vue.js +1 -1
- package/dist/components/LpRangeCalendar.vue.d.ts +51 -0
- package/dist/components/LpRangeCalendar.vue.js +4 -0
- package/dist/components/LpRollingText.vue.d.ts +1 -1
- package/dist/components/LpRollingText.vue.js +1 -1
- package/dist/components/LpScrollArea.vue.d.ts +2 -2
- package/dist/components/LpScrollArea.vue.js +1 -1
- package/dist/components/LpSection.vue.d.ts +1 -1
- package/dist/components/LpSection.vue.js +1 -1
- package/dist/components/LpSegmented.vue.d.ts +5 -0
- package/dist/components/LpSegmented.vue.js +1 -1
- package/dist/components/LpSelect.vue.d.ts +1 -0
- package/dist/components/LpSelect.vue.js +1 -1
- package/dist/components/LpShortcutsDialog.vue.d.ts +7 -1
- package/dist/components/LpShortcutsDialog.vue.js +60 -15
- package/dist/components/LpSidebar.vue.d.ts +6 -2
- package/dist/components/LpSidebar.vue.js +1 -1
- package/dist/components/LpSidebarNav.vue.js +1 -1
- package/dist/components/LpSkeleton.vue.js +1 -1
- package/dist/components/LpSlider.vue.js +1 -1
- package/dist/components/LpSparkline.vue.d.ts +1 -0
- package/dist/components/LpSparkline.vue.js +1 -1
- package/dist/components/LpStat.vue.js +1 -1
- package/dist/components/LpStepper.vue.js +1 -1
- package/dist/components/LpSwitch.vue.js +1 -1
- package/dist/components/LpTable.vue.d.ts +107 -3
- package/dist/components/LpTable.vue.js +540 -128
- package/dist/components/LpTableFilter.vue.d.ts +31 -0
- package/dist/components/LpTableFilter.vue.js +4 -0
- package/dist/components/LpTableOfContents.vue.d.ts +4 -2
- package/dist/components/LpTableOfContents.vue.js +1 -1
- package/dist/components/LpTabs.vue.d.ts +2 -0
- package/dist/components/LpTabs.vue.js +1 -1
- package/dist/components/LpTagsInput.vue.d.ts +77 -0
- package/dist/components/LpTagsInput.vue.js +4 -0
- package/dist/components/LpTextarea.vue.d.ts +19 -6
- package/dist/components/LpTextarea.vue.js +1 -1
- package/dist/components/LpThemeProvider.vue.d.ts +22 -0
- package/dist/components/LpThemeProvider.vue.js +4 -0
- package/dist/components/LpThemeSwitcher.vue.d.ts +15 -2
- package/dist/components/LpThemeSwitcher.vue.js +1 -1
- package/dist/components/LpTilt.vue.js +1 -1
- package/dist/components/LpTimeField.vue.js +1 -1
- package/dist/components/LpToaster.vue.d.ts +6 -1
- package/dist/components/LpToaster.vue.js +1 -1
- package/dist/components/LpTooltip.vue.d.ts +1 -2
- package/dist/components/LpTooltip.vue.js +1 -1
- package/dist/components/LpTooltipProvider.vue.d.ts +22 -0
- package/dist/components/LpTooltipProvider.vue.js +4 -0
- package/dist/components/LpTopologyCanvas.vue.js +1 -1
- package/dist/components/LpUptimeBar.vue.d.ts +4 -0
- package/dist/components/LpUptimeBar.vue.js +1 -1
- package/dist/components/chart.d.ts +32 -1
- package/dist/components/chart.js +42 -6
- package/dist/components/codeHighlight.d.ts +6 -0
- package/dist/components/codeHighlight.js +92 -20
- package/dist/components/color.d.ts +1 -1
- package/dist/components/color.js +20 -9
- package/dist/components/commandSearch.js +3 -0
- package/dist/components/confirm.d.ts +25 -0
- package/dist/components/confirm.js +26 -0
- package/dist/components/countries.d.ts +6 -0
- package/dist/components/countries.js +7 -0
- package/dist/components/dateRange.d.ts +43 -0
- package/dist/components/dateRange.js +76 -0
- package/dist/components/exportData.d.ts +58 -0
- package/dist/components/exportData.js +165 -0
- package/dist/components/fileTree.js +16 -7
- package/dist/components/imageCrop.d.ts +42 -0
- package/dist/components/imageCrop.js +47 -0
- package/dist/components/link.d.ts +12 -0
- package/dist/components/link.js +19 -0
- package/dist/components/logSearch.d.ts +18 -0
- package/dist/components/logSearch.js +36 -0
- package/dist/components/modalDepth.d.ts +18 -2
- package/dist/components/modalDepth.js +17 -5
- package/dist/components/otp.d.ts +5 -0
- package/dist/components/otp.js +10 -0
- package/dist/components/phone.d.ts +41 -0
- package/dist/components/phone.js +80 -0
- package/dist/components/sidebar.d.ts +7 -1
- package/dist/components/tableFilter.d.ts +36 -0
- package/dist/components/tableFilter.js +84 -0
- package/dist/components/tableSort.d.ts +8 -0
- package/dist/components/tableSort.js +31 -0
- package/dist/components/tags.d.ts +20 -0
- package/dist/components/tags.js +37 -0
- package/dist/composables/useField.d.ts +38 -0
- package/dist/composables/useField.js +45 -0
- package/dist/composables/useFieldNotice.d.ts +17 -0
- package/dist/composables/useFieldNotice.js +28 -0
- package/dist/composables/useForm.d.ts +53 -0
- package/dist/composables/useForm.js +207 -0
- package/dist/composables/useFormDraft.d.ts +10 -3
- package/dist/composables/useFormDraft.js +9 -14
- package/dist/composables/useHotkeys.d.ts +81 -5
- package/dist/composables/useHotkeys.js +223 -25
- package/dist/composables/useInputFilter.d.ts +17 -0
- package/dist/composables/useInputFilter.js +47 -10
- package/dist/composables/useInputMask.d.ts +59 -0
- package/dist/composables/useInputMask.js +170 -0
- package/dist/composables/useLpConfig.d.ts +24 -0
- package/dist/composables/useLpConfig.js +44 -0
- package/dist/composables/usePaintSelect.d.ts +22 -0
- package/dist/composables/usePaintSelect.js +169 -0
- package/dist/composables/useRovingFocus.js +7 -0
- package/dist/composables/useShift.js +7 -2
- package/dist/composables/useTilt.d.ts +2 -2
- package/dist/composables/useTilt.js +5 -6
- package/dist/composables/useToast.d.ts +20 -0
- package/dist/composables/useToast.js +28 -4
- package/dist/composables/useZoomPan.d.ts +3 -3
- package/dist/composables/useZoomPan.js +4 -4
- package/dist/icons-all.d.ts +1 -0
- package/dist/icons-all.js +3 -0
- package/dist/icons.d.ts +14 -1
- package/dist/index.d.ts +60 -4
- package/dist/index.js +245 -141
- package/dist/kit-icons.d.ts +2 -0
- package/dist/layout/tree.d.ts +2 -0
- package/dist/layout/tree.js +16 -1
- package/dist/layout/useLayout.d.ts +15 -0
- package/dist/layout/useLayout.js +41 -14
- package/dist/theme/backdrop.d.ts +12 -0
- package/dist/theme/presets.d.ts +0 -2
- package/dist/theme/useTheme.d.ts +32 -9
- package/package.json +18 -8
- package/src/component-names.ts +9 -7
- package/src/components/ContextMenuItems.vue +88 -0
- package/src/components/LayoutCanvas.vue +26 -6
- package/src/components/LayoutNode.vue +30 -4
- package/src/components/LpActionBar.vue +31 -8
- package/src/components/LpAddressInput.vue +57 -41
- package/src/components/LpAlert.vue +16 -3
- package/src/components/LpAppShell.vue +45 -12
- package/src/components/LpAutocomplete.vue +47 -10
- package/src/components/LpAvatar.vue +20 -6
- package/src/components/LpBreadcrumbs.vue +65 -41
- package/src/components/LpButton.vue +60 -14
- package/src/components/LpChart.vue +351 -28
- package/src/components/LpCheckbox.vue +7 -3
- package/src/components/LpCodeBlock.vue +50 -14
- package/src/components/LpColorPicker.vue +73 -10
- package/src/components/LpCommandPalette.vue +115 -20
- package/src/components/LpConfirmDialog.vue +68 -17
- package/src/components/LpConfirmHost.vue +59 -0
- package/src/components/LpContextMenu.vue +15 -116
- package/src/components/LpDatePicker.vue +104 -68
- package/src/components/LpDateRangePicker.vue +224 -0
- package/src/components/LpDrawer.vue +56 -19
- package/src/components/LpDropdownMenu.vue +1 -0
- package/src/components/LpDropzone.vue +21 -4
- package/src/components/LpFieldNotice.vue +65 -0
- package/src/components/LpFileTree.vue +33 -7
- package/src/components/LpFormField.vue +59 -7
- package/src/components/LpIcon.vue +22 -4
- package/src/components/LpImageEditor.vue +96 -57
- package/src/components/LpInput.vue +62 -11
- package/src/components/LpLightbox.vue +140 -29
- package/src/components/LpLink.vue +24 -13
- package/src/components/LpLogViewer.vue +311 -39
- package/src/components/LpMapPicker.vue +36 -13
- package/src/components/LpMediaGallery.vue +8 -2
- package/src/components/LpModal.vue +54 -28
- package/src/components/LpModalNav.vue +5 -2
- package/src/components/LpNotificationBell.vue +77 -23
- package/src/components/LpNumberField.vue +21 -6
- package/src/components/LpNumberFlow.vue +26 -10
- package/src/components/LpOtpInput.vue +43 -8
- package/src/components/LpPagination.vue +23 -7
- package/src/components/LpPasswordInput.vue +4 -1
- package/src/components/LpPhoneInput.vue +224 -39
- package/src/components/LpPie.vue +102 -20
- package/src/components/LpPopover.vue +4 -0
- package/src/components/LpProgress.vue +5 -3
- package/src/components/LpRadioGroup.vue +9 -2
- package/src/components/LpRangeCalendar.vue +365 -0
- package/src/components/LpRollingText.vue +3 -0
- package/src/components/LpScrollArea.vue +22 -2
- package/src/components/LpSegmented.vue +12 -2
- package/src/components/LpSelect.vue +0 -0
- package/src/components/LpShortcutsDialog.vue +83 -9
- package/src/components/LpSidebar.vue +14 -9
- package/src/components/LpSidebarNav.vue +17 -5
- package/src/components/LpSkeleton.vue +4 -1
- package/src/components/LpSlider.vue +7 -1
- package/src/components/LpSparkline.vue +11 -3
- package/src/components/LpStepper.vue +23 -10
- package/src/components/LpSwitch.vue +31 -8
- package/src/components/LpTable.vue +668 -90
- package/src/components/LpTableFilter.vue +175 -0
- package/src/components/LpTableOfContents.vue +50 -32
- package/src/components/LpTabs.vue +23 -6
- package/src/components/LpTagsInput.vue +364 -0
- package/src/components/LpTextarea.vue +44 -6
- package/src/components/LpThemeProvider.vue +41 -0
- package/src/components/LpThemeSwitcher.vue +76 -33
- package/src/components/LpTilt.vue +2 -2
- package/src/components/LpTimeField.vue +14 -3
- package/src/components/LpToaster.vue +115 -27
- package/src/components/LpTooltip.vue +29 -5
- package/src/components/LpTooltipProvider.vue +24 -0
- package/src/components/LpTopologyCanvas.vue +19 -2
- package/src/components/LpUptimeBar.vue +46 -8
- package/src/components/chart.ts +82 -8
- package/src/components/codeHighlight.ts +111 -15
- package/src/components/color.ts +30 -9
- package/src/components/commandSearch.ts +6 -0
- package/src/components/confirm.ts +58 -0
- package/src/components/countries.ts +12 -0
- package/src/components/dateRange.ts +134 -0
- package/src/components/exportData.ts +228 -0
- package/src/components/fileTree.ts +19 -7
- package/src/components/imageCrop.ts +107 -0
- package/src/components/link.ts +34 -0
- package/src/components/logSearch.ts +46 -0
- package/src/components/modalDepth.ts +48 -6
- package/src/components/otp.ts +16 -0
- package/src/components/phone.ts +140 -0
- package/src/components/sidebar.ts +7 -1
- package/src/components/tableFilter.ts +122 -0
- package/src/components/tableSort.ts +37 -0
- package/src/components/tags.ts +62 -0
- package/src/composables/useField.ts +83 -0
- package/src/composables/useFieldNotice.ts +59 -0
- package/src/composables/useForm.ts +314 -0
- package/src/composables/useFormDraft.ts +25 -20
- package/src/composables/useHotkeys.ts +355 -28
- package/src/composables/useInputFilter.ts +77 -14
- package/src/composables/useInputMask.ts +254 -0
- package/src/composables/useLpConfig.ts +87 -0
- package/src/composables/usePaintSelect.ts +243 -0
- package/src/composables/useRovingFocus.ts +11 -0
- package/src/composables/useShift.ts +13 -2
- package/src/composables/useTilt.ts +5 -6
- package/src/composables/useToast.ts +56 -4
- package/src/composables/useZoomPan.ts +6 -6
- package/src/iconSubset.d.mts +10 -0
- package/src/iconSubset.mjs +51 -0
- package/src/icons-all.ts +10 -0
- package/src/icons.ts +59 -8
- package/src/index.ts +73 -4
- package/src/kit-icons.ts +5 -0
- package/src/layout/tree.ts +30 -0
- package/src/layout/useLayout.ts +68 -18
- package/src/nuxt.ts +87 -17
- package/src/runtime/config.plugin.ts +14 -0
- package/src/runtime/theme.plugin.ts +43 -23
- package/src/theme/backdrop.ts +69 -0
- package/src/theme/presets.ts +6 -64
- package/src/theme/useTheme.ts +206 -100
- package/src/tokens/tokens.css +46 -0
- package/dist/chunks/LpBreadcrumbs-p4jHe_V-.js +0 -62
- package/dist/chunks/LpContextMenu-CwW1QXe_.js +0 -217
- package/dist/chunks/LpDatePicker-CwOToxGq.js +0 -164
- package/dist/chunks/LpFormField-CazBc2-a.js +0 -62
- package/dist/chunks/LpPhoneInput-BDSKVl_z.js +0 -209
- package/dist/chunks/LpTextarea-t7F6gv8E.js +0 -47
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createElementBlock, createVNode,
|
|
2
|
-
import { _ as _sfc_main$1 } from "./LayoutNode-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, createVNode, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./LayoutNode-B3_9E1Xa.js";
|
|
3
|
+
import { resizeAt, setActiveTab, reorderTab, removeBlock, moveLeaf } from "../layout/tree.js";
|
|
4
|
+
import { layoutController } from "../layout/useLayout.js";
|
|
4
5
|
const _hoisted_1 = { class: "flex min-h-0 min-w-0 flex-1" };
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "LayoutCanvas",
|
|
@@ -13,12 +14,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
14
|
setup(__props) {
|
|
14
15
|
const props = __props;
|
|
15
16
|
const dragId = ref(null);
|
|
17
|
+
const edits = computed(() => {
|
|
18
|
+
const tree = props.modelValue;
|
|
19
|
+
return layoutController(tree) ?? {
|
|
20
|
+
move: (movingId, targetId, side) => moveLeaf(tree, movingId, targetId, side),
|
|
21
|
+
removeBlock: (leafId, index) => removeBlock(tree, leafId, index),
|
|
22
|
+
reorderTab: (leafId, from, to) => reorderTab(tree, leafId, from, to),
|
|
23
|
+
setActive: (leafId, index) => setActiveTab(tree, leafId, index),
|
|
24
|
+
resize: (parent, index, delta) => resizeAt(parent, index, delta),
|
|
25
|
+
beginResize: () => {
|
|
26
|
+
},
|
|
27
|
+
endResize: () => {
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
});
|
|
16
31
|
function onDrop(targetId, side) {
|
|
17
|
-
if (dragId.value)
|
|
32
|
+
if (dragId.value) edits.value.move(dragId.value, targetId, side);
|
|
18
33
|
dragId.value = null;
|
|
19
34
|
}
|
|
20
35
|
function onResize(parent, index, delta) {
|
|
21
|
-
|
|
36
|
+
edits.value.resize(parent, index, delta);
|
|
22
37
|
}
|
|
23
38
|
return (_ctx, _cache) => {
|
|
24
39
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -31,10 +46,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
46
|
onDragstart: _cache[0] || (_cache[0] = (id) => dragId.value = id),
|
|
32
47
|
onDragend: _cache[1] || (_cache[1] = ($event) => dragId.value = null),
|
|
33
48
|
onDrop,
|
|
34
|
-
onSetActive: _cache[2] || (_cache[2] = (leafId, i) =>
|
|
35
|
-
onRemoveBlock: _cache[3] || (_cache[3] = (leafId, i) =>
|
|
36
|
-
onReorderTab: _cache[4] || (_cache[4] = (leafId, from, to) =>
|
|
37
|
-
onResize
|
|
49
|
+
onSetActive: _cache[2] || (_cache[2] = (leafId, i) => edits.value.setActive(leafId, i)),
|
|
50
|
+
onRemoveBlock: _cache[3] || (_cache[3] = (leafId, i) => edits.value.removeBlock(leafId, i)),
|
|
51
|
+
onReorderTab: _cache[4] || (_cache[4] = (leafId, from, to) => edits.value.reorderTab(leafId, from, to)),
|
|
52
|
+
onResize,
|
|
53
|
+
onResizeStart: _cache[5] || (_cache[5] = ($event) => edits.value.beginResize()),
|
|
54
|
+
onResizeEnd: _cache[6] || (_cache[6] = ($event) => edits.value.endResize())
|
|
38
55
|
}, {
|
|
39
56
|
block: withCtx((slotProps) => [
|
|
40
57
|
renderSlot(_ctx.$slots, "block", normalizeProps(guardReactiveProps(slotProps)))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref,
|
|
2
|
-
import { Motion } from "motion-v";
|
|
1
|
+
import { defineComponent, computed, ref, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createVNode, normalizeStyle, withCtx, renderSlot, mergeProps, createElementVNode, createCommentVNode, createBlock, unref, withModifiers, toDisplayString } from "vue";
|
|
2
|
+
import { useReducedMotion, Motion } from "motion-v";
|
|
3
3
|
import { blockTitle } from "../layout/registry.js";
|
|
4
|
-
import { _ as _sfc_main$1 } from "./LpIcon-
|
|
4
|
+
import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
|
|
5
5
|
const _hoisted_1 = ["onPointerdown"];
|
|
6
6
|
const _hoisted_2 = {
|
|
7
7
|
key: 1,
|
|
@@ -20,8 +20,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
edit: { type: Boolean },
|
|
21
21
|
registry: {}
|
|
22
22
|
},
|
|
23
|
-
emits: ["dragstart", "dragend", "drop", "set-active", "remove-block", "reorder-tab", "resize"],
|
|
23
|
+
emits: ["dragstart", "dragend", "drop", "set-active", "remove-block", "reorder-tab", "resize", "resize-start", "resize-end"],
|
|
24
24
|
setup(__props, { emit: __emit }) {
|
|
25
|
+
const reduceMotion = useReducedMotion();
|
|
26
|
+
const layoutTransition = computed(
|
|
27
|
+
() => reduceMotion.value ? { duration: 0 } : { type: "spring", stiffness: 520, damping: 42, mass: 0.9 }
|
|
28
|
+
);
|
|
25
29
|
const props = __props;
|
|
26
30
|
const emit = __emit;
|
|
27
31
|
const hoverSide = ref(null);
|
|
@@ -80,10 +84,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
84
|
else if (py > 1 - edge) hoverSide.value = "bottom";
|
|
81
85
|
else hoverSide.value = "center";
|
|
82
86
|
}
|
|
87
|
+
let stopSplitter = null;
|
|
88
|
+
onBeforeUnmount(() => stopSplitter?.());
|
|
83
89
|
function startSplitter(ev, parent, index) {
|
|
84
90
|
ev.preventDefault();
|
|
85
|
-
const
|
|
91
|
+
const handle = ev.currentTarget;
|
|
92
|
+
const host = handle.parentElement;
|
|
86
93
|
if (!host) return;
|
|
94
|
+
handle.setPointerCapture?.(ev.pointerId);
|
|
95
|
+
emit("resize-start");
|
|
87
96
|
const rect = host.getBoundingClientRect();
|
|
88
97
|
const horizontal = parent.dir === "row";
|
|
89
98
|
const span = horizontal ? rect.width : rect.height;
|
|
@@ -96,9 +105,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
96
105
|
const up = () => {
|
|
97
106
|
window.removeEventListener("pointermove", move);
|
|
98
107
|
window.removeEventListener("pointerup", up);
|
|
108
|
+
window.removeEventListener("pointercancel", up);
|
|
109
|
+
stopSplitter = null;
|
|
110
|
+
emit("resize-end");
|
|
99
111
|
};
|
|
112
|
+
stopSplitter = up;
|
|
100
113
|
window.addEventListener("pointermove", move);
|
|
101
114
|
window.addEventListener("pointerup", up);
|
|
115
|
+
window.addEventListener("pointercancel", up);
|
|
102
116
|
}
|
|
103
117
|
return (_ctx, _cache) => {
|
|
104
118
|
const _component_LayoutNode = resolveComponent("LayoutNode", true);
|
|
@@ -122,7 +136,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
136
|
onSetActive: _cache[3] || (_cache[3] = (l, idx) => emit("set-active", l, idx)),
|
|
123
137
|
onRemoveBlock: _cache[4] || (_cache[4] = (l, idx) => emit("remove-block", l, idx)),
|
|
124
138
|
onReorderTab: _cache[5] || (_cache[5] = (l, from, to) => emit("reorder-tab", l, from, to)),
|
|
125
|
-
onResize: _cache[6] || (_cache[6] = (p, idx, d) => emit("resize", p, idx, d))
|
|
139
|
+
onResize: _cache[6] || (_cache[6] = (p, idx, d) => emit("resize", p, idx, d)),
|
|
140
|
+
onResizeStart: _cache[7] || (_cache[7] = ($event) => emit("resize-start")),
|
|
141
|
+
onResizeEnd: _cache[8] || (_cache[8] = ($event) => emit("resize-end"))
|
|
126
142
|
}, {
|
|
127
143
|
block: withCtx((slotProps) => [
|
|
128
144
|
renderSlot(_ctx.$slots, "block", mergeProps({ ref_for: true }, slotProps))
|
|
@@ -143,7 +159,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
143
159
|
], 2)) : leaf.value ? (openBlock(), createBlock(unref(Motion), {
|
|
144
160
|
key: 1,
|
|
145
161
|
layout: true,
|
|
146
|
-
transition:
|
|
162
|
+
transition: layoutTransition.value,
|
|
147
163
|
class: normalizeClass(["relative flex min-h-0 min-w-0 flex-col", { "opacity-35": __props.dragId === __props.node.id }])
|
|
148
164
|
}, {
|
|
149
165
|
default: withCtx(() => [
|
|
@@ -151,8 +167,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
167
|
key: 0,
|
|
152
168
|
class: "flex shrink-0 items-center gap-1 overflow-x-auto border-b border-line px-1 py-1",
|
|
153
169
|
draggable: __props.edit,
|
|
154
|
-
onDragstart: _cache[
|
|
155
|
-
onDragend: _cache[
|
|
170
|
+
onDragstart: _cache[9] || (_cache[9] = ($event) => emit("dragstart", __props.node.id)),
|
|
171
|
+
onDragend: _cache[10] || (_cache[10] = ($event) => (hoverSide.value = null, emit("dragend")))
|
|
156
172
|
}, [
|
|
157
173
|
(openBlock(true), createElementBlock(Fragment, null, renderList(leaf.value.blocks, (block, i) => {
|
|
158
174
|
return openBlock(), createElementBlock("button", {
|
|
@@ -202,8 +218,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
202
218
|
key: 1,
|
|
203
219
|
class: "absolute inset-0 z-[5]",
|
|
204
220
|
onDragover: onDragOver,
|
|
205
|
-
onDragleave: _cache[
|
|
206
|
-
onDrop: _cache[
|
|
221
|
+
onDragleave: _cache[11] || (_cache[11] = ($event) => hoverSide.value = null),
|
|
222
|
+
onDrop: _cache[12] || (_cache[12] = () => {
|
|
207
223
|
const s = hoverSide.value;
|
|
208
224
|
hoverSide.value = null;
|
|
209
225
|
if (s) emit("drop", __props.node.id, s);
|
|
@@ -216,7 +232,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
216
232
|
], 32)) : createCommentVNode("", true)
|
|
217
233
|
]),
|
|
218
234
|
_: 3
|
|
219
|
-
}, 8, ["class"])) : createCommentVNode("", true);
|
|
235
|
+
}, 8, ["transition", "class"])) : createCommentVNode("", true);
|
|
220
236
|
};
|
|
221
237
|
}
|
|
222
238
|
});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent, useSlots, computed, ref, watch,
|
|
1
|
+
import { defineComponent, useSlots, computed, ref, watch, onBeforeUnmount, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, createCommentVNode, renderSlot, toDisplayString, Fragment, renderList, createTextVNode, unref } from "vue";
|
|
2
|
+
import { useLabels } from "../composables/useLpConfig.js";
|
|
2
3
|
import { useBarStack } from "../components/actionBar.js";
|
|
3
4
|
import { CLOSE_ICON } from "../components/dropdown.js";
|
|
4
|
-
import { _ as _sfc_main$2 } from "./LpButton-
|
|
5
|
-
import { _ as _sfc_main$1 } from "./LpIcon-
|
|
5
|
+
import { _ as _sfc_main$2 } from "./LpButton-CKSwC6Mu.js";
|
|
6
|
+
import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
|
|
6
7
|
const _hoisted_1 = ["aria-label"];
|
|
7
8
|
const _hoisted_2 = {
|
|
8
9
|
key: 1,
|
|
@@ -21,6 +22,7 @@ const _hoisted_5 = {
|
|
|
21
22
|
class: "flex-1"
|
|
22
23
|
};
|
|
23
24
|
const _hoisted_6 = { class: "flex shrink-0 items-center gap-2" };
|
|
25
|
+
const _hoisted_7 = ["aria-label"];
|
|
24
26
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
27
|
__name: "LpActionBar",
|
|
26
28
|
props: {
|
|
@@ -33,13 +35,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
35
|
variant: { default: "default" },
|
|
34
36
|
width: { default: "contained" },
|
|
35
37
|
maxWidth: {},
|
|
36
|
-
ariaLabel: {}
|
|
38
|
+
ariaLabel: {},
|
|
39
|
+
labels: {}
|
|
37
40
|
},
|
|
38
41
|
emits: ["update:open", "dismiss"],
|
|
39
42
|
setup(__props, { emit: __emit }) {
|
|
40
43
|
const props = __props;
|
|
41
44
|
const emit = __emit;
|
|
42
45
|
const slots = useSlots();
|
|
46
|
+
const text = useLabels("actionBar", { dismiss: "Dismiss" }, () => props.labels);
|
|
43
47
|
const resolvedActions = computed(
|
|
44
48
|
() => props.actions.map((a, i) => ({
|
|
45
49
|
...a,
|
|
@@ -62,23 +66,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
66
|
void bars.value;
|
|
63
67
|
return offset();
|
|
64
68
|
});
|
|
69
|
+
let observer = null;
|
|
65
70
|
watch(
|
|
66
71
|
() => props.open,
|
|
67
|
-
|
|
72
|
+
(isOpen) => {
|
|
73
|
+
if (typeof window === "undefined") return;
|
|
68
74
|
if (!isOpen) {
|
|
69
75
|
unregister();
|
|
70
76
|
return;
|
|
71
77
|
}
|
|
72
78
|
register();
|
|
73
|
-
await nextTick();
|
|
74
|
-
if (root.value) setHeight(root.value.getBoundingClientRect().height);
|
|
75
79
|
},
|
|
76
80
|
{ immediate: true }
|
|
77
81
|
);
|
|
82
|
+
watch(root, (el) => {
|
|
83
|
+
observer?.disconnect();
|
|
84
|
+
observer = null;
|
|
85
|
+
if (!el) return;
|
|
86
|
+
setHeight(el.getBoundingClientRect().height);
|
|
87
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
88
|
+
observer = new ResizeObserver(() => setHeight(el.getBoundingClientRect().height));
|
|
89
|
+
observer.observe(el);
|
|
90
|
+
});
|
|
91
|
+
onBeforeUnmount(() => observer?.disconnect());
|
|
78
92
|
return (_ctx, _cache) => {
|
|
79
93
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
80
94
|
createVNode(Transition, {
|
|
81
|
-
"enter-active-class": "animate-[rise-in_var(--duration-medium)_var(--ease-emphasized)]",
|
|
95
|
+
"enter-active-class": "animate-[rise-in_var(--duration-medium)_var(--ease-emphasized)] motion-reduce:animate-none",
|
|
82
96
|
"leave-active-class": "animate-[rise-out_var(--duration-fast)_ease_forwards] motion-reduce:animate-none"
|
|
83
97
|
}, {
|
|
84
98
|
default: withCtx(() => [
|
|
@@ -88,8 +102,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88
102
|
ref: root,
|
|
89
103
|
role: "region",
|
|
90
104
|
"aria-label": __props.ariaLabel ?? __props.title,
|
|
91
|
-
class: normalizeClass(["pointer-events-none fixed inset-x-0 bottom-0
|
|
92
|
-
style: normalizeStyle({ translate: `0 -${stackOffset.value}px
|
|
105
|
+
class: normalizeClass(["pointer-events-none fixed inset-x-0 bottom-0 flex justify-center transition-[translate] duration-[var(--duration-medium)] ease-[var(--ease-emphasized)] motion-reduce:transition-none", __props.width === "full" ? "" : "p-3 sm:p-4"]),
|
|
106
|
+
style: normalizeStyle({ translate: `0 -${stackOffset.value}px`, zIndex: "calc(var(--z-overlay) - 1)" })
|
|
93
107
|
}, [
|
|
94
108
|
createElementVNode("div", {
|
|
95
109
|
class: normalizeClass(["lp-skin-panel pointer-events-auto flex items-center gap-3 border-solid bg-surface-overlay", [
|
|
@@ -147,7 +161,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
147
161
|
__props.dismissible ? (openBlock(), createElementBlock("button", {
|
|
148
162
|
key: 0,
|
|
149
163
|
type: "button",
|
|
150
|
-
"aria-label":
|
|
164
|
+
"aria-label": unref(text).dismiss,
|
|
151
165
|
class: "group -mr-1 flex size-8 shrink-0 items-center justify-center rounded-control text-muted outline-none transition-colors duration-[var(--duration-fast)] hover:text-ink focus-visible:ring-2 focus-visible:ring-ring",
|
|
152
166
|
onClick: dismiss
|
|
153
167
|
}, [
|
|
@@ -156,7 +170,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
156
170
|
size: 16,
|
|
157
171
|
class: normalizeClass(unref(CLOSE_ICON))
|
|
158
172
|
}, null, 8, ["class"])
|
|
159
|
-
])) : createCommentVNode("", true)
|
|
173
|
+
], 8, _hoisted_7)) : createCommentVNode("", true)
|
|
160
174
|
])
|
|
161
175
|
], 4)
|
|
162
176
|
], 6)
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent, defineAsyncComponent, computed, ref, onMounted,
|
|
1
|
+
import { defineComponent, defineAsyncComponent, computed, watch, ref, onMounted, openBlock, createElementBlock, mergeProps, unref, createVNode, withCtx, createElementVNode, createBlock, createCommentVNode, createTextVNode, toDisplayString, renderSlot, normalizeClass } from "vue";
|
|
2
|
+
import { useAsyncTask } from "../composables/useAsyncTask.js";
|
|
2
3
|
import { OSM_TILES, createNominatimProvider, emptyAddress, formatAddress } from "../components/address.js";
|
|
3
4
|
import { flagEmoji, loadCountries } from "../components/countries.js";
|
|
4
|
-
import { _ as _sfc_main$2 } from "./LpAutocomplete-
|
|
5
|
-
import { _ as _sfc_main$3 } from "./LpButton-
|
|
6
|
-
import { _ as _sfc_main$1 } from "./LpFormField-
|
|
7
|
-
import { _ as _sfc_main$4 } from "./LpIcon-
|
|
8
|
-
import { _ as _sfc_main$5 } from "./LpInput-
|
|
9
|
-
import { _ as _sfc_main$7 } from "./LpModal-
|
|
10
|
-
import { _ as _sfc_main$6 } from "./LpSelect-
|
|
5
|
+
import { _ as _sfc_main$2 } from "./LpAutocomplete-C8IgSMsi.js";
|
|
6
|
+
import { _ as _sfc_main$3 } from "./LpButton-CKSwC6Mu.js";
|
|
7
|
+
import { _ as _sfc_main$1 } from "./LpFormField-CtVYj6tO.js";
|
|
8
|
+
import { _ as _sfc_main$4 } from "./LpIcon-DYtaid0K.js";
|
|
9
|
+
import { _ as _sfc_main$5 } from "./LpInput-D-YGQbEv.js";
|
|
10
|
+
import { _ as _sfc_main$7 } from "./LpModal-DMMDQHAu.js";
|
|
11
|
+
import { _ as _sfc_main$6 } from "./LpSelect-DNIL6MB9.js";
|
|
11
12
|
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
12
13
|
const _hoisted_1 = { class: "flex items-stretch gap-2" };
|
|
13
14
|
const _hoisted_2 = { class: "grid gap-3 sm:grid-cols-[minmax(0,1fr)_10rem]" };
|
|
@@ -67,10 +68,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
68
|
const fallbackProvider = createNominatimProvider();
|
|
68
69
|
const geocoder = computed(() => props.provider ?? fallbackProvider);
|
|
69
70
|
const value = computed(() => props.modelValue ?? emptyAddress());
|
|
71
|
+
let latest;
|
|
72
|
+
watch(
|
|
73
|
+
() => props.modelValue,
|
|
74
|
+
() => latest = void 0
|
|
75
|
+
);
|
|
70
76
|
function patch(changes) {
|
|
71
|
-
|
|
77
|
+
latest = { ...latest ?? value.value, ...changes };
|
|
78
|
+
emit("update:modelValue", latest);
|
|
79
|
+
}
|
|
80
|
+
function edit(changes) {
|
|
81
|
+
patch({ ...changes, lat: void 0, lon: void 0 });
|
|
72
82
|
}
|
|
73
|
-
const
|
|
83
|
+
const allCountries = ref([]);
|
|
84
|
+
const countries = computed(() => {
|
|
85
|
+
const only = props.only?.map((code) => code.toUpperCase());
|
|
86
|
+
return only?.length ? allCountries.value.filter((c) => only.includes(c.iso2)) : allCountries.value;
|
|
87
|
+
});
|
|
74
88
|
const countryOptions = computed(
|
|
75
89
|
() => countries.value.map((country) => ({
|
|
76
90
|
value: country.iso2,
|
|
@@ -78,40 +92,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
92
|
}))
|
|
79
93
|
);
|
|
80
94
|
onMounted(async () => {
|
|
81
|
-
|
|
82
|
-
const only = props.only?.map((code) => code.toUpperCase());
|
|
83
|
-
countries.value = only?.length ? list.filter((c) => only.includes(c.iso2)) : list;
|
|
95
|
+
allCountries.value = await loadCountries();
|
|
84
96
|
});
|
|
85
97
|
function useSuggestions(field) {
|
|
86
98
|
const options = ref([]);
|
|
87
|
-
const
|
|
88
|
-
let timer;
|
|
89
|
-
let controller;
|
|
99
|
+
const task = useAsyncTask();
|
|
90
100
|
function query(term) {
|
|
91
|
-
if (timer) clearTimeout(timer);
|
|
92
|
-
controller?.abort();
|
|
93
101
|
if (term.trim().length < props.minChars) {
|
|
102
|
+
task.cancel();
|
|
94
103
|
options.value = [];
|
|
95
|
-
loading.value = false;
|
|
96
104
|
return;
|
|
97
105
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
options.value = []
|
|
109
|
-
} finally {
|
|
110
|
-
loading.value = false;
|
|
106
|
+
task.run(
|
|
107
|
+
(signal) => geocoder.value.search(term.trim(), field, {
|
|
108
|
+
country: value.value.country || void 0,
|
|
109
|
+
language: props.language,
|
|
110
|
+
signal
|
|
111
|
+
}),
|
|
112
|
+
{
|
|
113
|
+
delay: props.debounce,
|
|
114
|
+
apply: (found) => options.value = found,
|
|
115
|
+
// Network failure: leave the field usable as free text.
|
|
116
|
+
fail: () => options.value = []
|
|
111
117
|
}
|
|
112
|
-
|
|
118
|
+
);
|
|
113
119
|
}
|
|
114
|
-
return { options, loading, query };
|
|
120
|
+
return { options, loading: task.pending, query };
|
|
115
121
|
}
|
|
116
122
|
const lineSuggestions = useSuggestions("line");
|
|
117
123
|
const citySuggestions = useSuggestions("city");
|
|
@@ -159,19 +165,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
159
165
|
point.value = value.value.lat != null && value.value.lon != null ? { lat: value.value.lat, lon: value.value.lon } : void 0;
|
|
160
166
|
resolved.value = void 0;
|
|
161
167
|
});
|
|
162
|
-
|
|
168
|
+
const reverse = useAsyncTask();
|
|
169
|
+
watch(reverse.pending, (busy) => resolving.value = busy);
|
|
170
|
+
function onPick(next) {
|
|
163
171
|
point.value = next;
|
|
164
|
-
resolving.value = true;
|
|
165
172
|
resolved.value = void 0;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
resolving.value = false;
|
|
174
|
-
}
|
|
173
|
+
reverse.run(
|
|
174
|
+
() => geocoder.value.reverse(next.lat, next.lon, { language: props.language }),
|
|
175
|
+
{
|
|
176
|
+
apply: (found) => resolved.value = found,
|
|
177
|
+
fail: () => resolved.value = void 0
|
|
178
|
+
}
|
|
179
|
+
);
|
|
175
180
|
}
|
|
176
181
|
function confirmPoint() {
|
|
177
182
|
if (!point.value) return;
|
|
@@ -211,7 +216,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
211
216
|
"loading-text": text.value.searching,
|
|
212
217
|
icon: "lucide:map-pin",
|
|
213
218
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = (next) => {
|
|
214
|
-
|
|
219
|
+
edit({ line: next });
|
|
215
220
|
unref(lineSuggestions).query(next);
|
|
216
221
|
}),
|
|
217
222
|
onSelect: onLineSelect
|
|
@@ -265,7 +270,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
265
270
|
"empty-text": text.value.noSuggestions,
|
|
266
271
|
"loading-text": text.value.searching,
|
|
267
272
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = (next) => {
|
|
268
|
-
|
|
273
|
+
edit({ city: next });
|
|
269
274
|
unref(citySuggestions).query(next);
|
|
270
275
|
}),
|
|
271
276
|
onSelect: onCitySelect
|
|
@@ -280,7 +285,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
280
285
|
disabled: __props.disabled,
|
|
281
286
|
size: __props.size,
|
|
282
287
|
autocomplete: "postal-code",
|
|
283
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = (next) =>
|
|
288
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = (next) => edit({ postalCode: next }))
|
|
284
289
|
}, null, 8, ["model-value", "label", "placeholder", "disabled", "size"])
|
|
285
290
|
]),
|
|
286
291
|
createVNode(_sfc_main$1, {
|
|
@@ -295,7 +300,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
295
300
|
disabled: __props.disabled,
|
|
296
301
|
size: __props.size,
|
|
297
302
|
searchable: "",
|
|
298
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = (next) =>
|
|
303
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = (next) => edit({ country: String(next ?? "") }))
|
|
299
304
|
}, null, 8, ["model-value", "options", "placeholder", "search-placeholder", "disabled", "size"])
|
|
300
305
|
]),
|
|
301
306
|
_: 1
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createVNode, createElementVNode, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
2
2
|
import { tv } from "tailwind-variants";
|
|
3
|
-
import { _ as _sfc_main$1 } from "./LpIcon-
|
|
4
|
-
const _hoisted_1 =
|
|
5
|
-
const _hoisted_2 = {
|
|
3
|
+
import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
|
|
4
|
+
const _hoisted_1 = ["role"];
|
|
5
|
+
const _hoisted_2 = { class: "min-w-0" };
|
|
6
|
+
const _hoisted_3 = {
|
|
6
7
|
key: 0,
|
|
7
8
|
class: "font-semibold text-ink"
|
|
8
9
|
};
|
|
@@ -11,7 +12,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
12
|
props: {
|
|
12
13
|
variant: { default: "info" },
|
|
13
14
|
title: {},
|
|
14
|
-
icon: {}
|
|
15
|
+
icon: {},
|
|
16
|
+
live: { type: [String, Boolean], default: void 0 }
|
|
15
17
|
},
|
|
16
18
|
setup(__props) {
|
|
17
19
|
const alert = tv({
|
|
@@ -39,28 +41,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
41
|
danger: "text-danger"
|
|
40
42
|
};
|
|
41
43
|
const props = __props;
|
|
44
|
+
const role = computed(() => {
|
|
45
|
+
const live = props.live ?? (props.variant === "danger" ? "assertive" : false);
|
|
46
|
+
return live === "assertive" ? "alert" : live === "polite" ? "status" : void 0;
|
|
47
|
+
});
|
|
42
48
|
const classes = computed(() => alert({ variant: props.variant }));
|
|
43
49
|
const resolvedIcon = computed(() => props.icon ?? ICONS[props.variant ?? "info"]);
|
|
44
50
|
const iconTone = computed(() => ICON_TONE[props.variant ?? "info"]);
|
|
45
51
|
return (_ctx, _cache) => {
|
|
46
52
|
return openBlock(), createElementBlock("div", {
|
|
47
53
|
class: normalizeClass(classes.value),
|
|
48
|
-
role:
|
|
54
|
+
role: role.value
|
|
49
55
|
}, [
|
|
50
56
|
createVNode(_sfc_main$1, {
|
|
51
57
|
name: resolvedIcon.value,
|
|
52
58
|
size: 18,
|
|
53
|
-
class: normalizeClass(["mt-0.5 shrink-0", iconTone.value])
|
|
59
|
+
class: normalizeClass(["mt-0.5 shrink-0", iconTone.value]),
|
|
60
|
+
"aria-hidden": "true"
|
|
54
61
|
}, null, 8, ["name", "class"]),
|
|
55
|
-
createElementVNode("div",
|
|
56
|
-
__props.title ? (openBlock(), createElementBlock("p",
|
|
62
|
+
createElementVNode("div", _hoisted_2, [
|
|
63
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
57
64
|
createElementVNode("div", {
|
|
58
65
|
class: normalizeClass(["text-muted-strong", __props.title ? "mt-0.5" : ""])
|
|
59
66
|
}, [
|
|
60
67
|
renderSlot(_ctx.$slots, "default")
|
|
61
68
|
], 2)
|
|
62
69
|
])
|
|
63
|
-
],
|
|
70
|
+
], 10, _hoisted_1);
|
|
64
71
|
};
|
|
65
72
|
}
|
|
66
73
|
});
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { defineComponent, computed, watch, openBlock, createElementBlock, mergeProps, unref, createVNode, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps,
|
|
2
|
-
import {
|
|
3
|
-
import { _ as _sfc_main$
|
|
4
|
-
import { _ as _sfc_main$
|
|
1
|
+
import { defineComponent, computed, ref, useId, watch, openBlock, createElementBlock, mergeProps, unref, createElementVNode, withModifiers, toDisplayString, createVNode, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps, normalizeClass, createBlock } from "vue";
|
|
2
|
+
import { useLabels } from "../composables/useLpConfig.js";
|
|
3
|
+
import { _ as _sfc_main$2 } from "./LpButton-CKSwC6Mu.js";
|
|
4
|
+
import { _ as _sfc_main$3 } from "./LpIcon-DYtaid0K.js";
|
|
5
|
+
import { _ as _sfc_main$5 } from "./LpScrollArea-Bry1fdOM.js";
|
|
5
6
|
import { _ as _sfc_main$4 } from "./LpShift-DXNsauQZ.js";
|
|
6
|
-
import { _ as _sfc_main$1 } from "./LpSidebar-
|
|
7
|
+
import { _ as _sfc_main$1 } from "./LpSidebar-CQNB0-yU.js";
|
|
7
8
|
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
8
|
-
const _hoisted_1 =
|
|
9
|
-
const _hoisted_2 = { class: "
|
|
10
|
-
const _hoisted_3 = { class: "
|
|
11
|
-
const _hoisted_4 = {
|
|
9
|
+
const _hoisted_1 = ["href"];
|
|
10
|
+
const _hoisted_2 = { class: "flex min-w-0 flex-1 flex-col" };
|
|
11
|
+
const _hoisted_3 = { class: "relative flex h-16 shrink-0 items-center gap-3 border-b border-line bg-surface px-4 md:px-6" };
|
|
12
|
+
const _hoisted_4 = { class: "truncate text-lg font-semibold" };
|
|
13
|
+
const _hoisted_5 = {
|
|
12
14
|
key: 0,
|
|
13
15
|
class: "min-h-0 flex-1 overflow-hidden"
|
|
14
16
|
};
|
|
@@ -30,7 +32,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
32
|
divider: { type: Boolean, default: true },
|
|
31
33
|
contentClass: { default: "mx-auto w-full max-w-6xl" },
|
|
32
34
|
fullBleed: { type: Boolean },
|
|
33
|
-
loading: { type: Boolean }
|
|
35
|
+
loading: { type: Boolean },
|
|
36
|
+
labels: {}
|
|
34
37
|
},
|
|
35
38
|
emits: ["update:modelValue", "update:open", "update:collapsed", "select"],
|
|
36
39
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -61,10 +64,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
64
|
get: () => props.open ?? false,
|
|
62
65
|
set: (v) => emit("update:open", v)
|
|
63
66
|
});
|
|
67
|
+
const text = useLabels(
|
|
68
|
+
"appShell",
|
|
69
|
+
{ openMenu: "Open menu", skipToContent: "Skip to content" },
|
|
70
|
+
() => props.labels
|
|
71
|
+
);
|
|
72
|
+
const scrollArea = ref(null);
|
|
73
|
+
const mainId = `lp-main-${useId()}`;
|
|
74
|
+
function skipToMain() {
|
|
75
|
+
document.getElementById(mainId)?.focus();
|
|
76
|
+
}
|
|
64
77
|
watch(
|
|
65
78
|
() => props.path,
|
|
66
79
|
() => {
|
|
67
80
|
if (drawerOpen.value) emit("update:open", false);
|
|
81
|
+
scrollArea.value?.viewportEl?.scrollTo({ top: 0, left: 0, behavior: "instant" });
|
|
68
82
|
}
|
|
69
83
|
);
|
|
70
84
|
function onSelect(item) {
|
|
@@ -87,6 +101,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
101
|
);
|
|
88
102
|
return (_ctx, _cache) => {
|
|
89
103
|
return openBlock(), createElementBlock("div", mergeProps({ class: unref(rootClass) }, unref(rest)), [
|
|
104
|
+
createElementVNode("a", {
|
|
105
|
+
href: `#${mainId}`,
|
|
106
|
+
onClick: withModifiers(skipToMain, ["prevent"]),
|
|
107
|
+
class: "sr-only z-(--z-toast) rounded-control bg-surface-raised px-3 py-2 text-sm font-medium text-ink focus:not-sr-only focus:fixed focus:left-3 focus:top-3 focus:outline-none focus:ring-2 focus:ring-ring"
|
|
108
|
+
}, toDisplayString(unref(text).skipToContent), 9, _hoisted_1),
|
|
90
109
|
createVNode(_sfc_main$1, {
|
|
91
110
|
"model-value": __props.modelValue,
|
|
92
111
|
items: __props.items,
|
|
@@ -135,14 +154,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
154
|
key: "3"
|
|
136
155
|
} : void 0
|
|
137
156
|
]), 1032, ["model-value", "items", "sections", "is-active", "open", "mobile-breakpoint", "divider", "loading", "collapsed", "auto-collapse-after"]),
|
|
138
|
-
createElementVNode("div",
|
|
139
|
-
createElementVNode("header",
|
|
157
|
+
createElementVNode("div", _hoisted_2, [
|
|
158
|
+
createElementVNode("header", _hoisted_3, [
|
|
140
159
|
createVNode(_sfc_main$2, {
|
|
141
160
|
class: normalizeClass(burgerClass.value),
|
|
142
161
|
variant: "ghost",
|
|
143
162
|
size: "sm",
|
|
144
163
|
square: "",
|
|
145
|
-
"aria-label":
|
|
164
|
+
"aria-label": unref(text).openMenu,
|
|
146
165
|
onClick: _cache[2] || (_cache[2] = ($event) => emit("update:open", true))
|
|
147
166
|
}, {
|
|
148
167
|
default: withCtx(() => [
|
|
@@ -152,14 +171,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
152
171
|
})
|
|
153
172
|
]),
|
|
154
173
|
_: 1
|
|
155
|
-
}, 8, ["class"]),
|
|
174
|
+
}, 8, ["class", "aria-label"]),
|
|
156
175
|
createVNode(_sfc_main$4, {
|
|
157
176
|
axis: "height",
|
|
158
177
|
class: "flex min-w-0 flex-1 items-center"
|
|
159
178
|
}, {
|
|
160
179
|
default: withCtx(() => [
|
|
161
180
|
renderSlot(_ctx.$slots, "header-title", {}, () => [
|
|
162
|
-
createElementVNode("h1",
|
|
181
|
+
createElementVNode("h1", _hoisted_4, toDisplayString(pageTitle.value), 1)
|
|
163
182
|
])
|
|
164
183
|
]),
|
|
165
184
|
_: 3
|
|
@@ -174,18 +193,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
174
193
|
_: 3
|
|
175
194
|
})
|
|
176
195
|
]),
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
"
|
|
183
|
-
}, {
|
|
184
|
-
default: withCtx(() => [
|
|
196
|
+
createElementVNode("main", {
|
|
197
|
+
id: mainId,
|
|
198
|
+
tabindex: "-1",
|
|
199
|
+
class: "flex min-h-0 flex-1 flex-col outline-none"
|
|
200
|
+
}, [
|
|
201
|
+
__props.fullBleed ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
185
202
|
renderSlot(_ctx.$slots, "default")
|
|
186
|
-
]),
|
|
187
|
-
|
|
188
|
-
|
|
203
|
+
])) : (openBlock(), createBlock(_sfc_main$5, {
|
|
204
|
+
key: 1,
|
|
205
|
+
ref_key: "scrollArea",
|
|
206
|
+
ref: scrollArea,
|
|
207
|
+
class: "min-h-0 flex-1",
|
|
208
|
+
"content-class": `px-4 py-6 md:px-6 ${__props.contentClass}`
|
|
209
|
+
}, {
|
|
210
|
+
default: withCtx(() => [
|
|
211
|
+
renderSlot(_ctx.$slots, "default")
|
|
212
|
+
]),
|
|
213
|
+
_: 3
|
|
214
|
+
}, 8, ["content-class"]))
|
|
215
|
+
])
|
|
189
216
|
]),
|
|
190
217
|
renderSlot(_ctx.$slots, "overlays")
|
|
191
218
|
], 16);
|