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
|
@@ -2791,11 +2791,10 @@ if (typeof window !== 'undefined') {
|
|
|
2791
2791
|
// Indicate to webpack that this file can be concatenated
|
|
2792
2792
|
/* harmony default export */ var setPublicPath = (null);
|
|
2793
2793
|
|
|
2794
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2794
|
+
// 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&
|
|
2795
2795
|
var render = function render() {
|
|
2796
2796
|
var _vm = this,
|
|
2797
|
-
|
|
2798
|
-
|
|
2797
|
+
_c = _vm._self._c;
|
|
2799
2798
|
return _c('transition', {
|
|
2800
2799
|
attrs: {
|
|
2801
2800
|
"name": "p-contextmenusub"
|
|
@@ -2831,9 +2830,9 @@ var render = function render() {
|
|
|
2831
2830
|
key: "default",
|
|
2832
2831
|
fn: function fn(_ref) {
|
|
2833
2832
|
var navigate = _ref.navigate,
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2833
|
+
href = _ref.href,
|
|
2834
|
+
isActive = _ref.isActive,
|
|
2835
|
+
isExactActive = _ref.isExactActive;
|
|
2837
2836
|
return [_c('a', {
|
|
2838
2837
|
directives: [{
|
|
2839
2838
|
name: "ripple",
|
|
@@ -2903,7 +2902,6 @@ var render = function render() {
|
|
|
2903
2902
|
}) : _vm._e()];
|
|
2904
2903
|
})], 2) : _vm._e()]);
|
|
2905
2904
|
};
|
|
2906
|
-
|
|
2907
2905
|
var staticRenderFns = [];
|
|
2908
2906
|
|
|
2909
2907
|
// CONCATENATED MODULE: ./src/components/contextmenu/ContextMenuSub.vue?vue&type=template&id=55e43e6c&
|
|
@@ -2950,26 +2948,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
2950
2948
|
|
|
2951
2949
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
2952
2950
|
|
|
2953
|
-
|
|
2954
2951
|
function _defineProperties(target, props) {
|
|
2955
2952
|
for (var i = 0; i < props.length; i++) {
|
|
2956
2953
|
var descriptor = props[i];
|
|
2957
2954
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
2958
2955
|
descriptor.configurable = true;
|
|
2959
2956
|
if ("value" in descriptor) descriptor.writable = true;
|
|
2960
|
-
|
|
2961
2957
|
define_property_default()(target, descriptor.key, descriptor);
|
|
2962
2958
|
}
|
|
2963
2959
|
}
|
|
2964
|
-
|
|
2965
2960
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
2966
2961
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
2967
2962
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
2968
|
-
|
|
2969
2963
|
define_property_default()(Constructor, "prototype", {
|
|
2970
2964
|
writable: false
|
|
2971
2965
|
});
|
|
2972
|
-
|
|
2973
2966
|
return Constructor;
|
|
2974
2967
|
}
|
|
2975
2968
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -2985,18 +2978,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
2985
2978
|
|
|
2986
2979
|
|
|
2987
2980
|
|
|
2988
|
-
|
|
2989
2981
|
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; } } }; }
|
|
2990
|
-
|
|
2991
2982
|
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); }
|
|
2992
|
-
|
|
2993
2983
|
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; }
|
|
2994
|
-
|
|
2995
2984
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
2996
2985
|
function DomHandler() {
|
|
2997
2986
|
_classCallCheck(this, DomHandler);
|
|
2998
2987
|
}
|
|
2999
|
-
|
|
3000
2988
|
_createClass(DomHandler, null, [{
|
|
3001
2989
|
key: "innerWidth",
|
|
3002
2990
|
value: function innerWidth(el) {
|
|
@@ -3030,12 +3018,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3030
3018
|
value: function getOuterWidth(el, margin) {
|
|
3031
3019
|
if (el) {
|
|
3032
3020
|
var width = el.offsetWidth;
|
|
3033
|
-
|
|
3034
3021
|
if (margin) {
|
|
3035
3022
|
var style = getComputedStyle(el);
|
|
3036
3023
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
3037
3024
|
}
|
|
3038
|
-
|
|
3039
3025
|
return width;
|
|
3040
3026
|
} else {
|
|
3041
3027
|
return 0;
|
|
@@ -3046,12 +3032,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3046
3032
|
value: function getOuterHeight(el, margin) {
|
|
3047
3033
|
if (el) {
|
|
3048
3034
|
var height = el.offsetHeight;
|
|
3049
|
-
|
|
3050
3035
|
if (margin) {
|
|
3051
3036
|
var style = getComputedStyle(el);
|
|
3052
3037
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3053
3038
|
}
|
|
3054
|
-
|
|
3055
3039
|
return height;
|
|
3056
3040
|
} else {
|
|
3057
3041
|
return 0;
|
|
@@ -3062,12 +3046,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3062
3046
|
value: function getClientHeight(el, margin) {
|
|
3063
3047
|
if (el) {
|
|
3064
3048
|
var height = el.clientHeight;
|
|
3065
|
-
|
|
3066
3049
|
if (margin) {
|
|
3067
3050
|
var style = getComputedStyle(el);
|
|
3068
3051
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3069
3052
|
}
|
|
3070
|
-
|
|
3071
3053
|
return height;
|
|
3072
3054
|
} else {
|
|
3073
3055
|
return 0;
|
|
@@ -3077,11 +3059,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3077
3059
|
key: "getViewport",
|
|
3078
3060
|
value: function getViewport() {
|
|
3079
3061
|
var win = window,
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3062
|
+
d = document,
|
|
3063
|
+
e = d.documentElement,
|
|
3064
|
+
g = d.getElementsByTagName('body')[0],
|
|
3065
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
3066
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
3085
3067
|
return {
|
|
3086
3068
|
width: w,
|
|
3087
3069
|
height: h
|
|
@@ -3112,12 +3094,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3112
3094
|
value: function index(element) {
|
|
3113
3095
|
var children = element.parentNode.childNodes;
|
|
3114
3096
|
var num = 0;
|
|
3115
|
-
|
|
3116
3097
|
for (var i = 0; i < children.length; i++) {
|
|
3117
3098
|
if (children[i] === element) return num;
|
|
3118
3099
|
if (children[i].nodeType === 1) num++;
|
|
3119
3100
|
}
|
|
3120
|
-
|
|
3121
3101
|
return -1;
|
|
3122
3102
|
}
|
|
3123
3103
|
}, {
|
|
@@ -3125,13 +3105,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3125
3105
|
value: function addMultipleClasses(element, className) {
|
|
3126
3106
|
if (element.classList) {
|
|
3127
3107
|
var styles = className.split(' ');
|
|
3128
|
-
|
|
3129
3108
|
for (var i = 0; i < styles.length; i++) {
|
|
3130
3109
|
element.classList.add(styles[i]);
|
|
3131
3110
|
}
|
|
3132
3111
|
} else {
|
|
3133
3112
|
var _styles = className.split(' ');
|
|
3134
|
-
|
|
3135
3113
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
3136
3114
|
element.className += ' ' + _styles[_i];
|
|
3137
3115
|
}
|
|
@@ -3153,7 +3131,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3153
3131
|
if (element) {
|
|
3154
3132
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
3155
3133
|
}
|
|
3156
|
-
|
|
3157
3134
|
return false;
|
|
3158
3135
|
}
|
|
3159
3136
|
}, {
|
|
@@ -3198,11 +3175,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3198
3175
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
3199
3176
|
var viewport = this.getViewport();
|
|
3200
3177
|
var top, left;
|
|
3201
|
-
|
|
3202
3178
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
3203
3179
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
3204
3180
|
element.style.transformOrigin = 'bottom';
|
|
3205
|
-
|
|
3206
3181
|
if (top < 0) {
|
|
3207
3182
|
top = windowScrollTop;
|
|
3208
3183
|
}
|
|
@@ -3210,7 +3185,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3210
3185
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
3211
3186
|
element.style.transformOrigin = 'top';
|
|
3212
3187
|
}
|
|
3213
|
-
|
|
3214
3188
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
3215
3189
|
element.style.top = top + 'px';
|
|
3216
3190
|
element.style.left = left + 'px';
|
|
@@ -3226,11 +3200,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3226
3200
|
var targetOffset = target.getBoundingClientRect();
|
|
3227
3201
|
var viewport = this.getViewport();
|
|
3228
3202
|
var top, left;
|
|
3229
|
-
|
|
3230
3203
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
3231
3204
|
top = -1 * elementDimensions.height;
|
|
3232
3205
|
element.style.transformOrigin = 'bottom';
|
|
3233
|
-
|
|
3234
3206
|
if (targetOffset.top + top < 0) {
|
|
3235
3207
|
top = -1 * targetOffset.top;
|
|
3236
3208
|
}
|
|
@@ -3238,7 +3210,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3238
3210
|
top = targetHeight;
|
|
3239
3211
|
element.style.transformOrigin = 'top';
|
|
3240
3212
|
}
|
|
3241
|
-
|
|
3242
3213
|
if (elementDimensions.width > viewport.width) {
|
|
3243
3214
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
3244
3215
|
left = targetOffset.left * -1;
|
|
@@ -3249,7 +3220,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3249
3220
|
// element fits on screen (align with target)
|
|
3250
3221
|
left = 0;
|
|
3251
3222
|
}
|
|
3252
|
-
|
|
3253
3223
|
element.style.top = top + 'px';
|
|
3254
3224
|
element.style.left = left + 'px';
|
|
3255
3225
|
}
|
|
@@ -3263,35 +3233,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3263
3233
|
key: "getScrollableParents",
|
|
3264
3234
|
value: function getScrollableParents(element) {
|
|
3265
3235
|
var scrollableParents = [];
|
|
3266
|
-
|
|
3267
3236
|
if (element) {
|
|
3268
3237
|
var parents = this.getParents(element);
|
|
3269
3238
|
var overflowRegex = /(auto|scroll)/;
|
|
3270
|
-
|
|
3271
3239
|
var overflowCheck = function overflowCheck(node) {
|
|
3272
3240
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
3273
3241
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
3274
3242
|
};
|
|
3275
|
-
|
|
3276
3243
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
3277
|
-
|
|
3278
|
-
|
|
3244
|
+
_step;
|
|
3279
3245
|
try {
|
|
3280
3246
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3281
3247
|
var parent = _step.value;
|
|
3282
3248
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
3283
|
-
|
|
3284
3249
|
if (scrollSelectors) {
|
|
3285
3250
|
var selectors = scrollSelectors.split(',');
|
|
3286
|
-
|
|
3287
3251
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
3288
|
-
|
|
3289
|
-
|
|
3252
|
+
_step2;
|
|
3290
3253
|
try {
|
|
3291
3254
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
3292
3255
|
var selector = _step2.value;
|
|
3293
3256
|
var el = this.findSingle(parent, selector);
|
|
3294
|
-
|
|
3295
3257
|
if (el && overflowCheck(el)) {
|
|
3296
3258
|
scrollableParents.push(el);
|
|
3297
3259
|
}
|
|
@@ -3309,7 +3271,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3309
3271
|
_iterator.f();
|
|
3310
3272
|
}
|
|
3311
3273
|
}
|
|
3312
|
-
|
|
3313
3274
|
return scrollableParents;
|
|
3314
3275
|
}
|
|
3315
3276
|
}, {
|
|
@@ -3350,34 +3311,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3350
3311
|
element.style.opacity = 0;
|
|
3351
3312
|
var last = +new Date();
|
|
3352
3313
|
var opacity = 0;
|
|
3353
|
-
|
|
3354
3314
|
var tick = function tick() {
|
|
3355
3315
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
3356
3316
|
element.style.opacity = opacity;
|
|
3357
3317
|
last = +new Date();
|
|
3358
|
-
|
|
3359
3318
|
if (+opacity < 1) {
|
|
3360
3319
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
3361
3320
|
}
|
|
3362
3321
|
};
|
|
3363
|
-
|
|
3364
3322
|
tick();
|
|
3365
3323
|
}
|
|
3366
3324
|
}, {
|
|
3367
3325
|
key: "fadeOut",
|
|
3368
3326
|
value: function fadeOut(element, ms) {
|
|
3369
3327
|
var opacity = 1,
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3328
|
+
interval = 50,
|
|
3329
|
+
duration = ms,
|
|
3330
|
+
gap = interval / duration;
|
|
3373
3331
|
var fading = setInterval(function () {
|
|
3374
3332
|
opacity -= gap;
|
|
3375
|
-
|
|
3376
3333
|
if (opacity <= 0) {
|
|
3377
3334
|
opacity = 0;
|
|
3378
3335
|
clearInterval(fading);
|
|
3379
3336
|
}
|
|
3380
|
-
|
|
3381
3337
|
element.style.opacity = opacity;
|
|
3382
3338
|
}, interval);
|
|
3383
3339
|
}
|
|
@@ -3404,7 +3360,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3404
3360
|
var scroll = container.scrollTop;
|
|
3405
3361
|
var elementHeight = container.clientHeight;
|
|
3406
3362
|
var itemHeight = this.getOuterHeight(item);
|
|
3407
|
-
|
|
3408
3363
|
if (offset < 0) {
|
|
3409
3364
|
container.scrollTop = scroll + offset;
|
|
3410
3365
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -3423,7 +3378,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3423
3378
|
} else if (document['selection'] && document['selection'].empty) {
|
|
3424
3379
|
try {
|
|
3425
3380
|
document['selection'].empty();
|
|
3426
|
-
} catch (error) {
|
|
3381
|
+
} catch (error) {
|
|
3382
|
+
//ignore IE bug
|
|
3427
3383
|
}
|
|
3428
3384
|
}
|
|
3429
3385
|
}
|
|
@@ -3445,19 +3401,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3445
3401
|
if (!this.browser) {
|
|
3446
3402
|
var matched = this.resolveUserAgent();
|
|
3447
3403
|
this.browser = {};
|
|
3448
|
-
|
|
3449
3404
|
if (matched.browser) {
|
|
3450
3405
|
this.browser[matched.browser] = true;
|
|
3451
3406
|
this.browser['version'] = matched.version;
|
|
3452
3407
|
}
|
|
3453
|
-
|
|
3454
3408
|
if (this.browser['chrome']) {
|
|
3455
3409
|
this.browser['webkit'] = true;
|
|
3456
3410
|
} else if (this.browser['webkit']) {
|
|
3457
3411
|
this.browser['safari'] = true;
|
|
3458
3412
|
}
|
|
3459
3413
|
}
|
|
3460
|
-
|
|
3461
3414
|
return this.browser;
|
|
3462
3415
|
}
|
|
3463
3416
|
}, {
|
|
@@ -3485,10 +3438,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3485
3438
|
value: function getFocusableElements(element) {
|
|
3486
3439
|
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])");
|
|
3487
3440
|
var visibleFocusableElements = [];
|
|
3488
|
-
|
|
3489
3441
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
3490
|
-
|
|
3491
|
-
|
|
3442
|
+
_step3;
|
|
3492
3443
|
try {
|
|
3493
3444
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
3494
3445
|
var focusableElement = _step3.value;
|
|
@@ -3499,7 +3450,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3499
3450
|
} finally {
|
|
3500
3451
|
_iterator3.f();
|
|
3501
3452
|
}
|
|
3502
|
-
|
|
3503
3453
|
return visibleFocusableElements;
|
|
3504
3454
|
}
|
|
3505
3455
|
}, {
|
|
@@ -3542,55 +3492,43 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3542
3492
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
3543
3493
|
}
|
|
3544
3494
|
}]);
|
|
3545
|
-
|
|
3546
3495
|
return DomHandler;
|
|
3547
3496
|
}();
|
|
3548
3497
|
|
|
3549
|
-
|
|
3550
3498
|
// CONCATENATED MODULE: ./src/components/ripple/Ripple.js
|
|
3551
3499
|
|
|
3552
|
-
|
|
3553
3500
|
function bindEvents(el) {
|
|
3554
3501
|
el.addEventListener('mousedown', onMouseDown);
|
|
3555
3502
|
}
|
|
3556
|
-
|
|
3557
3503
|
function unbindEvents(el) {
|
|
3558
3504
|
el.removeEventListener('mousedown', onMouseDown);
|
|
3559
3505
|
}
|
|
3560
|
-
|
|
3561
3506
|
function create(el) {
|
|
3562
3507
|
var ink = document.createElement('span');
|
|
3563
3508
|
ink.className = 'p-ink';
|
|
3564
3509
|
el.appendChild(ink);
|
|
3565
3510
|
ink.addEventListener('animationend', onAnimationEnd);
|
|
3566
3511
|
}
|
|
3567
|
-
|
|
3568
3512
|
function remove(el) {
|
|
3569
3513
|
var ink = getInk(el);
|
|
3570
|
-
|
|
3571
3514
|
if (ink) {
|
|
3572
3515
|
unbindEvents(el);
|
|
3573
3516
|
ink.removeEventListener('animationend', onAnimationEnd);
|
|
3574
3517
|
ink.remove();
|
|
3575
3518
|
}
|
|
3576
3519
|
}
|
|
3577
|
-
|
|
3578
3520
|
function onMouseDown(event) {
|
|
3579
3521
|
var target = event.currentTarget;
|
|
3580
3522
|
var ink = getInk(target);
|
|
3581
|
-
|
|
3582
3523
|
if (!ink || getComputedStyle(ink, null).display === 'none') {
|
|
3583
3524
|
return;
|
|
3584
3525
|
}
|
|
3585
|
-
|
|
3586
3526
|
DomHandler_DomHandler.removeClass(ink, 'p-ink-active');
|
|
3587
|
-
|
|
3588
3527
|
if (!DomHandler_DomHandler.getHeight(ink) && !DomHandler_DomHandler.getWidth(ink)) {
|
|
3589
3528
|
var d = Math.max(DomHandler_DomHandler.getOuterWidth(target), DomHandler_DomHandler.getOuterHeight(target));
|
|
3590
3529
|
ink.style.height = d + 'px';
|
|
3591
3530
|
ink.style.width = d + 'px';
|
|
3592
3531
|
}
|
|
3593
|
-
|
|
3594
3532
|
var offset = DomHandler_DomHandler.getOffset(target);
|
|
3595
3533
|
var x = event.pageX - offset.left + document.body.scrollTop - DomHandler_DomHandler.getWidth(ink) / 2;
|
|
3596
3534
|
var y = event.pageY - offset.top + document.body.scrollLeft - DomHandler_DomHandler.getHeight(ink) / 2;
|
|
@@ -3598,21 +3536,17 @@ function onMouseDown(event) {
|
|
|
3598
3536
|
ink.style.left = x + 'px';
|
|
3599
3537
|
DomHandler_DomHandler.addClass(ink, 'p-ink-active');
|
|
3600
3538
|
}
|
|
3601
|
-
|
|
3602
3539
|
function onAnimationEnd(event) {
|
|
3603
3540
|
DomHandler_DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
3604
3541
|
}
|
|
3605
|
-
|
|
3606
3542
|
function getInk(el) {
|
|
3607
3543
|
for (var i = 0; i < el.children.length; i++) {
|
|
3608
3544
|
if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
|
|
3609
3545
|
return el.children[i];
|
|
3610
3546
|
}
|
|
3611
3547
|
}
|
|
3612
|
-
|
|
3613
3548
|
return null;
|
|
3614
3549
|
}
|
|
3615
|
-
|
|
3616
3550
|
var Ripple = {
|
|
3617
3551
|
inserted: function inserted(el, binding, vnode) {
|
|
3618
3552
|
if (vnode.context.$primevue && vnode.context.$primevue.config.ripple) {
|
|
@@ -3666,7 +3600,6 @@ var Ripple = {
|
|
|
3666
3600
|
event.preventDefault();
|
|
3667
3601
|
return;
|
|
3668
3602
|
}
|
|
3669
|
-
|
|
3670
3603
|
this.activeItem = item;
|
|
3671
3604
|
},
|
|
3672
3605
|
onItemClick: function onItemClick(event, item, navigate) {
|
|
@@ -3674,22 +3607,18 @@ var Ripple = {
|
|
|
3674
3607
|
event.preventDefault();
|
|
3675
3608
|
return;
|
|
3676
3609
|
}
|
|
3677
|
-
|
|
3678
3610
|
if (!item.url && !item.to) {
|
|
3679
3611
|
event.preventDefault();
|
|
3680
3612
|
}
|
|
3681
|
-
|
|
3682
3613
|
if (item.command) {
|
|
3683
3614
|
item.command({
|
|
3684
3615
|
originalEvent: event,
|
|
3685
3616
|
item: item
|
|
3686
3617
|
});
|
|
3687
3618
|
}
|
|
3688
|
-
|
|
3689
3619
|
if (!item.items) {
|
|
3690
3620
|
this.onLeafClick();
|
|
3691
3621
|
}
|
|
3692
|
-
|
|
3693
3622
|
if (item.to && navigate) {
|
|
3694
3623
|
navigate(event);
|
|
3695
3624
|
}
|
|
@@ -3708,7 +3637,6 @@ var Ripple = {
|
|
|
3708
3637
|
var sublistWidth = this.$refs.container.offsetParent ? this.$refs.container.offsetWidth : DomHandler_DomHandler.getHiddenElementOuterWidth(this.$refs.container);
|
|
3709
3638
|
var itemOuterWidth = DomHandler_DomHandler.getOuterWidth(parentItem.children[0]);
|
|
3710
3639
|
this.$refs.container.style.top = '0px';
|
|
3711
|
-
|
|
3712
3640
|
if (parseInt(containerOffset.left, 10) + itemOuterWidth + sublistWidth > viewport.width - DomHandler_DomHandler.calculateScrollbarWidth()) {
|
|
3713
3641
|
this.$refs.container.style.left = -1 * sublistWidth + 'px';
|
|
3714
3642
|
} else {
|