ichec-angular-core 0.0.7 → 0.0.9
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/fesm2022/ichec-angular-core.mjs +165 -115
- package/fesm2022/ichec-angular-core.mjs.map +1 -1
- package/index.d.ts +53 -35
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ interface IPortalMember extends Identifiable {
|
|
|
18
18
|
last_name: string;
|
|
19
19
|
phone: string;
|
|
20
20
|
organization: string;
|
|
21
|
+
profile_url: string;
|
|
21
22
|
}
|
|
22
23
|
declare class PortalMember implements IPortalMember {
|
|
23
24
|
id: number;
|
|
@@ -28,6 +29,7 @@ declare class PortalMember implements IPortalMember {
|
|
|
28
29
|
last_name: string;
|
|
29
30
|
phone: string;
|
|
30
31
|
organization: string;
|
|
32
|
+
profile_url: string;
|
|
31
33
|
}
|
|
32
34
|
interface IGroup extends Identifiable {
|
|
33
35
|
name: string;
|
|
@@ -87,6 +89,7 @@ declare class RestService<T extends Identifiable> {
|
|
|
87
89
|
getUrl(url: string): Observable<T>;
|
|
88
90
|
putItem(item: T, content_type?: string): Observable<T>;
|
|
89
91
|
patchItemMedia(id: number, form: FormData): Observable<T>;
|
|
92
|
+
postFile(id: number, field: string, file: File): Observable<T>;
|
|
90
93
|
patchItem(item: T, include_keys: string[], exclude_keys: string[]): Observable<T>;
|
|
91
94
|
postItem(item: T): Observable<T>;
|
|
92
95
|
private getHeaders;
|
|
@@ -127,15 +130,20 @@ interface NavOption {
|
|
|
127
130
|
name: string;
|
|
128
131
|
route: string;
|
|
129
132
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
groupService: GroupService;
|
|
133
|
-
groups: IGroup[];
|
|
133
|
+
interface NavGroup {
|
|
134
|
+
name: string;
|
|
134
135
|
options: NavOption[];
|
|
136
|
+
}
|
|
137
|
+
declare class LeftNavService {
|
|
138
|
+
activeOptions: Set<NavOption>;
|
|
139
|
+
private _groups;
|
|
140
|
+
private _defaultOptions;
|
|
141
|
+
private _groupService;
|
|
135
142
|
constructor();
|
|
136
143
|
onGroupsUpdated(groups: IGroup[]): void;
|
|
137
|
-
|
|
138
|
-
|
|
144
|
+
addNavGroup(group: NavGroup): void;
|
|
145
|
+
setDefaultOptions(options: NavOption[]): void;
|
|
146
|
+
setGroups(groups: NavGroup[]): void;
|
|
139
147
|
static ɵfac: i0.ɵɵFactoryDeclaration<LeftNavService, never>;
|
|
140
148
|
static ɵprov: i0.ɵɵInjectableDeclaration<LeftNavService>;
|
|
141
149
|
}
|
|
@@ -153,9 +161,8 @@ declare class TopBarComponent implements OnInit {
|
|
|
153
161
|
}
|
|
154
162
|
|
|
155
163
|
declare class LeftNavComponent {
|
|
156
|
-
private
|
|
157
|
-
|
|
158
|
-
getOptions(): ichec_angular_core.NavOption[];
|
|
164
|
+
private _leftNavService;
|
|
165
|
+
getOptions(): Set<ichec_angular_core.NavOption>;
|
|
159
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<LeftNavComponent, never>;
|
|
160
167
|
static ɵcmp: i0.ɵɵComponentDeclaration<LeftNavComponent, "lib-left-nav", never, {}, {}, never, never, true, never>;
|
|
161
168
|
}
|
|
@@ -169,43 +176,41 @@ declare const LOGIN_USER: InjectionToken<LoginUser>;
|
|
|
169
176
|
declare class LandingComponent implements OnInit {
|
|
170
177
|
loginUser: LoginUser;
|
|
171
178
|
loginError: string;
|
|
179
|
+
message: string;
|
|
172
180
|
private userService;
|
|
173
181
|
private router;
|
|
174
|
-
constructor();
|
|
175
182
|
ngOnInit(): void;
|
|
176
183
|
login(): rxjs.Subscription;
|
|
177
184
|
onLoginError(error: HttpErrorResponse): void;
|
|
178
185
|
onLoggedIn(): void;
|
|
179
186
|
static ɵfac: i0.ɵɵFactoryDeclaration<LandingComponent, never>;
|
|
180
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LandingComponent, "lib-landing", never, {}, {}, never, never, true, never>;
|
|
187
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LandingComponent, "lib-landing", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
|
|
181
188
|
}
|
|
182
189
|
|
|
183
|
-
declare abstract class
|
|
190
|
+
declare abstract class DetailView<T extends Identifiable> {
|
|
184
191
|
item?: T;
|
|
185
192
|
protected _route: ActivatedRoute;
|
|
186
193
|
protected _location: Location;
|
|
187
194
|
protected _userService: UserService;
|
|
188
195
|
protected _restService: RestService<T>;
|
|
189
|
-
constructor();
|
|
190
|
-
|
|
196
|
+
constructor(_route: ActivatedRoute, _location: Location, _userService: UserService, _restService: RestService<T>);
|
|
197
|
+
onInit(): void;
|
|
191
198
|
onItemAvailable(): void;
|
|
192
199
|
onItemAndUserAvailable(_: IPortalMember): void;
|
|
193
200
|
goBack(): void;
|
|
194
201
|
private getItem;
|
|
195
202
|
update(): void;
|
|
196
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DetailViewComponent<any>, never>;
|
|
197
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DetailViewComponent<any>, "lib-detail-view", never, {}, {}, never, never, true, never>;
|
|
198
203
|
}
|
|
199
204
|
|
|
200
|
-
declare abstract class
|
|
205
|
+
declare abstract class EditView<T extends Identifiable> {
|
|
201
206
|
item?: T;
|
|
202
207
|
createMode: boolean;
|
|
203
208
|
protected _route: ActivatedRoute;
|
|
204
209
|
protected _location: Location;
|
|
205
210
|
protected _userService: UserService;
|
|
206
211
|
protected _restService: RestService<T>;
|
|
207
|
-
constructor();
|
|
208
|
-
|
|
212
|
+
constructor(_route: ActivatedRoute, _location: Location, _userService: UserService, _restServce: RestService<T>);
|
|
213
|
+
onInit(): void;
|
|
209
214
|
onItemAvailable(): void;
|
|
210
215
|
onItemAndUserAvailable(_: IPortalMember): void;
|
|
211
216
|
goBack(): void;
|
|
@@ -217,11 +222,9 @@ declare abstract class EditViewComponent<T extends Identifiable> implements OnIn
|
|
|
217
222
|
private isCreateRoute;
|
|
218
223
|
private getItem;
|
|
219
224
|
protected onItemUpdated(item: T): void;
|
|
220
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditViewComponent<any>, never>;
|
|
221
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditViewComponent<any>, "lib-edit-view", never, {}, {}, never, never, true, never>;
|
|
222
225
|
}
|
|
223
226
|
|
|
224
|
-
declare class
|
|
227
|
+
declare class ListView<T extends Identifiable> {
|
|
225
228
|
user?: IPortalMember;
|
|
226
229
|
items: T[];
|
|
227
230
|
displayedColumns: string[];
|
|
@@ -229,54 +232,69 @@ declare class ListViewComponent<T extends Identifiable> implements OnInit {
|
|
|
229
232
|
protected _location: Location;
|
|
230
233
|
protected _userService: UserService;
|
|
231
234
|
protected _restService: RestService<T>;
|
|
232
|
-
constructor();
|
|
233
|
-
|
|
235
|
+
constructor(_route: ActivatedRoute, _location: Location, _userService: UserService, _restService: RestService<T>);
|
|
236
|
+
onInit(): void;
|
|
234
237
|
getItems(): void;
|
|
235
238
|
private onUserChange;
|
|
236
239
|
protected isSelfList(): boolean;
|
|
237
240
|
goBack(): void;
|
|
238
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ListViewComponent<any>, never>;
|
|
239
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListViewComponent<any>, "lib-table-view", never, {}, {}, never, never, true, never>;
|
|
240
241
|
}
|
|
241
242
|
|
|
242
|
-
declare class UserDetailComponent extends
|
|
243
|
+
declare class UserDetailComponent extends DetailView<IPortalMember> implements OnInit {
|
|
244
|
+
constructor();
|
|
245
|
+
ngOnInit(): void;
|
|
243
246
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserDetailComponent, never>;
|
|
244
247
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserDetailComponent, "lib-user-detail", never, {}, {}, never, never, true, never>;
|
|
245
248
|
}
|
|
246
249
|
|
|
247
|
-
declare class UserEditComponent extends
|
|
250
|
+
declare class UserEditComponent extends EditView<IPortalMember> implements OnInit {
|
|
251
|
+
image: File | null;
|
|
252
|
+
temporaryImageUrl: string | ArrayBuffer;
|
|
253
|
+
constructor();
|
|
254
|
+
ngOnInit(): void;
|
|
248
255
|
protected getTemplateItem(): IPortalMember;
|
|
256
|
+
save(): void;
|
|
257
|
+
saveFiles(item: IPortalMember): void;
|
|
258
|
+
submit(): void;
|
|
259
|
+
onFileUpload(event: Event): void;
|
|
249
260
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserEditComponent, never>;
|
|
250
261
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserEditComponent, "lib-user-edit", never, {}, {}, never, never, true, never>;
|
|
251
262
|
}
|
|
252
263
|
|
|
253
|
-
declare class UserComponent extends
|
|
264
|
+
declare class UserComponent extends ListView<IPortalMember> implements OnInit {
|
|
265
|
+
constructor();
|
|
266
|
+
ngOnInit(): void;
|
|
254
267
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserComponent, never>;
|
|
255
268
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserComponent, "lib-user", never, {}, {}, never, never, true, never>;
|
|
256
269
|
}
|
|
257
270
|
|
|
258
|
-
declare class GroupDetailComponent extends
|
|
271
|
+
declare class GroupDetailComponent extends DetailView<IGroup> {
|
|
272
|
+
constructor();
|
|
259
273
|
static ɵfac: i0.ɵɵFactoryDeclaration<GroupDetailComponent, never>;
|
|
260
274
|
static ɵcmp: i0.ɵɵComponentDeclaration<GroupDetailComponent, "lib-group-detail", never, {}, {}, never, never, true, never>;
|
|
261
275
|
}
|
|
262
276
|
|
|
263
|
-
declare class GroupComponent extends
|
|
277
|
+
declare class GroupComponent extends ListView<IGroup> implements OnInit {
|
|
264
278
|
displayedColumns: string[];
|
|
265
279
|
constructor();
|
|
280
|
+
ngOnInit(): void;
|
|
266
281
|
static ɵfac: i0.ɵɵFactoryDeclaration<GroupComponent, never>;
|
|
267
282
|
static ɵcmp: i0.ɵɵComponentDeclaration<GroupComponent, "lib-group", never, {}, {}, never, never, true, never>;
|
|
268
283
|
}
|
|
269
284
|
|
|
270
|
-
declare class OrganizationComponent extends
|
|
285
|
+
declare class OrganizationComponent extends ListView<Organization> implements OnInit {
|
|
271
286
|
displayedColumns: string[];
|
|
287
|
+
constructor();
|
|
288
|
+
ngOnInit(): void;
|
|
272
289
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationComponent, never>;
|
|
273
290
|
static ɵcmp: i0.ɵɵComponentDeclaration<OrganizationComponent, "lib-organization", never, {}, {}, never, never, true, never>;
|
|
274
291
|
}
|
|
275
292
|
|
|
276
|
-
declare class OrganizationDetailComponent extends
|
|
293
|
+
declare class OrganizationDetailComponent extends DetailView<IOrganization> {
|
|
294
|
+
constructor();
|
|
277
295
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationDetailComponent, never>;
|
|
278
296
|
static ɵcmp: i0.ɵɵComponentDeclaration<OrganizationDetailComponent, "lib-organization-detail", never, {}, {}, never, never, true, never>;
|
|
279
297
|
}
|
|
280
298
|
|
|
281
|
-
export { ApiError,
|
|
282
|
-
export type { IGroup, IOrganization, IPortalMember, Identifiable, LeftNavCategory, LeftNavOption, NavOption };
|
|
299
|
+
export { ApiError, DetailView, ENDPOINT_URL, EditView, ErrorCode, Group, GroupComponent, GroupDetailComponent, GroupService, LOGIN_USER, LandingComponent, LeftNavComponent, LeftNavService, ListView, Organization, OrganizationComponent, OrganizationDetailComponent, OrganizationService, PortalMember, RestService, TopBarComponent, UserComponent, UserDetailComponent, UserEditComponent, UserService };
|
|
300
|
+
export type { IGroup, IOrganization, IPortalMember, Identifiable, LeftNavCategory, LeftNavOption, NavGroup, NavOption };
|