@colijnit/corecomponents_v12 12.0.50 → 12.0.51

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,9 +1,6 @@
1
1
  import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
2
+ import { IPage } from "../pagination-bar/pagination-bar.component";
2
3
  import { PaginationService } from './pagination.service';
3
- export interface IPage {
4
- label: string;
5
- value: any;
6
- }
7
4
  export declare class PaginationComponent implements OnInit, OnChanges, OnDestroy {
8
5
  private _paginationService;
9
6
  readonly template: ElementRef;
@@ -35,7 +32,7 @@ export declare class PaginationComponent implements OnInit, OnChanges, OnDestroy
35
32
  */
36
33
  private _updatePageLinks;
37
34
  getCurrentPage(): number;
38
- private getLastPage;
35
+ getLastPage(): number;
39
36
  /**
40
37
  * Checks that the instance.currentPage property is within bounds for the current page range.
41
38
  * If not, return a correct value for currentPage, or the current value if OK.
@@ -11,76 +11,6 @@
11
11
  align-items: center;
12
12
  padding: 0 20px;
13
13
  height: 100%;
14
-
15
- ul.pagination {
16
- display: flex;
17
- justify-content: flex-end;
18
- flex-wrap: wrap;
19
- width: 100%;
20
- list-style-type: none;
21
- }
22
-
23
- li {
24
- display: flex;
25
- align-items: center;
26
- justify-content: center;
27
- flex-grow: 0;
28
- flex-shrink: 0;
29
- width: 40px;
30
- height: 40px;
31
- cursor: default;
32
- color: #2b60a7;
33
- border: 1px solid $cc-co-pagination-border-color;
34
- border-radius: 5px;
35
- background-color: transparent;
36
- font-size: $cc-co-pagination-font-size;
37
- -webkit-user-select: none;
38
- -moz-user-select: none;
39
- -ms-user-select: none;
40
- user-select: none;
41
-
42
- &:not(:last-child) {
43
- margin-right: 4px;
44
- }
45
- }
46
-
47
- li.pagination-next, li.pagination-previous {
48
- font-size: $cc-co-pagination-font-size-small;
49
- cursor: pointer;
50
- flex-grow: 0;
51
- width: auto;
52
- text-align: center;
53
- padding: 0 15px;
54
- }
55
-
56
- li.pagination-next a:after {
57
- content: '';
58
- border: solid #2b60a7;
59
- border-width: 0 3px 3px 0;
60
- display: inline-block;
61
- padding: 3px;
62
- transform: rotate(-45deg);
63
- -webkit-transform: rotate(-45deg);
64
- margin-left: 5px;
65
- }
66
-
67
- li.pagination-previous a:before {
68
- content: '';
69
- border: solid #2b60a7;
70
- border-width: 0 3px 3px 0;
71
- display: inline-block;
72
- padding: 3px;
73
- transform: rotate(135deg);
74
- -webkit-transform: rotate(135deg);
75
- margin-right: 5px;
76
- }
77
-
78
- li.current {
79
- border: 1px solid $cc-co-pagination-active-color;
80
- font-weight: bold;
81
- opacity: 1;
82
- cursor: default;
83
- }
84
14
  }
85
15
  }
86
16
  }
@@ -3,3 +3,4 @@
3
3
  @import "./material-definition";
4
4
  @import "./layout";
5
5
  @import "./theme";
6
+ @import "../../pagination-bar/style/material";
@@ -0,0 +1,21 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ export interface IPage {
3
+ label: string;
4
+ value: any;
5
+ }
6
+ export declare class PaginationBarComponent {
7
+ pages: IPage[];
8
+ directionLinks: boolean;
9
+ previousLabel: string;
10
+ nextLabel: string;
11
+ currentPage: number;
12
+ previousClick: EventEmitter<void>;
13
+ nextClick: EventEmitter<void>;
14
+ pageClick: EventEmitter<any>;
15
+ showClass(): boolean;
16
+ isOnFirstPage(): boolean;
17
+ isOnLastPage(): boolean;
18
+ onPreviousClick(): void;
19
+ onNextClick(): void;
20
+ onPageClick(value: any): void;
21
+ }
@@ -0,0 +1,2 @@
1
+ export declare class PaginationBarModule {
2
+ }
@@ -0,0 +1,67 @@
1
+ @include export-module('cc-pagination-bar-layout') {
2
+ .co-pagination-bar {
3
+ width: 100%;
4
+
5
+ ul.pagination {
6
+ display: flex;
7
+ justify-content: flex-end;
8
+ flex-wrap: wrap;
9
+ width: 100%;
10
+ list-style-type: none;
11
+ }
12
+
13
+ li {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ flex-grow: 0;
18
+ flex-shrink: 0;
19
+ width: 40px;
20
+ height: 40px;
21
+ cursor: pointer;
22
+ border-radius: 5px;
23
+ font-size: $cc-co-pagination-bar-font-size;
24
+ -webkit-user-select: none;
25
+ -moz-user-select: none;
26
+ -ms-user-select: none;
27
+ user-select: none;
28
+
29
+ &:not(:last-child) {
30
+ margin-right: 4px;
31
+ }
32
+ }
33
+
34
+ li.pagination-next, li.pagination-previous {
35
+ font-size: $cc-co-pagination-bar-font-size-small;
36
+ cursor: pointer;
37
+ flex-grow: 0;
38
+ width: auto;
39
+ text-align: center;
40
+ padding: 0 15px;
41
+ }
42
+
43
+ li.pagination-next a:after {
44
+ content: '';
45
+ display: inline-block;
46
+ padding: 3px;
47
+ transform: rotate(-45deg);
48
+ -webkit-transform: rotate(-45deg);
49
+ margin-left: 5px;
50
+ }
51
+
52
+ li.pagination-previous a:before {
53
+ content: '';
54
+ display: inline-block;
55
+ padding: 3px;
56
+ transform: rotate(135deg);
57
+ -webkit-transform: rotate(135deg);
58
+ margin-right: 5px;
59
+ }
60
+
61
+ li.current {
62
+ font-weight: bold;
63
+ opacity: 1;
64
+ cursor: default;
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,3 @@
1
+ $cc-co-pagination-bar-border-color: $cc-color-border;
2
+ $cc-co-pagination-bar-font-size: $cc-font-size-default !default;
3
+ $cc-co-pagination-bar-font-size-small: $cc-font-size-small !default;
@@ -0,0 +1,24 @@
1
+ @include export-module('cc-pagination-bar-theme') {
2
+ .co-pagination-bar {
3
+
4
+ li {
5
+ color: #2b60a7;
6
+ border: 1px solid $cc-co-pagination-bar-border-color;
7
+ background-color: transparent;
8
+ }
9
+
10
+ li.pagination-next a:after {
11
+ border: solid #2b60a7;
12
+ border-width: 0 3px 3px 0;
13
+ }
14
+
15
+ li.pagination-previous a:before {
16
+ border: solid #2b60a7;
17
+ border-width: 0 3px 3px 0;
18
+ }
19
+
20
+ li.current {
21
+ border: 1px solid $cc-co-pagination-active-color;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,3 @@
1
+ @import "./material-definition";
2
+ @import "./layout";
3
+ @import "./theme";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "12.0.50",
3
+ "version": "12.0.51",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {
package/public-api.d.ts CHANGED
@@ -92,3 +92,5 @@ export * from './lib/directives/clickoutside/clickoutside.module';
92
92
  export * from './lib/directives/observe-visibility/observe-visibility.module';
93
93
  export * from './lib/components/pagination/pagination.component';
94
94
  export * from './lib/components/pagination/pagination.module';
95
+ export * from './lib/components/pagination-bar/pagination-bar.component';
96
+ export * from './lib/components/pagination-bar/pagination-bar.module';