Procházet zdrojové kódy

custom pagination

master
Daniel před 2 roky
rodič
revize
ff9bed82f8
7 změnil soubory, kde provedl 51 přidání a 2 odebrání
  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 Zobrazit soubor

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


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

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


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

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




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



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

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




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



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

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




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



+ 1
- 0
matsen-tool/src/app/partners/partners-detail/partners-detail.component.ts Zobrazit soubor

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


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


+ 2
- 1
matsen-tool/src/app/partners/partners.component.ts Zobrazit soubor

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


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


handlePageEvent(e: PageEvent) { handlePageEvent(e: PageEvent) {


Načítá se…
Zrušit
Uložit