shared-ritm 1.3.122 → 1.3.124

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 (83) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +26 -14
  3. package/dist/shared-ritm.umd.js +3 -3
  4. package/dist/types/api/services/MetricsService.d.ts +2 -0
  5. package/dist/types/api/services/TasksService.d.ts +3 -2
  6. package/package.json +70 -70
  7. package/src/App.vue +2461 -2461
  8. package/src/api/services/AuthService.ts +67 -67
  9. package/src/api/services/ControlsService.ts +100 -100
  10. package/src/api/services/EquipmentService.ts +68 -68
  11. package/src/api/services/GanttService.ts +58 -58
  12. package/src/api/services/InstrumentsService.ts +76 -76
  13. package/src/api/services/MetricsService.ts +7 -0
  14. package/src/api/services/RepairsService.ts +111 -111
  15. package/src/api/services/TasksService.ts +165 -158
  16. package/src/api/services/UserIssueService.ts +32 -32
  17. package/src/api/services/UserService.ts +129 -129
  18. package/src/api/services/VideoService.ts +118 -118
  19. package/src/api/settings/ApiService.ts +185 -185
  20. package/src/api/types/Api_Auth.ts +121 -121
  21. package/src/api/types/Api_Controls.ts +112 -112
  22. package/src/api/types/Api_Equipment.ts +54 -54
  23. package/src/api/types/Api_Instruments.ts +182 -182
  24. package/src/api/types/Api_Metrics.ts +89 -89
  25. package/src/api/types/Api_Repairs.ts +200 -200
  26. package/src/api/types/Api_Search.ts +81 -81
  27. package/src/api/types/Api_Tasks.ts +378 -378
  28. package/src/api/types/Api_User.ts +161 -161
  29. package/src/api/types/Api_User_Issue.ts +36 -36
  30. package/src/api/types/Api_Video.ts +244 -244
  31. package/src/common/app-button/Button.stories.ts +369 -369
  32. package/src/common/app-checkbox/AppCheckbox.vue +31 -31
  33. package/src/common/app-checkbox/Checkbox.stories.ts +252 -252
  34. package/src/common/app-date-picker/DatePicker.stories.ts +66 -66
  35. package/src/common/app-datepicker/Datepicker.stories.ts +145 -145
  36. package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
  37. package/src/common/app-dialogs/Confirm.stories.ts +93 -93
  38. package/src/common/app-dropdown/Dropdown.stories.ts +94 -94
  39. package/src/common/app-file/File.stories.ts +104 -104
  40. package/src/common/app-icon/AppIcon.vue +110 -110
  41. package/src/common/app-icon/Icon.stories.ts +91 -91
  42. package/src/common/app-input/AppInput.vue +150 -150
  43. package/src/common/app-input/Input.stories.ts +160 -160
  44. package/src/common/app-input-new/AppInputNew.vue +181 -181
  45. package/src/common/app-input-new/InputNew.stories.ts +240 -240
  46. package/src/common/app-input-search/InputSearch.stories.ts +149 -149
  47. package/src/common/app-layout/components/AppLayoutHeader.vue +289 -289
  48. package/src/common/app-loader/Loader.stories.ts +114 -114
  49. package/src/common/app-modal/index.vue +101 -101
  50. package/src/common/app-select/AppSelect.vue +159 -159
  51. package/src/common/app-select/Select.stories.ts +155 -155
  52. package/src/common/app-sheet-new/AppSheetNew.vue +254 -254
  53. package/src/common/app-sidebar/AppSidebar.vue +177 -177
  54. package/src/common/app-table/AppTable.vue +313 -313
  55. package/src/common/app-table/components/ModalSelect.stories.ts +323 -323
  56. package/src/common/app-table/components/ModalSelect.vue +302 -302
  57. package/src/common/app-table/components/TableModal.vue +369 -369
  58. package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
  59. package/src/common/app-table/controllers/useTableModel.ts +98 -98
  60. package/src/common/app-toggle/AppToggle.vue +12 -12
  61. package/src/common/app-toggle/Toggle.stories.ts +245 -245
  62. package/src/common/app-wrapper/AppWrapper.vue +31 -31
  63. package/src/configs/storybook.ts +14 -14
  64. package/src/icons/sidebar/user-requests-icon.vue +23 -23
  65. package/src/index.ts +134 -134
  66. package/src/shared/styles/general.css +140 -140
  67. package/src/styles/variables.sass +12 -12
  68. package/src/utils/files.ts +38 -38
  69. package/src/utils/helpers.ts +59 -59
  70. package/dist/types/api/services/PhotoService.d.ts +0 -40
  71. package/dist/types/stories/Button.stories.d.ts +0 -13
  72. package/dist/types/stories/Checkbox.stories.d.ts +0 -7
  73. package/dist/types/stories/Confirm.stories.d.ts +0 -8
  74. package/dist/types/stories/DatePicker.stories.d.ts +0 -8
  75. package/dist/types/stories/Dropdown.stories.d.ts +0 -8
  76. package/dist/types/stories/File.stories.d.ts +0 -8
  77. package/dist/types/stories/Icon.stories.d.ts +0 -7
  78. package/dist/types/stories/Input.stories.d.ts +0 -11
  79. package/dist/types/stories/InputNew.stories.d.ts +0 -12
  80. package/dist/types/stories/InputSearch.stories.d.ts +0 -10
  81. package/dist/types/stories/Loader.stories.d.ts +0 -8
  82. package/dist/types/stories/Select.stories.d.ts +0 -7
  83. package/dist/types/stories/Toggle.stories.d.ts +0 -8
