shared-ritm 1.2.135 → 1.2.137

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 (138) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +804 -795
  4. package/dist/shared-ritm.umd.js +38 -38
  5. package/dist/types/api/services/RepairsService.d.ts +2 -2
  6. package/dist/types/api/services/ScheduleService.d.ts +2 -1
  7. package/dist/types/api/services/UserService.d.ts +8 -1
  8. package/dist/types/api/types/Api_Instruments.d.ts +2 -2
  9. package/dist/types/api/types/Api_Repairs.d.ts +20 -0
  10. package/dist/types/api/types/Api_Schedule.d.ts +5 -0
  11. package/dist/types/api/types/Api_Search.d.ts +2 -0
  12. package/dist/types/api/types/Api_User.d.ts +8 -0
  13. package/package.json +64 -64
  14. package/src/App.vue +2461 -2461
  15. package/src/api/services/AuthService.ts +53 -53
  16. package/src/api/services/BrigadesService.ts +32 -32
  17. package/src/api/services/CommentsService.ts +24 -24
  18. package/src/api/services/ControlsService.ts +92 -92
  19. package/src/api/services/EquipmentService.ts +29 -29
  20. package/src/api/services/FileService.ts +17 -17
  21. package/src/api/services/GanttService.ts +17 -17
  22. package/src/api/services/InstrumentsService.ts +63 -63
  23. package/src/api/services/MetricsService.ts +110 -110
  24. package/src/api/services/ModulesService.ts +27 -27
  25. package/src/api/services/ProjectsService.ts +83 -83
  26. package/src/api/services/RepairsService.ts +124 -123
  27. package/src/api/services/ScheduleService.ts +69 -62
  28. package/src/api/services/SearchService.ts +22 -22
  29. package/src/api/services/TasksService.ts +145 -145
  30. package/src/api/services/UserService.ts +113 -101
  31. package/src/api/services/VideoService.ts +103 -103
  32. package/src/api/settings/ApiService.ts +124 -124
  33. package/src/api/types/Api_Auth.ts +86 -86
  34. package/src/api/types/Api_Brigades.ts +36 -36
  35. package/src/api/types/Api_Comment.ts +40 -40
  36. package/src/api/types/Api_Controls.ts +111 -111
  37. package/src/api/types/Api_Equipment.ts +3 -3
  38. package/src/api/types/Api_Files.ts +7 -7
  39. package/src/api/types/Api_Instruments.ts +136 -136
  40. package/src/api/types/Api_Modules.ts +21 -21
  41. package/src/api/types/Api_Projects.ts +61 -61
  42. package/src/api/types/Api_Repairs.ts +138 -117
  43. package/src/api/types/Api_Schedule.ts +64 -58
  44. package/src/api/types/Api_Search.ts +79 -77
  45. package/src/api/types/Api_Service.ts +9 -9
  46. package/src/api/types/Api_Tasks.ts +319 -319
  47. package/src/api/types/Api_User.ts +140 -117
  48. package/src/api/types/Api_Video.ts +145 -145
  49. package/src/common/app-button/AppButton.vue +173 -173
  50. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  51. package/src/common/app-date-picker/AppDatePicker.vue +81 -81
  52. package/src/common/app-datepicker/AppDatepicker.vue +166 -166
  53. package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
  54. package/src/common/app-dropdown/AppDropdown.vue +37 -37
  55. package/src/common/app-icon/AppIcon.vue +108 -108
  56. package/src/common/app-input/AppInput.vue +148 -148
  57. package/src/common/app-input-new/AppInputNew.vue +175 -175
  58. package/src/common/app-input-search/AppInputSearch.vue +174 -174
  59. package/src/common/app-layout/AppLayout.vue +84 -84
  60. package/src/common/app-layout/components/AppLayoutHeader.vue +273 -273
  61. package/src/common/app-layout/components/AppLayoutPage.vue +16 -16
  62. package/src/common/app-loader/index.vue +43 -43
  63. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  64. package/src/common/app-select/AppSelect.vue +157 -157
  65. package/src/common/app-sheet/AppSheet.vue +120 -120
  66. package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
  67. package/src/common/app-sidebar/AppSidebar.vue +168 -168
  68. package/src/common/app-sidebar/components/SidebarMenu.vue +37 -37
  69. package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
  70. package/src/common/app-table/AppTable.vue +308 -308
  71. package/src/common/app-table/AppTableLayout.vue +137 -137
  72. package/src/common/app-table/components/ModalSelect.vue +285 -285
  73. package/src/common/app-table/components/TableModal.vue +356 -356
  74. package/src/common/app-table/components/TablePagination.vue +152 -152
  75. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  76. package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
  77. package/src/common/app-table/controllers/useTableModel.ts +102 -102
  78. package/src/common/app-toggle/AppToggle.vue +24 -24
  79. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  80. package/src/global.d.ts +1 -1
  81. package/src/icons/components/arrow-down-icon.vue +25 -25
  82. package/src/icons/components/arrow-frame-icon.vue +19 -19
  83. package/src/icons/components/arrow-square.vue +22 -22
  84. package/src/icons/components/table-filter-icon.vue +30 -30
  85. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  86. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  87. package/src/icons/header/NotificationIcon.vue +18 -18
  88. package/src/icons/header/PersonIcon.vue +11 -11
  89. package/src/icons/header/SettingIcon.vue +14 -14
  90. package/src/icons/header/flashIcon.vue +24 -24
  91. package/src/icons/header/searchStatusIcon.vue +24 -24
  92. package/src/icons/header/smallCapsIcon.vue +34 -34
  93. package/src/icons/sidebar/assign-module-icon.vue +36 -36
  94. package/src/icons/sidebar/instrument-history-icon.vue +32 -32
  95. package/src/icons/sidebar/instrument-order-icon.vue +38 -38
  96. package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
  97. package/src/icons/sidebar/instruments-icon.vue +45 -45
  98. package/src/icons/sidebar/logo-icon.vue +15 -15
  99. package/src/icons/sidebar/logout-icon.vue +13 -13
  100. package/src/icons/sidebar/modules-icon.vue +16 -16
  101. package/src/icons/sidebar/notifications-icon.vue +24 -24
  102. package/src/icons/sidebar/order-icon.vue +44 -44
  103. package/src/icons/sidebar/pass-icon.vue +38 -38
  104. package/src/icons/sidebar/positions-icon.vue +42 -42
  105. package/src/icons/sidebar/preorder-icon.vue +19 -19
  106. package/src/icons/sidebar/projects-icon.vue +31 -31
  107. package/src/icons/sidebar/repair-object-icon.vue +18 -18
  108. package/src/icons/sidebar/repairs-icon.vue +20 -20
  109. package/src/icons/sidebar/roles-icon.vue +26 -26
  110. package/src/icons/sidebar/status-history-icon.vue +24 -24
  111. package/src/icons/sidebar/tasks-icon.vue +28 -28
  112. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  113. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  114. package/src/icons/sidebar/teams-icon.vue +32 -32
  115. package/src/icons/sidebar/user-icon.vue +18 -18
  116. package/src/icons/sidebar/users-icon.vue +46 -46
  117. package/src/icons/sidebar/videosources-icon.vue +19 -19
  118. package/src/icons/sidebar/videowall-icon.vue +13 -13
  119. package/src/icons/sidebar/videozones-icon.vue +21 -21
  120. package/src/icons/sidebar/warehouses-icon.vue +43 -43
  121. package/src/icons/sidebar/workshop-icon.vue +100 -100
  122. package/src/icons/sidebar/workzones-icon.vue +22 -22
  123. package/src/icons/task/attention-icon.vue +13 -13
  124. package/src/icons/task/clock-icon.vue +10 -10
  125. package/src/icons/task/delete-icon.vue +10 -10
  126. package/src/icons/task/fire-icon.vue +16 -16
  127. package/src/index.ts +126 -126
  128. package/src/main.ts +28 -28
  129. package/src/quasar-user-options.ts +17 -17
  130. package/src/router/index.ts +10 -10
  131. package/src/shared/styles/general.css +124 -124
  132. package/src/shims-vue.d.ts +5 -5
  133. package/src/styles/variables.sass +12 -12
  134. package/src/utils/confirm.ts +12 -12
  135. package/src/utils/faceApiHelper.ts +132 -132
  136. package/src/utils/helpers.ts +59 -59
  137. package/src/utils/notification.ts +9 -9
  138. package/dist/types/api/services/PhotoService.d.ts +0 -40
