@wertzui/ngx-restworld-client 3.0.0 → 3.2.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.
@@ -1,4 +1,7 @@
1
1
  import { ApiUrl } from "./api-url";
2
2
  export interface ClientSettings {
3
- apiUrls?: ApiUrl[];
3
+ apiUrls: ApiUrl[];
4
+ extensions: {
5
+ [key: string]: string;
6
+ };
4
7
  }
@@ -26,4 +26,5 @@ export declare class RESTworldClient {
26
26
  getLinksFromHome(rel: string, curie?: string): Link[];
27
27
  private getFullRel;
28
28
  private static createHeaders;
29
+ private static combineHeaders;
29
30
  }
@@ -1,4 +1,6 @@
1
+ import { AfterViewInit, OnChanges, OnInit, SimpleChanges } from '@angular/core';
1
2
  import { PagedListResource, Resource } from '@wertzui/ngx-hal-client';
3
+ import * as _ from 'lodash';
2
4
  import { ConfirmationService, LazyLoadEvent, MessageService } from 'primeng/api';
3
5
  import { RESTworldClientCollection } from '../../services/restworld-client-collection';
4
6
  import { AvatarGenerator } from '../../services/avatar-generator';
@@ -7,14 +9,16 @@ export declare enum ColumnType {
7
9
  text = "text",
8
10
  numeric = "numeric",
9
11
  boolean = "boolean",
10
- date = "date"
12
+ date = "date",
13
+ array = "array",
14
+ object = "object"
11
15
  }
12
16
  export interface Column {
13
17
  header: string;
14
18
  field: string;
15
19
  type: ColumnType;
16
20
  }
17
- export declare class RESTworldListViewComponent {
21
+ export declare class RESTworldListViewComponent implements AfterViewInit, OnInit, OnChanges {
18
22
  private _clients;
19
23
  private _confirmationService;
20
24
  private _messageService;
@@ -30,6 +34,12 @@ export declare class RESTworldListViewComponent {
30
34
  set rel(value: string | undefined);
31
35
  get rel(): string | undefined;
32
36
  private _rel?;
37
+ set sortField(value: string | undefined);
38
+ get sortField(): string;
39
+ private _sortField;
40
+ set sortOrder(value: number | undefined);
41
+ get sortOrder(): number;
42
+ private _sortOrder;
33
43
  rowsPerPage: number[];
34
44
  resource?: PagedListResource;
35
45
  isLoading: boolean;
@@ -39,13 +49,16 @@ export declare class RESTworldListViewComponent {
39
49
  get rows(): number;
40
50
  get totalRecords(): number;
41
51
  private set totalRecords(value);
42
- get sortOrder(): number;
43
52
  get newHref(): string | undefined;
44
53
  private static _dateFormat;
45
54
  get dateFormat(): string;
46
55
  constructor(_clients: RESTworldClientCollection, _confirmationService: ConfirmationService, _messageService: MessageService, avatarGenerator: AvatarGenerator);
56
+ ngOnChanges(changes: SimpleChanges): void;
57
+ ngOnInit(): void;
58
+ ngAfterViewInit(): Promise<void>;
47
59
  private getClient;
48
- load(event: LazyLoadEvent): Promise<void>;
60
+ load: _.DebouncedFunc<(event: LazyLoadEvent) => Promise<void>>;
61
+ load2(event: LazyLoadEvent): Promise<void>;
49
62
  showDeleteConfirmatioModal(resource: Resource): void;
50
63
  delete(resource: Resource): Promise<void>;
51
64
  private createColumns;
@@ -61,5 +74,5 @@ export declare class RESTworldListViewComponent {
61
74
  private static createODataOperator;
62
75
  private createComparisonValue;
63
76
  static ɵfac: i0.ɵɵFactoryDeclaration<RESTworldListViewComponent, never>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<RESTworldListViewComponent, "rw-list", never, { "editLink": "editLink"; "apiName": "apiName"; "rel": "rel"; "rowsPerPage": "rowsPerPage"; }, {}, never, never>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<RESTworldListViewComponent, "rw-list", never, { "editLink": "editLink"; "apiName": "apiName"; "rel": "rel"; "sortField": "sortField"; "sortOrder": "sortOrder"; "rowsPerPage": "rowsPerPage"; }, {}, never, never>;
65
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wertzui/ngx-restworld-client",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "author": "wertzui",
5
5
  "description": "An Angular client to consume a RESTworld service that serves application/hal+json or hal-forms+json.",
6
6
  "publishConfig": {
@@ -34,7 +34,7 @@
34
34
  "@angular/platform-server": "^13.2.5",
35
35
  "@angular/router": "^13.2.5",
36
36
  "@fortawesome/fontawesome-free": "^6.0.0",
37
- "@jdrks/ngx-deep-linking": "^1.0.6",
37
+ "@jdrks/ngx-deep-linking": "^1.0.7",
38
38
  "@wertzui/ngx-hal-client": "^2.0.1",
39
39
  "cldr-dates-modern": "^40.0.0",
40
40
  "cldr-numbers-modern": "^40.0.0",