ngx-bootstrap 20.0.2 → 21.0.1
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/accordion/fesm2022/ngx-bootstrap-accordion.mjs +15 -15
- package/accordion/fesm2022/ngx-bootstrap-accordion.mjs.map +1 -1
- package/alert/fesm2022/ngx-bootstrap-alert.mjs +12 -12
- package/alert/fesm2022/ngx-bootstrap-alert.mjs.map +1 -1
- package/buttons/fesm2022/ngx-bootstrap-buttons.mjs +25 -16
- package/buttons/fesm2022/ngx-bootstrap-buttons.mjs.map +1 -1
- package/buttons/{index.d.ts → types/ngx-bootstrap-buttons.d.ts} +3 -3
- package/carousel/fesm2022/ngx-bootstrap-carousel.mjs +15 -15
- package/carousel/fesm2022/ngx-bootstrap-carousel.mjs.map +1 -1
- package/chronos/fesm2022/ngx-bootstrap-chronos.mjs.map +1 -1
- package/collapse/fesm2022/ngx-bootstrap-collapse.mjs +7 -7
- package/collapse/fesm2022/ngx-bootstrap-collapse.mjs.map +1 -1
- package/component-loader/fesm2022/ngx-bootstrap-component-loader.mjs +3 -3
- package/component-loader/fesm2022/ngx-bootstrap-component-loader.mjs.map +1 -1
- package/datepicker/bs-datepicker.css +42 -14
- package/datepicker/bs-datepicker.css.map +1 -1
- package/datepicker/fesm2022/ngx-bootstrap-datepicker.mjs +362 -302
- package/datepicker/fesm2022/ngx-bootstrap-datepicker.mjs.map +1 -1
- package/dropdown/fesm2022/ngx-bootstrap-dropdown.mjs +37 -26
- package/dropdown/fesm2022/ngx-bootstrap-dropdown.mjs.map +1 -1
- package/dropdown/{index.d.ts → types/ngx-bootstrap-dropdown.d.ts} +2 -2
- package/fesm2022/ngx-bootstrap.mjs.map +1 -1
- package/focus-trap/fesm2022/ngx-bootstrap-focus-trap.mjs +19 -19
- package/focus-trap/fesm2022/ngx-bootstrap-focus-trap.mjs.map +1 -1
- package/locale/fesm2022/ngx-bootstrap-locale.mjs.map +1 -1
- package/mini-ngrx/fesm2022/ngx-bootstrap-mini-ngrx.mjs.map +1 -1
- package/modal/fesm2022/ngx-bootstrap-modal.mjs +52 -28
- package/modal/fesm2022/ngx-bootstrap-modal.mjs.map +1 -1
- package/modal/{index.d.ts → types/ngx-bootstrap-modal.d.ts} +6 -6
- package/package.json +31 -79
- package/pagination/fesm2022/ngx-bootstrap-pagination.mjs +15 -15
- package/pagination/fesm2022/ngx-bootstrap-pagination.mjs.map +1 -1
- package/popover/fesm2022/ngx-bootstrap-popover.mjs +17 -17
- package/popover/fesm2022/ngx-bootstrap-popover.mjs.map +1 -1
- package/positioning/fesm2022/ngx-bootstrap-positioning.mjs +3 -3
- package/positioning/fesm2022/ngx-bootstrap-positioning.mjs.map +1 -1
- package/progressbar/fesm2022/ngx-bootstrap-progressbar.mjs +14 -15
- package/progressbar/fesm2022/ngx-bootstrap-progressbar.mjs.map +1 -1
- package/rating/fesm2022/ngx-bootstrap-rating.mjs +12 -12
- package/rating/fesm2022/ngx-bootstrap-rating.mjs.map +1 -1
- package/schematics/utils/current_dependency_versions.json +1 -1
- package/sortable/fesm2022/ngx-bootstrap-sortable.mjs +65 -61
- package/sortable/fesm2022/ngx-bootstrap-sortable.mjs.map +1 -1
- package/tabs/fesm2022/ngx-bootstrap-tabs.mjs +21 -21
- package/tabs/fesm2022/ngx-bootstrap-tabs.mjs.map +1 -1
- package/timepicker/fesm2022/ngx-bootstrap-timepicker.mjs +17 -18
- package/timepicker/fesm2022/ngx-bootstrap-timepicker.mjs.map +1 -1
- package/tooltip/fesm2022/ngx-bootstrap-tooltip.mjs +13 -13
- package/tooltip/fesm2022/ngx-bootstrap-tooltip.mjs.map +1 -1
- package/typeahead/fesm2022/ngx-bootstrap-typeahead.mjs +20 -19
- package/typeahead/fesm2022/ngx-bootstrap-typeahead.mjs.map +1 -1
- package/utils/fesm2022/ngx-bootstrap-utils.mjs.map +1 -1
- /package/accordion/{index.d.ts → types/ngx-bootstrap-accordion.d.ts} +0 -0
- /package/alert/{index.d.ts → types/ngx-bootstrap-alert.d.ts} +0 -0
- /package/carousel/{index.d.ts → types/ngx-bootstrap-carousel.d.ts} +0 -0
- /package/chronos/{index.d.ts → types/ngx-bootstrap-chronos.d.ts} +0 -0
- /package/collapse/{index.d.ts → types/ngx-bootstrap-collapse.d.ts} +0 -0
- /package/component-loader/{index.d.ts → types/ngx-bootstrap-component-loader.d.ts} +0 -0
- /package/datepicker/{index.d.ts → types/ngx-bootstrap-datepicker.d.ts} +0 -0
- /package/focus-trap/{index.d.ts → types/ngx-bootstrap-focus-trap.d.ts} +0 -0
- /package/locale/{index.d.ts → types/ngx-bootstrap-locale.d.ts} +0 -0
- /package/mini-ngrx/{index.d.ts → types/ngx-bootstrap-mini-ngrx.d.ts} +0 -0
- /package/pagination/{index.d.ts → types/ngx-bootstrap-pagination.d.ts} +0 -0
- /package/popover/{index.d.ts → types/ngx-bootstrap-popover.d.ts} +0 -0
- /package/positioning/{index.d.ts → types/ngx-bootstrap-positioning.d.ts} +0 -0
- /package/progressbar/{index.d.ts → types/ngx-bootstrap-progressbar.d.ts} +0 -0
- /package/rating/{index.d.ts → types/ngx-bootstrap-rating.d.ts} +0 -0
- /package/sortable/{index.d.ts → types/ngx-bootstrap-sortable.d.ts} +0 -0
- /package/tabs/{index.d.ts → types/ngx-bootstrap-tabs.d.ts} +0 -0
- /package/timepicker/{index.d.ts → types/ngx-bootstrap-timepicker.d.ts} +0 -0
- /package/tooltip/{index.d.ts → types/ngx-bootstrap-tooltip.d.ts} +0 -0
- /package/typeahead/{index.d.ts → types/ngx-bootstrap-typeahead.d.ts} +0 -0
- /package/{index.d.ts → types/ngx-bootstrap.d.ts} +0 -0
- /package/utils/{index.d.ts → types/ngx-bootstrap-utils.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-bootstrap",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.1",
|
|
4
4
|
"description": "Angular Bootstrap",
|
|
5
5
|
"author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"schematics": "./schematics/collection.json",
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@angular/animations": "^
|
|
10
|
-
"@angular/common": "^
|
|
11
|
-
"@angular/core": "^
|
|
12
|
-
"@angular/forms": "^
|
|
9
|
+
"@angular/animations": "^21.0.0",
|
|
10
|
+
"@angular/common": "^21.0.0",
|
|
11
|
+
"@angular/core": "^21.0.0",
|
|
12
|
+
"@angular/forms": "^21.0.0",
|
|
13
13
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
@@ -17,157 +17,109 @@
|
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
19
|
"./accordion": {
|
|
20
|
-
"types": "./accordion/
|
|
21
|
-
"esm2022": "./accordion/esm2022/ngx-bootstrap-accordion.mjs",
|
|
22
|
-
"esm": "./accordion/esm2022/ngx-bootstrap-accordion.mjs",
|
|
20
|
+
"types": "./accordion/types/ngx-bootstrap-accordion.d.ts",
|
|
23
21
|
"default": "./accordion/fesm2022/ngx-bootstrap-accordion.mjs"
|
|
24
22
|
},
|
|
25
23
|
"./alert": {
|
|
26
|
-
"types": "./alert/
|
|
27
|
-
"esm2022": "./alert/esm2022/ngx-bootstrap-alert.mjs",
|
|
28
|
-
"esm": "./alert/esm2022/ngx-bootstrap-alert.mjs",
|
|
24
|
+
"types": "./alert/types/ngx-bootstrap-alert.d.ts",
|
|
29
25
|
"default": "./alert/fesm2022/ngx-bootstrap-alert.mjs"
|
|
30
26
|
},
|
|
31
27
|
"./buttons": {
|
|
32
|
-
"types": "./buttons/
|
|
33
|
-
"esm2022": "./buttons/esm2022/ngx-bootstrap-buttons.mjs",
|
|
34
|
-
"esm": "./buttons/esm2022/ngx-bootstrap-buttons.mjs",
|
|
28
|
+
"types": "./buttons/types/ngx-bootstrap-buttons.d.ts",
|
|
35
29
|
"default": "./buttons/fesm2022/ngx-bootstrap-buttons.mjs"
|
|
36
30
|
},
|
|
37
31
|
"./carousel": {
|
|
38
|
-
"types": "./carousel/
|
|
39
|
-
"esm2022": "./carousel/esm2022/ngx-bootstrap-carousel.mjs",
|
|
40
|
-
"esm": "./carousel/esm2022/ngx-bootstrap-carousel.mjs",
|
|
32
|
+
"types": "./carousel/types/ngx-bootstrap-carousel.d.ts",
|
|
41
33
|
"default": "./carousel/fesm2022/ngx-bootstrap-carousel.mjs"
|
|
42
34
|
},
|
|
43
35
|
"./chronos": {
|
|
44
|
-
"types": "./chronos/
|
|
45
|
-
"esm2022": "./chronos/esm2022/ngx-bootstrap-chronos.mjs",
|
|
46
|
-
"esm": "./chronos/esm2022/ngx-bootstrap-chronos.mjs",
|
|
36
|
+
"types": "./chronos/types/ngx-bootstrap-chronos.d.ts",
|
|
47
37
|
"default": "./chronos/fesm2022/ngx-bootstrap-chronos.mjs"
|
|
48
38
|
},
|
|
49
39
|
"./collapse": {
|
|
50
|
-
"types": "./collapse/
|
|
51
|
-
"esm2022": "./collapse/esm2022/ngx-bootstrap-collapse.mjs",
|
|
52
|
-
"esm": "./collapse/esm2022/ngx-bootstrap-collapse.mjs",
|
|
40
|
+
"types": "./collapse/types/ngx-bootstrap-collapse.d.ts",
|
|
53
41
|
"default": "./collapse/fesm2022/ngx-bootstrap-collapse.mjs"
|
|
54
42
|
},
|
|
55
43
|
"./component-loader": {
|
|
56
|
-
"types": "./component-loader/
|
|
57
|
-
"esm2022": "./component-loader/esm2022/ngx-bootstrap-component-loader.mjs",
|
|
58
|
-
"esm": "./component-loader/esm2022/ngx-bootstrap-component-loader.mjs",
|
|
44
|
+
"types": "./component-loader/types/ngx-bootstrap-component-loader.d.ts",
|
|
59
45
|
"default": "./component-loader/fesm2022/ngx-bootstrap-component-loader.mjs"
|
|
60
46
|
},
|
|
61
47
|
"./datepicker": {
|
|
62
|
-
"types": "./datepicker/
|
|
63
|
-
"esm2022": "./datepicker/esm2022/ngx-bootstrap-datepicker.mjs",
|
|
64
|
-
"esm": "./datepicker/esm2022/ngx-bootstrap-datepicker.mjs",
|
|
48
|
+
"types": "./datepicker/types/ngx-bootstrap-datepicker.d.ts",
|
|
65
49
|
"default": "./datepicker/fesm2022/ngx-bootstrap-datepicker.mjs"
|
|
66
50
|
},
|
|
67
51
|
"./datepicker/bs-datepicker.css": {
|
|
68
52
|
"style": "./datepicker/bs-datepicker.css"
|
|
69
53
|
},
|
|
70
54
|
"./dropdown": {
|
|
71
|
-
"types": "./dropdown/
|
|
72
|
-
"esm2022": "./dropdown/esm2022/ngx-bootstrap-dropdown.mjs",
|
|
73
|
-
"esm": "./dropdown/esm2022/ngx-bootstrap-dropdown.mjs",
|
|
55
|
+
"types": "./dropdown/types/ngx-bootstrap-dropdown.d.ts",
|
|
74
56
|
"default": "./dropdown/fesm2022/ngx-bootstrap-dropdown.mjs"
|
|
75
57
|
},
|
|
76
58
|
"./focus-trap": {
|
|
77
|
-
"types": "./focus-trap/
|
|
78
|
-
"esm2022": "./focus-trap/esm2022/ngx-bootstrap-focus-trap.mjs",
|
|
79
|
-
"esm": "./focus-trap/esm2022/ngx-bootstrap-focus-trap.mjs",
|
|
59
|
+
"types": "./focus-trap/types/ngx-bootstrap-focus-trap.d.ts",
|
|
80
60
|
"default": "./focus-trap/fesm2022/ngx-bootstrap-focus-trap.mjs"
|
|
81
61
|
},
|
|
82
62
|
"./locale": {
|
|
83
|
-
"types": "./locale/
|
|
84
|
-
"esm2022": "./locale/esm2022/ngx-bootstrap-locale.mjs",
|
|
85
|
-
"esm": "./locale/esm2022/ngx-bootstrap-locale.mjs",
|
|
63
|
+
"types": "./locale/types/ngx-bootstrap-locale.d.ts",
|
|
86
64
|
"default": "./locale/fesm2022/ngx-bootstrap-locale.mjs"
|
|
87
65
|
},
|
|
88
66
|
"./mini-ngrx": {
|
|
89
|
-
"types": "./mini-ngrx/
|
|
90
|
-
"esm2022": "./mini-ngrx/esm2022/ngx-bootstrap-mini-ngrx.mjs",
|
|
91
|
-
"esm": "./mini-ngrx/esm2022/ngx-bootstrap-mini-ngrx.mjs",
|
|
67
|
+
"types": "./mini-ngrx/types/ngx-bootstrap-mini-ngrx.d.ts",
|
|
92
68
|
"default": "./mini-ngrx/fesm2022/ngx-bootstrap-mini-ngrx.mjs"
|
|
93
69
|
},
|
|
94
70
|
"./modal": {
|
|
95
|
-
"types": "./modal/
|
|
96
|
-
"esm2022": "./modal/esm2022/ngx-bootstrap-modal.mjs",
|
|
97
|
-
"esm": "./modal/esm2022/ngx-bootstrap-modal.mjs",
|
|
71
|
+
"types": "./modal/types/ngx-bootstrap-modal.d.ts",
|
|
98
72
|
"default": "./modal/fesm2022/ngx-bootstrap-modal.mjs"
|
|
99
73
|
},
|
|
100
74
|
"./pagination": {
|
|
101
|
-
"types": "./pagination/
|
|
102
|
-
"esm2022": "./pagination/esm2022/ngx-bootstrap-pagination.mjs",
|
|
103
|
-
"esm": "./pagination/esm2022/ngx-bootstrap-pagination.mjs",
|
|
75
|
+
"types": "./pagination/types/ngx-bootstrap-pagination.d.ts",
|
|
104
76
|
"default": "./pagination/fesm2022/ngx-bootstrap-pagination.mjs"
|
|
105
77
|
},
|
|
106
78
|
"./popover": {
|
|
107
|
-
"types": "./popover/
|
|
108
|
-
"esm2022": "./popover/esm2022/ngx-bootstrap-popover.mjs",
|
|
109
|
-
"esm": "./popover/esm2022/ngx-bootstrap-popover.mjs",
|
|
79
|
+
"types": "./popover/types/ngx-bootstrap-popover.d.ts",
|
|
110
80
|
"default": "./popover/fesm2022/ngx-bootstrap-popover.mjs"
|
|
111
81
|
},
|
|
112
82
|
"./positioning": {
|
|
113
|
-
"types": "./positioning/
|
|
114
|
-
"esm2022": "./positioning/esm2022/ngx-bootstrap-positioning.mjs",
|
|
115
|
-
"esm": "./positioning/esm2022/ngx-bootstrap-positioning.mjs",
|
|
83
|
+
"types": "./positioning/types/ngx-bootstrap-positioning.d.ts",
|
|
116
84
|
"default": "./positioning/fesm2022/ngx-bootstrap-positioning.mjs"
|
|
117
85
|
},
|
|
118
86
|
"./progressbar": {
|
|
119
|
-
"types": "./progressbar/
|
|
120
|
-
"esm2022": "./progressbar/esm2022/ngx-bootstrap-progressbar.mjs",
|
|
121
|
-
"esm": "./progressbar/esm2022/ngx-bootstrap-progressbar.mjs",
|
|
87
|
+
"types": "./progressbar/types/ngx-bootstrap-progressbar.d.ts",
|
|
122
88
|
"default": "./progressbar/fesm2022/ngx-bootstrap-progressbar.mjs"
|
|
123
89
|
},
|
|
124
90
|
"./rating": {
|
|
125
|
-
"types": "./rating/
|
|
126
|
-
"esm2022": "./rating/esm2022/ngx-bootstrap-rating.mjs",
|
|
127
|
-
"esm": "./rating/esm2022/ngx-bootstrap-rating.mjs",
|
|
91
|
+
"types": "./rating/types/ngx-bootstrap-rating.d.ts",
|
|
128
92
|
"default": "./rating/fesm2022/ngx-bootstrap-rating.mjs"
|
|
129
93
|
},
|
|
130
94
|
"./sortable": {
|
|
131
|
-
"types": "./sortable/
|
|
132
|
-
"esm2022": "./sortable/esm2022/ngx-bootstrap-sortable.mjs",
|
|
133
|
-
"esm": "./sortable/esm2022/ngx-bootstrap-sortable.mjs",
|
|
95
|
+
"types": "./sortable/types/ngx-bootstrap-sortable.d.ts",
|
|
134
96
|
"default": "./sortable/fesm2022/ngx-bootstrap-sortable.mjs"
|
|
135
97
|
},
|
|
136
98
|
"./tabs": {
|
|
137
|
-
"types": "./tabs/
|
|
138
|
-
"esm2022": "./tabs/esm2022/ngx-bootstrap-tabs.mjs",
|
|
139
|
-
"esm": "./tabs/esm2022/ngx-bootstrap-tabs.mjs",
|
|
99
|
+
"types": "./tabs/types/ngx-bootstrap-tabs.d.ts",
|
|
140
100
|
"default": "./tabs/fesm2022/ngx-bootstrap-tabs.mjs"
|
|
141
101
|
},
|
|
142
102
|
"./timepicker": {
|
|
143
|
-
"types": "./timepicker/
|
|
144
|
-
"esm2022": "./timepicker/esm2022/ngx-bootstrap-timepicker.mjs",
|
|
145
|
-
"esm": "./timepicker/esm2022/ngx-bootstrap-timepicker.mjs",
|
|
103
|
+
"types": "./timepicker/types/ngx-bootstrap-timepicker.d.ts",
|
|
146
104
|
"default": "./timepicker/fesm2022/ngx-bootstrap-timepicker.mjs"
|
|
147
105
|
},
|
|
148
106
|
"./tooltip": {
|
|
149
|
-
"types": "./tooltip/
|
|
150
|
-
"esm2022": "./tooltip/esm2022/ngx-bootstrap-tooltip.mjs",
|
|
151
|
-
"esm": "./tooltip/esm2022/ngx-bootstrap-tooltip.mjs",
|
|
107
|
+
"types": "./tooltip/types/ngx-bootstrap-tooltip.d.ts",
|
|
152
108
|
"default": "./tooltip/fesm2022/ngx-bootstrap-tooltip.mjs"
|
|
153
109
|
},
|
|
154
110
|
"./typeahead": {
|
|
155
|
-
"types": "./typeahead/
|
|
156
|
-
"esm2022": "./typeahead/esm2022/ngx-bootstrap-typeahead.mjs",
|
|
157
|
-
"esm": "./typeahead/esm2022/ngx-bootstrap-typeahead.mjs",
|
|
111
|
+
"types": "./typeahead/types/ngx-bootstrap-typeahead.d.ts",
|
|
158
112
|
"default": "./typeahead/fesm2022/ngx-bootstrap-typeahead.mjs"
|
|
159
113
|
},
|
|
160
114
|
"./utils": {
|
|
161
|
-
"types": "./utils/
|
|
162
|
-
"esm2022": "./utils/esm2022/ngx-bootstrap-utils.mjs",
|
|
163
|
-
"esm": "./utils/esm2022/ngx-bootstrap-utils.mjs",
|
|
115
|
+
"types": "./utils/types/ngx-bootstrap-utils.d.ts",
|
|
164
116
|
"default": "./utils/fesm2022/ngx-bootstrap-utils.mjs"
|
|
165
117
|
},
|
|
166
118
|
"./package.json": {
|
|
167
119
|
"default": "./package.json"
|
|
168
120
|
},
|
|
169
121
|
".": {
|
|
170
|
-
"types": "./
|
|
122
|
+
"types": "./types/ngx-bootstrap.d.ts",
|
|
171
123
|
"default": "./fesm2022/ngx-bootstrap.mjs"
|
|
172
124
|
}
|
|
173
125
|
},
|
|
@@ -193,5 +145,5 @@
|
|
|
193
145
|
"twitter-bootstrap"
|
|
194
146
|
],
|
|
195
147
|
"module": "fesm2022/ngx-bootstrap.mjs",
|
|
196
|
-
"typings": "
|
|
148
|
+
"typings": "types/ngx-bootstrap.d.ts"
|
|
197
149
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, forwardRef, EventEmitter, Input, Output, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
-
import { NgClass,
|
|
4
|
+
import { NgClass, NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
5
5
|
|
|
6
6
|
// todo: split
|
|
7
7
|
/** Provides default values for Pagination and pager components */
|
|
@@ -26,10 +26,10 @@ class PaginationConfig {
|
|
|
26
26
|
align: true
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
30
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PaginationConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
30
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PaginationConfig, providedIn: 'root' }); }
|
|
31
31
|
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PaginationConfig, decorators: [{
|
|
33
33
|
type: Injectable,
|
|
34
34
|
args: [{
|
|
35
35
|
providedIn: 'root'
|
|
@@ -248,10 +248,10 @@ class PagerComponent {
|
|
|
248
248
|
: Math.ceil(this.totalItems / this.itemsPerPage);
|
|
249
249
|
return Math.max(totalPages || 0, 1);
|
|
250
250
|
}
|
|
251
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
252
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
251
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PagerComponent, deps: [{ token: i0.ElementRef }, { token: PaginationConfig }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
252
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: PagerComponent, isStandalone: true, selector: "pager", inputs: { align: "align", maxSize: "maxSize", boundaryLinks: "boundaryLinks", directionLinks: "directionLinks", firstText: "firstText", previousText: "previousText", nextText: "nextText", lastText: "lastText", rotate: "rotate", pageBtnClass: "pageBtnClass", disabled: "disabled", itemsPerPage: "itemsPerPage", totalItems: "totalItems" }, outputs: { numPages: "numPages", pageChanged: "pageChanged" }, providers: [PAGER_CONTROL_VALUE_ACCESSOR], ngImport: i0, template: "<ul class=\"pager\">\n <li [class.disabled]=\"noPrevious()\" [class.previous]=\"align\"\n [ngClass]=\"{'pull-left': align, 'float-left': align}\"\n class=\"{{ pageBtnClass }}\">\n <a href (click)=\"selectPage(page - 1, $event)\">{{ getText('previous') }}</a>\n </li>\n <li [class.disabled]=\"noNext()\" [class.next]=\"align\"\n [ngClass]=\"{'pull-right': align, 'float-right': align}\"\n class=\"{{ pageBtnClass }}\">\n <a href (click)=\"selectPage(page + 1, $event)\">{{ getText('next') }}</a>\n </li>\n</ul>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
253
253
|
}
|
|
254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PagerComponent, decorators: [{
|
|
255
255
|
type: Component,
|
|
256
256
|
args: [{ selector: 'pager', providers: [PAGER_CONTROL_VALUE_ACCESSOR], standalone: true, imports: [NgClass], template: "<ul class=\"pager\">\n <li [class.disabled]=\"noPrevious()\" [class.previous]=\"align\"\n [ngClass]=\"{'pull-left': align, 'float-left': align}\"\n class=\"{{ pageBtnClass }}\">\n <a href (click)=\"selectPage(page - 1, $event)\">{{ getText('previous') }}</a>\n </li>\n <li [class.disabled]=\"noNext()\" [class.next]=\"align\"\n [ngClass]=\"{'pull-right': align, 'float-right': align}\"\n class=\"{{ pageBtnClass }}\">\n <a href (click)=\"selectPage(page + 1, $event)\">{{ getText('next') }}</a>\n </li>\n</ul>\n" }]
|
|
257
257
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: PaginationConfig }, { type: i0.ChangeDetectorRef }], propDecorators: { align: [{
|
|
@@ -489,12 +489,12 @@ class PaginationComponent {
|
|
|
489
489
|
: Math.ceil(this.totalItems / this.itemsPerPage);
|
|
490
490
|
return Math.max(totalPages || 0, 1);
|
|
491
491
|
}
|
|
492
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
493
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PaginationComponent, deps: [{ token: i0.ElementRef }, { token: PaginationConfig }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
493
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: PaginationComponent, isStandalone: true, selector: "pagination", inputs: { align: "align", maxSize: "maxSize", boundaryLinks: "boundaryLinks", directionLinks: "directionLinks", firstText: "firstText", previousText: "previousText", nextText: "nextText", lastText: "lastText", rotate: "rotate", pageBtnClass: "pageBtnClass", disabled: "disabled", customPageTemplate: "customPageTemplate", customNextTemplate: "customNextTemplate", customPreviousTemplate: "customPreviousTemplate", customFirstTemplate: "customFirstTemplate", customLastTemplate: "customLastTemplate", itemsPerPage: "itemsPerPage", totalItems: "totalItems" }, outputs: { numPages: "numPages", pageChanged: "pageChanged" }, providers: [PAGINATION_CONTROL_VALUE_ACCESSOR], ngImport: i0, template: "<ul class=\"pagination\" [ngClass]=\"classMap\">\n @if (boundaryLinks) {\n <li class=\"pagination-first page-item\"\n [class.disabled]=\"noPrevious() || disabled\">\n <a class=\"page-link\" href (click)=\"selectPage(1, $event)\">\n <ng-container [ngTemplateOutlet]=\"customFirstTemplate || defaultFirstTemplate\"\n [ngTemplateOutletContext]=\"{disabled: noPrevious() || disabled, currentPage: page}\">\n </ng-container>\n </a>\n </li>\n }\n\n @if (directionLinks) {\n <li class=\"pagination-prev page-item\"\n [class.disabled]=\"noPrevious() || disabled\">\n <a class=\"page-link\" href (click)=\"selectPage(page - 1, $event)\">\n <ng-container [ngTemplateOutlet]=\"customPreviousTemplate || defaultPreviousTemplate\"\n [ngTemplateOutletContext]=\"{disabled: noPrevious() || disabled, currentPage: page}\">\n </ng-container>\n </a>\n </li>\n }\n\n @for (pg of pages; track pg) {\n <li\n [class.active]=\"pg.active\"\n [class.disabled]=\"disabled && !pg.active\"\n class=\"pagination-page page-item\">\n <a class=\"page-link\" href (click)=\"selectPage(pg.number, $event)\">\n <ng-container [ngTemplateOutlet]=\"customPageTemplate || defaultPageTemplate\"\n [ngTemplateOutletContext]=\"{disabled: disabled, $implicit: pg, currentPage: page}\">\n </ng-container>\n </a>\n </li>\n }\n\n @if (directionLinks) {\n <li class=\"pagination-next page-item\"\n [class.disabled]=\"noNext() || disabled\">\n <a class=\"page-link\" href (click)=\"selectPage(page + 1, $event)\">\n <ng-container [ngTemplateOutlet]=\"customNextTemplate || defaultNextTemplate\"\n [ngTemplateOutletContext]=\"{disabled: noNext() || disabled, currentPage: page}\">\n </ng-container>\n </a>\n </li>\n }\n\n @if (boundaryLinks) {\n <li class=\"pagination-last page-item\"\n [class.disabled]=\"noNext() || disabled\">\n <a class=\"page-link\" href (click)=\"selectPage(totalPages, $event)\">\n <ng-container [ngTemplateOutlet]=\"customLastTemplate || defaultLastTemplate\"\n [ngTemplateOutletContext]=\"{disabled: noNext() || disabled, currentPage: page}\">\n </ng-container>\n </a>\n </li>\n }\n</ul>\n\n<ng-template #defaultPageTemplate let-page>{{ page.text }}</ng-template>\n\n<ng-template #defaultNextTemplate>{{ getText('next') }}</ng-template>\n\n<ng-template #defaultPreviousTemplate>{{ getText('previous') }}</ng-template>\n\n<ng-template #defaultFirstTemplate>{{ getText('first') }}</ng-template>\n\n<ng-template #defaultLastTemplate>{{ getText('last') }}</ng-template>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
494
494
|
}
|
|
495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
496
496
|
type: Component,
|
|
497
|
-
args: [{ selector: 'pagination', providers: [PAGINATION_CONTROL_VALUE_ACCESSOR], standalone: true, imports: [NgClass,
|
|
497
|
+
args: [{ selector: 'pagination', providers: [PAGINATION_CONTROL_VALUE_ACCESSOR], standalone: true, imports: [NgClass, NgTemplateOutlet], template: "<ul class=\"pagination\" [ngClass]=\"classMap\">\n @if (boundaryLinks) {\n <li class=\"pagination-first page-item\"\n [class.disabled]=\"noPrevious() || disabled\">\n <a class=\"page-link\" href (click)=\"selectPage(1, $event)\">\n <ng-container [ngTemplateOutlet]=\"customFirstTemplate || defaultFirstTemplate\"\n [ngTemplateOutletContext]=\"{disabled: noPrevious() || disabled, currentPage: page}\">\n </ng-container>\n </a>\n </li>\n }\n\n @if (directionLinks) {\n <li class=\"pagination-prev page-item\"\n [class.disabled]=\"noPrevious() || disabled\">\n <a class=\"page-link\" href (click)=\"selectPage(page - 1, $event)\">\n <ng-container [ngTemplateOutlet]=\"customPreviousTemplate || defaultPreviousTemplate\"\n [ngTemplateOutletContext]=\"{disabled: noPrevious() || disabled, currentPage: page}\">\n </ng-container>\n </a>\n </li>\n }\n\n @for (pg of pages; track pg) {\n <li\n [class.active]=\"pg.active\"\n [class.disabled]=\"disabled && !pg.active\"\n class=\"pagination-page page-item\">\n <a class=\"page-link\" href (click)=\"selectPage(pg.number, $event)\">\n <ng-container [ngTemplateOutlet]=\"customPageTemplate || defaultPageTemplate\"\n [ngTemplateOutletContext]=\"{disabled: disabled, $implicit: pg, currentPage: page}\">\n </ng-container>\n </a>\n </li>\n }\n\n @if (directionLinks) {\n <li class=\"pagination-next page-item\"\n [class.disabled]=\"noNext() || disabled\">\n <a class=\"page-link\" href (click)=\"selectPage(page + 1, $event)\">\n <ng-container [ngTemplateOutlet]=\"customNextTemplate || defaultNextTemplate\"\n [ngTemplateOutletContext]=\"{disabled: noNext() || disabled, currentPage: page}\">\n </ng-container>\n </a>\n </li>\n }\n\n @if (boundaryLinks) {\n <li class=\"pagination-last page-item\"\n [class.disabled]=\"noNext() || disabled\">\n <a class=\"page-link\" href (click)=\"selectPage(totalPages, $event)\">\n <ng-container [ngTemplateOutlet]=\"customLastTemplate || defaultLastTemplate\"\n [ngTemplateOutletContext]=\"{disabled: noNext() || disabled, currentPage: page}\">\n </ng-container>\n </a>\n </li>\n }\n</ul>\n\n<ng-template #defaultPageTemplate let-page>{{ page.text }}</ng-template>\n\n<ng-template #defaultNextTemplate>{{ getText('next') }}</ng-template>\n\n<ng-template #defaultPreviousTemplate>{{ getText('previous') }}</ng-template>\n\n<ng-template #defaultFirstTemplate>{{ getText('first') }}</ng-template>\n\n<ng-template #defaultLastTemplate>{{ getText('last') }}</ng-template>\n" }]
|
|
498
498
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: PaginationConfig }, { type: i0.ChangeDetectorRef }], propDecorators: { align: [{
|
|
499
499
|
type: Input
|
|
500
500
|
}], maxSize: [{
|
|
@@ -545,11 +545,11 @@ class PaginationModule {
|
|
|
545
545
|
providers: []
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
549
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
550
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
548
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
549
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: PaginationModule, imports: [CommonModule, PagerComponent, PaginationComponent], exports: [PagerComponent, PaginationComponent] }); }
|
|
550
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PaginationModule, imports: [CommonModule] }); }
|
|
551
551
|
}
|
|
552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PaginationModule, decorators: [{
|
|
553
553
|
type: NgModule,
|
|
554
554
|
args: [{
|
|
555
555
|
imports: [CommonModule, PagerComponent, PaginationComponent],
|