shared-ritm 1.3.78 → 1.3.79

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 (72) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +15 -14
  3. package/dist/shared-ritm.umd.js +2 -2
  4. package/package.json +70 -70
  5. package/src/App.vue +2461 -2461
  6. package/src/api/services/AuthService.ts +67 -67
  7. package/src/api/services/ControlsService.ts +96 -96
  8. package/src/api/services/EquipmentService.ts +29 -29
  9. package/src/api/services/MetricsService.ts +143 -143
  10. package/src/api/services/RepairsService.ts +111 -111
  11. package/src/api/services/UserIssueService.ts +32 -32
  12. package/src/api/services/UserService.ts +129 -129
  13. package/src/api/services/VideoService.ts +118 -118
  14. package/src/api/settings/ApiService.ts +184 -184
  15. package/src/api/types/Api_Auth.ts +121 -121
  16. package/src/api/types/Api_Metrics.ts +51 -51
  17. package/src/api/types/Api_Repairs.ts +187 -187
  18. package/src/api/types/Api_Tasks.ts +376 -376
  19. package/src/api/types/Api_User.ts +156 -156
  20. package/src/api/types/Api_User_Issue.ts +36 -36
  21. package/src/api/types/Api_Video.ts +244 -244
  22. package/src/common/app-button/Button.stories.ts +369 -369
  23. package/src/common/app-checkbox/AppCheckbox.vue +31 -31
  24. package/src/common/app-checkbox/Checkbox.stories.ts +252 -252
  25. package/src/common/app-date-picker/DatePicker.stories.ts +66 -66
  26. package/src/common/app-datepicker/Datepicker.stories.ts +145 -145
  27. package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
  28. package/src/common/app-dialogs/Confirm.stories.ts +93 -93
  29. package/src/common/app-dropdown/Dropdown.stories.ts +94 -94
  30. package/src/common/app-file/File.stories.ts +104 -104
  31. package/src/common/app-icon/AppIcon.vue +110 -110
  32. package/src/common/app-icon/Icon.stories.ts +91 -91
  33. package/src/common/app-input/AppInput.vue +2 -0
  34. package/src/common/app-input/Input.stories.ts +160 -160
  35. package/src/common/app-input-new/AppInputNew.vue +181 -181
  36. package/src/common/app-input-new/InputNew.stories.ts +240 -240
  37. package/src/common/app-input-search/InputSearch.stories.ts +149 -149
  38. package/src/common/app-layout/components/AppLayoutHeader.vue +289 -289
  39. package/src/common/app-loader/Loader.stories.ts +114 -114
  40. package/src/common/app-select/AppSelect.vue +159 -159
  41. package/src/common/app-select/Select.stories.ts +155 -155
  42. package/src/common/app-sidebar/AppSidebar.vue +174 -174
  43. package/src/common/app-table/AppTable.vue +313 -313
  44. package/src/common/app-table/components/ModalSelect.stories.ts +323 -323
  45. package/src/common/app-table/components/ModalSelect.vue +302 -302
  46. package/src/common/app-table/components/TableModal.vue +367 -367
  47. package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
  48. package/src/common/app-table/controllers/useTableModel.ts +97 -97
  49. package/src/common/app-toggle/AppToggle.vue +12 -12
  50. package/src/common/app-toggle/Toggle.stories.ts +245 -245
  51. package/src/common/app-wrapper/AppWrapper.vue +31 -31
  52. package/src/configs/storybook.ts +14 -14
  53. package/src/icons/sidebar/user-requests-icon.vue +23 -23
  54. package/src/index.ts +134 -134
  55. package/src/shared/styles/general.css +140 -140
  56. package/src/styles/variables.sass +12 -12
  57. package/src/utils/files.ts +38 -38
  58. package/src/utils/helpers.ts +59 -59
  59. package/dist/types/api/services/PhotoService.d.ts +0 -40
  60. package/dist/types/stories/Button.stories.d.ts +0 -13
  61. package/dist/types/stories/Checkbox.stories.d.ts +0 -7
  62. package/dist/types/stories/Confirm.stories.d.ts +0 -8
  63. package/dist/types/stories/DatePicker.stories.d.ts +0 -8
  64. package/dist/types/stories/Dropdown.stories.d.ts +0 -8
  65. package/dist/types/stories/File.stories.d.ts +0 -8
  66. package/dist/types/stories/Icon.stories.d.ts +0 -7
  67. package/dist/types/stories/Input.stories.d.ts +0 -11
  68. package/dist/types/stories/InputNew.stories.d.ts +0 -12
  69. package/dist/types/stories/InputSearch.stories.d.ts +0 -10
  70. package/dist/types/stories/Loader.stories.d.ts +0 -8
  71. package/dist/types/stories/Select.stories.d.ts +0 -7
  72. package/dist/types/stories/Toggle.stories.d.ts +0 -8
