@dataloop-ai/components 0.18.5 → 0.18.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/basic/DlAlert/DlAlert.vue +5 -6
- package/src/components/basic/DlAlert/types.ts +1 -0
- package/src/components/basic/types.ts +1 -0
- package/src/components/compound/DlCodeEditor/components/CodeEditor.vue +23 -12
- package/src/components/compound/DlCounters/DlCounters.vue +4 -9
- package/src/components/compound/DlCounters/types.ts +5 -0
- package/src/components/compound/types.ts +2 -0
- package/src/components/essential/{DlPageLayout/DlPageLayout.vue → DlLayout/DlLayout.vue} +11 -11
- package/src/components/essential/DlLayout/index.ts +2 -0
- package/src/components/essential/index.ts +1 -1
- package/src/demos/DlDatasetBrowserLayoutDemo/DlDatasetBrowserLayoutDemo.vue +85 -0
- package/src/demos/DlDatasetBrowserLayoutDemo/index.ts +2 -0
- package/src/demos/DlDemoPage.vue +9 -6
- package/src/demos/DlLayoutDemo.vue +25 -0
- package/src/demos/DlPageLayoutDemo/DlPageLayoutDemo.vue +81 -0
- package/src/demos/DlPageLayoutDemo/index.ts +2 -0
- package/src/demos/DlStudioLayoutDemo/DlStudioLayoutDemo.vue +85 -0
- package/src/{layouts/DlStudioLayout/components/Demo → demos/DlStudioLayoutDemo/components}/StudioLeftDrawer.vue +2 -2
- package/src/{layouts/DlStudioLayout/components/Demo → demos/DlStudioLayoutDemo/components}/StudioTabsMenu.vue +2 -2
- package/src/{layouts/DlStudioLayout/components/Demo → demos/DlStudioLayoutDemo/components}/TabMenu/FilterMenu.vue +1 -1
- package/src/{layouts/DlStudioLayout/components/Demo → demos/DlStudioLayoutDemo/components}/TabMenu/TabMenuAnnotations.vue +1 -6
- package/src/{layouts/DlStudioLayout/components/Demo → demos/DlStudioLayoutDemo/components}/TabMenu/TabMenuItem.vue +1 -1
- package/src/demos/DlStudioLayoutDemo/index.ts +2 -0
- package/src/demos/index.ts +2 -2
- package/src/index.ts +2 -0
- package/src/layouts/{DlDatasetBrowser/DlDatasetBrowser.vue → DlDatasetBrowserLayout/DlDatasetBrowserLayout.vue} +6 -6
- package/src/layouts/DlDatasetBrowserLayout/index.ts +2 -0
- package/src/layouts/DlPageLayout/DlPageLayout.vue +61 -0
- package/src/layouts/DlPageLayout/components/DlPageLayoutHeader/DlPageLayoutHeader.vue +76 -0
- package/src/layouts/DlPageLayout/components/DlPageLayoutHeader/index.ts +2 -0
- package/src/layouts/DlPageLayout/components/index.ts +1 -0
- package/src/{components/essential → layouts}/DlPageLayout/index.ts +2 -0
- package/src/layouts/DlStudioLayout/DlStudioLayout.vue +6 -9
- package/src/layouts/index.ts +3 -0
- package/src/demos/DlPageLayoutDemo.vue +0 -146
- package/src/layouts/DlStudioLayout/components/Demo/StudioHeader.vue +0 -121
- package/src/layouts/DlStudioLayout/components/NavigationDrawer.vue +0 -147
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/DatasetFooter.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/DatasetHeader.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/DatasetLeftDrawer.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/DatasetMainContent.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/DatasetRightDrawer.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/MainContent/ActionsMenu.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/MainContent/AutomationMenu.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/MainContent/CardView.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/MainContent/CardViewGallery.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/MainContent/CardViewTable.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/MainContent/EmptyState/LayoutEmptyState.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/MainContent/EmptyState/UploadData.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/MainContent/MainContentImages.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/MainContent/MainContentNav.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/NavbarKpi.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/NavbarSearch.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/SearchFilterMenu.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/filters/AddFilter.vue +0 -0
- /package/src/{layouts/DlDatasetBrowser/DemoComponents → demos/DlDatasetBrowserLayoutDemo/components}/types/imageMetadata.ts +0 -0
- /package/src/{layouts/DlStudioLayout → demos/DlStudioLayoutDemo}/components/LayoutNavbar.vue +0 -0
- /package/src/{layouts/DlStudioLayout/components/Demo → demos/DlStudioLayoutDemo/components}/LeftMenuContent.vue +0 -0
- /package/src/{layouts/DlStudioLayout → demos/DlStudioLayoutDemo}/components/ListAutocomplete.vue +0 -0
- /package/src/{layouts/DlStudioLayout/components/Demo → demos/DlStudioLayoutDemo/components}/StudioFooter.vue +0 -0
- /package/src/{layouts/DlStudioLayout/components/Demo → demos/DlStudioLayoutDemo/components}/StudioMainContent.vue +0 -0
- /package/src/{layouts/DlStudioLayout → demos/DlStudioLayoutDemo}/types/HorizontalItems.ts +0 -0
- /package/src/{layouts/DlStudioLayout → demos/DlStudioLayoutDemo}/types/VerticalItems.ts +0 -0
package/package.json
CHANGED
|
@@ -51,24 +51,23 @@ import {
|
|
|
51
51
|
} from 'vue-demi'
|
|
52
52
|
import { getColor, includes } from '../../../utils'
|
|
53
53
|
import { DlIcon } from '../../essential'
|
|
54
|
+
import { DlAlertType } from './types'
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const typeToIconMap: Record<AlertType, string> = {
|
|
56
|
+
const typeToIconMap: Record<DlAlertType, string> = {
|
|
58
57
|
info: 'icon-dl-info-filled',
|
|
59
58
|
success: 'icon-dl-approve-filled',
|
|
60
59
|
warning: 'icon-dl-alert-filled',
|
|
61
60
|
error: 'icon-dl-error-filled'
|
|
62
61
|
}
|
|
63
62
|
|
|
64
|
-
const typeToIconColorMap: Record<
|
|
63
|
+
const typeToIconColorMap: Record<DlAlertType, string> = {
|
|
65
64
|
info: 'dl-color-info',
|
|
66
65
|
success: 'dl-color-positive',
|
|
67
66
|
warning: 'dl-color-warning',
|
|
68
67
|
error: 'dl-color-negative'
|
|
69
68
|
}
|
|
70
69
|
|
|
71
|
-
const typeToBackgroundMap: Record<
|
|
70
|
+
const typeToBackgroundMap: Record<DlAlertType, string> = {
|
|
72
71
|
info: 'dl-color-info-background',
|
|
73
72
|
success: 'dl-color-positive-background',
|
|
74
73
|
warning: 'dl-color-warning-background',
|
|
@@ -115,7 +114,7 @@ export default defineComponent({
|
|
|
115
114
|
emits: ['update:model-value'],
|
|
116
115
|
setup(props, { emit }) {
|
|
117
116
|
const show = ref(props.modelValue)
|
|
118
|
-
const type = props.type as
|
|
117
|
+
const type = props.type as DlAlertType
|
|
119
118
|
const typeIcon = typeToIconMap[type]
|
|
120
119
|
const icon = computed(() => typeToIconMap[type])
|
|
121
120
|
const iconColor = computed(() => typeToIconColorMap[type])
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DlAlertType = 'info' | 'success' | 'warning' | 'error'
|
|
@@ -8,15 +8,7 @@
|
|
|
8
8
|
'read-only': readOnly,
|
|
9
9
|
wrap: wrap
|
|
10
10
|
}"
|
|
11
|
-
:style="
|
|
12
|
-
width: width,
|
|
13
|
-
height: height,
|
|
14
|
-
zIndex: zIndex,
|
|
15
|
-
maxWidth: maxWidth,
|
|
16
|
-
minWidth: minWidth,
|
|
17
|
-
maxHeight: maxHeight,
|
|
18
|
-
minHeight: minHeight
|
|
19
|
-
}"
|
|
11
|
+
:style="editorStyle"
|
|
20
12
|
>
|
|
21
13
|
<div
|
|
22
14
|
class="hljs"
|
|
@@ -211,7 +203,7 @@ export default defineComponent({
|
|
|
211
203
|
},
|
|
212
204
|
borderRadius: {
|
|
213
205
|
type: String,
|
|
214
|
-
default: '
|
|
206
|
+
default: '0px'
|
|
215
207
|
},
|
|
216
208
|
languages: {
|
|
217
209
|
type: Array as PropType<string[][]>,
|
|
@@ -259,7 +251,13 @@ export default defineComponent({
|
|
|
259
251
|
height,
|
|
260
252
|
fontSize,
|
|
261
253
|
header,
|
|
262
|
-
padding
|
|
254
|
+
padding,
|
|
255
|
+
width,
|
|
256
|
+
zIndex,
|
|
257
|
+
minHeight,
|
|
258
|
+
maxHeight,
|
|
259
|
+
minWidth,
|
|
260
|
+
maxWidth
|
|
263
261
|
} = toRefs(props)
|
|
264
262
|
const scrollBarWidth = ref(0)
|
|
265
263
|
const scrollBarHeight = ref(0)
|
|
@@ -312,6 +310,18 @@ export default defineComponent({
|
|
|
312
310
|
return height.value == 'auto' ? false : true
|
|
313
311
|
})
|
|
314
312
|
|
|
313
|
+
const editorStyle = computed<Record<string, any>>(() => {
|
|
314
|
+
return {
|
|
315
|
+
width: width.value,
|
|
316
|
+
height: height.value,
|
|
317
|
+
zIndex: zIndex.value,
|
|
318
|
+
maxWidth: maxWidth.value,
|
|
319
|
+
minWidth: minWidth.value,
|
|
320
|
+
maxHeight: maxHeight.value,
|
|
321
|
+
minHeight: minHeight.value
|
|
322
|
+
}
|
|
323
|
+
})
|
|
324
|
+
|
|
315
325
|
watch(contentValue, () => {
|
|
316
326
|
nextTick(() => {
|
|
317
327
|
code.value!.textContent = contentValue.value
|
|
@@ -520,7 +530,8 @@ export default defineComponent({
|
|
|
520
530
|
tab,
|
|
521
531
|
changeLang,
|
|
522
532
|
updateValue,
|
|
523
|
-
textAreaStyle
|
|
533
|
+
textAreaStyle,
|
|
534
|
+
editorStyle
|
|
524
535
|
}
|
|
525
536
|
}
|
|
526
537
|
})
|
|
@@ -34,12 +34,7 @@ import { v4 } from 'uuid'
|
|
|
34
34
|
import { defineComponent, PropType } from 'vue-demi'
|
|
35
35
|
import { DlKpi } from '../../basic'
|
|
36
36
|
import { DlKpiCounterFormat } from '../../types'
|
|
37
|
-
|
|
38
|
-
interface CounterItem {
|
|
39
|
-
value?: number
|
|
40
|
-
text: string
|
|
41
|
-
subtext?: string
|
|
42
|
-
}
|
|
37
|
+
import { DlCounterItem } from './types'
|
|
43
38
|
|
|
44
39
|
export default defineComponent({
|
|
45
40
|
name: 'DlCounters',
|
|
@@ -52,9 +47,9 @@ export default defineComponent({
|
|
|
52
47
|
default: false
|
|
53
48
|
},
|
|
54
49
|
items: {
|
|
55
|
-
type: Array as PropType<
|
|
56
|
-
default: ():
|
|
57
|
-
validator(value:
|
|
50
|
+
type: Array as PropType<DlCounterItem[]>,
|
|
51
|
+
default: (): DlCounterItem[] => [],
|
|
52
|
+
validator(value: DlCounterItem[]): boolean {
|
|
58
53
|
return value.length <= 8
|
|
59
54
|
}
|
|
60
55
|
},
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="dl-
|
|
3
|
+
class="dl-layout"
|
|
4
4
|
:style="cssVars"
|
|
5
5
|
>
|
|
6
|
-
<div class="dl-
|
|
6
|
+
<div class="dl-layout__main-head">
|
|
7
7
|
<slot name="header" />
|
|
8
8
|
</div>
|
|
9
|
-
<div class="dl-
|
|
9
|
+
<div class="dl-layout__left-drawer">
|
|
10
10
|
<slot name="leftDrawer" />
|
|
11
11
|
</div>
|
|
12
|
-
<div class="dl-
|
|
12
|
+
<div class="dl-layout__right-drawer">
|
|
13
13
|
<slot name="rightDrawer" />
|
|
14
14
|
</div>
|
|
15
|
-
<div class="dl-
|
|
16
|
-
<slot name="
|
|
15
|
+
<div class="dl-layout__content">
|
|
16
|
+
<slot name="body" />
|
|
17
17
|
</div>
|
|
18
|
-
<div class="dl-
|
|
18
|
+
<div class="dl-layout__footer">
|
|
19
19
|
<slot name="footer" />
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<script lang="ts">
|
|
25
25
|
import { defineComponent, computed } from 'vue-demi'
|
|
26
26
|
export default defineComponent({
|
|
27
|
-
name: '
|
|
27
|
+
name: 'DlLayout',
|
|
28
28
|
props: {
|
|
29
29
|
template: {
|
|
30
30
|
type: String,
|
|
@@ -34,7 +34,7 @@ export default defineComponent({
|
|
|
34
34
|
setup(props) {
|
|
35
35
|
const cssVars = computed(() => {
|
|
36
36
|
return {
|
|
37
|
-
'--dl-
|
|
37
|
+
'--dl-layout-template': props.template
|
|
38
38
|
}
|
|
39
39
|
})
|
|
40
40
|
return {
|
|
@@ -45,11 +45,11 @@ export default defineComponent({
|
|
|
45
45
|
</script>
|
|
46
46
|
|
|
47
47
|
<style scoped lang="scss">
|
|
48
|
-
.dl-
|
|
48
|
+
.dl-layout {
|
|
49
49
|
height: 100vh;
|
|
50
50
|
width: 100%;
|
|
51
51
|
display: grid;
|
|
52
|
-
grid-template-areas: var(--dl-
|
|
52
|
+
grid-template-areas: var(--dl-layout-template);
|
|
53
53
|
grid-template-rows: auto 1fr auto;
|
|
54
54
|
grid-template-columns: auto 1fr auto;
|
|
55
55
|
box-shadow: 1px 1px 1px var(--dl-color-separator);
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<dl-button @click="isOpenedDatasetBrowserModal = true">
|
|
4
|
+
Dataset Browser
|
|
5
|
+
</dl-button>
|
|
6
|
+
<div
|
|
7
|
+
v-if="isOpenedDatasetBrowserModal"
|
|
8
|
+
class="fullscreen-template"
|
|
9
|
+
>
|
|
10
|
+
<div class="fullscreen-template__close">
|
|
11
|
+
<dl-button
|
|
12
|
+
icon="icon-dl-close"
|
|
13
|
+
flat
|
|
14
|
+
@click="isOpenedDatasetBrowserModal = false"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
<dl-dataset-browser-layout>
|
|
18
|
+
<template #header>
|
|
19
|
+
<dataset-header />
|
|
20
|
+
</template>
|
|
21
|
+
<template #leftDrawer>
|
|
22
|
+
<dataset-left-drawer />
|
|
23
|
+
</template>
|
|
24
|
+
<template #rightDrawer>
|
|
25
|
+
<dataset-right-drawer />
|
|
26
|
+
</template>
|
|
27
|
+
<template #body>
|
|
28
|
+
<dataset-main-content />
|
|
29
|
+
</template>
|
|
30
|
+
<template #footer>
|
|
31
|
+
<dataset-footer />
|
|
32
|
+
</template>
|
|
33
|
+
</dl-dataset-browser-layout>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script lang="ts">
|
|
39
|
+
import { defineComponent, ref } from 'vue-demi'
|
|
40
|
+
import { DlButton } from '../../components'
|
|
41
|
+
import { DlDatasetBrowserLayout } from '../../layouts'
|
|
42
|
+
import DatasetHeader from './components/DatasetHeader.vue'
|
|
43
|
+
import DatasetMainContent from './components/DatasetMainContent.vue'
|
|
44
|
+
import DatasetLeftDrawer from './components/DatasetLeftDrawer.vue'
|
|
45
|
+
import DatasetRightDrawer from './components/DatasetRightDrawer.vue'
|
|
46
|
+
import DatasetFooter from './components/DatasetFooter.vue'
|
|
47
|
+
|
|
48
|
+
export default defineComponent({
|
|
49
|
+
name: 'DlLayoutDemo',
|
|
50
|
+
components: {
|
|
51
|
+
DlButton,
|
|
52
|
+
DlDatasetBrowserLayout,
|
|
53
|
+
DatasetHeader,
|
|
54
|
+
DatasetLeftDrawer,
|
|
55
|
+
DatasetRightDrawer,
|
|
56
|
+
DatasetFooter,
|
|
57
|
+
DatasetMainContent
|
|
58
|
+
},
|
|
59
|
+
setup() {
|
|
60
|
+
const isOpenedDatasetBrowserModal = ref(false)
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
isOpenedDatasetBrowserModal
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<style scoped lang="scss">
|
|
70
|
+
.fullscreen-template {
|
|
71
|
+
position: fixed;
|
|
72
|
+
height: 100vh;
|
|
73
|
+
width: 100%;
|
|
74
|
+
top: 0;
|
|
75
|
+
left: 0;
|
|
76
|
+
background-color: var(--dl-color-panel-background);
|
|
77
|
+
z-index: 1000;
|
|
78
|
+
|
|
79
|
+
&__close {
|
|
80
|
+
position: absolute;
|
|
81
|
+
right: 10px;
|
|
82
|
+
z-index: 2;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
</style>
|
package/src/demos/DlDemoPage.vue
CHANGED
|
@@ -139,11 +139,13 @@ export default defineComponent({
|
|
|
139
139
|
const demos: {
|
|
140
140
|
name: string
|
|
141
141
|
component: any
|
|
142
|
-
}[] = names
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
}[] = names
|
|
143
|
+
.map((n: string) => ({
|
|
144
|
+
name: n,
|
|
145
|
+
// @ts-ignore
|
|
146
|
+
component: Demos[n]
|
|
147
|
+
}))
|
|
148
|
+
.sort((a, b) => a.name.localeCompare(b.name))
|
|
147
149
|
|
|
148
150
|
const filteredDemos = computed(() => {
|
|
149
151
|
if (!filterTerm.value || !filterTerm.value.length) {
|
|
@@ -198,7 +200,8 @@ export default defineComponent({
|
|
|
198
200
|
|
|
199
201
|
<style scoped lang="scss">
|
|
200
202
|
.layout-wrapper {
|
|
201
|
-
display:
|
|
203
|
+
display: grid;
|
|
204
|
+
grid-template-columns: 12% 85%;
|
|
202
205
|
}
|
|
203
206
|
|
|
204
207
|
.sidebar {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<DlStudioLayoutDemo />
|
|
4
|
+
<DlDatasetBrowserLayoutDemo />
|
|
5
|
+
<DlPageLayoutDemo />
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script lang="ts">
|
|
10
|
+
import { defineComponent } from 'vue-demi'
|
|
11
|
+
import { DlStudioLayoutDemo } from './DlStudioLayoutDemo'
|
|
12
|
+
import { DlDatasetBrowserLayoutDemo } from './DlDatasetBrowserLayoutDemo'
|
|
13
|
+
import { DlPageLayoutDemo } from './DlPageLayoutDemo'
|
|
14
|
+
|
|
15
|
+
export default defineComponent({
|
|
16
|
+
name: 'DlLayoutDemo',
|
|
17
|
+
components: {
|
|
18
|
+
DlStudioLayoutDemo,
|
|
19
|
+
DlDatasetBrowserLayoutDemo,
|
|
20
|
+
DlPageLayoutDemo
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<style scoped lang="scss"></style>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<dl-button @click="isOpenPageLayoutModal = true">
|
|
4
|
+
Page Layout
|
|
5
|
+
</dl-button>
|
|
6
|
+
<div
|
|
7
|
+
v-if="isOpenPageLayoutModal"
|
|
8
|
+
class="fullscreen-template"
|
|
9
|
+
>
|
|
10
|
+
<div class="fullscreen-template__close">
|
|
11
|
+
<dl-button
|
|
12
|
+
icon="icon-dl-close"
|
|
13
|
+
flat
|
|
14
|
+
@click="isOpenPageLayoutModal = false"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
<dl-page-layout
|
|
18
|
+
title="test title"
|
|
19
|
+
:counters="[
|
|
20
|
+
{
|
|
21
|
+
value: 200,
|
|
22
|
+
text: 'All dataset items'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: 100,
|
|
26
|
+
text: 'Selected items'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: 12,
|
|
30
|
+
text: 'Annotated items'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
value: 17,
|
|
34
|
+
text: 'Annotations'
|
|
35
|
+
}
|
|
36
|
+
]"
|
|
37
|
+
>
|
|
38
|
+
<div>This is a body</div>
|
|
39
|
+
</dl-page-layout>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script lang="ts">
|
|
45
|
+
import { defineComponent, ref } from 'vue-demi'
|
|
46
|
+
import { DlButton } from '../../components'
|
|
47
|
+
import { DlPageLayout } from '../../layouts'
|
|
48
|
+
|
|
49
|
+
export default defineComponent({
|
|
50
|
+
name: 'DlLayoutDemo',
|
|
51
|
+
components: {
|
|
52
|
+
DlButton,
|
|
53
|
+
DlPageLayout
|
|
54
|
+
},
|
|
55
|
+
setup() {
|
|
56
|
+
const isOpenPageLayoutModal = ref(false)
|
|
57
|
+
|
|
58
|
+
return {
|
|
59
|
+
isOpenPageLayoutModal
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<style scoped lang="scss">
|
|
66
|
+
.fullscreen-template {
|
|
67
|
+
position: fixed;
|
|
68
|
+
height: 100vh;
|
|
69
|
+
width: 100%;
|
|
70
|
+
top: 0;
|
|
71
|
+
left: 0;
|
|
72
|
+
background-color: var(--dl-color-panel-background);
|
|
73
|
+
z-index: 1000;
|
|
74
|
+
|
|
75
|
+
&__close {
|
|
76
|
+
position: absolute;
|
|
77
|
+
right: 10px;
|
|
78
|
+
z-index: 2;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<dl-button @click="isOpenedStudioModal = true">
|
|
4
|
+
Studio Layout
|
|
5
|
+
</dl-button>
|
|
6
|
+
<div
|
|
7
|
+
v-if="isOpenedStudioModal"
|
|
8
|
+
class="fullscreen-template"
|
|
9
|
+
>
|
|
10
|
+
<div class="fullscreen-template__close">
|
|
11
|
+
<dl-button
|
|
12
|
+
flat
|
|
13
|
+
icon="icon-dl-close"
|
|
14
|
+
@click="isOpenedStudioModal = false"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
<DlStudioLayout>
|
|
18
|
+
<template #left-menu>
|
|
19
|
+
<left-menu-content />
|
|
20
|
+
</template>
|
|
21
|
+
<template #leftDrawer>
|
|
22
|
+
<studio-left-drawer />
|
|
23
|
+
</template>
|
|
24
|
+
<template #rightDrawer>
|
|
25
|
+
<studio-tabs-menu />
|
|
26
|
+
</template>
|
|
27
|
+
<template #body>
|
|
28
|
+
<studio-main-content />
|
|
29
|
+
</template>
|
|
30
|
+
<template #footer>
|
|
31
|
+
<studio-footer />
|
|
32
|
+
</template>
|
|
33
|
+
</DlStudioLayout>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script lang="ts">
|
|
39
|
+
import { defineComponent, ref } from 'vue-demi'
|
|
40
|
+
import { DlButton } from '../../components'
|
|
41
|
+
import { DlStudioLayout } from '../../layouts'
|
|
42
|
+
import StudioMainContent from './components/StudioMainContent.vue'
|
|
43
|
+
import LeftMenuContent from './components/LeftMenuContent.vue'
|
|
44
|
+
import StudioTabsMenu from './components/StudioTabsMenu.vue'
|
|
45
|
+
import StudioLeftDrawer from './components/StudioLeftDrawer.vue'
|
|
46
|
+
import StudioFooter from './components/StudioFooter.vue'
|
|
47
|
+
|
|
48
|
+
export default defineComponent({
|
|
49
|
+
name: 'DlStudioLayoutDemo',
|
|
50
|
+
components: {
|
|
51
|
+
DlButton,
|
|
52
|
+
DlStudioLayout,
|
|
53
|
+
StudioMainContent,
|
|
54
|
+
StudioTabsMenu,
|
|
55
|
+
StudioLeftDrawer,
|
|
56
|
+
StudioFooter,
|
|
57
|
+
LeftMenuContent
|
|
58
|
+
},
|
|
59
|
+
setup() {
|
|
60
|
+
const isOpenedStudioModal = ref(false)
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
isOpenedStudioModal
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<style scoped lang="scss">
|
|
70
|
+
.fullscreen-template {
|
|
71
|
+
position: fixed;
|
|
72
|
+
height: 100vh;
|
|
73
|
+
width: 100%;
|
|
74
|
+
top: 0;
|
|
75
|
+
left: 0;
|
|
76
|
+
background-color: var(--dl-color-panel-background);
|
|
77
|
+
z-index: 1000;
|
|
78
|
+
|
|
79
|
+
&__close {
|
|
80
|
+
position: absolute;
|
|
81
|
+
right: 10px;
|
|
82
|
+
z-index: 2;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
</style>
|
|
@@ -117,14 +117,14 @@
|
|
|
117
117
|
|
|
118
118
|
<script lang="ts">
|
|
119
119
|
import { defineComponent, ref } from 'vue-demi'
|
|
120
|
-
import ListAutocomplete from '
|
|
120
|
+
import ListAutocomplete from './ListAutocomplete.vue'
|
|
121
121
|
import {
|
|
122
122
|
DlButton,
|
|
123
123
|
DlCheckbox,
|
|
124
124
|
DlTooltip,
|
|
125
125
|
DlIcon,
|
|
126
126
|
DlTypography
|
|
127
|
-
} from '
|
|
127
|
+
} from '../../../components'
|
|
128
128
|
|
|
129
129
|
export default defineComponent({
|
|
130
130
|
name: 'StudioLeftDrawer',
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
DlTabPanel,
|
|
30
30
|
DlIcon,
|
|
31
31
|
DlButton
|
|
32
|
-
} from '
|
|
33
|
-
import { DlTabDetails } from '
|
|
32
|
+
} from '../../../components'
|
|
33
|
+
import { DlTabDetails } from '../../../components/types'
|
|
34
34
|
|
|
35
35
|
export default defineComponent({
|
|
36
36
|
name: 'StudioTabsMenu',
|
|
@@ -53,12 +53,7 @@
|
|
|
53
53
|
<script lang="ts">
|
|
54
54
|
import { defineComponent, ref } from 'vue-demi'
|
|
55
55
|
import FilterMenu from './FilterMenu.vue'
|
|
56
|
-
import {
|
|
57
|
-
DlSeparator,
|
|
58
|
-
DlButton,
|
|
59
|
-
DlIcon,
|
|
60
|
-
DlInput
|
|
61
|
-
} from '../../../../../components'
|
|
56
|
+
import { DlSeparator, DlButton, DlIcon, DlInput } from '../../../../components'
|
|
62
57
|
|
|
63
58
|
export default defineComponent({
|
|
64
59
|
name: 'TabMenuAnnotations',
|
package/src/demos/index.ts
CHANGED
|
@@ -64,7 +64,7 @@ import DlMarkupTableDemo from './DlMarkupTableDemo.vue'
|
|
|
64
64
|
import DlVirtualScrollDemo from './DlVirtualScrollDemo.vue'
|
|
65
65
|
import DlJsonEditorDemo from './DlJsonEditorDemo.vue'
|
|
66
66
|
import DlThumbnailGallery from './DlThumbnailGalleryDemo.vue'
|
|
67
|
-
import
|
|
67
|
+
import DlLayoutDemo from './DlLayoutDemo.vue'
|
|
68
68
|
import { DlCodeEditorDemo } from './DlCodeEditor'
|
|
69
69
|
|
|
70
70
|
export default {
|
|
@@ -132,5 +132,5 @@ export default {
|
|
|
132
132
|
DlJsonEditorDemo,
|
|
133
133
|
DlThumbnailGallery,
|
|
134
134
|
DlCodeEditorDemo,
|
|
135
|
-
|
|
135
|
+
DlLayoutDemo
|
|
136
136
|
}
|