shared-ritm 1.2.97 → 1.2.99

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 (119) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +2051 -2054
  4. package/dist/shared-ritm.umd.js +25 -25
  5. package/dist/types/api/services/UserService.d.ts +7 -0
  6. package/dist/types/api/services/VideoService.d.ts +0 -14
  7. package/dist/types/api/types/Api_Tasks.d.ts +1 -1
  8. package/dist/types/index.d.ts +0 -1
  9. package/package.json +1 -1
  10. package/src/App.vue +2461 -2461
  11. package/src/api/services/AuthService.ts +64 -64
  12. package/src/api/services/CommentsService.ts +24 -24
  13. package/src/api/services/ControlsService.ts +65 -65
  14. package/src/api/services/FileService.ts +17 -17
  15. package/src/api/services/GanttService.ts +17 -17
  16. package/src/api/services/MetricsService.ts +110 -110
  17. package/src/api/services/ProjectsService.ts +68 -68
  18. package/src/api/services/RepairsService.ts +119 -119
  19. package/src/api/services/SearchService.ts +16 -16
  20. package/src/api/services/TasksService.ts +145 -145
  21. package/src/api/services/UserService.ts +101 -87
  22. package/src/api/services/VideoService.ts +0 -19
  23. package/src/api/types/Api_Comment.ts +40 -40
  24. package/src/api/types/Api_Controls.ts +72 -72
  25. package/src/api/types/Api_Files.ts +7 -7
  26. package/src/api/types/Api_Projects.ts +55 -55
  27. package/src/api/types/Api_Repairs.ts +115 -115
  28. package/src/api/types/Api_Search.ts +48 -48
  29. package/src/api/types/Api_Service.ts +9 -9
  30. package/src/api/types/Api_Tasks.ts +315 -315
  31. package/src/common/app-button/AppButton.vue +173 -173
  32. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  33. package/src/common/app-date-picker/AppDatePicker.vue +81 -81
  34. package/src/common/app-datepicker/AppDatepicker.vue +165 -165
  35. package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
  36. package/src/common/app-dropdown/AppDropdown.vue +31 -31
  37. package/src/common/app-icon/AppIcon.vue +108 -108
  38. package/src/common/app-input/AppInput.vue +148 -148
  39. package/src/common/app-input-new/AppInputNew.vue +152 -152
  40. package/src/common/app-input-search/AppInputSearch.vue +174 -174
  41. package/src/common/app-layout/AppLayout.vue +84 -84
  42. package/src/common/app-layout/components/AppLayoutHeader.vue +1 -0
  43. package/src/common/app-layout/components/AppLayoutPage.vue +16 -16
  44. package/src/common/app-loader/index.vue +43 -43
  45. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  46. package/src/common/app-select/AppSelect.vue +157 -157
  47. package/src/common/app-sheet/AppSheet.vue +120 -120
  48. package/src/common/app-sidebar/AppSidebar.vue +168 -168
  49. package/src/common/app-sidebar/components/SidebarMenu.vue +37 -37
  50. package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
  51. package/src/common/app-table/AppTable.vue +1 -8
  52. package/src/common/app-table/AppTableLayout.vue +4 -5
  53. package/src/common/app-table/components/TablePagination.vue +152 -152
  54. package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
  55. package/src/common/app-table/controllers/useTableModel.ts +93 -93
  56. package/src/common/app-toggle/AppToggle.vue +24 -24
  57. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  58. package/src/global.d.ts +1 -1
  59. package/src/icons/components/arrow-down-icon.vue +25 -25
  60. package/src/icons/components/arrow-frame-icon.vue +19 -19
  61. package/src/icons/components/arrow-square.vue +22 -22
  62. package/src/icons/components/table-filter-icon.vue +30 -30
  63. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  64. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  65. package/src/icons/header/NotificationIcon.vue +18 -18
  66. package/src/icons/header/PersonIcon.vue +11 -11
  67. package/src/icons/header/SettingIcon.vue +14 -14
  68. package/src/icons/header/flashIcon.vue +24 -24
  69. package/src/icons/header/searchStatusIcon.vue +24 -24
  70. package/src/icons/header/smallCapsIcon.vue +34 -34
  71. package/src/icons/sidebar/assign-module-icon.vue +36 -36
  72. package/src/icons/sidebar/instrument-history-icon.vue +32 -32
  73. package/src/icons/sidebar/instrument-order-icon.vue +38 -38
  74. package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
  75. package/src/icons/sidebar/instruments-icon.vue +45 -45
  76. package/src/icons/sidebar/logo-icon.vue +15 -15
  77. package/src/icons/sidebar/logout-icon.vue +13 -13
  78. package/src/icons/sidebar/modules-icon.vue +16 -16
  79. package/src/icons/sidebar/notifications-icon.vue +24 -24
  80. package/src/icons/sidebar/order-icon.vue +44 -44
  81. package/src/icons/sidebar/pass-icon.vue +38 -38
  82. package/src/icons/sidebar/positions-icon.vue +42 -42
  83. package/src/icons/sidebar/preorder-icon.vue +19 -19
  84. package/src/icons/sidebar/projects-icon.vue +31 -31
  85. package/src/icons/sidebar/repair-object-icon.vue +18 -18
  86. package/src/icons/sidebar/repairs-icon.vue +20 -20
  87. package/src/icons/sidebar/roles-icon.vue +26 -26
  88. package/src/icons/sidebar/status-history-icon.vue +24 -24
  89. package/src/icons/sidebar/tasks-icon.vue +28 -28
  90. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  91. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  92. package/src/icons/sidebar/teams-icon.vue +32 -32
  93. package/src/icons/sidebar/user-icon.vue +18 -18
  94. package/src/icons/sidebar/users-icon.vue +46 -46
  95. package/src/icons/sidebar/videosources-icon.vue +19 -19
  96. package/src/icons/sidebar/videowall-icon.vue +13 -13
  97. package/src/icons/sidebar/videozones-icon.vue +21 -21
  98. package/src/icons/sidebar/warehouses-icon.vue +43 -43
  99. package/src/icons/sidebar/workshop-icon.vue +100 -100
  100. package/src/icons/sidebar/workzones-icon.vue +22 -22
  101. package/src/icons/task/attention-icon.vue +13 -13
  102. package/src/icons/task/clock-icon.vue +10 -10
  103. package/src/icons/task/delete-icon.vue +10 -10
  104. package/src/icons/task/fire-icon.vue +16 -16
  105. package/src/index.ts +0 -1
  106. package/src/main.ts +28 -28
  107. package/src/quasar-user-options.ts +17 -17
  108. package/src/router/index.ts +10 -10
  109. package/src/shared/styles/general.css +124 -124
  110. package/src/shims-vue.d.ts +5 -5
  111. package/src/utils/confirm.ts +12 -12
  112. package/src/utils/faceApiHelper.ts +137 -137
  113. package/src/utils/helpers.ts +59 -59
  114. package/src/utils/notification.ts +9 -9
  115. package/dist/types/api/services/ComentsServise.d.ts +0 -10
  116. package/dist/types/api/services/PhotoService.d.ts +0 -53
  117. package/dist/types/api/types/Api_Users.d.ts +0 -43
  118. package/dist/types/api/types/Api_Video.d.ts +0 -87
  119. package/src/api/types/Api_Video.ts +0 -90
