primevue 4.3.3 → 4.3.5
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/accordion/index.mjs +4 -2
- package/accordion/index.mjs.map +1 -1
- 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 +4 -1
- package/autocomplete/index.d.ts +4 -0
- package/autocomplete/index.mjs +38 -31
- package/autocomplete/index.mjs.map +1 -1
- package/breadcrumb/index.mjs +4 -2
- package/breadcrumb/index.mjs.map +1 -1
- package/carousel/index.mjs +10 -5
- package/carousel/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +3 -0
- package/cascadeselect/CascadeSelectSub.vue +1 -1
- package/cascadeselect/index.mjs +31 -23
- package/cascadeselect/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +4 -0
- package/colorpicker/index.mjs +4 -0
- 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 +28 -20
- package/contextmenu/index.mjs.map +1 -1
- package/datatable/ColumnFilter.vue +2 -2
- package/datatable/DataTable.vue +7 -3
- package/datatable/index.d.ts +2 -2
- package/datatable/index.mjs +48 -40
- package/datatable/index.mjs.map +1 -1
- package/datatable/style/index.mjs +4 -4
- package/datatable/style/index.mjs.map +1 -1
- package/dataview/index.d.ts +5 -5
- package/datepicker/DatePicker.vue +10 -3
- package/datepicker/index.mjs +123 -84
- package/datepicker/index.mjs.map +1 -1
- package/dock/index.mjs +8 -4
- package/dock/index.mjs.map +1 -1
- package/dynamicdialog/index.mjs +6 -3
- package/dynamicdialog/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +2 -3
- package/fileupload/index.mjs +20 -15
- package/fileupload/index.mjs.map +1 -1
- package/floatlabel/index.d.ts +1 -1
- package/galleria/index.mjs +8 -4
- 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/inputchips/index.mjs +2 -1
- package/inputchips/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/InputNumber.vue +1 -1
- package/inputnumber/index.mjs +2 -2
- package/inputnumber/index.mjs.map +1 -1
- package/inputtext/index.d.ts +2 -1
- package/listbox/Listbox.vue +1 -0
- package/listbox/index.mjs +35 -30
- package/listbox/index.mjs.map +1 -1
- package/megamenu/index.d.ts +1 -1
- package/megamenu/index.mjs +33 -22
- package/megamenu/index.mjs.map +1 -1
- package/menu/Menu.vue +4 -4
- package/menu/index.d.ts +3 -12
- package/menu/index.mjs +10 -7
- package/menu/index.mjs.map +1 -1
- package/menubar/index.mjs +30 -23
- package/menubar/index.mjs.map +1 -1
- package/metergroup/index.d.ts +1 -1
- package/metergroup/index.mjs +10 -5
- package/metergroup/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +4 -1
- package/multiselect/index.d.ts +1 -1
- package/multiselect/index.mjs +59 -52
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/OrganizationChartNode.vue +1 -1
- package/organizationchart/index.mjs +6 -3
- 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/index.mjs +10 -4
- 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/index.mjs +45 -24
- package/panelmenu/index.mjs.map +1 -1
- package/password/Password.vue +8 -3
- package/password/index.d.ts +1 -1
- package/password/index.mjs +18 -9
- package/password/index.mjs.map +1 -1
- package/rating/index.mjs +10 -5
- package/rating/index.mjs.map +1 -1
- package/select/Select.vue +21 -3
- package/select/index.mjs +66 -42
- package/select/index.mjs.map +1 -1
- package/selectbutton/index.d.ts +0 -24
- package/speeddial/index.mjs +6 -3
- package/speeddial/index.mjs.map +1 -1
- package/splitter/Splitter.vue +2 -2
- package/splitter/index.d.ts +1 -1
- package/splitter/index.mjs +5 -3
- 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 +2 -2
- package/step/index.mjs +2 -2
- package/step/index.mjs.map +1 -1
- package/steppanel/StepPanel.vue +2 -2
- package/steppanel/index.mjs +2 -2
- package/steppanel/index.mjs.map +1 -1
- package/steps/index.mjs +8 -4
- package/steps/index.mjs.map +1 -1
- package/tabmenu/index.mjs +8 -2
- package/tabmenu/index.mjs.map +1 -1
- package/tabview/index.mjs +8 -4
- package/tabview/index.mjs.map +1 -1
- package/terminal/index.mjs +8 -4
- package/terminal/index.mjs.map +1 -1
- package/textarea/index.d.ts +2 -1
- package/tieredmenu/index.mjs +30 -21
- package/tieredmenu/index.mjs.map +1 -1
- package/timeline/index.mjs +12 -6
- package/timeline/index.mjs.map +1 -1
- package/toast/ToastMessage.vue +1 -1
- package/toast/index.mjs +1 -1
- package/toast/index.mjs.map +1 -1
- package/toggleswitch/style/index.d.ts +1 -5
- package/tooltip/index.mjs +25 -14
- package/tooltip/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +3 -0
- package/treeselect/index.mjs +5 -1
- package/treeselect/index.mjs.map +1 -1
- package/treetable/index.mjs +2 -1
- package/treetable/index.mjs.map +1 -1
- package/umd/primevue.min.js +12213 -1
- package/virtualscroller/VirtualScroller.vue +4 -1
- package/virtualscroller/index.mjs +21 -19
- package/virtualscroller/index.mjs.map +1 -1
- package/web-types.json +1 -1
package/datepicker/index.mjs
CHANGED
|
@@ -589,6 +589,9 @@ var script = {
|
|
|
589
589
|
if (this.autoZIndex) {
|
|
590
590
|
ZIndex.set('overlay', el, this.baseZIndex || this.$primevue.config.zIndex.overlay);
|
|
591
591
|
}
|
|
592
|
+
|
|
593
|
+
// Issue: #7508
|
|
594
|
+
this.$attrSelector && el.setAttribute(this.$attrSelector, '');
|
|
592
595
|
this.alignOverlay();
|
|
593
596
|
this.$emit('show');
|
|
594
597
|
},
|
|
@@ -1144,7 +1147,7 @@ var script = {
|
|
|
1144
1147
|
event.preventDefault();
|
|
1145
1148
|
},
|
|
1146
1149
|
onClearButtonClick: function onClearButtonClick(event) {
|
|
1147
|
-
this.updateModel(null);
|
|
1150
|
+
this.updateModel(this.$formDefaultValue || null);
|
|
1148
1151
|
this.overlayVisible = false;
|
|
1149
1152
|
this.$emit('clear-click', event);
|
|
1150
1153
|
event.preventDefault();
|
|
@@ -1191,11 +1194,11 @@ var script = {
|
|
|
1191
1194
|
}
|
|
1192
1195
|
},
|
|
1193
1196
|
repeat: function repeat(event, interval, type, direction) {
|
|
1194
|
-
var
|
|
1197
|
+
var _this0 = this;
|
|
1195
1198
|
var i = interval || 500;
|
|
1196
1199
|
this.clearTimePickerTimer();
|
|
1197
1200
|
this.timePickerTimer = setTimeout(function () {
|
|
1198
|
-
|
|
1201
|
+
_this0.repeat(event, 100, type, direction);
|
|
1199
1202
|
}, i);
|
|
1200
1203
|
switch (type) {
|
|
1201
1204
|
case 0:
|
|
@@ -1325,7 +1328,7 @@ var script = {
|
|
|
1325
1328
|
event.preventDefault();
|
|
1326
1329
|
},
|
|
1327
1330
|
updateModelTime: function updateModelTime() {
|
|
1328
|
-
var
|
|
1331
|
+
var _this1 = this;
|
|
1329
1332
|
this.timePickerChange = true;
|
|
1330
1333
|
var value = this.isComparable() ? this.d_value : this.viewDate;
|
|
1331
1334
|
if (this.isRangeSelection()) {
|
|
@@ -1351,7 +1354,7 @@ var script = {
|
|
|
1351
1354
|
this.updateModel(value);
|
|
1352
1355
|
this.$emit('date-select', value);
|
|
1353
1356
|
setTimeout(function () {
|
|
1354
|
-
return
|
|
1357
|
+
return _this1.timePickerChange = false;
|
|
1355
1358
|
}, 0);
|
|
1356
1359
|
},
|
|
1357
1360
|
toggleAMPM: function toggleAMPM(event) {
|
|
@@ -1413,7 +1416,7 @@ var script = {
|
|
|
1413
1416
|
}
|
|
1414
1417
|
},
|
|
1415
1418
|
isValidSelection: function isValidSelection(value) {
|
|
1416
|
-
var
|
|
1419
|
+
var _this10 = this;
|
|
1417
1420
|
if (value == null) {
|
|
1418
1421
|
return true;
|
|
1419
1422
|
}
|
|
@@ -1423,7 +1426,7 @@ var script = {
|
|
|
1423
1426
|
isValid = false;
|
|
1424
1427
|
}
|
|
1425
1428
|
} else if (value.every(function (v) {
|
|
1426
|
-
return
|
|
1429
|
+
return _this10.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
|
|
1427
1430
|
})) {
|
|
1428
1431
|
if (this.isRangeSelection()) {
|
|
1429
1432
|
isValid = value.length > 1 && value[1] >= value[0];
|
|
@@ -2082,7 +2085,11 @@ var script = {
|
|
|
2082
2085
|
if (this.navigationState) {
|
|
2083
2086
|
if (this.navigationState.button) {
|
|
2084
2087
|
this.initFocusableCell();
|
|
2085
|
-
if (this.navigationState.backward)
|
|
2088
|
+
if (this.navigationState.backward) {
|
|
2089
|
+
this.previousButton && this.previousButton.focus();
|
|
2090
|
+
} else {
|
|
2091
|
+
this.nextButton && this.nextButton.focus();
|
|
2092
|
+
}
|
|
2086
2093
|
} else {
|
|
2087
2094
|
if (this.navigationState.backward) {
|
|
2088
2095
|
var cells;
|
|
@@ -2475,20 +2482,20 @@ var script = {
|
|
|
2475
2482
|
return this.dateFormat || this.$primevue.config.locale.dateFormat;
|
|
2476
2483
|
},
|
|
2477
2484
|
monthPickerValues: function monthPickerValues() {
|
|
2478
|
-
var
|
|
2485
|
+
var _this11 = this;
|
|
2479
2486
|
var monthPickerValues = [];
|
|
2480
2487
|
var isSelectableMonth = function isSelectableMonth(baseMonth) {
|
|
2481
|
-
if (
|
|
2482
|
-
var minMonth =
|
|
2483
|
-
var minYear =
|
|
2484
|
-
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) {
|
|
2485
2492
|
return false;
|
|
2486
2493
|
}
|
|
2487
2494
|
}
|
|
2488
|
-
if (
|
|
2489
|
-
var maxMonth =
|
|
2490
|
-
var maxYear =
|
|
2491
|
-
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) {
|
|
2492
2499
|
return false;
|
|
2493
2500
|
}
|
|
2494
2501
|
}
|
|
@@ -2503,15 +2510,15 @@ var script = {
|
|
|
2503
2510
|
return monthPickerValues;
|
|
2504
2511
|
},
|
|
2505
2512
|
yearPickerValues: function yearPickerValues() {
|
|
2506
|
-
var
|
|
2513
|
+
var _this12 = this;
|
|
2507
2514
|
var yearPickerValues = [];
|
|
2508
2515
|
var base = this.currentYear - this.currentYear % 10;
|
|
2509
2516
|
var isSelectableYear = function isSelectableYear(baseYear) {
|
|
2510
|
-
if (
|
|
2511
|
-
if (
|
|
2517
|
+
if (_this12.minDate) {
|
|
2518
|
+
if (_this12.minDate.getFullYear() > baseYear) return false;
|
|
2512
2519
|
}
|
|
2513
|
-
if (
|
|
2514
|
-
if (
|
|
2520
|
+
if (_this12.maxDate) {
|
|
2521
|
+
if (_this12.maxDate.getFullYear() < baseYear) return false;
|
|
2515
2522
|
}
|
|
2516
2523
|
return true;
|
|
2517
2524
|
};
|
|
@@ -2572,122 +2579,122 @@ var script = {
|
|
|
2572
2579
|
});
|
|
2573
2580
|
},
|
|
2574
2581
|
hourIncrementCallbacks: function hourIncrementCallbacks() {
|
|
2575
|
-
var
|
|
2582
|
+
var _this13 = this;
|
|
2576
2583
|
return {
|
|
2577
2584
|
mousedown: function mousedown(event) {
|
|
2578
|
-
return
|
|
2585
|
+
return _this13.onTimePickerElementMouseDown(event, 0, 1);
|
|
2579
2586
|
},
|
|
2580
2587
|
mouseup: function mouseup(event) {
|
|
2581
|
-
return
|
|
2588
|
+
return _this13.onTimePickerElementMouseUp(event);
|
|
2582
2589
|
},
|
|
2583
2590
|
mouseleave: function mouseleave() {
|
|
2584
|
-
return
|
|
2591
|
+
return _this13.onTimePickerElementMouseLeave();
|
|
2585
2592
|
},
|
|
2586
2593
|
keydown: function keydown(event) {
|
|
2587
|
-
return
|
|
2594
|
+
return _this13.onTimePickerElementKeyDown(event, 0, 1);
|
|
2588
2595
|
},
|
|
2589
2596
|
keyup: function keyup(event) {
|
|
2590
|
-
return
|
|
2597
|
+
return _this13.onTimePickerElementKeyUp(event);
|
|
2591
2598
|
}
|
|
2592
2599
|
};
|
|
2593
2600
|
},
|
|
2594
2601
|
hourDecrementCallbacks: function hourDecrementCallbacks() {
|
|
2595
|
-
var
|
|
2602
|
+
var _this14 = this;
|
|
2596
2603
|
return {
|
|
2597
2604
|
mousedown: function mousedown(event) {
|
|
2598
|
-
return
|
|
2605
|
+
return _this14.onTimePickerElementMouseDown(event, 0, -1);
|
|
2599
2606
|
},
|
|
2600
2607
|
mouseup: function mouseup(event) {
|
|
2601
|
-
return
|
|
2608
|
+
return _this14.onTimePickerElementMouseUp(event);
|
|
2602
2609
|
},
|
|
2603
2610
|
mouseleave: function mouseleave() {
|
|
2604
|
-
return
|
|
2611
|
+
return _this14.onTimePickerElementMouseLeave();
|
|
2605
2612
|
},
|
|
2606
2613
|
keydown: function keydown(event) {
|
|
2607
|
-
return
|
|
2614
|
+
return _this14.onTimePickerElementKeyDown(event, 0, -1);
|
|
2608
2615
|
},
|
|
2609
2616
|
keyup: function keyup(event) {
|
|
2610
|
-
return
|
|
2617
|
+
return _this14.onTimePickerElementKeyUp(event);
|
|
2611
2618
|
}
|
|
2612
2619
|
};
|
|
2613
2620
|
},
|
|
2614
2621
|
minuteIncrementCallbacks: function minuteIncrementCallbacks() {
|
|
2615
|
-
var
|
|
2622
|
+
var _this15 = this;
|
|
2616
2623
|
return {
|
|
2617
2624
|
mousedown: function mousedown(event) {
|
|
2618
|
-
return
|
|
2625
|
+
return _this15.onTimePickerElementMouseDown(event, 1, 1);
|
|
2619
2626
|
},
|
|
2620
2627
|
mouseup: function mouseup(event) {
|
|
2621
|
-
return
|
|
2628
|
+
return _this15.onTimePickerElementMouseUp(event);
|
|
2622
2629
|
},
|
|
2623
2630
|
mouseleave: function mouseleave() {
|
|
2624
|
-
return
|
|
2631
|
+
return _this15.onTimePickerElementMouseLeave();
|
|
2625
2632
|
},
|
|
2626
2633
|
keydown: function keydown(event) {
|
|
2627
|
-
return
|
|
2634
|
+
return _this15.onTimePickerElementKeyDown(event, 1, 1);
|
|
2628
2635
|
},
|
|
2629
2636
|
keyup: function keyup(event) {
|
|
2630
|
-
return
|
|
2637
|
+
return _this15.onTimePickerElementKeyUp(event);
|
|
2631
2638
|
}
|
|
2632
2639
|
};
|
|
2633
2640
|
},
|
|
2634
2641
|
minuteDecrementCallbacks: function minuteDecrementCallbacks() {
|
|
2635
|
-
var
|
|
2642
|
+
var _this16 = this;
|
|
2636
2643
|
return {
|
|
2637
2644
|
mousedown: function mousedown(event) {
|
|
2638
|
-
return
|
|
2645
|
+
return _this16.onTimePickerElementMouseDown(event, 1, -1);
|
|
2639
2646
|
},
|
|
2640
2647
|
mouseup: function mouseup(event) {
|
|
2641
|
-
return
|
|
2648
|
+
return _this16.onTimePickerElementMouseUp(event);
|
|
2642
2649
|
},
|
|
2643
2650
|
mouseleave: function mouseleave() {
|
|
2644
|
-
return
|
|
2651
|
+
return _this16.onTimePickerElementMouseLeave();
|
|
2645
2652
|
},
|
|
2646
2653
|
keydown: function keydown(event) {
|
|
2647
|
-
return
|
|
2654
|
+
return _this16.onTimePickerElementKeyDown(event, 1, -1);
|
|
2648
2655
|
},
|
|
2649
2656
|
keyup: function keyup(event) {
|
|
2650
|
-
return
|
|
2657
|
+
return _this16.onTimePickerElementKeyUp(event);
|
|
2651
2658
|
}
|
|
2652
2659
|
};
|
|
2653
2660
|
},
|
|
2654
2661
|
secondIncrementCallbacks: function secondIncrementCallbacks() {
|
|
2655
|
-
var
|
|
2662
|
+
var _this17 = this;
|
|
2656
2663
|
return {
|
|
2657
2664
|
mousedown: function mousedown(event) {
|
|
2658
|
-
return
|
|
2665
|
+
return _this17.onTimePickerElementMouseDown(event, 2, 1);
|
|
2659
2666
|
},
|
|
2660
2667
|
mouseup: function mouseup(event) {
|
|
2661
|
-
return
|
|
2668
|
+
return _this17.onTimePickerElementMouseUp(event);
|
|
2662
2669
|
},
|
|
2663
2670
|
mouseleave: function mouseleave() {
|
|
2664
|
-
return
|
|
2671
|
+
return _this17.onTimePickerElementMouseLeave();
|
|
2665
2672
|
},
|
|
2666
2673
|
keydown: function keydown(event) {
|
|
2667
|
-
return
|
|
2674
|
+
return _this17.onTimePickerElementKeyDown(event, 2, 1);
|
|
2668
2675
|
},
|
|
2669
2676
|
keyup: function keyup(event) {
|
|
2670
|
-
return
|
|
2677
|
+
return _this17.onTimePickerElementKeyUp(event);
|
|
2671
2678
|
}
|
|
2672
2679
|
};
|
|
2673
2680
|
},
|
|
2674
2681
|
secondDecrementCallbacks: function secondDecrementCallbacks() {
|
|
2675
|
-
var
|
|
2682
|
+
var _this18 = this;
|
|
2676
2683
|
return {
|
|
2677
2684
|
mousedown: function mousedown(event) {
|
|
2678
|
-
return
|
|
2685
|
+
return _this18.onTimePickerElementMouseDown(event, 2, -1);
|
|
2679
2686
|
},
|
|
2680
2687
|
mouseup: function mouseup(event) {
|
|
2681
|
-
return
|
|
2688
|
+
return _this18.onTimePickerElementMouseUp(event);
|
|
2682
2689
|
},
|
|
2683
2690
|
mouseleave: function mouseleave() {
|
|
2684
|
-
return
|
|
2691
|
+
return _this18.onTimePickerElementMouseLeave();
|
|
2685
2692
|
},
|
|
2686
2693
|
keydown: function keydown(event) {
|
|
2687
|
-
return
|
|
2694
|
+
return _this18.onTimePickerElementKeyDown(event, 2, -1);
|
|
2688
2695
|
},
|
|
2689
2696
|
keyup: function keyup(event) {
|
|
2690
|
-
return
|
|
2697
|
+
return _this18.onTimePickerElementKeyUp(event);
|
|
2691
2698
|
}
|
|
2692
2699
|
};
|
|
2693
2700
|
}
|
|
@@ -2767,7 +2774,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2767
2774
|
onKeydown: $options.onKeyDown,
|
|
2768
2775
|
"data-p-has-dropdown": _ctx.showIcon && _ctx.iconDisplay === 'button' && !_ctx.inline,
|
|
2769
2776
|
"data-p-has-e-icon": _ctx.showIcon && _ctx.iconDisplay === 'input' && !_ctx.inline,
|
|
2770
|
-
pt: _ctx.ptm('pcInputText')
|
|
2777
|
+
pt: _ctx.ptm('pcInputText'),
|
|
2778
|
+
formControl: {
|
|
2779
|
+
novalidate: true
|
|
2780
|
+
}
|
|
2771
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", {
|
|
2772
2782
|
key: 1,
|
|
2773
2783
|
toggleCallback: $options.onButtonClick
|
|
@@ -2845,10 +2855,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2845
2855
|
}, _ctx.ptm('calendarContainer')), [(openBlock(true), createElementBlock(Fragment, null, renderList($options.months, function (month, groupIndex) {
|
|
2846
2856
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
2847
2857
|
key: month.month + month.year,
|
|
2848
|
-
"class": _ctx.cx('calendar')
|
|
2858
|
+
"class": _ctx.cx('calendar')
|
|
2859
|
+
}, {
|
|
2849
2860
|
ref_for: true
|
|
2850
2861
|
}, _ctx.ptm('calendar')), [createElementVNode("div", mergeProps({
|
|
2851
|
-
"class": _ctx.cx('header')
|
|
2862
|
+
"class": _ctx.cx('header')
|
|
2863
|
+
}, {
|
|
2852
2864
|
ref_for: true
|
|
2853
2865
|
}, _ctx.ptm('header')), [renderSlot(_ctx.$slots, "header"), renderSlot(_ctx.$slots, "prevbutton", {
|
|
2854
2866
|
actionCallback: function actionCallback(event) {
|
|
@@ -2867,6 +2879,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2867
2879
|
unstyled: _ctx.unstyled,
|
|
2868
2880
|
onClick: $options.onPrevButtonClick,
|
|
2869
2881
|
onKeydown: $options.onContainerButtonKeydown
|
|
2882
|
+
}, {
|
|
2883
|
+
ref_for: true
|
|
2870
2884
|
}, _ctx.navigatorButtonProps, {
|
|
2871
2885
|
pt: _ctx.ptm('pcPrevButton'),
|
|
2872
2886
|
"data-pc-group-section": "navigator"
|
|
@@ -2874,7 +2888,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2874
2888
|
icon: withCtx(function (slotProps) {
|
|
2875
2889
|
return [renderSlot(_ctx.$slots, "previcon", {}, function () {
|
|
2876
2890
|
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.prevIcon ? 'span' : 'ChevronLeftIcon'), mergeProps({
|
|
2877
|
-
"class": [_ctx.prevIcon, slotProps["class"]]
|
|
2891
|
+
"class": [_ctx.prevIcon, slotProps["class"]]
|
|
2892
|
+
}, {
|
|
2878
2893
|
ref_for: true
|
|
2879
2894
|
}, _ctx.ptm('pcPrevButton')['icon']), null, 16, ["class"]))];
|
|
2880
2895
|
})];
|
|
@@ -2882,7 +2897,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2882
2897
|
_: 2
|
|
2883
2898
|
}, 1040, ["class", "disabled", "aria-label", "unstyled", "onClick", "onKeydown", "pt"]), [[vShow, groupIndex === 0]])];
|
|
2884
2899
|
}), createElementVNode("div", mergeProps({
|
|
2885
|
-
"class": _ctx.cx('title')
|
|
2900
|
+
"class": _ctx.cx('title')
|
|
2901
|
+
}, {
|
|
2886
2902
|
ref_for: true
|
|
2887
2903
|
}, _ctx.ptm('title')), [_ctx.$primevue.config.locale.showMonthAfterYear ? (openBlock(), createElementBlock(Fragment, {
|
|
2888
2904
|
key: 0
|
|
@@ -2897,7 +2913,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2897
2913
|
}),
|
|
2898
2914
|
"class": _ctx.cx('selectYear'),
|
|
2899
2915
|
disabled: $options.switchViewButtonDisabled,
|
|
2900
|
-
"aria-label": _ctx.$primevue.config.locale.chooseYear
|
|
2916
|
+
"aria-label": _ctx.$primevue.config.locale.chooseYear
|
|
2917
|
+
}, {
|
|
2901
2918
|
ref_for: true
|
|
2902
2919
|
}, _ctx.ptm('selectYear'), {
|
|
2903
2920
|
"data-pc-group-section": "view"
|
|
@@ -2912,7 +2929,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2912
2929
|
}),
|
|
2913
2930
|
"class": _ctx.cx('selectMonth'),
|
|
2914
2931
|
disabled: $options.switchViewButtonDisabled,
|
|
2915
|
-
"aria-label": _ctx.$primevue.config.locale.chooseMonth
|
|
2932
|
+
"aria-label": _ctx.$primevue.config.locale.chooseMonth
|
|
2933
|
+
}, {
|
|
2916
2934
|
ref_for: true
|
|
2917
2935
|
}, _ctx.ptm('selectMonth'), {
|
|
2918
2936
|
"data-pc-group-section": "view"
|
|
@@ -2929,7 +2947,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2929
2947
|
}),
|
|
2930
2948
|
"class": _ctx.cx('selectMonth'),
|
|
2931
2949
|
disabled: $options.switchViewButtonDisabled,
|
|
2932
|
-
"aria-label": _ctx.$primevue.config.locale.chooseMonth
|
|
2950
|
+
"aria-label": _ctx.$primevue.config.locale.chooseMonth
|
|
2951
|
+
}, {
|
|
2933
2952
|
ref_for: true
|
|
2934
2953
|
}, _ctx.ptm('selectMonth'), {
|
|
2935
2954
|
"data-pc-group-section": "view"
|
|
@@ -2944,13 +2963,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2944
2963
|
}),
|
|
2945
2964
|
"class": _ctx.cx('selectYear'),
|
|
2946
2965
|
disabled: $options.switchViewButtonDisabled,
|
|
2947
|
-
"aria-label": _ctx.$primevue.config.locale.chooseYear
|
|
2966
|
+
"aria-label": _ctx.$primevue.config.locale.chooseYear
|
|
2967
|
+
}, {
|
|
2948
2968
|
ref_for: true
|
|
2949
2969
|
}, _ctx.ptm('selectYear'), {
|
|
2950
2970
|
"data-pc-group-section": "view"
|
|
2951
2971
|
}), toDisplayString($options.getYear(month)), 17, _hoisted_8)) : createCommentVNode("", true)], 64)), $data.currentView === 'year' ? (openBlock(), createElementBlock("span", mergeProps({
|
|
2952
2972
|
key: 2,
|
|
2953
|
-
"class": _ctx.cx('decade')
|
|
2973
|
+
"class": _ctx.cx('decade')
|
|
2974
|
+
}, {
|
|
2954
2975
|
ref_for: true
|
|
2955
2976
|
}, _ctx.ptm('decade')), [renderSlot(_ctx.$slots, "decade", {
|
|
2956
2977
|
years: $options.yearPickerValues
|
|
@@ -2973,6 +2994,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2973
2994
|
unstyled: _ctx.unstyled,
|
|
2974
2995
|
onClick: $options.onNextButtonClick,
|
|
2975
2996
|
onKeydown: $options.onContainerButtonKeydown
|
|
2997
|
+
}, {
|
|
2998
|
+
ref_for: true
|
|
2976
2999
|
}, _ctx.navigatorButtonProps, {
|
|
2977
3000
|
pt: _ctx.ptm('pcNextButton'),
|
|
2978
3001
|
"data-pc-group-section": "navigator"
|
|
@@ -2980,7 +3003,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2980
3003
|
icon: withCtx(function (slotProps) {
|
|
2981
3004
|
return [renderSlot(_ctx.$slots, "nexticon", {}, function () {
|
|
2982
3005
|
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon ? 'span' : 'ChevronRightIcon'), mergeProps({
|
|
2983
|
-
"class": [_ctx.nextIcon, slotProps["class"]]
|
|
3006
|
+
"class": [_ctx.nextIcon, slotProps["class"]]
|
|
3007
|
+
}, {
|
|
2984
3008
|
ref_for: true
|
|
2985
3009
|
}, _ctx.ptm('pcNextButton')['icon']), null, 16, ["class"]))];
|
|
2986
3010
|
})];
|
|
@@ -2990,7 +3014,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2990
3014
|
})], 16), $data.currentView === 'date' ? (openBlock(), createElementBlock("table", mergeProps({
|
|
2991
3015
|
key: 0,
|
|
2992
3016
|
"class": _ctx.cx('dayView'),
|
|
2993
|
-
role: "grid"
|
|
3017
|
+
role: "grid"
|
|
3018
|
+
}, {
|
|
2994
3019
|
ref_for: true
|
|
2995
3020
|
}, _ctx.ptm('dayView')), [createElementVNode("thead", mergeProps({
|
|
2996
3021
|
ref_for: true
|
|
@@ -2999,7 +3024,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2999
3024
|
}, _ctx.ptm('tableHeaderRow')), [_ctx.showWeek ? (openBlock(), createElementBlock("th", mergeProps({
|
|
3000
3025
|
key: 0,
|
|
3001
3026
|
scope: "col",
|
|
3002
|
-
"class": _ctx.cx('weekHeader')
|
|
3027
|
+
"class": _ctx.cx('weekHeader')
|
|
3028
|
+
}, {
|
|
3003
3029
|
ref_for: true
|
|
3004
3030
|
}, _ctx.ptm('weekHeader', {
|
|
3005
3031
|
context: {
|
|
@@ -3022,13 +3048,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3022
3048
|
return openBlock(), createElementBlock("th", mergeProps({
|
|
3023
3049
|
key: weekDay,
|
|
3024
3050
|
scope: "col",
|
|
3025
|
-
abbr: weekDay
|
|
3051
|
+
abbr: weekDay
|
|
3052
|
+
}, {
|
|
3026
3053
|
ref_for: true
|
|
3027
3054
|
}, _ctx.ptm('tableHeaderCell'), {
|
|
3028
3055
|
"data-pc-group-section": "tableheadercell",
|
|
3029
3056
|
"class": _ctx.cx('weekDayCell')
|
|
3030
3057
|
}), [createElementVNode("span", mergeProps({
|
|
3031
|
-
"class": _ctx.cx('weekDay')
|
|
3058
|
+
"class": _ctx.cx('weekDay')
|
|
3059
|
+
}, {
|
|
3032
3060
|
ref_for: true
|
|
3033
3061
|
}, _ctx.ptm('weekDay'), {
|
|
3034
3062
|
"data-pc-group-section": "tableheadercelllabel"
|
|
@@ -3037,16 +3065,19 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3037
3065
|
ref_for: true
|
|
3038
3066
|
}, _ctx.ptm('tableBody')), [(openBlock(true), createElementBlock(Fragment, null, renderList(month.dates, function (week, i) {
|
|
3039
3067
|
return openBlock(), createElementBlock("tr", mergeProps({
|
|
3040
|
-
key: week[0].day + '' + week[0].month
|
|
3068
|
+
key: week[0].day + '' + week[0].month
|
|
3069
|
+
}, {
|
|
3041
3070
|
ref_for: true
|
|
3042
3071
|
}, _ctx.ptm('tableBodyRow')), [_ctx.showWeek ? (openBlock(), createElementBlock("td", mergeProps({
|
|
3043
3072
|
key: 0,
|
|
3044
|
-
"class": _ctx.cx('weekNumber')
|
|
3073
|
+
"class": _ctx.cx('weekNumber')
|
|
3074
|
+
}, {
|
|
3045
3075
|
ref_for: true
|
|
3046
3076
|
}, _ctx.ptm('weekNumber'), {
|
|
3047
3077
|
"data-pc-group-section": "tablebodycell"
|
|
3048
3078
|
}), [createElementVNode("span", mergeProps({
|
|
3049
|
-
"class": _ctx.cx('weekLabelContainer')
|
|
3079
|
+
"class": _ctx.cx('weekLabelContainer')
|
|
3080
|
+
}, {
|
|
3050
3081
|
ref_for: true
|
|
3051
3082
|
}, _ctx.ptm('weekLabelContainer', {
|
|
3052
3083
|
context: {
|
|
@@ -3062,7 +3093,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3062
3093
|
key: 0,
|
|
3063
3094
|
style: {
|
|
3064
3095
|
"visibility": "hidden"
|
|
3065
|
-
}
|
|
3096
|
+
}
|
|
3097
|
+
}, {
|
|
3066
3098
|
ref_for: true
|
|
3067
3099
|
}, _ctx.ptm('weekLabel')), "0", 16)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(month.weekNumbers[i]), 1)];
|
|
3068
3100
|
})], 16, _hoisted_11)], 16)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(week, function (date) {
|
|
@@ -3071,7 +3103,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3071
3103
|
"aria-label": date.day,
|
|
3072
3104
|
"class": _ctx.cx('dayCell', {
|
|
3073
3105
|
date: date
|
|
3074
|
-
})
|
|
3106
|
+
})
|
|
3107
|
+
}, {
|
|
3075
3108
|
ref_for: true
|
|
3076
3109
|
}, _ctx.ptm('dayCell', {
|
|
3077
3110
|
context: {
|
|
@@ -3098,7 +3131,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3098
3131
|
return $options.onDateCellKeydown($event, date, groupIndex);
|
|
3099
3132
|
},
|
|
3100
3133
|
"aria-selected": $options.isSelected(date),
|
|
3101
|
-
"aria-disabled": !date.selectable
|
|
3134
|
+
"aria-disabled": !date.selectable
|
|
3135
|
+
}, {
|
|
3102
3136
|
ref_for: true
|
|
3103
3137
|
}, _ctx.ptm('day', {
|
|
3104
3138
|
context: {
|
|
@@ -3118,7 +3152,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3118
3152
|
})], 16, _hoisted_13)), [[_directive_ripple]]) : createCommentVNode("", true), $options.isSelected(date) ? (openBlock(), createElementBlock("div", mergeProps({
|
|
3119
3153
|
key: 1,
|
|
3120
3154
|
"class": "p-hidden-accessible",
|
|
3121
|
-
"aria-live": "polite"
|
|
3155
|
+
"aria-live": "polite"
|
|
3156
|
+
}, {
|
|
3122
3157
|
ref_for: true
|
|
3123
3158
|
}, _ctx.ptm('hiddenSelectedDay'), {
|
|
3124
3159
|
"data-p-hidden-accessible": true
|
|
@@ -3146,7 +3181,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3146
3181
|
"class": _ctx.cx('month', {
|
|
3147
3182
|
month: m,
|
|
3148
3183
|
index: i
|
|
3149
|
-
})
|
|
3184
|
+
})
|
|
3185
|
+
}, {
|
|
3150
3186
|
ref_for: true
|
|
3151
3187
|
}, _ctx.ptm('month', {
|
|
3152
3188
|
context: {
|
|
@@ -3161,7 +3197,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3161
3197
|
}), [createTextVNode(toDisplayString(m.value) + " ", 1), $options.isMonthSelected(i) ? (openBlock(), createElementBlock("div", mergeProps({
|
|
3162
3198
|
key: 0,
|
|
3163
3199
|
"class": "p-hidden-accessible",
|
|
3164
|
-
"aria-live": "polite"
|
|
3200
|
+
"aria-live": "polite"
|
|
3201
|
+
}, {
|
|
3165
3202
|
ref_for: true
|
|
3166
3203
|
}, _ctx.ptm('hiddenMonth'), {
|
|
3167
3204
|
"data-p-hidden-accessible": true
|
|
@@ -3180,7 +3217,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3180
3217
|
},
|
|
3181
3218
|
"class": _ctx.cx('year', {
|
|
3182
3219
|
year: y
|
|
3183
|
-
})
|
|
3220
|
+
})
|
|
3221
|
+
}, {
|
|
3184
3222
|
ref_for: true
|
|
3185
3223
|
}, _ctx.ptm('year', {
|
|
3186
3224
|
context: {
|
|
@@ -3194,7 +3232,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3194
3232
|
}), [createTextVNode(toDisplayString(y.value) + " ", 1), $options.isYearSelected(y.value) ? (openBlock(), createElementBlock("div", mergeProps({
|
|
3195
3233
|
key: 0,
|
|
3196
3234
|
"class": "p-hidden-accessible",
|
|
3197
|
-
"aria-live": "polite"
|
|
3235
|
+
"aria-live": "polite"
|
|
3236
|
+
}, {
|
|
3198
3237
|
ref_for: true
|
|
3199
3238
|
}, _ctx.ptm('hiddenYear'), {
|
|
3200
3239
|
"data-p-hidden-accessible": true
|