@nyuccl/smile 0.2.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +50 -0
- package/dist/module.d.mts +8 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +102 -0
- package/dist/runtime/components/builtins/AdvertisementView.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/AdvertisementView.vue +62 -0
- package/dist/runtime/components/builtins/AdvertisementView.vue.d.ts +3 -0
- package/dist/runtime/components/builtins/DebriefView.d.vue.ts +22 -0
- package/dist/runtime/components/builtins/DebriefView.vue +43 -0
- package/dist/runtime/components/builtins/DebriefView.vue.d.ts +22 -0
- package/dist/runtime/components/builtins/DemographicSurveyView.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/DemographicSurveyView.vue +1206 -0
- package/dist/runtime/components/builtins/DemographicSurveyView.vue.d.ts +3 -0
- package/dist/runtime/components/builtins/DeviceSurveyView.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/DeviceSurveyView.vue +452 -0
- package/dist/runtime/components/builtins/DeviceSurveyView.vue.d.ts +3 -0
- package/dist/runtime/components/builtins/ExpView.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/ExpView.vue +39 -0
- package/dist/runtime/components/builtins/ExpView.vue.d.ts +3 -0
- package/dist/runtime/components/builtins/ExperimentStatusBar.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/ExperimentStatusBar.vue +12 -0
- package/dist/runtime/components/builtins/ExperimentStatusBar.vue.d.ts +3 -0
- package/dist/runtime/components/builtins/FavoriteColor.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/FavoriteColor.vue +57 -0
- package/dist/runtime/components/builtins/FavoriteColor.vue.d.ts +3 -0
- package/dist/runtime/components/builtins/FavoriteNumber.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/FavoriteNumber.vue +57 -0
- package/dist/runtime/components/builtins/FavoriteNumber.vue.d.ts +3 -0
- package/dist/runtime/components/builtins/InformedConsentModal.d.vue.ts +28 -0
- package/dist/runtime/components/builtins/InformedConsentModal.vue +82 -0
- package/dist/runtime/components/builtins/InformedConsentModal.vue.d.ts +28 -0
- package/dist/runtime/components/builtins/InformedConsentView.d.vue.ts +13 -0
- package/dist/runtime/components/builtins/InformedConsentView.vue +127 -0
- package/dist/runtime/components/builtins/InformedConsentView.vue.d.ts +13 -0
- package/dist/runtime/components/builtins/InstructionsQuiz.d.vue.ts +36 -0
- package/dist/runtime/components/builtins/InstructionsQuiz.vue +274 -0
- package/dist/runtime/components/builtins/InstructionsQuiz.vue.d.ts +36 -0
- package/dist/runtime/components/builtins/InstructionsView.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/InstructionsView.vue +58 -0
- package/dist/runtime/components/builtins/InstructionsView.vue.d.ts +3 -0
- package/dist/runtime/components/builtins/MTurkRecruitView.d.vue.ts +21 -0
- package/dist/runtime/components/builtins/MTurkRecruitView.vue +137 -0
- package/dist/runtime/components/builtins/MTurkRecruitView.vue.d.ts +21 -0
- package/dist/runtime/components/builtins/PresentationModeView.d.vue.ts +93 -0
- package/dist/runtime/components/builtins/PresentationModeView.vue +254 -0
- package/dist/runtime/components/builtins/PresentationModeView.vue.d.ts +93 -0
- package/dist/runtime/components/builtins/StatusBar.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/StatusBar.vue +128 -0
- package/dist/runtime/components/builtins/StatusBar.vue.d.ts +3 -0
- package/dist/runtime/components/builtins/StudyPreviewText.d.vue.ts +21 -0
- package/dist/runtime/components/builtins/StudyPreviewText.vue +102 -0
- package/dist/runtime/components/builtins/StudyPreviewText.vue.d.ts +21 -0
- package/dist/runtime/components/builtins/TaskFeedbackSurveyView.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/TaskFeedbackSurveyView.vue +203 -0
- package/dist/runtime/components/builtins/TaskFeedbackSurveyView.vue.d.ts +3 -0
- package/dist/runtime/components/builtins/ThanksView.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/ThanksView.vue +451 -0
- package/dist/runtime/components/builtins/ThanksView.vue.d.ts +3 -0
- package/dist/runtime/components/builtins/WindowSizerView.d.vue.ts +7 -0
- package/dist/runtime/components/builtins/WindowSizerView.vue +94 -0
- package/dist/runtime/components/builtins/WindowSizerView.vue.d.ts +7 -0
- package/dist/runtime/components/builtins/WithdrawModal.d.vue.ts +56 -0
- package/dist/runtime/components/builtins/WithdrawModal.vue +208 -0
- package/dist/runtime/components/builtins/WithdrawModal.vue.d.ts +56 -0
- package/dist/runtime/components/builtins/WithdrawView.d.vue.ts +3 -0
- package/dist/runtime/components/builtins/WithdrawView.vue +99 -0
- package/dist/runtime/components/builtins/WithdrawView.vue.d.ts +3 -0
- package/dist/runtime/components/dev/RecruitmentChooserView.d.vue.ts +3 -0
- package/dist/runtime/components/dev/RecruitmentChooserView.vue +258 -0
- package/dist/runtime/components/dev/RecruitmentChooserView.vue.d.ts +3 -0
- package/dist/runtime/components/dev/ResponsiveDeviceContainer.d.vue.ts +12 -0
- package/dist/runtime/components/dev/ResponsiveDeviceContainer.vue +215 -0
- package/dist/runtime/components/dev/ResponsiveDeviceContainer.vue.d.ts +12 -0
- package/dist/runtime/components/dev/console/ConfigList.d.vue.ts +26 -0
- package/dist/runtime/components/dev/console/ConfigList.vue +106 -0
- package/dist/runtime/components/dev/console/ConfigList.vue.d.ts +26 -0
- package/dist/runtime/components/dev/console/ConsoleConfigPanel.d.vue.ts +3 -0
- package/dist/runtime/components/dev/console/ConsoleConfigPanel.vue +135 -0
- package/dist/runtime/components/dev/console/ConsoleConfigPanel.vue.d.ts +3 -0
- package/dist/runtime/components/dev/console/ConsoleDatabaseBrowsePanel.d.vue.ts +3 -0
- package/dist/runtime/components/dev/console/ConsoleDatabaseBrowsePanel.vue +124 -0
- package/dist/runtime/components/dev/console/ConsoleDatabaseBrowsePanel.vue.d.ts +3 -0
- package/dist/runtime/components/dev/console/ConsoleLogPanel.d.vue.ts +3 -0
- package/dist/runtime/components/dev/console/ConsoleLogPanel.vue +227 -0
- package/dist/runtime/components/dev/console/ConsoleLogPanel.vue.d.ts +3 -0
- package/dist/runtime/components/dev/console/DatabaseList.d.vue.ts +26 -0
- package/dist/runtime/components/dev/console/DatabaseList.vue +110 -0
- package/dist/runtime/components/dev/console/DatabaseList.vue.d.ts +26 -0
- package/dist/runtime/components/dev/console/SmileDevConsole.d.vue.ts +3 -0
- package/dist/runtime/components/dev/console/SmileDevConsole.vue +117 -0
- package/dist/runtime/components/dev/console/SmileDevConsole.vue.d.ts +3 -0
- package/dist/runtime/components/dev/devicePresets.d.ts +91 -0
- package/dist/runtime/components/dev/devicePresets.js +40 -0
- package/dist/runtime/components/dev/menu/DevConfigPanel.d.vue.ts +3 -0
- package/dist/runtime/components/dev/menu/DevConfigPanel.vue +178 -0
- package/dist/runtime/components/dev/menu/DevConfigPanel.vue.d.ts +3 -0
- package/dist/runtime/components/dev/menu/ResponsiveDeviceSelect.d.vue.ts +3 -0
- package/dist/runtime/components/dev/menu/ResponsiveDeviceSelect.vue +108 -0
- package/dist/runtime/components/dev/menu/ResponsiveDeviceSelect.vue.d.ts +3 -0
- package/dist/runtime/components/dev/menu/SmileDevAppMenu.d.vue.ts +62 -0
- package/dist/runtime/components/dev/menu/SmileDevAppMenu.vue +184 -0
- package/dist/runtime/components/dev/menu/SmileDevAppMenu.vue.d.ts +62 -0
- package/dist/runtime/components/dev/navbar/CircleProgress.d.vue.ts +15 -0
- package/dist/runtime/components/dev/navbar/CircleProgress.vue +26 -0
- package/dist/runtime/components/dev/navbar/CircleProgress.vue.d.ts +15 -0
- package/dist/runtime/components/dev/navbar/ColorModeButton.d.vue.ts +3 -0
- package/dist/runtime/components/dev/navbar/ColorModeButton.vue +33 -0
- package/dist/runtime/components/dev/navbar/ColorModeButton.vue.d.ts +3 -0
- package/dist/runtime/components/dev/navbar/DatabaseButtonGroup.d.vue.ts +3 -0
- package/dist/runtime/components/dev/navbar/DatabaseButtonGroup.vue +86 -0
- package/dist/runtime/components/dev/navbar/DatabaseButtonGroup.vue.d.ts +3 -0
- package/dist/runtime/components/dev/navbar/FullScreenButton.d.vue.ts +3 -0
- package/dist/runtime/components/dev/navbar/FullScreenButton.vue +35 -0
- package/dist/runtime/components/dev/navbar/FullScreenButton.vue.d.ts +3 -0
- package/dist/runtime/components/dev/navbar/KeyCommandNotification.d.vue.ts +41 -0
- package/dist/runtime/components/dev/navbar/KeyCommandNotification.vue +58 -0
- package/dist/runtime/components/dev/navbar/KeyCommandNotification.vue.d.ts +41 -0
- package/dist/runtime/components/dev/navbar/ReloadButton.d.vue.ts +3 -0
- package/dist/runtime/components/dev/navbar/ReloadButton.vue +23 -0
- package/dist/runtime/components/dev/navbar/ReloadButton.vue.d.ts +3 -0
- package/dist/runtime/components/dev/navbar/ResetButton.d.vue.ts +3 -0
- package/dist/runtime/components/dev/navbar/ResetButton.vue +23 -0
- package/dist/runtime/components/dev/navbar/ResetButton.vue.d.ts +3 -0
- package/dist/runtime/components/dev/navbar/RouteJumper.d.vue.ts +7 -0
- package/dist/runtime/components/dev/navbar/RouteJumper.vue +90 -0
- package/dist/runtime/components/dev/navbar/RouteJumper.vue.d.ts +7 -0
- package/dist/runtime/components/dev/navbar/SmileDevNavBar.d.vue.ts +3 -0
- package/dist/runtime/components/dev/navbar/SmileDevNavBar.vue +248 -0
- package/dist/runtime/components/dev/navbar/SmileDevNavBar.vue.d.ts +3 -0
- package/dist/runtime/components/dev/navbar/StepInfoButtonGroup.d.vue.ts +3 -0
- package/dist/runtime/components/dev/navbar/StepInfoButtonGroup.vue +63 -0
- package/dist/runtime/components/dev/navbar/StepInfoButtonGroup.vue.d.ts +3 -0
- package/dist/runtime/components/dev/navbar/ViewButton.d.vue.ts +3 -0
- package/dist/runtime/components/dev/navbar/ViewButton.vue +159 -0
- package/dist/runtime/components/dev/navbar/ViewButton.vue.d.ts +3 -0
- package/dist/runtime/components/dev/navbar/ViewInfoButtonGroup.d.vue.ts +3 -0
- package/dist/runtime/components/dev/navbar/ViewInfoButtonGroup.vue +147 -0
- package/dist/runtime/components/dev/navbar/ViewInfoButtonGroup.vue.d.ts +3 -0
- package/dist/runtime/components/dev/presentation/DarkModeButton.d.vue.ts +3 -0
- package/dist/runtime/components/dev/presentation/DarkModeButton.vue +43 -0
- package/dist/runtime/components/dev/presentation/DarkModeButton.vue.d.ts +3 -0
- package/dist/runtime/components/dev/presentation/LogoutButton.d.vue.ts +3 -0
- package/dist/runtime/components/dev/presentation/LogoutButton.vue +38 -0
- package/dist/runtime/components/dev/presentation/LogoutButton.vue.d.ts +3 -0
- package/dist/runtime/components/dev/presentation/PresentationModeResetButton.d.vue.ts +7 -0
- package/dist/runtime/components/dev/presentation/PresentationModeResetButton.vue +25 -0
- package/dist/runtime/components/dev/presentation/PresentationModeResetButton.vue.d.ts +7 -0
- package/dist/runtime/components/dev/presentation/PresentationNavBar.d.vue.ts +3 -0
- package/dist/runtime/components/dev/presentation/PresentationNavBar.vue +70 -0
- package/dist/runtime/components/dev/presentation/PresentationNavBar.vue.d.ts +3 -0
- package/dist/runtime/components/dev/presentation/QRCodeButton.d.vue.ts +3 -0
- package/dist/runtime/components/dev/presentation/QRCodeButton.vue +66 -0
- package/dist/runtime/components/dev/presentation/QRCodeButton.vue.d.ts +3 -0
- package/dist/runtime/components/dev/sidebar/AppProgressPanel.d.vue.ts +3 -0
- package/dist/runtime/components/dev/sidebar/AppProgressPanel.vue +125 -0
- package/dist/runtime/components/dev/sidebar/AppProgressPanel.vue.d.ts +3 -0
- package/dist/runtime/components/dev/sidebar/ConfigurationVariablesPanel.d.vue.ts +3 -0
- package/dist/runtime/components/dev/sidebar/ConfigurationVariablesPanel.vue +219 -0
- package/dist/runtime/components/dev/sidebar/ConfigurationVariablesPanel.vue.d.ts +3 -0
- package/dist/runtime/components/dev/sidebar/DatabaseStatusInfoPanel.d.vue.ts +3 -0
- package/dist/runtime/components/dev/sidebar/DatabaseStatusInfoPanel.vue +117 -0
- package/dist/runtime/components/dev/sidebar/DatabaseStatusInfoPanel.vue.d.ts +3 -0
- package/dist/runtime/components/dev/sidebar/RandomizationSidebarPanel.d.vue.ts +3 -0
- package/dist/runtime/components/dev/sidebar/RandomizationSidebarPanel.vue +151 -0
- package/dist/runtime/components/dev/sidebar/RandomizationSidebarPanel.vue.d.ts +3 -0
- package/dist/runtime/components/dev/sidebar/SmileDevSideBar.d.vue.ts +3 -0
- package/dist/runtime/components/dev/sidebar/SmileDevSideBar.vue +70 -0
- package/dist/runtime/components/dev/sidebar/SmileDevSideBar.vue.d.ts +3 -0
- package/dist/runtime/components/dev/sidebar/StepDataViewer.d.vue.ts +22 -0
- package/dist/runtime/components/dev/sidebar/StepDataViewer.vue +82 -0
- package/dist/runtime/components/dev/sidebar/StepDataViewer.vue.d.ts +22 -0
- package/dist/runtime/components/dev/sidebar/StepExplorerPanel.d.vue.ts +3 -0
- package/dist/runtime/components/dev/sidebar/StepExplorerPanel.vue +318 -0
- package/dist/runtime/components/dev/sidebar/StepExplorerPanel.vue.d.ts +3 -0
- package/dist/runtime/components/dev/sidebar/StepNode.d.vue.ts +84 -0
- package/dist/runtime/components/dev/sidebar/StepNode.vue +95 -0
- package/dist/runtime/components/dev/sidebar/StepNode.vue.d.ts +84 -0
- package/dist/runtime/components/dev/sidebar/StudyInfoPanel.d.vue.ts +3 -0
- package/dist/runtime/components/dev/sidebar/StudyInfoPanel.vue +17 -0
- package/dist/runtime/components/dev/sidebar/StudyInfoPanel.vue.d.ts +3 -0
- package/dist/runtime/components/forms/MonthYearDayPicker.d.vue.ts +240 -0
- package/dist/runtime/components/forms/MonthYearDayPicker.vue +191 -0
- package/dist/runtime/components/forms/MonthYearDayPicker.vue.d.ts +240 -0
- package/dist/runtime/components/layouts/CenteredContent.d.vue.ts +22 -0
- package/dist/runtime/components/layouts/CenteredContent.vue +14 -0
- package/dist/runtime/components/layouts/CenteredContent.vue.d.ts +22 -0
- package/dist/runtime/components/layouts/ConstrainedPage.d.vue.ts +55 -0
- package/dist/runtime/components/layouts/ConstrainedPage.vue +56 -0
- package/dist/runtime/components/layouts/ConstrainedPage.vue.d.ts +55 -0
- package/dist/runtime/components/layouts/ConstrainedTaskWindow.d.vue.ts +66 -0
- package/dist/runtime/components/layouts/ConstrainedTaskWindow.vue +73 -0
- package/dist/runtime/components/layouts/ConstrainedTaskWindow.vue.d.ts +66 -0
- package/dist/runtime/components/layouts/TitleTwoCol.d.vue.ts +61 -0
- package/dist/runtime/components/layouts/TitleTwoCol.vue +54 -0
- package/dist/runtime/components/layouts/TitleTwoCol.vue.d.ts +61 -0
- package/dist/runtime/components/layouts/TwoCol.d.vue.ts +59 -0
- package/dist/runtime/components/layouts/TwoCol.vue +51 -0
- package/dist/runtime/components/layouts/TwoCol.vue.d.ts +59 -0
- package/dist/runtime/components/layouts/index.d.ts +1 -0
- package/dist/runtime/components/layouts/index.js +5 -0
- package/dist/runtime/components/layouts/layoutUtils.d.ts +1 -0
- package/dist/runtime/components/layouts/layoutUtils.js +27 -0
- package/dist/runtime/components/ui/avatar/Avatar.d.vue.ts +20 -0
- package/dist/runtime/components/ui/avatar/Avatar.vue +15 -0
- package/dist/runtime/components/ui/avatar/Avatar.vue.d.ts +20 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.d.vue.ts +46 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.vue +21 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.vue.d.ts +46 -0
- package/dist/runtime/components/ui/avatar/AvatarImage.d.vue.ts +54 -0
- package/dist/runtime/components/ui/avatar/AvatarImage.vue +20 -0
- package/dist/runtime/components/ui/avatar/AvatarImage.vue.d.ts +54 -0
- package/dist/runtime/components/ui/avatar/index.d.ts +1 -0
- package/dist/runtime/components/ui/avatar/index.js +3 -0
- package/dist/runtime/components/ui/badge/Badge.d.vue.ts +46 -0
- package/dist/runtime/components/ui/badge/Badge.vue +22 -0
- package/dist/runtime/components/ui/badge/Badge.vue.d.ts +46 -0
- package/dist/runtime/components/ui/badge/index.d.ts +4 -0
- package/dist/runtime/components/ui/badge/index.js +21 -0
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.d.vue.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.vue +15 -0
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.vue.d.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.d.vue.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.d.vue.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue +14 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.d.vue.ts +41 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue +19 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +41 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.d.vue.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue +14 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.d.vue.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue +17 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.d.vue.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +19 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +20 -0
- package/dist/runtime/components/ui/breadcrumb/index.d.ts +1 -0
- package/dist/runtime/components/ui/breadcrumb/index.js +7 -0
- package/dist/runtime/components/ui/button/Button.d.vue.ts +57 -0
- package/dist/runtime/components/ui/button/Button.vue +22 -0
- package/dist/runtime/components/ui/button/Button.vue.d.ts +57 -0
- package/dist/runtime/components/ui/button/index.d.ts +5 -0
- package/dist/runtime/components/ui/button/index.js +60 -0
- package/dist/runtime/components/ui/button-group/ButtonGroup.d.vue.ts +85 -0
- package/dist/runtime/components/ui/button-group/ButtonGroup.vue +33 -0
- package/dist/runtime/components/ui/button-group/ButtonGroup.vue.d.ts +85 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupItem.d.vue.ts +66 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupItem.vue +38 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupItem.vue.d.ts +66 -0
- package/dist/runtime/components/ui/button-group/index.d.ts +1 -0
- package/dist/runtime/components/ui/button-group/index.js +2 -0
- package/dist/runtime/components/ui/calendar/Calendar.d.vue.ts +237 -0
- package/dist/runtime/components/ui/calendar/Calendar.vue +103 -0
- package/dist/runtime/components/ui/calendar/Calendar.vue.d.ts +237 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.d.vue.ts +46 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.vue +27 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.vue.d.ts +46 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.d.vue.ts +57 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue +39 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue.d.ts +57 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.d.vue.ts +38 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue +21 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue.d.ts +38 -0
- package/dist/runtime/components/ui/calendar/CalendarGridBody.d.vue.ts +30 -0
- package/dist/runtime/components/ui/calendar/CalendarGridBody.vue +16 -0
- package/dist/runtime/components/ui/calendar/CalendarGridBody.vue.d.ts +30 -0
- package/dist/runtime/components/ui/calendar/CalendarGridHead.d.vue.ts +38 -0
- package/dist/runtime/components/ui/calendar/CalendarGridHead.vue +17 -0
- package/dist/runtime/components/ui/calendar/CalendarGridHead.vue.d.ts +38 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.d.vue.ts +38 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue +21 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue.d.ts +38 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.d.vue.ts +38 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue +21 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue.d.ts +38 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.d.vue.ts +38 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue +21 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue.d.ts +38 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.d.vue.ts +35 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue +25 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue.d.ts +35 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.d.vue.ts +46 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue +33 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue.d.ts +46 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.d.vue.ts +46 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue +33 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue.d.ts +46 -0
- package/dist/runtime/components/ui/calendar/index.d.ts +12 -0
- package/dist/runtime/components/ui/calendar/index.js +12 -0
- package/dist/runtime/components/ui/card/Card.d.vue.ts +20 -0
- package/dist/runtime/components/ui/card/Card.vue +14 -0
- package/dist/runtime/components/ui/card/Card.vue.d.ts +20 -0
- package/dist/runtime/components/ui/card/CardAction.d.vue.ts +20 -0
- package/dist/runtime/components/ui/card/CardAction.vue +14 -0
- package/dist/runtime/components/ui/card/CardAction.vue.d.ts +20 -0
- package/dist/runtime/components/ui/card/CardContent.d.vue.ts +20 -0
- package/dist/runtime/components/ui/card/CardContent.vue +14 -0
- package/dist/runtime/components/ui/card/CardContent.vue.d.ts +20 -0
- package/dist/runtime/components/ui/card/CardDescription.d.vue.ts +20 -0
- package/dist/runtime/components/ui/card/CardDescription.vue +14 -0
- package/dist/runtime/components/ui/card/CardDescription.vue.d.ts +20 -0
- package/dist/runtime/components/ui/card/CardFooter.d.vue.ts +20 -0
- package/dist/runtime/components/ui/card/CardFooter.vue +14 -0
- package/dist/runtime/components/ui/card/CardFooter.vue.d.ts +20 -0
- package/dist/runtime/components/ui/card/CardHeader.d.vue.ts +20 -0
- package/dist/runtime/components/ui/card/CardHeader.vue +19 -0
- package/dist/runtime/components/ui/card/CardHeader.vue.d.ts +20 -0
- package/dist/runtime/components/ui/card/CardTitle.d.vue.ts +20 -0
- package/dist/runtime/components/ui/card/CardTitle.vue +14 -0
- package/dist/runtime/components/ui/card/CardTitle.vue.d.ts +20 -0
- package/dist/runtime/components/ui/card/index.d.ts +1 -0
- package/dist/runtime/components/ui/card/index.js +7 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.d.vue.ts +122 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue +51 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +122 -0
- package/dist/runtime/components/ui/checkbox/index.d.ts +5 -0
- package/dist/runtime/components/ui/checkbox/index.js +35 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.d.vue.ts +52 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue +20 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +52 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.d.vue.ts +69 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +36 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +69 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +195 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue +46 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +195 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.d.vue.ts +30 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue +16 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +30 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +75 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +32 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +75 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.d.vue.ts +47 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue +23 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +47 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.d.vue.ts +42 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +19 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +42 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.d.vue.ts +67 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +36 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +67 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.d.vue.ts +31 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +31 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.d.vue.ts +20 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue +14 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +20 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.d.vue.ts +35 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +35 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.d.vue.ts +180 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue +50 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +180 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.d.vue.ts +64 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +64 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.d.vue.ts +39 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +39 -0
- package/dist/runtime/components/ui/dropdown-menu/index.d.ts +1 -0
- package/dist/runtime/components/ui/dropdown-menu/index.js +16 -0
- package/dist/runtime/components/ui/input/Input.d.vue.ts +33 -0
- package/dist/runtime/components/ui/input/Input.vue +28 -0
- package/dist/runtime/components/ui/input/Input.vue.d.ts +33 -0
- package/dist/runtime/components/ui/input/index.d.ts +1 -0
- package/dist/runtime/components/ui/input/index.js +1 -0
- package/dist/runtime/components/ui/label/Label.d.vue.ts +46 -0
- package/dist/runtime/components/ui/label/Label.vue +26 -0
- package/dist/runtime/components/ui/label/Label.vue.d.ts +46 -0
- package/dist/runtime/components/ui/label/index.d.ts +1 -0
- package/dist/runtime/components/ui/label/index.js +1 -0
- package/dist/runtime/components/ui/multiselect/MultiSelect.d.vue.ts +80 -0
- package/dist/runtime/components/ui/multiselect/MultiSelect.vue +98 -0
- package/dist/runtime/components/ui/multiselect/MultiSelect.vue.d.ts +80 -0
- package/dist/runtime/components/ui/multiselect/index.d.ts +1 -0
- package/dist/runtime/components/ui/multiselect/index.js +1 -0
- package/dist/runtime/components/ui/pagination/Pagination.d.vue.ts +103 -0
- package/dist/runtime/components/ui/pagination/Pagination.vue +30 -0
- package/dist/runtime/components/ui/pagination/Pagination.vue.d.ts +103 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.d.vue.ts +45 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.vue +21 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.vue.d.ts +45 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.d.vue.ts +38 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue +24 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue.d.ts +38 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.d.vue.ts +49 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue +27 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue.d.ts +49 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.d.vue.ts +66 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.vue +32 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.vue.d.ts +66 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.d.vue.ts +49 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.vue +27 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.vue.d.ts +49 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.d.vue.ts +49 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.vue +27 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.vue.d.ts +49 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.d.vue.ts +49 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue +27 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue.d.ts +49 -0
- package/dist/runtime/components/ui/pagination/index.d.ts +1 -0
- package/dist/runtime/components/ui/pagination/index.js +8 -0
- package/dist/runtime/components/ui/popover/Popover.d.vue.ts +44 -0
- package/dist/runtime/components/ui/popover/Popover.vue +19 -0
- package/dist/runtime/components/ui/popover/Popover.vue.d.ts +44 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.d.vue.ts +38 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue +17 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue.d.ts +38 -0
- package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +200 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue +56 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +200 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.d.vue.ts +30 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue +16 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue.d.ts +30 -0
- package/dist/runtime/components/ui/popover/index.d.ts +1 -0
- package/dist/runtime/components/ui/popover/index.js +4 -0
- package/dist/runtime/components/ui/progress/Progress.d.vue.ts +66 -0
- package/dist/runtime/components/ui/progress/Progress.vue +28 -0
- package/dist/runtime/components/ui/progress/Progress.vue.d.ts +66 -0
- package/dist/runtime/components/ui/progress/index.d.ts +1 -0
- package/dist/runtime/components/ui/progress/index.js +1 -0
- package/dist/runtime/components/ui/resizable/ResizableHandle.d.vue.ts +77 -0
- package/dist/runtime/components/ui/resizable/ResizableHandle.vue +37 -0
- package/dist/runtime/components/ui/resizable/ResizableHandle.vue.d.ts +77 -0
- package/dist/runtime/components/ui/resizable/ResizablePanel.d.vue.ts +101 -0
- package/dist/runtime/components/ui/resizable/ResizablePanel.vue +50 -0
- package/dist/runtime/components/ui/resizable/ResizablePanel.vue.d.ts +101 -0
- package/dist/runtime/components/ui/resizable/ResizablePanelGroup.d.vue.ts +82 -0
- package/dist/runtime/components/ui/resizable/ResizablePanelGroup.vue +27 -0
- package/dist/runtime/components/ui/resizable/ResizablePanelGroup.vue.d.ts +82 -0
- package/dist/runtime/components/ui/resizable/index.d.ts +1 -0
- package/dist/runtime/components/ui/resizable/index.js +3 -0
- package/dist/runtime/components/ui/select/Select.d.vue.ts +112 -0
- package/dist/runtime/components/ui/select/Select.vue +27 -0
- package/dist/runtime/components/ui/select/Select.vue.d.ts +112 -0
- package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +199 -0
- package/dist/runtime/components/ui/select/SelectContent.vue +65 -0
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +199 -0
- package/dist/runtime/components/ui/select/SelectGroup.d.vue.ts +30 -0
- package/dist/runtime/components/ui/select/SelectGroup.vue +16 -0
- package/dist/runtime/components/ui/select/SelectGroup.vue.d.ts +30 -0
- package/dist/runtime/components/ui/select/SelectItem.d.vue.ts +63 -0
- package/dist/runtime/components/ui/select/SelectItem.vue +38 -0
- package/dist/runtime/components/ui/select/SelectItem.vue.d.ts +63 -0
- package/dist/runtime/components/ui/select/SelectItemText.d.vue.ts +30 -0
- package/dist/runtime/components/ui/select/SelectItemText.vue +16 -0
- package/dist/runtime/components/ui/select/SelectItemText.vue.d.ts +30 -0
- package/dist/runtime/components/ui/select/SelectLabel.d.vue.ts +46 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue +18 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue.d.ts +46 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.d.vue.ts +38 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue +24 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue.d.ts +38 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.d.vue.ts +38 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +24 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue.d.ts +38 -0
- package/dist/runtime/components/ui/select/SelectSeparator.d.vue.ts +31 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue +18 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue.d.ts +31 -0
- package/dist/runtime/components/ui/select/SelectTrigger.d.vue.ts +66 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue +34 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue.d.ts +66 -0
- package/dist/runtime/components/ui/select/SelectValue.d.vue.ts +38 -0
- package/dist/runtime/components/ui/select/SelectValue.vue +17 -0
- package/dist/runtime/components/ui/select/SelectValue.vue.d.ts +38 -0
- package/dist/runtime/components/ui/select/index.d.ts +11 -0
- package/dist/runtime/components/ui/select/index.js +11 -0
- package/dist/runtime/components/ui/separator/Separator.d.vue.ts +53 -0
- package/dist/runtime/components/ui/separator/Separator.vue +25 -0
- package/dist/runtime/components/ui/separator/Separator.vue.d.ts +53 -0
- package/dist/runtime/components/ui/separator/index.d.ts +1 -0
- package/dist/runtime/components/ui/separator/index.js +1 -0
- package/dist/runtime/components/ui/sheet/Sheet.d.vue.ts +44 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue +19 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue.d.ts +44 -0
- package/dist/runtime/components/ui/sheet/SheetClose.d.vue.ts +30 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue +16 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +90 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue +61 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +90 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.d.vue.ts +38 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue +20 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue.d.ts +38 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue +14 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue +14 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.d.vue.ts +47 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue +26 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue.d.ts +47 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.d.vue.ts +38 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue +20 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue.d.ts +38 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.d.vue.ts +30 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue +16 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sheet/index.d.ts +1 -0
- package/dist/runtime/components/ui/sheet/index.js +8 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.d.vue.ts +58 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue +97 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue.d.ts +58 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue +15 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue +15 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.d.vue.ts +38 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue +27 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue.d.ts +38 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue +15 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.d.vue.ts +38 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +38 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue +15 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue +15 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue +15 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.d.vue.ts +50 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue +33 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue.d.ts +50 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue +25 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.d.vue.ts +82 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue +49 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue.d.ts +82 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.d.vue.ts +72 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue +27 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +72 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue +15 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.d.vue.ts +23 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +23 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue +21 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.d.vue.ts +61 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue +33 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +61 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue +15 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.d.vue.ts +47 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue +67 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue.d.ts +47 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue +31 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.d.vue.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue +15 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue.d.ts +20 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.d.vue.ts +13 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue +22 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue.d.ts +13 -0
- package/dist/runtime/components/ui/sidebar/index.d.ts +28 -0
- package/dist/runtime/components/ui/sidebar/index.js +49 -0
- package/dist/runtime/components/ui/sidebar/utils.d.ts +8 -0
- package/dist/runtime/components/ui/sidebar/utils.js +10 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.d.vue.ts +13 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.vue +12 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.vue.d.ts +13 -0
- package/dist/runtime/components/ui/skeleton/index.d.ts +1 -0
- package/dist/runtime/components/ui/skeleton/index.js +1 -0
- package/dist/runtime/components/ui/sonner/Sonner.d.vue.ts +162 -0
- package/dist/runtime/components/ui/sonner/Sonner.vue +36 -0
- package/dist/runtime/components/ui/sonner/Sonner.vue.d.ts +162 -0
- package/dist/runtime/components/ui/sonner/index.d.ts +1 -0
- package/dist/runtime/components/ui/sonner/index.js +1 -0
- package/dist/runtime/components/ui/stepper/Stepper.d.vue.ts +95 -0
- package/dist/runtime/components/ui/stepper/Stepper.vue +27 -0
- package/dist/runtime/components/ui/stepper/Stepper.vue.d.ts +95 -0
- package/dist/runtime/components/ui/stepper/StepperDescription.d.vue.ts +38 -0
- package/dist/runtime/components/ui/stepper/StepperDescription.vue +21 -0
- package/dist/runtime/components/ui/stepper/StepperDescription.vue.d.ts +38 -0
- package/dist/runtime/components/ui/stepper/StepperIndicator.d.vue.ts +38 -0
- package/dist/runtime/components/ui/stepper/StepperIndicator.vue +31 -0
- package/dist/runtime/components/ui/stepper/StepperIndicator.vue.d.ts +38 -0
- package/dist/runtime/components/ui/stepper/StepperItem.d.vue.ts +78 -0
- package/dist/runtime/components/ui/stepper/StepperItem.vue +42 -0
- package/dist/runtime/components/ui/stepper/StepperItem.vue.d.ts +78 -0
- package/dist/runtime/components/ui/stepper/StepperSeparator.d.vue.ts +48 -0
- package/dist/runtime/components/ui/stepper/StepperSeparator.vue +29 -0
- package/dist/runtime/components/ui/stepper/StepperSeparator.vue.d.ts +48 -0
- package/dist/runtime/components/ui/stepper/StepperTitle.d.vue.ts +38 -0
- package/dist/runtime/components/ui/stepper/StepperTitle.vue +20 -0
- package/dist/runtime/components/ui/stepper/StepperTitle.vue.d.ts +38 -0
- package/dist/runtime/components/ui/stepper/StepperTrigger.d.vue.ts +48 -0
- package/dist/runtime/components/ui/stepper/StepperTrigger.vue +37 -0
- package/dist/runtime/components/ui/stepper/StepperTrigger.vue.d.ts +48 -0
- package/dist/runtime/components/ui/stepper/index.d.ts +1 -0
- package/dist/runtime/components/ui/stepper/index.js +7 -0
- package/dist/runtime/components/ui/switch/Switch.d.vue.ts +123 -0
- package/dist/runtime/components/ui/switch/Switch.vue +69 -0
- package/dist/runtime/components/ui/switch/Switch.vue.d.ts +123 -0
- package/dist/runtime/components/ui/switch/index.d.ts +5 -0
- package/dist/runtime/components/ui/switch/index.js +33 -0
- package/dist/runtime/components/ui/table/Table.d.vue.ts +20 -0
- package/dist/runtime/components/ui/table/Table.vue +19 -0
- package/dist/runtime/components/ui/table/Table.vue.d.ts +20 -0
- package/dist/runtime/components/ui/table/TableBody.d.vue.ts +20 -0
- package/dist/runtime/components/ui/table/TableBody.vue +14 -0
- package/dist/runtime/components/ui/table/TableBody.vue.d.ts +20 -0
- package/dist/runtime/components/ui/table/TableCaption.d.vue.ts +20 -0
- package/dist/runtime/components/ui/table/TableCaption.vue +14 -0
- package/dist/runtime/components/ui/table/TableCaption.vue.d.ts +20 -0
- package/dist/runtime/components/ui/table/TableCell.d.vue.ts +20 -0
- package/dist/runtime/components/ui/table/TableCell.vue +19 -0
- package/dist/runtime/components/ui/table/TableCell.vue.d.ts +20 -0
- package/dist/runtime/components/ui/table/TableEmpty.d.vue.ts +32 -0
- package/dist/runtime/components/ui/table/TableEmpty.vue +23 -0
- package/dist/runtime/components/ui/table/TableEmpty.vue.d.ts +32 -0
- package/dist/runtime/components/ui/table/TableFooter.d.vue.ts +20 -0
- package/dist/runtime/components/ui/table/TableFooter.vue +14 -0
- package/dist/runtime/components/ui/table/TableFooter.vue.d.ts +20 -0
- package/dist/runtime/components/ui/table/TableHead.d.vue.ts +20 -0
- package/dist/runtime/components/ui/table/TableHead.vue +19 -0
- package/dist/runtime/components/ui/table/TableHead.vue.d.ts +20 -0
- package/dist/runtime/components/ui/table/TableHeader.d.vue.ts +20 -0
- package/dist/runtime/components/ui/table/TableHeader.vue +14 -0
- package/dist/runtime/components/ui/table/TableHeader.vue.d.ts +20 -0
- package/dist/runtime/components/ui/table/TableRow.d.vue.ts +20 -0
- package/dist/runtime/components/ui/table/TableRow.vue +14 -0
- package/dist/runtime/components/ui/table/TableRow.vue.d.ts +20 -0
- package/dist/runtime/components/ui/table/index.d.ts +1 -0
- package/dist/runtime/components/ui/table/index.js +9 -0
- package/dist/runtime/components/ui/table/utils.d.ts +1 -0
- package/dist/runtime/components/ui/table/utils.js +3 -0
- package/dist/runtime/components/ui/tabs/Tabs.d.vue.ts +91 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue +28 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue.d.ts +91 -0
- package/dist/runtime/components/ui/tabs/TabsContent.d.vue.ts +55 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue +22 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +55 -0
- package/dist/runtime/components/ui/tabs/TabsList.d.vue.ts +47 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue +26 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue.d.ts +47 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.d.vue.ts +55 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue +28 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +55 -0
- package/dist/runtime/components/ui/tabs/index.d.ts +1 -0
- package/dist/runtime/components/ui/tabs/index.js +4 -0
- package/dist/runtime/components/ui/tags-input/TagsInput.d.vue.ts +174 -0
- package/dist/runtime/components/ui/tags-input/TagsInput.vue +41 -0
- package/dist/runtime/components/ui/tags-input/TagsInput.vue.d.ts +174 -0
- package/dist/runtime/components/ui/tags-input/TagsInputInput.d.vue.ts +56 -0
- package/dist/runtime/components/ui/tags-input/TagsInputInput.vue +21 -0
- package/dist/runtime/components/ui/tags-input/TagsInputInput.vue.d.ts +56 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItem.d.vue.ts +55 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItem.vue +27 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItem.vue.d.ts +55 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemDelete.d.vue.ts +38 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemDelete.vue +23 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemDelete.vue.d.ts +38 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemText.d.vue.ts +31 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemText.vue +18 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemText.vue.d.ts +31 -0
- package/dist/runtime/components/ui/tags-input/index.d.ts +1 -0
- package/dist/runtime/components/ui/tags-input/index.js +5 -0
- package/dist/runtime/components/ui/textarea/Textarea.d.vue.ts +33 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue +26 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue.d.ts +33 -0
- package/dist/runtime/components/ui/textarea/index.d.ts +1 -0
- package/dist/runtime/components/ui/textarea/index.js +1 -0
- package/dist/runtime/components/ui/toggle/Toggle.d.vue.ts +114 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue +31 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +114 -0
- package/dist/runtime/components/ui/toggle/index.d.ts +5 -0
- package/dist/runtime/components/ui/toggle/index.js +24 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.d.vue.ts +144 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue +42 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue.d.ts +144 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.d.vue.ts +76 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue +40 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +76 -0
- package/dist/runtime/components/ui/toggle-group/index.d.ts +1 -0
- package/dist/runtime/components/ui/toggle-group/index.js +2 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.d.vue.ts +79 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.vue +23 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.vue.d.ts +79 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.d.vue.ts +162 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue +50 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue.d.ts +162 -0
- package/dist/runtime/components/ui/tooltip/TooltipProvider.d.vue.ts +68 -0
- package/dist/runtime/components/ui/tooltip/TooltipProvider.vue +17 -0
- package/dist/runtime/components/ui/tooltip/TooltipProvider.vue.d.ts +68 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.d.vue.ts +38 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue +17 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue.d.ts +38 -0
- package/dist/runtime/components/ui/tooltip/index.d.ts +1 -0
- package/dist/runtime/components/ui/tooltip/index.js +4 -0
- package/dist/runtime/composables/useAPI.d.ts +463 -0
- package/dist/runtime/composables/useAPI.js +991 -0
- package/dist/runtime/composables/useColorMode.d.ts +19 -0
- package/dist/runtime/composables/useColorMode.js +292 -0
- package/dist/runtime/composables/useStepper.d.ts +19 -0
- package/dist/runtime/composables/useStepper.js +71 -0
- package/dist/runtime/composables/useTimeline.d.ts +6 -0
- package/dist/runtime/composables/useTimeline.js +188 -0
- package/dist/runtime/composables/useViewAPI.d.ts +513 -0
- package/dist/runtime/composables/useViewAPI.js +965 -0
- package/dist/runtime/core/config.d.ts +166 -0
- package/dist/runtime/core/config.js +118 -0
- package/dist/runtime/core/stepper/StepState.d.ts +332 -0
- package/dist/runtime/core/stepper/StepState.js +775 -0
- package/dist/runtime/core/stepper/Stepper.d.ts +165 -0
- package/dist/runtime/core/stepper/Stepper.js +618 -0
- package/dist/runtime/core/stepper/StepperProxy.d.ts +21 -0
- package/dist/runtime/core/stepper/StepperProxy.js +57 -0
- package/dist/runtime/core/stepper/StepperSerializer.d.ts +29 -0
- package/dist/runtime/core/stepper/StepperSerializer.js +234 -0
- package/dist/runtime/core/timeline/Timeline.d.ts +101 -0
- package/dist/runtime/core/timeline/Timeline.js +495 -0
- package/dist/runtime/css/main.css +1 -0
- package/dist/runtime/css/smile.css +1 -0
- package/dist/runtime/layouts/development.d.vue.ts +10 -0
- package/dist/runtime/layouts/development.vue +189 -0
- package/dist/runtime/layouts/development.vue.d.ts +10 -0
- package/dist/runtime/layouts/experiment.d.vue.ts +13 -0
- package/dist/runtime/layouts/experiment.vue +10 -0
- package/dist/runtime/layouts/experiment.vue.d.ts +13 -0
- package/dist/runtime/layouts/presentation.d.vue.ts +10 -0
- package/dist/runtime/layouts/presentation.vue +45 -0
- package/dist/runtime/layouts/presentation.vue.d.ts +10 -0
- package/dist/runtime/lib/utils.d.ts +1 -0
- package/dist/runtime/lib/utils.js +6 -0
- package/dist/runtime/middleware/timeline.global.d.ts +21 -0
- package/dist/runtime/middleware/timeline.global.js +422 -0
- package/dist/runtime/pages/[...slug].d.vue.ts +3 -0
- package/dist/runtime/pages/[...slug].vue +40 -0
- package/dist/runtime/pages/[...slug].vue.d.ts +3 -0
- package/dist/runtime/pages/dev/[...slug].d.vue.ts +3 -0
- package/dist/runtime/pages/dev/[...slug].vue +53 -0
- package/dist/runtime/pages/dev/[...slug].vue.d.ts +3 -0
- package/dist/runtime/pages/dev-login.d.vue.ts +3 -0
- package/dist/runtime/pages/dev-login.vue +56 -0
- package/dist/runtime/pages/dev-login.vue.d.ts +3 -0
- package/dist/runtime/pages/info.d.vue.ts +3 -0
- package/dist/runtime/pages/info.vue +462 -0
- package/dist/runtime/pages/info.vue.d.ts +3 -0
- package/dist/runtime/pages/presentation/[...slug].d.vue.ts +3 -0
- package/dist/runtime/pages/presentation/[...slug].vue +65 -0
- package/dist/runtime/pages/presentation/[...slug].vue.d.ts +3 -0
- package/dist/runtime/plugins/dev-sync.client.d.ts +2 -0
- package/dist/runtime/plugins/dev-sync.client.js +26 -0
- package/dist/runtime/plugins/seed.client.d.ts +2 -0
- package/dist/runtime/plugins/seed.client.js +44 -0
- package/dist/runtime/plugins/store-sync.client.d.ts +2 -0
- package/dist/runtime/plugins/store-sync.client.js +74 -0
- package/dist/runtime/plugins/timeline.client.d.ts +6 -0
- package/dist/runtime/plugins/timeline.client.js +10 -0
- package/dist/runtime/server/api/auth/login.post.d.ts +2 -0
- package/dist/runtime/server/api/auth/login.post.js +29 -0
- package/dist/runtime/server/api/auth/logout.post.d.ts +2 -0
- package/dist/runtime/server/api/auth/logout.post.js +12 -0
- package/dist/runtime/server/api/auth/session.get.d.ts +2 -0
- package/dist/runtime/server/api/auth/session.get.js +15 -0
- package/dist/runtime/server/api/participants/[id]/private.patch.d.ts +2 -0
- package/dist/runtime/server/api/participants/[id]/private.patch.js +20 -0
- package/dist/runtime/server/api/participants/[id]/private.post.d.ts +2 -0
- package/dist/runtime/server/api/participants/[id]/private.post.js +21 -0
- package/dist/runtime/server/api/participants/[id].get.d.ts +2 -0
- package/dist/runtime/server/api/participants/[id].get.js +15 -0
- package/dist/runtime/server/api/participants/[id].patch.d.ts +2 -0
- package/dist/runtime/server/api/participants/[id].patch.js +20 -0
- package/dist/runtime/server/api/participants/index.post.d.ts +2 -0
- package/dist/runtime/server/api/participants/index.post.js +17 -0
- package/dist/runtime/server/api/qr.get.d.ts +2 -0
- package/dist/runtime/server/api/qr.get.js +19 -0
- package/dist/runtime/server/database/schema.d.ts +235 -0
- package/dist/runtime/server/database/schema.js +19 -0
- package/dist/runtime/server/middleware/dev-auth.d.ts +2 -0
- package/dist/runtime/server/middleware/dev-auth.js +32 -0
- package/dist/runtime/server/plugins/migrate.d.ts +2 -0
- package/dist/runtime/server/plugins/migrate.js +30 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/server/utils/db.d.ts +3 -0
- package/dist/runtime/server/utils/db.js +21 -0
- package/dist/runtime/stores/log.d.ts +37 -0
- package/dist/runtime/stores/log.js +211 -0
- package/dist/runtime/stores/smilestore.d.ts +8234 -0
- package/dist/runtime/stores/smilestore.js +577 -0
- package/dist/runtime/utils/randomization.d.ts +57 -0
- package/dist/runtime/utils/randomization.js +189 -0
- package/dist/runtime/utils/utils.d.ts +19 -0
- package/dist/runtime/utils/utils.js +147 -0
- package/dist/types.d.mts +3 -0
- package/package.json +107 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let mode: any;
|
|
3
|
+
let smileVersion: any;
|
|
4
|
+
let projectName: any;
|
|
5
|
+
let projectRef: any;
|
|
6
|
+
let codeName: any;
|
|
7
|
+
let codeNameURL: any;
|
|
8
|
+
let localStorageKey: string;
|
|
9
|
+
let devLocalStorageKey: string;
|
|
10
|
+
namespace github {
|
|
11
|
+
let repoName: any;
|
|
12
|
+
let owner: any;
|
|
13
|
+
let branch: any;
|
|
14
|
+
let lastCommitMsg: any;
|
|
15
|
+
let lastCommitHash: any;
|
|
16
|
+
let commitURL: string;
|
|
17
|
+
}
|
|
18
|
+
let allowRepeats: boolean;
|
|
19
|
+
let autoSave: any;
|
|
20
|
+
let maxWrites: any;
|
|
21
|
+
let minWriteInterval: any;
|
|
22
|
+
let maxSteps: any;
|
|
23
|
+
let randomSeed: any;
|
|
24
|
+
let deployURL: any;
|
|
25
|
+
let labURL: any;
|
|
26
|
+
let brandLogoFn: any;
|
|
27
|
+
let colorMode: any;
|
|
28
|
+
let responsiveUI: boolean;
|
|
29
|
+
let googleAnalyticsID: any;
|
|
30
|
+
let windowsizerRequest: object;
|
|
31
|
+
let windowsizerAggressive: boolean;
|
|
32
|
+
let anonymousMode: boolean;
|
|
33
|
+
let unpaidStudy: boolean;
|
|
34
|
+
namespace sona {
|
|
35
|
+
let url: any;
|
|
36
|
+
let experimentId: any;
|
|
37
|
+
let creditToken: any;
|
|
38
|
+
}
|
|
39
|
+
namespace sonaPaid {
|
|
40
|
+
let url_1: any;
|
|
41
|
+
export { url_1 as url };
|
|
42
|
+
let experimentId_1: any;
|
|
43
|
+
export { experimentId_1 as experimentId };
|
|
44
|
+
let creditToken_1: any;
|
|
45
|
+
export { creditToken_1 as creditToken };
|
|
46
|
+
}
|
|
47
|
+
namespace spark {
|
|
48
|
+
let completionUrl: string;
|
|
49
|
+
}
|
|
50
|
+
namespace firebaseConfig {
|
|
51
|
+
let apiKey: any;
|
|
52
|
+
let authDomain: any;
|
|
53
|
+
let projectId: any;
|
|
54
|
+
let storageBucket: any;
|
|
55
|
+
let messagingSenderId: any;
|
|
56
|
+
let appId: any;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export default _default;
|
|
60
|
+
/**
|
|
61
|
+
* Global configuration object for the Smile application
|
|
62
|
+
*/
|
|
63
|
+
export type Config = {
|
|
64
|
+
/**
|
|
65
|
+
* - Application mode ('development', 'production', 'testing')
|
|
66
|
+
*/
|
|
67
|
+
mode: string;
|
|
68
|
+
/**
|
|
69
|
+
* - Name of the project
|
|
70
|
+
*/
|
|
71
|
+
projectName: string;
|
|
72
|
+
/**
|
|
73
|
+
* - Project reference derived from deploy base path
|
|
74
|
+
*/
|
|
75
|
+
projectRef: string;
|
|
76
|
+
/**
|
|
77
|
+
* - Project code name
|
|
78
|
+
*/
|
|
79
|
+
codeName: string;
|
|
80
|
+
/**
|
|
81
|
+
* - Deploy URL for code name
|
|
82
|
+
*/
|
|
83
|
+
codeNameURL: string;
|
|
84
|
+
/**
|
|
85
|
+
* - Key for storing data in localStorage
|
|
86
|
+
*/
|
|
87
|
+
localStorageKey: string;
|
|
88
|
+
/**
|
|
89
|
+
* - Key for storing dev data in localStorage
|
|
90
|
+
*/
|
|
91
|
+
devLocalStorageKey: string;
|
|
92
|
+
/**
|
|
93
|
+
* - GitHub repository information
|
|
94
|
+
*/
|
|
95
|
+
github: {
|
|
96
|
+
repoName: string;
|
|
97
|
+
owner: string;
|
|
98
|
+
branch: string;
|
|
99
|
+
lastCommitMsg: string;
|
|
100
|
+
lastCommitHash: string;
|
|
101
|
+
commitURL: string;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* - Whether to allow repeat participants
|
|
105
|
+
*/
|
|
106
|
+
allowRepeats: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* - Whether to auto-save data
|
|
109
|
+
*/
|
|
110
|
+
autoSave: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* - Maximum number of writes allowed
|
|
113
|
+
*/
|
|
114
|
+
maxWrites: number;
|
|
115
|
+
/**
|
|
116
|
+
* - Minimum interval between writes
|
|
117
|
+
*/
|
|
118
|
+
minWriteInterval: number;
|
|
119
|
+
/**
|
|
120
|
+
* - Maximum rows in stepper tables
|
|
121
|
+
*/
|
|
122
|
+
maxSteps: number;
|
|
123
|
+
/**
|
|
124
|
+
* - Seed for random number generation
|
|
125
|
+
*/
|
|
126
|
+
randomSeed: string;
|
|
127
|
+
/**
|
|
128
|
+
* - URL where app is deployed
|
|
129
|
+
*/
|
|
130
|
+
deployURL: string;
|
|
131
|
+
/**
|
|
132
|
+
* - URL of the lab website
|
|
133
|
+
*/
|
|
134
|
+
labURL: string;
|
|
135
|
+
/**
|
|
136
|
+
* - Function name for brand logo
|
|
137
|
+
*/
|
|
138
|
+
brandLogoFn: string;
|
|
139
|
+
/**
|
|
140
|
+
* - Google Analytics tracking ID
|
|
141
|
+
*/
|
|
142
|
+
googleAnalyticsID: string;
|
|
143
|
+
/**
|
|
144
|
+
* - Requested window dimensions
|
|
145
|
+
*/
|
|
146
|
+
windowsizerRequest: object;
|
|
147
|
+
/**
|
|
148
|
+
* - Whether to force window sizing
|
|
149
|
+
*/
|
|
150
|
+
windowsizerAggressive: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* - Whether to enable anonymous mode
|
|
153
|
+
*/
|
|
154
|
+
anonymousMode: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* - Firebase configuration object
|
|
157
|
+
*/
|
|
158
|
+
firebaseConfig: {
|
|
159
|
+
apiKey: string;
|
|
160
|
+
authDomain: string;
|
|
161
|
+
projectId: string;
|
|
162
|
+
storageBucket: string;
|
|
163
|
+
messagingSenderId: string;
|
|
164
|
+
appId: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Global configuration options for the Smile application.
|
|
3
|
+
* @description This module exports configuration settings used throughout the app.
|
|
4
|
+
* Configuration values are populated from environment variables during build time
|
|
5
|
+
* using Vite's import.meta.env string replacement.
|
|
6
|
+
* @module config
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Parses a string in the format "WIDTHxHEIGHT" into width and height values
|
|
10
|
+
* @param {string} value - String in format "WIDTHxHEIGHT" (e.g. "800x600")
|
|
11
|
+
* @returns {object} Object containing parsed width and height as integers
|
|
12
|
+
* @property {number} width - The parsed width value
|
|
13
|
+
* @property {number} height - The parsed height value
|
|
14
|
+
*/
|
|
15
|
+
function parseWidthHeight(value) {
|
|
16
|
+
// receives configuration option as WIDTHxHEIGHT
|
|
17
|
+
// split based on 'x' and assign to objects
|
|
18
|
+
if (!value) return { width: 0, height: 0 }
|
|
19
|
+
const w_h = value.split('x')
|
|
20
|
+
return { width: Number.parseInt(w_h[0]), height: Number.parseInt(w_h[1]) }
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Global configuration object for the Smile application
|
|
25
|
+
* @typedef {object} Config
|
|
26
|
+
* @property {string} mode - Application mode ('development', 'production', 'testing')
|
|
27
|
+
* @property {string} projectName - Name of the project
|
|
28
|
+
* @property {string} projectRef - Project reference derived from deploy base path
|
|
29
|
+
* @property {string} codeName - Project code name
|
|
30
|
+
* @property {string} codeNameURL - Deploy URL for code name
|
|
31
|
+
* @property {string} localStorageKey - Key for storing data in localStorage
|
|
32
|
+
* @property {string} devLocalStorageKey - Key for storing dev data in localStorage
|
|
33
|
+
* @property {object} github - GitHub repository information
|
|
34
|
+
* @property {string} github.repoName - Repository name
|
|
35
|
+
* @property {string} github.owner - Repository owner
|
|
36
|
+
* @property {string} github.branch - Current branch name
|
|
37
|
+
* @property {string} github.lastCommitMsg - Last commit message
|
|
38
|
+
* @property {string} github.lastCommitHash - Last commit hash
|
|
39
|
+
* @property {string} github.commitURL - URL to last commit
|
|
40
|
+
* @property {boolean} allowRepeats - Whether to allow repeat participants
|
|
41
|
+
* @property {boolean} autoSave - Whether to auto-save data
|
|
42
|
+
* @property {number} maxWrites - Maximum number of writes allowed
|
|
43
|
+
* @property {number} minWriteInterval - Minimum interval between writes
|
|
44
|
+
* @property {number} maxSteps - Maximum rows in stepper tables
|
|
45
|
+
* @property {string} randomSeed - Seed for random number generation
|
|
46
|
+
* @property {string} deployURL - URL where app is deployed
|
|
47
|
+
* @property {string} labURL - URL of the lab website
|
|
48
|
+
* @property {string} brandLogoFn - Function name for brand logo
|
|
49
|
+
* @property {string} googleAnalyticsID - Google Analytics tracking ID
|
|
50
|
+
* @property {object} windowsizerRequest - Requested window dimensions
|
|
51
|
+
* @property {boolean} windowsizerAggressive - Whether to force window sizing
|
|
52
|
+
* @property {boolean} anonymousMode - Whether to enable anonymous mode
|
|
53
|
+
* @property {object} firebaseConfig - Firebase configuration object
|
|
54
|
+
* @property {string} firebaseConfig.apiKey - Firebase API key
|
|
55
|
+
* @property {string} firebaseConfig.authDomain - Firebase auth domain
|
|
56
|
+
* @property {string} firebaseConfig.projectId - Firebase project ID
|
|
57
|
+
* @property {string} firebaseConfig.storageBucket - Firebase storage bucket
|
|
58
|
+
* @property {string} firebaseConfig.messagingSenderId - Firebase messaging sender ID
|
|
59
|
+
* @property {string} firebaseConfig.appId - Firebase app ID
|
|
60
|
+
*/
|
|
61
|
+
export default {
|
|
62
|
+
mode: import.meta.env.MODE,
|
|
63
|
+
smileVersion: import.meta.env.VITE_SMILE_VERSION,
|
|
64
|
+
projectName: import.meta.env.VITE_PROJECT_NAME, // autocompute this on intitialization
|
|
65
|
+
projectRef: (import.meta.env.VITE_DEPLOY_BASE_PATH || '/').slice(1, -1).replace(/\//g, '-'),
|
|
66
|
+
codeName: import.meta.env.VITE_CODE_NAME,
|
|
67
|
+
codeNameURL: import.meta.env.VITE_CODE_NAME_DEPLOY_URL,
|
|
68
|
+
localStorageKey: `smilestore-${import.meta.env.VITE_CODE_NAME}`,
|
|
69
|
+
devLocalStorageKey: `smilestore-${import.meta.env.VITE_CODE_NAME}_dev`,
|
|
70
|
+
github: {
|
|
71
|
+
repoName: import.meta.env.VITE_GIT_REPO_NAME,
|
|
72
|
+
owner: import.meta.env.VITE_GIT_OWNER,
|
|
73
|
+
branch: import.meta.env.VITE_GIT_BRANCH_NAME,
|
|
74
|
+
lastCommitMsg: import.meta.env.VITE_GIT_LAST_MSG,
|
|
75
|
+
lastCommitHash: import.meta.env.VITE_GIT_HASH, // autocompute this all the time
|
|
76
|
+
commitURL: `https://github.com/${import.meta.env.VITE_GIT_OWNER}/${import.meta.env.VITE_GIT_REPO_NAME}/commit/${
|
|
77
|
+
import.meta.env.VITE_GIT_HASH
|
|
78
|
+
}`,
|
|
79
|
+
},
|
|
80
|
+
// browser_exclude: import.meta.env.VITE_BROWSER_EXCLUDE,
|
|
81
|
+
allowRepeats: import.meta.env.VITE_ALLOW_REPEATS === 'true',
|
|
82
|
+
autoSave: import.meta.env.VITE_AUTO_SAVE_DATA,
|
|
83
|
+
maxWrites: import.meta.env.VITE_MAX_WRITES,
|
|
84
|
+
minWriteInterval: import.meta.env.VITE_MIN_WRITE_INTERVAL,
|
|
85
|
+
maxSteps: import.meta.env.VITE_MAX_STEPS,
|
|
86
|
+
randomSeed: import.meta.env.VITE_RANDOM_SEED,
|
|
87
|
+
deployURL: import.meta.env.VITE_DEPLOY_URL, // auto compute this
|
|
88
|
+
labURL: import.meta.env.VITE_LAB_URL,
|
|
89
|
+
brandLogoFn: import.meta.env.VITE_BRAND_LOGO_FN,
|
|
90
|
+
colorMode: import.meta.env.VITE_COLOR_MODE, // 'light' or 'dark' or 'system'
|
|
91
|
+
responsiveUI: import.meta.env.VITE_RESPONSIVE_UI === 'true',
|
|
92
|
+
googleAnalyticsID: import.meta.env.VITE_GOOGLE_ANALYTICS,
|
|
93
|
+
windowsizerRequest: parseWidthHeight(import.meta.env.VITE_WINDOWSIZER_REQUEST),
|
|
94
|
+
windowsizerAggressive: import.meta.env.VITE_WINDOWSIZER_AGGRESSIVE === 'true',
|
|
95
|
+
anonymousMode: import.meta.env.VITE_ANONYMOUS_MODE === 'true',
|
|
96
|
+
unpaidStudy: import.meta.env.VITE_UNPAID_STUDY === 'true',
|
|
97
|
+
sona: {
|
|
98
|
+
url: import.meta.env.VITE_SONA_URL,
|
|
99
|
+
experimentId: import.meta.env.VITE_SONA_EXPERIMENT_ID,
|
|
100
|
+
creditToken: import.meta.env.VITE_SONA_CREDIT_TOKEN,
|
|
101
|
+
},
|
|
102
|
+
sonaPaid: {
|
|
103
|
+
url: import.meta.env.VITE_SONA_PAID_URL,
|
|
104
|
+
experimentId: import.meta.env.VITE_SONA_PAID_EXPERIMENT_ID,
|
|
105
|
+
creditToken: import.meta.env.VITE_SONA_PAID_CREDIT_TOKEN,
|
|
106
|
+
},
|
|
107
|
+
spark: {
|
|
108
|
+
completionUrl: 'https://spark.hartleylab.org/completed',
|
|
109
|
+
},
|
|
110
|
+
firebaseConfig: {
|
|
111
|
+
apiKey: import.meta.env.VITE_FIREBASE_APIKEY,
|
|
112
|
+
authDomain: import.meta.env.VITE_FIREBASE_AUTHDOMAIN,
|
|
113
|
+
projectId: import.meta.env.VITE_FIREBASE_PROJECTID,
|
|
114
|
+
storageBucket: import.meta.env.VITE_FIREBASE_STORAGEBUCKET,
|
|
115
|
+
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGINGSENDERID,
|
|
116
|
+
appId: import.meta.env.VITE_FIREBASE_APPID,
|
|
117
|
+
},
|
|
118
|
+
}
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @class StepState
|
|
3
|
+
* @description A tree-based state management class for hierarchical navigation.
|
|
4
|
+
*
|
|
5
|
+
* StepState represents a node in a tree structure where each node can have:
|
|
6
|
+
* - A id (string, number, or custom type)
|
|
7
|
+
* - Multiple child states
|
|
8
|
+
* - Associated data
|
|
9
|
+
* - Navigation capabilities (next/prev)
|
|
10
|
+
*
|
|
11
|
+
* Used with StepperStateMachine for higher-level state management.
|
|
12
|
+
*
|
|
13
|
+
* @property {*} _id - The node's unique identifier (used to create a path to this node)
|
|
14
|
+
* @property {StepState[]} _states - Array of child nodes/states
|
|
15
|
+
* @property {number} _currentIndex - Index tracking current position in children
|
|
16
|
+
* @property {number} _depth - Depth of this node in the tree (0 for root)
|
|
17
|
+
* @property {StepState|null} _parent - Reference to parent node
|
|
18
|
+
* @property {StepState} _root - Reference to root node
|
|
19
|
+
* @property {object} _data - Associated data for this node
|
|
20
|
+
*/
|
|
21
|
+
export class StepState {
|
|
22
|
+
/**
|
|
23
|
+
* Creates a new StepState node in a tree structure.
|
|
24
|
+
* @param {*} id - The id for this node. If null, defaults to '/'
|
|
25
|
+
* @param {StepState|null} parent - The parent node. If null, this is a root node
|
|
26
|
+
*
|
|
27
|
+
* This constructor initializes:
|
|
28
|
+
* - id: The node's id (used to create a path to this node)
|
|
29
|
+
* - states: Array of child nodes (also called rows)
|
|
30
|
+
* - currentIndex: Index tracking current position when traversing children
|
|
31
|
+
* - depth: How deep this node is in the tree (0 for root)
|
|
32
|
+
* - parent: Reference to parent node
|
|
33
|
+
* - data: Object to store arbitrary data
|
|
34
|
+
* - root: Reference to root node of the tree
|
|
35
|
+
*/
|
|
36
|
+
constructor(id?: any, parent?: StepState | null);
|
|
37
|
+
_id: any;
|
|
38
|
+
_states: any[];
|
|
39
|
+
_currentIndex: number;
|
|
40
|
+
_depth: number;
|
|
41
|
+
_parent: StepState | null;
|
|
42
|
+
_root: this;
|
|
43
|
+
_data: {};
|
|
44
|
+
/**
|
|
45
|
+
* Gets the number of child states in this node
|
|
46
|
+
* @returns {number} The number of child states
|
|
47
|
+
*/
|
|
48
|
+
get length(): number;
|
|
49
|
+
/**
|
|
50
|
+
* Gets the parent node of this state node
|
|
51
|
+
* @returns {StepState|null} The parent StepState node, or null if this is the root
|
|
52
|
+
*/
|
|
53
|
+
get parent(): StepState | null;
|
|
54
|
+
/**
|
|
55
|
+
* Sets the id of this node and updates the data field to include the id
|
|
56
|
+
* @param {*} id - The new id to set
|
|
57
|
+
*/
|
|
58
|
+
set id(id: any);
|
|
59
|
+
/**
|
|
60
|
+
* Gets the id of this node
|
|
61
|
+
* @returns {*} The node's id
|
|
62
|
+
*/
|
|
63
|
+
get id(): any;
|
|
64
|
+
/**
|
|
65
|
+
* Sets the array of child states for this node
|
|
66
|
+
* @param {StepState[]} states - Array of child StepState nodes to set
|
|
67
|
+
*/
|
|
68
|
+
set states(states: StepState[]);
|
|
69
|
+
/**
|
|
70
|
+
* Gets the array of child states for this node
|
|
71
|
+
* @returns {StepState[]} Array of child StepState nodes
|
|
72
|
+
*/
|
|
73
|
+
get states(): StepState[];
|
|
74
|
+
/**
|
|
75
|
+
* Sets the current index position in the state sequence
|
|
76
|
+
* @param {number} index - The index position to set
|
|
77
|
+
*/
|
|
78
|
+
set index(index: number);
|
|
79
|
+
/**
|
|
80
|
+
* Gets the current index position in the state sequence
|
|
81
|
+
* @returns {number} The current index
|
|
82
|
+
*/
|
|
83
|
+
get index(): number;
|
|
84
|
+
/**
|
|
85
|
+
* Gets the index of the parent node of the current leaf.
|
|
86
|
+
* @returns {number|null} The index of the parent node, or null if there is no parent
|
|
87
|
+
*/
|
|
88
|
+
get parentIndex(): number | null;
|
|
89
|
+
/**
|
|
90
|
+
* Gets the index of the parent node of the current leaf in the state tree.
|
|
91
|
+
* Traverses down from root to find the current leaf node, then returns its parent's index.
|
|
92
|
+
* @returns {number|null} The index of the parent node of the current leaf, or null if there is no parent
|
|
93
|
+
*/
|
|
94
|
+
get blockIndex(): number | null;
|
|
95
|
+
/**
|
|
96
|
+
* Gets the number of states in the parent node of the current leaf in the state tree.
|
|
97
|
+
* Traverses down from root to find the current leaf node, then returns its parent's state count.
|
|
98
|
+
* @returns {number} The number of states in the parent node, or 0 if there is no parent
|
|
99
|
+
*/
|
|
100
|
+
get blockLength(): number;
|
|
101
|
+
/**
|
|
102
|
+
* Setter for data property
|
|
103
|
+
* @param {*} data - The data to store in this node
|
|
104
|
+
*/
|
|
105
|
+
set data(data: any);
|
|
106
|
+
/**
|
|
107
|
+
* Getter for data property
|
|
108
|
+
* @returns {*} The data stored in this node
|
|
109
|
+
*/
|
|
110
|
+
get data(): any;
|
|
111
|
+
/**
|
|
112
|
+
* Gets the root node of the state tree
|
|
113
|
+
* @returns {StepState} The root StepState node
|
|
114
|
+
*/
|
|
115
|
+
get root(): StepState;
|
|
116
|
+
/**
|
|
117
|
+
* Get all child states of the current state.
|
|
118
|
+
* row is just a synonym for child states
|
|
119
|
+
* row lines a bit more with the table metaphor
|
|
120
|
+
*
|
|
121
|
+
* @returns {Array<StepState>} Array of child StepState nodes
|
|
122
|
+
*/
|
|
123
|
+
get rows(): Array<StepState>;
|
|
124
|
+
/**
|
|
125
|
+
* Get data from all child states of the current state.
|
|
126
|
+
* row is just a synonym for child states
|
|
127
|
+
* row lines a bit more with the table metaphor
|
|
128
|
+
*
|
|
129
|
+
* @returns {Array} Array of data values from all child states
|
|
130
|
+
*/
|
|
131
|
+
get rowsData(): any[];
|
|
132
|
+
/**
|
|
133
|
+
* Get data from all child states of the current state.
|
|
134
|
+
*
|
|
135
|
+
* @returns {Array} Array of data values from all child states
|
|
136
|
+
*/
|
|
137
|
+
get statesData(): any[];
|
|
138
|
+
/**
|
|
139
|
+
* Gets the depth of this node in the tree.
|
|
140
|
+
* @returns {number} The depth of this node
|
|
141
|
+
*/
|
|
142
|
+
get depth(): number;
|
|
143
|
+
/**
|
|
144
|
+
* Gets the maximum depth of the tree beneath this node.
|
|
145
|
+
* @returns {number} The maximum depth of the tree beneath this node
|
|
146
|
+
*/
|
|
147
|
+
get treeDepth(): number;
|
|
148
|
+
/**
|
|
149
|
+
* Checks if this node is a leaf node (has no child states).
|
|
150
|
+
* @returns {boolean} True if this node has no child states, false otherwise
|
|
151
|
+
*/
|
|
152
|
+
get isLeaf(): boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Checks if this node is the first non-special leaf node in the tree.
|
|
155
|
+
*
|
|
156
|
+
* A leaf node is considered "first" if:
|
|
157
|
+
* 1. It is a leaf node (has no children)
|
|
158
|
+
* 2. It is the leftmost leaf node when traversing the tree
|
|
159
|
+
*
|
|
160
|
+
* @returns {boolean} True if this is the first non-special leaf node, false otherwise
|
|
161
|
+
*/
|
|
162
|
+
get isFirstLeaf(): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Checks if there is a next state available.
|
|
165
|
+
* @returns {boolean} True if there is a next state, false otherwise
|
|
166
|
+
*/
|
|
167
|
+
hasNext(): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Checks if there is a previous state available.
|
|
170
|
+
* @returns {boolean} True if there is a previous state, false otherwise
|
|
171
|
+
*/
|
|
172
|
+
hasPrev(): boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Checks if this state has any child states.
|
|
175
|
+
* @returns {boolean} True if this state has child states, false otherwise
|
|
176
|
+
*/
|
|
177
|
+
hasSteps(): boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Peeks at the next state without moving the current position.
|
|
180
|
+
* @returns {StepState|null} The next state or null if no next state exists
|
|
181
|
+
*/
|
|
182
|
+
peekNext(): StepState | null;
|
|
183
|
+
/**
|
|
184
|
+
* Peeks at the previous state without moving the current position.
|
|
185
|
+
* @returns {StepState|null} The previous state or null if no previous state exists
|
|
186
|
+
*/
|
|
187
|
+
peekPrev(): StepState | null;
|
|
188
|
+
/**
|
|
189
|
+
* Creates a new state instance. This method is used internally to create new states
|
|
190
|
+
* and can be overridden by subclasses to return instances of the subclass.
|
|
191
|
+
* @protected
|
|
192
|
+
* @param {*} id - The id for the new state
|
|
193
|
+
* @param {StepState} parent - The parent state
|
|
194
|
+
* @returns {StepState} A new state instance
|
|
195
|
+
*/
|
|
196
|
+
protected _createNew(id: any, parent: StepState): StepState;
|
|
197
|
+
/**
|
|
198
|
+
* Creates and adds a new child state to this node.
|
|
199
|
+
* If no id is provided, automatically assigns the next available index as the id.
|
|
200
|
+
* @param {*} id - Optional id for the new state. If null, uses states.length
|
|
201
|
+
* @param {*} data - Optional data to associate with the new state
|
|
202
|
+
* @returns {StepState} The newly created child state
|
|
203
|
+
* @throws {Error} If a state with the given id already exists
|
|
204
|
+
*/
|
|
205
|
+
push(id?: any, data?: any): StepState;
|
|
206
|
+
/**
|
|
207
|
+
* Inserts a new state at the specified position in the list of children.
|
|
208
|
+
* Maintains the invariant that we're always pointing to a leaf node.
|
|
209
|
+
* @param {*} id - Optional id for the new state. If null, uses states.length
|
|
210
|
+
* @param {number} index - Position to insert at. Can be positive (0-based) or negative (from end).
|
|
211
|
+
* @param {*} data - Optional data to associate with the new state
|
|
212
|
+
* @returns {StepState} The newly created child state
|
|
213
|
+
* @throws {Error} If a state with the given id already exists
|
|
214
|
+
*/
|
|
215
|
+
insert(id?: any, index?: number, data?: any): StepState;
|
|
216
|
+
/**
|
|
217
|
+
* Resets the traversal state of this node and all its descendants.
|
|
218
|
+
* Sets currentIndex back to 0 for this node,
|
|
219
|
+
* then recursively resets all child nodes.
|
|
220
|
+
*/
|
|
221
|
+
reset(): void;
|
|
222
|
+
/**
|
|
223
|
+
* Resets the state machine and navigates to the specified path.
|
|
224
|
+
* If the path points to a leaf node, stays at that leaf.
|
|
225
|
+
* If the path points to a non-leaf node, traverses to its leftmost leaf.
|
|
226
|
+
* @param {Array|string} path - Path to navigate to (array of ids or hyphen-separated string)
|
|
227
|
+
* @throws {Error} If the path doesn't exist
|
|
228
|
+
*/
|
|
229
|
+
goTo(path: any[] | string): void;
|
|
230
|
+
/**
|
|
231
|
+
* Moves to the next state in the sequence.
|
|
232
|
+
* @returns {StepState|null} The next state or null if no next state exists
|
|
233
|
+
*/
|
|
234
|
+
next(): StepState | null;
|
|
235
|
+
/**
|
|
236
|
+
* Moves to the previous state in the sequence.
|
|
237
|
+
* @returns {StepState|null} The previous state or null if no previous state exists
|
|
238
|
+
*/
|
|
239
|
+
prev(): StepState | null;
|
|
240
|
+
/**
|
|
241
|
+
* Gets all leaf node paths in the tree beneath this node.
|
|
242
|
+
* A leaf node is defined as a node that has no children.
|
|
243
|
+
* @returns {string} A slash-separated string of leaf node paths
|
|
244
|
+
*/
|
|
245
|
+
get leafNodes(): string;
|
|
246
|
+
/**
|
|
247
|
+
* Gets the total number of leaf nodes in the tree beneath this node.
|
|
248
|
+
* A leaf node is defined as a node that has no children.
|
|
249
|
+
* @returns {number} The count of leaf nodes
|
|
250
|
+
*/
|
|
251
|
+
get countLeafNodes(): number;
|
|
252
|
+
/**
|
|
253
|
+
* Gets a child node by its index or id.
|
|
254
|
+
* @param {number|*} identifier - Either the index or id of the child node to find
|
|
255
|
+
* @returns {StepState|null} The found child node, or null if not found
|
|
256
|
+
*/
|
|
257
|
+
getNode(identifier: number | any): StepState | null;
|
|
258
|
+
/**
|
|
259
|
+
* Gets the path from root to this node by walking up the parent chain.
|
|
260
|
+
* Returns an array of ids representing each node's id along the path,
|
|
261
|
+
* excluding the root node ('/').
|
|
262
|
+
* This is distinct from the currentPath property which returns the path from the
|
|
263
|
+
* root to the current selected node by following .index.
|
|
264
|
+
* For example, if we have root -> A -> B -> C, calling getPath() on C returns ['A','B','C']
|
|
265
|
+
* @returns {Array} Array of ids representing the path from root to this node
|
|
266
|
+
*/
|
|
267
|
+
get path(): any[];
|
|
268
|
+
/**
|
|
269
|
+
* Gets the path string for this node by walking up the parent chain.
|
|
270
|
+
* Returns a slash-separated string of ids representing each node's id,
|
|
271
|
+
* including the root node ('/').
|
|
272
|
+
* This is distinct from the currentPath property which returns the path from the
|
|
273
|
+
* root to the current selected node by following .index.
|
|
274
|
+
* @returns {string} Slash-separated string representing the path to this node
|
|
275
|
+
*/
|
|
276
|
+
get pathString(): string;
|
|
277
|
+
/**
|
|
278
|
+
* Gets all unique paths in the tree beneath this node.
|
|
279
|
+
* @returns {Set<string>} Set of all unique paths in the tree
|
|
280
|
+
*/
|
|
281
|
+
get existingPaths(): Set<string>;
|
|
282
|
+
/**
|
|
283
|
+
* Gets an array of data objects from all nodes along the current path, from root to leaf.
|
|
284
|
+
* @returns {Array} Array of data objects, where each element is the complete data from a node along the path
|
|
285
|
+
*/
|
|
286
|
+
get dataAlongPath(): any[];
|
|
287
|
+
/**
|
|
288
|
+
* Sets data for a node at the specified path
|
|
289
|
+
* @param {Array|string} path - Path to the node (array of ids or slash-separated string)
|
|
290
|
+
* @param {object} data - Data to associate with the node
|
|
291
|
+
* @throws {Error} If the path doesn't exist
|
|
292
|
+
*/
|
|
293
|
+
setDataAtPath(path: any[] | string, data: object): void;
|
|
294
|
+
/**
|
|
295
|
+
* Returns the current path through the tree as a list of ids
|
|
296
|
+
* @returns {Array} Array of ids representing the current path
|
|
297
|
+
*/
|
|
298
|
+
get currentPath(): any[];
|
|
299
|
+
/**
|
|
300
|
+
* Returns the current path through the tree as a slash-separated string
|
|
301
|
+
* @returns {string} String representation of the current path
|
|
302
|
+
*/
|
|
303
|
+
get currentPathString(): string;
|
|
304
|
+
/**
|
|
305
|
+
* Returns the data from the current leaf node in the tree
|
|
306
|
+
* @returns {*} The data from the current leaf node
|
|
307
|
+
*/
|
|
308
|
+
get currentData(): any;
|
|
309
|
+
/**
|
|
310
|
+
* Returns a string representation of the tree structure beneath this node
|
|
311
|
+
* @returns {string} Tree diagram
|
|
312
|
+
*/
|
|
313
|
+
get treeDiagram(): string;
|
|
314
|
+
/**
|
|
315
|
+
* Completely clears all states and resets to initial condition
|
|
316
|
+
* Removes all child states and resets all internal properties
|
|
317
|
+
* also clears the data from the current node
|
|
318
|
+
*/
|
|
319
|
+
clear(): void;
|
|
320
|
+
/**
|
|
321
|
+
* Clears all data from the current node by resetting the data object to empty
|
|
322
|
+
* Does not affect child nodes or the structure of the state tree
|
|
323
|
+
*/
|
|
324
|
+
clearData(): void;
|
|
325
|
+
/**
|
|
326
|
+
* Completely clears all states and resets to initial condition
|
|
327
|
+
* Removes all child states and resets all internal properties
|
|
328
|
+
* does _not_ clear the data from the current node
|
|
329
|
+
*/
|
|
330
|
+
clearSubTree(): void;
|
|
331
|
+
}
|
|
332
|
+
export default StepState;
|