@rolatech/angular-user 19.0.0-beta.9 → 19.1.0-beta.3

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.
package/index.d.ts CHANGED
@@ -1 +1,209 @@
1
- export { userRoutes } from './lib/pages/user.routes';
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit } from '@angular/core';
3
+ import { BaseComponent } from '@rolatech/angular-components';
4
+ import { AuthAgentService, AuthUserService, AuthService } from '@rolatech/angular-auth';
5
+ import { User } from '@rolatech/angular-common';
6
+ import { MatPaginator, PageEvent } from '@angular/material/paginator';
7
+ import { Course } from '@rolatech/angular-course';
8
+ import * as rxjs from 'rxjs';
9
+ import { Title } from '@angular/platform-browser';
10
+ import { ActivatedRoute } from '@angular/router';
11
+
12
+ interface AgentApplication {
13
+ id: string;
14
+ firstName: string;
15
+ lastName: string;
16
+ businessName: string;
17
+ website: string;
18
+ email: string;
19
+ phone: string;
20
+ experienceYears: number;
21
+ status: AgentApplicationStatus;
22
+ documents: string[];
23
+ createdAt: string;
24
+ userId: string;
25
+ user: User;
26
+ }
27
+ declare enum AgentApplicationStatus {
28
+ PENDING = "Pending",
29
+ APPROVED = "Approved",
30
+ REJECTED = "Rejected"
31
+ }
32
+
33
+ declare class AgentApplicationDetailComponent extends BaseComponent implements OnInit {
34
+ authAgentService: AuthAgentService;
35
+ application: any;
36
+ applicationStatus: typeof AgentApplicationStatus;
37
+ ngOnInit(): void;
38
+ getApplication(): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgentApplicationDetailComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<AgentApplicationDetailComponent, "rolatech-agent-application-detail", never, {}, {}, never, never, true, never>;
41
+ }
42
+
43
+ declare class AgentApplicationComponent extends BaseComponent implements OnInit {
44
+ authAgentService: AuthAgentService;
45
+ application: any;
46
+ selectedFiles: File[];
47
+ sending: boolean;
48
+ ngOnInit(): void;
49
+ getApplication(): void;
50
+ onFileSelected(event: any): void;
51
+ submitApplication(): void;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgentApplicationComponent, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<AgentApplicationComponent, "rolatech-agent-application", never, {}, {}, never, never, true, never>;
54
+ }
55
+
56
+ declare class UserIndexComponent extends BaseComponent implements OnInit {
57
+ authUserService: AuthUserService;
58
+ paginator: i0.Signal<MatPaginator | undefined>;
59
+ users: User[];
60
+ pageEvent: PageEvent;
61
+ isLoading: boolean;
62
+ isSearch: boolean;
63
+ length: number;
64
+ pageSize: number;
65
+ pageSizeOptions: number[];
66
+ orderOptions: {
67
+ key: string;
68
+ value: string;
69
+ icon: string;
70
+ sort: string;
71
+ }[];
72
+ orderString: string;
73
+ ngOnInit(): void;
74
+ findAll(event?: PageEvent | null): any;
75
+ search(e: any): void;
76
+ onClick(item: any): void;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserIndexComponent, never>;
78
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserIndexComponent, "rolatech-user-index", never, {}, {}, never, never, true, never>;
79
+ }
80
+
81
+ declare class AgentManageApplicationDetailComponent extends BaseComponent implements OnInit {
82
+ authAgentService: AuthAgentService;
83
+ application: AgentApplication;
84
+ status: typeof AgentApplicationStatus;
85
+ ngOnInit(): void;
86
+ getApplication(): void;
87
+ approve(): void;
88
+ reject(): void;
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgentManageApplicationDetailComponent, never>;
90
+ static ɵcmp: i0.ɵɵComponentDeclaration<AgentManageApplicationDetailComponent, "rolatech-agent-manage-application-detail", never, {}, {}, never, never, true, never>;
91
+ }
92
+
93
+ declare class AgentManageApplicationIndexComponent extends BaseComponent implements OnInit {
94
+ authAgentService: AuthAgentService;
95
+ applications: AgentApplication[];
96
+ select: number;
97
+ links: ({
98
+ name: string;
99
+ icon: string;
100
+ status?: undefined;
101
+ } | {
102
+ name: string;
103
+ icon: string;
104
+ status: string;
105
+ })[];
106
+ filterOptions: any;
107
+ ngOnInit(): void;
108
+ findApplications(): void;
109
+ convertFilterOptions(jsonObj: any): string;
110
+ viewPdf(url: string): void;
111
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgentManageApplicationIndexComponent, never>;
112
+ static ɵcmp: i0.ɵɵComponentDeclaration<AgentManageApplicationIndexComponent, "rolatech-agent-manage-application-index", never, {}, {}, never, never, true, never>;
113
+ }
114
+
115
+ declare const agentManageApplicationRoutes: ({
116
+ path: string;
117
+ component: typeof AgentManageApplicationIndexComponent;
118
+ } | {
119
+ path: string;
120
+ component: typeof AgentManageApplicationDetailComponent;
121
+ })[];
122
+
123
+ declare const agentRoutes: ({
124
+ path: string;
125
+ component: typeof AgentApplicationComponent;
126
+ } | {
127
+ path: string;
128
+ component: typeof AgentApplicationDetailComponent;
129
+ })[];
130
+
131
+ declare class UserDataService {
132
+ private userInfo;
133
+ data: rxjs.Observable<any>;
134
+ send(data: any): void;
135
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserDataService, never>;
136
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserDataService>;
137
+ }
138
+
139
+ declare class UserLayoutComponent extends BaseComponent implements OnInit {
140
+ authService: AuthService;
141
+ authUserService: AuthUserService;
142
+ userDataService: UserDataService;
143
+ authenticated: i0.Signal<boolean | null>;
144
+ userInfo: any;
145
+ courses: Course[];
146
+ meta: any;
147
+ isFollowed: boolean;
148
+ username: string;
149
+ selectIndex: i0.ModelSignal<number>;
150
+ path: string;
151
+ statsData: any;
152
+ constructor();
153
+ ngOnInit(): void;
154
+ stats(): void;
155
+ findUserInfo(): void;
156
+ checkIfFollowed(): void;
157
+ follow(): void;
158
+ unfollow(): void;
159
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserLayoutComponent, never>;
160
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserLayoutComponent, "rolatech-user-layout", never, { "selectIndex": { "alias": "selectIndex"; "required": false; "isSignal": true; }; }, { "selectIndex": "selectIndexChange"; }, never, never, true, never>;
161
+ }
162
+
163
+ declare class UserCommunityComponent implements OnInit {
164
+ userDataService: UserDataService;
165
+ ngOnInit(): void;
166
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserCommunityComponent, never>;
167
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserCommunityComponent, "rolatech-user-community", never, {}, {}, never, never, true, never>;
168
+ }
169
+
170
+ declare class UserFollowInfoComponent implements OnInit {
171
+ title: Title;
172
+ route: ActivatedRoute;
173
+ authService: AuthService;
174
+ authUserService: AuthUserService;
175
+ authenticated: i0.Signal<boolean | null>;
176
+ userId: i0.Signal<string>;
177
+ tabIndex: i0.WritableSignal<number>;
178
+ userInfo: any;
179
+ users: any[];
180
+ username: string;
181
+ path: string;
182
+ myId: string;
183
+ constructor();
184
+ ngOnInit(): void;
185
+ findUserInfo(): void;
186
+ follow(user: any): void;
187
+ unfollow(user: any): void;
188
+ listFollowingByUsername(): void;
189
+ listFollowersByUsername(): void;
190
+ friendships(ids: string[]): void;
191
+ format(friendships: any): void;
192
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserFollowInfoComponent, never>;
193
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserFollowInfoComponent, "rolatech-user-follow-info", never, {}, {}, never, never, true, never>;
194
+ }
195
+
196
+ declare const userRoutes: ({
197
+ path: string;
198
+ component: typeof UserLayoutComponent;
199
+ children: {
200
+ path: string;
201
+ component: typeof UserCommunityComponent;
202
+ }[];
203
+ } | {
204
+ path: string;
205
+ component: typeof UserFollowInfoComponent;
206
+ children?: undefined;
207
+ })[];
208
+
209
+ export { AgentApplicationComponent, AgentApplicationDetailComponent, UserIndexComponent, agentManageApplicationRoutes, agentRoutes, userRoutes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolatech/angular-user",
3
- "version": "19.0.0-beta.9",
3
+ "version": "19.1.0-beta.3",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/core": "^19.0.0",
@@ -13,10 +13,10 @@
13
13
  "lodash": "^4.17.21"
14
14
  },
