primevue 3.40.1 → 3.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -20
- package/autocomplete/AutoComplete.vue +1 -1
- package/autocomplete/autocomplete.cjs.js +1 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +1 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/baseicon/BaseIcon.vue +3 -0
- package/baseicon/baseicon.cjs.js +4 -0
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +3 -0
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +5 -2
- package/baseicon/baseicon.min.js +1 -1
- package/breadcrumb/BreadcrumbItem.vue +1 -1
- package/breadcrumb/breadcrumb.cjs.js +1 -1
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +1 -1
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +1 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/calendar/BaseCalendar.vue +4 -0
- package/calendar/Calendar.d.ts +6 -1
- package/calendar/Calendar.vue +9 -1
- package/calendar/calendar.cjs.js +54 -43
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +54 -43
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +54 -43
- package/calendar/calendar.min.js +1 -1
- package/calendar/style/calendarstyle.cjs.js +1 -0
- package/calendar/style/calendarstyle.cjs.min.js +1 -1
- package/calendar/style/calendarstyle.esm.js +1 -0
- package/calendar/style/calendarstyle.esm.min.js +1 -1
- package/calendar/style/calendarstyle.js +1 -0
- package/calendar/style/calendarstyle.min.js +1 -1
- package/confirmationoptions/ConfirmationOptions.d.ts +5 -1
- package/confirmdialog/ConfirmDialog.d.ts +2 -2
- package/core/core.js +65 -50
- package/core/core.min.js +17 -17
- package/datatable/DataTable.vue +3 -2
- package/datatable/datatable.cjs.js +3 -2
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +3 -2
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +3 -2
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +9 -19
- package/dataview/DataView.vue +11 -10
- package/dataview/dataview.cjs.js +18 -18
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +19 -19
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +18 -18
- package/dataview/dataview.min.js +1 -1
- package/dataview/style/dataviewstyle.cjs.js +0 -2
- package/dataview/style/dataviewstyle.cjs.min.js +1 -1
- package/dataview/style/dataviewstyle.esm.js +0 -2
- package/dataview/style/dataviewstyle.esm.min.js +1 -1
- package/dataview/style/dataviewstyle.js +0 -2
- package/dataview/style/dataviewstyle.min.js +1 -1
- package/dialog/Dialog.d.ts +2 -2
- package/dialog/Dialog.vue +4 -4
- package/dialog/dialog.cjs.js +6 -6
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +6 -6
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +6 -6
- package/dialog/dialog.min.js +1 -1
- package/dialog/style/dialogstyle.cjs.js +2 -2
- package/dialog/style/dialogstyle.cjs.min.js +1 -1
- package/dialog/style/dialogstyle.esm.js +2 -2
- package/dialog/style/dialogstyle.esm.min.js +1 -1
- package/dialog/style/dialogstyle.js +2 -2
- package/dialog/style/dialogstyle.min.js +1 -1
- package/dock/BaseDock.vue +4 -0
- package/dock/Dock.d.ts +5 -0
- package/dock/Dock.vue +14 -0
- package/dock/dock.cjs.js +17 -0
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +17 -0
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +17 -0
- package/dock/dock.min.js +1 -1
- package/dock/style/dockstyle.cjs.js +5 -2
- package/dock/style/dockstyle.cjs.min.js +1 -1
- package/dock/style/dockstyle.esm.js +5 -2
- package/dock/style/dockstyle.esm.min.js +1 -1
- package/dock/style/dockstyle.js +5 -2
- package/dock/style/dockstyle.min.js +1 -1
- package/fileupload/FileContent.vue +1 -1
- package/fileupload/FileUpload.vue +1 -1
- package/fileupload/fileupload.cjs.js +2 -2
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +2 -2
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +2 -2
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +1 -1
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +1 -1
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +1 -1
- package/focustrap/focustrap.min.js +1 -1
- package/inputnumber/style/inputnumberstyle.cjs.js +1 -1
- package/inputnumber/style/inputnumberstyle.cjs.min.js +1 -1
- package/inputnumber/style/inputnumberstyle.esm.js +1 -1
- package/inputnumber/style/inputnumberstyle.esm.min.js +1 -1
- package/inputnumber/style/inputnumberstyle.js +1 -1
- package/inputnumber/style/inputnumberstyle.min.js +1 -1
- package/megamenu/BaseMegaMenu.vue +4 -0
- package/megamenu/MegaMenu.d.ts +9 -0
- package/megamenu/MegaMenu.vue +74 -6
- package/megamenu/MegaMenuSub.vue +6 -1
- package/megamenu/megamenu.cjs.js +118 -35
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +119 -37
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +119 -37
- package/megamenu/megamenu.min.js +1 -1
- package/megamenu/style/megamenustyle.cjs.js +22 -17
- package/megamenu/style/megamenustyle.cjs.min.js +1 -1
- package/megamenu/style/megamenustyle.esm.js +22 -17
- package/megamenu/style/megamenustyle.esm.min.js +1 -1
- package/megamenu/style/megamenustyle.js +22 -17
- package/megamenu/style/megamenustyle.min.js +1 -1
- package/menu/Menu.d.ts +1 -1
- package/menu/Menuitem.vue +0 -1
- package/menubar/BaseMenubar.vue +4 -0
- package/menubar/Menubar.d.ts +5 -0
- package/menubar/Menubar.vue +10 -1
- package/menubar/menubar.cjs.js +48 -36
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +48 -36
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +48 -36
- package/menubar/menubar.min.js +1 -1
- package/menubar/style/menubarstyle.cjs.js +2 -1
- package/menubar/style/menubarstyle.cjs.min.js +1 -1
- package/menubar/style/menubarstyle.esm.js +2 -1
- package/menubar/style/menubarstyle.esm.min.js +1 -1
- package/menubar/style/menubarstyle.js +2 -1
- package/menubar/style/menubarstyle.min.js +1 -1
- package/orderlist/OrderList.vue +18 -2
- package/orderlist/orderlist.cjs.js +16 -2
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +16 -2
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +16 -2
- package/orderlist/orderlist.min.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +14 -14
- package/package.json +1 -1
- package/paginator/Paginator.vue +21 -13
- package/paginator/paginator.cjs.js +9 -2
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +9 -2
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +9 -2
- package/paginator/paginator.min.js +1 -1
- package/panelmenu/BasePanelMenu.vue +4 -0
- package/panelmenu/PanelMenu.d.ts +5 -0
- package/panelmenu/PanelMenu.vue +13 -2
- package/panelmenu/panelmenu.cjs.js +21 -2
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +21 -2
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +21 -2
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +4 -4
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +4 -4
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +4 -4
- package/passthrough/tailwind/index.min.js +1 -1
- package/picklist/PickList.vue +16 -2
- package/picklist/picklist.cjs.js +15 -2
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +15 -2
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +15 -2
- package/picklist/picklist.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +133 -117
- package/resources/themes/arya-green/theme.css +133 -117
- package/resources/themes/arya-orange/theme.css +133 -117
- package/resources/themes/arya-purple/theme.css +133 -117
- package/resources/themes/bootstrap4-dark-blue/theme.css +133 -117
- package/resources/themes/bootstrap4-dark-purple/theme.css +133 -117
- package/resources/themes/bootstrap4-light-blue/theme.css +133 -117
- package/resources/themes/bootstrap4-light-purple/theme.css +133 -117
- package/resources/themes/fluent-light/theme.css +133 -117
- package/resources/themes/lara-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-amber/theme.css +5757 -0
- package/resources/themes/lara-dark-blue/theme.css +337 -321
- package/resources/themes/lara-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-cyan/theme.css +5757 -0
- package/resources/themes/lara-dark-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-green/theme.css +5757 -0
- package/resources/themes/lara-dark-indigo/theme.css +337 -321
- package/resources/themes/lara-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-pink/theme.css +5757 -0
- package/resources/themes/lara-dark-purple/theme.css +337 -321
- package/resources/themes/lara-dark-teal/theme.css +577 -561
- package/resources/themes/lara-light-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-amber/theme.css +5749 -0
- package/resources/themes/lara-light-blue/theme.css +192 -176
- package/resources/themes/lara-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-cyan/theme.css +5749 -0
- package/resources/themes/lara-light-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-green/theme.css +5749 -0
- package/resources/themes/lara-light-indigo/theme.css +192 -176
- package/resources/themes/lara-light-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-pink/theme.css +5749 -0
- package/resources/themes/lara-light-purple/theme.css +192 -176
- package/resources/themes/lara-light-teal/theme.css +483 -467
- package/resources/themes/luna-amber/theme.css +133 -117
- package/resources/themes/luna-blue/theme.css +133 -117
- package/resources/themes/luna-green/theme.css +133 -117
- package/resources/themes/luna-pink/theme.css +133 -117
- package/resources/themes/md-dark-deeppurple/theme.css +133 -117
- package/resources/themes/md-dark-indigo/theme.css +133 -117
- package/resources/themes/md-light-deeppurple/theme.css +133 -117
- package/resources/themes/md-light-indigo/theme.css +133 -117
- package/resources/themes/mdc-dark-deeppurple/theme.css +133 -117
- package/resources/themes/mdc-dark-indigo/theme.css +133 -117
- package/resources/themes/mdc-light-deeppurple/theme.css +133 -117
- package/resources/themes/mdc-light-indigo/theme.css +133 -117
- package/resources/themes/mira/theme.css +133 -117
- package/resources/themes/nano/theme.css +133 -117
- package/resources/themes/nova/theme.css +133 -117
- package/resources/themes/nova-accent/theme.css +133 -117
- package/resources/themes/nova-alt/theme.css +133 -117
- package/resources/themes/nova-vue/theme.css +133 -117
- package/resources/themes/rhea/theme.css +133 -117
- package/resources/themes/saga-blue/theme.css +133 -117
- package/resources/themes/saga-green/theme.css +133 -117
- package/resources/themes/saga-orange/theme.css +133 -117
- package/resources/themes/saga-purple/theme.css +133 -117
- package/resources/themes/soho-dark/theme.css +133 -117
- package/resources/themes/soho-light/theme.css +133 -117
- package/resources/themes/tailwind-light/theme.css +133 -117
- package/resources/themes/vela-blue/theme.css +133 -117
- package/resources/themes/vela-green/theme.css +133 -117
- package/resources/themes/vela-orange/theme.css +133 -117
- package/resources/themes/vela-purple/theme.css +133 -117
- package/resources/themes/viva-dark/theme.css +133 -117
- package/resources/themes/viva-light/theme.css +133 -117
- package/sidebar/BaseSidebar.vue +4 -0
- package/sidebar/Sidebar.d.ts +12 -2
- package/sidebar/Sidebar.vue +3 -3
- package/sidebar/sidebar.cjs.js +12 -4
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +13 -5
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +12 -4
- package/sidebar/sidebar.min.js +1 -1
- package/sidebar/style/sidebarstyle.cjs.js +2 -2
- package/sidebar/style/sidebarstyle.cjs.min.js +1 -1
- package/sidebar/style/sidebarstyle.esm.js +2 -2
- package/sidebar/style/sidebarstyle.esm.min.js +1 -1
- package/sidebar/style/sidebarstyle.js +2 -2
- package/sidebar/style/sidebarstyle.min.js +1 -1
- package/speeddial/style/speeddialstyle.cjs.js +2 -2
- package/speeddial/style/speeddialstyle.cjs.min.js +1 -1
- package/speeddial/style/speeddialstyle.esm.js +2 -2
- package/speeddial/style/speeddialstyle.esm.min.js +1 -1
- package/speeddial/style/speeddialstyle.js +2 -2
- package/speeddial/style/speeddialstyle.min.js +1 -1
- package/splitter/Splitter.vue +3 -1
- package/splitter/splitter.cjs.js +3 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +3 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +3 -1
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/style/splitterpanelstyle.cjs.js +1 -1
- package/splitterpanel/style/splitterpanelstyle.cjs.min.js +1 -1
- package/splitterpanel/style/splitterpanelstyle.esm.js +1 -1
- package/splitterpanel/style/splitterpanelstyle.esm.min.js +1 -1
- package/splitterpanel/style/splitterpanelstyle.js +1 -1
- package/splitterpanel/style/splitterpanelstyle.min.js +1 -1
- package/tree/TreeNode.vue +1 -1
- package/tree/style/treestyle.cjs.js +1 -4
- package/tree/style/treestyle.cjs.min.js +1 -1
- package/tree/style/treestyle.esm.js +1 -4
- package/tree/style/treestyle.esm.min.js +1 -1
- package/tree/style/treestyle.js +1 -4
- package/tree/style/treestyle.min.js +1 -1
- package/tree/tree.cjs.js +1 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +1 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +1 -1
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.vue +67 -2
- package/treeselect/treeselect.cjs.js +73 -9
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +73 -9
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +73 -9
- package/treeselect/treeselect.min.js +1 -1
- package/web-types.json +1 -1
- /package/dynamicdialog/style/{AccordionStyle.d.ts → DynamicDialogStyle.d.ts} +0 -0
package/calendar/calendar.js
CHANGED
|
@@ -70,6 +70,10 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
70
70
|
"default": 1
|
|
71
71
|
},
|
|
72
72
|
responsiveOptions: Array,
|
|
73
|
+
breakpoint: {
|
|
74
|
+
type: String,
|
|
75
|
+
"default": '769px'
|
|
76
|
+
},
|
|
73
77
|
view: {
|
|
74
78
|
type: String,
|
|
75
79
|
"default": 'date'
|
|
@@ -279,7 +283,8 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
279
283
|
pm: null,
|
|
280
284
|
focused: false,
|
|
281
285
|
overlayVisible: false,
|
|
282
|
-
currentView: this.view
|
|
286
|
+
currentView: this.view,
|
|
287
|
+
queryMatches: false
|
|
283
288
|
};
|
|
284
289
|
},
|
|
285
290
|
watch: {
|
|
@@ -328,7 +333,13 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
328
333
|
this.updateCurrentMetaData();
|
|
329
334
|
},
|
|
330
335
|
mounted: function mounted() {
|
|
336
|
+
var _this2 = this;
|
|
331
337
|
this.createResponsiveStyle();
|
|
338
|
+
var query = matchMedia("(max-width: ".concat(this.breakpoint, ")"));
|
|
339
|
+
this.queryMatches = query.matches;
|
|
340
|
+
query.addEventListener('change', function () {
|
|
341
|
+
_this2.queryMatches = query.matches;
|
|
342
|
+
});
|
|
332
343
|
if (this.inline) {
|
|
333
344
|
this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
|
|
334
345
|
if (!this.disabled) {
|
|
@@ -411,12 +422,12 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
411
422
|
return false;
|
|
412
423
|
},
|
|
413
424
|
isMonthSelected: function isMonthSelected(month) {
|
|
414
|
-
var
|
|
425
|
+
var _this3 = this;
|
|
415
426
|
if (this.isComparable()) {
|
|
416
427
|
var value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
|
|
417
428
|
if (this.isMultipleSelection()) {
|
|
418
429
|
return value.some(function (currentValue) {
|
|
419
|
-
return currentValue.getMonth() === month && currentValue.getFullYear() ===
|
|
430
|
+
return currentValue.getMonth() === month && currentValue.getFullYear() === _this3.currentYear;
|
|
420
431
|
});
|
|
421
432
|
} else {
|
|
422
433
|
return value.getMonth() === month && value.getFullYear() === this.currentYear;
|
|
@@ -697,11 +708,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
697
708
|
this.currentSecond = Math.floor(date.getSeconds() / this.stepSecond) * this.stepSecond;
|
|
698
709
|
},
|
|
699
710
|
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
700
|
-
var
|
|
711
|
+
var _this4 = this;
|
|
701
712
|
if (!this.outsideClickListener) {
|
|
702
713
|
this.outsideClickListener = function (event) {
|
|
703
|
-
if (
|
|
704
|
-
|
|
714
|
+
if (_this4.overlayVisible && _this4.isOutsideClicked(event)) {
|
|
715
|
+
_this4.overlayVisible = false;
|
|
705
716
|
}
|
|
706
717
|
};
|
|
707
718
|
document.addEventListener('mousedown', this.outsideClickListener);
|
|
@@ -714,11 +725,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
714
725
|
}
|
|
715
726
|
},
|
|
716
727
|
bindScrollListener: function bindScrollListener() {
|
|
717
|
-
var
|
|
728
|
+
var _this5 = this;
|
|
718
729
|
if (!this.scrollHandler) {
|
|
719
730
|
this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.$refs.container, function () {
|
|
720
|
-
if (
|
|
721
|
-
|
|
731
|
+
if (_this5.overlayVisible) {
|
|
732
|
+
_this5.overlayVisible = false;
|
|
722
733
|
}
|
|
723
734
|
});
|
|
724
735
|
}
|
|
@@ -730,11 +741,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
730
741
|
}
|
|
731
742
|
},
|
|
732
743
|
bindResizeListener: function bindResizeListener() {
|
|
733
|
-
var
|
|
744
|
+
var _this6 = this;
|
|
734
745
|
if (!this.resizeListener) {
|
|
735
746
|
this.resizeListener = function () {
|
|
736
|
-
if (
|
|
737
|
-
|
|
747
|
+
if (_this6.overlayVisible && !utils.DomHandler.isTouchDevice()) {
|
|
748
|
+
_this6.overlayVisible = false;
|
|
738
749
|
}
|
|
739
750
|
};
|
|
740
751
|
window.addEventListener('resize', this.resizeListener);
|
|
@@ -821,7 +832,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
821
832
|
});
|
|
822
833
|
},
|
|
823
834
|
onDateSelect: function onDateSelect(event, dateMeta) {
|
|
824
|
-
var
|
|
835
|
+
var _this7 = this;
|
|
825
836
|
if (this.disabled || !dateMeta.selectable) {
|
|
826
837
|
return;
|
|
827
838
|
}
|
|
@@ -833,7 +844,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
833
844
|
}
|
|
834
845
|
if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
|
|
835
846
|
var newValue = this.modelValue.filter(function (date) {
|
|
836
|
-
return !
|
|
847
|
+
return !_this7.isDateEquals(date, dateMeta);
|
|
837
848
|
});
|
|
838
849
|
this.updateModel(newValue);
|
|
839
850
|
} else {
|
|
@@ -849,15 +860,15 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
849
860
|
}
|
|
850
861
|
if (this.isSingleSelection() && (!this.showTime || this.hideOnDateTimeSelect)) {
|
|
851
862
|
setTimeout(function () {
|
|
852
|
-
if (
|
|
853
|
-
|
|
863
|
+
if (_this7.input) {
|
|
864
|
+
_this7.input.focus();
|
|
854
865
|
}
|
|
855
|
-
|
|
866
|
+
_this7.overlayVisible = false;
|
|
856
867
|
}, 150);
|
|
857
868
|
}
|
|
858
869
|
},
|
|
859
870
|
selectDate: function selectDate(dateMeta) {
|
|
860
|
-
var
|
|
871
|
+
var _this8 = this;
|
|
861
872
|
var date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
|
|
862
873
|
if (this.showTime) {
|
|
863
874
|
if (this.hourFormat === '12' && this.pm && this.currentHour != 12) date.setHours(this.currentHour + 12);else date.setHours(this.currentHour);
|
|
@@ -901,7 +912,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
901
912
|
}
|
|
902
913
|
if (this.isRangeSelection() && this.hideOnRangeSelection && modelVal[1] !== null) {
|
|
903
914
|
setTimeout(function () {
|
|
904
|
-
|
|
915
|
+
_this8.overlayVisible = false;
|
|
905
916
|
}, 150);
|
|
906
917
|
}
|
|
907
918
|
this.$emit('date-select', date);
|
|
@@ -1107,11 +1118,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1107
1118
|
this.clearTimePickerTimer();
|
|
1108
1119
|
},
|
|
1109
1120
|
repeat: function repeat(event, interval, type, direction) {
|
|
1110
|
-
var
|
|
1121
|
+
var _this9 = this;
|
|
1111
1122
|
var i = interval || 500;
|
|
1112
1123
|
this.clearTimePickerTimer();
|
|
1113
1124
|
this.timePickerTimer = setTimeout(function () {
|
|
1114
|
-
|
|
1125
|
+
_this9.repeat(event, 100, type, direction);
|
|
1115
1126
|
}, i);
|
|
1116
1127
|
switch (type) {
|
|
1117
1128
|
case 0:
|
|
@@ -1241,7 +1252,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1241
1252
|
event.preventDefault();
|
|
1242
1253
|
},
|
|
1243
1254
|
updateModelTime: function updateModelTime() {
|
|
1244
|
-
var
|
|
1255
|
+
var _this10 = this;
|
|
1245
1256
|
this.timePickerChange = true;
|
|
1246
1257
|
var value = this.isComparable() ? this.modelValue : this.viewDate;
|
|
1247
1258
|
if (this.isRangeSelection()) {
|
|
@@ -1267,7 +1278,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1267
1278
|
this.updateModel(value);
|
|
1268
1279
|
this.$emit('date-select', value);
|
|
1269
1280
|
setTimeout(function () {
|
|
1270
|
-
return
|
|
1281
|
+
return _this10.timePickerChange = false;
|
|
1271
1282
|
}, 0);
|
|
1272
1283
|
},
|
|
1273
1284
|
toggleAMPM: function toggleAMPM(event) {
|
|
@@ -1321,14 +1332,14 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1321
1332
|
setTimeout(this.updateFocus, 0);
|
|
1322
1333
|
},
|
|
1323
1334
|
enableModality: function enableModality() {
|
|
1324
|
-
var
|
|
1335
|
+
var _this11 = this;
|
|
1325
1336
|
if (!this.mask) {
|
|
1326
1337
|
this.mask = document.createElement('div');
|
|
1327
1338
|
this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
|
|
1328
1339
|
this.mask.setAttribute('data-pc-section', 'datepicker-mask');
|
|
1329
1340
|
!this.isUnstyled && utils.DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
|
|
1330
1341
|
this.maskClickListener = function () {
|
|
1331
|
-
|
|
1342
|
+
_this11.overlayVisible = false;
|
|
1332
1343
|
};
|
|
1333
1344
|
this.mask.addEventListener('click', this.maskClickListener);
|
|
1334
1345
|
document.body.appendChild(this.mask);
|
|
@@ -1336,14 +1347,14 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1336
1347
|
}
|
|
1337
1348
|
},
|
|
1338
1349
|
disableModality: function disableModality() {
|
|
1339
|
-
var
|
|
1350
|
+
var _this12 = this;
|
|
1340
1351
|
if (this.mask) {
|
|
1341
1352
|
if (this.isUnstyled) {
|
|
1342
1353
|
this.destroyMask();
|
|
1343
1354
|
} else {
|
|
1344
1355
|
utils.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
|
|
1345
1356
|
this.mask.addEventListener('animationend', function () {
|
|
1346
|
-
|
|
1357
|
+
_this12.destroyMask();
|
|
1347
1358
|
});
|
|
1348
1359
|
}
|
|
1349
1360
|
}
|
|
@@ -1375,7 +1386,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1375
1386
|
}
|
|
1376
1387
|
},
|
|
1377
1388
|
isValidSelection: function isValidSelection(value) {
|
|
1378
|
-
var
|
|
1389
|
+
var _this13 = this;
|
|
1379
1390
|
if (value == null) {
|
|
1380
1391
|
return true;
|
|
1381
1392
|
}
|
|
@@ -1385,7 +1396,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1385
1396
|
isValid = false;
|
|
1386
1397
|
}
|
|
1387
1398
|
} else if (value.every(function (v) {
|
|
1388
|
-
return
|
|
1399
|
+
return _this13.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
|
|
1389
1400
|
})) {
|
|
1390
1401
|
if (this.isRangeSelection()) {
|
|
1391
1402
|
isValid = value.length > 1 && value[1] > value[0] ? true : false;
|
|
@@ -2417,20 +2428,20 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
2417
2428
|
}
|
|
2418
2429
|
},
|
|
2419
2430
|
monthPickerValues: function monthPickerValues() {
|
|
2420
|
-
var
|
|
2431
|
+
var _this14 = this;
|
|
2421
2432
|
var monthPickerValues = [];
|
|
2422
2433
|
var isSelectableMonth = function isSelectableMonth(baseMonth) {
|
|
2423
|
-
if (
|
|
2424
|
-
var minMonth =
|
|
2425
|
-
var minYear =
|
|
2426
|
-
if (
|
|
2434
|
+
if (_this14.minDate) {
|
|
2435
|
+
var minMonth = _this14.minDate.getMonth();
|
|
2436
|
+
var minYear = _this14.minDate.getFullYear();
|
|
2437
|
+
if (_this14.currentYear < minYear || _this14.currentYear === minYear && baseMonth < minMonth) {
|
|
2427
2438
|
return false;
|
|
2428
2439
|
}
|
|
2429
2440
|
}
|
|
2430
|
-
if (
|
|
2431
|
-
var maxMonth =
|
|
2432
|
-
var maxYear =
|
|
2433
|
-
if (
|
|
2441
|
+
if (_this14.maxDate) {
|
|
2442
|
+
var maxMonth = _this14.maxDate.getMonth();
|
|
2443
|
+
var maxYear = _this14.maxDate.getFullYear();
|
|
2444
|
+
if (_this14.currentYear > maxYear || _this14.currentYear === maxYear && baseMonth > maxMonth) {
|
|
2434
2445
|
return false;
|
|
2435
2446
|
}
|
|
2436
2447
|
}
|
|
@@ -2445,15 +2456,15 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
2445
2456
|
return monthPickerValues;
|
|
2446
2457
|
},
|
|
2447
2458
|
yearPickerValues: function yearPickerValues() {
|
|
2448
|
-
var
|
|
2459
|
+
var _this15 = this;
|
|
2449
2460
|
var yearPickerValues = [];
|
|
2450
2461
|
var base = this.currentYear - this.currentYear % 10;
|
|
2451
2462
|
var isSelectableYear = function isSelectableYear(baseYear) {
|
|
2452
|
-
if (
|
|
2453
|
-
if (
|
|
2463
|
+
if (_this15.minDate) {
|
|
2464
|
+
if (_this15.minDate.getFullYear() > baseYear) return false;
|
|
2454
2465
|
}
|
|
2455
|
-
if (
|
|
2456
|
-
if (
|
|
2466
|
+
if (_this15.maxDate) {
|
|
2467
|
+
if (_this15.maxDate.getFullYear() < baseYear) return false;
|
|
2457
2468
|
}
|
|
2458
2469
|
return true;
|
|
2459
2470
|
};
|