@getcortexlabs/mavis-core 0.1.0-alpha.1 → 0.1.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/accordion.d.ts +17 -0
- package/dist/accordion.d.ts.map +1 -0
- package/dist/accordion.js +42 -0
- package/dist/accordion.js.map +1 -0
- package/dist/alert.d.ts +21 -0
- package/dist/alert.d.ts.map +1 -0
- package/dist/alert.js +13 -0
- package/dist/alert.js.map +1 -0
- package/dist/app-icons.d.ts +27 -0
- package/dist/app-icons.d.ts.map +1 -0
- package/dist/app-icons.js +42 -0
- package/dist/app-icons.js.map +1 -0
- package/dist/avatar.d.ts +10 -0
- package/dist/avatar.d.ts.map +1 -0
- package/dist/avatar.js +11 -0
- package/dist/avatar.js.map +1 -0
- package/dist/badge.d.ts +7 -0
- package/dist/badge.d.ts.map +1 -0
- package/dist/badge.js +11 -0
- package/dist/badge.js.map +1 -0
- package/dist/capabilities.d.ts +132 -0
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capabilities.js +180 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/chart.d.ts +40 -0
- package/dist/chart.d.ts.map +1 -0
- package/dist/chart.js +73 -0
- package/dist/chart.js.map +1 -0
- package/dist/chip.d.ts +9 -0
- package/dist/chip.d.ts.map +1 -0
- package/dist/chip.js +16 -0
- package/dist/chip.js.map +1 -0
- package/dist/choice-motion.d.ts +14 -0
- package/dist/choice-motion.d.ts.map +1 -0
- package/dist/choice-motion.js +5 -0
- package/dist/choice-motion.js.map +1 -0
- package/dist/choice.d.ts +15 -0
- package/dist/choice.d.ts.map +1 -0
- package/dist/choice.js +27 -0
- package/dist/choice.js.map +1 -0
- package/dist/collections.d.ts +46 -0
- package/dist/collections.d.ts.map +1 -0
- package/dist/collections.js +48 -0
- package/dist/collections.js.map +1 -0
- package/dist/combobox.d.ts +42 -0
- package/dist/combobox.d.ts.map +1 -0
- package/dist/combobox.js +159 -0
- package/dist/combobox.js.map +1 -0
- package/dist/contracts.d.ts +1321 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/contracts.js +268 -0
- package/dist/contracts.js.map +1 -0
- package/dist/date-input.d.ts +10 -0
- package/dist/date-input.d.ts.map +1 -0
- package/dist/date-input.js +58 -0
- package/dist/date-input.js.map +1 -0
- package/dist/date-time.d.ts +19 -0
- package/dist/date-time.d.ts.map +1 -0
- package/dist/date-time.js +27 -0
- package/dist/date-time.js.map +1 -0
- package/dist/date.d.ts +96 -0
- package/dist/date.d.ts.map +1 -0
- package/dist/date.js +235 -0
- package/dist/date.js.map +1 -0
- package/dist/dialog.d.ts +4 -0
- package/dist/dialog.d.ts.map +1 -0
- package/dist/dialog.js +21 -0
- package/dist/dialog.js.map +1 -0
- package/dist/discovery.d.ts +49 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +80 -0
- package/dist/discovery.js.map +1 -0
- package/dist/empty-state.d.ts +2 -0
- package/dist/empty-state.d.ts.map +1 -0
- package/dist/empty-state.js +5 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/experimental-collections.d.ts +82 -0
- package/dist/experimental-collections.d.ts.map +1 -0
- package/dist/experimental-collections.js +8 -0
- package/dist/experimental-collections.js.map +1 -0
- package/dist/experimental-effects.d.ts +107 -0
- package/dist/experimental-effects.d.ts.map +1 -0
- package/dist/experimental-effects.js +24 -0
- package/dist/experimental-effects.js.map +1 -0
- package/dist/experimental-platforms.d.ts +94 -0
- package/dist/experimental-platforms.d.ts.map +1 -0
- package/dist/experimental-platforms.js +2 -0
- package/dist/experimental-platforms.js.map +1 -0
- package/dist/experimental-playback.d.ts +63 -0
- package/dist/experimental-playback.d.ts.map +1 -0
- package/dist/experimental-playback.js +46 -0
- package/dist/experimental-playback.js.map +1 -0
- package/dist/experimental-regions.d.ts +179 -0
- package/dist/experimental-regions.d.ts.map +1 -0
- package/dist/experimental-regions.js +554 -0
- package/dist/experimental-regions.js.map +1 -0
- package/dist/experimental-sensors.d.ts +42 -0
- package/dist/experimental-sensors.d.ts.map +1 -0
- package/dist/experimental-sensors.js +2 -0
- package/dist/experimental-sensors.js.map +1 -0
- package/dist/experimental-surfaces.d.ts +127 -0
- package/dist/experimental-surfaces.d.ts.map +1 -0
- package/dist/experimental-surfaces.js +2 -0
- package/dist/experimental-surfaces.js.map +1 -0
- package/dist/experimental.d.ts +197 -0
- package/dist/experimental.d.ts.map +1 -0
- package/dist/experimental.js +855 -0
- package/dist/experimental.js.map +1 -0
- package/dist/files.d.ts +87 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +328 -0
- package/dist/files.js.map +1 -0
- package/dist/form.d.ts +39 -0
- package/dist/form.d.ts.map +1 -0
- package/dist/form.js +170 -0
- package/dist/form.js.map +1 -0
- package/dist/grid.d.ts +3 -0
- package/dist/grid.d.ts.map +1 -0
- package/dist/grid.js +16 -0
- package/dist/grid.js.map +1 -0
- package/dist/icon.d.ts +15 -0
- package/dist/icon.d.ts.map +1 -0
- package/dist/icon.js +28 -0
- package/dist/icon.js.map +1 -0
- package/dist/icons.d.ts +2002 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +2003 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +59 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -1
- package/dist/index.js.map +1 -1
- package/dist/input.d.ts +14 -0
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +12 -0
- package/dist/input.js.map +1 -1
- package/dist/link.d.ts +36 -0
- package/dist/link.d.ts.map +1 -0
- package/dist/link.js +60 -0
- package/dist/link.js.map +1 -0
- package/dist/list-item.d.ts +3 -0
- package/dist/list-item.d.ts.map +1 -0
- package/dist/list-item.js +7 -0
- package/dist/list-item.js.map +1 -0
- package/dist/motion.d.ts +58 -0
- package/dist/motion.d.ts.map +1 -0
- package/dist/motion.js +73 -0
- package/dist/motion.js.map +1 -0
- package/dist/multi-select.d.ts +4 -0
- package/dist/multi-select.d.ts.map +1 -0
- package/dist/multi-select.js +23 -0
- package/dist/multi-select.js.map +1 -0
- package/dist/navigation-transition.d.ts +10 -0
- package/dist/navigation-transition.d.ts.map +1 -0
- package/dist/navigation-transition.js +10 -0
- package/dist/navigation-transition.js.map +1 -0
- package/dist/navigation.d.ts +22 -0
- package/dist/navigation.d.ts.map +1 -0
- package/dist/navigation.js +54 -0
- package/dist/navigation.js.map +1 -0
- package/dist/number-input.d.ts +21 -0
- package/dist/number-input.d.ts.map +1 -0
- package/dist/number-input.js +63 -0
- package/dist/number-input.js.map +1 -0
- package/dist/popover.d.ts +17 -0
- package/dist/popover.d.ts.map +1 -0
- package/dist/popover.js +19 -0
- package/dist/popover.js.map +1 -0
- package/dist/progress.d.ts +19 -0
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.js +19 -0
- package/dist/progress.js.map +1 -0
- package/dist/responsive.d.ts +18 -0
- package/dist/responsive.d.ts.map +1 -0
- package/dist/responsive.js +35 -0
- package/dist/responsive.js.map +1 -0
- package/dist/section-scroll.d.ts +14 -0
- package/dist/section-scroll.d.ts.map +1 -0
- package/dist/section-scroll.js +28 -0
- package/dist/section-scroll.js.map +1 -0
- package/dist/segmented.d.ts +11 -0
- package/dist/segmented.d.ts.map +1 -0
- package/dist/segmented.js +30 -0
- package/dist/segmented.js.map +1 -0
- package/dist/sheet.d.ts +19 -0
- package/dist/sheet.d.ts.map +1 -0
- package/dist/sheet.js +15 -0
- package/dist/sheet.js.map +1 -0
- package/dist/tabs.d.ts +11 -0
- package/dist/tabs.d.ts.map +1 -0
- package/dist/tabs.js +28 -0
- package/dist/tabs.js.map +1 -0
- package/dist/theme/themes.d.ts.map +1 -1
- package/dist/theme/themes.js +85 -12
- package/dist/theme/themes.js.map +1 -1
- package/dist/theme/types.d.ts +64 -4
- package/dist/theme/types.d.ts.map +1 -1
- package/dist/theme/typography.d.ts +10 -0
- package/dist/theme/typography.d.ts.map +1 -0
- package/dist/theme/typography.js +90 -0
- package/dist/theme/typography.js.map +1 -0
- package/dist/time.d.ts +34 -0
- package/dist/time.d.ts.map +1 -0
- package/dist/time.js +78 -0
- package/dist/time.js.map +1 -0
- package/dist/toast.d.ts +43 -0
- package/dist/toast.d.ts.map +1 -0
- package/dist/toast.js +228 -0
- package/dist/toast.js.map +1 -0
- package/dist/vue/button-content.d.ts +10 -0
- package/dist/vue/button-content.d.ts.map +1 -0
- package/dist/vue/button-content.js +54 -0
- package/dist/vue/button-content.js.map +1 -0
- package/dist/vue/cached-activity.d.ts +3 -0
- package/dist/vue/cached-activity.d.ts.map +1 -0
- package/dist/vue/cached-activity.js +13 -0
- package/dist/vue/cached-activity.js.map +1 -0
- package/dist/vue/carousel.d.ts +11 -0
- package/dist/vue/carousel.d.ts.map +1 -0
- package/dist/vue/carousel.js +115 -0
- package/dist/vue/carousel.js.map +1 -0
- package/dist/vue/chart.d.ts +194 -0
- package/dist/vue/chart.d.ts.map +1 -0
- package/dist/vue/chart.js +246 -0
- package/dist/vue/chart.js.map +1 -0
- package/dist/vue/combobox.d.ts +155 -0
- package/dist/vue/combobox.d.ts.map +1 -0
- package/dist/vue/combobox.js +195 -0
- package/dist/vue/combobox.js.map +1 -0
- package/dist/vue/command-palette.d.ts +129 -0
- package/dist/vue/command-palette.d.ts.map +1 -0
- package/dist/vue/command-palette.js +187 -0
- package/dist/vue/command-palette.js.map +1 -0
- package/dist/vue/component-props.d.ts +3310 -0
- package/dist/vue/component-props.d.ts.map +1 -0
- package/dist/vue/component-props.js +43 -0
- package/dist/vue/component-props.js.map +1 -0
- package/dist/vue/configurator-props.d.ts +277 -0
- package/dist/vue/configurator-props.d.ts.map +1 -0
- package/dist/vue/configurator-props.js +63 -0
- package/dist/vue/configurator-props.js.map +1 -0
- package/dist/vue/configurator.d.ts +403 -0
- package/dist/vue/configurator.d.ts.map +1 -0
- package/dist/vue/configurator.js +287 -0
- package/dist/vue/configurator.js.map +1 -0
- package/dist/vue/contracts.d.ts +18 -0
- package/dist/vue/contracts.d.ts.map +1 -0
- package/dist/vue/contracts.js +24 -0
- package/dist/vue/contracts.js.map +1 -0
- package/dist/vue/data-table.d.ts +17 -0
- package/dist/vue/data-table.d.ts.map +1 -0
- package/dist/vue/data-table.js +133 -0
- package/dist/vue/data-table.js.map +1 -0
- package/dist/vue/date-calendar.d.ts +64 -0
- package/dist/vue/date-calendar.d.ts.map +1 -0
- package/dist/vue/date-calendar.js +65 -0
- package/dist/vue/date-calendar.js.map +1 -0
- package/dist/vue/date-picker.d.ts +1000 -0
- package/dist/vue/date-picker.d.ts.map +1 -0
- package/dist/vue/date-picker.js +334 -0
- package/dist/vue/date-picker.js.map +1 -0
- package/dist/vue/date-props.d.ts +278 -0
- package/dist/vue/date-props.d.ts.map +1 -0
- package/dist/vue/date-props.js +81 -0
- package/dist/vue/date-props.js.map +1 -0
- package/dist/vue/dialog.d.ts +21 -0
- package/dist/vue/dialog.d.ts.map +1 -0
- package/dist/vue/dialog.js +58 -0
- package/dist/vue/dialog.js.map +1 -0
- package/dist/vue/discovery-components.d.ts +50 -0
- package/dist/vue/discovery-components.d.ts.map +1 -0
- package/dist/vue/discovery-components.js +2 -0
- package/dist/vue/discovery-components.js.map +1 -0
- package/dist/vue/discovery-controls.d.ts +197 -0
- package/dist/vue/discovery-controls.d.ts.map +1 -0
- package/dist/vue/discovery-controls.js +166 -0
- package/dist/vue/discovery-controls.js.map +1 -0
- package/dist/vue/discovery-props.d.ts +249 -0
- package/dist/vue/discovery-props.d.ts.map +1 -0
- package/dist/vue/discovery-props.js +87 -0
- package/dist/vue/discovery-props.js.map +1 -0
- package/dist/vue/files.d.ts +53 -0
- package/dist/vue/files.d.ts.map +1 -0
- package/dist/vue/files.js +40 -0
- package/dist/vue/files.js.map +1 -0
- package/dist/vue/forms.d.ts +4 -0
- package/dist/vue/forms.d.ts.map +1 -0
- package/dist/vue/forms.js +15 -0
- package/dist/vue/forms.js.map +1 -0
- package/dist/vue/global-components.d.ts +259 -3
- package/dist/vue/global-components.d.ts.map +1 -1
- package/dist/vue/index.d.ts +54 -4
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +45 -2
- package/dist/vue/index.js.map +1 -1
- package/dist/vue/inline-content.d.ts +54 -0
- package/dist/vue/inline-content.d.ts.map +1 -0
- package/dist/vue/inline-content.js +64 -0
- package/dist/vue/inline-content.js.map +1 -0
- package/dist/vue/layout-context.d.ts +4 -2
- package/dist/vue/layout-context.d.ts.map +1 -1
- package/dist/vue/layout-context.js +7 -2
- package/dist/vue/layout-context.js.map +1 -1
- package/dist/vue/list-motion.d.ts +7 -0
- package/dist/vue/list-motion.d.ts.map +1 -0
- package/dist/vue/list-motion.js +28 -0
- package/dist/vue/list-motion.js.map +1 -0
- package/dist/vue/loading-effect.d.ts +7 -0
- package/dist/vue/loading-effect.d.ts.map +1 -0
- package/dist/vue/loading-effect.js +32 -0
- package/dist/vue/loading-effect.js.map +1 -0
- package/dist/vue/menu.d.ts +122 -0
- package/dist/vue/menu.d.ts.map +1 -0
- package/dist/vue/menu.js +79 -0
- package/dist/vue/menu.js.map +1 -0
- package/dist/vue/navigation-controls.d.ts +124 -0
- package/dist/vue/navigation-controls.d.ts.map +1 -0
- package/dist/vue/navigation-controls.js +117 -0
- package/dist/vue/navigation-controls.js.map +1 -0
- package/dist/vue/navigation-props.d.ts +283 -0
- package/dist/vue/navigation-props.d.ts.map +1 -0
- package/dist/vue/navigation-props.js +82 -0
- package/dist/vue/navigation-props.js.map +1 -0
- package/dist/vue/navigation.d.ts +7 -0
- package/dist/vue/navigation.d.ts.map +1 -0
- package/dist/vue/navigation.js +15 -0
- package/dist/vue/navigation.js.map +1 -0
- package/dist/vue/platform.d.ts +37 -0
- package/dist/vue/platform.d.ts.map +1 -0
- package/dist/vue/platform.js +46 -0
- package/dist/vue/platform.js.map +1 -0
- package/dist/vue/props.d.ts +3326 -510
- package/dist/vue/props.d.ts.map +1 -1
- package/dist/vue/props.js +314 -83
- package/dist/vue/props.js.map +1 -1
- package/dist/vue/reveal-state.d.ts +18 -0
- package/dist/vue/reveal-state.d.ts.map +1 -0
- package/dist/vue/reveal-state.js +76 -0
- package/dist/vue/reveal-state.js.map +1 -0
- package/dist/vue/theme-provider.d.ts +58 -0
- package/dist/vue/theme-provider.d.ts.map +1 -0
- package/dist/vue/theme-provider.js +69 -0
- package/dist/vue/theme-provider.js.map +1 -0
- package/dist/vue/theme.d.ts +1029 -19
- package/dist/vue/theme.d.ts.map +1 -1
- package/dist/vue/theme.js +47 -2
- package/dist/vue/theme.js.map +1 -1
- package/dist/vue/time-picker.d.ts +488 -0
- package/dist/vue/time-picker.d.ts.map +1 -0
- package/dist/vue/time-picker.js +190 -0
- package/dist/vue/time-picker.js.map +1 -0
- package/dist/vue/toast.d.ts +29 -0
- package/dist/vue/toast.d.ts.map +1 -0
- package/dist/vue/toast.js +79 -0
- package/dist/vue/toast.js.map +1 -0
- package/dist/vue/tree-view.d.ts +111 -0
- package/dist/vue/tree-view.d.ts.map +1 -0
- package/dist/vue/tree-view.js +180 -0
- package/dist/vue/tree-view.js.map +1 -0
- package/dist/vue/virtual-list.d.ts +26 -0
- package/dist/vue/virtual-list.d.ts.map +1 -0
- package/dist/vue/virtual-list.js +2 -0
- package/dist/vue/virtual-list.js.map +1 -0
- package/dist/vue/wayfinding-controls.d.ts +198 -0
- package/dist/vue/wayfinding-controls.d.ts.map +1 -0
- package/dist/vue/wayfinding-controls.js +310 -0
- package/dist/vue/wayfinding-controls.js.map +1 -0
- package/dist/vue/wayfinding-props.d.ts +221 -0
- package/dist/vue/wayfinding-props.d.ts.map +1 -0
- package/dist/vue/wayfinding-props.js +86 -0
- package/dist/vue/wayfinding-props.js.map +1 -0
- package/dist/vue/workflow-props.d.ts +110 -0
- package/dist/vue/workflow-props.d.ts.map +1 -0
- package/dist/vue/workflow-props.js +37 -0
- package/dist/vue/workflow-props.js.map +1 -0
- package/dist/vue/workflows.d.ts +267 -0
- package/dist/vue/workflows.d.ts.map +1 -0
- package/dist/vue/workflows.js +200 -0
- package/dist/vue/workflows.js.map +1 -0
- package/dist/wayfinding.d.ts +50 -0
- package/dist/wayfinding.d.ts.map +1 -0
- package/dist/wayfinding.js +54 -0
- package/dist/wayfinding.js.map +1 -0
- package/package.json +5 -1
- package/src/accordion.ts +66 -0
- package/src/alert.ts +16 -0
- package/src/app-icons.ts +57 -0
- package/src/avatar.ts +11 -0
- package/src/badge.ts +11 -0
- package/src/capabilities.ts +183 -0
- package/src/chart.ts +112 -0
- package/src/chip.ts +20 -0
- package/src/choice-motion.ts +12 -0
- package/src/choice.ts +41 -0
- package/src/collections.ts +87 -0
- package/src/combobox.ts +198 -0
- package/src/contracts.ts +324 -0
- package/src/date-input.ts +87 -0
- package/src/date-time.ts +37 -0
- package/src/date.ts +280 -0
- package/src/dialog.ts +22 -0
- package/src/discovery.ts +139 -0
- package/src/empty-state.ts +4 -0
- package/src/experimental-collections.ts +87 -0
- package/src/experimental-effects.ts +146 -0
- package/src/experimental-platforms.ts +96 -0
- package/src/experimental-playback.ts +115 -0
- package/src/experimental-regions.ts +777 -0
- package/src/experimental-sensors.ts +50 -0
- package/src/experimental-surfaces.ts +124 -0
- package/src/experimental.ts +1102 -0
- package/src/files.ts +408 -0
- package/src/form.ts +190 -0
- package/src/grid.ts +19 -0
- package/src/icon.ts +30 -0
- package/src/icons.ts +2002 -0
- package/src/index.ts +93 -2
- package/src/input.ts +27 -0
- package/src/link.ts +91 -0
- package/src/list-item.ts +5 -0
- package/src/motion.ts +80 -0
- package/src/multi-select.ts +30 -0
- package/src/navigation-transition.ts +14 -0
- package/src/navigation.ts +61 -0
- package/src/number-input.ts +80 -0
- package/src/popover.ts +38 -0
- package/src/progress.ts +22 -0
- package/src/responsive.ts +61 -0
- package/src/section-scroll.ts +46 -0
- package/src/segmented.ts +39 -0
- package/src/sheet.ts +31 -0
- package/src/tabs.ts +35 -0
- package/src/theme/themes.ts +89 -12
- package/src/theme/types.ts +55 -2
- package/src/theme/typography.ts +84 -0
- package/src/time.ts +83 -0
- package/src/toast.ts +249 -0
- package/src/vue/button-content.ts +60 -0
- package/src/vue/cached-activity.ts +13 -0
- package/src/vue/carousel.ts +173 -0
- package/src/vue/chart.ts +338 -0
- package/src/vue/combobox.ts +238 -0
- package/src/vue/command-palette.ts +232 -0
- package/src/vue/component-props.ts +70 -0
- package/src/vue/configurator-props.ts +67 -0
- package/src/vue/configurator.ts +350 -0
- package/src/vue/contracts.ts +39 -0
- package/src/vue/data-table.ts +190 -0
- package/src/vue/date-calendar.ts +76 -0
- package/src/vue/date-picker.ts +410 -0
- package/src/vue/date-props.ts +89 -0
- package/src/vue/dialog.ts +63 -0
- package/src/vue/discovery-components.ts +60 -0
- package/src/vue/discovery-controls.ts +218 -0
- package/src/vue/discovery-props.ts +92 -0
- package/src/vue/files.ts +53 -0
- package/src/vue/forms.ts +20 -0
- package/src/vue/global-components.ts +248 -4
- package/src/vue/index.ts +97 -4
- package/src/vue/inline-content.ts +71 -0
- package/src/vue/layout-context.ts +10 -3
- package/src/vue/list-motion.ts +31 -0
- package/src/vue/loading-effect.ts +44 -0
- package/src/vue/menu.ts +100 -0
- package/src/vue/navigation-controls.ts +138 -0
- package/src/vue/navigation-props.ts +87 -0
- package/src/vue/navigation.ts +16 -0
- package/src/vue/platform.ts +73 -0
- package/src/vue/props.ts +348 -96
- package/src/vue/reveal-state.ts +83 -0
- package/src/vue/theme-provider.ts +74 -0
- package/src/vue/theme.ts +65 -3
- package/src/vue/time-picker.ts +227 -0
- package/src/vue/toast.ts +99 -0
- package/src/vue/tree-view.ts +220 -0
- package/src/vue/virtual-list.ts +28 -0
- package/src/vue/wayfinding-controls.ts +412 -0
- package/src/vue/wayfinding-props.ts +97 -0
- package/src/vue/workflow-props.ts +41 -0
- package/src/vue/workflows.ts +257 -0
- package/src/wayfinding.ts +85 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
defineComponent,
|
|
4
|
+
h,
|
|
5
|
+
mergeProps,
|
|
6
|
+
ref,
|
|
7
|
+
watch,
|
|
8
|
+
type Component,
|
|
9
|
+
} from '@vue/runtime-core'
|
|
10
|
+
import { calendarProps, ratingProps } from './discovery-props.js'
|
|
11
|
+
import { ratingValue } from '../discovery.js'
|
|
12
|
+
import {
|
|
13
|
+
civilDate,
|
|
14
|
+
dateAvailability,
|
|
15
|
+
validateDateConstraints,
|
|
16
|
+
validateDateRangeDraft,
|
|
17
|
+
type CivilDate,
|
|
18
|
+
type DateRange,
|
|
19
|
+
} from '../date.js'
|
|
20
|
+
import { useMavisTheme } from './theme.js'
|
|
21
|
+
|
|
22
|
+
interface Primitives {
|
|
23
|
+
Column: Component
|
|
24
|
+
Row: Component
|
|
25
|
+
Text: Component
|
|
26
|
+
Button: Component
|
|
27
|
+
Icon: Component
|
|
28
|
+
Slider: Component
|
|
29
|
+
Calendar: Component
|
|
30
|
+
}
|
|
31
|
+
function initialCalendarDate(
|
|
32
|
+
value: CivilDate | null,
|
|
33
|
+
props: { min?: CivilDate; max?: CivilDate; initialMonth: string },
|
|
34
|
+
) {
|
|
35
|
+
let date = value ?? props.min ?? civilDate(`${props.initialMonth}-01`)
|
|
36
|
+
if (props.min && date < props.min) date = props.min
|
|
37
|
+
if (props.max && date > props.max) date = props.max
|
|
38
|
+
return date
|
|
39
|
+
}
|
|
40
|
+
export function createDiscoveryControls(ui: Primitives, platform: 'web' | 'native') {
|
|
41
|
+
const MCalendar = defineComponent({
|
|
42
|
+
name: 'MCalendar',
|
|
43
|
+
inheritAttrs: false,
|
|
44
|
+
props: calendarProps,
|
|
45
|
+
emits: {
|
|
46
|
+
'update:modelValue': (_value: CivilDate | DateRange | null) => true,
|
|
47
|
+
invalid: () => true,
|
|
48
|
+
},
|
|
49
|
+
setup(props, { attrs, emit, slots }) {
|
|
50
|
+
const { theme } = useMavisTheme()
|
|
51
|
+
const selected = computed(() =>
|
|
52
|
+
typeof props.modelValue === 'string' ? civilDate(props.modelValue) : null,
|
|
53
|
+
)
|
|
54
|
+
const range = computed(() =>
|
|
55
|
+
typeof props.modelValue === 'object' && props.modelValue !== null
|
|
56
|
+
? props.modelValue
|
|
57
|
+
: { start: null, end: null },
|
|
58
|
+
)
|
|
59
|
+
const active = ref<CivilDate>(initialCalendarDate(selected.value ?? range.value.start, props))
|
|
60
|
+
const invalid = ref(false)
|
|
61
|
+
watch(
|
|
62
|
+
() => [props.modelValue, props.initialMonth],
|
|
63
|
+
() => {
|
|
64
|
+
active.value = initialCalendarDate(
|
|
65
|
+
selected.value ?? range.value.end ?? range.value.start,
|
|
66
|
+
props,
|
|
67
|
+
)
|
|
68
|
+
invalid.value = false
|
|
69
|
+
},
|
|
70
|
+
)
|
|
71
|
+
function select(date: CivilDate) {
|
|
72
|
+
if (props.disabled || props.readonly || dateAvailability(date, props)) return
|
|
73
|
+
invalid.value = false
|
|
74
|
+
if (props.mode === 'single') emit('update:modelValue', date)
|
|
75
|
+
else if (!range.value.start || range.value.end)
|
|
76
|
+
emit('update:modelValue', { start: date, end: null })
|
|
77
|
+
else {
|
|
78
|
+
const next =
|
|
79
|
+
date < range.value.start
|
|
80
|
+
? { start: date, end: range.value.start }
|
|
81
|
+
: { start: range.value.start, end: date }
|
|
82
|
+
if (!validateDateRangeDraft({ start: next.start, end: next.end }, props).valid) {
|
|
83
|
+
invalid.value = true
|
|
84
|
+
emit('invalid')
|
|
85
|
+
} else emit('update:modelValue', next)
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return () => {
|
|
89
|
+
validateDateConstraints(props)
|
|
90
|
+
if (
|
|
91
|
+
props.mode === 'single' &&
|
|
92
|
+
props.modelValue !== null &&
|
|
93
|
+
typeof props.modelValue !== 'string'
|
|
94
|
+
)
|
|
95
|
+
throw new TypeError('Single calendars require a civil date.')
|
|
96
|
+
if (props.mode === 'range' && typeof props.modelValue === 'string')
|
|
97
|
+
throw new TypeError('Range calendars require start and end.')
|
|
98
|
+
for (const date of [range.value.start, range.value.end]) if (date !== null) civilDate(date)
|
|
99
|
+
return h(
|
|
100
|
+
ui.Column,
|
|
101
|
+
mergeProps(
|
|
102
|
+
{
|
|
103
|
+
id: props.id,
|
|
104
|
+
gap: 'md',
|
|
105
|
+
padding: 'sm',
|
|
106
|
+
radius: 'lg',
|
|
107
|
+
backgroundColor: theme.value.colors.surface,
|
|
108
|
+
},
|
|
109
|
+
attrs,
|
|
110
|
+
platform === 'web'
|
|
111
|
+
? { role: 'group', 'aria-label': props.label, class: 'm-calendar' }
|
|
112
|
+
: {},
|
|
113
|
+
),
|
|
114
|
+
() => [
|
|
115
|
+
h(ui.Text, { as: 'h2', variant: 'heading', text: props.label }),
|
|
116
|
+
h(ui.Calendar, {
|
|
117
|
+
...props,
|
|
118
|
+
autofocus: false,
|
|
119
|
+
activeDate: active.value,
|
|
120
|
+
selected: selected.value,
|
|
121
|
+
rangeStart: range.value.start,
|
|
122
|
+
rangeEnd: range.value.end,
|
|
123
|
+
'onUpdate:activeDate': (date: CivilDate) => {
|
|
124
|
+
active.value = date
|
|
125
|
+
},
|
|
126
|
+
onSelect: select,
|
|
127
|
+
}),
|
|
128
|
+
invalid.value
|
|
129
|
+
? h(ui.Text, {
|
|
130
|
+
text: props.invalidRangeLabel,
|
|
131
|
+
tone: 'danger',
|
|
132
|
+
...(platform === 'web'
|
|
133
|
+
? { role: 'alert' }
|
|
134
|
+
: { accessibilityLiveRegion: 'assertive' }),
|
|
135
|
+
})
|
|
136
|
+
: null,
|
|
137
|
+
slots.footer?.(),
|
|
138
|
+
],
|
|
139
|
+
)
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
})
|
|
143
|
+
const MRating = defineComponent({
|
|
144
|
+
name: 'MRating',
|
|
145
|
+
inheritAttrs: false,
|
|
146
|
+
props: ratingProps,
|
|
147
|
+
emits: { 'update:modelValue': (_value: number) => true },
|
|
148
|
+
setup(props, { attrs, emit }) {
|
|
149
|
+
const value = computed(() => ratingValue(props.modelValue, props.max, props.step))
|
|
150
|
+
const label = (next: number) =>
|
|
151
|
+
props.formatValue?.(next, props.max) ?? `${next} / ${props.max}`
|
|
152
|
+
function choose(next: number) {
|
|
153
|
+
if (!props.readonly && !props.disabled && next !== value.value)
|
|
154
|
+
emit('update:modelValue', ratingValue(next, props.max, props.step))
|
|
155
|
+
}
|
|
156
|
+
return () =>
|
|
157
|
+
h(
|
|
158
|
+
ui.Column,
|
|
159
|
+
mergeProps(
|
|
160
|
+
{ id: props.id, gap: 'sm' },
|
|
161
|
+
attrs,
|
|
162
|
+
platform === 'web'
|
|
163
|
+
? { class: 'm-rating', role: 'group', 'aria-label': props.label }
|
|
164
|
+
: {},
|
|
165
|
+
),
|
|
166
|
+
() => [
|
|
167
|
+
h(ui.Row, { justify: 'between', gap: 'sm', wrap: true }, () => [
|
|
168
|
+
h(ui.Text, { text: props.label, weight: '600' }),
|
|
169
|
+
h(ui.Text, { text: label(value.value), tone: 'muted', variant: 'caption' }),
|
|
170
|
+
]),
|
|
171
|
+
h(ui.Row, { gap: 'xs', wrap: true }, () =>
|
|
172
|
+
Array.from({ length: props.max }, (_, index) => {
|
|
173
|
+
const filled = value.value >= index + 1
|
|
174
|
+
const half = value.value > index && !filled
|
|
175
|
+
const icon = half ? 'star-half' : 'star'
|
|
176
|
+
return props.readonly
|
|
177
|
+
? h(ui.Icon, {
|
|
178
|
+
key: index,
|
|
179
|
+
name: icon,
|
|
180
|
+
size: 28,
|
|
181
|
+
tone: filled || half ? 'primary' : 'muted',
|
|
182
|
+
accessibilityHidden: true,
|
|
183
|
+
})
|
|
184
|
+
: h(ui.Button, {
|
|
185
|
+
key: index,
|
|
186
|
+
icon,
|
|
187
|
+
variant: filled || half ? 'primary' : 'secondary',
|
|
188
|
+
disabled: props.disabled,
|
|
189
|
+
accessibilityLabel: `${props.label}: ${label(index + 1)}`,
|
|
190
|
+
onClick: () => choose(index + 1),
|
|
191
|
+
})
|
|
192
|
+
}),
|
|
193
|
+
),
|
|
194
|
+
!props.readonly && props.step === 0.5
|
|
195
|
+
? h(ui.Slider, {
|
|
196
|
+
modelValue: value.value,
|
|
197
|
+
min: 0,
|
|
198
|
+
max: props.max,
|
|
199
|
+
step: props.step,
|
|
200
|
+
label: props.label,
|
|
201
|
+
disabled: props.disabled,
|
|
202
|
+
'onUpdate:modelValue': choose,
|
|
203
|
+
})
|
|
204
|
+
: null,
|
|
205
|
+
props.clearable && !props.readonly
|
|
206
|
+
? h(ui.Button, {
|
|
207
|
+
text: props.clearLabel,
|
|
208
|
+
variant: 'ghost',
|
|
209
|
+
disabled: props.disabled || value.value === 0,
|
|
210
|
+
onClick: () => choose(0),
|
|
211
|
+
})
|
|
212
|
+
: null,
|
|
213
|
+
],
|
|
214
|
+
)
|
|
215
|
+
},
|
|
216
|
+
})
|
|
217
|
+
return { MCalendar, MRating }
|
|
218
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { PropType } from '@vue/runtime-core'
|
|
2
|
+
import type { ChoiceValue } from '../choice.js'
|
|
3
|
+
import type { VirtualItemKey } from '../collections.js'
|
|
4
|
+
import type { CivilDate, DateRange } from '../date.js'
|
|
5
|
+
import type { DataColumn, DataSort, RangeValue, TreeNode } from '../discovery.js'
|
|
6
|
+
import { datePickerProps } from './date-props.js'
|
|
7
|
+
import { sliderProps } from './props.js'
|
|
8
|
+
|
|
9
|
+
const label = { type: String, required: true as const }
|
|
10
|
+
const keys = { type: Array as PropType<readonly ChoiceValue[]>, default: () => [] }
|
|
11
|
+
export const rangeSliderProps = {
|
|
12
|
+
...sliderProps,
|
|
13
|
+
modelValue: { type: Array as unknown as PropType<RangeValue>, default: () => [0, 100] as const },
|
|
14
|
+
lowerLabel: { type: String, default: 'Minimum' },
|
|
15
|
+
upperLabel: { type: String, default: 'Maximum' },
|
|
16
|
+
formatValue: Function as PropType<(value: number) => string>,
|
|
17
|
+
readonly: Boolean,
|
|
18
|
+
}
|
|
19
|
+
export const ratingProps = {
|
|
20
|
+
label,
|
|
21
|
+
id: String,
|
|
22
|
+
modelValue: { type: Number, default: 0 },
|
|
23
|
+
max: { type: Number, default: 5 },
|
|
24
|
+
step: { type: Number as PropType<1 | 0.5>, default: 1 },
|
|
25
|
+
disabled: Boolean,
|
|
26
|
+
readonly: Boolean,
|
|
27
|
+
clearable: { type: Boolean, default: true },
|
|
28
|
+
clearLabel: { type: String, default: 'Clear rating' },
|
|
29
|
+
formatValue: Function as PropType<(value: number, max: number) => string>,
|
|
30
|
+
}
|
|
31
|
+
export const calendarProps = {
|
|
32
|
+
id: String,
|
|
33
|
+
label,
|
|
34
|
+
mode: { type: String as PropType<'single' | 'range'>, default: 'single' },
|
|
35
|
+
modelValue: { type: [String, Object] as PropType<CivilDate | DateRange | null>, default: null },
|
|
36
|
+
min: datePickerProps.min,
|
|
37
|
+
max: datePickerProps.max,
|
|
38
|
+
unavailableDates: datePickerProps.unavailableDates,
|
|
39
|
+
locale: datePickerProps.locale,
|
|
40
|
+
firstDayOfWeek: datePickerProps.firstDayOfWeek,
|
|
41
|
+
initialMonth: datePickerProps.initialMonth,
|
|
42
|
+
disabled: Boolean,
|
|
43
|
+
readonly: Boolean,
|
|
44
|
+
invalidRangeLabel: { type: String, default: 'This range includes an unavailable date.' },
|
|
45
|
+
}
|
|
46
|
+
export const dataTableProps = {
|
|
47
|
+
id: String,
|
|
48
|
+
label,
|
|
49
|
+
items: { type: Array as PropType<readonly Record<string, unknown>[]>, required: true as const },
|
|
50
|
+
itemKey: {
|
|
51
|
+
type: [String, Function] as PropType<VirtualItemKey<Record<string, unknown>>>,
|
|
52
|
+
default: 'id',
|
|
53
|
+
},
|
|
54
|
+
columns: { type: Array as PropType<readonly DataColumn[]>, required: true as const },
|
|
55
|
+
sort: { type: Object as PropType<DataSort | null>, default: null },
|
|
56
|
+
selected: keys,
|
|
57
|
+
selectable: Boolean,
|
|
58
|
+
disabled: Boolean,
|
|
59
|
+
loading: Boolean,
|
|
60
|
+
rowDisabled: Function as PropType<(item: Record<string, unknown>) => boolean>,
|
|
61
|
+
rowLabel: Function as PropType<(item: Record<string, unknown>) => string>,
|
|
62
|
+
selectLabel: { type: String, default: 'Select' },
|
|
63
|
+
selectAllLabel: { type: String, default: 'Select this page' },
|
|
64
|
+
emptyLabel: { type: String, default: 'No results' },
|
|
65
|
+
loadingLabel: { type: String, default: 'Loading results' },
|
|
66
|
+
}
|
|
67
|
+
export const treeViewProps = {
|
|
68
|
+
id: String,
|
|
69
|
+
label,
|
|
70
|
+
nodes: { type: Array as PropType<readonly TreeNode[]>, required: true as const },
|
|
71
|
+
modelValue: { type: [String, Number] as PropType<ChoiceValue | null>, default: null },
|
|
72
|
+
expanded: keys,
|
|
73
|
+
loadingKeys: keys,
|
|
74
|
+
disabled: Boolean,
|
|
75
|
+
emptyLabel: { type: String, default: 'No items' },
|
|
76
|
+
loadingLabel: { type: String, default: 'Loading' },
|
|
77
|
+
expandedLabel: { type: String, default: 'Expanded' },
|
|
78
|
+
collapsedLabel: { type: String, default: 'Collapsed' },
|
|
79
|
+
}
|
|
80
|
+
export const carouselProps = {
|
|
81
|
+
id: String,
|
|
82
|
+
label,
|
|
83
|
+
items: { type: Array as PropType<readonly unknown[]>, required: true as const },
|
|
84
|
+
itemKey: { type: [String, Function] as PropType<VirtualItemKey>, default: 'id' },
|
|
85
|
+
modelValue: { type: [String, Number] as PropType<ChoiceValue | null>, default: null },
|
|
86
|
+
disabled: Boolean,
|
|
87
|
+
loop: Boolean,
|
|
88
|
+
previousLabel: { type: String, default: 'Previous slide' },
|
|
89
|
+
nextLabel: { type: String, default: 'Next slide' },
|
|
90
|
+
slideLabel: { type: String, default: 'Slide' },
|
|
91
|
+
emptyLabel: { type: String, default: 'No slides' },
|
|
92
|
+
}
|
package/src/vue/files.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { markRaw, onBeforeUnmount, onDeactivated, type PropType } from '@vue/runtime-core'
|
|
2
|
+
import {
|
|
3
|
+
createFileSelection,
|
|
4
|
+
type FileSelectionController,
|
|
5
|
+
type FileSelectionOptions,
|
|
6
|
+
type FileItem,
|
|
7
|
+
type FileSelectionErrorCode,
|
|
8
|
+
} from '../files.js'
|
|
9
|
+
|
|
10
|
+
/** Own this in the component that owns the selected files, not in a module singleton. */
|
|
11
|
+
export function useFileSelection(options: FileSelectionOptions = {}) {
|
|
12
|
+
const selection = markRaw(createFileSelection(options))
|
|
13
|
+
onDeactivated(() => selection.pause())
|
|
14
|
+
onBeforeUnmount(() => selection.dispose())
|
|
15
|
+
return selection
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const filePickerProps = {
|
|
19
|
+
selection: { type: Object as PropType<FileSelectionController>, required: true as const },
|
|
20
|
+
label: { type: String, required: true as const },
|
|
21
|
+
disabled: Boolean,
|
|
22
|
+
chooseLabel: { type: String, default: 'Choose files' },
|
|
23
|
+
uploadLabel: { type: String, default: 'Upload' },
|
|
24
|
+
cancelLabel: { type: String, default: 'Cancel' },
|
|
25
|
+
retryLabel: { type: String, default: 'Retry' },
|
|
26
|
+
removeLabel: { type: String, default: 'Remove' },
|
|
27
|
+
emptyLabel: { type: String, default: 'No files selected' },
|
|
28
|
+
pendingLabel: { type: String, default: 'Working' },
|
|
29
|
+
statusLabels: {
|
|
30
|
+
type: Object as PropType<Partial<Record<FileItem['status'], string>>>,
|
|
31
|
+
default: () => ({}),
|
|
32
|
+
},
|
|
33
|
+
errorLabels: {
|
|
34
|
+
type: Object as PropType<Partial<Record<FileSelectionErrorCode, string>>>,
|
|
35
|
+
default: () => ({}),
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function fileStatusText(
|
|
40
|
+
item: FileItem,
|
|
41
|
+
labels: Partial<Record<FileItem['status'], string>>,
|
|
42
|
+
) {
|
|
43
|
+
return (
|
|
44
|
+
labels[item.status] ??
|
|
45
|
+
{
|
|
46
|
+
selected: 'Ready',
|
|
47
|
+
uploading: 'Uploading',
|
|
48
|
+
uploaded: 'Uploaded',
|
|
49
|
+
failed: 'Failed',
|
|
50
|
+
cancelled: 'Cancelled',
|
|
51
|
+
}[item.status]
|
|
52
|
+
)
|
|
53
|
+
}
|
package/src/vue/forms.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { markRaw, onScopeDispose } from '@vue/runtime-core'
|
|
2
|
+
import { useCachedActivity } from './cached-activity.js'
|
|
3
|
+
import {
|
|
4
|
+
createFormController,
|
|
5
|
+
type FormController,
|
|
6
|
+
type FormError,
|
|
7
|
+
type FormField,
|
|
8
|
+
} from '../form.js'
|
|
9
|
+
|
|
10
|
+
export function useFormController(initial: readonly FormError[] = []) {
|
|
11
|
+
const form = markRaw(createFormController(initial))
|
|
12
|
+
onScopeDispose(() => form.dispose())
|
|
13
|
+
return form
|
|
14
|
+
}
|
|
15
|
+
export function useFormField(form: FormController, field: FormField) {
|
|
16
|
+
const active = useCachedActivity()
|
|
17
|
+
const release = form.register({ ...field, target: () => (active.value ? field.target() : null) })
|
|
18
|
+
onScopeDispose(release)
|
|
19
|
+
return release
|
|
20
|
+
}
|
|
@@ -1,27 +1,271 @@
|
|
|
1
|
+
import type { AccordionPanelProps } from '../accordion.js'
|
|
2
|
+
import type { TabPanelProps } from '../tabs.js'
|
|
3
|
+
import type { CivilDate, DateRange, DateRangeDraft, DateValidation } from '../date.js'
|
|
4
|
+
import type { ChoiceValue, ChoiceOption } from '../choice.js'
|
|
1
5
|
import type { DefineComponent } from '@vue/runtime-core'
|
|
2
|
-
import type { ComponentProps } from './props.js'
|
|
6
|
+
import type { ComponentProps } from './component-props.js'
|
|
7
|
+
import type { DialogCloseReason } from '../dialog.js'
|
|
8
|
+
import type { SheetCloseReason } from '../sheet.js'
|
|
9
|
+
import type { InputHandle, InputActionHandle } from '../input.js'
|
|
3
10
|
|
|
4
|
-
type Action = { onClick?: () => void }
|
|
11
|
+
type Action = { onClick?: () => void; onError?: (error: unknown) => void }
|
|
5
12
|
type Model = { 'onUpdate:modelValue'?: (value: number) => void }
|
|
6
13
|
type InputEvents = {
|
|
14
|
+
onAction?: () => void
|
|
7
15
|
'onUpdate:modelValue'?: (value: string) => void
|
|
8
16
|
onFocus?: () => void
|
|
9
17
|
onBlur?: () => void
|
|
10
18
|
onSubmit?: (value: string) => void
|
|
11
19
|
}
|
|
12
20
|
|
|
21
|
+
/** Additional input attributes supplied by a renderer, without DOM dependencies in core. */
|
|
22
|
+
export interface InputPlatformAttributes {}
|
|
23
|
+
type SheetEvents = {
|
|
24
|
+
'onUpdate:open'?: (value: boolean) => void
|
|
25
|
+
onClose?: (reason: SheetCloseReason) => void
|
|
26
|
+
onOpened?: () => void
|
|
27
|
+
}
|
|
28
|
+
|
|
13
29
|
/** Template props come from the same declarations used by both renderers. */
|
|
14
30
|
declare module '@vue/runtime-core' {
|
|
15
31
|
export interface GlobalComponents {
|
|
32
|
+
MCommandPalette: DefineComponent<
|
|
33
|
+
ComponentProps['MCommandPalette'] & {
|
|
34
|
+
'onUpdate:open'?: (open: boolean) => void
|
|
35
|
+
'onUpdate:query'?: (query: string) => void
|
|
36
|
+
onSelect?: (key: ChoiceValue, item: import('../wayfinding.js').CommandItem) => void
|
|
37
|
+
}
|
|
38
|
+
>
|
|
39
|
+
MNavigationRail: DefineComponent<
|
|
40
|
+
ComponentProps['MNavigationRail'] & {
|
|
41
|
+
'onUpdate:collapsed'?: (collapsed: boolean) => void
|
|
42
|
+
onError?: (error: unknown) => void
|
|
43
|
+
}
|
|
44
|
+
> & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: {
|
|
47
|
+
header?: (scope: { collapsed: boolean }) => unknown
|
|
48
|
+
footer?: (scope: { collapsed: boolean }) => unknown
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
MBreadcrumb: DefineComponent<
|
|
53
|
+
ComponentProps['MBreadcrumb'] & { onError?: (error: unknown) => void }
|
|
54
|
+
>
|
|
55
|
+
MTooltip: DefineComponent<ComponentProps['MTooltip']>
|
|
56
|
+
MTimeline: DefineComponent<ComponentProps['MTimeline']> & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: {
|
|
59
|
+
default?: (scope: {
|
|
60
|
+
item: import('../wayfinding.js').TimelineItem
|
|
61
|
+
index: number
|
|
62
|
+
}) => unknown
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
MChart: DefineComponent<
|
|
67
|
+
ComponentProps['MChart'] & {
|
|
68
|
+
'onUpdate:modelValue'?: (value: import('../chart.js').ChartSelection | null) => void
|
|
69
|
+
'onUpdate:hiddenSeries'?: (keys: ChoiceValue[]) => void
|
|
70
|
+
}
|
|
71
|
+
>
|
|
72
|
+
|
|
73
|
+
MPopover: DefineComponent<
|
|
74
|
+
ComponentProps['MPopover'] & {
|
|
75
|
+
'onUpdate:open'?: (open: boolean) => void
|
|
76
|
+
onClose?: (reason: import('../popover.js').PopoverCloseReason) => void
|
|
77
|
+
onOpened?: () => void
|
|
78
|
+
}
|
|
79
|
+
> & { new (): { $slots: { default?: (scope: { close(): void }) => unknown } } }
|
|
80
|
+
MMenu: DefineComponent<
|
|
81
|
+
ComponentProps['MMenu'] & {
|
|
82
|
+
'onUpdate:open'?: (open: boolean) => void
|
|
83
|
+
onClose?: (reason: import('../popover.js').PopoverCloseReason) => void
|
|
84
|
+
onSelect?: (value: ChoiceValue, item: import('../collections.js').MenuAction) => void
|
|
85
|
+
}
|
|
86
|
+
>
|
|
87
|
+
MAppBar: DefineComponent<
|
|
88
|
+
ComponentProps['MAppBar'] & { onBack?: () => void; onError?: (error: unknown) => void }
|
|
89
|
+
> & {
|
|
90
|
+
new (): { $slots: { leading?: () => unknown; actions?: () => unknown } }
|
|
91
|
+
}
|
|
92
|
+
MTabBar: DefineComponent<ComponentProps['MTabBar'] & { onError?: (error: unknown) => void }>
|
|
93
|
+
MTimePicker: DefineComponent<
|
|
94
|
+
ComponentProps['MTimePicker'] & {
|
|
95
|
+
'onUpdate:modelValue'?: (value: string | null) => void
|
|
96
|
+
'onUpdate:draft'?: (value: string) => void
|
|
97
|
+
onValidityChange?: (value: import('../time.js').TimeValidation) => void
|
|
98
|
+
onFocus?: () => void
|
|
99
|
+
onBlur?: () => void
|
|
100
|
+
},
|
|
101
|
+
InputHandle
|
|
102
|
+
>
|
|
103
|
+
MVirtualList: import('./virtual-list.js').VirtualListComponent
|
|
104
|
+
MThemeProvider: typeof import('./theme-provider.js').MThemeProvider
|
|
105
|
+
MPlatform: typeof import('./platform.js').MPlatform
|
|
106
|
+
MSpan: typeof import('./inline-content.js').MSpan
|
|
107
|
+
MDatePicker: DefineComponent<
|
|
108
|
+
ComponentProps['MDatePicker'] & {
|
|
109
|
+
'onUpdate:modelValue'?: (value: CivilDate | null) => void
|
|
110
|
+
'onUpdate:draft'?: (value: string) => void
|
|
111
|
+
onValidityChange?: (value: DateValidation) => void
|
|
112
|
+
onFocus?: () => void
|
|
113
|
+
onBlur?: () => void
|
|
114
|
+
},
|
|
115
|
+
InputHandle
|
|
116
|
+
>
|
|
117
|
+
MDateRangePicker: DefineComponent<
|
|
118
|
+
ComponentProps['MDateRangePicker'] & {
|
|
119
|
+
'onUpdate:modelValue'?: (value: DateRange) => void
|
|
120
|
+
'onUpdate:draft'?: (value: DateRangeDraft) => void
|
|
121
|
+
onValidityChange?: (value: DateValidation) => void
|
|
122
|
+
onFocus?: () => void
|
|
123
|
+
onBlur?: () => void
|
|
124
|
+
},
|
|
125
|
+
InputHandle
|
|
126
|
+
>
|
|
127
|
+
MCombobox: DefineComponent<
|
|
128
|
+
ComponentProps['MCombobox'] & {
|
|
129
|
+
'onUpdate:modelValue'?: (value: ChoiceValue | null) => void
|
|
130
|
+
'onUpdate:query'?: (value: string) => void
|
|
131
|
+
onSelect?: (value: ChoiceOption | null) => void
|
|
132
|
+
onFocus?: () => void
|
|
133
|
+
onBlur?: () => void
|
|
134
|
+
},
|
|
135
|
+
InputHandle
|
|
136
|
+
>
|
|
137
|
+
MNumberInput: DefineComponent<
|
|
138
|
+
ComponentProps['MNumberInput'] & {
|
|
139
|
+
'onUpdate:modelValue'?: (value: number | null) => void
|
|
140
|
+
'onUpdate:draft'?: (value: string) => void
|
|
141
|
+
onValidityChange?: (value: import('../number-input.js').NumberDraft) => void
|
|
142
|
+
onFocus?: () => void
|
|
143
|
+
onBlur?: () => void
|
|
144
|
+
},
|
|
145
|
+
InputHandle
|
|
146
|
+
>
|
|
147
|
+
MMultiSelect: DefineComponent<
|
|
148
|
+
ComponentProps['MMultiSelect'] & { 'onUpdate:modelValue'?: (value: ChoiceValue[]) => void }
|
|
149
|
+
>
|
|
150
|
+
MImage: DefineComponent<
|
|
151
|
+
ComponentProps['MImage'] & { onLoad?: (src: string) => void; onError?: (src: string) => void }
|
|
152
|
+
>
|
|
153
|
+
MFilePicker: DefineComponent<ComponentProps['MFilePicker'], InputHandle>
|
|
154
|
+
MFormGroup: DefineComponent<ComponentProps['MFormGroup']>
|
|
155
|
+
MFormErrors: DefineComponent<
|
|
156
|
+
ComponentProps['MFormErrors'] & { onFocus?: (field: string, focused: boolean) => void }
|
|
157
|
+
>
|
|
158
|
+
MSteps: DefineComponent<
|
|
159
|
+
ComponentProps['MSteps'] & { 'onUpdate:modelValue'?: (value: ChoiceValue) => void }
|
|
160
|
+
>
|
|
161
|
+
MPagination: DefineComponent<
|
|
162
|
+
ComponentProps['MPagination'] & { 'onUpdate:modelValue'?: (value: number) => void }
|
|
163
|
+
>
|
|
164
|
+
MDataTable: import('./discovery-components.js').DataTableComponent
|
|
165
|
+
MCarousel: import('./discovery-components.js').CarouselComponent
|
|
166
|
+
MRangeSlider: DefineComponent<
|
|
167
|
+
ComponentProps['MRangeSlider'] & {
|
|
168
|
+
'onUpdate:modelValue'?: (value: import('../discovery.js').RangeValue) => void
|
|
169
|
+
}
|
|
170
|
+
>
|
|
171
|
+
MCalendar: DefineComponent<
|
|
172
|
+
ComponentProps['MCalendar'] & {
|
|
173
|
+
'onUpdate:modelValue'?: (
|
|
174
|
+
value: import('../date.js').CivilDate | import('../date.js').DateRange | null,
|
|
175
|
+
) => void
|
|
176
|
+
onInvalid?: () => void
|
|
177
|
+
}
|
|
178
|
+
> & { new (): { $slots: { footer?: () => unknown } } }
|
|
179
|
+
MRating: DefineComponent<
|
|
180
|
+
ComponentProps['MRating'] & { 'onUpdate:modelValue'?: (value: number) => void }
|
|
181
|
+
>
|
|
182
|
+
MTreeView: DefineComponent<
|
|
183
|
+
ComponentProps['MTreeView'] & {
|
|
184
|
+
'onUpdate:modelValue'?: (key: ChoiceValue) => void
|
|
185
|
+
'onUpdate:expanded'?: (keys: ChoiceValue[]) => void
|
|
186
|
+
onLoad?: (node: import('../discovery.js').TreeNode) => void
|
|
187
|
+
}
|
|
188
|
+
>
|
|
16
189
|
MScreen: DefineComponent<ComponentProps['MScreen']>
|
|
17
190
|
MRow: DefineComponent<ComponentProps['MRow']>
|
|
18
191
|
MColumn: DefineComponent<ComponentProps['MColumn']>
|
|
192
|
+
MStack: DefineComponent<ComponentProps['MStack']>
|
|
193
|
+
MGrid: DefineComponent<ComponentProps['MGrid']>
|
|
194
|
+
MLink: DefineComponent<
|
|
195
|
+
ComponentProps['MLink'] & Action & { onError?: (error: unknown) => void }
|
|
196
|
+
>
|
|
19
197
|
MBox: DefineComponent<ComponentProps['MBox']>
|
|
20
198
|
MCard: DefineComponent<ComponentProps['MCard'] & Action>
|
|
21
199
|
MText: DefineComponent<ComponentProps['MText']>
|
|
22
|
-
MButton: DefineComponent<ComponentProps['MButton'] & Action>
|
|
200
|
+
MButton: DefineComponent<ComponentProps['MButton'] & Action> & {
|
|
201
|
+
new (): {
|
|
202
|
+
$slots: { default?: () => unknown; leading?: () => unknown; trailing?: () => unknown }
|
|
203
|
+
}
|
|
204
|
+
}
|
|
23
205
|
MSlider: DefineComponent<ComponentProps['MSlider'] & Model>
|
|
24
|
-
|
|
206
|
+
MSwitch: DefineComponent<
|
|
207
|
+
ComponentProps['MSwitch'] & { 'onUpdate:modelValue'?: (value: boolean) => void }
|
|
208
|
+
>
|
|
209
|
+
MCheckbox: DefineComponent<
|
|
210
|
+
ComponentProps['MCheckbox'] & {
|
|
211
|
+
'onUpdate:modelValue'?: (value: boolean) => void
|
|
212
|
+
'onUpdate:indeterminate'?: (value: boolean) => void
|
|
213
|
+
}
|
|
214
|
+
>
|
|
215
|
+
MRadioGroup: DefineComponent<
|
|
216
|
+
ComponentProps['MRadioGroup'] & { 'onUpdate:modelValue'?: (value: ChoiceValue) => void }
|
|
217
|
+
>
|
|
218
|
+
MInput: DefineComponent<
|
|
219
|
+
ComponentProps['MInput'] & InputEvents & InputPlatformAttributes,
|
|
220
|
+
InputActionHandle
|
|
221
|
+
>
|
|
222
|
+
MSelect: DefineComponent<
|
|
223
|
+
ComponentProps['MSelect'] & { 'onUpdate:modelValue'?: (value: ChoiceValue) => void }
|
|
224
|
+
>
|
|
225
|
+
MTabs: DefineComponent<
|
|
226
|
+
ComponentProps['MTabs'] & { 'onUpdate:modelValue'?: (value: ChoiceValue) => void }
|
|
227
|
+
> & {
|
|
228
|
+
new (): { $slots: { default?: (props: TabPanelProps) => unknown } }
|
|
229
|
+
}
|
|
230
|
+
MListItem: DefineComponent<ComponentProps['MListItem'] & Action> & {
|
|
231
|
+
new (): { $slots: { leading?: () => unknown; trailing?: () => unknown } }
|
|
232
|
+
}
|
|
233
|
+
MSeparator: DefineComponent<ComponentProps['MSeparator']>
|
|
234
|
+
MAvatar: DefineComponent<ComponentProps['MAvatar']>
|
|
235
|
+
MBadge: DefineComponent<ComponentProps['MBadge']>
|
|
236
|
+
MSkeleton: DefineComponent<ComponentProps['MSkeleton']>
|
|
237
|
+
MChip: DefineComponent<
|
|
238
|
+
ComponentProps['MChip'] & {
|
|
239
|
+
'onUpdate:modelValue'?: (value: boolean) => void
|
|
240
|
+
onRemove?: () => void
|
|
241
|
+
}
|
|
242
|
+
>
|
|
243
|
+
MEmptyState: DefineComponent<ComponentProps['MEmptyState']> & {
|
|
244
|
+
new (): { $slots: { illustration?: () => unknown; actions?: () => unknown } }
|
|
245
|
+
}
|
|
246
|
+
MProgress: DefineComponent<ComponentProps['MProgress']>
|
|
247
|
+
MAccordion: DefineComponent<
|
|
248
|
+
ComponentProps['MAccordion'] & { 'onUpdate:modelValue'?: (value: ChoiceValue[]) => void }
|
|
249
|
+
> & {
|
|
250
|
+
new (): { $slots: { default?: (props: AccordionPanelProps) => unknown } }
|
|
251
|
+
}
|
|
252
|
+
MSegmentedControl: DefineComponent<
|
|
253
|
+
ComponentProps['MSegmentedControl'] & { 'onUpdate:modelValue'?: (value: ChoiceValue) => void }
|
|
254
|
+
>
|
|
255
|
+
|
|
256
|
+
MAlert: DefineComponent<ComponentProps['MAlert'] & { onClose?: () => void }> & {
|
|
257
|
+
new (): { $slots: { actions?: () => unknown } }
|
|
258
|
+
}
|
|
259
|
+
MToast: DefineComponent<ComponentProps['MToast']>
|
|
260
|
+
MDialog: DefineComponent<
|
|
261
|
+
ComponentProps['MDialog'] & {
|
|
262
|
+
'onUpdate:open'?: (value: boolean) => void
|
|
263
|
+
onConfirm?: () => void
|
|
264
|
+
onClose?: (reason: DialogCloseReason) => void
|
|
265
|
+
}
|
|
266
|
+
>
|
|
267
|
+
MIcon: DefineComponent<ComponentProps['MIcon']>
|
|
25
268
|
MReveal: DefineComponent<ComponentProps['MReveal']>
|
|
269
|
+
MSheet: DefineComponent<ComponentProps['MSheet'] & SheetEvents>
|
|
26
270
|
}
|
|
27
271
|
}
|