shared-ritm 1.2.118 → 1.2.120

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 (42) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +1474 -1467
  3. package/dist/shared-ritm.umd.js +105 -105
  4. package/dist/types/api/services/AuthService.d.ts +0 -14
  5. package/dist/types/api/services/ComentsServise.d.ts +10 -0
  6. package/dist/types/api/services/PhotoService.d.ts +51 -38
  7. package/dist/types/api/services/ProjectsService.d.ts +3 -1
  8. package/dist/types/api/types/Api_Auth.d.ts +76 -0
  9. package/dist/types/api/types/Api_Projects.d.ts +4 -0
  10. package/dist/types/api/types/Api_Users.d.ts +43 -0
  11. package/dist/types/index.d.ts +1 -0
  12. package/package.json +64 -64
  13. package/src/api/services/AuthService.ts +11 -22
  14. package/src/api/services/BrigadesService.ts +32 -32
  15. package/src/api/services/EquipmentService.ts +29 -29
  16. package/src/api/services/InstrumentsService.ts +63 -63
  17. package/src/api/services/ModulesService.ts +27 -27
  18. package/src/api/services/ProjectsService.ts +8 -1
  19. package/src/api/services/SearchService.ts +22 -22
  20. package/src/api/services/UserService.ts +101 -101
  21. package/src/api/services/VideoService.ts +71 -71
  22. package/src/api/settings/ApiService.ts +124 -124
  23. package/src/api/types/Api_Auth.ts +86 -0
  24. package/src/api/types/Api_Brigades.ts +36 -36
  25. package/src/api/types/Api_Equipment.ts +3 -3
  26. package/src/api/types/Api_Instruments.ts +136 -136
  27. package/src/api/types/Api_Modules.ts +21 -21
  28. package/src/api/types/Api_Projects.ts +5 -0
  29. package/src/api/types/Api_Repairs.ts +117 -117
  30. package/src/api/types/Api_Search.ts +77 -77
  31. package/src/api/types/Api_User.ts +117 -117
  32. package/src/api/types/Api_Video.ts +140 -140
  33. package/src/common/app-input-new/AppInputNew.vue +175 -175
  34. package/src/common/app-layout/components/AppLayoutHeader.vue +23 -1
  35. package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
  36. package/src/common/app-table/AppTable.vue +314 -314
  37. package/src/common/app-table/AppTableLayout.vue +137 -137
  38. package/src/common/app-table/components/ModalSelect.vue +270 -270
  39. package/src/common/app-table/components/TableModal.vue +356 -356
  40. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  41. package/src/index.ts +1 -0
  42. package/src/styles/variables.sass +12 -12
@@ -1,21 +1,21 @@
1
- import { Api_Search_Module } from '@/api/types/Api_Search'
2
- import { Api_Instrument, Api_Instrument_Location } from '@/api/types/Api_Instruments'
3
-
4
- export type Api_Module_Create = Pick<Api_Search_Module, 'RFID' | 'inventory_number' | 'title' | 'type'> & {
5
- user_id: string
6
- teams: string[]
7
- }
8
-
9
- export type Api_Module = Api_Search_Module & {
10
- auth_count: number
11
- auth_failed_count: number
12
- instrument: Pick<Api_Instrument, 'id' | 'RFID' | 'instrument_id' | 'inventory_number' | 'name'> | null
13
- inventory_completed_count: number
14
- location: Pick<Api_Instrument_Location, 'id' | 'name' | 'title' | 'state_id' | 'description'> | null
15
- location_id: string | null
16
- team_id: string | null
17
- tun: unknown
18
- user_id: string
19
- warehouse_id: string | null
20
- work_zones: unknown[]
21
- }
1
+ import { Api_Search_Module } from '@/api/types/Api_Search'
2
+ import { Api_Instrument, Api_Instrument_Location } from '@/api/types/Api_Instruments'
3
+
4
+ export type Api_Module_Create = Pick<Api_Search_Module, 'RFID' | 'inventory_number' | 'title' | 'type'> & {
5
+ user_id: string
6
+ teams: string[]
7
+ }
8
+
9
+ export type Api_Module = Api_Search_Module & {
10
+ auth_count: number
11
+ auth_failed_count: number
12
+ instrument: Pick<Api_Instrument, 'id' | 'RFID' | 'instrument_id' | 'inventory_number' | 'name'> | null
13
+ inventory_completed_count: number
14
+ location: Pick<Api_Instrument_Location, 'id' | 'name' | 'title' | 'state_id' | 'description'> | null
15
+ location_id: string | null
16
+ team_id: string | null
17
+ tun: unknown
18
+ user_id: string
19
+ warehouse_id: string | null
20
+ work_zones: unknown[]
21
+ }
@@ -53,3 +53,8 @@ export type Api_Project_Dto = {
53
53
  category: Api_Project_Category
54
54
  repair: Api_Project_Repair | null
55
55
  }
