shared-ritm 1.2.67 → 1.2.68

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 (63) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +27926 -8480
  4. package/dist/shared-ritm.umd.js +3834 -7
  5. package/dist/types/api/services/ControlsService.d.ts +1 -2
  6. package/dist/types/api/services/FileService.d.ts +1 -2
  7. package/dist/types/api/services/MetricsService.d.ts +1 -2
  8. package/dist/types/api/services/PhotoService.d.ts +41 -0
  9. package/dist/types/api/services/ProjectsService.d.ts +1 -2
  10. package/dist/types/api/services/RepairsService.d.ts +1 -2
  11. package/dist/types/api/services/TasksService.d.ts +1 -2
  12. package/dist/types/api/services/UserService.d.ts +11 -0
  13. package/dist/types/api/settings/ApiService.d.ts +8 -0
  14. package/dist/types/api/types/Api_Instruments.d.ts +1 -35
  15. package/dist/types/api/types/Api_User.d.ts +42 -0
  16. package/dist/types/index.d.ts +6 -5
  17. package/dist/types/utils/helpers.d.ts +1 -0
  18. package/package.json +64 -63
  19. package/src/api/services/PhotoService.ts +137 -0
  20. package/src/api/services/UserService.ts +19 -0
  21. package/src/api/types/Api_Controls.ts +72 -72
  22. package/src/api/types/Api_Files.ts +1 -1
  23. package/src/api/types/Api_Instruments.ts +98 -133
  24. package/src/api/types/Api_Projects.ts +55 -55
  25. package/src/api/types/Api_Repairs.ts +93 -93
  26. package/src/api/types/Api_Tasks.ts +155 -155
  27. package/src/api/types/Api_User.ts +44 -0
  28. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  29. package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
  30. package/src/common/app-dropdown/AppDropdown.vue +31 -31
  31. package/src/common/app-input/AppInput.vue +148 -148
  32. package/src/common/app-select/AppSelect.vue +157 -157
  33. package/src/common/app-sheet/AppSheet.vue +120 -120
  34. package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
  35. package/src/common/app-table/AppTable.vue +250 -250
  36. package/src/common/app-table/AppTableLayout.vue +111 -111
  37. package/src/common/app-table/components/ModalSelect.vue +264 -264
  38. package/src/common/app-table/components/TableModal.vue +329 -329
  39. package/src/common/app-table/components/TablePagination.vue +152 -152
  40. package/src/common/app-table/components/TableSearch.vue +76 -76
  41. package/src/common/app-table/controllers/useBaseTable.ts +42 -42
  42. package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
  43. package/src/common/app-table/controllers/useTableModel.ts +93 -93
  44. package/src/common/app-toggle/AppToggle.vue +23 -23
  45. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  46. package/src/icons/components/table-filter-icon.vue +30 -30
  47. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  48. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  49. package/src/icons/task/attention-icon.vue +13 -13
  50. package/src/icons/task/clock-icon.vue +10 -10
  51. package/src/icons/task/delete-icon.vue +10 -10
  52. package/src/icons/task/fire-icon.vue +16 -16
  53. package/src/index.ts +6 -0
  54. package/src/main.ts +28 -28
  55. package/src/shared/styles/general.css +125 -125
  56. package/src/styles/variables.sass +12 -12
  57. package/src/utils/confirm.ts +12 -12
  58. package/src/utils/helpers.ts +58 -39
  59. package/src/utils/notification.ts +9 -9
  60. package/dist/types/api/services/SearchService.d.ts +0 -8
  61. package/dist/types/api/types/Api_Search.d.ts +0 -43
  62. package/dist/types/api/types/Api_Service.d.ts +0 -9
  63. package/dist/types/api/types/Api_Users.d.ts +0 -43
