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
|
@@ -14,12 +14,20 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script lang="ts" setup>
|
|
17
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
useBorder,
|
|
19
|
+
useBothColor,
|
|
20
|
+
useDimension,
|
|
21
|
+
useMargin,
|
|
22
|
+
usePadding,
|
|
23
|
+
useProps,
|
|
24
|
+
useRounded,
|
|
25
|
+
useStyle
|
|
26
|
+
} from "../../composables";
|
|
18
27
|
import { SIZES_ARRAY } from "../../consts";
|
|
19
|
-
import { computed, StyleValue } from "vue";
|
|
28
|
+
import { computed, StyleValue, toRef } from "vue";
|
|
20
29
|
import { convertToUnit } from "../../utils";
|
|
21
30
|
const props = defineProps({
|
|
22
|
-
disabled: { type: Boolean, required: false },
|
|
23
31
|
icon: { type: null, required: false },
|
|
24
32
|
color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
25
33
|
bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -75,6 +83,12 @@ const hasIcon = computed(() => {
|
|
|
75
83
|
const iconComponent = computed(() => {
|
|
76
84
|
return props.icon;
|
|
77
85
|
});
|
|
86
|
+
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
87
|
+
const { borderClasses, borderStyles } = useBorder(props);
|
|
88
|
+
const { paddingClasses, paddingStyles } = usePadding(props);
|
|
89
|
+
const { marginClasses, marginStyles } = useMargin(props);
|
|
90
|
+
const { roundedClasses, roundedStyles } = useRounded(props);
|
|
91
|
+
const { dimensionStyles } = useDimension(props);
|
|
78
92
|
const iconStyles = computed(() => {
|
|
79
93
|
const numericSize = typeof props.size === "number" ? convertToUnit(props.size) : void 0;
|
|
80
94
|
return [
|
|
@@ -83,6 +97,12 @@ const iconStyles = computed(() => {
|
|
|
83
97
|
"width": numericSize,
|
|
84
98
|
"height": numericSize
|
|
85
99
|
},
|
|
100
|
+
colorStyles.value,
|
|
101
|
+
borderStyles.value,
|
|
102
|
+
roundedStyles.value,
|
|
103
|
+
dimensionStyles.value,
|
|
104
|
+
marginStyles.value,
|
|
105
|
+
paddingStyles.value,
|
|
86
106
|
props.style
|
|
87
107
|
];
|
|
88
108
|
});
|
|
@@ -92,6 +112,11 @@ const iconClasses = computed(() => {
|
|
|
92
112
|
"origam-icon",
|
|
93
113
|
"origam-icon--component",
|
|
94
114
|
namedSize,
|
|
115
|
+
colorClasses.value,
|
|
116
|
+
borderClasses.value,
|
|
117
|
+
roundedClasses.value,
|
|
118
|
+
paddingClasses.value,
|
|
119
|
+
marginClasses.value,
|
|
95
120
|
props.class
|
|
96
121
|
];
|
|
97
122
|
});
|
|
@@ -30,7 +30,6 @@ import {
|
|
|
30
30
|
import { flattenFragments } from "../../utils";
|
|
31
31
|
const attrs = useAttrs();
|
|
32
32
|
const props = defineProps({
|
|
33
|
-
disabled: { type: Boolean, required: false },
|
|
34
33
|
icon: { type: null, required: false },
|
|
35
34
|
color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
36
35
|
bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -9,12 +9,20 @@
|
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
11
|
<script lang="ts" setup>
|
|
12
|
-
import { computed, StyleValue } from "vue";
|
|
13
|
-
import {
|
|
12
|
+
import { computed, StyleValue, toRef } from "vue";
|
|
13
|
+
import {
|
|
14
|
+
useBorder,
|
|
15
|
+
useBothColor,
|
|
16
|
+
useDimension,
|
|
17
|
+
useMargin,
|
|
18
|
+
usePadding,
|
|
19
|
+
useProps,
|
|
20
|
+
useRounded,
|
|
21
|
+
useStyle
|
|
22
|
+
} from "../../composables";
|
|
14
23
|
import { SIZES_ARRAY } from "../../consts";
|
|
15
24
|
import { convertToUnit } from "../../utils";
|
|
16
25
|
const props = defineProps({
|
|
17
|
-
disabled: { type: Boolean, required: false },
|
|
18
26
|
icon: { type: null, required: false },
|
|
19
27
|
color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
20
28
|
bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -63,6 +71,12 @@ const props = defineProps({
|
|
|
63
71
|
roundedBottomRight: { type: [Boolean, Number, String], required: false }
|
|
64
72
|
});
|
|
65
73
|
const { filterProps } = useProps(props);
|
|
74
|
+
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
75
|
+
const { borderClasses, borderStyles } = useBorder(props);
|
|
76
|
+
const { paddingClasses, paddingStyles } = usePadding(props);
|
|
77
|
+
const { marginClasses, marginStyles } = useMargin(props);
|
|
78
|
+
const { roundedClasses, roundedStyles } = useRounded(props);
|
|
79
|
+
const { dimensionStyles } = useDimension(props);
|
|
66
80
|
const iconStyles = computed(() => {
|
|
67
81
|
const numericSize = typeof props.size === "number" ? convertToUnit(props.size) : void 0;
|
|
68
82
|
return [
|
|
@@ -70,6 +84,12 @@ const iconStyles = computed(() => {
|
|
|
70
84
|
"font-size": numericSize,
|
|
71
85
|
"line-height": numericSize
|
|
72
86
|
},
|
|
87
|
+
colorStyles.value,
|
|
88
|
+
borderStyles.value,
|
|
89
|
+
roundedStyles.value,
|
|
90
|
+
dimensionStyles.value,
|
|
91
|
+
marginStyles.value,
|
|
92
|
+
paddingStyles.value,
|
|
73
93
|
props.style
|
|
74
94
|
];
|
|
75
95
|
});
|
|
@@ -79,6 +99,11 @@ const iconClasses = computed(() => {
|
|
|
79
99
|
"origam-icon",
|
|
80
100
|
"origam-icon--ligature",
|
|
81
101
|
namedSize,
|
|
102
|
+
colorClasses.value,
|
|
103
|
+
borderClasses.value,
|
|
104
|
+
roundedClasses.value,
|
|
105
|
+
paddingClasses.value,
|
|
106
|
+
marginClasses.value,
|
|
82
107
|
props.class
|
|
83
108
|
];
|
|
84
109
|
});
|
|
@@ -35,12 +35,20 @@
|
|
|
35
35
|
</template>
|
|
36
36
|
|
|
37
37
|
<script lang="ts" setup>
|
|
38
|
-
import { computed, StyleValue } from "vue";
|
|
39
|
-
import {
|
|
38
|
+
import { computed, StyleValue, toRef } from "vue";
|
|
39
|
+
import {
|
|
40
|
+
useBorder,
|
|
41
|
+
useBothColor,
|
|
42
|
+
useDimension,
|
|
43
|
+
useMargin,
|
|
44
|
+
usePadding,
|
|
45
|
+
useProps,
|
|
46
|
+
useRounded,
|
|
47
|
+
useStyle
|
|
48
|
+
} from "../../composables";
|
|
40
49
|
import { SIZES_ARRAY } from "../../consts";
|
|
41
50
|
import { convertToUnit } from "../../utils";
|
|
42
51
|
const props = defineProps({
|
|
43
|
-
disabled: { type: Boolean, required: false },
|
|
44
52
|
icon: { type: null, required: false },
|
|
45
53
|
color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
46
54
|
bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -92,6 +100,12 @@ const { filterProps } = useProps(props);
|
|
|
92
100
|
const isArray = (data) => {
|
|
93
101
|
return Array.isArray(data);
|
|
94
102
|
};
|
|
103
|
+
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
104
|
+
const { borderClasses, borderStyles } = useBorder(props);
|
|
105
|
+
const { paddingClasses, paddingStyles } = usePadding(props);
|
|
106
|
+
const { marginClasses, marginStyles } = useMargin(props);
|
|
107
|
+
const { roundedClasses, roundedStyles } = useRounded(props);
|
|
108
|
+
const { dimensionStyles } = useDimension(props);
|
|
95
109
|
const iconStyles = computed(() => {
|
|
96
110
|
const numericSize = typeof props.size === "number" ? convertToUnit(props.size) : void 0;
|
|
97
111
|
return [
|
|
@@ -100,6 +114,12 @@ const iconStyles = computed(() => {
|
|
|
100
114
|
"width": numericSize,
|
|
101
115
|
"height": numericSize
|
|
102
116
|
},
|
|
117
|
+
colorStyles.value,
|
|
118
|
+
borderStyles.value,
|
|
119
|
+
roundedStyles.value,
|
|
120
|
+
dimensionStyles.value,
|
|
121
|
+
marginStyles.value,
|
|
122
|
+
paddingStyles.value,
|
|
103
123
|
props.style
|
|
104
124
|
];
|
|
105
125
|
});
|
|
@@ -109,6 +129,11 @@ const iconClasses = computed(() => {
|
|
|
109
129
|
"origam-icon",
|
|
110
130
|
"origam-icon--svg",
|
|
111
131
|
namedSize,
|
|
132
|
+
colorClasses.value,
|
|
133
|
+
borderClasses.value,
|
|
134
|
+
roundedClasses.value,
|
|
135
|
+
paddingClasses.value,
|
|
136
|
+
marginClasses.value,
|
|
112
137
|
props.class
|
|
113
138
|
];
|
|
114
139
|
});
|
|
@@ -150,11 +150,11 @@ const props = defineProps({
|
|
|
150
150
|
width: { type: [Number, String], required: false },
|
|
151
151
|
tag: { type: String, required: false, default: "div" },
|
|
152
152
|
direction: { type: null, required: false, default: DIRECTION.VERTICAL },
|
|
153
|
-
fontFamily: { type:
|
|
154
|
-
fontSize: { type:
|
|
155
|
-
fontWeight: { type:
|
|
156
|
-
lineHeight: { type:
|
|
157
|
-
letterSpacing: { type:
|
|
153
|
+
fontFamily: { type: null, required: false },
|
|
154
|
+
fontSize: { type: null, required: false },
|
|
155
|
+
fontWeight: { type: null, required: false },
|
|
156
|
+
lineHeight: { type: null, required: false },
|
|
157
|
+
letterSpacing: { type: null, required: false }
|
|
158
158
|
});
|
|
159
159
|
const emits = defineEmits(["load"]);
|
|
160
160
|
defineSlots();
|
|
@@ -218,11 +218,11 @@ const props = defineProps({
|
|
|
218
218
|
class: { type: [String, Array, Object], required: false },
|
|
219
219
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
220
220
|
tag: { type: String, required: false, default: "span" },
|
|
221
|
-
fontFamily: { type:
|
|
222
|
-
fontSize: { type:
|
|
223
|
-
fontWeight: { type:
|
|
224
|
-
lineHeight: { type:
|
|
225
|
-
letterSpacing: { type:
|
|
221
|
+
fontFamily: { type: null, required: false },
|
|
222
|
+
fontSize: { type: null, required: false },
|
|
223
|
+
fontWeight: { type: null, required: false },
|
|
224
|
+
lineHeight: { type: null, required: false },
|
|
225
|
+
letterSpacing: { type: null, required: false }
|
|
226
226
|
});
|
|
227
227
|
const emit = defineEmits(["update:modelValue", "edit", "cancel", "confirm", "validate-error"]);
|
|
228
228
|
defineSlots();
|
|
@@ -98,11 +98,16 @@ import { OrigamMessages } from "../../components/Messages";
|
|
|
98
98
|
import { vContrast } from "../../directives";
|
|
99
99
|
import {
|
|
100
100
|
useAdjacent,
|
|
101
|
+
useBorder,
|
|
101
102
|
useBothColor,
|
|
102
103
|
useDefaults,
|
|
103
104
|
useDensity,
|
|
104
105
|
useDimension,
|
|
106
|
+
useElevation,
|
|
107
|
+
useMargin,
|
|
108
|
+
usePadding,
|
|
105
109
|
useProps,
|
|
110
|
+
useRounded,
|
|
106
111
|
useRtl,
|
|
107
112
|
useSize,
|
|
108
113
|
useStyle,
|
|
@@ -181,11 +186,11 @@ const _props = defineProps({
|
|
|
181
186
|
prependAvatar: { type: String, required: false },
|
|
182
187
|
prependIcon: { type: null, required: false },
|
|
183
188
|
size: { type: null, required: false },
|
|
184
|
-
fontFamily: { type:
|
|
185
|
-
fontSize: { type:
|
|
186
|
-
fontWeight: { type:
|
|
187
|
-
lineHeight: { type:
|
|
188
|
-
letterSpacing: { type:
|
|
189
|
+
fontFamily: { type: null, required: false },
|
|
190
|
+
fontSize: { type: null, required: false },
|
|
191
|
+
fontWeight: { type: null, required: false },
|
|
192
|
+
lineHeight: { type: null, required: false },
|
|
193
|
+
letterSpacing: { type: null, required: false }
|
|
189
194
|
});
|
|
190
195
|
const props = useDefaults(_props);
|
|
191
196
|
defineEmits(["update:modelValue", "click:append", "click:prepend", "update:focused"]);
|
|
@@ -252,11 +257,21 @@ const { colorClasses, colorStyles } = useBothColor(toRef(props.bgColor), toRef(p
|
|
|
252
257
|
const { rtlClasses } = useRtl();
|
|
253
258
|
const { sizeClasses } = useSize(props, "origam-input");
|
|
254
259
|
const { typographyStyles } = useTypography(props, "input");
|
|
260
|
+
const { paddingClasses, paddingStyles } = usePadding(props);
|
|
261
|
+
const { marginClasses, marginStyles } = useMargin(props);
|
|
262
|
+
const { borderClasses, borderStyles } = useBorder(props);
|
|
263
|
+
const { roundedClasses, roundedStyles } = useRounded(props);
|
|
264
|
+
const { elevationClasses, elevationStyles } = useElevation(props);
|
|
255
265
|
const inputStyles = computed(() => {
|
|
256
266
|
return [
|
|
257
267
|
dimensionStyles.value,
|
|
258
268
|
colorStyles.value,
|
|
259
269
|
typographyStyles.value,
|
|
270
|
+
borderStyles.value,
|
|
271
|
+
roundedStyles.value,
|
|
272
|
+
elevationStyles.value,
|
|
273
|
+
marginStyles.value,
|
|
274
|
+
paddingStyles.value,
|
|
260
275
|
props.style
|
|
261
276
|
];
|
|
262
277
|
});
|
|
@@ -273,6 +288,11 @@ const inputClasses = computed(() => {
|
|
|
273
288
|
sizeClasses.value,
|
|
274
289
|
validationClasses.value,
|
|
275
290
|
rtlClasses.value,
|
|
291
|
+
borderClasses.value,
|
|
292
|
+
roundedClasses.value,
|
|
293
|
+
elevationClasses.value,
|
|
294
|
+
paddingClasses.value,
|
|
295
|
+
marginClasses.value,
|
|
276
296
|
props.class
|
|
277
297
|
];
|
|
278
298
|
});
|
|
@@ -18,10 +18,12 @@ import { computed, StyleValue } from "vue";
|
|
|
18
18
|
import { OrigamDefaultsProvider } from "../../components";
|
|
19
19
|
import {
|
|
20
20
|
useGroup,
|
|
21
|
+
usePassedProps,
|
|
21
22
|
useProps,
|
|
22
23
|
useStyle
|
|
23
24
|
} from "../../composables";
|
|
24
25
|
import { ORIGAM_ITEM_GROUP_KEY } from "../../consts";
|
|
26
|
+
import { omitUndefined } from "../../utils";
|
|
25
27
|
const props = defineProps({
|
|
26
28
|
tag: { type: String, required: false, default: "div" },
|
|
27
29
|
id: { type: String, required: false },
|
|
@@ -38,10 +40,11 @@ defineEmits(["update:modelValue"]);
|
|
|
38
40
|
defineSlots();
|
|
39
41
|
const { filterProps } = useProps(props);
|
|
40
42
|
const { isSelected, select, next, prev, selected } = useGroup(props, ORIGAM_ITEM_GROUP_KEY);
|
|
43
|
+
const wasPropPassed = usePassedProps(props);
|
|
41
44
|
const slotDefaults = computed(() => ({
|
|
42
|
-
"origam-item": {
|
|
43
|
-
selectedClass: props.selectedClass
|
|
44
|
-
}
|
|
45
|
+
"origam-item": omitUndefined({
|
|
46
|
+
selectedClass: wasPropPassed("selectedClass") ? props.selectedClass : void 0
|
|
47
|
+
})
|
|
45
48
|
}));
|
|
46
49
|
const slotProps = computed(() => ({
|
|
47
50
|
isSelected,
|
|
@@ -31,6 +31,7 @@ import { vContrast } from "../../directives";
|
|
|
31
31
|
import {
|
|
32
32
|
useBorder,
|
|
33
33
|
useBothColor,
|
|
34
|
+
useDefaults,
|
|
34
35
|
useProps,
|
|
35
36
|
useRounded,
|
|
36
37
|
useSize,
|
|
@@ -42,7 +43,7 @@ const _props = defineProps({
|
|
|
42
43
|
text: { type: String, required: false },
|
|
43
44
|
combination: { type: Array, required: false },
|
|
44
45
|
separator: { type: String, required: false, default: "+" },
|
|
45
|
-
variant: { type:
|
|
46
|
+
variant: { type: null, required: false, default: "outlined" },
|
|
46
47
|
id: { type: String, required: false },
|
|
47
48
|
class: { type: [String, Array, Object], required: false },
|
|
48
49
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -67,13 +68,13 @@ const _props = defineProps({
|
|
|
67
68
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
68
69
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
69
70
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
70
|
-
fontFamily: { type:
|
|
71
|
-
fontSize: { type:
|
|
72
|
-
fontWeight: { type:
|
|
73
|
-
lineHeight: { type:
|
|
74
|
-
letterSpacing: { type:
|
|
71
|
+
fontFamily: { type: null, required: false },
|
|
72
|
+
fontSize: { type: null, required: false },
|
|
73
|
+
fontWeight: { type: null, required: false },
|
|
74
|
+
lineHeight: { type: null, required: false },
|
|
75
|
+
letterSpacing: { type: null, required: false }
|
|
75
76
|
});
|
|
76
|
-
const props = _props;
|
|
77
|
+
const props = useDefaults(_props);
|
|
77
78
|
const { filterProps } = useProps(props);
|
|
78
79
|
defineSlots();
|
|
79
80
|
const { sizeClasses, sizeStyles } = useSize(props);
|
|
@@ -71,11 +71,11 @@ const _props = defineProps({
|
|
|
71
71
|
color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
72
72
|
bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
73
73
|
tag: { type: String, required: false, default: "label" },
|
|
74
|
-
fontFamily: { type:
|
|
75
|
-
fontSize: { type:
|
|
76
|
-
fontWeight: { type:
|
|
77
|
-
lineHeight: { type:
|
|
78
|
-
letterSpacing: { type:
|
|
74
|
+
fontFamily: { type: null, required: false },
|
|
75
|
+
fontSize: { type: null, required: false },
|
|
76
|
+
fontWeight: { type: null, required: false },
|
|
77
|
+
lineHeight: { type: null, required: false },
|
|
78
|
+
letterSpacing: { type: null, required: false }
|
|
79
79
|
});
|
|
80
80
|
const props = useDefaults(_props);
|
|
81
81
|
const emits = defineEmits(["click"]);
|
|
@@ -99,12 +99,13 @@ import {
|
|
|
99
99
|
useMargin,
|
|
100
100
|
useNested,
|
|
101
101
|
usePadding,
|
|
102
|
+
usePassedProps,
|
|
102
103
|
useProps,
|
|
103
104
|
useRounded,
|
|
104
105
|
useStyle
|
|
105
106
|
} from "../../composables";
|
|
106
107
|
import { DENSITY, KEYBOARD_VALUES, LINES, OPEN_STRATEGY, SELECT_STRATEGY } from "../../enums";
|
|
107
|
-
import { deepEqual, focusChild } from "../../utils";
|
|
108
|
+
import { deepEqual, focusChild, omitUndefined } from "../../utils";
|
|
108
109
|
const props = defineProps({
|
|
109
110
|
activeClass: { type: String, required: false },
|
|
110
111
|
disabled: { type: Boolean, required: false },
|
|
@@ -177,13 +178,14 @@ const props = defineProps({
|
|
|
177
178
|
defineEmits(["update:selected", "update:opened", "click:open", "click:select"]);
|
|
178
179
|
defineSlots();
|
|
179
180
|
const { filterProps } = useProps(props);
|
|
181
|
+
const wasPropPassed = usePassedProps(props);
|
|
180
182
|
const slotDefaults = computed(() => ({
|
|
181
|
-
"origam-list-item": {
|
|
182
|
-
density: props.density,
|
|
183
|
-
size: props.size,
|
|
184
|
-
color: props.color,
|
|
185
|
-
bgColor: props.bgColor
|
|
186
|
-
}
|
|
183
|
+
"origam-list-item": omitUndefined({
|
|
184
|
+
density: wasPropPassed("density") ? props.density : void 0,
|
|
185
|
+
size: wasPropPassed("size") ? props.size : void 0,
|
|
186
|
+
color: wasPropPassed("color") ? props.color : void 0,
|
|
187
|
+
bgColor: wasPropPassed("bgColor") ? props.bgColor : void 0
|
|
188
|
+
})
|
|
187
189
|
}));
|
|
188
190
|
const { items } = useItems(props);
|
|
189
191
|
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
@@ -50,12 +50,14 @@ import {
|
|
|
50
50
|
useHover,
|
|
51
51
|
useList,
|
|
52
52
|
useNestedItem,
|
|
53
|
+
usePassedProps,
|
|
53
54
|
useProps,
|
|
54
55
|
useSsrBoot,
|
|
55
56
|
useStateEffect,
|
|
56
57
|
useStyle
|
|
57
58
|
} from "../../composables";
|
|
58
59
|
import { vContrast } from "../../directives";
|
|
60
|
+
import { omitUndefined } from "../../utils";
|
|
59
61
|
import { MDI_ICONS } from "../../enums";
|
|
60
62
|
const props = defineProps({
|
|
61
63
|
collapseIcon: { type: null, required: false, default: MDI_ICONS.CHEVRON_UP },
|
|
@@ -123,11 +125,12 @@ const {
|
|
|
123
125
|
marginStyles
|
|
124
126
|
} = useStateEffect(props, isHover, void 0, hoverState, void 0);
|
|
125
127
|
const { filterProps } = useProps(props);
|
|
128
|
+
const wasPropPassed = usePassedProps(props);
|
|
126
129
|
const slotDefaults = computed(() => ({
|
|
127
|
-
"origam-list-item": {
|
|
128
|
-
color: props.color,
|
|
129
|
-
bgColor: props.bgColor
|
|
130
|
-
}
|
|
130
|
+
"origam-list-item": omitUndefined({
|
|
131
|
+
color: wasPropPassed("color") ? props.color : void 0,
|
|
132
|
+
bgColor: wasPropPassed("bgColor") ? props.bgColor : void 0
|
|
133
|
+
})
|
|
131
134
|
}));
|
|
132
135
|
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
133
136
|
const { isOpen, open, id: _id } = useNestedItem(toRef(props, "value"), true);
|
|
@@ -200,11 +200,11 @@ const _props = defineProps({
|
|
|
200
200
|
prependAvatar: { type: String, required: false },
|
|
201
201
|
prependIcon: { type: null, required: false },
|
|
202
202
|
hover: { type: [Boolean, Object], required: false },
|
|
203
|
-
fontFamily: { type:
|
|
204
|
-
fontSize: { type:
|
|
205
|
-
fontWeight: { type:
|
|
206
|
-
lineHeight: { type:
|
|
207
|
-
letterSpacing: { type:
|
|
203
|
+
fontFamily: { type: null, required: false },
|
|
204
|
+
fontSize: { type: null, required: false },
|
|
205
|
+
fontWeight: { type: null, required: false },
|
|
206
|
+
lineHeight: { type: null, required: false },
|
|
207
|
+
letterSpacing: { type: null, required: false }
|
|
208
208
|
});
|
|
209
209
|
const props = useDefaults(_props);
|
|
210
210
|
const emits = defineEmits(["click", "click:append", "click:prepend"]);
|
|
@@ -74,11 +74,11 @@ const props = defineProps({
|
|
|
74
74
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
75
75
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
76
76
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
77
|
-
fontFamily: { type:
|
|
78
|
-
fontSize: { type:
|
|
79
|
-
fontWeight: { type:
|
|
80
|
-
lineHeight: { type:
|
|
81
|
-
letterSpacing: { type:
|
|
77
|
+
fontFamily: { type: null, required: false },
|
|
78
|
+
fontSize: { type: null, required: false },
|
|
79
|
+
fontWeight: { type: null, required: false },
|
|
80
|
+
lineHeight: { type: null, required: false },
|
|
81
|
+
letterSpacing: { type: null, required: false }
|
|
82
82
|
});
|
|
83
83
|
defineSlots();
|
|
84
84
|
const { filterProps } = useProps(props);
|
|
@@ -46,15 +46,17 @@ import {
|
|
|
46
46
|
useMasonry,
|
|
47
47
|
usePadding,
|
|
48
48
|
useProps,
|
|
49
|
-
useRounded
|
|
49
|
+
useRounded,
|
|
50
|
+
useTheme
|
|
50
51
|
} from "../../composables";
|
|
51
52
|
import { GRID_GAP_SIZE_VAR } from "../../consts";
|
|
53
|
+
import { MASONRY_ALIGN } from "../../enums";
|
|
52
54
|
const props = defineProps({
|
|
53
55
|
columns: { type: Number, required: false, default: 3 },
|
|
54
56
|
columnBreakpoints: { type: Object, required: false, default: void 0 },
|
|
55
57
|
gap: { type: null, required: false, default: "md" },
|
|
56
58
|
animated: { type: Boolean, required: false, default: true },
|
|
57
|
-
align: { type:
|
|
59
|
+
align: { type: null, required: false, default: "top" },
|
|
58
60
|
id: { type: String, required: false },
|
|
59
61
|
class: { type: [String, Array, Object], required: false },
|
|
60
62
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -107,7 +109,7 @@ const slots = useSlots();
|
|
|
107
109
|
const rootEl = ref(null);
|
|
108
110
|
const { css } = useCssSupport();
|
|
109
111
|
const supportsCssMasonry = computed(
|
|
110
|
-
() => css.value.masonry && props.align ===
|
|
112
|
+
() => css.value.masonry && props.align === MASONRY_ALIGN.TOP
|
|
111
113
|
);
|
|
112
114
|
const serialiseGap = (value) => {
|
|
113
115
|
if (value == null) return GRID_GAP_SIZE_VAR.md;
|
|
@@ -141,7 +143,8 @@ onMounted(() => {
|
|
|
141
143
|
resolveGapPx();
|
|
142
144
|
requestAnimationFrame(() => relayout());
|
|
143
145
|
});
|
|
144
|
-
|
|
146
|
+
const { theme, mode } = useTheme();
|
|
147
|
+
watch([() => props.gap, theme, mode], () => {
|
|
145
148
|
requestAnimationFrame(resolveGapPx);
|
|
146
149
|
});
|
|
147
150
|
const childrenVNodes = computed(() => {
|
|
@@ -137,7 +137,6 @@
|
|
|
137
137
|
:items="configMenuItems"
|
|
138
138
|
:item-children="'children'"
|
|
139
139
|
data-cy="origam-media-controller-config"
|
|
140
|
-
@select="onConfigSelect"
|
|
141
140
|
>
|
|
142
141
|
<template #activator="{ props: activatorProps }">
|
|
143
142
|
<origam-btn
|
|
@@ -377,10 +376,6 @@ function onConfigSelect(item) {
|
|
|
377
376
|
configMenuOpen.value = false;
|
|
378
377
|
return;
|
|
379
378
|
}
|
|
380
|
-
if (item.key === "download") {
|
|
381
|
-
emit("download");
|
|
382
|
-
configMenuOpen.value = false;
|
|
383
|
-
}
|
|
384
379
|
}
|
|
385
380
|
function handleDownloadClick(event) {
|
|
386
381
|
emit("download");
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
+
:id="id"
|
|
3
4
|
ref="rootEl"
|
|
4
5
|
class="origam-media-scrubber"
|
|
5
6
|
:class="rootClasses"
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
:aria-valuetext="ariaValueText || undefined"
|
|
14
15
|
:aria-label="ariaLabel"
|
|
15
16
|
:aria-disabled="disabled || undefined"
|
|
16
|
-
data-cy="
|
|
17
|
+
:data-cy="resolvedDataCy"
|
|
17
18
|
@pointerdown="onPointerDown"
|
|
18
19
|
@pointermove="onPointerMove"
|
|
19
20
|
@pointerleave="onPointerLeave"
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
<div
|
|
23
24
|
class="origam-media-scrubber__track"
|
|
24
25
|
:class="[colorClasses, roundedClasses]"
|
|
25
|
-
:style="colorStyles"
|
|
26
|
+
:style="[colorStyles, roundedStyles]"
|
|
26
27
|
aria-hidden="true"
|
|
27
28
|
>
|
|
28
29
|
<div
|
|
@@ -67,6 +68,8 @@ import {
|
|
|
67
68
|
useBackgroundColor,
|
|
68
69
|
useRounded
|
|
69
70
|
} from "../../composables";
|
|
71
|
+
import { MEDIA_SCRUBBER_MIN_RANGE } from "../../consts";
|
|
72
|
+
import { DIRECTION } from "../../enums";
|
|
70
73
|
const props = defineProps({
|
|
71
74
|
modelValue: { type: Number, required: true },
|
|
72
75
|
min: { type: Number, required: false, default: 0 },
|
|
@@ -94,12 +97,12 @@ const props = defineProps({
|
|
|
94
97
|
const emit = defineEmits(["update:modelValue", "change", "dragstart", "dragend", "hover"]);
|
|
95
98
|
defineSlots();
|
|
96
99
|
const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(toRef(props, "color"));
|
|
97
|
-
const { roundedClasses } = useRounded(
|
|
100
|
+
const { roundedClasses, roundedStyles } = useRounded(props);
|
|
98
101
|
const colorClasses = computed(() => backgroundColorClasses.value);
|
|
99
102
|
const colorStyles = computed(() => backgroundColorStyles.value);
|
|
100
103
|
const resolvedMin = computed(() => props.min);
|
|
101
|
-
const resolvedMax = computed(() => Math.max(props.max, props.min
|
|
102
|
-
const range = computed(() => resolvedMax.value - resolvedMin.value);
|
|
104
|
+
const resolvedMax = computed(() => Math.max(props.max, props.min));
|
|
105
|
+
const range = computed(() => Math.max(resolvedMax.value - resolvedMin.value, MEDIA_SCRUBBER_MIN_RANGE));
|
|
103
106
|
const resolvedValue = computed(() => clamp(props.modelValue, resolvedMin.value, resolvedMax.value));
|
|
104
107
|
const valuePct = computed(() => (resolvedValue.value - resolvedMin.value) / range.value * 100);
|
|
105
108
|
const bufferPct = computed(() => {
|
|
@@ -108,6 +111,7 @@ const bufferPct = computed(() => {
|
|
|
108
111
|
return (clamped - resolvedMin.value) / range.value * 100;
|
|
109
112
|
});
|
|
110
113
|
const hasBuffer = computed(() => typeof props.buffered === "number" && Number.isFinite(props.buffered));
|
|
114
|
+
const resolvedDataCy = computed(() => props.dataCy ?? "origam-media-scrubber");
|
|
111
115
|
const resolvedRole = computed(() => props.disabled ? void 0 : "slider");
|
|
112
116
|
const resolvedTabIndex = computed(() => props.disabled ? -1 : 0);
|
|
113
117
|
const rootEl = ref(null);
|
|
@@ -115,7 +119,7 @@ const isScrubbing = ref(false);
|
|
|
115
119
|
const hoverValue = ref(null);
|
|
116
120
|
const hoverPct = ref(null);
|
|
117
121
|
const showTooltip = computed(
|
|
118
|
-
() => props.showHoverTooltip && props.orientation ===
|
|
122
|
+
() => props.showHoverTooltip && props.orientation === DIRECTION.HORIZONTAL && hoverPct.value !== null && !props.disabled
|
|
119
123
|
);
|
|
120
124
|
const tooltipLabel = computed(() => {
|
|
121
125
|
const fn = props.formatHoverTooltip;
|
|
@@ -126,7 +130,7 @@ function pctFromPointer(event) {
|
|
|
126
130
|
const el = rootEl.value;
|
|
127
131
|
if (!el) return 0;
|
|
128
132
|
const rect = el.getBoundingClientRect();
|
|
129
|
-
if (props.orientation ===
|
|
133
|
+
if (props.orientation === DIRECTION.VERTICAL) {
|
|
130
134
|
const y = clamp(event.clientY, rect.top, rect.bottom);
|
|
131
135
|
return (rect.bottom - y) / Math.max(1, rect.height) * 100;
|
|
132
136
|
}
|
|
@@ -201,7 +205,7 @@ function keyStep() {
|
|
|
201
205
|
}
|
|
202
206
|
function onKeyDown(event) {
|
|
203
207
|
if (props.disabled) return;
|
|
204
|
-
const isVertical = props.orientation ===
|
|
208
|
+
const isVertical = props.orientation === DIRECTION.VERTICAL;
|
|
205
209
|
const step = keyStep();
|
|
206
210
|
let next = null;
|
|
207
211
|
if (event.key === "ArrowRight" && !isVertical) next = resolvedValue.value + step;
|
|
@@ -218,19 +222,19 @@ function onKeyDown(event) {
|
|
|
218
222
|
commit(snapped, true);
|
|
219
223
|
}
|
|
220
224
|
const progressStyles = computed(() => {
|
|
221
|
-
if (props.orientation ===
|
|
225
|
+
if (props.orientation === DIRECTION.VERTICAL) {
|
|
222
226
|
return { height: `${valuePct.value}%` };
|
|
223
227
|
}
|
|
224
228
|
return { width: `${valuePct.value}%` };
|
|
225
229
|
});
|
|
226
230
|
const bufferStyles = computed(() => {
|
|
227
|
-
if (props.orientation ===
|
|
231
|
+
if (props.orientation === DIRECTION.VERTICAL) {
|
|
228
232
|
return { height: `${bufferPct.value}%` };
|
|
229
233
|
}
|
|
230
234
|
return { width: `${bufferPct.value}%` };
|
|
231
235
|
});
|
|
232
236
|
const thumbStyles = computed(() => {
|
|
233
|
-
if (props.orientation ===
|
|
237
|
+
if (props.orientation === DIRECTION.VERTICAL) {
|
|
234
238
|
return { bottom: `${valuePct.value}%` };
|
|
235
239
|
}
|
|
236
240
|
return { left: `${valuePct.value}%` };
|
|
@@ -241,8 +245,8 @@ const tooltipStyles = computed(() => {
|
|
|
241
245
|
});
|
|
242
246
|
const rootClasses = computed(() => [
|
|
243
247
|
{
|
|
244
|
-
"origam-media-scrubber--horizontal": props.orientation ===
|
|
245
|
-
"origam-media-scrubber--vertical": props.orientation ===
|
|
248
|
+
"origam-media-scrubber--horizontal": props.orientation === DIRECTION.HORIZONTAL,
|
|
249
|
+
"origam-media-scrubber--vertical": props.orientation === DIRECTION.VERTICAL,
|
|
246
250
|
"origam-media-scrubber--disabled": props.disabled,
|
|
247
251
|
"origam-media-scrubber--scrubbing": isScrubbing.value,
|
|
248
252
|
"origam-media-scrubber--thumb-on-hover": props.showThumbOnHoverOnly
|