56
+
57
+ export type Api_Project_Add_Root_Intervals_Payload = {
58
+ history: number
59
+ with_status_in_progress: number
60
+ }
@@ -1,117 +1,117 @@
1
- export type Api_Team = {
2
- id: string
3
- display_name: string
4
- }
5
-
6
- export type Api_Equipment_Short_Dto = {
7
- id: string
8
- name: string
9
- }
10
-
11
- export type Api_Repairs = {
12
- id: string
13
- name: string
14
- }
15
-
16
- export type Api_Projects = {
17
- id: string
18
- name: string
19
- }
20
-
21
- export type OptionFilters = {
22
- teams?: Api_Team[]
23
- equipments?: Api_Equipment_Short_Dto[]
24
- }
25
-
26
- export type Api_Equipment_Full_Dto = {
27
- id: string
28
- model: null | string
29
- name: string
30
- registration_number: string
31
- repair_frequency: number
32
- repair_range: number
33
- }
34
-
35
- export type Api_Work_Zone_By_Tasks = {
36
- coordinates: { x0: number; x1: number; y0: number; y1: number }
37
- id: string
38
- tasks: unknown[]
39
- title: string
40
- }
41
-
42
- export type Api_Task_Video_Source = {
43
- id: string
44
- name: string
45
- work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
46
- }
47
-
48
- export type Api_Task_Video_Source_Stream = {
49
- id: string
50
- name: string
51
- url: string
52
- width: number
53
- height: number
54
- fps: string
55
- login: string
56
- password: string
57
- comment: unknown
58
- work_zones: unknown[]
59
- video_source: unknown[]
60
- related_video_sources: unknown[]
61
- interactive_zones: unknown
62
- domed: boolean
63
- snapshot_path: string
64
- shapes: unknown[]
65
- }
66
-
67
- export type Api_Create_Repair_With_Equipments = {
68
- name: string
69
- display_name: string
70
- description?: string
71
- equipment_id: string
72
- power_output_MWh?: number
73
- cost_per_MWh?: number
74
- category: number
75
- user_id_list?: string[]
76
- team_id_list?: string[]
77
- }
78
-
79
- export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipments, 'category' | 'equipment_id'> & {
80
- repair_template_id: string
81
- plan_start_date: string
82
- task_id_list: string[]
83
- }
84
-
85
- export type Api_Update_Repair = {
86
- name?: string
87
- display_name?: string
88
- description?: string | null
89
- power_output_MWh?: number | null
90
- cost_per_MWh?: number | null
91
- category?: number
92
- user_id_list?: string[]
93
- team_id_list?: string[]
94
- }
95
-
96
- export type Api_Repair_Dto = {
97
- id: string
98
- name: string
99
- display_name: string
100
- description: string
101
- start_date: string
102
- end_date: string
103
- projects: Api_Projects[]
104
- equipments: Api_Equipment_Full_Dto[]
105
- }
106
-
107
- export type Api_Repair_Template = {
108
- id: string
109
- repair_seconds: number
110
- equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
111
- category: {
112
- display_name: string
113
- name: string
114
- code: number
115
- }
116
- task_list: string
117
- }
1
+ export type Api_Team = {
2
+ id: string
3
+ display_name: string
4
+ }
5
+
6
+ export type Api_Equipment_Short_Dto = {
7
+ id: string
8
+ name: string
9
+ }
10
+
11
+ export type Api_Repairs = {
12
+ id: string
13
+ name: string
14
+ }
15
+
16
+ export type Api_Projects = {
17
+ id: string
18
+ name: string
19
+ }
20
+
21
+ export type OptionFilters = {
22
+ teams?: Api_Team[]
23
+ equipments?: Api_Equipment_Short_Dto[]
24
+ }
25
+
26
+ export type Api_Equipment_Full_Dto = {
27
+ id: string
28
+ model: null | string
29
+ name: string
30
+ registration_number: string
31
+ repair_frequency: number
32
+ repair_range: number
33
+ }
34
+
35
+ export type Api_Work_Zone_By_Tasks = {
36
+ coordinates: { x0: number; x1: number; y0: number; y1: number }
37
+ id: string
38
+ tasks: unknown[]
39
+ title: string
40
+ }
41
+
42
+ export type Api_Task_Video_Source = {
43
+ id: string
44
+ name: string
45
+ work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
46
+ }
47
+
48
+ export type Api_Task_Video_Source_Stream = {
49
+ id: string
50
+ name: string
51
+ url: string
52
+ width: number
53
+ height: number
54
+ fps: string
55
+ login: string
56
+ password: string
57
+ comment: unknown
58
+ work_zones: unknown[]
59
+ video_source: unknown[]
60
+ related_video_sources: unknown[]
61
+ interactive_zones: unknown
62
+ domed: boolean
63
+ snapshot_path: string
64
+ shapes: unknown[]
65
+ }
66
+
67
+ export type Api_Create_Repair_With_Equipments = {
68
+ name: string
69
+ display_name: string
70
+ description?: string
71
+ equipment_id: string
72
+ power_output_MWh?: number
73
+ cost_per_MWh?: number
74
+ category: number
75
+ user_id_list?: string[]
76
+ team_id_list?: string[]
77
+ }
78
+
79
+ export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipments, 'category' | 'equipment_id'> & {
80
+ repair_template_id: string
81
+ plan_start_date: string
82
+ task_id_list: string[]
83
+ }
84
+
85
+ export type Api_Update_Repair = {
86
+ name?: string
87
+ display_name?: string
88
+ description?: string | null
89
+ power_output_MWh?: number | null
90
+ cost_per_MWh?: number | null
91
+ category?: number
92
+ user_id_list?: string[]
93
+ team_id_list?: string[]
94
+ }
95
+
96
+ export type Api_Repair_Dto = {
97
+ id: string
98
+ name: string
99
+ display_name: string
100
+ description: string
101
+ start_date: string
102
+ end_date: string
103
+ projects: Api_Projects[]
104
+ equipments: Api_Equipment_Full_Dto[]
105
+ }
106
+
107
+ export type Api_Repair_Template = {
108
+ id: string
109
+ repair_seconds: number
110
+ equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
111
+ category: {
112
+ display_name: string
113
+ name: string
114
+ code: number
115
+ }
116
+ task_list: string
117
+ }
@@ -1,77 +1,77 @@
1
- import { Api_Warehouse_Search } from '@/api/types/Api_Instruments'
2
-
3
- export type Api_Search_User_Passes = {
4
- id: string
5
- type: string
6
- uuid: string
7
- }
8
-
9
- export type Api_Search_User_Positions = {
10
- id: string
11
- name: string
12
- display_name: string
13
- description: string
14
- }
15
-
16
- export type Api_Search_User_Roles = {
17
- id: string
18
- name: string
19
- display_name: string
20
- }
21
-
22
- export type Api_Search_User_Teams = {
23
- id: string
24
- name: string
25
- display_name: string
26
- roles: Api_Search_User_Roles[]
27
- }
28
-
29
- export type Api_Search_User_Photos = {
30
- id: string
31
- name: string
32
- path: string
33
- type: string
34
- }
35
-
36
- export type Api_Search_User = {
37
- id: string
38
- full_name: string
39
- last_name: string
40
- first_name: string
41
- patronymic: string
42
- email: string
43
- phone: string
44
- divisions: string
45
- personnel_number: string
46
- passes: Api_Search_User_Passes[]
47
- positions: Api_Search_User_Positions[]
48
- teams: Api_Search_User_Teams[]
49
- photos: Api_Search_User_Photos[]
50
- }
51
-
52
- export type Api_Search_Instruments = {
53
- id: string
54
- full_name: string
55
- last_name: string
56
- first_name: string
57
- patronymic: string
58
- divisions: string
59
- personnel_number: string
60
- }
61
-
62
- export type Api_Search_Module_User = Pick<Api_Search_User, 'id' | 'full_name' | 'email'> & {
63
- teams: Omit<Api_Search_User_Teams, 'roles'>[]
64
- }
65
-
66
- export type Api_Search_Module = {
67
- id: string
68
- RFID: string
69
- inventory_number: string
70
- title: string
71
- type: string
72
- mac: unknown
73
- wlan: unknown
74
- warehouses: Api_Warehouse_Search[]
75
- user: Api_Search_Module_User
76
- teams: Omit<Api_Search_User_Teams, 'roles'>[]
77
- }
1
+ import { Api_Warehouse_Search } from '@/api/types/Api_Instruments'
2
+
3
+ export type Api_Search_User_Passes = {
4
+ id: string
5
+ type: string
6
+ uuid: string
7
+ }
8
+
9
+ export type Api_Search_User_Positions = {
10
+ id: string
11
+ name: string
12
+ display_name: string
13
+ description: string
14
+ }
15
+
16
+ export type Api_Search_User_Roles = {
17
+ id: string
18
+ name: string
19
+ display_name: string
20
+ }
21
+
22
+ export type Api_Search_User_Teams = {
23
+ id: string
24
+ name: string
25
+ display_name: string
26
+ roles: Api_Search_User_Roles[]
27
+ }
28
+
29
+ export type Api_Search_User_Photos = {
30
+ id: string
31
+ name: string
32
+ path: string
33
+ type: string
34
+ }
35
+
36
+ export type Api_Search_User = {
37
+ id: string
38
+ full_name: string
39
+ last_name: string
40
+ first_name: string
41
+ patronymic: string
42
+ email: string
43
+ phone: string
44
+ divisions: string
45
+ personnel_number: string
46
+ passes: Api_Search_User_Passes[]
47
+ positions: Api_Search_User_Positions[]
48
+ teams: Api_Search_User_Teams[]
49
+ photos: Api_Search_User_Photos[]
50
+ }
51
+
52
+ export type Api_Search_Instruments = {
53
+ id: string
54
+ full_name: string
55
+ last_name: string
56
+ first_name: string
57
+ patronymic: string
58
+ divisions: string
59
+ personnel_number: string
60
+ }
61
+
62
+ export type Api_Search_Module_User = Pick<Api_Search_User, 'id' | 'full_name' | 'email'> & {
63
+ teams: Omit<Api_Search_User_Teams, 'roles'>[]
64
+ }
65
+
66
+ export type Api_Search_Module = {
67
+ id: string
68
+ RFID: string
69
+ inventory_number: string
70
+ title: string
71
+ type: string
72
+ mac: unknown
73
+ wlan: unknown
74
+ warehouses: Api_Warehouse_Search[]
75
+ user: Api_Search_Module_User
76
+ teams: Omit<Api_Search_User_Teams, 'roles'>[]
77
+ }
@@ -1,117 +1,117 @@
1
- import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
2
-
3
- export type Api_User_Team = {
4
- id: string
5
- name: string
6
- display_name: string
7
- description: string
8
- created_at: string
9
- updated_at: string
10
- pivot?: {
11
- team_id: string
12
- user_id: string
13
- }
14
- }
15
-
16
- export type Api_User_Team_Search = {
17
- id: string
18
- name: string
19
- display_name: string
20
- }
21
-
22
- export type Api_User_Photo = {
23
- id: string
24
- name: string
25
- path: string
26
- type: string
27
- }
28
-
29
- export type Api_User_Archive_History_Item = {
30
- user_id: string
31
- responsible_id: string
32
- archived_at: string
33
- reason: string | null
34
- restored_at: string | null
35
- }
36
-
37
- export type Api_User_Task = {
38
- id: string
39
- name: string
40
- project_id: string
41
- status: Api_Tasks_Status_Dto
42
- }
43
-
44
- export type Api_User = {
45
- id: string
46
- RFID: string
47
- avatar: unknown | null
48
- avatar_id: string | null
49
- change_password: string
50
- created_at: string
51
- updated_at: string
52
- deleted_at: string | null
53
- dismissal_at: string | null
54
- email_verified_at: string
55
- divisions: string
56
- email: string
57
- face_recognition_id: string | null
58
- first_name: string
59
- full_name: string
60
- last_name: string
61
- patronymic: string
62
- personnel_number: number
63
- phone: string
64
- profession: string
65
- teams: Api_User_Team[]
66
- photos: Api_User_Photo[]
67
- archiveHistory: Api_User_Archive_History_Item[]
68
- assigned_tasks?: Api_User_Task[]
69
- responsible_tasks?: Api_User_Task[]
70
- }
71
-
72
- export type Api_User_Create = {
73
- last_name?: string
74
- first_name?: string
75
- patronymic?: string
76
- email?: string
77
- phone?: string
78
- divisions?: string
79
- positions?: [string]
80
- teams?: {
81
- team_id: string
82
- roles: string[]
83
- }[]
84
- current_password?: string
85
- password?: string
86
- password_confirmation?: string
87
- }
88
-
89
- export type Api_User_Permission = {
90
- id: string
91
- name: string
92
- display_name: string
93
- }
94
-
95
- export type Api_User_Role = {
96
- id: string
97
- name: string
98
- display_name: string
99
- permissions?: Api_User_Permission[]
100
- }
101
-
102
- export type Api_User_Position = {
103
- id: string
104
- name: string
105
- display_name: string
106
- description?: string
107
- }
108
-
109
- export type Api_User_Delete_Body = {
110
- user_id: string
111
- archive_reason?: string
112
- }
113
-
114
- export type Api_User_Delete_Photos_Body = {
115
- user_id: string
116
- photos?: string[]
117
- }
1
+ import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
2
+
3
+ export type Api_User_Team = {
4
+ id: string
5
+ name: string
6
+ display_name: string
7
+ description: string
8
+ created_at: string
9
+ updated_at: string
10
+ pivot?: {
11
+ team_id: string
12
+ user_id: string
13
+ }
14
+ }
15
+
16
+ export type Api_User_Team_Search = {
17
+ id: string
18
+ name: string
19
+ display_name: string
20
+ }
21
+
22
+ export type Api_User_Photo = {
23
+ id: string
24
+ name: string
25
+ path: string
26
+ type: string
27
+ }
28
+
29
+ export type Api_User_Archive_History_Item = {
30
+ user_id: string
31
+ responsible_id: string
32
+ archived_at: string
33
+ reason: string | null
34
+ restored_at: string | null
35
+ }
36
+
37
+ export type Api_User_Task = {
38
+ id: string
39
+ name: string
40
+ project_id: string
41
+ status: Api_Tasks_Status_Dto
42
+ }
43
+
44
+ export type Api_User = {
45
+ id: string
46
+ RFID: string
47
+ avatar: unknown | null
48
+ avatar_id: string | null
49
+ change_password: string
50
+ created_at: string
51
+ updated_at: string
52
+ deleted_at: string | null
53
+ dismissal_at: string | null
54
+ email_verified_at: string
55
+ divisions: string
56
+ email: string
57
+ face_recognition_id: string | null
58
+ first_name: string
59
+ full_name: string
60
+ last_name: string
61
+ patronymic: string
62
+ personnel_number: number
63
+ phone: string
64
+ profession: string
65
+ teams: Api_User_Team[]
66
+ photos: Api_User_Photo[]
67
+ archiveHistory: Api_User_Archive_History_Item[]
68
+ assigned_tasks?: Api_User_Task[]
69
+ responsible_tasks?: Api_User_Task[]
70
+ }
71
+
72
+ export type Api_User_Create = {
73
+ last_name?: string
74
+ first_name?: string
75
+ patronymic?: string
76
+ email?: string
77
+ phone?: string
78
+ divisions?: string
79
+ positions?: [string]
80
+ teams?: {
81
+ team_id: string
82
+ roles: string[]
83
+ }[]
84
+ current_password?: string
85
+ password?: string
86
+ password_confirmation?: string
87
+ }
88
+
89
+ export type Api_User_Permission = {
90
+ id: string
91
+ name: string
92
+ display_name: string
93
+ }
94
+
95
+ export type Api_User_Role = {
96
+ id: string
97
+ name: string
98
+ display_name: string
99
+ permissions?: Api_User_Permission[]
100
+ }
101
+
102
+ export type Api_User_Position = {
103
+ id: string
104
+ name: string
105
+ display_name: string
106
+ description?: string
107
+ }
108
+
109
+ export type Api_User_Delete_Body = {
110
+ user_id: string
111
+ archive_reason?: string
112
+ }
113
+
114
+ export type Api_User_Delete_Photos_Body = {
115
+ user_id: string
116
+ photos?: string[]
117
+ }