@@ -1,9 +1,9 @@
1
- import { QNotifyCreateOptions } from 'quasar'
2
-
3
- export type NotificationType = 'danger' | 'success' | 'warning' | 'info' | 'default'
4
-
5
- export const notificationSettings = (type: NotificationType, message: string): QNotifyCreateOptions => ({
6
- message,
7
- color: type === 'danger' ? 'red' : type === 'success' ? 'green' : type === 'warning' ? 'orange' : 'white',
8
- position: 'top-right',
9
- })
1
+ import { QNotifyCreateOptions } from 'quasar'
2
+
3
+ export type NotificationType = 'danger' | 'success' | 'warning' | 'info' | 'default'
4
+
5
+ export const notificationSettings = (type: NotificationType, message: string): QNotifyCreateOptions => ({
6
+ message,
7
+ color: type === 'danger' ? 'red' : type === 'success' ? 'green' : type === 'warning' ? 'orange' : 'white',
8
+ position: 'top-right',
9
+ })
@@ -1,10 +0,0 @@
1
- import ApiService from '@/api/settings/ApiService'
2
- import { Api_Comment_Request_Dto } from '@/api/types/Api_Comment'
3
- import { Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
4
- declare class CommentsService extends ApiService {
5
- uploadComment(payload: Api_Comment_Request_Dto): Promise<Api_Tasks_Task_Dto>
6
- deleteComment(commentId: string): Promise<unknown>
7
- editComment(payload: { commentId: string; data: unknown }): Promise<unknown>
8
- }
9
- export default function useCommentsService(): CommentsService
10
- export {}
@@ -1,53 +0,0 @@
1
- import * as faceapi from 'face-api.js'
2
- declare class PhotoService {
3
- getVideoStreamConfig(
4
- width: number,
5
- height: number,
6
- ): {
7
- audio: boolean
8
- video: {
9
- width: {
10
- min: number
11
- ideal: number
12
- }
13
- height: {
14
- min: number
15
- ideal: number
16
- }
17
- facingMode: string
18
- }
19
- }
20
- getContourCoordinate(
21
- width: number,
22
- height: number,
23
- ): {
24
- x: number
25
- y: number
26
- width: number
27
- height: number
28
- }
29
- getBoxData(box: any): {
30
- x: any
31
- y: any
32
- width: any
33
- height: any
34
- } | null
35
- setStylesForCanvas(canvasContainer: any): void
36
- checkFaceInclusion(frame: any, face: any): boolean
37
- getFaceDetections(videoRef: any): Promise<
38
- faceapi.WithFaceExpressions<
39
- faceapi.WithFaceLandmarks<
40
- {
41
- detection: faceapi.FaceDetection
42
- },
43
- faceapi.FaceLandmarks68
44
- >
45
- >[]
46
- >
47
- getCanvas(videoRef: any): HTMLCanvasElement
48
- getResizedAndDetection(canvas: any, detections: any, ctx: any, videoWidth: number, videoHeight: number): void
49
- getFaceSnapshot(inputImage: any, box: any): Promise<string | null>
50
- initModels(): Promise<void>
51
- }
52
- export default function usePhotoService(): PhotoService
53
- export {}
@@ -1,43 +0,0 @@
1
- export type Api_Search_User_Passes = {
2
- id: string
3
- type: string
4
- uuid: string
5
- }
6
- export type Api_Search_User_Positions = {
7
- id: string
8
- name: string
9
- display_name: string
10
- description: string
11
- }
12
- export type Api_Search_User_Roles = {
13
- id: string
14
- name: string
15
- display_name: string
16
- }
17
- export type Api_Search_User_Teams = {
18
- id: string
19
- name: string
20
- display_name: string
21
- roles: Api_Search_User_Roles[]
22
- }
23
- export type Api_Search_User_Photos = {
24
- id: string
25
- name: string
26
- path: string
27
- type: string
28
- }
29
- export type Api_Search_User = {
30
- id: string
31
- full_name: string
32
- last_name: string
33
- first_name: string
34
- patronymic: string
35
- email: string
36
- phone: string
37
- divisions: string
38
- personnel_number: string
39
- passes: Api_Search_User_Passes[]
40
- positions: Api_Search_User_Positions[]
41
- teams: Api_Search_User_Teams[]
42
- photos: Api_Search_User_Photos[]
43
- }
@@ -1,87 +0,0 @@
1
- import { Api_Status_DTO } from '@/api/types/Api_Tasks';
2
- export type Api_Video_Source = {
3
- id: string;
4
- name: string;
5
- login: string;
6
- password: string;
7
- camera_id: string | null;
8
- comment: string | null;
9
- data: unknown | null;
10
- snapshot_path: string | null;
11
- url: string;
12
- updated_at: string;
13
- created_at: string;
14
- fps: string;
15
- domed: boolean;
16
- height: number;
17
- width: number;
18
- };
19
- export type Api_Work_Zone_Search = {
20
- id: string;
21
- name: string;
22
- title: string;
23
- type: number;
24
- parent_id: string | null;
25
- created_at: string;
26
- deleted_at: string | null;
27
- updated_at: string;
28
- description: string;
29
- detect_face: boolean;
30
- detect_helmet: boolean;
31
- detect_mask: boolean;
32
- detect_work_time: boolean;
33
- detect_work_zone: boolean;
34
- has_tasks: boolean;
35
- is_parent: boolean;
36
- x0: number;
37
- x1: number;
38
- y0: number;
39
- y1: number;
40
- video_source: Api_Video_Source;
41
- video_source_id: string;
42
- warehouse_by_work_zone_instruments: unknown[];
43
- };
44
- export type Api_Work_Zone_Usage_User = {
45
- id: string;
46
- user_id: string;
47
- user_full_name: string;
48
- work_zone_id: string;
49
- start_interval: string;
50
- end_interval: string;
51
- minutes: number;
52
- };
53
- export type Api_Work_Zone_Task = {
54
- id: string;
55
- name: string;
56
- plan_date: string;
57
- planned_start: null | string;
58
- planned_end: null | string;
59
- deadline: string;
60
- is_critical_path: boolean | null;
61
- is_expired: boolean;
62
- power_output_MWh: number;
63
- cost_per_MWh: number | null;
64
- fact_start_date: null | string;
65
- fact_end_date: null | string;
66
- time_to_complete_sec: number | null;
67
- status: Api_Status_DTO[];
68
- usage_users: Api_Work_Zone_Usage_User[];
69
- };
70
- export type Api_Work_Zone_Coords = {
71
- x0: number;
72
- x1: number;
73
- y0: number;
74
- y1: number;
75
- };
76
- export type Api_Work_Zone = {
77
- id: string;
78
- title: string;
79
- created_at: string;
80
- video_source: {
81
- id: string;
82
- name: string;
83
- };
84
- coordinates: Api_Work_Zone_Coords;
85
- warehouse_by_work_zone_instruments: unknown[];
86
- tasks: Api_Work_Zone_Task[];
87
- };
@@ -1,90 +0,0 @@
1
- import { Api_Status_DTO } from '@/api/types/Api_Tasks'
2
-
3
- export type Api_Video_Source = {
4
- id: string
5
- name: string
6
- login: string
7
- password: string
8
- camera_id: string | null
9
- comment: string | null
10
- data: unknown | null
11
- snapshot_path: string | null
12
- url: string
13
- updated_at: string
14
- created_at: string
15
- fps: string
16
- domed: boolean
17
- height: number
18
- width: number
19
- }
20
-
21
- export type Api_Work_Zone_Search = {
22
- id: string
23
- name: string
24
- title: string
25
- type: number
26
- parent_id: string | null
27
- created_at: string
28
- deleted_at: string | null
29
- updated_at: string
30
- description: string
31
- detect_face: boolean
32
- detect_helmet: boolean
33
- detect_mask: boolean
34
- detect_work_time: boolean
35
- detect_work_zone: boolean
36
- has_tasks: boolean
37
- is_parent: boolean
38
- x0: number
39
- x1: number
40
- y0: number
41
- y1: number
42
- video_source: Api_Video_Source
43
- video_source_id: string
44
- warehouse_by_work_zone_instruments: unknown[]
45
- }
46
-
47
- export type Api_Work_Zone_Usage_User = {
48
- id: string
49
- user_id: string
50
- user_full_name: string
51
- work_zone_id: string
52
- start_interval: string
53
- end_interval: string
54
- minutes: number
55
- }
56
-
57
- export type Api_Work_Zone_Task = {
58
- id: string
59
- name: string
60
- plan_date: string
61
- planned_start: null | string
62
- planned_end: null | string
63
- deadline: string
64
- is_critical_path: boolean | null
65
- is_expired: boolean
66
- power_output_MWh: number
67
- cost_per_MWh: number | null
68
- fact_start_date: null | string
69
- fact_end_date: null | string
70
- time_to_complete_sec: number | null
71
- status: Api_Status_DTO[]
72
- usage_users: Api_Work_Zone_Usage_User[]
73
- }
74
-
75
- export type Api_Work_Zone_Coords = {
76
- x0: number
77
- x1: number
78
- y0: number
79
- y1: number
80
- }
81
-
82
- export type Api_Work_Zone = {
83
- id: string
84
- title: string
85
- created_at: string
86
- video_source: { id: string; name: string }
87
- coordinates: Api_Work_Zone_Coords
88
- warehouse_by_work_zone_instruments: unknown[]
89
- tasks: Api_Work_Zone_Task[]
90
- }