@dataloop-ai/components 0.15.7 → 0.16.1
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/package.json +1 -1
- package/src/assets/grid.css +9 -0
- package/src/components/{DlAccordion → basic/DlAccordion}/DlAccordion.vue +1 -1
- package/src/components/{DlAccordion → basic/DlAccordion/components}/AccordionHeader.vue +3 -5
- package/src/components/{DlAlert.vue → basic/DlAlert/DlAlert.vue} +3 -3
- package/src/components/basic/DlAlert/index.ts +2 -0
- package/src/components/{DlAvatar.vue → basic/DlAvatar/DlAvatar.vue} +2 -2
- package/src/components/basic/DlAvatar/index.ts +2 -0
- package/src/components/{DlButton → basic/DlButton}/DlButton.vue +5 -20
- package/src/components/{DlButton → basic/DlButton}/index.ts +0 -1
- package/src/components/basic/DlButton/types.ts +14 -0
- package/src/components/{DlButton → basic/DlButton}/utils.ts +9 -9
- package/src/components/{DlChip → basic/DlChip}/DlChip.vue +3 -4
- package/src/components/basic/DlChip/index.ts +3 -0
- package/src/components/{DlChip → basic/DlChip}/utils.ts +8 -8
- package/src/components/basic/DlKpi/DlKpi.vue +275 -0
- package/src/components/basic/DlKpi/components/KpiInfo.vue +54 -0
- package/src/components/basic/DlKpi/index.ts +2 -0
- package/src/components/basic/DlKpi/types/KpiItem.ts +28 -0
- package/src/components/basic/DlKpi/types.ts +1 -0
- package/src/components/{DlListItem → basic/DlListItem}/DlListItem.vue +3 -3
- package/src/components/{DlPanelContainer → basic/DlPanelContainer}/DlPanelContainer.vue +1 -2
- package/src/components/basic/DlPanelContainer/index.ts +2 -0
- package/src/components/{DlPopup → basic/DlPopup}/DlPopup.vue +23 -20
- package/src/components/{DlPopup → basic/DlPopup/components}/PopupHeader.vue +1 -2
- package/src/components/basic/DlPopup/index.ts +3 -0
- package/src/components/{DlProgressChart.vue → basic/DlProgressChart/DlProgressChart.vue} +3 -4
- package/src/components/basic/DlProgressChart/index.ts +2 -0
- package/src/components/{DlWidget → basic/DlWidget}/DlWidget.vue +2 -2
- package/src/components/basic/DlWidget/index.ts +5 -0
- package/src/components/basic/index.ts +11 -0
- package/src/components/basic/models.ts +1 -0
- package/src/components/basic/types.ts +8 -0
- package/src/components/{DlChart → compound/DlCharts/charts/DlBarChart}/DlBarChart.vue +13 -9
- package/src/components/compound/DlCharts/charts/DlBarChart/index.ts +2 -0
- package/src/components/{DlChart → compound/DlCharts/charts/DlColumnChart}/DlColumnChart.vue +13 -15
- package/src/components/compound/DlCharts/charts/DlColumnChart/index.ts +2 -0
- package/src/components/{DlChart/Doughnut → compound/DlCharts/charts/DlDoughnutChart}/DlDoughnutChart.vue +5 -5
- package/src/components/{DlChart/Doughnut → compound/DlCharts/charts/DlDoughnutChart}/DlDoughnutChartWidget.vue +1 -3
- package/src/components/{DlChart/Doughnut → compound/DlCharts/charts/DlDoughnutChart/components}/DlDoughnutChartLegend.vue +2 -4
- package/src/components/compound/DlCharts/charts/DlDoughnutChart/index.ts +3 -0
- package/src/components/compound/DlCharts/charts/DlDoughnutChart/types/index.ts +5 -0
- package/src/components/{DlChart → compound/DlCharts/charts/DlLineChart}/DlLineChart.vue +12 -8
- package/src/components/compound/DlCharts/charts/DlLineChart/index.ts +2 -0
- package/src/components/compound/DlCharts/charts/index.ts +4 -0
- package/src/components/{DlChart → compound/DlCharts/components}/DlBrush.vue +7 -7
- package/src/components/{DlChart → compound/DlCharts/components}/DlChartLabels.vue +2 -3
- package/src/components/{DlChart → compound/DlCharts/components}/DlChartLegend.vue +2 -3
- package/src/components/{DlChart/DlScrollBar.vue → compound/DlCharts/components/DlChartScrollBar.vue} +1 -1
- package/src/components/compound/DlCharts/index.ts +1 -0
- package/src/components/{DlChart → compound/DlCharts/models}/chart.ts +4 -4
- package/src/components/compound/DlCharts/models/index.ts +1 -0
- package/src/components/{DlChart → compound/DlCharts/shared}/BrushThumb.vue +3 -4
- package/src/components/compound/DlCharts/types/index.ts +1 -0
- package/src/components/{DlChart → compound/DlCharts/types}/props.ts +2 -2
- package/src/components/{DlChart → compound/DlCharts/types}/typedCharts.ts +5 -5
- package/src/components/{DlChart → compound/DlCharts/types}/types.ts +4 -4
- package/src/components/compound/DlCharts/types.ts +1 -0
- package/src/components/{DlCounters.vue → compound/DlCounters/DlCounters.vue} +15 -26
- package/src/components/compound/DlCounters/index.ts +2 -0
- package/src/components/{DlDatePicker → compound/DlDateTime/DlDatePicker}/DlDatePicker.vue +3 -4
- package/src/components/{DlDatePicker → compound/DlDateTime/DlDatePicker/components}/DlCalendar.vue +10 -12
- package/src/components/{DlDatePicker → compound/DlDateTime/DlDatePicker/components}/DlMonthCalendar.vue +4 -5
- package/src/components/compound/DlDateTime/DlDatePicker/models/index.ts +3 -0
- package/src/components/{DlDatePicker/isInRange.ts → compound/DlDateTime/DlDatePicker/utils.ts} +40 -1
- package/src/components/{DlDateTimeRange → compound/DlDateTime/DlDateTimeRange}/DlDateInput.vue +1 -1
- package/src/components/{DlDateTimeRange → compound/DlDateTime/DlDateTimeRange}/DlDateTimeRange.vue +6 -6
- package/src/components/{DlTimePicker → compound/DlDateTime/DlTimePicker}/DlTimePicker.vue +2 -2
- package/src/components/{DlTimePicker → compound/DlDateTime/DlTimePicker/components}/DlTimePickerInput.vue +2 -3
- package/src/components/compound/DlDateTime/index.ts +3 -0
- package/src/components/compound/DlDateTime/types.ts +3 -0
- package/src/components/{DlDialogBox → compound/DlDialogBox/components}/DlDialogBoxHeader.vue +1 -1
- package/src/components/compound/DlDialogBox/index.ts +5 -0
- package/src/components/compound/DlDialogBox/types.ts +1 -0
- package/src/components/{DlDropdownButton.vue → compound/DlDropdownButton/DlDropdownButton.vue} +10 -10
- package/src/components/{DlButtonGroup.vue → compound/DlDropdownButton/components/ButtonGroup.vue} +4 -3
- package/src/components/compound/DlDropdownButton/index.ts +2 -0
- package/src/components/{DlTextInput.vue → compound/DlInput/DlInput.vue} +12 -14
- package/src/components/compound/DlInput/index.ts +2 -0
- package/src/components/{DlItem → compound/DlItem}/DlItem.vue +2 -2
- package/src/components/{DlSmartSearch → compound/DlJsonEditor}/DlJsonEditor.vue +5 -6
- package/src/components/compound/DlJsonEditor/index.ts +2 -0
- package/src/components/compound/DlJsonEditor/types.ts +4 -0
- package/src/components/{DlOptionGroup → compound/DlOptionGroup}/DlOptionGroup.vue +9 -10
- package/src/components/{DlOptionGroup → compound/DlOptionGroup/components}/MenuItemWrapper.vue +3 -3
- package/src/components/{DlOptionGroup → compound/DlOptionGroup/components}/SimpleWrapper.vue +1 -1
- package/src/components/{DlOptionGroup → compound/DlOptionGroup}/index.ts +1 -1
- package/src/components/compound/DlOptionGroup/types.ts +40 -0
- package/src/components/compound/DlOptionGroup/utils.ts +46 -0
- package/src/components/{DlPagination → compound/DlPagination}/DlPagination.vue +4 -4
- package/src/components/{DlPagination → compound/DlPagination/components}/PageNavigation.vue +2 -2
- package/src/components/{DlPagination → compound/DlPagination/components}/QuickNavigation.vue +4 -4
- package/src/components/{DlPagination → compound/DlPagination/components}/RowsSelector.vue +2 -2
- package/src/components/{DlRange → compound/DlRange}/DlRange.vue +3 -3
- package/src/components/compound/DlRange/index.ts +2 -0
- package/src/components/{DlRange → compound/DlRange}/utils.ts +4 -4
- package/src/components/{DlSearch.vue → compound/DlSearches/DlSearch/DlSearch.vue} +6 -6
- package/src/components/compound/DlSearches/DlSearch/index.ts +2 -0
- package/src/components/compound/DlSearches/DlSearch/types.ts +1 -0
- package/src/components/{DlSmartSearch → compound/DlSearches/DlSmartSearch}/DlSmartSearch.vue +15 -11
- package/src/components/{DlSmartSearch → compound/DlSearches/DlSmartSearch/components}/DlSmartSearchInput.vue +15 -11
- package/src/components/{DlSmartSearch → compound/DlSearches/DlSmartSearch/components}/DlSuggestionsDropdown.vue +2 -3
- package/src/components/compound/DlSearches/DlSmartSearch/index.ts +3 -0
- package/src/components/{DlSmartSearch → compound/DlSearches/DlSmartSearch/utils}/highlightSyntax.ts +2 -4
- package/src/components/{DlSmartSearch/utils.ts → compound/DlSearches/DlSmartSearch/utils/index.ts} +4 -2
- package/src/components/compound/DlSearches/index.ts +2 -0
- package/src/components/compound/DlSearches/types.ts +2 -0
- package/src/components/{DlSelect → compound/DlSelect}/DlSelect.vue +14 -18
- package/src/components/{DlSelect/SelectOption.vue → compound/DlSelect/components/DlSelectOption.vue} +5 -6
- package/src/components/compound/DlSelect/index.ts +4 -0
- package/src/components/{DlSelect → compound/DlSelect}/utils.ts +4 -4
- package/src/components/{DlSlider → compound/DlSlider}/DlSlider.vue +3 -2
- package/src/components/{DlSlider → compound/DlSlider}/components/DlSliderBase.vue +2 -2
- package/src/components/{DlSlider → compound/DlSlider}/useSlider.ts +2 -2
- package/src/components/{DlStepper → compound/DlStepper}/DlStepper.vue +8 -8
- package/src/components/{DlStepper → compound/DlStepper/components}/DlStepperContent.vue +2 -2
- package/src/components/{DlStepper → compound/DlStepper/components}/DlStepperFooter.vue +2 -2
- package/src/components/{DlStepper → compound/DlStepper/components}/DlStepperHeader.vue +2 -1
- package/src/components/{DlStepper → compound/DlStepper/components}/DlStepperSidebar.vue +4 -4
- package/src/components/compound/DlStepper/index.ts +4 -0
- package/src/components/compound/DlStepper/models/index.ts +3 -0
- package/src/components/compound/DlStepper/types.ts +2 -0
- package/src/components/{DlTabPanels → compound/DlTabPanels}/DlTabPanels.vue +1 -1
- package/src/components/{DlTable → compound/DlTable}/DlTable.vue +20 -20
- package/src/components/{DlTable → compound/DlTable/components}/DlTd.vue +4 -4
- package/src/components/{DlTable → compound/DlTable/components}/DlTh.vue +3 -4
- package/src/components/{DlTable → compound/DlTable/components}/DlTr.vue +1 -1
- package/src/components/{DlTable → compound/DlTable}/hooks/tableColumnSelection.ts +6 -6
- package/src/components/{DlTable → compound/DlTable}/hooks/tableFilter.ts +2 -2
- package/src/components/{DlTable → compound/DlTable}/hooks/tableRowSelection.ts +6 -6
- package/src/components/{DlTable → compound/DlTable}/hooks/tableSort.ts +11 -11
- package/src/components/compound/DlTable/index.ts +6 -0
- package/src/components/compound/DlTable/types.ts +96 -0
- package/src/components/compound/DlTable/utils/index.ts +1 -0
- package/src/components/{DlTabs → compound/DlTabs}/DlTabs.vue +5 -5
- package/src/components/{DlTabs → compound/DlTabs/components}/DlTab.vue +2 -3
- package/src/components/{DlTabs → compound/DlTabs/components}/TabsWrapper.vue +2 -2
- package/src/components/{DlTabs → compound/DlTabs}/index.ts +1 -1
- package/src/components/{DlTabs → compound/DlTabs}/types.ts +1 -1
- package/src/components/{DlToastMessage → compound/DlToast}/components/ToastComponent.vue +2 -3
- package/src/components/compound/index.ts +18 -0
- package/src/components/compound/models.ts +1 -0
- package/src/components/compound/types.ts +10 -0
- package/src/components/essential/DlBadge/index.ts +2 -0
- package/src/components/{DlCheckbox.vue → essential/DlCheckbox/DlCheckbox.vue} +2 -2
- package/src/components/essential/DlCheckbox/index.ts +2 -0
- package/src/components/{DlColorPicker → essential/DlColorPicker}/DlColorPicker.vue +6 -6
- package/src/components/{DlColorPicker → essential/DlColorPicker/components}/DlAlpha.vue +1 -1
- package/src/components/{DlColorPicker → essential/DlColorPicker/components}/DlColors.vue +1 -1
- package/src/components/{DlColorPicker → essential/DlColorPicker/components}/DlPreview.vue +1 -1
- package/src/components/{DlColorPicker → essential/DlColorPicker/components}/DlSaturation.vue +1 -1
- package/src/components/essential/DlColorPicker/index.ts +17 -0
- package/src/components/{DlColorPicker → essential/DlColorPicker}/types.ts +3 -0
- package/src/components/{DlIcon.vue → essential/DlIcon/DlIcon.vue} +1 -1
- package/src/components/essential/DlIcon/index.ts +2 -0
- package/src/components/{DlLink → essential/DlLink}/index.ts +0 -1
- package/src/components/essential/DlList/index.ts +2 -0
- package/src/components/{DlMenu → essential/DlMenu}/DlMenu.vue +19 -17
- package/src/components/{DlMenu → essential/DlMenu}/utils.ts +5 -5
- package/src/components/essential/DlPanel/index.ts +2 -0
- package/src/components/{DlProgressBar.vue → essential/DlProgressBar/DlProgressBar.vue} +27 -2
- package/src/components/essential/DlProgressBar/index.ts +2 -0
- package/src/components/{DlRadio.vue → essential/DlRadio/DlRadio.vue} +1 -2
- package/src/components/essential/DlRadio/index.ts +2 -0
- package/src/components/essential/DlSkeleton/index.ts +2 -0
- package/src/components/essential/DlSpinner/index.ts +2 -0
- package/src/components/{DlSwitch.vue → essential/DlSwitch/DlSwitch.vue} +3 -3
- package/src/components/essential/DlSwitch/index.ts +2 -0
- package/src/components/essential/DlTextArea/index.ts +2 -0
- package/src/components/essential/DlTextHolder/index.ts +2 -0
- package/src/components/{DlThemeProvider.vue → essential/DlThemeProvider/DlThemeProvider.vue} +3 -3
- package/src/components/essential/DlThemeProvider/index.ts +2 -0
- package/src/components/{DlTooltip.vue → essential/DlTooltip/DlTooltip.vue} +15 -13
- package/src/components/essential/DlTooltip/index.ts +2 -0
- package/src/components/{DlTrend.vue → essential/DlTrend/DlTrend.vue} +1 -1
- package/src/components/essential/DlTrend/index.ts +2 -0
- package/src/components/{DlTypography.vue → essential/DlTypography/DlTypography.vue} +1 -1
- package/src/components/essential/DlTypography/index.ts +2 -0
- package/src/components/essential/index.ts +19 -0
- package/src/components/essential/models.ts +1 -0
- package/src/components/essential/types.ts +1 -0
- package/src/components/index.ts +4 -123
- package/src/components/models.ts +4 -0
- package/src/components/shared/DlInfoErrorMessage/index.ts +2 -0
- package/src/components/{DlItemSection.vue → shared/DlItemSection/DlItemSection.vue} +1 -1
- package/src/components/shared/DlItemSection/index.ts +2 -0
- package/src/components/{DlVirtualScroll → shared/DlVirtualScroll}/DlVirtualScroll.vue +3 -3
- package/src/components/shared/index.ts +3 -0
- package/src/components/shared/models.ts +1 -0
- package/src/components/shared/types.ts +1 -0
- package/src/components/types.ts +3 -0
- package/src/demo/BarChartDemo.vue +1 -1
- package/src/demo/ColumnChartDemo.vue +1 -2
- package/src/demo/DlAvatarDemo.vue +2 -2
- package/src/demo/DlButtonDemo.vue +1 -1
- package/src/demo/DlChartDoughnutDemo.vue +2 -2
- package/src/demo/DlColorPickerDemo.vue +1 -1
- package/src/demo/DlCounterDemo.vue +1 -1
- package/src/demo/DlDateTimeRangeDemo.vue +1 -1
- package/src/demo/DlDialogBoxDemo.vue +1 -1
- package/src/demo/{DlTextInputDemo.vue → DlInputDemo.vue} +8 -8
- package/src/demo/DlKpiDemo.vue +261 -0
- package/src/demo/DlOptionGroupDemo.vue +2 -2
- package/src/demo/DlPaginationDemo.vue +1 -1
- package/src/demo/DlPopupDemo.vue +2 -3
- package/src/demo/DlSpinnerDemo.vue +1 -1
- package/src/demo/DlStepperDemo/CenteredStepperInDialogBox.vue +3 -10
- package/src/demo/DlStepperDemo/SimpleStepper.vue +3 -9
- package/src/demo/DlStepperDemo/StepperInDialogBox.vue +3 -10
- package/src/demo/DlStepperDemo/steps/DataStep.vue +3 -3
- package/src/demo/DlStepperDemo/steps/GeneralStep.vue +4 -4
- package/src/demo/DlTableDemo.vue +3 -3
- package/src/demo/DlTabsDemo.vue +2 -2
- package/src/demo/{DlToastMessageDemo.vue → DlToastDemo.vue} +5 -11
- package/src/demo/DlTypographyDemo.vue +1 -2
- package/src/demo/DlWidgetDemo.vue +1 -4
- package/src/demo/SmartSearchDemo/DlSmartSearchDemo.vue +1 -1
- package/src/demo/index.ts +8 -6
- package/src/models.ts +1 -3
- package/src/types.ts +1 -6
- package/src/utils/formatNumber.ts +15 -0
- package/src/utils/index.ts +1 -0
- package/src/components/DlChart/index.ts +0 -36
- package/src/components/DlChip/index.ts +0 -4
- package/src/components/DlColorPicker/index.ts +0 -20
- package/src/components/DlDatePicker/utils.ts +0 -39
- package/src/components/DlDialogBox/index.ts +0 -5
- package/src/components/DlOptionGroup/OptionGroup.types.ts +0 -36
- package/src/components/DlOptionGroup/utils.ts +0 -40
- package/src/components/DlPanelContainer/index.ts +0 -4
- package/src/components/DlPopup/index.ts +0 -1
- package/src/components/DlSelect/index.ts +0 -4
- package/src/components/DlSmartSearch/index.ts +0 -4
- package/src/components/DlStepper/index.ts +0 -7
- package/src/components/DlTable/index.ts +0 -6
- package/src/components/DlTable/types.ts +0 -96
- package/src/components/DlWidget/index.ts +0 -4
- /package/src/components/{DlAccordion → basic/DlAccordion}/index.ts +0 -0
- /package/src/components/{DlListItem → basic/DlListItem}/index.ts +0 -0
- /package/src/components/{DlListItem → basic/DlListItem}/utils.ts +0 -0
- /package/src/components/{DlPopup → basic/DlPopup/components}/DraggableUpper.vue +0 -0
- /package/src/components/{DlWidget → basic/DlWidget}/DlGrid.vue +0 -0
- /package/src/components/{DlWidget → basic/DlWidget}/DlGridRow.vue +0 -0
- /package/src/components/{DlWidget → basic/DlWidget}/types.ts +0 -0
- /package/src/components/{DlWidget → basic/DlWidget}/utils.ts +0 -0
- /package/src/components/{DlChart/Doughnut → compound/DlCharts/charts/DlDoughnutChart}/types/TDoughnutChartAnimation.ts +0 -0
- /package/src/components/{DlChart/Doughnut → compound/DlCharts/charts/DlDoughnutChart}/types/TDoughnutChartData.ts +0 -0
- /package/src/components/{DlChart/Doughnut → compound/DlCharts/charts/DlDoughnutChart}/types/TDoughnutChartOptions.ts +0 -0
- /package/src/components/{DlChart/Doughnut → compound/DlCharts/charts/DlDoughnutChart}/types/TDoughnutChartProps.ts +0 -0
- /package/src/components/{DlChart/Doughnut → compound/DlCharts/charts/DlDoughnutChart}/types/TDoughnutWithOriginalColor.ts +0 -0
- /package/src/components/{DlChart → compound/DlCharts}/utils.ts +0 -0
- /package/src/components/{DlDatePicker → compound/DlDateTime/DlDatePicker}/index.ts +0 -0
- /package/src/components/{DlDatePicker/classes → compound/DlDateTime/DlDatePicker/models}/Calendar.ts +0 -0
- /package/src/components/{DlDatePicker/classes → compound/DlDateTime/DlDatePicker/models}/CalendarDate.ts +0 -0
- /package/src/components/{DlDatePicker/classes → compound/DlDateTime/DlDatePicker/models}/CustomDate.ts +0 -0
- /package/src/components/{DlDatePicker → compound/DlDateTime/DlDatePicker}/types.ts +0 -0
- /package/src/components/{DlDateTimeRange → compound/DlDateTime/DlDateTimeRange}/DlCardSidebar.vue +0 -0
- /package/src/components/{DlDateTimeRange → compound/DlDateTime/DlDateTimeRange}/index.ts +0 -0
- /package/src/components/{DlDateTimeRange → compound/DlDateTime/DlDateTimeRange}/types.ts +0 -0
- /package/src/components/{DlTimePicker → compound/DlDateTime/DlTimePicker/components}/DlTimeCounter.vue +0 -0
- /package/src/components/{DlTimePicker → compound/DlDateTime/DlTimePicker}/index.ts +0 -0
- /package/src/components/{DlTimePicker → compound/DlDateTime/DlTimePicker}/types.ts +0 -0
- /package/src/components/{DlDialogBox → compound/DlDialogBox}/DlDialogBox.vue +0 -0
- /package/src/components/{DlDialogBox → compound/DlDialogBox/components}/DlDialogBoxFooter.vue +0 -0
- /package/src/components/{DlItem → compound/DlItem}/index.ts +0 -0
- /package/src/components/{DlPagination → compound/DlPagination/components}/PaginationLegend.vue +0 -0
- /package/src/components/{DlPagination → compound/DlPagination}/index.ts +0 -0
- /package/src/components/{DlSmartSearch → compound/DlSearches/DlSmartSearch}/types.ts +0 -0
- /package/src/components/{DlSlider → compound/DlSlider}/components/DlSliderInput.vue +0 -0
- /package/src/components/{DlSlider → compound/DlSlider}/components/index.ts +0 -0
- /package/src/components/{DlSlider → compound/DlSlider}/index.ts +0 -0
- /package/src/components/{DlSlider → compound/DlSlider}/sliderStyles.scss +0 -0
- /package/src/components/{DlSlider → compound/DlSlider}/utils.ts +0 -0
- /package/src/components/{DlStepper → compound/DlStepper/components}/DlStepperContainer.vue +0 -0
- /package/src/components/{DlStepper → compound/DlStepper/models}/Step.ts +0 -0
- /package/src/components/{DlStepper → compound/DlStepper/models}/Stepper.ts +0 -0
- /package/src/components/{DlStepper → compound/DlStepper/models}/interfaces.ts +0 -0
- /package/src/components/{DlTabPanels → compound/DlTabPanels}/DlTabPanel.vue +0 -0
- /package/src/components/{DlTabPanels → compound/DlTabPanels}/index.ts +0 -0
- /package/src/components/{DlTabPanels → compound/DlTabPanels}/utils.ts +0 -0
- /package/src/components/{DlTable → compound/DlTable}/hooks/tableActions.ts +0 -0
- /package/src/components/{DlTable → compound/DlTable}/hooks/tablePagination.ts +0 -0
- /package/src/components/{DlTable → compound/DlTable}/hooks/tableRowExpand.ts +0 -0
- /package/src/components/{DlTable → compound/DlTable/styles}/dl-table-styles.scss +0 -0
- /package/src/components/{DlTable → compound/DlTable/utils}/ResizableManager.ts +0 -0
- /package/src/components/{DlToastMessage → compound/DlToast}/api/useToast.ts +0 -0
- /package/src/components/{DlToastMessage → compound/DlToast}/index.ts +0 -0
- /package/src/components/{DlToastMessage → compound/DlToast}/types.ts +0 -0
- /package/src/components/{DlToastMessage → compound/DlToast}/utils/config.ts +0 -0
- /package/src/components/{DlToastMessage → compound/DlToast}/utils/render.ts +0 -0
- /package/src/components/{DlBadge.vue → essential/DlBadge/DlBadge.vue} +0 -0
- /package/src/components/{DlColorPicker → essential/DlColorPicker/components}/DlBox.vue +0 -0
- /package/src/components/{DlColorPicker → essential/DlColorPicker/components}/DlHue.vue +0 -0
- /package/src/components/{DlColorPicker → essential/DlColorPicker}/constants.ts +0 -0
- /package/src/components/{DlColorPicker → essential/DlColorPicker}/utils.ts +0 -0
- /package/src/components/{DlLink → essential/DlLink}/DlLink.vue +0 -0
- /package/src/components/{DlLink → essential/DlLink}/utils.ts +0 -0
- /package/src/components/{DlList.vue → essential/DlList/DlList.vue} +0 -0
- /package/src/components/{DlMenu → essential/DlMenu}/index.ts +0 -0
- /package/src/components/{DlPanelContainer → essential/DlPanel}/DlPanel.vue +0 -0
- /package/src/components/{DlSkeleton.vue → essential/DlSkeleton/DlSkeleton.vue} +0 -0
- /package/src/components/{DlSpinner.vue → essential/DlSpinner/DlSpinner.vue} +0 -0
- /package/src/components/{DlTextArea.vue → essential/DlTextArea/DlTextArea.vue} +0 -0
- /package/src/components/{DlTextHolder.vue → essential/DlTextHolder/DlTextHolder.vue} +0 -0
- /package/src/components/{DlInfoErrorMessage.vue → shared/DlInfoErrorMessage/DlInfoErrorMessage.vue} +0 -0
- /package/src/components/{DlVirtualScroll → shared/DlVirtualScroll}/index.ts +0 -0
- /package/src/components/{DlVirtualScroll → shared/DlVirtualScroll}/useVirtualScroll.ts +0 -0
|
@@ -111,8 +111,7 @@
|
|
|
111
111
|
<script lang="ts">
|
|
112
112
|
import { v4 } from 'uuid'
|
|
113
113
|
import { defineComponent } from 'vue-demi'
|
|
114
|
-
import DlIcon from '
|
|
115
|
-
import DlTooltip from '../DlTooltip.vue'
|
|
114
|
+
import { DlIcon, DlTooltip } from '../../essential'
|
|
116
115
|
|
|
117
116
|
export default defineComponent({
|
|
118
117
|
name: 'DlPanelContainer',
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
@move="movePopup"
|
|
21
21
|
/>
|
|
22
22
|
<popup-header
|
|
23
|
+
v-if="hasHeaderSlot"
|
|
23
24
|
:title="title"
|
|
24
25
|
:additional-info="additionalInfo"
|
|
25
26
|
:subtitle="subtitle"
|
|
@@ -67,28 +68,30 @@ import {
|
|
|
67
68
|
isVue2
|
|
68
69
|
} from 'vue-demi'
|
|
69
70
|
|
|
70
|
-
import useWindowSize from '
|
|
71
|
-
import useAnchor, { useAnchorProps } from '
|
|
72
|
-
import useScrollTarget from '
|
|
71
|
+
import useWindowSize from '../../../hooks/use-window-size'
|
|
72
|
+
import useAnchor, { useAnchorProps } from '../../../hooks/use-anchor'
|
|
73
|
+
import useScrollTarget from '../../../hooks/use-scroll-target'
|
|
73
74
|
import useModelToggle, {
|
|
74
75
|
useModelToggleProps,
|
|
75
76
|
AnchorEvent
|
|
76
|
-
} from '
|
|
77
|
-
import usePortal from '
|
|
78
|
-
import useTransition, {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
import
|
|
83
|
-
|
|
84
|
-
import {
|
|
85
|
-
import
|
|
86
|
-
import {
|
|
77
|
+
} from '../../../hooks/use-model-toggle'
|
|
78
|
+
import usePortal from '../../../hooks/use-portal'
|
|
79
|
+
import useTransition, {
|
|
80
|
+
useTransitionProps
|
|
81
|
+
} from '../../../hooks/use-transition'
|
|
82
|
+
import useTick from '../../../hooks/use-tick'
|
|
83
|
+
import useTimeout from '../../../hooks/use-timeout'
|
|
84
|
+
|
|
85
|
+
import { getScrollTarget } from '../../../utils/scroll'
|
|
86
|
+
import DlTeleport from '../../../utils/teleport'
|
|
87
|
+
import { removeEscapeKey } from '../../../utils/escape-key'
|
|
88
|
+
import { addFocusout, removeFocusout } from '../../../utils/focusout'
|
|
89
|
+
import { childHasFocus } from '../../../utils/dom'
|
|
87
90
|
import {
|
|
88
91
|
removeClickOutside,
|
|
89
92
|
ClickOutsideEvent
|
|
90
|
-
} from '
|
|
91
|
-
import { addFocusFn } from '
|
|
93
|
+
} from '../../../utils/click-outside'
|
|
94
|
+
import { addFocusFn } from '../../../utils/focus-manager'
|
|
92
95
|
|
|
93
96
|
import {
|
|
94
97
|
validatePosition,
|
|
@@ -96,7 +99,7 @@ import {
|
|
|
96
99
|
setPosition,
|
|
97
100
|
parsePosition,
|
|
98
101
|
setForcedPosition
|
|
99
|
-
} from '
|
|
102
|
+
} from '../../../utils/position-engine'
|
|
100
103
|
import {
|
|
101
104
|
getAnchorOrigin,
|
|
102
105
|
handleWatcherEvents,
|
|
@@ -105,9 +108,9 @@ import {
|
|
|
105
108
|
refocusTargetFn,
|
|
106
109
|
conditionalHandler,
|
|
107
110
|
handleClickOutside
|
|
108
|
-
} from '
|
|
109
|
-
import DraggableUpper from './DraggableUpper.vue'
|
|
110
|
-
import PopupHeader from './PopupHeader.vue'
|
|
111
|
+
} from '../../essential/DlMenu/utils'
|
|
112
|
+
import DraggableUpper from './components/DraggableUpper.vue'
|
|
113
|
+
import PopupHeader from './components/PopupHeader.vue'
|
|
111
114
|
import { v4 } from 'uuid'
|
|
112
115
|
|
|
113
116
|
export default defineComponent({
|
|
@@ -48,8 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
<script lang="ts">
|
|
50
50
|
import { defineComponent } from 'vue-demi'
|
|
51
|
-
import DlTooltip from '
|
|
52
|
-
import DlIcon from '../DlIcon.vue'
|
|
51
|
+
import { DlTooltip, DlIcon } from '../../../essential'
|
|
53
52
|
|
|
54
53
|
export default defineComponent({
|
|
55
54
|
components: {
|
|
@@ -76,10 +76,9 @@
|
|
|
76
76
|
<script lang="ts">
|
|
77
77
|
import { v4 } from 'uuid'
|
|
78
78
|
import { defineComponent, isVue2 } from 'vue-demi'
|
|
79
|
-
import { getColor } from '
|
|
80
|
-
import { isEllipsisActive } from '
|
|
81
|
-
import DlLink from '
|
|
82
|
-
import DlTooltip from './DlTooltip.vue'
|
|
79
|
+
import { getColor } from '../../../utils'
|
|
80
|
+
import { isEllipsisActive } from '../../../utils/is-ellipsis-active'
|
|
81
|
+
import { DlTooltip, DlLink } from '../../essential'
|
|
83
82
|
|
|
84
83
|
type ProgressChartOption = {
|
|
85
84
|
name: string
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<script lang="ts">
|
|
47
47
|
import { v4 } from 'uuid'
|
|
48
48
|
import { defineComponent } from 'vue-demi'
|
|
49
|
-
import DlIcon from '
|
|
49
|
+
import { DlIcon } from '../../essential'
|
|
50
50
|
import {
|
|
51
51
|
getElementAbove,
|
|
52
52
|
addMouseEnter,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
setFlexBasis,
|
|
55
55
|
insertAfter
|
|
56
56
|
} from './utils'
|
|
57
|
-
import { swapNodes } from '
|
|
57
|
+
import { swapNodes } from '../../../utils/swapNodes'
|
|
58
58
|
|
|
59
59
|
export default defineComponent({
|
|
60
60
|
name: 'DlWidget',
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './DlAccordion'
|
|
2
|
+
export * from './DlAlert'
|
|
3
|
+
export * from './DlAvatar'
|
|
4
|
+
export * from './DlButton'
|
|
5
|
+
export * from './DlChip'
|
|
6
|
+
export * from './DlKpi'
|
|
7
|
+
export * from './DlListItem'
|
|
8
|
+
export * from './DlWidget'
|
|
9
|
+
export * from './DlPopup'
|
|
10
|
+
export * from './DlPanelContainer'
|
|
11
|
+
export * from './DlProgressChart'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
@mouseout="onChartLeave"
|
|
15
15
|
@wheel.native="handleChartScroll"
|
|
16
16
|
/>
|
|
17
|
-
<dl-scroll-bar
|
|
17
|
+
<dl-chart-scroll-bar
|
|
18
18
|
v-if="maxItems > thisItemsInView"
|
|
19
19
|
:height="wrapperHeight"
|
|
20
20
|
:item-count="maxItems"
|
|
@@ -52,12 +52,16 @@
|
|
|
52
52
|
</template>
|
|
53
53
|
|
|
54
54
|
<script lang="ts">
|
|
55
|
-
import { Bar } from '
|
|
56
|
-
import {
|
|
55
|
+
import { Bar } from '../../types/typedCharts'
|
|
56
|
+
import {
|
|
57
|
+
CommonProps,
|
|
58
|
+
BarChartProps,
|
|
59
|
+
defaultBarChartProps
|
|
60
|
+
} from '../../types/props'
|
|
57
61
|
import { defineComponent, reactive, ref, watch, computed } from 'vue-demi'
|
|
58
|
-
import DlChartLegend from '
|
|
59
|
-
import
|
|
60
|
-
import { updateKey } from '
|
|
62
|
+
import DlChartLegend from '../../components/DlChartLegend.vue'
|
|
63
|
+
import DlChartScrollBar from '../../components/DlChartScrollBar.vue'
|
|
64
|
+
import { updateKey } from '../../../../../utils/update-key'
|
|
61
65
|
import {
|
|
62
66
|
Chart as ChartJS,
|
|
63
67
|
Title,
|
|
@@ -72,8 +76,8 @@ import {
|
|
|
72
76
|
} from 'chart.js'
|
|
73
77
|
import type { Chart, ChartMeta, ChartDataset, ActiveElement } from 'chart.js'
|
|
74
78
|
import { isEqual, merge } from 'lodash'
|
|
75
|
-
import { rgba2hex, hexToRgbA, revertRGBAOpacity } from '
|
|
76
|
-
import { useThemeVariables } from '
|
|
79
|
+
import { rgba2hex, hexToRgbA, revertRGBAOpacity } from '../../../../../utils'
|
|
80
|
+
import { useThemeVariables } from '../../../../../hooks/use-theme'
|
|
77
81
|
|
|
78
82
|
ChartJS.register(
|
|
79
83
|
CategoryScale,
|
|
@@ -89,7 +93,7 @@ export default defineComponent({
|
|
|
89
93
|
name: 'DlBarChart',
|
|
90
94
|
components: {
|
|
91
95
|
Bar,
|
|
92
|
-
|
|
96
|
+
DlChartScrollBar,
|
|
93
97
|
DlChartLegend
|
|
94
98
|
},
|
|
95
99
|
props: {
|
|
@@ -74,14 +74,18 @@
|
|
|
74
74
|
</template>
|
|
75
75
|
|
|
76
76
|
<script lang="ts">
|
|
77
|
-
import { Bar } from '
|
|
78
|
-
import {
|
|
77
|
+
import { Bar } from '../../types/typedCharts'
|
|
78
|
+
import {
|
|
79
|
+
CommonProps,
|
|
80
|
+
ColumnChartProps,
|
|
81
|
+
defaultColumnChartProps
|
|
82
|
+
} from '../../types/props'
|
|
79
83
|
import { defineComponent, reactive, watch, ref, computed } from 'vue-demi'
|
|
80
|
-
import DlBrush from '
|
|
81
|
-
import DlChartLegend from '
|
|
82
|
-
import DlChartLabels from '
|
|
83
|
-
import { updateKey } from '
|
|
84
|
-
import { rgba2hex, hexToRgbA, revertRGBAOpacity } from '
|
|
84
|
+
import DlBrush from '../../components/DlBrush.vue'
|
|
85
|
+
import DlChartLegend from '../../components/DlChartLegend.vue'
|
|
86
|
+
import DlChartLabels from '../../components/DlChartLabels.vue'
|
|
87
|
+
import { updateKey } from '../../../../../utils/update-key'
|
|
88
|
+
import { rgba2hex, hexToRgbA, revertRGBAOpacity } from '../../../../../utils'
|
|
85
89
|
import {
|
|
86
90
|
Chart as ChartJS,
|
|
87
91
|
Title,
|
|
@@ -94,15 +98,9 @@ import {
|
|
|
94
98
|
LineElement,
|
|
95
99
|
BarControllerDatasetOptions
|
|
96
100
|
} from 'chart.js'
|
|
97
|
-
import type {
|
|
98
|
-
Chart,
|
|
99
|
-
ChartMeta,
|
|
100
|
-
ChartDataset,
|
|
101
|
-
ActiveElement,
|
|
102
|
-
ChartType
|
|
103
|
-
} from 'chart.js'
|
|
101
|
+
import type { Chart, ChartMeta, ChartDataset, ActiveElement } from 'chart.js'
|
|
104
102
|
import { unionBy, orderBy, merge, isEqual } from 'lodash'
|
|
105
|
-
import { useThemeVariables } from '
|
|
103
|
+
import { useThemeVariables } from '../../../../../hooks/use-theme'
|
|
106
104
|
|
|
107
105
|
ChartJS.register(
|
|
108
106
|
Title,
|
|
@@ -81,11 +81,11 @@ import {
|
|
|
81
81
|
ChartJS.register(Tooltip, Legend, DoughnutController, ArcElement)
|
|
82
82
|
|
|
83
83
|
import { cloneDeep, merge } from 'lodash'
|
|
84
|
-
import { Doughnut } from '
|
|
85
|
-
import { useThemeVariables } from '
|
|
86
|
-
import { updateNestedArrayValues } from '
|
|
87
|
-
import DlDoughnutChartLegend from './DlDoughnutChartLegend.vue'
|
|
88
|
-
import { defaultDoughnutChartProps } from '
|
|
84
|
+
import { Doughnut } from '../../types/typedCharts'
|
|
85
|
+
import { useThemeVariables } from '../../../../../hooks/use-theme'
|
|
86
|
+
import { updateNestedArrayValues } from '../../../../../utils/update-key'
|
|
87
|
+
import DlDoughnutChartLegend from './components/DlDoughnutChartLegend.vue'
|
|
88
|
+
import { defaultDoughnutChartProps } from '../../types/props'
|
|
89
89
|
import { TDoughnutWithOriginalColor } from './types/TDoughnutWithOriginalColor'
|
|
90
90
|
|
|
91
91
|
export default defineComponent({
|
|
@@ -26,9 +26,7 @@
|
|
|
26
26
|
import { defineComponent, PropType } from 'vue-demi'
|
|
27
27
|
import DlDoughnutChart from './DlDoughnutChart.vue'
|
|
28
28
|
import { TDoughnutChartData } from './types/TDoughnutChartData'
|
|
29
|
-
import DlGrid from '
|
|
30
|
-
import DlGridRow from '../../../components/DlWidget/DlGridRow.vue'
|
|
31
|
-
import DlWidget from '../../../components/DlWidget/DlWidget.vue'
|
|
29
|
+
import { DlWidget, DlGridRow, DlGrid } from '../../../../basic'
|
|
32
30
|
|
|
33
31
|
export default defineComponent({
|
|
34
32
|
name: 'DlDoughnutChartWidget',
|
|
@@ -50,10 +50,8 @@
|
|
|
50
50
|
|
|
51
51
|
<script lang="ts">
|
|
52
52
|
import { defineComponent, PropType } from 'vue-demi'
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import { TDoughnutChartData } from './types/TDoughnutChartData'
|
|
56
|
-
import DlTooltip from '../../DlTooltip.vue'
|
|
53
|
+
import { DlTypography, DlTooltip } from '../../../../../essential'
|
|
54
|
+
import { TDoughnutChartData } from '../types/TDoughnutChartData'
|
|
57
55
|
|
|
58
56
|
enum EBadgeText {
|
|
59
57
|
badge = 'badge',
|
|
@@ -74,14 +74,18 @@
|
|
|
74
74
|
</template>
|
|
75
75
|
|
|
76
76
|
<script lang="ts">
|
|
77
|
-
import { Line as DlLine } from '
|
|
78
|
-
import {
|
|
77
|
+
import { Line as DlLine } from '../../types/typedCharts'
|
|
78
|
+
import {
|
|
79
|
+
CommonProps,
|
|
80
|
+
ColumnChartProps,
|
|
81
|
+
defaultLineChartProps
|
|
82
|
+
} from '../../types/props'
|
|
79
83
|
import { defineComponent, reactive, watch, ref, computed } from 'vue-demi'
|
|
80
|
-
import DlBrush from '
|
|
81
|
-
import DlChartLegend from '
|
|
82
|
-
import DlChartLabels from '
|
|
83
|
-
import { updateKeys } from '
|
|
84
|
-
import { hexToRgbA } from '
|
|
84
|
+
import DlBrush from '../../components/DlBrush.vue'
|
|
85
|
+
import DlChartLegend from '../../components/DlChartLegend.vue'
|
|
86
|
+
import DlChartLabels from '../../components/DlChartLabels.vue'
|
|
87
|
+
import { updateKeys } from '../../../../../utils/update-key'
|
|
88
|
+
import { hexToRgbA } from '../../../../../utils'
|
|
85
89
|
import {
|
|
86
90
|
Chart as ChartJS,
|
|
87
91
|
Title,
|
|
@@ -105,7 +109,7 @@ import type {
|
|
|
105
109
|
LineControllerDatasetOptions
|
|
106
110
|
} from 'chart.js'
|
|
107
111
|
import { orderBy, merge, isEqual, unionBy, cloneDeep } from 'lodash'
|
|
108
|
-
import { useThemeVariables } from '
|
|
112
|
+
import { useThemeVariables } from '../../../../../hooks/use-theme'
|
|
109
113
|
|
|
110
114
|
ChartJS.register(
|
|
111
115
|
Title,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
class="selection"
|
|
23
23
|
:style="selectionBarStyle"
|
|
24
24
|
/>
|
|
25
|
-
<
|
|
25
|
+
<brush-thumb
|
|
26
26
|
key="tmin"
|
|
27
27
|
ref="minThumbRef"
|
|
28
28
|
class="thumb"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
data-test="min-thumb"
|
|
34
34
|
/>
|
|
35
35
|
|
|
36
|
-
<
|
|
36
|
+
<brush-thumb
|
|
37
37
|
key="tmax"
|
|
38
38
|
ref="maxThumbRef"
|
|
39
39
|
class="thumb"
|
|
@@ -62,11 +62,11 @@ import useSlider, {
|
|
|
62
62
|
useSliderEmits,
|
|
63
63
|
dragType,
|
|
64
64
|
Dragging
|
|
65
|
-
} from '
|
|
65
|
+
} from '../../DlSlider/useSlider'
|
|
66
66
|
|
|
67
|
-
import { between, isMobileOrTablet, getColor } from '
|
|
68
|
-
import
|
|
69
|
-
import touchPanDirective from '
|
|
67
|
+
import { between, isMobileOrTablet, getColor } from '../../../../utils'
|
|
68
|
+
import BrushThumb from '../shared/BrushThumb.vue'
|
|
69
|
+
import touchPanDirective from '../../../../directives/TouchPan'
|
|
70
70
|
|
|
71
71
|
export default defineComponent({
|
|
72
72
|
name: 'DlBrushBar',
|
|
@@ -74,7 +74,7 @@ export default defineComponent({
|
|
|
74
74
|
touchPan: touchPanDirective as any // force any type cause of the vue version
|
|
75
75
|
},
|
|
76
76
|
components: {
|
|
77
|
-
|
|
77
|
+
BrushThumb
|
|
78
78
|
},
|
|
79
79
|
model: {
|
|
80
80
|
prop: 'modelValue',
|
|
@@ -81,9 +81,8 @@
|
|
|
81
81
|
<script lang="ts">
|
|
82
82
|
import { v4 } from 'uuid'
|
|
83
83
|
import { defineComponent, PropType, isVue2 } from 'vue-demi'
|
|
84
|
-
import { isEllipsisActive } from '
|
|
85
|
-
import DlTypography from '
|
|
86
|
-
import DlTooltip from '../DlTooltip.vue'
|
|
84
|
+
import { isEllipsisActive } from '../../../../utils/is-ellipsis-active'
|
|
85
|
+
import { DlTooltip, DlTypography } from '../../../essential'
|
|
87
86
|
|
|
88
87
|
type ObserverRefs = {
|
|
89
88
|
ref: 'resizeObserverTitle' | 'resizeObserverSubtitle'
|
|
@@ -36,9 +36,8 @@
|
|
|
36
36
|
<script lang="ts">
|
|
37
37
|
import { defineComponent, PropType } from 'vue-demi'
|
|
38
38
|
import type { LegendItem, DatasetChartOptions } from 'chart.js'
|
|
39
|
-
import { getColor } from '
|
|
40
|
-
import DlBadge from '
|
|
41
|
-
import DlTypography from '../DlTypography.vue'
|
|
39
|
+
import { getColor } from '../../../../utils'
|
|
40
|
+
import { DlBadge, DlTypography } from '../../../essential'
|
|
42
41
|
|
|
43
42
|
const positions = {
|
|
44
43
|
left: 'flex-start',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './charts'
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
getCurrentInstance
|
|
10
10
|
} from 'vue-demi'
|
|
11
11
|
import { Chart as ChartJS } from 'chart.js'
|
|
12
|
-
import
|
|
13
|
-
import { Props } from '
|
|
12
|
+
import { DlChartComponent } from '../types/types'
|
|
13
|
+
import { Props } from '../types/props'
|
|
14
14
|
import {
|
|
15
15
|
cloneData,
|
|
16
16
|
setLabels,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
setOptions,
|
|
19
19
|
toRawIfProxy,
|
|
20
20
|
cloneProxy
|
|
21
|
-
} from '
|
|
21
|
+
} from '../utils'
|
|
22
22
|
|
|
23
23
|
export const Chart = defineComponent({
|
|
24
24
|
props: Props,
|
|
@@ -119,4 +119,4 @@ export const Chart = defineComponent({
|
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
template: `<canvas ref="canvasRef" />`
|
|
122
|
-
}) as unknown as
|
|
122
|
+
}) as unknown as DlChartComponent
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './chart'
|
|
@@ -15,12 +15,11 @@
|
|
|
15
15
|
|
|
16
16
|
<script lang="ts">
|
|
17
17
|
import { defineComponent, computed } from 'vue-demi'
|
|
18
|
-
import { getColor } from '
|
|
19
|
-
|
|
20
|
-
import { DlIcon } from '../'
|
|
18
|
+
import { getColor } from '../../../../utils'
|
|
19
|
+
import { DlIcon } from '../../../essential'
|
|
21
20
|
|
|
22
21
|
export default defineComponent({
|
|
23
|
-
name: '
|
|
22
|
+
name: 'BrushThumb',
|
|
24
23
|
components: {
|
|
25
24
|
DlIcon
|
|
26
25
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { DlChartProps, DlChartComponentRef } from './types'
|
|
@@ -7,8 +7,8 @@ import type {
|
|
|
7
7
|
UpdateMode,
|
|
8
8
|
DatasetChartOptions
|
|
9
9
|
} from 'chart.js'
|
|
10
|
-
import { TDoughnutProps } from '
|
|
11
|
-
import { TDoughnutChartData } from '
|
|
10
|
+
import { TDoughnutProps } from '../charts/DlDoughnutChart/types/TDoughnutChartProps'
|
|
11
|
+
import { TDoughnutChartData } from '../charts/DlDoughnutChart/types/TDoughnutChartData'
|
|
12
12
|
|
|
13
13
|
export const CommonProps = {
|
|
14
14
|
data: {
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
RadarController,
|
|
12
12
|
ScatterController
|
|
13
13
|
} from 'chart.js'
|
|
14
|
-
import type {
|
|
14
|
+
import type { DlTypedChartComponent, DlChartComponentRef } from './types'
|
|
15
15
|
import { CommonProps } from './props'
|
|
16
|
-
import { Chart } from '
|
|
17
|
-
import { compatProps } from '
|
|
16
|
+
import { Chart } from '../models'
|
|
17
|
+
import { compatProps } from '../utils'
|
|
18
18
|
|
|
19
19
|
const template = `<Chart v-bind="{...allProps}" />`
|
|
20
20
|
|
|
@@ -25,7 +25,7 @@ export function createTypedChart<
|
|
|
25
25
|
>(
|
|
26
26
|
type: TType,
|
|
27
27
|
registerables: ChartComponentLike
|
|
28
|
-
):
|
|
28
|
+
): DlTypedChartComponent<TType, TData, TLabel> {
|
|
29
29
|
ChartJS.register(registerables)
|
|
30
30
|
|
|
31
31
|
return defineComponent({
|
|
@@ -35,7 +35,7 @@ export function createTypedChart<
|
|
|
35
35
|
props: CommonProps,
|
|
36
36
|
setup(props) {
|
|
37
37
|
const canvasRef = shallowRef<ChartJS | null>(null)
|
|
38
|
-
const reforwardRef = (chartRef:
|
|
38
|
+
const reforwardRef = (chartRef: DlChartComponentRef) => {
|
|
39
39
|
canvasRef.value = chartRef?.chart
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -8,7 +8,7 @@ import type {
|
|
|
8
8
|
UpdateMode
|
|
9
9
|
} from 'chart.js'
|
|
10
10
|
|
|
11
|
-
export interface
|
|
11
|
+
export interface DlChartProps<
|
|
12
12
|
TType extends ChartType = ChartType,
|
|
13
13
|
TData = DefaultDataPoint<TType>,
|
|
14
14
|
TLabel = unknown
|
|
@@ -46,7 +46,7 @@ export interface ChartProps<
|
|
|
46
46
|
updateMode?: UpdateMode
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export interface
|
|
49
|
+
export interface DlChartComponentRef<
|
|
50
50
|
TType extends ChartType = ChartType,
|
|
51
51
|
TData = DefaultDataPoint<TType>,
|
|
52
52
|
TLabel = unknown
|
|
@@ -54,9 +54,9 @@ export interface ChartComponentRef<
|
|
|
54
54
|
chart: ChartJS<TType, TData, TLabel> | null
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export type
|
|
57
|
+
export type DlChartComponent = any
|
|
58
58
|
|
|
59
|
-
export type
|
|
59
|
+
export type DlTypedChartComponent<
|
|
60
60
|
TType extends ChartType,
|
|
61
61
|
TData = DefaultDataPoint<TType>,
|
|
62
62
|
TLabel = unknown
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types'
|