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
|
@@ -50,6 +50,7 @@ import {
|
|
|
50
50
|
useStyle
|
|
51
51
|
} from "../../composables";
|
|
52
52
|
import { TIMELINE_CONTEXT_KEY } from "../../consts";
|
|
53
|
+
import { DIRECTION, TIMELINE_SIDE } from "../../enums";
|
|
53
54
|
const props = defineProps({
|
|
54
55
|
title: { type: String, required: false },
|
|
55
56
|
subtitle: { type: String, required: false },
|
|
@@ -57,7 +58,7 @@ const props = defineProps({
|
|
|
57
58
|
intent: { type: null, required: false },
|
|
58
59
|
isLast: { type: Boolean, required: false, default: false },
|
|
59
60
|
truncateLine: { type: Boolean, required: false, default: false },
|
|
60
|
-
side: { type:
|
|
61
|
+
side: { type: null, required: false, default: "start" },
|
|
61
62
|
orientation: { type: null, required: false, default: "vertical" },
|
|
62
63
|
index: { type: Number, required: false, default: 0 },
|
|
63
64
|
id: { type: String, required: false },
|
|
@@ -79,7 +80,7 @@ const effectiveSide = computed(() => {
|
|
|
79
80
|
});
|
|
80
81
|
const effectiveOrientation = computed(() => {
|
|
81
82
|
if (timelineCtx?.orientation) return timelineCtx.orientation;
|
|
82
|
-
return props.orientation ??
|
|
83
|
+
return props.orientation ?? DIRECTION.VERTICAL;
|
|
83
84
|
});
|
|
84
85
|
const effectiveTruncateLine = computed(() => {
|
|
85
86
|
if (timelineCtx?.truncateLine !== void 0) return timelineCtx.truncateLine;
|
|
@@ -100,7 +101,7 @@ const dotStyles = computed(() => {
|
|
|
100
101
|
};
|
|
101
102
|
});
|
|
102
103
|
const connectorStyles = computed(() => {
|
|
103
|
-
const isH = effectiveOrientation.value ===
|
|
104
|
+
const isH = effectiveOrientation.value === DIRECTION.HORIZONTAL;
|
|
104
105
|
return {
|
|
105
106
|
"background-color": "var(--origam-timeline---connector-color, var(--origam-color__border---subtle))",
|
|
106
107
|
[isH ? "height" : "width"]: "var(--origam-timeline---connector-thickness, var(--origam-border__width---thin, 1px))"
|
|
@@ -126,8 +127,8 @@ function intentToFgToken(intent) {
|
|
|
126
127
|
}
|
|
127
128
|
const contentSide = computed(() => {
|
|
128
129
|
const side = effectiveSide.value;
|
|
129
|
-
if (side ===
|
|
130
|
-
return props.index % 2 === 0 ?
|
|
130
|
+
if (side === TIMELINE_SIDE.ALTERNATING) {
|
|
131
|
+
return props.index % 2 === 0 ? TIMELINE_SIDE.START : TIMELINE_SIDE.END;
|
|
131
132
|
}
|
|
132
133
|
return side;
|
|
133
134
|
});
|
|
@@ -135,10 +136,10 @@ const itemClasses = computed(() => [
|
|
|
135
136
|
"origam-timeline-item",
|
|
136
137
|
`origam-timeline-item--orientation-${effectiveOrientation.value}`,
|
|
137
138
|
{
|
|
138
|
-
"origam-timeline-item--side-start": effectiveSide.value ===
|
|
139
|
-
"origam-timeline-item--side-end": effectiveSide.value ===
|
|
140
|
-
"origam-timeline-item--alternating": effectiveSide.value ===
|
|
141
|
-
"origam-timeline-item--content-end": contentSide.value ===
|
|
139
|
+
"origam-timeline-item--side-start": effectiveSide.value === TIMELINE_SIDE.START || contentSide.value === TIMELINE_SIDE.START,
|
|
140
|
+
"origam-timeline-item--side-end": effectiveSide.value === TIMELINE_SIDE.END || contentSide.value === TIMELINE_SIDE.END,
|
|
141
|
+
"origam-timeline-item--alternating": effectiveSide.value === TIMELINE_SIDE.ALTERNATING,
|
|
142
|
+
"origam-timeline-item--content-end": contentSide.value === TIMELINE_SIDE.END,
|
|
142
143
|
"origam-timeline-item--last": props.isLast
|
|
143
144
|
},
|
|
144
145
|
densityClasses.value,
|
|
@@ -65,11 +65,11 @@ const _props = defineProps({
|
|
|
65
65
|
borderRightColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
66
66
|
borderBottomColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
67
67
|
borderLeftColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
68
|
-
fontFamily: { type:
|
|
69
|
-
fontSize: { type:
|
|
70
|
-
fontWeight: { type:
|
|
71
|
-
lineHeight: { type:
|
|
72
|
-
letterSpacing: { type:
|
|
68
|
+
fontFamily: { type: null, required: false },
|
|
69
|
+
fontSize: { type: null, required: false },
|
|
70
|
+
fontWeight: { type: null, required: false },
|
|
71
|
+
lineHeight: { type: null, required: false },
|
|
72
|
+
letterSpacing: { type: null, required: false }
|
|
73
73
|
});
|
|
74
74
|
const props = useDefaults(_props);
|
|
75
75
|
const { filterProps } = useProps(props);
|
|
@@ -113,11 +113,11 @@ const props = defineProps({
|
|
|
113
113
|
active: { type: [Boolean, Object], required: false },
|
|
114
114
|
activeClass: { type: String, required: false },
|
|
115
115
|
hover: { type: [Boolean, Object], required: false },
|
|
116
|
-
fontFamily: { type:
|
|
117
|
-
fontSize: { type:
|
|
118
|
-
fontWeight: { type:
|
|
119
|
-
lineHeight: { type:
|
|
120
|
-
letterSpacing: { type:
|
|
116
|
+
fontFamily: { type: null, required: false },
|
|
117
|
+
fontSize: { type: null, required: false },
|
|
118
|
+
fontWeight: { type: null, required: false },
|
|
119
|
+
lineHeight: { type: null, required: false },
|
|
120
|
+
letterSpacing: { type: null, required: false }
|
|
121
121
|
});
|
|
122
122
|
defineSlots();
|
|
123
123
|
const { filterProps } = useProps(props);
|
|
@@ -94,11 +94,11 @@ const props = defineProps({
|
|
|
94
94
|
scrim: { type: [Boolean, String], required: false, default: false },
|
|
95
95
|
color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
96
96
|
bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
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
|
defineEmits(["update:modelValue"]);
|
|
104
104
|
defineSlots();
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:style="treeviewStyles"
|
|
6
6
|
role="tree"
|
|
7
7
|
:aria-label="ariaLabel || 'File tree'"
|
|
8
|
-
:aria-multiselectable="selectMode ===
|
|
8
|
+
:aria-multiselectable="selectMode === TREEVIEW_SELECT_MODE.MULTIPLE || undefined"
|
|
9
9
|
@keydown="handleKeydown"
|
|
10
10
|
>
|
|
11
11
|
<origam-treeview-node
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
import { computed, provide, ref, watch } from "vue";
|
|
23
23
|
import { OrigamTreeviewNode } from "../../components";
|
|
24
24
|
import { ORIGAM_TREEVIEW_KEY } from "../../consts";
|
|
25
|
-
import { DENSITY, SIZES } from "../../enums";
|
|
25
|
+
import { DENSITY, SIZES, TREEVIEW_SELECT_MODE, TREEVIEW_SELECTABLE_NODES } from "../../enums";
|
|
26
26
|
import {
|
|
27
27
|
useDensity,
|
|
28
28
|
useProps,
|
|
@@ -34,8 +34,8 @@ const props = defineProps({
|
|
|
34
34
|
items: { type: Array, required: true },
|
|
35
35
|
modelValue: { type: [Array, String], required: false },
|
|
36
36
|
expandedValue: { type: Array, required: false },
|
|
37
|
-
selectMode: { type:
|
|
38
|
-
selectableNodes: { type:
|
|
37
|
+
selectMode: { type: null, required: false, default: "none" },
|
|
38
|
+
selectableNodes: { type: null, required: false, default: "leaf" },
|
|
39
39
|
showLines: { type: Boolean, required: false, default: true },
|
|
40
40
|
expandOnClick: { type: Boolean, required: false, default: false },
|
|
41
41
|
id: { type: String, required: false },
|
|
@@ -84,9 +84,9 @@ const toggleExpanded = (id2) => {
|
|
|
84
84
|
};
|
|
85
85
|
const toggleSelected = (id2) => {
|
|
86
86
|
const mode = props.selectMode;
|
|
87
|
-
if (mode ===
|
|
87
|
+
if (mode === TREEVIEW_SELECT_MODE.NONE) return;
|
|
88
88
|
const next = new Set(selectedSet.value);
|
|
89
|
-
if (mode ===
|
|
89
|
+
if (mode === TREEVIEW_SELECT_MODE.SINGLE) {
|
|
90
90
|
if (next.has(id2)) {
|
|
91
91
|
next.clear();
|
|
92
92
|
} else {
|
|
@@ -113,8 +113,8 @@ provide(ORIGAM_TREEVIEW_KEY, {
|
|
|
113
113
|
toggleSelected,
|
|
114
114
|
isExpanded,
|
|
115
115
|
isSelected,
|
|
116
|
-
selectMode: computed(() => props.selectMode ??
|
|
117
|
-
selectableNodes: computed(() => props.selectableNodes ??
|
|
116
|
+
selectMode: computed(() => props.selectMode ?? TREEVIEW_SELECT_MODE.NONE),
|
|
117
|
+
selectableNodes: computed(() => props.selectableNodes ?? TREEVIEW_SELECTABLE_NODES.LEAF),
|
|
118
118
|
showLines: computed(() => props.showLines !== false),
|
|
119
119
|
expandOnClick: computed(() => props.expandOnClick === true),
|
|
120
120
|
color: computed(() => {
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
<script lang="ts" setup>
|
|
94
94
|
import { computed, inject, useSlots } from "vue";
|
|
95
95
|
import { ORIGAM_TREEVIEW_KEY } from "../../consts";
|
|
96
|
+
import { TREEVIEW_SELECT_MODE, TREEVIEW_SELECTABLE_NODES } from "../../enums";
|
|
96
97
|
import {
|
|
97
98
|
useProps,
|
|
98
99
|
useStyle
|
|
@@ -117,10 +118,10 @@ const hasChildren = computed(() => {
|
|
|
117
118
|
const isLeaf = computed(() => !hasChildren.value);
|
|
118
119
|
const isSelectable = computed(() => {
|
|
119
120
|
if (props.node.disabled) return false;
|
|
120
|
-
const mode = treeview?.selectMode.value ??
|
|
121
|
-
if (mode ===
|
|
122
|
-
const selectableNodes = treeview?.selectableNodes.value ??
|
|
123
|
-
if (selectableNodes ===
|
|
121
|
+
const mode = treeview?.selectMode.value ?? TREEVIEW_SELECT_MODE.NONE;
|
|
122
|
+
if (mode === TREEVIEW_SELECT_MODE.NONE) return false;
|
|
123
|
+
const selectableNodes = treeview?.selectableNodes.value ?? TREEVIEW_SELECTABLE_NODES.LEAF;
|
|
124
|
+
if (selectableNodes === TREEVIEW_SELECTABLE_NODES.LEAF) return isLeaf.value;
|
|
124
125
|
return true;
|
|
125
126
|
});
|
|
126
127
|
const isNodeExpanded = computed(() => treeview?.isExpanded(props.node.id) ?? false);
|
|
@@ -230,7 +230,7 @@ import { OrigamIcon } from "../Icon";
|
|
|
230
230
|
import { OrigamMediaController } from "../Media";
|
|
231
231
|
import { OrigamResponsive } from "../Responsive";
|
|
232
232
|
import { shouldSuppressAutoplay, useBorder, useColorEffect, useDimension, useElevation, useLocale, useMargin, usePadding, useRounded, useTypography, useVideoPlayer } from "../../composables";
|
|
233
|
-
import { MDI_ICONS } from "../../enums";
|
|
233
|
+
import { MDI_ICONS, VIDEO_TRACK_KIND } from "../../enums";
|
|
234
234
|
const { t } = useLocale();
|
|
235
235
|
const props = defineProps({
|
|
236
236
|
src: { type: [String, Array], required: true },
|
|
@@ -243,7 +243,7 @@ const props = defineProps({
|
|
|
243
243
|
playsInline: { type: Boolean, required: false, default: true },
|
|
244
244
|
preload: { type: String, required: false, default: "metadata" },
|
|
245
245
|
aspectRatio: { type: String, required: false, default: "16/9" },
|
|
246
|
-
crossorigin: { type:
|
|
246
|
+
crossorigin: { type: null, required: false, default: void 0 },
|
|
247
247
|
disablePictureInPicture: { type: Boolean, required: false, default: false },
|
|
248
248
|
skipSeconds: { type: Number, required: false, default: 30 },
|
|
249
249
|
showCenterControls: { type: Boolean, required: false, default: true },
|
|
@@ -298,11 +298,11 @@ const props = defineProps({
|
|
|
298
298
|
paddingBlock: { type: [Boolean, Number, String], required: false },
|
|
299
299
|
paddingInline: { type: [Boolean, Number, String], required: false },
|
|
300
300
|
elevation: { type: [Number, String], required: false },
|
|
301
|
-
fontFamily: { type:
|
|
302
|
-
fontSize: { type:
|
|
303
|
-
fontWeight: { type:
|
|
304
|
-
lineHeight: { type:
|
|
305
|
-
letterSpacing: { type:
|
|
301
|
+
fontFamily: { type: null, required: false },
|
|
302
|
+
fontSize: { type: null, required: false },
|
|
303
|
+
fontWeight: { type: null, required: false },
|
|
304
|
+
lineHeight: { type: null, required: false },
|
|
305
|
+
letterSpacing: { type: null, required: false }
|
|
306
306
|
});
|
|
307
307
|
const emit = defineEmits(["enterfullscreen", "exitfullscreen", "enterpip", "exitpip", "skip", "quality-change", "download", "play", "pause", "ended", "timeupdate", "volumechange", "loadedmetadata", "error", "update:playbackRate"]);
|
|
308
308
|
defineSlots();
|
|
@@ -534,7 +534,7 @@ async function togglePipBtn() {
|
|
|
534
534
|
}
|
|
535
535
|
const captionsEnabled = ref(false);
|
|
536
536
|
const hasCaptions = computed(() => props.tracks.some((track) => {
|
|
537
|
-
return track.kind ===
|
|
537
|
+
return track.kind === VIDEO_TRACK_KIND.CAPTIONS || track.kind === VIDEO_TRACK_KIND.SUBTITLES;
|
|
538
538
|
}));
|
|
539
539
|
function toggleCaptions() {
|
|
540
540
|
const el = videoRef.value;
|
|
@@ -669,31 +669,9 @@ defineExpose({
|
|
|
669
669
|
overflow: hidden;
|
|
670
670
|
border-radius: var(--origam-video---border-radius, 0);
|
|
671
671
|
|
|
672
|
-
/*
|
|
673
|
-
* Force the chrome (MediaController play / volume / cog,
|
|
674
|
-
* native `<button>`-based MediaVolumeControl) to white by
|
|
675
|
-
* default — the controller's own SCSS reads `color:
|
|
676
|
-
* var(--origam-media-controller---color, inherit)` which
|
|
677
|
-
* defaults to the `#171717` text-primary token. On the dark
|
|
678
|
-
* video overlay that produces near-invisible icons (the
|
|
679
|
-
* user-reported "icons all black" symptom).
|
|
680
|
-
*
|
|
681
|
-
* The variable is overridden to `inherit` further down when
|
|
682
|
-
* the consumer passes `color` / `bgColor`, so `useColorEffect`
|
|
683
|
-
* gets to drive the tint through.
|
|
684
|
-
*/
|
|
685
672
|
--origam-media-controller---color: #ffffff;
|
|
686
673
|
}
|
|
687
674
|
|
|
688
|
-
/*
|
|
689
|
-
* Tint propagation when the consumer passes `color` or `bgColor`:
|
|
690
|
-
* the MediaController + the white-by-default `.origam-video__btn`
|
|
691
|
-
* icons need to inherit the host colour so the scrubber's
|
|
692
|
-
* `currentColor` (set by `scrubberColorStyle`) AND the icons
|
|
693
|
-
* track the user's intent. Without these overrides the
|
|
694
|
-
* MediaController's own scoped `color: var(--origam-media-controller---color, inherit)`
|
|
695
|
-
* pins the chrome back to the dark text-primary token.
|
|
696
|
-
*/
|
|
697
675
|
.origam-video--has-color,
|
|
698
676
|
.origam-video--has-bg-color {
|
|
699
677
|
--origam-media-controller---color: inherit;
|
|
@@ -707,30 +685,10 @@ defineExpose({
|
|
|
707
685
|
}
|
|
708
686
|
}
|
|
709
687
|
|
|
710
|
-
/*
|
|
711
|
-
* Native `<button class="origam-media-volume-control__btn">` lives
|
|
712
|
-
* inside OrigamMediaVolumeControl with its own scoped CSS that
|
|
713
|
-
* doesn't honour `--origam-media-controller---color`. Force it
|
|
714
|
-
* to inherit from the controller (which is now white by default)
|
|
715
|
-
* so the volume icon matches the rest of the chrome.
|
|
716
|
-
*/
|
|
717
688
|
:deep(.origam-media-volume-control__btn) {
|
|
718
689
|
color: inherit;
|
|
719
690
|
}
|
|
720
691
|
|
|
721
|
-
/*
|
|
722
|
-
* Scrubber track / buffer background — overrides the MediaController
|
|
723
|
-
* defaults so the dark, semi-translucent track doesn't let the
|
|
724
|
-
* video frame underneath bleed through with whatever hue the
|
|
725
|
-
* picture has at the playhead position (the user-reported "pink
|
|
726
|
-
* scrubber" symptom on a pastel-toned video frame). White-tinted
|
|
727
|
-
* translucent backgrounds give a uniform light-grey track on
|
|
728
|
-
* every video regardless of content.
|
|
729
|
-
*
|
|
730
|
-
* The :deep(.) reaches into the OrigamMediaScrubber scope to set
|
|
731
|
-
* its internal slots; the consumer can still override per-instance
|
|
732
|
-
* via `--origam-media-scrubber---track-background-color`.
|
|
733
|
-
*/
|
|
734
692
|
:deep(.origam-media-controller__scrubber) {
|
|
735
693
|
--origam-media-scrubber---track-background-color: rgba(255, 255, 255, 0.28);
|
|
736
694
|
--origam-media-scrubber---buffer-background-color: rgba(255, 255, 255, 0.42);
|
|
@@ -826,11 +784,6 @@ defineExpose({
|
|
|
826
784
|
font-size: var(--origam-video--error---icon-font-size, 32px);
|
|
827
785
|
}
|
|
828
786
|
|
|
829
|
-
/* State pulse — YouTube-style brief icon flash at the centre of
|
|
830
|
-
* the video when play/pause toggles. PURELY cosmetic, never
|
|
831
|
-
* absorbs clicks (pointer-events: none) so the underlying video
|
|
832
|
-
* surface stays interactive. Fades in + scales up over ~600 ms
|
|
833
|
-
* then disappears. */
|
|
834
787
|
.origam-video__state-pulse {
|
|
835
788
|
position: absolute;
|
|
836
789
|
top: 50%;
|
|
@@ -5,13 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useCalendar = useCalendar;
|
|
7
7
|
var _vue = require("vue");
|
|
8
|
+
var _enums = require("../../enums/index.cjs");
|
|
8
9
|
var _date = require("../../utils/Calendar/date.util.cjs");
|
|
9
10
|
var _rrule = require("../../utils/Calendar/rrule.util.cjs");
|
|
10
11
|
const NAVIGATION_STEP = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
[_enums.CALENDAR_VIEW.MONTH]: (date, direction) => (0, _date.addMonths)(date, direction),
|
|
13
|
+
[_enums.CALENDAR_VIEW.WEEK]: (date, direction) => (0, _date.addWeeks)(date, direction),
|
|
14
|
+
[_enums.CALENDAR_VIEW.DAY]: (date, direction) => (0, _date.addDays)(date, direction),
|
|
15
|
+
[_enums.CALENDAR_VIEW.AGENDA]: (date, direction) => (0, _date.addMonths)(date, direction)
|
|
15
16
|
};
|
|
16
17
|
function useCalendar(options, setView, setCurrentDate) {
|
|
17
18
|
const visibleDateRange = (0, _vue.computed)(() => {
|
|
@@ -19,8 +20,8 @@ function useCalendar(options, setView, setCurrentDate) {
|
|
|
19
20
|
const date = options.currentDate();
|
|
20
21
|
const firstDayOfWeek = options.firstDayOfWeek();
|
|
21
22
|
switch (view) {
|
|
22
|
-
case
|
|
23
|
-
case
|
|
23
|
+
case _enums.CALENDAR_VIEW.MONTH:
|
|
24
|
+
case _enums.CALENDAR_VIEW.AGENDA:
|
|
24
25
|
{
|
|
25
26
|
const monthStart = (0, _date.startOfMonth)(date);
|
|
26
27
|
const gridStart = (0, _date.startOfWeekFixed)(monthStart, firstDayOfWeek);
|
|
@@ -30,12 +31,12 @@ function useCalendar(options, setView, setCurrentDate) {
|
|
|
30
31
|
end: gridEnd
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
|
-
case
|
|
34
|
+
case _enums.CALENDAR_VIEW.WEEK:
|
|
34
35
|
return {
|
|
35
36
|
start: (0, _date.startOfWeekFixed)(date, firstDayOfWeek),
|
|
36
37
|
end: (0, _date.endOfWeekFixed)(date, firstDayOfWeek)
|
|
37
38
|
};
|
|
38
|
-
case
|
|
39
|
+
case _enums.CALENDAR_VIEW.DAY:
|
|
39
40
|
default:
|
|
40
41
|
{
|
|
41
42
|
const start = (0, _date.startOfDay)(date);
|
|
@@ -69,10 +70,10 @@ function useCalendar(options, setView, setCurrentDate) {
|
|
|
69
70
|
const view = options.view();
|
|
70
71
|
const current = options.currentDate();
|
|
71
72
|
let next;
|
|
72
|
-
if (direction ===
|
|
73
|
+
if (direction === _enums.CALENDAR_NAVIGATE.TODAY) {
|
|
73
74
|
next = /* @__PURE__ */new Date();
|
|
74
75
|
} else {
|
|
75
|
-
const step = direction ===
|
|
76
|
+
const step = direction === _enums.CALENDAR_NAVIGATE.NEXT ? 1 : -1;
|
|
76
77
|
next = NAVIGATION_STEP[view](current, step);
|
|
77
78
|
}
|
|
78
79
|
const min = options.minDate?.() ?? null;
|
|
@@ -1,32 +1,8 @@
|
|
|
1
1
|
import { type ComputedRef } from 'vue';
|
|
2
|
-
import type { IEvent, IUseCalendarOptions } from '../../interfaces';
|
|
2
|
+
import type { ICalendarAgendaEntry, ICalendarTimeSlot, IEvent, IUseCalendarOptions } from '../../interfaces';
|
|
3
3
|
import type { TCalendarNavigate, TCalendarView } from '../../types';
|
|
4
4
|
import { addDays, addMonths, addWeeks, diffMinutes, endOfMonth, isSameDay, isSameMonth, startOfDay, startOfMonth, toDate } from '../../utils/Calendar/date.util';
|
|
5
|
-
|
|
6
|
-
* Time-slot descriptor returned by `buildDayGrid` / `buildWeekGrid`.
|
|
7
|
-
*
|
|
8
|
-
* The grid is **not** event-aware — events are positioned absolutely
|
|
9
|
-
* on top of the timeline using `diffMinutes(dayStart, event.start)`.
|
|
10
|
-
* Decoupling the grid from the events lets us re-use the grid output
|
|
11
|
-
* for the drag-select overlay without re-computing.
|
|
12
|
-
*/
|
|
13
|
-
export interface ICalendarTimeSlot {
|
|
14
|
-
/** Top-of-slot Date (e.g. 09:30). */
|
|
15
|
-
date: Date;
|
|
16
|
-
/** Slot duration in minutes (mirror of `options.slotDuration`). */
|
|
17
|
-
durationMin: number;
|
|
18
|
-
/** True when the slot's hour mark falls on the hour. */
|
|
19
|
-
isHourMark: boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Agenda entry — one per day that has at least one event in the
|
|
23
|
-
* visible window. Agenda view skips empty days; the `#empty` slot
|
|
24
|
-
* fires when *no* event is in range.
|
|
25
|
-
*/
|
|
26
|
-
export interface ICalendarAgendaEntry {
|
|
27
|
-
date: Date;
|
|
28
|
-
events: Array<IEvent>;
|
|
29
|
-
}
|
|
5
|
+
export type { ICalendarAgendaEntry, ICalendarTimeSlot } from '../../interfaces';
|
|
30
6
|
/**
|
|
31
7
|
* Public composable. Stateless over the inputs (every getter is a
|
|
32
8
|
* `() => …` thunk), so `<OrigamCalendar>` can drive it from props or
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { computed } from "vue";
|
|
2
|
+
import { CALENDAR_NAVIGATE, CALENDAR_VIEW } from "../../enums/index.js";
|
|
2
3
|
import {
|
|
3
4
|
addDays,
|
|
4
5
|
addMonths,
|
|
@@ -18,10 +19,10 @@ import {
|
|
|
18
19
|
} from "../../utils/Calendar/date.util.js";
|
|
19
20
|
import { expandRecurrence } from "../../utils/Calendar/rrule.util.js";
|
|
20
21
|
const NAVIGATION_STEP = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
[CALENDAR_VIEW.MONTH]: (date, direction) => addMonths(date, direction),
|
|
23
|
+
[CALENDAR_VIEW.WEEK]: (date, direction) => addWeeks(date, direction),
|
|
24
|
+
[CALENDAR_VIEW.DAY]: (date, direction) => addDays(date, direction),
|
|
25
|
+
[CALENDAR_VIEW.AGENDA]: (date, direction) => addMonths(date, direction)
|
|
25
26
|
};
|
|
26
27
|
export function useCalendar(options, setView, setCurrentDate) {
|
|
27
28
|
const visibleDateRange = computed(() => {
|
|
@@ -29,19 +30,19 @@ export function useCalendar(options, setView, setCurrentDate) {
|
|
|
29
30
|
const date = options.currentDate();
|
|
30
31
|
const firstDayOfWeek = options.firstDayOfWeek();
|
|
31
32
|
switch (view) {
|
|
32
|
-
case
|
|
33
|
-
case
|
|
33
|
+
case CALENDAR_VIEW.MONTH:
|
|
34
|
+
case CALENDAR_VIEW.AGENDA: {
|
|
34
35
|
const monthStart = startOfMonth(date);
|
|
35
36
|
const gridStart = startOfWeekFixed(monthStart, firstDayOfWeek);
|
|
36
37
|
const gridEnd = addDays(gridStart, 6 * 7 - 1);
|
|
37
38
|
return { start: gridStart, end: gridEnd };
|
|
38
39
|
}
|
|
39
|
-
case
|
|
40
|
+
case CALENDAR_VIEW.WEEK:
|
|
40
41
|
return {
|
|
41
42
|
start: startOfWeekFixed(date, firstDayOfWeek),
|
|
42
43
|
end: endOfWeekFixed(date, firstDayOfWeek)
|
|
43
44
|
};
|
|
44
|
-
case
|
|
45
|
+
case CALENDAR_VIEW.DAY:
|
|
45
46
|
default: {
|
|
46
47
|
const start = startOfDay(date);
|
|
47
48
|
const end = new Date(start);
|
|
@@ -71,10 +72,10 @@ export function useCalendar(options, setView, setCurrentDate) {
|
|
|
71
72
|
const view = options.view();
|
|
72
73
|
const current = options.currentDate();
|
|
73
74
|
let next;
|
|
74
|
-
if (direction ===
|
|
75
|
+
if (direction === CALENDAR_NAVIGATE.TODAY) {
|
|
75
76
|
next = /* @__PURE__ */ new Date();
|
|
76
77
|
} else {
|
|
77
|
-
const step = direction ===
|
|
78
|
+
const step = direction === CALENDAR_NAVIGATE.NEXT ? 1 : -1;
|
|
78
79
|
next = NAVIGATION_STEP[view](current, step);
|
|
79
80
|
}
|
|
80
81
|
const min = options.minDate?.() ?? null;
|
|
@@ -1,30 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import type { IUseCommandReturn } from '../../interfaces';
|
|
2
|
+
export type { IUseCommandReturn } from '../../interfaces';
|
|
3
3
|
/*********************************************************
|
|
4
4
|
* useCommand
|
|
5
5
|
********************************************************/
|
|
6
|
-
export interface IUseCommandReturn {
|
|
7
|
-
/**
|
|
8
|
-
* Register a command. Returns an `unregister()` closure so callers
|
|
9
|
-
* can drop the entry imperatively. When called from inside a Vue
|
|
10
|
-
* effect scope, the entry is auto-unregistered on scope dispose
|
|
11
|
-
* (component unmount, route leave, …) via `tryOnScopeDispose`.
|
|
12
|
-
*/
|
|
13
|
-
register: (cmd: ICommand) => () => void;
|
|
14
|
-
/** Drop the entry with the matching `id`. No-op if unknown. */
|
|
15
|
-
unregister: (id: string) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Reactive read-only view of every registered command, deduplicated
|
|
18
|
-
* by id.
|
|
19
|
-
*/
|
|
20
|
-
commands: ComputedRef<ReadonlyArray<ICommand>>;
|
|
21
|
-
/** Open the global palette singleton. */
|
|
22
|
-
open: () => void;
|
|
23
|
-
/** Close the global palette singleton. */
|
|
24
|
-
close: () => void;
|
|
25
|
-
/** Reactive open/close state of the global palette singleton. */
|
|
26
|
-
isOpen: Ref<boolean>;
|
|
27
|
-
}
|
|
28
6
|
export declare function useCommand(): IUseCommandReturn;
|
|
29
7
|
/*********************************************************
|
|
30
8
|
* Test helper
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
2
|
import type { IDefault } from '../../interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* `kebab-case` → `camelCase`. Used to recognise prop names that were passed
|
|
5
|
+
* as kebab-case attributes on the parent vnode.
|
|
6
|
+
*
|
|
7
|
+
* Exported (not just used internally by `usePassedProps`/`useDefaults`) so
|
|
8
|
+
* `theme-props-resolver.composable.ts` can match `vnode.props` keys against
|
|
9
|
+
* declared prop names with the EXACT same rule — see ADR-005. Two independent
|
|
10
|
+
* implementations of this matching rule is exactly the kind of drift the
|
|
11
|
+
* "reuse before writing" policy exists to prevent.
|
|
12
|
+
*/
|
|
13
|
+
export declare function camelize(str: string): string;
|
|
3
14
|
/**
|
|
4
15
|
* Was-prop-passed factory.
|
|
5
16
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, inject, provide, ref } from "vue";
|
|
2
2
|
import { ORIGAM_DEFAULTS_KEY } from "../../consts/index.js";
|
|
3
3
|
import { getCurrentInstance, getCurrentInstanceName, mergeDeep } from "../../utils/index.js";
|
|
4
|
-
function camelize(str) {
|
|
4
|
+
export function camelize(str) {
|
|
5
5
|
return str.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
6
6
|
}
|
|
7
7
|
export function usePassedProps(_props, instanceLabel = "usePassedProps") {
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useLoader = useLoader;
|
|
7
7
|
var _vue = require("vue");
|
|
8
|
+
var _enums = require("../../enums/index.cjs");
|
|
8
9
|
var _utils = require("../../utils/index.cjs");
|
|
9
|
-
function useLoader(props, defaultKind =
|
|
10
|
+
function useLoader(props, defaultKind = _enums.LOADER_KIND.CIRCULAR, name = (0, _utils.getCurrentInstanceName)()) {
|
|
10
11
|
const isLoading = (0, _vue.computed)(() => {
|
|
11
12
|
const v = props.loading;
|
|
12
13
|
if (v === false || v === void 0 || v === null) return false;
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
import { type ComputedRef } from 'vue';
|
|
2
|
-
import type { ILoaderProps } from '../../interfaces';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
* Resolved loader state — what each consumer component reads to decide
|
|
6
|
-
* which renderer to mount and with which props.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* `overrides` is intentionally typed as `Omit<TLoaderConfig, 'type'>`. After
|
|
10
|
-
* the discriminant `type` is destructured at runtime, TypeScript can no
|
|
11
|
-
* longer narrow the union. Consumer components must access optional fields
|
|
12
|
-
* defensively (e.g. `(overrides as { modelValue?: number }).modelValue`).
|
|
13
|
-
*/
|
|
14
|
-
export interface IResolvedLoader {
|
|
15
|
-
/** Whether ANY loading state is active. */
|
|
16
|
-
isActive: boolean;
|
|
17
|
-
/** Which renderer to use ('line' / 'circular' / 'skeleton'). */
|
|
18
|
-
kind: TLoaderKind;
|
|
19
|
-
/** Determinate progress value (0..100) when the user passed a number; else undefined. */
|
|
20
|
-
modelValue: number | undefined;
|
|
21
|
-
/** Indeterminate when `true`, determinate when a number was passed. */
|
|
22
|
-
indeterminate: boolean;
|
|
23
|
-
/** Per-kind override props the consumer should v-bind on the renderer. */
|
|
24
|
-
overrides: Omit<TLoaderConfig, 'type'>;
|
|
25
|
-
}
|
|
2
|
+
import type { ILoaderProps, IResolvedLoader } from '../../interfaces';
|
|
3
|
+
import type { TLoaderKind } from '../../types';
|
|
4
|
+
export type { IResolvedLoader } from '../../interfaces';
|
|
26
5
|
/**
|
|
27
6
|
* Resolve the polymorphic `loading` prop into a normalised descriptor.
|
|
28
7
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { computed } from "vue";
|
|
2
|
+
import { LOADER_KIND } from "../../enums/index.js";
|
|
2
3
|
import { getCurrentInstanceName } from "../../utils/index.js";
|
|
3
|
-
export function useLoader(props, defaultKind =
|
|
4
|
+
export function useLoader(props, defaultKind = LOADER_KIND.CIRCULAR, name = getCurrentInstanceName()) {
|
|
4
5
|
const isLoading = computed(() => {
|
|
5
6
|
const v = props.loading;
|
|
6
7
|
if (v === false || v === void 0 || v === null) return false;
|
|
@@ -7,9 +7,8 @@ exports.useMargin = useMargin;
|
|
|
7
7
|
var _vue = require("vue");
|
|
8
8
|
var _consts = require("../../consts/index.cjs");
|
|
9
9
|
var _utils = require("../../utils/index.cjs");
|
|
10
|
-
const UTILITY_MARGIN_SCALE = /* @__PURE__ */new Set(["0", "1", "2", "3", "4", "5", "6", "8", "10", "12"]);
|
|
11
10
|
function isUtilityMarginScale(value) {
|
|
12
|
-
return typeof value === "string" &&
|
|
11
|
+
return typeof value === "string" && _consts.SPACING_SCALE_STEPS.includes(value);
|
|
13
12
|
}
|
|
14
13
|
function useMargin(props, name = (0, _utils.getCurrentInstanceName)()) {
|
|
15
14
|
const marginClasses = (0, _vue.computed)(() => {
|
|
@@ -26,18 +25,33 @@ function useMargin(props, name = (0, _utils.getCurrentInstanceName)()) {
|
|
|
26
25
|
const marginStyles = (0, _vue.computed)(() => {
|
|
27
26
|
const margin = props.margin;
|
|
28
27
|
const styles = [];
|
|
29
|
-
if (isUtilityMarginScale(margin))
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
if (!isUtilityMarginScale(margin)) {
|
|
29
|
+
if (typeof margin === "string" && margin !== "") {
|
|
30
|
+
const match = _consts.MARGIN_REGEX.exec(margin)?.groups;
|
|
31
|
+
if (match) {
|
|
32
|
+
Object.keys(match).forEach(key => {
|
|
33
|
+
const values = String(match[key]).split(" ");
|
|
34
|
+
styles.push(...(0, _utils.formatMarginStylesVar)(values));
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
} else if (typeof margin === "number") {
|
|
38
|
+
styles.push(`margin: ${(0, _utils.convertToUnit)(margin)}`);
|
|
37
39
|
}
|
|
38
|
-
} else if (typeof margin === "number") {
|
|
39
|
-
styles.push(`margin: ${(0, _utils.convertToUnit)(margin)}`);
|
|
40
40
|
}
|
|
41
|
+
_consts.MARGIN_LOGICAL_AXIS_MAP.forEach(({
|
|
42
|
+
axis,
|
|
43
|
+
prop
|
|
44
|
+
}) => {
|
|
45
|
+
const resolved = (0, _utils.resolveSpacingValue)(props[prop]);
|
|
46
|
+
if (resolved) styles.push(`margin-${axis}: ${resolved}`);
|
|
47
|
+
});
|
|
48
|
+
_consts.MARGIN_POSITION_MAP.forEach(({
|
|
49
|
+
side,
|
|
50
|
+
prop
|
|
51
|
+
}) => {
|
|
52
|
+
const resolved = (0, _utils.resolveSpacingValue)(props[prop]);
|
|
53
|
+
if (resolved) styles.push(`margin-${side}: ${resolved}`);
|
|
54
|
+
});
|
|
41
55
|
return styles;
|
|
42
56
|
});
|
|
43
57
|
return {
|