ichec-angular-core 0.3.1 → 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
|
}
|
|
@@ -854,6 +861,7 @@ declare class TopBarComponent {
|
|
|
854
861
|
readonly user: _angular_core.WritableSignal<ichec_angular_core.IPortalMemberList | null>;
|
|
855
862
|
readonly loginRoute: _angular_core.InputSignal<string>;
|
|
856
863
|
private userService;
|
|
864
|
+
protected leftNavService: LeftNavService;
|
|
857
865
|
constructor();
|
|
858
866
|
onLogout(): void;
|
|
859
867
|
onLogin(): void;
|
|
@@ -866,11 +874,12 @@ declare class TopBarComponent {
|
|
|
866
874
|
declare class LeftNavComponent {
|
|
867
875
|
readonly background: _angular_core.InputSignal<string | undefined>;
|
|
868
876
|
user: _angular_core.WritableSignal<ichec_angular_core.IPortalMemberList | null>;
|
|
877
|
+
width: _angular_core.Signal<"200px" | "100px">;
|
|
869
878
|
protected userService: UserService;
|
|
870
879
|
protected leftNavService: LeftNavService;
|
|
871
880
|
sideNavContent: _angular_core.Signal<MatSidenavContent | undefined>;
|
|
872
881
|
constructor();
|
|
873
|
-
|
|
882
|
+
getGroupings(): _angular_core.WritableSignal<Set<ichec_angular_core.NavGrouping>>;
|
|
874
883
|
get backgroundStyle(): string;
|
|
875
884
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LeftNavComponent, never>;
|
|
876
885
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LeftNavComponent, "lib-left-nav", never, { "background": { "alias": "background"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -990,4 +999,4 @@ declare class OrganizationEditComponent extends EditView<IOrganizationDetail, IO
|
|
|
990
999
|
}
|
|
991
1000
|
|
|
992
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 };
|
|
993
|
-
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 };
|