shared-ritm 1.3.36 → 1.3.38

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 (86) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +9088 -8988
  3. package/dist/shared-ritm.umd.js +342 -342
  4. package/dist/types/api/services/PhotoService.d.ts +38 -51
  5. package/dist/types/api/services/RepairsService.d.ts +1 -1
  6. package/dist/types/api/services/VideoService.d.ts +2 -1
  7. package/dist/types/api/settings/ApiService.d.ts +1 -1
  8. package/dist/types/api/types/Api_Tasks.d.ts +1 -0
  9. package/dist/types/api/types/Api_Video.d.ts +5 -4
  10. package/dist/types/common/app-button/Button.stories.d.ts +13 -0
  11. package/dist/types/common/app-checkbox/Checkbox.stories.d.ts +8 -0
  12. package/dist/types/common/app-date-picker/DatePicker.stories.d.ts +7 -0
  13. package/dist/types/common/app-datepicker/Datepicker.stories.d.ts +10 -0
  14. package/dist/types/common/app-dialogs/Confirm.stories.d.ts +8 -0
  15. package/dist/types/common/app-dropdown/Dropdown.stories.d.ts +8 -0
  16. package/dist/types/common/app-file/File.stories.d.ts +8 -0
  17. package/dist/types/common/app-icon/Icon.stories.d.ts +7 -0
  18. package/dist/types/common/app-input/Input.stories.d.ts +9 -0
  19. package/dist/types/common/app-input-new/InputNew.stories.d.ts +12 -0
  20. package/dist/types/common/app-input-search/InputSearch.stories.d.ts +8 -0
  21. package/dist/types/common/app-loader/Loader.stories.d.ts +8 -0
  22. package/dist/types/common/app-select/Select.stories.d.ts +7 -0
  23. package/dist/types/common/app-table/components/ModalSelect.stories.d.ts +10 -0
  24. package/dist/types/common/app-toggle/Toggle.stories.d.ts +8 -0
  25. package/dist/types/configs/storybook.d.ts +1 -0
  26. package/dist/types/stories/Button.stories.d.ts +13 -0
  27. package/dist/types/stories/Checkbox.stories.d.ts +7 -0
  28. package/dist/types/stories/Confirm.stories.d.ts +8 -0
  29. package/dist/types/stories/DatePicker.stories.d.ts +8 -0
  30. package/dist/types/stories/Dropdown.stories.d.ts +8 -0
  31. package/dist/types/stories/File.stories.d.ts +8 -0
  32. package/dist/types/stories/Icon.stories.d.ts +7 -0
  33. package/dist/types/stories/Input.stories.d.ts +11 -0
  34. package/dist/types/stories/InputNew.stories.d.ts +12 -0
  35. package/dist/types/stories/InputSearch.stories.d.ts +10 -0
  36. package/dist/types/stories/Loader.stories.d.ts +8 -0
  37. package/dist/types/stories/Select.stories.d.ts +7 -0
  38. package/dist/types/stories/Toggle.stories.d.ts +8 -0
  39. package/package.json +64 -64
  40. package/src/App.vue +2461 -2461
  41. package/src/api/services/BrigadesService.ts +32 -32
  42. package/src/api/services/ControlsService.ts +96 -96
  43. package/src/api/services/EquipmentService.ts +29 -29
  44. package/src/api/services/InstrumentsService.ts +68 -68
  45. package/src/api/services/MetricsService.ts +123 -123
  46. package/src/api/services/ModulesService.ts +27 -27
  47. package/src/api/services/ProjectsService.ts +83 -83
  48. package/src/api/services/RepairsService.ts +111 -111
  49. package/src/api/services/ScheduleService.ts +69 -69
  50. package/src/api/services/SearchService.ts +22 -22
  51. package/src/api/services/UserService.ts +123 -123
  52. package/src/api/services/VideoService.ts +118 -113
  53. package/src/api/settings/ApiService.ts +124 -124
  54. package/src/api/types/Api_Auth.ts +105 -105
  55. package/src/api/types/Api_Brigades.ts +36 -36
  56. package/src/api/types/Api_Controls.ts +111 -111
  57. package/src/api/types/Api_Equipment.ts +3 -3
  58. package/src/api/types/Api_Instruments.ts +156 -156
  59. package/src/api/types/Api_Metrics.ts +5 -5
  60. package/src/api/types/Api_Modules.ts +21 -21
  61. package/src/api/types/Api_Projects.ts +62 -62
  62. package/src/api/types/Api_Repairs.ts +186 -186
  63. package/src/api/types/Api_Schedule.ts +64 -64
  64. package/src/api/types/Api_Search.ts +80 -80
  65. package/src/api/types/Api_Tasks.ts +1 -0
  66. package/src/api/types/Api_User.ts +146 -146
  67. package/src/api/types/Api_Video.ts +244 -241
  68. package/src/common/app-datepicker/AppDatepicker.vue +218 -218
  69. package/src/common/app-dropdown/AppDropdown.vue +37 -37
  70. package/src/common/app-input-new/AppInputNew.vue +179 -179
  71. package/src/common/app-layout/AppLayout.vue +84 -84
  72. package/src/common/app-modal/index.vue +96 -96
  73. package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
  74. package/src/common/app-sidebar/AppSidebar.vue +174 -174
  75. package/src/common/app-sidebar/components/SidebarMenuItem.vue +149 -149
  76. package/src/common/app-table/AppTable.vue +313 -313
  77. package/src/common/app-table/AppTableLayout.vue +137 -137
  78. package/src/common/app-table/components/ModalSelect.vue +302 -298
  79. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  80. package/src/common/app-table/controllers/useTableModel.ts +102 -102
  81. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  82. package/src/index.ts +131 -131
  83. package/src/styles/variables.sass +12 -12
  84. package/src/utils/files.ts +19 -19
  85. package/dist/types/api/services/ComentsServise.d.ts +0 -10
  86. package/dist/types/api/types/Api_Users.d.ts +0 -43
