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
|
@@ -3173,11 +3173,10 @@ if (typeof window !== 'undefined') {
|
|
|
3173
3173
|
// Indicate to webpack that this file can be concatenated
|
|
3174
3174
|
/* harmony default export */ var setPublicPath = (null);
|
|
3175
3175
|
|
|
3176
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3176
|
+
// 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/imagepreview/ImagePreview.vue?vue&type=template&id=c36741da&
|
|
3177
3177
|
var render = function render() {
|
|
3178
3178
|
var _vm = this,
|
|
3179
|
-
|
|
3180
|
-
|
|
3179
|
+
_c = _vm._self._c;
|
|
3181
3180
|
return _c('span', {
|
|
3182
3181
|
ref: "container",
|
|
3183
3182
|
class: _vm.containerClass,
|
|
@@ -3266,11 +3265,9 @@ var render = function render() {
|
|
|
3266
3265
|
}
|
|
3267
3266
|
})]) : _vm._e()])], 1) : _vm._e()]);
|
|
3268
3267
|
};
|
|
3269
|
-
|
|
3270
3268
|
var staticRenderFns = [function () {
|
|
3271
3269
|
var _vm = this,
|
|
3272
|
-
|
|
3273
|
-
|
|
3270
|
+
_c = _vm._self._c;
|
|
3274
3271
|
return _c('button', {
|
|
3275
3272
|
staticClass: "p-image-action p-link",
|
|
3276
3273
|
attrs: {
|
|
@@ -3325,26 +3322,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
3325
3322
|
|
|
3326
3323
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
3327
3324
|
|
|
3328
|
-
|
|
3329
3325
|
function _defineProperties(target, props) {
|
|
3330
3326
|
for (var i = 0; i < props.length; i++) {
|
|
3331
3327
|
var descriptor = props[i];
|
|
3332
3328
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
3333
3329
|
descriptor.configurable = true;
|
|
3334
3330
|
if ("value" in descriptor) descriptor.writable = true;
|
|
3335
|
-
|
|
3336
3331
|
define_property_default()(target, descriptor.key, descriptor);
|
|
3337
3332
|
}
|
|
3338
3333
|
}
|
|
3339
|
-
|
|
3340
3334
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
3341
3335
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
3342
3336
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
3343
|
-
|
|
3344
3337
|
define_property_default()(Constructor, "prototype", {
|
|
3345
3338
|
writable: false
|
|
3346
3339
|
});
|
|
3347
|
-
|
|
3348
3340
|
return Constructor;
|
|
3349
3341
|
}
|
|
3350
3342
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -3360,18 +3352,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
3360
3352
|
|
|
3361
3353
|
|
|
3362
3354
|
|
|
3363
|
-
|
|
3364
3355
|
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; } } }; }
|
|
3365
|
-
|
|
3366
3356
|
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); }
|
|
3367
|
-
|
|
3368
3357
|
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; }
|
|
3369
|
-
|
|
3370
3358
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
3371
3359
|
function DomHandler() {
|
|
3372
3360
|
_classCallCheck(this, DomHandler);
|
|
3373
3361
|
}
|
|
3374
|
-
|
|
3375
3362
|
_createClass(DomHandler, null, [{
|
|
3376
3363
|
key: "innerWidth",
|
|
3377
3364
|
value: function innerWidth(el) {
|
|
@@ -3405,12 +3392,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3405
3392
|
value: function getOuterWidth(el, margin) {
|
|
3406
3393
|
if (el) {
|
|
3407
3394
|
var width = el.offsetWidth;
|
|
3408
|
-
|
|
3409
3395
|
if (margin) {
|
|
3410
3396
|
var style = getComputedStyle(el);
|
|
3411
3397
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
3412
3398
|
}
|
|
3413
|
-
|
|
3414
3399
|
return width;
|
|
3415
3400
|
} else {
|
|
3416
3401
|
return 0;
|
|
@@ -3421,12 +3406,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3421
3406
|
value: function getOuterHeight(el, margin) {
|
|
3422
3407
|
if (el) {
|
|
3423
3408
|
var height = el.offsetHeight;
|
|
3424
|
-
|
|
3425
3409
|
if (margin) {
|
|
3426
3410
|
var style = getComputedStyle(el);
|
|
3427
3411
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3428
3412
|
}
|
|
3429
|
-
|
|
3430
3413
|
return height;
|
|
3431
3414
|
} else {
|
|
3432
3415
|
return 0;
|
|
@@ -3437,12 +3420,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3437
3420
|
value: function getClientHeight(el, margin) {
|
|
3438
3421
|
if (el) {
|
|
3439
3422
|
var height = el.clientHeight;
|
|
3440
|
-
|
|
3441
3423
|
if (margin) {
|
|
3442
3424
|
var style = getComputedStyle(el);
|
|
3443
3425
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
3444
3426
|
}
|
|
3445
|
-
|
|
3446
3427
|
return height;
|
|
3447
3428
|
} else {
|
|
3448
3429
|
return 0;
|
|
@@ -3452,11 +3433,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3452
3433
|
key: "getViewport",
|
|
3453
3434
|
value: function getViewport() {
|
|
3454
3435
|
var win = window,
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3436
|
+
d = document,
|
|
3437
|
+
e = d.documentElement,
|
|
3438
|
+
g = d.getElementsByTagName('body')[0],
|
|
3439
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
3440
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
3460
3441
|
return {
|
|
3461
3442
|
width: w,
|
|
3462
3443
|
height: h
|
|
@@ -3487,12 +3468,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3487
3468
|
value: function index(element) {
|
|
3488
3469
|
var children = element.parentNode.childNodes;
|
|
3489
3470
|
var num = 0;
|
|
3490
|
-
|
|
3491
3471
|
for (var i = 0; i < children.length; i++) {
|
|
3492
3472
|
if (children[i] === element) return num;
|
|
3493
3473
|
if (children[i].nodeType === 1) num++;
|
|
3494
3474
|
}
|
|
3495
|
-
|
|
3496
3475
|
return -1;
|
|
3497
3476
|
}
|
|
3498
3477
|
}, {
|
|
@@ -3500,13 +3479,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3500
3479
|
value: function addMultipleClasses(element, className) {
|
|
3501
3480
|
if (element.classList) {
|
|
3502
3481
|
var styles = className.split(' ');
|
|
3503
|
-
|
|
3504
3482
|
for (var i = 0; i < styles.length; i++) {
|
|
3505
3483
|
element.classList.add(styles[i]);
|
|
3506
3484
|
}
|
|
3507
3485
|
} else {
|
|
3508
3486
|
var _styles = className.split(' ');
|
|
3509
|
-
|
|
3510
3487
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
3511
3488
|
element.className += ' ' + _styles[_i];
|
|
3512
3489
|
}
|
|
@@ -3528,7 +3505,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3528
3505
|
if (element) {
|
|
3529
3506
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
3530
3507
|
}
|
|
3531
|
-
|
|
3532
3508
|
return false;
|
|
3533
3509
|
}
|
|
3534
3510
|
}, {
|
|
@@ -3573,11 +3549,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3573
3549
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
3574
3550
|
var viewport = this.getViewport();
|
|
3575
3551
|
var top, left;
|
|
3576
|
-
|
|
3577
3552
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
3578
3553
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
3579
3554
|
element.style.transformOrigin = 'bottom';
|
|
3580
|
-
|
|
3581
3555
|
if (top < 0) {
|
|
3582
3556
|
top = windowScrollTop;
|
|
3583
3557
|
}
|
|
@@ -3585,7 +3559,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3585
3559
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
3586
3560
|
element.style.transformOrigin = 'top';
|
|
3587
3561
|
}
|
|
3588
|
-
|
|
3589
3562
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
3590
3563
|
element.style.top = top + 'px';
|
|
3591
3564
|
element.style.left = left + 'px';
|
|
@@ -3601,11 +3574,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3601
3574
|
var targetOffset = target.getBoundingClientRect();
|
|
3602
3575
|
var viewport = this.getViewport();
|
|
3603
3576
|
var top, left;
|
|
3604
|
-
|
|
3605
3577
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
3606
3578
|
top = -1 * elementDimensions.height;
|
|
3607
3579
|
element.style.transformOrigin = 'bottom';
|
|
3608
|
-
|
|
3609
3580
|
if (targetOffset.top + top < 0) {
|
|
3610
3581
|
top = -1 * targetOffset.top;
|
|
3611
3582
|
}
|
|
@@ -3613,7 +3584,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3613
3584
|
top = targetHeight;
|
|
3614
3585
|
element.style.transformOrigin = 'top';
|
|
3615
3586
|
}
|
|
3616
|
-
|
|
3617
3587
|
if (elementDimensions.width > viewport.width) {
|
|
3618
3588
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
3619
3589
|
left = targetOffset.left * -1;
|
|
@@ -3624,7 +3594,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3624
3594
|
// element fits on screen (align with target)
|
|
3625
3595
|
left = 0;
|
|
3626
3596
|
}
|
|
3627
|
-
|
|
3628
3597
|
element.style.top = top + 'px';
|
|
3629
3598
|
element.style.left = left + 'px';
|
|
3630
3599
|
}
|
|
@@ -3638,35 +3607,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3638
3607
|
key: "getScrollableParents",
|
|
3639
3608
|
value: function getScrollableParents(element) {
|
|
3640
3609
|
var scrollableParents = [];
|
|
3641
|
-
|
|
3642
3610
|
if (element) {
|
|
3643
3611
|
var parents = this.getParents(element);
|
|
3644
3612
|
var overflowRegex = /(auto|scroll)/;
|
|
3645
|
-
|
|
3646
3613
|
var overflowCheck = function overflowCheck(node) {
|
|
3647
3614
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
3648
3615
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
3649
3616
|
};
|
|
3650
|
-
|
|
3651
3617
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
3652
|
-
|
|
3653
|
-
|
|
3618
|
+
_step;
|
|
3654
3619
|
try {
|
|
3655
3620
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3656
3621
|
var parent = _step.value;
|
|
3657
3622
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
3658
|
-
|
|
3659
3623
|
if (scrollSelectors) {
|
|
3660
3624
|
var selectors = scrollSelectors.split(',');
|
|
3661
|
-
|
|
3662
3625
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
3663
|
-
|
|
3664
|
-
|
|
3626
|
+
_step2;
|
|
3665
3627
|
try {
|
|
3666
3628
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
3667
3629
|
var selector = _step2.value;
|
|
3668
3630
|
var el = this.findSingle(parent, selector);
|
|
3669
|
-
|
|
3670
3631
|
if (el && overflowCheck(el)) {
|
|
3671
3632
|
scrollableParents.push(el);
|
|
3672
3633
|
}
|
|
@@ -3684,7 +3645,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3684
3645
|
_iterator.f();
|
|
3685
3646
|
}
|
|
3686
3647
|
}
|
|
3687
|
-
|
|
3688
3648
|
return scrollableParents;
|
|
3689
3649
|
}
|
|
3690
3650
|
}, {
|
|
@@ -3725,34 +3685,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3725
3685
|
element.style.opacity = 0;
|
|
3726
3686
|
var last = +new Date();
|
|
3727
3687
|
var opacity = 0;
|
|
3728
|
-
|
|
3729
3688
|
var tick = function tick() {
|
|
3730
3689
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
3731
3690
|
element.style.opacity = opacity;
|
|
3732
3691
|
last = +new Date();
|
|
3733
|
-
|
|
3734
3692
|
if (+opacity < 1) {
|
|
3735
3693
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
3736
3694
|
}
|
|
3737
3695
|
};
|
|
3738
|
-
|
|
3739
3696
|
tick();
|
|
3740
3697
|
}
|
|
3741
3698
|
}, {
|
|
3742
3699
|
key: "fadeOut",
|
|
3743
3700
|
value: function fadeOut(element, ms) {
|
|
3744
3701
|
var opacity = 1,
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3702
|
+
interval = 50,
|
|
3703
|
+
duration = ms,
|
|
3704
|
+
gap = interval / duration;
|
|
3748
3705
|
var fading = setInterval(function () {
|
|
3749
3706
|
opacity -= gap;
|
|
3750
|
-
|
|
3751
3707
|
if (opacity <= 0) {
|
|
3752
3708
|
opacity = 0;
|
|
3753
3709
|
clearInterval(fading);
|
|
3754
3710
|
}
|
|
3755
|
-
|
|
3756
3711
|
element.style.opacity = opacity;
|
|
3757
3712
|
}, interval);
|
|
3758
3713
|
}
|
|
@@ -3779,7 +3734,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3779
3734
|
var scroll = container.scrollTop;
|
|
3780
3735
|
var elementHeight = container.clientHeight;
|
|
3781
3736
|
var itemHeight = this.getOuterHeight(item);
|
|
3782
|
-
|
|
3783
3737
|
if (offset < 0) {
|
|
3784
3738
|
container.scrollTop = scroll + offset;
|
|
3785
3739
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -3798,7 +3752,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3798
3752
|
} else if (document['selection'] && document['selection'].empty) {
|
|
3799
3753
|
try {
|
|
3800
3754
|
document['selection'].empty();
|
|
3801
|
-
} catch (error) {
|
|
3755
|
+
} catch (error) {
|
|
3756
|
+
//ignore IE bug
|
|
3802
3757
|
}
|
|
3803
3758
|
}
|
|
3804
3759
|
}
|
|
@@ -3820,19 +3775,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3820
3775
|
if (!this.browser) {
|
|
3821
3776
|
var matched = this.resolveUserAgent();
|
|
3822
3777
|
this.browser = {};
|
|
3823
|
-
|
|
3824
3778
|
if (matched.browser) {
|
|
3825
3779
|
this.browser[matched.browser] = true;
|
|
3826
3780
|
this.browser['version'] = matched.version;
|
|
3827
3781
|
}
|
|
3828
|
-
|
|
3829
3782
|
if (this.browser['chrome']) {
|
|
3830
3783
|
this.browser['webkit'] = true;
|
|
3831
3784
|
} else if (this.browser['webkit']) {
|
|
3832
3785
|
this.browser['safari'] = true;
|
|
3833
3786
|
}
|
|
3834
3787
|
}
|
|
3835
|
-
|
|
3836
3788
|
return this.browser;
|
|
3837
3789
|
}
|
|
3838
3790
|
}, {
|
|
@@ -3860,10 +3812,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3860
3812
|
value: function getFocusableElements(element) {
|
|
3861
3813
|
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])");
|
|
3862
3814
|
var visibleFocusableElements = [];
|
|
3863
|
-
|
|
3864
3815
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
3865
|
-
|
|
3866
|
-
|
|
3816
|
+
_step3;
|
|
3867
3817
|
try {
|
|
3868
3818
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
3869
3819
|
var focusableElement = _step3.value;
|
|
@@ -3874,7 +3824,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3874
3824
|
} finally {
|
|
3875
3825
|
_iterator3.f();
|
|
3876
3826
|
}
|
|
3877
|
-
|
|
3878
3827
|
return visibleFocusableElements;
|
|
3879
3828
|
}
|
|
3880
3829
|
}, {
|
|
@@ -3917,11 +3866,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3917
3866
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
3918
3867
|
}
|
|
3919
3868
|
}]);
|
|
3920
|
-
|
|
3921
3869
|
return DomHandler;
|
|
3922
3870
|
}();
|
|
3923
3871
|
|
|
3924
|
-
|
|
3925
3872
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/imagepreview/ImagePreview.vue?vue&type=script&lang=js&
|
|
3926
3873
|
|
|
3927
3874
|
/* harmony default export */ var ImagePreviewvue_type_script_lang_js_ = ({
|
|
@@ -3952,7 +3899,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3952
3899
|
methods: {
|
|
3953
3900
|
onImageClick: function onImageClick() {
|
|
3954
3901
|
var _this = this;
|
|
3955
|
-
|
|
3956
3902
|
if (this.preview) {
|
|
3957
3903
|
this.maskVisible = true;
|
|
3958
3904
|
setTimeout(function () {
|
|
@@ -3969,7 +3915,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3969
3915
|
this.rotate = 0;
|
|
3970
3916
|
this.scale = 1;
|
|
3971
3917
|
}
|
|
3972
|
-
|
|
3973
3918
|
this.previewClick = false;
|
|
3974
3919
|
},
|
|
3975
3920
|
rotateRight: function rotateRight() {
|