ichec-angular-core 0.3.0 → 0.3.2
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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormGroup, FormControl, FormArray, FormBuilder, AbstractControl } from '@angular/forms';
|
|
2
|
-
import {
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
3
|
import { HttpClient, HttpParams, HttpHeaders, HttpErrorResponse } from '@angular/common/http';
|
|
4
4
|
import * as _angular_core from '@angular/core';
|
|
5
5
|
import { InjectionToken, OnInit, TemplateRef, AfterViewInit } from '@angular/core';
|
|
@@ -318,13 +318,14 @@ interface IServerManifest {
|
|
|
318
318
|
}
|
|
319
319
|
declare const REST_SERVICE_CONFIG: InjectionToken<RestServiceConfig>;
|
|
320
320
|
declare class RestService<D extends Identifiable, L extends Identifiable = D, C = D, U extends Identifiable = D> {
|
|
321
|
-
manifest: IServerManifest
|
|
321
|
+
manifest: BehaviorSubject<IServerManifest | null>;
|
|
322
322
|
readonly _url: string;
|
|
323
323
|
config: RestServiceConfig;
|
|
324
324
|
protected _http: HttpClient;
|
|
325
325
|
protected cookieService: CookieService;
|
|
326
326
|
deleteItem(id: number): Observable<void>;
|
|
327
327
|
getForUser(user: IPortalMemberDetail, query?: IItemQuery): Observable<IPaginated<L>>;
|
|
328
|
+
protected _getServiceManifest(): Observable<IServerManifest>;
|
|
328
329
|
get(query?: IItemQuery): Observable<IPaginated<L>>;
|
|
329
330
|
getItem(id: number): Observable<D>;
|
|
330
331
|
getUrl(url: string): Observable<D>;
|
|
@@ -374,7 +375,6 @@ declare class UserService extends ItemService<IPortalMemberDetail, IPortalMember
|
|
|
374
375
|
getSelf(): Observable<IPortalMemberDetail | null>;
|
|
375
376
|
private _getSelf;
|
|
376
377
|
private _selfFetchFailed;
|
|
377
|
-
private _getServiceManifest;
|
|
378
378
|
private _do_login;
|
|
379
379
|
hasAddPermission(feature: string): boolean;
|
|
380
380
|
hasDeletePermission(feature: string): boolean;
|
|
@@ -424,20 +424,27 @@ declare class FormService {
|
|
|
424
424
|
interface NavOption {
|
|
425
425
|
name: string;
|
|
426
426
|
route: string;
|
|
427
|
+
icon: string;
|
|
427
428
|
}
|
|
428
|
-
interface
|
|
429
|
+
interface NavGrouping {
|
|
429
430
|
name: string;
|
|
430
431
|
options: NavOption[];
|
|
431
432
|
}
|
|
433
|
+
interface NavGroup {
|
|
434
|
+
name: string;
|
|
435
|
+
groupings: NavGrouping[];
|
|
436
|
+
}
|
|
432
437
|
declare class LeftNavService {
|
|
433
|
-
|
|
438
|
+
activeGroupings: _angular_core.WritableSignal<Set<NavGrouping>>;
|
|
439
|
+
wide: _angular_core.WritableSignal<boolean>;
|
|
440
|
+
private _defaultGroupings;
|
|
434
441
|
private _groups;
|
|
435
|
-
private _defaultOptions;
|
|
436
442
|
private _groupService;
|
|
437
443
|
constructor();
|
|
438
444
|
onGroupsUpdated(groups: IGroupList[]): void;
|
|
439
|
-
|
|
445
|
+
setDefaultGroupings(groupings: NavGrouping[]): void;
|
|
440
446
|
setGroups(groups: NavGroup[]): void;
|
|
447
|
+
toggle(): void;
|
|
441
448
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LeftNavService, never>;
|
|
442
449
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<LeftNavService>;
|
|
443
450
|
}
|
|
@@ -795,6 +802,7 @@ declare class ListViewComponent<D extends Identifiable, L extends Identifiable,
|
|
|
795
802
|
listItemTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
|
|
796
803
|
itemDetailTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
|
|
797
804
|
itemHeight: _angular_core.InputSignal<number>;
|
|
805
|
+
itemWidth: _angular_core.InputSignal<number>;
|
|
798
806
|
columns: _angular_core.InputSignal<TableColumn[]>;
|
|
799
807
|
sortFields: _angular_core.InputSignal<string[]>;
|
|
800
808
|
noSelfItemsMessage: _angular_core.InputSignal<string | undefined>;
|
|
@@ -811,6 +819,7 @@ declare class ListViewComponent<D extends Identifiable, L extends Identifiable,
|
|
|
811
819
|
sort: _angular_core.Signal<MatSort | undefined>;
|
|
812
820
|
columnNames: _angular_core.Signal<string[]>;
|
|
813
821
|
searchTerm: string;
|
|
822
|
+
get resolvedItemWidth(): string;
|
|
814
823
|
ngOnInit(): void;
|
|
815
824
|
ngAfterViewInit(): void;
|
|
816
825
|
showControls(): boolean;
|
|
@@ -825,7 +834,7 @@ declare class ListViewComponent<D extends Identifiable, L extends Identifiable,
|
|
|
825
834
|
onSelection(id: number): void;
|
|
826
835
|
protected isSelfList(): boolean;
|
|
827
836
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListViewComponent<any, any, any, any>, never>;
|
|
828
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListViewComponent<any, any, any, any>, "lib-list-view", never, { "viewType": { "alias": "viewType"; "required": false; "isSignal": true; }; "itemService": { "alias": "itemService"; "required": false; "isSignal": true; }; "listItemTemplate": { "alias": "listItemTemplate"; "required": false; "isSignal": true; }; "itemDetailTemplate": { "alias": "itemDetailTemplate"; "required": false; "isSignal": true; }; "itemHeight": { "alias": "itemHeight"; "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; }; }, { "selected": "selected"; }, never, never, true, never>;
|
|
837
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListViewComponent<any, any, any, any>, "lib-list-view", never, { "viewType": { "alias": "viewType"; "required": false; "isSignal": true; }; "itemService": { "alias": "itemService"; "required": false; "isSignal": true; }; "listItemTemplate": { "alias": "listItemTemplate"; "required": false; "isSignal": true; }; "itemDetailTemplate": { "alias": "itemDetailTemplate"; "required": false; "isSignal": true; }; "itemHeight": { "alias": "itemHeight"; "required": false; "isSignal": true; }; "itemWidth": { "alias": "itemWidth"; "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; }; }, { "selected": "selected"; }, never, never, true, never>;
|
|
829
838
|
}
|
|
830
839
|
|
|
831
840
|
declare class ListTableViewComponent implements AfterViewInit {
|
|
@@ -852,6 +861,7 @@ declare class TopBarComponent {
|
|
|
852
861
|
readonly user: _angular_core.WritableSignal<ichec_angular_core.IPortalMemberList | null>;
|
|
853
862
|
readonly loginRoute: _angular_core.InputSignal<string>;
|
|
854
863
|
private userService;
|
|
864
|
+
protected leftNavService: LeftNavService;
|
|
855
865
|
constructor();
|
|
856
866
|
onLogout(): void;
|
|
857
867
|
onLogin(): void;
|
|
@@ -863,9 +873,13 @@ declare class TopBarComponent {
|
|
|
863
873
|
|
|
864
874
|
declare class LeftNavComponent {
|
|
865
875
|
readonly background: _angular_core.InputSignal<string | undefined>;
|
|
866
|
-
|
|
876
|
+
user: _angular_core.WritableSignal<ichec_angular_core.IPortalMemberList | null>;
|
|
877
|
+
width: _angular_core.Signal<"200px" | "100px">;
|
|
878
|
+
protected userService: UserService;
|
|
879
|
+
protected leftNavService: LeftNavService;
|
|
867
880
|
sideNavContent: _angular_core.Signal<MatSidenavContent | undefined>;
|
|
868
|
-
|
|
881
|
+
constructor();
|
|
882
|
+
getGroupings(): _angular_core.WritableSignal<Set<ichec_angular_core.NavGrouping>>;
|
|
869
883
|
get backgroundStyle(): string;
|
|
870
884
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LeftNavComponent, never>;
|
|
871
885
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LeftNavComponent, "lib-left-nav", never, { "background": { "alias": "background"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -985,4 +999,4 @@ declare class OrganizationEditComponent extends EditView<IOrganizationDetail, IO
|
|
|
985
999
|
}
|
|
986
1000
|
|
|
987
1001
|
export { Address, AddressDetailComponent, AddressEditComponent, AddressForm, AddressService, ApiError, AvatarComponent, BackButtonComponent, DetailHeaderComponent, DetailView, DynamicFormBuilderComponent, DynamicFormComponent, DynamicFormForm, EditView, ErrorCode, FORM_FIELD_CHOICES, FeedbackComponent, FieldType, FileRecord, FileUploadComponent, FormFieldDetailComponent, FormFieldEditComponent, FormFieldValueForm, FormService, Group, GroupComponent, GroupDetailComponent, GroupService, ItemQuery, ItemService, ItemWithUserService, LeftNavComponent, LeftNavService, ListTableViewComponent, ListViewComponent, MemberSelectionManager, MockItemService, Organization, OrganizationComponent, OrganizationDetailComponent, OrganizationEditComponent, OrganizationService, Paginated, Permission, PopulatedFormComponent, PopulatedFormForm, PortalMember, REST_SERVICE_CONFIG, ResolvedPermission, RestService, SearchBarComponent, SelectTableComponent, SelectionManager, TopBarComponent, UserComponent, UserDetailComponent, UserEditComponent, UserService, getFieldTypeFromKey, getFileFieldIds };
|
|
988
|
-
export type { IAddressBase, IAddressCreate, IAddressDetail, IAddressForm, IAddressList, ICountry, IDynamicFormForm, IFieldFile, IFileField, IFileRecord, IForm, IFormCreate, IFormDetail, IFormFieldBase, IFormFieldCreate, IFormFieldDetail, IFormFieldValueBase, IFormFieldValueCreate, IFormFieldValueDetail, IFormFieldValueForm, IFormFieldValueUpdate, IFormGroupBase, IFormGroupCreate, IFormGroupDetail, IFormGroupUpdate, IFormUpdate, IGroupBase, IGroupCreate, IGroupDetail, IGroupList, IItemQuery, IMemberIdentifierBase, IMemberIdentifierCreate, IMemberIdentifierDetail, IOrganizationBase, IOrganizationCreate, IOrganizationDetail, IOrganizationList, IPaginated, IPermission, IPopulatedFormCreate, IPopulatedFormDetail, IPopulatedFormForm, IPopulatedFormUpdate, IPortalMemberBase, IPortalMemberCreate, IPortalMemberDetail, IPortalMemberList, IRestOptions, IServerManifest, Identifiable, LeftNavCategory, LeftNavOption, NavGroup, NavOption, OptionAction, OptionActionChoice, RestServiceConfig, Selectable, TableColumn, TypeChoice };
|
|
1002
|
+
export type { IAddressBase, IAddressCreate, IAddressDetail, IAddressForm, IAddressList, ICountry, IDynamicFormForm, IFieldFile, IFileField, IFileRecord, IForm, IFormCreate, IFormDetail, IFormFieldBase, IFormFieldCreate, IFormFieldDetail, IFormFieldValueBase, IFormFieldValueCreate, IFormFieldValueDetail, IFormFieldValueForm, IFormFieldValueUpdate, IFormGroupBase, IFormGroupCreate, IFormGroupDetail, IFormGroupUpdate, IFormUpdate, IGroupBase, IGroupCreate, IGroupDetail, IGroupList, IItemQuery, IMemberIdentifierBase, IMemberIdentifierCreate, IMemberIdentifierDetail, IOrganizationBase, IOrganizationCreate, IOrganizationDetail, IOrganizationList, IPaginated, IPermission, IPopulatedFormCreate, IPopulatedFormDetail, IPopulatedFormForm, IPopulatedFormUpdate, IPortalMemberBase, IPortalMemberCreate, IPortalMemberDetail, IPortalMemberList, IRestOptions, IServerManifest, Identifiable, LeftNavCategory, LeftNavOption, NavGroup, NavGrouping, NavOption, OptionAction, OptionActionChoice, RestServiceConfig, Selectable, TableColumn, TypeChoice };
|