@dataloop-ai/components 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +154 -0
- package/.prettierrc.json +7 -0
- package/Dockerfile +12 -0
- package/LICENSE +201 -0
- package/README.md +43 -0
- package/favicon.ico +0 -0
- package/index.html +13 -0
- package/index.ts +1 -0
- package/jest.config.js +16 -0
- package/jest.setup.js +59 -0
- package/models.ts +1 -0
- package/package.json +109 -0
- package/src/App.vue +201 -0
- package/src/assets/globals.scss +253 -0
- package/src/assets/globalsKeys.ts +28 -0
- package/src/components/DlAccordion/AccordionHeader.vue +148 -0
- package/src/components/DlAccordion/DlAccordion.vue +108 -0
- package/src/components/DlAccordion/index.ts +2 -0
- package/src/components/DlAlert.vue +227 -0
- package/src/components/DlAvatar.vue +99 -0
- package/src/components/DlBadge.vue +127 -0
- package/src/components/DlButton/DlButton.vue +370 -0
- package/src/components/DlButton/index.ts +4 -0
- package/src/components/DlButton/utils.ts +169 -0
- package/src/components/DlButtonGroup.vue +122 -0
- package/src/components/DlCheckbox.vue +298 -0
- package/src/components/DlChip/DlChip.vue +244 -0
- package/src/components/DlChip/index.ts +4 -0
- package/src/components/DlChip/utils.ts +100 -0
- package/src/components/DlColorPicker/DlAlpha.vue +142 -0
- package/src/components/DlColorPicker/DlBox.vue +75 -0
- package/src/components/DlColorPicker/DlColorPicker.vue +306 -0
- package/src/components/DlColorPicker/DlColors.vue +139 -0
- package/src/components/DlColorPicker/DlHue.vue +135 -0
- package/src/components/DlColorPicker/DlPreview.vue +61 -0
- package/src/components/DlColorPicker/DlSaturation.vue +152 -0
- package/src/components/DlColorPicker/constants.ts +16 -0
- package/src/components/DlColorPicker/index.ts +20 -0
- package/src/components/DlColorPicker/types.ts +11 -0
- package/src/components/DlColorPicker/utils.ts +128 -0
- package/src/components/DlCounters.vue +173 -0
- package/src/components/DlDatePicker/DlCalendar.vue +332 -0
- package/src/components/DlDatePicker/DlDatePicker.vue +315 -0
- package/src/components/DlDatePicker/DlMonthCalendar.vue +282 -0
- package/src/components/DlDatePicker/classes/Calendar.ts +110 -0
- package/src/components/DlDatePicker/classes/CalendarDate.ts +12 -0
- package/src/components/DlDatePicker/classes/CustomDate.ts +218 -0
- package/src/components/DlDatePicker/index.ts +3 -0
- package/src/components/DlDatePicker/isInRange.ts +44 -0
- package/src/components/DlDatePicker/types.ts +4 -0
- package/src/components/DlDatePicker/utils.ts +39 -0
- package/src/components/DlDateTimeRange/DlCardSidebar.vue +109 -0
- package/src/components/DlDateTimeRange/DlDateInput.vue +105 -0
- package/src/components/DlDateTimeRange/DlDateTimeRange.vue +468 -0
- package/src/components/DlDateTimeRange/index.ts +3 -0
- package/src/components/DlDateTimeRange/types.ts +42 -0
- package/src/components/DlDialogBox/DlDialogBox.vue +196 -0
- package/src/components/DlDialogBox/DlDialogBoxFooter.vue +22 -0
- package/src/components/DlDialogBox/DlDialogBoxHeader.vue +75 -0
- package/src/components/DlDialogBox/index.ts +5 -0
- package/src/components/DlDropdownButton.vue +463 -0
- package/src/components/DlIcon.vue +147 -0
- package/src/components/DlInfoErrorMessage.vue +91 -0
- package/src/components/DlItem/DlItem.vue +35 -0
- package/src/components/DlItem/index.ts +2 -0
- package/src/components/DlItemSection.vue +88 -0
- package/src/components/DlLink/DlLink.vue +76 -0
- package/src/components/DlLink/index.ts +4 -0
- package/src/components/DlLink/utils.ts +4 -0
- package/src/components/DlList.vue +61 -0
- package/src/components/DlListItem/DlListItem.vue +205 -0
- package/src/components/DlListItem/index.ts +3 -0
- package/src/components/DlListItem/utils.ts +14 -0
- package/src/components/DlMenu/DlMenu.vue +438 -0
- package/src/components/DlMenu/index.ts +3 -0
- package/src/components/DlMenu/utils.ts +138 -0
- package/src/components/DlOptionGroup/DlOptionGroup.vue +201 -0
- package/src/components/DlOptionGroup/MenuItemWrapper.vue +48 -0
- package/src/components/DlOptionGroup/OptionGroup.types.ts +36 -0
- package/src/components/DlOptionGroup/SimpleWrapper.vue +28 -0
- package/src/components/DlOptionGroup/index.ts +4 -0
- package/src/components/DlOptionGroup/utils.ts +40 -0
- package/src/components/DlPagination/DlPagination.vue +184 -0
- package/src/components/DlPagination/PageNavigation.vue +350 -0
- package/src/components/DlPagination/PaginationLegend.vue +41 -0
- package/src/components/DlPagination/QuickNavigation.vue +146 -0
- package/src/components/DlPagination/RowsSelector.vue +74 -0
- package/src/components/DlPagination/index.ts +3 -0
- package/src/components/DlPanelContainer/DlPanel.vue +213 -0
- package/src/components/DlPanelContainer/DlPanelContainer.vue +527 -0
- package/src/components/DlPanelContainer/index.ts +4 -0
- package/src/components/DlPopup/DlPopup.vue +478 -0
- package/src/components/DlPopup/DraggableUpper.vue +64 -0
- package/src/components/DlPopup/PopupHeader.vue +129 -0
- package/src/components/DlPopup/index.ts +1 -0
- package/src/components/DlProgressBar.vue +159 -0
- package/src/components/DlProgressChart.vue +299 -0
- package/src/components/DlRadio.vue +218 -0
- package/src/components/DlRange/DlRange.vue +439 -0
- package/src/components/DlRange/utils.ts +209 -0
- package/src/components/DlSearch.vue +155 -0
- package/src/components/DlSelect/DlSelect.vue +992 -0
- package/src/components/DlSelect/SelectOption.vue +261 -0
- package/src/components/DlSelect/index.ts +4 -0
- package/src/components/DlSelect/utils.ts +43 -0
- package/src/components/DlSkeleton.vue +72 -0
- package/src/components/DlSlider/DlSlider.vue +243 -0
- package/src/components/DlSlider/components/DlSliderBase.vue +380 -0
- package/src/components/DlSlider/components/DlSliderInput.vue +123 -0
- package/src/components/DlSlider/components/index.ts +4 -0
- package/src/components/DlSlider/index.ts +3 -0
- package/src/components/DlSlider/sliderStyles.scss +109 -0
- package/src/components/DlSlider/useSlider.ts +277 -0
- package/src/components/DlSlider/utils.ts +7 -0
- package/src/components/DlSmartSearch/DlJsonEditor.vue +309 -0
- package/src/components/DlSmartSearch/DlSmartSearch.vue +333 -0
- package/src/components/DlSmartSearch/DlSmartSearchInput.vue +741 -0
- package/src/components/DlSmartSearch/DlSuggestionsDropdown.vue +73 -0
- package/src/components/DlSmartSearch/highlightSyntax.ts +169 -0
- package/src/components/DlSmartSearch/index.ts +4 -0
- package/src/components/DlSmartSearch/types.ts +36 -0
- package/src/components/DlSmartSearch/utils.ts +45 -0
- package/src/components/DlStepper/DlStepper.vue +196 -0
- package/src/components/DlStepper/DlStepperContainer.vue +55 -0
- package/src/components/DlStepper/DlStepperContent.vue +101 -0
- package/src/components/DlStepper/DlStepperFooter.vue +133 -0
- package/src/components/DlStepper/DlStepperHeader.vue +49 -0
- package/src/components/DlStepper/DlStepperSidebar.vue +167 -0
- package/src/components/DlStepper/Step.ts +101 -0
- package/src/components/DlStepper/Stepper.ts +107 -0
- package/src/components/DlStepper/index.ts +7 -0
- package/src/components/DlStepper/interfaces.ts +11 -0
- package/src/components/DlSwitch.vue +280 -0
- package/src/components/DlTabPanels/DlTabPanel.vue +22 -0
- package/src/components/DlTabPanels/DlTabPanels.vue +41 -0
- package/src/components/DlTabPanels/index.ts +4 -0
- package/src/components/DlTabPanels/utils.ts +19 -0
- package/src/components/DlTable/DlTable.vue +1264 -0
- package/src/components/DlTable/DlTd.vue +109 -0
- package/src/components/DlTable/DlTh.vue +126 -0
- package/src/components/DlTable/DlTr.vue +44 -0
- package/src/components/DlTable/ResizableManager.ts +233 -0
- package/src/components/DlTable/dl-table-styles.scss +466 -0
- package/src/components/DlTable/hooks/tableActions.ts +64 -0
- package/src/components/DlTable/hooks/tableColumnSelection.ts +112 -0
- package/src/components/DlTable/hooks/tableFilter.ts +42 -0
- package/src/components/DlTable/hooks/tablePagination.ts +197 -0
- package/src/components/DlTable/hooks/tableRowExpand.ts +55 -0
- package/src/components/DlTable/hooks/tableRowSelection.ts +106 -0
- package/src/components/DlTable/hooks/tableSort.ts +125 -0
- package/src/components/DlTable/index.ts +6 -0
- package/src/components/DlTable/types.ts +96 -0
- package/src/components/DlTabs/DlTab.vue +146 -0
- package/src/components/DlTabs/DlTabs.vue +192 -0
- package/src/components/DlTabs/TabsWrapper.vue +104 -0
- package/src/components/DlTabs/index.ts +4 -0
- package/src/components/DlTabs/types.ts +8 -0
- package/src/components/DlTextArea.vue +151 -0
- package/src/components/DlTextHolder.vue +65 -0
- package/src/components/DlTextInput.vue +753 -0
- package/src/components/DlThemeProvider.vue +41 -0
- package/src/components/DlTimePicker/DlTimeCounter.vue +81 -0
- package/src/components/DlTimePicker/DlTimePicker.vue +151 -0
- package/src/components/DlTimePicker/DlTimePickerInput.vue +311 -0
- package/src/components/DlTimePicker/index.ts +3 -0
- package/src/components/DlTimePicker/types.ts +4 -0
- package/src/components/DlTooltip.vue +456 -0
- package/src/components/DlTrend.vue +97 -0
- package/src/components/DlTypography.vue +87 -0
- package/src/components/DlVirtualScroll/DlVirtualScroll.vue +290 -0
- package/src/components/DlVirtualScroll/index.ts +3 -0
- package/src/components/DlVirtualScroll/useVirtualScroll.ts +833 -0
- package/src/components/DlWidget/DlWidget.vue +50 -0
- package/src/components/DlWidget/DlWidgetGrid.vue +360 -0
- package/src/components/DlWidget/index.ts +4 -0
- package/src/components/DlWidget/types.ts +6 -0
- package/src/components/DlWidget/utils.ts +30 -0
- package/src/components/index.ts +118 -0
- package/src/demo/DlAccordionDemo.vue +60 -0
- package/src/demo/DlAlertDemo.vue +54 -0
- package/src/demo/DlAvatarDemo.vue +43 -0
- package/src/demo/DlBadgeDemo.vue +65 -0
- package/src/demo/DlButtonDemo.vue +266 -0
- package/src/demo/DlCheckboxDemo.vue +50 -0
- package/src/demo/DlChipDemo.vue +181 -0
- package/src/demo/DlColorPickerDemo.vue +43 -0
- package/src/demo/DlCounterDemo.vue +53 -0
- package/src/demo/DlDateTimeRangeDemo.vue +217 -0
- package/src/demo/DlDialogBoxDemo.vue +175 -0
- package/src/demo/DlDropdownButtonDemo.vue +260 -0
- package/src/demo/DlIconDemo.vue +47 -0
- package/src/demo/DlLinkDemo.vue +23 -0
- package/src/demo/DlListDemo.vue +177 -0
- package/src/demo/DlMenuDemo.vue +524 -0
- package/src/demo/DlOptionGroupDemo.vue +79 -0
- package/src/demo/DlPaginationDemo.vue +44 -0
- package/src/demo/DlPanelContainerDemo.vue +221 -0
- package/src/demo/DlPopupDemo.vue +58 -0
- package/src/demo/DlProgressBarDemo.vue +22 -0
- package/src/demo/DlProgressChartDemo.vue +71 -0
- package/src/demo/DlRadioDemo.vue +35 -0
- package/src/demo/DlRangeDemo.vue +44 -0
- package/src/demo/DlSearchDemo.vue +27 -0
- package/src/demo/DlSelectDemo.vue +355 -0
- package/src/demo/DlSkeletonDemo.vue +20 -0
- package/src/demo/DlSliderDemo.vue +47 -0
- package/src/demo/DlStepperDemo/CenteredStepperInDialogBox.vue +260 -0
- package/src/demo/DlStepperDemo/SimpleStepper.vue +202 -0
- package/src/demo/DlStepperDemo/StepperInDialogBox.vue +261 -0
- package/src/demo/DlStepperDemo/index.ts +5 -0
- package/src/demo/DlStepperDemo/steps/AssignmentsStep.vue +97 -0
- package/src/demo/DlStepperDemo/steps/DataStep.vue +158 -0
- package/src/demo/DlStepperDemo/steps/GeneralStep.vue +106 -0
- package/src/demo/DlStepperDemo/steps/InstructionStep.vue +176 -0
- package/src/demo/DlStepperDemo/steps/QualityStep.vue +65 -0
- package/src/demo/DlSwitchDemo.vue +49 -0
- package/src/demo/DlTableDemo.vue +475 -0
- package/src/demo/DlTabsDemo.vue +67 -0
- package/src/demo/DlTdDemo.vue +19 -0
- package/src/demo/DlTextAreaDemo.vue +37 -0
- package/src/demo/DlTextHolderDemo.vue +42 -0
- package/src/demo/DlTextInputDemo.vue +89 -0
- package/src/demo/DlThDemo.vue +32 -0
- package/src/demo/DlTooltipDemo.vue +60 -0
- package/src/demo/DlTrDemo.vue +18 -0
- package/src/demo/DlTrendDemo.vue +25 -0
- package/src/demo/DlTypographyDemo.vue +93 -0
- package/src/demo/DlWidgetDemo.vue +157 -0
- package/src/demo/SmartSearchDemo/DlSmartSearchDemo.vue +202 -0
- package/src/demo/SmartSearchDemo/schema.ts +44 -0
- package/src/demo/index.ts +141 -0
- package/src/directives/TouchPan.ts +525 -0
- package/src/env.d.ts +8 -0
- package/src/hooks/use-anchor.ts +223 -0
- package/src/hooks/use-model-toggle.ts +181 -0
- package/src/hooks/use-portal.ts +104 -0
- package/src/hooks/use-scroll-target.ts +53 -0
- package/src/hooks/use-size-observer.ts +24 -0
- package/src/hooks/use-suggestions.ts +355 -0
- package/src/hooks/use-tick.ts +32 -0
- package/src/hooks/use-timeout.ts +20 -0
- package/src/hooks/use-transition.ts +32 -0
- package/src/hooks/use-window-size.ts +25 -0
- package/src/hooks/useForm.ts +12 -0
- package/src/index.ts +7 -0
- package/src/main.ts +4 -0
- package/src/models.ts +4 -0
- package/src/types.ts +6 -0
- package/src/utils/calcs.ts +18 -0
- package/src/utils/click-outside.ts +108 -0
- package/src/utils/component-name-parser.ts +1 -0
- package/src/utils/css-color-names.ts +150 -0
- package/src/utils/dom.ts +55 -0
- package/src/utils/draggable-table.ts +416 -0
- package/src/utils/escape-key.ts +54 -0
- package/src/utils/events.ts +67 -0
- package/src/utils/focus-manager.ts +33 -0
- package/src/utils/focusout.ts +29 -0
- package/src/utils/format.ts +3 -0
- package/src/utils/getColor.ts +17 -0
- package/src/utils/getLighterGradient.ts +36 -0
- package/src/utils/getRootStyles.ts +52 -0
- package/src/utils/global-config.ts +6 -0
- package/src/utils/global-nodes.ts +42 -0
- package/src/utils/includes.ts +3 -0
- package/src/utils/index.ts +29 -0
- package/src/utils/inject-object-prop.ts +21 -0
- package/src/utils/input-sizes.ts +7 -0
- package/src/utils/is-ellipsis-active.ts +3 -0
- package/src/utils/is-in-viewport.ts +13 -0
- package/src/utils/is.ts +15 -0
- package/src/utils/key-composition.ts +17 -0
- package/src/utils/keyCodes.ts +12 -0
- package/src/utils/logger/ConsoleLogger.ts +65 -0
- package/src/utils/logger/ILogger.ts +8 -0
- package/src/utils/logger/index.ts +8 -0
- package/src/utils/nav-keys-constants.ts +1 -0
- package/src/utils/portal.ts +55 -0
- package/src/utils/position-engine.ts +381 -0
- package/src/utils/render.ts +36 -0
- package/src/utils/ripple.ts +7 -0
- package/src/utils/scroll.ts +73 -0
- package/src/utils/selection.ts +15 -0
- package/src/utils/sort.ts +7 -0
- package/src/utils/splitByQuotes.ts +32 -0
- package/src/utils/string.ts +6 -0
- package/src/utils/teleport.ts +14 -0
- package/src/utils/theme.ts +2 -0
- package/src/utils/vm.ts +16 -0
- package/storybook.js +8 -0
- package/tsconfig.json +44 -0
- package/tsconfig.node.json +8 -0
- package/types.ts +1 -0
- package/vite.config.ts +13 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div style="display: flex; gap: 8px">
|
|
4
|
+
<dl-button
|
|
5
|
+
color="dl-color-positive"
|
|
6
|
+
label="Completed"
|
|
7
|
+
@click="$emit('complete-click')"
|
|
8
|
+
/>
|
|
9
|
+
<dl-button
|
|
10
|
+
color="dl-color-warning"
|
|
11
|
+
label="Warning"
|
|
12
|
+
@click="$emit('warning-click')"
|
|
13
|
+
/>
|
|
14
|
+
<dl-button
|
|
15
|
+
color="dl-color-negative"
|
|
16
|
+
label="Error"
|
|
17
|
+
@click="$emit('error-click')"
|
|
18
|
+
/>
|
|
19
|
+
<dl-button
|
|
20
|
+
label="Reset"
|
|
21
|
+
@click="$emit('reset-click')"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="inputs-container">
|
|
25
|
+
<dl-select
|
|
26
|
+
v-model="dataset"
|
|
27
|
+
title="Dataset"
|
|
28
|
+
required
|
|
29
|
+
:options="['Rotem Shaham']"
|
|
30
|
+
/>
|
|
31
|
+
<span>
|
|
32
|
+
<dl-typography color="dl-color-medium">Folder or DQL (Optional)</dl-typography>
|
|
33
|
+
<div style="height: 8px" />
|
|
34
|
+
<dl-option-group
|
|
35
|
+
v-model="dql"
|
|
36
|
+
inline
|
|
37
|
+
:options="[
|
|
38
|
+
{ label: 'Option 1', value: 1 },
|
|
39
|
+
{ label: 'Option 2', value: 2 }
|
|
40
|
+
]"
|
|
41
|
+
/>
|
|
42
|
+
</span>
|
|
43
|
+
<dl-typography>
|
|
44
|
+
<dl-typography
|
|
45
|
+
style="display: inline-block"
|
|
46
|
+
color="dl-color-medium"
|
|
47
|
+
>
|
|
48
|
+
Scope Items:
|
|
49
|
+
</dl-typography>
|
|
50
|
+
All Items (500)
|
|
51
|
+
</dl-typography>
|
|
52
|
+
<span>
|
|
53
|
+
<dl-typography color="dl-color-medium">Filter Items *</dl-typography>
|
|
54
|
+
<div style="height: 8px" />
|
|
55
|
+
<div style="display: flex; align-items: center">
|
|
56
|
+
<dl-button
|
|
57
|
+
size="s"
|
|
58
|
+
outlined
|
|
59
|
+
label="Percentage"
|
|
60
|
+
/>
|
|
61
|
+
<dl-button
|
|
62
|
+
size="s"
|
|
63
|
+
outlined
|
|
64
|
+
label="Items"
|
|
65
|
+
color="dl-color-separator"
|
|
66
|
+
text-color="dl-color-darker"
|
|
67
|
+
/>
|
|
68
|
+
<dl-text-input
|
|
69
|
+
v-model="percentage"
|
|
70
|
+
style="width: 60px; margin: 0 10px 0 15px"
|
|
71
|
+
size="m"
|
|
72
|
+
without-root-padding
|
|
73
|
+
disable-clear-btn
|
|
74
|
+
/>
|
|
75
|
+
<dl-typography color="dl-color-medium">Items Limit</dl-typography>
|
|
76
|
+
</div>
|
|
77
|
+
<hr class="separator">
|
|
78
|
+
</span>
|
|
79
|
+
<dl-typography>Total Items: 120</dl-typography>
|
|
80
|
+
<span>
|
|
81
|
+
<dl-typography
|
|
82
|
+
style="margin-bottom: 6px"
|
|
83
|
+
color="dl-color-medium"
|
|
84
|
+
>Setting (Optional)</dl-typography>
|
|
85
|
+
<dl-alert type="info">WEBM Conversion is executed as a project service and incurs
|
|
86
|
+
compute costs. Set service compute resources according to
|
|
87
|
+
planned workload.</dl-alert>
|
|
88
|
+
</span>
|
|
89
|
+
<span style="display: flex; align-items: flex-start; gap: 10px">
|
|
90
|
+
<dl-checkbox v-model="enforce" />
|
|
91
|
+
<dl-typography>
|
|
92
|
+
Enforce WEBM conversion on 8 video items for frame-accurate
|
|
93
|
+
annotations.
|
|
94
|
+
<dl-link
|
|
95
|
+
style="display: inline-block"
|
|
96
|
+
size="12px"
|
|
97
|
+
color="dl-color-secondary"
|
|
98
|
+
href="/"
|
|
99
|
+
>
|
|
100
|
+
Learn more</dl-link>.
|
|
101
|
+
</dl-typography>
|
|
102
|
+
</span>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</template>
|
|
106
|
+
|
|
107
|
+
<script lang="ts">
|
|
108
|
+
import { defineComponent } from 'vue-demi'
|
|
109
|
+
import {
|
|
110
|
+
DlButton,
|
|
111
|
+
DlCheckbox,
|
|
112
|
+
DlTextInput,
|
|
113
|
+
DlTypography,
|
|
114
|
+
DlOptionGroup,
|
|
115
|
+
DlSelect,
|
|
116
|
+
DlLink,
|
|
117
|
+
DlAlert
|
|
118
|
+
} from '../../../components'
|
|
119
|
+
export default defineComponent({
|
|
120
|
+
components: {
|
|
121
|
+
DlButton,
|
|
122
|
+
DlTypography,
|
|
123
|
+
DlTextInput,
|
|
124
|
+
DlOptionGroup,
|
|
125
|
+
DlSelect,
|
|
126
|
+
DlCheckbox,
|
|
127
|
+
DlLink,
|
|
128
|
+
DlAlert
|
|
129
|
+
},
|
|
130
|
+
emits: ['reset-click', 'error-click', 'complete-click', 'warning-click'],
|
|
131
|
+
data() {
|
|
132
|
+
return {
|
|
133
|
+
dql: 1,
|
|
134
|
+
dataset: 'Rotem Shaham',
|
|
135
|
+
percentage: '100%',
|
|
136
|
+
enforce: true
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
})
|
|
140
|
+
</script>
|
|
141
|
+
|
|
142
|
+
<style lang="scss" scoped>
|
|
143
|
+
.inputs-container {
|
|
144
|
+
padding: 20px 0 10px;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
align-items: flex-start;
|
|
148
|
+
gap: 20px;
|
|
149
|
+
width: calc(100% - 2px);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.separator {
|
|
153
|
+
padding-top: 4px;
|
|
154
|
+
border: none;
|
|
155
|
+
width: 305px;
|
|
156
|
+
border-bottom: 1px solid var(--dl-color-separator);
|
|
157
|
+
}
|
|
158
|
+
</style>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div style="display: flex; gap: 8px">
|
|
4
|
+
<dl-button
|
|
5
|
+
color="dl-color-positive"
|
|
6
|
+
label="Completed"
|
|
7
|
+
@click="$emit('complete-click')"
|
|
8
|
+
/>
|
|
9
|
+
<dl-button
|
|
10
|
+
color="dl-color-warning"
|
|
11
|
+
label="Warning"
|
|
12
|
+
@click="$emit('warning-click')"
|
|
13
|
+
/>
|
|
14
|
+
<dl-button
|
|
15
|
+
color="dl-color-negative"
|
|
16
|
+
label="Error"
|
|
17
|
+
@click="$emit('error-click')"
|
|
18
|
+
/>
|
|
19
|
+
<dl-button
|
|
20
|
+
label="Reset"
|
|
21
|
+
@click="$emit('reset-click')"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="inputs-container">
|
|
25
|
+
<dl-text-input
|
|
26
|
+
without-root-padding
|
|
27
|
+
required
|
|
28
|
+
title="Name"
|
|
29
|
+
/>
|
|
30
|
+
<span>
|
|
31
|
+
<dl-typography color="dl-color-medium">Type *</dl-typography>
|
|
32
|
+
<span style="height: 10px" />
|
|
33
|
+
<dl-option-group
|
|
34
|
+
v-model="type"
|
|
35
|
+
inline
|
|
36
|
+
:options="[
|
|
37
|
+
{ label: 'Option 1', value: 1 },
|
|
38
|
+
{ label: 'Option 2', value: 2 }
|
|
39
|
+
]"
|
|
40
|
+
/>
|
|
41
|
+
</span>
|
|
42
|
+
<dl-select
|
|
43
|
+
v-model="owner"
|
|
44
|
+
title="Owner"
|
|
45
|
+
required
|
|
46
|
+
:options="['Rotem Shaham', 'Fadi Atamny', 'Orily Shefler']"
|
|
47
|
+
/>
|
|
48
|
+
<dl-select
|
|
49
|
+
v-model="status"
|
|
50
|
+
title="Task Status"
|
|
51
|
+
required
|
|
52
|
+
:options="['To Do', 'In Progress', 'Done']"
|
|
53
|
+
/>
|
|
54
|
+
<dl-select
|
|
55
|
+
v-model="priority"
|
|
56
|
+
title="Priority"
|
|
57
|
+
required
|
|
58
|
+
:options="['High', 'Medium', 'Low']"
|
|
59
|
+
/>
|
|
60
|
+
<dl-text-input
|
|
61
|
+
without-root-padding
|
|
62
|
+
title="Completion Due Date"
|
|
63
|
+
placeholder="dd/mm/yy"
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<script lang="ts">
|
|
70
|
+
import { defineComponent } from 'vue-demi'
|
|
71
|
+
import {
|
|
72
|
+
DlButton,
|
|
73
|
+
DlTextInput,
|
|
74
|
+
DlSelect,
|
|
75
|
+
DlOptionGroup,
|
|
76
|
+
DlTypography
|
|
77
|
+
} from '../../../components'
|
|
78
|
+
export default defineComponent({
|
|
79
|
+
components: {
|
|
80
|
+
DlButton,
|
|
81
|
+
DlTypography,
|
|
82
|
+
DlOptionGroup,
|
|
83
|
+
DlTextInput,
|
|
84
|
+
DlSelect
|
|
85
|
+
},
|
|
86
|
+
emits: ['reset-click', 'error-click', 'complete-click', 'warning-click'],
|
|
87
|
+
data() {
|
|
88
|
+
return {
|
|
89
|
+
owner: 'Rotem Shaham',
|
|
90
|
+
type: 1,
|
|
91
|
+
status: 'To do',
|
|
92
|
+
priority: 'High'
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
</script>
|
|
97
|
+
|
|
98
|
+
<style lang="scss" scoped>
|
|
99
|
+
.inputs-container {
|
|
100
|
+
padding: 20px 0 10px;
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
gap: 20px;
|
|
104
|
+
width: calc(100% - 2px);
|
|
105
|
+
}
|
|
106
|
+
</style>
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div style="display: flex; gap: 8px">
|
|
4
|
+
<dl-button
|
|
5
|
+
color="dl-color-positive"
|
|
6
|
+
label="Completed"
|
|
7
|
+
@click="$emit('complete-click')"
|
|
8
|
+
/>
|
|
9
|
+
<dl-button
|
|
10
|
+
color="dl-color-warning"
|
|
11
|
+
label="Warning"
|
|
12
|
+
@click="$emit('warning-click')"
|
|
13
|
+
/>
|
|
14
|
+
<dl-button
|
|
15
|
+
color="dl-color-negative"
|
|
16
|
+
label="Error"
|
|
17
|
+
@click="$emit('error-click')"
|
|
18
|
+
/>
|
|
19
|
+
<dl-button
|
|
20
|
+
label="Reset"
|
|
21
|
+
@click="$emit('reset-click')"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="inputs-container">
|
|
25
|
+
<dl-select
|
|
26
|
+
v-model="recipe"
|
|
27
|
+
title="Recipe"
|
|
28
|
+
required
|
|
29
|
+
:options="['Rotem Shaham']"
|
|
30
|
+
/>
|
|
31
|
+
<dl-typography>
|
|
32
|
+
Go to
|
|
33
|
+
<dl-link
|
|
34
|
+
:size="12"
|
|
35
|
+
color="dl-color-secondary"
|
|
36
|
+
style="display: inline-block"
|
|
37
|
+
>
|
|
38
|
+
Recipes Page
|
|
39
|
+
</dl-link>
|
|
40
|
+
to create a new recipe.
|
|
41
|
+
</dl-typography>
|
|
42
|
+
<span>
|
|
43
|
+
<dl-typography color="dl-color-medium">2. Instruction Document</dl-typography>
|
|
44
|
+
<div style="height: 10px" />
|
|
45
|
+
<dl-typography>Lorem Ipsum Dolot Sit Amat.Pdf</dl-typography>
|
|
46
|
+
</span>
|
|
47
|
+
<span>
|
|
48
|
+
<dl-typography color="dl-color-medium">Instruction Range</dl-typography>
|
|
49
|
+
<div style="height: 4px" />
|
|
50
|
+
<dl-option-group
|
|
51
|
+
v-model="range"
|
|
52
|
+
:options="[
|
|
53
|
+
{ label: 'All', value: 1 },
|
|
54
|
+
{ label: 'Custom', value: 2 },
|
|
55
|
+
{ label: 'None', value: 3 }
|
|
56
|
+
]"
|
|
57
|
+
/>
|
|
58
|
+
</span>
|
|
59
|
+
<span>
|
|
60
|
+
<dl-typography color="dl-color-medium">Tools Settings (Optional)</dl-typography>
|
|
61
|
+
<div style="height: 10px" />
|
|
62
|
+
<dl-checkbox
|
|
63
|
+
v-model="pixel"
|
|
64
|
+
padding="5px 0px"
|
|
65
|
+
label="Super Pixel"
|
|
66
|
+
/>
|
|
67
|
+
</span>
|
|
68
|
+
<span>
|
|
69
|
+
<dl-typography color="dl-color-medium">Labeling Task Actions</dl-typography>
|
|
70
|
+
<div style="height: 10px" />
|
|
71
|
+
<dl-checkbox
|
|
72
|
+
v-model="auto"
|
|
73
|
+
padding="5px 0px"
|
|
74
|
+
label="Auto apply status on classification tool"
|
|
75
|
+
/>
|
|
76
|
+
<div
|
|
77
|
+
class="labeling-option"
|
|
78
|
+
style="margin-top: 4px"
|
|
79
|
+
>
|
|
80
|
+
<dl-radio
|
|
81
|
+
v-model="labeling"
|
|
82
|
+
label="Complete"
|
|
83
|
+
padding="5px 0px"
|
|
84
|
+
value="complete"
|
|
85
|
+
/>
|
|
86
|
+
<dl-typography
|
|
87
|
+
size="10px"
|
|
88
|
+
color="dl-color-lighter"
|
|
89
|
+
>(Default)</dl-typography>
|
|
90
|
+
<dl-icon
|
|
91
|
+
icon="icon-dl-close"
|
|
92
|
+
size="8px"
|
|
93
|
+
/>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="labeling-option">
|
|
96
|
+
<dl-radio
|
|
97
|
+
v-model="labeling"
|
|
98
|
+
label="Disable"
|
|
99
|
+
padding="5px 0px"
|
|
100
|
+
value="disable"
|
|
101
|
+
/>
|
|
102
|
+
<dl-icon
|
|
103
|
+
icon="icon-dl-close"
|
|
104
|
+
size="8px"
|
|
105
|
+
/>
|
|
106
|
+
</div>
|
|
107
|
+
</span>
|
|
108
|
+
<dl-button
|
|
109
|
+
icon="icon-dl-add"
|
|
110
|
+
flat
|
|
111
|
+
class="add-button"
|
|
112
|
+
text-color="dl-color-darker"
|
|
113
|
+
label="Add New Action"
|
|
114
|
+
/>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</template>
|
|
118
|
+
|
|
119
|
+
<script lang="ts">
|
|
120
|
+
import { defineComponent } from 'vue-demi'
|
|
121
|
+
import {
|
|
122
|
+
DlButton,
|
|
123
|
+
DlSelect,
|
|
124
|
+
DlTypography,
|
|
125
|
+
DlLink,
|
|
126
|
+
DlOptionGroup,
|
|
127
|
+
DlRadio,
|
|
128
|
+
DlIcon,
|
|
129
|
+
DlCheckbox
|
|
130
|
+
} from '../../../components'
|
|
131
|
+
export default defineComponent({
|
|
132
|
+
components: {
|
|
133
|
+
DlButton,
|
|
134
|
+
DlCheckbox,
|
|
135
|
+
DlIcon,
|
|
136
|
+
DlOptionGroup,
|
|
137
|
+
DlRadio,
|
|
138
|
+
DlLink,
|
|
139
|
+
DlTypography,
|
|
140
|
+
DlSelect
|
|
141
|
+
},
|
|
142
|
+
emits: ['reset-click', 'error-click', 'complete-click', 'warning-click'],
|
|
143
|
+
data() {
|
|
144
|
+
return {
|
|
145
|
+
recipe: 'Rotem Shaham',
|
|
146
|
+
range: 1,
|
|
147
|
+
auto: true,
|
|
148
|
+
pixel: false,
|
|
149
|
+
labeling: 'complete'
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
})
|
|
153
|
+
</script>
|
|
154
|
+
|
|
155
|
+
<style lang="scss" scoped>
|
|
156
|
+
.inputs-container {
|
|
157
|
+
padding: 20px 0 10px;
|
|
158
|
+
align-items: flex-start;
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
gap: 20px;
|
|
162
|
+
width: calc(100% - 2px);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.add-button {
|
|
166
|
+
padding: 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.labeling-option {
|
|
170
|
+
display: flex;
|
|
171
|
+
align-items: center;
|
|
172
|
+
padding-top: 4px;
|
|
173
|
+
justify-content: space-between;
|
|
174
|
+
width: 140px;
|
|
175
|
+
}
|
|
176
|
+
</style>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div style="display: flex; gap: 8px">
|
|
4
|
+
<dl-button
|
|
5
|
+
color="dl-color-positive"
|
|
6
|
+
label="Completed"
|
|
7
|
+
@click="$emit('complete-click')"
|
|
8
|
+
/>
|
|
9
|
+
<dl-button
|
|
10
|
+
color="dl-color-warning"
|
|
11
|
+
label="Warning"
|
|
12
|
+
@click="$emit('warning-click')"
|
|
13
|
+
/>
|
|
14
|
+
<dl-button
|
|
15
|
+
color="dl-color-negative"
|
|
16
|
+
label="Error"
|
|
17
|
+
@click="$emit('error-click')"
|
|
18
|
+
/>
|
|
19
|
+
<dl-button
|
|
20
|
+
label="Reset"
|
|
21
|
+
@click="$emit('reset-click')"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="inputs-container">
|
|
25
|
+
<dl-checkbox
|
|
26
|
+
v-model="qa"
|
|
27
|
+
padding="5px 0px"
|
|
28
|
+
label="Auto QA task"
|
|
29
|
+
/>
|
|
30
|
+
<dl-checkbox
|
|
31
|
+
v-model="consensus"
|
|
32
|
+
padding="5px 0px"
|
|
33
|
+
label="Consensus"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script lang="ts">
|
|
40
|
+
import { defineComponent } from 'vue-demi'
|
|
41
|
+
import { DlButton, DlCheckbox } from '../../../components'
|
|
42
|
+
export default defineComponent({
|
|
43
|
+
components: {
|
|
44
|
+
DlButton,
|
|
45
|
+
DlCheckbox
|
|
46
|
+
},
|
|
47
|
+
emits: ['reset-click', 'error-click', 'complete-click', 'warning-click'],
|
|
48
|
+
data() {
|
|
49
|
+
return {
|
|
50
|
+
qa: false,
|
|
51
|
+
consensus: false
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<style lang="scss" scoped>
|
|
58
|
+
.inputs-container {
|
|
59
|
+
padding: 20px 0 10px;
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
gap: 20px;
|
|
63
|
+
width: calc(100% - 2px);
|
|
64
|
+
}
|
|
65
|
+
</style>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
Normal switch
|
|
4
|
+
<dl-switch v-model="changingValue" />
|
|
5
|
+
Switch with disabled
|
|
6
|
+
<dl-switch
|
|
7
|
+
v-model="switchValue"
|
|
8
|
+
disabled
|
|
9
|
+
/>
|
|
10
|
+
Switch with value not updating
|
|
11
|
+
<dl-switch v-model="switchValue" />
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="ts">
|
|
16
|
+
import { computed, defineComponent, ref } from 'vue-demi'
|
|
17
|
+
import { DlSwitch } from '../components'
|
|
18
|
+
|
|
19
|
+
export default defineComponent({
|
|
20
|
+
components: { DlSwitch },
|
|
21
|
+
setup() {
|
|
22
|
+
const val = ref(false)
|
|
23
|
+
const changeVal = ref(false)
|
|
24
|
+
|
|
25
|
+
const switchValue = computed({
|
|
26
|
+
get() {
|
|
27
|
+
return val.value
|
|
28
|
+
},
|
|
29
|
+
set(value) {
|
|
30
|
+
console.log('not setting the value to:', value)
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
const changingValue = computed({
|
|
34
|
+
get() {
|
|
35
|
+
return changeVal.value
|
|
36
|
+
},
|
|
37
|
+
set(value: boolean) {
|
|
38
|
+
changeVal.value = value
|
|
39
|
+
console.log('changed value to:', value)
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
changingValue,
|
|
45
|
+
switchValue
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
</script>
|