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
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import type { ISticky } from "../../interfaces";
|
|
2
|
+
import type { CSSProperties } from 'vue';
|
|
2
3
|
/*********************************************************
|
|
3
4
|
* useSticky
|
|
4
5
|
********************************************************/
|
|
5
6
|
export declare function useSticky({ rootEl, isSticky, layoutItemStyles }: ISticky): {
|
|
6
7
|
isStuck: import("vue").ShallowRef<boolean | "top" | "bottom", boolean | "top" | "bottom">;
|
|
7
|
-
stickyStyles: import("vue").ComputedRef<(
|
|
8
|
-
top: string;
|
|
9
|
-
bottom: string;
|
|
10
|
-
height: undefined;
|
|
11
|
-
} | {
|
|
12
|
-
[x: string]: string;
|
|
13
|
-
top?: undefined;
|
|
14
|
-
bottom?: undefined;
|
|
15
|
-
height?: undefined;
|
|
16
|
-
} | {
|
|
17
|
-
top: import("csstype").Property.Top<string | number> | undefined;
|
|
18
|
-
bottom?: undefined;
|
|
19
|
-
height?: undefined;
|
|
20
|
-
} | undefined)[]>;
|
|
8
|
+
stickyStyles: import("vue").ComputedRef<(CSSProperties | undefined)[]>;
|
|
21
9
|
};
|
|
@@ -56,12 +56,14 @@ function useStyle(styles, uniq = void 0, name = (0, _utils.getCurrentInstanceNam
|
|
|
56
56
|
return uniq ?? `${name}-${(0, _utils.getUid)()}`;
|
|
57
57
|
});
|
|
58
58
|
const customCss = (0, _vue.computed)(() => {
|
|
59
|
-
const
|
|
60
|
-
|
|
59
|
+
const raw = styles.value;
|
|
60
|
+
const normalized = Array.isArray(raw) ? raw : [raw];
|
|
61
|
+
const stylesArray = normalized.map(value => {
|
|
62
|
+
if (typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
61
63
|
return Object.keys(value).filter(key => typeof value[key] !== "undefined").map(key => `${key}: ${value[key]}`);
|
|
62
64
|
}
|
|
63
65
|
return value;
|
|
64
|
-
}).flat().filter(value => value.length > 0);
|
|
66
|
+
}).flat().filter(value => value != null && String(value).length > 0);
|
|
65
67
|
return `#${id.value} {${stylesArray.join(";")}}`;
|
|
66
68
|
});
|
|
67
69
|
const {
|
|
@@ -58,12 +58,14 @@ export function useStyle(styles, uniq = void 0, name = getCurrentInstanceName())
|
|
|
58
58
|
return uniq ?? `${name}-${getUid()}`;
|
|
59
59
|
});
|
|
60
60
|
const customCss = computed(() => {
|
|
61
|
-
const
|
|
62
|
-
|
|
61
|
+
const raw = styles.value;
|
|
62
|
+
const normalized = Array.isArray(raw) ? raw : [raw];
|
|
63
|
+
const stylesArray = normalized.map((value) => {
|
|
64
|
+
if (typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
63
65
|
return Object.keys(value).filter((key) => typeof value[key] !== "undefined").map((key) => `${key}: ${value[key]}`);
|
|
64
66
|
}
|
|
65
67
|
return value;
|
|
66
|
-
}).flat().filter((value) => value.length > 0);
|
|
68
|
+
}).flat().filter((value) => value != null && String(value).length > 0);
|
|
67
69
|
return `#${id.value} {${stylesArray.join(";")}}`;
|
|
68
70
|
});
|
|
69
71
|
const { id: styleTagId, css, load, unload, isLoaded } = useStyleTag(customCss);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useTypography = useTypography;
|
|
7
|
+
var _vue = require("vue");
|
|
8
|
+
const TYPOGRAPHY_TOKEN_MAP = [["fontFamily", "font-family", "font__family"], ["fontSize", "font-size", "font__size"], ["fontWeight", "font-weight", "font__weight"], ["lineHeight", "line-height", "font__lineHeight"], ["letterSpacing", "letter-spacing", "font__letterSpacing"]];
|
|
9
|
+
function useTypography(props, varPrefix) {
|
|
10
|
+
const typographyStyles = (0, _vue.computed)(() => {
|
|
11
|
+
const styles = {};
|
|
12
|
+
for (const [propKey, cssProp, tokenGroup] of TYPOGRAPHY_TOKEN_MAP) {
|
|
13
|
+
const value = props[propKey];
|
|
14
|
+
if (value) {
|
|
15
|
+
styles[`--origam-${varPrefix}---${cssProp}`] = `var(--origam-${tokenGroup}---${value})`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return Object.keys(styles).length ? styles : null;
|
|
19
|
+
});
|
|
20
|
+
return {
|
|
21
|
+
typographyStyles
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ITypographyProps } from '../../interfaces';
|
|
2
|
+
/*********************************************************
|
|
3
|
+
* useTypography
|
|
4
|
+
********************************************************/
|
|
5
|
+
export declare function useTypography(props: ITypographyProps, varPrefix: string): {
|
|
6
|
+
typographyStyles: import("vue").ComputedRef<Record<string, string> | null>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
const TYPOGRAPHY_TOKEN_MAP = [
|
|
3
|
+
["fontFamily", "font-family", "font__family"],
|
|
4
|
+
["fontSize", "font-size", "font__size"],
|
|
5
|
+
["fontWeight", "font-weight", "font__weight"],
|
|
6
|
+
["lineHeight", "line-height", "font__lineHeight"],
|
|
7
|
+
["letterSpacing", "letter-spacing", "font__letterSpacing"]
|
|
8
|
+
];
|
|
9
|
+
export function useTypography(props, varPrefix) {
|
|
10
|
+
const typographyStyles = computed(() => {
|
|
11
|
+
const styles = {};
|
|
12
|
+
for (const [propKey, cssProp, tokenGroup] of TYPOGRAPHY_TOKEN_MAP) {
|
|
13
|
+
const value = props[propKey];
|
|
14
|
+
if (value) {
|
|
15
|
+
styles[`--origam-${varPrefix}---${cssProp}`] = `var(--origam-${tokenGroup}---${value})`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return Object.keys(styles).length ? styles : null;
|
|
19
|
+
});
|
|
20
|
+
return { typographyStyles };
|
|
21
|
+
}
|
|
@@ -27,97 +27,7 @@ export declare function createHeaders(props: IDataTableHeaderProps, options?: {
|
|
|
27
27
|
sort?: TDataTableCompareFunction | undefined;
|
|
28
28
|
filter?: import("../../types").TFilterFunction | undefined;
|
|
29
29
|
title?: string | undefined;
|
|
30
|
-
align?:
|
|
31
|
-
readonly [x: number]: string;
|
|
32
|
-
[Symbol.iterator]: () => StringIterator<string>;
|
|
33
|
-
small: () => string;
|
|
34
|
-
fixed: () => string;
|
|
35
|
-
replace: {
|
|
36
|
-
(searchValue: string | RegExp, replaceValue: string): string;
|
|
37
|
-
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
38
|
-
(searchValue: {
|
|
39
|
-
[Symbol.replace](string: string, replaceValue: string): string;
|
|
40
|
-
}, replaceValue: string): string;
|
|
41
|
-
(searchValue: {
|
|
42
|
-
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
43
|
-
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
44
|
-
};
|
|
45
|
-
search: {
|
|
46
|
-
(regexp: string | RegExp): number;
|
|
47
|
-
(searcher: {
|
|
48
|
-
[Symbol.search](string: string): number;
|
|
49
|
-
}): number;
|
|
50
|
-
};
|
|
51
|
-
bold: () => string;
|
|
52
|
-
link: (url: string) => string;
|
|
53
|
-
charAt: (pos: number) => string;
|
|
54
|
-
charCodeAt: (index: number) => number;
|
|
55
|
-
concat: (...strings: string[]) => string;
|
|
56
|
-
indexOf: (searchString: string, position?: number) => number;
|
|
57
|
-
lastIndexOf: (searchString: string, position?: number) => number;
|
|
58
|
-
localeCompare: {
|
|
59
|
-
(that: string): number;
|
|
60
|
-
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
61
|
-
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
62
|
-
};
|
|
63
|
-
match: {
|
|
64
|
-
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
65
|
-
(matcher: {
|
|
66
|
-
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
67
|
-
}): RegExpMatchArray | null;
|
|
68
|
-
};
|
|
69
|
-
slice: (start?: number, end?: number) => string;
|
|
70
|
-
split: {
|
|
71
|
-
(separator: string | RegExp, limit?: number): string[];
|
|
72
|
-
(splitter: {
|
|
73
|
-
[Symbol.split](string: string, limit?: number): string[];
|
|
74
|
-
}, limit?: number): string[];
|
|
75
|
-
};
|
|
76
|
-
substring: (start: number, end?: number) => string;
|
|
77
|
-
toLowerCase: () => string;
|
|
78
|
-
toLocaleLowerCase: {
|
|
79
|
-
(locales?: string | string[]): string;
|
|
80
|
-
(locales?: Intl.LocalesArgument): string;
|
|
81
|
-
};
|
|
82
|
-
toUpperCase: () => string;
|
|
83
|
-
toLocaleUpperCase: {
|
|
84
|
-
(locales?: string | string[]): string;
|
|
85
|
-
(locales?: Intl.LocalesArgument): string;
|
|
86
|
-
};
|
|
87
|
-
trim: () => string;
|
|
88
|
-
readonly length: number;
|
|
89
|
-
substr: (from: number, length?: number) => string;
|
|
90
|
-
codePointAt: (pos: number) => number | undefined;
|
|
91
|
-
includes: (searchString: string, position?: number) => boolean;
|
|
92
|
-
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
93
|
-
normalize: {
|
|
94
|
-
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
95
|
-
(form?: string): string;
|
|
96
|
-
};
|
|
97
|
-
repeat: (count: number) => string;
|
|
98
|
-
startsWith: (searchString: string, position?: number) => boolean;
|
|
99
|
-
anchor: (name: string) => string;
|
|
100
|
-
big: () => string;
|
|
101
|
-
blink: () => string;
|
|
102
|
-
fontcolor: (color: string) => string;
|
|
103
|
-
fontsize: {
|
|
104
|
-
(size: number): string;
|
|
105
|
-
(size: string): string;
|
|
106
|
-
};
|
|
107
|
-
italics: () => string;
|
|
108
|
-
strike: () => string;
|
|
109
|
-
sub: () => string;
|
|
110
|
-
sup: () => string;
|
|
111
|
-
padStart: (maxLength: number, fillString?: string) => string;
|
|
112
|
-
padEnd: (maxLength: number, fillString?: string) => string;
|
|
113
|
-
trimEnd: () => string;
|
|
114
|
-
trimStart: () => string;
|
|
115
|
-
trimLeft: () => string;
|
|
116
|
-
trimRight: () => string;
|
|
117
|
-
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
118
|
-
toString: () => string;
|
|
119
|
-
valueOf: () => string;
|
|
120
|
-
} | undefined;
|
|
30
|
+
align?: (import("../../enums").ALIGN.START | import("../../enums").ALIGN.END | import("../../enums").ALIGN.CENTER) | undefined;
|
|
121
31
|
headerProps?: any;
|
|
122
32
|
cellProps?: import("../../types").TDataTableHeaderCell | undefined;
|
|
123
33
|
sortRaw?: TDataTableCompareFunction | undefined;
|
|
@@ -140,97 +50,7 @@ export declare function createHeaders(props: IDataTableHeaderProps, options?: {
|
|
|
140
50
|
sort?: TDataTableCompareFunction | undefined;
|
|
141
51
|
filter?: import("../../types").TFilterFunction | undefined;
|
|
142
52
|
title?: string | undefined;
|
|
143
|
-
align?:
|
|
144
|
-
readonly [x: number]: string;
|
|
145
|
-
[Symbol.iterator]: () => StringIterator<string>;
|
|
146
|
-
small: () => string;
|
|
147
|
-
fixed: () => string;
|
|
148
|
-
replace: {
|
|
149
|
-
(searchValue: string | RegExp, replaceValue: string): string;
|
|
150
|
-
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
151
|
-
(searchValue: {
|
|
152
|
-
[Symbol.replace](string: string, replaceValue: string): string;
|
|
153
|
-
}, replaceValue: string): string;
|
|
154
|
-
(searchValue: {
|
|
155
|
-
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
156
|
-
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
157
|
-
};
|
|
158
|
-
search: {
|
|
159
|
-
(regexp: string | RegExp): number;
|
|
160
|
-
(searcher: {
|
|
161
|
-
[Symbol.search](string: string): number;
|
|
162
|
-
}): number;
|
|
163
|
-
};
|
|
164
|
-
bold: () => string;
|
|
165
|
-
link: (url: string) => string;
|
|
166
|
-
charAt: (pos: number) => string;
|
|
167
|
-
charCodeAt: (index: number) => number;
|
|
168
|
-
concat: (...strings: string[]) => string;
|
|
169
|
-
indexOf: (searchString: string, position?: number) => number;
|
|
170
|
-
lastIndexOf: (searchString: string, position?: number) => number;
|
|
171
|
-
localeCompare: {
|
|
172
|
-
(that: string): number;
|
|
173
|
-
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
174
|
-
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
175
|
-
};
|
|
176
|
-
match: {
|
|
177
|
-
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
178
|
-
(matcher: {
|
|
179
|
-
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
180
|
-
}): RegExpMatchArray | null;
|
|
181
|
-
};
|
|
182
|
-
slice: (start?: number, end?: number) => string;
|
|
183
|
-
split: {
|
|
184
|
-
(separator: string | RegExp, limit?: number): string[];
|
|
185
|
-
(splitter: {
|
|
186
|
-
[Symbol.split](string: string, limit?: number): string[];
|
|
187
|
-
}, limit?: number): string[];
|
|
188
|
-
};
|
|
189
|
-
substring: (start: number, end?: number) => string;
|
|
190
|
-
toLowerCase: () => string;
|
|
191
|
-
toLocaleLowerCase: {
|
|
192
|
-
(locales?: string | string[]): string;
|
|
193
|
-
(locales?: Intl.LocalesArgument): string;
|
|
194
|
-
};
|
|
195
|
-
toUpperCase: () => string;
|
|
196
|
-
toLocaleUpperCase: {
|
|
197
|
-
(locales?: string | string[]): string;
|
|
198
|
-
(locales?: Intl.LocalesArgument): string;
|
|
199
|
-
};
|
|
200
|
-
trim: () => string;
|
|
201
|
-
readonly length: number;
|
|
202
|
-
substr: (from: number, length?: number) => string;
|
|
203
|
-
codePointAt: (pos: number) => number | undefined;
|
|
204
|
-
includes: (searchString: string, position?: number) => boolean;
|
|
205
|
-
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
206
|
-
normalize: {
|
|
207
|
-
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
208
|
-
(form?: string): string;
|
|
209
|
-
};
|
|
210
|
-
repeat: (count: number) => string;
|
|
211
|
-
startsWith: (searchString: string, position?: number) => boolean;
|
|
212
|
-
anchor: (name: string) => string;
|
|
213
|
-
big: () => string;
|
|
214
|
-
blink: () => string;
|
|
215
|
-
fontcolor: (color: string) => string;
|
|
216
|
-
fontsize: {
|
|
217
|
-
(size: number): string;
|
|
218
|
-
(size: string): string;
|
|
219
|
-
};
|
|
220
|
-
italics: () => string;
|
|
221
|
-
strike: () => string;
|
|
222
|
-
sub: () => string;
|
|
223
|
-
sup: () => string;
|
|
224
|
-
padStart: (maxLength: number, fillString?: string) => string;
|
|
225
|
-
padEnd: (maxLength: number, fillString?: string) => string;
|
|
226
|
-
trimEnd: () => string;
|
|
227
|
-
trimStart: () => string;
|
|
228
|
-
trimLeft: () => string;
|
|
229
|
-
trimRight: () => string;
|
|
230
|
-
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
231
|
-
toString: () => string;
|
|
232
|
-
valueOf: () => string;
|
|
233
|
-
} | undefined;
|
|
53
|
+
align?: (import("../../enums").ALIGN.START | import("../../enums").ALIGN.END | import("../../enums").ALIGN.CENTER) | undefined;
|
|
234
54
|
headerProps?: any;
|
|
235
55
|
cellProps?: import("../../types").TDataTableHeaderCell | undefined;
|
|
236
56
|
sortRaw?: TDataTableCompareFunction | undefined;
|
|
@@ -254,97 +74,7 @@ export declare function createHeaders(props: IDataTableHeaderProps, options?: {
|
|
|
254
74
|
sort?: TDataTableCompareFunction | undefined;
|
|
255
75
|
filter?: import("../../types").TFilterFunction | undefined;
|
|
256
76
|
title?: string | undefined;
|
|
257
|
-
align?:
|
|
258
|
-
readonly [x: number]: string;
|
|
259
|
-
[Symbol.iterator]: () => StringIterator<string>;
|
|
260
|
-
small: () => string;
|
|
261
|
-
fixed: () => string;
|
|
262
|
-
replace: {
|
|
263
|
-
(searchValue: string | RegExp, replaceValue: string): string;
|
|
264
|
-
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
265
|
-
(searchValue: {
|
|
266
|
-
[Symbol.replace](string: string, replaceValue: string): string;
|
|
267
|
-
}, replaceValue: string): string;
|
|
268
|
-
(searchValue: {
|
|
269
|
-
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
270
|
-
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
271
|
-
};
|
|
272
|
-
search: {
|
|
273
|
-
(regexp: string | RegExp): number;
|
|
274
|
-
(searcher: {
|
|
275
|
-
[Symbol.search](string: string): number;
|
|
276
|
-
}): number;
|
|
277
|
-
};
|
|
278
|
-
bold: () => string;
|
|
279
|
-
link: (url: string) => string;
|
|
280
|
-
charAt: (pos: number) => string;
|
|
281
|
-
charCodeAt: (index: number) => number;
|
|
282
|
-
concat: (...strings: string[]) => string;
|
|
283
|
-
indexOf: (searchString: string, position?: number) => number;
|
|
284
|
-
lastIndexOf: (searchString: string, position?: number) => number;
|
|
285
|
-
localeCompare: {
|
|
286
|
-
(that: string): number;
|
|
287
|
-
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
288
|
-
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
289
|
-
};
|
|
290
|
-
match: {
|
|
291
|
-
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
292
|
-
(matcher: {
|
|
293
|
-
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
294
|
-
}): RegExpMatchArray | null;
|
|
295
|
-
};
|
|
296
|
-
slice: (start?: number, end?: number) => string;
|
|
297
|
-
split: {
|
|
298
|
-
(separator: string | RegExp, limit?: number): string[];
|
|
299
|
-
(splitter: {
|
|
300
|
-
[Symbol.split](string: string, limit?: number): string[];
|
|
301
|
-
}, limit?: number): string[];
|
|
302
|
-
};
|
|
303
|
-
substring: (start: number, end?: number) => string;
|
|
304
|
-
toLowerCase: () => string;
|
|
305
|
-
toLocaleLowerCase: {
|
|
306
|
-
(locales?: string | string[]): string;
|
|
307
|
-
(locales?: Intl.LocalesArgument): string;
|
|
308
|
-
};
|
|
309
|
-
toUpperCase: () => string;
|
|
310
|
-
toLocaleUpperCase: {
|
|
311
|
-
(locales?: string | string[]): string;
|
|
312
|
-
(locales?: Intl.LocalesArgument): string;
|
|
313
|
-
};
|
|
314
|
-
trim: () => string;
|
|
315
|
-
readonly length: number;
|
|
316
|
-
substr: (from: number, length?: number) => string;
|
|
317
|
-
codePointAt: (pos: number) => number | undefined;
|
|
318
|
-
includes: (searchString: string, position?: number) => boolean;
|
|
319
|
-
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
320
|
-
normalize: {
|
|
321
|
-
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
322
|
-
(form?: string): string;
|
|
323
|
-
};
|
|
324
|
-
repeat: (count: number) => string;
|
|
325
|
-
startsWith: (searchString: string, position?: number) => boolean;
|
|
326
|
-
anchor: (name: string) => string;
|
|
327
|
-
big: () => string;
|
|
328
|
-
blink: () => string;
|
|
329
|
-
fontcolor: (color: string) => string;
|
|
330
|
-
fontsize: {
|
|
331
|
-
(size: number): string;
|
|
332
|
-
(size: string): string;
|
|
333
|
-
};
|
|
334
|
-
italics: () => string;
|
|
335
|
-
strike: () => string;
|
|
336
|
-
sub: () => string;
|
|
337
|
-
sup: () => string;
|
|
338
|
-
padStart: (maxLength: number, fillString?: string) => string;
|
|
339
|
-
padEnd: (maxLength: number, fillString?: string) => string;
|
|
340
|
-
trimEnd: () => string;
|
|
341
|
-
trimStart: () => string;
|
|
342
|
-
trimLeft: () => string;
|
|
343
|
-
trimRight: () => string;
|
|
344
|
-
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
345
|
-
toString: () => string;
|
|
346
|
-
valueOf: () => string;
|
|
347
|
-
} | undefined;
|
|
77
|
+
align?: (import("../../enums").ALIGN.START | import("../../enums").ALIGN.END | import("../../enums").ALIGN.CENTER) | undefined;
|
|
348
78
|
headerProps?: any;
|
|
349
79
|
cellProps?: import("../../types").TDataTableHeaderCell | undefined;
|
|
350
80
|
sortRaw?: TDataTableCompareFunction | undefined;
|
|
@@ -367,97 +97,7 @@ export declare function createHeaders(props: IDataTableHeaderProps, options?: {
|
|
|
367
97
|
sort?: TDataTableCompareFunction | undefined;
|
|
368
98
|
filter?: import("../../types").TFilterFunction | undefined;
|
|
369
99
|
title?: string | undefined;
|
|
370
|
-
align?:
|
|
371
|
-
readonly [x: number]: string;
|
|
372
|
-
[Symbol.iterator]: () => StringIterator<string>;
|
|
373
|
-
small: () => string;
|
|
374
|
-
fixed: () => string;
|
|
375
|
-
replace: {
|
|
376
|
-
(searchValue: string | RegExp, replaceValue: string): string;
|
|
377
|
-
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
378
|
-
(searchValue: {
|
|
379
|
-
[Symbol.replace](string: string, replaceValue: string): string;
|
|
380
|
-
}, replaceValue: string): string;
|
|
381
|
-
(searchValue: {
|
|
382
|
-
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
383
|
-
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
384
|
-
};
|
|
385
|
-
search: {
|
|
386
|
-
(regexp: string | RegExp): number;
|
|
387
|
-
(searcher: {
|
|
388
|
-
[Symbol.search](string: string): number;
|
|
389
|
-
}): number;
|
|
390
|
-
};
|
|
391
|
-
bold: () => string;
|
|
392
|
-
link: (url: string) => string;
|
|
393
|
-
charAt: (pos: number) => string;
|
|
394
|
-
charCodeAt: (index: number) => number;
|
|
395
|
-
concat: (...strings: string[]) => string;
|
|
396
|
-
indexOf: (searchString: string, position?: number) => number;
|
|
397
|
-
lastIndexOf: (searchString: string, position?: number) => number;
|
|
398
|
-
localeCompare: {
|
|
399
|
-
(that: string): number;
|
|
400
|
-
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
401
|
-
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
402
|
-
};
|
|
403
|
-
match: {
|
|
404
|
-
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
405
|
-
(matcher: {
|
|
406
|
-
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
407
|
-
}): RegExpMatchArray | null;
|
|
408
|
-
};
|
|
409
|
-
slice: (start?: number, end?: number) => string;
|
|
410
|
-
split: {
|
|
411
|
-
(separator: string | RegExp, limit?: number): string[];
|
|
412
|
-
(splitter: {
|
|
413
|
-
[Symbol.split](string: string, limit?: number): string[];
|
|
414
|
-
}, limit?: number): string[];
|
|
415
|
-
};
|
|
416
|
-
substring: (start: number, end?: number) => string;
|
|
417
|
-
toLowerCase: () => string;
|
|
418
|
-
toLocaleLowerCase: {
|
|
419
|
-
(locales?: string | string[]): string;
|
|
420
|
-
(locales?: Intl.LocalesArgument): string;
|
|
421
|
-
};
|
|
422
|
-
toUpperCase: () => string;
|
|
423
|
-
toLocaleUpperCase: {
|
|
424
|
-
(locales?: string | string[]): string;
|
|
425
|
-
(locales?: Intl.LocalesArgument): string;
|
|
426
|
-
};
|
|
427
|
-
trim: () => string;
|
|
428
|
-
readonly length: number;
|
|
429
|
-
substr: (from: number, length?: number) => string;
|
|
430
|
-
codePointAt: (pos: number) => number | undefined;
|
|
431
|
-
includes: (searchString: string, position?: number) => boolean;
|
|
432
|
-
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
433
|
-
normalize: {
|
|
434
|
-
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
435
|
-
(form?: string): string;
|
|
436
|
-
};
|
|
437
|
-
repeat: (count: number) => string;
|
|
438
|
-
startsWith: (searchString: string, position?: number) => boolean;
|
|
439
|
-
anchor: (name: string) => string;
|
|
440
|
-
big: () => string;
|
|
441
|
-
blink: () => string;
|
|
442
|
-
fontcolor: (color: string) => string;
|
|
443
|
-
fontsize: {
|
|
444
|
-
(size: number): string;
|
|
445
|
-
(size: string): string;
|
|
446
|
-
};
|
|
447
|
-
italics: () => string;
|
|
448
|
-
strike: () => string;
|
|
449
|
-
sub: () => string;
|
|
450
|
-
sup: () => string;
|
|
451
|
-
padStart: (maxLength: number, fillString?: string) => string;
|
|
452
|
-
padEnd: (maxLength: number, fillString?: string) => string;
|
|
453
|
-
trimEnd: () => string;
|
|
454
|
-
trimStart: () => string;
|
|
455
|
-
trimLeft: () => string;
|
|
456
|
-
trimRight: () => string;
|
|
457
|
-
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
458
|
-
toString: () => string;
|
|
459
|
-
valueOf: () => string;
|
|
460
|
-
} | undefined;
|
|
100
|
+
align?: (import("../../enums").ALIGN.START | import("../../enums").ALIGN.END | import("../../enums").ALIGN.CENTER) | undefined;
|
|
461
101
|
headerProps?: any;
|
|
462
102
|
cellProps?: import("../../types").TDataTableHeaderCell | undefined;
|
|
463
103
|
sortRaw?: TDataTableCompareFunction | undefined;
|
|
@@ -24,7 +24,12 @@ const useIcon = props => {
|
|
|
24
24
|
icon = icons.aliases?.[icon.slice(1)];
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
if (!icon)
|
|
27
|
+
if (!icon) {
|
|
28
|
+
console.warn("[Origam] useIcon: could not resolve the aliased icon, falling back to empty icon:", iconAlias);
|
|
29
|
+
return {
|
|
30
|
+
component: _components.OrigamComponentIcon
|
|
31
|
+
};
|
|
32
|
+
}
|
|
28
33
|
if (Array.isArray(icon)) {
|
|
29
34
|
return {
|
|
30
35
|
component: _components.OrigamSvgIcon,
|
|
@@ -15,7 +15,10 @@ export const useIcon = (props) => {
|
|
|
15
15
|
icon = icons.aliases?.[icon.slice(1)];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
if (!icon)
|
|
18
|
+
if (!icon) {
|
|
19
|
+
console.warn("[Origam] useIcon: could not resolve the aliased icon, falling back to empty icon:", iconAlias);
|
|
20
|
+
return { component: OrigamComponentIcon };
|
|
21
|
+
}
|
|
19
22
|
if (Array.isArray(icon)) {
|
|
20
23
|
return {
|
|
21
24
|
component: OrigamSvgIcon,
|
|
@@ -45,16 +45,30 @@ function useInlineEdit(modelValue, options = {}) {
|
|
|
45
45
|
if (verdict === true) return null;
|
|
46
46
|
return typeof verdict === "string" ? verdict : "Invalid value";
|
|
47
47
|
};
|
|
48
|
+
const runRules = async (value, rules) => {
|
|
49
|
+
if (!rules || rules.length === 0) return null;
|
|
50
|
+
for (const rule of rules) {
|
|
51
|
+
const result = await rule(value);
|
|
52
|
+
if (result === true) continue;
|
|
53
|
+
if (typeof result === "string") return result;
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
};
|
|
48
57
|
const confirm = async () => {
|
|
49
58
|
if (!isEditing.value) return false;
|
|
50
59
|
const token = ++validationToken;
|
|
51
60
|
const next = normalisedDraft.value;
|
|
52
61
|
error.value = null;
|
|
53
|
-
|
|
62
|
+
const hasRules = options.rules && options.rules.length > 0;
|
|
63
|
+
const hasValidate = !!options.validate;
|
|
64
|
+
if (hasRules || hasValidate) {
|
|
54
65
|
isPending.value = true;
|
|
55
66
|
let verdict = null;
|
|
56
67
|
try {
|
|
57
|
-
verdict = await
|
|
68
|
+
verdict = await runRules(next, options.rules);
|
|
69
|
+
if (verdict === null) {
|
|
70
|
+
verdict = await runValidator(next, options.validate);
|
|
71
|
+
}
|
|
58
72
|
} catch (err) {
|
|
59
73
|
verdict = err instanceof Error ? err.message : String(err);
|
|
60
74
|
}
|
|
@@ -44,16 +44,30 @@ export function useInlineEdit(modelValue, options = {}) {
|
|
|
44
44
|
if (verdict === true) return null;
|
|
45
45
|
return typeof verdict === "string" ? verdict : "Invalid value";
|
|
46
46
|
};
|
|
47
|
+
const runRules = async (value, rules) => {
|
|
48
|
+
if (!rules || rules.length === 0) return null;
|
|
49
|
+
for (const rule of rules) {
|
|
50
|
+
const result = await rule(value);
|
|
51
|
+
if (result === true) continue;
|
|
52
|
+
if (typeof result === "string") return result;
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
};
|
|
47
56
|
const confirm = async () => {
|
|
48
57
|
if (!isEditing.value) return false;
|
|
49
58
|
const token = ++validationToken;
|
|
50
59
|
const next = normalisedDraft.value;
|
|
51
60
|
error.value = null;
|
|
52
|
-
|
|
61
|
+
const hasRules = options.rules && options.rules.length > 0;
|
|
62
|
+
const hasValidate = !!options.validate;
|
|
63
|
+
if (hasRules || hasValidate) {
|
|
53
64
|
isPending.value = true;
|
|
54
65
|
let verdict = null;
|
|
55
66
|
try {
|
|
56
|
-
verdict = await
|
|
67
|
+
verdict = await runRules(next, options.rules);
|
|
68
|
+
if (verdict === null) {
|
|
69
|
+
verdict = await runValidator(next, options.validate);
|
|
70
|
+
}
|
|
57
71
|
} catch (err) {
|
|
58
72
|
verdict = err instanceof Error ? err.message : String(err);
|
|
59
73
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import type { TMasonryAlign
|
|
2
|
+
import type { TMasonryAlign } from '../../types';
|
|
3
|
+
import type { TMasonryColumnBreakpoints } from '../../interfaces';
|
|
3
4
|
/**
|
|
4
5
|
* Internal layout descriptor produced by the bucket-fill algorithm.
|
|
5
6
|
* One entry per measured item. Coordinates are expressed in CSS px,
|
|
@@ -3,6 +3,6 @@ import type { IParallaxElementProps } from '../../interfaces';
|
|
|
3
3
|
* useParallaxTransform
|
|
4
4
|
********************************************************/
|
|
5
5
|
export declare function useParallaxTransform(props: IParallaxElementProps): {
|
|
6
|
-
transformStyles: (x: number, y: number) =>
|
|
6
|
+
transformStyles: (x: number, y: number) => string | undefined;
|
|
7
7
|
strength: import("vue").ComputedRef<number>;
|
|
8
8
|
};
|
|
@@ -11,7 +11,15 @@ function useAspectRatio(props) {
|
|
|
11
11
|
const aspectRatio = [];
|
|
12
12
|
let ratio;
|
|
13
13
|
if (props.aspectRatio) {
|
|
14
|
-
|
|
14
|
+
const raw = String(props.aspectRatio).trim();
|
|
15
|
+
const slash = raw.indexOf("/");
|
|
16
|
+
if (slash !== -1) {
|
|
17
|
+
const w = Number(raw.slice(0, slash));
|
|
18
|
+
const h = Number(raw.slice(slash + 1));
|
|
19
|
+
ratio = h ? w / h : NaN;
|
|
20
|
+
} else {
|
|
21
|
+
ratio = Number(raw);
|
|
22
|
+
}
|
|
15
23
|
} else if (_consts.IN_BROWSER) {
|
|
16
24
|
ratio = window.innerWidth / window.innerHeight;
|
|
17
25
|
} else {
|