shared-ritm 1.0.78 → 1.0.80
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
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
q-dialog(ref="DialogRef" :model-value="true" :position="'right'" :class="$style['sheet-dialog']" full-height full-width)
|
|
3
|
+
q-card
|
|
4
|
+
.wrapper
|
|
5
|
+
.sheet-header
|
|
6
|
+
h2 {{ title }}
|
|
7
|
+
.close-button
|
|
8
|
+
q-btn(dense flat icon="close" v-close-popup)
|
|
9
|
+
.loader(v-if="loading")
|
|
10
|
+
q-spinner-audio.loader-spiner(v-if="loading" size="md" :thickness="3" color="primary")
|
|
11
|
+
slot(v-else)
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup lang="ts">
|
|
15
|
+
import { computed, defineEmits, defineProps, withDefaults } from 'vue'
|
|
16
|
+
|
|
17
|
+
interface DialogProps {
|
|
18
|
+
dialogRef: any
|
|
19
|
+
loading: boolean
|
|
20
|
+
title: string
|
|
21
|
+
width?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const props = withDefaults(defineProps<DialogProps>(), {
|
|
25
|
+
width: '976px',
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
const emit = defineEmits(['update:dialogRef'])
|
|
29
|
+
|
|
30
|
+
const DialogRef = computed({
|
|
31
|
+
get() {
|
|
32
|
+
return props.dialogRef
|
|
33
|
+
},
|
|
34
|
+
set(value) {
|
|
35
|
+
emit('update:dialogRef', value)
|
|
36
|
+
},
|
|
37
|
+
})
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<style lang="scss" scoped>
|
|
41
|
+
.wrapper {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
gap: 1rem;
|
|
45
|
+
width: v-bind(width);
|
|
46
|
+
height: 100vh;
|
|
47
|
+
min-height: 100vh;
|
|
48
|
+
position: relative;
|
|
49
|
+
padding: 2rem 2rem 4rem 2rem;
|
|
50
|
+
background-color: #7991ad32;
|
|
51
|
+
font-family: 'NunitoSansFont', sans-serif !important;
|
|
52
|
+
}
|
|
53
|
+
.sheet-header {
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
h2 {
|
|
57
|
+
font-size: 36px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.loader {
|
|
61
|
+
min-width: 976px;
|
|
62
|
+
&-spiner {
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 50%;
|
|
65
|
+
left: 50%;
|
|
66
|
+
z-index: 4;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
</style>
|
|
70
|
+
|
|
71
|
+
<style lang="scss" module>
|
|
72
|
+
.sheet-dialog {
|
|
73
|
+
:global(.q-dialog__inner--minimized) {
|
|
74
|
+
padding: 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
</style>
|
package/src/index.ts
CHANGED
|
@@ -29,6 +29,8 @@ export {
|
|
|
29
29
|
AppLoader,
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
export { default as AppSheet } from '@/common/app-sheet/index.vue'
|
|
33
|
+
|
|
32
34
|
export { ApiService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService }
|
|
33
35
|
|
|
34
36
|
export * from '@/api/types/Api_Tasks'
|