origam 2.2.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +381 -0
- package/README.md +22 -0
- package/dist/src/assets/css/tokens/dark.css +684 -0
- package/dist/src/assets/css/tokens/light.css +342 -0
- package/dist/src/assets/locales/en.json +36 -0
- package/dist/src/assets/locales/fr.json +33 -0
- package/dist/src/assets/scss/tokens/_dark.scss +342 -0
- package/dist/src/assets/scss/tokens/_light.scss +342 -0
- package/dist/src/components/Alert/OrigamAlert.vue +5 -4
- package/dist/src/components/App/OrigamApp.vue +38 -1
- package/dist/src/components/App/OrigamAppBar.vue +2 -2
- package/dist/src/components/Audio/OrigamAudio.vue +1465 -0
- package/dist/src/components/Audio/index.cjs +13 -0
- package/dist/src/components/Audio/index.d.ts +1 -0
- package/dist/src/components/Audio/index.js +1 -0
- package/dist/src/components/Avatar/OrigamAvatar.vue +3 -3
- package/dist/src/components/Avatar/OrigamAvatarGroup.vue +2 -2
- package/dist/src/components/Badge/OrigamBadge.vue +2 -2
- package/dist/src/components/Blockquote/OrigamBlockquote.vue +291 -0
- package/dist/src/components/Blockquote/index.cjs +13 -0
- package/dist/src/components/Blockquote/index.d.ts +1 -0
- package/dist/src/components/Blockquote/index.js +1 -0
- package/dist/src/components/BottomNav/OrigamBottomNav.vue +3 -2
- package/dist/src/components/Bracket/OrigamBracket.vue +585 -0
- package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +210 -0
- package/dist/src/components/Bracket/OrigamBracketMatch.vue +288 -0
- package/dist/src/components/Bracket/OrigamBracketRound.vue +152 -0
- package/dist/src/components/Bracket/index.cjs +34 -0
- package/dist/src/components/Bracket/index.d.ts +4 -0
- package/dist/src/components/Bracket/index.js +4 -0
- package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +5 -3
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +1 -1
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbItem.vue +3 -3
- package/dist/src/components/Btn/OrigamBtn.vue +14 -4
- package/dist/src/components/Btn/OrigamBtnGroup.vue +3 -2
- package/dist/src/components/Btn/OrigamBtnToggle.vue +2 -2
- package/dist/src/components/Calendar/OrigamCalendar.vue +1175 -0
- package/dist/src/components/Calendar/index.cjs +13 -0
- package/dist/src/components/Calendar/index.d.ts +1 -0
- package/dist/src/components/Calendar/index.js +1 -0
- package/dist/src/components/Card/OrigamCard.vue +2 -2
- package/dist/src/components/Card/OrigamCardHeader.vue +1 -1
- package/dist/src/components/Carousel/OrigamCarousel.vue +6 -1
- package/dist/src/components/Carousel/OrigamCarouselItem.vue +2 -2
- package/dist/src/components/Chart/OrigamChart.vue +882 -0
- package/dist/src/components/Chart/OrigamChartAxis.vue +141 -0
- package/dist/src/components/Chart/OrigamChartBoxPlot.vue +894 -0
- package/dist/src/components/Chart/OrigamChartBullet.vue +836 -0
- package/dist/src/components/Chart/OrigamChartCandlestick.vue +745 -0
- package/dist/src/components/Chart/OrigamChartCartesian.vue +1450 -0
- package/dist/src/components/Chart/OrigamChartGauge.vue +402 -0
- package/dist/src/components/Chart/OrigamChartHeatmap.vue +697 -0
- package/dist/src/components/Chart/OrigamChartHoneycomb.vue +723 -0
- package/dist/src/components/Chart/OrigamChartLegend.vue +59 -0
- package/dist/src/components/Chart/OrigamChartMap.vue +738 -0
- package/dist/src/components/Chart/OrigamChartPareto.vue +949 -0
- package/dist/src/components/Chart/OrigamChartPictorial.vue +1024 -0
- package/dist/src/components/Chart/OrigamChartPolar.vue +735 -0
- package/dist/src/components/Chart/OrigamChartPolarBar.vue +719 -0
- package/dist/src/components/Chart/OrigamChartPyramid.vue +706 -0
- package/dist/src/components/Chart/OrigamChartRadar.vue +504 -0
- package/dist/src/components/Chart/OrigamChartRangeSelector.vue +122 -0
- package/dist/src/components/Chart/OrigamChartSankey.vue +943 -0
- package/dist/src/components/Chart/OrigamChartSparkline.vue +474 -0
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +872 -0
- package/dist/src/components/Chart/OrigamChartSunburst.vue +865 -0
- package/dist/src/components/Chart/OrigamChartTooltip.vue +55 -0
- package/dist/src/components/Chart/OrigamChartTreemap.vue +744 -0
- package/dist/src/components/Chart/OrigamChartVariwide.vue +815 -0
- package/dist/src/components/Chart/OrigamChartWordCloud.vue +671 -0
- package/dist/src/components/Chart/index.cjs +188 -0
- package/dist/src/components/Chart/index.d.ts +26 -0
- package/dist/src/components/Chart/index.js +26 -0
- package/dist/src/components/Checkbox/OrigamCheckbox.vue +2 -2
- package/dist/src/components/Checkbox/OrigamCheckboxBtn.vue +2 -2
- package/dist/src/components/Chip/OrigamChip.vue +9 -7
- package/dist/src/components/Chip/OrigamChipGroup.vue +15 -3
- package/dist/src/components/ClientOnly/OrigamClientOnly.vue +28 -0
- package/dist/src/components/ClientOnly/index.cjs +13 -0
- package/dist/src/components/ClientOnly/index.d.ts +1 -0
- package/dist/src/components/ClientOnly/index.js +1 -0
- package/dist/src/components/Clipboard/OrigamClipboard.vue +195 -0
- package/dist/src/components/Clipboard/index.cjs +13 -0
- package/dist/src/components/Clipboard/index.d.ts +1 -0
- package/dist/src/components/Clipboard/index.js +1 -0
- package/dist/src/components/Code/OrigamCode.vue +459 -0
- package/dist/src/components/Code/index.cjs +13 -0
- package/dist/src/components/Code/index.d.ts +1 -0
- package/dist/src/components/Code/index.js +1 -0
- package/dist/src/components/ColorPicker/OrigamColorPicker.vue +3 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +75 -1
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +3 -2
- package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +620 -0
- package/dist/src/components/CommandPalette/index.cjs +13 -0
- package/dist/src/components/CommandPalette/index.d.ts +1 -0
- package/dist/src/components/CommandPalette/index.js +1 -0
- package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +1 -1
- package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +2 -2
- package/dist/src/components/Counter/OrigamCounter.vue +1 -1
- package/dist/src/components/DataList/OrigamDataList.vue +2 -2
- package/dist/src/components/DataList/OrigamDataText.vue +2 -2
- package/dist/src/components/DataList/OrigamDataTitle.vue +2 -2
- package/dist/src/components/DataTable/OrigamDataTable.vue +9 -3
- package/dist/src/components/DataTable/OrigamDataTableColumnCell.vue +1 -0
- 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 +2 -1
- package/dist/src/components/DataTable/OrigamDataTableHeaders.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableHeadersCell.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +2 -2
- package/dist/src/components/DataTable/OrigamDataTableRow.vue +6 -1
- package/dist/src/components/DataTable/OrigamDataTableRows.vue +5 -3
- package/dist/src/components/DatePicker/OrigamDatePicker.vue +22 -12
- package/dist/src/components/DatePicker/OrigamDatePickerHeader.vue +1 -1
- package/dist/src/components/DatePicker/OrigamDatePickerMonth.vue +20 -15
- package/dist/src/components/DatePicker/OrigamDatePickerMonths.vue +1 -1
- package/dist/src/components/DatePicker/OrigamDatePickerYears.vue +1 -1
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +6 -5
- package/dist/src/components/Dialog/OrigamDialog.vue +12 -4
- package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +2 -2
- package/dist/src/components/Divider/OrigamDivider.vue +2 -2
- package/dist/src/components/Drawer/OrigamDrawer.vue +10 -2
- package/dist/src/components/EmptyState/OrigamEmptyState.vue +231 -0
- package/dist/src/components/EmptyState/index.cjs +13 -0
- package/dist/src/components/EmptyState/index.d.ts +1 -0
- package/dist/src/components/EmptyState/index.js +1 -0
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +2 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +5 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +4 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +2 -2
- package/dist/src/components/Field/OrigamField.vue +2 -2
- package/dist/src/components/FileField/OrigamFileField.vue +2 -2
- package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +2 -2
- package/dist/src/components/FileField/OrigamFileFieldListItem.vue +2 -2
- package/dist/src/components/Grid/OrigamGrid.vue +197 -0
- package/dist/src/components/Grid/OrigamGridItem.vue +69 -0
- package/dist/src/components/Grid/index.cjs +20 -0
- package/dist/src/components/Grid/index.d.ts +2 -0
- package/dist/src/components/Grid/index.js +2 -0
- package/dist/src/components/Grids/OrigamCol.vue +2 -2
- package/dist/src/components/Grids/OrigamRow.vue +1 -1
- package/dist/src/components/Icon/OrigamClassIcon.vue +14 -2
- package/dist/src/components/Icon/OrigamComponentIcon.vue +14 -2
- package/dist/src/components/Icon/OrigamIcon.vue +21 -2
- package/dist/src/components/Icon/OrigamLigatureIcon.vue +14 -2
- package/dist/src/components/Icon/OrigamSvgIcon.vue +15 -3
- package/dist/src/components/Img/OrigamImg.vue +2 -2
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +4 -4
- package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +477 -0
- package/dist/src/components/InlineEdit/index.cjs +13 -0
- package/dist/src/components/InlineEdit/index.d.ts +1 -0
- package/dist/src/components/InlineEdit/index.js +1 -0
- package/dist/src/components/Input/OrigamInput.vue +2 -2
- package/dist/src/components/Kbd/OrigamKbd.vue +2 -2
- package/dist/src/components/Label/OrigamLabel.vue +2 -2
- package/dist/src/components/Layout/OrigamLayout.vue +73 -4
- package/dist/src/components/Lazy/OrigamLazy.vue +1 -0
- package/dist/src/components/List/OrigamList.vue +3 -2
- package/dist/src/components/List/OrigamListGroup.vue +2 -2
- package/dist/src/components/List/OrigamListItem.vue +3 -2
- package/dist/src/components/List/OrigamListSubheader.vue +2 -2
- package/dist/src/components/Loader/OrigamLoader.vue +3 -1
- package/dist/src/components/Main/OrigamMain.vue +12 -2
- package/dist/src/components/Masonry/OrigamMasonry.vue +277 -0
- package/dist/src/components/Masonry/index.cjs +13 -0
- package/dist/src/components/Masonry/index.d.ts +1 -0
- package/dist/src/components/Masonry/index.js +1 -0
- package/dist/src/components/Media/OrigamMediaController.vue +529 -0
- package/dist/src/components/Media/OrigamMediaScrubber.vue +441 -0
- package/dist/src/components/Media/OrigamMediaVolumeControl.vue +151 -0
- package/dist/src/components/Media/index.cjs +27 -0
- package/dist/src/components/Media/index.d.ts +3 -0
- package/dist/src/components/Media/index.js +3 -0
- package/dist/src/components/Menu/OrigamMenu.vue +23 -5
- package/dist/src/components/Messages/OrigamMessages.vue +2 -2
- package/dist/src/components/NumberField/OrigamNumberField.vue +6 -6
- package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +97 -0
- package/dist/src/components/NumberFormat/index.cjs +13 -0
- package/dist/src/components/NumberFormat/index.d.ts +1 -0
- package/dist/src/components/NumberFormat/index.js +1 -0
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +12 -12
- package/dist/src/components/Overlay/OrigamOverlay.vue +1 -1
- package/dist/src/components/Overlay/OrigamOverlayScrim.vue +2 -1
- package/dist/src/components/Pagination/OrigamPagination.vue +4 -10
- package/dist/src/components/Parallax/OrigamParallax.vue +97 -38
- package/dist/src/components/Parallax/OrigamParallaxLayer.vue +119 -0
- package/dist/src/components/Parallax/index.cjs +7 -0
- package/dist/src/components/Parallax/index.d.ts +1 -0
- package/dist/src/components/Parallax/index.js +1 -0
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +7 -6
- package/dist/src/components/Picker/OrigamPicker.vue +5 -5
- package/dist/src/components/Picker/OrigamPickerTitle.vue +2 -2
- package/dist/src/components/Progress/OrigamProgress.vue +3 -1
- package/dist/src/components/Progress/OrigamProgressCircular.vue +8 -1
- package/dist/src/components/Progress/OrigamProgressLinear.vue +13 -1
- package/dist/src/components/QRCode/OrigamQrCode.vue +246 -0
- package/dist/src/components/QRCode/index.cjs +13 -0
- package/dist/src/components/QRCode/index.js +1 -0
- package/dist/src/components/Radio/OrigamRadio.vue +2 -2
- package/dist/src/components/Radio/OrigamRadioBtn.vue +2 -2
- package/dist/src/components/Radio/OrigamRadioGroup.vue +2 -2
- package/dist/src/components/RatingField/OrigamRatingField.vue +20 -20
- package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +1 -1
- package/dist/src/components/Select/OrigamSelect.vue +47 -12
- package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +6 -2
- package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +2 -1
- package/dist/src/components/Sheet/OrigamSheet.vue +3 -3
- package/dist/src/components/Skeleton/OrigamSkeleton.vue +9 -2
- package/dist/src/components/SliderField/OrigamSliderField.vue +1065 -330
- package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +33 -45
- package/dist/src/components/SliderField/index.cjs +0 -7
- package/dist/src/components/SliderField/index.d.ts +0 -1
- package/dist/src/components/SliderField/index.js +0 -1
- package/dist/src/components/Snackbar/OrigamSnackbar.vue +255 -265
- package/dist/src/components/Snackbar/OrigamSnackbarGroup.vue +238 -0
- package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +270 -0
- package/dist/src/components/Snackbar/index.cjs +14 -0
- package/dist/src/components/Snackbar/index.d.ts +2 -0
- package/dist/src/components/Snackbar/index.js +2 -0
- package/dist/src/components/Stepper/OrigamStepper.vue +66 -7
- package/dist/src/components/Switch/OrigamSwitch.vue +128 -11
- package/dist/src/components/Switch/OrigamSwitchTrack.vue +13 -2
- package/dist/src/components/SystemBar/OrigamSystemBar.vue +2 -2
- package/dist/src/components/Table/OrigamTable.vue +34 -1
- package/dist/src/components/Tabs/OrigamTab.vue +263 -0
- package/dist/src/components/Tabs/OrigamTabPanel.vue +112 -0
- package/dist/src/components/Tabs/OrigamTabPanels.vue +139 -0
- package/dist/src/components/Tabs/OrigamTabs.vue +242 -0
- package/dist/src/components/Tabs/index.cjs +34 -0
- package/dist/src/components/Tabs/index.d.ts +4 -0
- package/dist/src/components/Tabs/index.js +4 -0
- package/dist/src/components/TextField/OrigamTextField.vue +79 -7
- package/dist/src/components/TextMask/OrigamTextMask.vue +157 -0
- package/dist/src/components/TextMask/index.cjs +13 -0
- package/dist/src/components/TextMask/index.d.ts +1 -0
- package/dist/src/components/TextMask/index.js +1 -0
- package/dist/src/components/TextareaField/OrigamRichToolbar.vue +284 -0
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +196 -7
- package/dist/src/components/TextareaField/index.cjs +7 -0
- package/dist/src/components/TextareaField/index.d.ts +1 -0
- package/dist/src/components/TextareaField/index.js +1 -0
- package/dist/src/components/Timeline/OrigamTimeline.vue +1 -1
- package/dist/src/components/Timeline/OrigamTimelineItem.vue +1 -1
- package/dist/src/components/Title/OrigamTitle.vue +2 -2
- package/dist/src/components/Toolbar/OrigamToolbar.vue +2 -2
- package/dist/src/components/Tooltip/OrigamTooltip.vue +2 -2
- package/dist/src/components/Treeview/OrigamTreeview.vue +2 -4
- package/dist/src/components/Video/OrigamVideo.vue +1087 -0
- package/dist/src/components/Video/index.cjs +13 -0
- package/dist/src/components/Video/index.d.ts +1 -0
- package/dist/src/components/Video/index.js +1 -0
- package/dist/src/components/Watermark/OrigamWatermark.vue +187 -0
- package/dist/src/components/Watermark/index.cjs +13 -0
- package/dist/src/components/Watermark/index.d.ts +1 -0
- package/dist/src/components/Watermark/index.js +1 -0
- package/dist/src/components/index.cjs +220 -0
- package/dist/src/components/index.d.ts +20 -0
- package/dist/src/components/index.js +20 -0
- package/dist/src/composables/Audio/use-audio-player.composable.cjs +26 -0
- package/dist/src/composables/Audio/use-audio-player.composable.d.ts +29 -0
- package/dist/src/composables/Audio/use-audio-player.composable.js +17 -0
- package/dist/src/composables/Audio/use-waveform.composable.cjs +91 -0
- package/dist/src/composables/Audio/use-waveform.composable.d.ts +32 -0
- package/dist/src/composables/Audio/use-waveform.composable.js +81 -0
- package/dist/src/composables/Calendar/calendar.composable.cjs +184 -0
- package/dist/src/composables/Calendar/calendar.composable.d.ts +72 -0
- package/dist/src/composables/Calendar/calendar.composable.js +182 -0
- package/dist/src/composables/Chart/chart-gauge.composable.cjs +54 -0
- package/dist/src/composables/Chart/chart-gauge.composable.d.ts +21 -0
- package/dist/src/composables/Chart/chart-gauge.composable.js +47 -0
- package/dist/src/composables/Chart/chart-zoom.composable.cjs +93 -0
- package/dist/src/composables/Chart/chart-zoom.composable.d.ts +34 -0
- package/dist/src/composables/Chart/chart-zoom.composable.js +87 -0
- package/dist/src/composables/Chart/chart.composable.cjs +893 -0
- package/dist/src/composables/Chart/chart.composable.d.ts +97 -0
- package/dist/src/composables/Chart/chart.composable.js +829 -0
- package/dist/src/composables/Clipboard/clipboard.composable.cjs +78 -0
- package/dist/src/composables/Clipboard/clipboard.composable.d.ts +21 -0
- package/dist/src/composables/Clipboard/clipboard.composable.js +79 -0
- package/dist/src/composables/Code/code.composable.cjs +102 -0
- package/dist/src/composables/Code/code.composable.d.ts +10 -0
- package/dist/src/composables/Code/code.composable.js +86 -0
- package/dist/src/composables/CommandPalette/command.composable.cjs +53 -0
- package/dist/src/composables/CommandPalette/command.composable.d.ts +37 -0
- package/dist/src/composables/CommandPalette/command.composable.js +46 -0
- package/dist/src/composables/Commons/audio.composable.d.ts +2 -2
- package/dist/src/composables/Commons/color.composable.cjs +47 -12
- package/dist/src/composables/Commons/color.composable.js +47 -12
- package/dist/src/composables/Commons/{calendar.composable.cjs → date-picker-calendar.composable.cjs} +2 -2
- package/dist/src/composables/Commons/{calendar.composable.d.ts → date-picker-calendar.composable.d.ts} +2 -2
- package/dist/src/composables/Commons/{calendar.composable.js → date-picker-calendar.composable.js} +1 -1
- package/dist/src/composables/Commons/elevation.composable.cjs +4 -5
- package/dist/src/composables/Commons/elevation.composable.js +1 -18
- package/dist/src/composables/Commons/virtual.composable.cjs +1 -0
- package/dist/src/composables/Commons/virtual.composable.js +1 -0
- package/dist/src/composables/CssSupport/cssSupport.composable.cjs +16 -25
- package/dist/src/composables/CssSupport/cssSupport.composable.d.ts +26 -23
- package/dist/src/composables/CssSupport/cssSupport.composable.js +11 -23
- package/dist/src/composables/DataTable/headers.composable.d.ts +8 -8
- package/dist/src/composables/InlineEdit/inline-edit.composable.cjs +87 -0
- package/dist/src/composables/InlineEdit/inline-edit.composable.d.ts +36 -0
- package/dist/src/composables/InlineEdit/inline-edit.composable.js +86 -0
- package/dist/src/composables/Mask/index.cjs +16 -0
- package/dist/src/composables/Mask/index.d.ts +1 -0
- package/dist/src/composables/Mask/index.js +1 -0
- package/dist/src/composables/Mask/mask.composable.cjs +57 -0
- package/dist/src/composables/Mask/mask.composable.d.ts +39 -0
- package/dist/src/composables/Mask/mask.composable.js +51 -0
- package/dist/src/composables/Masonry/masonry.composable.cjs +160 -0
- package/dist/src/composables/Masonry/masonry.composable.d.ts +132 -0
- package/dist/src/composables/Masonry/masonry.composable.js +160 -0
- package/dist/src/composables/Media/use-media-player.composable.cjs +286 -0
- package/dist/src/composables/Media/use-media-player.composable.d.ts +43 -0
- package/dist/src/composables/Media/use-media-player.composable.js +289 -0
- package/dist/src/composables/NumberFormat/number-format.composable.cjs +165 -0
- package/dist/src/composables/NumberFormat/number-format.composable.d.ts +33 -0
- package/dist/src/composables/NumberFormat/number-format.composable.js +146 -0
- package/dist/src/composables/Parallax/parallax.composable.cjs +232 -0
- package/dist/src/composables/Parallax/parallax.composable.d.ts +60 -0
- package/dist/src/composables/Parallax/parallax.composable.js +219 -0
- package/dist/src/composables/QrCode/qr-code.composable.cjs +111 -0
- package/dist/src/composables/QrCode/qr-code.composable.d.ts +31 -0
- package/dist/src/composables/QrCode/qr-code.composable.js +120 -0
- package/dist/src/composables/Responsive/aspect.composable.cjs +6 -1
- package/dist/src/composables/Responsive/aspect.composable.d.ts +10 -0
- package/dist/src/composables/Responsive/aspect.composable.js +6 -1
- package/dist/src/composables/Sheet/sheetSwipe.composable.cjs +5 -5
- package/dist/src/composables/Sheet/sheetSwipe.composable.d.ts +1 -1
- package/dist/src/composables/Sheet/sheetSwipe.composable.js +3 -3
- package/dist/src/composables/SliderField/slider-field.composable.cjs +0 -213
- package/dist/src/composables/SliderField/slider-field.composable.d.ts +11 -5
- package/dist/src/composables/SliderField/slider-field.composable.js +2 -191
- package/dist/src/composables/Snackbar/snackbar-group.composable.cjs +102 -0
- package/dist/src/composables/Snackbar/snackbar-group.composable.d.ts +58 -0
- package/dist/src/composables/Snackbar/snackbar-group.composable.js +92 -0
- package/dist/src/composables/Textarea/textarea-rich.composable.cjs +263 -0
- package/dist/src/composables/Textarea/textarea-rich.composable.d.ts +41 -0
- package/dist/src/composables/Textarea/textarea-rich.composable.js +257 -0
- package/dist/src/composables/Theme/theme.composable.cjs +5 -6
- package/dist/src/composables/Theme/theme.composable.js +1 -2
- package/dist/src/composables/Video/video-player.composable.cjs +129 -0
- package/dist/src/composables/Video/video-player.composable.d.ts +44 -0
- package/dist/src/composables/Video/video-player.composable.js +128 -0
- package/dist/src/composables/Watermark/watermark.composable.cjs +147 -0
- package/dist/src/composables/Watermark/watermark.composable.d.ts +28 -0
- package/dist/src/composables/Watermark/watermark.composable.js +158 -0
- package/dist/src/composables/index.cjs +299 -4
- package/dist/src/composables/index.d.ts +19 -1
- package/dist/src/composables/index.js +19 -1
- package/dist/src/consts/Audio/audio.const.cjs +25 -0
- package/dist/src/consts/Audio/audio.const.d.ts +30 -0
- package/dist/src/consts/Audio/audio.const.js +19 -0
- package/dist/src/consts/Blockquote/blockquote.const.cjs +32 -0
- package/dist/src/consts/Blockquote/blockquote.const.d.ts +37 -0
- package/dist/src/consts/Blockquote/blockquote.const.js +30 -0
- package/dist/src/consts/Bracket/bracket.const.cjs +12 -0
- package/dist/src/consts/Bracket/bracket.const.d.ts +34 -0
- package/dist/src/consts/Bracket/bracket.const.js +15 -0
- package/dist/src/consts/Chart/chart.const.cjs +26 -0
- package/dist/src/consts/Chart/chart.const.d.ts +32 -0
- package/dist/src/consts/Chart/chart.const.js +9 -0
- package/dist/src/consts/Chart/country-centroids.const.cjs +43 -0
- package/dist/src/consts/Chart/country-centroids.const.d.ts +10 -0
- package/dist/src/consts/Chart/country-centroids.const.js +37 -0
- package/dist/src/consts/Chart/pictorial-icons.const.cjs +12 -0
- package/dist/src/consts/Chart/pictorial-icons.const.d.ts +18 -0
- package/dist/src/consts/Chart/pictorial-icons.const.js +6 -0
- package/dist/src/consts/Chart/world-geographic.const.cjs +152 -0
- package/dist/src/consts/Chart/world-geographic.const.d.ts +22 -0
- package/dist/src/consts/Chart/world-geographic.const.js +1722 -0
- package/dist/src/consts/Chart/world-map.const.cjs +43 -0
- package/dist/src/consts/Chart/world-map.const.d.ts +14 -0
- package/dist/src/consts/Chart/world-map.const.js +37 -0
- package/dist/src/consts/Clipboard/clipboard.const.cjs +7 -0
- package/dist/src/consts/Clipboard/clipboard.const.d.ts +6 -0
- package/dist/src/consts/Clipboard/clipboard.const.js +1 -0
- package/dist/src/consts/Code/code.const.cjs +23 -0
- package/dist/src/consts/Code/code.const.d.ts +36 -0
- package/dist/src/consts/Code/code.const.js +32 -0
- package/dist/src/consts/CommandPalette/command-palette.const.cjs +10 -0
- package/dist/src/consts/CommandPalette/command-palette.const.d.ts +16 -0
- package/dist/src/consts/CommandPalette/command-palette.const.js +7 -0
- package/dist/src/consts/Commons/elevation.const.cjs +8 -0
- package/dist/src/consts/Commons/elevation.const.d.ts +17 -0
- package/dist/src/consts/Commons/elevation.const.js +18 -0
- package/dist/src/consts/CssSupport/css-support.const.cjs +29 -0
- package/dist/src/consts/CssSupport/css-support.const.d.ts +40 -0
- package/dist/src/consts/CssSupport/css-support.const.js +23 -0
- package/dist/src/consts/DataTable/select.const.cjs +2 -1
- package/dist/src/consts/DataTable/select.const.d.ts +2 -1
- package/dist/src/consts/DataTable/select.const.js +1 -0
- package/dist/src/consts/EmptyState/empty-state.const.cjs +32 -0
- package/dist/src/consts/EmptyState/empty-state.const.d.ts +29 -0
- package/dist/src/consts/EmptyState/empty-state.const.js +39 -0
- package/dist/src/consts/Grid/grid.const.cjs +28 -0
- package/dist/src/consts/Grid/grid.const.d.ts +49 -0
- package/dist/src/consts/Grid/grid.const.js +46 -0
- package/dist/src/consts/Mask/built-in-patterns.const.cjs +66 -0
- package/dist/src/consts/Mask/built-in-patterns.const.d.ts +20 -0
- package/dist/src/consts/Mask/built-in-patterns.const.js +60 -0
- package/dist/src/consts/Masonry/masonry.const.cjs +14 -0
- package/dist/src/consts/Masonry/masonry.const.d.ts +27 -0
- package/dist/src/consts/Masonry/masonry.const.js +11 -0
- package/dist/src/consts/Media/media.const.cjs +8 -0
- package/dist/src/consts/Media/media.const.d.ts +14 -0
- package/dist/src/consts/Media/media.const.js +2 -0
- package/dist/src/consts/NumberFormat/number-format.const.cjs +9 -0
- package/dist/src/consts/NumberFormat/number-format.const.d.ts +19 -0
- package/dist/src/consts/NumberFormat/number-format.const.js +3 -0
- package/dist/src/consts/Parallax/parallax-layer.const.cjs +7 -0
- package/dist/src/consts/Parallax/parallax-layer.const.d.ts +3 -0
- package/dist/src/consts/Parallax/parallax-layer.const.js +1 -0
- package/dist/src/consts/QrCode/qr-code.const.cjs +12 -0
- package/dist/src/consts/QrCode/qr-code.const.d.ts +33 -0
- package/dist/src/consts/QrCode/qr-code.const.js +6 -0
- package/dist/src/consts/Sheet/sheet-swipe.const.cjs +7 -0
- package/dist/src/consts/Sheet/sheet-swipe.const.d.ts +11 -0
- package/dist/src/consts/Sheet/sheet-swipe.const.js +1 -0
- package/dist/src/consts/Snackbar/snackbar-group.const.cjs +12 -0
- package/dist/src/consts/Snackbar/snackbar-group.const.d.ts +33 -0
- package/dist/src/consts/Snackbar/snackbar-group.const.js +18 -0
- package/dist/src/consts/Tabs/tabs.const.cjs +9 -0
- package/dist/src/consts/Tabs/tabs.const.d.ts +23 -0
- package/dist/src/consts/Tabs/tabs.const.js +3 -0
- package/dist/src/consts/Textarea/textarea.const.cjs +28 -0
- package/dist/src/consts/Textarea/textarea.const.d.ts +38 -0
- package/dist/src/consts/Textarea/textarea.const.js +65 -0
- package/dist/src/consts/Theme/theme.const.cjs +15 -0
- package/dist/src/consts/Theme/theme.const.d.ts +9 -0
- package/dist/src/consts/Theme/theme.const.js +9 -0
- package/dist/src/consts/Video/video.const.cjs +7 -0
- package/dist/src/consts/Video/video.const.d.ts +7 -0
- package/dist/src/consts/Video/video.const.js +1 -0
- package/dist/src/consts/Watermark/watermark.const.cjs +16 -0
- package/dist/src/consts/Watermark/watermark.const.d.ts +27 -0
- package/dist/src/consts/Watermark/watermark.const.js +10 -0
- package/dist/src/consts/index.cjs +283 -8
- package/dist/src/consts/index.d.ts +26 -1
- package/dist/src/consts/index.js +26 -1
- package/dist/src/enums/Audio/audio-loop-mode.enum.cjs +12 -0
- package/dist/src/enums/Audio/audio-loop-mode.enum.d.ts +17 -0
- package/dist/src/enums/Audio/audio-loop-mode.enum.js +6 -0
- package/dist/src/enums/Audio/audio-variant.enum.cjs +13 -0
- package/dist/src/enums/Audio/audio-variant.enum.d.ts +26 -0
- package/dist/src/enums/Audio/audio-variant.enum.js +7 -0
- package/dist/src/enums/Audio/cover-position.enum.cjs +11 -0
- package/dist/src/enums/Audio/cover-position.enum.d.ts +9 -0
- package/dist/src/enums/Audio/cover-position.enum.js +5 -0
- package/dist/src/enums/Blockquote/blockquote-lang.enum.cjs +14 -0
- package/dist/src/enums/Blockquote/blockquote-lang.enum.d.ts +7 -0
- package/dist/src/enums/Blockquote/blockquote-lang.enum.js +8 -0
- package/dist/src/enums/Blockquote/blockquote-variant.enum.cjs +14 -0
- package/dist/src/enums/Blockquote/blockquote-variant.enum.d.ts +7 -0
- package/dist/src/enums/Blockquote/blockquote-variant.enum.js +8 -0
- package/dist/src/enums/Bracket/bracket-match-status.enum.cjs +13 -0
- package/dist/src/enums/Bracket/bracket-match-status.enum.d.ts +6 -0
- package/dist/src/enums/Bracket/bracket-match-status.enum.js +7 -0
- package/dist/src/enums/Bracket/bracket-variant.enum.cjs +12 -0
- package/dist/src/enums/Bracket/bracket-variant.enum.d.ts +5 -0
- package/dist/src/enums/Bracket/bracket-variant.enum.js +6 -0
- package/dist/src/enums/Chart/chart-bullet-orientation.enum.cjs +11 -0
- package/dist/src/enums/Chart/chart-bullet-orientation.enum.d.ts +4 -0
- package/dist/src/enums/Chart/chart-bullet-orientation.enum.js +5 -0
- package/dist/src/enums/Chart/chart-cartesian-kind.enum.cjs +16 -0
- package/dist/src/enums/Chart/chart-cartesian-kind.enum.d.ts +14 -0
- package/dist/src/enums/Chart/chart-cartesian-kind.enum.js +10 -0
- package/dist/src/enums/Chart/chart-honeycomb-color-mode.enum.cjs +11 -0
- package/dist/src/enums/Chart/chart-honeycomb-color-mode.enum.d.ts +4 -0
- package/dist/src/enums/Chart/chart-honeycomb-color-mode.enum.js +5 -0
- package/dist/src/enums/Chart/chart-honeycomb-orientation.enum.cjs +11 -0
- package/dist/src/enums/Chart/chart-honeycomb-orientation.enum.d.ts +4 -0
- package/dist/src/enums/Chart/chart-honeycomb-orientation.enum.js +5 -0
- package/dist/src/enums/Chart/chart-map-mode.enum.cjs +11 -0
- package/dist/src/enums/Chart/chart-map-mode.enum.d.ts +4 -0
- package/dist/src/enums/Chart/chart-map-mode.enum.js +5 -0
- package/dist/src/enums/Chart/chart-pictorial-direction.enum.cjs +11 -0
- package/dist/src/enums/Chart/chart-pictorial-direction.enum.d.ts +4 -0
- package/dist/src/enums/Chart/chart-pictorial-direction.enum.js +5 -0
- package/dist/src/enums/Chart/chart-pictorial-mode.enum.cjs +11 -0
- package/dist/src/enums/Chart/chart-pictorial-mode.enum.d.ts +4 -0
- package/dist/src/enums/Chart/chart-pictorial-mode.enum.js +5 -0
- package/dist/src/enums/Chart/chart-polar-kind.enum.cjs +11 -0
- package/dist/src/enums/Chart/chart-polar-kind.enum.d.ts +8 -0
- package/dist/src/enums/Chart/chart-polar-kind.enum.js +5 -0
- package/dist/src/enums/Chart/chart-pyramid-kind.enum.cjs +11 -0
- package/dist/src/enums/Chart/chart-pyramid-kind.enum.d.ts +4 -0
- package/dist/src/enums/Chart/chart-pyramid-kind.enum.js +5 -0
- package/dist/src/enums/Chart/chart-sparkline-kind.enum.cjs +13 -0
- package/dist/src/enums/Chart/chart-sparkline-kind.enum.d.ts +6 -0
- package/dist/src/enums/Chart/chart-sparkline-kind.enum.js +7 -0
- package/dist/src/enums/Chart/chart-stacking.enum.cjs +11 -0
- package/dist/src/enums/Chart/chart-stacking.enum.d.ts +14 -0
- package/dist/src/enums/Chart/chart-stacking.enum.js +5 -0
- package/dist/src/enums/Chart/chart-streamgraph-offset.enum.cjs +13 -0
- package/dist/src/enums/Chart/chart-streamgraph-offset.enum.d.ts +6 -0
- package/dist/src/enums/Chart/chart-streamgraph-offset.enum.js +7 -0
- package/dist/src/enums/Chart/chart-treemap-algorithm.enum.cjs +11 -0
- package/dist/src/enums/Chart/chart-treemap-algorithm.enum.d.ts +9 -0
- package/dist/src/enums/Chart/chart-treemap-algorithm.enum.js +5 -0
- package/dist/src/enums/Chart/chart-word-cloud-rotation.enum.cjs +12 -0
- package/dist/src/enums/Chart/chart-word-cloud-rotation.enum.d.ts +5 -0
- package/dist/src/enums/Chart/chart-word-cloud-rotation.enum.js +6 -0
- package/dist/src/enums/Chart/chart.enum.cjs +38 -0
- package/dist/src/enums/Chart/chart.enum.d.ts +31 -0
- package/dist/src/enums/Chart/chart.enum.js +32 -0
- package/dist/src/enums/Code/code-lang.enum.cjs +23 -0
- package/dist/src/enums/Code/code-lang.enum.d.ts +25 -0
- package/dist/src/enums/Code/code-lang.enum.js +17 -0
- package/dist/src/enums/Code/code-theme.enum.cjs +12 -0
- package/dist/src/enums/Code/code-theme.enum.d.ts +12 -0
- package/dist/src/enums/Code/code-theme.enum.js +6 -0
- package/dist/src/enums/EmptyState/empty-state-preset.enum.cjs +14 -0
- package/dist/src/enums/EmptyState/empty-state-preset.enum.d.ts +16 -0
- package/dist/src/enums/EmptyState/empty-state-preset.enum.js +8 -0
- package/dist/src/enums/InlineEdit/inline-edit-action.enum.cjs +12 -0
- package/dist/src/enums/InlineEdit/inline-edit-action.enum.d.ts +10 -0
- package/dist/src/enums/InlineEdit/inline-edit-action.enum.js +6 -0
- package/dist/src/enums/Mask/mask.enum.cjs +28 -0
- package/dist/src/enums/Mask/mask.enum.d.ts +36 -0
- package/dist/src/enums/Mask/mask.enum.js +22 -0
- package/dist/src/enums/Parallax/parallax-direction.enum.cjs +12 -0
- package/dist/src/enums/Parallax/parallax-direction.enum.d.ts +5 -0
- package/dist/src/enums/Parallax/parallax-direction.enum.js +6 -0
- package/dist/src/enums/Parallax/parallax-easing.enum.cjs +12 -0
- package/dist/src/enums/Parallax/parallax-easing.enum.d.ts +5 -0
- package/dist/src/enums/Parallax/parallax-easing.enum.js +6 -0
- package/dist/src/enums/SliderField/slider-field-variant.enum.cjs +12 -0
- package/dist/src/enums/SliderField/slider-field-variant.enum.d.ts +21 -0
- package/dist/src/enums/SliderField/slider-field-variant.enum.js +6 -0
- package/dist/src/enums/Tabs/tab-variant.enum.cjs +12 -0
- package/dist/src/enums/Tabs/tab-variant.enum.d.ts +5 -0
- package/dist/src/enums/Tabs/tab-variant.enum.js +6 -0
- package/dist/src/enums/Textarea/textarea-mode.enum.cjs +11 -0
- package/dist/src/enums/Textarea/textarea-mode.enum.d.ts +13 -0
- package/dist/src/enums/Textarea/textarea-mode.enum.js +5 -0
- package/dist/src/enums/Textarea/textarea-output.enum.cjs +11 -0
- package/dist/src/enums/Textarea/textarea-output.enum.d.ts +14 -0
- package/dist/src/enums/Textarea/textarea-output.enum.js +5 -0
- package/dist/src/enums/Textarea/textarea-toolbar-command.enum.cjs +21 -0
- package/dist/src/enums/Textarea/textarea-toolbar-command.enum.d.ts +20 -0
- package/dist/src/enums/Textarea/textarea-toolbar-command.enum.js +15 -0
- package/dist/src/enums/Textarea/textarea-toolbar-position.enum.cjs +12 -0
- package/dist/src/enums/Textarea/textarea-toolbar-position.enum.d.ts +10 -0
- package/dist/src/enums/Textarea/textarea-toolbar-position.enum.js +6 -0
- package/dist/src/enums/index.cjs +364 -1
- package/dist/src/enums/index.d.ts +34 -1
- package/dist/src/enums/index.js +34 -1
- package/dist/src/interfaces/Alert/alert.interface.d.ts +5 -1
- package/dist/src/interfaces/App/app-bar.interface.d.ts +4 -1
- package/dist/src/interfaces/Audio/audio-player.interface.d.ts +406 -0
- package/dist/src/interfaces/Avatar/avatar-group.interface.d.ts +5 -1
- package/dist/src/interfaces/Avatar/avatar.interface.d.ts +4 -1
- package/dist/src/interfaces/Blockquote/blockquote.interface.d.ts +84 -0
- package/dist/src/interfaces/BottomNav/bottom-nav.interface.d.ts +5 -1
- package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.d.ts +53 -0
- package/dist/src/interfaces/Bracket/bracket-competitor.interface.d.ts +25 -0
- package/dist/src/interfaces/Bracket/bracket-match-component.interface.d.ts +45 -0
- package/dist/src/interfaces/Bracket/bracket-match.interface.d.ts +51 -0
- package/dist/src/interfaces/Bracket/bracket-match.interface.js +0 -0
- package/dist/src/interfaces/Bracket/bracket-round-component.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket-round-component.interface.d.ts +26 -0
- package/dist/src/interfaces/Bracket/bracket-round-component.interface.js +0 -0
- package/dist/src/interfaces/Bracket/bracket-round.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket-round.interface.d.ts +27 -0
- package/dist/src/interfaces/Bracket/bracket-round.interface.js +0 -0
- package/dist/src/interfaces/Bracket/bracket.interface.cjs +1 -0
- package/dist/src/interfaces/Bracket/bracket.interface.d.ts +64 -0
- package/dist/src/interfaces/Bracket/bracket.interface.js +0 -0
- package/dist/src/interfaces/Breadcrumb/breadcrumb-item.interface.d.ts +4 -1
- package/dist/src/interfaces/Btn/btn-toggle.interface.d.ts +4 -1
- package/dist/src/interfaces/Btn/btn.interface.d.ts +5 -1
- package/dist/src/interfaces/Calendar/calendar.interface.cjs +1 -0
- package/dist/src/interfaces/Calendar/calendar.interface.d.ts +159 -0
- package/dist/src/interfaces/Calendar/calendar.interface.js +0 -0
- package/dist/src/interfaces/Calendar/event.interface.cjs +1 -0
- package/dist/src/interfaces/Calendar/event.interface.d.ts +54 -0
- package/dist/src/interfaces/Calendar/event.interface.js +0 -0
- package/dist/src/interfaces/Card/card-header.interface.d.ts +4 -1
- package/dist/src/interfaces/Card/card.interface.d.ts +5 -1
- package/dist/src/interfaces/Carousel/carousel.interface.d.ts +4 -1
- package/dist/src/interfaces/Chart/chart-annotation.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-annotation.interface.d.ts +99 -0
- package/dist/src/interfaces/Chart/chart-annotation.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-axis.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-axis.interface.d.ts +78 -0
- package/dist/src/interfaces/Chart/chart-axis.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-base.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-base.interface.d.ts +87 -0
- package/dist/src/interfaces/Chart/chart-base.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-box-plot.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-box-plot.interface.d.ts +203 -0
- package/dist/src/interfaces/Chart/chart-box-plot.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-bullet.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-bullet.interface.d.ts +140 -0
- package/dist/src/interfaces/Chart/chart-bullet.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-candlestick.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-candlestick.interface.d.ts +131 -0
- package/dist/src/interfaces/Chart/chart-candlestick.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-cartesian.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-cartesian.interface.d.ts +124 -0
- package/dist/src/interfaces/Chart/chart-cartesian.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-drilldown.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-drilldown.interface.d.ts +60 -0
- package/dist/src/interfaces/Chart/chart-drilldown.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-gauge.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-gauge.interface.d.ts +130 -0
- package/dist/src/interfaces/Chart/chart-gauge.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-heatmap.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-heatmap.interface.d.ts +128 -0
- package/dist/src/interfaces/Chart/chart-heatmap.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-honeycomb.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-honeycomb.interface.d.ts +109 -0
- package/dist/src/interfaces/Chart/chart-honeycomb.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-legend.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-legend.interface.d.ts +48 -0
- package/dist/src/interfaces/Chart/chart-legend.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-map.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-map.interface.d.ts +137 -0
- package/dist/src/interfaces/Chart/chart-map.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-pareto.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-pareto.interface.d.ts +124 -0
- package/dist/src/interfaces/Chart/chart-pareto.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-pictorial.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-pictorial.interface.d.ts +114 -0
- package/dist/src/interfaces/Chart/chart-pictorial.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-plot-band.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-plot-band.interface.d.ts +34 -0
- package/dist/src/interfaces/Chart/chart-plot-band.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-plot-line.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-plot-line.interface.d.ts +39 -0
- package/dist/src/interfaces/Chart/chart-plot-line.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-point.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-point.interface.d.ts +20 -0
- package/dist/src/interfaces/Chart/chart-point.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-polar-bar.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-polar-bar.interface.d.ts +118 -0
- package/dist/src/interfaces/Chart/chart-polar-bar.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-polar.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-polar.interface.d.ts +43 -0
- package/dist/src/interfaces/Chart/chart-polar.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-pyramid.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-pyramid.interface.d.ts +96 -0
- package/dist/src/interfaces/Chart/chart-pyramid.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-radar.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-radar.interface.d.ts +10 -0
- package/dist/src/interfaces/Chart/chart-radar.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-range-selector.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-range-selector.interface.d.ts +38 -0
- package/dist/src/interfaces/Chart/chart-range-selector.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-sankey.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-sankey.interface.d.ts +124 -0
- package/dist/src/interfaces/Chart/chart-sankey.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-series.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-series.interface.d.ts +80 -0
- package/dist/src/interfaces/Chart/chart-series.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-sparkline.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-sparkline.interface.d.ts +108 -0
- package/dist/src/interfaces/Chart/chart-sparkline.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-streamgraph.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-streamgraph.interface.d.ts +82 -0
- package/dist/src/interfaces/Chart/chart-streamgraph.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-sunburst.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-sunburst.interface.d.ts +100 -0
- package/dist/src/interfaces/Chart/chart-sunburst.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-tooltip.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-tooltip.interface.d.ts +55 -0
- package/dist/src/interfaces/Chart/chart-tooltip.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-treemap.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-treemap.interface.d.ts +106 -0
- package/dist/src/interfaces/Chart/chart-treemap.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-variwide.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-variwide.interface.d.ts +132 -0
- package/dist/src/interfaces/Chart/chart-variwide.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart-word-cloud.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-word-cloud.interface.d.ts +83 -0
- package/dist/src/interfaces/Chart/chart-word-cloud.interface.js +0 -0
- package/dist/src/interfaces/Chart/chart.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart.interface.d.ts +276 -0
- package/dist/src/interfaces/Chart/chart.interface.js +0 -0
- package/dist/src/interfaces/Chip/chip-group.interface.d.ts +4 -1
- package/dist/src/interfaces/Chip/chip.interface.d.ts +5 -1
- package/dist/src/interfaces/Clipboard/clipboard.interface.cjs +1 -0
- package/dist/src/interfaces/Clipboard/clipboard.interface.d.ts +106 -0
- package/dist/src/interfaces/Clipboard/clipboard.interface.js +0 -0
- package/dist/src/interfaces/Code/code.interface.cjs +1 -0
- package/dist/src/interfaces/Code/code.interface.d.ts +89 -0
- package/dist/src/interfaces/Code/code.interface.js +0 -0
- package/dist/src/interfaces/ColorPicker/color-picker-canvas.interface.d.ts +5 -1
- package/dist/src/interfaces/ColorPicker/color-picker-edit.interface.d.ts +5 -1
- package/dist/src/interfaces/ColorPicker/color-picker-preview.interface.d.ts +4 -1
- package/dist/src/interfaces/ColorPicker/color-picker-swatches.interface.d.ts +5 -1
- package/dist/src/interfaces/ColorPicker/color-picker.interface.d.ts +18 -2
- package/dist/src/interfaces/CommandPalette/command-palette.interface.cjs +1 -0
- package/dist/src/interfaces/CommandPalette/command-palette.interface.d.ts +57 -0
- package/dist/src/interfaces/CommandPalette/command-palette.interface.js +0 -0
- package/dist/src/interfaces/CommandPalette/command.interface.cjs +1 -0
- package/dist/src/interfaces/CommandPalette/command.interface.d.ts +51 -0
- package/dist/src/interfaces/CommandPalette/command.interface.js +0 -0
- package/dist/src/interfaces/Commons/audio.interface.d.ts +7 -1
- package/dist/src/interfaces/Commons/clickOutside.interface.d.ts +5 -0
- package/dist/src/interfaces/Commons/commons.interface.d.ts +18 -0
- package/dist/src/interfaces/Commons/gradient.interface.cjs +1 -0
- package/dist/src/interfaces/Commons/gradient.interface.d.ts +39 -0
- package/dist/src/interfaces/Commons/gradient.interface.js +0 -0
- package/dist/src/interfaces/Commons/group.interface.d.ts +6 -0
- package/dist/src/interfaces/Commons/hover.interface.d.ts +4 -0
- package/dist/src/interfaces/Commons/layout.interface.d.ts +2 -2
- package/dist/src/interfaces/Commons/lazy.interface.d.ts +5 -1
- package/dist/src/interfaces/DataTable/data-table.interface.d.ts +12 -1
- package/dist/src/interfaces/DataTable/headers.interface.d.ts +6 -1
- package/dist/src/interfaces/DataTable/row.interface.d.ts +11 -0
- package/dist/src/interfaces/DatePicker/date-picker-controls.interface.d.ts +9 -0
- package/dist/src/interfaces/DatePicker/date-picker-header.interface.d.ts +4 -1
- package/dist/src/interfaces/DatePicker/date-picker-months.interface.d.ts +4 -0
- package/dist/src/interfaces/DatePicker/date-picker-years.interface.d.ts +4 -0
- package/dist/src/interfaces/DatePicker/date-picker.interface.d.ts +9 -1
- package/dist/src/interfaces/DatePickerField/date-picker-field.interface.d.ts +2 -2
- package/dist/src/interfaces/Dialog/dialog-confirmation.interface.d.ts +5 -0
- package/dist/src/interfaces/Dialog/dialog.interface.d.ts +8 -1
- package/dist/src/interfaces/Drawer/drawer.interface.d.ts +4 -0
- package/dist/src/interfaces/EmptyState/empty-state.interface.cjs +1 -0
- package/dist/src/interfaces/EmptyState/empty-state.interface.d.ts +100 -0
- package/dist/src/interfaces/EmptyState/empty-state.interface.js +0 -0
- package/dist/src/interfaces/ExpensionPanel/expansion-panel-header.interface.d.ts +4 -1
- package/dist/src/interfaces/ExpensionPanel/expansion-panel.interface.d.ts +4 -1
- package/dist/src/interfaces/ExpensionPanel/expansion-panels.interface.d.ts +4 -1
- package/dist/src/interfaces/FileField/file-field-dragndrop-item.interface.d.ts +2 -3
- package/dist/src/interfaces/FileField/file-field-list-item.interface.d.ts +2 -3
- package/dist/src/interfaces/Grid/grid-item.interface.cjs +1 -0
- package/dist/src/interfaces/Grid/grid-item.interface.d.ts +55 -0
- package/dist/src/interfaces/Grid/grid-item.interface.js +0 -0
- package/dist/src/interfaces/Grid/grid.interface.cjs +1 -0
- package/dist/src/interfaces/Grid/grid.interface.d.ts +121 -0
- package/dist/src/interfaces/Grid/grid.interface.js +0 -0
- package/dist/src/interfaces/Icon/icon.interface.d.ts +2 -2
- package/dist/src/interfaces/Img/img.interface.d.ts +14 -0
- package/dist/src/interfaces/InfiniteScroll/infinite-scroll.interface.d.ts +16 -0
- package/dist/src/interfaces/InlineEdit/inline-edit.interface.cjs +1 -0
- package/dist/src/interfaces/InlineEdit/inline-edit.interface.d.ts +241 -0
- package/dist/src/interfaces/InlineEdit/inline-edit.interface.js +0 -0
- package/dist/src/interfaces/ItemGroup/item-group.interface.d.ts +4 -1
- package/dist/src/interfaces/List/list-group.interface.d.ts +5 -0
- package/dist/src/interfaces/List/list-item.interface.d.ts +4 -1
- package/dist/src/interfaces/List/list.interface.d.ts +16 -0
- package/dist/src/interfaces/Main/main.interface.d.ts +2 -2
- package/dist/src/interfaces/Mask/mask-options.interface.cjs +1 -0
- package/dist/src/interfaces/Mask/mask-options.interface.d.ts +48 -0
- package/dist/src/interfaces/Mask/mask-options.interface.js +0 -0
- package/dist/src/interfaces/Masonry/masonry.interface.cjs +1 -0
- package/dist/src/interfaces/Masonry/masonry.interface.d.ts +80 -0
- package/dist/src/interfaces/Masonry/masonry.interface.js +0 -0
- package/dist/src/interfaces/Media/index.cjs +49 -0
- package/dist/src/interfaces/Media/index.d.ts +4 -0
- package/dist/src/interfaces/Media/index.js +4 -0
- package/dist/src/interfaces/Media/media-controller.interface.cjs +1 -0
- package/dist/src/interfaces/Media/media-controller.interface.d.ts +159 -0
- package/dist/src/interfaces/Media/media-controller.interface.js +0 -0
- package/dist/src/interfaces/Media/media-player.interface.cjs +1 -0
- package/dist/src/interfaces/Media/media-player.interface.d.ts +121 -0
- package/dist/src/interfaces/Media/media-player.interface.js +0 -0
- package/dist/src/interfaces/Media/media-scrubber.interface.cjs +1 -0
- package/dist/src/interfaces/Media/media-scrubber.interface.d.ts +129 -0
- package/dist/src/interfaces/Media/media-scrubber.interface.js +0 -0
- package/dist/src/interfaces/Media/media-volume-control.interface.cjs +1 -0
- package/dist/src/interfaces/Media/media-volume-control.interface.d.ts +68 -0
- package/dist/src/interfaces/Media/media-volume-control.interface.js +0 -0
- package/dist/src/interfaces/Menu/menu.interface.d.ts +7 -1
- package/dist/src/interfaces/NumberField/number-field.interface.d.ts +2 -2
- package/dist/src/interfaces/NumberFormat/number-format.interface.cjs +1 -0
- package/dist/src/interfaces/NumberFormat/number-format.interface.d.ts +161 -0
- package/dist/src/interfaces/NumberFormat/number-format.interface.js +0 -0
- package/dist/src/interfaces/Nuxt/nuxt-module.interface.cjs +1 -0
- package/dist/src/interfaces/Nuxt/nuxt-module.interface.d.ts +73 -0
- package/dist/src/interfaces/Nuxt/nuxt-module.interface.js +0 -0
- package/dist/src/interfaces/OtpInputField/otp-input-field.interface.d.ts +2 -2
- package/dist/src/interfaces/Overlay/overlay-scrim.interface.d.ts +8 -1
- package/dist/src/interfaces/Overlay/overlay.interface.d.ts +8 -1
- package/dist/src/interfaces/Pagination/pagination.interface.d.ts +9 -1
- package/dist/src/interfaces/Parallax/parallax-layer.interface.cjs +1 -0
- package/dist/src/interfaces/Parallax/parallax-layer.interface.d.ts +39 -0
- package/dist/src/interfaces/Parallax/parallax-layer.interface.js +0 -0
- package/dist/src/interfaces/Parallax/parallax.interface.d.ts +83 -3
- package/dist/src/interfaces/PasswordField/password-field.interface.d.ts +2 -2
- package/dist/src/interfaces/Picker/picker.interface.d.ts +2 -2
- package/dist/src/interfaces/QrCode/qr-code-logo.interface.cjs +1 -0
- package/dist/src/interfaces/QrCode/qr-code-logo.interface.d.ts +47 -0
- package/dist/src/interfaces/QrCode/qr-code-logo.interface.js +0 -0
- package/dist/src/interfaces/QrCode/qr-code.interface.cjs +1 -0
- package/dist/src/interfaces/QrCode/qr-code.interface.d.ts +152 -0
- package/dist/src/interfaces/QrCode/qr-code.interface.js +0 -0
- package/dist/src/interfaces/Radio/radio-btn.interface.d.ts +4 -1
- package/dist/src/interfaces/Radio/radio.interface.d.ts +4 -1
- package/dist/src/interfaces/RatingField/rating-field-item.interface.d.ts +7 -1
- package/dist/src/interfaces/RatingField/rating-field.interface.d.ts +5 -2
- package/dist/src/interfaces/Select/select.interface.d.ts +9 -1
- package/dist/src/interfaces/Slide/slide-group.interface.d.ts +4 -1
- package/dist/src/interfaces/SliderField/slider-field-track.interface.d.ts +17 -0
- package/dist/src/interfaces/SliderField/slider-field.interface.d.ts +77 -59
- package/dist/src/interfaces/Snackbar/snackbar-group-item.interface.cjs +1 -0
- package/dist/src/interfaces/Snackbar/snackbar-group-item.interface.d.ts +60 -0
- package/dist/src/interfaces/Snackbar/snackbar-group-item.interface.js +0 -0
- package/dist/src/interfaces/Snackbar/snackbar-group.interface.cjs +1 -0
- package/dist/src/interfaces/Snackbar/snackbar-group.interface.d.ts +60 -0
- package/dist/src/interfaces/Snackbar/snackbar-group.interface.js +0 -0
- package/dist/src/interfaces/Snackbar/snackbar-item.interface.cjs +1 -0
- package/dist/src/interfaces/Snackbar/snackbar-item.interface.d.ts +79 -0
- package/dist/src/interfaces/Snackbar/snackbar-item.interface.js +0 -0
- package/dist/src/interfaces/Stepper/stepper.interface.d.ts +2 -2
- package/dist/src/interfaces/Switch/switch-track.interface.d.ts +8 -0
- package/dist/src/interfaces/Switch/switch.interface.d.ts +5 -1
- package/dist/src/interfaces/Table/table.interface.d.ts +3 -0
- package/dist/src/interfaces/Tabs/tab-panel.interface.cjs +1 -0
- package/dist/src/interfaces/Tabs/tab-panel.interface.d.ts +12 -0
- package/dist/src/interfaces/Tabs/tab-panel.interface.js +0 -0
- package/dist/src/interfaces/Tabs/tab-panels.interface.cjs +1 -0
- package/dist/src/interfaces/Tabs/tab-panels.interface.d.ts +31 -0
- package/dist/src/interfaces/Tabs/tab-panels.interface.js +0 -0
- package/dist/src/interfaces/Tabs/tab.interface.cjs +1 -0
- package/dist/src/interfaces/Tabs/tab.interface.d.ts +18 -0
- package/dist/src/interfaces/Tabs/tab.interface.js +0 -0
- package/dist/src/interfaces/Tabs/tabs.interface.cjs +1 -0
- package/dist/src/interfaces/Tabs/tabs.interface.d.ts +29 -0
- package/dist/src/interfaces/Tabs/tabs.interface.js +0 -0
- package/dist/src/interfaces/TextField/text-field.interface.d.ts +21 -1
- package/dist/src/interfaces/TextMask/text-mask.interface.cjs +1 -0
- package/dist/src/interfaces/TextMask/text-mask.interface.d.ts +112 -0
- package/dist/src/interfaces/TextMask/text-mask.interface.js +0 -0
- package/dist/src/interfaces/Textarea/textarea-rich.interface.cjs +1 -0
- package/dist/src/interfaces/Textarea/textarea-rich.interface.d.ts +41 -0
- package/dist/src/interfaces/Textarea/textarea-rich.interface.js +0 -0
- package/dist/src/interfaces/Textarea/textarea-toolbar.interface.cjs +1 -0
- package/dist/src/interfaces/Textarea/textarea-toolbar.interface.d.ts +31 -0
- package/dist/src/interfaces/Textarea/textarea-toolbar.interface.js +0 -0
- package/dist/src/interfaces/TextareaField/textarea-field.interface.d.ts +38 -1
- package/dist/src/interfaces/Tooltip/tooltip.interface.d.ts +4 -1
- package/dist/src/interfaces/Video/video-track.interface.cjs +1 -0
- package/dist/src/interfaces/Video/video-track.interface.d.ts +76 -0
- package/dist/src/interfaces/Video/video-track.interface.js +0 -0
- package/dist/src/interfaces/Video/video.interface.cjs +1 -0
- package/dist/src/interfaces/Video/video.interface.d.ts +317 -0
- package/dist/src/interfaces/Video/video.interface.js +0 -0
- package/dist/src/interfaces/VirtualScroll/virtual-scroll-item.interface.d.ts +6 -0
- package/dist/src/interfaces/Watermark/watermark.interface.cjs +1 -0
- package/dist/src/interfaces/Watermark/watermark.interface.d.ts +163 -0
- package/dist/src/interfaces/Watermark/watermark.interface.js +0 -0
- package/dist/src/interfaces/Window/window-item.interface.d.ts +4 -1
- package/dist/src/interfaces/Window/window.interface.d.ts +4 -1
- package/dist/src/interfaces/index.cjs +811 -41
- package/dist/src/interfaces/index.d.ts +74 -4
- package/dist/src/interfaces/index.js +74 -4
- package/dist/src/nuxt/index.cjs +13 -0
- package/dist/src/nuxt/index.d.ts +2 -0
- package/dist/src/nuxt/index.js +1 -0
- package/dist/src/nuxt/module.cjs +74 -0
- package/dist/src/nuxt/module.d.ts +31 -0
- package/dist/src/nuxt/module.js +68 -0
- package/dist/src/nuxt/plugin.client.cjs +44 -0
- package/dist/src/nuxt/plugin.client.d.ts +2 -0
- package/dist/src/nuxt/plugin.client.js +36 -0
- package/dist/src/nuxt/plugin.server.cjs +51 -0
- package/dist/src/nuxt/plugin.server.d.ts +2 -0
- package/dist/src/nuxt/plugin.server.js +45 -0
- package/dist/src/types/Audio/audio-controls.type.cjs +1 -0
- package/dist/src/types/Audio/audio-controls.type.d.ts +12 -0
- package/dist/src/types/Audio/audio-controls.type.js +0 -0
- package/dist/src/types/Audio/audio-loop-mode.type.cjs +1 -0
- package/dist/src/types/Audio/audio-loop-mode.type.d.ts +5 -0
- package/dist/src/types/Audio/audio-loop-mode.type.js +0 -0
- package/dist/src/types/Audio/audio-variant.type.cjs +1 -0
- package/dist/src/types/Audio/audio-variant.type.d.ts +7 -0
- package/dist/src/types/Audio/audio-variant.type.js +0 -0
- package/dist/src/types/Audio/cover-position.type.cjs +1 -0
- package/dist/src/types/Audio/cover-position.type.d.ts +6 -0
- package/dist/src/types/Audio/cover-position.type.js +0 -0
- package/dist/src/types/Blockquote/blockquote-align.type.cjs +1 -0
- package/dist/src/types/Blockquote/blockquote-align.type.d.ts +5 -0
- package/dist/src/types/Blockquote/blockquote-align.type.js +0 -0
- package/dist/src/types/Blockquote/blockquote-lang.type.cjs +1 -0
- package/dist/src/types/Blockquote/blockquote-lang.type.d.ts +18 -0
- package/dist/src/types/Blockquote/blockquote-lang.type.js +0 -0
- package/dist/src/types/Blockquote/blockquote-variant.type.cjs +1 -0
- package/dist/src/types/Blockquote/blockquote-variant.type.d.ts +17 -0
- package/dist/src/types/Blockquote/blockquote-variant.type.js +0 -0
- package/dist/src/types/Bracket/bracket-direction.type.cjs +1 -0
- package/dist/src/types/Bracket/bracket-direction.type.d.ts +13 -0
- package/dist/src/types/Bracket/bracket-direction.type.js +0 -0
- package/dist/src/types/Bracket/bracket-match-status.type.cjs +1 -0
- package/dist/src/types/Bracket/bracket-match-status.type.d.ts +2 -0
- package/dist/src/types/Bracket/bracket-match-status.type.js +0 -0
- package/dist/src/types/Bracket/bracket-round-side.type.cjs +1 -0
- package/dist/src/types/Bracket/bracket-round-side.type.d.ts +12 -0
- package/dist/src/types/Bracket/bracket-round-side.type.js +0 -0
- package/dist/src/types/Bracket/bracket-variant.type.cjs +1 -0
- package/dist/src/types/Bracket/bracket-variant.type.d.ts +2 -0
- package/dist/src/types/Bracket/bracket-variant.type.js +0 -0
- package/dist/src/types/Calendar/calendar-time-format.type.cjs +1 -0
- package/dist/src/types/Calendar/calendar-time-format.type.d.ts +13 -0
- package/dist/src/types/Calendar/calendar-time-format.type.js +0 -0
- package/dist/src/types/Calendar/calendar-view.type.cjs +1 -0
- package/dist/src/types/Calendar/calendar-view.type.d.ts +10 -0
- package/dist/src/types/Calendar/calendar-view.type.js +0 -0
- package/dist/src/types/Chart/chart-bullet-orientation.type.cjs +1 -0
- package/dist/src/types/Chart/chart-bullet-orientation.type.d.ts +1 -0
- package/dist/src/types/Chart/chart-bullet-orientation.type.js +0 -0
- package/dist/src/types/Chart/chart-cartesian-kind.type.cjs +1 -0
- package/dist/src/types/Chart/chart-cartesian-kind.type.d.ts +18 -0
- package/dist/src/types/Chart/chart-cartesian-kind.type.js +0 -0
- package/dist/src/types/Chart/chart-honeycomb-color-mode.type.cjs +1 -0
- package/dist/src/types/Chart/chart-honeycomb-color-mode.type.d.ts +2 -0
- package/dist/src/types/Chart/chart-honeycomb-color-mode.type.js +0 -0
- package/dist/src/types/Chart/chart-honeycomb-orientation.type.cjs +1 -0
- package/dist/src/types/Chart/chart-honeycomb-orientation.type.d.ts +2 -0
- package/dist/src/types/Chart/chart-honeycomb-orientation.type.js +0 -0
- package/dist/src/types/Chart/chart-item.type.cjs +1 -0
- package/dist/src/types/Chart/chart-item.type.d.ts +9 -0
- package/dist/src/types/Chart/chart-item.type.js +0 -0
- package/dist/src/types/Chart/chart-legend-position.type.cjs +1 -0
- package/dist/src/types/Chart/chart-legend-position.type.d.ts +6 -0
- package/dist/src/types/Chart/chart-legend-position.type.js +0 -0
- package/dist/src/types/Chart/chart-map-mode.type.cjs +1 -0
- package/dist/src/types/Chart/chart-map-mode.type.d.ts +8 -0
- package/dist/src/types/Chart/chart-map-mode.type.js +0 -0
- package/dist/src/types/Chart/chart-pictorial-direction.type.cjs +1 -0
- package/dist/src/types/Chart/chart-pictorial-direction.type.d.ts +1 -0
- package/dist/src/types/Chart/chart-pictorial-direction.type.js +0 -0
- package/dist/src/types/Chart/chart-pictorial-mode.type.cjs +1 -0
- package/dist/src/types/Chart/chart-pictorial-mode.type.d.ts +1 -0
- package/dist/src/types/Chart/chart-pictorial-mode.type.js +0 -0
- package/dist/src/types/Chart/chart-polar-kind.type.cjs +1 -0
- package/dist/src/types/Chart/chart-polar-kind.type.d.ts +14 -0
- package/dist/src/types/Chart/chart-polar-kind.type.js +0 -0
- package/dist/src/types/Chart/chart-pyramid-kind.type.cjs +1 -0
- package/dist/src/types/Chart/chart-pyramid-kind.type.d.ts +9 -0
- package/dist/src/types/Chart/chart-pyramid-kind.type.js +0 -0
- package/dist/src/types/Chart/chart-smoothing.type.cjs +1 -0
- package/dist/src/types/Chart/chart-smoothing.type.d.ts +17 -0
- package/dist/src/types/Chart/chart-smoothing.type.js +0 -0
- package/dist/src/types/Chart/chart-sparkline-kind.type.cjs +1 -0
- package/dist/src/types/Chart/chart-sparkline-kind.type.d.ts +10 -0
- package/dist/src/types/Chart/chart-sparkline-kind.type.js +0 -0
- package/dist/src/types/Chart/chart-stacking.type.cjs +1 -0
- package/dist/src/types/Chart/chart-stacking.type.d.ts +9 -0
- package/dist/src/types/Chart/chart-stacking.type.js +0 -0
- package/dist/src/types/Chart/chart-streamgraph-offset.type.cjs +1 -0
- package/dist/src/types/Chart/chart-streamgraph-offset.type.d.ts +1 -0
- package/dist/src/types/Chart/chart-streamgraph-offset.type.js +0 -0
- package/dist/src/types/Chart/chart-treemap-algorithm.type.cjs +1 -0
- package/dist/src/types/Chart/chart-treemap-algorithm.type.d.ts +12 -0
- package/dist/src/types/Chart/chart-treemap-algorithm.type.js +0 -0
- package/dist/src/types/Chart/chart-type.type.cjs +1 -0
- package/dist/src/types/Chart/chart-type.type.d.ts +7 -0
- package/dist/src/types/Chart/chart-type.type.js +0 -0
- package/dist/src/types/Chart/chart-word-cloud-rotation.type.cjs +1 -0
- package/dist/src/types/Chart/chart-word-cloud-rotation.type.d.ts +8 -0
- package/dist/src/types/Chart/chart-word-cloud-rotation.type.js +0 -0
- package/dist/src/types/Code/code-lang.type.cjs +1 -0
- package/dist/src/types/Code/code-lang.type.d.ts +2 -0
- package/dist/src/types/Code/code-lang.type.js +0 -0
- package/dist/src/types/Code/code-theme.type.cjs +1 -0
- package/dist/src/types/Code/code-theme.type.d.ts +2 -0
- package/dist/src/types/Code/code-theme.type.js +0 -0
- package/dist/src/types/CommandPalette/command-palette-hotkey.type.cjs +1 -0
- package/dist/src/types/CommandPalette/command-palette-hotkey.type.d.ts +5 -0
- package/dist/src/types/CommandPalette/command-palette-hotkey.type.js +0 -0
- package/dist/src/types/Commons/color.type.d.ts +18 -1
- package/dist/src/types/EmptyState/empty-state-align.type.cjs +1 -0
- package/dist/src/types/EmptyState/empty-state-align.type.d.ts +10 -0
- package/dist/src/types/EmptyState/empty-state-align.type.js +0 -0
- package/dist/src/types/EmptyState/empty-state-preset.type.cjs +1 -0
- package/dist/src/types/EmptyState/empty-state-preset.type.d.ts +14 -0
- package/dist/src/types/EmptyState/empty-state-preset.type.js +0 -0
- package/dist/src/types/EmptyState/empty-state-size.type.cjs +1 -0
- package/dist/src/types/EmptyState/empty-state-size.type.d.ts +9 -0
- package/dist/src/types/EmptyState/empty-state-size.type.js +0 -0
- package/dist/src/types/Grid/grid-align.type.cjs +1 -0
- package/dist/src/types/Grid/grid-align.type.d.ts +28 -0
- package/dist/src/types/Grid/grid-align.type.js +0 -0
- package/dist/src/types/Grid/grid-flow.type.cjs +1 -0
- package/dist/src/types/Grid/grid-flow.type.d.ts +10 -0
- package/dist/src/types/Grid/grid-flow.type.js +0 -0
- package/dist/src/types/InlineEdit/inline-edit-input-type.type.cjs +1 -0
- package/dist/src/types/InlineEdit/inline-edit-input-type.type.d.ts +7 -0
- package/dist/src/types/InlineEdit/inline-edit-input-type.type.js +0 -0
- package/dist/src/types/Mask/built-in-pattern.type.cjs +1 -0
- package/dist/src/types/Mask/built-in-pattern.type.d.ts +7 -0
- package/dist/src/types/Mask/built-in-pattern.type.js +0 -0
- package/dist/src/types/Mask/mask.type.cjs +1 -0
- package/dist/src/types/Mask/mask.type.d.ts +19 -0
- package/dist/src/types/Mask/mask.type.js +0 -0
- package/dist/src/types/Mask/pattern-validator.type.cjs +1 -0
- package/dist/src/types/Mask/pattern-validator.type.d.ts +16 -0
- package/dist/src/types/Mask/pattern-validator.type.js +0 -0
- package/dist/src/types/Masonry/masonry-align.type.cjs +1 -0
- package/dist/src/types/Masonry/masonry-align.type.d.ts +16 -0
- package/dist/src/types/Masonry/masonry-align.type.js +0 -0
- package/dist/src/types/Media/index.cjs +27 -0
- package/dist/src/types/Media/index.d.ts +2 -0
- package/dist/src/types/Media/index.js +2 -0
- package/dist/src/types/Media/media-scrubber-orientation.type.cjs +1 -0
- package/dist/src/types/Media/media-scrubber-orientation.type.d.ts +6 -0
- package/dist/src/types/Media/media-scrubber-orientation.type.js +0 -0
- package/dist/src/types/Media/quality-option.type.cjs +1 -0
- package/dist/src/types/Media/quality-option.type.d.ts +25 -0
- package/dist/src/types/Media/quality-option.type.js +0 -0
- package/dist/src/types/NumberFormat/number-format-format.type.cjs +1 -0
- package/dist/src/types/NumberFormat/number-format-format.type.d.ts +56 -0
- package/dist/src/types/NumberFormat/number-format-format.type.js +0 -0
- package/dist/src/types/Parallax/parallax-direction.type.cjs +1 -0
- package/dist/src/types/Parallax/parallax-direction.type.d.ts +2 -0
- package/dist/src/types/Parallax/parallax-direction.type.js +0 -0
- package/dist/src/types/Parallax/parallax-easing.type.cjs +1 -0
- package/dist/src/types/Parallax/parallax-easing.type.d.ts +2 -0
- package/dist/src/types/Parallax/parallax-easing.type.js +0 -0
- package/dist/src/types/QrCode/qr-code-error-correction.type.cjs +1 -0
- package/dist/src/types/QrCode/qr-code-error-correction.type.d.ts +22 -0
- package/dist/src/types/QrCode/qr-code-error-correction.type.js +0 -0
- package/dist/src/types/SliderField/slider-field-variant.type.cjs +1 -0
- package/dist/src/types/SliderField/slider-field-variant.type.d.ts +10 -0
- package/dist/src/types/SliderField/slider-field-variant.type.js +0 -0
- package/dist/src/types/Snackbar/snackbar-group-direction.type.cjs +1 -0
- package/dist/src/types/Snackbar/snackbar-group-direction.type.d.ts +11 -0
- package/dist/src/types/Snackbar/snackbar-group-direction.type.js +0 -0
- package/dist/src/types/Snackbar/snackbar-group-location.type.cjs +1 -0
- package/dist/src/types/Snackbar/snackbar-group-location.type.d.ts +9 -0
- package/dist/src/types/Snackbar/snackbar-group-location.type.js +0 -0
- package/dist/src/types/Snackbar/snackbar-group.type.cjs +1 -0
- package/dist/src/types/Snackbar/snackbar-group.type.d.ts +2 -0
- package/dist/src/types/Snackbar/snackbar-group.type.js +0 -0
- package/dist/src/types/Tabs/tab-panel.type.cjs +1 -0
- package/dist/src/types/Tabs/tab-panel.type.d.ts +2 -0
- package/dist/src/types/Tabs/tab-panel.type.js +0 -0
- package/dist/src/types/Tabs/tab-panels.type.cjs +1 -0
- package/dist/src/types/Tabs/tab-panels.type.d.ts +2 -0
- package/dist/src/types/Tabs/tab-panels.type.js +0 -0
- package/dist/src/types/Tabs/tab-variant.type.cjs +1 -0
- package/dist/src/types/Tabs/tab-variant.type.d.ts +2 -0
- package/dist/src/types/Tabs/tab-variant.type.js +0 -0
- package/dist/src/types/Tabs/tab.type.cjs +1 -0
- package/dist/src/types/Tabs/tab.type.d.ts +2 -0
- package/dist/src/types/Tabs/tab.type.js +0 -0
- package/dist/src/types/Tabs/tabs.type.cjs +1 -0
- package/dist/src/types/Tabs/tabs.type.d.ts +2 -0
- package/dist/src/types/Tabs/tabs.type.js +0 -0
- package/dist/src/types/TextMask/text-mask-animation.type.cjs +1 -0
- package/dist/src/types/TextMask/text-mask-animation.type.d.ts +16 -0
- package/dist/src/types/TextMask/text-mask-animation.type.js +0 -0
- package/dist/src/types/TextMask/text-mask.type.cjs +1 -0
- package/dist/src/types/TextMask/text-mask.type.d.ts +2 -0
- package/dist/src/types/TextMask/text-mask.type.js +0 -0
- package/dist/src/types/Textarea/textarea-mode.type.cjs +1 -0
- package/dist/src/types/Textarea/textarea-mode.type.d.ts +2 -0
- package/dist/src/types/Textarea/textarea-mode.type.js +0 -0
- package/dist/src/types/Textarea/textarea-output.type.cjs +1 -0
- package/dist/src/types/Textarea/textarea-output.type.d.ts +2 -0
- package/dist/src/types/Textarea/textarea-output.type.js +0 -0
- package/dist/src/types/Textarea/textarea-toolbar-command.type.cjs +1 -0
- package/dist/src/types/Textarea/textarea-toolbar-command.type.d.ts +2 -0
- package/dist/src/types/Textarea/textarea-toolbar-command.type.js +0 -0
- package/dist/src/types/Textarea/textarea-toolbar-position.type.cjs +1 -0
- package/dist/src/types/Textarea/textarea-toolbar-position.type.d.ts +2 -0
- package/dist/src/types/Textarea/textarea-toolbar-position.type.js +0 -0
- package/dist/src/types/Video/video-controls.type.cjs +1 -0
- package/dist/src/types/Video/video-controls.type.d.ts +17 -0
- package/dist/src/types/Video/video-controls.type.js +0 -0
- package/dist/src/types/Video/video-track-kind.type.cjs +1 -0
- package/dist/src/types/Video/video-track-kind.type.d.ts +11 -0
- package/dist/src/types/Video/video-track-kind.type.js +0 -0
- package/dist/src/types/index.cjs +708 -15
- package/dist/src/types/index.d.ts +65 -2
- package/dist/src/types/index.js +65 -2
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/dist/src/utils/Calendar/date.util.cjs +181 -0
- package/dist/src/utils/Calendar/date.util.d.ts +96 -0
- package/dist/src/utils/Calendar/date.util.js +114 -0
- package/dist/src/utils/Calendar/rrule.util.cjs +105 -0
- package/dist/src/utils/Calendar/rrule.util.d.ts +49 -0
- package/dist/src/utils/Calendar/rrule.util.js +92 -0
- package/dist/src/utils/Chart/box-plot.util.cjs +62 -0
- package/dist/src/utils/Chart/box-plot.util.d.ts +32 -0
- package/dist/src/utils/Chart/box-plot.util.js +47 -0
- package/dist/src/utils/Chart/mercator.util.cjs +53 -0
- package/dist/src/utils/Chart/mercator.util.d.ts +51 -0
- package/dist/src/utils/Chart/mercator.util.js +44 -0
- package/dist/src/utils/Chart/path.util.cjs +150 -0
- package/dist/src/utils/Chart/path.util.d.ts +116 -0
- package/dist/src/utils/Chart/path.util.js +143 -0
- package/dist/src/utils/Code/parse-highlight-lines.util.cjs +34 -0
- package/dist/src/utils/Code/parse-highlight-lines.util.d.ts +24 -0
- package/dist/src/utils/Code/parse-highlight-lines.util.js +28 -0
- package/dist/src/utils/CommandPalette/fuzzy-match.util.cjs +84 -0
- package/dist/src/utils/CommandPalette/fuzzy-match.util.d.ts +51 -0
- package/dist/src/utils/CommandPalette/fuzzy-match.util.js +62 -0
- package/dist/src/utils/Commons/gradient.util.cjs +74 -0
- package/dist/src/utils/Commons/gradient.util.d.ts +36 -0
- package/dist/src/utils/Commons/gradient.util.js +66 -0
- package/dist/src/utils/Mask/apply-mask.util.cjs +120 -0
- package/dist/src/utils/Mask/apply-mask.util.d.ts +13 -0
- package/dist/src/utils/Mask/apply-mask.util.js +91 -0
- package/dist/src/utils/Mask/index.cjs +38 -0
- package/dist/src/utils/Mask/index.d.ts +3 -0
- package/dist/src/utils/Mask/index.js +3 -0
- package/dist/src/utils/Mask/resolve-mask-config.util.cjs +31 -0
- package/dist/src/utils/Mask/resolve-mask-config.util.d.ts +15 -0
- package/dist/src/utils/Mask/resolve-mask-config.util.js +21 -0
- package/dist/src/utils/Mask/validate-pattern.util.cjs +92 -0
- package/dist/src/utils/Mask/validate-pattern.util.d.ts +41 -0
- package/dist/src/utils/Mask/validate-pattern.util.js +81 -0
- package/dist/src/utils/Media/format-time.util.cjs +16 -0
- package/dist/src/utils/Media/format-time.util.d.ts +16 -0
- package/dist/src/utils/Media/format-time.util.js +10 -0
- package/dist/src/utils/QrCode/qr-code-adapters.util.cjs +34 -0
- package/dist/src/utils/QrCode/qr-code-adapters.util.d.ts +49 -0
- package/dist/src/utils/QrCode/qr-code-adapters.util.js +27 -0
- package/dist/src/utils/Textarea/html-to-markdown.util.cjs +85 -0
- package/dist/src/utils/Textarea/html-to-markdown.util.d.ts +21 -0
- package/dist/src/utils/Textarea/html-to-markdown.util.js +78 -0
- package/dist/src/utils/Textarea/sanitize-html.util.cjs +82 -0
- package/dist/src/utils/Textarea/sanitize-html.util.d.ts +17 -0
- package/dist/src/utils/Textarea/sanitize-html.util.js +83 -0
- package/dist/src/utils/index.cjs +125 -15
- package/dist/src/utils/index.d.ts +12 -2
- package/dist/src/utils/index.js +12 -2
- package/package.json +22 -5
- package/dist/src/components/SliderField/OrigamSliderFieldThumb.vue +0 -384
- package/dist/src/consts/SliderField/slider-field.const.cjs +0 -7
- package/dist/src/consts/SliderField/slider-field.const.d.ts +0 -3
- package/dist/src/consts/SliderField/slider-field.const.js +0 -1
- package/dist/src/enums/Charts/chart.enum.cjs +0 -12
- package/dist/src/enums/Charts/chart.enum.d.ts +0 -5
- package/dist/src/enums/Charts/chart.enum.js +0 -6
- package/dist/src/globals.d.ts +0 -172
- package/dist/src/interfaces/Charts/chart-bar.interface.d.ts +0 -4
- package/dist/src/interfaces/Charts/chart-line.interface.d.ts +0 -15
- package/dist/src/interfaces/Charts/chart.interface.d.ts +0 -21
- package/dist/src/interfaces/SliderField/slider-field-thumb.interface.d.ts +0 -12
- package/dist/src/shims.d.ts +0 -36
- package/dist/src/types/Charts/chart.type.d.ts +0 -5
- package/dist/src/types/SliderField/slider-field-thumb.type.d.ts +0 -2
- package/dist/src/utils/Charts/chart.util.cjs +0 -50
- package/dist/src/utils/Charts/chart.util.d.ts +0 -30
- package/dist/src/utils/Charts/chart.util.js +0 -40
- package/dist/src/utils/SliderField/slider-field.util.cjs +0 -12
- package/dist/src/utils/SliderField/slider-field.util.d.ts +0 -8
- package/dist/src/utils/SliderField/slider-field.util.js +0 -6
- package/dist/src/vite-env.d.ts +0 -1
- /package/dist/src/{interfaces/Charts/chart-bar.interface.js → components/QRCode/index.d.ts} +0 -0
- /package/dist/src/interfaces/{Charts/chart-bar.interface.cjs → Audio/audio-player.interface.cjs} +0 -0
- /package/dist/src/interfaces/{Charts/chart-line.interface.js → Audio/audio-player.interface.js} +0 -0
- /package/dist/src/interfaces/{Charts/chart-line.interface.cjs → Blockquote/blockquote.interface.cjs} +0 -0
- /package/dist/src/interfaces/{Charts/chart.interface.js → Blockquote/blockquote.interface.js} +0 -0
- /package/dist/src/interfaces/{Charts/chart.interface.cjs → Bracket/bracket-competitor-component.interface.cjs} +0 -0
- /package/dist/src/interfaces/{SliderField/slider-field-thumb.interface.js → Bracket/bracket-competitor-component.interface.js} +0 -0
- /package/dist/src/interfaces/{SliderField/slider-field-thumb.interface.cjs → Bracket/bracket-competitor.interface.cjs} +0 -0
- /package/dist/src/{types/Charts/chart.type.js → interfaces/Bracket/bracket-competitor.interface.js} +0 -0
- /package/dist/src/{types/Charts/chart.type.cjs → interfaces/Bracket/bracket-match-component.interface.cjs} +0 -0
- /package/dist/src/{types/SliderField/slider-field-thumb.type.js → interfaces/Bracket/bracket-match-component.interface.js} +0 -0
- /package/dist/src/{types/SliderField/slider-field-thumb.type.cjs → interfaces/Bracket/bracket-match.interface.cjs} +0 -0
|
@@ -0,0 +1,829 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
ref
|
|
4
|
+
} from "vue";
|
|
5
|
+
import { CHART_STACKING } from "../../enums/index.js";
|
|
6
|
+
import {
|
|
7
|
+
arcPath,
|
|
8
|
+
areaPath,
|
|
9
|
+
linePath,
|
|
10
|
+
monotonePath,
|
|
11
|
+
pathLength as computePathLength,
|
|
12
|
+
steppedPathLength,
|
|
13
|
+
polarToCartesian,
|
|
14
|
+
polygonPath,
|
|
15
|
+
smoothPath,
|
|
16
|
+
steppedPath
|
|
17
|
+
} from "../../utils/Chart/path.util.js";
|
|
18
|
+
import { CHART_Y_TICK_COUNT } from "../../consts/Chart/chart.const.js";
|
|
19
|
+
import { intentBgExpr, isIntent } from "../../utils/Commons/color.util.js";
|
|
20
|
+
const DEFAULT_PALETTE = [
|
|
21
|
+
"primary",
|
|
22
|
+
"success",
|
|
23
|
+
"warning",
|
|
24
|
+
"danger",
|
|
25
|
+
"info",
|
|
26
|
+
"secondary",
|
|
27
|
+
"ghost",
|
|
28
|
+
"neutral"
|
|
29
|
+
];
|
|
30
|
+
const resolveColor = (raw) => {
|
|
31
|
+
if (!raw) return "currentColor";
|
|
32
|
+
if (/^(#|rgb|hsl|var|currentColor|transparent|linear-gradient|radial-gradient|conic-gradient)/i.test(raw)) {
|
|
33
|
+
return raw;
|
|
34
|
+
}
|
|
35
|
+
if (isIntent(raw)) {
|
|
36
|
+
return intentBgExpr(raw, "default");
|
|
37
|
+
}
|
|
38
|
+
return "currentColor";
|
|
39
|
+
};
|
|
40
|
+
const dashArray = (dash) => {
|
|
41
|
+
if (dash === "dotted") return "2 4";
|
|
42
|
+
if (dash === "solid") return "none";
|
|
43
|
+
return "6 4";
|
|
44
|
+
};
|
|
45
|
+
const resolveCategoryX = (value, categories, plotX0, plotX1) => {
|
|
46
|
+
const idx = typeof value === "string" ? categories.indexOf(value) : value;
|
|
47
|
+
const slots = Math.max(1, categories.length);
|
|
48
|
+
if (slots === 1) return (plotX0 + plotX1) / 2;
|
|
49
|
+
const clamped = Math.max(0, Math.min(slots - 1, idx));
|
|
50
|
+
return plotX0 + clamped / (slots - 1) * (plotX1 - plotX0);
|
|
51
|
+
};
|
|
52
|
+
export const computePlotBandGeometry = (band, scales, categories, plotX0, plotX1, plotY0, plotY1) => {
|
|
53
|
+
const axis = band.axis ?? "y";
|
|
54
|
+
const fill = resolveColor(band.color ?? "warning");
|
|
55
|
+
const opacity = band.opacity ?? 0.15;
|
|
56
|
+
const labelColor = resolveColor(band.labelColor ?? void 0);
|
|
57
|
+
if (axis === "y") {
|
|
58
|
+
const fromPx2 = scales.y(Number(band.from));
|
|
59
|
+
const toPx2 = scales.y(Number(band.to));
|
|
60
|
+
const top = Math.min(fromPx2, toPx2);
|
|
61
|
+
const bot = Math.max(fromPx2, toPx2);
|
|
62
|
+
const clampedTop = Math.max(plotY0, Math.min(plotY1, top));
|
|
63
|
+
const clampedBot = Math.max(plotY0, Math.min(plotY1, bot));
|
|
64
|
+
const h = clampedBot - clampedTop;
|
|
65
|
+
if (h <= 0) return null;
|
|
66
|
+
return {
|
|
67
|
+
x: plotX0,
|
|
68
|
+
y: clampedTop,
|
|
69
|
+
width: plotX1 - plotX0,
|
|
70
|
+
height: h,
|
|
71
|
+
fill,
|
|
72
|
+
opacity,
|
|
73
|
+
label: band.label,
|
|
74
|
+
labelX: (plotX0 + plotX1) / 2,
|
|
75
|
+
labelY: clampedTop + h / 2,
|
|
76
|
+
labelColor
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
const fromPx = resolveCategoryX(band.from, categories, plotX0, plotX1);
|
|
80
|
+
const toPx = resolveCategoryX(band.to, categories, plotX0, plotX1);
|
|
81
|
+
const left = Math.min(fromPx, toPx);
|
|
82
|
+
const right = Math.max(fromPx, toPx);
|
|
83
|
+
const clampedLeft = Math.max(plotX0, Math.min(plotX1, left));
|
|
84
|
+
const clampedRight = Math.max(plotX0, Math.min(plotX1, right));
|
|
85
|
+
const w = clampedRight - clampedLeft;
|
|
86
|
+
if (w <= 0) return null;
|
|
87
|
+
return {
|
|
88
|
+
x: clampedLeft,
|
|
89
|
+
y: plotY0,
|
|
90
|
+
width: w,
|
|
91
|
+
height: plotY1 - plotY0,
|
|
92
|
+
fill,
|
|
93
|
+
opacity,
|
|
94
|
+
label: band.label,
|
|
95
|
+
labelX: clampedLeft + w / 2,
|
|
96
|
+
labelY: (plotY0 + plotY1) / 2,
|
|
97
|
+
labelColor
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export const computePlotLineGeometry = (line, scales, categories, plotX0, plotX1, plotY0, plotY1) => {
|
|
101
|
+
const axis = line.axis ?? "y";
|
|
102
|
+
const stroke = resolveColor(line.color ?? "danger");
|
|
103
|
+
const strokeWidth = line.width ?? 1.5;
|
|
104
|
+
const strokeDasharray = dashArray(line.dash);
|
|
105
|
+
if (axis === "y") {
|
|
106
|
+
const py = scales.y(Number(line.value));
|
|
107
|
+
if (py < plotY0 || py > plotY1) return null;
|
|
108
|
+
const isRight = (line.labelAlign ?? "right") === "right";
|
|
109
|
+
return {
|
|
110
|
+
x1: plotX0,
|
|
111
|
+
y1: py,
|
|
112
|
+
x2: plotX1,
|
|
113
|
+
y2: py,
|
|
114
|
+
stroke,
|
|
115
|
+
strokeWidth,
|
|
116
|
+
strokeDasharray,
|
|
117
|
+
label: line.label,
|
|
118
|
+
labelX: isRight ? plotX1 : plotX0,
|
|
119
|
+
labelY: py - 4,
|
|
120
|
+
labelAnchor: isRight ? "end" : "start"
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
const px = resolveCategoryX(line.value, categories, plotX0, plotX1);
|
|
124
|
+
if (px < plotX0 || px > plotX1) return null;
|
|
125
|
+
return {
|
|
126
|
+
x1: px,
|
|
127
|
+
y1: plotY0,
|
|
128
|
+
x2: px,
|
|
129
|
+
y2: plotY1,
|
|
130
|
+
stroke,
|
|
131
|
+
strokeWidth,
|
|
132
|
+
strokeDasharray,
|
|
133
|
+
label: line.label,
|
|
134
|
+
labelX: px + 4,
|
|
135
|
+
labelY: plotY0 + 12,
|
|
136
|
+
labelAnchor: "start"
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
const arrowheadPoints = (tx, ty, hx, hy, size) => {
|
|
140
|
+
const angle = Math.atan2(hy - ty, hx - tx);
|
|
141
|
+
const spread = Math.PI / 5;
|
|
142
|
+
const left = angle + Math.PI - spread;
|
|
143
|
+
const right = angle + Math.PI + spread;
|
|
144
|
+
const lx = hx + size * Math.cos(left);
|
|
145
|
+
const ly = hy + size * Math.sin(left);
|
|
146
|
+
const rx = hx + size * Math.cos(right);
|
|
147
|
+
const ry = hy + size * Math.sin(right);
|
|
148
|
+
return `${hx.toFixed(2)},${hy.toFixed(2)} ${lx.toFixed(2)},${ly.toFixed(2)} ${rx.toFixed(2)},${ry.toFixed(2)}`;
|
|
149
|
+
};
|
|
150
|
+
export const computeAnnotationGeometry = (anno, scales, categories, categoryCount) => {
|
|
151
|
+
const stroke = resolveColor(anno.color ?? "primary");
|
|
152
|
+
const strokeWidth = anno.width ?? 1.5;
|
|
153
|
+
const dx = anno.dx ?? 0;
|
|
154
|
+
const dy = anno.dy ?? -14;
|
|
155
|
+
const radius = anno.radius ?? 12;
|
|
156
|
+
const ax = scales.x(anno.x, typeof anno.x === "number" ? anno.x : categories.indexOf(anno.x), categoryCount);
|
|
157
|
+
const ay = scales.y(anno.y);
|
|
158
|
+
const bxRaw = anno.x2 !== void 0 ? anno.x2 : anno.x;
|
|
159
|
+
const byRaw = anno.y2 !== void 0 ? anno.y2 : anno.y;
|
|
160
|
+
const bx = scales.x(bxRaw, typeof bxRaw === "number" ? bxRaw : categories.indexOf(bxRaw), categoryCount);
|
|
161
|
+
const by = scales.y(byRaw);
|
|
162
|
+
if (!Number.isFinite(ax) || !Number.isFinite(ay)) return null;
|
|
163
|
+
const base = {
|
|
164
|
+
kind: anno.kind,
|
|
165
|
+
stroke,
|
|
166
|
+
strokeWidth,
|
|
167
|
+
ax,
|
|
168
|
+
ay,
|
|
169
|
+
bx: Number.isFinite(bx) ? bx : ax,
|
|
170
|
+
by: Number.isFinite(by) ? by : ay,
|
|
171
|
+
dx,
|
|
172
|
+
dy,
|
|
173
|
+
radius,
|
|
174
|
+
text: anno.text
|
|
175
|
+
};
|
|
176
|
+
if (anno.kind === "arrow") {
|
|
177
|
+
const size = Math.max(6, strokeWidth * 4);
|
|
178
|
+
return {
|
|
179
|
+
...base,
|
|
180
|
+
arrowPoints: arrowheadPoints(ax, ay, base.bx, base.by, size)
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
if (anno.kind === "label") {
|
|
184
|
+
const text = anno.text ?? "";
|
|
185
|
+
const charWidth = 7;
|
|
186
|
+
const padding = 8;
|
|
187
|
+
const boxW = Math.max(48, text.length * charWidth + padding * 2);
|
|
188
|
+
const boxH = 24;
|
|
189
|
+
const calloutX = ax + dx - boxW / 2;
|
|
190
|
+
const calloutY = ay + dy - boxH;
|
|
191
|
+
return {
|
|
192
|
+
...base,
|
|
193
|
+
callout: { x: calloutX, y: calloutY, width: boxW, height: boxH },
|
|
194
|
+
leaderEnd: { x: ax + dx, y: calloutY + boxH }
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
return base;
|
|
198
|
+
};
|
|
199
|
+
const toPoints = (series) => {
|
|
200
|
+
if (!series.data?.length) return [];
|
|
201
|
+
return series.data.map((entry, i) => {
|
|
202
|
+
if (typeof entry === "number") {
|
|
203
|
+
return { x: i, y: entry, dataIndex: i };
|
|
204
|
+
}
|
|
205
|
+
return { x: entry.x, y: entry.y, z: entry.z, dataIndex: i };
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
const computeYRange = (series, stacked, stacking, yMinOverride, yMaxOverride) => {
|
|
209
|
+
const visible = series.filter((s) => s.visible !== false);
|
|
210
|
+
if (!visible.length) return { min: 0, max: 1 };
|
|
211
|
+
if (stacked && stacking === CHART_STACKING.PERCENT) {
|
|
212
|
+
return { min: 0, max: 100 };
|
|
213
|
+
}
|
|
214
|
+
if (stacked) {
|
|
215
|
+
const dataLengths = visible.map((s) => s.data.length);
|
|
216
|
+
const maxLength = Math.max(...dataLengths);
|
|
217
|
+
let stackMax = 0;
|
|
218
|
+
let stackMin = 0;
|
|
219
|
+
for (let i = 0; i < maxLength; i++) {
|
|
220
|
+
let positive = 0;
|
|
221
|
+
let negative = 0;
|
|
222
|
+
for (const s of visible) {
|
|
223
|
+
const entry = s.data[i];
|
|
224
|
+
const y = typeof entry === "number" ? entry : entry?.y ?? 0;
|
|
225
|
+
if (y >= 0) positive += y;
|
|
226
|
+
else negative += y;
|
|
227
|
+
}
|
|
228
|
+
stackMax = Math.max(stackMax, positive);
|
|
229
|
+
stackMin = Math.min(stackMin, negative);
|
|
230
|
+
}
|
|
231
|
+
return {
|
|
232
|
+
min: yMinOverride ?? stackMin,
|
|
233
|
+
max: yMaxOverride ?? stackMax
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
let min = Number.POSITIVE_INFINITY;
|
|
237
|
+
let max = Number.NEGATIVE_INFINITY;
|
|
238
|
+
for (const s of visible) {
|
|
239
|
+
for (const entry of s.data) {
|
|
240
|
+
const y = typeof entry === "number" ? entry : entry.y;
|
|
241
|
+
if (y < min) min = y;
|
|
242
|
+
if (y > max) max = y;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
if (!Number.isFinite(min)) min = 0;
|
|
246
|
+
if (!Number.isFinite(max)) max = 1;
|
|
247
|
+
if (min === max) {
|
|
248
|
+
max = min + 1;
|
|
249
|
+
}
|
|
250
|
+
return {
|
|
251
|
+
min: yMinOverride ?? Math.min(0, min),
|
|
252
|
+
max: yMaxOverride ?? max
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
const niceStep = (range, count) => {
|
|
256
|
+
if (range <= 0 || count <= 0) return 1;
|
|
257
|
+
const rough = range / count;
|
|
258
|
+
const pow10 = Math.pow(10, Math.floor(Math.log10(rough)));
|
|
259
|
+
const norm = rough / pow10;
|
|
260
|
+
let nice;
|
|
261
|
+
if (norm < 1.5) nice = 1;
|
|
262
|
+
else if (norm < 3) nice = 2;
|
|
263
|
+
else if (norm < 7) nice = 5;
|
|
264
|
+
else nice = 10;
|
|
265
|
+
return nice * pow10;
|
|
266
|
+
};
|
|
267
|
+
export const useChart = (options) => {
|
|
268
|
+
const hover = ref(null);
|
|
269
|
+
const padding = computed(() => options.padding());
|
|
270
|
+
const width = computed(() => options.width());
|
|
271
|
+
const height = computed(() => options.height());
|
|
272
|
+
const viewBox = computed(
|
|
273
|
+
() => `0 0 ${width.value} ${height.value}`
|
|
274
|
+
);
|
|
275
|
+
const plot = computed(() => {
|
|
276
|
+
const pad = padding.value;
|
|
277
|
+
return {
|
|
278
|
+
x0: pad.left,
|
|
279
|
+
y0: pad.top,
|
|
280
|
+
x1: width.value - pad.right,
|
|
281
|
+
y1: height.value - pad.bottom,
|
|
282
|
+
cx: (pad.left + width.value - pad.right) / 2,
|
|
283
|
+
cy: (pad.top + height.value - pad.bottom) / 2
|
|
284
|
+
};
|
|
285
|
+
});
|
|
286
|
+
const effectiveStacking = computed(
|
|
287
|
+
() => options.stacking?.() ?? CHART_STACKING.NORMAL
|
|
288
|
+
);
|
|
289
|
+
const yRange = computed(
|
|
290
|
+
() => computeYRange(
|
|
291
|
+
options.series().filter((s) => (s.yAxis ?? 0) === 0),
|
|
292
|
+
options.stacked(),
|
|
293
|
+
effectiveStacking.value,
|
|
294
|
+
options.yMin(),
|
|
295
|
+
options.yMax()
|
|
296
|
+
)
|
|
297
|
+
);
|
|
298
|
+
const secondaryYRange = computed(() => {
|
|
299
|
+
const secondary = options.secondaryYAxis?.();
|
|
300
|
+
const axis1Series = options.series().filter((s) => (s.yAxis ?? 0) === 1 && s.visible !== false);
|
|
301
|
+
if (!axis1Series.length && !secondary) return { min: 0, max: 1 };
|
|
302
|
+
return computeYRange(
|
|
303
|
+
axis1Series,
|
|
304
|
+
false,
|
|
305
|
+
CHART_STACKING.NORMAL,
|
|
306
|
+
secondary?.min,
|
|
307
|
+
secondary?.max
|
|
308
|
+
);
|
|
309
|
+
});
|
|
310
|
+
const categories = computed(() => options.categories());
|
|
311
|
+
const scales = computed(() => {
|
|
312
|
+
const { x0, x1, y0, y1 } = plot.value;
|
|
313
|
+
const { min, max } = yRange.value;
|
|
314
|
+
const cats = categories.value;
|
|
315
|
+
const yPxPerUnit = (y1 - y0) / Math.max(1e-9, max - min);
|
|
316
|
+
const x = (value, dataIndex, categoryCount) => {
|
|
317
|
+
if (typeof value === "number" && !cats.length) {
|
|
318
|
+
const count = categoryCount ?? Math.max(1, dataIndex ?? 0);
|
|
319
|
+
if (count <= 1) return x0;
|
|
320
|
+
return x0 + value / (count - 1) * (x1 - x0);
|
|
321
|
+
}
|
|
322
|
+
const idx = typeof value === "string" ? cats.indexOf(value) : dataIndex ?? 0;
|
|
323
|
+
const slots = Math.max(1, cats.length || (categoryCount ?? 1));
|
|
324
|
+
if (slots === 1) return (x0 + x1) / 2;
|
|
325
|
+
return x0 + idx / (slots - 1) * (x1 - x0);
|
|
326
|
+
};
|
|
327
|
+
const y = (value) => {
|
|
328
|
+
const px = y1 - (value - min) * yPxPerUnit;
|
|
329
|
+
if (px < y0) return y0;
|
|
330
|
+
if (px > y1) return y1;
|
|
331
|
+
return px;
|
|
332
|
+
};
|
|
333
|
+
return { x, y };
|
|
334
|
+
});
|
|
335
|
+
const scaleY1 = computed(() => {
|
|
336
|
+
const { y0, y1 } = plot.value;
|
|
337
|
+
const { min, max } = secondaryYRange.value;
|
|
338
|
+
const yPxPerUnit = (y1 - y0) / Math.max(1e-9, max - min);
|
|
339
|
+
return (value) => {
|
|
340
|
+
const px = y1 - (value - min) * yPxPerUnit;
|
|
341
|
+
if (px < y0) return y0;
|
|
342
|
+
if (px > y1) return y1;
|
|
343
|
+
return px;
|
|
344
|
+
};
|
|
345
|
+
});
|
|
346
|
+
const ticks = computed(() => {
|
|
347
|
+
const isPercentMode = options.stacked() && effectiveStacking.value === CHART_STACKING.PERCENT;
|
|
348
|
+
let niceMin;
|
|
349
|
+
let niceMax;
|
|
350
|
+
let step;
|
|
351
|
+
if (isPercentMode) {
|
|
352
|
+
niceMin = 0;
|
|
353
|
+
niceMax = 100;
|
|
354
|
+
step = 25;
|
|
355
|
+
} else {
|
|
356
|
+
const { min, max } = yRange.value;
|
|
357
|
+
step = niceStep(max - min, CHART_Y_TICK_COUNT);
|
|
358
|
+
niceMin = Math.floor(min / step) * step;
|
|
359
|
+
niceMax = Math.ceil(max / step) * step;
|
|
360
|
+
}
|
|
361
|
+
const cats = categories.value;
|
|
362
|
+
const allSeries = options.series();
|
|
363
|
+
const isBarMode = options.type() === "bar" || allSeries.some((s) => s.type === "bar");
|
|
364
|
+
const valueTicks = [];
|
|
365
|
+
for (let v = niceMin; v <= niceMax + 1e-9; v += step) {
|
|
366
|
+
const label = isPercentMode ? `${Math.round(v)}%` : String(Math.round(v * 1e3) / 1e3);
|
|
367
|
+
valueTicks.push({
|
|
368
|
+
value: v,
|
|
369
|
+
label,
|
|
370
|
+
position: isBarMode ? (() => {
|
|
371
|
+
const { x0, x1 } = plot.value;
|
|
372
|
+
const range = Math.max(1e-9, niceMax - niceMin);
|
|
373
|
+
const ratio = (v - niceMin) / range;
|
|
374
|
+
return x0 + ratio * (x1 - x0);
|
|
375
|
+
})() : scales.value.y(v)
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
const categoryTicks = cats.length ? cats.map((cat, i) => ({
|
|
379
|
+
value: cat,
|
|
380
|
+
label: cat,
|
|
381
|
+
position: isBarMode ? (() => {
|
|
382
|
+
const { y0, y1 } = plot.value;
|
|
383
|
+
const slotPx = (y1 - y0) / Math.max(1, cats.length);
|
|
384
|
+
return y0 + (i + 0.5) * slotPx;
|
|
385
|
+
})() : scales.value.x(cat, i, cats.length)
|
|
386
|
+
})) : [];
|
|
387
|
+
return isBarMode ? { x: valueTicks, y: categoryTicks } : { x: categoryTicks, y: valueTicks };
|
|
388
|
+
});
|
|
389
|
+
const secondaryTicks = computed(() => {
|
|
390
|
+
const secondary = options.secondaryYAxis?.();
|
|
391
|
+
const axis1Series = options.series().filter((s) => (s.yAxis ?? 0) === 1 && s.visible !== false);
|
|
392
|
+
const allSeries = options.series();
|
|
393
|
+
const isBarMode = options.type() === "bar" || allSeries.some((s) => s.type === "bar");
|
|
394
|
+
if (isBarMode) return [];
|
|
395
|
+
if (!secondary && !axis1Series.length) return [];
|
|
396
|
+
const { min, max } = secondaryYRange.value;
|
|
397
|
+
const step = niceStep(max - min, CHART_Y_TICK_COUNT);
|
|
398
|
+
const niceMin = Math.floor(min / step) * step;
|
|
399
|
+
const niceMax = Math.ceil(max / step) * step;
|
|
400
|
+
const out = [];
|
|
401
|
+
for (let v = niceMin; v <= niceMax + 1e-9; v += step) {
|
|
402
|
+
out.push({
|
|
403
|
+
value: v,
|
|
404
|
+
label: String(Math.round(v * 1e3) / 1e3),
|
|
405
|
+
position: scaleY1.value(v)
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
return out;
|
|
409
|
+
});
|
|
410
|
+
const colorFor = (series, index) => {
|
|
411
|
+
if (series.color) return resolveColor(series.color);
|
|
412
|
+
const scheme = options.colorScheme();
|
|
413
|
+
const palette = scheme.length ? scheme : DEFAULT_PALETTE;
|
|
414
|
+
return resolveColor(palette[index % palette.length]);
|
|
415
|
+
};
|
|
416
|
+
const legend = computed(() => {
|
|
417
|
+
const allSeries = options.series();
|
|
418
|
+
const pieSeriesList = allSeries.filter((s) => effectiveType(s) === "pie" || effectiveType(s) === "donut");
|
|
419
|
+
const cats = options.categories();
|
|
420
|
+
const scheme = options.colorScheme().length ? options.colorScheme() : DEFAULT_PALETTE;
|
|
421
|
+
const hidden = options.hiddenLabels?.() ?? /* @__PURE__ */ new Set();
|
|
422
|
+
if (pieSeriesList.length === 1 && pieSeriesList[0].data.length > 1) {
|
|
423
|
+
const s = pieSeriesList[0];
|
|
424
|
+
const data = s.data;
|
|
425
|
+
return data.map((entry, i) => {
|
|
426
|
+
const label = cats[i] ?? (typeof entry === "object" && entry !== null ? String(entry.x) : `Slice ${i + 1}`);
|
|
427
|
+
const labelStr = String(label);
|
|
428
|
+
const sliceSeries = {
|
|
429
|
+
...s,
|
|
430
|
+
name: labelStr,
|
|
431
|
+
data: [entry],
|
|
432
|
+
visible: !hidden.has(labelStr)
|
|
433
|
+
};
|
|
434
|
+
return {
|
|
435
|
+
series: sliceSeries,
|
|
436
|
+
index: i,
|
|
437
|
+
color: s.color ? resolveColor(s.color) : resolveColor(scheme[i % scheme.length]),
|
|
438
|
+
visible: !hidden.has(labelStr)
|
|
439
|
+
};
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
return allSeries.map((series, index) => ({
|
|
443
|
+
series,
|
|
444
|
+
index,
|
|
445
|
+
color: colorFor(series, index),
|
|
446
|
+
visible: series.visible !== false
|
|
447
|
+
}));
|
|
448
|
+
});
|
|
449
|
+
const slotCount = computed(() => {
|
|
450
|
+
const cats = categories.value;
|
|
451
|
+
if (cats.length) return cats.length;
|
|
452
|
+
let max = 0;
|
|
453
|
+
for (const s of options.series()) {
|
|
454
|
+
if (s.data.length > max) max = s.data.length;
|
|
455
|
+
}
|
|
456
|
+
return Math.max(1, max);
|
|
457
|
+
});
|
|
458
|
+
const effectiveType = (series) => series.type ?? options.type();
|
|
459
|
+
const stackOffsets = computed(() => {
|
|
460
|
+
const offsets = /* @__PURE__ */ new Map();
|
|
461
|
+
if (!options.stacked()) return offsets;
|
|
462
|
+
const isPercent = effectiveStacking.value === CHART_STACKING.PERCENT;
|
|
463
|
+
const visible = options.series().map((s, i) => ({ s, i })).filter(({ s }) => s.visible !== false);
|
|
464
|
+
const length = Math.max(...visible.map(({ s }) => s.data.length), 0);
|
|
465
|
+
if (isPercent) {
|
|
466
|
+
for (let dataIdx = 0; dataIdx < length; dataIdx++) {
|
|
467
|
+
let total = 0;
|
|
468
|
+
for (const { s } of visible) {
|
|
469
|
+
const entry = s.data[dataIdx];
|
|
470
|
+
const y = typeof entry === "number" ? entry : entry?.y ?? 0;
|
|
471
|
+
if (y > 0) total += y;
|
|
472
|
+
}
|
|
473
|
+
const safeTot = total || 1;
|
|
474
|
+
let runningPct = 0;
|
|
475
|
+
for (const { s, i } of visible) {
|
|
476
|
+
const entry = s.data[dataIdx];
|
|
477
|
+
const y = typeof entry === "number" ? entry : entry?.y ?? 0;
|
|
478
|
+
if (!offsets.has(i)) offsets.set(i, []);
|
|
479
|
+
offsets.get(i)[dataIdx] = runningPct;
|
|
480
|
+
if (y > 0) runningPct += y / safeTot * 100;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
} else {
|
|
484
|
+
for (let dataIdx = 0; dataIdx < length; dataIdx++) {
|
|
485
|
+
let runningPositive = 0;
|
|
486
|
+
let runningNegative = 0;
|
|
487
|
+
for (const { s, i } of visible) {
|
|
488
|
+
const entry = s.data[dataIdx];
|
|
489
|
+
const y = typeof entry === "number" ? entry : entry?.y ?? 0;
|
|
490
|
+
if (!offsets.has(i)) offsets.set(i, []);
|
|
491
|
+
offsets.get(i)[dataIdx] = y >= 0 ? runningPositive : runningNegative;
|
|
492
|
+
if (y >= 0) runningPositive += y;
|
|
493
|
+
else runningNegative += y;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
return offsets;
|
|
498
|
+
});
|
|
499
|
+
const percentValues = computed(() => {
|
|
500
|
+
const pctMap = /* @__PURE__ */ new Map();
|
|
501
|
+
if (!options.stacked() || effectiveStacking.value !== CHART_STACKING.PERCENT) return pctMap;
|
|
502
|
+
const visible = options.series().map((s, i) => ({ s, i })).filter(({ s }) => s.visible !== false);
|
|
503
|
+
const length = Math.max(...visible.map(({ s }) => s.data.length), 0);
|
|
504
|
+
for (let dataIdx = 0; dataIdx < length; dataIdx++) {
|
|
505
|
+
let total = 0;
|
|
506
|
+
for (const { s } of visible) {
|
|
507
|
+
const entry = s.data[dataIdx];
|
|
508
|
+
const y = typeof entry === "number" ? entry : entry?.y ?? 0;
|
|
509
|
+
if (y > 0) total += y;
|
|
510
|
+
}
|
|
511
|
+
const safeTot = total || 1;
|
|
512
|
+
for (const { s, i } of visible) {
|
|
513
|
+
const entry = s.data[dataIdx];
|
|
514
|
+
const y = typeof entry === "number" ? entry : entry?.y ?? 0;
|
|
515
|
+
if (!pctMap.has(i)) pctMap.set(i, []);
|
|
516
|
+
pctMap.get(i)[dataIdx] = y > 0 ? y / safeTot * 100 : 0;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
return pctMap;
|
|
520
|
+
});
|
|
521
|
+
const pieTotal = computed(() => {
|
|
522
|
+
const first = options.series()[0];
|
|
523
|
+
if (!first) return 0;
|
|
524
|
+
let total = 0;
|
|
525
|
+
for (const entry of first.data) {
|
|
526
|
+
const y = typeof entry === "number" ? entry : entry.y;
|
|
527
|
+
if (y > 0) total += y;
|
|
528
|
+
}
|
|
529
|
+
return total;
|
|
530
|
+
});
|
|
531
|
+
const paths = computed(() => {
|
|
532
|
+
const out = [];
|
|
533
|
+
const series = options.series();
|
|
534
|
+
const cats = categories.value;
|
|
535
|
+
const { x0, x1, y0, y1, cx, cy } = plot.value;
|
|
536
|
+
const baseline = scales.value.y(Math.max(0, yRange.value.min));
|
|
537
|
+
const smoothing = options.smoothing();
|
|
538
|
+
const pieSeriesList = series.filter((s) => effectiveType(s) === "pie" || effectiveType(s) === "donut");
|
|
539
|
+
if (pieSeriesList.length > 0) {
|
|
540
|
+
const outerR = Math.max(10, Math.min(x1 - x0, y1 - y0) / 2 - 4);
|
|
541
|
+
const isDonut = effectiveType(pieSeriesList[0]) === "donut";
|
|
542
|
+
const baseInner = isDonut ? outerR * options.donutHoleSize() : 0;
|
|
543
|
+
const scheme = options.colorScheme().length ? options.colorScheme() : DEFAULT_PALETTE;
|
|
544
|
+
const visibleSeries = pieSeriesList.filter((s) => s.visible !== false);
|
|
545
|
+
if (visibleSeries.length === 0) return out;
|
|
546
|
+
const bandThickness = (outerR - baseInner) / visibleSeries.length;
|
|
547
|
+
const hidden = options.hiddenLabels?.() ?? /* @__PURE__ */ new Set();
|
|
548
|
+
const cats2 = options.categories();
|
|
549
|
+
const isSingleRing = visibleSeries.length === 1;
|
|
550
|
+
const categoryColor = (dataIdx, fallbackSeries) => {
|
|
551
|
+
if (fallbackSeries.color) return resolveColor(fallbackSeries.color);
|
|
552
|
+
return resolveColor(scheme[dataIdx % scheme.length]);
|
|
553
|
+
};
|
|
554
|
+
const labelFor = (i, entry) => {
|
|
555
|
+
if (cats2[i] != null) return String(cats2[i]);
|
|
556
|
+
if (entry != null && typeof entry === "object") return String(entry.x);
|
|
557
|
+
return `Slice ${i + 1}`;
|
|
558
|
+
};
|
|
559
|
+
for (let ringIdx = 0; ringIdx < visibleSeries.length; ringIdx++) {
|
|
560
|
+
const s = visibleSeries[ringIdx];
|
|
561
|
+
const ringInner = baseInner + bandThickness * ringIdx;
|
|
562
|
+
const ringOuter = baseInner + bandThickness * (ringIdx + 1);
|
|
563
|
+
const data = s.data;
|
|
564
|
+
const ringTotal = data.reduce((acc, entry, i) => {
|
|
565
|
+
if (isSingleRing && hidden.has(labelFor(i, entry))) return acc;
|
|
566
|
+
const v = typeof entry === "number" ? entry : entry?.y ?? 0;
|
|
567
|
+
return acc + (Number.isFinite(v) && v > 0 ? v : 0);
|
|
568
|
+
}, 0);
|
|
569
|
+
if (ringTotal === 0) continue;
|
|
570
|
+
let angle = 0;
|
|
571
|
+
for (let i = 0; i < data.length; i++) {
|
|
572
|
+
const entry = data[i];
|
|
573
|
+
if (isSingleRing && hidden.has(labelFor(i, entry))) continue;
|
|
574
|
+
const v = typeof entry === "number" ? entry : entry?.y ?? 0;
|
|
575
|
+
if (!Number.isFinite(v) || v <= 0) continue;
|
|
576
|
+
const sweep = v / ringTotal * Math.PI * 2;
|
|
577
|
+
const endAngle = angle + sweep;
|
|
578
|
+
out.push({
|
|
579
|
+
seriesIndex: series.indexOf(s),
|
|
580
|
+
kind: "path",
|
|
581
|
+
d: arcPath(cx, cy, ringOuter, ringInner, angle, endAngle),
|
|
582
|
+
color: categoryColor(i, s),
|
|
583
|
+
series: s,
|
|
584
|
+
dataIndex: i
|
|
585
|
+
});
|
|
586
|
+
angle = endAngle;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
return out;
|
|
590
|
+
}
|
|
591
|
+
for (let seriesIdx = 0; seriesIdx < series.length; seriesIdx++) {
|
|
592
|
+
const s = series[seriesIdx];
|
|
593
|
+
if (s.visible === false) continue;
|
|
594
|
+
const color = colorFor(s, seriesIdx);
|
|
595
|
+
const kind = effectiveType(s);
|
|
596
|
+
const normalised = toPoints(s);
|
|
597
|
+
const seriesAxisIndex = s.yAxis ?? 0;
|
|
598
|
+
const yFn = seriesAxisIndex === 1 ? scaleY1.value : scales.value.y;
|
|
599
|
+
const seriesRange = seriesAxisIndex === 1 ? secondaryYRange.value : yRange.value;
|
|
600
|
+
const seriesBaseline = yFn(Math.max(0, seriesRange.min));
|
|
601
|
+
if (kind === "line" || kind === "area" || kind === "spline" || kind === "stepped-line") {
|
|
602
|
+
const pts = normalised.map((p) => [
|
|
603
|
+
scales.value.x(p.x, p.dataIndex, slotCount.value),
|
|
604
|
+
yFn(p.y)
|
|
605
|
+
]);
|
|
606
|
+
const effectiveSmoothing = kind === "spline" && smoothing === "none" ? "monotone" : smoothing;
|
|
607
|
+
let dLine;
|
|
608
|
+
let areaMode = false;
|
|
609
|
+
if (kind === "stepped-line") {
|
|
610
|
+
dLine = steppedPath(pts);
|
|
611
|
+
areaMode = "stepped";
|
|
612
|
+
} else if (effectiveSmoothing === "monotone") {
|
|
613
|
+
dLine = monotonePath(pts);
|
|
614
|
+
areaMode = "monotone";
|
|
615
|
+
} else if (effectiveSmoothing === "curve") {
|
|
616
|
+
dLine = smoothPath(pts);
|
|
617
|
+
areaMode = true;
|
|
618
|
+
} else {
|
|
619
|
+
dLine = linePath(pts);
|
|
620
|
+
areaMode = false;
|
|
621
|
+
}
|
|
622
|
+
const length = kind === "stepped-line" ? steppedPathLength(pts) : computePathLength(pts);
|
|
623
|
+
if (kind === "area") {
|
|
624
|
+
out.push({
|
|
625
|
+
seriesIndex: seriesIdx,
|
|
626
|
+
kind: "path",
|
|
627
|
+
d: areaPath(pts, seriesBaseline, areaMode),
|
|
628
|
+
color,
|
|
629
|
+
series: s,
|
|
630
|
+
pathLength: length,
|
|
631
|
+
variant: "fill"
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
out.push({
|
|
635
|
+
seriesIndex: seriesIdx,
|
|
636
|
+
kind: "path",
|
|
637
|
+
d: dLine,
|
|
638
|
+
color,
|
|
639
|
+
series: s,
|
|
640
|
+
pathLength: length,
|
|
641
|
+
variant: kind === "area" ? "stroke" : void 0
|
|
642
|
+
});
|
|
643
|
+
{
|
|
644
|
+
for (let dataIdx = 0; dataIdx < pts.length; dataIdx++) {
|
|
645
|
+
out.push({
|
|
646
|
+
seriesIndex: seriesIdx,
|
|
647
|
+
kind: "circle",
|
|
648
|
+
circle: { cx: pts[dataIdx][0], cy: pts[dataIdx][1], r: 4 },
|
|
649
|
+
color,
|
|
650
|
+
series: s,
|
|
651
|
+
dataIndex: dataIdx
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
continue;
|
|
656
|
+
}
|
|
657
|
+
if (kind === "bar" || kind === "column") {
|
|
658
|
+
const visibleCount = series.filter((other) => other.visible !== false).length;
|
|
659
|
+
const groupCount = slotCount.value;
|
|
660
|
+
const slotPx = kind === "column" ? (x1 - x0) / Math.max(1, groupCount) : (y1 - y0) / Math.max(1, groupCount);
|
|
661
|
+
const stacked = options.stacked();
|
|
662
|
+
const isPercent = stacked && effectiveStacking.value === CHART_STACKING.PERCENT;
|
|
663
|
+
const visibleIdxInGroup = series.slice(0, seriesIdx).filter((other) => other.visible !== false).length;
|
|
664
|
+
const stackOff = stackOffsets.value.get(seriesIdx) ?? [];
|
|
665
|
+
const horizRange = yRange.value;
|
|
666
|
+
const horizSpan = Math.max(1e-9, horizRange.max - horizRange.min);
|
|
667
|
+
const xValuePx = (v) => {
|
|
668
|
+
const ratio = (v - horizRange.min) / horizSpan;
|
|
669
|
+
const px = x0 + ratio * (x1 - x0);
|
|
670
|
+
if (px < x0) return x0;
|
|
671
|
+
if (px > x1) return x1;
|
|
672
|
+
return px;
|
|
673
|
+
};
|
|
674
|
+
for (let dataIdx = 0; dataIdx < normalised.length; dataIdx++) {
|
|
675
|
+
const p = normalised[dataIdx];
|
|
676
|
+
const renderY = isPercent ? percentValues.value.get(seriesIdx)?.[dataIdx] ?? 0 : p.y;
|
|
677
|
+
if (kind === "column") {
|
|
678
|
+
const centerX = x0 + (dataIdx + 0.5) * slotPx;
|
|
679
|
+
const barWidth = stacked ? slotPx * 0.7 : slotPx * 0.7 / Math.max(1, visibleCount);
|
|
680
|
+
const left = stacked ? centerX - barWidth / 2 : centerX - slotPx * 0.7 / 2 + visibleIdxInGroup * barWidth;
|
|
681
|
+
const offset = stacked ? stackOff[dataIdx] ?? 0 : 0;
|
|
682
|
+
const top = yFn(renderY + offset);
|
|
683
|
+
const base = yFn(offset);
|
|
684
|
+
out.push({
|
|
685
|
+
seriesIndex: seriesIdx,
|
|
686
|
+
kind: "rect",
|
|
687
|
+
rect: {
|
|
688
|
+
x: left,
|
|
689
|
+
y: Math.min(top, base),
|
|
690
|
+
width: barWidth,
|
|
691
|
+
height: Math.abs(base - top)
|
|
692
|
+
},
|
|
693
|
+
color,
|
|
694
|
+
series: s,
|
|
695
|
+
dataIndex: dataIdx
|
|
696
|
+
});
|
|
697
|
+
} else {
|
|
698
|
+
const slots = Math.max(1, groupCount);
|
|
699
|
+
const slotCenterY = slots === 1 ? (y0 + y1) / 2 : y0 + (dataIdx + 0.5) * slotPx;
|
|
700
|
+
const barHeight = stacked ? slotPx * 0.7 : slotPx * 0.7 / Math.max(1, visibleCount);
|
|
701
|
+
const top = stacked ? slotCenterY - barHeight / 2 : slotCenterY - slotPx * 0.7 / 2 + visibleIdxInGroup * barHeight;
|
|
702
|
+
const offset = stacked ? stackOff[dataIdx] ?? 0 : 0;
|
|
703
|
+
const rightPx = xValuePx(renderY + offset);
|
|
704
|
+
const basePx = xValuePx(offset);
|
|
705
|
+
out.push({
|
|
706
|
+
seriesIndex: seriesIdx,
|
|
707
|
+
kind: "rect",
|
|
708
|
+
rect: {
|
|
709
|
+
x: Math.min(rightPx, basePx),
|
|
710
|
+
y: top,
|
|
711
|
+
width: Math.abs(rightPx - basePx),
|
|
712
|
+
height: barHeight
|
|
713
|
+
},
|
|
714
|
+
color,
|
|
715
|
+
series: s,
|
|
716
|
+
dataIndex: dataIdx
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
continue;
|
|
721
|
+
}
|
|
722
|
+
if (kind === "scatter") {
|
|
723
|
+
const SCATTER_DEFAULT_R = 5;
|
|
724
|
+
const SCATTER_MIN_R = 5;
|
|
725
|
+
const SCATTER_MAX_R = 36;
|
|
726
|
+
const scatterSeries = series.filter((other) => effectiveType(other) === "scatter" && other.visible !== false);
|
|
727
|
+
let xMin = Infinity;
|
|
728
|
+
let xMax = -Infinity;
|
|
729
|
+
let zMin = Infinity;
|
|
730
|
+
let zMax = -Infinity;
|
|
731
|
+
let hasZ = false;
|
|
732
|
+
for (const sp of scatterSeries) {
|
|
733
|
+
for (const entry of sp.data) {
|
|
734
|
+
const xv = typeof entry === "number" ? entry : entry.x;
|
|
735
|
+
const x = typeof xv === "number" ? xv : 0;
|
|
736
|
+
if (x < xMin) xMin = x;
|
|
737
|
+
if (x > xMax) xMax = x;
|
|
738
|
+
if (typeof entry !== "number" && typeof entry.z === "number" && Number.isFinite(entry.z)) {
|
|
739
|
+
hasZ = true;
|
|
740
|
+
if (entry.z < zMin) zMin = entry.z;
|
|
741
|
+
if (entry.z > zMax) zMax = entry.z;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
const xSpan = Math.max(1e-9, xMax - xMin);
|
|
746
|
+
const xPx = (v) => {
|
|
747
|
+
const ratio = (v - xMin) / xSpan;
|
|
748
|
+
const px = x0 + ratio * (x1 - x0);
|
|
749
|
+
if (px < x0) return x0;
|
|
750
|
+
if (px > x1) return x1;
|
|
751
|
+
return px;
|
|
752
|
+
};
|
|
753
|
+
const zSpan = Math.max(1e-9, zMax - zMin);
|
|
754
|
+
const radiusFor = (z) => {
|
|
755
|
+
if (!hasZ || typeof z !== "number" || !Number.isFinite(z)) return SCATTER_DEFAULT_R;
|
|
756
|
+
const ratio = zSpan === 0 ? 0.5 : (z - zMin) / zSpan;
|
|
757
|
+
return SCATTER_MIN_R + ratio * (SCATTER_MAX_R - SCATTER_MIN_R);
|
|
758
|
+
};
|
|
759
|
+
for (let dataIdx = 0; dataIdx < normalised.length; dataIdx++) {
|
|
760
|
+
const p = normalised[dataIdx];
|
|
761
|
+
const cxRaw = typeof p.x === "number" ? p.x : Number(p.x);
|
|
762
|
+
out.push({
|
|
763
|
+
seriesIndex: seriesIdx,
|
|
764
|
+
kind: "circle",
|
|
765
|
+
circle: {
|
|
766
|
+
cx: xPx(Number.isFinite(cxRaw) ? cxRaw : 0),
|
|
767
|
+
cy: yFn(p.y),
|
|
768
|
+
r: radiusFor(p.z)
|
|
769
|
+
},
|
|
770
|
+
color,
|
|
771
|
+
series: s,
|
|
772
|
+
dataIndex: dataIdx
|
|
773
|
+
});
|
|
774
|
+
}
|
|
775
|
+
continue;
|
|
776
|
+
}
|
|
777
|
+
if (kind === "radar") {
|
|
778
|
+
const axes = Math.max(cats.length, normalised.length);
|
|
779
|
+
if (!axes) continue;
|
|
780
|
+
const radius = Math.max(10, Math.min(x1 - x0, y1 - y0) / 2 - 8);
|
|
781
|
+
const pts = normalised.map((p, i) => {
|
|
782
|
+
const yRangeSize = Math.max(1e-9, yRange.value.max - yRange.value.min);
|
|
783
|
+
const ratio = (p.y - yRange.value.min) / yRangeSize;
|
|
784
|
+
const angle = i / axes * Math.PI * 2;
|
|
785
|
+
return polarToCartesian(cx, cy, radius * ratio, angle);
|
|
786
|
+
});
|
|
787
|
+
out.push({
|
|
788
|
+
seriesIndex: seriesIdx,
|
|
789
|
+
kind: "polygon",
|
|
790
|
+
d: polygonPath(pts),
|
|
791
|
+
color,
|
|
792
|
+
series: s
|
|
793
|
+
});
|
|
794
|
+
for (let i = 0; i < pts.length; i++) {
|
|
795
|
+
out.push({
|
|
796
|
+
seriesIndex: seriesIdx,
|
|
797
|
+
kind: "circle",
|
|
798
|
+
circle: { cx: pts[i][0], cy: pts[i][1], r: 3.5 },
|
|
799
|
+
color,
|
|
800
|
+
series: s,
|
|
801
|
+
dataIndex: i
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
return out;
|
|
807
|
+
});
|
|
808
|
+
const onPointHover = (point) => {
|
|
809
|
+
hover.value = point;
|
|
810
|
+
};
|
|
811
|
+
return {
|
|
812
|
+
viewBox,
|
|
813
|
+
scales,
|
|
814
|
+
ticks,
|
|
815
|
+
secondaryTicks,
|
|
816
|
+
paths,
|
|
817
|
+
legend,
|
|
818
|
+
hover,
|
|
819
|
+
onPointHover,
|
|
820
|
+
plot,
|
|
821
|
+
yRange,
|
|
822
|
+
secondaryYRange,
|
|
823
|
+
slotCount,
|
|
824
|
+
colorFor,
|
|
825
|
+
effectiveType,
|
|
826
|
+
effectiveStacking,
|
|
827
|
+
percentValues
|
|
828
|
+
};
|
|
829
|
+
};
|