yukit-web 0.10.5 → 0.10.7
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/fesm2022/yukit-web-chart.mjs +807 -552
- package/fesm2022/yukit-web-chart.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
- package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
- package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert.mjs +199 -91
- package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
- package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
- package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
- package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-badge.mjs +78 -44
- package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
- package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
- package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
- package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button.mjs +137 -67
- package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
- package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-card.mjs +318 -136
- package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
- package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
- package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
- package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
- package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-command.mjs +752 -260
- package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
- package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
- package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
- package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
- package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-empty.mjs +280 -121
- package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-field.mjs +670 -301
- package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
- package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
- package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
- package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input.mjs +62 -30
- package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-item.mjs +545 -227
- package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
- package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-label.mjs +60 -28
- package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-marker.mjs +165 -74
- package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
- package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-message.mjs +277 -112
- package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
- package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
- package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
- package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-popover.mjs +358 -133
- package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-progress.mjs +126 -58
- package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
- package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
- package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
- package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-select.mjs +1059 -351
- package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-separator.mjs +61 -31
- package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
- package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
- package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
- package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-slider.mjs +139 -59
- package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
- package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
- package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-switch.mjs +326 -94
- package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-table.mjs +374 -177
- package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
- package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
- package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
- package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
- package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
- package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-typography.mjs +461 -202
- package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-utils.mjs +131 -253
- package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
- package/fesm2022/yukit-web.mjs +24457 -9655
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +9 -9
- package/types/yukit-web-chart.d.ts +184 -125
- package/types/yukit-web-helm-accordion.d.ts +49 -28
- package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
- package/types/yukit-web-helm-alert.d.ts +30 -32
- package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
- package/types/yukit-web-helm-attachment.d.ts +97 -69
- package/types/yukit-web-helm-autocomplete.d.ts +205 -79
- package/types/yukit-web-helm-avatar.d.ts +44 -39
- package/types/yukit-web-helm-badge.d.ts +18 -17
- package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
- package/types/yukit-web-helm-bubble.d.ts +54 -40
- package/types/yukit-web-helm-button-group.d.ts +29 -22
- package/types/yukit-web-helm-button.d.ts +41 -31
- package/types/yukit-web-helm-calendar.d.ts +157 -85
- package/types/yukit-web-helm-card.d.ts +38 -42
- package/types/yukit-web-helm-carousel.d.ts +105 -73
- package/types/yukit-web-helm-checkbox.d.ts +117 -58
- package/types/yukit-web-helm-collapsible.d.ts +34 -19
- package/types/yukit-web-helm-combobox.d.ts +355 -150
- package/types/yukit-web-helm-command.d.ts +140 -73
- package/types/yukit-web-helm-context-menu.d.ts +48 -27
- package/types/yukit-web-helm-date-picker.d.ts +852 -556
- package/types/yukit-web-helm-dialog.d.ts +106 -78
- package/types/yukit-web-helm-drawer.d.ts +90 -61
- package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
- package/types/yukit-web-helm-empty.d.ts +38 -42
- package/types/yukit-web-helm-field.d.ts +122 -91
- package/types/yukit-web-helm-hover-card.d.ts +39 -27
- package/types/yukit-web-helm-input-group.d.ts +63 -41
- package/types/yukit-web-helm-input-otp.d.ts +38 -35
- package/types/yukit-web-helm-input.d.ts +19 -12
- package/types/yukit-web-helm-item.d.ts +90 -82
- package/types/yukit-web-helm-kbd.d.ts +10 -15
- package/types/yukit-web-helm-label.d.ts +14 -11
- package/types/yukit-web-helm-marker.d.ts +26 -27
- package/types/yukit-web-helm-menubar.d.ts +61 -32
- package/types/yukit-web-helm-message.d.ts +34 -38
- package/types/yukit-web-helm-native-select.d.ts +102 -61
- package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
- package/types/yukit-web-helm-pagination.d.ts +344 -166
- package/types/yukit-web-helm-popover.d.ts +62 -42
- package/types/yukit-web-helm-progress.d.ts +27 -20
- package/types/yukit-web-helm-radio-group.d.ts +121 -63
- package/types/yukit-web-helm-resizable.d.ts +46 -24
- package/types/yukit-web-helm-scroll-area.d.ts +6 -10
- package/types/yukit-web-helm-select.d.ts +231 -114
- package/types/yukit-web-helm-separator.d.ts +15 -12
- package/types/yukit-web-helm-sheet.d.ts +94 -65
- package/types/yukit-web-helm-sidebar.d.ts +322 -232
- package/types/yukit-web-helm-skeleton.d.ts +6 -10
- package/types/yukit-web-helm-slider.d.ts +33 -13
- package/types/yukit-web-helm-sonner.d.ts +112 -51
- package/types/yukit-web-helm-spinner.d.ts +24 -17
- package/types/yukit-web-helm-switch.d.ts +89 -51
- package/types/yukit-web-helm-table.d.ts +38 -42
- package/types/yukit-web-helm-tabs.d.ts +116 -60
- package/types/yukit-web-helm-textarea.d.ts +19 -12
- package/types/yukit-web-helm-toggle-group.d.ts +81 -32
- package/types/yukit-web-helm-toggle.d.ts +39 -21
- package/types/yukit-web-helm-tooltip.d.ts +21 -16
- package/types/yukit-web-helm-typography.d.ts +62 -77
- package/types/yukit-web-helm-utils.d.ts +8 -11
- package/types/yukit-web.d.ts +5092 -2351
|
@@ -1,160 +1,488 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import * as i1
|
|
4
|
-
import { HlmSelectImports } from
|
|
5
|
-
import { classes, hlm } from
|
|
6
|
-
import { NgIcon, provideIcons } from
|
|
7
|
-
import {
|
|
8
|
-
import * as i1 from
|
|
9
|
-
import { RouterLink } from
|
|
10
|
-
import { buttonVariants } from
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Directive, booleanAttribute, computed, input, model, numberAttribute, untracked } from "@angular/core";
|
|
3
|
+
import * as i1 from "yukit-web/helm/select";
|
|
4
|
+
import { HlmSelectImports } from "yukit-web/helm/select";
|
|
5
|
+
import { classes, hlm } from "yukit-web/helm/utils";
|
|
6
|
+
import { NgIcon, provideIcons } from "@ng-icons/core";
|
|
7
|
+
import { lucideChevronLeft, lucideChevronRight, lucideEllipsis } from "@ng-icons/lucide";
|
|
8
|
+
import * as i1$1 from "@angular/router";
|
|
9
|
+
import { RouterLink } from "@angular/router";
|
|
10
|
+
import { buttonVariants } from "yukit-web/helm/button";
|
|
11
|
+
var HlmPagination = class HlmPagination {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.ariaLabel = input("pagination", {
|
|
14
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
15
|
+
alias: "aria-label"
|
|
16
|
+
});
|
|
17
|
+
classes(() => "mx-auto flex w-full justify-center");
|
|
18
|
+
}
|
|
19
|
+
static {
|
|
20
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
21
|
+
minVersion: "12.0.0",
|
|
22
|
+
version: "22.2.4",
|
|
23
|
+
ngImport: i0,
|
|
24
|
+
type: HlmPagination,
|
|
25
|
+
deps: [],
|
|
26
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
static {
|
|
30
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
31
|
+
minVersion: "17.1.0",
|
|
32
|
+
version: "22.2.4",
|
|
33
|
+
type: HlmPagination,
|
|
34
|
+
isStandalone: true,
|
|
35
|
+
selector: "[hlmPagination],hlm-pagination",
|
|
36
|
+
inputs: { ariaLabel: {
|
|
37
|
+
classPropertyName: "ariaLabel",
|
|
38
|
+
publicName: "aria-label",
|
|
39
|
+
isSignal: true,
|
|
40
|
+
isRequired: false,
|
|
41
|
+
transformFunction: null
|
|
42
|
+
} },
|
|
43
|
+
host: {
|
|
44
|
+
attributes: {
|
|
45
|
+
"data-slot": "pagination",
|
|
46
|
+
"role": "navigation"
|
|
47
|
+
},
|
|
48
|
+
properties: { "attr.aria-label": "ariaLabel()" }
|
|
49
|
+
},
|
|
50
|
+
ngImport: i0
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
55
|
+
minVersion: "12.0.0",
|
|
56
|
+
version: "22.2.4",
|
|
57
|
+
ngImport: i0,
|
|
58
|
+
type: HlmPagination,
|
|
59
|
+
decorators: [{
|
|
60
|
+
type: Directive,
|
|
61
|
+
args: [{
|
|
62
|
+
selector: "[hlmPagination],hlm-pagination",
|
|
63
|
+
host: {
|
|
64
|
+
"data-slot": "pagination",
|
|
65
|
+
role: "navigation",
|
|
66
|
+
"[attr.aria-label]": "ariaLabel()"
|
|
67
|
+
}
|
|
68
|
+
}]
|
|
69
|
+
}],
|
|
70
|
+
ctorParameters: () => [],
|
|
71
|
+
propDecorators: { ariaLabel: [{
|
|
72
|
+
type: i0.Input,
|
|
73
|
+
args: [{
|
|
74
|
+
isSignal: true,
|
|
75
|
+
alias: "aria-label",
|
|
76
|
+
required: false
|
|
77
|
+
}]
|
|
78
|
+
}] }
|
|
79
|
+
});
|
|
80
|
+
var HlmPaginationContent = class HlmPaginationContent {
|
|
81
|
+
constructor() {
|
|
82
|
+
classes(() => "gap-0.5 flex items-center");
|
|
83
|
+
}
|
|
84
|
+
static {
|
|
85
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
86
|
+
minVersion: "12.0.0",
|
|
87
|
+
version: "22.2.4",
|
|
88
|
+
ngImport: i0,
|
|
89
|
+
type: HlmPaginationContent,
|
|
90
|
+
deps: [],
|
|
91
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
static {
|
|
95
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
96
|
+
minVersion: "14.0.0",
|
|
97
|
+
version: "22.2.4",
|
|
98
|
+
type: HlmPaginationContent,
|
|
99
|
+
isStandalone: true,
|
|
100
|
+
selector: "ul[hlmPaginationContent]",
|
|
101
|
+
host: { attributes: { "data-slot": "pagination-content" } },
|
|
102
|
+
ngImport: i0
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
107
|
+
minVersion: "12.0.0",
|
|
108
|
+
version: "22.2.4",
|
|
109
|
+
ngImport: i0,
|
|
110
|
+
type: HlmPaginationContent,
|
|
111
|
+
decorators: [{
|
|
112
|
+
type: Directive,
|
|
113
|
+
args: [{
|
|
114
|
+
selector: "ul[hlmPaginationContent]",
|
|
115
|
+
host: { "data-slot": "pagination-content" }
|
|
116
|
+
}]
|
|
117
|
+
}],
|
|
118
|
+
ctorParameters: () => []
|
|
119
|
+
});
|
|
120
|
+
var HlmPaginationEllipsis = class HlmPaginationEllipsis {
|
|
121
|
+
constructor() {
|
|
122
|
+
this.srOnlyText = input("More pages", ...ngDevMode ? [{ debugName: "srOnlyText" }] : /* istanbul ignore next */ []);
|
|
123
|
+
classes(() => "size-8 [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center justify-center");
|
|
124
|
+
}
|
|
125
|
+
static {
|
|
126
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
127
|
+
minVersion: "12.0.0",
|
|
128
|
+
version: "22.2.4",
|
|
129
|
+
ngImport: i0,
|
|
130
|
+
type: HlmPaginationEllipsis,
|
|
131
|
+
deps: [],
|
|
132
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
static {
|
|
136
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
137
|
+
minVersion: "17.1.0",
|
|
138
|
+
version: "22.2.4",
|
|
139
|
+
type: HlmPaginationEllipsis,
|
|
140
|
+
isStandalone: true,
|
|
141
|
+
selector: "hlm-pagination-ellipsis",
|
|
142
|
+
inputs: { srOnlyText: {
|
|
143
|
+
classPropertyName: "srOnlyText",
|
|
144
|
+
publicName: "srOnlyText",
|
|
145
|
+
isSignal: true,
|
|
146
|
+
isRequired: false,
|
|
147
|
+
transformFunction: null
|
|
148
|
+
} },
|
|
149
|
+
host: { attributes: { "data-slot": "pagination-ellipsis" } },
|
|
150
|
+
providers: [provideIcons({ lucideEllipsis })],
|
|
151
|
+
ngImport: i0,
|
|
152
|
+
template: `
|
|
56
153
|
<ng-icon name="lucideEllipsis" />
|
|
57
154
|
<span class="sr-only">{{ srOnlyText() }}</span>
|
|
58
|
-
`,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
155
|
+
`,
|
|
156
|
+
isInline: true,
|
|
157
|
+
dependencies: [{
|
|
158
|
+
kind: "component",
|
|
159
|
+
type: NgIcon,
|
|
160
|
+
selector: "ng-icon",
|
|
161
|
+
inputs: [
|
|
162
|
+
"name",
|
|
163
|
+
"svg",
|
|
164
|
+
"size",
|
|
165
|
+
"strokeWidth",
|
|
166
|
+
"color"
|
|
167
|
+
]
|
|
168
|
+
}],
|
|
169
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
174
|
+
minVersion: "12.0.0",
|
|
175
|
+
version: "22.2.4",
|
|
176
|
+
ngImport: i0,
|
|
177
|
+
type: HlmPaginationEllipsis,
|
|
178
|
+
decorators: [{
|
|
179
|
+
type: Component,
|
|
180
|
+
args: [{
|
|
181
|
+
selector: "hlm-pagination-ellipsis",
|
|
182
|
+
imports: [NgIcon],
|
|
183
|
+
providers: [provideIcons({ lucideEllipsis })],
|
|
184
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
185
|
+
host: { "data-slot": "pagination-ellipsis" },
|
|
186
|
+
template: `
|
|
69
187
|
<ng-icon name="lucideEllipsis" />
|
|
70
188
|
<span class="sr-only">{{ srOnlyText() }}</span>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
189
|
+
`
|
|
190
|
+
}]
|
|
191
|
+
}],
|
|
192
|
+
ctorParameters: () => [],
|
|
193
|
+
propDecorators: { srOnlyText: [{
|
|
194
|
+
type: i0.Input,
|
|
195
|
+
args: [{
|
|
196
|
+
isSignal: true,
|
|
197
|
+
alias: "srOnlyText",
|
|
198
|
+
required: false
|
|
199
|
+
}]
|
|
200
|
+
}] }
|
|
201
|
+
});
|
|
202
|
+
var HlmPaginationItem = class HlmPaginationItem {
|
|
203
|
+
static {
|
|
204
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
205
|
+
minVersion: "12.0.0",
|
|
206
|
+
version: "22.2.4",
|
|
207
|
+
ngImport: i0,
|
|
208
|
+
type: HlmPaginationItem,
|
|
209
|
+
deps: [],
|
|
210
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
static {
|
|
214
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
215
|
+
minVersion: "14.0.0",
|
|
216
|
+
version: "22.2.4",
|
|
217
|
+
type: HlmPaginationItem,
|
|
218
|
+
isStandalone: true,
|
|
219
|
+
selector: "li[hlmPaginationItem]",
|
|
220
|
+
host: { attributes: { "data-slot": "pagination-item" } },
|
|
221
|
+
ngImport: i0
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
226
|
+
minVersion: "12.0.0",
|
|
227
|
+
version: "22.2.4",
|
|
228
|
+
ngImport: i0,
|
|
229
|
+
type: HlmPaginationItem,
|
|
230
|
+
decorators: [{
|
|
231
|
+
type: Directive,
|
|
232
|
+
args: [{
|
|
233
|
+
selector: "li[hlmPaginationItem]",
|
|
234
|
+
host: { "data-slot": "pagination-item" }
|
|
235
|
+
}]
|
|
236
|
+
}]
|
|
237
|
+
});
|
|
238
|
+
var HlmPaginationLink = class HlmPaginationLink {
|
|
239
|
+
constructor() {
|
|
240
|
+
this.isActive = input(false, {
|
|
241
|
+
...ngDevMode ? { debugName: "isActive" } : /* istanbul ignore next */ {},
|
|
242
|
+
transform: booleanAttribute
|
|
243
|
+
});
|
|
244
|
+
this.size = input("icon", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
245
|
+
this.link = input(...ngDevMode ? [void 0, { debugName: "link" }] : /* istanbul ignore next */ []);
|
|
246
|
+
classes(() => [
|
|
247
|
+
"relative",
|
|
248
|
+
buttonVariants({
|
|
249
|
+
variant: this.isActive() ? "outline" : "ghost",
|
|
250
|
+
size: this.size()
|
|
251
|
+
}),
|
|
252
|
+
this.link() === void 0 && "cursor-pointer"
|
|
253
|
+
]);
|
|
254
|
+
}
|
|
255
|
+
static {
|
|
256
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
257
|
+
minVersion: "12.0.0",
|
|
258
|
+
version: "22.2.4",
|
|
259
|
+
ngImport: i0,
|
|
260
|
+
type: HlmPaginationLink,
|
|
261
|
+
deps: [],
|
|
262
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
static {
|
|
266
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
267
|
+
minVersion: "17.1.0",
|
|
268
|
+
version: "22.2.4",
|
|
269
|
+
type: HlmPaginationLink,
|
|
270
|
+
isStandalone: true,
|
|
271
|
+
selector: "[hlmPaginationLink]",
|
|
272
|
+
inputs: {
|
|
273
|
+
isActive: {
|
|
274
|
+
classPropertyName: "isActive",
|
|
275
|
+
publicName: "isActive",
|
|
276
|
+
isSignal: true,
|
|
277
|
+
isRequired: false,
|
|
278
|
+
transformFunction: null
|
|
279
|
+
},
|
|
280
|
+
size: {
|
|
281
|
+
classPropertyName: "size",
|
|
282
|
+
publicName: "size",
|
|
283
|
+
isSignal: true,
|
|
284
|
+
isRequired: false,
|
|
285
|
+
transformFunction: null
|
|
286
|
+
},
|
|
287
|
+
link: {
|
|
288
|
+
classPropertyName: "link",
|
|
289
|
+
publicName: "link",
|
|
290
|
+
isSignal: true,
|
|
291
|
+
isRequired: false,
|
|
292
|
+
transformFunction: null
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
host: {
|
|
296
|
+
attributes: { "data-slot": "pagination-link" },
|
|
297
|
+
properties: {
|
|
298
|
+
"attr.data-active": "isActive() ? \"true\" : null",
|
|
299
|
+
"attr.aria-current": "isActive() ? \"page\" : null"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
hostDirectives: [{
|
|
303
|
+
directive: i1$1.RouterLink,
|
|
304
|
+
inputs: [
|
|
305
|
+
"target",
|
|
306
|
+
"target",
|
|
307
|
+
"queryParams",
|
|
308
|
+
"queryParams",
|
|
309
|
+
"fragment",
|
|
310
|
+
"fragment",
|
|
311
|
+
"queryParamsHandling",
|
|
312
|
+
"queryParamsHandling",
|
|
313
|
+
"state",
|
|
314
|
+
"state",
|
|
315
|
+
"info",
|
|
316
|
+
"info",
|
|
317
|
+
"relativeTo",
|
|
318
|
+
"relativeTo",
|
|
319
|
+
"preserveFragment",
|
|
320
|
+
"preserveFragment",
|
|
321
|
+
"skipLocationChange",
|
|
322
|
+
"skipLocationChange",
|
|
323
|
+
"replaceUrl",
|
|
324
|
+
"replaceUrl",
|
|
325
|
+
"routerLink",
|
|
326
|
+
"link"
|
|
327
|
+
]
|
|
328
|
+
}],
|
|
329
|
+
ngImport: i0
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
334
|
+
minVersion: "12.0.0",
|
|
335
|
+
version: "22.2.4",
|
|
336
|
+
ngImport: i0,
|
|
337
|
+
type: HlmPaginationLink,
|
|
338
|
+
decorators: [{
|
|
339
|
+
type: Directive,
|
|
340
|
+
args: [{
|
|
341
|
+
selector: "[hlmPaginationLink]",
|
|
342
|
+
hostDirectives: [{
|
|
343
|
+
directive: RouterLink,
|
|
344
|
+
inputs: [
|
|
345
|
+
"target",
|
|
346
|
+
"queryParams",
|
|
347
|
+
"fragment",
|
|
348
|
+
"queryParamsHandling",
|
|
349
|
+
"state",
|
|
350
|
+
"info",
|
|
351
|
+
"relativeTo",
|
|
352
|
+
"preserveFragment",
|
|
353
|
+
"skipLocationChange",
|
|
354
|
+
"replaceUrl",
|
|
355
|
+
"routerLink: link"
|
|
356
|
+
]
|
|
357
|
+
}],
|
|
358
|
+
host: {
|
|
359
|
+
"data-slot": "pagination-link",
|
|
360
|
+
"[attr.data-active]": "isActive() ? \"true\" : null",
|
|
361
|
+
"[attr.aria-current]": "isActive() ? \"page\" : null"
|
|
362
|
+
}
|
|
363
|
+
}]
|
|
364
|
+
}],
|
|
365
|
+
ctorParameters: () => [],
|
|
366
|
+
propDecorators: {
|
|
367
|
+
isActive: [{
|
|
368
|
+
type: i0.Input,
|
|
369
|
+
args: [{
|
|
370
|
+
isSignal: true,
|
|
371
|
+
alias: "isActive",
|
|
372
|
+
required: false
|
|
373
|
+
}]
|
|
374
|
+
}],
|
|
375
|
+
size: [{
|
|
376
|
+
type: i0.Input,
|
|
377
|
+
args: [{
|
|
378
|
+
isSignal: true,
|
|
379
|
+
alias: "size",
|
|
380
|
+
required: false
|
|
381
|
+
}]
|
|
382
|
+
}],
|
|
383
|
+
link: [{
|
|
384
|
+
type: i0.Input,
|
|
385
|
+
args: [{
|
|
386
|
+
isSignal: true,
|
|
387
|
+
alias: "link",
|
|
388
|
+
required: false
|
|
389
|
+
}]
|
|
390
|
+
}]
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
var HlmPaginationNext = class HlmPaginationNext {
|
|
394
|
+
constructor() {
|
|
395
|
+
this.userClass = input("", {
|
|
396
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
397
|
+
alias: "class"
|
|
398
|
+
});
|
|
399
|
+
this.link = input(...ngDevMode ? [void 0, { debugName: "link" }] : /* istanbul ignore next */ []);
|
|
400
|
+
this.queryParams = input(...ngDevMode ? [void 0, { debugName: "queryParams" }] : /* istanbul ignore next */ []);
|
|
401
|
+
this.queryParamsHandling = input(...ngDevMode ? [void 0, { debugName: "queryParamsHandling" }] : /* istanbul ignore next */ []);
|
|
402
|
+
this.ariaLabel = input("Go to next page", {
|
|
403
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
404
|
+
alias: "aria-label"
|
|
405
|
+
});
|
|
406
|
+
this.text = input("Next", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
|
|
407
|
+
this.iconOnly = input(false, {
|
|
408
|
+
...ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {},
|
|
409
|
+
transform: booleanAttribute
|
|
410
|
+
});
|
|
411
|
+
this._labelClass = computed(() => this.iconOnly() ? "sr-only" : "hidden sm:block", ...ngDevMode ? [{ debugName: "_labelClass" }] : /* istanbul ignore next */ []);
|
|
412
|
+
this._size = computed(() => this.iconOnly() ? "icon" : "default", ...ngDevMode ? [{ debugName: "_size" }] : /* istanbul ignore next */ []);
|
|
413
|
+
this._computedClass = computed(() => hlm(!this.iconOnly() && "pe-1.5!", this.userClass()), ...ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []);
|
|
414
|
+
}
|
|
415
|
+
static {
|
|
416
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
417
|
+
minVersion: "12.0.0",
|
|
418
|
+
version: "22.2.4",
|
|
419
|
+
ngImport: i0,
|
|
420
|
+
type: HlmPaginationNext,
|
|
421
|
+
deps: [],
|
|
422
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
static {
|
|
426
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
427
|
+
minVersion: "17.1.0",
|
|
428
|
+
version: "22.2.4",
|
|
429
|
+
type: HlmPaginationNext,
|
|
430
|
+
isStandalone: true,
|
|
431
|
+
selector: "hlm-pagination-next",
|
|
432
|
+
inputs: {
|
|
433
|
+
userClass: {
|
|
434
|
+
classPropertyName: "userClass",
|
|
435
|
+
publicName: "class",
|
|
436
|
+
isSignal: true,
|
|
437
|
+
isRequired: false,
|
|
438
|
+
transformFunction: null
|
|
439
|
+
},
|
|
440
|
+
link: {
|
|
441
|
+
classPropertyName: "link",
|
|
442
|
+
publicName: "link",
|
|
443
|
+
isSignal: true,
|
|
444
|
+
isRequired: false,
|
|
445
|
+
transformFunction: null
|
|
446
|
+
},
|
|
447
|
+
queryParams: {
|
|
448
|
+
classPropertyName: "queryParams",
|
|
449
|
+
publicName: "queryParams",
|
|
450
|
+
isSignal: true,
|
|
451
|
+
isRequired: false,
|
|
452
|
+
transformFunction: null
|
|
453
|
+
},
|
|
454
|
+
queryParamsHandling: {
|
|
455
|
+
classPropertyName: "queryParamsHandling",
|
|
456
|
+
publicName: "queryParamsHandling",
|
|
457
|
+
isSignal: true,
|
|
458
|
+
isRequired: false,
|
|
459
|
+
transformFunction: null
|
|
460
|
+
},
|
|
461
|
+
ariaLabel: {
|
|
462
|
+
classPropertyName: "ariaLabel",
|
|
463
|
+
publicName: "aria-label",
|
|
464
|
+
isSignal: true,
|
|
465
|
+
isRequired: false,
|
|
466
|
+
transformFunction: null
|
|
467
|
+
},
|
|
468
|
+
text: {
|
|
469
|
+
classPropertyName: "text",
|
|
470
|
+
publicName: "text",
|
|
471
|
+
isSignal: true,
|
|
472
|
+
isRequired: false,
|
|
473
|
+
transformFunction: null
|
|
474
|
+
},
|
|
475
|
+
iconOnly: {
|
|
476
|
+
classPropertyName: "iconOnly",
|
|
477
|
+
publicName: "iconOnly",
|
|
478
|
+
isSignal: true,
|
|
479
|
+
isRequired: false,
|
|
480
|
+
transformFunction: null
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
providers: [provideIcons({ lucideChevronRight })],
|
|
484
|
+
ngImport: i0,
|
|
485
|
+
template: `
|
|
158
486
|
<a
|
|
159
487
|
hlmPaginationLink
|
|
160
488
|
[class]="_computedClass()"
|
|
@@ -167,16 +495,46 @@ class HlmPaginationNext {
|
|
|
167
495
|
<span [class]="_labelClass()">{{ text() }}</span>
|
|
168
496
|
<ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
|
|
169
497
|
</a>
|
|
170
|
-
`,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
498
|
+
`,
|
|
499
|
+
isInline: true,
|
|
500
|
+
dependencies: [{
|
|
501
|
+
kind: "directive",
|
|
502
|
+
type: HlmPaginationLink,
|
|
503
|
+
selector: "[hlmPaginationLink]",
|
|
504
|
+
inputs: [
|
|
505
|
+
"isActive",
|
|
506
|
+
"size",
|
|
507
|
+
"link"
|
|
508
|
+
]
|
|
509
|
+
}, {
|
|
510
|
+
kind: "component",
|
|
511
|
+
type: NgIcon,
|
|
512
|
+
selector: "ng-icon",
|
|
513
|
+
inputs: [
|
|
514
|
+
"name",
|
|
515
|
+
"svg",
|
|
516
|
+
"size",
|
|
517
|
+
"strokeWidth",
|
|
518
|
+
"color"
|
|
519
|
+
]
|
|
520
|
+
}],
|
|
521
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
526
|
+
minVersion: "12.0.0",
|
|
527
|
+
version: "22.2.4",
|
|
528
|
+
ngImport: i0,
|
|
529
|
+
type: HlmPaginationNext,
|
|
530
|
+
decorators: [{
|
|
531
|
+
type: Component,
|
|
532
|
+
args: [{
|
|
533
|
+
selector: "hlm-pagination-next",
|
|
534
|
+
imports: [HlmPaginationLink, NgIcon],
|
|
535
|
+
providers: [provideIcons({ lucideChevronRight })],
|
|
536
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
537
|
+
template: `
|
|
180
538
|
<a
|
|
181
539
|
hlmPaginationLink
|
|
182
540
|
[class]="_computedClass()"
|
|
@@ -189,31 +547,161 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
189
547
|
<span [class]="_labelClass()">{{ text() }}</span>
|
|
190
548
|
<ng-icon name="lucideChevronRight" class="rtl:rotate-180" />
|
|
191
549
|
</a>
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
550
|
+
`
|
|
551
|
+
}]
|
|
552
|
+
}],
|
|
553
|
+
propDecorators: {
|
|
554
|
+
userClass: [{
|
|
555
|
+
type: i0.Input,
|
|
556
|
+
args: [{
|
|
557
|
+
isSignal: true,
|
|
558
|
+
alias: "class",
|
|
559
|
+
required: false
|
|
560
|
+
}]
|
|
561
|
+
}],
|
|
562
|
+
link: [{
|
|
563
|
+
type: i0.Input,
|
|
564
|
+
args: [{
|
|
565
|
+
isSignal: true,
|
|
566
|
+
alias: "link",
|
|
567
|
+
required: false
|
|
568
|
+
}]
|
|
569
|
+
}],
|
|
570
|
+
queryParams: [{
|
|
571
|
+
type: i0.Input,
|
|
572
|
+
args: [{
|
|
573
|
+
isSignal: true,
|
|
574
|
+
alias: "queryParams",
|
|
575
|
+
required: false
|
|
576
|
+
}]
|
|
577
|
+
}],
|
|
578
|
+
queryParamsHandling: [{
|
|
579
|
+
type: i0.Input,
|
|
580
|
+
args: [{
|
|
581
|
+
isSignal: true,
|
|
582
|
+
alias: "queryParamsHandling",
|
|
583
|
+
required: false
|
|
584
|
+
}]
|
|
585
|
+
}],
|
|
586
|
+
ariaLabel: [{
|
|
587
|
+
type: i0.Input,
|
|
588
|
+
args: [{
|
|
589
|
+
isSignal: true,
|
|
590
|
+
alias: "aria-label",
|
|
591
|
+
required: false
|
|
592
|
+
}]
|
|
593
|
+
}],
|
|
594
|
+
text: [{
|
|
595
|
+
type: i0.Input,
|
|
596
|
+
args: [{
|
|
597
|
+
isSignal: true,
|
|
598
|
+
alias: "text",
|
|
599
|
+
required: false
|
|
600
|
+
}]
|
|
601
|
+
}],
|
|
602
|
+
iconOnly: [{
|
|
603
|
+
type: i0.Input,
|
|
604
|
+
args: [{
|
|
605
|
+
isSignal: true,
|
|
606
|
+
alias: "iconOnly",
|
|
607
|
+
required: false
|
|
608
|
+
}]
|
|
609
|
+
}]
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
var HlmPaginationPrevious = class HlmPaginationPrevious {
|
|
613
|
+
constructor() {
|
|
614
|
+
this.userClass = input("", {
|
|
615
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
616
|
+
alias: "class"
|
|
617
|
+
});
|
|
618
|
+
this.link = input(...ngDevMode ? [void 0, { debugName: "link" }] : /* istanbul ignore next */ []);
|
|
619
|
+
this.queryParams = input(...ngDevMode ? [void 0, { debugName: "queryParams" }] : /* istanbul ignore next */ []);
|
|
620
|
+
this.queryParamsHandling = input(...ngDevMode ? [void 0, { debugName: "queryParamsHandling" }] : /* istanbul ignore next */ []);
|
|
621
|
+
this.ariaLabel = input("Go to previous page", {
|
|
622
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
623
|
+
alias: "aria-label"
|
|
624
|
+
});
|
|
625
|
+
this.text = input("Previous", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
|
|
626
|
+
this.iconOnly = input(false, {
|
|
627
|
+
...ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {},
|
|
628
|
+
transform: booleanAttribute
|
|
629
|
+
});
|
|
630
|
+
this._labelClass = computed(() => hlm(this.iconOnly() ? "sr-only" : "hidden sm:block"), ...ngDevMode ? [{ debugName: "_labelClass" }] : /* istanbul ignore next */ []);
|
|
631
|
+
this._size = computed(() => this.iconOnly() ? "icon" : "default", ...ngDevMode ? [{ debugName: "_size" }] : /* istanbul ignore next */ []);
|
|
632
|
+
this._computedClass = computed(() => hlm(!this.iconOnly() && "ps-1.5!", this.userClass()), ...ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []);
|
|
633
|
+
}
|
|
634
|
+
static {
|
|
635
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
636
|
+
minVersion: "12.0.0",
|
|
637
|
+
version: "22.2.4",
|
|
638
|
+
ngImport: i0,
|
|
639
|
+
type: HlmPaginationPrevious,
|
|
640
|
+
deps: [],
|
|
641
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
static {
|
|
645
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
646
|
+
minVersion: "17.1.0",
|
|
647
|
+
version: "22.2.4",
|
|
648
|
+
type: HlmPaginationPrevious,
|
|
649
|
+
isStandalone: true,
|
|
650
|
+
selector: "hlm-pagination-previous",
|
|
651
|
+
inputs: {
|
|
652
|
+
userClass: {
|
|
653
|
+
classPropertyName: "userClass",
|
|
654
|
+
publicName: "class",
|
|
655
|
+
isSignal: true,
|
|
656
|
+
isRequired: false,
|
|
657
|
+
transformFunction: null
|
|
658
|
+
},
|
|
659
|
+
link: {
|
|
660
|
+
classPropertyName: "link",
|
|
661
|
+
publicName: "link",
|
|
662
|
+
isSignal: true,
|
|
663
|
+
isRequired: false,
|
|
664
|
+
transformFunction: null
|
|
665
|
+
},
|
|
666
|
+
queryParams: {
|
|
667
|
+
classPropertyName: "queryParams",
|
|
668
|
+
publicName: "queryParams",
|
|
669
|
+
isSignal: true,
|
|
670
|
+
isRequired: false,
|
|
671
|
+
transformFunction: null
|
|
672
|
+
},
|
|
673
|
+
queryParamsHandling: {
|
|
674
|
+
classPropertyName: "queryParamsHandling",
|
|
675
|
+
publicName: "queryParamsHandling",
|
|
676
|
+
isSignal: true,
|
|
677
|
+
isRequired: false,
|
|
678
|
+
transformFunction: null
|
|
679
|
+
},
|
|
680
|
+
ariaLabel: {
|
|
681
|
+
classPropertyName: "ariaLabel",
|
|
682
|
+
publicName: "aria-label",
|
|
683
|
+
isSignal: true,
|
|
684
|
+
isRequired: false,
|
|
685
|
+
transformFunction: null
|
|
686
|
+
},
|
|
687
|
+
text: {
|
|
688
|
+
classPropertyName: "text",
|
|
689
|
+
publicName: "text",
|
|
690
|
+
isSignal: true,
|
|
691
|
+
isRequired: false,
|
|
692
|
+
transformFunction: null
|
|
693
|
+
},
|
|
694
|
+
iconOnly: {
|
|
695
|
+
classPropertyName: "iconOnly",
|
|
696
|
+
publicName: "iconOnly",
|
|
697
|
+
isSignal: true,
|
|
698
|
+
isRequired: false,
|
|
699
|
+
transformFunction: null
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
providers: [provideIcons({ lucideChevronLeft })],
|
|
703
|
+
ngImport: i0,
|
|
704
|
+
template: `
|
|
217
705
|
<a
|
|
218
706
|
hlmPaginationLink
|
|
219
707
|
[class]="_computedClass()"
|
|
@@ -226,16 +714,46 @@ class HlmPaginationPrevious {
|
|
|
226
714
|
<ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
|
|
227
715
|
<span [class]="_labelClass()">{{ text() }}</span>
|
|
228
716
|
</a>
|
|
229
|
-
`,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
717
|
+
`,
|
|
718
|
+
isInline: true,
|
|
719
|
+
dependencies: [{
|
|
720
|
+
kind: "directive",
|
|
721
|
+
type: HlmPaginationLink,
|
|
722
|
+
selector: "[hlmPaginationLink]",
|
|
723
|
+
inputs: [
|
|
724
|
+
"isActive",
|
|
725
|
+
"size",
|
|
726
|
+
"link"
|
|
727
|
+
]
|
|
728
|
+
}, {
|
|
729
|
+
kind: "component",
|
|
730
|
+
type: NgIcon,
|
|
731
|
+
selector: "ng-icon",
|
|
732
|
+
inputs: [
|
|
733
|
+
"name",
|
|
734
|
+
"svg",
|
|
735
|
+
"size",
|
|
736
|
+
"strokeWidth",
|
|
737
|
+
"color"
|
|
738
|
+
]
|
|
739
|
+
}],
|
|
740
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
745
|
+
minVersion: "12.0.0",
|
|
746
|
+
version: "22.2.4",
|
|
747
|
+
ngImport: i0,
|
|
748
|
+
type: HlmPaginationPrevious,
|
|
749
|
+
decorators: [{
|
|
750
|
+
type: Component,
|
|
751
|
+
args: [{
|
|
752
|
+
selector: "hlm-pagination-previous",
|
|
753
|
+
imports: [HlmPaginationLink, NgIcon],
|
|
754
|
+
providers: [provideIcons({ lucideChevronLeft })],
|
|
755
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
756
|
+
template: `
|
|
239
757
|
<a
|
|
240
758
|
hlmPaginationLink
|
|
241
759
|
[class]="_computedClass()"
|
|
@@ -248,78 +766,185 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
248
766
|
<ng-icon name="lucideChevronLeft" class="rtl:rotate-180" />
|
|
249
767
|
<span [class]="_labelClass()">{{ text() }}</span>
|
|
250
768
|
</a>
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
769
|
+
`
|
|
770
|
+
}]
|
|
771
|
+
}],
|
|
772
|
+
propDecorators: {
|
|
773
|
+
userClass: [{
|
|
774
|
+
type: i0.Input,
|
|
775
|
+
args: [{
|
|
776
|
+
isSignal: true,
|
|
777
|
+
alias: "class",
|
|
778
|
+
required: false
|
|
779
|
+
}]
|
|
780
|
+
}],
|
|
781
|
+
link: [{
|
|
782
|
+
type: i0.Input,
|
|
783
|
+
args: [{
|
|
784
|
+
isSignal: true,
|
|
785
|
+
alias: "link",
|
|
786
|
+
required: false
|
|
787
|
+
}]
|
|
788
|
+
}],
|
|
789
|
+
queryParams: [{
|
|
790
|
+
type: i0.Input,
|
|
791
|
+
args: [{
|
|
792
|
+
isSignal: true,
|
|
793
|
+
alias: "queryParams",
|
|
794
|
+
required: false
|
|
795
|
+
}]
|
|
796
|
+
}],
|
|
797
|
+
queryParamsHandling: [{
|
|
798
|
+
type: i0.Input,
|
|
799
|
+
args: [{
|
|
800
|
+
isSignal: true,
|
|
801
|
+
alias: "queryParamsHandling",
|
|
802
|
+
required: false
|
|
803
|
+
}]
|
|
804
|
+
}],
|
|
805
|
+
ariaLabel: [{
|
|
806
|
+
type: i0.Input,
|
|
807
|
+
args: [{
|
|
808
|
+
isSignal: true,
|
|
809
|
+
alias: "aria-label",
|
|
810
|
+
required: false
|
|
811
|
+
}]
|
|
812
|
+
}],
|
|
813
|
+
text: [{
|
|
814
|
+
type: i0.Input,
|
|
815
|
+
args: [{
|
|
816
|
+
isSignal: true,
|
|
817
|
+
alias: "text",
|
|
818
|
+
required: false
|
|
819
|
+
}]
|
|
820
|
+
}],
|
|
821
|
+
iconOnly: [{
|
|
822
|
+
type: i0.Input,
|
|
823
|
+
args: [{
|
|
824
|
+
isSignal: true,
|
|
825
|
+
alias: "iconOnly",
|
|
826
|
+
required: false
|
|
827
|
+
}]
|
|
828
|
+
}]
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
var HlmNumberedPagination = class HlmNumberedPagination {
|
|
832
|
+
constructor() {
|
|
833
|
+
this.currentPage = model.required(...ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []);
|
|
834
|
+
this.itemsPerPage = model.required(...ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []);
|
|
835
|
+
this.totalItems = input.required({
|
|
836
|
+
...ngDevMode ? { debugName: "totalItems" } : /* istanbul ignore next */ {},
|
|
837
|
+
transform: numberAttribute
|
|
838
|
+
});
|
|
839
|
+
this.maxSize = input(7, {
|
|
840
|
+
...ngDevMode ? { debugName: "maxSize" } : /* istanbul ignore next */ {},
|
|
841
|
+
transform: numberAttribute
|
|
842
|
+
});
|
|
843
|
+
this.showEdges = input(true, {
|
|
844
|
+
...ngDevMode ? { debugName: "showEdges" } : /* istanbul ignore next */ {},
|
|
845
|
+
transform: booleanAttribute
|
|
846
|
+
});
|
|
847
|
+
this.pageSizes = input([
|
|
848
|
+
10,
|
|
849
|
+
20,
|
|
850
|
+
50,
|
|
851
|
+
100
|
|
852
|
+
], ...ngDevMode ? [{ debugName: "pageSizes" }] : /* istanbul ignore next */ []);
|
|
853
|
+
this._pageSizesWithCurrent = computed(() => {
|
|
854
|
+
const pageSizes = this.pageSizes();
|
|
855
|
+
return pageSizes.includes(this.itemsPerPage()) ? pageSizes : [...pageSizes, this.itemsPerPage()].sort((a, b) => a - b);
|
|
856
|
+
}, ...ngDevMode ? [{ debugName: "_pageSizesWithCurrent" }] : /* istanbul ignore next */ []);
|
|
857
|
+
this._isFirstPageActive = computed(() => this.currentPage() === 1, ...ngDevMode ? [{ debugName: "_isFirstPageActive" }] : /* istanbul ignore next */ []);
|
|
858
|
+
this._isLastPageActive = computed(() => this.currentPage() === this._lastPageNumber(), ...ngDevMode ? [{ debugName: "_isLastPageActive" }] : /* istanbul ignore next */ []);
|
|
859
|
+
this._lastPageNumber = computed(() => {
|
|
860
|
+
if (this.totalItems() < 1) return 1;
|
|
861
|
+
return Math.ceil(this.totalItems() / this.itemsPerPage());
|
|
862
|
+
}, ...ngDevMode ? [{ debugName: "_lastPageNumber" }] : /* istanbul ignore next */ []);
|
|
863
|
+
this._pages = computed(() => {
|
|
864
|
+
const correctedCurrentPage = outOfBoundCorrection(this.totalItems(), this.itemsPerPage(), this.currentPage());
|
|
865
|
+
if (correctedCurrentPage !== this.currentPage()) untracked(() => this.currentPage.set(correctedCurrentPage));
|
|
866
|
+
return createPageArray(correctedCurrentPage, this.itemsPerPage(), this.totalItems(), this.maxSize());
|
|
867
|
+
}, ...ngDevMode ? [{ debugName: "_pages" }] : /* istanbul ignore next */ []);
|
|
868
|
+
}
|
|
869
|
+
goToPrevious() {
|
|
870
|
+
this.currentPage.set(this.currentPage() - 1);
|
|
871
|
+
}
|
|
872
|
+
goToNext() {
|
|
873
|
+
this.currentPage.set(this.currentPage() + 1);
|
|
874
|
+
}
|
|
875
|
+
goToFirst() {
|
|
876
|
+
this.currentPage.set(1);
|
|
877
|
+
}
|
|
878
|
+
goToLast() {
|
|
879
|
+
this.currentPage.set(this._lastPageNumber());
|
|
880
|
+
}
|
|
881
|
+
static {
|
|
882
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
883
|
+
minVersion: "12.0.0",
|
|
884
|
+
version: "22.2.4",
|
|
885
|
+
ngImport: i0,
|
|
886
|
+
type: HlmNumberedPagination,
|
|
887
|
+
deps: [],
|
|
888
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
static {
|
|
892
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
893
|
+
minVersion: "17.0.0",
|
|
894
|
+
version: "22.2.4",
|
|
895
|
+
type: HlmNumberedPagination,
|
|
896
|
+
isStandalone: true,
|
|
897
|
+
selector: "hlm-numbered-pagination",
|
|
898
|
+
inputs: {
|
|
899
|
+
currentPage: {
|
|
900
|
+
classPropertyName: "currentPage",
|
|
901
|
+
publicName: "currentPage",
|
|
902
|
+
isSignal: true,
|
|
903
|
+
isRequired: true,
|
|
904
|
+
transformFunction: null
|
|
905
|
+
},
|
|
906
|
+
itemsPerPage: {
|
|
907
|
+
classPropertyName: "itemsPerPage",
|
|
908
|
+
publicName: "itemsPerPage",
|
|
909
|
+
isSignal: true,
|
|
910
|
+
isRequired: true,
|
|
911
|
+
transformFunction: null
|
|
912
|
+
},
|
|
913
|
+
totalItems: {
|
|
914
|
+
classPropertyName: "totalItems",
|
|
915
|
+
publicName: "totalItems",
|
|
916
|
+
isSignal: true,
|
|
917
|
+
isRequired: true,
|
|
918
|
+
transformFunction: null
|
|
919
|
+
},
|
|
920
|
+
maxSize: {
|
|
921
|
+
classPropertyName: "maxSize",
|
|
922
|
+
publicName: "maxSize",
|
|
923
|
+
isSignal: true,
|
|
924
|
+
isRequired: false,
|
|
925
|
+
transformFunction: null
|
|
926
|
+
},
|
|
927
|
+
showEdges: {
|
|
928
|
+
classPropertyName: "showEdges",
|
|
929
|
+
publicName: "showEdges",
|
|
930
|
+
isSignal: true,
|
|
931
|
+
isRequired: false,
|
|
932
|
+
transformFunction: null
|
|
933
|
+
},
|
|
934
|
+
pageSizes: {
|
|
935
|
+
classPropertyName: "pageSizes",
|
|
936
|
+
publicName: "pageSizes",
|
|
937
|
+
isSignal: true,
|
|
938
|
+
isRequired: false,
|
|
939
|
+
transformFunction: null
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
outputs: {
|
|
943
|
+
currentPage: "currentPageChange",
|
|
944
|
+
itemsPerPage: "itemsPerPageChange"
|
|
945
|
+
},
|
|
946
|
+
ngImport: i0,
|
|
947
|
+
template: `
|
|
323
948
|
<div class="flex items-center justify-between gap-2 px-4 py-2">
|
|
324
949
|
<div class="flex items-center gap-1 text-sm text-nowrap text-gray-600">
|
|
325
950
|
<b>{{ totalItems() }}</b>
|
|
@@ -370,24 +995,137 @@ class HlmNumberedPagination {
|
|
|
370
995
|
</hlm-select-content>
|
|
371
996
|
</hlm-select>
|
|
372
997
|
</div>
|
|
373
|
-
`,
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
998
|
+
`,
|
|
999
|
+
isInline: true,
|
|
1000
|
+
dependencies: [
|
|
1001
|
+
{
|
|
1002
|
+
kind: "directive",
|
|
1003
|
+
type: HlmPagination,
|
|
1004
|
+
selector: "[hlmPagination],hlm-pagination",
|
|
1005
|
+
inputs: ["aria-label"]
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
kind: "directive",
|
|
1009
|
+
type: HlmPaginationContent,
|
|
1010
|
+
selector: "ul[hlmPaginationContent]"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
kind: "directive",
|
|
1014
|
+
type: HlmPaginationItem,
|
|
1015
|
+
selector: "li[hlmPaginationItem]"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
kind: "component",
|
|
1019
|
+
type: HlmPaginationPrevious,
|
|
1020
|
+
selector: "hlm-pagination-previous",
|
|
1021
|
+
inputs: [
|
|
1022
|
+
"class",
|
|
1023
|
+
"link",
|
|
1024
|
+
"queryParams",
|
|
1025
|
+
"queryParamsHandling",
|
|
1026
|
+
"aria-label",
|
|
1027
|
+
"text",
|
|
1028
|
+
"iconOnly"
|
|
1029
|
+
]
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
kind: "component",
|
|
1033
|
+
type: HlmPaginationNext,
|
|
1034
|
+
selector: "hlm-pagination-next",
|
|
1035
|
+
inputs: [
|
|
1036
|
+
"class",
|
|
1037
|
+
"link",
|
|
1038
|
+
"queryParams",
|
|
1039
|
+
"queryParamsHandling",
|
|
1040
|
+
"aria-label",
|
|
1041
|
+
"text",
|
|
1042
|
+
"iconOnly"
|
|
1043
|
+
]
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
kind: "directive",
|
|
1047
|
+
type: HlmPaginationLink,
|
|
1048
|
+
selector: "[hlmPaginationLink]",
|
|
1049
|
+
inputs: [
|
|
1050
|
+
"isActive",
|
|
1051
|
+
"size",
|
|
1052
|
+
"link"
|
|
1053
|
+
]
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
kind: "component",
|
|
1057
|
+
type: HlmPaginationEllipsis,
|
|
1058
|
+
selector: "hlm-pagination-ellipsis",
|
|
1059
|
+
inputs: ["srOnlyText"]
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
kind: "directive",
|
|
1063
|
+
type: i1.HlmSelect,
|
|
1064
|
+
selector: "[hlmSelect],hlm-select"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
kind: "component",
|
|
1068
|
+
type: i1.HlmSelectContent,
|
|
1069
|
+
selector: "hlm-select-content",
|
|
1070
|
+
inputs: ["showScroll"]
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
kind: "directive",
|
|
1074
|
+
type: i1.HlmSelectGroup,
|
|
1075
|
+
selector: "[hlmSelectGroup],hlm-select-group"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
kind: "component",
|
|
1079
|
+
type: i1.HlmSelectItem,
|
|
1080
|
+
selector: "hlm-select-item"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
kind: "directive",
|
|
1084
|
+
type: i1.HlmSelectPortal,
|
|
1085
|
+
selector: "[hlmSelectPortal]"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
kind: "component",
|
|
1089
|
+
type: i1.HlmSelectTrigger,
|
|
1090
|
+
selector: "hlm-select-trigger",
|
|
1091
|
+
inputs: [
|
|
1092
|
+
"class",
|
|
1093
|
+
"buttonId",
|
|
1094
|
+
"size",
|
|
1095
|
+
"forceInvalid"
|
|
1096
|
+
]
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
kind: "directive",
|
|
1100
|
+
type: i1.HlmSelectValue,
|
|
1101
|
+
selector: "[hlmSelectValue],hlm-select-value"
|
|
1102
|
+
}
|
|
1103
|
+
],
|
|
1104
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
};
|
|
1108
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1109
|
+
minVersion: "12.0.0",
|
|
1110
|
+
version: "22.2.4",
|
|
1111
|
+
ngImport: i0,
|
|
1112
|
+
type: HlmNumberedPagination,
|
|
1113
|
+
decorators: [{
|
|
1114
|
+
type: Component,
|
|
1115
|
+
args: [{
|
|
1116
|
+
selector: "hlm-numbered-pagination",
|
|
1117
|
+
imports: [
|
|
1118
|
+
HlmPagination,
|
|
1119
|
+
HlmPaginationContent,
|
|
1120
|
+
HlmPaginationItem,
|
|
1121
|
+
HlmPaginationPrevious,
|
|
1122
|
+
HlmPaginationNext,
|
|
1123
|
+
HlmPaginationLink,
|
|
1124
|
+
HlmPaginationEllipsis,
|
|
1125
|
+
HlmSelectImports
|
|
1126
|
+
],
|
|
1127
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1128
|
+
template: `
|
|
391
1129
|
<div class="flex items-center justify-between gap-2 px-4 py-2">
|
|
392
1130
|
<div class="flex items-center gap-1 text-sm text-nowrap text-gray-600">
|
|
393
1131
|
<b>{{ totalItems() }}</b>
|
|
@@ -438,147 +1176,219 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
438
1176
|
</hlm-select-content>
|
|
439
1177
|
</hlm-select>
|
|
440
1178
|
</div>
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
1179
|
+
`
|
|
1180
|
+
}]
|
|
1181
|
+
}],
|
|
1182
|
+
propDecorators: {
|
|
1183
|
+
currentPage: [{
|
|
1184
|
+
type: i0.Input,
|
|
1185
|
+
args: [{
|
|
1186
|
+
isSignal: true,
|
|
1187
|
+
alias: "currentPage",
|
|
1188
|
+
required: true
|
|
1189
|
+
}]
|
|
1190
|
+
}, {
|
|
1191
|
+
type: i0.Output,
|
|
1192
|
+
args: ["currentPageChange"]
|
|
1193
|
+
}],
|
|
1194
|
+
itemsPerPage: [{
|
|
1195
|
+
type: i0.Input,
|
|
1196
|
+
args: [{
|
|
1197
|
+
isSignal: true,
|
|
1198
|
+
alias: "itemsPerPage",
|
|
1199
|
+
required: true
|
|
1200
|
+
}]
|
|
1201
|
+
}, {
|
|
1202
|
+
type: i0.Output,
|
|
1203
|
+
args: ["itemsPerPageChange"]
|
|
1204
|
+
}],
|
|
1205
|
+
totalItems: [{
|
|
1206
|
+
type: i0.Input,
|
|
1207
|
+
args: [{
|
|
1208
|
+
isSignal: true,
|
|
1209
|
+
alias: "totalItems",
|
|
1210
|
+
required: true
|
|
1211
|
+
}]
|
|
1212
|
+
}],
|
|
1213
|
+
maxSize: [{
|
|
1214
|
+
type: i0.Input,
|
|
1215
|
+
args: [{
|
|
1216
|
+
isSignal: true,
|
|
1217
|
+
alias: "maxSize",
|
|
1218
|
+
required: false
|
|
1219
|
+
}]
|
|
1220
|
+
}],
|
|
1221
|
+
showEdges: [{
|
|
1222
|
+
type: i0.Input,
|
|
1223
|
+
args: [{
|
|
1224
|
+
isSignal: true,
|
|
1225
|
+
alias: "showEdges",
|
|
1226
|
+
required: false
|
|
1227
|
+
}]
|
|
1228
|
+
}],
|
|
1229
|
+
pageSizes: [{
|
|
1230
|
+
type: i0.Input,
|
|
1231
|
+
args: [{
|
|
1232
|
+
isSignal: true,
|
|
1233
|
+
alias: "pageSizes",
|
|
1234
|
+
required: false
|
|
1235
|
+
}]
|
|
1236
|
+
}]
|
|
1237
|
+
}
|
|
1238
|
+
});
|
|
450
1239
|
function outOfBoundCorrection(totalItems, itemsPerPage, currentPage) {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
if (currentPage < 1) {
|
|
456
|
-
return 1;
|
|
457
|
-
}
|
|
458
|
-
return currentPage;
|
|
1240
|
+
const totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
1241
|
+
if (totalPages < currentPage && 0 < totalPages) return totalPages;
|
|
1242
|
+
if (currentPage < 1) return 1;
|
|
1243
|
+
return currentPage;
|
|
459
1244
|
}
|
|
460
|
-
/**
|
|
461
|
-
* Returns an array of Page objects to use in the pagination controls.
|
|
462
|
-
*
|
|
463
|
-
* Copied from 'ngx-pagination' package
|
|
464
|
-
*/
|
|
465
1245
|
function createPageArray(currentPage, itemsPerPage, totalItems, paginationRange) {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
else {
|
|
487
|
-
label = pageNumber;
|
|
488
|
-
}
|
|
489
|
-
pages.push(label);
|
|
490
|
-
i++;
|
|
491
|
-
}
|
|
492
|
-
return pages;
|
|
1246
|
+
paginationRange = +paginationRange;
|
|
1247
|
+
const pages = [];
|
|
1248
|
+
const totalPages = Math.max(Math.ceil(totalItems / itemsPerPage), 1);
|
|
1249
|
+
const halfWay = Math.ceil(paginationRange / 2);
|
|
1250
|
+
const isStart = currentPage <= halfWay;
|
|
1251
|
+
const isEnd = totalPages - halfWay < currentPage;
|
|
1252
|
+
const isMiddle = !isStart && !isEnd;
|
|
1253
|
+
const ellipsesNeeded = paginationRange < totalPages;
|
|
1254
|
+
let i = 1;
|
|
1255
|
+
while (i <= totalPages && i <= paginationRange) {
|
|
1256
|
+
let label;
|
|
1257
|
+
const pageNumber = calculatePageNumber(i, currentPage, paginationRange, totalPages);
|
|
1258
|
+
const openingEllipsesNeeded = i === 2 && (isMiddle || isEnd);
|
|
1259
|
+
const closingEllipsesNeeded = i === paginationRange - 1 && (isMiddle || isStart);
|
|
1260
|
+
if (ellipsesNeeded && (openingEllipsesNeeded || closingEllipsesNeeded)) label = "...";
|
|
1261
|
+
else label = pageNumber;
|
|
1262
|
+
pages.push(label);
|
|
1263
|
+
i++;
|
|
1264
|
+
}
|
|
1265
|
+
return pages;
|
|
493
1266
|
}
|
|
494
|
-
/**
|
|
495
|
-
* Given the position in the sequence of pagination links [i],
|
|
496
|
-
* figure out what page number corresponds to that position.
|
|
497
|
-
*
|
|
498
|
-
* Copied from 'ngx-pagination' package
|
|
499
|
-
*/
|
|
500
1267
|
function calculatePageNumber(i, currentPage, paginationRange, totalPages) {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
return totalPages - paginationRange + i;
|
|
511
|
-
}
|
|
512
|
-
if (halfWay < currentPage) {
|
|
513
|
-
return currentPage - halfWay + i;
|
|
514
|
-
}
|
|
515
|
-
return i;
|
|
516
|
-
}
|
|
517
|
-
return i;
|
|
1268
|
+
const halfWay = Math.ceil(paginationRange / 2);
|
|
1269
|
+
if (i === paginationRange) return totalPages;
|
|
1270
|
+
if (i === 1) return i;
|
|
1271
|
+
if (paginationRange < totalPages) {
|
|
1272
|
+
if (totalPages - halfWay < currentPage) return totalPages - paginationRange + i;
|
|
1273
|
+
if (halfWay < currentPage) return currentPage - halfWay + i;
|
|
1274
|
+
return i;
|
|
1275
|
+
}
|
|
1276
|
+
return i;
|
|
518
1277
|
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
1278
|
+
var HlmNumberedPaginationQueryParams = class HlmNumberedPaginationQueryParams {
|
|
1279
|
+
constructor() {
|
|
1280
|
+
this.currentPage = model.required(...ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []);
|
|
1281
|
+
this.itemsPerPage = model.required(...ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []);
|
|
1282
|
+
this.totalItems = input.required({
|
|
1283
|
+
...ngDevMode ? { debugName: "totalItems" } : /* istanbul ignore next */ {},
|
|
1284
|
+
transform: numberAttribute
|
|
1285
|
+
});
|
|
1286
|
+
this.link = input(".", ...ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []);
|
|
1287
|
+
this.maxSize = input(7, {
|
|
1288
|
+
...ngDevMode ? { debugName: "maxSize" } : /* istanbul ignore next */ {},
|
|
1289
|
+
transform: numberAttribute
|
|
1290
|
+
});
|
|
1291
|
+
this.showEdges = input(true, {
|
|
1292
|
+
...ngDevMode ? { debugName: "showEdges" } : /* istanbul ignore next */ {},
|
|
1293
|
+
transform: booleanAttribute
|
|
1294
|
+
});
|
|
1295
|
+
this.pageSizes = input([
|
|
1296
|
+
10,
|
|
1297
|
+
20,
|
|
1298
|
+
50,
|
|
1299
|
+
100
|
|
1300
|
+
], ...ngDevMode ? [{ debugName: "pageSizes" }] : /* istanbul ignore next */ []);
|
|
1301
|
+
this._pageSizesWithCurrent = computed(() => {
|
|
1302
|
+
const pageSizes = this.pageSizes();
|
|
1303
|
+
return pageSizes.includes(this.itemsPerPage()) ? pageSizes : [...pageSizes, this.itemsPerPage()].sort((a, b) => a - b);
|
|
1304
|
+
}, ...ngDevMode ? [{ debugName: "_pageSizesWithCurrent" }] : /* istanbul ignore next */ []);
|
|
1305
|
+
this._isFirstPageActive = computed(() => this.currentPage() === 1, ...ngDevMode ? [{ debugName: "_isFirstPageActive" }] : /* istanbul ignore next */ []);
|
|
1306
|
+
this._isLastPageActive = computed(() => this.currentPage() === this._lastPageNumber(), ...ngDevMode ? [{ debugName: "_isLastPageActive" }] : /* istanbul ignore next */ []);
|
|
1307
|
+
this._lastPageNumber = computed(() => {
|
|
1308
|
+
if (this.totalItems() < 1) return 1;
|
|
1309
|
+
return Math.ceil(this.totalItems() / this.itemsPerPage());
|
|
1310
|
+
}, ...ngDevMode ? [{ debugName: "_lastPageNumber" }] : /* istanbul ignore next */ []);
|
|
1311
|
+
this._pages = computed(() => {
|
|
1312
|
+
const correctedCurrentPage = outOfBoundCorrection(this.totalItems(), this.itemsPerPage(), this.currentPage());
|
|
1313
|
+
if (correctedCurrentPage !== this.currentPage()) untracked(() => this.currentPage.set(correctedCurrentPage));
|
|
1314
|
+
return createPageArray(correctedCurrentPage, this.itemsPerPage(), this.totalItems(), this.maxSize());
|
|
1315
|
+
}, ...ngDevMode ? [{ debugName: "_pages" }] : /* istanbul ignore next */ []);
|
|
1316
|
+
classes(() => "flex items-center justify-between gap-2 px-4 py-2");
|
|
1317
|
+
}
|
|
1318
|
+
static {
|
|
1319
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1320
|
+
minVersion: "12.0.0",
|
|
1321
|
+
version: "22.2.4",
|
|
1322
|
+
ngImport: i0,
|
|
1323
|
+
type: HlmNumberedPaginationQueryParams,
|
|
1324
|
+
deps: [],
|
|
1325
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
static {
|
|
1329
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1330
|
+
minVersion: "17.0.0",
|
|
1331
|
+
version: "22.2.4",
|
|
1332
|
+
type: HlmNumberedPaginationQueryParams,
|
|
1333
|
+
isStandalone: true,
|
|
1334
|
+
selector: "hlm-numbered-pagination-query-params",
|
|
1335
|
+
inputs: {
|
|
1336
|
+
currentPage: {
|
|
1337
|
+
classPropertyName: "currentPage",
|
|
1338
|
+
publicName: "currentPage",
|
|
1339
|
+
isSignal: true,
|
|
1340
|
+
isRequired: true,
|
|
1341
|
+
transformFunction: null
|
|
1342
|
+
},
|
|
1343
|
+
itemsPerPage: {
|
|
1344
|
+
classPropertyName: "itemsPerPage",
|
|
1345
|
+
publicName: "itemsPerPage",
|
|
1346
|
+
isSignal: true,
|
|
1347
|
+
isRequired: true,
|
|
1348
|
+
transformFunction: null
|
|
1349
|
+
},
|
|
1350
|
+
totalItems: {
|
|
1351
|
+
classPropertyName: "totalItems",
|
|
1352
|
+
publicName: "totalItems",
|
|
1353
|
+
isSignal: true,
|
|
1354
|
+
isRequired: true,
|
|
1355
|
+
transformFunction: null
|
|
1356
|
+
},
|
|
1357
|
+
link: {
|
|
1358
|
+
classPropertyName: "link",
|
|
1359
|
+
publicName: "link",
|
|
1360
|
+
isSignal: true,
|
|
1361
|
+
isRequired: false,
|
|
1362
|
+
transformFunction: null
|
|
1363
|
+
},
|
|
1364
|
+
maxSize: {
|
|
1365
|
+
classPropertyName: "maxSize",
|
|
1366
|
+
publicName: "maxSize",
|
|
1367
|
+
isSignal: true,
|
|
1368
|
+
isRequired: false,
|
|
1369
|
+
transformFunction: null
|
|
1370
|
+
},
|
|
1371
|
+
showEdges: {
|
|
1372
|
+
classPropertyName: "showEdges",
|
|
1373
|
+
publicName: "showEdges",
|
|
1374
|
+
isSignal: true,
|
|
1375
|
+
isRequired: false,
|
|
1376
|
+
transformFunction: null
|
|
1377
|
+
},
|
|
1378
|
+
pageSizes: {
|
|
1379
|
+
classPropertyName: "pageSizes",
|
|
1380
|
+
publicName: "pageSizes",
|
|
1381
|
+
isSignal: true,
|
|
1382
|
+
isRequired: false,
|
|
1383
|
+
transformFunction: null
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
outputs: {
|
|
1387
|
+
currentPage: "currentPageChange",
|
|
1388
|
+
itemsPerPage: "itemsPerPageChange"
|
|
1389
|
+
},
|
|
1390
|
+
ngImport: i0,
|
|
1391
|
+
template: `
|
|
582
1392
|
<div class="flex items-center gap-1 text-sm text-nowrap text-gray-600">
|
|
583
1393
|
<b>{{ totalItems() }}</b>
|
|
584
1394
|
total items |
|
|
@@ -641,24 +1451,137 @@ class HlmNumberedPaginationQueryParams {
|
|
|
641
1451
|
</hlm-select-group>
|
|
642
1452
|
</hlm-select-content>
|
|
643
1453
|
</hlm-select>
|
|
644
|
-
`,
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
1454
|
+
`,
|
|
1455
|
+
isInline: true,
|
|
1456
|
+
dependencies: [
|
|
1457
|
+
{
|
|
1458
|
+
kind: "directive",
|
|
1459
|
+
type: HlmPagination,
|
|
1460
|
+
selector: "[hlmPagination],hlm-pagination",
|
|
1461
|
+
inputs: ["aria-label"]
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
kind: "directive",
|
|
1465
|
+
type: HlmPaginationContent,
|
|
1466
|
+
selector: "ul[hlmPaginationContent]"
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
kind: "directive",
|
|
1470
|
+
type: HlmPaginationItem,
|
|
1471
|
+
selector: "li[hlmPaginationItem]"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
kind: "component",
|
|
1475
|
+
type: HlmPaginationPrevious,
|
|
1476
|
+
selector: "hlm-pagination-previous",
|
|
1477
|
+
inputs: [
|
|
1478
|
+
"class",
|
|
1479
|
+
"link",
|
|
1480
|
+
"queryParams",
|
|
1481
|
+
"queryParamsHandling",
|
|
1482
|
+
"aria-label",
|
|
1483
|
+
"text",
|
|
1484
|
+
"iconOnly"
|
|
1485
|
+
]
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
kind: "component",
|
|
1489
|
+
type: HlmPaginationNext,
|
|
1490
|
+
selector: "hlm-pagination-next",
|
|
1491
|
+
inputs: [
|
|
1492
|
+
"class",
|
|
1493
|
+
"link",
|
|
1494
|
+
"queryParams",
|
|
1495
|
+
"queryParamsHandling",
|
|
1496
|
+
"aria-label",
|
|
1497
|
+
"text",
|
|
1498
|
+
"iconOnly"
|
|
1499
|
+
]
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
kind: "directive",
|
|
1503
|
+
type: HlmPaginationLink,
|
|
1504
|
+
selector: "[hlmPaginationLink]",
|
|
1505
|
+
inputs: [
|
|
1506
|
+
"isActive",
|
|
1507
|
+
"size",
|
|
1508
|
+
"link"
|
|
1509
|
+
]
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
kind: "component",
|
|
1513
|
+
type: HlmPaginationEllipsis,
|
|
1514
|
+
selector: "hlm-pagination-ellipsis",
|
|
1515
|
+
inputs: ["srOnlyText"]
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
kind: "directive",
|
|
1519
|
+
type: i1.HlmSelect,
|
|
1520
|
+
selector: "[hlmSelect],hlm-select"
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
kind: "component",
|
|
1524
|
+
type: i1.HlmSelectContent,
|
|
1525
|
+
selector: "hlm-select-content",
|
|
1526
|
+
inputs: ["showScroll"]
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
kind: "directive",
|
|
1530
|
+
type: i1.HlmSelectGroup,
|
|
1531
|
+
selector: "[hlmSelectGroup],hlm-select-group"
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
kind: "component",
|
|
1535
|
+
type: i1.HlmSelectItem,
|
|
1536
|
+
selector: "hlm-select-item"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
kind: "directive",
|
|
1540
|
+
type: i1.HlmSelectPortal,
|
|
1541
|
+
selector: "[hlmSelectPortal]"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
kind: "component",
|
|
1545
|
+
type: i1.HlmSelectTrigger,
|
|
1546
|
+
selector: "hlm-select-trigger",
|
|
1547
|
+
inputs: [
|
|
1548
|
+
"class",
|
|
1549
|
+
"buttonId",
|
|
1550
|
+
"size",
|
|
1551
|
+
"forceInvalid"
|
|
1552
|
+
]
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
kind: "directive",
|
|
1556
|
+
type: i1.HlmSelectValue,
|
|
1557
|
+
selector: "[hlmSelectValue],hlm-select-value"
|
|
1558
|
+
}
|
|
1559
|
+
],
|
|
1560
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1561
|
+
});
|
|
1562
|
+
}
|
|
1563
|
+
};
|
|
1564
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1565
|
+
minVersion: "12.0.0",
|
|
1566
|
+
version: "22.2.4",
|
|
1567
|
+
ngImport: i0,
|
|
1568
|
+
type: HlmNumberedPaginationQueryParams,
|
|
1569
|
+
decorators: [{
|
|
1570
|
+
type: Component,
|
|
1571
|
+
args: [{
|
|
1572
|
+
selector: "hlm-numbered-pagination-query-params",
|
|
1573
|
+
imports: [
|
|
1574
|
+
HlmPagination,
|
|
1575
|
+
HlmPaginationContent,
|
|
1576
|
+
HlmPaginationItem,
|
|
1577
|
+
HlmPaginationPrevious,
|
|
1578
|
+
HlmPaginationNext,
|
|
1579
|
+
HlmPaginationLink,
|
|
1580
|
+
HlmPaginationEllipsis,
|
|
1581
|
+
HlmSelectImports
|
|
1582
|
+
],
|
|
1583
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1584
|
+
template: `
|
|
662
1585
|
<div class="flex items-center gap-1 text-sm text-nowrap text-gray-600">
|
|
663
1586
|
<b>{{ totalItems() }}</b>
|
|
664
1587
|
total items |
|
|
@@ -721,25 +1644,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
721
1644
|
</hlm-select-group>
|
|
722
1645
|
</hlm-select-content>
|
|
723
1646
|
</hlm-select>
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
1647
|
+
`
|
|
1648
|
+
}]
|
|
1649
|
+
}],
|
|
1650
|
+
ctorParameters: () => [],
|
|
1651
|
+
propDecorators: {
|
|
1652
|
+
currentPage: [{
|
|
1653
|
+
type: i0.Input,
|
|
1654
|
+
args: [{
|
|
1655
|
+
isSignal: true,
|
|
1656
|
+
alias: "currentPage",
|
|
1657
|
+
required: true
|
|
1658
|
+
}]
|
|
1659
|
+
}, {
|
|
1660
|
+
type: i0.Output,
|
|
1661
|
+
args: ["currentPageChange"]
|
|
1662
|
+
}],
|
|
1663
|
+
itemsPerPage: [{
|
|
1664
|
+
type: i0.Input,
|
|
1665
|
+
args: [{
|
|
1666
|
+
isSignal: true,
|
|
1667
|
+
alias: "itemsPerPage",
|
|
1668
|
+
required: true
|
|
1669
|
+
}]
|
|
1670
|
+
}, {
|
|
1671
|
+
type: i0.Output,
|
|
1672
|
+
args: ["itemsPerPageChange"]
|
|
1673
|
+
}],
|
|
1674
|
+
totalItems: [{
|
|
1675
|
+
type: i0.Input,
|
|
1676
|
+
args: [{
|
|
1677
|
+
isSignal: true,
|
|
1678
|
+
alias: "totalItems",
|
|
1679
|
+
required: true
|
|
1680
|
+
}]
|
|
1681
|
+
}],
|
|
1682
|
+
link: [{
|
|
1683
|
+
type: i0.Input,
|
|
1684
|
+
args: [{
|
|
1685
|
+
isSignal: true,
|
|
1686
|
+
alias: "link",
|
|
1687
|
+
required: false
|
|
1688
|
+
}]
|
|
1689
|
+
}],
|
|
1690
|
+
maxSize: [{
|
|
1691
|
+
type: i0.Input,
|
|
1692
|
+
args: [{
|
|
1693
|
+
isSignal: true,
|
|
1694
|
+
alias: "maxSize",
|
|
1695
|
+
required: false
|
|
1696
|
+
}]
|
|
1697
|
+
}],
|
|
1698
|
+
showEdges: [{
|
|
1699
|
+
type: i0.Input,
|
|
1700
|
+
args: [{
|
|
1701
|
+
isSignal: true,
|
|
1702
|
+
alias: "showEdges",
|
|
1703
|
+
required: false
|
|
1704
|
+
}]
|
|
1705
|
+
}],
|
|
1706
|
+
pageSizes: [{
|
|
1707
|
+
type: i0.Input,
|
|
1708
|
+
args: [{
|
|
1709
|
+
isSignal: true,
|
|
1710
|
+
alias: "pageSizes",
|
|
1711
|
+
required: false
|
|
1712
|
+
}]
|
|
1713
|
+
}]
|
|
1714
|
+
}
|
|
1715
|
+
});
|
|
728
1716
|
const HlmPaginationImports = [
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
1717
|
+
HlmPagination,
|
|
1718
|
+
HlmPaginationContent,
|
|
1719
|
+
HlmPaginationItem,
|
|
1720
|
+
HlmPaginationLink,
|
|
1721
|
+
HlmPaginationPrevious,
|
|
1722
|
+
HlmPaginationNext,
|
|
1723
|
+
HlmPaginationEllipsis,
|
|
1724
|
+
HlmNumberedPagination,
|
|
1725
|
+
HlmNumberedPaginationQueryParams
|
|
738
1726
|
];
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* Generated bundle index. Do not edit.
|
|
742
|
-
*/
|
|
743
|
-
|
|
744
1727
|
export { HlmNumberedPagination, HlmNumberedPaginationQueryParams, HlmPagination, HlmPaginationContent, HlmPaginationEllipsis, HlmPaginationImports, HlmPaginationItem, HlmPaginationLink, HlmPaginationNext, HlmPaginationPrevious, createPageArray, outOfBoundCorrection };
|
|
745
|
-
|
|
1728
|
+
|
|
1729
|
+
//# sourceMappingURL=yukit-web-helm-pagination.mjs.map
|