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/baseicon/baseicon.cjs.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var BaseComponent = require('primevue/basecomponent');
|
|
3
4
|
var BaseIconStyle = require('primevue/baseicon/style');
|
|
4
5
|
var utils = require('primevue/utils');
|
|
5
6
|
|
|
6
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
8
|
|
|
9
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
8
10
|
var BaseIconStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseIconStyle);
|
|
9
11
|
|
|
10
12
|
var script = {
|
|
11
13
|
name: 'BaseIcon',
|
|
14
|
+
"extends": BaseComponent__default["default"],
|
|
12
15
|
props: {
|
|
13
16
|
label: {
|
|
14
17
|
type: String,
|
|
@@ -19,6 +22,7 @@ var script = {
|
|
|
19
22
|
"default": false
|
|
20
23
|
}
|
|
21
24
|
},
|
|
25
|
+
style: BaseIconStyle__default["default"],
|
|
22
26
|
beforeMount: function beforeMount() {
|
|
23
27
|
var _this$$config;
|
|
24
28
|
BaseIconStyle__default["default"].loadStyle({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/baseicon/style"),
|
|
1
|
+
"use strict";var e=require("primevue/basecomponent"),i=require("primevue/baseicon/style"),t=require("primevue/utils");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),l=n(i),r={name:"BaseIcon",extends:o.default,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:l.default,beforeMount:function(){var e;l.default.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce})},methods:{pti:function(){var e=t.ObjectUtils.isEmpty(this.label);return{class:["p-icon",{"p-icon-spin":this.spin}],role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e}}},computed:{$config:function(){var e;return null===(e=this.$primevue)||void 0===e?void 0:e.config}}};module.exports=r;
|
package/baseicon/baseicon.esm.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
1
2
|
import BaseIconStyle from 'primevue/baseicon/style';
|
|
2
3
|
import { ObjectUtils } from 'primevue/utils';
|
|
3
4
|
|
|
4
5
|
var script = {
|
|
5
6
|
name: 'BaseIcon',
|
|
7
|
+
"extends": BaseComponent,
|
|
6
8
|
props: {
|
|
7
9
|
label: {
|
|
8
10
|
type: String,
|
|
@@ -13,6 +15,7 @@ var script = {
|
|
|
13
15
|
"default": false
|
|
14
16
|
}
|
|
15
17
|
},
|
|
18
|
+
style: BaseIconStyle,
|
|
16
19
|
beforeMount: function beforeMount() {
|
|
17
20
|
var _this$$config;
|
|
18
21
|
BaseIconStyle.loadStyle({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import i from"primevue/baseicon/style";import{ObjectUtils as o}from"primevue/utils";var
|
|
1
|
+
import i from"primevue/basecomponent";import e from"primevue/baseicon/style";import{ObjectUtils as o}from"primevue/utils";var n={name:"BaseIcon",extends:i,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:e,beforeMount:function(){var i;e.loadStyle({nonce:null===(i=this.$config)||void 0===i||null===(i=i.csp)||void 0===i?void 0:i.nonce})},methods:{pti:function(){var i=o.isEmpty(this.label);return{class:["p-icon",{"p-icon-spin":this.spin}],role:i?void 0:"img","aria-label":i?void 0:this.label,"aria-hidden":i}}},computed:{$config:function(){var i;return null===(i=this.$primevue)||void 0===i?void 0:i.config}}};export{n as default};
|
package/baseicon/baseicon.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.baseicon = (function (BaseIconStyle, utils) {
|
|
2
|
+
this.primevue.baseicon = (function (BaseComponent, BaseIconStyle, utils) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
6
|
|
|
7
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
7
8
|
var BaseIconStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseIconStyle);
|
|
8
9
|
|
|
9
10
|
var script = {
|
|
10
11
|
name: 'BaseIcon',
|
|
12
|
+
"extends": BaseComponent__default["default"],
|
|
11
13
|
props: {
|
|
12
14
|
label: {
|
|
13
15
|
type: String,
|
|
@@ -18,6 +20,7 @@ this.primevue.baseicon = (function (BaseIconStyle, utils) {
|
|
|
18
20
|
"default": false
|
|
19
21
|
}
|
|
20
22
|
},
|
|
23
|
+
style: BaseIconStyle__default["default"],
|
|
21
24
|
beforeMount: function beforeMount() {
|
|
22
25
|
var _this$$config;
|
|
23
26
|
BaseIconStyle__default["default"].loadStyle({
|
|
@@ -47,4 +50,4 @@ this.primevue.baseicon = (function (BaseIconStyle, utils) {
|
|
|
47
50
|
|
|
48
51
|
return script;
|
|
49
52
|
|
|
50
|
-
})(primevue.baseicon.style, primevue.utils);
|
|
53
|
+
})(primevue.basecomponent, primevue.baseicon.style, primevue.utils);
|
package/baseicon/baseicon.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.baseicon=function(i,
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.baseicon=function(e,i,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),l=n(i);return{name:"BaseIcon",extends:o.default,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:l.default,beforeMount:function(){var e;l.default.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce})},methods:{pti:function(){var e=t.ObjectUtils.isEmpty(this.label);return{class:["p-icon",{"p-icon-spin":this.spin}],role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e}}},computed:{$config:function(){var e;return null===(e=this.$primevue)||void 0===e?void 0:e.config}}}}(primevue.basecomponent,primevue.baseicon.style,primevue.utils);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/icons/chevronright"),t=require("primevue/basecomponent"),n=require("primevue/breadcrumb/style"),o=require("vue");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(e),l=r(t),m={name:"BaseBreadcrumb",extends:l.default,props:{model:{type:Array,default:null},home:{type:null,default:null}},style:r(n).default,provide:function(){return{$parentInstance:this}}},s={name:"BreadcrumbItem",hostName:"Breadcrumb",extends:l.default,props:{item:null,templates:null,index:null},methods:{onClick:function(e
|
|
1
|
+
"use strict";var e=require("primevue/icons/chevronright"),t=require("primevue/basecomponent"),n=require("primevue/breadcrumb/style"),o=require("vue");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(e),l=r(t),m={name:"BaseBreadcrumb",extends:l.default,props:{model:{type:Array,default:null},home:{type:null,default:null}},style:r(n).default,provide:function(){return{$parentInstance:this}}},s={name:"BreadcrumbItem",hostName:"Breadcrumb",extends:l.default,props:{item:null,templates:null,index:null},methods:{onClick:function(e){this.item.command&&this.item.command({originalEvent:e,item:this.item})},visible:function(){return"function"==typeof this.item.visible?this.item.visible():!1!==this.item.visible},disabled:function(){return"function"==typeof this.item.disabled?this.item.disabled():this.item.disabled},label:function(){return"function"==typeof this.item.label?this.item.label():this.item.label},isCurrentUrl:function(){var e=this.item,t="undefined"!=typeof window?window.location.pathname:"";return e.to===t||e.url===t?"page":void 0}},computed:{ptmOptions:function(){return{context:{item:this.item,index:this.index}}},getMenuItemProps:function(){var e=this;return{action:o.mergeProps({class:this.cx("action"),"aria-current":this.isCurrentUrl(),onClick:function(t){return e.onClick(t)}},this.ptm("action",this.ptmOptions)),icon:o.mergeProps({class:[this.cx("icon"),this.item.icon]},this.ptm("icon",this.ptmOptions)),label:o.mergeProps({class:this.cx("label")},this.ptm("label",this.ptmOptions))}}}},a=["href","target","aria-current"];s.render=function(e,t,n,r,i,l){return l.visible()?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:0,class:[e.cx("menuitem"),n.item.class]},e.ptm("menuitem",l.ptmOptions)),[n.templates.item?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.templates.item),{key:1,item:n.item,label:l.label(),props:l.getMenuItemProps},null,8,["item","label","props"])):(o.openBlock(),o.createElementBlock("a",o.mergeProps({key:0,href:n.item.url||"#",class:e.cx("action"),target:n.item.target,"aria-current":l.isCurrentUrl(),onClick:t[0]||(t[0]=function(){return l.onClick&&l.onClick.apply(l,arguments)})},e.ptm("action",l.ptmOptions)),[n.templates&&n.templates.itemicon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.templates.itemicon),{key:0,item:n.item,class:o.normalizeClass(e.cx("icon",l.ptmOptions))},null,8,["item","class"])):n.item.icon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:1,class:[e.cx("icon"),n.item.icon]},e.ptm("icon",l.ptmOptions)),null,16)):o.createCommentVNode("",!0),n.item.label?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:2,class:e.cx("label")},e.ptm("label",l.ptmOptions)),o.toDisplayString(l.label()),17)):o.createCommentVNode("",!0)],16,a))],16)):o.createCommentVNode("",!0)};var c={name:"Breadcrumb",extends:m,components:{BreadcrumbItem:s,ChevronRightIcon:i.default}};c.render=function(e,t,n,r,i,l){var m=o.resolveComponent("BreadcrumbItem"),s=o.resolveComponent("ChevronRightIcon");return o.openBlock(),o.createElementBlock("nav",o.mergeProps({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"breadcrumb"}),[o.createElementVNode("ol",o.mergeProps({class:e.cx("menu")},e.ptm("menu")),[e.home?(o.openBlock(),o.createBlock(m,o.mergeProps({key:0,item:e.home,class:e.cx("home"),templates:e.$slots,pt:e.pt,unstyled:e.unstyled},e.ptm("home")),null,16,["item","class","templates","pt","unstyled"])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.model,(function(t,n){return o.openBlock(),o.createElementBlock(o.Fragment,{key:t.label+"_"+n},[e.home||0!==n?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:0,class:e.cx("separator")},e.ptm("separator")),[o.renderSlot(e.$slots,"separator",{},(function(){return[o.createVNode(s,o.mergeProps({"aria-hidden":"true"},e.ptm("separatorIcon")),null,16)]}))],16)):o.createCommentVNode("",!0),o.createVNode(m,{item:t,index:n,templates:e.$slots,pt:e.pt,unstyled:e.unstyled},null,8,["item","index","templates","pt","unstyled"])],64)})),128))],16)],16)},module.exports=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"primevue/icons/chevronright";import e from"primevue/basecomponent";import i from"primevue/breadcrumb/style";import{mergeProps as n,openBlock as s,createElementBlock as l,createBlock as m,resolveDynamicComponent as r,normalizeClass as o,createCommentVNode as a,toDisplayString as c,resolveComponent as p,createElementVNode as u,Fragment as d,renderList as h,renderSlot as b,createVNode as f}from"vue";var y={name:"BaseBreadcrumb",extends:e,props:{model:{type:Array,default:null},home:{type:null,default:null}},style:i,provide:function(){return{$parentInstance:this}}},x={name:"BreadcrumbItem",hostName:"Breadcrumb",extends:e,props:{item:null,templates:null,index:null},methods:{onClick:function(t
|
|
1
|
+
import t from"primevue/icons/chevronright";import e from"primevue/basecomponent";import i from"primevue/breadcrumb/style";import{mergeProps as n,openBlock as s,createElementBlock as l,createBlock as m,resolveDynamicComponent as r,normalizeClass as o,createCommentVNode as a,toDisplayString as c,resolveComponent as p,createElementVNode as u,Fragment as d,renderList as h,renderSlot as b,createVNode as f}from"vue";var y={name:"BaseBreadcrumb",extends:e,props:{model:{type:Array,default:null},home:{type:null,default:null}},style:i,provide:function(){return{$parentInstance:this}}},x={name:"BreadcrumbItem",hostName:"Breadcrumb",extends:e,props:{item:null,templates:null,index:null},methods:{onClick:function(t){this.item.command&&this.item.command({originalEvent:t,item:this.item})},visible:function(){return"function"==typeof this.item.visible?this.item.visible():!1!==this.item.visible},disabled:function(){return"function"==typeof this.item.disabled?this.item.disabled():this.item.disabled},label:function(){return"function"==typeof this.item.label?this.item.label():this.item.label},isCurrentUrl:function(){var t=this.item,e="undefined"!=typeof window?window.location.pathname:"";return t.to===e||t.url===e?"page":void 0}},computed:{ptmOptions:function(){return{context:{item:this.item,index:this.index}}},getMenuItemProps:function(){var t=this;return{action:n({class:this.cx("action"),"aria-current":this.isCurrentUrl(),onClick:function(e){return t.onClick(e)}},this.ptm("action",this.ptmOptions)),icon:n({class:[this.cx("icon"),this.item.icon]},this.ptm("icon",this.ptmOptions)),label:n({class:this.cx("label")},this.ptm("label",this.ptmOptions))}}}},v=["href","target","aria-current"];x.render=function(t,e,i,p,u,d){return d.visible()?(s(),l("li",n({key:0,class:[t.cx("menuitem"),i.item.class]},t.ptm("menuitem",d.ptmOptions)),[i.templates.item?(s(),m(r(i.templates.item),{key:1,item:i.item,label:d.label(),props:d.getMenuItemProps},null,8,["item","label","props"])):(s(),l("a",n({key:0,href:i.item.url||"#",class:t.cx("action"),target:i.item.target,"aria-current":d.isCurrentUrl(),onClick:e[0]||(e[0]=function(){return d.onClick&&d.onClick.apply(d,arguments)})},t.ptm("action",d.ptmOptions)),[i.templates&&i.templates.itemicon?(s(),m(r(i.templates.itemicon),{key:0,item:i.item,class:o(t.cx("icon",d.ptmOptions))},null,8,["item","class"])):i.item.icon?(s(),l("span",n({key:1,class:[t.cx("icon"),i.item.icon]},t.ptm("icon",d.ptmOptions)),null,16)):a("",!0),i.item.label?(s(),l("span",n({key:2,class:t.cx("label")},t.ptm("label",d.ptmOptions)),c(d.label()),17)):a("",!0)],16,v))],16)):a("",!0)};var k={name:"Breadcrumb",extends:y,components:{BreadcrumbItem:x,ChevronRightIcon:t}};k.render=function(t,e,i,r,o,c){var y=p("BreadcrumbItem"),x=p("ChevronRightIcon");return s(),l("nav",n({class:t.cx("root")},t.ptm("root"),{"data-pc-name":"breadcrumb"}),[u("ol",n({class:t.cx("menu")},t.ptm("menu")),[t.home?(s(),m(y,n({key:0,item:t.home,class:t.cx("home"),templates:t.$slots,pt:t.pt,unstyled:t.unstyled},t.ptm("home")),null,16,["item","class","templates","pt","unstyled"])):a("",!0),(s(!0),l(d,null,h(t.model,(function(e,i){return s(),l(d,{key:e.label+"_"+i},[t.home||0!==i?(s(),l("li",n({key:0,class:t.cx("separator")},t.ptm("separator")),[b(t.$slots,"separator",{},(function(){return[f(x,n({"aria-hidden":"true"},t.ptm("separatorIcon")),null,16)]}))],16)):a("",!0),f(y,{item:e,index:i,templates:t.$slots,pt:t.pt,unstyled:t.unstyled},null,8,["item","index","templates","pt","unstyled"])],64)})),128))],16)],16)};export{k as default};
|
package/breadcrumb/breadcrumb.js
CHANGED
|
@@ -39,7 +39,7 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, BaseComponent, Breadcrum
|
|
|
39
39
|
index: null
|
|
40
40
|
},
|
|
41
41
|
methods: {
|
|
42
|
-
onClick: function onClick(event
|
|
42
|
+
onClick: function onClick(event) {
|
|
43
43
|
if (this.item.command) {
|
|
44
44
|
this.item.command({
|
|
45
45
|
originalEvent: event,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.breadcrumb=function(e,t,n,o){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e),l=i(t),m={name:"BaseBreadcrumb",extends:l.default,props:{model:{type:Array,default:null},home:{type:null,default:null}},style:i(n).default,provide:function(){return{$parentInstance:this}}},s={name:"BreadcrumbItem",hostName:"Breadcrumb",extends:l.default,props:{item:null,templates:null,index:null},methods:{onClick:function(e
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.breadcrumb=function(e,t,n,o){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e),l=i(t),m={name:"BaseBreadcrumb",extends:l.default,props:{model:{type:Array,default:null},home:{type:null,default:null}},style:i(n).default,provide:function(){return{$parentInstance:this}}},s={name:"BreadcrumbItem",hostName:"Breadcrumb",extends:l.default,props:{item:null,templates:null,index:null},methods:{onClick:function(e){this.item.command&&this.item.command({originalEvent:e,item:this.item})},visible:function(){return"function"==typeof this.item.visible?this.item.visible():!1!==this.item.visible},disabled:function(){return"function"==typeof this.item.disabled?this.item.disabled():this.item.disabled},label:function(){return"function"==typeof this.item.label?this.item.label():this.item.label},isCurrentUrl:function(){var e=this.item,t="undefined"!=typeof window?window.location.pathname:"";return e.to===t||e.url===t?"page":void 0}},computed:{ptmOptions:function(){return{context:{item:this.item,index:this.index}}},getMenuItemProps:function(){var e=this;return{action:o.mergeProps({class:this.cx("action"),"aria-current":this.isCurrentUrl(),onClick:function(t){return e.onClick(t)}},this.ptm("action",this.ptmOptions)),icon:o.mergeProps({class:[this.cx("icon"),this.item.icon]},this.ptm("icon",this.ptmOptions)),label:o.mergeProps({class:this.cx("label")},this.ptm("label",this.ptmOptions))}}}},a=["href","target","aria-current"];s.render=function(e,t,n,i,r,l){return l.visible()?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:0,class:[e.cx("menuitem"),n.item.class]},e.ptm("menuitem",l.ptmOptions)),[n.templates.item?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.templates.item),{key:1,item:n.item,label:l.label(),props:l.getMenuItemProps},null,8,["item","label","props"])):(o.openBlock(),o.createElementBlock("a",o.mergeProps({key:0,href:n.item.url||"#",class:e.cx("action"),target:n.item.target,"aria-current":l.isCurrentUrl(),onClick:t[0]||(t[0]=function(){return l.onClick&&l.onClick.apply(l,arguments)})},e.ptm("action",l.ptmOptions)),[n.templates&&n.templates.itemicon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.templates.itemicon),{key:0,item:n.item,class:o.normalizeClass(e.cx("icon",l.ptmOptions))},null,8,["item","class"])):n.item.icon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:1,class:[e.cx("icon"),n.item.icon]},e.ptm("icon",l.ptmOptions)),null,16)):o.createCommentVNode("",!0),n.item.label?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:2,class:e.cx("label")},e.ptm("label",l.ptmOptions)),o.toDisplayString(l.label()),17)):o.createCommentVNode("",!0)],16,a))],16)):o.createCommentVNode("",!0)};var c={name:"Breadcrumb",extends:m,components:{BreadcrumbItem:s,ChevronRightIcon:r.default}};return c.render=function(e,t,n,i,r,l){var m=o.resolveComponent("BreadcrumbItem"),s=o.resolveComponent("ChevronRightIcon");return o.openBlock(),o.createElementBlock("nav",o.mergeProps({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"breadcrumb"}),[o.createElementVNode("ol",o.mergeProps({class:e.cx("menu")},e.ptm("menu")),[e.home?(o.openBlock(),o.createBlock(m,o.mergeProps({key:0,item:e.home,class:e.cx("home"),templates:e.$slots,pt:e.pt,unstyled:e.unstyled},e.ptm("home")),null,16,["item","class","templates","pt","unstyled"])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.model,(function(t,n){return o.openBlock(),o.createElementBlock(o.Fragment,{key:t.label+"_"+n},[e.home||0!==n?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:0,class:e.cx("separator")},e.ptm("separator")),[o.renderSlot(e.$slots,"separator",{},(function(){return[o.createVNode(s,o.mergeProps({"aria-hidden":"true"},e.ptm("separatorIcon")),null,16)]}))],16)):o.createCommentVNode("",!0),o.createVNode(m,{item:t,index:n,templates:e.$slots,pt:e.pt,unstyled:e.unstyled},null,8,["item","index","templates","pt","unstyled"])],64)})),128))],16)],16)},c}(primevue.icons.chevronright,primevue.basecomponent,primevue.breadcrumb.style,Vue);
|
package/calendar/Calendar.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export interface CalendarPassThroughMethodOptions {
|
|
|
48
48
|
*/
|
|
49
49
|
export interface CalendarResponsiveOptions {
|
|
50
50
|
/**
|
|
51
|
-
* Breakpoint for responsive mode. Exp;
|
|
51
|
+
* Breakpoint for responsive mode. Exp; \@media screen and (max-width: ${breakpoint}) {...}
|
|
52
52
|
*/
|
|
53
53
|
breakpoint: string;
|
|
54
54
|
/**
|
|
@@ -509,6 +509,11 @@ export interface CalendarProps {
|
|
|
509
509
|
* An array of options for responsive design.
|
|
510
510
|
*/
|
|
511
511
|
responsiveOptions?: CalendarResponsiveOptions[];
|
|
512
|
+
/**
|
|
513
|
+
* The breakpoint to define the maximum width boundary for datepicker panel.
|
|
514
|
+
* @defaultValue 769px
|
|
515
|
+
*/
|
|
516
|
+
breakpoint?: string | undefined;
|
|
512
517
|
/**
|
|
513
518
|
* Type of view to display.
|
|
514
519
|
* @defaultValue date
|
package/calendar/Calendar.vue
CHANGED
|
@@ -538,7 +538,8 @@ export default {
|
|
|
538
538
|
pm: null,
|
|
539
539
|
focused: false,
|
|
540
540
|
overlayVisible: false,
|
|
541
|
-
currentView: this.view
|
|
541
|
+
currentView: this.view,
|
|
542
|
+
queryMatches: false
|
|
542
543
|
};
|
|
543
544
|
},
|
|
544
545
|
watch: {
|
|
@@ -588,6 +589,13 @@ export default {
|
|
|
588
589
|
},
|
|
589
590
|
mounted() {
|
|
590
591
|
this.createResponsiveStyle();
|
|
592
|
+
const query = matchMedia(`(max-width: ${this.breakpoint})`);
|
|
593
|
+
|
|
594
|
+
this.queryMatches = query.matches;
|
|
595
|
+
|
|
596
|
+
query.addEventListener('change', () => {
|
|
597
|
+
this.queryMatches = query.matches;
|
|
598
|
+
});
|
|
591
599
|
|
|
592
600
|
if (this.inline) {
|
|
593
601
|
this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
|
package/calendar/calendar.cjs.js
CHANGED
|
@@ -82,6 +82,10 @@ var script$1 = {
|
|
|
82
82
|
"default": 1
|
|
83
83
|
},
|
|
84
84
|
responsiveOptions: Array,
|
|
85
|
+
breakpoint: {
|
|
86
|
+
type: String,
|
|
87
|
+
"default": '769px'
|
|
88
|
+
},
|
|
85
89
|
view: {
|
|
86
90
|
type: String,
|
|
87
91
|
"default": 'date'
|
|
@@ -291,7 +295,8 @@ var script = {
|
|
|
291
295
|
pm: null,
|
|
292
296
|
focused: false,
|
|
293
297
|
overlayVisible: false,
|
|
294
|
-
currentView: this.view
|
|
298
|
+
currentView: this.view,
|
|
299
|
+
queryMatches: false
|
|
295
300
|
};
|
|
296
301
|
},
|
|
297
302
|
watch: {
|
|
@@ -340,7 +345,13 @@ var script = {
|
|
|
340
345
|
this.updateCurrentMetaData();
|
|
341
346
|
},
|
|
342
347
|
mounted: function mounted() {
|
|
348
|
+
var _this2 = this;
|
|
343
349
|
this.createResponsiveStyle();
|
|
350
|
+
var query = matchMedia("(max-width: ".concat(this.breakpoint, ")"));
|
|
351
|
+
this.queryMatches = query.matches;
|
|
352
|
+
query.addEventListener('change', function () {
|
|
353
|
+
_this2.queryMatches = query.matches;
|
|
354
|
+
});
|
|
344
355
|
if (this.inline) {
|
|
345
356
|
this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
|
|
346
357
|
if (!this.disabled) {
|
|
@@ -423,12 +434,12 @@ var script = {
|
|
|
423
434
|
return false;
|
|
424
435
|
},
|
|
425
436
|
isMonthSelected: function isMonthSelected(month) {
|
|
426
|
-
var
|
|
437
|
+
var _this3 = this;
|
|
427
438
|
if (this.isComparable()) {
|
|
428
439
|
var value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
|
|
429
440
|
if (this.isMultipleSelection()) {
|
|
430
441
|
return value.some(function (currentValue) {
|
|
431
|
-
return currentValue.getMonth() === month && currentValue.getFullYear() ===
|
|
442
|
+
return currentValue.getMonth() === month && currentValue.getFullYear() === _this3.currentYear;
|
|
432
443
|
});
|
|
433
444
|
} else {
|
|
434
445
|
return value.getMonth() === month && value.getFullYear() === this.currentYear;
|
|
@@ -709,11 +720,11 @@ var script = {
|
|
|
709
720
|
this.currentSecond = Math.floor(date.getSeconds() / this.stepSecond) * this.stepSecond;
|
|
710
721
|
},
|
|
711
722
|
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
712
|
-
var
|
|
723
|
+
var _this4 = this;
|
|
713
724
|
if (!this.outsideClickListener) {
|
|
714
725
|
this.outsideClickListener = function (event) {
|
|
715
|
-
if (
|
|
716
|
-
|
|
726
|
+
if (_this4.overlayVisible && _this4.isOutsideClicked(event)) {
|
|
727
|
+
_this4.overlayVisible = false;
|
|
717
728
|
}
|
|
718
729
|
};
|
|
719
730
|
document.addEventListener('mousedown', this.outsideClickListener);
|
|
@@ -726,11 +737,11 @@ var script = {
|
|
|
726
737
|
}
|
|
727
738
|
},
|
|
728
739
|
bindScrollListener: function bindScrollListener() {
|
|
729
|
-
var
|
|
740
|
+
var _this5 = this;
|
|
730
741
|
if (!this.scrollHandler) {
|
|
731
742
|
this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.$refs.container, function () {
|
|
732
|
-
if (
|
|
733
|
-
|
|
743
|
+
if (_this5.overlayVisible) {
|
|
744
|
+
_this5.overlayVisible = false;
|
|
734
745
|
}
|
|
735
746
|
});
|
|
736
747
|
}
|
|
@@ -742,11 +753,11 @@ var script = {
|
|
|
742
753
|
}
|
|
743
754
|
},
|
|
744
755
|
bindResizeListener: function bindResizeListener() {
|
|
745
|
-
var
|
|
756
|
+
var _this6 = this;
|
|
746
757
|
if (!this.resizeListener) {
|
|
747
758
|
this.resizeListener = function () {
|
|
748
|
-
if (
|
|
749
|
-
|
|
759
|
+
if (_this6.overlayVisible && !utils.DomHandler.isTouchDevice()) {
|
|
760
|
+
_this6.overlayVisible = false;
|
|
750
761
|
}
|
|
751
762
|
};
|
|
752
763
|
window.addEventListener('resize', this.resizeListener);
|
|
@@ -833,7 +844,7 @@ var script = {
|
|
|
833
844
|
});
|
|
834
845
|
},
|
|
835
846
|
onDateSelect: function onDateSelect(event, dateMeta) {
|
|
836
|
-
var
|
|
847
|
+
var _this7 = this;
|
|
837
848
|
if (this.disabled || !dateMeta.selectable) {
|
|
838
849
|
return;
|
|
839
850
|
}
|
|
@@ -845,7 +856,7 @@ var script = {
|
|
|
845
856
|
}
|
|
846
857
|
if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
|
|
847
858
|
var newValue = this.modelValue.filter(function (date) {
|
|
848
|
-
return !
|
|
859
|
+
return !_this7.isDateEquals(date, dateMeta);
|
|
849
860
|
});
|
|
850
861
|
this.updateModel(newValue);
|
|
851
862
|
} else {
|
|
@@ -861,15 +872,15 @@ var script = {
|
|
|
861
872
|
}
|
|
862
873
|
if (this.isSingleSelection() && (!this.showTime || this.hideOnDateTimeSelect)) {
|
|
863
874
|
setTimeout(function () {
|
|
864
|
-
if (
|
|
865
|
-
|
|
875
|
+
if (_this7.input) {
|
|
876
|
+
_this7.input.focus();
|
|
866
877
|
}
|
|
867
|
-
|
|
878
|
+
_this7.overlayVisible = false;
|
|
868
879
|
}, 150);
|
|
869
880
|
}
|
|
870
881
|
},
|
|
871
882
|
selectDate: function selectDate(dateMeta) {
|
|
872
|
-
var
|
|
883
|
+
var _this8 = this;
|
|
873
884
|
var date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
|
|
874
885
|
if (this.showTime) {
|
|
875
886
|
if (this.hourFormat === '12' && this.pm && this.currentHour != 12) date.setHours(this.currentHour + 12);else date.setHours(this.currentHour);
|
|
@@ -913,7 +924,7 @@ var script = {
|
|
|
913
924
|
}
|
|
914
925
|
if (this.isRangeSelection() && this.hideOnRangeSelection && modelVal[1] !== null) {
|
|
915
926
|
setTimeout(function () {
|
|
916
|
-
|
|
927
|
+
_this8.overlayVisible = false;
|
|
917
928
|
}, 150);
|
|
918
929
|
}
|
|
919
930
|
this.$emit('date-select', date);
|
|
@@ -1119,11 +1130,11 @@ var script = {
|
|
|
1119
1130
|
this.clearTimePickerTimer();
|
|
1120
1131
|
},
|
|
1121
1132
|
repeat: function repeat(event, interval, type, direction) {
|
|
1122
|
-
var
|
|
1133
|
+
var _this9 = this;
|
|
1123
1134
|
var i = interval || 500;
|
|
1124
1135
|
this.clearTimePickerTimer();
|
|
1125
1136
|
this.timePickerTimer = setTimeout(function () {
|
|
1126
|
-
|
|
1137
|
+
_this9.repeat(event, 100, type, direction);
|
|
1127
1138
|
}, i);
|
|
1128
1139
|
switch (type) {
|
|
1129
1140
|
case 0:
|
|
@@ -1253,7 +1264,7 @@ var script = {
|
|
|
1253
1264
|
event.preventDefault();
|
|
1254
1265
|
},
|
|
1255
1266
|
updateModelTime: function updateModelTime() {
|
|
1256
|
-
var
|
|
1267
|
+
var _this10 = this;
|
|
1257
1268
|
this.timePickerChange = true;
|
|
1258
1269
|
var value = this.isComparable() ? this.modelValue : this.viewDate;
|
|
1259
1270
|
if (this.isRangeSelection()) {
|
|
@@ -1279,7 +1290,7 @@ var script = {
|
|
|
1279
1290
|
this.updateModel(value);
|
|
1280
1291
|
this.$emit('date-select', value);
|
|
1281
1292
|
setTimeout(function () {
|
|
1282
|
-
return
|
|
1293
|
+
return _this10.timePickerChange = false;
|
|
1283
1294
|
}, 0);
|
|
1284
1295
|
},
|
|
1285
1296
|
toggleAMPM: function toggleAMPM(event) {
|
|
@@ -1333,14 +1344,14 @@ var script = {
|
|
|
1333
1344
|
setTimeout(this.updateFocus, 0);
|
|
1334
1345
|
},
|
|
1335
1346
|
enableModality: function enableModality() {
|
|
1336
|
-
var
|
|
1347
|
+
var _this11 = this;
|
|
1337
1348
|
if (!this.mask) {
|
|
1338
1349
|
this.mask = document.createElement('div');
|
|
1339
1350
|
this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
|
|
1340
1351
|
this.mask.setAttribute('data-pc-section', 'datepicker-mask');
|
|
1341
1352
|
!this.isUnstyled && utils.DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
|
|
1342
1353
|
this.maskClickListener = function () {
|
|
1343
|
-
|
|
1354
|
+
_this11.overlayVisible = false;
|
|
1344
1355
|
};
|
|
1345
1356
|
this.mask.addEventListener('click', this.maskClickListener);
|
|
1346
1357
|
document.body.appendChild(this.mask);
|
|
@@ -1348,14 +1359,14 @@ var script = {
|
|
|
1348
1359
|
}
|
|
1349
1360
|
},
|
|
1350
1361
|
disableModality: function disableModality() {
|
|
1351
|
-
var
|
|
1362
|
+
var _this12 = this;
|
|
1352
1363
|
if (this.mask) {
|
|
1353
1364
|
if (this.isUnstyled) {
|
|
1354
1365
|
this.destroyMask();
|
|
1355
1366
|
} else {
|
|
1356
1367
|
utils.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
|
|
1357
1368
|
this.mask.addEventListener('animationend', function () {
|
|
1358
|
-
|
|
1369
|
+
_this12.destroyMask();
|
|
1359
1370
|
});
|
|
1360
1371
|
}
|
|
1361
1372
|
}
|
|
@@ -1387,7 +1398,7 @@ var script = {
|
|
|
1387
1398
|
}
|
|
1388
1399
|
},
|
|
1389
1400
|
isValidSelection: function isValidSelection(value) {
|
|
1390
|
-
var
|
|
1401
|
+
var _this13 = this;
|
|
1391
1402
|
if (value == null) {
|
|
1392
1403
|
return true;
|
|
1393
1404
|
}
|
|
@@ -1397,7 +1408,7 @@ var script = {
|
|
|
1397
1408
|
isValid = false;
|
|
1398
1409
|
}
|
|
1399
1410
|
} else if (value.every(function (v) {
|
|
1400
|
-
return
|
|
1411
|
+
return _this13.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
|
|
1401
1412
|
})) {
|
|
1402
1413
|
if (this.isRangeSelection()) {
|
|
1403
1414
|
isValid = value.length > 1 && value[1] > value[0] ? true : false;
|
|
@@ -2429,20 +2440,20 @@ var script = {
|
|
|
2429
2440
|
}
|
|
2430
2441
|
},
|
|
2431
2442
|
monthPickerValues: function monthPickerValues() {
|
|
2432
|
-
var
|
|
2443
|
+
var _this14 = this;
|
|
2433
2444
|
var monthPickerValues = [];
|
|
2434
2445
|
var isSelectableMonth = function isSelectableMonth(baseMonth) {
|
|
2435
|
-
if (
|
|
2436
|
-
var minMonth =
|
|
2437
|
-
var minYear =
|
|
2438
|
-
if (
|
|
2446
|
+
if (_this14.minDate) {
|
|
2447
|
+
var minMonth = _this14.minDate.getMonth();
|
|
2448
|
+
var minYear = _this14.minDate.getFullYear();
|
|
2449
|
+
if (_this14.currentYear < minYear || _this14.currentYear === minYear && baseMonth < minMonth) {
|
|
2439
2450
|
return false;
|
|
2440
2451
|
}
|
|
2441
2452
|
}
|
|
2442
|
-
if (
|
|
2443
|
-
var maxMonth =
|
|
2444
|
-
var maxYear =
|
|
2445
|
-
if (
|
|
2453
|
+
if (_this14.maxDate) {
|
|
2454
|
+
var maxMonth = _this14.maxDate.getMonth();
|
|
2455
|
+
var maxYear = _this14.maxDate.getFullYear();
|
|
2456
|
+
if (_this14.currentYear > maxYear || _this14.currentYear === maxYear && baseMonth > maxMonth) {
|
|
2446
2457
|
return false;
|
|
2447
2458
|
}
|
|
2448
2459
|
}
|
|
@@ -2457,15 +2468,15 @@ var script = {
|
|
|
2457
2468
|
return monthPickerValues;
|
|
2458
2469
|
},
|
|
2459
2470
|
yearPickerValues: function yearPickerValues() {
|
|
2460
|
-
var
|
|
2471
|
+
var _this15 = this;
|
|
2461
2472
|
var yearPickerValues = [];
|
|
2462
2473
|
var base = this.currentYear - this.currentYear % 10;
|
|
2463
2474
|
var isSelectableYear = function isSelectableYear(baseYear) {
|
|
2464
|
-
if (
|
|
2465
|
-
if (
|
|
2475
|
+
if (_this15.minDate) {
|
|
2476
|
+
if (_this15.minDate.getFullYear() > baseYear) return false;
|
|
2466
2477
|
}
|
|
2467
|
-
if (
|
|
2468
|
-
if (
|
|
2478
|
+
if (_this15.maxDate) {
|
|
2479
|
+
if (_this15.maxDate.getFullYear() < baseYear) return false;
|
|
2469
2480
|
}
|
|
2470
2481
|
return true;
|
|
2471
2482
|
};
|