@dataloop-ai/components 0.18.0 → 0.18.2
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 +6 -3
- package/src/App.vue +5 -227
- package/src/assets/constants.scss +2 -1
- package/src/assets/globals.scss +21 -0
- package/src/components/basic/DlAccordion/DlAccordion.vue +26 -4
- package/src/components/basic/DlAccordion/components/AccordionHeader.vue +2 -1
- package/src/components/basic/DlAvatar/DlAvatar.vue +1 -1
- package/src/components/basic/DlButton/DlButton.vue +115 -25
- package/src/components/basic/DlButton/utils.ts +45 -2
- package/src/components/basic/DlChip/DlChip.vue +3 -7
- package/src/components/basic/DlChip/utils.ts +4 -4
- package/src/components/basic/DlContainer/DlContainer.vue +70 -0
- package/src/components/basic/DlContainer/index.ts +3 -0
- package/src/components/basic/DlEmptyState/DlEmptyState.vue +282 -0
- package/src/components/basic/DlEmptyState/index.ts +2 -0
- package/src/components/basic/DlEmptyState/types.ts +20 -0
- package/src/components/basic/DlGrid/DlGrid.vue +163 -0
- package/src/components/basic/DlGrid/index.ts +4 -0
- package/src/components/basic/DlGrid/types.ts +5 -0
- package/src/components/basic/DlKpi/components/KpiInfo.vue +2 -1
- package/src/components/basic/DlListItem/DlListItem.vue +96 -66
- package/src/components/basic/DlListItem/utils.ts +0 -3
- package/src/components/basic/DlPanelContainer/DlPanelContainer.vue +37 -13
- package/src/components/basic/DlPopup/DlPopup.vue +58 -11
- package/src/components/basic/DlPopup/components/PopupHeader.vue +11 -6
- package/src/components/basic/DlProgressChart/DlProgressChart.vue +2 -1
- package/src/components/basic/DlWidget/DlWidget.vue +273 -141
- package/src/components/basic/DlWidget/index.ts +1 -3
- package/src/components/basic/DlWidget/utils.ts +90 -8
- package/src/components/basic/index.ts +4 -2
- package/src/components/basic/types.ts +2 -0
- package/src/components/compound/DlCard/DlCard.vue +796 -0
- package/src/components/compound/DlCard/components/DescriptionModal.vue +137 -0
- package/src/components/compound/DlCard/types.ts +38 -0
- package/src/components/compound/DlCharts/charts/DlBarChart/DlBarChart.vue +39 -4
- package/src/components/compound/DlCharts/charts/DlColumnChart/DlColumnChart.vue +128 -36
- package/src/components/compound/DlCharts/charts/DlConfusionMatrix/DlConfusionMatrix.vue +167 -87
- package/src/components/compound/DlCharts/charts/DlConfusionMatrix/utils.ts +2 -1
- package/src/components/compound/DlCharts/charts/DlDoughnutChart/DlDoughnutChart.vue +44 -3
- package/src/components/compound/DlCharts/charts/DlDoughnutChart/DlDoughnutChartWidget.vue +1 -2
- package/src/components/compound/DlCharts/charts/DlDoughnutChart/components/DlDoughnutChartLegend.vue +9 -18
- package/src/components/compound/DlCharts/charts/DlLineChart/DlLineChart.vue +48 -9
- package/src/components/compound/DlCharts/charts/DlScatterChart/DlScatterChart.vue +667 -0
- package/src/components/compound/DlCharts/charts/DlScatterChart/index.ts +2 -0
- package/src/components/compound/DlCharts/charts/index.ts +1 -0
- package/src/components/compound/DlCharts/components/DlBrush.vue +3 -2
- package/src/components/compound/DlCharts/components/DlChartLabels.vue +2 -1
- package/src/components/compound/DlCharts/components/DlChartScrollBar.vue +1 -0
- package/src/components/compound/DlCharts/types/props.ts +5 -1
- package/src/components/compound/DlCharts/utils.ts +1 -1
- package/src/components/compound/DlCodeEditor/DlCodeEditor.vue +173 -0
- package/src/components/compound/DlCodeEditor/README.md +11 -0
- package/src/components/compound/DlCodeEditor/components/CodeEditor.vue +705 -0
- package/src/components/compound/DlCodeEditor/index.ts +3 -0
- package/src/components/compound/DlCodeEditor/styles/themes-base16.css +12809 -0
- package/src/components/compound/DlCodeEditor/styles/themes.css +3999 -0
- package/src/components/compound/DlCodeEditor/types.ts +21 -0
- package/src/components/compound/DlDateTime/DlDatePicker/DlDatePicker.vue +9 -1
- package/src/components/compound/DlDateTime/DlDatePicker/components/DlCalendar.vue +4 -2
- package/src/components/compound/DlDateTime/DlDatePicker/components/DlMonthCalendar.vue +2 -1
- package/src/components/compound/DlDateTime/DlDateTimeRange/{DlCardSidebar.vue → CardSidebar.vue} +10 -11
- package/src/components/compound/DlDateTime/DlDateTimeRange/DlDateTimeRange.vue +18 -9
- package/src/components/compound/DlDateTime/DlTimePicker/DlTimePicker.vue +2 -2
- package/src/components/compound/DlDialogBox/DlDialogBox.vue +74 -15
- package/src/components/compound/DlDialogBox/components/DlDialogBoxFooter.vue +1 -1
- package/src/components/compound/DlDialogBox/components/DlDialogBoxHeader.vue +9 -7
- package/src/components/compound/DlDropdownButton/DlDropdownButton.vue +13 -4
- package/src/components/compound/DlInput/DlInput.vue +80 -17
- package/src/components/compound/DlJsonEditor/DlJsonEditor.vue +42 -219
- package/src/components/compound/DlOptionGroup/DlOptionGroup.vue +16 -17
- package/src/components/compound/DlOptionGroup/components/MenuItemWrapper.vue +2 -2
- package/src/components/compound/DlPagination/DlPagination.vue +1 -1
- package/src/components/compound/DlPagination/components/PaginationLegend.vue +0 -2
- package/src/components/compound/DlPagination/components/RowsSelector.vue +0 -2
- package/src/components/compound/DlRange/DlRange.vue +3 -2
- package/src/components/compound/DlSearches/DlSearch/DlSearch.vue +12 -5
- package/src/components/compound/DlSearches/DlSmartSearch/DlSmartSearch.vue +413 -97
- package/src/components/compound/DlSearches/DlSmartSearch/components/DlSmartSearchFilters.vue +4 -1
- package/src/components/compound/DlSearches/DlSmartSearch/components/DlSmartSearchInput.vue +100 -39
- package/src/components/compound/DlSearches/DlSmartSearch/components/DlSuggestionsDropdown.vue +12 -7
- package/src/components/compound/DlSearches/DlSmartSearch/components/FiltersQuery.vue +5 -6
- package/src/components/compound/DlSearches/DlSmartSearch/types.ts +14 -0
- package/src/components/compound/DlSearches/DlSmartSearch/utils/highlightSyntax.ts +10 -6
- package/src/components/compound/DlSearches/DlSmartSearch/utils/index.ts +172 -48
- package/src/components/compound/DlSelect/DlSelect.vue +264 -130
- package/src/components/compound/DlSelect/utils.ts +4 -1
- package/src/components/compound/DlSlider/DlSlider.vue +10 -2
- package/src/components/compound/DlSlider/components/DlSliderBase.vue +3 -3
- package/src/components/compound/DlSlider/components/DlSliderInput.vue +17 -26
- package/src/components/compound/DlSlider/sliderStyles.scss +5 -1
- package/src/components/compound/DlSlider/useSlider.ts +2 -2
- package/src/components/compound/DlSlider/utils.ts +2 -2
- package/src/components/compound/DlStepper/DlStepper.vue +46 -4
- package/src/components/compound/DlStepper/components/DlStepperContent.vue +6 -2
- package/src/components/compound/DlStepper/components/DlStepperFooter.vue +12 -0
- package/src/components/compound/DlStepper/components/DlStepperSidebar.vue +24 -11
- package/src/components/compound/DlStepper/models/Step.ts +37 -8
- package/src/components/compound/DlStepper/models/Stepper.ts +108 -15
- package/src/components/compound/DlStepper/models/interfaces.ts +2 -1
- package/src/components/compound/DlTable/DlTable.vue +49 -14
- package/src/components/compound/DlTable/components/DlTd.vue +9 -9
- package/src/components/compound/DlTable/components/DlTh.vue +3 -2
- package/src/components/compound/DlTable/hooks/tableColumnSelection.ts +35 -40
- package/src/components/compound/DlTable/hooks/tableFilter.ts +33 -21
- package/src/components/compound/DlTable/hooks/tablePagination.ts +18 -18
- package/src/components/compound/DlTable/hooks/tableRowExpand.ts +2 -1
- package/src/components/compound/DlTable/hooks/tableRowSelection.ts +0 -1
- package/src/components/compound/DlTable/hooks/tableSort.ts +52 -47
- package/src/components/compound/DlTable/styles/dl-table-styles.scss +8 -0
- package/src/components/compound/DlTabs/DlTabs.vue +83 -31
- package/src/components/compound/DlTabs/components/DlTab.vue +14 -4
- package/src/components/compound/DlTabs/components/TabsWrapper.vue +32 -27
- package/src/components/compound/DlThumbnailGallery/DlThumbnailGallery.vue +268 -0
- package/src/components/compound/DlThumbnailGallery/index.ts +2 -0
- package/src/components/compound/DlThumbnailGallery/types.ts +11 -0
- package/src/components/compound/DlToast/api/useToast.ts +42 -1
- package/src/components/compound/DlToast/components/ToastComponent.vue +24 -32
- package/src/components/compound/DlToast/types.ts +52 -0
- package/src/components/compound/DlTreeTable/DlTreeTable.vue +1293 -0
- package/src/components/compound/DlTreeTable/components/DlTdTree.vue +119 -0
- package/src/components/compound/DlTreeTable/components/DlTrTree.vue +52 -0
- package/src/components/compound/DlTreeTable/index.ts +3 -0
- package/src/components/compound/DlTreeTable/types.ts +1 -0
- package/src/components/compound/DlTreeTable/utils/convertToNestedObject.ts +51 -0
- package/src/components/compound/DlTreeTable/utils/flatTreeData.ts +19 -0
- package/src/components/compound/DlTreeTable/utils/getFromChildren.ts +39 -0
- package/src/components/compound/DlTreeTable/utils/trSpacing.ts +13 -0
- package/src/components/compound/DlTreeTable/utils/treeTableRowSelection.ts +184 -0
- package/src/components/compound/index.ts +14 -1
- package/src/components/compound/types.ts +2 -0
- package/src/components/essential/DlBadge/DlBadge.vue +3 -3
- package/src/components/essential/DlCheckbox/DlCheckbox.vue +10 -7
- package/src/components/essential/DlEllipsis/DlEllipsis.vue +141 -0
- package/src/components/essential/DlIcon/DlIcon.vue +5 -5
- package/src/components/essential/DlLabel/DlLabel.vue +190 -0
- package/src/components/essential/DlLabel/index.ts +2 -0
- package/src/components/essential/DlList/DlList.vue +3 -3
- package/src/components/essential/DlMenu/DlMenu.vue +41 -22
- package/src/components/essential/DlMenu/utils.ts +8 -7
- package/src/components/essential/DlPageLayout/DlPageLayout.vue +90 -0
- package/src/components/essential/DlPageLayout/index.ts +2 -0
- package/src/components/essential/DlProgressBar/DlProgressBar.vue +1 -1
- package/src/components/essential/DlRadio/DlRadio.vue +10 -5
- package/src/components/essential/DlSeparator/DlSeparator.vue +2 -2
- package/src/components/essential/DlSpinner/index.ts +1 -13
- package/src/components/essential/DlSpinner/styles/spinnerStyles.scss +7 -0
- package/src/components/essential/DlSwitch/DlSwitch.vue +6 -3
- package/src/components/essential/DlTextArea/DlTextArea.vue +212 -7
- package/src/components/essential/DlThemeProvider/DlThemeProvider.vue +6 -0
- package/src/components/essential/DlTypography/DlTypography.vue +7 -1
- package/src/components/essential/index.ts +3 -2
- package/src/components/shared/DlInfoErrorMessage/DlInfoErrorMessage.vue +1 -1
- package/src/components/{essential → shared}/DlTooltip/DlTooltip.vue +26 -19
- package/src/components/shared/DlVirtualScroll/DlVirtualScroll.vue +106 -43
- package/src/components/shared/DlVirtualScroll/useVirtualScroll.ts +28 -4
- package/src/components/shared/index.ts +1 -0
- package/src/components/types.ts +2 -0
- package/src/demos/BarChartDemo.vue +59 -2
- package/src/demos/ColumnChartDemo.vue +67 -2
- package/src/demos/DlAccordionDemo.vue +92 -43
- package/src/demos/DlAlertDemo.vue +14 -0
- package/src/demos/DlButtonDemo.vue +41 -4
- package/src/demos/DlCardDemo.vue +156 -19
- package/src/demos/DlChartDoughnutDemo.vue +49 -2
- package/src/demos/DlCheckboxDemo.vue +28 -3
- package/src/demos/DlCodeEditor/DlCodeEditorDemo.vue +247 -0
- package/src/demos/DlCodeEditor/index.ts +2 -0
- package/src/demos/DlConfusionMatrixDemo.vue +93 -37
- package/src/demos/DlDemoPage.vue +235 -0
- package/src/demos/DlDialogBoxDemo.vue +56 -51
- package/src/demos/DlDropdownButtonDemo.vue +35 -27
- package/src/demos/DlEmptyStateDemo.vue +81 -0
- package/src/demos/DlGridDemo.vue +40 -0
- package/src/demos/DlInputDemo.vue +21 -1
- package/src/demos/DlJsonEditorDemo.vue +59 -0
- package/src/demos/DlLabelDemo.vue +208 -0
- package/src/demos/DlLineChartDemo.vue +50 -2
- package/src/demos/DlListDemo.vue +12 -9
- package/src/demos/DlMenuDemo.vue +147 -20
- package/src/demos/DlPageLayoutDemo.vue +146 -0
- package/src/demos/DlPanelContainerDemo.vue +113 -2
- package/src/demos/DlPopupDemo.vue +82 -1
- package/src/demos/DlRadioDemo.vue +16 -1
- package/src/demos/DlScatterChartDemo.vue +161 -0
- package/src/demos/DlSearchDemo.vue +9 -0
- package/src/demos/DlSelectDemo.vue +124 -27
- package/src/demos/DlSpinnerDemo.vue +0 -2
- package/src/demos/DlStepperDemo/DlStepperDemo.vue +5 -1
- package/src/demos/DlStepperDemo/EmptyStateStepper.vue +149 -0
- package/src/demos/DlStepperDemo/SimpleStepper.vue +4 -0
- package/src/demos/DlStepperDemo/steps/GeneralStep.vue +1 -0
- package/src/demos/DlSwitchDemo.vue +12 -0
- package/src/demos/DlTableDemo.vue +84 -5
- package/src/demos/DlTabsDemo.vue +92 -3
- package/src/demos/DlTextAreaDemo.vue +14 -17
- package/src/demos/DlThumbnailGalleryDemo.vue +99 -0
- package/src/demos/DlToastDemo.vue +3 -9
- package/src/demos/DlTooltipDemo.vue +66 -2
- package/src/demos/DlTreeTableDemo.vue +694 -0
- package/src/demos/DlVirtualScrollDemo.vue +3 -12
- package/src/demos/DlWidgetDemo.vue +252 -61
- package/src/demos/SmartSearchDemo/DlSmartSearchDemo.vue +151 -32
- package/src/demos/index.ts +23 -4
- package/src/hooks/use-anchor.ts +15 -17
- package/src/hooks/use-arrow-navigation.ts +64 -21
- package/src/hooks/use-model-toggle.ts +14 -16
- package/src/hooks/use-portal.ts +9 -3
- package/src/hooks/use-scroll-target.ts +2 -4
- package/src/hooks/use-size-observer.ts +3 -2
- package/src/hooks/use-suggestions.ts +239 -49
- package/src/hooks/use-transition.ts +10 -4
- package/src/index.ts +22 -1
- package/src/layouts/DlDatasetBrowser/DemoComponents/DatasetFooter.vue +78 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/DatasetHeader.vue +22 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/DatasetLeftDrawer.vue +96 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/DatasetMainContent.vue +51 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/DatasetRightDrawer.vue +88 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/MainContent/ActionsMenu.vue +70 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/MainContent/AutomationMenu.vue +106 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/MainContent/CardView.vue +101 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/MainContent/CardViewGallery.vue +141 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/MainContent/CardViewTable.vue +193 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/MainContent/EmptyState/LayoutEmptyState.vue +227 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/MainContent/EmptyState/UploadData.vue +106 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/MainContent/MainContentImages.vue +540 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/MainContent/MainContentNav.vue +329 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/NavbarKpi.vue +84 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/NavbarSearch.vue +132 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/SearchFilterMenu.vue +19 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/filters/AddFilter.vue +212 -0
- package/src/layouts/DlDatasetBrowser/DemoComponents/types/imageMetadata.ts +28 -0
- package/src/layouts/DlDatasetBrowser/DlDatasetBrowser.vue +42 -0
- package/src/layouts/DlStudioLayout/DlStudioLayout.vue +42 -0
- package/src/layouts/DlStudioLayout/components/Demo/LeftMenuContent.vue +23 -0
- package/src/layouts/DlStudioLayout/components/Demo/StudioFooter.vue +25 -0
- package/src/layouts/DlStudioLayout/components/Demo/StudioHeader.vue +121 -0
- package/src/layouts/DlStudioLayout/components/Demo/StudioLeftDrawer.vue +245 -0
- package/src/layouts/DlStudioLayout/components/Demo/StudioMainContent.vue +31 -0
- package/src/layouts/DlStudioLayout/components/Demo/StudioTabsMenu.vue +117 -0
- package/src/layouts/DlStudioLayout/components/Demo/TabMenu/FilterMenu.vue +62 -0
- package/src/layouts/DlStudioLayout/components/Demo/TabMenu/TabMenuAnnotations.vue +98 -0
- package/src/layouts/DlStudioLayout/components/Demo/TabMenu/TabMenuItem.vue +66 -0
- package/src/layouts/DlStudioLayout/components/LayoutNavbar.vue +24 -0
- package/src/layouts/DlStudioLayout/components/ListAutocomplete.vue +149 -0
- package/src/layouts/DlStudioLayout/components/NavigationDrawer.vue +147 -0
- package/src/layouts/DlStudioLayout/index.ts +2 -0
- package/src/layouts/DlStudioLayout/types/HorizontalItems.ts +9 -0
- package/src/layouts/DlStudioLayout/types/VerticalItems.ts +10 -0
- package/src/simple-code-editor.d.ts +1 -0
- package/src/utils/click-outside.ts +1 -1
- package/src/utils/dom.ts +5 -5
- package/src/utils/events.ts +3 -3
- package/src/utils/global-nodes.ts +2 -2
- package/src/utils/input-sizes.ts +5 -2
- package/src/utils/is-ellipsis-active.ts +4 -1
- package/src/utils/parse-smart-query.ts +209 -111
- package/src/utils/portal.ts +5 -5
- package/src/utils/position-engine.ts +7 -7
- package/src/utils/render.ts +1 -1
- package/src/utils/scroll.ts +2 -2
- package/src/utils/selection.ts +3 -3
- package/vite.config.ts +9 -1
- package/src/components/basic/DlCard/DlCard.vue +0 -241
- package/src/components/basic/DlCard/types.ts +0 -20
- package/src/components/basic/DlEllipsis/DlEllipsis.vue +0 -114
- package/src/components/basic/DlWidget/DlGrid.vue +0 -33
- package/src/components/basic/DlWidget/DlGridRow.vue +0 -32
- package/src/components/compound/DlSearches/DlSmartSearch/utils/utils.ts +0 -124
- package/src/components/compound/DlToast/utils/config.ts +0 -17
- package/src/components/essential/DlTextHolder/DlTextHolder.vue +0 -65
- package/src/components/essential/DlTextHolder/index.ts +0 -2
- package/src/demos/DlTextHolderDemo.vue +0 -42
- package/src/utils/swapNodes.ts +0 -30
- /package/src/components/{basic → compound}/DlCard/index.ts +0 -0
- /package/src/components/compound/DlDateTime/DlDateTimeRange/{DlDateInput.vue → DateInput.vue} +0 -0
- /package/src/components/{basic → essential}/DlEllipsis/index.ts +0 -0
- /package/src/components/{essential → shared}/DlTooltip/index.ts +0 -0
|
@@ -1,57 +1,106 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
3
|
+
<div style="width: 100%">
|
|
4
|
+
<dl-accordion
|
|
5
|
+
v-model="isAccordionOpen"
|
|
6
|
+
title="Controlled with 'Animal Farm' quote and overflowing title (text to trigger overflowing)"
|
|
7
|
+
>
|
|
8
|
+
Some of the animals remembered -- or thought they remembered --
|
|
9
|
+
that the Sixth Commandment decreed, 'No animal shall kill any
|
|
10
|
+
other animal.' And though no one cared to mention it in the
|
|
11
|
+
hearing of the pigs or the dogs, it was felt that the killings
|
|
12
|
+
which had taken place did not square with this.
|
|
13
|
+
</dl-accordion>
|
|
14
|
+
</div>
|
|
15
|
+
<div style="width: 100%">
|
|
16
|
+
<dl-accordion
|
|
17
|
+
additional-info="Some additional info"
|
|
18
|
+
title="Uncontrolled with Lorem Ipsum"
|
|
19
|
+
:right-side="true"
|
|
20
|
+
font-size="12px"
|
|
21
|
+
title-color="dl-color-medium"
|
|
22
|
+
>
|
|
23
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
|
|
24
|
+
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
|
|
25
|
+
enim ad minim veniam, quis nostrud exercitation ullamco laboris
|
|
26
|
+
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
|
|
27
|
+
in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
28
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident,
|
|
29
|
+
sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
30
|
+
</dl-accordion>
|
|
31
|
+
</div>
|
|
32
|
+
<div style="width: 100%">
|
|
33
|
+
<dl-accordion>
|
|
34
|
+
<template #header>
|
|
35
|
+
Custom header content
|
|
36
|
+
<dl-switch
|
|
37
|
+
v-model="switchModel"
|
|
38
|
+
:value="2"
|
|
39
|
+
/>
|
|
40
|
+
</template>
|
|
41
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
|
|
42
|
+
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
|
|
43
|
+
enim ad minim veniam, quis nostrud exercitation ullamco laboris
|
|
44
|
+
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
|
|
45
|
+
in reprehenderit in voluptate velit esse cillum dolore eu fugiat
|
|
46
|
+
nulla pariatur. Excepteur sint occaecat cupidatat non proident,
|
|
47
|
+
sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
48
|
+
</dl-accordion>
|
|
49
|
+
</div>
|
|
50
|
+
<div style="width: 100%">
|
|
51
|
+
<dl-accordion
|
|
52
|
+
v-model="isAccordionOpen"
|
|
53
|
+
title="Empty State Component"
|
|
54
|
+
is-empty
|
|
55
|
+
:empty-state-props="{
|
|
56
|
+
responsive: true,
|
|
57
|
+
style: 'max-width: 300px;',
|
|
58
|
+
align: 'left',
|
|
59
|
+
bgSize: '200px',
|
|
60
|
+
bgImage: `url(https://raw.githubusercontent.com/dataloop-ai/icons/main/assets/usage.svg)`,
|
|
61
|
+
title: 'Lorem ipsum',
|
|
62
|
+
subtitle:
|
|
63
|
+
'Lorem ipsum dolor sit amet consectetur. Senectus condimentum dolor sit',
|
|
64
|
+
info: 'To learn more about this analytics, read our documentation.'
|
|
65
|
+
}"
|
|
66
|
+
>
|
|
67
|
+
<template #links="">
|
|
68
|
+
<div style="display: flex; gap: 15px; flex-wrap: wrap">
|
|
69
|
+
<dl-button
|
|
70
|
+
padding="0px"
|
|
71
|
+
icon="icon-dl-sdk-documentation"
|
|
72
|
+
flat
|
|
73
|
+
uppercase
|
|
74
|
+
label="SDK"
|
|
75
|
+
/>
|
|
76
|
+
<dl-button
|
|
77
|
+
padding="0px"
|
|
78
|
+
icon="icon-dl-file"
|
|
79
|
+
flat
|
|
80
|
+
label="Documentation"
|
|
81
|
+
/>
|
|
82
|
+
<dl-button
|
|
83
|
+
padding="0px"
|
|
84
|
+
icon="icon-dl-youtube"
|
|
85
|
+
flat
|
|
86
|
+
label="Video"
|
|
87
|
+
/>
|
|
88
|
+
</div>
|
|
89
|
+
</template>
|
|
90
|
+
</dl-accordion>
|
|
91
|
+
</div>
|
|
44
92
|
</div>
|
|
45
93
|
</template>
|
|
46
94
|
|
|
47
95
|
<script lang="ts">
|
|
48
|
-
import { DlAccordion, DlSwitch } from '../components'
|
|
96
|
+
import { DlAccordion, DlSwitch, DlButton } from '../components'
|
|
49
97
|
import { defineComponent } from 'vue-demi'
|
|
50
98
|
|
|
51
99
|
export default defineComponent({
|
|
52
100
|
components: {
|
|
53
101
|
DlAccordion,
|
|
54
|
-
DlSwitch
|
|
102
|
+
DlSwitch,
|
|
103
|
+
DlButton
|
|
55
104
|
},
|
|
56
105
|
data() {
|
|
57
106
|
return {
|
|
@@ -59,6 +59,20 @@
|
|
|
59
59
|
>
|
|
60
60
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
|
|
61
61
|
</DlAlert>
|
|
62
|
+
<dl-alert
|
|
63
|
+
style="margin-top: 20px"
|
|
64
|
+
fluid
|
|
65
|
+
type="warning"
|
|
66
|
+
>
|
|
67
|
+
this is an annoying message with link, this is an annoying message
|
|
68
|
+
with linkthis is an annoying message with linkthis is an annoying
|
|
69
|
+
message with linkthis is an annoying message with linkthis is an
|
|
70
|
+
annoying message with linkthis is an annoying message with linkthis
|
|
71
|
+
is an annoying message with link
|
|
72
|
+
<span>
|
|
73
|
+
Please
|
|
74
|
+
<dl-link color="dl-color-link">Contact us</dl-link>.</span>
|
|
75
|
+
</dl-alert>
|
|
62
76
|
</div>
|
|
63
77
|
</template>
|
|
64
78
|
|
|
@@ -194,6 +194,33 @@
|
|
|
194
194
|
Disabled
|
|
195
195
|
</DlButton>
|
|
196
196
|
</div>
|
|
197
|
+
<div
|
|
198
|
+
style="
|
|
199
|
+
display: flex;
|
|
200
|
+
justify-content: center;
|
|
201
|
+
flex-direction: column;
|
|
202
|
+
"
|
|
203
|
+
>
|
|
204
|
+
<h3>Button keeping its active state with menu</h3>
|
|
205
|
+
<dl-button
|
|
206
|
+
:active="activeButtonState"
|
|
207
|
+
@click="activeButtonState = !activeButtonState"
|
|
208
|
+
>
|
|
209
|
+
{{ activeButtonState ? 'Close' : 'Open' }}
|
|
210
|
+
<dl-menu
|
|
211
|
+
:offset="[0, 5]"
|
|
212
|
+
anchor="bottom middle"
|
|
213
|
+
self="top middle"
|
|
214
|
+
:model-value="!activeButtonState"
|
|
215
|
+
>
|
|
216
|
+
<div
|
|
217
|
+
style="width: 100px; height: 100px; text-align: center"
|
|
218
|
+
>
|
|
219
|
+
Menu
|
|
220
|
+
</div>
|
|
221
|
+
</dl-menu>
|
|
222
|
+
</dl-button>
|
|
223
|
+
</div>
|
|
197
224
|
<div>
|
|
198
225
|
<h3>With badge</h3>
|
|
199
226
|
|
|
@@ -257,14 +284,23 @@
|
|
|
257
284
|
</div>
|
|
258
285
|
</dl-button>
|
|
259
286
|
</div>
|
|
287
|
+
<div>
|
|
288
|
+
<h3>Shaded and outlined</h3>
|
|
289
|
+
<dl-button
|
|
290
|
+
:active="activeButtonState"
|
|
291
|
+
icon="icon-dl-search"
|
|
292
|
+
label="test me"
|
|
293
|
+
shaded
|
|
294
|
+
outlined
|
|
295
|
+
/>
|
|
296
|
+
</div>
|
|
260
297
|
</div>
|
|
261
298
|
</template>
|
|
262
299
|
|
|
263
300
|
<script lang="ts">
|
|
264
|
-
import { defineComponent, reactive } from 'vue-demi'
|
|
265
|
-
import { DlButton, DlBadge, DlIcon } from '../components'
|
|
301
|
+
import { defineComponent, reactive, ref } from 'vue-demi'
|
|
302
|
+
import { DlButton, DlBadge, DlIcon, DlMenu } from '../components'
|
|
266
303
|
import { ButtonSizes } from '../components/basic/DlButton/utils'
|
|
267
|
-
import DlMenu from '../components/essential/DlMenu/DlMenu.vue'
|
|
268
304
|
import DlList from '../components/essential/DlList/DlList.vue'
|
|
269
305
|
import DlListItem from '../components/basic/DlListItem/DlListItem.vue'
|
|
270
306
|
|
|
@@ -280,9 +316,10 @@ export default defineComponent({
|
|
|
280
316
|
},
|
|
281
317
|
setup() {
|
|
282
318
|
const buttons = reactive<ButtonSizes[]>(['s', 'm', 'l', 'xl'])
|
|
319
|
+
const activeButtonState = ref(false)
|
|
283
320
|
|
|
284
321
|
const log = (e: Event) => console.log(e)
|
|
285
|
-
return { buttons, log }
|
|
322
|
+
return { buttons, log, activeButtonState }
|
|
286
323
|
}
|
|
287
324
|
})
|
|
288
325
|
</script>
|
package/src/demos/DlCardDemo.vue
CHANGED
|
@@ -4,43 +4,180 @@
|
|
|
4
4
|
:image="image"
|
|
5
5
|
:text="text"
|
|
6
6
|
:title="title"
|
|
7
|
-
:
|
|
8
|
-
:links="links"
|
|
7
|
+
:links="interactiveProps.links"
|
|
9
8
|
/>
|
|
9
|
+
<div>Card (icon)</div>
|
|
10
|
+
<div style="display: flex; flex-direction: row; gap: 10px">
|
|
11
|
+
<DlCard
|
|
12
|
+
:icon="icon"
|
|
13
|
+
:text="text"
|
|
14
|
+
:title="title"
|
|
15
|
+
@onUpdateDescription="updateDescription"
|
|
16
|
+
@onCardActive="onCardActive"
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
<div>Card (interactive)</div>
|
|
20
|
+
<div style="display: flex; flex-direction: row; gap: 10px">
|
|
21
|
+
<DlCard
|
|
22
|
+
v-bind="interactiveProps"
|
|
23
|
+
interactive
|
|
24
|
+
zoom
|
|
25
|
+
@onUpdateDescription="updateDescription"
|
|
26
|
+
@onCardActive="onCardActive"
|
|
27
|
+
/>
|
|
28
|
+
</div>
|
|
29
|
+
<div>Card empty state</div>
|
|
30
|
+
<DlCard
|
|
31
|
+
is-empty
|
|
32
|
+
:empty-state-props="{
|
|
33
|
+
responsive: false,
|
|
34
|
+
style: 'min-height: 350px;',
|
|
35
|
+
bgSize: '130px',
|
|
36
|
+
bgImage: `url(https://raw.githubusercontent.com/dataloop-ai/icons/main/assets/usage.svg)`,
|
|
37
|
+
title: 'Lorem ipsum',
|
|
38
|
+
subtitle:
|
|
39
|
+
'Lorem ipsum dolor sit amet consectetur. Senectus condimentum dolor sit',
|
|
40
|
+
info: 'To learn more about this analytics, read our documentation.'
|
|
41
|
+
}"
|
|
42
|
+
>
|
|
43
|
+
<template #links="">
|
|
44
|
+
<div
|
|
45
|
+
style="
|
|
46
|
+
display: flex;
|
|
47
|
+
gap: 5px;
|
|
48
|
+
flex-wrap: wrap;
|
|
49
|
+
padding: 0 20px;
|
|
50
|
+
"
|
|
51
|
+
>
|
|
52
|
+
<dl-button
|
|
53
|
+
padding="0px"
|
|
54
|
+
icon="icon-dl-sdk-documentation"
|
|
55
|
+
flat
|
|
56
|
+
uppercase
|
|
57
|
+
label="SDK"
|
|
58
|
+
/>
|
|
59
|
+
<div class="break" />
|
|
60
|
+
<dl-button
|
|
61
|
+
padding="0px"
|
|
62
|
+
icon="icon-dl-file"
|
|
63
|
+
flat
|
|
64
|
+
label="Documentation"
|
|
65
|
+
/>
|
|
66
|
+
<div class="break" />
|
|
67
|
+
<dl-button
|
|
68
|
+
padding="0px"
|
|
69
|
+
icon="icon-dl-youtube"
|
|
70
|
+
flat
|
|
71
|
+
label="Video"
|
|
72
|
+
/>
|
|
73
|
+
</div>
|
|
74
|
+
</template>
|
|
75
|
+
</DlCard>
|
|
10
76
|
</div>
|
|
11
77
|
</template>
|
|
12
78
|
|
|
13
79
|
<script>
|
|
14
80
|
import { defineComponent } from 'vue-demi'
|
|
15
|
-
import { DlCard } from '../components'
|
|
81
|
+
import { DlCard, DlButton } from '../components'
|
|
16
82
|
|
|
17
83
|
export default defineComponent({
|
|
18
84
|
name: 'DlCardDemo',
|
|
19
85
|
components: {
|
|
20
|
-
DlCard
|
|
86
|
+
DlCard,
|
|
87
|
+
DlButton
|
|
21
88
|
},
|
|
22
89
|
data() {
|
|
23
90
|
return {
|
|
24
|
-
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Egestas volutpat quam blandit integer mattis. consectetur adipiscing elit. Egestas volutpat quam blandit integer mattis. ',
|
|
25
91
|
image: {
|
|
26
92
|
src: 'https://i0.wp.com/www.printmag.com/wp-content/uploads/2021/02/4cbe8d_f1ed2800a49649848102c68fc5a66e53mv2.gif?fit=476%2C280&ssl=1'
|
|
27
93
|
},
|
|
94
|
+
|
|
28
95
|
title: 'Lorem ipsum',
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
96
|
+
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Egestas volutpat quam blandit integer mattis. consectetur adipiscing elit. Egestas volutpat quam blandit integer mattis. ',
|
|
97
|
+
|
|
98
|
+
icon: {
|
|
99
|
+
icon: 'icon-dl-alert-filled',
|
|
100
|
+
color: 'red'
|
|
101
|
+
},
|
|
102
|
+
interactiveProps: {
|
|
103
|
+
text: 'Some text',
|
|
104
|
+
image: {
|
|
105
|
+
src: 'https://www.shutterstock.com/image-photo/ripe-orange-isolated-on-white-260nw-606022676.jpg',
|
|
106
|
+
styles: 'width: 200px; height: 112px',
|
|
107
|
+
link: {
|
|
108
|
+
icon: 'icon-dl-link',
|
|
109
|
+
color: 'black',
|
|
110
|
+
size: '12px',
|
|
111
|
+
href: 'https://dataloop.ai/'
|
|
112
|
+
}
|
|
37
113
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
114
|
+
title: 'Lorem ipsum',
|
|
115
|
+
links: [
|
|
116
|
+
{
|
|
117
|
+
icon: 'icon-dl-list-view',
|
|
118
|
+
href: 'https://www.google.md/?hl=ru',
|
|
119
|
+
title: 'Lorem',
|
|
120
|
+
newtab: true,
|
|
121
|
+
external: true
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
href: '#test',
|
|
125
|
+
title: 'Developers',
|
|
126
|
+
icon: 'icon-dl-code'
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
interactive: false,
|
|
130
|
+
zoom: false,
|
|
131
|
+
cardId: 2,
|
|
132
|
+
width: '180px',
|
|
133
|
+
tags: [
|
|
134
|
+
{
|
|
135
|
+
label: 'A',
|
|
136
|
+
color: '#FFBBFF',
|
|
137
|
+
textColor: 'black'
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
label: 'Lemon',
|
|
141
|
+
color: '#7000FF',
|
|
142
|
+
textColor: 'black'
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: 'B',
|
|
146
|
+
color: '#FFDA3A',
|
|
147
|
+
textColor: 'black'
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
label: 'D',
|
|
151
|
+
color: '#00A0FF',
|
|
152
|
+
textColor: 'black'
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: 'X',
|
|
156
|
+
color: '#AADC3A',
|
|
157
|
+
textColor: 'black'
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
hints: [
|
|
161
|
+
{
|
|
162
|
+
icon: 'icon-dl-related-filled',
|
|
163
|
+
color: ''
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
icon: 'icon-dl-alert-filled',
|
|
167
|
+
color: 'red'
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
description: 'descriptiononono',
|
|
171
|
+
indicatorColor: 'dl-color-negative'
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
methods: {
|
|
176
|
+
updateDescription(card) {
|
|
177
|
+
console.log('update description: ', card)
|
|
178
|
+
},
|
|
179
|
+
onCardActive(card) {
|
|
180
|
+
console.log('Card Active: ', card)
|
|
44
181
|
}
|
|
45
182
|
}
|
|
46
183
|
})
|
|
@@ -60,6 +60,52 @@
|
|
|
60
60
|
:animation="doughnutAnimation"
|
|
61
61
|
/>
|
|
62
62
|
</div>
|
|
63
|
+
|
|
64
|
+
<div>
|
|
65
|
+
<DlDoughnutChart
|
|
66
|
+
:data="doughnutData"
|
|
67
|
+
:is-small="true"
|
|
68
|
+
:has-summary="true"
|
|
69
|
+
:animation="doughnutAnimation"
|
|
70
|
+
is-empty
|
|
71
|
+
:empty-state-props="{
|
|
72
|
+
responsive: true,
|
|
73
|
+
style: 'min-height: 350px;',
|
|
74
|
+
bgSize: '130px',
|
|
75
|
+
bgImage: `url(https://raw.githubusercontent.com/dataloop-ai/icons/main/assets/usage.svg)`,
|
|
76
|
+
title: 'Lorem ipsum',
|
|
77
|
+
subtitle:
|
|
78
|
+
'Lorem ipsum dolor sit amet consectetur. Senectus condimentum dolor sit',
|
|
79
|
+
info: 'To learn more about this analytics, read our documentation.'
|
|
80
|
+
}"
|
|
81
|
+
>
|
|
82
|
+
<template #links="">
|
|
83
|
+
<div style="display: flex; gap: 5px; padding: 0 20px">
|
|
84
|
+
<dl-button
|
|
85
|
+
padding="0px"
|
|
86
|
+
icon="icon-dl-sdk-documentation"
|
|
87
|
+
flat
|
|
88
|
+
uppercase
|
|
89
|
+
label="SDK"
|
|
90
|
+
/>
|
|
91
|
+
<div class="break" />
|
|
92
|
+
<dl-button
|
|
93
|
+
padding="0px"
|
|
94
|
+
icon="icon-dl-file"
|
|
95
|
+
flat
|
|
96
|
+
label="Documentation"
|
|
97
|
+
/>
|
|
98
|
+
<div class="break" />
|
|
99
|
+
<dl-button
|
|
100
|
+
padding="0px"
|
|
101
|
+
icon="icon-dl-youtube"
|
|
102
|
+
flat
|
|
103
|
+
label="Video"
|
|
104
|
+
/>
|
|
105
|
+
</div>
|
|
106
|
+
</template>
|
|
107
|
+
</DlDoughnutChart>
|
|
108
|
+
</div>
|
|
63
109
|
</div>
|
|
64
110
|
</div>
|
|
65
111
|
</template>
|
|
@@ -67,13 +113,14 @@
|
|
|
67
113
|
<script lang="ts">
|
|
68
114
|
import { defineComponent, ref } from 'vue-demi'
|
|
69
115
|
import { DoughnutControllerChartOptions } from 'chart.js'
|
|
70
|
-
import { DlDoughnutChart } from '../components'
|
|
116
|
+
import { DlDoughnutChart, DlButton } from '../components'
|
|
71
117
|
import { TDoughnutChartData } from '../components/compound/DlCharts/charts/DlDoughnutChart/types'
|
|
72
118
|
|
|
73
119
|
export default defineComponent({
|
|
74
120
|
name: 'DlChartDoughnutDemo',
|
|
75
121
|
components: {
|
|
76
|
-
DlDoughnutChart
|
|
122
|
+
DlDoughnutChart,
|
|
123
|
+
DlButton
|
|
77
124
|
},
|
|
78
125
|
setup() {
|
|
79
126
|
const doughnutAnimation = ref<
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
2
|
+
<div style="--dl-checkbox-sub-label-left-padding: 20px">
|
|
3
|
+
<div style="max-width: 150px">
|
|
4
|
+
in a tight container with long text
|
|
5
|
+
<dl-checkbox
|
|
6
|
+
v-model="customValueCheck"
|
|
7
|
+
toggle-indeterminate
|
|
8
|
+
indeterminate-value="maybe"
|
|
9
|
+
false-value="no"
|
|
10
|
+
true-value="yes"
|
|
11
|
+
label="dasflsd;ljasl;djfasjkl;dfjklasdfjl;kasj;klasjl;kl;aksdfkl;asjdfkl;asjdfl;kasjdflk;asdf;kljsdkl;fjasl;dkfjaskl;dfjasl;kdfal;skdfkl;asdfl;kasdfkl;asjdfkl;asjdfkl;asjdf;"
|
|
12
|
+
sub-label="this is a lot of text this is a lot of text this is a lot of text this is a lot of text this is a lot of text this is a lot of text "
|
|
13
|
+
@update:model-value="logValue"
|
|
14
|
+
/>
|
|
15
|
+
</div>
|
|
3
16
|
<dl-checkbox
|
|
4
17
|
v-model="customValueCheck"
|
|
5
18
|
toggle-indeterminate
|
|
@@ -22,27 +35,39 @@
|
|
|
22
35
|
label="Boolean v-model"
|
|
23
36
|
@update:model-value="logValue"
|
|
24
37
|
/>
|
|
38
|
+
<dl-checkbox
|
|
39
|
+
v-model="disabledValue"
|
|
40
|
+
disabled
|
|
41
|
+
@update:model-value="logValue"
|
|
42
|
+
>
|
|
43
|
+
Disabled with tooltip
|
|
44
|
+
<dl-tooltip>I am a tooltip</dl-tooltip>
|
|
45
|
+
</dl-checkbox>
|
|
25
46
|
</div>
|
|
26
47
|
</template>
|
|
27
48
|
|
|
28
49
|
<script lang="ts">
|
|
29
50
|
import { defineComponent, ref } from 'vue-demi'
|
|
30
|
-
import { DlCheckbox } from '../components'
|
|
51
|
+
import { DlCheckbox, DlTooltip } from '../components'
|
|
52
|
+
|
|
31
53
|
export default defineComponent({
|
|
32
54
|
name: 'DlCheckboxDemo',
|
|
33
55
|
components: {
|
|
34
|
-
DlCheckbox
|
|
56
|
+
DlCheckbox,
|
|
57
|
+
DlTooltip
|
|
35
58
|
},
|
|
36
59
|
setup() {
|
|
37
60
|
const logValue = (newValue: any) => console.log('New value:', newValue)
|
|
38
61
|
const switchValue = ref<number[]>([1, 3])
|
|
39
62
|
const booleanValue = ref(true)
|
|
40
63
|
const customValueCheck = ref('maybe')
|
|
64
|
+
const disabledValue = ref(false)
|
|
41
65
|
|
|
42
66
|
return {
|
|
43
67
|
switchValue,
|
|
44
68
|
booleanValue,
|
|
45
69
|
customValueCheck,
|
|
70
|
+
disabledValue,
|
|
46
71
|
logValue
|
|
47
72
|
}
|
|
48
73
|
}
|