@leavepulse/ui 0.43.3 → 0.44.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 +75 -7
- package/dist/assets/{LpCommandPalette-DH7sPcKP.css → LpCommandPalette-DCP5g2ik.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/{LpShortcutsDialog-C6YoQ8_M.css → LpShortcutsDialog-ChUyU7oV.css} +7 -7
- package/dist/assets/{LpSkeleton-D7xU8IPV.css → LpSkeleton-H3Z5dEIk.css} +4 -1
- package/dist/assets/{LpTable-BgPLJOXa.css → LpTable-DDQNdf86.css} +9 -9
- package/dist/chunks/ContextMenuItems-CrfeNPWT.js +123 -0
- package/dist/chunks/{LayoutCanvas-Dd20boUG.js → LayoutCanvas-D-jPOAvg.js} +26 -9
- package/dist/chunks/{LayoutNode-DGpZA9LX.js → LayoutNode-D8Xy9N-o.js} +20 -8
- package/dist/chunks/{LpActionBar-BlvtGB2P.js → LpActionBar-BbwCF6l5.js} +24 -10
- package/dist/chunks/{LpAddressInput-B-Zvxsn7.js → LpAddressInput-BrOqkZqg.js} +53 -48
- package/dist/chunks/{LpAlert-BAYHDSS1.js → LpAlert-DkOIjsbq.js} +15 -8
- package/dist/chunks/{LpAppShell-BGQVIY-3.js → LpAppShell-BUKPcHco.js} +51 -24
- package/dist/chunks/{LpAutocomplete-DExlIZe_.js → LpAutocomplete-DxV3Y9h4.js} +50 -23
- package/dist/chunks/{LpAvatar-B3-xAOH3.js → LpAvatar-ClBbEYZN.js} +17 -8
- package/dist/chunks/LpBreadcrumbs-B8IJgFIc.js +95 -0
- package/dist/chunks/{LpButton-5VXXCjwF.js → LpButton-kqJBHIIb.js} +44 -14
- package/dist/chunks/{LpCard-BhI1N_vL.js → LpCard-CpRByR0q.js} +1 -1
- package/dist/chunks/{LpCheckbox-CVccKYaH.js → LpCheckbox-DpqchzH4.js} +7 -3
- package/dist/chunks/{LpCodeBlock-Bo0B4TFR.js → LpCodeBlock-DeHJPq7p.js} +48 -16
- package/dist/chunks/{LpColorPicker-BlXea7LM.js → LpColorPicker-Bhf1qxhB.js} +32 -9
- package/dist/chunks/{LpConfirmDialog-Q-bxff8z.js → LpConfirmDialog-CIUOSnWo.js} +58 -16
- package/dist/chunks/LpConfirmHost-CDm0Wtpv.js +49 -0
- package/dist/chunks/LpContextMenu-DQw5dGfG.js +68 -0
- package/dist/chunks/LpDatePicker-Drirx1AK.js +191 -0
- package/dist/chunks/{LpDrawer-BZ6k3hvo.js → LpDrawer-bScx-KMO.js} +63 -26
- package/dist/chunks/{LpFileTree-_5vFBgaK.js → LpFileTree-CSI_5SK2.js} +23 -8
- package/dist/chunks/{LpFileTreeNode-BdcIYKIE.js → LpFileTreeNode-B4MiSQX2.js} +2 -2
- package/dist/chunks/LpFormField-CIk5qosh.js +87 -0
- package/dist/chunks/{LpInput-9EXWUM9B.js → LpInput-C0e8y8_d.js} +26 -11
- package/dist/chunks/{LpLightbox-2sYVMY-S.js → LpLightbox-Mr0W_6HK.js} +147 -60
- package/dist/chunks/{LpLink-DCND-zyu.js → LpLink-Krkjhe_y.js} +15 -6
- package/dist/chunks/{LpLogViewer-CaRy5MeS.js → LpLogViewer-YBOaFnc_.js} +68 -34
- package/dist/chunks/{LpMapPicker-ul4oYno6.js → LpMapPicker-NUzS9e37.js} +38 -13
- package/dist/chunks/{LpMediaGallery-FF-NquIo.js → LpMediaGallery-DfJmMW0I.js} +6 -3
- package/dist/chunks/{LpModal-Bt0pQCI_.js → LpModal-DPwGKBPv.js} +49 -26
- package/dist/chunks/{LpModalNav-YaifHrXC.js → LpModalNav-DPg5H9f3.js} +9 -6
- package/dist/chunks/{LpNotificationBell-DyGGsMAM.js → LpNotificationBell-t5yn-siX.js} +58 -24
- package/dist/chunks/{LpNumberField-CWuX08iX.js → LpNumberField-DWnQKktS.js} +20 -7
- 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-DFngX7Xo.js} +30 -19
- package/dist/chunks/{LpPasswordInput--sjYCkLS.js → LpPasswordInput-CWVDuBJ5.js} +10 -7
- package/dist/chunks/{LpPhoneInput-BDSKVl_z.js → LpPhoneInput-CD-ZTeSd.js} +57 -33
- package/dist/chunks/{LpPie-D6OnzwlJ.js → LpPie-BLco31Nx.js} +78 -21
- package/dist/chunks/{LpPopover-8268UmlC.js → LpPopover-p_e_shN3.js} +4 -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/{LpSegmented-fV0Sk92p.js → LpSegmented-Dejd7cIx.js} +7 -3
- package/dist/chunks/{LpSelect-ANIVtrpM.js → LpSelect-DrRD9I7L.js} +40 -18
- package/dist/chunks/{LpSidebar-ClBUwoEz.js → LpSidebar-BgwUNWpJ.js} +30 -22
- package/dist/chunks/{LpSidebarNav-llOcs_Fn.js → LpSidebarNav-Bqxz8aWT.js} +14 -9
- 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-dXtyrdX9.js} +1 -1
- package/dist/chunks/{LpSwitch-Blizvqyt.js → LpSwitch-B1aLKulj.js} +40 -26
- package/dist/chunks/{LpTableOfContents-CjvxPMpU.js → LpTableOfContents-BUcAfGPQ.js} +36 -41
- package/dist/chunks/{LpTabs-Cefe_lys.js → LpTabs-_qMVaZJ6.js} +19 -5
- package/dist/chunks/LpTextarea-yP8hGedR.js +77 -0
- package/dist/chunks/LpThemeProvider-Wjm7Tuit.js +35 -0
- package/dist/chunks/LpThemeSwitcher-CKLc10KZ.js +169 -0
- package/dist/chunks/{LpTilt-DuyKbpkA.js → LpTilt-B7KHX1zH.js} +2 -2
- package/dist/chunks/{LpTimeField-K6nAGboX.js → LpTimeField-C5HRgS5H.js} +13 -7
- package/dist/chunks/{LpToaster-gDB1EaU3.js → LpToaster--oT6lfhL.js} +57 -28
- package/dist/chunks/{LpTooltip-hCLPAqMG.js → LpTooltip-CBdzeKNf.js} +13 -6
- package/dist/chunks/LpTooltipProvider-CftjV7Xc.js +25 -0
- package/dist/chunks/{LpTopologyCanvas-Cm1L39uL.js → LpTopologyCanvas-DocsLal3.js} +6 -1
- package/dist/chunks/{LpUptimeBar-DvAMno0S.js → LpUptimeBar-DLtxOMRy.js} +43 -14
- package/dist/chunks/{LpThemeSwitcher-Cue-myST.js → useTheme-C8JHUlPM.js} +173 -215
- 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/LpCard.vue.js +1 -1
- package/dist/components/LpChart.vue.d.ts +31 -2
- package/dist/components/LpChart.vue.js +317 -95
- 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.js +1 -1
- package/dist/components/LpCommandPalette.vue.d.ts +8 -10
- package/dist/components/LpCommandPalette.vue.js +88 -78
- 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/LpDrawer.vue.d.ts +10 -0
- package/dist/components/LpDrawer.vue.js +1 -1
- package/dist/components/LpDropzone.vue.js +22 -6
- 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 +9 -0
- package/dist/components/LpFormField.vue.js +1 -1
- package/dist/components/LpImageEditor.vue.js +92 -57
- package/dist/components/LpInput.vue.d.ts +3 -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 +20 -2
- 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.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.js +1 -1
- package/dist/components/LpRadioGroup.vue.js +1 -1
- package/dist/components/LpSection.vue.d.ts +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 +1 -1
- package/dist/components/LpShortcutsDialog.vue.js +11 -8
- 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/LpSwitch.vue.js +1 -1
- package/dist/components/LpTable.vue.d.ts +23 -1
- package/dist/components/LpTable.vue.js +74 -36
- 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/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 +13 -0
- 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 +39 -4
- 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.d.ts +0 -1
- package/dist/components/commandSearch.js +1 -17
- 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/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/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/sidebar.d.ts +7 -1
- package/dist/components/tableSort.d.ts +8 -0
- package/dist/components/tableSort.js +31 -0
- package/dist/composables/useField.d.ts +34 -0
- package/dist/composables/useField.js +45 -0
- package/dist/composables/useFormDraft.d.ts +10 -3
- package/dist/composables/useFormDraft.js +9 -14
- package/dist/composables/useHotkeys.d.ts +17 -1
- package/dist/composables/useHotkeys.js +55 -18
- package/dist/composables/useInputFilter.d.ts +17 -0
- package/dist/composables/useInputFilter.js +47 -10
- package/dist/composables/useLpConfig.d.ts +24 -0
- package/dist/composables/useLpConfig.js +44 -0
- package/dist/composables/useRovingFocus.js +7 -0
- 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/index.d.ts +33 -3
- package/dist/index.js +185 -139
- 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/useTheme.d.ts +32 -9
- package/package.json +8 -7
- package/src/component-names.ts +5 -7
- package/src/components/ContextMenuItems.vue +88 -0
- package/src/components/LayoutCanvas.vue +26 -6
- package/src/components/LayoutNode.vue +19 -2
- package/src/components/LpActionBar.vue +30 -7
- 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 +46 -10
- package/src/components/LpAvatar.vue +19 -5
- package/src/components/LpBreadcrumbs.vue +65 -41
- package/src/components/LpButton.vue +59 -13
- package/src/components/LpChart.vue +272 -28
- package/src/components/LpCheckbox.vue +7 -3
- package/src/components/LpCodeBlock.vue +50 -14
- package/src/components/LpColorPicker.vue +39 -9
- package/src/components/LpCommandPalette.vue +36 -25
- package/src/components/LpConfirmDialog.vue +68 -17
- package/src/components/LpConfirmHost.vue +59 -0
- package/src/components/LpContextMenu.vue +14 -115
- package/src/components/LpDatePicker.vue +99 -68
- package/src/components/LpDrawer.vue +56 -19
- package/src/components/LpDropzone.vue +21 -4
- package/src/components/LpFileTree.vue +33 -7
- package/src/components/LpFormField.vue +30 -7
- package/src/components/LpImageEditor.vue +96 -57
- package/src/components/LpInput.vue +18 -7
- package/src/components/LpLightbox.vue +140 -29
- package/src/components/LpLink.vue +24 -13
- package/src/components/LpLogViewer.vue +86 -17
- package/src/components/LpMapPicker.vue +36 -13
- package/src/components/LpMediaGallery.vue +8 -2
- package/src/components/LpModal.vue +53 -27
- package/src/components/LpModalNav.vue +5 -2
- package/src/components/LpNotificationBell.vue +63 -17
- 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 +53 -27
- package/src/components/LpPie.vue +94 -15
- package/src/components/LpPopover.vue +3 -0
- package/src/components/LpProgress.vue +5 -3
- package/src/components/LpRadioGroup.vue +9 -2
- package/src/components/LpSegmented.vue +12 -2
- package/src/components/LpSelect.vue +0 -0
- package/src/components/LpShortcutsDialog.vue +8 -3
- 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/LpSwitch.vue +30 -7
- package/src/components/LpTable.vue +91 -32
- package/src/components/LpTableOfContents.vue +50 -32
- package/src/components/LpTabs.vue +23 -6
- package/src/components/LpTextarea.vue +44 -6
- package/src/components/LpThemeProvider.vue +41 -0
- package/src/components/LpThemeSwitcher.vue +64 -17
- package/src/components/LpTilt.vue +2 -2
- package/src/components/LpTimeField.vue +14 -3
- package/src/components/LpToaster.vue +66 -26
- package/src/components/LpTooltip.vue +22 -5
- package/src/components/LpTooltipProvider.vue +24 -0
- package/src/components/LpTopologyCanvas.vue +12 -1
- package/src/components/LpUptimeBar.vue +46 -8
- package/src/components/chart.ts +77 -5
- package/src/components/codeHighlight.ts +111 -15
- package/src/components/color.ts +30 -9
- package/src/components/commandSearch.ts +0 -17
- package/src/components/confirm.ts +58 -0
- package/src/components/countries.ts +12 -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/modalDepth.ts +48 -6
- package/src/components/otp.ts +16 -0
- package/src/components/sidebar.ts +7 -1
- package/src/components/tableSort.ts +37 -0
- package/src/composables/useField.ts +79 -0
- package/src/composables/useFormDraft.ts +25 -20
- package/src/composables/useHotkeys.ts +89 -18
- package/src/composables/useInputFilter.ts +77 -14
- package/src/composables/useLpConfig.ts +87 -0
- package/src/composables/useRovingFocus.ts +11 -0
- package/src/composables/useTilt.ts +5 -6
- package/src/composables/useToast.ts +56 -4
- package/src/composables/useZoomPan.ts +6 -6
- package/src/index.ts +38 -3
- package/src/layout/tree.ts +30 -0
- package/src/layout/useLayout.ts +68 -18
- package/src/nuxt.ts +59 -17
- package/src/runtime/config.plugin.ts +14 -0
- package/src/runtime/theme.plugin.ts +42 -22
- package/src/theme/useTheme.ts +206 -100
- 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/LpTextarea-t7F6gv8E.js +0 -47
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, computed, openBlock, createElementBlock, mergeProps, unref, Fragment, renderList, normalizeStyle, createBlock, createVNode, withCtx, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { computeStats, formatSize, sortNodes, subtreeIds, ancestorIds } from "../components/fileTree.js";
|
|
3
3
|
import { _ as _sfc_main$1 } from "./LpEmptyState-Dsdqz1Wj.js";
|
|
4
|
-
import { _ as _sfc_main$3 } from "./LpFileTreeNode-
|
|
4
|
+
import { _ as _sfc_main$3 } from "./LpFileTreeNode-B4MiSQX2.js";
|
|
5
5
|
import { _ as _sfc_main$2 } from "./LpScrollArea-D8xyKXcF.js";
|
|
6
6
|
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
7
|
+
import { useLabels } from "../composables/useLpConfig.js";
|
|
7
8
|
const _hoisted_1 = {
|
|
8
9
|
key: 2,
|
|
9
10
|
class: "flex h-full w-full min-w-0 flex-col"
|
|
@@ -30,8 +31,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
31
|
iconSize: { default: 15 },
|
|
31
32
|
loading: { type: Boolean, default: false },
|
|
32
33
|
skeletonRows: { default: 8 },
|
|
33
|
-
emptyLabel: {
|
|
34
|
-
emptyDescription: {
|
|
34
|
+
emptyLabel: {},
|
|
35
|
+
emptyDescription: {},
|
|
36
|
+
labels: {}
|
|
35
37
|
},
|
|
36
38
|
emits: ["update:selected", "update:expanded", "select", "open", "expand", "collapse", "update:checked", "summary"],
|
|
37
39
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -44,6 +46,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
46
|
if (ids) openIds.value = new Set(ids);
|
|
45
47
|
}
|
|
46
48
|
);
|
|
49
|
+
const text = useLabels(
|
|
50
|
+
"fileTree",
|
|
51
|
+
{
|
|
52
|
+
empty: "No files",
|
|
53
|
+
emptyDescription: "This folder is empty.",
|
|
54
|
+
file: "file",
|
|
55
|
+
files: "files",
|
|
56
|
+
folder: "folder",
|
|
57
|
+
folders: "folders"
|
|
58
|
+
},
|
|
59
|
+
() => props.labels
|
|
60
|
+
);
|
|
47
61
|
const loadingSet = computed(() => new Set(props.loadingIds ?? []));
|
|
48
62
|
const checkedIds = ref(new Set(props.checked ?? []));
|
|
49
63
|
watch(
|
|
@@ -110,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
124
|
sizeLabel: sized ? formatSize(bytes) : "—"
|
|
111
125
|
};
|
|
112
126
|
});
|
|
113
|
-
watch(summary, (value) => emit("summary", value), {
|
|
127
|
+
watch(summary, (value) => emit("summary", value), { immediate: true });
|
|
114
128
|
function setChecked(next) {
|
|
115
129
|
checkedIds.value = next;
|
|
116
130
|
emit("update:checked", [...next]);
|
|
@@ -200,6 +214,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
200
214
|
}
|
|
201
215
|
function collapse(node) {
|
|
202
216
|
if (!openIds.value.has(node.id)) return;
|
|
217
|
+
if (node.children === void 0 && !loadingSet.value.has(node.id)) requested.delete(node.id);
|
|
203
218
|
const next = new Set(openIds.value);
|
|
204
219
|
next.delete(node.id);
|
|
205
220
|
setExpanded(next);
|
|
@@ -333,8 +348,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
333
348
|
], 16)) : !roots.value.length ? (openBlock(), createBlock(_sfc_main$1, {
|
|
334
349
|
key: 1,
|
|
335
350
|
icon: "lucide:folder-search",
|
|
336
|
-
title: __props.emptyLabel,
|
|
337
|
-
description: __props.emptyDescription
|
|
351
|
+
title: __props.emptyLabel ?? unref(text).empty,
|
|
352
|
+
description: __props.emptyDescription ?? unref(text).emptyDescription
|
|
338
353
|
}, null, 8, ["title", "description"])) : (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
339
354
|
createVNode(_sfc_main$2, { class: "min-h-0 w-full min-w-0 flex-1" }, {
|
|
340
355
|
default: withCtx(() => [
|
|
@@ -379,9 +394,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
379
394
|
}),
|
|
380
395
|
__props.checkable && (_ctx.$slots.summary || summary.value.files || summary.value.dirs) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
381
396
|
renderSlot(_ctx.$slots, "summary", normalizeProps(guardReactiveProps(summary.value)), () => [
|
|
382
|
-
createTextVNode(toDisplayString(summary.value.files) + " " + toDisplayString(summary.value.files === 1 ?
|
|
397
|
+
createTextVNode(toDisplayString(summary.value.files) + " " + toDisplayString(summary.value.files === 1 ? unref(text).file : unref(text).files), 1),
|
|
383
398
|
summary.value.dirs ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
384
|
-
createTextVNode(", " + toDisplayString(summary.value.dirs) + " " + toDisplayString(summary.value.dirs === 1 ?
|
|
399
|
+
createTextVNode(", " + toDisplayString(summary.value.dirs) + " " + toDisplayString(summary.value.dirs === 1 ? unref(text).folder : unref(text).folders), 1)
|
|
385
400
|
], 64)) : createCommentVNode("", true),
|
|
386
401
|
summary.value.bytes !== void 0 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
387
402
|
createTextVNode(" · " + toDisplayString(summary.value.sizeLabel), 1)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, mergeProps, unref, createVNode, withCtx, createElementVNode, withModifiers, normalizeStyle, normalizeClass, createBlock, createCommentVNode, renderSlot, createTextVNode, toDisplayString, Transition, Fragment, renderList } from "vue";
|
|
2
2
|
import { prefersReducedMotion, easingToken } from "../composables/easing.js";
|
|
3
3
|
import { sortNodes, formatSize, formatModified, fileIcon } from "../components/fileTree.js";
|
|
4
|
-
import { _ as _sfc_main$3 } from "./LpCheckbox-
|
|
5
|
-
import { _ as _sfc_main$1 } from "./LpContextMenu-
|
|
4
|
+
import { _ as _sfc_main$3 } from "./LpCheckbox-DpqchzH4.js";
|
|
5
|
+
import { _ as _sfc_main$1 } from "./LpContextMenu-DQw5dGfG.js";
|
|
6
6
|
import { _ as _sfc_main$2 } from "./LpIcon-CCnX5_2j.js";
|
|
7
7
|
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
8
8
|
const _hoisted_1 = ["aria-level", "aria-selected", "aria-expanded", "aria-disabled"];
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineComponent, useId, computed, useSlots, openBlock, createElementBlock, mergeProps, unref, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
|
|
2
|
+
import { Label } from "reka-ui";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./LpShift-DXNsauQZ.js";
|
|
4
|
+
import { fieldMessageId, provideField } from "../composables/useField.js";
|
|
5
|
+
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "text-danger"
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_2 = ["id"];
|
|
11
|
+
const _hoisted_3 = ["id"];
|
|
12
|
+
const __default__ = { inheritAttrs: false };
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
+
...__default__,
|
|
15
|
+
__name: "LpFormField",
|
|
16
|
+
props: {
|
|
17
|
+
label: {},
|
|
18
|
+
hint: {},
|
|
19
|
+
error: {},
|
|
20
|
+
required: { type: Boolean },
|
|
21
|
+
id: {},
|
|
22
|
+
invalid: { type: Boolean },
|
|
23
|
+
disabled: { type: Boolean }
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const generated = useId();
|
|
28
|
+
const id = computed(() => props.id ?? generated);
|
|
29
|
+
const messageId = computed(() => fieldMessageId(id.value));
|
|
30
|
+
const slots = useSlots();
|
|
31
|
+
const hasMessage = computed(() => !!props.error || !!props.hint || !!slots.hint);
|
|
32
|
+
provideField(
|
|
33
|
+
computed(() => ({
|
|
34
|
+
id: id.value,
|
|
35
|
+
labelId: props.label ? `${id.value}-label` : void 0,
|
|
36
|
+
describedBy: hasMessage.value ? messageId.value : void 0,
|
|
37
|
+
invalid: !!props.invalid || !!props.error,
|
|
38
|
+
required: !!props.required,
|
|
39
|
+
disabled: !!props.disabled
|
|
40
|
+
}))
|
|
41
|
+
);
|
|
42
|
+
const { class: rootClass, attrs: rest } = useMergedAttrs(
|
|
43
|
+
"flex min-w-0 flex-col gap-1.5"
|
|
44
|
+
);
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return openBlock(), createElementBlock("div", mergeProps({ class: unref(rootClass) }, unref(rest)), [
|
|
47
|
+
__props.label ? (openBlock(), createBlock(unref(Label), {
|
|
48
|
+
key: 0,
|
|
49
|
+
id: `${id.value}-label`,
|
|
50
|
+
for: id.value,
|
|
51
|
+
class: "text-sm font-medium text-ink"
|
|
52
|
+
}, {
|
|
53
|
+
default: withCtx(() => [
|
|
54
|
+
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
55
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_1, "*")) : createCommentVNode("", true)
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["id", "for"])) : createCommentVNode("", true),
|
|
59
|
+
renderSlot(_ctx.$slots, "default", {
|
|
60
|
+
id: id.value,
|
|
61
|
+
describedBy: hasMessage.value ? messageId.value : void 0
|
|
62
|
+
}),
|
|
63
|
+
createVNode(_sfc_main$1, { axis: "height" }, {
|
|
64
|
+
default: withCtx(() => [
|
|
65
|
+
__props.error ? (openBlock(), createElementBlock("p", {
|
|
66
|
+
key: 0,
|
|
67
|
+
id: messageId.value,
|
|
68
|
+
class: "pt-1.5 text-xs text-danger"
|
|
69
|
+
}, toDisplayString(__props.error), 9, _hoisted_2)) : __props.hint || _ctx.$slots.hint ? (openBlock(), createElementBlock("p", {
|
|
70
|
+
key: 1,
|
|
71
|
+
id: messageId.value,
|
|
72
|
+
class: "pt-1.5 text-xs text-muted"
|
|
73
|
+
}, [
|
|
74
|
+
renderSlot(_ctx.$slots, "hint", {}, () => [
|
|
75
|
+
createTextVNode(toDisplayString(__props.hint), 1)
|
|
76
|
+
])
|
|
77
|
+
], 8, _hoisted_3)) : createCommentVNode("", true)
|
|
78
|
+
]),
|
|
79
|
+
_: 3
|
|
80
|
+
})
|
|
81
|
+
], 16);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
_sfc_main as _
|
|
87
|
+
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent, computed, useSlots, useAttrs, ref, openBlock, createBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, withCtx, createElementVNode,
|
|
1
|
+
import { defineComponent, computed, useSlots, useAttrs, ref, openBlock, createBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, unref, withCtx, createElementVNode, createElementBlock, renderSlot, createCommentVNode, mergeProps } from "vue";
|
|
2
2
|
import { tv } from "tailwind-variants";
|
|
3
|
+
import { useFieldControl } from "../composables/useField.js";
|
|
3
4
|
import { useInputFilter } from "../composables/useInputFilter.js";
|
|
4
5
|
import { mergeClass } from "../composables/useMergedClass.js";
|
|
5
|
-
import { _ as _sfc_main$1 } from "./LpFormField-
|
|
6
|
+
import { _ as _sfc_main$1 } from "./LpFormField-CIk5qosh.js";
|
|
6
7
|
import { _ as _sfc_main$2 } from "./LpIcon-CCnX5_2j.js";
|
|
7
8
|
const _hoisted_1 = {
|
|
8
9
|
key: 0,
|
|
9
10
|
class: "flex shrink-0 items-center text-muted"
|
|
10
11
|
};
|
|
11
|
-
const _hoisted_2 = ["type", "value", "placeholder", "disabled", "required", "aria-invalid"];
|
|
12
|
+
const _hoisted_2 = ["id", "type", "value", "placeholder", "disabled", "required", "aria-invalid", "aria-describedby"];
|
|
12
13
|
const __default__ = { inheritAttrs: false };
|
|
13
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
15
|
...__default__,
|
|
@@ -56,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
57
|
});
|
|
57
58
|
const padX = { sm: "px-2.5", md: "px-3", lg: "px-3.5" };
|
|
58
59
|
const props = __props;
|
|
59
|
-
const { isInvalid, onBeforeInput, onPaste } = useInputFilter({
|
|
60
|
+
const { isInvalid, onBeforeInput, onInput: filterInput, onCompositionEnd, onPaste } = useInputFilter({
|
|
60
61
|
pattern: () => props.pattern,
|
|
61
62
|
restrict: () => props.restrict
|
|
62
63
|
});
|
|
@@ -68,9 +69,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
69
|
const hasField = computed(
|
|
69
70
|
() => !!props.label || !!props.hint || !!props.error
|
|
70
71
|
);
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
const field = useFieldControl(() => ({
|
|
73
|
+
wrapped: hasField.value,
|
|
74
|
+
hasMessage: !!props.error || !!props.hint,
|
|
75
|
+
id: typeof attrs.id === "string" ? attrs.id : void 0,
|
|
76
|
+
invalid: props.invalid || !!props.error || patternInvalid.value,
|
|
77
|
+
required: props.required,
|
|
78
|
+
disabled: props.disabled
|
|
79
|
+
}));
|
|
80
|
+
const isInvalidState = computed(() => field.value.invalid);
|
|
74
81
|
const shellClass = computed(
|
|
75
82
|
() => shell({ size: props.size, invalid: isInvalidState.value })
|
|
76
83
|
);
|
|
@@ -93,6 +100,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
100
|
hint: hasField.value ? __props.hint : void 0,
|
|
94
101
|
error: hasField.value ? __props.error : void 0,
|
|
95
102
|
required: hasField.value ? __props.required : void 0,
|
|
103
|
+
id: hasField.value ? unref(field).id : void 0,
|
|
96
104
|
class: normalizeClass(hasField.value ? rootClass.value : void 0),
|
|
97
105
|
style: normalizeStyle(hasField.value ? rootStyle.value : void 0)
|
|
98
106
|
}, {
|
|
@@ -115,12 +123,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
123
|
ref_key: "inputEl",
|
|
116
124
|
ref: inputEl
|
|
117
125
|
}, inputAttrs.value, {
|
|
126
|
+
id: unref(field).id,
|
|
118
127
|
type: __props.type,
|
|
119
128
|
value: __props.modelValue,
|
|
120
129
|
placeholder: __props.placeholder,
|
|
121
|
-
disabled:
|
|
122
|
-
required:
|
|
130
|
+
disabled: unref(field).disabled,
|
|
131
|
+
required: unref(field).required || void 0,
|
|
123
132
|
"aria-invalid": isInvalidState.value || void 0,
|
|
133
|
+
"aria-describedby": unref(field).describedBy,
|
|
124
134
|
class: [
|
|
125
135
|
"lp-autofill min-w-0 flex-1 self-stretch bg-transparent outline-none placeholder:text-muted",
|
|
126
136
|
hasLeading.value ? "pl-2" : padX[__props.size ?? "md"],
|
|
@@ -130,13 +140,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
140
|
(...args) => unref(onBeforeInput) && unref(onBeforeInput)(...args)),
|
|
131
141
|
onPaste: _cache[1] || (_cache[1] = //@ts-ignore
|
|
132
142
|
(...args) => unref(onPaste) && unref(onPaste)(...args)),
|
|
133
|
-
|
|
143
|
+
onCompositionend: _cache[2] || (_cache[2] = //@ts-ignore
|
|
144
|
+
(...args) => unref(onCompositionEnd) && unref(onCompositionEnd)(...args)),
|
|
145
|
+
onInput: _cache[3] || (_cache[3] = ($event) => {
|
|
146
|
+
unref(filterInput)($event);
|
|
147
|
+
_ctx.$emit("update:modelValue", $event.target.value);
|
|
148
|
+
})
|
|
134
149
|
}), null, 16, _hoisted_2),
|
|
135
150
|
renderSlot(_ctx.$slots, "trailing")
|
|
136
151
|
], 6)
|
|
137
152
|
]),
|
|
138
153
|
_: 3
|
|
139
|
-
}, 8, ["label", "hint", "error", "required", "class", "style"]);
|
|
154
|
+
}, 8, ["label", "hint", "error", "required", "id", "class", "style"]);
|
|
140
155
|
};
|
|
141
156
|
}
|
|
142
157
|
});
|