shared-ritm 1.3.24 → 1.3.25
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/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +4946 -4989
- package/dist/shared-ritm.umd.js +103 -103
- package/dist/types/api/services/ComentsServise.d.ts +10 -0
- package/dist/types/api/services/PhotoService.d.ts +51 -38
- package/dist/types/api/services/RepairsService.d.ts +1 -1
- package/dist/types/api/settings/ApiService.d.ts +1 -1
- package/dist/types/api/types/Api_Users.d.ts +43 -0
- package/package.json +65 -65
- package/src/App.vue +2461 -2461
- package/src/api/services/BrigadesService.ts +32 -32
- package/src/api/services/ControlsService.ts +96 -96
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/InstrumentsService.ts +68 -68
- package/src/api/services/MetricsService.ts +123 -123
- package/src/api/services/ModulesService.ts +27 -27
- package/src/api/services/ProjectsService.ts +83 -83
- package/src/api/services/RepairsService.ts +111 -111
- package/src/api/services/ScheduleService.ts +69 -69
- package/src/api/services/SearchService.ts +22 -22
- package/src/api/services/UserService.ts +119 -119
- package/src/api/services/VideoService.ts +108 -108
- package/src/api/settings/ApiService.ts +124 -124
- package/src/api/types/Api_Auth.ts +105 -105
- package/src/api/types/Api_Brigades.ts +36 -36
- package/src/api/types/Api_Controls.ts +111 -111
- package/src/api/types/Api_Equipment.ts +3 -3
- package/src/api/types/Api_Instruments.ts +156 -156
- package/src/api/types/Api_Metrics.ts +5 -5
- package/src/api/types/Api_Modules.ts +21 -21
- package/src/api/types/Api_Projects.ts +62 -62
- package/src/api/types/Api_Repairs.ts +140 -140
- package/src/api/types/Api_Schedule.ts +64 -64
- package/src/api/types/Api_Search.ts +80 -80
- package/src/api/types/Api_Tasks.ts +372 -372
- package/src/api/types/Api_User.ts +146 -146
- package/src/api/types/Api_Video.ts +198 -198
- package/src/common/app-datepicker/AppDatepicker.vue +218 -218
- package/src/common/app-dropdown/AppDropdown.vue +37 -37
- package/src/common/app-input-new/AppInputNew.vue +179 -179
- package/src/common/app-layout/AppLayout.vue +84 -84
- package/src/common/app-modal/index.vue +96 -96
- package/src/common/app-select/AppSelect.vue +2 -0
- package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
- package/src/common/app-sidebar/AppSidebar.vue +174 -174
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +149 -149
- package/src/common/app-table/AppTable.vue +308 -308
- package/src/common/app-table/AppTableLayout.vue +137 -137
- package/src/common/app-table/components/ModalSelect.vue +3 -1
- package/src/common/app-table/components/TableModal.vue +356 -356
- package/src/common/app-table/controllers/useBaseTable.ts +45 -45
- package/src/common/app-table/controllers/useTableModel.ts +102 -102
- package/src/icons/dialogs/SafetyIcon.vue +12 -12
- package/src/index.ts +131 -131
- package/src/styles/variables.sass +12 -12
- package/src/utils/files.ts +19 -19
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-dialog v-model="model">
|
|
3
|
-
<q-card class="modal" :style="{ width, 'max-width': width || 'unset', maxHeight: maxHeight || '600px' }">
|
|
4
|
-
<q-card-section class="section">
|
|
5
|
-
<div v-if="title" class="title">{{ title }}</div>
|
|
6
|
-
|
|
7
|
-
<slot />
|
|
8
|
-
|
|
9
|
-
<div v-if="loading" class="loader-overlay">
|
|
10
|
-
<q-spinner-audio class="loader-spinner" size="md" :thickness="3" color="primary" />
|
|
11
|
-
</div>
|
|
12
|
-
</q-card-section>
|
|
13
|
-
|
|
14
|
-
<q-card-actions align="center" class="btn__wrapper">
|
|
15
|
-
<slot name="actions" />
|
|
16
|
-
</q-card-actions>
|
|
17
|
-
</q-card>
|
|
18
|
-
</q-dialog>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script setup lang="ts">
|
|
22
|
-
import { defineProps, defineEmits, defineModel } from 'vue'
|
|
23
|
-
|
|
24
|
-
type Props = {
|
|
25
|
-
modelValue?: boolean
|
|
26
|
-
title?: string
|
|
27
|
-
width?: string
|
|
28
|
-
loading?: boolean
|
|
29
|
-
maxHeight?: string
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
defineProps<Props>()
|
|
33
|
-
|
|
34
|
-
const emit = defineEmits(['update:modelValue'])
|
|
35
|
-
|
|
36
|
-
const model = defineModel<boolean>()
|
|
37
|
-
</script>
|
|
38
|
-
|
|
39
|
-
<style scoped lang="scss">
|
|
40
|
-
.modal {
|
|
41
|
-
display: grid;
|
|
42
|
-
border-radius: 0.5rem;
|
|
43
|
-
grid-template-rows: 1fr auto;
|
|
44
|
-
font-family: NunitoSansFont, sans-serif;
|
|
45
|
-
color: #1d425d;
|
|
46
|
-
overflow: hidden;
|
|
47
|
-
|
|
48
|
-
.section {
|
|
49
|
-
position: relative;
|
|
50
|
-
display: grid;
|
|
51
|
-
grid-template-rows: auto 1fr;
|
|
52
|
-
justify-items: center;
|
|
53
|
-
gap: 0.5rem;
|
|
54
|
-
background-color: white;
|
|
55
|
-
overflow: auto;
|
|
56
|
-
|
|
57
|
-
.loader-overlay {
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: 100%;
|
|
60
|
-
position: absolute;
|
|
61
|
-
inset: 0;
|
|
62
|
-
z-index: 10;
|
|
63
|
-
background: rgba(255, 255, 255, 0.8);
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
justify-content: center;
|
|
67
|
-
}
|
|
68
|
-
.loader-spinner {
|
|
69
|
-
z-index: 11;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.title {
|
|
74
|
-
font-size: 32px;
|
|
75
|
-
font-weight: 700;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.btn__wrapper {
|
|
79
|
-
width: 100%;
|
|
80
|
-
background-color: var(--light-blue);
|
|
81
|
-
padding: 1rem;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
</style>
|
|
85
|
-
|
|
86
|
-
<style lang="scss">
|
|
87
|
-
.modal {
|
|
88
|
-
.btn__wrapper {
|
|
89
|
-
button {
|
|
90
|
-
padding: 13px 37px;
|
|
91
|
-
border-radius: 4px;
|
|
92
|
-
color: var(--action-text-color);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<q-dialog v-model="model">
|
|
3
|
+
<q-card class="modal" :style="{ width, 'max-width': width || 'unset', maxHeight: maxHeight || '600px' }">
|
|
4
|
+
<q-card-section class="section">
|
|
5
|
+
<div v-if="title" class="title">{{ title }}</div>
|
|
6
|
+
|
|
7
|
+
<slot />
|
|
8
|
+
|
|
9
|
+
<div v-if="loading" class="loader-overlay">
|
|
10
|
+
<q-spinner-audio class="loader-spinner" size="md" :thickness="3" color="primary" />
|
|
11
|
+
</div>
|
|
12
|
+
</q-card-section>
|
|
13
|
+
|
|
14
|
+
<q-card-actions align="center" class="btn__wrapper">
|
|
15
|
+
<slot name="actions" />
|
|
16
|
+
</q-card-actions>
|
|
17
|
+
</q-card>
|
|
18
|
+
</q-dialog>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script setup lang="ts">
|
|
22
|
+
import { defineProps, defineEmits, defineModel } from 'vue'
|
|
23
|
+
|
|
24
|
+
type Props = {
|
|
25
|
+
modelValue?: boolean
|
|
26
|
+
title?: string
|
|
27
|
+
width?: string
|
|
28
|
+
loading?: boolean
|
|
29
|
+
maxHeight?: string
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
defineProps<Props>()
|
|
33
|
+
|
|
34
|
+
const emit = defineEmits(['update:modelValue'])
|
|
35
|
+
|
|
36
|
+
const model = defineModel<boolean>()
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<style scoped lang="scss">
|
|
40
|
+
.modal {
|
|
41
|
+
display: grid;
|
|
42
|
+
border-radius: 0.5rem;
|
|
43
|
+
grid-template-rows: 1fr auto;
|
|
44
|
+
font-family: NunitoSansFont, sans-serif;
|
|
45
|
+
color: #1d425d;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
|
|
48
|
+
.section {
|
|
49
|
+
position: relative;
|
|
50
|
+
display: grid;
|
|
51
|
+
grid-template-rows: auto 1fr;
|
|
52
|
+
justify-items: center;
|
|
53
|
+
gap: 0.5rem;
|
|
54
|
+
background-color: white;
|
|
55
|
+
overflow: auto;
|
|
56
|
+
|
|
57
|
+
.loader-overlay {
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
position: absolute;
|
|
61
|
+
inset: 0;
|
|
62
|
+
z-index: 10;
|
|
63
|
+
background: rgba(255, 255, 255, 0.8);
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
}
|
|
68
|
+
.loader-spinner {
|
|
69
|
+
z-index: 11;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.title {
|
|
74
|
+
font-size: 32px;
|
|
75
|
+
font-weight: 700;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.btn__wrapper {
|
|
79
|
+
width: 100%;
|
|
80
|
+
background-color: var(--light-blue);
|
|
81
|
+
padding: 1rem;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
</style>
|
|
85
|
+
|
|
86
|
+
<style lang="scss">
|
|
87
|
+
.modal {
|
|
88
|
+
.btn__wrapper {
|
|
89
|
+
button {
|
|
90
|
+
padding: 13px 37px;
|
|
91
|
+
border-radius: 4px;
|
|
92
|
+
color: var(--action-text-color);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
</style>
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<q-select
|
|
3
3
|
ref="select"
|
|
4
4
|
v-model="selected"
|
|
5
|
+
:data-test="dataTest"
|
|
5
6
|
:options="filteredOptions"
|
|
6
7
|
:option-value="optionValue"
|
|
7
8
|
:option-label="optionLabel"
|
|
@@ -61,6 +62,7 @@ interface AppQSelectProps {
|
|
|
61
62
|
isDisabled?: boolean
|
|
62
63
|
clearable?: boolean
|
|
63
64
|
search?: boolean
|
|
65
|
+
dataTest?: string
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
const props = defineProps<AppQSelectProps>()
|