shared-ritm 1.3.70 → 1.3.71

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 +3465 -3430
  3. package/dist/shared-ritm.umd.js +144 -144
  4. package/dist/types/api/services/AuthService.d.ts +1 -0
  5. package/dist/types/api/services/UserService.d.ts +2 -1
  6. package/dist/types/api/settings/ApiService.d.ts +6 -2
  7. package/dist/types/api/types/Api_Auth.d.ts +15 -0
  8. package/dist/types/api/types/Api_User.d.ts +9 -0
  9. package/package.json +70 -70
  10. package/src/App.vue +2461 -2461
  11. package/src/api/services/AuthService.ts +67 -53
  12. package/src/api/services/ControlsService.ts +96 -96
  13. package/src/api/services/EquipmentService.ts +29 -29
  14. package/src/api/services/GanttService.ts +23 -23
  15. package/src/api/services/MetricsService.ts +127 -127
  16. package/src/api/services/RepairsService.ts +111 -111
  17. package/src/api/services/UserService.ts +129 -123
  18. package/src/api/services/VideoService.ts +118 -118
  19. package/src/api/settings/ApiService.ts +184 -124
  20. package/src/api/types/Api_Auth.ts +121 -105
  21. package/src/api/types/Api_Metrics.ts +26 -26
  22. package/src/api/types/Api_Repairs.ts +186 -186
  23. package/src/api/types/Api_Tasks.ts +376 -376
  24. package/src/api/types/Api_User.ts +156 -146
  25. package/src/api/types/Api_Video.ts +244 -244
  26. package/src/common/app-button/Button.stories.ts +369 -369
  27. package/src/common/app-checkbox/AppCheckbox.vue +31 -31
  28. package/src/common/app-checkbox/Checkbox.stories.ts +252 -252
  29. package/src/common/app-date-picker/DatePicker.stories.ts +66 -66
  30. package/src/common/app-datepicker/Datepicker.stories.ts +145 -145
  31. package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
  32. package/src/common/app-dialogs/Confirm.stories.ts +93 -93
  33. package/src/common/app-dropdown/Dropdown.stories.ts +94 -94
  34. package/src/common/app-file/File.stories.ts +104 -104
  35. package/src/common/app-icon/AppIcon.vue +108 -108
  36. package/src/common/app-icon/Icon.stories.ts +91 -91
  37. package/src/common/app-input/Input.stories.ts +160 -160
  38. package/src/common/app-input-new/InputNew.stories.ts +240 -240
  39. package/src/common/app-input-search/InputSearch.stories.ts +149 -149
  40. package/src/common/app-layout/components/AppLayoutHeader.vue +289 -289
  41. package/src/common/app-loader/Loader.stories.ts +114 -114
  42. package/src/common/app-select/AppSelect.vue +159 -159
  43. package/src/common/app-select/Select.stories.ts +155 -155
  44. package/src/common/app-sidebar/AppSidebar.vue +174 -174
  45. package/src/common/app-table/AppTable.vue +313 -313
  46. package/src/common/app-table/components/ModalSelect.stories.ts +323 -323
  47. package/src/common/app-table/components/ModalSelect.vue +302 -302
  48. package/src/common/app-table/components/TableModal.vue +367 -367
  49. package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
  50. package/src/common/app-table/controllers/useTableModel.ts +97 -97
  51. package/src/common/app-toggle/AppToggle.vue +12 -12
  52. package/src/common/app-toggle/Toggle.stories.ts +245 -245
  53. package/src/common/app-wrapper/AppWrapper.vue +31 -31
  54. package/src/configs/storybook.ts +14 -14
  55. package/src/index.ts +131 -131
  56. package/src/shared/styles/general.css +140 -140
  57. package/src/styles/variables.sass +12 -12
  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,146 +1,156 @@
