shared-ritm 1.2.137 → 1.2.138

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 (130) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +174 -166
  4. package/dist/shared-ritm.umd.js +38 -38
  5. package/dist/types/api/services/PhotoService.d.ts +40 -0
  6. package/package.json +64 -64
  7. package/src/App.vue +2461 -2461
  8. package/src/api/services/AuthService.ts +53 -53
  9. package/src/api/services/BrigadesService.ts +32 -32
  10. package/src/api/services/CommentsService.ts +24 -24
  11. package/src/api/services/ControlsService.ts +92 -92
  12. package/src/api/services/EquipmentService.ts +29 -29
  13. package/src/api/services/FileService.ts +17 -17
  14. package/src/api/services/GanttService.ts +17 -17
  15. package/src/api/services/InstrumentsService.ts +63 -63
  16. package/src/api/services/MetricsService.ts +110 -110
  17. package/src/api/services/ModulesService.ts +27 -27
  18. package/src/api/services/ProjectsService.ts +83 -83
  19. package/src/api/services/RepairsService.ts +124 -124
  20. package/src/api/services/ScheduleService.ts +69 -69
  21. package/src/api/services/SearchService.ts +22 -22
  22. package/src/api/services/TasksService.ts +145 -145
  23. package/src/api/services/UserService.ts +113 -113
  24. package/src/api/services/VideoService.ts +103 -103
  25. package/src/api/settings/ApiService.ts +124 -124
  26. package/src/api/types/Api_Auth.ts +86 -86
  27. package/src/api/types/Api_Brigades.ts +36 -36
  28. package/src/api/types/Api_Comment.ts +40 -40
  29. package/src/api/types/Api_Controls.ts +111 -111
  30. package/src/api/types/Api_Equipment.ts +3 -3
  31. package/src/api/types/Api_Files.ts +7 -7
  32. package/src/api/types/Api_Instruments.ts +136 -136
  33. package/src/api/types/Api_Modules.ts +21 -21
  34. package/src/api/types/Api_Projects.ts +61 -61
  35. package/src/api/types/Api_Repairs.ts +138 -138
  36. package/src/api/types/Api_Schedule.ts +64 -64
  37. package/src/api/types/Api_Search.ts +79 -79
  38. package/src/api/types/Api_Service.ts +9 -9
  39. package/src/api/types/Api_Tasks.ts +319 -319
  40. package/src/api/types/Api_User.ts +140 -140
  41. package/src/api/types/Api_Video.ts +145 -145
  42. package/src/common/app-button/AppButton.vue +173 -173
  43. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  44. package/src/common/app-date-picker/AppDatePicker.vue +81 -81
  45. package/src/common/app-datepicker/AppDatepicker.vue +176 -166
  46. package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
  47. package/src/common/app-dropdown/AppDropdown.vue +37 -37
  48. package/src/common/app-icon/AppIcon.vue +108 -108
  49. package/src/common/app-input/AppInput.vue +148 -148
  50. package/src/common/app-input-new/AppInputNew.vue +175 -175
  51. package/src/common/app-input-search/AppInputSearch.vue +174 -174
  52. package/src/common/app-layout/AppLayout.vue +84 -84
  53. package/src/common/app-layout/components/AppLayoutHeader.vue +273 -273
  54. package/src/common/app-layout/components/AppLayoutPage.vue +16 -16
  55. package/src/common/app-loader/index.vue +43 -43
  56. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  57. package/src/common/app-select/AppSelect.vue +157 -157
  58. package/src/common/app-sheet/AppSheet.vue +120 -120
  59. package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
  60. package/src/common/app-sidebar/AppSidebar.vue +168 -168
  61. package/src/common/app-sidebar/components/SidebarMenu.vue +37 -37
  62. package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
  63. package/src/common/app-table/AppTable.vue +308 -308
  64. package/src/common/app-table/AppTableLayout.vue +137 -137
  65. package/src/common/app-table/components/ModalSelect.vue +285 -285
  66. package/src/common/app-table/components/TableModal.vue +356 -356
  67. package/src/common/app-table/components/TablePagination.vue +152 -152
  68. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  69. package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
  70. package/src/common/app-table/controllers/useTableModel.ts +102 -102
  71. package/src/common/app-toggle/AppToggle.vue +24 -24
  72. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  73. package/src/global.d.ts +1 -1
  74. package/src/icons/components/arrow-down-icon.vue +25 -25
  75. package/src/icons/components/arrow-frame-icon.vue +19 -19
  76. package/src/icons/components/arrow-square.vue +22 -22
  77. package/src/icons/components/table-filter-icon.vue +30 -30
  78. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  79. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  80. package/src/icons/header/NotificationIcon.vue +18 -18
  81. package/src/icons/header/PersonIcon.vue +11 -11
  82. package/src/icons/header/SettingIcon.vue +14 -14
  83. package/src/icons/header/flashIcon.vue +24 -24
  84. package/src/icons/header/searchStatusIcon.vue +24 -24
  85. package/src/icons/header/smallCapsIcon.vue +34 -34
  86. package/src/icons/sidebar/assign-module-icon.vue +36 -36
  87. package/src/icons/sidebar/instrument-history-icon.vue +32 -32
  88. package/src/icons/sidebar/instrument-order-icon.vue +38 -38
  89. package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
  90. package/src/icons/sidebar/instruments-icon.vue +45 -45
  91. package/src/icons/sidebar/logo-icon.vue +15 -15
  92. package/src/icons/sidebar/logout-icon.vue +13 -13
  93. package/src/icons/sidebar/modules-icon.vue +16 -16
  94. package/src/icons/sidebar/notifications-icon.vue +24 -24
  95. package/src/icons/sidebar/order-icon.vue +44 -44
  96. package/src/icons/sidebar/pass-icon.vue +38 -38
  97. package/src/icons/sidebar/positions-icon.vue +42 -42
  98. package/src/icons/sidebar/preorder-icon.vue +19 -19
  99. package/src/icons/sidebar/projects-icon.vue +31 -31
  100. package/src/icons/sidebar/repair-object-icon.vue +18 -18
  101. package/src/icons/sidebar/repairs-icon.vue +20 -20
  102. package/src/icons/sidebar/roles-icon.vue +26 -26
  103. package/src/icons/sidebar/status-history-icon.vue +24 -24
  104. package/src/icons/sidebar/tasks-icon.vue +28 -28
  105. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  106. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  107. package/src/icons/sidebar/teams-icon.vue +32 -32
  108. package/src/icons/sidebar/user-icon.vue +18 -18
  109. package/src/icons/sidebar/users-icon.vue +46 -46
  110. package/src/icons/sidebar/videosources-icon.vue +19 -19
  111. package/src/icons/sidebar/videowall-icon.vue +13 -13
  112. package/src/icons/sidebar/videozones-icon.vue +21 -21
  113. package/src/icons/sidebar/warehouses-icon.vue +43 -43
  114. package/src/icons/sidebar/workshop-icon.vue +100 -100
  115. package/src/icons/sidebar/workzones-icon.vue +22 -22
  116. package/src/icons/task/attention-icon.vue +13 -13
  117. package/src/icons/task/clock-icon.vue +10 -10
  118. package/src/icons/task/delete-icon.vue +10 -10
  119. package/src/icons/task/fire-icon.vue +16 -16
  120. package/src/index.ts +126 -126
  121. package/src/main.ts +28 -28
  122. package/src/quasar-user-options.ts +17 -17
  123. package/src/router/index.ts +10 -10
  124. package/src/shared/styles/general.css +124 -124
  125. package/src/shims-vue.d.ts +5 -5
  126. package/src/styles/variables.sass +12 -12
  127. package/src/utils/confirm.ts +12 -12
  128. package/src/utils/faceApiHelper.ts +132 -132
  129. package/src/utils/helpers.ts +59 -59
  130. package/src/utils/notification.ts +9 -9
@@ -1,140 +1,140 @@
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
+ 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
+ }