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
|
@@ -2782,11 +2782,10 @@ if (typeof window !== 'undefined') {
|
|
|
2782
2782
|
// Indicate to webpack that this file can be concatenated
|
|
2783
2783
|
/* harmony default export */ var setPublicPath = (null);
|
|
2784
2784
|
|
|
2785
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2785
|
+
// 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&
|
|
2786
2786
|
var render = function render() {
|
|
2787
2787
|
var _vm = this,
|
|
2788
|
-
|
|
2789
|
-
|
|
2788
|
+
_c = _vm._self._c;
|
|
2790
2789
|
return _c('transition', {
|
|
2791
2790
|
attrs: {
|
|
2792
2791
|
"name": "p-contextmenusub"
|
|
@@ -2822,9 +2821,9 @@ var render = function render() {
|
|
|
2822
2821
|
key: "default",
|
|
2823
2822
|
fn: function fn(_ref) {
|
|
2824
2823
|
var navigate = _ref.navigate,
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2824
|
+
href = _ref.href,
|
|
2825
|
+
isActive = _ref.isActive,
|
|
2826
|
+
isExactActive = _ref.isExactActive;
|
|
2828
2827
|
return [_c('a', {
|
|
2829
2828
|
directives: [{
|
|
2830
2829
|
name: "ripple",
|
|
@@ -2894,7 +2893,6 @@ var render = function render() {
|
|
|
2894
2893
|
}) : _vm._e()];
|
|
2895
2894
|
})], 2) : _vm._e()]);
|
|
2896
2895
|
};
|
|
2897
|
-
|
|
2898
2896
|
var staticRenderFns = [];
|
|
2899
2897
|
|
|
2900
2898
|
// CONCATENATED MODULE: ./src/components/contextmenu/ContextMenuSub.vue?vue&type=template&id=55e43e6c&
|
|
@@ -2941,26 +2939,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
2941
2939
|
|
|
2942
2940
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
2943
2941
|
|
|
2944
|
-
|
|
2945
2942
|
function _defineProperties(target, props) {
|
|
2946
2943
|
for (var i = 0; i < props.length; i++) {
|
|
2947
2944
|
var descriptor = props[i];
|
|
2948
2945
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
2949
2946
|
descriptor.configurable = true;
|
|
2950
2947
|
if ("value" in descriptor) descriptor.writable = true;
|
|
2951
|
-
|
|
2952
2948
|
define_property_default()(target, descriptor.key, descriptor);
|
|
2953
2949
|
}
|
|
2954
2950
|
}
|
|
2955
|
-
|
|
2956
2951
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
2957
2952
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
2958
2953
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
2959
|
-
|
|
2960
2954
|
define_property_default()(Constructor, "prototype", {
|
|
2961
2955
|
writable: false
|
|
2962
2956
|
});
|
|
2963
|
-
|
|
2964
2957
|
return Constructor;
|
|
2965
2958
|
}
|
|
2966
2959
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -2976,18 +2969,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
2976
2969
|
|
|
2977
2970
|
|
|
2978
2971
|
|
|
2979
|
-
|
|
2980
2972
|
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; } } }; }
|
|
2981
|
-
|
|
2982
2973
|
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); }
|
|
2983
|
-
|
|
2984
2974
|
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; }
|
|
2985
|
-
|
|
2986
2975
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
2987
2976
|
function DomHandler() {
|
|
2988
2977
|
_classCallCheck(this, DomHandler);
|
|
2989
2978
|
}
|
|
2990
|
-
|
|
2991
2979
|
_createClass(DomHandler, null, [{
|
|
2992
2980
|
key: "innerWidth",
|
|
2993
2981
|
value: function innerWidth(el) {
|
|
@@ -3021,12 +3009,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3021
3009
|
value: function getOuterWidth(el, margin) {
|
|
3022
3010
|
if (el) {
|
|
3023
3011
|
var width = el.offsetWidth;
|
|
3024
|
-
|
|
3025
3012
|
if (margin) {
|
|
3026
3013
|
var style = getComputedStyle(el);
|
|
3027
3014
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
3028
3015
|
}
|
|
3029
|
-
|
|
3030
3016
|
return width;
|
|
3031
3017
|
} else {
|
|
3032
3018
|
return 0;
|
|
@@ -3037,12 +3023,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3037
3023
|
value: function getOuterHeight(el, margin) {
|
|
3038
3024
|
if (el) {
|
|
3039
3025
|
var height = el.offsetHeight;
|
|
3040
|
-
|
|
3041
3026
|
if (margin) {
|
|
3042
3027
|
var style = getComputedStyle(el);
|
|
3043
3028
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3044
3029
|
}
|
|
3045
|
-
|
|
3046
3030
|
return height;
|
|
3047
3031
|
} else {
|
|
3048
3032
|
return 0;
|
|
@@ -3053,12 +3037,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3053
3037
|
value: function getClientHeight(el, margin) {
|
|
3054
3038
|
if (el) {
|
|
3055
3039
|
var height = el.clientHeight;
|
|
3056
|
-
|
|
3057
3040
|
if (margin) {
|
|
3058
3041
|
var style = getComputedStyle(el);
|
|
3059
3042
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3060
3043
|
}
|
|
3061
|
-
|
|
3062
3044
|
return height;
|
|
3063
3045
|
} else {
|
|
3064
3046
|
return 0;
|
|
@@ -3068,11 +3050,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3068
3050
|
key: "getViewport",
|
|
3069
3051
|
value: function getViewport() {
|
|
3070
3052
|
var win = window,
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3053
|
+
d = document,
|
|
3054
|
+
e = d.documentElement,
|
|
3055
|
+
g = d.getElementsByTagName('body')[0],
|
|
3056
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
3057
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
3076
3058
|
return {
|
|
3077
3059
|
width: w,
|
|
3078
3060
|
height: h
|
|
@@ -3103,12 +3085,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3103
3085
|
value: function index(element) {
|
|
3104
3086
|
var children = element.parentNode.childNodes;
|
|
3105
3087
|
var num = 0;
|
|
3106
|
-
|
|
3107
3088
|
for (var i = 0; i < children.length; i++) {
|
|
3108
3089
|
if (children[i] === element) return num;
|
|
3109
3090
|
if (children[i].nodeType === 1) num++;
|
|
3110
3091
|
}
|
|
3111
|
-
|
|
3112
3092
|
return -1;
|
|
3113
3093
|
}
|
|
3114
3094
|
}, {
|
|
@@ -3116,13 +3096,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3116
3096
|
value: function addMultipleClasses(element, className) {
|
|
3117
3097
|
if (element.classList) {
|
|
3118
3098
|
var styles = className.split(' ');
|
|
3119
|
-
|
|
3120
3099
|
for (var i = 0; i < styles.length; i++) {
|
|
3121
3100
|
element.classList.add(styles[i]);
|
|
3122
3101
|
}
|
|
3123
3102
|
} else {
|
|
3124
3103
|
var _styles = className.split(' ');
|
|
3125
|
-
|
|
3126
3104
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
3127
3105
|
element.className += ' ' + _styles[_i];
|
|
3128
3106
|
}
|
|
@@ -3144,7 +3122,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3144
3122
|
if (element) {
|
|
3145
3123
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
3146
3124
|
}
|
|
3147
|
-
|
|
3148
3125
|
return false;
|
|
3149
3126
|
}
|
|
3150
3127
|
}, {
|
|
@@ -3189,11 +3166,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3189
3166
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
3190
3167
|
var viewport = this.getViewport();
|
|
3191
3168
|
var top, left;
|
|
3192
|
-
|
|
3193
3169
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
3194
3170
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
3195
3171
|
element.style.transformOrigin = 'bottom';
|
|
3196
|
-
|
|
3197
3172
|
if (top < 0) {
|
|
3198
3173
|
top = windowScrollTop;
|
|
3199
3174
|
}
|
|
@@ -3201,7 +3176,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3201
3176
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
3202
3177
|
element.style.transformOrigin = 'top';
|
|
3203
3178
|
}
|
|
3204
|
-
|
|
3205
3179
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
3206
3180
|
element.style.top = top + 'px';
|
|
3207
3181
|
element.style.left = left + 'px';
|
|
@@ -3217,11 +3191,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3217
3191
|
var targetOffset = target.getBoundingClientRect();
|
|
3218
3192
|
var viewport = this.getViewport();
|
|
3219
3193
|
var top, left;
|
|
3220
|
-
|
|
3221
3194
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
3222
3195
|
top = -1 * elementDimensions.height;
|
|
3223
3196
|
element.style.transformOrigin = 'bottom';
|
|
3224
|
-
|
|
3225
3197
|
if (targetOffset.top + top < 0) {
|
|
3226
3198
|
top = -1 * targetOffset.top;
|
|
3227
3199
|
}
|
|
@@ -3229,7 +3201,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3229
3201
|
top = targetHeight;
|
|
3230
3202
|
element.style.transformOrigin = 'top';
|
|
3231
3203
|
}
|
|
3232
|
-
|
|
3233
3204
|
if (elementDimensions.width > viewport.width) {
|
|
3234
3205
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
3235
3206
|
left = targetOffset.left * -1;
|
|
@@ -3240,7 +3211,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3240
3211
|
// element fits on screen (align with target)
|
|
3241
3212
|
left = 0;
|
|
3242
3213
|
}
|
|
3243
|
-
|
|
3244
3214
|
element.style.top = top + 'px';
|
|
3245
3215
|
element.style.left = left + 'px';
|
|
3246
3216
|
}
|
|
@@ -3254,35 +3224,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3254
3224
|
key: "getScrollableParents",
|
|
3255
3225
|
value: function getScrollableParents(element) {
|
|
3256
3226
|
var scrollableParents = [];
|
|
3257
|
-
|
|
3258
3227
|
if (element) {
|
|
3259
3228
|
var parents = this.getParents(element);
|
|
3260
3229
|
var overflowRegex = /(auto|scroll)/;
|
|
3261
|
-
|
|
3262
3230
|
var overflowCheck = function overflowCheck(node) {
|
|
3263
3231
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
3264
3232
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
3265
3233
|
};
|
|
3266
|
-
|
|
3267
3234
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
3268
|
-
|
|
3269
|
-
|
|
3235
|
+
_step;
|
|
3270
3236
|
try {
|
|
3271
3237
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3272
3238
|
var parent = _step.value;
|
|
3273
3239
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
3274
|
-
|
|
3275
3240
|
if (scrollSelectors) {
|
|
3276
3241
|
var selectors = scrollSelectors.split(',');
|
|
3277
|
-
|
|
3278
3242
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
3279
|
-
|
|
3280
|
-
|
|
3243
|
+
_step2;
|
|
3281
3244
|
try {
|
|
3282
3245
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
3283
3246
|
var selector = _step2.value;
|
|
3284
3247
|
var el = this.findSingle(parent, selector);
|
|
3285
|
-
|
|
3286
3248
|
if (el && overflowCheck(el)) {
|
|
3287
3249
|
scrollableParents.push(el);
|
|
3288
3250
|
}
|
|
@@ -3300,7 +3262,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3300
3262
|
_iterator.f();
|
|
3301
3263
|
}
|
|
3302
3264
|
}
|
|
3303
|
-
|
|
3304
3265
|
return scrollableParents;
|
|
3305
3266
|
}
|
|
3306
3267
|
}, {
|
|
@@ -3341,34 +3302,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3341
3302
|
element.style.opacity = 0;
|
|
3342
3303
|
var last = +new Date();
|
|
3343
3304
|
var opacity = 0;
|
|
3344
|
-
|
|
3345
3305
|
var tick = function tick() {
|
|
3346
3306
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
3347
3307
|
element.style.opacity = opacity;
|
|
3348
3308
|
last = +new Date();
|
|
3349
|
-
|
|
3350
3309
|
if (+opacity < 1) {
|
|
3351
3310
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
3352
3311
|
}
|
|
3353
3312
|
};
|
|
3354
|
-
|
|
3355
3313
|
tick();
|
|
3356
3314
|
}
|
|
3357
3315
|
}, {
|
|
3358
3316
|
key: "fadeOut",
|
|
3359
3317
|
value: function fadeOut(element, ms) {
|
|
3360
3318
|
var opacity = 1,
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3319
|
+
interval = 50,
|
|
3320
|
+
duration = ms,
|
|
3321
|
+
gap = interval / duration;
|
|
3364
3322
|
var fading = setInterval(function () {
|
|
3365
3323
|
opacity -= gap;
|
|
3366
|
-
|
|
3367
3324
|
if (opacity <= 0) {
|
|
3368
3325
|
opacity = 0;
|
|
3369
3326
|
clearInterval(fading);
|
|
3370
3327
|
}
|
|
3371
|
-
|
|
3372
3328
|
element.style.opacity = opacity;
|
|
3373
3329
|
}, interval);
|
|
3374
3330
|
}
|
|
@@ -3395,7 +3351,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3395
3351
|
var scroll = container.scrollTop;
|
|
3396
3352
|
var elementHeight = container.clientHeight;
|
|
3397
3353
|
var itemHeight = this.getOuterHeight(item);
|
|
3398
|
-
|
|
3399
3354
|
if (offset < 0) {
|
|
3400
3355
|
container.scrollTop = scroll + offset;
|
|
3401
3356
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -3414,7 +3369,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3414
3369
|
} else if (document['selection'] && document['selection'].empty) {
|
|
3415
3370
|
try {
|
|
3416
3371
|
document['selection'].empty();
|
|
3417
|
-
} catch (error) {
|
|
3372
|
+
} catch (error) {
|
|
3373
|
+
//ignore IE bug
|
|
3418
3374
|
}
|
|
3419
3375
|
}
|
|
3420
3376
|
}
|
|
@@ -3436,19 +3392,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3436
3392
|
if (!this.browser) {
|
|
3437
3393
|
var matched = this.resolveUserAgent();
|
|
3438
3394
|
this.browser = {};
|
|
3439
|
-
|
|
3440
3395
|
if (matched.browser) {
|
|
3441
3396
|
this.browser[matched.browser] = true;
|
|
3442
3397
|
this.browser['version'] = matched.version;
|
|
3443
3398
|
}
|
|
3444
|
-
|
|
3445
3399
|
if (this.browser['chrome']) {
|
|
3446
3400
|
this.browser['webkit'] = true;
|
|
3447
3401
|
} else if (this.browser['webkit']) {
|
|
3448
3402
|
this.browser['safari'] = true;
|
|
3449
3403
|
}
|
|
3450
3404
|
}
|
|
3451
|
-
|
|
3452
3405
|
return this.browser;
|
|
3453
3406
|
}
|
|
3454
3407
|
}, {
|
|
@@ -3476,10 +3429,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3476
3429
|
value: function getFocusableElements(element) {
|
|
3477
3430
|
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])");
|
|
3478
3431
|
var visibleFocusableElements = [];
|
|
3479
|
-
|
|
3480
3432
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
3481
|
-
|
|
3482
|
-
|
|
3433
|
+
_step3;
|
|
3483
3434
|
try {
|
|
3484
3435
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
3485
3436
|
var focusableElement = _step3.value;
|
|
@@ -3490,7 +3441,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3490
3441
|
} finally {
|
|
3491
3442
|
_iterator3.f();
|
|
3492
3443
|
}
|
|
3493
|
-
|
|
3494
3444
|
return visibleFocusableElements;
|
|
3495
3445
|
}
|
|
3496
3446
|
}, {
|
|
@@ -3533,55 +3483,43 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3533
3483
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
3534
3484
|
}
|
|
3535
3485
|
}]);
|
|
3536
|
-
|
|
3537
3486
|
return DomHandler;
|
|
3538
3487
|
}();
|
|
3539
3488
|
|
|
3540
|
-
|
|
3541
3489
|
// CONCATENATED MODULE: ./src/components/ripple/Ripple.js
|
|
3542
3490
|
|
|
3543
|
-
|
|
3544
3491
|
function bindEvents(el) {
|
|
3545
3492
|
el.addEventListener('mousedown', onMouseDown);
|
|
3546
3493
|
}
|
|
3547
|
-
|
|
3548
3494
|
function unbindEvents(el) {
|
|
3549
3495
|
el.removeEventListener('mousedown', onMouseDown);
|
|
3550
3496
|
}
|
|
3551
|
-
|
|
3552
3497
|
function create(el) {
|
|
3553
3498
|
var ink = document.createElement('span');
|
|
3554
3499
|
ink.className = 'p-ink';
|
|
3555
3500
|
el.appendChild(ink);
|
|
3556
3501
|
ink.addEventListener('animationend', onAnimationEnd);
|
|
3557
3502
|
}
|
|
3558
|
-
|
|
3559
3503
|
function remove(el) {
|
|
3560
3504
|
var ink = getInk(el);
|
|
3561
|
-
|
|
3562
3505
|
if (ink) {
|
|
3563
3506
|
unbindEvents(el);
|
|
3564
3507
|
ink.removeEventListener('animationend', onAnimationEnd);
|
|
3565
3508
|
ink.remove();
|
|
3566
3509
|
}
|
|
3567
3510
|
}
|
|
3568
|
-
|
|
3569
3511
|
function onMouseDown(event) {
|
|
3570
3512
|
var target = event.currentTarget;
|
|
3571
3513
|
var ink = getInk(target);
|
|
3572
|
-
|
|
3573
3514
|
if (!ink || getComputedStyle(ink, null).display === 'none') {
|
|
3574
3515
|
return;
|
|
3575
3516
|
}
|
|
3576
|
-
|
|
3577
3517
|
DomHandler_DomHandler.removeClass(ink, 'p-ink-active');
|
|
3578
|
-
|
|
3579
3518
|
if (!DomHandler_DomHandler.getHeight(ink) && !DomHandler_DomHandler.getWidth(ink)) {
|
|
3580
3519
|
var d = Math.max(DomHandler_DomHandler.getOuterWidth(target), DomHandler_DomHandler.getOuterHeight(target));
|
|
3581
3520
|
ink.style.height = d + 'px';
|
|
3582
3521
|
ink.style.width = d + 'px';
|
|
3583
3522
|
}
|
|
3584
|
-
|
|
3585
3523
|
var offset = DomHandler_DomHandler.getOffset(target);
|
|
3586
3524
|
var x = event.pageX - offset.left + document.body.scrollTop - DomHandler_DomHandler.getWidth(ink) / 2;
|
|
3587
3525
|
var y = event.pageY - offset.top + document.body.scrollLeft - DomHandler_DomHandler.getHeight(ink) / 2;
|
|
@@ -3589,21 +3527,17 @@ function onMouseDown(event) {
|
|
|
3589
3527
|
ink.style.left = x + 'px';
|
|
3590
3528
|
DomHandler_DomHandler.addClass(ink, 'p-ink-active');
|
|
3591
3529
|
}
|
|
3592
|
-
|
|
3593
3530
|
function onAnimationEnd(event) {
|
|
3594
3531
|
DomHandler_DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
3595
3532
|
}
|
|
3596
|
-
|
|
3597
3533
|
function getInk(el) {
|
|
3598
3534
|
for (var i = 0; i < el.children.length; i++) {
|
|
3599
3535
|
if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
|
|
3600
3536
|
return el.children[i];
|
|
3601
3537
|
}
|
|
3602
3538
|
}
|
|
3603
|
-
|
|
3604
3539
|
return null;
|
|
3605
3540
|
}
|
|
3606
|
-
|
|
3607
3541
|
var Ripple = {
|
|
3608
3542
|
inserted: function inserted(el, binding, vnode) {
|
|
3609
3543
|
if (vnode.context.$primevue && vnode.context.$primevue.config.ripple) {
|
|
@@ -3657,7 +3591,6 @@ var Ripple = {
|
|
|
3657
3591
|
event.preventDefault();
|
|
3658
3592
|
return;
|
|
3659
3593
|
}
|
|
3660
|
-
|
|
3661
3594
|
this.activeItem = item;
|
|
3662
3595
|
},
|
|
3663
3596
|
onItemClick: function onItemClick(event, item, navigate) {
|
|
@@ -3665,22 +3598,18 @@ var Ripple = {
|
|
|
3665
3598
|
event.preventDefault();
|
|
3666
3599
|
return;
|
|
3667
3600
|
}
|
|
3668
|
-
|
|
3669
3601
|
if (!item.url && !item.to) {
|
|
3670
3602
|
event.preventDefault();
|
|
3671
3603
|
}
|
|
3672
|
-
|
|
3673
3604
|
if (item.command) {
|
|
3674
3605
|
item.command({
|
|
3675
3606
|
originalEvent: event,
|
|
3676
3607
|
item: item
|
|
3677
3608
|
});
|
|
3678
3609
|
}
|
|
3679
|
-
|
|
3680
3610
|
if (!item.items) {
|
|
3681
3611
|
this.onLeafClick();
|
|
3682
3612
|
}
|
|
3683
|
-
|
|
3684
3613
|
if (item.to && navigate) {
|
|
3685
3614
|
navigate(event);
|
|
3686
3615
|
}
|
|
@@ -3699,7 +3628,6 @@ var Ripple = {
|
|
|
3699
3628
|
var sublistWidth = this.$refs.container.offsetParent ? this.$refs.container.offsetWidth : DomHandler_DomHandler.getHiddenElementOuterWidth(this.$refs.container);
|
|
3700
3629
|
var itemOuterWidth = DomHandler_DomHandler.getOuterWidth(parentItem.children[0]);
|
|
3701
3630
|
this.$refs.container.style.top = '0px';
|
|
3702
|
-
|
|
3703
3631
|
if (parseInt(containerOffset.left, 10) + itemOuterWidth + sublistWidth > viewport.width - DomHandler_DomHandler.calculateScrollbarWidth()) {
|
|
3704
3632
|
this.$refs.container.style.left = -1 * sublistWidth + 'px';
|
|
3705
3633
|
} else {
|