shared-ritm 1.3.21 → 1.3.23

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 (58) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +4936 -4981
  3. package/dist/shared-ritm.umd.js +103 -103
  4. package/dist/types/api/services/ComentsServise.d.ts +10 -0
  5. package/dist/types/api/services/PhotoService.d.ts +51 -38
  6. package/dist/types/api/services/RepairsService.d.ts +1 -1
  7. package/dist/types/api/services/TasksService.d.ts +5 -0
  8. package/dist/types/api/settings/ApiService.d.ts +1 -1
  9. package/dist/types/api/types/Api_Tasks.d.ts +1 -0
  10. package/dist/types/api/types/Api_Users.d.ts +43 -0
  11. package/package.json +65 -65
  12. package/src/App.vue +2461 -2461
  13. package/src/api/services/BrigadesService.ts +32 -32
  14. package/src/api/services/ControlsService.ts +96 -96
  15. package/src/api/services/EquipmentService.ts +29 -29
  16. package/src/api/services/InstrumentsService.ts +68 -68
  17. package/src/api/services/MetricsService.ts +123 -123
  18. package/src/api/services/ModulesService.ts +27 -27
  19. package/src/api/services/ProjectsService.ts +83 -83
  20. package/src/api/services/RepairsService.ts +111 -111
  21. package/src/api/services/ScheduleService.ts +69 -69
  22. package/src/api/services/SearchService.ts +22 -22
  23. package/src/api/services/TasksService.ts +7 -0
  24. package/src/api/services/UserService.ts +119 -119
  25. package/src/api/services/VideoService.ts +108 -108
  26. package/src/api/settings/ApiService.ts +124 -124
  27. package/src/api/types/Api_Auth.ts +105 -105
  28. package/src/api/types/Api_Brigades.ts +36 -36
  29. package/src/api/types/Api_Controls.ts +111 -111
  30. package/src/api/types/Api_Equipment.ts +3 -3
  31. package/src/api/types/Api_Instruments.ts +156 -156
  32. package/src/api/types/Api_Metrics.ts +5 -5
  33. package/src/api/types/Api_Modules.ts +21 -21
  34. package/src/api/types/Api_Projects.ts +62 -62
  35. package/src/api/types/Api_Repairs.ts +140 -140
  36. package/src/api/types/Api_Schedule.ts +64 -64
  37. package/src/api/types/Api_Search.ts +80 -80
  38. package/src/api/types/Api_Tasks.ts +372 -371
  39. package/src/api/types/Api_User.ts +146 -146
  40. package/src/api/types/Api_Video.ts +198 -198
  41. package/src/common/app-datepicker/AppDatepicker.vue +218 -218
  42. package/src/common/app-dropdown/AppDropdown.vue +37 -37
  43. package/src/common/app-input-new/AppInputNew.vue +179 -179
  44. package/src/common/app-layout/AppLayout.vue +84 -84
  45. package/src/common/app-modal/index.vue +96 -96
  46. package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
  47. package/src/common/app-sidebar/AppSidebar.vue +174 -174
  48. package/src/common/app-sidebar/components/SidebarMenuItem.vue +149 -149
  49. package/src/common/app-table/AppTable.vue +308 -308
  50. package/src/common/app-table/AppTableLayout.vue +137 -137
  51. package/src/common/app-table/components/ModalSelect.vue +296 -296
  52. package/src/common/app-table/components/TableModal.vue +356 -356
  53. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  54. package/src/common/app-table/controllers/useTableModel.ts +102 -102
  55. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  56. package/src/index.ts +131 -131
  57. package/src/styles/variables.sass +12 -12
  58. package/src/utils/files.ts +19 -19
