shared-ritm 1.3.69 → 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 +3565 -3544
  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 -33
  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 -14
  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
@@ -8,6 +8,7 @@ declare class AuthService extends ApiService {
8
8
  userInfo(): Promise<any>;
9
9
  configs(): Promise<ConfigResponse>;
10
10
  changePassword(id: string, password: string, password_confirmation: string): Promise<ChangePasswordResponse>;
11
+ changePasswordAndActivate(email: string, currentPassword: string, password: string, passwordConfirmation: string): Promise<any>;
11
12
  }
12
13
  export default function useAuthService(): AuthService;
13
14
  export {};
@@ -1,5 +1,5 @@
1
1
  import ApiService from '../settings/ApiService';
2
- import { Api_User, Api_User_Create, Api_User_Delete_Body, Api_User_Delete_Photos_Body, Api_User_Position, Api_User_Role, Api_User_Team, Api_User_Team_Search, Api_User_Warehouse } from '../types/Api_User';
2
+ import { Api_User, Api_User_Create, Api_User_Delete_Body, Api_User_Delete_Photos_Body, Api_User_Position, Api_User_Role, Api_User_Team, Api_User_Team_Search, Api_User_Warehouse, Api_User_Change_Password_Payload } from '../types/Api_User';
3
3
  import { ResponseApi } from '../types/Api_Service';