@@ -1,51 +1,51 @@
1
- export type Api_Metrics_Unused_Personnel = {
2
- position_name: string | null
3
- brigade_name: string | null
4
- full_name: string | null
5
- }
6
-
7
- export type Api_Metrics_Personnel_Plan_User = {
8
- user_id: string
9
- full_name: string
10
- position_id: string
11
- position_name: string
12
- position_display_name: string
13
- }
14
-
15
- export type Api_Metrics_Personnel_Plan_Position = {
16
- position_id: string
17
- position_name: string
18
- position_display_name: string
19
- count: number
20
- }
21
-
22
- export type Api_Metrics_Personnel_Plan = {
23
- engaged: Api_Metrics_Personnel_Plan_User[]
24
- fixed_repair: Api_Metrics_Personnel_Plan_Position[]
25
- ready: Api_Metrics_Personnel_Plan_User[]
26
- }
27
-
28
- export type Api_Metrics_Personnel_Plan_Project = {
29
- id: string
30
- name: string
31
- }
32
-
33
- export type Api_Metrics_Personnel_Plan_Project_Body = {
34
- repairs: string[]
35
- }
36
-
37
- export type Api_Metrics_Instruments_Plan_Item = {
38
- count: number
39
- instrument_name: string
40
- instrument_id: string
41
- }
42
-
43
- export type Api_Metrics_Instruments_Plan = {
44
- ready: Api_Metrics_Instruments_Plan_Item[]
45
- fixed_repair: Api_Metrics_Instruments_Plan_Item[]
46
- used: Api_Metrics_Instruments_Plan_Item[]
47
- preparation_instrument_project: {
48
- id: string
49
- name: string
50
- }
51
- }
1
+ export type Api_Metrics_Unused_Personnel = {
2
+ position_name: string | null
3
+ brigade_name: string | null
4
+ full_name: string | null
5
+ }
6
+
7
+ export type Api_Metrics_Personnel_Plan_User = {
8
+ user_id: string
9
+ full_name: string
10
+ position_id: string
11
+ position_name: string
12
+ position_display_name: string
13
+ }
14
+
15
+ export type Api_Metrics_Personnel_Plan_Position = {
16
+ position_id: string
17
+ position_name: string
18
+ position_display_name: string
19
+ count: number
20
+ }
21
+
22
+ export type Api_Metrics_Personnel_Plan = {
23
+ engaged: Api_Metrics_Personnel_Plan_User[]
24
+ fixed_repair: Api_Metrics_Personnel_Plan_Position[]
25
+ ready: Api_Metrics_Personnel_Plan_User[]
26
+ }
27
+
28
+ export type Api_Metrics_Personnel_Plan_Project = {
29
+ id: string
30
+ name: string
31
+ }
32
+
33
+ export type Api_Metrics_Personnel_Plan_Project_Body = {
34
+ repairs: string[]
35
+ }
36
+
37
+ export type Api_Metrics_Instruments_Plan_Item = {
38
+ count: number
39
+ instrument_name: string
40
+ instrument_id: string
41
+ }
42
+
43
+ export type Api_Metrics_Instruments_Plan = {
44
+ ready: Api_Metrics_Instruments_Plan_Item[]
45
+ fixed_repair: Api_Metrics_Instruments_Plan_Item[]
46
+ used: Api_Metrics_Instruments_Plan_Item[]
47
+ preparation_instrument_project: {
48
+ id: string
49
+ name: string
50
+ }
51
+ }
@@ -1,187 +1,187 @@
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
- is_fixed_plan: boolean
151
- plan_start_date: string | null
152
- status: Api_Status_DTO
153
- teams: Api_Team[]
154
- }
155
-
156
- export type Api_Repair_Template = {
157
- id: string
158
- repair_seconds: number
159
- equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
160
- category: {
161
- display_name: string
162
- name: string
163
- code: number
164
- }
165
- task_list: string
166
- }
167
-
168
- export type Api_Repair_Intersection_Task = {
169
- position: {
170
- id: string
171
- display_name: string
172
- name: string
173
- }
174
- status: Omit<Api_Status_DTO, 'id'>
175
- task: Pick<
176
- Api_Tasks_Task_Dto,
177
- 'id' | 'name' | 'plan_date' | 'planned_start' | 'fact_start_date' | 'planned_end' | 'deadline' | 'fact_end_date'
178
- >
179
- }
180
-
181
- export type Api_Repair_Intersection = {
182
- tasks: Api_Repair_Intersection_Task[]
183
- user: {
184
- id: string | null
185
- full_name: string
186
- }
187
- }
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
+ is_fixed_plan: boolean
151
+ plan_start_date: string | null
152
+ status: Api_Status_DTO
153
+ teams: Api_Team[]
154
+ }
155
+
156
+ export type Api_Repair_Template = {
157
+ id: string
158
+ repair_seconds: number
159
+ equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
160
+ category: {
161
+ display_name: string
162
+ name: string
163
+ code: number
164
+ }
165
+ task_list: string
166
+ }
167
+
168
+ export type Api_Repair_Intersection_Task = {
169
+ position: {
170
+ id: string
171
+ display_name: string
172
+ name: string
173
+ }
174
+ status: Omit<Api_Status_DTO, 'id'>
175
+ task: Pick<
176
+ Api_Tasks_Task_Dto,
177
+ 'id' | 'name' | 'plan_date' | 'planned_start' | 'fact_start_date' | 'planned_end' | 'deadline' | 'fact_end_date'
178
+ >
179
+ }
180
+
181
+ export type Api_Repair_Intersection = {
182
+ tasks: Api_Repair_Intersection_Task[]
183
+ user: {
184
+ id: string | null
185
+ full_name: string
186
+ }
187
+ }