@@ -1,156 +1,156 @@
1
- import { Api_User } from '../types/Api_User'
2
- import { Api_Status_DTO } from '@/api/types/Api_Tasks'
3
- import { Api_Search_User } from '@/api/types/Api_Search'
4
-
5
- export type Api_Instrument_Storage = {
6
- id: string
7
- created_at: string
8
- deleted_at: string | null
9
- updated_at: string
10
- description: string
11
- name: string
12
- title: string
13
- parent: unknown | null
14
- parents: unknown[]
15
- state_id: unknown | null
16
- }
17
-
18
- export type Api_Instrument_Type = {
19
- id: string
20
- name: string
21
- created_at: string
22
- updated_at: string
23
- deleted_at: string | null
24
- icon: string
25
- storage_id: string
26
- storage: Api_Instrument_Storage
27
- }
28
-
29
- export type Api_Instrument_Location = {
30
- id: string
31
- name: string
32
- title: string
33
- description: string
34
- created_at: string
35
- updated_at: string
36
- deleted_at: string | null
37
- state_id: string | null
38
- }
39
-
40
- export type Api_Instrument_Status = {
41
- id: string
42
- description: string
43
- name: string
44
- title: string
45
- created_at: string
46
- updated_at: string
47
- deleted_at: string | null
48
- }
49
-
50
- export type Api_Instrument = {
51
- id: string
52
- RFID: string | null
53
- instrument_id: string
54
- arrival_at: string
55
- created_at: string
56
- supply_at: string
57
- updated_at: string
58
- deleted_at: string | null
59
- inventory_number: string
60
- instrument_type: Api_Instrument_Type
61
- invoice_ref_key: string
62
- last_status_updated_at: string
63
- location_id: string
64
- location: Api_Instrument_Location
65
- misplacement: boolean
66
- module: string | null
67
- module_id: string | null
68
- name: string
69
- pressure: unknown | null
70
- registry_module_id: string
71
- responsible_id: string
72
- responsible: Api_User
73
- status: Api_Instrument_Status
74
- status_id: string
75
- storage: Api_Instrument_Storage
76
- supervisor: unknown | null
77
- supervisor_id: string
78
- type: unknown | null
79
- weight: unknown | null
80
- }
81
-
82
- export type Api_instruments_HistoryResponse = {
83
- data: Api_Instrument[]
84
- from: number
85
- to: number
86
- total: number
87
- per_page: number
88
- current_page: number
89
- total_pages: number
90
- last_page_url: string
91
- first_page_url: string
92
- next_page_url: string | null
93
- prev_page_url: string | null
94
- path: string
95
- links: {
96
- label: string
97
- url: string
98
- active: boolean
99
- }[]
100
- }
101
-
102
- export type Api_Warehouse_Search = Omit<
103
- Api_Instrument,
104
- | 'created_at'
105
- | 'deleted_at'
106
- | 'invoice_ref_key'
107
- | 'last_status_updated_at'
108
- | 'pressure'
109
- | 'registry_module_id'
110
- | 'supervisor'
111
- | 'supervisor_id'
112
- | 'type'
113
- | 'weight'
114
- > & {
115
- issued_in: string | null
116
- registry: {
117
- id: string
118
- title: string
119
- } | null
120
- }
121
-
122
- export type Api_Warehouse_Create = {
123
- instrument_id: string
124
- inventory_number: string
125
- module_id?: string
126
- registry_module_id?: string
127
- }
128
-
129
- export type Api_Warehouse_Status_History_Item = {
130
- old_status: Api_Status_DTO
131
- new_status: Api_Status_DTO
132
- created_at: string
133
- responsible: Omit<Api_Search_User, 'photos' | 'divisions' | 'passes'> & {
134
- roles: { id: string; display_name: string }[]
135
- }
136
- }
137
-
138
- export type Api_Search_Instrument_Warehouse = Pick<
139
- Api_Instrument,
140
- | 'RFID'
141
- | 'id'
142
- | 'arrival_at'
143
- | 'inventory_number'
144
- | 'location'
145
- | 'module'
146
- | 'name'
147
- | 'responsible'
148
- | 'status'
149
- | 'supply_at'
150
- >
151
-
152
- export type Api_Search_Instrument = {
153
- id: string
154
- name: string
155
- warehouses: Api_Search_Instrument_Warehouse[]
156
- }
1
+ import { Api_User } from '../types/Api_User'
2
+ import { Api_Status_DTO } from '@/api/types/Api_Tasks'
3
+ import { Api_Search_User } from '@/api/types/Api_Search'
4
+
5
+ export type Api_Instrument_Storage = {
6
+ id: string
7
+ created_at: string
8
+ deleted_at: string | null
9
+ updated_at: string
10
+ description: string
11
+ name: string
12
+ title: string
13
+ parent: unknown | null
14
+ parents: unknown[]
15
+ state_id: unknown | null
16
+ }
17
+
18
+ export type Api_Instrument_Type = {
19
+ id: string
20
+ name: string
21
+ created_at: string
22
+ updated_at: string
23
+ deleted_at: string | null
24
+ icon: string
25
+ storage_id: string
26
+ storage: Api_Instrument_Storage
27
+ }
28
+
29
+ export type Api_Instrument_Location = {
30
+ id: string
31
+ name: string
32
+ title: string
33
+ description: string
34
+ created_at: string
35
+ updated_at: string
36
+ deleted_at: string | null
37
+ state_id: string | null
38
+ }
39
+
40
+ export type Api_Instrument_Status = {
41
+ id: string
42
+ description: string
43
+ name: string
44
+ title: string
45
+ created_at: string
46
+ updated_at: string
47
+ deleted_at: string | null
48
+ }
49
+
50
+ export type Api_Instrument = {
51
+ id: string
52
+ RFID: string | null
53
+ instrument_id: string
54
+ arrival_at: string
55
+ created_at: string
56
+ supply_at: string
57
+ updated_at: string
58
+ deleted_at: string | null
59
+ inventory_number: string
60
+ instrument_type: Api_Instrument_Type
61
+ invoice_ref_key: string
62
+ last_status_updated_at: string
63
+ location_id: string
64
+ location: Api_Instrument_Location
65
+ misplacement: boolean
66
+ module: string | null
67
+ module_id: string | null
68
+ name: string
69
+ pressure: unknown | null
70
+ registry_module_id: string
71
+ responsible_id: string
72
+ responsible: Api_User
73
+ status: Api_Instrument_Status
74
+ status_id: string
75
+ storage: Api_Instrument_Storage
76
+ supervisor: unknown | null
77
+ supervisor_id: string
78
+ type: unknown | null
79
+ weight: unknown | null
80
+ }
81
+
82
+ export type Api_instruments_HistoryResponse = {
83
+ data: Api_Instrument[]
84
+ from: number
85
+ to: number
86
+ total: number
87
+ per_page: number
88
+ current_page: number
89
+ total_pages: number
90
+ last_page_url: string
91
+ first_page_url: string
92
+ next_page_url: string | null
93
+ prev_page_url: string | null
94
+ path: string
95
+ links: {
96
+ label: string
97
+ url: string
98
+ active: boolean
99
+ }[]
100
+ }
101
+
102
+ export type Api_Warehouse_Search = Omit<
103
+ Api_Instrument,
104
+ | 'created_at'
105
+ | 'deleted_at'
106
+ | 'invoice_ref_key'
107
+ | 'last_status_updated_at'
108
+ | 'pressure'
109
+ | 'registry_module_id'
110
+ | 'supervisor'
111
+ | 'supervisor_id'
112
+ | 'type'
113
+ | 'weight'
114
+ > & {
115
+ issued_in: string | null
116
+ registry: {
117
+ id: string
118
+ title: string
119
+ } | null
120
+ }
121
+
122
+ export type Api_Warehouse_Create = {
123
+ instrument_id: string
124
+ inventory_number: string
125
+ module_id?: string
126
+ registry_module_id?: string
127
+ }
128
+
129
+ export type Api_Warehouse_Status_History_Item = {
130
+ old_status: Api_Status_DTO
131
+ new_status: Api_Status_DTO
132
+ created_at: string
133
+ responsible: Omit<Api_Search_User, 'photos' | 'divisions' | 'passes'> & {
134
+ roles: { id: string; display_name: string }[]
135
+ }
136
+ }
137
+
138
+ export type Api_Search_Instrument_Warehouse = Pick<
139
+ Api_Instrument,
140
+ | 'RFID'
141
+ | 'id'
142
+ | 'arrival_at'
143
+ | 'inventory_number'
144
+ | 'location'
145
+ | 'module'
146
+ | 'name'
147
+ | 'responsible'
148
+ | 'status'
149
+ | 'supply_at'
150
+ >
151
+
152
+ export type Api_Search_Instrument = {
153
+ id: string
154
+ name: string
155
+ warehouses: Api_Search_Instrument_Warehouse[]
156
+ }
@@ -1,5 +1,5 @@
1
- export type Api_Metrics_Unused_Personnel = {
2
- position_name: string | null
3
- brigade_name: string | null
4
- full_name: string | null
5
- }
1
+ export type Api_Metrics_Unused_Personnel = {
2
+ position_name: string | null
3
+ brigade_name: string | null
4
+ full_name: string | null
5
+ }
@@ -1,21 +1,21 @@
1
- import { Api_Search_Module } from '@/api/types/Api_Search'
2
- import { Api_Instrument, Api_Instrument_Location } from '@/api/types/Api_Instruments'
3
-
4
- export type Api_Module_Create = Pick<Api_Search_Module, 'RFID' | 'inventory_number' | 'title' | 'type'> & {
5
- user_id: string
6
- teams: string[]
7
- }
8
-
9
- export type Api_Module = Api_Search_Module & {
10
- auth_count: number
11
- auth_failed_count: number
12
- instrument: Pick<Api_Instrument, 'id' | 'RFID' | 'instrument_id' | 'inventory_number' | 'name'> | null
13
- inventory_completed_count: number
14
- location: Pick<Api_Instrument_Location, 'id' | 'name' | 'title' | 'state_id' | 'description'> | null
15
- location_id: string | null
16
- team_id: string | null
17
- tun: unknown
18
- user_id: string
19
- warehouse_id: string | null
20
- work_zones: unknown[]
21
- }
1
+ import { Api_Search_Module } from '@/api/types/Api_Search'
2
+ import { Api_Instrument, Api_Instrument_Location } from '@/api/types/Api_Instruments'
3
+
4
+ export type Api_Module_Create = Pick<Api_Search_Module, 'RFID' | 'inventory_number' | 'title' | 'type'> & {
5
+ user_id: string
6
+ teams: string[]
7
+ }
8
+
9
+ export type Api_Module = Api_Search_Module & {
10
+ auth_count: number
11
+ auth_failed_count: number
12
+ instrument: Pick<Api_Instrument, 'id' | 'RFID' | 'instrument_id' | 'inventory_number' | 'name'> | null
13
+ inventory_completed_count: number
14
+ location: Pick<Api_Instrument_Location, 'id' | 'name' | 'title' | 'state_id' | 'description'> | null
15
+ location_id: string | null
16
+ team_id: string | null
17
+ tun: unknown
18
+ user_id: string
19
+ warehouse_id: string | null
20
+ work_zones: unknown[]
21
+ }
@@ -1,62 +1,62 @@
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
- completed_at: string | null
50
- total_tasks: number
51
- is_archive: boolean
52
- teams: Api_Project_Team[]
53
- status: Api_Project_Status
54
- category: Api_Project_Category
55
- repair: Api_Project_Repair | null
56
- schedule_id: string | null
57
- }
58
-
59
- export type Api_Project_Add_Root_Intervals_Payload = {
60
- history: number
61
- with_status_in_progress: number
62
- }
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
+ completed_at: string | null
50
+ total_tasks: number
51
+ is_archive: boolean
52
+ teams: Api_Project_Team[]
53
+ status: Api_Project_Status
54
+ category: Api_Project_Category
55
+ repair: Api_Project_Repair | null
56
+ schedule_id: string | null
57
+ }
58
+
59
+ export type Api_Project_Add_Root_Intervals_Payload = {
60
+ history: number
61
+ with_status_in_progress: number
62
+ }