shared-ritm 1.3.127 → 1.3.129

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 (84) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +1649 -1625
  3. package/dist/shared-ritm.umd.js +135 -135
  4. package/dist/types/api/services/MetricsService.d.ts +3 -2
  5. package/dist/types/api/services/PhotoService.d.ts +40 -0
  6. package/dist/types/api/types/Api_Metrics.d.ts +21 -0
  7. package/dist/types/stories/Button.stories.d.ts +13 -0
  8. package/dist/types/stories/Checkbox.stories.d.ts +7 -0
  9. package/dist/types/stories/Confirm.stories.d.ts +8 -0
  10. package/dist/types/stories/DatePicker.stories.d.ts +8 -0
  11. package/dist/types/stories/Dropdown.stories.d.ts +8 -0
  12. package/dist/types/stories/File.stories.d.ts +8 -0
  13. package/dist/types/stories/Icon.stories.d.ts +7 -0
  14. package/dist/types/stories/Input.stories.d.ts +11 -0
  15. package/dist/types/stories/InputNew.stories.d.ts +12 -0
  16. package/dist/types/stories/InputSearch.stories.d.ts +10 -0
  17. package/dist/types/stories/Loader.stories.d.ts +8 -0
  18. package/dist/types/stories/Select.stories.d.ts +7 -0
  19. package/dist/types/stories/Toggle.stories.d.ts +8 -0
  20. package/package.json +70 -70
  21. package/src/App.vue +2461 -2461
  22. package/src/api/services/AuthService.ts +67 -67
  23. package/src/api/services/ControlsService.ts +100 -100
  24. package/src/api/services/EquipmentService.ts +68 -68
  25. package/src/api/services/GanttService.ts +58 -58
  26. package/src/api/services/InstrumentsService.ts +76 -76
  27. package/src/api/services/MetricsService.ts +7 -2
  28. package/src/api/services/RepairsService.ts +111 -111
  29. package/src/api/services/TasksService.ts +165 -165
  30. package/src/api/services/UserIssueService.ts +32 -32
  31. package/src/api/services/UserService.ts +129 -129
  32. package/src/api/services/VideoService.ts +118 -118
  33. package/src/api/settings/ApiService.ts +185 -185
  34. package/src/api/types/Api_Auth.ts +121 -121
  35. package/src/api/types/Api_Controls.ts +112 -112
  36. package/src/api/types/Api_Equipment.ts +54 -54
  37. package/src/api/types/Api_Instruments.ts +182 -182
  38. package/src/api/types/Api_Metrics.ts +112 -89
  39. package/src/api/types/Api_Repairs.ts +200 -200
  40. package/src/api/types/Api_Search.ts +81 -81
  41. package/src/api/types/Api_Tasks.ts +378 -378
  42. package/src/api/types/Api_User.ts +161 -161
  43. package/src/api/types/Api_User_Issue.ts +36 -36
  44. package/src/api/types/Api_Video.ts +244 -244
  45. package/src/common/app-button/Button.stories.ts +369 -369
  46. package/src/common/app-checkbox/AppCheckbox.vue +33 -33
  47. package/src/common/app-checkbox/Checkbox.stories.ts +252 -252
  48. package/src/common/app-date-picker/DatePicker.stories.ts +66 -66
  49. package/src/common/app-datepicker/AppDatepicker.vue +4 -1
  50. package/src/common/app-datepicker/Datepicker.stories.ts +145 -145
  51. package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
  52. package/src/common/app-dialogs/Confirm.stories.ts +93 -93
  53. package/src/common/app-dropdown/Dropdown.stories.ts +94 -94
  54. package/src/common/app-file/File.stories.ts +104 -104
  55. package/src/common/app-icon/AppIcon.vue +110 -110
  56. package/src/common/app-icon/Icon.stories.ts +91 -91
  57. package/src/common/app-input/AppInput.vue +150 -150
  58. package/src/common/app-input/Input.stories.ts +160 -160
  59. package/src/common/app-input-new/AppInputNew.vue +186 -181
  60. package/src/common/app-input-new/InputNew.stories.ts +240 -240
  61. package/src/common/app-input-search/InputSearch.stories.ts +149 -149
  62. package/src/common/app-layout/components/AppLayoutHeader.vue +289 -289
  63. package/src/common/app-loader/Loader.stories.ts +114 -114
  64. package/src/common/app-modal/index.vue +101 -101
  65. package/src/common/app-select/AppSelect.vue +167 -159
  66. package/src/common/app-select/Select.stories.ts +155 -155
  67. package/src/common/app-sheet-new/AppSheetNew.vue +254 -254
  68. package/src/common/app-sidebar/AppSidebar.vue +177 -177
  69. package/src/common/app-table/AppTable.vue +313 -313
  70. package/src/common/app-table/components/ModalSelect.stories.ts +323 -323
  71. package/src/common/app-table/components/ModalSelect.vue +311 -311
  72. package/src/common/app-table/components/TableModal.vue +369 -369
  73. package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
  74. package/src/common/app-table/controllers/useTableModel.ts +98 -98
  75. package/src/common/app-toggle/AppToggle.vue +12 -12
  76. package/src/common/app-toggle/Toggle.stories.ts +245 -245
  77. package/src/common/app-wrapper/AppWrapper.vue +31 -31
  78. package/src/configs/storybook.ts +14 -14
  79. package/src/icons/sidebar/user-requests-icon.vue +23 -23
  80. package/src/index.ts +134 -134
  81. package/src/shared/styles/general.css +140 -140
  82. package/src/styles/variables.sass +12 -12
  83. package/src/utils/files.ts +38 -38
  84. package/src/utils/helpers.ts +59 -59
