shared-ritm 1.3.125 → 1.3.126

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 (82) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +502 -484
  3. package/dist/shared-ritm.umd.js +3 -3
  4. package/dist/types/api/services/MetricsService.d.ts +0 -1
  5. package/dist/types/api/services/PhotoService.d.ts +40 -0
  6. package/dist/types/stories/Button.stories.d.ts +13 -0
  7. package/dist/types/stories/Checkbox.stories.d.ts +7 -0
  8. package/dist/types/stories/Confirm.stories.d.ts +8 -0
  9. package/dist/types/stories/DatePicker.stories.d.ts +8 -0
  10. package/dist/types/stories/Dropdown.stories.d.ts +8 -0
  11. package/dist/types/stories/File.stories.d.ts +8 -0
  12. package/dist/types/stories/Icon.stories.d.ts +7 -0
  13. package/dist/types/stories/Input.stories.d.ts +11 -0
  14. package/dist/types/stories/InputNew.stories.d.ts +12 -0
  15. package/dist/types/stories/InputSearch.stories.d.ts +10 -0
  16. package/dist/types/stories/Loader.stories.d.ts +8 -0
  17. package/dist/types/stories/Select.stories.d.ts +7 -0
  18. package/dist/types/stories/Toggle.stories.d.ts +8 -0
  19. package/package.json +70 -70
  20. package/src/App.vue +2461 -2461
  21. package/src/api/services/AuthService.ts +67 -67
  22. package/src/api/services/ControlsService.ts +100 -100
  23. package/src/api/services/EquipmentService.ts +68 -68
  24. package/src/api/services/GanttService.ts +58 -58
  25. package/src/api/services/InstrumentsService.ts +76 -76
  26. package/src/api/services/MetricsService.ts +0 -3
  27. package/src/api/services/RepairsService.ts +111 -111
  28. package/src/api/services/TasksService.ts +165 -165
  29. package/src/api/services/UserIssueService.ts +32 -32
  30. package/src/api/services/UserService.ts +129 -129
  31. package/src/api/services/VideoService.ts +118 -118
  32. package/src/api/settings/ApiService.ts +185 -185
  33. package/src/api/types/Api_Auth.ts +121 -121
  34. package/src/api/types/Api_Controls.ts +112 -112
  35. package/src/api/types/Api_Equipment.ts +54 -54
  36. package/src/api/types/Api_Instruments.ts +182 -182
  37. package/src/api/types/Api_Metrics.ts +89 -89
  38. package/src/api/types/Api_Repairs.ts +200 -200
  39. package/src/api/types/Api_Search.ts +81 -81
  40. package/src/api/types/Api_Tasks.ts +378 -378
  41. package/src/api/types/Api_User.ts +161 -161
  42. package/src/api/types/Api_User_Issue.ts +36 -36
  43. package/src/api/types/Api_Video.ts +244 -244
  44. package/src/common/app-button/Button.stories.ts +369 -369
  45. package/src/common/app-checkbox/AppCheckbox.vue +33 -31
  46. package/src/common/app-checkbox/Checkbox.stories.ts +252 -252
  47. package/src/common/app-date-picker/DatePicker.stories.ts +66 -66
  48. package/src/common/app-datepicker/Datepicker.stories.ts +145 -145
  49. package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
  50. package/src/common/app-dialogs/Confirm.stories.ts +93 -93
  51. package/src/common/app-dropdown/Dropdown.stories.ts +94 -94
  52. package/src/common/app-file/File.stories.ts +104 -104
  53. package/src/common/app-icon/AppIcon.vue +110 -110
  54. package/src/common/app-icon/Icon.stories.ts +91 -91
  55. package/src/common/app-input/AppInput.vue +150 -150
  56. package/src/common/app-input/Input.stories.ts +160 -160
  57. package/src/common/app-input-new/AppInputNew.vue +181 -181
  58. package/src/common/app-input-new/InputNew.stories.ts +240 -240
  59. package/src/common/app-input-search/InputSearch.stories.ts +149 -149
  60. package/src/common/app-layout/components/AppLayoutHeader.vue +289 -289
  61. package/src/common/app-loader/Loader.stories.ts +114 -114
  62. package/src/common/app-modal/index.vue +101 -101
  63. package/src/common/app-select/AppSelect.vue +159 -159
  64. package/src/common/app-select/Select.stories.ts +155 -155
  65. package/src/common/app-sheet-new/AppSheetNew.vue +254 -254
  66. package/src/common/app-sidebar/AppSidebar.vue +177 -177
  67. package/src/common/app-table/AppTable.vue +313 -313
  68. package/src/common/app-table/components/ModalSelect.stories.ts +323 -323
  69. package/src/common/app-table/components/ModalSelect.vue +311 -302
  70. package/src/common/app-table/components/TableModal.vue +369 -369
  71. package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
  72. package/src/common/app-table/controllers/useTableModel.ts +98 -98
  73. package/src/common/app-toggle/AppToggle.vue +12 -12
  74. package/src/common/app-toggle/Toggle.stories.ts +245 -245
  75. package/src/common/app-wrapper/AppWrapper.vue +31 -31
  76. package/src/configs/storybook.ts +14 -14
  77. package/src/icons/sidebar/user-requests-icon.vue +23 -23
  78. package/src/index.ts +134 -134
  79. package/src/shared/styles/general.css +140 -140
  80. package/src/styles/variables.sass +12 -12
  81. package/src/utils/files.ts +38 -38
  82. package/src/utils/helpers.ts +59 -59
