@sewadah/selaras 0.1.1
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/README.md +131 -0
- package/dist/module.d.mts +22 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +127 -0
- package/dist/runtime/components/Accordion.d.vue.ts +59 -0
- package/dist/runtime/components/Accordion.vue +65 -0
- package/dist/runtime/components/Accordion.vue.d.ts +59 -0
- package/dist/runtime/components/Alert.d.vue.ts +39 -0
- package/dist/runtime/components/Alert.vue +64 -0
- package/dist/runtime/components/Alert.vue.d.ts +39 -0
- package/dist/runtime/components/AlertDialog.d.vue.ts +66 -0
- package/dist/runtime/components/AlertDialog.vue +116 -0
- package/dist/runtime/components/AlertDialog.vue.d.ts +66 -0
- package/dist/runtime/components/App.d.vue.ts +32 -0
- package/dist/runtime/components/App.vue +26 -0
- package/dist/runtime/components/App.vue.d.ts +32 -0
- package/dist/runtime/components/Autocomplete.d.vue.ts +61 -0
- package/dist/runtime/components/Autocomplete.vue +41 -0
- package/dist/runtime/components/Autocomplete.vue.d.ts +61 -0
- package/dist/runtime/components/Avatar.d.vue.ts +46 -0
- package/dist/runtime/components/Avatar.vue +64 -0
- package/dist/runtime/components/Avatar.vue.d.ts +46 -0
- package/dist/runtime/components/AvatarGroup.d.vue.ts +14 -0
- package/dist/runtime/components/AvatarGroup.vue +41 -0
- package/dist/runtime/components/AvatarGroup.vue.d.ts +14 -0
- package/dist/runtime/components/Badge.d.vue.ts +37 -0
- package/dist/runtime/components/Badge.vue +47 -0
- package/dist/runtime/components/Badge.vue.d.ts +37 -0
- package/dist/runtime/components/Breadcrumb.d.vue.ts +37 -0
- package/dist/runtime/components/Breadcrumb.vue +109 -0
- package/dist/runtime/components/Breadcrumb.vue.d.ts +37 -0
- package/dist/runtime/components/Button.d.vue.ts +45 -0
- package/dist/runtime/components/Button.vue +67 -0
- package/dist/runtime/components/Button.vue.d.ts +45 -0
- package/dist/runtime/components/ButtonGroup.d.vue.ts +22 -0
- package/dist/runtime/components/ButtonGroup.vue +21 -0
- package/dist/runtime/components/ButtonGroup.vue.d.ts +22 -0
- package/dist/runtime/components/Callout.d.vue.ts +27 -0
- package/dist/runtime/components/Callout.vue +47 -0
- package/dist/runtime/components/Callout.vue.d.ts +27 -0
- package/dist/runtime/components/Card.d.vue.ts +25 -0
- package/dist/runtime/components/Card.vue +30 -0
- package/dist/runtime/components/Card.vue.d.ts +25 -0
- package/dist/runtime/components/CardGroup.d.vue.ts +23 -0
- package/dist/runtime/components/CardGroup.vue +19 -0
- package/dist/runtime/components/CardGroup.vue.d.ts +23 -0
- package/dist/runtime/components/Checkbox.d.vue.ts +45 -0
- package/dist/runtime/components/Checkbox.vue +76 -0
- package/dist/runtime/components/Checkbox.vue.d.ts +45 -0
- package/dist/runtime/components/Chip.d.vue.ts +50 -0
- package/dist/runtime/components/Chip.vue +75 -0
- package/dist/runtime/components/Chip.vue.d.ts +50 -0
- package/dist/runtime/components/CodeButton.d.vue.ts +21 -0
- package/dist/runtime/components/CodeButton.vue +33 -0
- package/dist/runtime/components/CodeButton.vue.d.ts +21 -0
- package/dist/runtime/components/CodeGroup.d.vue.ts +3 -0
- package/dist/runtime/components/CodeGroup.vue +46 -0
- package/dist/runtime/components/CodeGroup.vue.d.ts +3 -0
- package/dist/runtime/components/CodeTree.d.vue.ts +17 -0
- package/dist/runtime/components/CodeTree.vue +56 -0
- package/dist/runtime/components/CodeTree.vue.d.ts +17 -0
- package/dist/runtime/components/Collapsible.d.vue.ts +44 -0
- package/dist/runtime/components/Collapsible.vue +52 -0
- package/dist/runtime/components/Collapsible.vue.d.ts +44 -0
- package/dist/runtime/components/ColorModeToggle.d.vue.ts +3 -0
- package/dist/runtime/components/ColorModeToggle.vue +24 -0
- package/dist/runtime/components/ColorModeToggle.vue.d.ts +3 -0
- package/dist/runtime/components/ColorPicker.d.vue.ts +30 -0
- package/dist/runtime/components/ColorPicker.vue +112 -0
- package/dist/runtime/components/ColorPicker.vue.d.ts +30 -0
- package/dist/runtime/components/Column.d.ts +72 -0
- package/dist/runtime/components/Column.js +34 -0
- package/dist/runtime/components/ColumnGroup.d.ts +33 -0
- package/dist/runtime/components/ColumnGroup.js +17 -0
- package/dist/runtime/components/CommandPalette.d.vue.ts +41 -0
- package/dist/runtime/components/CommandPalette.vue +208 -0
- package/dist/runtime/components/CommandPalette.vue.d.ts +41 -0
- package/dist/runtime/components/Container.d.vue.ts +22 -0
- package/dist/runtime/components/Container.vue +21 -0
- package/dist/runtime/components/Container.vue.d.ts +22 -0
- package/dist/runtime/components/ContentNavigation.d.vue.ts +31 -0
- package/dist/runtime/components/ContentNavigation.vue +64 -0
- package/dist/runtime/components/ContentNavigation.vue.d.ts +31 -0
- package/dist/runtime/components/ContentSurround.d.vue.ts +16 -0
- package/dist/runtime/components/ContentSurround.vue +46 -0
- package/dist/runtime/components/ContentSurround.vue.d.ts +16 -0
- package/dist/runtime/components/ContentToc.d.vue.ts +35 -0
- package/dist/runtime/components/ContentToc.vue +265 -0
- package/dist/runtime/components/ContentToc.vue.d.ts +35 -0
- package/dist/runtime/components/ContextMenu.d.vue.ts +33 -0
- package/dist/runtime/components/ContextMenu.vue +49 -0
- package/dist/runtime/components/ContextMenu.vue.d.ts +33 -0
- package/dist/runtime/components/DashboardGroup.d.vue.ts +24 -0
- package/dist/runtime/components/DashboardGroup.vue +52 -0
- package/dist/runtime/components/DashboardGroup.vue.d.ts +24 -0
- package/dist/runtime/components/DashboardNavbar.d.vue.ts +23 -0
- package/dist/runtime/components/DashboardNavbar.vue +33 -0
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +23 -0
- package/dist/runtime/components/DashboardPanel.d.vue.ts +22 -0
- package/dist/runtime/components/DashboardPanel.vue +26 -0
- package/dist/runtime/components/DashboardPanel.vue.d.ts +22 -0
- package/dist/runtime/components/DashboardResizeHandle.d.vue.ts +8 -0
- package/dist/runtime/components/DashboardResizeHandle.vue +19 -0
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +8 -0
- package/dist/runtime/components/DashboardSidebar.d.vue.ts +40 -0
- package/dist/runtime/components/DashboardSidebar.vue +117 -0
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +40 -0
- package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +21 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue +42 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +21 -0
- package/dist/runtime/components/DatePicker.d.vue.ts +165 -0
- package/dist/runtime/components/DatePicker.vue +796 -0
- package/dist/runtime/components/DatePicker.vue.d.ts +165 -0
- package/dist/runtime/components/Drawer.d.vue.ts +74 -0
- package/dist/runtime/components/Drawer.vue +157 -0
- package/dist/runtime/components/Drawer.vue.d.ts +74 -0
- package/dist/runtime/components/DrawerRenderer.d.vue.ts +3 -0
- package/dist/runtime/components/DrawerRenderer.vue +30 -0
- package/dist/runtime/components/DrawerRenderer.vue.d.ts +3 -0
- package/dist/runtime/components/Dropdown.d.vue.ts +35 -0
- package/dist/runtime/components/Dropdown.vue +51 -0
- package/dist/runtime/components/Dropdown.vue.d.ts +35 -0
- package/dist/runtime/components/FileTree.d.vue.ts +28 -0
- package/dist/runtime/components/FileTree.vue +68 -0
- package/dist/runtime/components/FileTree.vue.d.ts +28 -0
- package/dist/runtime/components/FileUpload.d.vue.ts +68 -0
- package/dist/runtime/components/FileUpload.vue +226 -0
- package/dist/runtime/components/FileUpload.vue.d.ts +68 -0
- package/dist/runtime/components/FormField.d.vue.ts +37 -0
- package/dist/runtime/components/FormField.vue +72 -0
- package/dist/runtime/components/FormField.vue.d.ts +37 -0
- package/dist/runtime/components/Header.d.vue.ts +20 -0
- package/dist/runtime/components/Header.vue +23 -0
- package/dist/runtime/components/Header.vue.d.ts +20 -0
- package/dist/runtime/components/Icon.d.vue.ts +14 -0
- package/dist/runtime/components/Icon.vue +18 -0
- package/dist/runtime/components/Icon.vue.d.ts +14 -0
- package/dist/runtime/components/Input.d.vue.ts +41 -0
- package/dist/runtime/components/Input.vue +86 -0
- package/dist/runtime/components/Input.vue.d.ts +41 -0
- package/dist/runtime/components/InputGroup.d.vue.ts +22 -0
- package/dist/runtime/components/InputGroup.vue +21 -0
- package/dist/runtime/components/InputGroup.vue.d.ts +22 -0
- package/dist/runtime/components/InputNumber.d.vue.ts +37 -0
- package/dist/runtime/components/InputNumber.vue +173 -0
- package/dist/runtime/components/InputNumber.vue.d.ts +37 -0
- package/dist/runtime/components/Kbd.d.vue.ts +24 -0
- package/dist/runtime/components/Kbd.vue +42 -0
- package/dist/runtime/components/Kbd.vue.d.ts +24 -0
- package/dist/runtime/components/Modal.d.vue.ts +72 -0
- package/dist/runtime/components/Modal.vue +178 -0
- package/dist/runtime/components/Modal.vue.d.ts +72 -0
- package/dist/runtime/components/ModalRenderer.d.vue.ts +3 -0
- package/dist/runtime/components/ModalRenderer.vue +25 -0
- package/dist/runtime/components/ModalRenderer.vue.d.ts +3 -0
- package/dist/runtime/components/NavigationMenu.d.vue.ts +108 -0
- package/dist/runtime/components/NavigationMenu.vue +166 -0
- package/dist/runtime/components/NavigationMenu.vue.d.ts +108 -0
- package/dist/runtime/components/NavigationMenuAccordionItem.d.vue.ts +23 -0
- package/dist/runtime/components/NavigationMenuAccordionItem.vue +106 -0
- package/dist/runtime/components/NavigationMenuAccordionItem.vue.d.ts +23 -0
- package/dist/runtime/components/NavigationMenuFlyoutList.d.vue.ts +19 -0
- package/dist/runtime/components/NavigationMenuFlyoutList.vue +44 -0
- package/dist/runtime/components/NavigationMenuFlyoutList.vue.d.ts +19 -0
- package/dist/runtime/components/NavigationMenuFlyoutTrigger.d.vue.ts +49 -0
- package/dist/runtime/components/NavigationMenuFlyoutTrigger.vue +116 -0
- package/dist/runtime/components/NavigationMenuFlyoutTrigger.vue.d.ts +49 -0
- package/dist/runtime/components/PageAside.d.vue.ts +20 -0
- package/dist/runtime/components/PageAside.vue +26 -0
- package/dist/runtime/components/PageAside.vue.d.ts +20 -0
- package/dist/runtime/components/PageHeader.d.vue.ts +24 -0
- package/dist/runtime/components/PageHeader.vue +30 -0
- package/dist/runtime/components/PageHeader.vue.d.ts +24 -0
- package/dist/runtime/components/Pagination.d.vue.ts +42 -0
- package/dist/runtime/components/Pagination.vue +113 -0
- package/dist/runtime/components/Pagination.vue.d.ts +42 -0
- package/dist/runtime/components/PinInput.d.vue.ts +40 -0
- package/dist/runtime/components/PinInput.vue +66 -0
- package/dist/runtime/components/PinInput.vue.d.ts +40 -0
- package/dist/runtime/components/Popover.d.vue.ts +52 -0
- package/dist/runtime/components/Popover.vue +77 -0
- package/dist/runtime/components/Popover.vue.d.ts +52 -0
- package/dist/runtime/components/Progress.d.vue.ts +32 -0
- package/dist/runtime/components/Progress.vue +76 -0
- package/dist/runtime/components/Progress.vue.d.ts +32 -0
- package/dist/runtime/components/ProseH1.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH1.vue +21 -0
- package/dist/runtime/components/ProseH1.vue.d.ts +18 -0
- package/dist/runtime/components/ProseH2.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH2.vue +21 -0
- package/dist/runtime/components/ProseH2.vue.d.ts +18 -0
- package/dist/runtime/components/ProseH3.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH3.vue +21 -0
- package/dist/runtime/components/ProseH3.vue.d.ts +18 -0
- package/dist/runtime/components/ProseH4.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH4.vue +21 -0
- package/dist/runtime/components/ProseH4.vue.d.ts +18 -0
- package/dist/runtime/components/ProseH5.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH5.vue +21 -0
- package/dist/runtime/components/ProseH5.vue.d.ts +18 -0
- package/dist/runtime/components/ProseH6.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH6.vue +21 -0
- package/dist/runtime/components/ProseH6.vue.d.ts +18 -0
- package/dist/runtime/components/ProsePre.d.vue.ts +20 -0
- package/dist/runtime/components/ProsePre.vue +50 -0
- package/dist/runtime/components/ProsePre.vue.d.ts +20 -0
- package/dist/runtime/components/RadioGroup.d.vue.ts +50 -0
- package/dist/runtime/components/RadioGroup.vue +82 -0
- package/dist/runtime/components/RadioGroup.vue.d.ts +50 -0
- package/dist/runtime/components/Rating.d.vue.ts +36 -0
- package/dist/runtime/components/Rating.vue +83 -0
- package/dist/runtime/components/Rating.vue.d.ts +36 -0
- package/dist/runtime/components/ReadMore.d.vue.ts +20 -0
- package/dist/runtime/components/ReadMore.vue +59 -0
- package/dist/runtime/components/ReadMore.vue.d.ts +20 -0
- package/dist/runtime/components/ScrollArea.d.vue.ts +19 -0
- package/dist/runtime/components/ScrollArea.vue +37 -0
- package/dist/runtime/components/ScrollArea.vue.d.ts +19 -0
- package/dist/runtime/components/Select.d.vue.ts +60 -0
- package/dist/runtime/components/Select.vue +40 -0
- package/dist/runtime/components/Select.vue.d.ts +60 -0
- package/dist/runtime/components/Separator.d.vue.ts +27 -0
- package/dist/runtime/components/Separator.vue +36 -0
- package/dist/runtime/components/Separator.vue.d.ts +27 -0
- package/dist/runtime/components/Skeleton.d.vue.ts +13 -0
- package/dist/runtime/components/Skeleton.vue +17 -0
- package/dist/runtime/components/Skeleton.vue.d.ts +13 -0
- package/dist/runtime/components/Slideover.d.vue.ts +65 -0
- package/dist/runtime/components/Slideover.vue +140 -0
- package/dist/runtime/components/Slideover.vue.d.ts +65 -0
- package/dist/runtime/components/SlideoverRenderer.d.vue.ts +3 -0
- package/dist/runtime/components/SlideoverRenderer.vue +27 -0
- package/dist/runtime/components/SlideoverRenderer.vue.d.ts +3 -0
- package/dist/runtime/components/Slider.d.vue.ts +60 -0
- package/dist/runtime/components/Slider.vue +186 -0
- package/dist/runtime/components/Slider.vue.d.ts +60 -0
- package/dist/runtime/components/Splitter.d.vue.ts +41 -0
- package/dist/runtime/components/Splitter.vue +31 -0
- package/dist/runtime/components/Splitter.vue.d.ts +41 -0
- package/dist/runtime/components/SplitterPanel.d.vue.ts +55 -0
- package/dist/runtime/components/SplitterPanel.vue +52 -0
- package/dist/runtime/components/SplitterPanel.vue.d.ts +55 -0
- package/dist/runtime/components/SplitterResizeHandle.d.vue.ts +14 -0
- package/dist/runtime/components/SplitterResizeHandle.vue +22 -0
- package/dist/runtime/components/SplitterResizeHandle.vue.d.ts +14 -0
- package/dist/runtime/components/Stepper.d.vue.ts +57 -0
- package/dist/runtime/components/Stepper.vue +101 -0
- package/dist/runtime/components/Stepper.vue.d.ts +57 -0
- package/dist/runtime/components/Switch.d.vue.ts +49 -0
- package/dist/runtime/components/Switch.vue +73 -0
- package/dist/runtime/components/Switch.vue.d.ts +49 -0
- package/dist/runtime/components/Table.d.vue.ts +83 -0
- package/dist/runtime/components/Table.vue +339 -0
- package/dist/runtime/components/Table.vue.d.ts +83 -0
- package/dist/runtime/components/Tabs.d.vue.ts +43 -0
- package/dist/runtime/components/Tabs.vue +60 -0
- package/dist/runtime/components/Tabs.vue.d.ts +43 -0
- package/dist/runtime/components/Textarea.d.vue.ts +45 -0
- package/dist/runtime/components/Textarea.vue +110 -0
- package/dist/runtime/components/Textarea.vue.d.ts +45 -0
- package/dist/runtime/components/Theme.d.vue.ts +19 -0
- package/dist/runtime/components/Theme.vue +18 -0
- package/dist/runtime/components/Theme.vue.d.ts +19 -0
- package/dist/runtime/components/Toast.d.vue.ts +8 -0
- package/dist/runtime/components/Toast.vue +58 -0
- package/dist/runtime/components/Toast.vue.d.ts +8 -0
- package/dist/runtime/components/Toggle.d.vue.ts +38 -0
- package/dist/runtime/components/Toggle.vue +44 -0
- package/dist/runtime/components/Toggle.vue.d.ts +38 -0
- package/dist/runtime/components/ToggleGroup.d.vue.ts +48 -0
- package/dist/runtime/components/ToggleGroup.vue +61 -0
- package/dist/runtime/components/ToggleGroup.vue.d.ts +48 -0
- package/dist/runtime/components/Tooltip.d.vue.ts +28 -0
- package/dist/runtime/components/Tooltip.vue +40 -0
- package/dist/runtime/components/Tooltip.vue.d.ts +28 -0
- package/dist/runtime/components/Tree.d.vue.ts +64 -0
- package/dist/runtime/components/Tree.vue +139 -0
- package/dist/runtime/components/Tree.vue.d.ts +64 -0
- package/dist/runtime/composables/use-combobox-select.d.ts +45 -0
- package/dist/runtime/composables/use-combobox-select.js +80 -0
- package/dist/runtime/composables/use-command-palette.d.ts +8 -0
- package/dist/runtime/composables/use-command-palette.js +14 -0
- package/dist/runtime/composables/use-drawer.d.ts +42 -0
- package/dist/runtime/composables/use-drawer.js +44 -0
- package/dist/runtime/composables/use-form-field.d.ts +10 -0
- package/dist/runtime/composables/use-form-field.js +8 -0
- package/dist/runtime/composables/use-icons.d.ts +10 -0
- package/dist/runtime/composables/use-icons.js +7 -0
- package/dist/runtime/composables/use-locale.d.ts +12 -0
- package/dist/runtime/composables/use-locale.js +6 -0
- package/dist/runtime/composables/use-media-query.d.ts +11 -0
- package/dist/runtime/composables/use-media-query.js +15 -0
- package/dist/runtime/composables/use-messages.d.ts +12 -0
- package/dist/runtime/composables/use-messages.js +7 -0
- package/dist/runtime/composables/use-modal.d.ts +32 -0
- package/dist/runtime/composables/use-modal.js +39 -0
- package/dist/runtime/composables/use-ripple.d.ts +15 -0
- package/dist/runtime/composables/use-ripple.js +6 -0
- package/dist/runtime/composables/use-slideover.d.ts +36 -0
- package/dist/runtime/composables/use-slideover.js +41 -0
- package/dist/runtime/composables/use-table.d.ts +63 -0
- package/dist/runtime/composables/use-table.js +142 -0
- package/dist/runtime/composables/use-toast.d.ts +15 -0
- package/dist/runtime/composables/use-toast.js +16 -0
- package/dist/runtime/directives/index.d.ts +1 -0
- package/dist/runtime/directives/index.js +1 -0
- package/dist/runtime/directives/ripple.d.ts +16 -0
- package/dist/runtime/directives/ripple.js +80 -0
- package/dist/runtime/internal/ColorPickerBody.d.vue.ts +26 -0
- package/dist/runtime/internal/ColorPickerBody.vue +111 -0
- package/dist/runtime/internal/ColorPickerBody.vue.d.ts +26 -0
- package/dist/runtime/internal/ComboboxSelectBase.d.vue.ts +122 -0
- package/dist/runtime/internal/ComboboxSelectBase.vue +590 -0
- package/dist/runtime/internal/ComboboxSelectBase.vue.d.ts +122 -0
- package/dist/runtime/internal/ComboboxSelectBody.d.vue.ts +71 -0
- package/dist/runtime/internal/ComboboxSelectBody.vue +146 -0
- package/dist/runtime/internal/ComboboxSelectBody.vue.d.ts +71 -0
- package/dist/runtime/internal/DatePickerCalendarBody.d.vue.ts +71 -0
- package/dist/runtime/internal/DatePickerCalendarBody.vue +215 -0
- package/dist/runtime/internal/DatePickerCalendarBody.vue.d.ts +71 -0
- package/dist/runtime/internal/DatePickerRangeCalendarBody.d.vue.ts +37 -0
- package/dist/runtime/internal/DatePickerRangeCalendarBody.vue +96 -0
- package/dist/runtime/internal/DatePickerRangeCalendarBody.vue.d.ts +37 -0
- package/dist/runtime/internal/DatePickerTimeBody.d.vue.ts +33 -0
- package/dist/runtime/internal/DatePickerTimeBody.vue +53 -0
- package/dist/runtime/internal/DatePickerTimeBody.vue.d.ts +33 -0
- package/dist/runtime/internal/TimeStepper.d.vue.ts +28 -0
- package/dist/runtime/internal/TimeStepper.vue +99 -0
- package/dist/runtime/internal/TimeStepper.vue.d.ts +28 -0
- package/dist/runtime/prose.css +1 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/theme/accordion.d.ts +131 -0
- package/dist/runtime/theme/accordion.js +60 -0
- package/dist/runtime/theme/alert-dialog.d.ts +50 -0
- package/dist/runtime/theme/alert-dialog.js +30 -0
- package/dist/runtime/theme/alert.d.ts +62 -0
- package/dist/runtime/theme/alert.js +52 -0
- package/dist/runtime/theme/avatar-group.d.ts +59 -0
- package/dist/runtime/theme/avatar-group.js +18 -0
- package/dist/runtime/theme/avatar.d.ts +206 -0
- package/dist/runtime/theme/avatar.js +67 -0
- package/dist/runtime/theme/badge.d.ts +140 -0
- package/dist/runtime/theme/badge.js +90 -0
- package/dist/runtime/theme/breadcrumb.d.ts +86 -0
- package/dist/runtime/theme/breadcrumb.js +22 -0
- package/dist/runtime/theme/button-group.d.ts +53 -0
- package/dist/runtime/theme/button-group.js +21 -0
- package/dist/runtime/theme/button.d.ts +155 -0
- package/dist/runtime/theme/button.js +99 -0
- package/dist/runtime/theme/callout.d.ts +74 -0
- package/dist/runtime/theme/callout.js +23 -0
- package/dist/runtime/theme/card-group.d.ts +44 -0
- package/dist/runtime/theme/card-group.js +19 -0
- package/dist/runtime/theme/card.d.ts +62 -0
- package/dist/runtime/theme/card.js +23 -0
- package/dist/runtime/theme/checkbox.d.ts +218 -0
- package/dist/runtime/theme/checkbox.js +113 -0
- package/dist/runtime/theme/chip.d.ts +155 -0
- package/dist/runtime/theme/chip.js +86 -0
- package/dist/runtime/theme/code-button.d.ts +32 -0
- package/dist/runtime/theme/code-button.js +7 -0
- package/dist/runtime/theme/code-tree.d.ts +50 -0
- package/dist/runtime/theme/code-tree.js +13 -0
- package/dist/runtime/theme/collapsible.d.ts +95 -0
- package/dist/runtime/theme/collapsible.js +46 -0
- package/dist/runtime/theme/color-picker.d.ts +152 -0
- package/dist/runtime/theme/color-picker.js +83 -0
- package/dist/runtime/theme/command-palette.d.ts +110 -0
- package/dist/runtime/theme/command-palette.js +23 -0
- package/dist/runtime/theme/container.d.ts +62 -0
- package/dist/runtime/theme/container.js +18 -0
- package/dist/runtime/theme/content-navigation.d.ts +47 -0
- package/dist/runtime/theme/content-navigation.js +38 -0
- package/dist/runtime/theme/content-surround.d.ts +53 -0
- package/dist/runtime/theme/content-surround.js +22 -0
- package/dist/runtime/theme/content-toc.d.ts +56 -0
- package/dist/runtime/theme/content-toc.js +41 -0
- package/dist/runtime/theme/context-menu.d.ts +38 -0
- package/dist/runtime/theme/context-menu.js +21 -0
- package/dist/runtime/theme/dashboard-group.d.ts +26 -0
- package/dist/runtime/theme/dashboard-group.js +9 -0
- package/dist/runtime/theme/dashboard-navbar.d.ts +44 -0
- package/dist/runtime/theme/dashboard-navbar.js +9 -0
- package/dist/runtime/theme/dashboard-panel.d.ts +26 -0
- package/dist/runtime/theme/dashboard-panel.js +6 -0
- package/dist/runtime/theme/dashboard-resize-handle.d.ts +26 -0
- package/dist/runtime/theme/dashboard-resize-handle.js +17 -0
- package/dist/runtime/theme/dashboard-sidebar.d.ts +50 -0
- package/dist/runtime/theme/dashboard-sidebar.js +40 -0
- package/dist/runtime/theme/date-picker.d.ts +119 -0
- package/dist/runtime/theme/date-picker.js +75 -0
- package/dist/runtime/theme/drawer.d.ts +95 -0
- package/dist/runtime/theme/drawer.js +57 -0
- package/dist/runtime/theme/dropdown.d.ts +41 -0
- package/dist/runtime/theme/dropdown.js +21 -0
- package/dist/runtime/theme/file-tree.d.ts +56 -0
- package/dist/runtime/theme/file-tree.js +33 -0
- package/dist/runtime/theme/file-upload.d.ts +233 -0
- package/dist/runtime/theme/file-upload.js +63 -0
- package/dist/runtime/theme/form-field.d.ts +95 -0
- package/dist/runtime/theme/form-field.js +37 -0
- package/dist/runtime/theme/header.d.ts +38 -0
- package/dist/runtime/theme/header.js +8 -0
- package/dist/runtime/theme/icon.d.ts +80 -0
- package/dist/runtime/theme/icon.js +26 -0
- package/dist/runtime/theme/input-group.d.ts +95 -0
- package/dist/runtime/theme/input-group.js +39 -0
- package/dist/runtime/theme/input-number.d.ts +164 -0
- package/dist/runtime/theme/input-number.js +76 -0
- package/dist/runtime/theme/input.d.ts +185 -0
- package/dist/runtime/theme/input.js +72 -0
- package/dist/runtime/theme/kbd.d.ts +44 -0
- package/dist/runtime/theme/kbd.js +16 -0
- package/dist/runtime/theme/modal.d.ts +74 -0
- package/dist/runtime/theme/modal.js +58 -0
- package/dist/runtime/theme/navigation-menu.d.ts +224 -0
- package/dist/runtime/theme/navigation-menu.js +232 -0
- package/dist/runtime/theme/page-aside.d.ts +44 -0
- package/dist/runtime/theme/page-aside.js +17 -0
- package/dist/runtime/theme/page-header.d.ts +38 -0
- package/dist/runtime/theme/page-header.js +8 -0
- package/dist/runtime/theme/pagination.d.ts +68 -0
- package/dist/runtime/theme/pagination.js +21 -0
- package/dist/runtime/theme/pin-input.d.ts +131 -0
- package/dist/runtime/theme/pin-input.js +40 -0
- package/dist/runtime/theme/popover.d.ts +32 -0
- package/dist/runtime/theme/popover.js +7 -0
- package/dist/runtime/theme/progress.d.ts +185 -0
- package/dist/runtime/theme/progress.js +54 -0
- package/dist/runtime/theme/prose.d.ts +92 -0
- package/dist/runtime/theme/prose.js +17 -0
- package/dist/runtime/theme/radio-group.d.ts +239 -0
- package/dist/runtime/theme/radio-group.js +134 -0
- package/dist/runtime/theme/rating.d.ts +167 -0
- package/dist/runtime/theme/rating.js +77 -0
- package/dist/runtime/theme/read-more.d.ts +38 -0
- package/dist/runtime/theme/read-more.js +21 -0
- package/dist/runtime/theme/scroll-area.d.ts +50 -0
- package/dist/runtime/theme/scroll-area.js +10 -0
- package/dist/runtime/theme/select.d.ts +176 -0
- package/dist/runtime/theme/select.js +74 -0
- package/dist/runtime/theme/separator.d.ts +158 -0
- package/dist/runtime/theme/separator.js +63 -0
- package/dist/runtime/theme/skeleton.d.ts +35 -0
- package/dist/runtime/theme/skeleton.js +27 -0
- package/dist/runtime/theme/slideover.d.ts +107 -0
- package/dist/runtime/theme/slideover.js +62 -0
- package/dist/runtime/theme/slider.d.ts +227 -0
- package/dist/runtime/theme/slider.js +73 -0
- package/dist/runtime/theme/splitter-panel.d.ts +26 -0
- package/dist/runtime/theme/splitter-panel.js +9 -0
- package/dist/runtime/theme/splitter-resize-handle.d.ts +44 -0
- package/dist/runtime/theme/splitter-resize-handle.js +18 -0
- package/dist/runtime/theme/splitter.d.ts +35 -0
- package/dist/runtime/theme/splitter.js +15 -0
- package/dist/runtime/theme/stepper.d.ts +221 -0
- package/dist/runtime/theme/stepper.js +106 -0
- package/dist/runtime/theme/switch.d.ts +206 -0
- package/dist/runtime/theme/switch.js +84 -0
- package/dist/runtime/theme/table.d.ts +176 -0
- package/dist/runtime/theme/table.js +59 -0
- package/dist/runtime/theme/tabs.d.ts +59 -0
- package/dist/runtime/theme/tabs.js +44 -0
- package/dist/runtime/theme/textarea.d.ts +212 -0
- package/dist/runtime/theme/textarea.js +56 -0
- package/dist/runtime/theme/toast.d.ts +80 -0
- package/dist/runtime/theme/toast.js +31 -0
- package/dist/runtime/theme/toggle-group.d.ts +110 -0
- package/dist/runtime/theme/toggle-group.js +48 -0
- package/dist/runtime/theme/toggle.d.ts +92 -0
- package/dist/runtime/theme/toggle.js +48 -0
- package/dist/runtime/theme/tooltip.d.ts +44 -0
- package/dist/runtime/theme/tooltip.js +14 -0
- package/dist/runtime/theme/tree.d.ts +80 -0
- package/dist/runtime/theme/tree.js +32 -0
- package/dist/runtime/theme.css +1 -0
- package/dist/runtime/types/app-config.d.ts +15 -0
- package/dist/runtime/types/index.d.ts +82 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/utils/format-bytes.d.ts +2 -0
- package/dist/runtime/utils/format-bytes.js +9 -0
- package/dist/runtime/utils/fuzzy-match.d.ts +12 -0
- package/dist/runtime/utils/fuzzy-match.js +21 -0
- package/dist/runtime/utils/icons.d.ts +38 -0
- package/dist/runtime/utils/icons.js +51 -0
- package/dist/runtime/utils/injection-keys.d.ts +69 -0
- package/dist/runtime/utils/injection-keys.js +3 -0
- package/dist/runtime/utils/messages.d.ts +70 -0
- package/dist/runtime/utils/messages.js +68 -0
- package/dist/runtime/utils/navigation-menu.d.ts +32 -0
- package/dist/runtime/utils/navigation-menu.js +5 -0
- package/dist/runtime/utils/table-columns.d.ts +30 -0
- package/dist/runtime/utils/table-columns.js +89 -0
- package/dist/runtime/utils/table-export.d.ts +12 -0
- package/dist/runtime/utils/table-export.js +29 -0
- package/dist/runtime/utils/ui.d.ts +124 -0
- package/dist/runtime/utils/ui.js +74 -0
- package/dist/types.d.mts +3 -0
- package/package.json +99 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
|
+
import { useIcons } from "../composables/use-icons";
|
|
4
|
+
import { codeButtonTheme } from "../theme/code-button";
|
|
5
|
+
import { resolveSlot, useComponentTheme, useRootProps } from "../utils/ui";
|
|
6
|
+
import Icon from "./Icon.vue";
|
|
7
|
+
defineOptions({ inheritAttrs: false });
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
code: { type: String, required: true },
|
|
10
|
+
ui: { type: Object, required: false }
|
|
11
|
+
});
|
|
12
|
+
defineSlots();
|
|
13
|
+
const icons = useIcons();
|
|
14
|
+
const copied = ref(false);
|
|
15
|
+
async function copy() {
|
|
16
|
+
await navigator.clipboard.writeText(props.code);
|
|
17
|
+
copied.value = true;
|
|
18
|
+
setTimeout(() => {
|
|
19
|
+
copied.value = false;
|
|
20
|
+
}, 1500);
|
|
21
|
+
}
|
|
22
|
+
const theme = useComponentTheme("codeButton", codeButtonTheme);
|
|
23
|
+
const ui = computed(() => theme.value());
|
|
24
|
+
const rootProps = useRootProps(() => ui.value.root, () => props.ui?.root);
|
|
25
|
+
const iconProps = computed(() => resolveSlot(ui.value.icon, props.ui?.icon));
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<button type="button" v-bind="rootProps" @click="copy">
|
|
30
|
+
<slot>{{ code }}</slot>
|
|
31
|
+
<Icon :name="copied ? icons.check : icons.copy" v-bind="iconProps" />
|
|
32
|
+
</button>
|
|
33
|
+
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CodeButtonThemeSlots } from '../theme/code-button.js';
|
|
2
|
+
import type { UiProp } from '../utils/ui.js';
|
|
3
|
+
type __VLS_Slots = CodeButtonSlots;
|
|
4
|
+
export interface CodeButtonProps {
|
|
5
|
+
/** Both the displayed text (unless the default slot overrides it) and what actually gets copied. */
|
|
6
|
+
code: string;
|
|
7
|
+
ui?: UiProp<CodeButtonThemeSlots>;
|
|
8
|
+
}
|
|
9
|
+
export interface CodeButtonSlots {
|
|
10
|
+
/** Overrides the displayed text - `code` still governs what's copied. */
|
|
11
|
+
default?: () => any;
|
|
12
|
+
}
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<CodeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CodeButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { cloneVNode, Comment, computed, Fragment, ref, Text, useSlots } from "vue";
|
|
3
|
+
import { useMessages } from "../composables/use-messages";
|
|
4
|
+
import Tabs from "./Tabs.vue";
|
|
5
|
+
const slots = useSlots();
|
|
6
|
+
const messages = useMessages();
|
|
7
|
+
function flatten(vnodes) {
|
|
8
|
+
const result = [];
|
|
9
|
+
for (const vnode of vnodes) {
|
|
10
|
+
if (vnode.type === Comment || vnode.type === Text)
|
|
11
|
+
continue;
|
|
12
|
+
if (vnode.type === Fragment && Array.isArray(vnode.children)) {
|
|
13
|
+
result.push(...flatten(vnode.children));
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
result.push(vnode);
|
|
17
|
+
}
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
const children = computed(() => flatten(slots.default?.() ?? []));
|
|
21
|
+
function labelFor(child, index) {
|
|
22
|
+
const props = child.props ?? {};
|
|
23
|
+
return props.filename || props.language || messages.value.codeTabFallback(index + 1);
|
|
24
|
+
}
|
|
25
|
+
const tabItems = computed(() => children.value.map((child, index) => ({
|
|
26
|
+
label: labelFor(child, index),
|
|
27
|
+
value: String(index)
|
|
28
|
+
})));
|
|
29
|
+
const activeTab = ref("0");
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<Tabs v-model="activeTab" :items="tabItems">
|
|
34
|
+
<template v-for="(child, index) in children" :key="index" #[String(index)]>
|
|
35
|
+
<!--
|
|
36
|
+
cloneVNode is required, not optional: this vnode was captured from
|
|
37
|
+
CodeGroup's own default slot and is being re-inserted several levels
|
|
38
|
+
deeper (inside Tabs/TabsContent/Presence) - rendering the raw,
|
|
39
|
+
already-positioned vnode object there directly causes a Vue
|
|
40
|
+
hydration-shape mismatch (Fragment vs text) the first time this
|
|
41
|
+
panel mounts. Cloning gives it a fresh identity for its new spot.
|
|
42
|
+
-->
|
|
43
|
+
<component :is="() => cloneVNode(child)" />
|
|
44
|
+
</template>
|
|
45
|
+
</Tabs>
|
|
46
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CodeTreeThemeSlots } from '../theme/code-tree.js';
|
|
2
|
+
import type { UiProp } from '../utils/ui.js';
|
|
3
|
+
import type { FileTreeNode } from './FileTree.vue.js';
|
|
4
|
+
export interface CodeTreeFile extends FileTreeNode {
|
|
5
|
+
/** The file's content - read for a leaf node once selected, ignored for a directory. */
|
|
6
|
+
code?: string;
|
|
7
|
+
children?: CodeTreeFile[];
|
|
8
|
+
}
|
|
9
|
+
export interface CodeTreeProps {
|
|
10
|
+
items: CodeTreeFile[];
|
|
11
|
+
/** Whether a directory starts expanded. @default true */
|
|
12
|
+
defaultExpanded?: boolean;
|
|
13
|
+
ui?: UiProp<CodeTreeThemeSlots>;
|
|
14
|
+
}
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<CodeTreeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CodeTreeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref, watch } from "vue";
|
|
3
|
+
import { useMessages } from "../composables/use-messages";
|
|
4
|
+
import { codeTreeTheme } from "../theme/code-tree";
|
|
5
|
+
import { resolveSlot, useComponentTheme, useRootProps } from "../utils/ui";
|
|
6
|
+
import FileTree from "./FileTree.vue";
|
|
7
|
+
defineOptions({ inheritAttrs: false });
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
items: { type: Array, required: true },
|
|
10
|
+
defaultExpanded: { type: Boolean, required: false, default: true },
|
|
11
|
+
ui: { type: Object, required: false }
|
|
12
|
+
});
|
|
13
|
+
function findFirstFile(nodes) {
|
|
14
|
+
for (const node of nodes) {
|
|
15
|
+
if (!node.children)
|
|
16
|
+
return node;
|
|
17
|
+
const found = findFirstFile(node.children);
|
|
18
|
+
if (found)
|
|
19
|
+
return found;
|
|
20
|
+
}
|
|
21
|
+
return void 0;
|
|
22
|
+
}
|
|
23
|
+
const selected = ref(findFirstFile(props.items));
|
|
24
|
+
watch(() => props.items, () => {
|
|
25
|
+
selected.value = findFirstFile(props.items);
|
|
26
|
+
});
|
|
27
|
+
const messages = useMessages();
|
|
28
|
+
const theme = useComponentTheme("codeTree", codeTreeTheme);
|
|
29
|
+
const ui = computed(() => theme.value());
|
|
30
|
+
const rootProps = useRootProps(() => ui.value.root, () => props.ui?.root);
|
|
31
|
+
const treeProps = computed(() => resolveSlot(ui.value.tree, props.ui?.tree));
|
|
32
|
+
const contentProps = computed(() => resolveSlot(ui.value.content, props.ui?.content));
|
|
33
|
+
const preProps = computed(() => resolveSlot(ui.value.pre, props.ui?.pre));
|
|
34
|
+
const emptyProps = computed(() => resolveSlot(ui.value.empty, props.ui?.empty));
|
|
35
|
+
const fileTreeUi = { root: "rounded-none border-0 bg-transparent p-0" };
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<div v-bind="rootProps">
|
|
40
|
+
<div v-bind="treeProps">
|
|
41
|
+
<FileTree
|
|
42
|
+
:items="items"
|
|
43
|
+
:selected="selected"
|
|
44
|
+
:default-expanded="defaultExpanded"
|
|
45
|
+
:ui="fileTreeUi"
|
|
46
|
+
@update:selected="selected = $event"
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
<div v-if="selected" v-bind="contentProps">
|
|
50
|
+
<pre v-bind="preProps">{{ selected.code }}</pre>
|
|
51
|
+
</div>
|
|
52
|
+
<div v-else v-bind="emptyProps">
|
|
53
|
+
{{ messages.selectFile }}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CodeTreeThemeSlots } from '../theme/code-tree.js';
|
|
2
|
+
import type { UiProp } from '../utils/ui.js';
|
|
3
|
+
import type { FileTreeNode } from './FileTree.vue.js';
|
|
4
|
+
export interface CodeTreeFile extends FileTreeNode {
|
|
5
|
+
/** The file's content - read for a leaf node once selected, ignored for a directory. */
|
|
6
|
+
code?: string;
|
|
7
|
+
children?: CodeTreeFile[];
|
|
8
|
+
}
|
|
9
|
+
export interface CodeTreeProps {
|
|
10
|
+
items: CodeTreeFile[];
|
|
11
|
+
/** Whether a directory starts expanded. @default true */
|
|
12
|
+
defaultExpanded?: boolean;
|
|
13
|
+
ui?: UiProp<CodeTreeThemeSlots>;
|
|
14
|
+
}
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<CodeTreeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CodeTreeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import type { CollapsibleThemeSlots } from '../theme/collapsible.js';
|
|
3
|
+
import type { UiProp } from '../utils/ui.js';
|
|
4
|
+
import { collapsibleTheme } from '../theme/collapsible.js';
|
|
5
|
+
type CollapsibleVariants = VariantProps<typeof collapsibleTheme>;
|
|
6
|
+
type __VLS_Slots = CollapsibleSlots;
|
|
7
|
+
export interface CollapsibleProps {
|
|
8
|
+
open?: boolean;
|
|
9
|
+
defaultOpen?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
size?: CollapsibleVariants['size'];
|
|
12
|
+
/** Which way the content reveals - `down` expands below the trigger, `up` above it. Flips the chevron's rest/open rotation to match. @default 'down' */
|
|
13
|
+
direction?: CollapsibleVariants['direction'];
|
|
14
|
+
ui?: UiProp<CollapsibleThemeSlots>;
|
|
15
|
+
}
|
|
16
|
+
export interface CollapsibleEmits {
|
|
17
|
+
'update:open': [value: boolean];
|
|
18
|
+
}
|
|
19
|
+
export interface CollapsibleSlots {
|
|
20
|
+
/** The trigger's own content (label, icon, whatever) - rendered inside a real button, alongside the chevron. */
|
|
21
|
+
'trigger'?: (props: {
|
|
22
|
+
open: boolean;
|
|
23
|
+
}) => any;
|
|
24
|
+
'default'?: (props: {
|
|
25
|
+
open: boolean;
|
|
26
|
+
}) => any;
|
|
27
|
+
/** Replaces the default chevron. */
|
|
28
|
+
'chevron-icon'?: (props: {
|
|
29
|
+
open: boolean;
|
|
30
|
+
}) => any;
|
|
31
|
+
}
|
|
32
|
+
declare const __VLS_base: import("vue").DefineComponent<CollapsibleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
"update:open": (value: boolean) => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<CollapsibleProps> & Readonly<{
|
|
35
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { CollapsibleContent, CollapsibleRoot, CollapsibleTrigger } from "reka-ui";
|
|
3
|
+
import { computed, ref, watch } from "vue";
|
|
4
|
+
import { useIcons } from "../composables/use-icons";
|
|
5
|
+
import { collapsibleTheme } from "../theme/collapsible";
|
|
6
|
+
import { resolveSlot, useComponentTheme, useRootProps } from "../utils/ui";
|
|
7
|
+
import Icon from "./Icon.vue";
|
|
8
|
+
defineOptions({ inheritAttrs: false });
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
open: { type: Boolean, required: false, default: void 0 },
|
|
11
|
+
defaultOpen: { type: Boolean, required: false },
|
|
12
|
+
disabled: { type: Boolean, required: false },
|
|
13
|
+
size: { type: null, required: false },
|
|
14
|
+
direction: { type: null, required: false },
|
|
15
|
+
ui: { type: Object, required: false }
|
|
16
|
+
});
|
|
17
|
+
const emit = defineEmits(["update:open"]);
|
|
18
|
+
defineSlots();
|
|
19
|
+
const icons = useIcons();
|
|
20
|
+
const theme = useComponentTheme("collapsible", collapsibleTheme);
|
|
21
|
+
const ui = computed(() => theme.value({ size: props.size, direction: props.direction }));
|
|
22
|
+
const rootProps = useRootProps(() => ui.value.root, () => props.ui?.root);
|
|
23
|
+
const triggerProps = computed(() => resolveSlot(ui.value.trigger, props.ui?.trigger));
|
|
24
|
+
const chevronProps = computed(() => resolveSlot(ui.value.chevron, props.ui?.chevron));
|
|
25
|
+
const contentProps = computed(() => resolveSlot(ui.value.content, props.ui?.content));
|
|
26
|
+
const contentInnerProps = computed(() => resolveSlot(ui.value.contentInner, props.ui?.contentInner));
|
|
27
|
+
const internalOpen = ref(props.open ?? props.defaultOpen ?? false);
|
|
28
|
+
watch(() => props.open, (value) => {
|
|
29
|
+
if (value !== void 0)
|
|
30
|
+
internalOpen.value = value;
|
|
31
|
+
});
|
|
32
|
+
function onUpdateOpen(value) {
|
|
33
|
+
internalOpen.value = value;
|
|
34
|
+
emit("update:open", value);
|
|
35
|
+
}
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<CollapsibleRoot :open="internalOpen" :disabled="disabled" v-bind="rootProps" @update:open="onUpdateOpen">
|
|
40
|
+
<CollapsibleTrigger v-bind="triggerProps">
|
|
41
|
+
<slot name="trigger" :open="internalOpen" />
|
|
42
|
+
<slot name="chevron-icon" :open="internalOpen">
|
|
43
|
+
<Icon :name="icons.chevronDown" v-bind="chevronProps" />
|
|
44
|
+
</slot>
|
|
45
|
+
</CollapsibleTrigger>
|
|
46
|
+
<CollapsibleContent v-bind="contentProps">
|
|
47
|
+
<div v-bind="contentInnerProps">
|
|
48
|
+
<slot :open="internalOpen" />
|
|
49
|
+
</div>
|
|
50
|
+
</CollapsibleContent>
|
|
51
|
+
</CollapsibleRoot>
|
|
52
|
+
</template>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import type { CollapsibleThemeSlots } from '../theme/collapsible.js';
|
|
3
|
+
import type { UiProp } from '../utils/ui.js';
|
|
4
|
+
import { collapsibleTheme } from '../theme/collapsible.js';
|
|
5
|
+
type CollapsibleVariants = VariantProps<typeof collapsibleTheme>;
|
|
6
|
+
type __VLS_Slots = CollapsibleSlots;
|
|
7
|
+
export interface CollapsibleProps {
|
|
8
|
+
open?: boolean;
|
|
9
|
+
defaultOpen?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
size?: CollapsibleVariants['size'];
|
|
12
|
+
/** Which way the content reveals - `down` expands below the trigger, `up` above it. Flips the chevron's rest/open rotation to match. @default 'down' */
|
|
13
|
+
direction?: CollapsibleVariants['direction'];
|
|
14
|
+
ui?: UiProp<CollapsibleThemeSlots>;
|
|
15
|
+
}
|
|
16
|
+
export interface CollapsibleEmits {
|
|
17
|
+
'update:open': [value: boolean];
|
|
18
|
+
}
|
|
19
|
+
export interface CollapsibleSlots {
|
|
20
|
+
/** The trigger's own content (label, icon, whatever) - rendered inside a real button, alongside the chevron. */
|
|
21
|
+
'trigger'?: (props: {
|
|
22
|
+
open: boolean;
|
|
23
|
+
}) => any;
|
|
24
|
+
'default'?: (props: {
|
|
25
|
+
open: boolean;
|
|
26
|
+
}) => any;
|
|
27
|
+
/** Replaces the default chevron. */
|
|
28
|
+
'chevron-icon'?: (props: {
|
|
29
|
+
open: boolean;
|
|
30
|
+
}) => any;
|
|
31
|
+
}
|
|
32
|
+
declare const __VLS_base: import("vue").DefineComponent<CollapsibleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
"update:open": (value: boolean) => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<CollapsibleProps> & Readonly<{
|
|
35
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
36
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useColorMode } from "#imports";
|
|
4
|
+
import { useIcons } from "../composables/use-icons";
|
|
5
|
+
import { useMessages } from "../composables/use-messages";
|
|
6
|
+
import Button from "./Button.vue";
|
|
7
|
+
const colorMode = useColorMode();
|
|
8
|
+
const icons = useIcons();
|
|
9
|
+
const messages = useMessages();
|
|
10
|
+
const isDark = computed(() => colorMode.value === "dark");
|
|
11
|
+
function toggle() {
|
|
12
|
+
colorMode.preference = isDark.value ? "light" : "dark";
|
|
13
|
+
}
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<Button
|
|
18
|
+
:icon="isDark ? icons.darkMode : icons.lightMode"
|
|
19
|
+
variant="ghost"
|
|
20
|
+
color="neutral"
|
|
21
|
+
:aria-label="messages.colorModeToggle"
|
|
22
|
+
@click="toggle"
|
|
23
|
+
/>
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import type { ColorPickerThemeSlots } from '../theme/color-picker.js';
|
|
3
|
+
import type { UiProp } from '../utils/ui.js';
|
|
4
|
+
import { colorPickerTheme } from '../theme/color-picker.js';
|
|
5
|
+
type ColorPickerVariants = VariantProps<typeof colorPickerTheme>;
|
|
6
|
+
export interface ColorPickerProps {
|
|
7
|
+
modelValue?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Shows an alpha (opacity) slider alongside hue. Reka's own hex output already extends to 8-digit hex (`#RRGGBBAA`) once alpha drops below 1, so this only toggles whether that channel is reachable in the UI - not a format change. @default true */
|
|
11
|
+
alpha?: boolean;
|
|
12
|
+
/** A row of preset colors shown below the hex field - omitted entirely (no swatch row) unless given. */
|
|
13
|
+
swatches?: string[];
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
/** Below a 768px viewport width, presents the popover as a centered Modal instead of a small anchored panel - easier to tap with a finger. Opt-in (defaults `false`), matching Select/Autocomplete/DatePicker's own mobileModal. */
|
|
16
|
+
mobileModal?: boolean;
|
|
17
|
+
size?: ColorPickerVariants['size'];
|
|
18
|
+
color?: ColorPickerVariants['color'];
|
|
19
|
+
ui?: UiProp<ColorPickerThemeSlots>;
|
|
20
|
+
}
|
|
21
|
+
export interface ColorPickerEmits {
|
|
22
|
+
'update:modelValue': [value: string];
|
|
23
|
+
}
|
|
24
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorPickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: string) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<ColorPickerProps> & Readonly<{
|
|
27
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ColorSwatch } from "reka-ui";
|
|
3
|
+
import { computed, ref, watch } from "vue";
|
|
4
|
+
import { useIsMobile } from "../composables/use-media-query";
|
|
5
|
+
import { useMessages } from "../composables/use-messages";
|
|
6
|
+
import ColorPickerBody from "../internal/ColorPickerBody.vue";
|
|
7
|
+
import { colorPickerTheme } from "../theme/color-picker";
|
|
8
|
+
import { resolveSlot, useComponentTheme } from "../utils/ui";
|
|
9
|
+
import Modal from "./Modal.vue";
|
|
10
|
+
import Popover from "./Popover.vue";
|
|
11
|
+
const props = defineProps({
|
|
12
|
+
modelValue: { type: String, required: false },
|
|
13
|
+
defaultValue: { type: String, required: false },
|
|
14
|
+
disabled: { type: Boolean, required: false },
|
|
15
|
+
alpha: { type: Boolean, required: false, default: true },
|
|
16
|
+
swatches: { type: Array, required: false },
|
|
17
|
+
placeholder: { type: String, required: false },
|
|
18
|
+
mobileModal: { type: Boolean, required: false },
|
|
19
|
+
size: { type: null, required: false },
|
|
20
|
+
color: { type: null, required: false },
|
|
21
|
+
ui: { type: Object, required: false }
|
|
22
|
+
});
|
|
23
|
+
const emit = defineEmits(["update:modelValue"]);
|
|
24
|
+
const messages = useMessages();
|
|
25
|
+
const internalColor = ref(props.modelValue ?? props.defaultValue ?? "#000000");
|
|
26
|
+
watch(() => props.modelValue, (value) => {
|
|
27
|
+
if (value !== void 0)
|
|
28
|
+
internalColor.value = value;
|
|
29
|
+
});
|
|
30
|
+
function onUpdateColor(value) {
|
|
31
|
+
internalColor.value = value;
|
|
32
|
+
emit("update:modelValue", value);
|
|
33
|
+
}
|
|
34
|
+
const internalOpen = ref(false);
|
|
35
|
+
function onUpdateOpen(value) {
|
|
36
|
+
internalOpen.value = value;
|
|
37
|
+
}
|
|
38
|
+
const isMobile = useIsMobile();
|
|
39
|
+
const showMobileModal = computed(() => props.mobileModal && isMobile.value);
|
|
40
|
+
const theme = useComponentTheme("colorPicker", colorPickerTheme);
|
|
41
|
+
const ui = computed(() => theme.value({ size: props.size, color: props.color }));
|
|
42
|
+
const triggerProps = computed(() => resolveSlot(ui.value.trigger, props.ui?.trigger));
|
|
43
|
+
const triggerSwatchProps = computed(() => resolveSlot(ui.value.triggerSwatch, props.ui?.triggerSwatch));
|
|
44
|
+
const triggerValueProps = computed(() => resolveSlot(ui.value.triggerValue, props.ui?.triggerValue));
|
|
45
|
+
const areaProps = computed(() => resolveSlot(ui.value.area, props.ui?.area));
|
|
46
|
+
const thumbProps = computed(() => resolveSlot(ui.value.thumb, props.ui?.thumb));
|
|
47
|
+
const sliderRootProps = computed(() => resolveSlot(ui.value.sliderRoot, props.ui?.sliderRoot));
|
|
48
|
+
const trackProps = computed(() => resolveSlot(ui.value.track, props.ui?.track));
|
|
49
|
+
const fieldProps = computed(() => resolveSlot(ui.value.field, props.ui?.field));
|
|
50
|
+
const swatchListProps = computed(() => resolveSlot(ui.value.swatchList, props.ui?.swatchList));
|
|
51
|
+
const swatchProps = computed(() => resolveSlot(ui.value.swatch, props.ui?.swatch));
|
|
52
|
+
const swatchFillProps = computed(() => resolveSlot(ui.value.swatchFill, props.ui?.swatchFill));
|
|
53
|
+
const swatchIndicatorProps = computed(() => resolveSlot(ui.value.swatchIndicator, props.ui?.swatchIndicator));
|
|
54
|
+
const bodyProps = computed(() => ({
|
|
55
|
+
modelValue: internalColor.value,
|
|
56
|
+
disabled: props.disabled,
|
|
57
|
+
alpha: props.alpha,
|
|
58
|
+
swatches: props.swatches,
|
|
59
|
+
placeholder: props.placeholder,
|
|
60
|
+
areaProps: areaProps.value,
|
|
61
|
+
thumbProps: thumbProps.value,
|
|
62
|
+
sliderRootProps: sliderRootProps.value,
|
|
63
|
+
trackProps: trackProps.value,
|
|
64
|
+
fieldProps: fieldProps.value,
|
|
65
|
+
swatchListProps: swatchListProps.value,
|
|
66
|
+
swatchProps: swatchProps.value,
|
|
67
|
+
swatchFillProps: swatchFillProps.value,
|
|
68
|
+
swatchIndicatorProps: swatchIndicatorProps.value
|
|
69
|
+
}));
|
|
70
|
+
const popoverUi = computed(() => ({ content: resolveSlot(ui.value.content, props.ui?.content) }));
|
|
71
|
+
const mobileModalUi = computed(() => ({ content: "rounded-[var(--ui-radius-md)]" }));
|
|
72
|
+
const mobileContentProps = computed(() => resolveSlot(ui.value.mobileContent, props.ui?.mobileContent));
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
<template>
|
|
76
|
+
<Popover v-if="!showMobileModal" :open="internalOpen" :ui="popoverUi" @update:open="onUpdateOpen">
|
|
77
|
+
<button
|
|
78
|
+
type="button"
|
|
79
|
+
:disabled="disabled"
|
|
80
|
+
:aria-label="messages.colorPicker"
|
|
81
|
+
v-bind="triggerProps"
|
|
82
|
+
>
|
|
83
|
+
<ColorSwatch :color="internalColor" v-bind="triggerSwatchProps" />
|
|
84
|
+
<span v-bind="triggerValueProps">{{ internalColor }}</span>
|
|
85
|
+
</button>
|
|
86
|
+
|
|
87
|
+
<template #content>
|
|
88
|
+
<ColorPickerBody v-bind="bodyProps" @update:model-value="onUpdateColor" />
|
|
89
|
+
</template>
|
|
90
|
+
</Popover>
|
|
91
|
+
|
|
92
|
+
<Modal
|
|
93
|
+
v-else :open="internalOpen" :title="messages.colorPicker" :description="messages.colorPickerDescription"
|
|
94
|
+
:ui="mobileModalUi" @update:open="onUpdateOpen"
|
|
95
|
+
>
|
|
96
|
+
<button
|
|
97
|
+
type="button"
|
|
98
|
+
:disabled="disabled"
|
|
99
|
+
:aria-label="messages.colorPicker"
|
|
100
|
+
v-bind="triggerProps"
|
|
101
|
+
>
|
|
102
|
+
<ColorSwatch :color="internalColor" v-bind="triggerSwatchProps" />
|
|
103
|
+
<span v-bind="triggerValueProps">{{ internalColor }}</span>
|
|
104
|
+
</button>
|
|
105
|
+
|
|
106
|
+
<template #content>
|
|
107
|
+
<div v-bind="mobileContentProps">
|
|
108
|
+
<ColorPickerBody v-bind="bodyProps" @update:model-value="onUpdateColor" />
|
|
109
|
+
</div>
|
|
110
|
+
</template>
|
|
111
|
+
</Modal>
|
|
112
|
+
</template>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import type { ColorPickerThemeSlots } from '../theme/color-picker.js';
|
|
3
|
+
import type { UiProp } from '../utils/ui.js';
|
|
4
|
+
import { colorPickerTheme } from '../theme/color-picker.js';
|
|
5
|
+
type ColorPickerVariants = VariantProps<typeof colorPickerTheme>;
|
|
6
|
+
export interface ColorPickerProps {
|
|
7
|
+
modelValue?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Shows an alpha (opacity) slider alongside hue. Reka's own hex output already extends to 8-digit hex (`#RRGGBBAA`) once alpha drops below 1, so this only toggles whether that channel is reachable in the UI - not a format change. @default true */
|
|
11
|
+
alpha?: boolean;
|
|
12
|
+
/** A row of preset colors shown below the hex field - omitted entirely (no swatch row) unless given. */
|
|
13
|
+
swatches?: string[];
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
/** Below a 768px viewport width, presents the popover as a centered Modal instead of a small anchored panel - easier to tap with a finger. Opt-in (defaults `false`), matching Select/Autocomplete/DatePicker's own mobileModal. */
|
|
16
|
+
mobileModal?: boolean;
|
|
17
|
+
size?: ColorPickerVariants['size'];
|
|
18
|
+
color?: ColorPickerVariants['color'];
|
|
19
|
+
ui?: UiProp<ColorPickerThemeSlots>;
|
|
20
|
+
}
|
|
21
|
+
export interface ColorPickerEmits {
|
|
22
|
+
'update:modelValue': [value: string];
|
|
23
|
+
}
|
|
24
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorPickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: string) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<ColorPickerProps> & Readonly<{
|
|
27
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Never renders real DOM - STable reads this component's VNode props/slots
|
|
3
|
+
* directly out of its own default slot (via table-columns.ts) to build a
|
|
4
|
+
* TanStack ColumnDef, a technique several Vue table libraries use for a
|
|
5
|
+
* <Table>/<Column> children-as-config API. Mounting <SColumn> anywhere
|
|
6
|
+
* other than inside <STable> is a silent no-op, never an error.
|
|
7
|
+
*
|
|
8
|
+
* Three named slots read the same way: `default` (scoped with `{ row,
|
|
9
|
+
* value }`) customizes a cell's content, `header`/`footer` (scoped with
|
|
10
|
+
* `{ column }`) customize the column's header/footer cell - all three fall
|
|
11
|
+
* back to the plain `header`/`footer` string props when unset.
|
|
12
|
+
*/
|
|
13
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
|
+
field: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
header: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
footer: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
sortable: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
filterable: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
/** Sticks this column to the left/right edge during horizontal scroll. */
|
|
35
|
+
pinned: {
|
|
36
|
+
type: () => "left" | "right" | undefined;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
field: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
header: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
footer: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
sortable: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
filterable: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
/** Sticks this column to the left/right edge during horizontal scroll. */
|
|
61
|
+
pinned: {
|
|
62
|
+
type: () => "left" | "right" | undefined;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{}>, {
|
|
66
|
+
header: string;
|
|
67
|
+
footer: string;
|
|
68
|
+
sortable: boolean;
|
|
69
|
+
filterable: boolean;
|
|
70
|
+
pinned: "right" | "left" | undefined;
|
|
71
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
72
|
+
export default _default;
|