primevue 4.3.2 → 4.3.4
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/accordionheader/AccordionHeader.vue +1 -1
- package/accordionheader/index.d.ts +6 -1
- package/accordionheader/index.mjs +1 -1
- package/accordionheader/index.mjs.map +1 -1
- package/autocomplete/AutoComplete.vue +60 -11
- package/autocomplete/index.d.ts +4 -0
- package/autocomplete/index.mjs +96 -59
- package/autocomplete/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +4 -1
- package/cascadeselect/CascadeSelectSub.vue +1 -1
- package/cascadeselect/index.mjs +22 -20
- package/cascadeselect/index.mjs.map +1 -1
- package/checkbox/Checkbox.vue +1 -1
- package/checkbox/index.mjs +2 -1
- package/checkbox/index.mjs.map +1 -1
- package/chip/BaseChip.vue +1 -1
- package/chip/index.d.ts +1 -1
- package/chip/index.mjs +1 -1
- package/chip/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +5 -1
- package/colorpicker/index.mjs +5 -1
- package/colorpicker/index.mjs.map +1 -1
- package/confirmationoptions/index.d.ts +1 -1
- package/confirmdialog/index.d.ts +4 -0
- package/contextmenu/index.mjs +12 -12
- package/contextmenu/index.mjs.map +1 -1
- package/datatable/BodyCell.vue +1 -0
- package/datatable/ColumnFilter.vue +3 -3
- package/datatable/DataTable.vue +103 -44
- package/datatable/HeaderCheckbox.vue +2 -2
- package/datatable/RowCheckbox.vue +1 -1
- package/datatable/TableBody.vue +12 -1
- package/datatable/TableFooter.vue +9 -1
- package/datatable/TableHeader.vue +9 -2
- package/datatable/index.d.ts +37 -29
- package/datatable/index.mjs +175 -111
- package/datatable/index.mjs.map +1 -1
- package/datatable/style/index.mjs +4 -4
- package/datatable/style/index.mjs.map +1 -1
- package/dataview/DataView.vue +4 -0
- package/dataview/index.d.ts +63 -6
- package/dataview/index.mjs +6 -2
- package/dataview/index.mjs.map +1 -1
- package/datepicker/DatePicker.vue +379 -236
- package/datepicker/index.d.ts +156 -0
- package/datepicker/index.mjs +676 -406
- package/datepicker/index.mjs.map +1 -1
- package/drawer/Drawer.vue +30 -20
- package/drawer/index.d.ts +10 -0
- package/drawer/index.mjs +42 -25
- package/drawer/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +3 -4
- package/fileupload/index.mjs +8 -10
- package/fileupload/index.mjs.map +1 -1
- package/galleria/Galleria.vue +39 -3
- package/galleria/index.mjs +40 -3
- package/galleria/index.mjs.map +1 -1
- package/image/Image.vue +1 -1
- package/image/index.mjs +1 -1
- package/image/index.mjs.map +1 -1
- package/inplace/Inplace.vue +1 -1
- package/inplace/index.mjs +3 -2
- package/inplace/index.mjs.map +1 -1
- package/inputmask/InputMask.vue +3 -3
- package/inputmask/index.d.ts +3 -3
- package/inputmask/index.mjs +3 -3
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/BaseInputNumber.vue +4 -0
- package/inputnumber/InputNumber.vue +3 -10
- package/inputnumber/index.mjs +8 -9
- package/inputnumber/index.mjs.map +1 -1
- package/keyfilter/index.mjs +12 -19
- package/keyfilter/index.mjs.map +1 -1
- package/listbox/Listbox.vue +10 -2
- package/listbox/index.mjs +38 -29
- package/listbox/index.mjs.map +1 -1
- package/megamenu/index.d.ts +1 -1
- package/megamenu/index.mjs +11 -11
- package/megamenu/index.mjs.map +1 -1
- package/menu/Menu.vue +12 -6
- package/menu/Menuitem.vue +14 -4
- package/menu/index.d.ts +3 -12
- package/menu/index.mjs +40 -20
- package/menu/index.mjs.map +1 -1
- package/menubar/index.mjs +16 -16
- package/menubar/index.mjs.map +1 -1
- package/metergroup/MeterGroup.vue +9 -3
- package/metergroup/MeterGroupLabel.vue +10 -1
- package/metergroup/index.d.ts +1 -1
- package/metergroup/index.mjs +32 -7
- package/metergroup/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +40 -6
- package/multiselect/index.d.ts +1 -1
- package/multiselect/index.mjs +100 -68
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/OrganizationChartNode.vue +1 -1
- package/organizationchart/index.mjs.map +1 -1
- package/organizationchart/style/index.mjs +11 -6
- package/organizationchart/style/index.mjs.map +1 -1
- package/package.json +6 -6
- package/paginator/Paginator.vue +2 -0
- package/paginator/index.d.ts +8 -0
- package/paginator/index.mjs +3 -1
- package/paginator/index.mjs.map +1 -1
- package/panel/Panel.vue +2 -2
- package/panel/index.mjs +2 -2
- package/panel/index.mjs.map +1 -1
- package/panelmenu/PanelMenuList.vue +1 -1
- package/panelmenu/index.mjs +4 -4
- package/panelmenu/index.mjs.map +1 -1
- package/password/Password.vue +28 -6
- package/password/index.mjs +44 -16
- package/password/index.mjs.map +1 -1
- package/popover/Popover.vue +1 -1
- package/popover/index.mjs +1 -2
- package/popover/index.mjs.map +1 -1
- package/progressbar/ProgressBar.vue +4 -4
- package/progressbar/index.mjs +8 -12
- package/progressbar/index.mjs.map +1 -1
- package/scrolltop/ScrollTop.vue +2 -2
- package/scrolltop/index.mjs +4 -2
- package/scrolltop/index.mjs.map +1 -1
- package/select/Select.vue +68 -13
- package/select/index.mjs +128 -77
- package/select/index.mjs.map +1 -1
- package/selectbutton/index.d.ts +0 -24
- package/splitter/Splitter.vue +10 -2
- package/splitter/index.d.ts +1 -1
- package/splitter/index.mjs +19 -7
- package/splitter/index.mjs.map +1 -1
- package/splitter/style/index.mjs +1 -13
- package/splitter/style/index.mjs.map +1 -1
- package/step/Step.vue +27 -9
- package/step/index.mjs +46 -16
- package/step/index.mjs.map +1 -1
- package/steppanel/StepPanel.vue +11 -5
- package/steppanel/index.d.ts +8 -0
- package/steppanel/index.mjs +25 -10
- package/steppanel/index.mjs.map +1 -1
- package/stepper/StepperSeparator.vue +5 -2
- package/tab/Tab.vue +4 -4
- package/tab/index.mjs +4 -4
- package/tab/index.mjs.map +1 -1
- package/tablist/TabList.vue +3 -0
- package/tablist/index.mjs +1 -0
- package/tablist/index.mjs.map +1 -1
- package/tabpanel/TabPanel.vue +2 -2
- package/tabpanel/index.mjs +2 -2
- package/tabpanel/index.mjs.map +1 -1
- package/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/index.mjs +13 -14
- package/tieredmenu/index.mjs.map +1 -1
- package/tooltip/index.mjs +47 -30
- package/tooltip/index.mjs.map +1 -1
- package/tree/Tree.vue +14 -2
- package/tree/TreeNode.vue +2 -2
- package/tree/index.mjs +28 -10
- package/tree/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +4 -1
- package/treeselect/index.mjs +4 -2
- package/treeselect/index.mjs.map +1 -1
- package/umd/primevue.min.js +12213 -1
- package/virtualscroller/VirtualScroller.vue +13 -2
- package/virtualscroller/index.mjs +28 -18
- package/virtualscroller/index.mjs.map +1 -1
- package/virtualscroller/style/index.mjs +1 -1
- package/virtualscroller/style/index.mjs.map +1 -1
- package/web-types.json +1 -1
package/datepicker/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cn } from '@primeuix/utils';
|
|
1
2
|
import { setAttribute, getFocusableElements, find, findSingle, getIndex, getAttribute, relativePosition, getOuterWidth, absolutePosition, isTouchDevice, addStyle } from '@primeuix/utils/dom';
|
|
2
3
|
import { localeComparator } from '@primeuix/utils/object';
|
|
3
4
|
import { ZIndex } from '@primeuix/utils/zindex';
|
|
@@ -259,6 +260,9 @@ var script$1 = {
|
|
|
259
260
|
}
|
|
260
261
|
};
|
|
261
262
|
|
|
263
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
264
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
265
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
262
266
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
263
267
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
264
268
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -579,13 +583,15 @@ var script = {
|
|
|
579
583
|
onOverlayEnter: function onOverlayEnter(el) {
|
|
580
584
|
var styles = !this.inline ? {
|
|
581
585
|
position: 'absolute',
|
|
582
|
-
top: '0'
|
|
583
|
-
left: '0'
|
|
586
|
+
top: '0'
|
|
584
587
|
} : undefined;
|
|
585
588
|
addStyle(el, styles);
|
|
586
589
|
if (this.autoZIndex) {
|
|
587
590
|
ZIndex.set('overlay', el, this.baseZIndex || this.$primevue.config.zIndex.overlay);
|
|
588
591
|
}
|
|
592
|
+
|
|
593
|
+
// Issue: #7508
|
|
594
|
+
this.$attrSelector && el.setAttribute(this.$attrSelector, '');
|
|
589
595
|
this.alignOverlay();
|
|
590
596
|
this.$emit('show');
|
|
591
597
|
},
|
|
@@ -804,7 +810,8 @@ var script = {
|
|
|
804
810
|
}
|
|
805
811
|
},
|
|
806
812
|
isOutsideClicked: function isOutsideClicked(event) {
|
|
807
|
-
|
|
813
|
+
var composedPath = event.composedPath();
|
|
814
|
+
return !(this.$el.isSameNode(event.target) || this.isNavIconClicked(event) || composedPath.includes(this.$el) || composedPath.includes(this.overlay));
|
|
808
815
|
},
|
|
809
816
|
isNavIconClicked: function isNavIconClicked(event) {
|
|
810
817
|
return this.previousButton && (this.previousButton.isSameNode(event.target) || this.previousButton.contains(event.target)) || this.nextButton && (this.nextButton.isSameNode(event.target) || this.nextButton.contains(event.target));
|
|
@@ -1140,7 +1147,7 @@ var script = {
|
|
|
1140
1147
|
event.preventDefault();
|
|
1141
1148
|
},
|
|
1142
1149
|
onClearButtonClick: function onClearButtonClick(event) {
|
|
1143
|
-
this.updateModel(null);
|
|
1150
|
+
this.updateModel(this.$formDefaultValue || null);
|
|
1144
1151
|
this.overlayVisible = false;
|
|
1145
1152
|
this.$emit('clear-click', event);
|
|
1146
1153
|
event.preventDefault();
|
|
@@ -1161,12 +1168,37 @@ var script = {
|
|
|
1161
1168
|
onTimePickerElementMouseLeave: function onTimePickerElementMouseLeave() {
|
|
1162
1169
|
this.clearTimePickerTimer();
|
|
1163
1170
|
},
|
|
1171
|
+
onTimePickerElementKeyDown: function onTimePickerElementKeyDown(event, type, direction) {
|
|
1172
|
+
switch (event.code) {
|
|
1173
|
+
case 'Enter':
|
|
1174
|
+
case 'NumpadEnter':
|
|
1175
|
+
case 'Space':
|
|
1176
|
+
if (this.isEnabled()) {
|
|
1177
|
+
this.repeat(event, null, type, direction);
|
|
1178
|
+
event.preventDefault();
|
|
1179
|
+
}
|
|
1180
|
+
break;
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
onTimePickerElementKeyUp: function onTimePickerElementKeyUp(event) {
|
|
1184
|
+
switch (event.code) {
|
|
1185
|
+
case 'Enter':
|
|
1186
|
+
case 'NumpadEnter':
|
|
1187
|
+
case 'Space':
|
|
1188
|
+
if (this.isEnabled()) {
|
|
1189
|
+
this.clearTimePickerTimer();
|
|
1190
|
+
this.updateModelTime();
|
|
1191
|
+
event.preventDefault();
|
|
1192
|
+
}
|
|
1193
|
+
break;
|
|
1194
|
+
}
|
|
1195
|
+
},
|
|
1164
1196
|
repeat: function repeat(event, interval, type, direction) {
|
|
1165
|
-
var
|
|
1197
|
+
var _this0 = this;
|
|
1166
1198
|
var i = interval || 500;
|
|
1167
1199
|
this.clearTimePickerTimer();
|
|
1168
1200
|
this.timePickerTimer = setTimeout(function () {
|
|
1169
|
-
|
|
1201
|
+
_this0.repeat(event, 100, type, direction);
|
|
1170
1202
|
}, i);
|
|
1171
1203
|
switch (type) {
|
|
1172
1204
|
case 0:
|
|
@@ -1296,7 +1328,7 @@ var script = {
|
|
|
1296
1328
|
event.preventDefault();
|
|
1297
1329
|
},
|
|
1298
1330
|
updateModelTime: function updateModelTime() {
|
|
1299
|
-
var
|
|
1331
|
+
var _this1 = this;
|
|
1300
1332
|
this.timePickerChange = true;
|
|
1301
1333
|
var value = this.isComparable() ? this.d_value : this.viewDate;
|
|
1302
1334
|
if (this.isRangeSelection()) {
|
|
@@ -1322,7 +1354,7 @@ var script = {
|
|
|
1322
1354
|
this.updateModel(value);
|
|
1323
1355
|
this.$emit('date-select', value);
|
|
1324
1356
|
setTimeout(function () {
|
|
1325
|
-
return
|
|
1357
|
+
return _this1.timePickerChange = false;
|
|
1326
1358
|
}, 0);
|
|
1327
1359
|
},
|
|
1328
1360
|
toggleAMPM: function toggleAMPM(event) {
|
|
@@ -1384,7 +1416,7 @@ var script = {
|
|
|
1384
1416
|
}
|
|
1385
1417
|
},
|
|
1386
1418
|
isValidSelection: function isValidSelection(value) {
|
|
1387
|
-
var
|
|
1419
|
+
var _this10 = this;
|
|
1388
1420
|
if (value == null) {
|
|
1389
1421
|
return true;
|
|
1390
1422
|
}
|
|
@@ -1394,7 +1426,7 @@ var script = {
|
|
|
1394
1426
|
isValid = false;
|
|
1395
1427
|
}
|
|
1396
1428
|
} else if (value.every(function (v) {
|
|
1397
|
-
return
|
|
1429
|
+
return _this10.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
|
|
1398
1430
|
})) {
|
|
1399
1431
|
if (this.isRangeSelection()) {
|
|
1400
1432
|
isValid = value.length > 1 && value[1] >= value[0];
|
|
@@ -2053,7 +2085,11 @@ var script = {
|
|
|
2053
2085
|
if (this.navigationState) {
|
|
2054
2086
|
if (this.navigationState.button) {
|
|
2055
2087
|
this.initFocusableCell();
|
|
2056
|
-
if (this.navigationState.backward)
|
|
2088
|
+
if (this.navigationState.backward) {
|
|
2089
|
+
this.previousButton && this.previousButton.focus();
|
|
2090
|
+
} else {
|
|
2091
|
+
this.nextButton && this.nextButton.focus();
|
|
2092
|
+
}
|
|
2057
2093
|
} else {
|
|
2058
2094
|
if (this.navigationState.backward) {
|
|
2059
2095
|
var cells;
|
|
@@ -2311,6 +2347,14 @@ var script = {
|
|
|
2311
2347
|
this.responsiveStyleElement.remove();
|
|
2312
2348
|
this.responsiveStyleElement = null;
|
|
2313
2349
|
}
|
|
2350
|
+
},
|
|
2351
|
+
dayDataP: function dayDataP(date) {
|
|
2352
|
+
return cn({
|
|
2353
|
+
today: date.today,
|
|
2354
|
+
'other-month': date.otherMonth,
|
|
2355
|
+
selected: this.isSelected(date),
|
|
2356
|
+
disabled: !date.selectable
|
|
2357
|
+
});
|
|
2314
2358
|
}
|
|
2315
2359
|
},
|
|
2316
2360
|
computed: {
|
|
@@ -2438,20 +2482,20 @@ var script = {
|
|
|
2438
2482
|
return this.dateFormat || this.$primevue.config.locale.dateFormat;
|
|
2439
2483
|
},
|
|
2440
2484
|
monthPickerValues: function monthPickerValues() {
|
|
2441
|
-
var
|
|
2485
|
+
var _this11 = this;
|
|
2442
2486
|
var monthPickerValues = [];
|
|
2443
2487
|
var isSelectableMonth = function isSelectableMonth(baseMonth) {
|
|
2444
|
-
if (
|
|
2445
|
-
var minMonth =
|
|
2446
|
-
var minYear =
|
|
2447
|
-
if (
|
|
2488
|
+
if (_this11.minDate) {
|
|
2489
|
+
var minMonth = _this11.minDate.getMonth();
|
|
2490
|
+
var minYear = _this11.minDate.getFullYear();
|
|
2491
|
+
if (_this11.currentYear < minYear || _this11.currentYear === minYear && baseMonth < minMonth) {
|
|
2448
2492
|
return false;
|
|
2449
2493
|
}
|
|
2450
2494
|
}
|
|
2451
|
-
if (
|
|
2452
|
-
var maxMonth =
|
|
2453
|
-
var maxYear =
|
|
2454
|
-
if (
|
|
2495
|
+
if (_this11.maxDate) {
|
|
2496
|
+
var maxMonth = _this11.maxDate.getMonth();
|
|
2497
|
+
var maxYear = _this11.maxDate.getFullYear();
|
|
2498
|
+
if (_this11.currentYear > maxYear || _this11.currentYear === maxYear && baseMonth > maxMonth) {
|
|
2455
2499
|
return false;
|
|
2456
2500
|
}
|
|
2457
2501
|
}
|
|
@@ -2466,15 +2510,15 @@ var script = {
|
|
|
2466
2510
|
return monthPickerValues;
|
|
2467
2511
|
},
|
|
2468
2512
|
yearPickerValues: function yearPickerValues() {
|
|
2469
|
-
var
|
|
2513
|
+
var _this12 = this;
|
|
2470
2514
|
var yearPickerValues = [];
|
|
2471
2515
|
var base = this.currentYear - this.currentYear % 10;
|
|
2472
2516
|
var isSelectableYear = function isSelectableYear(baseYear) {
|
|
2473
|
-
if (
|
|
2474
|
-
if (
|
|
2517
|
+
if (_this12.minDate) {
|
|
2518
|
+
if (_this12.minDate.getFullYear() > baseYear) return false;
|
|
2475
2519
|
}
|
|
2476
|
-
if (
|
|
2477
|
-
if (
|
|
2520
|
+
if (_this12.maxDate) {
|
|
2521
|
+
if (_this12.maxDate.getFullYear() < baseYear) return false;
|
|
2478
2522
|
}
|
|
2479
2523
|
return true;
|
|
2480
2524
|
};
|
|
@@ -2515,6 +2559,144 @@ var script = {
|
|
|
2515
2559
|
},
|
|
2516
2560
|
panelId: function panelId() {
|
|
2517
2561
|
return this.$id + '_panel';
|
|
2562
|
+
},
|
|
2563
|
+
containerDataP: function containerDataP() {
|
|
2564
|
+
return cn({
|
|
2565
|
+
fluid: this.$fluid
|
|
2566
|
+
});
|
|
2567
|
+
},
|
|
2568
|
+
panelDataP: function panelDataP() {
|
|
2569
|
+
return cn(_defineProperty({
|
|
2570
|
+
inline: this.inline
|
|
2571
|
+
}, 'portal-' + this.appendTo, 'portal-' + this.appendTo));
|
|
2572
|
+
},
|
|
2573
|
+
inputIconDataP: function inputIconDataP() {
|
|
2574
|
+
return cn(_defineProperty({}, this.size, this.size));
|
|
2575
|
+
},
|
|
2576
|
+
timePickerDataP: function timePickerDataP() {
|
|
2577
|
+
return cn({
|
|
2578
|
+
'time-only': this.timeOnly
|
|
2579
|
+
});
|
|
2580
|
+
},
|
|
2581
|
+
hourIncrementCallbacks: function hourIncrementCallbacks() {
|
|
2582
|
+
var _this13 = this;
|
|
2583
|
+
return {
|
|
2584
|
+
mousedown: function mousedown(event) {
|
|
2585
|
+
return _this13.onTimePickerElementMouseDown(event, 0, 1);
|
|
2586
|
+
},
|
|
2587
|
+
mouseup: function mouseup(event) {
|
|
2588
|
+
return _this13.onTimePickerElementMouseUp(event);
|
|
2589
|
+
},
|
|
2590
|
+
mouseleave: function mouseleave() {
|
|
2591
|
+
return _this13.onTimePickerElementMouseLeave();
|
|
2592
|
+
},
|
|
2593
|
+
keydown: function keydown(event) {
|
|
2594
|
+
return _this13.onTimePickerElementKeyDown(event, 0, 1);
|
|
2595
|
+
},
|
|
2596
|
+
keyup: function keyup(event) {
|
|
2597
|
+
return _this13.onTimePickerElementKeyUp(event);
|
|
2598
|
+
}
|
|
2599
|
+
};
|
|
2600
|
+
},
|
|
2601
|
+
hourDecrementCallbacks: function hourDecrementCallbacks() {
|
|
2602
|
+
var _this14 = this;
|
|
2603
|
+
return {
|
|
2604
|
+
mousedown: function mousedown(event) {
|
|
2605
|
+
return _this14.onTimePickerElementMouseDown(event, 0, -1);
|
|
2606
|
+
},
|
|
2607
|
+
mouseup: function mouseup(event) {
|
|
2608
|
+
return _this14.onTimePickerElementMouseUp(event);
|
|
2609
|
+
},
|
|
2610
|
+
mouseleave: function mouseleave() {
|
|
2611
|
+
return _this14.onTimePickerElementMouseLeave();
|
|
2612
|
+
},
|
|
2613
|
+
keydown: function keydown(event) {
|
|
2614
|
+
return _this14.onTimePickerElementKeyDown(event, 0, -1);
|
|
2615
|
+
},
|
|
2616
|
+
keyup: function keyup(event) {
|
|
2617
|
+
return _this14.onTimePickerElementKeyUp(event);
|
|
2618
|
+
}
|
|
2619
|
+
};
|
|
2620
|
+
},
|
|
2621
|
+
minuteIncrementCallbacks: function minuteIncrementCallbacks() {
|
|
2622
|
+
var _this15 = this;
|
|
2623
|
+
return {
|
|
2624
|
+
mousedown: function mousedown(event) {
|
|
2625
|
+
return _this15.onTimePickerElementMouseDown(event, 1, 1);
|
|
2626
|
+
},
|
|
2627
|
+
mouseup: function mouseup(event) {
|
|
2628
|
+
return _this15.onTimePickerElementMouseUp(event);
|
|
2629
|
+
},
|
|
2630
|
+
mouseleave: function mouseleave() {
|
|
2631
|
+
return _this15.onTimePickerElementMouseLeave();
|
|
2632
|
+
},
|
|
2633
|
+
keydown: function keydown(event) {
|
|
2634
|
+
return _this15.onTimePickerElementKeyDown(event, 1, 1);
|
|
2635
|
+
},
|
|
2636
|
+
keyup: function keyup(event) {
|
|
2637
|
+
return _this15.onTimePickerElementKeyUp(event);
|
|
2638
|
+
}
|
|
2639
|
+
};
|
|
2640
|
+
},
|
|
2641
|
+
minuteDecrementCallbacks: function minuteDecrementCallbacks() {
|
|
2642
|
+
var _this16 = this;
|
|
2643
|
+
return {
|
|
2644
|
+
mousedown: function mousedown(event) {
|
|
2645
|
+
return _this16.onTimePickerElementMouseDown(event, 1, -1);
|
|
2646
|
+
},
|
|
2647
|
+
mouseup: function mouseup(event) {
|
|
2648
|
+
return _this16.onTimePickerElementMouseUp(event);
|
|
2649
|
+
},
|
|
2650
|
+
mouseleave: function mouseleave() {
|
|
2651
|
+
return _this16.onTimePickerElementMouseLeave();
|
|
2652
|
+
},
|
|
2653
|
+
keydown: function keydown(event) {
|
|
2654
|
+
return _this16.onTimePickerElementKeyDown(event, 1, -1);
|
|
2655
|
+
},
|
|
2656
|
+
keyup: function keyup(event) {
|
|
2657
|
+
return _this16.onTimePickerElementKeyUp(event);
|
|
2658
|
+
}
|
|
2659
|
+
};
|
|
2660
|
+
},
|
|
2661
|
+
secondIncrementCallbacks: function secondIncrementCallbacks() {
|
|
2662
|
+
var _this17 = this;
|
|
2663
|
+
return {
|
|
2664
|
+
mousedown: function mousedown(event) {
|
|
2665
|
+
return _this17.onTimePickerElementMouseDown(event, 2, 1);
|
|
2666
|
+
},
|
|
2667
|
+
mouseup: function mouseup(event) {
|
|
2668
|
+
return _this17.onTimePickerElementMouseUp(event);
|
|
2669
|
+
},
|
|
2670
|
+
mouseleave: function mouseleave() {
|
|
2671
|
+
return _this17.onTimePickerElementMouseLeave();
|
|
2672
|
+
},
|
|
2673
|
+
keydown: function keydown(event) {
|
|
2674
|
+
return _this17.onTimePickerElementKeyDown(event, 2, 1);
|
|
2675
|
+
},
|
|
2676
|
+
keyup: function keyup(event) {
|
|
2677
|
+
return _this17.onTimePickerElementKeyUp(event);
|
|
2678
|
+
}
|
|
2679
|
+
};
|
|
2680
|
+
},
|
|
2681
|
+
secondDecrementCallbacks: function secondDecrementCallbacks() {
|
|
2682
|
+
var _this18 = this;
|
|
2683
|
+
return {
|
|
2684
|
+
mousedown: function mousedown(event) {
|
|
2685
|
+
return _this18.onTimePickerElementMouseDown(event, 2, -1);
|
|
2686
|
+
},
|
|
2687
|
+
mouseup: function mouseup(event) {
|
|
2688
|
+
return _this18.onTimePickerElementMouseUp(event);
|
|
2689
|
+
},
|
|
2690
|
+
mouseleave: function mouseleave() {
|
|
2691
|
+
return _this18.onTimePickerElementMouseLeave();
|
|
2692
|
+
},
|
|
2693
|
+
keydown: function keydown(event) {
|
|
2694
|
+
return _this18.onTimePickerElementKeyDown(event, 2, -1);
|
|
2695
|
+
},
|
|
2696
|
+
keyup: function keyup(event) {
|
|
2697
|
+
return _this18.onTimePickerElementKeyUp(event);
|
|
2698
|
+
}
|
|
2699
|
+
};
|
|
2518
2700
|
}
|
|
2519
2701
|
},
|
|
2520
2702
|
components: {
|
|
@@ -2532,20 +2714,22 @@ var script = {
|
|
|
2532
2714
|
}
|
|
2533
2715
|
};
|
|
2534
2716
|
|
|
2535
|
-
var _hoisted_1 = ["id"];
|
|
2717
|
+
var _hoisted_1 = ["id", "data-p"];
|
|
2536
2718
|
var _hoisted_2 = ["disabled", "aria-label", "aria-expanded", "aria-controls"];
|
|
2537
|
-
var _hoisted_3 = ["
|
|
2538
|
-
var _hoisted_4 = ["
|
|
2719
|
+
var _hoisted_3 = ["data-p"];
|
|
2720
|
+
var _hoisted_4 = ["id", "role", "aria-modal", "aria-label", "data-p"];
|
|
2539
2721
|
var _hoisted_5 = ["disabled", "aria-label"];
|
|
2540
2722
|
var _hoisted_6 = ["disabled", "aria-label"];
|
|
2541
2723
|
var _hoisted_7 = ["disabled", "aria-label"];
|
|
2542
|
-
var _hoisted_8 = ["
|
|
2543
|
-
var _hoisted_9 = ["
|
|
2544
|
-
var _hoisted_10 = ["
|
|
2545
|
-
var _hoisted_11 = ["
|
|
2546
|
-
var _hoisted_12 = ["
|
|
2547
|
-
var _hoisted_13 = ["onClick", "onKeydown", "
|
|
2724
|
+
var _hoisted_8 = ["disabled", "aria-label"];
|
|
2725
|
+
var _hoisted_9 = ["data-p-disabled"];
|
|
2726
|
+
var _hoisted_10 = ["abbr"];
|
|
2727
|
+
var _hoisted_11 = ["data-p-disabled"];
|
|
2728
|
+
var _hoisted_12 = ["aria-label", "data-p-today", "data-p-other-month"];
|
|
2729
|
+
var _hoisted_13 = ["onClick", "onKeydown", "aria-selected", "aria-disabled", "data-p"];
|
|
2548
2730
|
var _hoisted_14 = ["onClick", "onKeydown", "data-p-disabled", "data-p-selected"];
|
|
2731
|
+
var _hoisted_15 = ["onClick", "onKeydown", "data-p-disabled", "data-p-selected"];
|
|
2732
|
+
var _hoisted_16 = ["data-p"];
|
|
2549
2733
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2550
2734
|
var _component_InputText = resolveComponent("InputText");
|
|
2551
2735
|
var _component_Button = resolveComponent("Button");
|
|
@@ -2555,7 +2739,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2555
2739
|
ref: "container",
|
|
2556
2740
|
id: _ctx.$id,
|
|
2557
2741
|
"class": _ctx.cx('root'),
|
|
2558
|
-
style: _ctx.sx('root')
|
|
2742
|
+
style: _ctx.sx('root'),
|
|
2743
|
+
"data-p": $options.containerDataP
|
|
2559
2744
|
}, _ctx.ptmi('root')), [!_ctx.inline ? (openBlock(), createBlock(_component_InputText, {
|
|
2560
2745
|
key: 0,
|
|
2561
2746
|
ref: $options.inputRef,
|
|
@@ -2587,8 +2772,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2587
2772
|
onFocus: $options.onFocus,
|
|
2588
2773
|
onBlur: $options.onBlur,
|
|
2589
2774
|
onKeydown: $options.onKeyDown,
|
|
2590
|
-
|
|
2591
|
-
|
|
2775
|
+
"data-p-has-dropdown": _ctx.showIcon && _ctx.iconDisplay === 'button' && !_ctx.inline,
|
|
2776
|
+
"data-p-has-e-icon": _ctx.showIcon && _ctx.iconDisplay === 'input' && !_ctx.inline,
|
|
2777
|
+
pt: _ctx.ptm('pcInputText'),
|
|
2778
|
+
formControl: {
|
|
2779
|
+
novalidate: true
|
|
2780
|
+
}
|
|
2781
|
+
}, null, 8, ["id", "class", "style", "defaultValue", "placeholder", "name", "size", "invalid", "variant", "fluid", "unstyled", "aria-expanded", "aria-controls", "aria-labelledby", "aria-label", "disabled", "readonly", "onInput", "onClick", "onFocus", "onBlur", "onKeydown", "data-p-has-dropdown", "data-p-has-e-icon", "pt"])) : createCommentVNode("", true), _ctx.showIcon && _ctx.iconDisplay === 'button' && !_ctx.inline ? renderSlot(_ctx.$slots, "dropdownbutton", {
|
|
2592
2782
|
key: 1,
|
|
2593
2783
|
toggleCallback: $options.onButtonClick
|
|
2594
2784
|
}, function () {
|
|
@@ -2614,7 +2804,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2614
2804
|
key: 2
|
|
2615
2805
|
}, [_ctx.$slots.inputicon || _ctx.showIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
2616
2806
|
key: 0,
|
|
2617
|
-
"class": _ctx.cx('inputIconContainer')
|
|
2807
|
+
"class": _ctx.cx('inputIconContainer'),
|
|
2808
|
+
"data-p": $options.inputIconDataP
|
|
2618
2809
|
}, _ctx.ptm('inputIconContainer')), [renderSlot(_ctx.$slots, "inputicon", {
|
|
2619
2810
|
"class": normalizeClass(_ctx.cx('inputIcon')),
|
|
2620
2811
|
clickCallback: $options.onButtonClick
|
|
@@ -2623,7 +2814,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2623
2814
|
"class": [_ctx.icon, _ctx.cx('inputIcon')],
|
|
2624
2815
|
onClick: $options.onButtonClick
|
|
2625
2816
|
}, _ctx.ptm('inputicon')), null, 16, ["class", "onClick"]))];
|
|
2626
|
-
})], 16)) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), createVNode(_component_Portal, {
|
|
2817
|
+
})], 16, _hoisted_3)) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), createVNode(_component_Portal, {
|
|
2627
2818
|
appendTo: _ctx.appendTo,
|
|
2628
2819
|
disabled: _ctx.inline
|
|
2629
2820
|
}, {
|
|
@@ -2655,7 +2846,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2655
2846
|
}),
|
|
2656
2847
|
onMouseup: _cache[57] || (_cache[57] = function () {
|
|
2657
2848
|
return $options.onOverlayMouseUp && $options.onOverlayMouseUp.apply($options, arguments);
|
|
2658
|
-
})
|
|
2849
|
+
}),
|
|
2850
|
+
"data-p": $options.panelDataP
|
|
2659
2851
|
}, _ctx.ptm('panel')), [!_ctx.timeOnly ? (openBlock(), createElementBlock(Fragment, {
|
|
2660
2852
|
key: 0
|
|
2661
2853
|
}, [createElementVNode("div", mergeProps({
|
|
@@ -2668,29 +2860,38 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2668
2860
|
}, _ctx.ptm('calendar')), [createElementVNode("div", mergeProps({
|
|
2669
2861
|
"class": _ctx.cx('header'),
|
|
2670
2862
|
ref_for: true
|
|
2671
|
-
}, _ctx.ptm('header')), [renderSlot(_ctx.$slots, "header"),
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
}),
|
|
2692
|
-
|
|
2693
|
-
|
|
2863
|
+
}, _ctx.ptm('header')), [renderSlot(_ctx.$slots, "header"), renderSlot(_ctx.$slots, "prevbutton", {
|
|
2864
|
+
actionCallback: function actionCallback(event) {
|
|
2865
|
+
return $options.onPrevButtonClick(event);
|
|
2866
|
+
},
|
|
2867
|
+
keydownCallback: function keydownCallback(event) {
|
|
2868
|
+
return $options.onContainerButtonKeydown(event);
|
|
2869
|
+
}
|
|
2870
|
+
}, function () {
|
|
2871
|
+
return [withDirectives(createVNode(_component_Button, mergeProps({
|
|
2872
|
+
ref_for: true,
|
|
2873
|
+
ref: $options.previousButtonRef,
|
|
2874
|
+
"class": _ctx.cx('pcPrevButton'),
|
|
2875
|
+
disabled: _ctx.disabled,
|
|
2876
|
+
"aria-label": $data.currentView === 'year' ? _ctx.$primevue.config.locale.prevDecade : $data.currentView === 'month' ? _ctx.$primevue.config.locale.prevYear : _ctx.$primevue.config.locale.prevMonth,
|
|
2877
|
+
unstyled: _ctx.unstyled,
|
|
2878
|
+
onClick: $options.onPrevButtonClick,
|
|
2879
|
+
onKeydown: $options.onContainerButtonKeydown
|
|
2880
|
+
}, _ctx.navigatorButtonProps, {
|
|
2881
|
+
pt: _ctx.ptm('pcPrevButton'),
|
|
2882
|
+
"data-pc-group-section": "navigator"
|
|
2883
|
+
}), {
|
|
2884
|
+
icon: withCtx(function (slotProps) {
|
|
2885
|
+
return [renderSlot(_ctx.$slots, "previcon", {}, function () {
|
|
2886
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.prevIcon ? 'span' : 'ChevronLeftIcon'), mergeProps({
|
|
2887
|
+
"class": [_ctx.prevIcon, slotProps["class"]],
|
|
2888
|
+
ref_for: true
|
|
2889
|
+
}, _ctx.ptm('pcPrevButton')['icon']), null, 16, ["class"]))];
|
|
2890
|
+
})];
|
|
2891
|
+
}),
|
|
2892
|
+
_: 2
|
|
2893
|
+
}, 1040, ["class", "disabled", "aria-label", "unstyled", "onClick", "onKeydown", "pt"]), [[vShow, groupIndex === 0]])];
|
|
2894
|
+
}), createElementVNode("div", mergeProps({
|
|
2694
2895
|
"class": _ctx.cx('title'),
|
|
2695
2896
|
ref_for: true
|
|
2696
2897
|
}, _ctx.ptm('title')), [_ctx.$primevue.config.locale.showMonthAfterYear ? (openBlock(), createElementBlock(Fragment, {
|
|
@@ -2710,7 +2911,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2710
2911
|
ref_for: true
|
|
2711
2912
|
}, _ctx.ptm('selectYear'), {
|
|
2712
2913
|
"data-pc-group-section": "view"
|
|
2713
|
-
}), toDisplayString($options.getYear(month)), 17,
|
|
2914
|
+
}), toDisplayString($options.getYear(month)), 17, _hoisted_5)) : createCommentVNode("", true), $data.currentView === 'date' ? (openBlock(), createElementBlock("button", mergeProps({
|
|
2714
2915
|
key: 1,
|
|
2715
2916
|
type: "button",
|
|
2716
2917
|
onClick: _cache[3] || (_cache[3] = function () {
|
|
@@ -2725,7 +2926,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2725
2926
|
ref_for: true
|
|
2726
2927
|
}, _ctx.ptm('selectMonth'), {
|
|
2727
2928
|
"data-pc-group-section": "view"
|
|
2728
|
-
}), toDisplayString($options.getMonthName(month.month)), 17,
|
|
2929
|
+
}), toDisplayString($options.getMonthName(month.month)), 17, _hoisted_6)) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock(Fragment, {
|
|
2729
2930
|
key: 1
|
|
2730
2931
|
}, [$data.currentView === 'date' ? (openBlock(), createElementBlock("button", mergeProps({
|
|
2731
2932
|
key: 0,
|
|
@@ -2742,7 +2943,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2742
2943
|
ref_for: true
|
|
2743
2944
|
}, _ctx.ptm('selectMonth'), {
|
|
2744
2945
|
"data-pc-group-section": "view"
|
|
2745
|
-
}), toDisplayString($options.getMonthName(month.month)), 17,
|
|
2946
|
+
}), toDisplayString($options.getMonthName(month.month)), 17, _hoisted_7)) : createCommentVNode("", true), $data.currentView !== 'year' ? (openBlock(), createElementBlock("button", mergeProps({
|
|
2746
2947
|
key: 1,
|
|
2747
2948
|
type: "button",
|
|
2748
2949
|
onClick: _cache[7] || (_cache[7] = function () {
|
|
@@ -2757,7 +2958,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2757
2958
|
ref_for: true
|
|
2758
2959
|
}, _ctx.ptm('selectYear'), {
|
|
2759
2960
|
"data-pc-group-section": "view"
|
|
2760
|
-
}), toDisplayString($options.getYear(month)), 17,
|
|
2961
|
+
}), toDisplayString($options.getYear(month)), 17, _hoisted_8)) : createCommentVNode("", true)], 64)), $data.currentView === 'year' ? (openBlock(), createElementBlock("span", mergeProps({
|
|
2761
2962
|
key: 2,
|
|
2762
2963
|
"class": _ctx.cx('decade'),
|
|
2763
2964
|
ref_for: true
|
|
@@ -2765,29 +2966,38 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2765
2966
|
years: $options.yearPickerValues
|
|
2766
2967
|
}, function () {
|
|
2767
2968
|
return [createTextVNode(toDisplayString($options.yearPickerValues[0].value) + " - " + toDisplayString($options.yearPickerValues[$options.yearPickerValues.length - 1].value), 1)];
|
|
2768
|
-
})], 16)) : createCommentVNode("", true)], 16),
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
}),
|
|
2789
|
-
|
|
2790
|
-
|
|
2969
|
+
})], 16)) : createCommentVNode("", true)], 16), renderSlot(_ctx.$slots, "nextbutton", {
|
|
2970
|
+
actionCallback: function actionCallback(event) {
|
|
2971
|
+
return $options.onNextButtonClick(event);
|
|
2972
|
+
},
|
|
2973
|
+
keydownCallback: function keydownCallback(event) {
|
|
2974
|
+
return $options.onContainerButtonKeydown(event);
|
|
2975
|
+
}
|
|
2976
|
+
}, function () {
|
|
2977
|
+
return [withDirectives(createVNode(_component_Button, mergeProps({
|
|
2978
|
+
ref_for: true,
|
|
2979
|
+
ref: $options.nextButtonRef,
|
|
2980
|
+
"class": _ctx.cx('pcNextButton'),
|
|
2981
|
+
disabled: _ctx.disabled,
|
|
2982
|
+
"aria-label": $data.currentView === 'year' ? _ctx.$primevue.config.locale.nextDecade : $data.currentView === 'month' ? _ctx.$primevue.config.locale.nextYear : _ctx.$primevue.config.locale.nextMonth,
|
|
2983
|
+
unstyled: _ctx.unstyled,
|
|
2984
|
+
onClick: $options.onNextButtonClick,
|
|
2985
|
+
onKeydown: $options.onContainerButtonKeydown
|
|
2986
|
+
}, _ctx.navigatorButtonProps, {
|
|
2987
|
+
pt: _ctx.ptm('pcNextButton'),
|
|
2988
|
+
"data-pc-group-section": "navigator"
|
|
2989
|
+
}), {
|
|
2990
|
+
icon: withCtx(function (slotProps) {
|
|
2991
|
+
return [renderSlot(_ctx.$slots, "nexticon", {}, function () {
|
|
2992
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon ? 'span' : 'ChevronRightIcon'), mergeProps({
|
|
2993
|
+
"class": [_ctx.nextIcon, slotProps["class"]],
|
|
2994
|
+
ref_for: true
|
|
2995
|
+
}, _ctx.ptm('pcNextButton')['icon']), null, 16, ["class"]))];
|
|
2996
|
+
})];
|
|
2997
|
+
}),
|
|
2998
|
+
_: 2
|
|
2999
|
+
}, 1040, ["class", "disabled", "aria-label", "unstyled", "onClick", "onKeydown", "pt"]), [[vShow, _ctx.numberOfMonths === 1 ? true : groupIndex === _ctx.numberOfMonths - 1]])];
|
|
3000
|
+
})], 16), $data.currentView === 'date' ? (openBlock(), createElementBlock("table", mergeProps({
|
|
2791
3001
|
key: 0,
|
|
2792
3002
|
"class": _ctx.cx('dayView'),
|
|
2793
3003
|
role: "grid",
|
|
@@ -2818,7 +3028,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2818
3028
|
}), {
|
|
2819
3029
|
"data-pc-group-section": "tableheadercelllabel"
|
|
2820
3030
|
}), toDisplayString($options.weekHeaderLabel), 17)];
|
|
2821
|
-
})], 16,
|
|
3031
|
+
})], 16, _hoisted_9)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList($options.weekDays, function (weekDay) {
|
|
2822
3032
|
return openBlock(), createElementBlock("th", mergeProps({
|
|
2823
3033
|
key: weekDay,
|
|
2824
3034
|
scope: "col",
|
|
@@ -2832,7 +3042,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2832
3042
|
ref_for: true
|
|
2833
3043
|
}, _ctx.ptm('weekDay'), {
|
|
2834
3044
|
"data-pc-group-section": "tableheadercelllabel"
|
|
2835
|
-
}), toDisplayString(weekDay), 17)], 16,
|
|
3045
|
+
}), toDisplayString(weekDay), 17)], 16, _hoisted_10);
|
|
2836
3046
|
}), 128))], 16)], 16), createElementVNode("tbody", mergeProps({
|
|
2837
3047
|
ref_for: true
|
|
2838
3048
|
}, _ctx.ptm('tableBody')), [(openBlock(true), createElementBlock(Fragment, null, renderList(month.dates, function (week, i) {
|
|
@@ -2865,7 +3075,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2865
3075
|
},
|
|
2866
3076
|
ref_for: true
|
|
2867
3077
|
}, _ctx.ptm('weekLabel')), "0", 16)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(month.weekNumbers[i]), 1)];
|
|
2868
|
-
})], 16,
|
|
3078
|
+
})], 16, _hoisted_11)], 16)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(week, function (date) {
|
|
2869
3079
|
return openBlock(), createElementBlock("td", mergeProps({
|
|
2870
3080
|
key: date.day + '' + date.month,
|
|
2871
3081
|
"aria-label": date.day,
|
|
@@ -2909,21 +3119,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2909
3119
|
disabled: !date.selectable
|
|
2910
3120
|
}
|
|
2911
3121
|
}), {
|
|
2912
|
-
"data-p
|
|
2913
|
-
"data-p-selected": $options.isSelected(date),
|
|
3122
|
+
"data-p": $options.dayDataP(date),
|
|
2914
3123
|
"data-pc-group-section": "tablebodycelllabel"
|
|
2915
3124
|
}), [renderSlot(_ctx.$slots, "date", {
|
|
2916
3125
|
date: date
|
|
2917
3126
|
}, function () {
|
|
2918
3127
|
return [createTextVNode(toDisplayString(date.day), 1)];
|
|
2919
|
-
})], 16,
|
|
3128
|
+
})], 16, _hoisted_13)), [[_directive_ripple]]) : createCommentVNode("", true), $options.isSelected(date) ? (openBlock(), createElementBlock("div", mergeProps({
|
|
2920
3129
|
key: 1,
|
|
2921
3130
|
"class": "p-hidden-accessible",
|
|
2922
3131
|
"aria-live": "polite",
|
|
2923
3132
|
ref_for: true
|
|
2924
3133
|
}, _ctx.ptm('hiddenSelectedDay'), {
|
|
2925
3134
|
"data-p-hidden-accessible": true
|
|
2926
|
-
}), toDisplayString(date.day), 17)) : createCommentVNode("", true)], 16,
|
|
3135
|
+
}), toDisplayString(date.day), 17)) : createCommentVNode("", true)], 16, _hoisted_12);
|
|
2927
3136
|
}), 128))], 16);
|
|
2928
3137
|
}), 128))], 16)], 16)) : createCommentVNode("", true)], 16);
|
|
2929
3138
|
}), 128))], 16), $data.currentView === 'month' ? (openBlock(), createElementBlock("div", mergeProps({
|
|
@@ -2966,7 +3175,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2966
3175
|
ref_for: true
|
|
2967
3176
|
}, _ctx.ptm('hiddenMonth'), {
|
|
2968
3177
|
"data-p-hidden-accessible": true
|
|
2969
|
-
}), toDisplayString(m.value), 17)) : createCommentVNode("", true)], 16,
|
|
3178
|
+
}), toDisplayString(m.value), 17)) : createCommentVNode("", true)], 16, _hoisted_14)), [[_directive_ripple]]);
|
|
2970
3179
|
}), 128))], 16)) : createCommentVNode("", true), $data.currentView === 'year' ? (openBlock(), createElementBlock("div", mergeProps({
|
|
2971
3180
|
key: 1,
|
|
2972
3181
|
"class": _ctx.cx('yearView')
|
|
@@ -2999,91 +3208,100 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2999
3208
|
ref_for: true
|
|
3000
3209
|
}, _ctx.ptm('hiddenYear'), {
|
|
3001
3210
|
"data-p-hidden-accessible": true
|
|
3002
|
-
}), toDisplayString(y.value), 17)) : createCommentVNode("", true)], 16,
|
|
3211
|
+
}), toDisplayString(y.value), 17)) : createCommentVNode("", true)], 16, _hoisted_15)), [[_directive_ripple]]);
|
|
3003
3212
|
}), 128))], 16)) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), (_ctx.showTime || _ctx.timeOnly) && $data.currentView === 'date' ? (openBlock(), createElementBlock("div", mergeProps({
|
|
3004
3213
|
key: 1,
|
|
3005
|
-
"class": _ctx.cx('timePicker')
|
|
3214
|
+
"class": _ctx.cx('timePicker'),
|
|
3215
|
+
"data-p": $options.timePickerDataP
|
|
3006
3216
|
}, _ctx.ptm('timePicker')), [createElementVNode("div", mergeProps({
|
|
3007
3217
|
"class": _ctx.cx('hourPicker')
|
|
3008
3218
|
}, _ctx.ptm('hourPicker'), {
|
|
3009
3219
|
"data-pc-group-section": "timepickerContainer"
|
|
3010
|
-
}), [
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
},
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3220
|
+
}), [renderSlot(_ctx.$slots, "hourincrementbutton", {
|
|
3221
|
+
callbacks: $options.hourIncrementCallbacks
|
|
3222
|
+
}, function () {
|
|
3223
|
+
return [createVNode(_component_Button, mergeProps({
|
|
3224
|
+
"class": _ctx.cx('pcIncrementButton'),
|
|
3225
|
+
"aria-label": _ctx.$primevue.config.locale.nextHour,
|
|
3226
|
+
unstyled: _ctx.unstyled,
|
|
3227
|
+
onMousedown: _cache[9] || (_cache[9] = function ($event) {
|
|
3228
|
+
return $options.onTimePickerElementMouseDown($event, 0, 1);
|
|
3229
|
+
}),
|
|
3230
|
+
onMouseup: _cache[10] || (_cache[10] = function ($event) {
|
|
3231
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3232
|
+
}),
|
|
3233
|
+
onKeydown: [$options.onContainerButtonKeydown, _cache[12] || (_cache[12] = withKeys(function ($event) {
|
|
3234
|
+
return $options.onTimePickerElementMouseDown($event, 0, 1);
|
|
3235
|
+
}, ["enter"])), _cache[13] || (_cache[13] = withKeys(function ($event) {
|
|
3236
|
+
return $options.onTimePickerElementMouseDown($event, 0, 1);
|
|
3237
|
+
}, ["space"]))],
|
|
3238
|
+
onMouseleave: _cache[11] || (_cache[11] = function ($event) {
|
|
3239
|
+
return $options.onTimePickerElementMouseLeave();
|
|
3240
|
+
}),
|
|
3241
|
+
onKeyup: [_cache[14] || (_cache[14] = withKeys(function ($event) {
|
|
3242
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3243
|
+
}, ["enter"])), _cache[15] || (_cache[15] = withKeys(function ($event) {
|
|
3244
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3245
|
+
}, ["space"]))]
|
|
3246
|
+
}, _ctx.timepickerButtonProps, {
|
|
3247
|
+
pt: _ctx.ptm('pcIncrementButton'),
|
|
3248
|
+
"data-pc-group-section": "timepickerbutton"
|
|
3249
|
+
}), {
|
|
3250
|
+
icon: withCtx(function (slotProps) {
|
|
3251
|
+
return [renderSlot(_ctx.$slots, "incrementicon", {}, function () {
|
|
3252
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementIcon ? 'span' : 'ChevronUpIcon'), mergeProps({
|
|
3253
|
+
"class": [_ctx.incrementIcon, slotProps["class"]]
|
|
3254
|
+
}, _ctx.ptm('pcIncrementButton')['icon'], {
|
|
3255
|
+
"data-pc-group-section": "timepickerlabel"
|
|
3256
|
+
}), null, 16, ["class"]))];
|
|
3257
|
+
})];
|
|
3258
|
+
}),
|
|
3259
|
+
_: 3
|
|
3260
|
+
}, 16, ["class", "aria-label", "unstyled", "onKeydown", "pt"])];
|
|
3261
|
+
}), createElementVNode("span", mergeProps(_ctx.ptm('hour'), {
|
|
3048
3262
|
"data-pc-group-section": "timepickerlabel"
|
|
3049
|
-
}), toDisplayString($options.formattedCurrentHour), 17),
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
},
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3263
|
+
}), toDisplayString($options.formattedCurrentHour), 17), renderSlot(_ctx.$slots, "hourdecrementbutton", {
|
|
3264
|
+
callbacks: $options.hourDecrementCallbacks
|
|
3265
|
+
}, function () {
|
|
3266
|
+
return [createVNode(_component_Button, mergeProps({
|
|
3267
|
+
"class": _ctx.cx('pcDecrementButton'),
|
|
3268
|
+
"aria-label": _ctx.$primevue.config.locale.prevHour,
|
|
3269
|
+
unstyled: _ctx.unstyled,
|
|
3270
|
+
onMousedown: _cache[16] || (_cache[16] = function ($event) {
|
|
3271
|
+
return $options.onTimePickerElementMouseDown($event, 0, -1);
|
|
3272
|
+
}),
|
|
3273
|
+
onMouseup: _cache[17] || (_cache[17] = function ($event) {
|
|
3274
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3275
|
+
}),
|
|
3276
|
+
onKeydown: [$options.onContainerButtonKeydown, _cache[19] || (_cache[19] = withKeys(function ($event) {
|
|
3277
|
+
return $options.onTimePickerElementMouseDown($event, 0, -1);
|
|
3278
|
+
}, ["enter"])), _cache[20] || (_cache[20] = withKeys(function ($event) {
|
|
3279
|
+
return $options.onTimePickerElementMouseDown($event, 0, -1);
|
|
3280
|
+
}, ["space"]))],
|
|
3281
|
+
onMouseleave: _cache[18] || (_cache[18] = function ($event) {
|
|
3282
|
+
return $options.onTimePickerElementMouseLeave();
|
|
3283
|
+
}),
|
|
3284
|
+
onKeyup: [_cache[21] || (_cache[21] = withKeys(function ($event) {
|
|
3285
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3286
|
+
}, ["enter"])), _cache[22] || (_cache[22] = withKeys(function ($event) {
|
|
3287
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3288
|
+
}, ["space"]))]
|
|
3289
|
+
}, _ctx.timepickerButtonProps, {
|
|
3290
|
+
pt: _ctx.ptm('pcDecrementButton'),
|
|
3291
|
+
"data-pc-group-section": "timepickerbutton"
|
|
3292
|
+
}), {
|
|
3293
|
+
icon: withCtx(function (slotProps) {
|
|
3294
|
+
return [renderSlot(_ctx.$slots, "decrementicon", {}, function () {
|
|
3295
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
|
|
3296
|
+
"class": [_ctx.decrementIcon, slotProps["class"]]
|
|
3297
|
+
}, _ctx.ptm('pcDecrementButton')['icon'], {
|
|
3298
|
+
"data-pc-group-section": "timepickerlabel"
|
|
3299
|
+
}), null, 16, ["class"]))];
|
|
3300
|
+
})];
|
|
3301
|
+
}),
|
|
3302
|
+
_: 3
|
|
3303
|
+
}, 16, ["class", "aria-label", "unstyled", "onKeydown", "pt"])];
|
|
3304
|
+
})], 16), createElementVNode("div", mergeProps(_ctx.ptm('separatorContainer'), {
|
|
3087
3305
|
"data-pc-group-section": "timepickerContainer"
|
|
3088
3306
|
}), [createElementVNode("span", mergeProps(_ctx.ptm('separator'), {
|
|
3089
3307
|
"data-pc-group-section": "timepickerlabel"
|
|
@@ -3091,85 +3309,93 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3091
3309
|
"class": _ctx.cx('minutePicker')
|
|
3092
3310
|
}, _ctx.ptm('minutePicker'), {
|
|
3093
3311
|
"data-pc-group-section": "timepickerContainer"
|
|
3094
|
-
}), [
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
},
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3312
|
+
}), [renderSlot(_ctx.$slots, "minuteincrementbutton", {
|
|
3313
|
+
callbacks: $options.minuteIncrementCallbacks
|
|
3314
|
+
}, function () {
|
|
3315
|
+
return [createVNode(_component_Button, mergeProps({
|
|
3316
|
+
"class": _ctx.cx('pcIncrementButton'),
|
|
3317
|
+
"aria-label": _ctx.$primevue.config.locale.nextMinute,
|
|
3318
|
+
disabled: _ctx.disabled,
|
|
3319
|
+
unstyled: _ctx.unstyled,
|
|
3320
|
+
onMousedown: _cache[23] || (_cache[23] = function ($event) {
|
|
3321
|
+
return $options.onTimePickerElementMouseDown($event, 1, 1);
|
|
3322
|
+
}),
|
|
3323
|
+
onMouseup: _cache[24] || (_cache[24] = function ($event) {
|
|
3324
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3325
|
+
}),
|
|
3326
|
+
onKeydown: [$options.onContainerButtonKeydown, _cache[26] || (_cache[26] = withKeys(function ($event) {
|
|
3327
|
+
return $options.onTimePickerElementMouseDown($event, 1, 1);
|
|
3328
|
+
}, ["enter"])), _cache[27] || (_cache[27] = withKeys(function ($event) {
|
|
3329
|
+
return $options.onTimePickerElementMouseDown($event, 1, 1);
|
|
3330
|
+
}, ["space"]))],
|
|
3331
|
+
onMouseleave: _cache[25] || (_cache[25] = function ($event) {
|
|
3332
|
+
return $options.onTimePickerElementMouseLeave();
|
|
3333
|
+
}),
|
|
3334
|
+
onKeyup: [_cache[28] || (_cache[28] = withKeys(function ($event) {
|
|
3335
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3336
|
+
}, ["enter"])), _cache[29] || (_cache[29] = withKeys(function ($event) {
|
|
3337
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3338
|
+
}, ["space"]))]
|
|
3339
|
+
}, _ctx.timepickerButtonProps, {
|
|
3340
|
+
pt: _ctx.ptm('pcIncrementButton'),
|
|
3341
|
+
"data-pc-group-section": "timepickerbutton"
|
|
3342
|
+
}), {
|
|
3343
|
+
icon: withCtx(function (slotProps) {
|
|
3344
|
+
return [renderSlot(_ctx.$slots, "incrementicon", {}, function () {
|
|
3345
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementIcon ? 'span' : 'ChevronUpIcon'), mergeProps({
|
|
3346
|
+
"class": [_ctx.incrementIcon, slotProps["class"]]
|
|
3347
|
+
}, _ctx.ptm('pcIncrementButton')['icon'], {
|
|
3348
|
+
"data-pc-group-section": "timepickerlabel"
|
|
3349
|
+
}), null, 16, ["class"]))];
|
|
3350
|
+
})];
|
|
3351
|
+
}),
|
|
3352
|
+
_: 3
|
|
3353
|
+
}, 16, ["class", "aria-label", "disabled", "unstyled", "onKeydown", "pt"])];
|
|
3354
|
+
}), createElementVNode("span", mergeProps(_ctx.ptm('minute'), {
|
|
3133
3355
|
"data-pc-group-section": "timepickerlabel"
|
|
3134
|
-
}), toDisplayString($options.formattedCurrentMinute), 17),
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
},
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3356
|
+
}), toDisplayString($options.formattedCurrentMinute), 17), renderSlot(_ctx.$slots, "minutedecrementbutton", {
|
|
3357
|
+
callbacks: $options.minuteDecrementCallbacks
|
|
3358
|
+
}, function () {
|
|
3359
|
+
return [createVNode(_component_Button, mergeProps({
|
|
3360
|
+
"class": _ctx.cx('pcDecrementButton'),
|
|
3361
|
+
"aria-label": _ctx.$primevue.config.locale.prevMinute,
|
|
3362
|
+
disabled: _ctx.disabled,
|
|
3363
|
+
unstyled: _ctx.unstyled,
|
|
3364
|
+
onMousedown: _cache[30] || (_cache[30] = function ($event) {
|
|
3365
|
+
return $options.onTimePickerElementMouseDown($event, 1, -1);
|
|
3366
|
+
}),
|
|
3367
|
+
onMouseup: _cache[31] || (_cache[31] = function ($event) {
|
|
3368
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3369
|
+
}),
|
|
3370
|
+
onKeydown: [$options.onContainerButtonKeydown, _cache[33] || (_cache[33] = withKeys(function ($event) {
|
|
3371
|
+
return $options.onTimePickerElementMouseDown($event, 1, -1);
|
|
3372
|
+
}, ["enter"])), _cache[34] || (_cache[34] = withKeys(function ($event) {
|
|
3373
|
+
return $options.onTimePickerElementMouseDown($event, 1, -1);
|
|
3374
|
+
}, ["space"]))],
|
|
3375
|
+
onMouseleave: _cache[32] || (_cache[32] = function ($event) {
|
|
3376
|
+
return $options.onTimePickerElementMouseLeave();
|
|
3377
|
+
}),
|
|
3378
|
+
onKeyup: [_cache[35] || (_cache[35] = withKeys(function ($event) {
|
|
3379
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3380
|
+
}, ["enter"])), _cache[36] || (_cache[36] = withKeys(function ($event) {
|
|
3381
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3382
|
+
}, ["space"]))]
|
|
3383
|
+
}, _ctx.timepickerButtonProps, {
|
|
3384
|
+
pt: _ctx.ptm('pcDecrementButton'),
|
|
3385
|
+
"data-pc-group-section": "timepickerbutton"
|
|
3386
|
+
}), {
|
|
3387
|
+
icon: withCtx(function (slotProps) {
|
|
3388
|
+
return [renderSlot(_ctx.$slots, "decrementicon", {}, function () {
|
|
3389
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
|
|
3390
|
+
"class": [_ctx.decrementIcon, slotProps["class"]]
|
|
3391
|
+
}, _ctx.ptm('pcDecrementButton')['icon'], {
|
|
3392
|
+
"data-pc-group-section": "timepickerlabel"
|
|
3393
|
+
}), null, 16, ["class"]))];
|
|
3394
|
+
})];
|
|
3395
|
+
}),
|
|
3396
|
+
_: 3
|
|
3397
|
+
}, 16, ["class", "aria-label", "disabled", "unstyled", "onKeydown", "pt"])];
|
|
3398
|
+
})], 16), _ctx.showSeconds ? (openBlock(), createElementBlock("div", mergeProps({
|
|
3173
3399
|
key: 0,
|
|
3174
3400
|
"class": _ctx.cx('separatorContainer')
|
|
3175
3401
|
}, _ctx.ptm('separatorContainer'), {
|
|
@@ -3181,85 +3407,93 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3181
3407
|
"class": _ctx.cx('secondPicker')
|
|
3182
3408
|
}, _ctx.ptm('secondPicker'), {
|
|
3183
3409
|
"data-pc-group-section": "timepickerContainer"
|
|
3184
|
-
}), [
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
},
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3410
|
+
}), [renderSlot(_ctx.$slots, "secondincrementbutton", {
|
|
3411
|
+
callbacks: $options.secondIncrementCallbacks
|
|
3412
|
+
}, function () {
|
|
3413
|
+
return [createVNode(_component_Button, mergeProps({
|
|
3414
|
+
"class": _ctx.cx('pcIncrementButton'),
|
|
3415
|
+
"aria-label": _ctx.$primevue.config.locale.nextSecond,
|
|
3416
|
+
disabled: _ctx.disabled,
|
|
3417
|
+
unstyled: _ctx.unstyled,
|
|
3418
|
+
onMousedown: _cache[37] || (_cache[37] = function ($event) {
|
|
3419
|
+
return $options.onTimePickerElementMouseDown($event, 2, 1);
|
|
3420
|
+
}),
|
|
3421
|
+
onMouseup: _cache[38] || (_cache[38] = function ($event) {
|
|
3422
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3423
|
+
}),
|
|
3424
|
+
onKeydown: [$options.onContainerButtonKeydown, _cache[40] || (_cache[40] = withKeys(function ($event) {
|
|
3425
|
+
return $options.onTimePickerElementMouseDown($event, 2, 1);
|
|
3426
|
+
}, ["enter"])), _cache[41] || (_cache[41] = withKeys(function ($event) {
|
|
3427
|
+
return $options.onTimePickerElementMouseDown($event, 2, 1);
|
|
3428
|
+
}, ["space"]))],
|
|
3429
|
+
onMouseleave: _cache[39] || (_cache[39] = function ($event) {
|
|
3430
|
+
return $options.onTimePickerElementMouseLeave();
|
|
3431
|
+
}),
|
|
3432
|
+
onKeyup: [_cache[42] || (_cache[42] = withKeys(function ($event) {
|
|
3433
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3434
|
+
}, ["enter"])), _cache[43] || (_cache[43] = withKeys(function ($event) {
|
|
3435
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3436
|
+
}, ["space"]))]
|
|
3437
|
+
}, _ctx.timepickerButtonProps, {
|
|
3438
|
+
pt: _ctx.ptm('pcIncrementButton'),
|
|
3439
|
+
"data-pc-group-section": "timepickerbutton"
|
|
3440
|
+
}), {
|
|
3441
|
+
icon: withCtx(function (slotProps) {
|
|
3442
|
+
return [renderSlot(_ctx.$slots, "incrementicon", {}, function () {
|
|
3443
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementIcon ? 'span' : 'ChevronUpIcon'), mergeProps({
|
|
3444
|
+
"class": [_ctx.incrementIcon, slotProps["class"]]
|
|
3445
|
+
}, _ctx.ptm('pcIncrementButton')['icon'], {
|
|
3446
|
+
"data-pc-group-section": "timepickerlabel"
|
|
3447
|
+
}), null, 16, ["class"]))];
|
|
3448
|
+
})];
|
|
3449
|
+
}),
|
|
3450
|
+
_: 3
|
|
3451
|
+
}, 16, ["class", "aria-label", "disabled", "unstyled", "onKeydown", "pt"])];
|
|
3452
|
+
}), createElementVNode("span", mergeProps(_ctx.ptm('second'), {
|
|
3223
3453
|
"data-pc-group-section": "timepickerlabel"
|
|
3224
|
-
}), toDisplayString($options.formattedCurrentSecond), 17),
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
},
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3454
|
+
}), toDisplayString($options.formattedCurrentSecond), 17), renderSlot(_ctx.$slots, "seconddecrementbutton", {
|
|
3455
|
+
callbacks: $options.secondDecrementCallbacks
|
|
3456
|
+
}, function () {
|
|
3457
|
+
return [createVNode(_component_Button, mergeProps({
|
|
3458
|
+
"class": _ctx.cx('pcDecrementButton'),
|
|
3459
|
+
"aria-label": _ctx.$primevue.config.locale.prevSecond,
|
|
3460
|
+
disabled: _ctx.disabled,
|
|
3461
|
+
unstyled: _ctx.unstyled,
|
|
3462
|
+
onMousedown: _cache[44] || (_cache[44] = function ($event) {
|
|
3463
|
+
return $options.onTimePickerElementMouseDown($event, 2, -1);
|
|
3464
|
+
}),
|
|
3465
|
+
onMouseup: _cache[45] || (_cache[45] = function ($event) {
|
|
3466
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3467
|
+
}),
|
|
3468
|
+
onKeydown: [$options.onContainerButtonKeydown, _cache[47] || (_cache[47] = withKeys(function ($event) {
|
|
3469
|
+
return $options.onTimePickerElementMouseDown($event, 2, -1);
|
|
3470
|
+
}, ["enter"])), _cache[48] || (_cache[48] = withKeys(function ($event) {
|
|
3471
|
+
return $options.onTimePickerElementMouseDown($event, 2, -1);
|
|
3472
|
+
}, ["space"]))],
|
|
3473
|
+
onMouseleave: _cache[46] || (_cache[46] = function ($event) {
|
|
3474
|
+
return $options.onTimePickerElementMouseLeave();
|
|
3475
|
+
}),
|
|
3476
|
+
onKeyup: [_cache[49] || (_cache[49] = withKeys(function ($event) {
|
|
3477
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3478
|
+
}, ["enter"])), _cache[50] || (_cache[50] = withKeys(function ($event) {
|
|
3479
|
+
return $options.onTimePickerElementMouseUp($event);
|
|
3480
|
+
}, ["space"]))]
|
|
3481
|
+
}, _ctx.timepickerButtonProps, {
|
|
3482
|
+
pt: _ctx.ptm('pcDecrementButton'),
|
|
3483
|
+
"data-pc-group-section": "timepickerbutton"
|
|
3484
|
+
}), {
|
|
3485
|
+
icon: withCtx(function (slotProps) {
|
|
3486
|
+
return [renderSlot(_ctx.$slots, "decrementicon", {}, function () {
|
|
3487
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
|
|
3488
|
+
"class": [_ctx.decrementIcon, slotProps["class"]]
|
|
3489
|
+
}, _ctx.ptm('pcDecrementButton')['icon'], {
|
|
3490
|
+
"data-pc-group-section": "timepickerlabel"
|
|
3491
|
+
}), null, 16, ["class"]))];
|
|
3492
|
+
})];
|
|
3493
|
+
}),
|
|
3494
|
+
_: 3
|
|
3495
|
+
}, 16, ["class", "aria-label", "disabled", "unstyled", "onKeydown", "pt"])];
|
|
3496
|
+
})], 16)) : createCommentVNode("", true), _ctx.hourFormat == '12' ? (openBlock(), createElementBlock("div", mergeProps({
|
|
3263
3497
|
key: 2,
|
|
3264
3498
|
"class": _ctx.cx('separatorContainer')
|
|
3265
3499
|
}, _ctx.ptm('separatorContainer'), {
|
|
@@ -3269,83 +3503,119 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3269
3503
|
}), toDisplayString(_ctx.timeSeparator), 17)], 16)) : createCommentVNode("", true), _ctx.hourFormat == '12' ? (openBlock(), createElementBlock("div", mergeProps({
|
|
3270
3504
|
key: 3,
|
|
3271
3505
|
"class": _ctx.cx('ampmPicker')
|
|
3272
|
-
}, _ctx.ptm('ampmPicker')), [
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3506
|
+
}, _ctx.ptm('ampmPicker')), [renderSlot(_ctx.$slots, "ampmincrementbutton", {
|
|
3507
|
+
toggleCallback: function toggleCallback(event) {
|
|
3508
|
+
return $options.toggleAMPM(event);
|
|
3509
|
+
},
|
|
3510
|
+
keydownCallback: function keydownCallback(event) {
|
|
3511
|
+
return $options.onContainerButtonKeydown(event);
|
|
3512
|
+
}
|
|
3513
|
+
}, function () {
|
|
3514
|
+
return [createVNode(_component_Button, mergeProps({
|
|
3515
|
+
"class": _ctx.cx('pcIncrementButton'),
|
|
3516
|
+
"aria-label": _ctx.$primevue.config.locale.am,
|
|
3517
|
+
disabled: _ctx.disabled,
|
|
3518
|
+
unstyled: _ctx.unstyled,
|
|
3519
|
+
onClick: _cache[51] || (_cache[51] = function ($event) {
|
|
3520
|
+
return $options.toggleAMPM($event);
|
|
3521
|
+
}),
|
|
3522
|
+
onKeydown: $options.onContainerButtonKeydown
|
|
3523
|
+
}, _ctx.timepickerButtonProps, {
|
|
3524
|
+
pt: _ctx.ptm('pcIncrementButton'),
|
|
3525
|
+
"data-pc-group-section": "timepickerbutton"
|
|
3526
|
+
}), {
|
|
3527
|
+
icon: withCtx(function (slotProps) {
|
|
3528
|
+
return [renderSlot(_ctx.$slots, "incrementicon", {
|
|
3529
|
+
"class": normalizeClass(_ctx.cx('incrementIcon'))
|
|
3530
|
+
}, function () {
|
|
3531
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementIcon ? 'span' : 'ChevronUpIcon'), mergeProps({
|
|
3532
|
+
"class": [_ctx.cx('incrementIcon'), slotProps["class"]]
|
|
3533
|
+
}, _ctx.ptm('pcIncrementButton')['icon'], {
|
|
3534
|
+
"data-pc-group-section": "timepickerlabel"
|
|
3535
|
+
}), null, 16, ["class"]))];
|
|
3536
|
+
})];
|
|
3537
|
+
}),
|
|
3538
|
+
_: 3
|
|
3539
|
+
}, 16, ["class", "aria-label", "disabled", "unstyled", "onKeydown", "pt"])];
|
|
3540
|
+
}), createElementVNode("span", mergeProps(_ctx.ptm('ampm'), {
|
|
3298
3541
|
"data-pc-group-section": "timepickerlabel"
|
|
3299
|
-
}), toDisplayString($data.pm ? _ctx.$primevue.config.locale.pm : _ctx.$primevue.config.locale.am), 17),
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
return $options.
|
|
3305
|
-
}
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3542
|
+
}), toDisplayString($data.pm ? _ctx.$primevue.config.locale.pm : _ctx.$primevue.config.locale.am), 17), renderSlot(_ctx.$slots, "ampmdecrementbutton", {
|
|
3543
|
+
toggleCallback: function toggleCallback(event) {
|
|
3544
|
+
return $options.toggleAMPM(event);
|
|
3545
|
+
},
|
|
3546
|
+
keydownCallback: function keydownCallback(event) {
|
|
3547
|
+
return $options.onContainerButtonKeydown(event);
|
|
3548
|
+
}
|
|
3549
|
+
}, function () {
|
|
3550
|
+
return [createVNode(_component_Button, mergeProps({
|
|
3551
|
+
"class": _ctx.cx('pcDecrementButton'),
|
|
3552
|
+
"aria-label": _ctx.$primevue.config.locale.pm,
|
|
3553
|
+
disabled: _ctx.disabled,
|
|
3554
|
+
onClick: _cache[52] || (_cache[52] = function ($event) {
|
|
3555
|
+
return $options.toggleAMPM($event);
|
|
3556
|
+
}),
|
|
3557
|
+
onKeydown: $options.onContainerButtonKeydown
|
|
3558
|
+
}, _ctx.timepickerButtonProps, {
|
|
3559
|
+
pt: _ctx.ptm('pcDecrementButton'),
|
|
3560
|
+
"data-pc-group-section": "timepickerbutton"
|
|
3561
|
+
}), {
|
|
3562
|
+
icon: withCtx(function (slotProps) {
|
|
3563
|
+
return [renderSlot(_ctx.$slots, "decrementicon", {
|
|
3564
|
+
"class": normalizeClass(_ctx.cx('decrementIcon'))
|
|
3565
|
+
}, function () {
|
|
3566
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
|
|
3567
|
+
"class": [_ctx.cx('decrementIcon'), slotProps["class"]]
|
|
3568
|
+
}, _ctx.ptm('pcDecrementButton')['icon'], {
|
|
3569
|
+
"data-pc-group-section": "timepickerlabel"
|
|
3570
|
+
}), null, 16, ["class"]))];
|
|
3571
|
+
})];
|
|
3572
|
+
}),
|
|
3573
|
+
_: 3
|
|
3574
|
+
}, 16, ["class", "aria-label", "disabled", "onKeydown", "pt"])];
|
|
3575
|
+
})], 16)) : createCommentVNode("", true)], 16, _hoisted_16)) : createCommentVNode("", true), _ctx.showButtonBar ? (openBlock(), createElementBlock("div", mergeProps({
|
|
3324
3576
|
key: 2,
|
|
3325
3577
|
"class": _ctx.cx('buttonbar')
|
|
3326
|
-
}, _ctx.ptm('buttonbar')), [
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3578
|
+
}, _ctx.ptm('buttonbar')), [renderSlot(_ctx.$slots, "todaybutton", {
|
|
3579
|
+
actionCallback: function actionCallback(event) {
|
|
3580
|
+
return $options.onTodayButtonClick(event);
|
|
3581
|
+
},
|
|
3582
|
+
keydownCallback: function keydownCallback(event) {
|
|
3583
|
+
return $options.onContainerButtonKeydown(event);
|
|
3584
|
+
}
|
|
3585
|
+
}, function () {
|
|
3586
|
+
return [createVNode(_component_Button, mergeProps({
|
|
3587
|
+
label: $options.todayLabel,
|
|
3588
|
+
onClick: _cache[53] || (_cache[53] = function ($event) {
|
|
3589
|
+
return $options.onTodayButtonClick($event);
|
|
3590
|
+
}),
|
|
3591
|
+
"class": _ctx.cx('pcTodayButton'),
|
|
3592
|
+
unstyled: _ctx.unstyled,
|
|
3593
|
+
onKeydown: $options.onContainerButtonKeydown
|
|
3594
|
+
}, _ctx.todayButtonProps, {
|
|
3595
|
+
pt: _ctx.ptm('pcTodayButton'),
|
|
3596
|
+
"data-pc-group-section": "button"
|
|
3597
|
+
}), null, 16, ["label", "class", "unstyled", "onKeydown", "pt"])];
|
|
3598
|
+
}), renderSlot(_ctx.$slots, "clearbutton", {
|
|
3599
|
+
actionCallback: function actionCallback(event) {
|
|
3600
|
+
return $options.onClearButtonClick(event);
|
|
3601
|
+
},
|
|
3602
|
+
keydownCallback: function keydownCallback(event) {
|
|
3603
|
+
return $options.onContainerButtonKeydown(event);
|
|
3604
|
+
}
|
|
3605
|
+
}, function () {
|
|
3606
|
+
return [createVNode(_component_Button, mergeProps({
|
|
3607
|
+
label: $options.clearLabel,
|
|
3608
|
+
onClick: _cache[54] || (_cache[54] = function ($event) {
|
|
3609
|
+
return $options.onClearButtonClick($event);
|
|
3610
|
+
}),
|
|
3611
|
+
"class": _ctx.cx('pcClearButton'),
|
|
3612
|
+
unstyled: _ctx.unstyled,
|
|
3613
|
+
onKeydown: $options.onContainerButtonKeydown
|
|
3614
|
+
}, _ctx.clearButtonProps, {
|
|
3615
|
+
pt: _ctx.ptm('pcClearButton'),
|
|
3616
|
+
"data-pc-group-section": "button"
|
|
3617
|
+
}), null, 16, ["label", "class", "unstyled", "onKeydown", "pt"])];
|
|
3618
|
+
})], 16)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "footer")], 16, _hoisted_4)) : createCommentVNode("", true)];
|
|
3349
3619
|
}),
|
|
3350
3620
|
_: 3
|
|
3351
3621
|
}, 16, ["onAfterEnter", "onAfterLeave", "onLeave"])];
|