@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
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DlRadio, DlSwitch, DlCheckbox } from '../../essential'
|
|
2
|
+
import { isVue3, shallowRef } from 'vue-demi'
|
|
3
|
+
import { DlOptionGroupOptions } from './types'
|
|
4
|
+
import MenuItemWrapper from './components/MenuItemWrapper.vue'
|
|
5
|
+
import SimpleWrapper from './components/SimpleWrapper.vue'
|
|
6
|
+
|
|
7
|
+
export const components: { [key: string]: any } = isVue3
|
|
8
|
+
? {
|
|
9
|
+
radio: shallowRef(DlRadio),
|
|
10
|
+
checkbox: shallowRef(DlCheckbox),
|
|
11
|
+
switch: shallowRef(DlSwitch)
|
|
12
|
+
// toggle: shallowRef(DlToggle),
|
|
13
|
+
}
|
|
14
|
+
: {
|
|
15
|
+
radio: () =>
|
|
16
|
+
import('../../essential/DlRadio/DlRadio.vue').then(
|
|
17
|
+
(d) => d.default
|
|
18
|
+
),
|
|
19
|
+
checkbox: () =>
|
|
20
|
+
import('../../essential/DlCheckbox/DlCheckbox.vue').then(
|
|
21
|
+
(d) => d.default
|
|
22
|
+
),
|
|
23
|
+
switch: () =>
|
|
24
|
+
import('../../essential/DlSwitch/DlSwitch.vue').then(
|
|
25
|
+
(d) => d.default
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
export const componentsType = Object.keys(components)
|
|
29
|
+
|
|
30
|
+
export const typeValidator = (type: string) => componentsType.includes(type)
|
|
31
|
+
|
|
32
|
+
export const optionsValidator = (opts: DlOptionGroupOptions) => {
|
|
33
|
+
return opts.every((opt) => 'value' in opt && 'label' in opt)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const wrappers: { [key: string]: any } = isVue3
|
|
37
|
+
? {
|
|
38
|
+
menuItem: shallowRef(MenuItemWrapper),
|
|
39
|
+
label: shallowRef(SimpleWrapper)
|
|
40
|
+
}
|
|
41
|
+
: {
|
|
42
|
+
menuItem: () =>
|
|
43
|
+
import('./components/MenuItemWrapper.vue').then((d) => d.default),
|
|
44
|
+
label: () =>
|
|
45
|
+
import('./components/SimpleWrapper.vue').then((d) => d.default)
|
|
46
|
+
}
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
|
|
50
50
|
<script lang="ts">
|
|
51
51
|
import { defineComponent, PropType } from 'vue-demi'
|
|
52
|
-
import RowsSelector from './RowsSelector.vue'
|
|
53
|
-
import PageNavigation from './PageNavigation.vue'
|
|
54
|
-
import QuickNavigation from './QuickNavigation.vue'
|
|
55
|
-
import PaginationLegend from './PaginationLegend.vue'
|
|
52
|
+
import RowsSelector from './components/RowsSelector.vue'
|
|
53
|
+
import PageNavigation from './components/PageNavigation.vue'
|
|
54
|
+
import QuickNavigation from './components/QuickNavigation.vue'
|
|
55
|
+
import PaginationLegend from './components/PaginationLegend.vue'
|
|
56
56
|
import { v4 } from 'uuid'
|
|
57
57
|
|
|
58
58
|
export default defineComponent({
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
|
|
105
105
|
<script lang="ts">
|
|
106
106
|
import { defineComponent } from 'vue-demi'
|
|
107
|
-
import { getColor } from '
|
|
108
|
-
import DlIcon from '
|
|
107
|
+
import { getColor } from '../../../../utils'
|
|
108
|
+
import { DlIcon } from '../../../essential'
|
|
109
109
|
|
|
110
110
|
export default defineComponent({
|
|
111
111
|
name: 'PageNavigation',
|
package/src/components/{DlPagination → compound/DlPagination/components}/QuickNavigation.vue
RENAMED
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
|
|
26
26
|
<script lang="ts">
|
|
27
27
|
import { defineComponent } from 'vue-demi'
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import { stopAndPrevent } from '
|
|
31
|
-
import { admissibleKeys } from '
|
|
28
|
+
import { DlButton } from '../../../basic'
|
|
29
|
+
import { DlTypography } from '../../../essential'
|
|
30
|
+
import { stopAndPrevent } from '../../../../utils'
|
|
31
|
+
import { admissibleKeys } from '../../../../utils/nav-keys-constants'
|
|
32
32
|
|
|
33
33
|
export default defineComponent({
|
|
34
34
|
name: 'QuickNavigation',
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
|
|
25
25
|
<script lang="ts">
|
|
26
26
|
import { defineComponent, PropType } from 'vue-demi'
|
|
27
|
-
import { DlSelect } from '
|
|
28
|
-
import DlTypography from '
|
|
27
|
+
import { DlSelect } from '../../DlSelect'
|
|
28
|
+
import { DlTypography } from '../../../essential'
|
|
29
29
|
|
|
30
30
|
export default defineComponent({
|
|
31
31
|
name: 'RowsSelector',
|
|
@@ -82,7 +82,7 @@ import useSlider, {
|
|
|
82
82
|
useSliderProps,
|
|
83
83
|
useSliderEmits
|
|
84
84
|
} from '../DlSlider/useSlider'
|
|
85
|
-
import { DlButton } from '
|
|
85
|
+
import { DlButton } from '../../basic'
|
|
86
86
|
import {
|
|
87
87
|
stopAndPrevent,
|
|
88
88
|
getColor,
|
|
@@ -90,8 +90,8 @@ import {
|
|
|
90
90
|
includes,
|
|
91
91
|
between,
|
|
92
92
|
isMobileOrTablet
|
|
93
|
-
} from '
|
|
94
|
-
import touchPanDirective from '
|
|
93
|
+
} from '../../../utils'
|
|
94
|
+
import touchPanDirective from '../../../directives/TouchPan'
|
|
95
95
|
import * as rangeUtils from './utils'
|
|
96
96
|
import { v4 } from 'uuid'
|
|
97
97
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { between, includes, KEY_CODE } from '
|
|
1
|
+
import { between, includes, KEY_CODE } from '../../../utils'
|
|
2
2
|
import { Dragging, dragType } from '../DlSlider/useSlider'
|
|
3
3
|
|
|
4
4
|
type RangeValue = {
|
|
@@ -21,7 +21,7 @@ export function updateValue(
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
type
|
|
24
|
+
type RangeBindings = {
|
|
25
25
|
left: number
|
|
26
26
|
top: number
|
|
27
27
|
width: number
|
|
@@ -30,13 +30,13 @@ type RangeBoundings = {
|
|
|
30
30
|
|
|
31
31
|
export function getDragging(
|
|
32
32
|
event: any,
|
|
33
|
-
|
|
33
|
+
bindings: RangeBindings,
|
|
34
34
|
sensitivity: number,
|
|
35
35
|
state: RangeValue,
|
|
36
36
|
stateRatio: RangeValue,
|
|
37
37
|
getDraggingRatioFn: (event: MouseEvent, dragging: Dragging) => number
|
|
38
38
|
): Dragging {
|
|
39
|
-
const { left, top, width, height } =
|
|
39
|
+
const { left, top, width, height } = bindings
|
|
40
40
|
|
|
41
41
|
const dragging = {
|
|
42
42
|
left,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
class="root-wrapper"
|
|
6
6
|
:style="rootVars"
|
|
7
7
|
>
|
|
8
|
-
<dl-
|
|
8
|
+
<dl-input
|
|
9
9
|
ref="input"
|
|
10
10
|
type="text"
|
|
11
11
|
clear-button-tooltip
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
size="12px"
|
|
31
31
|
/>
|
|
32
32
|
</template>
|
|
33
|
-
</dl-
|
|
33
|
+
</dl-input>
|
|
34
34
|
<dl-button
|
|
35
35
|
v-show="withSearchBtn"
|
|
36
36
|
padding="9px 16px"
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
<script lang="ts">
|
|
48
48
|
import { v4 } from 'uuid'
|
|
49
49
|
import { defineComponent, PropType } from 'vue-demi'
|
|
50
|
-
import { DlButton } from '
|
|
51
|
-
import DlIcon from '
|
|
52
|
-
import
|
|
50
|
+
import { DlButton } from '../../../basic'
|
|
51
|
+
import { DlIcon } from '../../../essential'
|
|
52
|
+
import { DlInput } from '../../DlInput'
|
|
53
53
|
|
|
54
54
|
const SearchSizes = {
|
|
55
55
|
l: 'l',
|
|
@@ -62,7 +62,7 @@ export default defineComponent({
|
|
|
62
62
|
components: {
|
|
63
63
|
DlButton,
|
|
64
64
|
DlIcon,
|
|
65
|
-
|
|
65
|
+
DlInput
|
|
66
66
|
},
|
|
67
67
|
model: {
|
|
68
68
|
prop: 'modelValue',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/src/components/{DlSmartSearch → compound/DlSearches/DlSmartSearch}/DlSmartSearch.vue
RENAMED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
:model-value="jsonEditorModel"
|
|
46
46
|
:query="activeQuery"
|
|
47
47
|
:queries="savedQueries"
|
|
48
|
-
@update:modelValue="
|
|
48
|
+
@update:modelValue="jsonEditorModel = $event"
|
|
49
49
|
@save="handleQuerySaveEditor"
|
|
50
50
|
@remove="handleQueryRemove"
|
|
51
51
|
@search="handleQuerySearchEditor"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
/>
|
|
82
82
|
</template>
|
|
83
83
|
<template #body>
|
|
84
|
-
<dl-
|
|
84
|
+
<dl-input
|
|
85
85
|
v-model="newQueryName"
|
|
86
86
|
style="text-align: center"
|
|
87
87
|
placeholder="Type query name"
|
|
@@ -97,15 +97,19 @@
|
|
|
97
97
|
</template>
|
|
98
98
|
<script lang="ts">
|
|
99
99
|
import { defineComponent, getCurrentInstance, PropType, ref } from 'vue-demi'
|
|
100
|
-
import DlSmartSearchInput from './DlSmartSearchInput.vue'
|
|
101
|
-
import DlJsonEditor from '
|
|
102
|
-
import { DlDialogBox, DlDialogBoxHeader } from '
|
|
103
|
-
import
|
|
104
|
-
import
|
|
105
|
-
import { DlButton } from '
|
|
106
|
-
import {
|
|
100
|
+
import DlSmartSearchInput from './components/DlSmartSearchInput.vue'
|
|
101
|
+
import { DlJsonEditor } from '../../DlJsonEditor'
|
|
102
|
+
import { DlDialogBox, DlDialogBoxHeader } from '../../DlDialogBox'
|
|
103
|
+
import { DlInput } from '../../DlInput'
|
|
104
|
+
import { DlTypography } from '../../../essential'
|
|
105
|
+
import { DlButton } from '../../../basic'
|
|
106
|
+
import {
|
|
107
|
+
useSuggestions,
|
|
108
|
+
Schema,
|
|
109
|
+
Alias
|
|
110
|
+
} from '../../../../hooks/use-suggestions'
|
|
107
111
|
import { Filter, Query, ColorSchema, SearchStatus } from './types'
|
|
108
|
-
import { createColorSchema } from './highlightSyntax'
|
|
112
|
+
import { createColorSchema } from './utils/highlightSyntax'
|
|
109
113
|
import { v4 } from 'uuid'
|
|
110
114
|
|
|
111
115
|
export default defineComponent({
|
|
@@ -116,7 +120,7 @@ export default defineComponent({
|
|
|
116
120
|
DlJsonEditor,
|
|
117
121
|
DlButton,
|
|
118
122
|
DlTypography,
|
|
119
|
-
|
|
123
|
+
DlInput
|
|
120
124
|
},
|
|
121
125
|
props: {
|
|
122
126
|
status: {
|
|
@@ -118,19 +118,23 @@
|
|
|
118
118
|
</template>
|
|
119
119
|
<script lang="ts">
|
|
120
120
|
import { defineComponent, ref, PropType } from 'vue-demi'
|
|
121
|
-
import
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import { SearchStatus, SyntaxColorSchema } from './types'
|
|
121
|
+
import { DlButton } from '../../../../basic'
|
|
122
|
+
import { DlDatePicker } from '../../../DlDateTime'
|
|
123
|
+
import { DlMenu, DlIcon } from '../../../../essential'
|
|
124
|
+
import { isEllipsisActive } from '../../../../../utils/is-ellipsis-active'
|
|
125
|
+
import { useSizeObserver } from '../../../../../hooks/use-size-observer'
|
|
126
|
+
import { SearchStatus, SyntaxColorSchema } from '../types'
|
|
128
127
|
import { debounce } from 'lodash'
|
|
129
|
-
import {
|
|
130
|
-
import DlTooltip from '../DlTooltip.vue'
|
|
128
|
+
import { DlTooltip } from '../../../../essential'
|
|
131
129
|
import DlSuggestionsDropdown from './DlSuggestionsDropdown.vue'
|
|
132
|
-
import { DateInterval } from '
|
|
133
|
-
import {
|
|
130
|
+
import { DateInterval } from '../../../DlDateTime/types'
|
|
131
|
+
import {
|
|
132
|
+
isEndingWithDateIntervalPattern,
|
|
133
|
+
replaceDateInterval,
|
|
134
|
+
isEligibleToChange,
|
|
135
|
+
setCaret,
|
|
136
|
+
updateEditor
|
|
137
|
+
} from '../utils'
|
|
134
138
|
|
|
135
139
|
export default defineComponent({
|
|
136
140
|
components: {
|
|
@@ -26,9 +26,8 @@
|
|
|
26
26
|
</template>
|
|
27
27
|
<script lang="ts">
|
|
28
28
|
import { defineComponent, PropType } from 'vue-demi'
|
|
29
|
-
import { DlMenu } from '
|
|
30
|
-
import
|
|
31
|
-
import { DlListItem } from '../DlListItem'
|
|
29
|
+
import { DlMenu, DlList } from '../../../../essential'
|
|
30
|
+
import { DlListItem } from '../../../../basic'
|
|
32
31
|
|
|
33
32
|
export default defineComponent({
|
|
34
33
|
components: {
|
package/src/components/{DlSmartSearch → compound/DlSearches/DlSmartSearch/utils}/highlightSyntax.ts
RENAMED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { operators } from '
|
|
2
|
-
import { ColorSchema } from '
|
|
3
|
-
import { Alias } from '../../hooks/use-suggestions'
|
|
4
|
-
import { SyntaxColorSchema } from './types'
|
|
1
|
+
import { operators, Alias } from '../../../../../hooks/use-suggestions'
|
|
2
|
+
import { ColorSchema, SyntaxColorSchema } from '../types'
|
|
5
3
|
|
|
6
4
|
let editor = document.getElementById('editor')
|
|
7
5
|
let styleModel: SyntaxColorSchema
|
package/src/components/{DlSmartSearch/utils.ts → compound/DlSearches/DlSmartSearch/utils/index.ts}
RENAMED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export * from './highlightSyntax'
|
|
2
|
+
|
|
3
|
+
import { dateIntervalPattern } from '../../../../../hooks/use-suggestions'
|
|
4
|
+
import { DateInterval } from '../../../DlDateTime/types'
|
|
3
5
|
|
|
4
6
|
export const isEndOfString = (str: string, pattern: RegExp): boolean => {
|
|
5
7
|
const trimmed = str.trim()
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
<slot name="before-options" />
|
|
163
163
|
</dl-item-section>
|
|
164
164
|
</dl-list-item>
|
|
165
|
-
<select-option
|
|
165
|
+
<dl-select-option
|
|
166
166
|
v-if="showAllItems"
|
|
167
167
|
:multiselect="multiselect"
|
|
168
168
|
:with-wave="withWave"
|
|
@@ -180,8 +180,8 @@
|
|
|
180
180
|
<template v-else>
|
|
181
181
|
{{ computedAllItemsLabel }}
|
|
182
182
|
</template>
|
|
183
|
-
</select-option>
|
|
184
|
-
<select-option
|
|
183
|
+
</dl-select-option>
|
|
184
|
+
<dl-select-option
|
|
185
185
|
v-for="option in options"
|
|
186
186
|
:key="getKeyForOption(option)"
|
|
187
187
|
clickable
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
: getOptionLabel(option)
|
|
217
217
|
}}
|
|
218
218
|
</template>
|
|
219
|
-
</select-option>
|
|
219
|
+
</dl-select-option>
|
|
220
220
|
<dl-list-item v-if="hasAfterOptions && !noOptions">
|
|
221
221
|
<dl-item-section>
|
|
222
222
|
<slot name="after-options" />
|
|
@@ -245,25 +245,21 @@
|
|
|
245
245
|
</template>
|
|
246
246
|
|
|
247
247
|
<script lang="ts">
|
|
248
|
-
import { InputSizes, TInputSizes } from '
|
|
249
|
-
import
|
|
250
|
-
import
|
|
251
|
-
import
|
|
252
|
-
import { DlListItem } from '../DlListItem'
|
|
253
|
-
import DlItemSection from '../DlItemSection.vue'
|
|
254
|
-
import { DlMenu } from '../DlMenu'
|
|
255
|
-
import DlTooltip from '../DlTooltip.vue'
|
|
248
|
+
import { InputSizes, TInputSizes } from '../../../utils/input-sizes'
|
|
249
|
+
import { DlListItem } from '../../basic'
|
|
250
|
+
import { DlTooltip, DlList, DlIcon, DlMenu } from '../../essential'
|
|
251
|
+
import { DlInfoErrorMessage, DlItemSection } from '../../shared'
|
|
256
252
|
import { defineComponent, isVue2, PropType } from 'vue-demi'
|
|
257
253
|
import {
|
|
258
254
|
getLabel,
|
|
259
255
|
getIconSize,
|
|
260
256
|
optionsValidator,
|
|
261
|
-
|
|
257
|
+
DlSelectOptionType,
|
|
262
258
|
getLabelOfSelectedOption
|
|
263
259
|
} from './utils'
|
|
264
|
-
import
|
|
260
|
+
import DlSelectOption from './components/DlSelectOption.vue'
|
|
265
261
|
import { isEqual } from 'lodash'
|
|
266
|
-
import { getColor } from '
|
|
262
|
+
import { getColor } from '../../../utils'
|
|
267
263
|
import { v4 } from 'uuid'
|
|
268
264
|
|
|
269
265
|
export default defineComponent({
|
|
@@ -275,7 +271,7 @@ export default defineComponent({
|
|
|
275
271
|
DlListItem,
|
|
276
272
|
DlMenu,
|
|
277
273
|
DlTooltip,
|
|
278
|
-
|
|
274
|
+
DlSelectOption
|
|
279
275
|
},
|
|
280
276
|
model: {
|
|
281
277
|
prop: 'modelValue',
|
|
@@ -314,8 +310,8 @@ export default defineComponent({
|
|
|
314
310
|
readonly: { type: Boolean, default: false },
|
|
315
311
|
emitValue: { type: Boolean, default: false }, // We emit the value from the option and compare with it as a modelvalue
|
|
316
312
|
options: {
|
|
317
|
-
type: Array as PropType<
|
|
318
|
-
default: ():
|
|
313
|
+
type: Array as PropType<DlSelectOptionType[]>,
|
|
314
|
+
default: (): DlSelectOptionType[] => [],
|
|
319
315
|
validator: optionsValidator
|
|
320
316
|
},
|
|
321
317
|
capitalizedOptions: { type: Boolean, default: false },
|
package/src/components/{DlSelect/SelectOption.vue → compound/DlSelect/components/DlSelectOption.vue}
RENAMED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
v-for="(child, index) in children"
|
|
76
76
|
:key="`${componentId}-${getValue(child)}-${index}`"
|
|
77
77
|
>
|
|
78
|
-
<select-option
|
|
78
|
+
<dl-select-option
|
|
79
79
|
:multiselect="multiselect"
|
|
80
80
|
:count="count"
|
|
81
81
|
clickable
|
|
@@ -98,17 +98,16 @@
|
|
|
98
98
|
|
|
99
99
|
<script lang="ts">
|
|
100
100
|
import { defineComponent } from 'vue-demi'
|
|
101
|
-
import { DlListItem } from '
|
|
102
|
-
import
|
|
103
|
-
import
|
|
104
|
-
import DlIcon from '../DlIcon.vue'
|
|
101
|
+
import { DlListItem } from '../../../basic'
|
|
102
|
+
import { DlIcon, DlCheckbox } from '../../../essential'
|
|
103
|
+
import { DlItemSection } from '../../../shared'
|
|
105
104
|
import { v4 } from 'uuid'
|
|
106
105
|
import { debounce } from 'lodash'
|
|
107
106
|
|
|
108
107
|
const ValueTypes = [Array, Boolean, String, Number, Object, Function]
|
|
109
108
|
|
|
110
109
|
export default defineComponent({
|
|
111
|
-
name: '
|
|
110
|
+
name: 'DlSelectOption',
|
|
112
111
|
components: {
|
|
113
112
|
DlListItem,
|
|
114
113
|
DlItemSection,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TInputSizes } from '
|
|
1
|
+
import { TInputSizes } from '../../../utils/input-sizes'
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type DlSelectOptionType = string | number | Record<string, any>
|
|
4
4
|
|
|
5
5
|
export const getLabel = (option: any) => {
|
|
6
6
|
if (typeof option === 'object' && 'label' in option) {
|
|
@@ -18,7 +18,7 @@ const ICON_SIZES = {
|
|
|
18
18
|
|
|
19
19
|
export const getLabelOfSelectedOption = (
|
|
20
20
|
valueToSearch: string,
|
|
21
|
-
options:
|
|
21
|
+
options: DlSelectOptionType[]
|
|
22
22
|
) => {
|
|
23
23
|
if (options.length === 0) return ''
|
|
24
24
|
|
|
@@ -32,7 +32,7 @@ export const getLabelOfSelectedOption = (
|
|
|
32
32
|
|
|
33
33
|
export const getIconSize = (size: TInputSizes) => ICON_SIZES[size] ?? '14px'
|
|
34
34
|
|
|
35
|
-
export const optionsValidator = (opts:
|
|
35
|
+
export const optionsValidator = (opts: DlSelectOptionType[]) => {
|
|
36
36
|
return opts.every((opt: string | any) => {
|
|
37
37
|
if (typeof opt === 'string' || typeof opt === 'number') {
|
|
38
38
|
return true
|
|
@@ -95,8 +95,9 @@
|
|
|
95
95
|
<script lang="ts">
|
|
96
96
|
import { defineComponent } from 'vue-demi'
|
|
97
97
|
import { DlSliderBase, DlSliderInput } from './components/'
|
|
98
|
-
import { DlButton
|
|
99
|
-
import {
|
|
98
|
+
import { DlButton } from '../../basic'
|
|
99
|
+
import { DlIcon, DlTooltip } from '../../essential'
|
|
100
|
+
import { getColor, between } from '../../../utils'
|
|
100
101
|
import { v4 } from 'uuid'
|
|
101
102
|
|
|
102
103
|
export default defineComponent({
|
|
@@ -49,8 +49,8 @@ import {
|
|
|
49
49
|
position,
|
|
50
50
|
keyCodes,
|
|
51
51
|
between
|
|
52
|
-
} from '
|
|
53
|
-
import touchPanDirective from '
|
|
52
|
+
} from '../../../../utils'
|
|
53
|
+
import touchPanDirective from '../../../../directives/TouchPan'
|
|
54
54
|
|
|
55
55
|
export default defineComponent({
|
|
56
56
|
name: 'DlSliderBase',
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
Ref
|
|
7
7
|
} from 'vue-demi'
|
|
8
8
|
|
|
9
|
-
import { useFormProps, FormProps } from '
|
|
9
|
+
import { useFormProps, FormProps } from '../../../hooks/useForm'
|
|
10
10
|
|
|
11
|
-
import { includes, keyCodes, between, position } from '
|
|
11
|
+
import { includes, keyCodes, between, position } from '../../../utils'
|
|
12
12
|
|
|
13
13
|
export interface SliderProps extends FormProps {
|
|
14
14
|
text: string
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
</template>
|
|
56
56
|
<script lang="ts">
|
|
57
57
|
import { defineComponent, PropType } from 'vue-demi'
|
|
58
|
-
import DlStepperContainer from './DlStepperContainer.vue'
|
|
59
|
-
import DlStepperHeader from '
|
|
60
|
-
import DlStepperFooter from '
|
|
61
|
-
import DlStepperSidebar from '
|
|
62
|
-
import DlStepperContent from '
|
|
63
|
-
import { StepState } from './interfaces'
|
|
64
|
-
import { Step } from './
|
|
65
|
-
import { getColor } from '
|
|
58
|
+
import DlStepperContainer from './components/DlStepperContainer.vue'
|
|
59
|
+
import DlStepperHeader from './components/DlStepperHeader.vue'
|
|
60
|
+
import DlStepperFooter from './components/DlStepperFooter.vue'
|
|
61
|
+
import DlStepperSidebar from './components/DlStepperSidebar.vue'
|
|
62
|
+
import DlStepperContent from './components/DlStepperContent.vue'
|
|
63
|
+
import { StepState } from './models/interfaces'
|
|
64
|
+
import { Step } from './models'
|
|
65
|
+
import { getColor } from '../../../utils'
|
|
66
66
|
import { v4 } from 'uuid'
|
|
67
67
|
|
|
68
68
|
export default defineComponent({
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
|
|
36
36
|
<script lang="ts">
|
|
37
37
|
import { defineComponent } from 'vue-demi'
|
|
38
|
-
import DlChip from '
|
|
39
|
-
import DlTypography from '
|
|
38
|
+
import { DlChip } from '../../../basic'
|
|
39
|
+
import { DlTypography } from '../../../essential'
|
|
40
40
|
|
|
41
41
|
export default defineComponent({
|
|
42
42
|
name: 'DlStepperContent',
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
</template>
|
|
31
31
|
<script lang="ts">
|
|
32
32
|
import { defineComponent } from 'vue-demi'
|
|
33
|
-
import { DlButton } from '
|
|
34
|
-
import { ButtonState, ButtonPart, ButtonColors } from '
|
|
33
|
+
import { DlButton } from '../../../basic'
|
|
34
|
+
import { ButtonState, ButtonPart, ButtonColors } from '../../../basic/types'
|
|
35
35
|
|
|
36
36
|
export default defineComponent({
|
|
37
37
|
name: 'DlStepperFooter',
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
<script lang="ts">
|
|
21
21
|
import { defineComponent } from 'vue-demi'
|
|
22
|
-
import {
|
|
22
|
+
import { DlButton } from '../../../basic'
|
|
23
|
+
import { DlTypography } from '../../../essential'
|
|
23
24
|
|
|
24
25
|
export default defineComponent({
|
|
25
26
|
name: 'DlStepperHeader',
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
|
|
34
34
|
<script lang="ts">
|
|
35
35
|
import { defineComponent, PropType } from 'vue-demi'
|
|
36
|
-
import { DlListItem } from '
|
|
37
|
-
import DlItemSection from '
|
|
38
|
-
import DlList from '
|
|
39
|
-
import { Step } from '
|
|
36
|
+
import { DlListItem } from '../../../basic'
|
|
37
|
+
import { DlItemSection } from '../../../shared'
|
|
38
|
+
import { DlList } from '../../../essential'
|
|
39
|
+
import { Step } from '../models'
|
|
40
40
|
|
|
41
41
|
export default defineComponent({
|
|
42
42
|
name: 'DlStepperSidebar',
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<script lang="ts">
|
|
7
7
|
import { v4 } from 'uuid'
|
|
8
8
|
import { defineComponent, VNode, isVue2 } from 'vue-demi'
|
|
9
|
-
import { textSlot } from '
|
|
9
|
+
import { textSlot } from '../../../utils/render'
|
|
10
10
|
|
|
11
11
|
export default defineComponent({
|
|
12
12
|
name: 'DlTabPanels',
|