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
|
@@ -4538,11 +4538,10 @@ if (typeof window !== 'undefined') {
|
|
|
4538
4538
|
// Indicate to webpack that this file can be concatenated
|
|
4539
4539
|
/* harmony default export */ var setPublicPath = (null);
|
|
4540
4540
|
|
|
4541
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4541
|
+
// 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/dropdown/Dropdown.vue?vue&type=template&id=0ebc4c6d&
|
|
4542
4542
|
var render = function render() {
|
|
4543
4543
|
var _vm = this,
|
|
4544
|
-
|
|
4545
|
-
|
|
4544
|
+
_c = _vm._self._c;
|
|
4546
4545
|
return _c('div', {
|
|
4547
4546
|
ref: "container",
|
|
4548
4547
|
class: _vm.containerClass,
|
|
@@ -4686,7 +4685,6 @@ var render = function render() {
|
|
|
4686
4685
|
staticClass: "p-dropdown-empty-message"
|
|
4687
4686
|
}, [_vm._v(_vm._s(_vm.emptyFilterMessage))]) : _vm._e()], 2)])]) : _vm._e()])], 1);
|
|
4688
4687
|
};
|
|
4689
|
-
|
|
4690
4688
|
var staticRenderFns = [];
|
|
4691
4689
|
|
|
4692
4690
|
// CONCATENATED MODULE: ./src/components/dropdown/Dropdown.vue?vue&type=template&id=0ebc4c6d&
|
|
@@ -4727,26 +4725,21 @@ var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property
|
|
|
4727
4725
|
|
|
4728
4726
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
|
|
4729
4727
|
|
|
4730
|
-
|
|
4731
4728
|
function _defineProperties(target, props) {
|
|
4732
4729
|
for (var i = 0; i < props.length; i++) {
|
|
4733
4730
|
var descriptor = props[i];
|
|
4734
4731
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
4735
4732
|
descriptor.configurable = true;
|
|
4736
4733
|
if ("value" in descriptor) descriptor.writable = true;
|
|
4737
|
-
|
|
4738
4734
|
define_property_default()(target, descriptor.key, descriptor);
|
|
4739
4735
|
}
|
|
4740
4736
|
}
|
|
4741
|
-
|
|
4742
4737
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
4743
4738
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4744
4739
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
4745
|
-
|
|
4746
4740
|
define_property_default()(Constructor, "prototype", {
|
|
4747
4741
|
writable: false
|
|
4748
4742
|
});
|
|
4749
|
-
|
|
4750
4743
|
return Constructor;
|
|
4751
4744
|
}
|
|
4752
4745
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.find.js
|
|
@@ -4774,18 +4767,13 @@ var es6_regexp_split = __webpack_require__("28a5");
|
|
|
4774
4767
|
|
|
4775
4768
|
|
|
4776
4769
|
|
|
4777
|
-
|
|
4778
4770
|
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; } } }; }
|
|
4779
|
-
|
|
4780
4771
|
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); }
|
|
4781
|
-
|
|
4782
4772
|
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; }
|
|
4783
|
-
|
|
4784
4773
|
var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
4785
4774
|
function DomHandler() {
|
|
4786
4775
|
_classCallCheck(this, DomHandler);
|
|
4787
4776
|
}
|
|
4788
|
-
|
|
4789
4777
|
_createClass(DomHandler, null, [{
|
|
4790
4778
|
key: "innerWidth",
|
|
4791
4779
|
value: function innerWidth(el) {
|
|
@@ -4819,12 +4807,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4819
4807
|
value: function getOuterWidth(el, margin) {
|
|
4820
4808
|
if (el) {
|
|
4821
4809
|
var width = el.offsetWidth;
|
|
4822
|
-
|
|
4823
4810
|
if (margin) {
|
|
4824
4811
|
var style = getComputedStyle(el);
|
|
4825
4812
|
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
4826
4813
|
}
|
|
4827
|
-
|
|
4828
4814
|
return width;
|
|
4829
4815
|
} else {
|
|
4830
4816
|
return 0;
|
|
@@ -4835,12 +4821,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4835
4821
|
value: function getOuterHeight(el, margin) {
|
|
4836
4822
|
if (el) {
|
|
4837
4823
|
var height = el.offsetHeight;
|
|
4838
|
-
|
|
4839
4824
|
if (margin) {
|
|
4840
4825
|
var style = getComputedStyle(el);
|
|
4841
4826
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
4842
4827
|
}
|
|
4843
|
-
|
|
4844
4828
|
return height;
|
|
4845
4829
|
} else {
|
|
4846
4830
|
return 0;
|
|
@@ -4851,12 +4835,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4851
4835
|
value: function getClientHeight(el, margin) {
|
|
4852
4836
|
if (el) {
|
|
4853
4837
|
var height = el.clientHeight;
|
|
4854
|
-
|
|
4855
4838
|
if (margin) {
|
|
4856
4839
|
var style = getComputedStyle(el);
|
|
4857
4840
|
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
4858
4841
|
}
|
|
4859
|
-
|
|
4860
4842
|
return height;
|
|
4861
4843
|
} else {
|
|
4862
4844
|
return 0;
|
|
@@ -4866,11 +4848,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4866
4848
|
key: "getViewport",
|
|
4867
4849
|
value: function getViewport() {
|
|
4868
4850
|
var win = window,
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4851
|
+
d = document,
|
|
4852
|
+
e = d.documentElement,
|
|
4853
|
+
g = d.getElementsByTagName('body')[0],
|
|
4854
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
4855
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
4874
4856
|
return {
|
|
4875
4857
|
width: w,
|
|
4876
4858
|
height: h
|
|
@@ -4901,12 +4883,10 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4901
4883
|
value: function index(element) {
|
|
4902
4884
|
var children = element.parentNode.childNodes;
|
|
4903
4885
|
var num = 0;
|
|
4904
|
-
|
|
4905
4886
|
for (var i = 0; i < children.length; i++) {
|
|
4906
4887
|
if (children[i] === element) return num;
|
|
4907
4888
|
if (children[i].nodeType === 1) num++;
|
|
4908
4889
|
}
|
|
4909
|
-
|
|
4910
4890
|
return -1;
|
|
4911
4891
|
}
|
|
4912
4892
|
}, {
|
|
@@ -4914,13 +4894,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4914
4894
|
value: function addMultipleClasses(element, className) {
|
|
4915
4895
|
if (element.classList) {
|
|
4916
4896
|
var styles = className.split(' ');
|
|
4917
|
-
|
|
4918
4897
|
for (var i = 0; i < styles.length; i++) {
|
|
4919
4898
|
element.classList.add(styles[i]);
|
|
4920
4899
|
}
|
|
4921
4900
|
} else {
|
|
4922
4901
|
var _styles = className.split(' ');
|
|
4923
|
-
|
|
4924
4902
|
for (var _i = 0; _i < _styles.length; _i++) {
|
|
4925
4903
|
element.className += ' ' + _styles[_i];
|
|
4926
4904
|
}
|
|
@@ -4942,7 +4920,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4942
4920
|
if (element) {
|
|
4943
4921
|
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
4944
4922
|
}
|
|
4945
|
-
|
|
4946
4923
|
return false;
|
|
4947
4924
|
}
|
|
4948
4925
|
}, {
|
|
@@ -4987,11 +4964,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4987
4964
|
var windowScrollLeft = this.getWindowScrollLeft();
|
|
4988
4965
|
var viewport = this.getViewport();
|
|
4989
4966
|
var top, left;
|
|
4990
|
-
|
|
4991
4967
|
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
4992
4968
|
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
4993
4969
|
element.style.transformOrigin = 'bottom';
|
|
4994
|
-
|
|
4995
4970
|
if (top < 0) {
|
|
4996
4971
|
top = windowScrollTop;
|
|
4997
4972
|
}
|
|
@@ -4999,7 +4974,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
4999
4974
|
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
5000
4975
|
element.style.transformOrigin = 'top';
|
|
5001
4976
|
}
|
|
5002
|
-
|
|
5003
4977
|
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
5004
4978
|
element.style.top = top + 'px';
|
|
5005
4979
|
element.style.left = left + 'px';
|
|
@@ -5015,11 +4989,9 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5015
4989
|
var targetOffset = target.getBoundingClientRect();
|
|
5016
4990
|
var viewport = this.getViewport();
|
|
5017
4991
|
var top, left;
|
|
5018
|
-
|
|
5019
4992
|
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
5020
4993
|
top = -1 * elementDimensions.height;
|
|
5021
4994
|
element.style.transformOrigin = 'bottom';
|
|
5022
|
-
|
|
5023
4995
|
if (targetOffset.top + top < 0) {
|
|
5024
4996
|
top = -1 * targetOffset.top;
|
|
5025
4997
|
}
|
|
@@ -5027,7 +4999,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5027
4999
|
top = targetHeight;
|
|
5028
5000
|
element.style.transformOrigin = 'top';
|
|
5029
5001
|
}
|
|
5030
|
-
|
|
5031
5002
|
if (elementDimensions.width > viewport.width) {
|
|
5032
5003
|
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
5033
5004
|
left = targetOffset.left * -1;
|
|
@@ -5038,7 +5009,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5038
5009
|
// element fits on screen (align with target)
|
|
5039
5010
|
left = 0;
|
|
5040
5011
|
}
|
|
5041
|
-
|
|
5042
5012
|
element.style.top = top + 'px';
|
|
5043
5013
|
element.style.left = left + 'px';
|
|
5044
5014
|
}
|
|
@@ -5052,35 +5022,27 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5052
5022
|
key: "getScrollableParents",
|
|
5053
5023
|
value: function getScrollableParents(element) {
|
|
5054
5024
|
var scrollableParents = [];
|
|
5055
|
-
|
|
5056
5025
|
if (element) {
|
|
5057
5026
|
var parents = this.getParents(element);
|
|
5058
5027
|
var overflowRegex = /(auto|scroll)/;
|
|
5059
|
-
|
|
5060
5028
|
var overflowCheck = function overflowCheck(node) {
|
|
5061
5029
|
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
5062
5030
|
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
5063
5031
|
};
|
|
5064
|
-
|
|
5065
5032
|
var _iterator = _createForOfIteratorHelper(parents),
|
|
5066
|
-
|
|
5067
|
-
|
|
5033
|
+
_step;
|
|
5068
5034
|
try {
|
|
5069
5035
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5070
5036
|
var parent = _step.value;
|
|
5071
5037
|
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
5072
|
-
|
|
5073
5038
|
if (scrollSelectors) {
|
|
5074
5039
|
var selectors = scrollSelectors.split(',');
|
|
5075
|
-
|
|
5076
5040
|
var _iterator2 = _createForOfIteratorHelper(selectors),
|
|
5077
|
-
|
|
5078
|
-
|
|
5041
|
+
_step2;
|
|
5079
5042
|
try {
|
|
5080
5043
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
5081
5044
|
var selector = _step2.value;
|
|
5082
5045
|
var el = this.findSingle(parent, selector);
|
|
5083
|
-
|
|
5084
5046
|
if (el && overflowCheck(el)) {
|
|
5085
5047
|
scrollableParents.push(el);
|
|
5086
5048
|
}
|
|
@@ -5098,7 +5060,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5098
5060
|
_iterator.f();
|
|
5099
5061
|
}
|
|
5100
5062
|
}
|
|
5101
|
-
|
|
5102
5063
|
return scrollableParents;
|
|
5103
5064
|
}
|
|
5104
5065
|
}, {
|
|
@@ -5139,34 +5100,29 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5139
5100
|
element.style.opacity = 0;
|
|
5140
5101
|
var last = +new Date();
|
|
5141
5102
|
var opacity = 0;
|
|
5142
|
-
|
|
5143
5103
|
var tick = function tick() {
|
|
5144
5104
|
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
5145
5105
|
element.style.opacity = opacity;
|
|
5146
5106
|
last = +new Date();
|
|
5147
|
-
|
|
5148
5107
|
if (+opacity < 1) {
|
|
5149
5108
|
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
5150
5109
|
}
|
|
5151
5110
|
};
|
|
5152
|
-
|
|
5153
5111
|
tick();
|
|
5154
5112
|
}
|
|
5155
5113
|
}, {
|
|
5156
5114
|
key: "fadeOut",
|
|
5157
5115
|
value: function fadeOut(element, ms) {
|
|
5158
5116
|
var opacity = 1,
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5117
|
+
interval = 50,
|
|
5118
|
+
duration = ms,
|
|
5119
|
+
gap = interval / duration;
|
|
5162
5120
|
var fading = setInterval(function () {
|
|
5163
5121
|
opacity -= gap;
|
|
5164
|
-
|
|
5165
5122
|
if (opacity <= 0) {
|
|
5166
5123
|
opacity = 0;
|
|
5167
5124
|
clearInterval(fading);
|
|
5168
5125
|
}
|
|
5169
|
-
|
|
5170
5126
|
element.style.opacity = opacity;
|
|
5171
5127
|
}, interval);
|
|
5172
5128
|
}
|
|
@@ -5193,7 +5149,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5193
5149
|
var scroll = container.scrollTop;
|
|
5194
5150
|
var elementHeight = container.clientHeight;
|
|
5195
5151
|
var itemHeight = this.getOuterHeight(item);
|
|
5196
|
-
|
|
5197
5152
|
if (offset < 0) {
|
|
5198
5153
|
container.scrollTop = scroll + offset;
|
|
5199
5154
|
} else if (offset + itemHeight > elementHeight) {
|
|
@@ -5212,7 +5167,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5212
5167
|
} else if (document['selection'] && document['selection'].empty) {
|
|
5213
5168
|
try {
|
|
5214
5169
|
document['selection'].empty();
|
|
5215
|
-
} catch (error) {
|
|
5170
|
+
} catch (error) {
|
|
5171
|
+
//ignore IE bug
|
|
5216
5172
|
}
|
|
5217
5173
|
}
|
|
5218
5174
|
}
|
|
@@ -5234,19 +5190,16 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5234
5190
|
if (!this.browser) {
|
|
5235
5191
|
var matched = this.resolveUserAgent();
|
|
5236
5192
|
this.browser = {};
|
|
5237
|
-
|
|
5238
5193
|
if (matched.browser) {
|
|
5239
5194
|
this.browser[matched.browser] = true;
|
|
5240
5195
|
this.browser['version'] = matched.version;
|
|
5241
5196
|
}
|
|
5242
|
-
|
|
5243
5197
|
if (this.browser['chrome']) {
|
|
5244
5198
|
this.browser['webkit'] = true;
|
|
5245
5199
|
} else if (this.browser['webkit']) {
|
|
5246
5200
|
this.browser['safari'] = true;
|
|
5247
5201
|
}
|
|
5248
5202
|
}
|
|
5249
|
-
|
|
5250
5203
|
return this.browser;
|
|
5251
5204
|
}
|
|
5252
5205
|
}, {
|
|
@@ -5274,10 +5227,8 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5274
5227
|
value: function getFocusableElements(element) {
|
|
5275
5228
|
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])");
|
|
5276
5229
|
var visibleFocusableElements = [];
|
|
5277
|
-
|
|
5278
5230
|
var _iterator3 = _createForOfIteratorHelper(focusableElements),
|
|
5279
|
-
|
|
5280
|
-
|
|
5231
|
+
_step3;
|
|
5281
5232
|
try {
|
|
5282
5233
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
5283
5234
|
var focusableElement = _step3.value;
|
|
@@ -5288,7 +5239,6 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5288
5239
|
} finally {
|
|
5289
5240
|
_iterator3.f();
|
|
5290
5241
|
}
|
|
5291
|
-
|
|
5292
5242
|
return visibleFocusableElements;
|
|
5293
5243
|
}
|
|
5294
5244
|
}, {
|
|
@@ -5331,31 +5281,24 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5331
5281
|
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
5332
5282
|
}
|
|
5333
5283
|
}]);
|
|
5334
|
-
|
|
5335
5284
|
return DomHandler;
|
|
5336
5285
|
}();
|
|
5337
5286
|
|
|
5338
|
-
|
|
5339
5287
|
// CONCATENATED MODULE: ./src/components/utils/ConnectedOverlayScrollHandler.js
|
|
5340
5288
|
|
|
5341
5289
|
|
|
5342
5290
|
|
|
5343
|
-
|
|
5344
5291
|
var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/function () {
|
|
5345
5292
|
function ConnectedOverlayScrollHandler(element) {
|
|
5346
5293
|
var listener = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
5347
|
-
|
|
5348
5294
|
_classCallCheck(this, ConnectedOverlayScrollHandler);
|
|
5349
|
-
|
|
5350
5295
|
this.element = element;
|
|
5351
5296
|
this.listener = listener;
|
|
5352
5297
|
}
|
|
5353
|
-
|
|
5354
5298
|
_createClass(ConnectedOverlayScrollHandler, [{
|
|
5355
5299
|
key: "bindScrollListener",
|
|
5356
5300
|
value: function bindScrollListener() {
|
|
5357
5301
|
this.scrollableParents = DomHandler_DomHandler.getScrollableParents(this.element);
|
|
5358
|
-
|
|
5359
5302
|
for (var i = 0; i < this.scrollableParents.length; i++) {
|
|
5360
5303
|
this.scrollableParents[i].addEventListener('scroll', this.listener);
|
|
5361
5304
|
}
|
|
@@ -5378,11 +5321,9 @@ var ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler = /*#__PURE__*/f
|
|
|
5378
5321
|
this.scrollableParents = null;
|
|
5379
5322
|
}
|
|
5380
5323
|
}]);
|
|
5381
|
-
|
|
5382
5324
|
return ConnectedOverlayScrollHandler;
|
|
5383
5325
|
}();
|
|
5384
5326
|
|
|
5385
|
-
|
|
5386
5327
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
|
|
5387
5328
|
var web_dom_iterable = __webpack_require__("ac6a");
|
|
5388
5329
|
|
|
@@ -5429,18 +5370,13 @@ function _typeof(obj) {
|
|
|
5429
5370
|
|
|
5430
5371
|
|
|
5431
5372
|
|
|
5432
|
-
|
|
5433
5373
|
function ObjectUtils_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = ObjectUtils_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; } } }; }
|
|
5434
|
-
|
|
5435
5374
|
function ObjectUtils_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return ObjectUtils_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 ObjectUtils_arrayLikeToArray(o, minLen); }
|
|
5436
|
-
|
|
5437
5375
|
function ObjectUtils_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; }
|
|
5438
|
-
|
|
5439
5376
|
var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
5440
5377
|
function ObjectUtils() {
|
|
5441
5378
|
_classCallCheck(this, ObjectUtils);
|
|
5442
5379
|
}
|
|
5443
|
-
|
|
5444
5380
|
_createClass(ObjectUtils, null, [{
|
|
5445
5381
|
key: "equals",
|
|
5446
5382
|
value: function equals(obj1, obj2, field) {
|
|
@@ -5450,50 +5386,41 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5450
5386
|
key: "deepEquals",
|
|
5451
5387
|
value: function deepEquals(a, b) {
|
|
5452
5388
|
if (a === b) return true;
|
|
5453
|
-
|
|
5454
5389
|
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
|
5455
5390
|
var arrA = Array.isArray(a),
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5391
|
+
arrB = Array.isArray(b),
|
|
5392
|
+
i,
|
|
5393
|
+
length,
|
|
5394
|
+
key;
|
|
5461
5395
|
if (arrA && arrB) {
|
|
5462
5396
|
length = a.length;
|
|
5463
5397
|
if (length != b.length) return false;
|
|
5464
|
-
|
|
5465
5398
|
for (i = length; i-- !== 0;) {
|
|
5466
5399
|
if (!this.deepEquals(a[i], b[i])) return false;
|
|
5467
5400
|
}
|
|
5468
|
-
|
|
5469
5401
|
return true;
|
|
5470
5402
|
}
|
|
5471
|
-
|
|
5472
5403
|
if (arrA != arrB) return false;
|
|
5473
5404
|
var dateA = a instanceof Date,
|
|
5474
|
-
|
|
5405
|
+
dateB = b instanceof Date;
|
|
5475
5406
|
if (dateA != dateB) return false;
|
|
5476
5407
|
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
5477
5408
|
var regexpA = a instanceof RegExp,
|
|
5478
|
-
|
|
5409
|
+
regexpB = b instanceof RegExp;
|
|
5479
5410
|
if (regexpA != regexpB) return false;
|
|
5480
5411
|
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
5481
5412
|
var keys = Object.keys(a);
|
|
5482
5413
|
length = keys.length;
|
|
5483
5414
|
if (length !== Object.keys(b).length) return false;
|
|
5484
|
-
|
|
5485
5415
|
for (i = length; i-- !== 0;) {
|
|
5486
5416
|
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
5487
5417
|
}
|
|
5488
|
-
|
|
5489
5418
|
for (i = length; i-- !== 0;) {
|
|
5490
5419
|
key = keys[i];
|
|
5491
5420
|
if (!this.deepEquals(a[key], b[key])) return false;
|
|
5492
5421
|
}
|
|
5493
|
-
|
|
5494
5422
|
return true;
|
|
5495
5423
|
}
|
|
5496
|
-
|
|
5497
5424
|
return a !== a && b !== b;
|
|
5498
5425
|
}
|
|
5499
5426
|
}, {
|
|
@@ -5507,15 +5434,12 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5507
5434
|
} else {
|
|
5508
5435
|
var fields = field.split('.');
|
|
5509
5436
|
var value = data;
|
|
5510
|
-
|
|
5511
5437
|
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
5512
5438
|
if (value == null) {
|
|
5513
5439
|
return null;
|
|
5514
5440
|
}
|
|
5515
|
-
|
|
5516
5441
|
value = value[fields[i]];
|
|
5517
5442
|
}
|
|
5518
|
-
|
|
5519
5443
|
return value;
|
|
5520
5444
|
}
|
|
5521
5445
|
} else {
|
|
@@ -5531,22 +5455,17 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5531
5455
|
key: "filter",
|
|
5532
5456
|
value: function filter(value, fields, filterValue) {
|
|
5533
5457
|
var filteredItems = [];
|
|
5534
|
-
|
|
5535
5458
|
if (value) {
|
|
5536
5459
|
var _iterator = ObjectUtils_createForOfIteratorHelper(value),
|
|
5537
|
-
|
|
5538
|
-
|
|
5460
|
+
_step;
|
|
5539
5461
|
try {
|
|
5540
5462
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5541
5463
|
var item = _step.value;
|
|
5542
|
-
|
|
5543
5464
|
var _iterator2 = ObjectUtils_createForOfIteratorHelper(fields),
|
|
5544
|
-
|
|
5545
|
-
|
|
5465
|
+
_step2;
|
|
5546
5466
|
try {
|
|
5547
5467
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
5548
5468
|
var field = _step2.value;
|
|
5549
|
-
|
|
5550
5469
|
if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
|
|
5551
5470
|
filteredItems.push(item);
|
|
5552
5471
|
break;
|
|
@@ -5564,23 +5483,19 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5564
5483
|
_iterator.f();
|
|
5565
5484
|
}
|
|
5566
5485
|
}
|
|
5567
|
-
|
|
5568
5486
|
return filteredItems;
|
|
5569
5487
|
}
|
|
5570
5488
|
}, {
|
|
5571
5489
|
key: "reorderArray",
|
|
5572
5490
|
value: function reorderArray(value, from, to) {
|
|
5573
5491
|
var target;
|
|
5574
|
-
|
|
5575
5492
|
if (value && from !== to) {
|
|
5576
5493
|
if (to >= value.length) {
|
|
5577
5494
|
target = to - value.length;
|
|
5578
|
-
|
|
5579
5495
|
while (target-- + 1) {
|
|
5580
5496
|
value.push(undefined);
|
|
5581
5497
|
}
|
|
5582
5498
|
}
|
|
5583
|
-
|
|
5584
5499
|
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
5585
5500
|
}
|
|
5586
5501
|
}
|
|
@@ -5588,7 +5503,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5588
5503
|
key: "findIndexInList",
|
|
5589
5504
|
value: function findIndexInList(value, list) {
|
|
5590
5505
|
var index = -1;
|
|
5591
|
-
|
|
5592
5506
|
if (list) {
|
|
5593
5507
|
for (var i = 0; i < list.length; i++) {
|
|
5594
5508
|
if (list[i] === value) {
|
|
@@ -5597,7 +5511,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5597
5511
|
}
|
|
5598
5512
|
}
|
|
5599
5513
|
}
|
|
5600
|
-
|
|
5601
5514
|
return index;
|
|
5602
5515
|
}
|
|
5603
5516
|
}, {
|
|
@@ -5605,8 +5518,7 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5605
5518
|
value: function contains(value, list) {
|
|
5606
5519
|
if (value != null && list && list.length) {
|
|
5607
5520
|
var _iterator3 = ObjectUtils_createForOfIteratorHelper(list),
|
|
5608
|
-
|
|
5609
|
-
|
|
5521
|
+
_step3;
|
|
5610
5522
|
try {
|
|
5611
5523
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
5612
5524
|
var val = _step3.value;
|
|
@@ -5618,7 +5530,6 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5618
5530
|
_iterator3.f();
|
|
5619
5531
|
}
|
|
5620
5532
|
}
|
|
5621
|
-
|
|
5622
5533
|
return false;
|
|
5623
5534
|
}
|
|
5624
5535
|
}, {
|
|
@@ -5626,17 +5537,14 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5626
5537
|
value: function insertIntoOrderedArray(item, index, arr, sourceArr) {
|
|
5627
5538
|
if (arr.length > 0) {
|
|
5628
5539
|
var injected = false;
|
|
5629
|
-
|
|
5630
5540
|
for (var i = 0; i < arr.length; i++) {
|
|
5631
5541
|
var currentItemIndex = this.findIndexInList(arr[i], sourceArr);
|
|
5632
|
-
|
|
5633
5542
|
if (currentItemIndex > index) {
|
|
5634
5543
|
arr.splice(i, 0, item);
|
|
5635
5544
|
injected = true;
|
|
5636
5545
|
break;
|
|
5637
5546
|
}
|
|
5638
5547
|
}
|
|
5639
|
-
|
|
5640
5548
|
if (!injected) {
|
|
5641
5549
|
arr.push(item);
|
|
5642
5550
|
}
|
|
@@ -5650,72 +5558,57 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5650
5558
|
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
5651
5559
|
str = str.replace(/[\xC0-\xC5]/g, "A").replace(/[\xC6]/g, "AE").replace(/[\xC7]/g, "C").replace(/[\xC8-\xCB]/g, "E").replace(/[\xCC-\xCF]/g, "I").replace(/[\xD0]/g, "D").replace(/[\xD1]/g, "N").replace(/[\xD2-\xD6\xD8]/g, "O").replace(/[\xD9-\xDC]/g, "U").replace(/[\xDD]/g, "Y").replace(/[\xDE]/g, "P").replace(/[\xE0-\xE5]/g, "a").replace(/[\xE6]/g, "ae").replace(/[\xE7]/g, "c").replace(/[\xE8-\xEB]/g, "e").replace(/[\xEC-\xEF]/g, "i").replace(/[\xF1]/g, "n").replace(/[\xF2-\xF6\xF8]/g, "o").replace(/[\xF9-\xFC]/g, "u").replace(/[\xFE]/g, "p").replace(/[\xFD\xFF]/g, "y");
|
|
5652
5560
|
}
|
|
5653
|
-
|
|
5654
5561
|
return str;
|
|
5655
5562
|
}
|
|
5656
5563
|
}, {
|
|
5657
5564
|
key: "getVNodeProp",
|
|
5658
5565
|
value: function getVNodeProp(vnode, prop) {
|
|
5659
5566
|
var props = vnode._props;
|
|
5660
|
-
|
|
5661
5567
|
if (props) {
|
|
5662
5568
|
var kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
5663
5569
|
var propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
|
|
5664
5570
|
return props[propName];
|
|
5665
5571
|
}
|
|
5666
|
-
|
|
5667
5572
|
return null;
|
|
5668
5573
|
}
|
|
5669
5574
|
}]);
|
|
5670
|
-
|
|
5671
5575
|
return ObjectUtils;
|
|
5672
5576
|
}();
|
|
5673
5577
|
|
|
5674
|
-
|
|
5675
5578
|
// CONCATENATED MODULE: ./src/components/ripple/Ripple.js
|
|
5676
5579
|
|
|
5677
|
-
|
|
5678
5580
|
function bindEvents(el) {
|
|
5679
5581
|
el.addEventListener('mousedown', onMouseDown);
|
|
5680
5582
|
}
|
|
5681
|
-
|
|
5682
5583
|
function unbindEvents(el) {
|
|
5683
5584
|
el.removeEventListener('mousedown', onMouseDown);
|
|
5684
5585
|
}
|
|
5685
|
-
|
|
5686
5586
|
function create(el) {
|
|
5687
5587
|
var ink = document.createElement('span');
|
|
5688
5588
|
ink.className = 'p-ink';
|
|
5689
5589
|
el.appendChild(ink);
|
|
5690
5590
|
ink.addEventListener('animationend', onAnimationEnd);
|
|
5691
5591
|
}
|
|
5692
|
-
|
|
5693
5592
|
function remove(el) {
|
|
5694
5593
|
var ink = getInk(el);
|
|
5695
|
-
|
|
5696
5594
|
if (ink) {
|
|
5697
5595
|
unbindEvents(el);
|
|
5698
5596
|
ink.removeEventListener('animationend', onAnimationEnd);
|
|
5699
5597
|
ink.remove();
|
|
5700
5598
|
}
|
|
5701
5599
|
}
|
|
5702
|
-
|
|
5703
5600
|
function onMouseDown(event) {
|
|
5704
5601
|
var target = event.currentTarget;
|
|
5705
5602
|
var ink = getInk(target);
|
|
5706
|
-
|
|
5707
5603
|
if (!ink || getComputedStyle(ink, null).display === 'none') {
|
|
5708
5604
|
return;
|
|
5709
5605
|
}
|
|
5710
|
-
|
|
5711
5606
|
DomHandler_DomHandler.removeClass(ink, 'p-ink-active');
|
|
5712
|
-
|
|
5713
5607
|
if (!DomHandler_DomHandler.getHeight(ink) && !DomHandler_DomHandler.getWidth(ink)) {
|
|
5714
5608
|
var d = Math.max(DomHandler_DomHandler.getOuterWidth(target), DomHandler_DomHandler.getOuterHeight(target));
|
|
5715
5609
|
ink.style.height = d + 'px';
|
|
5716
5610
|
ink.style.width = d + 'px';
|
|
5717
5611
|
}
|
|
5718
|
-
|
|
5719
5612
|
var offset = DomHandler_DomHandler.getOffset(target);
|
|
5720
5613
|
var x = event.pageX - offset.left + document.body.scrollTop - DomHandler_DomHandler.getWidth(ink) / 2;
|
|
5721
5614
|
var y = event.pageY - offset.top + document.body.scrollLeft - DomHandler_DomHandler.getHeight(ink) / 2;
|
|
@@ -5723,21 +5616,17 @@ function onMouseDown(event) {
|
|
|
5723
5616
|
ink.style.left = x + 'px';
|
|
5724
5617
|
DomHandler_DomHandler.addClass(ink, 'p-ink-active');
|
|
5725
5618
|
}
|
|
5726
|
-
|
|
5727
5619
|
function onAnimationEnd(event) {
|
|
5728
5620
|
DomHandler_DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
5729
5621
|
}
|
|
5730
|
-
|
|
5731
5622
|
function getInk(el) {
|
|
5732
5623
|
for (var i = 0; i < el.children.length; i++) {
|
|
5733
5624
|
if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
|
|
5734
5625
|
return el.children[i];
|
|
5735
5626
|
}
|
|
5736
5627
|
}
|
|
5737
|
-
|
|
5738
5628
|
return null;
|
|
5739
5629
|
}
|
|
5740
|
-
|
|
5741
5630
|
var Ripple = {
|
|
5742
5631
|
inserted: function inserted(el, binding, vnode) {
|
|
5743
5632
|
if (vnode.context.$primevue && vnode.context.$primevue.config.ripple) {
|
|
@@ -5759,17 +5648,13 @@ var Ripple = {
|
|
|
5759
5648
|
|
|
5760
5649
|
|
|
5761
5650
|
|
|
5762
|
-
|
|
5763
5651
|
function Dropdownvue_type_script_lang_js_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = Dropdownvue_type_script_lang_js_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; } } }; }
|
|
5764
|
-
|
|
5765
5652
|
function Dropdownvue_type_script_lang_js_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Dropdownvue_type_script_lang_js_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 Dropdownvue_type_script_lang_js_arrayLikeToArray(o, minLen); }
|
|
5766
|
-
|
|
5767
5653
|
function Dropdownvue_type_script_lang_js_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; }
|
|
5768
5654
|
|
|
5769
5655
|
|
|
5770
5656
|
|
|
5771
5657
|
|
|
5772
|
-
|
|
5773
5658
|
/* harmony default export */ var Dropdownvue_type_script_lang_js_ = ({
|
|
5774
5659
|
props: {
|
|
5775
5660
|
value: null,
|
|
@@ -5825,7 +5710,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5825
5710
|
if (this.overlayVisible && this.isModelValueChanged) {
|
|
5826
5711
|
this.scrollValueInView();
|
|
5827
5712
|
}
|
|
5828
|
-
|
|
5829
5713
|
this.isModelValueChanged = false;
|
|
5830
5714
|
this.onFilterUpdated();
|
|
5831
5715
|
},
|
|
@@ -5833,7 +5717,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5833
5717
|
this.restoreAppend();
|
|
5834
5718
|
this.unbindOutsideClickListener();
|
|
5835
5719
|
this.unbindResizeListener();
|
|
5836
|
-
|
|
5837
5720
|
if (this.scrollHandler) {
|
|
5838
5721
|
this.scrollHandler.destroy();
|
|
5839
5722
|
this.scrollHandler = null;
|
|
@@ -5854,15 +5737,12 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5854
5737
|
},
|
|
5855
5738
|
getSelectedOption: function getSelectedOption() {
|
|
5856
5739
|
var selectedOption;
|
|
5857
|
-
|
|
5858
5740
|
if (this.value != null && this.options) {
|
|
5859
5741
|
var _iterator = Dropdownvue_type_script_lang_js_createForOfIteratorHelper(this.options),
|
|
5860
|
-
|
|
5861
|
-
|
|
5742
|
+
_step;
|
|
5862
5743
|
try {
|
|
5863
5744
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5864
5745
|
var option = _step.value;
|
|
5865
|
-
|
|
5866
5746
|
if (ObjectUtils_ObjectUtils.equals(this.value, this.getOptionValue(option), this.equalityKey)) {
|
|
5867
5747
|
selectedOption = option;
|
|
5868
5748
|
break;
|
|
@@ -5874,7 +5754,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5874
5754
|
_iterator.f();
|
|
5875
5755
|
}
|
|
5876
5756
|
}
|
|
5877
|
-
|
|
5878
5757
|
return selectedOption;
|
|
5879
5758
|
},
|
|
5880
5759
|
isSelected: function isSelected(option) {
|
|
@@ -5882,7 +5761,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5882
5761
|
},
|
|
5883
5762
|
getSelectedOptionIndex: function getSelectedOptionIndex() {
|
|
5884
5763
|
var selectedOptionIndex = -1;
|
|
5885
|
-
|
|
5886
5764
|
if (this.value != null && this.visibleOptions) {
|
|
5887
5765
|
for (var i = 0; i < this.visibleOptions.length; i++) {
|
|
5888
5766
|
if (ObjectUtils_ObjectUtils.equals(this.value, this.getOptionValue(this.visibleOptions[i]), this.equalityKey)) {
|
|
@@ -5891,7 +5769,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5891
5769
|
}
|
|
5892
5770
|
}
|
|
5893
5771
|
}
|
|
5894
|
-
|
|
5895
5772
|
return selectedOptionIndex;
|
|
5896
5773
|
},
|
|
5897
5774
|
show: function show() {
|
|
@@ -5914,36 +5791,33 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5914
5791
|
case 40:
|
|
5915
5792
|
this.onDownKey(event);
|
|
5916
5793
|
break;
|
|
5917
|
-
//up
|
|
5918
5794
|
|
|
5795
|
+
//up
|
|
5919
5796
|
case 38:
|
|
5920
5797
|
this.onUpKey(event);
|
|
5921
5798
|
break;
|
|
5922
|
-
//space
|
|
5923
5799
|
|
|
5800
|
+
//space
|
|
5924
5801
|
case 32:
|
|
5925
5802
|
if (!this.overlayVisible) {
|
|
5926
5803
|
this.show();
|
|
5927
5804
|
event.preventDefault();
|
|
5928
5805
|
}
|
|
5929
|
-
|
|
5930
5806
|
break;
|
|
5931
|
-
//enter and escape
|
|
5932
5807
|
|
|
5808
|
+
//enter and escape
|
|
5933
5809
|
case 13:
|
|
5934
5810
|
case 27:
|
|
5935
5811
|
if (this.overlayVisible) {
|
|
5936
5812
|
this.hide();
|
|
5937
5813
|
event.preventDefault();
|
|
5938
5814
|
}
|
|
5939
|
-
|
|
5940
5815
|
break;
|
|
5941
|
-
//tab
|
|
5942
5816
|
|
|
5817
|
+
//tab
|
|
5943
5818
|
case 9:
|
|
5944
5819
|
this.hide();
|
|
5945
5820
|
break;
|
|
5946
|
-
|
|
5947
5821
|
default:
|
|
5948
5822
|
this.search(event);
|
|
5949
5823
|
break;
|
|
@@ -5955,19 +5829,18 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5955
5829
|
case 40:
|
|
5956
5830
|
this.onDownKey(event);
|
|
5957
5831
|
break;
|
|
5958
|
-
//up
|
|
5959
5832
|
|
|
5833
|
+
//up
|
|
5960
5834
|
case 38:
|
|
5961
5835
|
this.onUpKey(event);
|
|
5962
5836
|
break;
|
|
5963
|
-
//enter and escape
|
|
5964
5837
|
|
|
5838
|
+
//enter and escape
|
|
5965
5839
|
case 13:
|
|
5966
5840
|
case 27:
|
|
5967
5841
|
this.overlayVisible = false;
|
|
5968
5842
|
event.preventDefault();
|
|
5969
5843
|
break;
|
|
5970
|
-
|
|
5971
5844
|
default:
|
|
5972
5845
|
break;
|
|
5973
5846
|
}
|
|
@@ -5978,43 +5851,35 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5978
5851
|
this.show();
|
|
5979
5852
|
} else {
|
|
5980
5853
|
var nextOption = this.findNextOption(this.getSelectedOptionIndex());
|
|
5981
|
-
|
|
5982
5854
|
if (nextOption) {
|
|
5983
5855
|
this.updateModel(event, this.getOptionValue(nextOption));
|
|
5984
5856
|
}
|
|
5985
5857
|
}
|
|
5986
5858
|
}
|
|
5987
|
-
|
|
5988
5859
|
event.preventDefault();
|
|
5989
5860
|
},
|
|
5990
5861
|
onUpKey: function onUpKey(event) {
|
|
5991
5862
|
if (this.visibleOptions) {
|
|
5992
5863
|
var prevOption = this.findPrevOption(this.getSelectedOptionIndex());
|
|
5993
|
-
|
|
5994
5864
|
if (prevOption) {
|
|
5995
5865
|
this.updateModel(event, this.getOptionValue(prevOption));
|
|
5996
5866
|
}
|
|
5997
5867
|
}
|
|
5998
|
-
|
|
5999
5868
|
event.preventDefault();
|
|
6000
5869
|
},
|
|
6001
5870
|
findNextOption: function findNextOption(index) {
|
|
6002
5871
|
var i = index + 1;
|
|
6003
|
-
|
|
6004
5872
|
if (i === this.visibleOptions.length) {
|
|
6005
5873
|
return null;
|
|
6006
5874
|
}
|
|
6007
|
-
|
|
6008
5875
|
var option = this.visibleOptions[i];
|
|
6009
5876
|
if (this.isOptionDisabled(option)) return this.findNextOption(i);else return option;
|
|
6010
5877
|
},
|
|
6011
5878
|
findPrevOption: function findPrevOption(index) {
|
|
6012
5879
|
var i = index - 1;
|
|
6013
|
-
|
|
6014
5880
|
if (i < 0) {
|
|
6015
5881
|
return null;
|
|
6016
5882
|
}
|
|
6017
|
-
|
|
6018
5883
|
var option = this.visibleOptions[i];
|
|
6019
5884
|
if (this.isOptionDisabled(option)) return this.findPrevOption(i);else return option;
|
|
6020
5885
|
},
|
|
@@ -6025,7 +5890,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6025
5890
|
if (this.disabled) {
|
|
6026
5891
|
return;
|
|
6027
5892
|
}
|
|
6028
|
-
|
|
6029
5893
|
if (DomHandler_DomHandler.hasClass(event.target, 'p-dropdown-clear-icon') || event.target.tagName === 'INPUT') {
|
|
6030
5894
|
return;
|
|
6031
5895
|
} else if (!this.$refs.overlay || !this.$refs.overlay.contains(event.target)) {
|
|
@@ -6035,7 +5899,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6035
5899
|
},
|
|
6036
5900
|
onOptionSelect: function onOptionSelect(event, option) {
|
|
6037
5901
|
var _this = this;
|
|
6038
|
-
|
|
6039
5902
|
var value = this.getOptionValue(option);
|
|
6040
5903
|
this.updateModel(event, value);
|
|
6041
5904
|
this.$refs.focusInput.focus();
|
|
@@ -6053,11 +5916,9 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6053
5916
|
this.bindOutsideClickListener();
|
|
6054
5917
|
this.bindScrollListener();
|
|
6055
5918
|
this.bindResizeListener();
|
|
6056
|
-
|
|
6057
5919
|
if (this.filter) {
|
|
6058
5920
|
this.$refs.filterInput.focus();
|
|
6059
5921
|
}
|
|
6060
|
-
|
|
6061
5922
|
this.$emit('show');
|
|
6062
5923
|
},
|
|
6063
5924
|
onOverlayLeave: function onOverlayLeave() {
|
|
@@ -6083,14 +5944,12 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6083
5944
|
},
|
|
6084
5945
|
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
6085
5946
|
var _this2 = this;
|
|
6086
|
-
|
|
6087
5947
|
if (!this.outsideClickListener) {
|
|
6088
5948
|
this.outsideClickListener = function (event) {
|
|
6089
5949
|
if (_this2.overlayVisible && _this2.$refs.overlay && !_this2.$refs.container.contains(event.target) && !_this2.$refs.overlay.contains(event.target)) {
|
|
6090
5950
|
_this2.hide();
|
|
6091
5951
|
}
|
|
6092
5952
|
};
|
|
6093
|
-
|
|
6094
5953
|
document.addEventListener('click', this.outsideClickListener);
|
|
6095
5954
|
}
|
|
6096
5955
|
},
|
|
@@ -6102,7 +5961,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6102
5961
|
},
|
|
6103
5962
|
bindScrollListener: function bindScrollListener() {
|
|
6104
5963
|
var _this3 = this;
|
|
6105
|
-
|
|
6106
5964
|
if (!this.scrollHandler) {
|
|
6107
5965
|
this.scrollHandler = new ConnectedOverlayScrollHandler_ConnectedOverlayScrollHandler(this.$el, function () {
|
|
6108
5966
|
if (_this3.overlayVisible) {
|
|
@@ -6110,7 +5968,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6110
5968
|
}
|
|
6111
5969
|
});
|
|
6112
5970
|
}
|
|
6113
|
-
|
|
6114
5971
|
this.scrollHandler.bindScrollListener();
|
|
6115
5972
|
},
|
|
6116
5973
|
unbindScrollListener: function unbindScrollListener() {
|
|
@@ -6120,14 +5977,12 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6120
5977
|
},
|
|
6121
5978
|
bindResizeListener: function bindResizeListener() {
|
|
6122
5979
|
var _this4 = this;
|
|
6123
|
-
|
|
6124
5980
|
if (!this.resizeListener) {
|
|
6125
5981
|
this.resizeListener = function () {
|
|
6126
5982
|
if (_this4.overlayVisible && !DomHandler_DomHandler.isTouchDevice()) {
|
|
6127
5983
|
_this4.hide();
|
|
6128
5984
|
}
|
|
6129
5985
|
};
|
|
6130
|
-
|
|
6131
5986
|
window.addEventListener('resize', this.resizeListener);
|
|
6132
5987
|
}
|
|
6133
5988
|
},
|
|
@@ -6139,53 +5994,43 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6139
5994
|
},
|
|
6140
5995
|
search: function search(event) {
|
|
6141
5996
|
var _this5 = this;
|
|
6142
|
-
|
|
6143
5997
|
if (!this.visibleOptions) {
|
|
6144
5998
|
return;
|
|
6145
5999
|
}
|
|
6146
|
-
|
|
6147
6000
|
if (this.searchTimeout) {
|
|
6148
6001
|
clearTimeout(this.searchTimeout);
|
|
6149
6002
|
}
|
|
6150
|
-
|
|
6151
6003
|
var char = event.key;
|
|
6152
6004
|
this.previousSearchChar = this.currentSearchChar;
|
|
6153
6005
|
this.currentSearchChar = char;
|
|
6154
6006
|
if (this.previousSearchChar === this.currentSearchChar) this.searchValue = this.currentSearchChar;else this.searchValue = this.searchValue ? this.searchValue + char : char;
|
|
6155
6007
|
var searchIndex = this.getSelectedOptionIndex();
|
|
6156
6008
|
var newOption = this.searchOption(++searchIndex);
|
|
6157
|
-
|
|
6158
6009
|
if (newOption) {
|
|
6159
6010
|
this.updateModel(event, this.getOptionValue(newOption));
|
|
6160
6011
|
}
|
|
6161
|
-
|
|
6162
6012
|
this.searchTimeout = setTimeout(function () {
|
|
6163
6013
|
_this5.searchValue = null;
|
|
6164
6014
|
}, 250);
|
|
6165
6015
|
},
|
|
6166
6016
|
searchOption: function searchOption(index) {
|
|
6167
6017
|
var option;
|
|
6168
|
-
|
|
6169
6018
|
if (this.searchValue) {
|
|
6170
6019
|
option = this.searchOptionInRange(index, this.visibleOptions.length);
|
|
6171
|
-
|
|
6172
6020
|
if (!option) {
|
|
6173
6021
|
option = this.searchOptionInRange(0, index);
|
|
6174
6022
|
}
|
|
6175
6023
|
}
|
|
6176
|
-
|
|
6177
6024
|
return option;
|
|
6178
6025
|
},
|
|
6179
6026
|
searchOptionInRange: function searchOptionInRange(start, end) {
|
|
6180
6027
|
for (var i = start; i < end; i++) {
|
|
6181
6028
|
var opt = this.visibleOptions[i];
|
|
6182
6029
|
var label = this.getOptionLabel(opt).toLocaleLowerCase(this.filterLocale);
|
|
6183
|
-
|
|
6184
6030
|
if (label.startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))) {
|
|
6185
6031
|
return opt;
|
|
6186
6032
|
}
|
|
6187
6033
|
}
|
|
6188
|
-
|
|
6189
6034
|
return null;
|
|
6190
6035
|
},
|
|
6191
6036
|
appendContainer: function appendContainer() {
|
|
@@ -6213,7 +6058,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6213
6058
|
scrollValueInView: function scrollValueInView() {
|
|
6214
6059
|
if (this.$refs.overlay) {
|
|
6215
6060
|
var selectedItem = DomHandler_DomHandler.findSingle(this.$refs.overlay, 'li.p-highlight');
|
|
6216
|
-
|
|
6217
6061
|
if (selectedItem) {
|
|
6218
6062
|
selectedItem.scrollIntoView({
|
|
6219
6063
|
block: 'nearest',
|
|
@@ -6226,7 +6070,6 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6226
6070
|
computed: {
|
|
6227
6071
|
visibleOptions: function visibleOptions() {
|
|
6228
6072
|
var _this6 = this;
|
|
6229
|
-
|
|
6230
6073
|
if (this.filterValue && this.filterValue.trim().length > 0) return this.options.filter(function (option) {
|
|
6231
6074
|
return _this6.getOptionLabel(option).toLocaleLowerCase(_this6.filterLocale).indexOf(_this6.filterValue.toLocaleLowerCase(_this6.filterLocale)) > -1;
|
|
6232
6075
|
});else return this.options;
|