4
4
  declare class UserService extends ApiService {
5
5
  editUser({ id, model }: {
@@ -7,6 +7,7 @@ declare class UserService extends ApiService {
7
7
  model: any;
8
8
  }): Promise<Api_User>;
9
9
  getUser(id: string): Promise<Api_User>;
10
+ changeUserPassword(payload: Api_User_Change_Password_Payload): Promise<Api_User>;
10
11
  getUserWarehouses(params: {
11
12
  user_id: string;
12
13
  page?: number;
@@ -5,9 +5,13 @@ export declare enum ApiServiceType {
5
5
  export default class ApiService {
6
6
  private axiosInstance;
7
7
  constructor();
8
- private getToken;
8
+ private setAccessToken;
9
+ private getAccessToken;
9
10
  private removeToken;
10
- logout(): void;
11
+ private subscribeTokenRefresh;
12
+ private refresh;
13
+ private onRefreshed;
14
+ logoutUser(): any;
11
15
  private handleError;
12
16
  protected get<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
13
17
  protected delete<T>(url: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T, any, {}>>;
@@ -64,6 +64,15 @@ export type Api_Auth_User = {
64
64
  roles: Api_Auth_User_Role[];
65
65
  security_warnings: any[];
66
66
  teams: Api_Auth_User_Team[];
67
+ avatar: null;
68
+ change_password: null;
69
+ created_at: string;
70
+ deleted_at: null;
71
+ face_recognition_id: null;
72
+ password_change_available_at: string;
73
+ password_change_due_at: string;
74
+ password_last_changed_at: string;
75
+ updated_at: string;
67
76
  };
68
77
  export type Api_Auth_Login = {
69
78
  token: string;
@@ -73,5 +82,11 @@ export type ChangePasswordPayload = {
73
82
  password: string;
74
83
  password_confirmation: string;
75
84
  };
85
+ export type ChangePasswordAndActivatePayload = {
86
+ email: string;
87
+ currentPassword: string;
88
+ password: string;
89
+ passwordConfirmation: string;
90
+ };
76
91
  export type ChangePasswordResponse = Pick<Api_User, 'id' | 'archiveHistory' | 'assigned_tasks' | 'divisions' | 'email' | 'full_name' | 'passes' | 'personnel_number' | 'phone' | 'photos' | 'positions' | 'responsible_tasks' | 'teams' | 'warehouses'>;
77
92
  export type ConfigResponse = any;
@@ -71,6 +71,15 @@ export type Api_User = {
71
71
  id: string;
72
72
  name: string;
73
73
  }[];
74
+ password_change_available_at: string;
75
+ password_change_due_at: string;
76
+ password_last_changed_at: string;
77
+ };
78
+ export type Api_User_Change_Password_Payload = {
79
+ email: string;
80
+ password: string;
81
+ currentPassword: string;
82
+ passwordConfirmation: string;
74
83
  };
75
84
  export type Api_User_Create = {
76
85
  last_name?: string;
package/package.json CHANGED
@@ -1,70 +1,70 @@
1
- {
2
- "name": "shared-ritm",
3
- "version": "1.3.69",
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
- "types": "./dist/types/index.d.ts",
16
- "import": "./dist/shared-ritm.es.js",
17
- "require": "./dist/shared-ritm.umd.js",
18
- "default": "./dist/shared-ritm.es.js"
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
- "storybook": "storybook dev -p 6006",
29
- "build-storybook": "storybook build"
30
- },
31
- "dependencies": {
32
- "@quasar/extras": "^1.17.0",
33
- "@vueuse/core": "^10.11.1",
34
- "face-api.js": "^0.22.2",
35
- "axios": "^1.13.2",
36
- "vue-router": "^4.6.3"
37
- },
38
- "peerDependencies": {
39
- "quasar": "^2.18.1",
40
- "vue": "^3.5.12"
41
- },
42
- "devDependencies": {
43
- "@quasar/vite-plugin": "^1.10.0",
44
- "@rollup/pluginutils": "^5.3.0",
45
- "@storybook/addon-docs": "^10.0.8",
46
- "@storybook/vue3": "^10.0.8",
47
- "@storybook/vue3-vite": "^10.0.8",
48
- "@types/node": "^22.19.1",
49
- "@vitejs/plugin-vue": "^5.2.4",
50
- "@vue/compiler-sfc": "^3.5.24",
51
- "install": "^0.13.0",
52
- "npm": "^11.6.2",
53
- "prettier": "^3.3.3",
54
- "rollup-plugin-visualizer": "^5.14.0",
55
- "sass": "^1.94.1",
56
- "storybook": "^10.0.8",
57
- "typescript": "^5.9.3",
58
- "vite": "^5.4.21",
59
- "vite-plugin-css-modules": "^0.0.1",
60
- "vue-tsc": "^2.2.12",
61
- "@typescript-eslint/eslint-plugin": "^7.13.1",
62
- "@typescript-eslint/parser": "^7.13.1",
63
- "eslint": "^8.57.0",
64
- "eslint-plugin-prettier": "^5.2.1",
65
- "eslint-plugin-storybook": "^0.12.0",
66
- "eslint-plugin-vue": "^9.26.0",
67
- "@vue/eslint-config-prettier": "^9.0.0",
68
- "@vue/eslint-config-typescript": "^12.0.0"
69
- }
70
- }
1
+ {
2
+ "name": "shared-ritm",
3
+ "version": "1.3.71",
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
+ "types": "./dist/types/index.d.ts",
16
+ "import": "./dist/shared-ritm.es.js",
17
+ "require": "./dist/shared-ritm.umd.js",
18
+ "default": "./dist/shared-ritm.es.js"
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
+ "storybook": "storybook dev -p 6006",
29
+ "build-storybook": "storybook build"
30
+ },
31
+ "dependencies": {
32
+ "@quasar/extras": "^1.17.0",
33
+ "@vueuse/core": "^10.11.1",
34
+ "face-api.js": "^0.22.2",
35
+ "axios": "^1.13.2",
36
+ "vue-router": "^4.6.3"
37
+ },
38
+ "peerDependencies": {
39
+ "quasar": "^2.18.1",
40
+ "vue": "^3.5.12"
41
+ },
42
+ "devDependencies": {
43
+ "@quasar/vite-plugin": "^1.10.0",
44
+ "@rollup/pluginutils": "^5.3.0",
45
+ "@storybook/addon-docs": "^10.0.8",
46
+ "@storybook/vue3": "^10.0.8",
47
+ "@storybook/vue3-vite": "^10.0.8",
48
+ "@types/node": "^22.19.1",
49
+ "@vitejs/plugin-vue": "^5.2.4",
50
+ "@vue/compiler-sfc": "^3.5.24",
51
+ "install": "^0.13.0",
52
+ "npm": "^11.6.2",
53
+ "prettier": "^3.3.3",
54
+ "rollup-plugin-visualizer": "^5.14.0",
55
+ "sass": "^1.94.1",
56
+ "storybook": "^10.0.8",
57
+ "typescript": "^5.9.3",
58
+ "vite": "^5.4.21",
59
+ "vite-plugin-css-modules": "^0.0.1",
60
+ "vue-tsc": "^2.2.12",
61
+ "@typescript-eslint/eslint-plugin": "^7.13.1",
62
+ "@typescript-eslint/parser": "^7.13.1",
63
+ "eslint": "^8.57.0",
64
+ "eslint-plugin-prettier": "^5.2.1",
65
+ "eslint-plugin-storybook": "^0.12.0",
66
+ "eslint-plugin-vue": "^9.26.0",
67
+ "@vue/eslint-config-prettier": "^9.0.0",
68
+ "@vue/eslint-config-typescript": "^12.0.0"
69
+ }
70
+ }