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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { TBracketBorder, TBracketColor, TBracketElevation, TBracketRounded } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Prop bag consumed by `bracketSurfaceVars` to paint one match card.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors the `IBgColorProps` / `IRoundedProps` / `IElevationProps` /
|
|
6
|
+
* `IBorderProps` surfaces that `IBracketProps` and
|
|
7
|
+
* `IBracketMatchProps` already extend — but it is a SEPARATE shape on
|
|
8
|
+
* purpose, and does not `extends` them.
|
|
9
|
+
*
|
|
10
|
+
* The reason is the target element. `IBorderProps.border` accepts a
|
|
11
|
+
* `TDirectionBoth[]` edge selector, which `useBorder` resolves onto the
|
|
12
|
+
* component ROOT. The bracket resolves its surface props onto the match
|
|
13
|
+
* CARD instead (each card is what the user sees shaped and bordered),
|
|
14
|
+
* through `--origam-bracket-match---*` custom properties, and a custom
|
|
15
|
+
* property cannot express "these edges only" the way `useBorder`'s
|
|
16
|
+
* class output can. Extending `IBorderProps` here would therefore
|
|
17
|
+
* declare a prop form this layer silently drops — the exact
|
|
18
|
+
* typed-but-inert failure the surrounding audit exists to remove.
|
|
19
|
+
*
|
|
20
|
+
* Every property type is nonetheless DERIVED from the matching Commons
|
|
21
|
+
* vocabulary (see the `TBracket*` aliases in
|
|
22
|
+
* `types/Bracket/bracket.type.ts`), so the two
|
|
23
|
+
* cannot drift on the value grammar they share.
|
|
24
|
+
*/
|
|
25
|
+
export interface IBracketSurfaceInput {
|
|
26
|
+
bgColor?: TBracketColor;
|
|
27
|
+
rounded?: TBracketRounded;
|
|
28
|
+
elevation?: TBracketElevation;
|
|
29
|
+
border?: TBracketBorder;
|
|
30
|
+
borderColor?: TBracketColor;
|
|
31
|
+
borderStyle?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Per-corner radius and per-side border overrides.
|
|
34
|
+
*
|
|
35
|
+
* The bracket resolves `rounded` / `border` onto the MATCH CARD rather
|
|
36
|
+
* than its own root (each card is what the user sees shaped and
|
|
37
|
+
* bordered), so the directional rungs of `IRoundedProps` /
|
|
38
|
+
* `IBorderProps` have to follow the same target — otherwise
|
|
39
|
+
* `roundedTopLeft` is typed, editable in Histoire, and inert, which is
|
|
40
|
+
* exactly the class of bug this surface is being audited for.
|
|
41
|
+
*/
|
|
42
|
+
roundedTopLeft?: TBracketRounded;
|
|
43
|
+
roundedTopRight?: TBracketRounded;
|
|
44
|
+
roundedBottomLeft?: TBracketRounded;
|
|
45
|
+
roundedBottomRight?: TBracketRounded;
|
|
46
|
+
borderTop?: TBracketBorder;
|
|
47
|
+
borderRight?: TBracketBorder;
|
|
48
|
+
borderBottom?: TBracketBorder;
|
|
49
|
+
borderLeft?: TBracketBorder;
|
|
50
|
+
borderBlock?: TBracketBorder;
|
|
51
|
+
borderInline?: TBracketBorder;
|
|
52
|
+
borderTopColor?: TBracketColor;
|
|
53
|
+
borderRightColor?: TBracketColor;
|
|
54
|
+
borderBottomColor?: TBracketColor;
|
|
55
|
+
borderLeftColor?: TBracketColor;
|
|
56
|
+
}
|
|
File without changes
|
|
@@ -162,3 +162,28 @@ export interface IUseCalendarOptions {
|
|
|
162
162
|
maxDate?: () => Date | null;
|
|
163
163
|
locale?: () => string;
|
|
164
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* Time-slot descriptor returned by `buildDayGrid` / `buildWeekGrid`.
|
|
167
|
+
*
|
|
168
|
+
* The grid is **not** event-aware — events are positioned absolutely
|
|
169
|
+
* on top of the timeline using `diffMinutes(dayStart, event.start)`.
|
|
170
|
+
* Decoupling the grid from the events lets us re-use the grid output
|
|
171
|
+
* for the drag-select overlay without re-computing.
|
|
172
|
+
*/
|
|
173
|
+
export interface ICalendarTimeSlot {
|
|
174
|
+
/** Top-of-slot Date (e.g. 09:30). */
|
|
175
|
+
date: Date;
|
|
176
|
+
/** Slot duration in minutes (mirror of `options.slotDuration`). */
|
|
177
|
+
durationMin: number;
|
|
178
|
+
/** True when the slot's hour mark falls on the hour. */
|
|
179
|
+
isHourMark: boolean;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Agenda entry — one per day that has at least one event in the
|
|
183
|
+
* visible window. Agenda view skips empty days; the `#empty` slot
|
|
184
|
+
* fires when *no* event is in range.
|
|
185
|
+
*/
|
|
186
|
+
export interface ICalendarAgendaEntry {
|
|
187
|
+
date: Date;
|
|
188
|
+
events: Array<IEvent>;
|
|
189
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalized form of the RRULE subset understood by
|
|
3
|
+
* `src/utils/Calendar/rrule.util.ts`.
|
|
4
|
+
*
|
|
5
|
+
* Only the directives the parser actually honours are modelled here —
|
|
6
|
+
* `FREQ`, `INTERVAL`, `COUNT`, `UNTIL` and `BYDAY`. Everything else in
|
|
7
|
+
* RFC 5545 is dropped at parse time, so a value of this shape is a
|
|
8
|
+
* complete description of what the expander will do.
|
|
9
|
+
*
|
|
10
|
+
* The name is `ICalendarParsedRule` rather than a bare `IParsedRule`
|
|
11
|
+
* because `src/interfaces/index.ts` is a flat `export *` barrel — an
|
|
12
|
+
* unqualified name there reads as a repo-wide concept and is a
|
|
13
|
+
* collision waiting to happen.
|
|
14
|
+
*/
|
|
15
|
+
export interface ICalendarParsedRule {
|
|
16
|
+
/** Recurrence frequency. The parser rejects any other `FREQ` value. */
|
|
17
|
+
freq: 'DAILY' | 'WEEKLY' | 'MONTHLY';
|
|
18
|
+
/** `INTERVAL=N`, defaulted to 1 when absent. */
|
|
19
|
+
interval: number;
|
|
20
|
+
/** `COUNT=N` occurrence cap, or `null` when unbounded. */
|
|
21
|
+
count: number | null;
|
|
22
|
+
/** `UNTIL=` cut-off date, or `null` when unbounded. */
|
|
23
|
+
until: Date | null;
|
|
24
|
+
/** `BYDAY=` as JS day indices (0 = Sunday). `WEEKLY` only; else `null`. */
|
|
25
|
+
byDay: Array<number> | null;
|
|
26
|
+
}
|
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IChartBaseEmits, IChartBaseProps, IChartBaseSlots, IChartPoint, IChartSeries } from '../../interfaces';
|
|
2
|
-
import type { TIntent } from '../../types';
|
|
2
|
+
import type { TChartSunburstLabelMode, TIntent } from '../../types';
|
|
3
|
+
export type { TChartSunburstLabelMode } from '../../types/Chart/chart-sunburst.type';
|
|
3
4
|
/**
|
|
4
5
|
* A single datum node in the sunburst tree.
|
|
5
6
|
* Internal nodes may omit `value` — it will be computed from children.
|
|
@@ -17,13 +18,6 @@ export interface IChartSunburstDatum {
|
|
|
17
18
|
/** Child nodes — forms the next ring outward. */
|
|
18
19
|
children?: Array<IChartSunburstDatum>;
|
|
19
20
|
}
|
|
20
|
-
/**
|
|
21
|
-
* How the label for a node is rendered.
|
|
22
|
-
* - `'inline'` — centred horizontally inside the arc (wide arcs).
|
|
23
|
-
* - `'rotated'` — rotated tangentially along the arc midpoint (narrow arcs).
|
|
24
|
-
* - `'leader'` — placed outside the chart with a leader line (very narrow arcs).
|
|
25
|
-
*/
|
|
26
|
-
export type TChartSunburstLabelMode = 'inline' | 'rotated' | 'leader';
|
|
27
21
|
/**
|
|
28
22
|
* Fully-resolved node produced by the geometry engine. Every field is
|
|
29
23
|
* definite — defaults / inherited values have been applied.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ICommand } from './command.interface';
|
|
2
|
-
import type { IFuzzyMatchResult } from '../../utils/CommandPalette/fuzzy-match.util';
|
|
1
|
+
import type { ICommand, IFuzzyMatchResult } from './command.interface';
|
|
3
2
|
/**
|
|
4
3
|
* Internal implementation detail of `<OrigamCommandPalette>`'s grouping
|
|
5
4
|
* computation — NOT part of the component's public props/emits/slots
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
1
2
|
import type { TIcon } from '../../types';
|
|
2
3
|
/**
|
|
3
4
|
* A single command/action exposed by `OrigamCommandPalette`.
|
|
@@ -49,3 +50,49 @@ export interface ICommand {
|
|
|
49
50
|
/** Disabled commands stay visible but cannot be selected. */
|
|
50
51
|
disabled?: boolean;
|
|
51
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Backing store of `useCommand`'s process-wide singleton registry.
|
|
55
|
+
*
|
|
56
|
+
* Module-scoped rather than provide/inject on purpose: commands are
|
|
57
|
+
* spawned from anywhere — feature code, plugins, background services —
|
|
58
|
+
* without coupling to a Vue tree.
|
|
59
|
+
*/
|
|
60
|
+
export interface ICommandRegistry {
|
|
61
|
+
/** Live array of registered commands. Dedup by id is enforced at write time. */
|
|
62
|
+
items: Ref<Array<ICommand>>;
|
|
63
|
+
/** Whether the global palette singleton is currently open. */
|
|
64
|
+
isOpen: Ref<boolean>;
|
|
65
|
+
}
|
|
66
|
+
/** Public API returned by `useCommand`. */
|
|
67
|
+
export interface IUseCommandReturn {
|
|
68
|
+
/**
|
|
69
|
+
* Register a command. Returns an `unregister()` closure so callers
|
|
70
|
+
* can drop the entry imperatively. When called from inside a Vue
|
|
71
|
+
* effect scope, the entry is auto-unregistered on scope dispose
|
|
72
|
+
* (component unmount, route leave, …) via `tryOnScopeDispose`.
|
|
73
|
+
*/
|
|
74
|
+
register: (cmd: ICommand) => () => void;
|
|
75
|
+
/** Drop the entry with the matching `id`. No-op if unknown. */
|
|
76
|
+
unregister: (id: string) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Reactive read-only view of every registered command, deduplicated
|
|
79
|
+
* by id.
|
|
80
|
+
*/
|
|
81
|
+
commands: ComputedRef<ReadonlyArray<ICommand>>;
|
|
82
|
+
/** Open the global palette singleton. */
|
|
83
|
+
open: () => void;
|
|
84
|
+
/** Close the global palette singleton. */
|
|
85
|
+
close: () => void;
|
|
86
|
+
/** Reactive open/close state of the global palette singleton. */
|
|
87
|
+
isOpen: Ref<boolean>;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Output of `fuzzyMatch` — the matched item carries its score so callers
|
|
91
|
+
* can short-circuit a re-sort on cached input.
|
|
92
|
+
*/
|
|
93
|
+
export interface IFuzzyMatchResult<T> {
|
|
94
|
+
/** Original item passed in. */
|
|
95
|
+
item: T;
|
|
96
|
+
/** Higher = better fit. `0` is the floor for a successful match. */
|
|
97
|
+
score: number;
|
|
98
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IColorProps, ICommonsComponentProps, ITagProps } from '../../interfaces';
|
|
2
|
-
import type { TLoadingValue } from '../../types';
|
|
2
|
+
import type { TLoaderConfig, TLoaderKind, TLoadingValue } from '../../types';
|
|
3
3
|
export interface ILoaderProps extends ICommonsComponentProps, ITagProps, IColorProps {
|
|
4
4
|
loading?: TLoadingValue;
|
|
5
5
|
loadingText?: string;
|
|
@@ -9,3 +9,25 @@ export interface ILoaderSlots {
|
|
|
9
9
|
loader?: () => any;
|
|
10
10
|
default?: () => any;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Resolved loader state — what each consumer component reads to decide
|
|
14
|
+
* which renderer to mount and with which props.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* `overrides` is intentionally typed as `Omit<TLoaderConfig, 'type'>`. After
|
|
18
|
+
* the discriminant `type` is destructured at runtime, TypeScript can no
|
|
19
|
+
* longer narrow the union. Consumer components must access optional fields
|
|
20
|
+
* defensively (e.g. `(overrides as { modelValue?: number }).modelValue`).
|
|
21
|
+
*/
|
|
22
|
+
export interface IResolvedLoader {
|
|
23
|
+
/** Whether ANY loading state is active. */
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
/** Which renderer to use ('line' / 'circular' / 'skeleton'). */
|
|
26
|
+
kind: TLoaderKind;
|
|
27
|
+
/** Determinate progress value (0..100) when the user passed a number; else undefined. */
|
|
28
|
+
modelValue: number | undefined;
|
|
29
|
+
/** Indeterminate when `true`, determinate when a number was passed. */
|
|
30
|
+
indeterminate: boolean;
|
|
31
|
+
/** Per-kind override props the consumer should v-bind on the renderer. */
|
|
32
|
+
overrides: Omit<TLoaderConfig, 'type'>;
|
|
33
|
+
}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Outer-spacing surface.
|
|
3
|
+
*
|
|
4
|
+
* Precedence — SPECIFIC beats GLOBAL, same grammar as `IPaddingProps` /
|
|
5
|
+
* `IBorderProps` / `IRoundedProps`:
|
|
6
|
+
*
|
|
7
|
+
* 1. `margin` — global shorthand
|
|
8
|
+
* 2. `marginBlock` / `marginInline` — logical axis
|
|
9
|
+
* 3. `marginTop` / `marginRight` / `marginBottom` / `marginLeft`
|
|
10
|
+
*
|
|
11
|
+
* Each rung only overrides the edge(s) it targets. See
|
|
12
|
+
* `resolveSpacingValue` for the accepted value forms (the directionals
|
|
13
|
+
* also take the `auto` keyword), and
|
|
14
|
+
* `packages/docs/guide/spacing-and-corners.md` for the full reference.
|
|
15
|
+
*
|
|
16
|
+
* ⚠️ The 4-value `margin` shorthand distributes as
|
|
17
|
+
* **Haut/Gauche/Bas/Droite**, NOT the CSS clockwise order (issue #216).
|
|
18
|
+
* The per-side props exist so you never have to know that.
|
|
19
|
+
*/
|
|
1
20
|
export interface IMarginProps {
|
|
21
|
+
/**
|
|
22
|
+
* Global shorthand. `16` → `16px`; `"4"` → the `--origam-space---4`
|
|
23
|
+
* design rung; `"8px 16px"` → block / inline; `true` → the legacy
|
|
24
|
+
* `--marged` class.
|
|
25
|
+
*/
|
|
2
26
|
margin?: boolean | number | string;
|
|
27
|
+
/** Overrides `margin` and `marginBlock` for the top edge. */
|
|
3
28
|
marginTop?: boolean | number | string;
|
|
29
|
+
/** Overrides `margin` and `marginInline` for the left edge. */
|
|
4
30
|
marginLeft?: boolean | number | string;
|
|
31
|
+
/** Overrides `margin` and `marginBlock` for the bottom edge. */
|
|
5
32
|
marginBottom?: boolean | number | string;
|
|
33
|
+
/** Overrides `margin` and `marginInline` for the right edge. */
|
|
6
34
|
marginRight?: boolean | number | string;
|
|
35
|
+
/** Top + bottom. Overrides `margin`; beaten by `marginTop` / `marginBottom`. */
|
|
7
36
|
marginBlock?: boolean | number | string;
|
|
37
|
+
/** Left + right. Overrides `margin`; beaten by `marginLeft` / `marginRight`. */
|
|
8
38
|
marginInline?: boolean | number | string;
|
|
9
39
|
}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inner-spacing surface.
|
|
3
|
+
*
|
|
4
|
+
* Precedence — SPECIFIC beats GLOBAL, same grammar as `IMarginProps` /
|
|
5
|
+
* `IBorderProps` / `IRoundedProps`:
|
|
6
|
+
*
|
|
7
|
+
* 1. `padding` — global shorthand
|
|
8
|
+
* 2. `paddingBlock` / `paddingInline` — logical axis
|
|
9
|
+
* 3. `paddingTop` / `paddingRight` / `paddingBottom` / `paddingLeft`
|
|
10
|
+
*
|
|
11
|
+
* Each rung only overrides the edge(s) it targets. See
|
|
12
|
+
* `resolveSpacingValue` for the accepted value forms, and
|
|
13
|
+
* `packages/docs/guide/spacing-and-corners.md` for the full reference.
|
|
14
|
+
*
|
|
15
|
+
* ⚠️ The 4-value `padding` shorthand distributes as
|
|
16
|
+
* **Haut/Gauche/Bas/Droite**, NOT the CSS clockwise order (issue #216).
|
|
17
|
+
* The per-side props exist so you never have to know that.
|
|
18
|
+
*/
|
|
1
19
|
export interface IPaddingProps {
|
|
20
|
+
/**
|
|
21
|
+
* Global shorthand. `16` → `16px`; `"4"` → the `--origam-space---4`
|
|
22
|
+
* design rung; `"8px 16px"` → block / inline; `true` → the legacy
|
|
23
|
+
* `--padded` class.
|
|
24
|
+
*/
|
|
2
25
|
padding?: boolean | number | string;
|
|
26
|
+
/** Overrides `padding` and `paddingBlock` for the top edge. */
|
|
3
27
|
paddingTop?: boolean | number | string;
|
|
28
|
+
/** Overrides `padding` and `paddingInline` for the left edge. */
|
|
4
29
|
paddingLeft?: boolean | number | string;
|
|
30
|
+
/** Overrides `padding` and `paddingBlock` for the bottom edge. */
|
|
5
31
|
paddingBottom?: boolean | number | string;
|
|
32
|
+
/** Overrides `padding` and `paddingInline` for the right edge. */
|
|
6
33
|
paddingRight?: boolean | number | string;
|
|
34
|
+
/** Top + bottom. Overrides `padding`; beaten by `paddingTop` / `paddingBottom`. */
|
|
7
35
|
paddingBlock?: boolean | number | string;
|
|
36
|
+
/** Left + right. Overrides `padding`; beaten by `paddingLeft` / `paddingRight`. */
|
|
8
37
|
paddingInline?: boolean | number | string;
|
|
9
38
|
}
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import type { TRounded } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Corner-radius surface.
|
|
4
|
+
*
|
|
5
|
+
* Precedence — SPECIFIC beats GLOBAL, same grammar as `IPaddingProps` /
|
|
6
|
+
* `IMarginProps` / `IBorderProps`, with two rungs instead of three (there
|
|
7
|
+
* is no logical-axis form for corners):
|
|
8
|
+
*
|
|
9
|
+
* 1. `rounded` — global shorthand
|
|
10
|
+
* 2. `roundedTopLeft` / `roundedTopRight` /
|
|
11
|
+
* `roundedBottomLeft` / `roundedBottomRight`
|
|
12
|
+
*
|
|
13
|
+
* A corner prop only overrides the corner it targets — `rounded="lg"` plus
|
|
14
|
+
* `roundedTopLeft="0px"` flattens one corner and leaves the other three at
|
|
15
|
+
* `lg`. See `resolveRoundedCornerValue` for the accepted value forms and
|
|
16
|
+
* `packages/docs/guide/spacing-and-corners.md` for the full reference.
|
|
17
|
+
*/
|
|
2
18
|
export interface IRoundedProps {
|
|
3
19
|
/**
|
|
4
20
|
* Corner-radius selector. Three modes:
|
|
@@ -12,8 +28,16 @@ export interface IRoundedProps {
|
|
|
12
28
|
* `border-radius` declarations via `useRounded.roundedStyles`.
|
|
13
29
|
*/
|
|
14
30
|
rounded?: boolean | number | string | TRounded | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Top-right corner only. Takes the same vocabulary as `rounded`
|
|
33
|
+
* (`8`, `'8px'`, `'md'`, `'large'`, `'var(…)'`), minus `shaped` /
|
|
34
|
+
* `shaped-invert` which are asymmetric by definition.
|
|
35
|
+
*/
|
|
15
36
|
roundedTopRight?: boolean | number | string;
|
|
37
|
+
/** Top-left corner only. Same vocabulary as `roundedTopRight`. */
|
|
16
38
|
roundedTopLeft?: boolean | number | string;
|
|
39
|
+
/** Bottom-left corner only. Same vocabulary as `roundedTopRight`. */
|
|
17
40
|
roundedBottomLeft?: boolean | number | string;
|
|
41
|
+
/** Bottom-right corner only. Same vocabulary as `roundedTopRight`. */
|
|
18
42
|
roundedBottomRight?: boolean | number | string;
|
|
19
43
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import type { TCssFeatureName, TCssSupportMap } from '../../types';
|
|
3
|
+
/** Public API returned by `useCssSupport`. */
|
|
4
|
+
export interface IUseCssSupport {
|
|
5
|
+
/**
|
|
6
|
+
* Reactive map of feature → `boolean`. Computed once on first browser-
|
|
7
|
+
* side call; subsequent calls share the same frozen snapshot.
|
|
8
|
+
*/
|
|
9
|
+
css: Readonly<Ref<TCssSupportMap>>;
|
|
10
|
+
/**
|
|
11
|
+
* Free-form query support. Pass any string accepted by `CSS.supports()`.
|
|
12
|
+
* Result is cached per-query.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* supports('display: grid') // true on modern browsers
|
|
16
|
+
* supports('selector(:has(*))') // selector query
|
|
17
|
+
* supports('width: clamp(1px, 50%, 100px)') // math function
|
|
18
|
+
*/
|
|
19
|
+
supports: (query: string) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* `true` if at least ONE of the queries is supported.
|
|
22
|
+
*/
|
|
23
|
+
supportsAny: (...queries: string[]) => boolean;
|
|
24
|
+
/**
|
|
25
|
+
* `true` if EVERY query is supported.
|
|
26
|
+
*/
|
|
27
|
+
supportsAll: (...queries: string[]) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Reactive `ComputedRef<boolean>` for a single named feature. Useful in
|
|
30
|
+
* templates: `<div v-if="hasGrid">…`.
|
|
31
|
+
*/
|
|
32
|
+
has: (feature: TCssFeatureName) => ComputedRef<boolean>;
|
|
33
|
+
}
|
|
34
|
+
/** Options accepted by `useCssSupportClient`. */
|
|
35
|
+
export interface IUseCssSupportClientOptions {
|
|
36
|
+
/**
|
|
37
|
+
* Value returned during SSR and on the first client render (before
|
|
38
|
+
* `onMounted` fires). Pick the side of the branch that produces the
|
|
39
|
+
* smaller / safer markup — typically `false` (= JS fallback) so the
|
|
40
|
+
* server output stays universally compatible.
|
|
41
|
+
*/
|
|
42
|
+
defaultValue?: boolean;
|
|
43
|
+
}
|
|
File without changes
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import type { IAdjacentProps, IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IDataListKVItem, IDataTextProps, IDataTitleProps, IDensityProps, IElevationProps, IMarginProps, IPaddingProps, IRoundedProps, ITypographyProps } from "../../interfaces";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* - `"avatar"` (default, back-compat) — the historical `<dl>` layout
|
|
6
|
-
* where each item stacks a `<dt>` (title) above one or more `<dd>`
|
|
7
|
-
* rows (text). Items conform to {@link IDataItem}. The naming reflects
|
|
8
|
-
* the most common usage: a `prependAvatar` per title, with a stack of
|
|
9
|
-
* labels below — the Vuetify `v-list`-flavoured shape.
|
|
10
|
-
*
|
|
11
|
-
* - `"kv"` — the PDF-aligned key/value table where each row renders a
|
|
12
|
-
* key on the left (muted) and a value on the right (primary text or
|
|
13
|
-
* an inline component such as `<origam-chip>` / `<origam-avatar>`).
|
|
14
|
-
* Items conform to {@link IDataListKVItem}.
|
|
15
|
-
*/
|
|
16
|
-
export type TDataListMode = 'avatar' | 'kv';
|
|
2
|
+
import type { TDataListMode } from "../../types";
|
|
3
|
+
export type { TDataListMode } from "../../types/DataList/data-list.type";
|
|
17
4
|
export interface IDataListProps extends ICommonsComponentProps, IAdjacentProps, IColorProps, IBgColorProps, IMarginProps, IPaddingProps, IDensityProps, IBorderProps, IRoundedProps, IElevationProps, ITypographyProps {
|
|
18
5
|
/**
|
|
19
6
|
* Selects the layout. Defaults to `"avatar"` so existing call sites
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { IDialogProps, IDialogSlots } from '../../interfaces';
|
|
1
|
+
import type { ICommonsComponentEmits, IDialogProps, IDialogSlots } from '../../interfaces';
|
|
2
2
|
export interface IDialogConfirmationProps extends IDialogProps {
|
|
3
3
|
cancellable?: boolean;
|
|
4
4
|
}
|
|
5
5
|
/** Emits fired by `<OrigamDialogConfirmation>` — confirm/cancel buttons. */
|
|
6
|
-
export interface IDialogConfirmationEmits {
|
|
6
|
+
export interface IDialogConfirmationEmits extends ICommonsComponentEmits {
|
|
7
7
|
(e: 'validate', event?: MouseEvent): void;
|
|
8
8
|
(e: 'cancel', event?: MouseEvent): void;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentInternalInstance, ComputedRef, Raw, Ref } from 'vue';
|
|
2
|
-
import type { ICommonsComponentProps, ICommonsComponentSlots, ITypographyProps } from '../../interfaces';
|
|
2
|
+
import type { ICommonsComponentEmits, ICommonsComponentProps, ICommonsComponentSlots, ITypographyProps } from '../../interfaces';
|
|
3
3
|
import type { TValidateOn } from '../../types';
|
|
4
4
|
export interface IFormProvide {
|
|
5
5
|
register: (item: {
|
|
@@ -38,7 +38,14 @@ export interface IFormSlots extends ICommonsComponentSlots {
|
|
|
38
38
|
reset: () => void;
|
|
39
39
|
}) => any;
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
/**
|
|
42
|
+
* `useForm` ÉCRIT la validité calculée dans `modelValue`
|
|
43
|
+
* (form.composable.ts:77) — c'est un canal sortant, pas seulement une valeur
|
|
44
|
+
* entrante. L'émission correspondante doit donc être déclarée, sans quoi Vue
|
|
45
|
+
* avertit à chaque montage et le handler `onUpdate:modelValue` reste dans
|
|
46
|
+
* `$attrs`, où `inheritAttrs` le pose sur l'élément `<form>` racine.
|
|
47
|
+
*/
|
|
48
|
+
export interface IFormEmits extends ICommonsComponentEmits {
|
|
42
49
|
(e: 'submit', value: any): void;
|
|
43
50
|
(e: 'reset', value: any): void;
|
|
44
51
|
}
|
|
@@ -3,8 +3,18 @@ import type { TIcon, TIconComponent } from '../../types';
|
|
|
3
3
|
export interface IIconProps {
|
|
4
4
|
icon?: TIcon;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* Surface de props partagée par `<OrigamIcon>` et ses quatre feuilles de
|
|
8
|
+
* rendu (`ClassIcon`, `ComponentIcon`, `LigatureIcon`, `SvgIcon`).
|
|
9
|
+
*
|
|
10
|
+
* ⚠️ PAS de prop `disabled` ici, et c'est délibéré. Elle y a été déclarée
|
|
11
|
+
* puis retirée : aucun des cinq composants ne la lisait, et une icône est
|
|
12
|
+
* un élément de rendu, pas un élément interactif — il n'y a rien à
|
|
13
|
+
* désactiver. Un état désactivé se peint sur le contrôle qui PORTE l'icône
|
|
14
|
+
* (bouton, champ, item de liste), pas sur l'icône elle-même, qui hérite
|
|
15
|
+
* alors naturellement de son opacité et de son curseur.
|
|
16
|
+
*/
|
|
6
17
|
export interface IIconComponentProps extends IIconProps, IColorProps, IBgColorProps, ICommonsComponentProps, ITagProps, ISizeProps, IPaddingProps, IMarginProps, IBorderProps, IDimensionProps, IRoundedProps {
|
|
7
|
-
disabled?: boolean;
|
|
8
18
|
}
|
|
9
19
|
/** Slot signatures shared by `<OrigamIcon>` and `<OrigamComponentIcon>` —
|
|
10
20
|
* a single unscoped `default` slot holding the icon glyph / fallback. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { TMaskTokenKind, TPatternValidator } from '../../types';
|
|
2
3
|
/**
|
|
3
4
|
* Configuration object accepted by `useMask` / the
|
|
4
5
|
* `OrigamTextField.mask` prop in its long form.
|
|
@@ -42,7 +43,27 @@ export interface IMaskApplyResult {
|
|
|
42
43
|
* (`#`, `A`, `*`) or is a literal kept verbatim.
|
|
43
44
|
*/
|
|
44
45
|
export interface IMaskToken {
|
|
45
|
-
kind:
|
|
46
|
+
kind: TMaskTokenKind;
|
|
46
47
|
char: string;
|
|
47
48
|
consumer: boolean;
|
|
48
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Public return shape of `useMask`.
|
|
52
|
+
*/
|
|
53
|
+
export interface IUseMaskReturn {
|
|
54
|
+
masked: Ref<string>;
|
|
55
|
+
unmasked: Ref<string>;
|
|
56
|
+
isValid: Ref<boolean>;
|
|
57
|
+
complete: Ref<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* Imperatively re-run the formatter on a raw value
|
|
60
|
+
* (used by paste / external sync). Returns the new
|
|
61
|
+
* `unmasked` so callers can keep their model in sync.
|
|
62
|
+
*/
|
|
63
|
+
setRaw: (raw: string) => string;
|
|
64
|
+
/**
|
|
65
|
+
* Currently resolved config (pattern + validator +
|
|
66
|
+
* required). `null` when no mask is active.
|
|
67
|
+
*/
|
|
68
|
+
config: Ref<IResolvedMaskConfig | null>;
|
|
69
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IBgColorProps, IBorderProps, IColorProps, ICommonsComponentProps, IDimensionProps, IElevationProps, IMarginProps, IPaddingProps, IRoundedProps, ITagProps } from '../../interfaces';
|
|
2
2
|
import type { TGridGapSize, TMasonryAlign } from '../../types';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
3
4
|
/**
|
|
4
5
|
* Map of `min-width` (px) → number of columns to apply when the
|
|
5
6
|
* container is at least that wide. Container-query based (NOT viewport),
|
|
@@ -78,3 +79,57 @@ export interface IMasonryProps extends ICommonsComponentProps, ITagProps, IDimen
|
|
|
78
79
|
*/
|
|
79
80
|
align?: TMasonryAlign;
|
|
80
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Internal layout descriptor produced by the bucket-fill algorithm.
|
|
84
|
+
* One entry per measured item. Coordinates are expressed in CSS px,
|
|
85
|
+
* relative to the masonry container's content box.
|
|
86
|
+
*/
|
|
87
|
+
export interface IMasonryItemRect {
|
|
88
|
+
/** Index of the item in the original DOM order. */
|
|
89
|
+
index: number;
|
|
90
|
+
/** `left` (px) of the item inside the container's content box. */
|
|
91
|
+
left: number;
|
|
92
|
+
/** `top` (px) of the item inside the container's content box. */
|
|
93
|
+
top: number;
|
|
94
|
+
/** Computed width (px) — same for every item in a given pass. */
|
|
95
|
+
width: number;
|
|
96
|
+
/** Measured height (px) — preserved from the natural item flow. */
|
|
97
|
+
height: number;
|
|
98
|
+
/** Zero-based column index the item was placed into. */
|
|
99
|
+
column: number;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Public layout result. The caller uses `containerHeight` to size the
|
|
103
|
+
* container (absolute-positioned children would otherwise collapse it),
|
|
104
|
+
* and `items` to read per-item coordinates for inline-style assignment.
|
|
105
|
+
*/
|
|
106
|
+
export interface IMasonryLayoutResult {
|
|
107
|
+
/** Final container height (px) — `max(column heights)`. */
|
|
108
|
+
containerHeight: number;
|
|
109
|
+
/** Per-item position record. Index matches the original DOM order. */
|
|
110
|
+
items: IMasonryItemRect[];
|
|
111
|
+
/** Effective column count used for this layout (post-breakpoint). */
|
|
112
|
+
columns: number;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Options consumed by `useMasonry`. All inputs are refs so the
|
|
116
|
+
* composable can react to prop changes from its consumer.
|
|
117
|
+
*/
|
|
118
|
+
export interface IUseMasonryOptions {
|
|
119
|
+
/** Default column count. Used when no breakpoint matches. */
|
|
120
|
+
columnsRef: Ref<number>;
|
|
121
|
+
/**
|
|
122
|
+
* Gap in **px** between items, both axes. The composable expects an
|
|
123
|
+
* already-resolved pixel value — string-token resolution happens in
|
|
124
|
+
* the component wrapper.
|
|
125
|
+
*/
|
|
126
|
+
gapRef: Ref<number>;
|
|
127
|
+
/** Optional container-query breakpoints. */
|
|
128
|
+
breakpointsRef?: Ref<TMasonryColumnBreakpoints | undefined>;
|
|
129
|
+
/**
|
|
130
|
+
* Vertical alignment of items inside a column. `'top'` packs to the
|
|
131
|
+
* top; `'center'` shifts each column's content down by half the
|
|
132
|
+
* unused space.
|
|
133
|
+
*/
|
|
134
|
+
alignRef?: Ref<TMasonryAlign>;
|
|
135
|
+
}
|
|
@@ -30,6 +30,12 @@ export interface IMediaScrubberProps extends ICommonsComponentProps, IColorProps
|
|
|
30
30
|
* Upper bound of the value range. Required to compute the thumb
|
|
31
31
|
* position. Passing `0` (or any value `<= min`) freezes the
|
|
32
32
|
* scrubber at the start.
|
|
33
|
+
*
|
|
34
|
+
* A frozen range is the NORMAL mount state for a media scrubber, not
|
|
35
|
+
* an error: `OrigamMediaController` feeds `scrubberMax`, which stays
|
|
36
|
+
* `0` until `state.duration` becomes finite. `aria-valuemax` reports
|
|
37
|
+
* that empty range honestly (`0`), never the internal epsilon the
|
|
38
|
+
* component uses to keep the percentage division finite.
|
|
33
39
|
*/
|
|
34
40
|
max: number;
|
|
35
41
|
/**
|
|
@@ -100,9 +106,25 @@ export interface IMediaScrubberProps extends ICommonsComponentProps, IColorProps
|
|
|
100
106
|
*/
|
|
101
107
|
ariaValueText?: string;
|
|
102
108
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
109
|
+
* `data-cy` test selector for the host element.
|
|
110
|
+
*
|
|
111
|
+
* Declaring it as a prop REMOVES it from `$attrs`, so it is rendered
|
|
112
|
+
* explicitly by the template — it does not fall through. When a parent
|
|
113
|
+
* forwards one it WINS over the component's own literal; the literal
|
|
114
|
+
* `'origam-media-scrubber'` is only the fallback for a standalone
|
|
115
|
+
* instance nobody named.
|
|
116
|
+
*
|
|
117
|
+
* Both in-house parents forward one, so inside `<OrigamVideo>` /
|
|
118
|
+
* `<OrigamAudio>` the fallback is never what renders:
|
|
119
|
+
* - `OrigamMediaController` → `origam-media-controller-scrubber`
|
|
120
|
+
* (the timeline, on the `#waveform` fallback)
|
|
121
|
+
* - `OrigamMediaVolumeControl` → its own `dataCy` verbatim, i.e.
|
|
122
|
+
* `origam-media-controller-volume` in the default toolbar
|
|
123
|
+
*
|
|
124
|
+
* Target the composed name in tests. Asserting on the bare literal is
|
|
125
|
+
* what made `video.spec.ts` red on all three engines.
|
|
126
|
+
*
|
|
127
|
+
* @default 'origam-media-scrubber'
|
|
106
128
|
*/
|
|
107
129
|
dataCy?: string;
|
|
108
130
|
}
|
|
@@ -7,11 +7,19 @@ export interface IMenuProvide {
|
|
|
7
7
|
export interface IMenuProps extends IOverlayProps, IListProps, IListItemProps {
|
|
8
8
|
id?: string;
|
|
9
9
|
}
|
|
10
|
-
/** Emits fired by `<OrigamMenu>` — v-model on the open state
|
|
10
|
+
/** Emits fired by `<OrigamMenu>` — v-model on the open state, the
|
|
11
11
|
* native `contextmenu` bubble forwarded for parents that want to
|
|
12
|
-
* show their own context menu instead
|
|
12
|
+
* show their own context menu instead, and `select` when the user
|
|
13
|
+
* picks a leaf row of the `items` tree.
|
|
14
|
+
*
|
|
15
|
+
* `select` matters because `<origam-menu :items="…">` renders its own
|
|
16
|
+
* rows: the consumer never gets a handle on the `<origam-list-item>`
|
|
17
|
+
* that receives the click. Without it, the only way to learn which row
|
|
18
|
+
* was picked is to hang an `onClick` on every item object. Rows that
|
|
19
|
+
* open a submenu do NOT emit — they are navigation, not a choice. */
|
|
13
20
|
export interface IMenuEmits extends ICommonsComponentEmits {
|
|
14
21
|
(e: 'contextmenu', event: MouseEvent): void;
|
|
22
|
+
(e: 'select', item: IListItemProps): void;
|
|
15
23
|
}
|
|
16
24
|
/** Slot signatures for `<OrigamMenu>`. `activator` only forwards the
|
|
17
25
|
* merged `props` bag (not the inner overlay's `isActive`) — matches
|