@dataloop-ai/components 0.15.6 → 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 +16 -7
- 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/DlAccordionDemo.vue +3 -0
- 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
package/src/demo/index.ts
CHANGED
|
@@ -33,7 +33,7 @@ import DlChipDemo from './DlChipDemo.vue'
|
|
|
33
33
|
import DlListDemo from './DlListDemo.vue'
|
|
34
34
|
import DlCounterDemo from './DlCounterDemo.vue'
|
|
35
35
|
import DlTextareaDemo from './DlTextAreaDemo.vue'
|
|
36
|
-
import
|
|
36
|
+
import DlInputDemo from './DlInputDemo.vue'
|
|
37
37
|
import DlSearchDemo from './DlSearchDemo.vue'
|
|
38
38
|
import DlBadgeDemo from './DlBadgeDemo.vue'
|
|
39
39
|
import DlTrendDemo from './DlTrendDemo.vue'
|
|
@@ -43,10 +43,11 @@ import DlTextHolderDemo from './DlTextHolderDemo.vue'
|
|
|
43
43
|
import DlColumnChartDemo from './ColumnChartDemo.vue'
|
|
44
44
|
import DlBarChartDemo from './BarChartDemo.vue'
|
|
45
45
|
import DlSwitchDemo from './DlSwitchDemo.vue'
|
|
46
|
-
import
|
|
46
|
+
import DlToastDemo from './DlToastDemo.vue'
|
|
47
47
|
import DlChartDoughnutDemo from './DlChartDoughnutDemo.vue'
|
|
48
48
|
import DlLineChartDemo from './DlLineChartDemo.vue'
|
|
49
49
|
import DlSpinner from './DlSpinnerDemo.vue'
|
|
50
|
+
import DlKpiDemo from './DlKpiDemo.vue'
|
|
50
51
|
|
|
51
52
|
export {
|
|
52
53
|
AvatarDemo,
|
|
@@ -84,14 +85,14 @@ export {
|
|
|
84
85
|
DlListDemo,
|
|
85
86
|
DlCounterDemo,
|
|
86
87
|
DlTextareaDemo,
|
|
87
|
-
|
|
88
|
+
DlInputDemo,
|
|
88
89
|
DlSearchDemo,
|
|
89
90
|
DlBadgeDemo,
|
|
90
91
|
DlTrendDemo,
|
|
91
92
|
DlWidgetDemo,
|
|
92
93
|
DlRadioDemo,
|
|
93
94
|
DlTextHolderDemo,
|
|
94
|
-
DlToastMessageDemo,
|
|
95
|
+
DlToastDemo as DlToastMessageDemo,
|
|
95
96
|
DlColumnChartDemo,
|
|
96
97
|
DlSwitchDemo,
|
|
97
98
|
DlChartDoughnutDemo,
|
|
@@ -126,6 +127,7 @@ export const demoState = {
|
|
|
126
127
|
popup: PopupDemo,
|
|
127
128
|
progress_bar: DlProgressBarDemo,
|
|
128
129
|
progress_chart: DlProgressChartDemo,
|
|
130
|
+
kpi: DlKpiDemo,
|
|
129
131
|
range: DlRangeDemo,
|
|
130
132
|
search: DlSearchDemo,
|
|
131
133
|
select: DlSelectDemo,
|
|
@@ -137,7 +139,7 @@ export const demoState = {
|
|
|
137
139
|
table_th: DlThDemo,
|
|
138
140
|
table_tr: DlTrDemo,
|
|
139
141
|
tabs: TabsDemo,
|
|
140
|
-
|
|
142
|
+
input: DlInputDemo,
|
|
141
143
|
textarea: DlTextareaDemo,
|
|
142
144
|
text_holder: DlTextHolderDemo,
|
|
143
145
|
time_picker: DlDateTimeRangeDemo,
|
|
@@ -148,6 +150,6 @@ export const demoState = {
|
|
|
148
150
|
radio: DlRadioDemo,
|
|
149
151
|
switch: DlSwitchDemo,
|
|
150
152
|
smart_search: DlSmartSearchDemo,
|
|
151
|
-
|
|
153
|
+
toast: DlToastDemo,
|
|
152
154
|
spinner: DlSpinner
|
|
153
155
|
}
|
package/src/models.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export * from './components/
|
|
2
|
-
export * from './components/DlStepper/interfaces'
|
|
3
|
-
export * from './components/DlTable/types'
|
|
4
|
-
export * from './components/DlTabs/types'
|
|
5
|
-
export * from './components/DlTimePicker/types'
|
|
6
|
-
export * from './components/DlWidget/types'
|
|
1
|
+
export * from './components/types'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function numberWithComma(nr: number) {
|
|
2
|
+
if (!nr) return 0
|
|
3
|
+
return new Intl.NumberFormat('en-US', {
|
|
4
|
+
style: 'decimal'
|
|
5
|
+
}).format(nr)
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function abbreviateNumber(nr: number) {
|
|
9
|
+
if (!nr) return 0
|
|
10
|
+
return new Intl.NumberFormat('en-US', {
|
|
11
|
+
maximumFractionDigits: 1,
|
|
12
|
+
notation: 'compact',
|
|
13
|
+
compactDisplay: 'short'
|
|
14
|
+
}).format(nr)
|
|
15
|
+
}
|
package/src/utils/index.ts
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Chart } from './chart'
|
|
2
|
-
import {
|
|
3
|
-
createTypedChart,
|
|
4
|
-
Bar,
|
|
5
|
-
Doughnut,
|
|
6
|
-
Line,
|
|
7
|
-
Pie,
|
|
8
|
-
PolarArea,
|
|
9
|
-
Radar,
|
|
10
|
-
Bubble,
|
|
11
|
-
Scatter
|
|
12
|
-
} from './typedCharts'
|
|
13
|
-
import DlColumnChart from './DlColumnChart.vue'
|
|
14
|
-
import DlLineChart from './DlLineChart.vue'
|
|
15
|
-
|
|
16
|
-
export type { ChartProps, ChartComponentRef } from './types'
|
|
17
|
-
export {
|
|
18
|
-
getDatasetAtEvent,
|
|
19
|
-
getElementAtEvent,
|
|
20
|
-
getElementsAtEvent
|
|
21
|
-
} from './utils'
|
|
22
|
-
|
|
23
|
-
export {
|
|
24
|
-
Chart,
|
|
25
|
-
createTypedChart,
|
|
26
|
-
Bar,
|
|
27
|
-
Doughnut,
|
|
28
|
-
Line,
|
|
29
|
-
Pie,
|
|
30
|
-
PolarArea,
|
|
31
|
-
Radar,
|
|
32
|
-
Bubble,
|
|
33
|
-
Scatter,
|
|
34
|
-
DlColumnChart,
|
|
35
|
-
DlLineChart
|
|
36
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import DlColorPicker from './DlColorPicker.vue'
|
|
2
|
-
import DlColors from './DlColors.vue'
|
|
3
|
-
import DlHue from './DlHue.vue'
|
|
4
|
-
import DlPreview from './DlPreview.vue'
|
|
5
|
-
import DlSaturation from './DlSaturation.vue'
|
|
6
|
-
import DlBox from './DlBox.vue'
|
|
7
|
-
import DlAlpha from './DlAlpha.vue'
|
|
8
|
-
|
|
9
|
-
export * from './types'
|
|
10
|
-
export * from './utils'
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
DlColorPicker,
|
|
14
|
-
DlColors,
|
|
15
|
-
DlHue,
|
|
16
|
-
DlPreview,
|
|
17
|
-
DlSaturation,
|
|
18
|
-
DlBox,
|
|
19
|
-
DlAlpha
|
|
20
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { CalendarDate } from './classes/CalendarDate'
|
|
2
|
-
|
|
3
|
-
export const getWeekDayNames = (): string[] => {
|
|
4
|
-
const start = new CalendarDate().day(0)
|
|
5
|
-
const end = new CalendarDate().day(6)
|
|
6
|
-
|
|
7
|
-
const weekDayNames = []
|
|
8
|
-
|
|
9
|
-
while (start.isSameOrBefore(end)) {
|
|
10
|
-
weekDayNames.push(start.format('dddd').substring(0, 2))
|
|
11
|
-
|
|
12
|
-
start.add(1, 'day')
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return weekDayNames
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type Month = {
|
|
19
|
-
name: string
|
|
20
|
-
value: number
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const getMonths = (): Month[] => {
|
|
24
|
-
const start = new CalendarDate().month(0)
|
|
25
|
-
const end = new CalendarDate().month(11)
|
|
26
|
-
|
|
27
|
-
const months = []
|
|
28
|
-
|
|
29
|
-
while (start.isSameOrBefore(end)) {
|
|
30
|
-
months.push({
|
|
31
|
-
name: start.format('MMM'),
|
|
32
|
-
value: start.month()
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
start.add(1, 'month')
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return months
|
|
39
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export type SelectedValue = number | string | boolean | null
|
|
2
|
-
|
|
3
|
-
interface GenericOption {
|
|
4
|
-
label: string
|
|
5
|
-
value: SelectedValue
|
|
6
|
-
disabled?: boolean
|
|
7
|
-
color?: string
|
|
8
|
-
tooltip?: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface RadioOption extends GenericOption {
|
|
12
|
-
tabindex?: number | string
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface CheckboxOption extends GenericOption {
|
|
16
|
-
tabindex?: number | string
|
|
17
|
-
'toggle-indeterminate'?: boolean
|
|
18
|
-
'true-value'?: any
|
|
19
|
-
'false-value'?: any
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ToggleOption extends GenericOption {
|
|
23
|
-
icon?: string
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type OptionGroupOptions = (RadioOption | CheckboxOption | ToggleOption)[]
|
|
27
|
-
|
|
28
|
-
export interface OptionProps
|
|
29
|
-
extends Partial<RadioOption>,
|
|
30
|
-
Partial<CheckboxOption>,
|
|
31
|
-
Partial<ToggleOption> {
|
|
32
|
-
value?: SelectedValue
|
|
33
|
-
class?: string
|
|
34
|
-
rightLabel?: string
|
|
35
|
-
leftLabel?: string
|
|
36
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import DlRadio from '../DlRadio.vue'
|
|
2
|
-
import DlSwitch from '../DlSwitch.vue'
|
|
3
|
-
import DlCheckbox from '../DlCheckbox.vue'
|
|
4
|
-
|
|
5
|
-
import { isVue3, shallowRef } from 'vue-demi'
|
|
6
|
-
import { OptionGroupOptions } from './OptionGroup.types'
|
|
7
|
-
import MenuItemWrapper from './MenuItemWrapper.vue'
|
|
8
|
-
import SimpleWrapper from './SimpleWrapper.vue'
|
|
9
|
-
|
|
10
|
-
export const components = isVue3
|
|
11
|
-
? {
|
|
12
|
-
radio: shallowRef(DlRadio),
|
|
13
|
-
checkbox: shallowRef(DlCheckbox),
|
|
14
|
-
switch: shallowRef(DlSwitch)
|
|
15
|
-
// toggle: shallowRef(DlToggle),
|
|
16
|
-
}
|
|
17
|
-
: {
|
|
18
|
-
radio: () => import('../DlRadio.vue').then((d) => d.default),
|
|
19
|
-
checkbox: () => import('../DlCheckbox.vue').then((d) => d.default),
|
|
20
|
-
switch: () => import('../DlSwitch.vue').then((d) => d.default)
|
|
21
|
-
// toggle: () => import('../DlToggle.vue').then(d => d.default),
|
|
22
|
-
}
|
|
23
|
-
export const componentsType = Object.keys(components)
|
|
24
|
-
|
|
25
|
-
export const typeValidator = (type: string) => componentsType.includes(type)
|
|
26
|
-
|
|
27
|
-
export const optionsValidator = (opts: OptionGroupOptions) => {
|
|
28
|
-
return opts.every((opt) => 'value' in opt && 'label' in opt)
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export const wrappers = isVue3
|
|
32
|
-
? {
|
|
33
|
-
menuItem: shallowRef(MenuItemWrapper),
|
|
34
|
-
label: shallowRef(SimpleWrapper)
|
|
35
|
-
}
|
|
36
|
-
: {
|
|
37
|
-
menuItem: () =>
|
|
38
|
-
import('./MenuItemWrapper.vue').then((d) => d.default),
|
|
39
|
-
label: () => import('./SimpleWrapper.vue').then((d) => d.default)
|
|
40
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './DlPopup.vue'
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
export type TableProps = {
|
|
2
|
-
columns: TableColumn[]
|
|
3
|
-
rows: TableRow[]
|
|
4
|
-
visibleColumns: string[]
|
|
5
|
-
filter: Filter
|
|
6
|
-
filterMethod: FilterMethod
|
|
7
|
-
sortMethod: SortMethod
|
|
8
|
-
selected: string[]
|
|
9
|
-
expanded: string[]
|
|
10
|
-
columnSortOrder: 'asc' | 'des'
|
|
11
|
-
[key: string]: any
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type TableRow = {
|
|
15
|
-
[key: string]: any
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type Filter = string | Record<string, any>
|
|
19
|
-
|
|
20
|
-
export type TableColumn = {
|
|
21
|
-
name: string
|
|
22
|
-
label: string
|
|
23
|
-
field: string | ((row: TableRow) => string)
|
|
24
|
-
required?: boolean
|
|
25
|
-
align?: 'right' | 'left' | 'center'
|
|
26
|
-
sortable?: boolean
|
|
27
|
-
sort?: (a: any, b: any, rowA: TableRow, rowB: TableRow) => number
|
|
28
|
-
sortOrder?: 'asc' | 'des'
|
|
29
|
-
format?: (val: any, row: TableRow) => any
|
|
30
|
-
style?: string | ((row: TableRow) => string)
|
|
31
|
-
classes?: string | ((row: TableRow) => string)
|
|
32
|
-
headerStyle?: string
|
|
33
|
-
headerClasses?: string
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export type FilterMethod = (
|
|
37
|
-
rows: TableRow[],
|
|
38
|
-
terms: Filter,
|
|
39
|
-
cols: TableColumn[],
|
|
40
|
-
getCellValue: (col: TableColumn, row: TableRow) => any
|
|
41
|
-
) => TableRow[]
|
|
42
|
-
|
|
43
|
-
export type SortMethod = (
|
|
44
|
-
rows: TableRow[],
|
|
45
|
-
sortBy: string,
|
|
46
|
-
descending: boolean
|
|
47
|
-
) => TableRow[]
|
|
48
|
-
|
|
49
|
-
export type Pagination = {
|
|
50
|
-
page: number
|
|
51
|
-
rowsPerPage: number
|
|
52
|
-
rowsNumber?: number
|
|
53
|
-
sortBy?: string | null
|
|
54
|
-
descending?: boolean
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export type RequestProp = {
|
|
58
|
-
pagination: Pagination
|
|
59
|
-
filter?: FilterMethod
|
|
60
|
-
getCellValue?: (col: TableColumn, row: TableRow) => any
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export type SelectionDetails = {
|
|
64
|
-
rows: TableRow[]
|
|
65
|
-
keys: string[]
|
|
66
|
-
added: boolean
|
|
67
|
-
evt: Event
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export type ScrollPosition = {
|
|
71
|
-
index: number
|
|
72
|
-
from: number
|
|
73
|
-
to: number
|
|
74
|
-
direction: 'increase' | 'decrease'
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface EnhancedCol extends TableColumn {
|
|
78
|
-
iconClass: string
|
|
79
|
-
thClass: string
|
|
80
|
-
tdStyle: ((row: TableRow) => string) | (() => any)
|
|
81
|
-
tdClass: (row: TableRow) => string
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export type VirtualScroll = {
|
|
85
|
-
[key: string]: any
|
|
86
|
-
reset: () => void
|
|
87
|
-
scrollTo: (toIndex: number | string, edge?: number | string) => void
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export type TypographyProps = {
|
|
91
|
-
variant?: string
|
|
92
|
-
size?: string
|
|
93
|
-
uppercase?: boolean
|
|
94
|
-
bold?: boolean
|
|
95
|
-
color?: string
|
|
96
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{DlDatePicker/classes → compound/DlDateTime/DlDatePicker/models}/Calendar.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{DlDateTimeRange → compound/DlDateTime/DlDateTimeRange}/DlCardSidebar.vue
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{DlDialogBox → compound/DlDialogBox/components}/DlDialogBoxFooter.vue
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/components/{DlPagination → compound/DlPagination/components}/PaginationLegend.vue
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{DlInfoErrorMessage.vue → shared/DlInfoErrorMessage/DlInfoErrorMessage.vue}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|