@connectif/ui-components 9.0.1 → 9.0.3
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/CHANGELOG.md +17 -0
- package/dist/components/icon/icons.d.ts +4 -0
- package/dist/components/input/PageSelector.d.ts +6 -0
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/es.d.ts +1 -0
- package/dist/i18n/fr.d.ts +1 -0
- package/dist/i18n/it.d.ts +1 -0
- package/dist/i18n/pt.d.ts +1 -0
- package/dist/index.js +36 -10
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [9.0.3] - 2026-06-02
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added `maxNavigablePage` prop to `PageSelector` to cap the navigable page range for both buttons and text input.
|
|
8
|
+
- Added a tooltip on the `PageSelector` next button when it is disabled because the user has reached the last navigable page.
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Changes the default icon for `success` and `warning` severities of the `Alert` component for the "outlined" versions.
|
|
13
|
+
|
|
14
|
+
## [9.0.2] - 2026-05-29
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Added `calendar-star-outline`, `play-speed`, `timer-play-outline`, `timer-stop-outline` icons.
|
|
19
|
+
|
|
3
20
|
## [9.0.1] - 2026-05-28
|
|
4
21
|
|
|
5
22
|
### Added
|
|
@@ -312,6 +312,7 @@ export declare const icons: {
|
|
|
312
312
|
'calendar-range': string;
|
|
313
313
|
'calendar-remove': string;
|
|
314
314
|
'calendar-search-outline': string;
|
|
315
|
+
'calendar-star-outline': string;
|
|
315
316
|
'calendar-text': string;
|
|
316
317
|
'calendar-today': string;
|
|
317
318
|
'call-made': string;
|
|
@@ -1381,6 +1382,7 @@ export declare const icons: {
|
|
|
1381
1382
|
'playlist-play': string;
|
|
1382
1383
|
'playlist-plus': string;
|
|
1383
1384
|
'playlist-remove': string;
|
|
1385
|
+
'play-speed': string;
|
|
1384
1386
|
playstation: string;
|
|
1385
1387
|
plex: string;
|
|
1386
1388
|
plus: string;
|
|
@@ -1752,8 +1754,10 @@ export declare const icons: {
|
|
|
1752
1754
|
'timer-cancel': string;
|
|
1753
1755
|
'timer-off': string;
|
|
1754
1756
|
'timer-outline': string;
|
|
1757
|
+
'timer-play-outline': string;
|
|
1755
1758
|
'timer-sand': string;
|
|
1756
1759
|
'timer-sand-empty': string;
|
|
1760
|
+
'timer-stop-outline': string;
|
|
1757
1761
|
timetable: string;
|
|
1758
1762
|
'toggle-switch': string;
|
|
1759
1763
|
'toggle-switch-off': string;
|
|
@@ -24,6 +24,12 @@ export type PageSelectorProps = {
|
|
|
24
24
|
* @default false
|
|
25
25
|
*/
|
|
26
26
|
hideText?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Optional maximum navigable page. When provided, navigation (buttons and input)
|
|
29
|
+
* is capped to this value or the last page derived from totalItems/pageSize,
|
|
30
|
+
* whichever is lower.
|
|
31
|
+
*/
|
|
32
|
+
maxNavigablePage?: number;
|
|
27
33
|
/**
|
|
28
34
|
* The function to call when the page is changed by the user.
|
|
29
35
|
*/
|
package/dist/i18n/en.d.ts
CHANGED
package/dist/i18n/es.d.ts
CHANGED
package/dist/i18n/fr.d.ts
CHANGED
package/dist/i18n/it.d.ts
CHANGED
package/dist/i18n/pt.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1200,6 +1200,7 @@ import {
|
|
|
1200
1200
|
mdiCalendarRange,
|
|
1201
1201
|
mdiCalendarRemove,
|
|
1202
1202
|
mdiCalendarSearchOutline,
|
|
1203
|
+
mdiCalendarStarOutline,
|
|
1203
1204
|
mdiCalendarText,
|
|
1204
1205
|
mdiCalendarToday,
|
|
1205
1206
|
mdiCallMade,
|
|
@@ -2137,6 +2138,7 @@ import {
|
|
|
2137
2138
|
mdiPlaylistPlay,
|
|
2138
2139
|
mdiPlaylistPlus,
|
|
2139
2140
|
mdiPlaylistRemove,
|
|
2141
|
+
mdiPlaySpeed,
|
|
2140
2142
|
mdiPlus,
|
|
2141
2143
|
mdiPlusBox,
|
|
2142
2144
|
mdiPlusBoxOutline,
|
|
@@ -2475,8 +2477,10 @@ import {
|
|
|
2475
2477
|
mdiTimerCancel,
|
|
2476
2478
|
mdiTimerOff,
|
|
2477
2479
|
mdiTimerOutline,
|
|
2480
|
+
mdiTimerPlayOutline,
|
|
2478
2481
|
mdiTimerSand,
|
|
2479
2482
|
mdiTimerSandEmpty,
|
|
2483
|
+
mdiTimerStopOutline,
|
|
2480
2484
|
mdiTimetable,
|
|
2481
2485
|
mdiToggleSwitch,
|
|
2482
2486
|
mdiToggleSwitchOff,
|
|
@@ -2955,6 +2959,7 @@ var icons = {
|
|
|
2955
2959
|
"calendar-range": mdiCalendarRange,
|
|
2956
2960
|
"calendar-remove": mdiCalendarRemove,
|
|
2957
2961
|
"calendar-search-outline": mdiCalendarSearchOutline,
|
|
2962
|
+
"calendar-star-outline": mdiCalendarStarOutline,
|
|
2958
2963
|
"calendar-text": mdiCalendarText,
|
|
2959
2964
|
"calendar-today": mdiCalendarToday,
|
|
2960
2965
|
"call-made": mdiCallMade,
|
|
@@ -4047,6 +4052,7 @@ var icons = {
|
|
|
4047
4052
|
"playlist-play": mdiPlaylistPlay,
|
|
4048
4053
|
"playlist-plus": mdiPlaylistPlus,
|
|
4049
4054
|
"playlist-remove": mdiPlaylistRemove,
|
|
4055
|
+
"play-speed": mdiPlaySpeed,
|
|
4050
4056
|
playstation: "M9.5,4.27C10.88,4.53 12.9,5.14 14,5.5C16.75,6.45 17.69,7.63 17.69,10.29C17.69,12.89 16.09,13.87 14.05,12.89V8.05C14.05,7.5 13.95,6.97 13.41,6.82C13,6.69 12.76,7.07 12.76,7.63V19.73L9.5,18.69V4.27M13.37,17.62L18.62,15.75C19.22,15.54 19.31,15.24 18.83,15.08C18.34,14.92 17.47,14.97 16.87,15.18L13.37,16.41V14.45L13.58,14.38C13.58,14.38 14.59,14 16,13.87C17.43,13.71 19.17,13.89 20.53,14.4C22.07,14.89 22.25,15.61 21.86,16.1C21.46,16.6 20.5,16.95 20.5,16.95L13.37,19.5V17.62M3.5,17.42C1.93,17 1.66,16.05 2.38,15.5C3.05,15 4.18,14.65 4.18,14.65L8.86,13V14.88L5.5,16.09C4.9,16.3 4.81,16.6 5.29,16.76C5.77,16.92 6.65,16.88 7.24,16.66L8.86,16.08V17.77L8.54,17.83C6.92,18.09 5.2,18 3.5,17.42Z",
|
|
4051
4057
|
plex: "M4,2C2.89,2 2,2.89 2,4V20C2,21.11 2.89,22 4,22H20C21.11,22 22,21.11 22,20V4C22,2.89 21.11,2 20,2H4M8.56,6H12.06L15.5,12L12.06,18H8.56L12,12L8.56,6Z",
|
|
4052
4058
|
plus: mdiPlus,
|
|
@@ -4430,8 +4436,10 @@ var icons = {
|
|
|
4430
4436
|
"timer-cancel": mdiTimerCancel,
|
|
4431
4437
|
"timer-off": mdiTimerOff,
|
|
4432
4438
|
"timer-outline": mdiTimerOutline,
|
|
4439
|
+
"timer-play-outline": mdiTimerPlayOutline,
|
|
4433
4440
|
"timer-sand": mdiTimerSand,
|
|
4434
4441
|
"timer-sand-empty": mdiTimerSandEmpty,
|
|
4442
|
+
"timer-stop-outline": mdiTimerStopOutline,
|
|
4435
4443
|
timetable: mdiTimetable,
|
|
4436
4444
|
"toggle-switch": mdiToggleSwitch,
|
|
4437
4445
|
"toggle-switch-off": mdiToggleSwitchOff,
|
|
@@ -7734,9 +7742,9 @@ var useCustomTheme = () => useTheme3();
|
|
|
7734
7742
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
7735
7743
|
var icons2 = {
|
|
7736
7744
|
info: "information-outline",
|
|
7737
|
-
success: "check-circle",
|
|
7745
|
+
success: "check-circle-outline",
|
|
7738
7746
|
error: "alert-circle-outline",
|
|
7739
|
-
warning: "alert"
|
|
7747
|
+
warning: "alert-outline"
|
|
7740
7748
|
};
|
|
7741
7749
|
var getColor = (theme2, severity) => {
|
|
7742
7750
|
switch (severity) {
|
|
@@ -14950,6 +14958,7 @@ var DATE_INTERVAL_PICKER = {
|
|
|
14950
14958
|
START_HOUR: "Start hour"
|
|
14951
14959
|
};
|
|
14952
14960
|
var PAGE_SELECTOR = {
|
|
14961
|
+
LAST_PAGE_REACHED: "You have reached the last page",
|
|
14953
14962
|
SHOWING_ITEMS: "Showing <b>{from}-{to}</b> of {total}"
|
|
14954
14963
|
};
|
|
14955
14964
|
var SELECT_POPOVER = {
|
|
@@ -15241,6 +15250,7 @@ var DATE_INTERVAL_PICKER2 = {
|
|
|
15241
15250
|
START_HOUR: "Hora de inicio"
|
|
15242
15251
|
};
|
|
15243
15252
|
var PAGE_SELECTOR2 = {
|
|
15253
|
+
LAST_PAGE_REACHED: "Has llegado a la \xFAltima p\xE1gina",
|
|
15244
15254
|
SHOWING_ITEMS: "Mostrando <b>{from}-{to}</b> de {total}"
|
|
15245
15255
|
};
|
|
15246
15256
|
var SELECT_POPOVER2 = {
|
|
@@ -15547,6 +15557,7 @@ var DATE_INTERVAL_PICKER3 = {
|
|
|
15547
15557
|
START_HOUR: "Heure de d\xE9but"
|
|
15548
15558
|
};
|
|
15549
15559
|
var PAGE_SELECTOR3 = {
|
|
15560
|
+
LAST_PAGE_REACHED: "Vous avez atteint la derni\xE8re page",
|
|
15550
15561
|
SHOWING_ITEMS: "Montrer <b>{from}-{to}</b> de {total}"
|
|
15551
15562
|
};
|
|
15552
15563
|
var SELECT_POPOVER3 = {
|
|
@@ -15838,6 +15849,7 @@ var DATE_INTERVAL_PICKER4 = {
|
|
|
15838
15849
|
START_HOUR: "Ora di inizio"
|
|
15839
15850
|
};
|
|
15840
15851
|
var PAGE_SELECTOR4 = {
|
|
15852
|
+
LAST_PAGE_REACHED: "Hai raggiunto l'ultima pagina",
|
|
15841
15853
|
SHOWING_ITEMS: "Mostra <b>{from}-{to}</b> di {total}"
|
|
15842
15854
|
};
|
|
15843
15855
|
var SELECT_POPOVER4 = {
|
|
@@ -16114,6 +16126,7 @@ var DATE_INTERVAL_PICKER5 = {
|
|
|
16114
16126
|
START_HOUR: "Hora de in\xEDcio"
|
|
16115
16127
|
};
|
|
16116
16128
|
var PAGE_SELECTOR5 = {
|
|
16129
|
+
LAST_PAGE_REACHED: "Voc\xEA chegou \xE0 \xFAltima p\xE1gina",
|
|
16117
16130
|
SHOWING_ITEMS: "Exibindo <b>{from}-{to}</b> de {total}"
|
|
16118
16131
|
};
|
|
16119
16132
|
var SELECT_POPOVER5 = {
|
|
@@ -26407,18 +26420,24 @@ var PageSelector = ({
|
|
|
26407
26420
|
totalItems,
|
|
26408
26421
|
text,
|
|
26409
26422
|
hideText = false,
|
|
26423
|
+
maxNavigablePage,
|
|
26410
26424
|
onPageChange
|
|
26411
26425
|
}) => {
|
|
26412
26426
|
const { t } = useTranslation();
|
|
26413
26427
|
const totalPages = Math.ceil(totalItems / pageSize);
|
|
26428
|
+
const effectiveMaxPage = Math.min(
|
|
26429
|
+
maxNavigablePage ?? totalPages,
|
|
26430
|
+
totalPages
|
|
26431
|
+
);
|
|
26414
26432
|
const handlePrevious = React86.useCallback(() => {
|
|
26415
26433
|
if (currentPage > 1) {
|
|
26416
26434
|
onPageChange(Math.max(1, currentPage - 1));
|
|
26417
26435
|
}
|
|
26418
26436
|
}, [currentPage, onPageChange]);
|
|
26437
|
+
const isNextDisabled = currentPage >= effectiveMaxPage;
|
|
26419
26438
|
const handleNext = React86.useCallback(() => {
|
|
26420
|
-
onPageChange(Math.min(
|
|
26421
|
-
}, [currentPage,
|
|
26439
|
+
onPageChange(Math.min(effectiveMaxPage, currentPage + 1));
|
|
26440
|
+
}, [currentPage, effectiveMaxPage, onPageChange]);
|
|
26422
26441
|
const displayText = hideText ? "" : text || t(
|
|
26423
26442
|
"PAGE_SELECTOR.SHOWING_ITEMS",
|
|
26424
26443
|
totalItems === 0 ? { from: 0, to: 0, total: 0 } : {
|
|
@@ -26462,7 +26481,7 @@ var PageSelector = ({
|
|
|
26462
26481
|
onPageChange(value || 1);
|
|
26463
26482
|
},
|
|
26464
26483
|
minValue: 1,
|
|
26465
|
-
maxValue:
|
|
26484
|
+
maxValue: effectiveMaxPage,
|
|
26466
26485
|
"data-testid": "page-selector-input",
|
|
26467
26486
|
sx: {
|
|
26468
26487
|
width: "32px",
|
|
@@ -26476,12 +26495,19 @@ var PageSelector = ({
|
|
|
26476
26495
|
}
|
|
26477
26496
|
),
|
|
26478
26497
|
/* @__PURE__ */ jsx148(
|
|
26479
|
-
|
|
26498
|
+
Tooltip_default,
|
|
26480
26499
|
{
|
|
26481
|
-
|
|
26482
|
-
|
|
26483
|
-
|
|
26484
|
-
|
|
26500
|
+
title: isNextDisabled ? t("PAGE_SELECTOR.LAST_PAGE_REACHED") : "",
|
|
26501
|
+
allowDisabled: true,
|
|
26502
|
+
children: /* @__PURE__ */ jsx148(
|
|
26503
|
+
IconButton_default,
|
|
26504
|
+
{
|
|
26505
|
+
iconId: "chevron-right",
|
|
26506
|
+
onClick: handleNext,
|
|
26507
|
+
disabled: isNextDisabled,
|
|
26508
|
+
"data-test": "page-selector-next"
|
|
26509
|
+
}
|
|
26510
|
+
)
|
|
26485
26511
|
}
|
|
26486
26512
|
)
|
|
26487
26513
|
] })
|