@@ -0,0 +1,10 @@
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,40 +1,53 @@
1
- import * as faceapi from 'face-api.js';
1
+ import * as faceapi from 'face-api.js'
2
2
  declare class PhotoService {
3
- getVideoStreamConfig(width: number, height: number): {
4
- audio: boolean;
5
- video: {
6
- width: {
7
- min: number;
8
- ideal: number;
9
- };
10
- height: {
11
- min: number;
12
- ideal: number;
13
- };
14
- facingMode: string;
15
- };
16
- };
17
- getContourCoordinate(width: number, height: number): {
18
- x: number;
19
- y: number;
20
- width: number;
21
- height: number;
22
- };
23
- getBoxData(box: any): {
24
- x: any;
25
- y: any;
26
- width: any;
27
- height: any;
28
- } | null;
29
- setStylesForCanvas(canvasContainer: any): void;
30
- checkFaceInclusion(frame: any, face: any): boolean;
31
- getFaceDetections(videoRef: any): Promise<faceapi.WithFaceExpressions<faceapi.WithFaceLandmarks<{
32
- detection: faceapi.FaceDetection;
33
- }, faceapi.FaceLandmarks68>>[]>;
34
- getCanvas(videoRef: any): HTMLCanvasElement;
35
- getResizedAndDetection(canvas: any, detections: any, ctx: any, videoWidth: number, videoHeight: number): void;
36
- getFaceSnapshot(inputImage: any, box: any): Promise<string | null>;
37
- initModels(): Promise<void>;
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>
38
51
  }
39
- export default function usePhotoService(): PhotoService;
40
- export {};
52
+ export default function usePhotoService(): PhotoService
53
+ export {}
@@ -17,7 +17,7 @@ declare class RepairsService extends ApiService {
17
17
  restoreRepair(id: string): Promise<any>;
18
18
  updateRepair(payload: Api_Update_Repair, id: string): Promise<void>;
19
19
  copyRepair(id: string): Promise<any>;
20
- deleteRepair(id: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
20
+ deleteRepair(id: string): Promise<import("axios").AxiosResponse<any, any>>;
21
21
  fetchIntersection(id: string): Promise<Api_Repair_Intersection[]>;
22
22
  }
23
23
  export default function useRepairsService(): RepairsService;
@@ -39,6 +39,11 @@ declare class TasksService extends ApiService {
39
39
  tasks_id: string[];
40
40
  defect?: string;
41
41
  }): Promise<ResponseApi<any>>;
42
+ cloneTask(task_id: string, payload: {
43
+ project_id: string;
44
+ state_id?: string;
45
+ with_subtask: boolean;
46
+ }): Promise<any>;
42
47
  deleteTask(id: string): Promise<any>;
43
48
  changeStatus(taskId: string, statusId: string): Promise<any>;
44
49
  saveMetrics(payload: Api_QualityMetric_Request_Dto[]): Promise<EquipmentData[]>;
