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
package/carousel/carousel.umd.js
CHANGED
|
@@ -3333,11 +3333,10 @@ if (typeof window !== 'undefined') {
|
|
|
3333
3333
|
// Indicate to webpack that this file can be concatenated
|
|
3334
3334
|
/* harmony default export */ var setPublicPath = (null);
|
|
3335
3335
|
|
|
3336
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3336
|
+
// 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/carousel/Carousel.vue?vue&type=template&id=6265cde7&
|
|
3337
3337
|
var render = function render() {
|
|
3338
3338
|
var _vm = this,
|
|
3339
|
-
|
|
3340
|
-
|
|
3339
|
+
_c = _vm._self._c;
|
|
3341
3340
|
return _c('div', {
|
|
3342
3341
|
class: ['p-carousel p-component', {
|
|
3343
3342
|
'p-carousel-vertical': _vm.isVertical(),
|
|
@@ -3467,7 +3466,6 @@ var render = function render() {
|
|
|
3467
3466
|
staticClass: "p-carousel-footer"
|
|
3468
3467
|
}, [_vm._t("footer")], 2) : _vm._e()]);
|
|
3469
3468
|
};
|
|
3470
|
-
|
|
3471
3469
|
var staticRenderFns = [];
|
|
3472
3470
|
|
|
3473
3471
|
// CONCATENATED MODULE: ./src/components/carousel/Carousel.vue?vue&type=template&id=6265cde7&
|
|
@@ -3527,26 +3525,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
3527
3525
|
|
|
3528
3526
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
3529
3527
|
|
|
3530
|
-
|
|
3531
3528
|
function _defineProperties(target, props) {
|
|
3532
3529
|
for (var i = 0; i < props.length; i++) {
|
|
3533
3530
|
var descriptor = props[i];
|
|
3534
3531
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
3535
3532
|
descriptor.configurable = true;
|
|
3536
3533
|
if ("value" in descriptor) descriptor.writable = true;
|
|
3537
|
-
|
|
3538
3534
|
define_property_default()(target, descriptor.key, descriptor);
|
|
3539
3535
|
}
|
|
3540
3536
|
}
|
|
3541
|
-
|
|
3542
3537
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
3543
3538
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
3544
3539
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
3545
|
-
|
|
3546
3540
|
define_property_default()(Constructor, "prototype", {
|
|
3547
3541
|
writable: false
|
|
3548
3542
|
});
|
|
3549
|
-
|
|
3550
3543
|
return Constructor;
|
|
3551
3544
|
}
|
|
3552
3545
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -3562,18 +3555,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
3562
3555
|
|
|
3563
3556
|
|
|
3564
3557
|
|
|
3565
|
-
|
|
3566
3558
|
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; } } }; }
|
|
3567
|
-
|
|
3568
3559
|
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); }
|
|
3569
|
-
|
|
3570
3560
|
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; }
|
|
3571
|
-
|
|
3572
3561
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
3573
3562
|
function DomHandler() {
|
|
3574
3563
|
_classCallCheck(this, DomHandler);
|
|
3575
3564
|
}
|
|
3576
|
-
|
|
3577
3565
|
_createClass(DomHandler, null, [{
|
|
3578
3566
|
key: "innerWidth",
|
|
3579
3567
|
value: function innerWidth(el) {
|
|
@@ -3607,12 +3595,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3607
3595
|
value: function getOuterWidth(el, margin) {
|
|
3608
3596
|
if (el) {
|
|
3609
3597
|
var width = el.offsetWidth;
|
|
3610
|
-
|
|
3611
3598
|
if (margin) {
|
|
3612
3599
|
var style = getComputedStyle(el);
|
|
3613
3600
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
3614
3601
|
}
|
|
3615
|
-
|
|
3616
3602
|
return width;
|
|
3617
3603
|
} else {
|
|
3618
3604
|
return 0;
|
|
@@ -3623,12 +3609,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3623
3609
|
value: function getOuterHeight(el, margin) {
|
|
3624
3610
|
if (el) {
|
|
3625
3611
|
var height = el.offsetHeight;
|
|
3626
|
-
|
|
3627
3612
|
if (margin) {
|
|
3628
3613
|
var style = getComputedStyle(el);
|
|
3629
3614
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3630
3615
|
}
|
|
3631
|
-
|
|
3632
3616
|
return height;
|
|
3633
3617
|
} else {
|
|
3634
3618
|
return 0;
|
|
@@ -3639,12 +3623,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3639
3623
|
value: function getClientHeight(el, margin) {
|
|
3640
3624
|
if (el) {
|
|
3641
3625
|
var height = el.clientHeight;
|
|
3642
|
-
|
|
3643
3626
|
if (margin) {
|
|
3644
3627
|
var style = getComputedStyle(el);
|
|
3645
3628
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3646
3629
|
}
|
|
3647
|
-
|
|
3648
3630
|
return height;
|
|
3649
3631
|
} else {
|
|
3650
3632
|
return 0;
|
|
@@ -3654,11 +3636,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3654
3636
|
key: "getViewport",
|
|
3655
3637
|
value: function getViewport() {
|
|
3656
3638
|
var win = window,
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3639
|
+
d = document,
|
|
3640
|
+
e = d.documentElement,
|
|
3641
|
+
g = d.getElementsByTagName('body')[0],
|
|
3642
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
3643
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
3662
3644
|
return {
|
|
3663
3645
|
width: w,
|
|
3664
3646
|
height: h
|
|
@@ -3689,12 +3671,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3689
3671
|
value: function index(element) {
|
|
3690
3672
|
var children = element.parentNode.childNodes;
|
|
3691
3673
|
var num = 0;
|
|
3692
|
-
|
|
3693
3674
|
for (var i = 0; i < children.length; i++) {
|
|
3694
3675
|
if (children[i] === element) return num;
|
|
3695
3676
|
if (children[i].nodeType === 1) num++;
|
|
3696
3677
|
}
|
|
3697
|
-
|
|
3698
3678
|
return -1;
|
|
3699
3679
|
}
|
|
3700
3680
|
}, {
|
|
@@ -3702,13 +3682,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3702
3682
|
value: function addMultipleClasses(element, className) {
|
|
3703
3683
|
if (element.classList) {
|
|
3704
3684
|
var styles = className.split(' ');
|
|
3705
|
-
|
|
3706
3685
|
for (var i = 0; i < styles.length; i++) {
|
|
3707
3686
|
element.classList.add(styles[i]);
|
|
3708
3687
|
}
|
|
3709
3688
|
} else {
|
|
3710
3689
|
var _styles = className.split(' ');
|
|
3711
|
-
|
|
3712
3690
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
3713
3691
|
element.className += ' ' + _styles[_i];
|
|
3714
3692
|
}
|
|
@@ -3730,7 +3708,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3730
3708
|
if (element) {
|
|
3731
3709
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
3732
3710
|
}
|
|
3733
|
-
|
|
3734
3711
|
return false;
|
|
3735
3712
|
}
|
|
3736
3713
|
}, {
|
|
@@ -3775,11 +3752,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3775
3752
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
3776
3753
|
var viewport = this.getViewport();
|
|
3777
3754
|
var top, left;
|
|
3778
|
-
|
|
3779
3755
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
3780
3756
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
3781
3757
|
element.style.transformOrigin = 'bottom';
|
|
3782
|
-
|
|
3783
3758
|
if (top < 0) {
|
|
3784
3759
|
top = windowScrollTop;
|
|
3785
3760
|
}
|
|
@@ -3787,7 +3762,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3787
3762
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
3788
3763
|
element.style.transformOrigin = 'top';
|
|
3789
3764
|
}
|
|
3790
|
-
|
|
3791
3765
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
3792
3766
|
element.style.top = top + 'px';
|
|
3793
3767
|
element.style.left = left + 'px';
|
|
@@ -3803,11 +3777,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3803
3777
|
var targetOffset = target.getBoundingClientRect();
|
|
3804
3778
|
var viewport = this.getViewport();
|
|
3805
3779
|
var top, left;
|
|
3806
|
-
|
|
3807
3780
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
3808
3781
|
top = -1 * elementDimensions.height;
|
|
3809
3782
|
element.style.transformOrigin = 'bottom';
|
|
3810
|
-
|
|
3811
3783
|
if (targetOffset.top + top < 0) {
|
|
3812
3784
|
top = -1 * targetOffset.top;
|
|
3813
3785
|
}
|
|
@@ -3815,7 +3787,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3815
3787
|
top = targetHeight;
|
|
3816
3788
|
element.style.transformOrigin = 'top';
|
|
3817
3789
|
}
|
|
3818
|
-
|
|
3819
3790
|
if (elementDimensions.width > viewport.width) {
|
|
3820
3791
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
3821
3792
|
left = targetOffset.left * -1;
|
|
@@ -3826,7 +3797,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3826
3797
|
// element fits on screen (align with target)
|
|
3827
3798
|
left = 0;
|
|
3828
3799
|
}
|
|
3829
|
-
|
|
3830
3800
|
element.style.top = top + 'px';
|
|
3831
3801
|
element.style.left = left + 'px';
|
|
3832
3802
|
}
|
|
@@ -3840,35 +3810,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3840
3810
|
key: "getScrollableParents",
|
|
3841
3811
|
value: function getScrollableParents(element) {
|
|
3842
3812
|
var scrollableParents = [];
|
|
3843
|
-
|
|
3844
3813
|
if (element) {
|
|
3845
3814
|
var parents = this.getParents(element);
|
|
3846
3815
|
var overflowRegex = /(auto|scroll)/;
|
|
3847
|
-
|
|
3848
3816
|
var overflowCheck = function overflowCheck(node) {
|
|
3849
3817
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
3850
3818
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
3851
3819
|
};
|
|
3852
|
-
|
|
3853
3820
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
3854
|
-
|
|
3855
|
-
|
|
3821
|
+
_step;
|
|
3856
3822
|
try {
|
|
3857
3823
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3858
3824
|
var parent = _step.value;
|
|
3859
3825
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
3860
|
-
|
|
3861
3826
|
if (scrollSelectors) {
|
|
3862
3827
|
var selectors = scrollSelectors.split(',');
|
|
3863
|
-
|
|
3864
3828
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
3865
|
-
|
|
3866
|
-
|
|
3829
|
+
_step2;
|
|
3867
3830
|
try {
|
|
3868
3831
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
3869
3832
|
var selector = _step2.value;
|
|
3870
3833
|
var el = this.findSingle(parent, selector);
|
|
3871
|
-
|
|
3872
3834
|
if (el && overflowCheck(el)) {
|
|
3873
3835
|
scrollableParents.push(el);
|
|
3874
3836
|
}
|
|
@@ -3886,7 +3848,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3886
3848
|
_iterator.f();
|
|
3887
3849
|
}
|
|
3888
3850
|
}
|
|
3889
|
-
|
|
3890
3851
|
return scrollableParents;
|
|
3891
3852
|
}
|
|
3892
3853
|
}, {
|
|
@@ -3927,34 +3888,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3927
3888
|
element.style.opacity = 0;
|
|
3928
3889
|
var last = +new Date();
|
|
3929
3890
|
var opacity = 0;
|
|
3930
|
-
|
|
3931
3891
|
var tick = function tick() {
|
|
3932
3892
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
3933
3893
|
element.style.opacity = opacity;
|
|
3934
3894
|
last = +new Date();
|
|
3935
|
-
|
|
3936
3895
|
if (+opacity < 1) {
|
|
3937
3896
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
3938
3897
|
}
|
|
3939
3898
|
};
|
|
3940
|
-
|
|
3941
3899
|
tick();
|
|
3942
3900
|
}
|
|
3943
3901
|
}, {
|
|
3944
3902
|
key: "fadeOut",
|
|
3945
3903
|
value: function fadeOut(element, ms) {
|
|
3946
3904
|
var opacity = 1,
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3905
|
+
interval = 50,
|
|
3906
|
+
duration = ms,
|
|
3907
|
+
gap = interval / duration;
|
|
3950
3908
|
var fading = setInterval(function () {
|
|
3951
3909
|
opacity -= gap;
|
|
3952
|
-
|
|
3953
3910
|
if (opacity <= 0) {
|
|
3954
3911
|
opacity = 0;
|
|
3955
3912
|
clearInterval(fading);
|
|
3956
3913
|
}
|
|
3957
|
-
|
|
3958
3914
|
element.style.opacity = opacity;
|
|
3959
3915
|
}, interval);
|
|
3960
3916
|
}
|
|
@@ -3981,7 +3937,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3981
3937
|
var scroll = container.scrollTop;
|
|
3982
3938
|
var elementHeight = container.clientHeight;
|
|
3983
3939
|
var itemHeight = this.getOuterHeight(item);
|
|
3984
|
-
|
|
3985
3940
|
if (offset < 0) {
|
|
3986
3941
|
container.scrollTop = scroll + offset;
|
|
3987
3942
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -4000,7 +3955,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4000
3955
|
} else if (document['selection'] && document['selection'].empty) {
|
|
4001
3956
|
try {
|
|
4002
3957
|
document['selection'].empty();
|
|
4003
|
-
} catch (error) {
|
|
3958
|
+
} catch (error) {
|
|
3959
|
+
//ignore IE bug
|
|
4004
3960
|
}
|
|
4005
3961
|
}
|
|
4006
3962
|
}
|
|
@@ -4022,19 +3978,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4022
3978
|
if (!this.browser) {
|
|
4023
3979
|
var matched = this.resolveUserAgent();
|
|
4024
3980
|
this.browser = {};
|
|
4025
|
-
|
|
4026
3981
|
if (matched.browser) {
|
|
4027
3982
|
this.browser[matched.browser] = true;
|
|
4028
3983
|
this.browser['version'] = matched.version;
|
|
4029
3984
|
}
|
|
4030
|
-
|
|
4031
3985
|
if (this.browser['chrome']) {
|
|
4032
3986
|
this.browser['webkit'] = true;
|
|
4033
3987
|
} else if (this.browser['webkit']) {
|
|
4034
3988
|
this.browser['safari'] = true;
|
|
4035
3989
|
}
|
|
4036
3990
|
}
|
|
4037
|
-
|
|
4038
3991
|
return this.browser;
|
|
4039
3992
|
}
|
|
4040
3993
|
}, {
|
|
@@ -4062,10 +4015,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4062
4015
|
value: function getFocusableElements(element) {
|
|
4063
4016
|
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])");
|
|
4064
4017
|
var visibleFocusableElements = [];
|
|
4065
|
-
|
|
4066
4018
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
4067
|
-
|
|
4068
|
-
|
|
4019
|
+
_step3;
|
|
4069
4020
|
try {
|
|
4070
4021
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
4071
4022
|
var focusableElement = _step3.value;
|
|
@@ -4076,7 +4027,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4076
4027
|
} finally {
|
|
4077
4028
|
_iterator3.f();
|
|
4078
4029
|
}
|
|
4079
|
-
|
|
4080
4030
|
return visibleFocusableElements;
|
|
4081
4031
|
}
|
|
4082
4032
|
}, {
|
|
@@ -4119,55 +4069,43 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4119
4069
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
4120
4070
|
}
|
|
4121
4071
|
}]);
|
|
4122
|
-
|
|
4123
4072
|
return DomHandler;
|
|
4124
4073
|
}();
|
|
4125
4074
|
|
|
4126
|
-
|
|
4127
4075
|
// CONCATENATED MODULE: ./src/components/ripple/Ripple.js
|
|
4128
4076
|
|
|
4129
|
-
|
|
4130
4077
|
function bindEvents(el) {
|
|
4131
4078
|
el.addEventListener('mousedown', onMouseDown);
|
|
4132
4079
|
}
|
|
4133
|
-
|
|
4134
4080
|
function unbindEvents(el) {
|
|
4135
4081
|
el.removeEventListener('mousedown', onMouseDown);
|
|
4136
4082
|
}
|
|
4137
|
-
|
|
4138
4083
|
function create(el) {
|
|
4139
4084
|
var ink = document.createElement('span');
|
|
4140
4085
|
ink.className = 'p-ink';
|
|
4141
4086
|
el.appendChild(ink);
|
|
4142
4087
|
ink.addEventListener('animationend', onAnimationEnd);
|
|
4143
4088
|
}
|
|
4144
|
-
|
|
4145
4089
|
function remove(el) {
|
|
4146
4090
|
var ink = getInk(el);
|
|
4147
|
-
|
|
4148
4091
|
if (ink) {
|
|
4149
4092
|
unbindEvents(el);
|
|
4150
4093
|
ink.removeEventListener('animationend', onAnimationEnd);
|
|
4151
4094
|
ink.remove();
|
|
4152
4095
|
}
|
|
4153
4096
|
}
|
|
4154
|
-
|
|
4155
4097
|
function onMouseDown(event) {
|
|
4156
4098
|
var target = event.currentTarget;
|
|
4157
4099
|
var ink = getInk(target);
|
|
4158
|
-
|
|
4159
4100
|
if (!ink || getComputedStyle(ink, null).display === 'none') {
|
|
4160
4101
|
return;
|
|
4161
4102
|
}
|
|
4162
|
-
|
|
4163
4103
|
DomHandler_DomHandler.removeClass(ink, 'p-ink-active');
|
|
4164
|
-
|
|
4165
4104
|
if (!DomHandler_DomHandler.getHeight(ink) && !DomHandler_DomHandler.getWidth(ink)) {
|
|
4166
4105
|
var d = Math.max(DomHandler_DomHandler.getOuterWidth(target), DomHandler_DomHandler.getOuterHeight(target));
|
|
4167
4106
|
ink.style.height = d + 'px';
|
|
4168
4107
|
ink.style.width = d + 'px';
|
|
4169
4108
|
}
|
|
4170
|
-
|
|
4171
4109
|
var offset = DomHandler_DomHandler.getOffset(target);
|
|
4172
4110
|
var x = event.pageX - offset.left + document.body.scrollTop - DomHandler_DomHandler.getWidth(ink) / 2;
|
|
4173
4111
|
var y = event.pageY - offset.top + document.body.scrollLeft - DomHandler_DomHandler.getHeight(ink) / 2;
|
|
@@ -4175,21 +4113,17 @@ function onMouseDown(event) {
|
|
|
4175
4113
|
ink.style.left = x + 'px';
|
|
4176
4114
|
DomHandler_DomHandler.addClass(ink, 'p-ink-active');
|
|
4177
4115
|
}
|
|
4178
|
-
|
|
4179
4116
|
function onAnimationEnd(event) {
|
|
4180
4117
|
DomHandler_DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
4181
4118
|
}
|
|
4182
|
-
|
|
4183
4119
|
function getInk(el) {
|
|
4184
4120
|
for (var i = 0; i < el.children.length; i++) {
|
|
4185
4121
|
if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
|
|
4186
4122
|
return el.children[i];
|
|
4187
4123
|
}
|
|
4188
4124
|
}
|
|
4189
|
-
|
|
4190
4125
|
return null;
|
|
4191
4126
|
}
|
|
4192
|
-
|
|
4193
4127
|
var Ripple = {
|
|
4194
4128
|
inserted: function inserted(el, binding, vnode) {
|
|
4195
4129
|
if (vnode.context.$primevue && vnode.context.$primevue.config.ripple) {
|
|
@@ -4284,27 +4218,21 @@ var Ripple = {
|
|
|
4284
4218
|
step: function step(dir, page) {
|
|
4285
4219
|
var totalShiftedItems = this.totalShiftedItems;
|
|
4286
4220
|
var isCircular = this.isCircular();
|
|
4287
|
-
|
|
4288
4221
|
if (page != null) {
|
|
4289
4222
|
totalShiftedItems = this.d_numScroll * page * -1;
|
|
4290
|
-
|
|
4291
4223
|
if (isCircular) {
|
|
4292
4224
|
totalShiftedItems -= this.d_numVisible;
|
|
4293
4225
|
}
|
|
4294
|
-
|
|
4295
4226
|
this.isRemainingItemsAdded = false;
|
|
4296
4227
|
} else {
|
|
4297
4228
|
totalShiftedItems += this.d_numScroll * dir;
|
|
4298
|
-
|
|
4299
4229
|
if (this.isRemainingItemsAdded) {
|
|
4300
4230
|
totalShiftedItems += this.remainingItems - this.d_numScroll * dir;
|
|
4301
4231
|
this.isRemainingItemsAdded = false;
|
|
4302
4232
|
}
|
|
4303
|
-
|
|
4304
4233
|
var originalShiftedItems = isCircular ? totalShiftedItems + this.d_numVisible : totalShiftedItems;
|
|
4305
4234
|
page = Math.abs(Math.floor(originalShiftedItems / this.d_numScroll));
|
|
4306
4235
|
}
|
|
4307
|
-
|
|
4308
4236
|
if (isCircular && this.d_page === this.totalIndicators - 1 && dir === -1) {
|
|
4309
4237
|
totalShiftedItems = -1 * (this.value.length + this.d_numVisible);
|
|
4310
4238
|
page = 0;
|
|
@@ -4315,13 +4243,11 @@ var Ripple = {
|
|
|
4315
4243
|
totalShiftedItems += this.remainingItems * -1 - this.d_numScroll * dir;
|
|
4316
4244
|
this.isRemainingItemsAdded = true;
|
|
4317
4245
|
}
|
|
4318
|
-
|
|
4319
4246
|
if (this.$refs.itemsContainer) {
|
|
4320
4247
|
DomHandler_DomHandler.removeClass(this.$refs.itemsContainer, 'p-items-hidden');
|
|
4321
4248
|
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)");
|
|
4322
4249
|
this.$refs.itemsContainer.style.transition = 'transform 500ms ease 0s';
|
|
4323
4250
|
}
|
|
4324
|
-
|
|
4325
4251
|
this.totalShiftedItems = totalShiftedItems;
|
|
4326
4252
|
this.$emit('update:page', page);
|
|
4327
4253
|
this.d_page = page;
|
|
@@ -4333,29 +4259,23 @@ var Ripple = {
|
|
|
4333
4259
|
numVisible: this.numVisible,
|
|
4334
4260
|
numScroll: this.numScroll
|
|
4335
4261
|
};
|
|
4336
|
-
|
|
4337
4262
|
for (var i = 0; i < this.responsiveOptions.length; i++) {
|
|
4338
4263
|
var res = this.responsiveOptions[i];
|
|
4339
|
-
|
|
4340
4264
|
if (parseInt(res.breakpoint, 10) >= windowWidth) {
|
|
4341
4265
|
matchedResponsiveOptionsData = res;
|
|
4342
4266
|
}
|
|
4343
4267
|
}
|
|
4344
|
-
|
|
4345
4268
|
if (this.d_numScroll !== matchedResponsiveOptionsData.numScroll) {
|
|
4346
4269
|
var page = this.d_page;
|
|
4347
4270
|
page = parseInt(page * this.d_numScroll / matchedResponsiveOptionsData.numScroll);
|
|
4348
4271
|
this.totalShiftedItems = matchedResponsiveOptionsData.numScroll * page * -1;
|
|
4349
|
-
|
|
4350
4272
|
if (this.isCircular()) {
|
|
4351
4273
|
this.totalShiftedItems -= matchedResponsiveOptionsData.numVisible;
|
|
4352
4274
|
}
|
|
4353
|
-
|
|
4354
4275
|
this.d_numScroll = matchedResponsiveOptionsData.numScroll;
|
|
4355
4276
|
this.$emit('update:page', page);
|
|
4356
4277
|
this.d_page = page;
|
|
4357
4278
|
}
|
|
4358
|
-
|
|
4359
4279
|
if (this.d_numVisible !== matchedResponsiveOptionsData.numVisible) {
|
|
4360
4280
|
this.d_numVisible = matchedResponsiveOptionsData.numVisible;
|
|
4361
4281
|
}
|
|
@@ -4365,9 +4285,7 @@ var Ripple = {
|
|
|
4365
4285
|
if (this.d_circular || this.d_page !== 0) {
|
|
4366
4286
|
this.step(1, index);
|
|
4367
4287
|
}
|
|
4368
|
-
|
|
4369
4288
|
this.allowAutoplay = false;
|
|
4370
|
-
|
|
4371
4289
|
if (e.cancelable) {
|
|
4372
4290
|
e.preventDefault();
|
|
4373
4291
|
}
|
|
@@ -4376,16 +4294,13 @@ var Ripple = {
|
|
|
4376
4294
|
if (this.d_circular || this.d_page < this.totalIndicators - 1) {
|
|
4377
4295
|
this.step(-1, index);
|
|
4378
4296
|
}
|
|
4379
|
-
|
|
4380
4297
|
this.allowAutoplay = false;
|
|
4381
|
-
|
|
4382
4298
|
if (e.cancelable) {
|
|
4383
4299
|
e.preventDefault();
|
|
4384
4300
|
}
|
|
4385
4301
|
},
|
|
4386
4302
|
onIndicatorClick: function onIndicatorClick(e, index) {
|
|
4387
4303
|
var page = this.d_page;
|
|
4388
|
-
|
|
4389
4304
|
if (index > page) {
|
|
4390
4305
|
this.navForward(e, index);
|
|
4391
4306
|
} else if (index < page) {
|
|
@@ -4396,7 +4311,6 @@ var Ripple = {
|
|
|
4396
4311
|
if (this.$refs.itemsContainer) {
|
|
4397
4312
|
DomHandler_DomHandler.addClass(this.$refs.itemsContainer, 'p-items-hidden');
|
|
4398
4313
|
this.$refs.itemsContainer.style.transition = '';
|
|
4399
|
-
|
|
4400
4314
|
if ((this.d_page === 0 || this.d_page === this.totalIndicators - 1) && this.isCircular()) {
|
|
4401
4315
|
this.$refs.itemsContainer.style.transform = this.isVertical() ? "translate3d(0, ".concat(this.totalShiftedItems * (100 / this.d_numVisible), "%, 0)") : "translate3d(".concat(this.totalShiftedItems * (100 / this.d_numVisible), "%, 0, 0)");
|
|
4402
4316
|
}
|
|
@@ -4416,7 +4330,6 @@ var Ripple = {
|
|
|
4416
4330
|
},
|
|
4417
4331
|
onTouchEnd: function onTouchEnd(e) {
|
|
4418
4332
|
var touchobj = e.changedTouches[0];
|
|
4419
|
-
|
|
4420
4333
|
if (this.isVertical()) {
|
|
4421
4334
|
this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);
|
|
4422
4335
|
} else {
|
|
@@ -4436,12 +4349,10 @@ var Ripple = {
|
|
|
4436
4349
|
},
|
|
4437
4350
|
bindDocumentListeners: function bindDocumentListeners() {
|
|
4438
4351
|
var _this = this;
|
|
4439
|
-
|
|
4440
4352
|
if (!this.documentResizeListener) {
|
|
4441
4353
|
this.documentResizeListener = function (e) {
|
|
4442
4354
|
_this.calculatePosition(e);
|
|
4443
4355
|
};
|
|
4444
|
-
|
|
4445
4356
|
window.addEventListener('resize', this.documentResizeListener);
|
|
4446
4357
|
}
|
|
4447
4358
|
},
|
|
@@ -4453,7 +4364,6 @@ var Ripple = {
|
|
|
4453
4364
|
},
|
|
4454
4365
|
startAutoplay: function startAutoplay() {
|
|
4455
4366
|
var _this2 = this;
|
|
4456
|
-
|
|
4457
4367
|
this.interval = setInterval(function () {
|
|
4458
4368
|
if (_this2.d_page === _this2.totalIndicators - 1) {
|
|
4459
4369
|
_this2.step(-1, 0);
|
|
@@ -4473,9 +4383,7 @@ var Ripple = {
|
|
|
4473
4383
|
this.carouselStyle.type = 'text/css';
|
|
4474
4384
|
document.body.appendChild(this.carouselStyle);
|
|
4475
4385
|
}
|
|
4476
|
-
|
|
4477
4386
|
var innerHTML = "\n #".concat(this.id, " .p-carousel-item {\n flex: 1 0 ").concat(100 / this.d_numVisible, "%\n }\n ");
|
|
4478
|
-
|
|
4479
4387
|
if (this.responsiveOptions) {
|
|
4480
4388
|
this.responsiveOptions.sort(function (data1, data2) {
|
|
4481
4389
|
var value1 = data1.breakpoint;
|
|
@@ -4486,13 +4394,11 @@ var Ripple = {
|
|
|
4486
4394
|
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
4487
4395
|
return -1 * result;
|
|
4488
4396
|
});
|
|
4489
|
-
|
|
4490
4397
|
for (var i = 0; i < this.responsiveOptions.length; i++) {
|
|
4491
4398
|
var res = this.responsiveOptions[i];
|
|
4492
4399
|
innerHTML += "\n @media screen and (max-width: ".concat(res.breakpoint, ") {\n #").concat(this.id, " .p-carousel-item {\n flex: 1 0 ").concat(100 / res.numVisible, "%\n }\n }\n ");
|
|
4493
4400
|
}
|
|
4494
4401
|
}
|
|
4495
|
-
|
|
4496
4402
|
this.carouselStyle.innerHTML = innerHTML;
|
|
4497
4403
|
},
|
|
4498
4404
|
isVertical: function isVertical() {
|
|
@@ -4514,7 +4420,6 @@ var Ripple = {
|
|
|
4514
4420
|
mounted: function mounted() {
|
|
4515
4421
|
this.createStyle();
|
|
4516
4422
|
this.calculatePosition();
|
|
4517
|
-
|
|
4518
4423
|
if (this.responsiveOptions) {
|
|
4519
4424
|
this.bindDocumentListeners();
|
|
4520
4425
|
}
|
|
@@ -4523,63 +4428,51 @@ var Ripple = {
|
|
|
4523
4428
|
var isCircular = this.isCircular();
|
|
4524
4429
|
var stateChanged = false;
|
|
4525
4430
|
var totalShiftedItems = this.totalShiftedItems;
|
|
4526
|
-
|
|
4527
4431
|
if (this.autoplayInterval) {
|
|
4528
4432
|
this.stopAutoplay();
|
|
4529
4433
|
}
|
|
4530
|
-
|
|
4531
4434
|
if (this.d_oldNumScroll !== this.d_numScroll || this.d_oldNumVisible !== this.d_numVisible || this.d_oldValue.length !== this.value.length) {
|
|
4532
4435
|
this.remainingItems = (this.value.length - this.d_numVisible) % this.d_numScroll;
|
|
4533
4436
|
var page = this.d_page;
|
|
4534
|
-
|
|
4535
4437
|
if (this.totalIndicators !== 0 && page >= this.totalIndicators) {
|
|
4536
4438
|
page = this.totalIndicators - 1;
|
|
4537
4439
|
this.$emit('update:page', page);
|
|
4538
4440
|
this.d_page = page;
|
|
4539
4441
|
stateChanged = true;
|
|
4540
4442
|
}
|
|
4541
|
-
|
|
4542
4443
|
totalShiftedItems = page * this.d_numScroll * -1;
|
|
4543
|
-
|
|
4544
4444
|
if (isCircular) {
|
|
4545
4445
|
totalShiftedItems -= this.d_numVisible;
|
|
4546
4446
|
}
|
|
4547
|
-
|
|
4548
4447
|
if (page === this.totalIndicators - 1 && this.remainingItems > 0) {
|
|
4549
4448
|
totalShiftedItems += -1 * this.remainingItems + this.d_numScroll;
|
|
4550
4449
|
this.isRemainingItemsAdded = true;
|
|
4551
4450
|
} else {
|
|
4552
4451
|
this.isRemainingItemsAdded = false;
|
|
4553
4452
|
}
|
|
4554
|
-
|
|
4555
4453
|
if (totalShiftedItems !== this.totalShiftedItems) {
|
|
4556
4454
|
this.totalShiftedItems = totalShiftedItems;
|
|
4557
4455
|
stateChanged = true;
|
|
4558
4456
|
}
|
|
4559
|
-
|
|
4560
4457
|
this.d_oldNumScroll = this.d_numScroll;
|
|
4561
4458
|
this.d_oldNumVisible = this.d_numVisible;
|
|
4562
4459
|
this.d_oldValue = this.value;
|
|
4563
4460
|
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)");
|
|
4564
4461
|
}
|
|
4565
|
-
|
|
4566
4462
|
if (isCircular) {
|
|
4567
4463
|
if (this.d_page === 0) {
|
|
4568
4464
|
totalShiftedItems = -1 * this.d_numVisible;
|
|
4569
4465
|
} else if (totalShiftedItems === 0) {
|
|
4570
4466
|
totalShiftedItems = -1 * this.value.length;
|
|
4571
|
-
|
|
4572
4467
|
if (this.remainingItems > 0) {
|
|
4573
4468
|
this.isRemainingItemsAdded = true;
|
|
4574
4469
|
}
|
|
4575
4470
|
}
|
|
4576
|
-
|
|
4577
4471
|
if (totalShiftedItems !== this.totalShiftedItems) {
|
|
4578
4472
|
this.totalShiftedItems = totalShiftedItems;
|
|
4579
4473
|
stateChanged = true;
|
|
4580
4474
|
}
|
|
4581
4475
|
}
|
|
4582
|
-
|
|
4583
4476
|
if (!stateChanged && this.isAutoplay()) {
|
|
4584
4477
|
this.startAutoplay();
|
|
4585
4478
|
}
|
|
@@ -4588,7 +4481,6 @@ var Ripple = {
|
|
|
4588
4481
|
if (this.responsiveOptions) {
|
|
4589
4482
|
this.unbindDocumentListeners();
|
|
4590
4483
|
}
|
|
4591
|
-
|
|
4592
4484
|
if (this.autoplayInterval) {
|
|
4593
4485
|
this.stopAutoplay();
|
|
4594
4486
|
}
|