15
15
  "dependencies": {
16
- "@rolatech/angular-components": "19.0.0-beta.9",
17
- "@rolatech/angular-services": "19.0.0-beta.9",
18
- "@rolatech/angular-auth": "19.0.0-beta.9",
19
- "@rolatech/angular-course": "19.0.0-beta.9",
16
+ "@rolatech/angular-components": "19.1.0-beta.3",
17
+ "@rolatech/angular-services": "19.1.0-beta.3",
18
+ "@rolatech/angular-auth": "19.1.0-beta.3",
19
+ "@rolatech/angular-course": "19.1.0-beta.3",
20
20
  "tslib": "^2.3.0"
21
21
  },
22
22
  "sideEffects": false,
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class UserItemComponent {
3
- hasClass: boolean;
4
- user: import("@angular/core").InputSignal<any>;
5
- isFollowing: import("@angular/core").InputSignal<boolean>;
6
- follow: import("@angular/core").OutputEmitterRef<string>;
7
- unfollow: import("@angular/core").OutputEmitterRef<void>;
8
- own: import("@angular/core").InputSignal<unknown>;
9
- onFollow(): void;
10
- onUnFollow(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<UserItemComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<UserItemComponent, "rolatech-user-item", never, { "user": { "alias": "user"; "required": false; "isSignal": true; }; "isFollowing": { "alias": "isFollowing"; "required": false; "isSignal": true; }; "own": { "alias": "own"; "required": false; "isSignal": true; }; }, { "follow": "follow"; "unfollow": "unfollow"; }, never, never, true, never>;
13
- }
@@ -1,29 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { BaseComponent } from '@rolatech/angular-components';
3
- import { AuthService, AuthUserService } from '@rolatech/angular-auth';
4
- import { Course } from '@rolatech/angular-course';
5
- import { UserDataService } from '../../user-data.service';
6
- import * as i0 from "@angular/core";
7
- export declare class UserLayoutComponent extends BaseComponent implements OnInit {
8
- authService: AuthService;
9
- authUserService: AuthUserService;
10
- userDataService: UserDataService;
11
- authenticated: import("@angular/core").Signal<boolean | null>;
12
- userInfo: any;
13
- courses: Course[];
14
- meta: any;
15
- isFollowed: boolean;
16
- username: string;
17
- selectIndex: import("@angular/core").ModelSignal<number>;
18
- path: string;
19
- statsData: any;
20
- constructor();
21
- ngOnInit(): void;
22
- stats(): void;
23
- findUserInfo(): void;
24
- checkIfFollowed(): void;
25
- follow(): void;
26
- unfollow(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<UserLayoutComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<UserLayoutComponent, "rolatech-user-layout", never, { "selectIndex": { "alias": "selectIndex"; "required": false; "isSignal": true; }; }, { "selectIndex": "selectIndexChange"; }, never, never, true, never>;
29
- }
@@ -1,9 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { UserDataService } from '../../user-data.service';
3
- import * as i0 from "@angular/core";
4
- export declare class UserCommunityComponent implements OnInit {
5
- userDataService: UserDataService;
6
- ngOnInit(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<UserCommunityComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<UserCommunityComponent, "rolatech-user-community", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,30 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { Title } from '@angular/platform-browser';
3
- import { ActivatedRoute } from '@angular/router';
4
- import { AuthService, AuthUserService } from '@rolatech/angular-auth';
5
- import * as i0 from "@angular/core";
6
- export declare class UserFollowInfoComponent implements OnInit {
7
- title: Title;
8
- route: ActivatedRoute;
9
- authService: AuthService;
10
- authUserService: AuthUserService;
11
- authenticated: import("@angular/core").Signal<boolean | null>;
12
- userId: import("@angular/core").Signal<string>;
13
- tabIndex: import("@angular/core").WritableSignal<number>;
14
- userInfo: any;
15
- users: any[];
16
- username: string;
17
- path: string;
18
- myId: string;
19
- constructor();
20
- ngOnInit(): void;
21
- findUserInfo(): void;
22
- follow(user: any): void;
23
- unfollow(user: any): void;
24
- listFollowingByUsername(): void;
25
- listFollowersByUsername(): void;
26
- friendships(ids: string[]): void;
27
- format(friendships: any): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<UserFollowInfoComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<UserFollowInfoComponent, "rolatech-user-follow-info", never, {}, {}, never, never, true, never>;
30
- }
@@ -1,16 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { BaseComponent } from '@rolatech/angular-components';
3
- import { UserDataService } from '../../user-data.service';
4
- import { CourseService, Course } from '@rolatech/angular-course';
5
- import * as i0 from "@angular/core";
6
- export declare class UserInfoComponent extends BaseComponent implements OnInit {
7
- courseService: CourseService;
8
- userDataService: UserDataService;
9
- courses: Course[];
10
- meta: any;
11
- constructor();
12
- ngOnInit(): void;
13
- findCoursesByInstructorId(instructorId: string): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<UserInfoComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<UserInfoComponent, "rolatech-user-info", never, {}, {}, never, never, true, never>;
16
- }
@@ -1,13 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { ProductService } from '@rolatech/angular-services';
3
- import { UserDataService } from '../../user-data.service';
4
- import * as i0 from "@angular/core";
5
- export declare class UserStoreComponent implements OnInit {
6
- userDataService: UserDataService;
7
- productService: ProductService;
8
- products: any;
9
- ngOnInit(): void;
10
- findProductsByUserId(userId: string): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<UserStoreComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<UserStoreComponent, "rolatech-user-store", never, {}, {}, never, never, true, never>;
13
- }
@@ -1,15 +0,0 @@
1
- import { UserLayoutComponent } from '../components/user-layout/user-layout.component';
2
- import { UserCommunityComponent } from './user-community/user-community.component';
3
- import { UserFollowInfoComponent } from './user-follow-info/user-follow-info.component';
4
- export declare const userRoutes: ({
5
- path: string;
6
- component: typeof UserLayoutComponent;
7
- children: {
8
- path: string;
9
- component: typeof UserCommunityComponent;
10
- }[];
11
- } | {
12
- path: string;
13
- component: typeof UserFollowInfoComponent;
14
- children?: undefined;
15
- })[];
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class UserDataService {
3
- private userInfo;
4
- data: import("rxjs").Observable<any>;
5
- send(data: any): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<UserDataService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<UserDataService>;
8
- }