@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
|
@@ -60,56 +60,6 @@
|
|
|
60
60
|
Erat ac duis sed ullamcorper sagittis, sed. Tempus ac
|
|
61
61
|
pellentesque dignissim lobortis.
|
|
62
62
|
</p>
|
|
63
|
-
|
|
64
|
-
<dl-dialog-box ref="modalTwo">
|
|
65
|
-
<template #header>
|
|
66
|
-
<dl-dialog-box-header
|
|
67
|
-
has-back-button
|
|
68
|
-
title="Dialog Box Title"
|
|
69
|
-
subtitle="updated by rotemshaham@dataloop.ai"
|
|
70
|
-
@on-close="closeSecondModal"
|
|
71
|
-
/>
|
|
72
|
-
</template>
|
|
73
|
-
<template #body>
|
|
74
|
-
<p
|
|
75
|
-
style="
|
|
76
|
-
margin: 0;
|
|
77
|
-
color: var(--dl-color-medium);
|
|
78
|
-
font-size: 10px;
|
|
79
|
-
"
|
|
80
|
-
>
|
|
81
|
-
Updated by rotemshaham@dataloop.ai
|
|
82
|
-
</p>
|
|
83
|
-
<p
|
|
84
|
-
style="
|
|
85
|
-
margin: 0;
|
|
86
|
-
color: var(--dl-color-medium);
|
|
87
|
-
font-size: 10px;
|
|
88
|
-
margin-bottom: 20px;
|
|
89
|
-
"
|
|
90
|
-
>
|
|
91
|
-
Dec 1, 2020, 12:21pm
|
|
92
|
-
</p>
|
|
93
|
-
<p
|
|
94
|
-
style="
|
|
95
|
-
margin: 0;
|
|
96
|
-
color: var(--dl-color-darker);
|
|
97
|
-
font-size: 12px;
|
|
98
|
-
"
|
|
99
|
-
>
|
|
100
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing
|
|
101
|
-
elit. Erat ac duis sed ullamcorper sagittis, sed.
|
|
102
|
-
Tempus ac pellentesque dignissim lobortis.
|
|
103
|
-
</p>
|
|
104
|
-
</template>
|
|
105
|
-
<template #footer>
|
|
106
|
-
<dl-dialog-box-footer>
|
|
107
|
-
<dl-button @click="closeSecondModal">
|
|
108
|
-
Close
|
|
109
|
-
</dl-button>
|
|
110
|
-
</dl-dialog-box-footer>
|
|
111
|
-
</template>
|
|
112
|
-
</dl-dialog-box>
|
|
113
63
|
</template>
|
|
114
64
|
<template #footer>
|
|
115
65
|
<dl-dialog-box-footer>
|
|
@@ -117,7 +67,7 @@
|
|
|
117
67
|
outlined
|
|
118
68
|
@click="openSecondModal"
|
|
119
69
|
>
|
|
120
|
-
Open
|
|
70
|
+
Open empty modal
|
|
121
71
|
</dl-button>
|
|
122
72
|
<dl-button @click="closeModal">
|
|
123
73
|
Close
|
|
@@ -125,6 +75,61 @@
|
|
|
125
75
|
</dl-dialog-box-footer>
|
|
126
76
|
</template>
|
|
127
77
|
</dl-dialog-box>
|
|
78
|
+
|
|
79
|
+
<dl-dialog-box
|
|
80
|
+
ref="modalTwo"
|
|
81
|
+
is-empty
|
|
82
|
+
:empty-state-props="{
|
|
83
|
+
responsive: true,
|
|
84
|
+
bgSize: '100px',
|
|
85
|
+
bgImage: `url(https://raw.githubusercontent.com/dataloop-ai/icons/main/assets/usage.svg)`,
|
|
86
|
+
title: 'Lorem ipsum',
|
|
87
|
+
subtitle:
|
|
88
|
+
'Lorem ipsum dolor sit amet consectetur. Senectus condimentum dolor sit',
|
|
89
|
+
info: 'To learn more about this analytics, read our documentation.'
|
|
90
|
+
}"
|
|
91
|
+
>
|
|
92
|
+
<template #header>
|
|
93
|
+
<dl-dialog-box-header
|
|
94
|
+
has-back-button
|
|
95
|
+
title="Dialog Box Title"
|
|
96
|
+
subtitle="updated by rotemshaham@dataloop.ai"
|
|
97
|
+
@on-close="closeSecondModal"
|
|
98
|
+
/>
|
|
99
|
+
</template>
|
|
100
|
+
|
|
101
|
+
<template #links="">
|
|
102
|
+
<div style="display: flex; gap: 15px; flex-wrap: wrap">
|
|
103
|
+
<dl-button
|
|
104
|
+
padding="0px"
|
|
105
|
+
icon="icon-dl-sdk-documentation"
|
|
106
|
+
flat
|
|
107
|
+
uppercase
|
|
108
|
+
label="SDK"
|
|
109
|
+
/>
|
|
110
|
+
<dl-button
|
|
111
|
+
padding="0px"
|
|
112
|
+
icon="icon-dl-file"
|
|
113
|
+
flat
|
|
114
|
+
label="Documentation"
|
|
115
|
+
/>
|
|
116
|
+
<dl-button
|
|
117
|
+
padding="0px"
|
|
118
|
+
icon="icon-dl-youtube"
|
|
119
|
+
flat
|
|
120
|
+
label="Video"
|
|
121
|
+
/>
|
|
122
|
+
</div>
|
|
123
|
+
</template>
|
|
124
|
+
|
|
125
|
+
<template #footer>
|
|
126
|
+
<dl-dialog-box-footer>
|
|
127
|
+
<dl-button @click="closeSecondModal">
|
|
128
|
+
Close
|
|
129
|
+
</dl-button>
|
|
130
|
+
</dl-dialog-box-footer>
|
|
131
|
+
</template>
|
|
132
|
+
</dl-dialog-box>
|
|
128
133
|
</div>
|
|
129
134
|
</template>
|
|
130
135
|
|
|
@@ -6,19 +6,17 @@
|
|
|
6
6
|
auto-close
|
|
7
7
|
outlined
|
|
8
8
|
split
|
|
9
|
-
label="
|
|
9
|
+
:label="outlinedLabel"
|
|
10
|
+
@handleSelectedItem="handleOutlinedSelect"
|
|
10
11
|
>
|
|
11
12
|
<dl-list>
|
|
12
|
-
<dl-list-item
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<dl-list-item clickable>
|
|
21
|
-
<dl-item-section> Articles </dl-item-section>
|
|
13
|
+
<dl-list-item
|
|
14
|
+
v-for="val in ['Photos', 'Videos', 'Articles']"
|
|
15
|
+
:key="val"
|
|
16
|
+
clickable
|
|
17
|
+
@click="handleOutlinedSelect(val)"
|
|
18
|
+
>
|
|
19
|
+
<dl-item-section> {{ val }} </dl-item-section>
|
|
22
20
|
</dl-list-item>
|
|
23
21
|
</dl-list>
|
|
24
22
|
</dl-dropdown-button>
|
|
@@ -47,19 +45,17 @@
|
|
|
47
45
|
|
|
48
46
|
<dl-dropdown-button
|
|
49
47
|
split
|
|
50
|
-
label="
|
|
48
|
+
:label="containedLabel"
|
|
49
|
+
auto-close
|
|
51
50
|
>
|
|
52
51
|
<dl-list>
|
|
53
|
-
<dl-list-item
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<dl-list-item clickable>
|
|
62
|
-
<dl-item-section> Articles </dl-item-section>
|
|
52
|
+
<dl-list-item
|
|
53
|
+
v-for="val in ['Photos', 'Videos', 'Articles']"
|
|
54
|
+
:key="val"
|
|
55
|
+
clickable
|
|
56
|
+
@click="handleContainedSelect(val)"
|
|
57
|
+
>
|
|
58
|
+
<dl-item-section> {{ val }} </dl-item-section>
|
|
63
59
|
</dl-list-item>
|
|
64
60
|
</dl-list>
|
|
65
61
|
</dl-dropdown-button>
|
|
@@ -109,7 +105,7 @@
|
|
|
109
105
|
<dl-dropdown-button
|
|
110
106
|
auto-close
|
|
111
107
|
outlined
|
|
112
|
-
label="
|
|
108
|
+
:label="outlinedLabel"
|
|
113
109
|
>
|
|
114
110
|
<dl-list>
|
|
115
111
|
<dl-list-item clickable>
|
|
@@ -149,7 +145,7 @@
|
|
|
149
145
|
|
|
150
146
|
<dl-dropdown-button
|
|
151
147
|
auto-close
|
|
152
|
-
label="
|
|
148
|
+
:label="containedLabel"
|
|
153
149
|
max-height="210px"
|
|
154
150
|
>
|
|
155
151
|
<dl-list>
|
|
@@ -260,7 +256,7 @@
|
|
|
260
256
|
<dl-item-section :no-wrap="true">
|
|
261
257
|
<dl-ellipsis
|
|
262
258
|
text="Very very very very long long long long text text text"
|
|
263
|
-
|
|
259
|
+
split
|
|
264
260
|
/>
|
|
265
261
|
</dl-item-section>
|
|
266
262
|
</dl-list-item>
|
|
@@ -302,7 +298,7 @@
|
|
|
302
298
|
v-for="(item, index) in listItems"
|
|
303
299
|
:key="index"
|
|
304
300
|
clickable
|
|
305
|
-
:
|
|
301
|
+
:highlighted="index === highlightedIndex"
|
|
306
302
|
>
|
|
307
303
|
<dl-item-section>
|
|
308
304
|
{{ item }}
|
|
@@ -339,6 +335,8 @@ export default defineComponent({
|
|
|
339
335
|
const name = ref('Dropdown Button Controlled')
|
|
340
336
|
const showing = ref(false)
|
|
341
337
|
const arrowNavigationLabel = ref('Arrow Navigation Label')
|
|
338
|
+
const outlinedLabel = ref('Outlined Label')
|
|
339
|
+
const containedLabel = ref('Contained Label')
|
|
342
340
|
|
|
343
341
|
const listItems = ref([
|
|
344
342
|
'New tab',
|
|
@@ -354,6 +352,12 @@ export default defineComponent({
|
|
|
354
352
|
arrowNavigationLabel.value = value
|
|
355
353
|
showing.value = false
|
|
356
354
|
}
|
|
355
|
+
const handleOutlinedSelect = (value: string) =>
|
|
356
|
+
(outlinedLabel.value = value)
|
|
357
|
+
|
|
358
|
+
const handleContainedSelect = (value: string) =>
|
|
359
|
+
(containedLabel.value = value)
|
|
360
|
+
|
|
357
361
|
const onClose = (newName: string) => {
|
|
358
362
|
name.value = newName
|
|
359
363
|
showing.value = false
|
|
@@ -378,8 +382,12 @@ export default defineComponent({
|
|
|
378
382
|
showing,
|
|
379
383
|
setHighlightedIndex,
|
|
380
384
|
handleSelectedItem,
|
|
385
|
+
handleOutlinedSelect,
|
|
386
|
+
handleContainedSelect,
|
|
381
387
|
highlightedIndex,
|
|
382
|
-
arrowNavigationLabel
|
|
388
|
+
arrowNavigationLabel,
|
|
389
|
+
outlinedLabel,
|
|
390
|
+
containedLabel
|
|
383
391
|
}
|
|
384
392
|
}
|
|
385
393
|
})
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<dl-empty-state
|
|
4
|
+
:bg-image="`url('./src/demo/assets/agenda.svg')`"
|
|
5
|
+
style="min-width: 400px; min-height: 300px"
|
|
6
|
+
title="This analytics will populate with data when relevant information will be available."
|
|
7
|
+
subtitle="This analytics will populate with data when relevant information will be available."
|
|
8
|
+
info="To learn more about this analytics, read our documentation."
|
|
9
|
+
/>
|
|
10
|
+
|
|
11
|
+
<dl-empty-state
|
|
12
|
+
icon-color="dl-color-negative"
|
|
13
|
+
icon-size="100px"
|
|
14
|
+
:bg-image="`url('./src/demo/assets/agenda.svg')`"
|
|
15
|
+
style="min-width: 400px; min-height: 300px; max-width: 400px"
|
|
16
|
+
subtitle="This analytics will populate with data when relevant information will be available."
|
|
17
|
+
info="To learn more about this analytics, read our documentation"
|
|
18
|
+
>
|
|
19
|
+
<template #cta="">
|
|
20
|
+
<div style="display: flex; gap: 15px">
|
|
21
|
+
<dl-button label="Create Pipeline" />
|
|
22
|
+
<dl-button
|
|
23
|
+
outlined
|
|
24
|
+
label="Create With Template"
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<template #links="">
|
|
30
|
+
<div style="display: flex; gap: 15px">
|
|
31
|
+
<dl-button
|
|
32
|
+
padding="0px"
|
|
33
|
+
icon="icon-dl-sdk-documentation"
|
|
34
|
+
flat
|
|
35
|
+
uppercase
|
|
36
|
+
label="SDK"
|
|
37
|
+
/>
|
|
38
|
+
<dl-button
|
|
39
|
+
padding="0px"
|
|
40
|
+
icon="icon-dl-file"
|
|
41
|
+
flat
|
|
42
|
+
label="Documentation"
|
|
43
|
+
/>
|
|
44
|
+
<dl-button
|
|
45
|
+
padding="0px"
|
|
46
|
+
icon="icon-dl-youtube"
|
|
47
|
+
flat
|
|
48
|
+
label="Video"
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
</dl-empty-state>
|
|
53
|
+
|
|
54
|
+
<dl-empty-state
|
|
55
|
+
:bg-image="`url(./src/demos/assets/agenda.svg)`"
|
|
56
|
+
style="width: 400px; min-height: 300px; resize: both"
|
|
57
|
+
title="This analytics will populate with data when relevant information will be available."
|
|
58
|
+
subtitle="This analytics will populate with data when relevant information will be available."
|
|
59
|
+
info="To learn more about this analytics, read our documentation."
|
|
60
|
+
title-class="dl-eta-title"
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<script lang="ts">
|
|
66
|
+
import { defineComponent } from 'vue-demi'
|
|
67
|
+
import { DlEmptyState, DlButton } from '../components/basic'
|
|
68
|
+
export default defineComponent({
|
|
69
|
+
name: 'DlEmptyStateDemo',
|
|
70
|
+
components: {
|
|
71
|
+
DlEmptyState,
|
|
72
|
+
DlButton
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<style scoped lang="scss">
|
|
78
|
+
.dl-eta-title {
|
|
79
|
+
font-size: 10vw;
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container">
|
|
3
|
+
<dl-grid>
|
|
4
|
+
<img
|
|
5
|
+
v-for="(a, index) in 10"
|
|
6
|
+
:key="index"
|
|
7
|
+
class="grid-image"
|
|
8
|
+
:src="getRandomImg()"
|
|
9
|
+
>
|
|
10
|
+
</dl-grid>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script lang="ts">
|
|
15
|
+
import { defineComponent } from 'vue-demi'
|
|
16
|
+
import { DlGrid } from '../components/'
|
|
17
|
+
|
|
18
|
+
const getRandomImg = () => {
|
|
19
|
+
const random = Math.floor(Math.random() * 3) + 1
|
|
20
|
+
const link = `https://picsum.photos/${random * 100}/${
|
|
21
|
+
random * 100
|
|
22
|
+
}?random=${random}`
|
|
23
|
+
return link
|
|
24
|
+
}
|
|
25
|
+
export default defineComponent({
|
|
26
|
+
components: {
|
|
27
|
+
DlGrid
|
|
28
|
+
},
|
|
29
|
+
setup() {
|
|
30
|
+
return { getRandomImg }
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<style lang="scss" scoped>
|
|
36
|
+
.grid-image {
|
|
37
|
+
border: 2px solid var(--dl-color-darker);
|
|
38
|
+
margin: 5px;
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<dl-input
|
|
4
4
|
v-model="textInputValue"
|
|
5
|
-
style="width:
|
|
5
|
+
style="width: 920px"
|
|
6
6
|
placeholder="Select option"
|
|
7
7
|
size="l"
|
|
8
|
+
margin="20px"
|
|
8
9
|
title="Input Title"
|
|
9
10
|
required
|
|
10
11
|
tooltip="Quis fugiat et non eu proident sit et amet."
|
|
@@ -59,6 +60,17 @@
|
|
|
59
60
|
info-message="This won't show, error is true"
|
|
60
61
|
optional
|
|
61
62
|
/>
|
|
63
|
+
<dl-input
|
|
64
|
+
v-model="warningFieldValue"
|
|
65
|
+
title="Warning Example"
|
|
66
|
+
style="width: 220px"
|
|
67
|
+
placeholder="Select option"
|
|
68
|
+
size="s"
|
|
69
|
+
warning
|
|
70
|
+
warning-message="Something isn't right."
|
|
71
|
+
info-message="This won't show, error is true"
|
|
72
|
+
optional
|
|
73
|
+
/>
|
|
62
74
|
<dl-input
|
|
63
75
|
v-model="errorFieldValue"
|
|
64
76
|
title="Error Example"
|
|
@@ -109,6 +121,14 @@
|
|
|
109
121
|
size="m"
|
|
110
122
|
/>
|
|
111
123
|
</div>
|
|
124
|
+
|
|
125
|
+
<dl-input
|
|
126
|
+
title="Readonly"
|
|
127
|
+
style="width: 220px"
|
|
128
|
+
placeholder="Readonly state"
|
|
129
|
+
size="m"
|
|
130
|
+
readonly
|
|
131
|
+
/>
|
|
112
132
|
</div>
|
|
113
133
|
</template>
|
|
114
134
|
<script lang="ts">
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
style="
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
"
|
|
8
|
+
>
|
|
9
|
+
<div style="height: 200px; width: 500px">
|
|
10
|
+
<dl-json-editor v-model="jsonModel" />
|
|
11
|
+
</div>
|
|
12
|
+
<span>JSON: {{ jsonModel }}</span>
|
|
13
|
+
|
|
14
|
+
<dl-button @click="dialogState = !dialogState">
|
|
15
|
+
JsonEditor
|
|
16
|
+
</dl-button>
|
|
17
|
+
<dl-dialog-box
|
|
18
|
+
v-model="dialogState"
|
|
19
|
+
volatile
|
|
20
|
+
:width="700"
|
|
21
|
+
>
|
|
22
|
+
<template #header>
|
|
23
|
+
<dl-dialog-box-header
|
|
24
|
+
title="JsonEditor"
|
|
25
|
+
@onClose="dialogState = false"
|
|
26
|
+
/>
|
|
27
|
+
</template>
|
|
28
|
+
<template #body>
|
|
29
|
+
<div style="height: 350px">
|
|
30
|
+
<dl-json-editor v-model="dialogJsonModel" />
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
</dl-dialog-box>
|
|
34
|
+
<span>Dialog JSON: {{ dialogJsonModel }}</span>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script lang="ts">
|
|
39
|
+
import { defineComponent, ref } from 'vue-demi'
|
|
40
|
+
import {
|
|
41
|
+
DlJsonEditor,
|
|
42
|
+
DlDialogBox,
|
|
43
|
+
DlDialogBoxHeader,
|
|
44
|
+
DlButton
|
|
45
|
+
} from '../components'
|
|
46
|
+
export default defineComponent({
|
|
47
|
+
components: { DlJsonEditor, DlDialogBox, DlDialogBoxHeader, DlButton },
|
|
48
|
+
setup() {
|
|
49
|
+
const jsonModel = ref('')
|
|
50
|
+
const dialogJsonModel = ref('')
|
|
51
|
+
const dialogState = ref(false)
|
|
52
|
+
return {
|
|
53
|
+
jsonModel,
|
|
54
|
+
dialogState,
|
|
55
|
+
dialogJsonModel
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
</script>
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="dl-text-holder-demo">
|
|
4
|
+
Label with actions
|
|
5
|
+
<dl-label
|
|
6
|
+
label-color="dl-color-secondary"
|
|
7
|
+
text="dl-labelaaaaaaaaaaaaaa"
|
|
8
|
+
>
|
|
9
|
+
<template #actions>
|
|
10
|
+
<div
|
|
11
|
+
style="
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: 5px;
|
|
14
|
+
align-items: center;
|
|
15
|
+
height: 100%;
|
|
16
|
+
margin-right: 5px;
|
|
17
|
+
"
|
|
18
|
+
>
|
|
19
|
+
<dl-icon icon="icon-dl-add" />
|
|
20
|
+
<dl-icon icon="icon-dl-delete" />
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
</dl-label>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="dl-text-holder-demo">
|
|
26
|
+
Label with hint
|
|
27
|
+
<dl-label
|
|
28
|
+
label-color="dl-color-secondary"
|
|
29
|
+
hint="tooltip"
|
|
30
|
+
text="dl-labelaaaaaaaaaaaaaa"
|
|
31
|
+
/>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="dl-text-holder-demo">
|
|
34
|
+
Label with and actions
|
|
35
|
+
<dl-label
|
|
36
|
+
label-color="dl-color-secondary"
|
|
37
|
+
hint="tooltip"
|
|
38
|
+
text="dl-labelaaaaaaaaaaaaaa"
|
|
39
|
+
>
|
|
40
|
+
<template #actions>
|
|
41
|
+
<div
|
|
42
|
+
style="
|
|
43
|
+
display: flex;
|
|
44
|
+
gap: 5px;
|
|
45
|
+
align-items: center;
|
|
46
|
+
height: 100%;
|
|
47
|
+
margin-right: 5px;
|
|
48
|
+
"
|
|
49
|
+
>
|
|
50
|
+
<dl-icon icon="icon-dl-add" />
|
|
51
|
+
<dl-icon icon="icon-dl-delete" />
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
54
|
+
</dl-label>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="dl-text-holder-demo">
|
|
57
|
+
Label with prefix
|
|
58
|
+
<dl-label
|
|
59
|
+
label-color="dl-color-secondary"
|
|
60
|
+
hint="tooltip"
|
|
61
|
+
text="dl-labelaaaaaaaaaaaaaa"
|
|
62
|
+
prefix="%"
|
|
63
|
+
>
|
|
64
|
+
<template #actions>
|
|
65
|
+
<div
|
|
66
|
+
style="
|
|
67
|
+
display: flex;
|
|
68
|
+
gap: 5px;
|
|
69
|
+
align-items: center;
|
|
70
|
+
height: 100%;
|
|
71
|
+
margin-right: 5px;
|
|
72
|
+
"
|
|
73
|
+
>
|
|
74
|
+
<dl-icon icon="icon-dl-add" />
|
|
75
|
+
<dl-icon icon="icon-dl-delete" />
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
</dl-label>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="dl-text-holder-demo">
|
|
81
|
+
Label with suffix
|
|
82
|
+
<dl-label
|
|
83
|
+
label-color="dl-color-secondary"
|
|
84
|
+
hint="tooltip"
|
|
85
|
+
text="dl-labelaaaaaaaaaaaaaa"
|
|
86
|
+
suffix=".mp3"
|
|
87
|
+
>
|
|
88
|
+
<template #actions>
|
|
89
|
+
<div
|
|
90
|
+
style="
|
|
91
|
+
display: flex;
|
|
92
|
+
gap: 5px;
|
|
93
|
+
align-items: center;
|
|
94
|
+
height: 100%;
|
|
95
|
+
margin-right: 5px;
|
|
96
|
+
"
|
|
97
|
+
>
|
|
98
|
+
<dl-icon icon="icon-dl-add" />
|
|
99
|
+
<dl-icon icon="icon-dl-delete" />
|
|
100
|
+
</div>
|
|
101
|
+
</template>
|
|
102
|
+
</dl-label>
|
|
103
|
+
</div>
|
|
104
|
+
<div
|
|
105
|
+
class="dl-text-holder-demo"
|
|
106
|
+
style="width: 500px"
|
|
107
|
+
>
|
|
108
|
+
Label with suffix in a large container
|
|
109
|
+
<dl-label
|
|
110
|
+
label-color="dl-color-secondary"
|
|
111
|
+
hint="tooltip"
|
|
112
|
+
text="dl-labelaaaaaaaaaaaaaa"
|
|
113
|
+
suffix=".mp3"
|
|
114
|
+
>
|
|
115
|
+
<template #actions>
|
|
116
|
+
<div
|
|
117
|
+
style="
|
|
118
|
+
display: flex;
|
|
119
|
+
gap: 5px;
|
|
120
|
+
align-items: center;
|
|
121
|
+
height: 100%;
|
|
122
|
+
margin-right: 5px;
|
|
123
|
+
"
|
|
124
|
+
>
|
|
125
|
+
<dl-icon icon="icon-dl-add" />
|
|
126
|
+
<dl-icon icon="icon-dl-delete" />
|
|
127
|
+
</div>
|
|
128
|
+
</template>
|
|
129
|
+
</dl-label>
|
|
130
|
+
</div>
|
|
131
|
+
<div
|
|
132
|
+
class="dl-text-holder-demo"
|
|
133
|
+
style="width: 500px"
|
|
134
|
+
>
|
|
135
|
+
Label with suffix in a large container and fluid
|
|
136
|
+
<dl-label
|
|
137
|
+
label-color="dl-color-secondary"
|
|
138
|
+
hint="tooltip"
|
|
139
|
+
text="dl-labelaaaaaaaaaaaaaa"
|
|
140
|
+
suffix=".mp3"
|
|
141
|
+
fluid
|
|
142
|
+
>
|
|
143
|
+
<template #actions>
|
|
144
|
+
<div
|
|
145
|
+
style="
|
|
146
|
+
display: flex;
|
|
147
|
+
gap: 5px;
|
|
148
|
+
align-items: center;
|
|
149
|
+
height: 100%;
|
|
150
|
+
margin-right: 5px;
|
|
151
|
+
"
|
|
152
|
+
>
|
|
153
|
+
<dl-icon icon="icon-dl-add" />
|
|
154
|
+
<dl-icon icon="icon-dl-delete" />
|
|
155
|
+
</div>
|
|
156
|
+
</template>
|
|
157
|
+
</dl-label>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="dl-text-holder-demo">
|
|
160
|
+
Label with suffix and fluid
|
|
161
|
+
<dl-label
|
|
162
|
+
label-color="dl-color-secondary"
|
|
163
|
+
hint="tooltip"
|
|
164
|
+
text="dl-labelaaaaaaaaaaaaaa"
|
|
165
|
+
suffix=".mp3"
|
|
166
|
+
fluid
|
|
167
|
+
>
|
|
168
|
+
<template #actions>
|
|
169
|
+
<div
|
|
170
|
+
style="
|
|
171
|
+
display: flex;
|
|
172
|
+
gap: 5px;
|
|
173
|
+
align-items: center;
|
|
174
|
+
height: 100%;
|
|
175
|
+
margin-right: 5px;
|
|
176
|
+
"
|
|
177
|
+
>
|
|
178
|
+
<dl-icon icon="icon-dl-add" />
|
|
179
|
+
<dl-icon icon="icon-dl-delete" />
|
|
180
|
+
</div>
|
|
181
|
+
</template>
|
|
182
|
+
</dl-label>
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
</template>
|
|
186
|
+
|
|
187
|
+
<script lang="ts">
|
|
188
|
+
import { defineComponent } from 'vue-demi'
|
|
189
|
+
import { DlLabel, DlIcon } from '../components'
|
|
190
|
+
|
|
191
|
+
export default defineComponent({
|
|
192
|
+
components: {
|
|
193
|
+
DlLabel,
|
|
194
|
+
DlIcon
|
|
195
|
+
}
|
|
196
|
+
})
|
|
197
|
+
</script>
|
|
198
|
+
|
|
199
|
+
<style scoped>
|
|
200
|
+
.dl-text-holder-demo {
|
|
201
|
+
display: flex;
|
|
202
|
+
gap: 10px;
|
|
203
|
+
flex-wrap: wrap;
|
|
204
|
+
width: 200px;
|
|
205
|
+
padding: 5px;
|
|
206
|
+
word-wrap: break-word;
|
|
207
|
+
}
|
|
208
|
+
</style>
|