@techextensor/tab-core-utility 2.2.11 → 2.2.13

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 (97) hide show
  1. package/esm2022/index.mjs +65 -65
  2. package/esm2022/lib/tab-core-utility/app/constants/api-constants.mjs +35 -0
  3. package/esm2022/lib/tab-core-utility/app/constants/common.mjs +33 -0
  4. package/esm2022/lib/tab-core-utility/app/constants/error-messages.mjs +13 -0
  5. package/esm2022/lib/tab-core-utility/app/constants/storage-constants.mjs +16 -0
  6. package/esm2022/lib/tab-core-utility/app/crud/tab-delete.service.mjs +145 -0
  7. package/esm2022/lib/tab-core-utility/app/crud/tab-formio.service.mjs +40 -0
  8. package/esm2022/lib/tab-core-utility/app/crud/tab-get.service.mjs +131 -0
  9. package/esm2022/lib/tab-core-utility/app/crud/tab-insert.service.mjs +77 -0
  10. package/esm2022/lib/tab-core-utility/app/crud/tab-update.service.mjs +105 -0
  11. package/esm2022/lib/tab-core-utility/app/crud/tab-workflow.service.mjs +43 -0
  12. package/esm2022/lib/tab-core-utility/app/enums/controllers.enum.mjs +26 -0
  13. package/esm2022/lib/tab-core-utility/app/enums/dsq.enum.mjs +48 -0
  14. package/esm2022/lib/tab-core-utility/app/enums/permission.enum.mjs +20 -0
  15. package/esm2022/lib/tab-core-utility/app/enums/query.enum.mjs +14 -0
  16. package/esm2022/lib/tab-core-utility/app/enums/workflow.enum.mjs +37 -0
  17. package/esm2022/lib/tab-core-utility/app/helpers/common/app.helpers.mjs +84 -0
  18. package/esm2022/lib/tab-core-utility/app/helpers/common/dsq.helpers.mjs +70 -0
  19. package/esm2022/lib/tab-core-utility/app/helpers/common/req-res.helpers.mjs +64 -0
  20. package/esm2022/lib/tab-core-utility/app/helpers/common/template.helpers.mjs +58 -0
  21. package/esm2022/lib/tab-core-utility/app/helpers/common/where-clause.helpers.mjs +208 -0
  22. package/esm2022/lib/tab-core-utility/app/helpers/screen/forms.helpers.mjs +38 -0
  23. package/esm2022/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.mjs +78 -0
  24. package/esm2022/lib/tab-core-utility/app/helpers/screen/grid.helpers.mjs +112 -0
  25. package/esm2022/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.mjs +77 -0
  26. package/esm2022/lib/tab-core-utility/app/helpers/screen/plugin.helpers.mjs +55 -0
  27. package/esm2022/lib/tab-core-utility/app/helpers/screen/screen.helpers.mjs +26 -0
  28. package/esm2022/lib/tab-core-utility/app/interfaces/grid.interface.mjs +3 -0
  29. package/esm2022/lib/tab-core-utility/app/interfaces/orgInfo.interface.mjs +2 -0
  30. package/esm2022/lib/tab-core-utility/app/interfaces/schema.interface.mjs +2 -0
  31. package/esm2022/lib/tab-core-utility/app/models/api-query.class.mjs +47 -0
  32. package/esm2022/lib/tab-core-utility/app/models/app-object.class.mjs +30 -0
  33. package/esm2022/lib/tab-core-utility/app/models/common.class.mjs +12 -0
  34. package/esm2022/lib/tab-core-utility/app/models/data-source-queries.class.mjs +31 -0
  35. package/esm2022/lib/tab-core-utility/app/utils/filter.util.mjs +75 -0
  36. package/esm2022/lib/tab-core-utility/app/utils/form-builder.util.mjs +39 -0
  37. package/esm2022/lib/tab-core-utility/app/utils/json.util.mjs +138 -0
  38. package/esm2022/lib/tab-core-utility/app/utils/operators.util.mjs +129 -0
  39. package/esm2022/lib/tab-core-utility/app/utils/req-res.util.mjs +168 -0
  40. package/esm2022/lib/tab-core-utility/app/utils/tab-app.util.mjs +99 -0
  41. package/esm2022/lib/tab-core-utility/auth/idb-storage.service.mjs +69 -0
  42. package/esm2022/lib/tab-core-utility/auth/session-storage.service.mjs +52 -0
  43. package/esm2022/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.mjs +26 -0
  44. package/esm2022/lib/tab-core-utility/core/error-handler/error-handler.store.mjs +21 -0
  45. package/esm2022/lib/tab-core-utility/core/error-handler/models/error-handler.state.mjs +5 -0
  46. package/esm2022/lib/tab-core-utility/core/util/auth.utils.mjs +21 -0
  47. package/esm2022/lib/tab-core-utility/store/auth.store.mjs +43 -0
  48. package/esm2022/lib/tab-core-utility/store/orginfo.store.mjs +42 -0
  49. package/index.d.ts +53 -0
  50. package/lib/tab-core-utility/app/constants/api-constants.d.ts +32 -0
  51. package/lib/tab-core-utility/app/constants/common.d.ts +8 -0
  52. package/lib/tab-core-utility/app/constants/error-messages.d.ts +6 -0
  53. package/lib/tab-core-utility/app/constants/storage-constants.d.ts +15 -0
  54. package/lib/tab-core-utility/app/crud/tab-delete.service.d.ts +51 -0
  55. package/lib/tab-core-utility/app/crud/tab-formio.service.d.ts +17 -0
  56. package/lib/tab-core-utility/app/crud/tab-get.service.d.ts +58 -0
  57. package/lib/tab-core-utility/app/crud/tab-insert.service.d.ts +37 -0
  58. package/lib/tab-core-utility/app/crud/tab-update.service.d.ts +14 -0
  59. package/lib/tab-core-utility/app/crud/tab-workflow.service.d.ts +20 -0
  60. package/lib/tab-core-utility/app/enums/controllers.enum.d.ts +24 -0
  61. package/lib/tab-core-utility/app/enums/dsq.enum.d.ts +42 -0
  62. package/lib/tab-core-utility/app/enums/permission.enum.d.ts +16 -0
  63. package/lib/tab-core-utility/app/enums/query.enum.d.ts +11 -0
  64. package/lib/tab-core-utility/app/enums/workflow.enum.d.ts +30 -0
  65. package/lib/tab-core-utility/app/helpers/common/app.helpers.d.ts +33 -0
  66. package/lib/tab-core-utility/app/helpers/common/dsq.helpers.d.ts +32 -0
  67. package/lib/tab-core-utility/app/helpers/common/req-res.helpers.d.ts +62 -0
  68. package/lib/tab-core-utility/app/helpers/common/template.helpers.d.ts +25 -0
  69. package/lib/tab-core-utility/app/helpers/common/where-clause.helpers.d.ts +82 -0
  70. package/lib/tab-core-utility/app/helpers/screen/forms.helpers.d.ts +11 -0
  71. package/lib/tab-core-utility/app/helpers/screen/grid-column-data.helpers.d.ts +33 -0
  72. package/lib/tab-core-utility/app/helpers/screen/grid.helpers.d.ts +63 -0
  73. package/lib/tab-core-utility/app/helpers/screen/media-upload.helpers.d.ts +38 -0
  74. package/lib/tab-core-utility/app/helpers/screen/plugin.helpers.d.ts +25 -0
  75. package/lib/tab-core-utility/app/helpers/screen/screen.helpers.d.ts +11 -0
  76. package/lib/tab-core-utility/app/interfaces/grid.interface.d.ts +110 -0
  77. package/lib/tab-core-utility/app/interfaces/orgInfo.interface.d.ts +31 -0
  78. package/lib/tab-core-utility/app/interfaces/schema.interface.d.ts +11 -0
  79. package/lib/tab-core-utility/app/models/api-query.class.d.ts +69 -0
  80. package/lib/tab-core-utility/app/models/app-object.class.d.ts +74 -0
  81. package/lib/tab-core-utility/app/models/common.class.d.ts +24 -0
  82. package/lib/tab-core-utility/app/models/data-source-queries.class.d.ts +95 -0
  83. package/lib/tab-core-utility/app/utils/filter.util.d.ts +30 -0
  84. package/lib/tab-core-utility/app/utils/form-builder.util.d.ts +13 -0
  85. package/lib/tab-core-utility/app/utils/json.util.d.ts +25 -0
  86. package/lib/tab-core-utility/app/utils/operators.util.d.ts +21 -0
  87. package/lib/tab-core-utility/app/utils/req-res.util.d.ts +61 -0
  88. package/lib/tab-core-utility/app/utils/tab-app.util.d.ts +48 -0
  89. package/lib/tab-core-utility/auth/idb-storage.service.d.ts +14 -0
  90. package/lib/tab-core-utility/auth/session-storage.service.d.ts +22 -0
  91. package/lib/tab-core-utility/core/error-handler/error-handler-interceptor.service.d.ts +3 -0
  92. package/lib/tab-core-utility/core/error-handler/error-handler.store.d.ts +10 -0
  93. package/lib/tab-core-utility/core/error-handler/models/error-handler.state.d.ts +5 -0
  94. package/lib/tab-core-utility/core/util/auth.utils.d.ts +9 -0
  95. package/lib/tab-core-utility/store/auth.store.d.ts +19 -0
  96. package/lib/tab-core-utility/store/orginfo.store.d.ts +22 -0
  97. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SessionStorageService {
3
+ /**
4
+ * Set data in session storage
5
+ * @param key - Key to store the data
6
+ * @param data - Data to be stored
7
+ */
8
+ setSessionStorage: (key: string, data: any) => void;
9
+ /**
10
+ * Get data from session storage
11
+ * @param key - Key to retrieve the data
12
+ * @returns The data stored in session storage
13
+ */
14
+ getSessionStorage: (key: string) => any;
15
+ /**
16
+ * Remove data from session storage
17
+ * @param key - Key of the data to be removed
18
+ */
19
+ removeSessionStorage: (key: string) => void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorageService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<SessionStorageService>;
22
+ }
@@ -0,0 +1,3 @@
1
+ import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ export declare const errorHandlingInterceptor: (request: HttpRequest<any>, next: HttpHandlerFn) => Observable<HttpEvent<any>>;
@@ -0,0 +1,10 @@
1
+ import { HttpErrorResponse } from '@angular/common/http';
2
+ export declare const ErrorHandlerStore: import("@angular/core").Type<{
3
+ code: import("@angular/core").Signal<number>;
4
+ message: import("@angular/core").Signal<string | undefined>;
5
+ handleError401: (error: HttpErrorResponse) => void;
6
+ handleError404: (error: HttpErrorResponse) => void;
7
+ } & import("@ngrx/signals").StateSignal<{
8
+ code: number;
9
+ message: string | undefined;
10
+ }>>;
@@ -0,0 +1,5 @@
1
+ export interface ErrorHandlerState {
2
+ code: number;
3
+ message: string | undefined;
4
+ }
5
+ export declare const errorHandlerInitialState: ErrorHandlerState;
@@ -0,0 +1,9 @@
1
+ export declare class AuthUtils {
2
+ /**
3
+ * Is token expired?
4
+ *
5
+ * @param token
6
+ * @param offsetSeconds
7
+ */
8
+ static isTokenExpired(): boolean;
9
+ }
@@ -0,0 +1,19 @@
1
+ import { Observable } from "rxjs";
2
+ import { LoginUserRequest } from "../app/interfaces/auth.interface";
3
+ export declare const authStore: import("@angular/core").Type<{
4
+ name: import("@angular/core").Signal<string>;
5
+ token: import("@angular/core").Signal<string>;
6
+ id: import("@angular/core").Signal<any>;
7
+ email: import("@angular/core").Signal<string>;
8
+ avatar: import("@angular/core").Signal<string>;
9
+ status: import("@angular/core").Signal<string>;
10
+ checkUserlogin: () => boolean;
11
+ login: (API_URL: string, credentials: LoginUserRequest) => Observable<any>;
12
+ } & import("@ngrx/signals").StateSignal<{
13
+ name: string;
14
+ token: string;
15
+ id: any;
16
+ email: string;
17
+ avatar: string;
18
+ status: string;
19
+ }>>;
@@ -0,0 +1,22 @@
1
+ export declare const OrgInfoStore: import("@angular/core").Type<{
2
+ FavIcon: import("@angular/core").Signal<string>;
3
+ Org_Brand_Color: import("@angular/core").Signal<string>;
4
+ Org_Logo: import("@angular/core").Signal<string>;
5
+ Org_Menu_Logo: import("@angular/core").Signal<string>;
6
+ ShowSignUp: import("@angular/core").Signal<string>;
7
+ TagLine: import("@angular/core").Signal<string>;
8
+ profileScreenID: import("@angular/core").Signal<string>;
9
+ workFlowName: import("@angular/core").Signal<string>;
10
+ OrganizationName: import("@angular/core").Signal<string>;
11
+ getOrganizationInformation: (orgInfoData: any) => void;
12
+ } & import("@ngrx/signals").StateSignal<{
13
+ FavIcon: string;
14
+ Org_Brand_Color: string;
15
+ Org_Logo: string;
16
+ Org_Menu_Logo: string;
17
+ ShowSignUp: string;
18
+ TagLine: string;
19
+ profileScreenID: string;
20
+ workFlowName: string;
21
+ OrganizationName: string;
22
+ }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techextensor/tab-core-utility",
3
- "version": "2.2.11",
3
+ "version": "2.2.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",