ichec-angular-core 0.0.13 → 0.1.0
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 +842 -202
- package/fesm2022/ichec-angular-core.mjs.map +1 -1
- package/index.d.ts +233 -84
- package/package.json +1 -1
- package/styles/styles.scss +1 -0
package/index.d.ts
CHANGED
|
@@ -4,15 +4,40 @@ import { HttpClient, HttpErrorResponse } from '@angular/common/http';
|
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { InjectionToken, OnInit, WritableSignal } from '@angular/core';
|
|
6
6
|
import * as ichec_angular_core from 'ichec-angular-core';
|
|
7
|
+
import { MatSidenavContent } from '@angular/material/sidenav';
|
|
7
8
|
import { ActivatedRoute } from '@angular/router';
|
|
8
9
|
import { Location } from '@angular/common';
|
|
9
10
|
import * as _angular_forms from '@angular/forms';
|
|
11
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
10
12
|
import { MatTable } from '@angular/material/table';
|
|
11
13
|
|
|
12
14
|
interface Identifiable {
|
|
13
15
|
id: number;
|
|
14
16
|
url: string;
|
|
15
17
|
}
|
|
18
|
+
interface IPaginated<T extends Identifiable> {
|
|
19
|
+
count: number;
|
|
20
|
+
next: string | null;
|
|
21
|
+
previous: string | null;
|
|
22
|
+
results: T[];
|
|
23
|
+
}
|
|
24
|
+
declare class Paginated<T extends Identifiable> implements IPaginated<T> {
|
|
25
|
+
count: number;
|
|
26
|
+
next: null;
|
|
27
|
+
previous: null;
|
|
28
|
+
results: T[];
|
|
29
|
+
}
|
|
30
|
+
interface IPermission extends Identifiable {
|
|
31
|
+
codename: string;
|
|
32
|
+
}
|
|
33
|
+
declare class Permission implements IPermission {
|
|
34
|
+
id: number;
|
|
35
|
+
url: string;
|
|
36
|
+
codename: string;
|
|
37
|
+
static typename: string;
|
|
38
|
+
static plural: string;
|
|
39
|
+
constructor(params?: Partial<IPermission>);
|
|
40
|
+
}
|
|
16
41
|
interface IPortalMember extends Identifiable {
|
|
17
42
|
username: string;
|
|
18
43
|
email: string;
|
|
@@ -21,8 +46,11 @@ interface IPortalMember extends Identifiable {
|
|
|
21
46
|
phone: string;
|
|
22
47
|
organization: string;
|
|
23
48
|
profile_url: string;
|
|
49
|
+
all_permissions: string[];
|
|
24
50
|
}
|
|
25
51
|
declare class PortalMember implements IPortalMember {
|
|
52
|
+
static typename: string;
|
|
53
|
+
static plural: string;
|
|
26
54
|
id: number;
|
|
27
55
|
url: string;
|
|
28
56
|
username: string;
|
|
@@ -32,38 +60,40 @@ declare class PortalMember implements IPortalMember {
|
|
|
32
60
|
phone: string;
|
|
33
61
|
organization: string;
|
|
34
62
|
profile_url: string;
|
|
63
|
+
all_permissions: never[];
|
|
35
64
|
constructor(params?: Partial<IPortalMember>);
|
|
36
65
|
}
|
|
37
66
|
interface IGroup extends Identifiable {
|
|
38
67
|
name: string;
|
|
39
68
|
}
|
|
40
69
|
declare class Group implements IGroup {
|
|
70
|
+
static typename: string;
|
|
71
|
+
static plural: string;
|
|
41
72
|
name: string;
|
|
42
73
|
url: string;
|
|
43
74
|
id: number;
|
|
44
|
-
|
|
45
|
-
interface IOrganization extends Identifiable {
|
|
46
|
-
name: string;
|
|
47
|
-
acronym: string;
|
|
48
|
-
description: string;
|
|
49
|
-
address: string;
|
|
50
|
-
website: string;
|
|
51
|
-
country: string;
|
|
52
|
-
members: string[];
|
|
53
|
-
}
|
|
54
|
-
declare class Organization implements IOrganization {
|
|
55
|
-
id: number;
|
|
56
|
-
url: string;
|
|
57
|
-
name: string;
|
|
58
|
-
acronym: string;
|
|
59
|
-
description: string;
|
|
60
|
-
address: string;
|
|
61
|
-
website: string;
|
|
62
|
-
country: string;
|
|
63
|
-
members: string[];
|
|
64
|
-
constructor(params?: Partial<IOrganization>);
|
|
75
|
+
constructor(params?: Partial<IGroup>);
|
|
65
76
|
}
|
|
66
77
|
|
|
78
|
+
interface IItemQuery {
|
|
79
|
+
queries: Map<string, string>;
|
|
80
|
+
page: number;
|
|
81
|
+
page_size: number;
|
|
82
|
+
sort_field: string;
|
|
83
|
+
sort_order: string;
|
|
84
|
+
filter_field: string;
|
|
85
|
+
filter: string;
|
|
86
|
+
}
|
|
87
|
+
declare class ItemQuery {
|
|
88
|
+
queries: Map<string, string>;
|
|
89
|
+
page: number;
|
|
90
|
+
page_size: number;
|
|
91
|
+
sort_field: string;
|
|
92
|
+
sort_order: string;
|
|
93
|
+
filter_field: string;
|
|
94
|
+
filter: string;
|
|
95
|
+
constructor(params?: Partial<IItemQuery>);
|
|
96
|
+
}
|
|
67
97
|
declare enum ErrorCode {
|
|
68
98
|
UnknownError = 1
|
|
69
99
|
}
|
|
@@ -102,15 +132,15 @@ interface LeftNavCategory {
|
|
|
102
132
|
|
|
103
133
|
declare const ENDPOINT_URL: InjectionToken<string>;
|
|
104
134
|
declare class RestService<T extends Identifiable> {
|
|
105
|
-
|
|
135
|
+
readonly _url: string;
|
|
106
136
|
protected _endpoint_url: string;
|
|
107
137
|
protected _http: HttpClient;
|
|
108
|
-
constructor(_url: string, _endpoint_url: string, _http: HttpClient);
|
|
109
138
|
deleteItem(id: number): Observable<void>;
|
|
110
|
-
getForUser(user: IPortalMember): Observable<T
|
|
111
|
-
get(query?:
|
|
139
|
+
getForUser(user: IPortalMember, query?: IItemQuery): Observable<IPaginated<T>>;
|
|
140
|
+
get(query?: IItemQuery): Observable<IPaginated<T>>;
|
|
112
141
|
getItem(id: number): Observable<T>;
|
|
113
142
|
getUrl(url: string): Observable<T>;
|
|
143
|
+
getPaginatedUrl(url: string): Observable<IPaginated<T>>;
|
|
114
144
|
getOptions(): Observable<IRestOptions>;
|
|
115
145
|
putItem(item: T, content_type?: string): Observable<T>;
|
|
116
146
|
patchItemMedia(id: number, form: FormData): Observable<T>;
|
|
@@ -123,30 +153,91 @@ declare class RestService<T extends Identifiable> {
|
|
|
123
153
|
handleError(error: HttpErrorResponse): Observable<never>;
|
|
124
154
|
}
|
|
125
155
|
|
|
126
|
-
declare class
|
|
127
|
-
|
|
156
|
+
declare class ItemService<T extends Identifiable> extends RestService<T> {
|
|
157
|
+
itemType: string;
|
|
158
|
+
canEdit(): boolean;
|
|
159
|
+
canCreate(): boolean;
|
|
160
|
+
canDelete(): boolean;
|
|
161
|
+
canView(): boolean;
|
|
162
|
+
instantiateType(_: T): T;
|
|
163
|
+
getItem(id: number): Observable<T>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare class ResolvedPermission {
|
|
167
|
+
canEdit: boolean;
|
|
168
|
+
canAdd: boolean;
|
|
169
|
+
canView: boolean;
|
|
170
|
+
canDelete: boolean;
|
|
171
|
+
}
|
|
172
|
+
declare class UserService extends ItemService<IPortalMember> {
|
|
173
|
+
/**
|
|
174
|
+
Service to handle IPortalMember via REST and also handle logins.
|
|
128
175
|
*/
|
|
129
176
|
loggedInUser: BehaviorSubject<IPortalMember | null>;
|
|
130
|
-
|
|
177
|
+
readonly _url: string;
|
|
178
|
+
itemType: string;
|
|
179
|
+
private permissions;
|
|
180
|
+
instantiateType(item: IPortalMember): IPortalMember;
|
|
131
181
|
login(username: string, password: string): Observable<void>;
|
|
182
|
+
hasAddPermission(feature: string): boolean;
|
|
183
|
+
hasDeletePermission(feature: string): boolean;
|
|
184
|
+
hasEditPermission(feature: string): boolean;
|
|
185
|
+
hasViewPermission(feature: string): boolean;
|
|
132
186
|
logout(): void;
|
|
133
187
|
private onLoginToken;
|
|
134
188
|
private onLoggedIn;
|
|
189
|
+
private parsePermission;
|
|
190
|
+
private processPermissions;
|
|
135
191
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
136
192
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
137
193
|
}
|
|
138
194
|
|
|
139
|
-
declare class GroupService extends
|
|
195
|
+
declare class GroupService extends ItemService<IGroup> {
|
|
140
196
|
userService: UserService;
|
|
141
197
|
userItems: BehaviorSubject<IGroup[]>;
|
|
198
|
+
readonly _url: string;
|
|
199
|
+
itemType: string;
|
|
142
200
|
constructor();
|
|
143
201
|
private refreshUserItems;
|
|
202
|
+
instantiateType(item: IGroup): IGroup;
|
|
144
203
|
static ɵfac: i0.ɵɵFactoryDeclaration<GroupService, never>;
|
|
145
204
|
static ɵprov: i0.ɵɵInjectableDeclaration<GroupService>;
|
|
146
205
|
}
|
|
147
206
|
|
|
148
|
-
|
|
149
|
-
|
|
207
|
+
interface ICountry {
|
|
208
|
+
name: string;
|
|
209
|
+
code: string;
|
|
210
|
+
flag: string;
|
|
211
|
+
}
|
|
212
|
+
interface IAddress extends Identifiable {
|
|
213
|
+
line1: string;
|
|
214
|
+
line2: string;
|
|
215
|
+
line3: string;
|
|
216
|
+
city: string;
|
|
217
|
+
region: string;
|
|
218
|
+
postcode: string;
|
|
219
|
+
country: string;
|
|
220
|
+
country_name: string;
|
|
221
|
+
country_flag: string;
|
|
222
|
+
}
|
|
223
|
+
interface IOrganization extends Identifiable {
|
|
224
|
+
name: string;
|
|
225
|
+
acronym: string;
|
|
226
|
+
description: string;
|
|
227
|
+
address: string;
|
|
228
|
+
website: string;
|
|
229
|
+
members: string[];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
declare class OrganizationService extends ItemService<IOrganization> {
|
|
233
|
+
readonly _url: string;
|
|
234
|
+
itemType: string;
|
|
235
|
+
private userService;
|
|
236
|
+
instantiateType(item: IOrganization): IOrganization;
|
|
237
|
+
canCreate(): boolean;
|
|
238
|
+
canView(): boolean;
|
|
239
|
+
canEdit(): boolean;
|
|
240
|
+
canDelete(): boolean;
|
|
150
241
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationService, never>;
|
|
151
242
|
static ɵprov: i0.ɵɵInjectableDeclaration<OrganizationService>;
|
|
152
243
|
}
|
|
@@ -186,6 +277,7 @@ declare class TopBarComponent implements OnInit {
|
|
|
186
277
|
|
|
187
278
|
declare class LeftNavComponent {
|
|
188
279
|
private _leftNavService;
|
|
280
|
+
sideNavContent: i0.Signal<MatSidenavContent | undefined>;
|
|
189
281
|
getOptions(): Set<ichec_angular_core.NavOption>;
|
|
190
282
|
static ɵfac: i0.ɵɵFactoryDeclaration<LeftNavComponent, never>;
|
|
191
283
|
static ɵcmp: i0.ɵɵComponentDeclaration<LeftNavComponent, "lib-left-nav", never, {}, {}, never, never, true, never>;
|
|
@@ -215,12 +307,15 @@ declare abstract class DetailView<T extends Identifiable> {
|
|
|
215
307
|
protected item: WritableSignal<T | null>;
|
|
216
308
|
protected route: ActivatedRoute;
|
|
217
309
|
protected userService: UserService;
|
|
218
|
-
protected
|
|
219
|
-
constructor(
|
|
310
|
+
protected itemService: ItemService<T>;
|
|
311
|
+
constructor(itemService: ItemService<T>);
|
|
220
312
|
onInit(): void;
|
|
221
|
-
onItemAvailable(): void;
|
|
222
|
-
onItemAndUserAvailable(
|
|
313
|
+
onItemAvailable(item: T): void;
|
|
314
|
+
onItemAndUserAvailable(_item: T, _user: IPortalMember): void;
|
|
223
315
|
private getItem;
|
|
316
|
+
onDelete(): void;
|
|
317
|
+
protected canEdit(): boolean;
|
|
318
|
+
protected canDelete(): boolean;
|
|
224
319
|
}
|
|
225
320
|
|
|
226
321
|
declare abstract class EditView<T extends Identifiable> {
|
|
@@ -232,7 +327,7 @@ declare abstract class EditView<T extends Identifiable> {
|
|
|
232
327
|
protected _location: Location;
|
|
233
328
|
protected _userService: UserService;
|
|
234
329
|
protected _restService: RestService<T>;
|
|
235
|
-
constructor(
|
|
330
|
+
constructor(_restService: RestService<T>);
|
|
236
331
|
onInit(): void;
|
|
237
332
|
onItemAvailable(): void;
|
|
238
333
|
onItemAndUserAvailable(_: IPortalMember): void;
|
|
@@ -255,21 +350,49 @@ declare abstract class EditView<T extends Identifiable> {
|
|
|
255
350
|
}
|
|
256
351
|
|
|
257
352
|
declare class ListView<T extends Identifiable> {
|
|
258
|
-
|
|
259
|
-
protected items: WritableSignal<T[]>;
|
|
260
|
-
|
|
353
|
+
protected count: i0.WritableSignal<number>;
|
|
354
|
+
protected items: i0.WritableSignal<T[]>;
|
|
355
|
+
protected next_url: string | null;
|
|
261
356
|
protected _route: ActivatedRoute;
|
|
262
357
|
protected _location: Location;
|
|
263
358
|
protected _userService: UserService;
|
|
264
|
-
protected
|
|
265
|
-
constructor(
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
private
|
|
359
|
+
protected _itemService: ItemService<T>;
|
|
360
|
+
constructor(_itemService: ItemService<T>);
|
|
361
|
+
getItems(query?: IItemQuery): void;
|
|
362
|
+
protected onItems(paginated: IPaginated<T>): void;
|
|
363
|
+
private onUserAvailable;
|
|
269
364
|
protected isSelfList(): boolean;
|
|
270
365
|
goBack(): void;
|
|
271
366
|
}
|
|
272
367
|
|
|
368
|
+
interface TableColumn {
|
|
369
|
+
name: string;
|
|
370
|
+
title: string;
|
|
371
|
+
element_type: string;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
interface Selectable<T extends Identifiable> {
|
|
375
|
+
title: string;
|
|
376
|
+
item: T;
|
|
377
|
+
}
|
|
378
|
+
declare class SelectTableComponent<T extends Identifiable> implements OnInit {
|
|
379
|
+
itemType: i0.InputSignal<string>;
|
|
380
|
+
selected: i0.InputSignal<T[]>;
|
|
381
|
+
options: i0.InputSignal<Selectable<T>[]>;
|
|
382
|
+
columns: i0.InputSignal<TableColumn[]>;
|
|
383
|
+
itemAdded: i0.OutputEmitterRef<string>;
|
|
384
|
+
itemRemoved: i0.OutputEmitterRef<number>;
|
|
385
|
+
searchChanged: i0.OutputEmitterRef<string | null>;
|
|
386
|
+
columnNames: i0.Signal<string[]>;
|
|
387
|
+
searchControl: FormControl<string | null>;
|
|
388
|
+
table: i0.Signal<MatTable<any> | undefined>;
|
|
389
|
+
ngOnInit(): void;
|
|
390
|
+
remove(id: number): void;
|
|
391
|
+
add(): void;
|
|
392
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectTableComponent<any>, never>;
|
|
393
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectTableComponent<any>, "lib-select-table", never, { "itemType": { "alias": "itemType"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; }, { "itemAdded": "itemAdded"; "itemRemoved": "itemRemoved"; "searchChanged": "searchChanged"; }, never, never, true, never>;
|
|
394
|
+
}
|
|
395
|
+
|
|
273
396
|
declare class BackButtonComponent {
|
|
274
397
|
protected location: Location;
|
|
275
398
|
protected goBack(): void;
|
|
@@ -281,9 +404,13 @@ declare class DetailHeaderComponent {
|
|
|
281
404
|
id: i0.InputSignal<number>;
|
|
282
405
|
text: i0.InputSignal<string>;
|
|
283
406
|
route: i0.InputSignal<string>;
|
|
407
|
+
canEdit: i0.InputSignal<boolean>;
|
|
408
|
+
canDelete: i0.InputSignal<boolean>;
|
|
409
|
+
deleteClicked: i0.OutputEmitterRef<void>;
|
|
284
410
|
fullRoute: i0.Signal<string>;
|
|
411
|
+
deleteClick(): void;
|
|
285
412
|
static ɵfac: i0.ɵɵFactoryDeclaration<DetailHeaderComponent, never>;
|
|
286
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DetailHeaderComponent, "lib-detail-header", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "route": { "alias": "route"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
413
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetailHeaderComponent, "lib-detail-header", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "route": { "alias": "route"; "required": false; "isSignal": true; }; "canEdit": { "alias": "canEdit"; "required": false; "isSignal": true; }; "canDelete": { "alias": "canDelete"; "required": false; "isSignal": true; }; }, { "deleteClicked": "deleteClicked"; }, never, never, true, never>;
|
|
287
414
|
}
|
|
288
415
|
|
|
289
416
|
interface IFileRecord {
|
|
@@ -355,27 +482,14 @@ declare class UserEditComponent extends EditView<IPortalMember> implements OnIni
|
|
|
355
482
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserEditComponent, "lib-user-edit", never, {}, {}, never, never, true, never>;
|
|
356
483
|
}
|
|
357
484
|
|
|
358
|
-
declare class UserComponent
|
|
359
|
-
|
|
360
|
-
|
|
485
|
+
declare class UserComponent {
|
|
486
|
+
viewType: i0.WritableSignal<string>;
|
|
487
|
+
itemService: UserService;
|
|
488
|
+
columns: TableColumn[];
|
|
361
489
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserComponent, never>;
|
|
362
490
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserComponent, "lib-user", never, {}, {}, never, never, true, never>;
|
|
363
491
|
}
|
|
364
492
|
|
|
365
|
-
declare class UserSelectComponent {
|
|
366
|
-
toAdd: WritableSignal<number>;
|
|
367
|
-
selected: i0.InputSignal<IPortalMember[]>;
|
|
368
|
-
options: i0.InputSignal<IPortalMember[]>;
|
|
369
|
-
itemAdded: i0.OutputEmitterRef<number>;
|
|
370
|
-
itemRemoved: i0.OutputEmitterRef<number>;
|
|
371
|
-
table: i0.Signal<MatTable<any> | undefined>;
|
|
372
|
-
tableColumns: string[];
|
|
373
|
-
remove(id: number): void;
|
|
374
|
-
add(): void;
|
|
375
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserSelectComponent, never>;
|
|
376
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserSelectComponent, "lib-user-select", never, { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "itemAdded": "itemAdded"; "itemRemoved": "itemRemoved"; }, never, never, true, never>;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
493
|
declare class GroupDetailComponent extends DetailView<IGroup> implements OnInit {
|
|
380
494
|
protected typename: string;
|
|
381
495
|
constructor();
|
|
@@ -384,57 +498,92 @@ declare class GroupDetailComponent extends DetailView<IGroup> implements OnInit
|
|
|
384
498
|
static ɵcmp: i0.ɵɵComponentDeclaration<GroupDetailComponent, "lib-group-detail", never, {}, {}, never, never, true, never>;
|
|
385
499
|
}
|
|
386
500
|
|
|
387
|
-
declare class GroupComponent
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
ngOnInit(): void;
|
|
501
|
+
declare class GroupComponent {
|
|
502
|
+
itemService: GroupService;
|
|
503
|
+
columns: TableColumn[];
|
|
391
504
|
static ɵfac: i0.ɵɵFactoryDeclaration<GroupComponent, never>;
|
|
392
505
|
static ɵcmp: i0.ɵɵComponentDeclaration<GroupComponent, "lib-group", never, {}, {}, never, never, true, never>;
|
|
393
506
|
}
|
|
394
507
|
|
|
395
|
-
declare class OrganizationComponent
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
ngOnInit(): void;
|
|
508
|
+
declare class OrganizationComponent {
|
|
509
|
+
itemService: OrganizationService;
|
|
510
|
+
columns: TableColumn[];
|
|
399
511
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationComponent, never>;
|
|
400
512
|
static ɵcmp: i0.ɵɵComponentDeclaration<OrganizationComponent, "lib-organization", never, {}, {}, never, never, true, never>;
|
|
401
513
|
}
|
|
402
514
|
|
|
403
515
|
declare class OrganizationDetailComponent extends DetailView<IOrganization> implements OnInit {
|
|
404
516
|
typename: string;
|
|
517
|
+
address: i0.WritableSignal<IAddress | null>;
|
|
518
|
+
private addressService;
|
|
405
519
|
constructor();
|
|
406
520
|
ngOnInit(): void;
|
|
521
|
+
onItemAndUserAvailable(item: IOrganization, _user: IPortalMember): void;
|
|
407
522
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationDetailComponent, never>;
|
|
408
523
|
static ɵcmp: i0.ɵɵComponentDeclaration<OrganizationDetailComponent, "lib-organization-detail", never, {}, {}, never, never, true, never>;
|
|
409
524
|
}
|
|
410
525
|
|
|
411
|
-
declare class
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
526
|
+
declare class AddressService extends ItemService<IAddress> {
|
|
527
|
+
readonly _url: string;
|
|
528
|
+
itemType: string;
|
|
529
|
+
instantiateType(item: IAddress): IAddress;
|
|
530
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressService, never>;
|
|
531
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AddressService>;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
declare class AddressForm {
|
|
416
535
|
private formBuilder;
|
|
417
536
|
form: _angular_forms.FormGroup<{
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
537
|
+
line1: _angular_forms.FormControl<string | null>;
|
|
538
|
+
line2: _angular_forms.FormControl<string | null>;
|
|
539
|
+
line3: _angular_forms.FormControl<string | null>;
|
|
540
|
+
city: _angular_forms.FormControl<string | null>;
|
|
541
|
+
region: _angular_forms.FormControl<string | null>;
|
|
542
|
+
postcode: _angular_forms.FormControl<string | null>;
|
|
423
543
|
country: _angular_forms.FormControl<string | null>;
|
|
424
544
|
}>;
|
|
545
|
+
setValue(item: IAddress): void;
|
|
546
|
+
updateItem(item: IAddress): IAddress;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
declare class OrganizationForm {
|
|
550
|
+
private formBuilder;
|
|
551
|
+
form: FormGroup;
|
|
552
|
+
address: AddressForm;
|
|
553
|
+
constructor();
|
|
554
|
+
updateFromItem(item: IOrganization): void;
|
|
555
|
+
updateItem(item: IOrganization): IOrganization;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
declare class OrganizationEditComponent extends EditView<IOrganization> implements OnInit {
|
|
559
|
+
readonly typename: string;
|
|
560
|
+
countryOptions: i0.WritableSignal<ICountry[]>;
|
|
561
|
+
candidateMembers: i0.WritableSignal<Selectable<IPortalMember>[]>;
|
|
562
|
+
selectedMembers: i0.WritableSignal<IPortalMember[]>;
|
|
563
|
+
columns: TableColumn[];
|
|
564
|
+
form: OrganizationForm;
|
|
565
|
+
address: IAddress;
|
|
566
|
+
addressService: AddressService;
|
|
425
567
|
constructor();
|
|
426
568
|
ngOnInit(): void;
|
|
427
569
|
onItemAndUserAvailable(_: IPortalMember): void;
|
|
570
|
+
protected updateCandidates(users: IPaginated<IPortalMember>): void;
|
|
428
571
|
submit(): void;
|
|
429
|
-
|
|
572
|
+
protected fetchAddress(url: string): void;
|
|
573
|
+
protected updateAddress(): void;
|
|
574
|
+
protected createAddress(): Observable<IAddress>;
|
|
575
|
+
protected onAddressUpdated(address: IAddress): void;
|
|
576
|
+
protected onAddressCreated(address: IAddress): void;
|
|
577
|
+
protected syncFromForm(): void;
|
|
430
578
|
protected getTemplateItem(): IOrganization;
|
|
431
579
|
protected onPostActions(actions: Record<string, OptionAction>): void;
|
|
432
580
|
protected onCountryChoices(choices: OptionActionChoice[]): void;
|
|
433
581
|
onMemberRemoved(id: number): void;
|
|
434
|
-
onMemberAdded(
|
|
582
|
+
onMemberAdded(title: string): void;
|
|
583
|
+
onSearchChanged(searchTerm: string | null): void;
|
|
435
584
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationEditComponent, never>;
|
|
436
585
|
static ɵcmp: i0.ɵɵComponentDeclaration<OrganizationEditComponent, "lib-organization-edit", never, {}, {}, never, never, true, never>;
|
|
437
586
|
}
|
|
438
587
|
|
|
439
|
-
export { ApiError, BackButtonComponent, DetailHeaderComponent, DetailView, ENDPOINT_URL, EditView, ErrorCode, FileRecord, FileUploadComponent, Group, GroupComponent, GroupDetailComponent, GroupService, LOGIN_USER, LandingComponent, LeftNavComponent, LeftNavService, ListView,
|
|
440
|
-
export type { IFileRecord, IFileUpload, IGroup,
|
|
588
|
+
export { ApiError, BackButtonComponent, DetailHeaderComponent, DetailView, ENDPOINT_URL, EditView, ErrorCode, FileRecord, FileUploadComponent, Group, GroupComponent, GroupDetailComponent, GroupService, ItemQuery, LOGIN_USER, LandingComponent, LeftNavComponent, LeftNavService, ListView, OrganizationComponent, OrganizationDetailComponent, OrganizationEditComponent, OrganizationService, Paginated, Permission, PortalMember, ResolvedPermission, RestService, SelectTableComponent, TopBarComponent, UserComponent, UserDetailComponent, UserEditComponent, UserService };
|
|
589
|
+
export type { IFileRecord, IFileUpload, IGroup, IItemQuery, IPaginated, IPermission, IPortalMember, IPreview, IRestOptions, Identifiable, LeftNavCategory, LeftNavOption, NavGroup, NavOption, OptionAction, OptionActionChoice, Selectable };
|
package/package.json
CHANGED