@@ -1,161 +1,161 @@
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
- has_video_analytics_photo?: boolean
81
- calc_performance_median?: number | null
82
- }
83
-
84
- export type Api_User_Change_Password_Payload = {
85
- email: string
86
- password: string
87
- currentPassword: string
88
- passwordConfirmation: string
89
- }
90
-
91
- export type Api_User_Create = {
92
- last_name?: string
93
- first_name?: string
94
- patronymic?: string
95
- email?: string
96
- phone?: string
97
- divisions?: string
98
- positions?: [string]
99
- teams?: {
100
- team_id: string
101
- roles: string[]
102
- }[]
103
- current_password?: string
104
- password?: string
105
- password_confirmation?: string
106
- }
107
-
108
- export type Api_User_Permission = {
109
- id: string
110
- name: string
111
- display_name: string
112
- }
113
-
114
- export type Api_User_Role = {
115
- id: string
116
- name: string
117
- display_name: string
118
- permissions?: Api_User_Permission[]
119
- }
120
-
121
- export type Api_User_Position_Type = 'admin' | 'worker' | null
122
-
123
- export type Api_User_Position = {
124
- id: string
125
- name: string
126
- display_name: string
127
- description?: string
128
- type?: Api_User_Position_Type
129
- }
130
-
131
- export type Api_User_Delete_Body = {
132
- user_id: string
133
- archive_reason?: string
134
- }
135
-
136
- export type Api_User_Delete_Photos_Body = {
137
- user_id: string
138
- photos?: string[]
139
- }
140
-
141
- export type Api_User_Warehouse = Pick<
142
- Api_Instrument,
143
- | 'id'
144
- | 'RFID'
145
- | 'instrument_type'
146
- | 'inventory_number'
147
- | 'location'
148
- | 'misplacement'
149
- | 'module'
150
- | 'name'
151
- | 'responsible'
152
- | 'status'
153
- | 'storage'
154
- | 'updated_at'
155
- > & {
156
- issued_in: string | null
157
- registry: {
158
- id: string
159
- title: string
160
- } | null
161
- }
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
+ has_video_analytics_photo?: boolean
81
+ calc_performance_median?: number | null
82
+ }
83
+
84
+ export type Api_User_Change_Password_Payload = {
85
+ email: string
86
+ password: string
87
+ currentPassword: string
88
+ passwordConfirmation: string
89
+ }
90
+
91
+ export type Api_User_Create = {
92
+ last_name?: string
93
+ first_name?: string
94
+ patronymic?: string
95
+ email?: string
96
+ phone?: string
97
+ divisions?: string
98
+ positions?: [string]
99
+ teams?: {
100
+ team_id: string
101
+ roles: string[]
102
+ }[]
103
+ current_password?: string
104
+ password?: string
105
+ password_confirmation?: string
106
+ }
107
+
108
+ export type Api_User_Permission = {
109
+ id: string
110
+ name: string
111
+ display_name: string
112
+ }
113
+
114
+ export type Api_User_Role = {
115
+ id: string
116
+ name: string
117
+ display_name: string
118
+ permissions?: Api_User_Permission[]
119
+ }
120
+
121
+ export type Api_User_Position_Type = 'admin' | 'worker' | null
122
+
123
+ export type Api_User_Position = {
124
+ id: string
125
+ name: string
126
+ display_name: string
127
+ description?: string
128
+ type?: Api_User_Position_Type
129
+ }
130
+
131
+ export type Api_User_Delete_Body = {
132
+ user_id: string
133
+ archive_reason?: string
134
+ }
135
+
136
+ export type Api_User_Delete_Photos_Body = {
137
+ user_id: string
138
+ photos?: string[]
139
+ }
140
+
141
+ export type Api_User_Warehouse = Pick<
142
+ Api_Instrument,
143
+ | 'id'
144
+ | 'RFID'
145
+ | 'instrument_type'
146
+ | 'inventory_number'
147
+ | 'location'
148
+ | 'misplacement'
149
+ | 'module'
150
+ | 'name'
151
+ | 'responsible'
152
+ | 'status'
153
+ | 'storage'
154
+ | 'updated_at'
155
+ > & {
156
+ issued_in: string | null
157
+ registry: {
158
+ id: string
159
+ title: string
160
+ } | null
161
+ }
@@ -1,36 +1,36 @@
1
- export type Api_User_Issue_List_Item = {
2
- id: string
3
- section: string
4
- status: string
5
- type: string
6
- topic: string
7
- created_at: string
8
- number: number
9
- }
10
-
11
- export type Api_User_Issue_Msg = {
12
- id: string
13
- message: string
14
- thread_id: string
15
- files: unknown[]
16
- user: {
17
- id: string
18
- full_name: string
19
- }
20
- }
21
-
22
- export type Api_User_Issue = {
23
- id: string
24
- section: string
25
- status: string
26
- type: string
27
- topic: string
28
- number: number
29
- messages: Api_User_Issue_Msg[]
30
- }
31
-
32
- export type Api_User_Issue_Properties = {
33
- section: Record<string, string>
34
- status: Record<string, string>
35
- type: Record<string, string>
36
- }
1
+ export type Api_User_Issue_List_Item = {
2
+ id: string
3
+ section: string
4
+ status: string
5
+ type: string
6
+ topic: string
7
+ created_at: string
8
+ number: number
9
+ }
10
+
11
+ export type Api_User_Issue_Msg = {
12
+ id: string
13
+ message: string
14
+ thread_id: string
15
+ files: unknown[]
16
+ user: {
17
+ id: string
18
+ full_name: string
19
+ }
20
+ }
21
+
22
+ export type Api_User_Issue = {
23
+ id: string
24
+ section: string
25
+ status: string
26
+ type: string
27
+ topic: string
28
+ number: number
29
+ messages: Api_User_Issue_Msg[]
30
+ }
31
+
32
+ export type Api_User_Issue_Properties = {
33
+ section: Record<string, string>
34
+ status: Record<string, string>
35
+ type: Record<string, string>
36
+ }