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
|
@@ -4277,11 +4277,10 @@ if (typeof window !== 'undefined') {
|
|
|
4277
4277
|
// Indicate to webpack that this file can be concatenated
|
|
4278
4278
|
/* harmony default export */ var setPublicPath = (null);
|
|
4279
4279
|
|
|
4280
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4280
|
+
// 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/galleria/GalleriaContent.vue?vue&type=template&id=6754eac0&
|
|
4281
4281
|
var render = function render() {
|
|
4282
4282
|
var _vm = this,
|
|
4283
|
-
|
|
4284
|
-
|
|
4283
|
+
_c = _vm._self._c;
|
|
4285
4284
|
return _vm.$attrs.value && _vm.$attrs.value.length > 0 ? _c('div', {
|
|
4286
4285
|
class: _vm.galleriaClass,
|
|
4287
4286
|
style: _vm.$attrs.containerStyle,
|
|
@@ -4379,7 +4378,6 @@ var render = function render() {
|
|
|
4379
4378
|
}
|
|
4380
4379
|
})], 1) : _vm._e()]) : _vm._e();
|
|
4381
4380
|
};
|
|
4382
|
-
|
|
4383
4381
|
var staticRenderFns = [];
|
|
4384
4382
|
|
|
4385
4383
|
// CONCATENATED MODULE: ./src/components/galleria/GalleriaContent.vue?vue&type=template&id=6754eac0&
|
|
@@ -4394,11 +4392,10 @@ var lastId = 0;
|
|
|
4394
4392
|
lastId++;
|
|
4395
4393
|
return "".concat(prefix).concat(lastId);
|
|
4396
4394
|
});
|
|
4397
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4395
|
+
// 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/galleria/GalleriaItem.vue?vue&type=template&id=5bdfe994&
|
|
4398
4396
|
var GalleriaItemvue_type_template_id_5bdfe994_render = function render() {
|
|
4399
4397
|
var _vm = this,
|
|
4400
|
-
|
|
4401
|
-
|
|
4398
|
+
_c = _vm._self._c;
|
|
4402
4399
|
return _c('div', {
|
|
4403
4400
|
staticClass: "p-galleria-item-wrapper"
|
|
4404
4401
|
}, [_c('div', {
|
|
@@ -4491,7 +4488,6 @@ var GalleriaItemvue_type_template_id_5bdfe994_render = function render() {
|
|
|
4491
4488
|
})], 1);
|
|
4492
4489
|
}), 0) : _vm._e()]);
|
|
4493
4490
|
};
|
|
4494
|
-
|
|
4495
4491
|
var GalleriaItemvue_type_template_id_5bdfe994_staticRenderFns = [];
|
|
4496
4492
|
|
|
4497
4493
|
// CONCATENATED MODULE: ./src/components/galleria/GalleriaItem.vue?vue&type=template&id=5bdfe994&
|
|
@@ -4523,15 +4519,13 @@ var es6_number_constructor = __webpack_require__("c5f6");
|
|
|
4523
4519
|
},
|
|
4524
4520
|
render: function render(createElement, context) {
|
|
4525
4521
|
var _context$props = context.props,
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4522
|
+
item = _context$props.item,
|
|
4523
|
+
index = _context$props.index,
|
|
4524
|
+
templates = _context$props.templates,
|
|
4525
|
+
type = _context$props.type;
|
|
4530
4526
|
var template = templates && templates[type];
|
|
4531
|
-
|
|
4532
4527
|
if (template) {
|
|
4533
4528
|
var content;
|
|
4534
|
-
|
|
4535
4529
|
switch (type) {
|
|
4536
4530
|
case 'item':
|
|
4537
4531
|
case 'caption':
|
|
@@ -4540,21 +4534,17 @@ var es6_number_constructor = __webpack_require__("c5f6");
|
|
|
4540
4534
|
item: item
|
|
4541
4535
|
});
|
|
4542
4536
|
break;
|
|
4543
|
-
|
|
4544
4537
|
case 'indicator':
|
|
4545
4538
|
content = template({
|
|
4546
4539
|
index: index
|
|
4547
4540
|
});
|
|
4548
4541
|
break;
|
|
4549
|
-
|
|
4550
4542
|
default:
|
|
4551
4543
|
content = template({});
|
|
4552
4544
|
break;
|
|
4553
4545
|
}
|
|
4554
|
-
|
|
4555
4546
|
return content ? [content] : null;
|
|
4556
4547
|
}
|
|
4557
|
-
|
|
4558
4548
|
return null;
|
|
4559
4549
|
}
|
|
4560
4550
|
});
|
|
@@ -4717,26 +4707,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
4717
4707
|
|
|
4718
4708
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
4719
4709
|
|
|
4720
|
-
|
|
4721
4710
|
function _defineProperties(target, props) {
|
|
4722
4711
|
for (var i = 0; i < props.length; i++) {
|
|
4723
4712
|
var descriptor = props[i];
|
|
4724
4713
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
4725
4714
|
descriptor.configurable = true;
|
|
4726
4715
|
if ("value" in descriptor) descriptor.writable = true;
|
|
4727
|
-
|
|
4728
4716
|
define_property_default()(target, descriptor.key, descriptor);
|
|
4729
4717
|
}
|
|
4730
4718
|
}
|
|
4731
|
-
|
|
4732
4719
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
4733
4720
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4734
4721
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
4735
|
-
|
|
4736
4722
|
define_property_default()(Constructor, "prototype", {
|
|
4737
4723
|
writable: false
|
|
4738
4724
|
});
|
|
4739
|
-
|
|
4740
4725
|
return Constructor;
|
|
4741
4726
|
}
|
|
4742
4727
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -4752,18 +4737,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
4752
4737
|
|
|
4753
4738
|
|
|
4754
4739
|
|
|
4755
|
-
|
|
4756
4740
|
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; } } }; }
|
|
4757
|
-
|
|
4758
4741
|
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); }
|
|
4759
|
-
|
|
4760
4742
|
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; }
|
|
4761
|
-
|
|
4762
4743
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
4763
4744
|
function DomHandler() {
|
|
4764
4745
|
_classCallCheck(this, DomHandler);
|
|
4765
4746
|
}
|
|
4766
|
-
|
|
4767
4747
|
_createClass(DomHandler, null, [{
|
|
4768
4748
|
key: "innerWidth",
|
|
4769
4749
|
value: function innerWidth(el) {
|
|
@@ -4797,12 +4777,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4797
4777
|
value: function getOuterWidth(el, margin) {
|
|
4798
4778
|
if (el) {
|
|
4799
4779
|
var width = el.offsetWidth;
|
|
4800
|
-
|
|
4801
4780
|
if (margin) {
|
|
4802
4781
|
var style = getComputedStyle(el);
|
|
4803
4782
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
4804
4783
|
}
|
|
4805
|
-
|
|
4806
4784
|
return width;
|
|
4807
4785
|
} else {
|
|
4808
4786
|
return 0;
|
|
@@ -4813,12 +4791,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4813
4791
|
value: function getOuterHeight(el, margin) {
|
|
4814
4792
|
if (el) {
|
|
4815
4793
|
var height = el.offsetHeight;
|
|
4816
|
-
|
|
4817
4794
|
if (margin) {
|
|
4818
4795
|
var style = getComputedStyle(el);
|
|
4819
4796
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
4820
4797
|
}
|
|
4821
|
-
|
|
4822
4798
|
return height;
|
|
4823
4799
|
} else {
|
|
4824
4800
|
return 0;
|
|
@@ -4829,12 +4805,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4829
4805
|
value: function getClientHeight(el, margin) {
|
|
4830
4806
|
if (el) {
|
|
4831
4807
|
var height = el.clientHeight;
|
|
4832
|
-
|
|
4833
4808
|
if (margin) {
|
|
4834
4809
|
var style = getComputedStyle(el);
|
|
4835
4810
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
4836
4811
|
}
|
|
4837
|
-
|
|
4838
4812
|
return height;
|
|
4839
4813
|
} else {
|
|
4840
4814
|
return 0;
|
|
@@ -4844,11 +4818,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4844
4818
|
key: "getViewport",
|
|
4845
4819
|
value: function getViewport() {
|
|
4846
4820
|
var win = window,
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4821
|
+
d = document,
|
|
4822
|
+
e = d.documentElement,
|
|
4823
|
+
g = d.getElementsByTagName('body')[0],
|
|
4824
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
4825
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
4852
4826
|
return {
|
|
4853
4827
|
width: w,
|
|
4854
4828
|
height: h
|
|
@@ -4879,12 +4853,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4879
4853
|
value: function index(element) {
|
|
4880
4854
|
var children = element.parentNode.childNodes;
|
|
4881
4855
|
var num = 0;
|
|
4882
|
-
|
|
4883
4856
|
for (var i = 0; i < children.length; i++) {
|
|
4884
4857
|
if (children[i] === element) return num;
|
|
4885
4858
|
if (children[i].nodeType === 1) num++;
|
|
4886
4859
|
}
|
|
4887
|
-
|
|
4888
4860
|
return -1;
|
|
4889
4861
|
}
|
|
4890
4862
|
}, {
|
|
@@ -4892,13 +4864,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4892
4864
|
value: function addMultipleClasses(element, className) {
|
|
4893
4865
|
if (element.classList) {
|
|
4894
4866
|
var styles = className.split(' ');
|
|
4895
|
-
|
|
4896
4867
|
for (var i = 0; i < styles.length; i++) {
|
|
4897
4868
|
element.classList.add(styles[i]);
|
|
4898
4869
|
}
|
|
4899
4870
|
} else {
|
|
4900
4871
|
var _styles = className.split(' ');
|
|
4901
|
-
|
|
4902
4872
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
4903
4873
|
element.className += ' ' + _styles[_i];
|
|
4904
4874
|
}
|
|
@@ -4920,7 +4890,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4920
4890
|
if (element) {
|
|
4921
4891
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
4922
4892
|
}
|
|
4923
|
-
|
|
4924
4893
|
return false;
|
|
4925
4894
|
}
|
|
4926
4895
|
}, {
|
|
@@ -4965,11 +4934,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4965
4934
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
4966
4935
|
var viewport = this.getViewport();
|
|
4967
4936
|
var top, left;
|
|
4968
|
-
|
|
4969
4937
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
4970
4938
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
4971
4939
|
element.style.transformOrigin = 'bottom';
|
|
4972
|
-
|
|
4973
4940
|
if (top < 0) {
|
|
4974
4941
|
top = windowScrollTop;
|
|
4975
4942
|
}
|
|
@@ -4977,7 +4944,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4977
4944
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
4978
4945
|
element.style.transformOrigin = 'top';
|
|
4979
4946
|
}
|
|
4980
|
-
|
|
4981
4947
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
4982
4948
|
element.style.top = top + 'px';
|
|
4983
4949
|
element.style.left = left + 'px';
|
|
@@ -4993,11 +4959,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4993
4959
|
var targetOffset = target.getBoundingClientRect();
|
|
4994
4960
|
var viewport = this.getViewport();
|
|
4995
4961
|
var top, left;
|
|
4996
|
-
|
|
4997
4962
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
4998
4963
|
top = -1 * elementDimensions.height;
|
|
4999
4964
|
element.style.transformOrigin = 'bottom';
|
|
5000
|
-
|
|
5001
4965
|
if (targetOffset.top + top < 0) {
|
|
5002
4966
|
top = -1 * targetOffset.top;
|
|
5003
4967
|
}
|
|
@@ -5005,7 +4969,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5005
4969
|
top = targetHeight;
|
|
5006
4970
|
element.style.transformOrigin = 'top';
|
|
5007
4971
|
}
|
|
5008
|
-
|
|
5009
4972
|
if (elementDimensions.width > viewport.width) {
|
|
5010
4973
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
5011
4974
|
left = targetOffset.left * -1;
|
|
@@ -5016,7 +4979,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5016
4979
|
// element fits on screen (align with target)
|
|
5017
4980
|
left = 0;
|
|
5018
4981
|
}
|
|
5019
|
-
|
|
5020
4982
|
element.style.top = top + 'px';
|
|
5021
4983
|
element.style.left = left + 'px';
|
|
5022
4984
|
}
|
|
@@ -5030,35 +4992,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5030
4992
|
key: "getScrollableParents",
|
|
5031
4993
|
value: function getScrollableParents(element) {
|
|
5032
4994
|
var scrollableParents = [];
|
|
5033
|
-
|
|
5034
4995
|
if (element) {
|
|
5035
4996
|
var parents = this.getParents(element);
|
|
5036
4997
|
var overflowRegex = /(auto|scroll)/;
|
|
5037
|
-
|
|
5038
4998
|
var overflowCheck = function overflowCheck(node) {
|
|
5039
4999
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
5040
5000
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
5041
5001
|
};
|
|
5042
|
-
|
|
5043
5002
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
5044
|
-
|
|
5045
|
-
|
|
5003
|
+
_step;
|
|
5046
5004
|
try {
|
|
5047
5005
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5048
5006
|
var parent = _step.value;
|
|
5049
5007
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
5050
|
-
|
|
5051
5008
|
if (scrollSelectors) {
|
|
5052
5009
|
var selectors = scrollSelectors.split(',');
|
|
5053
|
-
|
|
5054
5010
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
5055
|
-
|
|
5056
|
-
|
|
5011
|
+
_step2;
|
|
5057
5012
|
try {
|
|
5058
5013
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
5059
5014
|
var selector = _step2.value;
|
|
5060
5015
|
var el = this.findSingle(parent, selector);
|
|
5061
|
-
|
|
5062
5016
|
if (el && overflowCheck(el)) {
|
|
5063
5017
|
scrollableParents.push(el);
|
|
5064
5018
|
}
|
|
@@ -5076,7 +5030,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5076
5030
|
_iterator.f();
|
|
5077
5031
|
}
|
|
5078
5032
|
}
|
|
5079
|
-
|
|
5080
5033
|
return scrollableParents;
|
|
5081
5034
|
}
|
|
5082
5035
|
}, {
|
|
@@ -5117,34 +5070,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5117
5070
|
element.style.opacity = 0;
|
|
5118
5071
|
var last = +new Date();
|
|
5119
5072
|
var opacity = 0;
|
|
5120
|
-
|
|
5121
5073
|
var tick = function tick() {
|
|
5122
5074
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
5123
5075
|
element.style.opacity = opacity;
|
|
5124
5076
|
last = +new Date();
|
|
5125
|
-
|
|
5126
5077
|
if (+opacity < 1) {
|
|
5127
5078
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
5128
5079
|
}
|
|
5129
5080
|
};
|
|
5130
|
-
|
|
5131
5081
|
tick();
|
|
5132
5082
|
}
|
|
5133
5083
|
}, {
|
|
5134
5084
|
key: "fadeOut",
|
|
5135
5085
|
value: function fadeOut(element, ms) {
|
|
5136
5086
|
var opacity = 1,
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5087
|
+
interval = 50,
|
|
5088
|
+
duration = ms,
|
|
5089
|
+
gap = interval / duration;
|
|
5140
5090
|
var fading = setInterval(function () {
|
|
5141
5091
|
opacity -= gap;
|
|
5142
|
-
|
|
5143
5092
|
if (opacity <= 0) {
|
|
5144
5093
|
opacity = 0;
|
|
5145
5094
|
clearInterval(fading);
|
|
5146
5095
|
}
|
|
5147
|
-
|
|
5148
5096
|
element.style.opacity = opacity;
|
|
5149
5097
|
}, interval);
|
|
5150
5098
|
}
|
|
@@ -5171,7 +5119,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5171
5119
|
var scroll = container.scrollTop;
|
|
5172
5120
|
var elementHeight = container.clientHeight;
|
|
5173
5121
|
var itemHeight = this.getOuterHeight(item);
|
|
5174
|
-
|
|
5175
5122
|
if (offset < 0) {
|
|
5176
5123
|
container.scrollTop = scroll + offset;
|
|
5177
5124
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -5190,7 +5137,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5190
5137
|
} else if (document['selection'] && document['selection'].empty) {
|
|
5191
5138
|
try {
|
|
5192
5139
|
document['selection'].empty();
|
|
5193
|
-
} catch (error) {
|
|
5140
|
+
} catch (error) {
|
|
5141
|
+
//ignore IE bug
|
|
5194
5142
|
}
|
|
5195
5143
|
}
|
|
5196
5144
|
}
|
|
@@ -5212,19 +5160,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5212
5160
|
if (!this.browser) {
|
|
5213
5161
|
var matched = this.resolveUserAgent();
|
|
5214
5162
|
this.browser = {};
|
|
5215
|
-
|
|
5216
5163
|
if (matched.browser) {
|
|
5217
5164
|
this.browser[matched.browser] = true;
|
|
5218
5165
|
this.browser['version'] = matched.version;
|
|
5219
5166
|
}
|
|
5220
|
-
|
|
5221
5167
|
if (this.browser['chrome']) {
|
|
5222
5168
|
this.browser['webkit'] = true;
|
|
5223
5169
|
} else if (this.browser['webkit']) {
|
|
5224
5170
|
this.browser['safari'] = true;
|
|
5225
5171
|
}
|
|
5226
5172
|
}
|
|
5227
|
-
|
|
5228
5173
|
return this.browser;
|
|
5229
5174
|
}
|
|
5230
5175
|
}, {
|
|
@@ -5252,10 +5197,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5252
5197
|
value: function getFocusableElements(element) {
|
|
5253
5198
|
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])");
|
|
5254
5199
|
var visibleFocusableElements = [];
|
|
5255
|
-
|
|
5256
5200
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
5257
|
-
|
|
5258
|
-
|
|
5201
|
+
_step3;
|
|
5259
5202
|
try {
|
|
5260
5203
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
5261
5204
|
var focusableElement = _step3.value;
|
|
@@ -5266,7 +5209,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5266
5209
|
} finally {
|
|
5267
5210
|
_iterator3.f();
|
|
5268
5211
|
}
|
|
5269
|
-
|
|
5270
5212
|
return visibleFocusableElements;
|
|
5271
5213
|
}
|
|
5272
5214
|
}, {
|
|
@@ -5309,55 +5251,43 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5309
5251
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
5310
5252
|
}
|
|
5311
5253
|
}]);
|
|
5312
|
-
|
|
5313
5254
|
return DomHandler;
|
|
5314
5255
|
}();
|
|
5315
5256
|
|
|
5316
|
-
|
|
5317
5257
|
// CONCATENATED MODULE: ./src/components/ripple/Ripple.js
|
|
5318
5258
|
|
|
5319
|
-
|
|
5320
5259
|
function bindEvents(el) {
|
|
5321
5260
|
el.addEventListener('mousedown', onMouseDown);
|
|
5322
5261
|
}
|
|
5323
|
-
|
|
5324
5262
|
function unbindEvents(el) {
|
|
5325
5263
|
el.removeEventListener('mousedown', onMouseDown);
|
|
5326
5264
|
}
|
|
5327
|
-
|
|
5328
5265
|
function create(el) {
|
|
5329
5266
|
var ink = document.createElement('span');
|
|
5330
5267
|
ink.className = 'p-ink';
|
|
5331
5268
|
el.appendChild(ink);
|
|
5332
5269
|
ink.addEventListener('animationend', onAnimationEnd);
|
|
5333
5270
|
}
|
|
5334
|
-
|
|
5335
5271
|
function remove(el) {
|
|
5336
5272
|
var ink = getInk(el);
|
|
5337
|
-
|
|
5338
5273
|
if (ink) {
|
|
5339
5274
|
unbindEvents(el);
|
|
5340
5275
|
ink.removeEventListener('animationend', onAnimationEnd);
|
|
5341
5276
|
ink.remove();
|
|
5342
5277
|
}
|
|
5343
5278
|
}
|
|
5344
|
-
|
|
5345
5279
|
function onMouseDown(event) {
|
|
5346
5280
|
var target = event.currentTarget;
|
|
5347
5281
|
var ink = getInk(target);
|
|
5348
|
-
|
|
5349
5282
|
if (!ink || getComputedStyle(ink, null).display === 'none') {
|
|
5350
5283
|
return;
|
|
5351
5284
|
}
|
|
5352
|
-
|
|
5353
5285
|
DomHandler_DomHandler.removeClass(ink, 'p-ink-active');
|
|
5354
|
-
|
|
5355
5286
|
if (!DomHandler_DomHandler.getHeight(ink) && !DomHandler_DomHandler.getWidth(ink)) {
|
|
5356
5287
|
var d = Math.max(DomHandler_DomHandler.getOuterWidth(target), DomHandler_DomHandler.getOuterHeight(target));
|
|
5357
5288
|
ink.style.height = d + 'px';
|
|
5358
5289
|
ink.style.width = d + 'px';
|
|
5359
5290
|
}
|
|
5360
|
-
|
|
5361
5291
|
var offset = DomHandler_DomHandler.getOffset(target);
|
|
5362
5292
|
var x = event.pageX - offset.left + document.body.scrollTop - DomHandler_DomHandler.getWidth(ink) / 2;
|
|
5363
5293
|
var y = event.pageY - offset.top + document.body.scrollLeft - DomHandler_DomHandler.getHeight(ink) / 2;
|
|
@@ -5365,21 +5295,17 @@ function onMouseDown(event) {
|
|
|
5365
5295
|
ink.style.left = x + 'px';
|
|
5366
5296
|
DomHandler_DomHandler.addClass(ink, 'p-ink-active');
|
|
5367
5297
|
}
|
|
5368
|
-
|
|
5369
5298
|
function onAnimationEnd(event) {
|
|
5370
5299
|
DomHandler_DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
5371
5300
|
}
|
|
5372
|
-
|
|
5373
5301
|
function getInk(el) {
|
|
5374
5302
|
for (var i = 0; i < el.children.length; i++) {
|
|
5375
5303
|
if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
|
|
5376
5304
|
return el.children[i];
|
|
5377
5305
|
}
|
|
5378
5306
|
}
|
|
5379
|
-
|
|
5380
5307
|
return null;
|
|
5381
5308
|
}
|
|
5382
|
-
|
|
5383
5309
|
var Ripple = {
|
|
5384
5310
|
inserted: function inserted(el, binding, vnode) {
|
|
5385
5311
|
if (vnode.context.$primevue && vnode.context.$primevue.config.ripple) {
|
|
@@ -5459,7 +5385,6 @@ var Ripple = {
|
|
|
5459
5385
|
navBackward: function navBackward(e) {
|
|
5460
5386
|
this.stopSlideShow();
|
|
5461
5387
|
this.prev();
|
|
5462
|
-
|
|
5463
5388
|
if (e && e.cancelable) {
|
|
5464
5389
|
e.preventDefault();
|
|
5465
5390
|
}
|
|
@@ -5467,7 +5392,6 @@ var Ripple = {
|
|
|
5467
5392
|
navForward: function navForward(e) {
|
|
5468
5393
|
this.stopSlideShow();
|
|
5469
5394
|
this.next();
|
|
5470
|
-
|
|
5471
5395
|
if (e && e.cancelable) {
|
|
5472
5396
|
e.preventDefault();
|
|
5473
5397
|
}
|
|
@@ -5540,11 +5464,10 @@ var GalleriaItem_component = normalizeComponent(
|
|
|
5540
5464
|
)
|
|
5541
5465
|
|
|
5542
5466
|
/* harmony default export */ var GalleriaItem = (GalleriaItem_component.exports);
|
|
5543
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
5467
|
+
// 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/galleria/GalleriaThumbnails.vue?vue&type=template&id=11247977&
|
|
5544
5468
|
var GalleriaThumbnailsvue_type_template_id_11247977_render = function render() {
|
|
5545
5469
|
var _vm = this,
|
|
5546
|
-
|
|
5547
|
-
|
|
5470
|
+
_c = _vm._self._c;
|
|
5548
5471
|
return _c('div', {
|
|
5549
5472
|
staticClass: "p-galleria-thumbnail-wrapper"
|
|
5550
5473
|
}, [_c('div', {
|
|
@@ -5635,7 +5558,6 @@ var GalleriaThumbnailsvue_type_template_id_11247977_render = function render() {
|
|
|
5635
5558
|
class: _vm.navForwardIconClass
|
|
5636
5559
|
})]) : _vm._e()])]);
|
|
5637
5560
|
};
|
|
5638
|
-
|
|
5639
5561
|
var GalleriaThumbnailsvue_type_template_id_11247977_staticRenderFns = [];
|
|
5640
5562
|
|
|
5641
5563
|
// CONCATENATED MODULE: ./src/components/galleria/GalleriaThumbnails.vue?vue&type=template&id=11247977&
|
|
@@ -5650,11 +5572,9 @@ var is_array_default = /*#__PURE__*/__webpack_require__.n(is_array);
|
|
|
5650
5572
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/arrayLikeToArray.js
|
|
5651
5573
|
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
5652
5574
|
if (len == null || len > arr.length) len = arr.length;
|
|
5653
|
-
|
|
5654
5575
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
5655
5576
|
arr2[i] = arr[i];
|
|
5656
5577
|
}
|
|
5657
|
-
|
|
5658
5578
|
return arr2;
|
|
5659
5579
|
}
|
|
5660
5580
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/arrayWithoutHoles.js
|
|
@@ -5785,14 +5705,12 @@ function _toConsumableArray(arr) {
|
|
|
5785
5705
|
mounted: function mounted() {
|
|
5786
5706
|
this.createStyle();
|
|
5787
5707
|
this.calculatePosition();
|
|
5788
|
-
|
|
5789
5708
|
if (this.responsiveOptions) {
|
|
5790
5709
|
this.bindDocumentListeners();
|
|
5791
5710
|
}
|
|
5792
5711
|
},
|
|
5793
5712
|
updated: function updated() {
|
|
5794
5713
|
var totalShiftedItems = this.totalShiftedItems;
|
|
5795
|
-
|
|
5796
5714
|
if (this.d_oldNumVisible !== this.d_numVisible || this.d_oldActiveItemIndex !== this.d_activeIndex) {
|
|
5797
5715
|
if (this.d_activeIndex <= this.getMedianItemIndex()) {
|
|
5798
5716
|
totalShiftedItems = 0;
|
|
@@ -5803,18 +5721,14 @@ function _toConsumableArray(arr) {
|
|
|
5803
5721
|
} else {
|
|
5804
5722
|
totalShiftedItems = this.d_activeIndex * -1 + this.getMedianItemIndex();
|
|
5805
5723
|
}
|
|
5806
|
-
|
|
5807
5724
|
if (totalShiftedItems !== this.totalShiftedItems) {
|
|
5808
5725
|
this.totalShiftedItems = totalShiftedItems;
|
|
5809
5726
|
}
|
|
5810
|
-
|
|
5811
5727
|
this.$refs.itemsContainer.style.transform = this.isVertical ? "translate3d(0, ".concat(totalShiftedItems * (100 / this.d_numVisible), "%, 0)") : "translate3d(".concat(totalShiftedItems * (100 / this.d_numVisible), "%, 0, 0)");
|
|
5812
|
-
|
|
5813
5728
|
if (this.d_oldActiveItemIndex !== this.d_activeIndex) {
|
|
5814
5729
|
DomHandler_DomHandler.removeClass(this.$refs.itemsContainer, 'p-items-hidden');
|
|
5815
5730
|
this.$refs.itemsContainer.style.transition = 'transform 500ms ease 0s';
|
|
5816
5731
|
}
|
|
5817
|
-
|
|
5818
5732
|
this.d_oldActiveItemIndex = this.d_activeIndex;
|
|
5819
5733
|
this.d_oldNumVisible = this.d_numVisible;
|
|
5820
5734
|
}
|
|
@@ -5823,7 +5737,6 @@ function _toConsumableArray(arr) {
|
|
|
5823
5737
|
if (this.responsiveOptions) {
|
|
5824
5738
|
this.unbindDocumentListeners();
|
|
5825
5739
|
}
|
|
5826
|
-
|
|
5827
5740
|
if (this.thumbnailsStyle) {
|
|
5828
5741
|
this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle);
|
|
5829
5742
|
}
|
|
@@ -5831,13 +5744,11 @@ function _toConsumableArray(arr) {
|
|
|
5831
5744
|
methods: {
|
|
5832
5745
|
step: function step(dir) {
|
|
5833
5746
|
var totalShiftedItems = this.totalShiftedItems + dir;
|
|
5834
|
-
|
|
5835
5747
|
if (dir < 0 && -1 * totalShiftedItems + this.d_numVisible > this.value.length - 1) {
|
|
5836
5748
|
totalShiftedItems = this.d_numVisible - this.value.length;
|
|
5837
5749
|
} else if (dir > 0 && totalShiftedItems > 0) {
|
|
5838
5750
|
totalShiftedItems = 0;
|
|
5839
5751
|
}
|
|
5840
|
-
|
|
5841
5752
|
if (this.circular) {
|
|
5842
5753
|
if (dir < 0 && this.value.length - 1 === this.d_activeIndex) {
|
|
5843
5754
|
totalShiftedItems = 0;
|
|
@@ -5845,13 +5756,11 @@ function _toConsumableArray(arr) {
|
|
|
5845
5756
|
totalShiftedItems = this.d_numVisible - this.value.length;
|
|
5846
5757
|
}
|
|
5847
5758
|
}
|
|
5848
|
-
|
|
5849
5759
|
if (this.$refs.itemsContainer) {
|
|
5850
5760
|
DomHandler_DomHandler.removeClass(this.$refs.itemsContainer, 'p-items-hidden');
|
|
5851
5761
|
this.$refs.itemsContainer.style.transform = this.isVertical ? "translate3d(0, ".concat(totalShiftedItems * (100 / this.d_numVisible), "%, 0)") : "translate3d(".concat(totalShiftedItems * (100 / this.d_numVisible), "%, 0, 0)");
|
|
5852
5762
|
this.$refs.itemsContainer.style.transition = 'transform 500ms ease 0s';
|
|
5853
5763
|
}
|
|
5854
|
-
|
|
5855
5764
|
this.totalShiftedItems = totalShiftedItems;
|
|
5856
5765
|
},
|
|
5857
5766
|
stopSlideShow: function stopSlideShow() {
|
|
@@ -5867,14 +5776,11 @@ function _toConsumableArray(arr) {
|
|
|
5867
5776
|
this.stopSlideShow();
|
|
5868
5777
|
var prevItemIndex = this.d_activeIndex !== 0 ? this.d_activeIndex - 1 : 0;
|
|
5869
5778
|
var diff = prevItemIndex + this.totalShiftedItems;
|
|
5870
|
-
|
|
5871
5779
|
if (this.d_numVisible - diff - 1 > this.getMedianItemIndex() && (-1 * this.totalShiftedItems !== 0 || this.circular)) {
|
|
5872
5780
|
this.step(1);
|
|
5873
5781
|
}
|
|
5874
|
-
|
|
5875
5782
|
var activeIndex = this.circular && this.d_activeIndex === 0 ? this.value.length - 1 : prevItemIndex;
|
|
5876
5783
|
this.$emit('update:activeIndex', activeIndex);
|
|
5877
|
-
|
|
5878
5784
|
if (e.cancelable) {
|
|
5879
5785
|
e.preventDefault();
|
|
5880
5786
|
}
|
|
@@ -5882,14 +5788,11 @@ function _toConsumableArray(arr) {
|
|
|
5882
5788
|
navForward: function navForward(e) {
|
|
5883
5789
|
this.stopSlideShow();
|
|
5884
5790
|
var nextItemIndex = this.d_activeIndex + 1;
|
|
5885
|
-
|
|
5886
5791
|
if (nextItemIndex + this.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 || this.circular)) {
|
|
5887
5792
|
this.step(-1);
|
|
5888
5793
|
}
|
|
5889
|
-
|
|
5890
5794
|
var activeIndex = this.circular && this.value.length - 1 === this.d_activeIndex ? 0 : nextItemIndex;
|
|
5891
5795
|
this.$emit('update:activeIndex', activeIndex);
|
|
5892
|
-
|
|
5893
5796
|
if (e.cancelable) {
|
|
5894
5797
|
e.preventDefault();
|
|
5895
5798
|
}
|
|
@@ -5897,25 +5800,20 @@ function _toConsumableArray(arr) {
|
|
|
5897
5800
|
onItemClick: function onItemClick(index) {
|
|
5898
5801
|
this.stopSlideShow();
|
|
5899
5802
|
var selectedItemIndex = index;
|
|
5900
|
-
|
|
5901
5803
|
if (selectedItemIndex !== this.d_activeIndex) {
|
|
5902
5804
|
var diff = selectedItemIndex + this.totalShiftedItems;
|
|
5903
5805
|
var dir = 0;
|
|
5904
|
-
|
|
5905
5806
|
if (selectedItemIndex < this.d_activeIndex) {
|
|
5906
5807
|
dir = this.d_numVisible - diff - 1 - this.getMedianItemIndex();
|
|
5907
|
-
|
|
5908
5808
|
if (dir > 0 && -1 * this.totalShiftedItems !== 0) {
|
|
5909
5809
|
this.step(dir);
|
|
5910
5810
|
}
|
|
5911
5811
|
} else {
|
|
5912
5812
|
dir = this.getMedianItemIndex() - diff;
|
|
5913
|
-
|
|
5914
5813
|
if (dir < 0 && -1 * this.totalShiftedItems < this.getTotalPageNumber() - 1) {
|
|
5915
5814
|
this.step(dir);
|
|
5916
5815
|
}
|
|
5917
5816
|
}
|
|
5918
|
-
|
|
5919
5817
|
this.$emit('update:activeIndex', selectedItemIndex);
|
|
5920
5818
|
}
|
|
5921
5819
|
},
|
|
@@ -5939,7 +5837,6 @@ function _toConsumableArray(arr) {
|
|
|
5939
5837
|
},
|
|
5940
5838
|
onTouchEnd: function onTouchEnd(e) {
|
|
5941
5839
|
var touchobj = e.changedTouches[0];
|
|
5942
|
-
|
|
5943
5840
|
if (this.isVertical) {
|
|
5944
5841
|
this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);
|
|
5945
5842
|
} else {
|
|
@@ -5964,9 +5861,7 @@ function _toConsumableArray(arr) {
|
|
|
5964
5861
|
this.thumbnailsStyle.type = 'text/css';
|
|
5965
5862
|
document.body.appendChild(this.thumbnailsStyle);
|
|
5966
5863
|
}
|
|
5967
|
-
|
|
5968
5864
|
var innerHTML = "\n #".concat(this.containerId, " .p-galleria-thumbnail-item {\n flex: 1 0 ").concat(100 / this.d_numVisible, "%\n }\n ");
|
|
5969
|
-
|
|
5970
5865
|
if (this.responsiveOptions) {
|
|
5971
5866
|
this.sortedResponsiveOptions = _toConsumableArray(this.responsiveOptions);
|
|
5972
5867
|
this.sortedResponsiveOptions.sort(function (data1, data2) {
|
|
@@ -5978,13 +5873,11 @@ function _toConsumableArray(arr) {
|
|
|
5978
5873
|
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
5979
5874
|
return -1 * result;
|
|
5980
5875
|
});
|
|
5981
|
-
|
|
5982
5876
|
for (var i = 0; i < this.sortedResponsiveOptions.length; i++) {
|
|
5983
5877
|
var res = this.sortedResponsiveOptions[i];
|
|
5984
5878
|
innerHTML += "\n @media screen and (max-width: ".concat(res.breakpoint, ") {\n #").concat(this.containerId, " .p-galleria-thumbnail-item {\n flex: 1 0 ").concat(100 / res.numVisible, "%\n }\n }\n ");
|
|
5985
5879
|
}
|
|
5986
5880
|
}
|
|
5987
|
-
|
|
5988
5881
|
this.thumbnailsStyle.innerHTML = innerHTML;
|
|
5989
5882
|
},
|
|
5990
5883
|
calculatePosition: function calculatePosition() {
|
|
@@ -5993,15 +5886,12 @@ function _toConsumableArray(arr) {
|
|
|
5993
5886
|
var matchedResponsiveData = {
|
|
5994
5887
|
numVisible: this.numVisible
|
|
5995
5888
|
};
|
|
5996
|
-
|
|
5997
5889
|
for (var i = 0; i < this.sortedResponsiveOptions.length; i++) {
|
|
5998
5890
|
var res = this.sortedResponsiveOptions[i];
|
|
5999
|
-
|
|
6000
5891
|
if (parseInt(res.breakpoint, 10) >= windowWidth) {
|
|
6001
5892
|
matchedResponsiveData = res;
|
|
6002
5893
|
}
|
|
6003
5894
|
}
|
|
6004
|
-
|
|
6005
5895
|
if (this.d_numVisible !== matchedResponsiveData.numVisible) {
|
|
6006
5896
|
this.d_numVisible = matchedResponsiveData.numVisible;
|
|
6007
5897
|
}
|
|
@@ -6009,12 +5899,10 @@ function _toConsumableArray(arr) {
|
|
|
6009
5899
|
},
|
|
6010
5900
|
bindDocumentListeners: function bindDocumentListeners() {
|
|
6011
5901
|
var _this = this;
|
|
6012
|
-
|
|
6013
5902
|
if (!this.documentResizeListener) {
|
|
6014
5903
|
this.documentResizeListener = function () {
|
|
6015
5904
|
_this.calculatePosition();
|
|
6016
5905
|
};
|
|
6017
|
-
|
|
6018
5906
|
window.addEventListener('resize', this.documentResizeListener);
|
|
6019
5907
|
}
|
|
6020
5908
|
},
|
|
@@ -6138,7 +6026,6 @@ var GalleriaThumbnails_component = normalizeComponent(
|
|
|
6138
6026
|
},
|
|
6139
6027
|
startSlideShow: function startSlideShow() {
|
|
6140
6028
|
var _this = this;
|
|
6141
|
-
|
|
6142
6029
|
this.interval = setInterval(function () {
|
|
6143
6030
|
var activeIndex = _this.$attrs.circular && _this.$attrs.value.length - 1 === _this.activeIndex ? 0 : _this.activeIndex + 1;
|
|
6144
6031
|
_this.activeIndex = activeIndex;
|
|
@@ -6149,7 +6036,6 @@ var GalleriaThumbnails_component = normalizeComponent(
|
|
|
6149
6036
|
if (this.interval) {
|
|
6150
6037
|
clearInterval(this.interval);
|
|
6151
6038
|
}
|
|
6152
|
-
|
|
6153
6039
|
this.slideShowActive = false;
|
|
6154
6040
|
},
|
|
6155
6041
|
getPositionClass: function getPositionClass(preClassName, position) {
|