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
|
@@ -524,11 +524,11 @@ const _props = defineProps({
|
|
|
524
524
|
prependAvatar: { type: String, required: false },
|
|
525
525
|
prependIcon: { type: null, required: false },
|
|
526
526
|
size: { type: null, required: false },
|
|
527
|
-
fontFamily: { type:
|
|
528
|
-
fontSize: { type:
|
|
529
|
-
fontWeight: { type:
|
|
530
|
-
lineHeight: { type:
|
|
531
|
-
letterSpacing: { type:
|
|
527
|
+
fontFamily: { type: null, required: false },
|
|
528
|
+
fontSize: { type: null, required: false },
|
|
529
|
+
fontWeight: { type: null, required: false },
|
|
530
|
+
lineHeight: { type: null, required: false },
|
|
531
|
+
letterSpacing: { type: null, required: false },
|
|
532
532
|
ripple: { type: [Boolean, Object], required: false }
|
|
533
533
|
});
|
|
534
534
|
const props = useDefaults(_props);
|
|
@@ -105,14 +105,11 @@ const size = computed(() => {
|
|
|
105
105
|
const showTicks = computed(() => {
|
|
106
106
|
return !!props.showTicks;
|
|
107
107
|
});
|
|
108
|
-
const roundedProps = computed(() => {
|
|
109
|
-
return props.rounded;
|
|
110
|
-
});
|
|
111
108
|
const parsedTicks = computed(() => {
|
|
112
109
|
const ticks = props.ticks ?? [];
|
|
113
110
|
return props.isVertical ? ticks.slice().reverse() : ticks;
|
|
114
111
|
});
|
|
115
|
-
const { roundedClasses, roundedStyles } = useRounded(
|
|
112
|
+
const { roundedClasses, roundedStyles } = useRounded(props);
|
|
116
113
|
const {
|
|
117
114
|
backgroundColorClasses: trackFillColorClasses,
|
|
118
115
|
backgroundColorStyles: trackFillColorStyles
|
|
@@ -203,6 +203,7 @@ const _props = defineProps({
|
|
|
203
203
|
});
|
|
204
204
|
const props = useDefaults(_props);
|
|
205
205
|
defineSlots();
|
|
206
|
+
defineEmits(["update:modelValue"]);
|
|
206
207
|
const { filterProps } = useProps(props);
|
|
207
208
|
const slots = useSlots();
|
|
208
209
|
const isActive = useVModel(props, "modelValue");
|
|
@@ -36,10 +36,11 @@
|
|
|
36
36
|
</template>
|
|
37
37
|
|
|
38
38
|
<script lang="ts" setup>
|
|
39
|
-
import { computed, ref, StyleValue } from "vue";
|
|
39
|
+
import { computed, ref, StyleValue, watch } from "vue";
|
|
40
40
|
import OrigamSnackbarItem from "./OrigamSnackbarItem.vue";
|
|
41
41
|
import { useProps, useStyle } from "../../composables";
|
|
42
42
|
import { useSnackbarGroupInternal } from "../../composables/Snackbar/snackbar-group.composable";
|
|
43
|
+
import { INTENT, SNACKBAR_GROUP_DIRECTION } from "../../enums";
|
|
43
44
|
import {
|
|
44
45
|
SNACKBAR_GROUP_DEFAULT_DURATION,
|
|
45
46
|
SNACKBAR_GROUP_DEFAULT_ID,
|
|
@@ -48,29 +49,32 @@ import {
|
|
|
48
49
|
} from "../../consts";
|
|
49
50
|
const props = defineProps({
|
|
50
51
|
id: { type: String, required: false, default: SNACKBAR_GROUP_DEFAULT_ID },
|
|
51
|
-
location: { type:
|
|
52
|
+
location: { type: null, required: false, default: "bottom-right" },
|
|
52
53
|
max: { type: Number, required: false, default: SNACKBAR_GROUP_DEFAULT_MAX },
|
|
53
54
|
defaultDuration: { type: Number, required: false, default: SNACKBAR_GROUP_DEFAULT_DURATION },
|
|
54
55
|
spacing: { type: [String, Number], required: false, default: SNACKBAR_GROUP_DEFAULT_SPACING },
|
|
55
|
-
direction: { type:
|
|
56
|
+
direction: { type: null, required: false },
|
|
56
57
|
class: { type: [String, Array, Object], required: false },
|
|
57
58
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
58
59
|
tag: { type: String, required: false, default: "div" }
|
|
59
60
|
});
|
|
60
61
|
const { filterProps } = useProps(props);
|
|
61
62
|
const rootRef = ref();
|
|
62
|
-
const { rawItems } = useSnackbarGroupInternal(props.id);
|
|
63
|
+
const { rawItems, registerDefaultDuration } = useSnackbarGroupInternal(props.id);
|
|
64
|
+
watch(() => props.defaultDuration, (duration) => {
|
|
65
|
+
registerDefaultDuration(duration);
|
|
66
|
+
}, { immediate: true });
|
|
63
67
|
const visibleItems = computed(() => {
|
|
64
68
|
const items = rawItems.value;
|
|
65
69
|
const sliced = items.slice(-props.max);
|
|
66
|
-
return effectiveDirection.value ===
|
|
70
|
+
return effectiveDirection.value === SNACKBAR_GROUP_DIRECTION.BOTTOM_UP ? [...sliced].reverse() : sliced;
|
|
67
71
|
});
|
|
68
72
|
const effectiveDirection = computed(() => {
|
|
69
73
|
if (props.direction) return props.direction;
|
|
70
|
-
return props.location.startsWith("top") ?
|
|
74
|
+
return props.location.startsWith("top") ? SNACKBAR_GROUP_DIRECTION.TOP_DOWN : SNACKBAR_GROUP_DIRECTION.BOTTOM_UP;
|
|
71
75
|
});
|
|
72
76
|
const resolveAriaRole = (intent) => {
|
|
73
|
-
return intent ===
|
|
77
|
+
return intent === INTENT.WARNING || intent === INTENT.DANGER ? "alert" : "status";
|
|
74
78
|
};
|
|
75
79
|
const resolveAriaLive = (intent) => {
|
|
76
80
|
return intent === "warning" || intent === "danger" ? "assertive" : "polite";
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
>
|
|
11
11
|
<div class="origam-snackbar-item__content">
|
|
12
12
|
<div
|
|
13
|
-
v-if="
|
|
13
|
+
v-if="hasPrepend"
|
|
14
14
|
class="origam-snackbar-item__prepend"
|
|
15
15
|
>
|
|
16
16
|
<slot name="prepend">
|
|
17
17
|
<origam-icon
|
|
18
|
-
:icon="
|
|
18
|
+
:icon="iconToRender"
|
|
19
19
|
:size="24"
|
|
20
20
|
/>
|
|
21
21
|
</slot>
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
<script lang="ts" setup>
|
|
75
75
|
import { computed, useSlots } from "vue";
|
|
76
76
|
import { OrigamBtn, OrigamIcon } from "../../components";
|
|
77
|
-
import { useLocale, useProps, useTypography } from "../../composables";
|
|
77
|
+
import { useLocale, usePassedProps, useProps, useTypography } from "../../composables";
|
|
78
78
|
import { vContrast } from "../../directives";
|
|
79
79
|
import { MDI_ICONS } from "../../enums";
|
|
80
80
|
const props = defineProps({
|
|
@@ -91,15 +91,16 @@ const props = defineProps({
|
|
|
91
91
|
id: { type: String, required: false },
|
|
92
92
|
class: { type: [String, Array, Object], required: false },
|
|
93
93
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
94
|
-
fontFamily: { type:
|
|
95
|
-
fontSize: { type:
|
|
96
|
-
fontWeight: { type:
|
|
97
|
-
lineHeight: { type:
|
|
98
|
-
letterSpacing: { type:
|
|
94
|
+
fontFamily: { type: null, required: false },
|
|
95
|
+
fontSize: { type: null, required: false },
|
|
96
|
+
fontWeight: { type: null, required: false },
|
|
97
|
+
lineHeight: { type: null, required: false },
|
|
98
|
+
letterSpacing: { type: null, required: false }
|
|
99
99
|
});
|
|
100
100
|
const { t } = useLocale();
|
|
101
101
|
const dismissLabel = computed(() => props.dismissLabel ?? t("origam.snackbar.dismiss", "Dismiss notification"));
|
|
102
102
|
const { filterProps } = useProps(props);
|
|
103
|
+
const wasIconPassed = usePassedProps(props, "OrigamSnackbarItem");
|
|
103
104
|
const { typographyStyles } = useTypography(props, "snackbar-item");
|
|
104
105
|
const slots = useSlots();
|
|
105
106
|
const emit = defineEmits(["dismiss", "action"]);
|
|
@@ -115,10 +116,15 @@ const INTENT_ICONS = {
|
|
|
115
116
|
info: MDI_ICONS.INFORMATION
|
|
116
117
|
};
|
|
117
118
|
const resolvedIcon = computed(() => {
|
|
118
|
-
if (
|
|
119
|
-
if (props.icon) return props.icon;
|
|
119
|
+
if (wasIconPassed("icon")) return props.icon;
|
|
120
120
|
return INTENT_ICONS[props.intent ?? "info"];
|
|
121
121
|
});
|
|
122
|
+
const hasPrepend = computed(() => {
|
|
123
|
+
return resolvedIcon.value !== false || !!slots["prepend"];
|
|
124
|
+
});
|
|
125
|
+
const iconToRender = computed(() => {
|
|
126
|
+
return resolvedIcon.value === false ? void 0 : resolvedIcon.value;
|
|
127
|
+
});
|
|
122
128
|
const resolvedRole = computed(() => {
|
|
123
129
|
if (props.role) return props.role;
|
|
124
130
|
return props.intent === "warning" || props.intent === "danger" ? "alert" : "status";
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
import { computed, provide, ref, StyleValue, useSlots, watch } from "vue";
|
|
35
35
|
import { OrigamStepperItem } from "../../components";
|
|
36
36
|
import { ORIGAM_STEPPER_KEY } from "../../consts";
|
|
37
|
-
import { DENSITY, SIZES } from "../../enums";
|
|
37
|
+
import { DENSITY, DIRECTION, SIZES } from "../../enums";
|
|
38
38
|
import { vContrast } from "../../directives";
|
|
39
39
|
import {
|
|
40
40
|
useDensity,
|
|
@@ -109,7 +109,7 @@ watch(() => props.modelValue, (val) => {
|
|
|
109
109
|
});
|
|
110
110
|
provide(ORIGAM_STEPPER_KEY, {
|
|
111
111
|
modelValue: internalModel,
|
|
112
|
-
orientation: computed(() => props.orientation ??
|
|
112
|
+
orientation: computed(() => props.orientation ?? DIRECTION.HORIZONTAL),
|
|
113
113
|
clickable: computed(() => props.clickable ?? false),
|
|
114
114
|
color: computed(() => props.color)
|
|
115
115
|
});
|
|
@@ -161,7 +161,7 @@ const stepperStyles = computed(() => {
|
|
|
161
161
|
});
|
|
162
162
|
const stepperClasses = computed(() => [
|
|
163
163
|
"origam-stepper",
|
|
164
|
-
`origam-stepper--${props.orientation ??
|
|
164
|
+
`origam-stepper--${props.orientation ?? DIRECTION.HORIZONTAL}`,
|
|
165
165
|
colorClasses.value,
|
|
166
166
|
densityClasses.value,
|
|
167
167
|
sizeClasses.value,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
:is="isClickable ? 'button' : 'div'"
|
|
4
4
|
:class="itemClasses"
|
|
5
5
|
:type="isClickable ? 'button' : undefined"
|
|
6
|
-
:aria-current="resolvedStatus ===
|
|
6
|
+
:aria-current="resolvedStatus === STEPPER_ITEM_STATUS.ACTIVE ? 'step' : undefined"
|
|
7
7
|
:aria-label="stepAriaLabel"
|
|
8
|
-
:disabled="isClickable && resolvedStatus ===
|
|
8
|
+
:disabled="isClickable && resolvedStatus === STEPPER_ITEM_STATUS.ACTIVE ? true : undefined"
|
|
9
9
|
@click="handleClick"
|
|
10
10
|
>
|
|
11
11
|
<span
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
:class="indicatorClasses"
|
|
14
14
|
aria-hidden="true"
|
|
15
15
|
>
|
|
16
|
-
<template v-if="resolvedStatus ===
|
|
16
|
+
<template v-if="resolvedStatus === STEPPER_ITEM_STATUS.DONE">
|
|
17
17
|
<origam-icon :icon="MDI_ICONS.CHECK" />
|
|
18
18
|
</template>
|
|
19
|
-
<template v-else-if="resolvedStatus ===
|
|
19
|
+
<template v-else-if="resolvedStatus === STEPPER_ITEM_STATUS.ERROR">
|
|
20
20
|
<origam-icon :icon="MDI_ICONS.EXCLAMATION" />
|
|
21
21
|
</template>
|
|
22
22
|
<template v-else-if="icon">
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
import { computed, inject } from "vue";
|
|
45
45
|
import { OrigamIcon } from "../../components";
|
|
46
46
|
import { ORIGAM_STEPPER_KEY } from "../../consts";
|
|
47
|
-
import { MDI_ICONS } from "../../enums";
|
|
47
|
+
import { DIRECTION, MDI_ICONS, STEPPER_ITEM_STATUS } from "../../enums";
|
|
48
48
|
import { useLocale, useProps } from "../../composables";
|
|
49
49
|
import { vContrast } from "../../directives";
|
|
50
50
|
const props = defineProps({
|
|
@@ -52,7 +52,7 @@ const props = defineProps({
|
|
|
52
52
|
title: { type: String, required: false },
|
|
53
53
|
subtitle: { type: String, required: false },
|
|
54
54
|
icon: { type: null, required: false },
|
|
55
|
-
status: { type:
|
|
55
|
+
status: { type: null, required: false },
|
|
56
56
|
clickable: { type: Boolean, required: false },
|
|
57
57
|
id: { type: String, required: false },
|
|
58
58
|
class: { type: [String, Array, Object], required: false },
|
|
@@ -74,9 +74,9 @@ const resolvedStatus = computed(() => {
|
|
|
74
74
|
if (props.status !== void 0) return props.status;
|
|
75
75
|
const modelValue = stepper?.modelValue.value ?? 0;
|
|
76
76
|
const idx = props.index ?? 0;
|
|
77
|
-
if (idx < modelValue) return
|
|
78
|
-
if (idx === modelValue) return
|
|
79
|
-
return
|
|
77
|
+
if (idx < modelValue) return STEPPER_ITEM_STATUS.DONE;
|
|
78
|
+
if (idx === modelValue) return STEPPER_ITEM_STATUS.ACTIVE;
|
|
79
|
+
return STEPPER_ITEM_STATUS.PENDING;
|
|
80
80
|
});
|
|
81
81
|
const handleClick = () => {
|
|
82
82
|
if (!isClickable.value) return;
|
|
@@ -85,7 +85,7 @@ const handleClick = () => {
|
|
|
85
85
|
stepper.modelValue.value = props.index ?? 0;
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
|
-
const orientation = computed(() => stepper?.orientation.value ??
|
|
88
|
+
const orientation = computed(() => stepper?.orientation.value ?? DIRECTION.HORIZONTAL);
|
|
89
89
|
const itemClasses = computed(() => [
|
|
90
90
|
"origam-stepper-item",
|
|
91
91
|
`origam-stepper-item--${resolvedStatus.value}`,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
class="origam-switch__skeleton"
|
|
5
5
|
:class="{ 'origam-switch__skeleton--inset': inset }"
|
|
6
6
|
aria-busy="true"
|
|
7
|
-
aria-label="
|
|
7
|
+
:aria-label="loadingLabel"
|
|
8
8
|
role="status"
|
|
9
9
|
data-cy="origam-switch-skeleton"
|
|
10
10
|
>
|
|
@@ -149,13 +149,14 @@ import {
|
|
|
149
149
|
useFocus,
|
|
150
150
|
useHover,
|
|
151
151
|
useLoader,
|
|
152
|
+
useLocale,
|
|
152
153
|
useProps,
|
|
153
154
|
useRounded,
|
|
154
155
|
useStateEffect,
|
|
155
156
|
useStyle,
|
|
156
157
|
useVModel
|
|
157
158
|
} from "../../composables";
|
|
158
|
-
import { DENSITY, PROGRESS_TYPE, SIZES } from "../../enums";
|
|
159
|
+
import { DENSITY, LOADER_KIND, PROGRESS_TYPE, SIZES } from "../../enums";
|
|
159
160
|
import { filterInputAttrs, getUid } from "../../utils";
|
|
160
161
|
const _props = defineProps({
|
|
161
162
|
indeterminate: { type: Boolean, required: false },
|
|
@@ -231,11 +232,11 @@ const _props = defineProps({
|
|
|
231
232
|
prependAvatar: { type: String, required: false },
|
|
232
233
|
prependIcon: { type: null, required: false },
|
|
233
234
|
size: { type: null, required: false },
|
|
234
|
-
fontFamily: { type:
|
|
235
|
-
fontSize: { type:
|
|
236
|
-
fontWeight: { type:
|
|
237
|
-
lineHeight: { type:
|
|
238
|
-
letterSpacing: { type:
|
|
235
|
+
fontFamily: { type: null, required: false },
|
|
236
|
+
fontSize: { type: null, required: false },
|
|
237
|
+
fontWeight: { type: null, required: false },
|
|
238
|
+
lineHeight: { type: null, required: false },
|
|
239
|
+
letterSpacing: { type: null, required: false },
|
|
239
240
|
trueValue: { type: null, required: false },
|
|
240
241
|
falseValue: { type: null, required: false },
|
|
241
242
|
value: { type: null, required: false },
|
|
@@ -269,7 +270,9 @@ const model = useVModel(props, "modelValue");
|
|
|
269
270
|
const { isFocused, onFocus: handleFocus, onBlur: handleBlur } = useFocus(props);
|
|
270
271
|
const attrs = useAttrs();
|
|
271
272
|
const slots = useSlots();
|
|
272
|
-
const { loaderClasses, loaderConfig } = useLoader(props,
|
|
273
|
+
const { loaderClasses, loaderConfig } = useLoader(props, LOADER_KIND.CIRCULAR);
|
|
274
|
+
const { t } = useLocale();
|
|
275
|
+
const loadingLabel = computed(() => t("origam.loading"));
|
|
273
276
|
const uid = getUid();
|
|
274
277
|
const id = computed(() => {
|
|
275
278
|
return props.id || `switch-${uid}`;
|
|
@@ -346,14 +349,6 @@ defineExpose({
|
|
|
346
349
|
</script>
|
|
347
350
|
|
|
348
351
|
<style lang="scss" scoped>
|
|
349
|
-
/*
|
|
350
|
-
* Skeleton placeholder mimicking the switch silhouette — a 52×32
|
|
351
|
-
* rounded track + a 20px circular thumb pinned to the left so the
|
|
352
|
-
* shape is unmistakably a switch (vs the previous plain rectangle
|
|
353
|
-
* which looked like a generic loading bar). Both halves share the
|
|
354
|
-
* `--origam-switch__skeleton-bg` pulse animation inherited from
|
|
355
|
-
* the broader skeleton token so the rhythm matches OrigamSkeleton.
|
|
356
|
-
*/
|
|
357
352
|
@keyframes origam-switch-skeleton-pulse {
|
|
358
353
|
0%, 100% {
|
|
359
354
|
opacity: 1;
|
|
@@ -395,7 +390,6 @@ defineExpose({
|
|
|
395
390
|
|
|
396
391
|
&--inset {
|
|
397
392
|
.origam-switch__skeleton-thumb {
|
|
398
|
-
/* inset switches use a 24px thumb that overflows the track */
|
|
399
393
|
width: 24px;
|
|
400
394
|
height: 24px;
|
|
401
395
|
left: 4px;
|
|
@@ -410,29 +404,10 @@ defineExpose({
|
|
|
410
404
|
padding-inline-start: 10px;
|
|
411
405
|
}
|
|
412
406
|
|
|
413
|
-
/*
|
|
414
|
-
* Line loader — thin linear progress positioned ON the track,
|
|
415
|
-
* spanning the full switch footprint (46×14 standard or 52×32
|
|
416
|
-
* inset). Sits BEHIND the thumb so the thumb stays visually
|
|
417
|
-
* dominant and the consumer still sees the on/off position
|
|
418
|
-
* while the background indicates async work in flight.
|
|
419
|
-
*
|
|
420
|
-
* `OrigamProgressLinear` ships an inline `height: thickness`
|
|
421
|
-
* (4 px default) that wins over standard CSS — we force it
|
|
422
|
-
* to 100 % via `:deep()` so the bar fills the track height
|
|
423
|
-
* regardless of the standard / inset variant.
|
|
424
|
-
*/
|
|
425
407
|
&__progress--linear {
|
|
426
408
|
position: absolute !important;
|
|
427
409
|
inset: 0 !important;
|
|
428
410
|
width: 100% !important;
|
|
429
|
-
/*
|
|
430
|
-
* `OrigamProgressLinear` inlines `height: 4px` on its root via
|
|
431
|
-
* `:style="{ height: thickness }"`, which beats any non-important
|
|
432
|
-
* scoped rule. `!important` here is the only way to expand the
|
|
433
|
-
* loader to the full track height without subclassing the
|
|
434
|
-
* progress component.
|
|
435
|
-
*/
|
|
436
411
|
height: 100% !important;
|
|
437
412
|
line-height: 1 !important;
|
|
438
413
|
border-radius: inherit;
|
|
@@ -467,24 +442,6 @@ defineExpose({
|
|
|
467
442
|
.origam-selection-control {
|
|
468
443
|
min-height: calc(var(--origam-switch__selection-control---min-height, 56px) + var(--origam-input---density, 0px));
|
|
469
444
|
|
|
470
|
-
/*
|
|
471
|
-
* The base SelectionControl wrapper reserves a fixed
|
|
472
|
-
* `calc(40px + 1.5 * density)` box sized for a checkbox/radio
|
|
473
|
-
* input glyph. Switch instead renders a variable-width track
|
|
474
|
-
* (36–52px depending on `--origam-switch__track---width` /
|
|
475
|
-
* the `inset` variant, plus its own horizontal padding) as
|
|
476
|
-
* the wrapper's only in-flow child — `__input` is forced
|
|
477
|
-
* `position: absolute` below so it no longer participates in
|
|
478
|
-
* the flex layout. That fixed formula was never track-aware:
|
|
479
|
-
* under `density="compact"` (-8px) the wrapper shrinks to
|
|
480
|
-
* 28px while the standard track needs ~46px, so the track
|
|
481
|
-
* visually overflows into the neighbouring label ("Flat"
|
|
482
|
-
* rendering as "lat"). Let the wrapper size to its actual
|
|
483
|
-
* content (`max-content`) instead, keeping the original
|
|
484
|
-
* density formula only as a floor via `min-width`/`min-height`
|
|
485
|
-
* so the checkbox-sized footprint is preserved whenever the
|
|
486
|
-
* track is smaller than it (never smaller than before).
|
|
487
|
-
*/
|
|
488
445
|
:deep(.origam-selection-control__wrapper) {
|
|
489
446
|
width: max-content;
|
|
490
447
|
height: max-content;
|
|
@@ -61,11 +61,11 @@ const props = defineProps({
|
|
|
61
61
|
minHeight: { type: [Number, String], required: false },
|
|
62
62
|
minWidth: { type: [Number, String], required: false },
|
|
63
63
|
width: { type: [Number, String], required: false },
|
|
64
|
-
fontFamily: { type:
|
|
65
|
-
fontSize: { type:
|
|
66
|
-
fontWeight: { type:
|
|
67
|
-
lineHeight: { type:
|
|
68
|
-
letterSpacing: { type:
|
|
64
|
+
fontFamily: { type: null, required: false },
|
|
65
|
+
fontSize: { type: null, required: false },
|
|
66
|
+
fontWeight: { type: null, required: false },
|
|
67
|
+
lineHeight: { type: null, required: false },
|
|
68
|
+
letterSpacing: { type: null, required: false }
|
|
69
69
|
});
|
|
70
70
|
const { filterProps } = useProps(props);
|
|
71
71
|
defineSlots();
|
|
@@ -92,11 +92,11 @@ const _props = defineProps({
|
|
|
92
92
|
width: { type: [Number, String], required: false },
|
|
93
93
|
density: { type: null, required: false, default: DENSITY.DEFAULT },
|
|
94
94
|
tag: { type: String, required: false, default: "div" },
|
|
95
|
-
fontFamily: { type:
|
|
96
|
-
fontSize: { type:
|
|
97
|
-
fontWeight: { type:
|
|
98
|
-
lineHeight: { type:
|
|
99
|
-
letterSpacing: { type:
|
|
95
|
+
fontFamily: { type: null, required: false },
|
|
96
|
+
fontSize: { type: null, required: false },
|
|
97
|
+
fontWeight: { type: null, required: false },
|
|
98
|
+
lineHeight: { type: null, required: false },
|
|
99
|
+
letterSpacing: { type: null, required: false }
|
|
100
100
|
});
|
|
101
101
|
const props = useDefaults(_props);
|
|
102
102
|
defineSlots();
|
|
@@ -89,11 +89,11 @@ const _props = defineProps({
|
|
|
89
89
|
value: { type: null, required: false, default: void 0 },
|
|
90
90
|
disabled: { type: Boolean, required: false },
|
|
91
91
|
selectedClass: { type: String, required: false },
|
|
92
|
-
fontFamily: { type:
|
|
93
|
-
fontSize: { type:
|
|
94
|
-
fontWeight: { type:
|
|
95
|
-
lineHeight: { type:
|
|
96
|
-
letterSpacing: { type:
|
|
92
|
+
fontFamily: { type: null, required: false },
|
|
93
|
+
fontSize: { type: null, required: false },
|
|
94
|
+
fontWeight: { type: null, required: false },
|
|
95
|
+
lineHeight: { type: null, required: false },
|
|
96
|
+
letterSpacing: { type: null, required: false },
|
|
97
97
|
appendAvatar: { type: String, required: false },
|
|
98
98
|
appendIcon: { type: null, required: false },
|
|
99
99
|
prependAvatar: { type: String, required: false },
|
|
@@ -21,10 +21,12 @@ import { computed, provide, ref, shallowRef, StyleValue, watch } from "vue";
|
|
|
21
21
|
import { OrigamDefaultsProvider } from "../../components";
|
|
22
22
|
import {
|
|
23
23
|
useGroup,
|
|
24
|
+
usePassedProps,
|
|
24
25
|
useProps,
|
|
25
26
|
useStyle
|
|
26
27
|
} from "../../composables";
|
|
27
28
|
import { ORIGAM_TAB_PANELS_KEY, ORIGAM_TAB_PANELS_CTX_KEY } from "../../consts";
|
|
29
|
+
import { omitUndefined } from "../../utils";
|
|
28
30
|
import { vTouch } from "../../directives";
|
|
29
31
|
import { DIRECTION } from "../../enums";
|
|
30
32
|
const props = defineProps({
|
|
@@ -78,10 +80,11 @@ const slotProps = computed(() => ({
|
|
|
78
80
|
selected,
|
|
79
81
|
items: items.value
|
|
80
82
|
}));
|
|
83
|
+
const wasPropPassed = usePassedProps(props);
|
|
81
84
|
const slotDefaults = computed(() => ({
|
|
82
|
-
"origam-tab-panel": {
|
|
83
|
-
transition: props.transition
|
|
84
|
-
}
|
|
85
|
+
"origam-tab-panel": omitUndefined({
|
|
86
|
+
transition: wasPropPassed("transition") ? props.transition : void 0
|
|
87
|
+
})
|
|
85
88
|
}));
|
|
86
89
|
const panelsStyles = computed(() => {
|
|
87
90
|
return [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
|
-
:is="
|
|
3
|
+
:is="tag"
|
|
4
4
|
:id="id"
|
|
5
5
|
ref="rootRef"
|
|
6
6
|
role="tablist"
|
|
@@ -25,11 +25,13 @@ import {
|
|
|
25
25
|
useDefaults,
|
|
26
26
|
useDensity,
|
|
27
27
|
useGroup,
|
|
28
|
+
usePassedProps,
|
|
28
29
|
useProps,
|
|
29
30
|
useRounded,
|
|
30
31
|
useStyle
|
|
31
32
|
} from "../../composables";
|
|
32
33
|
import { ORIGAM_TABS_KEY } from "../../consts";
|
|
34
|
+
import { omitUndefined } from "../../utils";
|
|
33
35
|
import { DENSITY, DIRECTION, TAB_VARIANT } from "../../enums";
|
|
34
36
|
const _props = defineProps({
|
|
35
37
|
tag: { type: String, required: false, default: "div" },
|
|
@@ -69,13 +71,14 @@ const slotProps = computed(() => ({
|
|
|
69
71
|
selected,
|
|
70
72
|
items: items.value
|
|
71
73
|
}));
|
|
74
|
+
const wasPropPassed = usePassedProps(props);
|
|
72
75
|
const slotDefaults = computed(() => ({
|
|
73
|
-
"origam-tab": {
|
|
74
|
-
density: props.density,
|
|
75
|
-
color: props.color,
|
|
76
|
+
"origam-tab": omitUndefined({
|
|
76
77
|
variant: props.variant,
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
density: wasPropPassed("density") ? props.density : void 0,
|
|
79
|
+
color: wasPropPassed("color") ? props.color : void 0,
|
|
80
|
+
fixed: wasPropPassed("fixed") ? props.fixed : void 0
|
|
81
|
+
})
|
|
79
82
|
}));
|
|
80
83
|
const ariaOrientation = computed(() => props.direction === DIRECTION.VERTICAL ? "vertical" : "horizontal");
|
|
81
84
|
const focusTab = (id2) => {
|
|
@@ -279,11 +279,11 @@ const _props = defineProps({
|
|
|
279
279
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
280
280
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
281
281
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
282
|
-
fontFamily: { type:
|
|
283
|
-
fontSize: { type:
|
|
284
|
-
fontWeight: { type:
|
|
285
|
-
lineHeight: { type:
|
|
286
|
-
letterSpacing: { type:
|
|
282
|
+
fontFamily: { type: null, required: false },
|
|
283
|
+
fontSize: { type: null, required: false },
|
|
284
|
+
fontWeight: { type: null, required: false },
|
|
285
|
+
lineHeight: { type: null, required: false },
|
|
286
|
+
letterSpacing: { type: null, required: false },
|
|
287
287
|
active: { type: [Boolean, Object], required: false },
|
|
288
288
|
activeClass: { type: String, required: false },
|
|
289
289
|
variant: { type: null, required: false },
|
|
@@ -22,17 +22,17 @@ const props = defineProps({
|
|
|
22
22
|
background: { type: [String, Object], required: true },
|
|
23
23
|
animated: { type: Boolean, required: false, default: false },
|
|
24
24
|
animationDuration: { type: String, required: false, default: "3s" },
|
|
25
|
-
animationType: { type:
|
|
26
|
-
align: { type:
|
|
25
|
+
animationType: { type: null, required: false, default: "pan" },
|
|
26
|
+
align: { type: null, required: false, default: "left" },
|
|
27
27
|
id: { type: String, required: false },
|
|
28
28
|
class: { type: [String, Array, Object], required: false },
|
|
29
29
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
30
30
|
tag: { type: String, required: false, default: "span" },
|
|
31
|
-
fontFamily: { type:
|
|
32
|
-
fontSize: { type:
|
|
33
|
-
fontWeight: { type:
|
|
34
|
-
lineHeight: { type:
|
|
35
|
-
letterSpacing: { type:
|
|
31
|
+
fontFamily: { type: null, required: false },
|
|
32
|
+
fontSize: { type: null, required: false },
|
|
33
|
+
fontWeight: { type: null, required: false },
|
|
34
|
+
lineHeight: { type: null, required: false },
|
|
35
|
+
letterSpacing: { type: null, required: false }
|
|
36
36
|
});
|
|
37
37
|
defineSlots();
|
|
38
38
|
const slots = useSlots();
|
|
@@ -275,6 +275,7 @@ import {
|
|
|
275
275
|
useProps,
|
|
276
276
|
useStyle,
|
|
277
277
|
useTextareaRich,
|
|
278
|
+
useTheme,
|
|
278
279
|
useTypography,
|
|
279
280
|
useVModel
|
|
280
281
|
} from "../../composables";
|
|
@@ -371,11 +372,11 @@ const _props = defineProps({
|
|
|
371
372
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
372
373
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
373
374
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
374
|
-
fontFamily: { type:
|
|
375
|
-
fontSize: { type:
|
|
376
|
-
fontWeight: { type:
|
|
377
|
-
lineHeight: { type:
|
|
378
|
-
letterSpacing: { type:
|
|
375
|
+
fontFamily: { type: null, required: false },
|
|
376
|
+
fontSize: { type: null, required: false },
|
|
377
|
+
fontWeight: { type: null, required: false },
|
|
378
|
+
lineHeight: { type: null, required: false },
|
|
379
|
+
letterSpacing: { type: null, required: false },
|
|
379
380
|
active: { type: [Boolean, Object], required: false },
|
|
380
381
|
activeClass: { type: String, required: false },
|
|
381
382
|
variant: { type: null, required: false },
|
|
@@ -585,7 +586,8 @@ const calculateInputHeight = () => {
|
|
|
585
586
|
emits("update:height", controlHeight.value);
|
|
586
587
|
});
|
|
587
588
|
};
|
|
588
|
-
|
|
589
|
+
const { theme: activeTheme, mode: activeMode } = useTheme();
|
|
590
|
+
watch([model, () => props.maxRows, () => props.density, () => props.rows, activeTheme, activeMode], () => {
|
|
589
591
|
calculateInputHeight();
|
|
590
592
|
}, { immediate: true });
|
|
591
593
|
watch(minHeight, () => {
|
|
@@ -15,8 +15,8 @@ import { provideDefaults } from "../../composables";
|
|
|
15
15
|
import { ORIGAM_DEFAULTS_KEY, ORIGAM_THEME_DEFAULTS_KEY } from "../../consts";
|
|
16
16
|
defineOptions({ inheritAttrs: false });
|
|
17
17
|
const props = defineProps({
|
|
18
|
-
theme: { type:
|
|
19
|
-
mode: { type:
|
|
18
|
+
theme: { type: null, required: false, default: "auto" },
|
|
19
|
+
mode: { type: null, required: false, default: "auto" },
|
|
20
20
|
tag: { type: String, required: false, default: "div" }
|
|
21
21
|
});
|
|
22
22
|
defineSlots();
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:aria-label="ariaLabel"
|
|
8
8
|
>
|
|
9
9
|
<div
|
|
10
|
-
v-if="
|
|
10
|
+
v-if="isHorizontal"
|
|
11
11
|
class="origam-timeline__track-wrapper"
|
|
12
12
|
>
|
|
13
13
|
<slot name="default">
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
:intent="entry.intent"
|
|
22
22
|
:is-last="index === (items?.length ?? 0) - 1"
|
|
23
23
|
:truncate-line="truncateLine ?? false"
|
|
24
|
-
:side="side ??
|
|
24
|
+
:side="side ?? TIMELINE_SIDE.START"
|
|
25
25
|
:orientation="orientation"
|
|
26
26
|
:index="index"
|
|
27
27
|
:data-cy="`timeline-item-${index}`"
|
|
@@ -59,10 +59,11 @@ import {
|
|
|
59
59
|
useStyle
|
|
60
60
|
} from "../../composables";
|
|
61
61
|
import { TIMELINE_CONTEXT_KEY } from "../../consts";
|
|
62
|
+
import { DIRECTION, TIMELINE_SIDE } from "../../enums";
|
|
62
63
|
const props = defineProps({
|
|
63
64
|
items: { type: Array, required: false },
|
|
64
65
|
orientation: { type: null, required: false, default: "vertical" },
|
|
65
|
-
side: { type:
|
|
66
|
+
side: { type: null, required: false, default: "start" },
|
|
66
67
|
truncateLine: { type: Boolean, required: false, default: false },
|
|
67
68
|
ariaLabel: { type: String, required: false },
|
|
68
69
|
id: { type: String, required: false },
|
|
@@ -75,12 +76,13 @@ const props = defineProps({
|
|
|
75
76
|
});
|
|
76
77
|
const { filterProps } = useProps(props);
|
|
77
78
|
defineSlots();
|
|
78
|
-
const orientation = computed(() => props.orientation ??
|
|
79
|
+
const orientation = computed(() => props.orientation ?? DIRECTION.VERTICAL);
|
|
80
|
+
const isHorizontal = computed(() => orientation.value === DIRECTION.HORIZONTAL);
|
|
79
81
|
const { densityClasses } = useDensity(props);
|
|
80
82
|
const { sizeClasses } = useSize(props);
|
|
81
83
|
provide(TIMELINE_CONTEXT_KEY, {
|
|
82
84
|
get side() {
|
|
83
|
-
return props.side ??
|
|
85
|
+
return props.side ?? TIMELINE_SIDE.START;
|
|
84
86
|
},
|
|
85
87
|
get truncateLine() {
|
|
86
88
|
return props.truncateLine ?? false;
|