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.esm.js
CHANGED
|
@@ -66,6 +66,10 @@ var script$1 = {
|
|
|
66
66
|
"default": 1
|
|
67
67
|
},
|
|
68
68
|
responsiveOptions: Array,
|
|
69
|
+
breakpoint: {
|
|
70
|
+
type: String,
|
|
71
|
+
"default": '769px'
|
|
72
|
+
},
|
|
69
73
|
view: {
|
|
70
74
|
type: String,
|
|
71
75
|
"default": 'date'
|
|
@@ -275,7 +279,8 @@ var script = {
|
|
|
275
279
|
pm: null,
|
|
276
280
|
focused: false,
|
|
277
281
|
overlayVisible: false,
|
|
278
|
-
currentView: this.view
|
|
282
|
+
currentView: this.view,
|
|
283
|
+
queryMatches: false
|
|
279
284
|
};
|
|
280
285
|
},
|
|
281
286
|
watch: {
|
|
@@ -324,7 +329,13 @@ var script = {
|
|
|
324
329
|
this.updateCurrentMetaData();
|
|
325
330
|
},
|
|
326
331
|
mounted: function mounted() {
|
|
332
|
+
var _this2 = this;
|
|
327
333
|
this.createResponsiveStyle();
|
|
334
|
+
var query = matchMedia("(max-width: ".concat(this.breakpoint, ")"));
|
|
335
|
+
this.queryMatches = query.matches;
|
|
336
|
+
query.addEventListener('change', function () {
|
|
337
|
+
_this2.queryMatches = query.matches;
|
|
338
|
+
});
|
|
328
339
|
if (this.inline) {
|
|
329
340
|
this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
|
|
330
341
|
if (!this.disabled) {
|
|
@@ -407,12 +418,12 @@ var script = {
|
|
|
407
418
|
return false;
|
|
408
419
|
},
|
|
409
420
|
isMonthSelected: function isMonthSelected(month) {
|
|
410
|
-
var
|
|
421
|
+
var _this3 = this;
|
|
411
422
|
if (this.isComparable()) {
|
|
412
423
|
var value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
|
|
413
424
|
if (this.isMultipleSelection()) {
|
|
414
425
|
return value.some(function (currentValue) {
|
|
415
|
-
return currentValue.getMonth() === month && currentValue.getFullYear() ===
|
|
426
|
+
return currentValue.getMonth() === month && currentValue.getFullYear() === _this3.currentYear;
|
|
416
427
|
});
|
|
417
428
|
} else {
|
|
418
429
|
return value.getMonth() === month && value.getFullYear() === this.currentYear;
|
|
@@ -693,11 +704,11 @@ var script = {
|
|
|
693
704
|
this.currentSecond = Math.floor(date.getSeconds() / this.stepSecond) * this.stepSecond;
|
|
694
705
|
},
|
|
695
706
|
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
696
|
-
var
|
|
707
|
+
var _this4 = this;
|
|
697
708
|
if (!this.outsideClickListener) {
|
|
698
709
|
this.outsideClickListener = function (event) {
|
|
699
|
-
if (
|
|
700
|
-
|
|
710
|
+
if (_this4.overlayVisible && _this4.isOutsideClicked(event)) {
|
|
711
|
+
_this4.overlayVisible = false;
|
|
701
712
|
}
|
|
702
713
|
};
|
|
703
714
|
document.addEventListener('mousedown', this.outsideClickListener);
|
|
@@ -710,11 +721,11 @@ var script = {
|
|
|
710
721
|
}
|
|
711
722
|
},
|
|
712
723
|
bindScrollListener: function bindScrollListener() {
|
|
713
|
-
var
|
|
724
|
+
var _this5 = this;
|
|
714
725
|
if (!this.scrollHandler) {
|
|
715
726
|
this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function () {
|
|
716
|
-
if (
|
|
717
|
-
|
|
727
|
+
if (_this5.overlayVisible) {
|
|
728
|
+
_this5.overlayVisible = false;
|
|
718
729
|
}
|
|
719
730
|
});
|
|
720
731
|
}
|
|
@@ -726,11 +737,11 @@ var script = {
|
|
|
726
737
|
}
|
|
727
738
|
},
|
|
728
739
|
bindResizeListener: function bindResizeListener() {
|
|
729
|
-
var
|
|
740
|
+
var _this6 = this;
|
|
730
741
|
if (!this.resizeListener) {
|
|
731
742
|
this.resizeListener = function () {
|
|
732
|
-
if (
|
|
733
|
-
|
|
743
|
+
if (_this6.overlayVisible && !DomHandler.isTouchDevice()) {
|
|
744
|
+
_this6.overlayVisible = false;
|
|
734
745
|
}
|
|
735
746
|
};
|
|
736
747
|
window.addEventListener('resize', this.resizeListener);
|
|
@@ -817,7 +828,7 @@ var script = {
|
|
|
817
828
|
});
|
|
818
829
|
},
|
|
819
830
|
onDateSelect: function onDateSelect(event, dateMeta) {
|
|
820
|
-
var
|
|
831
|
+
var _this7 = this;
|
|
821
832
|
if (this.disabled || !dateMeta.selectable) {
|
|
822
833
|
return;
|
|
823
834
|
}
|
|
@@ -829,7 +840,7 @@ var script = {
|
|
|
829
840
|
}
|
|
830
841
|
if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
|
|
831
842
|
var newValue = this.modelValue.filter(function (date) {
|
|
832
|
-
return !
|
|
843
|
+
return !_this7.isDateEquals(date, dateMeta);
|
|
833
844
|
});
|
|
834
845
|
this.updateModel(newValue);
|
|
835
846
|
} else {
|
|
@@ -845,15 +856,15 @@ var script = {
|
|
|
845
856
|
}
|
|
846
857
|
if (this.isSingleSelection() && (!this.showTime || this.hideOnDateTimeSelect)) {
|
|
847
858
|
setTimeout(function () {
|
|
848
|
-
if (
|
|
849
|
-
|
|
859
|
+
if (_this7.input) {
|
|
860
|
+
_this7.input.focus();
|
|
850
861
|
}
|
|
851
|
-
|
|
862
|
+
_this7.overlayVisible = false;
|
|
852
863
|
}, 150);
|
|
853
864
|
}
|
|
854
865
|
},
|
|
855
866
|
selectDate: function selectDate(dateMeta) {
|
|
856
|
-
var
|
|
867
|
+
var _this8 = this;
|
|
857
868
|
var date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
|
|
858
869
|
if (this.showTime) {
|
|
859
870
|
if (this.hourFormat === '12' && this.pm && this.currentHour != 12) date.setHours(this.currentHour + 12);else date.setHours(this.currentHour);
|
|
@@ -897,7 +908,7 @@ var script = {
|
|
|
897
908
|
}
|
|
898
909
|
if (this.isRangeSelection() && this.hideOnRangeSelection && modelVal[1] !== null) {
|
|
899
910
|
setTimeout(function () {
|
|
900
|
-
|
|
911
|
+
_this8.overlayVisible = false;
|
|
901
912
|
}, 150);
|
|
902
913
|
}
|
|
903
914
|
this.$emit('date-select', date);
|
|
@@ -1103,11 +1114,11 @@ var script = {
|
|
|
1103
1114
|
this.clearTimePickerTimer();
|
|
1104
1115
|
},
|
|
1105
1116
|
repeat: function repeat(event, interval, type, direction) {
|
|
1106
|
-
var
|
|
1117
|
+
var _this9 = this;
|
|
1107
1118
|
var i = interval || 500;
|
|
1108
1119
|
this.clearTimePickerTimer();
|
|
1109
1120
|
this.timePickerTimer = setTimeout(function () {
|
|
1110
|
-
|
|
1121
|
+
_this9.repeat(event, 100, type, direction);
|
|
1111
1122
|
}, i);
|
|
1112
1123
|
switch (type) {
|
|
1113
1124
|
case 0:
|
|
@@ -1237,7 +1248,7 @@ var script = {
|
|
|
1237
1248
|
event.preventDefault();
|
|
1238
1249
|
},
|
|
1239
1250
|
updateModelTime: function updateModelTime() {
|
|
1240
|
-
var
|
|
1251
|
+
var _this10 = this;
|
|
1241
1252
|
this.timePickerChange = true;
|
|
1242
1253
|
var value = this.isComparable() ? this.modelValue : this.viewDate;
|
|
1243
1254
|
if (this.isRangeSelection()) {
|
|
@@ -1263,7 +1274,7 @@ var script = {
|
|
|
1263
1274
|
this.updateModel(value);
|
|
1264
1275
|
this.$emit('date-select', value);
|
|
1265
1276
|
setTimeout(function () {
|
|
1266
|
-
return
|
|
1277
|
+
return _this10.timePickerChange = false;
|
|
1267
1278
|
}, 0);
|
|
1268
1279
|
},
|
|
1269
1280
|
toggleAMPM: function toggleAMPM(event) {
|
|
@@ -1317,14 +1328,14 @@ var script = {
|
|
|
1317
1328
|
setTimeout(this.updateFocus, 0);
|
|
1318
1329
|
},
|
|
1319
1330
|
enableModality: function enableModality() {
|
|
1320
|
-
var
|
|
1331
|
+
var _this11 = this;
|
|
1321
1332
|
if (!this.mask) {
|
|
1322
1333
|
this.mask = document.createElement('div');
|
|
1323
1334
|
this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
|
|
1324
1335
|
this.mask.setAttribute('data-pc-section', 'datepicker-mask');
|
|
1325
1336
|
!this.isUnstyled && DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
|
|
1326
1337
|
this.maskClickListener = function () {
|
|
1327
|
-
|
|
1338
|
+
_this11.overlayVisible = false;
|
|
1328
1339
|
};
|
|
1329
1340
|
this.mask.addEventListener('click', this.maskClickListener);
|
|
1330
1341
|
document.body.appendChild(this.mask);
|
|
@@ -1332,14 +1343,14 @@ var script = {
|
|
|
1332
1343
|
}
|
|
1333
1344
|
},
|
|
1334
1345
|
disableModality: function disableModality() {
|
|
1335
|
-
var
|
|
1346
|
+
var _this12 = this;
|
|
1336
1347
|
if (this.mask) {
|
|
1337
1348
|
if (this.isUnstyled) {
|
|
1338
1349
|
this.destroyMask();
|
|
1339
1350
|
} else {
|
|
1340
1351
|
DomHandler.addClass(this.mask, 'p-component-overlay-leave');
|
|
1341
1352
|
this.mask.addEventListener('animationend', function () {
|
|
1342
|
-
|
|
1353
|
+
_this12.destroyMask();
|
|
1343
1354
|
});
|
|
1344
1355
|
}
|
|
1345
1356
|
}
|
|
@@ -1371,7 +1382,7 @@ var script = {
|
|
|
1371
1382
|
}
|
|
1372
1383
|
},
|
|
1373
1384
|
isValidSelection: function isValidSelection(value) {
|
|
1374
|
-
var
|
|
1385
|
+
var _this13 = this;
|
|
1375
1386
|
if (value == null) {
|
|
1376
1387
|
return true;
|
|
1377
1388
|
}
|
|
@@ -1381,7 +1392,7 @@ var script = {
|
|
|
1381
1392
|
isValid = false;
|
|
1382
1393
|
}
|
|
1383
1394
|
} else if (value.every(function (v) {
|
|
1384
|
-
return
|
|
1395
|
+
return _this13.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
|
|
1385
1396
|
})) {
|
|
1386
1397
|
if (this.isRangeSelection()) {
|
|
1387
1398
|
isValid = value.length > 1 && value[1] > value[0] ? true : false;
|
|
@@ -2413,20 +2424,20 @@ var script = {
|
|
|
2413
2424
|
}
|
|
2414
2425
|
},
|
|
2415
2426
|
monthPickerValues: function monthPickerValues() {
|
|
2416
|
-
var
|
|
2427
|
+
var _this14 = this;
|
|
2417
2428
|
var monthPickerValues = [];
|
|
2418
2429
|
var isSelectableMonth = function isSelectableMonth(baseMonth) {
|
|
2419
|
-
if (
|
|
2420
|
-
var minMonth =
|
|
2421
|
-
var minYear =
|
|
2422
|
-
if (
|
|
2430
|
+
if (_this14.minDate) {
|
|
2431
|
+
var minMonth = _this14.minDate.getMonth();
|
|
2432
|
+
var minYear = _this14.minDate.getFullYear();
|
|
2433
|
+
if (_this14.currentYear < minYear || _this14.currentYear === minYear && baseMonth < minMonth) {
|
|
2423
2434
|
return false;
|
|
2424
2435
|
}
|
|
2425
2436
|
}
|
|
2426
|
-
if (
|
|
2427
|
-
var maxMonth =
|
|
2428
|
-
var maxYear =
|
|
2429
|
-
if (
|
|
2437
|
+
if (_this14.maxDate) {
|
|
2438
|
+
var maxMonth = _this14.maxDate.getMonth();
|
|
2439
|
+
var maxYear = _this14.maxDate.getFullYear();
|
|
2440
|
+
if (_this14.currentYear > maxYear || _this14.currentYear === maxYear && baseMonth > maxMonth) {
|
|
2430
2441
|
return false;
|
|
2431
2442
|
}
|
|
2432
2443
|
}
|
|
@@ -2441,15 +2452,15 @@ var script = {
|
|
|
2441
2452
|
return monthPickerValues;
|
|
2442
2453
|
},
|
|
2443
2454
|
yearPickerValues: function yearPickerValues() {
|
|
2444
|
-
var
|
|
2455
|
+
var _this15 = this;
|
|
2445
2456
|
var yearPickerValues = [];
|
|
2446
2457
|
var base = this.currentYear - this.currentYear % 10;
|
|
2447
2458
|
var isSelectableYear = function isSelectableYear(baseYear) {
|
|
2448
|
-
if (
|
|
2449
|
-
if (
|
|
2459
|
+
if (_this15.minDate) {
|
|
2460
|
+
if (_this15.minDate.getFullYear() > baseYear) return false;
|
|
2450
2461
|
}
|
|
2451
|
-
if (
|
|
2452
|
-
if (
|
|
2462
|
+
if (_this15.maxDate) {
|
|
2463
|
+
if (_this15.maxDate.getFullYear() < baseYear) return false;
|
|
2453
2464
|
}
|
|
2454
2465
|
return true;
|
|
2455
2466
|
};
|