@khsura/sui 0.0.0-stage → 1.18.3
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/.claude-plugin/marketplace.json +18 -0
- package/@types/components/badge/index.d.ts +1 -0
- package/@types/components/badge/sBadge.vue.d.ts +18 -0
- package/@types/components/badge/sBadgeContent.vue.d.ts +14 -0
- package/@types/components/calendar/index.d.ts +1 -0
- package/@types/components/calendar/sCalendar.vue.d.ts +52 -0
- package/@types/components/calendar/sCalendarMonthly.vue.d.ts +51 -0
- package/@types/components/calendar/sCalendarWeekly.vue.d.ts +75 -0
- package/@types/components/cards/index.d.ts +5 -0
- package/@types/components/cards/sCard.vue.d.ts +14 -0
- package/@types/components/cards/sCardActions.vue.d.ts +15 -0
- package/@types/components/cards/sCardSubtitle.vue.d.ts +15 -0
- package/@types/components/cards/sCardText.vue.d.ts +15 -0
- package/@types/components/cards/sCardTitle.vue.d.ts +15 -0
- package/@types/components/carousel/index.d.ts +2 -0
- package/@types/components/carousel/sCarousel.vue.d.ts +34 -0
- package/@types/components/carousel/sCarouselItem.vue.d.ts +14 -0
- package/@types/components/datePicker/index.d.ts +2 -0
- package/@types/components/datePicker/sDatePicker.vue.d.ts +22 -0
- package/@types/components/datePicker/sDatePickerDate.vue.d.ts +12 -0
- package/@types/components/datePicker/sDatePickerInput.vue.d.ts +31 -0
- package/@types/components/datePicker/sDatePickerMonth.vue.d.ts +12 -0
- package/@types/components/datePicker/sDatePickerSwitch.vue.d.ts +15 -0
- package/@types/components/datePicker/sDatePickerTitle.vue.d.ts +16 -0
- package/@types/components/datePicker/sDatePickerYear.vue.d.ts +12 -0
- package/@types/components/expansionPanel/index.d.ts +4 -0
- package/@types/components/expansionPanel/sExpansionPanel.vue.d.ts +17 -0
- package/@types/components/expansionPanel/sExpansionPanelContent.vue.d.ts +15 -0
- package/@types/components/expansionPanel/sExpansionPanelHeader.vue.d.ts +21 -0
- package/@types/components/expansionPanel/sExpansionPanels.vue.d.ts +24 -0
- package/@types/components/form/common/index.d.ts +1 -0
- package/@types/components/form/common/sFormInputError.vue.d.ts +25 -0
- package/@types/components/form/index.d.ts +7 -0
- package/@types/components/form/radio/index.d.ts +2 -0
- package/@types/components/form/radio/sRadio.vue.d.ts +32 -0
- package/@types/components/form/radio/sRadioGroup.vue.d.ts +35 -0
- package/@types/components/form/sCheckbox.vue.d.ts +22 -0
- package/@types/components/form/sForm.vue.d.ts +31 -0
- package/@types/components/form/sInput.vue.d.ts +73 -0
- package/@types/components/form/sSelect.vue.d.ts +64 -0
- package/@types/components/form/sTextarea.vue.d.ts +38 -0
- package/@types/components/grids/index.d.ts +4 -0
- package/@types/components/grids/sColumn.vue.d.ts +14 -0
- package/@types/components/grids/sContainer.vue.d.ts +14 -0
- package/@types/components/grids/sRow.vue.d.ts +14 -0
- package/@types/components/grids/sSpacer.vue.d.ts +13 -0
- package/@types/components/index.d.ts +36 -0
- package/@types/components/layout/index.d.ts +8 -0
- package/@types/components/layout/sApp.vue.d.ts +15 -0
- package/@types/components/layout/sAppBar.vue.d.ts +22 -0
- package/@types/components/layout/sAppBarTitle.vue.d.ts +16 -0
- package/@types/components/layout/sBottomNavigation.vue.d.ts +24 -0
- package/@types/components/layout/sFooter.vue.d.ts +18 -0
- package/@types/components/layout/sLayout.vue.d.ts +14 -0
- package/@types/components/layout/sMain.vue.d.ts +14 -0
- package/@types/components/layout/sNavigationDrawer.vue.d.ts +45 -0
- package/@types/components/list/index.d.ts +8 -0
- package/@types/components/list/sList.vue.d.ts +14 -0
- package/@types/components/list/sListItem.vue.d.ts +18 -0
- package/@types/components/list/sListItemAction.vue.d.ts +14 -0
- package/@types/components/list/sListItemContent.vue.d.ts +13 -0
- package/@types/components/list/sListItemGroup.vue.d.ts +47 -0
- package/@types/components/list/sListItemIcon.vue.d.ts +14 -0
- package/@types/components/list/sListItemSubtitle.vue.d.ts +13 -0
- package/@types/components/list/sListItemTitle.vue.d.ts +13 -0
- package/@types/components/progress/index.d.ts +2 -0
- package/@types/components/progress/sProgressCircular.vue.d.ts +18 -0
- package/@types/components/progress/sProgressLinear.vue.d.ts +17 -0
- package/@types/components/sAlert.vue.d.ts +14 -0
- package/@types/components/sAutocomplete.vue.d.ts +57 -0
- package/@types/components/sBreadcrumbs.vue.d.ts +16 -0
- package/@types/components/sButton.vue.d.ts +20 -0
- package/@types/components/sChip.vue.d.ts +24 -0
- package/@types/components/sDialog.vue.d.ts +33 -0
- package/@types/components/sDivider.vue.d.ts +4 -0
- package/@types/components/sDroppable.vue.d.ts +28 -0
- package/@types/components/sIcon.vue.d.ts +4 -0
- package/@types/components/sImage.vue.d.ts +14 -0
- package/@types/components/sMenu.vue.d.ts +36 -0
- package/@types/components/sOverlay.vue.d.ts +26 -0
- package/@types/components/sSheet.vue.d.ts +14 -0
- package/@types/components/sSnackbar.vue.d.ts +35 -0
- package/@types/components/sSubheader.vue.d.ts +13 -0
- package/@types/components/sSwitch.vue.d.ts +23 -0
- package/@types/components/sTooltip.vue.d.ts +25 -0
- package/@types/components/slideGroup/index.d.ts +2 -0
- package/@types/components/slideGroup/sSlideGroup.vue.d.ts +42 -0
- package/@types/components/slideGroup/sSlideItem.vue.d.ts +17 -0
- package/@types/components/splitViews/index.d.ts +2 -0
- package/@types/components/splitViews/sSplitView.vue.d.ts +17 -0
- package/@types/components/splitViews/sSplitViewItem.vue.d.ts +13 -0
- package/@types/components/stepper/index.d.ts +2 -0
- package/@types/components/stepper/sStepper.vue.d.ts +26 -0
- package/@types/components/stepper/sStepperStep.vue.d.ts +14 -0
- package/@types/components/table/index.d.ts +3 -0
- package/@types/components/table/sTable.vue.d.ts +153 -0
- package/@types/components/table/sTableBodyCell.vue.d.ts +22 -0
- package/@types/components/table/sTableHeadCell.vue.d.ts +24 -0
- package/@types/components/table/sTablePagination.vue.d.ts +33 -0
- package/@types/components/tabs/index.d.ts +2 -0
- package/@types/components/tabs/sTab.vue.d.ts +14 -0
- package/@types/components/tabs/sTabs.vue.d.ts +20 -0
- package/@types/components/toggleButtonGroup/index.d.ts +2 -0
- package/@types/components/toggleButtonGroup/sToggleButton.vue.d.ts +14 -0
- package/@types/components/toggleButtonGroup/sToggleButtonGroup.vue.d.ts +31 -0
- package/@types/components/toolbar/index.d.ts +3 -0
- package/@types/components/toolbar/sToolbar.vue.d.ts +23 -0
- package/@types/components/toolbar/sToolbarItem.vue.d.ts +5 -0
- package/@types/components/toolbar/sToolbarTitle.vue.d.ts +16 -0
- package/@types/components/window/index.d.ts +2 -0
- package/@types/components/window/sWindow.vue.d.ts +57 -0
- package/@types/components/window/sWindowItem.vue.d.ts +13 -0
- package/@types/componentsTypes.d.ts +8 -0
- package/@types/configs/app.d.ts +72 -0
- package/@types/configs/color.d.ts +2 -0
- package/@types/configs/core/breakpoint.d.ts +9 -0
- package/@types/configs/core/index.d.ts +1 -0
- package/@types/configs/datePicker.d.ts +34 -0
- package/@types/configs/grids.d.ts +3 -0
- package/@types/configs/i18n.d.ts +73 -0
- package/@types/configs/iconSizes.d.ts +7 -0
- package/@types/configs/index.d.ts +11 -0
- package/@types/configs/provider.d.ts +42 -0
- package/@types/configs/size.d.ts +2 -0
- package/@types/configs/toolbar.d.ts +11 -0
- package/@types/configs/transitions.d.ts +2 -0
- package/@types/constants/alert.d.ts +52 -0
- package/@types/constants/app.d.ts +7 -0
- package/@types/constants/button.d.ts +5 -0
- package/@types/constants/color.d.ts +318 -0
- package/@types/constants/cssVariables.d.ts +4 -0
- package/@types/constants/datePicker.d.ts +14 -0
- package/@types/constants/form.d.ts +9 -0
- package/@types/constants/grids.d.ts +14 -0
- package/@types/constants/i18n.d.ts +68 -0
- package/@types/constants/imageLoader.d.ts +13 -0
- package/@types/constants/index.d.ts +20 -0
- package/@types/constants/layout.d.ts +10 -0
- package/@types/constants/lazyLoad.d.ts +5 -0
- package/@types/constants/materialDesignIcon.d.ts +3 -0
- package/@types/constants/menuDimensions.d.ts +2 -0
- package/@types/constants/navigationDrawer.d.ts +8 -0
- package/@types/constants/overlay.d.ts +1 -0
- package/@types/constants/position.d.ts +1 -0
- package/@types/constants/size.d.ts +7 -0
- package/@types/constants/toolbar.d.ts +7 -0
- package/@types/constants/transition.d.ts +6 -0
- package/@types/definitions/app.d.ts +22 -0
- package/@types/definitions/emits/emitsTable.d.ts +18 -0
- package/@types/definitions/emits/index.d.ts +1 -0
- package/@types/definitions/index.d.ts +4 -0
- package/@types/definitions/props/core/index.d.ts +18 -0
- package/@types/definitions/props/core/propsActivator.d.ts +6 -0
- package/@types/definitions/props/core/propsBorder.d.ts +5 -0
- package/@types/definitions/props/core/propsButtonVariant.d.ts +3 -0
- package/@types/definitions/props/core/propsColor.d.ts +6 -0
- package/@types/definitions/props/core/propsComponentTheme.d.ts +4 -0
- package/@types/definitions/props/core/propsContent.d.ts +5 -0
- package/@types/definitions/props/core/propsDisabled.d.ts +4 -0
- package/@types/definitions/props/core/propsElevation.d.ts +3 -0
- package/@types/definitions/props/core/propsGroup.d.ts +6 -0
- package/@types/definitions/props/core/propsGroupItem.d.ts +6 -0
- package/@types/definitions/props/core/propsLayoutBase.d.ts +3 -0
- package/@types/definitions/props/core/propsLink.d.ts +7 -0
- package/@types/definitions/props/core/propsLocation.d.ts +6 -0
- package/@types/definitions/props/core/propsMeasurableStyles.d.ts +8 -0
- package/@types/definitions/props/core/propsPosition.d.ts +4 -0
- package/@types/definitions/props/core/propsTag.d.ts +4 -0
- package/@types/definitions/props/core/propsTextColor.d.ts +3 -0
- package/@types/definitions/props/core/propsToggleButtonGroupVariant.d.ts +3 -0
- package/@types/definitions/props/index.d.ts +70 -0
- package/@types/definitions/props/propsAlert.d.ts +7 -0
- package/@types/definitions/props/propsApp.d.ts +2 -0
- package/@types/definitions/props/propsAppBar.d.ts +9 -0
- package/@types/definitions/props/propsAutocomplete.d.ts +40 -0
- package/@types/definitions/props/propsBadge.d.ts +19 -0
- package/@types/definitions/props/propsBottomNavigation.d.ts +14 -0
- package/@types/definitions/props/propsBreadcrumbs.d.ts +7 -0
- package/@types/definitions/props/propsButton.d.ts +10 -0
- package/@types/definitions/props/propsCalendar.d.ts +27 -0
- package/@types/definitions/props/propsCard.d.ts +2 -0
- package/@types/definitions/props/propsCarousel.d.ts +12 -0
- package/@types/definitions/props/propsCarouselItem.d.ts +3 -0
- package/@types/definitions/props/propsCheckbox.d.ts +9 -0
- package/@types/definitions/props/propsChip.d.ts +7 -0
- package/@types/definitions/props/propsColumn.d.ts +10 -0
- package/@types/definitions/props/propsContainer.d.ts +8 -0
- package/@types/definitions/props/propsDatePicker.d.ts +15 -0
- package/@types/definitions/props/propsDatePickerFormat.d.ts +5 -0
- package/@types/definitions/props/propsDatePickerInput.d.ts +18 -0
- package/@types/definitions/props/propsDatePickerItem.d.ts +18 -0
- package/@types/definitions/props/propsDatePickerItemSwitch.d.ts +9 -0
- package/@types/definitions/props/propsDatePickerItemTitle.d.ts +3 -0
- package/@types/definitions/props/propsDialog.d.ts +10 -0
- package/@types/definitions/props/propsDivider.d.ts +3 -0
- package/@types/definitions/props/propsDroppable.d.ts +2 -0
- package/@types/definitions/props/propsExpansionPanels.d.ts +8 -0
- package/@types/definitions/props/propsFooter.d.ts +6 -0
- package/@types/definitions/props/propsFormInput.d.ts +10 -0
- package/@types/definitions/props/propsIcon.d.ts +10 -0
- package/@types/definitions/props/propsImage.d.ts +9 -0
- package/@types/definitions/props/propsImageLoader.d.ts +11 -0
- package/@types/definitions/props/propsInput.d.ts +32 -0
- package/@types/definitions/props/propsLayout.d.ts +6 -0
- package/@types/definitions/props/propsLayoutProvider.d.ts +4 -0
- package/@types/definitions/props/propsLink.d.ts +7 -0
- package/@types/definitions/props/propsList.d.ts +10 -0
- package/@types/definitions/props/propsListItem.d.ts +7 -0
- package/@types/definitions/props/propsListMediaItem.d.ts +4 -0
- package/@types/definitions/props/propsMain.d.ts +4 -0
- package/@types/definitions/props/propsMenu.d.ts +9 -0
- package/@types/definitions/props/propsNavigationDrawer.d.ts +20 -0
- package/@types/definitions/props/propsOverlay.d.ts +8 -0
- package/@types/definitions/props/propsProgressCircular.d.ts +8 -0
- package/@types/definitions/props/propsProgressLinear.d.ts +9 -0
- package/@types/definitions/props/propsRadioGroup.d.ts +9 -0
- package/@types/definitions/props/propsRow.d.ts +11 -0
- package/@types/definitions/props/propsScrollable.d.ts +5 -0
- package/@types/definitions/props/propsSelect.d.ts +13 -0
- package/@types/definitions/props/propsSheet.d.ts +2 -0
- package/@types/definitions/props/propsSingleGroup.d.ts +6 -0
- package/@types/definitions/props/propsSingleGroupItem.d.ts +5 -0
- package/@types/definitions/props/propsSizePreset.d.ts +4 -0
- package/@types/definitions/props/propsSizeUnion.d.ts +4 -0
- package/@types/definitions/props/propsSlideGroup.d.ts +11 -0
- package/@types/definitions/props/propsSnackbar.d.ts +6 -0
- package/@types/definitions/props/propsSplitView.d.ts +9 -0
- package/@types/definitions/props/propsStepper.d.ts +10 -0
- package/@types/definitions/props/propsStepperStep.d.ts +6 -0
- package/@types/definitions/props/propsSwitch.d.ts +5 -0
- package/@types/definitions/props/propsTab.d.ts +5 -0
- package/@types/definitions/props/propsTable.d.ts +58 -0
- package/@types/definitions/props/propsTabs.d.ts +12 -0
- package/@types/definitions/props/propsTextarea.d.ts +25 -0
- package/@types/definitions/props/propsToggleButton.d.ts +3 -0
- package/@types/definitions/props/propsToggleButtonGroup.d.ts +8 -0
- package/@types/definitions/props/propsToolbar.d.ts +11 -0
- package/@types/definitions/props/propsToolbarTitle.d.ts +4 -0
- package/@types/definitions/props/propsTooltip.d.ts +9 -0
- package/@types/definitions/props/propsWindow.d.ts +13 -0
- package/@types/definitions/props/propsWindowItem.d.ts +2 -0
- package/@types/definitions/provider.d.ts +20 -0
- package/@types/directives/index.d.ts +2 -0
- package/@types/directives/resize.d.ts +2 -0
- package/@types/directives/scroll.d.ts +2 -0
- package/@types/helpers/autocompleteHelpers.d.ts +7 -0
- package/@types/helpers/colorHelpers.d.ts +3 -0
- package/@types/helpers/createAppStore.d.ts +77 -0
- package/@types/helpers/display.d.ts +1 -0
- package/@types/helpers/index.d.ts +6 -0
- package/@types/helpers/selectItemHelpers.d.ts +4 -0
- package/@types/helpers/tableHelpers.d.ts +9 -0
- package/@types/helpers/themeHelpers.d.ts +2 -0
- package/@types/index.d.ts +10 -0
- package/@types/lib/browser.d.ts +26 -0
- package/@types/lib/button.d.ts +3 -0
- package/@types/lib/color.d.ts +19 -0
- package/@types/lib/compositionApi.d.ts +2 -0
- package/@types/lib/formatNumber.d.ts +1 -0
- package/@types/lib/getCleanSetObject.d.ts +5 -0
- package/@types/lib/getNumericCssAttribute.d.ts +1 -0
- package/@types/lib/getNumericValue.d.ts +13 -0
- package/@types/lib/getPluginName.d.ts +1 -0
- package/@types/lib/htmlClass.d.ts +1 -0
- package/@types/lib/htmlToText.d.ts +2 -0
- package/@types/lib/index.d.ts +12 -0
- package/@types/lib/isEmpty.d.ts +1 -0
- package/@types/lib/retry.d.ts +1 -0
- package/@types/lib/scroll.d.ts +13 -0
- package/@types/lib/wait.d.ts +1 -0
- package/@types/modules/index.d.ts +1 -0
- package/@types/modules/sUI.d.ts +2 -0
- package/@types/repositories/calendarRepository.d.ts +3 -0
- package/@types/repositories/colorRepository.d.ts +14 -0
- package/@types/repositories/columnRepository.d.ts +9 -0
- package/@types/repositories/core/appProviderRepository.d.ts +4 -0
- package/@types/repositories/datePicker.d.ts +18 -0
- package/@types/repositories/form.d.ts +66 -0
- package/@types/repositories/htmlClassRepository.d.ts +1 -0
- package/@types/repositories/index.d.ts +9 -0
- package/@types/repositories/positionRepository.d.ts +10 -0
- package/@types/repositories/tableRepository.d.ts +2 -0
- package/@types/repositories/touchRepository.d.ts +4 -0
- package/@types/services/appBarService.d.ts +41 -0
- package/@types/services/appService.d.ts +6 -0
- package/@types/services/autocompleteService.d.ts +42 -0
- package/@types/services/backgroundScrollService.d.ts +4 -0
- package/@types/services/borderService.d.ts +12 -0
- package/@types/services/calendar/calendarEventService.d.ts +5 -0
- package/@types/services/calendar/calendarMonthlyService.d.ts +14 -0
- package/@types/services/calendar/calendarService.d.ts +8 -0
- package/@types/services/calendar/calendarWeeklyService.d.ts +28 -0
- package/@types/services/calendar/index.d.ts +8 -0
- package/@types/services/calendar/useCalendarDateFormatters.d.ts +6 -0
- package/@types/services/calendar/useCalendarEventHandlers.d.ts +19 -0
- package/@types/services/calendar/useCalendarWeeklyAllDayEvents.d.ts +20 -0
- package/@types/services/calendar/useCalendarWeeklyEventPositioning.d.ts +23 -0
- package/@types/services/colorService.d.ts +19 -0
- package/@types/services/columnService.d.ts +8 -0
- package/@types/services/componentDefaultsService.d.ts +1 -0
- package/@types/services/componentThemeService.d.ts +6 -0
- package/@types/services/core/activatorService.d.ts +16 -0
- package/@types/services/core/clickOutsideService.d.ts +9 -0
- package/@types/services/core/contentService.d.ts +13 -0
- package/@types/services/core/expandableItemCoreService.d.ts +4 -0
- package/@types/services/core/groupCoreItemService.d.ts +11 -0
- package/@types/services/core/groupCoreService.d.ts +16 -0
- package/@types/services/core/index.d.ts +9 -0
- package/@types/services/core/layoutCoreService.d.ts +21 -0
- package/@types/services/core/locationService.d.ts +11 -0
- package/@types/services/core/tableCellCommonService.d.ts +8 -0
- package/@types/services/datePicker/datePickerInputService.d.ts +9 -0
- package/@types/services/datePicker/datePickerItemCoreService.d.ts +30 -0
- package/@types/services/datePicker/datePickerItemDateService.d.ts +18 -0
- package/@types/services/datePicker/datePickerItemMonthService.d.ts +17 -0
- package/@types/services/datePicker/datePickerItemSwitchService.d.ts +11 -0
- package/@types/services/datePicker/datePickerItemTitleService.d.ts +8 -0
- package/@types/services/datePicker/datePickerItemYearService.d.ts +17 -0
- package/@types/services/datePicker/datePickerService.d.ts +7 -0
- package/@types/services/datePicker/index.d.ts +7 -0
- package/@types/services/dialogService.d.ts +32 -0
- package/@types/services/disabledService.d.ts +12 -0
- package/@types/services/displayService.d.ts +24 -0
- package/@types/services/elevationService.d.ts +6 -0
- package/@types/services/expandableItemService.d.ts +5 -0
- package/@types/services/expandableService.d.ts +5 -0
- package/@types/services/formInputService.d.ts +8 -0
- package/@types/services/groupItemService.d.ts +10 -0
- package/@types/services/groupService.d.ts +16 -0
- package/@types/services/index.d.ts +43 -0
- package/@types/services/layoutProviderService.d.ts +28 -0
- package/@types/services/layoutService.d.ts +24 -0
- package/@types/services/linkService.d.ts +21 -0
- package/@types/services/listMediaItemService.d.ts +8 -0
- package/@types/services/measurableStylesService.d.ts +11 -0
- package/@types/services/menuService.d.ts +35 -0
- package/@types/services/navigationDrawerResizeService.d.ts +10 -0
- package/@types/services/navigationDrawerService.d.ts +6 -0
- package/@types/services/positionService.d.ts +10 -0
- package/@types/services/resizeService.d.ts +4 -0
- package/@types/services/scrollService.d.ts +8 -0
- package/@types/services/scrollableService.d.ts +15 -0
- package/@types/services/singleGroupItemService.d.ts +10 -0
- package/@types/services/singleGroupService.d.ts +34 -0
- package/@types/services/sizeService.d.ts +12 -0
- package/@types/services/slideGroupService.d.ts +19 -0
- package/@types/services/table/index.d.ts +3 -0
- package/@types/services/table/tableBodyCellService.d.ts +9 -0
- package/@types/services/table/tableHeadCellService.d.ts +8 -0
- package/@types/services/table/tableService.d.ts +179 -0
- package/@types/services/tagService.d.ts +9 -0
- package/@types/services/textColorService.d.ts +15 -0
- package/@types/services/themeService.d.ts +5 -0
- package/@types/services/toolbarService.d.ts +7 -0
- package/@types/services/touchService.d.ts +2 -0
- package/@types/store/index.d.ts +5 -0
- package/@types/types/app.d.ts +36 -0
- package/@types/types/autocomplete.d.ts +7 -0
- package/@types/types/breadcrumbs.d.ts +8 -0
- package/@types/types/button.d.ts +1 -0
- package/@types/types/calendar.d.ts +61 -0
- package/@types/types/core/color.d.ts +2 -0
- package/@types/types/core/emit.d.ts +1 -0
- package/@types/types/core/form.d.ts +2 -0
- package/@types/types/core/group.d.ts +1 -0
- package/@types/types/core/index.d.ts +4 -0
- package/@types/types/datePicker.d.ts +12 -0
- package/@types/types/display.d.ts +9 -0
- package/@types/types/emits.d.ts +17 -0
- package/@types/types/form.d.ts +9 -0
- package/@types/types/grids.d.ts +2 -0
- package/@types/types/html.d.ts +1 -0
- package/@types/types/icon.d.ts +1 -0
- package/@types/types/index.d.ts +24 -0
- package/@types/types/input.d.ts +3 -0
- package/@types/types/location.d.ts +2 -0
- package/@types/types/materialDesignIcon.d.ts +2 -0
- package/@types/types/menu.d.ts +9 -0
- package/@types/types/resize.d.ts +12 -0
- package/@types/types/scroll.d.ts +26 -0
- package/@types/types/select.d.ts +6 -0
- package/@types/types/size.d.ts +2 -0
- package/@types/types/table.d.ts +39 -0
- package/@types/types/tag.d.ts +1 -0
- package/@types/types/toolbar.d.ts +2 -0
- package/@types/types/touch.d.ts +28 -0
- package/@types/validators/index.d.ts +1 -0
- package/@types/validators/numeric.d.ts +1 -0
- package/@types/vendors/dayjs.d.ts +2 -0
- package/@types/vendors/merge.d.ts +2 -0
- package/@types/vite.config.d.ts +2 -0
- package/@types/vitest.config.d.ts +2 -0
- package/README.md +210 -2
- package/dist/base.css +7282 -0
- package/dist/base.css.map +1 -0
- package/dist/s-ui.css +2 -0
- package/dist/s-ui.js +8976 -0
- package/dist/s-ui.umd.cjs +1 -0
- package/dist/styles/_helpers.scss +9 -0
- package/dist/styles/components/appBar/_variables.scss +4 -0
- package/dist/styles/components/appBar/index.scss +1 -0
- package/dist/styles/components/button/_variables.scss +51 -0
- package/dist/styles/components/button/index.scss +2 -0
- package/dist/styles/components/button/mixins.scss +60 -0
- package/dist/styles/components/cards/index.scss +1 -0
- package/dist/styles/components/cards/variables.scss +5 -0
- package/dist/styles/components/icon/_variables.scss +14 -0
- package/dist/styles/components/icon/index.scss +1 -0
- package/dist/styles/components/index.scss +10 -0
- package/dist/styles/components/layout/_mixins.scss +7 -0
- package/dist/styles/components/layout/_variables.scss +6 -0
- package/dist/styles/components/layout/index.scss +2 -0
- package/dist/styles/components/list/_mixins.scss +53 -0
- package/dist/styles/components/list/index.scss +1 -0
- package/dist/styles/components/menu/_mixins.scss +11 -0
- package/dist/styles/components/menu/index.scss +1 -0
- package/dist/styles/components/table/_mixins.scss +51 -0
- package/dist/styles/components/table/index.scss +1 -0
- package/dist/styles/components/toggleButton/_variables.scss +4 -0
- package/dist/styles/components/toggleButton/index.scss +1 -0
- package/dist/styles/components/window/_variables.scss +2 -0
- package/dist/styles/components/window/index.scss +1 -0
- package/dist/styles/generic/_common.scss +95 -0
- package/dist/styles/generic/_reset.scss +357 -0
- package/dist/styles/generic/_transitions.scss +83 -0
- package/dist/styles/generic/index.scss +3 -0
- package/dist/styles/index.scss +6 -0
- package/dist/styles/lib/_functions.scss +86 -0
- package/dist/styles/lib/index.scss +1 -0
- package/dist/styles/mixins/_app.scss +13 -0
- package/dist/styles/mixins/_border.scss +104 -0
- package/dist/styles/mixins/_dark.scss +31 -0
- package/dist/styles/mixins/_display.scss +9 -0
- package/dist/styles/mixins/_elevation.scss +15 -0
- package/dist/styles/mixins/_grids.scss +66 -0
- package/dist/styles/mixins/_media.scss +14 -0
- package/dist/styles/mixins/_text.scss +44 -0
- package/dist/styles/mixins/_utilities.scss +68 -0
- package/dist/styles/mixins/index.scss +10 -0
- package/dist/styles/modules/breakpoints.module.scss +10 -0
- package/dist/styles/tools/_breakpoint.scss +20 -0
- package/dist/styles/tools/_color.scss +35 -0
- package/dist/styles/tools/index.scss +2 -0
- package/dist/styles/variables/_border.scss +19 -0
- package/dist/styles/variables/_colors.scss +34 -0
- package/dist/styles/variables/_elevations.scss +98 -0
- package/dist/styles/variables/_font.scss +8 -0
- package/dist/styles/variables/_grid.scss +36 -0
- package/dist/styles/variables/_headings.scss +100 -0
- package/dist/styles/variables/_spacers.scss +17 -0
- package/dist/styles/variables/_transitions.scss +16 -0
- package/dist/styles/variables/_utilities.scss +360 -0
- package/dist/styles/variables/index.scss +9 -0
- package/package.json +68 -4
- package/sui-plugin/.claude-plugin/plugin.json +10 -0
- package/sui-plugin/README.md +73 -0
- package/sui-plugin/skills/sui-component/SKILL.md +133 -0
- package/sui-plugin/skills/sui-component/references/alert.md +53 -0
- package/sui-plugin/skills/sui-component/references/autocomplete.md +110 -0
- package/sui-plugin/skills/sui-component/references/badge.md +80 -0
- package/sui-plugin/skills/sui-component/references/breadcrumbs.md +67 -0
- package/sui-plugin/skills/sui-component/references/button.md +74 -0
- package/sui-plugin/skills/sui-component/references/calendar.md +120 -0
- package/sui-plugin/skills/sui-component/references/cards.md +97 -0
- package/sui-plugin/skills/sui-component/references/carousel.md +113 -0
- package/sui-plugin/skills/sui-component/references/chip.md +68 -0
- package/sui-plugin/skills/sui-component/references/date-picker.md +140 -0
- package/sui-plugin/skills/sui-component/references/dialog.md +82 -0
- package/sui-plugin/skills/sui-component/references/divider.md +52 -0
- package/sui-plugin/skills/sui-component/references/droppable.md +68 -0
- package/sui-plugin/skills/sui-component/references/expansion-panels.md +108 -0
- package/sui-plugin/skills/sui-component/references/form.md +175 -0
- package/sui-plugin/skills/sui-component/references/icon.md +61 -0
- package/sui-plugin/skills/sui-component/references/image.md +56 -0
- package/sui-plugin/skills/sui-component/references/layout.md +226 -0
- package/sui-plugin/skills/sui-component/references/list.md +153 -0
- package/sui-plugin/skills/sui-component/references/menu.md +74 -0
- package/sui-plugin/skills/sui-component/references/overlay.md +48 -0
- package/sui-plugin/skills/sui-component/references/progress.md +78 -0
- package/sui-plugin/skills/sui-component/references/sheet.md +58 -0
- package/sui-plugin/skills/sui-component/references/slide-group.md +123 -0
- package/sui-plugin/skills/sui-component/references/snackbar.md +59 -0
- package/sui-plugin/skills/sui-component/references/split-view.md +59 -0
- package/sui-plugin/skills/sui-component/references/stepper.md +92 -0
- package/sui-plugin/skills/sui-component/references/table.md +151 -0
- package/sui-plugin/skills/sui-component/references/tabs.md +88 -0
- package/sui-plugin/skills/sui-component/references/toggle-button-group.md +109 -0
- package/sui-plugin/skills/sui-component/references/toolbar.md +101 -0
- package/sui-plugin/skills/sui-component/references/tooltip.md +65 -0
- package/sui-plugin/skills/sui-component/references/window.md +75 -0
- package/sui-plugin/skills/sui-form/SKILL.md +225 -0
- package/sui-plugin/skills/sui-getting-started/SKILL.md +374 -0
- package/sui-plugin/skills/sui-layout/SKILL.md +111 -0
- package/sui-plugin/skills/sui-utilities/SKILL.md +40 -0
- package/sui-plugin/skills/sui-utilities/docs/classes.md +487 -0
- package/sui-plugin/skills/sui-utilities/docs/directives.md +200 -0
- package/sui-plugin/skills/sui-utilities/docs/helpers.md +583 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# SCarousel
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SCarousel, SCarouselItem } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Image/content slider with delimiter dots, prev/next arrows, swipe and auto-play. **Auto-play is ON by default** (`cycle: true`) and the default height is `500`.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsCarousel.d.ts`, `propsCarouselItem.d.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## SCarousel
|
|
12
|
+
|
|
13
|
+
### Props
|
|
14
|
+
|
|
15
|
+
| Prop | Type | Default | Description |
|
|
16
|
+
|------|------|---------|-------------|
|
|
17
|
+
| `modelValue` | `string \| number \| boolean` | `undefined` | Active slide's `value` (use `v-model`) |
|
|
18
|
+
| `cycle` | `boolean` | `true` | Auto-advance through slides |
|
|
19
|
+
| `interval` | `number` | `6000` | Auto-advance interval in ms |
|
|
20
|
+
| `height` | `number \| string` | `500` | Carousel height (number = px) |
|
|
21
|
+
| `color` | `string` | `undefined` | Color of the active delimiter dot |
|
|
22
|
+
| `hideDelimiters` | `boolean` | `false` | Hide the navigation dots |
|
|
23
|
+
| `hideDelimiterBackground` | `boolean` | `false` | Hide the dots' background strip |
|
|
24
|
+
| `controlsBackgroundColor` | `string` | `'#0000004d'` | Background of the dots strip |
|
|
25
|
+
| `delimiterIcon` | `MaterialDesignIcon` | `'mdi-circle'` | Dot icon |
|
|
26
|
+
| `verticalDelimiters` | `boolean \| 'left' \| 'right'` | `undefined` | Stack dots vertically on the left/right edge |
|
|
27
|
+
| `hideArrows` | `boolean` | `false` | Hide prev/next arrows |
|
|
28
|
+
| `prevIcon` | `MaterialDesignIcon` | `'mdi-chevron-left'` | Previous arrow icon |
|
|
29
|
+
| `nextIcon` | `MaterialDesignIcon` | `'mdi-chevron-right'` | Next arrow icon |
|
|
30
|
+
| `touch` | `boolean \| TouchHandlers` | `true` | Swipe gestures |
|
|
31
|
+
| `noAnimation` | `boolean` | `false` | Disable the slide transition |
|
|
32
|
+
| `selectedClass` | `string` | `undefined` | Class for the active item |
|
|
33
|
+
| `tag` | `string` | `'div'` | Root HTML element |
|
|
34
|
+
|
|
35
|
+
Always looping and always one slide selected (`continuous` + `mandatory` are hard-wired). The `continuous` and `disabled` props exist in the type but have no effect on SCarousel.
|
|
36
|
+
|
|
37
|
+
### Slots
|
|
38
|
+
|
|
39
|
+
| Slot | Description |
|
|
40
|
+
|------|-------------|
|
|
41
|
+
| `default` | `SCarouselItem` components |
|
|
42
|
+
|
|
43
|
+
No `prev`/`next` slots on SCarousel.
|
|
44
|
+
|
|
45
|
+
### Events
|
|
46
|
+
|
|
47
|
+
| Event | Payload | Description |
|
|
48
|
+
|-------|---------|-------------|
|
|
49
|
+
| `update:modelValue` | slide `value` | Active slide changed (arrows, dots, swipe, auto-play) |
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## SCarouselItem
|
|
54
|
+
|
|
55
|
+
Each item renders an `SImage`. Your default-slot content is drawn as an overlay on top of the image.
|
|
56
|
+
|
|
57
|
+
| Prop | Type | Default | Description |
|
|
58
|
+
|------|------|---------|-------------|
|
|
59
|
+
| `value` | `string \| number \| boolean` | auto id | Slide identifier matched against the carousel `v-model` |
|
|
60
|
+
| `src` | `string \| null` | **required** | Image URL. Pass `:src="null"` for content-only slides |
|
|
61
|
+
| `alt` | `string \| null` | `undefined` | Image alt text |
|
|
62
|
+
| `objectFit` | `'fill' \| 'contain' \| 'cover' \| 'none' \| 'scale-down'` | `undefined` | Image fit |
|
|
63
|
+
| `aspectRatio` | `number \| null` | `undefined` | Image aspect ratio |
|
|
64
|
+
|
|
65
|
+
| Slot | Description |
|
|
66
|
+
|------|-------------|
|
|
67
|
+
| `default` | Overlay content on top of the image |
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Usage
|
|
72
|
+
|
|
73
|
+
```vue
|
|
74
|
+
<script setup lang="ts">
|
|
75
|
+
import { ref } from 'vue'
|
|
76
|
+
import { SCarousel, SCarouselItem } from '@khsura/sui'
|
|
77
|
+
|
|
78
|
+
const slide = ref(0)
|
|
79
|
+
const slides = [
|
|
80
|
+
{ src: '/slide1.jpg', title: 'Slide 1' },
|
|
81
|
+
{ src: '/slide2.jpg', title: 'Slide 2' },
|
|
82
|
+
]
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<template>
|
|
86
|
+
<!-- Auto-plays by default -->
|
|
87
|
+
<SCarousel v-model="slide" :height="400">
|
|
88
|
+
<SCarouselItem v-for="(item, i) in slides" :key="i" :value="i" :src="item.src" object-fit="cover">
|
|
89
|
+
<h2>{{ item.title }}</h2>
|
|
90
|
+
</SCarouselItem>
|
|
91
|
+
</SCarousel>
|
|
92
|
+
|
|
93
|
+
<!-- Static carousel, dots on the right -->
|
|
94
|
+
<SCarousel v-model="slide" :cycle="false" vertical-delimiters="right" hide-arrows>
|
|
95
|
+
<SCarouselItem v-for="(item, i) in slides" :key="i" :value="i" :src="item.src" />
|
|
96
|
+
</SCarousel>
|
|
97
|
+
|
|
98
|
+
<!-- Content-only slides -->
|
|
99
|
+
<SCarousel v-model="slide" :cycle="false" :height="200" no-animation>
|
|
100
|
+
<SCarouselItem v-for="n in 3" :key="n" :value="n" :src="null">Content {{ n }}</SCarouselItem>
|
|
101
|
+
</SCarousel>
|
|
102
|
+
</template>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Gotchas
|
|
106
|
+
|
|
107
|
+
| ❌ | ✅ |
|
|
108
|
+
|----|----|
|
|
109
|
+
| `<SCarousel>` and expecting a static slider | Add `:cycle="false"`. Auto-play is on by default |
|
|
110
|
+
| Nesting `<SImage>` inside `SCarouselItem` | Use the item's own `src` / `object-fit` props |
|
|
111
|
+
| `<SCarouselItem>` without `src` | `src` is required. Use `:src="null"` for text slides |
|
|
112
|
+
| Relying on `:key` as the identifier | Set `:value` explicitly. The key is not forwarded to the inner item |
|
|
113
|
+
| `<template #prev>` on SCarousel | Not supported. Only `prevIcon` / `nextIcon` |
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# SChip
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SChip } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Small pill for tags, filters or selections. Supports closable, clickable (`link`) and outlined styles.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsChip.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `color` | `string` | `undefined` | Preset name or CSS color |
|
|
14
|
+
| `colorThreshold` | `number` | `undefined` | Luminance threshold for automatic light/dark text |
|
|
15
|
+
| `size` | `'mini' \| 'small' \| 'default' \| 'large' \| 'extra'` | `undefined` | Preset size |
|
|
16
|
+
| `label` | `boolean` | `false` | Square "label" shape instead of a pill |
|
|
17
|
+
| `closable` | `boolean` | `false` | Show a close icon (`mdi-close`) |
|
|
18
|
+
| `link` | `boolean` | `false` | Clickable styling; required for `click` to be emitted |
|
|
19
|
+
| `disabled` | `boolean` | `false` | Disabled styling |
|
|
20
|
+
| `outlined` | `boolean` | `false` | Border style, text-colored |
|
|
21
|
+
| `underlined` | `boolean` | `false` | Underlined style |
|
|
22
|
+
| `borderRadius` | `'tile' \| 'rounded' \| number \| string` | `undefined` | Custom radius |
|
|
23
|
+
|
|
24
|
+
## Events
|
|
25
|
+
|
|
26
|
+
| Event | Payload | Description |
|
|
27
|
+
|-------|---------|-------------|
|
|
28
|
+
| `close` | — | Close icon clicked (or `on.close()` called from the `close` slot) |
|
|
29
|
+
| `click` | `Event` | Chip clicked — **only emitted when `link` is set** |
|
|
30
|
+
|
|
31
|
+
## Slots
|
|
32
|
+
|
|
33
|
+
| Slot | Scoped data | Description |
|
|
34
|
+
|------|-------------|-------------|
|
|
35
|
+
| `default` | — | Chip text |
|
|
36
|
+
| `close` | `{ on: { close } }` | Replaces the whole close icon, including its click handler. Only rendered when `closable` |
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
```vue
|
|
41
|
+
<SChip color="primary">Primary</SChip>
|
|
42
|
+
<SChip outlined color="secondary">Outlined</SChip>
|
|
43
|
+
<SChip label color="primary">Label</SChip>
|
|
44
|
+
<SChip link @click="selectFilter">Filter</SChip>
|
|
45
|
+
|
|
46
|
+
<SChip v-for="tag in tags" :key="tag" closable @close="tags = tags.filter((t) => t !== tag)">
|
|
47
|
+
{{ tag }}
|
|
48
|
+
</SChip>
|
|
49
|
+
|
|
50
|
+
<!-- Custom close icon: you must wire on.close yourself -->
|
|
51
|
+
<SChip closable @close="remove">
|
|
52
|
+
Tag
|
|
53
|
+
<template #close="{ on }">
|
|
54
|
+
<SIcon icon="mdi-close-circle" @click.stop="on.close" />
|
|
55
|
+
</template>
|
|
56
|
+
</SChip>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Gotchas
|
|
60
|
+
|
|
61
|
+
| ❌ | ✅ |
|
|
62
|
+
|----|----|
|
|
63
|
+
| `<SChip @click="fn">` without `link` | Add `link` — otherwise `click` never fires |
|
|
64
|
+
| `<template #close><SIcon .../></template>` | Use `#close="{ on }"` and call `on.close` — the slot replaces the built-in handler |
|
|
65
|
+
| `<SChip icon="..." />` | No icon prop — nest `<SIcon>` in the default slot |
|
|
66
|
+
|
|
67
|
+
- The chip root stops click propagation, so a parent's click handler will not fire when a chip is clicked.
|
|
68
|
+
- The default close icon is an `SIcon`; it renders nothing unless the app loads `@mdi/font`.
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# SDatePicker
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SDatePicker, datePickerModelFormats } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Inline date, month or year picker (rendered in an `SCard`) with min/max bounds.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsDatePicker.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `type` | `'date' \| 'month' \| 'year'` | `'date'` | Picker mode and model format (typed as required — always pass it) |
|
|
14
|
+
| `min` | `string` | Jan 1, 5 years before `today` | Earliest selectable value (`'YYYY-MM-DD'`, any `type`) |
|
|
15
|
+
| `max` | `string` | Dec 31, 5 years after `today` | Latest selectable value |
|
|
16
|
+
| `today` | `string` | current date | Date highlighted as "today" (`'YYYY-MM-DD'`) |
|
|
17
|
+
| `hideTitle` | `boolean` | `false` | Hide the title area |
|
|
18
|
+
| `dateFormat` | `string` | `'MMM D'` | dayjs format for the date in the title |
|
|
19
|
+
| `monthFormat` | `string` | `'MMMM'` | dayjs format for month labels |
|
|
20
|
+
| `yearFormat` | `string` | `'YYYY'` | dayjs format for years (title, switch, year list), e.g. `'YYYY年'`, `'YYYY [он]'` |
|
|
21
|
+
| `disabled` | `boolean` | `false` | Disables the **title** buttons only (see Gotchas) |
|
|
22
|
+
| `readonly` | `boolean` | `false` | Makes the **title** buttons read-only only |
|
|
23
|
+
| `dense` | `boolean` | `false` | Compact layout |
|
|
24
|
+
| `color` | `string` | `undefined` | Selected-item color |
|
|
25
|
+
| `colorThreshold` | `number` | `undefined` | Light/dark text threshold for the selected color |
|
|
26
|
+
| `theme` | `AppThemeType` | `undefined` | Per-component theme |
|
|
27
|
+
| `width` / `height` / `min*` / `max*` sizes | `string \| number` | `undefined` | Picker size (`minWidth`, `maxHeight`, …) |
|
|
28
|
+
|
|
29
|
+
## Model
|
|
30
|
+
|
|
31
|
+
`v-model` — `string | null`: `'YYYY-MM-DD'` (`type="date"`), `'YYYY-MM'` (`month`), `'YYYY'` (`year`). Changing `type` converts the current value.
|
|
32
|
+
|
|
33
|
+
## Events
|
|
34
|
+
|
|
35
|
+
| Event | Payload | Description |
|
|
36
|
+
|-------|---------|-------------|
|
|
37
|
+
| `update:modelValue` | `string` | Value selected |
|
|
38
|
+
| `change` | — (no payload) | Emitted on selection, before the model updates — read the `v-model` ref, not the event |
|
|
39
|
+
|
|
40
|
+
## Slots
|
|
41
|
+
|
|
42
|
+
None.
|
|
43
|
+
|
|
44
|
+
## Format constants
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
import { datePickerModelFormats } from '@khsura/sui'
|
|
48
|
+
|
|
49
|
+
datePickerModelFormats.date // 'YYYY-MM-DD'
|
|
50
|
+
datePickerModelFormats.month // 'YYYY-MM'
|
|
51
|
+
datePickerModelFormats.year // 'YYYY'
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Usage
|
|
55
|
+
|
|
56
|
+
```vue
|
|
57
|
+
<script setup lang="ts">
|
|
58
|
+
import { ref } from 'vue'
|
|
59
|
+
import dayjs from 'dayjs'
|
|
60
|
+
import { datePickerModelFormats } from '@khsura/sui'
|
|
61
|
+
|
|
62
|
+
const selectedDate = ref(dayjs().format(datePickerModelFormats.date))
|
|
63
|
+
const selectedMonth = ref(dayjs().format(datePickerModelFormats.month))
|
|
64
|
+
const birthDate = ref<string | null>(null)
|
|
65
|
+
</script>
|
|
66
|
+
|
|
67
|
+
<template>
|
|
68
|
+
<SDatePicker v-model="selectedDate" type="date" color="primary" />
|
|
69
|
+
<SDatePicker v-model="selectedMonth" type="month" dense hide-title />
|
|
70
|
+
|
|
71
|
+
<!-- Range wider than ±5 years: pass min/max -->
|
|
72
|
+
<SDatePicker v-model="birthDate" type="date" min="1920-01-01" :max="dayjs().format('YYYY-MM-DD')" />
|
|
73
|
+
</template>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
For a popup picker use `SDatePickerInput` (below) rather than wiring `SMenu` yourself.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
# SDatePickerInput
|
|
81
|
+
|
|
82
|
+
**Import:** `import { SDatePickerInput } from '@khsura/sui'`
|
|
83
|
+
|
|
84
|
+
Text field (type a value or pick from a popup `SDatePicker`), with optional prev/next **carousel** buttons that step the value. Registers with a parent `SForm`.
|
|
85
|
+
|
|
86
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsDatePickerInput.d.ts`
|
|
87
|
+
|
|
88
|
+
## Props
|
|
89
|
+
|
|
90
|
+
| Prop | Type | Default | Description |
|
|
91
|
+
|------|------|---------|-------------|
|
|
92
|
+
| `type` | `'date' \| 'month' \| 'year'` | `'date'` | Picker mode and model format |
|
|
93
|
+
| `label` | `string \| null` | `undefined` | Field label |
|
|
94
|
+
| `placeholder` | `string \| null` | model format | Input placeholder |
|
|
95
|
+
| `min` / `max` | `string` | ±5 years around `today` (picker) | Bounds for the popup and carousel buttons |
|
|
96
|
+
| `rules` | `((value) => true \| string)[]` | `undefined` | Validation rules |
|
|
97
|
+
| `hideDetails` | `boolean` | `undefined` | Hide label and error area |
|
|
98
|
+
| `hideError` | `boolean` | `undefined` | Hide the error message |
|
|
99
|
+
| `id` | `string` | auto | Input id |
|
|
100
|
+
| `disabled` / `readonly` | `boolean \| null` | `undefined` | Native input states; disable carousel buttons |
|
|
101
|
+
| `size` | `'mini' \| 'small' \| 'default' \| 'large' \| 'extra'` | `undefined` | Field size (font never below 16px) |
|
|
102
|
+
| `simple` | `boolean \| null` | `undefined` | Borderless field |
|
|
103
|
+
| `tile` | `boolean` | `false` | Square corners |
|
|
104
|
+
| `block` | `boolean` | `false` | Stretch to container width (otherwise hugs the value) |
|
|
105
|
+
| `width` / `maxWidth` / `minWidth` | `string \| number` | `undefined` | Field size; the popup stays 280px wide |
|
|
106
|
+
| `carousel` | `boolean` | `false` | Prev/next buttons stepping one day / month / year |
|
|
107
|
+
| `carouselPrevIcon` / `carouselNextIcon` | `MaterialDesignIcon` | `'mdi-chevron-left'` / `'mdi-chevron-right'` | Button icons |
|
|
108
|
+
| `carouselPrevAriaLabel` / `carouselNextAriaLabel` | `string \| null` | `'Previous'` / `'Next'` | Button labels |
|
|
109
|
+
| `today`, `dateFormat`, `monthFormat`, `yearFormat`, `dense`, `color` | — | as SDatePicker | Forwarded to the popup picker |
|
|
110
|
+
|
|
111
|
+
`hideTitle`, `colorThreshold` and the picker `height` are not forwarded (the popup always hides its title).
|
|
112
|
+
|
|
113
|
+
## Events
|
|
114
|
+
|
|
115
|
+
| Event | Payload | Description |
|
|
116
|
+
|-------|---------|-------------|
|
|
117
|
+
| `update:modelValue` | `string \| null` | Value changed |
|
|
118
|
+
| `change` | `string \| null` | Value committed (typed + Enter/blur, picked, or stepped) |
|
|
119
|
+
| `update:error` | `boolean` | Validation state |
|
|
120
|
+
| `update:errors` | `string[]` | Error messages |
|
|
121
|
+
| `update:dirty` | `boolean` | Dirty state |
|
|
122
|
+
|
|
123
|
+
## Usage
|
|
124
|
+
|
|
125
|
+
```vue
|
|
126
|
+
<SDatePickerInput v-model="date" label="Date" :rules="[v => !!v || 'Required']" />
|
|
127
|
+
<SDatePickerInput v-model="month" type="month" label="Month" carousel />
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Gotchas
|
|
131
|
+
|
|
132
|
+
| ❌ | ✅ |
|
|
133
|
+
|----|----|
|
|
134
|
+
| `<SDatePicker disabled>` to lock the picker | `disabled`/`readonly` only affect the title; hide the picker or use `SDatePickerInput disabled` |
|
|
135
|
+
| Birth-date picker with default bounds | Pass `min`/`max` — the default range is only ±5 years around today |
|
|
136
|
+
| Trusting typed input to respect `min`/`max` | Typed text is only format-checked; add a `rules` entry for the range |
|
|
137
|
+
| `@change="(v) => …"` on `SDatePicker` | `SDatePicker`'s `change` has no payload; use `v-model` / `@update:model-value` |
|
|
138
|
+
|
|
139
|
+
- Older versions: if omitting `min` or `max` leaves only today selectable, upgrade or pass both bounds explicitly.
|
|
140
|
+
- Typed text must match the model format exactly (`YYYY-MM-DD` etc.); invalid text reverts to the last value.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# SDialog
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SDialog } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Modal with a scrim, controlled by `v-model`. Centered by default; `location="bottom"` gives a bottom sheet; `fullscreen` fills the viewport. Background page scroll is locked while open.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsDialog.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `persistent` | `boolean` | `false` | Clicking outside does not close the dialog |
|
|
14
|
+
| `scrollable` | `boolean` | `false` | With an `SCard` child: title/actions stay fixed, `SCardText` scrolls |
|
|
15
|
+
| `fullscreen` | `boolean` | `false` | Fill the viewport |
|
|
16
|
+
| `location` | `string \| string[]` | `undefined` | Only `'bottom'` has an effect (bottom sheet); anything else = centered |
|
|
17
|
+
| `elevation` | `0–24 \| ''` | `undefined` | Shadow depth (a light shadow is applied by default) |
|
|
18
|
+
| `zIndex` | `number` | `undefined` | z-index of the overlay layer |
|
|
19
|
+
| `disabled` | `boolean` | `false` | Passed to the activator via `attrs` (disables the trigger) |
|
|
20
|
+
| `width` / `height` | `string \| number` | `undefined` | Content dimensions |
|
|
21
|
+
| `maxWidth` / `maxHeight` / `minWidth` / `minHeight` | `string \| number` | `undefined` | Constraints (max-height defaults to 90% when not fullscreen) |
|
|
22
|
+
|
|
23
|
+
## Model
|
|
24
|
+
|
|
25
|
+
`v-model: boolean` — open/closed.
|
|
26
|
+
|
|
27
|
+
## Slots
|
|
28
|
+
|
|
29
|
+
| Slot | Scoped data | Description |
|
|
30
|
+
|------|-------------|-------------|
|
|
31
|
+
| `activator` | `{ on, attrs }` | Trigger. Bind **both** `v-on="on"` and `v-bind="attrs"` |
|
|
32
|
+
| `default` | — | Dialog content |
|
|
33
|
+
|
|
34
|
+
## Events
|
|
35
|
+
|
|
36
|
+
None — use `v-model`.
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
```vue
|
|
41
|
+
<SDialog v-model="isOpen" :max-width="480">
|
|
42
|
+
<template #activator="{ on, attrs }">
|
|
43
|
+
<SButton v-on="on" v-bind="attrs" color="primary">Open</SButton>
|
|
44
|
+
</template>
|
|
45
|
+
<SCard>
|
|
46
|
+
<SCardTitle>Confirm</SCardTitle>
|
|
47
|
+
<SCardText>Are you sure?</SCardText>
|
|
48
|
+
<SCardActions>
|
|
49
|
+
<SButton variant="text" @click="isOpen = false">Cancel</SButton>
|
|
50
|
+
<SButton color="primary" @click="confirm">OK</SButton>
|
|
51
|
+
</SCardActions>
|
|
52
|
+
</SCard>
|
|
53
|
+
</SDialog>
|
|
54
|
+
|
|
55
|
+
<!-- Programmatic -->
|
|
56
|
+
<SButton @click="sheet = true">Open sheet</SButton>
|
|
57
|
+
<SDialog v-model="sheet" location="bottom">
|
|
58
|
+
<SCard><SCardText>Bottom sheet</SCardText></SCard>
|
|
59
|
+
</SDialog>
|
|
60
|
+
|
|
61
|
+
<!-- Long content -->
|
|
62
|
+
<SDialog v-model="terms" scrollable :max-width="500">
|
|
63
|
+
<SCard>
|
|
64
|
+
<SCardTitle>Terms</SCardTitle>
|
|
65
|
+
<SCardText>…long text…</SCardText>
|
|
66
|
+
<SCardActions><SButton @click="terms = false">Close</SButton></SCardActions>
|
|
67
|
+
</SCard>
|
|
68
|
+
</SDialog>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Gotchas
|
|
72
|
+
|
|
73
|
+
| ❌ | ✅ |
|
|
74
|
+
|----|----|
|
|
75
|
+
| `<SDialog title="Confirm">` | No `title` prop — use `SCardTitle` inside an `SCard` |
|
|
76
|
+
| Plain text / `<div>` as the only child | The dialog has **no background** — wrap content in `SCard` or `SSheet` |
|
|
77
|
+
| `v-on="on"` only | Bind both `v-on="on"` and `v-bind="attrs"` |
|
|
78
|
+
| `persistent` with no close button | Always provide an explicit close action |
|
|
79
|
+
|
|
80
|
+
- The app must be wrapped in `<SApp>`: dialogs teleport into the overlay container `SApp` renders.
|
|
81
|
+
- There is no Escape-key handling and no `close` event.
|
|
82
|
+
- `borderless`, `scrollableBackground` and `closeOnClick` appear in the prop types but currently have no effect — do not rely on them.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# SDivider
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SDivider } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
A thin horizontal or vertical rule. Renders an `<hr role="separator">` with the matching `aria-orientation`.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsDivider.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `vertical` | `boolean` | `false` | Render as a vertical divider (stretches to the parent's height) |
|
|
14
|
+
|
|
15
|
+
## Slots
|
|
16
|
+
|
|
17
|
+
None.
|
|
18
|
+
|
|
19
|
+
## Events
|
|
20
|
+
|
|
21
|
+
None.
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
```vue
|
|
26
|
+
<!-- Horizontal divider (default) -->
|
|
27
|
+
<SDivider />
|
|
28
|
+
|
|
29
|
+
<!-- Vertical divider: parent must be flex and have a height -->
|
|
30
|
+
<div style="display: flex; align-items: center; height: 40px;">
|
|
31
|
+
<span>Left</span>
|
|
32
|
+
<SDivider vertical />
|
|
33
|
+
<span>Right</span>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<!-- Between list items -->
|
|
37
|
+
<SList>
|
|
38
|
+
<SListItem>Item 1</SListItem>
|
|
39
|
+
<SDivider />
|
|
40
|
+
<SListItem>Item 2</SListItem>
|
|
41
|
+
</SList>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Gotchas
|
|
45
|
+
|
|
46
|
+
- It is a real `<hr>`, so the browser's auto side margins stay. Inside a flex **column** (`flex-direction: column`, e.g. with `align-items: center`) it collapses to **zero width** and disappears. Give it a width or stretch it.
|
|
47
|
+
- A vertical divider takes its height from the parent. If the parent has no height, nothing shows.
|
|
48
|
+
|
|
49
|
+
| ❌ | ✅ |
|
|
50
|
+
|----|----|
|
|
51
|
+
| `<div style="display:flex;flex-direction:column;align-items:center"><SDivider /></div>` | `<SDivider style="align-self: stretch" />` or `<SDivider style="width: 100%" />` |
|
|
52
|
+
| `<SDivider vertical />` in a parent with no height | Give the flex parent a height, or use `align-items: stretch` |
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# SDroppable
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SDroppable } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Drag-and-drop drop zone (files or any dragged content). Renders a plain `<div>` you style yourself.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsDroppable.d.ts`
|
|
8
|
+
|
|
9
|
+
## Props
|
|
10
|
+
|
|
11
|
+
| Prop | Type | Default | Description |
|
|
12
|
+
|------|------|---------|-------------|
|
|
13
|
+
| `disabled` | `boolean \| null` | `undefined` | Stop emitting `drop` and keep `isDraggingOver` false |
|
|
14
|
+
| `readonly` | `boolean \| null` | `undefined` | Typed (shared prop) but has no effect |
|
|
15
|
+
| `width` / `height` | `string \| number \| null` | `undefined` | Size (numbers → px) |
|
|
16
|
+
| `minWidth` / `maxWidth` | `string \| number \| null` | `undefined` | Width limits |
|
|
17
|
+
| `minHeight` / `maxHeight` | `string \| number \| null` | `undefined` | Height limits |
|
|
18
|
+
|
|
19
|
+
## Events
|
|
20
|
+
|
|
21
|
+
| Event | Payload | Description |
|
|
22
|
+
|-------|---------|-------------|
|
|
23
|
+
| `drop` | `DragEvent` | Content dropped (not emitted when `disabled` or the browser lacks DnD support) |
|
|
24
|
+
|
|
25
|
+
## Slots
|
|
26
|
+
|
|
27
|
+
| Slot | Scoped data | Description |
|
|
28
|
+
|------|-------------|-------------|
|
|
29
|
+
| `default` | `{ isDraggingOver, disabled, supportsDragAndDrop, attrs }` | Drop-zone content. `attrs` bundles the other three |
|
|
30
|
+
|
|
31
|
+
| Property | Type | Description |
|
|
32
|
+
|----------|------|-------------|
|
|
33
|
+
| `isDraggingOver` | `boolean` | A drag is over the zone (always `false` when disabled) |
|
|
34
|
+
| `disabled` | `boolean` | Current `disabled` prop |
|
|
35
|
+
| `supportsDragAndDrop` | `boolean` | Browser supports the DnD API |
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
```vue
|
|
40
|
+
<script setup lang="ts">
|
|
41
|
+
const handleDrop = (event: DragEvent) => {
|
|
42
|
+
const files = Array.from(event.dataTransfer?.files ?? [])
|
|
43
|
+
uploadFiles(files)
|
|
44
|
+
}
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
48
|
+
<SDroppable :height="200" @drop="handleDrop">
|
|
49
|
+
<template #default="{ isDraggingOver, supportsDragAndDrop }">
|
|
50
|
+
<div
|
|
51
|
+
v-if="supportsDragAndDrop"
|
|
52
|
+
style="border: 2px dashed; border-radius: 8px; height: 100%;"
|
|
53
|
+
>
|
|
54
|
+
<SIcon icon="mdi-cloud-upload" :color="isDraggingOver ? 'primary' : undefined" />
|
|
55
|
+
<p>{{ isDraggingOver ? 'Release to upload' : 'Drag & drop files here' }}</p>
|
|
56
|
+
</div>
|
|
57
|
+
<input v-else type="file" multiple @change="handleFileInput" />
|
|
58
|
+
</template>
|
|
59
|
+
</SDroppable>
|
|
60
|
+
</template>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Gotchas
|
|
64
|
+
|
|
65
|
+
- The drop zone has no built-in look: draw the border/background yourself. While dragging over it, the root gets class `s_droppable--drag` (opacity 0.6).
|
|
66
|
+
- `drop` gives the raw `DragEvent`; read `event.dataTransfer?.files`. Default browser handling (opening the file) is already prevented.
|
|
67
|
+
- There is no click-to-upload — add your own `<input type="file">` or button.
|
|
68
|
+
- No `accept`/file-type filtering: validate files in your `drop` handler.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# SExpansionPanels
|
|
2
|
+
|
|
3
|
+
**Import:** `import { SExpansionPanels, SExpansionPanel, SExpansionPanelHeader, SExpansionPanelContent } from '@khsura/sui'`
|
|
4
|
+
|
|
5
|
+
Accordion-style collapsible sections.
|
|
6
|
+
|
|
7
|
+
Types: `node_modules/@khsura/sui/@types/definitions/props/propsExpansionPanels.d.ts`
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## SExpansionPanels
|
|
12
|
+
|
|
13
|
+
### Props
|
|
14
|
+
|
|
15
|
+
| Prop | Type | Default | Description |
|
|
16
|
+
|------|------|---------|-------------|
|
|
17
|
+
| `modelValue` | `number[] \| null` | `[]` | `index` values of open panels (use `v-model`) |
|
|
18
|
+
| `multiple` | `boolean` | `false` | Allow several panels open at once |
|
|
19
|
+
| `mandatory` | `boolean` | `false` | Keep at least one panel open. Opens the first one if the model is empty |
|
|
20
|
+
| `expandIcon` | `MaterialDesignIcon` | `'mdi-chevron-down'` | Header toggle icon |
|
|
21
|
+
| `expandIconSize` | `SizePropertyType` | `undefined` | Toggle icon size |
|
|
22
|
+
|
|
23
|
+
### Slots / Events
|
|
24
|
+
|
|
25
|
+
| Slot | Description |
|
|
26
|
+
|------|-------------|
|
|
27
|
+
| `default` | `SExpansionPanel` components |
|
|
28
|
+
|
|
29
|
+
| Event | Payload | Description |
|
|
30
|
+
|-------|---------|-------------|
|
|
31
|
+
| `update:modelValue` | `number[]` | Open panels changed |
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## SExpansionPanel
|
|
36
|
+
|
|
37
|
+
| Prop | Type | Default | Description |
|
|
38
|
+
|------|------|---------|-------------|
|
|
39
|
+
| `index` | `number` | vnode `key`, else an auto id | Panel identity, the value stored in the `v-model` array |
|
|
40
|
+
|
|
41
|
+
| Slot | Scoped data | Description |
|
|
42
|
+
|------|-------------|-------------|
|
|
43
|
+
| `default` | `{ isExpanded }` | `SExpansionPanelHeader` + `SExpansionPanelContent` |
|
|
44
|
+
|
|
45
|
+
## SExpansionPanelHeader
|
|
46
|
+
|
|
47
|
+
Clickable row that toggles its panel.
|
|
48
|
+
|
|
49
|
+
| Slot | Scoped data | Description |
|
|
50
|
+
|------|-------------|-------------|
|
|
51
|
+
| `default` | `{ open }` | Header label |
|
|
52
|
+
| `actions` | `{ isExpanded }` | Replaces the expand icon |
|
|
53
|
+
| `top` | none | Content above the header row |
|
|
54
|
+
|
|
55
|
+
## SExpansionPanelContent
|
|
56
|
+
|
|
57
|
+
| Slot | Scoped data | Description |
|
|
58
|
+
|------|-------------|-------------|
|
|
59
|
+
| `default` | `{ isExpanded }` | Collapsible body |
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
```vue
|
|
66
|
+
<script setup lang="ts">
|
|
67
|
+
import { ref } from 'vue'
|
|
68
|
+
import { SExpansionPanels, SExpansionPanel, SExpansionPanelHeader, SExpansionPanelContent, SButton } from '@khsura/sui'
|
|
69
|
+
|
|
70
|
+
const items = [
|
|
71
|
+
{ title: 'Shipping', body: '…' },
|
|
72
|
+
{ title: 'Returns', body: '…' },
|
|
73
|
+
]
|
|
74
|
+
const open = ref<number[]>([0])
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<template>
|
|
78
|
+
<SExpansionPanels v-model="open" multiple>
|
|
79
|
+
<SExpansionPanel v-for="(item, i) in items" :key="i" :index="i">
|
|
80
|
+
<SExpansionPanelHeader>{{ item.title }}</SExpansionPanelHeader>
|
|
81
|
+
<SExpansionPanelContent>{{ item.body }}</SExpansionPanelContent>
|
|
82
|
+
</SExpansionPanel>
|
|
83
|
+
</SExpansionPanels>
|
|
84
|
+
|
|
85
|
+
<SButton @click="open = items.map((_, i) => i)">Expand all</SButton>
|
|
86
|
+
<SButton @click="open = []">Collapse all</SButton>
|
|
87
|
+
|
|
88
|
+
<!-- Static panels: give each an index -->
|
|
89
|
+
<SExpansionPanels v-model="open" mandatory>
|
|
90
|
+
<SExpansionPanel :index="0">
|
|
91
|
+
<SExpansionPanelHeader>Section 1</SExpansionPanelHeader>
|
|
92
|
+
<SExpansionPanelContent>Content 1</SExpansionPanelContent>
|
|
93
|
+
</SExpansionPanel>
|
|
94
|
+
<SExpansionPanel :index="1">
|
|
95
|
+
<SExpansionPanelHeader>Section 2</SExpansionPanelHeader>
|
|
96
|
+
<SExpansionPanelContent>Content 2</SExpansionPanelContent>
|
|
97
|
+
</SExpansionPanel>
|
|
98
|
+
</SExpansionPanels>
|
|
99
|
+
</template>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Gotchas
|
|
103
|
+
|
|
104
|
+
| ❌ | ✅ |
|
|
105
|
+
|----|----|
|
|
106
|
+
| `<SExpansionPanel>` with no `index`/`key` + `v-model="[0]"` | Set `:index="i"`. Without it the identity is an auto-generated id and the model never matches |
|
|
107
|
+
| Assuming the model holds DOM position | It holds each panel's `index` prop value |
|
|
108
|
+
| `disabled` on a panel | Not implemented for panels. Control it with `v-model` instead |
|