@@ -1,182 +1,182 @@
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
- }
157
-
158
- export type Api_Warehouse_Discard = {
159
- status: string
160
- warehouses: string[]
161
- }
162
-
163
- export type Api_Discard_DTO = {
164
- id: string
165
- status_id: string
166
- discarded_at: string | null
167
- status: {
168
- id: string
169
- name: 'inspection' | 'repair' | string
170
- title: string
171
- }
172
- responsible: {
173
- id: string
174
- email: string
175
- full_name: string
176
- }
177
- warehouse: {
178
- id: string
179
- inventory_number: string
180
- name: string
181
- }
182
- }
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
+ }
157
+
158
+ export type Api_Warehouse_Discard = {
159
+ status: string
160
+ warehouses: string[]
161
+ }
162
+
163
+ export type Api_Discard_DTO = {
164
+ id: string
165
+ status_id: string
166
+ discarded_at: string | null
167
+ status: {
168
+ id: string
169
+ name: 'inspection' | 'repair' | string
170
+ title: string
171
+ }
172
+ responsible: {
173
+ id: string
174
+ email: string
175
+ full_name: string
176
+ }
177
+ warehouse: {
178
+ id: string
179
+ inventory_number: string
180
+ name: string
181
+ }
182
+ }
@@ -1,89 +1,89 @@
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
- fixate_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
- }
52
-
53
- export type Api_Metrics_Performance = {
54
- id: string
55
- name: string
56
- dynamics: boolean
57
- calc_performance_median: number | null
58
- tasks: Api_Metrics_Performance_Task[]
59
- }
60
-
61
- export type Api_Metrics_Performance_Task = {
62
- id: string
63
- name: string
64
- calc_performance_median: number | null
65
- interval_start_date: string | null
66
- interval_end_date: string | null
67
- start_date: string | null
68
- end_date: string | null
69
- intervals_total_seconds: number | null
70
- work_zone_id: string
71
- assigned_users: Api_Metrics_Performance_User[]
72
- }
73
-
74
- export type Api_Metrics_Performance_User = {
75
- id: string
76
- full_name: string
77
- calc_performance: number | null
78
- intervals_total_seconds: number | null
79
- position: {
80
- id: string
81
- display_name: string
82
- }
83
- intervals: unknown[]
84
- }
85
-
86
- export type Api_Metrics_Task_Project = {
87
- id: string
88
- name: string
89
- }
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
+ fixate_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
+ }
52
+
53
+ export type Api_Metrics_Performance = {
54
+ id: string
55
+ name: string
56
+ dynamics: boolean
57
+ calc_performance_median: number | null
58
+ tasks: Api_Metrics_Performance_Task[]
59
+ }
60
+
61
+ export type Api_Metrics_Performance_Task = {
62
+ id: string
63
+ name: string
64
+ calc_performance_median: number | null
65
+ interval_start_date: string | null
66
+ interval_end_date: string | null
67
+ start_date: string | null
68
+ end_date: string | null
69
+ intervals_total_seconds: number | null
70
+ work_zone_id: string
71
+ assigned_users: Api_Metrics_Performance_User[]
72
+ }
73
+
74
+ export type Api_Metrics_Performance_User = {
75
+ id: string
76
+ full_name: string
77
+ calc_performance: number | null
78
+ intervals_total_seconds: number | null
79
+ position: {
80
+ id: string
81
+ display_name: string
82
+ }
83
+ intervals: unknown[]
84
+ }
85
+
86
+ export type Api_Metrics_Task_Project = {
87
+ id: string
88
+ name: string
89
+ }