@exhaustive-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.10
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/README.md +22 -4
- package/fesm2022/exhaustive-ui-core-accordion.mjs +6 -0
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +7 -5
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +19 -8
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs +6 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +7 -0
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +30 -8
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +7 -2
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +55 -18
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +8 -2
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +8 -3
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +130 -86
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +27 -10
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +11 -2
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +9 -5
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +0 -2
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +10 -2
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +29 -5
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +29 -2
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +15 -3
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +27 -17
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +11 -2
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +17 -6
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +57 -13
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +13 -11
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +10 -4
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlay.mjs +4 -0
- package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +8 -4
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +7 -9
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +32 -12
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +56 -8
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +13 -6
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-progressbar.mjs +3 -3
- package/fesm2022/exhaustive-ui-core-progressbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs +6 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +13 -3
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +10 -2
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +46 -13
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +2 -0
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +10 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +8 -4
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +22 -6
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-stepper.mjs +5 -4
- package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +241 -102
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs +11 -5
- package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +9 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +27 -13
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs +3 -0
- package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +5 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +24 -5
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +36 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +76 -8
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs +2 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/migrations/remove-dead-inputs/migration.js +5 -4
- package/schematics/migrations/remove-dead-outputs/migration.js +6 -5
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-autocomplete.d.ts +2 -0
- package/types/exhaustive-ui-core-autofocus.d.ts +1 -1
- package/types/exhaustive-ui-core-button.d.ts +12 -1
- package/types/exhaustive-ui-core-confirmdialog.d.ts +14 -3
- package/types/exhaustive-ui-core-datepicker.d.ts +7 -1
- package/types/exhaustive-ui-core-dialog.d.ts +2 -0
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +2 -2
- package/types/exhaustive-ui-core-image.d.ts +6 -1
- package/types/exhaustive-ui-core-keyfilter.d.ts +1 -0
- package/types/exhaustive-ui-core-menu.d.ts +2 -0
- package/types/exhaustive-ui-core-menubar.d.ts +5 -0
- package/types/exhaustive-ui-core-multiselect.d.ts +1 -1
- package/types/exhaustive-ui-core-orderlist.d.ts +6 -1
- package/types/exhaustive-ui-core-paginator.d.ts +1 -0
- package/types/exhaustive-ui-core-panelmenu.d.ts +5 -0
- package/types/exhaustive-ui-core-password.d.ts +2 -0
- package/types/exhaustive-ui-core-picklist.d.ts +3 -3
- package/types/exhaustive-ui-core-select.d.ts +3 -1
- package/types/exhaustive-ui-core-splitbutton.d.ts +2 -1
- package/types/exhaustive-ui-core-splitter.d.ts +6 -1
- package/types/exhaustive-ui-core-table.d.ts +8 -2
- package/types/exhaustive-ui-core-tabs.d.ts +1 -0
- package/types/exhaustive-ui-core-tieredmenu.d.ts +2 -0
- package/types/exhaustive-ui-core-tree.d.ts +2 -0
- package/types/exhaustive-ui-core-treeselect.d.ts +6 -0
- package/types/exhaustive-ui-core-treetable.d.ts +22 -2
|
@@ -359,6 +359,12 @@ class DatePicker extends BaseInput {
|
|
|
359
359
|
*/
|
|
360
360
|
ariaLabel = input(/* @ts-ignore */
|
|
361
361
|
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
362
|
+
/**
|
|
363
|
+
* Establishes relationships between the input and the element(s) that describe it, as one or more element IDs.
|
|
364
|
+
* @group Props
|
|
365
|
+
*/
|
|
366
|
+
ariaDescribedBy = input(/* @ts-ignore */
|
|
367
|
+
...(ngDevMode ? [undefined, { debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
|
|
362
368
|
/**
|
|
363
369
|
* Defines a string that labels the icon button for accessibility.
|
|
364
370
|
* @group Props
|
|
@@ -1030,14 +1036,13 @@ class DatePicker extends BaseInput {
|
|
|
1030
1036
|
this.currentMonth.set(date.getMonth());
|
|
1031
1037
|
this.currentYear.set(date.getFullYear());
|
|
1032
1038
|
this.yearOptions.set([]);
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
this.ticksTo1970.set(((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000);
|
|
1038
|
-
}
|
|
1039
|
+
this.createWeekDays();
|
|
1040
|
+
this.initTime(date);
|
|
1041
|
+
this.createMonths(this.currentMonth(), this.currentYear());
|
|
1042
|
+
this.ticksTo1970.set(((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000);
|
|
1039
1043
|
this.translationSubscription.set(this.config.translationObserver.subscribe(() => {
|
|
1040
1044
|
this.createWeekDays();
|
|
1045
|
+
this.createMonths(this.currentMonth(), this.currentYear());
|
|
1041
1046
|
this.cd.markForCheck();
|
|
1042
1047
|
}));
|
|
1043
1048
|
}
|
|
@@ -1490,6 +1495,10 @@ class DatePicker extends BaseInput {
|
|
|
1490
1495
|
this.onModelChange(stringArrValue);
|
|
1491
1496
|
}
|
|
1492
1497
|
}
|
|
1498
|
+
if (this.inline()) {
|
|
1499
|
+
// An inline datepicker has no input to blur, so a user change is what marks it touched
|
|
1500
|
+
this.onModelTouched();
|
|
1501
|
+
}
|
|
1493
1502
|
}
|
|
1494
1503
|
getFirstDayOfMonthIndex(month, year) {
|
|
1495
1504
|
let day = new Date();
|
|
@@ -1602,7 +1611,7 @@ class DatePicker extends BaseInput {
|
|
|
1602
1611
|
isYearSelected(year) {
|
|
1603
1612
|
if (this.isComparable()) {
|
|
1604
1613
|
let value = this.isRangeSelection() ? this.value()[0] : this.value();
|
|
1605
|
-
return !this.isMultipleSelection() ? value
|
|
1614
|
+
return !this.isMultipleSelection() ? value?.getFullYear() === year : false;
|
|
1606
1615
|
}
|
|
1607
1616
|
return false;
|
|
1608
1617
|
}
|
|
@@ -1874,9 +1883,13 @@ class DatePicker extends BaseInput {
|
|
|
1874
1883
|
case 37: {
|
|
1875
1884
|
cellContent.tabIndex = '-1';
|
|
1876
1885
|
let prevCell = cell.previousElementSibling;
|
|
1886
|
+
if (!prevCell || hasClass(prevCell, 'p-datepicker-weeknumber')) {
|
|
1887
|
+
// first day of the week row: the previous day ends the previous row
|
|
1888
|
+
prevCell = cell.parentElement.previousElementSibling?.lastElementChild;
|
|
1889
|
+
}
|
|
1877
1890
|
if (prevCell) {
|
|
1878
1891
|
let focusCell = prevCell.children[0];
|
|
1879
|
-
if (hasClass(focusCell, 'p-disabled') || hasClass(focusCell.parentElement, 'p-datepicker-weeknumber')) {
|
|
1892
|
+
if (!focusCell || hasClass(focusCell, 'p-disabled') || hasClass(focusCell.parentElement, 'p-datepicker-weeknumber')) {
|
|
1880
1893
|
this.navigateToMonth(true, groupIndex);
|
|
1881
1894
|
}
|
|
1882
1895
|
else {
|
|
@@ -1894,9 +1907,14 @@ class DatePicker extends BaseInput {
|
|
|
1894
1907
|
case 39: {
|
|
1895
1908
|
cellContent.tabIndex = '-1';
|
|
1896
1909
|
let nextCell = cell.nextElementSibling;
|
|
1910
|
+
if (!nextCell) {
|
|
1911
|
+
// last day of the week row: the next day starts the next row
|
|
1912
|
+
const nextRow = cell.parentElement.nextElementSibling;
|
|
1913
|
+
nextCell = nextRow && Array.from(nextRow.children).find((rowCell) => !hasClass(rowCell, 'p-datepicker-weeknumber'));
|
|
1914
|
+
}
|
|
1897
1915
|
if (nextCell) {
|
|
1898
1916
|
let focusCell = nextCell.children[0];
|
|
1899
|
-
if (hasClass(focusCell, 'p-disabled')) {
|
|
1917
|
+
if (!focusCell || hasClass(focusCell, 'p-disabled')) {
|
|
1900
1918
|
this.navigateToMonth(false, groupIndex);
|
|
1901
1919
|
}
|
|
1902
1920
|
else {
|
|
@@ -1932,48 +1950,47 @@ class DatePicker extends BaseInput {
|
|
|
1932
1950
|
}
|
|
1933
1951
|
break;
|
|
1934
1952
|
}
|
|
1935
|
-
// page up
|
|
1953
|
+
// page up (shift: previous year)
|
|
1936
1954
|
case 33: {
|
|
1937
1955
|
cellContent.tabIndex = '-1';
|
|
1938
|
-
const dateToFocus = new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, currentDate.getDate());
|
|
1939
|
-
const focusKey = this.formatDateKey(dateToFocus)
|
|
1940
|
-
|
|
1956
|
+
const dateToFocus = event.shiftKey ? new Date(currentDate.getFullYear() - 1, currentDate.getMonth(), currentDate.getDate()) : new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, currentDate.getDate());
|
|
1957
|
+
const focusKey = `span[data-date='${this.formatDateKey(dateToFocus)}']:not(.p-disabled):not(.p-ink)`;
|
|
1958
|
+
if (event.shiftKey)
|
|
1959
|
+
this.navigateToYear(true, focusKey);
|
|
1960
|
+
else
|
|
1961
|
+
this.navigateToMonth(true, groupIndex, focusKey);
|
|
1941
1962
|
event.preventDefault();
|
|
1942
1963
|
break;
|
|
1943
1964
|
}
|
|
1944
|
-
// page down
|
|
1965
|
+
// page down (shift: next year)
|
|
1945
1966
|
case 34: {
|
|
1946
1967
|
cellContent.tabIndex = '-1';
|
|
1947
|
-
const dateToFocus = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, currentDate.getDate());
|
|
1948
|
-
const focusKey = this.formatDateKey(dateToFocus)
|
|
1949
|
-
|
|
1968
|
+
const dateToFocus = event.shiftKey ? new Date(currentDate.getFullYear() + 1, currentDate.getMonth(), currentDate.getDate()) : new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, currentDate.getDate());
|
|
1969
|
+
const focusKey = `span[data-date='${this.formatDateKey(dateToFocus)}']:not(.p-disabled):not(.p-ink)`;
|
|
1970
|
+
if (event.shiftKey)
|
|
1971
|
+
this.navigateToYear(false, focusKey);
|
|
1972
|
+
else
|
|
1973
|
+
this.navigateToMonth(false, groupIndex, focusKey);
|
|
1950
1974
|
event.preventDefault();
|
|
1951
1975
|
break;
|
|
1952
1976
|
}
|
|
1953
|
-
//home
|
|
1977
|
+
//home: first day of the week row
|
|
1978
|
+
//end: last day of the week row
|
|
1954
1979
|
case 36:
|
|
1955
|
-
|
|
1956
|
-
const
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
//end
|
|
1966
|
-
case 35:
|
|
1967
|
-
cellContent.tabIndex = '-1';
|
|
1968
|
-
const lastDayDate = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0);
|
|
1969
|
-
const lastDayDateKey = this.formatDateKey(lastDayDate);
|
|
1970
|
-
const lastDayCell = findSingle(cellContent.offsetParent, `span[data-date='${lastDayDateKey}']:not(.p-disabled):not(.p-ink)`);
|
|
1971
|
-
if (lastDayDate) {
|
|
1972
|
-
lastDayCell.tabIndex = '0';
|
|
1973
|
-
lastDayCell.focus();
|
|
1980
|
+
case 35: {
|
|
1981
|
+
const weekDayCells = Array.from(cell.parentElement.children)
|
|
1982
|
+
.filter((rowCell) => !hasClass(rowCell, 'p-datepicker-weeknumber'))
|
|
1983
|
+
.map((rowCell) => rowCell.children[0])
|
|
1984
|
+
.filter((dayCell) => dayCell && !hasClass(dayCell, 'p-disabled'));
|
|
1985
|
+
const focusCell = event.which === 36 ? weekDayCells[0] : weekDayCells[weekDayCells.length - 1];
|
|
1986
|
+
if (focusCell) {
|
|
1987
|
+
cellContent.tabIndex = '-1';
|
|
1988
|
+
focusCell.tabIndex = '0';
|
|
1989
|
+
focusCell.focus();
|
|
1974
1990
|
}
|
|
1975
1991
|
event.preventDefault();
|
|
1976
1992
|
break;
|
|
1993
|
+
}
|
|
1977
1994
|
default:
|
|
1978
1995
|
//no op
|
|
1979
1996
|
break;
|
|
@@ -2034,6 +2051,19 @@ class DatePicker extends BaseInput {
|
|
|
2034
2051
|
event.preventDefault();
|
|
2035
2052
|
break;
|
|
2036
2053
|
}
|
|
2054
|
+
//page up: previous year
|
|
2055
|
+
//page down: next year
|
|
2056
|
+
case 33:
|
|
2057
|
+
case 34: {
|
|
2058
|
+
cell.tabIndex = '-1';
|
|
2059
|
+
this.navigationState.set({ backward: event.which === 33 });
|
|
2060
|
+
if (event.which === 33)
|
|
2061
|
+
this.navBackward(event);
|
|
2062
|
+
else
|
|
2063
|
+
this.navForward(event);
|
|
2064
|
+
event.preventDefault();
|
|
2065
|
+
break;
|
|
2066
|
+
}
|
|
2037
2067
|
//escape
|
|
2038
2068
|
case 27: {
|
|
2039
2069
|
this.inputfieldViewChild()?.nativeElement.focus();
|
|
@@ -2108,6 +2138,19 @@ class DatePicker extends BaseInput {
|
|
|
2108
2138
|
event.preventDefault();
|
|
2109
2139
|
break;
|
|
2110
2140
|
}
|
|
2141
|
+
//page up: previous decade
|
|
2142
|
+
//page down: next decade
|
|
2143
|
+
case 33:
|
|
2144
|
+
case 34: {
|
|
2145
|
+
cell.tabIndex = '-1';
|
|
2146
|
+
this.navigationState.set({ backward: event.which === 33 });
|
|
2147
|
+
if (event.which === 33)
|
|
2148
|
+
this.navBackward(event);
|
|
2149
|
+
else
|
|
2150
|
+
this.navForward(event);
|
|
2151
|
+
event.preventDefault();
|
|
2152
|
+
break;
|
|
2153
|
+
}
|
|
2111
2154
|
//escape
|
|
2112
2155
|
case 27: {
|
|
2113
2156
|
this.inputfieldViewChild()?.nativeElement.focus();
|
|
@@ -2168,6 +2211,17 @@ class DatePicker extends BaseInput {
|
|
|
2168
2211
|
}
|
|
2169
2212
|
}
|
|
2170
2213
|
}
|
|
2214
|
+
navigateToYear(prev, focusKey) {
|
|
2215
|
+
this.navigationState.set({ backward: prev });
|
|
2216
|
+
this._focusKey.set(focusKey);
|
|
2217
|
+
this.isMonthNavigate.set(true);
|
|
2218
|
+
if (prev)
|
|
2219
|
+
this.decrementYear();
|
|
2220
|
+
else
|
|
2221
|
+
this.incrementYear();
|
|
2222
|
+
this.onMonthChange.emit({ month: this.currentMonth() + 1, year: this.currentYear() });
|
|
2223
|
+
this.createMonths(this.currentMonth(), this.currentYear());
|
|
2224
|
+
}
|
|
2171
2225
|
updateFocus() {
|
|
2172
2226
|
let cell;
|
|
2173
2227
|
if (this.navigationState()) {
|
|
@@ -2342,7 +2396,8 @@ class DatePicker extends BaseInput {
|
|
|
2342
2396
|
value = this.value()[this.value().length - 1];
|
|
2343
2397
|
}
|
|
2344
2398
|
}
|
|
2345
|
-
|
|
2399
|
+
// without a value, updateTime builds the new value on today's date
|
|
2400
|
+
const valueDateString = (value && isDate(value) ? value : new Date()).toDateString();
|
|
2346
2401
|
let isMinDate = this.minDate() && valueDateString && this.minDate().toDateString() === valueDateString;
|
|
2347
2402
|
let isMaxDate = this.maxDate() && valueDateString && this.maxDate().toDateString() === valueDateString;
|
|
2348
2403
|
if (isMinDate) {
|
|
@@ -2350,21 +2405,6 @@ class DatePicker extends BaseInput {
|
|
|
2350
2405
|
}
|
|
2351
2406
|
switch (true // intentional fall through
|
|
2352
2407
|
) {
|
|
2353
|
-
case isMinDate && minHoursExceeds12 && this.minDate().getHours() === 12 && this.minDate().getHours() > convertedHour:
|
|
2354
|
-
returnTimeTriple[0] = 11;
|
|
2355
|
-
case isMinDate && this.minDate().getHours() === convertedHour && this.minDate().getMinutes() > minute:
|
|
2356
|
-
returnTimeTriple[1] = this.minDate().getMinutes();
|
|
2357
|
-
case isMinDate && this.minDate().getHours() === convertedHour && this.minDate().getMinutes() === minute && this.minDate().getSeconds() > second:
|
|
2358
|
-
returnTimeTriple[2] = this.minDate().getSeconds();
|
|
2359
|
-
break;
|
|
2360
|
-
case isMinDate && !minHoursExceeds12 && this.minDate().getHours() - 1 === convertedHour && this.minDate().getHours() > convertedHour:
|
|
2361
|
-
returnTimeTriple[0] = 11;
|
|
2362
|
-
this.pm.set(true);
|
|
2363
|
-
case isMinDate && this.minDate().getHours() === convertedHour && this.minDate().getMinutes() > minute:
|
|
2364
|
-
returnTimeTriple[1] = this.minDate().getMinutes();
|
|
2365
|
-
case isMinDate && this.minDate().getHours() === convertedHour && this.minDate().getMinutes() === minute && this.minDate().getSeconds() > second:
|
|
2366
|
-
returnTimeTriple[2] = this.minDate().getSeconds();
|
|
2367
|
-
break;
|
|
2368
2408
|
case isMinDate && minHoursExceeds12 && this.minDate().getHours() > convertedHour && convertedHour !== 12:
|
|
2369
2409
|
this.setCurrentHourPM(this.minDate().getHours());
|
|
2370
2410
|
returnTimeTriple[0] = this.currentHour() || 0;
|
|
@@ -2572,15 +2612,15 @@ class DatePicker extends BaseInput {
|
|
|
2572
2612
|
event.preventDefault();
|
|
2573
2613
|
}
|
|
2574
2614
|
onUserInput(event) {
|
|
2575
|
-
//
|
|
2576
|
-
if (!this.isKeydown()) {
|
|
2577
|
-
return;
|
|
2578
|
-
}
|
|
2615
|
+
// The input event alone is handled: a paste or drop from the context menu fires no keydown before it
|
|
2579
2616
|
this.isKeydown.set(false);
|
|
2580
2617
|
let val = event.target.value;
|
|
2581
2618
|
try {
|
|
2582
2619
|
let value = this.parseValueFromString(val);
|
|
2583
2620
|
if (this.isValidSelection(value)) {
|
|
2621
|
+
// a typed minDate/maxDate day is selectable but parses at 00:00: keep it within the bounds, as selectDate does
|
|
2622
|
+
const constrain = (date) => (this.minDate() && this.minDate() > date ? new Date(this.minDate()) : this.maxDate() && this.maxDate() < date ? new Date(this.maxDate()) : date);
|
|
2623
|
+
value = Array.isArray(value) ? value.map((date) => date && constrain(date)) : constrain(value);
|
|
2584
2624
|
this.updateModel(value);
|
|
2585
2625
|
this.updateUI();
|
|
2586
2626
|
}
|
|
@@ -3085,7 +3125,7 @@ class DatePicker extends BaseInput {
|
|
|
3085
3125
|
month = 1;
|
|
3086
3126
|
day = doy;
|
|
3087
3127
|
do {
|
|
3088
|
-
dim = this.getDaysCountInMonth(
|
|
3128
|
+
dim = this.getDaysCountInMonth(month - 1, year);
|
|
3089
3129
|
if (day <= dim) {
|
|
3090
3130
|
break;
|
|
3091
3131
|
}
|
|
@@ -3226,7 +3266,9 @@ class DatePicker extends BaseInput {
|
|
|
3226
3266
|
}
|
|
3227
3267
|
}
|
|
3228
3268
|
isOutsideClicked(event) {
|
|
3229
|
-
|
|
3269
|
+
// inside a shadow root, event.target is retargeted to the shadow host: use the real target
|
|
3270
|
+
const target = event.composedPath?.()[0] ?? event.target;
|
|
3271
|
+
return !(this.el.nativeElement.isSameNode(target) || this.isNavIconClicked(event) || this.el.nativeElement.contains(target) || (this.overlay() && this.overlay().contains(target)));
|
|
3230
3272
|
}
|
|
3231
3273
|
isNavIconClicked(event) {
|
|
3232
3274
|
return hasClass(event.target, 'p-datepicker-prev-button') || hasClass(event.target, 'p-datepicker-prev-icon') || hasClass(event.target, 'p-datepicker-next-button') || hasClass(event.target, 'p-datepicker-next-icon');
|
|
@@ -3284,7 +3326,7 @@ class DatePicker extends BaseInput {
|
|
|
3284
3326
|
this.onOverlayHide();
|
|
3285
3327
|
}
|
|
3286
3328
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DatePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3287
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: DatePicker, isStandalone: true, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: { iconDisplay: { classPropertyName: "iconDisplay", publicName: "iconDisplay", isSignal: true, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, iconAriaLabel: { classPropertyName: "iconAriaLabel", publicName: "iconAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null }, multipleSeparator: { classPropertyName: "multipleSeparator", publicName: "multipleSeparator", isSignal: true, isRequired: false, transformFunction: null }, rangeSeparator: { classPropertyName: "rangeSeparator", publicName: "rangeSeparator", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, showOtherMonths: { classPropertyName: "showOtherMonths", publicName: "showOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, selectOtherMonths: { classPropertyName: "selectOtherMonths", publicName: "selectOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, readonlyInput: { classPropertyName: "readonlyInput", publicName: "readonlyInput", isSignal: true, isRequired: false, transformFunction: null }, shortYearCutoff: { classPropertyName: "shortYearCutoff", publicName: "shortYearCutoff", isSignal: true, isRequired: false, transformFunction: null }, hourFormat: { classPropertyName: "hourFormat", publicName: "hourFormat", isSignal: true, isRequired: false, transformFunction: null }, timeOnly: { classPropertyName: "timeOnly", publicName: "timeOnly", isSignal: true, isRequired: false, transformFunction: null }, stepHour: { classPropertyName: "stepHour", publicName: "stepHour", isSignal: true, isRequired: false, transformFunction: null }, stepMinute: { classPropertyName: "stepMinute", publicName: "stepMinute", isSignal: true, isRequired: false, transformFunction: null }, stepSecond: { classPropertyName: "stepSecond", publicName: "stepSecond", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null }, showOnFocus: { classPropertyName: "showOnFocus", publicName: "showOnFocus", isSignal: true, isRequired: false, transformFunction: null }, showWeek: { classPropertyName: "showWeek", publicName: "showWeek", isSignal: true, isRequired: false, transformFunction: null }, startWeekFromFirstDayOfYear: { classPropertyName: "startWeekFromFirstDayOfYear", publicName: "startWeekFromFirstDayOfYear", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, dataType: { classPropertyName: "dataType", publicName: "dataType", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, maxDateCount: { classPropertyName: "maxDateCount", publicName: "maxDateCount", isSignal: true, isRequired: false, transformFunction: null }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: true, isRequired: false, transformFunction: null }, todayButtonStyleClass: { classPropertyName: "todayButtonStyleClass", publicName: "todayButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, clearButtonStyleClass: { classPropertyName: "clearButtonStyleClass", publicName: "clearButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: true, isRequired: false, transformFunction: null }, keepInvalid: { classPropertyName: "keepInvalid", publicName: "keepInvalid", isSignal: true, isRequired: false, transformFunction: null }, hideOnDateTimeSelect: { classPropertyName: "hideOnDateTimeSelect", publicName: "hideOnDateTimeSelect", isSignal: true, isRequired: false, transformFunction: null }, touchUI: { classPropertyName: "touchUI", publicName: "touchUI", isSignal: true, isRequired: false, transformFunction: null }, timeSeparator: { classPropertyName: "timeSeparator", publicName: "timeSeparator", isSignal: true, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, disabledDays: { classPropertyName: "disabledDays", publicName: "disabledDays", isSignal: true, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: true, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: true, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, defaultDate: { classPropertyName: "defaultDate", publicName: "defaultDate", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onClose: "onClose", onSelect: "onSelect", onClear: "onClear", onInput: "onInput", onTodayClick: "onTodayClick", onClearClick: "onClearClick", onMonthChange: "onMonthChange", onYearChange: "onYearChange", onClickOutside: "onClickOutside", onShow: "onShow" }, host: { properties: { "class": "cx('root')", "style": "sx('root')" } }, providers: [DATEPICKER_VALUE_ACCESSOR, DatePickerStyle, { provide: DATEPICKER_INSTANCE, useExisting: DatePicker }, { provide: PARENT_INSTANCE, useExisting: DatePicker }], queries: [{ propertyName: "dateTemplate", first: true, predicate: ["date"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "disabledDateTemplate", first: true, predicate: ["disabledDate"], isSignal: true }, { propertyName: "decadeTemplate", first: true, predicate: ["decade"], isSignal: true }, { propertyName: "previousIconTemplate", first: true, predicate: ["previousicon"], isSignal: true }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"], isSignal: true }, { propertyName: "triggerIconTemplate", first: true, predicate: ["triggericon"], isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "decrementIconTemplate", first: true, predicate: ["decrementicon"], isSignal: true }, { propertyName: "incrementIconTemplate", first: true, predicate: ["incrementicon"], isSignal: true }, { propertyName: "inputIconTemplate", first: true, predicate: ["inputicon"], isSignal: true }, { propertyName: "buttonBarTemplate", first: true, predicate: ["buttonbar"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "inputfieldViewChild", first: true, predicate: ["inputfield"], descendants: true, isSignal: true }, { propertyName: "contentViewChild", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
3329
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: DatePicker, isStandalone: true, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: { iconDisplay: { classPropertyName: "iconDisplay", publicName: "iconDisplay", isSignal: true, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, iconAriaLabel: { classPropertyName: "iconAriaLabel", publicName: "iconAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null }, multipleSeparator: { classPropertyName: "multipleSeparator", publicName: "multipleSeparator", isSignal: true, isRequired: false, transformFunction: null }, rangeSeparator: { classPropertyName: "rangeSeparator", publicName: "rangeSeparator", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, showOtherMonths: { classPropertyName: "showOtherMonths", publicName: "showOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, selectOtherMonths: { classPropertyName: "selectOtherMonths", publicName: "selectOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, readonlyInput: { classPropertyName: "readonlyInput", publicName: "readonlyInput", isSignal: true, isRequired: false, transformFunction: null }, shortYearCutoff: { classPropertyName: "shortYearCutoff", publicName: "shortYearCutoff", isSignal: true, isRequired: false, transformFunction: null }, hourFormat: { classPropertyName: "hourFormat", publicName: "hourFormat", isSignal: true, isRequired: false, transformFunction: null }, timeOnly: { classPropertyName: "timeOnly", publicName: "timeOnly", isSignal: true, isRequired: false, transformFunction: null }, stepHour: { classPropertyName: "stepHour", publicName: "stepHour", isSignal: true, isRequired: false, transformFunction: null }, stepMinute: { classPropertyName: "stepMinute", publicName: "stepMinute", isSignal: true, isRequired: false, transformFunction: null }, stepSecond: { classPropertyName: "stepSecond", publicName: "stepSecond", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null }, showOnFocus: { classPropertyName: "showOnFocus", publicName: "showOnFocus", isSignal: true, isRequired: false, transformFunction: null }, showWeek: { classPropertyName: "showWeek", publicName: "showWeek", isSignal: true, isRequired: false, transformFunction: null }, startWeekFromFirstDayOfYear: { classPropertyName: "startWeekFromFirstDayOfYear", publicName: "startWeekFromFirstDayOfYear", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, dataType: { classPropertyName: "dataType", publicName: "dataType", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, maxDateCount: { classPropertyName: "maxDateCount", publicName: "maxDateCount", isSignal: true, isRequired: false, transformFunction: null }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: true, isRequired: false, transformFunction: null }, todayButtonStyleClass: { classPropertyName: "todayButtonStyleClass", publicName: "todayButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, clearButtonStyleClass: { classPropertyName: "clearButtonStyleClass", publicName: "clearButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: true, isRequired: false, transformFunction: null }, keepInvalid: { classPropertyName: "keepInvalid", publicName: "keepInvalid", isSignal: true, isRequired: false, transformFunction: null }, hideOnDateTimeSelect: { classPropertyName: "hideOnDateTimeSelect", publicName: "hideOnDateTimeSelect", isSignal: true, isRequired: false, transformFunction: null }, touchUI: { classPropertyName: "touchUI", publicName: "touchUI", isSignal: true, isRequired: false, transformFunction: null }, timeSeparator: { classPropertyName: "timeSeparator", publicName: "timeSeparator", isSignal: true, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, disabledDays: { classPropertyName: "disabledDays", publicName: "disabledDays", isSignal: true, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: true, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: true, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, defaultDate: { classPropertyName: "defaultDate", publicName: "defaultDate", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onClose: "onClose", onSelect: "onSelect", onClear: "onClear", onInput: "onInput", onTodayClick: "onTodayClick", onClearClick: "onClearClick", onMonthChange: "onMonthChange", onYearChange: "onYearChange", onClickOutside: "onClickOutside", onShow: "onShow" }, host: { properties: { "class": "cx('root')", "style": "sx('root')" } }, providers: [DATEPICKER_VALUE_ACCESSOR, DatePickerStyle, { provide: DATEPICKER_INSTANCE, useExisting: DatePicker }, { provide: PARENT_INSTANCE, useExisting: DatePicker }], queries: [{ propertyName: "dateTemplate", first: true, predicate: ["date"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "disabledDateTemplate", first: true, predicate: ["disabledDate"], isSignal: true }, { propertyName: "decadeTemplate", first: true, predicate: ["decade"], isSignal: true }, { propertyName: "previousIconTemplate", first: true, predicate: ["previousicon"], isSignal: true }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"], isSignal: true }, { propertyName: "triggerIconTemplate", first: true, predicate: ["triggericon"], isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "decrementIconTemplate", first: true, predicate: ["decrementicon"], isSignal: true }, { propertyName: "incrementIconTemplate", first: true, predicate: ["incrementicon"], isSignal: true }, { propertyName: "inputIconTemplate", first: true, predicate: ["inputicon"], isSignal: true }, { propertyName: "buttonBarTemplate", first: true, predicate: ["buttonbar"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "inputfieldViewChild", first: true, predicate: ["inputfield"], descendants: true, isSignal: true }, { propertyName: "contentViewChild", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
3288
3330
|
@if (!inline()) {
|
|
3289
3331
|
<input
|
|
3290
3332
|
#inputfield
|
|
@@ -3303,6 +3345,7 @@ class DatePicker extends BaseInput {
|
|
|
3303
3345
|
[attr.aria-controls]="overlayVisible() ? panelId : null"
|
|
3304
3346
|
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
3305
3347
|
[attr.aria-label]="ariaLabel()"
|
|
3348
|
+
[attr.aria-describedby]="ariaDescribedBy()"
|
|
3306
3349
|
[value]="inputFieldValue()"
|
|
3307
3350
|
(focus)="onInputFocus($event)"
|
|
3308
3351
|
(keydown)="onInputKeydown($event)"
|
|
@@ -3421,7 +3464,7 @@ class DatePicker extends BaseInput {
|
|
|
3421
3464
|
(keydown)="onContainerButtonKeydown($event)"
|
|
3422
3465
|
[class]="cx('selectMonth')"
|
|
3423
3466
|
[attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
|
|
3424
|
-
[attr.aria-label]="
|
|
3467
|
+
[attr.aria-label]="getMonthName(month.month) + ', ' + getTranslation('chooseMonth')"
|
|
3425
3468
|
pRipple
|
|
3426
3469
|
[pBind]="ptm('selectMonth')"
|
|
3427
3470
|
[attr.data-pc-group-section]="'navigator'"
|
|
@@ -3436,7 +3479,7 @@ class DatePicker extends BaseInput {
|
|
|
3436
3479
|
(keydown)="onContainerButtonKeydown($event)"
|
|
3437
3480
|
[class]="cx('selectYear')"
|
|
3438
3481
|
[attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
|
|
3439
|
-
[attr.aria-label]="getTranslation('chooseYear')"
|
|
3482
|
+
[attr.aria-label]="getYear(month) + ', ' + getTranslation('chooseYear')"
|
|
3440
3483
|
pRipple
|
|
3441
3484
|
[pBind]="ptm('selectYear')"
|
|
3442
3485
|
[attr.data-pc-group-section]="'navigator'"
|
|
@@ -3502,7 +3545,7 @@ class DatePicker extends BaseInput {
|
|
|
3502
3545
|
</td>
|
|
3503
3546
|
}
|
|
3504
3547
|
@for (date of week; track $index) {
|
|
3505
|
-
<td [attr.aria-label]="date.
|
|
3548
|
+
<td [attr.aria-label]="formatDate(formatDateMetaToDate(date), 'DD, d MM yy')" [attr.aria-selected]="!!isSelected(date)" [class]="cx('dayCell', { date })" [pBind]="ptm('dayCell')">
|
|
3506
3549
|
@if (date.otherMonth ? showOtherMonths() : true) {
|
|
3507
3550
|
<span
|
|
3508
3551
|
[ngClass]="dayClass(date)"
|
|
@@ -3584,7 +3627,7 @@ class DatePicker extends BaseInput {
|
|
|
3584
3627
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
3585
3628
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
3586
3629
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
3587
|
-
[
|
|
3630
|
+
[ariaLabel]="getTranslation('nextHour')"
|
|
3588
3631
|
[pt]="ptm('pcIncrementButton')"
|
|
3589
3632
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3590
3633
|
>
|
|
@@ -3609,7 +3652,7 @@ class DatePicker extends BaseInput {
|
|
|
3609
3652
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
3610
3653
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
3611
3654
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
3612
|
-
[
|
|
3655
|
+
[ariaLabel]="getTranslation('prevHour')"
|
|
3613
3656
|
[pt]="ptm('pcDecrementButton')"
|
|
3614
3657
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3615
3658
|
>
|
|
@@ -3638,7 +3681,7 @@ class DatePicker extends BaseInput {
|
|
|
3638
3681
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
3639
3682
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
3640
3683
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
3641
|
-
[
|
|
3684
|
+
[ariaLabel]="getTranslation('nextMinute')"
|
|
3642
3685
|
[pt]="ptm('pcIncrementButton')"
|
|
3643
3686
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3644
3687
|
>
|
|
@@ -3663,7 +3706,7 @@ class DatePicker extends BaseInput {
|
|
|
3663
3706
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
3664
3707
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
3665
3708
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
3666
|
-
[
|
|
3709
|
+
[ariaLabel]="getTranslation('prevMinute')"
|
|
3667
3710
|
[pt]="ptm('pcDecrementButton')"
|
|
3668
3711
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3669
3712
|
>
|
|
@@ -3695,7 +3738,7 @@ class DatePicker extends BaseInput {
|
|
|
3695
3738
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
3696
3739
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
3697
3740
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
3698
|
-
[
|
|
3741
|
+
[ariaLabel]="getTranslation('nextSecond')"
|
|
3699
3742
|
[pt]="ptm('pcIncrementButton')"
|
|
3700
3743
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3701
3744
|
>
|
|
@@ -3720,7 +3763,7 @@ class DatePicker extends BaseInput {
|
|
|
3720
3763
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
3721
3764
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
3722
3765
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
3723
|
-
[
|
|
3766
|
+
[ariaLabel]="getTranslation('prevSecond')"
|
|
3724
3767
|
[pt]="ptm('pcDecrementButton')"
|
|
3725
3768
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3726
3769
|
>
|
|
@@ -3748,7 +3791,7 @@ class DatePicker extends BaseInput {
|
|
|
3748
3791
|
(keydown)="onContainerButtonKeydown($event)"
|
|
3749
3792
|
(onClick)="toggleAMPM($event)"
|
|
3750
3793
|
(keydown.enter)="toggleAMPM($event)"
|
|
3751
|
-
[
|
|
3794
|
+
[ariaLabel]="getTranslation('am')"
|
|
3752
3795
|
[pt]="ptm('pcIncrementButton')"
|
|
3753
3796
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3754
3797
|
>
|
|
@@ -3759,7 +3802,7 @@ class DatePicker extends BaseInput {
|
|
|
3759
3802
|
<ng-template *ngTemplateOutlet="incrementIconTemplate() || _incrementIconTemplate()"></ng-template>
|
|
3760
3803
|
</ng-template>
|
|
3761
3804
|
</p-button>
|
|
3762
|
-
<span [pBind]="ptm('ampm')">{{ pm() ? '
|
|
3805
|
+
<span [pBind]="ptm('ampm')">{{ getTranslation(pm() ? 'pm' : 'am') }}</span>
|
|
3763
3806
|
<p-button
|
|
3764
3807
|
text
|
|
3765
3808
|
rounded
|
|
@@ -3768,7 +3811,7 @@ class DatePicker extends BaseInput {
|
|
|
3768
3811
|
(keydown)="onContainerButtonKeydown($event)"
|
|
3769
3812
|
(click)="toggleAMPM($event)"
|
|
3770
3813
|
(keydown.enter)="toggleAMPM($event)"
|
|
3771
|
-
[
|
|
3814
|
+
[ariaLabel]="getTranslation('pm')"
|
|
3772
3815
|
[pt]="ptm('pcDecrementButton')"
|
|
3773
3816
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3774
3817
|
>
|
|
@@ -3822,7 +3865,7 @@ class DatePicker extends BaseInput {
|
|
|
3822
3865
|
</div>
|
|
3823
3866
|
</p-motion>
|
|
3824
3867
|
}
|
|
3825
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: ChevronLeftIcon, selector: "[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: ChevronUpIcon, selector: "[data-p-icon=\"chevron-up\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: CalendarIcon, selector: "[data-p-icon=\"calendar\"]" }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "component", type: i3.Motion, selector: "p-motion", inputs: ["visible", "mountOnEnter", "unmountOnLeave", "name", "type", "safe", "disabled", "appear", "enter", "leave", "duration", "hideStrategy", "enterFromClass", "enterToClass", "enterActiveClass", "leaveFromClass", "leaveToClass", "leaveActiveClass", "options"], outputs: ["onBeforeEnter", "onEnter", "onAfterEnter", "onEnterCancelled", "onBeforeLeave", "onLeave", "onAfterLeave", "onLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3868
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "ariaExpanded", "ariaControls", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: ChevronLeftIcon, selector: "[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: ChevronUpIcon, selector: "[data-p-icon=\"chevron-up\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: CalendarIcon, selector: "[data-p-icon=\"calendar\"]" }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "component", type: i3.Motion, selector: "p-motion", inputs: ["visible", "mountOnEnter", "unmountOnLeave", "name", "type", "safe", "disabled", "appear", "enter", "leave", "duration", "hideStrategy", "enterFromClass", "enterToClass", "enterActiveClass", "leaveFromClass", "leaveToClass", "leaveActiveClass", "options"], outputs: ["onBeforeEnter", "onEnter", "onAfterEnter", "onEnterCancelled", "onBeforeLeave", "onLeave", "onAfterLeave", "onLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3826
3869
|
}
|
|
3827
3870
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DatePicker, decorators: [{
|
|
3828
3871
|
type: Component,
|
|
@@ -3849,6 +3892,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
3849
3892
|
[attr.aria-controls]="overlayVisible() ? panelId : null"
|
|
3850
3893
|
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
3851
3894
|
[attr.aria-label]="ariaLabel()"
|
|
3895
|
+
[attr.aria-describedby]="ariaDescribedBy()"
|
|
3852
3896
|
[value]="inputFieldValue()"
|
|
3853
3897
|
(focus)="onInputFocus($event)"
|
|
3854
3898
|
(keydown)="onInputKeydown($event)"
|
|
@@ -3967,7 +4011,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
3967
4011
|
(keydown)="onContainerButtonKeydown($event)"
|
|
3968
4012
|
[class]="cx('selectMonth')"
|
|
3969
4013
|
[attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
|
|
3970
|
-
[attr.aria-label]="
|
|
4014
|
+
[attr.aria-label]="getMonthName(month.month) + ', ' + getTranslation('chooseMonth')"
|
|
3971
4015
|
pRipple
|
|
3972
4016
|
[pBind]="ptm('selectMonth')"
|
|
3973
4017
|
[attr.data-pc-group-section]="'navigator'"
|
|
@@ -3982,7 +4026,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
3982
4026
|
(keydown)="onContainerButtonKeydown($event)"
|
|
3983
4027
|
[class]="cx('selectYear')"
|
|
3984
4028
|
[attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
|
|
3985
|
-
[attr.aria-label]="getTranslation('chooseYear')"
|
|
4029
|
+
[attr.aria-label]="getYear(month) + ', ' + getTranslation('chooseYear')"
|
|
3986
4030
|
pRipple
|
|
3987
4031
|
[pBind]="ptm('selectYear')"
|
|
3988
4032
|
[attr.data-pc-group-section]="'navigator'"
|
|
@@ -4048,7 +4092,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4048
4092
|
</td>
|
|
4049
4093
|
}
|
|
4050
4094
|
@for (date of week; track $index) {
|
|
4051
|
-
<td [attr.aria-label]="date.
|
|
4095
|
+
<td [attr.aria-label]="formatDate(formatDateMetaToDate(date), 'DD, d MM yy')" [attr.aria-selected]="!!isSelected(date)" [class]="cx('dayCell', { date })" [pBind]="ptm('dayCell')">
|
|
4052
4096
|
@if (date.otherMonth ? showOtherMonths() : true) {
|
|
4053
4097
|
<span
|
|
4054
4098
|
[ngClass]="dayClass(date)"
|
|
@@ -4130,7 +4174,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4130
4174
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
4131
4175
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
4132
4176
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
4133
|
-
[
|
|
4177
|
+
[ariaLabel]="getTranslation('nextHour')"
|
|
4134
4178
|
[pt]="ptm('pcIncrementButton')"
|
|
4135
4179
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4136
4180
|
>
|
|
@@ -4155,7 +4199,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4155
4199
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
4156
4200
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
4157
4201
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
4158
|
-
[
|
|
4202
|
+
[ariaLabel]="getTranslation('prevHour')"
|
|
4159
4203
|
[pt]="ptm('pcDecrementButton')"
|
|
4160
4204
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4161
4205
|
>
|
|
@@ -4184,7 +4228,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4184
4228
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
4185
4229
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
4186
4230
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
4187
|
-
[
|
|
4231
|
+
[ariaLabel]="getTranslation('nextMinute')"
|
|
4188
4232
|
[pt]="ptm('pcIncrementButton')"
|
|
4189
4233
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4190
4234
|
>
|
|
@@ -4209,7 +4253,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4209
4253
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
4210
4254
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
4211
4255
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
4212
|
-
[
|
|
4256
|
+
[ariaLabel]="getTranslation('prevMinute')"
|
|
4213
4257
|
[pt]="ptm('pcDecrementButton')"
|
|
4214
4258
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4215
4259
|
>
|
|
@@ -4241,7 +4285,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4241
4285
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
4242
4286
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
4243
4287
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
4244
|
-
[
|
|
4288
|
+
[ariaLabel]="getTranslation('nextSecond')"
|
|
4245
4289
|
[pt]="ptm('pcIncrementButton')"
|
|
4246
4290
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4247
4291
|
>
|
|
@@ -4266,7 +4310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4266
4310
|
(keyup.enter)="onTimePickerElementMouseUp($event)"
|
|
4267
4311
|
(keyup.space)="onTimePickerElementMouseUp($event)"
|
|
4268
4312
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
|
4269
|
-
[
|
|
4313
|
+
[ariaLabel]="getTranslation('prevSecond')"
|
|
4270
4314
|
[pt]="ptm('pcDecrementButton')"
|
|
4271
4315
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4272
4316
|
>
|
|
@@ -4294,7 +4338,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4294
4338
|
(keydown)="onContainerButtonKeydown($event)"
|
|
4295
4339
|
(onClick)="toggleAMPM($event)"
|
|
4296
4340
|
(keydown.enter)="toggleAMPM($event)"
|
|
4297
|
-
[
|
|
4341
|
+
[ariaLabel]="getTranslation('am')"
|
|
4298
4342
|
[pt]="ptm('pcIncrementButton')"
|
|
4299
4343
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4300
4344
|
>
|
|
@@ -4305,7 +4349,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4305
4349
|
<ng-template *ngTemplateOutlet="incrementIconTemplate() || _incrementIconTemplate()"></ng-template>
|
|
4306
4350
|
</ng-template>
|
|
4307
4351
|
</p-button>
|
|
4308
|
-
<span [pBind]="ptm('ampm')">{{ pm() ? '
|
|
4352
|
+
<span [pBind]="ptm('ampm')">{{ getTranslation(pm() ? 'pm' : 'am') }}</span>
|
|
4309
4353
|
<p-button
|
|
4310
4354
|
text
|
|
4311
4355
|
rounded
|
|
@@ -4314,7 +4358,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4314
4358
|
(keydown)="onContainerButtonKeydown($event)"
|
|
4315
4359
|
(click)="toggleAMPM($event)"
|
|
4316
4360
|
(keydown.enter)="toggleAMPM($event)"
|
|
4317
|
-
[
|
|
4361
|
+
[ariaLabel]="getTranslation('pm')"
|
|
4318
4362
|
[pt]="ptm('pcDecrementButton')"
|
|
4319
4363
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4320
4364
|
>
|
|
@@ -4377,7 +4421,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
4377
4421
|
'[style]': "sx('root')"
|
|
4378
4422
|
}
|
|
4379
4423
|
}]
|
|
4380
|
-
}], ctorParameters: () => [], propDecorators: { iconDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconDisplay", required: false }] }], inputStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyle", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], inputStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyleClass", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], iconAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconAriaLabel", required: false }] }], dateFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormat", required: false }] }], multipleSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "multipleSeparator", required: false }] }], rangeSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeSeparator", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], showOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOtherMonths", required: false }] }], selectOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOtherMonths", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], readonlyInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonlyInput", required: false }] }], shortYearCutoff: [{ type: i0.Input, args: [{ isSignal: true, alias: "shortYearCutoff", required: false }] }], hourFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourFormat", required: false }] }], timeOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeOnly", required: false }] }], stepHour: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepHour", required: false }] }], stepMinute: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepMinute", required: false }] }], stepSecond: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepSecond", required: false }] }], showSeconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeconds", required: false }] }], showOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOnFocus", required: false }] }], showWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "showWeek", required: false }] }], startWeekFromFirstDayOfYear: [{ type: i0.Input, args: [{ isSignal: true, alias: "startWeekFromFirstDayOfYear", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], dataType: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataType", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], maxDateCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDateCount", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], todayButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "todayButtonStyleClass", required: false }] }], clearButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonStyleClass", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], panelStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyle", required: false }] }], keepInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepInvalid", required: false }] }], hideOnDateTimeSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnDateTimeSelect", required: false }] }], touchUI: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchUI", required: false }] }], timeSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeSeparator", required: false }] }], focusTrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusTrap", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDays", required: false }] }], showTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTime", required: false }] }], responsiveOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveOptions", required: false }] }], numberOfMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberOfMonths", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }], defaultDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultDate", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onClose: [{ type: i0.Output, args: ["onClose"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onInput: [{ type: i0.Output, args: ["onInput"] }], onTodayClick: [{ type: i0.Output, args: ["onTodayClick"] }], onClearClick: [{ type: i0.Output, args: ["onClearClick"] }], onMonthChange: [{ type: i0.Output, args: ["onMonthChange"] }], onYearChange: [{ type: i0.Output, args: ["onYearChange"] }], onClickOutside: [{ type: i0.Output, args: ["onClickOutside"] }], onShow: [{ type: i0.Output, args: ["onShow"] }], inputfieldViewChild: [{ type: i0.ViewChild, args: ['inputfield', { isSignal: true }] }], contentViewChild: [{ type: i0.ViewChild, args: ['contentWrapper', { isSignal: true }] }], dateTemplate: [{ type: i0.ContentChild, args: ['date', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], disabledDateTemplate: [{ type: i0.ContentChild, args: ['disabledDate', { ...{ descendants: false }, isSignal: true }] }], decadeTemplate: [{ type: i0.ContentChild, args: ['decade', { ...{ descendants: false }, isSignal: true }] }], previousIconTemplate: [{ type: i0.ContentChild, args: ['previousicon', { ...{ descendants: false }, isSignal: true }] }], nextIconTemplate: [{ type: i0.ContentChild, args: ['nexticon', { ...{ descendants: false }, isSignal: true }] }], triggerIconTemplate: [{ type: i0.ContentChild, args: ['triggericon', { ...{ descendants: false }, isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], decrementIconTemplate: [{ type: i0.ContentChild, args: ['decrementicon', { ...{ descendants: false }, isSignal: true }] }], incrementIconTemplate: [{ type: i0.ContentChild, args: ['incrementicon', { ...{ descendants: false }, isSignal: true }] }], inputIconTemplate: [{ type: i0.ContentChild, args: ['inputicon', { ...{ descendants: false }, isSignal: true }] }], buttonBarTemplate: [{ type: i0.ContentChild, args: ['buttonbar', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
4424
|
+
}], ctorParameters: () => [], propDecorators: { iconDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconDisplay", required: false }] }], inputStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyle", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], inputStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyleClass", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], iconAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconAriaLabel", required: false }] }], dateFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormat", required: false }] }], multipleSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "multipleSeparator", required: false }] }], rangeSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeSeparator", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], showOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOtherMonths", required: false }] }], selectOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOtherMonths", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], readonlyInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonlyInput", required: false }] }], shortYearCutoff: [{ type: i0.Input, args: [{ isSignal: true, alias: "shortYearCutoff", required: false }] }], hourFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourFormat", required: false }] }], timeOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeOnly", required: false }] }], stepHour: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepHour", required: false }] }], stepMinute: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepMinute", required: false }] }], stepSecond: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepSecond", required: false }] }], showSeconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeconds", required: false }] }], showOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOnFocus", required: false }] }], showWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "showWeek", required: false }] }], startWeekFromFirstDayOfYear: [{ type: i0.Input, args: [{ isSignal: true, alias: "startWeekFromFirstDayOfYear", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], dataType: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataType", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], maxDateCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDateCount", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], todayButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "todayButtonStyleClass", required: false }] }], clearButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonStyleClass", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], panelStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyle", required: false }] }], keepInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepInvalid", required: false }] }], hideOnDateTimeSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnDateTimeSelect", required: false }] }], touchUI: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchUI", required: false }] }], timeSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeSeparator", required: false }] }], focusTrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusTrap", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDays", required: false }] }], showTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTime", required: false }] }], responsiveOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveOptions", required: false }] }], numberOfMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberOfMonths", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }], defaultDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultDate", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onClose: [{ type: i0.Output, args: ["onClose"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onInput: [{ type: i0.Output, args: ["onInput"] }], onTodayClick: [{ type: i0.Output, args: ["onTodayClick"] }], onClearClick: [{ type: i0.Output, args: ["onClearClick"] }], onMonthChange: [{ type: i0.Output, args: ["onMonthChange"] }], onYearChange: [{ type: i0.Output, args: ["onYearChange"] }], onClickOutside: [{ type: i0.Output, args: ["onClickOutside"] }], onShow: [{ type: i0.Output, args: ["onShow"] }], inputfieldViewChild: [{ type: i0.ViewChild, args: ['inputfield', { isSignal: true }] }], contentViewChild: [{ type: i0.ViewChild, args: ['contentWrapper', { isSignal: true }] }], dateTemplate: [{ type: i0.ContentChild, args: ['date', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], disabledDateTemplate: [{ type: i0.ContentChild, args: ['disabledDate', { ...{ descendants: false }, isSignal: true }] }], decadeTemplate: [{ type: i0.ContentChild, args: ['decade', { ...{ descendants: false }, isSignal: true }] }], previousIconTemplate: [{ type: i0.ContentChild, args: ['previousicon', { ...{ descendants: false }, isSignal: true }] }], nextIconTemplate: [{ type: i0.ContentChild, args: ['nexticon', { ...{ descendants: false }, isSignal: true }] }], triggerIconTemplate: [{ type: i0.ContentChild, args: ['triggericon', { ...{ descendants: false }, isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], decrementIconTemplate: [{ type: i0.ContentChild, args: ['decrementicon', { ...{ descendants: false }, isSignal: true }] }], incrementIconTemplate: [{ type: i0.ContentChild, args: ['incrementicon', { ...{ descendants: false }, isSignal: true }] }], inputIconTemplate: [{ type: i0.ContentChild, args: ['inputicon', { ...{ descendants: false }, isSignal: true }] }], buttonBarTemplate: [{ type: i0.ContentChild, args: ['buttonbar', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
4381
4425
|
class DatePickerModule {
|
|
4382
4426
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4383
4427
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: DatePickerModule, imports: [DatePicker, SharedModule], exports: [DatePicker, SharedModule] });
|