@wertzui/ngx-restworld-client 3.3.0 → 3.4.0
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/esm2020/lib/restworld-client.module.mjs +2 -2
- package/esm2020/lib/services/restworld-client.mjs +33 -5
- package/esm2020/lib/services/settings.service.mjs +11 -4
- package/esm2020/lib/views/restworld-list-view/restworld-list-view.component.mjs +2 -12
- package/fesm2015/wertzui-ngx-restworld-client.mjs +50 -22
- package/fesm2015/wertzui-ngx-restworld-client.mjs.map +1 -1
- package/fesm2020/wertzui-ngx-restworld-client.mjs +45 -20
- package/fesm2020/wertzui-ngx-restworld-client.mjs.map +1 -1
- package/lib/services/restworld-client.d.ts +2 -0
- package/lib/services/settings.service.d.ts +4 -2
- package/lib/views/restworld-list-view/restworld-list-view.component.d.ts +1 -5
- package/package.json +1 -1
|
@@ -14,6 +14,8 @@ export declare class RESTworldClient {
|
|
|
14
14
|
private setDefaultCurie;
|
|
15
15
|
getList(rel: string, parameters: {}, headers?: HttpHeaders, curie?: string): Promise<HttpResponse<PagedListResource | ProblemDetails>>;
|
|
16
16
|
getListByUri(uri: string, parameters: {}, headers?: HttpHeaders): Promise<HttpResponse<PagedListResource | ProblemDetails>>;
|
|
17
|
+
getAllPagesFromList(rel: string, parameters: {}, headers?: HttpHeaders, curie?: string): Promise<HttpResponse<PagedListResource | ProblemDetails>>;
|
|
18
|
+
getAllPagesFromListByUri(uri: string, parameters: {}, headers?: HttpHeaders): Promise<HttpResponse<PagedListResource | ProblemDetails>>;
|
|
17
19
|
getSingle(relOrUri: string, id?: number, headers?: HttpHeaders, curie?: string): Promise<HttpResponse<Resource | ProblemDetails>>;
|
|
18
20
|
save(resource: Resource): Promise<HttpResponse<Resource | ProblemDetails>>;
|
|
19
21
|
getAllForms(resource: Resource): Promise<HttpResponse<FormsResource | ProblemDetails>[]>;
|
|
@@ -7,9 +7,11 @@ export declare class SettingsService {
|
|
|
7
7
|
private readonly _client;
|
|
8
8
|
private _settings;
|
|
9
9
|
get settings(): ClientSettings | undefined;
|
|
10
|
+
private initializing;
|
|
11
|
+
private initialized;
|
|
10
12
|
constructor(backend: HttpBackend, _clients: RESTworldClientCollection);
|
|
11
|
-
|
|
12
|
-
private
|
|
13
|
+
ensureInitialized(): Promise<void>;
|
|
14
|
+
private loadSettings;
|
|
13
15
|
private populateRESTworldClientCollectionFromSettings;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsService, never>;
|
|
15
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<SettingsService>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AfterViewInit, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
1
|
import { PagedListResource, Resource } from '@wertzui/ngx-hal-client';
|
|
3
2
|
import * as _ from 'lodash';
|
|
4
3
|
import { ConfirmationService, LazyLoadEvent, MenuItem, MessageService } from 'primeng/api';
|
|
@@ -19,7 +18,7 @@ export interface Column {
|
|
|
19
18
|
field: string;
|
|
20
19
|
type: ColumnType;
|
|
21
20
|
}
|
|
22
|
-
export declare class RESTworldListViewComponent
|
|
21
|
+
export declare class RESTworldListViewComponent {
|
|
23
22
|
private _clients;
|
|
24
23
|
private _confirmationService;
|
|
25
24
|
private _messageService;
|
|
@@ -56,9 +55,6 @@ export declare class RESTworldListViewComponent implements AfterViewInit, OnInit
|
|
|
56
55
|
private static _dateFormat;
|
|
57
56
|
get dateFormat(): string;
|
|
58
57
|
constructor(_clients: RESTworldClientCollection, _confirmationService: ConfirmationService, _messageService: MessageService, avatarGenerator: AvatarGenerator, _router: Router);
|
|
59
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
60
|
-
ngOnInit(): void;
|
|
61
|
-
ngAfterViewInit(): Promise<void>;
|
|
62
58
|
createNew(): Promise<boolean>;
|
|
63
59
|
private getClient;
|
|
64
60
|
load: _.DebouncedFunc<(event: LazyLoadEvent) => Promise<void>>;
|
package/package.json
CHANGED