shared-ritm 1.3.29 → 1.3.30

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.
Files changed (56) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +8790 -8712
  3. package/dist/shared-ritm.umd.js +340 -340
  4. package/dist/types/api/services/PhotoService.d.ts +38 -51
  5. package/dist/types/api/services/RepairsService.d.ts +1 -1
  6. package/dist/types/api/services/VideoService.d.ts +1 -0
  7. package/dist/types/api/settings/ApiService.d.ts +1 -1
  8. package/dist/types/api/types/Api_Video.d.ts +12 -2
  9. package/package.json +64 -64
  10. package/src/App.vue +2461 -2461
  11. package/src/api/services/BrigadesService.ts +32 -32
  12. package/src/api/services/ControlsService.ts +96 -96
  13. package/src/api/services/EquipmentService.ts +29 -29
  14. package/src/api/services/InstrumentsService.ts +68 -68
  15. package/src/api/services/MetricsService.ts +123 -123
  16. package/src/api/services/ModulesService.ts +27 -27
  17. package/src/api/services/ProjectsService.ts +83 -83
  18. package/src/api/services/RepairsService.ts +111 -111
  19. package/src/api/services/ScheduleService.ts +69 -69
  20. package/src/api/services/SearchService.ts +22 -22
  21. package/src/api/services/UserService.ts +119 -119
  22. package/src/api/services/VideoService.ts +113 -108
  23. package/src/api/settings/ApiService.ts +124 -124
  24. package/src/api/types/Api_Auth.ts +105 -105
  25. package/src/api/types/Api_Brigades.ts +36 -36
  26. package/src/api/types/Api_Controls.ts +111 -111
  27. package/src/api/types/Api_Equipment.ts +3 -3
  28. package/src/api/types/Api_Instruments.ts +156 -156
  29. package/src/api/types/Api_Metrics.ts +5 -5
  30. package/src/api/types/Api_Modules.ts +21 -21
  31. package/src/api/types/Api_Projects.ts +62 -62
  32. package/src/api/types/Api_Repairs.ts +186 -186
  33. package/src/api/types/Api_Schedule.ts +64 -64
  34. package/src/api/types/Api_Search.ts +80 -80
  35. package/src/api/types/Api_Tasks.ts +372 -372
  36. package/src/api/types/Api_User.ts +146 -146
  37. package/src/api/types/Api_Video.ts +240 -198
  38. package/src/common/app-datepicker/AppDatepicker.vue +218 -218
  39. package/src/common/app-dropdown/AppDropdown.vue +37 -37
  40. package/src/common/app-input-new/AppInputNew.vue +179 -179
  41. package/src/common/app-layout/AppLayout.vue +84 -84
  42. package/src/common/app-modal/index.vue +96 -96
  43. package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
  44. package/src/common/app-sidebar/AppSidebar.vue +174 -174
  45. package/src/common/app-sidebar/components/SidebarMenuItem.vue +149 -149
  46. package/src/common/app-table/AppTable.vue +313 -313
  47. package/src/common/app-table/AppTableLayout.vue +137 -137
  48. package/src/common/app-table/components/ModalSelect.vue +298 -298
  49. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  50. package/src/common/app-table/controllers/useTableModel.ts +102 -102
  51. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  52. package/src/index.ts +131 -131
  53. package/src/styles/variables.sass +12 -12
  54. package/src/utils/files.ts +19 -19
  55. package/dist/types/api/services/ComentsServise.d.ts +0 -10
  56. package/dist/types/api/types/Api_Users.d.ts +0 -43
