@wavemaker/app-ng-runtime 11.11.4-rc.6173 → 11.11.5-rc.214
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/components/base/bundles/index.umd.js +12 -7
- package/components/base/esm2022/widgets/common/base/base-field-validations.mjs +13 -8
- package/components/base/fesm2022/index.mjs +12 -7
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/data/form/bundles/index.umd.js +20 -1
- package/components/data/form/esm2022/form-action/form-action.directive.mjs +5 -2
- package/components/data/form/esm2022/form-field/form-field.directive.mjs +2 -1
- package/components/data/form/esm2022/form.component.mjs +15 -1
- package/components/data/form/esm2022/form.props.mjs +2 -1
- package/components/data/form/fesm2022/index.mjs +20 -1
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/form/form.component.d.ts +1 -0
- package/components/data/list/bundles/index.umd.js +53 -10
- package/components/data/list/esm2022/list.component.mjs +51 -10
- package/components/data/list/esm2022/list.props.mjs +4 -2
- package/components/data/list/fesm2022/index.mjs +53 -10
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/list.component.d.ts +7 -0
- package/components/data/pagination/bundles/index.umd.js +502 -106
- package/components/data/pagination/esm2022/pagination.component.mjs +500 -105
- package/components/data/pagination/esm2022/pagination.props.mjs +4 -1
- package/components/data/pagination/fesm2022/index.mjs +502 -104
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/pagination.component.d.ts +21 -1
- package/components/data/table/bundles/index.umd.js +89 -11
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +3 -2
- package/components/data/table/esm2022/table-column/table-column.props.mjs +2 -1
- package/components/data/table/esm2022/table.component.mjs +82 -12
- package/components/data/table/esm2022/table.props.mjs +7 -1
- package/components/data/table/fesm2022/index.mjs +90 -12
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/table-column/table-column.directive.d.ts +1 -0
- package/components/data/table/table.component.d.ts +17 -0
- package/components/input/epoch/base-date-time.component.d.ts +3 -1
- package/components/input/epoch/bundles/index.umd.js +123 -65
- package/components/input/epoch/esm2022/base-date-time.component.mjs +31 -20
- package/components/input/epoch/esm2022/date/date.component.mjs +5 -6
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +45 -22
- package/components/input/epoch/esm2022/date-time/date-time.props.mjs +3 -2
- package/components/input/epoch/esm2022/time/time.component.mjs +40 -14
- package/components/input/epoch/esm2022/time/time.props.mjs +3 -2
- package/components/input/epoch/fesm2022/index.mjs +118 -60
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/bundles/index.umd.js +107 -38
- package/components/input/slider/esm2022/slider.component.mjs +86 -18
- package/components/input/slider/esm2022/slider.props.mjs +5 -3
- package/components/input/slider/fesm2022/index.mjs +88 -19
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/slider.component.d.ts +5 -0
- package/npm-shrinkwrap.json +2 -2
- package/oAuth/esm2022/oAuth.service.mjs +1 -1
- package/oAuth/fesm2022/index.mjs.map +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +84 -34
- package/runtime/base/components/app-component/app.component.d.ts +10 -3
- package/runtime/base/esm2022/components/app-component/app.component.mjs +85 -34
- package/runtime/base/esm2022/util/wm-route-reuse-strategy.mjs +2 -2
- package/runtime/base/fesm2022/index.mjs +85 -35
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/scripts/datatable/datatable.js +56 -10
|
@@ -4,11 +4,14 @@ import { register, PROP_BOOLEAN, PROP_STRING, PROP_ANY, PROP_NUMBER, StylableCom
|
|
|
4
4
|
import * as i2 from '@angular/forms';
|
|
5
5
|
import { FormsModule } from '@angular/forms';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
|
-
import { EventEmitter, Component, SkipSelf, Inject, Optional, Output } from '@angular/core';
|
|
7
|
+
import { EventEmitter, Component, SkipSelf, Inject, Optional, Output, ViewChild } from '@angular/core';
|
|
8
8
|
import { debounce, isDefined, AppConstants, DataSource, triggerFn, $appDigest, $watch, switchClass } from '@wm/core';
|
|
9
|
-
import { forEach, isArray, isEmpty, get, isString, isNull } from 'lodash-es';
|
|
9
|
+
import { forEach, isArray, isEmpty, get, isString, isNull, range } from 'lodash-es';
|
|
10
10
|
import * as i3 from 'ngx-bootstrap/pagination';
|
|
11
11
|
import { PaginationModule } from 'ngx-bootstrap/pagination';
|
|
12
|
+
import * as i4 from 'ngx-bootstrap/dropdown';
|
|
13
|
+
import { BsDropdownDirective, BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
14
|
+
import { MenuComponent } from '@wm/components/navigation/menu';
|
|
12
15
|
|
|
13
16
|
const registerProps = () => {
|
|
14
17
|
register('wm-pagination', new Map([
|
|
@@ -17,6 +20,9 @@ const registerProps = () => {
|
|
|
17
20
|
['dataset', PROP_ANY],
|
|
18
21
|
['directionlinks', { value: true, ...PROP_BOOLEAN }],
|
|
19
22
|
['forceellipses', { value: true, ...PROP_BOOLEAN }],
|
|
23
|
+
['allowpagesizechange', { value: false, ...PROP_BOOLEAN }],
|
|
24
|
+
['allowpagesizechange', { value: false, ...PROP_BOOLEAN }],
|
|
25
|
+
['pagesizeoptions', { value: '', ...PROP_STRING }],
|
|
20
26
|
['maxResults', PROP_NUMBER],
|
|
21
27
|
['maxsize', { value: 5, ...PROP_NUMBER }],
|
|
22
28
|
['name', PROP_STRING],
|
|
@@ -30,61 +36,129 @@ const registerProps = () => {
|
|
|
30
36
|
};
|
|
31
37
|
|
|
32
38
|
const _c0 = ["wmPagination", ""];
|
|
33
|
-
const _c1 = a0 => ({ "
|
|
34
|
-
const _c2 =
|
|
39
|
+
const _c1 = a0 => ({ "active": a0 });
|
|
40
|
+
const _c2 = a0 => ({ "disabled": a0 });
|
|
41
|
+
const _c3 = () => ({ standalone: true });
|
|
42
|
+
function PaginationComponent_Conditional_0_Conditional_1_ul_7_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
44
|
+
i0.ɵɵelementStart(0, "li", 17)(1, "a", 18);
|
|
45
|
+
i0.ɵɵlistener("click", function PaginationComponent_Conditional_0_Conditional_1_ul_7_For_2_Template_a_click_1_listener($event) { const option_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onPageSizeChange($event, option_r4)); })("keydown", function PaginationComponent_Conditional_0_Conditional_1_ul_7_For_2_Template_a_keydown_1_listener($event) { const ɵ$index_21_r5 = i0.ɵɵrestoreView(_r3).$index; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onDropdownKeydown($event, ɵ$index_21_r5)); });
|
|
46
|
+
i0.ɵɵtext(2);
|
|
47
|
+
i0.ɵɵelementEnd()();
|
|
48
|
+
} if (rf & 2) {
|
|
49
|
+
const option_r4 = ctx.$implicit;
|
|
50
|
+
const ɵ$index_21_r5 = ctx.$index;
|
|
51
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
52
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c1, option_r4 == ctx_r1.maxResults));
|
|
53
|
+
i0.ɵɵadvance();
|
|
54
|
+
i0.ɵɵattribute("tabindex", ɵ$index_21_r5 === ctx_r1.focusedIndex ? 0 : -1);
|
|
55
|
+
i0.ɵɵadvance();
|
|
56
|
+
i0.ɵɵtextInterpolate(option_r4);
|
|
57
|
+
} }
|
|
58
|
+
function PaginationComponent_Conditional_0_Conditional_1_ul_7_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
+
i0.ɵɵelementStart(0, "ul", 16);
|
|
60
|
+
i0.ɵɵrepeaterCreate(1, PaginationComponent_Conditional_0_Conditional_1_ul_7_For_2_Template, 3, 5, "li", 17, i0.ɵɵrepeaterTrackByIdentity);
|
|
61
|
+
i0.ɵɵelementEnd();
|
|
62
|
+
} if (rf & 2) {
|
|
63
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
64
|
+
i0.ɵɵadvance();
|
|
65
|
+
i0.ɵɵrepeater(ctx_r1.pageSizeOptions);
|
|
66
|
+
} }
|
|
67
|
+
function PaginationComponent_Conditional_0_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
68
|
+
i0.ɵɵelementStart(0, "li", 15)(1, "div")(2, "span");
|
|
69
|
+
i0.ɵɵtext(3);
|
|
70
|
+
i0.ɵɵelementEnd();
|
|
71
|
+
i0.ɵɵelementStart(4, "span");
|
|
72
|
+
i0.ɵɵtext(5, "of");
|
|
73
|
+
i0.ɵɵelementEnd();
|
|
74
|
+
i0.ɵɵelementStart(6, "span");
|
|
75
|
+
i0.ɵɵtext(7);
|
|
76
|
+
i0.ɵɵelementEnd()()();
|
|
77
|
+
} if (rf & 2) {
|
|
78
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
79
|
+
i0.ɵɵadvance(3);
|
|
80
|
+
i0.ɵɵtextInterpolate2("", ctx_r1.rowSummary.startIndex, " - ", ctx_r1.rowSummary.endIndex, "");
|
|
81
|
+
i0.ɵɵadvance(4);
|
|
82
|
+
i0.ɵɵtextInterpolate(ctx_r1.rowSummary.totalRecords);
|
|
83
|
+
} }
|
|
35
84
|
function PaginationComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
36
85
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
37
|
-
i0.ɵɵelementStart(0, "li",
|
|
38
|
-
i0.ɵɵ
|
|
39
|
-
i0.ɵɵ
|
|
40
|
-
i0.ɵɵ
|
|
86
|
+
i0.ɵɵelementStart(0, "li", 9)(1, "label", 10);
|
|
87
|
+
i0.ɵɵtext(2);
|
|
88
|
+
i0.ɵɵelementEnd();
|
|
89
|
+
i0.ɵɵelementStart(3, "div", 11);
|
|
90
|
+
i0.ɵɵlistener("isOpenChange", function PaginationComponent_Conditional_0_Conditional_1_Template_div_isOpenChange_3_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onOpenChange($event)); });
|
|
91
|
+
i0.ɵɵelementStart(4, "button", 12);
|
|
92
|
+
i0.ɵɵtext(5);
|
|
93
|
+
i0.ɵɵelement(6, "span", 13);
|
|
94
|
+
i0.ɵɵelementEnd();
|
|
95
|
+
i0.ɵɵtemplate(7, PaginationComponent_Conditional_0_Conditional_1_ul_7_Template, 3, 0, "ul", 14);
|
|
96
|
+
i0.ɵɵelementEnd()();
|
|
97
|
+
i0.ɵɵtemplate(8, PaginationComponent_Conditional_0_Conditional_1_Conditional_8_Template, 8, 3, "li", 15);
|
|
98
|
+
} if (rf & 2) {
|
|
99
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
100
|
+
i0.ɵɵadvance();
|
|
101
|
+
i0.ɵɵproperty("title", ctx_r1.appLocale.LABEL_ITEMS_PER_PAGE);
|
|
102
|
+
i0.ɵɵadvance();
|
|
103
|
+
i0.ɵɵtextInterpolate1("", ctx_r1.appLocale.LABEL_ITEMS_PER_PAGE, " :");
|
|
104
|
+
i0.ɵɵadvance(3);
|
|
105
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.maxResults, " ");
|
|
106
|
+
i0.ɵɵadvance(3);
|
|
107
|
+
i0.ɵɵconditional((ctx_r1.rowSummary == null ? null : ctx_r1.rowSummary.totalRecords) ? 8 : -1);
|
|
108
|
+
} }
|
|
109
|
+
function PaginationComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
110
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
111
|
+
i0.ɵɵelementStart(0, "li", 5)(1, "a", 19);
|
|
112
|
+
i0.ɵɵlistener("click", function PaginationComponent_Conditional_0_Conditional_2_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.navigatePage("first", $event)); });
|
|
113
|
+
i0.ɵɵelementStart(2, "span", 20);
|
|
114
|
+
i0.ɵɵelement(3, "i", 21);
|
|
41
115
|
i0.ɵɵelementEnd();
|
|
42
|
-
i0.ɵɵelementStart(4, "span",
|
|
116
|
+
i0.ɵɵelementStart(4, "span", 22);
|
|
43
117
|
i0.ɵɵtext(5);
|
|
44
118
|
i0.ɵɵelementEnd()()();
|
|
45
119
|
} if (rf & 2) {
|
|
46
120
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
47
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4,
|
|
121
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c2, ctx_r1.isDisableFirst));
|
|
48
122
|
i0.ɵɵadvance();
|
|
49
123
|
i0.ɵɵproperty("title", ctx_r1.appLocale.LABEL_FIRST);
|
|
50
124
|
i0.ɵɵattribute("aria-disabled", ctx_r1.isDisableFirst);
|
|
51
125
|
i0.ɵɵadvance(4);
|
|
52
126
|
i0.ɵɵtextInterpolate1("Go to first page ", ctx_r1.isDisableFirst ? " , Disabled" : "", "");
|
|
53
127
|
} }
|
|
54
|
-
function
|
|
55
|
-
const
|
|
56
|
-
i0.ɵɵelementStart(0, "li",
|
|
57
|
-
i0.ɵɵlistener("click", function
|
|
58
|
-
i0.ɵɵelementStart(2, "span",
|
|
59
|
-
i0.ɵɵelement(3, "i",
|
|
128
|
+
function PaginationComponent_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
129
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
130
|
+
i0.ɵɵelementStart(0, "li", 5)(1, "a", 23);
|
|
131
|
+
i0.ɵɵlistener("click", function PaginationComponent_Conditional_0_Conditional_3_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.navigatePage("prev", $event)); });
|
|
132
|
+
i0.ɵɵelementStart(2, "span", 20);
|
|
133
|
+
i0.ɵɵelement(3, "i", 24);
|
|
60
134
|
i0.ɵɵelementEnd();
|
|
61
|
-
i0.ɵɵelementStart(4, "span",
|
|
135
|
+
i0.ɵɵelementStart(4, "span", 22);
|
|
62
136
|
i0.ɵɵtext(5);
|
|
63
137
|
i0.ɵɵelementEnd()()();
|
|
64
138
|
} if (rf & 2) {
|
|
65
139
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
66
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4,
|
|
140
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c2, ctx_r1.isDisablePrevious));
|
|
67
141
|
i0.ɵɵadvance();
|
|
68
142
|
i0.ɵɵproperty("title", ctx_r1.appLocale.LABEL_PREVIOUS);
|
|
69
143
|
i0.ɵɵattribute("aria-disabled", ctx_r1.isDisablePrevious);
|
|
70
144
|
i0.ɵɵadvance(4);
|
|
71
145
|
i0.ɵɵtextInterpolate1("Go to previous page ", ctx_r1.isDisablePrevious ? ", Disabled" : "", "");
|
|
72
146
|
} }
|
|
73
|
-
function
|
|
74
|
-
const
|
|
75
|
-
i0.ɵɵelementStart(0, "li",
|
|
76
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
77
|
-
i0.ɵɵlistener("keydown", function
|
|
147
|
+
function PaginationComponent_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
148
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
149
|
+
i0.ɵɵelementStart(0, "li", 6)(1, "a", 25)(2, "input", 26);
|
|
150
|
+
i0.ɵɵtwoWayListener("ngModelChange", function PaginationComponent_Conditional_0_Conditional_4_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.dn.currentPage, $event) || (ctx_r1.dn.currentPage = $event); return i0.ɵɵresetView($event); });
|
|
151
|
+
i0.ɵɵlistener("keydown", function PaginationComponent_Conditional_0_Conditional_4_Template_input_keydown_2_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onKeyDown($event)); })("change", function PaginationComponent_Conditional_0_Conditional_4_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onModelChange($event)); });
|
|
78
152
|
i0.ɵɵelementEnd()()();
|
|
79
153
|
} if (rf & 2) {
|
|
80
154
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
81
155
|
i0.ɵɵadvance(2);
|
|
82
156
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.dn.currentPage);
|
|
83
|
-
i0.ɵɵproperty("disabled", ctx_r1.isDisableCurrent)("ngModelOptions", i0.ɵɵpureFunction0(4,
|
|
157
|
+
i0.ɵɵproperty("disabled", ctx_r1.isDisableCurrent)("ngModelOptions", i0.ɵɵpureFunction0(4, _c3));
|
|
84
158
|
i0.ɵɵattribute("aria-label", "Showing Page " + ctx_r1.dn.currentPage + " of " + ctx_r1.pageCount);
|
|
85
159
|
} }
|
|
86
|
-
function
|
|
87
|
-
i0.ɵɵelementStart(0, "li",
|
|
160
|
+
function PaginationComponent_Conditional_0_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
161
|
+
i0.ɵɵelementStart(0, "li", 7)(1, "a", 27);
|
|
88
162
|
i0.ɵɵtext(2);
|
|
89
163
|
i0.ɵɵelementEnd()();
|
|
90
164
|
} if (rf & 2) {
|
|
@@ -94,46 +168,46 @@ function PaginationComponent_Conditional_0_Conditional_4_Template(rf, ctx) { if
|
|
|
94
168
|
i0.ɵɵadvance();
|
|
95
169
|
i0.ɵɵtextInterpolate1(" / ", ctx_r1.pageCount, "");
|
|
96
170
|
} }
|
|
97
|
-
function
|
|
98
|
-
const
|
|
99
|
-
i0.ɵɵelementStart(0, "li",
|
|
100
|
-
i0.ɵɵlistener("click", function
|
|
101
|
-
i0.ɵɵelementStart(2, "span",
|
|
102
|
-
i0.ɵɵelement(3, "i",
|
|
171
|
+
function PaginationComponent_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
172
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
173
|
+
i0.ɵɵelementStart(0, "li", 5)(1, "a", 28);
|
|
174
|
+
i0.ɵɵlistener("click", function PaginationComponent_Conditional_0_Conditional_6_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.navigatePage("next", $event)); });
|
|
175
|
+
i0.ɵɵelementStart(2, "span", 20);
|
|
176
|
+
i0.ɵɵelement(3, "i", 29);
|
|
103
177
|
i0.ɵɵelementEnd();
|
|
104
|
-
i0.ɵɵelementStart(4, "span",
|
|
178
|
+
i0.ɵɵelementStart(4, "span", 22);
|
|
105
179
|
i0.ɵɵtext(5);
|
|
106
180
|
i0.ɵɵelementEnd()()();
|
|
107
181
|
} if (rf & 2) {
|
|
108
182
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
109
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4,
|
|
183
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c2, ctx_r1.isDisableNext));
|
|
110
184
|
i0.ɵɵadvance();
|
|
111
185
|
i0.ɵɵproperty("title", ctx_r1.appLocale.LABEL_NEXT);
|
|
112
186
|
i0.ɵɵattribute("aria-disabled", ctx_r1.isDisableNext);
|
|
113
187
|
i0.ɵɵadvance(4);
|
|
114
188
|
i0.ɵɵtextInterpolate1("Go to next page ", ctx_r1.isDisableNext ? " , Disabled" : "", "");
|
|
115
189
|
} }
|
|
116
|
-
function
|
|
117
|
-
const
|
|
118
|
-
i0.ɵɵelementStart(0, "li",
|
|
119
|
-
i0.ɵɵlistener("click", function
|
|
120
|
-
i0.ɵɵelementStart(2, "span",
|
|
121
|
-
i0.ɵɵelement(3, "i",
|
|
190
|
+
function PaginationComponent_Conditional_0_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
191
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
192
|
+
i0.ɵɵelementStart(0, "li", 5)(1, "a", 30);
|
|
193
|
+
i0.ɵɵlistener("click", function PaginationComponent_Conditional_0_Conditional_7_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.navigatePage("last", $event)); });
|
|
194
|
+
i0.ɵɵelementStart(2, "span", 20);
|
|
195
|
+
i0.ɵɵelement(3, "i", 31);
|
|
122
196
|
i0.ɵɵelementEnd();
|
|
123
|
-
i0.ɵɵelementStart(4, "span",
|
|
197
|
+
i0.ɵɵelementStart(4, "span", 22);
|
|
124
198
|
i0.ɵɵtext(5);
|
|
125
199
|
i0.ɵɵelementEnd()()();
|
|
126
200
|
} if (rf & 2) {
|
|
127
201
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
128
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4,
|
|
202
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c2, ctx_r1.isDisableLast));
|
|
129
203
|
i0.ɵɵadvance();
|
|
130
204
|
i0.ɵɵproperty("title", ctx_r1.appLocale.LABEL_LAST);
|
|
131
205
|
i0.ɵɵattribute("aria-disabled", ctx_r1.isDisableLast);
|
|
132
206
|
i0.ɵɵadvance(4);
|
|
133
207
|
i0.ɵɵtextInterpolate1("Go to last page ", ctx_r1.isDisableLast ? " , Disabled" : "", "");
|
|
134
208
|
} }
|
|
135
|
-
function
|
|
136
|
-
i0.ɵɵelementStart(0, "li",
|
|
209
|
+
function PaginationComponent_Conditional_0_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
210
|
+
i0.ɵɵelementStart(0, "li", 8)(1, "a", 32);
|
|
137
211
|
i0.ɵɵtext(2);
|
|
138
212
|
i0.ɵɵelementEnd()();
|
|
139
213
|
} if (rf & 2) {
|
|
@@ -143,13 +217,13 @@ function PaginationComponent_Conditional_0_Conditional_7_Template(rf, ctx) { if
|
|
|
143
217
|
} }
|
|
144
218
|
function PaginationComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
145
219
|
i0.ɵɵelementStart(0, "ul");
|
|
146
|
-
i0.ɵɵtemplate(1, PaginationComponent_Conditional_0_Conditional_1_Template, 6, 6, "li",
|
|
220
|
+
i0.ɵɵtemplate(1, PaginationComponent_Conditional_0_Conditional_1_Template, 9, 4)(2, PaginationComponent_Conditional_0_Conditional_2_Template, 6, 6, "li", 5)(3, PaginationComponent_Conditional_0_Conditional_3_Template, 6, 6, "li", 5)(4, PaginationComponent_Conditional_0_Conditional_4_Template, 3, 5, "li", 6)(5, PaginationComponent_Conditional_0_Conditional_5_Template, 3, 2, "li", 7)(6, PaginationComponent_Conditional_0_Conditional_6_Template, 6, 6, "li", 5)(7, PaginationComponent_Conditional_0_Conditional_7_Template, 6, 6, "li", 5)(8, PaginationComponent_Conditional_0_Conditional_8_Template, 3, 2, "li", 8);
|
|
147
221
|
i0.ɵɵelementEnd();
|
|
148
222
|
} if (rf & 2) {
|
|
149
223
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
150
224
|
i0.ɵɵclassMapInterpolate1("pagination advanced ", ctx_r1.navigationClass, "");
|
|
151
225
|
i0.ɵɵadvance();
|
|
152
|
-
i0.ɵɵconditional(
|
|
226
|
+
i0.ɵɵconditional(ctx_r1.allowpagesizechange ? 1 : -1);
|
|
153
227
|
i0.ɵɵadvance();
|
|
154
228
|
i0.ɵɵconditional(!(ctx_r1.dataSize <= ctx_r1.maxResults) ? 2 : -1);
|
|
155
229
|
i0.ɵɵadvance();
|
|
@@ -161,33 +235,106 @@ function PaginationComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
161
235
|
i0.ɵɵadvance();
|
|
162
236
|
i0.ɵɵconditional(!(ctx_r1.dataSize <= ctx_r1.maxResults) ? 6 : -1);
|
|
163
237
|
i0.ɵɵadvance();
|
|
164
|
-
i0.ɵɵconditional(ctx_r1.
|
|
238
|
+
i0.ɵɵconditional(!(ctx_r1.dataSize <= ctx_r1.maxResults) ? 7 : -1);
|
|
239
|
+
i0.ɵɵadvance();
|
|
240
|
+
i0.ɵɵconditional(ctx_r1.showrecordcount ? 8 : -1);
|
|
165
241
|
} }
|
|
166
|
-
function
|
|
167
|
-
const
|
|
168
|
-
i0.ɵɵelementStart(0, "
|
|
169
|
-
i0.ɵɵlistener("click", function
|
|
170
|
-
i0.ɵɵ
|
|
171
|
-
i0.ɵɵ
|
|
242
|
+
function PaginationComponent_Conditional_1_Conditional_1_ul_7_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
243
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
244
|
+
i0.ɵɵelementStart(0, "li", 17)(1, "a", 18);
|
|
245
|
+
i0.ɵɵlistener("click", function PaginationComponent_Conditional_1_Conditional_1_ul_7_For_2_Template_a_click_1_listener($event) { const option_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onPageSizeChange($event, option_r14)); })("keydown", function PaginationComponent_Conditional_1_Conditional_1_ul_7_For_2_Template_a_keydown_1_listener($event) { const ɵ$index_128_r15 = i0.ɵɵrestoreView(_r13).$index; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onDropdownKeydown($event, ɵ$index_128_r15)); });
|
|
246
|
+
i0.ɵɵtext(2);
|
|
247
|
+
i0.ɵɵelementEnd()();
|
|
248
|
+
} if (rf & 2) {
|
|
249
|
+
const option_r14 = ctx.$implicit;
|
|
250
|
+
const ɵ$index_128_r15 = ctx.$index;
|
|
251
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
252
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c1, option_r14 == ctx_r1.maxResults));
|
|
253
|
+
i0.ɵɵadvance();
|
|
254
|
+
i0.ɵɵattribute("tabindex", ɵ$index_128_r15 === ctx_r1.focusedIndex ? 0 : -1);
|
|
255
|
+
i0.ɵɵadvance();
|
|
256
|
+
i0.ɵɵtextInterpolate(option_r14);
|
|
257
|
+
} }
|
|
258
|
+
function PaginationComponent_Conditional_1_Conditional_1_ul_7_Template(rf, ctx) { if (rf & 1) {
|
|
259
|
+
i0.ɵɵelementStart(0, "ul", 16);
|
|
260
|
+
i0.ɵɵrepeaterCreate(1, PaginationComponent_Conditional_1_Conditional_1_ul_7_For_2_Template, 3, 5, "li", 17, i0.ɵɵrepeaterTrackByIdentity);
|
|
172
261
|
i0.ɵɵelementEnd();
|
|
173
|
-
|
|
174
|
-
i0.ɵɵ
|
|
262
|
+
} if (rf & 2) {
|
|
263
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
264
|
+
i0.ɵɵadvance();
|
|
265
|
+
i0.ɵɵrepeater(ctx_r1.pageSizeOptions);
|
|
266
|
+
} }
|
|
267
|
+
function PaginationComponent_Conditional_1_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
268
|
+
i0.ɵɵelementStart(0, "li", 15)(1, "div")(2, "span");
|
|
269
|
+
i0.ɵɵtext(3);
|
|
270
|
+
i0.ɵɵelementEnd();
|
|
271
|
+
i0.ɵɵelementStart(4, "span");
|
|
272
|
+
i0.ɵɵtext(5, "of");
|
|
273
|
+
i0.ɵɵelementEnd();
|
|
274
|
+
i0.ɵɵelementStart(6, "span");
|
|
175
275
|
i0.ɵɵtext(7);
|
|
176
276
|
i0.ɵɵelementEnd()()();
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
i0.ɵɵ
|
|
180
|
-
i0.ɵɵ
|
|
277
|
+
} if (rf & 2) {
|
|
278
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
279
|
+
i0.ɵɵadvance(3);
|
|
280
|
+
i0.ɵɵtextInterpolate2("", ctx_r1.rowSummary.startIndex, " - ", ctx_r1.rowSummary.endIndex, "");
|
|
281
|
+
i0.ɵɵadvance(4);
|
|
282
|
+
i0.ɵɵtextInterpolate(ctx_r1.rowSummary.totalRecords);
|
|
283
|
+
} }
|
|
284
|
+
function PaginationComponent_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
285
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
286
|
+
i0.ɵɵelementStart(0, "li", 9)(1, "label", 10);
|
|
287
|
+
i0.ɵɵtext(2);
|
|
181
288
|
i0.ɵɵelementEnd();
|
|
182
|
-
i0.ɵɵ
|
|
183
|
-
i0.ɵɵ
|
|
184
|
-
i0.ɵɵ
|
|
289
|
+
i0.ɵɵelementStart(3, "div", 11);
|
|
290
|
+
i0.ɵɵlistener("isOpenChange", function PaginationComponent_Conditional_1_Conditional_1_Template_div_isOpenChange_3_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onOpenChange($event)); });
|
|
291
|
+
i0.ɵɵelementStart(4, "button", 12);
|
|
292
|
+
i0.ɵɵtext(5);
|
|
293
|
+
i0.ɵɵelement(6, "span", 13);
|
|
294
|
+
i0.ɵɵelementEnd();
|
|
295
|
+
i0.ɵɵtemplate(7, PaginationComponent_Conditional_1_Conditional_1_ul_7_Template, 3, 0, "ul", 14);
|
|
296
|
+
i0.ɵɵelementEnd()();
|
|
297
|
+
i0.ɵɵtemplate(8, PaginationComponent_Conditional_1_Conditional_1_Conditional_8_Template, 8, 3, "li", 15);
|
|
298
|
+
} if (rf & 2) {
|
|
299
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
300
|
+
i0.ɵɵadvance();
|
|
301
|
+
i0.ɵɵproperty("title", ctx_r1.appLocale.LABEL_ITEMS_PER_PAGE);
|
|
302
|
+
i0.ɵɵadvance();
|
|
303
|
+
i0.ɵɵtextInterpolate1("", ctx_r1.appLocale.LABEL_ITEMS_PER_PAGE, " :");
|
|
304
|
+
i0.ɵɵadvance(3);
|
|
305
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.maxResults, " ");
|
|
306
|
+
i0.ɵɵadvance(3);
|
|
307
|
+
i0.ɵɵconditional((ctx_r1.rowSummary == null ? null : ctx_r1.rowSummary.totalRecords) ? 8 : -1);
|
|
308
|
+
} }
|
|
309
|
+
function PaginationComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
310
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
311
|
+
i0.ɵɵelementStart(0, "ul");
|
|
312
|
+
i0.ɵɵtemplate(1, PaginationComponent_Conditional_1_Conditional_1_Template, 9, 4);
|
|
313
|
+
i0.ɵɵelementStart(2, "li", 33)(3, "a", 34);
|
|
314
|
+
i0.ɵɵlistener("click", function PaginationComponent_Conditional_1_Template_a_click_3_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.navigatePage("prev", $event)); });
|
|
315
|
+
i0.ɵɵelementStart(4, "span", 20);
|
|
316
|
+
i0.ɵɵelement(5, "i", 24);
|
|
317
|
+
i0.ɵɵelementEnd();
|
|
318
|
+
i0.ɵɵtext(6);
|
|
319
|
+
i0.ɵɵelementStart(7, "span", 22);
|
|
320
|
+
i0.ɵɵtext(8);
|
|
321
|
+
i0.ɵɵelementEnd()()();
|
|
322
|
+
i0.ɵɵelementStart(9, "li", 35)(10, "a", 34);
|
|
323
|
+
i0.ɵɵlistener("click", function PaginationComponent_Conditional_1_Template_a_click_10_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.navigatePage("next", $event)); });
|
|
324
|
+
i0.ɵɵelementStart(11, "span", 20);
|
|
325
|
+
i0.ɵɵelement(12, "i", 29);
|
|
326
|
+
i0.ɵɵelementEnd();
|
|
327
|
+
i0.ɵɵtext(13);
|
|
328
|
+
i0.ɵɵelementStart(14, "span", 22);
|
|
329
|
+
i0.ɵɵtext(15);
|
|
185
330
|
i0.ɵɵelementEnd()()()();
|
|
186
331
|
} if (rf & 2) {
|
|
187
332
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
188
333
|
i0.ɵɵclassMapInterpolate1("pager ", ctx_r1.navigationClass, "");
|
|
189
334
|
i0.ɵɵadvance();
|
|
190
|
-
i0.ɵɵ
|
|
335
|
+
i0.ɵɵconditional(ctx_r1.allowpagesizechange ? 1 : -1);
|
|
336
|
+
i0.ɵɵadvance();
|
|
337
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c2, ctx_r1.isDisablePrevious));
|
|
191
338
|
i0.ɵɵadvance();
|
|
192
339
|
i0.ɵɵattribute("aria-disabled", ctx_r1.isDisablePrevious);
|
|
193
340
|
i0.ɵɵadvance(3);
|
|
@@ -195,7 +342,7 @@ function PaginationComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
195
342
|
i0.ɵɵadvance(2);
|
|
196
343
|
i0.ɵɵtextInterpolate(ctx_r1.isDisablePrevious ? " , Disabled" : "");
|
|
197
344
|
i0.ɵɵadvance();
|
|
198
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
345
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c2, ctx_r1.isDisableNext));
|
|
199
346
|
i0.ɵɵadvance();
|
|
200
347
|
i0.ɵɵattribute("aria-disabled", ctx_r1.isDisableNext);
|
|
201
348
|
i0.ɵɵadvance(3);
|
|
@@ -203,21 +350,96 @@ function PaginationComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
203
350
|
i0.ɵɵadvance(2);
|
|
204
351
|
i0.ɵɵtextInterpolate(ctx_r1.isDisableNext ? " , Disabled" : "");
|
|
205
352
|
} }
|
|
206
|
-
function
|
|
207
|
-
const
|
|
208
|
-
i0.ɵɵelementStart(0, "
|
|
209
|
-
i0.ɵɵlistener("
|
|
353
|
+
function PaginationComponent_Conditional_2_Conditional_0_ul_7_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
354
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
355
|
+
i0.ɵɵelementStart(0, "li", 17)(1, "a", 18);
|
|
356
|
+
i0.ɵɵlistener("click", function PaginationComponent_Conditional_2_Conditional_0_ul_7_For_2_Template_a_click_1_listener($event) { const option_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onPageSizeChange($event, option_r18)); })("keydown", function PaginationComponent_Conditional_2_Conditional_0_ul_7_For_2_Template_a_keydown_1_listener($event) { const ɵ$index_190_r19 = i0.ɵɵrestoreView(_r17).$index; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onDropdownKeydown($event, ɵ$index_190_r19)); });
|
|
357
|
+
i0.ɵɵtext(2);
|
|
358
|
+
i0.ɵɵelementEnd()();
|
|
359
|
+
} if (rf & 2) {
|
|
360
|
+
const option_r18 = ctx.$implicit;
|
|
361
|
+
const ɵ$index_190_r19 = ctx.$index;
|
|
362
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
363
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c1, option_r18 == ctx_r1.maxResults));
|
|
364
|
+
i0.ɵɵadvance();
|
|
365
|
+
i0.ɵɵattribute("tabindex", ɵ$index_190_r19 === ctx_r1.focusedIndex ? 0 : -1);
|
|
366
|
+
i0.ɵɵadvance();
|
|
367
|
+
i0.ɵɵtextInterpolate(option_r18);
|
|
368
|
+
} }
|
|
369
|
+
function PaginationComponent_Conditional_2_Conditional_0_ul_7_Template(rf, ctx) { if (rf & 1) {
|
|
370
|
+
i0.ɵɵelementStart(0, "ul", 16);
|
|
371
|
+
i0.ɵɵrepeaterCreate(1, PaginationComponent_Conditional_2_Conditional_0_ul_7_For_2_Template, 3, 5, "li", 17, i0.ɵɵrepeaterTrackByIdentity);
|
|
210
372
|
i0.ɵɵelementEnd();
|
|
211
373
|
} if (rf & 2) {
|
|
212
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
374
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
375
|
+
i0.ɵɵadvance();
|
|
376
|
+
i0.ɵɵrepeater(ctx_r1.pageSizeOptions);
|
|
377
|
+
} }
|
|
378
|
+
function PaginationComponent_Conditional_2_Conditional_0_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
379
|
+
i0.ɵɵelementStart(0, "div", 15)(1, "div")(2, "span");
|
|
380
|
+
i0.ɵɵtext(3);
|
|
381
|
+
i0.ɵɵelementEnd();
|
|
382
|
+
i0.ɵɵelementStart(4, "span");
|
|
383
|
+
i0.ɵɵtext(5, "of");
|
|
384
|
+
i0.ɵɵelementEnd();
|
|
385
|
+
i0.ɵɵelementStart(6, "span");
|
|
386
|
+
i0.ɵɵtext(7);
|
|
387
|
+
i0.ɵɵelementEnd()()();
|
|
388
|
+
} if (rf & 2) {
|
|
389
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
390
|
+
i0.ɵɵadvance(3);
|
|
391
|
+
i0.ɵɵtextInterpolate2("", ctx_r1.rowSummary.startIndex, " - ", ctx_r1.rowSummary.endIndex, "");
|
|
392
|
+
i0.ɵɵadvance(4);
|
|
393
|
+
i0.ɵɵtextInterpolate(ctx_r1.rowSummary.totalRecords);
|
|
394
|
+
} }
|
|
395
|
+
function PaginationComponent_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
396
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
397
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "label", 10);
|
|
398
|
+
i0.ɵɵtext(2);
|
|
399
|
+
i0.ɵɵelementEnd();
|
|
400
|
+
i0.ɵɵelementStart(3, "div", 11);
|
|
401
|
+
i0.ɵɵlistener("isOpenChange", function PaginationComponent_Conditional_2_Conditional_0_Template_div_isOpenChange_3_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onOpenChange($event)); });
|
|
402
|
+
i0.ɵɵelementStart(4, "button", 12);
|
|
403
|
+
i0.ɵɵtext(5);
|
|
404
|
+
i0.ɵɵelement(6, "span", 13);
|
|
405
|
+
i0.ɵɵelementEnd();
|
|
406
|
+
i0.ɵɵtemplate(7, PaginationComponent_Conditional_2_Conditional_0_ul_7_Template, 3, 0, "ul", 14);
|
|
407
|
+
i0.ɵɵelementEnd()();
|
|
408
|
+
i0.ɵɵtemplate(8, PaginationComponent_Conditional_2_Conditional_0_Conditional_8_Template, 8, 3, "div", 15);
|
|
409
|
+
} if (rf & 2) {
|
|
410
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
411
|
+
i0.ɵɵadvance();
|
|
412
|
+
i0.ɵɵproperty("title", ctx_r1.appLocale.LABEL_ITEMS_PER_PAGE);
|
|
413
|
+
i0.ɵɵadvance();
|
|
414
|
+
i0.ɵɵtextInterpolate1("", ctx_r1.appLocale.LABEL_ITEMS_PER_PAGE, " :");
|
|
415
|
+
i0.ɵɵadvance(3);
|
|
416
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.maxResults, " ");
|
|
417
|
+
i0.ɵɵadvance(3);
|
|
418
|
+
i0.ɵɵconditional((ctx_r1.rowSummary == null ? null : ctx_r1.rowSummary.totalRecords) ? 8 : -1);
|
|
419
|
+
} }
|
|
420
|
+
function PaginationComponent_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
421
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
|
422
|
+
i0.ɵɵelementStart(0, "pagination", 37);
|
|
423
|
+
i0.ɵɵlistener("pageChanged", function PaginationComponent_Conditional_2_Conditional_1_Template_pagination_pageChanged_0_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.pageChanged($event)); });
|
|
424
|
+
i0.ɵɵelementEnd();
|
|
425
|
+
} if (rf & 2) {
|
|
426
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
427
|
+
const pageTemplate_r21 = i0.ɵɵreference(5);
|
|
428
|
+
const prevTemplate_r22 = i0.ɵɵreference(7);
|
|
429
|
+
const nextTemplate_r23 = i0.ɵɵreference(9);
|
|
430
|
+
i0.ɵɵproperty("ngClass", ctx_r1.navigationClass)("itemsPerPage", ctx_r1.maxResults)("totalItems", ctx_r1.dataSize)("ngModelOptions", i0.ɵɵpureFunction0(12, _c3))("ngModel", ctx_r1.dn.currentPage)("boundaryLinks", ctx_r1.boundarylinks)("maxSize", ctx_r1.maxsize)("directionLinks", ctx_r1.directionlinks)("customPreviousTemplate", prevTemplate_r22)("customNextTemplate", nextTemplate_r23)("customPageTemplate", pageTemplate_r21);
|
|
217
431
|
i0.ɵɵattribute("aria-label", "Showing Page " + ctx_r1.dn.currentPage + " of " + ctx_r1.pageCount + " pages");
|
|
218
432
|
} }
|
|
433
|
+
function PaginationComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
434
|
+
i0.ɵɵtemplate(0, PaginationComponent_Conditional_2_Conditional_0_Template, 9, 4)(1, PaginationComponent_Conditional_2_Conditional_1_Template, 1, 13, "pagination", 36);
|
|
435
|
+
} if (rf & 2) {
|
|
436
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
437
|
+
i0.ɵɵconditional(ctx_r1.allowpagesizechange ? 0 : -1);
|
|
438
|
+
i0.ɵɵadvance();
|
|
439
|
+
i0.ɵɵconditional(!(ctx_r1.dataSize <= ctx_r1.maxResults) ? 1 : -1);
|
|
440
|
+
} }
|
|
219
441
|
function PaginationComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
220
|
-
i0.ɵɵelementStart(0, "ul",
|
|
442
|
+
i0.ɵɵelementStart(0, "ul", 4)(1, "li", 38)(2, "a", 32);
|
|
221
443
|
i0.ɵɵtext(3);
|
|
222
444
|
i0.ɵɵelementEnd()()();
|
|
223
445
|
} if (rf & 2) {
|
|
@@ -226,50 +448,50 @@ function PaginationComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
226
448
|
i0.ɵɵtextInterpolate2("", ctx_r1.appLocale.LABEL_TOTAL_RECORDS, ": ", ctx_r1.dataSize, "");
|
|
227
449
|
} }
|
|
228
450
|
function PaginationComponent_ng_template_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
229
|
-
i0.ɵɵelementStart(0, "span",
|
|
451
|
+
i0.ɵɵelementStart(0, "span", 22);
|
|
230
452
|
i0.ɵɵtext(1);
|
|
231
453
|
i0.ɵɵelementEnd();
|
|
232
454
|
} if (rf & 2) {
|
|
233
|
-
const
|
|
455
|
+
const page_r24 = i0.ɵɵnextContext().$implicit;
|
|
234
456
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
235
457
|
i0.ɵɵadvance();
|
|
236
|
-
i0.ɵɵtextInterpolate1(" ", ", Showing page " +
|
|
458
|
+
i0.ɵɵtextInterpolate1(" ", ", Showing page " + page_r24.number + " of " + ctx_r1.pageCount, "");
|
|
237
459
|
} }
|
|
238
460
|
function PaginationComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
239
|
-
i0.ɵɵelementStart(0, "span",
|
|
461
|
+
i0.ɵɵelementStart(0, "span", 22);
|
|
240
462
|
i0.ɵɵtext(1);
|
|
241
463
|
i0.ɵɵelementEnd();
|
|
242
464
|
i0.ɵɵtext(2);
|
|
243
|
-
i0.ɵɵtemplate(3, PaginationComponent_ng_template_4_Conditional_3_Template, 2, 1, "span",
|
|
465
|
+
i0.ɵɵtemplate(3, PaginationComponent_ng_template_4_Conditional_3_Template, 2, 1, "span", 22);
|
|
244
466
|
} if (rf & 2) {
|
|
245
|
-
const
|
|
246
|
-
i0.ɵɵattribute("data-isacitvepage",
|
|
467
|
+
const page_r24 = ctx.$implicit;
|
|
468
|
+
i0.ɵɵattribute("data-isacitvepage", page_r24.active);
|
|
247
469
|
i0.ɵɵadvance();
|
|
248
470
|
i0.ɵɵtextInterpolate("Page ");
|
|
249
471
|
i0.ɵɵadvance();
|
|
250
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
472
|
+
i0.ɵɵtextInterpolate1(" ", page_r24.number, " ");
|
|
251
473
|
i0.ɵɵadvance();
|
|
252
|
-
i0.ɵɵconditional(
|
|
474
|
+
i0.ɵɵconditional(page_r24.active ? 3 : -1);
|
|
253
475
|
} }
|
|
254
476
|
function PaginationComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
255
|
-
i0.ɵɵelementStart(0, "span",
|
|
477
|
+
i0.ɵɵelementStart(0, "span", 22);
|
|
256
478
|
i0.ɵɵtext(1);
|
|
257
479
|
i0.ɵɵelementEnd();
|
|
258
480
|
} if (rf & 2) {
|
|
259
|
-
const
|
|
260
|
-
i0.ɵɵattribute("data-isdisabled",
|
|
481
|
+
const disabled_r25 = ctx.disabled;
|
|
482
|
+
i0.ɵɵattribute("data-isdisabled", disabled_r25);
|
|
261
483
|
i0.ɵɵadvance();
|
|
262
|
-
i0.ɵɵtextInterpolate1("Go to Previous page ",
|
|
484
|
+
i0.ɵɵtextInterpolate1("Go to Previous page ", disabled_r25 ? ", Disabled" : "", "");
|
|
263
485
|
} }
|
|
264
486
|
function PaginationComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
265
|
-
i0.ɵɵelementStart(0, "span",
|
|
487
|
+
i0.ɵɵelementStart(0, "span", 22);
|
|
266
488
|
i0.ɵɵtext(1);
|
|
267
489
|
i0.ɵɵelementEnd();
|
|
268
490
|
} if (rf & 2) {
|
|
269
|
-
const
|
|
270
|
-
i0.ɵɵattribute("data-isdisabled",
|
|
491
|
+
const disabled_r26 = ctx.disabled;
|
|
492
|
+
i0.ɵɵattribute("data-isdisabled", disabled_r26);
|
|
271
493
|
i0.ɵɵadvance();
|
|
272
|
-
i0.ɵɵtextInterpolate1("Go to Next page ",
|
|
494
|
+
i0.ɵɵtextInterpolate1("Go to Next page ", disabled_r26 ? ", Disabled" : "", "");
|
|
273
495
|
} }
|
|
274
496
|
const DEFAULT_CLS = 'app-datanavigator clearfix';
|
|
275
497
|
const WIDGET_CONFIG = { widgetType: 'wm-pagination', hostClass: DEFAULT_CLS };
|
|
@@ -309,6 +531,8 @@ class PaginationComponent extends StylableComponent {
|
|
|
309
531
|
this.parent = parent;
|
|
310
532
|
this.resultEmitter = new EventEmitter();
|
|
311
533
|
this.maxResultsEmitter = new EventEmitter();
|
|
534
|
+
this.defaultPageSizeOptions = [];
|
|
535
|
+
this.focusedIndex = 0;
|
|
312
536
|
this.dn = {
|
|
313
537
|
currentPage: 1
|
|
314
538
|
};
|
|
@@ -320,10 +544,13 @@ class PaginationComponent extends StylableComponent {
|
|
|
320
544
|
this._debouncedApplyDataset = debounce(() => this.widget.dataset = this.dataset, DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);
|
|
321
545
|
this._debouncedPageChanged = debounce(event => {
|
|
322
546
|
const currentPage = event && event.page;
|
|
547
|
+
const maxResults = event && (event.pagesize || event.itemsPerPage) || this.maxResults;
|
|
323
548
|
// Do not call goToPage if page has not changed
|
|
324
|
-
if (currentPage !== this.dn.currentPage) {
|
|
549
|
+
if (currentPage !== this.dn.currentPage || this.maxResults !== maxResults) {
|
|
325
550
|
const inst = this.parent || this;
|
|
326
551
|
this.dn.currentPage = currentPage;
|
|
552
|
+
this.maxResults = maxResults;
|
|
553
|
+
this.maxResultsEmitter.emit(this.maxResults);
|
|
327
554
|
inst.invokeEventCallback('paginationchange', { $event: undefined, $index: this.dn.currentPage });
|
|
328
555
|
this.goToPage();
|
|
329
556
|
if (this.navigation === 'Basic') {
|
|
@@ -332,6 +559,11 @@ class PaginationComponent extends StylableComponent {
|
|
|
332
559
|
}
|
|
333
560
|
}, DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);
|
|
334
561
|
styler(this.nativeElement, this);
|
|
562
|
+
setTimeout(() => {
|
|
563
|
+
this.allowpagesizechange = this.parent.allowpagesizechange;
|
|
564
|
+
if (this.allowpagesizechange)
|
|
565
|
+
this.defaultPageSizeOptions = this.parent?.pagesizeoptions ? this.parent.pagesizeoptions?.split(',').map(Number).sort((a, b) => a - b) : [];
|
|
566
|
+
}, 0);
|
|
335
567
|
}
|
|
336
568
|
setResult(result) {
|
|
337
569
|
// TODO: Emit event only if result is changed
|
|
@@ -419,11 +651,22 @@ class PaginationComponent extends StylableComponent {
|
|
|
419
651
|
isDataSourceHasPaging() {
|
|
420
652
|
return this.datasource && this.datasource.execute(DataSource.Operation.IS_PAGEABLE);
|
|
421
653
|
}
|
|
654
|
+
// this function returns an object which gives summary of the current page data (ex: In UI it is shown as 1 to 10 out of 50 records)
|
|
655
|
+
getPageDetails(startIndex, endIndex, totalRecords) {
|
|
656
|
+
this.rowSummary = (isDefined(startIndex) && isDefined(endIndex) && isDefined(totalRecords)) ? {
|
|
657
|
+
startIndex: startIndex,
|
|
658
|
+
endIndex: endIndex,
|
|
659
|
+
totalRecords: totalRecords
|
|
660
|
+
} : {};
|
|
661
|
+
}
|
|
422
662
|
// Set the result for client side pagination
|
|
423
663
|
setNonPageableData(newVal) {
|
|
424
664
|
let dataSize, maxResults, currentPage, startIndex;
|
|
425
665
|
dataSize = isArray(newVal) ? newVal.length : (isEmpty(newVal) ? 0 : 1);
|
|
426
666
|
maxResults = (this.options && this.options.maxResults) || dataSize;
|
|
667
|
+
if (this.allowpagesizechange) { // when default page size is not given then use maxResults instead of options.maxResults
|
|
668
|
+
maxResults = this.maxResults;
|
|
669
|
+
}
|
|
427
670
|
// For static variable, keep the current page. For other variables without pagination reset the page to 1
|
|
428
671
|
// Fix for [WMS-23263]: gridOptions.isNextPageData flag is false when dataset is changed from script, so setting current page to 1
|
|
429
672
|
if (this.datasource && (this.datasource.execute(DataSource.Operation.IS_API_AWARE) || (this.parent.widgetType === 'wm-table' && (this.parent.gridOptions.isNavTypeScrollOrOndemand() && (get(this.parent, 'gridOptions.lastActionPerformed') === this.parent.gridOptions.ACTIONS.DATASET_UPDATE || !get(this.parent, 'gridOptions.isNextPageData')))))) {
|
|
@@ -435,11 +678,12 @@ class PaginationComponent extends StylableComponent {
|
|
|
435
678
|
this.setDefaultPagingValues(dataSize, maxResults, currentPage);
|
|
436
679
|
this.disableNavigation();
|
|
437
680
|
startIndex = (this.dn.currentPage - 1) * this.maxResults;
|
|
681
|
+
this.getPageDetails(startIndex + 1, Math.min(startIndex + this.maxResults, newVal?.length), newVal?.length);
|
|
438
682
|
this.setResult(isArray(newVal) ? newVal.slice(startIndex, startIndex + this.maxResults) : newVal);
|
|
439
683
|
}
|
|
440
684
|
/*Function to set the values needed for pagination*/
|
|
441
685
|
setPagingValues(newVal) {
|
|
442
|
-
let dataSize, maxResults, currentPage, dataSource;
|
|
686
|
+
let dataSize, maxResults, currentPage, startIndex, dataSource;
|
|
443
687
|
let variableOptions = {};
|
|
444
688
|
// Store the data in __fullData. This is used for client side searching witvah out modifying the actual dataset.
|
|
445
689
|
this.__fullData = newVal;
|
|
@@ -471,6 +715,8 @@ class PaginationComponent extends StylableComponent {
|
|
|
471
715
|
this.setDefaultPagingValues(dataSize, maxResults, currentPage);
|
|
472
716
|
this.disableNavigation();
|
|
473
717
|
this.checkDataSize(dataSize, this.pagination.numberOfElements, this.pagination.size);
|
|
718
|
+
startIndex = (currentPage - 1) * this.maxResults;
|
|
719
|
+
this.getPageDetails(startIndex + 1, startIndex + this.pagination.numberOfElements, dataSize);
|
|
474
720
|
this.setResult(newVal);
|
|
475
721
|
}
|
|
476
722
|
else if (!isString(newVal)) {
|
|
@@ -522,15 +768,19 @@ class PaginationComponent extends StylableComponent {
|
|
|
522
768
|
/*Function to navigate to the current page*/
|
|
523
769
|
goToPage(event, callback) {
|
|
524
770
|
this.firstRow = (this.dn.currentPage - 1) * this.maxResults;
|
|
525
|
-
const mode = this.parent.statePersistence.computeMode(this.statehandler);
|
|
771
|
+
const mode = this.parent.statePersistence.computeMode(this.statehandler), allowpagesizechange = this.parent.allowpagesizechange;
|
|
526
772
|
if (mode && mode.toLowerCase() !== 'none' && (this.parent.widgetType === 'wm-table' || this.parent.widgetType === 'wm-list')) {
|
|
527
773
|
this.parent._selectedItemsExist = true;
|
|
528
|
-
if (this.isFirstPage()) {
|
|
774
|
+
if (this.isFirstPage() && !allowpagesizechange) {
|
|
529
775
|
this.parent.statePersistence.removeWidgetState(this.parent, 'pagination');
|
|
530
776
|
}
|
|
531
777
|
else {
|
|
532
778
|
if (unsupportedStatePersistenceTypes.indexOf(this.parent.navigation) < 0) {
|
|
533
|
-
|
|
779
|
+
const state = { pagination: this.dn.currentPage };
|
|
780
|
+
if (allowpagesizechange) {
|
|
781
|
+
state.pagesize = this.maxResults;
|
|
782
|
+
}
|
|
783
|
+
this.parent.statePersistence.setWidgetState(this.parent, state);
|
|
534
784
|
}
|
|
535
785
|
else if (this.parent.widgetType === 'wm-list' || this.parent.widgetType === 'wm-table') {
|
|
536
786
|
console.warn('Retain State handling on Widget ' + this.parent.name + ' is not supported for current pagination type.');
|
|
@@ -563,12 +813,15 @@ class PaginationComponent extends StylableComponent {
|
|
|
563
813
|
}
|
|
564
814
|
this.datasource.execute(DataSource.Operation.LIST_RECORDS, {
|
|
565
815
|
'page': pageIndex,
|
|
816
|
+
'size': this.maxResults,
|
|
566
817
|
'filterFields': this.filterFields,
|
|
567
818
|
'orderBy': this.sortOptions,
|
|
568
819
|
'logicalOp': this.logicalOp,
|
|
569
820
|
'matchMode': 'anywhereignorecase'
|
|
570
821
|
}).then(response => {
|
|
571
822
|
this.onPageDataReady(event, response && response.data, callback);
|
|
823
|
+
startIndex = (this.dn.currentPage - 1) * this.maxResults;
|
|
824
|
+
this.getPageDetails(startIndex + 1, startIndex + this.pagination?.numberOfElements, this.pagination?.totalElements);
|
|
572
825
|
$appDigest();
|
|
573
826
|
}, error => {
|
|
574
827
|
// If error is undefined, do not show any message as this may be discarded request
|
|
@@ -586,6 +839,7 @@ class PaginationComponent extends StylableComponent {
|
|
|
586
839
|
startIndex = (this.dn.currentPage - 1) * this.maxResults;
|
|
587
840
|
}
|
|
588
841
|
data = isArray(this.__fullData) ? this.__fullData.slice(startIndex, startIndex + this.maxResults) : this.__fullData;
|
|
842
|
+
this.getPageDetails(startIndex + 1, Math.min(startIndex + this.maxResults, this.__fullData?.length), this.__fullData?.length);
|
|
589
843
|
this.setResult(data);
|
|
590
844
|
this.onPageDataReady(event, data, callback);
|
|
591
845
|
}
|
|
@@ -747,6 +1001,7 @@ class PaginationComponent extends StylableComponent {
|
|
|
747
1001
|
this.datasource = dataSource;
|
|
748
1002
|
}
|
|
749
1003
|
onPropertyChange(key, nv, ov) {
|
|
1004
|
+
let pageSize, prevPageSize;
|
|
750
1005
|
if (key === 'dataset') {
|
|
751
1006
|
let data;
|
|
752
1007
|
if (this.parent && this.parent.onDataNavigatorDataSetChange) {
|
|
@@ -759,6 +1014,42 @@ class PaginationComponent extends StylableComponent {
|
|
|
759
1014
|
if (this.parent.widgetType === 'wm-table') {
|
|
760
1015
|
this.parent._triggeredByUser = false;
|
|
761
1016
|
}
|
|
1017
|
+
if (data?.length) { // calculate Pagesize options based on actual page size
|
|
1018
|
+
if (this.isDataSourceHasPaging()) { // for Live variables
|
|
1019
|
+
const currentPageSize = get(data, 'pagination.size') || get(this.datasource, 'pagination.size'), totalElements = get(data, 'pagination.totalElements') || get(this.datasource, 'pagination.totalElements'), widgetState = this.parent.statePersistence.getWidgetState(this.parent);
|
|
1020
|
+
this.actualPageSize = widgetState?.actualpagesize || currentPageSize;
|
|
1021
|
+
if (this.defaultPageSizeOptions.length > 0) {
|
|
1022
|
+
this.pageSizeOptions = [...this.defaultPageSizeOptions];
|
|
1023
|
+
}
|
|
1024
|
+
else {
|
|
1025
|
+
this.pageSizeOptions = range(this.actualPageSize, Math.max(this.actualPageSize + 1, this.actualPageSize + totalElements), this.actualPageSize); // here data has only that page data and pagesize has totalNoof Elements
|
|
1026
|
+
}
|
|
1027
|
+
if (widgetState?.selectedItem && widgetState.actualpagesize !== widgetState.pagesize) {
|
|
1028
|
+
if (!this.prevPageSize) {
|
|
1029
|
+
this.prevPageSize = this.actualPageSize || data?.length;
|
|
1030
|
+
}
|
|
1031
|
+
const updatedItems = this.handleStateParamsforNewPageSize(widgetState.selectedItem, this.prevPageSize, data?.length);
|
|
1032
|
+
if (updatedItems) {
|
|
1033
|
+
this.parent.statePersistence.setWidgetState(this.parent, {
|
|
1034
|
+
pagination: 1,
|
|
1035
|
+
pagesize: this.maxResults,
|
|
1036
|
+
actualpagesize: this.actualPageSize || this.maxResults,
|
|
1037
|
+
selectedItem: updatedItems
|
|
1038
|
+
});
|
|
1039
|
+
this.prevPageSize = undefined;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
else {
|
|
1044
|
+
pageSize = this.parent.getActualPageSize();
|
|
1045
|
+
if (this.defaultPageSizeOptions.length > 0) {
|
|
1046
|
+
this.pageSizeOptions = [...this.defaultPageSizeOptions];
|
|
1047
|
+
}
|
|
1048
|
+
else {
|
|
1049
|
+
this.pageSizeOptions = range(pageSize, data.length + pageSize, pageSize);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
762
1053
|
// When the dataset is not in current page, but in previous ones directly set the result without setting page values
|
|
763
1054
|
if (this.isEditNotInCurrentPage()) {
|
|
764
1055
|
this.setResult(data);
|
|
@@ -787,6 +1078,105 @@ class PaginationComponent extends StylableComponent {
|
|
|
787
1078
|
super.onPropertyChange(key, nv, ov);
|
|
788
1079
|
}
|
|
789
1080
|
}
|
|
1081
|
+
// change the selectedItems page number and index in the stateparams when pagesize is changed
|
|
1082
|
+
handleStateParamsforNewPageSize(selectedItem, oldPageSize, newPageSize) {
|
|
1083
|
+
return selectedItem.map(({ page, index }) => {
|
|
1084
|
+
const absoluteIndex = (page - 1) * oldPageSize + index;
|
|
1085
|
+
const newPage = Math.floor(absoluteIndex / newPageSize) + 1; // back to 1-based
|
|
1086
|
+
const newIndex = absoluteIndex % newPageSize;
|
|
1087
|
+
return {
|
|
1088
|
+
page: newPage,
|
|
1089
|
+
index: newIndex
|
|
1090
|
+
};
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
onDropdownKeydown(event, index) {
|
|
1094
|
+
const $items = $('ul#dropdown-basic a.dropdown-item');
|
|
1095
|
+
const maxIndex = this.pageSizeOptions.length - 1;
|
|
1096
|
+
let selectedOption;
|
|
1097
|
+
switch (event.key) {
|
|
1098
|
+
case 'ArrowDown':
|
|
1099
|
+
case 'Tab':
|
|
1100
|
+
event.preventDefault();
|
|
1101
|
+
if (event.key === 'Tab' && event.shiftKey) {
|
|
1102
|
+
// Treat Shift+Tab as ArrowUp
|
|
1103
|
+
this.focusedIndex = (index - 1) < 0 ? maxIndex : index - 1;
|
|
1104
|
+
}
|
|
1105
|
+
else {
|
|
1106
|
+
// Treat Tab or ArrowDown as ArrowDown
|
|
1107
|
+
this.focusedIndex = (index + 1) > maxIndex ? 0 : index + 1;
|
|
1108
|
+
}
|
|
1109
|
+
break;
|
|
1110
|
+
case 'ArrowUp':
|
|
1111
|
+
event.preventDefault();
|
|
1112
|
+
this.focusedIndex = (index - 1) < 0 ? maxIndex : index - 1;
|
|
1113
|
+
break;
|
|
1114
|
+
case 'Enter':
|
|
1115
|
+
event.preventDefault();
|
|
1116
|
+
selectedOption = this.pageSizeOptions[this.focusedIndex];
|
|
1117
|
+
this.onPageSizeChange(event, selectedOption);
|
|
1118
|
+
this.closeDropdown();
|
|
1119
|
+
return;
|
|
1120
|
+
case 'Escape':
|
|
1121
|
+
event.preventDefault();
|
|
1122
|
+
this.closeDropdown();
|
|
1123
|
+
return;
|
|
1124
|
+
default:
|
|
1125
|
+
return;
|
|
1126
|
+
}
|
|
1127
|
+
// Move focus after index is updated
|
|
1128
|
+
setTimeout(() => {
|
|
1129
|
+
$items.eq(this.focusedIndex)?.focus();
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
closeDropdown() {
|
|
1133
|
+
// Close dropdown
|
|
1134
|
+
this.bsDropdown.hide();
|
|
1135
|
+
const $toggleButton = $('button[aria-controls="dropdown-basic"]');
|
|
1136
|
+
$toggleButton.focus(); // Return focus to button
|
|
1137
|
+
}
|
|
1138
|
+
// Function gets called on dropdown open & close
|
|
1139
|
+
onOpenChange(isOpen) {
|
|
1140
|
+
if (isOpen) {
|
|
1141
|
+
this.focusedIndex = 0;
|
|
1142
|
+
setTimeout(() => {
|
|
1143
|
+
// manually focus the dropdown as dropdown has container="body"
|
|
1144
|
+
const $items = $('ul#dropdown-basic a.dropdown-item');
|
|
1145
|
+
const $firstItem = $items.eq(this.focusedIndex);
|
|
1146
|
+
$firstItem?.focus();
|
|
1147
|
+
}, 0);
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
onPageSizeChange($event, newPageSize) {
|
|
1151
|
+
const widgetState = this.parent.statePersistence.getWidgetState(this.parent);
|
|
1152
|
+
let updatedItems;
|
|
1153
|
+
if (widgetState?.selectedItem) {
|
|
1154
|
+
updatedItems = this.handleStateParamsforNewPageSize(widgetState.selectedItem, this.maxResults, +newPageSize);
|
|
1155
|
+
}
|
|
1156
|
+
this.actualPageSize = this.actualPageSize || this.maxResults;
|
|
1157
|
+
this.maxResults = +newPageSize;
|
|
1158
|
+
this.maxResultsEmitter.emit(this.maxResults);
|
|
1159
|
+
if (this.isDataSourceHasPaging() && this.datasource) {
|
|
1160
|
+
this.datasource.maxResults = this.maxResults;
|
|
1161
|
+
}
|
|
1162
|
+
if (updatedItems) {
|
|
1163
|
+
this.parent.statePersistence.setWidgetState(this.parent, {
|
|
1164
|
+
pagination: 1,
|
|
1165
|
+
pagesize: this.maxResults,
|
|
1166
|
+
actualpagesize: this.actualPageSize || this.maxResults,
|
|
1167
|
+
selectedItem: updatedItems
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
else {
|
|
1171
|
+
this.parent.statePersistence.setWidgetState(this.parent, {
|
|
1172
|
+
pagination: 1,
|
|
1173
|
+
pagesize: this.maxResults,
|
|
1174
|
+
actualpagesize: this.actualPageSize || this.maxResults
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
this.navigatePage('first', $event, true);
|
|
1178
|
+
this.calculatePagingValues();
|
|
1179
|
+
}
|
|
790
1180
|
ngAfterViewInit() {
|
|
791
1181
|
const paginationElem = this.nativeElement;
|
|
792
1182
|
paginationElem.onclick = (event) => {
|
|
@@ -794,25 +1184,30 @@ class PaginationComponent extends StylableComponent {
|
|
|
794
1184
|
};
|
|
795
1185
|
}
|
|
796
1186
|
static { this.ɵfac = function PaginationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(WidgetRef, 4), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
797
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["", "wmPagination", ""]],
|
|
1187
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["", "wmPagination", ""]], viewQuery: function PaginationComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1188
|
+
i0.ɵɵviewQuery(BsDropdownDirective, 5);
|
|
1189
|
+
} if (rf & 2) {
|
|
1190
|
+
let _t;
|
|
1191
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.bsDropdown = _t.first);
|
|
1192
|
+
} }, outputs: { resultEmitter: "resultEmitter", maxResultsEmitter: "maxResultsEmitter" }, standalone: true, features: [i0.ɵɵProvidersFeature([
|
|
798
1193
|
provideAsWidgetRef(PaginationComponent)
|
|
799
|
-
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c0, decls: 10, vars: 4, consts: [["pageTemplate", ""], ["prevTemplate", ""], ["nextTemplate", ""], [3, "class"], ["
|
|
800
|
-
i0.ɵɵtemplate(0, PaginationComponent_Conditional_0_Template,
|
|
1194
|
+
]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c0, decls: 10, vars: 4, consts: [["pageTemplate", ""], ["prevTemplate", ""], ["nextTemplate", ""], [3, "class"], [1, "pagination"], [3, "ngClass"], [1, "pagecount", "disabled"], [1, "disabled"], [1, "totalcount", "disabled"], [1, "items-per-page"], [1, "app-label", 3, "title"], ["dropdown", "", "container", "body", 1, "btn-group", 3, "isOpenChange"], ["id", "button-basic", "dropdownToggle", "", "type", "button", "aria-controls", "dropdown-basic", 1, "btn", "app-button", "dropdown-toggle"], [1, "caret"], ["id", "dropdown-basic", "class", "dropdown-menu pagesize-options", "role", "menu", "aria-labelledby", "button-basic", 4, "dropdownMenu"], [1, "item-range"], ["id", "dropdown-basic", "role", "menu", "aria-labelledby", "button-basic", 1, "dropdown-menu", "pagesize-options"], ["role", "menuitem", 3, "ngClass"], [1, "dropdown-item", 3, "click", "keydown"], ["name", "first", "href", "javascript:void(0);", 3, "click", "title"], ["aria-hidden", "true"], [1, "wi", "wi-first-page"], [1, "sr-only"], ["name", "prev", "href", "javascript:void(0);", 3, "click", "title"], [1, "wi", "wi-chevron-left"], ["href", "javascript:void(0);", "aria-label", "Change Page Number"], ["type", "number", 1, "form-control", 3, "ngModelChange", "keydown", "change", "ngModel", "disabled", "ngModelOptions"], [3, "hidden"], ["name", "next", "href", "javascript:void(0);", 3, "click", "title"], [1, "wi", "wi-chevron-right"], ["name", "last", "href", "javascript:void(0);", 3, "click", "title"], [1, "wi", "wi-last-page"], ["href", "javascript:void(0);", "tabindex", "-1", "aria-disabled", "true"], [1, "previous", 3, "ngClass"], ["href", "javascript:void(0);", 3, "click"], [1, "next", 3, "ngClass"], ["role", "navigation", "firstText", "Firtst", "lastText", "Last", 1, "pagination", "basic", 3, "ngClass", "itemsPerPage", "totalItems", "ngModelOptions", "ngModel", "boundaryLinks", "maxSize", "directionLinks", "customPreviousTemplate", "customNextTemplate", "customPageTemplate"], ["role", "navigation", "firstText", "Firtst", "lastText", "Last", 1, "pagination", "basic", 3, "pageChanged", "ngClass", "itemsPerPage", "totalItems", "ngModelOptions", "ngModel", "boundaryLinks", "maxSize", "directionLinks", "customPreviousTemplate", "customNextTemplate", "customPageTemplate"], [1, "totalcount", "disabled", "basiccount"]], template: function PaginationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1195
|
+
i0.ɵɵtemplate(0, PaginationComponent_Conditional_0_Template, 9, 11, "ul", 3)(1, PaginationComponent_Conditional_1_Template, 16, 16, "ul", 3)(2, PaginationComponent_Conditional_2_Template, 2, 2)(3, PaginationComponent_Conditional_3_Template, 4, 2, "ul", 4)(4, PaginationComponent_ng_template_4_Template, 4, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(6, PaginationComponent_ng_template_6_Template, 2, 2, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(8, PaginationComponent_ng_template_8_Template, 2, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
801
1196
|
} if (rf & 2) {
|
|
802
1197
|
i0.ɵɵconditional(ctx.navcontrols === "Classic" ? 0 : -1);
|
|
803
1198
|
i0.ɵɵadvance();
|
|
804
1199
|
i0.ɵɵconditional(ctx.navcontrols === "Pager" ? 1 : -1);
|
|
805
1200
|
i0.ɵɵadvance();
|
|
806
|
-
i0.ɵɵconditional(ctx.navcontrols === "Basic"
|
|
1201
|
+
i0.ɵɵconditional(ctx.navcontrols === "Basic" ? 2 : -1);
|
|
807
1202
|
i0.ɵɵadvance();
|
|
808
1203
|
i0.ɵɵconditional(ctx.navcontrols === "Basic" && ctx.showrecordcount ? 3 : -1);
|
|
809
|
-
} }, dependencies: [CommonModule, i1.NgClass, WmComponentsModule, FormsModule, i2.DefaultValueAccessor, i2.NumberValueAccessor, i2.NgControlStatus, i2.NgModel, PaginationModule, i3.PaginationComponent], encapsulation: 2 }); }
|
|
1204
|
+
} }, dependencies: [CommonModule, i1.NgClass, WmComponentsModule, FormsModule, i2.DefaultValueAccessor, i2.NumberValueAccessor, i2.NgControlStatus, i2.NgModel, PaginationModule, i3.PaginationComponent, BsDropdownModule, i4.BsDropdownMenuDirective, i4.BsDropdownToggleDirective, i4.BsDropdownDirective], encapsulation: 2 }); }
|
|
810
1205
|
}
|
|
811
1206
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
812
1207
|
type: Component,
|
|
813
|
-
args: [{ standalone: true, imports: [CommonModule, WmComponentsModule, FormsModule, PaginationModule], selector: '[wmPagination]', providers: [
|
|
1208
|
+
args: [{ standalone: true, imports: [CommonModule, WmComponentsModule, FormsModule, PaginationModule, BsDropdownModule, MenuComponent], selector: '[wmPagination]', providers: [
|
|
814
1209
|
provideAsWidgetRef(PaginationComponent)
|
|
815
|
-
], template: "\n@if (navcontrols === 'Classic') {\n<ul class=\"pagination advanced {{navigationClass}}\">\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableFirst}\">\n <a [title]=\"appLocale.LABEL_FIRST\" name=\"first\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableFirst\"\n (click)=\"navigatePage('first', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-first-page\"></i></span>\n <span class=\"sr-only\">Go to first page {{ isDisableFirst ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a [title]=\"appLocale.LABEL_PREVIOUS\" name=\"prev\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisablePrevious\"\n (click)=\"navigatePage('prev', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n <span class=\"sr-only\">Go to previous page {{ isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"pagecount disabled\">\n <a href=\"javascript:void(0);\" aria-label=\"Change Page Number\">\n <input [(ngModel)]=\"dn.currentPage\" [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount\" [disabled]=\"isDisableCurrent\"\n [ngModelOptions]=\"{standalone: true}\"\n type=\"number\"\n (keydown)=\"onKeyDown($event)\" (change)=\"onModelChange($event)\" class=\"form-control\"/>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"disabled\">\n <a [hidden]=\"isDisableCount\"> / {{pageCount}}</a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableNext}\">\n <a [title]=\"appLocale.LABEL_NEXT\" name=\"next\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableNext\"\n (click)=\"navigatePage('next', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n <span class=\"sr-only\">Go to next page {{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableLast}\">\n <a [title]=\"appLocale.LABEL_LAST\" name=\"last\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableLast\"\n (click)=\"navigatePage('last', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-last-page\"></i></span>\n <span class=\"sr-only\">Go to last page {{ isDisableLast ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (showrecordcount) {\n <li class=\"totalcount disabled\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n }\n </ul>\n}\n@if (navcontrols === 'Pager') {\n <ul class=\"pager {{navigationClass}}\">\n <li class=\"previous\" [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"isDisablePrevious\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n {{appLocale.LABEL_PREVIOUS}}\n <span class=\"sr-only\">{{ isDisablePrevious ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n <li class=\"next\" [ngClass]=\"{'disabled':isDisableNext}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('next', $event)\"\n [attr.aria-disabled]=\"isDisableNext\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n {{appLocale.LABEL_NEXT}}\n <span class=\"sr-only\">{{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n}\n\n@if (navcontrols === 'Basic' && !(dataSize<=maxResults)) {\n <pagination class=\"pagination basic\" [ngClass]=\"navigationClass\" role=\"navigation\"\n [itemsPerPage]=\"maxResults\" [totalItems]=\"dataSize\"\n (pageChanged)=\"pageChanged($event)\" [ngModelOptions]=\"{standalone:true}\" [ngModel]=\"dn.currentPage\"\n [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount + ' pages'\"\n [boundaryLinks]=\"boundarylinks\" [maxSize]=\"maxsize\"\n [directionLinks]=\"directionlinks\"\n firstText=\"Firtst\" lastText=\"Last\"\n [customPreviousTemplate]=\"prevTemplate\"\n [customNextTemplate]=\"nextTemplate\"\n [customPageTemplate]=\"pageTemplate\"></pagination>\n}\n\n@if (navcontrols === 'Basic' && showrecordcount) {\n <ul class=\"pagination\">\n <li class=\"totalcount disabled basiccount\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n </ul>\n}\n\n<ng-template #pageTemplate let-page>\n <span class=\"sr-only\" [attr.data-isacitvepage]=\"page.active\">{{'Page '}}</span>\n {{page.number}}\n @if (page.active) {\n <span class=\"sr-only\"> {{', Showing page ' + page.number + ' of ' + pageCount}}</span>\n }\n</ng-template>\n<ng-template #prevTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Previous page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n<ng-template #nextTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Next page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n" }]
|
|
1210
|
+
], template: "\n@if (navcontrols === 'Classic') {\n<ul class=\"pagination advanced {{navigationClass}}\">\n @if (allowpagesizechange) {\n <li class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE}} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </li>\n @if (rowSummary?.totalRecords) {\n <li class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </li>\n }\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableFirst}\">\n <a [title]=\"appLocale.LABEL_FIRST\" name=\"first\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableFirst\"\n (click)=\"navigatePage('first', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-first-page\"></i></span>\n <span class=\"sr-only\">Go to first page {{ isDisableFirst ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a [title]=\"appLocale.LABEL_PREVIOUS\" name=\"prev\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisablePrevious\"\n (click)=\"navigatePage('prev', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n <span class=\"sr-only\">Go to previous page {{ isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"pagecount disabled\">\n <a href=\"javascript:void(0);\" aria-label=\"Change Page Number\">\n <input [(ngModel)]=\"dn.currentPage\" [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount\" [disabled]=\"isDisableCurrent\"\n [ngModelOptions]=\"{standalone: true}\"\n type=\"number\"\n (keydown)=\"onKeyDown($event)\" (change)=\"onModelChange($event)\" class=\"form-control\"/>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"disabled\">\n <a [hidden]=\"isDisableCount\"> / {{pageCount}}</a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableNext}\">\n <a [title]=\"appLocale.LABEL_NEXT\" name=\"next\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableNext\"\n (click)=\"navigatePage('next', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n <span class=\"sr-only\">Go to next page {{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableLast}\">\n <a [title]=\"appLocale.LABEL_LAST\" name=\"last\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableLast\"\n (click)=\"navigatePage('last', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-last-page\"></i></span>\n <span class=\"sr-only\">Go to last page {{ isDisableLast ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (showrecordcount) {\n <li class=\"totalcount disabled\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n }\n</ul>\n}\n@if (navcontrols === 'Pager') {\n <ul class=\"pager {{navigationClass}}\">\n @if (allowpagesizechange) {\n <li class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE}} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </li>\n @if (rowSummary?.totalRecords) {\n <li class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </li>\n }\n }\n\n <li class=\"previous\" [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"isDisablePrevious\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n {{appLocale.LABEL_PREVIOUS}}\n <span class=\"sr-only\">{{ isDisablePrevious ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n <li class=\"next\" [ngClass]=\"{'disabled':isDisableNext}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('next', $event)\"\n [attr.aria-disabled]=\"isDisableNext\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n {{appLocale.LABEL_NEXT}}\n <span class=\"sr-only\">{{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n}\n\n@if (navcontrols === 'Basic') {\n @if (allowpagesizechange) {\n <div class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE }} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </div>\n @if (rowSummary?.totalRecords) {\n <div class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </div>\n }\n }\n @if (!(dataSize<=maxResults)) {\n <pagination class=\"pagination basic\" [ngClass]=\"navigationClass\" role=\"navigation\"\n [itemsPerPage]=\"maxResults\" [totalItems]=\"dataSize\"\n (pageChanged)=\"pageChanged($event)\" [ngModelOptions]=\"{standalone:true}\" [ngModel]=\"dn.currentPage\"\n [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount + ' pages'\"\n [boundaryLinks]=\"boundarylinks\" [maxSize]=\"maxsize\"\n [directionLinks]=\"directionlinks\"\n firstText=\"Firtst\" lastText=\"Last\"\n [customPreviousTemplate]=\"prevTemplate\"\n [customNextTemplate]=\"nextTemplate\"\n [customPageTemplate]=\"pageTemplate\"></pagination>\n }\n}\n\n@if (navcontrols === 'Basic' && showrecordcount) {\n <ul class=\"pagination\">\n <li class=\"totalcount disabled basiccount\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n </ul>\n}\n\n<ng-template #pageTemplate let-page>\n <span class=\"sr-only\" [attr.data-isacitvepage]=\"page.active\">{{'Page '}}</span>\n {{page.number}}\n @if (page.active) {\n <span class=\"sr-only\"> {{', Showing page ' + page.number + ' of ' + pageCount}}</span>\n }\n</ng-template>\n<ng-template #prevTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Previous page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n<ng-template #nextTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Next page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n" }]
|
|
816
1211
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
817
1212
|
type: SkipSelf
|
|
818
1213
|
}, {
|
|
@@ -827,8 +1222,11 @@ class PaginationComponent extends StylableComponent {
|
|
|
827
1222
|
type: Output
|
|
828
1223
|
}], maxResultsEmitter: [{
|
|
829
1224
|
type: Output
|
|
1225
|
+
}], bsDropdown: [{
|
|
1226
|
+
type: ViewChild,
|
|
1227
|
+
args: [BsDropdownDirective]
|
|
830
1228
|
}] }); })();
|
|
831
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationComponent, { className: "PaginationComponent", filePath: "pagination.component.ts", lineNumber:
|
|
1229
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationComponent, { className: "PaginationComponent", filePath: "pagination.component.ts", lineNumber: 49 }); })();
|
|
832
1230
|
|
|
833
1231
|
/**
|
|
834
1232
|
* Generated bundle index. Do not edit.
|