@bevelo/solid 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-7jt3BPeM.js +101 -0
- package/dist/accordion-BZw6wfXC.cjs +142 -0
- package/dist/accordion-CbEiLZg1.d.ts +65 -0
- package/dist/accordion-D96X2Dfn.d.cts +65 -0
- package/dist/accordion.cjs +9 -0
- package/dist/accordion.d.cts +2 -0
- package/dist/accordion.d.ts +2 -0
- package/dist/accordion.js +1 -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-5MyAE281.d.cts +41 -0
- package/dist/alert-dialog-BJ83l4Yr.d.ts +41 -0
- package/dist/alert-dialog-__fU1AaI.cjs +150 -0
- package/dist/alert-dialog-dDX-88oC.js +121 -0
- package/dist/alert-dialog.cjs +7 -0
- package/dist/alert-dialog.d.cts +2 -0
- package/dist/alert-dialog.d.ts +2 -0
- package/dist/alert-dialog.js +1 -0
- package/dist/alert.cjs +73 -0
- package/dist/alert.d.cts +19 -0
- package/dist/alert.d.ts +19 -0
- package/dist/alert.js +72 -0
- package/dist/aspect-ratio.cjs +25 -0
- package/dist/aspect-ratio.d.cts +13 -0
- package/dist/aspect-ratio.d.ts +13 -0
- package/dist/aspect-ratio.js +24 -0
- package/dist/async-options.cjs +93 -0
- package/dist/async-options.d.cts +50 -0
- package/dist/async-options.d.ts +50 -0
- package/dist/async-options.js +92 -0
- package/dist/autocomplete.cjs +320 -0
- package/dist/autocomplete.d.cts +135 -0
- package/dist/autocomplete.d.ts +135 -0
- package/dist/autocomplete.js +318 -0
- package/dist/avatar.cjs +113 -0
- package/dist/avatar.d.cts +46 -0
- package/dist/avatar.d.ts +46 -0
- package/dist/avatar.js +110 -0
- package/dist/badge.cjs +50 -0
- package/dist/badge.d.cts +21 -0
- package/dist/badge.d.ts +21 -0
- package/dist/badge.js +49 -0
- package/dist/breadcrumb.cjs +62 -0
- package/dist/breadcrumb.d.cts +22 -0
- package/dist/breadcrumb.d.ts +22 -0
- package/dist/breadcrumb.js +61 -0
- package/dist/button.cjs +44 -0
- package/dist/button.d.cts +35 -0
- package/dist/button.d.ts +35 -0
- package/dist/button.js +43 -0
- package/dist/calendar-DHg328Wh.cjs +915 -0
- package/dist/calendar-DeAf96cJ.js +838 -0
- package/dist/calendar.cjs +4 -0
- package/dist/calendar.d.cts +88 -0
- package/dist/calendar.d.ts +88 -0
- package/dist/calendar.js +1 -0
- package/dist/card-BTasFPAi.cjs +128 -0
- package/dist/card-Bl_qvP9O.d.ts +42 -0
- package/dist/card-GTyhk9cq.js +87 -0
- package/dist/card-s7z9AgPW.d.cts +42 -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 +220 -0
- package/dist/carousel.d.cts +68 -0
- package/dist/carousel.d.ts +68 -0
- package/dist/carousel.js +218 -0
- package/dist/checkbox-group.cjs +81 -0
- package/dist/checkbox-group.d.cts +44 -0
- package/dist/checkbox-group.d.ts +44 -0
- package/dist/checkbox-group.js +79 -0
- package/dist/checkbox.cjs +104 -0
- package/dist/checkbox.d.cts +50 -0
- package/dist/checkbox.d.ts +50 -0
- package/dist/checkbox.js +103 -0
- package/dist/collapsible-BnSkwTni.cjs +106 -0
- package/dist/collapsible-CpDUzooq.d.ts +57 -0
- package/dist/collapsible-DyHC_FGP.js +71 -0
- package/dist/collapsible-O9hUWgJA.d.cts +57 -0
- package/dist/collapsible.cjs +8 -0
- package/dist/collapsible.d.cts +2 -0
- package/dist/collapsible.d.ts +2 -0
- package/dist/collapsible.js +1 -0
- package/dist/color-picker.cjs +300 -0
- package/dist/color-picker.d.cts +151 -0
- package/dist/color-picker.d.ts +151 -0
- package/dist/color-picker.js +286 -0
- package/dist/combobox-BE_Ofnla.d.cts +263 -0
- package/dist/combobox-DLlN9OA1.js +922 -0
- package/dist/combobox-EPlhNIDM.d.ts +263 -0
- package/dist/combobox-s2YZXpzm.cjs +1119 -0
- package/dist/combobox.cjs +35 -0
- package/dist/combobox.d.cts +2 -0
- package/dist/combobox.d.ts +2 -0
- package/dist/combobox.js +1 -0
- package/dist/command-CL-Yr9xn.cjs +856 -0
- package/dist/command-D1obN_-I.js +707 -0
- package/dist/command-Dl9njwVq.d.cts +198 -0
- package/dist/command-M3-krsPS.d.ts +198 -0
- package/dist/command.cjs +16 -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-BlBg_gSG.js +166 -0
- package/dist/context-menu-CJ9UfOP7.d.cts +47 -0
- package/dist/context-menu-CYJ3zH5X.cjs +189 -0
- package/dist/context-menu-KR3kfesV.d.ts +47 -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 +1 -0
- package/dist/controller-BqMwv5AS.cjs +64 -0
- package/dist/controller-C8Z-wsos.d.cts +5 -0
- package/dist/controller-C8Z-wsos.d.ts +5 -0
- package/dist/controller-D9qJwhBF.js +53 -0
- package/dist/date-input.cjs +274 -0
- package/dist/date-input.d.cts +83 -0
- package/dist/date-input.d.ts +83 -0
- package/dist/date-input.js +271 -0
- package/dist/date-picker-B5FO4aeT.d.cts +153 -0
- package/dist/date-picker-Ba4QQARc.cjs +888 -0
- package/dist/date-picker-CALdRWyJ.js +841 -0
- package/dist/date-picker-D1WyqdXf.d.ts +153 -0
- package/dist/date-picker.cjs +4 -0
- package/dist/date-picker.d.cts +2 -0
- package/dist/date-picker.d.ts +2 -0
- package/dist/date-picker.js +1 -0
- package/dist/description-content-BLuIA4Pb.cjs +91 -0
- package/dist/description-content-BWxZuDXC.js +56 -0
- package/dist/dialog-BeQDFmmz.cjs +165 -0
- package/dist/dialog-DjzR1RON.d.ts +56 -0
- package/dist/dialog-LT5bRUot.js +135 -0
- package/dist/dialog-qAhmbIqQ.d.cts +56 -0
- package/dist/dialog-view-DbygGXef.js +118 -0
- package/dist/dialog-view-DfsNxRN7.cjs +147 -0
- package/dist/dialog.cjs +7 -0
- package/dist/dialog.d.cts +2 -0
- package/dist/dialog.d.ts +2 -0
- package/dist/dialog.js +1 -0
- package/dist/direction.cjs +25 -0
- package/dist/direction.d.cts +14 -0
- package/dist/direction.d.ts +14 -0
- package/dist/direction.js +24 -0
- package/dist/dnd.cjs +124 -0
- package/dist/dnd.d.cts +64 -0
- package/dist/dnd.d.ts +64 -0
- package/dist/dnd.js +119 -0
- package/dist/drawer.cjs +114 -0
- package/dist/drawer.d.cts +65 -0
- package/dist/drawer.d.ts +65 -0
- package/dist/drawer.js +111 -0
- package/dist/empty-state.cjs +70 -0
- package/dist/empty-state.d.cts +20 -0
- package/dist/empty-state.d.ts +20 -0
- package/dist/empty-state.js +69 -0
- package/dist/engine-signal-1bLbbRhE.js +9 -0
- package/dist/engine-signal-6pShphhv.cjs +14 -0
- package/dist/error-state.cjs +81 -0
- package/dist/error-state.d.cts +23 -0
- package/dist/error-state.d.ts +23 -0
- package/dist/error-state.js +80 -0
- package/dist/field-api-BW0JlKyA.cjs +18 -0
- package/dist/field-api-D5RjQPB3.js +13 -0
- package/dist/field.cjs +238 -0
- package/dist/field.d.cts +61 -0
- package/dist/field.d.ts +61 -0
- package/dist/field.js +232 -0
- package/dist/file-input.cjs +103 -0
- package/dist/file-input.d.cts +69 -0
- package/dist/file-input.d.ts +69 -0
- package/dist/file-input.js +101 -0
- package/dist/gauge-parts-B3P8g6bU.d.cts +29 -0
- package/dist/gauge-parts-Ca1FaLmF.js +84 -0
- package/dist/gauge-parts-Da9Dvvym.d.ts +29 -0
- package/dist/gauge-parts-DybADezg.cjs +95 -0
- package/dist/headless-BQH7sRXk.cjs +646 -0
- package/dist/headless-CoFdY0wl.d.cts +143 -0
- package/dist/headless-DYGhuD8h.js +623 -0
- package/dist/headless-kqnA1wix.d.ts +143 -0
- package/dist/headless-props-BE1RQfyU.d.cts +4 -0
- package/dist/headless-props-CBYucfR5.js +66 -0
- package/dist/headless-props-Cf7LwO5W.cjs +107 -0
- package/dist/headless-props-bnSQ57kj.d.ts +4 -0
- package/dist/headless.cjs +5 -0
- package/dist/headless.d.cts +2 -0
- package/dist/headless.d.ts +2 -0
- package/dist/headless.js +1 -0
- package/dist/hover-card.cjs +77 -0
- package/dist/hover-card.d.cts +49 -0
- package/dist/hover-card.d.ts +49 -0
- package/dist/hover-card.js +75 -0
- package/dist/icon-button.cjs +45 -0
- package/dist/icon-button.d.cts +21 -0
- package/dist/icon-button.d.ts +21 -0
- package/dist/icon-button.js +43 -0
- package/dist/image-cropper-BTboNMMN.d.ts +43 -0
- package/dist/image-cropper-ChThsl2E.cjs +113 -0
- package/dist/image-cropper-Q749T_mI.js +84 -0
- package/dist/image-cropper-Sw4GRMtW.d.cts +43 -0
- package/dist/image-cropper.cjs +6 -0
- package/dist/image-cropper.d.cts +2 -0
- package/dist/image-cropper.d.ts +2 -0
- package/dist/image-cropper.js +1 -0
- package/dist/image.cjs +44 -0
- package/dist/image.d.cts +29 -0
- package/dist/image.d.ts +29 -0
- package/dist/image.js +43 -0
- package/dist/index.cjs +1581 -0
- package/dist/index.d.cts +566 -0
- package/dist/index.d.ts +566 -0
- package/dist/index.js +867 -0
- package/dist/input-group.cjs +49 -0
- package/dist/input-group.d.cts +20 -0
- package/dist/input-group.d.ts +20 -0
- package/dist/input-group.js +48 -0
- package/dist/input.cjs +74 -0
- package/dist/input.d.cts +52 -0
- package/dist/input.d.ts +52 -0
- package/dist/input.js +72 -0
- package/dist/item-BMra-oi7.js +194 -0
- package/dist/item-C_ZhJGza.d.cts +71 -0
- package/dist/item-Dujbi4dB.cjs +265 -0
- package/dist/item-Uxz8gAzc.d.ts +71 -0
- package/dist/item.cjs +11 -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 +75 -0
- package/dist/kbd.d.cts +17 -0
- package/dist/kbd.d.ts +17 -0
- package/dist/kbd.js +74 -0
- package/dist/label.cjs +27 -0
- package/dist/label.d.cts +15 -0
- package/dist/label.d.ts +15 -0
- package/dist/label.js +26 -0
- package/dist/list-data-D0kJD8WS.js +40 -0
- package/dist/list-data-DKH9VSgs.cjs +69 -0
- package/dist/listbox-CuISC5VB.js +188 -0
- package/dist/listbox-DLpIDe7l.cjs +217 -0
- package/dist/listbox-DzRlXOH7.d.cts +96 -0
- package/dist/listbox-Gsy3yFFS.d.ts +96 -0
- package/dist/listbox.cjs +6 -0
- package/dist/listbox.d.cts +2 -0
- package/dist/listbox.d.ts +2 -0
- package/dist/listbox.js +1 -0
- package/dist/loader.cjs +37 -0
- package/dist/loader.d.cts +27 -0
- package/dist/loader.d.ts +27 -0
- package/dist/loader.js +36 -0
- package/dist/mention-menu.cjs +159 -0
- package/dist/mention-menu.d.cts +68 -0
- package/dist/mention-menu.d.ts +68 -0
- package/dist/mention-menu.js +157 -0
- package/dist/menu-BptiQtff.js +347 -0
- package/dist/menu-DCdNGoQP.d.cts +57 -0
- package/dist/menu-DeSo-q8T.d.ts +57 -0
- package/dist/menu-qGui6tgy.cjs +394 -0
- package/dist/menu.cjs +10 -0
- package/dist/menu.d.cts +2 -0
- package/dist/menu.d.ts +2 -0
- package/dist/menu.js +1 -0
- package/dist/menubar.cjs +53 -0
- package/dist/menubar.d.cts +33 -0
- package/dist/menubar.d.ts +33 -0
- package/dist/menubar.js +51 -0
- package/dist/meter.cjs +85 -0
- package/dist/meter.d.cts +42 -0
- package/dist/meter.d.ts +42 -0
- package/dist/meter.js +80 -0
- package/dist/native-select-Ca8YL0F5.js +104 -0
- package/dist/native-select-D5oPMNzp.cjs +121 -0
- package/dist/native-select-DqUdVxFD.d.ts +46 -0
- package/dist/native-select-IFCcJ7sM.d.cts +46 -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 +164 -0
- package/dist/navigation-menu.d.cts +68 -0
- package/dist/navigation-menu.d.ts +68 -0
- package/dist/navigation-menu.js +162 -0
- package/dist/number-input.cjs +181 -0
- package/dist/number-input.d.cts +87 -0
- package/dist/number-input.d.ts +87 -0
- package/dist/number-input.js +173 -0
- package/dist/otp-input.cjs +111 -0
- package/dist/otp-input.d.cts +49 -0
- package/dist/otp-input.d.ts +49 -0
- package/dist/otp-input.js +110 -0
- package/dist/overlay-controller-BNGpdfOi.cjs +64 -0
- package/dist/overlay-controller-BwJtB1tP.js +47 -0
- package/dist/overlay-controller-Cchdw1aT.d.cts +21 -0
- package/dist/overlay-controller-lT7Gkj00.d.ts +21 -0
- package/dist/pagination.cjs +153 -0
- package/dist/pagination.d.cts +55 -0
- package/dist/pagination.d.ts +55 -0
- package/dist/pagination.js +151 -0
- package/dist/password-input.cjs +110 -0
- package/dist/password-input.d.cts +71 -0
- package/dist/password-input.d.ts +71 -0
- package/dist/password-input.js +108 -0
- package/dist/popover.cjs +106 -0
- package/dist/popover.d.cts +66 -0
- package/dist/popover.d.ts +66 -0
- package/dist/popover.js +103 -0
- package/dist/preferences.cjs +82 -0
- package/dist/preferences.d.cts +26 -0
- package/dist/preferences.d.ts +26 -0
- package/dist/preferences.js +80 -0
- package/dist/presence.cjs +71 -0
- package/dist/presence.d.cts +31 -0
- package/dist/presence.d.ts +31 -0
- package/dist/presence.js +69 -0
- package/dist/progress.cjs +88 -0
- package/dist/progress.d.cts +40 -0
- package/dist/progress.d.ts +40 -0
- package/dist/progress.js +83 -0
- package/dist/query.cjs +235 -0
- package/dist/query.d.cts +72 -0
- package/dist/query.d.ts +72 -0
- package/dist/query.js +220 -0
- package/dist/radio.cjs +129 -0
- package/dist/radio.d.cts +57 -0
- package/dist/radio.d.ts +57 -0
- package/dist/radio.js +127 -0
- package/dist/rating.cjs +95 -0
- package/dist/rating.d.cts +53 -0
- package/dist/rating.d.ts +53 -0
- package/dist/rating.js +93 -0
- package/dist/resizable-BK4Fz6B5.d.ts +49 -0
- package/dist/resizable-CTAsuFPX.d.cts +49 -0
- package/dist/resizable-CwkUH-MF.js +108 -0
- package/dist/resizable-Ddlx8mi3.cjs +143 -0
- package/dist/resizable.cjs +8 -0
- package/dist/resizable.d.cts +2 -0
- package/dist/resizable.d.ts +2 -0
- package/dist/resizable.js +1 -0
- package/dist/scroll-area.cjs +48 -0
- package/dist/scroll-area.d.cts +32 -0
- package/dist/scroll-area.d.ts +32 -0
- package/dist/scroll-area.js +46 -0
- package/dist/segmented-control.cjs +97 -0
- package/dist/segmented-control.d.cts +54 -0
- package/dist/segmented-control.d.ts +54 -0
- package/dist/segmented-control.js +94 -0
- package/dist/select-BFfmeGUv.d.ts +153 -0
- package/dist/select-BQh8JVx5.cjs +493 -0
- package/dist/select-COgnUXgF.d.cts +153 -0
- package/dist/select-SutRVX6v.js +398 -0
- package/dist/select.cjs +18 -0
- package/dist/select.d.cts +2 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.js +1 -0
- package/dist/separator.cjs +19 -0
- package/dist/separator.d.cts +13 -0
- package/dist/separator.d.ts +13 -0
- package/dist/separator.js +18 -0
- package/dist/sheet.cjs +131 -0
- package/dist/sheet.d.cts +84 -0
- package/dist/sheet.d.ts +84 -0
- package/dist/sheet.js +128 -0
- package/dist/sidebar-CIG1qDhQ.cjs +93 -0
- package/dist/sidebar-Dbx8GT2H.d.ts +43 -0
- package/dist/sidebar-fT_qQ-T0.js +64 -0
- package/dist/sidebar-l-Aq9IOz.d.cts +43 -0
- package/dist/sidebar.cjs +7 -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 +62 -0
- package/dist/skeleton.d.cts +17 -0
- package/dist/skeleton.d.ts +17 -0
- package/dist/skeleton.js +61 -0
- package/dist/slider.cjs +146 -0
- package/dist/slider.d.cts +63 -0
- package/dist/slider.d.ts +63 -0
- package/dist/slider.js +137 -0
- package/dist/sortable-board-strict.cjs +121 -0
- package/dist/sortable-board-strict.d.cts +65 -0
- package/dist/sortable-board-strict.d.ts +65 -0
- package/dist/sortable-board-strict.js +114 -0
- package/dist/sortable-engine.cjs +150 -0
- package/dist/sortable-engine.d.cts +58 -0
- package/dist/sortable-engine.d.ts +58 -0
- package/dist/sortable-engine.js +148 -0
- package/dist/sortable-strict.cjs +108 -0
- package/dist/sortable-strict.d.cts +41 -0
- package/dist/sortable-strict.d.ts +41 -0
- package/dist/sortable-strict.js +102 -0
- package/dist/sortable.cjs +91 -0
- package/dist/sortable.d.cts +59 -0
- package/dist/sortable.d.ts +59 -0
- package/dist/sortable.js +90 -0
- package/dist/spinner-0flshyQD.d.cts +28 -0
- package/dist/spinner-CwRqmRiC.cjs +53 -0
- package/dist/spinner-DAy7BD58.js +36 -0
- package/dist/spinner-gyZlsbee.d.ts +28 -0
- package/dist/spinner.cjs +5 -0
- package/dist/spinner.d.cts +2 -0
- package/dist/spinner.d.ts +2 -0
- package/dist/spinner.js +1 -0
- package/dist/steps-BS3VTdAj.d.ts +42 -0
- package/dist/steps-C_q2sTwv.cjs +125 -0
- package/dist/steps-Cxo076uS.js +84 -0
- package/dist/steps-DNS1V6At.d.cts +42 -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 +90 -0
- package/dist/switch.d.cts +55 -0
- package/dist/switch.d.ts +55 -0
- package/dist/switch.js +88 -0
- package/dist/table.cjs +147 -0
- package/dist/table.d.cts +52 -0
- package/dist/table.d.ts +52 -0
- package/dist/table.js +146 -0
- package/dist/tabs.cjs +250 -0
- package/dist/tabs.d.cts +108 -0
- package/dist/tabs.d.ts +108 -0
- package/dist/tabs.js +243 -0
- package/dist/textarea.cjs +94 -0
- package/dist/textarea.d.cts +58 -0
- package/dist/textarea.d.ts +58 -0
- package/dist/textarea.js +92 -0
- package/dist/time-input.cjs +101 -0
- package/dist/time-input.d.cts +49 -0
- package/dist/time-input.d.ts +49 -0
- package/dist/time-input.js +100 -0
- package/dist/timeline-B-HlcIe2.d.cts +54 -0
- package/dist/timeline-B-nmr0Hb.js +113 -0
- package/dist/timeline-B9yOdmyL.cjs +178 -0
- package/dist/timeline-lJ2Eidq_.d.ts +54 -0
- package/dist/timeline.cjs +11 -0
- package/dist/timeline.d.cts +2 -0
- package/dist/timeline.d.ts +2 -0
- package/dist/timeline.js +1 -0
- package/dist/toast.cjs +320 -0
- package/dist/toast.d.cts +95 -0
- package/dist/toast.d.ts +95 -0
- package/dist/toast.js +307 -0
- package/dist/toggle-Bv70V6KS.d.cts +46 -0
- package/dist/toggle-Dpt_Qvx2.d.ts +46 -0
- package/dist/toggle-JXH5NEkQ.cjs +127 -0
- package/dist/toggle-group.cjs +63 -0
- package/dist/toggle-group.d.cts +35 -0
- package/dist/toggle-group.d.ts +35 -0
- package/dist/toggle-group.js +62 -0
- package/dist/toggle-nt4rA46s.js +104 -0
- package/dist/toggle.cjs +6 -0
- package/dist/toggle.d.cts +2 -0
- package/dist/toggle.d.ts +2 -0
- package/dist/toggle.js +1 -0
- package/dist/token-input-B0CXtxy3.d.cts +139 -0
- package/dist/token-input-BMkRWbm-.d.ts +139 -0
- package/dist/token-input-Cnw66beG.js +365 -0
- package/dist/token-input-NxrlP4Gz.cjs +418 -0
- package/dist/token-input.cjs +11 -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 +97 -0
- package/dist/toolbar.d.cts +35 -0
- package/dist/toolbar.d.ts +35 -0
- package/dist/toolbar.js +95 -0
- package/dist/tooltip.cjs +90 -0
- package/dist/tooltip.d.cts +53 -0
- package/dist/tooltip.d.ts +53 -0
- package/dist/tooltip.js +88 -0
- package/dist/tree-B9ONanD2.d.cts +106 -0
- package/dist/tree-C1q2lYJs.js +238 -0
- package/dist/tree-CNWDUX_r.cjs +267 -0
- package/dist/tree-CtVvz_b4.d.ts +106 -0
- package/dist/tree-grid-BWZHm05V.d.cts +62 -0
- package/dist/tree-grid-C7SXcLbA.js +164 -0
- package/dist/tree-grid-CNajLoL-.cjs +193 -0
- package/dist/tree-grid-CmzYkxyz.d.ts +62 -0
- package/dist/tree-grid.cjs +7 -0
- package/dist/tree-grid.d.cts +2 -0
- package/dist/tree-grid.d.ts +2 -0
- package/dist/tree-grid.js +1 -0
- package/dist/tree.cjs +6 -0
- package/dist/tree.d.cts +2 -0
- package/dist/tree.d.ts +2 -0
- package/dist/tree.js +1 -0
- package/dist/trigger-menu-D6VAW4RC.d.ts +142 -0
- package/dist/trigger-menu-DbAaDRBP.d.cts +142 -0
- package/dist/trigger-menu-DrgodhOD.js +465 -0
- package/dist/trigger-menu-kLYrZ8M7.cjs +542 -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 +1 -0
- package/dist/virtual-list-BCbpPSc2.d.cts +63 -0
- package/dist/virtual-list-BwS-lXzi.d.ts +63 -0
- package/dist/virtual-list-Df4oyIaV.cjs +155 -0
- package/dist/virtual-list-eCLq_nPF.js +126 -0
- package/dist/virtual-list.cjs +7 -0
- package/dist/virtual-list.d.cts +2 -0
- package/dist/virtual-list.d.ts +2 -0
- package/dist/virtual-list.js +1 -0
- package/dist/virtual.cjs +59 -0
- package/dist/virtual.d.cts +45 -0
- package/dist/virtual.d.ts +45 -0
- package/dist/virtual.js +58 -0
- package/dist/waterfall-chart.cjs +115 -0
- package/dist/waterfall-chart.d.cts +42 -0
- package/dist/waterfall-chart.d.ts +42 -0
- package/dist/waterfall-chart.js +113 -0
- package/dist/waterfall.cjs +346 -0
- package/dist/waterfall.d.cts +91 -0
- package/dist/waterfall.d.ts +91 -0
- package/dist/waterfall.js +333 -0
- package/package.json +521 -3
- package/README.md +0 -3
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { t as Controller } from "./controller-C8Z-wsos.cjs";
|
|
2
|
+
import { o as HeadlessPartRender } from "./headless-CoFdY0wl.cjs";
|
|
3
|
+
import { JSX } from "solid-js";
|
|
4
|
+
import { Child, WaterfallData, WaterfallDataItem, WaterfallTickData, WaterfallTraceRow, waterfallTraceRows } from "@bevelo/core";
|
|
5
|
+
import { PrimitiveWaterfallApi, PrimitiveWaterfallOptions, WaterfallItem } from "@bevelo/core/primitives/waterfall";
|
|
6
|
+
/** The rows an expansion shows, or a scroll window's slice of a flat row list. */
|
|
7
|
+
export declare const visibleWaterfallRows: typeof waterfallTraceRows;
|
|
8
|
+
/** The waterfall's api: the placement channel, plus expanding every trace branch or none. */
|
|
9
|
+
export type WaterfallApi = PrimitiveWaterfallApi & {
|
|
10
|
+
expandAll(): void;
|
|
11
|
+
collapseAll(): void;
|
|
12
|
+
};
|
|
13
|
+
export type WaterfallProps = {
|
|
14
|
+
/** The items to place: masonry items with their heights, or a trace's spans. */
|
|
15
|
+
items?: readonly (WaterfallItem | WaterfallDataItem)[];
|
|
16
|
+
/** How many equal columns to use. */
|
|
17
|
+
columns?: number;
|
|
18
|
+
/** Vertical gap between stacked items, in pixels. */
|
|
19
|
+
gap?: number;
|
|
20
|
+
/** Height of the scroll container, in pixels. 0 (the default) grows with the content. */
|
|
21
|
+
height?: number;
|
|
22
|
+
/** The container's accessible name. */
|
|
23
|
+
label?: string;
|
|
24
|
+
/** Reports the visible id set whenever it changes on scroll. */
|
|
25
|
+
onVisibleChange?: (ids: string[]) => void;
|
|
26
|
+
/** Frame injection for scroll coalescing. */
|
|
27
|
+
scheduler?: PrimitiveWaterfallOptions["scheduler"];
|
|
28
|
+
/** Visible time window `[start, end]` in trace mode. */
|
|
29
|
+
range?: readonly [number, number] | undefined;
|
|
30
|
+
/** The expanded span values. A present value makes expansion controlled. */
|
|
31
|
+
expanded?: readonly string[] | undefined;
|
|
32
|
+
/** What is expanded when the host does not control it. */
|
|
33
|
+
defaultExpanded?: readonly string[] | undefined;
|
|
34
|
+
/** Reports the next expanded values. */
|
|
35
|
+
onExpandedChange?: ((expanded: string[]) => void) | undefined;
|
|
36
|
+
/** The selected span value. A present value makes selection controlled. */
|
|
37
|
+
value?: string | null | undefined;
|
|
38
|
+
/** What is selected when the host does not control it. */
|
|
39
|
+
defaultValue?: string | null | undefined;
|
|
40
|
+
/** Reports the span a press selected. */
|
|
41
|
+
onChange?: ((value: string) => void) | undefined;
|
|
42
|
+
/** Item content, positionally: children[i] is items[i]; or a trace's compound rows. */
|
|
43
|
+
children?: JSX.Element | readonly Child[];
|
|
44
|
+
class?: string;
|
|
45
|
+
className?: string;
|
|
46
|
+
style?: JSX.CSSProperties | string;
|
|
47
|
+
/** Replace the container's element. It receives the part's props and state. */
|
|
48
|
+
render?: HeadlessPartRender<Record<string, unknown>>;
|
|
49
|
+
/** The container element. */
|
|
50
|
+
ref?: HTMLElement | ((element: HTMLElement) => void);
|
|
51
|
+
/** Receives the component's api (`placements`, `visibleIds`, `sync`, `expandAll`, `collapseAll`) while mounted. */
|
|
52
|
+
controller?: Controller<WaterfallApi>;
|
|
53
|
+
readonly [key: `data-${string}`]: string | number | boolean | undefined;
|
|
54
|
+
readonly [key: `aria-${string}`]: string | number | boolean | undefined;
|
|
55
|
+
};
|
|
56
|
+
export declare function Waterfall(props: WaterfallProps): JSX.Element;
|
|
57
|
+
/** A controller for a `Waterfall`: its api, once the container is mounted. */
|
|
58
|
+
export declare function createWaterfallController(): Controller<WaterfallApi>;
|
|
59
|
+
type DivProps = JSX.HTMLAttributes<HTMLDivElement>;
|
|
60
|
+
/** The header row of a trace. */
|
|
61
|
+
export declare function WaterfallHeaderRow(props: DivProps): JSX.Element;
|
|
62
|
+
/** A column header in the header row. */
|
|
63
|
+
export declare function WaterfallColumnHeader(props: DivProps): JSX.Element;
|
|
64
|
+
/** A row's header cell: the span's label and its indicator. */
|
|
65
|
+
export declare function WaterfallRowHeader(props: DivProps): JSX.Element;
|
|
66
|
+
/** A plain cell in a row. */
|
|
67
|
+
export declare function WaterfallCell(props: DivProps): JSX.Element;
|
|
68
|
+
/** One span's row. A press selects it. */
|
|
69
|
+
export declare function WaterfallRow(props: DivProps & {
|
|
70
|
+
readonly value?: string | undefined;
|
|
71
|
+
}): JSX.Element;
|
|
72
|
+
/** The time axis. A children function receives `{ ticks }` to render them. */
|
|
73
|
+
export declare function WaterfallAxis(props: Omit<DivProps, "children"> & {
|
|
74
|
+
readonly maxTicks?: number | undefined;
|
|
75
|
+
readonly children?: JSX.Element | ((state: {
|
|
76
|
+
readonly ticks: readonly WaterfallTickData[];
|
|
77
|
+
}) => JSX.Element);
|
|
78
|
+
}): JSX.Element;
|
|
79
|
+
/** One tick, placed at its time on the axis. */
|
|
80
|
+
export declare function WaterfallTick(props: JSX.HTMLAttributes<HTMLSpanElement> & {
|
|
81
|
+
readonly time: number;
|
|
82
|
+
}): JSX.Element;
|
|
83
|
+
/** The row's span as a bar: `--waterfall-start` and `--waterfall-size` place it. */
|
|
84
|
+
export declare function WaterfallBar(props: DivProps): JSX.Element;
|
|
85
|
+
/** The row's expand toggle. A press toggles the span without selecting the row. */
|
|
86
|
+
export declare function WaterfallIndicator(props: JSX.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
|
|
87
|
+
/** A marker at a moment on the axis, such as a page event. */
|
|
88
|
+
export declare function WaterfallMark(props: DivProps & {
|
|
89
|
+
readonly time?: number | undefined;
|
|
90
|
+
}): JSX.Element;
|
|
91
|
+
export type { WaterfallData, WaterfallDataItem, WaterfallTickData, WaterfallTraceRow };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { t as Controller } from "./controller-C8Z-wsos.js";
|
|
2
|
+
import { o as HeadlessPartRender } from "./headless-kqnA1wix.js";
|
|
3
|
+
import { Child, WaterfallData, WaterfallDataItem, WaterfallTickData, WaterfallTraceRow, waterfallTraceRows } from "@bevelo/core";
|
|
4
|
+
import { JSX } from "solid-js";
|
|
5
|
+
import { PrimitiveWaterfallApi, PrimitiveWaterfallOptions, WaterfallItem } from "@bevelo/core/primitives/waterfall";
|
|
6
|
+
/** The rows an expansion shows, or a scroll window's slice of a flat row list. */
|
|
7
|
+
export declare const visibleWaterfallRows: typeof waterfallTraceRows;
|
|
8
|
+
/** The waterfall's api: the placement channel, plus expanding every trace branch or none. */
|
|
9
|
+
export type WaterfallApi = PrimitiveWaterfallApi & {
|
|
10
|
+
expandAll(): void;
|
|
11
|
+
collapseAll(): void;
|
|
12
|
+
};
|
|
13
|
+
export type WaterfallProps = {
|
|
14
|
+
/** The items to place: masonry items with their heights, or a trace's spans. */
|
|
15
|
+
items?: readonly (WaterfallItem | WaterfallDataItem)[];
|
|
16
|
+
/** How many equal columns to use. */
|
|
17
|
+
columns?: number;
|
|
18
|
+
/** Vertical gap between stacked items, in pixels. */
|
|
19
|
+
gap?: number;
|
|
20
|
+
/** Height of the scroll container, in pixels. 0 (the default) grows with the content. */
|
|
21
|
+
height?: number;
|
|
22
|
+
/** The container's accessible name. */
|
|
23
|
+
label?: string;
|
|
24
|
+
/** Reports the visible id set whenever it changes on scroll. */
|
|
25
|
+
onVisibleChange?: (ids: string[]) => void;
|
|
26
|
+
/** Frame injection for scroll coalescing. */
|
|
27
|
+
scheduler?: PrimitiveWaterfallOptions["scheduler"];
|
|
28
|
+
/** Visible time window `[start, end]` in trace mode. */
|
|
29
|
+
range?: readonly [number, number] | undefined;
|
|
30
|
+
/** The expanded span values. A present value makes expansion controlled. */
|
|
31
|
+
expanded?: readonly string[] | undefined;
|
|
32
|
+
/** What is expanded when the host does not control it. */
|
|
33
|
+
defaultExpanded?: readonly string[] | undefined;
|
|
34
|
+
/** Reports the next expanded values. */
|
|
35
|
+
onExpandedChange?: ((expanded: string[]) => void) | undefined;
|
|
36
|
+
/** The selected span value. A present value makes selection controlled. */
|
|
37
|
+
value?: string | null | undefined;
|
|
38
|
+
/** What is selected when the host does not control it. */
|
|
39
|
+
defaultValue?: string | null | undefined;
|
|
40
|
+
/** Reports the span a press selected. */
|
|
41
|
+
onChange?: ((value: string) => void) | undefined;
|
|
42
|
+
/** Item content, positionally: children[i] is items[i]; or a trace's compound rows. */
|
|
43
|
+
children?: JSX.Element | readonly Child[];
|
|
44
|
+
class?: string;
|
|
45
|
+
className?: string;
|
|
46
|
+
style?: JSX.CSSProperties | string;
|
|
47
|
+
/** Replace the container's element. It receives the part's props and state. */
|
|
48
|
+
render?: HeadlessPartRender<Record<string, unknown>>;
|
|
49
|
+
/** The container element. */
|
|
50
|
+
ref?: HTMLElement | ((element: HTMLElement) => void);
|
|
51
|
+
/** Receives the component's api (`placements`, `visibleIds`, `sync`, `expandAll`, `collapseAll`) while mounted. */
|
|
52
|
+
controller?: Controller<WaterfallApi>;
|
|
53
|
+
readonly [key: `data-${string}`]: string | number | boolean | undefined;
|
|
54
|
+
readonly [key: `aria-${string}`]: string | number | boolean | undefined;
|
|
55
|
+
};
|
|
56
|
+
export declare function Waterfall(props: WaterfallProps): JSX.Element;
|
|
57
|
+
/** A controller for a `Waterfall`: its api, once the container is mounted. */
|
|
58
|
+
export declare function createWaterfallController(): Controller<WaterfallApi>;
|
|
59
|
+
type DivProps = JSX.HTMLAttributes<HTMLDivElement>;
|
|
60
|
+
/** The header row of a trace. */
|
|
61
|
+
export declare function WaterfallHeaderRow(props: DivProps): JSX.Element;
|
|
62
|
+
/** A column header in the header row. */
|
|
63
|
+
export declare function WaterfallColumnHeader(props: DivProps): JSX.Element;
|
|
64
|
+
/** A row's header cell: the span's label and its indicator. */
|
|
65
|
+
export declare function WaterfallRowHeader(props: DivProps): JSX.Element;
|
|
66
|
+
/** A plain cell in a row. */
|
|
67
|
+
export declare function WaterfallCell(props: DivProps): JSX.Element;
|
|
68
|
+
/** One span's row. A press selects it. */
|
|
69
|
+
export declare function WaterfallRow(props: DivProps & {
|
|
70
|
+
readonly value?: string | undefined;
|
|
71
|
+
}): JSX.Element;
|
|
72
|
+
/** The time axis. A children function receives `{ ticks }` to render them. */
|
|
73
|
+
export declare function WaterfallAxis(props: Omit<DivProps, "children"> & {
|
|
74
|
+
readonly maxTicks?: number | undefined;
|
|
75
|
+
readonly children?: JSX.Element | ((state: {
|
|
76
|
+
readonly ticks: readonly WaterfallTickData[];
|
|
77
|
+
}) => JSX.Element);
|
|
78
|
+
}): JSX.Element;
|
|
79
|
+
/** One tick, placed at its time on the axis. */
|
|
80
|
+
export declare function WaterfallTick(props: JSX.HTMLAttributes<HTMLSpanElement> & {
|
|
81
|
+
readonly time: number;
|
|
82
|
+
}): JSX.Element;
|
|
83
|
+
/** The row's span as a bar: `--waterfall-start` and `--waterfall-size` place it. */
|
|
84
|
+
export declare function WaterfallBar(props: DivProps): JSX.Element;
|
|
85
|
+
/** The row's expand toggle. A press toggles the span without selecting the row. */
|
|
86
|
+
export declare function WaterfallIndicator(props: JSX.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
|
|
87
|
+
/** A marker at a moment on the axis, such as a page event. */
|
|
88
|
+
export declare function WaterfallMark(props: DivProps & {
|
|
89
|
+
readonly time?: number | undefined;
|
|
90
|
+
}): JSX.Element;
|
|
91
|
+
export type { WaterfallData, WaterfallDataItem, WaterfallTickData, WaterfallTraceRow };
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { n as useControllerAttach, t as createController } from "./controller-D9qJwhBF.js";
|
|
2
|
+
import { n as usePart, r as usePrimitive } from "./headless-DYGhuD8h.js";
|
|
3
|
+
import { r as descriptionNodes } from "./description-content-BWxZuDXC.js";
|
|
4
|
+
import { createComponent, delegateEvents, insert, mergeProps, spread, template, use } from "solid-js/web";
|
|
5
|
+
import { isDescription, isWaterfallTrace, toggleWaterfallTraceExpanded, waterfallTraceBarStyle, waterfallTraceBranches, waterfallTraceIndex, waterfallTraceOffset, waterfallTraceRange, waterfallTraceRows, waterfallTraceTicks } from "@bevelo/core";
|
|
6
|
+
import { For, Show, createContext, createMemo, createSignal, splitProps, useContext } from "solid-js";
|
|
7
|
+
import { waterfallPrimitive } from "@bevelo/core/primitives/waterfall";
|
|
8
|
+
// src/waterfall.tsx
|
|
9
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div role=treegrid data-slot=waterfall>`);
|
|
10
|
+
var _tmpl$2 = /*#__PURE__*/ template(`<div role=row data-slot=waterfall-header-row>`);
|
|
11
|
+
var _tmpl$3 = /*#__PURE__*/ template(`<div role=columnheader data-slot=waterfall-column-header>`);
|
|
12
|
+
var _tmpl$4 = /*#__PURE__*/ template(`<div role=rowheader data-slot=waterfall-row-header>`);
|
|
13
|
+
var _tmpl$5 = /*#__PURE__*/ template(`<div role=cell data-slot=waterfall-cell>`);
|
|
14
|
+
var _tmpl$6 = /*#__PURE__*/ template(`<div role=row data-slot=waterfall-row>`);
|
|
15
|
+
var _tmpl$7 = /*#__PURE__*/ template(`<div data-slot=waterfall-axis>`);
|
|
16
|
+
var _tmpl$8 = /*#__PURE__*/ template(`<span data-slot=waterfall-tick>`);
|
|
17
|
+
var _tmpl$9 = /*#__PURE__*/ template(`<div data-slot=waterfall-bar>`);
|
|
18
|
+
var _tmpl$0 = /*#__PURE__*/ template(`<button type=button data-slot=waterfall-indicator>`);
|
|
19
|
+
var _tmpl$1 = /*#__PURE__*/ template(`<div data-slot=waterfall-mark>`);
|
|
20
|
+
/** The rows an expansion shows, or a scroll window's slice of a flat row list. */
|
|
21
|
+
const visibleWaterfallRows = waterfallTraceRows;
|
|
22
|
+
const EMPTY_ITEMS = [];
|
|
23
|
+
const OPTION_KEYS = [
|
|
24
|
+
"items",
|
|
25
|
+
"columns",
|
|
26
|
+
"gap",
|
|
27
|
+
"height",
|
|
28
|
+
"label",
|
|
29
|
+
"onVisibleChange",
|
|
30
|
+
"scheduler",
|
|
31
|
+
"children",
|
|
32
|
+
"render",
|
|
33
|
+
"ref",
|
|
34
|
+
"controller",
|
|
35
|
+
"range",
|
|
36
|
+
"expanded",
|
|
37
|
+
"defaultExpanded",
|
|
38
|
+
"onExpandedChange",
|
|
39
|
+
"value",
|
|
40
|
+
"defaultValue",
|
|
41
|
+
"onChange"
|
|
42
|
+
];
|
|
43
|
+
/** One item's content: children[position], description-converted when it is one. */
|
|
44
|
+
function childAt(children, position) {
|
|
45
|
+
if (children === void 0 || children === null) return;
|
|
46
|
+
const child = (Array.isArray(children) ? children : [children])[position];
|
|
47
|
+
if (child === null || child === void 0 || child === false) return;
|
|
48
|
+
if (typeof child === "string" || typeof child === "number") return child;
|
|
49
|
+
if (isDescription(child)) return descriptionNodes([child]);
|
|
50
|
+
return child;
|
|
51
|
+
}
|
|
52
|
+
/** One placed item; a component so the placement keeps a stable identity. */
|
|
53
|
+
function WaterfallItemNode(props) {
|
|
54
|
+
return usePart(props.handle, "item", () => ({ children: props.children }), void 0, { index: props.position });
|
|
55
|
+
}
|
|
56
|
+
function Waterfall(props) {
|
|
57
|
+
const trace = createMemo(() => isWaterfallTrace(props.items, "children" in props));
|
|
58
|
+
return createComponent(Show, {
|
|
59
|
+
get when() {
|
|
60
|
+
return trace();
|
|
61
|
+
},
|
|
62
|
+
get fallback() {
|
|
63
|
+
return createComponent(WaterfallMasonryRoot, props);
|
|
64
|
+
},
|
|
65
|
+
get children() {
|
|
66
|
+
return createComponent(WaterfallTraceRoot, props);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function WaterfallMasonryRoot(props) {
|
|
71
|
+
const [local, element] = splitProps(props, OPTION_KEYS);
|
|
72
|
+
const handle = usePrimitive(waterfallPrimitive, () => ({
|
|
73
|
+
items: local.items ?? EMPTY_ITEMS,
|
|
74
|
+
columns: local.columns ?? 2,
|
|
75
|
+
gap: local.gap ?? 8,
|
|
76
|
+
height: local.height ?? 0,
|
|
77
|
+
label: local.label ?? "",
|
|
78
|
+
...local.onVisibleChange === void 0 ? {} : { onVisibleChange: local.onVisibleChange },
|
|
79
|
+
...local.scheduler === void 0 ? {} : { scheduler: local.scheduler }
|
|
80
|
+
}));
|
|
81
|
+
const api = handle.api;
|
|
82
|
+
useControllerAttach(local.controller, {
|
|
83
|
+
...api,
|
|
84
|
+
expandAll: () => {},
|
|
85
|
+
collapseAll: () => {}
|
|
86
|
+
});
|
|
87
|
+
const placements = createMemo(() => {
|
|
88
|
+
handle.revision();
|
|
89
|
+
return api.placements();
|
|
90
|
+
});
|
|
91
|
+
const spacer = usePart(handle, "spacer");
|
|
92
|
+
const content = [createComponent(For, {
|
|
93
|
+
get each() {
|
|
94
|
+
return placements();
|
|
95
|
+
},
|
|
96
|
+
children: (placement, position) => createComponent(WaterfallItemNode, {
|
|
97
|
+
handle,
|
|
98
|
+
get position() {
|
|
99
|
+
return position();
|
|
100
|
+
},
|
|
101
|
+
placement,
|
|
102
|
+
get children() {
|
|
103
|
+
return childAt(local.children, position());
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
}), spacer];
|
|
107
|
+
return usePart(handle, "root", () => ({
|
|
108
|
+
...element,
|
|
109
|
+
...local.ref === void 0 ? {} : { ref: local.ref },
|
|
110
|
+
children: content
|
|
111
|
+
}), local.render);
|
|
112
|
+
}
|
|
113
|
+
/** A controller for a `Waterfall`: its api, once the container is mounted. */
|
|
114
|
+
function createWaterfallController() {
|
|
115
|
+
return createController();
|
|
116
|
+
}
|
|
117
|
+
const TraceContext = createContext();
|
|
118
|
+
const RowContext = createContext();
|
|
119
|
+
const FALLBACK_RANGE = [0, 100];
|
|
120
|
+
const NO_SPANS = [];
|
|
121
|
+
function rangeOf(context) {
|
|
122
|
+
return context?.range() ?? FALLBACK_RANGE;
|
|
123
|
+
}
|
|
124
|
+
function WaterfallTraceRoot(props) {
|
|
125
|
+
const [local, element] = splitProps(props, OPTION_KEYS);
|
|
126
|
+
const [ownExpanded, setOwnExpanded] = createSignal(local.defaultExpanded ?? []);
|
|
127
|
+
const [ownValue, setOwnValue] = createSignal(local.defaultValue);
|
|
128
|
+
const expandedList = () => local.expanded ?? ownExpanded();
|
|
129
|
+
const spanItems = () => local.items ?? NO_SPANS;
|
|
130
|
+
const spans = createMemo(() => waterfallTraceIndex(spanItems()));
|
|
131
|
+
const setExpanded = (next) => {
|
|
132
|
+
if (local.expanded === void 0) setOwnExpanded(next);
|
|
133
|
+
local.onExpandedChange?.(next);
|
|
134
|
+
};
|
|
135
|
+
const context = {
|
|
136
|
+
range: createMemo(() => waterfallTraceRange(spans().values(), local.range)),
|
|
137
|
+
spans,
|
|
138
|
+
expanded: createMemo(() => new Set(expandedList())),
|
|
139
|
+
value: () => (local.value === void 0 ? ownValue() : local.value) ?? void 0,
|
|
140
|
+
toggle: (value) => setExpanded(toggleWaterfallTraceExpanded(expandedList(), value)),
|
|
141
|
+
select: (value) => {
|
|
142
|
+
if (local.value === void 0) setOwnValue(value);
|
|
143
|
+
local.onChange?.(value);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
useControllerAttach(local.controller, {
|
|
147
|
+
attach: () => {},
|
|
148
|
+
visibleIds: () => [],
|
|
149
|
+
placements: () => [],
|
|
150
|
+
sync: () => {},
|
|
151
|
+
onScroll: () => {},
|
|
152
|
+
expandAll: () => setExpanded(waterfallTraceBranches(spanItems())),
|
|
153
|
+
collapseAll: () => setExpanded([])
|
|
154
|
+
});
|
|
155
|
+
return createComponent(TraceContext.Provider, {
|
|
156
|
+
value: context,
|
|
157
|
+
get children() {
|
|
158
|
+
var _el$ = _tmpl$();
|
|
159
|
+
var _ref$ = local.ref;
|
|
160
|
+
typeof _ref$ === "function" ? use(_ref$, _el$) : local.ref = _el$;
|
|
161
|
+
spread(_el$, mergeProps({ get ["aria-label"]() {
|
|
162
|
+
return local.label || void 0;
|
|
163
|
+
} }, element), false, true);
|
|
164
|
+
insert(_el$, () => local.children);
|
|
165
|
+
return _el$;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
/** The header row of a trace. */
|
|
170
|
+
function WaterfallHeaderRow(props) {
|
|
171
|
+
return (() => {
|
|
172
|
+
var _el$2 = _tmpl$2();
|
|
173
|
+
spread(_el$2, props, false, false);
|
|
174
|
+
return _el$2;
|
|
175
|
+
})();
|
|
176
|
+
}
|
|
177
|
+
/** A column header in the header row. */
|
|
178
|
+
function WaterfallColumnHeader(props) {
|
|
179
|
+
return (() => {
|
|
180
|
+
var _el$3 = _tmpl$3();
|
|
181
|
+
spread(_el$3, props, false, false);
|
|
182
|
+
return _el$3;
|
|
183
|
+
})();
|
|
184
|
+
}
|
|
185
|
+
/** A row's header cell: the span's label and its indicator. */
|
|
186
|
+
function WaterfallRowHeader(props) {
|
|
187
|
+
return (() => {
|
|
188
|
+
var _el$4 = _tmpl$4();
|
|
189
|
+
spread(_el$4, props, false, false);
|
|
190
|
+
return _el$4;
|
|
191
|
+
})();
|
|
192
|
+
}
|
|
193
|
+
/** A plain cell in a row. */
|
|
194
|
+
function WaterfallCell(props) {
|
|
195
|
+
return (() => {
|
|
196
|
+
var _el$5 = _tmpl$5();
|
|
197
|
+
spread(_el$5, props, false, false);
|
|
198
|
+
return _el$5;
|
|
199
|
+
})();
|
|
200
|
+
}
|
|
201
|
+
/** One span's row. A press selects it. */
|
|
202
|
+
function WaterfallRow(props) {
|
|
203
|
+
const [local, rest] = splitProps(props, [
|
|
204
|
+
"value",
|
|
205
|
+
"children",
|
|
206
|
+
"onClick"
|
|
207
|
+
]);
|
|
208
|
+
const context = useContext(TraceContext);
|
|
209
|
+
const value = () => local.value ?? "";
|
|
210
|
+
const selected = () => Boolean(value() && context?.value() === value());
|
|
211
|
+
return createComponent(RowContext.Provider, {
|
|
212
|
+
value,
|
|
213
|
+
get children() {
|
|
214
|
+
var _el$6 = _tmpl$6();
|
|
215
|
+
_el$6.$$click = (event) => {
|
|
216
|
+
if (value()) context?.select(value());
|
|
217
|
+
const handler = local.onClick;
|
|
218
|
+
if (typeof handler === "function") handler(event);
|
|
219
|
+
};
|
|
220
|
+
spread(_el$6, mergeProps({
|
|
221
|
+
get ["data-value"]() {
|
|
222
|
+
return value();
|
|
223
|
+
},
|
|
224
|
+
get ["aria-selected"]() {
|
|
225
|
+
return selected() ? "true" : void 0;
|
|
226
|
+
},
|
|
227
|
+
get ["data-selected"]() {
|
|
228
|
+
return selected() ? "" : void 0;
|
|
229
|
+
}
|
|
230
|
+
}, rest), false, true);
|
|
231
|
+
insert(_el$6, () => local.children);
|
|
232
|
+
return _el$6;
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
/** The time axis. A children function receives `{ ticks }` to render them. */
|
|
237
|
+
function WaterfallAxis(props) {
|
|
238
|
+
const [local, rest] = splitProps(props, ["maxTicks", "children"]);
|
|
239
|
+
const context = useContext(TraceContext);
|
|
240
|
+
const content = () => {
|
|
241
|
+
const children = local.children;
|
|
242
|
+
return typeof children === "function" ? children({ ticks: waterfallTraceTicks(rangeOf(context), local.maxTicks) }) : children;
|
|
243
|
+
};
|
|
244
|
+
return (() => {
|
|
245
|
+
var _el$7 = _tmpl$7();
|
|
246
|
+
spread(_el$7, rest, false, true);
|
|
247
|
+
insert(_el$7, content);
|
|
248
|
+
return _el$7;
|
|
249
|
+
})();
|
|
250
|
+
}
|
|
251
|
+
/** One tick, placed at its time on the axis. */
|
|
252
|
+
function WaterfallTick(props) {
|
|
253
|
+
const [local, rest] = splitProps(props, ["time", "style"]);
|
|
254
|
+
const context = useContext(TraceContext);
|
|
255
|
+
const offset = () => `${waterfallTraceOffset(local.time, rangeOf(context))}%`;
|
|
256
|
+
return (() => {
|
|
257
|
+
var _el$8 = _tmpl$8();
|
|
258
|
+
spread(_el$8, mergeProps({ get style() {
|
|
259
|
+
return {
|
|
260
|
+
"--waterfall-tick": offset(),
|
|
261
|
+
left: offset(),
|
|
262
|
+
...local.style
|
|
263
|
+
};
|
|
264
|
+
} }, rest), false, false);
|
|
265
|
+
return _el$8;
|
|
266
|
+
})();
|
|
267
|
+
}
|
|
268
|
+
/** The row's span as a bar: `--waterfall-start` and `--waterfall-size` place it. */
|
|
269
|
+
function WaterfallBar(props) {
|
|
270
|
+
const [local, rest] = splitProps(props, ["style"]);
|
|
271
|
+
const context = useContext(TraceContext);
|
|
272
|
+
const row = useContext(RowContext);
|
|
273
|
+
return (() => {
|
|
274
|
+
var _el$9 = _tmpl$9();
|
|
275
|
+
spread(_el$9, mergeProps({ get style() {
|
|
276
|
+
return {
|
|
277
|
+
...waterfallTraceBarStyle(row ? context?.spans().get(row()) : void 0, rangeOf(context)),
|
|
278
|
+
...local.style
|
|
279
|
+
};
|
|
280
|
+
} }, rest), false, false);
|
|
281
|
+
return _el$9;
|
|
282
|
+
})();
|
|
283
|
+
}
|
|
284
|
+
/** The row's expand toggle. A press toggles the span without selecting the row. */
|
|
285
|
+
function WaterfallIndicator(props) {
|
|
286
|
+
const [local, rest] = splitProps(props, ["children", "onClick"]);
|
|
287
|
+
const context = useContext(TraceContext);
|
|
288
|
+
const row = useContext(RowContext);
|
|
289
|
+
const expanded = () => Boolean(row?.() && context?.expanded().has(row()));
|
|
290
|
+
return (() => {
|
|
291
|
+
var _el$0 = _tmpl$0();
|
|
292
|
+
_el$0.$$click = (event) => {
|
|
293
|
+
event.stopPropagation();
|
|
294
|
+
if (row?.()) context?.toggle(row());
|
|
295
|
+
const handler = local.onClick;
|
|
296
|
+
if (typeof handler === "function") handler(event);
|
|
297
|
+
};
|
|
298
|
+
spread(_el$0, mergeProps({
|
|
299
|
+
get ["data-expanded"]() {
|
|
300
|
+
return expanded() ? "" : void 0;
|
|
301
|
+
},
|
|
302
|
+
get ["aria-expanded"]() {
|
|
303
|
+
return expanded() ? "true" : "false";
|
|
304
|
+
}
|
|
305
|
+
}, rest), false, true);
|
|
306
|
+
insert(_el$0, () => local.children);
|
|
307
|
+
return _el$0;
|
|
308
|
+
})();
|
|
309
|
+
}
|
|
310
|
+
/** A marker at a moment on the axis, such as a page event. */
|
|
311
|
+
function WaterfallMark(props) {
|
|
312
|
+
const [local, rest] = splitProps(props, ["time", "style"]);
|
|
313
|
+
const context = useContext(TraceContext);
|
|
314
|
+
const style = () => {
|
|
315
|
+
const own = local.style;
|
|
316
|
+
if (local.time === void 0) return own;
|
|
317
|
+
const offset = `${waterfallTraceOffset(local.time, rangeOf(context))}%`;
|
|
318
|
+
return {
|
|
319
|
+
"--waterfall-mark": offset,
|
|
320
|
+
left: offset,
|
|
321
|
+
...own
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
return (() => {
|
|
325
|
+
var _el$1 = _tmpl$1();
|
|
326
|
+
spread(_el$1, mergeProps({ get style() {
|
|
327
|
+
return style();
|
|
328
|
+
} }, rest), false, false);
|
|
329
|
+
return _el$1;
|
|
330
|
+
})();
|
|
331
|
+
}
|
|
332
|
+
delegateEvents(["click"]);
|
|
333
|
+
export { Waterfall, WaterfallAxis, WaterfallBar, WaterfallCell, WaterfallColumnHeader, WaterfallHeaderRow, WaterfallIndicator, WaterfallMark, WaterfallRow, WaterfallRowHeader, WaterfallTick, createWaterfallController, visibleWaterfallRows };
|