@@ -1,62 +1,62 @@
1
- export type Api_Project_Repair = {
2
- id: string
3
- name: string
4
- start_date: null | string
5
- end_date: null | string
6
- }
7
-
8
- export type Api_Project_Team = {
9
- id: string
10
- name: string
11
- display_name: string
12
- description: string
13
- created_at: string
14
- updated_at: string
15
- pivot: {
16
- project_id: string
17
- team_id: string
18
- }
19
- }
20
-
21
- export type Api_Project_Category = {
22
- code: number
23
- display_name: string
24
- name: string
25
- }
26
-
27
- export type Api_Project_Status = {
28
- id: string
29
- name: string
30
- title: string
31
- description: string
32
- created_at: string | null
33
- updated_at: string | null
34
- deleted_at: string | null
35
- }
36
-
37
- export type Api_Project_Dto = {
38
- id: string
39
- name: string
40
- description: null
41
- image: null
42
- plan_date: string | null
43
- deadline: string | null
44
- fact_start_date: string | null
45
- fact_end_date: string | null
46
- planned_start: string | null
47
- planned_end: string | null
48
- deleted_at: string | null
49
- completed_at: string | null
50
- total_tasks: number
51
- is_archive: boolean
52
- teams: Api_Project_Team[]
53
- status: Api_Project_Status
54
- category: Api_Project_Category
55
- repair: Api_Project_Repair | null
56
- schedule_id: string | null
57
- }
58
-
59
- export type Api_Project_Add_Root_Intervals_Payload = {
60
- history: number
61
- with_status_in_progress: number
62
- }
1
+ export type Api_Project_Repair = {
2
+ id: string
3
+ name: string
4
+ start_date: null | string
5
+ end_date: null | string
6
+ }
7
+
8
+ export type Api_Project_Team = {
9
+ id: string
10
+ name: string
11
+ display_name: string
12
+ description: string
13
+ created_at: string
14
+ updated_at: string
15
+ pivot: {
16
+ project_id: string
17
+ team_id: string
18
+ }
19
+ }
20
+
21
+ export type Api_Project_Category = {
22
+ code: number
23
+ display_name: string
24
+ name: string
25
+ }
26
+
27
+ export type Api_Project_Status = {
28
+ id: string
29
+ name: string
30
+ title: string
31
+ description: string
32
+ created_at: string | null
33
+ updated_at: string | null
34
+ deleted_at: string | null
35
+ }
36
+
37
+ export type Api_Project_Dto = {
38
+ id: string
39
+ name: string
40
+ description: null
41
+ image: null
42
+ plan_date: string | null
43
+ deadline: string | null
44
+ fact_start_date: string | null
45
+ fact_end_date: string | null
46
+ planned_start: string | null
47
+ planned_end: string | null
48
+ deleted_at: string | null
49
+ completed_at: string | null
50
+ total_tasks: number
51
+ is_archive: boolean
52
+ teams: Api_Project_Team[]
53
+ status: Api_Project_Status
54
+ category: Api_Project_Category
55
+ repair: Api_Project_Repair | null
56
+ schedule_id: string | null
57
+ }
58
+
59
+ export type Api_Project_Add_Root_Intervals_Payload = {
60
+ history: number
61
+ with_status_in_progress: number
62
+ }
@@ -1,186 +1,186 @@
1
- import { Api_Status_DTO, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
2
- import { Api_Project_Category } from '@/api/types/Api_Projects'
3
- import { Api_User_Dto } from '@/api/types/Api_Controls'
4
- import { Api_Work_Zone_Search } from '@/api/types/Api_Video'
5
-
6
- export type Api_Team = {
7
- id: string
8
- display_name: string
9
- }
10
-
11
- export type Api_Equipment_Short_Dto = {
12
- id: string
13
- name: string
14
- }
15
-
16
- export type Api_Repairs = {
17
- id: string
18
- name: string
19
- }
20
-
21
- export type Api_Projects = {
22
- id: string
23
- name: string
24
- }
25
-
26
- export type OptionFilters = {
27
- teams?: Api_Team[]
28
- equipments?: Api_Equipment_Short_Dto[]
29
- }
30
-
31
- export type Api_Equipment_Full_Dto = {
32
- id: string
33
- model: null | string
34
- name: string
35
- registration_number: string
36
- repair_frequency: number
37
- repair_range: number
38
- }
39
-
40
- export type Api_Work_Zone_By_Tasks = {
41
- coordinates: { x0: number; x1: number; y0: number; y1: number }
42
- id: string
43
- tasks: unknown[]
44
- title: string
45
- }
46
-
47
- export type Api_Task_Video_Source = {
48
- id: string
49
- name: string
50
- work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
51
- }
52
-
53
- export type Api_Task_Video_Source_Shape = {
54
- id: string
55
- label: string
56
- text: string | null
57
- points: unknown[]
58
- shape_type: string
59
- }
60
-
61
- export type Api_Task_Video_Source_Work_Zone = Pick<
62
- Api_Work_Zone_Search,
63
- | 'id'
64
- | 'detect_helmet'
65
- | 'detect_mask'
66
- | 'detect_work_time'
67
- | 'detect_work_zone'
68
- | 'is_parent'
69
- | 'name'
70
- | 'x0'
71
- | 'x1'
72
- | 'y0'
73
- | 'y1'
74
- | 'video_source_id'
75
- | 'parent_id'
76
- | 'type'
77
- | 'title'
78
- > & {
79
- points: unknown[]
80
- tasks: Pick<
81
- Api_Tasks_Task_Dto,
82
- 'id' | 'deadline' | 'expired' | 'name' | 'plan_date' | 'responsible' | 'status' | 'time_to_complete_sec'
83
- >[]
84
- }
85
-
86
- export type Api_Task_Video_Source_Stream = {
87
- id: string
88
- name: string
89
- url: string
90
- width: number
91
- height: number
92
- fps: string
93
- login: string
94
- password: string
95
- comment: string | null
96
- work_zones: Api_Task_Video_Source_Work_Zone[]
97
- video_source: Partial<Api_Task_Video_Source_Stream>[]
98
- related_video_sources: { id: string; name: string }[]
99
- interactive_zones: unknown
100
- domed: boolean
101
- snapshot_path: string
102
- shapes: Api_Task_Video_Source_Shape[]
103
- }
104
-
105
- export type Api_Create_Repair_With_Equipments = {
106
- name: string
107
- display_name: string
108
- description?: string
109
- equipment_id: string
110
- power_output_MWh?: number
111
- cost_per_MWh?: number
112
- category: number
113
- user_id_list?: string[]
114
- team_id_list?: string[]
115
- }
116
-
117
- export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipments, 'category' | 'equipment_id'> & {
118
- repair_template_id: string
119
- plan_start_date: string
120
- task_id_list: string[]
121
- }
122
-
123
- export type Api_Update_Repair = {
124
- name?: string
125
- display_name?: string
126
- description?: string | null
127
- power_output_MWh?: number | null
128
- cost_per_MWh?: number | null
129
- category?: number
130
- user_id_list?: string[]
131
- team_id_list?: string[]
132
- }
133
-
134
- export type Api_Repair_Dto = {
135
- id: string
136
- name: string
137
- display_name: string
138
- description: string
139
- start_date: string
140
- end_date: string
141
- projects: Api_Projects[]
142
- equipments: Api_Equipment_Full_Dto[]
143
- category: Api_Project_Category
144
- completed_at: string | null
145
- controllers: Api_User_Dto[]
146
- cost_per_MWh: number | null
147
- power_output_MWh: number | null
148
- has_instruments_plan: boolean
149
- has_positions_plan: boolean
150
- plan_start_date: string | null
151
- status: Api_Status_DTO
152
- teams: Api_Team[]
153
- }
154
-
155
- export type Api_Repair_Template = {
156
- id: string
157
- repair_seconds: number
158
- equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
159
- category: {
160
- display_name: string
161
- name: string
162
- code: number
163
- }
164
- task_list: string
165
- }
166
-
167
- export type Api_Repair_Intersection_Task = {
168
- position: {
169
- id: string
170
- display_name: string
171
- name: string
172
- }
173
- status: Omit<Api_Status_DTO, 'id'>
174
- task: Pick<
175
- Api_Tasks_Task_Dto,
176
- 'id' | 'name' | 'plan_date' | 'planned_start' | 'fact_start_date' | 'planned_end' | 'deadline' | 'fact_end_date'
177
- >
178
- }
179
-
180
- export type Api_Repair_Intersection = {
181
- tasks: Api_Repair_Intersection_Task[]
182
- user: {
183
- id: string | null
184
- full_name: string
185
- }
186
- }
1
+ import { Api_Status_DTO, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
2
+ import { Api_Project_Category } from '@/api/types/Api_Projects'
3
+ import { Api_User_Dto } from '@/api/types/Api_Controls'
4
+ import { Api_Work_Zone_Search } from '@/api/types/Api_Video'
5
+
6
+ export type Api_Team = {
7
+ id: string
8
+ display_name: string
9
+ }
10
+
11
+ export type Api_Equipment_Short_Dto = {
12
+ id: string
13
+ name: string
14
+ }
15
+
16
+ export type Api_Repairs = {
17
+ id: string
18
+ name: string
19
+ }
20
+
21
+ export type Api_Projects = {
22
+ id: string
23
+ name: string
24
+ }
25
+
26
+ export type OptionFilters = {
27
+ teams?: Api_Team[]
28
+ equipments?: Api_Equipment_Short_Dto[]
29
+ }
30
+
31
+ export type Api_Equipment_Full_Dto = {
32
+ id: string
33
+ model: null | string
34
+ name: string
35
+ registration_number: string
36
+ repair_frequency: number
37
+ repair_range: number
38
+ }
39
+
40
+ export type Api_Work_Zone_By_Tasks = {
41
+ coordinates: { x0: number; x1: number; y0: number; y1: number }
42
+ id: string
43
+ tasks: unknown[]
44
+ title: string
45
+ }
46
+
47
+ export type Api_Task_Video_Source = {
48
+ id: string
49
+ name: string
50
+ work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
51
+ }
52
+
53
+ export type Api_Task_Video_Source_Shape = {
54
+ id: string
55
+ label: string
56
+ text: string | null
57
+ points: unknown[]
58
+ shape_type: string
59
+ }
60
+
61
+ export type Api_Task_Video_Source_Work_Zone = Pick<
62
+ Api_Work_Zone_Search,
63
+ | 'id'
64
+ | 'detect_helmet'
65
+ | 'detect_mask'
66
+ | 'detect_work_time'
67
+ | 'detect_work_zone'
68
+ | 'is_parent'
69
+ | 'name'
70
+ | 'x0'
71
+ | 'x1'
72
+ | 'y0'
73
+ | 'y1'
74
+ | 'video_source_id'
75
+ | 'parent_id'
76
+ | 'type'
77
+ | 'title'
78
+ > & {
79
+ points: unknown[]
80
+ tasks: Pick<
81
+ Api_Tasks_Task_Dto,
82
+ 'id' | 'deadline' | 'expired' | 'name' | 'plan_date' | 'responsible' | 'status' | 'time_to_complete_sec'
83
+ >[]
84
+ }
85
+
86
+ export type Api_Task_Video_Source_Stream = {
87
+ id: string
88
+ name: string
89
+ url: string
90
+ width: number
91
+ height: number
92
+ fps: string
93
+ login: string
94
+ password: string
95
+ comment: string | null
96
+ work_zones: Api_Task_Video_Source_Work_Zone[]
97
+ video_source: Partial<Api_Task_Video_Source_Stream>[]
98
+ related_video_sources: { id: string; name: string }[]
99
+ interactive_zones: unknown
100
+ domed: boolean
101
+ snapshot_path: string
102
+ shapes: Api_Task_Video_Source_Shape[]
103
+ }
104
+
105
+ export type Api_Create_Repair_With_Equipments = {
106
+ name: string
107
+ display_name: string
108
+ description?: string
109
+ equipment_id: string
110
+ power_output_MWh?: number
111
+ cost_per_MWh?: number
112
+ category: number
113
+ user_id_list?: string[]
114
+ team_id_list?: string[]
115
+ }
116
+
117
+ export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipments, 'category' | 'equipment_id'> & {
118
+ repair_template_id: string
119
+ plan_start_date: string
120
+ task_id_list: string[]
121
+ }
122
+
123
+ export type Api_Update_Repair = {
124
+ name?: string
125
+ display_name?: string
126
+ description?: string | null
127
+ power_output_MWh?: number | null
128
+ cost_per_MWh?: number | null
129
+ category?: number
130
+ user_id_list?: string[]
131
+ team_id_list?: string[]
132
+ }
133
+
134
+ export type Api_Repair_Dto = {
135
+ id: string
136
+ name: string
137
+ display_name: string
138
+ description: string
139
+ start_date: string
140
+ end_date: string
141
+ projects: Api_Projects[]
142
+ equipments: Api_Equipment_Full_Dto[]
143
+ category: Api_Project_Category
144
+ completed_at: string | null
145
+ controllers: Api_User_Dto[]
146
+ cost_per_MWh: number | null
147
+ power_output_MWh: number | null
148
+ has_instruments_plan: boolean
149
+ has_positions_plan: boolean
150
+ plan_start_date: string | null
151
+ status: Api_Status_DTO
152
+ teams: Api_Team[]
153
+ }
154
+
155
+ export type Api_Repair_Template = {
156
+ id: string
157
+ repair_seconds: number
158
+ equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
159
+ category: {
160
+ display_name: string
161
+ name: string
162
+ code: number
163
+ }
164
+ task_list: string
165
+ }
166
+
167
+ export type Api_Repair_Intersection_Task = {
168
+ position: {
169
+ id: string
170
+ display_name: string
171
+ name: string
172
+ }
173
+ status: Omit<Api_Status_DTO, 'id'>
174
+ task: Pick<
175
+ Api_Tasks_Task_Dto,
176
+ 'id' | 'name' | 'plan_date' | 'planned_start' | 'fact_start_date' | 'planned_end' | 'deadline' | 'fact_end_date'
177
+ >
178
+ }
179
+
180
+ export type Api_Repair_Intersection = {
181
+ tasks: Api_Repair_Intersection_Task[]
182
+ user: {
183
+ id: string | null
184
+ full_name: string
185
+ }
186
+ }
@@ -1,64 +1,64 @@
1
- export type Api_Schedule_Shift_Template = {
2
- id: string
3
- name: string
4
- from: string
5
- to: string
6
- }
7
-
8
- export type Api_Schedule_Config = {
9
- shift_templates: Api_Schedule_Shift_Template[]
10
- }
11
-
12
- export type Api_Schedule_Complete_Brigade = {
13
- brigade_id: string
14
- initial_first: string
15
- initial_last: string
16
- shift_template_id: string
17
- }
18
-
19
- export type Api_Schedule_Table_Brigade = {
20
- id: string
21
- name: string
22
- initial_first: string
23
- initial_last: string
24
- initial_shift_template: Api_Schedule_Shift_Template
25
- assigned_positions: number
26
- total_positions: number
27
- task_master: unknown | null
28
- is_deleted: boolean
29
- }
30
-
31
- export type Api_Schedule_Add_Shift = {
32
- brigade_id: string
33
- dates: string[]
34
- shift_template_id: string
35
- }
36
-
37
- export type Api_Schedule_Swap_Shifts = {
38
- brigade_id: string
39
- shifts: string[]
40
- }
41
-
42
- export type Api_Schedule_Edit_Shifts = {
43
- brigade_id: string
44
- shift_ids: string[]
45
- shift_template_id: string
46
- }
47
-
48
- export type Api_Schedule_Shift = {
49
- id: string
50
- from: string
51
- to: string
52
- shift_template: Api_Schedule_Shift_Template
53
- }
54
-
55
- export type Api_Schedule_Item = {
56
- brigade: Api_Schedule_Table_Brigade
57
- shifts: { date: string; shift: Api_Schedule_Shift }[]
58
- }
59
-
60
- export type Api_Schedule_Brigade_To_Swap = {
61
- id: string
62
- name: string
63
- shift_template: Api_Schedule_Shift_Template
64
- }
1
+ export type Api_Schedule_Shift_Template = {
2
+ id: string
3
+ name: string
4
+ from: string
5
+ to: string
6
+ }
7
+
8
+ export type Api_Schedule_Config = {
9
+ shift_templates: Api_Schedule_Shift_Template[]
10
+ }
11
+
12
+ export type Api_Schedule_Complete_Brigade = {
13
+ brigade_id: string
14
+ initial_first: string
15
+ initial_last: string
16
+ shift_template_id: string
17
+ }
18
+
19
+ export type Api_Schedule_Table_Brigade = {
20
+ id: string
21
+ name: string
22
+ initial_first: string
23
+ initial_last: string
24
+ initial_shift_template: Api_Schedule_Shift_Template
25
+ assigned_positions: number
26
+ total_positions: number
27
+ task_master: unknown | null
28
+ is_deleted: boolean
29
+ }
30
+
31
+ export type Api_Schedule_Add_Shift = {
32
+ brigade_id: string
33
+ dates: string[]
34
+ shift_template_id: string
35
+ }
36
+
37
+ export type Api_Schedule_Swap_Shifts = {
38
+ brigade_id: string
39
+ shifts: string[]
40
+ }
41
+
42
+ export type Api_Schedule_Edit_Shifts = {
43
+ brigade_id: string
44
+ shift_ids: string[]
45
+ shift_template_id: string
46
+ }
47
+
48
+ export type Api_Schedule_Shift = {
49
+ id: string
50
+ from: string
51
+ to: string
52
+ shift_template: Api_Schedule_Shift_Template
53
+ }
54
+
55
+ export type Api_Schedule_Item = {
56
+ brigade: Api_Schedule_Table_Brigade
57
+ shifts: { date: string; shift: Api_Schedule_Shift }[]
58
+ }
59
+
60
+ export type Api_Schedule_Brigade_To_Swap = {
61
+ id: string
62
+ name: string
63
+ shift_template: Api_Schedule_Shift_Template
64
+ }