origam 2.5.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/assets/css/tokens/dark.css +3788 -3768
- package/dist/src/assets/css/tokens/light.css +1894 -1884
- package/dist/src/assets/css/tokens/primitive.css +2 -0
- package/dist/src/assets/css/tokens/themes-all.css +44226 -0
- package/dist/src/assets/locales/en.json +34 -2
- package/dist/src/assets/locales/fr.json +34 -2
- package/dist/src/assets/scss/tokens/_dark.scss +1894 -1884
- package/dist/src/assets/scss/tokens/_light.scss +1894 -1884
- package/dist/src/assets/scss/tokens/_primitive.scss +2 -0
- package/dist/src/assets/scss/tokens/_themes-all.scss +44241 -0
- package/dist/src/components/Alert/OrigamAlert.vue +16 -21
- package/dist/src/components/App/OrigamApp.vue +7 -38
- package/dist/src/components/App/OrigamAppBar.vue +35 -17
- package/dist/src/components/Audio/OrigamAudio.vue +77 -6
- package/dist/src/components/Avatar/OrigamAvatar.vue +11 -9
- package/dist/src/components/Avatar/OrigamAvatarGroup.vue +26 -8
- package/dist/src/components/Badge/OrigamBadge.vue +13 -3
- package/dist/src/components/Blockquote/OrigamBlockquote.vue +137 -13
- package/dist/src/components/BottomNav/OrigamBottomNav.vue +34 -4
- package/dist/src/components/Bracket/OrigamBracket.vue +386 -64
- package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +190 -13
- package/dist/src/components/Bracket/OrigamBracketMatch.vue +197 -42
- package/dist/src/components/Bracket/OrigamBracketRound.vue +11 -3
- package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +14 -12
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +4 -1
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbItem.vue +3 -5
- package/dist/src/components/Btn/OrigamBtn.vue +69 -30
- package/dist/src/components/Btn/OrigamBtnGroup.vue +33 -7
- package/dist/src/components/Btn/OrigamBtnToggle.vue +4 -7
- package/dist/src/components/Calendar/OrigamCalendar.vue +785 -658
- package/dist/src/components/Card/OrigamCard.vue +24 -3
- package/dist/src/components/Card/OrigamCardHeader.vue +17 -3
- package/dist/src/components/Card/OrigamCardText.vue +29 -7
- package/dist/src/components/Carousel/OrigamCarousel.vue +29 -9
- package/dist/src/components/Carousel/OrigamCarouselItem.vue +2 -2
- package/dist/src/components/Chart/OrigamChart.vue +3 -1
- package/dist/src/components/Chart/OrigamChartAxis.vue +1 -1
- package/dist/src/components/Chart/OrigamChartBoxPlot.vue +7 -3
- package/dist/src/components/Chart/OrigamChartBullet.vue +7 -3
- package/dist/src/components/Chart/OrigamChartCandlestick.vue +7 -3
- package/dist/src/components/Chart/OrigamChartCartesian.vue +14 -10
- package/dist/src/components/Chart/OrigamChartGauge.vue +7 -3
- package/dist/src/components/Chart/OrigamChartHeatmap.vue +7 -3
- package/dist/src/components/Chart/OrigamChartHoneycomb.vue +7 -3
- package/dist/src/components/Chart/OrigamChartLegend.vue +1 -2
- package/dist/src/components/Chart/OrigamChartMap.vue +7 -3
- package/dist/src/components/Chart/OrigamChartPareto.vue +7 -3
- package/dist/src/components/Chart/OrigamChartPictorial.vue +9 -6
- package/dist/src/components/Chart/OrigamChartPolar.vue +13 -6
- package/dist/src/components/Chart/OrigamChartPolarBar.vue +7 -3
- package/dist/src/components/Chart/OrigamChartPyramid.vue +7 -3
- package/dist/src/components/Chart/OrigamChartRadar.vue +7 -5
- package/dist/src/components/Chart/OrigamChartRangeSelector.vue +3 -4
- package/dist/src/components/Chart/OrigamChartSankey.vue +7 -3
- package/dist/src/components/Chart/OrigamChartSparkline.vue +5 -3
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +9 -5
- package/dist/src/components/Chart/OrigamChartSunburst.vue +7 -3
- package/dist/src/components/Chart/OrigamChartTooltip.vue +1 -1
- package/dist/src/components/Chart/OrigamChartTreemap.vue +7 -3
- package/dist/src/components/Chart/OrigamChartVariwide.vue +7 -3
- package/dist/src/components/Chart/OrigamChartWordCloud.vue +3 -2
- package/dist/src/components/Checkbox/OrigamCheckbox.vue +18 -3
- package/dist/src/components/Checkbox/OrigamCheckboxBtn.vue +4 -2
- package/dist/src/components/Chip/OrigamChip.vue +25 -12
- package/dist/src/components/Chip/OrigamChipGroup.vue +5 -5
- package/dist/src/components/ClientOnly/OrigamClientOnly.vue +1 -1
- package/dist/src/components/Clipboard/OrigamClipboard.vue +12 -4
- package/dist/src/components/Code/OrigamCode.vue +144 -39
- package/dist/src/components/ColorPicker/OrigamColorPicker.vue +7 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +3 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerEdit.vue +2 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerPreview.vue +1 -1
- package/dist/src/components/ColorPicker/OrigamColorPickerSwatches.vue +1 -1
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +15 -5
- package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +13 -3
- package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +1 -1
- package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +7 -2
- package/dist/src/components/Counter/OrigamCounter.vue +2 -1
- package/dist/src/components/DataList/OrigamDataList.vue +21 -5
- package/dist/src/components/DataList/OrigamDataText.vue +5 -1
- package/dist/src/components/DataList/OrigamDataTitle.vue +5 -1
- package/dist/src/components/DataTable/OrigamDataTable.vue +15 -7
- package/dist/src/components/DataTable/OrigamDataTableColumnCell.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableFooter.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableGroupHeaderRow.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableHeaderCell.vue +3 -2
- package/dist/src/components/DataTable/OrigamDataTableHeaders.vue +2 -1
- package/dist/src/components/DataTable/OrigamDataTableHeadersCell.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableRow.vue +5 -3
- package/dist/src/components/DataTable/OrigamDataTableRows.vue +3 -3
- package/dist/src/components/DatePicker/OrigamDatePicker.vue +21 -30
- package/dist/src/components/DatePicker/OrigamDatePickerControls.vue +2 -2
- package/dist/src/components/DatePicker/OrigamDatePickerHeader.vue +1 -1
- package/dist/src/components/DatePicker/OrigamDatePickerMonth.vue +16 -28
- package/dist/src/components/DatePicker/OrigamDatePickerMonths.vue +3 -3
- package/dist/src/components/DatePicker/OrigamDatePickerYears.vue +3 -3
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +27 -16
- package/dist/src/components/DefaultsProvider/OrigamDefaultsProvider.vue +1 -1
- package/dist/src/components/Dialog/OrigamDialog.vue +1 -1
- package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +1 -1
- package/dist/src/components/Divider/OrigamDivider.vue +2 -2
- package/dist/src/components/Drawer/OrigamDrawer.vue +5 -11
- package/dist/src/components/EmptyState/OrigamEmptyState.vue +14 -4
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +12 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +4 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +14 -5
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +2 -1
- package/dist/src/components/Field/OrigamField.vue +26 -9
- package/dist/src/components/FileField/OrigamFileField.vue +8 -3
- package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +14 -4
- package/dist/src/components/FileField/OrigamFileFieldListItem.vue +14 -4
- package/dist/src/components/Form/OrigamForm.vue +10 -2
- package/dist/src/components/Grid/OrigamGrid.vue +1 -1
- package/dist/src/components/Grid/OrigamGridItem.vue +1 -1
- package/dist/src/components/Grids/OrigamCol.vue +1 -1
- package/dist/src/components/Grids/OrigamContainer.vue +1 -1
- package/dist/src/components/Grids/OrigamRow.vue +6 -2
- package/dist/src/components/Grids/OrigamSpacer.vue +1 -1
- package/dist/src/components/Icon/OrigamClassIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamComponentIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamLigatureIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamSvgIcon.vue +2 -2
- package/dist/src/components/Img/OrigamImg.vue +10 -9
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +14 -7
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScrollIntersect.vue +3 -2
- package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +13 -4
- package/dist/src/components/Input/OrigamInput.vue +17 -3
- package/dist/src/components/ItemGroup/OrigamItem.vue +1 -1
- package/dist/src/components/ItemGroup/OrigamItemGroup.vue +1 -1
- package/dist/src/components/Kbd/OrigamKbd.vue +18 -8
- package/dist/src/components/Label/OrigamLabel.vue +14 -3
- package/dist/src/components/Layout/OrigamLayout.vue +1 -1
- package/dist/src/components/Lazy/OrigamLazy.vue +1 -1
- package/dist/src/components/List/OrigamList.vue +1 -1
- package/dist/src/components/List/OrigamListChildren.vue +1 -1
- package/dist/src/components/List/OrigamListGroup.vue +4 -1
- package/dist/src/components/List/OrigamListGroupActivator.vue +1 -1
- package/dist/src/components/List/OrigamListItem.vue +14 -4
- package/dist/src/components/List/OrigamListSubheader.vue +13 -3
- package/dist/src/components/Loader/OrigamLoader.vue +1 -1
- package/dist/src/components/Main/OrigamMain.vue +1 -1
- package/dist/src/components/Masonry/OrigamMasonry.vue +2 -2
- package/dist/src/components/Media/OrigamMediaController.vue +1 -1
- package/dist/src/components/Media/OrigamMediaScrubber.vue +3 -2
- package/dist/src/components/Media/OrigamMediaVolumeControl.vue +3 -2
- package/dist/src/components/Menu/OrigamMenu.vue +9 -2
- package/dist/src/components/Messages/OrigamMessages.vue +13 -4
- package/dist/src/components/NumberField/OrigamNumberField.vue +80 -40
- package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +1 -1
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +107 -11
- package/dist/src/components/Overlay/OrigamOverlay.vue +1 -1
- package/dist/src/components/Overlay/OrigamOverlayScrim.vue +1 -1
- package/dist/src/components/Pagination/OrigamPagination.vue +16 -4
- package/dist/src/components/Parallax/OrigamParallax.vue +9 -2
- package/dist/src/components/Parallax/OrigamParallaxElement.vue +1 -1
- package/dist/src/components/Parallax/OrigamParallaxLayer.vue +2 -2
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +9 -2
- package/dist/src/components/Picker/OrigamPicker.vue +8 -3
- package/dist/src/components/Picker/OrigamPickerTitle.vue +10 -3
- package/dist/src/components/Progress/OrigamProgress.vue +6 -3
- package/dist/src/components/Progress/OrigamProgressCircular.vue +3 -1
- package/dist/src/components/Progress/OrigamProgressLinear.vue +5 -6
- package/dist/src/components/{QRCode → QrCode}/OrigamQrCode.vue +1 -1
- package/dist/src/components/QrCode/index.d.ts +1 -0
- package/dist/src/components/Radio/OrigamRadio.vue +20 -11
- package/dist/src/components/Radio/OrigamRadioBtn.vue +4 -2
- package/dist/src/components/Radio/OrigamRadioGroup.vue +48 -41
- package/dist/src/components/RatingField/OrigamRatingField.vue +9 -13
- package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +3 -6
- package/dist/src/components/Responsive/OrigamResponsive.vue +1 -1
- package/dist/src/components/Section/OrigamSection.vue +1 -1
- package/dist/src/components/Select/OrigamSelect.vue +19 -10
- package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +12 -6
- package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +2 -2
- package/dist/src/components/Sheet/OrigamSheet.vue +11 -3
- package/dist/src/components/Skeleton/OrigamSkeleton.vue +2 -4
- package/dist/src/components/Slide/OrigamSlideGroup.vue +1 -1
- package/dist/src/components/SliderField/OrigamSliderField.vue +7 -6
- package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +1 -1
- package/dist/src/components/Snackbar/OrigamSnackbar.vue +5 -4
- package/dist/src/components/Snackbar/OrigamSnackbarGroup.vue +1 -1
- package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +27 -26
- package/dist/src/components/Stepper/OrigamStepper.vue +6 -2
- package/dist/src/components/Stepper/OrigamStepperItem.vue +10 -3
- package/dist/src/components/Switch/OrigamSwitch.vue +35 -37
- package/dist/src/components/Switch/OrigamSwitchTrack.vue +9 -15
- package/dist/src/components/SystemBar/OrigamSystemBar.vue +14 -4
- package/dist/src/components/Table/OrigamTable.vue +15 -3
- package/dist/src/components/Tabs/OrigamTab.vue +13 -3
- package/dist/src/components/Tabs/OrigamTabPanel.vue +1 -1
- package/dist/src/components/Tabs/OrigamTabPanels.vue +1 -1
- package/dist/src/components/Tabs/OrigamTabs.vue +1 -1
- package/dist/src/components/TextField/OrigamTextField.vue +8 -1
- package/dist/src/components/TextMask/OrigamTextMask.vue +17 -27
- package/dist/src/components/TextareaField/OrigamRichToolbar.vue +15 -11
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +11 -1
- package/dist/src/components/ThemeProvider/OrigamThemeProvider.vue +4 -1
- package/dist/src/components/Timeline/OrigamTimeline.vue +3 -3
- package/dist/src/components/Timeline/OrigamTimelineItem.vue +3 -1
- package/dist/src/components/Title/OrigamTitle.vue +20 -8
- package/dist/src/components/Toolbar/OrigamToolbar.vue +17 -5
- package/dist/src/components/Tooltip/OrigamTooltip.vue +12 -3
- package/dist/src/components/Transition/OrigamExpandX.vue +1 -1
- package/dist/src/components/Transition/OrigamExpandY.vue +1 -1
- package/dist/src/components/Transition/OrigamFade.vue +1 -1
- package/dist/src/components/Transition/OrigamReverseTranslatePicker.vue +1 -1
- package/dist/src/components/Transition/OrigamScaleRotate.vue +1 -1
- package/dist/src/components/Transition/OrigamSlideX.vue +1 -1
- package/dist/src/components/Transition/OrigamSlideY.vue +1 -1
- package/dist/src/components/Transition/OrigamSnack.vue +1 -1
- package/dist/src/components/Transition/OrigamTransition.vue +1 -1
- package/dist/src/components/Transition/OrigamTranslateBottom.vue +1 -1
- package/dist/src/components/Transition/OrigamTranslatePicker.vue +1 -1
- package/dist/src/components/Transition/OrigamTranslateScale.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowXReverseTranslate.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowXTranslate.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowYReverseTranslate.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowYTranslate.vue +1 -1
- package/dist/src/components/Treeview/OrigamTreeview.vue +1 -1
- package/dist/src/components/Treeview/OrigamTreeviewNode.vue +7 -5
- package/dist/src/components/Video/OrigamVideo.vue +56 -63
- package/dist/src/components/VirtualScroll/OrigamVirtualScroll.vue +1 -1
- package/dist/src/components/VirtualScroll/OrigamVirtualScrollItem.vue +1 -6
- package/dist/src/components/Watermark/OrigamWatermark.vue +1 -1
- package/dist/src/components/Window/OrigamWindow.vue +32 -2
- package/dist/src/components/Window/OrigamWindowItem.vue +1 -1
- package/dist/src/components/index.cjs +1 -1
- package/dist/src/components/index.js +1 -1
- package/dist/src/composables/Chart/chart-gauge.composable.cjs +1 -1
- package/dist/src/composables/Chart/chart-gauge.composable.js +1 -1
- package/dist/src/composables/Chart/chart-header-typography.composable.cjs +20 -0
- package/dist/src/composables/Chart/chart-header-typography.composable.d.ts +27 -0
- package/dist/src/composables/Chart/chart-header-typography.composable.js +11 -0
- package/dist/src/composables/Chart/chart-zoom.composable.cjs +0 -1
- package/dist/src/composables/Chart/chart-zoom.composable.js +0 -1
- package/dist/src/composables/Chart/chart.composable.cjs +0 -11
- package/dist/src/composables/Chart/chart.composable.js +0 -11
- package/dist/src/composables/Code/code.composable.js +4 -1
- package/dist/src/composables/Commons/audio.composable.d.ts +9 -9
- package/dist/src/composables/Commons/border.composable.cjs +10 -0
- package/dist/src/composables/Commons/border.composable.js +7 -0
- package/dist/src/composables/Commons/color.composable.cjs +42 -42
- package/dist/src/composables/Commons/color.composable.d.ts +8 -3
- package/dist/src/composables/Commons/color.composable.js +2 -2
- package/dist/src/composables/Commons/date-picker-calendar.composable.cjs +1 -1
- package/dist/src/composables/Commons/date-picker-calendar.composable.d.ts +1 -1
- package/dist/src/composables/Commons/date-picker-calendar.composable.js +1 -1
- package/dist/src/composables/Commons/defaults.composable.cjs +10 -9
- package/dist/src/composables/Commons/defaults.composable.js +10 -9
- package/dist/src/composables/Commons/delay.composable.cjs +8 -3
- package/dist/src/composables/Commons/delay.composable.js +7 -4
- package/dist/src/composables/Commons/density.composable.cjs +1 -1
- package/dist/src/composables/Commons/density.composable.js +2 -2
- package/dist/src/composables/Commons/dragResizer.composable.cjs +7 -9
- package/dist/src/composables/Commons/dragResizer.composable.js +8 -9
- package/dist/src/composables/Commons/focus.composable.cjs +1 -1
- package/dist/src/composables/Commons/focus.composable.js +1 -1
- package/dist/src/composables/Commons/layout.composable.cjs +12 -0
- package/dist/src/composables/Commons/layout.composable.js +14 -0
- package/dist/src/composables/Commons/message.composable.cjs +1 -1
- package/dist/src/composables/Commons/message.composable.d.ts +1 -1
- package/dist/src/composables/Commons/message.composable.js +1 -1
- package/dist/src/composables/Commons/rounded.composable.cjs +15 -4
- package/dist/src/composables/Commons/rounded.composable.d.ts +1 -1
- package/dist/src/composables/Commons/rounded.composable.js +17 -6
- package/dist/src/composables/Commons/scroll.composable.cjs +2 -2
- package/dist/src/composables/Commons/scroll.composable.js +2 -2
- package/dist/src/composables/Commons/stateEffect.composable.cjs +36 -14
- package/dist/src/composables/Commons/stateEffect.composable.js +38 -14
- package/dist/src/composables/Commons/status.composable.cjs +11 -1
- package/dist/src/composables/Commons/status.composable.d.ts +2 -0
- package/dist/src/composables/Commons/status.composable.js +10 -1
- package/dist/src/composables/Commons/sticky.composable.d.ts +2 -14
- package/dist/src/composables/Commons/style.composable.cjs +5 -3
- package/dist/src/composables/Commons/style.composable.js +5 -3
- package/dist/src/composables/Commons/typography.composable.cjs +23 -0
- package/dist/src/composables/Commons/typography.composable.d.ts +7 -0
- package/dist/src/composables/Commons/typography.composable.js +21 -0
- package/dist/src/composables/DataTable/headers.composable.d.ts +4 -364
- package/dist/src/composables/Icon/icon.composable.cjs +6 -1
- package/dist/src/composables/Icon/icon.composable.js +4 -1
- package/dist/src/composables/InlineEdit/inline-edit.composable.cjs +16 -2
- package/dist/src/composables/InlineEdit/inline-edit.composable.js +16 -2
- package/dist/src/composables/Masonry/masonry.composable.d.ts +2 -1
- package/dist/src/composables/Responsive/aspect.composable.cjs +9 -1
- package/dist/src/composables/Responsive/aspect.composable.d.ts +1 -1
- package/dist/src/composables/Responsive/aspect.composable.js +9 -1
- package/dist/src/composables/Theme/installed-themes.composable.cjs +11 -0
- package/dist/src/composables/Theme/installed-themes.composable.d.ts +19 -0
- package/dist/src/composables/Theme/installed-themes.composable.js +5 -0
- package/dist/src/composables/Theme/theme.composable.cjs +86 -15
- package/dist/src/composables/Theme/theme.composable.d.ts +55 -10
- package/dist/src/composables/Theme/theme.composable.js +88 -17
- package/dist/src/composables/index.cjs +36 -0
- package/dist/src/composables/index.d.ts +3 -0
- package/dist/src/composables/index.js +3 -0
- package/dist/src/consts/Bracket/bracket.const.cjs +4 -2
- package/dist/src/consts/Bracket/bracket.const.d.ts +12 -0
- package/dist/src/consts/Bracket/bracket.const.js +2 -0
- package/dist/src/consts/Commons/density.const.cjs +2 -2
- package/dist/src/consts/Commons/density.const.d.ts +1 -1
- package/dist/src/consts/Commons/density.const.js +1 -1
- package/dist/src/consts/Commons/rounded.const.cjs +4 -2
- package/dist/src/consts/Commons/rounded.const.d.ts +22 -2
- package/dist/src/consts/Commons/rounded.const.js +3 -1
- package/dist/src/consts/DataTable/select.const.cjs +1 -1
- package/dist/src/consts/DataTable/select.const.js +1 -1
- package/dist/src/consts/Icon/mdi.const.cjs +6 -1
- package/dist/src/consts/Icon/mdi.const.js +10 -2
- package/dist/src/consts/Theme/theme.const.cjs +11 -1
- package/dist/src/consts/Theme/theme.const.d.ts +16 -0
- package/dist/src/consts/Theme/theme.const.js +10 -0
- package/dist/src/directives/Contrast/contrast.directive.cjs +150 -0
- package/dist/src/directives/Contrast/contrast.directive.d.ts +5 -0
- package/dist/src/directives/Contrast/contrast.directive.js +131 -0
- package/dist/src/directives/index.cjs +7 -0
- package/dist/src/directives/index.d.ts +1 -0
- package/dist/src/directives/index.js +1 -0
- package/dist/src/enums/BottomNav/bottom-nav-position.enum.cjs +12 -0
- package/dist/src/enums/BottomNav/bottom-nav-position.enum.d.ts +10 -0
- package/dist/src/enums/BottomNav/bottom-nav-position.enum.js +6 -0
- package/dist/src/enums/Toolbar/toolbar.enum.cjs +1 -0
- package/dist/src/enums/Toolbar/toolbar.enum.d.ts +2 -1
- package/dist/src/enums/Toolbar/toolbar.enum.js +1 -0
- package/dist/src/enums/index.cjs +22 -0
- package/dist/src/enums/index.d.ts +2 -0
- package/dist/src/enums/index.js +2 -0
- package/dist/src/interfaces/Alert/alert.interface.d.ts +2 -3
- package/dist/src/interfaces/App/app-bar.interface.d.ts +19 -1
- package/dist/src/interfaces/App/app.interface.cjs +1 -0
- package/dist/src/interfaces/App/app.interface.d.ts +24 -0
- package/dist/src/interfaces/Audio/audio-player.interface.d.ts +23 -2
- package/dist/src/interfaces/Avatar/avatar.interface.d.ts +2 -4
- package/dist/src/interfaces/Badge/badge.interface.d.ts +2 -2
- package/dist/src/interfaces/Blockquote/blockquote.interface.d.ts +23 -21
- package/dist/src/interfaces/BottomNav/bottom-nav.interface.d.ts +12 -4
- package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.d.ts +17 -6
- package/dist/src/interfaces/Bracket/bracket-match-component.interface.d.ts +13 -6
- package/dist/src/interfaces/Bracket/bracket-match.interface.d.ts +22 -0
- package/dist/src/interfaces/Bracket/bracket-round-component.interface.d.ts +2 -2
- package/dist/src/interfaces/Bracket/bracket.interface.d.ts +17 -2
- package/dist/src/interfaces/Breadcrumb/breadcrumb-divider.interface.d.ts +2 -2
- package/dist/src/interfaces/Breadcrumb/breadcrumb.interface.d.ts +2 -3
- package/dist/src/interfaces/Btn/btn-group.interface.d.ts +2 -2
- package/dist/src/interfaces/Btn/btn.interface.d.ts +11 -3
- package/dist/src/interfaces/Calendar/calendar.interface.d.ts +7 -2
- package/dist/src/interfaces/Card/card-header.interface.d.ts +2 -2
- package/dist/src/interfaces/Card/card-text.interface.d.ts +2 -2
- package/dist/src/interfaces/Carousel/carousel.interface.d.ts +2 -2
- package/dist/src/interfaces/Chart/chart-base.interface.d.ts +9 -8
- package/dist/src/interfaces/Chart/chart-word-cloud.interface.d.ts +1 -1
- package/dist/src/interfaces/Chart/chart.interface.d.ts +12 -1
- package/dist/src/interfaces/Checkbox/checkbox-btn.interface.d.ts +3 -3
- package/dist/src/interfaces/Checkbox/checkbox.interface.d.ts +10 -9
- package/dist/src/interfaces/Chip/chip-group.interface.d.ts +3 -1
- package/dist/src/interfaces/Chip/chip.interface.d.ts +2 -2
- package/dist/src/interfaces/Clipboard/clipboard.interface.d.ts +2 -2
- package/dist/src/interfaces/Code/code.interface.d.ts +19 -2
- package/dist/src/interfaces/ColorPickerField/color-picker-field.interface.d.ts +2 -2
- package/dist/src/interfaces/CommandPalette/command-palette.interface.d.ts +2 -1
- package/dist/src/interfaces/Commons/calendar.interface.d.ts +3 -3
- package/dist/src/interfaces/Commons/commons.interface.d.ts +34 -1
- package/dist/src/interfaces/Commons/filters.interface.d.ts +2 -2
- package/dist/src/interfaces/Commons/hover.interface.d.ts +18 -3
- package/dist/src/interfaces/Commons/scroll.interface.d.ts +8 -1
- package/dist/src/interfaces/Commons/typography.interface.cjs +1 -0
- package/dist/src/interfaces/Commons/typography.interface.d.ts +52 -0
- package/dist/src/interfaces/Commons/typography.interface.js +0 -0
- package/dist/src/interfaces/Commons/validation.interface.d.ts +3 -1
- package/dist/src/interfaces/Counter/counter.interface.d.ts +2 -2
- package/dist/src/interfaces/DataList/data-list.interface.d.ts +2 -2
- package/dist/src/interfaces/DataList/data-text.interface.d.ts +5 -0
- package/dist/src/interfaces/DataList/data-title.interface.d.ts +5 -0
- package/dist/src/interfaces/DataTable/headers.interface.d.ts +5 -5
- package/dist/src/interfaces/DataTable/row.interface.d.ts +2 -2
- package/dist/src/interfaces/DatePicker/date-picker-controls.interface.d.ts +16 -8
- package/dist/src/interfaces/DatePicker/date-picker-header.interface.d.ts +6 -3
- package/dist/src/interfaces/DatePicker/date-picker-months.interface.d.ts +2 -2
- package/dist/src/interfaces/DatePicker/date-picker-years.interface.d.ts +1 -1
- package/dist/src/interfaces/DatePicker/date-picker.interface.d.ts +1 -1
- package/dist/src/interfaces/Dialog/dialog-confirmation.interface.d.ts +2 -2
- package/dist/src/interfaces/EmptyState/empty-state.interface.d.ts +9 -2
- package/dist/src/interfaces/ExpensionPanel/expansion-panel-header.interface.d.ts +2 -2
- package/dist/src/interfaces/Field/field.interface.d.ts +7 -2
- package/dist/src/interfaces/FileField/file-field-dragndrop-item.interface.d.ts +2 -2
- package/dist/src/interfaces/FileField/file-field-list-item.interface.d.ts +2 -2
- package/dist/src/interfaces/FileField/file-field.interface.d.ts +1 -1
- package/dist/src/interfaces/Form/form.interface.d.ts +2 -2
- package/dist/src/interfaces/Grids/row.interface.d.ts +2 -2
- package/dist/src/interfaces/InfiniteScroll/infinite-scroll.interface.d.ts +2 -2
- package/dist/src/interfaces/InlineEdit/inline-edit.interface.d.ts +31 -2
- package/dist/src/interfaces/Input/input.interface.d.ts +4 -3
- package/dist/src/interfaces/Kbd/kbd.interface.d.ts +2 -2
- package/dist/src/interfaces/Label/label.interface.d.ts +2 -2
- package/dist/src/interfaces/List/list-group.interface.d.ts +4 -1
- package/dist/src/interfaces/List/list-item.interface.d.ts +2 -2
- package/dist/src/interfaces/List/list-subheader.interface.d.ts +2 -2
- package/dist/src/interfaces/Media/media-scrubber.interface.d.ts +10 -2
- package/dist/src/interfaces/Messages/messages.interface.d.ts +2 -2
- package/dist/src/interfaces/NumberField/number-field.interface.d.ts +1 -1
- package/dist/src/interfaces/Nuxt/nuxt-module.interface.d.ts +55 -15
- package/dist/src/interfaces/OtpInputField/otp-input-field.interface.d.ts +4 -2
- package/dist/src/interfaces/Pagination/pagination.interface.d.ts +18 -3
- package/dist/src/interfaces/Parallax/parallax.interface.d.ts +2 -2
- package/dist/src/interfaces/PasswordField/password-field.interface.d.ts +1 -1
- package/dist/src/interfaces/Picker/picker-title.interface.d.ts +2 -2
- package/dist/src/interfaces/Progress/progress.interface.d.ts +8 -2
- package/dist/src/interfaces/RatingField/rating-field-item.interface.d.ts +2 -1
- package/dist/src/interfaces/SelectionControl/selection-control-group.interface.d.ts +2 -1
- package/dist/src/interfaces/SelectionControl/selection-control.interface.d.ts +23 -5
- package/dist/src/interfaces/Sheet/sheet.interface.d.ts +2 -2
- package/dist/src/interfaces/Snackbar/snackbar-item.interface.d.ts +2 -2
- package/dist/src/interfaces/SystemBar/system-bar.interface.d.ts +2 -2
- package/dist/src/interfaces/Table/table.interface.d.ts +2 -2
- package/dist/src/interfaces/Tabs/tab.interface.d.ts +7 -2
- package/dist/src/interfaces/TextField/text-field.interface.d.ts +1 -1
- package/dist/src/interfaces/TextMask/text-mask.interface.d.ts +7 -33
- package/dist/src/interfaces/TextareaField/textarea-field.interface.d.ts +3 -3
- package/dist/src/interfaces/Theme/origam-theme.interface.cjs +1 -0
- package/dist/src/interfaces/Theme/origam-theme.interface.d.ts +114 -0
- package/dist/src/interfaces/Theme/origam-theme.interface.js +0 -0
- package/dist/src/interfaces/Timeline/timeline.interface.d.ts +1 -1
- package/dist/src/interfaces/Title/title.interface.d.ts +2 -2
- package/dist/src/interfaces/Toolbar/toolbar.interface.d.ts +2 -2
- package/dist/src/interfaces/Tooltip/tooltip.interface.d.ts +2 -2
- package/dist/src/interfaces/Video/video.interface.d.ts +2 -2
- package/dist/src/interfaces/Window/window.interface.d.ts +2 -2
- package/dist/src/interfaces/index.cjs +33 -0
- package/dist/src/interfaces/index.d.ts +3 -0
- package/dist/src/interfaces/index.js +3 -0
- package/dist/src/nuxt/module.cjs +78 -8
- package/dist/src/nuxt/module.js +81 -9
- package/dist/src/nuxt/plugin.client.cjs +28 -10
- package/dist/src/nuxt/plugin.client.js +28 -10
- package/dist/src/nuxt/plugin.server.cjs +52 -12
- package/dist/src/nuxt/plugin.server.js +55 -13
- package/dist/src/origam.cjs +39 -2
- package/dist/src/origam.d.ts +19 -1
- package/dist/src/origam.js +46 -5
- package/dist/src/themes/index.cjs +24 -0
- package/dist/src/themes/index.d.ts +1 -0
- package/dist/src/themes/index.js +1 -0
- package/dist/src/themes/origam.theme.cjs +906 -0
- package/dist/src/themes/origam.theme.d.ts +4 -0
- package/dist/src/themes/origam.theme.js +379 -0
- package/dist/src/types/BottomNav/bottom-nav.type.d.ts +2 -0
- package/dist/src/types/Commons/font-family.type.cjs +1 -0
- package/dist/src/types/Commons/font-family.type.d.ts +5 -0
- package/dist/src/types/Commons/font-family.type.js +0 -0
- package/dist/src/types/Commons/font-size.type.cjs +1 -0
- package/dist/src/types/Commons/font-size.type.d.ts +6 -0
- package/dist/src/types/Commons/font-size.type.js +0 -0
- package/dist/src/types/Commons/font-weight.type.cjs +1 -0
- package/dist/src/types/Commons/font-weight.type.d.ts +5 -0
- package/dist/src/types/Commons/font-weight.type.js +0 -0
- package/dist/src/types/Commons/letter-spacing.type.cjs +1 -0
- package/dist/src/types/Commons/letter-spacing.type.d.ts +5 -0
- package/dist/src/types/Commons/letter-spacing.type.js +0 -0
- package/dist/src/types/Commons/line-height.type.cjs +1 -0
- package/dist/src/types/Commons/line-height.type.d.ts +5 -0
- package/dist/src/types/Commons/line-height.type.js +0 -0
- package/dist/src/types/Commons/mode.type.d.ts +1 -1
- package/dist/src/types/Theme/installed-theme.type.cjs +1 -0
- package/dist/src/types/Theme/installed-theme.type.d.ts +31 -0
- package/dist/src/types/Theme/installed-theme.type.js +0 -0
- package/dist/src/types/Theme/semantic-tree.type.cjs +1 -0
- package/dist/src/types/Theme/semantic-tree.type.d.ts +48 -0
- package/dist/src/types/Theme/semantic-tree.type.js +0 -0
- package/dist/src/types/Theme/theme.type.d.ts +27 -6
- package/dist/src/types/Theme/token-tree.type.cjs +1 -0
- package/dist/src/types/Theme/token-tree.type.d.ts +10 -0
- package/dist/src/types/Theme/token-tree.type.js +0 -0
- package/dist/src/types/index.cjs +88 -0
- package/dist/src/types/index.d.ts +8 -0
- package/dist/src/types/index.js +8 -0
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/dist/src/utils/Bracket/bracket-surface.util.cjs +106 -0
- package/dist/src/utils/Bracket/bracket-surface.util.d.ts +47 -0
- package/dist/src/utils/Bracket/bracket-surface.util.js +88 -0
- package/dist/src/utils/Commons/color.util.cjs +4 -2
- package/dist/src/utils/Commons/color.util.js +4 -2
- package/dist/src/utils/Commons/commons.util.cjs +3 -2
- package/dist/src/utils/Commons/commons.util.js +3 -2
- package/dist/src/utils/Commons/dom.util.d.ts +1 -1
- package/dist/src/utils/Commons/elevation.util.cjs +1 -1
- package/dist/src/utils/Commons/elevation.util.js +1 -1
- package/dist/src/utils/Commons/forwardRefs.util.cjs +1 -1
- package/dist/src/utils/Commons/forwardRefs.util.js +1 -1
- package/dist/src/utils/Commons/gradient.util.cjs +3 -3
- package/dist/src/utils/Commons/gradient.util.js +1 -1
- package/dist/src/utils/Commons/hover.util.cjs +5 -1
- package/dist/src/utils/Commons/hover.util.js +5 -1
- package/dist/src/utils/Commons/ripple.util.cjs +1 -2
- package/dist/src/utils/Commons/ripple.util.js +2 -3
- package/dist/src/utils/Commons/rounded.util.cjs +5 -0
- package/dist/src/utils/Commons/rounded.util.d.ts +9 -0
- package/dist/src/utils/Commons/rounded.util.js +4 -0
- package/dist/src/utils/DataTable/headers.util.cjs +1 -1
- package/dist/src/utils/DataTable/headers.util.js +1 -1
- package/dist/src/utils/DataTable/sort.util.cjs +2 -2
- package/dist/src/utils/DataTable/sort.util.js +2 -2
- package/dist/src/utils/List/list-item.util.d.ts +7 -0
- package/dist/src/utils/Theme/apply-theme.util.cjs +148 -0
- package/dist/src/utils/Theme/apply-theme.util.d.ts +65 -0
- package/dist/src/utils/Theme/apply-theme.util.js +125 -0
- package/dist/src/utils/Theme/token-name.util.cjs +47 -0
- package/dist/src/utils/Theme/token-name.util.d.ts +54 -0
- package/dist/src/utils/Theme/token-name.util.js +55 -0
- package/dist/src/utils/index.cjs +22 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/index.js +2 -0
- package/package.json +17 -58
- package/CHANGELOG.md +0 -807
- package/README.md +0 -275
- package/dist/src/App.vue +0 -25
- package/dist/src/main.cjs +0 -7
- package/dist/src/main.d.ts +0 -1
- package/dist/src/main.js +0 -4
- /package/dist/src/components/{QRCode → QrCode}/index.cjs +0 -0
- /package/dist/src/components/{QRCode → QrCode}/index.js +0 -0
- /package/dist/src/{components/QRCode/index.d.ts → interfaces/App/app.interface.js} +0 -0
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import type { ExtractPropTypes, StyleValue } from 'vue';
|
|
2
2
|
import type * as Components from "../../components";
|
|
3
3
|
import type * as Directives from "../../directives";
|
|
4
|
-
import type { IDateOptions, IDisplayOptions, IGoToOptions, ILocaleOptions, IRtlOptions } from '../../interfaces';
|
|
4
|
+
import type { IDateOptions, IDisplayOptions, IGoToOptions, ILocaleOptions, IOrigamTheme, IRtlOptions } from '../../interfaces';
|
|
5
5
|
import { TIconOptions, TOrigamPluginOptionsImport, TSSROptions } from '../../types';
|
|
6
|
+
/**
|
|
7
|
+
* Runtime text-contrast guard config (consumed by the `v-contrast` directive).
|
|
8
|
+
* `enabled` toggles the whole feature; `threshold` is the minimum acceptable
|
|
9
|
+
* WCAG contrast ratio (default 4.5:1 — AA for normal text).
|
|
10
|
+
*/
|
|
11
|
+
export interface IContrastOptions {
|
|
12
|
+
enabled?: boolean;
|
|
13
|
+
threshold?: number;
|
|
14
|
+
}
|
|
6
15
|
export interface IOrigamOptions {
|
|
7
16
|
aliases?: any;
|
|
8
17
|
blueprint?: IBlueprint;
|
|
@@ -14,6 +23,30 @@ export interface IOrigamOptions {
|
|
|
14
23
|
goTo?: IGoToOptions;
|
|
15
24
|
date?: IDateOptions;
|
|
16
25
|
locale?: ILocaleOptions & IRtlOptions;
|
|
26
|
+
/**
|
|
27
|
+
* Runtime text-contrast guard. `true` (default) enables the WCAG check
|
|
28
|
+
* that auto-corrects illegible text colours and warns; `false` disables
|
|
29
|
+
* it. Pass an object to tune the threshold.
|
|
30
|
+
*/
|
|
31
|
+
contrast?: boolean | IContrastOptions;
|
|
32
|
+
/**
|
|
33
|
+
* Optional runtime theme. When supplied, `createOrigam` resolves it to a
|
|
34
|
+
* block of `--origam-*` CSS variables and injects it into `<head>` at
|
|
35
|
+
* install time (browser only — SSR-safe no-op on the server). Accepts a
|
|
36
|
+
* pre-resolved var map and/or a DTCG-shaped token tree; see `IOrigamTheme`.
|
|
37
|
+
*/
|
|
38
|
+
theme?: IOrigamTheme;
|
|
39
|
+
/**
|
|
40
|
+
* Optional list of runtime themes installed together (the consumer install
|
|
41
|
+
* path — see ADR-003). Each object is injected as its own name×mode scoped
|
|
42
|
+
* `--origam-*` block via the same machinery as `theme`. The distinct brand
|
|
43
|
+
* names are exposed through `useInstalledThemes()` so a switcher can derive
|
|
44
|
+
* its list from the install rather than a hard-coded const.
|
|
45
|
+
*
|
|
46
|
+
* `theme` (singular) and `themes` (plural) may both be supplied; all are
|
|
47
|
+
* injected. SSR-safe (injection is a no-op without `document`).
|
|
48
|
+
*/
|
|
49
|
+
themes?: IOrigamTheme[];
|
|
17
50
|
}
|
|
18
51
|
export interface IOrigamPluginOptions {
|
|
19
52
|
autoImport?: TOrigamPluginOptionsImport;
|
|
@@ -2,7 +2,7 @@ import type { TFilterFunction, TFilterKeyFunctions, TFilterKeys, TFilterMode } f
|
|
|
2
2
|
export interface IFiltersProps {
|
|
3
3
|
customFilter?: TFilterFunction;
|
|
4
4
|
customKeyFilter?: TFilterKeyFunctions;
|
|
5
|
-
filterKeys
|
|
6
|
-
filterMode
|
|
5
|
+
filterKeys?: TFilterKeys;
|
|
6
|
+
filterMode?: TFilterMode;
|
|
7
7
|
noFilter?: boolean;
|
|
8
8
|
}
|
|
@@ -21,10 +21,23 @@ import type { IHoverState } from '../../interfaces';
|
|
|
21
21
|
export interface IHoverProps {
|
|
22
22
|
hover?: boolean | IHoverState;
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Object config accepted by the `v-hover` directive.
|
|
26
|
+
*
|
|
27
|
+
* • `class` — class toggled on the element while hovered
|
|
28
|
+
* (defaults to `{componentName}--hover` when omitted).
|
|
29
|
+
* • `mouseenter` — handler called on pointer/touch enter.
|
|
30
|
+
* • `mouseleave` — handler called on pointer/touch leave.
|
|
31
|
+
*
|
|
32
|
+
* Both handlers receive the hovered element and the originating event.
|
|
33
|
+
*/
|
|
34
|
+
export interface IHoverDirectiveConfig {
|
|
35
|
+
class?: string;
|
|
36
|
+
mouseenter?: (el: HTMLElement, e: Event) => void;
|
|
37
|
+
mouseleave?: (el: HTMLElement, e: Event) => void;
|
|
38
|
+
}
|
|
24
39
|
export interface IHoverDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
|
|
25
|
-
value?: boolean |
|
|
26
|
-
class: string;
|
|
27
|
-
};
|
|
40
|
+
value?: boolean | IHoverDirectiveConfig;
|
|
28
41
|
modifiers: {
|
|
29
42
|
callback: () => void;
|
|
30
43
|
stop?: boolean;
|
|
@@ -41,6 +54,8 @@ export interface IHoverHtmlElementHover {
|
|
|
41
54
|
class?: string;
|
|
42
55
|
touched?: boolean;
|
|
43
56
|
isTouch?: boolean;
|
|
57
|
+
mouseenter?: (el: HTMLElement, e: Event) => void;
|
|
58
|
+
mouseleave?: (el: HTMLElement, e: Event) => void;
|
|
44
59
|
}
|
|
45
60
|
/** Emit signature for components that propagate their hover state. */
|
|
46
61
|
export interface IHoverEmits {
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { TScrollBehavior, TScrollStrategy, TScrollStrategyFn } from '../../types';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
3
|
export interface IScrollProps {
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Space-separated list of scroll behaviours, e.g. `"hide inverted"` or
|
|
6
|
+
* `"elevate active"`. `inverted` is a MODIFIER that flips the trigger of
|
|
7
|
+
* `hide` / `collapse` / `elevate` and does nothing on its own. The
|
|
8
|
+
* `(string & {})` member keeps single-token autocomplete while allowing
|
|
9
|
+
* multi-token combinations.
|
|
10
|
+
*/
|
|
11
|
+
scrollBehavior?: TScrollBehavior | (string & {});
|
|
5
12
|
scrollTarget?: string;
|
|
6
13
|
scrollThreshold?: string | number;
|
|
7
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { TFontFamily, TFontSize, TFontWeight, TLetterSpacing, TLineHeight } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Cross-cutting typography surface — the font equivalent of
|
|
4
|
+
* `IColorProps` / `IBorderProps` / `IMarginProps`. Every prop is optional
|
|
5
|
+
* and maps a primitive font token key to the matching component CSS
|
|
6
|
+
* variable via `useTypography`. When a prop is unset the component keeps
|
|
7
|
+
* its theme value (no override emitted).
|
|
8
|
+
*
|
|
9
|
+
* | Prop | CSS property | Primitive token group |
|
|
10
|
+
* |-----------------|-------------------|------------------------------|
|
|
11
|
+
* | `fontFamily` | `font-family` | `--origam-font__family---*` |
|
|
12
|
+
* | `fontSize` | `font-size` | `--origam-font__size---*` |
|
|
13
|
+
* | `fontWeight` | `font-weight` | `--origam-font__weight---*` |
|
|
14
|
+
* | `lineHeight` | `line-height` | `--origam-font__lineHeight---*` |
|
|
15
|
+
* | `letterSpacing` | `letter-spacing` | `--origam-font__letterSpacing---*` |
|
|
16
|
+
*
|
|
17
|
+
* Collision-free names by design: `fontSize` / `fontWeight` / `fontFamily`
|
|
18
|
+
* (not `size` / `weight` / `family`) so the surface composes with
|
|
19
|
+
* `ISizeProps.size` on Btn / Chip / Avatar / Kbd without clashing.
|
|
20
|
+
*/
|
|
21
|
+
export interface ITypographyProps {
|
|
22
|
+
/**
|
|
23
|
+
* Font family token. Maps to `--origam-font__family---{fontFamily}`
|
|
24
|
+
* (sans · mono · serif).
|
|
25
|
+
* When unset, the component keeps its theme font-family.
|
|
26
|
+
*/
|
|
27
|
+
fontFamily?: TFontFamily;
|
|
28
|
+
/**
|
|
29
|
+
* Font size token. Maps to `--origam-font__size---{fontSize}`
|
|
30
|
+
* (xs · sm · md · lg · xl · 2xl · 3xl · 4xl · 5xl).
|
|
31
|
+
* When unset, the component keeps its theme / density font-size.
|
|
32
|
+
*/
|
|
33
|
+
fontSize?: TFontSize;
|
|
34
|
+
/**
|
|
35
|
+
* Font weight token. Maps to `--origam-font__weight---{fontWeight}`
|
|
36
|
+
* (regular 400 · medium 500 · semibold 600 · bold 700 · extrabold 800 · black 900).
|
|
37
|
+
* When unset, the component keeps its theme font-weight.
|
|
38
|
+
*/
|
|
39
|
+
fontWeight?: TFontWeight;
|
|
40
|
+
/**
|
|
41
|
+
* Line-height token. Maps to `--origam-font__lineHeight---{lineHeight}`
|
|
42
|
+
* (none 1 · tight 1.25 · snug 1.375 · normal 1.5 · relaxed 1.625 · loose 2).
|
|
43
|
+
* When unset, the component keeps its theme line-height.
|
|
44
|
+
*/
|
|
45
|
+
lineHeight?: TLineHeight;
|
|
46
|
+
/**
|
|
47
|
+
* Letter-spacing token. Maps to `--origam-font__letterSpacing---{letterSpacing}`
|
|
48
|
+
* (tight -0.025em · normal 0em · wide 0.0094em · wider 0.0125em · widest 0.0893em).
|
|
49
|
+
* When unset, the component keeps its theme letter-spacing.
|
|
50
|
+
*/
|
|
51
|
+
letterSpacing?: TLetterSpacing;
|
|
52
|
+
}
|
|
File without changes
|
|
@@ -2,7 +2,9 @@ import type { IFocusProps } from '../../interfaces';
|
|
|
2
2
|
import type { TValidateOn } from '../../types';
|
|
3
3
|
export interface IValidationProps extends IFocusProps {
|
|
4
4
|
disabled?: boolean;
|
|
5
|
-
error
|
|
5
|
+
/** Field-level error flag. Accepts a `boolean` (error on/off) or a `string`
|
|
6
|
+
* (error message rendered inline by consumers such as `FileField`). */
|
|
7
|
+
error?: string | boolean;
|
|
6
8
|
errorMessages?: Array<string> | string;
|
|
7
9
|
maxErrors?: number | string;
|
|
8
10
|
name?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IBorderProps, IColorProps, ICommonsComponentProps, IDensityProps, IElevationProps, IMarginProps, IPaddingProps, IRoundedProps, ITagProps, ITransitionComponentProps } from "../../interfaces";
|
|
2
|
-
export interface ICounterProps extends ICommonsComponentProps, ITagProps, IPaddingProps, IMarginProps, IBorderProps, IRoundedProps, IColorProps, IElevationProps, IDensityProps, ITransitionComponentProps {
|
|
1
|
+
import type { IBgColorProps, IBorderProps, IColorProps, ICommonsComponentProps, IDensityProps, IElevationProps, IMarginProps, IPaddingProps, IRoundedProps, ITagProps, ITransitionComponentProps } from "../../interfaces";
|
|
2
|
+
export interface ICounterProps extends ICommonsComponentProps, ITagProps, IPaddingProps, IMarginProps, IBorderProps, IRoundedProps, IColorProps, IBgColorProps, IElevationProps, IDensityProps, ITransitionComponentProps {
|
|
3
3
|
active?: boolean;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
max?: string | number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAdjacentProps, IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IDataListKVItem, IDataTextProps, IDataTitleProps, IDensityProps, IElevationProps, IMarginProps, IPaddingProps, IRoundedProps } from "../../interfaces";
|
|
1
|
+
import type { IAdjacentProps, IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IDataListKVItem, IDataTextProps, IDataTitleProps, IDensityProps, IElevationProps, IMarginProps, IPaddingProps, IRoundedProps, ITypographyProps } from "../../interfaces";
|
|
2
2
|
/**
|
|
3
3
|
* Layout mode of `<OrigamDataList>`.
|
|
4
4
|
*
|
|
@@ -14,7 +14,7 @@ import type { IAdjacentProps, IBorderProps, IBgColorProps, IColorProps, ICommons
|
|
|
14
14
|
* Items conform to {@link IDataListKVItem}.
|
|
15
15
|
*/
|
|
16
16
|
export type TDataListMode = 'avatar' | 'kv';
|
|
17
|
-
export interface IDataListProps extends ICommonsComponentProps, IAdjacentProps, IColorProps, IBgColorProps, IMarginProps, IPaddingProps, IDensityProps, IBorderProps, IRoundedProps, IElevationProps {
|
|
17
|
+
export interface IDataListProps extends ICommonsComponentProps, IAdjacentProps, IColorProps, IBgColorProps, IMarginProps, IPaddingProps, IDensityProps, IBorderProps, IRoundedProps, IElevationProps, ITypographyProps {
|
|
18
18
|
/**
|
|
19
19
|
* Selects the layout. Defaults to `"avatar"` so existing call sites
|
|
20
20
|
* keep their current rendering. Set to `"kv"` for the PDF-aligned
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { IAdjacentProps, IBgColorProps, IColorProps, ICommonsComponentProps, IDensityProps, IMarginProps, IPaddingProps } from "../../interfaces";
|
|
2
|
+
import type { TColor } from "../../types";
|
|
2
3
|
export interface IDataTextProps extends ICommonsComponentProps, IAdjacentProps, IDensityProps, IMarginProps, IPaddingProps, IColorProps, IBgColorProps {
|
|
3
4
|
text: string | number;
|
|
5
|
+
/** @deprecated Use the `hover` object prop instead. Kept for back-compat. */
|
|
6
|
+
hoverColor?: TColor;
|
|
7
|
+
/** @deprecated Use the `hover` object prop instead. Kept for back-compat. */
|
|
8
|
+
hoverBgColor?: TColor;
|
|
4
9
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { IAdjacentProps, IBgColorProps, IColorProps, ICommonsComponentProps, IDensityProps, IMarginProps, IPaddingProps } from "../../interfaces";
|
|
2
|
+
import type { TColor } from "../../types";
|
|
2
3
|
export interface IDataTitleProps extends ICommonsComponentProps, IAdjacentProps, IDensityProps, IMarginProps, IPaddingProps, IColorProps, IBgColorProps {
|
|
3
4
|
text: string | number;
|
|
5
|
+
/** @deprecated Use the `hover` object prop instead. Kept for back-compat. */
|
|
6
|
+
hoverColor?: TColor;
|
|
7
|
+
/** @deprecated Use the `hover` object prop instead. Kept for back-compat. */
|
|
8
|
+
hoverBgColor?: TColor;
|
|
4
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComputedRef, Ref, UnwrapRef } from 'vue';
|
|
2
2
|
import { ALIGN } from '../../enums';
|
|
3
|
-
import type { IAdjacentEmits, IColorProps, ICommonsComponentProps, IDataTableItem, IDataTableSortItem, IDisplayProps, ILoaderProps } from '../../interfaces';
|
|
4
|
-
import type {
|
|
3
|
+
import type { IAdjacentEmits, IBgColorProps, IColorProps, ICommonsComponentProps, IDataTableItem, IDataTableSortItem, IDisplayProps, ILoaderProps } from '../../interfaces';
|
|
4
|
+
import type { TDataTableCompareFunction, TDataTableHeaderCell, TFilterFunction, TIcon, TSelectItemKey } from '../../types';
|
|
5
5
|
export interface IHeaderCellProps extends ICommonsComponentProps, IColorProps {
|
|
6
6
|
disableSort?: boolean;
|
|
7
7
|
headerProps?: any;
|
|
@@ -24,7 +24,7 @@ export interface IDataTableHeadersCellMobileEmits extends IAdjacentEmits {
|
|
|
24
24
|
export interface IDataTableHeadersCellProps extends ICommonsComponentProps, IColorProps, IHeaderCellProps {
|
|
25
25
|
headers: Array<Array<IInternalDataTableHeader>>;
|
|
26
26
|
}
|
|
27
|
-
export interface IDataTableHeaderCellProps extends ICommonsComponentProps, IHeaderCellProps, IColorProps {
|
|
27
|
+
export interface IDataTableHeaderCellProps extends ICommonsComponentProps, IHeaderCellProps, IColorProps, IBgColorProps {
|
|
28
28
|
column: IInternalDataTableHeader;
|
|
29
29
|
x: number;
|
|
30
30
|
y: number;
|
|
@@ -37,7 +37,7 @@ export interface IDataTableHeadersSlotProps {
|
|
|
37
37
|
allSelected: UnwrapRef<ComputedRef<boolean>>;
|
|
38
38
|
toggleSort: (column: IInternalDataTableHeader) => void;
|
|
39
39
|
selectAll: (value: boolean) => void;
|
|
40
|
-
getSortIcon: (column: IInternalDataTableHeader) => TIcon;
|
|
40
|
+
getSortIcon: (column: IInternalDataTableHeader) => TIcon | undefined;
|
|
41
41
|
isSorted: (column: IInternalDataTableHeader) => boolean;
|
|
42
42
|
}
|
|
43
43
|
export interface IDataTableHeaderProps {
|
|
@@ -49,7 +49,7 @@ export interface IDataTableHeader<T = any> {
|
|
|
49
49
|
value?: TSelectItemKey<T>;
|
|
50
50
|
title?: string;
|
|
51
51
|
fixed?: boolean;
|
|
52
|
-
align?:
|
|
52
|
+
align?: ALIGN.START | ALIGN.END | ALIGN.CENTER;
|
|
53
53
|
width?: number | string;
|
|
54
54
|
minWidth?: string;
|
|
55
55
|
maxWidth?: string;
|
|
@@ -13,11 +13,11 @@ export interface IDataTableRowProps extends ICommonsComponentProps, IDisplayProp
|
|
|
13
13
|
}
|
|
14
14
|
/** Emits fired by `<OrigamDataTableRow>` — row-level expand / select. */
|
|
15
15
|
export interface IDataTableRowEmits {
|
|
16
|
-
(e: 'expand', payload
|
|
16
|
+
(e: 'expand', payload?: {
|
|
17
17
|
item: IDataTableItem;
|
|
18
18
|
value: boolean;
|
|
19
19
|
}): void;
|
|
20
|
-
(e: 'select', payload
|
|
20
|
+
(e: 'select', payload?: {
|
|
21
21
|
item: IDataTableItem;
|
|
22
22
|
value: boolean;
|
|
23
23
|
}): void;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import type { ICommonsComponentProps } from "../../interfaces";
|
|
1
|
+
import type { IActiveState, ICommonsComponentProps } from "../../interfaces";
|
|
2
2
|
import type { TDateMode, TIcon } from "../../types";
|
|
3
3
|
export interface IDatePickerControlsProps extends ICommonsComponentProps {
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Highlighted item(s) in the controls toolbar. Widened to include
|
|
6
|
+
* `boolean | IActiveState` so that IDatePickerProps can extend both this
|
|
7
|
+
* interface and IPickerProps (which via ISheetProps → IActiveProps declares
|
|
8
|
+
* `active?: boolean | IActiveState`) without TS2320.
|
|
9
|
+
*/
|
|
10
|
+
active?: string | Array<string> | boolean | IActiveState;
|
|
5
11
|
disabled?: boolean;
|
|
6
12
|
disabledMonth?: boolean;
|
|
7
13
|
disabledYear?: boolean;
|
|
@@ -14,11 +20,13 @@ export interface IDatePickerControlsProps extends ICommonsComponentProps {
|
|
|
14
20
|
viewMode?: TDateMode;
|
|
15
21
|
}
|
|
16
22
|
/** Emits fired by `<OrigamDatePickerControls>` — clicks on the five
|
|
17
|
-
* toolbar buttons (year / month / prev / next / text label).
|
|
23
|
+
* toolbar buttons (year / month / prev / next / text label).
|
|
24
|
+
* `event` is optional: the click handlers call `emits('click:prev')`
|
|
25
|
+
* etc. without forwarding the originating MouseEvent. */
|
|
18
26
|
export interface IDatePickerControlsEmits {
|
|
19
|
-
(e: 'click:year', event
|
|
20
|
-
(e: 'click:month', event
|
|
21
|
-
(e: 'click:prev', event
|
|
22
|
-
(e: 'click:next', event
|
|
23
|
-
(e: 'click:text', event
|
|
27
|
+
(e: 'click:year', event?: MouseEvent): void;
|
|
28
|
+
(e: 'click:month', event?: MouseEvent): void;
|
|
29
|
+
(e: 'click:prev', event?: MouseEvent): void;
|
|
30
|
+
(e: 'click:next', event?: MouseEvent): void;
|
|
31
|
+
(e: 'click:text', event?: MouseEvent): void;
|
|
24
32
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import type { IAdjacentProps,
|
|
1
|
+
import type { IAdjacentProps, IColorProps, ICommonsComponentProps, IDensityProps } from "../../interfaces";
|
|
2
2
|
import type { TTransitionProps } from "../../types";
|
|
3
3
|
export interface IDatePickerHeaderProps extends ICommonsComponentProps, IColorProps, IAdjacentProps, IDensityProps {
|
|
4
4
|
header?: string;
|
|
5
5
|
transition?: TTransitionProps;
|
|
6
6
|
}
|
|
7
|
-
/** Emits fired by `<OrigamDatePickerHeader>` — click on the header text.
|
|
8
|
-
|
|
7
|
+
/** Emits fired by `<OrigamDatePickerHeader>` — click on the header text.
|
|
8
|
+
* `event` is optional: the handler calls `emits('click')` without forwarding
|
|
9
|
+
* the originating MouseEvent. */
|
|
10
|
+
export interface IDatePickerHeaderEmits {
|
|
11
|
+
(e: 'click', event?: MouseEvent): void;
|
|
9
12
|
}
|
|
@@ -2,8 +2,8 @@ import type { IColorProps, ICommonsComponentProps, IDimensionProps } from "../..
|
|
|
2
2
|
export interface IDatePickerMonthsProps extends ICommonsComponentProps, IColorProps, IDimensionProps {
|
|
3
3
|
min?: unknown;
|
|
4
4
|
max?: unknown;
|
|
5
|
-
month
|
|
6
|
-
year
|
|
5
|
+
month?: number;
|
|
6
|
+
year?: number;
|
|
7
7
|
}
|
|
8
8
|
/** Emits fired by `<OrigamDatePickerMonths>` — click on a month tile. */
|
|
9
9
|
export interface IDatePickerMonthsEmits {
|
|
@@ -2,7 +2,7 @@ import type { IColorProps, ICommonsComponentProps, IDimensionProps } from "../..
|
|
|
2
2
|
export interface IDatePickerYearsProps extends ICommonsComponentProps, IColorProps, IDimensionProps {
|
|
3
3
|
min?: unknown;
|
|
4
4
|
max?: unknown;
|
|
5
|
-
year
|
|
5
|
+
year?: number;
|
|
6
6
|
}
|
|
7
7
|
/** Emits fired by `<OrigamDatePickerYears>` — click on a year tile. */
|
|
8
8
|
export interface IDatePickerYearsEmits {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IBorderProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDatePickerControlsProps, IDatePickerHeaderProps, IDatePickerMonthProps, IDatePickerMonthsProps, IDatePickerYearsProps, IElevationProps, IMarginProps, IPaddingProps, IPickerProps, IRoundedProps } from "../../interfaces";
|
|
2
2
|
import type { TDateMode } from "../../types";
|
|
3
|
-
export interface IDatePickerProps extends ICommonsComponentProps, IColorProps, IBorderProps, IRoundedProps, IElevationProps, IPaddingProps, IMarginProps, IPickerProps, IDatePickerControlsProps, IDatePickerMonthProps, IDatePickerMonthsProps, IDatePickerYearsProps, IDatePickerHeaderProps {
|
|
3
|
+
export interface IDatePickerProps extends ICommonsComponentProps, IColorProps, IBorderProps, IRoundedProps, IElevationProps, IPaddingProps, IMarginProps, IPickerProps, Omit<IDatePickerControlsProps, 'active'>, IDatePickerMonthProps, IDatePickerMonthsProps, IDatePickerYearsProps, IDatePickerHeaderProps {
|
|
4
4
|
modelValue?: string | Date | Array<string | Date>;
|
|
5
5
|
}
|
|
6
6
|
/** Emits fired by `<OrigamDatePicker>` — main v-model + the three navigation
|
|
@@ -4,6 +4,6 @@ export interface IDialogConfirmationProps extends IDialogProps {
|
|
|
4
4
|
}
|
|
5
5
|
/** Emits fired by `<OrigamDialogConfirmation>` — confirm/cancel buttons. */
|
|
6
6
|
export interface IDialogConfirmationEmits {
|
|
7
|
-
(e: 'validate', event
|
|
8
|
-
(e: 'cancel', event
|
|
7
|
+
(e: 'validate', event?: MouseEvent): void;
|
|
8
|
+
(e: 'cancel', event?: MouseEvent): void;
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICommonsComponentProps, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { ICommonsComponentProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TEmptyStateAlign, TEmptyStatePreset, TEmptyStateSize, TIcon, TIntent } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Props for `<OrigamEmptyState>` — placeholder shown when a list, table
|
|
@@ -10,8 +10,15 @@ import type { TEmptyStateAlign, TEmptyStatePreset, TEmptyStateSize, TIcon, TInte
|
|
|
10
10
|
* sides can be overridden via the `icon` and `iconColor` props for the
|
|
11
11
|
* 5% case. Slots are provided to replace the icon (with an SVG / img),
|
|
12
12
|
* title, description, or the entire layout for custom illustrations.
|
|
13
|
+
*
|
|
14
|
+
* Typography (`ITypographyProps`): `fontFamily` / `fontSize` / `fontWeight`
|
|
15
|
+
* / `lineHeight` apply to BOTH text surfaces (title + description) at once,
|
|
16
|
+
* each re-pointing the matching `--origam-empty-state__{title|description}---*`
|
|
17
|
+
* variable. `fontSize` overrides the size-driven font-size (generic-first).
|
|
18
|
+
* `letterSpacing` is inert here — neither text surface reads a
|
|
19
|
+
* `letter-spacing` rule.
|
|
13
20
|
*/
|
|
14
|
-
export interface IEmptyStateProps extends ICommonsComponentProps, ITagProps {
|
|
21
|
+
export interface IEmptyStateProps extends ICommonsComponentProps, ITagProps, ITypographyProps {
|
|
15
22
|
/**
|
|
16
23
|
* Visual preset. Bundles a default icon and intent — see
|
|
17
24
|
* `EMPTY_STATE_PRESET_CONFIG`. The preset is the starting point;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IActiveProps, IAdjacentEmits, IAdjacentProps, IBgColorProps, IBorderProps, IColorProps, ICommonsComponentProps, IDensityProps, IHoverProps, IMarginProps, IPaddingProps, IRippleProps, IRoundedProps, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { IActiveProps, IAdjacentEmits, IAdjacentProps, IBgColorProps, IBorderProps, IColorProps, ICommonsComponentProps, IDensityProps, IHoverProps, IMarginProps, IPaddingProps, IRippleProps, IRoundedProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TIcon } from '../../types';
|
|
3
|
-
export interface IExpansionPanelHeaderProps extends IColorProps, IBgColorProps, ITagProps, ICommonsComponentProps, IDensityProps, IRoundedProps, IBorderProps, IPaddingProps, IMarginProps, IAdjacentProps, IRippleProps, IActiveProps, IHoverProps {
|
|
3
|
+
export interface IExpansionPanelHeaderProps extends IColorProps, IBgColorProps, ITagProps, ICommonsComponentProps, IDensityProps, IRoundedProps, IBorderProps, IPaddingProps, IMarginProps, IAdjacentProps, IRippleProps, IActiveProps, IHoverProps, ITypographyProps {
|
|
4
4
|
expandIcon?: TIcon;
|
|
5
5
|
collapseIcon?: TIcon;
|
|
6
6
|
hideActions?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { IActiveEmits, IActiveProps, IAdjacentInnerEmits, IAdjacentInnerProps, IAdjacentInnerSlots, IBgColorProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDensityProps, IElevationProps, IFocusEmits, IFocusProps, ILabelProps, ILoaderProps, IRoundedProps, ISizeProps, IVariantProps } from '../../interfaces';
|
|
2
|
-
|
|
1
|
+
import type { IActiveEmits, IActiveProps, IAdjacentInnerEmits, IAdjacentInnerProps, IAdjacentInnerSlots, IBgColorProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDensityProps, IElevationProps, IFocusEmits, IFocusProps, ILabelProps, ILoaderProps, IRoundedProps, ISizeProps, ITypographyProps, IVariantProps } from '../../interfaces';
|
|
2
|
+
import type { TColor } from '../../types';
|
|
3
|
+
export interface IFieldProps extends ICommonsComponentProps, ILoaderProps, IColorProps, IBgColorProps, IAdjacentInnerProps, IFocusProps, IDensityProps, ILabelProps, IActiveProps, IVariantProps, IRoundedProps, IElevationProps, ISizeProps, ITypographyProps {
|
|
3
4
|
centerAffix?: boolean;
|
|
4
5
|
dirty?: boolean;
|
|
5
6
|
disabled?: boolean;
|
|
@@ -22,6 +23,10 @@ export interface IFieldProps extends ICommonsComponentProps, ILoaderProps, IColo
|
|
|
22
23
|
reverse?: boolean;
|
|
23
24
|
singleLine?: boolean;
|
|
24
25
|
required?: boolean;
|
|
26
|
+
/** @deprecated Use the `active` object prop instead. Kept for back-compat. */
|
|
27
|
+
activeColor?: TColor;
|
|
28
|
+
/** @deprecated Use the `active` object prop instead. Kept for back-compat. */
|
|
29
|
+
activeBgColor?: TColor;
|
|
25
30
|
}
|
|
26
31
|
/**
|
|
27
32
|
* Aggregate of every emit a `<OrigamField>` is expected to relay. Bundles
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IColorProps, ICommonsComponentProps } from '../../interfaces';
|
|
2
|
-
export interface IFileFieldDragNDropItemProps extends ICommonsComponentProps, IColorProps {
|
|
1
|
+
import type { IColorProps, ICommonsComponentProps, ITypographyProps } from '../../interfaces';
|
|
2
|
+
export interface IFileFieldDragNDropItemProps extends ICommonsComponentProps, IColorProps, ITypographyProps {
|
|
3
3
|
file: File;
|
|
4
4
|
index: number;
|
|
5
5
|
progress?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IColorProps, ICommonsComponentProps } from '../../interfaces';
|
|
2
|
-
export interface IFileFieldListItemProps extends ICommonsComponentProps, IColorProps {
|
|
1
|
+
import type { IColorProps, ICommonsComponentProps, ITypographyProps } from '../../interfaces';
|
|
2
|
+
export interface IFileFieldListItemProps extends ICommonsComponentProps, IColorProps, ITypographyProps {
|
|
3
3
|
file: File;
|
|
4
4
|
index: number;
|
|
5
5
|
progress?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentInternalInstance, ComputedRef, Raw, Ref } from 'vue';
|
|
2
|
-
import type { ICommonsComponentProps, ICommonsComponentSlots } from '../../interfaces';
|
|
2
|
+
import type { ICommonsComponentProps, ICommonsComponentSlots, ITypographyProps } from '../../interfaces';
|
|
3
3
|
import type { TValidateOn } from '../../types';
|
|
4
4
|
export interface IFormProvide {
|
|
5
5
|
register: (item: {
|
|
@@ -18,7 +18,7 @@ export interface IFormProvide {
|
|
|
18
18
|
isValid: Ref<boolean | null | undefined>;
|
|
19
19
|
validateOn: Ref<TValidateOn | undefined>;
|
|
20
20
|
}
|
|
21
|
-
export interface IFormProps extends ICommonsComponentProps {
|
|
21
|
+
export interface IFormProps extends ICommonsComponentProps, ITypographyProps {
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
fastFail?: boolean;
|
|
24
24
|
readonly?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IAlignProps, IBorderProps, IColorProps, ICommonsComponentProps, IDensityProps, IJustifyProps, IMarginProps, IPaddingProps, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { IAlignProps, IBgColorProps, IBorderProps, IColorProps, ICommonsComponentProps, IDensityProps, IJustifyProps, IMarginProps, IPaddingProps, ITagProps } from '../../interfaces';
|
|
2
2
|
import type { TFlexDirection } from '../../types';
|
|
3
|
-
export interface IRowProps extends ICommonsComponentProps, ITagProps, IPaddingProps, IMarginProps, IBorderProps, IColorProps, IDensityProps, IAlignProps, IJustifyProps {
|
|
3
|
+
export interface IRowProps extends ICommonsComponentProps, ITagProps, IPaddingProps, IMarginProps, IBorderProps, IColorProps, IBgColorProps, IDensityProps, IAlignProps, IJustifyProps {
|
|
4
4
|
gutters?: string | number;
|
|
5
5
|
direction?: TFlexDirection;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IBgColorProps, IColorProps, ICommonsComponentProps, IDimensionProps, IDirectionProps, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { IBgColorProps, IColorProps, ICommonsComponentProps, IDimensionProps, IDirectionProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TInfiniteScrollMode, TInfiniteScrollSide } from '../../types';
|
|
3
|
-
export interface IInfiniteScrollProps extends ICommonsComponentProps, IColorProps, IBgColorProps, IDimensionProps, ITagProps, IDirectionProps {
|
|
3
|
+
export interface IInfiniteScrollProps extends ICommonsComponentProps, IColorProps, IBgColorProps, IDimensionProps, ITagProps, IDirectionProps, ITypographyProps {
|
|
4
4
|
side?: TInfiniteScrollSide;
|
|
5
5
|
mode?: TInfiniteScrollMode;
|
|
6
6
|
loadMoreText?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICommonsComponentProps, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { ICommonsComponentProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TInlineEditInputType } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Signature of a validator passed to `<OrigamInlineEdit>` (and to the
|
|
@@ -11,6 +11,14 @@ import type { TInlineEditInputType } from '../../types';
|
|
|
11
11
|
* resolves.
|
|
12
12
|
*/
|
|
13
13
|
export type TInlineEditValidator = (value: string) => true | string | Promise<true | string>;
|
|
14
|
+
/**
|
|
15
|
+
* A single validation rule for `<OrigamInlineEdit>`. Matches the
|
|
16
|
+
* contract shared by all DS form fields (`IValidationProps.rules`):
|
|
17
|
+
* a function that receives the current string value and returns
|
|
18
|
+
* `true` when it passes, or an error message string when it fails.
|
|
19
|
+
* Async rules (returning a `Promise`) are supported.
|
|
20
|
+
*/
|
|
21
|
+
export type TInlineEditRule = (value: string) => true | string | Promise<true | string>;
|
|
14
22
|
/**
|
|
15
23
|
* Props for `<OrigamInlineEdit>` — edit-in-place pattern.
|
|
16
24
|
*
|
|
@@ -22,7 +30,7 @@ export type TInlineEditValidator = (value: string) => true | string | Promise<tr
|
|
|
22
30
|
* is true) — wrapping a heavier component (TextField, …) is not
|
|
23
31
|
* needed and would defeat the keyboard-driven UX.
|
|
24
32
|
*/
|
|
25
|
-
export interface IInlineEditProps extends ICommonsComponentProps, ITagProps {
|
|
33
|
+
export interface IInlineEditProps extends ICommonsComponentProps, ITagProps, ITypographyProps {
|
|
26
34
|
/**
|
|
27
35
|
* Current value (v-model target). Accepts both `string` and
|
|
28
36
|
* `number` for ergonomics — the internal draft is normalised to a
|
|
@@ -36,6 +44,19 @@ export interface IInlineEditProps extends ICommonsComponentProps, ITagProps {
|
|
|
36
44
|
* `t()` if they need i18n.
|
|
37
45
|
*/
|
|
38
46
|
placeholder?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Array of validation rules using the standard DS contract
|
|
49
|
+
* (same as `OrigamTextField` / `OrigamInput` rules). Each rule
|
|
50
|
+
* is a function receiving the current string value and returning
|
|
51
|
+
* `true` (pass) or an error message string (fail). Rules are
|
|
52
|
+
* evaluated sequentially on confirm; the first failure surfaces
|
|
53
|
+
* as the inline error and blocks the commit.
|
|
54
|
+
*
|
|
55
|
+
* When both `rules` and `validate` are provided, `rules` are
|
|
56
|
+
* evaluated first. If any rule fails, `validate` is skipped.
|
|
57
|
+
* Only the first error message is displayed.
|
|
58
|
+
*/
|
|
59
|
+
rules?: Array<TInlineEditRule>;
|
|
39
60
|
/**
|
|
40
61
|
* Validation callback. Returns `true` (or `Promise<true>`) when
|
|
41
62
|
* the draft is acceptable, or an error message string that will
|
|
@@ -43,6 +64,9 @@ export interface IInlineEditProps extends ICommonsComponentProps, ITagProps {
|
|
|
43
64
|
*
|
|
44
65
|
* Sync validators run on every Enter / blur. Async validators
|
|
45
66
|
* keep the editor open until the returned Promise settles.
|
|
67
|
+
*
|
|
68
|
+
* When both `rules` and `validate` are provided, `rules` are
|
|
69
|
+
* evaluated first. `validate` only runs if all rules pass.
|
|
46
70
|
*/
|
|
47
71
|
validate?: TInlineEditValidator;
|
|
48
72
|
/**
|
|
@@ -219,6 +243,11 @@ export interface IInlineEditSlots {
|
|
|
219
243
|
* Options for the `useInlineEdit` composable.
|
|
220
244
|
*/
|
|
221
245
|
export interface IUseInlineEditOptions {
|
|
246
|
+
/**
|
|
247
|
+
* Array of validation rules — evaluated in order before `validate`.
|
|
248
|
+
* First failure blocks the commit and surfaces the error message.
|
|
249
|
+
*/
|
|
250
|
+
rules?: Array<TInlineEditRule>;
|
|
222
251
|
/** Sync or async validator — see `TInlineEditValidator`. */
|
|
223
252
|
validate?: TInlineEditValidator;
|
|
224
253
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAdjacentEmits, IAdjacentProps, IAdjacentSlots, IBorderProps, IBgColorProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDensityProps, IDimensionProps, IDirectionProps, IElevationProps, IFocusEmits, IMarginProps, IPaddingProps, IRoundedProps, ISizeProps, IValidationProps } from '../../interfaces';
|
|
2
|
-
export interface IInputProps extends ICommonsComponentProps, IDensityProps, IPaddingProps, IMarginProps, IRoundedProps, IColorProps, IBgColorProps, IBorderProps, IElevationProps, IDimensionProps, IDirectionProps, IValidationProps, IAdjacentProps, ISizeProps {
|
|
1
|
+
import type { IAdjacentEmits, IAdjacentProps, IAdjacentSlots, IBorderProps, IBgColorProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDensityProps, IDimensionProps, IDirectionProps, IElevationProps, IFocusEmits, IMarginProps, IPaddingProps, IRoundedProps, ISizeProps, ITypographyProps, IValidationProps } from '../../interfaces';
|
|
2
|
+
export interface IInputProps extends ICommonsComponentProps, IDensityProps, IPaddingProps, IMarginProps, IRoundedProps, IColorProps, IBgColorProps, IBorderProps, IElevationProps, IDimensionProps, IDirectionProps, IValidationProps, IAdjacentProps, ISizeProps, ITypographyProps {
|
|
3
3
|
centerAffix?: boolean;
|
|
4
4
|
hideDetails?: boolean | string;
|
|
5
5
|
hideSpinButtons?: boolean;
|
|
@@ -23,9 +23,10 @@ export interface IInputEmits extends ICommonsComponentEmits, IAdjacentEmits, IFo
|
|
|
23
23
|
export interface IInputSlots extends IAdjacentSlots {
|
|
24
24
|
default?: (data: {
|
|
25
25
|
id: string;
|
|
26
|
+
messagesId: string;
|
|
26
27
|
isDisabled: boolean;
|
|
27
28
|
isDirty: boolean;
|
|
28
|
-
isValid: boolean;
|
|
29
|
+
isValid: boolean | undefined;
|
|
29
30
|
isReadonly: boolean;
|
|
30
31
|
}) => any;
|
|
31
32
|
messages?: (data: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IRoundedProps, ISizeProps } from '../../interfaces';
|
|
1
|
+
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IRoundedProps, ISizeProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TKbdVariant } from '../../types';
|
|
3
|
-
export interface IKbdProps extends ICommonsComponentProps, IColorProps, IBgColorProps, ISizeProps, IBorderProps, IRoundedProps {
|
|
3
|
+
export interface IKbdProps extends ICommonsComponentProps, IColorProps, IBgColorProps, ISizeProps, IBorderProps, IRoundedProps, ITypographyProps {
|
|
4
4
|
/** Single key label (e.g. "⌘", "Ctrl", "A"). Overridden by the default slot. */
|
|
5
5
|
text?: string;
|
|
6
6
|
/** Composed shortcut rendered as individual nested `<kbd>` elements (e.g. ['Ctrl', 'Shift', 'Z']). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, ICommonsComponentSlots, IMarginProps, IPaddingProps, IRoundedProps, ITagProps } from '../../interfaces';
|
|
2
|
-
export interface ILabelProps extends ICommonsComponentProps, IMarginProps, IPaddingProps, IBorderProps, IRoundedProps, IColorProps, IBgColorProps, ITagProps {
|
|
1
|
+
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, ICommonsComponentSlots, IMarginProps, IPaddingProps, IRoundedProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
|
+
export interface ILabelProps extends ICommonsComponentProps, IMarginProps, IPaddingProps, IBorderProps, IRoundedProps, IColorProps, IBgColorProps, ITagProps, ITypographyProps {
|
|
3
3
|
text?: string;
|
|
4
4
|
floating?: boolean;
|
|
5
5
|
required?: boolean;
|
|
@@ -12,5 +12,8 @@ export interface IListActivatorProps extends ICommonsComponentProps, ITagProps {
|
|
|
12
12
|
/** Emits fired by `<OrigamListGroup>` — click on the activator chrome
|
|
13
13
|
* (used by parents to toggle the open state). */
|
|
14
14
|
export interface IListGroupEmits {
|
|
15
|
-
(e: 'click:activator',
|
|
15
|
+
(e: 'click:activator', payload: {
|
|
16
|
+
open: boolean;
|
|
17
|
+
event: Event;
|
|
18
|
+
}): void;
|
|
16
19
|
}
|