@@ -1,117 +1,140 @@
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
+ import { Api_Instrument } from '@/api/types/Api_Instruments'
3
+
4
+ export type Api_User_Team = {
5
+ id: string
6
+ name: string
7
+ display_name: string
8
+ description: string
9
+ created_at: string
10
+ updated_at: string
11
+ pivot?: {
12
+ team_id: string
13
+ user_id: string
14
+ }
15
+ }
16
+
17
+ export type Api_User_Team_Search = {
18
+ id: string
19
+ name: string
20
+ display_name: string
21
+ }
22
+
23
+ export type Api_User_Photo = {
24
+ id: string
25
+ name: string
26
+ path: string
27
+ type: string
28
+ }
29
+
30
+ export type Api_User_Archive_History_Item = {
31
+ user_id: string
32
+ responsible_id: string
33
+ archived_at: string
34
+ reason: string | null
35
+ restored_at: string | null
36
+ }
37
+
38
+ export type Api_User_Task = {
39
+ id: string
40
+ name: string
41
+ project_id: string
42
+ status: Api_Tasks_Status_Dto
43
+ }
44
+
45
+ export type Api_User = {
46
+ id: string
47
+ RFID: string
48
+ avatar: unknown | null
49
+ avatar_id: string | null
50
+ change_password: string
51
+ created_at: string
52
+ updated_at: string
53
+ deleted_at: string | null
54
+ dismissal_at: string | null
55
+ email_verified_at: string
56
+ divisions: string
57
+ email: string
58
+ face_recognition_id: string | null
59
+ first_name: string
60
+ full_name: string
61
+ last_name: string
62
+ patronymic: string
63
+ personnel_number: number
64
+ phone: string
65
+ profession: string
66
+ teams: Api_User_Team[]
67
+ photos: Api_User_Photo[]
68
+ archiveHistory: Api_User_Archive_History_Item[]
69
+ assigned_tasks?: Api_User_Task[]
70
+ responsible_tasks?: Api_User_Task[]
71
+ }
72
+
73
+ export type Api_User_Create = {
74
+ last_name?: string
75
+ first_name?: string
76
+ patronymic?: string
77
+ email?: string
78
+ phone?: string
79
+ divisions?: string
80
+ positions?: [string]
81
+ teams?: {
82
+ team_id: string
83
+ roles: string[]
84
+ }[]
85
+ current_password?: string
86
+ password?: string
87
+ password_confirmation?: string
88
+ }
89
+
90
+ export type Api_User_Permission = {
91
+ id: string
92
+ name: string
93
+ display_name: string
94
+ }
95
+
96
+ export type Api_User_Role = {
97
+ id: string
98
+ name: string
99
+ display_name: string
100
+ permissions?: Api_User_Permission[]
101
+ }
102
+
103
+ export type Api_User_Position = {
104
+ id: string
105
+ name: string
106
+ display_name: string
107
+ description?: string
108
+ }
109
+
110
+ export type Api_User_Delete_Body = {
111
+ user_id: string
112
+ archive_reason?: string
113
+ }
114
+
115
+ export type Api_User_Delete_Photos_Body = {
116
+ user_id: string
117
+ photos?: string[]
118
+ }
119
+
120
+ export type Api_User_Warehouse = Pick<
121
+ Api_Instrument,
122
+ | 'id'
123
+ | 'RFID'
124
+ | 'instrument_type'
125
+ | 'inventory_number'
126
+ | 'location'
127
+ | 'misplacement'
128
+ | 'module'
129
+ | 'name'
130
+ | 'responsible'
131
+ | 'status'
132
+ | 'storage'
133
+ | 'updated_at'
134
+ > & {
135
+ issued_in: string | null
136
+ registry: {
137
+ id: string
138
+ title: string
139
+ } | null
140
+ }
@@ -1,145 +1,145 @@
1
- import { Api_Status_DTO } from '@/api/types/Api_Tasks'
2
- import { Api_Work_Zone_By_Tasks } from '@/api/types/Api_Repairs'
3
-
4
- export type Api_Video_Source = {
5
- id: string
6
- name: string
7
- login: string
8
- password: string
9
- camera_id: string | null
10
- comment: string | null
11
- data: unknown | null
12
- snapshot_path: string | null
13
- url: string
14
- updated_at: string
15
- created_at: string
16
- fps: string
17
- domed: boolean
18
- height: number
19
- width: number
20
- }
21
-
22
- export type Api_Work_Zone_Search = {
23
- id: string
24
- name: string
25
- title: string
26
- type: number
27
- parent_id: string | null
28
- created_at: string
29
- deleted_at: string | null
30
- updated_at: string
31
- description: string
32
- detect_face: boolean
33
- detect_helmet: boolean
34
- detect_mask: boolean
35
- detect_work_time: boolean
36
- detect_work_zone: boolean
37
- has_tasks: boolean
38
- is_parent: boolean
39
- x0: number
40
- x1: number
41
- y0: number
42
- y1: number
43
- video_source: Api_Video_Source
44
- video_source_id: string
45
- warehouse_by_work_zone_instruments: unknown[]
46
- }
47
-
48
- export type Api_Work_Zone_Usage_User = {
49
- id: string
50
- user_id: string
51
- user_full_name: string
52
- work_zone_id: string
53
- start_interval: string
54
- end_interval: string
55
- minutes: number
56
- }
57
-
58
- export type Api_Work_Zone_Task = {
59
- id: string
60
- name: string
61
- plan_date: string
62
- planned_start: null | string
63
- planned_end: null | string
64
- deadline: string
65
- is_critical_path: boolean | null
66
- is_expired: boolean
67
- power_output_MWh: number
68
- cost_per_MWh: number | null
69
- fact_start_date: null | string
70
- fact_end_date: null | string
71
- time_to_complete_sec: number | null
72
- status: Api_Status_DTO
73
- usage_users: Api_Work_Zone_Usage_User[]
74
- }
75
-
76
- export type Api_Work_Zone_Coords = {
77
- x0: number
78
- x1: number
79
- y0: number
80
- y1: number
81
- }
82
-
83
- export type Api_Work_Zone = {
84
- id: string
85
- title: string
86
- created_at: string
87
- video_source: { id: string; name: string }
88
- coordinates: Api_Work_Zone_Coords
89
- warehouse_by_work_zone_instruments: unknown[]
90
- tasks: Api_Work_Zone_Task[]
91
- }
92
-
93
- export type Api_Video_Source_Search = {
94
- comment: string
95
- domed: boolean
96
- fps: string
97
- height: number
98
- id: string
99
- interactive_zones: unknown
100
- login: string
101
- name: string
102
- password: string
103
- related_video_sources: unknown[]
104
- shapes: unknown[]
105
- snapshot_path: string
106
- url: string
107
- video_source: Api_Video_Source_Search[]
108
- width: number
109
- work_zones: unknown[]
110
- }
111
-
112
- export type Api_Video_Source_Create = {
113
- fps: string
114
- height: number
115
- login: string
116
- name: string
117
- password: string
118
- url: string
119
- width: number
120
- comment?: string
121
- domed?: boolean
122
- video_source_ids?: string[]
123
- snapshot?: string
124
- }
125
-
126
- export type Api_Video_Source_By_Repair_Project = {
127
- id: string
128
- name: string
129
- deadline: string
130
- }
131
-
132
- export type Api_Video_Source_By_Repair = {
133
- list_video_source: {
134
- id: string
135
- name: string
136
- url: string
137
- work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
138
- }[]
139
- project: Api_Video_Source_By_Repair_Project
140
- }
141
-
142
- export type Api_Video_Training_Status = {
143
- 'global+face': string | null
144
- 'global+global': string | null
145
- }
1
+ import { Api_Status_DTO } from '@/api/types/Api_Tasks'
2
+ import { Api_Work_Zone_By_Tasks } from '@/api/types/Api_Repairs'
3
+
4
+ export type Api_Video_Source = {
5
+ id: string
6
+ name: string
7
+ login: string
8
+ password: string
9
+ camera_id: string | null
10
+ comment: string | null
11
+ data: unknown | null
12
+ snapshot_path: string | null
13
+ url: string
14
+ updated_at: string
15
+ created_at: string
16
+ fps: string
17
+ domed: boolean
18
+ height: number
19
+ width: number
20
+ }
21
+
22
+ export type Api_Work_Zone_Search = {
23
+ id: string
24
+ name: string
25
+ title: string
26
+ type: number
27
+ parent_id: string | null
28
+ created_at: string
29
+ deleted_at: string | null
30
+ updated_at: string
31
+ description: string
32
+ detect_face: boolean
33
+ detect_helmet: boolean
34
+ detect_mask: boolean
35
+ detect_work_time: boolean
36
+ detect_work_zone: boolean
37
+ has_tasks: boolean
38
+ is_parent: boolean
39
+ x0: number
40
+ x1: number
41
+ y0: number
42
+ y1: number
43
+ video_source: Api_Video_Source
44
+ video_source_id: string
45
+ warehouse_by_work_zone_instruments: unknown[]
46
+ }
47
+
48
+ export type Api_Work_Zone_Usage_User = {
49
+ id: string
50
+ user_id: string
51
+ user_full_name: string
52
+ work_zone_id: string
53
+ start_interval: string
54
+ end_interval: string
55
+ minutes: number
56
+ }
57
+
58
+ export type Api_Work_Zone_Task = {
59
+ id: string
60
+ name: string
61
+ plan_date: string
62
+ planned_start: null | string
63
+ planned_end: null | string
64
+ deadline: string
65
+ is_critical_path: boolean | null
66
+ is_expired: boolean
67
+ power_output_MWh: number
68
+ cost_per_MWh: number | null
69
+ fact_start_date: null | string
70
+ fact_end_date: null | string
71
+ time_to_complete_sec: number | null
72
+ status: Api_Status_DTO
73
+ usage_users: Api_Work_Zone_Usage_User[]
74
+ }
75
+
76
+ export type Api_Work_Zone_Coords = {
77
+ x0: number
78
+ x1: number
79
+ y0: number
80
+ y1: number
81
+ }
82
+
83
+ export type Api_Work_Zone = {
84
+ id: string
85
+ title: string
86
+ created_at: string
87
+ video_source: { id: string; name: string }
88
+ coordinates: Api_Work_Zone_Coords
89
+ warehouse_by_work_zone_instruments: unknown[]
90
+ tasks: Api_Work_Zone_Task[]
91
+ }
92
+
93
+ export type Api_Video_Source_Search = {
94
+ comment: string
95
+ domed: boolean
96
+ fps: string
97
+ height: number
98
+ id: string
99
+ interactive_zones: unknown
100
+ login: string
101
+ name: string
102
+ password: string
103
+ related_video_sources: unknown[]
104
+ shapes: unknown[]
105
+ snapshot_path: string
106
+ url: string
107
+ video_source: Api_Video_Source_Search[]
108
+ width: number
109
+ work_zones: unknown[]
110
+ }
111
+
112
+ export type Api_Video_Source_Create = {
113
+ fps: string
114
+ height: number
115
+ login: string
116
+ name: string
117
+ password: string
118
+ url: string
119
+ width: number
120
+ comment?: string
121
+ domed?: boolean
122
+ video_source_ids?: string[]
123
+ snapshot?: string
124
+ }
125
+
126
+ export type Api_Video_Source_By_Repair_Project = {
127
+ id: string
128
+ name: string
129
+ deadline: string
130
+ }
131
+
132
+ export type Api_Video_Source_By_Repair = {
133
+ list_video_source: {
134
+ id: string
135
+ name: string
136
+ url: string
137
+ work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
138
+ }[]
139
+ project: Api_Video_Source_By_Repair_Project
140
+ }
141
+
142
+ export type Api_Video_Training_Status = {
143
+ 'global+face': string | null
144
+ 'global+global': string | null
145
+ }