ichec-angular-core 0.0.4 → 0.0.5

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.
@@ -6,12 +6,12 @@ import { RestService } from '../../../services/rest.service';
6
6
  import { UserService } from '../../../services/user.service';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare abstract class DetailViewComponent<T extends Identifiable> implements OnInit {
9
+ item?: T;
9
10
  protected _route: ActivatedRoute;
10
- private _location;
11
+ protected _location: Location;
11
12
  protected _userService: UserService;
12
13
  protected _restService: RestService<T>;
13
- item?: T;
14
- constructor(_route: ActivatedRoute, _location: Location, _userService: UserService, _restService: RestService<T>);
14
+ constructor();
15
15
  ngOnInit(): void;
16
16
  onItemAvailable(): void;
17
17
  onItemAndUserAvailable(_: IPortalMember): void;
@@ -19,5 +19,5 @@ export declare abstract class DetailViewComponent<T extends Identifiable> implem
19
19
  private getItem;
20
20
  update(): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<DetailViewComponent<any>, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<DetailViewComponent<any>, "app-detail-view", never, {}, {}, never, never, true, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailViewComponent<any>, "lib-detail-view", never, {}, {}, never, never, true, never>;
23
23
  }
@@ -6,13 +6,13 @@ import { RestService } from '../../../services/rest.service';
6
6
  import { UserService } from '../../../services/user.service';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare abstract class EditViewComponent<T extends Identifiable> implements OnInit {
9
+ item?: T;
10
+ createMode: boolean;
9
11
  protected _route: ActivatedRoute;
10
- private _location;
12
+ protected _location: Location;
11
13
  protected _userService: UserService;
12
14
  protected _restService: RestService<T>;
13
- item?: T;
14
- createMode: boolean;
15
- constructor(_route: ActivatedRoute, _location: Location, _userService: UserService, _restService: RestService<T>);
15
+ constructor();
16
16
  ngOnInit(): void;
17
17
  onItemAvailable(): void;
18
18
  onItemAndUserAvailable(_: IPortalMember): void;
@@ -26,5 +26,5 @@ export declare abstract class EditViewComponent<T extends Identifiable> implemen
26
26
  private getItem;
27
27
  protected onItemUpdated(item: T): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<EditViewComponent<any>, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<EditViewComponent<any>, "app-edit-view", never, {}, {}, never, never, true, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditViewComponent<any>, "lib-edit-view", never, {}, {}, never, never, true, never>;
30
30
  }
@@ -6,19 +6,19 @@ import { UserService } from '../../../services/user.service';
6
6
  import { RestService } from '../../../services/rest.service';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class ListViewComponent<T extends Identifiable> implements OnInit {
9
- private _route;
10
- private _location;
11
- private _userService;
12
- protected _restService: RestService<T>;
13
9
  user?: IPortalMember;
14
10
  items: T[];
15
11
  displayedColumns: string[];
16
- constructor(_route: ActivatedRoute, _location: Location, _userService: UserService, _restService: RestService<T>);
12
+ protected _route: ActivatedRoute;
13
+ protected _location: Location;
14
+ protected _userService: UserService;
15
+ protected _restService: RestService<T>;
16
+ constructor();
17
17
  ngOnInit(): void;
18
18
  getItems(): void;
19
19
  private onUserChange;
20
20
  protected isSelfList(): boolean;
21
21
  goBack(): void;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<ListViewComponent<any>, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<ListViewComponent<any>, "app-table-view", never, {}, {}, never, never, true, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListViewComponent<any>, "lib-table-view", never, {}, {}, never, never, true, never>;
24
24
  }
@@ -1,19 +1,18 @@
1
- import { OnInit } from '@angular/core';
2
- import { Router } from '@angular/router';
1
+ import { OnInit, InjectionToken } from '@angular/core';
3
2
  import { HttpErrorResponse } from '@angular/common/http';
4
- import { UserService } from '../../services/user.service';
5
3
  import { LoginUser } from './login-user';
6
4
  import * as i0 from "@angular/core";
5
+ export declare const LOGIN_USER: InjectionToken<LoginUser>;
7
6
  export declare class LandingComponent implements OnInit {
8
- private userService;
9
- private router;
10
7
  loginUser: LoginUser;
11
8
  loginError: string;
12
- constructor(userService: UserService, router: Router);
9
+ private userService;
10
+ private router;
11
+ constructor();
13
12
  ngOnInit(): void;
14
13
  login(): import("rxjs").Subscription;
15
14
  onLoginError(error: HttpErrorResponse): void;
16
15
  onLoggedIn(): void;
17
16
  static ɵfac: i0.ɵɵFactoryDeclaration<LandingComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<LandingComponent, "app-landing", never, {}, {}, never, never, true, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<LandingComponent, "lib-landing", never, {}, {}, never, never, true, never>;
19
18
  }
@@ -1,9 +1,8 @@
1
- import { LeftNavService } from '../../services/left-nav.service';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class LeftNavComponent {
4
3
  private leftNavService;
5
- constructor(leftNavService: LeftNavService);
4
+ constructor();
6
5
  getOptions(): import("ichec-angular-core").NavOption[];
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<LeftNavComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<LeftNavComponent, "app-left-nav", never, {}, {}, never, never, true, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<LeftNavComponent, "lib-left-nav", never, {}, {}, never, never, true, never>;
9
8
  }
@@ -1,16 +1,14 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { UserService } from '../../services/user.service';
3
- import { LeftNavService } from '../../services/left-nav.service';
4
2
  import { IPortalMember } from '../../models/core';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class TopBarComponent implements OnInit {
7
- private userService;
8
- private leftNavService;
9
5
  user?: IPortalMember | null;
10
6
  title: string;
11
- constructor(userService: UserService, leftNavService: LeftNavService);
7
+ private userService;
8
+ private leftNavService;
9
+ constructor();
12
10
  ngOnInit(): void;
13
11
  onLogout(): void;
14
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TopBarComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<TopBarComponent, "app-top-bar", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<TopBarComponent, "lib-top-bar", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
16
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ichec-angular-core",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0"
package/public-api.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { Provider } from '@angular/core';
2
1
  export * from './lib/models/core';
3
2
  export * from './lib/models/left-nav-options';
4
3
  export * from './lib/services/rest.service';
@@ -19,5 +18,3 @@ export * from './lib/views/api/group/detail/group-detail.component';
19
18
  export * from './lib/views/api/group/list/group.component';
20
19
  export * from './lib/views/api/organization/list/organization.component';
21
20
  export * from './lib/views/api/organization/detail/organization-detail.component';
22
- export declare function provideUserService(endpoint_url: string): Provider;
23
- export declare function provideGroupService(endpoint_url: string): Provider;