origam 2.15.0 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/dist/src/components/Alert/OrigamAlert.vue +13 -16
- package/dist/src/components/App/OrigamAppBar.vue +5 -5
- package/dist/src/components/Audio/OrigamAudio.vue +5 -5
- package/dist/src/components/Avatar/OrigamAvatar.vue +5 -5
- package/dist/src/components/Badge/OrigamBadge.vue +5 -5
- package/dist/src/components/Blockquote/OrigamBlockquote.vue +8 -8
- package/dist/src/components/BottomNav/OrigamBottomNav.vue +10 -8
- package/dist/src/components/Bracket/OrigamBracket.vue +12 -16
- package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +6 -6
- package/dist/src/components/Bracket/OrigamBracketMatch.vue +24 -6
- package/dist/src/components/Bracket/OrigamBracketRound.vue +5 -5
- package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +11 -8
- package/dist/src/components/Btn/OrigamBtn.vue +7 -7
- package/dist/src/components/Calendar/OrigamCalendar.vue +25 -39
- package/dist/src/components/Card/OrigamCard.vue +4 -4
- package/dist/src/components/Card/OrigamCardHeader.vue +21 -5
- package/dist/src/components/Card/OrigamCardText.vue +27 -6
- package/dist/src/components/Chart/OrigamChart.vue +54 -2
- package/dist/src/components/Chart/OrigamChartBoxPlot.vue +3 -3
- package/dist/src/components/Chart/OrigamChartBullet.vue +3 -3
- package/dist/src/components/Chart/OrigamChartCandlestick.vue +3 -3
- package/dist/src/components/Chart/OrigamChartCartesian.vue +5 -5
- package/dist/src/components/Chart/OrigamChartGauge.vue +3 -3
- package/dist/src/components/Chart/OrigamChartHeatmap.vue +3 -3
- package/dist/src/components/Chart/OrigamChartHoneycomb.vue +3 -3
- package/dist/src/components/Chart/OrigamChartLegend.vue +1 -1
- package/dist/src/components/Chart/OrigamChartMap.vue +3 -3
- package/dist/src/components/Chart/OrigamChartPareto.vue +3 -3
- package/dist/src/components/Chart/OrigamChartPictorial.vue +4 -4
- package/dist/src/components/Chart/OrigamChartPolar.vue +4 -4
- package/dist/src/components/Chart/OrigamChartPolarBar.vue +3 -3
- package/dist/src/components/Chart/OrigamChartPyramid.vue +3 -3
- package/dist/src/components/Chart/OrigamChartRadar.vue +3 -3
- package/dist/src/components/Chart/OrigamChartSankey.vue +3 -3
- package/dist/src/components/Chart/OrigamChartSparkline.vue +2 -2
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +4 -4
- package/dist/src/components/Chart/OrigamChartSunburst.vue +3 -3
- package/dist/src/components/Chart/OrigamChartTreemap.vue +4 -4
- package/dist/src/components/Chart/OrigamChartVariwide.vue +3 -3
- package/dist/src/components/Chart/OrigamChartWordCloud.vue +2 -2
- package/dist/src/components/Checkbox/OrigamCheckbox.vue +5 -5
- package/dist/src/components/Chip/OrigamChip.vue +18 -7
- package/dist/src/components/Chip/OrigamChipGroup.vue +9 -7
- package/dist/src/components/Clipboard/OrigamClipboard.vue +5 -5
- package/dist/src/components/Code/OrigamCode.vue +5 -5
- package/dist/src/components/ColorPicker/OrigamColorPicker.vue +6 -6
- package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +2 -2
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +5 -5
- package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +5 -5
- package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +5 -5
- package/dist/src/components/Counter/OrigamCounter.vue +42 -2
- package/dist/src/components/DataList/OrigamDataList.vue +6 -6
- package/dist/src/components/DataTable/OrigamDataTable.vue +5 -5
- package/dist/src/components/DataTable/OrigamDataTableHeaders.vue +2 -2
- package/dist/src/components/DataTable/OrigamDataTableRows.vue +2 -1
- package/dist/src/components/DatePicker/OrigamDatePicker.vue +6 -6
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +5 -5
- package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +1 -1
- package/dist/src/components/EmptyState/OrigamEmptyState.vue +7 -7
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +8 -8
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +2 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +5 -5
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +12 -8
- package/dist/src/components/Field/OrigamField.vue +7 -7
- package/dist/src/components/FileField/OrigamFileField.vue +12 -12
- package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +5 -5
- package/dist/src/components/FileField/OrigamFileFieldListItem.vue +5 -5
- package/dist/src/components/Form/OrigamForm.vue +6 -6
- package/dist/src/components/Grid/OrigamGrid.vue +5 -5
- package/dist/src/components/Grid/OrigamGridItem.vue +2 -2
- package/dist/src/components/Icon/OrigamClassIcon.vue +28 -3
- package/dist/src/components/Icon/OrigamComponentIcon.vue +28 -3
- package/dist/src/components/Icon/OrigamIcon.vue +0 -1
- package/dist/src/components/Icon/OrigamLigatureIcon.vue +28 -3
- package/dist/src/components/Icon/OrigamSvgIcon.vue +28 -3
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +5 -5
- package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +5 -5
- package/dist/src/components/Input/OrigamInput.vue +25 -5
- package/dist/src/components/ItemGroup/OrigamItemGroup.vue +6 -3
- package/dist/src/components/Kbd/OrigamKbd.vue +8 -7
- package/dist/src/components/Label/OrigamLabel.vue +5 -5
- package/dist/src/components/List/OrigamList.vue +9 -7
- package/dist/src/components/List/OrigamListGroup.vue +7 -4
- package/dist/src/components/List/OrigamListItem.vue +5 -5
- package/dist/src/components/List/OrigamListSubheader.vue +5 -5
- package/dist/src/components/Masonry/OrigamMasonry.vue +7 -4
- package/dist/src/components/Media/OrigamMediaController.vue +0 -5
- package/dist/src/components/Media/OrigamMediaScrubber.vue +17 -13
- package/dist/src/components/Menu/OrigamMenu.vue +25 -12
- package/dist/src/components/Messages/OrigamMessages.vue +5 -5
- package/dist/src/components/NumberField/OrigamNumberField.vue +5 -5
- package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +7 -7
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +5 -5
- package/dist/src/components/Pagination/OrigamPagination.vue +33 -6
- package/dist/src/components/Parallax/OrigamParallax.vue +24 -6
- package/dist/src/components/Parallax/OrigamParallaxElement.vue +4 -4
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +5 -5
- package/dist/src/components/Picker/OrigamPicker.vue +6 -6
- package/dist/src/components/Picker/OrigamPickerTitle.vue +5 -5
- package/dist/src/components/QrCode/OrigamQrCode.vue +1 -1
- package/dist/src/components/Radio/OrigamRadio.vue +5 -5
- package/dist/src/components/Radio/OrigamRadioGroup.vue +15 -12
- package/dist/src/components/RatingField/OrigamRatingField.vue +5 -5
- package/dist/src/components/Select/OrigamSelect.vue +5 -5
- package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +4 -2
- package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +17 -15
- package/dist/src/components/Sheet/OrigamSheet.vue +2 -2
- package/dist/src/components/Skeleton/OrigamSkeleton.vue +1 -1
- package/dist/src/components/Slide/OrigamSlideGroup.vue +1 -1
- package/dist/src/components/SliderField/OrigamSliderField.vue +5 -5
- package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +1 -4
- package/dist/src/components/Snackbar/OrigamSnackbar.vue +1 -0
- package/dist/src/components/Snackbar/OrigamSnackbarGroup.vue +11 -7
- package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +16 -10
- package/dist/src/components/Stepper/OrigamStepper.vue +3 -3
- package/dist/src/components/Stepper/OrigamStepperItem.vue +10 -10
- package/dist/src/components/Switch/OrigamSwitch.vue +11 -54
- package/dist/src/components/SystemBar/OrigamSystemBar.vue +5 -5
- package/dist/src/components/Table/OrigamTable.vue +5 -5
- package/dist/src/components/Tabs/OrigamTab.vue +5 -5
- package/dist/src/components/Tabs/OrigamTabPanels.vue +6 -3
- package/dist/src/components/Tabs/OrigamTabs.vue +9 -6
- package/dist/src/components/TextField/OrigamTextField.vue +5 -5
- package/dist/src/components/TextMask/OrigamTextMask.vue +7 -7
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +8 -6
- package/dist/src/components/ThemeProvider/OrigamThemeProvider.vue +2 -2
- package/dist/src/components/Timeline/OrigamTimeline.vue +7 -5
- package/dist/src/components/Timeline/OrigamTimelineItem.vue +10 -9
- package/dist/src/components/Title/OrigamTitle.vue +5 -5
- package/dist/src/components/Toolbar/OrigamToolbar.vue +5 -5
- package/dist/src/components/Tooltip/OrigamTooltip.vue +5 -5
- package/dist/src/components/Treeview/OrigamTreeview.vue +8 -8
- package/dist/src/components/Treeview/OrigamTreeviewNode.vue +5 -4
- package/dist/src/components/Video/OrigamVideo.vue +8 -55
- package/dist/src/composables/Calendar/calendar.composable.cjs +11 -10
- package/dist/src/composables/Calendar/calendar.composable.d.ts +2 -26
- package/dist/src/composables/Calendar/calendar.composable.js +11 -10
- package/dist/src/composables/CommandPalette/command.composable.d.ts +2 -24
- package/dist/src/composables/Commons/defaults.composable.cjs +1 -0
- package/dist/src/composables/Commons/defaults.composable.d.ts +11 -0
- package/dist/src/composables/Commons/defaults.composable.js +1 -1
- package/dist/src/composables/Commons/loader.composable.cjs +2 -1
- package/dist/src/composables/Commons/loader.composable.d.ts +3 -24
- package/dist/src/composables/Commons/loader.composable.js +2 -1
- package/dist/src/composables/Commons/margin.composable.cjs +26 -12
- package/dist/src/composables/Commons/margin.composable.d.ts +37 -0
- package/dist/src/composables/Commons/margin.composable.js +22 -25
- package/dist/src/composables/Commons/padding.composable.cjs +26 -12
- package/dist/src/composables/Commons/padding.composable.d.ts +26 -0
- package/dist/src/composables/Commons/padding.composable.js +22 -25
- package/dist/src/composables/Commons/props.composable.d.ts +45 -0
- package/dist/src/composables/Commons/rounded.composable.cjs +18 -23
- package/dist/src/composables/Commons/rounded.composable.d.ts +29 -11
- package/dist/src/composables/Commons/rounded.composable.js +27 -31
- package/dist/src/composables/Commons/stateEffect.composable.cjs +53 -1
- package/dist/src/composables/Commons/stateEffect.composable.d.ts +2 -6
- package/dist/src/composables/Commons/stateEffect.composable.js +65 -7
- package/dist/src/composables/Commons/theme-props-resolver.composable.cjs +82 -0
- package/dist/src/composables/Commons/theme-props-resolver.composable.d.ts +38 -0
- package/dist/src/composables/Commons/theme-props-resolver.composable.js +75 -0
- package/dist/src/composables/CssSupport/cssSupport.composable.d.ts +5 -43
- package/dist/src/composables/Mask/mask.composable.d.ts +3 -23
- package/dist/src/composables/Masonry/masonry.composable.d.ts +4 -58
- package/dist/src/composables/Parallax/parallax.composable.d.ts +2 -20
- package/dist/src/composables/PasswordField/passwordStrength.composable.cjs +3 -2
- package/dist/src/composables/PasswordField/passwordStrength.composable.js +6 -5
- package/dist/src/composables/Snackbar/snackbar-group.composable.cjs +8 -3
- package/dist/src/composables/Snackbar/snackbar-group.composable.d.ts +3 -22
- package/dist/src/composables/Snackbar/snackbar-group.composable.js +8 -3
- package/dist/src/composables/Theme/theme.composable.d.ts +1 -1
- package/dist/src/composables/Transition/transition.composable.cjs +2 -2
- package/dist/src/composables/Transition/transition.composable.d.ts +3 -3
- package/dist/src/composables/Transition/transition.composable.js +2 -2
- package/dist/src/composables/index.cjs +12 -0
- package/dist/src/composables/index.d.ts +1 -0
- package/dist/src/composables/index.js +1 -0
- package/dist/src/consts/Blockquote/blockquote.const.cjs +3 -2
- package/dist/src/consts/Blockquote/blockquote.const.js +3 -14
- package/dist/src/consts/Bracket/bracket.const.cjs +3 -2
- package/dist/src/consts/Bracket/bracket.const.js +3 -11
- package/dist/src/consts/ColorPicker/color-picker.const.cjs +7 -7
- package/dist/src/consts/ColorPicker/color-picker.const.js +1 -1
- package/dist/src/consts/Commons/border.const.cjs +2 -2
- package/dist/src/consts/Commons/border.const.js +3 -3
- package/dist/src/consts/Commons/spacing.const.cjs +78 -0
- package/dist/src/consts/Commons/spacing.const.d.ts +102 -0
- package/dist/src/consts/Commons/spacing.const.js +56 -0
- package/dist/src/consts/EmptyState/empty-state.const.cjs +6 -6
- package/dist/src/consts/EmptyState/empty-state.const.js +7 -13
- package/dist/src/consts/Media/media.const.cjs +3 -2
- package/dist/src/consts/Media/media.const.d.ts +17 -0
- package/dist/src/consts/Media/media.const.js +1 -0
- package/dist/src/consts/QrCode/qr-code.const.cjs +2 -1
- package/dist/src/consts/QrCode/qr-code.const.js +2 -1
- package/dist/src/consts/index.cjs +11 -0
- package/dist/src/consts/index.d.ts +1 -0
- package/dist/src/consts/index.js +1 -0
- package/dist/src/enums/Bracket/bracket-round.enum.cjs +12 -0
- package/dist/src/enums/Bracket/bracket-round.enum.d.ts +10 -0
- package/dist/src/enums/Bracket/bracket-round.enum.js +6 -0
- package/dist/src/enums/Calendar/calendar.enum.cjs +24 -0
- package/dist/src/enums/Calendar/calendar.enum.d.ts +28 -0
- package/dist/src/enums/Calendar/calendar.enum.js +18 -0
- package/dist/src/enums/Chart/chart-sunburst.enum.cjs +12 -0
- package/dist/src/enums/Chart/chart-sunburst.enum.d.ts +12 -0
- package/dist/src/enums/Chart/chart-sunburst.enum.js +6 -0
- package/dist/src/enums/Chart/chart.enum.cjs +8 -2
- package/dist/src/enums/Chart/chart.enum.d.ts +21 -0
- package/dist/src/enums/Chart/chart.enum.js +6 -0
- package/dist/src/enums/Code/code.enum.cjs +9 -8
- package/dist/src/enums/Code/code.enum.d.ts +7 -5
- package/dist/src/enums/Code/code.enum.js +1 -6
- package/dist/src/enums/Commons/align.enum.cjs +8 -2
- package/dist/src/enums/Commons/align.enum.d.ts +14 -0
- package/dist/src/enums/Commons/align.enum.js +6 -0
- package/dist/src/enums/Commons/border.enum.cjs +7 -2
- package/dist/src/enums/Commons/border.enum.d.ts +9 -0
- package/dist/src/enums/Commons/border.enum.js +5 -0
- package/dist/src/enums/Commons/color.enum.cjs +13 -0
- package/dist/src/enums/Commons/color.enum.d.ts +17 -0
- package/dist/src/enums/Commons/color.enum.js +7 -0
- package/dist/src/enums/Commons/font-family.enum.cjs +12 -0
- package/dist/src/enums/Commons/font-family.enum.d.ts +10 -0
- package/dist/src/enums/Commons/font-family.enum.js +6 -0
- package/dist/src/enums/Commons/font-size.enum.cjs +18 -0
- package/dist/src/enums/Commons/font-size.enum.d.ts +21 -0
- package/dist/src/enums/Commons/font-size.enum.js +12 -0
- package/dist/src/enums/Commons/font-weight.enum.cjs +15 -0
- package/dist/src/enums/Commons/font-weight.enum.d.ts +12 -0
- package/dist/src/enums/Commons/font-weight.enum.js +9 -0
- package/dist/src/enums/Commons/letter-spacing.enum.cjs +14 -0
- package/dist/src/enums/Commons/letter-spacing.enum.d.ts +12 -0
- package/dist/src/enums/Commons/letter-spacing.enum.js +8 -0
- package/dist/src/enums/Commons/line-height.enum.cjs +15 -0
- package/dist/src/enums/Commons/line-height.enum.d.ts +12 -0
- package/dist/src/enums/Commons/line-height.enum.js +9 -0
- package/dist/src/enums/Commons/loader.enum.cjs +12 -0
- package/dist/src/enums/Commons/loader.enum.d.ts +14 -0
- package/dist/src/enums/Commons/loader.enum.js +6 -0
- package/dist/src/enums/Commons/theme.enum.cjs +12 -0
- package/dist/src/enums/Commons/theme.enum.d.ts +19 -0
- package/dist/src/enums/Commons/theme.enum.js +6 -0
- package/dist/src/enums/DataList/data-list.enum.cjs +11 -0
- package/dist/src/enums/DataList/data-list.enum.d.ts +15 -0
- package/dist/src/enums/DataList/data-list.enum.js +5 -0
- package/dist/src/enums/FileField/file-field.enum.cjs +12 -0
- package/dist/src/enums/FileField/file-field.enum.d.ts +9 -0
- package/dist/src/enums/FileField/file-field.enum.js +6 -0
- package/dist/src/enums/Grid/grid.enum.cjs +13 -0
- package/dist/src/enums/Grid/grid.enum.d.ts +15 -0
- package/dist/src/enums/Grid/grid.enum.js +7 -0
- package/dist/src/enums/Kbd/kbd.enum.cjs +12 -0
- package/dist/src/enums/Kbd/kbd.enum.d.ts +10 -0
- package/dist/src/enums/Kbd/kbd.enum.js +6 -0
- package/dist/src/enums/Masonry/masonry.enum.cjs +11 -0
- package/dist/src/enums/Masonry/masonry.enum.d.ts +10 -0
- package/dist/src/enums/Masonry/masonry.enum.js +5 -0
- package/dist/src/enums/NumberFormat/number-format.enum.cjs +55 -0
- package/dist/src/enums/NumberFormat/number-format.enum.d.ts +78 -0
- package/dist/src/enums/NumberFormat/number-format.enum.js +49 -0
- package/dist/src/enums/PasswordField/password-field.enum.cjs +13 -0
- package/dist/src/enums/PasswordField/password-field.enum.d.ts +12 -0
- package/dist/src/enums/PasswordField/password-field.enum.js +7 -0
- package/dist/src/enums/QrCode/qr-code.enum.cjs +13 -0
- package/dist/src/enums/QrCode/qr-code.enum.d.ts +11 -0
- package/dist/src/enums/QrCode/qr-code.enum.js +7 -0
- package/dist/src/enums/Sheet/sheet.enum.cjs +13 -0
- package/dist/src/enums/Sheet/sheet.enum.d.ts +14 -0
- package/dist/src/enums/Sheet/sheet.enum.js +7 -0
- package/dist/src/enums/Skeleton/skeleton.enum.cjs +14 -0
- package/dist/src/enums/Skeleton/skeleton.enum.d.ts +11 -0
- package/dist/src/enums/Skeleton/skeleton.enum.js +8 -0
- package/dist/src/enums/Snackbar/snackbar-group.enum.cjs +22 -0
- package/dist/src/enums/Snackbar/snackbar-group.enum.d.ts +22 -0
- package/dist/src/enums/Snackbar/snackbar-group.enum.js +16 -0
- package/dist/src/enums/Stepper/stepper.enum.cjs +13 -0
- package/dist/src/enums/Stepper/stepper.enum.d.ts +11 -0
- package/dist/src/enums/Stepper/stepper.enum.js +7 -0
- package/dist/src/enums/TextField/text-field.enum.cjs +8 -1
- package/dist/src/enums/TextField/text-field.enum.d.ts +12 -0
- package/dist/src/enums/TextField/text-field.enum.js +7 -0
- package/dist/src/enums/TextMask/text-mask.enum.cjs +13 -0
- package/dist/src/enums/TextMask/text-mask.enum.d.ts +11 -0
- package/dist/src/enums/TextMask/text-mask.enum.js +7 -0
- package/dist/src/enums/Timeline/timeline.enum.cjs +12 -0
- package/dist/src/enums/Timeline/timeline.enum.d.ts +10 -0
- package/dist/src/enums/Timeline/timeline.enum.js +6 -0
- package/dist/src/enums/Treeview/treeview.enum.cjs +17 -0
- package/dist/src/enums/Treeview/treeview.enum.d.ts +18 -0
- package/dist/src/enums/Treeview/treeview.enum.js +11 -0
- package/dist/src/enums/Video/video.enum.cjs +13 -0
- package/dist/src/enums/Video/video.enum.d.ts +12 -0
- package/dist/src/enums/Video/video.enum.js +7 -0
- package/dist/src/enums/index.cjs +297 -0
- package/dist/src/enums/index.d.ts +27 -0
- package/dist/src/enums/index.js +27 -0
- package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.d.ts +2 -2
- package/dist/src/interfaces/Bracket/bracket-match-component.interface.d.ts +2 -2
- package/dist/src/interfaces/Bracket/bracket-surface.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket-surface.interface.d.ts +56 -0
- package/dist/src/interfaces/Bracket/bracket-surface.interface.js +0 -0
- package/dist/src/interfaces/Calendar/calendar.interface.d.ts +25 -0
- package/dist/src/interfaces/Calendar/rrule.interface.cjs +1 -0
- package/dist/src/interfaces/Calendar/rrule.interface.d.ts +26 -0
- package/dist/src/interfaces/Calendar/rrule.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-sunburst.interface.d.ts +2 -8
- package/dist/src/interfaces/CommandPalette/command-palette-rendered-group.interface.d.ts +1 -2
- package/dist/src/interfaces/CommandPalette/command.interface.d.ts +47 -0
- package/dist/src/interfaces/Commons/loader.interface.d.ts +23 -1
- package/dist/src/interfaces/Commons/margin.interface.d.ts +30 -0
- package/dist/src/interfaces/Commons/padding.interface.d.ts +29 -0
- package/dist/src/interfaces/Commons/rounded.interface.d.ts +24 -0
- package/dist/src/interfaces/CssSupport/css-support.interface.cjs +1 -0
- package/dist/src/interfaces/CssSupport/css-support.interface.d.ts +43 -0
- package/dist/src/interfaces/CssSupport/css-support.interface.js +0 -0
- package/dist/src/interfaces/DataList/data-list.interface.d.ts +2 -15
- package/dist/src/interfaces/Dialog/dialog-confirmation.interface.d.ts +2 -2
- package/dist/src/interfaces/Form/form.interface.d.ts +9 -2
- package/dist/src/interfaces/Icon/icon.interface.d.ts +11 -1
- package/dist/src/interfaces/Mask/mask-options.interface.d.ts +23 -2
- package/dist/src/interfaces/Masonry/masonry.interface.d.ts +55 -0
- package/dist/src/interfaces/Media/media-scrubber.interface.d.ts +25 -3
- package/dist/src/interfaces/Menu/menu.interface.d.ts +10 -2
- package/dist/src/interfaces/Parallax/parallax.interface.d.ts +18 -0
- package/dist/src/interfaces/QrCode/qr-code.interface.d.ts +15 -1
- package/dist/src/interfaces/Radio/radio-group.interface.d.ts +4 -1
- package/dist/src/interfaces/Sheet/sheet-emits.interface.d.ts +7 -1
- package/dist/src/interfaces/Snackbar/snackbar-group.interface.d.ts +62 -2
- package/dist/src/interfaces/Snackbar/snackbar.interface.d.ts +4 -1
- package/dist/src/interfaces/Theme/origam-theme.interface.d.ts +16 -1
- package/dist/src/interfaces/Timeline/timeline.interface.d.ts +4 -4
- package/dist/src/interfaces/Video/video.interface.d.ts +2 -2
- package/dist/src/interfaces/Watermark/watermark.interface.d.ts +19 -0
- 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/origam.cjs +2 -0
- package/dist/src/origam.js +14 -1
- package/dist/src/types/Blockquote/blockquote.type.d.ts +4 -3
- package/dist/src/types/Bracket/bracket-round.type.d.ts +2 -1
- package/dist/src/types/Bracket/bracket.type.d.ts +50 -0
- package/dist/src/types/Calendar/calendar.type.d.ts +4 -3
- package/dist/src/types/Chart/chart-cartesian.type.d.ts +2 -1
- package/dist/src/types/Chart/chart-legend.type.d.ts +5 -1
- package/dist/src/types/Chart/chart-pictorial.type.d.ts +2 -1
- package/dist/src/types/Chart/chart-polar.type.d.ts +2 -1
- package/dist/src/types/Chart/chart-streamgraph.type.d.ts +2 -1
- package/dist/src/types/Chart/chart-sunburst.type.d.ts +8 -0
- package/dist/src/types/Chart/chart-treemap.type.d.ts +2 -1
- package/dist/src/types/Chart/chart.type.d.ts +14 -2
- package/dist/src/types/Code/code.type.d.ts +19 -0
- package/dist/src/types/Commons/align.type.d.ts +6 -1
- package/dist/src/types/Commons/border.type.d.ts +2 -2
- package/dist/src/types/Commons/color.type.d.ts +2 -1
- package/dist/src/types/Commons/css-support.type.cjs +1 -0
- package/dist/src/types/Commons/css-support.type.d.ts +26 -0
- package/dist/src/types/Commons/css-support.type.js +0 -0
- package/dist/src/types/Commons/font-family.type.d.ts +2 -1
- package/dist/src/types/Commons/font-size.type.d.ts +2 -1
- package/dist/src/types/Commons/font-weight.type.d.ts +2 -1
- package/dist/src/types/Commons/letter-spacing.type.d.ts +2 -1
- package/dist/src/types/Commons/line-height.type.d.ts +2 -1
- package/dist/src/types/Commons/loader.type.d.ts +5 -4
- package/dist/src/types/Commons/state-effect.type.cjs +1 -0
- package/dist/src/types/Commons/state-effect.type.d.ts +30 -0
- package/dist/src/types/Commons/state-effect.type.js +0 -0
- package/dist/src/types/DataList/data-list.type.d.ts +16 -0
- package/dist/src/types/EmptyState/empty-state.type.d.ts +8 -2
- package/dist/src/types/FileField/file-field.type.d.ts +2 -1
- package/dist/src/types/Grid/grid-item.type.d.ts +4 -2
- package/dist/src/types/Grid/grid.type.d.ts +13 -4
- package/dist/src/types/InlineEdit/inline-edit.type.d.ts +5 -1
- package/dist/src/types/Kbd/kbd.type.d.ts +2 -1
- package/dist/src/types/Masonry/masonry.type.d.ts +2 -1
- package/dist/src/types/NumberFormat/number-format.type.d.ts +8 -7
- package/dist/src/types/PasswordField/password-field.type.d.ts +2 -1
- package/dist/src/types/QrCode/qr-code.type.d.ts +2 -1
- package/dist/src/types/Sheet/sheet.type.d.ts +2 -1
- package/dist/src/types/Skeleton/skeleton.type.d.ts +2 -1
- package/dist/src/types/Snackbar/snackbar-group.type.d.ts +3 -2
- package/dist/src/types/Stepper/stepper.type.d.ts +2 -1
- package/dist/src/types/TextField/text-field.type.d.ts +2 -2
- package/dist/src/types/TextMask/text-mask.type.d.ts +2 -1
- package/dist/src/types/Theme/theme.type.d.ts +3 -2
- package/dist/src/types/Timeline/timeline.type.d.ts +2 -1
- package/dist/src/types/Treeview/treeview.type.d.ts +3 -2
- package/dist/src/types/Video/video.type.d.ts +2 -1
- package/dist/src/types/index.cjs +22 -0
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/types/index.js +2 -0
- package/dist/src/utils/Bracket/bracket-surface.util.cjs +26 -0
- package/dist/src/utils/Bracket/bracket-surface.util.d.ts +3 -24
- package/dist/src/utils/Bracket/bracket-surface.util.js +16 -0
- package/dist/src/utils/Calendar/rrule.util.d.ts +2 -10
- package/dist/src/utils/Chart/path.util.d.ts +2 -2
- package/dist/src/utils/CommandPalette/fuzzy-match.util.d.ts +2 -10
- package/dist/src/utils/Commons/color.util.cjs +2 -1
- package/dist/src/utils/Commons/color.util.js +2 -1
- package/dist/src/utils/Commons/spacing.util.cjs +34 -0
- package/dist/src/utils/Commons/spacing.util.d.ts +55 -0
- package/dist/src/utils/Commons/spacing.util.js +27 -0
- package/dist/src/utils/Mask/apply-mask.util.cjs +8 -7
- package/dist/src/utils/Mask/apply-mask.util.js +8 -7
- package/dist/src/utils/index.cjs +11 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.js +1 -0
- package/package.json +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,70 @@ This project follows [Semantic Versioning](https://semver.org).
|
|
|
13
13
|
|
|
14
14
|
## [Unreleased]
|
|
15
15
|
|
|
16
|
+
## [2.16.0] - 2026-08-19
|
|
17
|
+
|
|
18
|
+
A release about **things that were declared but did nothing**. Seven
|
|
19
|
+
components emitted events they never declared; one prop had been inert since
|
|
20
|
+
it shipped; another prop had no reason to exist at all. None of it was
|
|
21
|
+
visible — that is precisely why it lasted.
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- **Seven components emitted `update:*` without declaring it.** `OrigamForm`,
|
|
26
|
+
`OrigamSheet`, `OrigamBracketCompetitor`, `OrigamBracketMatch`,
|
|
27
|
+
`OrigamDialogConfirmation`, `OrigamRadioGroup` and `OrigamSnackbar` write
|
|
28
|
+
through a `useVModel` held by a composable they hand their `props` to — so
|
|
29
|
+
the emit exists without any `emit(...)` appearing in the component. Vue
|
|
30
|
+
warned on every mount, and the `onUpdate:*` handler stayed in `$attrs`,
|
|
31
|
+
where `inheritAttrs` pinned it onto the root element instead of wiring it
|
|
32
|
+
as an event. `v-model` on these components now behaves as documented, with
|
|
33
|
+
no console noise.
|
|
34
|
+
|
|
35
|
+
- **`density` did nothing on `OrigamCounter`.** `ICounterProps` has extended
|
|
36
|
+
`IDensityProps` since it shipped, but the component never called
|
|
37
|
+
`useDensity` — the story even exposed a control for it. The three density
|
|
38
|
+
classes are now emitted.
|
|
39
|
+
|
|
40
|
+
⚠️ Known limitation, tracked in
|
|
41
|
+
[#356](https://github.com/Elyseranet/origam/issues/356): the counter's font
|
|
42
|
+
size does not currently respond to **any** channel — not a prop, not a
|
|
43
|
+
token, not a theme, not even an inline style. The class is emitted and the
|
|
44
|
+
SCSS rule matches; the rendered size does not follow, and the cause is not
|
|
45
|
+
yet identified. The prop→class link is proven; the visual effect is not
|
|
46
|
+
claimed.
|
|
47
|
+
|
|
48
|
+
### Removed
|
|
49
|
+
|
|
50
|
+
- **`disabled` is gone from the whole `Icon` family** — `OrigamIcon`,
|
|
51
|
+
`OrigamClassIcon`, `OrigamComponentIcon`, `OrigamLigatureIcon`,
|
|
52
|
+
`OrigamSvgIcon`.
|
|
53
|
+
|
|
54
|
+
**Migration: delete it, nothing else changes.** None of the five components
|
|
55
|
+
ever read it — no class, no attribute, no style — so `<origam-icon
|
|
56
|
+
disabled>` was already a no-op. Your rendering is identical before and
|
|
57
|
+
after; only the TypeScript signature narrows, so a stale `disabled` now
|
|
58
|
+
raises a compile error instead of failing silently.
|
|
59
|
+
|
|
60
|
+
An icon renders a glyph; it does not respond to input. Paint the disabled
|
|
61
|
+
state on the control that **owns** the icon — the button, the field, the
|
|
62
|
+
list item — and the icon inherits its opacity and cursor. That is also what
|
|
63
|
+
keeps one control from showing two divergent disabled treatments.
|
|
64
|
+
|
|
65
|
+
### Tooling
|
|
66
|
+
|
|
67
|
+
- **New architecture guard: `emits-completeness`.** Any reachable `update:*`
|
|
68
|
+
must be declared. Precision measured at 5/5 with zero false positives —
|
|
69
|
+
every baselined entry was mounted and made to emit. What makes it work is
|
|
70
|
+
the *reachability* filter (is `onActive` actually destructured? is the
|
|
71
|
+
`useVModel` ref written or bound to a `v-model`?), not relay detection: a
|
|
72
|
+
guard without it would push you to declare emits "just in case", which
|
|
73
|
+
changes `$attrs` behaviour rather than being neutral hygiene.
|
|
74
|
+
|
|
75
|
+
Five real defects are recorded in its baseline and deliberately **not**
|
|
76
|
+
fixed in this release — `OrigamDrawer`, `OrigamColorPickerField`,
|
|
77
|
+
`OrigamDatePickerField`, `OrigamContextualMenu`, `OrigamSelect`. Tracked in
|
|
78
|
+
[#358](https://github.com/Elyseranet/origam/issues/358).
|
|
79
|
+
|
|
16
80
|
## [2.15.0] - 2026-08-14
|
|
17
81
|
|
|
18
82
|
A structural release. Most of it is invisible at runtime — public typing
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
|
-
:is="
|
|
3
|
+
:is="tag"
|
|
4
4
|
:id="id"
|
|
5
5
|
v-contrast
|
|
6
6
|
:class="alertClasses"
|
|
7
|
-
:role="
|
|
8
|
-
:aria-live="
|
|
7
|
+
:role="isUrgentStatus ? 'alert' : 'status'"
|
|
8
|
+
:aria-live="isUrgentStatus ? 'assertive' : 'polite'"
|
|
9
9
|
@mouseenter="handleMouseenter"
|
|
10
10
|
@mouseleave="handleMouseleave"
|
|
11
11
|
>
|
|
@@ -27,14 +27,12 @@
|
|
|
27
27
|
key="prepend-avatar"
|
|
28
28
|
:density="density"
|
|
29
29
|
:image="prependAvatar"
|
|
30
|
-
:size="size"
|
|
31
30
|
/>
|
|
32
31
|
<origam-icon
|
|
33
32
|
v-if="prependIcon"
|
|
34
33
|
key="prepend-icon"
|
|
35
34
|
:density="density"
|
|
36
35
|
:icon="prependIcon"
|
|
37
|
-
:size="size"
|
|
38
36
|
/>
|
|
39
37
|
</slot>
|
|
40
38
|
</div>
|
|
@@ -49,7 +47,6 @@
|
|
|
49
47
|
<origam-icon
|
|
50
48
|
key="content-icon"
|
|
51
49
|
:icon="icon"
|
|
52
|
-
:size="size"
|
|
53
50
|
/>
|
|
54
51
|
</template>
|
|
55
52
|
<template v-if="hasTitle">
|
|
@@ -78,14 +75,12 @@
|
|
|
78
75
|
key="append-avatar"
|
|
79
76
|
:density="density"
|
|
80
77
|
:image="appendAvatar"
|
|
81
|
-
:size="size"
|
|
82
78
|
/>
|
|
83
79
|
<origam-icon
|
|
84
80
|
v-if="appendIcon"
|
|
85
81
|
key="append-icon"
|
|
86
82
|
:density="density"
|
|
87
83
|
:icon="appendIcon"
|
|
88
|
-
:size="size"
|
|
89
84
|
/>
|
|
90
85
|
</slot>
|
|
91
86
|
</div>
|
|
@@ -131,7 +126,7 @@ import {
|
|
|
131
126
|
useStyle,
|
|
132
127
|
useTypography
|
|
133
128
|
} from "../../composables";
|
|
134
|
-
import { DENSITY, MDI_ICONS } from "../../enums";
|
|
129
|
+
import { DENSITY, MDI_ICONS, STATUS } from "../../enums";
|
|
135
130
|
const _props = defineProps({
|
|
136
131
|
closable: { type: Boolean, required: false },
|
|
137
132
|
closeIcon: { type: null, required: false, default: MDI_ICONS.CLOSE },
|
|
@@ -199,19 +194,19 @@ const _props = defineProps({
|
|
|
199
194
|
appendIcon: { type: null, required: false },
|
|
200
195
|
prependAvatar: { type: String, required: false },
|
|
201
196
|
prependIcon: { type: null, required: false },
|
|
202
|
-
fontFamily: { type:
|
|
203
|
-
fontSize: { type:
|
|
204
|
-
fontWeight: { type:
|
|
205
|
-
lineHeight: { type:
|
|
206
|
-
letterSpacing: { type:
|
|
197
|
+
fontFamily: { type: null, required: false },
|
|
198
|
+
fontSize: { type: null, required: false },
|
|
199
|
+
fontWeight: { type: null, required: false },
|
|
200
|
+
lineHeight: { type: null, required: false },
|
|
201
|
+
letterSpacing: { type: null, required: false }
|
|
207
202
|
});
|
|
208
203
|
const props = useDefaults(_props);
|
|
209
204
|
const emits = defineEmits(["update:modelValue", "click:close", "update:hover"]);
|
|
210
205
|
defineSlots();
|
|
206
|
+
const slots = useSlots();
|
|
211
207
|
const { filterProps } = useProps(props);
|
|
212
208
|
const { t } = useLocale();
|
|
213
209
|
const { typographyStyles } = useTypography(props, "alert__title");
|
|
214
|
-
const slots = useSlots();
|
|
215
210
|
const { activeClasses, isActive, activeState, onActive } = useActive(props, "modelValue");
|
|
216
211
|
const { isHover, hoverState, onMouseenter: handleMouseenter, onMouseleave: handleMouseleave, hoverClasses } = useHover(props);
|
|
217
212
|
const { colorClasses, colorStyles, borderClasses, borderStyles, roundedClasses, roundedStyles, elevationClasses, elevationStyles, paddingClasses, paddingStyles, marginClasses, marginStyles } = useStateEffect(props, isHover, isActive, hoverState, activeState);
|
|
@@ -226,7 +221,9 @@ const handleClose = (e) => {
|
|
|
226
221
|
onActive();
|
|
227
222
|
emits("click:close", e);
|
|
228
223
|
};
|
|
229
|
-
const
|
|
224
|
+
const isUrgentStatus = computed(() => {
|
|
225
|
+
return props.status === STATUS.WARNING || props.status === STATUS.ERROR;
|
|
226
|
+
});
|
|
230
227
|
const hasIcon = computed(() => {
|
|
231
228
|
return !!icon.value;
|
|
232
229
|
});
|
|
@@ -118,11 +118,11 @@ const props = defineProps({
|
|
|
118
118
|
active: { type: [Boolean, Object], required: false },
|
|
119
119
|
activeClass: { type: String, required: false },
|
|
120
120
|
hover: { type: [Boolean, Object], required: false },
|
|
121
|
-
fontFamily: { type:
|
|
122
|
-
fontSize: { type:
|
|
123
|
-
fontWeight: { type:
|
|
124
|
-
lineHeight: { type:
|
|
125
|
-
letterSpacing: { type:
|
|
121
|
+
fontFamily: { type: null, required: false },
|
|
122
|
+
fontSize: { type: null, required: false },
|
|
123
|
+
fontWeight: { type: null, required: false },
|
|
124
|
+
lineHeight: { type: null, required: false },
|
|
125
|
+
letterSpacing: { type: null, required: false },
|
|
126
126
|
name: { type: String, required: false },
|
|
127
127
|
order: { type: [String, Number], required: false },
|
|
128
128
|
scrollBehavior: { type: null, required: false },
|
|
@@ -336,11 +336,11 @@ const props = defineProps({
|
|
|
336
336
|
right: { type: [Number, String], required: false, default: void 0 },
|
|
337
337
|
color: { type: [String, Object, Boolean, null], required: false, skipCheck: true, default: void 0 },
|
|
338
338
|
bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true, default: void 0 },
|
|
339
|
-
fontFamily: { type:
|
|
340
|
-
fontSize: { type:
|
|
341
|
-
fontWeight: { type:
|
|
342
|
-
lineHeight: { type:
|
|
343
|
-
letterSpacing: { type:
|
|
339
|
+
fontFamily: { type: null, required: false },
|
|
340
|
+
fontSize: { type: null, required: false },
|
|
341
|
+
fontWeight: { type: null, required: false },
|
|
342
|
+
lineHeight: { type: null, required: false },
|
|
343
|
+
letterSpacing: { type: null, required: false }
|
|
344
344
|
});
|
|
345
345
|
const emit = defineEmits(["play", "pause", "ended", "timeupdate", "volumechange", "loadedmetadata", "error", "update:playbackRate", "download", "waveform", "previous", "next", "update:currentTrackIndex", "update:loopMode", "update:shuffle", "track-change"]);
|
|
346
346
|
defineSlots();
|
|
@@ -108,11 +108,11 @@ const _props = defineProps({
|
|
|
108
108
|
hover: { type: [Boolean, Object], required: false },
|
|
109
109
|
active: { type: [Boolean, Object], required: false },
|
|
110
110
|
activeClass: { type: String, required: false },
|
|
111
|
-
fontFamily: { type:
|
|
112
|
-
fontSize: { type:
|
|
113
|
-
fontWeight: { type:
|
|
114
|
-
lineHeight: { type:
|
|
115
|
-
letterSpacing: { type:
|
|
111
|
+
fontFamily: { type: null, required: false },
|
|
112
|
+
fontSize: { type: null, required: false },
|
|
113
|
+
fontWeight: { type: null, required: false },
|
|
114
|
+
lineHeight: { type: null, required: false },
|
|
115
|
+
letterSpacing: { type: null, required: false }
|
|
116
116
|
});
|
|
117
117
|
const props = useDefaults(_props);
|
|
118
118
|
defineEmits(["update:active", "update:hover"]);
|
|
@@ -143,11 +143,11 @@ const props = defineProps({
|
|
|
143
143
|
icon: { type: null, required: false },
|
|
144
144
|
hover: { type: [Boolean, Object], required: false },
|
|
145
145
|
elevation: { type: [Number, String], required: false },
|
|
146
|
-
fontFamily: { type:
|
|
147
|
-
fontSize: { type:
|
|
148
|
-
fontWeight: { type:
|
|
149
|
-
lineHeight: { type:
|
|
150
|
-
letterSpacing: { type:
|
|
146
|
+
fontFamily: { type: null, required: false },
|
|
147
|
+
fontSize: { type: null, required: false },
|
|
148
|
+
fontWeight: { type: null, required: false },
|
|
149
|
+
lineHeight: { type: null, required: false },
|
|
150
|
+
letterSpacing: { type: null, required: false },
|
|
151
151
|
appendAvatar: { type: String, required: false },
|
|
152
152
|
appendIcon: { type: null, required: false },
|
|
153
153
|
prependAvatar: { type: String, required: false },
|
|
@@ -60,12 +60,12 @@ import {
|
|
|
60
60
|
import { QUOTE_MARKS_BY_LANG } from "../../consts/Blockquote/blockquote.const";
|
|
61
61
|
import { isIntent, warnDeprecatedProp } from "../../utils";
|
|
62
62
|
const props = defineProps({
|
|
63
|
-
variant: { type:
|
|
63
|
+
variant: { type: null, required: false, default: "default" },
|
|
64
64
|
author: { type: String, required: false },
|
|
65
65
|
source: { type: String, required: false },
|
|
66
66
|
cite: { type: String, required: false },
|
|
67
|
-
lang: { type:
|
|
68
|
-
align: { type:
|
|
67
|
+
lang: { type: null, required: false, default: "auto" },
|
|
68
|
+
align: { type: null, required: false },
|
|
69
69
|
id: { type: String, required: false },
|
|
70
70
|
class: { type: [String, Array, Object], required: false },
|
|
71
71
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -106,11 +106,11 @@ const props = defineProps({
|
|
|
106
106
|
marginRight: { type: [Boolean, Number, String], required: false },
|
|
107
107
|
marginBlock: { type: [Boolean, Number, String], required: false },
|
|
108
108
|
marginInline: { type: [Boolean, Number, String], required: false },
|
|
109
|
-
fontFamily: { type:
|
|
110
|
-
fontSize: { type:
|
|
111
|
-
fontWeight: { type:
|
|
112
|
-
lineHeight: { type:
|
|
113
|
-
letterSpacing: { type:
|
|
109
|
+
fontFamily: { type: null, required: false },
|
|
110
|
+
fontSize: { type: null, required: false },
|
|
111
|
+
fontWeight: { type: null, required: false },
|
|
112
|
+
lineHeight: { type: null, required: false },
|
|
113
|
+
letterSpacing: { type: null, required: false }
|
|
114
114
|
});
|
|
115
115
|
defineSlots();
|
|
116
116
|
const slots = useSlots();
|
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
useHover,
|
|
53
53
|
useLayoutItem,
|
|
54
54
|
useLocale,
|
|
55
|
+
usePassedProps,
|
|
55
56
|
useProps,
|
|
56
57
|
useSsrBoot,
|
|
57
58
|
useStateEffect,
|
|
@@ -59,7 +60,7 @@ import {
|
|
|
59
60
|
} from "../../composables";
|
|
60
61
|
import { ORIGAM_BTN_TOGGLE_KEY } from "../../consts";
|
|
61
62
|
import { MODE } from "../../enums";
|
|
62
|
-
import { convertToUnit, int } from "../../utils";
|
|
63
|
+
import { convertToUnit, int, omitUndefined } from "../../utils";
|
|
63
64
|
import { computed, ref, StyleValue, toRef } from "vue";
|
|
64
65
|
const props = defineProps({
|
|
65
66
|
grow: { type: Boolean, required: false },
|
|
@@ -132,18 +133,19 @@ defineSlots();
|
|
|
132
133
|
const { filterProps } = useProps(props);
|
|
133
134
|
const { t } = useLocale();
|
|
134
135
|
const colorLocked = computed(() => props.color ? "true" : void 0);
|
|
136
|
+
const wasPropPassed = usePassedProps(props);
|
|
135
137
|
const slotDefaults = computed(() => ({
|
|
136
|
-
"origam-btn": {
|
|
137
|
-
density: props.density,
|
|
138
|
-
color: props.color,
|
|
139
|
-
bgColor: props.bgColor,
|
|
138
|
+
"origam-btn": omitUndefined({
|
|
139
|
+
density: wasPropPassed("density") ? props.density : void 0,
|
|
140
|
+
color: wasPropPassed("color") ? props.color : void 0,
|
|
141
|
+
bgColor: wasPropPassed("bgColor") ? props.bgColor : void 0,
|
|
140
142
|
// New API: forward `hover` / `active` (boolean | object)
|
|
141
143
|
// to each child OrigamBtn; the legacy split `hoverColor` /
|
|
142
144
|
// `hoverBgColor` / `activeColor` / `activeBgColor` props no
|
|
143
145
|
// longer exist on the parent or the children.
|
|
144
|
-
hover: props.hover,
|
|
145
|
-
active: props.active
|
|
146
|
-
}
|
|
146
|
+
hover: wasPropPassed("hover") ? props.hover : void 0,
|
|
147
|
+
active: wasPropPassed("active") ? props.active : void 0
|
|
148
|
+
})
|
|
147
149
|
}));
|
|
148
150
|
const { isActive, activeClasses } = useActive(props, "modelValue");
|
|
149
151
|
const { hoverClasses, onMouseenter: handleMouseenter, onMouseleave: handleMouseleave } = useHover(props);
|
|
@@ -258,7 +258,7 @@ import {
|
|
|
258
258
|
BRACKET_DEFAULT_MATCH_WIDTH,
|
|
259
259
|
BRACKET_DEFAULT_ROUND_GAP
|
|
260
260
|
} from "../../consts";
|
|
261
|
-
import { BRACKET_VARIANT, DIRECTION } from "../../enums";
|
|
261
|
+
import { BRACKET_ROUND_SIDE, BRACKET_VARIANT, DIRECTION } from "../../enums";
|
|
262
262
|
import {
|
|
263
263
|
bracketDashArray,
|
|
264
264
|
bracketSurfaceVars,
|
|
@@ -322,11 +322,11 @@ const props = defineProps({
|
|
|
322
322
|
paddingRight: { type: [Boolean, Number, String], required: false },
|
|
323
323
|
paddingBlock: { type: [Boolean, Number, String], required: false },
|
|
324
324
|
paddingInline: { type: [Boolean, Number, String], required: false },
|
|
325
|
-
fontFamily: { type:
|
|
326
|
-
fontSize: { type:
|
|
327
|
-
fontWeight: { type:
|
|
328
|
-
lineHeight: { type:
|
|
329
|
-
letterSpacing: { type:
|
|
325
|
+
fontFamily: { type: null, required: false },
|
|
326
|
+
fontSize: { type: null, required: false },
|
|
327
|
+
fontWeight: { type: null, required: false },
|
|
328
|
+
lineHeight: { type: null, required: false },
|
|
329
|
+
letterSpacing: { type: null, required: false }
|
|
330
330
|
});
|
|
331
331
|
const emit = defineEmits(["match-click", "winner-click", "competitor-click"]);
|
|
332
332
|
defineSlots();
|
|
@@ -336,14 +336,14 @@ const ariaLabel = "Tournament bracket";
|
|
|
336
336
|
const roundColor = computed(() => props.color);
|
|
337
337
|
const displayRounds = computed(() => {
|
|
338
338
|
if (props.variant !== BRACKET_VARIANT.DOUBLE_ELIMINATION) return props.rounds;
|
|
339
|
-
const winners = props.rounds.filter((r) => r.side ===
|
|
340
|
-
const losers = props.rounds.filter((r) => r.side ===
|
|
341
|
-
const grandFinals = props.rounds.filter((r) => r.side ===
|
|
339
|
+
const winners = props.rounds.filter((r) => r.side === BRACKET_ROUND_SIDE.WINNER || r.side === void 0);
|
|
340
|
+
const losers = props.rounds.filter((r) => r.side === BRACKET_ROUND_SIDE.LOSER);
|
|
341
|
+
const grandFinals = props.rounds.filter((r) => r.side === BRACKET_ROUND_SIDE.GRAND_FINAL);
|
|
342
342
|
return [...winners, ...losers, ...grandFinals];
|
|
343
343
|
});
|
|
344
|
-
const winnerRounds = computed(() => props.rounds.filter((r) => r.side ===
|
|
345
|
-
const loserRounds = computed(() => props.rounds.filter((r) => r.side ===
|
|
346
|
-
const grandFinalRounds = computed(() => props.rounds.filter((r) => r.side ===
|
|
344
|
+
const winnerRounds = computed(() => props.rounds.filter((r) => r.side === BRACKET_ROUND_SIDE.WINNER || r.side === void 0));
|
|
345
|
+
const loserRounds = computed(() => props.rounds.filter((r) => r.side === BRACKET_ROUND_SIDE.LOSER));
|
|
346
|
+
const grandFinalRounds = computed(() => props.rounds.filter((r) => r.side === BRACKET_ROUND_SIDE.GRAND_FINAL));
|
|
347
347
|
const doubleSections = computed(() => {
|
|
348
348
|
const all = [
|
|
349
349
|
{ key: "winners", label: props.winnersLabel ?? "", rounds: winnerRounds.value },
|
|
@@ -733,10 +733,6 @@ defineExpose({
|
|
|
733
733
|
display: flex;
|
|
734
734
|
position: relative;
|
|
735
735
|
gap: var(--origam-bracket---round-gap, 48px);
|
|
736
|
-
/* Pin to natural size — otherwise a wider parent stretches
|
|
737
|
-
* the tree, the connectors SVG stretches with it (via
|
|
738
|
-
* preserveAspectRatio="none"), but the round columns keep
|
|
739
|
-
* their fixed width → connectors land outside the cards. */
|
|
740
736
|
width: max-content;
|
|
741
737
|
|
|
742
738
|
&--direction-horizontal {
|
|
@@ -129,13 +129,13 @@ const props = defineProps({
|
|
|
129
129
|
marginRight: { type: [Boolean, Number, String], required: false },
|
|
130
130
|
marginBlock: { type: [Boolean, Number, String], required: false },
|
|
131
131
|
marginInline: { type: [Boolean, Number, String], required: false },
|
|
132
|
-
fontFamily: { type:
|
|
133
|
-
fontSize: { type:
|
|
134
|
-
fontWeight: { type:
|
|
135
|
-
lineHeight: { type:
|
|
136
|
-
letterSpacing: { type:
|
|
132
|
+
fontFamily: { type: null, required: false },
|
|
133
|
+
fontSize: { type: null, required: false },
|
|
134
|
+
fontWeight: { type: null, required: false },
|
|
135
|
+
lineHeight: { type: null, required: false },
|
|
136
|
+
letterSpacing: { type: null, required: false }
|
|
137
137
|
});
|
|
138
|
-
const emit = defineEmits(["click"]);
|
|
138
|
+
const emit = defineEmits(["click", "update:active"]);
|
|
139
139
|
const { filterProps } = useProps(props);
|
|
140
140
|
const { typographyStyles: competitorTypographyStyles } = useTypography(props, "bracket-competitor");
|
|
141
141
|
const { typographyStyles: seedTypographyStyles } = useTypography(props, "bracket-seed");
|
|
@@ -153,15 +153,15 @@ const props = defineProps({
|
|
|
153
153
|
marginBlock: { type: [Boolean, Number, String], required: false },
|
|
154
154
|
marginInline: { type: [Boolean, Number, String], required: false }
|
|
155
155
|
});
|
|
156
|
-
const emit = defineEmits(["click", "competitor-click", "winner-click"]);
|
|
156
|
+
const emit = defineEmits(["click", "competitor-click", "winner-click", "update:active"]);
|
|
157
157
|
defineSlots();
|
|
158
158
|
const { filterProps } = useProps(props);
|
|
159
159
|
const resolvedStatus = computed(() => props.status ?? props.match.status);
|
|
160
160
|
const STATUS_LABELS = {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
161
|
+
[BRACKET_MATCH_STATUS.PENDING]: "TBD",
|
|
162
|
+
[BRACKET_MATCH_STATUS.LIVE]: "LIVE",
|
|
163
|
+
[BRACKET_MATCH_STATUS.COMPLETED]: "Completed",
|
|
164
|
+
[BRACKET_MATCH_STATUS.FORFEITED]: "Forfeit"
|
|
165
165
|
};
|
|
166
166
|
const statusLabel = computed(() => {
|
|
167
167
|
if (!resolvedStatus.value) return "";
|
|
@@ -171,7 +171,7 @@ const watchLabel = "Watch live";
|
|
|
171
171
|
const statusClasses = computed(() => {
|
|
172
172
|
return [
|
|
173
173
|
"origam-bracket-match__status",
|
|
174
|
-
`origam-bracket-match__status--${resolvedStatus.value ??
|
|
174
|
+
`origam-bracket-match__status--${resolvedStatus.value ?? BRACKET_MATCH_STATUS.PENDING}`
|
|
175
175
|
];
|
|
176
176
|
});
|
|
177
177
|
const isWinnerA = computed(() => {
|
|
@@ -310,6 +310,24 @@ defineExpose({
|
|
|
310
310
|
border-style: var(--origam-bracket-match---border-style, solid);
|
|
311
311
|
border-color: var(--origam-bracket-match---border-color, var(--origam-color__border---subtle, rgba(0, 0, 0, 0.12)));
|
|
312
312
|
border-radius: var(--origam-bracket-match---border-radius, 6px);
|
|
313
|
+
|
|
314
|
+
border-block-width: var(--origam-bracket-match---border-block-width, var(--origam-bracket-match---border-width, 1px));
|
|
315
|
+
border-inline-width: var(--origam-bracket-match---border-inline-width, var(--origam-bracket-match---border-width, 1px));
|
|
316
|
+
|
|
317
|
+
border-top-width: var(--origam-bracket-match---border-top-width, var(--origam-bracket-match---border-block-width, var(--origam-bracket-match---border-width, 1px)));
|
|
318
|
+
border-right-width: var(--origam-bracket-match---border-right-width, var(--origam-bracket-match---border-inline-width, var(--origam-bracket-match---border-width, 1px)));
|
|
319
|
+
border-bottom-width: var(--origam-bracket-match---border-bottom-width, var(--origam-bracket-match---border-block-width, var(--origam-bracket-match---border-width, 1px)));
|
|
320
|
+
border-left-width: var(--origam-bracket-match---border-left-width, var(--origam-bracket-match---border-inline-width, var(--origam-bracket-match---border-width, 1px)));
|
|
321
|
+
|
|
322
|
+
border-top-color: var(--origam-bracket-match---border-top-color, var(--origam-bracket-match---border-color, var(--origam-color__border---subtle, rgba(0, 0, 0, 0.12))));
|
|
323
|
+
border-right-color: var(--origam-bracket-match---border-right-color, var(--origam-bracket-match---border-color, var(--origam-color__border---subtle, rgba(0, 0, 0, 0.12))));
|
|
324
|
+
border-bottom-color: var(--origam-bracket-match---border-bottom-color, var(--origam-bracket-match---border-color, var(--origam-color__border---subtle, rgba(0, 0, 0, 0.12))));
|
|
325
|
+
border-left-color: var(--origam-bracket-match---border-left-color, var(--origam-bracket-match---border-color, var(--origam-color__border---subtle, rgba(0, 0, 0, 0.12))));
|
|
326
|
+
|
|
327
|
+
border-top-left-radius: var(--origam-bracket-match---border-top-left-radius, var(--origam-bracket-match---border-radius, 6px));
|
|
328
|
+
border-top-right-radius: var(--origam-bracket-match---border-top-right-radius, var(--origam-bracket-match---border-radius, 6px));
|
|
329
|
+
border-bottom-left-radius: var(--origam-bracket-match---border-bottom-left-radius, var(--origam-bracket-match---border-radius, 6px));
|
|
330
|
+
border-bottom-right-radius: var(--origam-bracket-match---border-bottom-right-radius, var(--origam-bracket-match---border-radius, 6px));
|
|
313
331
|
box-shadow: var(--origam-bracket-match---box-shadow, 0 1px 2px rgba(0, 0, 0, 0.06));
|
|
314
332
|
overflow: hidden;
|
|
315
333
|
transition: background-color var(--origam-bracket-match---transition-duration, 120ms) ease,
|
|
@@ -69,11 +69,11 @@ const props = defineProps({
|
|
|
69
69
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
70
70
|
tag: { type: String, required: false, default: "div" },
|
|
71
71
|
direction: { type: null, required: false, default: DIRECTION.HORIZONTAL },
|
|
72
|
-
fontFamily: { type:
|
|
73
|
-
fontSize: { type:
|
|
74
|
-
fontWeight: { type:
|
|
75
|
-
lineHeight: { type:
|
|
76
|
-
letterSpacing: { type:
|
|
72
|
+
fontFamily: { type: null, required: false },
|
|
73
|
+
fontSize: { type: null, required: false },
|
|
74
|
+
fontWeight: { type: null, required: false },
|
|
75
|
+
lineHeight: { type: null, required: false },
|
|
76
|
+
letterSpacing: { type: null, required: false }
|
|
77
77
|
});
|
|
78
78
|
const emit = defineEmits(["match-click", "competitor-click", "winner-click"]);
|
|
79
79
|
defineSlots();
|
|
@@ -56,11 +56,13 @@ import { OrigamBreadcrumbDivider, OrigamBreadcrumbItem, OrigamDefaultsProvider }
|
|
|
56
56
|
import {
|
|
57
57
|
useDensity,
|
|
58
58
|
useLocale,
|
|
59
|
+
usePassedProps,
|
|
59
60
|
useProps,
|
|
60
61
|
useStateEffect,
|
|
61
62
|
useStyle
|
|
62
63
|
} from "../../composables";
|
|
63
64
|
import { vContrast } from "../../directives";
|
|
65
|
+
import { omitUndefined } from "../../utils";
|
|
64
66
|
import { DENSITY } from "../../enums";
|
|
65
67
|
import { computed, StyleValue, useSlots } from "vue";
|
|
66
68
|
const props = defineProps({
|
|
@@ -114,15 +116,16 @@ const props = defineProps({
|
|
|
114
116
|
const { filterProps } = useProps(props);
|
|
115
117
|
defineSlots();
|
|
116
118
|
const { t } = useLocale();
|
|
119
|
+
const wasPropPassed = usePassedProps(props);
|
|
117
120
|
const slotDefaults = computed(() => ({
|
|
118
|
-
"origam-breadcrumb-item": {
|
|
119
|
-
density: props.density,
|
|
120
|
-
color: props.color,
|
|
121
|
-
bgColor: props.bgColor,
|
|
122
|
-
hover: props.hover,
|
|
123
|
-
active: props.active,
|
|
124
|
-
disabled: props.disabled
|
|
125
|
-
}
|
|
121
|
+
"origam-breadcrumb-item": omitUndefined({
|
|
122
|
+
density: wasPropPassed("density") ? props.density : void 0,
|
|
123
|
+
color: wasPropPassed("color") ? props.color : void 0,
|
|
124
|
+
bgColor: wasPropPassed("bgColor") ? props.bgColor : void 0,
|
|
125
|
+
hover: wasPropPassed("hover") ? props.hover : void 0,
|
|
126
|
+
active: wasPropPassed("active") ? props.active : void 0,
|
|
127
|
+
disabled: wasPropPassed("disabled") ? props.disabled : void 0
|
|
128
|
+
})
|
|
126
129
|
}));
|
|
127
130
|
const { colorClasses, colorStyles, borderClasses, borderStyles, roundedClasses, roundedStyles, elevationClasses, elevationStyles, paddingClasses, paddingStyles, marginClasses, marginStyles } = useStateEffect(props, void 0, void 0, void 0, void 0, computed(() => !!props.disabled));
|
|
128
131
|
const normalizedItems = computed(() => {
|
|
@@ -149,7 +149,7 @@ import {
|
|
|
149
149
|
} from "../../composables";
|
|
150
150
|
import { ORIGAM_BTN_TOGGLE_KEY } from "../../consts";
|
|
151
151
|
import { vContrast, vRipple } from "../../directives";
|
|
152
|
-
import { DENSITY, PROGRESS_TYPE, SIZES } from "../../enums";
|
|
152
|
+
import { DENSITY, LOADER_KIND, PROGRESS_TYPE, SIZES } from "../../enums";
|
|
153
153
|
const attrs = useAttrs();
|
|
154
154
|
const _props = defineProps({
|
|
155
155
|
active: { type: [Boolean, Object], required: false, default: void 0 },
|
|
@@ -230,11 +230,11 @@ const _props = defineProps({
|
|
|
230
230
|
prependIcon: { type: null, required: false },
|
|
231
231
|
hover: { type: [Boolean, Object], required: false },
|
|
232
232
|
variant: { type: null, required: false },
|
|
233
|
-
fontFamily: { type:
|
|
234
|
-
fontSize: { type:
|
|
235
|
-
fontWeight: { type:
|
|
236
|
-
lineHeight: { type:
|
|
237
|
-
letterSpacing: { type:
|
|
233
|
+
fontFamily: { type: null, required: false },
|
|
234
|
+
fontSize: { type: null, required: false },
|
|
235
|
+
fontWeight: { type: null, required: false },
|
|
236
|
+
lineHeight: { type: null, required: false },
|
|
237
|
+
letterSpacing: { type: null, required: false }
|
|
238
238
|
});
|
|
239
239
|
const props = useDefaults(_props);
|
|
240
240
|
const colorLocked = computed(() => props.color ? "true" : void 0);
|
|
@@ -276,7 +276,7 @@ const isRipple = computed(() => {
|
|
|
276
276
|
});
|
|
277
277
|
const { densityClasses } = useDensity(props);
|
|
278
278
|
const { dimensionStyles } = useDimension(props);
|
|
279
|
-
const { loaderClasses, loaderConfig } = useLoader(props,
|
|
279
|
+
const { loaderClasses, loaderConfig } = useLoader(props, LOADER_KIND.CIRCULAR);
|
|
280
280
|
const { locationStyles } = useLocation(props);
|
|
281
281
|
const { positionClasses } = usePosition(props);
|
|
282
282
|
const { sizeClasses, sizeStyles } = useSize(props);
|