shared-ritm 1.2.82 → 1.2.83
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 +3066 -3050
- package/dist/shared-ritm.umd.js +269 -269
- package/dist/types/api/services/AuthService.d.ts +1 -1
- package/dist/types/api/services/ComentsServise.d.ts +10 -0
- package/dist/types/api/services/CommentsService.d.ts +10 -0
- package/dist/types/api/services/ControlsService.d.ts +3 -3
- package/dist/types/api/services/FileService.d.ts +3 -4
- package/dist/types/api/services/GanttService.d.ts +1 -1
- package/dist/types/api/services/InstrumentsService.d.ts +2 -2
- package/dist/types/api/services/MetricsService.d.ts +2 -2
- package/dist/types/api/services/PhotoService.d.ts +51 -38
- package/dist/types/api/services/ProjectsService.d.ts +7 -7
- package/dist/types/api/services/RepairsService.d.ts +3 -3
- package/dist/types/api/services/SearchService.d.ts +4 -4
- package/dist/types/api/services/TasksService.d.ts +25 -34
- package/dist/types/api/services/UserService.d.ts +3 -3
- package/dist/types/api/services/VideoService.d.ts +2 -1
- package/dist/types/api/types/Api_Comment.d.ts +37 -0
- package/dist/types/api/types/Api_Files.d.ts +7 -1
- package/dist/types/api/types/Api_Instruments.d.ts +1 -1
- package/dist/types/api/types/Api_Tasks.d.ts +133 -18
- package/dist/types/api/types/Api_Users.d.ts +43 -0
- package/dist/types/index.d.ts +43 -40
- package/dist/types/utils/faceApiHelper.d.ts +40 -0
- package/package.json +1 -1
- package/src/api/services/AuthService.ts +1 -1
- package/src/api/services/CommentsService.ts +24 -0
- package/src/api/services/ControlsService.ts +3 -3
- package/src/api/services/FileService.ts +6 -5
- package/src/api/services/GanttService.ts +1 -1
- package/src/api/services/InstrumentsService.ts +2 -2
- package/src/api/services/MetricsService.ts +2 -2
- package/src/api/services/ProjectsService.ts +10 -10
- package/src/api/services/RepairsService.ts +3 -3
- package/src/api/services/SearchService.ts +5 -5
- package/src/api/services/TasksService.ts +72 -65
- package/src/api/services/UserService.ts +3 -3
- package/src/api/services/VideoService.ts +4 -1
- package/src/api/types/Api_Comment.ts +40 -0
- package/src/api/types/Api_Files.ts +7 -1
- package/src/api/types/Api_Instruments.ts +1 -1
- package/src/api/types/Api_Tasks.ts +144 -18
- package/src/common/app-dialogs/AppConfirmDialog.vue +1 -1
- package/src/index.ts +48 -41
- package/src/shared/styles/general.css +0 -1
- package/src/styles/variables.sass +12 -12
- package/src/{api/services/PhotoService.ts → utils/faceApiHelper.ts} +5 -5
- package/src/utils/helpers.ts +1 -0
|
@@ -1,3 +1,73 @@
|
|
|
1
|
+
import { Api_Comment_Dto } from '../types/Api_Comment'
|
|
2
|
+
export type Api_Tasks_InstrumentHistory_Item_Dto = {
|
|
3
|
+
interval: {
|
|
4
|
+
start_interval: string
|
|
5
|
+
end_interval: string
|
|
6
|
+
minutes: number | null
|
|
7
|
+
user: {
|
|
8
|
+
id: string
|
|
9
|
+
first_name: string
|
|
10
|
+
last_name: string
|
|
11
|
+
patronymic: string | null
|
|
12
|
+
full_name: string
|
|
13
|
+
}
|
|
14
|
+
}[]
|
|
15
|
+
minutes: number
|
|
16
|
+
warehouse: {
|
|
17
|
+
id: string
|
|
18
|
+
name: string
|
|
19
|
+
status: {
|
|
20
|
+
id: string
|
|
21
|
+
name: string
|
|
22
|
+
title: string
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Api_Tasks_AllPersonalUser_Dto = {
|
|
28
|
+
users: Api_Tasks_Personal_User_Dto[]
|
|
29
|
+
unrecognized_users: Api_PersonalUnrecognizedUser[]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type Api_Tasks_Personal_User_Dto = {
|
|
33
|
+
user: Api_Tasks_Position_Assigned_User_Dto
|
|
34
|
+
sum_minutes_interval: number
|
|
35
|
+
interval: {
|
|
36
|
+
start_interval: string
|
|
37
|
+
end_interval: string
|
|
38
|
+
}[]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type Api_PersonalUnrecognizedUser = {
|
|
42
|
+
user_id: string
|
|
43
|
+
start_interval: string
|
|
44
|
+
end_interval: string
|
|
45
|
+
minutes: number
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type Api_Tasks_ReplaceInstrument_Request_Dto = {
|
|
49
|
+
equivalent: string
|
|
50
|
+
origin: string
|
|
51
|
+
task: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type Api_QualityMetric_Request_Dto = {
|
|
55
|
+
id: string
|
|
56
|
+
task_id: string
|
|
57
|
+
name: string
|
|
58
|
+
unit: string
|
|
59
|
+
norm_from: number
|
|
60
|
+
norm_to: number
|
|
61
|
+
metric_before: number | null
|
|
62
|
+
metric_after: number | null
|
|
63
|
+
is_normal: boolean
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type Api_Task_ChangeStatusVerification_Dto = {
|
|
67
|
+
id: string
|
|
68
|
+
name: string
|
|
69
|
+
}
|
|
70
|
+
|
|
1
71
|
export type Api_Tasks_Responsible_Dto = {
|
|
2
72
|
id: string
|
|
3
73
|
first_name: string
|
|
@@ -30,13 +100,15 @@ export type Api_Tasks_Position_Dto = {
|
|
|
30
100
|
display_name: string
|
|
31
101
|
}
|
|
32
102
|
|
|
103
|
+
export type Api_Tasks_Position_Assigned_User_Dto = {
|
|
104
|
+
id: string
|
|
105
|
+
full_name: string
|
|
106
|
+
}
|
|
107
|
+
|
|
33
108
|
export type Api_Tasks_Position_Assigned_Dto = {
|
|
34
|
-
id
|
|
35
|
-
user
|
|
36
|
-
|
|
37
|
-
full_name: string
|
|
38
|
-
}
|
|
39
|
-
position: Api_Tasks_Position_Dto
|
|
109
|
+
id?: number
|
|
110
|
+
user?: Api_Tasks_Position_Assigned_User_Dto | null
|
|
111
|
+
position?: Api_Tasks_Position_Dto
|
|
40
112
|
}
|
|
41
113
|
|
|
42
114
|
export type Api_Tasks_Teams_Dto = {
|
|
@@ -56,6 +128,28 @@ export type Api_Tasks_Equipment_Dto = {
|
|
|
56
128
|
repair_range: number
|
|
57
129
|
}
|
|
58
130
|
|
|
131
|
+
export type Api_Task_VideoSource_Dto = {
|
|
132
|
+
id: string
|
|
133
|
+
name: string
|
|
134
|
+
url: string
|
|
135
|
+
work_zone_by_task: {
|
|
136
|
+
id: string
|
|
137
|
+
title: string
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type Api_Task_QualityMetric_Dto = {
|
|
142
|
+
id: string
|
|
143
|
+
task_id: string
|
|
144
|
+
name: string
|
|
145
|
+
unit: string
|
|
146
|
+
norm_from: number
|
|
147
|
+
norm_to: number
|
|
148
|
+
metric_before: number | null
|
|
149
|
+
metric_after: number | null
|
|
150
|
+
is_normal: boolean
|
|
151
|
+
}
|
|
152
|
+
|
|
59
153
|
export type Api_Tasks_Task_Dto = {
|
|
60
154
|
id: string
|
|
61
155
|
name: string
|
|
@@ -63,29 +157,20 @@ export type Api_Tasks_Task_Dto = {
|
|
|
63
157
|
project_id: string
|
|
64
158
|
description: string
|
|
65
159
|
subtask_counter: number
|
|
66
|
-
subtasks: Api_Tasks_Task_Dto[]
|
|
67
160
|
state_id: null | string
|
|
68
161
|
start_date: string
|
|
69
162
|
end_date: string
|
|
70
163
|
deadline: string
|
|
71
164
|
plan_date: string
|
|
72
165
|
time_to_complete: null | string | number
|
|
73
|
-
time_to_complete_sec: number
|
|
166
|
+
time_to_complete_sec: number | null
|
|
74
167
|
priority: number
|
|
75
168
|
work_zone_id: null | string
|
|
76
169
|
location_id: null | string
|
|
77
170
|
target: any
|
|
78
|
-
|
|
79
|
-
project: Api_Tasks_Project_Dto
|
|
80
|
-
position: Api_Tasks_Position_Dto[]
|
|
81
|
-
assigned: Api_Tasks_Assigned_Dto[]
|
|
82
|
-
instruments: any[]
|
|
171
|
+
instruments?: any[]
|
|
83
172
|
warehouse: any[]
|
|
84
|
-
responsible: Api_Tasks_Responsible_Dto[]
|
|
85
|
-
position_assigned: Api_Tasks_Position_Assigned_Dto[]
|
|
86
|
-
comments: any[]
|
|
87
173
|
files: any[]
|
|
88
|
-
teams: Api_Tasks_Teams_Dto[]
|
|
89
174
|
work_zone: string
|
|
90
175
|
planned_start: null | string
|
|
91
176
|
planned_end: null | string
|
|
@@ -95,7 +180,48 @@ export type Api_Tasks_Task_Dto = {
|
|
|
95
180
|
pause_sec: number
|
|
96
181
|
repair_object: null | string
|
|
97
182
|
isPause: boolean
|
|
183
|
+
defect: string | null
|
|
184
|
+
subtasks: Api_Tasks_Task_Dto[]
|
|
185
|
+
status: Api_Tasks_Status_Dto
|
|
186
|
+
project: Api_Tasks_Project_Dto
|
|
187
|
+
position: Api_Tasks_Position_Dto[]
|
|
188
|
+
assigned: Api_Tasks_Assigned_Dto[]
|
|
189
|
+
responsible: Api_Tasks_Responsible_Dto[]
|
|
190
|
+
position_assigned: Api_Tasks_Position_Assigned_Dto[]
|
|
191
|
+
comments: Api_Comment_Dto[]
|
|
192
|
+
teams: Api_Tasks_Teams_Dto[]
|
|
98
193
|
equipment: Api_Tasks_Equipment_Dto[]
|
|
194
|
+
instrument_types: Api_Task_Instrument_From_Warehouse[]
|
|
195
|
+
quality_metrics: Api_Task_QualityMetric_Dto[]
|
|
196
|
+
video_source: Api_Task_VideoSource_Dto
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type Api_Tasks_Task_Edit_Request_Dto = {
|
|
200
|
+
name: string
|
|
201
|
+
description?: string
|
|
202
|
+
instruments?: string[]
|
|
203
|
+
responsible?: string[]
|
|
204
|
+
equipment?: string
|
|
205
|
+
status: string
|
|
206
|
+
assigned?: string[]
|
|
207
|
+
position_assigned?: unknown[]
|
|
208
|
+
files?: string[]
|
|
209
|
+
position?: unknown[]
|
|
210
|
+
warehouse?: string[]
|
|
211
|
+
teams?: string[]
|
|
212
|
+
video_source_id?: string
|
|
213
|
+
work_zone_id?: string
|
|
214
|
+
state_id?: string
|
|
215
|
+
location_id?: string
|
|
216
|
+
project_id?: string
|
|
217
|
+
priority?: number
|
|
218
|
+
start_date?: string // YYYY-MM-DD HH:MM
|
|
219
|
+
plan_date?: string // YYYY-MM-DD HH:MM
|
|
220
|
+
deadline?: string // YYYY-MM-DD HH:MM
|
|
221
|
+
time_to_complete?: number
|
|
222
|
+
time_to_complete_sec?: number
|
|
223
|
+
target?: string
|
|
224
|
+
repair_object_id?: string
|
|
99
225
|
}
|
|
100
226
|
|
|
101
227
|
export type Api_Task_Instrument_Dto = {
|
|
@@ -164,7 +290,7 @@ export type Api_VideoSource_DTO = {
|
|
|
164
290
|
work_zone_by_task: { id: string; title: string }
|
|
165
291
|
}
|
|
166
292
|
|
|
167
|
-
export type
|
|
293
|
+
export type Api_Task_Dto = {
|
|
168
294
|
id: string
|
|
169
295
|
name: string
|
|
170
296
|
plan_date: string
|
package/src/index.ts
CHANGED
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import AppButton from '
|
|
3
|
-
import AppCheckbox from '
|
|
4
|
-
import AppDatePicker from '
|
|
5
|
-
import AppDatepicker from '
|
|
6
|
-
import AppInput from '
|
|
7
|
-
import AppInputNew from '
|
|
8
|
-
import AppInputSearch from '
|
|
9
|
-
import AppLayout from '
|
|
10
|
-
import AppLayoutHeader from '
|
|
11
|
-
import AppLayoutPage from '
|
|
12
|
-
import AppLoader from '
|
|
13
|
-
import AppSelect from '
|
|
14
|
-
import AppSheet from '
|
|
1
|
+
import './shared/styles/general.css'
|
|
2
|
+
import AppButton from './common/app-button/AppButton.vue'
|
|
3
|
+
import AppCheckbox from './common/app-checkbox/AppCheckbox.vue'
|
|
4
|
+
import AppDatePicker from './common/app-date-picker/AppDatePicker.vue'
|
|
5
|
+
import AppDatepicker from './common/app-datepicker/AppDatepicker.vue'
|
|
6
|
+
import AppInput from './common/app-input/AppInput.vue'
|
|
7
|
+
import AppInputNew from './common/app-input-new/AppInputNew.vue'
|
|
8
|
+
import AppInputSearch from './common/app-input-search/AppInputSearch.vue'
|
|
9
|
+
import AppLayout from './common/app-layout/AppLayout.vue'
|
|
10
|
+
import AppLayoutHeader from './common/app-layout/components/AppLayoutHeader.vue'
|
|
11
|
+
import AppLayoutPage from './common/app-layout/components/AppLayoutPage.vue'
|
|
12
|
+
import AppLoader from './common/app-loader/index.vue'
|
|
13
|
+
import AppSelect from './common/app-select/AppSelect.vue'
|
|
14
|
+
import AppSheet from './common/app-sheet/AppSheet.vue'
|
|
15
15
|
import AppSheetNew from '@/common/app-sheet-new/AppSheetNew.vue'
|
|
16
|
-
import AppSidebar from '
|
|
17
|
-
import AppToggle from '
|
|
18
|
-
import AppWrapper from '
|
|
19
|
-
import AppConfirmDialog from '
|
|
20
|
-
import AppDropdown from '
|
|
21
|
-
import AppTablePagination from '
|
|
22
|
-
import AppTableSearch from '
|
|
23
|
-
import AppTableModal from '
|
|
24
|
-
import AppTable from '
|
|
25
|
-
import AppTableLayout from '
|
|
26
|
-
import AppModalSelect from '
|
|
16
|
+
import AppSidebar from './common/app-sidebar/AppSidebar.vue'
|
|
17
|
+
import AppToggle from './common/app-toggle/AppToggle.vue'
|
|
18
|
+
import AppWrapper from './common/app-wrapper/AppWrapper.vue'
|
|
19
|
+
import AppConfirmDialog from './common/app-dialogs/AppConfirmDialog.vue'
|
|
20
|
+
import AppDropdown from './common/app-dropdown/AppDropdown.vue'
|
|
21
|
+
import AppTablePagination from './common/app-table/components/TablePagination.vue'
|
|
22
|
+
import AppTableSearch from './common/app-table/components/TableSearch.vue'
|
|
23
|
+
import AppTableModal from './common/app-table/components/TableModal.vue'
|
|
24
|
+
import AppTable from './common/app-table/AppTable.vue'
|
|
25
|
+
import AppTableLayout from './common/app-table/AppTableLayout.vue'
|
|
26
|
+
import AppModalSelect from './common/app-table/components/ModalSelect.vue'
|
|
27
27
|
|
|
28
|
-
import ApiService from '
|
|
29
|
-
import useGanttService from '
|
|
30
|
-
import useMetricsService from '
|
|
31
|
-
import useProjectsService from '
|
|
32
|
-
import useRepairsService from '
|
|
33
|
-
import useTasksService from '
|
|
34
|
-
import useAuthService from '
|
|
35
|
-
import useFileService from '
|
|
36
|
-
import useVideoService from '
|
|
37
|
-
import useUserService from '
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
28
|
+
import ApiService from './api/settings/ApiService'
|
|
29
|
+
import useGanttService from './api/services/GanttService'
|
|
30
|
+
import useMetricsService from './api/services/MetricsService'
|
|
31
|
+
import useProjectsService from './api/services/ProjectsService'
|
|
32
|
+
import useRepairsService from './api/services/RepairsService'
|
|
33
|
+
import useTasksService from './api/services/TasksService'
|
|
34
|
+
import useAuthService from './api/services/AuthService'
|
|
35
|
+
import useFileService from './api/services/FileService'
|
|
36
|
+
import useVideoService from './api/services/VideoService'
|
|
37
|
+
import useUserService from './api/services/UserService'
|
|
38
|
+
import useInstrumentsService from './api/services/InstrumentsService'
|
|
39
|
+
import useControlsService from './api/services/ControlsService'
|
|
40
|
+
import useSearchService from './api/services/SearchService'
|
|
41
|
+
import useCommentsService from './api/services/CommentsService'
|
|
42
|
+
|
|
43
|
+
import useFaceApiHelper from './utils/faceApiHelper'
|
|
42
44
|
|
|
43
45
|
export {
|
|
44
46
|
AppButton,
|
|
@@ -80,10 +82,12 @@ export {
|
|
|
80
82
|
useControlsService,
|
|
81
83
|
useVideoService,
|
|
82
84
|
useUserService,
|
|
83
|
-
usePhotoService,
|
|
84
85
|
useInstrumentsService,
|
|
85
86
|
useSearchService,
|
|
87
|
+
useCommentsService,
|
|
88
|
+
useFaceApiHelper,
|
|
86
89
|
}
|
|
90
|
+
|
|
87
91
|
export { useBaseTable } from './common/app-table/controllers/useBaseTable'
|
|
88
92
|
export { useTableModel } from './common/app-table/controllers/useTableModel'
|
|
89
93
|
export { useColumnSelector } from './common/app-table/controllers/useColumnSelector'
|
|
@@ -92,6 +96,7 @@ export type { FilterOption, TableModel, TableColumn } from './common/app-table/c
|
|
|
92
96
|
|
|
93
97
|
export type { NotificationType } from './utils/notification'
|
|
94
98
|
export { notificationSettings } from './utils/notification'
|
|
99
|
+
|
|
95
100
|
export * from './utils/helpers'
|
|
96
101
|
|
|
97
102
|
export * from './api/types/Api_Service'
|
|
@@ -102,4 +107,6 @@ export * from './api/types/Api_Controls'
|
|
|
102
107
|
export * from './api/types/Api_Instruments'
|
|
103
108
|
export * from './api/types/Api_Search'
|
|
104
109
|
export * from './api/types/Api_User'
|
|
105
|
-
|
|
110
|
+
export * from './api/types/Api_Comment'
|
|
111
|
+
export * from './api/types/Api_Files'
|
|
112
|
+
// export * from '../types/Api_Metrics'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
$primary : #1976D2
|
|
2
|
-
$secondary : #C4C4C4
|
|
3
|
-
$accent : #665BA6
|
|
4
|
-
$positive : #3B9F69
|
|
5
|
-
$negative : #C10015
|
|
6
|
-
$info : #31CCEC
|
|
7
|
-
$warning : #F2C037
|
|
8
|
-
|
|
9
|
-
$dark : #1D1D1D
|
|
10
|
-
$dark-page : #121212
|
|
11
|
-
|
|
12
|
-
$secondary: #1D1D1D
|
|
1
|
+
$primary : #1976D2
|
|
2
|
+
$secondary : #C4C4C4
|
|
3
|
+
$accent : #665BA6
|
|
4
|
+
$positive : #3B9F69
|
|
5
|
+
$negative : #C10015
|
|
6
|
+
$info : #31CCEC
|
|
7
|
+
$warning : #F2C037
|
|
8
|
+
|
|
9
|
+
$dark : #1D1D1D
|
|
10
|
+
$dark-page : #121212
|
|
11
|
+
|
|
12
|
+
$secondary: #1D1D1D
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as faceapi from 'face-api.js'
|
|
2
2
|
|
|
3
|
-
class
|
|
3
|
+
class FaceApiHelper {
|
|
4
4
|
// async getFaceSnapshot(inputImage: any, box: any) {
|
|
5
5
|
// const regionsToExtract = [new faceapi.Rect(box.x, box.y, box.width, box.height)]
|
|
6
6
|
// const faceImages = await faceapi.extractFaces(inputImage, regionsToExtract)
|
|
@@ -129,9 +129,9 @@ class PhotoService {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
let
|
|
132
|
+
let helper: FaceApiHelper
|
|
133
133
|
|
|
134
|
-
export default function
|
|
135
|
-
if (!
|
|
136
|
-
return
|
|
134
|
+
export default function useFaceApiHelper() {
|
|
135
|
+
if (!helper) helper = new FaceApiHelper()
|
|
136
|
+
return helper
|
|
137
137
|
}
|
package/src/utils/helpers.ts
CHANGED