origam 2.5.0 → 2.6.2
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/dist/src/assets/css/tokens/dark.css +3788 -3768
- package/dist/src/assets/css/tokens/light.css +1894 -1884
- package/dist/src/assets/css/tokens/primitive.css +2 -0
- package/dist/src/assets/css/tokens/themes-all.css +44226 -0
- package/dist/src/assets/locales/en.json +34 -2
- package/dist/src/assets/locales/fr.json +34 -2
- package/dist/src/assets/scss/tokens/_dark.scss +1894 -1884
- package/dist/src/assets/scss/tokens/_light.scss +1894 -1884
- package/dist/src/assets/scss/tokens/_primitive.scss +2 -0
- package/dist/src/assets/scss/tokens/_themes-all.scss +44241 -0
- package/dist/src/components/Alert/OrigamAlert.vue +16 -21
- package/dist/src/components/App/OrigamApp.vue +7 -38
- package/dist/src/components/App/OrigamAppBar.vue +35 -17
- package/dist/src/components/Audio/OrigamAudio.vue +77 -6
- package/dist/src/components/Avatar/OrigamAvatar.vue +11 -9
- package/dist/src/components/Avatar/OrigamAvatarGroup.vue +26 -8
- package/dist/src/components/Badge/OrigamBadge.vue +13 -3
- package/dist/src/components/Blockquote/OrigamBlockquote.vue +137 -13
- package/dist/src/components/BottomNav/OrigamBottomNav.vue +34 -4
- package/dist/src/components/Bracket/OrigamBracket.vue +386 -64
- package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +190 -13
- package/dist/src/components/Bracket/OrigamBracketMatch.vue +197 -42
- package/dist/src/components/Bracket/OrigamBracketRound.vue +11 -3
- package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +14 -12
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +4 -1
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbItem.vue +3 -5
- package/dist/src/components/Btn/OrigamBtn.vue +69 -30
- package/dist/src/components/Btn/OrigamBtnGroup.vue +33 -7
- package/dist/src/components/Btn/OrigamBtnToggle.vue +4 -7
- package/dist/src/components/Calendar/OrigamCalendar.vue +785 -658
- package/dist/src/components/Card/OrigamCard.vue +24 -3
- package/dist/src/components/Card/OrigamCardHeader.vue +17 -3
- package/dist/src/components/Card/OrigamCardText.vue +29 -7
- package/dist/src/components/Carousel/OrigamCarousel.vue +29 -9
- package/dist/src/components/Carousel/OrigamCarouselItem.vue +2 -2
- package/dist/src/components/Chart/OrigamChart.vue +3 -1
- package/dist/src/components/Chart/OrigamChartAxis.vue +1 -1
- package/dist/src/components/Chart/OrigamChartBoxPlot.vue +7 -3
- package/dist/src/components/Chart/OrigamChartBullet.vue +7 -3
- package/dist/src/components/Chart/OrigamChartCandlestick.vue +7 -3
- package/dist/src/components/Chart/OrigamChartCartesian.vue +14 -10
- package/dist/src/components/Chart/OrigamChartGauge.vue +7 -3
- package/dist/src/components/Chart/OrigamChartHeatmap.vue +7 -3
- package/dist/src/components/Chart/OrigamChartHoneycomb.vue +7 -3
- package/dist/src/components/Chart/OrigamChartLegend.vue +1 -2
- package/dist/src/components/Chart/OrigamChartMap.vue +7 -3
- package/dist/src/components/Chart/OrigamChartPareto.vue +7 -3
- package/dist/src/components/Chart/OrigamChartPictorial.vue +9 -6
- package/dist/src/components/Chart/OrigamChartPolar.vue +13 -6
- package/dist/src/components/Chart/OrigamChartPolarBar.vue +7 -3
- package/dist/src/components/Chart/OrigamChartPyramid.vue +7 -3
- package/dist/src/components/Chart/OrigamChartRadar.vue +7 -5
- package/dist/src/components/Chart/OrigamChartRangeSelector.vue +3 -4
- package/dist/src/components/Chart/OrigamChartSankey.vue +7 -3
- package/dist/src/components/Chart/OrigamChartSparkline.vue +5 -3
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +9 -5
- package/dist/src/components/Chart/OrigamChartSunburst.vue +7 -3
- package/dist/src/components/Chart/OrigamChartTooltip.vue +1 -1
- package/dist/src/components/Chart/OrigamChartTreemap.vue +7 -3
- package/dist/src/components/Chart/OrigamChartVariwide.vue +7 -3
- package/dist/src/components/Chart/OrigamChartWordCloud.vue +3 -2
- package/dist/src/components/Checkbox/OrigamCheckbox.vue +18 -3
- package/dist/src/components/Checkbox/OrigamCheckboxBtn.vue +4 -2
- package/dist/src/components/Chip/OrigamChip.vue +25 -12
- package/dist/src/components/Chip/OrigamChipGroup.vue +5 -5
- package/dist/src/components/ClientOnly/OrigamClientOnly.vue +1 -1
- package/dist/src/components/Clipboard/OrigamClipboard.vue +12 -4
- package/dist/src/components/Code/OrigamCode.vue +144 -39
- package/dist/src/components/ColorPicker/OrigamColorPicker.vue +7 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +3 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerEdit.vue +2 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerPreview.vue +1 -1
- package/dist/src/components/ColorPicker/OrigamColorPickerSwatches.vue +1 -1
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +15 -5
- package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +13 -3
- package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +1 -1
- package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +7 -2
- package/dist/src/components/Counter/OrigamCounter.vue +2 -1
- package/dist/src/components/DataList/OrigamDataList.vue +21 -5
- package/dist/src/components/DataList/OrigamDataText.vue +5 -1
- package/dist/src/components/DataList/OrigamDataTitle.vue +5 -1
- package/dist/src/components/DataTable/OrigamDataTable.vue +15 -7
- package/dist/src/components/DataTable/OrigamDataTableColumnCell.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableFooter.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableGroupHeaderRow.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableHeaderCell.vue +3 -2
- package/dist/src/components/DataTable/OrigamDataTableHeaders.vue +2 -1
- package/dist/src/components/DataTable/OrigamDataTableHeadersCell.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableRow.vue +5 -3
- package/dist/src/components/DataTable/OrigamDataTableRows.vue +3 -3
- package/dist/src/components/DatePicker/OrigamDatePicker.vue +21 -30
- package/dist/src/components/DatePicker/OrigamDatePickerControls.vue +2 -2
- package/dist/src/components/DatePicker/OrigamDatePickerHeader.vue +1 -1
- package/dist/src/components/DatePicker/OrigamDatePickerMonth.vue +16 -28
- package/dist/src/components/DatePicker/OrigamDatePickerMonths.vue +3 -3
- package/dist/src/components/DatePicker/OrigamDatePickerYears.vue +3 -3
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +27 -16
- package/dist/src/components/DefaultsProvider/OrigamDefaultsProvider.vue +1 -1
- package/dist/src/components/Dialog/OrigamDialog.vue +1 -1
- package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +1 -1
- package/dist/src/components/Divider/OrigamDivider.vue +2 -2
- package/dist/src/components/Drawer/OrigamDrawer.vue +5 -11
- package/dist/src/components/EmptyState/OrigamEmptyState.vue +14 -4
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +12 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +4 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +14 -5
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +2 -1
- package/dist/src/components/Field/OrigamField.vue +26 -9
- package/dist/src/components/FileField/OrigamFileField.vue +8 -3
- package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +14 -4
- package/dist/src/components/FileField/OrigamFileFieldListItem.vue +14 -4
- package/dist/src/components/Form/OrigamForm.vue +10 -2
- package/dist/src/components/Grid/OrigamGrid.vue +1 -1
- package/dist/src/components/Grid/OrigamGridItem.vue +1 -1
- package/dist/src/components/Grids/OrigamCol.vue +1 -1
- package/dist/src/components/Grids/OrigamContainer.vue +1 -1
- package/dist/src/components/Grids/OrigamRow.vue +6 -2
- package/dist/src/components/Grids/OrigamSpacer.vue +1 -1
- package/dist/src/components/Icon/OrigamClassIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamComponentIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamLigatureIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamSvgIcon.vue +2 -2
- package/dist/src/components/Img/OrigamImg.vue +10 -9
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +14 -7
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScrollIntersect.vue +3 -2
- package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +13 -4
- package/dist/src/components/Input/OrigamInput.vue +17 -3
- package/dist/src/components/ItemGroup/OrigamItem.vue +1 -1
- package/dist/src/components/ItemGroup/OrigamItemGroup.vue +1 -1
- package/dist/src/components/Kbd/OrigamKbd.vue +18 -8
- package/dist/src/components/Label/OrigamLabel.vue +14 -3
- package/dist/src/components/Layout/OrigamLayout.vue +1 -1
- package/dist/src/components/Lazy/OrigamLazy.vue +1 -1
- package/dist/src/components/List/OrigamList.vue +1 -1
- package/dist/src/components/List/OrigamListChildren.vue +1 -1
- package/dist/src/components/List/OrigamListGroup.vue +4 -1
- package/dist/src/components/List/OrigamListGroupActivator.vue +1 -1
- package/dist/src/components/List/OrigamListItem.vue +14 -4
- package/dist/src/components/List/OrigamListSubheader.vue +13 -3
- package/dist/src/components/Loader/OrigamLoader.vue +1 -1
- package/dist/src/components/Main/OrigamMain.vue +1 -1
- package/dist/src/components/Masonry/OrigamMasonry.vue +2 -2
- package/dist/src/components/Media/OrigamMediaController.vue +1 -1
- package/dist/src/components/Media/OrigamMediaScrubber.vue +3 -2
- package/dist/src/components/Media/OrigamMediaVolumeControl.vue +3 -2
- package/dist/src/components/Menu/OrigamMenu.vue +9 -2
- package/dist/src/components/Messages/OrigamMessages.vue +13 -4
- package/dist/src/components/NumberField/OrigamNumberField.vue +80 -40
- package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +1 -1
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +107 -11
- package/dist/src/components/Overlay/OrigamOverlay.vue +1 -1
- package/dist/src/components/Overlay/OrigamOverlayScrim.vue +1 -1
- package/dist/src/components/Pagination/OrigamPagination.vue +16 -4
- package/dist/src/components/Parallax/OrigamParallax.vue +9 -2
- package/dist/src/components/Parallax/OrigamParallaxElement.vue +1 -1
- package/dist/src/components/Parallax/OrigamParallaxLayer.vue +2 -2
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +9 -2
- package/dist/src/components/Picker/OrigamPicker.vue +8 -3
- package/dist/src/components/Picker/OrigamPickerTitle.vue +10 -3
- package/dist/src/components/Progress/OrigamProgress.vue +6 -3
- package/dist/src/components/Progress/OrigamProgressCircular.vue +3 -1
- package/dist/src/components/Progress/OrigamProgressLinear.vue +5 -6
- package/dist/src/components/{QRCode → QrCode}/OrigamQrCode.vue +1 -1
- package/dist/src/components/QrCode/index.d.ts +1 -0
- package/dist/src/components/Radio/OrigamRadio.vue +20 -11
- package/dist/src/components/Radio/OrigamRadioBtn.vue +4 -2
- package/dist/src/components/Radio/OrigamRadioGroup.vue +48 -41
- package/dist/src/components/RatingField/OrigamRatingField.vue +9 -13
- package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +3 -6
- package/dist/src/components/Responsive/OrigamResponsive.vue +1 -1
- package/dist/src/components/Section/OrigamSection.vue +1 -1
- package/dist/src/components/Select/OrigamSelect.vue +19 -10
- package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +12 -6
- package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +2 -2
- package/dist/src/components/Sheet/OrigamSheet.vue +11 -3
- package/dist/src/components/Skeleton/OrigamSkeleton.vue +2 -4
- package/dist/src/components/Slide/OrigamSlideGroup.vue +1 -1
- package/dist/src/components/SliderField/OrigamSliderField.vue +7 -6
- package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +1 -1
- package/dist/src/components/Snackbar/OrigamSnackbar.vue +5 -4
- package/dist/src/components/Snackbar/OrigamSnackbarGroup.vue +1 -1
- package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +27 -26
- package/dist/src/components/Stepper/OrigamStepper.vue +6 -2
- package/dist/src/components/Stepper/OrigamStepperItem.vue +10 -3
- package/dist/src/components/Switch/OrigamSwitch.vue +35 -37
- package/dist/src/components/Switch/OrigamSwitchTrack.vue +9 -15
- package/dist/src/components/SystemBar/OrigamSystemBar.vue +14 -4
- package/dist/src/components/Table/OrigamTable.vue +15 -3
- package/dist/src/components/Tabs/OrigamTab.vue +13 -3
- package/dist/src/components/Tabs/OrigamTabPanel.vue +1 -1
- package/dist/src/components/Tabs/OrigamTabPanels.vue +1 -1
- package/dist/src/components/Tabs/OrigamTabs.vue +1 -1
- package/dist/src/components/TextField/OrigamTextField.vue +8 -1
- package/dist/src/components/TextMask/OrigamTextMask.vue +17 -27
- package/dist/src/components/TextareaField/OrigamRichToolbar.vue +15 -11
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +11 -1
- package/dist/src/components/ThemeProvider/OrigamThemeProvider.vue +4 -1
- package/dist/src/components/Timeline/OrigamTimeline.vue +3 -3
- package/dist/src/components/Timeline/OrigamTimelineItem.vue +3 -1
- package/dist/src/components/Title/OrigamTitle.vue +20 -8
- package/dist/src/components/Toolbar/OrigamToolbar.vue +17 -5
- package/dist/src/components/Tooltip/OrigamTooltip.vue +12 -3
- package/dist/src/components/Transition/OrigamExpandX.vue +1 -1
- package/dist/src/components/Transition/OrigamExpandY.vue +1 -1
- package/dist/src/components/Transition/OrigamFade.vue +1 -1
- package/dist/src/components/Transition/OrigamReverseTranslatePicker.vue +1 -1
- package/dist/src/components/Transition/OrigamScaleRotate.vue +1 -1
- package/dist/src/components/Transition/OrigamSlideX.vue +1 -1
- package/dist/src/components/Transition/OrigamSlideY.vue +1 -1
- package/dist/src/components/Transition/OrigamSnack.vue +1 -1
- package/dist/src/components/Transition/OrigamTransition.vue +1 -1
- package/dist/src/components/Transition/OrigamTranslateBottom.vue +1 -1
- package/dist/src/components/Transition/OrigamTranslatePicker.vue +1 -1
- package/dist/src/components/Transition/OrigamTranslateScale.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowXReverseTranslate.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowXTranslate.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowYReverseTranslate.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowYTranslate.vue +1 -1
- package/dist/src/components/Treeview/OrigamTreeview.vue +1 -1
- package/dist/src/components/Treeview/OrigamTreeviewNode.vue +7 -5
- package/dist/src/components/Video/OrigamVideo.vue +56 -63
- package/dist/src/components/VirtualScroll/OrigamVirtualScroll.vue +1 -1
- package/dist/src/components/VirtualScroll/OrigamVirtualScrollItem.vue +1 -6
- package/dist/src/components/Watermark/OrigamWatermark.vue +1 -1
- package/dist/src/components/Window/OrigamWindow.vue +32 -2
- package/dist/src/components/Window/OrigamWindowItem.vue +1 -1
- package/dist/src/components/index.cjs +1 -1
- package/dist/src/components/index.js +1 -1
- package/dist/src/composables/Chart/chart-gauge.composable.cjs +1 -1
- package/dist/src/composables/Chart/chart-gauge.composable.js +1 -1
- package/dist/src/composables/Chart/chart-header-typography.composable.cjs +20 -0
- package/dist/src/composables/Chart/chart-header-typography.composable.d.ts +27 -0
- package/dist/src/composables/Chart/chart-header-typography.composable.js +11 -0
- package/dist/src/composables/Chart/chart-zoom.composable.cjs +0 -1
- package/dist/src/composables/Chart/chart-zoom.composable.js +0 -1
- package/dist/src/composables/Chart/chart.composable.cjs +0 -11
- package/dist/src/composables/Chart/chart.composable.js +0 -11
- package/dist/src/composables/Code/code.composable.js +4 -1
- package/dist/src/composables/Commons/audio.composable.d.ts +97 -31
- package/dist/src/composables/Commons/border.composable.cjs +10 -0
- package/dist/src/composables/Commons/border.composable.js +7 -0
- package/dist/src/composables/Commons/color.composable.cjs +42 -42
- package/dist/src/composables/Commons/color.composable.d.ts +8 -3
- package/dist/src/composables/Commons/color.composable.js +2 -2
- package/dist/src/composables/Commons/date-picker-calendar.composable.cjs +1 -1
- package/dist/src/composables/Commons/date-picker-calendar.composable.d.ts +1 -1
- package/dist/src/composables/Commons/date-picker-calendar.composable.js +1 -1
- package/dist/src/composables/Commons/defaults.composable.cjs +10 -9
- package/dist/src/composables/Commons/defaults.composable.js +10 -9
- package/dist/src/composables/Commons/delay.composable.cjs +8 -3
- package/dist/src/composables/Commons/delay.composable.js +7 -4
- package/dist/src/composables/Commons/density.composable.cjs +1 -1
- package/dist/src/composables/Commons/density.composable.js +2 -2
- package/dist/src/composables/Commons/dragResizer.composable.cjs +7 -9
- package/dist/src/composables/Commons/dragResizer.composable.js +8 -9
- package/dist/src/composables/Commons/focus.composable.cjs +1 -1
- package/dist/src/composables/Commons/focus.composable.js +1 -1
- package/dist/src/composables/Commons/layout.composable.cjs +12 -0
- package/dist/src/composables/Commons/layout.composable.js +14 -0
- package/dist/src/composables/Commons/message.composable.cjs +1 -1
- package/dist/src/composables/Commons/message.composable.d.ts +1 -1
- package/dist/src/composables/Commons/message.composable.js +1 -1
- package/dist/src/composables/Commons/rounded.composable.cjs +15 -4
- package/dist/src/composables/Commons/rounded.composable.d.ts +1 -1
- package/dist/src/composables/Commons/rounded.composable.js +17 -6
- package/dist/src/composables/Commons/scroll.composable.cjs +2 -2
- package/dist/src/composables/Commons/scroll.composable.js +2 -2
- package/dist/src/composables/Commons/size.composable.d.ts +1 -1
- package/dist/src/composables/Commons/stateEffect.composable.cjs +36 -14
- package/dist/src/composables/Commons/stateEffect.composable.js +38 -14
- package/dist/src/composables/Commons/status.composable.cjs +11 -1
- package/dist/src/composables/Commons/status.composable.d.ts +2 -0
- package/dist/src/composables/Commons/status.composable.js +10 -1
- package/dist/src/composables/Commons/sticky.composable.d.ts +2 -14
- package/dist/src/composables/Commons/style.composable.cjs +5 -3
- package/dist/src/composables/Commons/style.composable.js +5 -3
- package/dist/src/composables/Commons/typography.composable.cjs +23 -0
- package/dist/src/composables/Commons/typography.composable.d.ts +7 -0
- package/dist/src/composables/Commons/typography.composable.js +21 -0
- package/dist/src/composables/DataTable/headers.composable.d.ts +4 -364
- package/dist/src/composables/Icon/icon.composable.cjs +6 -1
- package/dist/src/composables/Icon/icon.composable.js +4 -1
- package/dist/src/composables/InlineEdit/inline-edit.composable.cjs +16 -2
- package/dist/src/composables/InlineEdit/inline-edit.composable.js +16 -2
- package/dist/src/composables/Masonry/masonry.composable.d.ts +2 -1
- package/dist/src/composables/Parallax/transform.composable.d.ts +1 -1
- package/dist/src/composables/Responsive/aspect.composable.cjs +9 -1
- package/dist/src/composables/Responsive/aspect.composable.d.ts +1 -1
- package/dist/src/composables/Responsive/aspect.composable.js +9 -1
- package/dist/src/composables/Theme/installed-themes.composable.cjs +11 -0
- package/dist/src/composables/Theme/installed-themes.composable.d.ts +19 -0
- package/dist/src/composables/Theme/installed-themes.composable.js +5 -0
- package/dist/src/composables/Theme/theme.composable.cjs +86 -15
- package/dist/src/composables/Theme/theme.composable.d.ts +55 -10
- package/dist/src/composables/Theme/theme.composable.js +88 -17
- package/dist/src/composables/index.cjs +36 -0
- package/dist/src/composables/index.d.ts +3 -0
- package/dist/src/composables/index.js +3 -0
- package/dist/src/consts/Bracket/bracket.const.cjs +4 -2
- package/dist/src/consts/Bracket/bracket.const.d.ts +12 -0
- package/dist/src/consts/Bracket/bracket.const.js +2 -0
- package/dist/src/consts/Commons/density.const.cjs +2 -2
- package/dist/src/consts/Commons/density.const.d.ts +1 -1
- package/dist/src/consts/Commons/density.const.js +1 -1
- package/dist/src/consts/Commons/rounded.const.cjs +4 -2
- package/dist/src/consts/Commons/rounded.const.d.ts +22 -2
- package/dist/src/consts/Commons/rounded.const.js +3 -1
- package/dist/src/consts/DataTable/select.const.cjs +1 -1
- package/dist/src/consts/DataTable/select.const.js +1 -1
- package/dist/src/consts/Icon/mdi.const.cjs +6 -1
- package/dist/src/consts/Icon/mdi.const.js +10 -2
- package/dist/src/consts/Theme/theme.const.cjs +11 -1
- package/dist/src/consts/Theme/theme.const.d.ts +16 -0
- package/dist/src/consts/Theme/theme.const.js +10 -0
- package/dist/src/directives/Contrast/contrast.directive.cjs +150 -0
- package/dist/src/directives/Contrast/contrast.directive.d.ts +5 -0
- package/dist/src/directives/Contrast/contrast.directive.js +131 -0
- package/dist/src/directives/index.cjs +7 -0
- package/dist/src/directives/index.d.ts +1 -0
- package/dist/src/directives/index.js +1 -0
- package/dist/src/enums/BottomNav/bottom-nav-position.enum.cjs +12 -0
- package/dist/src/enums/BottomNav/bottom-nav-position.enum.d.ts +10 -0
- package/dist/src/enums/BottomNav/bottom-nav-position.enum.js +6 -0
- package/dist/src/enums/Toolbar/toolbar.enum.cjs +1 -0
- package/dist/src/enums/Toolbar/toolbar.enum.d.ts +2 -1
- package/dist/src/enums/Toolbar/toolbar.enum.js +1 -0
- package/dist/src/enums/index.cjs +22 -0
- package/dist/src/enums/index.d.ts +2 -0
- package/dist/src/enums/index.js +2 -0
- package/dist/src/interfaces/Alert/alert.interface.d.ts +2 -3
- package/dist/src/interfaces/App/app-bar.interface.d.ts +19 -1
- package/dist/src/interfaces/App/app.interface.cjs +1 -0
- package/dist/src/interfaces/App/app.interface.d.ts +24 -0
- package/dist/src/interfaces/Audio/audio-player.interface.d.ts +23 -2
- package/dist/src/interfaces/Avatar/avatar.interface.d.ts +2 -4
- package/dist/src/interfaces/Badge/badge.interface.d.ts +2 -2
- package/dist/src/interfaces/Blockquote/blockquote.interface.d.ts +23 -21
- package/dist/src/interfaces/BottomNav/bottom-nav.interface.d.ts +12 -4
- package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.d.ts +17 -6
- package/dist/src/interfaces/Bracket/bracket-match-component.interface.d.ts +13 -6
- package/dist/src/interfaces/Bracket/bracket-match.interface.d.ts +22 -0
- package/dist/src/interfaces/Bracket/bracket-round-component.interface.d.ts +2 -2
- package/dist/src/interfaces/Bracket/bracket.interface.d.ts +17 -2
- package/dist/src/interfaces/Breadcrumb/breadcrumb-divider.interface.d.ts +2 -2
- package/dist/src/interfaces/Breadcrumb/breadcrumb.interface.d.ts +2 -3
- package/dist/src/interfaces/Btn/btn-group.interface.d.ts +2 -2
- package/dist/src/interfaces/Btn/btn.interface.d.ts +11 -3
- package/dist/src/interfaces/Calendar/calendar.interface.d.ts +7 -2
- package/dist/src/interfaces/Card/card-header.interface.d.ts +2 -2
- package/dist/src/interfaces/Card/card-text.interface.d.ts +2 -2
- package/dist/src/interfaces/Carousel/carousel.interface.d.ts +2 -2
- package/dist/src/interfaces/Chart/chart-base.interface.d.ts +9 -8
- package/dist/src/interfaces/Chart/chart-word-cloud.interface.d.ts +1 -1
- package/dist/src/interfaces/Chart/chart.interface.d.ts +12 -1
- package/dist/src/interfaces/Checkbox/checkbox-btn.interface.d.ts +3 -3
- package/dist/src/interfaces/Checkbox/checkbox.interface.d.ts +10 -9
- package/dist/src/interfaces/Chip/chip-group.interface.d.ts +3 -1
- package/dist/src/interfaces/Chip/chip.interface.d.ts +2 -2
- package/dist/src/interfaces/Clipboard/clipboard.interface.d.ts +2 -2
- package/dist/src/interfaces/Code/code.interface.d.ts +19 -2
- package/dist/src/interfaces/ColorPickerField/color-picker-field.interface.d.ts +2 -2
- package/dist/src/interfaces/CommandPalette/command-palette.interface.d.ts +2 -1
- package/dist/src/interfaces/Commons/calendar.interface.d.ts +3 -3
- package/dist/src/interfaces/Commons/commons.interface.d.ts +34 -1
- package/dist/src/interfaces/Commons/filters.interface.d.ts +2 -2
- package/dist/src/interfaces/Commons/hover.interface.d.ts +18 -3
- package/dist/src/interfaces/Commons/scroll.interface.d.ts +8 -1
- package/dist/src/interfaces/Commons/typography.interface.cjs +1 -0
- package/dist/src/interfaces/Commons/typography.interface.d.ts +52 -0
- package/dist/src/interfaces/Commons/typography.interface.js +0 -0
- package/dist/src/interfaces/Commons/validation.interface.d.ts +3 -1
- package/dist/src/interfaces/Counter/counter.interface.d.ts +2 -2
- package/dist/src/interfaces/DataList/data-list.interface.d.ts +2 -2
- package/dist/src/interfaces/DataList/data-text.interface.d.ts +5 -0
- package/dist/src/interfaces/DataList/data-title.interface.d.ts +5 -0
- package/dist/src/interfaces/DataTable/headers.interface.d.ts +5 -5
- package/dist/src/interfaces/DataTable/row.interface.d.ts +2 -2
- package/dist/src/interfaces/DatePicker/date-picker-controls.interface.d.ts +16 -8
- package/dist/src/interfaces/DatePicker/date-picker-header.interface.d.ts +6 -3
- package/dist/src/interfaces/DatePicker/date-picker-months.interface.d.ts +2 -2
- package/dist/src/interfaces/DatePicker/date-picker-years.interface.d.ts +1 -1
- package/dist/src/interfaces/DatePicker/date-picker.interface.d.ts +1 -1
- package/dist/src/interfaces/Dialog/dialog-confirmation.interface.d.ts +2 -2
- package/dist/src/interfaces/EmptyState/empty-state.interface.d.ts +9 -2
- package/dist/src/interfaces/ExpensionPanel/expansion-panel-header.interface.d.ts +2 -2
- package/dist/src/interfaces/Field/field.interface.d.ts +7 -2
- package/dist/src/interfaces/FileField/file-field-dragndrop-item.interface.d.ts +2 -2
- package/dist/src/interfaces/FileField/file-field-list-item.interface.d.ts +2 -2
- package/dist/src/interfaces/FileField/file-field.interface.d.ts +1 -1
- package/dist/src/interfaces/Form/form.interface.d.ts +2 -2
- package/dist/src/interfaces/Grids/row.interface.d.ts +2 -2
- package/dist/src/interfaces/InfiniteScroll/infinite-scroll.interface.d.ts +2 -2
- package/dist/src/interfaces/InlineEdit/inline-edit.interface.d.ts +31 -2
- package/dist/src/interfaces/Input/input.interface.d.ts +4 -3
- package/dist/src/interfaces/Kbd/kbd.interface.d.ts +2 -2
- package/dist/src/interfaces/Label/label.interface.d.ts +2 -2
- package/dist/src/interfaces/List/list-group.interface.d.ts +4 -1
- package/dist/src/interfaces/List/list-item.interface.d.ts +2 -2
- package/dist/src/interfaces/List/list-subheader.interface.d.ts +2 -2
- package/dist/src/interfaces/Media/media-scrubber.interface.d.ts +10 -2
- package/dist/src/interfaces/Messages/messages.interface.d.ts +2 -2
- package/dist/src/interfaces/NumberField/number-field.interface.d.ts +1 -1
- package/dist/src/interfaces/Nuxt/nuxt-module.interface.d.ts +55 -15
- package/dist/src/interfaces/OtpInputField/otp-input-field.interface.d.ts +4 -2
- package/dist/src/interfaces/Pagination/pagination.interface.d.ts +18 -3
- package/dist/src/interfaces/Parallax/parallax.interface.d.ts +2 -2
- package/dist/src/interfaces/PasswordField/password-field.interface.d.ts +1 -1
- package/dist/src/interfaces/Picker/picker-title.interface.d.ts +2 -2
- package/dist/src/interfaces/Progress/progress.interface.d.ts +8 -2
- package/dist/src/interfaces/RatingField/rating-field-item.interface.d.ts +2 -1
- package/dist/src/interfaces/SelectionControl/selection-control-group.interface.d.ts +2 -1
- package/dist/src/interfaces/SelectionControl/selection-control.interface.d.ts +23 -5
- package/dist/src/interfaces/Sheet/sheet.interface.d.ts +2 -2
- package/dist/src/interfaces/Snackbar/snackbar-item.interface.d.ts +2 -2
- package/dist/src/interfaces/SystemBar/system-bar.interface.d.ts +2 -2
- package/dist/src/interfaces/Table/table.interface.d.ts +2 -2
- package/dist/src/interfaces/Tabs/tab.interface.d.ts +7 -2
- package/dist/src/interfaces/TextField/text-field.interface.d.ts +1 -1
- package/dist/src/interfaces/TextMask/text-mask.interface.d.ts +7 -33
- package/dist/src/interfaces/TextareaField/textarea-field.interface.d.ts +3 -3
- package/dist/src/interfaces/Theme/origam-theme.interface.cjs +1 -0
- package/dist/src/interfaces/Theme/origam-theme.interface.d.ts +114 -0
- package/dist/src/interfaces/Theme/origam-theme.interface.js +0 -0
- package/dist/src/interfaces/Timeline/timeline.interface.d.ts +1 -1
- package/dist/src/interfaces/Title/title.interface.d.ts +2 -2
- package/dist/src/interfaces/Toolbar/toolbar.interface.d.ts +2 -2
- package/dist/src/interfaces/Tooltip/tooltip.interface.d.ts +2 -2
- package/dist/src/interfaces/Video/video.interface.d.ts +2 -2
- package/dist/src/interfaces/Window/window.interface.d.ts +2 -2
- 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/nuxt/module.cjs +78 -8
- package/dist/src/nuxt/module.js +81 -9
- package/dist/src/nuxt/plugin.client.cjs +28 -10
- package/dist/src/nuxt/plugin.client.js +28 -10
- package/dist/src/nuxt/plugin.server.cjs +52 -12
- package/dist/src/nuxt/plugin.server.js +55 -13
- package/dist/src/origam.cjs +39 -2
- package/dist/src/origam.d.ts +19 -1
- package/dist/src/origam.js +46 -5
- package/dist/src/services/Commons/date-adapter.service.d.ts +1 -1
- package/dist/src/themes/index.cjs +24 -0
- package/dist/src/themes/index.d.ts +1 -0
- package/dist/src/themes/index.js +1 -0
- package/dist/src/themes/origam.theme.cjs +906 -0
- package/dist/src/themes/origam.theme.d.ts +4 -0
- package/dist/src/themes/origam.theme.js +379 -0
- package/dist/src/types/BottomNav/bottom-nav.type.d.ts +2 -0
- package/dist/src/types/Commons/font-family.type.cjs +1 -0
- package/dist/src/types/Commons/font-family.type.d.ts +5 -0
- package/dist/src/types/Commons/font-family.type.js +0 -0
- package/dist/src/types/Commons/font-size.type.cjs +1 -0
- package/dist/src/types/Commons/font-size.type.d.ts +6 -0
- package/dist/src/types/Commons/font-size.type.js +0 -0
- package/dist/src/types/Commons/font-weight.type.cjs +1 -0
- package/dist/src/types/Commons/font-weight.type.d.ts +5 -0
- package/dist/src/types/Commons/font-weight.type.js +0 -0
- package/dist/src/types/Commons/letter-spacing.type.cjs +1 -0
- package/dist/src/types/Commons/letter-spacing.type.d.ts +5 -0
- package/dist/src/types/Commons/letter-spacing.type.js +0 -0
- package/dist/src/types/Commons/line-height.type.cjs +1 -0
- package/dist/src/types/Commons/line-height.type.d.ts +5 -0
- package/dist/src/types/Commons/line-height.type.js +0 -0
- package/dist/src/types/Commons/mode.type.d.ts +1 -1
- package/dist/src/types/Theme/installed-theme.type.cjs +1 -0
- package/dist/src/types/Theme/installed-theme.type.d.ts +31 -0
- package/dist/src/types/Theme/installed-theme.type.js +0 -0
- package/dist/src/types/Theme/semantic-tree.type.cjs +1 -0
- package/dist/src/types/Theme/semantic-tree.type.d.ts +48 -0
- package/dist/src/types/Theme/semantic-tree.type.js +0 -0
- package/dist/src/types/Theme/theme.type.d.ts +27 -6
- package/dist/src/types/Theme/token-tree.type.cjs +1 -0
- package/dist/src/types/Theme/token-tree.type.d.ts +10 -0
- package/dist/src/types/Theme/token-tree.type.js +0 -0
- package/dist/src/types/index.cjs +88 -0
- package/dist/src/types/index.d.ts +8 -0
- package/dist/src/types/index.js +8 -0
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/dist/src/utils/Bracket/bracket-surface.util.cjs +106 -0
- package/dist/src/utils/Bracket/bracket-surface.util.d.ts +47 -0
- package/dist/src/utils/Bracket/bracket-surface.util.js +88 -0
- package/dist/src/utils/Commons/border.util.d.ts +1 -1
- package/dist/src/utils/Commons/color.util.cjs +4 -2
- package/dist/src/utils/Commons/color.util.js +4 -2
- package/dist/src/utils/Commons/commons.util.cjs +3 -2
- package/dist/src/utils/Commons/commons.util.d.ts +1 -1
- package/dist/src/utils/Commons/commons.util.js +3 -2
- package/dist/src/utils/Commons/date.util.d.ts +1 -1
- package/dist/src/utils/Commons/dom.util.d.ts +1 -1
- package/dist/src/utils/Commons/elevation.util.cjs +1 -1
- package/dist/src/utils/Commons/elevation.util.js +1 -1
- package/dist/src/utils/Commons/forwardRefs.util.cjs +1 -1
- package/dist/src/utils/Commons/forwardRefs.util.js +1 -1
- package/dist/src/utils/Commons/gradient.util.cjs +3 -3
- package/dist/src/utils/Commons/gradient.util.js +1 -1
- package/dist/src/utils/Commons/hover.util.cjs +5 -1
- package/dist/src/utils/Commons/hover.util.js +5 -1
- package/dist/src/utils/Commons/margin.util.d.ts +1 -1
- package/dist/src/utils/Commons/padding.util.d.ts +1 -1
- package/dist/src/utils/Commons/ripple.util.cjs +1 -2
- package/dist/src/utils/Commons/ripple.util.js +2 -3
- package/dist/src/utils/Commons/rounded.util.cjs +5 -0
- package/dist/src/utils/Commons/rounded.util.d.ts +10 -1
- package/dist/src/utils/Commons/rounded.util.js +4 -0
- package/dist/src/utils/DataTable/headers.util.cjs +1 -1
- package/dist/src/utils/DataTable/headers.util.js +1 -1
- package/dist/src/utils/DataTable/sort.util.cjs +2 -2
- package/dist/src/utils/DataTable/sort.util.js +2 -2
- package/dist/src/utils/List/list-item.util.d.ts +7 -0
- package/dist/src/utils/Theme/apply-theme.util.cjs +148 -0
- package/dist/src/utils/Theme/apply-theme.util.d.ts +65 -0
- package/dist/src/utils/Theme/apply-theme.util.js +125 -0
- package/dist/src/utils/Theme/token-name.util.cjs +47 -0
- package/dist/src/utils/Theme/token-name.util.d.ts +54 -0
- package/dist/src/utils/Theme/token-name.util.js +55 -0
- package/dist/src/utils/Transition/transition.util.d.ts +1 -1
- package/dist/src/utils/index.cjs +22 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/index.js +2 -0
- package/package.json +22 -63
- package/CHANGELOG.md +0 -807
- package/README.md +0 -275
- package/dist/src/App.vue +0 -25
- package/dist/src/main.cjs +0 -7
- package/dist/src/main.d.ts +0 -1
- package/dist/src/main.js +0 -4
- /package/dist/src/components/{QRCode → QrCode}/index.cjs +0 -0
- /package/dist/src/components/{QRCode → QrCode}/index.js +0 -0
- /package/dist/src/{components/QRCode/index.d.ts → interfaces/App/app.interface.js} +0 -0
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</component>
|
|
36
36
|
</template>
|
|
37
37
|
|
|
38
|
-
<script setup>
|
|
38
|
+
<script lang="ts" setup>
|
|
39
39
|
import { computed, ref, StyleValue } from "vue";
|
|
40
40
|
import { OrigamBtn } from "../../components";
|
|
41
41
|
import { useLocale, useProps, useStyle } from "../../composables";
|
|
@@ -45,6 +45,7 @@ const props = defineProps({
|
|
|
45
45
|
index: { type: Number, required: false, default: -1 },
|
|
46
46
|
value: { type: Number, required: true },
|
|
47
47
|
label: { type: String, required: false },
|
|
48
|
+
itemAriaLabel: { type: String, required: false, default: "origam.rating.ariaLabel.item" },
|
|
48
49
|
showStar: { type: Boolean, required: false, default: true },
|
|
49
50
|
isFilled: { type: Boolean, required: false },
|
|
50
51
|
isHovered: { type: Boolean, required: false },
|
|
@@ -55,7 +56,7 @@ const props = defineProps({
|
|
|
55
56
|
emptyIcon: { type: null, required: false, default: MDI_ICONS.STAR_OUTLINE },
|
|
56
57
|
halfIncrements: { type: Boolean, required: false },
|
|
57
58
|
checked: { type: Boolean, required: false },
|
|
58
|
-
length: { type: Number, required: false },
|
|
59
|
+
length: { type: [Number, String], required: false },
|
|
59
60
|
id: { type: String, required: false },
|
|
60
61
|
class: { type: [String, Array, Object], required: false },
|
|
61
62
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -166,10 +167,6 @@ defineExpose({
|
|
|
166
167
|
width: 0;
|
|
167
168
|
}
|
|
168
169
|
|
|
169
|
-
&--full {
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
|
|
173
170
|
&--half {
|
|
174
171
|
overflow: hidden;
|
|
175
172
|
position: absolute;
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
<template #default>
|
|
84
84
|
<origam-list
|
|
85
85
|
v-if="hasList"
|
|
86
|
-
ref="origamListRef"
|
|
87
86
|
:id="listboxId"
|
|
87
|
+
ref="origamListRef"
|
|
88
88
|
:select-strategy="multiple ? SELECT_STRATEGY.INDEPENDENT : SELECT_STRATEGY.SINGLE_INDEPENDENT"
|
|
89
89
|
:selected="selectedValues"
|
|
90
90
|
:tabindex="-1"
|
|
@@ -149,13 +149,13 @@
|
|
|
149
149
|
</template>
|
|
150
150
|
<template v-else>
|
|
151
151
|
<span class="origam-select__unmask">
|
|
152
|
-
{{ item.title.substr(0,
|
|
152
|
+
{{ item.title.substr(0, getMatchStart(item)) }}
|
|
153
153
|
</span>
|
|
154
154
|
<span class="origam-select__mask">
|
|
155
|
-
{{ item.title.substr(
|
|
155
|
+
{{ item.title.substr(getMatchStart(item), getSearchLength()) }}
|
|
156
156
|
</span>
|
|
157
157
|
<span class="origam-select__unmask">
|
|
158
|
-
{{ item.title.substr(
|
|
158
|
+
{{ item.title.substr(getMatchStart(item) + getSearchLength()) }}
|
|
159
159
|
</span>
|
|
160
160
|
</template>
|
|
161
161
|
</template>
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
</origam-text-field>
|
|
261
261
|
</template>
|
|
262
262
|
|
|
263
|
-
<script setup>
|
|
263
|
+
<script lang="ts" setup>
|
|
264
264
|
import {
|
|
265
265
|
computed,
|
|
266
266
|
getCurrentInstance,
|
|
@@ -359,6 +359,8 @@ const props = defineProps({
|
|
|
359
359
|
reverse: { type: Boolean, required: false },
|
|
360
360
|
singleLine: { type: Boolean, required: false },
|
|
361
361
|
required: { type: Boolean, required: false },
|
|
362
|
+
activeColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
363
|
+
activeBgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
362
364
|
loading: { type: [Boolean, Number, Object], required: false },
|
|
363
365
|
loadingText: { type: String, required: false },
|
|
364
366
|
tag: { type: String, required: false },
|
|
@@ -400,6 +402,11 @@ const props = defineProps({
|
|
|
400
402
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
401
403
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
402
404
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
405
|
+
fontFamily: { type: String, required: false },
|
|
406
|
+
fontSize: { type: String, required: false },
|
|
407
|
+
fontWeight: { type: String, required: false },
|
|
408
|
+
lineHeight: { type: String, required: false },
|
|
409
|
+
letterSpacing: { type: String, required: false },
|
|
403
410
|
active: { type: [Boolean, Object], required: false },
|
|
404
411
|
activeClass: { type: String, required: false },
|
|
405
412
|
variant: { type: null, required: false },
|
|
@@ -438,8 +445,8 @@ const props = defineProps({
|
|
|
438
445
|
transition: { type: [Boolean, String, Object], required: false, default: () => ({ component: OrigamTranslateScale }) },
|
|
439
446
|
customFilter: { type: Function, required: false },
|
|
440
447
|
customKeyFilter: { type: Object, required: false },
|
|
441
|
-
filterKeys: { type: [String, Array], required:
|
|
442
|
-
filterMode: { type: null, required:
|
|
448
|
+
filterKeys: { type: [String, Array], required: false, default: () => ["title"] },
|
|
449
|
+
filterMode: { type: null, required: false, default: FILTERS_MODE.INTERSECTION },
|
|
443
450
|
noFilter: { type: Boolean, required: false },
|
|
444
451
|
eager: { type: Boolean, required: false }
|
|
445
452
|
});
|
|
@@ -557,6 +564,8 @@ const menuListItemProps = (item, itemRef, index) => {
|
|
|
557
564
|
const isSelected = (item) => {
|
|
558
565
|
return selectedValues.value.includes(item.value);
|
|
559
566
|
};
|
|
567
|
+
const getMatchStart = (item) => Number(getMatches(item)?.title ?? 0);
|
|
568
|
+
const getSearchLength = () => (search.value ?? "").length;
|
|
560
569
|
const {
|
|
561
570
|
onListScroll: handleListScroll,
|
|
562
571
|
onListKeydown: handleListKeydown
|
|
@@ -612,8 +621,8 @@ const handleMousedownMenuIcon = (e) => {
|
|
|
612
621
|
if (isFocused.value) {
|
|
613
622
|
e.preventDefault();
|
|
614
623
|
e.stopPropagation();
|
|
624
|
+
menu.value = !menu.value;
|
|
615
625
|
}
|
|
616
|
-
menu.value = !menu.value;
|
|
617
626
|
};
|
|
618
627
|
const handleKeydown = (e) => {
|
|
619
628
|
if (!e.key || props.readonly || form?.isReadonly.value) return;
|
|
@@ -674,13 +683,13 @@ const handleKeydown = (e) => {
|
|
|
674
683
|
}
|
|
675
684
|
if (!props.multiple) return;
|
|
676
685
|
if (e.key === KEYBOARD_VALUES.LEFT) {
|
|
677
|
-
if (selectionIndex.value < 0 && selectionStart > 0) return;
|
|
686
|
+
if (selectionIndex.value < 0 && (selectionStart ?? 0) > 0) return;
|
|
678
687
|
const prev = selectionIndex.value > -1 ? selectionIndex.value - 1 : length - 1;
|
|
679
688
|
if (model.value[prev]) {
|
|
680
689
|
selectionIndex.value = prev;
|
|
681
690
|
} else {
|
|
682
691
|
selectionIndex.value = -1;
|
|
683
|
-
origamTextFieldRef.value?.setSelectionRange(search.value?.length, search.value?.length);
|
|
692
|
+
origamTextFieldRef.value?.setSelectionRange(search.value?.length ?? null, search.value?.length ?? null);
|
|
684
693
|
}
|
|
685
694
|
}
|
|
686
695
|
if (e.key === KEYBOARD_VALUES.RIGHT) {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
</div>
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
|
-
<script setup>
|
|
67
|
+
<script lang="ts" setup>
|
|
68
68
|
import { computed, inject, nextTick, ref, shallowRef, StyleValue, useAttrs } from "vue";
|
|
69
69
|
import { ORIGAM_SELECTION_CONTROL_GROUP_KEY } from "../../consts";
|
|
70
70
|
import { OrigamIcon, OrigamLabel } from "../../components";
|
|
@@ -86,11 +86,13 @@ const _props = defineProps({
|
|
|
86
86
|
falseValue: { type: null, required: false },
|
|
87
87
|
value: { type: null, required: false },
|
|
88
88
|
required: { type: Boolean, required: false },
|
|
89
|
+
activeColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
90
|
+
activeBgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
89
91
|
id: { type: String, required: false },
|
|
90
92
|
class: { type: [String, Array, Object], required: false },
|
|
91
93
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
92
94
|
disabled: { type: Boolean, required: false },
|
|
93
|
-
error: { type: Boolean, required: false },
|
|
95
|
+
error: { type: [String, Boolean], required: false },
|
|
94
96
|
inline: { type: Boolean, required: false },
|
|
95
97
|
falseIcon: { type: null, required: false },
|
|
96
98
|
trueIcon: { type: null, required: false },
|
|
@@ -263,8 +265,8 @@ defineExpose(forwardRefs({
|
|
|
263
265
|
}
|
|
264
266
|
|
|
265
267
|
&__wrapper {
|
|
266
|
-
width: calc(40px + 1.5 * var(--origam-selection-control--density));
|
|
267
|
-
height: calc(40px + 1.5 * var(--origam-selection-control--density));
|
|
268
|
+
width: calc(40px + 1.5 * var(--origam-selection-control--density, 0px));
|
|
269
|
+
height: calc(40px + 1.5 * var(--origam-selection-control--density, 0px));
|
|
268
270
|
display: inline-flex;
|
|
269
271
|
align-items: center;
|
|
270
272
|
position: relative;
|
|
@@ -273,8 +275,8 @@ defineExpose(forwardRefs({
|
|
|
273
275
|
}
|
|
274
276
|
|
|
275
277
|
&__input {
|
|
276
|
-
width: calc(40px + 1.5 * var(--origam-selection-control--density));
|
|
277
|
-
height: calc(40px + 1.5 * var(--origam-selection-control--density));
|
|
278
|
+
width: calc(40px + 1.5 * var(--origam-selection-control--density, 0px));
|
|
279
|
+
height: calc(40px + 1.5 * var(--origam-selection-control--density, 0px));
|
|
278
280
|
align-items: center;
|
|
279
281
|
display: flex;
|
|
280
282
|
flex: none;
|
|
@@ -382,5 +384,9 @@ defineExpose(forwardRefs({
|
|
|
382
384
|
&--density-compact {
|
|
383
385
|
--origam-selection-control--density: -8px;
|
|
384
386
|
}
|
|
387
|
+
|
|
388
|
+
&--density-comfortable {
|
|
389
|
+
--origam-selection-control--density: 8px;
|
|
390
|
+
}
|
|
385
391
|
}
|
|
386
392
|
</style>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
</div>
|
|
30
30
|
</template>
|
|
31
31
|
|
|
32
|
-
<script setup>
|
|
32
|
+
<script lang="ts" setup>
|
|
33
33
|
import { computed, onScopeDispose, provide, StyleValue } from "vue";
|
|
34
34
|
import { OrigamDefaultsProvider } from "../../components";
|
|
35
35
|
import {
|
|
@@ -42,7 +42,7 @@ import { DENSITY } from "../../enums";
|
|
|
42
42
|
import { getUid } from "../../utils";
|
|
43
43
|
const props = defineProps({
|
|
44
44
|
disabled: { type: Boolean, required: false },
|
|
45
|
-
error: { type: Boolean, required: false },
|
|
45
|
+
error: { type: [String, Boolean], required: false },
|
|
46
46
|
inline: { type: Boolean, required: false },
|
|
47
47
|
falseIcon: { type: null, required: false },
|
|
48
48
|
trueIcon: { type: null, required: false },
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
tabindex="0"
|
|
17
17
|
aria-label="Drag handle"
|
|
18
18
|
data-cy="sheet-bottom-handle"
|
|
19
|
+
@keydown.enter.prevent="onActive"
|
|
20
|
+
@keydown.space.prevent="onActive"
|
|
19
21
|
>
|
|
20
22
|
<span class="origam-sheet__handle-pill"/>
|
|
21
23
|
</div>
|
|
@@ -24,7 +26,7 @@
|
|
|
24
26
|
</component>
|
|
25
27
|
</template>
|
|
26
28
|
|
|
27
|
-
<script setup>
|
|
29
|
+
<script lang="ts" setup>
|
|
28
30
|
import { computed, ref, StyleValue, toRef, watch } from "vue";
|
|
29
31
|
import {
|
|
30
32
|
useActive,
|
|
@@ -65,6 +67,7 @@ const props = defineProps({
|
|
|
65
67
|
marginBlock: { type: [Boolean, Number, String], required: false },
|
|
66
68
|
marginInline: { type: [Boolean, Number, String], required: false },
|
|
67
69
|
color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
70
|
+
bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
68
71
|
border: { type: [Boolean, Number, String, Array], required: false, skipCheck: true },
|
|
69
72
|
borderTop: { type: [Boolean, Number, String], required: false },
|
|
70
73
|
borderLeft: { type: [Boolean, Number, String], required: false },
|
|
@@ -98,7 +101,10 @@ const props = defineProps({
|
|
|
98
101
|
});
|
|
99
102
|
const emit = defineEmits(["update:snap", "update:open"]);
|
|
100
103
|
const { filterProps } = useProps(props);
|
|
101
|
-
const { colorClasses, colorStyles } = useBothColor(
|
|
104
|
+
const { colorClasses, colorStyles } = useBothColor(
|
|
105
|
+
toRef(props, "bgColor"),
|
|
106
|
+
toRef(props, "color")
|
|
107
|
+
);
|
|
102
108
|
const { isHover, hoverState, hoverClasses, onMouseenter, onMouseleave } = useHover(props);
|
|
103
109
|
const { isActive, activeState, activeClasses, onActive } = useActive(props);
|
|
104
110
|
const {
|
|
@@ -261,6 +267,8 @@ defineExpose({
|
|
|
261
267
|
margin-inline-end: var(--origam-sheet---margin-inline-end);
|
|
262
268
|
|
|
263
269
|
background: var(--origam-sheet---background);
|
|
270
|
+
backdrop-filter: var(--origam-sheet---backdrop-filter, none);
|
|
271
|
+
-webkit-backdrop-filter: var(--origam-sheet---backdrop-filter, none);
|
|
264
272
|
box-shadow: var(--origam-sheet---box-shadow);
|
|
265
273
|
color: var(--origam-sheet---color);
|
|
266
274
|
|
|
@@ -269,7 +277,7 @@ defineExpose({
|
|
|
269
277
|
--origam-sheet---border-right-width: var(--origam-border__width---thin, 1px);
|
|
270
278
|
--origam-sheet---border-bottom-width: var(--origam-border__width---thin, 1px);
|
|
271
279
|
--origam-sheet---border-left-width: var(--origam-border__width---thin, 1px);
|
|
272
|
-
box-shadow: var(--origam-sheet--border---box-shadow);
|
|
280
|
+
box-shadow: var(--origam-sheet--border---box-shadow, var(--origam-sheet---box-shadow));
|
|
273
281
|
}
|
|
274
282
|
|
|
275
283
|
&--rounded {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
/>
|
|
46
46
|
</template>
|
|
47
47
|
|
|
48
|
-
<script setup>
|
|
48
|
+
<script lang="ts" setup>
|
|
49
49
|
import {
|
|
50
50
|
useBothColor,
|
|
51
51
|
useProps,
|
|
@@ -115,9 +115,7 @@ const skeletonContainerClasses = computed(() => [
|
|
|
115
115
|
`origam-skeleton-wrapper--${props.variant}`,
|
|
116
116
|
props.class
|
|
117
117
|
]);
|
|
118
|
-
const skeletonContainerStyles = computed(() => [
|
|
119
|
-
props.style
|
|
120
|
-
]);
|
|
118
|
+
const skeletonContainerStyles = computed(() => [props.style]);
|
|
121
119
|
const skeletonClasses = computed(() => [
|
|
122
120
|
"origam-skeleton",
|
|
123
121
|
`origam-skeleton--${props.variant}`,
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
</section>
|
|
419
419
|
</template>
|
|
420
420
|
|
|
421
|
-
<script setup>
|
|
421
|
+
<script lang="ts" setup>
|
|
422
422
|
import { computed, ref, StyleValue, useSlots, WritableComputedRef } from "vue";
|
|
423
423
|
import { OrigamInput, OrigamLabel, OrigamSliderFieldTrack } from "../../components";
|
|
424
424
|
import {
|
|
@@ -516,6 +516,11 @@ const props = defineProps({
|
|
|
516
516
|
prependAvatar: { type: String, required: false },
|
|
517
517
|
prependIcon: { type: null, required: false },
|
|
518
518
|
size: { type: null, required: false },
|
|
519
|
+
fontFamily: { type: String, required: false },
|
|
520
|
+
fontSize: { type: String, required: false },
|
|
521
|
+
fontWeight: { type: String, required: false },
|
|
522
|
+
lineHeight: { type: String, required: false },
|
|
523
|
+
letterSpacing: { type: String, required: false },
|
|
519
524
|
ripple: { type: [Boolean, Object], required: false }
|
|
520
525
|
});
|
|
521
526
|
const emits = defineEmits(["start", "end", "update:modelValue", "update:focused"]);
|
|
@@ -704,11 +709,7 @@ const handleSingleInput = (e) => {
|
|
|
704
709
|
const v = roundValue(target.value);
|
|
705
710
|
model.value = v;
|
|
706
711
|
};
|
|
707
|
-
const handleSingleChange =
|
|
708
|
-
const target = e.target;
|
|
709
|
-
const v = roundValue(target.value);
|
|
710
|
-
model.value = v;
|
|
711
|
-
};
|
|
712
|
+
const handleSingleChange = handleSingleInput;
|
|
712
713
|
const handleRangeStartInput = (e) => {
|
|
713
714
|
const target = e.target;
|
|
714
715
|
lastInteracted.value = "start";
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
</origam-overlay>
|
|
75
75
|
</template>
|
|
76
76
|
|
|
77
|
-
<script setup>
|
|
77
|
+
<script lang="ts" setup>
|
|
78
78
|
import {
|
|
79
79
|
computed,
|
|
80
80
|
inject,
|
|
@@ -83,7 +83,6 @@ import {
|
|
|
83
83
|
ref,
|
|
84
84
|
shallowRef,
|
|
85
85
|
StyleValue,
|
|
86
|
-
toRef,
|
|
87
86
|
useSlots,
|
|
88
87
|
watch,
|
|
89
88
|
watchEffect
|
|
@@ -202,7 +201,7 @@ const slots = useSlots();
|
|
|
202
201
|
const isActive = useVModel(props, "modelValue");
|
|
203
202
|
const { positionClasses } = usePosition(props);
|
|
204
203
|
const { scopeId } = useScopeId();
|
|
205
|
-
const { icon, statusClasses } = useStatus(props);
|
|
204
|
+
const { icon, statusClasses, statusIntent } = useStatus(props);
|
|
206
205
|
const origamOverlayRef = ref();
|
|
207
206
|
const isHovering = shallowRef(false);
|
|
208
207
|
const startY = shallowRef(0);
|
|
@@ -253,7 +252,9 @@ const snackbarIntent = computed(() => {
|
|
|
253
252
|
if (!props.status) return void 0;
|
|
254
253
|
return props.status;
|
|
255
254
|
});
|
|
256
|
-
const
|
|
255
|
+
const statusBgColor = computed(() => statusIntent.value ?? props.bgColor);
|
|
256
|
+
const statusColor = computed(() => statusIntent.value ? void 0 : props.color);
|
|
257
|
+
const { colorClasses, colorStyles } = useBothColor(statusBgColor, statusColor);
|
|
257
258
|
const {
|
|
258
259
|
roundedClasses,
|
|
259
260
|
roundedStyles,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
+
v-contrast
|
|
3
4
|
:aria-atomic="true"
|
|
4
5
|
:aria-live="resolvedAriaLive"
|
|
5
6
|
:class="itemClasses"
|
|
6
7
|
:data-cy="dataCy"
|
|
7
8
|
:role="resolvedRole"
|
|
9
|
+
:style="typographyStyles"
|
|
8
10
|
>
|
|
9
11
|
<div class="origam-snackbar-item__content">
|
|
10
12
|
<div
|
|
@@ -43,39 +45,37 @@
|
|
|
43
45
|
class="origam-snackbar-item__actions"
|
|
44
46
|
>
|
|
45
47
|
<slot name="actions">
|
|
46
|
-
<
|
|
48
|
+
<origam-btn
|
|
47
49
|
v-for="(action, index) in actions"
|
|
48
50
|
:key="index"
|
|
49
|
-
:
|
|
51
|
+
:color="action.intent ?? 'primary'"
|
|
50
52
|
:data-cy="`${dataCy}-action-${index}`"
|
|
51
|
-
|
|
53
|
+
:text="action.label"
|
|
54
|
+
class="origam-snackbar-item__action"
|
|
55
|
+
variant="text"
|
|
52
56
|
@click="handleActionClick(action)"
|
|
53
|
-
|
|
54
|
-
{{ action.label }}
|
|
55
|
-
</button>
|
|
57
|
+
/>
|
|
56
58
|
</slot>
|
|
57
59
|
</div>
|
|
58
60
|
|
|
59
|
-
<
|
|
61
|
+
<origam-btn
|
|
60
62
|
v-if="dismissible !== false"
|
|
61
63
|
:aria-label="dismissLabel"
|
|
62
64
|
:data-cy="`${dataCy}-dismiss`"
|
|
65
|
+
:icon="MDI_ICONS.CLOSE"
|
|
63
66
|
class="origam-snackbar-item__dismiss"
|
|
64
|
-
|
|
67
|
+
size="x-small"
|
|
68
|
+
variant="text"
|
|
65
69
|
@click="emit('dismiss')"
|
|
66
|
-
|
|
67
|
-
<origam-icon
|
|
68
|
-
:icon="MDI_ICONS.CLOSE"
|
|
69
|
-
:size="18"
|
|
70
|
-
/>
|
|
71
|
-
</button>
|
|
70
|
+
/>
|
|
72
71
|
</div>
|
|
73
72
|
</template>
|
|
74
73
|
|
|
75
|
-
<script setup>
|
|
74
|
+
<script lang="ts" setup>
|
|
76
75
|
import { computed, useSlots } from "vue";
|
|
77
|
-
import { OrigamIcon } from "../../components";
|
|
78
|
-
import { useProps } from "../../composables";
|
|
76
|
+
import { OrigamBtn, OrigamIcon } from "../../components";
|
|
77
|
+
import { useLocale, useProps, useTypography } from "../../composables";
|
|
78
|
+
import { vContrast } from "../../directives";
|
|
79
79
|
import { MDI_ICONS } from "../../enums";
|
|
80
80
|
const props = defineProps({
|
|
81
81
|
intent: { type: String, required: false, default: "info" },
|
|
@@ -84,15 +84,23 @@ const props = defineProps({
|
|
|
84
84
|
icon: { type: [String, Array, Boolean], required: false, skipCheck: true },
|
|
85
85
|
actions: { type: Array, required: false },
|
|
86
86
|
dismissible: { type: Boolean, required: false, default: true },
|
|
87
|
-
dismissLabel: { type: String, required: false, default:
|
|
87
|
+
dismissLabel: { type: String, required: false, default: void 0 },
|
|
88
88
|
role: { type: String, required: false },
|
|
89
89
|
ariaLive: { type: String, required: false },
|
|
90
90
|
dataCy: { type: String, required: false },
|
|
91
91
|
id: { type: String, required: false },
|
|
92
92
|
class: { type: [String, Array, Object], required: false },
|
|
93
|
-
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true }
|
|
93
|
+
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
94
|
+
fontFamily: { type: String, required: false },
|
|
95
|
+
fontSize: { type: String, required: false },
|
|
96
|
+
fontWeight: { type: String, required: false },
|
|
97
|
+
lineHeight: { type: String, required: false },
|
|
98
|
+
letterSpacing: { type: String, required: false }
|
|
94
99
|
});
|
|
100
|
+
const { t } = useLocale();
|
|
101
|
+
const dismissLabel = computed(() => props.dismissLabel ?? t("origam.snackbar.dismiss", "Dismiss notification"));
|
|
95
102
|
const { filterProps } = useProps(props);
|
|
103
|
+
const { typographyStyles } = useTypography(props, "snackbar-item");
|
|
96
104
|
const slots = useSlots();
|
|
97
105
|
const emit = defineEmits(["dismiss", "action"]);
|
|
98
106
|
const INTENT_ICONS = {
|
|
@@ -124,13 +132,6 @@ const hasMessage = computed(() => {
|
|
|
124
132
|
const hasActions = computed(() => {
|
|
125
133
|
return Array.isArray(props.actions) && props.actions.length > 0 || !!slots["actions"];
|
|
126
134
|
});
|
|
127
|
-
const actionClasses = (action) => {
|
|
128
|
-
const intent = action.intent ?? "primary";
|
|
129
|
-
return [
|
|
130
|
-
"origam-snackbar-item__action",
|
|
131
|
-
`origam-snackbar-item__action--intent-${intent}`
|
|
132
|
-
];
|
|
133
|
-
};
|
|
134
135
|
const handleActionClick = (action) => {
|
|
135
136
|
emit("action", action);
|
|
136
137
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<nav
|
|
3
3
|
:id="id"
|
|
4
|
+
v-contrast
|
|
4
5
|
:class="stepperClasses"
|
|
5
|
-
aria-label="Progress steps"
|
|
6
|
+
:aria-label="t('origam.stepper.progressSteps', 'Progress steps')"
|
|
6
7
|
>
|
|
7
8
|
<slot name="default">
|
|
8
9
|
<template v-if="hasItems">
|
|
@@ -29,14 +30,16 @@
|
|
|
29
30
|
</nav>
|
|
30
31
|
</template>
|
|
31
32
|
|
|
32
|
-
<script setup>
|
|
33
|
+
<script lang="ts" setup>
|
|
33
34
|
import { computed, provide, ref, StyleValue, useSlots, watch } from "vue";
|
|
34
35
|
import { OrigamStepperItem } from "../../components";
|
|
35
36
|
import { ORIGAM_STEPPER_KEY } from "../../consts";
|
|
36
37
|
import { DENSITY, SIZES } from "../../enums";
|
|
38
|
+
import { vContrast } from "../../directives";
|
|
37
39
|
import {
|
|
38
40
|
useDensity,
|
|
39
41
|
useDimension,
|
|
42
|
+
useLocale,
|
|
40
43
|
useProps,
|
|
41
44
|
useSize,
|
|
42
45
|
useStateEffect,
|
|
@@ -91,6 +94,7 @@ const props = defineProps({
|
|
|
91
94
|
borderColor: { type: String, required: false },
|
|
92
95
|
borderStyle: { type: String, required: false }
|
|
93
96
|
});
|
|
97
|
+
const { t } = useLocale();
|
|
94
98
|
const emit = defineEmits(["update:modelValue"]);
|
|
95
99
|
const { filterProps } = useProps(props);
|
|
96
100
|
const slots = useSlots();
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
:class="itemClasses"
|
|
5
5
|
:type="isClickable ? 'button' : undefined"
|
|
6
6
|
:aria-current="resolvedStatus === 'active' ? 'step' : undefined"
|
|
7
|
-
:aria-label="
|
|
7
|
+
:aria-label="stepAriaLabel"
|
|
8
8
|
:disabled="isClickable && resolvedStatus === 'active' ? true : undefined"
|
|
9
9
|
@click="handleClick"
|
|
10
10
|
>
|
|
11
11
|
<span
|
|
12
|
+
v-contrast
|
|
12
13
|
:class="indicatorClasses"
|
|
13
14
|
aria-hidden="true"
|
|
14
15
|
>
|
|
@@ -39,12 +40,13 @@
|
|
|
39
40
|
</component>
|
|
40
41
|
</template>
|
|
41
42
|
|
|
42
|
-
<script setup>
|
|
43
|
+
<script lang="ts" setup>
|
|
43
44
|
import { computed, inject } from "vue";
|
|
44
45
|
import { OrigamIcon } from "../../components";
|
|
45
46
|
import { ORIGAM_STEPPER_KEY } from "../../consts";
|
|
46
47
|
import { MDI_ICONS } from "../../enums";
|
|
47
|
-
import { useProps } from "../../composables";
|
|
48
|
+
import { useLocale, useProps } from "../../composables";
|
|
49
|
+
import { vContrast } from "../../directives";
|
|
48
50
|
const props = defineProps({
|
|
49
51
|
index: { type: Number, required: false, default: 0 },
|
|
50
52
|
title: { type: String, required: false },
|
|
@@ -56,6 +58,11 @@ const props = defineProps({
|
|
|
56
58
|
class: { type: [String, Array, Object], required: false },
|
|
57
59
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true }
|
|
58
60
|
});
|
|
61
|
+
const { t } = useLocale();
|
|
62
|
+
const stepAriaLabel = computed(() => {
|
|
63
|
+
if (!props.title) return void 0;
|
|
64
|
+
return t("origam.stepper.stepAriaLabel", (props.index ?? 0) + 1, props.title);
|
|
65
|
+
});
|
|
59
66
|
const emit = defineEmits(["click"]);
|
|
60
67
|
const { filterProps } = useProps(props);
|
|
61
68
|
const stepper = inject(ORIGAM_STEPPER_KEY);
|