@@ -10,7 +10,7 @@ export default class ApiService {
10
10
  logout(): void;
11
11
  private handleError;
12
12
  protected get<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
13
- protected delete<T>(url: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T, any, {}>>;
13
+ protected delete<T>(url: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T, any>>;
14
14
  protected post<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<any>;
15
15
  protected patch<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
16
16
  protected put<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
@@ -335,4 +335,5 @@ export type Api_Task_Dto = {
335
335
  status: Api_Status_DTO;
336
336
  teams: Api_Teams_DTO[];
337
337
  video_source: Api_VideoSource_DTO;
338
+ defect: boolean | null;
338
339
  };
@@ -0,0 +1,43 @@
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
+ }
package/package.json CHANGED
@@ -1,65 +1,65 @@
1
- {
2
- "name": "shared-ritm",
3
- "version": "1.3.21",
4
- "private": false,
5
- "files": [
6
- "dist",
7
- "src"
8
- ],
9
- "main": "dist/shared-ritm.umd.js",
10
- "type": "module",
11
- "module": "./dist/shared-ritm.es.js",
12
- "types": "./dist/types/index.d.ts",
13
- "exports": {
14
- ".": {
15
- "import": "./dist/shared-ritm.es.js",
16
- "require": "./dist/shared-ritm.umd.js",
17
- "default": "./dist/shared-ritm.es.js",
18
- "types": "./dist/types/index.d.ts"
19
- },
20
- "./style": "./dist/index.css"
21
- },
22
- "scripts": {
23
- "dev": "vite",
24
- "build": "vite build && tsc --emitDeclarationOnly",
25
- "typecheck": "vue-tsc --noEmit",
26
- "lint": "eslint --fix",
27
- "format": "prettier -w -u ."
28
- },
29
- "dependencies": {
30
- "@quasar/extras": "^1.16.17",
31
- "@vueuse/core": "^10.1.2",
32
- "face-api.js": "^0.22.2",
33
- "axios": "^1.7.7",
34
- "vue-router": "^4.0.3"
35
- },
36
- "peerDependencies": {
37
- "quasar": "^2.18.1",
38
- "vue": "^3.5.12"
39
- },
40
- "devDependencies": {
41
- "vue": "^3.5.12",
42
- "@quasar/vite-plugin": "^1.9.0",
43
- "@rollup/pluginutils": "^5.1.3",
44
- "@types/node": "^22.7.9",
45
- "@typescript-eslint/eslint-plugin": "^4.25.0",
46
- "@typescript-eslint/parser": "^4.25.0",
47
- "@vitejs/plugin-vue": "^5.1.4",
48
- "@vue/compiler-sfc": "^3.0.5",
49
- "@vue/eslint-config-prettier": "^6.0.0",
50
- "@vue/eslint-config-typescript": "^7.0.0",
51
- "eslint": "^7.27.0",
52
- "eslint-plugin-prettier": "^3.4.0",
53
- "eslint-plugin-vue": "^7.10.0",
54
- "install": "^0.13.0",
55
- "npm": "^11.4.0",
56
- "prettier": "^2.3.0",
57
- "quasar": "^2.18.1",
58
- "rollup-plugin-visualizer": "^5.14.0",
59
- "sass": "^1.80.4",
60
- "typescript": "^5.6.3",
61
- "vite": "^5.4.9",
62
- "vite-plugin-css-modules": "^0.0.1",
63
- "vue-tsc": "^2.1.6"
64
- }
65
- }
1
+ {
2
+ "name": "shared-ritm",
3
+ "version": "1.3.23",
4
+ "private": false,
5
+ "files": [
6
+ "dist",
7
+ "src"
8
+ ],
9
+ "main": "dist/shared-ritm.umd.js",
10
+ "type": "module",
11
+ "module": "./dist/shared-ritm.es.js",
12
+ "types": "./dist/types/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "import": "./dist/shared-ritm.es.js",
16
+ "require": "./dist/shared-ritm.umd.js",
17
+ "default": "./dist/shared-ritm.es.js",
18
+ "types": "./dist/types/index.d.ts"
19
+ },
20
+ "./style": "./dist/index.css"
21
+ },
22
+ "scripts": {
23
+ "dev": "vite",
24
+ "build": "vite build && tsc --emitDeclarationOnly",
25
+ "typecheck": "vue-tsc --noEmit",
26
+ "lint": "eslint --fix",
27
+ "format": "prettier -w -u ."
28
+ },
29
+ "dependencies": {
30
+ "@quasar/extras": "^1.16.17",
31
+ "@vueuse/core": "^10.1.2",
32
+ "face-api.js": "^0.22.2",
33
+ "axios": "^1.7.7",
34
+ "vue-router": "^4.0.3"
35
+ },
36
+ "peerDependencies": {
37
+ "quasar": "^2.18.1",
38
+ "vue": "^3.5.12"
39
+ },
40
+ "devDependencies": {
41
+ "vue": "^3.5.12",
42
+ "@quasar/vite-plugin": "^1.9.0",
43
+ "@rollup/pluginutils": "^5.1.3",
44
+ "@types/node": "^22.7.9",
45
+ "@typescript-eslint/eslint-plugin": "^4.25.0",
46
+ "@typescript-eslint/parser": "^4.25.0",
47
+ "@vitejs/plugin-vue": "^5.1.4",
48
+ "@vue/compiler-sfc": "^3.0.5",
49
+ "@vue/eslint-config-prettier": "^6.0.0",
50
+ "@vue/eslint-config-typescript": "^7.0.0",
51
+ "eslint": "^7.27.0",
52
+ "eslint-plugin-prettier": "^3.4.0",
53
+ "eslint-plugin-vue": "^7.10.0",
54
+ "install": "^0.13.0",
55
+ "npm": "^11.4.0",
56
+ "prettier": "^2.3.0",
57
+ "quasar": "^2.18.1",
58
+ "rollup-plugin-visualizer": "^5.14.0",
59
+ "sass": "^1.80.4",
60
+ "typescript": "^5.6.3",
61
+ "vite": "^5.4.9",
62
+ "vite-plugin-css-modules": "^0.0.1",
63
+ "vue-tsc": "^2.1.6"
64
+ }
65
+ }