shared-ritm 1.2.34 → 1.2.36

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 (46) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +12 -11
  4. package/dist/shared-ritm.umd.js +3 -3
  5. package/dist/types/api/services/AuthService.d.ts +3 -3
  6. package/dist/types/api/services/ControlsService.d.ts +11 -0
  7. package/dist/types/api/services/RepairsService.d.ts +7 -7
  8. package/dist/types/api/settings/ApiService.d.ts +1 -1
  9. package/dist/types/api/types/Api_Controls.d.ts +12 -0
  10. package/package.json +1 -1
  11. package/src/App.vue +2461 -2461
  12. package/src/api/services/AuthService.ts +58 -58
  13. package/src/api/services/ControlsService.ts +32 -0
  14. package/src/api/services/GanttService.ts +17 -17
  15. package/src/api/services/MetricsService.ts +101 -101
  16. package/src/api/settings/ApiService.ts +126 -126
  17. package/src/api/types/Api_Controls.ts +12 -0
  18. package/src/api/types/Api_Files.ts +1 -1
  19. package/src/api/types/Api_Projects.ts +55 -55
  20. package/src/api/types/Api_Repairs.ts +93 -93
  21. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  22. package/src/common/app-date-picker/AppDatePicker.vue +81 -81
  23. package/src/common/app-dialogs/AppConfirmDialog.vue +100 -100
  24. package/src/common/app-dropdown/AppDropdown.vue +31 -31
  25. package/src/common/app-icon/AppIcon.vue +108 -108
  26. package/src/common/app-input-search/AppInputSearch.vue +174 -174
  27. package/src/common/app-layout/AppLayout.vue +84 -84
  28. package/src/common/app-layout/components/AppLayoutHeader.vue +246 -246
  29. package/src/common/app-layout/components/AppLayoutPage.vue +16 -16
  30. package/src/common/app-select/AppSelect.vue +157 -157
  31. package/src/common/app-sidebar/components/SidebarMenuItem.vue +146 -146
  32. package/src/common/app-toggle/AppToggle.vue +23 -23
  33. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  34. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  35. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  36. package/src/icons/header/NotificationIcon.vue +18 -18
  37. package/src/icons/header/PersonIcon.vue +11 -11
  38. package/src/icons/header/SettingIcon.vue +14 -14
  39. package/src/icons/task/attention-icon.vue +13 -13
  40. package/src/icons/task/clock-icon.vue +10 -10
  41. package/src/icons/task/delete-icon.vue +10 -10
  42. package/src/icons/task/fire-icon.vue +16 -16
  43. package/src/main.ts +28 -28
  44. package/src/shared/styles/general.css +96 -96
  45. package/src/utils/confirm.ts +12 -12
  46. package/src/utils/notification.ts +9 -9
@@ -14,9 +14,9 @@ export type ChangePasswordPayload = {
14
14
  export type ChangePasswordResponse = any;
15
15
  export type ConfigResponse = any;
16
16
  declare class AuthService extends ApiService {
17
- login(email: string, password: string): Promise<LoginResponse>;
18
- loginPhoto(photo: any): Promise<LoginResponse>;
19
- logout(): Promise<LoginResponse>;
17
+ login(email: string, password: string): Promise<any>;
18
+ loginPhoto(photo: any): Promise<any>;
19
+ logout(): Promise<any>;
20
20
  userInfo(): Promise<any>;
21
21
  configs(): Promise<any>;
22
22
  changePassword(id: string, password: string, password_confirmation: string): Promise<any>;
@@ -0,0 +1,11 @@
1
+ import ApiService, { ResponseApi } from '@/api/settings/ApiService';
2
+ import { Api_ControlZones_Dto } from '@/api/types/Api_Controls';
3
+ declare class ControlsService extends ApiService {
4
+ fetchProjectById(id: string): Promise<ResponseApi<Api_ControlZones_Dto>>;
5
+ createProject(params: any): Promise<ResponseApi<any>>;
6
+ editProject(id: string, params: any): Promise<ResponseApi<any>>;
7
+ fetchProjects(params: any): Promise<ResponseApi<Api_ControlZones_Dto[]>>;
8
+ deleteProject(id: string): Promise<any>;
9
+ }
10
+ export default function useControlsService(): ControlsService;
11
+ export {};
@@ -6,13 +6,13 @@ declare class RepairsService extends ApiService {
6
6
  fetchEquipment(): Promise<ResponseApi<Api_Equipment_Full_Dto[]>>;
7
7
  createRepair(payload: Api_Create_Repair_With_Equipments): Promise<any>;
8
8
  startRepair(id: string): Promise<void>;
9
- finishRepair(id: string): Promise<void>;
10
- finishPreparationProject(id: string): Promise<void>;
11
- moveRepairToCurrent(id: string): Promise<void>;
12
- moveArchiveToCurrent(id: string): Promise<void>;
13
- moveRepairToApr(id: string): Promise<void>;
14
- moveRepairToArchive(id: string): Promise<void>;
15
- restoreRepair(id: string): Promise<void>;
9
+ finishRepair(id: string): Promise<any>;
10
+ finishPreparationProject(id: string): Promise<any>;
11
+ moveRepairToCurrent(id: string): Promise<any>;
12
+ moveArchiveToCurrent(id: string): Promise<any>;
13
+ moveRepairToApr(id: string): Promise<any>;
14
+ moveRepairToArchive(id: string): Promise<any>;
15
+ restoreRepair(id: string): Promise<any>;
16
16
  updateRepair(payload: Api_Update_Repair, id: string): Promise<void>;
17
17
  copyRepair(id: string): Promise<any>;
18
18
  deleteRepair(id: string): Promise<import("axios").AxiosResponse<any, any>>;
@@ -19,6 +19,6 @@ export default class ApiService {
19
19
  private handleError;
20
20
  protected get<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
21
21
  protected delete<T>(url: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T, any>>;
22
- protected post<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
22
+ protected post<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<any>;
23
23
  protected put<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
24
24
  }
@@ -0,0 +1,12 @@
1
+ export type Api_Controllers_Dto = {
2
+ id: string;
3
+ full_name: string;
4
+ };
5
+ export type Api_ControlZones_Dto = {
6
+ id: string;
7
+ name: string;
8
+ inventory_number: string;
9
+ uuid: string;
10
+ controller_zone: string;
11
+ users?: Api_Controllers_Dto[];
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.2.34",
3
+ "version": "1.2.36",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",