@@ -1,72 +1,72 @@
1
- export type Api_User_Dto = {
2
- id: string
3
- full_name: string
4
- }
5
- export type Api_ControlZones_Dto = {
6
- id: string
7
- name: string
8
- inventory_number: string
9
- uuid: string
10
- controller_zone: string
11
- users?: Api_User_Dto[]
12
- }
13
- export type ControlsParams = {
14
- search?: string
15
- page?: number
16
- filter?: Record<string, string[]>
17
- }
18
-
19
- export interface ControlMeta {
20
- total: number
21
- perPage: number
22
- totalPages: number
23
- currentPage: number
24
- }
25
-
26
- export type FiltersValue = {
27
- users?: {
28
- users: Api_User_Dto[]
29
- }
30
- controller?: {
31
- controller: Api_User_Dto[]
32
- }
33
- responsible?: {
34
- responsible: Api_User_Dto[]
35
- }
36
- status?: {
37
- status: boolean
38
- }
39
- }
40
- export type Api_Instrument_Dto = {
41
- id: string
42
- name: string
43
- storage_id?: string
44
- }
45
- export type Api_Warehouse_Dto = {
46
- id: string
47
- invoice_ref_key: string
48
- inventory_number: string
49
- instrument: Api_Instrument_Dto[]
50
- }
51
-
52
- export type Api_ControlLogs_Dto = {
53
- id: string
54
- automatically: string
55
- in_zone: string
56
- uuid: string
57
- controller_zone: string
58
- controller: Api_User_Dto[]
59
- user: Api_User_Dto[]
60
- frame: Api_ControlZones_Dto[]
61
- warehouse: Api_Warehouse_Dto[]
62
- }
63
- export type Api_New_Items = {
64
- title: string
65
- inventory_numbers: string
66
- storage_id: string
67
- }
68
- export type Api_ManualEntry_Dto = {
69
- user: string
70
- items?: string[]
71
- new_items?: Api_New_Items[]
72
- }
1
+ export type Api_User_Dto = {
2
+ id: string
3
+ full_name: string
4
+ }
5
+ export type Api_ControlZones_Dto = {
6
+ id: string
7
+ name: string
8
+ inventory_number: string
9
+ uuid: string
10
+ controller_zone: string
11
+ users?: Api_User_Dto[]
12
+ }
13
+ export type ControlsParams = {
14
+ search?: string
15
+ page?: number
16
+ filter?: Record<string, string[]>
17
+ }
18
+
19
+ export interface ControlMeta {
20
+ total: number
21
+ perPage: number
22
+ totalPages: number
23
+ currentPage: number
24
+ }
25
+
26
+ export type FiltersValue = {
27
+ users?: {
28
+ users: Api_User_Dto[]
29
+ }
30
+ controller?: {
31
+ controller: Api_User_Dto[]
32
+ }
33
+ responsible?: {
34
+ responsible: Api_User_Dto[]
35
+ }
36
+ status?: {
37
+ status: boolean
38
+ }
39
+ }
40
+ export type Api_Instrument_Dto = {
41
+ id: string
42
+ name: string
43
+ storage_id?: string
44
+ }
45
+ export type Api_Warehouse_Dto = {
46
+ id: string
47
+ invoice_ref_key: string
48
+ inventory_number: string
49
+ instrument: Api_Instrument_Dto[]
50
+ }
51
+
52
+ export type Api_ControlLogs_Dto = {
53
+ id: string
54
+ automatically: string
55
+ in_zone: string
56
+ uuid: string
57
+ controller_zone: string
58
+ controller: Api_User_Dto[]
59
+ user: Api_User_Dto[]
60
+ frame: Api_ControlZones_Dto[]
61
+ warehouse: Api_Warehouse_Dto[]
62
+ }
63
+ export type Api_New_Items = {
64
+ title: string
65
+ inventory_numbers: string
66
+ storage_id: string
67
+ }
68
+ export type Api_ManualEntry_Dto = {
69
+ user: string
70
+ items?: string[]
71
+ new_items?: Api_New_Items[]
72
+ }
@@ -1 +1 @@
1
- export type Api_Files_Responsible_Dto = unknown
1
+ export type Api_Files_Responsible_Dto = unknown
@@ -1,133 +1,98 @@
1
- export type Api_Instrument_Storage = {
2
- id: string
3
- created_at: string
4
- deleted_at: string | null
5
- updated_at: string
6
- description: string
7
- name: string
8
- title: string
9
- parent: unknown | null
10
- parents: unknown[]
11
- state_id: unknown | null
12
- }
13
-
14
- export type Api_Instrument_Type = {
15
- id: string
16
- name: string
17
- created_at: string
18
- updated_at: string
19
- deleted_at: string | null
20
- icon: string
21
- storage_id: string
22
- storage: Api_Instrument_Storage
23
- }
24
-
25
- export type Api_Instrument_Location = {
26
- id: string
27
- name: string
28
- title: string
29
- description: string
30
- created_at: string
31
- updated_at: string
32
- deleted_at: string | null
33
- state_id: unknown | null
34
- }
35
-
36
- export type Api_User_Team = {
37
- id: string
38
- name: string
39
- display_name: string
40
- description: string
41
- created_at: string
42
- updated_at: string
43
- pivot: {
44
- team_id: string
45
- user_id: string
46
- }
47
- }
48
-
49
- export type Api_Instrument_Status = {
50
- id: string
51
- description: string
52
- name: string
53
- title: string
54
- created_at: string
55
- updated_at: string
56
- deleted_at: string | null
57
- }
58
-
59
- export type Api_User = {
60
- id: string
61
- RFID: string
62
- avatar: unknown | null
63
- avatar_id: string | null
64
- change_password: string
65
- created_at: string
66
- updated_at: string
67
- deleted_at: string | null
68
- dismissal_at: string | null
69
- email_verified_at: string
70
- divisions: string
71
- email: string
72
- face_recognition_id: string | null
73
- first_name: string
74
- full_name: string
75
- last_name: string
76
- patronymic: string
77
- personnel_number: number
78
- phone: string
79
- profession: string
80
- teams: Api_User_Team[]
81
- }
82
-
83
- export type Api_Instrument = {
84
- id: string
85
- RFID: string | null
86
- instrument_id: string
87
- arrival_at: string
88
- created_at: string
89
- supply_at: string
90
- updated_at: string
91
- deleted_at: string | null
92
- inventory_number: string
93
- instrument_type: Api_Instrument_Type
94
- invoice_ref_key: string
95
- last_status_updated_at: string
96
- location_id: string
97
- location: Api_Instrument_Location
98
- misplacement: boolean
99
- module: string | null
100
- module_id: string | null
101
- name: string
102
- pressure: unknown | null
103
- registry_module_id: string
104
- responsible_id: string
105
- responsible: Api_User
106
- status: Api_Instrument_Status
107
- status_id: string
108
- storage: Api_Instrument_Storage
109
- supervisor: unknown | null
110
- supervisor_id: string
111
- type: unknown | null
112
- weight: unknown | null
113
- }
114
-
115
- export type Api_instruments_HistoryResponse = {
116
- data: Api_Instrument[]
117
- from: number
118
- to: number
119
- total: number
120
- per_page: number
121
- current_page: number
122
- last_page: number
123
- last_page_url: string
124
- first_page_url: string
125
- next_page_url: string | null
126
- prev_page_url: string | null
127
- path: string
128
- links: {
129
- label: string
130
- url: string
131
- active: boolean
132
- }[]
133
- }
1
+ import { Api_User } from '@/api/types/Api_User'
2
+
3
+ export type Api_Instrument_Storage = {
4
+ id: string
5
+ created_at: string
6
+ deleted_at: string | null
7
+ updated_at: string
8
+ description: string
9
+ name: string
10
+ title: string
11
+ parent: unknown | null
12
+ parents: unknown[]
13
+ state_id: unknown | null
14
+ }
15
+
16
+ export type Api_Instrument_Type = {
17
+ id: string
18
+ name: string
19
+ created_at: string
20
+ updated_at: string
21
+ deleted_at: string | null
22
+ icon: string
23
+ storage_id: string
24
+ storage: Api_Instrument_Storage
25
+ }
26
+
27
+ export type Api_Instrument_Location = {
28
+ id: string
29
+ name: string
30
+ title: string
31
+ description: string
32
+ created_at: string
33
+ updated_at: string
34
+ deleted_at: string | null
35
+ state_id: unknown | null
36
+ }
37
+
38
+ export type Api_Instrument_Status = {
39
+ id: string
40
+ description: string
41
+ name: string
42
+ title: string
43
+ created_at: string
44
+ updated_at: string
45
+ deleted_at: string | null
46
+ }
47
+
48
+ export type Api_Instrument = {
49
+ id: string
50
+ RFID: string | null
51
+ instrument_id: string
52
+ arrival_at: string
53
+ created_at: string
54
+ supply_at: string
55
+ updated_at: string
56
+ deleted_at: string | null
57
+ inventory_number: string
58
+ instrument_type: Api_Instrument_Type
59
+ invoice_ref_key: string
60
+ last_status_updated_at: string
61
+ location_id: string
62
+ location: Api_Instrument_Location
63
+ misplacement: boolean
64
+ module: string | null
65
+ module_id: string | null
66
+ name: string
67
+ pressure: unknown | null
68
+ registry_module_id: string
69
+ responsible_id: string
70
+ responsible: Api_User
71
+ status: Api_Instrument_Status
72
+ status_id: string
73
+ storage: Api_Instrument_Storage
74
+ supervisor: unknown | null
75
+ supervisor_id: string
76
+ type: unknown | null
77
+ weight: unknown | null
78
+ }
79
+
80
+ export type Api_instruments_HistoryResponse = {
81
+ data: Api_Instrument[]
82
+ from: number
83
+ to: number
84
+ total: number
85
+ per_page: number
86
+ current_page: number
87
+ last_page: number
88
+ last_page_url: string
89
+ first_page_url: string
90
+ next_page_url: string | null
91
+ prev_page_url: string | null
92
+ path: string
93
+ links: {
94
+ label: string
95
+ url: string
96
+ active: boolean
97
+ }[]
98
+ }
@@ -1,55 +1,55 @@
1
- export type Api_Project_Repair = {
2
- id: string
3
- name: string
4
- start_date: null | string
5
- end_date: null | string
6
- }
7
-
8
- export type Api_Project_Team = {
9
- id: string
10
- name: string
11
- display_name: string
12
- description: string
13
- created_at: string
14
- updated_at: string
15
- pivot: {
16
- project_id: string
17
- team_id: string
18
- }
19
- }
20
-
21
- export type Api_Project_Category = {
22
- code: number
23
- display_name: string
24
- name: string
25
- }
26
-
27
- export type Api_Project_Status = {
28
- id: string
29
- name: string
30
- title: string
31
- description: string
32
- created_at: string | null
33
- updated_at: string | null
34
- deleted_at: string | null
35
- }
36
-
37
- export type Api_Project_Dto = {
38
- id: string
39
- name: string
40
- description: null
41
- image: null
42
- plan_date: string | null
43
- deadline: string | null
44
- fact_start_date: string | null
45
- fact_end_date: string | null
46
- planned_start: string | null
47
- planned_end: string | null
48
- deleted_at: string | null
49
- total_tasks: number
50
- is_archive: boolean
51
- teams: Api_Project_Team[]
52
- status: Api_Project_Status
53
- category: Api_Project_Category
54
- repair: Api_Project_Repair | null
55
- }
1
+ export type Api_Project_Repair = {
2
+ id: string
3
+ name: string
4
+ start_date: null | string
5
+ end_date: null | string
6
+ }
7
+
8
+ export type Api_Project_Team = {
9
+ id: string
10
+ name: string
11
+ display_name: string
12
+ description: string
13
+ created_at: string
14
+ updated_at: string
15
+ pivot: {
16
+ project_id: string
17
+ team_id: string
18
+ }
19
+ }
20
+
21
+ export type Api_Project_Category = {
22
+ code: number
23
+ display_name: string
24
+ name: string
25
+ }
26
+
27
+ export type Api_Project_Status = {
28
+ id: string
29
+ name: string
30
+ title: string
31
+ description: string
32
+ created_at: string | null
33
+ updated_at: string | null
34
+ deleted_at: string | null
35
+ }
36
+
37
+ export type Api_Project_Dto = {
38
+ id: string
39
+ name: string
40
+ description: null
41
+ image: null
42
+ plan_date: string | null
43
+ deadline: string | null
44
+ fact_start_date: string | null
45
+ fact_end_date: string | null
46
+ planned_start: string | null
47
+ planned_end: string | null
48
+ deleted_at: string | null
49
+ total_tasks: number
50
+ is_archive: boolean
51
+ teams: Api_Project_Team[]
52
+ status: Api_Project_Status
53
+ category: Api_Project_Category
54
+ repair: Api_Project_Repair | null
55
+ }
@@ -1,93 +1,93 @@
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_Task_Video_Source = {
36
- id: string
37
- name: string
38
- work_zones_by_tasks: Array<{
39
- coordinates: { x0: number; x1: number; y0: number; y1: number }
40
- id: string
41
- tasks: unknown[]
42
- title: string
43
- }>
44
- }
45
-
46
- export type Api_Task_Video_Source_Stream = {
47
- id: string
48
- name: string
49
- url: string
50
- width: number
51
- height: number
52
- fps: string
53
- login: string
54
- password: string
55
- comment: unknown
56
- work_zones: unknown[]
57
- video_source: unknown[]
58
- related_video_sources: unknown[]
59
- interactive_zones: unknown
60
- domed: boolean
61
- snapshot_path: string
62
- shapes: unknown[]
63
- }
64
-
65
- export type Api_Create_Repair_With_Equipments = {
66
- name: string
67
- display_name: string
68
- description: string
69
- equipment_id: string
70
- power_output_MWh?: number
71
- cost_per_MWh?: number
72
- category?: string
73
- }
74
-
75
- export type Api_Update_Repair = {
76
- name?: string
77
- display_name?: string
78
- description: string
79
- power_output_MWh?: number
80
- cost_per_MWh?: number
81
- category?: string
82
- }
83
-
84
- export type Api_Repair_Dto = {
85
- id: string
86
- name: string
87
- display_name: string
88
- description: string
89
- start_date: string
90
- end_date: string
91
- projects: Api_Projects[]
92
- equipments: Api_Equipment_Full_Dto[]
93
- }
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_Task_Video_Source = {
36
+ id: string
37
+ name: string
38
+ work_zones_by_tasks: Array<{
39
+ coordinates: { x0: number; x1: number; y0: number; y1: number }
40
+ id: string
41
+ tasks: unknown[]
42
+ title: string
43
+ }>
44
+ }
45
+
46
+ export type Api_Task_Video_Source_Stream = {
47
+ id: string
48
+ name: string
49
+ url: string
50
+ width: number
51
+ height: number
52
+ fps: string
53
+ login: string
54
+ password: string
55
+ comment: unknown
56
+ work_zones: unknown[]
57
+ video_source: unknown[]
58
+ related_video_sources: unknown[]
59
+ interactive_zones: unknown
60
+ domed: boolean
61
+ snapshot_path: string
62
+ shapes: unknown[]
63
+ }
64
+
65
+ export type Api_Create_Repair_With_Equipments = {
66
+ name: string
67
+ display_name: string
68
+ description: string
69
+ equipment_id: string
70
+ power_output_MWh?: number
71
+ cost_per_MWh?: number
72
+ category?: string
73
+ }
74
+
75
+ export type Api_Update_Repair = {
76
+ name?: string
77
+ display_name?: string
78
+ description: string
79
+ power_output_MWh?: number
80
+ cost_per_MWh?: number
81
+ category?: string
82
+ }
83
+
84
+ export type Api_Repair_Dto = {
85
+ id: string
86
+ name: string
87
+ display_name: string
88
+ description: string
89
+ start_date: string
90
+ end_date: string
91
+ projects: Api_Projects[]
92
+ equipments: Api_Equipment_Full_Dto[]
93
+ }