@@ -1,200 +1,200 @@
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 Api_Repair_Project = {
27
- id: string
28
- name: string
29
- has_positions_plan: boolean
30
- has_instruments_plan: boolean
31
- data: unknown
32
- category: {
33
- display_name: string
34
- name: string
35
- code: number
36
- }
37
- }
38
-
39
- export type OptionFilters = {
40
- teams?: Api_Team[]
41
- equipments?: Api_Equipment_Short_Dto[]
42
- }
43
-
44
- export type Api_Equipment_Full_Dto = {
45
- id: string
46
- model: null | string
47
- name: string
48
- registration_number: string
49
- repair_frequency: number
50
- repair_range: number
51
- }
52
-
53
- export type Api_Work_Zone_By_Tasks = {
54
- coordinates: { x0: number; x1: number; y0: number; y1: number }
55
- id: string
56
- tasks: unknown[]
57
- title: string
58
- }
59
-
60
- export type Api_Task_Video_Source = {
61
- id: string
62
- name: string
63
- work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
64
- }
65
-
66
- export type Api_Task_Video_Source_Shape = {
67
- id: string
68
- label: string
69
- text: string | null
70
- points: unknown[]
71
- shape_type: string
72
- }
73
-
74
- export type Api_Task_Video_Source_Work_Zone = Pick<
75
- Api_Work_Zone_Search,
76
- | 'id'
77
- | 'detect_helmet'
78
- | 'detect_mask'
79
- | 'detect_work_time'
80
- | 'detect_work_zone'
81
- | 'is_parent'
82
- | 'name'
83
- | 'x0'
84
- | 'x1'
85
- | 'y0'
86
- | 'y1'
87
- | 'video_source_id'
88
- | 'parent_id'
89
- | 'type'
90
- | 'title'
91
- > & {
92
- points: unknown[]
93
- tasks: Pick<
94
- Api_Tasks_Task_Dto,
95
- 'id' | 'deadline' | 'expired' | 'name' | 'plan_date' | 'responsible' | 'status' | 'time_to_complete_sec'
96
- >[]
97
- }
98
-
99
- export type Api_Task_Video_Source_Stream = {
100
- id: string
101
- name: string
102
- url: string
103
- width: number
104
- height: number
105
- fps: string
106
- login: string
107
- password: string
108
- comment: string | null
109
- work_zones: Api_Task_Video_Source_Work_Zone[]
110
- video_source: Partial<Api_Task_Video_Source_Stream>[]
111
- related_video_sources: { id: string; name: string }[]
112
- interactive_zones: unknown
113
- domed: boolean
114
- snapshot_path: string
115
- shapes: Api_Task_Video_Source_Shape[]
116
- }
117
-
118
- export type Api_Create_Repair_With_Equipments = {
119
- name: string
120
- display_name: string
121
- description?: string
122
- equipment_id: string
123
- power_output_MWh?: number
124
- cost_per_MWh?: number
125
- category: number
126
- user_id_list?: string[]
127
- team_id_list?: string[]
128
- }
129
-
130
- export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipments, 'category' | 'equipment_id'> & {
131
- repair_template_id: string
132
- plan_start_date: string
133
- task_id_list: string[]
134
- }
135
-
136
- export type Api_Update_Repair = {
137
- name?: string
138
- display_name?: string
139
- description?: string | null
140
- power_output_MWh?: number | null
141
- cost_per_MWh?: number | null
142
- category?: number
143
- user_id_list?: string[]
144
- team_id_list?: string[]
145
- }
146
-
147
- export type Api_Repair_Dto = {
148
- id: string
149
- name: string
150
- display_name: string
151
- description: string
152
- start_date: string
153
- end_date: string
154
- projects: Api_Repair_Project[]
155
- equipments: Api_Equipment_Full_Dto[]
156
- category: Api_Project_Category
157
- completed_at: string | null
158
- controllers: Api_User_Dto[]
159
- cost_per_MWh: number | null
160
- power_output_MWh: number | null
161
- has_instruments_plan: boolean
162
- has_positions_plan: boolean
163
- is_fixed_plan: boolean
164
- plan_start_date: string | null
165
- status: Api_Status_DTO
166
- teams: Api_Team[]
167
- }
168
-
169
- export type Api_Repair_Template = {
170
- id: string
171
- repair_seconds: number
172
- equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
173
- category: {
174
- display_name: string
175
- name: string
176
- code: number
177
- }
178
- task_list: string
179
- }
180
-
181
- export type Api_Repair_Intersection_Task = {
182
- position: {
183
- id: string
184
- display_name: string
185
- name: string
186
- }
187
- status: Omit<Api_Status_DTO, 'id'>
188
- task: Pick<
189
- Api_Tasks_Task_Dto,
190
- 'id' | 'name' | 'plan_date' | 'planned_start' | 'fact_start_date' | 'planned_end' | 'deadline' | 'fact_end_date'
191
- >
192
- }
193
-
194
- export type Api_Repair_Intersection = {
195
- tasks: Api_Repair_Intersection_Task[]
196
- user: {
197
- id: string | null
198
- full_name: string
199
- }
200
- }
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 Api_Repair_Project = {
27
+ id: string
28
+ name: string
29
+ has_positions_plan: boolean
30
+ has_instruments_plan: boolean
31
+ data: unknown
32
+ category: {
33
+ display_name: string
34
+ name: string
35
+ code: number
36
+ }
37
+ }
38
+
39
+ export type OptionFilters = {
40
+ teams?: Api_Team[]
41
+ equipments?: Api_Equipment_Short_Dto[]
42
+ }
43
+
44
+ export type Api_Equipment_Full_Dto = {
45
+ id: string
46
+ model: null | string
47
+ name: string
48
+ registration_number: string
49
+ repair_frequency: number
50
+ repair_range: number
51
+ }
52
+
53
+ export type Api_Work_Zone_By_Tasks = {
54
+ coordinates: { x0: number; x1: number; y0: number; y1: number }
55
+ id: string
56
+ tasks: unknown[]
57
+ title: string
58
+ }
59
+
60
+ export type Api_Task_Video_Source = {
61
+ id: string
62
+ name: string
63
+ work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
64
+ }
65
+
66
+ export type Api_Task_Video_Source_Shape = {
67
+ id: string
68
+ label: string
69
+ text: string | null
70
+ points: unknown[]
71
+ shape_type: string
72
+ }
73
+
74
+ export type Api_Task_Video_Source_Work_Zone = Pick<
75
+ Api_Work_Zone_Search,
76
+ | 'id'
77
+ | 'detect_helmet'
78
+ | 'detect_mask'
79
+ | 'detect_work_time'
80
+ | 'detect_work_zone'
81
+ | 'is_parent'
82
+ | 'name'
83
+ | 'x0'
84
+ | 'x1'
85
+ | 'y0'
86
+ | 'y1'
87
+ | 'video_source_id'
88
+ | 'parent_id'
89
+ | 'type'
90
+ | 'title'
91
+ > & {
92
+ points: unknown[]
93
+ tasks: Pick<
94
+ Api_Tasks_Task_Dto,
95
+ 'id' | 'deadline' | 'expired' | 'name' | 'plan_date' | 'responsible' | 'status' | 'time_to_complete_sec'
96
+ >[]
97
+ }
98
+
99
+ export type Api_Task_Video_Source_Stream = {
100
+ id: string
101
+ name: string
102
+ url: string
103
+ width: number
104
+ height: number
105
+ fps: string
106
+ login: string
107
+ password: string
108
+ comment: string | null
109
+ work_zones: Api_Task_Video_Source_Work_Zone[]
110
+ video_source: Partial<Api_Task_Video_Source_Stream>[]
111
+ related_video_sources: { id: string; name: string }[]
112
+ interactive_zones: unknown
113
+ domed: boolean
114
+ snapshot_path: string
115
+ shapes: Api_Task_Video_Source_Shape[]
116
+ }
117
+
118
+ export type Api_Create_Repair_With_Equipments = {
119
+ name: string
120
+ display_name: string
121
+ description?: string
122
+ equipment_id: string
123
+ power_output_MWh?: number
124
+ cost_per_MWh?: number
125
+ category: number
126
+ user_id_list?: string[]
127
+ team_id_list?: string[]
128
+ }
129
+
130
+ export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipments, 'category' | 'equipment_id'> & {
131
+ repair_template_id: string
132
+ plan_start_date: string
133
+ task_id_list: string[]
134
+ }
135
+
136
+ export type Api_Update_Repair = {
137
+ name?: string
138
+ display_name?: string
139
+ description?: string | null
140
+ power_output_MWh?: number | null
141
+ cost_per_MWh?: number | null
142
+ category?: number
143
+ user_id_list?: string[]
144
+ team_id_list?: string[]
145
+ }
146
+
147
+ export type Api_Repair_Dto = {
148
+ id: string
149
+ name: string
150
+ display_name: string
151
+ description: string
152
+ start_date: string
153
+ end_date: string
154
+ projects: Api_Repair_Project[]
155
+ equipments: Api_Equipment_Full_Dto[]
156
+ category: Api_Project_Category
157
+ completed_at: string | null
158
+ controllers: Api_User_Dto[]
159
+ cost_per_MWh: number | null
160
+ power_output_MWh: number | null
161
+ has_instruments_plan: boolean
162
+ has_positions_plan: boolean
163
+ is_fixed_plan: boolean
164
+ plan_start_date: string | null
165
+ status: Api_Status_DTO
166
+ teams: Api_Team[]
167
+ }
168
+
169
+ export type Api_Repair_Template = {
170
+ id: string
171
+ repair_seconds: number
172
+ equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
173
+ category: {
174
+ display_name: string
175
+ name: string
176
+ code: number
177
+ }
178
+ task_list: string
179
+ }
180
+
181
+ export type Api_Repair_Intersection_Task = {
182
+ position: {
183
+ id: string
184
+ display_name: string
185
+ name: string
186
+ }
187
+ status: Omit<Api_Status_DTO, 'id'>
188
+ task: Pick<
189
+ Api_Tasks_Task_Dto,
190
+ 'id' | 'name' | 'plan_date' | 'planned_start' | 'fact_start_date' | 'planned_end' | 'deadline' | 'fact_end_date'
191
+ >
192
+ }
193
+
194
+ export type Api_Repair_Intersection = {
195
+ tasks: Api_Repair_Intersection_Task[]
196
+ user: {
197
+ id: string | null
198
+ full_name: string
199
+ }
200
+ }
@@ -1,81 +1,81 @@
1
- import { Api_Warehouse_Search } from '@/api/types/Api_Instruments'
2
- import { Api_User_Archive_History_Item } from '@/api/types/Api_User'
3
-
4
- export type Api_Search_User_Passes = {
5
- id: string
6
- type: string
7
- uuid: string
8
- }
9
-
10
- export type Api_Search_User_Positions = {
11
- id: string
12
- name: string
13
- display_name: string
14
- description: string
15
- }
16
-
17
- export type Api_Search_User_Roles = {
18
- id: string
19
- name: string
20
- display_name: string
21
- }
22
-
23
- export type Api_Search_User_Teams = {
24
- id: string
25
- name: string
26
- display_name: string
27
- roles: Api_Search_User_Roles[]
28
- }
29
-
30
- export type Api_Search_User_Photos = {
31
- id: string
32
- name: string
33
- path: string
34
- type: string
35
- }
36
-
37
- export type Api_Search_User = {
38
- id: string
39
- full_name: string
40
- last_name: string
41
- first_name: string
42
- patronymic: string
43
- email: string
44
- phone: string
45
- divisions: string
46
- personnel_number: string
47
- passes: Api_Search_User_Passes[]
48
- positions: Api_Search_User_Positions[]
49
- teams: Api_Search_User_Teams[]
50
- photos: Api_Search_User_Photos[]
51
- archiveHistory: Api_User_Archive_History_Item[]
52
- has_brigades?: boolean
53
- has_video_analytics_photo?: boolean
54
- }
55
-
56
- export type Api_Search_Instruments = {
57
- id: string
58
- full_name: string
59
- last_name: string
60
- first_name: string
61
- patronymic: string
62
- divisions: string
63
- personnel_number: string
64
- }
65
-
66
- export type Api_Search_Module_User = Pick<Api_Search_User, 'id' | 'full_name' | 'email'> & {
67
- teams: Omit<Api_Search_User_Teams, 'roles'>[]
68
- }
69
-
70
- export type Api_Search_Module = {
71
- id: string
72
- RFID: string
73
- inventory_number: string
74
- title: string
75
- type: string
76
- mac: unknown
77
- wlan: unknown
78
- warehouses: Api_Warehouse_Search[]
79
- user: Api_Search_Module_User
80
- teams: Omit<Api_Search_User_Teams, 'roles'>[]
81
- }
1
+ import { Api_Warehouse_Search } from '@/api/types/Api_Instruments'
2
+ import { Api_User_Archive_History_Item } from '@/api/types/Api_User'
3
+
4
+ export type Api_Search_User_Passes = {
5
+ id: string
6
+ type: string
7
+ uuid: string
8
+ }
9
+
10
+ export type Api_Search_User_Positions = {
11
+ id: string
12
+ name: string
13
+ display_name: string
14
+ description: string
15
+ }
16
+
17
+ export type Api_Search_User_Roles = {
18
+ id: string
19
+ name: string
20
+ display_name: string
21
+ }
22
+
23
+ export type Api_Search_User_Teams = {
24
+ id: string
25
+ name: string
26
+ display_name: string
27
+ roles: Api_Search_User_Roles[]
28
+ }
29
+
30
+ export type Api_Search_User_Photos = {
31
+ id: string
32
+ name: string
33
+ path: string
34
+ type: string
35
+ }
36
+
37
+ export type Api_Search_User = {
38
+ id: string
39
+ full_name: string
40
+ last_name: string
41
+ first_name: string
42
+ patronymic: string
43
+ email: string
44
+ phone: string
45
+ divisions: string
46
+ personnel_number: string
47
+ passes: Api_Search_User_Passes[]
48
+ positions: Api_Search_User_Positions[]
49
+ teams: Api_Search_User_Teams[]
50
+ photos: Api_Search_User_Photos[]
51
+ archiveHistory: Api_User_Archive_History_Item[]
52
+ has_brigades?: boolean
53
+ has_video_analytics_photo?: boolean
54
+ }
55
+
56
+ export type Api_Search_Instruments = {
57
+ id: string
58
+ full_name: string
59
+ last_name: string
60
+ first_name: string
61
+ patronymic: string
62
+ divisions: string
63
+ personnel_number: string
64
+ }
65
+
66
+ export type Api_Search_Module_User = Pick<Api_Search_User, 'id' | 'full_name' | 'email'> & {
67
+ teams: Omit<Api_Search_User_Teams, 'roles'>[]
68
+ }
69
+
70
+ export type Api_Search_Module = {
71
+ id: string
72
+ RFID: string
73
+ inventory_number: string
74
+ title: string
75
+ type: string
76
+ mac: unknown
77
+ wlan: unknown
78
+ warehouses: Api_Warehouse_Search[]
79
+ user: Api_Search_Module_User
80
+ teams: Omit<Api_Search_User_Teams, 'roles'>[]
81
+ }