primevue 2.10.0 → 2.10.1
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 +150 -3
- package/accordion/accordion.common.js +2 -7
- package/accordion/accordion.umd.js +2 -7
- package/accordiontab/accordiontab.common.js +15 -68
- package/accordiontab/accordiontab.umd.js +15 -68
- package/api/Api.d.ts +24 -2
- package/api/Api.js +0 -6
- package/api/FilterService.js +2 -55
- package/api/PrimeIcons.js +24 -2
- package/api/api.common.js +35 -98
- package/api/api.umd.js +35 -98
- package/api/api.umd.min.js +1 -1
- package/api/filterservice.common.js +11 -96
- package/api/filterservice.umd.js +11 -96
- package/api/primeicons.common.js +24 -2
- package/api/primeicons.umd.js +24 -2
- package/api/primeicons.umd.min.js +1 -1
- package/autocomplete/autocomplete.common.js +33 -189
- package/autocomplete/autocomplete.umd.js +33 -189
- package/avatar/avatar.common.js +2 -4
- package/avatar/avatar.umd.js +2 -4
- package/avatargroup/avatargroup.common.js +2 -4
- package/avatargroup/avatargroup.umd.js +2 -4
- package/badge/badge.common.js +2 -4
- package/badge/badge.umd.js +2 -4
- package/badgedirective/BadgeDirective.js +0 -13
- package/badgedirective/badgedirective.common.js +13 -71
- package/badgedirective/badgedirective.umd.js +13 -71
- package/blockui/blockui.common.js +15 -73
- package/blockui/blockui.umd.js +15 -73
- package/breadcrumb/breadcrumb.common.js +7 -12
- package/breadcrumb/breadcrumb.umd.js +7 -12
- package/breadcrumb/breadcrumbitem.common.js +5 -8
- package/breadcrumb/breadcrumbitem.umd.js +5 -8
- package/button/button.common.js +15 -81
- package/button/button.umd.js +15 -81
- package/calendar/calendar.common.js +109 -498
- package/calendar/calendar.umd.js +109 -498
- package/card/card.common.js +2 -4
- package/card/card.umd.js +2 -4
- package/carousel/carousel.common.js +15 -123
- package/carousel/carousel.umd.js +15 -123
- package/cascadeselect/cascadeselect.common.js +29 -187
- package/cascadeselect/cascadeselect.umd.js +29 -187
- package/cascadeselect/cascadeselectsub.common.js +25 -149
- package/cascadeselect/cascadeselectsub.umd.js +25 -149
- package/cascadeselect/demo.html +4 -3
- package/chart/chart.common.js +2 -9
- package/chart/chart.umd.js +2 -9
- package/checkbox/checkbox.common.js +11 -61
- package/checkbox/checkbox.umd.js +11 -61
- package/chip/chip.common.js +2 -4
- package/chip/chip.umd.js +2 -4
- package/chips/chips.common.js +3 -20
- package/chips/chips.umd.js +3 -20
- package/colorpicker/colorpicker.common.js +16 -111
- package/colorpicker/colorpicker.umd.js +16 -111
- package/columngroup/columngroup.common.js +2 -4
- package/columngroup/columngroup.umd.js +2 -4
- package/config/PrimeVue.js +0 -5
- package/config/primevue.common.js +35 -102
- package/config/primevue.umd.js +35 -102
- package/config/primevue.umd.min.js +1 -1
- package/confirmationeventbus/ConfirmationEventBus.js +0 -4
- package/confirmationeventbus/confirmationeventbus.common.js +0 -2
- package/confirmationeventbus/confirmationeventbus.umd.js +0 -2
- package/confirmationservice/ConfirmationService.js +0 -3
- package/confirmationservice/confirmationservice.common.js +0 -2
- package/confirmationservice/confirmationservice.umd.js +0 -2
- package/confirmdialog/confirmdialog.common.js +19 -107
- package/confirmdialog/confirmdialog.umd.js +19 -107
- package/confirmpopup/confirmpopup.common.js +17 -109
- package/confirmpopup/confirmpopup.umd.js +17 -109
- package/contextmenu/contextmenu.common.js +28 -111
- package/contextmenu/contextmenu.umd.js +28 -111
- package/contextmenu/contextmenusub.common.js +18 -90
- package/contextmenu/contextmenusub.umd.js +18 -90
- package/datatable/bodycell.common.js +28 -164
- package/datatable/bodycell.umd.js +28 -164
- package/datatable/columnfilter.common.js +35 -247
- package/datatable/columnfilter.umd.js +35 -247
- package/datatable/datatable.common.js +165 -855
- package/datatable/datatable.umd.js +165 -855
- package/datatable/datatable.umd.min.js +1 -1
- package/datatable/demo.html +3 -5
- package/datatable/footercell.common.js +24 -119
- package/datatable/footercell.umd.js +24 -119
- package/datatable/headercell.common.js +39 -266
- package/datatable/headercell.umd.js +39 -266
- package/datatable/headercheckbox.common.js +2 -4
- package/datatable/headercheckbox.umd.js +2 -4
- package/datatable/rowcheckbox.common.js +2 -4
- package/datatable/rowcheckbox.umd.js +2 -4
- package/datatable/rowradiobutton.common.js +2 -4
- package/datatable/rowradiobutton.umd.js +2 -4
- package/datatable/tablebody.common.js +30 -191
- package/datatable/tablebody.umd.js +30 -191
- package/datatable/tablefooter.common.js +27 -135
- package/datatable/tablefooter.umd.js +27 -135
- package/datatable/tableheader.common.js +41 -273
- package/datatable/tableheader.umd.js +41 -273
- package/datatable/tableloadingbody.common.js +2 -4
- package/datatable/tableloadingbody.umd.js +2 -4
- package/dataview/dataview.common.js +121 -407
- package/dataview/dataview.umd.js +121 -407
- package/dataview/dataview.umd.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +2 -4
- package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +2 -4
- package/deferredcontent/deferredcontent.common.js +2 -7
- package/deferredcontent/deferredcontent.umd.js +2 -7
- package/dialog/dialog.common.js +15 -93
- package/dialog/dialog.umd.js +15 -93
- package/divider/divider.common.js +2 -4
- package/divider/divider.umd.js +2 -4
- package/dock/dock.common.js +7 -14
- package/dock/dock.umd.js +7 -14
- package/dock/docksub.common.js +5 -9
- package/dock/docksub.umd.js +5 -9
- package/dropdown/dropdown.common.js +31 -188
- package/dropdown/dropdown.umd.js +31 -188
- package/editor/editor.common.js +8 -21
- package/editor/editor.umd.js +8 -21
- package/fieldset/fieldset.common.js +15 -81
- package/fieldset/fieldset.umd.js +15 -81
- package/fileupload/fileupload.common.js +28 -142
- package/fileupload/fileupload.umd.js +28 -142
- package/fullcalendar/fullcalendar.common.js +10 -17
- package/fullcalendar/fullcalendar.umd.js +10 -17
- package/fullcalendar/fullcalendar.umd.min.js +3 -3
- package/galleria/galleria.common.js +25 -147
- package/galleria/galleria.umd.js +25 -147
- package/galleria/galleriacontent.common.js +23 -137
- package/galleria/galleriacontent.umd.js +23 -137
- package/galleria/galleriaitem.common.js +19 -93
- package/galleria/galleriaitem.umd.js +19 -93
- package/galleria/galleriaitemslot.common.js +4 -10
- package/galleria/galleriaitemslot.umd.js +4 -10
- package/galleria/galleriathumbnails.common.js +19 -125
- package/galleria/galleriathumbnails.umd.js +19 -125
- package/imagepreview/imagepreview.common.js +16 -71
- package/imagepreview/imagepreview.umd.js +16 -71
- package/inlinemessage/inlinemessage.common.js +2 -5
- package/inlinemessage/inlinemessage.umd.js +2 -5
- package/inplace/inplace.common.js +17 -85
- package/inplace/inplace.umd.js +17 -85
- package/inputmask/inputmask.common.js +31 -155
- package/inputmask/inputmask.umd.js +31 -155
- package/inputnumber/InputNumber.vue +2 -2
- package/inputnumber/inputnumber.common.js +73 -233
- package/inputnumber/inputnumber.umd.js +73 -233
- package/inputnumber/inputnumber.umd.min.js +1 -1
- package/inputswitch/inputswitch.common.js +2 -5
- package/inputswitch/inputswitch.umd.js +2 -5
- package/inputtext/inputtext.common.js +2 -9
- package/inputtext/inputtext.umd.js +2 -9
- package/knob/knob.common.js +4 -5
- package/knob/knob.umd.js +4 -5
- package/listbox/listbox.common.js +27 -156
- package/listbox/listbox.umd.js +27 -156
- package/megamenu/megamenu.common.js +24 -111
- package/megamenu/megamenu.umd.js +24 -111
- package/menu/menu.common.js +20 -107
- package/menu/menu.umd.js +20 -107
- package/menu/menuitem.common.js +18 -84
- package/menu/menuitem.umd.js +18 -84
- package/menubar/demo.html +4 -3
- package/menubar/menubar.common.js +23 -112
- package/menubar/menubar.umd.js +23 -112
- package/menubar/menubarsub.common.js +21 -106
- package/menubar/menubarsub.umd.js +21 -106
- package/message/message.common.js +15 -82
- package/message/message.umd.js +15 -82
- package/multiselect/multiselect.common.js +32 -189
- package/multiselect/multiselect.umd.js +32 -189
- package/orderlist/orderlist.common.js +28 -162
- package/orderlist/orderlist.umd.js +28 -162
- package/organizationchart/organizationchart.common.js +17 -82
- package/organizationchart/organizationchart.umd.js +17 -82
- package/organizationchart/organizationchartnode.common.js +15 -68
- package/organizationchart/organizationchartnode.umd.js +15 -68
- package/overlayeventbus/OverlayEventBus.js +0 -4
- package/overlayeventbus/overlayeventbus.common.js +0 -2
- package/overlayeventbus/overlayeventbus.umd.js +0 -2
- package/overlaypanel/overlaypanel.common.js +15 -104
- package/overlaypanel/overlaypanel.umd.js +15 -104
- package/package.json +2 -2
- package/paginator/currentpagereport.common.js +2 -4
- package/paginator/currentpagereport.umd.js +2 -4
- package/paginator/firstpagelink.common.js +15 -81
- package/paginator/firstpagelink.umd.js +15 -81
- package/paginator/jumptopagedropdown.common.js +33 -194
- package/paginator/jumptopagedropdown.umd.js +33 -194
- package/paginator/jumptopageinput.common.js +79 -241
- package/paginator/jumptopageinput.umd.js +79 -241
- package/paginator/jumptopageinput.umd.min.js +1 -1
- package/paginator/lastpagelink.common.js +15 -81
- package/paginator/lastpagelink.umd.js +15 -81
- package/paginator/nextpagelink.common.js +15 -81
- package/paginator/nextpagelink.umd.js +15 -81
- package/paginator/pagelinks.common.js +15 -81
- package/paginator/pagelinks.umd.js +15 -81
- package/paginator/paginator.common.js +119 -399
- package/paginator/paginator.umd.js +119 -399
- package/paginator/paginator.umd.min.js +1 -1
- package/paginator/prevpagelink.common.js +15 -81
- package/paginator/prevpagelink.umd.js +15 -81
- package/paginator/rowsperpagedropdown.common.js +33 -194
- package/paginator/rowsperpagedropdown.umd.js +33 -194
- package/panel/panel.common.js +15 -81
- package/panel/panel.umd.js +15 -81
- package/panelmenu/panelmenu.common.js +10 -22
- package/panelmenu/panelmenu.umd.js +10 -22
- package/panelmenu/panelmenusub.common.js +5 -11
- package/panelmenu/panelmenusub.umd.js +5 -11
- package/password/Password.vue +38 -11
- package/password/password.common.js +117 -179
- package/password/password.umd.js +117 -179
- package/password/password.umd.min.js +1 -1
- package/picklist/picklist.common.js +28 -194
- package/picklist/picklist.umd.js +28 -194
- package/progressbar/progressbar.common.js +2 -4
- package/progressbar/progressbar.umd.js +2 -4
- package/progressspinner/progressspinner.common.js +2 -5
- package/progressspinner/progressspinner.umd.js +2 -5
- package/radiobutton/radiobutton.common.js +11 -57
- package/radiobutton/radiobutton.umd.js +11 -57
- package/rating/rating.common.js +2 -4
- package/rating/rating.umd.js +2 -4
- package/ripple/Ripple.js +0 -18
- package/ripple/ripple.common.js +13 -77
- package/ripple/ripple.umd.js +13 -77
- package/row/row.common.js +2 -4
- package/row/row.umd.js +2 -4
- package/scrollpanel/scrollpanel.common.js +18 -83
- package/scrollpanel/scrollpanel.umd.js +18 -83
- package/scrolltop/scrolltop.common.js +15 -71
- package/scrolltop/scrolltop.umd.js +15 -71
- package/selectbutton/selectbutton.common.js +25 -143
- package/selectbutton/selectbutton.umd.js +25 -143
- package/sidebar/Sidebar.d.ts +1 -0
- package/sidebar/Sidebar.vue +3 -0
- package/sidebar/sidebar.common.js +63 -137
- package/sidebar/sidebar.umd.js +63 -137
- package/sidebar/sidebar.umd.min.js +1 -1
- package/skeleton/skeleton.common.js +2 -4
- package/skeleton/skeleton.umd.js +2 -4
- package/slider/Slider.vue +1 -1
- package/slider/slider.common.js +64 -139
- package/slider/slider.umd.js +64 -139
- package/slider/slider.umd.min.js +1 -1
- package/speeddial/SpeedDial.vue +2 -2
- package/speeddial/speeddial.common.js +63 -152
- package/speeddial/speeddial.umd.js +63 -152
- package/speeddial/speeddial.umd.min.js +1 -1
- package/splitbutton/splitbutton.common.js +24 -115
- package/splitbutton/splitbutton.umd.js +24 -115
- package/splitter/splitter.common.js +13 -84
- package/splitter/splitter.umd.js +13 -84
- package/steps/steps.common.js +5 -9
- package/steps/steps.umd.js +5 -9
- package/styleclass/StyleClass.js +0 -43
- package/styleclass/styleclass.common.js +13 -99
- package/styleclass/styleclass.umd.js +13 -99
- package/tabmenu/tabmenu.common.js +15 -86
- package/tabmenu/tabmenu.umd.js +15 -86
- package/tabpanel/tabpanel.common.js +2 -5
- package/tabpanel/tabpanel.umd.js +2 -5
- package/tabview/tabview.common.js +27 -134
- package/tabview/tabview.umd.js +27 -134
- package/tag/tag.common.js +2 -4
- package/tag/tag.umd.js +2 -4
- package/terminal/terminal.common.js +2 -4
- package/terminal/terminal.umd.js +2 -4
- package/terminalservice/TerminalService.js +0 -3
- package/textarea/Textarea.vue +24 -1
- package/textarea/textarea.common.js +2045 -60
- package/textarea/textarea.umd.js +2045 -60
- package/textarea/textarea.umd.min.js +1 -1
- package/tieredmenu/tieredmenu.common.js +22 -124
- package/tieredmenu/tieredmenu.umd.js +22 -124
- package/tieredmenu/tieredmenusub.common.js +20 -102
- package/tieredmenu/tieredmenusub.umd.js +20 -102
- package/timeline/timeline.common.js +11 -56
- package/timeline/timeline.umd.js +11 -56
- package/toast/toast.common.js +17 -97
- package/toast/toast.umd.js +17 -97
- package/toast/toastmessage.common.js +15 -82
- package/toast/toastmessage.umd.js +15 -82
- package/toastservice/ToastEventBus.js +0 -3
- package/toastservice/ToastService.js +0 -3
- package/togglebutton/togglebutton.common.js +15 -81
- package/togglebutton/togglebutton.umd.js +15 -81
- package/toolbar/toolbar.common.js +2 -4
- package/toolbar/toolbar.umd.js +2 -4
- package/tooltip/Tooltip.js +4 -84
- package/tooltip/tooltip.common.js +17 -133
- package/tooltip/tooltip.umd.js +17 -133
- package/tree/tree.common.js +36 -211
- package/tree/tree.umd.js +36 -211
- package/tree/treenode.common.js +20 -117
- package/tree/treenode.umd.js +20 -117
- package/treetable/footercell.common.js +24 -119
- package/treetable/footercell.umd.js +24 -119
- package/treetable/headercell.common.js +24 -127
- package/treetable/headercell.umd.js +24 -127
- package/treetable/treetable.common.js +149 -625
- package/treetable/treetable.umd.js +149 -625
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablerow.common.js +29 -159
- package/treetable/treetablerow.umd.js +29 -159
- package/treetable/treetablerowloader.common.js +31 -179
- package/treetable/treetablerowloader.umd.js +31 -179
- package/tristatecheckbox/tristatecheckbox.common.js +2 -12
- package/tristatecheckbox/tristatecheckbox.umd.js +2 -12
- package/utils/ConnectedOverlayScrollHandler.js +0 -12
- package/utils/DomHandler.js +13 -61
- package/utils/EventBus.js +0 -3
- package/utils/ObjectUtils.js +9 -51
- package/utils/UniqueComponentId.js +0 -1
- package/utils/Utils.js +0 -6
- package/utils/connectedoverlayscrollhandler.common.js +13 -70
- package/utils/connectedoverlayscrollhandler.umd.js +13 -70
- package/utils/domhandler.common.js +13 -63
- package/utils/domhandler.umd.js +13 -63
- package/utils/eventbus.common.js +0 -2
- package/utils/eventbus.umd.js +0 -2
- package/utils/objectutils.common.js +9 -52
- package/utils/objectutils.umd.js +9 -52
- package/utils/utils.common.js +22 -119
- package/utils/utils.umd.js +22 -119
- package/web-types.json +8 -1
|
@@ -3296,11 +3296,10 @@ if (typeof window !== 'undefined') {
|
|
|
3296
3296
|
// Indicate to webpack that this file can be concatenated
|
|
3297
3297
|
/* harmony default export */ var setPublicPath = (null);
|
|
3298
3298
|
|
|
3299
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3299
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"08364d47-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/contextmenu/ContextMenu.vue?vue&type=template&id=47d55cea&
|
|
3300
3300
|
var render = function render() {
|
|
3301
3301
|
var _vm = this,
|
|
3302
|
-
|
|
3303
|
-
|
|
3302
|
+
_c = _vm._self._c;
|
|
3304
3303
|
return _c('transition', {
|
|
3305
3304
|
attrs: {
|
|
3306
3305
|
"name": "p-contextmenu"
|
|
@@ -3323,7 +3322,6 @@ var render = function render() {
|
|
|
3323
3322
|
}
|
|
3324
3323
|
})], 1) : _vm._e()]);
|
|
3325
3324
|
};
|
|
3326
|
-
|
|
3327
3325
|
var staticRenderFns = [];
|
|
3328
3326
|
|
|
3329
3327
|
// CONCATENATED MODULE: ./src/components/contextmenu/ContextMenu.vue?vue&type=template&id=47d55cea&
|
|
@@ -3373,26 +3371,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
3373
3371
|
|
|
3374
3372
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
3375
3373
|
|
|
3376
|
-
|
|
3377
3374
|
function _defineProperties(target, props) {
|
|
3378
3375
|
for (var i = 0; i < props.length; i++) {
|
|
3379
3376
|
var descriptor = props[i];
|
|
3380
3377
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
3381
3378
|
descriptor.configurable = true;
|
|
3382
3379
|
if ("value" in descriptor) descriptor.writable = true;
|
|
3383
|
-
|
|
3384
3380
|
define_property_default()(target, descriptor.key, descriptor);
|
|
3385
3381
|
}
|
|
3386
3382
|
}
|
|
3387
|
-
|
|
3388
3383
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
3389
3384
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
3390
3385
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
3391
|
-
|
|
3392
3386
|
define_property_default()(Constructor, "prototype", {
|
|
3393
3387
|
writable: false
|
|
3394
3388
|
});
|
|
3395
|
-
|
|
3396
3389
|
return Constructor;
|
|
3397
3390
|
}
|
|
3398
3391
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -3408,18 +3401,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
3408
3401
|
|
|
3409
3402
|
|
|
3410
3403
|
|
|
3411
|
-
|
|
3412
3404
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
3413
|
-
|
|
3414
3405
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
3415
|
-
|
|
3416
3406
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
3417
|
-
|
|
3418
3407
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
3419
3408
|
function DomHandler() {
|
|
3420
3409
|
_classCallCheck(this, DomHandler);
|
|
3421
3410
|
}
|
|
3422
|
-
|
|
3423
3411
|
_createClass(DomHandler, null, [{
|
|
3424
3412
|
key: "innerWidth",
|
|
3425
3413
|
value: function innerWidth(el) {
|
|
@@ -3453,12 +3441,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3453
3441
|
value: function getOuterWidth(el, margin) {
|
|
3454
3442
|
if (el) {
|
|
3455
3443
|
var width = el.offsetWidth;
|
|
3456
|
-
|
|
3457
3444
|
if (margin) {
|
|
3458
3445
|
var style = getComputedStyle(el);
|
|
3459
3446
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
3460
3447
|
}
|
|
3461
|
-
|
|
3462
3448
|
return width;
|
|
3463
3449
|
} else {
|
|
3464
3450
|
return 0;
|
|
@@ -3469,12 +3455,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3469
3455
|
value: function getOuterHeight(el, margin) {
|
|
3470
3456
|
if (el) {
|
|
3471
3457
|
var height = el.offsetHeight;
|
|
3472
|
-
|
|
3473
3458
|
if (margin) {
|
|
3474
3459
|
var style = getComputedStyle(el);
|
|
3475
3460
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3476
3461
|
}
|
|
3477
|
-
|
|
3478
3462
|
return height;
|
|
3479
3463
|
} else {
|
|
3480
3464
|
return 0;
|
|
@@ -3485,12 +3469,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3485
3469
|
value: function getClientHeight(el, margin) {
|
|
3486
3470
|
if (el) {
|
|
3487
3471
|
var height = el.clientHeight;
|
|
3488
|
-
|
|
3489
3472
|
if (margin) {
|
|
3490
3473
|
var style = getComputedStyle(el);
|
|
3491
3474
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3492
3475
|
}
|
|
3493
|
-
|
|
3494
3476
|
return height;
|
|
3495
3477
|
} else {
|
|
3496
3478
|
return 0;
|
|
@@ -3500,11 +3482,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3500
3482
|
key: "getViewport",
|
|
3501
3483
|
value: function getViewport() {
|
|
3502
3484
|
var win = window,
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3485
|
+
d = document,
|
|
3486
|
+
e = d.documentElement,
|
|
3487
|
+
g = d.getElementsByTagName('body')[0],
|
|
3488
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
3489
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
3508
3490
|
return {
|
|
3509
3491
|
width: w,
|
|
3510
3492
|
height: h
|
|
@@ -3535,12 +3517,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3535
3517
|
value: function index(element) {
|
|
3536
3518
|
var children = element.parentNode.childNodes;
|
|
3537
3519
|
var num = 0;
|
|
3538
|
-
|
|
3539
3520
|
for (var i = 0; i < children.length; i++) {
|
|
3540
3521
|
if (children[i] === element) return num;
|
|
3541
3522
|
if (children[i].nodeType === 1) num++;
|
|
3542
3523
|
}
|
|
3543
|
-
|
|
3544
3524
|
return -1;
|
|
3545
3525
|
}
|
|
3546
3526
|
}, {
|
|
@@ -3548,13 +3528,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3548
3528
|
value: function addMultipleClasses(element, className) {
|
|
3549
3529
|
if (element.classList) {
|
|
3550
3530
|
var styles = className.split(' ');
|
|
3551
|
-
|
|
3552
3531
|
for (var i = 0; i < styles.length; i++) {
|
|
3553
3532
|
element.classList.add(styles[i]);
|
|
3554
3533
|
}
|
|
3555
3534
|
} else {
|
|
3556
3535
|
var _styles = className.split(' ');
|
|
3557
|
-
|
|
3558
3536
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
3559
3537
|
element.className += ' ' + _styles[_i];
|
|
3560
3538
|
}
|
|
@@ -3576,7 +3554,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3576
3554
|
if (element) {
|
|
3577
3555
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
3578
3556
|
}
|
|
3579
|
-
|
|
3580
3557
|
return false;
|
|
3581
3558
|
}
|
|
3582
3559
|
}, {
|
|
@@ -3621,11 +3598,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3621
3598
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
3622
3599
|
var viewport = this.getViewport();
|
|
3623
3600
|
var top, left;
|
|
3624
|
-
|
|
3625
3601
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
3626
3602
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
3627
3603
|
element.style.transformOrigin = 'bottom';
|
|
3628
|
-
|
|
3629
3604
|
if (top < 0) {
|
|
3630
3605
|
top = windowScrollTop;
|
|
3631
3606
|
}
|
|
@@ -3633,7 +3608,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3633
3608
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
3634
3609
|
element.style.transformOrigin = 'top';
|
|
3635
3610
|
}
|
|
3636
|
-
|
|
3637
3611
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
3638
3612
|
element.style.top = top + 'px';
|
|
3639
3613
|
element.style.left = left + 'px';
|
|
@@ -3649,11 +3623,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3649
3623
|
var targetOffset = target.getBoundingClientRect();
|
|
3650
3624
|
var viewport = this.getViewport();
|
|
3651
3625
|
var top, left;
|
|
3652
|
-
|
|
3653
3626
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
3654
3627
|
top = -1 * elementDimensions.height;
|
|
3655
3628
|
element.style.transformOrigin = 'bottom';
|
|
3656
|
-
|
|
3657
3629
|
if (targetOffset.top + top < 0) {
|
|
3658
3630
|
top = -1 * targetOffset.top;
|
|
3659
3631
|
}
|
|
@@ -3661,7 +3633,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3661
3633
|
top = targetHeight;
|
|
3662
3634
|
element.style.transformOrigin = 'top';
|
|
3663
3635
|
}
|
|
3664
|
-
|
|
3665
3636
|
if (elementDimensions.width > viewport.width) {
|
|
3666
3637
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
3667
3638
|
left = targetOffset.left * -1;
|
|
@@ -3672,7 +3643,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3672
3643
|
// element fits on screen (align with target)
|
|
3673
3644
|
left = 0;
|
|
3674
3645
|
}
|
|
3675
|
-
|
|
3676
3646
|
element.style.top = top + 'px';
|
|
3677
3647
|
element.style.left = left + 'px';
|
|
3678
3648
|
}
|
|
@@ -3686,35 +3656,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3686
3656
|
key: "getScrollableParents",
|
|
3687
3657
|
value: function getScrollableParents(element) {
|
|
3688
3658
|
var scrollableParents = [];
|
|
3689
|
-
|
|
3690
3659
|
if (element) {
|
|
3691
3660
|
var parents = this.getParents(element);
|
|
3692
3661
|
var overflowRegex = /(auto|scroll)/;
|
|
3693
|
-
|
|
3694
3662
|
var overflowCheck = function overflowCheck(node) {
|
|
3695
3663
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
3696
3664
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
3697
3665
|
};
|
|
3698
|
-
|
|
3699
3666
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
3700
|
-
|
|
3701
|
-
|
|
3667
|
+
_step;
|
|
3702
3668
|
try {
|
|
3703
3669
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3704
3670
|
var parent = _step.value;
|
|
3705
3671
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
3706
|
-
|
|
3707
3672
|
if (scrollSelectors) {
|
|
3708
3673
|
var selectors = scrollSelectors.split(',');
|
|
3709
|
-
|
|
3710
3674
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
3711
|
-
|
|
3712
|
-
|
|
3675
|
+
_step2;
|
|
3713
3676
|
try {
|
|
3714
3677
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
3715
3678
|
var selector = _step2.value;
|
|
3716
3679
|
var el = this.findSingle(parent, selector);
|
|
3717
|
-
|
|
3718
3680
|
if (el && overflowCheck(el)) {
|
|
3719
3681
|
scrollableParents.push(el);
|
|
3720
3682
|
}
|
|
@@ -3732,7 +3694,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3732
3694
|
_iterator.f();
|
|
3733
3695
|
}
|
|
3734
3696
|
}
|
|
3735
|
-
|
|
3736
3697
|
return scrollableParents;
|
|
3737
3698
|
}
|
|
3738
3699
|
}, {
|
|
@@ -3773,34 +3734,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3773
3734
|
element.style.opacity = 0;
|
|
3774
3735
|
var last = +new Date();
|
|
3775
3736
|
var opacity = 0;
|
|
3776
|
-
|
|
3777
3737
|
var tick = function tick() {
|
|
3778
3738
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
3779
3739
|
element.style.opacity = opacity;
|
|
3780
3740
|
last = +new Date();
|
|
3781
|
-
|
|
3782
3741
|
if (+opacity < 1) {
|
|
3783
3742
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
3784
3743
|
}
|
|
3785
3744
|
};
|
|
3786
|
-
|
|
3787
3745
|
tick();
|
|
3788
3746
|
}
|
|
3789
3747
|
}, {
|
|
3790
3748
|
key: "fadeOut",
|
|
3791
3749
|
value: function fadeOut(element, ms) {
|
|
3792
3750
|
var opacity = 1,
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3751
|
+
interval = 50,
|
|
3752
|
+
duration = ms,
|
|
3753
|
+
gap = interval / duration;
|
|
3796
3754
|
var fading = setInterval(function () {
|
|
3797
3755
|
opacity -= gap;
|
|
3798
|
-
|
|
3799
3756
|
if (opacity <= 0) {
|
|
3800
3757
|
opacity = 0;
|
|
3801
3758
|
clearInterval(fading);
|
|
3802
3759
|
}
|
|
3803
|
-
|
|
3804
3760
|
element.style.opacity = opacity;
|
|
3805
3761
|
}, interval);
|
|
3806
3762
|
}
|
|
@@ -3827,7 +3783,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3827
3783
|
var scroll = container.scrollTop;
|
|
3828
3784
|
var elementHeight = container.clientHeight;
|
|
3829
3785
|
var itemHeight = this.getOuterHeight(item);
|
|
3830
|
-
|
|
3831
3786
|
if (offset < 0) {
|
|
3832
3787
|
container.scrollTop = scroll + offset;
|
|
3833
3788
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -3846,7 +3801,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3846
3801
|
} else if (document['selection'] && document['selection'].empty) {
|
|
3847
3802
|
try {
|
|
3848
3803
|
document['selection'].empty();
|
|
3849
|
-
} catch (error) {
|
|
3804
|
+
} catch (error) {
|
|
3805
|
+
//ignore IE bug
|
|
3850
3806
|
}
|
|
3851
3807
|
}
|
|
3852
3808
|
}
|
|
@@ -3868,19 +3824,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3868
3824
|
if (!this.browser) {
|
|
3869
3825
|
var matched = this.resolveUserAgent();
|
|
3870
3826
|
this.browser = {};
|
|
3871
|
-
|
|
3872
3827
|
if (matched.browser) {
|
|
3873
3828
|
this.browser[matched.browser] = true;
|
|
3874
3829
|
this.browser['version'] = matched.version;
|
|
3875
3830
|
}
|
|
3876
|
-
|
|
3877
3831
|
if (this.browser['chrome']) {
|
|
3878
3832
|
this.browser['webkit'] = true;
|
|
3879
3833
|
} else if (this.browser['webkit']) {
|
|
3880
3834
|
this.browser['safari'] = true;
|
|
3881
3835
|
}
|
|
3882
3836
|
}
|
|
3883
|
-
|
|
3884
3837
|
return this.browser;
|
|
3885
3838
|
}
|
|
3886
3839
|
}, {
|
|
@@ -3908,10 +3861,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3908
3861
|
value: function getFocusableElements(element) {
|
|
3909
3862
|
var focusableElements = DomHandler.find(element, "button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden]), \n [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])");
|
|
3910
3863
|
var visibleFocusableElements = [];
|
|
3911
|
-
|
|
3912
3864
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
3913
|
-
|
|
3914
|
-
|
|
3865
|
+
_step3;
|
|
3915
3866
|
try {
|
|
3916
3867
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
3917
3868
|
var focusableElement = _step3.value;
|
|
@@ -3922,7 +3873,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3922
3873
|
} finally {
|
|
3923
3874
|
_iterator3.f();
|
|
3924
3875
|
}
|
|
3925
|
-
|
|
3926
3876
|
return visibleFocusableElements;
|
|
3927
3877
|
}
|
|
3928
3878
|
}, {
|
|
@@ -3965,16 +3915,13 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3965
3915
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
3966
3916
|
}
|
|
3967
3917
|
}]);
|
|
3968
|
-
|
|
3969
3918
|
return DomHandler;
|
|
3970
3919
|
}();
|
|
3971
3920
|
|
|
3972
|
-
|
|
3973
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"379c0a9c-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/contextmenu/ContextMenuSub.vue?vue&type=template&id=55e43e6c&
|
|
3921
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"08364d47-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/contextmenu/ContextMenuSub.vue?vue&type=template&id=55e43e6c&
|
|
3974
3922
|
var ContextMenuSubvue_type_template_id_55e43e6c_render = function render() {
|
|
3975
3923
|
var _vm = this,
|
|
3976
|
-
|
|
3977
|
-
|
|
3924
|
+
_c = _vm._self._c;
|
|
3978
3925
|
return _c('transition', {
|
|
3979
3926
|
attrs: {
|
|
3980
3927
|
"name": "p-contextmenusub"
|
|
@@ -4010,9 +3957,9 @@ var ContextMenuSubvue_type_template_id_55e43e6c_render = function render() {
|
|
|
4010
3957
|
key: "default",
|
|
4011
3958
|
fn: function fn(_ref) {
|
|
4012
3959
|
var navigate = _ref.navigate,
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
3960
|
+
href = _ref.href,
|
|
3961
|
+
isActive = _ref.isActive,
|
|
3962
|
+
isExactActive = _ref.isExactActive;
|
|
4016
3963
|
return [_c('a', {
|
|
4017
3964
|
directives: [{
|
|
4018
3965
|
name: "ripple",
|
|
@@ -4082,55 +4029,44 @@ var ContextMenuSubvue_type_template_id_55e43e6c_render = function render() {
|
|
|
4082
4029
|
}) : _vm._e()];
|
|
4083
4030
|
})], 2) : _vm._e()]);
|
|
4084
4031
|
};
|
|
4085
|
-
|
|
4086
4032
|
var ContextMenuSubvue_type_template_id_55e43e6c_staticRenderFns = [];
|
|
4087
4033
|
|
|
4088
4034
|
// CONCATENATED MODULE: ./src/components/contextmenu/ContextMenuSub.vue?vue&type=template&id=55e43e6c&
|
|
4089
4035
|
|
|
4090
4036
|
// CONCATENATED MODULE: ./src/components/ripple/Ripple.js
|
|
4091
4037
|
|
|
4092
|
-
|
|
4093
4038
|
function bindEvents(el) {
|
|
4094
4039
|
el.addEventListener('mousedown', onMouseDown);
|
|
4095
4040
|
}
|
|
4096
|
-
|
|
4097
4041
|
function unbindEvents(el) {
|
|
4098
4042
|
el.removeEventListener('mousedown', onMouseDown);
|
|
4099
4043
|
}
|
|
4100
|
-
|
|
4101
4044
|
function create(el) {
|
|
4102
4045
|
var ink = document.createElement('span');
|
|
4103
4046
|
ink.className = 'p-ink';
|
|
4104
4047
|
el.appendChild(ink);
|
|
4105
4048
|
ink.addEventListener('animationend', onAnimationEnd);
|
|
4106
4049
|
}
|
|
4107
|
-
|
|
4108
4050
|
function remove(el) {
|
|
4109
4051
|
var ink = getInk(el);
|
|
4110
|
-
|
|
4111
4052
|
if (ink) {
|
|
4112
4053
|
unbindEvents(el);
|
|
4113
4054
|
ink.removeEventListener('animationend', onAnimationEnd);
|
|
4114
4055
|
ink.remove();
|
|
4115
4056
|
}
|
|
4116
4057
|
}
|
|
4117
|
-
|
|
4118
4058
|
function onMouseDown(event) {
|
|
4119
4059
|
var target = event.currentTarget;
|
|
4120
4060
|
var ink = getInk(target);
|
|
4121
|
-
|
|
4122
4061
|
if (!ink || getComputedStyle(ink, null).display === 'none') {
|
|
4123
4062
|
return;
|
|
4124
4063
|
}
|
|
4125
|
-
|
|
4126
4064
|
DomHandler_DomHandler.removeClass(ink, 'p-ink-active');
|
|
4127
|
-
|
|
4128
4065
|
if (!DomHandler_DomHandler.getHeight(ink) && !DomHandler_DomHandler.getWidth(ink)) {
|
|
4129
4066
|
var d = Math.max(DomHandler_DomHandler.getOuterWidth(target), DomHandler_DomHandler.getOuterHeight(target));
|
|
4130
4067
|
ink.style.height = d + 'px';
|
|
4131
4068
|
ink.style.width = d + 'px';
|
|
4132
4069
|
}
|
|
4133
|
-
|
|
4134
4070
|
var offset = DomHandler_DomHandler.getOffset(target);
|
|
4135
4071
|
var x = event.pageX - offset.left + document.body.scrollTop - DomHandler_DomHandler.getWidth(ink) / 2;
|
|
4136
4072
|
var y = event.pageY - offset.top + document.body.scrollLeft - DomHandler_DomHandler.getHeight(ink) / 2;
|
|
@@ -4138,21 +4074,17 @@ function onMouseDown(event) {
|
|
|
4138
4074
|
ink.style.left = x + 'px';
|
|
4139
4075
|
DomHandler_DomHandler.addClass(ink, 'p-ink-active');
|
|
4140
4076
|
}
|
|
4141
|
-
|
|
4142
4077
|
function onAnimationEnd(event) {
|
|
4143
4078
|
DomHandler_DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
4144
4079
|
}
|
|
4145
|
-
|
|
4146
4080
|
function getInk(el) {
|
|
4147
4081
|
for (var i = 0; i < el.children.length; i++) {
|
|
4148
4082
|
if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
|
|
4149
4083
|
return el.children[i];
|
|
4150
4084
|
}
|
|
4151
4085
|
}
|
|
4152
|
-
|
|
4153
4086
|
return null;
|
|
4154
4087
|
}
|
|
4155
|
-
|
|
4156
4088
|
var Ripple = {
|
|
4157
4089
|
inserted: function inserted(el, binding, vnode) {
|
|
4158
4090
|
if (vnode.context.$primevue && vnode.context.$primevue.config.ripple) {
|
|
@@ -4206,7 +4138,6 @@ var Ripple = {
|
|
|
4206
4138
|
event.preventDefault();
|
|
4207
4139
|
return;
|
|
4208
4140
|
}
|
|
4209
|
-
|
|
4210
4141
|
this.activeItem = item;
|
|
4211
4142
|
},
|
|
4212
4143
|
onItemClick: function onItemClick(event, item, navigate) {
|
|
@@ -4214,22 +4145,18 @@ var Ripple = {
|
|
|
4214
4145
|
event.preventDefault();
|
|
4215
4146
|
return;
|
|
4216
4147
|
}
|
|
4217
|
-
|
|
4218
4148
|
if (!item.url && !item.to) {
|
|
4219
4149
|
event.preventDefault();
|
|
4220
4150
|
}
|
|
4221
|
-
|
|
4222
4151
|
if (item.command) {
|
|
4223
4152
|
item.command({
|
|
4224
4153
|
originalEvent: event,
|
|
4225
4154
|
item: item
|
|
4226
4155
|
});
|
|
4227
4156
|
}
|
|
4228
|
-
|
|
4229
4157
|
if (!item.items) {
|
|
4230
4158
|
this.onLeafClick();
|
|
4231
4159
|
}
|
|
4232
|
-
|
|
4233
4160
|
if (item.to && navigate) {
|
|
4234
4161
|
navigate(event);
|
|
4235
4162
|
}
|
|
@@ -4248,7 +4175,6 @@ var Ripple = {
|
|
|
4248
4175
|
var sublistWidth = this.$refs.container.offsetParent ? this.$refs.container.offsetWidth : DomHandler_DomHandler.getHiddenElementOuterWidth(this.$refs.container);
|
|
4249
4176
|
var itemOuterWidth = DomHandler_DomHandler.getOuterWidth(parentItem.children[0]);
|
|
4250
4177
|
this.$refs.container.style.top = '0px';
|
|
4251
|
-
|
|
4252
4178
|
if (parseInt(containerOffset.left, 10) + itemOuterWidth + sublistWidth > viewport.width - DomHandler_DomHandler.calculateScrollbarWidth()) {
|
|
4253
4179
|
this.$refs.container.style.left = -1 * sublistWidth + 'px';
|
|
4254
4180
|
} else {
|
|
@@ -4464,12 +4390,10 @@ var component = normalizeComponent(
|
|
|
4464
4390
|
methods: {
|
|
4465
4391
|
itemClick: function itemClick(event) {
|
|
4466
4392
|
var item = event.item;
|
|
4467
|
-
|
|
4468
4393
|
if (item.command) {
|
|
4469
4394
|
item.command(event);
|
|
4470
4395
|
event.originalEvent.preventDefault();
|
|
4471
4396
|
}
|
|
4472
|
-
|
|
4473
4397
|
this.hide();
|
|
4474
4398
|
},
|
|
4475
4399
|
toggle: function toggle(event) {
|
|
@@ -4493,7 +4417,6 @@ var component = normalizeComponent(
|
|
|
4493
4417
|
this.position();
|
|
4494
4418
|
this.bindOutsideClickListener();
|
|
4495
4419
|
this.bindResizeListener();
|
|
4496
|
-
|
|
4497
4420
|
if (this.autoZIndex) {
|
|
4498
4421
|
this.$refs.container.style.zIndex = String(this.baseZIndex + DomHandler_DomHandler.generateZIndex());
|
|
4499
4422
|
}
|
|
@@ -4507,40 +4430,38 @@ var component = normalizeComponent(
|
|
|
4507
4430
|
var top = this.pageY + 1;
|
|
4508
4431
|
var width = this.$refs.container.offsetParent ? this.$refs.container.offsetWidth : DomHandler_DomHandler.getHiddenElementOuterWidth(this.$refs.container);
|
|
4509
4432
|
var height = this.$refs.container.offsetParent ? this.$refs.container.offsetHeight : DomHandler_DomHandler.getHiddenElementOuterHeight(this.$refs.container);
|
|
4510
|
-
var viewport = DomHandler_DomHandler.getViewport();
|
|
4433
|
+
var viewport = DomHandler_DomHandler.getViewport();
|
|
4511
4434
|
|
|
4435
|
+
//flip
|
|
4512
4436
|
if (left + width - document.body.scrollLeft > viewport.width) {
|
|
4513
4437
|
left -= width;
|
|
4514
|
-
}
|
|
4515
|
-
|
|
4438
|
+
}
|
|
4516
4439
|
|
|
4440
|
+
//flip
|
|
4517
4441
|
if (top + height - document.body.scrollTop > viewport.height) {
|
|
4518
4442
|
top -= height;
|
|
4519
|
-
}
|
|
4520
|
-
|
|
4443
|
+
}
|
|
4521
4444
|
|
|
4445
|
+
//fit
|
|
4522
4446
|
if (left < document.body.scrollLeft) {
|
|
4523
4447
|
left = document.body.scrollLeft;
|
|
4524
|
-
}
|
|
4525
|
-
|
|
4448
|
+
}
|
|
4526
4449
|
|
|
4450
|
+
//fit
|
|
4527
4451
|
if (top < document.body.scrollTop) {
|
|
4528
4452
|
top = document.body.scrollTop;
|
|
4529
4453
|
}
|
|
4530
|
-
|
|
4531
4454
|
this.$refs.container.style.left = left + 'px';
|
|
4532
4455
|
this.$refs.container.style.top = top + 'px';
|
|
4533
4456
|
},
|
|
4534
4457
|
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
4535
4458
|
var _this = this;
|
|
4536
|
-
|
|
4537
4459
|
if (!this.outsideClickListener) {
|
|
4538
4460
|
this.outsideClickListener = function (event) {
|
|
4539
4461
|
if (_this.visible && _this.$refs.container && !_this.$refs.container.contains(event.target) && !event.ctrlKey) {
|
|
4540
4462
|
_this.hide();
|
|
4541
4463
|
}
|
|
4542
4464
|
};
|
|
4543
|
-
|
|
4544
4465
|
document.addEventListener('click', this.outsideClickListener);
|
|
4545
4466
|
}
|
|
4546
4467
|
},
|
|
@@ -4552,14 +4473,12 @@ var component = normalizeComponent(
|
|
|
4552
4473
|
},
|
|
4553
4474
|
bindResizeListener: function bindResizeListener() {
|
|
4554
4475
|
var _this2 = this;
|
|
4555
|
-
|
|
4556
4476
|
if (!this.resizeListener) {
|
|
4557
4477
|
this.resizeListener = function () {
|
|
4558
4478
|
if (_this2.visible) {
|
|
4559
4479
|
_this2.hide();
|
|
4560
4480
|
}
|
|
4561
4481
|
};
|
|
4562
|
-
|
|
4563
4482
|
window.addEventListener('resize', this.resizeListener);
|
|
4564
4483
|
}
|
|
4565
4484
|
},
|
|
@@ -4581,12 +4500,10 @@ var component = normalizeComponent(
|
|
|
4581
4500
|
},
|
|
4582
4501
|
bindDocumentContextMenuListener: function bindDocumentContextMenuListener() {
|
|
4583
4502
|
var _this3 = this;
|
|
4584
|
-
|
|
4585
4503
|
if (!this.documentContextMenuListener) {
|
|
4586
4504
|
this.documentContextMenuListener = function (event) {
|
|
4587
4505
|
_this3.show(event);
|
|
4588
4506
|
};
|
|
4589
|
-
|
|
4590
4507
|
document.addEventListener('contextmenu', this.documentContextMenuListener);
|
|
4591
4508
|
}
|
|
4592
4509
|
},
|