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
|
@@ -47,20 +47,22 @@
|
|
|
47
47
|
<origam-list-item
|
|
48
48
|
v-if="!hasChilds(item)"
|
|
49
49
|
class="origam-menu__item"
|
|
50
|
-
v-bind="item"
|
|
50
|
+
v-bind="menuItemProps(item)"
|
|
51
|
+
@click="handleSelect(item)"
|
|
51
52
|
/>
|
|
52
53
|
<origam-menu
|
|
53
54
|
v-else
|
|
55
|
+
v-bind="{...menuItemProps(item), ...overlayProps}"
|
|
56
|
+
:items="childItems(item)"
|
|
54
57
|
:offset="[8,8]"
|
|
55
58
|
:open-on-context-menu="false"
|
|
56
59
|
open-on-click
|
|
57
|
-
v-bind="{...item, ...overlayProps}"
|
|
58
60
|
>
|
|
59
61
|
<template #activator="{props}">
|
|
60
62
|
<origam-list-item
|
|
61
63
|
:append-icon="MDI_ICONS.CHEVRON_RIGHT"
|
|
62
64
|
class="origam-menu__item"
|
|
63
|
-
v-bind="{...props, ...item}"
|
|
65
|
+
v-bind="{...props, ...menuItemProps(item)}"
|
|
64
66
|
/>
|
|
65
67
|
</template>
|
|
66
68
|
</origam-menu>
|
|
@@ -94,7 +96,7 @@ import {
|
|
|
94
96
|
} from "../../composables";
|
|
95
97
|
import { ORIGAM_MENU_KEY } from "../../consts";
|
|
96
98
|
import { INLINE, KEYBOARD_VALUES, LOCATION_STRATEGIES, MDI_ICONS, SCROLL_STRATEGIES } from "../../enums";
|
|
97
|
-
import { focusableChildren, focusChild, forwardRefs, getNextElement, getUid } from "../../utils";
|
|
99
|
+
import { focusableChildren, focusChild, forwardRefs, getNextElement, getPropertyFromItem, getUid, omit } from "../../utils";
|
|
98
100
|
const _props = defineProps({
|
|
99
101
|
id: { type: String, required: false },
|
|
100
102
|
absolute: { type: Boolean, required: false },
|
|
@@ -173,7 +175,7 @@ const _props = defineProps({
|
|
|
173
175
|
items: { type: Array, required: false },
|
|
174
176
|
itemTitle: { type: null, required: false },
|
|
175
177
|
itemValue: { type: null, required: false },
|
|
176
|
-
itemChildren: { type: null, required: false },
|
|
178
|
+
itemChildren: { type: null, required: false, default: "children" },
|
|
177
179
|
itemProps: { type: null, required: false },
|
|
178
180
|
returnObject: { type: Boolean, required: false },
|
|
179
181
|
valueComparator: { type: null, required: false },
|
|
@@ -208,14 +210,14 @@ const _props = defineProps({
|
|
|
208
210
|
prependAvatar: { type: String, required: false },
|
|
209
211
|
prependIcon: { type: null, required: false },
|
|
210
212
|
hover: { type: [Boolean, Object], required: false },
|
|
211
|
-
fontFamily: { type:
|
|
212
|
-
fontSize: { type:
|
|
213
|
-
fontWeight: { type:
|
|
214
|
-
lineHeight: { type:
|
|
215
|
-
letterSpacing: { type:
|
|
213
|
+
fontFamily: { type: null, required: false },
|
|
214
|
+
fontSize: { type: null, required: false },
|
|
215
|
+
fontWeight: { type: null, required: false },
|
|
216
|
+
lineHeight: { type: null, required: false },
|
|
217
|
+
letterSpacing: { type: null, required: false }
|
|
216
218
|
});
|
|
217
219
|
const props = useDefaults(_props);
|
|
218
|
-
defineEmits(["contextmenu", "update:modelValue"]);
|
|
220
|
+
const emit = defineEmits(["contextmenu", "select", "update:modelValue"]);
|
|
219
221
|
defineSlots();
|
|
220
222
|
const { filterProps } = useProps(props);
|
|
221
223
|
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
@@ -278,6 +280,10 @@ watch(isActive, (val) => {
|
|
|
278
280
|
const handleClickOutside = () => {
|
|
279
281
|
parent?.closeParents();
|
|
280
282
|
};
|
|
283
|
+
const handleSelect = (item) => {
|
|
284
|
+
if (props.disabled) return;
|
|
285
|
+
emit("select", item);
|
|
286
|
+
};
|
|
281
287
|
const handleKeydown = (e) => {
|
|
282
288
|
if (props.disabled) return;
|
|
283
289
|
if (e.key === KEYBOARD_VALUES.TAB) {
|
|
@@ -321,8 +327,15 @@ const activatorProps = computed(() => {
|
|
|
321
327
|
const overlayProps = computed(() => {
|
|
322
328
|
return origamOverlayRef.value?.filterProps(props, ["activatorProps", "id", "class", "style", "role", "modelValue", "absolute", "activator", "target", "openOnClick", "openOnContextMenu"]);
|
|
323
329
|
});
|
|
330
|
+
const childItems = (item) => {
|
|
331
|
+
const children = getPropertyFromItem(item, props.itemChildren);
|
|
332
|
+
return Array.isArray(children) ? children : [];
|
|
333
|
+
};
|
|
324
334
|
const hasChilds = (item) => {
|
|
325
|
-
return item
|
|
335
|
+
return childItems(item).length > 0;
|
|
336
|
+
};
|
|
337
|
+
const menuItemProps = (item) => {
|
|
338
|
+
return typeof props.itemChildren === "string" ? omit(item, [props.itemChildren]) : item;
|
|
326
339
|
};
|
|
327
340
|
const menuStyles = computed(() => {
|
|
328
341
|
return [
|
|
@@ -94,11 +94,11 @@ const _props = defineProps({
|
|
|
94
94
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
95
95
|
density: { type: null, required: false, default: DENSITY.DEFAULT },
|
|
96
96
|
elevation: { type: [Number, String], required: false },
|
|
97
|
-
fontFamily: { type:
|
|
98
|
-
fontSize: { type:
|
|
99
|
-
fontWeight: { type:
|
|
100
|
-
lineHeight: { type:
|
|
101
|
-
letterSpacing: { type:
|
|
97
|
+
fontFamily: { type: null, required: false },
|
|
98
|
+
fontSize: { type: null, required: false },
|
|
99
|
+
fontWeight: { type: null, required: false },
|
|
100
|
+
lineHeight: { type: null, required: false },
|
|
101
|
+
letterSpacing: { type: null, required: false }
|
|
102
102
|
});
|
|
103
103
|
const props = useDefaults(_props);
|
|
104
104
|
defineSlots();
|
|
@@ -358,11 +358,11 @@ const _props = defineProps({
|
|
|
358
358
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
359
359
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
360
360
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
361
|
-
fontFamily: { type:
|
|
362
|
-
fontSize: { type:
|
|
363
|
-
fontWeight: { type:
|
|
364
|
-
lineHeight: { type:
|
|
365
|
-
letterSpacing: { type:
|
|
361
|
+
fontFamily: { type: null, required: false },
|
|
362
|
+
fontSize: { type: null, required: false },
|
|
363
|
+
fontWeight: { type: null, required: false },
|
|
364
|
+
lineHeight: { type: null, required: false },
|
|
365
|
+
letterSpacing: { type: null, required: false },
|
|
366
366
|
active: { type: [Boolean, Object], required: false },
|
|
367
367
|
activeClass: { type: String, required: false },
|
|
368
368
|
variant: { type: null, required: false },
|
|
@@ -22,20 +22,20 @@ import {
|
|
|
22
22
|
import { useNumberFormat } from "../../composables";
|
|
23
23
|
const props = defineProps({
|
|
24
24
|
value: { type: [Number, String], required: true },
|
|
25
|
-
format: { type:
|
|
25
|
+
format: { type: null, required: false, default: "decimal" },
|
|
26
26
|
locale: { type: [String, Array], required: false, default: "auto" },
|
|
27
27
|
currency: { type: String, required: false, default: void 0 },
|
|
28
|
-
currencyDisplay: { type:
|
|
28
|
+
currencyDisplay: { type: null, required: false, default: "symbol" },
|
|
29
29
|
unit: { type: String, required: false, default: void 0 },
|
|
30
|
-
unitDisplay: { type:
|
|
31
|
-
notation: { type:
|
|
32
|
-
compactDisplay: { type:
|
|
30
|
+
unitDisplay: { type: null, required: false, default: "short" },
|
|
31
|
+
notation: { type: null, required: false, default: void 0 },
|
|
32
|
+
compactDisplay: { type: null, required: false, default: "short" },
|
|
33
33
|
minimumFractionDigits: { type: Number, required: false, default: void 0 },
|
|
34
34
|
maximumFractionDigits: { type: Number, required: false, default: void 0 },
|
|
35
35
|
minimumSignificantDigits: { type: Number, required: false, default: void 0 },
|
|
36
36
|
maximumSignificantDigits: { type: Number, required: false, default: void 0 },
|
|
37
|
-
useGrouping: { type:
|
|
38
|
-
signDisplay: { type:
|
|
37
|
+
useGrouping: { type: Boolean, required: false, skipCheck: true, default: true },
|
|
38
|
+
signDisplay: { type: null, required: false, default: "auto" },
|
|
39
39
|
id: { type: String, required: false },
|
|
40
40
|
class: { type: [String, Array, Object], required: false },
|
|
41
41
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -223,11 +223,11 @@ const props = defineProps({
|
|
|
223
223
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
224
224
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
225
225
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
226
|
-
fontFamily: { type:
|
|
227
|
-
fontSize: { type:
|
|
228
|
-
fontWeight: { type:
|
|
229
|
-
lineHeight: { type:
|
|
230
|
-
letterSpacing: { type:
|
|
226
|
+
fontFamily: { type: null, required: false },
|
|
227
|
+
fontSize: { type: null, required: false },
|
|
228
|
+
fontWeight: { type: null, required: false },
|
|
229
|
+
lineHeight: { type: null, required: false },
|
|
230
|
+
letterSpacing: { type: null, required: false },
|
|
231
231
|
active: { type: [Boolean, Object], required: false },
|
|
232
232
|
activeClass: { type: String, required: false },
|
|
233
233
|
variant: { type: null, required: false },
|
|
@@ -177,7 +177,22 @@
|
|
|
177
177
|
<script lang="ts" setup>
|
|
178
178
|
import { ComponentPublicInstance, computed, nextTick, ref, shallowRef, StyleValue } from "vue";
|
|
179
179
|
import { OrigamBtn } from "../../components";
|
|
180
|
-
import {
|
|
180
|
+
import {
|
|
181
|
+
useBorder,
|
|
182
|
+
useDensity,
|
|
183
|
+
useDisplay,
|
|
184
|
+
useElevation,
|
|
185
|
+
useLocale,
|
|
186
|
+
useMargin,
|
|
187
|
+
usePadding,
|
|
188
|
+
useProps,
|
|
189
|
+
useRefs,
|
|
190
|
+
useResizeObserver,
|
|
191
|
+
useSize,
|
|
192
|
+
useStyle,
|
|
193
|
+
useTypography,
|
|
194
|
+
useVModel
|
|
195
|
+
} from "../../composables";
|
|
181
196
|
import { KEYBOARD_VALUES, MDI_ICONS, VARIANT } from "../../enums";
|
|
182
197
|
import { createRange, int } from "../../utils";
|
|
183
198
|
const props = defineProps({
|
|
@@ -249,11 +264,11 @@ const props = defineProps({
|
|
|
249
264
|
elevation: { type: [Number, String], required: false },
|
|
250
265
|
size: { type: null, required: false },
|
|
251
266
|
density: { type: null, required: false },
|
|
252
|
-
fontFamily: { type:
|
|
253
|
-
fontSize: { type:
|
|
254
|
-
fontWeight: { type:
|
|
255
|
-
lineHeight: { type:
|
|
256
|
-
letterSpacing: { type:
|
|
267
|
+
fontFamily: { type: null, required: false },
|
|
268
|
+
fontSize: { type: null, required: false },
|
|
269
|
+
fontWeight: { type: null, required: false },
|
|
270
|
+
lineHeight: { type: null, required: false },
|
|
271
|
+
letterSpacing: { type: null, required: false }
|
|
257
272
|
});
|
|
258
273
|
const emits = defineEmits(["first", "prev", "next", "last", "update:modelValue"]);
|
|
259
274
|
defineSlots();
|
|
@@ -509,6 +524,10 @@ const isColored = computed(() => !!(props.color || props.bgColor));
|
|
|
509
524
|
const { sizeClasses } = useSize(props);
|
|
510
525
|
const { densityClasses } = useDensity(props);
|
|
511
526
|
const { typographyStyles } = useTypography(props, "pagination--info");
|
|
527
|
+
const { paddingClasses, paddingStyles } = usePadding(props);
|
|
528
|
+
const { marginClasses, marginStyles } = useMargin(props);
|
|
529
|
+
const { borderClasses, borderStyles } = useBorder(props);
|
|
530
|
+
const { elevationClasses, elevationStyles } = useElevation(props);
|
|
512
531
|
const paginationClasses = computed(() => {
|
|
513
532
|
return [
|
|
514
533
|
"origam-pagination",
|
|
@@ -519,11 +538,19 @@ const paginationClasses = computed(() => {
|
|
|
519
538
|
},
|
|
520
539
|
sizeClasses.value,
|
|
521
540
|
densityClasses.value,
|
|
541
|
+
borderClasses.value,
|
|
542
|
+
elevationClasses.value,
|
|
543
|
+
paddingClasses.value,
|
|
544
|
+
marginClasses.value,
|
|
522
545
|
props.class
|
|
523
546
|
];
|
|
524
547
|
});
|
|
525
548
|
const paginationStyles = computed(() => {
|
|
526
549
|
return [
|
|
550
|
+
borderStyles.value,
|
|
551
|
+
elevationStyles.value,
|
|
552
|
+
marginStyles.value,
|
|
553
|
+
paddingStyles.value,
|
|
527
554
|
props.style
|
|
528
555
|
];
|
|
529
556
|
});
|
|
@@ -126,11 +126,11 @@ const props = defineProps({
|
|
|
126
126
|
bottom: { type: [Number, String], required: false },
|
|
127
127
|
left: { type: [Number, String], required: false },
|
|
128
128
|
right: { type: [Number, String], required: false },
|
|
129
|
-
fontFamily: { type:
|
|
130
|
-
fontSize: { type:
|
|
131
|
-
fontWeight: { type:
|
|
132
|
-
lineHeight: { type:
|
|
133
|
-
letterSpacing: { type:
|
|
129
|
+
fontFamily: { type: null, required: false },
|
|
130
|
+
fontSize: { type: null, required: false },
|
|
131
|
+
fontWeight: { type: null, required: false },
|
|
132
|
+
lineHeight: { type: null, required: false },
|
|
133
|
+
letterSpacing: { type: null, required: false },
|
|
134
134
|
audio: { type: String, required: false },
|
|
135
135
|
playAudio: { type: Boolean, required: false }
|
|
136
136
|
});
|
|
@@ -218,6 +218,7 @@ const orientationElement = ({ event, target }) => {
|
|
|
218
218
|
return { x, y, target };
|
|
219
219
|
};
|
|
220
220
|
const handleMovement = useThrottleFn((event) => {
|
|
221
|
+
if (props.disabled) return;
|
|
221
222
|
if (!props.active && !root.value) return;
|
|
222
223
|
if (!isMoving.value && !leftOnce.value) {
|
|
223
224
|
handleMovementStart();
|
|
@@ -273,7 +274,24 @@ provide(ORIGAM_PARALLAX_KEY, {
|
|
|
273
274
|
audioData,
|
|
274
275
|
event: toRef(props, "event"),
|
|
275
276
|
eventData: data,
|
|
276
|
-
|
|
277
|
+
// ⛔ THIS is the `disabled` kill-switch for the legacy
|
|
278
|
+
// <OrigamParallaxElement> path — the only gate whose removal reddens a
|
|
279
|
+
// test (`disabled — flipping it mid-hover…`). Before it, `disabled`
|
|
280
|
+
// reached only `useParallaxRuntime` (the <OrigamParallaxLayer> path) and
|
|
281
|
+
// the `origam-parallax--disabled` class, whose SCSS neutralises
|
|
282
|
+
// `.origam-parallax__layer` and nothing else — so a
|
|
283
|
+
// `<origam-parallax disabled event="move">` kept translating under the
|
|
284
|
+
// mouse (measured: matrix(1,0,0,1,-1,-1) → matrix(1,0,0,1,-50.58,-50.62)).
|
|
285
|
+
//
|
|
286
|
+
// It has to live HERE rather than only in `handleMovement`: stopping
|
|
287
|
+
// future updates leaves `movement` at whatever value it held when
|
|
288
|
+
// `disabled` flipped on, freezing the element mid-travel (measured at
|
|
289
|
+
// -91,-91) instead of returning to offset 0 as `IParallaxProps.disabled`
|
|
290
|
+
// documents. `OrigamParallaxElement.transformCalculation` short-circuits
|
|
291
|
+
// to `{x: 0, y: 0}` as soon as this ref reads false, so gating it here is
|
|
292
|
+
// what makes "translate stays at 0" literally true, and it covers the
|
|
293
|
+
// `event="scroll"` branch of this same expression too.
|
|
294
|
+
isMoving: computed(() => !props.disabled && (isMoving.value || props.event === PARALLAX_EVENT.SCROLL)),
|
|
277
295
|
movement,
|
|
278
296
|
duration: resolvedDuration,
|
|
279
297
|
easing: toRef(props, "easing"),
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
useStyle
|
|
22
22
|
} from "../../composables";
|
|
23
23
|
import { ORIGAM_PARALLAX_KEY } from "../../consts";
|
|
24
|
-
import { AXIS, PARALLAX_ELEMENT_TYPE } from "../../enums";
|
|
24
|
+
import { AXIS, PARALLAX_ELEMENT_TYPE, PARALLAX_EVENT } from "../../enums";
|
|
25
25
|
import { cyclicMovement, elementMovement } from "../../utils";
|
|
26
26
|
const props = defineProps({
|
|
27
27
|
transformOrigin: { type: null, required: false, default: "center" },
|
|
@@ -133,16 +133,16 @@ const calculateMouseMovement = () => {
|
|
|
133
133
|
maxX: props.maxX,
|
|
134
134
|
maxY: props.maxY
|
|
135
135
|
}) : cyclicMovement({
|
|
136
|
-
referencePosition: parallax.event.value ===
|
|
136
|
+
referencePosition: parallax.event.value === PARALLAX_EVENT.SCROLL ? { x: 0, y: 0 } : parallax.eventData.value,
|
|
137
137
|
shape: parallax.shape.value,
|
|
138
138
|
event: parallax.event.value,
|
|
139
139
|
cycles: props.cycle,
|
|
140
140
|
strength: strength.value
|
|
141
141
|
});
|
|
142
|
-
if (parallax.event.value !==
|
|
142
|
+
if (parallax.event.value !== PARALLAX_EVENT.SCROLL) {
|
|
143
143
|
movementX = props.axis === AXIS.Y ? 0 : x;
|
|
144
144
|
movementY = props.axis === AXIS.X ? 0 : y;
|
|
145
|
-
} else if (parallax.event.value ===
|
|
145
|
+
} else if (parallax.event.value === PARALLAX_EVENT.SCROLL) {
|
|
146
146
|
movementX = props.axis === AXIS.X ? y : 0;
|
|
147
147
|
movementY = props.axis === AXIS.Y || !props.axis ? y : 0;
|
|
148
148
|
} else if (props.cycle > 0) {
|
|
@@ -431,11 +431,11 @@ const _props = defineProps({
|
|
|
431
431
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
432
432
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
433
433
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
434
|
-
fontFamily: { type:
|
|
435
|
-
fontSize: { type:
|
|
436
|
-
fontWeight: { type:
|
|
437
|
-
lineHeight: { type:
|
|
438
|
-
letterSpacing: { type:
|
|
434
|
+
fontFamily: { type: null, required: false },
|
|
435
|
+
fontSize: { type: null, required: false },
|
|
436
|
+
fontWeight: { type: null, required: false },
|
|
437
|
+
lineHeight: { type: null, required: false },
|
|
438
|
+
letterSpacing: { type: null, required: false },
|
|
439
439
|
active: { type: [Boolean, Object], required: false },
|
|
440
440
|
activeClass: { type: String, required: false },
|
|
441
441
|
variant: { type: null, required: false },
|
|
@@ -53,7 +53,7 @@ const props = defineProps({
|
|
|
53
53
|
side: { type: null, required: false },
|
|
54
54
|
swipeable: { type: Boolean, required: false },
|
|
55
55
|
snapPoints: { type: Array, required: false },
|
|
56
|
-
defaultSnap: { type:
|
|
56
|
+
defaultSnap: { type: null, required: false },
|
|
57
57
|
open: { type: Boolean, required: false },
|
|
58
58
|
disabled: { type: Boolean, required: false },
|
|
59
59
|
persistent: { type: Boolean, required: false },
|
|
@@ -112,11 +112,11 @@ const props = defineProps({
|
|
|
112
112
|
activeClass: { type: String, required: false },
|
|
113
113
|
hover: { type: [Boolean, Object], required: false },
|
|
114
114
|
title: { type: String, required: false },
|
|
115
|
-
fontFamily: { type:
|
|
116
|
-
fontSize: { type:
|
|
117
|
-
fontWeight: { type:
|
|
118
|
-
lineHeight: { type:
|
|
119
|
-
letterSpacing: { type:
|
|
115
|
+
fontFamily: { type: null, required: false },
|
|
116
|
+
fontSize: { type: null, required: false },
|
|
117
|
+
fontWeight: { type: null, required: false },
|
|
118
|
+
lineHeight: { type: null, required: false },
|
|
119
|
+
letterSpacing: { type: null, required: false }
|
|
120
120
|
});
|
|
121
121
|
const slots = useSlots();
|
|
122
122
|
const { filterProps } = useProps(props);
|
|
@@ -21,11 +21,11 @@ const props = defineProps({
|
|
|
21
21
|
tag: { type: String, required: false, default: "div" },
|
|
22
22
|
color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
23
23
|
bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
24
|
-
fontFamily: { type:
|
|
25
|
-
fontSize: { type:
|
|
26
|
-
fontWeight: { type:
|
|
27
|
-
lineHeight: { type:
|
|
28
|
-
letterSpacing: { type:
|
|
24
|
+
fontFamily: { type: null, required: false },
|
|
25
|
+
fontSize: { type: null, required: false },
|
|
26
|
+
fontWeight: { type: null, required: false },
|
|
27
|
+
lineHeight: { type: null, required: false },
|
|
28
|
+
letterSpacing: { type: null, required: false }
|
|
29
29
|
});
|
|
30
30
|
const { filterProps } = useProps(props);
|
|
31
31
|
defineSlots();
|
|
@@ -68,7 +68,7 @@ const props = defineProps({
|
|
|
68
68
|
value: { type: String, required: true },
|
|
69
69
|
title: { type: String, required: false, default: void 0 },
|
|
70
70
|
qrCodeProps: { type: Object, required: false, default: void 0 },
|
|
71
|
-
errorCorrectionLevel: { type:
|
|
71
|
+
errorCorrectionLevel: { type: null, required: false, default: "M" },
|
|
72
72
|
quietZone: { type: Number, required: false, default: 4 },
|
|
73
73
|
icon: { type: null, required: false, default: void 0 },
|
|
74
74
|
image: { type: [String, Object], required: false, default: void 0 },
|
|
@@ -185,11 +185,11 @@ const _props = defineProps({
|
|
|
185
185
|
prependAvatar: { type: String, required: false },
|
|
186
186
|
prependIcon: { type: null, required: false },
|
|
187
187
|
size: { type: null, required: false },
|
|
188
|
-
fontFamily: { type:
|
|
189
|
-
fontSize: { type:
|
|
190
|
-
fontWeight: { type:
|
|
191
|
-
lineHeight: { type:
|
|
192
|
-
letterSpacing: { type:
|
|
188
|
+
fontFamily: { type: null, required: false },
|
|
189
|
+
fontSize: { type: null, required: false },
|
|
190
|
+
fontWeight: { type: null, required: false },
|
|
191
|
+
lineHeight: { type: null, required: false },
|
|
192
|
+
letterSpacing: { type: null, required: false },
|
|
193
193
|
trueValue: { type: null, required: false },
|
|
194
194
|
falseValue: { type: null, required: false },
|
|
195
195
|
value: { type: null, required: false },
|
|
@@ -62,12 +62,13 @@
|
|
|
62
62
|
import { computed, ref, StyleValue, useAttrs } from "vue";
|
|
63
63
|
import { OrigamDefaultsProvider, OrigamInput, OrigamLabel, OrigamRadio, OrigamSelectionControlGroup } from "../../components";
|
|
64
64
|
import {
|
|
65
|
+
usePassedProps,
|
|
65
66
|
useProps,
|
|
66
67
|
useStyle,
|
|
67
68
|
useVModel
|
|
68
69
|
} from "../../composables";
|
|
69
70
|
import { DENSITY } from "../../enums";
|
|
70
|
-
import { filterInputAttrs, getUid } from "../../utils";
|
|
71
|
+
import { filterInputAttrs, getUid, omitUndefined } from "../../utils";
|
|
71
72
|
const props = defineProps({
|
|
72
73
|
id: { type: String, required: false },
|
|
73
74
|
class: { type: [String, Array, Object], required: false },
|
|
@@ -138,11 +139,11 @@ const props = defineProps({
|
|
|
138
139
|
prependAvatar: { type: String, required: false },
|
|
139
140
|
prependIcon: { type: null, required: false },
|
|
140
141
|
size: { type: null, required: false },
|
|
141
|
-
fontFamily: { type:
|
|
142
|
-
fontSize: { type:
|
|
143
|
-
fontWeight: { type:
|
|
144
|
-
lineHeight: { type:
|
|
145
|
-
letterSpacing: { type:
|
|
142
|
+
fontFamily: { type: null, required: false },
|
|
143
|
+
fontSize: { type: null, required: false },
|
|
144
|
+
fontWeight: { type: null, required: false },
|
|
145
|
+
lineHeight: { type: null, required: false },
|
|
146
|
+
letterSpacing: { type: null, required: false },
|
|
146
147
|
value: { type: null, required: false },
|
|
147
148
|
required: { type: Boolean, required: false },
|
|
148
149
|
activeColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -160,6 +161,7 @@ const props = defineProps({
|
|
|
160
161
|
items: { type: [Array, Object], required: false }
|
|
161
162
|
});
|
|
162
163
|
defineSlots();
|
|
164
|
+
defineEmits(["update:modelValue"]);
|
|
163
165
|
const { filterProps } = useProps(props);
|
|
164
166
|
const origamSelectionControlGroupRef = ref();
|
|
165
167
|
const origamInputRef = ref();
|
|
@@ -176,13 +178,14 @@ const inputProps = computed(() => {
|
|
|
176
178
|
const controlProps = computed(() => {
|
|
177
179
|
return origamSelectionControlGroupRef.value?.filterProps(props, ["modelValue", "id", "style", "class", "readonly", "disabled", "type", "multiple", "items"]);
|
|
178
180
|
});
|
|
181
|
+
const wasPropPassed = usePassedProps(props);
|
|
179
182
|
const radioDefaults = computed(() => ({
|
|
180
|
-
"origam-radio": {
|
|
181
|
-
color: props.color,
|
|
182
|
-
bgColor: props.bgColor,
|
|
183
|
-
density: props.density,
|
|
184
|
-
size: props.size
|
|
185
|
-
}
|
|
183
|
+
"origam-radio": omitUndefined({
|
|
184
|
+
color: wasPropPassed("color") ? props.color : void 0,
|
|
185
|
+
bgColor: wasPropPassed("bgColor") ? props.bgColor : void 0,
|
|
186
|
+
density: wasPropPassed("density") ? props.density : void 0,
|
|
187
|
+
size: wasPropPassed("size") ? props.size : void 0
|
|
188
|
+
})
|
|
186
189
|
}));
|
|
187
190
|
const items = computed(() => {
|
|
188
191
|
return props.items ?? [];
|
|
@@ -231,11 +231,11 @@ const props = defineProps({
|
|
|
231
231
|
prependAvatar: { type: String, required: false },
|
|
232
232
|
prependIcon: { type: null, required: false },
|
|
233
233
|
size: { type: null, required: false, default: SIZES.DEFAULT },
|
|
234
|
-
fontFamily: { type:
|
|
235
|
-
fontSize: { type:
|
|
236
|
-
fontWeight: { type:
|
|
237
|
-
lineHeight: { type:
|
|
238
|
-
letterSpacing: { type:
|
|
234
|
+
fontFamily: { type: null, required: false },
|
|
235
|
+
fontSize: { type: null, required: false },
|
|
236
|
+
fontWeight: { type: null, required: false },
|
|
237
|
+
lineHeight: { type: null, required: false },
|
|
238
|
+
letterSpacing: { type: null, required: false },
|
|
239
239
|
ripple: { type: [Boolean, Object], required: false },
|
|
240
240
|
tag: { type: String, required: false, default: "div" },
|
|
241
241
|
text: { type: String, required: false },
|
|
@@ -411,11 +411,11 @@ const _props = defineProps({
|
|
|
411
411
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
412
412
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
413
413
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
414
|
-
fontFamily: { type:
|
|
415
|
-
fontSize: { type:
|
|
416
|
-
fontWeight: { type:
|
|
417
|
-
lineHeight: { type:
|
|
418
|
-
letterSpacing: { type:
|
|
414
|
+
fontFamily: { type: null, required: false },
|
|
415
|
+
fontSize: { type: null, required: false },
|
|
416
|
+
fontWeight: { type: null, required: false },
|
|
417
|
+
lineHeight: { type: null, required: false },
|
|
418
|
+
letterSpacing: { type: null, required: false },
|
|
419
419
|
active: { type: [Boolean, Object], required: false },
|
|
420
420
|
activeClass: { type: String, required: false },
|
|
421
421
|
variant: { type: null, required: false },
|
|
@@ -159,9 +159,10 @@ const isMultiple = computed(() => {
|
|
|
159
159
|
const valueComparator = computed(() => {
|
|
160
160
|
return props.valueComparator ?? deepEqual;
|
|
161
161
|
});
|
|
162
|
+
const currentModel = () => group ? group.modelValue.value : modelValue.value;
|
|
162
163
|
const model = computed({
|
|
163
164
|
get() {
|
|
164
|
-
const val =
|
|
165
|
+
const val = currentModel();
|
|
165
166
|
return isMultiple.value ? wrapInArray(val).some((v) => valueComparator.value(v, trueValue.value)) : valueComparator.value(val, trueValue.value);
|
|
166
167
|
},
|
|
167
168
|
set(val) {
|
|
@@ -169,7 +170,8 @@ const model = computed({
|
|
|
169
170
|
const currentValue = val ? trueValue.value : falseValue.value;
|
|
170
171
|
let newVal = currentValue;
|
|
171
172
|
if (isMultiple.value) {
|
|
172
|
-
|
|
173
|
+
const previous = currentModel();
|
|
174
|
+
newVal = val ? [...wrapInArray(previous), currentValue] : wrapInArray(previous).filter((item) => !valueComparator.value(item, trueValue.value));
|
|
173
175
|
}
|
|
174
176
|
if (group) {
|
|
175
177
|
group.modelValue.value = newVal;
|
|
@@ -33,13 +33,14 @@
|
|
|
33
33
|
import { computed, onScopeDispose, provide, StyleValue } from "vue";
|
|
34
34
|
import { OrigamDefaultsProvider } from "../../components";
|
|
35
35
|
import {
|
|
36
|
+
usePassedProps,
|
|
36
37
|
useProps,
|
|
37
38
|
useStyle,
|
|
38
39
|
useVModel
|
|
39
40
|
} from "../../composables";
|
|
40
41
|
import { ORIGAM_SELECTION_CONTROL_GROUP_KEY } from "../../consts";
|
|
41
42
|
import { DENSITY } from "../../enums";
|
|
42
|
-
import { getUid } from "../../utils";
|
|
43
|
+
import { getUid, omitUndefined } from "../../utils";
|
|
43
44
|
const props = defineProps({
|
|
44
45
|
disabled: { type: Boolean, required: false },
|
|
45
46
|
error: { type: [String, Boolean], required: false },
|
|
@@ -63,21 +64,22 @@ const props = defineProps({
|
|
|
63
64
|
defineEmits(["update:modelValue"]);
|
|
64
65
|
defineSlots();
|
|
65
66
|
const { filterProps } = useProps(props);
|
|
67
|
+
const wasPropPassed = usePassedProps(props);
|
|
66
68
|
const slotDefaults = computed(() => ({
|
|
67
|
-
"origam-selection-control": {
|
|
68
|
-
density: props.density,
|
|
69
|
-
color: props.color,
|
|
70
|
-
type: props.type,
|
|
71
|
-
disabled: props.disabled,
|
|
72
|
-
readonly: props.readonly,
|
|
73
|
-
error: props.error,
|
|
74
|
-
multiple: props.multiple,
|
|
75
|
-
name: props.name,
|
|
76
|
-
ripple: props.ripple,
|
|
77
|
-
falseIcon: props.falseIcon,
|
|
78
|
-
trueIcon: props.trueIcon,
|
|
79
|
-
valueComparator: props.valueComparator
|
|
80
|
-
}
|
|
69
|
+
"origam-selection-control": omitUndefined({
|
|
70
|
+
density: wasPropPassed("density") ? props.density : void 0,
|
|
71
|
+
color: wasPropPassed("color") ? props.color : void 0,
|
|
72
|
+
type: wasPropPassed("type") ? props.type : void 0,
|
|
73
|
+
disabled: wasPropPassed("disabled") ? props.disabled : void 0,
|
|
74
|
+
readonly: wasPropPassed("readonly") ? props.readonly : void 0,
|
|
75
|
+
error: wasPropPassed("error") ? props.error : void 0,
|
|
76
|
+
multiple: wasPropPassed("multiple") ? props.multiple : void 0,
|
|
77
|
+
name: wasPropPassed("name") ? props.name : void 0,
|
|
78
|
+
ripple: wasPropPassed("ripple") ? props.ripple : void 0,
|
|
79
|
+
falseIcon: wasPropPassed("falseIcon") ? props.falseIcon : void 0,
|
|
80
|
+
trueIcon: wasPropPassed("trueIcon") ? props.trueIcon : void 0,
|
|
81
|
+
valueComparator: wasPropPassed("valueComparator") ? props.valueComparator : void 0
|
|
82
|
+
})
|
|
81
83
|
}));
|
|
82
84
|
const modelValue = useVModel(props, "modelValue");
|
|
83
85
|
const uid = getUid();
|
|
@@ -44,7 +44,7 @@ const props = defineProps({
|
|
|
44
44
|
side: { type: null, required: false, default: void 0 },
|
|
45
45
|
swipeable: { type: Boolean, required: false, default: false },
|
|
46
46
|
snapPoints: { type: Array, required: false },
|
|
47
|
-
defaultSnap: { type:
|
|
47
|
+
defaultSnap: { type: null, required: false, default: "half" },
|
|
48
48
|
open: { type: Boolean, required: false, default: void 0 },
|
|
49
49
|
disabled: { type: Boolean, required: false, default: false },
|
|
50
50
|
persistent: { type: Boolean, required: false, default: false },
|
|
@@ -103,7 +103,7 @@ const props = defineProps({
|
|
|
103
103
|
activeClass: { type: String, required: false },
|
|
104
104
|
hover: { type: [Boolean, Object], required: false }
|
|
105
105
|
});
|
|
106
|
-
const emit = defineEmits(["update:snap", "update:open"]);
|
|
106
|
+
const emit = defineEmits(["update:snap", "update:open", "update:active"]);
|
|
107
107
|
defineSlots();
|
|
108
108
|
const { filterProps } = useProps(props);
|
|
109
109
|
const { colorClasses, colorStyles } = useBothColor(
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
import { convertToUnit } from "../../utils";
|
|
57
57
|
import { computed, toRef } from "vue";
|
|
58
58
|
const props = defineProps({
|
|
59
|
-
variant: { type:
|
|
59
|
+
variant: { type: null, required: false, default: "rectangular" },
|
|
60
60
|
width: { type: [String, Number], required: false },
|
|
61
61
|
height: { type: [String, Number], required: false },
|
|
62
62
|
loading: { type: Boolean, required: false, default: true },
|
|
@@ -146,7 +146,7 @@ const isOverflowing = shallowRef(false);
|
|
|
146
146
|
const scrollOffset = shallowRef(0);
|
|
147
147
|
const containerSize = shallowRef(0);
|
|
148
148
|
const contentSize = shallowRef(0);
|
|
149
|
-
const isHorizontal = computed(() => props.direction ===
|
|
149
|
+
const isHorizontal = computed(() => props.direction === DIRECTION.HORIZONTAL);
|
|
150
150
|
const { resizeRef: containerRef, contentRect: containerRect } = useResizeObserver();
|
|
151
151
|
const { resizeRef: contentRef, contentRect } = useResizeObserver();
|
|
152
152
|
const { isRtl } = useRtl();
|