@dataloop-ai/components 0.15.7 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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} +2 -2
- 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
|
@@ -466,13 +466,15 @@ import {
|
|
|
466
466
|
useTablePaginationState,
|
|
467
467
|
useTablePaginationProps
|
|
468
468
|
} from './hooks/tablePagination'
|
|
469
|
-
import
|
|
469
|
+
import DlTr from './components/DlTr.vue'
|
|
470
|
+
import DlTh from './components/DlTh.vue'
|
|
471
|
+
import DlTd from './components/DlTd.vue'
|
|
470
472
|
import {
|
|
471
473
|
commonVirtPropsList,
|
|
472
474
|
commonVirtScrollProps,
|
|
473
475
|
ScrollDetails
|
|
474
|
-
} from '
|
|
475
|
-
import { DlVirtualScroll } from '
|
|
476
|
+
} from '../../shared/DlVirtualScroll/useVirtualScroll'
|
|
477
|
+
import { DlVirtualScroll } from '../../shared/DlVirtualScroll'
|
|
476
478
|
import { useTableFilter, useTableFilterProps } from './hooks/tableFilter'
|
|
477
479
|
import { useTableSort, useTableSortProps } from './hooks/tableSort'
|
|
478
480
|
import {
|
|
@@ -493,14 +495,12 @@ import { useTableActionsProps, useTableActions } from './hooks/tableActions'
|
|
|
493
495
|
import {
|
|
494
496
|
applyDraggableRows,
|
|
495
497
|
applyDraggableColumns
|
|
496
|
-
} from '
|
|
497
|
-
import { injectProp } from '
|
|
498
|
-
import {
|
|
498
|
+
} from '../../../utils/draggable-table'
|
|
499
|
+
import { injectProp } from '../../../utils/inject-object-prop'
|
|
500
|
+
import { DlTableRow, DlTableProps, DlTableColumn } from './types'
|
|
499
501
|
import { DlPagination } from '../DlPagination'
|
|
500
|
-
import DlCheckbox from '
|
|
501
|
-
import
|
|
502
|
-
import { ResizableManager } from './ResizableManager'
|
|
503
|
-
import DlIcon from '../DlIcon.vue'
|
|
502
|
+
import { DlIcon, DlCheckbox, DlProgressBar } from '../../essential'
|
|
503
|
+
import { ResizableManager } from './utils'
|
|
504
504
|
import { v4 } from 'uuid'
|
|
505
505
|
|
|
506
506
|
export default defineComponent({
|
|
@@ -855,7 +855,7 @@ export default defineComponent({
|
|
|
855
855
|
useTableRowExpand(props, emit)
|
|
856
856
|
|
|
857
857
|
const filteredSortedRows = computed(() => {
|
|
858
|
-
let rows = props.rows as
|
|
858
|
+
let rows = props.rows as DlTableRow[]
|
|
859
859
|
|
|
860
860
|
if (rows.length === 0) {
|
|
861
861
|
return rows
|
|
@@ -935,22 +935,22 @@ export default defineComponent({
|
|
|
935
935
|
clearSelection,
|
|
936
936
|
updateSelection
|
|
937
937
|
} = useTableRowSelection(
|
|
938
|
-
props as unknown as
|
|
938
|
+
props as unknown as DlTableProps,
|
|
939
939
|
emit,
|
|
940
940
|
computedRows,
|
|
941
|
-
getRowKey as ComputedRef<(val: string |
|
|
941
|
+
getRowKey as ComputedRef<(val: string | DlTableRow) => any>
|
|
942
942
|
)
|
|
943
943
|
|
|
944
944
|
const { colList, computedCols, computedColsMap, computedColspan } =
|
|
945
945
|
useTableColumnSelection(
|
|
946
|
-
props as unknown as
|
|
946
|
+
props as unknown as DlTableProps,
|
|
947
947
|
computedPagination,
|
|
948
948
|
hasSelectionMode,
|
|
949
949
|
hasDraggableRows
|
|
950
950
|
)
|
|
951
951
|
|
|
952
952
|
const { columnToSort, computedSortMethod, sort } = useTableSort(
|
|
953
|
-
props as unknown as
|
|
953
|
+
props as unknown as DlTableProps,
|
|
954
954
|
computedPagination,
|
|
955
955
|
colList,
|
|
956
956
|
setPagination
|
|
@@ -1107,7 +1107,7 @@ export default defineComponent({
|
|
|
1107
1107
|
|
|
1108
1108
|
const onTrClick = (
|
|
1109
1109
|
evt: MouseEvent,
|
|
1110
|
-
row:
|
|
1110
|
+
row: DlTableRow,
|
|
1111
1111
|
pageIndex: number
|
|
1112
1112
|
) => {
|
|
1113
1113
|
if (hasClickEvent.value) {
|
|
@@ -1117,7 +1117,7 @@ export default defineComponent({
|
|
|
1117
1117
|
|
|
1118
1118
|
const onTrDblClick = (
|
|
1119
1119
|
evt: MouseEvent,
|
|
1120
|
-
row:
|
|
1120
|
+
row: DlTableRow,
|
|
1121
1121
|
pageIndex: number
|
|
1122
1122
|
) => {
|
|
1123
1123
|
if (hasDblClickEvent.value) {
|
|
@@ -1127,7 +1127,7 @@ export default defineComponent({
|
|
|
1127
1127
|
|
|
1128
1128
|
const onTrContextMenu = (
|
|
1129
1129
|
evt: MouseEvent,
|
|
1130
|
-
row:
|
|
1130
|
+
row: DlTableRow,
|
|
1131
1131
|
pageIndex: number
|
|
1132
1132
|
) => {
|
|
1133
1133
|
if (hasContextMenuEvent.value) {
|
|
@@ -1170,7 +1170,7 @@ export default defineComponent({
|
|
|
1170
1170
|
function getBodyScope(data: Record<string, any>) {
|
|
1171
1171
|
injectBodyCommonScope(data)
|
|
1172
1172
|
|
|
1173
|
-
data.cols = data.cols.map((col:
|
|
1173
|
+
data.cols = data.cols.map((col: DlTableColumn) =>
|
|
1174
1174
|
Object.defineProperty({ ...col }, 'value', {
|
|
1175
1175
|
get: () => getCellValue(col, data.row),
|
|
1176
1176
|
enumerable: true
|
|
@@ -1264,4 +1264,4 @@ export default defineComponent({
|
|
|
1264
1264
|
})
|
|
1265
1265
|
</script>
|
|
1266
1266
|
|
|
1267
|
-
<style scoped src="./dl-table-styles.scss" lang="scss" />
|
|
1267
|
+
<style scoped src="./styles/dl-table-styles.scss" lang="scss" />
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
|
|
18
18
|
<script lang="ts">
|
|
19
19
|
import { defineComponent, getCurrentInstance, computed, ref } from 'vue-demi'
|
|
20
|
-
import { getColor } from '
|
|
21
|
-
import { DlTooltip } from '
|
|
22
|
-
import { useSizeObserver } from '
|
|
20
|
+
import { getColor } from '../../../../utils'
|
|
21
|
+
import { DlTooltip } from '../../../essential'
|
|
22
|
+
import { useSizeObserver } from '../../../../hooks/use-size-observer'
|
|
23
23
|
|
|
24
24
|
export default defineComponent({
|
|
25
25
|
name: 'DlTd',
|
|
@@ -106,4 +106,4 @@ export default defineComponent({
|
|
|
106
106
|
})
|
|
107
107
|
</script>
|
|
108
108
|
|
|
109
|
-
<style scoped src="
|
|
109
|
+
<style scoped src="../styles/dl-table-styles.scss" lang="scss" />
|
|
@@ -28,9 +28,8 @@
|
|
|
28
28
|
|
|
29
29
|
<script lang="ts">
|
|
30
30
|
import { defineComponent, getCurrentInstance, computed, ref } from 'vue-demi'
|
|
31
|
-
import { useSizeObserver } from '
|
|
32
|
-
import DlIcon from '
|
|
33
|
-
import DlTooltip from '../DlTooltip.vue'
|
|
31
|
+
import { useSizeObserver } from '../../../../hooks/use-size-observer'
|
|
32
|
+
import { DlIcon, DlTooltip } from '../../../essential'
|
|
34
33
|
|
|
35
34
|
export default defineComponent({
|
|
36
35
|
name: 'DlTh',
|
|
@@ -123,4 +122,4 @@ export default defineComponent({
|
|
|
123
122
|
})
|
|
124
123
|
</script>
|
|
125
124
|
|
|
126
|
-
<style scoped src="
|
|
125
|
+
<style scoped src="../styles/dl-table-styles.scss" lang="scss" />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, ComputedRef } from 'vue-demi'
|
|
2
2
|
|
|
3
|
-
import { isNumber } from '
|
|
4
|
-
import {
|
|
3
|
+
import { isNumber } from '../../../../utils/is'
|
|
4
|
+
import { DlTableProps, DlTableColumn, DlTableRow } from '../types'
|
|
5
5
|
import { TablePagination } from './tablePagination'
|
|
6
6
|
|
|
7
7
|
export const useTableColumnSelectionProps = {
|
|
@@ -9,7 +9,7 @@ export const useTableColumnSelectionProps = {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export function useTableColumnSelection(
|
|
12
|
-
props:
|
|
12
|
+
props: DlTableProps,
|
|
13
13
|
computedPagination: ComputedRef<TablePagination>,
|
|
14
14
|
hasSelectionMode: ComputedRef<boolean>,
|
|
15
15
|
hasDraggableRows: ComputedRef<boolean>
|
|
@@ -32,7 +32,7 @@ export function useTableColumnSelection(
|
|
|
32
32
|
sortable: true
|
|
33
33
|
}))
|
|
34
34
|
: []
|
|
35
|
-
) as
|
|
35
|
+
) as DlTableColumn[]
|
|
36
36
|
})
|
|
37
37
|
|
|
38
38
|
const computedCols = computed(() => {
|
|
@@ -76,7 +76,7 @@ export function useTableColumnSelection(
|
|
|
76
76
|
col.classes !== void 0
|
|
77
77
|
? typeof col.classes !== 'function'
|
|
78
78
|
? () => alignClass + ' ' + col.classes
|
|
79
|
-
: (row:
|
|
79
|
+
: (row: DlTableRow) =>
|
|
80
80
|
alignClass +
|
|
81
81
|
' ' +
|
|
82
82
|
(col.classes as Function)(row)
|
|
@@ -88,7 +88,7 @@ export function useTableColumnSelection(
|
|
|
88
88
|
})
|
|
89
89
|
|
|
90
90
|
const computedColsMap = computed(() => {
|
|
91
|
-
const names: Record<string,
|
|
91
|
+
const names: Record<string, DlTableColumn> = {}
|
|
92
92
|
computedCols.value.forEach((col) => {
|
|
93
93
|
names[col.name] = col
|
|
94
94
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, watch, nextTick } from 'vue-demi'
|
|
2
|
-
import {
|
|
2
|
+
import { DlTableProps, DlTableFilterMethod } from '../types'
|
|
3
3
|
|
|
4
4
|
export const useTableFilterProps = {
|
|
5
5
|
filter: [String, Object],
|
|
@@ -25,7 +25,7 @@ export function useTableFilter(props: any, setPagination: Function) {
|
|
|
25
25
|
return haystack.indexOf(lowerTerms) !== -1
|
|
26
26
|
})
|
|
27
27
|
)
|
|
28
|
-
}) as
|
|
28
|
+
}) as DlTableFilterMethod
|
|
29
29
|
)
|
|
30
30
|
|
|
31
31
|
watch(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, ComputedRef } from 'vue-demi'
|
|
2
|
-
import {
|
|
2
|
+
import { DlTableProps, DlTableRow } from '../types'
|
|
3
3
|
|
|
4
4
|
export const useTableRowSelectionProps = {
|
|
5
5
|
selection: {
|
|
@@ -9,17 +9,17 @@ export const useTableRowSelectionProps = {
|
|
|
9
9
|
},
|
|
10
10
|
selected: {
|
|
11
11
|
type: Array,
|
|
12
|
-
default: () => [] as (string |
|
|
12
|
+
default: () => [] as (string | DlTableRow)[]
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export const useTableRowSelectionEmits = ['update:selected', 'selection']
|
|
17
17
|
|
|
18
18
|
export function useTableRowSelection(
|
|
19
|
-
props:
|
|
19
|
+
props: DlTableProps,
|
|
20
20
|
emit: (event: string, val: any) => void,
|
|
21
|
-
computedRows: ComputedRef<
|
|
22
|
-
getRowKey: ComputedRef<(val: string |
|
|
21
|
+
computedRows: ComputedRef<DlTableRow[]>,
|
|
22
|
+
getRowKey: ComputedRef<(val: string | DlTableRow) => any>
|
|
23
23
|
) {
|
|
24
24
|
const selectedKeys = computed(() => {
|
|
25
25
|
return props.selected
|
|
@@ -71,7 +71,7 @@ export function useTableRowSelection(
|
|
|
71
71
|
|
|
72
72
|
function updateSelection(
|
|
73
73
|
keys: string[],
|
|
74
|
-
rows: (string |
|
|
74
|
+
rows: (string | DlTableRow)[],
|
|
75
75
|
added: boolean,
|
|
76
76
|
evt?: (event: string, val: any) => void
|
|
77
77
|
) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, ComputedRef } from 'vue-demi'
|
|
2
2
|
|
|
3
|
-
import { sortDate } from '
|
|
4
|
-
import { isNumber, isDate, isObject } from '
|
|
5
|
-
import {
|
|
3
|
+
import { sortDate } from '../../../../utils/sort'
|
|
4
|
+
import { isNumber, isDate, isObject } from '../../../../utils/is'
|
|
5
|
+
import { DlTableProps, DlTableColumn, DlTableSortMethod } from '../types'
|
|
6
6
|
import { TablePagination } from './tablePagination'
|
|
7
7
|
|
|
8
8
|
export const useTableSortProps = {
|
|
@@ -16,9 +16,9 @@ export const useTableSortProps = {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export function useTableSort(
|
|
19
|
-
props:
|
|
19
|
+
props: DlTableProps,
|
|
20
20
|
computedPagination: ComputedRef<TablePagination>,
|
|
21
|
-
colList: ComputedRef<
|
|
21
|
+
colList: ComputedRef<DlTableColumn[]>,
|
|
22
22
|
setPagination: Function
|
|
23
23
|
) {
|
|
24
24
|
const columnToSort = computed(() => {
|
|
@@ -73,18 +73,18 @@ export function useTableSort(
|
|
|
73
73
|
|
|
74
74
|
return A < B ? -1 * dir : A === B ? 0 : dir
|
|
75
75
|
})
|
|
76
|
-
}) as
|
|
76
|
+
}) as DlTableSortMethod)
|
|
77
77
|
)
|
|
78
78
|
|
|
79
|
-
function sort(col: string |
|
|
80
|
-
let sortOrder:
|
|
79
|
+
function sort(col: string | DlTableColumn) {
|
|
80
|
+
let sortOrder: DlTableProps['columnSortOrder'] = props.columnSortOrder
|
|
81
81
|
|
|
82
82
|
if (isObject(col) === true) {
|
|
83
|
-
if ((col as
|
|
84
|
-
sortOrder = (col as
|
|
83
|
+
if ((col as DlTableColumn).sortOrder) {
|
|
84
|
+
sortOrder = (col as DlTableColumn).sortOrder
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
col = (col as
|
|
87
|
+
col = (col as DlTableColumn).name
|
|
88
88
|
} else {
|
|
89
89
|
const def = colList.value.find((def) => def.name === col)
|
|
90
90
|
if (def !== void 0 && def.sortOrder) {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export type DlTableProps = {
|
|
2
|
+
columns: DlTableColumn[]
|
|
3
|
+
rows: DlTableRow[]
|
|
4
|
+
visibleColumns: string[]
|
|
5
|
+
filter: DlTableFilter
|
|
6
|
+
filterMethod: DlTableFilterMethod
|
|
7
|
+
sortMethod: DlTableSortMethod
|
|
8
|
+
selected: string[]
|
|
9
|
+
expanded: string[]
|
|
10
|
+
columnSortOrder: 'asc' | 'des'
|
|
11
|
+
[key: string]: any
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type DlTableRow = {
|
|
15
|
+
[key: string]: any
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type DlTableFilter = string | Record<string, any>
|
|
19
|
+
|
|
20
|
+
export type DlTableColumn = {
|
|
21
|
+
name: string
|
|
22
|
+
label: string
|
|
23
|
+
field: string | ((row: DlTableRow) => string)
|
|
24
|
+
required?: boolean
|
|
25
|
+
align?: 'right' | 'left' | 'center'
|
|
26
|
+
sortable?: boolean
|
|
27
|
+
sort?: (a: any, b: any, rowA: DlTableRow, rowB: DlTableRow) => number
|
|
28
|
+
sortOrder?: 'asc' | 'des'
|
|
29
|
+
format?: (val: any, row: DlTableRow) => any
|
|
30
|
+
style?: string | ((row: DlTableRow) => string)
|
|
31
|
+
classes?: string | ((row: DlTableRow) => string)
|
|
32
|
+
headerStyle?: string
|
|
33
|
+
headerClasses?: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type DlTableFilterMethod = (
|
|
37
|
+
rows: DlTableRow[],
|
|
38
|
+
terms: DlTableFilter,
|
|
39
|
+
cols: DlTableColumn[],
|
|
40
|
+
getCellValue: (col: DlTableColumn, row: DlTableRow) => any
|
|
41
|
+
) => DlTableRow[]
|
|
42
|
+
|
|
43
|
+
export type DlTableSortMethod = (
|
|
44
|
+
rows: DlTableRow[],
|
|
45
|
+
sortBy: string,
|
|
46
|
+
descending: boolean
|
|
47
|
+
) => DlTableRow[]
|
|
48
|
+
|
|
49
|
+
export type DlTablePagination = {
|
|
50
|
+
page: number
|
|
51
|
+
rowsPerPage: number
|
|
52
|
+
rowsNumber?: number
|
|
53
|
+
sortBy?: string | null
|
|
54
|
+
descending?: boolean
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type DlTableRequestProp = {
|
|
58
|
+
pagination: DlTablePagination
|
|
59
|
+
filter?: DlTableFilterMethod
|
|
60
|
+
getCellValue?: (col: DlTableColumn, row: DlTableRow) => any
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type DlTableSelectionDetails = {
|
|
64
|
+
rows: DlTableRow[]
|
|
65
|
+
keys: string[]
|
|
66
|
+
added: boolean
|
|
67
|
+
evt: Event
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type DlTableScrollPosition = {
|
|
71
|
+
index: number
|
|
72
|
+
from: number
|
|
73
|
+
to: number
|
|
74
|
+
direction: 'increase' | 'decrease'
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface DlTableEnhancedCol extends DlTableColumn {
|
|
78
|
+
iconClass: string
|
|
79
|
+
thClass: string
|
|
80
|
+
tdStyle: ((row: DlTableRow) => string) | (() => any)
|
|
81
|
+
tdClass: (row: DlTableRow) => string
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type DlTableVirtualScrollType = {
|
|
85
|
+
[key: string]: any
|
|
86
|
+
reset: () => void
|
|
87
|
+
scrollTo: (toIndex: number | string, edge?: number | string) => void
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type DlTableTypographyProps = {
|
|
91
|
+
variant?: string
|
|
92
|
+
size?: string
|
|
93
|
+
uppercase?: boolean
|
|
94
|
+
bold?: boolean
|
|
95
|
+
color?: string
|
|
96
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ResizableManager'
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
<script lang="ts">
|
|
36
36
|
import { v4 } from 'uuid'
|
|
37
37
|
import { defineComponent, PropType } from 'vue-demi'
|
|
38
|
-
import { hasOverflowing } from '
|
|
39
|
-
import
|
|
40
|
-
import TabsWrapper from './TabsWrapper.vue'
|
|
41
|
-
import type {
|
|
38
|
+
import { hasOverflowing } from '../../../utils'
|
|
39
|
+
import DlTab from './components/DlTab.vue'
|
|
40
|
+
import TabsWrapper from './components/TabsWrapper.vue'
|
|
41
|
+
import type { DlTabDetails } from './types'
|
|
42
42
|
|
|
43
43
|
export default defineComponent({
|
|
44
44
|
name: 'DlTabs',
|
|
@@ -51,7 +51,7 @@ export default defineComponent({
|
|
|
51
51
|
event: 'update:model-value'
|
|
52
52
|
},
|
|
53
53
|
props: {
|
|
54
|
-
items: { type: Array as PropType<
|
|
54
|
+
items: { type: Array as PropType<DlTabDetails[]>, required: true },
|
|
55
55
|
vertical: { type: Boolean, default: false },
|
|
56
56
|
fullWidth: { type: Boolean, default: false },
|
|
57
57
|
disabled: { type: Boolean, default: false },
|
|
@@ -25,10 +25,9 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
</template>
|
|
27
27
|
<script lang="ts">
|
|
28
|
-
import DlTooltip from '
|
|
29
|
-
import DlIcon from '../DlIcon.vue'
|
|
28
|
+
import { DlTooltip, DlIcon } from '../../../essential'
|
|
30
29
|
import { defineComponent } from 'vue-demi'
|
|
31
|
-
import { stopAndPrevent } from '
|
|
30
|
+
import { stopAndPrevent } from '../../../../utils'
|
|
32
31
|
import { v4 } from 'uuid'
|
|
33
32
|
|
|
34
33
|
export default defineComponent({
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
</template>
|
|
39
39
|
<script lang="ts">
|
|
40
40
|
import { defineComponent } from 'vue-demi'
|
|
41
|
-
import { DlButton } from '
|
|
42
|
-
import DlIcon from '
|
|
41
|
+
import { DlButton } from '../../../basic'
|
|
42
|
+
import { DlIcon } from '../../../essential'
|
|
43
43
|
|
|
44
44
|
export default defineComponent({
|
|
45
45
|
components: {
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
<dl-alert
|
|
18
18
|
:type="type"
|
|
19
19
|
:closable="closable"
|
|
20
|
-
|
|
21
|
-
@update:model-value="(val) => closeToast(val)"
|
|
20
|
+
@update:model-value="closeToast"
|
|
22
21
|
>
|
|
23
22
|
<span
|
|
24
23
|
class="v-toast__text"
|
|
@@ -37,7 +36,7 @@ import {
|
|
|
37
36
|
onMounted,
|
|
38
37
|
ref
|
|
39
38
|
} from 'vue-demi'
|
|
40
|
-
import DlAlert from '
|
|
39
|
+
import { DlAlert } from '../../../basic'
|
|
41
40
|
import { Positions, Types } from '../utils/config'
|
|
42
41
|
import { removeElement } from '../utils/render'
|
|
43
42
|
import { Animation } from '../types'
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './DlCharts'
|
|
2
|
+
export * from './DlCounters'
|
|
3
|
+
export * from './DlDateTime'
|
|
4
|
+
export * from './DlDropdownButton'
|
|
5
|
+
export * from './DlInput'
|
|
6
|
+
export * from './DlItem'
|
|
7
|
+
export * from './DlOptionGroup'
|
|
8
|
+
export * from './DlPagination'
|
|
9
|
+
export * from './DlRange'
|
|
10
|
+
export * from './DlSearches'
|
|
11
|
+
export * from './DlSelect'
|
|
12
|
+
export * from './DlSlider'
|
|
13
|
+
export * from './DlStepper'
|
|
14
|
+
export * from './DlTable'
|
|
15
|
+
export * from './DlTabPanels'
|
|
16
|
+
export * from './DlTabs'
|
|
17
|
+
export * from './DlToast'
|
|
18
|
+
export * from './DlDialogBox'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DlStepper/models'
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './DlCharts/types'
|
|
2
|
+
export * from './DlDateTime/types'
|
|
3
|
+
export * from './DlDropdownButton'
|
|
4
|
+
export * from './DlSearches/types'
|
|
5
|
+
export * from './DlStepper/types'
|
|
6
|
+
export * from './DlTabs/types'
|
|
7
|
+
export * from './DlToast/types'
|
|
8
|
+
export * from './DlDialogBox/types'
|
|
9
|
+
export * from './DlOptionGroup/types'
|
|
10
|
+
export * from './DlTable/types'
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
|
|
79
79
|
<script lang="ts">
|
|
80
80
|
import { defineComponent, toRaw } from 'vue-demi'
|
|
81
|
-
import { getColor } from '
|
|
81
|
+
import { getColor } from '../../../utils'
|
|
82
82
|
import { v4 } from 'uuid'
|
|
83
|
-
import { stopAndPrevent } from '
|
|
83
|
+
import { stopAndPrevent } from '../../../utils'
|
|
84
84
|
|
|
85
85
|
const ValueTypes = [Array, Boolean, String, Number, Object, Function, null]
|
|
86
86
|
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
</template>
|
|
61
61
|
|
|
62
62
|
<script lang="ts">
|
|
63
|
-
import Saturation from './DlSaturation.vue'
|
|
64
|
-
import Hue from './DlHue.vue'
|
|
65
|
-
import Alpha from './DlAlpha.vue'
|
|
66
|
-
import Preview from './DlPreview.vue'
|
|
67
|
-
import Box from './DlBox.vue'
|
|
68
|
-
import Colors from './DlColors.vue'
|
|
63
|
+
import Saturation from './components/DlSaturation.vue'
|
|
64
|
+
import Hue from './components/DlHue.vue'
|
|
65
|
+
import Alpha from './components/DlAlpha.vue'
|
|
66
|
+
import Preview from './components/DlPreview.vue'
|
|
67
|
+
import Box from './components/DlBox.vue'
|
|
68
|
+
import Colors from './components/DlColors.vue'
|
|
69
69
|
import { defineComponent, PropType } from 'vue-demi'
|
|
70
70
|
import { rgb2hex, setColorValue } from './utils'
|
|
71
71
|
import { NewColor } from './types'
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
<script lang="ts">
|
|
15
15
|
import { defineComponent } from 'vue-demi'
|
|
16
|
-
import { createAlphaSquare, createLinearGradient } from '
|
|
16
|
+
import { createAlphaSquare, createLinearGradient } from '../utils'
|
|
17
17
|
|
|
18
18
|
export default defineComponent({
|
|
19
19
|
name: 'DlAlpha',
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import DlColorPicker from './DlColorPicker.vue'
|
|
2
|
+
import DlColors from './components/DlColors.vue'
|
|
3
|
+
import DlHue from './components/DlHue.vue'
|
|
4
|
+
import DlPreview from './components/DlPreview.vue'
|
|
5
|
+
import DlSaturation from './components/DlSaturation.vue'
|
|
6
|
+
import DlBox from './components/DlBox.vue'
|
|
7
|
+
import DlAlpha from './components/DlAlpha.vue'
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
DlColorPicker,
|
|
11
|
+
DlColors,
|
|
12
|
+
DlHue,
|
|
13
|
+
DlPreview,
|
|
14
|
+
DlSaturation,
|
|
15
|
+
DlBox,
|
|
16
|
+
DlAlpha
|
|
17
|
+
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<script lang="ts">
|
|
32
32
|
import { v4 } from 'uuid'
|
|
33
33
|
import { defineComponent } from 'vue-demi'
|
|
34
|
-
import { getColor, loggerFactory } from '
|
|
34
|
+
import { getColor, loggerFactory } from '../../../utils'
|
|
35
35
|
|
|
36
36
|
export default defineComponent({
|
|
37
37
|
name: 'DlIcon',
|