ichec-angular-core 0.2.0 → 0.2.1
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 +100 -31
- package/fesm2022/ichec-angular-core.mjs.map +1 -1
- package/index.d.ts +15 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -278,10 +278,15 @@ interface LeftNavCategory {
|
|
|
278
278
|
options: LeftNavOption[];
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
|
|
281
|
+
interface RestServiceConfig {
|
|
282
|
+
endpoint_url: string;
|
|
283
|
+
auth_type: string;
|
|
284
|
+
allow_cross_origin: boolean;
|
|
285
|
+
}
|
|
286
|
+
declare const REST_SERVICE_CONFIG: InjectionToken<RestServiceConfig>;
|
|
282
287
|
declare class RestService<D extends Identifiable, L extends Identifiable = D, C = D, U extends Identifiable = D> {
|
|
283
288
|
readonly _url: string;
|
|
284
|
-
protected
|
|
289
|
+
protected config: RestServiceConfig;
|
|
285
290
|
protected _http: HttpClient;
|
|
286
291
|
deleteItem(id: number): Observable<void>;
|
|
287
292
|
getForUser(user: IPortalMemberDetail, query?: IItemQuery): Observable<IPaginated<L>>;
|
|
@@ -298,7 +303,7 @@ declare class RestService<D extends Identifiable, L extends Identifiable = D, C
|
|
|
298
303
|
patchItem(item: U, include_keys: string[], exclude_keys: string[]): Observable<D>;
|
|
299
304
|
postItem(item: C): Observable<D>;
|
|
300
305
|
private getHeaders;
|
|
301
|
-
|
|
306
|
+
protected getBaseUrl(): string;
|
|
302
307
|
private getMediaUrl;
|
|
303
308
|
handleError(error: HttpErrorResponse): Observable<never>;
|
|
304
309
|
}
|
|
@@ -324,15 +329,20 @@ declare class UserService extends ItemService<IPortalMemberDetail, IPortalMember
|
|
|
324
329
|
Service to handle IPortalMember via REST and also handle logins.
|
|
325
330
|
*/
|
|
326
331
|
loggedInUser: BehaviorSubject<IPortalMemberList | null>;
|
|
332
|
+
private document;
|
|
327
333
|
readonly _url: string;
|
|
328
334
|
typename: string;
|
|
329
335
|
private permissions;
|
|
336
|
+
get authType(): string;
|
|
337
|
+
sessionLogin(): Observable<void>;
|
|
338
|
+
onSessionLoginError(error: HttpErrorResponse): Observable<void>;
|
|
330
339
|
login(username: string, password: string): Observable<void>;
|
|
331
340
|
hasAddPermission(feature: string): boolean;
|
|
332
341
|
hasDeletePermission(feature: string): boolean;
|
|
333
342
|
hasEditPermission(feature: string): boolean;
|
|
334
343
|
hasViewPermission(feature: string): boolean;
|
|
335
344
|
logout(): void;
|
|
345
|
+
private onLoginCookie;
|
|
336
346
|
private onLoginToken;
|
|
337
347
|
private onLoggedIn;
|
|
338
348
|
private parsePermission;
|
|
@@ -955,5 +965,5 @@ declare class OrganizationEditComponent extends EditView<IOrganizationDetail, IO
|
|
|
955
965
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OrganizationEditComponent, "lib-organization-edit", never, {}, {}, never, never, true, never>;
|
|
956
966
|
}
|
|
957
967
|
|
|
958
|
-
export { Address, AddressDetailComponent, AddressEditComponent, AddressForm, AddressService, ApiError, AvatarComponent, BackButtonComponent, DetailHeaderComponent, DetailView, DynamicFormBuilderComponent, DynamicFormComponent, DynamicFormForm,
|
|
959
|
-
export type { IAddressBase, IAddressCreate, IAddressDetail, IAddressForm, IAddressList, ICountry, IDynamicFormForm, IFieldFile, 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, Identifiable, LeftNavCategory, LeftNavOption, NavGroup, NavOption, OptionAction, OptionActionChoice, Selectable, TableColumn, TypeChoice };
|
|
968
|
+
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, LOGIN_USER, LandingComponent, 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 };
|
|
969
|
+
export type { IAddressBase, IAddressCreate, IAddressDetail, IAddressForm, IAddressList, ICountry, IDynamicFormForm, IFieldFile, 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, Identifiable, LeftNavCategory, LeftNavOption, NavGroup, NavOption, OptionAction, OptionActionChoice, RestServiceConfig, Selectable, TableColumn, TypeChoice };
|