@bevelo/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/LICENSE +21 -0
- package/dist/accordion.cjs +89 -0
- package/dist/accordion.d.cts +145 -0
- package/dist/accordion.d.ts +145 -0
- package/dist/accordion.js +88 -0
- package/dist/agent.cjs +74 -0
- package/dist/agent.d.cts +2 -0
- package/dist/agent.d.ts +2 -0
- package/dist/agent.js +1 -0
- package/dist/alert-dialog.cjs +48 -0
- package/dist/alert-dialog.d.cts +142 -0
- package/dist/alert-dialog.d.ts +142 -0
- package/dist/alert-dialog.js +47 -0
- package/dist/alert.cjs +77 -0
- package/dist/alert.d.cts +64 -0
- package/dist/alert.d.ts +64 -0
- package/dist/alert.js +76 -0
- package/dist/aspect-ratio.cjs +21 -0
- package/dist/aspect-ratio.d.cts +13 -0
- package/dist/aspect-ratio.d.ts +13 -0
- package/dist/aspect-ratio.js +21 -0
- package/dist/async-options.cjs +76 -0
- package/dist/async-options.d.cts +49 -0
- package/dist/async-options.d.ts +49 -0
- package/dist/async-options.js +75 -0
- package/dist/autocomplete.cjs +274 -0
- package/dist/autocomplete.d.cts +309 -0
- package/dist/autocomplete.d.ts +309 -0
- package/dist/autocomplete.js +273 -0
- package/dist/avatar.cjs +51 -0
- package/dist/avatar.d.cts +69 -0
- package/dist/avatar.d.ts +69 -0
- package/dist/avatar.js +50 -0
- package/dist/badge.cjs +41 -0
- package/dist/badge.d.cts +39 -0
- package/dist/badge.d.ts +39 -0
- package/dist/badge.js +40 -0
- package/dist/breadcrumb.cjs +59 -0
- package/dist/breadcrumb.d.cts +40 -0
- package/dist/breadcrumb.d.ts +40 -0
- package/dist/breadcrumb.js +58 -0
- package/dist/button.cjs +56 -0
- package/dist/button.d.cts +79 -0
- package/dist/button.d.ts +79 -0
- package/dist/button.js +55 -0
- package/dist/calendar-Bcc6HKc9.js +643 -0
- package/dist/calendar-vHGhj3RI.cjs +720 -0
- package/dist/calendar.cjs +4 -0
- package/dist/calendar.d.cts +316 -0
- package/dist/calendar.d.ts +316 -0
- package/dist/calendar.js +1 -0
- package/dist/card-B_ZoLCvt.d.cts +61 -0
- package/dist/card-B_ZoLCvt.d.ts +61 -0
- package/dist/card-CZHRix0r.js +99 -0
- package/dist/card-CvGfpsiU.cjs +140 -0
- package/dist/card.cjs +9 -0
- package/dist/card.d.cts +2 -0
- package/dist/card.d.ts +2 -0
- package/dist/card.js +1 -0
- package/dist/carousel.cjs +225 -0
- package/dist/carousel.d.cts +214 -0
- package/dist/carousel.d.ts +214 -0
- package/dist/carousel.js +224 -0
- package/dist/checkbox-group.cjs +93 -0
- package/dist/checkbox-group.d.cts +108 -0
- package/dist/checkbox-group.d.ts +108 -0
- package/dist/checkbox-group.js +91 -0
- package/dist/checkbox.cjs +117 -0
- package/dist/checkbox.d.cts +153 -0
- package/dist/checkbox.d.ts +153 -0
- package/dist/checkbox.js +116 -0
- package/dist/collapsible.cjs +70 -0
- package/dist/collapsible.d.cts +141 -0
- package/dist/collapsible.d.ts +141 -0
- package/dist/collapsible.js +69 -0
- package/dist/color-picker.cjs +225 -0
- package/dist/color-picker.d.cts +180 -0
- package/dist/color-picker.d.ts +180 -0
- package/dist/color-picker.js +212 -0
- package/dist/combobox-CDHIXr6J.d.ts +735 -0
- package/dist/combobox-D39Waj6L.d.cts +735 -0
- package/dist/combobox-DlCU0vS1.cjs +945 -0
- package/dist/combobox-wLdV6VA_.js +802 -0
- package/dist/combobox.cjs +26 -0
- package/dist/combobox.d.cts +3 -0
- package/dist/combobox.d.ts +3 -0
- package/dist/combobox.js +1 -0
- package/dist/command-CEJACYpR.d.ts +404 -0
- package/dist/command-CqHZVivR.js +693 -0
- package/dist/command-D54bj6RJ.cjs +836 -0
- package/dist/command-rAVp-wbf.d.cts +404 -0
- package/dist/command.cjs +15 -0
- package/dist/command.d.cts +2 -0
- package/dist/command.d.ts +2 -0
- package/dist/command.js +1 -0
- package/dist/context-menu-BPsgeLQm.cjs +170 -0
- package/dist/context-menu-ByhKzWTm.d.ts +129 -0
- package/dist/context-menu-Co3ABcdp.js +153 -0
- package/dist/context-menu-USbhMQuc.d.cts +129 -0
- package/dist/context-menu.cjs +6 -0
- package/dist/context-menu.d.cts +2 -0
- package/dist/context-menu.d.ts +2 -0
- package/dist/context-menu.js +2 -0
- package/dist/date-input.cjs +374 -0
- package/dist/date-input.d.cts +234 -0
- package/dist/date-input.d.ts +234 -0
- package/dist/date-input.js +371 -0
- package/dist/date-picker-D1mygz_Y.js +891 -0
- package/dist/date-picker-D_hqHHAV.cjs +938 -0
- package/dist/date-picker.cjs +4 -0
- package/dist/date-picker.d.cts +447 -0
- package/dist/date-picker.d.ts +447 -0
- package/dist/date-picker.js +1 -0
- package/dist/describe-BlNg9SbK.js +25 -0
- package/dist/describe-D_dLtwde.cjs +42 -0
- package/dist/dialog-view-CKtpbGq_.js +26 -0
- package/dist/dialog-view-swgEQvlZ.cjs +31 -0
- package/dist/dialog.cjs +66 -0
- package/dist/dialog.d.cts +158 -0
- package/dist/dialog.d.ts +158 -0
- package/dist/dialog.js +63 -0
- package/dist/direction.cjs +21 -0
- package/dist/direction.d.cts +13 -0
- package/dist/direction.d.ts +13 -0
- package/dist/direction.js +21 -0
- package/dist/dnd.cjs +103 -0
- package/dist/dnd.d.cts +54 -0
- package/dist/dnd.d.ts +54 -0
- package/dist/dnd.js +98 -0
- package/dist/drawer.cjs +137 -0
- package/dist/drawer.d.cts +190 -0
- package/dist/drawer.d.ts +190 -0
- package/dist/drawer.js +134 -0
- package/dist/empty-state.cjs +75 -0
- package/dist/empty-state.d.cts +46 -0
- package/dist/empty-state.d.ts +46 -0
- package/dist/empty-state.js +74 -0
- package/dist/engine-refs-8O6mHfYd.d.cts +4 -0
- package/dist/engine-refs-8O6mHfYd.d.ts +4 -0
- package/dist/engine-refs-CPWFFTfA.cjs +32 -0
- package/dist/engine-refs-sojZQs1R.js +21 -0
- package/dist/error-state.cjs +86 -0
- package/dist/error-state.d.cts +54 -0
- package/dist/error-state.d.ts +54 -0
- package/dist/error-state.js +85 -0
- package/dist/field.cjs +123 -0
- package/dist/field.d.cts +100 -0
- package/dist/field.d.ts +100 -0
- package/dist/field.js +122 -0
- package/dist/file-input.cjs +117 -0
- package/dist/file-input.d.cts +168 -0
- package/dist/file-input.d.ts +168 -0
- package/dist/file-input.js +116 -0
- package/dist/form-CKus_NQE.cjs +23 -0
- package/dist/form-y7b0fcqL.js +18 -0
- package/dist/gauge-parts-BVmw61GR.js +64 -0
- package/dist/gauge-parts-DjqBK9pL.d.cts +15 -0
- package/dist/gauge-parts-V31Fma77.cjs +75 -0
- package/dist/gauge-parts-mAgseDD4.d.ts +15 -0
- package/dist/headless-B3zQWaJm.js +225 -0
- package/dist/headless-BQe1X1Vf.d.ts +2 -0
- package/dist/headless-CbQgxdK1.d.cts +2 -0
- package/dist/headless-D88yFw8W.cjs +248 -0
- package/dist/hover-card.cjs +139 -0
- package/dist/hover-card.d.cts +200 -0
- package/dist/hover-card.d.ts +200 -0
- package/dist/hover-card.js +137 -0
- package/dist/icon-button.cjs +75 -0
- package/dist/icon-button.d.cts +104 -0
- package/dist/icon-button.d.ts +104 -0
- package/dist/icon-button.js +74 -0
- package/dist/image-cropper.cjs +106 -0
- package/dist/image-cropper.d.cts +7 -0
- package/dist/image-cropper.d.ts +7 -0
- package/dist/image-cropper.js +105 -0
- package/dist/image.cjs +87 -0
- package/dist/image.d.cts +92 -0
- package/dist/image.d.ts +92 -0
- package/dist/image.js +86 -0
- package/dist/index.cjs +1685 -0
- package/dist/index.d.cts +1195 -0
- package/dist/index.d.ts +1195 -0
- package/dist/index.js +1042 -0
- package/dist/input-group.cjs +91 -0
- package/dist/input-group.d.cts +84 -0
- package/dist/input-group.d.ts +84 -0
- package/dist/input-group.js +90 -0
- package/dist/input.cjs +114 -0
- package/dist/input.d.cts +186 -0
- package/dist/input.d.ts +186 -0
- package/dist/input.js +113 -0
- package/dist/item-B-QdNtAl.cjs +264 -0
- package/dist/item-D6GSb0WD.d.ts +144 -0
- package/dist/item-DPJnk7ED.js +199 -0
- package/dist/item-DyrvCrsL.d.cts +144 -0
- package/dist/item.cjs +10 -0
- package/dist/item.d.cts +2 -0
- package/dist/item.d.ts +2 -0
- package/dist/item.js +1 -0
- package/dist/kbd.cjs +55 -0
- package/dist/kbd.d.cts +38 -0
- package/dist/kbd.d.ts +38 -0
- package/dist/kbd.js +54 -0
- package/dist/label.cjs +41 -0
- package/dist/label.d.cts +40 -0
- package/dist/label.d.ts +40 -0
- package/dist/label.js +40 -0
- package/dist/listbox.cjs +85 -0
- package/dist/listbox.d.cts +200 -0
- package/dist/listbox.d.ts +200 -0
- package/dist/listbox.js +84 -0
- package/dist/loader.cjs +66 -0
- package/dist/loader.d.cts +68 -0
- package/dist/loader.d.ts +68 -0
- package/dist/loader.js +65 -0
- package/dist/mention-menu.cjs +126 -0
- package/dist/mention-menu.d.cts +144 -0
- package/dist/mention-menu.d.ts +144 -0
- package/dist/mention-menu.js +125 -0
- package/dist/menu.cjs +182 -0
- package/dist/menu.d.cts +240 -0
- package/dist/menu.d.ts +240 -0
- package/dist/menu.js +181 -0
- package/dist/menubar.cjs +38 -0
- package/dist/menubar.d.cts +43 -0
- package/dist/menubar.d.ts +43 -0
- package/dist/menubar.js +37 -0
- package/dist/meter.cjs +113 -0
- package/dist/meter.d.cts +124 -0
- package/dist/meter.d.ts +124 -0
- package/dist/meter.js +108 -0
- package/dist/native-select-52jYpA3c.d.cts +136 -0
- package/dist/native-select-BdJojSQt.d.ts +136 -0
- package/dist/native-select-BwptULNE.js +129 -0
- package/dist/native-select-DjBGWFoh.cjs +146 -0
- package/dist/native-select.cjs +5 -0
- package/dist/native-select.d.cts +2 -0
- package/dist/native-select.d.ts +2 -0
- package/dist/native-select.js +1 -0
- package/dist/navigation-menu.cjs +108 -0
- package/dist/navigation-menu.d.cts +245 -0
- package/dist/navigation-menu.d.ts +245 -0
- package/dist/navigation-menu.js +107 -0
- package/dist/number-input.cjs +189 -0
- package/dist/number-input.d.cts +232 -0
- package/dist/number-input.d.ts +232 -0
- package/dist/number-input.js +187 -0
- package/dist/option-row-DFCj-NoL.js +64 -0
- package/dist/option-row-Dlc6brXH.d.cts +30 -0
- package/dist/option-row-hLg6Ye86.cjs +105 -0
- package/dist/option-row-yJqjEx0G.d.ts +30 -0
- package/dist/options-BDn36q6n.cjs +111 -0
- package/dist/options-BlkyK-uO.js +106 -0
- package/dist/options-CGl5jBEY.d.ts +19 -0
- package/dist/options-DUGLoksA.d.cts +19 -0
- package/dist/otp-input.cjs +85 -0
- package/dist/otp-input.d.cts +113 -0
- package/dist/otp-input.d.ts +113 -0
- package/dist/otp-input.js +84 -0
- package/dist/overlay-controller-78GSJGbM.js +76 -0
- package/dist/overlay-controller-BDeITPoR.d.cts +16 -0
- package/dist/overlay-controller-DmaZ8FLl.cjs +93 -0
- package/dist/overlay-controller-HrMdTomI.d.ts +16 -0
- package/dist/pagination.cjs +87 -0
- package/dist/pagination.d.cts +112 -0
- package/dist/pagination.d.ts +112 -0
- package/dist/pagination.js +86 -0
- package/dist/parts-9zrUGbuI.js +84 -0
- package/dist/parts-DcYZV8ug.cjs +95 -0
- package/dist/password-input.cjs +144 -0
- package/dist/password-input.d.cts +151 -0
- package/dist/password-input.d.ts +151 -0
- package/dist/password-input.js +143 -0
- package/dist/placement-C_WRqvZk.js +49 -0
- package/dist/placement-ChEh6uxa.cjs +60 -0
- package/dist/popover.cjs +159 -0
- package/dist/popover.d.cts +185 -0
- package/dist/popover.d.ts +185 -0
- package/dist/popover.js +157 -0
- package/dist/preferences.cjs +96 -0
- package/dist/preferences.d.cts +36 -0
- package/dist/preferences.d.ts +36 -0
- package/dist/preferences.js +94 -0
- package/dist/presence.cjs +85 -0
- package/dist/presence.d.cts +25 -0
- package/dist/presence.d.ts +25 -0
- package/dist/presence.js +83 -0
- package/dist/progress.cjs +111 -0
- package/dist/progress.d.cts +109 -0
- package/dist/progress.d.ts +109 -0
- package/dist/progress.js +106 -0
- package/dist/query.cjs +152 -0
- package/dist/query.d.cts +68 -0
- package/dist/query.d.ts +68 -0
- package/dist/query.js +142 -0
- package/dist/radio.cjs +102 -0
- package/dist/radio.d.cts +136 -0
- package/dist/radio.d.ts +136 -0
- package/dist/radio.js +101 -0
- package/dist/rating.cjs +88 -0
- package/dist/rating.d.cts +100 -0
- package/dist/rating.d.ts +100 -0
- package/dist/rating.js +87 -0
- package/dist/resizable.cjs +57 -0
- package/dist/resizable.d.cts +119 -0
- package/dist/resizable.d.ts +119 -0
- package/dist/resizable.js +56 -0
- package/dist/scroll-area.cjs +59 -0
- package/dist/scroll-area.d.cts +72 -0
- package/dist/scroll-area.d.ts +72 -0
- package/dist/scroll-area.js +58 -0
- package/dist/segmented-control.cjs +88 -0
- package/dist/segmented-control.d.cts +121 -0
- package/dist/segmented-control.d.ts +121 -0
- package/dist/segmented-control.js +86 -0
- package/dist/select.cjs +160 -0
- package/dist/select.d.cts +385 -0
- package/dist/select.d.ts +385 -0
- package/dist/select.js +159 -0
- package/dist/separator.cjs +32 -0
- package/dist/separator.d.cts +31 -0
- package/dist/separator.d.ts +31 -0
- package/dist/separator.js +31 -0
- package/dist/sheet.cjs +294 -0
- package/dist/sheet.d.cts +456 -0
- package/dist/sheet.d.ts +456 -0
- package/dist/sheet.js +292 -0
- package/dist/sidebar-C-OdvGzD.d.cts +96 -0
- package/dist/sidebar-CZ1-p0-V.d.ts +96 -0
- package/dist/sidebar-DC-mpzMR.js +87 -0
- package/dist/sidebar-gSAgHdkn.cjs +110 -0
- package/dist/sidebar.cjs +6 -0
- package/dist/sidebar.d.cts +2 -0
- package/dist/sidebar.d.ts +2 -0
- package/dist/sidebar.js +1 -0
- package/dist/skeleton.cjs +46 -0
- package/dist/skeleton.d.cts +47 -0
- package/dist/skeleton.d.ts +47 -0
- package/dist/skeleton.js +45 -0
- package/dist/slider.cjs +118 -0
- package/dist/slider.d.cts +181 -0
- package/dist/slider.d.ts +181 -0
- package/dist/slider.js +117 -0
- package/dist/sortable-board-strict.cjs +149 -0
- package/dist/sortable-board-strict.d.cts +181 -0
- package/dist/sortable-board-strict.d.ts +181 -0
- package/dist/sortable-board-strict.js +148 -0
- package/dist/sortable-engine.cjs +136 -0
- package/dist/sortable-engine.d.cts +237 -0
- package/dist/sortable-engine.d.ts +237 -0
- package/dist/sortable-engine.js +135 -0
- package/dist/sortable.cjs +67 -0
- package/dist/sortable.d.cts +217 -0
- package/dist/sortable.d.ts +217 -0
- package/dist/sortable.js +66 -0
- package/dist/spinner.cjs +32 -0
- package/dist/spinner.d.cts +31 -0
- package/dist/spinner.d.ts +31 -0
- package/dist/spinner.js +31 -0
- package/dist/steps-C9Jmrt8G.cjs +122 -0
- package/dist/steps-Cs8AfxV7.js +81 -0
- package/dist/steps-DW5NkzVj.d.ts +71 -0
- package/dist/steps-ymRMdju5.d.cts +71 -0
- package/dist/steps.cjs +8 -0
- package/dist/steps.d.cts +2 -0
- package/dist/steps.d.ts +2 -0
- package/dist/steps.js +1 -0
- package/dist/switch.cjs +100 -0
- package/dist/switch.d.cts +144 -0
- package/dist/switch.d.ts +144 -0
- package/dist/switch.js +99 -0
- package/dist/table.cjs +124 -0
- package/dist/table.d.cts +124 -0
- package/dist/table.d.ts +124 -0
- package/dist/table.js +123 -0
- package/dist/tabs.cjs +89 -0
- package/dist/tabs.d.cts +160 -0
- package/dist/tabs.d.ts +160 -0
- package/dist/tabs.js +88 -0
- package/dist/textarea.cjs +140 -0
- package/dist/textarea.d.cts +231 -0
- package/dist/textarea.d.ts +231 -0
- package/dist/textarea.js +139 -0
- package/dist/time-input.cjs +117 -0
- package/dist/time-input.d.cts +140 -0
- package/dist/time-input.d.ts +140 -0
- package/dist/time-input.js +116 -0
- package/dist/timeline.cjs +82 -0
- package/dist/timeline.d.cts +62 -0
- package/dist/timeline.d.ts +62 -0
- package/dist/timeline.js +81 -0
- package/dist/toast-CfkRzdNd.js +354 -0
- package/dist/toast-DyezF7lm.cjs +401 -0
- package/dist/toast.cjs +16 -0
- package/dist/toast.d.cts +275 -0
- package/dist/toast.d.ts +275 -0
- package/dist/toast.js +1 -0
- package/dist/toggle-group.cjs +65 -0
- package/dist/toggle-group.d.cts +128 -0
- package/dist/toggle-group.d.ts +128 -0
- package/dist/toggle-group.js +64 -0
- package/dist/toggle.cjs +64 -0
- package/dist/toggle.d.cts +97 -0
- package/dist/toggle.d.ts +97 -0
- package/dist/toggle.js +63 -0
- package/dist/token-input-BIC9VLMG.d.cts +170 -0
- package/dist/token-input-BTReOHIv.cjs +336 -0
- package/dist/token-input-CQnZ6-pO.d.ts +170 -0
- package/dist/token-input-DtcCZrcC.js +295 -0
- package/dist/token-input.cjs +9 -0
- package/dist/token-input.d.cts +2 -0
- package/dist/token-input.d.ts +2 -0
- package/dist/token-input.js +1 -0
- package/dist/toolbar.cjs +62 -0
- package/dist/toolbar.d.cts +58 -0
- package/dist/toolbar.d.ts +58 -0
- package/dist/toolbar.js +61 -0
- package/dist/tooltip.cjs +149 -0
- package/dist/tooltip.d.cts +208 -0
- package/dist/tooltip.d.ts +208 -0
- package/dist/tooltip.js +147 -0
- package/dist/tree-grid.cjs +127 -0
- package/dist/tree-grid.d.cts +130 -0
- package/dist/tree-grid.d.ts +130 -0
- package/dist/tree-grid.js +126 -0
- package/dist/tree.cjs +227 -0
- package/dist/tree.d.cts +223 -0
- package/dist/tree.d.ts +223 -0
- package/dist/tree.js +226 -0
- package/dist/trigger-menu-8FAwypbs.d.cts +347 -0
- package/dist/trigger-menu-B898rWkz.cjs +502 -0
- package/dist/trigger-menu-C2YHe7es.d.ts +347 -0
- package/dist/trigger-menu-CxzocSWO.js +431 -0
- package/dist/trigger-menu.cjs +22 -0
- package/dist/trigger-menu.d.cts +2 -0
- package/dist/trigger-menu.d.ts +2 -0
- package/dist/trigger-menu.js +2 -0
- package/dist/virtual-list-strict.cjs +126 -0
- package/dist/virtual-list-strict.d.cts +69 -0
- package/dist/virtual-list-strict.d.ts +69 -0
- package/dist/virtual-list-strict.js +125 -0
- package/dist/virtual-list.cjs +65 -0
- package/dist/virtual-list.d.cts +82 -0
- package/dist/virtual-list.d.ts +82 -0
- package/dist/virtual-list.js +64 -0
- package/dist/virtual.cjs +27 -0
- package/dist/virtual.d.cts +30 -0
- package/dist/virtual.d.ts +30 -0
- package/dist/virtual.js +26 -0
- package/dist/vue-helpers-Bh_YF48i.cjs +102 -0
- package/dist/vue-helpers-Z3oOAHYB.js +55 -0
- package/dist/waterfall-chart.cjs +114 -0
- package/dist/waterfall-chart.d.cts +117 -0
- package/dist/waterfall-chart.d.ts +117 -0
- package/dist/waterfall-chart.js +113 -0
- package/dist/waterfall.cjs +296 -0
- package/dist/waterfall.d.cts +219 -0
- package/dist/waterfall.d.ts +219 -0
- package/dist/waterfall.js +284 -0
- package/package.json +518 -3
- package/README.md +0 -3
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { SortableItem } from "@bevelo/core";
|
|
2
|
+
import { PropType, SlotsType, VNodeChild } from "vue";
|
|
3
|
+
export declare const Sortable: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
/** The rows, each with an id and a label. */
|
|
5
|
+
items: {
|
|
6
|
+
type: PropType<readonly SortableItem[]>;
|
|
7
|
+
required: false;
|
|
8
|
+
};
|
|
9
|
+
/** The rows, bound with `v-model`. */
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: PropType<readonly SortableItem[]>;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
id: {
|
|
15
|
+
type: PropType<string>;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
label: {
|
|
19
|
+
type: PropType<string>;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
disabled: {
|
|
23
|
+
type: PropType<boolean>;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
orientation: {
|
|
27
|
+
type: PropType<import("@bevelo/core").PrimitiveSortableStrictOrientation>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
reducedMotion: {
|
|
31
|
+
type: PropType<boolean>;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
autoScroll: {
|
|
35
|
+
type: PropType<boolean | {
|
|
36
|
+
readonly threshold?: number;
|
|
37
|
+
readonly maxSpeed?: number;
|
|
38
|
+
}>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
multiSelect: {
|
|
42
|
+
type: PropType<boolean>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
selectedIds: {
|
|
46
|
+
type: PropType<readonly string[]>;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
activationDistance: {
|
|
50
|
+
type: PropType<number>;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
settleDurationMs: {
|
|
54
|
+
type: PropType<number>;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
activationDelayMs: {
|
|
58
|
+
type: PropType<number>;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
activationDelayTolerance: {
|
|
62
|
+
type: PropType<number>;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
handleOnly: {
|
|
66
|
+
type: PropType<boolean>;
|
|
67
|
+
default: undefined;
|
|
68
|
+
};
|
|
69
|
+
keyboardInstructions: {
|
|
70
|
+
type: PropType<string>;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
announcements: {
|
|
74
|
+
type: PropType<Partial<import("@bevelo/dnd").DragMessages>>;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
animateGaps: {
|
|
78
|
+
type: PropType<boolean>;
|
|
79
|
+
default: undefined;
|
|
80
|
+
};
|
|
81
|
+
gapDurationMs: {
|
|
82
|
+
type: PropType<number>;
|
|
83
|
+
default: undefined;
|
|
84
|
+
};
|
|
85
|
+
patienceMs: {
|
|
86
|
+
type: PropType<number>;
|
|
87
|
+
default: undefined;
|
|
88
|
+
};
|
|
89
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
90
|
+
/** The committed id order after a drag or a keyboard move. */
|
|
91
|
+
reorder: (_ids: string[]) => true;
|
|
92
|
+
"update:modelValue": (_items: SortableItem[]) => true;
|
|
93
|
+
selectionChange: (ids: string[]) => true;
|
|
94
|
+
sortChange: (ids: string[]) => true;
|
|
95
|
+
"update:selectedIds": (value: string[]) => true;
|
|
96
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
97
|
+
/** The rows, each with an id and a label. */
|
|
98
|
+
items: {
|
|
99
|
+
type: PropType<readonly SortableItem[]>;
|
|
100
|
+
required: false;
|
|
101
|
+
};
|
|
102
|
+
/** The rows, bound with `v-model`. */
|
|
103
|
+
modelValue: {
|
|
104
|
+
type: PropType<readonly SortableItem[]>;
|
|
105
|
+
required: false;
|
|
106
|
+
};
|
|
107
|
+
id: {
|
|
108
|
+
type: PropType<string>;
|
|
109
|
+
default: undefined;
|
|
110
|
+
};
|
|
111
|
+
label: {
|
|
112
|
+
type: PropType<string>;
|
|
113
|
+
default: undefined;
|
|
114
|
+
};
|
|
115
|
+
disabled: {
|
|
116
|
+
type: PropType<boolean>;
|
|
117
|
+
default: undefined;
|
|
118
|
+
};
|
|
119
|
+
orientation: {
|
|
120
|
+
type: PropType<import("@bevelo/core").PrimitiveSortableStrictOrientation>;
|
|
121
|
+
default: undefined;
|
|
122
|
+
};
|
|
123
|
+
reducedMotion: {
|
|
124
|
+
type: PropType<boolean>;
|
|
125
|
+
default: undefined;
|
|
126
|
+
};
|
|
127
|
+
autoScroll: {
|
|
128
|
+
type: PropType<boolean | {
|
|
129
|
+
readonly threshold?: number;
|
|
130
|
+
readonly maxSpeed?: number;
|
|
131
|
+
}>;
|
|
132
|
+
default: undefined;
|
|
133
|
+
};
|
|
134
|
+
multiSelect: {
|
|
135
|
+
type: PropType<boolean>;
|
|
136
|
+
default: undefined;
|
|
137
|
+
};
|
|
138
|
+
selectedIds: {
|
|
139
|
+
type: PropType<readonly string[]>;
|
|
140
|
+
default: undefined;
|
|
141
|
+
};
|
|
142
|
+
activationDistance: {
|
|
143
|
+
type: PropType<number>;
|
|
144
|
+
default: undefined;
|
|
145
|
+
};
|
|
146
|
+
settleDurationMs: {
|
|
147
|
+
type: PropType<number>;
|
|
148
|
+
default: undefined;
|
|
149
|
+
};
|
|
150
|
+
activationDelayMs: {
|
|
151
|
+
type: PropType<number>;
|
|
152
|
+
default: undefined;
|
|
153
|
+
};
|
|
154
|
+
activationDelayTolerance: {
|
|
155
|
+
type: PropType<number>;
|
|
156
|
+
default: undefined;
|
|
157
|
+
};
|
|
158
|
+
handleOnly: {
|
|
159
|
+
type: PropType<boolean>;
|
|
160
|
+
default: undefined;
|
|
161
|
+
};
|
|
162
|
+
keyboardInstructions: {
|
|
163
|
+
type: PropType<string>;
|
|
164
|
+
default: undefined;
|
|
165
|
+
};
|
|
166
|
+
announcements: {
|
|
167
|
+
type: PropType<Partial<import("@bevelo/dnd").DragMessages>>;
|
|
168
|
+
default: undefined;
|
|
169
|
+
};
|
|
170
|
+
animateGaps: {
|
|
171
|
+
type: PropType<boolean>;
|
|
172
|
+
default: undefined;
|
|
173
|
+
};
|
|
174
|
+
gapDurationMs: {
|
|
175
|
+
type: PropType<number>;
|
|
176
|
+
default: undefined;
|
|
177
|
+
};
|
|
178
|
+
patienceMs: {
|
|
179
|
+
type: PropType<number>;
|
|
180
|
+
default: undefined;
|
|
181
|
+
};
|
|
182
|
+
}>> & Readonly<{
|
|
183
|
+
"onUpdate:modelValue"?: (_items: SortableItem[]) => any;
|
|
184
|
+
onSelectionChange?: (ids: string[]) => any;
|
|
185
|
+
onSortChange?: (ids: string[]) => any;
|
|
186
|
+
"onUpdate:selectedIds"?: (value: string[]) => any;
|
|
187
|
+
onReorder?: (_ids: string[]) => any;
|
|
188
|
+
}>, {
|
|
189
|
+
id: string;
|
|
190
|
+
label: string;
|
|
191
|
+
disabled: boolean;
|
|
192
|
+
orientation: import("@bevelo/core").PrimitiveSortableStrictOrientation;
|
|
193
|
+
reducedMotion: boolean;
|
|
194
|
+
autoScroll: boolean | {
|
|
195
|
+
readonly threshold?: number;
|
|
196
|
+
readonly maxSpeed?: number;
|
|
197
|
+
};
|
|
198
|
+
multiSelect: boolean;
|
|
199
|
+
selectedIds: readonly string[];
|
|
200
|
+
activationDistance: number;
|
|
201
|
+
settleDurationMs: number;
|
|
202
|
+
activationDelayMs: number;
|
|
203
|
+
activationDelayTolerance: number;
|
|
204
|
+
handleOnly: boolean;
|
|
205
|
+
keyboardInstructions: string;
|
|
206
|
+
announcements: Partial<import("@bevelo/dnd").DragMessages>;
|
|
207
|
+
animateGaps: boolean;
|
|
208
|
+
gapDurationMs: number;
|
|
209
|
+
patienceMs: number;
|
|
210
|
+
}, SlotsType<{
|
|
211
|
+
item?: (props: {
|
|
212
|
+
readonly item: SortableItem;
|
|
213
|
+
readonly index: number;
|
|
214
|
+
}) => VNodeChild;
|
|
215
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
216
|
+
/** Props for `Sortable`. */
|
|
217
|
+
export type SortableProps = InstanceType<typeof Sortable>["$props"];
|
package/dist/sortable.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { n as usePrimitive, t as renderPart } from "./headless-B3zQWaJm.js";
|
|
2
|
+
import { t as vueOptions } from "./options-BlkyK-uO.js";
|
|
3
|
+
import { Fragment, defineComponent, h } from "vue";
|
|
4
|
+
import { sortableStrictPrimitive } from "@bevelo/core/primitives/sortable-strict";
|
|
5
|
+
// src/sortable.ts
|
|
6
|
+
const schema = vueOptions(sortableStrictPrimitive, { selectedIds: ["selectedIds", "onSelectionChange"] });
|
|
7
|
+
const NO_ITEMS = [];
|
|
8
|
+
/** Items in the order `ids` names; ids the list does not know are skipped. */
|
|
9
|
+
function inOrder(items, ids) {
|
|
10
|
+
const byId = new Map(items.map((item) => [item.id, item]));
|
|
11
|
+
return ids.flatMap((id) => {
|
|
12
|
+
const item = byId.get(id);
|
|
13
|
+
return item === void 0 ? [] : [item];
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const Sortable = defineComponent({
|
|
17
|
+
name: "Sortable",
|
|
18
|
+
inheritAttrs: false,
|
|
19
|
+
props: {
|
|
20
|
+
...schema.props,
|
|
21
|
+
/** The rows, each with an id and a label. */
|
|
22
|
+
items: {
|
|
23
|
+
type: Array,
|
|
24
|
+
required: false
|
|
25
|
+
},
|
|
26
|
+
/** The rows, bound with `v-model`. */
|
|
27
|
+
modelValue: {
|
|
28
|
+
type: Array,
|
|
29
|
+
required: false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: {
|
|
33
|
+
...schema.emits,
|
|
34
|
+
/** The committed id order after a drag or a keyboard move. */
|
|
35
|
+
reorder: (_ids) => true,
|
|
36
|
+
"update:modelValue": (_items) => true
|
|
37
|
+
},
|
|
38
|
+
slots: Object,
|
|
39
|
+
setup(props, { attrs, slots, emit }) {
|
|
40
|
+
const rows = () => props.modelValue ?? props.items ?? NO_ITEMS;
|
|
41
|
+
const handle = usePrimitive(sortableStrictPrimitive, schema.bind(props, () => ({
|
|
42
|
+
items: rows().map((item) => item.id),
|
|
43
|
+
onSortChange: (ids) => {
|
|
44
|
+
emit("sortChange", ids);
|
|
45
|
+
emit("reorder", ids);
|
|
46
|
+
emit("update:modelValue", inOrder(rows(), ids));
|
|
47
|
+
}
|
|
48
|
+
})));
|
|
49
|
+
return () => {
|
|
50
|
+
handle.revision.value;
|
|
51
|
+
const items = rows().map((item, index) => renderPart(handle, "item", { key: item.id }, slots.item !== void 0 ? slots.item({
|
|
52
|
+
item,
|
|
53
|
+
index
|
|
54
|
+
}) : item.label, { index }));
|
|
55
|
+
const instructionsText = (handle.part("instructions")?.state)?.text;
|
|
56
|
+
const instructions = renderPart(handle, "instructions", { key: "instructions" }, typeof instructionsText === "string" ? instructionsText : void 0);
|
|
57
|
+
const announcer = renderPart(handle, "announcer", { key: "announcer" });
|
|
58
|
+
return renderPart(handle, "root", { ...attrs }, [h(Fragment, null, [
|
|
59
|
+
instructions,
|
|
60
|
+
announcer,
|
|
61
|
+
...items
|
|
62
|
+
])]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export { Sortable };
|
package/dist/spinner.cjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_headless = require("./headless-D88yFw8W.cjs");
|
|
3
|
+
const require_options = require("./options-BDn36q6n.cjs");
|
|
4
|
+
let _bevelo_core = require("@bevelo/core");
|
|
5
|
+
let vue = require("vue");
|
|
6
|
+
// src/spinner.ts
|
|
7
|
+
const schema = require_options.vueOptions(_bevelo_core.spinnerPrimitive);
|
|
8
|
+
const Spinner = (0, vue.defineComponent)({
|
|
9
|
+
name: "Spinner",
|
|
10
|
+
inheritAttrs: false,
|
|
11
|
+
props: {
|
|
12
|
+
...schema.props,
|
|
13
|
+
size: {
|
|
14
|
+
type: [Number, String],
|
|
15
|
+
required: false
|
|
16
|
+
},
|
|
17
|
+
label: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: false
|
|
20
|
+
},
|
|
21
|
+
decorative: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
required: false
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: schema.emits,
|
|
27
|
+
setup(props, { attrs }) {
|
|
28
|
+
const handle = require_headless.usePrimitive(_bevelo_core.spinnerPrimitive, schema.bind(props));
|
|
29
|
+
return () => require_headless.renderPart(handle, "root", { ...attrs }, [require_headless.renderPart(handle, "ring", { key: "ring" })]);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
exports.Spinner = Spinner;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const Spinner: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
size: {
|
|
3
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
decorative: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
}>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
size: {
|
|
16
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
19
|
+
label: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: false;
|
|
22
|
+
};
|
|
23
|
+
decorative: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
required: false;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
decorative: boolean;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
/** Props for `Spinner`. */
|
|
31
|
+
export type SpinnerProps = InstanceType<typeof Spinner>["$props"];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const Spinner: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
size: {
|
|
3
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
decorative: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
}>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
size: {
|
|
16
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
19
|
+
label: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: false;
|
|
22
|
+
};
|
|
23
|
+
decorative: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
required: false;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
decorative: boolean;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
/** Props for `Spinner`. */
|
|
31
|
+
export type SpinnerProps = InstanceType<typeof Spinner>["$props"];
|
package/dist/spinner.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { n as usePrimitive, t as renderPart } from "./headless-B3zQWaJm.js";
|
|
2
|
+
import { t as vueOptions } from "./options-BlkyK-uO.js";
|
|
3
|
+
import { spinnerPrimitive } from "@bevelo/core";
|
|
4
|
+
import { defineComponent } from "vue";
|
|
5
|
+
// src/spinner.ts
|
|
6
|
+
const schema = vueOptions(spinnerPrimitive);
|
|
7
|
+
const Spinner = defineComponent({
|
|
8
|
+
name: "Spinner",
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: {
|
|
11
|
+
...schema.props,
|
|
12
|
+
size: {
|
|
13
|
+
type: [Number, String],
|
|
14
|
+
required: false
|
|
15
|
+
},
|
|
16
|
+
label: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: false
|
|
19
|
+
},
|
|
20
|
+
decorative: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
required: false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
emits: schema.emits,
|
|
26
|
+
setup(props, { attrs }) {
|
|
27
|
+
const handle = usePrimitive(spinnerPrimitive, schema.bind(props));
|
|
28
|
+
return () => renderPart(handle, "root", { ...attrs }, [renderPart(handle, "ring", { key: "ring" })]);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export { Spinner };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
const require_headless = require("./headless-D88yFw8W.cjs");
|
|
2
|
+
const require_options = require("./options-BDn36q6n.cjs");
|
|
3
|
+
const require_parts = require("./parts-DcYZV8ug.cjs");
|
|
4
|
+
let _bevelo_core = require("@bevelo/core");
|
|
5
|
+
let vue = require("vue");
|
|
6
|
+
let _bevelo_core_primitives_steps = require("@bevelo/core/primitives/steps");
|
|
7
|
+
// src/steps-parts.ts
|
|
8
|
+
/**
|
|
9
|
+
* The composition root: it creates the instance and renders the root part's
|
|
10
|
+
* element with the host's attrs and slot children inside it.
|
|
11
|
+
*/
|
|
12
|
+
const StepsRootPart = require_parts.createVuePartsRoot(_bevelo_core_primitives_steps.stepsPrimitive);
|
|
13
|
+
/** The `step` part. */
|
|
14
|
+
const StepsStepPart = require_parts.createVuePart(_bevelo_core_primitives_steps.stepsPrimitive, "step");
|
|
15
|
+
/** The `indicator` part. */
|
|
16
|
+
const StepsIndicatorPart = require_parts.createVuePart(_bevelo_core_primitives_steps.stepsPrimitive, "indicator");
|
|
17
|
+
/** The `labels` part. */
|
|
18
|
+
const StepsLabelsPart = require_parts.createVuePart(_bevelo_core_primitives_steps.stepsPrimitive, "labels");
|
|
19
|
+
/** The `label` part. */
|
|
20
|
+
const StepsLabelPart = require_parts.createVuePart(_bevelo_core_primitives_steps.stepsPrimitive, "label");
|
|
21
|
+
/** The `description` part. */
|
|
22
|
+
const StepsDescriptionPart = require_parts.createVuePart(_bevelo_core_primitives_steps.stepsPrimitive, "description");
|
|
23
|
+
// src/steps.ts
|
|
24
|
+
const schema = require_options.vueOptions(_bevelo_core.stepsPrimitive, {
|
|
25
|
+
modelValue: ["current", "onSelect"],
|
|
26
|
+
current: ["current", "onSelect"]
|
|
27
|
+
});
|
|
28
|
+
const EMPTY_ITEMS = [];
|
|
29
|
+
const Steps = (0, vue.defineComponent)({
|
|
30
|
+
name: "Steps",
|
|
31
|
+
inheritAttrs: false,
|
|
32
|
+
props: {
|
|
33
|
+
...schema.props,
|
|
34
|
+
items: {
|
|
35
|
+
type: Array,
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
current: {
|
|
39
|
+
type: String,
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
orientation: {
|
|
43
|
+
type: String,
|
|
44
|
+
required: false
|
|
45
|
+
},
|
|
46
|
+
label: {
|
|
47
|
+
type: String,
|
|
48
|
+
required: false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: schema.emits,
|
|
52
|
+
setup(props, { attrs }) {
|
|
53
|
+
const handle = require_headless.usePrimitive(_bevelo_core.stepsPrimitive, schema.bind(props, () => {
|
|
54
|
+
const options = {};
|
|
55
|
+
if (props.items !== void 0) options["items"] = props.items;
|
|
56
|
+
if (props.current !== void 0) options["current"] = props.current;
|
|
57
|
+
if (props.orientation !== void 0) options["orientation"] = props.orientation;
|
|
58
|
+
if (props.label !== void 0) options["label"] = props.label;
|
|
59
|
+
return options;
|
|
60
|
+
}));
|
|
61
|
+
return () => {
|
|
62
|
+
handle.revision.value;
|
|
63
|
+
const items = props.items ?? EMPTY_ITEMS;
|
|
64
|
+
const interactive = handle.instance.options().onSelect !== void 0;
|
|
65
|
+
const trail = items.map((item, index) => {
|
|
66
|
+
const indicator = require_headless.renderPart(handle, "indicator", { key: "indicator" }, String(index + 1), { index });
|
|
67
|
+
const label = require_headless.renderPart(handle, "label", { key: "label" }, item.label, { index });
|
|
68
|
+
const description = require_headless.renderPart(handle, "description", { key: "description" }, item.description, { index });
|
|
69
|
+
const labels = require_headless.renderPart(handle, "labels", { key: "labels" }, [label, description], { index });
|
|
70
|
+
const step = require_headless.renderPart(handle, "step", {
|
|
71
|
+
key: "step",
|
|
72
|
+
tag: interactive ? "button" : "div"
|
|
73
|
+
}, [indicator, labels], { index });
|
|
74
|
+
return require_headless.renderPart(handle, "item", { key: item.id || index }, step, { index });
|
|
75
|
+
});
|
|
76
|
+
const list = require_headless.renderPart(handle, "list", { key: "list" }, trail);
|
|
77
|
+
return require_headless.renderPart(handle, "root", { ...attrs }, list);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(exports, "Steps", {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
get: function() {
|
|
84
|
+
return Steps;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(exports, "StepsDescriptionPart", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function() {
|
|
90
|
+
return StepsDescriptionPart;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
Object.defineProperty(exports, "StepsIndicatorPart", {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function() {
|
|
96
|
+
return StepsIndicatorPart;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
Object.defineProperty(exports, "StepsLabelPart", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function() {
|
|
102
|
+
return StepsLabelPart;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(exports, "StepsLabelsPart", {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function() {
|
|
108
|
+
return StepsLabelsPart;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(exports, "StepsRootPart", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function() {
|
|
114
|
+
return StepsRootPart;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(exports, "StepsStepPart", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function() {
|
|
120
|
+
return StepsStepPart;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { n as usePrimitive, t as renderPart } from "./headless-B3zQWaJm.js";
|
|
2
|
+
import { t as vueOptions } from "./options-BlkyK-uO.js";
|
|
3
|
+
import { n as createVuePartsRoot, t as createVuePart } from "./parts-9zrUGbuI.js";
|
|
4
|
+
import { stepsPrimitive } from "@bevelo/core";
|
|
5
|
+
import { defineComponent } from "vue";
|
|
6
|
+
import { stepsPrimitive as stepsPrimitive$1 } from "@bevelo/core/primitives/steps";
|
|
7
|
+
// src/steps-parts.ts
|
|
8
|
+
/**
|
|
9
|
+
* The composition root: it creates the instance and renders the root part's
|
|
10
|
+
* element with the host's attrs and slot children inside it.
|
|
11
|
+
*/
|
|
12
|
+
const StepsRootPart = createVuePartsRoot(stepsPrimitive$1);
|
|
13
|
+
/** The `step` part. */
|
|
14
|
+
const StepsStepPart = createVuePart(stepsPrimitive$1, "step");
|
|
15
|
+
/** The `indicator` part. */
|
|
16
|
+
const StepsIndicatorPart = createVuePart(stepsPrimitive$1, "indicator");
|
|
17
|
+
/** The `labels` part. */
|
|
18
|
+
const StepsLabelsPart = createVuePart(stepsPrimitive$1, "labels");
|
|
19
|
+
/** The `label` part. */
|
|
20
|
+
const StepsLabelPart = createVuePart(stepsPrimitive$1, "label");
|
|
21
|
+
/** The `description` part. */
|
|
22
|
+
const StepsDescriptionPart = createVuePart(stepsPrimitive$1, "description");
|
|
23
|
+
// src/steps.ts
|
|
24
|
+
const schema = vueOptions(stepsPrimitive, {
|
|
25
|
+
modelValue: ["current", "onSelect"],
|
|
26
|
+
current: ["current", "onSelect"]
|
|
27
|
+
});
|
|
28
|
+
const EMPTY_ITEMS = [];
|
|
29
|
+
const Steps = defineComponent({
|
|
30
|
+
name: "Steps",
|
|
31
|
+
inheritAttrs: false,
|
|
32
|
+
props: {
|
|
33
|
+
...schema.props,
|
|
34
|
+
items: {
|
|
35
|
+
type: Array,
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
current: {
|
|
39
|
+
type: String,
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
orientation: {
|
|
43
|
+
type: String,
|
|
44
|
+
required: false
|
|
45
|
+
},
|
|
46
|
+
label: {
|
|
47
|
+
type: String,
|
|
48
|
+
required: false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: schema.emits,
|
|
52
|
+
setup(props, { attrs }) {
|
|
53
|
+
const handle = usePrimitive(stepsPrimitive, schema.bind(props, () => {
|
|
54
|
+
const options = {};
|
|
55
|
+
if (props.items !== void 0) options["items"] = props.items;
|
|
56
|
+
if (props.current !== void 0) options["current"] = props.current;
|
|
57
|
+
if (props.orientation !== void 0) options["orientation"] = props.orientation;
|
|
58
|
+
if (props.label !== void 0) options["label"] = props.label;
|
|
59
|
+
return options;
|
|
60
|
+
}));
|
|
61
|
+
return () => {
|
|
62
|
+
handle.revision.value;
|
|
63
|
+
const items = props.items ?? EMPTY_ITEMS;
|
|
64
|
+
const interactive = handle.instance.options().onSelect !== void 0;
|
|
65
|
+
const trail = items.map((item, index) => {
|
|
66
|
+
const indicator = renderPart(handle, "indicator", { key: "indicator" }, String(index + 1), { index });
|
|
67
|
+
const label = renderPart(handle, "label", { key: "label" }, item.label, { index });
|
|
68
|
+
const description = renderPart(handle, "description", { key: "description" }, item.description, { index });
|
|
69
|
+
const labels = renderPart(handle, "labels", { key: "labels" }, [label, description], { index });
|
|
70
|
+
const step = renderPart(handle, "step", {
|
|
71
|
+
key: "step",
|
|
72
|
+
tag: interactive ? "button" : "div"
|
|
73
|
+
}, [indicator, labels], { index });
|
|
74
|
+
return renderPart(handle, "item", { key: item.id || index }, step, { index });
|
|
75
|
+
});
|
|
76
|
+
const list = renderPart(handle, "list", { key: "list" }, trail);
|
|
77
|
+
return renderPart(handle, "root", { ...attrs }, list);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export { StepsLabelsPart as a, StepsLabelPart as i, StepsDescriptionPart as n, StepsRootPart as o, StepsIndicatorPart as r, StepsStepPart as s, Steps as t };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { n as OptionEmits, t as ModelEmits } from "./options-CGl5jBEY.js";
|
|
2
|
+
/**
|
|
3
|
+
* The composition root: it creates the instance and renders the root part's
|
|
4
|
+
* element with the host's attrs and slot children inside it.
|
|
5
|
+
*/
|
|
6
|
+
declare const StepsRootPart: import("vue").Component;
|
|
7
|
+
/** The `step` part. */
|
|
8
|
+
declare const StepsStepPart: import("vue").Component;
|
|
9
|
+
/** The `indicator` part. */
|
|
10
|
+
declare const StepsIndicatorPart: import("vue").Component;
|
|
11
|
+
/** The `labels` part. */
|
|
12
|
+
declare const StepsLabelsPart: import("vue").Component;
|
|
13
|
+
/** The `label` part. */
|
|
14
|
+
declare const StepsLabelPart: import("vue").Component;
|
|
15
|
+
/** The `description` part. */
|
|
16
|
+
declare const StepsDescriptionPart: import("vue").Component;
|
|
17
|
+
declare const Steps: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
18
|
+
items: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
required: false;
|
|
21
|
+
};
|
|
22
|
+
current: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
};
|
|
26
|
+
orientation: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
required: false;
|
|
29
|
+
};
|
|
30
|
+
label: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
required: false;
|
|
33
|
+
};
|
|
34
|
+
modelValue: {
|
|
35
|
+
type: import("vue").PropType<string>;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
}>, () => import("vue").VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, OptionEmits<import("@bevelo/core").PrimitiveStepsOptions> & ModelEmits<import("@bevelo/core").PrimitiveStepsOptions, {
|
|
39
|
+
readonly modelValue: readonly ["current", "onSelect"];
|
|
40
|
+
readonly current: readonly ["current", "onSelect"];
|
|
41
|
+
}>, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
items: {
|
|
43
|
+
type: ArrayConstructor;
|
|
44
|
+
required: false;
|
|
45
|
+
};
|
|
46
|
+
current: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
required: false;
|
|
49
|
+
};
|
|
50
|
+
orientation: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
required: false;
|
|
53
|
+
};
|
|
54
|
+
label: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
required: false;
|
|
57
|
+
};
|
|
58
|
+
modelValue: {
|
|
59
|
+
type: import("vue").PropType<string>;
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
}>> & Readonly<{
|
|
63
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
64
|
+
onSelect?: (id: string) => any;
|
|
65
|
+
"onUpdate:current"?: (value: string) => any;
|
|
66
|
+
}>, {
|
|
67
|
+
modelValue: string;
|
|
68
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
69
|
+
/** Props for `Steps`. */
|
|
70
|
+
type StepsProps = InstanceType<typeof Steps>["$props"];
|
|
71
|
+
export { StepsLabelPart as a, StepsStepPart as c, StepsIndicatorPart as i, StepsProps as n, StepsLabelsPart as o, StepsDescriptionPart as r, StepsRootPart as s, Steps as t };
|