1
- import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
2
- import { Api_Instrument } from '@/api/types/Api_Instruments'
3
- import { Api_Search_User_Passes, Api_Search_User_Positions } from '@/api/types/Api_Search'
4
-
5
- export type Api_User_Team = {
6
- id: string
7
- name: string
8
- display_name: string
9
- description: string
10
- created_at: string
11
- updated_at: string
12
- pivot?: {
13
- team_id: string
14
- user_id: string
15
- }
16
- roles?: Api_User_Role[]
17
- }
18
-
19
- export type Api_User_Team_Search = {
20
- id: string
21
- name: string
22
- display_name: string
23
- }
24
-
25
- export type Api_User_Photo = {
26
- id: string
27
- name: string
28
- path: string
29
- type: string
30
- }
31
-
32
- export type Api_User_Archive_History_Item = {
33
- user_id: string
34
- responsible_id: string
35
- archived_at: string
36
- reason: string | null
37
- restored_at: string | null
38
- }
39
-
40
- export type Api_User_Task = {
41
- id: string
42
- name: string
43
- project_id: string
44
- status: Api_Tasks_Status_Dto
45
- }
46
-
47
- export type Api_User = {
48
- id: string
49
- RFID: string
50
- avatar: unknown | null
51
- avatar_id: string | null
52
- change_password: string
53
- created_at: string
54
- updated_at: string
55
- deleted_at: string | null
56
- dismissal_at: string | null
57
- email_verified_at: string
58
- divisions: string
59
- email: string
60
- face_recognition_id: string | null
61
- first_name: string
62
- full_name: string
63
- last_name: string
64
- patronymic: string
65
- personnel_number: number
66
- phone: string
67
- profession: string
68
- teams: Api_User_Team[]
69
- photos: Api_User_Photo[]
70
- archiveHistory: Api_User_Archive_History_Item[]
71
- assigned_tasks?: Api_User_Task[]
72
- responsible_tasks?: Api_User_Task[]
73
- passes?: Api_Search_User_Passes[]
74
- positions: Api_Search_User_Positions[]
75
- warehouses?: Partial<Api_User_Warehouse>[]
76
- brigades: { id: string; name: string }[]
77
- }
78
-
79
- export type Api_User_Create = {
80
- last_name?: string
81
- first_name?: string
82
- patronymic?: string
83
- email?: string
84
- phone?: string
85
- divisions?: string
86
- positions?: [string]
87
- teams?: {
88
- team_id: string
89
- roles: string[]
90
- }[]
91
- current_password?: string
92
- password?: string
93
- password_confirmation?: string
94
- }
95
-
96
- export type Api_User_Permission = {
97
- id: string
98
- name: string
99
- display_name: string
100
- }
101
-
102
- export type Api_User_Role = {
103
- id: string
104
- name: string
105
- display_name: string
106
- permissions?: Api_User_Permission[]
107
- }
108
-
109
- export type Api_User_Position = {
110
- id: string
111
- name: string
112
- display_name: string
113
- description?: string
114
- }
115
-
116
- export type Api_User_Delete_Body = {
117
- user_id: string
118
- archive_reason?: string
119
- }
120
-
121
- export type Api_User_Delete_Photos_Body = {
122
- user_id: string
123
- photos?: string[]
124
- }
125
-
126
- export type Api_User_Warehouse = Pick<
127
- Api_Instrument,
128
- | 'id'
129
- | 'RFID'
130
- | 'instrument_type'
131
- | 'inventory_number'
132
- | 'location'
133
- | 'misplacement'
134
- | 'module'
135
- | 'name'
136
- | 'responsible'
137
- | 'status'
138
- | 'storage'
139
- | 'updated_at'
140
- > & {
141
- issued_in: string | null
142
- registry: {
143
- id: string
144
- title: string
145
- } | null
146
- }
1
+ import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
2
+ import { Api_Instrument } from '@/api/types/Api_Instruments'
3
+ import { Api_Search_User_Passes, Api_Search_User_Positions } from '@/api/types/Api_Search'
4
+
5
+ export type Api_User_Team = {
6
+ id: string
7
+ name: string
8
+ display_name: string
9
+ description: string
10
+ created_at: string
11
+ updated_at: string
12
+ pivot?: {
13
+ team_id: string
14
+ user_id: string
15
+ }
16
+ roles?: Api_User_Role[]
17
+ }
18
+
19
+ export type Api_User_Team_Search = {
20
+ id: string
21
+ name: string
22
+ display_name: string
23
+ }
24
+
25
+ export type Api_User_Photo = {
26
+ id: string
27
+ name: string
28
+ path: string
29
+ type: string
30
+ }
31
+
32
+ export type Api_User_Archive_History_Item = {
33
+ user_id: string
34
+ responsible_id: string
35
+ archived_at: string
36
+ reason: string | null
37
+ restored_at: string | null
38
+ }
39
+
40
+ export type Api_User_Task = {
41
+ id: string
42
+ name: string
43
+ project_id: string
44
+ status: Api_Tasks_Status_Dto
45
+ }
46
+
47
+ export type Api_User = {
48
+ id: string
49
+ RFID: string
50
+ avatar: unknown | null
51
+ avatar_id: string | null
52
+ change_password: string
53
+ created_at: string
54
+ updated_at: string
55
+ deleted_at: string | null
56
+ dismissal_at: string | null
57
+ email_verified_at: string
58
+ divisions: string
59
+ email: string
60
+ face_recognition_id: string | null
61
+ first_name: string
62
+ full_name: string
63
+ last_name: string
64
+ patronymic: string
65
+ personnel_number: number
66
+ phone: string
67
+ profession: string
68
+ teams: Api_User_Team[]
69
+ photos: Api_User_Photo[]
70
+ archiveHistory: Api_User_Archive_History_Item[]
71
+ assigned_tasks?: Api_User_Task[]
72
+ responsible_tasks?: Api_User_Task[]
73
+ passes?: Api_Search_User_Passes[]
74
+ positions: Api_Search_User_Positions[]
75
+ warehouses?: Partial<Api_User_Warehouse>[]
76
+ brigades: { id: string; name: string }[]
77
+ password_change_available_at: string
78
+ password_change_due_at: string
79
+ password_last_changed_at: string
80
+ }
81
+
82
+ export type Api_User_Change_Password_Payload = {
83
+ email: string
84
+ password: string
85
+ currentPassword: string
86
+ passwordConfirmation: string
87
+ }
88
+
89
+ export type Api_User_Create = {
90
+ last_name?: string
91
+ first_name?: string
92
+ patronymic?: string
93
+ email?: string
94
+ phone?: string
95
+ divisions?: string
96
+ positions?: [string]
97
+ teams?: {
98
+ team_id: string
99
+ roles: string[]
100
+ }[]
101
+ current_password?: string
102
+ password?: string
103
+ password_confirmation?: string
104
+ }
105
+
106
+ export type Api_User_Permission = {
107
+ id: string
108
+ name: string
109
+ display_name: string
110
+ }
111
+
112
+ export type Api_User_Role = {
113
+ id: string
114
+ name: string
115
+ display_name: string
116
+ permissions?: Api_User_Permission[]
117
+ }
118
+
119
+ export type Api_User_Position = {
120
+ id: string
121
+ name: string
122
+ display_name: string
123
+ description?: string
124
+ }
125
+
126
+ export type Api_User_Delete_Body = {
127
+ user_id: string
128
+ archive_reason?: string
129
+ }
130
+
131
+ export type Api_User_Delete_Photos_Body = {
132
+ user_id: string
133
+ photos?: string[]
134
+ }
135
+
136
+ export type Api_User_Warehouse = Pick<
137
+ Api_Instrument,
138
+ | 'id'
139
+ | 'RFID'
140
+ | 'instrument_type'
141
+ | 'inventory_number'
142
+ | 'location'
143
+ | 'misplacement'
144
+ | 'module'
145
+ | 'name'
146
+ | 'responsible'
147
+ | 'status'
148
+ | 'storage'
149
+ | 'updated_at'
150
+ > & {
151
+ issued_in: string | null
152
+ registry: {
153
+ id: string
154
+ title: string
155
+ } | null
156
+ }