ichec-angular-core 0.1.6 → 0.1.7
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 +174 -63
- package/fesm2022/ichec-angular-core.mjs.map +1 -1
- package/index.d.ts +50 -24
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ import * as _angular_core from '@angular/core';
|
|
|
6
6
|
import { InjectionToken, OnInit, WritableSignal, AfterViewInit, TemplateRef } from '@angular/core';
|
|
7
7
|
import * as ichec_angular_core from 'ichec-angular-core';
|
|
8
8
|
import { MatSidenavContent } from '@angular/material/sidenav';
|
|
9
|
-
import { ActivatedRoute } from '@angular/router';
|
|
10
9
|
import { Location } from '@angular/common';
|
|
10
|
+
import { ActivatedRoute } from '@angular/router';
|
|
11
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
11
12
|
import { MatTable } from '@angular/material/table';
|
|
12
13
|
import { MatSort } from '@angular/material/sort';
|
|
13
14
|
import { MatPaginator } from '@angular/material/paginator';
|
|
@@ -44,6 +45,14 @@ interface IForm<C, D, U = D> {
|
|
|
44
45
|
updateItem(item: D): U;
|
|
45
46
|
}
|
|
46
47
|
|
|
48
|
+
interface IMemberIdentifierBase {
|
|
49
|
+
id_type: string;
|
|
50
|
+
value: string;
|
|
51
|
+
}
|
|
52
|
+
type IMemberIdentifierCreate = IMemberIdentifierBase;
|
|
53
|
+
interface IMemberIdentifierDetail extends IMemberIdentifierBase {
|
|
54
|
+
id: number;
|
|
55
|
+
}
|
|
47
56
|
interface IPortalMemberBase {
|
|
48
57
|
username: string;
|
|
49
58
|
email: string;
|
|
@@ -51,12 +60,15 @@ interface IPortalMemberBase {
|
|
|
51
60
|
last_name: string;
|
|
52
61
|
phone: string;
|
|
53
62
|
}
|
|
54
|
-
|
|
63
|
+
interface IPortalMemberCreate extends IPortalMemberBase {
|
|
64
|
+
identifiers: IMemberIdentifierCreate[];
|
|
65
|
+
}
|
|
55
66
|
interface IPortalMemberList extends IPortalMemberBase, Identifiable {
|
|
56
67
|
organization: string;
|
|
57
|
-
profile: string;
|
|
58
|
-
profile_thumbnail: string;
|
|
68
|
+
profile: string | null;
|
|
69
|
+
profile_thumbnail: string | null;
|
|
59
70
|
permissions: string[];
|
|
71
|
+
identifiers: IMemberIdentifierDetail[];
|
|
60
72
|
}
|
|
61
73
|
type IPortalMemberDetail = IPortalMemberList;
|
|
62
74
|
declare class PortalMember {
|
|
@@ -180,7 +192,8 @@ declare enum FieldType {
|
|
|
180
192
|
RichText = 3,
|
|
181
193
|
Selection = 4,
|
|
182
194
|
Integer = 5,
|
|
183
|
-
File = 6
|
|
195
|
+
File = 6,
|
|
196
|
+
Undefined = 7
|
|
184
197
|
}
|
|
185
198
|
declare const FORM_FIELD_CHOICES: TypeChoice[];
|
|
186
199
|
declare function getFieldTypeFromKey(key: string): FieldType;
|
|
@@ -358,11 +371,18 @@ declare class OrganizationService extends ItemWithUserService<IOrganizationDetai
|
|
|
358
371
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<OrganizationService>;
|
|
359
372
|
}
|
|
360
373
|
|
|
374
|
+
interface IFieldFile {
|
|
375
|
+
id: number;
|
|
376
|
+
asset: IFileRecord;
|
|
377
|
+
}
|
|
361
378
|
declare class FormService {
|
|
379
|
+
static getBaseTemplate(): IFileRecord;
|
|
362
380
|
toFormGroup(form: IFormDetail): FormGroup<any>;
|
|
363
|
-
createFieldValue(key: string, control: FormControl): IFormFieldValueCreate;
|
|
364
|
-
createItem(form: FormGroup): IPopulatedFormCreate;
|
|
381
|
+
createFieldValue(key: string, control: FormControl, input: IFormDetail): IFormFieldValueCreate;
|
|
382
|
+
createItem(form: FormGroup, input: IFormDetail): IPopulatedFormCreate;
|
|
383
|
+
getFiles(form: FormGroup, input: IFormDetail): IFieldFile[];
|
|
365
384
|
updateFieldValue(control: FormControl, item: IFormFieldValueDetail): IFormFieldValueDetail;
|
|
385
|
+
getType(key: string, input: IFormDetail): string;
|
|
366
386
|
getValue(key: string, form: IPopulatedFormDetail): IFormFieldValueDetail | null;
|
|
367
387
|
updateItem(form: FormGroup, item: IPopulatedFormDetail): IPopulatedFormDetail;
|
|
368
388
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormService, never>;
|
|
@@ -454,13 +474,17 @@ declare abstract class DetailView<D extends Identifiable, L extends Identifiable
|
|
|
454
474
|
protected route: ActivatedRoute;
|
|
455
475
|
protected userService: UserService;
|
|
456
476
|
protected itemService: ItemService<D, L, C>;
|
|
477
|
+
protected location: Location;
|
|
478
|
+
readonly deleteDialog: MatDialog;
|
|
457
479
|
constructor(itemService: ItemService<D, L, C>);
|
|
458
480
|
onInit(): void;
|
|
459
481
|
title(): string;
|
|
460
482
|
onItemAvailable(item: D): void;
|
|
461
483
|
onItemAndUserAvailable(_item: D, _user: IPortalMemberDetail): void;
|
|
462
484
|
private getItem;
|
|
485
|
+
onDeleteClicked(): void;
|
|
463
486
|
onDelete(): void;
|
|
487
|
+
goBack(): void;
|
|
464
488
|
protected canEdit(): boolean;
|
|
465
489
|
protected canDelete(): boolean;
|
|
466
490
|
}
|
|
@@ -522,17 +546,31 @@ declare abstract class EditView<D extends Identifiable, L extends Identifiable,
|
|
|
522
546
|
|
|
523
547
|
declare class FormFieldDetailComponent {
|
|
524
548
|
readonly field: _angular_core.InputSignal<IFormFieldDetail>;
|
|
525
|
-
|
|
549
|
+
form: _angular_core.InputSignal<FormGroup<any>>;
|
|
526
550
|
get isValid(): boolean;
|
|
527
551
|
get key(): string;
|
|
552
|
+
get control(): FormControl<IFileRecord>;
|
|
528
553
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldDetailComponent, never>;
|
|
529
554
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldDetailComponent, "lib-form-field-detail", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
530
555
|
}
|
|
531
556
|
|
|
557
|
+
interface IFormFieldForm {
|
|
558
|
+
label: FormControl<string | null>;
|
|
559
|
+
key: FormControl<string | null>;
|
|
560
|
+
required: FormControl<boolean | null>;
|
|
561
|
+
description: FormControl<string | null>;
|
|
562
|
+
template: FormControl<IFileRecord | null>;
|
|
563
|
+
options: FormControl<string | null>;
|
|
564
|
+
default: FormControl<string | null>;
|
|
565
|
+
field_type: FormControl<string | null>;
|
|
566
|
+
order: FormControl<number | null>;
|
|
567
|
+
id: FormControl<number | null>;
|
|
568
|
+
}
|
|
569
|
+
|
|
532
570
|
declare class FormFieldEditComponent {
|
|
533
571
|
availableTypes: ichec_angular_core.TypeChoice[];
|
|
534
572
|
readonly FieldType: typeof FieldType;
|
|
535
|
-
form: _angular_core.InputSignal<FormGroup<
|
|
573
|
+
form: _angular_core.InputSignal<FormGroup<IFormFieldForm>>;
|
|
536
574
|
editMode: _angular_core.InputSignal<boolean>;
|
|
537
575
|
submitted: _angular_core.OutputEmitterRef<void>;
|
|
538
576
|
cancelled: _angular_core.OutputEmitterRef<void>;
|
|
@@ -554,19 +592,6 @@ declare class DynamicFormComponent {
|
|
|
554
592
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFormComponent, "lib-dynamic-form", never, { "inputForm": { "alias": "inputForm"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
555
593
|
}
|
|
556
594
|
|
|
557
|
-
interface IFormFieldForm {
|
|
558
|
-
label: FormControl<string | null>;
|
|
559
|
-
key: FormControl<string | null>;
|
|
560
|
-
required: FormControl<boolean | null>;
|
|
561
|
-
description: FormControl<string | null>;
|
|
562
|
-
template: FormControl<IFileRecord | null>;
|
|
563
|
-
options: FormControl<string | null>;
|
|
564
|
-
default: FormControl<string | null>;
|
|
565
|
-
field_type: FormControl<string | null>;
|
|
566
|
-
order: FormControl<number | null>;
|
|
567
|
-
id: FormControl<number | null>;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
595
|
interface IFormGroupForm {
|
|
571
596
|
label: FormControl<string | null>;
|
|
572
597
|
description: FormControl<string | null>;
|
|
@@ -740,6 +765,7 @@ declare class ListViewComponent<D extends Identifiable, L extends Identifiable,
|
|
|
740
765
|
noItemsCanCreateMessage: _angular_core.InputSignal<string | undefined>;
|
|
741
766
|
noItemsMessage: _angular_core.InputSignal<string | undefined>;
|
|
742
767
|
defaultQueries: _angular_core.InputSignal<IQuery[]>;
|
|
768
|
+
embeddedMode: _angular_core.InputSignal<boolean>;
|
|
743
769
|
selectedViewType: _angular_core.WritableSignal<string>;
|
|
744
770
|
pageSize: number;
|
|
745
771
|
pageSizeOptions: number[];
|
|
@@ -760,7 +786,7 @@ declare class ListViewComponent<D extends Identifiable, L extends Identifiable,
|
|
|
760
786
|
viewChanged(event: MatButtonToggleChange): void;
|
|
761
787
|
protected isSelfList(): boolean;
|
|
762
788
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListViewComponent<any, any, any>, never>;
|
|
763
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListViewComponent<any, any, any>, "lib-list-view", never, { "viewType": { "alias": "viewType"; "required": false; "isSignal": true; }; "itemService": { "alias": "itemService"; "required": false; "isSignal": true; }; "itemDetailTemplate": { "alias": "itemDetailTemplate"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "sortFields": { "alias": "sortFields"; "required": false; "isSignal": true; }; "noSelfItemsMessage": { "alias": "noSelfItemsMessage"; "required": false; "isSignal": true; }; "noItemsCanCreateMessage": { "alias": "noItemsCanCreateMessage"; "required": false; "isSignal": true; }; "noItemsMessage": { "alias": "noItemsMessage"; "required": false; "isSignal": true; }; "defaultQueries": { "alias": "defaultQueries"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
789
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListViewComponent<any, any, any>, "lib-list-view", never, { "viewType": { "alias": "viewType"; "required": false; "isSignal": true; }; "itemService": { "alias": "itemService"; "required": false; "isSignal": true; }; "itemDetailTemplate": { "alias": "itemDetailTemplate"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "sortFields": { "alias": "sortFields"; "required": false; "isSignal": true; }; "noSelfItemsMessage": { "alias": "noSelfItemsMessage"; "required": false; "isSignal": true; }; "noItemsCanCreateMessage": { "alias": "noItemsCanCreateMessage"; "required": false; "isSignal": true; }; "noItemsMessage": { "alias": "noItemsMessage"; "required": false; "isSignal": true; }; "defaultQueries": { "alias": "defaultQueries"; "required": false; "isSignal": true; }; "embeddedMode": { "alias": "embeddedMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
764
790
|
}
|
|
765
791
|
|
|
766
792
|
declare class BackButtonComponent {
|
|
@@ -903,4 +929,4 @@ declare class OrganizationEditComponent extends EditView<IOrganizationDetail, IO
|
|
|
903
929
|
}
|
|
904
930
|
|
|
905
931
|
export { Address, AddressDetailComponent, AddressEditComponent, AddressForm, AddressService, ApiError, AvatarComponent, BackButtonComponent, DetailHeaderComponent, DetailView, DynamicFormBuilderComponent, DynamicFormComponent, DynamicFormForm, ENDPOINT_URL, EditView, ErrorCode, FORM_FIELD_CHOICES, FeedbackComponent, FieldType, FileRecord, FileUploadComponent, FormFieldDetailComponent, FormFieldEditComponent, FormFieldValueForm, FormService, Group, GroupComponent, GroupDetailComponent, GroupService, ItemQuery, ItemService, ItemWithUserService, LOGIN_USER, LandingComponent, LeftNavComponent, LeftNavService, ListTableViewComponent, ListViewComponent, MockItemService, Organization, OrganizationComponent, OrganizationDetailComponent, OrganizationEditComponent, OrganizationService, Paginated, Permission, PopulatedFormForm, PortalMember, ResolvedPermission, RestService, SearchBarComponent, SelectTableComponent, SelectionManager, TopBarComponent, UserComponent, UserDetailComponent, UserEditComponent, UserService, getFieldTypeFromKey };
|
|
906
|
-
export type { IAddressBase, IAddressCreate, IAddressDetail, IAddressForm, IAddressList, ICountry, IDynamicFormForm, IFileRecord, IForm, IFormCreate, IFormDetail, IFormFieldBase, IFormFieldCreate, IFormFieldDetail, IFormFieldValueBase, IFormFieldValueCreate, IFormFieldValueDetail, IFormFieldValueForm, IFormGroupBase, IFormGroupCreate, IFormGroupDetail, IFormGroupUpdate, IFormUpdate, IGroupBase, IGroupCreate, IGroupDetail, IGroupList, IItemQuery, IOrganizationBase, IOrganizationCreate, IOrganizationDetail, IOrganizationList, IPaginated, IPermission, IPopulatedFormCreate, IPopulatedFormDetail, IPopulatedFormForm, IPortalMemberBase, IPortalMemberCreate, IPortalMemberDetail, IPortalMemberList, IRestOptions, Identifiable, LeftNavCategory, LeftNavOption, NavGroup, NavOption, OptionAction, OptionActionChoice, Selectable, TableColumn, TypeChoice };
|
|
932
|
+
export type { IAddressBase, IAddressCreate, IAddressDetail, IAddressForm, IAddressList, ICountry, IDynamicFormForm, IFieldFile, IFileRecord, IForm, IFormCreate, IFormDetail, IFormFieldBase, IFormFieldCreate, IFormFieldDetail, IFormFieldValueBase, IFormFieldValueCreate, IFormFieldValueDetail, IFormFieldValueForm, IFormGroupBase, IFormGroupCreate, IFormGroupDetail, IFormGroupUpdate, IFormUpdate, IGroupBase, IGroupCreate, IGroupDetail, IGroupList, IItemQuery, IMemberIdentifierBase, IMemberIdentifierCreate, IMemberIdentifierDetail, IOrganizationBase, IOrganizationCreate, IOrganizationDetail, IOrganizationList, IPaginated, IPermission, IPopulatedFormCreate, IPopulatedFormDetail, IPopulatedFormForm, IPortalMemberBase, IPortalMemberCreate, IPortalMemberDetail, IPortalMemberList, IRestOptions, Identifiable, LeftNavCategory, LeftNavOption, NavGroup, NavOption, OptionAction, OptionActionChoice, Selectable, TableColumn, TypeChoice };
|