Ver código fonte

custom pagination

master
Daniel 2 anos atrás
pai
commit
ff9bed82f8
7 arquivos alterados com 51 adições e 2 exclusões
  1. +36
    -0
      matsen-tool/openapi.yaml
  2. +0
    -1
      matsen-tool/src/app/core/api/v1/.openapi-generator/FILES
  3. +4
    -0
      matsen-tool/src/app/core/api/v1/model/post.ts
  4. +4
    -0
      matsen-tool/src/app/core/api/v1/model/postJsonhal.ts
  5. +4
    -0
      matsen-tool/src/app/core/api/v1/model/postJsonld.ts
  6. +1
    -0
      matsen-tool/src/app/partners/partners-detail/partners-detail.component.ts
  7. +2
    -1
      matsen-tool/src/app/partners/partners.component.ts

+ 36
- 0
matsen-tool/openapi.yaml Ver arquivo

@@ -1710,6 +1710,18 @@ components:
- 'null'
format: iri-reference
example: 'https://example.com/'
partner:
anyOf:
-
$ref: '#/components/schemas/Partner'
-
type: 'null'
contact:
anyOf:
-
$ref: '#/components/schemas/Contact'
-
type: 'null'
createdAt:
readOnly: true
type:
@@ -1743,6 +1755,18 @@ components:
- 'null'
format: iri-reference
example: 'https://example.com/'
partner:
anyOf:
-
$ref: '#/components/schemas/Partner.jsonhal'
-
type: 'null'
contact:
anyOf:
-
$ref: '#/components/schemas/Contact.jsonhal'
-
type: 'null'
createdAt:
readOnly: true
type:
@@ -1790,6 +1814,18 @@ components:
- 'null'
format: iri-reference
example: 'https://example.com/'
partner:
anyOf:
-
$ref: '#/components/schemas/Partner.jsonld'
-
type: 'null'
contact:
anyOf:
-
$ref: '#/components/schemas/Contact.jsonld'
-
type: 'null'
createdAt:
readOnly: true
type:


+ 0
- 1
matsen-tool/src/app/core/api/v1/.openapi-generator/FILES Ver arquivo

@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
README.md
api.module.ts
api/api.ts


+ 4
- 0
matsen-tool/src/app/core/api/v1/model/post.ts Ver arquivo

@@ -9,6 +9,8 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Partner } from './partner';
import { Contact } from './contact';


/**
@@ -17,6 +19,8 @@
export interface Post {
message: string | null;
owner?: string | null;
partner?: Partner | null;
contact?: Contact | null;
readonly createdAt?: string | null;
}


+ 4
- 0
matsen-tool/src/app/core/api/v1/model/postJsonhal.ts Ver arquivo

@@ -10,6 +10,8 @@
* Do not edit the class manually.
*/
import { ContactJsonhalLinks } from './contactJsonhalLinks';
import { ContactJsonhal } from './contactJsonhal';
import { PartnerJsonhal } from './partnerJsonhal';


/**
@@ -19,6 +21,8 @@ export interface PostJsonhal {
_links?: ContactJsonhalLinks;
message: string | null;
owner?: string | null;
partner?: PartnerJsonhal | null;
contact?: ContactJsonhal | null;
readonly createdAt?: string | null;
}


+ 4
- 0
matsen-tool/src/app/core/api/v1/model/postJsonld.ts Ver arquivo

@@ -9,6 +9,8 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ContactJsonld } from './contactJsonld';
import { PartnerJsonld } from './partnerJsonld';


/**
@@ -20,6 +22,8 @@ export interface PostJsonld {
readonly type?: string;
message: string | null;
owner?: string | null;
partner?: PartnerJsonld | null;
contact?: ContactJsonld | null;
readonly createdAt?: string | null;
}


+ 1
- 0
matsen-tool/src/app/partners/partners-detail/partners-detail.component.ts Ver arquivo

@@ -117,6 +117,7 @@ export class PartnersDetailComponent implements OnInit, AfterViewInit {

this.partnerContactsSub = this.contactService.contactsGetCollection(
this.contactsPageIndex + 1,
6,
ApiConverter.extractId(this.partner.id)
).subscribe(
data => {


+ 2
- 1
matsen-tool/src/app/partners/partners.component.ts Ver arquivo

@@ -98,9 +98,9 @@ export class PartnersComponent implements OnInit, AfterViewInit {
}

getData() {
// switch over this.dataType (customers, etc.)
this.partnersSub = this.partnerService.partnersGetCollection(
this.pageIndex + 1,
this.pageSize,
this.dataType,
undefined,
this.nameOrderAsc,
@@ -115,6 +115,7 @@ export class PartnersComponent implements OnInit, AfterViewInit {
this.paginator.length = this.length;
}
);
// switch over this.dataType (customers, etc.)
}

handlePageEvent(e: PageEvent) {


Carregando…
Cancelar
Salvar